[03:07:15]OFD Sender: No OFD packet to send [03:07:20]OFD Sender: No OFD packet to send [03:07:25]OFD Sender: No OFD packet to send [03:07:30]OFD Sender: No OFD packet to send [03:07:35]OFD Sender: No OFD packet to send [03:07:40]OFD Sender: No OFD packet to send [03:07:45]OFD Sender: No OFD packet to send [03:07:50]OFD Sender: No OFD packet to send [03:07:55]OFD Sender: No OFD packet to send [03:08:00]OFD Sender: No OFD packet to send [03:08:05]OFD Sender: No OFD packet to send [03:08:10]OFD Sender: No OFD packet to send [03:08:15]OFD Sender: No OFD packet to send [03:08:20]OFD Sender: No OFD packet to send [03:08:25]OFD Sender: No OFD packet to send [03:08:30]OFD Sender: No OFD packet to send [03:08:35]OFD Sender: No OFD packet to send [03:08:40]OFD Sender: No OFD packet to send [03:08:45]OFD Sender: No OFD packet to send [03:08:50]OFD Sender: No OFD packet to send [03:08:55]OFD Sender: No OFD packet to send [03:09:00]OFD Sender: No OFD packet to send [03:09:05]OFD Sender: No OFD packet to send [03:09:10]OFD Sender: No OFD packet to send [03:09:15]OFD Sender: No OFD packet to send [03:09:20]OFD Sender: No OFD packet to send [03:09:25]OFD Sender: No OFD packet to send [03:09:30]OFD Sender: No OFD packet to send [03:09:35]OFD Sender: No OFD packet to send [03:09:40]OFD Sender: No OFD packet to send [03:09:45]OFD Sender: No OFD packet to send [03:09:50]OFD Sender: No OFD packet to send [03:09:55]OFD Sender: No OFD packet to send [03:10:00]OFD Sender: No OFD packet to send [03:10:06]OFD Sender: No OFD packet to send [03:10:11]OFD Sender: No OFD packet to send [03:10:16]OFD Sender: No OFD packet to send [03:10:21]OFD Sender: No OFD packet to send [03:10:26]OFD Sender: No OFD packet to send [03:10:31]OFD Sender: No OFD packet to send [03:10:36]OFD Sender: No OFD packet to send [03:10:41]OFD Sender: No OFD packet to send [03:10:46]OFD Sender: No OFD packet to send [03:10:51]OFD Sender: No OFD packet to send [03:10:56]OFD Sender: No OFD packet to send [03:11:01]OFD Sender: No OFD packet to send [03:11:06]OFD Sender: No OFD packet to send [03:11:11]OFD Sender: No OFD packet to send [03:11:16]OFD Sender: No OFD packet to send [03:11:21]OFD Sender: No OFD packet to send [03:11:26]OFD Sender: No OFD packet to send [03:11:31]OFD Sender: No OFD packet to send [03:11:36]OFD Sender: No OFD packet to send [03:11:41]OFD Sender: No OFD packet to send [03:11:46]OFD Sender: No OFD packet to send [03:11:51]OFD Sender: No OFD packet to send [03:11:56]OFD Sender: No OFD packet to send [03:12:01]OFD Sender: No OFD packet to send [03:12:06]OFD Sender: No OFD packet to send [03:12:11]OFD Sender: No OFD packet to send [03:12:16]OFD Sender: No OFD packet to send [03:12:21]OFD Sender: No OFD packet to send [03:12:26]OFD Sender: No OFD packet to send [03:12:31]OFD Sender: No OFD packet to send [03:12:36]OFD Sender: No OFD packet to send [03:12:41]OFD Sender: No OFD packet to send [03:12:46]OFD Sender: No OFD packet to send [03:12:48]accept exits with 8 [03:12:48]New connection [03:12:48]New thread 3067055460 created [03:12:48]Thread 3067198820 joined [03:12:48]Waiting for new connection... [03:12:48] Sock 8.Parse request [03:12:48]Sock 8.Check first char [03:12:48]Sock 8.First char is OK [03:12:48]request: POST /json_proto HTTP/1.0 [03:12:48]Method: POST [03:12:48]URL: /json_proto [03:12:48]Method is POST - this is cgi request [03:12:48]url: /json_proto [03:12:48]query_string will be loaded in cgi processing [03:12:48]execute_cgi json_proto POST (null) [03:12:48]execute_cgi path=json_proto method=POST [03:12:48]POST find Content-Length [03:12:48]Host: 172.17.42.131:8080 [03:12:48]Content-Length: 816 [03:12:48]Content-Type: application/json [03:12:48] [03:12:48]POST finish read [03:12:48]Found Content-Length = 816 [03:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "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", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:48]execute_script... [03:12: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)210052", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.000, "sum" : 334.50, "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", "payments": [ { "type": 1, "sum" : 334.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:12:48]POST & json_proto [03:12:48]process_json_proto [03:12:48]json parsed OK: [03:12:48]protocol is kg_v1.0 [03:12:48]action value=close_receipt [03:12:48]process_action close_receipt [03:12:48]cmd_close_receipt [03:12:48]MH_GetDate [03:12:48]Write to MH i2c: F0 00 00 65 0D 61 [03:12:48]Write i2c OK [03:12:48]MH_I2C_Read... [03:12:48]Read from MH i2c: F0 [03:12:48]MH_I2C_Read... [03:12:48]Read from MH i2c: F0 09 00 [03:12:48]MH_I2C_Read... [03:12:48]Read from MH i2c: F0 09 00 65 0D 00 31 18 17 67 A0 18 CA 66 19 [03:12:48]GetLastDocTimeStamp 1729566353 [03:12:48]current date 1729566769 [03:12:48]FM_GetShiftState [03:12:48]SAM_PROTO_GetShiftState [03:12:48]wFMCommunicate request_size=4 [03:12:48]MH_SAM_APDU [03:12:48]CAPDU: 80 13 01 00 [03:12:48]Write to MH i2c: E2 08 00 66 0D 80 13 01 00 00 00 00 00 F0 [03:12:48]Write i2c OK [03:12:48]MH_I2C_Read... [03:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:48]Read from MH i2c: E2 [03:12:48]MH_I2C_Read... [03:12:48]Read from MH i2c: E2 0E 00 [03:12:48]MH_I2C_Read... [03:12:48]Read from MH i2c: E2 0E 00 66 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E5 [03:12:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:12:48]wFMCommunicate OK [03:12:48]SAM_PROTO_GetShiftState done [03:12:48]FM_GetShiftState done [03:12:48]opened in 1729556094 [03:12:48]opened+sec_in_day 1729642494 [03:12:48]quantity*price = 33450 [03:12:48]sum+1 = 33451 [03:12:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 334.50 НСП 1% : 2.96 НДС 12% : 35.52 Наличными: 0.00 Безнал.: 334.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 30 22.10.2024 03:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188001 ФПД: 27643453277485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031249&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188001&fm=27643453277485&tin=02508201610067®Number=0000000000100030&sum=33450 [03:12:49]StoreToDocumentArchive [03:12:49]shift 461 fd 188001 [03:12:49]save to /storage/0461/doc_00188001 [03:12:49]save last doc name /storage/0461/doc_00188001 to /storage/kkm_last_doc_name [03:12:49]save OK [03:12:49]Clear old archive folders... [03:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:12:49]tlvbuf is 01BBEF80 [03:12:49]SAM_PROTO_ClearQueue [03:12:49]wFMCommunicate request_size=4 [03:12:49]MH_SAM_APDU [03:12:49]CAPDU: 80 09 00 00 [03:12:49]Write to MH i2c: E2 08 00 73 0D 80 09 00 00 00 00 00 00 F2 [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:12:49]Read from MH i2c: E2 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 73 0D 00 90 00 F4 [03:12:49]RAPDU: 90 00 [03:12:49]wFMCommunicate OK [03:12:49]SAM_PROTO_ClearQueue done [03:12:49]KKMCreateOFDPacket [03:12:49]OFDProtocolAddRootSTLVToBuf [03:12:49]FM_MakeSignedData [03:12:49]FM_MakeSignedData [03:12:49]SAM_PROTO_SignData [03:12:49]wFMCommunicate request_size=4 [03:12:49]MH_SAM_APDU [03:12:49]CAPDU: 80 0D 01 02 [03:12:49]Write to MH i2c: E2 08 00 74 0D 80 0D 01 02 00 00 00 00 FA [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:12:49]Read from MH i2c: E2 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 74 0D 00 90 00 F5 [03:12:49]RAPDU: 90 00 [03:12:49]wFMCommunicate OK [03:12:49]wFMCommunicate request_size=255 [03:12:49]MH_SAM_APDU [03:12: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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 31 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DE 02 00 35 04 06 00 19 [03:12:49]Write to MH i2c: E2 02 01 75 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 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 31 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DE 02 00 35 04 06 00 19 00 00 66 [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:49]Read from MH i2c: E2 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 75 0D 00 90 00 F6 [03:12:49]RAPDU: 90 00 [03:12:49]wFMCommunicate OK [03:12:49]wFMCommunicate request_size=10 [03:12:49]MH_SAM_APDU [03:12:49]CAPDU: 80 0D 02 02 05 24 3E 36 85 2D [03:12:49]Write to MH i2c: E2 0D 00 76 0D 80 0D 02 02 05 00 24 3E 36 85 2D 00 00 51 [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:12:49]Read from MH i2c: E2 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 03 00 76 0D 00 90 00 F7 [03:12:49]RAPDU: 90 00 [03:12:49]wFMCommunicate OK [03:12:49]wFMCommunicate request_size=4 [03:12:49]MH_SAM_APDU [03:12:49]CAPDU: 80 0D 03 02 [03:12:49]Write to MH i2c: E2 08 00 77 0D 80 0D 03 02 00 00 00 00 FF [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:12:49]Read from MH i2c: E2 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 0B 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 0B 00 77 0D 00 44 34 D3 1A E0 7A 89 6E 90 00 B6 [03:12:49]RAPDU: 44 34 D3 1A E0 7A 89 6E 90 00 [03:12:49]wFMCommunicate OK [03:12:49]SAM_PROTO_SignData done [03:12:49]FM_MakeSignedData done [03:12:49]CreateOFDProtocolMessage [03:12:49]wFMCommunicate request_size=4 [03:12:49]MH_SAM_APDU [03:12:49]CAPDU: 80 11 00 00 [03:12:49]Write to MH i2c: E2 08 00 78 0D 80 11 00 00 00 00 00 00 FF [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:49]Read from MH i2c: E2 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 17 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: E2 17 00 78 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [03:12:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:12:49]wFMCommunicate OK [03:12:49]CreateOFDProtocolMessage done [03:12:49]OFDSenderStorePacket 188001 [03:12:49]StoreOFDPacket docnum=188001 [03:12:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 E4 07 01 7C DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 31 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DE 02 00 35 04 06 00 19 24 3E 36 85 2D 44 34 D3 1A E0 7A 89 6E [03:12:49]CheckFolder [03:12:49]dirname=/storage/ofd_packets [03:12:49]CheckFolder done [03:12:49]ProducePacketName [03:12:49]name=ofd_packets/00188001 [03:12:49]NVStorageSaveData ofd_packets/00188001 [03:12:49]File name is /storage/ofd_packets/00188001 [03:12:49]Write 301 bytes [03:12:49]NVStorageSaveData done [03:12:49]OFDSenderStorePacket done [03:12:49]KKMCreateOFDPacket done [03:12:49]NVStorageSaveData kkm_last_timestamp [03:12:49]File name is /storage/kkm_last_timestamp [03:12:49]Write 4 bytes [03:12:49]NVStorageSaveData done [03:12:49]ExternCall_PrintAddStr [03:12:49]wPrintStart [03:12:49]Write to MH i2c: 01 00 00 79 0D 86 [03:12:49]Write i2c OK [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: 01 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: 01 07 00 [03:12:49]MH_I2C_Read... [03:12:49]Read from MH i2c: 01 07 00 79 0D 00 00 00 00 00 FF 0F 9B [03:12:49]RasterBufferAndPrint [03:12:49]line Счет N : (1)210052 [03:12:49]line ИНН: 02508201610067 [03:12:49]line Контрольно-Кассовый Чек [03:12:49]line ПРОДАЖА [03:12:49]line ТРК (МРК, ГНК) : 42 [03:12:49]line Товар: 2710124130 [03:12:49]line Аи-92-К-3 [03:12:49]line 5.000 * 66.90 [03:12:49]line = 334.50 [03:12:49]line НДС 12% НСП 1% [03:12:49]line > о реализуемом товаре [03:12:49]line ИТОГО: 334.50 [03:12:49]line НСП 1% : 2.96 [03:12:49]line НДС 12% : 35.52 [03:12:49]line Наличными: 0.00 [03:12:49]line Безнал.: 334.50 [03:12:49]line Место: АЗС № 86 "Партнер Нефть" [03:12:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:12:49]line СНО: Общий режим [03:12:49]line Чек 30 22.10.2024 03:12 [03:12:49]line Смена: 461 ФФД: 1.0 [03:12:49]line ЗНМ: 0300000155 [03:12:49]line РНМ: 0000000000100030 [03:12:49]line Версия ККМ: 001 [03:12:49]line Платежная система: Бакай Банк [03:12:49]line ФМ: 0000000000965340 [03:12:49]line ФД: 188001 [03:12:49]line ФПД: 27643453277485 [03:12:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031249&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188001&fm=27643453277485&tin=02508201610067®Number=0000000000100030&sum=33450 [03:12:49]written 0, free lines is 4095 [03:12:49]OFD Sender: Processing packet 188001 [packets to send 1062, broken 1061] [03:12:49]ProducePacketName [03:12:49]name=ofd_packets/00188001 [03:12:49]OFD Sender: To server: pG, [03:12:49]CommunicateWithHost lk.salyk.kg:30040 [03:12:49]ConnectInit lk.salyk.kg [03:12:50]Connected sock=10 [03:12:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 75 E4 07 01 7C DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 AA 82 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AA 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 0D 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AA 82 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 31 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DE 02 00 35 04 06 00 19 24 3E 36 85 2D 44 34 D3 1A E0 7A 89 6E [03:12:50]Write to MH i2c: 01 00 00 A3 0D B0 [03:12:50]Write i2c OK [03:12:50]MH_I2C_Read... [03:12:50]Read from MH i2c: 01 [03:12:50]MH_I2C_Read... [03:12:50]Read from MH i2c: 01 07 00 [03:12:50]MH_I2C_Read... [03:12:50]Read from MH i2c: 01 07 00 A3 0D 00 00 00 00 00 67 0C 2A [03:12:50]RasterBufferAndPrint [03:12:50]line [03:12:50]line [03:12:50]line [03:12:50]line [03:12:50]line [03:12:50]written 0, free lines is 3179 [03:12:50]MH_Cut [03:12:50]Write to MH i2c: D1 01 00 AA 0D 01 89 [03:12:50]Write i2c OK [03:12:50]MH_I2C_Read... [03:12:50]Read from MH i2c: D1 [03:12:50]MH_I2C_Read... [03:12:50]Read from MH i2c: D1 01 00 [03:12:50]MH_I2C_Read... [03:12:50]Read from MH i2c: D1 01 00 AA 0D 00 88 [03:12:50]Write to MH i2c: 01 00 00 AB 0D B8 [03:12:50]Write i2c OK [03:12:50]MH_I2C_Read... [03:12:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB 59 47 00 22 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DE 02 00 F4 03 04 00 1F C2 16 67 B6 04 01 00 00 54 83 BB DC DC B8 D6 F0 [03:12:50]CommunicateWithHost err = 0 [03:12:50]CheckOFDResponse [03:12:50]1017 (14) - 77093643461234 [03:12:50]1041 (16) - 0000000000965340 [03:12:50]1040 (4) - 188001 [03:12:50]1012 (4) - 21.10.2024 21:05 [03:12:50]1206 (1) - 0 [03:12:50]OFD Sender: Remove packet 188001 [03:12:50]ProducePacketName [03:12:50]name=ofd_packets/00188001 [03:12:50]NVStorageDeleteData [03:12:51]OFD Sender: No OFD packet to send [03:12:51]*** Cut start [03:12:51]*** Partial cut [03:12:51]*** CUTSNS_PIN = 1 [03:12:51]*** CUTSNS_PIN = 0 [03:12:51]*** Brake cut motor [03:12:52]Read from MH i2c: 01 [03:12:52]MH_I2C_Read... [03:12:52]*** Stop cut motor [03:12:52]*** Cut end [03:12:52]Read from MH i2c: 01 07 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: 01 07 00 AB 0D 00 00 00 00 00 FF 0F CD [03:12:52]process_action close_receipt done [03:12:52]requested_data is exist [03:12:52]produce_requested_data [03:12:52]requested_item fm.sn is exist - process it [03:12:52]wFMCommunicate request_size=4 [03:12:52]MH_SAM_APDU [03:12:52]CAPDU: 80 11 00 00 [03:12:52]Write to MH i2c: E2 08 00 AC 0D 80 11 00 00 00 00 00 00 33 [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:12:52]Read from MH i2c: E2 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 17 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 17 00 AC 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [03:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:12:52]wFMCommunicate OK [03:12:52]requested_item fd.num is exist - process it [03:12:52]SAM_PROTO_GetFieldsCounters [03:12:52]wFMCommunicate request_size=4 [03:12:52]MH_SAM_APDU [03:12:52]CAPDU: 80 13 00 00 [03:12:52]Write to MH i2c: E2 08 00 AD 0D 80 13 00 00 00 00 00 00 36 [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:12:52]Read from MH i2c: E2 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 62 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 62 00 AD 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 DE 02 00 0E 04 04 00 CD 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 A6 [03:12:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 DE 02 00 0E 04 04 00 CD 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 [03:12:52]wFMCommunicate OK [03:12:52]SAM_PROTO_GetFieldsCounters done [03:12:52]requested_item shift.num is exist - process it [03:12:52]requested_item shift.opened is exist - process it [03:12:52]req_shift_opened [03:12:52]FM_GetShiftState [03:12:52]SAM_PROTO_GetShiftState [03:12:52]wFMCommunicate request_size=4 [03:12:52]MH_SAM_APDU [03:12:52]CAPDU: 80 13 01 00 [03:12:52]Write to MH i2c: E2 08 00 AE 0D 80 13 01 00 00 00 00 00 38 [03:12:52]Write i2c OK [03:12:52]MH_I2C_Read... [03:12:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:12:52]Read from MH i2c: E2 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 0E 00 [03:12:52]MH_I2C_Read... [03:12:52]Read from MH i2c: E2 0E 00 AE 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2D [03:12:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:12:52]wFMCommunicate OK [03:12:52]SAM_PROTO_GetShiftState done [03:12:52]FM_GetShiftState done [03:12:52]req_shift_opened done [03:12:52]requested_item shift.open_date is exist - process it [03:12:52]req_shift_open_date [03:12:52]req_shift_open_date done [03:12:52]produce_requested_data done [03:12:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188001,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:12:52]process_action_free close_receipt [03:12:52]json_value_free [03:12:52]json_value_free done [03:12:52]process_json_proto returns [03:12:52]Send response to host [03:12:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188001,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:12:52]free response buf [03:12:52]execute_script done [03:12:52]execute_script returns [03:12:52]free content buf [03:12:52]Sock 8.Close socket [03:12:52]Sock 8.Thread stoped [03:12:56]OFD Sender: No OFD packet to send [03:13:01]OFD Sender: No OFD packet to send [03:13:06]OFD Sender: No OFD packet to send [03:13:11]OFD Sender: No OFD packet to send [03:13:16]OFD Sender: No OFD packet to send [03:13:21]OFD Sender: No OFD packet to send [03:13:25]accept exits with 9 [03:13:25]New connection [03:13:25]New thread 3067198820 created [03:13:25]Thread 3067055460 joined [03:13:25]Waiting for new connection... [03:13:25] Sock 9.Parse request [03:13:25]Sock 9.Check first char [03:13:25]Sock 9.First char is OK [03:13:25]request: POST /json_proto HTTP/1.0 [03:13:25]Method: POST [03:13:25]URL: /json_proto [03:13:25]Method is POST - this is cgi request [03:13:25]url: /json_proto [03:13:25]query_string will be loaded in cgi processing [03:13:25]execute_cgi json_proto POST (null) [03:13:25]execute_cgi path=json_proto method=POST [03:13:25]POST find Content-Length [03:13:25]Host: 172.17.42.131:8080 [03:13:25]Content-Length: 688 [03:13:25]Content-Type: application/json [03:13:25] [03:13:25]POST finish read [03:13:25]Found Content-Length = 688 [03:13:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [03:13:25]execute_script... [03:13: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)210053", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [03:13:25]POST & json_proto [03:13:25]process_json_proto [03:13:25]json parsed OK: [03:13:25]protocol is kg_v1.0 [03:13:25]action value=close_receipt [03:13:25]process_action close_receipt [03:13:25]cmd_close_receipt [03:13:25]MH_GetDate [03:13:25]Write to MH i2c: F0 00 00 AF 0D AB [03:13:25]Write i2c OK [03:13:25]MH_I2C_Read... [03:13:25]Read from MH i2c: F0 [03:13:25]MH_I2C_Read... [03:13:25]Read from MH i2c: F0 09 00 [03:13:25]MH_I2C_Read... [03:13:25]Read from MH i2c: F0 09 00 AF 0D 00 56 18 17 67 A0 18 CA 66 88 [03:13:25]GetLastDocTimeStamp 1729566769 [03:13:25]current date 1729566806 [03:13:25]FM_GetShiftState [03:13:25]SAM_PROTO_GetShiftState [03:13:25]wFMCommunicate request_size=4 [03:13:25]MH_SAM_APDU [03:13:25]CAPDU: 80 13 01 00 [03:13:25]Write to MH i2c: E2 08 00 B0 0D 80 13 01 00 00 00 00 00 3A [03:13:25]Write i2c OK [03:13:25]MH_I2C_Read... [03:13:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:13:25]Read from MH i2c: E2 [03:13:25]MH_I2C_Read... [03:13:25]Read from MH i2c: E2 0E 00 [03:13:25]MH_I2C_Read... [03:13:25]Read from MH i2c: E2 0E 00 B0 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2F [03:13:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:13:25]wFMCommunicate OK [03:13:25]SAM_PROTO_GetShiftState done [03:13:25]FM_GetShiftState done [03:13:25]opened in 1729556094 [03:13:25]opened+sec_in_day 1729642494 [03:13:25]quantity*price = 100051 [03:13:25]sum+1 = 100052 [03:13:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 31 22.10.2024 03:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188002 ФПД: 78097419890455 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188002&fm=78097419890455&tin=02508201610067®Number=0000000000100030&sum=100000 [03:13:26]StoreToDocumentArchive [03:13:26]shift 461 fd 188002 [03:13:26]save to /storage/0461/doc_00188002 [03:13:26]save last doc name /storage/0461/doc_00188002 to /storage/kkm_last_doc_name [03:13:26]save OK [03:13:26]Clear old archive folders... [03:13:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:13:26]tlvbuf is 01BFF770 [03:13:26]SAM_PROTO_ClearQueue [03:13:26]wFMCommunicate request_size=4 [03:13:26]MH_SAM_APDU [03:13:26]CAPDU: 80 09 00 00 [03:13:26]Write to MH i2c: E2 08 00 BD 0D 80 09 00 00 00 00 00 00 3C [03:13:26]Write i2c OK [03:13:26]MH_I2C_Read... [03:13:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:13:26]Read from MH i2c: E2 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 BD 0D 00 90 00 3E [03:13:26]RAPDU: 90 00 [03:13:26]wFMCommunicate OK [03:13:26]SAM_PROTO_ClearQueue done [03:13:26]KKMCreateOFDPacket [03:13:26]OFDProtocolAddRootSTLVToBuf [03:13:26]FM_MakeSignedData [03:13:26]FM_MakeSignedData [03:13:26]SAM_PROTO_SignData [03:13:26]wFMCommunicate request_size=4 [03:13:26]MH_SAM_APDU [03:13:26]CAPDU: 80 0D 01 02 [03:13:26]Write to MH i2c: E2 08 00 BE 0D 80 0D 01 02 00 00 00 00 44 [03:13:26]Write i2c OK [03:13:26]MH_I2C_Read... [03:13:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:13:26]Read from MH i2c: E2 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 BE 0D 00 90 00 3F [03:13:26]RAPDU: 90 00 [03:13:26]wFMCommunicate OK [03:13:26]wFMCommunicate request_size=255 [03:13:26]MH_SAM_APDU [03:13:26]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 56 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DE 02 [03:13:26]Write to MH i2c: E2 02 01 BF 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 56 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DE 02 00 00 BC [03:13:26]Write i2c OK [03:13:26]MH_I2C_Read... [03:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:13:26]Read from MH i2c: E2 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 BF 0D 00 90 00 40 [03:13:26]RAPDU: 90 00 [03:13:26]wFMCommunicate OK [03:13:26]wFMCommunicate request_size=16 [03:13:26]MH_SAM_APDU [03:13:26]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 47 07 78 F8 6F 17 [03:13:26]Write to MH i2c: E2 13 00 C0 0D 80 0D 02 02 0B 00 00 35 04 06 00 47 07 78 F8 6F 17 00 00 E0 [03:13:26]Write i2c OK [03:13:26]MH_I2C_Read... [03:13:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:13:26]Read from MH i2c: E2 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 03 00 C0 0D 00 90 00 41 [03:13:26]RAPDU: 90 00 [03:13:26]wFMCommunicate OK [03:13:26]wFMCommunicate request_size=4 [03:13:26]MH_SAM_APDU [03:13:26]CAPDU: 80 0D 03 02 [03:13:26]Write to MH i2c: E2 08 00 C1 0D 80 0D 03 02 00 00 00 00 49 [03:13:26]Write i2c OK [03:13:26]MH_I2C_Read... [03:13:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:13:26]Read from MH i2c: E2 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 0B 00 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 0B 00 C1 0D 00 E5 F3 15 DC D6 52 D2 0D 90 00 1A [03:13:26]RAPDU: E5 F3 15 DC D6 52 D2 0D 90 00 [03:13:26]wFMCommunicate OK [03:13:26]SAM_PROTO_SignData done [03:13:26]FM_MakeSignedData done [03:13:26]CreateOFDProtocolMessage [03:13:26]wFMCommunicate request_size=4 [03:13:26]MH_SAM_APDU [03:13:26]CAPDU: 80 11 00 00 [03:13:26]Write to MH i2c: E2 08 00 C2 0D 80 11 00 00 00 00 00 00 49 [03:13:26]Write i2c OK [03:13:26]MH_I2C_Read... [03:13:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:13:26]Read from MH i2c: E2 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 17 00 [03:13:26]MH_I2C_Read... [03:13:26]Read from MH i2c: E2 17 00 C2 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [03:13:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:13:26]wFMCommunicate OK [03:13:26]CreateOFDProtocolMessage done [03:13:26]OFDSenderStorePacket 188002 [03:13:26]StoreOFDPacket docnum=188002 [03:13:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 35 1E 0D 01 92 CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 56 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DE 02 00 35 04 06 00 47 07 78 F8 6F 17 E5 F3 15 DC D6 52 D2 0D [03:13:26]CheckFolder [03:13:26]dirname=/storage/ofd_packets [03:13:26]CheckFolder done [03:13:26]ProducePacketName [03:13:26]name=ofd_packets/00188002 [03:13:26]NVStorageSaveData ofd_packets/00188002 [03:13:26]File name is /storage/ofd_packets/00188002 [03:13:26]Write 307 bytes [03:13:26]NVStorageSaveData done [03:13:26]OFDSenderStorePacket done [03:13:27]KKMCreateOFDPacket done [03:13:27]NVStorageSaveData kkm_last_timestamp [03:13:27]File name is /storage/kkm_last_timestamp [03:13:27]Write 4 bytes [03:13:27]NVStorageSaveData done [03:13:27]ExternCall_PrintAddStr [03:13:27]wPrintStart [03:13:27]Write to MH i2c: 01 00 00 C3 0D D0 [03:13:27]Write i2c OK [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: 01 [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: 01 07 00 [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: 01 07 00 C3 0D 00 00 00 00 00 FF 0F E5 [03:13:27]RasterBufferAndPrint [03:13:27]line Счет N : (1)210053 [03:13:27]line ИНН: 02508201610067 [03:13:27]line Контрольно-Кассовый Чек [03:13:27]line ПРОДАЖА [03:13:27]line ТРК (МРК, ГНК) : 21 [03:13:27]line Товар: 2710194210 [03:13:27]line D-ENERGY ДТ-К-5 [03:13:27]line 12.960 * 77.20 [03:13:27]line = 1000.51 [03:13:27]line НДС 12% НСП 1% [03:13:27]line > о реализуемом товаре [03:13:27]line ОКРУГЛЕНИЕ: -0.51 [03:13:27]line ИТОГО: 1000.00 [03:13:27]line Внесено: 1000.00 [03:13:27]line СДАЧА: 0.00 [03:13:27]line НСП 1% : 8.85 [03:13:27]line НДС 12% : 106.25 [03:13:27]line Наличными: 1000.00 [03:13:27]line Безнал.: 0.00 [03:13:27]line Место: АЗС № 86 "Партнер Нефть" [03:13:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:13:27]line СНО: Общий режим [03:13:27]line Чек 31 22.10.2024 03:13 [03:13:27]line Смена: 461 ФФД: 1.0 [03:13:27]line ЗНМ: 0300000155 [03:13:27]line РНМ: 0000000000100030 [03:13:27]line Версия ККМ: 001 [03:13:27]line ФМ: 0000000000965340 [03:13:27]line ФД: 188002 [03:13:27]line ФПД: 78097419890455 [03:13:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188002&fm=78097419890455&tin=02508201610067®Number=0000000000100030&sum=100000 [03:13:27]written 0, free lines is 4095 [03:13:27]OFD Sender: Processing packet 188002 [packets to send 1062, broken 1061] [03:13:27]ProducePacketName [03:13:27]name=ofd_packets/00188002 [03:13:27]OFD Sender: To server: pG, [03:13:27]CommunicateWithHost lk.salyk.kg:30040 [03:13:27]ConnectInit lk.salyk.kg [03:13:27]Connected sock=10 [03:13:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 35 1E 0D 01 92 CD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 56 18 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DE 02 00 35 04 06 00 47 07 78 F8 6F 17 E5 F3 15 DC D6 52 D2 0D [03:13:27]Write to MH i2c: 01 00 00 EE 0D FB [03:13:27]Write i2c OK [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: 01 [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: 01 07 00 [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: 01 07 00 EE 0D 00 00 00 00 00 52 0C 60 [03:13:27]RasterBufferAndPrint [03:13:27]line [03:13:27]line [03:13:27]line [03:13:27]line [03:13:27]line [03:13:27]written 0, free lines is 3159 [03:13:27]MH_Cut [03:13:27]Write to MH i2c: D1 01 00 F5 0D 01 D4 [03:13:27]Write i2c OK [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: D1 [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: D1 01 00 [03:13:27]MH_I2C_Read... [03:13:27]Read from MH i2c: D1 01 00 F5 0D 00 D3 [03:13:27]Write to MH i2c: 01 00 00 F6 0D 03 [03:13:27]Write i2c OK [03:13:27]MH_I2C_Read... [03:13:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FF 1A 47 00 C9 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DE 02 00 F4 03 04 00 45 C2 16 67 B6 04 01 00 00 57 E2 AC A2 4E 5B F3 B2 [03:13:27]CommunicateWithHost err = 0 [03:13:27]CheckOFDResponse [03:13:27]1017 (14) - 77093643461234 [03:13:27]1041 (16) - 0000000000965340 [03:13:27]1040 (4) - 188002 [03:13:27]1012 (4) - 21.10.2024 21:06 [03:13:27]1206 (1) - 0 [03:13:27]OFD Sender: Remove packet 188002 [03:13:27]ProducePacketName [03:13:27]name=ofd_packets/00188002 [03:13:27]NVStorageDeleteData [03:13:28]OFD Sender: No OFD packet to send [03:13:28]*** Cut start [03:13:28]*** Partial cut [03:13:28]*** CUTSNS_PIN = 1 [03:13:28]*** CUTSNS_PIN = 0 [03:13:29]*** Brake cut motor [03:13:29]Read from MH i2c: 01 [03:13:29]MH_I2C_Read... [03:13:29]*** Stop cut motor [03:13:29]*** Cut end [03:13:29]Read from MH i2c: 01 07 00 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: 01 07 00 F6 0D 00 00 00 00 00 FF 0F 18 [03:13:29]process_action close_receipt done [03:13:29]requested_data is exist [03:13:29]produce_requested_data [03:13:29]requested_item fm.sn is exist - process it [03:13:29]wFMCommunicate request_size=4 [03:13:29]MH_SAM_APDU [03:13:29]CAPDU: 80 11 00 00 [03:13:29]Write to MH i2c: E2 08 00 F7 0D 80 11 00 00 00 00 00 00 7E [03:13:29]Write i2c OK [03:13:29]MH_I2C_Read... [03:13:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:13:29]Read from MH i2c: E2 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: E2 17 00 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: E2 17 00 F7 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [03:13:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:13:29]wFMCommunicate OK [03:13:29]requested_item fd.num is exist - process it [03:13:29]SAM_PROTO_GetFieldsCounters [03:13:29]wFMCommunicate request_size=4 [03:13:29]MH_SAM_APDU [03:13:29]CAPDU: 80 13 00 00 [03:13:29]Write to MH i2c: E2 08 00 F8 0D 80 13 00 00 00 00 00 00 81 [03:13:29]Write i2c OK [03:13:29]MH_I2C_Read... [03:13:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:13:29]Read from MH i2c: E2 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: E2 62 00 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: E2 62 00 F8 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 DE 02 00 0E 04 04 00 CD 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 F5 [03:13:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 DE 02 00 0E 04 04 00 CD 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 [03:13:29]wFMCommunicate OK [03:13:29]SAM_PROTO_GetFieldsCounters done [03:13:29]requested_item shift.num is exist - process it [03:13:29]requested_item shift.opened is exist - process it [03:13:29]req_shift_opened [03:13:29]FM_GetShiftState [03:13:29]SAM_PROTO_GetShiftState [03:13:29]wFMCommunicate request_size=4 [03:13:29]MH_SAM_APDU [03:13:29]CAPDU: 80 13 01 00 [03:13:29]Write to MH i2c: E2 08 00 F9 0D 80 13 01 00 00 00 00 00 83 [03:13:29]Write i2c OK [03:13:29]MH_I2C_Read... [03:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:13:29]Read from MH i2c: E2 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: E2 0E 00 [03:13:29]MH_I2C_Read... [03:13:29]Read from MH i2c: E2 0E 00 F9 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 78 [03:13:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:13:29]wFMCommunicate OK [03:13:29]SAM_PROTO_GetShiftState done [03:13:29]FM_GetShiftState done [03:13:29]req_shift_opened done [03:13:29]requested_item shift.open_date is exist - process it [03:13:29]req_shift_open_date [03:13:29]req_shift_open_date done [03:13:29]produce_requested_data done [03:13:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188002,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:13:29]process_action_free close_receipt [03:13:29]json_value_free [03:13:29]json_value_free done [03:13:29]process_json_proto returns [03:13:29]Send response to host [03:13:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188002,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:13:29]free response buf [03:13:29]execute_script done [03:13:29]execute_script returns [03:13:29]free content buf [03:13:29]Sock 9.Close socket [03:13:29]Sock 9.Thread stoped [03:13:33]OFD Sender: No OFD packet to send [03:13:38]OFD Sender: No OFD packet to send [03:13:43]OFD Sender: No OFD packet to send [03:13:48]OFD Sender: No OFD packet to send [03:13:53]OFD Sender: No OFD packet to send [03:13:58]OFD Sender: No OFD packet to send [03:14:03]OFD Sender: No OFD packet to send [03:14:08]OFD Sender: No OFD packet to send [03:14:13]OFD Sender: No OFD packet to send [03:14:18]OFD Sender: No OFD packet to send [03:14:23]OFD Sender: No OFD packet to send [03:14:28]OFD Sender: No OFD packet to send [03:14:33]OFD Sender: No OFD packet to send [03:14:38]OFD Sender: No OFD packet to send [03:14:43]OFD Sender: No OFD packet to send [03:14:48]OFD Sender: No OFD packet to send [03:14:53]OFD Sender: No OFD packet to send [03:14:58]OFD Sender: No OFD packet to send [03:15:03]OFD Sender: No OFD packet to send [03:15:08]OFD Sender: No OFD packet to send [03:15:13]OFD Sender: No OFD packet to send [03:15:18]OFD Sender: No OFD packet to send [03:15:23]OFD Sender: No OFD packet to send [03:15:28]OFD Sender: No OFD packet to send [03:15:33]OFD Sender: No OFD packet to send [03:15:38]OFD Sender: No OFD packet to send [03:15:43]OFD Sender: No OFD packet to send [03:15:48]OFD Sender: No OFD packet to send [03:15:53]OFD Sender: No OFD packet to send [03:15:58]OFD Sender: No OFD packet to send [03:16:03]OFD Sender: No OFD packet to send [03:16:08]OFD Sender: No OFD packet to send [03:16:13]OFD Sender: No OFD packet to send [03:16:18]OFD Sender: No OFD packet to send [03:16:23]OFD Sender: No OFD packet to send [03:16:29]OFD Sender: No OFD packet to send [03:16:34]OFD Sender: No OFD packet to send [03:16:39]OFD Sender: No OFD packet to send [03:16:44]OFD Sender: No OFD packet to send [03:16:49]OFD Sender: No OFD packet to send [03:16:54]OFD Sender: No OFD packet to send [03:16:59]OFD Sender: No OFD packet to send [03:17:04]OFD Sender: No OFD packet to send [03:17:09]OFD Sender: No OFD packet to send [03:17:14]OFD Sender: No OFD packet to send [03:17:19]OFD Sender: No OFD packet to send [03:17:24]OFD Sender: No OFD packet to send [03:17:29]OFD Sender: No OFD packet to send [03:17:34]OFD Sender: No OFD packet to send [03:17:39]OFD Sender: No OFD packet to send [03:17:44]OFD Sender: No OFD packet to send [03:17:49]OFD Sender: No OFD packet to send [03:17:54]OFD Sender: No OFD packet to send [03:17:56]accept exits with 8 [03:17:56]New connection [03:17:56]New thread 3067055460 created [03:17:56]Thread 3067198820 joined [03:17:56]Waiting for new connection... [03:17:56] Sock 8.Parse request [03:17:56]Sock 8.Check first char [03:17:56]Sock 8.First char is OK [03:17:56]request: POST /json_proto HTTP/1.0 [03:17:56]Method: POST [03:17:56]URL: /json_proto [03:17:56]Method is POST - this is cgi request [03:17:56]url: /json_proto [03:17:56]query_string will be loaded in cgi processing [03:17:56]execute_cgi json_proto POST (null) [03:17:56]execute_cgi path=json_proto method=POST [03:17:56]POST find Content-Length [03:17:56]Host: 172.17.42.131:8080 [03:17:56]Content-Length: 769 [03:17:56]Content-Type: application/json [03:17:56] [03:17:56]POST finish read [03:17:56]Found Content-Length = 769 [03:17:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210054", "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" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:17:56]execute_script... [03:17: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)210054", "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" : 24.260, "sum" : 1800.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1800.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:17:56]POST & json_proto [03:17:56]process_json_proto [03:17:56]json parsed OK: [03:17:56]protocol is kg_v1.0 [03:17:56]action value=close_receipt [03:17:56]process_action close_receipt [03:17:56]cmd_close_receipt [03:17:56]MH_GetDate [03:17:56]Write to MH i2c: F0 00 00 FA 0D F6 [03:17:56]Write i2c OK [03:17:56]MH_I2C_Read... [03:17:56]Read from MH i2c: F0 [03:17:56]MH_I2C_Read... [03:17:56]Read from MH i2c: F0 09 00 [03:17:56]MH_I2C_Read... [03:17:56]Read from MH i2c: F0 09 00 FA 0D 00 65 19 17 67 A0 18 CA 66 E3 [03:17:56]GetLastDocTimeStamp 1729566806 [03:17:56]current date 1729567077 [03:17:56]FM_GetShiftState [03:17:56]SAM_PROTO_GetShiftState [03:17:56]wFMCommunicate request_size=4 [03:17:56]MH_SAM_APDU [03:17:56]CAPDU: 80 13 01 00 [03:17:56]Write to MH i2c: E2 08 00 FB 0D 80 13 01 00 00 00 00 00 85 [03:17:56]Write i2c OK [03:17:56]MH_I2C_Read... [03:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:17:56]Read from MH i2c: E2 [03:17:56]MH_I2C_Read... [03:17:56]Read from MH i2c: E2 0E 00 [03:17:56]MH_I2C_Read... [03:17:56]Read from MH i2c: E2 0E 00 FB 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7A [03:17:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:17:56]wFMCommunicate OK [03:17:56]SAM_PROTO_GetShiftState done [03:17:56]FM_GetShiftState done [03:17:56]opened in 1729556094 [03:17:56]opened+sec_in_day 1729642494 [03:17:56]quantity*price = 180009 [03:17:56]sum+1 = 180010 [03:17:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1800.09 НСП 1% : 15.93 НДС 12% : 191.16 Наличными: 0.00 Безнал.: 1800.09 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 32 22.10.2024 03:17 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188003 ФПД: 90489734843658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031757&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188003&fm=90489734843658&tin=02508201610067®Number=0000000000100030&sum=180009 [03:17:57]StoreToDocumentArchive [03:17:57]shift 461 fd 188003 [03:17:57]save to /storage/0461/doc_00188003 [03:17:57]save last doc name /storage/0461/doc_00188003 to /storage/kkm_last_doc_name [03:17:57]save OK [03:17:57]Clear old archive folders... [03:17:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:17:57]tlvbuf is 01BC8F50 [03:17:57]SAM_PROTO_ClearQueue [03:17:57]wFMCommunicate request_size=4 [03:17:57]MH_SAM_APDU [03:17:57]CAPDU: 80 09 00 00 [03:17:57]Write to MH i2c: E2 08 00 08 0E 80 09 00 00 00 00 00 00 88 [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:17:57]Read from MH i2c: E2 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 08 0E 00 90 00 8A [03:17:57]RAPDU: 90 00 [03:17:57]wFMCommunicate OK [03:17:57]SAM_PROTO_ClearQueue done [03:17:57]KKMCreateOFDPacket [03:17:57]OFDProtocolAddRootSTLVToBuf [03:17:57]FM_MakeSignedData [03:17:57]FM_MakeSignedData [03:17:57]SAM_PROTO_SignData [03:17:57]wFMCommunicate request_size=4 [03:17:57]MH_SAM_APDU [03:17:57]CAPDU: 80 0D 01 02 [03:17:57]Write to MH i2c: E2 08 00 09 0E 80 0D 01 02 00 00 00 00 90 [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:17:57]Read from MH i2c: E2 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 09 0E 00 90 00 8B [03:17:57]RAPDU: 90 00 [03:17:57]wFMCommunicate OK [03:17:57]wFMCommunicate request_size=255 [03:17:57]MH_SAM_APDU [03:17: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 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 65 19 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DE 02 00 35 04 06 00 52 [03:17:57]Write to MH i2c: E2 02 01 0A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 65 19 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DE 02 00 35 04 06 00 52 00 00 2E [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:57]Read from MH i2c: E2 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 0A 0E 00 90 00 8C [03:17:57]RAPDU: 90 00 [03:17:57]wFMCommunicate OK [03:17:57]wFMCommunicate request_size=10 [03:17:57]MH_SAM_APDU [03:17:57]CAPDU: 80 0D 02 02 05 4C C8 80 4D 0A [03:17:57]Write to MH i2c: E2 0D 00 0B 0E 80 0D 02 02 05 00 4C C8 80 4D 0A 00 00 88 [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:17:57]Read from MH i2c: E2 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 03 00 0B 0E 00 90 00 8D [03:17:57]RAPDU: 90 00 [03:17:57]wFMCommunicate OK [03:17:57]wFMCommunicate request_size=4 [03:17:57]MH_SAM_APDU [03:17:57]CAPDU: 80 0D 03 02 [03:17:57]Write to MH i2c: E2 08 00 0C 0E 80 0D 03 02 00 00 00 00 95 [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:17:57]Read from MH i2c: E2 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 0B 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 0B 00 0C 0E 00 F7 66 26 29 6D 8C 67 39 90 00 DB [03:17:57]RAPDU: F7 66 26 29 6D 8C 67 39 90 00 [03:17:57]wFMCommunicate OK [03:17:57]SAM_PROTO_SignData done [03:17:57]FM_MakeSignedData done [03:17:57]CreateOFDProtocolMessage [03:17:57]wFMCommunicate request_size=4 [03:17:57]MH_SAM_APDU [03:17:57]CAPDU: 80 11 00 00 [03:17:57]Write to MH i2c: E2 08 00 0D 0E 80 11 00 00 00 00 00 00 95 [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:17:57]Read from MH i2c: E2 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 17 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: E2 17 00 0D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [03:17:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:17:57]wFMCommunicate OK [03:17:57]CreateOFDProtocolMessage done [03:17:57]OFDSenderStorePacket 188003 [03:17:57]StoreOFDPacket docnum=188003 [03:17:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7A 9A 07 01 25 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 65 19 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DE 02 00 35 04 06 00 52 4C C8 80 4D 0A F7 66 26 29 6D 8C 67 39 [03:17:57]CheckFolder [03:17:57]dirname=/storage/ofd_packets [03:17:57]CheckFolder done [03:17:57]ProducePacketName [03:17:57]name=ofd_packets/00188003 [03:17:57]NVStorageSaveData ofd_packets/00188003 [03:17:57]File name is /storage/ofd_packets/00188003 [03:17:57]Write 301 bytes [03:17:57]NVStorageSaveData done [03:17:57]OFDSenderStorePacket done [03:17:57]KKMCreateOFDPacket done [03:17:57]NVStorageSaveData kkm_last_timestamp [03:17:57]File name is /storage/kkm_last_timestamp [03:17:57]Write 4 bytes [03:17:57]NVStorageSaveData done [03:17:57]ExternCall_PrintAddStr [03:17:57]wPrintStart [03:17:57]Write to MH i2c: 01 00 00 0E 0E 1C [03:17:57]Write i2c OK [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: 01 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: 01 07 00 [03:17:57]MH_I2C_Read... [03:17:57]Read from MH i2c: 01 07 00 0E 0E 00 00 00 00 00 FF 0F 31 [03:17:57]RasterBufferAndPrint [03:17:57]line Счет N : (1)210054 [03:17:57]line ИНН: 02508201610067 [03:17:57]line Контрольно-Кассовый Чек [03:17:57]line ПРОДАЖА [03:17:57]line ТРК (МРК, ГНК) : 43 [03:17:57]line Товар: 2710124500 [03:17:57]line Аи-95-К-3 [03:17:57]line 24.260 * 74.20 [03:17:57]line = 1800.09 [03:17:57]line НДС 12% НСП 1% [03:17:57]line > о реализуемом товаре [03:17:57]line ИТОГО: 1800.09 [03:17:57]line НСП 1% : 15.93 [03:17:57]line НДС 12% : 191.16 [03:17:57]line Наличными: 0.00 [03:17:57]line Безнал.: 1800.09 [03:17:57]line Место: АЗС № 86 "Партнер Нефть" [03:17:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:17:57]line СНО: Общий режим [03:17:57]line Чек 32 22.10.2024 03:17 [03:17:57]line Смена: 461 ФФД: 1.0 [03:17:57]line ЗНМ: 0300000155 [03:17:57]line РНМ: 0000000000100030 [03:17:57]line Версия ККМ: 001 [03:17:57]line Платежная система: Mbank [03:17:57]line ФМ: 0000000000965340 [03:17:57]line ФД: 188003 [03:17:57]line ФПД: 90489734843658 [03:17:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T031757&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188003&fm=90489734843658&tin=02508201610067®Number=0000000000100030&sum=180009 [03:17:57]written 0, free lines is 4095 [03:17:57]OFD Sender: Processing packet 188003 [packets to send 1062, broken 1061] [03:17:57]ProducePacketName [03:17:57]name=ofd_packets/00188003 [03:17:57]OFD Sender: To server: pG, [03:17:57]CommunicateWithHost lk.salyk.kg:30040 [03:17:57]ConnectInit lk.salyk.kg [03:17:58]Connected sock=10 [03:17:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7A 9A 07 01 25 72 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 C4 5E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 29 BF 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 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 AC 4A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 BF 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 00 00 00 F4 03 04 00 65 19 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DE 02 00 35 04 06 00 52 4C C8 80 4D 0A F7 66 26 29 6D 8C 67 39 [03:17:58]Write to MH i2c: 01 00 00 37 0E 45 [03:17:58]Write i2c OK [03:17:58]MH_I2C_Read... [03:17:58]Read from MH i2c: 01 [03:17:58]MH_I2C_Read... [03:17:58]Read from MH i2c: 01 07 00 [03:17:58]MH_I2C_Read... [03:17:58]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 8C 0C E4 [03:17:58]RasterBufferAndPrint [03:17:58]line [03:17:58]line [03:17:58]line [03:17:58]line [03:17:58]line [03:17:58]written 0, free lines is 3217 [03:17:58]MH_Cut [03:17:58]Write to MH i2c: D1 01 00 3E 0E 01 1E [03:17:58]Write i2c OK [03:17:58]MH_I2C_Read... [03:17:58]Read from MH i2c: D1 [03:17:58]MH_I2C_Read... [03:17:58]Read from MH i2c: D1 01 00 [03:17:58]MH_I2C_Read... [03:17:58]Read from MH i2c: D1 01 00 3E 0E 00 1D [03:17:58]Write to MH i2c: 01 00 00 3F 0E 4D [03:17:58]Write i2c OK [03:17:58]MH_I2C_Read... [03:17:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 79 AC 47 00 69 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DE 02 00 F4 03 04 00 53 C3 16 67 B6 04 01 00 00 5D CE 8F A3 41 C2 5D E5 [03:17:58]CommunicateWithHost err = 0 [03:17:58]CheckOFDResponse [03:17:58]1017 (14) - 77093643461234 [03:17:58]1041 (16) - 0000000000965340 [03:17:58]1040 (4) - 188003 [03:17:58]1012 (4) - 21.10.2024 21:10 [03:17:58]1206 (1) - 0 [03:17:58]OFD Sender: Remove packet 188003 [03:17:58]ProducePacketName [03:17:58]name=ofd_packets/00188003 [03:17:58]NVStorageDeleteData [03:17:58]OFD Sender: No OFD packet to send [03:17:59]*** Cut start [03:17:59]*** Partial cut [03:17:59]*** CUTSNS_PIN = 1 [03:17:59]*** CUTSNS_PIN = 0 [03:17:59]*** Brake cut motor [03:18:00]Read from MH i2c: 01 [03:18:00]MH_I2C_Read... [03:18:00]*** Stop cut motor [03:18:00]*** Cut end [03:18:00]Read from MH i2c: 01 07 00 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: 01 07 00 3F 0E 00 00 00 00 00 FF 0F 62 [03:18:00]process_action close_receipt done [03:18:00]requested_data is exist [03:18:00]produce_requested_data [03:18:00]requested_item fm.sn is exist - process it [03:18:00]wFMCommunicate request_size=4 [03:18:00]MH_SAM_APDU [03:18:00]CAPDU: 80 11 00 00 [03:18:00]Write to MH i2c: E2 08 00 40 0E 80 11 00 00 00 00 00 00 C8 [03:18:00]Write i2c OK [03:18:00]MH_I2C_Read... [03:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:18:00]Read from MH i2c: E2 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: E2 17 00 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: E2 17 00 40 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [03:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:18:00]wFMCommunicate OK [03:18:00]requested_item fd.num is exist - process it [03:18:00]SAM_PROTO_GetFieldsCounters [03:18:00]wFMCommunicate request_size=4 [03:18:00]MH_SAM_APDU [03:18:00]CAPDU: 80 13 00 00 [03:18:00]Write to MH i2c: E2 08 00 41 0E 80 13 00 00 00 00 00 00 CB [03:18:00]Write i2c OK [03:18:00]MH_I2C_Read... [03:18:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:18:00]Read from MH i2c: E2 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: E2 62 00 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: E2 62 00 41 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 DE 02 00 0E 04 04 00 CD 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 43 [03:18:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 DE 02 00 0E 04 04 00 CD 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 [03:18:00]wFMCommunicate OK [03:18:00]SAM_PROTO_GetFieldsCounters done [03:18:00]requested_item shift.num is exist - process it [03:18:00]requested_item shift.opened is exist - process it [03:18:00]req_shift_opened [03:18:00]FM_GetShiftState [03:18:00]SAM_PROTO_GetShiftState [03:18:00]wFMCommunicate request_size=4 [03:18:00]MH_SAM_APDU [03:18:00]CAPDU: 80 13 01 00 [03:18:00]Write to MH i2c: E2 08 00 42 0E 80 13 01 00 00 00 00 00 CD [03:18:00]Write i2c OK [03:18:00]MH_I2C_Read... [03:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:18:00]Read from MH i2c: E2 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: E2 0E 00 [03:18:00]MH_I2C_Read... [03:18:00]Read from MH i2c: E2 0E 00 42 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C2 [03:18:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:18:00]wFMCommunicate OK [03:18:00]SAM_PROTO_GetShiftState done [03:18:00]FM_GetShiftState done [03:18:00]req_shift_opened done [03:18:00]requested_item shift.open_date is exist - process it [03:18:00]req_shift_open_date [03:18:00]req_shift_open_date done [03:18:00]produce_requested_data done [03:18:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188003,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:18:00]process_action_free close_receipt [03:18:00]json_value_free [03:18:00]json_value_free done [03:18:00]process_json_proto returns [03:18:00]Send response to host [03:18:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188003,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:18:00]free response buf [03:18:00]execute_script done [03:18:00]execute_script returns [03:18:00]free content buf [03:18:00]Sock 8.Close socket [03:18:00]Sock 8.Thread stoped [03:18:03]OFD Sender: No OFD packet to send [03:18:08]OFD Sender: No OFD packet to send [03:18:13]OFD Sender: No OFD packet to send [03:18:19]OFD Sender: No OFD packet to send [03:18:24]OFD Sender: No OFD packet to send [03:18:29]OFD Sender: No OFD packet to send [03:18:34]OFD Sender: No OFD packet to send [03:18:39]OFD Sender: No OFD packet to send [03:18:44]OFD Sender: No OFD packet to send [03:18:49]OFD Sender: No OFD packet to send [03:18:54]OFD Sender: No OFD packet to send [03:18:59]OFD Sender: No OFD packet to send [03:19:04]OFD Sender: No OFD packet to send [03:19:09]OFD Sender: No OFD packet to send [03:19:14]OFD Sender: No OFD packet to send [03:19:19]OFD Sender: No OFD packet to send [03:19:24]OFD Sender: No OFD packet to send [03:19:29]OFD Sender: No OFD packet to send [03:19:34]OFD Sender: No OFD packet to send [03:19:39]OFD Sender: No OFD packet to send [03:19:44]OFD Sender: No OFD packet to send [03:19:49]OFD Sender: No OFD packet to send [03:19:54]OFD Sender: No OFD packet to send [03:19:59]OFD Sender: No OFD packet to send [03:20:04]OFD Sender: No OFD packet to send [03:20:09]OFD Sender: No OFD packet to send [03:20:14]OFD Sender: No OFD packet to send [03:20:19]OFD Sender: No OFD packet to send [03:20:24]OFD Sender: No OFD packet to send [03:20:29]OFD Sender: No OFD packet to send [03:20:34]OFD Sender: No OFD packet to send [03:20:39]OFD Sender: No OFD packet to send [03:20:44]OFD Sender: No OFD packet to send [03:20:49]OFD Sender: No OFD packet to send [03:20:54]OFD Sender: No OFD packet to send [03:20:59]OFD Sender: No OFD packet to send [03:21:04]OFD Sender: No OFD packet to send [03:21:09]OFD Sender: No OFD packet to send [03:21:14]OFD Sender: No OFD packet to send [03:21:19]OFD Sender: No OFD packet to send [03:21:24]OFD Sender: No OFD packet to send [03:21:27]accept exits with 9 [03:21:27]New connection [03:21:27]New thread 3067198820 created [03:21:27]Thread 3067055460 joined [03:21:27]Waiting for new connection... [03:21:27] Sock 9.Parse request [03:21:27]Sock 9.Check first char [03:21:27]Sock 9.First char is OK [03:21:27]request: POST /json_proto HTTP/1.0 [03:21:27]Method: POST [03:21:27]URL: /json_proto [03:21:27]Method is POST - this is cgi request [03:21:27]url: /json_proto [03:21:27]query_string will be loaded in cgi processing [03:21:27]execute_cgi json_proto POST (null) [03:21:27]execute_cgi path=json_proto method=POST [03:21:27]POST find Content-Length [03:21:27]Host: 172.17.42.131:8080 [03:21:27]Content-Length: 688 [03:21:27]Content-Type: application/json [03:21:27] [03:21:27]POST finish read [03:21:27]Found Content-Length = 688 [03:21:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [03:21:27]execute_script... [03:21: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)210055", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [03:21:27]POST & json_proto [03:21:27]process_json_proto [03:21:27]json parsed OK: [03:21:27]protocol is kg_v1.0 [03:21:27]action value=close_receipt [03:21:27]process_action close_receipt [03:21:27]cmd_close_receipt [03:21:27]MH_GetDate [03:21:27]Write to MH i2c: F0 00 00 43 0E 40 [03:21:27]Write i2c OK [03:21:27]MH_I2C_Read... [03:21:27]Read from MH i2c: F0 [03:21:27]MH_I2C_Read... [03:21:27]Read from MH i2c: F0 09 00 [03:21:27]MH_I2C_Read... [03:21:27]Read from MH i2c: F0 09 00 43 0E 00 39 1A 17 67 A0 18 CA 66 02 [03:21:27]GetLastDocTimeStamp 1729567077 [03:21:27]current date 1729567289 [03:21:27]FM_GetShiftState [03:21:27]SAM_PROTO_GetShiftState [03:21:27]wFMCommunicate request_size=4 [03:21:27]MH_SAM_APDU [03:21:27]CAPDU: 80 13 01 00 [03:21:27]Write to MH i2c: E2 08 00 44 0E 80 13 01 00 00 00 00 00 CF [03:21:27]Write i2c OK [03:21:27]MH_I2C_Read... [03:21:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:27]Read from MH i2c: E2 [03:21:27]MH_I2C_Read... [03:21:27]Read from MH i2c: E2 0E 00 [03:21:27]MH_I2C_Read... [03:21:27]Read from MH i2c: E2 0E 00 44 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C4 [03:21:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:21:27]wFMCommunicate OK [03:21:27]SAM_PROTO_GetShiftState done [03:21:27]FM_GetShiftState done [03:21:27]opened in 1729556094 [03:21:27]opened+sec_in_day 1729642494 [03:21:27]quantity*price = 100051 [03:21:27]sum+1 = 100052 [03:21:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 33 22.10.2024 03:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188004 ФПД: 21314148951010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T032129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188004&fm=21314148951010&tin=02508201610067®Number=0000000000100030&sum=100000 [03:21:28]StoreToDocumentArchive [03:21:28]shift 461 fd 188004 [03:21:28]save to /storage/0461/doc_00188004 [03:21:28]save last doc name /storage/0461/doc_00188004 to /storage/kkm_last_doc_name [03:21:28]save OK [03:21:28]Clear old archive folders... [03:21:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:21:28]tlvbuf is 01BC2510 [03:21:28]SAM_PROTO_ClearQueue [03:21:28]wFMCommunicate request_size=4 [03:21:28]MH_SAM_APDU [03:21:28]CAPDU: 80 09 00 00 [03:21:28]Write to MH i2c: E2 08 00 51 0E 80 09 00 00 00 00 00 00 D1 [03:21:28]Write i2c OK [03:21:28]MH_I2C_Read... [03:21:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:21:28]Read from MH i2c: E2 [03:21:28]MH_I2C_Read... [03:21:28]Read from MH i2c: E2 03 00 [03:21:28]MH_I2C_Read... [03:21:28]Read from MH i2c: E2 03 00 51 0E 00 90 00 D3 [03:21:28]RAPDU: 90 00 [03:21:28]wFMCommunicate OK [03:21:28]SAM_PROTO_ClearQueue done [03:21:28]KKMCreateOFDPacket [03:21:28]OFDProtocolAddRootSTLVToBuf [03:21:28]FM_MakeSignedData [03:21:28]FM_MakeSignedData [03:21:28]SAM_PROTO_SignData [03:21:28]wFMCommunicate request_size=4 [03:21:28]MH_SAM_APDU [03:21:28]CAPDU: 80 0D 01 02 [03:21:28]Write to MH i2c: E2 08 00 52 0E 80 0D 01 02 00 00 00 00 D9 [03:21:28]Write i2c OK [03:21:28]MH_I2C_Read... [03:21:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:21:29]Read from MH i2c: E2 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 03 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 03 00 52 0E 00 90 00 D4 [03:21:29]RAPDU: 90 00 [03:21:29]wFMCommunicate OK [03:21:29]wFMCommunicate request_size=255 [03:21:29]MH_SAM_APDU [03:21:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 39 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DE 02 [03:21:29]Write to MH i2c: E2 02 01 53 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 39 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DE 02 00 00 3A [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:29]Read from MH i2c: E2 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 03 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 03 00 53 0E 00 90 00 D5 [03:21:29]RAPDU: 90 00 [03:21:29]wFMCommunicate OK [03:21:29]wFMCommunicate request_size=16 [03:21:29]MH_SAM_APDU [03:21:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 13 62 96 46 E3 E2 [03:21:29]Write to MH i2c: E2 13 00 54 0E 80 0D 02 02 0B 00 00 35 04 06 00 13 62 96 46 E3 E2 00 00 47 [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:21:29]Read from MH i2c: E2 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 03 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 03 00 54 0E 00 90 00 D6 [03:21:29]RAPDU: 90 00 [03:21:29]wFMCommunicate OK [03:21:29]wFMCommunicate request_size=4 [03:21:29]MH_SAM_APDU [03:21:29]CAPDU: 80 0D 03 02 [03:21:29]Write to MH i2c: E2 08 00 55 0E 80 0D 03 02 00 00 00 00 DE [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:21:29]Read from MH i2c: E2 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 0B 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 0B 00 55 0E 00 2B F4 65 87 FD 96 AD 75 90 00 9F [03:21:29]RAPDU: 2B F4 65 87 FD 96 AD 75 90 00 [03:21:29]wFMCommunicate OK [03:21:29]SAM_PROTO_SignData done [03:21:29]FM_MakeSignedData done [03:21:29]CreateOFDProtocolMessage [03:21:29]wFMCommunicate request_size=4 [03:21:29]MH_SAM_APDU [03:21:29]CAPDU: 80 11 00 00 [03:21:29]Write to MH i2c: E2 08 00 56 0E 80 11 00 00 00 00 00 00 DE [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:29]Read from MH i2c: E2 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 17 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: E2 17 00 56 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [03:21:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:21:29]wFMCommunicate OK [03:21:29]CreateOFDProtocolMessage done [03:21:29]OFDSenderStorePacket 188004 [03:21:29]StoreOFDPacket docnum=188004 [03:21:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 50 FC 0D 01 66 ED 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 39 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DE 02 00 35 04 06 00 13 62 96 46 E3 E2 2B F4 65 87 FD 96 AD 75 [03:21:29]CheckFolder [03:21:29]dirname=/storage/ofd_packets [03:21:29]CheckFolder done [03:21:29]ProducePacketName [03:21:29]name=ofd_packets/00188004 [03:21:29]NVStorageSaveData ofd_packets/00188004 [03:21:29]File name is /storage/ofd_packets/00188004 [03:21:29]Write 307 bytes [03:21:29]NVStorageSaveData done [03:21:29]OFDSenderStorePacket done [03:21:29]KKMCreateOFDPacket done [03:21:29]NVStorageSaveData kkm_last_timestamp [03:21:29]File name is /storage/kkm_last_timestamp [03:21:29]Write 4 bytes [03:21:29]NVStorageSaveData done [03:21:29]ExternCall_PrintAddStr [03:21:29]wPrintStart [03:21:29]Write to MH i2c: 01 00 00 57 0E 65 [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: 01 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: 01 07 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: 01 07 00 57 0E 00 00 00 00 00 FF 0F 7A [03:21:29]RasterBufferAndPrint [03:21:29]line Счет N : (1)210055 [03:21:29]line ИНН: 02508201610067 [03:21:29]line Контрольно-Кассовый Чек [03:21:29]line ПРОДАЖА [03:21:29]line ТРК (МРК, ГНК) : 31 [03:21:29]line Товар: 2710194210 [03:21:29]line D-ENERGY ДТ-К-5 [03:21:29]line 12.960 * 77.20 [03:21:29]line = 1000.51 [03:21:29]line НДС 12% НСП 1% [03:21:29]line > о реализуемом товаре [03:21:29]line ОКРУГЛЕНИЕ: -0.51 [03:21:29]line ИТОГО: 1000.00 [03:21:29]line Внесено: 1000.00 [03:21:29]line СДАЧА: 0.00 [03:21:29]line НСП 1% : 8.85 [03:21:29]line НДС 12% : 106.25 [03:21:29]line Наличными: 1000.00 [03:21:29]line Безнал.: 0.00 [03:21:29]line Место: АЗС № 86 "Партнер Нефть" [03:21:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:21:29]line СНО: Общий режим [03:21:29]line Чек 33 22.10.2024 03:21 [03:21:29]line Смена: 461 ФФД: 1.0 [03:21:29]line ЗНМ: 0300000155 [03:21:29]line РНМ: 0000000000100030 [03:21:29]line Версия ККМ: 001 [03:21:29]line ФМ: 0000000000965340 [03:21:29]line ФД: 188004 [03:21:29]line ФПД: 21314148951010 [03:21:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T032129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188004&fm=21314148951010&tin=02508201610067®Number=0000000000100030&sum=100000 [03:21:29]written 0, free lines is 4095 [03:21:29]OFD Sender: Processing packet 188004 [packets to send 1062, broken 1061] [03:21:29]ProducePacketName [03:21:29]name=ofd_packets/00188004 [03:21:29]OFD Sender: To server: pG, [03:21:29]CommunicateWithHost lk.salyk.kg:30040 [03:21:29]ConnectInit lk.salyk.kg [03:21:29]Connected sock=10 [03:21:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 50 FC 0D 01 66 ED 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 21 00 00 00 F4 03 04 00 39 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DE 02 00 35 04 06 00 13 62 96 46 E3 E2 2B F4 65 87 FD 96 AD 75 [03:21:29]Write to MH i2c: 01 00 00 82 0E 90 [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: 01 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: 01 07 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 4C 0C EF [03:21:29]RasterBufferAndPrint [03:21:29]line [03:21:29]line [03:21:29]line [03:21:29]line [03:21:29]line [03:21:29]written 0, free lines is 3152 [03:21:29]MH_Cut [03:21:29]Write to MH i2c: D1 01 00 89 0E 01 69 [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: D1 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: D1 01 00 [03:21:29]MH_I2C_Read... [03:21:29]Read from MH i2c: D1 01 00 89 0E 00 68 [03:21:29]Write to MH i2c: 01 00 00 8A 0E 98 [03:21:29]Write i2c OK [03:21:29]MH_I2C_Read... [03:21:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 12 47 00 A4 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 39 36 35 33 34 30 10 04 04 00 64 DE 02 00 F4 03 04 00 27 C4 16 67 B6 04 01 00 00 A2 EB 59 89 E7 57 BE 49 [03:21:29]CommunicateWithHost err = 0 [03:21:29]CheckOFDResponse [03:21:29]1017 (14) - 77093643461234 [03:21:29]1041 (16) - 0000000000965340 [03:21:29]1040 (4) - 188004 [03:21:29]1012 (4) - 21.10.2024 21:14 [03:21:29]1206 (1) - 0 [03:21:29]OFD Sender: Remove packet 188004 [03:21:29]ProducePacketName [03:21:29]name=ofd_packets/00188004 [03:21:29]NVStorageDeleteData [03:21:30]OFD Sender: No OFD packet to send [03:21:31]*** Cut start [03:21:31]*** Partial cut [03:21:31]*** CUTSNS_PIN = 1 [03:21:31]*** CUTSNS_PIN = 0 [03:21:31]*** Brake cut motor [03:21:31]Read from MH i2c: 01 [03:21:31]MH_I2C_Read... [03:21:31]*** Stop cut motor [03:21:31]*** Cut end [03:21:31]Read from MH i2c: 01 07 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: 01 07 00 8A 0E 00 00 00 00 00 FF 0F AD [03:21:31]process_action close_receipt done [03:21:31]requested_data is exist [03:21:31]produce_requested_data [03:21:31]requested_item fm.sn is exist - process it [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 11 00 00 [03:21:31]Write to MH i2c: E2 08 00 8B 0E 80 11 00 00 00 00 00 00 13 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:21:31]Read from MH i2c: E2 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 17 00 [03:21:31]MH_I2C_Read... [03:21:31]Read from MH i2c: E2 17 00 8B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [03:21:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:21:31]wFMCommunicate OK [03:21:31]requested_item fd.num is exist - process it [03:21:31]SAM_PROTO_GetFieldsCounters [03:21:31]wFMCommunicate request_size=4 [03:21:31]MH_SAM_APDU [03:21:31]CAPDU: 80 13 00 00 [03:21:31]Write to MH i2c: E2 08 00 8C 0E 80 13 00 00 00 00 00 00 16 [03:21:31]Write i2c OK [03:21:31]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:21:32]Read from MH i2c: E2 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 62 00 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 62 00 8C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 DE 02 00 0E 04 04 00 CD 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 92 [03:21:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 DE 02 00 0E 04 04 00 CD 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 [03:21:32]wFMCommunicate OK [03:21:32]SAM_PROTO_GetFieldsCounters done [03:21:32]requested_item shift.num is exist - process it [03:21:32]requested_item shift.opened is exist - process it [03:21:32]req_shift_opened [03:21:32]FM_GetShiftState [03:21:32]SAM_PROTO_GetShiftState [03:21:32]wFMCommunicate request_size=4 [03:21:32]MH_SAM_APDU [03:21:32]CAPDU: 80 13 01 00 [03:21:32]Write to MH i2c: E2 08 00 8D 0E 80 13 01 00 00 00 00 00 18 [03:21:32]Write i2c OK [03:21:32]MH_I2C_Read... [03:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:21:32]Read from MH i2c: E2 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 0E 00 [03:21:32]MH_I2C_Read... [03:21:32]Read from MH i2c: E2 0E 00 8D 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0D [03:21:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:21:32]wFMCommunicate OK [03:21:32]SAM_PROTO_GetShiftState done [03:21:32]FM_GetShiftState done [03:21:32]req_shift_opened done [03:21:32]requested_item shift.open_date is exist - process it [03:21:32]req_shift_open_date [03:21:32]req_shift_open_date done [03:21:32]produce_requested_data done [03:21:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188004,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:21:32]process_action_free close_receipt [03:21:32]json_value_free [03:21:32]json_value_free done [03:21:32]process_json_proto returns [03:21:32]Send response to host [03:21:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188004,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:21:32]free response buf [03:21:32]execute_script done [03:21:32]execute_script returns [03:21:32]free content buf [03:21:32]Sock 9.Close socket [03:21:32]Sock 9.Thread stoped [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]accept exits with 8 [03:22:05]New connection [03:22:05]New thread 3067055460 created [03:22:05]Thread 3067198820 joined [03:22:05]Waiting for new connection... [03:22:05] Sock 8.Parse request [03:22:05]Sock 8.Check first char [03:22:05]Sock 8.First char is OK [03:22:05]request: POST /json_proto HTTP/1.0 [03:22:05]Method: POST [03:22:05]URL: /json_proto [03:22:05]Method is POST - this is cgi request [03:22:05]url: /json_proto [03:22:05]query_string will be loaded in cgi processing [03:22:05]execute_cgi json_proto POST (null) [03:22:05]execute_cgi path=json_proto method=POST [03:22:05]POST find Content-Length [03:22:05]Host: 172.17.42.131:8080 [03:22:05]Content-Length: 682 [03:22:05]Content-Type: application/json [03:22:05] [03:22:05]POST finish read [03:22:05]Found Content-Length = 682 [03:22:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [03:22:05]execute_script... [03:22: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)210056", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [03:22:05]POST & json_proto [03:22:05]process_json_proto [03:22:05]json parsed OK: [03:22:05]protocol is kg_v1.0 [03:22:05]action value=close_receipt [03:22:05]process_action close_receipt [03:22:05]cmd_close_receipt [03:22:05]MH_GetDate [03:22:05]Write to MH i2c: F0 00 00 8E 0E 8B [03:22:05]Write i2c OK [03:22:05]MH_I2C_Read... [03:22:05]Read from MH i2c: F0 [03:22:05]MH_I2C_Read... [03:22:05]Read from MH i2c: F0 09 00 [03:22:05]MH_I2C_Read... [03:22:05]Read from MH i2c: F0 09 00 8E 0E 00 5E 1A 17 67 A0 18 CA 66 72 [03:22:05]GetLastDocTimeStamp 1729567289 [03:22:05]current date 1729567326 [03:22:05]FM_GetShiftState [03:22:05]SAM_PROTO_GetShiftState [03:22:05]wFMCommunicate request_size=4 [03:22:05]MH_SAM_APDU [03:22:05]CAPDU: 80 13 01 00 [03:22:05]Write to MH i2c: E2 08 00 8F 0E 80 13 01 00 00 00 00 00 1A [03:22:05]Write i2c OK [03:22:05]MH_I2C_Read... [03:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:05]Read from MH i2c: E2 [03:22:05]MH_I2C_Read... [03:22:05]Read from MH i2c: E2 0E 00 [03:22:05]MH_I2C_Read... [03:22:05]Read from MH i2c: E2 0E 00 8F 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0F [03:22:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:22:05]wFMCommunicate OK [03:22:05]SAM_PROTO_GetShiftState done [03:22:05]FM_GetShiftState done [03:22:05]opened in 1729556094 [03:22:05]opened+sec_in_day 1729642494 [03:22:05]quantity*price = 200031 [03:22:05]sum+1 = 200032 [03:22:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 34 22.10.2024 03:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188005 ФПД: 125927361896841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T032206&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188005&fm=125927361896841&tin=02508201610067®Number=0000000000100030&sum=200000 [03:22:06]StoreToDocumentArchive [03:22:06]shift 461 fd 188005 [03:22:06]save to /storage/0461/doc_00188005 [03:22:06]save last doc name /storage/0461/doc_00188005 to /storage/kkm_last_doc_name [03:22:06]save OK [03:22:06]Clear old archive folders... [03:22:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:22:06]tlvbuf is 01B9D620 [03:22:06]SAM_PROTO_ClearQueue [03:22:06]wFMCommunicate request_size=4 [03:22:06]MH_SAM_APDU [03:22:06]CAPDU: 80 09 00 00 [03:22:06]Write to MH i2c: E2 08 00 9C 0E 80 09 00 00 00 00 00 00 1C [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:22:06]Read from MH i2c: E2 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 9C 0E 00 90 00 1E [03:22:06]RAPDU: 90 00 [03:22:06]wFMCommunicate OK [03:22:06]SAM_PROTO_ClearQueue done [03:22:06]KKMCreateOFDPacket [03:22:06]OFDProtocolAddRootSTLVToBuf [03:22:06]FM_MakeSignedData [03:22:06]FM_MakeSignedData [03:22:06]SAM_PROTO_SignData [03:22:06]wFMCommunicate request_size=4 [03:22:06]MH_SAM_APDU [03:22:06]CAPDU: 80 0D 01 02 [03:22:06]Write to MH i2c: E2 08 00 9D 0E 80 0D 01 02 00 00 00 00 24 [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:22:06]Read from MH i2c: E2 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 9D 0E 00 90 00 1F [03:22:06]RAPDU: 90 00 [03:22:06]wFMCommunicate OK [03:22:06]wFMCommunicate request_size=255 [03:22:06]MH_SAM_APDU [03:22:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 22 00 00 00 F4 03 04 00 5E 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DE 02 00 35 04 06 00 72 [03:22:06]Write to MH i2c: E2 02 01 9E 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 22 00 00 00 F4 03 04 00 5E 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DE 02 00 35 04 06 00 72 00 00 76 [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:06]Read from MH i2c: E2 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 9E 0E 00 90 00 20 [03:22:06]RAPDU: 90 00 [03:22:06]wFMCommunicate OK [03:22:06]wFMCommunicate request_size=10 [03:22:06]MH_SAM_APDU [03:22:06]CAPDU: 80 0D 02 02 05 87 BF AC 61 89 [03:22:06]Write to MH i2c: E2 0D 00 9F 0E 80 0D 02 02 05 00 87 BF AC 61 89 00 00 0D [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:22:06]Read from MH i2c: E2 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 03 00 9F 0E 00 90 00 21 [03:22:06]RAPDU: 90 00 [03:22:06]wFMCommunicate OK [03:22:06]wFMCommunicate request_size=4 [03:22:06]MH_SAM_APDU [03:22:06]CAPDU: 80 0D 03 02 [03:22:06]Write to MH i2c: E2 08 00 A0 0E 80 0D 03 02 00 00 00 00 29 [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:22:06]Read from MH i2c: E2 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 0B 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 0B 00 A0 0E 00 58 8B 5C B7 9F B4 7A DF 90 00 CC [03:22:06]RAPDU: 58 8B 5C B7 9F B4 7A DF 90 00 [03:22:06]wFMCommunicate OK [03:22:06]SAM_PROTO_SignData done [03:22:06]FM_MakeSignedData done [03:22:06]CreateOFDProtocolMessage [03:22:06]wFMCommunicate request_size=4 [03:22:06]MH_SAM_APDU [03:22:06]CAPDU: 80 11 00 00 [03:22:06]Write to MH i2c: E2 08 00 A1 0E 80 11 00 00 00 00 00 00 29 [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:06]Read from MH i2c: E2 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 17 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: E2 17 00 A1 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [03:22:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:22:06]wFMCommunicate OK [03:22:06]CreateOFDProtocolMessage done [03:22:06]OFDSenderStorePacket 188005 [03:22:06]StoreOFDPacket docnum=188005 [03:22:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 1C 07 01 E8 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 22 00 00 00 F4 03 04 00 5E 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DE 02 00 35 04 06 00 72 87 BF AC 61 89 58 8B 5C B7 9F B4 7A DF [03:22:06]CheckFolder [03:22:06]dirname=/storage/ofd_packets [03:22:06]CheckFolder done [03:22:06]ProducePacketName [03:22:06]name=ofd_packets/00188005 [03:22:06]NVStorageSaveData ofd_packets/00188005 [03:22:06]File name is /storage/ofd_packets/00188005 [03:22:06]Write 301 bytes [03:22:06]NVStorageSaveData done [03:22:06]OFDSenderStorePacket done [03:22:06]KKMCreateOFDPacket done [03:22:06]NVStorageSaveData kkm_last_timestamp [03:22:06]File name is /storage/kkm_last_timestamp [03:22:06]Write 4 bytes [03:22:06]NVStorageSaveData done [03:22:06]ExternCall_PrintAddStr [03:22:06]wPrintStart [03:22:06]Write to MH i2c: 01 00 00 A2 0E B0 [03:22:06]Write i2c OK [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: 01 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: 01 07 00 [03:22:06]MH_I2C_Read... [03:22:06]Read from MH i2c: 01 07 00 A2 0E 00 00 00 00 00 FF 0F C5 [03:22:06]RasterBufferAndPrint [03:22:06]line Счет N : (1)210056 [03:22:06]line ИНН: 02508201610067 [03:22:06]line Контрольно-Кассовый Чек [03:22:06]line ПРОДАЖА [03:22:06]line ТРК (МРК, ГНК) : 12 [03:22:06]line Товар: 2710124130 [03:22:06]line Аи-92-К-3 [03:22:06]line 29.900 * 66.90 [03:22:06]line = 2000.31 [03:22:06]line НДС 12% НСП 1% [03:22:06]line > о реализуемом товаре [03:22:06]line ОКРУГЛЕНИЕ: -0.31 [03:22:06]line ИТОГО: 2000.00 [03:22:06]line Внесено: 2000.00 [03:22:06]line СДАЧА: 0.00 [03:22:06]line НСП 1% : 17.70 [03:22:06]line НДС 12% : 212.42 [03:22:06]line Наличными: 2000.00 [03:22:06]line Безнал.: 0.00 [03:22:06]line Место: АЗС № 86 "Партнер Нефть" [03:22:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:22:06]line СНО: Общий режим [03:22:06]line Чек 34 22.10.2024 03:22 [03:22:06]line Смена: 461 ФФД: 1.0 [03:22:06]line ЗНМ: 0300000155 [03:22:06]line РНМ: 0000000000100030 [03:22:06]line Версия ККМ: 001 [03:22:06]line ФМ: 0000000000965340 [03:22:06]line ФД: 188005 [03:22:06]line ФПД: 125927361896841 [03:22:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T032206&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188005&fm=125927361896841&tin=02508201610067®Number=0000000000100030&sum=200000 [03:22:06]OFD Sender: Processing packet 188005 [packets to send 1062, broken 1061] [03:22:06]ProducePacketName [03:22:06]name=ofd_packets/00188005 [03:22:06]OFD Sender: To server: pG, [03:22:06]CommunicateWithHost lk.salyk.kg:30040 [03:22:06]ConnectInit lk.salyk.kg [03:22:06]written 0, free lines is 4095 [03:22:07]Write to MH i2c: 01 00 00 CD 0E DB [03:22:07]Write i2c OK [03:22:07]MH_I2C_Read... [03:22:07]Read from MH i2c: 01 [03:22:07]MH_I2C_Read... [03:22:07]Read from MH i2c: 01 07 00 [03:22:07]MH_I2C_Read... [03:22:07]Read from MH i2c: 01 07 00 CD 0E 00 00 00 00 00 5A 0C 48 [03:22:07]RasterBufferAndPrint [03:22:07]line [03:22:07]line [03:22:07]line [03:22:07]line [03:22:07]line [03:22:07]written 0, free lines is 3165 [03:22:07]MH_Cut [03:22:07]Write to MH i2c: D1 01 00 D4 0E 01 B4 [03:22:07]Write i2c OK [03:22:07]MH_I2C_Read... [03:22:07]Read from MH i2c: D1 [03:22:07]MH_I2C_Read... [03:22:07]Read from MH i2c: D1 01 00 [03:22:07]MH_I2C_Read... [03:22:07]Read from MH i2c: D1 01 00 D4 0E 00 B3 [03:22:07]Write to MH i2c: 01 00 00 D5 0E E3 [03:22:07]Write i2c OK [03:22:07]MH_I2C_Read... [03:22:08]*** Cut start [03:22:08]*** Partial cut [03:22:08]*** CUTSNS_PIN = 1 [03:22:08]*** CUTSNS_PIN = 0 [03:22:08]*** Brake cut motor [03:22:09]Read from MH i2c: 01 [03:22:09]MH_I2C_Read... [03:22:09]*** Stop cut motor [03:22:09]*** Cut end [03:22:09]Read from MH i2c: 01 07 00 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: 01 07 00 D5 0E 00 00 00 00 00 FF 0F F8 [03:22:09]process_action close_receipt done [03:22:09]requested_data is exist [03:22:09]produce_requested_data [03:22:09]requested_item fm.sn is exist - process it [03:22:09]wFMCommunicate request_size=4 [03:22:09]MH_SAM_APDU [03:22:09]CAPDU: 80 11 00 00 [03:22:09]Write to MH i2c: E2 08 00 D6 0E 80 11 00 00 00 00 00 00 5E [03:22:09]Write i2c OK [03:22:09]MH_I2C_Read... [03:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:22:09]Read from MH i2c: E2 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: E2 17 00 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: E2 17 00 D6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [03:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:22:09]wFMCommunicate OK [03:22:09]requested_item fd.num is exist - process it [03:22:09]SAM_PROTO_GetFieldsCounters [03:22:09]wFMCommunicate request_size=4 [03:22:09]MH_SAM_APDU [03:22:09]CAPDU: 80 13 00 00 [03:22:09]Write to MH i2c: E2 08 00 D7 0E 80 13 00 00 00 00 00 00 61 [03:22:09]Write i2c OK [03:22:09]MH_I2C_Read... [03:22:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:22:09]Read from MH i2c: E2 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: E2 62 00 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: E2 62 00 D7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 DE 02 00 0E 04 04 00 CD 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 E1 [03:22:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 DE 02 00 0E 04 04 00 CD 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 [03:22:09]wFMCommunicate OK [03:22:09]SAM_PROTO_GetFieldsCounters done [03:22:09]requested_item shift.num is exist - process it [03:22:09]requested_item shift.opened is exist - process it [03:22:09]req_shift_opened [03:22:09]FM_GetShiftState [03:22:09]SAM_PROTO_GetShiftState [03:22:09]wFMCommunicate request_size=4 [03:22:09]MH_SAM_APDU [03:22:09]CAPDU: 80 13 01 00 [03:22:09]Write to MH i2c: E2 08 00 D8 0E 80 13 01 00 00 00 00 00 63 [03:22:09]Write i2c OK [03:22:09]MH_I2C_Read... [03:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:22:09]Read from MH i2c: E2 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: E2 0E 00 [03:22:09]MH_I2C_Read... [03:22:09]Read from MH i2c: E2 0E 00 D8 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 58 [03:22:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:22:09]wFMCommunicate OK [03:22:09]SAM_PROTO_GetShiftState done [03:22:09]FM_GetShiftState done [03:22:09]req_shift_opened done [03:22:09]requested_item shift.open_date is exist - process it [03:22:09]req_shift_open_date [03:22:09]req_shift_open_date done [03:22:09]produce_requested_data done [03:22:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188005,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:22:09]process_action_free close_receipt [03:22:09]json_value_free [03:22:09]json_value_free done [03:22:09]process_json_proto returns [03:22:09]Send response to host [03:22:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188005,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:22:09]free response buf [03:22:09]execute_script done [03:22:09]execute_script returns [03:22:09]free content buf [03:22:09]Sock 8.Close socket [03:22:09]Sock 8.Thread stoped [03:24:17]ConnectInit Can't connect to host [03:24:17]CommunicateWithHost connect error [03:24:17]CommunicateWithHost err = -1 [03:24:17]OFD Sender: Server communicate error [03:24:22]OFD Sender: Processing packet 188005 [packets to send 1062, broken 1061] [03:24:22]ProducePacketName [03:24:22]name=ofd_packets/00188005 [03:24:22]OFD Sender: To server: pG, [03:24:22]CommunicateWithHost lk.salyk.kg:30040 [03:24:22]ConnectInit lk.salyk.kg [03:24:22]Connected sock=8 [03:24:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 1C 07 01 E8 82 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 22 00 00 00 F4 03 04 00 5E 1A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DE 02 00 35 04 06 00 72 87 BF AC 61 89 58 8B 5C B7 9F B4 7A DF [03:24:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 F4 47 00 C1 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DE 02 00 F4 03 04 00 D4 C4 16 67 B6 04 01 00 00 E6 BC AE 2B D4 62 9C 27 [03:24:23]CommunicateWithHost err = 0 [03:24:23]CheckOFDResponse [03:24:23]1017 (14) - 77093643461234 [03:24:23]1041 (16) - 0000000000965340 [03:24:23]1040 (4) - 188005 [03:24:23]1012 (4) - 21.10.2024 21:17 [03:24:23]1206 (1) - 0 [03:24:23]OFD Sender: Remove packet 188005 [03:24:23]ProducePacketName [03:24:23]name=ofd_packets/00188005 [03:24:23]NVStorageDeleteData [03:24:23]OFD Sender: No OFD packet to send [03:24:28]OFD Sender: No OFD packet to send [03:24:33]OFD Sender: No OFD packet to send [03:24:38]OFD Sender: No OFD packet to send [03:24:43]OFD Sender: No OFD packet to send [03:24:48]OFD Sender: No OFD packet to send [03:24:53]OFD Sender: No OFD packet to send [03:24:58]OFD Sender: No OFD packet to send [03:25:03]OFD Sender: No OFD packet to send [03:25:08]OFD Sender: No OFD packet to send [03:25:13]OFD Sender: No OFD packet to send [03:25:18]OFD Sender: No OFD packet to send [03:25:23]OFD Sender: No OFD packet to send [03:25:28]OFD Sender: No OFD packet to send [03:25:33]OFD Sender: No OFD packet to send [03:25:38]OFD Sender: No OFD packet to send [03:25:43]OFD Sender: No OFD packet to send [03:25:48]OFD Sender: No OFD packet to send [03:25:53]OFD Sender: No OFD packet to send [03:25:59]OFD Sender: No OFD packet to send [03:26:04]OFD Sender: No OFD packet to send [03:26:09]OFD Sender: No OFD packet to send [03:26:14]OFD Sender: No OFD packet to send [03:26:19]OFD Sender: No OFD packet to send [03:26:24]OFD Sender: No OFD packet to send [03:26:29]OFD Sender: No OFD packet to send [03:26:34]OFD Sender: No OFD packet to send [03:26:39]OFD Sender: No OFD packet to send [03:26:44]OFD Sender: No OFD packet to send [03:26:49]OFD Sender: No OFD packet to send [03:26:54]OFD Sender: No OFD packet to send [03:26:59]OFD Sender: No OFD packet to send [03:27:04]OFD Sender: No OFD packet to send [03:27:09]OFD Sender: No OFD packet to send [03:27:14]OFD Sender: No OFD packet to send [03:27:19]OFD Sender: No OFD packet to send [03:27:24]OFD Sender: No OFD packet to send [03:27:29]OFD Sender: No OFD packet to send [03:27:34]OFD Sender: No OFD packet to send [03:27:39]OFD Sender: No OFD packet to send [03:27:44]OFD Sender: No OFD packet to send [03:27:49]OFD Sender: No OFD packet to send [03:27:54]OFD Sender: No OFD packet to send [03:27:59]OFD Sender: No OFD packet to send [03:28:04]OFD Sender: No OFD packet to send [03:28:09]OFD Sender: No OFD packet to send [03:28:14]OFD Sender: No OFD packet to send [03:28:19]OFD Sender: No OFD packet to send [03:28:24]OFD Sender: No OFD packet to send [03:28:29]OFD Sender: No OFD packet to send [03:28:34]OFD Sender: No OFD packet to send [03:28:39]OFD Sender: No OFD packet to send [03:28:44]OFD Sender: No OFD packet to send [03:28:49]OFD Sender: No OFD packet to send [03:28:54]OFD Sender: No OFD packet to send [03:28:59]OFD Sender: No OFD packet to send [03:29:04]OFD Sender: No OFD packet to send [03:29:09]OFD Sender: No OFD packet to send [03:29:14]OFD Sender: No OFD packet to send [03:29:19]OFD Sender: No OFD packet to send [03:29:24]OFD Sender: No OFD packet to send [03:29:29]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29:45]OFD Sender: No OFD packet to send [03:29:50]OFD Sender: No OFD packet to send [03:29:55]OFD Sender: No OFD packet to send [03:30:00]OFD Sender: No OFD packet to send [03:30:05]OFD Sender: No OFD packet to send [03:30:10]OFD Sender: No OFD packet to send [03:30:15]OFD Sender: No OFD packet to send [03:30:20]OFD Sender: No OFD packet to send [03:30:25]OFD Sender: No OFD packet to send [03:30:30]OFD Sender: No OFD packet to send [03:30:35]OFD Sender: No OFD packet to send [03:30:40]OFD Sender: No OFD packet to send [03:30:45]OFD Sender: No OFD packet to send [03:30:50]OFD Sender: No OFD packet to send [03:30:55]OFD Sender: No OFD packet to send [03:31:00]OFD Sender: No OFD packet to send [03:31:05]OFD Sender: No OFD packet to send [03:31:10]OFD Sender: No OFD packet to send [03:31:15]OFD Sender: No OFD packet to send [03:31:20]OFD Sender: No OFD packet to send [03:31:25]OFD Sender: No OFD packet to send [03:31:25]accept exits with 9 [03:31:25]New connection [03:31:25]New thread 3067198820 created [03:31:25]Thread 3067055460 joined [03:31:25]Waiting for new connection... [03:31:25] Sock 9.Parse request [03:31:25]Sock 9.Check first char [03:31:25]Sock 9.First char is OK [03:31:25]request: POST /json_proto HTTP/1.0 [03:31:25]Method: POST [03:31:25]URL: /json_proto [03:31:25]Method is POST - this is cgi request [03:31:25]url: /json_proto [03:31:25]query_string will be loaded in cgi processing [03:31:25]execute_cgi json_proto POST (null) [03:31:25]execute_cgi path=json_proto method=POST [03:31:25]POST find Content-Length [03:31:25]Host: 172.17.42.131:8080 [03:31:25]Content-Length: 677 [03:31:25]Content-Type: application/json [03:31:25] [03:31:25]POST finish read [03:31:25]Found Content-Length = 677 [03:31:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:31:25]execute_script... [03:31: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)210057", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:31:25]POST & json_proto [03:31:25]process_json_proto [03:31:25]json parsed OK: [03:31:25]protocol is kg_v1.0 [03:31:25]action value=close_receipt [03:31:25]process_action close_receipt [03:31:25]cmd_close_receipt [03:31:25]MH_GetDate [03:31:25]Write to MH i2c: F0 00 00 D9 0E D6 [03:31:25]Write i2c OK [03:31:25]MH_I2C_Read... [03:31:25]Read from MH i2c: F0 [03:31:25]MH_I2C_Read... [03:31:25]Read from MH i2c: F0 09 00 [03:31:25]MH_I2C_Read... [03:31:25]Read from MH i2c: F0 09 00 D9 0E 00 8F 1C 17 67 A0 18 CA 66 F0 [03:31:25]GetLastDocTimeStamp 1729567326 [03:31:25]current date 1729567887 [03:31:25]FM_GetShiftState [03:31:25]SAM_PROTO_GetShiftState [03:31:25]wFMCommunicate request_size=4 [03:31:25]MH_SAM_APDU [03:31:25]CAPDU: 80 13 01 00 [03:31:25]Write to MH i2c: E2 08 00 DA 0E 80 13 01 00 00 00 00 00 65 [03:31:25]Write i2c OK [03:31:25]MH_I2C_Read... [03:31:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:31:25]Read from MH i2c: E2 [03:31:25]MH_I2C_Read... [03:31:25]Read from MH i2c: E2 0E 00 [03:31:25]MH_I2C_Read... [03:31:25]Read from MH i2c: E2 0E 00 DA 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5A [03:31:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:31:25]wFMCommunicate OK [03:31:25]SAM_PROTO_GetShiftState done [03:31:25]FM_GetShiftState done [03:31:25]opened in 1729556094 [03:31:25]opened+sec_in_day 1729642494 [03:31:25]quantity*price = 40006 [03:31:25]sum+1 = 40007 [03:31:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 35 22.10.2024 03:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188006 ФПД: 26602190297916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T033127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188006&fm=26602190297916&tin=02508201610067®Number=0000000000100030&sum=40000 [03:31:26]StoreToDocumentArchive [03:31:26]shift 461 fd 188006 [03:31:26]save to /storage/0461/doc_00188006 [03:31:26]save last doc name /storage/0461/doc_00188006 to /storage/kkm_last_doc_name [03:31:26]save OK [03:31:26]Clear old archive folders... [03:31:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:31:26]tlvbuf is 01B9E240 [03:31:26]SAM_PROTO_ClearQueue [03:31:26]wFMCommunicate request_size=4 [03:31:26]MH_SAM_APDU [03:31:26]CAPDU: 80 09 00 00 [03:31:26]Write to MH i2c: E2 08 00 E7 0E 80 09 00 00 00 00 00 00 67 [03:31:26]Write i2c OK [03:31:26]MH_I2C_Read... [03:31:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:31:26]Read from MH i2c: E2 [03:31:26]MH_I2C_Read... [03:31:26]Read from MH i2c: E2 03 00 [03:31:26]MH_I2C_Read... [03:31:26]Read from MH i2c: E2 03 00 E7 0E 00 90 00 69 [03:31:26]RAPDU: 90 00 [03:31:26]wFMCommunicate OK [03:31:26]SAM_PROTO_ClearQueue done [03:31:26]KKMCreateOFDPacket [03:31:26]OFDProtocolAddRootSTLVToBuf [03:31:26]FM_MakeSignedData [03:31:26]FM_MakeSignedData [03:31:26]SAM_PROTO_SignData [03:31:26]wFMCommunicate request_size=4 [03:31:26]MH_SAM_APDU [03:31:26]CAPDU: 80 0D 01 02 [03:31:26]Write to MH i2c: E2 08 00 E8 0E 80 0D 01 02 00 00 00 00 6F [03:31:26]Write i2c OK [03:31:26]MH_I2C_Read... [03:31:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:31:26]Read from MH i2c: E2 [03:31:26]MH_I2C_Read... [03:31:26]Read from MH i2c: E2 03 00 [03:31:26]MH_I2C_Read... [03:31:26]Read from MH i2c: E2 03 00 E8 0E 00 90 00 6A [03:31:26]RAPDU: 90 00 [03:31:26]wFMCommunicate OK [03:31:26]wFMCommunicate request_size=255 [03:31:26]MH_SAM_APDU [03:31: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8F 1C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DE 02 00 35 04 06 00 18 [03:31:26]Write to MH i2c: E2 02 01 E9 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8F 1C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DE 02 00 35 04 06 00 18 00 00 29 [03:31:26]Write i2c OK [03:31:26]MH_I2C_Read... [03:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:31:27]Read from MH i2c: E2 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 03 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 03 00 E9 0E 00 90 00 6B [03:31:27]RAPDU: 90 00 [03:31:27]wFMCommunicate OK [03:31:27]wFMCommunicate request_size=10 [03:31:27]MH_SAM_APDU [03:31:27]CAPDU: 80 0D 02 02 05 31 CE 1A 5B 3C [03:31:27]Write to MH i2c: E2 0D 00 EA 0E 80 0D 02 02 05 00 31 CE 1A 5B 3C 00 00 2C [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:31:27]Read from MH i2c: E2 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 03 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 03 00 EA 0E 00 90 00 6C [03:31:27]RAPDU: 90 00 [03:31:27]wFMCommunicate OK [03:31:27]wFMCommunicate request_size=4 [03:31:27]MH_SAM_APDU [03:31:27]CAPDU: 80 0D 03 02 [03:31:27]Write to MH i2c: E2 08 00 EB 0E 80 0D 03 02 00 00 00 00 74 [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:31:27]Read from MH i2c: E2 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 0B 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 0B 00 EB 0E 00 67 DE D5 BC E6 B4 FC FB 90 00 DC [03:31:27]RAPDU: 67 DE D5 BC E6 B4 FC FB 90 00 [03:31:27]wFMCommunicate OK [03:31:27]SAM_PROTO_SignData done [03:31:27]FM_MakeSignedData done [03:31:27]CreateOFDProtocolMessage [03:31:27]wFMCommunicate request_size=4 [03:31:27]MH_SAM_APDU [03:31:27]CAPDU: 80 11 00 00 [03:31:27]Write to MH i2c: E2 08 00 EC 0E 80 11 00 00 00 00 00 00 74 [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:31:27]Read from MH i2c: E2 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 17 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: E2 17 00 EC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [03:31:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:31:27]wFMCommunicate OK [03:31:27]CreateOFDProtocolMessage done [03:31:27]OFDSenderStorePacket 188006 [03:31:27]StoreOFDPacket docnum=188006 [03:31:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 78 54 07 01 1C 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8F 1C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DE 02 00 35 04 06 00 18 31 CE 1A 5B 3C 67 DE D5 BC E6 B4 FC FB [03:31:27]CheckFolder [03:31:27]dirname=/storage/ofd_packets [03:31:27]CheckFolder done [03:31:27]ProducePacketName [03:31:27]name=ofd_packets/00188006 [03:31:27]NVStorageSaveData ofd_packets/00188006 [03:31:27]File name is /storage/ofd_packets/00188006 [03:31:27]Write 301 bytes [03:31:27]NVStorageSaveData done [03:31:27]OFDSenderStorePacket done [03:31:27]KKMCreateOFDPacket done [03:31:27]NVStorageSaveData kkm_last_timestamp [03:31:27]File name is /storage/kkm_last_timestamp [03:31:27]Write 4 bytes [03:31:27]NVStorageSaveData done [03:31:27]ExternCall_PrintAddStr [03:31:27]wPrintStart [03:31:27]Write to MH i2c: 01 00 00 ED 0E FB [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: 01 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: 01 07 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: 01 07 00 ED 0E 00 00 00 00 00 FF 0F 10 [03:31:27]RasterBufferAndPrint [03:31:27]line Счет N : (1)210057 [03:31:27]line ИНН: 02508201610067 [03:31:27]line Контрольно-Кассовый Чек [03:31:27]line ПРОДАЖА [03:31:27]line ТРК (МРК, ГНК) : 42 [03:31:27]line Товар: 2710124130 [03:31:27]line Аи-92-К-3 [03:31:27]line 5.980 * 66.90 [03:31:27]line = 400.06 [03:31:27]line НДС 12% НСП 1% [03:31:27]line > о реализуемом товаре [03:31:27]line ОКРУГЛЕНИЕ: -0.06 [03:31:27]line ИТОГО: 400.00 [03:31:27]line Внесено: 400.00 [03:31:27]line СДАЧА: 0.00 [03:31:27]line НСП 1% : 3.54 [03:31:27]line НДС 12% : 42.48 [03:31:27]line Наличными: 400.00 [03:31:27]line Безнал.: 0.00 [03:31:27]line Место: АЗС № 86 "Партнер Нефть" [03:31:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:31:27]line СНО: Общий режим [03:31:27]line Чек 35 22.10.2024 03:31 [03:31:27]line Смена: 461 ФФД: 1.0 [03:31:27]line ЗНМ: 0300000155 [03:31:27]line РНМ: 0000000000100030 [03:31:27]line Версия ККМ: 001 [03:31:27]line ФМ: 0000000000965340 [03:31:27]line ФД: 188006 [03:31:27]line ФПД: 26602190297916 [03:31:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T033127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188006&fm=26602190297916&tin=02508201610067®Number=0000000000100030&sum=40000 [03:31:27]written 0, free lines is 4095 [03:31:27]OFD Sender: Processing packet 188006 [packets to send 1062, broken 1061] [03:31:27]ProducePacketName [03:31:27]name=ofd_packets/00188006 [03:31:27]OFD Sender: To server: pG, [03:31:27]CommunicateWithHost lk.salyk.kg:30040 [03:31:27]ConnectInit lk.salyk.kg [03:31:27]Connected sock=10 [03:31:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 78 54 07 01 1C 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 00 00 00 F4 03 04 00 8F 1C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DE 02 00 35 04 06 00 18 31 CE 1A 5B 3C 67 DE D5 BC E6 B4 FC FB [03:31:27]Write to MH i2c: 01 00 00 18 0F 27 [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: 01 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: 01 07 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 51 0C 8B [03:31:27]RasterBufferAndPrint [03:31:27]line [03:31:27]line [03:31:27]line [03:31:27]line [03:31:27]line [03:31:27]written 0, free lines is 3158 [03:31:27]MH_Cut [03:31:27]Write to MH i2c: D1 01 00 1F 0F 01 00 [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: D1 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: D1 01 00 [03:31:27]MH_I2C_Read... [03:31:27]Read from MH i2c: D1 01 00 1F 0F 00 FF [03:31:27]Write to MH i2c: 01 00 00 20 0F 2F [03:31:27]Write i2c OK [03:31:27]MH_I2C_Read... [03:31:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 2C 47 00 DC F0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DE 02 00 F4 03 04 00 7D C6 16 67 B6 04 01 00 00 63 25 E6 FF 1B 7E 23 4D [03:31:27]CommunicateWithHost err = 0 [03:31:27]CheckOFDResponse [03:31:27]1017 (14) - 77093643461234 [03:31:27]1041 (16) - 0000000000965340 [03:31:27]1040 (4) - 188006 [03:31:27]1012 (4) - 21.10.2024 21:24 [03:31:27]1206 (1) - 0 [03:31:27]OFD Sender: Remove packet 188006 [03:31:27]ProducePacketName [03:31:27]name=ofd_packets/00188006 [03:31:27]NVStorageDeleteData [03:31:28]OFD Sender: No OFD packet to send [03:31:29]*** Cut start [03:31:29]*** Partial cut [03:31:29]*** CUTSNS_PIN = 1 [03:31:29]*** CUTSNS_PIN = 0 [03:31:29]*** Brake cut motor [03:31:29]Read from MH i2c: 01 [03:31:29]MH_I2C_Read... [03:31:29]*** Stop cut motor [03:31:29]*** Cut end [03:31:29]Read from MH i2c: 01 07 00 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: 01 07 00 20 0F 00 00 00 00 00 FF 0F 44 [03:31:29]process_action close_receipt done [03:31:29]requested_data is exist [03:31:29]produce_requested_data [03:31:29]requested_item fm.sn is exist - process it [03:31:29]wFMCommunicate request_size=4 [03:31:29]MH_SAM_APDU [03:31:29]CAPDU: 80 11 00 00 [03:31:29]Write to MH i2c: E2 08 00 21 0F 80 11 00 00 00 00 00 00 AA [03:31:29]Write i2c OK [03:31:29]MH_I2C_Read... [03:31:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:31:29]Read from MH i2c: E2 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: E2 17 00 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: E2 17 00 21 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [03:31:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:31:29]wFMCommunicate OK [03:31:29]requested_item fd.num is exist - process it [03:31:29]SAM_PROTO_GetFieldsCounters [03:31:29]wFMCommunicate request_size=4 [03:31:29]MH_SAM_APDU [03:31:29]CAPDU: 80 13 00 00 [03:31:29]Write to MH i2c: E2 08 00 22 0F 80 13 00 00 00 00 00 00 AD [03:31:29]Write i2c OK [03:31:29]MH_I2C_Read... [03:31:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:31:29]Read from MH i2c: E2 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: E2 62 00 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: E2 62 00 22 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 DE 02 00 0E 04 04 00 CD 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 31 [03:31:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 DE 02 00 0E 04 04 00 CD 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 [03:31:29]wFMCommunicate OK [03:31:29]SAM_PROTO_GetFieldsCounters done [03:31:29]requested_item shift.num is exist - process it [03:31:29]requested_item shift.opened is exist - process it [03:31:29]req_shift_opened [03:31:29]FM_GetShiftState [03:31:29]SAM_PROTO_GetShiftState [03:31:29]wFMCommunicate request_size=4 [03:31:29]MH_SAM_APDU [03:31:29]CAPDU: 80 13 01 00 [03:31:29]Write to MH i2c: E2 08 00 23 0F 80 13 01 00 00 00 00 00 AF [03:31:29]Write i2c OK [03:31:29]MH_I2C_Read... [03:31:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:31:29]Read from MH i2c: E2 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: E2 0E 00 [03:31:29]MH_I2C_Read... [03:31:29]Read from MH i2c: E2 0E 00 23 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A4 [03:31:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:31:29]wFMCommunicate OK [03:31:29]SAM_PROTO_GetShiftState done [03:31:29]FM_GetShiftState done [03:31:29]req_shift_opened done [03:31:29]requested_item shift.open_date is exist - process it [03:31:29]req_shift_open_date [03:31:29]req_shift_open_date done [03:31:29]produce_requested_data done [03:31:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188006,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:31:29]process_action_free close_receipt [03:31:29]json_value_free [03:31:29]json_value_free done [03:31:29]process_json_proto returns [03:31:29]Send response to host [03:31:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188006,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:31:29]free response buf [03:31:29]execute_script done [03:31:29]execute_script returns [03:31:29]free content buf [03:31:29]Sock 9.Close socket [03:31:29]Sock 9.Thread stoped [03:31:33]OFD Sender: No OFD packet to send [03:31:38]OFD Sender: No OFD packet to send [03:31:43]OFD Sender: No OFD packet to send [03:31:48]OFD Sender: No OFD packet to send [03:31:53]OFD Sender: No OFD packet to send [03:31:58]OFD Sender: No OFD packet to send [03:32:03]OFD Sender: No OFD packet to send [03:32:08]OFD Sender: No OFD packet to send [03:32:13]OFD Sender: No OFD packet to send [03:32:18]OFD Sender: No OFD packet to send [03:32:23]OFD Sender: No OFD packet to send [03:32:28]OFD Sender: No OFD packet to send [03:32:33]OFD Sender: No OFD packet to send [03:32:38]OFD Sender: No OFD packet to send [03:32:43]OFD Sender: No OFD packet to send [03:32:48]OFD Sender: No OFD packet to send [03:32:53]OFD Sender: No OFD packet to send [03:32:58]OFD Sender: No OFD packet to send [03:33:03]OFD Sender: No OFD packet to send [03:33:08]OFD Sender: No OFD packet to send [03:33:13]OFD Sender: No OFD packet to send [03:33:18]OFD Sender: No OFD packet to send [03:33:23]OFD Sender: No OFD packet to send [03:33:28]OFD Sender: No OFD packet to send [03:33:33]OFD Sender: No OFD packet to send [03:33:38]OFD Sender: No OFD packet to send [03:33:43]OFD Sender: No OFD packet to send [03:33:49]OFD Sender: No OFD packet to send [03:33:54]OFD Sender: No OFD packet to send [03:33:59]OFD Sender: No OFD packet to send [03:34:04]OFD Sender: No OFD packet to send [03:34:09]OFD Sender: No OFD packet to send [03:34:14]OFD Sender: No OFD packet to send [03:34:19]OFD Sender: No OFD packet to send [03:34:24]OFD Sender: No OFD packet to send [03:34:29]OFD Sender: No OFD packet to send [03:34:34]OFD Sender: No OFD packet to send [03:34:39]OFD Sender: No OFD packet to send [03:34:44]OFD Sender: No OFD packet to send [03:34:49]OFD Sender: No OFD packet to send [03:34:54]OFD Sender: No OFD packet to send [03:34:59]OFD Sender: No OFD packet to send [03:35:04]OFD Sender: No OFD packet to send [03:35:09]OFD Sender: No OFD packet to send [03:35:14]OFD Sender: No OFD packet to send [03:35:19]OFD Sender: No OFD packet to send [03:35:24]OFD Sender: No OFD packet to send [03:35:29]OFD Sender: No OFD packet to send [03:35:34]OFD Sender: No OFD packet to send [03:35:39]OFD Sender: No OFD packet to send [03:35:44]OFD Sender: No OFD packet to send [03:35:49]OFD Sender: No OFD packet to send [03:35:54]OFD Sender: No OFD packet to send [03:35:59]OFD Sender: No OFD packet to send [03:36:04]OFD Sender: No OFD packet to send [03:36:09]OFD Sender: No OFD packet to send [03:36:14]OFD Sender: No OFD packet to send [03:36:19]OFD Sender: No OFD packet to send [03:36:24]OFD Sender: No OFD packet to send [03:36:29]OFD Sender: No OFD packet to send [03:36:34]OFD Sender: No OFD packet to send [03:36:39]OFD Sender: No OFD packet to send [03:36:44]OFD Sender: No OFD packet to send [03:36:49]OFD Sender: No OFD packet to send [03:36:54]OFD Sender: No OFD packet to send [03:36:59]OFD Sender: No OFD packet to send [03:37:04]OFD Sender: No OFD packet to send [03:37:09]OFD Sender: No OFD packet to send [03:37:14]OFD Sender: No OFD packet to send [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:30]OFD Sender: No OFD packet to send [03:37:35]OFD Sender: No OFD packet to send [03:37:40]OFD Sender: No OFD packet to send [03:37:45]OFD Sender: No OFD packet to send [03:37:50]OFD Sender: No OFD packet to send [03:37:55]OFD Sender: No OFD packet to send [03:38:00]OFD Sender: No OFD packet to send [03:38:05]OFD Sender: No OFD packet to send [03:38:10]OFD Sender: No OFD packet to send [03:38:15]OFD Sender: No OFD packet to send [03:38:20]OFD Sender: No OFD packet to send [03:38:25]OFD Sender: No OFD packet to send [03:38:30]OFD Sender: No OFD packet to send [03:38:35]OFD Sender: No OFD packet to send [03:38:40]OFD Sender: No OFD packet to send [03:38:45]OFD Sender: No OFD packet to send [03:38:50]OFD Sender: No OFD packet to send [03:38:55]OFD Sender: No OFD packet to send [03:39:00]OFD Sender: No OFD packet to send [03:39:05]OFD Sender: No OFD packet to send [03:39:10]OFD Sender: No OFD packet to send [03:39:15]OFD Sender: No OFD packet to send [03:39:20]OFD Sender: No OFD packet to send [03:39:25]OFD Sender: No OFD packet to send [03:39:28]accept exits with 8 [03:39:28]New connection [03:39:28]New thread 3067055460 created [03:39:28]Thread 3067198820 joined [03:39:28]Waiting for new connection... [03:39:28] Sock 8.Parse request [03:39:28]Sock 8.Check first char [03:39:28]Sock 8.First char is OK [03:39:28]request: POST /json_proto HTTP/1.0 [03:39:28]Method: POST [03:39:28]URL: /json_proto [03:39:28]Method is POST - this is cgi request [03:39:28]url: /json_proto [03:39:28]query_string will be loaded in cgi processing [03:39:28]execute_cgi json_proto POST (null) [03:39:28]execute_cgi path=json_proto method=POST [03:39:28]POST find Content-Length [03:39:28]Host: 172.17.42.131:8080 [03:39:28]Content-Length: 688 [03:39:28]Content-Type: application/json [03:39:28] [03:39:28]POST finish read [03:39:28]Found Content-Length = 688 [03:39:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [03:39:28]execute_script... [03: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)210058", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [03:39:28]POST & json_proto [03:39:28]process_json_proto [03:39:28]json parsed OK: [03:39:28]protocol is kg_v1.0 [03:39:28]action value=close_receipt [03:39:28]process_action close_receipt [03:39:28]cmd_close_receipt [03:39:28]MH_GetDate [03:39:28]Write to MH i2c: F0 00 00 24 0F 22 [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: F0 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: F0 09 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: F0 09 00 24 0F 00 72 1E 17 67 A0 18 CA 66 21 [03:39:28]GetLastDocTimeStamp 1729567887 [03:39:28]current date 1729568370 [03:39:28]FM_GetShiftState [03:39:28]SAM_PROTO_GetShiftState [03:39:28]wFMCommunicate request_size=4 [03:39:28]MH_SAM_APDU [03:39:28]CAPDU: 80 13 01 00 [03:39:28]Write to MH i2c: E2 08 00 25 0F 80 13 01 00 00 00 00 00 B1 [03:39:28]Write i2c OK [03:39:28]MH_I2C_Read... [03:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:28]Read from MH i2c: E2 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 0E 00 [03:39:28]MH_I2C_Read... [03:39:28]Read from MH i2c: E2 0E 00 25 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A6 [03:39:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:39:28]wFMCommunicate OK [03:39:28]SAM_PROTO_GetShiftState done [03:39:28]FM_GetShiftState done [03:39:28]opened in 1729556094 [03:39:28]opened+sec_in_day 1729642494 [03:39:28]quantity*price = 200025 [03:39:28]sum+1 = 200026 [03:39:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 36 22.10.2024 03:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188007 ФПД: 108701047417077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T033930&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188007&fm=108701047417077&tin=02508201610067®Number=0000000000100030&sum=200000 [03:39:30]StoreToDocumentArchive [03:39:30]shift 461 fd 188007 [03:39:30]save to /storage/0461/doc_00188007 [03:39:30]save last doc name /storage/0461/doc_00188007 to /storage/kkm_last_doc_name [03:39:30]save OK [03:39:30]Clear old archive folders... [03:39:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:39:30]tlvbuf is 01B9D1D0 [03:39:30]SAM_PROTO_ClearQueue [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 09 00 00 [03:39:30]Write to MH i2c: E2 08 00 32 0F 80 09 00 00 00 00 00 00 B3 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 32 0F 00 90 00 B5 [03:39:30]RAPDU: 90 00 [03:39:30]wFMCommunicate OK [03:39:30]SAM_PROTO_ClearQueue done [03:39:30]KKMCreateOFDPacket [03:39:30]OFDProtocolAddRootSTLVToBuf [03:39:30]FM_MakeSignedData [03:39:30]FM_MakeSignedData [03:39:30]SAM_PROTO_SignData [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 0D 01 02 [03:39:30]Write to MH i2c: E2 08 00 33 0F 80 0D 01 02 00 00 00 00 BB [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 33 0F 00 90 00 B6 [03:39:30]RAPDU: 90 00 [03:39:30]wFMCommunicate OK [03:39:30]wFMCommunicate request_size=255 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 72 1E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DE 02 [03:39:30]Write to MH i2c: E2 02 01 34 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 72 1E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DE 02 00 00 A3 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 34 0F 00 90 00 B7 [03:39:30]RAPDU: 90 00 [03:39:30]wFMCommunicate OK [03:39:30]wFMCommunicate request_size=16 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 62 DC EF 51 68 F5 [03:39:30]Write to MH i2c: E2 13 00 35 0F 80 0D 02 02 0B 00 00 35 04 06 00 62 DC EF 51 68 F5 00 00 EE [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 03 00 35 0F 00 90 00 B8 [03:39:30]RAPDU: 90 00 [03:39:30]wFMCommunicate OK [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 0D 03 02 [03:39:30]Write to MH i2c: E2 08 00 36 0F 80 0D 03 02 00 00 00 00 C0 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 0B 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 0B 00 36 0F 00 F0 65 DD A0 6B 94 A7 3C 90 00 75 [03:39:30]RAPDU: F0 65 DD A0 6B 94 A7 3C 90 00 [03:39:30]wFMCommunicate OK [03:39:30]SAM_PROTO_SignData done [03:39:30]FM_MakeSignedData done [03:39:30]CreateOFDProtocolMessage [03:39:30]wFMCommunicate request_size=4 [03:39:30]MH_SAM_APDU [03:39:30]CAPDU: 80 11 00 00 [03:39:30]Write to MH i2c: E2 08 00 37 0F 80 11 00 00 00 00 00 00 C0 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]OFD Sender: No OFD packet to send [03:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:30]Read from MH i2c: E2 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 17 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: E2 17 00 37 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [03:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:39:30]wFMCommunicate OK [03:39:30]CreateOFDProtocolMessage done [03:39:30]OFDSenderStorePacket 188007 [03:39:30]StoreOFDPacket docnum=188007 [03:39:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 53 8D 0D 01 52 C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 72 1E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DE 02 00 35 04 06 00 62 DC EF 51 68 F5 F0 65 DD A0 6B 94 A7 3C [03:39:30]CheckFolder [03:39:30]dirname=/storage/ofd_packets [03:39:30]CheckFolder done [03:39:30]ProducePacketName [03:39:30]name=ofd_packets/00188007 [03:39:30]NVStorageSaveData ofd_packets/00188007 [03:39:30]File name is /storage/ofd_packets/00188007 [03:39:30]Write 307 bytes [03:39:30]NVStorageSaveData done [03:39:30]OFDSenderStorePacket done [03:39:30]KKMCreateOFDPacket done [03:39:30]NVStorageSaveData kkm_last_timestamp [03:39:30]File name is /storage/kkm_last_timestamp [03:39:30]Write 4 bytes [03:39:30]NVStorageSaveData done [03:39:30]ExternCall_PrintAddStr [03:39:30]wPrintStart [03:39:30]Write to MH i2c: 01 00 00 38 0F 47 [03:39:30]Write i2c OK [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: 01 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: 01 07 00 [03:39:30]MH_I2C_Read... [03:39:30]Read from MH i2c: 01 07 00 38 0F 00 00 00 00 00 FF 0F 5C [03:39:30]RasterBufferAndPrint [03:39:30]line Счет N : (1)210058 [03:39:30]line ИНН: 02508201610067 [03:39:30]line Контрольно-Кассовый Чек [03:39:30]line ПРОДАЖА [03:39:30]line ТРК (МРК, ГНК) : 11 [03:39:30]line Товар: 2710194210 [03:39:30]line D-ENERGY ДТ-К-5 [03:39:30]line 25.910 * 77.20 [03:39:30]line = 2000.25 [03:39:30]line НДС 12% НСП 1% [03:39:30]line > о реализуемом товаре [03:39:30]line ОКРУГЛЕНИЕ: -0.25 [03:39:30]line ИТОГО: 2000.00 [03:39:30]line Внесено: 2000.00 [03:39:30]line СДАЧА: 0.00 [03:39:30]line НСП 1% : 17.70 [03:39:30]line НДС 12% : 212.42 [03:39:30]line Наличными: 2000.00 [03:39:30]line Безнал.: 0.00 [03:39:30]line Место: АЗС № 86 "Партнер Нефть" [03:39:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:39:30]line СНО: Общий режим [03:39:30]line Чек 36 22.10.2024 03:39 [03:39:30]line Смена: 461 ФФД: 1.0 [03:39:30]line ЗНМ: 0300000155 [03:39:30]line РНМ: 0000000000100030 [03:39:30]line Версия ККМ: 001 [03:39:30]line ФМ: 0000000000965340 [03:39:30]line ФД: 188007 [03:39:30]line ФПД: 108701047417077 [03:39:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T033930&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188007&fm=108701047417077&tin=02508201610067®Number=0000000000100030&sum=200000 [03:39:30]written 0, free lines is 4095 [03:39:30]OFD Sender: Processing packet 188007 [packets to send 1062, broken 1061] [03:39:30]ProducePacketName [03:39:30]name=ofd_packets/00188007 [03:39:30]OFD Sender: To server: pG, [03:39:30]CommunicateWithHost lk.salyk.kg:30040 [03:39:30]ConnectInit lk.salyk.kg [03:39:31]Connected sock=10 [03:39:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 53 8D 0D 01 52 C1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 59 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 72 1E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DE 02 00 35 04 06 00 62 DC EF 51 68 F5 F0 65 DD A0 6B 94 A7 3C [03:39:31]Write to MH i2c: 01 00 00 63 0F 72 [03:39:31]Write i2c OK [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: 01 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: 01 07 00 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 55 0C DA [03:39:31]RasterBufferAndPrint [03:39:31]line [03:39:31]line [03:39:31]line [03:39:31]line [03:39:31]line [03:39:31]written 0, free lines is 3161 [03:39:31]MH_Cut [03:39:31]Write to MH i2c: D1 01 00 6A 0F 01 4B [03:39:31]Write i2c OK [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: D1 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: D1 01 00 [03:39:31]MH_I2C_Read... [03:39:31]Read from MH i2c: D1 01 00 6A 0F 00 4A [03:39:31]Write to MH i2c: 01 00 00 6B 0F 7A [03:39:31]Write i2c OK [03:39:31]MH_I2C_Read... [03:39:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 DC 47 00 56 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 39 36 35 33 34 30 10 04 04 00 67 DE 02 00 F4 03 04 00 60 C8 16 67 B6 04 01 00 00 84 6E B5 09 EF B3 BF A1 [03:39:31]CommunicateWithHost err = 0 [03:39:31]CheckOFDResponse [03:39:31]1017 (14) - 77093643461234 [03:39:31]1041 (16) - 0000000000965340 [03:39:31]1040 (4) - 188007 [03:39:31]1012 (4) - 21.10.2024 21:32 [03:39:31]1206 (1) - 0 [03:39:31]OFD Sender: Remove packet 188007 [03:39:31]ProducePacketName [03:39:31]name=ofd_packets/00188007 [03:39:31]NVStorageDeleteData [03:39:31]OFD Sender: No OFD packet to send [03:39:32]*** Cut start [03:39:32]*** Partial cut [03:39:32]*** CUTSNS_PIN = 1 [03:39:32]*** CUTSNS_PIN = 0 [03:39:32]*** Brake cut motor [03:39:33]Read from MH i2c: 01 [03:39:33]MH_I2C_Read... [03:39:33]*** Stop cut motor [03:39:33]*** Cut end [03:39:33]Read from MH i2c: 01 07 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: 01 07 00 6B 0F 00 00 00 00 00 FF 0F 8F [03:39:33]process_action close_receipt done [03:39:33]requested_data is exist [03:39:33]produce_requested_data [03:39:33]requested_item fm.sn is exist - process it [03:39:33]wFMCommunicate request_size=4 [03:39:33]MH_SAM_APDU [03:39:33]CAPDU: 80 11 00 00 [03:39:33]Write to MH i2c: E2 08 00 6C 0F 80 11 00 00 00 00 00 00 F5 [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:39:33]Read from MH i2c: E2 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 17 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 17 00 6C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [03:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:39:33]wFMCommunicate OK [03:39:33]requested_item fd.num is exist - process it [03:39:33]SAM_PROTO_GetFieldsCounters [03:39:33]wFMCommunicate request_size=4 [03:39:33]MH_SAM_APDU [03:39:33]CAPDU: 80 13 00 00 [03:39:33]Write to MH i2c: E2 08 00 6D 0F 80 13 00 00 00 00 00 00 F8 [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:39:33]Read from MH i2c: E2 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 62 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 62 00 6D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 DE 02 00 0E 04 04 00 CD 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 80 [03:39:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 DE 02 00 0E 04 04 00 CD 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 [03:39:33]wFMCommunicate OK [03:39:33]SAM_PROTO_GetFieldsCounters done [03:39:33]requested_item shift.num is exist - process it [03:39:33]requested_item shift.opened is exist - process it [03:39:33]req_shift_opened [03:39:33]FM_GetShiftState [03:39:33]SAM_PROTO_GetShiftState [03:39:33]wFMCommunicate request_size=4 [03:39:33]MH_SAM_APDU [03:39:33]CAPDU: 80 13 01 00 [03:39:33]Write to MH i2c: E2 08 00 6E 0F 80 13 01 00 00 00 00 00 FA [03:39:33]Write i2c OK [03:39:33]MH_I2C_Read... [03:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:39:33]Read from MH i2c: E2 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 0E 00 [03:39:33]MH_I2C_Read... [03:39:33]Read from MH i2c: E2 0E 00 6E 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EF [03:39:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:39:33]wFMCommunicate OK [03:39:33]SAM_PROTO_GetShiftState done [03:39:33]FM_GetShiftState done [03:39:33]req_shift_opened done [03:39:33]requested_item shift.open_date is exist - process it [03:39:33]req_shift_open_date [03:39:33]req_shift_open_date done [03:39:33]produce_requested_data done [03:39:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188007,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:39:33]process_action_free close_receipt [03:39:33]json_value_free [03:39:33]json_value_free done [03:39:33]process_json_proto returns [03:39:33]Send response to host [03:39:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188007,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:39:33]free response buf [03:39:33]execute_script done [03:39:33]execute_script returns [03:39:33]free content buf [03:39:33]Sock 8.Close socket [03:39:33]Sock 8.Thread stoped [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:17]OFD Sender: No OFD packet to send [03:40:22]OFD Sender: No OFD packet to send [03:40:27]OFD Sender: No OFD packet to send [03:40:32]OFD Sender: No OFD packet to send [03:40:37]OFD Sender: No OFD packet to send [03:40:42]OFD Sender: No OFD packet to send [03:40:47]OFD Sender: No OFD packet to send [03:40:52]OFD Sender: No OFD packet to send [03:40:57]OFD Sender: No OFD packet to send [03:41:02]OFD Sender: No OFD packet to send [03:41:07]OFD Sender: No OFD packet to send [03:41:12]OFD Sender: No OFD packet to send [03:41:17]OFD Sender: No OFD packet to send [03:41:22]OFD Sender: No OFD packet to send [03:41:27]OFD Sender: No OFD packet to send [03:41:32]OFD Sender: No OFD packet to send [03:41:37]OFD Sender: No OFD packet to send [03:41:42]OFD Sender: No OFD packet to send [03:41:47]OFD Sender: No OFD packet to send [03:41:52]OFD Sender: No OFD packet to send [03:41:57]OFD Sender: No OFD packet to send [03:41:57]accept exits with 9 [03:41:57]New connection [03:41:57]New thread 3067198820 created [03:41:57]Thread 3067055460 joined [03:41:57]Waiting for new connection... [03:41:57] Sock 9.Parse request [03:41:57]Sock 9.Check first char [03:41:57]Sock 9.First char is OK [03:41:57]request: POST /json_proto HTTP/1.0 [03:41:57]Method: POST [03:41:57]URL: /json_proto [03:41:57]Method is POST - this is cgi request [03:41:57]url: /json_proto [03:41:57]query_string will be loaded in cgi processing [03:41:57]execute_cgi json_proto POST (null) [03:41:57]execute_cgi path=json_proto method=POST [03:41:57]POST find Content-Length [03:41:57]Host: 172.17.42.131:8080 [03:41:57]Content-Length: 677 [03:41:57]Content-Type: application/json [03:41:57] [03:41:57]POST finish read [03:41:57]Found Content-Length = 677 [03:41:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:57]execute_script... [03:41: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)210060", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.100, "sum" : 140.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 140.00, "total" : 140.00, "payments": [ { "type": 0, "sum" : 140.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:41:57]POST & json_proto [03:41:57]process_json_proto [03:41:57]json parsed OK: [03:41:57]protocol is kg_v1.0 [03:41:57]action value=close_receipt [03:41:57]process_action close_receipt [03:41:57]cmd_close_receipt [03:41:57]MH_GetDate [03:41:57]Write to MH i2c: F0 00 00 6F 0F 6D [03:41:57]Write i2c OK [03:41:57]MH_I2C_Read... [03:41:57]Read from MH i2c: F0 [03:41:57]MH_I2C_Read... [03:41:57]Read from MH i2c: F0 09 00 [03:41:57]MH_I2C_Read... [03:41:57]Read from MH i2c: F0 09 00 6F 0F 00 07 1F 17 67 A0 18 CA 66 02 [03:41:57]GetLastDocTimeStamp 1729568370 [03:41:57]current date 1729568519 [03:41:57]FM_GetShiftState [03:41:57]SAM_PROTO_GetShiftState [03:41:57]wFMCommunicate request_size=4 [03:41:57]MH_SAM_APDU [03:41:57]CAPDU: 80 13 01 00 [03:41:57]Write to MH i2c: E2 08 00 70 0F 80 13 01 00 00 00 00 00 FC [03:41:57]Write i2c OK [03:41:57]MH_I2C_Read... [03:41:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:57]Read from MH i2c: E2 [03:41:57]MH_I2C_Read... [03:41:57]Read from MH i2c: E2 0E 00 [03:41:57]MH_I2C_Read... [03:41:57]Read from MH i2c: E2 0E 00 70 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F1 [03:41:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:41:57]wFMCommunicate OK [03:41:57]SAM_PROTO_GetShiftState done [03:41:57]FM_GetShiftState done [03:41:57]opened in 1729556094 [03:41:57]opened+sec_in_day 1729642494 [03:41:57]quantity*price = 14049 [03:41:57]sum+1 = 14050 [03:41:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 140.00 Внесено: 140.00 СДАЧА: 0.00 НСП 1% : 1.24 НДС 12% : 14.92 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 37 22.10.2024 03:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188008 ФПД: 104855154595590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T034159&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188008&fm=104855154595590&tin=02508201610067®Number=0000000000100030&sum=14000 [03:41:58]StoreToDocumentArchive [03:41:58]shift 461 fd 188008 [03:41:58]save to /storage/0461/doc_00188008 [03:41:58]save last doc name /storage/0461/doc_00188008 to /storage/kkm_last_doc_name [03:41:58]save OK [03:41:58]Clear old archive folders... [03:41:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:41:58]tlvbuf is 01B9D270 [03:41:58]SAM_PROTO_ClearQueue [03:41:58]wFMCommunicate request_size=4 [03:41:58]MH_SAM_APDU [03:41:58]CAPDU: 80 09 00 00 [03:41:58]Write to MH i2c: E2 08 00 7D 0F 80 09 00 00 00 00 00 00 FE [03:41:58]Write i2c OK [03:41:58]MH_I2C_Read... [03:41:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:58]Read from MH i2c: E2 [03:41:58]MH_I2C_Read... [03:41:58]Read from MH i2c: E2 03 00 [03:41:58]MH_I2C_Read... [03:41:58]Read from MH i2c: E2 03 00 7D 0F 00 90 00 00 [03:41:58]RAPDU: 90 00 [03:41:58]wFMCommunicate OK [03:41:58]SAM_PROTO_ClearQueue done [03:41:58]KKMCreateOFDPacket [03:41:58]OFDProtocolAddRootSTLVToBuf [03:41:58]FM_MakeSignedData [03:41:58]FM_MakeSignedData [03:41:58]SAM_PROTO_SignData [03:41:58]wFMCommunicate request_size=4 [03:41:58]MH_SAM_APDU [03:41:58]CAPDU: 80 0D 01 02 [03:41:58]Write to MH i2c: E2 08 00 7E 0F 80 0D 01 02 00 00 00 00 06 [03:41:58]Write i2c OK [03:41:58]MH_I2C_Read... [03:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:59]Read from MH i2c: E2 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 03 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 03 00 7E 0F 00 90 00 01 [03:41:59]RAPDU: 90 00 [03:41:59]wFMCommunicate OK [03:41:59]wFMCommunicate request_size=255 [03:41:59]MH_SAM_APDU [03:41: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 33 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 07 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DE 02 00 35 04 06 00 5F [03:41:59]Write to MH i2c: E2 02 01 7F 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 33 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 07 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DE 02 00 35 04 06 00 5F 00 00 E2 [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:59]Read from MH i2c: E2 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 03 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 03 00 7F 0F 00 90 00 02 [03:41:59]RAPDU: 90 00 [03:41:59]wFMCommunicate OK [03:41:59]wFMCommunicate request_size=10 [03:41:59]MH_SAM_APDU [03:41:59]CAPDU: 80 0D 02 02 05 5D 7E 3E 17 06 [03:41:59]Write to MH i2c: E2 0D 00 80 0F 80 0D 02 02 05 00 5D 7E 3E 17 06 00 00 49 [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:59]Read from MH i2c: E2 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 03 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 03 00 80 0F 00 90 00 03 [03:41:59]RAPDU: 90 00 [03:41:59]wFMCommunicate OK [03:41:59]wFMCommunicate request_size=4 [03:41:59]MH_SAM_APDU [03:41:59]CAPDU: 80 0D 03 02 [03:41:59]Write to MH i2c: E2 08 00 81 0F 80 0D 03 02 00 00 00 00 0B [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:59]Read from MH i2c: E2 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 0B 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 0B 00 81 0F 00 4C DE B2 CA 86 07 0C 0C 90 00 57 [03:41:59]RAPDU: 4C DE B2 CA 86 07 0C 0C 90 00 [03:41:59]wFMCommunicate OK [03:41:59]SAM_PROTO_SignData done [03:41:59]FM_MakeSignedData done [03:41:59]CreateOFDProtocolMessage [03:41:59]wFMCommunicate request_size=4 [03:41:59]MH_SAM_APDU [03:41:59]CAPDU: 80 11 00 00 [03:41:59]Write to MH i2c: E2 08 00 82 0F 80 11 00 00 00 00 00 00 0B [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:59]Read from MH i2c: E2 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 17 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: E2 17 00 82 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [03:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:41:59]wFMCommunicate OK [03:41:59]CreateOFDProtocolMessage done [03:41:59]OFDSenderStorePacket 188008 [03:41:59]StoreOFDPacket docnum=188008 [03:41:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 BF 07 01 46 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 07 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DE 02 00 35 04 06 00 5F 5D 7E 3E 17 06 4C DE B2 CA 86 07 0C 0C [03:41:59]CheckFolder [03:41:59]dirname=/storage/ofd_packets [03:41:59]CheckFolder done [03:41:59]ProducePacketName [03:41:59]name=ofd_packets/00188008 [03:41:59]NVStorageSaveData ofd_packets/00188008 [03:41:59]File name is /storage/ofd_packets/00188008 [03:41:59]Write 301 bytes [03:41:59]NVStorageSaveData done [03:41:59]OFDSenderStorePacket done [03:41:59]KKMCreateOFDPacket done [03:41:59]NVStorageSaveData kkm_last_timestamp [03:41:59]File name is /storage/kkm_last_timestamp [03:41:59]Write 4 bytes [03:41:59]NVStorageSaveData done [03:41:59]ExternCall_PrintAddStr [03:41:59]wPrintStart [03:41:59]Write to MH i2c: 01 00 00 83 0F 92 [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: 01 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: 01 07 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: 01 07 00 83 0F 00 00 00 00 00 FF 0F A7 [03:41:59]RasterBufferAndPrint [03:41:59]line Счет N : (1)210060 [03:41:59]line ИНН: 02508201610067 [03:41:59]line Контрольно-Кассовый Чек [03:41:59]line ПРОДАЖА [03:41:59]line ТРК (МРК, ГНК) : 42 [03:41:59]line Товар: 2710124130 [03:41:59]line Аи-92-К-3 [03:41:59]line 2.100 * 66.90 [03:41:59]line = 140.49 [03:41:59]line НДС 12% НСП 1% [03:41:59]line > о реализуемом товаре [03:41:59]line ОКРУГЛЕНИЕ: -0.49 [03:41:59]line ИТОГО: 140.00 [03:41:59]line Внесено: 140.00 [03:41:59]line СДАЧА: 0.00 [03:41:59]line НСП 1% : 1.24 [03:41:59]line НДС 12% : 14.92 [03:41:59]line Наличными: 140.00 [03:41:59]line Безнал.: 0.00 [03:41:59]line Место: АЗС № 86 "Партнер Нефть" [03:41:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:41:59]line СНО: Общий режим [03:41:59]line Чек 37 22.10.2024 03:41 [03:41:59]line Смена: 461 ФФД: 1.0 [03:41:59]line ЗНМ: 0300000155 [03:41:59]line РНМ: 0000000000100030 [03:41:59]line Версия ККМ: 001 [03:41:59]line ФМ: 0000000000965340 [03:41:59]line ФД: 188008 [03:41:59]line ФПД: 104855154595590 [03:41:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T034159&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188008&fm=104855154595590&tin=02508201610067®Number=0000000000100030&sum=14000 [03:41:59]written 0, free lines is 4095 [03:41:59]OFD Sender: Processing packet 188008 [packets to send 1062, broken 1061] [03:41:59]ProducePacketName [03:41:59]name=ofd_packets/00188008 [03:41:59]OFD Sender: To server: pG, [03:41:59]CommunicateWithHost lk.salyk.kg:30040 [03:41:59]ConnectInit lk.salyk.kg [03:41:59]Connected sock=11 [03:41:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 BF 07 01 46 A9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 34 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E1 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D4 05 00 00 00 00 07 04 06 00 B0 36 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 00 00 00 F4 03 04 00 07 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DE 02 00 35 04 06 00 5F 5D 7E 3E 17 06 4C DE B2 CA 86 07 0C 0C [03:41:59]Write to MH i2c: 01 00 00 AE 0F BD [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: 01 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: 01 07 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: 01 07 00 AE 0F 00 00 00 00 00 52 0C 22 [03:41:59]RasterBufferAndPrint [03:41:59]line [03:41:59]line [03:41:59]line [03:41:59]line [03:41:59]line [03:41:59]written 0, free lines is 3157 [03:41:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E 72 47 00 9B 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 39 36 35 33 34 30 10 04 04 00 68 DE 02 00 F4 03 04 00 F5 C8 16 67 B6 04 01 00 00 1F D2 ED A0 20 C0 E4 71 [03:41:59]CommunicateWithHost err = 0 [03:41:59]CheckOFDResponse [03:41:59]1017 (14) - 77093643461234 [03:41:59]1041 (16) - 0000000000965340 [03:41:59]1040 (4) - 188008 [03:41:59]1012 (4) - 21.10.2024 21:34 [03:41:59]1206 (1) - 0 [03:41:59]OFD Sender: Remove packet 188008 [03:41:59]ProducePacketName [03:41:59]name=ofd_packets/00188008 [03:41:59]NVStorageDeleteData [03:41:59]MH_Cut [03:41:59]Write to MH i2c: D1 01 00 B5 0F 01 96 [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: D1 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: D1 01 00 [03:41:59]MH_I2C_Read... [03:41:59]Read from MH i2c: D1 01 00 B5 0F 00 95 [03:41:59]Write to MH i2c: 01 00 00 B6 0F C5 [03:41:59]Write i2c OK [03:41:59]MH_I2C_Read... [03:42:00]OFD Sender: No OFD packet to send [03:42:01]*** Cut start [03:42:01]*** Partial cut [03:42:01]*** CUTSNS_PIN = 1 [03:42:01]*** CUTSNS_PIN = 0 [03:42:01]*** Brake cut motor [03:42:01]Read from MH i2c: 01 [03:42:01]MH_I2C_Read... [03:42:01]*** Stop cut motor [03:42:01]*** Cut end [03:42:01]Read from MH i2c: 01 07 00 [03:42:01]MH_I2C_Read... [03:42:01]Read from MH i2c: 01 07 00 B6 0F 00 00 00 00 00 FF 0F DA [03:42:01]process_action close_receipt done [03:42:01]requested_data is exist [03:42:01]produce_requested_data [03:42:01]requested_item fm.sn is exist - process it [03:42:01]wFMCommunicate request_size=4 [03:42:01]MH_SAM_APDU [03:42:01]CAPDU: 80 11 00 00 [03:42:01]Write to MH i2c: E2 08 00 B7 0F 80 11 00 00 00 00 00 00 40 [03:42:01]Write i2c OK [03:42:01]MH_I2C_Read... [03:42:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:42:01]Read from MH i2c: E2 [03:42:01]MH_I2C_Read... [03:42:01]Read from MH i2c: E2 17 00 [03:42:01]MH_I2C_Read... [03:42:01]Read from MH i2c: E2 17 00 B7 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [03:42:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:42:01]wFMCommunicate OK [03:42:01]requested_item fd.num is exist - process it [03:42:01]SAM_PROTO_GetFieldsCounters [03:42:01]wFMCommunicate request_size=4 [03:42:01]MH_SAM_APDU [03:42:01]CAPDU: 80 13 00 00 [03:42:01]Write to MH i2c: E2 08 00 B8 0F 80 13 00 00 00 00 00 00 43 [03:42:01]Write i2c OK [03:42:01]MH_I2C_Read... [03:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:42:02]Read from MH i2c: E2 [03:42:02]MH_I2C_Read... [03:42:02]Read from MH i2c: E2 62 00 [03:42:02]MH_I2C_Read... [03:42:02]Read from MH i2c: E2 62 00 B8 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 DE 02 00 0E 04 04 00 CD 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 CF [03:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 DE 02 00 0E 04 04 00 CD 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 [03:42:02]wFMCommunicate OK [03:42:02]SAM_PROTO_GetFieldsCounters done [03:42:02]requested_item shift.num is exist - process it [03:42:02]requested_item shift.opened is exist - process it [03:42:02]req_shift_opened [03:42:02]FM_GetShiftState [03:42:02]SAM_PROTO_GetShiftState [03:42:02]wFMCommunicate request_size=4 [03:42:02]MH_SAM_APDU [03:42:02]CAPDU: 80 13 01 00 [03:42:02]Write to MH i2c: E2 08 00 B9 0F 80 13 01 00 00 00 00 00 45 [03:42:02]Write i2c OK [03:42:02]MH_I2C_Read... [03:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:42:02]Read from MH i2c: E2 [03:42:02]MH_I2C_Read... [03:42:02]Read from MH i2c: E2 0E 00 [03:42:02]MH_I2C_Read... [03:42:02]Read from MH i2c: E2 0E 00 B9 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [03:42:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:42:02]wFMCommunicate OK [03:42:02]SAM_PROTO_GetShiftState done [03:42:02]FM_GetShiftState done [03:42:02]req_shift_opened done [03:42:02]requested_item shift.open_date is exist - process it [03:42:02]req_shift_open_date [03:42:02]req_shift_open_date done [03:42:02]produce_requested_data done [03:42:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188008,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:42:02]process_action_free close_receipt [03:42:02]json_value_free [03:42:02]json_value_free done [03:42:02]process_json_proto returns [03:42:02]Send response to host [03:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188008,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:42:02]free response buf [03:42:02]execute_script done [03:42:02]execute_script returns [03:42:02]free content buf [03:42:02]Sock 9.Close socket [03:42:02]Sock 9.Thread stoped [03:42:05]OFD Sender: No OFD packet to send [03:42:10]OFD Sender: No OFD packet to send [03:42:15]OFD Sender: No OFD packet to send [03:42:20]OFD Sender: No OFD packet to send [03:42:25]OFD Sender: No OFD packet to send [03:42:30]OFD Sender: No OFD packet to send [03:42:35]OFD Sender: No OFD packet to send [03:42:40]OFD Sender: No OFD packet to send [03:42:45]OFD Sender: No OFD packet to send [03:42:50]OFD Sender: No OFD packet to send [03:42:55]OFD Sender: No OFD packet to send [03:43:00]OFD Sender: No OFD packet to send [03:43:05]OFD Sender: No OFD packet to send [03:43:10]OFD Sender: No OFD packet to send [03:43:15]OFD Sender: No OFD packet to send [03:43:20]OFD Sender: No OFD packet to send [03:43:25]OFD Sender: No OFD packet to send [03:43:30]OFD Sender: No OFD packet to send [03:43:35]OFD Sender: No OFD packet to send [03:43:40]OFD Sender: No OFD packet to send [03:43:45]OFD Sender: No OFD packet to send [03:43:50]OFD Sender: No OFD packet to send [03:43: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:13]accept exits with 8 [03:44:13]New connection [03:44:13]New thread 3067055460 created [03:44:13]Thread 3067198820 joined [03:44:13]Waiting for new connection... [03:44:13] Sock 8.Parse request [03:44:13]Sock 8.Check first char [03:44:13]Sock 8.First char is OK [03:44:13]request: POST /json_proto HTTP/1.0 [03:44:13]Method: POST [03:44:13]URL: /json_proto [03:44:13]Method is POST - this is cgi request [03:44:13]url: /json_proto [03:44:13]query_string will be loaded in cgi processing [03:44:13]execute_cgi json_proto POST (null) [03:44:13]execute_cgi path=json_proto method=POST [03:44:13]POST find Content-Length [03:44:13]Host: 172.17.42.131:8080 [03:44:13]Content-Length: 688 [03:44:13]Content-Type: application/json [03:44:13] [03:44:13]POST finish read [03:44:13]Found Content-Length = 688 [03:44:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:13]execute_script... [03:44: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)210059", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:44:13]POST & json_proto [03:44:13]process_json_proto [03:44:13]json parsed OK: [03:44:13]protocol is kg_v1.0 [03:44:13]action value=close_receipt [03:44:13]process_action close_receipt [03:44:13]cmd_close_receipt [03:44:13]MH_GetDate [03:44:13]Write to MH i2c: F0 00 00 BA 0F B8 [03:44:13]Write i2c OK [03:44:13]MH_I2C_Read... [03:44:13]Read from MH i2c: F0 [03:44:13]MH_I2C_Read... [03:44:13]Read from MH i2c: F0 09 00 [03:44:13]MH_I2C_Read... [03:44:13]Read from MH i2c: F0 09 00 BA 0F 00 8F 1F 17 67 A0 18 CA 66 D5 [03:44:13]GetLastDocTimeStamp 1729568519 [03:44:13]current date 1729568655 [03:44:13]FM_GetShiftState [03:44:13]SAM_PROTO_GetShiftState [03:44:13]wFMCommunicate request_size=4 [03:44:13]MH_SAM_APDU [03:44:13]CAPDU: 80 13 01 00 [03:44:13]Write to MH i2c: E2 08 00 BB 0F 80 13 01 00 00 00 00 00 47 [03:44:13]Write i2c OK [03:44:13]MH_I2C_Read... [03:44:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:13]Read from MH i2c: E2 [03:44:13]MH_I2C_Read... [03:44:13]Read from MH i2c: E2 0E 00 [03:44:13]MH_I2C_Read... [03:44:13]Read from MH i2c: E2 0E 00 BB 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3C [03:44:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:44:13]wFMCommunicate OK [03:44:13]SAM_PROTO_GetShiftState done [03:44:13]FM_GetShiftState done [03:44:13]opened in 1729556094 [03:44:13]opened+sec_in_day 1729642494 [03:44:13]quantity*price = 500024 [03:44:13]sum+1 = 500025 [03:44:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 38 22.10.2024 03:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188009 ФПД: 34690053037757 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T034415&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188009&fm=34690053037757&tin=02508201610067®Number=0000000000100030&sum=500000 [03:44:14]StoreToDocumentArchive [03:44:14]shift 461 fd 188009 [03:44:14]save to /storage/0461/doc_00188009 [03:44:14]save last doc name /storage/0461/doc_00188009 to /storage/kkm_last_doc_name [03:44:14]save OK [03:44:14]Clear old archive folders... [03:44:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [03:44:14]tlvbuf is 01B9D0A0 [03:44:14]SAM_PROTO_ClearQueue [03:44:14]wFMCommunicate request_size=4 [03:44:14]MH_SAM_APDU [03:44:14]CAPDU: 80 09 00 00 [03:44:14]Write to MH i2c: E2 08 00 C8 0F 80 09 00 00 00 00 00 00 49 [03:44:14]Write i2c OK [03:44:14]MH_I2C_Read... [03:44:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:15]Read from MH i2c: E2 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 C8 0F 00 90 00 4B [03:44:15]RAPDU: 90 00 [03:44:15]wFMCommunicate OK [03:44:15]SAM_PROTO_ClearQueue done [03:44:15]KKMCreateOFDPacket [03:44:15]OFDProtocolAddRootSTLVToBuf [03:44:15]FM_MakeSignedData [03:44:15]FM_MakeSignedData [03:44:15]SAM_PROTO_SignData [03:44:15]wFMCommunicate request_size=4 [03:44:15]MH_SAM_APDU [03:44:15]CAPDU: 80 0D 01 02 [03:44:15]Write to MH i2c: E2 08 00 C9 0F 80 0D 01 02 00 00 00 00 51 [03:44:15]Write i2c OK [03:44:15]MH_I2C_Read... [03:44:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:15]Read from MH i2c: E2 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 C9 0F 00 90 00 4C [03:44:15]RAPDU: 90 00 [03:44:15]wFMCommunicate OK [03:44:15]wFMCommunicate request_size=255 [03:44:15]MH_SAM_APDU [03:44:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 8F 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DE 02 [03:44:15]Write to MH i2c: E2 02 01 CA 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 8F 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DE 02 00 00 7F [03:44:15]Write i2c OK [03:44:15]MH_I2C_Read... [03:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:15]Read from MH i2c: E2 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 CA 0F 00 90 00 4D [03:44:15]RAPDU: 90 00 [03:44:15]wFMCommunicate OK [03:44:15]wFMCommunicate request_size=16 [03:44:15]MH_SAM_APDU [03:44:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1F 8C E8 49 DE BD [03:44:15]Write to MH i2c: E2 13 00 CB 0F 80 0D 02 02 0B 00 00 35 04 06 00 1F 8C E8 49 DE BD 00 00 20 [03:44:15]Write i2c OK [03:44:15]MH_I2C_Read... [03:44:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:15]Read from MH i2c: E2 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 03 00 CB 0F 00 90 00 4E [03:44:15]RAPDU: 90 00 [03:44:15]wFMCommunicate OK [03:44:15]wFMCommunicate request_size=4 [03:44:15]MH_SAM_APDU [03:44:15]CAPDU: 80 0D 03 02 [03:44:15]Write to MH i2c: E2 08 00 CC 0F 80 0D 03 02 00 00 00 00 56 [03:44:15]Write i2c OK [03:44:15]MH_I2C_Read... [03:44:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:15]Read from MH i2c: E2 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 0B 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 0B 00 CC 0F 00 EE 2A 30 B0 68 9D 33 E4 90 00 6B [03:44:15]RAPDU: EE 2A 30 B0 68 9D 33 E4 90 00 [03:44:15]wFMCommunicate OK [03:44:15]SAM_PROTO_SignData done [03:44:15]FM_MakeSignedData done [03:44:15]CreateOFDProtocolMessage [03:44:15]wFMCommunicate request_size=4 [03:44:15]MH_SAM_APDU [03:44:15]CAPDU: 80 11 00 00 [03:44:15]Write to MH i2c: E2 08 00 CD 0F 80 11 00 00 00 00 00 00 56 [03:44:15]Write i2c OK [03:44:15]MH_I2C_Read... [03:44:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:15]Read from MH i2c: E2 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 17 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: E2 17 00 CD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [03:44:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:44:15]wFMCommunicate OK [03:44:15]CreateOFDProtocolMessage done [03:44:15]OFDSenderStorePacket 188009 [03:44:15]StoreOFDPacket docnum=188009 [03:44:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BA A8 0D 01 CE 2A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 8F 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DE 02 00 35 04 06 00 1F 8C E8 49 DE BD EE 2A 30 B0 68 9D 33 E4 [03:44:15]CheckFolder [03:44:15]dirname=/storage/ofd_packets [03:44:15]CheckFolder done [03:44:15]ProducePacketName [03:44:15]name=ofd_packets/00188009 [03:44:15]NVStorageSaveData ofd_packets/00188009 [03:44:15]File name is /storage/ofd_packets/00188009 [03:44:15]Write 307 bytes [03:44:15]NVStorageSaveData done [03:44:15]OFDSenderStorePacket done [03:44:15]KKMCreateOFDPacket done [03:44:15]NVStorageSaveData kkm_last_timestamp [03:44:15]File name is /storage/kkm_last_timestamp [03:44:15]Write 4 bytes [03:44:15]NVStorageSaveData done [03:44:15]ExternCall_PrintAddStr [03:44:15]wPrintStart [03:44:15]Write to MH i2c: 01 00 00 CE 0F DD [03:44:15]Write i2c OK [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: 01 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: 01 07 00 [03:44:15]MH_I2C_Read... [03:44:15]Read from MH i2c: 01 07 00 CE 0F 00 00 00 00 00 FF 0F F2 [03:44:15]RasterBufferAndPrint [03:44:15]line Счет N : (1)210059 [03:44:15]line ИНН: 02508201610067 [03:44:15]line Контрольно-Кассовый Чек [03:44:15]line ПРОДАЖА [03:44:15]line ТРК (МРК, ГНК) : 11 [03:44:15]line Товар: 2710194210 [03:44:15]line D-ENERGY ДТ-К-5 [03:44:15]line 64.770 * 77.20 [03:44:15]line = 5000.24 [03:44:15]line НДС 12% НСП 1% [03:44:15]line > о реализуемом товаре [03:44:15]line ОКРУГЛЕНИЕ: -0.24 [03:44:15]line ИТОГО: 5000.00 [03:44:15]line Внесено: 5000.00 [03:44:15]line СДАЧА: 0.00 [03:44:15]line НСП 1% : 44.25 [03:44:15]line НДС 12% : 531.00 [03:44:15]line Наличными: 5000.00 [03:44:15]line Безнал.: 0.00 [03:44:15]line Место: АЗС № 86 "Партнер Нефть" [03:44:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:44:15]line СНО: Общий режим [03:44:15]line Чек 38 22.10.2024 03:44 [03:44:15]line Смена: 461 ФФД: 1.0 [03:44:15]line ЗНМ: 0300000155 [03:44:15]line РНМ: 0000000000100030 [03:44:15]line Версия ККМ: 001 [03:44:15]line ФМ: 0000000000965340 [03:44:15]line ФД: 188009 [03:44:15]line ФПД: 34690053037757 [03:44:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T034415&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188009&fm=34690053037757&tin=02508201610067®Number=0000000000100030&sum=500000 [03:44:15]written 0, free lines is 4095 [03:44:15]OFD Sender: Processing packet 188009 [packets to send 1062, broken 1061] [03:44:15]ProducePacketName [03:44:15]name=ofd_packets/00188009 [03:44:15]OFD Sender: To server: pG, [03:44:15]CommunicateWithHost lk.salyk.kg:30040 [03:44:15]ConnectInit lk.salyk.kg [03:44:15]Connected sock=10 [03:44:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BA A8 0D 01 CE 2A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 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 8F 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DE 02 00 35 04 06 00 1F 8C E8 49 DE BD EE 2A 30 B0 68 9D 33 E4 [03:44:16]Write to MH i2c: 01 00 00 F9 0F 08 [03:44:16]Write i2c OK [03:44:16]MH_I2C_Read... [03:44:16]Read from MH i2c: 01 [03:44:16]MH_I2C_Read... [03:44:16]Read from MH i2c: 01 07 00 [03:44:16]MH_I2C_Read... [03:44:16]Read from MH i2c: 01 07 00 F9 0F 00 00 00 00 00 58 0C 73 [03:44:16]RasterBufferAndPrint [03:44:16]line [03:44:16]line [03:44:16]line [03:44:16]line [03:44:16]line [03:44:16]written 0, free lines is 3165 [03:44:16]MH_Cut [03:44:16]Write to MH i2c: D1 01 00 00 10 01 E2 [03:44:16]Write i2c OK [03:44:16]MH_I2C_Read... [03:44:16]Read from MH i2c: D1 [03:44:16]MH_I2C_Read... [03:44:16]Read from MH i2c: D1 01 00 [03:44:16]MH_I2C_Read... [03:44:16]Read from MH i2c: D1 01 00 00 10 00 E1 [03:44:16]Write to MH i2c: 01 00 00 01 10 11 [03:44:16]Write i2c OK [03:44:16]MH_I2C_Read... [03:44:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 01 47 00 47 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DE 02 00 F4 03 04 00 7D C9 16 67 B6 04 01 00 00 D2 5D AD C0 7D F2 0F 5E [03:44:16]CommunicateWithHost err = 0 [03:44:16]CheckOFDResponse [03:44:16]1017 (14) - 77093643461234 [03:44:16]1041 (16) - 0000000000965340 [03:44:16]1040 (4) - 188009 [03:44:16]1012 (4) - 21.10.2024 21:37 [03:44:16]1206 (1) - 0 [03:44:16]OFD Sender: Remove packet 188009 [03:44:16]ProducePacketName [03:44:16]name=ofd_packets/00188009 [03:44:16]NVStorageDeleteData [03:44:16]OFD Sender: No OFD packet to send [03:44:17]*** Cut start [03:44:17]*** Partial cut [03:44:17]*** CUTSNS_PIN = 1 [03:44:17]*** CUTSNS_PIN = 0 [03:44:17]*** Brake cut motor [03:44:17]Read from MH i2c: 01 [03:44:17]MH_I2C_Read... [03:44:17]*** Stop cut motor [03:44:17]*** Cut end [03:44:17]Read from MH i2c: 01 07 00 [03:44:17]MH_I2C_Read... [03:44:17]Read from MH i2c: 01 07 00 01 10 00 00 00 00 00 FF 0F 26 [03:44:17]process_action close_receipt done [03:44:17]requested_data is exist [03:44:17]produce_requested_data [03:44:17]requested_item fm.sn is exist - process it [03:44:17]wFMCommunicate request_size=4 [03:44:17]MH_SAM_APDU [03:44:17]CAPDU: 80 11 00 00 [03:44:17]Write to MH i2c: E2 08 00 02 10 80 11 00 00 00 00 00 00 8C [03:44:17]Write i2c OK [03:44:17]MH_I2C_Read... [03:44:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:17]Read from MH i2c: E2 [03:44:17]MH_I2C_Read... [03:44:17]Read from MH i2c: E2 17 00 [03:44:17]MH_I2C_Read... [03:44:17]Read from MH i2c: E2 17 00 02 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [03:44:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:44:17]wFMCommunicate OK [03:44:17]requested_item fd.num is exist - process it [03:44:17]SAM_PROTO_GetFieldsCounters [03:44:17]wFMCommunicate request_size=4 [03:44:17]MH_SAM_APDU [03:44:17]CAPDU: 80 13 00 00 [03:44:17]Write to MH i2c: E2 08 00 03 10 80 13 00 00 00 00 00 00 8F [03:44:17]Write i2c OK [03:44:17]MH_I2C_Read... [03:44:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:18]Read from MH i2c: E2 [03:44:18]MH_I2C_Read... [03:44:18]Read from MH i2c: E2 62 00 [03:44:18]MH_I2C_Read... [03:44:18]Read from MH i2c: E2 62 00 03 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 DE 02 00 0E 04 04 00 CD 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 1F [03:44:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 DE 02 00 0E 04 04 00 CD 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 [03:44:18]wFMCommunicate OK [03:44:18]SAM_PROTO_GetFieldsCounters done [03:44:18]requested_item shift.num is exist - process it [03:44:18]requested_item shift.opened is exist - process it [03:44:18]req_shift_opened [03:44:18]FM_GetShiftState [03:44:18]SAM_PROTO_GetShiftState [03:44:18]wFMCommunicate request_size=4 [03:44:18]MH_SAM_APDU [03:44:18]CAPDU: 80 13 01 00 [03:44:18]Write to MH i2c: E2 08 00 04 10 80 13 01 00 00 00 00 00 91 [03:44:18]Write i2c OK [03:44:18]MH_I2C_Read... [03:44:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:18]Read from MH i2c: E2 [03:44:18]MH_I2C_Read... [03:44:18]Read from MH i2c: E2 0E 00 [03:44:18]MH_I2C_Read... [03:44:18]Read from MH i2c: E2 0E 00 04 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 86 [03:44:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:44:18]wFMCommunicate OK [03:44:18]SAM_PROTO_GetShiftState done [03:44:18]FM_GetShiftState done [03:44:18]req_shift_opened done [03:44:18]requested_item shift.open_date is exist - process it [03:44:18]req_shift_open_date [03:44:18]req_shift_open_date done [03:44:18]produce_requested_data done [03:44:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188009,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:44:18]process_action_free close_receipt [03:44:18]json_value_free [03:44:18]json_value_free done [03:44:18]process_json_proto returns [03:44:18]Send response to host [03:44:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188009,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:44:18]free response buf [03:44:18]execute_script done [03:44:18]execute_script returns [03:44:18]free content buf [03:44:18]Sock 8.Close socket [03:44:18]Sock 8.Thread stoped [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:53]accept exits with 9 [03:44:53]New connection [03:44:53]New thread 3067198820 created [03:44:53]Thread 3067055460 joined [03:44:53]Waiting for new connection... [03:44:53] Sock 9.Parse request [03:44:53]Sock 9.Check first char [03:44:53]Sock 9.First char is OK [03:44:53]request: POST /json_proto HTTP/1.0 [03:44:53]Method: POST [03:44:53]URL: /json_proto [03:44:53]Method is POST - this is cgi request [03:44:53]url: /json_proto [03:44:53]query_string will be loaded in cgi processing [03:44:53]execute_cgi json_proto POST (null) [03:44:53]execute_cgi path=json_proto method=POST [03:44:53]POST find Content-Length [03:44:53]Host: 172.17.42.131:8080 [03:44:53]Content-Length: 679 [03:44:53]Content-Type: application/json [03:44:53] [03:44:53]POST finish read [03:44:53]Found Content-Length = 679 [03:44:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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" ] } } [03:44:53]execute_script... [03:44: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)210061", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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" ] } } [03:44:53]POST & json_proto [03:44:53]process_json_proto [03:44:53]json parsed OK: [03:44:53]protocol is kg_v1.0 [03:44:53]action value=close_receipt [03:44:53]process_action close_receipt [03:44:53]cmd_close_receipt [03:44:53]MH_GetDate [03:44:53]Write to MH i2c: F0 00 00 05 10 04 [03:44:53]Write i2c OK [03:44:53]MH_I2C_Read... [03:44:53]Read from MH i2c: F0 [03:44:53]MH_I2C_Read... [03:44:53]Read from MH i2c: F0 09 00 [03:44:53]MH_I2C_Read... [03:44:53]Read from MH i2c: F0 09 00 05 10 00 B7 1F 17 67 A0 18 CA 66 49 [03:44:53]GetLastDocTimeStamp 1729568655 [03:44:53]current date 1729568695 [03:44:53]FM_GetShiftState [03:44:53]SAM_PROTO_GetShiftState [03:44:53]wFMCommunicate request_size=4 [03:44:53]MH_SAM_APDU [03:44:53]CAPDU: 80 13 01 00 [03:44:53]Write to MH i2c: E2 08 00 06 10 80 13 01 00 00 00 00 00 93 [03:44:53]Write i2c OK [03:44:53]MH_I2C_Read... [03:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:53]Read from MH i2c: E2 [03:44:53]MH_I2C_Read... [03:44:53]Read from MH i2c: E2 0E 00 [03:44:53]MH_I2C_Read... [03:44:53]Read from MH i2c: E2 0E 00 06 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 88 [03:44:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:44:53]wFMCommunicate OK [03:44:53]SAM_PROTO_GetShiftState done [03:44:53]FM_GetShiftState done [03:44:53]opened in 1729556094 [03:44:53]opened+sec_in_day 1729642494 [03:44:53]quantity*price = 150037 [03:44:53]sum+1 = 150039 [03:44:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 39 22.10.2024 03:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188010 ФПД: 148896798059217 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T034455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188010&fm=148896798059217&tin=02508201610067®Number=0000000000100030&sum=150000 [03:44:54]StoreToDocumentArchive [03:44:54]shift 461 fd 188010 [03:44:54]save to /storage/0461/doc_00188010 [03:44:54]save last doc name /storage/0461/doc_00188010 to /storage/kkm_last_doc_name [03:44:54]save OK [03:44:54]Clear old archive folders... [03:44:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [03:44:54]tlvbuf is 01BF9730 [03:44:54]SAM_PROTO_ClearQueue [03:44:54]wFMCommunicate request_size=4 [03:44:54]MH_SAM_APDU [03:44:54]CAPDU: 80 09 00 00 [03:44:54]Write to MH i2c: E2 08 00 13 10 80 09 00 00 00 00 00 00 95 [03:44:54]Write i2c OK [03:44:54]MH_I2C_Read... [03:44:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:44:54]Read from MH i2c: E2 [03:44:54]MH_I2C_Read... [03:44:54]Read from MH i2c: E2 03 00 [03:44:54]MH_I2C_Read... [03:44:54]Read from MH i2c: E2 03 00 13 10 00 90 00 97 [03:44:54]RAPDU: 90 00 [03:44:54]wFMCommunicate OK [03:44:54]SAM_PROTO_ClearQueue done [03:44:54]KKMCreateOFDPacket [03:44:54]OFDProtocolAddRootSTLVToBuf [03:44:54]FM_MakeSignedData [03:44:54]FM_MakeSignedData [03:44:54]SAM_PROTO_SignData [03:44:54]wFMCommunicate request_size=4 [03:44:54]MH_SAM_APDU [03:44:54]CAPDU: 80 0D 01 02 [03:44:54]Write to MH i2c: E2 08 00 14 10 80 0D 01 02 00 00 00 00 9D [03:44:54]Write i2c OK [03:44:54]MH_I2C_Read... [03:44:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:44:54]Read from MH i2c: E2 [03:44:54]MH_I2C_Read... [03:44:54]Read from MH i2c: E2 03 00 [03:44:54]MH_I2C_Read... [03:44:54]Read from MH i2c: E2 03 00 14 10 00 90 00 98 [03:44:54]RAPDU: 90 00 [03:44:54]wFMCommunicate OK [03:44:54]wFMCommunicate request_size=255 [03:44:54]MH_SAM_APDU [03:44: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 32 31 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B7 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DE 02 00 35 04 06 00 87 6B BC C1 [03:44:54]Write to MH i2c: E2 02 01 15 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B7 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DE 02 00 35 04 06 00 87 6B BC C1 00 00 81 [03:44:54]Write i2c OK [03:44:54]MH_I2C_Read... [03:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:55]Read from MH i2c: E2 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 03 00 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 03 00 15 10 00 90 00 99 [03:44:55]RAPDU: 90 00 [03:44:55]wFMCommunicate OK [03:44:55]wFMCommunicate request_size=7 [03:44:55]MH_SAM_APDU [03:44:55]CAPDU: 80 0D 02 02 02 AA D1 [03:44:55]Write to MH i2c: E2 0A 00 16 10 80 0D 02 02 02 00 AA D1 00 00 1F [03:44:55]Write i2c OK [03:44:55]MH_I2C_Read... [03:44:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:44:55]Read from MH i2c: E2 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 03 00 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 03 00 16 10 00 90 00 9A [03:44:55]RAPDU: 90 00 [03:44:55]wFMCommunicate OK [03:44:55]wFMCommunicate request_size=4 [03:44:55]MH_SAM_APDU [03:44:55]CAPDU: 80 0D 03 02 [03:44:55]Write to MH i2c: E2 08 00 17 10 80 0D 03 02 00 00 00 00 A2 [03:44:55]Write i2c OK [03:44:55]MH_I2C_Read... [03:44:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:44:55]Read from MH i2c: E2 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 0B 00 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 0B 00 17 10 00 58 19 6C CA 93 56 4D EE 90 00 6E [03:44:55]RAPDU: 58 19 6C CA 93 56 4D EE 90 00 [03:44:55]wFMCommunicate OK [03:44:55]SAM_PROTO_SignData done [03:44:55]FM_MakeSignedData done [03:44:55]CreateOFDProtocolMessage [03:44:55]wFMCommunicate request_size=4 [03:44:55]MH_SAM_APDU [03:44:55]CAPDU: 80 11 00 00 [03:44:55]Write to MH i2c: E2 08 00 18 10 80 11 00 00 00 00 00 00 A2 [03:44:55]Write i2c OK [03:44:55]MH_I2C_Read... [03:44:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:55]Read from MH i2c: E2 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 17 00 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: E2 17 00 18 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [03:44:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:44:55]wFMCommunicate OK [03:44:55]CreateOFDProtocolMessage done [03:44:55]OFDSenderStorePacket 188010 [03:44:55]StoreOFDPacket docnum=188010 [03:44:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 81 D9 04 01 0E 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B7 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DE 02 00 35 04 06 00 87 6B BC C1 AA D1 58 19 6C CA 93 56 4D EE [03:44:55]CheckFolder [03:44:55]dirname=/storage/ofd_packets [03:44:55]CheckFolder done [03:44:55]ProducePacketName [03:44:55]name=ofd_packets/00188010 [03:44:55]NVStorageSaveData ofd_packets/00188010 [03:44:55]File name is /storage/ofd_packets/00188010 [03:44:55]Write 298 bytes [03:44:55]NVStorageSaveData done [03:44:55]OFDSenderStorePacket done [03:44:55]KKMCreateOFDPacket done [03:44:55]NVStorageSaveData kkm_last_timestamp [03:44:55]File name is /storage/kkm_last_timestamp [03:44:55]Write 4 bytes [03:44:55]NVStorageSaveData done [03:44:55]ExternCall_PrintAddStr [03:44:55]wPrintStart [03:44:55]Write to MH i2c: 01 00 00 19 10 29 [03:44:55]Write i2c OK [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: 01 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: 01 07 00 [03:44:55]MH_I2C_Read... [03:44:55]Read from MH i2c: 01 07 00 19 10 00 00 00 00 00 FF 0F 3E [03:44:55]RasterBufferAndPrint [03:44:55]line Счет N : (1)210061 [03:44:55]line ИНН: 02508201610067 [03:44:55]line Контрольно-Кассовый Чек [03:44:55]line ПРОДАЖА [03:44:55]line ТРК (МРК, ГНК) : 51 [03:44:55]line Товар: 2710194210 [03:44:55]line ДТ-К-5 [03:44:55]line 19.690 * 76.20 [03:44:55]line = 1500.38 [03:44:55]line НДС 12% НСП 1% [03:44:55]line > о реализуемом товаре [03:44:55]line ОКРУГЛЕНИЕ: -0.38 [03:44:55]line ИТОГО: 1500.00 [03:44:55]line Внесено: 1500.00 [03:44:55]line СДАЧА: 0.00 [03:44:55]line НСП 1% : 13.28 [03:44:55]line НДС 12% : 159.33 [03:44:55]line Наличными: 1500.00 [03:44:55]line Безнал.: 0.00 [03:44:55]line Место: АЗС № 86 "Партнер Нефть" [03:44:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:44:55]line СНО: Общий режим [03:44:55]line Чек 39 22.10.2024 03:44 [03:44:55]line Смена: 461 ФФД: 1.0 [03:44:55]line ЗНМ: 0300000155 [03:44:55]line РНМ: 0000000000100030 [03:44:55]line Версия ККМ: 001 [03:44:55]line ФМ: 0000000000965340 [03:44:55]line ФД: 188010 [03:44:55]line ФПД: 148896798059217 [03:44:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T034455&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188010&fm=148896798059217&tin=02508201610067®Number=0000000000100030&sum=150000 [03:44:55]OFD Sender: Processing packet 188010 [packets to send 1062, broken 1061] [03:44:55]ProducePacketName [03:44:55]name=ofd_packets/00188010 [03:44:55]OFD Sender: To server: pG, [03:44:55]CommunicateWithHost lk.salyk.kg:30040 [03:44:55]ConnectInit lk.salyk.kg [03:44:55]written 0, free lines is 4095 [03:44:55]Connected sock=10 [03:44:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 81 D9 04 01 0E 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 B7 1F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DE 02 00 35 04 06 00 87 6B BC C1 AA D1 58 19 6C CA 93 56 4D EE [03:44:56]Write to MH i2c: 01 00 00 44 10 54 [03:44:56]Write i2c OK [03:44:56]MH_I2C_Read... [03:44:56]Read from MH i2c: 01 [03:44:56]MH_I2C_Read... [03:44:56]Read from MH i2c: 01 07 00 [03:44:56]MH_I2C_Read... [03:44:56]Read from MH i2c: 01 07 00 44 10 00 00 00 00 00 5C 0C C3 [03:44:56]RasterBufferAndPrint [03:44:56]line [03:44:56]line [03:44:56]line [03:44:56]line [03:44:56]line [03:44:56]written 0, free lines is 3167 [03:44:56]MH_Cut [03:44:56]Write to MH i2c: D1 01 00 4B 10 01 2D [03:44:56]Write i2c OK [03:44:56]MH_I2C_Read... [03:44:56]Read from MH i2c: D1 [03:44:56]MH_I2C_Read... [03:44:56]Read from MH i2c: D1 01 00 [03:44:56]MH_I2C_Read... [03:44:56]Read from MH i2c: D1 01 00 4B 10 00 2C [03:44:56]Write to MH i2c: 01 00 00 4C 10 5C [03:44:56]Write i2c OK [03:44:56]MH_I2C_Read... [03:44:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE 10 47 00 95 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DE 02 00 F4 03 04 00 A5 C9 16 67 B6 04 01 00 00 44 7B 5F 93 5F FB F7 06 [03:44:56]CommunicateWithHost err = 0 [03:44:56]CheckOFDResponse [03:44:56]1017 (14) - 77093643461234 [03:44:56]1041 (16) - 0000000000965340 [03:44:56]1040 (4) - 188010 [03:44:56]1012 (4) - 21.10.2024 21:37 [03:44:56]1206 (1) - 0 [03:44:56]OFD Sender: Remove packet 188010 [03:44:56]ProducePacketName [03:44:56]name=ofd_packets/00188010 [03:44:56]NVStorageDeleteData [03:44:56]OFD Sender: No OFD packet to send [03:44:57]*** Cut start [03:44:57]*** Partial cut [03:44:57]*** CUTSNS_PIN = 1 [03:44:57]*** CUTSNS_PIN = 0 [03:44:57]*** Brake cut motor [03:44:58]Read from MH i2c: 01 [03:44:58]MH_I2C_Read... [03:44:58]*** Stop cut motor [03:44:58]*** Cut end [03:44:58]Read from MH i2c: 01 07 00 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: 01 07 00 4C 10 00 00 00 00 00 FF 0F 71 [03:44:58]process_action close_receipt done [03:44:58]requested_data is exist [03:44:58]produce_requested_data [03:44:58]requested_item fm.sn is exist - process it [03:44:58]wFMCommunicate request_size=4 [03:44:58]MH_SAM_APDU [03:44:58]CAPDU: 80 11 00 00 [03:44:58]Write to MH i2c: E2 08 00 4D 10 80 11 00 00 00 00 00 00 D7 [03:44:58]Write i2c OK [03:44:58]MH_I2C_Read... [03:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:44:58]Read from MH i2c: E2 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: E2 17 00 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: E2 17 00 4D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [03:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:44:58]wFMCommunicate OK [03:44:58]requested_item fd.num is exist - process it [03:44:58]SAM_PROTO_GetFieldsCounters [03:44:58]wFMCommunicate request_size=4 [03:44:58]MH_SAM_APDU [03:44:58]CAPDU: 80 13 00 00 [03:44:58]Write to MH i2c: E2 08 00 4E 10 80 13 00 00 00 00 00 00 DA [03:44:58]Write i2c OK [03:44:58]MH_I2C_Read... [03:44:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:44:58]Read from MH i2c: E2 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: E2 62 00 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: E2 62 00 4E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A DE 02 00 0E 04 04 00 CD 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 6E [03:44:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A DE 02 00 0E 04 04 00 CD 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 [03:44:58]wFMCommunicate OK [03:44:58]SAM_PROTO_GetFieldsCounters done [03:44:58]requested_item shift.num is exist - process it [03:44:58]requested_item shift.opened is exist - process it [03:44:58]req_shift_opened [03:44:58]FM_GetShiftState [03:44:58]SAM_PROTO_GetShiftState [03:44:58]wFMCommunicate request_size=4 [03:44:58]MH_SAM_APDU [03:44:58]CAPDU: 80 13 01 00 [03:44:58]Write to MH i2c: E2 08 00 4F 10 80 13 01 00 00 00 00 00 DC [03:44:58]Write i2c OK [03:44:58]MH_I2C_Read... [03:44:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:44:58]Read from MH i2c: E2 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: E2 0E 00 [03:44:58]MH_I2C_Read... [03:44:58]Read from MH i2c: E2 0E 00 4F 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [03:44:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:44:58]wFMCommunicate OK [03:44:58]SAM_PROTO_GetShiftState done [03:44:58]FM_GetShiftState done [03:44:58]req_shift_opened done [03:44:58]requested_item shift.open_date is exist - process it [03:44:58]req_shift_open_date [03:44:58]req_shift_open_date done [03:44:58]produce_requested_data done [03:44:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188010,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:44:58]process_action_free close_receipt [03:44:58]json_value_free [03:44:58]json_value_free done [03:44:58]process_json_proto returns [03:44:58]Send response to host [03:44:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188010,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:44:58]free response buf [03:44:58]execute_script done [03:44:58]execute_script returns [03:44:58]free content buf [03:44:58]Sock 9.Close socket [03:44:58]Sock 9.Thread stoped [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:38]OFD Sender: No OFD packet to send [03:49:43]OFD Sender: No OFD packet to send [03:49:48]OFD Sender: No OFD packet to send [03:49:53]OFD Sender: No OFD packet to send [03:49:58]OFD Sender: No OFD packet to send [03:50:03]OFD Sender: No OFD packet to send [03:50:08]OFD Sender: No OFD packet to send [03:50:13]OFD Sender: No OFD packet to send [03:50:18]OFD Sender: No OFD packet to send [03:50:23]OFD Sender: No OFD packet to send [03:50:28]OFD Sender: No OFD packet to send [03:50:33]OFD Sender: No OFD packet to send [03:50:38]OFD Sender: No OFD packet to send [03:50:43]OFD Sender: No OFD packet to send [03:50:48]OFD Sender: No OFD packet to send [03:50:53]OFD Sender: No OFD packet to send [03:50:58]OFD Sender: No OFD packet to send [03:51:03]OFD Sender: No OFD packet to send [03:51:08]OFD Sender: No OFD packet to send [03:51:13]OFD Sender: No OFD packet to send [03:51:18]OFD Sender: No OFD packet to send [03:51:23]OFD Sender: No OFD packet to send [03:51:28]OFD Sender: No OFD packet to send [03:51:33]OFD Sender: No OFD packet to send [03:51:38]OFD Sender: No OFD packet to send [03:51:43]OFD Sender: No OFD packet to send [03:51:48]OFD Sender: No OFD packet to send [03:51:53]OFD Sender: No OFD packet to send [03:51:58]OFD Sender: No OFD packet to send [03:52:03]OFD Sender: No OFD packet to send [03:52:08]OFD Sender: No OFD packet to send [03:52:13]OFD Sender: No OFD packet to send [03:52:18]OFD Sender: No OFD packet to send [03:52:23]OFD Sender: No OFD packet to send [03:52:28]OFD Sender: No OFD packet to send [03:52:33]OFD Sender: No OFD packet to send [03:52:38]OFD Sender: No OFD packet to send [03:52:43]OFD Sender: No OFD packet to send [03:52:48]OFD Sender: No OFD packet to send [03:52:53]OFD Sender: No OFD packet to send [03:52:58]OFD Sender: No OFD packet to send [03:53:03]OFD Sender: No OFD packet to send [03:53:08]OFD Sender: No OFD packet to send [03:53:13]OFD Sender: No OFD packet to send [03:53:18]OFD Sender: No OFD packet to send [03:53:24]OFD Sender: No OFD packet to send [03:53:29]OFD Sender: No OFD packet to send [03:53:34]OFD Sender: No OFD packet to send [03:53:39]OFD Sender: No OFD packet to send [03:53:44]OFD Sender: No OFD packet to send [03:53:49]OFD Sender: No OFD packet to send [03:53:54]OFD Sender: No OFD packet to send [03:53:59]OFD Sender: No OFD packet to send [03:54:04]OFD Sender: No OFD packet to send [03:54:09]OFD Sender: No OFD packet to send [03:54:14]OFD Sender: No OFD packet to send [03:54:19]OFD Sender: No OFD packet to send [03:54:24]OFD Sender: No OFD packet to send [03:54:29]OFD Sender: No OFD packet to send [03:54:34]OFD Sender: No OFD packet to send [03:54:39]OFD Sender: No OFD packet to send [03:54:44]OFD Sender: No OFD packet to send [03:54:49]OFD Sender: No OFD packet to send [03:54:54]OFD Sender: No OFD packet to send [03:54:59]OFD Sender: No OFD packet to send [03:55:04]OFD Sender: No OFD packet to send [03:55:09]OFD Sender: No OFD packet to send [03:55:14]OFD Sender: No OFD packet to send [03:55:19]OFD Sender: No OFD packet to send [03:55:24]OFD Sender: No OFD packet to send [03:55:29]OFD Sender: No OFD packet to send [03:55:34]OFD Sender: No OFD packet to send [03:55:39]OFD Sender: No OFD packet to send [03:55:44]OFD Sender: No OFD packet to send [03:55:49]OFD Sender: No OFD packet to send [03:55:54]OFD Sender: No OFD packet to send [03:55:59]OFD Sender: No OFD packet to send [03:56:04]OFD Sender: No OFD packet to send [03:56:09]OFD Sender: No OFD packet to send [03:56:14]OFD Sender: No OFD packet to send [03:56:19]OFD Sender: No OFD packet to send [03:56:24]OFD Sender: No OFD packet to send [03:56:29]OFD Sender: No OFD packet to send [03:56:34]OFD Sender: No OFD packet to send [03:56:39]OFD Sender: No OFD packet to send [03:56:44]OFD Sender: No OFD packet to send [03:56:49]OFD Sender: No OFD packet to send [03:56:54]OFD Sender: No OFD packet to send [03:56:59]OFD Sender: No OFD packet to send [03:57:04]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:21]accept exits with 8 [03:59:21]New connection [03:59:21]New thread 3067055460 created [03:59:21]Thread 3067198820 joined [03:59:21]Waiting for new connection... [03:59:21] Sock 8.Parse request [03:59:21]Sock 8.Check first char [03:59:21]Sock 8.First char is OK [03:59:21]request: POST /json_proto HTTP/1.0 [03:59:21]Method: POST [03:59:21]URL: /json_proto [03:59:21]Method is POST - this is cgi request [03:59:21]url: /json_proto [03:59:21]query_string will be loaded in cgi processing [03:59:21]execute_cgi json_proto POST (null) [03:59:21]execute_cgi path=json_proto method=POST [03:59:21]POST find Content-Length [03:59:21]Host: 172.17.42.131:8080 [03:59:21]Content-Length: 682 [03:59:21]Content-Type: application/json [03:59:21] [03:59:21]POST finish read [03:59:21]Found Content-Length = 682 [03:59:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:21]execute_script... [03:59: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)210062", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:59:21]POST & json_proto [03:59:21]process_json_proto [03:59:21]json parsed OK: [03:59:21]protocol is kg_v1.0 [03:59:21]action value=close_receipt [03:59:21]process_action close_receipt [03:59:21]cmd_close_receipt [03:59:21]MH_GetDate [03:59:21]Write to MH i2c: F0 00 00 50 10 4F [03:59:21]Write i2c OK [03:59:21]MH_I2C_Read... [03:59:21]Read from MH i2c: F0 [03:59:21]MH_I2C_Read... [03:59:21]Read from MH i2c: F0 09 00 [03:59:21]MH_I2C_Read... [03:59:21]Read from MH i2c: F0 09 00 50 10 00 1B 23 17 67 A0 18 CA 66 FC [03:59:21]GetLastDocTimeStamp 1729568695 [03:59:21]current date 1729569563 [03:59:21]FM_GetShiftState [03:59:21]SAM_PROTO_GetShiftState [03:59:21]wFMCommunicate request_size=4 [03:59:21]MH_SAM_APDU [03:59:21]CAPDU: 80 13 01 00 [03:59:21]Write to MH i2c: E2 08 00 51 10 80 13 01 00 00 00 00 00 DE [03:59:21]Write i2c OK [03:59:21]MH_I2C_Read... [03:59:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:21]Read from MH i2c: E2 [03:59:21]MH_I2C_Read... [03:59:21]Read from MH i2c: E2 0E 00 [03:59:21]MH_I2C_Read... [03:59:21]Read from MH i2c: E2 0E 00 51 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D3 [03:59:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:59:21]wFMCommunicate OK [03:59:21]SAM_PROTO_GetShiftState done [03:59:21]FM_GetShiftState done [03:59:21]opened in 1729556094 [03:59:21]opened+sec_in_day 1729642494 [03:59:21]quantity*price = 100015 [03:59:21]sum+1 = 100017 [03:59:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 40 22.10.2024 03:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188011 ФПД: 207379431406487 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T035923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188011&fm=207379431406487&tin=02508201610067®Number=0000000000100030&sum=100000 [03:59:23]StoreToDocumentArchive [03:59:23]shift 461 fd 188011 [03:59:23]save to /storage/0461/doc_00188011 [03:59:23]save last doc name /storage/0461/doc_00188011 to /storage/kkm_last_doc_name [03:59:23]save OK [03:59:23]Clear old archive folders... [03:59:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [03:59:23]tlvbuf is 01BF5210 [03:59:23]SAM_PROTO_ClearQueue [03:59:23]wFMCommunicate request_size=4 [03:59:23]MH_SAM_APDU [03:59:23]CAPDU: 80 09 00 00 [03:59:23]Write to MH i2c: E2 08 00 5E 10 80 09 00 00 00 00 00 00 E0 [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:59:23]Read from MH i2c: E2 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 5E 10 00 90 00 E2 [03:59:23]RAPDU: 90 00 [03:59:23]wFMCommunicate OK [03:59:23]SAM_PROTO_ClearQueue done [03:59:23]KKMCreateOFDPacket [03:59:23]OFDProtocolAddRootSTLVToBuf [03:59:23]FM_MakeSignedData [03:59:23]FM_MakeSignedData [03:59:23]SAM_PROTO_SignData [03:59:23]wFMCommunicate request_size=4 [03:59:23]MH_SAM_APDU [03:59:23]CAPDU: 80 0D 01 02 [03:59:23]Write to MH i2c: E2 08 00 5F 10 80 0D 01 02 00 00 00 00 E8 [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:59:23]Read from MH i2c: E2 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 5F 10 00 90 00 E3 [03:59:23]RAPDU: 90 00 [03:59:23]wFMCommunicate OK [03:59:23]wFMCommunicate request_size=255 [03:59:23]MH_SAM_APDU [03:59: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1B 23 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DE 02 00 35 04 06 00 BC [03:59:23]Write to MH i2c: E2 02 01 60 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1B 23 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DE 02 00 35 04 06 00 BC 00 00 0E [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:23]Read from MH i2c: E2 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 60 10 00 90 00 E4 [03:59:23]RAPDU: 90 00 [03:59:23]wFMCommunicate OK [03:59:23]wFMCommunicate request_size=10 [03:59:23]MH_SAM_APDU [03:59:23]CAPDU: 80 0D 02 02 05 9C 49 57 BB 97 [03:59:23]Write to MH i2c: E2 0D 00 61 10 80 0D 02 02 05 00 9C 49 57 BB 97 00 00 83 [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:59:23]Read from MH i2c: E2 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 03 00 61 10 00 90 00 E5 [03:59:23]RAPDU: 90 00 [03:59:23]wFMCommunicate OK [03:59:23]wFMCommunicate request_size=4 [03:59:23]MH_SAM_APDU [03:59:23]CAPDU: 80 0D 03 02 [03:59:23]Write to MH i2c: E2 08 00 62 10 80 0D 03 02 00 00 00 00 ED [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:59:23]Read from MH i2c: E2 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 0B 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 0B 00 62 10 00 B0 88 27 48 A2 BB 65 5B 90 00 B2 [03:59:23]RAPDU: B0 88 27 48 A2 BB 65 5B 90 00 [03:59:23]wFMCommunicate OK [03:59:23]SAM_PROTO_SignData done [03:59:23]FM_MakeSignedData done [03:59:23]CreateOFDProtocolMessage [03:59:23]wFMCommunicate request_size=4 [03:59:23]MH_SAM_APDU [03:59:23]CAPDU: 80 11 00 00 [03:59:23]Write to MH i2c: E2 08 00 63 10 80 11 00 00 00 00 00 00 ED [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:23]Read from MH i2c: E2 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 17 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: E2 17 00 63 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [03:59:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:59:23]wFMCommunicate OK [03:59:23]CreateOFDProtocolMessage done [03:59:23]OFDSenderStorePacket 188011 [03:59:23]StoreOFDPacket docnum=188011 [03:59:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D4 46 07 01 59 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1B 23 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DE 02 00 35 04 06 00 BC 9C 49 57 BB 97 B0 88 27 48 A2 BB 65 5B [03:59:23]CheckFolder [03:59:23]dirname=/storage/ofd_packets [03:59:23]CheckFolder done [03:59:23]ProducePacketName [03:59:23]name=ofd_packets/00188011 [03:59:23]NVStorageSaveData ofd_packets/00188011 [03:59:23]File name is /storage/ofd_packets/00188011 [03:59:23]Write 301 bytes [03:59:23]NVStorageSaveData done [03:59:23]OFDSenderStorePacket done [03:59:23]KKMCreateOFDPacket done [03:59:23]NVStorageSaveData kkm_last_timestamp [03:59:23]File name is /storage/kkm_last_timestamp [03:59:23]Write 4 bytes [03:59:23]NVStorageSaveData done [03:59:23]ExternCall_PrintAddStr [03:59:23]wPrintStart [03:59:23]Write to MH i2c: 01 00 00 64 10 74 [03:59:23]Write i2c OK [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: 01 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: 01 07 00 [03:59:23]MH_I2C_Read... [03:59:23]Read from MH i2c: 01 07 00 64 10 00 00 00 00 00 FF 0F 89 [03:59:23]RasterBufferAndPrint [03:59:23]line Счет N : (1)210062 [03:59:23]line ИНН: 02508201610067 [03:59:23]line Контрольно-Кассовый Чек [03:59:23]line ПРОДАЖА [03:59:23]line ТРК (МРК, ГНК) : 32 [03:59:23]line Товар: 2710124130 [03:59:23]line Аи-92-К-3 [03:59:23]line 14.950 * 66.90 [03:59:23]line = 1000.16 [03:59:23]line НДС 12% НСП 1% [03:59:23]line > о реализуемом товаре [03:59:23]line ОКРУГЛЕНИЕ: -0.16 [03:59:23]line ИТОГО: 1000.00 [03:59:23]line Внесено: 1000.00 [03:59:23]line СДАЧА: 0.00 [03:59:23]line НСП 1% : 8.85 [03:59:23]line НДС 12% : 106.21 [03:59:23]line Наличными: 1000.00 [03:59:23]line Безнал.: 0.00 [03:59:23]line Место: АЗС № 86 "Партнер Нефть" [03:59:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [03:59:23]line СНО: Общий режим [03:59:23]line Чек 40 22.10.2024 03:59 [03:59:23]line Смена: 461 ФФД: 1.0 [03:59:23]line ЗНМ: 0300000155 [03:59:23]line РНМ: 0000000000100030 [03:59:23]line Версия ККМ: 001 [03:59:23]line ФМ: 0000000000965340 [03:59:23]line ФД: 188011 [03:59:23]line ФПД: 207379431406487 [03:59:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T035923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188011&fm=207379431406487&tin=02508201610067®Number=0000000000100030&sum=100000 [03:59:23]OFD Sender: Processing packet 188011 [packets to send 1062, broken 1061] [03:59:23]ProducePacketName [03:59:23]name=ofd_packets/00188011 [03:59:23]OFD Sender: To server: pG, [03:59:23]CommunicateWithHost lk.salyk.kg:30040 [03:59:23]ConnectInit lk.salyk.kg [03:59:23]written 0, free lines is 4095 [03:59:23]Connected sock=10 [03:59:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D4 46 07 01 59 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 1B 23 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DE 02 00 35 04 06 00 BC 9C 49 57 BB 97 B0 88 27 48 A2 BB 65 5B [03:59:24]Write to MH i2c: 01 00 00 8F 10 9F [03:59:24]Write i2c OK [03:59:24]MH_I2C_Read... [03:59:24]Read from MH i2c: 01 [03:59:24]MH_I2C_Read... [03:59:24]Read from MH i2c: 01 07 00 [03:59:24]MH_I2C_Read... [03:59:24]Read from MH i2c: 01 07 00 8F 10 00 00 00 00 00 5D 0C 0F [03:59:24]RasterBufferAndPrint [03:59:24]line [03:59:24]line [03:59:24]line [03:59:24]line [03:59:24]line [03:59:24]written 0, free lines is 3169 [03:59:24]MH_Cut [03:59:24]Write to MH i2c: D1 01 00 96 10 01 78 [03:59:24]Write i2c OK [03:59:24]MH_I2C_Read... [03:59:24]Read from MH i2c: D1 [03:59:24]MH_I2C_Read... [03:59:24]Read from MH i2c: D1 01 00 [03:59:24]MH_I2C_Read... [03:59:24]Read from MH i2c: D1 01 00 96 10 00 77 [03:59:24]Write to MH i2c: 01 00 00 97 10 A7 [03:59:24]Write i2c OK [03:59:24]MH_I2C_Read... [03:59:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 7B 47 00 77 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DE 02 00 F4 03 04 00 09 CD 16 67 B6 04 01 00 00 74 BE AB FD F1 87 35 26 [03:59:24]CommunicateWithHost err = 0 [03:59:24]CheckOFDResponse [03:59:24]1017 (14) - 77093643461234 [03:59:24]1041 (16) - 0000000000965340 [03:59:24]1040 (4) - 188011 [03:59:24]1012 (4) - 21.10.2024 21:52 [03:59:24]1206 (1) - 0 [03:59:24]OFD Sender: Remove packet 188011 [03:59:24]ProducePacketName [03:59:24]name=ofd_packets/00188011 [03:59:24]NVStorageDeleteData [03:59:24]OFD Sender: No OFD packet to send [03:59:25]*** Cut start [03:59:25]*** Partial cut [03:59:25]*** CUTSNS_PIN = 1 [03:59:25]*** CUTSNS_PIN = 0 [03:59:25]*** Brake cut motor [03:59:26]Read from MH i2c: 01 [03:59:26]MH_I2C_Read... [03:59:26]*** Stop cut motor [03:59:26]*** Cut end [03:59:26]Read from MH i2c: 01 07 00 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: 01 07 00 97 10 00 00 00 00 00 FF 0F BC [03:59:26]process_action close_receipt done [03:59:26]requested_data is exist [03:59:26]produce_requested_data [03:59:26]requested_item fm.sn is exist - process it [03:59:26]wFMCommunicate request_size=4 [03:59:26]MH_SAM_APDU [03:59:26]CAPDU: 80 11 00 00 [03:59:26]Write to MH i2c: E2 08 00 98 10 80 11 00 00 00 00 00 00 22 [03:59:26]Write i2c OK [03:59:26]MH_I2C_Read... [03:59:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:59:26]Read from MH i2c: E2 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: E2 17 00 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: E2 17 00 98 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [03:59:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [03:59:26]wFMCommunicate OK [03:59:26]requested_item fd.num is exist - process it [03:59:26]SAM_PROTO_GetFieldsCounters [03:59:26]wFMCommunicate request_size=4 [03:59:26]MH_SAM_APDU [03:59:26]CAPDU: 80 13 00 00 [03:59:26]Write to MH i2c: E2 08 00 99 10 80 13 00 00 00 00 00 00 25 [03:59:26]Write i2c OK [03:59:26]MH_I2C_Read... [03:59:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:59:26]Read from MH i2c: E2 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: E2 62 00 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: E2 62 00 99 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B DE 02 00 0E 04 04 00 CD 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 BD [03:59:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B DE 02 00 0E 04 04 00 CD 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 [03:59:26]wFMCommunicate OK [03:59:26]SAM_PROTO_GetFieldsCounters done [03:59:26]requested_item shift.num is exist - process it [03:59:26]requested_item shift.opened is exist - process it [03:59:26]req_shift_opened [03:59:26]FM_GetShiftState [03:59:26]SAM_PROTO_GetShiftState [03:59:26]wFMCommunicate request_size=4 [03:59:26]MH_SAM_APDU [03:59:26]CAPDU: 80 13 01 00 [03:59:26]Write to MH i2c: E2 08 00 9A 10 80 13 01 00 00 00 00 00 27 [03:59:26]Write i2c OK [03:59:26]MH_I2C_Read... [03:59:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:59:26]Read from MH i2c: E2 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: E2 0E 00 [03:59:26]MH_I2C_Read... [03:59:26]Read from MH i2c: E2 0E 00 9A 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [03:59:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [03:59:26]wFMCommunicate OK [03:59:26]SAM_PROTO_GetShiftState done [03:59:26]FM_GetShiftState done [03:59:26]req_shift_opened done [03:59:26]requested_item shift.open_date is exist - process it [03:59:26]req_shift_open_date [03:59:26]req_shift_open_date done [03:59:26]produce_requested_data done [03:59:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188011,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [03:59:26]process_action_free close_receipt [03:59:26]json_value_free [03:59:26]json_value_free done [03:59:26]process_json_proto returns [03:59:26]Send response to host [03:59:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188011,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [03:59:26]free response buf [03:59:26]execute_script done [03:59:26]execute_script returns [03:59:26]free content buf [03:59:26]Sock 8.Close socket [03:59:26]Sock 8.Thread stoped [03:59:29]OFD Sender: No OFD packet to send [03:59:34]OFD Sender: No OFD packet to send [03:59:39]OFD Sender: No OFD packet to send [03:59:44]OFD Sender: No OFD packet to send [03:59:49]OFD Sender: No OFD packet to send [03:59:54]OFD Sender: No OFD packet to send [03:59:59]OFD Sender: No OFD packet to send [04:00:04]OFD Sender: No OFD packet to send [04:00:09]OFD Sender: No OFD packet to send [04:00:14]OFD Sender: No OFD packet to send [04:00:19]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:11]OFD Sender: No OFD packet to send [04:04:16]OFD Sender: No OFD packet to send [04:04:21]OFD Sender: No OFD packet to send [04:04:26]OFD Sender: No OFD packet to send [04:04:31]OFD Sender: No OFD packet to send [04:04:36]OFD Sender: No OFD packet to send [04:04:41]OFD Sender: No OFD packet to send [04:04:46]OFD Sender: No OFD packet to send [04:04:51]OFD Sender: No OFD packet to send [04:04:56]OFD Sender: No OFD packet to send [04:05:01]OFD Sender: No OFD packet to send [04:05:06]OFD Sender: No OFD packet to send [04:05:11]OFD Sender: No OFD packet to send [04:05:16]OFD Sender: No OFD packet to send [04:05:21]OFD Sender: No OFD packet to send [04:05:26]OFD Sender: No OFD packet to send [04:05:31]OFD Sender: No OFD packet to send [04:05:35]accept exits with 9 [04:05:35]New connection [04:05:35]New thread 3067198820 created [04:05:35]Thread 3067055460 joined [04:05:35]Waiting for new connection... [04:05:35] Sock 9.Parse request [04:05:35]Sock 9.Check first char [04:05:35]Sock 9.First char is OK [04:05:35]request: POST /json_proto HTTP/1.0 [04:05:35]Method: POST [04:05:35]URL: /json_proto [04:05:35]Method is POST - this is cgi request [04:05:35]url: /json_proto [04:05:35]query_string will be loaded in cgi processing [04:05:35]execute_cgi json_proto POST (null) [04:05:35]execute_cgi path=json_proto method=POST [04:05:35]POST find Content-Length [04:05:35]Host: 172.17.42.131:8080 [04:05:35]Content-Length: 688 [04:05:35]Content-Type: application/json [04:05:35] [04:05:35]POST finish read [04:05:35]Found Content-Length = 688 [04:05:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [04:05:35]execute_script... [04:05:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210063", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [04:05:35]POST & json_proto [04:05:35]process_json_proto [04:05:35]json parsed OK: [04:05:35]protocol is kg_v1.0 [04:05:35]action value=close_receipt [04:05:35]process_action close_receipt [04:05:35]cmd_close_receipt [04:05:35]MH_GetDate [04:05:35]Write to MH i2c: F0 00 00 9B 10 9A [04:05:35]Write i2c OK [04:05:35]MH_I2C_Read... [04:05:35]Read from MH i2c: F0 [04:05:35]MH_I2C_Read... [04:05:35]Read from MH i2c: F0 09 00 [04:05:35]MH_I2C_Read... [04:05:35]Read from MH i2c: F0 09 00 9B 10 00 91 24 17 67 A0 18 CA 66 BE [04:05:35]GetLastDocTimeStamp 1729569563 [04:05:35]current date 1729569937 [04:05:35]FM_GetShiftState [04:05:35]SAM_PROTO_GetShiftState [04:05:35]wFMCommunicate request_size=4 [04:05:35]MH_SAM_APDU [04:05:35]CAPDU: 80 13 01 00 [04:05:35]Write to MH i2c: E2 08 00 9C 10 80 13 01 00 00 00 00 00 29 [04:05:35]Write i2c OK [04:05:35]MH_I2C_Read... [04:05:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:35]Read from MH i2c: E2 [04:05:35]MH_I2C_Read... [04:05:35]Read from MH i2c: E2 0E 00 [04:05:35]MH_I2C_Read... [04:05:35]Read from MH i2c: E2 0E 00 9C 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1E [04:05:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:05:35]wFMCommunicate OK [04:05:35]SAM_PROTO_GetShiftState done [04:05:35]FM_GetShiftState done [04:05:35]opened in 1729556094 [04:05:35]opened+sec_in_day 1729642494 [04:05:35]quantity*price = 200025 [04:05:35]sum+1 = 200026 [04:05:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 41 22.10.2024 04:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188012 ФПД: 87765253747081 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T040537&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188012&fm=87765253747081&tin=02508201610067®Number=0000000000100030&sum=200000 [04:05:36]StoreToDocumentArchive [04:05:36]shift 461 fd 188012 [04:05:36]save to /storage/0461/doc_00188012 [04:05:36]save last doc name /storage/0461/doc_00188012 to /storage/kkm_last_doc_name [04:05:36]save OK [04:05:36]Clear old archive folders... [04:05:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:05:36]tlvbuf is 01BF51E0 [04:05:36]SAM_PROTO_ClearQueue [04:05:36]wFMCommunicate request_size=4 [04:05:36]MH_SAM_APDU [04:05:36]CAPDU: 80 09 00 00 [04:05:36]Write to MH i2c: E2 08 00 A9 10 80 09 00 00 00 00 00 00 2B [04:05:36]Write i2c OK [04:05:36]MH_I2C_Read... [04:05:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:05:36]Read from MH i2c: E2 [04:05:36]MH_I2C_Read... [04:05:36]Read from MH i2c: E2 03 00 [04:05:36]MH_I2C_Read... [04:05:36]Read from MH i2c: E2 03 00 A9 10 00 90 00 2D [04:05:36]RAPDU: 90 00 [04:05:36]wFMCommunicate OK [04:05:36]SAM_PROTO_ClearQueue done [04:05:36]KKMCreateOFDPacket [04:05:36]OFDProtocolAddRootSTLVToBuf [04:05:36]FM_MakeSignedData [04:05:36]FM_MakeSignedData [04:05:36]SAM_PROTO_SignData [04:05:36]wFMCommunicate request_size=4 [04:05:36]MH_SAM_APDU [04:05:36]CAPDU: 80 0D 01 02 [04:05:36]Write to MH i2c: E2 08 00 AA 10 80 0D 01 02 00 00 00 00 33 [04:05:36]Write i2c OK [04:05:36]MH_I2C_Read... [04:05:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:05:37]Read from MH i2c: E2 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 03 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 03 00 AA 10 00 90 00 2E [04:05:37]RAPDU: 90 00 [04:05:37]wFMCommunicate OK [04:05:37]wFMCommunicate request_size=255 [04:05:37]MH_SAM_APDU [04:05:37]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 29 00 00 00 F4 03 04 00 91 24 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DE 02 [04:05:37]Write to MH i2c: E2 02 01 AB 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 29 00 00 00 F4 03 04 00 91 24 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DE 02 00 00 4A [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:37]Read from MH i2c: E2 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 03 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 03 00 AB 10 00 90 00 2F [04:05:37]RAPDU: 90 00 [04:05:37]wFMCommunicate OK [04:05:37]wFMCommunicate request_size=16 [04:05:37]MH_SAM_APDU [04:05:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4F D2 70 C5 F1 89 [04:05:37]Write to MH i2c: E2 13 00 AC 10 80 0D 02 02 0B 00 00 35 04 06 00 4F D2 70 C5 F1 89 00 00 5B [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:05:37]Read from MH i2c: E2 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 03 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 03 00 AC 10 00 90 00 30 [04:05:37]RAPDU: 90 00 [04:05:37]wFMCommunicate OK [04:05:37]wFMCommunicate request_size=4 [04:05:37]MH_SAM_APDU [04:05:37]CAPDU: 80 0D 03 02 [04:05:37]Write to MH i2c: E2 08 00 AD 10 80 0D 03 02 00 00 00 00 38 [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:05:37]Read from MH i2c: E2 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 0B 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 0B 00 AD 10 00 1A BA 8D 29 36 33 AB 8F 90 00 66 [04:05:37]RAPDU: 1A BA 8D 29 36 33 AB 8F 90 00 [04:05:37]wFMCommunicate OK [04:05:37]SAM_PROTO_SignData done [04:05:37]FM_MakeSignedData done [04:05:37]CreateOFDProtocolMessage [04:05:37]wFMCommunicate request_size=4 [04:05:37]MH_SAM_APDU [04:05:37]CAPDU: 80 11 00 00 [04:05:37]Write to MH i2c: E2 08 00 AE 10 80 11 00 00 00 00 00 00 38 [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:37]Read from MH i2c: E2 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 17 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: E2 17 00 AE 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [04:05:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:05:37]wFMCommunicate OK [04:05:37]CreateOFDProtocolMessage done [04:05:37]OFDSenderStorePacket 188012 [04:05:37]StoreOFDPacket docnum=188012 [04:05:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 89 86 0D 01 7C E9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 29 00 00 00 F4 03 04 00 91 24 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DE 02 00 35 04 06 00 4F D2 70 C5 F1 89 1A BA 8D 29 36 33 AB 8F [04:05:37]CheckFolder [04:05:37]dirname=/storage/ofd_packets [04:05:37]CheckFolder done [04:05:37]ProducePacketName [04:05:37]name=ofd_packets/00188012 [04:05:37]NVStorageSaveData ofd_packets/00188012 [04:05:37]File name is /storage/ofd_packets/00188012 [04:05:37]Write 307 bytes [04:05:37]NVStorageSaveData done [04:05:37]OFDSenderStorePacket done [04:05:37]KKMCreateOFDPacket done [04:05:37]NVStorageSaveData kkm_last_timestamp [04:05:37]File name is /storage/kkm_last_timestamp [04:05:37]Write 4 bytes [04:05:37]NVStorageSaveData done [04:05:37]ExternCall_PrintAddStr [04:05:37]wPrintStart [04:05:37]Write to MH i2c: 01 00 00 AF 10 BF [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 AF 10 00 00 00 00 00 FF 0F D4 [04:05:37]RasterBufferAndPrint [04:05:37]line Счет N : (1)210063 [04:05:37]line ИНН: 02508201610067 [04:05:37]line Контрольно-Кассовый Чек [04:05:37]line ПРОДАЖА [04:05:37]line ТРК (МРК, ГНК) : 31 [04:05:37]line Товар: 2710194210 [04:05:37]line D-ENERGY ДТ-К-5 [04:05:37]line 25.910 * 77.20 [04:05:37]line = 2000.25 [04:05:37]line НДС 12% НСП 1% [04:05:37]line > о реализуемом товаре [04:05:37]line ОКРУГЛЕНИЕ: -0.25 [04:05:37]line ИТОГО: 2000.00 [04:05:37]line Внесено: 2000.00 [04:05:37]line СДАЧА: 0.00 [04:05:37]line НСП 1% : 17.70 [04:05:37]line НДС 12% : 212.42 [04:05:37]line Наличными: 2000.00 [04:05:37]line Безнал.: 0.00 [04:05:37]line Место: АЗС № 86 "Партнер Нефть" [04:05:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:05:37]line СНО: Общий режим [04:05:37]line Чек 41 22.10.2024 04:05 [04:05:37]line Смена: 461 ФФД: 1.0 [04:05:37]line ЗНМ: 0300000155 [04:05:37]line РНМ: 0000000000100030 [04:05:37]line Версия ККМ: 001 [04:05:37]line ФМ: 0000000000965340 [04:05:37]line ФД: 188012 [04:05:37]line ФПД: 87765253747081 [04:05:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T040537&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188012&fm=87765253747081&tin=02508201610067®Number=0000000000100030&sum=200000 [04:05:37]written 0, free lines is 4095 [04:05:37]OFD Sender: Processing packet 188012 [packets to send 1062, broken 1061] [04:05:37]ProducePacketName [04:05:37]name=ofd_packets/00188012 [04:05:37]OFD Sender: To server: pG, [04:05:37]CommunicateWithHost lk.salyk.kg:30040 [04:05:37]ConnectInit lk.salyk.kg [04:05:37]Write to MH i2c: 01 00 00 DA 10 EA [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: 01 07 00 DA 10 00 00 00 00 00 52 0C 4F [04:05:37]RasterBufferAndPrint [04:05:37]line [04:05:37]line [04:05:37]line [04:05:37]line [04:05:37]line [04:05:37]written 0, free lines is 3158 [04:05:37]MH_Cut [04:05:37]Write to MH i2c: D1 01 00 E1 10 01 C3 [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: D1 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: D1 01 00 [04:05:37]MH_I2C_Read... [04:05:37]Read from MH i2c: D1 01 00 E1 10 00 C2 [04:05:37]Write to MH i2c: 01 00 00 E2 10 F2 [04:05:37]Write i2c OK [04:05:37]MH_I2C_Read... [04:05:39]*** Cut start [04:05:39]*** Partial cut [04:05:39]*** CUTSNS_PIN = 1 [04:05:39]*** CUTSNS_PIN = 0 [04:05:39]*** Brake cut motor [04:05:39]Read from MH i2c: 01 [04:05:39]MH_I2C_Read... [04:05:39]Read from MH i2c: 01 07 00 [04:05:39]MH_I2C_Read... [04:05:39]*** Stop cut motor [04:05:39]*** Cut end [04:05:39]Read from MH i2c: 01 07 00 E2 10 00 00 00 00 00 FF 0F 07 [04:05:39]process_action close_receipt done [04:05:39]requested_data is exist [04:05:39]produce_requested_data [04:05:39]requested_item fm.sn is exist - process it [04:05:39]wFMCommunicate request_size=4 [04:05:39]MH_SAM_APDU [04:05:39]CAPDU: 80 11 00 00 [04:05:39]Write to MH i2c: E2 08 00 E3 10 80 11 00 00 00 00 00 00 6D [04:05:39]Write i2c OK [04:05:39]MH_I2C_Read... [04:05:39]Read from MH i2c: E2 [04:05:39]MH_I2C_Read... [04:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:05:39]Read from MH i2c: E2 17 00 [04:05:39]MH_I2C_Read... [04:05:39]Read from MH i2c: E2 17 00 E3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [04:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:05:39]wFMCommunicate OK [04:05:39]requested_item fd.num is exist - process it [04:05:39]SAM_PROTO_GetFieldsCounters [04:05:39]wFMCommunicate request_size=4 [04:05:39]MH_SAM_APDU [04:05:39]CAPDU: 80 13 00 00 [04:05:39]Write to MH i2c: E2 08 00 E4 10 80 13 00 00 00 00 00 00 70 [04:05:39]Write i2c OK [04:05:39]MH_I2C_Read... [04:05:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:05:40]Read from MH i2c: E2 [04:05:40]MH_I2C_Read... [04:05:40]Read from MH i2c: E2 62 00 [04:05:40]MH_I2C_Read... [04:05:40]Read from MH i2c: E2 62 00 E4 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C DE 02 00 0E 04 04 00 CD 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 0C [04:05:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C DE 02 00 0E 04 04 00 CD 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 [04:05:40]wFMCommunicate OK [04:05:40]SAM_PROTO_GetFieldsCounters done [04:05:40]requested_item shift.num is exist - process it [04:05:40]requested_item shift.opened is exist - process it [04:05:40]req_shift_opened [04:05:40]FM_GetShiftState [04:05:40]SAM_PROTO_GetShiftState [04:05:40]wFMCommunicate request_size=4 [04:05:40]MH_SAM_APDU [04:05:40]CAPDU: 80 13 01 00 [04:05:40]Write to MH i2c: E2 08 00 E5 10 80 13 01 00 00 00 00 00 72 [04:05:40]Write i2c OK [04:05:40]MH_I2C_Read... [04:05:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:05:40]Read from MH i2c: E2 [04:05:40]MH_I2C_Read... [04:05:40]Read from MH i2c: E2 0E 00 [04:05:40]MH_I2C_Read... [04:05:40]Read from MH i2c: E2 0E 00 E5 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [04:05:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:05:40]wFMCommunicate OK [04:05:40]SAM_PROTO_GetShiftState done [04:05:40]FM_GetShiftState done [04:05:40]req_shift_opened done [04:05:40]requested_item shift.open_date is exist - process it [04:05:40]req_shift_open_date [04:05:40]req_shift_open_date done [04:05:40]produce_requested_data done [04:05:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188012,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:05:40]process_action_free close_receipt [04:05:40]json_value_free [04:05:40]json_value_free done [04:05:40]process_json_proto returns [04:05:40]Send response to host [04:05:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188012,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:05:40]free response buf [04:05:40]execute_script done [04:05:40]execute_script returns [04:05:40]free content buf [04:05:40]Sock 9.Close socket [04:05:40]Sock 9.Thread stoped [04:07:48]ConnectInit Can't connect to host [04:07:48]CommunicateWithHost connect error [04:07:48]CommunicateWithHost err = -1 [04:07:48]OFD Sender: Server communicate error [04:07:53]OFD Sender: Processing packet 188012 [packets to send 1062, broken 1061] [04:07:53]ProducePacketName [04:07:53]name=ofd_packets/00188012 [04:07:53]OFD Sender: To server: pG, [04:07:53]CommunicateWithHost lk.salyk.kg:30040 [04:07:53]ConnectInit lk.salyk.kg [04:07:53]Connected sock=9 [04:07:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 89 86 0D 01 7C E9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 29 00 00 00 F4 03 04 00 91 24 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DE 02 00 35 04 06 00 4F D2 70 C5 F1 89 1A BA 8D 29 36 33 AB 8F [04:07:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 75 EE 47 00 EC 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 39 36 35 33 34 30 10 04 04 00 6C DE 02 00 F4 03 04 00 07 CF 16 67 B6 04 01 00 00 41 DD A4 80 9D 0C D0 E0 [04:07:54]CommunicateWithHost err = 0 [04:07:54]CheckOFDResponse [04:07:54]1017 (14) - 77093643461234 [04:07:54]1041 (16) - 0000000000965340 [04:07:54]1040 (4) - 188012 [04:07:54]1012 (4) - 21.10.2024 22:00 [04:07:54]1206 (1) - 0 [04:07:54]OFD Sender: Remove packet 188012 [04:07:54]ProducePacketName [04:07:54]name=ofd_packets/00188012 [04:07:54]NVStorageDeleteData [04:07:54]OFD Sender: No OFD packet to send [04:07:59]OFD Sender: No OFD packet to send [04:08:04]OFD Sender: No OFD packet to send [04:08:09]OFD Sender: No OFD packet to send [04:08:14]OFD Sender: No OFD packet to send [04:08:19]OFD Sender: No OFD packet to send [04:08:24]OFD Sender: No OFD packet to send [04:08:29]OFD Sender: No OFD packet to send [04:08:34]OFD Sender: No OFD packet to send [04:08:39]OFD Sender: No OFD packet to send [04:08:44]OFD Sender: No OFD packet to send [04:08:49]OFD Sender: No OFD packet to send [04:08:54]OFD Sender: No OFD packet to send [04:08:59]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:50]OFD Sender: No OFD packet to send [04:10:55]OFD Sender: No OFD packet to send [04:11:00]OFD Sender: No OFD packet to send [04:11:05]OFD Sender: No OFD packet to send [04:11:10]OFD Sender: No OFD packet to send [04:11:15]OFD Sender: No OFD packet to send [04:11:20]OFD Sender: No OFD packet to send [04:11:25]OFD Sender: No OFD packet to send [04:11:30]OFD Sender: No OFD packet to send [04:11:35]OFD Sender: No OFD packet to send [04:11:40]OFD Sender: No OFD packet to send [04:11:45]OFD Sender: No OFD packet to send [04:11:50]OFD Sender: No OFD packet to send [04:11:55]OFD Sender: No OFD packet to send [04:12:00]OFD Sender: No OFD packet to send [04:12:05]OFD Sender: No OFD packet to send [04:12:10]OFD Sender: No OFD packet to send [04:12:15]OFD Sender: No OFD packet to send [04:12:20]OFD Sender: No OFD packet to send [04:12:25]OFD Sender: No OFD packet to send [04:12:30]OFD Sender: No OFD packet to send [04:12:35]OFD Sender: No OFD packet to send [04:12:40]OFD Sender: No OFD packet to send [04:12:45]OFD Sender: No OFD packet to send [04:12:51]OFD Sender: No OFD packet to send [04:12:56]OFD Sender: No OFD packet to send [04:13:01]OFD Sender: No OFD packet to send [04:13:06]OFD Sender: No OFD packet to send [04:13:11]OFD Sender: No OFD packet to send [04:13:16]OFD Sender: No OFD packet to send [04:13:21]OFD Sender: No OFD packet to send [04:13:26]OFD Sender: No OFD packet to send [04:13:31]OFD Sender: No OFD packet to send [04:13:36]OFD Sender: No OFD packet to send [04:13:41]OFD Sender: No OFD packet to send [04:13:46]OFD Sender: No OFD packet to send [04:13:51]OFD Sender: No OFD packet to send [04:13:56]OFD Sender: No OFD packet to send [04:14:01]OFD Sender: No OFD packet to send [04:14:06]OFD Sender: No OFD packet to send [04:14:11]OFD Sender: No OFD packet to send [04:14:16]OFD Sender: No OFD packet to send [04:14:21]OFD Sender: No OFD packet to send [04:14:26]OFD Sender: No OFD packet to send [04:14:31]OFD Sender: No OFD packet to send [04:14:36]OFD Sender: No OFD packet to send [04:14:41]OFD Sender: No OFD packet to send [04:14:46]OFD Sender: No OFD packet to send [04:14:51]OFD Sender: No OFD packet to send [04:14:56]OFD Sender: No OFD packet to send [04:15:01]OFD Sender: No OFD packet to send [04:15:06]OFD Sender: No OFD packet to send [04:15:11]OFD Sender: No OFD packet to send [04:15:16]OFD Sender: No OFD packet to send [04:15:19]accept exits with 8 [04:15:19]New connection [04:15:19]New thread 3067055460 created [04:15:19]Thread 3067198820 joined [04:15:19]Waiting for new connection... [04:15:19] Sock 8.Parse request [04:15:19]Sock 8.Check first char [04:15:19]Sock 8.First char is OK [04:15:19]request: POST /json_proto HTTP/1.0 [04:15:19]Method: POST [04:15:19]URL: /json_proto [04:15:19]Method is POST - this is cgi request [04:15:19]url: /json_proto [04:15:19]query_string will be loaded in cgi processing [04:15:19]execute_cgi json_proto POST (null) [04:15:19]execute_cgi path=json_proto method=POST [04:15:19]POST find Content-Length [04:15:19]Host: 172.17.42.131:8080 [04:15:19]Content-Length: 683 [04:15:19]Content-Type: application/json [04:15:19] [04:15:19]POST finish read [04:15:19]Found Content-Length = 683 [04:15:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.380, "sum" : 492.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 492.00, "total" : 492.00, "payments": [ { "type": 0, "sum" : 492.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:15:19]execute_script... [04:15: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)210064", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.380, "sum" : 492.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 492.00, "total" : 492.00, "payments": [ { "type": 0, "sum" : 492.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:15:19]POST & json_proto [04:15:19]process_json_proto [04:15:19]json parsed OK: [04:15:19]protocol is kg_v1.0 [04:15:19]action value=close_receipt [04:15:19]process_action close_receipt [04:15:19]cmd_close_receipt [04:15:19]MH_GetDate [04:15:19]Write to MH i2c: F0 00 00 E6 10 E5 [04:15:19]Write i2c OK [04:15:19]MH_I2C_Read... [04:15:19]Read from MH i2c: F0 [04:15:19]MH_I2C_Read... [04:15:19]Read from MH i2c: F0 09 00 [04:15:19]MH_I2C_Read... [04:15:19]Read from MH i2c: F0 09 00 E6 10 00 D9 26 17 67 A0 18 CA 66 53 [04:15:19]GetLastDocTimeStamp 1729569937 [04:15:19]current date 1729570521 [04:15:19]FM_GetShiftState [04:15:19]SAM_PROTO_GetShiftState [04:15:19]wFMCommunicate request_size=4 [04:15:19]MH_SAM_APDU [04:15:19]CAPDU: 80 13 01 00 [04:15:19]Write to MH i2c: E2 08 00 E7 10 80 13 01 00 00 00 00 00 74 [04:15:19]Write i2c OK [04:15:19]MH_I2C_Read... [04:15:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:19]Read from MH i2c: E2 [04:15:19]MH_I2C_Read... [04:15:19]Read from MH i2c: E2 0E 00 [04:15:19]MH_I2C_Read... [04:15:19]Read from MH i2c: E2 0E 00 E7 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 69 [04:15:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:15:19]wFMCommunicate OK [04:15:19]SAM_PROTO_GetShiftState done [04:15:19]FM_GetShiftState done [04:15:19]opened in 1729556094 [04:15:19]opened+sec_in_day 1729642494 [04:15:19]quantity*price = 49253 [04:15:19]sum+1 = 49255 [04:15:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 492.00 Внесено: 492.00 СДАЧА: 0.00 НСП 1% : 4.36 НДС 12% : 52.30 Наличными: 492.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 42 22.10.2024 04:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188013 ФПД: 249788511917636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041521&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188013&fm=249788511917636&tin=02508201610067®Number=0000000000100030&sum=49200 [04:15:21]StoreToDocumentArchive [04:15:21]shift 461 fd 188013 [04:15:21]save to /storage/0461/doc_00188013 [04:15:21]save last doc name /storage/0461/doc_00188013 to /storage/kkm_last_doc_name [04:15:21]save OK [04:15:21]Clear old archive folders... [04:15:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:15:21]tlvbuf is 01BEC630 [04:15:21]SAM_PROTO_ClearQueue [04:15:21]wFMCommunicate request_size=4 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 09 00 00 [04:15:21]Write to MH i2c: E2 08 00 F4 10 80 09 00 00 00 00 00 00 76 [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 F4 10 00 90 00 78 [04:15:21]RAPDU: 90 00 [04:15:21]wFMCommunicate OK [04:15:21]SAM_PROTO_ClearQueue done [04:15:21]KKMCreateOFDPacket [04:15:21]OFDProtocolAddRootSTLVToBuf [04:15:21]FM_MakeSignedData [04:15:21]FM_MakeSignedData [04:15:21]SAM_PROTO_SignData [04:15:21]wFMCommunicate request_size=4 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 0D 01 02 [04:15:21]Write to MH i2c: E2 08 00 F5 10 80 0D 01 02 00 00 00 00 7E [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 F5 10 00 90 00 79 [04:15:21]RAPDU: 90 00 [04:15:21]wFMCommunicate OK [04:15:21]wFMCommunicate request_size=255 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 18 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 66 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 14 00 00 00 00 07 04 06 00 30 C0 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 D9 26 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DE 02 [04:15:21]Write to MH i2c: E2 02 01 F6 10 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 18 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 66 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 14 00 00 00 00 07 04 06 00 30 C0 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 D9 26 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DE 02 00 00 42 [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 F6 10 00 90 00 7A [04:15:21]RAPDU: 90 00 [04:15:21]wFMCommunicate OK [04:15:21]wFMCommunicate request_size=16 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E3 2E 6B 85 96 44 [04:15:21]Write to MH i2c: E2 13 00 F7 10 80 0D 02 02 0B 00 00 35 04 06 00 E3 2E 6B 85 96 44 00 00 B1 [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 03 00 F7 10 00 90 00 7B [04:15:21]RAPDU: 90 00 [04:15:21]wFMCommunicate OK [04:15:21]wFMCommunicate request_size=4 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 0D 03 02 [04:15:21]Write to MH i2c: E2 08 00 F8 10 80 0D 03 02 00 00 00 00 83 [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 0B 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 0B 00 F8 10 00 0D 3A D0 EF 47 4C FF 74 90 00 90 [04:15:21]RAPDU: 0D 3A D0 EF 47 4C FF 74 90 00 [04:15:21]wFMCommunicate OK [04:15:21]SAM_PROTO_SignData done [04:15:21]FM_MakeSignedData done [04:15:21]CreateOFDProtocolMessage [04:15:21]wFMCommunicate request_size=4 [04:15:21]MH_SAM_APDU [04:15:21]CAPDU: 80 11 00 00 [04:15:21]Write to MH i2c: E2 08 00 F9 10 80 11 00 00 00 00 00 00 83 [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:21]Read from MH i2c: E2 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 17 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: E2 17 00 F9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [04:15:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:15:21]wFMCommunicate OK [04:15:21]CreateOFDProtocolMessage done [04:15:21]OFDSenderStorePacket 188013 [04:15:21]StoreOFDPacket docnum=188013 [04:15:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D3 23 0D 01 28 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 18 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 66 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 14 00 00 00 00 07 04 06 00 30 C0 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 D9 26 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DE 02 00 35 04 06 00 E3 2E 6B 85 96 44 0D 3A D0 EF 47 4C FF 74 [04:15:21]CheckFolder [04:15:21]dirname=/storage/ofd_packets [04:15:21]CheckFolder done [04:15:21]ProducePacketName [04:15:21]name=ofd_packets/00188013 [04:15:21]NVStorageSaveData ofd_packets/00188013 [04:15:21]File name is /storage/ofd_packets/00188013 [04:15:21]Write 307 bytes [04:15:21]NVStorageSaveData done [04:15:21]OFDSenderStorePacket done [04:15:21]KKMCreateOFDPacket done [04:15:21]NVStorageSaveData kkm_last_timestamp [04:15:21]File name is /storage/kkm_last_timestamp [04:15:21]Write 4 bytes [04:15:21]NVStorageSaveData done [04:15:21]ExternCall_PrintAddStr [04:15:21]wPrintStart [04:15:21]Write to MH i2c: 01 00 00 FA 10 0A [04:15:21]Write i2c OK [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: 01 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: 01 07 00 [04:15:21]MH_I2C_Read... [04:15:21]Read from MH i2c: 01 07 00 FA 10 00 00 00 00 00 FF 0F 1F [04:15:21]RasterBufferAndPrint [04:15:21]line Счет N : (1)210064 [04:15:21]line ИНН: 02508201610067 [04:15:21]line Контрольно-Кассовый Чек [04:15:21]line ПРОДАЖА [04:15:21]line ТРК (МРК, ГНК) : 31 [04:15:21]line Товар: 2710194210 [04:15:21]line D-ENERGY ДТ-К-5 [04:15:21]line 6.380 * 77.20 [04:15:21]line = 492.54 [04:15:21]line НДС 12% НСП 1% [04:15:21]line > о реализуемом товаре [04:15:21]line ОКРУГЛЕНИЕ: -0.54 [04:15:21]line ИТОГО: 492.00 [04:15:21]line Внесено: 492.00 [04:15:21]line СДАЧА: 0.00 [04:15:21]line НСП 1% : 4.36 [04:15:21]line НДС 12% : 52.30 [04:15:21]line Наличными: 492.00 [04:15:21]line Безнал.: 0.00 [04:15:21]line Место: АЗС № 86 "Партнер Нефть" [04:15:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:15:21]line СНО: Общий режим [04:15:21]line Чек 42 22.10.2024 04:15 [04:15:21]line Смена: 461 ФФД: 1.0 [04:15:21]line ЗНМ: 0300000155 [04:15:21]line РНМ: 0000000000100030 [04:15:21]line Версия ККМ: 001 [04:15:21]line ФМ: 0000000000965340 [04:15:21]line ФД: 188013 [04:15:21]line ФПД: 249788511917636 [04:15:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041521&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188013&fm=249788511917636&tin=02508201610067®Number=0000000000100030&sum=49200 [04:15:21]written 0, free lines is 4095 [04:15:21]OFD Sender: Processing packet 188013 [packets to send 1062, broken 1061] [04:15:21]ProducePacketName [04:15:21]name=ofd_packets/00188013 [04:15:21]OFD Sender: To server: pG, [04:15:21]CommunicateWithHost lk.salyk.kg:30040 [04:15:21]ConnectInit lk.salyk.kg [04:15:21]Connected sock=10 [04:15:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D3 23 0D 01 28 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EC 18 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 66 C0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 C0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B4 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 14 00 00 00 00 07 04 06 00 30 C0 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 D9 26 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DE 02 00 35 04 06 00 E3 2E 6B 85 96 44 0D 3A D0 EF 47 4C FF 74 [04:15:22]Write to MH i2c: 01 00 00 25 11 36 [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: 01 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: 01 07 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: 01 07 00 25 11 00 00 00 00 00 57 0C A0 [04:15:22]RasterBufferAndPrint [04:15:22]line [04:15:22]line [04:15:22]line [04:15:22]line [04:15:22]line [04:15:22]written 0, free lines is 3163 [04:15:22]MH_Cut [04:15:22]Write to MH i2c: D1 01 00 2C 11 01 0F [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: D1 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: D1 01 00 [04:15:22]MH_I2C_Read... [04:15:22]Read from MH i2c: D1 01 00 2C 11 00 0E [04:15:22]Write to MH i2c: 01 00 00 2D 11 3E [04:15:22]Write i2c OK [04:15:22]MH_I2C_Read... [04:15:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A7 96 47 00 49 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DE 02 00 F4 03 04 00 C7 D0 16 67 B6 04 01 00 00 42 24 F9 89 94 0C B4 33 [04:15:22]CommunicateWithHost err = 0 [04:15:22]CheckOFDResponse [04:15:22]1017 (14) - 77093643461234 [04:15:22]1041 (16) - 0000000000965340 [04:15:22]1040 (4) - 188013 [04:15:22]1012 (4) - 21.10.2024 22:08 [04:15:22]1206 (1) - 0 [04:15:22]OFD Sender: Remove packet 188013 [04:15:22]ProducePacketName [04:15:22]name=ofd_packets/00188013 [04:15:22]NVStorageDeleteData [04:15:22]OFD Sender: No OFD packet to send [04:15:23]*** Cut start [04:15:23]*** Partial cut [04:15:23]*** CUTSNS_PIN = 1 [04:15:23]*** CUTSNS_PIN = 0 [04:15:23]*** Brake cut motor [04:15:23]Read from MH i2c: 01 [04:15:24]MH_I2C_Read... [04:15:24]*** Stop cut motor [04:15:24]*** Cut end [04:15:24]Read from MH i2c: 01 07 00 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: 01 07 00 2D 11 00 00 00 00 00 FF 0F 53 [04:15:24]process_action close_receipt done [04:15:24]requested_data is exist [04:15:24]produce_requested_data [04:15:24]requested_item fm.sn is exist - process it [04:15:24]wFMCommunicate request_size=4 [04:15:24]MH_SAM_APDU [04:15:24]CAPDU: 80 11 00 00 [04:15:24]Write to MH i2c: E2 08 00 2E 11 80 11 00 00 00 00 00 00 B9 [04:15:24]Write i2c OK [04:15:24]MH_I2C_Read... [04:15:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:15:24]Read from MH i2c: E2 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 17 00 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 17 00 2E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [04:15:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:15:24]wFMCommunicate OK [04:15:24]requested_item fd.num is exist - process it [04:15:24]SAM_PROTO_GetFieldsCounters [04:15:24]wFMCommunicate request_size=4 [04:15:24]MH_SAM_APDU [04:15:24]CAPDU: 80 13 00 00 [04:15:24]Write to MH i2c: E2 08 00 2F 11 80 13 00 00 00 00 00 00 BC [04:15:24]Write i2c OK [04:15:24]MH_I2C_Read... [04:15:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:15:24]Read from MH i2c: E2 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 62 00 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 62 00 2F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D DE 02 00 0E 04 04 00 CD 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 5C [04:15:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D DE 02 00 0E 04 04 00 CD 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 [04:15:24]wFMCommunicate OK [04:15:24]SAM_PROTO_GetFieldsCounters done [04:15:24]requested_item shift.num is exist - process it [04:15:24]requested_item shift.opened is exist - process it [04:15:24]req_shift_opened [04:15:24]FM_GetShiftState [04:15:24]SAM_PROTO_GetShiftState [04:15:24]wFMCommunicate request_size=4 [04:15:24]MH_SAM_APDU [04:15:24]CAPDU: 80 13 01 00 [04:15:24]Write to MH i2c: E2 08 00 30 11 80 13 01 00 00 00 00 00 BE [04:15:24]Write i2c OK [04:15:24]MH_I2C_Read... [04:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:15:24]Read from MH i2c: E2 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 0E 00 [04:15:24]MH_I2C_Read... [04:15:24]Read from MH i2c: E2 0E 00 30 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B3 [04:15:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:15:24]wFMCommunicate OK [04:15:24]SAM_PROTO_GetShiftState done [04:15:24]FM_GetShiftState done [04:15:24]req_shift_opened done [04:15:24]requested_item shift.open_date is exist - process it [04:15:24]req_shift_open_date [04:15:24]req_shift_open_date done [04:15:24]produce_requested_data done [04:15:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188013,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:15:24]process_action_free close_receipt [04:15:24]json_value_free [04:15:24]json_value_free done [04:15:24]process_json_proto returns [04:15:24]Send response to host [04:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188013,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:15:24]free response buf [04:15:24]execute_script done [04:15:24]execute_script returns [04:15:24]free content buf [04:15:24]Sock 8.Close socket [04:15:24]Sock 8.Thread stoped [04:15:27]OFD Sender: No OFD packet to send [04:15:32]OFD Sender: No OFD packet to send [04:15:37]OFD Sender: No OFD packet to send [04:15:42]OFD Sender: No OFD packet to send [04:15:47]OFD Sender: No OFD packet to send [04:15:52]OFD Sender: No OFD packet to send [04:15:57]OFD Sender: No OFD packet to send [04:16:02]OFD Sender: No OFD packet to send [04:16:07]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:09]accept exits with 9 [04:17:09]New connection [04:17:09]New thread 3067198820 created [04:17:09]Thread 3067055460 joined [04:17:09]Waiting for new connection... [04:17:09] Sock 9.Parse request [04:17:09]Sock 9.Check first char [04:17:09]Sock 9.First char is OK [04:17:09]request: POST /json_proto HTTP/1.0 [04:17:09]Method: POST [04:17:09]URL: /json_proto [04:17:09]Method is POST - this is cgi request [04:17:09]url: /json_proto [04:17:09]query_string will be loaded in cgi processing [04:17:09]execute_cgi json_proto POST (null) [04:17:09]execute_cgi path=json_proto method=POST [04:17:09]POST find Content-Length [04:17:09]Host: 172.17.42.131:8080 [04:17:09]Content-Length: 688 [04:17:09]Content-Type: application/json [04:17:09] [04:17:09]POST finish read [04:17:09]Found Content-Length = 688 [04:17:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:17:09]execute_script... [04:17:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210065", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:17:09]POST & json_proto [04:17:09]process_json_proto [04:17:09]json parsed OK: [04:17:09]protocol is kg_v1.0 [04:17:09]action value=close_receipt [04:17:09]process_action close_receipt [04:17:09]cmd_close_receipt [04:17:09]MH_GetDate [04:17:09]Write to MH i2c: F0 00 00 31 11 31 [04:17:09]Write i2c OK [04:17:09]MH_I2C_Read... [04:17:09]Read from MH i2c: F0 [04:17:09]MH_I2C_Read... [04:17:09]Read from MH i2c: F0 09 00 [04:17:09]MH_I2C_Read... [04:17:09]Read from MH i2c: F0 09 00 31 11 00 46 27 17 67 A0 18 CA 66 0D [04:17:09]GetLastDocTimeStamp 1729570521 [04:17:09]current date 1729570630 [04:17:09]FM_GetShiftState [04:17:09]SAM_PROTO_GetShiftState [04:17:09]wFMCommunicate request_size=4 [04:17:09]MH_SAM_APDU [04:17:09]CAPDU: 80 13 01 00 [04:17:09]Write to MH i2c: E2 08 00 32 11 80 13 01 00 00 00 00 00 C0 [04:17:09]Write i2c OK [04:17:09]MH_I2C_Read... [04:17:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:17:09]Read from MH i2c: E2 [04:17:09]MH_I2C_Read... [04:17:09]Read from MH i2c: E2 0E 00 [04:17:09]MH_I2C_Read... [04:17:09]Read from MH i2c: E2 0E 00 32 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B5 [04:17:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:17:09]wFMCommunicate OK [04:17:09]SAM_PROTO_GetShiftState done [04:17:09]FM_GetShiftState done [04:17:09]opened in 1729556094 [04:17:09]opened+sec_in_day 1729642494 [04:17:09]quantity*price = 100051 [04:17:09]sum+1 = 100052 [04:17:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 43 22.10.2024 04:17 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188014 ФПД: 209407276507582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188014&fm=209407276507582&tin=02508201610067®Number=0000000000100030&sum=100000 [04:17:10]StoreToDocumentArchive [04:17:10]shift 461 fd 188014 [04:17:10]save to /storage/0461/doc_00188014 [04:17:10]save last doc name /storage/0461/doc_00188014 to /storage/kkm_last_doc_name [04:17:10]save OK [04:17:10]Clear old archive folders... [04:17:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:17:10]tlvbuf is 01BC2770 [04:17:10]SAM_PROTO_ClearQueue [04:17:10]wFMCommunicate request_size=4 [04:17:10]MH_SAM_APDU [04:17:10]CAPDU: 80 09 00 00 [04:17:10]Write to MH i2c: E2 08 00 3F 11 80 09 00 00 00 00 00 00 C2 [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:17:10]Read from MH i2c: E2 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 3F 11 00 90 00 C4 [04:17:10]RAPDU: 90 00 [04:17:10]wFMCommunicate OK [04:17:10]SAM_PROTO_ClearQueue done [04:17:10]KKMCreateOFDPacket [04:17:10]OFDProtocolAddRootSTLVToBuf [04:17:10]FM_MakeSignedData [04:17:10]FM_MakeSignedData [04:17:10]SAM_PROTO_SignData [04:17:10]wFMCommunicate request_size=4 [04:17:10]MH_SAM_APDU [04:17:10]CAPDU: 80 0D 01 02 [04:17:10]Write to MH i2c: E2 08 00 40 11 80 0D 01 02 00 00 00 00 CA [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:17:10]Read from MH i2c: E2 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 40 11 00 90 00 C5 [04:17:10]RAPDU: 90 00 [04:17:10]wFMCommunicate OK [04:17:10]wFMCommunicate request_size=255 [04:17:10]MH_SAM_APDU [04:17:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2B 00 00 00 F4 03 04 00 46 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DE 02 [04:17:10]Write to MH i2c: E2 02 01 41 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2B 00 00 00 F4 03 04 00 46 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DE 02 00 00 59 [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:17:10]Read from MH i2c: E2 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 41 11 00 90 00 C6 [04:17:10]RAPDU: 90 00 [04:17:10]wFMCommunicate OK [04:17:10]wFMCommunicate request_size=16 [04:17:10]MH_SAM_APDU [04:17:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BE 74 6E 54 61 BE [04:17:10]Write to MH i2c: E2 13 00 42 11 80 0D 02 02 0B 00 00 35 04 06 00 BE 74 6E 54 61 BE 00 00 35 [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:17:10]Read from MH i2c: E2 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 03 00 42 11 00 90 00 C7 [04:17:10]RAPDU: 90 00 [04:17:10]wFMCommunicate OK [04:17:10]wFMCommunicate request_size=4 [04:17:10]MH_SAM_APDU [04:17:10]CAPDU: 80 0D 03 02 [04:17:10]Write to MH i2c: E2 08 00 43 11 80 0D 03 02 00 00 00 00 CF [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:17:10]Read from MH i2c: E2 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 0B 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 0B 00 43 11 00 F0 8C DF 32 24 27 D1 03 90 00 7C [04:17:10]RAPDU: F0 8C DF 32 24 27 D1 03 90 00 [04:17:10]wFMCommunicate OK [04:17:10]SAM_PROTO_SignData done [04:17:10]FM_MakeSignedData done [04:17:10]CreateOFDProtocolMessage [04:17:10]wFMCommunicate request_size=4 [04:17:10]MH_SAM_APDU [04:17:10]CAPDU: 80 11 00 00 [04:17:10]Write to MH i2c: E2 08 00 44 11 80 11 00 00 00 00 00 00 CF [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:17:10]Read from MH i2c: E2 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 17 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: E2 17 00 44 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [04:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:17:10]wFMCommunicate OK [04:17:10]CreateOFDProtocolMessage done [04:17:10]OFDSenderStorePacket 188014 [04:17:10]StoreOFDPacket docnum=188014 [04:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AE 75 0D 01 E0 61 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2B 00 00 00 F4 03 04 00 46 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DE 02 00 35 04 06 00 BE 74 6E 54 61 BE F0 8C DF 32 24 27 D1 03 [04:17:10]CheckFolder [04:17:10]dirname=/storage/ofd_packets [04:17:10]CheckFolder done [04:17:10]ProducePacketName [04:17:10]name=ofd_packets/00188014 [04:17:10]NVStorageSaveData ofd_packets/00188014 [04:17:10]File name is /storage/ofd_packets/00188014 [04:17:10]Write 307 bytes [04:17:10]NVStorageSaveData done [04:17:10]OFDSenderStorePacket done [04:17:10]KKMCreateOFDPacket done [04:17:10]NVStorageSaveData kkm_last_timestamp [04:17:10]File name is /storage/kkm_last_timestamp [04:17:10]Write 4 bytes [04:17:10]NVStorageSaveData done [04:17:10]ExternCall_PrintAddStr [04:17:10]wPrintStart [04:17:10]Write to MH i2c: 01 00 00 45 11 56 [04:17:10]Write i2c OK [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: 01 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: 01 07 00 [04:17:10]MH_I2C_Read... [04:17:10]Read from MH i2c: 01 07 00 45 11 00 00 00 00 00 FF 0F 6B [04:17:10]RasterBufferAndPrint [04:17:10]line Счет N : (1)210065 [04:17:10]line ИНН: 02508201610067 [04:17:10]line Контрольно-Кассовый Чек [04:17:10]line ПРОДАЖА [04:17:10]line ТРК (МРК, ГНК) : 11 [04:17:10]line Товар: 2710194210 [04:17:10]line D-ENERGY ДТ-К-5 [04:17:10]line 12.960 * 77.20 [04:17:10]line = 1000.51 [04:17:10]line НДС 12% НСП 1% [04:17:10]line > о реализуемом товаре [04:17:10]line ОКРУГЛЕНИЕ: -0.51 [04:17:10]line ИТОГО: 1000.00 [04:17:10]line Внесено: 1000.00 [04:17:10]line СДАЧА: 0.00 [04:17:10]line НСП 1% : 8.85 [04:17:10]line НДС 12% : 106.25 [04:17:10]line Наличными: 1000.00 [04:17:10]line Безнал.: 0.00 [04:17:10]line Место: АЗС № 86 "Партнер Нефть" [04:17:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:17:10]line СНО: Общий режим [04:17:10]line Чек 43 22.10.2024 04:17 [04:17:10]line Смена: 461 ФФД: 1.0 [04:17:10]line ЗНМ: 0300000155 [04:17:10]line РНМ: 0000000000100030 [04:17:10]line Версия ККМ: 001 [04:17:10]line ФМ: 0000000000965340 [04:17:10]line ФД: 188014 [04:17:10]line ФПД: 209407276507582 [04:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188014&fm=209407276507582&tin=02508201610067®Number=0000000000100030&sum=100000 [04:17:10]written 0, free lines is 4095 [04:17:10]OFD Sender: Processing packet 188014 [packets to send 1062, broken 1061] [04:17:10]ProducePacketName [04:17:10]name=ofd_packets/00188014 [04:17:10]OFD Sender: To server: pG, [04:17:10]CommunicateWithHost lk.salyk.kg:30040 [04:17:10]ConnectInit lk.salyk.kg [04:17:11]Connected sock=10 [04:17:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AE 75 0D 01 E0 61 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2B 00 00 00 F4 03 04 00 46 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DE 02 00 35 04 06 00 BE 74 6E 54 61 BE F0 8C DF 32 24 27 D1 03 [04:17:11]Write to MH i2c: 01 00 00 70 11 81 [04:17:11]Write i2c OK [04:17:11]MH_I2C_Read... [04:17:11]Read from MH i2c: 01 [04:17:11]MH_I2C_Read... [04:17:11]Read from MH i2c: 01 07 00 [04:17:11]MH_I2C_Read... [04:17:11]Read from MH i2c: 01 07 00 70 11 00 00 00 00 00 53 0C E7 [04:17:11]RasterBufferAndPrint [04:17:11]line [04:17:11]line [04:17:11]line [04:17:11]line [04:17:11]line [04:17:11]written 0, free lines is 3160 [04:17:11]MH_Cut [04:17:11]Write to MH i2c: D1 01 00 77 11 01 5A [04:17:11]Write i2c OK [04:17:11]MH_I2C_Read... [04:17:11]Read from MH i2c: D1 [04:17:11]MH_I2C_Read... [04:17:11]Read from MH i2c: D1 01 00 [04:17:11]MH_I2C_Read... [04:17:11]Read from MH i2c: D1 01 00 77 11 00 59 [04:17:11]Write to MH i2c: 01 00 00 78 11 89 [04:17:11]Write i2c OK [04:17:11]MH_I2C_Read... [04:17:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 95 47 00 20 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 39 36 35 33 34 30 10 04 04 00 6E DE 02 00 F4 03 04 00 34 D1 16 67 B6 04 01 00 00 A0 6A 03 C9 B4 57 0E 57 [04:17:11]CommunicateWithHost err = 0 [04:17:11]CheckOFDResponse [04:17:11]1017 (14) - 77093643461234 [04:17:11]1041 (16) - 0000000000965340 [04:17:11]1040 (4) - 188014 [04:17:11]1012 (4) - 21.10.2024 22:09 [04:17:11]1206 (1) - 0 [04:17:11]OFD Sender: Remove packet 188014 [04:17:11]ProducePacketName [04:17:11]name=ofd_packets/00188014 [04:17:11]NVStorageDeleteData [04:17:12]OFD Sender: No OFD packet to send [04:17:12]*** Cut start [04:17:12]*** Partial cut [04:17:12]*** CUTSNS_PIN = 1 [04:17:12]*** CUTSNS_PIN = 0 [04:17:12]*** Brake cut motor [04:17:13]Read from MH i2c: 01 [04:17:13]MH_I2C_Read... [04:17:13]*** Stop cut motor [04:17:13]*** Cut end [04:17:13]Read from MH i2c: 01 07 00 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: 01 07 00 78 11 00 00 00 00 00 FF 0F 9E [04:17:13]process_action close_receipt done [04:17:13]requested_data is exist [04:17:13]produce_requested_data [04:17:13]requested_item fm.sn is exist - process it [04:17:13]wFMCommunicate request_size=4 [04:17:13]MH_SAM_APDU [04:17:13]CAPDU: 80 11 00 00 [04:17:13]Write to MH i2c: E2 08 00 79 11 80 11 00 00 00 00 00 00 04 [04:17:13]Write i2c OK [04:17:13]MH_I2C_Read... [04:17:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:17:13]Read from MH i2c: E2 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: E2 17 00 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: E2 17 00 79 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [04:17:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:17:13]wFMCommunicate OK [04:17:13]requested_item fd.num is exist - process it [04:17:13]SAM_PROTO_GetFieldsCounters [04:17:13]wFMCommunicate request_size=4 [04:17:13]MH_SAM_APDU [04:17:13]CAPDU: 80 13 00 00 [04:17:13]Write to MH i2c: E2 08 00 7A 11 80 13 00 00 00 00 00 00 07 [04:17:13]Write i2c OK [04:17:13]MH_I2C_Read... [04:17:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:17:13]Read from MH i2c: E2 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: E2 62 00 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: E2 62 00 7A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E DE 02 00 0E 04 04 00 CD 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 AB [04:17:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E DE 02 00 0E 04 04 00 CD 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 [04:17:13]wFMCommunicate OK [04:17:13]SAM_PROTO_GetFieldsCounters done [04:17:13]requested_item shift.num is exist - process it [04:17:13]requested_item shift.opened is exist - process it [04:17:13]req_shift_opened [04:17:13]FM_GetShiftState [04:17:13]SAM_PROTO_GetShiftState [04:17:13]wFMCommunicate request_size=4 [04:17:13]MH_SAM_APDU [04:17:13]CAPDU: 80 13 01 00 [04:17:13]Write to MH i2c: E2 08 00 7B 11 80 13 01 00 00 00 00 00 09 [04:17:13]Write i2c OK [04:17:13]MH_I2C_Read... [04:17:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:17:13]Read from MH i2c: E2 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: E2 0E 00 [04:17:13]MH_I2C_Read... [04:17:13]Read from MH i2c: E2 0E 00 7B 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FE [04:17:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:17:13]wFMCommunicate OK [04:17:13]SAM_PROTO_GetShiftState done [04:17:13]FM_GetShiftState done [04:17:13]req_shift_opened done [04:17:13]requested_item shift.open_date is exist - process it [04:17:13]req_shift_open_date [04:17:13]req_shift_open_date done [04:17:13]produce_requested_data done [04:17:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188014,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:17:13]process_action_free close_receipt [04:17:13]json_value_free [04:17:13]json_value_free done [04:17:13]process_json_proto returns [04:17:13]Send response to host [04:17:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188014,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:17:13]free response buf [04:17:13]execute_script done [04:17:13]execute_script returns [04:17:13]free content buf [04:17:13]Sock 9.Close socket [04:17:13]Sock 9.Thread stoped [04:17:17]OFD Sender: No OFD packet to send [04:17:22]OFD Sender: No OFD packet to send [04:17:27]OFD Sender: No OFD packet to send [04:17:32]OFD Sender: No OFD packet to send [04:17:37]OFD Sender: No OFD packet to send [04:17:42]OFD Sender: No OFD packet to send [04:17:47]OFD Sender: No OFD packet to send [04:17:52]OFD Sender: No OFD packet to send [04:17:57]OFD Sender: No OFD packet to send [04:18:02]OFD Sender: No OFD packet to send [04:18:07]OFD Sender: No OFD packet to send [04:18:12]OFD Sender: No OFD packet to send [04:18:17]OFD Sender: No OFD packet to send [04:18:22]OFD Sender: No OFD packet to send [04:18:27]OFD Sender: No OFD packet to send [04:18:32]OFD Sender: No OFD packet to send [04:18:37]OFD Sender: No OFD packet to send [04:18:42]OFD Sender: No OFD packet to send [04:18:47]OFD Sender: No OFD packet to send [04:18:52]OFD Sender: No OFD packet to send [04:18:57]OFD Sender: No OFD packet to send [04:19:02]OFD Sender: No OFD packet to send [04:19:07]OFD Sender: No OFD packet to send [04:19:12]OFD Sender: No OFD packet to send [04:19:15]accept exits with 8 [04:19:15]New connection [04:19:15]New thread 3067055460 created [04:19:15]Thread 3067198820 joined [04:19:15]Waiting for new connection... [04:19:15] Sock 8.Parse request [04:19:15]Sock 8.Check first char [04:19:15]Sock 8.First char is OK [04:19:15]request: POST /json_proto HTTP/1.0 [04:19:15]Method: POST [04:19:15]URL: /json_proto [04:19:15]Method is POST - this is cgi request [04:19:15]url: /json_proto [04:19:15]query_string will be loaded in cgi processing [04:19:15]execute_cgi json_proto POST (null) [04:19:15]execute_cgi path=json_proto method=POST [04:19:15]POST find Content-Length [04:19:15]Host: 172.17.42.131:8080 [04:19:15]Content-Length: 683 [04:19:15]Content-Type: application/json [04:19:15] [04:19:15]POST finish read [04:19:15]Found Content-Length = 683 [04:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "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" ] } } [04:19:15]execute_script... [04:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210066", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 3.890, "sum" : 300.31, "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" ] } } [04:19:15]POST & json_proto [04:19:15]process_json_proto [04:19:15]json parsed OK: [04:19:15]protocol is kg_v1.0 [04:19:15]action value=close_receipt [04:19:15]process_action close_receipt [04:19:15]cmd_close_receipt [04:19:15]MH_GetDate [04:19:15]Write to MH i2c: F0 00 00 7C 11 7C [04:19:15]Write i2c OK [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: F0 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: F0 09 00 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: F0 09 00 7C 11 00 C5 27 17 67 A0 18 CA 66 D7 [04:19:15]GetLastDocTimeStamp 1729570630 [04:19:15]current date 1729570757 [04:19:15]FM_GetShiftState [04:19:15]SAM_PROTO_GetShiftState [04:19:15]wFMCommunicate request_size=4 [04:19:15]MH_SAM_APDU [04:19:15]CAPDU: 80 13 01 00 [04:19:15]Write to MH i2c: E2 08 00 7D 11 80 13 01 00 00 00 00 00 0B [04:19:15]Write i2c OK [04:19:15]MH_I2C_Read... [04:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:15]Read from MH i2c: E2 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 0E 00 [04:19:15]MH_I2C_Read... [04:19:15]Read from MH i2c: E2 0E 00 7D 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 00 [04:19:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:19:15]wFMCommunicate OK [04:19:15]SAM_PROTO_GetShiftState done [04:19:15]FM_GetShiftState done [04:19:15]opened in 1729556094 [04:19:15]opened+sec_in_day 1729642494 [04:19:15]quantity*price = 30030 [04:19:15]sum+1 = 30032 [04:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.89 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 44 22.10.2024 04:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188015 ФПД: 42297849313744 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041917&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188015&fm=42297849313744&tin=02508201610067®Number=0000000000100030&sum=30000 [04:19:16]StoreToDocumentArchive [04:19:16]shift 461 fd 188015 [04:19:16]save to /storage/0461/doc_00188015 [04:19:16]save last doc name /storage/0461/doc_00188015 to /storage/kkm_last_doc_name [04:19:16]save OK [04:19:16]Clear old archive folders... [04:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:19:16]tlvbuf is 01BC2080 [04:19:16]SAM_PROTO_ClearQueue [04:19:16]wFMCommunicate request_size=4 [04:19:16]MH_SAM_APDU [04:19:16]CAPDU: 80 09 00 00 [04:19:16]Write to MH i2c: E2 08 00 8A 11 80 09 00 00 00 00 00 00 0D [04:19:16]Write i2c OK [04:19:16]MH_I2C_Read... [04:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:19:16]Read from MH i2c: E2 [04:19:16]MH_I2C_Read... [04:19:16]Read from MH i2c: E2 03 00 [04:19:16]MH_I2C_Read... [04:19:16]Read from MH i2c: E2 03 00 8A 11 00 90 00 0F [04:19:16]RAPDU: 90 00 [04:19:16]wFMCommunicate OK [04:19:16]SAM_PROTO_ClearQueue done [04:19:16]KKMCreateOFDPacket [04:19:16]OFDProtocolAddRootSTLVToBuf [04:19:16]FM_MakeSignedData [04:19:16]FM_MakeSignedData [04:19:16]SAM_PROTO_SignData [04:19:16]wFMCommunicate request_size=4 [04:19:16]MH_SAM_APDU [04:19:16]CAPDU: 80 0D 01 02 [04:19:16]Write to MH i2c: E2 08 00 8B 11 80 0D 01 02 00 00 00 00 15 [04:19:16]Write i2c OK [04:19:16]MH_I2C_Read... [04:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:19:16]Read from MH i2c: E2 [04:19:16]MH_I2C_Read... [04:19:16]Read from MH i2c: E2 03 00 [04:19:16]MH_I2C_Read... [04:19:16]Read from MH i2c: E2 03 00 8B 11 00 90 00 10 [04:19:17]RAPDU: 90 00 [04:19:17]wFMCommunicate OK [04:19:17]wFMCommunicate request_size=255 [04:19:17]MH_SAM_APDU [04:19:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 2C 00 00 00 F4 03 04 00 C5 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DE 02 [04:19:17]Write to MH i2c: E2 02 01 8C 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 2C 00 00 00 F4 03 04 00 C5 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DE 02 00 00 64 [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:17]Read from MH i2c: E2 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 03 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 03 00 8C 11 00 90 00 11 [04:19:17]RAPDU: 90 00 [04:19:17]wFMCommunicate OK [04:19:17]wFMCommunicate request_size=16 [04:19:17]MH_SAM_APDU [04:19:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 26 78 3C 48 79 D0 [04:19:17]Write to MH i2c: E2 13 00 8D 11 80 0D 02 02 0B 00 00 35 04 06 00 26 78 3C 48 79 D0 00 00 D8 [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:19:17]Read from MH i2c: E2 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 03 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 03 00 8D 11 00 90 00 12 [04:19:17]RAPDU: 90 00 [04:19:17]wFMCommunicate OK [04:19:17]wFMCommunicate request_size=4 [04:19:17]MH_SAM_APDU [04:19:17]CAPDU: 80 0D 03 02 [04:19:17]Write to MH i2c: E2 08 00 8E 11 80 0D 03 02 00 00 00 00 1A [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:19:17]Read from MH i2c: E2 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 0B 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 0B 00 8E 11 00 A5 B3 04 78 B0 40 D5 BD 90 00 71 [04:19:17]RAPDU: A5 B3 04 78 B0 40 D5 BD 90 00 [04:19:17]wFMCommunicate OK [04:19:17]SAM_PROTO_SignData done [04:19:17]FM_MakeSignedData done [04:19:17]CreateOFDProtocolMessage [04:19:17]wFMCommunicate request_size=4 [04:19:17]MH_SAM_APDU [04:19:17]CAPDU: 80 11 00 00 [04:19:17]Write to MH i2c: E2 08 00 8F 11 80 11 00 00 00 00 00 00 1A [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:17]Read from MH i2c: E2 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 17 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: E2 17 00 8F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [04:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:19:17]wFMCommunicate OK [04:19:17]CreateOFDProtocolMessage done [04:19:17]OFDSenderStorePacket 188015 [04:19:17]StoreOFDPacket docnum=188015 [04:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 C4 0D 01 1A BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 2C 00 00 00 F4 03 04 00 C5 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DE 02 00 35 04 06 00 26 78 3C 48 79 D0 A5 B3 04 78 B0 40 D5 BD [04:19:17]CheckFolder [04:19:17]dirname=/storage/ofd_packets [04:19:17]CheckFolder done [04:19:17]ProducePacketName [04:19:17]name=ofd_packets/00188015 [04:19:17]NVStorageSaveData ofd_packets/00188015 [04:19:17]File name is /storage/ofd_packets/00188015 [04:19:17]Write 307 bytes [04:19:17]NVStorageSaveData done [04:19:17]OFDSenderStorePacket done [04:19:17]KKMCreateOFDPacket done [04:19:17]NVStorageSaveData kkm_last_timestamp [04:19:17]File name is /storage/kkm_last_timestamp [04:19:17]Write 4 bytes [04:19:17]NVStorageSaveData done [04:19:17]ExternCall_PrintAddStr [04:19:17]wPrintStart [04:19:17]Write to MH i2c: 01 00 00 90 11 A1 [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: 01 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: 01 07 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: 01 07 00 90 11 00 00 00 00 00 FF 0F B6 [04:19:17]RasterBufferAndPrint [04:19:17]line Счет N : (1)210066 [04:19:17]line ИНН: 02508201610067 [04:19:17]line Контрольно-Кассовый Чек [04:19:17]line ПРОДАЖА [04:19:17]line ТРК (МРК, ГНК) : 11 [04:19:17]line Товар: 2710194210 [04:19:17]line D-ENERGY ДТ-К-5 [04:19:17]line 3.890 * 77.20 [04:19:17]line = 300.31 [04:19:17]line НДС 12% НСП 1% [04:19:17]line > о реализуемом товаре [04:19:17]line ОКРУГЛЕНИЕ: -0.31 [04:19:17]line ИТОГО: 300.00 [04:19:17]line Внесено: 300.00 [04:19:17]line СДАЧА: 0.00 [04:19:17]line НСП 1% : 2.66 [04:19:17]line НДС 12% : 31.89 [04:19:17]line Наличными: 300.00 [04:19:17]line Безнал.: 0.00 [04:19:17]line Место: АЗС № 86 "Партнер Нефть" [04:19:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:19:17]line СНО: Общий режим [04:19:17]line Чек 44 22.10.2024 04:19 [04:19:17]line Смена: 461 ФФД: 1.0 [04:19:17]line ЗНМ: 0300000155 [04:19:17]line РНМ: 0000000000100030 [04:19:17]line Версия ККМ: 001 [04:19:17]line ФМ: 0000000000965340 [04:19:17]line ФД: 188015 [04:19:17]line ФПД: 42297849313744 [04:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T041917&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188015&fm=42297849313744&tin=02508201610067®Number=0000000000100030&sum=30000 [04:19:17]written 0, free lines is 4095 [04:19:17]OFD Sender: Processing packet 188015 [packets to send 1062, broken 1061] [04:19:17]ProducePacketName [04:19:17]name=ofd_packets/00188015 [04:19:17]OFD Sender: To server: pG, [04:19:17]CommunicateWithHost lk.salyk.kg:30040 [04:19:17]ConnectInit lk.salyk.kg [04:19:17]Connected sock=10 [04:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 C4 0D 01 1A BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 4F 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 75 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 2C 00 00 00 F4 03 04 00 C5 27 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DE 02 00 35 04 06 00 26 78 3C 48 79 D0 A5 B3 04 78 B0 40 D5 BD [04:19:17]Write to MH i2c: 01 00 00 BB 11 CC [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: 01 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: 01 07 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: 01 07 00 BB 11 00 00 00 00 00 55 0C 34 [04:19:17]RasterBufferAndPrint [04:19:17]line [04:19:17]line [04:19:17]line [04:19:17]line [04:19:17]line [04:19:17]written 0, free lines is 3161 [04:19:17]MH_Cut [04:19:17]Write to MH i2c: D1 01 00 C2 11 01 A5 [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: D1 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: D1 01 00 [04:19:17]MH_I2C_Read... [04:19:17]Read from MH i2c: D1 01 00 C2 11 00 A4 [04:19:17]Write to MH i2c: 01 00 00 C3 11 D4 [04:19:17]Write i2c OK [04:19:17]MH_I2C_Read... [04:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 EA 47 00 5B 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 39 36 35 33 34 30 10 04 04 00 6F DE 02 00 F4 03 04 00 B3 D1 16 67 B6 04 01 00 00 B9 4D CD 19 C4 AA 11 F1 [04:19:18]CommunicateWithHost err = 0 [04:19:18]CheckOFDResponse [04:19:18]1017 (14) - 77093643461234 [04:19:18]1041 (16) - 0000000000965340 [04:19:18]1040 (4) - 188015 [04:19:18]1012 (4) - 21.10.2024 22:12 [04:19:18]1206 (1) - 0 [04:19:18]OFD Sender: Remove packet 188015 [04:19:18]ProducePacketName [04:19:18]name=ofd_packets/00188015 [04:19:18]NVStorageDeleteData [04:19:18]OFD Sender: No OFD packet to send [04:19:19]*** Cut start [04:19:19]*** Partial cut [04:19:19]*** CUTSNS_PIN = 1 [04:19:19]*** CUTSNS_PIN = 0 [04:19:19]*** Brake cut motor [04:19:19]Read from MH i2c: 01 [04:19:19]MH_I2C_Read... [04:19:19]*** Stop cut motor [04:19:19]*** Cut end [04:19:19]Read from MH i2c: 01 07 00 [04:19:19]MH_I2C_Read... [04:19:19]Read from MH i2c: 01 07 00 C3 11 00 00 00 00 00 FF 0F E9 [04:19:19]process_action close_receipt done [04:19:19]requested_data is exist [04:19:19]produce_requested_data [04:19:19]requested_item fm.sn is exist - process it [04:19:19]wFMCommunicate request_size=4 [04:19:19]MH_SAM_APDU [04:19:19]CAPDU: 80 11 00 00 [04:19:19]Write to MH i2c: E2 08 00 C4 11 80 11 00 00 00 00 00 00 4F [04:19:19]Write i2c OK [04:19:19]MH_I2C_Read... [04:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:19:19]Read from MH i2c: E2 [04:19:19]MH_I2C_Read... [04:19:19]Read from MH i2c: E2 17 00 [04:19:19]MH_I2C_Read... [04:19:19]Read from MH i2c: E2 17 00 C4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [04:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:19:19]wFMCommunicate OK [04:19:19]requested_item fd.num is exist - process it [04:19:19]SAM_PROTO_GetFieldsCounters [04:19:19]wFMCommunicate request_size=4 [04:19:19]MH_SAM_APDU [04:19:19]CAPDU: 80 13 00 00 [04:19:19]Write to MH i2c: E2 08 00 C5 11 80 13 00 00 00 00 00 00 52 [04:19:19]Write i2c OK [04:19:19]MH_I2C_Read... [04:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:19:20]Read from MH i2c: E2 [04:19:20]MH_I2C_Read... [04:19:20]Read from MH i2c: E2 62 00 [04:19:20]MH_I2C_Read... [04:19:20]Read from MH i2c: E2 62 00 C5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F DE 02 00 0E 04 04 00 CD 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 FA [04:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F DE 02 00 0E 04 04 00 CD 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 [04:19:20]wFMCommunicate OK [04:19:20]SAM_PROTO_GetFieldsCounters done [04:19:20]requested_item shift.num is exist - process it [04:19:20]requested_item shift.opened is exist - process it [04:19:20]req_shift_opened [04:19:20]FM_GetShiftState [04:19:20]SAM_PROTO_GetShiftState [04:19:20]wFMCommunicate request_size=4 [04:19:20]MH_SAM_APDU [04:19:20]CAPDU: 80 13 01 00 [04:19:20]Write to MH i2c: E2 08 00 C6 11 80 13 01 00 00 00 00 00 54 [04:19:20]Write i2c OK [04:19:20]MH_I2C_Read... [04:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:19:20]Read from MH i2c: E2 [04:19:20]MH_I2C_Read... [04:19:20]Read from MH i2c: E2 0E 00 [04:19:20]MH_I2C_Read... [04:19:20]Read from MH i2c: E2 0E 00 C6 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [04:19:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:19:20]wFMCommunicate OK [04:19:20]SAM_PROTO_GetShiftState done [04:19:20]FM_GetShiftState done [04:19:20]req_shift_opened done [04:19:20]requested_item shift.open_date is exist - process it [04:19:20]req_shift_open_date [04:19:20]req_shift_open_date done [04:19:20]produce_requested_data done [04:19:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188015,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:19:20]process_action_free close_receipt [04:19:20]json_value_free [04:19:20]json_value_free done [04:19:20]process_json_proto returns [04:19:20]Send response to host [04:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188015,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:19:20]free response buf [04:19:20]execute_script done [04:19:20]execute_script returns [04:19:20]free content buf [04:19:20]Sock 8.Close socket [04:19:20]Sock 8.Thread stoped [04:19:23]OFD Sender: No OFD packet to send [04:19:28]OFD Sender: No OFD packet to send [04:19:33]OFD Sender: No OFD packet to send [04:19:38]OFD Sender: No OFD packet to send [04:19:43]OFD Sender: No OFD packet to send [04:19:48]OFD Sender: No OFD packet to send [04:19:53]OFD Sender: No OFD packet to send [04:19:58]OFD Sender: No OFD packet to send [04:20:03]OFD Sender: No OFD packet to send [04:20:08]OFD Sender: No OFD packet to send [04:20:13]OFD Sender: No OFD packet to send [04:20:18]OFD Sender: No OFD packet to send [04:20:23]OFD Sender: No OFD packet to send [04:20:28]OFD Sender: No OFD packet to send [04:20:33]OFD Sender: No OFD packet to send [04:20:38]OFD Sender: No OFD packet to send [04:20:43]OFD Sender: No OFD packet to send [04:20:49]OFD Sender: No OFD packet to send [04:20:54]OFD Sender: No OFD packet to send [04:20:59]OFD Sender: No OFD packet to send [04:21:04]OFD Sender: No OFD packet to send [04:21:09]OFD Sender: No OFD packet to send [04:21:14]OFD Sender: No OFD packet to send [04:21:19]OFD Sender: No OFD packet to send [04:21:24]OFD Sender: No OFD packet to send [04:21:29]OFD Sender: No OFD packet to send [04:21:34]OFD Sender: No OFD packet to send [04:21:39]OFD Sender: No OFD packet to send [04:21:44]OFD Sender: No OFD packet to send [04:21:49]OFD Sender: No OFD packet to send [04:21:54]accept exits with 9 [04:21:54]New connection [04:21:54]New thread 3067198820 created [04:21:54]Thread 3067055460 joined [04:21:54]Waiting for new connection... [04:21:54] Sock 9.Parse request [04:21:54]Sock 9.Check first char [04:21:54]Sock 9.First char is OK [04:21:54]request: POST /json_proto HTTP/1.0 [04:21:54]Method: POST [04:21:54]URL: /json_proto [04:21:54]Method is POST - this is cgi request [04:21:54]url: /json_proto [04:21:54]query_string will be loaded in cgi processing [04:21:54]execute_cgi json_proto POST (null) [04:21:54]execute_cgi path=json_proto method=POST [04:21:54]POST find Content-Length [04:21:54]Host: 172.17.42.131:8080 [04:21:54]Content-Length: 688 [04:21:54]Content-Type: application/json [04:21:54] [04:21:54]POST finish read [04:21:54]Found Content-Length = 688 [04:21:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:21:54]execute_script... [04:21:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210067", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:21:54]POST & json_proto [04:21:54]process_json_proto [04:21:54]json parsed OK: [04:21:54]protocol is kg_v1.0 [04:21:54]action value=close_receipt [04:21:54]process_action close_receipt [04:21:54]cmd_close_receipt [04:21:54]MH_GetDate [04:21:54]Write to MH i2c: F0 00 00 C7 11 C7 [04:21:54]Write i2c OK [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: F0 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: F0 09 00 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: F0 09 00 C7 11 00 63 28 17 67 A0 18 CA 66 C1 [04:21:54]GetLastDocTimeStamp 1729570757 [04:21:54]current date 1729570915 [04:21:54]FM_GetShiftState [04:21:54]SAM_PROTO_GetShiftState [04:21:54]wFMCommunicate request_size=4 [04:21:54]MH_SAM_APDU [04:21:54]CAPDU: 80 13 01 00 [04:21:54]Write to MH i2c: E2 08 00 C8 11 80 13 01 00 00 00 00 00 56 [04:21:54]Write i2c OK [04:21:54]MH_I2C_Read... [04:21:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:54]Read from MH i2c: E2 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 0E 00 [04:21:54]MH_I2C_Read... [04:21:54]Read from MH i2c: E2 0E 00 C8 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [04:21:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:21:54]wFMCommunicate OK [04:21:54]SAM_PROTO_GetShiftState done [04:21:54]FM_GetShiftState done [04:21:54]opened in 1729556094 [04:21:54]opened+sec_in_day 1729642494 [04:21:54]quantity*price = 100051 [04:21:54]sum+1 = 100052 [04:21:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 45 22.10.2024 04:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188016 ФПД: 108619873318059 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188016&fm=108619873318059&tin=02508201610067®Number=0000000000100030&sum=100000 [04:21:55]StoreToDocumentArchive [04:21:55]shift 461 fd 188016 [04:21:55]save to /storage/0461/doc_00188016 [04:21:55]save last doc name /storage/0461/doc_00188016 to /storage/kkm_last_doc_name [04:21:55]save OK [04:21:55]Clear old archive folders... [04:21:55]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:21:55]tlvbuf is 01BC2A90 [04:21:55]SAM_PROTO_ClearQueue [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 09 00 00 [04:21:55]Write to MH i2c: E2 08 00 D5 11 80 09 00 00 00 00 00 00 58 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 D5 11 00 90 00 5A [04:21:55]RAPDU: 90 00 [04:21:55]wFMCommunicate OK [04:21:55]SAM_PROTO_ClearQueue done [04:21:55]KKMCreateOFDPacket [04:21:55]OFDProtocolAddRootSTLVToBuf [04:21:55]FM_MakeSignedData [04:21:55]FM_MakeSignedData [04:21:55]SAM_PROTO_SignData [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 0D 01 02 [04:21:55]Write to MH i2c: E2 08 00 D6 11 80 0D 01 02 00 00 00 00 60 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 D6 11 00 90 00 5B [04:21:55]RAPDU: 90 00 [04:21:55]wFMCommunicate OK [04:21:55]wFMCommunicate request_size=255 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2D 00 00 00 F4 03 04 00 63 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DE 02 [04:21:55]Write to MH i2c: E2 02 01 D7 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2D 00 00 00 F4 03 04 00 63 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DE 02 00 00 11 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 D7 11 00 90 00 5C [04:21:55]RAPDU: 90 00 [04:21:55]wFMCommunicate OK [04:21:55]wFMCommunicate request_size=16 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 62 CA 08 F6 F4 AB [04:21:55]Write to MH i2c: E2 13 00 D8 11 80 0D 02 02 0B 00 00 35 04 06 00 62 CA 08 F6 F4 AB 00 00 81 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 03 00 D8 11 00 90 00 5D [04:21:55]RAPDU: 90 00 [04:21:55]wFMCommunicate OK [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 0D 03 02 [04:21:55]Write to MH i2c: E2 08 00 D9 11 80 0D 03 02 00 00 00 00 65 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 0B 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 0B 00 D9 11 00 D5 53 58 FD F9 15 92 1A 90 00 9D [04:21:55]RAPDU: D5 53 58 FD F9 15 92 1A 90 00 [04:21:55]wFMCommunicate OK [04:21:55]SAM_PROTO_SignData done [04:21:55]FM_MakeSignedData done [04:21:55]CreateOFDProtocolMessage [04:21:55]wFMCommunicate request_size=4 [04:21:55]MH_SAM_APDU [04:21:55]CAPDU: 80 11 00 00 [04:21:55]Write to MH i2c: E2 08 00 DA 11 80 11 00 00 00 00 00 00 65 [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:55]Read from MH i2c: E2 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 17 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: E2 17 00 DA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [04:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:21:55]wFMCommunicate OK [04:21:55]CreateOFDProtocolMessage done [04:21:55]OFDSenderStorePacket 188016 [04:21:55]StoreOFDPacket docnum=188016 [04:21:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 21 9C 0D 01 20 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2D 00 00 00 F4 03 04 00 63 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DE 02 00 35 04 06 00 62 CA 08 F6 F4 AB D5 53 58 FD F9 15 92 1A [04:21:55]CheckFolder [04:21:55]dirname=/storage/ofd_packets [04:21:55]CheckFolder done [04:21:55]ProducePacketName [04:21:55]name=ofd_packets/00188016 [04:21:55]NVStorageSaveData ofd_packets/00188016 [04:21:55]File name is /storage/ofd_packets/00188016 [04:21:55]Write 307 bytes [04:21:55]NVStorageSaveData done [04:21:55]OFDSenderStorePacket done [04:21:55]KKMCreateOFDPacket done [04:21:55]NVStorageSaveData kkm_last_timestamp [04:21:55]File name is /storage/kkm_last_timestamp [04:21:55]Write 4 bytes [04:21:55]NVStorageSaveData done [04:21:55]ExternCall_PrintAddStr [04:21:55]wPrintStart [04:21:55]Write to MH i2c: 01 00 00 DB 11 EC [04:21:55]Write i2c OK [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 07 00 [04:21:55]MH_I2C_Read... [04:21:55]Read from MH i2c: 01 07 00 DB 11 00 00 00 00 00 FF 0F 01 [04:21:55]RasterBufferAndPrint [04:21:55]line Счет N : (1)210067 [04:21:55]line ИНН: 02508201610067 [04:21:55]line Контрольно-Кассовый Чек [04:21:55]line ПРОДАЖА [04:21:55]line ТРК (МРК, ГНК) : 31 [04:21:55]line Товар: 2710194210 [04:21:55]line D-ENERGY ДТ-К-5 [04:21:55]line 12.960 * 77.20 [04:21:55]line = 1000.51 [04:21:55]line НДС 12% НСП 1% [04:21:55]line > о реализуемом товаре [04:21:55]line ОКРУГЛЕНИЕ: -0.51 [04:21:55]line ИТОГО: 1000.00 [04:21:55]line Внесено: 1000.00 [04:21:55]line СДАЧА: 0.00 [04:21:55]line НСП 1% : 8.85 [04:21:55]line НДС 12% : 106.25 [04:21:55]line Наличными: 1000.00 [04:21:55]line Безнал.: 0.00 [04:21:55]line Место: АЗС № 86 "Партнер Нефть" [04:21:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:21:55]line СНО: Общий режим [04:21:55]line Чек 45 22.10.2024 04:21 [04:21:55]line Смена: 461 ФФД: 1.0 [04:21:55]line ЗНМ: 0300000155 [04:21:55]line РНМ: 0000000000100030 [04:21:55]line Версия ККМ: 001 [04:21:55]line ФМ: 0000000000965340 [04:21:55]line ФД: 188016 [04:21:55]line ФПД: 108619873318059 [04:21:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042155&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188016&fm=108619873318059&tin=02508201610067®Number=0000000000100030&sum=100000 [04:21:55]written 0, free lines is 4095 [04:21:55]OFD Sender: Processing packet 188016 [packets to send 1062, broken 1061] [04:21:55]ProducePacketName [04:21:55]name=ofd_packets/00188016 [04:21:55]OFD Sender: To server: pG, [04:21:55]CommunicateWithHost lk.salyk.kg:30040 [04:21:55]ConnectInit lk.salyk.kg [04:21:55]Connected sock=10 [04:21:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 21 9C 0D 01 20 5F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2D 00 00 00 F4 03 04 00 63 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DE 02 00 35 04 06 00 62 CA 08 F6 F4 AB D5 53 58 FD F9 15 92 1A [04:21:56]Write to MH i2c: 01 00 00 06 12 18 [04:21:56]Write i2c OK [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: 01 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: 01 07 00 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: 01 07 00 06 12 00 00 00 00 00 5F 0C 8A [04:21:56]RasterBufferAndPrint [04:21:56]line [04:21:56]line [04:21:56]line [04:21:56]line [04:21:56]line [04:21:56]written 0, free lines is 3170 [04:21:56]MH_Cut [04:21:56]Write to MH i2c: D1 01 00 0D 12 01 F1 [04:21:56]Write i2c OK [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: D1 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: D1 01 00 [04:21:56]MH_I2C_Read... [04:21:56]Read from MH i2c: D1 01 00 0D 12 00 F0 [04:21:56]Write to MH i2c: 01 00 00 0E 12 20 [04:21:56]Write i2c OK [04:21:56]MH_I2C_Read... [04:21:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE D5 47 00 7F 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DE 02 00 F4 03 04 00 51 D2 16 67 B6 04 01 00 00 6A 18 F9 CF B3 AC 13 24 [04:21:56]CommunicateWithHost err = 0 [04:21:56]CheckOFDResponse [04:21:56]1017 (14) - 77093643461234 [04:21:56]1041 (16) - 0000000000965340 [04:21:56]1040 (4) - 188016 [04:21:56]1012 (4) - 21.10.2024 22:14 [04:21:56]1206 (1) - 0 [04:21:56]OFD Sender: Remove packet 188016 [04:21:56]ProducePacketName [04:21:56]name=ofd_packets/00188016 [04:21:56]NVStorageDeleteData [04:21:56]OFD Sender: No OFD packet to send [04:21:57]*** Cut start [04:21:57]*** Partial cut [04:21:57]*** CUTSNS_PIN = 1 [04:21:57]*** CUTSNS_PIN = 0 [04:21:57]*** Brake cut motor [04:21:58]Read from MH i2c: 01 [04:21:58]MH_I2C_Read... [04:21:58]*** Stop cut motor [04:21:58]*** Cut end [04:21:58]Read from MH i2c: 01 07 00 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: 01 07 00 0E 12 00 00 00 00 00 FF 0F 35 [04:21:58]process_action close_receipt done [04:21:58]requested_data is exist [04:21:58]produce_requested_data [04:21:58]requested_item fm.sn is exist - process it [04:21:58]wFMCommunicate request_size=4 [04:21:58]MH_SAM_APDU [04:21:58]CAPDU: 80 11 00 00 [04:21:58]Write to MH i2c: E2 08 00 0F 12 80 11 00 00 00 00 00 00 9B [04:21:58]Write i2c OK [04:21:58]MH_I2C_Read... [04:21:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:21:58]Read from MH i2c: E2 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: E2 17 00 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: E2 17 00 0F 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [04:21:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:21:58]wFMCommunicate OK [04:21:58]requested_item fd.num is exist - process it [04:21:58]SAM_PROTO_GetFieldsCounters [04:21:58]wFMCommunicate request_size=4 [04:21:58]MH_SAM_APDU [04:21:58]CAPDU: 80 13 00 00 [04:21:58]Write to MH i2c: E2 08 00 10 12 80 13 00 00 00 00 00 00 9E [04:21:58]Write i2c OK [04:21:58]MH_I2C_Read... [04:21:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:21:58]Read from MH i2c: E2 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: E2 62 00 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: E2 62 00 10 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 DE 02 00 0E 04 04 00 CD 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 4A [04:21:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 DE 02 00 0E 04 04 00 CD 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 [04:21:58]wFMCommunicate OK [04:21:58]SAM_PROTO_GetFieldsCounters done [04:21:58]requested_item shift.num is exist - process it [04:21:58]requested_item shift.opened is exist - process it [04:21:58]req_shift_opened [04:21:58]FM_GetShiftState [04:21:58]SAM_PROTO_GetShiftState [04:21:58]wFMCommunicate request_size=4 [04:21:58]MH_SAM_APDU [04:21:58]CAPDU: 80 13 01 00 [04:21:58]Write to MH i2c: E2 08 00 11 12 80 13 01 00 00 00 00 00 A0 [04:21:58]Write i2c OK [04:21:58]MH_I2C_Read... [04:21:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:21:58]Read from MH i2c: E2 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: E2 0E 00 [04:21:58]MH_I2C_Read... [04:21:58]Read from MH i2c: E2 0E 00 11 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 95 [04:21:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:21:58]wFMCommunicate OK [04:21:58]SAM_PROTO_GetShiftState done [04:21:58]FM_GetShiftState done [04:21:58]req_shift_opened done [04:21:58]requested_item shift.open_date is exist - process it [04:21:58]req_shift_open_date [04:21:58]req_shift_open_date done [04:21:58]produce_requested_data done [04:21:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188016,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:21:58]process_action_free close_receipt [04:21:58]json_value_free [04:21:58]json_value_free done [04:21:58]process_json_proto returns [04:21:58]Send response to host [04:21:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188016,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:21:58]free response buf [04:21:58]execute_script done [04:21:58]execute_script returns [04:21:58]free content buf [04:21:58]Sock 9.Close socket [04:21:58]Sock 9.Thread stoped [04:22:01]OFD Sender: No OFD packet to send [04:22:06]OFD Sender: No OFD packet to send [04:22:09]accept exits with 8 [04:22:09]New connection [04:22:09]New thread 3067055460 created [04:22:09]Thread 3067198820 joined [04:22:09]Waiting for new connection... [04:22:09] Sock 8.Parse request [04:22:09]Sock 8.Check first char [04:22:09]Sock 8.First char is OK [04:22:09]request: POST /json_proto HTTP/1.0 [04:22:09]Method: POST [04:22:09]URL: /json_proto [04:22:09]Method is POST - this is cgi request [04:22:09]url: /json_proto [04:22:09]query_string will be loaded in cgi processing [04:22:09]execute_cgi json_proto POST (null) [04:22:09]execute_cgi path=json_proto method=POST [04:22:09]POST find Content-Length [04:22:09]Host: 172.17.42.131:8080 [04:22:09]Content-Length: 683 [04:22:09]Content-Type: application/json [04:22:09] [04:22:09]POST finish read [04:22:09]Found Content-Length = 683 [04:22:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:22:09]execute_script... [04:22:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210069", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:22:09]POST & json_proto [04:22:09]process_json_proto [04:22:09]json parsed OK: [04:22:09]protocol is kg_v1.0 [04:22:09]action value=close_receipt [04:22:09]process_action close_receipt [04:22:09]cmd_close_receipt [04:22:09]MH_GetDate [04:22:09]Write to MH i2c: F0 00 00 12 12 13 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: F0 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: F0 09 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: F0 09 00 12 12 00 73 28 17 67 A0 18 CA 66 1D [04:22:09]GetLastDocTimeStamp 1729570915 [04:22:09]current date 1729570931 [04:22:09]FM_GetShiftState [04:22:09]SAM_PROTO_GetShiftState [04:22:09]wFMCommunicate request_size=4 [04:22:09]MH_SAM_APDU [04:22:09]CAPDU: 80 13 01 00 [04:22:09]Write to MH i2c: E2 08 00 13 12 80 13 01 00 00 00 00 00 A2 [04:22:09]Write i2c OK [04:22:09]MH_I2C_Read... [04:22:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:09]Read from MH i2c: E2 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 0E 00 [04:22:09]MH_I2C_Read... [04:22:09]Read from MH i2c: E2 0E 00 13 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 97 [04:22:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:22:09]wFMCommunicate OK [04:22:09]SAM_PROTO_GetShiftState done [04:22:09]FM_GetShiftState done [04:22:09]opened in 1729556094 [04:22:09]opened+sec_in_day 1729642494 [04:22:09]quantity*price = 50025 [04:22:09]sum+1 = 50027 [04:22:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 46 22.10.2024 04:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188017 ФПД: 39631603689830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042211&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188017&fm=39631603689830&tin=02508201610067®Number=0000000000100030&sum=50000 [04:22:10]StoreToDocumentArchive [04:22:10]shift 461 fd 188017 [04:22:10]save to /storage/0461/doc_00188017 [04:22:10]save last doc name /storage/0461/doc_00188017 to /storage/kkm_last_doc_name [04:22:10]save OK [04:22:10]Clear old archive folders... [04:22:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:22:10]tlvbuf is B6EFDB50 [04:22:10]SAM_PROTO_ClearQueue [04:22:10]wFMCommunicate request_size=4 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 09 00 00 [04:22:10]Write to MH i2c: E2 08 00 20 12 80 09 00 00 00 00 00 00 A4 [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 20 12 00 90 00 A6 [04:22:10]RAPDU: 90 00 [04:22:10]wFMCommunicate OK [04:22:10]SAM_PROTO_ClearQueue done [04:22:10]KKMCreateOFDPacket [04:22:10]OFDProtocolAddRootSTLVToBuf [04:22:10]FM_MakeSignedData [04:22:10]FM_MakeSignedData [04:22:10]SAM_PROTO_SignData [04:22:10]wFMCommunicate request_size=4 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 0D 01 02 [04:22:10]Write to MH i2c: E2 08 00 21 12 80 0D 01 02 00 00 00 00 AC [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 21 12 00 90 00 A7 [04:22:10]RAPDU: 90 00 [04:22:10]wFMCommunicate OK [04:22:10]wFMCommunicate request_size=255 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 73 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DE 02 [04:22:10]Write to MH i2c: E2 02 01 22 12 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 73 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DE 02 00 00 1F [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 22 12 00 90 00 A8 [04:22:10]RAPDU: 90 00 [04:22:10]wFMCommunicate OK [04:22:10]wFMCommunicate request_size=16 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 24 0B 73 A8 E9 66 [04:22:10]Write to MH i2c: E2 13 00 23 12 80 0D 02 02 0B 00 00 35 04 06 00 24 0B 73 A8 E9 66 00 00 9D [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:10]Read from MH i2c: E2 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 [04:22:10]MH_I2C_Read... [04:22:10]Read from MH i2c: E2 03 00 23 12 00 90 00 A9 [04:22:10]RAPDU: 90 00 [04:22:10]wFMCommunicate OK [04:22:10]wFMCommunicate request_size=4 [04:22:10]MH_SAM_APDU [04:22:10]CAPDU: 80 0D 03 02 [04:22:10]Write to MH i2c: E2 08 00 24 12 80 0D 03 02 00 00 00 00 B1 [04:22:10]Write i2c OK [04:22:10]MH_I2C_Read... [04:22:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:11]Read from MH i2c: E2 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 0B 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 0B 00 24 12 00 2D 1C 57 17 72 B8 4F 60 90 00 42 [04:22:11]RAPDU: 2D 1C 57 17 72 B8 4F 60 90 00 [04:22:11]wFMCommunicate OK [04:22:11]SAM_PROTO_SignData done [04:22:11]FM_MakeSignedData done [04:22:11]CreateOFDProtocolMessage [04:22:11]wFMCommunicate request_size=4 [04:22:11]MH_SAM_APDU [04:22:11]CAPDU: 80 11 00 00 [04:22:11]Write to MH i2c: E2 08 00 25 12 80 11 00 00 00 00 00 00 B1 [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:11]Read from MH i2c: E2 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 17 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: E2 17 00 25 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [04:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:22:11]wFMCommunicate OK [04:22:11]CreateOFDProtocolMessage done [04:22:11]OFDSenderStorePacket 188017 [04:22:11]StoreOFDPacket docnum=188017 [04:22:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 28 95 0D 01 C4 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 73 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DE 02 00 35 04 06 00 24 0B 73 A8 E9 66 2D 1C 57 17 72 B8 4F 60 [04:22:11]CheckFolder [04:22:11]dirname=/storage/ofd_packets [04:22:11]CheckFolder done [04:22:11]ProducePacketName [04:22:11]name=ofd_packets/00188017 [04:22:11]NVStorageSaveData ofd_packets/00188017 [04:22:11]File name is /storage/ofd_packets/00188017 [04:22:11]Write 307 bytes [04:22:11]NVStorageSaveData done [04:22:11]OFDSenderStorePacket done [04:22:11]KKMCreateOFDPacket done [04:22:11]NVStorageSaveData kkm_last_timestamp [04:22:11]File name is /storage/kkm_last_timestamp [04:22:11]Write 4 bytes [04:22:11]NVStorageSaveData done [04:22:11]ExternCall_PrintAddStr [04:22:11]wPrintStart [04:22:11]Write to MH i2c: 01 00 00 26 12 38 [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 07 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 07 00 26 12 00 00 00 00 00 FF 0F 4D [04:22:11]RasterBufferAndPrint [04:22:11]line Счет N : (1)210069 [04:22:11]line ИНН: 02508201610067 [04:22:11]line Контрольно-Кассовый Чек [04:22:11]line ПРОДАЖА [04:22:11]line ТРК (МРК, ГНК) : 41 [04:22:11]line Товар: 2710194210 [04:22:11]line D-ENERGY ДТ-К-5 [04:22:11]line 6.480 * 77.20 [04:22:11]line = 500.26 [04:22:11]line НДС 12% НСП 1% [04:22:11]line > о реализуемом товаре [04:22:11]line ОКРУГЛЕНИЕ: -0.26 [04:22:11]line ИТОГО: 500.00 [04:22:11]line Внесено: 500.00 [04:22:11]line СДАЧА: 0.00 [04:22:11]line НСП 1% : 4.43 [04:22:11]line НДС 12% : 53.12 [04:22:11]line Наличными: 500.00 [04:22:11]line Безнал.: 0.00 [04:22:11]line Место: АЗС № 86 "Партнер Нефть" [04:22:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:22:11]line СНО: Общий режим [04:22:11]line Чек 46 22.10.2024 04:22 [04:22:11]line Смена: 461 ФФД: 1.0 [04:22:11]line ЗНМ: 0300000155 [04:22:11]line РНМ: 0000000000100030 [04:22:11]line Версия ККМ: 001 [04:22:11]line ФМ: 0000000000965340 [04:22:11]line ФД: 188017 [04:22:11]line ФПД: 39631603689830 [04:22:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042211&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188017&fm=39631603689830&tin=02508201610067®Number=0000000000100030&sum=50000 [04:22:11]written 0, free lines is 4095 [04:22:11]OFD Sender: Processing packet 188017 [packets to send 1062, broken 1061] [04:22:11]ProducePacketName [04:22:11]name=ofd_packets/00188017 [04:22:11]OFD Sender: To server: pG, [04:22:11]CommunicateWithHost lk.salyk.kg:30040 [04:22:11]ConnectInit lk.salyk.kg [04:22:11]Connected sock=10 [04:22:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 28 95 0D 01 C4 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 73 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DE 02 00 35 04 06 00 24 0B 73 A8 E9 66 2D 1C 57 17 72 B8 4F 60 [04:22:11]Write to MH i2c: 01 00 00 51 12 63 [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 07 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: 01 07 00 51 12 00 00 00 00 00 60 0C D6 [04:22:11]RasterBufferAndPrint [04:22:11]line [04:22:11]line [04:22:11]line [04:22:11]line [04:22:11]line [04:22:11]written 0, free lines is 3172 [04:22:11]MH_Cut [04:22:11]Write to MH i2c: D1 01 00 58 12 01 3C [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: D1 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: D1 01 00 [04:22:11]MH_I2C_Read... [04:22:11]Read from MH i2c: D1 01 00 58 12 00 3B [04:22:11]Write to MH i2c: 01 00 00 59 12 6B [04:22:11]Write i2c OK [04:22:11]MH_I2C_Read... [04:22:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4C 65 47 00 6C 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 39 36 35 33 34 30 10 04 04 00 71 DE 02 00 F4 03 04 00 61 D2 16 67 B6 04 01 00 00 72 3A D1 59 6B 34 9E EE [04:22:11]CommunicateWithHost err = 0 [04:22:11]CheckOFDResponse [04:22:11]1017 (14) - 77093643461234 [04:22:11]1041 (16) - 0000000000965340 [04:22:11]1040 (4) - 188017 [04:22:11]1012 (4) - 21.10.2024 22:14 [04:22:11]1206 (1) - 0 [04:22:11]OFD Sender: Remove packet 188017 [04:22:11]ProducePacketName [04:22:11]name=ofd_packets/00188017 [04:22:11]NVStorageDeleteData [04:22:12]OFD Sender: No OFD packet to send [04:22:12]*** Cut start [04:22:12]*** Partial cut [04:22:12]*** CUTSNS_PIN = 1 [04:22:12]*** CUTSNS_PIN = 0 [04:22:13]*** Brake cut motor [04:22:13]Read from MH i2c: 01 [04:22:13]MH_I2C_Read... [04:22:13]*** Stop cut motor [04:22:13]*** Cut end [04:22:13]Read from MH i2c: 01 07 00 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: 01 07 00 59 12 00 00 00 00 00 FF 0F 80 [04:22:13]process_action close_receipt done [04:22:13]requested_data is exist [04:22:13]produce_requested_data [04:22:13]requested_item fm.sn is exist - process it [04:22:13]wFMCommunicate request_size=4 [04:22:13]MH_SAM_APDU [04:22:13]CAPDU: 80 11 00 00 [04:22:13]Write to MH i2c: E2 08 00 5A 12 80 11 00 00 00 00 00 00 E6 [04:22:13]Write i2c OK [04:22:13]MH_I2C_Read... [04:22:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:13]Read from MH i2c: E2 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: E2 17 00 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: E2 17 00 5A 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [04:22:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:22:13]wFMCommunicate OK [04:22:13]requested_item fd.num is exist - process it [04:22:13]SAM_PROTO_GetFieldsCounters [04:22:13]wFMCommunicate request_size=4 [04:22:13]MH_SAM_APDU [04:22:13]CAPDU: 80 13 00 00 [04:22:13]Write to MH i2c: E2 08 00 5B 12 80 13 00 00 00 00 00 00 E9 [04:22:13]Write i2c OK [04:22:13]MH_I2C_Read... [04:22:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:13]Read from MH i2c: E2 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: E2 62 00 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: E2 62 00 5B 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 DE 02 00 0E 04 04 00 CD 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 99 [04:22:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 DE 02 00 0E 04 04 00 CD 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 [04:22:13]wFMCommunicate OK [04:22:13]SAM_PROTO_GetFieldsCounters done [04:22:13]requested_item shift.num is exist - process it [04:22:13]requested_item shift.opened is exist - process it [04:22:13]req_shift_opened [04:22:13]FM_GetShiftState [04:22:13]SAM_PROTO_GetShiftState [04:22:13]wFMCommunicate request_size=4 [04:22:13]MH_SAM_APDU [04:22:13]CAPDU: 80 13 01 00 [04:22:13]Write to MH i2c: E2 08 00 5C 12 80 13 01 00 00 00 00 00 EB [04:22:13]Write i2c OK [04:22:13]MH_I2C_Read... [04:22:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:13]Read from MH i2c: E2 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: E2 0E 00 [04:22:13]MH_I2C_Read... [04:22:13]Read from MH i2c: E2 0E 00 5C 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E0 [04:22:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:22:13]wFMCommunicate OK [04:22:13]SAM_PROTO_GetShiftState done [04:22:13]FM_GetShiftState done [04:22:13]req_shift_opened done [04:22:13]requested_item shift.open_date is exist - process it [04:22:13]req_shift_open_date [04:22:13]req_shift_open_date done [04:22:13]produce_requested_data done [04:22:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188017,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:22:13]process_action_free close_receipt [04:22:13]json_value_free [04:22:13]json_value_free done [04:22:13]process_json_proto returns [04:22:13]Send response to host [04:22:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188017,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:22:13]free response buf [04:22:13]execute_script done [04:22:13]execute_script returns [04:22:13]free content buf [04:22:13]Sock 8.Close socket [04:22:13]Sock 8.Thread stoped [04:22:17]OFD Sender: No OFD packet to send [04:22:22]OFD Sender: No OFD packet to send [04:22:27]OFD Sender: No OFD packet to send [04:22:31]accept exits with 9 [04:22:31]New connection [04:22:31]New thread 3067198820 created [04:22:31]Thread 3067055460 joined [04:22:31]Waiting for new connection... [04:22:31] Sock 9.Parse request [04:22:31]Sock 9.Check first char [04:22:31]Sock 9.First char is OK [04:22:31]request: POST /json_proto HTTP/1.0 [04:22:31]Method: POST [04:22:31]URL: /json_proto [04:22:31]Method is POST - this is cgi request [04:22:31]url: /json_proto [04:22:31]query_string will be loaded in cgi processing [04:22:31]execute_cgi json_proto POST (null) [04:22:31]execute_cgi path=json_proto method=POST [04:22:31]POST find Content-Length [04:22:31]Host: 172.17.42.131:8080 [04:22:31]Content-Length: 688 [04:22:31]Content-Type: application/json [04:22:31] [04:22:31]POST finish read [04:22:31]Found Content-Length = 688 [04:22:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:22:31]execute_script... [04:22: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)210068", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:22:31]POST & json_proto [04:22:31]process_json_proto [04:22:31]json parsed OK: [04:22:31]protocol is kg_v1.0 [04:22:31]action value=close_receipt [04:22:31]process_action close_receipt [04:22:31]cmd_close_receipt [04:22:31]MH_GetDate [04:22:31]Write to MH i2c: F0 00 00 5D 12 5E [04:22:31]Write i2c OK [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 09 00 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: F0 09 00 5D 12 00 89 28 17 67 A0 18 CA 66 7E [04:22:31]GetLastDocTimeStamp 1729570931 [04:22:31]current date 1729570953 [04:22:31]FM_GetShiftState [04:22:31]SAM_PROTO_GetShiftState [04:22:31]wFMCommunicate request_size=4 [04:22:31]MH_SAM_APDU [04:22:31]CAPDU: 80 13 01 00 [04:22:31]Write to MH i2c: E2 08 00 5E 12 80 13 01 00 00 00 00 00 ED [04:22:31]Write i2c OK [04:22:31]MH_I2C_Read... [04:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:31]Read from MH i2c: E2 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: E2 0E 00 [04:22:31]MH_I2C_Read... [04:22:31]Read from MH i2c: E2 0E 00 5E 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E2 [04:22:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:22:31]wFMCommunicate OK [04:22:31]SAM_PROTO_GetShiftState done [04:22:31]FM_GetShiftState done [04:22:31]opened in 1729556094 [04:22:31]opened+sec_in_day 1729642494 [04:22:31]quantity*price = 100051 [04:22:31]sum+1 = 100052 [04:22:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 47 22.10.2024 04:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188018 ФПД: 154153395449654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042233&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188018&fm=154153395449654&tin=02508201610067®Number=0000000000100030&sum=100000 [04:22:32]StoreToDocumentArchive [04:22:32]shift 461 fd 188018 [04:22:32]save to /storage/0461/doc_00188018 [04:22:32]save last doc name /storage/0461/doc_00188018 to /storage/kkm_last_doc_name [04:22:32]save OK [04:22:32]Clear old archive folders... [04:22:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:22:32]tlvbuf is 01BEC680 [04:22:32]SAM_PROTO_ClearQueue [04:22:32]wFMCommunicate request_size=4 [04:22:32]MH_SAM_APDU [04:22:32]CAPDU: 80 09 00 00 [04:22:32]Write to MH i2c: E2 08 00 6B 12 80 09 00 00 00 00 00 00 EF [04:22:32]Write i2c OK [04:22:32]MH_I2C_Read... [04:22:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:22:32]Read from MH i2c: E2 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 6B 12 00 90 00 F1 [04:22:32]RAPDU: 90 00 [04:22:32]wFMCommunicate OK [04:22:32]SAM_PROTO_ClearQueue done [04:22:32]KKMCreateOFDPacket [04:22:32]OFDProtocolAddRootSTLVToBuf [04:22:32]FM_MakeSignedData [04:22:32]FM_MakeSignedData [04:22:32]SAM_PROTO_SignData [04:22:32]wFMCommunicate request_size=4 [04:22:32]MH_SAM_APDU [04:22:32]CAPDU: 80 0D 01 02 [04:22:32]Write to MH i2c: E2 08 00 6C 12 80 0D 01 02 00 00 00 00 F7 [04:22:32]Write i2c OK [04:22:32]MH_I2C_Read... [04:22:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:22:32]Read from MH i2c: E2 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 6C 12 00 90 00 F2 [04:22:32]RAPDU: 90 00 [04:22:32]wFMCommunicate OK [04:22:32]wFMCommunicate request_size=255 [04:22:32]MH_SAM_APDU [04:22:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2F 00 00 00 F4 03 04 00 89 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DE 02 [04:22:32]Write to MH i2c: E2 02 01 6D 12 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2F 00 00 00 F4 03 04 00 89 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DE 02 00 00 D2 [04:22:32]Write i2c OK [04:22:32]MH_I2C_Read... [04:22:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:32]Read from MH i2c: E2 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 [04:22:32]MH_I2C_Read... [04:22:32]Read from MH i2c: E2 03 00 6D 12 00 90 00 F3 [04:22:32]RAPDU: 90 00 [04:22:32]wFMCommunicate OK [04:22:32]wFMCommunicate request_size=16 [04:22:32]MH_SAM_APDU [04:22:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8C 33 A2 60 6F 36 [04:22:32]Write to MH i2c: E2 13 00 6E 12 80 0D 02 02 0B 00 00 35 04 06 00 8C 33 A2 60 6F 36 00 00 B5 [04:22:32]Write i2c OK [04:22:32]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 03 00 6E 12 00 90 00 F4 [04:22:33]RAPDU: 90 00 [04:22:33]wFMCommunicate OK [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 0D 03 02 [04:22:33]Write to MH i2c: E2 08 00 6F 12 80 0D 03 02 00 00 00 00 FC [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 0B 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 0B 00 6F 12 00 0C 8B DE F2 06 94 45 C7 90 00 0A [04:22:33]RAPDU: 0C 8B DE F2 06 94 45 C7 90 00 [04:22:33]wFMCommunicate OK [04:22:33]SAM_PROTO_SignData done [04:22:33]FM_MakeSignedData done [04:22:33]CreateOFDProtocolMessage [04:22:33]wFMCommunicate request_size=4 [04:22:33]MH_SAM_APDU [04:22:33]CAPDU: 80 11 00 00 [04:22:33]Write to MH i2c: E2 08 00 70 12 80 11 00 00 00 00 00 00 FC [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:33]Read from MH i2c: E2 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 17 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: E2 17 00 70 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [04:22:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:22:33]wFMCommunicate OK [04:22:33]CreateOFDProtocolMessage done [04:22:33]OFDSenderStorePacket 188018 [04:22:33]StoreOFDPacket docnum=188018 [04:22:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B5 2A 0D 01 D4 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2F 00 00 00 F4 03 04 00 89 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DE 02 00 35 04 06 00 8C 33 A2 60 6F 36 0C 8B DE F2 06 94 45 C7 [04:22:33]CheckFolder [04:22:33]dirname=/storage/ofd_packets [04:22:33]CheckFolder done [04:22:33]ProducePacketName [04:22:33]name=ofd_packets/00188018 [04:22:33]NVStorageSaveData ofd_packets/00188018 [04:22:33]File name is /storage/ofd_packets/00188018 [04:22:33]Write 307 bytes [04:22:33]NVStorageSaveData done [04:22:33]OFDSenderStorePacket done [04:22:33]KKMCreateOFDPacket done [04:22:33]NVStorageSaveData kkm_last_timestamp [04:22:33]File name is /storage/kkm_last_timestamp [04:22:33]Write 4 bytes [04:22:33]NVStorageSaveData done [04:22:33]ExternCall_PrintAddStr [04:22:33]wPrintStart [04:22:33]Write to MH i2c: 01 00 00 71 12 83 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 07 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 07 00 71 12 00 00 00 00 00 FF 0F 98 [04:22:33]RasterBufferAndPrint [04:22:33]line Счет N : (1)210068 [04:22:33]line ИНН: 02508201610067 [04:22:33]line Контрольно-Кассовый Чек [04:22:33]line ПРОДАЖА [04:22:33]line ТРК (МРК, ГНК) : 11 [04:22:33]line Товар: 2710194210 [04:22:33]line D-ENERGY ДТ-К-5 [04:22:33]line 12.960 * 77.20 [04:22:33]line = 1000.51 [04:22:33]line НДС 12% НСП 1% [04:22:33]line > о реализуемом товаре [04:22:33]line ОКРУГЛЕНИЕ: -0.51 [04:22:33]line ИТОГО: 1000.00 [04:22:33]line Внесено: 1000.00 [04:22:33]line СДАЧА: 0.00 [04:22:33]line НСП 1% : 8.85 [04:22:33]line НДС 12% : 106.25 [04:22:33]line Наличными: 1000.00 [04:22:33]line Безнал.: 0.00 [04:22:33]line Место: АЗС № 86 "Партнер Нефть" [04:22:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:22:33]line СНО: Общий режим [04:22:33]line Чек 47 22.10.2024 04:22 [04:22:33]line Смена: 461 ФФД: 1.0 [04:22:33]line ЗНМ: 0300000155 [04:22:33]line РНМ: 0000000000100030 [04:22:33]line Версия ККМ: 001 [04:22:33]line ФМ: 0000000000965340 [04:22:33]line ФД: 188018 [04:22:33]line ФПД: 154153395449654 [04:22:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042233&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188018&fm=154153395449654&tin=02508201610067®Number=0000000000100030&sum=100000 [04:22:33]written 0, free lines is 4095 [04:22:33]OFD Sender: Processing packet 188018 [packets to send 1062, broken 1061] [04:22:33]ProducePacketName [04:22:33]name=ofd_packets/00188018 [04:22:33]OFD Sender: To server: pG, [04:22:33]CommunicateWithHost lk.salyk.kg:30040 [04:22:33]ConnectInit lk.salyk.kg [04:22:33]Connected sock=10 [04:22:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B5 2A 0D 01 D4 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 2F 00 00 00 F4 03 04 00 89 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DE 02 00 35 04 06 00 8C 33 A2 60 6F 36 0C 8B DE F2 06 94 45 C7 [04:22:33]Write to MH i2c: 01 00 00 9C 12 AE [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 07 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: 01 07 00 9C 12 00 00 00 00 00 59 0C 1A [04:22:33]RasterBufferAndPrint [04:22:33]line [04:22:33]line [04:22:33]line [04:22:33]line [04:22:33]line [04:22:33]written 0, free lines is 3165 [04:22:33]MH_Cut [04:22:33]Write to MH i2c: D1 01 00 A3 12 01 87 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: D1 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: D1 01 00 [04:22:33]MH_I2C_Read... [04:22:33]Read from MH i2c: D1 01 00 A3 12 00 86 [04:22:33]Write to MH i2c: 01 00 00 A4 12 B6 [04:22:33]Write i2c OK [04:22:33]MH_I2C_Read... [04:22:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 6C 47 00 7E 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 39 36 35 33 34 30 10 04 04 00 72 DE 02 00 F4 03 04 00 77 D2 16 67 B6 04 01 00 00 76 A4 01 45 1F 00 80 D1 [04:22:33]CommunicateWithHost err = 0 [04:22:33]CheckOFDResponse [04:22:33]1017 (14) - 77093643461234 [04:22:33]1041 (16) - 0000000000965340 [04:22:33]1040 (4) - 188018 [04:22:33]1012 (4) - 21.10.2024 22:15 [04:22:33]1206 (1) - 0 [04:22:33]OFD Sender: Remove packet 188018 [04:22:33]ProducePacketName [04:22:33]name=ofd_packets/00188018 [04:22:33]NVStorageDeleteData [04:22:34]OFD Sender: No OFD packet to send [04:22:34]*** Cut start [04:22:34]*** Partial cut [04:22:34]*** CUTSNS_PIN = 1 [04:22:34]*** CUTSNS_PIN = 0 [04:22:35]*** Brake cut motor [04:22:35]Read from MH i2c: 01 [04:22:35]MH_I2C_Read... [04:22:35]*** Stop cut motor [04:22:35]*** Cut end [04:22:35]Read from MH i2c: 01 07 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: 01 07 00 A4 12 00 00 00 00 00 FF 0F CB [04:22:35]process_action close_receipt done [04:22:35]requested_data is exist [04:22:35]produce_requested_data [04:22:35]requested_item fm.sn is exist - process it [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 11 00 00 [04:22:35]Write to MH i2c: E2 08 00 A5 12 80 11 00 00 00 00 00 00 31 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 17 00 A5 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [04:22:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:22:35]wFMCommunicate OK [04:22:35]requested_item fd.num is exist - process it [04:22:35]SAM_PROTO_GetFieldsCounters [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 13 00 00 [04:22:35]Write to MH i2c: E2 08 00 A6 12 80 13 00 00 00 00 00 00 34 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 62 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 62 00 A6 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 DE 02 00 0E 04 04 00 CD 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 E8 [04:22:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 DE 02 00 0E 04 04 00 CD 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 [04:22:35]wFMCommunicate OK [04:22:35]SAM_PROTO_GetFieldsCounters done [04:22:35]requested_item shift.num is exist - process it [04:22:35]requested_item shift.opened is exist - process it [04:22:35]req_shift_opened [04:22:35]FM_GetShiftState [04:22:35]SAM_PROTO_GetShiftState [04:22:35]wFMCommunicate request_size=4 [04:22:35]MH_SAM_APDU [04:22:35]CAPDU: 80 13 01 00 [04:22:35]Write to MH i2c: E2 08 00 A7 12 80 13 01 00 00 00 00 00 36 [04:22:35]Write i2c OK [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 [04:22:35]MH_I2C_Read... [04:22:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:22:35]Read from MH i2c: E2 0E 00 [04:22:35]MH_I2C_Read... [04:22:35]Read from MH i2c: E2 0E 00 A7 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2B [04:22:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:22:35]wFMCommunicate OK [04:22:35]SAM_PROTO_GetShiftState done [04:22:35]FM_GetShiftState done [04:22:35]req_shift_opened done [04:22:35]requested_item shift.open_date is exist - process it [04:22:35]req_shift_open_date [04:22:35]req_shift_open_date done [04:22:35]produce_requested_data done [04:22:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188018,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:22:35]process_action_free close_receipt [04:22:35]json_value_free [04:22:35]json_value_free done [04:22:35]process_json_proto returns [04:22:35]Send response to host [04:22:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188018,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:22:35]free response buf [04:22:35]execute_script done [04:22:35]execute_script returns [04:22:35]free content buf [04:22:35]Sock 9.Close socket [04:22:35]Sock 9.Thread stoped [04:22:39]OFD Sender: No OFD packet to send [04:22:44]OFD Sender: No OFD packet to send [04:22:49]OFD Sender: No OFD packet to send [04:22:54]OFD Sender: No OFD packet to send [04:22:59]OFD Sender: No OFD packet to send [04:23:04]OFD Sender: No OFD packet to send [04:23:09]OFD Sender: No OFD packet to send [04:23:14]OFD Sender: No OFD packet to send [04:23:19]OFD Sender: No OFD packet to send [04:23:24]OFD Sender: No OFD packet to send [04:23:29]OFD Sender: No OFD packet to send [04:23:34]OFD Sender: No OFD packet to send [04:23:39]OFD Sender: No OFD packet to send [04:23:44]OFD Sender: No OFD packet to send [04:23:49]OFD Sender: No OFD packet to send [04:23:54]OFD Sender: No OFD packet to send [04:23:59]OFD Sender: No OFD packet to send [04:24:04]OFD Sender: No OFD packet to send [04:24:07]accept exits with 8 [04:24:07]New connection [04:24:07]New thread 3067055460 created [04:24:07]Thread 3067198820 joined [04:24:07]Waiting for new connection... [04:24:07] Sock 8.Parse request [04:24:07]Sock 8.Check first char [04:24:07]Sock 8.First char is OK [04:24:07]request: POST /json_proto HTTP/1.0 [04:24:07]Method: POST [04:24:07]URL: /json_proto [04:24:07]Method is POST - this is cgi request [04:24:07]url: /json_proto [04:24:07]query_string will be loaded in cgi processing [04:24:07]execute_cgi json_proto POST (null) [04:24:07]execute_cgi path=json_proto method=POST [04:24:07]POST find Content-Length [04:24:07]Host: 172.17.42.131:8080 [04:24:07]Content-Length: 677 [04:24:07]Content-Type: application/json [04:24:07] [04:24:07]POST finish read [04:24:07]Found Content-Length = 677 [04:24:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210070", "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" : 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" ] } } [04:24:07]execute_script... [04:24: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)210070", "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" : 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" ] } } [04:24:07]POST & json_proto [04:24:07]process_json_proto [04:24:07]json parsed OK: [04:24:07]protocol is kg_v1.0 [04:24:07]action value=close_receipt [04:24:07]process_action close_receipt [04:24:07]cmd_close_receipt [04:24:07]MH_GetDate [04:24:07]Write to MH i2c: F0 00 00 A8 12 A9 [04:24:07]Write i2c OK [04:24:07]MH_I2C_Read... [04:24:07]Read from MH i2c: F0 [04:24:07]MH_I2C_Read... [04:24:07]Read from MH i2c: F0 09 00 [04:24:07]MH_I2C_Read... [04:24:07]Read from MH i2c: F0 09 00 A8 12 00 E9 28 17 67 A0 18 CA 66 29 [04:24:07]GetLastDocTimeStamp 1729570953 [04:24:07]current date 1729571049 [04:24:07]FM_GetShiftState [04:24:07]SAM_PROTO_GetShiftState [04:24:07]wFMCommunicate request_size=4 [04:24:07]MH_SAM_APDU [04:24:07]CAPDU: 80 13 01 00 [04:24:07]Write to MH i2c: E2 08 00 A9 12 80 13 01 00 00 00 00 00 38 [04:24:07]Write i2c OK [04:24:07]MH_I2C_Read... [04:24:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:07]Read from MH i2c: E2 [04:24:07]MH_I2C_Read... [04:24:07]Read from MH i2c: E2 0E 00 [04:24:07]MH_I2C_Read... [04:24:07]Read from MH i2c: E2 0E 00 A9 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2D [04:24:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:24:07]wFMCommunicate OK [04:24:07]SAM_PROTO_GetShiftState done [04:24:07]FM_GetShiftState done [04:24:07]opened in 1729556094 [04:24:07]opened+sec_in_day 1729642494 [04:24:07]quantity*price = 50010 [04:24:07]sum+1 = 50012 [04:24:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 48 22.10.2024 04:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188019 ФПД: 176203092261729 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188019&fm=176203092261729&tin=02508201610067®Number=0000000000100030&sum=50000 [04:24:08]StoreToDocumentArchive [04:24:08]shift 461 fd 188019 [04:24:08]save to /storage/0461/doc_00188019 [04:24:08]save last doc name /storage/0461/doc_00188019 to /storage/kkm_last_doc_name [04:24:08]save OK [04:24:08]Clear old archive folders... [04:24:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [04:24:08]tlvbuf is 01BC28B0 [04:24:08]SAM_PROTO_ClearQueue [04:24:08]wFMCommunicate request_size=4 [04:24:08]MH_SAM_APDU [04:24:08]CAPDU: 80 09 00 00 [04:24:08]Write to MH i2c: E2 08 00 B6 12 80 09 00 00 00 00 00 00 3A [04:24:08]Write i2c OK [04:24:08]MH_I2C_Read... [04:24:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:08]Read from MH i2c: E2 [04:24:08]MH_I2C_Read... [04:24:08]Read from MH i2c: E2 03 00 [04:24:08]MH_I2C_Read... [04:24:08]Read from MH i2c: E2 03 00 B6 12 00 90 00 3C [04:24:08]RAPDU: 90 00 [04:24:08]wFMCommunicate OK [04:24:08]SAM_PROTO_ClearQueue done [04:24:08]KKMCreateOFDPacket [04:24:08]OFDProtocolAddRootSTLVToBuf [04:24:08]FM_MakeSignedData [04:24:08]FM_MakeSignedData [04:24:08]SAM_PROTO_SignData [04:24:08]wFMCommunicate request_size=4 [04:24:08]MH_SAM_APDU [04:24:08]CAPDU: 80 0D 01 02 [04:24:08]Write to MH i2c: E2 08 00 B7 12 80 0D 01 02 00 00 00 00 42 [04:24:08]Write i2c OK [04:24:08]MH_I2C_Read... [04:24:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:08]Read from MH i2c: E2 [04:24:08]MH_I2C_Read... [04:24:08]Read from MH i2c: E2 03 00 [04:24:08]MH_I2C_Read... [04:24:08]Read from MH i2c: E2 03 00 B7 12 00 90 00 3D [04:24:08]RAPDU: 90 00 [04:24:08]wFMCommunicate OK [04:24:08]wFMCommunicate request_size=255 [04:24:08]MH_SAM_APDU [04:24:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 30 00 00 00 F4 03 04 00 E9 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DE 02 00 35 04 06 00 A0 [04:24:08]Write to MH i2c: E2 02 01 B8 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 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 30 00 00 00 F4 03 04 00 E9 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DE 02 00 35 04 06 00 A0 00 00 0D [04:24:08]Write i2c OK [04:24:08]MH_I2C_Read... [04:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:09]Read from MH i2c: E2 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 03 00 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 03 00 B8 12 00 90 00 3E [04:24:09]RAPDU: 90 00 [04:24:09]wFMCommunicate OK [04:24:09]wFMCommunicate request_size=10 [04:24:09]MH_SAM_APDU [04:24:09]CAPDU: 80 0D 02 02 05 41 7A B8 FB 61 [04:24:09]Write to MH i2c: E2 0D 00 B9 12 80 0D 02 02 05 00 41 7A B8 FB 61 00 00 1E [04:24:09]Write i2c OK [04:24:09]MH_I2C_Read... [04:24:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:09]Read from MH i2c: E2 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 03 00 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 03 00 B9 12 00 90 00 3F [04:24:09]RAPDU: 90 00 [04:24:09]wFMCommunicate OK [04:24:09]wFMCommunicate request_size=4 [04:24:09]MH_SAM_APDU [04:24:09]CAPDU: 80 0D 03 02 [04:24:09]Write to MH i2c: E2 08 00 BA 12 80 0D 03 02 00 00 00 00 47 [04:24:09]Write i2c OK [04:24:09]MH_I2C_Read... [04:24:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:09]Read from MH i2c: E2 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 0B 00 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 0B 00 BA 12 00 58 33 46 49 85 68 EF 27 90 00 65 [04:24:09]RAPDU: 58 33 46 49 85 68 EF 27 90 00 [04:24:09]wFMCommunicate OK [04:24:09]SAM_PROTO_SignData done [04:24:09]FM_MakeSignedData done [04:24:09]CreateOFDProtocolMessage [04:24:09]wFMCommunicate request_size=4 [04:24:09]MH_SAM_APDU [04:24:09]CAPDU: 80 11 00 00 [04:24:09]Write to MH i2c: E2 08 00 BB 12 80 11 00 00 00 00 00 00 47 [04:24:09]Write i2c OK [04:24:09]MH_I2C_Read... [04:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:09]Read from MH i2c: E2 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 17 00 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: E2 17 00 BB 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [04:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:24:09]wFMCommunicate OK [04:24:09]CreateOFDProtocolMessage done [04:24:09]OFDSenderStorePacket 188019 [04:24:09]StoreOFDPacket docnum=188019 [04:24:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 D0 07 01 C4 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 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 30 00 00 00 F4 03 04 00 E9 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DE 02 00 35 04 06 00 A0 41 7A B8 FB 61 58 33 46 49 85 68 EF 27 [04:24:09]CheckFolder [04:24:09]dirname=/storage/ofd_packets [04:24:09]CheckFolder done [04:24:09]ProducePacketName [04:24:09]name=ofd_packets/00188019 [04:24:09]NVStorageSaveData ofd_packets/00188019 [04:24:09]File name is /storage/ofd_packets/00188019 [04:24:09]Write 301 bytes [04:24:09]NVStorageSaveData done [04:24:09]OFDSenderStorePacket done [04:24:09]KKMCreateOFDPacket done [04:24:09]NVStorageSaveData kkm_last_timestamp [04:24:09]File name is /storage/kkm_last_timestamp [04:24:09]Write 4 bytes [04:24:09]NVStorageSaveData done [04:24:09]ExternCall_PrintAddStr [04:24:09]wPrintStart [04:24:09]Write to MH i2c: 01 00 00 BC 12 CE [04:24:09]Write i2c OK [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: 01 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: 01 07 00 [04:24:09]MH_I2C_Read... [04:24:09]Read from MH i2c: 01 07 00 BC 12 00 00 00 00 00 FF 0F E3 [04:24:09]RasterBufferAndPrint [04:24:09]line Счет N : (1)210070 [04:24:09]line ИНН: 02508201610067 [04:24:09]line Контрольно-Кассовый Чек [04:24:09]line ПРОДАЖА [04:24:09]line ТРК (МРК, ГНК) : 43 [04:24:09]line Товар: 2710124500 [04:24:09]line Аи-95-К-3 [04:24:09]line 6.740 * 74.20 [04:24:09]line = 500.11 [04:24:09]line НДС 12% НСП 1% [04:24:09]line > о реализуемом товаре [04:24:09]line ОКРУГЛЕНИЕ: -0.11 [04:24:09]line ИТОГО: 500.00 [04:24:09]line Внесено: 500.00 [04:24:09]line СДАЧА: 0.00 [04:24:09]line НСП 1% : 4.43 [04:24:09]line НДС 12% : 53.11 [04:24:09]line Наличными: 500.00 [04:24:09]line Безнал.: 0.00 [04:24:09]line Место: АЗС № 86 "Партнер Нефть" [04:24:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:24:09]line СНО: Общий режим [04:24:09]line Чек 48 22.10.2024 04:24 [04:24:09]line Смена: 461 ФФД: 1.0 [04:24:09]line ЗНМ: 0300000155 [04:24:09]line РНМ: 0000000000100030 [04:24:09]line Версия ККМ: 001 [04:24:09]line ФМ: 0000000000965340 [04:24:09]line ФД: 188019 [04:24:09]line ФПД: 176203092261729 [04:24:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188019&fm=176203092261729&tin=02508201610067®Number=0000000000100030&sum=50000 [04:24:09]OFD Sender: Processing packet 188019 [packets to send 1062, broken 1061] [04:24:09]ProducePacketName [04:24:09]name=ofd_packets/00188019 [04:24:09]OFD Sender: To server: pG, [04:24:09]CommunicateWithHost lk.salyk.kg:30040 [04:24:09]ConnectInit lk.salyk.kg [04:24:09]written 0, free lines is 4095 [04:24:09]Connected sock=10 [04:24:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 D0 07 01 C4 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 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 30 00 00 00 F4 03 04 00 E9 28 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DE 02 00 35 04 06 00 A0 41 7A B8 FB 61 58 33 46 49 85 68 EF 27 [04:24:10]Write to MH i2c: 01 00 00 E7 12 F9 [04:24:10]Write i2c OK [04:24:10]MH_I2C_Read... [04:24:10]Read from MH i2c: 01 [04:24:10]MH_I2C_Read... [04:24:10]Read from MH i2c: 01 07 00 [04:24:10]MH_I2C_Read... [04:24:10]Read from MH i2c: 01 07 00 E7 12 00 00 00 00 00 69 0C 75 [04:24:10]RasterBufferAndPrint [04:24:10]line [04:24:10]line [04:24:10]line [04:24:10]line [04:24:10]line [04:24:10]written 0, free lines is 3179 [04:24:10]MH_Cut [04:24:10]Write to MH i2c: D1 01 00 EE 12 01 D2 [04:24:10]Write i2c OK [04:24:10]MH_I2C_Read... [04:24:10]Read from MH i2c: D1 [04:24:10]MH_I2C_Read... [04:24:10]Read from MH i2c: D1 01 00 [04:24:10]MH_I2C_Read... [04:24:10]Read from MH i2c: D1 01 00 EE 12 00 D1 [04:24:10]Write to MH i2c: 01 00 00 EF 12 01 [04:24:10]Write i2c OK [04:24:10]MH_I2C_Read... [04:24:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 31 47 00 EA 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 39 36 35 33 34 30 10 04 04 00 73 DE 02 00 F4 03 04 00 D7 D2 16 67 B6 04 01 00 00 D1 EB 63 F3 B8 2E A0 7C [04:24:10]CommunicateWithHost err = 0 [04:24:10]CheckOFDResponse [04:24:10]1017 (14) - 77093643461234 [04:24:10]1041 (16) - 0000000000965340 [04:24:10]1040 (4) - 188019 [04:24:10]1012 (4) - 21.10.2024 22:16 [04:24:10]1206 (1) - 0 [04:24:10]OFD Sender: Remove packet 188019 [04:24:10]ProducePacketName [04:24:10]name=ofd_packets/00188019 [04:24:10]NVStorageDeleteData [04:24:10]OFD Sender: No OFD packet to send [04:24:11]*** Cut start [04:24:11]*** Partial cut [04:24:11]*** CUTSNS_PIN = 1 [04:24:11]*** CUTSNS_PIN = 0 [04:24:11]*** Brake cut motor [04:24:11]Read from MH i2c: 01 [04:24:11]MH_I2C_Read... [04:24:11]*** Stop cut motor [04:24:11]*** Cut end [04:24:11]Read from MH i2c: 01 07 00 [04:24:11]MH_I2C_Read... [04:24:11]Read from MH i2c: 01 07 00 EF 12 00 00 00 00 00 FF 0F 16 [04:24:11]process_action close_receipt done [04:24:11]requested_data is exist [04:24:11]produce_requested_data [04:24:11]requested_item fm.sn is exist - process it [04:24:11]wFMCommunicate request_size=4 [04:24:11]MH_SAM_APDU [04:24:11]CAPDU: 80 11 00 00 [04:24:11]Write to MH i2c: E2 08 00 F0 12 80 11 00 00 00 00 00 00 7C [04:24:11]Write i2c OK [04:24:11]MH_I2C_Read... [04:24:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:12]Read from MH i2c: E2 [04:24:12]MH_I2C_Read... [04:24:12]Read from MH i2c: E2 17 00 [04:24:12]MH_I2C_Read... [04:24:12]Read from MH i2c: E2 17 00 F0 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [04:24:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:24:12]wFMCommunicate OK [04:24:12]requested_item fd.num is exist - process it [04:24:12]SAM_PROTO_GetFieldsCounters [04:24:12]wFMCommunicate request_size=4 [04:24:12]MH_SAM_APDU [04:24:12]CAPDU: 80 13 00 00 [04:24:12]Write to MH i2c: E2 08 00 F1 12 80 13 00 00 00 00 00 00 7F [04:24:12]Write i2c OK [04:24:12]MH_I2C_Read... [04:24:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:12]Read from MH i2c: E2 [04:24:12]MH_I2C_Read... [04:24:12]Read from MH i2c: E2 62 00 [04:24:12]MH_I2C_Read... [04:24:12]Read from MH i2c: E2 62 00 F1 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 DE 02 00 0E 04 04 00 CD 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 37 [04:24:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 DE 02 00 0E 04 04 00 CD 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 [04:24:12]wFMCommunicate OK [04:24:12]SAM_PROTO_GetFieldsCounters done [04:24:12]requested_item shift.num is exist - process it [04:24:12]requested_item shift.opened is exist - process it [04:24:12]req_shift_opened [04:24:12]FM_GetShiftState [04:24:12]SAM_PROTO_GetShiftState [04:24:12]wFMCommunicate request_size=4 [04:24:12]MH_SAM_APDU [04:24:12]CAPDU: 80 13 01 00 [04:24:12]Write to MH i2c: E2 08 00 F2 12 80 13 01 00 00 00 00 00 81 [04:24:12]Write i2c OK [04:24:12]MH_I2C_Read... [04:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:12]Read from MH i2c: E2 [04:24:12]MH_I2C_Read... [04:24:12]Read from MH i2c: E2 0E 00 [04:24:12]MH_I2C_Read... [04:24:12]Read from MH i2c: E2 0E 00 F2 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 76 [04:24:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:24:12]wFMCommunicate OK [04:24:12]SAM_PROTO_GetShiftState done [04:24:12]FM_GetShiftState done [04:24:12]req_shift_opened done [04:24:12]requested_item shift.open_date is exist - process it [04:24:12]req_shift_open_date [04:24:12]req_shift_open_date done [04:24:12]produce_requested_data done [04:24:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188019,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:24:12]process_action_free close_receipt [04:24:12]json_value_free [04:24:12]json_value_free done [04:24:12]process_json_proto returns [04:24:12]Send response to host [04:24:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188019,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:24:12]free response buf [04:24:12]execute_script done [04:24:12]execute_script returns [04:24:12]free content buf [04:24:12]Sock 8.Close socket [04:24:12]Sock 8.Thread stoped [04:24:15]OFD Sender: No OFD packet to send [04:24:20]OFD Sender: No OFD packet to send [04:24:25]OFD Sender: No OFD packet to send [04:24:30]OFD Sender: No OFD packet to send [04:24:31]accept exits with 9 [04:24:31]New connection [04:24:31]New thread 3067198820 created [04:24:31]Thread 3067055460 joined [04:24:31]Waiting for new connection... [04:24:31] Sock 9.Parse request [04:24:31]Sock 9.Check first char [04:24:31]Sock 9.First char is OK [04:24:31]request: POST /json_proto HTTP/1.0 [04:24:31]Method: POST [04:24:31]URL: /json_proto [04:24:31]Method is POST - this is cgi request [04:24:31]url: /json_proto [04:24:31]query_string will be loaded in cgi processing [04:24:31]execute_cgi json_proto POST (null) [04:24:31]execute_cgi path=json_proto method=POST [04:24:31]POST find Content-Length [04:24:31]Host: 172.17.42.131:8080 [04:24:31]Content-Length: 688 [04:24:31]Content-Type: application/json [04:24:31] [04:24:31]POST finish read [04:24:31]Found Content-Length = 688 [04:24:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:24:31]execute_script... [04:24: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)210071", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:24:31]POST & json_proto [04:24:31]process_json_proto [04:24:31]json parsed OK: [04:24:31]protocol is kg_v1.0 [04:24:31]action value=close_receipt [04:24:31]process_action close_receipt [04:24:31]cmd_close_receipt [04:24:31]MH_GetDate [04:24:31]Write to MH i2c: F0 00 00 F3 12 F4 [04:24:31]Write i2c OK [04:24:31]MH_I2C_Read... [04:24:31]Read from MH i2c: F0 [04:24:31]MH_I2C_Read... [04:24:31]Read from MH i2c: F0 09 00 [04:24:31]MH_I2C_Read... [04:24:31]Read from MH i2c: F0 09 00 F3 12 00 00 29 17 67 A0 18 CA 66 8C [04:24:31]GetLastDocTimeStamp 1729571049 [04:24:31]current date 1729571072 [04:24:31]FM_GetShiftState [04:24:31]SAM_PROTO_GetShiftState [04:24:31]wFMCommunicate request_size=4 [04:24:31]MH_SAM_APDU [04:24:31]CAPDU: 80 13 01 00 [04:24:31]Write to MH i2c: E2 08 00 F4 12 80 13 01 00 00 00 00 00 83 [04:24:31]Write i2c OK [04:24:31]MH_I2C_Read... [04:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:31]Read from MH i2c: E2 [04:24:31]MH_I2C_Read... [04:24:31]Read from MH i2c: E2 0E 00 [04:24:31]MH_I2C_Read... [04:24:31]Read from MH i2c: E2 0E 00 F4 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 78 [04:24:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:24:31]wFMCommunicate OK [04:24:31]SAM_PROTO_GetShiftState done [04:24:31]FM_GetShiftState done [04:24:31]opened in 1729556094 [04:24:31]opened+sec_in_day 1729642494 [04:24:31]quantity*price = 100051 [04:24:31]sum+1 = 100052 [04:24:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 49 22.10.2024 04:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188020 ФПД: 268076914099450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188020&fm=268076914099450&tin=02508201610067®Number=0000000000100030&sum=100000 [04:24:32]StoreToDocumentArchive [04:24:32]shift 461 fd 188020 [04:24:32]save to /storage/0461/doc_00188020 [04:24:32]save last doc name /storage/0461/doc_00188020 to /storage/kkm_last_doc_name [04:24:32]save OK [04:24:32]Clear old archive folders... [04:24:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:24:32]tlvbuf is 01BC2960 [04:24:32]SAM_PROTO_ClearQueue [04:24:32]wFMCommunicate request_size=4 [04:24:32]MH_SAM_APDU [04:24:32]CAPDU: 80 09 00 00 [04:24:32]Write to MH i2c: E2 08 00 01 13 80 09 00 00 00 00 00 00 86 [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:24:32]Read from MH i2c: E2 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 01 13 00 90 00 88 [04:24:32]RAPDU: 90 00 [04:24:32]wFMCommunicate OK [04:24:32]SAM_PROTO_ClearQueue done [04:24:32]KKMCreateOFDPacket [04:24:32]OFDProtocolAddRootSTLVToBuf [04:24:32]FM_MakeSignedData [04:24:32]FM_MakeSignedData [04:24:32]SAM_PROTO_SignData [04:24:32]wFMCommunicate request_size=4 [04:24:32]MH_SAM_APDU [04:24:32]CAPDU: 80 0D 01 02 [04:24:32]Write to MH i2c: E2 08 00 02 13 80 0D 01 02 00 00 00 00 8E [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:24:32]Read from MH i2c: E2 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 02 13 00 90 00 89 [04:24:32]RAPDU: 90 00 [04:24:32]wFMCommunicate OK [04:24:32]wFMCommunicate request_size=255 [04:24:32]MH_SAM_APDU [04:24:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 31 00 00 00 F4 03 04 00 00 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DE 02 [04:24:32]Write to MH i2c: E2 02 01 03 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 31 00 00 00 F4 03 04 00 00 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DE 02 00 00 E5 [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:32]Read from MH i2c: E2 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 03 13 00 90 00 8A [04:24:32]RAPDU: 90 00 [04:24:32]wFMCommunicate OK [04:24:32]wFMCommunicate request_size=16 [04:24:32]MH_SAM_APDU [04:24:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F3 D0 85 3C C4 FA [04:24:32]Write to MH i2c: E2 13 00 04 13 80 0D 02 02 0B 00 00 35 04 06 00 F3 D0 85 3C C4 FA 00 00 28 [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:24:32]Read from MH i2c: E2 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 03 00 04 13 00 90 00 8B [04:24:32]RAPDU: 90 00 [04:24:32]wFMCommunicate OK [04:24:32]wFMCommunicate request_size=4 [04:24:32]MH_SAM_APDU [04:24:32]CAPDU: 80 0D 03 02 [04:24:32]Write to MH i2c: E2 08 00 05 13 80 0D 03 02 00 00 00 00 93 [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:24:32]Read from MH i2c: E2 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 0B 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 0B 00 05 13 00 16 E5 39 10 BA D0 AD 83 90 00 92 [04:24:32]RAPDU: 16 E5 39 10 BA D0 AD 83 90 00 [04:24:32]wFMCommunicate OK [04:24:32]SAM_PROTO_SignData done [04:24:32]FM_MakeSignedData done [04:24:32]CreateOFDProtocolMessage [04:24:32]wFMCommunicate request_size=4 [04:24:32]MH_SAM_APDU [04:24:32]CAPDU: 80 11 00 00 [04:24:32]Write to MH i2c: E2 08 00 06 13 80 11 00 00 00 00 00 00 93 [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:32]Read from MH i2c: E2 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 17 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: E2 17 00 06 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [04:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:24:32]wFMCommunicate OK [04:24:32]CreateOFDProtocolMessage done [04:24:32]OFDSenderStorePacket 188020 [04:24:32]StoreOFDPacket docnum=188020 [04:24:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B4 12 0D 01 BF 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 31 00 00 00 F4 03 04 00 00 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DE 02 00 35 04 06 00 F3 D0 85 3C C4 FA 16 E5 39 10 BA D0 AD 83 [04:24:32]CheckFolder [04:24:32]dirname=/storage/ofd_packets [04:24:32]CheckFolder done [04:24:32]ProducePacketName [04:24:32]name=ofd_packets/00188020 [04:24:32]NVStorageSaveData ofd_packets/00188020 [04:24:32]File name is /storage/ofd_packets/00188020 [04:24:32]Write 307 bytes [04:24:32]NVStorageSaveData done [04:24:32]OFDSenderStorePacket done [04:24:32]KKMCreateOFDPacket done [04:24:32]NVStorageSaveData kkm_last_timestamp [04:24:32]File name is /storage/kkm_last_timestamp [04:24:32]Write 4 bytes [04:24:32]NVStorageSaveData done [04:24:32]ExternCall_PrintAddStr [04:24:32]wPrintStart [04:24:32]Write to MH i2c: 01 00 00 07 13 1A [04:24:32]Write i2c OK [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: 01 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: 01 07 00 [04:24:32]MH_I2C_Read... [04:24:32]Read from MH i2c: 01 07 00 07 13 00 00 00 00 00 FF 0F 2F [04:24:32]RasterBufferAndPrint [04:24:32]line Счет N : (1)210071 [04:24:32]line ИНН: 02508201610067 [04:24:32]line Контрольно-Кассовый Чек [04:24:32]line ПРОДАЖА [04:24:32]line ТРК (МРК, ГНК) : 11 [04:24:32]line Товар: 2710194210 [04:24:32]line D-ENERGY ДТ-К-5 [04:24:32]line 12.960 * 77.20 [04:24:32]line = 1000.51 [04:24:32]line НДС 12% НСП 1% [04:24:32]line > о реализуемом товаре [04:24:32]line ОКРУГЛЕНИЕ: -0.51 [04:24:32]line ИТОГО: 1000.00 [04:24:32]line Внесено: 1000.00 [04:24:32]line СДАЧА: 0.00 [04:24:32]line НСП 1% : 8.85 [04:24:32]line НДС 12% : 106.25 [04:24:32]line Наличными: 1000.00 [04:24:32]line Безнал.: 0.00 [04:24:32]line Место: АЗС № 86 "Партнер Нефть" [04:24:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:24:32]line СНО: Общий режим [04:24:32]line Чек 49 22.10.2024 04:24 [04:24:32]line Смена: 461 ФФД: 1.0 [04:24:32]line ЗНМ: 0300000155 [04:24:32]line РНМ: 0000000000100030 [04:24:32]line Версия ККМ: 001 [04:24:32]line ФМ: 0000000000965340 [04:24:32]line ФД: 188020 [04:24:32]line ФПД: 268076914099450 [04:24:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188020&fm=268076914099450&tin=02508201610067®Number=0000000000100030&sum=100000 [04:24:32]written 0, free lines is 4095 [04:24:32]OFD Sender: Processing packet 188020 [packets to send 1062, broken 1061] [04:24:32]ProducePacketName [04:24:32]name=ofd_packets/00188020 [04:24:32]OFD Sender: To server: pG, [04:24:32]CommunicateWithHost lk.salyk.kg:30040 [04:24:32]ConnectInit lk.salyk.kg [04:24:33]Connected sock=8 [04:24:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B4 12 0D 01 BF 37 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 31 00 00 00 F4 03 04 00 00 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DE 02 00 35 04 06 00 F3 D0 85 3C C4 FA 16 E5 39 10 BA D0 AD 83 [04:24:33]Write to MH i2c: 01 00 00 32 13 45 [04:24:33]Write i2c OK [04:24:33]MH_I2C_Read... [04:24:33]Read from MH i2c: 01 [04:24:33]MH_I2C_Read... [04:24:33]Read from MH i2c: 01 07 00 [04:24:33]MH_I2C_Read... [04:24:33]Read from MH i2c: 01 07 00 32 13 00 00 00 00 00 5A 0C B2 [04:24:33]RasterBufferAndPrint [04:24:33]line [04:24:33]line [04:24:33]line [04:24:33]line [04:24:33]line [04:24:33]written 0, free lines is 3166 [04:24:33]MH_Cut [04:24:33]Write to MH i2c: D1 01 00 39 13 01 1E [04:24:33]Write i2c OK [04:24:33]MH_I2C_Read... [04:24:33]Read from MH i2c: D1 [04:24:33]MH_I2C_Read... [04:24:33]Read from MH i2c: D1 01 00 [04:24:33]MH_I2C_Read... [04:24:33]Read from MH i2c: D1 01 00 39 13 00 1D [04:24:33]Write to MH i2c: 01 00 00 3A 13 4D [04:24:33]Write i2c OK [04:24:33]MH_I2C_Read... [04:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 81 47 00 AD 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DE 02 00 F4 03 04 00 EE D2 16 67 B6 04 01 00 00 2B 70 75 5F B1 4E 37 53 [04:24:33]CommunicateWithHost err = 0 [04:24:33]CheckOFDResponse [04:24:33]1017 (14) - 77093643461234 [04:24:33]1041 (16) - 0000000000965340 [04:24:33]1040 (4) - 188020 [04:24:33]1012 (4) - 21.10.2024 22:17 [04:24:33]1206 (1) - 0 [04:24:33]OFD Sender: Remove packet 188020 [04:24:33]ProducePacketName [04:24:33]name=ofd_packets/00188020 [04:24:33]NVStorageDeleteData [04:24:33]OFD Sender: No OFD packet to send [04:24:34]*** Cut start [04:24:34]*** Partial cut [04:24:34]*** CUTSNS_PIN = 1 [04:24:34]*** CUTSNS_PIN = 0 [04:24:34]*** Brake cut motor [04:24:35]Read from MH i2c: 01 [04:24:35]MH_I2C_Read... [04:24:35]*** Stop cut motor [04:24:35]*** Cut end [04:24:35]Read from MH i2c: 01 07 00 [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: 01 07 00 3A 13 00 00 00 00 00 FF 0F 62 [04:24:35]process_action close_receipt done [04:24:35]requested_data is exist [04:24:35]produce_requested_data [04:24:35]requested_item fm.sn is exist - process it [04:24:35]wFMCommunicate request_size=4 [04:24:35]MH_SAM_APDU [04:24:35]CAPDU: 80 11 00 00 [04:24:35]Write to MH i2c: E2 08 00 3B 13 80 11 00 00 00 00 00 00 C8 [04:24:35]Write i2c OK [04:24:35]MH_I2C_Read... [04:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:24:35]Read from MH i2c: E2 [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: E2 17 00 [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: E2 17 00 3B 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [04:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:24:35]wFMCommunicate OK [04:24:35]requested_item fd.num is exist - process it [04:24:35]SAM_PROTO_GetFieldsCounters [04:24:35]wFMCommunicate request_size=4 [04:24:35]MH_SAM_APDU [04:24:35]CAPDU: 80 13 00 00 [04:24:35]Write to MH i2c: E2 08 00 3C 13 80 13 00 00 00 00 00 00 CB [04:24:35]Write i2c OK [04:24:35]MH_I2C_Read... [04:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:24:35]Read from MH i2c: E2 [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: E2 62 00 [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: E2 62 00 3C 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 DE 02 00 0E 04 04 00 CD 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 87 [04:24:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 DE 02 00 0E 04 04 00 CD 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 [04:24:35]wFMCommunicate OK [04:24:35]SAM_PROTO_GetFieldsCounters done [04:24:35]requested_item shift.num is exist - process it [04:24:35]requested_item shift.opened is exist - process it [04:24:35]req_shift_opened [04:24:35]FM_GetShiftState [04:24:35]SAM_PROTO_GetShiftState [04:24:35]wFMCommunicate request_size=4 [04:24:35]MH_SAM_APDU [04:24:35]CAPDU: 80 13 01 00 [04:24:35]Write to MH i2c: E2 08 00 3D 13 80 13 01 00 00 00 00 00 CD [04:24:35]Write i2c OK [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: E2 [04:24:35]MH_I2C_Read... [04:24:35]Read from MH i2c: E2 0E 00 [04:24:35]MH_I2C_Read... [04:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:24:35]Read from MH i2c: E2 0E 00 3D 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C2 [04:24:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:24:35]wFMCommunicate OK [04:24:35]SAM_PROTO_GetShiftState done [04:24:35]FM_GetShiftState done [04:24:35]req_shift_opened done [04:24:35]requested_item shift.open_date is exist - process it [04:24:35]req_shift_open_date [04:24:35]req_shift_open_date done [04:24:35]produce_requested_data done [04:24:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188020,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:24:35]process_action_free close_receipt [04:24:35]json_value_free [04:24:35]json_value_free done [04:24:35]process_json_proto returns [04:24:35]Send response to host [04:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188020,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:24:35]free response buf [04:24:35]execute_script done [04:24:35]execute_script returns [04:24:35]free content buf [04:24:35]Sock 9.Close socket [04:24:35]Sock 9.Thread stoped [04:24:38]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:24]OFD Sender: No OFD packet to send [04:26:29]OFD Sender: No OFD packet to send [04:26:34]OFD Sender: No OFD packet to send [04:26:39]OFD Sender: No OFD packet to send [04:26:44]OFD Sender: No OFD packet to send [04:26:49]OFD Sender: No OFD packet to send [04:26:54]OFD Sender: No OFD packet to send [04:26:59]accept exits with 10 [04:26:59]New connection [04:26:59]New thread 3067055460 created [04:26:59]Thread 3067198820 joined [04:26:59]Waiting for new connection... [04:26:59] Sock 10.Parse request [04:26:59]Sock 10.Check first char [04:26:59]Sock 10.First char is OK [04:26:59]request: POST /json_proto HTTP/1.0 [04:26:59]Method: POST [04:26:59]URL: /json_proto [04:26:59]Method is POST - this is cgi request [04:26:59]url: /json_proto [04:26:59]query_string will be loaded in cgi processing [04:26:59]execute_cgi json_proto POST (null) [04:26:59]execute_cgi path=json_proto method=POST [04:26:59]POST find Content-Length [04:26:59]Host: 172.17.42.131:8080 [04:26:59]Content-Length: 688 [04:26:59]Content-Type: application/json [04:26:59] [04:26:59]POST finish read [04:26:59]Found Content-Length = 688 [04:26:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:26:59]execute_script... [04: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)210072", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:26:59]POST & json_proto [04:26:59]process_json_proto [04:26:59]json parsed OK: [04:26:59]protocol is kg_v1.0 [04:26:59]action value=close_receipt [04:26:59]process_action close_receipt [04:26:59]cmd_close_receipt [04:26:59]MH_GetDate [04:26:59]Write to MH i2c: F0 00 00 3E 13 40 [04:26:59]Write i2c OK [04:26:59]MH_I2C_Read... [04:26:59]Read from MH i2c: F0 [04:26:59]MH_I2C_Read... [04:26:59]Read from MH i2c: F0 09 00 [04:26:59]MH_I2C_Read... [04:26:59]Read from MH i2c: F0 09 00 3E 13 00 94 29 17 67 A0 18 CA 66 6C [04:26:59]GetLastDocTimeStamp 1729571072 [04:26:59]current date 1729571220 [04:26:59]FM_GetShiftState [04:26:59]SAM_PROTO_GetShiftState [04:26:59]wFMCommunicate request_size=4 [04:26:59]MH_SAM_APDU [04:26:59]CAPDU: 80 13 01 00 [04:26:59]Write to MH i2c: E2 08 00 3F 13 80 13 01 00 00 00 00 00 CF [04:26:59]Write i2c OK [04:26:59]MH_I2C_Read... [04:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:26:59]Read from MH i2c: E2 [04:26:59]MH_I2C_Read... [04:26:59]Read from MH i2c: E2 0E 00 [04:26:59]MH_I2C_Read... [04:26:59]Read from MH i2c: E2 0E 00 3F 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C4 [04:26:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:26:59]wFMCommunicate OK [04:26:59]SAM_PROTO_GetShiftState done [04:26:59]FM_GetShiftState done [04:26:59]opened in 1729556094 [04:26:59]opened+sec_in_day 1729642494 [04:26:59]quantity*price = 250050 [04:26:59]sum+1 = 250052 [04:26:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 50 22.10.2024 04:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188021 ФПД: 36025698387032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042700&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188021&fm=36025698387032&tin=02508201610067®Number=0000000000100030&sum=250000 [04:27:00]StoreToDocumentArchive [04:27:00]shift 461 fd 188021 [04:27:00]save to /storage/0461/doc_00188021 [04:27:00]save last doc name /storage/0461/doc_00188021 to /storage/kkm_last_doc_name [04:27:00]save OK [04:27:00]Clear old archive folders... [04:27:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:27:00]tlvbuf is 01B9DB60 [04:27:00]SAM_PROTO_ClearQueue [04:27:00]wFMCommunicate request_size=4 [04:27:00]MH_SAM_APDU [04:27:00]CAPDU: 80 09 00 00 [04:27:00]Write to MH i2c: E2 08 00 4C 13 80 09 00 00 00 00 00 00 D1 [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:27:00]Read from MH i2c: E2 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 4C 13 00 90 00 D3 [04:27:00]RAPDU: 90 00 [04:27:00]wFMCommunicate OK [04:27:00]SAM_PROTO_ClearQueue done [04:27:00]KKMCreateOFDPacket [04:27:00]OFDProtocolAddRootSTLVToBuf [04:27:00]FM_MakeSignedData [04:27:00]FM_MakeSignedData [04:27:00]SAM_PROTO_SignData [04:27:00]wFMCommunicate request_size=4 [04:27:00]MH_SAM_APDU [04:27:00]CAPDU: 80 0D 01 02 [04:27:00]Write to MH i2c: E2 08 00 4D 13 80 0D 01 02 00 00 00 00 D9 [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:27:00]Read from MH i2c: E2 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 4D 13 00 90 00 D4 [04:27:00]RAPDU: 90 00 [04:27:00]wFMCommunicate OK [04:27:00]wFMCommunicate request_size=255 [04:27:00]MH_SAM_APDU [04:27:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 94 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DE 02 [04:27:00]Write to MH i2c: E2 02 01 4E 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 94 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DE 02 00 00 58 [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:27:00]Read from MH i2c: E2 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 4E 13 00 90 00 D5 [04:27:00]RAPDU: 90 00 [04:27:00]wFMCommunicate OK [04:27:00]wFMCommunicate request_size=16 [04:27:00]MH_SAM_APDU [04:27:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 20 C3 E2 F4 84 58 [04:27:00]Write to MH i2c: E2 13 00 4F 13 80 0D 02 02 0B 00 00 35 04 06 00 20 C3 E2 F4 84 58 00 00 C6 [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:27:00]Read from MH i2c: E2 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 03 00 4F 13 00 90 00 D6 [04:27:00]RAPDU: 90 00 [04:27:00]wFMCommunicate OK [04:27:00]wFMCommunicate request_size=4 [04:27:00]MH_SAM_APDU [04:27:00]CAPDU: 80 0D 03 02 [04:27:00]Write to MH i2c: E2 08 00 50 13 80 0D 03 02 00 00 00 00 DE [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:27:00]Read from MH i2c: E2 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 0B 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 0B 00 50 13 00 CC 48 BA B3 A8 26 CE 3A 90 00 36 [04:27:00]RAPDU: CC 48 BA B3 A8 26 CE 3A 90 00 [04:27:00]wFMCommunicate OK [04:27:00]SAM_PROTO_SignData done [04:27:00]FM_MakeSignedData done [04:27:00]CreateOFDProtocolMessage [04:27:00]wFMCommunicate request_size=4 [04:27:00]MH_SAM_APDU [04:27:00]CAPDU: 80 11 00 00 [04:27:00]Write to MH i2c: E2 08 00 51 13 80 11 00 00 00 00 00 00 DE [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:27:00]Read from MH i2c: E2 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 17 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: E2 17 00 51 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [04:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:27:00]wFMCommunicate OK [04:27:00]CreateOFDProtocolMessage done [04:27:00]OFDSenderStorePacket 188021 [04:27:00]StoreOFDPacket docnum=188021 [04:27:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 80 B0 0D 01 18 3D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 94 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DE 02 00 35 04 06 00 20 C3 E2 F4 84 58 CC 48 BA B3 A8 26 CE 3A [04:27:00]CheckFolder [04:27:00]dirname=/storage/ofd_packets [04:27:00]CheckFolder done [04:27:00]ProducePacketName [04:27:00]name=ofd_packets/00188021 [04:27:00]NVStorageSaveData ofd_packets/00188021 [04:27:00]File name is /storage/ofd_packets/00188021 [04:27:00]Write 307 bytes [04:27:00]NVStorageSaveData done [04:27:00]OFDSenderStorePacket done [04:27:00]KKMCreateOFDPacket done [04:27:00]NVStorageSaveData kkm_last_timestamp [04:27:00]File name is /storage/kkm_last_timestamp [04:27:00]Write 4 bytes [04:27:00]NVStorageSaveData done [04:27:00]ExternCall_PrintAddStr [04:27:00]wPrintStart [04:27:00]Write to MH i2c: 01 00 00 52 13 65 [04:27:00]Write i2c OK [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: 01 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: 01 07 00 [04:27:00]MH_I2C_Read... [04:27:00]Read from MH i2c: 01 07 00 52 13 00 00 00 00 00 FF 0F 7A [04:27:00]RasterBufferAndPrint [04:27:00]line Счет N : (1)210072 [04:27:00]line ИНН: 02508201610067 [04:27:00]line Контрольно-Кассовый Чек [04:27:00]line ПРОДАЖА [04:27:00]line ТРК (МРК, ГНК) : 31 [04:27:00]line Товар: 2710194210 [04:27:00]line D-ENERGY ДТ-К-5 [04:27:00]line 32.390 * 77.20 [04:27:00]line = 2500.51 [04:27:00]line НДС 12% НСП 1% [04:27:00]line > о реализуемом товаре [04:27:00]line ОКРУГЛЕНИЕ: -0.51 [04:27:00]line ИТОГО: 2500.00 [04:27:00]line Внесено: 2500.00 [04:27:00]line СДАЧА: 0.00 [04:27:00]line НСП 1% : 22.13 [04:27:00]line НДС 12% : 265.54 [04:27:00]line Наличными: 2500.00 [04:27:00]line Безнал.: 0.00 [04:27:00]line Место: АЗС № 86 "Партнер Нефть" [04:27:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:27:00]line СНО: Общий режим [04:27:00]line Чек 50 22.10.2024 04:27 [04:27:00]line Смена: 461 ФФД: 1.0 [04:27:00]line ЗНМ: 0300000155 [04:27:00]line РНМ: 0000000000100030 [04:27:00]line Версия ККМ: 001 [04:27:00]line ФМ: 0000000000965340 [04:27:00]line ФД: 188021 [04:27:00]line ФПД: 36025698387032 [04:27:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T042700&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188021&fm=36025698387032&tin=02508201610067®Number=0000000000100030&sum=250000 [04:27:00]written 0, free lines is 4095 [04:27:00]OFD Sender: Processing packet 188021 [packets to send 1062, broken 1061] [04:27:00]ProducePacketName [04:27:00]name=ofd_packets/00188021 [04:27:00]OFD Sender: To server: pG, [04:27:00]CommunicateWithHost lk.salyk.kg:30040 [04:27:00]ConnectInit lk.salyk.kg [04:27:01]Connected sock=8 [04:27:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 80 B0 0D 01 18 3D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 00 00 00 F4 03 04 00 94 29 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DE 02 00 35 04 06 00 20 C3 E2 F4 84 58 CC 48 BA B3 A8 26 CE 3A [04:27:01]Write to MH i2c: 01 00 00 7D 13 90 [04:27:01]Write i2c OK [04:27:01]MH_I2C_Read... [04:27:01]Read from MH i2c: 01 [04:27:01]MH_I2C_Read... [04:27:01]Read from MH i2c: 01 07 00 [04:27:01]MH_I2C_Read... [04:27:01]Read from MH i2c: 01 07 00 7D 13 00 00 00 00 00 5C 0C FF [04:27:01]RasterBufferAndPrint [04:27:01]line [04:27:01]line [04:27:01]line [04:27:01]line [04:27:01]line [04:27:01]written 0, free lines is 3167 [04:27:01]MH_Cut [04:27:01]Write to MH i2c: D1 01 00 84 13 01 69 [04:27:01]Write i2c OK [04:27:01]MH_I2C_Read... [04:27:01]Read from MH i2c: D1 [04:27:01]MH_I2C_Read... [04:27:01]Read from MH i2c: D1 01 00 [04:27:01]MH_I2C_Read... [04:27:01]Read from MH i2c: D1 01 00 84 13 00 68 [04:27:01]Write to MH i2c: 01 00 00 85 13 98 [04:27:01]Write i2c OK [04:27:01]MH_I2C_Read... [04:27:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 20 87 47 00 7A 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 39 36 35 33 34 30 10 04 04 00 75 DE 02 00 F4 03 04 00 82 D3 16 67 B6 04 01 00 00 DC BA 28 7E 4F 4E D3 9B [04:27:01]CommunicateWithHost err = 0 [04:27:01]CheckOFDResponse [04:27:01]1017 (14) - 77093643461234 [04:27:01]1041 (16) - 0000000000965340 [04:27:01]1040 (4) - 188021 [04:27:01]1012 (4) - 21.10.2024 22:19 [04:27:01]1206 (1) - 0 [04:27:01]OFD Sender: Remove packet 188021 [04:27:01]ProducePacketName [04:27:01]name=ofd_packets/00188021 [04:27:01]NVStorageDeleteData [04:27:01]OFD Sender: No OFD packet to send [04:27:02]*** Cut start [04:27:02]*** Partial cut [04:27:02]*** CUTSNS_PIN = 1 [04:27:02]*** CUTSNS_PIN = 0 [04:27:02]*** Brake cut motor [04:27:03]Read from MH i2c: 01 [04:27:03]MH_I2C_Read... [04:27:03]*** Stop cut motor [04:27:03]*** Cut end [04:27:03]Read from MH i2c: 01 07 00 [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: 01 07 00 85 13 00 00 00 00 00 FF 0F AD [04:27:03]process_action close_receipt done [04:27:03]requested_data is exist [04:27:03]produce_requested_data [04:27:03]requested_item fm.sn is exist - process it [04:27:03]wFMCommunicate request_size=4 [04:27:03]MH_SAM_APDU [04:27:03]CAPDU: 80 11 00 00 [04:27:03]Write to MH i2c: E2 08 00 86 13 80 11 00 00 00 00 00 00 13 [04:27:03]Write i2c OK [04:27:03]MH_I2C_Read... [04:27:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:27:03]Read from MH i2c: E2 [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: E2 17 00 [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: E2 17 00 86 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [04:27:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:27:03]wFMCommunicate OK [04:27:03]requested_item fd.num is exist - process it [04:27:03]SAM_PROTO_GetFieldsCounters [04:27:03]wFMCommunicate request_size=4 [04:27:03]MH_SAM_APDU [04:27:03]CAPDU: 80 13 00 00 [04:27:03]Write to MH i2c: E2 08 00 87 13 80 13 00 00 00 00 00 00 16 [04:27:03]Write i2c OK [04:27:03]MH_I2C_Read... [04:27:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:27:03]Read from MH i2c: E2 [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: E2 62 00 [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: E2 62 00 87 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 DE 02 00 0E 04 04 00 CD 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 D6 [04:27:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 DE 02 00 0E 04 04 00 CD 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 [04:27:03]wFMCommunicate OK [04:27:03]SAM_PROTO_GetFieldsCounters done [04:27:03]requested_item shift.num is exist - process it [04:27:03]requested_item shift.opened is exist - process it [04:27:03]req_shift_opened [04:27:03]FM_GetShiftState [04:27:03]SAM_PROTO_GetShiftState [04:27:03]wFMCommunicate request_size=4 [04:27:03]MH_SAM_APDU [04:27:03]CAPDU: 80 13 01 00 [04:27:03]Write to MH i2c: E2 08 00 88 13 80 13 01 00 00 00 00 00 18 [04:27:03]Write i2c OK [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: E2 [04:27:03]MH_I2C_Read... [04:27:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:27:03]Read from MH i2c: E2 0E 00 [04:27:03]MH_I2C_Read... [04:27:03]Read from MH i2c: E2 0E 00 88 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0D [04:27:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:27:03]wFMCommunicate OK [04:27:03]SAM_PROTO_GetShiftState done [04:27:03]FM_GetShiftState done [04:27:03]req_shift_opened done [04:27:03]requested_item shift.open_date is exist - process it [04:27:03]req_shift_open_date [04:27:03]req_shift_open_date done [04:27:03]produce_requested_data done [04:27:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188021,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:27:03]process_action_free close_receipt [04:27:03]json_value_free [04:27:03]json_value_free done [04:27:03]process_json_proto returns [04:27:03]Send response to host [04:27:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188021,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:27:03]free response buf [04:27:03]execute_script done [04:27:03]execute_script returns [04:27:03]free content buf [04:27:03]Sock 10.Close socket [04:27:03]Sock 10.Thread stoped [04:27:06]OFD Sender: No OFD packet to send [04:27:11]OFD Sender: No OFD packet to send [04:27:17]OFD Sender: No OFD packet to send [04:27:22]OFD Sender: No OFD packet to send [04:27:27]OFD Sender: No OFD packet to send [04:27:32]OFD Sender: No OFD packet to send [04:27:37]OFD Sender: No OFD packet to send [04:27:42]OFD Sender: No OFD packet to send [04:27:47]OFD Sender: No OFD packet to send [04:27:52]OFD Sender: No OFD packet to send [04:27:57]OFD Sender: No OFD packet to send [04:28:02]OFD Sender: No OFD packet to send [04:28:07]OFD Sender: No OFD packet to send [04:28:12]OFD Sender: No OFD packet to send [04:28:17]OFD Sender: No OFD packet to send [04:28:22]OFD Sender: No OFD packet to send [04:28:27]OFD Sender: No OFD packet to send [04:28:32]OFD Sender: No OFD packet to send [04:28:37]OFD Sender: No OFD packet to send [04:28:42]OFD Sender: No OFD packet to send [04:28:47]OFD Sender: No OFD packet to send [04:28:52]OFD Sender: No OFD packet to send [04:28:57]OFD Sender: No OFD packet to send [04:29:02]OFD Sender: No OFD packet to send [04:29:07]OFD Sender: No OFD packet to send [04:29:12]OFD Sender: No OFD packet to send [04:29:17]OFD Sender: No OFD packet to send [04:29:22]OFD Sender: No OFD packet to send [04:29:27]OFD Sender: No OFD packet to send [04:29:32]OFD Sender: No OFD packet to send [04:29:37]OFD Sender: No OFD packet to send [04:29:42]OFD Sender: No OFD packet to send [04:29:47]OFD Sender: No OFD packet to send [04:29:52]OFD Sender: No OFD packet to send [04:29:57]OFD Sender: No OFD packet to send [04:30:02]OFD Sender: No OFD packet to send [04:30:07]OFD Sender: No OFD packet to send [04:30:12]OFD Sender: No OFD packet to send [04:30:17]OFD Sender: No OFD packet to send [04:30:22]OFD Sender: No OFD packet to send [04:30:27]OFD Sender: No OFD packet to send [04:30:32]OFD Sender: No OFD packet to send [04:30:37]OFD Sender: No OFD packet to send [04:30:42]OFD Sender: No OFD packet to send [04:30:47]OFD Sender: No OFD packet to send [04:30:52]OFD Sender: No OFD packet to send [04:30:57]OFD Sender: No OFD packet to send [04:31:03]OFD Sender: No OFD packet to send [04:31:08]OFD Sender: No OFD packet to send [04:31:13]OFD Sender: No OFD packet to send [04:31:18]OFD Sender: No OFD packet to send [04:31:23]OFD Sender: No OFD packet to send [04:31:28]OFD Sender: No OFD packet to send [04:31:33]OFD Sender: No OFD packet to send [04:31:38]OFD Sender: No OFD packet to send [04:31:43]OFD Sender: No OFD packet to send [04:31:48]OFD Sender: No OFD packet to send [04:31:53]OFD Sender: No OFD packet to send [04:31:58]OFD Sender: No OFD packet to send [04:32:03]OFD Sender: No OFD packet to send [04:32:08]OFD Sender: No OFD packet to send [04:32:13]OFD Sender: No OFD packet to send [04:32:18]OFD Sender: No OFD packet to send [04:32:23]OFD Sender: No OFD packet to send [04:32:28]OFD Sender: No OFD packet to send [04:32:33]OFD Sender: No OFD packet to send [04:32:38]OFD Sender: No OFD packet to send [04:32:43]OFD Sender: No OFD packet to send [04:32:48]OFD Sender: No OFD packet to send [04:32:53]OFD Sender: No OFD packet to send [04:32:58]OFD Sender: No OFD packet to send [04:33:03]OFD Sender: No OFD packet to send [04:33:08]OFD Sender: No OFD packet to send [04:33:13]OFD Sender: No OFD packet to send [04:33:18]OFD Sender: No OFD packet to send [04:33:23]OFD Sender: No OFD packet to send [04:33:28]OFD Sender: No OFD packet to send [04:33:33]OFD Sender: No OFD packet to send [04:33:38]OFD Sender: No OFD packet to send [04:33:43]OFD Sender: No OFD packet to send [04:33:48]OFD Sender: No OFD packet to send [04:33:53]OFD Sender: No OFD packet to send [04:33:58]OFD Sender: No OFD packet to send [04:34:03]OFD Sender: No OFD packet to send [04:34:08]OFD Sender: No OFD packet to send [04:34:13]OFD Sender: No OFD packet to send [04:34:18]OFD Sender: No OFD packet to send [04:34:23]OFD Sender: No OFD packet to send [04:34:28]OFD Sender: No OFD packet to send [04:34:33]OFD Sender: No OFD packet to send [04:34:37]accept exits with 9 [04:34:37]New connection [04:34:37]New thread 3067198820 created [04:34:37]Thread 3067055460 joined [04:34:37]Waiting for new connection... [04:34:37] Sock 9.Parse request [04:34:37]Sock 9.Check first char [04:34:37]Sock 9.First char is OK [04:34:37]request: POST /json_proto HTTP/1.0 [04:34:37]Method: POST [04:34:37]URL: /json_proto [04:34:37]Method is POST - this is cgi request [04:34:37]url: /json_proto [04:34:37]query_string will be loaded in cgi processing [04:34:37]execute_cgi json_proto POST (null) [04:34:37]execute_cgi path=json_proto method=POST [04:34:37]POST find Content-Length [04:34:37]Host: 172.17.42.131:8080 [04:34:37]Content-Length: 683 [04:34:37]Content-Type: application/json [04:34:37] [04:34:37]POST finish read [04:34:37]Found Content-Length = 683 [04:34:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:34:37]execute_script... [04:34:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210073", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:34:37]POST & json_proto [04:34:37]process_json_proto [04:34:37]json parsed OK: [04:34:37]protocol is kg_v1.0 [04:34:37]action value=close_receipt [04:34:37]process_action close_receipt [04:34:37]cmd_close_receipt [04:34:37]MH_GetDate [04:34:37]Write to MH i2c: F0 00 00 89 13 8B [04:34:37]Write i2c OK [04:34:37]MH_I2C_Read... [04:34:37]Read from MH i2c: F0 [04:34:37]MH_I2C_Read... [04:34:37]Read from MH i2c: F0 09 00 [04:34:37]MH_I2C_Read... [04:34:37]Read from MH i2c: F0 09 00 89 13 00 5F 2B 17 67 A0 18 CA 66 84 [04:34:37]GetLastDocTimeStamp 1729571220 [04:34:37]current date 1729571679 [04:34:37]FM_GetShiftState [04:34:37]SAM_PROTO_GetShiftState [04:34:37]wFMCommunicate request_size=4 [04:34:37]MH_SAM_APDU [04:34:37]CAPDU: 80 13 01 00 [04:34:37]Write to MH i2c: E2 08 00 8A 13 80 13 01 00 00 00 00 00 1A [04:34:37]Write i2c OK [04:34:37]MH_I2C_Read... [04:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:38]Read from MH i2c: E2 [04:34:38]MH_I2C_Read... [04:34:38]Read from MH i2c: E2 0E 00 [04:34:38]MH_I2C_Read... [04:34:38]Read from MH i2c: E2 0E 00 8A 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0F [04:34:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:34:38]wFMCommunicate OK [04:34:38]SAM_PROTO_GetShiftState done [04:34:38]FM_GetShiftState done [04:34:38]opened in 1729556094 [04:34:38]opened+sec_in_day 1729642494 [04:34:38]quantity*price = 50025 [04:34:38]sum+1 = 50027 [04:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 51 22.10.2024 04:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188022 ФПД: 91398232663181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T043439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188022&fm=91398232663181&tin=02508201610067®Number=0000000000100030&sum=50000 [04:34:39]StoreToDocumentArchive [04:34:39]shift 461 fd 188022 [04:34:39]save to /storage/0461/doc_00188022 [04:34:39]save last doc name /storage/0461/doc_00188022 to /storage/kkm_last_doc_name [04:34:39]save OK [04:34:39]Clear old archive folders... [04:34:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:34:39]tlvbuf is B6F94610 [04:34:39]SAM_PROTO_ClearQueue [04:34:39]wFMCommunicate request_size=4 [04:34:39]MH_SAM_APDU [04:34:39]CAPDU: 80 09 00 00 [04:34:39]Write to MH i2c: E2 08 00 97 13 80 09 00 00 00 00 00 00 1C [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:39]Read from MH i2c: E2 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 97 13 00 90 00 1E [04:34:39]RAPDU: 90 00 [04:34:39]wFMCommunicate OK [04:34:39]SAM_PROTO_ClearQueue done [04:34:39]KKMCreateOFDPacket [04:34:39]OFDProtocolAddRootSTLVToBuf [04:34:39]FM_MakeSignedData [04:34:39]FM_MakeSignedData [04:34:39]SAM_PROTO_SignData [04:34:39]wFMCommunicate request_size=4 [04:34:39]MH_SAM_APDU [04:34:39]CAPDU: 80 0D 01 02 [04:34:39]Write to MH i2c: E2 08 00 98 13 80 0D 01 02 00 00 00 00 24 [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:39]Read from MH i2c: E2 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 98 13 00 90 00 1F [04:34:39]RAPDU: 90 00 [04:34:39]wFMCommunicate OK [04:34:39]wFMCommunicate request_size=255 [04:34:39]MH_SAM_APDU [04:34:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 33 00 00 00 F4 03 04 00 5F 2B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DE 02 [04:34:39]Write to MH i2c: E2 02 01 99 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 33 00 00 00 F4 03 04 00 5F 2B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DE 02 00 00 90 [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:39]Read from MH i2c: E2 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 99 13 00 90 00 20 [04:34:39]RAPDU: 90 00 [04:34:39]wFMCommunicate OK [04:34:39]wFMCommunicate request_size=16 [04:34:39]MH_SAM_APDU [04:34:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 53 20 4F 30 E4 8D [04:34:39]Write to MH i2c: E2 13 00 9A 13 80 0D 02 02 0B 00 00 35 04 06 00 53 20 4F 30 E4 8D 00 00 DF [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:39]Read from MH i2c: E2 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 03 00 9A 13 00 90 00 21 [04:34:39]RAPDU: 90 00 [04:34:39]wFMCommunicate OK [04:34:39]wFMCommunicate request_size=4 [04:34:39]MH_SAM_APDU [04:34:39]CAPDU: 80 0D 03 02 [04:34:39]Write to MH i2c: E2 08 00 9B 13 80 0D 03 02 00 00 00 00 29 [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:39]Read from MH i2c: E2 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 0B 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 0B 00 9B 13 00 C1 79 9D 0D 8C D9 4B 26 90 00 E4 [04:34:39]RAPDU: C1 79 9D 0D 8C D9 4B 26 90 00 [04:34:39]wFMCommunicate OK [04:34:39]SAM_PROTO_SignData done [04:34:39]FM_MakeSignedData done [04:34:39]CreateOFDProtocolMessage [04:34:39]wFMCommunicate request_size=4 [04:34:39]MH_SAM_APDU [04:34:39]CAPDU: 80 11 00 00 [04:34:39]Write to MH i2c: E2 08 00 9C 13 80 11 00 00 00 00 00 00 29 [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:39]Read from MH i2c: E2 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 17 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: E2 17 00 9C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [04:34:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:34:39]wFMCommunicate OK [04:34:39]CreateOFDProtocolMessage done [04:34:39]OFDSenderStorePacket 188022 [04:34:39]StoreOFDPacket docnum=188022 [04:34:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 83 94 0D 01 BC 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 33 00 00 00 F4 03 04 00 5F 2B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DE 02 00 35 04 06 00 53 20 4F 30 E4 8D C1 79 9D 0D 8C D9 4B 26 [04:34:39]CheckFolder [04:34:39]dirname=/storage/ofd_packets [04:34:39]CheckFolder done [04:34:39]ProducePacketName [04:34:39]name=ofd_packets/00188022 [04:34:39]NVStorageSaveData ofd_packets/00188022 [04:34:39]File name is /storage/ofd_packets/00188022 [04:34:39]Write 307 bytes [04:34:39]NVStorageSaveData done [04:34:39]OFDSenderStorePacket done [04:34:39]KKMCreateOFDPacket done [04:34:39]NVStorageSaveData kkm_last_timestamp [04:34:39]File name is /storage/kkm_last_timestamp [04:34:39]Write 4 bytes [04:34:39]NVStorageSaveData done [04:34:39]ExternCall_PrintAddStr [04:34:39]wPrintStart [04:34:39]Write to MH i2c: 01 00 00 9D 13 B0 [04:34:39]Write i2c OK [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: 01 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: 01 07 00 [04:34:39]MH_I2C_Read... [04:34:39]Read from MH i2c: 01 07 00 9D 13 00 00 00 00 00 FF 0F C5 [04:34:39]RasterBufferAndPrint [04:34:39]line Счет N : (1)210073 [04:34:39]line ИНН: 02508201610067 [04:34:39]line Контрольно-Кассовый Чек [04:34:39]line ПРОДАЖА [04:34:39]line ТРК (МРК, ГНК) : 11 [04:34:39]line Товар: 2710194210 [04:34:39]line D-ENERGY ДТ-К-5 [04:34:39]line 6.480 * 77.20 [04:34:39]line = 500.26 [04:34:39]line НДС 12% НСП 1% [04:34:39]line > о реализуемом товаре [04:34:39]line ОКРУГЛЕНИЕ: -0.26 [04:34:39]line ИТОГО: 500.00 [04:34:39]line Внесено: 500.00 [04:34:39]line СДАЧА: 0.00 [04:34:39]line НСП 1% : 4.43 [04:34:39]line НДС 12% : 53.12 [04:34:39]line Наличными: 500.00 [04:34:39]line Безнал.: 0.00 [04:34:39]line Место: АЗС № 86 "Партнер Нефть" [04:34:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:34:39]line СНО: Общий режим [04:34:39]line Чек 51 22.10.2024 04:34 [04:34:39]line Смена: 461 ФФД: 1.0 [04:34:39]line ЗНМ: 0300000155 [04:34:39]line РНМ: 0000000000100030 [04:34:39]line Версия ККМ: 001 [04:34:39]line ФМ: 0000000000965340 [04:34:39]line ФД: 188022 [04:34:39]line ФПД: 91398232663181 [04:34:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T043439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188022&fm=91398232663181&tin=02508201610067®Number=0000000000100030&sum=50000 [04:34:39]written 0, free lines is 4095 [04:34:39]OFD Sender: Processing packet 188022 [packets to send 1062, broken 1061] [04:34:39]ProducePacketName [04:34:39]name=ofd_packets/00188022 [04:34:39]OFD Sender: To server: pG, [04:34:39]CommunicateWithHost lk.salyk.kg:30040 [04:34:39]ConnectInit lk.salyk.kg [04:34:40]Connected sock=10 [04:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 83 94 0D 01 BC 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 33 00 00 00 F4 03 04 00 5F 2B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DE 02 00 35 04 06 00 53 20 4F 30 E4 8D C1 79 9D 0D 8C D9 4B 26 [04:34:40]Write to MH i2c: 01 00 00 C8 13 DB [04:34:40]Write i2c OK [04:34:40]MH_I2C_Read... [04:34:40]Read from MH i2c: 01 [04:34:40]MH_I2C_Read... [04:34:40]Read from MH i2c: 01 07 00 [04:34:40]MH_I2C_Read... [04:34:40]Read from MH i2c: 01 07 00 C8 13 00 00 00 00 00 57 0C 45 [04:34:40]RasterBufferAndPrint [04:34:40]line [04:34:40]line [04:34:40]line [04:34:40]line [04:34:40]line [04:34:40]written 0, free lines is 3162 [04:34:40]MH_Cut [04:34:40]Write to MH i2c: D1 01 00 CF 13 01 B4 [04:34:40]Write i2c OK [04:34:40]MH_I2C_Read... [04:34:40]Read from MH i2c: D1 [04:34:40]MH_I2C_Read... [04:34:40]Read from MH i2c: D1 01 00 [04:34:40]MH_I2C_Read... [04:34:40]Read from MH i2c: D1 01 00 CF 13 00 B3 [04:34:40]Write to MH i2c: 01 00 00 D0 13 E3 [04:34:40]Write i2c OK [04:34:40]MH_I2C_Read... [04:34:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 FB 47 00 20 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DE 02 00 F4 03 04 00 4D D5 16 67 B6 04 01 00 00 E1 5E 50 09 A1 7F DB CC [04:34:40]CommunicateWithHost err = 0 [04:34:40]CheckOFDResponse [04:34:40]1017 (14) - 77093643461234 [04:34:40]1041 (16) - 0000000000965340 [04:34:40]1040 (4) - 188022 [04:34:40]1012 (4) - 21.10.2024 22:27 [04:34:40]1206 (1) - 0 [04:34:40]OFD Sender: Remove packet 188022 [04:34:40]ProducePacketName [04:34:40]name=ofd_packets/00188022 [04:34:40]NVStorageDeleteData [04:34:40]OFD Sender: No OFD packet to send [04:34:41]*** Cut start [04:34:41]*** Partial cut [04:34:41]*** CUTSNS_PIN = 1 [04:34:41]*** CUTSNS_PIN = 0 [04:34:41]*** Brake cut motor [04:34:42]Read from MH i2c: 01 [04:34:42]MH_I2C_Read... [04:34:42]*** Stop cut motor [04:34:42]*** Cut end [04:34:42]Read from MH i2c: 01 07 00 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: 01 07 00 D0 13 00 00 00 00 00 FF 0F F8 [04:34:42]process_action close_receipt done [04:34:42]requested_data is exist [04:34:42]produce_requested_data [04:34:42]requested_item fm.sn is exist - process it [04:34:42]wFMCommunicate request_size=4 [04:34:42]MH_SAM_APDU [04:34:42]CAPDU: 80 11 00 00 [04:34:42]Write to MH i2c: E2 08 00 D1 13 80 11 00 00 00 00 00 00 5E [04:34:42]Write i2c OK [04:34:42]MH_I2C_Read... [04:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:42]Read from MH i2c: E2 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: E2 17 00 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: E2 17 00 D1 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [04:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:34:42]wFMCommunicate OK [04:34:42]requested_item fd.num is exist - process it [04:34:42]SAM_PROTO_GetFieldsCounters [04:34:42]wFMCommunicate request_size=4 [04:34:42]MH_SAM_APDU [04:34:42]CAPDU: 80 13 00 00 [04:34:42]Write to MH i2c: E2 08 00 D2 13 80 13 00 00 00 00 00 00 61 [04:34:42]Write i2c OK [04:34:42]MH_I2C_Read... [04:34:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:42]Read from MH i2c: E2 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: E2 62 00 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: E2 62 00 D2 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 DE 02 00 0E 04 04 00 CD 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 25 [04:34:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 DE 02 00 0E 04 04 00 CD 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 [04:34:42]wFMCommunicate OK [04:34:42]SAM_PROTO_GetFieldsCounters done [04:34:42]requested_item shift.num is exist - process it [04:34:42]requested_item shift.opened is exist - process it [04:34:42]req_shift_opened [04:34:42]FM_GetShiftState [04:34:42]SAM_PROTO_GetShiftState [04:34:42]wFMCommunicate request_size=4 [04:34:42]MH_SAM_APDU [04:34:42]CAPDU: 80 13 01 00 [04:34:42]Write to MH i2c: E2 08 00 D3 13 80 13 01 00 00 00 00 00 63 [04:34:42]Write i2c OK [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: E2 [04:34:42]MH_I2C_Read... [04:34:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:42]Read from MH i2c: E2 0E 00 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: E2 0E 00 D3 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 58 [04:34:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:34:42]wFMCommunicate OK [04:34:42]SAM_PROTO_GetShiftState done [04:34:42]FM_GetShiftState done [04:34:42]req_shift_opened done [04:34:42]requested_item shift.open_date is exist - process it [04:34:42]req_shift_open_date [04:34:42]req_shift_open_date done [04:34:42]produce_requested_data done [04:34:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188022,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:34:42]process_action_free close_receipt [04:34:42]json_value_free [04:34:42]json_value_free done [04:34:42]process_json_proto returns [04:34:42]Send response to host [04:34:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188022,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:34:42]free response buf [04:34:42]execute_script done [04:34:42]execute_script returns [04:34:42]free content buf [04:34:42]Sock 9.Close socket [04:34:42]Sock 9.Thread stoped [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:11]OFD Sender: No OFD packet to send [04:35:16]OFD Sender: No OFD packet to send [04:35:21]OFD Sender: No OFD packet to send [04:35:26]OFD Sender: No OFD packet to send [04:35:31]OFD Sender: No OFD packet to send [04:35:36]OFD Sender: No OFD packet to send [04:35:41]OFD Sender: No OFD packet to send [04:35:46]OFD Sender: No OFD packet to send [04:35:51]OFD Sender: No OFD packet to send [04:35:56]OFD Sender: No OFD packet to send [04:36:01]OFD Sender: No OFD packet to send [04:36:06]OFD Sender: No OFD packet to send [04:36:11]OFD Sender: No OFD packet to send [04:36:16]OFD Sender: No OFD packet to send [04:36:21]OFD Sender: No OFD packet to send [04:36:26]OFD Sender: No OFD packet to send [04:36:31]OFD Sender: No OFD packet to send [04:36:36]OFD Sender: No OFD packet to send [04:36:41]OFD Sender: No OFD packet to send [04:36:46]OFD Sender: No OFD packet to send [04:36:51]OFD Sender: No OFD packet to send [04:36:56]OFD Sender: No OFD packet to send [04:37:01]OFD Sender: No OFD packet to send [04:37:06]OFD Sender: No OFD packet to send [04:37:11]OFD Sender: No OFD packet to send [04:37:16]OFD Sender: No OFD packet to send [04:37:21]OFD Sender: No OFD packet to send [04:37:26]OFD Sender: No OFD packet to send [04:37:31]OFD Sender: No OFD packet to send [04:37:36]OFD Sender: No OFD packet to send [04:37:41]OFD Sender: No OFD packet to send [04:37:46]OFD Sender: No OFD packet to send [04:37:51]OFD Sender: No OFD packet to send [04:37:56]OFD Sender: No OFD packet to send [04:38:01]OFD Sender: No OFD packet to send [04:38:06]OFD Sender: No OFD packet to send [04:38:11]OFD Sender: No OFD packet to send [04:38:16]OFD Sender: No OFD packet to send [04:38:21]OFD Sender: No OFD packet to send [04:38:26]OFD Sender: No OFD packet to send [04:38:31]OFD Sender: No OFD packet to send [04:38:36]OFD Sender: No OFD packet to send [04:38:41]OFD Sender: No OFD packet to send [04:38:46]OFD Sender: No OFD packet to send [04:38:51]OFD Sender: No OFD packet to send [04:38:57]OFD Sender: No OFD packet to send [04:39:02]OFD Sender: No OFD packet to send [04:39:07]OFD Sender: No OFD packet to send [04:39:12]OFD Sender: No OFD packet to send [04:39:17]OFD Sender: No OFD packet to send [04:39:22]OFD Sender: No OFD packet to send [04:39:27]OFD Sender: No OFD packet to send [04:39:32]OFD Sender: No OFD packet to send [04:39:37]OFD Sender: No OFD packet to send [04:39:42]OFD Sender: No OFD packet to send [04:39:47]OFD Sender: No OFD packet to send [04:39:52]OFD Sender: No OFD packet to send [04:39:57]OFD Sender: No OFD packet to send [04:40:02]OFD Sender: No OFD packet to send [04:40:07]OFD Sender: No OFD packet to send [04:40:12]OFD Sender: No OFD packet to send [04:40:17]OFD Sender: No OFD packet to send [04:40:22]OFD Sender: No OFD packet to send [04:40:27]OFD Sender: No OFD packet to send [04:40:32]OFD Sender: No OFD packet to send [04:40:35]accept exits with 8 [04:40:35]New connection [04:40:35]New thread 3067055460 created [04:40:35]Thread 3067198820 joined [04:40:35]Waiting for new connection... [04:40:35] Sock 8.Parse request [04:40:35]Sock 8.Check first char [04:40:35]Sock 8.First char is OK [04:40:35]request: POST /json_proto HTTP/1.0 [04:40:35]Method: POST [04:40:35]URL: /json_proto [04:40:35]Method is POST - this is cgi request [04:40:35]url: /json_proto [04:40:35]query_string will be loaded in cgi processing [04:40:35]execute_cgi json_proto POST (null) [04:40:35]execute_cgi path=json_proto method=POST [04:40:35]POST find Content-Length [04:40:35]Host: 172.17.42.131:8080 [04:40:35]Content-Length: 688 [04:40:35]Content-Type: application/json [04:40:35] [04:40:35]POST finish read [04:40:35]Found Content-Length = 688 [04:40:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:40:35]execute_script... [04:40:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210074", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:40:35]POST & json_proto [04:40:35]process_json_proto [04:40:35]json parsed OK: [04:40:35]protocol is kg_v1.0 [04:40:35]action value=close_receipt [04:40:35]process_action close_receipt [04:40:35]cmd_close_receipt [04:40:35]MH_GetDate [04:40:35]Write to MH i2c: F0 00 00 D4 13 D6 [04:40:35]Write i2c OK [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: F0 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: F0 09 00 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: F0 09 00 D4 13 00 C4 2C 17 67 A0 18 CA 66 35 [04:40:35]GetLastDocTimeStamp 1729571679 [04:40:35]current date 1729572036 [04:40:35]FM_GetShiftState [04:40:35]SAM_PROTO_GetShiftState [04:40:35]wFMCommunicate request_size=4 [04:40:35]MH_SAM_APDU [04:40:35]CAPDU: 80 13 01 00 [04:40:35]Write to MH i2c: E2 08 00 D5 13 80 13 01 00 00 00 00 00 65 [04:40:35]Write i2c OK [04:40:35]MH_I2C_Read... [04:40:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:35]Read from MH i2c: E2 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: E2 0E 00 [04:40:35]MH_I2C_Read... [04:40:35]Read from MH i2c: E2 0E 00 D5 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5A [04:40:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:40:35]wFMCommunicate OK [04:40:35]SAM_PROTO_GetShiftState done [04:40:35]FM_GetShiftState done [04:40:35]opened in 1729556094 [04:40:35]opened+sec_in_day 1729642494 [04:40:35]quantity*price = 100051 [04:40:35]sum+1 = 100052 [04:40:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 52 22.10.2024 04:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188023 ФПД: 98066315398245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188023&fm=98066315398245&tin=02508201610067®Number=0000000000100030&sum=100000 [04:40:36]StoreToDocumentArchive [04:40:36]shift 461 fd 188023 [04:40:36]save to /storage/0461/doc_00188023 [04:40:36]save last doc name /storage/0461/doc_00188023 to /storage/kkm_last_doc_name [04:40:36]save OK [04:40:36]Clear old archive folders... [04:40:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:40:36]tlvbuf is 01BBC8E0 [04:40:36]SAM_PROTO_ClearQueue [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 09 00 00 [04:40:36]Write to MH i2c: E2 08 00 E2 13 80 09 00 00 00 00 00 00 67 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 E2 13 00 90 00 69 [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]SAM_PROTO_ClearQueue done [04:40:36]KKMCreateOFDPacket [04:40:36]OFDProtocolAddRootSTLVToBuf [04:40:36]FM_MakeSignedData [04:40:36]FM_MakeSignedData [04:40:36]SAM_PROTO_SignData [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 01 02 [04:40:36]Write to MH i2c: E2 08 00 E3 13 80 0D 01 02 00 00 00 00 6F [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 E3 13 00 90 00 6A [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]wFMCommunicate request_size=255 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 34 00 00 00 F4 03 04 00 C5 2C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DE 02 [04:40:36]Write to MH i2c: E2 02 01 E4 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 34 00 00 00 F4 03 04 00 C5 2C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DE 02 00 00 94 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 E4 13 00 90 00 6B [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]wFMCommunicate request_size=16 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 59 30 D7 E4 CC 65 [04:40:36]Write to MH i2c: E2 13 00 E5 13 80 0D 02 02 0B 00 00 35 04 06 00 59 30 D7 E4 CC 65 00 00 3C [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 03 00 E5 13 00 90 00 6C [04:40:36]RAPDU: 90 00 [04:40:36]wFMCommunicate OK [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 0D 03 02 [04:40:36]Write to MH i2c: E2 08 00 E6 13 80 0D 03 02 00 00 00 00 74 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 0B 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 0B 00 E6 13 00 E1 38 40 93 B2 32 4A 9C 90 00 2B [04:40:36]RAPDU: E1 38 40 93 B2 32 4A 9C 90 00 [04:40:36]wFMCommunicate OK [04:40:36]SAM_PROTO_SignData done [04:40:36]FM_MakeSignedData done [04:40:36]CreateOFDProtocolMessage [04:40:36]wFMCommunicate request_size=4 [04:40:36]MH_SAM_APDU [04:40:36]CAPDU: 80 11 00 00 [04:40:36]Write to MH i2c: E2 08 00 E7 13 80 11 00 00 00 00 00 00 74 [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:36]Read from MH i2c: E2 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 17 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: E2 17 00 E7 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [04:40:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:40:36]wFMCommunicate OK [04:40:36]CreateOFDProtocolMessage done [04:40:36]OFDSenderStorePacket 188023 [04:40:36]StoreOFDPacket docnum=188023 [04:40:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 87 FA 0D 01 26 3D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 34 00 00 00 F4 03 04 00 C5 2C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DE 02 00 35 04 06 00 59 30 D7 E4 CC 65 E1 38 40 93 B2 32 4A 9C [04:40:36]CheckFolder [04:40:36]dirname=/storage/ofd_packets [04:40:36]CheckFolder done [04:40:36]ProducePacketName [04:40:36]name=ofd_packets/00188023 [04:40:36]NVStorageSaveData ofd_packets/00188023 [04:40:36]File name is /storage/ofd_packets/00188023 [04:40:36]Write 307 bytes [04:40:36]NVStorageSaveData done [04:40:36]OFDSenderStorePacket done [04:40:36]KKMCreateOFDPacket done [04:40:36]NVStorageSaveData kkm_last_timestamp [04:40:36]File name is /storage/kkm_last_timestamp [04:40:36]Write 4 bytes [04:40:36]NVStorageSaveData done [04:40:36]ExternCall_PrintAddStr [04:40:36]wPrintStart [04:40:36]Write to MH i2c: 01 00 00 E8 13 FB [04:40:36]Write i2c OK [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: 01 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: 01 07 00 [04:40:36]MH_I2C_Read... [04:40:36]Read from MH i2c: 01 07 00 E8 13 00 00 00 00 00 FF 0F 10 [04:40:36]RasterBufferAndPrint [04:40:36]line Счет N : (1)210074 [04:40:36]line ИНН: 02508201610067 [04:40:36]line Контрольно-Кассовый Чек [04:40:36]line ПРОДАЖА [04:40:36]line ТРК (МРК, ГНК) : 31 [04:40:36]line Товар: 2710194210 [04:40:36]line D-ENERGY ДТ-К-5 [04:40:36]line 12.960 * 77.20 [04:40:36]line = 1000.51 [04:40:36]line НДС 12% НСП 1% [04:40:36]line > о реализуемом товаре [04:40:36]line ОКРУГЛЕНИЕ: -0.51 [04:40:36]line ИТОГО: 1000.00 [04:40:36]line Внесено: 1000.00 [04:40:36]line СДАЧА: 0.00 [04:40:36]line НСП 1% : 8.85 [04:40:36]line НДС 12% : 106.25 [04:40:36]line Наличными: 1000.00 [04:40:36]line Безнал.: 0.00 [04:40:36]line Место: АЗС № 86 "Партнер Нефть" [04:40:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:40:36]line СНО: Общий режим [04:40:36]line Чек 52 22.10.2024 04:40 [04:40:36]line Смена: 461 ФФД: 1.0 [04:40:36]line ЗНМ: 0300000155 [04:40:36]line РНМ: 0000000000100030 [04:40:36]line Версия ККМ: 001 [04:40:36]line ФМ: 0000000000965340 [04:40:36]line ФД: 188023 [04:40:36]line ФПД: 98066315398245 [04:40:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188023&fm=98066315398245&tin=02508201610067®Number=0000000000100030&sum=100000 [04:40:36]written 0, free lines is 4095 [04:40:36]OFD Sender: Processing packet 188023 [packets to send 1062, broken 1061] [04:40:36]ProducePacketName [04:40:36]name=ofd_packets/00188023 [04:40:36]OFD Sender: To server: pG, [04:40:36]CommunicateWithHost lk.salyk.kg:30040 [04:40:36]ConnectInit lk.salyk.kg [04:40:37]Connected sock=10 [04:40:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 87 FA 0D 01 26 3D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 34 00 00 00 F4 03 04 00 C5 2C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DE 02 00 35 04 06 00 59 30 D7 E4 CC 65 E1 38 40 93 B2 32 4A 9C [04:40:37]Write to MH i2c: 01 00 00 13 14 27 [04:40:37]Write i2c OK [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: 01 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: 01 07 00 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: 01 07 00 13 14 00 00 00 00 00 56 0C 90 [04:40:37]RasterBufferAndPrint [04:40:37]line [04:40:37]line [04:40:37]line [04:40:37]line [04:40:37]line [04:40:37]written 0, free lines is 3161 [04:40:37]MH_Cut [04:40:37]Write to MH i2c: D1 01 00 1A 14 01 00 [04:40:37]Write i2c OK [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: D1 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: D1 01 00 [04:40:37]MH_I2C_Read... [04:40:37]Read from MH i2c: D1 01 00 1A 14 00 FF [04:40:37]Write to MH i2c: 01 00 00 1B 14 2F [04:40:37]Write i2c OK [04:40:37]MH_I2C_Read... [04:40:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A3 EA 47 00 67 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DE 02 00 F4 03 04 00 B2 D6 16 67 B6 04 01 00 00 12 3B B3 B6 FA 0F 2B 7F [04:40:37]CommunicateWithHost err = 0 [04:40:37]CheckOFDResponse [04:40:37]1017 (14) - 77093643461234 [04:40:37]1041 (16) - 0000000000965340 [04:40:37]1040 (4) - 188023 [04:40:37]1012 (4) - 21.10.2024 22:33 [04:40:37]1206 (1) - 0 [04:40:37]OFD Sender: Remove packet 188023 [04:40:37]ProducePacketName [04:40:37]name=ofd_packets/00188023 [04:40:37]NVStorageDeleteData [04:40:38]OFD Sender: No OFD packet to send [04:40:38]*** Cut start [04:40:38]*** Partial cut [04:40:38]*** CUTSNS_PIN = 1 [04:40:38]*** CUTSNS_PIN = 0 [04:40:38]*** Brake cut motor [04:40:39]Read from MH i2c: 01 [04:40:39]MH_I2C_Read... [04:40:39]*** Stop cut motor [04:40:39]*** Cut end [04:40:39]Read from MH i2c: 01 07 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: 01 07 00 1B 14 00 00 00 00 00 FF 0F 44 [04:40:39]process_action close_receipt done [04:40:39]requested_data is exist [04:40:39]produce_requested_data [04:40:39]requested_item fm.sn is exist - process it [04:40:39]wFMCommunicate request_size=4 [04:40:39]MH_SAM_APDU [04:40:39]CAPDU: 80 11 00 00 [04:40:39]Write to MH i2c: E2 08 00 1C 14 80 11 00 00 00 00 00 00 AA [04:40:39]Write i2c OK [04:40:39]MH_I2C_Read... [04:40:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:40:39]Read from MH i2c: E2 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 17 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 17 00 1C 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [04:40:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:40:39]wFMCommunicate OK [04:40:39]requested_item fd.num is exist - process it [04:40:39]SAM_PROTO_GetFieldsCounters [04:40:39]wFMCommunicate request_size=4 [04:40:39]MH_SAM_APDU [04:40:39]CAPDU: 80 13 00 00 [04:40:39]Write to MH i2c: E2 08 00 1D 14 80 13 00 00 00 00 00 00 AD [04:40:39]Write i2c OK [04:40:39]MH_I2C_Read... [04:40:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:40:39]Read from MH i2c: E2 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 62 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 62 00 1D 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 DE 02 00 0E 04 04 00 CD 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 75 [04:40:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 DE 02 00 0E 04 04 00 CD 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 [04:40:39]wFMCommunicate OK [04:40:39]SAM_PROTO_GetFieldsCounters done [04:40:39]requested_item shift.num is exist - process it [04:40:39]requested_item shift.opened is exist - process it [04:40:39]req_shift_opened [04:40:39]FM_GetShiftState [04:40:39]SAM_PROTO_GetShiftState [04:40:39]wFMCommunicate request_size=4 [04:40:39]MH_SAM_APDU [04:40:39]CAPDU: 80 13 01 00 [04:40:39]Write to MH i2c: E2 08 00 1E 14 80 13 01 00 00 00 00 00 AF [04:40:39]Write i2c OK [04:40:39]MH_I2C_Read... [04:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:40:39]Read from MH i2c: E2 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 0E 00 [04:40:39]MH_I2C_Read... [04:40:39]Read from MH i2c: E2 0E 00 1E 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A4 [04:40:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:40:39]wFMCommunicate OK [04:40:39]SAM_PROTO_GetShiftState done [04:40:39]FM_GetShiftState done [04:40:39]req_shift_opened done [04:40:39]requested_item shift.open_date is exist - process it [04:40:39]req_shift_open_date [04:40:39]req_shift_open_date done [04:40:39]produce_requested_data done [04:40:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188023,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:40:39]process_action_free close_receipt [04:40:39]json_value_free [04:40:39]json_value_free done [04:40:39]process_json_proto returns [04:40:39]Send response to host [04:40:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188023,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:40:39]free response buf [04:40:39]execute_script done [04:40:39]execute_script returns [04:40:39]free content buf [04:40:39]Sock 8.Close socket [04:40:39]Sock 8.Thread stoped [04:40:43]OFD Sender: No OFD packet to send [04:40:48]OFD Sender: No OFD packet to send [04:40:53]OFD Sender: No OFD packet to send [04:40:58]OFD Sender: No OFD packet to send [04:41:03]OFD Sender: No OFD packet to send [04:41:08]OFD Sender: No OFD packet to send [04:41:13]OFD Sender: No OFD packet to send [04:41:18]OFD Sender: No OFD packet to send [04:41:23]OFD Sender: No OFD packet to send [04:41:28]OFD Sender: No OFD packet to send [04:41:33]OFD Sender: No OFD packet to send [04:41:38]OFD Sender: No OFD packet to send [04:41:43]OFD Sender: No OFD packet to send [04:41:48]OFD Sender: No OFD packet to send [04:41:53]OFD Sender: No OFD packet to send [04:41:58]OFD Sender: No OFD packet to send [04:42:03]OFD Sender: No OFD packet to send [04:42:08]OFD Sender: No OFD packet to send [04:42:13]OFD Sender: No OFD packet to send [04:42:18]OFD Sender: No OFD packet to send [04:42:23]OFD Sender: No OFD packet to send [04:42:28]OFD Sender: No OFD packet to send [04:42:33]OFD Sender: No OFD packet to send [04:42:38]OFD Sender: No OFD packet to send [04:42:43]OFD Sender: No OFD packet to send [04:42:48]OFD Sender: No OFD packet to send [04:42:53]OFD Sender: No OFD packet to send [04:42:58]OFD Sender: No OFD packet to send [04:43:03]OFD Sender: No OFD packet to send [04:43:08]OFD Sender: No OFD packet to send [04:43:13]OFD Sender: No OFD packet to send [04:43:18]OFD Sender: No OFD packet to send [04:43:23]OFD Sender: No OFD packet to send [04:43:28]OFD Sender: No OFD packet to send [04:43:33]OFD Sender: No OFD packet to send [04:43:38]OFD Sender: No OFD packet to send [04:43:43]OFD Sender: No OFD packet to send [04:43:48]OFD Sender: No OFD packet to send [04:43:53]OFD Sender: No OFD packet to send [04:43:58]OFD Sender: No OFD packet to send [04:44:03]OFD Sender: No OFD packet to send [04:44:08]OFD Sender: No OFD packet to send [04:44:13]OFD Sender: No OFD packet to send [04:44:19]OFD Sender: No OFD packet to send [04:44:24]OFD Sender: No OFD packet to send [04:44:29]OFD Sender: No OFD packet to send [04:44:34]OFD Sender: No OFD packet to send [04:44:39]OFD Sender: No OFD packet to send [04:44:44]OFD Sender: No OFD packet to send [04:44:49]OFD Sender: No OFD packet to send [04:44:54]OFD Sender: No OFD packet to send [04:44:59]OFD Sender: No OFD packet to send [04:45:04]OFD Sender: No OFD packet to send [04:45:09]OFD Sender: No OFD packet to send [04:45:14]OFD Sender: No OFD packet to send [04:45:19]OFD Sender: No OFD packet to send [04:45:24]OFD Sender: No OFD packet to send [04:45:29]OFD Sender: No OFD packet to send [04:45:34]OFD Sender: No OFD packet to send [04:45:39]OFD Sender: No OFD packet to send [04:45:44]OFD Sender: No OFD packet to send [04:45:49]OFD Sender: No OFD packet to send [04:45:54]OFD Sender: No OFD packet to send [04:45:59]OFD Sender: No OFD packet to send [04:46:04]OFD Sender: No OFD packet to send [04:46:09]OFD Sender: No OFD packet to send [04:46:14]OFD Sender: No OFD packet to send [04:46:19]OFD Sender: No OFD packet to send [04:46:24]OFD Sender: No OFD packet to send [04:46:29]OFD Sender: No OFD packet to send [04:46:34]OFD Sender: No OFD packet to send [04:46:39]OFD Sender: No OFD packet to send [04:46:44]OFD Sender: No OFD packet to send [04:46:49]OFD Sender: No OFD packet to send [04:46:54]OFD Sender: No OFD packet to send [04:46:59]OFD Sender: No OFD packet to send [04:47:04]OFD Sender: No OFD packet to send [04:47:09]OFD Sender: No OFD packet to send [04:47:14]OFD Sender: No OFD packet to send [04:47:19]OFD Sender: No OFD packet to send [04:47:24]OFD Sender: No OFD packet to send [04:47:29]OFD Sender: No OFD packet to send [04:47:34]OFD Sender: No OFD packet to send [04:47:39]OFD Sender: No OFD packet to send [04:47:44]OFD Sender: No OFD packet to send [04:47:49]OFD Sender: No OFD packet to send [04:47:54]OFD Sender: No OFD packet to send [04:47:59]OFD Sender: No OFD packet to send [04:48:05]OFD Sender: No OFD packet to send [04:48:10]OFD Sender: No OFD packet to send [04:48:15]OFD Sender: No OFD packet to send [04:48:20]OFD Sender: No OFD packet to send [04:48:25]OFD Sender: No OFD packet to send [04:48:30]OFD Sender: No OFD packet to send [04:48:35]OFD Sender: No OFD packet to send [04:48:40]OFD Sender: No OFD packet to send [04:48:45]OFD Sender: No OFD packet to send [04:48:50]OFD Sender: No OFD packet to send [04:48:55]OFD Sender: No OFD packet to send [04:49:00]OFD Sender: No OFD packet to send [04:49:05]OFD Sender: No OFD packet to send [04:49:10]OFD Sender: No OFD packet to send [04:49:15]OFD Sender: No OFD packet to send [04:49:20]OFD Sender: No OFD packet to send [04:49:25]OFD Sender: No OFD packet to send [04:49:27]accept exits with 9 [04:49:27]New connection [04:49:27]New thread 3067198820 created [04:49:27]Thread 3067055460 joined [04:49:27]Waiting for new connection... [04:49:27] Sock 9.Parse request [04:49:27]Sock 9.Check first char [04:49:27]Sock 9.First char is OK [04:49:27]request: POST /json_proto HTTP/1.0 [04:49:27]Method: POST [04:49:27]URL: /json_proto [04:49:27]Method is POST - this is cgi request [04:49:27]url: /json_proto [04:49:27]query_string will be loaded in cgi processing [04:49:27]execute_cgi json_proto POST (null) [04:49:27]execute_cgi path=json_proto method=POST [04:49:27]POST find Content-Length [04:49:27]Host: 172.17.42.131:8080 [04:49:27]Content-Length: 688 [04:49:27]Content-Type: application/json [04:49:27] [04:49:27]POST finish read [04:49:27]Found Content-Length = 688 [04:49:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:49:27]execute_script... [04:49: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)210075", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:49:27]POST & json_proto [04:49:27]process_json_proto [04:49:27]json parsed OK: [04:49:27]protocol is kg_v1.0 [04:49:27]action value=close_receipt [04:49:27]process_action close_receipt [04:49:27]cmd_close_receipt [04:49:27]MH_GetDate [04:49:27]Write to MH i2c: F0 00 00 1F 14 22 [04:49:27]Write i2c OK [04:49:27]MH_I2C_Read... [04:49:27]Read from MH i2c: F0 [04:49:27]MH_I2C_Read... [04:49:27]Read from MH i2c: F0 09 00 [04:49:27]MH_I2C_Read... [04:49:27]Read from MH i2c: F0 09 00 1F 14 00 D9 2E 17 67 A0 18 CA 66 98 [04:49:27]GetLastDocTimeStamp 1729572037 [04:49:27]current date 1729572569 [04:49:27]FM_GetShiftState [04:49:27]SAM_PROTO_GetShiftState [04:49:27]wFMCommunicate request_size=4 [04:49:27]MH_SAM_APDU [04:49:27]CAPDU: 80 13 01 00 [04:49:27]Write to MH i2c: E2 08 00 20 14 80 13 01 00 00 00 00 00 B1 [04:49:27]Write i2c OK [04:49:27]MH_I2C_Read... [04:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:27]Read from MH i2c: E2 [04:49:27]MH_I2C_Read... [04:49:27]Read from MH i2c: E2 0E 00 [04:49:27]MH_I2C_Read... [04:49:27]Read from MH i2c: E2 0E 00 20 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A6 [04:49:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:49:27]wFMCommunicate OK [04:49:27]SAM_PROTO_GetShiftState done [04:49:27]FM_GetShiftState done [04:49:27]opened in 1729556094 [04:49:27]opened+sec_in_day 1729642494 [04:49:27]quantity*price = 100051 [04:49:27]sum+1 = 100052 [04:49:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 53 22.10.2024 04:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188024 ФПД: 200231980392308 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044929&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188024&fm=200231980392308&tin=02508201610067®Number=0000000000100030&sum=100000 [04:49:28]StoreToDocumentArchive [04:49:28]shift 461 fd 188024 [04:49:28]save to /storage/0461/doc_00188024 [04:49:28]save last doc name /storage/0461/doc_00188024 to /storage/kkm_last_doc_name [04:49:28]save OK [04:49:28]Clear old archive folders... [04:49:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:49:28]tlvbuf is B6EFD990 [04:49:28]SAM_PROTO_ClearQueue [04:49:28]wFMCommunicate request_size=4 [04:49:28]MH_SAM_APDU [04:49:28]CAPDU: 80 09 00 00 [04:49:28]Write to MH i2c: E2 08 00 2D 14 80 09 00 00 00 00 00 00 B3 [04:49:28]Write i2c OK [04:49:28]MH_I2C_Read... [04:49:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:49:28]Read from MH i2c: E2 [04:49:28]MH_I2C_Read... [04:49:28]Read from MH i2c: E2 03 00 [04:49:28]MH_I2C_Read... [04:49:28]Read from MH i2c: E2 03 00 2D 14 00 90 00 B5 [04:49:28]RAPDU: 90 00 [04:49:28]wFMCommunicate OK [04:49:28]SAM_PROTO_ClearQueue done [04:49:28]KKMCreateOFDPacket [04:49:28]OFDProtocolAddRootSTLVToBuf [04:49:28]FM_MakeSignedData [04:49:28]FM_MakeSignedData [04:49:28]SAM_PROTO_SignData [04:49:28]wFMCommunicate request_size=4 [04:49:28]MH_SAM_APDU [04:49:28]CAPDU: 80 0D 01 02 [04:49:28]Write to MH i2c: E2 08 00 2E 14 80 0D 01 02 00 00 00 00 BB [04:49:28]Write i2c OK [04:49:28]MH_I2C_Read... [04:49:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:49:28]Read from MH i2c: E2 [04:49:28]MH_I2C_Read... [04:49:28]Read from MH i2c: E2 03 00 [04:49:28]MH_I2C_Read... [04:49:28]Read from MH i2c: E2 03 00 2E 14 00 90 00 B6 [04:49:28]RAPDU: 90 00 [04:49:28]wFMCommunicate OK [04:49:28]wFMCommunicate request_size=255 [04:49:28]MH_SAM_APDU [04:49:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 35 00 00 00 F4 03 04 00 D9 2E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DE 02 [04:49:28]Write to MH i2c: E2 02 01 2F 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 35 00 00 00 F4 03 04 00 D9 2E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DE 02 00 00 F8 [04:49:28]Write i2c OK [04:49:28]MH_I2C_Read... [04:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:29]Read from MH i2c: E2 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 03 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 03 00 2F 14 00 90 00 B7 [04:49:29]RAPDU: 90 00 [04:49:29]wFMCommunicate OK [04:49:29]wFMCommunicate request_size=16 [04:49:29]MH_SAM_APDU [04:49:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B6 1C 24 10 5F 74 [04:49:29]Write to MH i2c: E2 13 00 30 14 80 0D 02 02 0B 00 00 35 04 06 00 B6 1C 24 10 5F 74 00 00 EC [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:49:29]Read from MH i2c: E2 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 03 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 03 00 30 14 00 90 00 B8 [04:49:29]RAPDU: 90 00 [04:49:29]wFMCommunicate OK [04:49:29]wFMCommunicate request_size=4 [04:49:29]MH_SAM_APDU [04:49:29]CAPDU: 80 0D 03 02 [04:49:29]Write to MH i2c: E2 08 00 31 14 80 0D 03 02 00 00 00 00 C0 [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:49:29]Read from MH i2c: E2 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 0B 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 0B 00 31 14 00 8A 0C F8 FE 2C 61 DD 70 90 00 27 [04:49:29]RAPDU: 8A 0C F8 FE 2C 61 DD 70 90 00 [04:49:29]wFMCommunicate OK [04:49:29]SAM_PROTO_SignData done [04:49:29]FM_MakeSignedData done [04:49:29]CreateOFDProtocolMessage [04:49:29]wFMCommunicate request_size=4 [04:49:29]MH_SAM_APDU [04:49:29]CAPDU: 80 11 00 00 [04:49:29]Write to MH i2c: E2 08 00 32 14 80 11 00 00 00 00 00 00 C0 [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:29]Read from MH i2c: E2 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 17 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: E2 17 00 32 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [04:49:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:49:29]wFMCommunicate OK [04:49:29]CreateOFDProtocolMessage done [04:49:29]OFDSenderStorePacket 188024 [04:49:29]StoreOFDPacket docnum=188024 [04:49:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 FC 0D 01 D6 D0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 35 00 00 00 F4 03 04 00 D9 2E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DE 02 00 35 04 06 00 B6 1C 24 10 5F 74 8A 0C F8 FE 2C 61 DD 70 [04:49:29]CheckFolder [04:49:29]dirname=/storage/ofd_packets [04:49:29]CheckFolder done [04:49:29]ProducePacketName [04:49:29]name=ofd_packets/00188024 [04:49:29]NVStorageSaveData ofd_packets/00188024 [04:49:29]File name is /storage/ofd_packets/00188024 [04:49:29]Write 307 bytes [04:49:29]NVStorageSaveData done [04:49:29]OFDSenderStorePacket done [04:49:29]KKMCreateOFDPacket done [04:49:29]NVStorageSaveData kkm_last_timestamp [04:49:29]File name is /storage/kkm_last_timestamp [04:49:29]Write 4 bytes [04:49:29]NVStorageSaveData done [04:49:29]ExternCall_PrintAddStr [04:49:29]wPrintStart [04:49:29]Write to MH i2c: 01 00 00 33 14 47 [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: 01 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: 01 07 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: 01 07 00 33 14 00 00 00 00 00 FF 0F 5C [04:49:29]RasterBufferAndPrint [04:49:29]line Счет N : (1)210075 [04:49:29]line ИНН: 02508201610067 [04:49:29]line Контрольно-Кассовый Чек [04:49:29]line ПРОДАЖА [04:49:29]line ТРК (МРК, ГНК) : 31 [04:49:29]line Товар: 2710194210 [04:49:29]line D-ENERGY ДТ-К-5 [04:49:29]line 12.960 * 77.20 [04:49:29]line = 1000.51 [04:49:29]line НДС 12% НСП 1% [04:49:29]line > о реализуемом товаре [04:49:29]line ОКРУГЛЕНИЕ: -0.51 [04:49:29]line ИТОГО: 1000.00 [04:49:29]line Внесено: 1000.00 [04:49:29]line СДАЧА: 0.00 [04:49:29]line НСП 1% : 8.85 [04:49:29]line НДС 12% : 106.25 [04:49:29]line Наличными: 1000.00 [04:49:29]line Безнал.: 0.00 [04:49:29]line Место: АЗС № 86 "Партнер Нефть" [04:49:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:49:29]line СНО: Общий режим [04:49:29]line Чек 53 22.10.2024 04:49 [04:49:29]line Смена: 461 ФФД: 1.0 [04:49:29]line ЗНМ: 0300000155 [04:49:29]line РНМ: 0000000000100030 [04:49:29]line Версия ККМ: 001 [04:49:29]line ФМ: 0000000000965340 [04:49:29]line ФД: 188024 [04:49:29]line ФПД: 200231980392308 [04:49:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T044929&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188024&fm=200231980392308&tin=02508201610067®Number=0000000000100030&sum=100000 [04:49:29]written 0, free lines is 4095 [04:49:29]OFD Sender: Processing packet 188024 [packets to send 1062, broken 1061] [04:49:29]ProducePacketName [04:49:29]name=ofd_packets/00188024 [04:49:29]OFD Sender: To server: pG, [04:49:29]CommunicateWithHost lk.salyk.kg:30040 [04:49:29]ConnectInit lk.salyk.kg [04:49:29]Connected sock=10 [04:49:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 FC 0D 01 D6 D0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 35 00 00 00 F4 03 04 00 D9 2E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DE 02 00 35 04 06 00 B6 1C 24 10 5F 74 8A 0C F8 FE 2C 61 DD 70 [04:49:29]Write to MH i2c: 01 00 00 5E 14 72 [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: 01 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: 01 07 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: 01 07 00 5E 14 00 00 00 00 00 54 0C D9 [04:49:29]RasterBufferAndPrint [04:49:29]line [04:49:29]line [04:49:29]line [04:49:29]line [04:49:29]line [04:49:29]written 0, free lines is 3160 [04:49:29]MH_Cut [04:49:29]Write to MH i2c: D1 01 00 65 14 01 4B [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: D1 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: D1 01 00 [04:49:29]MH_I2C_Read... [04:49:29]Read from MH i2c: D1 01 00 65 14 00 4A [04:49:29]Write to MH i2c: 01 00 00 66 14 7A [04:49:29]Write i2c OK [04:49:29]MH_I2C_Read... [04:49:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 1B 47 00 CA F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DE 02 00 F4 03 04 00 C7 D8 16 67 B6 04 01 00 00 BB 38 22 7D 43 3A BB 77 [04:49:29]CommunicateWithHost err = 0 [04:49:29]CheckOFDResponse [04:49:29]1017 (14) - 77093643461234 [04:49:29]1041 (16) - 0000000000965340 [04:49:29]1040 (4) - 188024 [04:49:29]1012 (4) - 21.10.2024 22:42 [04:49:29]1206 (1) - 0 [04:49:29]OFD Sender: Remove packet 188024 [04:49:29]ProducePacketName [04:49:29]name=ofd_packets/00188024 [04:49:29]NVStorageDeleteData [04:49:30]OFD Sender: No OFD packet to send [04:49:31]*** Cut start [04:49:31]*** Partial cut [04:49:31]*** CUTSNS_PIN = 1 [04:49:31]*** CUTSNS_PIN = 0 [04:49:31]*** Brake cut motor [04:49:31]Read from MH i2c: 01 [04:49:31]MH_I2C_Read... [04:49:31]*** Stop cut motor [04:49:31]*** Cut end [04:49:31]Read from MH i2c: 01 07 00 [04:49:31]MH_I2C_Read... [04:49:31]Read from MH i2c: 01 07 00 66 14 00 00 00 00 00 FF 0F 8F [04:49:31]process_action close_receipt done [04:49:31]requested_data is exist [04:49:31]produce_requested_data [04:49:31]requested_item fm.sn is exist - process it [04:49:31]wFMCommunicate request_size=4 [04:49:31]MH_SAM_APDU [04:49:31]CAPDU: 80 11 00 00 [04:49:31]Write to MH i2c: E2 08 00 67 14 80 11 00 00 00 00 00 00 F5 [04:49:31]Write i2c OK [04:49:31]MH_I2C_Read... [04:49:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:49:31]Read from MH i2c: E2 [04:49:31]MH_I2C_Read... [04:49:31]Read from MH i2c: E2 17 00 [04:49:31]MH_I2C_Read... [04:49:31]Read from MH i2c: E2 17 00 67 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [04:49:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:49:31]wFMCommunicate OK [04:49:31]requested_item fd.num is exist - process it [04:49:31]SAM_PROTO_GetFieldsCounters [04:49:31]wFMCommunicate request_size=4 [04:49:31]MH_SAM_APDU [04:49:31]CAPDU: 80 13 00 00 [04:49:31]Write to MH i2c: E2 08 00 68 14 80 13 00 00 00 00 00 00 F8 [04:49:31]Write i2c OK [04:49:31]MH_I2C_Read... [04:49:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:49:31]Read from MH i2c: E2 [04:49:31]MH_I2C_Read... [04:49:31]Read from MH i2c: E2 62 00 [04:49:31]MH_I2C_Read... [04:49:31]Read from MH i2c: E2 62 00 68 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 DE 02 00 0E 04 04 00 CD 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 C4 [04:49:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 DE 02 00 0E 04 04 00 CD 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 [04:49:31]wFMCommunicate OK [04:49:31]SAM_PROTO_GetFieldsCounters done [04:49:31]requested_item shift.num is exist - process it [04:49:31]requested_item shift.opened is exist - process it [04:49:31]req_shift_opened [04:49:31]FM_GetShiftState [04:49:31]SAM_PROTO_GetShiftState [04:49:31]wFMCommunicate request_size=4 [04:49:31]MH_SAM_APDU [04:49:31]CAPDU: 80 13 01 00 [04:49:31]Write to MH i2c: E2 08 00 69 14 80 13 01 00 00 00 00 00 FA [04:49:31]Write i2c OK [04:49:31]MH_I2C_Read... [04:49:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:49:32]Read from MH i2c: E2 [04:49:32]MH_I2C_Read... [04:49:32]Read from MH i2c: E2 0E 00 [04:49:32]MH_I2C_Read... [04:49:32]Read from MH i2c: E2 0E 00 69 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EF [04:49:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:49:32]wFMCommunicate OK [04:49:32]SAM_PROTO_GetShiftState done [04:49:32]FM_GetShiftState done [04:49:32]req_shift_opened done [04:49:32]requested_item shift.open_date is exist - process it [04:49:32]req_shift_open_date [04:49:32]req_shift_open_date done [04:49:32]produce_requested_data done [04:49:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188024,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:49:32]process_action_free close_receipt [04:49:32]json_value_free [04:49:32]json_value_free done [04:49:32]process_json_proto returns [04:49:32]Send response to host [04:49:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188024,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:49:32]free response buf [04:49:32]execute_script done [04:49:32]execute_script returns [04:49:32]free content buf [04:49:32]Sock 9.Close socket [04:49:32]Sock 9.Thread stoped [04:49:35]OFD Sender: No OFD packet to send [04:49:40]OFD Sender: No OFD packet to send [04:49:45]OFD Sender: No OFD packet to send [04:49:50]OFD Sender: No OFD packet to send [04:49:55]OFD Sender: No OFD packet to send [04:50:00]OFD Sender: No OFD packet to send [04:50:05]OFD Sender: No OFD packet to send [04:50:10]OFD Sender: No OFD packet to send [04:50:15]OFD Sender: No OFD packet to send [04:50:20]OFD Sender: No OFD packet to send [04:50:25]OFD Sender: No OFD packet to send [04:50:30]OFD Sender: No OFD packet to send [04:50:35]OFD Sender: No OFD packet to send [04:50:40]OFD Sender: No OFD packet to send [04:50:45]OFD Sender: No OFD packet to send [04:50:50]OFD Sender: No OFD packet to send [04:50:55]OFD Sender: No OFD packet to send [04:51:00]OFD Sender: No OFD packet to send [04:51:05]OFD Sender: No OFD packet to send [04:51:10]OFD Sender: No OFD packet to send [04:51:15]OFD Sender: No OFD packet to send [04:51:20]OFD Sender: No OFD packet to send [04:51:26]OFD Sender: No OFD packet to send [04:51:31]OFD Sender: No OFD packet to send [04:51:36]OFD Sender: No OFD packet to send [04:51:41]OFD Sender: No OFD packet to send [04:51:46]OFD Sender: No OFD packet to send [04:51:51]OFD Sender: No OFD packet to send [04:51:56]OFD Sender: No OFD packet to send [04:52:01]OFD Sender: No OFD packet to send [04:52:06]OFD Sender: No OFD packet to send [04:52:11]OFD Sender: No OFD packet to send [04:52:16]OFD Sender: No OFD packet to send [04:52:21]OFD Sender: No OFD packet to send [04:52:26]OFD Sender: No OFD packet to send [04:52:31]OFD Sender: No OFD packet to send [04:52:36]OFD Sender: No OFD packet to send [04:52:41]OFD Sender: No OFD packet to send [04:52:46]OFD Sender: No OFD packet to send [04:52:51]OFD Sender: No OFD packet to send [04:52:56]OFD Sender: No OFD packet to send [04:52:59]accept exits with 8 [04:52:59]New connection [04:52:59]New thread 3067055460 created [04:52:59]Thread 3067198820 joined [04:52:59]Waiting for new connection... [04:52:59] Sock 8.Parse request [04:52:59]Sock 8.Check first char [04:52:59]Sock 8.First char is OK [04:52:59]request: POST /json_proto HTTP/1.0 [04:52:59]Method: POST [04:52:59]URL: /json_proto [04:52:59]Method is POST - this is cgi request [04:52:59]url: /json_proto [04:52:59]query_string will be loaded in cgi processing [04:52:59]execute_cgi json_proto POST (null) [04:52:59]execute_cgi path=json_proto method=POST [04:52:59]POST find Content-Length [04:52:59]Host: 172.17.42.131:8080 [04:52:59]Content-Length: 679 [04:52:59]Content-Type: application/json [04:52:59] [04:52:59]POST finish read [04:52:59]Found Content-Length = 679 [04:52:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [04:52:59]execute_script... [04:52: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)210077", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [04:52:59]POST & json_proto [04:52:59]process_json_proto [04:52:59]json parsed OK: [04:52:59]protocol is kg_v1.0 [04:52:59]action value=close_receipt [04:52:59]process_action close_receipt [04:52:59]cmd_close_receipt [04:52:59]MH_GetDate [04:52:59]Write to MH i2c: F0 00 00 6A 14 6D [04:52:59]Write i2c OK [04:52:59]MH_I2C_Read... [04:52:59]Read from MH i2c: F0 [04:52:59]MH_I2C_Read... [04:52:59]Read from MH i2c: F0 09 00 [04:52:59]MH_I2C_Read... [04:52:59]Read from MH i2c: F0 09 00 6A 14 00 AD 2F 17 67 A0 18 CA 66 B8 [04:52:59]GetLastDocTimeStamp 1729572569 [04:52:59]current date 1729572781 [04:52:59]FM_GetShiftState [04:52:59]SAM_PROTO_GetShiftState [04:52:59]wFMCommunicate request_size=4 [04:52:59]MH_SAM_APDU [04:52:59]CAPDU: 80 13 01 00 [04:52:59]Write to MH i2c: E2 08 00 6B 14 80 13 01 00 00 00 00 00 FC [04:52:59]Write i2c OK [04:52:59]MH_I2C_Read... [04:52:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:52:59]Read from MH i2c: E2 [04:52:59]MH_I2C_Read... [04:52:59]Read from MH i2c: E2 0E 00 [04:52:59]MH_I2C_Read... [04:52:59]Read from MH i2c: E2 0E 00 6B 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F1 [04:52:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:52:59]wFMCommunicate OK [04:52:59]SAM_PROTO_GetShiftState done [04:52:59]FM_GetShiftState done [04:52:59]opened in 1729556094 [04:52:59]opened+sec_in_day 1729642494 [04:52:59]quantity*price = 120015 [04:52:59]sum+1 = 120016 [04:52:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 54 22.10.2024 04:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188025 ФПД: 87104292491149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045301&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188025&fm=87104292491149&tin=02508201610067®Number=0000000000100030&sum=120000 [04:53:00]StoreToDocumentArchive [04:53:00]shift 461 fd 188025 [04:53:00]save to /storage/0461/doc_00188025 [04:53:00]save last doc name /storage/0461/doc_00188025 to /storage/kkm_last_doc_name [04:53:00]save OK [04:53:00]Clear old archive folders... [04:53:00]ProcessDocumentItem done err = 0, tmpTLVsize=248 [04:53:00]tlvbuf is 01BECA30 [04:53:00]SAM_PROTO_ClearQueue [04:53:00]wFMCommunicate request_size=4 [04:53:00]MH_SAM_APDU [04:53:00]CAPDU: 80 09 00 00 [04:53:00]Write to MH i2c: E2 08 00 78 14 80 09 00 00 00 00 00 00 FE [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:53:00]Read from MH i2c: E2 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 78 14 00 90 00 00 [04:53:00]RAPDU: 90 00 [04:53:00]wFMCommunicate OK [04:53:00]SAM_PROTO_ClearQueue done [04:53:00]KKMCreateOFDPacket [04:53:00]OFDProtocolAddRootSTLVToBuf [04:53:00]FM_MakeSignedData [04:53:00]FM_MakeSignedData [04:53:00]SAM_PROTO_SignData [04:53:00]wFMCommunicate request_size=4 [04:53:00]MH_SAM_APDU [04:53:00]CAPDU: 80 0D 01 02 [04:53:00]Write to MH i2c: E2 08 00 79 14 80 0D 01 02 00 00 00 00 06 [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:53:00]Read from MH i2c: E2 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 79 14 00 90 00 01 [04:53:00]RAPDU: 90 00 [04:53:00]wFMCommunicate OK [04:53:00]wFMCommunicate request_size=255 [04:53:00]MH_SAM_APDU [04:53: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 32 31 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 36 00 00 00 F4 03 04 00 AD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DE 02 00 35 04 06 00 4F 38 8C 69 [04:53:00]Write to MH i2c: E2 02 01 7A 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 32 31 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 36 00 00 00 F4 03 04 00 AD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DE 02 00 35 04 06 00 4F 38 8C 69 00 00 12 [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:00]Read from MH i2c: E2 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 7A 14 00 90 00 02 [04:53:00]RAPDU: 90 00 [04:53:00]wFMCommunicate OK [04:53:00]wFMCommunicate request_size=7 [04:53:00]MH_SAM_APDU [04:53:00]CAPDU: 80 0D 02 02 02 8F 8D [04:53:00]Write to MH i2c: E2 0A 00 7B 14 80 0D 02 02 02 00 8F 8D 00 00 29 [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:00]Read from MH i2c: E2 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 03 00 7B 14 00 90 00 03 [04:53:00]RAPDU: 90 00 [04:53:00]wFMCommunicate OK [04:53:00]wFMCommunicate request_size=4 [04:53:00]MH_SAM_APDU [04:53:00]CAPDU: 80 0D 03 02 [04:53:00]Write to MH i2c: E2 08 00 7C 14 80 0D 03 02 00 00 00 00 0B [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:53:00]Read from MH i2c: E2 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 0B 00 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 0B 00 7C 14 00 0A 73 82 54 E0 93 03 69 90 00 3E [04:53:00]RAPDU: 0A 73 82 54 E0 93 03 69 90 00 [04:53:00]wFMCommunicate OK [04:53:00]SAM_PROTO_SignData done [04:53:00]FM_MakeSignedData done [04:53:00]CreateOFDProtocolMessage [04:53:00]wFMCommunicate request_size=4 [04:53:00]MH_SAM_APDU [04:53:00]CAPDU: 80 11 00 00 [04:53:00]Write to MH i2c: E2 08 00 7D 14 80 11 00 00 00 00 00 00 0B [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:00]Read from MH i2c: E2 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 17 00 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: E2 17 00 7D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [04:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:53:00]wFMCommunicate OK [04:53:00]CreateOFDProtocolMessage done [04:53:00]OFDSenderStorePacket 188025 [04:53:00]StoreOFDPacket docnum=188025 [04:53:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 92 56 04 01 AB 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 32 31 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 36 00 00 00 F4 03 04 00 AD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DE 02 00 35 04 06 00 4F 38 8C 69 8F 8D 0A 73 82 54 E0 93 03 69 [04:53:00]CheckFolder [04:53:00]dirname=/storage/ofd_packets [04:53:00]CheckFolder done [04:53:00]ProducePacketName [04:53:00]name=ofd_packets/00188025 [04:53:00]NVStorageSaveData ofd_packets/00188025 [04:53:00]File name is /storage/ofd_packets/00188025 [04:53:00]Write 298 bytes [04:53:00]NVStorageSaveData done [04:53:00]OFDSenderStorePacket done [04:53:00]KKMCreateOFDPacket done [04:53:00]NVStorageSaveData kkm_last_timestamp [04:53:00]File name is /storage/kkm_last_timestamp [04:53:00]Write 4 bytes [04:53:00]NVStorageSaveData done [04:53:00]ExternCall_PrintAddStr [04:53:00]wPrintStart [04:53:00]Write to MH i2c: 01 00 00 7E 14 92 [04:53:00]Write i2c OK [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: 01 [04:53:00]MH_I2C_Read... [04:53:00]Read from MH i2c: 01 07 00 [04:53:00]MH_I2C_Read... [04:53:01]Read from MH i2c: 01 07 00 7E 14 00 00 00 00 00 FF 0F A7 [04:53:01]RasterBufferAndPrint [04:53:01]line Счет N : (1)210077 [04:53:01]line ИНН: 02508201610067 [04:53:01]line Контрольно-Кассовый Чек [04:53:01]line ПРОДАЖА [04:53:01]line ТРК (МРК, ГНК) : 51 [04:53:01]line Товар: 2710194210 [04:53:01]line ДТ-К-5 [04:53:01]line 15.750 * 76.20 [04:53:01]line = 1200.15 [04:53:01]line НДС 12% НСП 1% [04:53:01]line > о реализуемом товаре [04:53:01]line ОКРУГЛЕНИЕ: -0.15 [04:53:01]line ИТОГО: 1200.00 [04:53:01]line Внесено: 1200.00 [04:53:01]line СДАЧА: 0.00 [04:53:01]line НСП 1% : 10.62 [04:53:01]line НДС 12% : 127.45 [04:53:01]line Наличными: 1200.00 [04:53:01]line Безнал.: 0.00 [04:53:01]line Место: АЗС № 86 "Партнер Нефть" [04:53:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:53:01]line СНО: Общий режим [04:53:01]line Чек 54 22.10.2024 04:53 [04:53:01]line Смена: 461 ФФД: 1.0 [04:53:01]line ЗНМ: 0300000155 [04:53:01]line РНМ: 0000000000100030 [04:53:01]line Версия ККМ: 001 [04:53:01]line ФМ: 0000000000965340 [04:53:01]line ФД: 188025 [04:53:01]line ФПД: 87104292491149 [04:53:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045301&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188025&fm=87104292491149&tin=02508201610067®Number=0000000000100030&sum=120000 [04:53:01]written 0, free lines is 4095 [04:53:01]OFD Sender: Processing packet 188025 [packets to send 1062, broken 1061] [04:53:01]ProducePacketName [04:53:01]name=ofd_packets/00188025 [04:53:01]OFD Sender: To server: pG, [04:53:01]CommunicateWithHost lk.salyk.kg:30040 [04:53:01]ConnectInit lk.salyk.kg [04:53:01]Connected sock=10 [04:53:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 92 56 04 01 AB 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 32 31 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 36 00 00 00 F4 03 04 00 AD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DE 02 00 35 04 06 00 4F 38 8C 69 8F 8D 0A 73 82 54 E0 93 03 69 [04:53:01]Write to MH i2c: 01 00 00 A9 14 BD [04:53:01]Write i2c OK [04:53:01]MH_I2C_Read... [04:53:01]Read from MH i2c: 01 [04:53:01]MH_I2C_Read... [04:53:01]Read from MH i2c: 01 07 00 [04:53:01]MH_I2C_Read... [04:53:01]Read from MH i2c: 01 07 00 A9 14 00 00 00 00 00 51 0C 21 [04:53:01]RasterBufferAndPrint [04:53:01]line [04:53:01]line [04:53:01]line [04:53:01]line [04:53:01]line [04:53:01]written 0, free lines is 3157 [04:53:01]MH_Cut [04:53:01]Write to MH i2c: D1 01 00 B0 14 01 96 [04:53:01]Write i2c OK [04:53:01]MH_I2C_Read... [04:53:01]Read from MH i2c: D1 [04:53:01]MH_I2C_Read... [04:53:01]Read from MH i2c: D1 01 00 [04:53:01]MH_I2C_Read... [04:53:01]Read from MH i2c: D1 01 00 B0 14 00 95 [04:53:01]Write to MH i2c: 01 00 00 B1 14 C5 [04:53:01]Write i2c OK [04:53:01]MH_I2C_Read... [04:53:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F4 78 47 00 2F 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 39 36 35 33 34 30 10 04 04 00 79 DE 02 00 F4 03 04 00 9B D9 16 67 B6 04 01 00 00 47 08 F1 EC 2F 24 30 44 [04:53:01]CommunicateWithHost err = 0 [04:53:01]CheckOFDResponse [04:53:01]1017 (14) - 77093643461234 [04:53:01]1041 (16) - 0000000000965340 [04:53:01]1040 (4) - 188025 [04:53:01]1012 (4) - 21.10.2024 22:45 [04:53:01]1206 (1) - 0 [04:53:01]OFD Sender: Remove packet 188025 [04:53:01]ProducePacketName [04:53:01]name=ofd_packets/00188025 [04:53:01]NVStorageDeleteData [04:53:02]OFD Sender: No OFD packet to send [04:53:02]*** Cut start [04:53:02]*** Partial cut [04:53:02]*** CUTSNS_PIN = 1 [04:53:02]*** CUTSNS_PIN = 0 [04:53:03]*** Brake cut motor [04:53:03]Read from MH i2c: 01 [04:53:03]MH_I2C_Read... [04:53:03]*** Stop cut motor [04:53:03]*** Cut end [04:53:03]Read from MH i2c: 01 07 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: 01 07 00 B1 14 00 00 00 00 00 FF 0F DA [04:53:03]process_action close_receipt done [04:53:03]requested_data is exist [04:53:03]produce_requested_data [04:53:03]requested_item fm.sn is exist - process it [04:53:03]wFMCommunicate request_size=4 [04:53:03]MH_SAM_APDU [04:53:03]CAPDU: 80 11 00 00 [04:53:03]Write to MH i2c: E2 08 00 B2 14 80 11 00 00 00 00 00 00 40 [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:03]Read from MH i2c: E2 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: E2 17 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: E2 17 00 B2 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [04:53:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:53:03]wFMCommunicate OK [04:53:03]requested_item fd.num is exist - process it [04:53:03]SAM_PROTO_GetFieldsCounters [04:53:03]wFMCommunicate request_size=4 [04:53:03]MH_SAM_APDU [04:53:03]CAPDU: 80 13 00 00 [04:53:03]Write to MH i2c: E2 08 00 B3 14 80 13 00 00 00 00 00 00 43 [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:53:03]Read from MH i2c: E2 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: E2 62 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: E2 62 00 B3 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 DE 02 00 0E 04 04 00 CD 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 13 [04:53:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 DE 02 00 0E 04 04 00 CD 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 [04:53:03]wFMCommunicate OK [04:53:03]SAM_PROTO_GetFieldsCounters done [04:53:03]requested_item shift.num is exist - process it [04:53:03]requested_item shift.opened is exist - process it [04:53:03]req_shift_opened [04:53:03]FM_GetShiftState [04:53:03]SAM_PROTO_GetShiftState [04:53:03]wFMCommunicate request_size=4 [04:53:03]MH_SAM_APDU [04:53:03]CAPDU: 80 13 01 00 [04:53:03]Write to MH i2c: E2 08 00 B4 14 80 13 01 00 00 00 00 00 45 [04:53:03]Write i2c OK [04:53:03]MH_I2C_Read... [04:53:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:03]Read from MH i2c: E2 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: E2 0E 00 [04:53:03]MH_I2C_Read... [04:53:03]Read from MH i2c: E2 0E 00 B4 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [04:53:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:53:03]wFMCommunicate OK [04:53:03]SAM_PROTO_GetShiftState done [04:53:03]FM_GetShiftState done [04:53:03]req_shift_opened done [04:53:03]requested_item shift.open_date is exist - process it [04:53:03]req_shift_open_date [04:53:03]req_shift_open_date done [04:53:03]produce_requested_data done [04:53:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188025,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:53:03]process_action_free close_receipt [04:53:03]json_value_free [04:53:03]json_value_free done [04:53:03]process_json_proto returns [04:53:03]Send response to host [04:53:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188025,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:53:03]free response buf [04:53:03]execute_script done [04:53:03]execute_script returns [04:53:03]free content buf [04:53:03]Sock 8.Close socket [04:53:03]Sock 8.Thread stoped [04:53:07]OFD Sender: No OFD packet to send [04:53:12]OFD Sender: No OFD packet to send [04:53:16]accept exits with 9 [04:53:16]New connection [04:53:16]New thread 3067198820 created [04:53:16]Thread 3067055460 joined [04:53:16]Waiting for new connection... [04:53:16] Sock 9.Parse request [04:53:16]Sock 9.Check first char [04:53:16]Sock 9.First char is OK [04:53:16]request: POST /json_proto HTTP/1.0 [04:53:16]Method: POST [04:53:16]URL: /json_proto [04:53:16]Method is POST - this is cgi request [04:53:16]url: /json_proto [04:53:16]query_string will be loaded in cgi processing [04:53:16]execute_cgi json_proto POST (null) [04:53:16]execute_cgi path=json_proto method=POST [04:53:16]POST find Content-Length [04:53:16]Host: 172.17.42.131:8080 [04:53:16]Content-Length: 688 [04:53:16]Content-Type: application/json [04:53:16] [04:53:16]POST finish read [04:53:16]Found Content-Length = 688 [04:53:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.080, "sum" : 1550.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:16]execute_script... [04:53: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)210076", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.080, "sum" : 1550.18, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1550.00, "total" : 1550.00, "payments": [ { "type": 0, "sum" : 1550.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:53:16]POST & json_proto [04:53:16]process_json_proto [04:53:16]json parsed OK: [04:53:16]protocol is kg_v1.0 [04:53:16]action value=close_receipt [04:53:16]process_action close_receipt [04:53:16]cmd_close_receipt [04:53:16]MH_GetDate [04:53:16]Write to MH i2c: F0 00 00 B5 14 B8 [04:53:16]Write i2c OK [04:53:16]MH_I2C_Read... [04:53:16]Read from MH i2c: F0 [04:53:16]MH_I2C_Read... [04:53:16]Read from MH i2c: F0 09 00 [04:53:16]MH_I2C_Read... [04:53:16]Read from MH i2c: F0 09 00 B5 14 00 BD 2F 17 67 A0 18 CA 66 13 [04:53:16]GetLastDocTimeStamp 1729572781 [04:53:16]current date 1729572797 [04:53:16]FM_GetShiftState [04:53:16]SAM_PROTO_GetShiftState [04:53:16]wFMCommunicate request_size=4 [04:53:16]MH_SAM_APDU [04:53:16]CAPDU: 80 13 01 00 [04:53:16]Write to MH i2c: E2 08 00 B6 14 80 13 01 00 00 00 00 00 47 [04:53:16]Write i2c OK [04:53:16]MH_I2C_Read... [04:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:16]Read from MH i2c: E2 [04:53:16]MH_I2C_Read... [04:53:16]Read from MH i2c: E2 0E 00 [04:53:16]MH_I2C_Read... [04:53:16]Read from MH i2c: E2 0E 00 B6 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3C [04:53:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:53:16]wFMCommunicate OK [04:53:16]SAM_PROTO_GetShiftState done [04:53:16]FM_GetShiftState done [04:53:16]opened in 1729556094 [04:53:16]opened+sec_in_day 1729642494 [04:53:16]quantity*price = 155017 [04:53:16]sum+1 = 155019 [04:53:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.18 ИТОГО: 1550.00 Внесено: 1550.00 СДАЧА: 0.00 НСП 1% : 13.72 НДС 12% : 164.62 Наличными: 1550.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 55 22.10.2024 04:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188026 ФПД: 33318949938962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188026&fm=33318949938962&tin=02508201610067®Number=0000000000100030&sum=155000 [04:53:17]StoreToDocumentArchive [04:53:17]shift 461 fd 188026 [04:53:17]save to /storage/0461/doc_00188026 [04:53:17]save last doc name /storage/0461/doc_00188026 to /storage/kkm_last_doc_name [04:53:17]save OK [04:53:17]Clear old archive folders... [04:53:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [04:53:17]tlvbuf is 01BC2130 [04:53:17]SAM_PROTO_ClearQueue [04:53:17]wFMCommunicate request_size=4 [04:53:17]MH_SAM_APDU [04:53:17]CAPDU: 80 09 00 00 [04:53:17]Write to MH i2c: E2 08 00 C3 14 80 09 00 00 00 00 00 00 49 [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:53:17]Read from MH i2c: E2 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 C3 14 00 90 00 4B [04:53:17]RAPDU: 90 00 [04:53:17]wFMCommunicate OK [04:53:17]SAM_PROTO_ClearQueue done [04:53:17]KKMCreateOFDPacket [04:53:17]OFDProtocolAddRootSTLVToBuf [04:53:17]FM_MakeSignedData [04:53:17]FM_MakeSignedData [04:53:17]SAM_PROTO_SignData [04:53:17]wFMCommunicate request_size=4 [04:53:17]MH_SAM_APDU [04:53:17]CAPDU: 80 0D 01 02 [04:53:17]Write to MH i2c: E2 08 00 C4 14 80 0D 01 02 00 00 00 00 51 [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:53:17]Read from MH i2c: E2 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 C4 14 00 90 00 4C [04:53:17]RAPDU: 90 00 [04:53:17]wFMCommunicate OK [04:53:17]wFMCommunicate request_size=255 [04:53:17]MH_SAM_APDU [04:53:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 BD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DE 02 [04:53:17]Write to MH i2c: E2 02 01 C5 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 BD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DE 02 00 00 1F [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:17]Read from MH i2c: E2 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 C5 14 00 90 00 4D [04:53:17]RAPDU: 90 00 [04:53:17]wFMCommunicate OK [04:53:17]wFMCommunicate request_size=16 [04:53:17]MH_SAM_APDU [04:53:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1E 4D AC 2C E7 12 [04:53:17]Write to MH i2c: E2 13 00 C6 14 80 0D 02 02 0B 00 00 35 04 06 00 1E 4D AC 2C E7 12 00 00 E5 [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:53:17]Read from MH i2c: E2 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 03 00 C6 14 00 90 00 4E [04:53:17]RAPDU: 90 00 [04:53:17]wFMCommunicate OK [04:53:17]wFMCommunicate request_size=4 [04:53:17]MH_SAM_APDU [04:53:17]CAPDU: 80 0D 03 02 [04:53:17]Write to MH i2c: E2 08 00 C7 14 80 0D 03 02 00 00 00 00 56 [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:53:17]Read from MH i2c: E2 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 0B 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 0B 00 C7 14 00 5A 3F 58 89 4F 09 DC 65 90 00 6A [04:53:17]RAPDU: 5A 3F 58 89 4F 09 DC 65 90 00 [04:53:17]wFMCommunicate OK [04:53:17]SAM_PROTO_SignData done [04:53:17]FM_MakeSignedData done [04:53:17]CreateOFDProtocolMessage [04:53:17]wFMCommunicate request_size=4 [04:53:17]MH_SAM_APDU [04:53:17]CAPDU: 80 11 00 00 [04:53:17]Write to MH i2c: E2 08 00 C8 14 80 11 00 00 00 00 00 00 56 [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:17]Read from MH i2c: E2 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 17 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: E2 17 00 C8 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [04:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:53:17]wFMCommunicate OK [04:53:17]CreateOFDProtocolMessage done [04:53:17]OFDSenderStorePacket 188026 [04:53:17]StoreOFDPacket docnum=188026 [04:53:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 46 2F 0D 01 81 E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 BD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DE 02 00 35 04 06 00 1E 4D AC 2C E7 12 5A 3F 58 89 4F 09 DC 65 [04:53:17]CheckFolder [04:53:17]dirname=/storage/ofd_packets [04:53:17]CheckFolder done [04:53:17]ProducePacketName [04:53:17]name=ofd_packets/00188026 [04:53:17]NVStorageSaveData ofd_packets/00188026 [04:53:17]File name is /storage/ofd_packets/00188026 [04:53:17]Write 307 bytes [04:53:17]NVStorageSaveData done [04:53:17]OFDSenderStorePacket done [04:53:17]KKMCreateOFDPacket done [04:53:17]NVStorageSaveData kkm_last_timestamp [04:53:17]File name is /storage/kkm_last_timestamp [04:53:17]Write 4 bytes [04:53:17]NVStorageSaveData done [04:53:17]ExternCall_PrintAddStr [04:53:17]wPrintStart [04:53:17]Write to MH i2c: 01 00 00 C9 14 DD [04:53:17]Write i2c OK [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: 01 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: 01 07 00 [04:53:17]MH_I2C_Read... [04:53:17]Read from MH i2c: 01 07 00 C9 14 00 00 00 00 00 FF 0F F2 [04:53:17]RasterBufferAndPrint [04:53:17]line Счет N : (1)210076 [04:53:17]line ИНН: 02508201610067 [04:53:17]line Контрольно-Кассовый Чек [04:53:17]line ПРОДАЖА [04:53:17]line ТРК (МРК, ГНК) : 11 [04:53:17]line Товар: 2710194210 [04:53:17]line D-ENERGY ДТ-К-5 [04:53:17]line 20.080 * 77.20 [04:53:17]line = 1550.18 [04:53:17]line НДС 12% НСП 1% [04:53:17]line > о реализуемом товаре [04:53:17]line ОКРУГЛЕНИЕ: -0.18 [04:53:17]line ИТОГО: 1550.00 [04:53:17]line Внесено: 1550.00 [04:53:17]line СДАЧА: 0.00 [04:53:17]line НСП 1% : 13.72 [04:53:17]line НДС 12% : 164.62 [04:53:17]line Наличными: 1550.00 [04:53:17]line Безнал.: 0.00 [04:53:17]line Место: АЗС № 86 "Партнер Нефть" [04:53:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [04:53:17]line СНО: Общий режим [04:53:17]line Чек 55 22.10.2024 04:53 [04:53:17]line Смена: 461 ФФД: 1.0 [04:53:17]line ЗНМ: 0300000155 [04:53:17]line РНМ: 0000000000100030 [04:53:17]line Версия ККМ: 001 [04:53:17]line ФМ: 0000000000965340 [04:53:17]line ФД: 188026 [04:53:17]line ФПД: 33318949938962 [04:53:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T045317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188026&fm=33318949938962&tin=02508201610067®Number=0000000000100030&sum=155000 [04:53:17]written 0, free lines is 4095 [04:53:17]OFD Sender: Processing packet 188026 [packets to send 1062, broken 1061] [04:53:17]ProducePacketName [04:53:17]name=ofd_packets/00188026 [04:53:17]OFD Sender: To server: pG, [04:53:17]CommunicateWithHost lk.salyk.kg:30040 [04:53:17]ConnectInit lk.salyk.kg [04:53:18]Connected sock=10 [04:53:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 46 2F 0D 01 81 E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 70 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8A 5D 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 5D 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4E 40 00 00 00 00 07 04 06 00 78 5D 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 BD 2F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DE 02 00 35 04 06 00 1E 4D AC 2C E7 12 5A 3F 58 89 4F 09 DC 65 [04:53:18]Write to MH i2c: 01 00 00 F4 14 08 [04:53:18]Write i2c OK [04:53:18]MH_I2C_Read... [04:53:18]Read from MH i2c: 01 [04:53:18]MH_I2C_Read... [04:53:18]Read from MH i2c: 01 07 00 [04:53:18]MH_I2C_Read... [04:53:18]Read from MH i2c: 01 07 00 F4 14 00 00 00 00 00 5C 0C 77 [04:53:18]RasterBufferAndPrint [04:53:18]line [04:53:18]line [04:53:18]line [04:53:18]line [04:53:18]line [04:53:18]written 0, free lines is 3167 [04:53:18]MH_Cut [04:53:18]Write to MH i2c: D1 01 00 FB 14 01 E1 [04:53:18]Write i2c OK [04:53:18]MH_I2C_Read... [04:53:18]Read from MH i2c: D1 [04:53:18]MH_I2C_Read... [04:53:18]Read from MH i2c: D1 01 00 [04:53:18]MH_I2C_Read... [04:53:18]Read from MH i2c: D1 01 00 FB 14 00 E0 [04:53:18]Write to MH i2c: 01 00 00 FC 14 10 [04:53:18]Write i2c OK [04:53:18]MH_I2C_Read... [04:53:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 7B 47 00 2A 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DE 02 00 F4 03 04 00 AB D9 16 67 B6 04 01 00 00 68 89 6A 69 BF 50 B8 A5 [04:53:18]CommunicateWithHost err = 0 [04:53:18]CheckOFDResponse [04:53:18]1017 (14) - 77093643461234 [04:53:18]1041 (16) - 0000000000965340 [04:53:18]1040 (4) - 188026 [04:53:18]1012 (4) - 21.10.2024 22:46 [04:53:18]1206 (1) - 0 [04:53:18]OFD Sender: Remove packet 188026 [04:53:18]ProducePacketName [04:53:18]name=ofd_packets/00188026 [04:53:18]NVStorageDeleteData [04:53:18]OFD Sender: No OFD packet to send [04:53:19]*** Cut start [04:53:19]*** Partial cut [04:53:19]*** CUTSNS_PIN = 1 [04:53:19]*** CUTSNS_PIN = 0 [04:53:19]*** Brake cut motor [04:53:20]Read from MH i2c: 01 [04:53:20]MH_I2C_Read... [04:53:20]*** Stop cut motor [04:53:20]*** Cut end [04:53:20]Read from MH i2c: 01 07 00 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: 01 07 00 FC 14 00 00 00 00 00 FF 0F 25 [04:53:20]process_action close_receipt done [04:53:20]requested_data is exist [04:53:20]produce_requested_data [04:53:20]requested_item fm.sn is exist - process it [04:53:20]wFMCommunicate request_size=4 [04:53:20]MH_SAM_APDU [04:53:20]CAPDU: 80 11 00 00 [04:53:20]Write to MH i2c: E2 08 00 FD 14 80 11 00 00 00 00 00 00 8B [04:53:20]Write i2c OK [04:53:20]MH_I2C_Read... [04:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:53:20]Read from MH i2c: E2 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: E2 17 00 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: E2 17 00 FD 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [04:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [04:53:20]wFMCommunicate OK [04:53:20]requested_item fd.num is exist - process it [04:53:20]SAM_PROTO_GetFieldsCounters [04:53:20]wFMCommunicate request_size=4 [04:53:20]MH_SAM_APDU [04:53:20]CAPDU: 80 13 00 00 [04:53:20]Write to MH i2c: E2 08 00 FE 14 80 13 00 00 00 00 00 00 8E [04:53:20]Write i2c OK [04:53:20]MH_I2C_Read... [04:53:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:53:20]Read from MH i2c: E2 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: E2 62 00 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: E2 62 00 FE 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DE 02 00 0E 04 04 00 CD 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 62 [04:53:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DE 02 00 0E 04 04 00 CD 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 [04:53:20]wFMCommunicate OK [04:53:20]SAM_PROTO_GetFieldsCounters done [04:53:20]requested_item shift.num is exist - process it [04:53:20]requested_item shift.opened is exist - process it [04:53:20]req_shift_opened [04:53:20]FM_GetShiftState [04:53:20]SAM_PROTO_GetShiftState [04:53:20]wFMCommunicate request_size=4 [04:53:20]MH_SAM_APDU [04:53:20]CAPDU: 80 13 01 00 [04:53:20]Write to MH i2c: E2 08 00 FF 14 80 13 01 00 00 00 00 00 90 [04:53:20]Write i2c OK [04:53:20]MH_I2C_Read... [04:53:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:53:20]Read from MH i2c: E2 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: E2 0E 00 [04:53:20]MH_I2C_Read... [04:53:20]Read from MH i2c: E2 0E 00 FF 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [04:53:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [04:53:20]wFMCommunicate OK [04:53:20]SAM_PROTO_GetShiftState done [04:53:20]FM_GetShiftState done [04:53:20]req_shift_opened done [04:53:20]requested_item shift.open_date is exist - process it [04:53:20]req_shift_open_date [04:53:20]req_shift_open_date done [04:53:20]produce_requested_data done [04:53:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188026,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [04:53:20]process_action_free close_receipt [04:53:20]json_value_free [04:53:20]json_value_free done [04:53:20]process_json_proto returns [04:53:20]Send response to host [04:53:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188026,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [04:53:20]free response buf [04:53:20]execute_script done [04:53:20]execute_script returns [04:53:20]free content buf [04:53:20]Sock 9.Close socket [04:53:20]Sock 9.Thread stoped [04:53:23]OFD Sender: No OFD packet to send [04:53:29]OFD Sender: No OFD packet to send [04:53:34]OFD Sender: No OFD packet to send [04:53:39]OFD Sender: No OFD packet to send [04:53:44]OFD Sender: No OFD packet to send [04:53:49]OFD Sender: No OFD packet to send [04:53:54]OFD Sender: No OFD packet to send [04:53:59]OFD Sender: No OFD packet to send [04:54:04]OFD Sender: No OFD packet to send [04:54:09]OFD Sender: No OFD packet to send [04:54:14]OFD Sender: No OFD packet to send [04:54:19]OFD Sender: No OFD packet to send [04:54:24]OFD Sender: No OFD packet to send [04:54:29]OFD Sender: No OFD packet to send [04:54:34]OFD Sender: No OFD packet to send [04:54:39]OFD Sender: No OFD packet to send [04:54:44]OFD Sender: No OFD packet to send [04:54:49]OFD Sender: No OFD packet to send [04:54:54]OFD Sender: No OFD packet to send [04:54:59]OFD Sender: No OFD packet to send [04:55:04]OFD Sender: No OFD packet to send [04:55:09]OFD Sender: No OFD packet to send [04:55:14]OFD Sender: No OFD packet to send [04:55:19]OFD Sender: No OFD packet to send [04:55:24]OFD Sender: No OFD packet to send [04:55:29]OFD Sender: No OFD packet to send [04:55:34]OFD Sender: No OFD packet to send [04:55:39]OFD Sender: No OFD packet to send [04:55:44]OFD Sender: No OFD packet to send [04:55:49]OFD Sender: No OFD packet to send [04:55:54]OFD Sender: No OFD packet to send [04:55:59]OFD Sender: No OFD packet to send [04:56:04]OFD Sender: No OFD packet to send [04:56:09]OFD Sender: No OFD packet to send [04:56:14]OFD Sender: No OFD packet to send [04:56:19]OFD Sender: No OFD packet to send [04:56:24]OFD Sender: No OFD packet to send [04:56:29]OFD Sender: No OFD packet to send [04:56:34]OFD Sender: No OFD packet to send [04:56:39]OFD Sender: No OFD packet to send [04:56:44]OFD Sender: No OFD packet to send [04:56:49]OFD Sender: No OFD packet to send [04:56:54]OFD Sender: No OFD packet to send [04:56:59]OFD Sender: No OFD packet to send [04:57:04]OFD Sender: No OFD packet to send [04:57:09]OFD Sender: No OFD packet to send [04:57:15]OFD Sender: No OFD packet to send [04:57:20]OFD Sender: No OFD packet to send [04:57:25]OFD Sender: No OFD packet to send [04:57:30]OFD Sender: No OFD packet to send [04:57:35]OFD Sender: No OFD packet to send [04:57:40]OFD Sender: No OFD packet to send [04:57:45]OFD Sender: No OFD packet to send [04:57:50]OFD Sender: No OFD packet to send [04:57:55]OFD Sender: No OFD packet to send [04:58:00]OFD Sender: No OFD packet to send [04:58:05]OFD Sender: No OFD packet to send [04:58:10]OFD Sender: No OFD packet to send [04:58:15]OFD Sender: No OFD packet to send [04:58:20]OFD Sender: No OFD packet to send [04:58:25]OFD Sender: No OFD packet to send [04:58:30]OFD Sender: No OFD packet to send [04:58:35]OFD Sender: No OFD packet to send [04:58:40]OFD Sender: No OFD packet to send [04:58:45]OFD Sender: No OFD packet to send [04:58:50]OFD Sender: No OFD packet to send [04:58:55]OFD Sender: No OFD packet to send [04:59:00]OFD Sender: No OFD packet to send [04:59:05]OFD Sender: No OFD packet to send [04:59:10]OFD Sender: No OFD packet to send [04:59:15]OFD Sender: No OFD packet to send [04:59:20]OFD Sender: No OFD packet to send [04:59:25]OFD Sender: No OFD packet to send [04:59:30]OFD Sender: No OFD packet to send [04:59:35]OFD Sender: No OFD packet to send [04:59:40]OFD Sender: No OFD packet to send [04:59:45]OFD Sender: No OFD packet to send [04:59:50]OFD Sender: No OFD packet to send [04:59:55]OFD Sender: No OFD packet to send [05:00:00]OFD Sender: No OFD packet to send [05:00:05]OFD Sender: No OFD packet to send [05:00:10]OFD Sender: No OFD packet to send [05:00:15]OFD Sender: No OFD packet to send [05:00:20]OFD Sender: No OFD packet to send [05:00:25]OFD Sender: No OFD packet to send [05:00:30]OFD Sender: No OFD packet to send [05:00:35]OFD Sender: No OFD packet to send [05:00:40]OFD Sender: No OFD packet to send [05:00:45]OFD Sender: No OFD packet to send [05:00:50]OFD Sender: No OFD packet to send [05:00:55]OFD Sender: No OFD packet to send [05:01:01]OFD Sender: No OFD packet to send [05:01:06]OFD Sender: No OFD packet to send [05:01:11]OFD Sender: No OFD packet to send [05:01:16]OFD Sender: No OFD packet to send [05:01:21]OFD Sender: No OFD packet to send [05:01:26]OFD Sender: No OFD packet to send [05:01:31]OFD Sender: No OFD packet to send [05:01:36]OFD Sender: No OFD packet to send [05:01:41]OFD Sender: No OFD packet to send [05:01:46]OFD Sender: No OFD packet to send [05:01:51]OFD Sender: No OFD packet to send [05:01:56]OFD Sender: No OFD packet to send [05:02:01]OFD Sender: No OFD packet to send [05:02:06]OFD Sender: No OFD packet to send [05:02:11]OFD Sender: No OFD packet to send [05:02:16]OFD Sender: No OFD packet to send [05:02:21]OFD Sender: No OFD packet to send [05:02:26]OFD Sender: No OFD packet to send [05:02:31]OFD Sender: No OFD packet to send [05:02:36]OFD Sender: No OFD packet to send [05:02:41]OFD Sender: No OFD packet to send [05:02:46]OFD Sender: No OFD packet to send [05:02:51]OFD Sender: No OFD packet to send [05:02:56]OFD Sender: No OFD packet to send [05:03:01]OFD Sender: No OFD packet to send [05:03:06]OFD Sender: No OFD packet to send [05:03:11]OFD Sender: No OFD packet to send [05:03:16]OFD Sender: No OFD packet to send [05:03:21]OFD Sender: No OFD packet to send [05:03:26]accept exits with 8 [05:03:26]New connection [05:03:26]New thread 3067055460 created [05:03:26]Thread 3067198820 joined [05:03:26]Waiting for new connection... [05:03:26] Sock 8.Parse request [05:03:26]Sock 8.Check first char [05:03:26]Sock 8.First char is OK [05:03:26]request: POST /json_proto HTTP/1.0 [05:03:26]Method: POST [05:03:26]URL: /json_proto [05:03:26]Method is POST - this is cgi request [05:03:26]url: /json_proto [05:03:26]query_string will be loaded in cgi processing [05:03:26]execute_cgi json_proto POST (null) [05:03:26]execute_cgi path=json_proto method=POST [05:03:26]POST find Content-Length [05:03:26]Host: 172.17.42.131:8080 [05:03:26]Content-Length: 674 [05:03:26]Content-Type: application/json [05:03:26] [05:03:26]POST finish read [05:03:26]Found Content-Length = 674 [05:03:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:26]execute_script... [05:03: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)210078", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:03:26]POST & json_proto [05:03:26]process_json_proto [05:03:26]json parsed OK: [05:03:26]protocol is kg_v1.0 [05:03:26]action value=close_receipt [05:03:26]process_action close_receipt [05:03:26]cmd_close_receipt [05:03:26]MH_GetDate [05:03:26]Write to MH i2c: F0 00 00 00 15 04 [05:03:26]Write i2c OK [05:03:26]MH_I2C_Read... [05:03:26]Read from MH i2c: F0 [05:03:26]MH_I2C_Read... [05:03:26]Read from MH i2c: F0 09 00 [05:03:26]MH_I2C_Read... [05:03:26]Read from MH i2c: F0 09 00 00 15 00 1F 32 17 67 A0 18 CA 66 C4 [05:03:26]GetLastDocTimeStamp 1729572797 [05:03:26]current date 1729573407 [05:03:26]FM_GetShiftState [05:03:26]SAM_PROTO_GetShiftState [05:03:26]wFMCommunicate request_size=4 [05:03:26]MH_SAM_APDU [05:03:26]CAPDU: 80 13 01 00 [05:03:26]Write to MH i2c: E2 08 00 01 15 80 13 01 00 00 00 00 00 93 [05:03:26]Write i2c OK [05:03:26]MH_I2C_Read... [05:03:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:26]Read from MH i2c: E2 [05:03:26]MH_I2C_Read... [05:03:26]Read from MH i2c: E2 0E 00 [05:03:26]MH_I2C_Read... [05:03:26]Read from MH i2c: E2 0E 00 01 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 88 [05:03:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:03:26]wFMCommunicate OK [05:03:26]SAM_PROTO_GetShiftState done [05:03:26]FM_GetShiftState done [05:03:26]opened in 1729556094 [05:03:26]opened+sec_in_day 1729642494 [05:03:26]quantity*price = 70027 [05:03:26]sum+1 = 70029 [05:03:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 56 22.10.2024 05:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188027 ФПД: 89498552879613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050327&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188027&fm=89498552879613&tin=02508201610067®Number=0000000000100030&sum=70000 [05:03:27]StoreToDocumentArchive [05:03:27]shift 461 fd 188027 [05:03:27]save to /storage/0461/doc_00188027 [05:03:27]save last doc name /storage/0461/doc_00188027 to /storage/kkm_last_doc_name [05:03:27]save OK [05:03:27]Clear old archive folders... [05:03:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:03:27]tlvbuf is B6EE4B50 [05:03:27]SAM_PROTO_ClearQueue [05:03:27]wFMCommunicate request_size=4 [05:03:27]MH_SAM_APDU [05:03:27]CAPDU: 80 09 00 00 [05:03:27]Write to MH i2c: E2 08 00 0E 15 80 09 00 00 00 00 00 00 95 [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:03:27]Read from MH i2c: E2 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 0E 15 00 90 00 97 [05:03:27]RAPDU: 90 00 [05:03:27]wFMCommunicate OK [05:03:27]SAM_PROTO_ClearQueue done [05:03:27]KKMCreateOFDPacket [05:03:27]OFDProtocolAddRootSTLVToBuf [05:03:27]FM_MakeSignedData [05:03:27]FM_MakeSignedData [05:03:27]SAM_PROTO_SignData [05:03:27]wFMCommunicate request_size=4 [05:03:27]MH_SAM_APDU [05:03:27]CAPDU: 80 0D 01 02 [05:03:27]Write to MH i2c: E2 08 00 0F 15 80 0D 01 02 00 00 00 00 9D [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:03:27]Read from MH i2c: E2 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 0F 15 00 90 00 98 [05:03:27]RAPDU: 90 00 [05:03:27]wFMCommunicate OK [05:03:27]wFMCommunicate request_size=255 [05:03:27]MH_SAM_APDU [05:03:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1F 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DE 02 00 35 04 06 00 51 66 01 73 [05:03:27]Write to MH i2c: E2 02 01 10 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1F 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DE 02 00 35 04 06 00 51 66 01 73 00 00 5F [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:27]Read from MH i2c: E2 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 10 15 00 90 00 99 [05:03:27]RAPDU: 90 00 [05:03:27]wFMCommunicate OK [05:03:27]wFMCommunicate request_size=7 [05:03:27]MH_SAM_APDU [05:03:27]CAPDU: 80 0D 02 02 02 C9 FD [05:03:27]Write to MH i2c: E2 0A 00 11 15 80 0D 02 02 02 00 C9 FD 00 00 6A [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:03:27]Read from MH i2c: E2 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 03 00 11 15 00 90 00 9A [05:03:27]RAPDU: 90 00 [05:03:27]wFMCommunicate OK [05:03:27]wFMCommunicate request_size=4 [05:03:27]MH_SAM_APDU [05:03:27]CAPDU: 80 0D 03 02 [05:03:27]Write to MH i2c: E2 08 00 12 15 80 0D 03 02 00 00 00 00 A2 [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:03:27]Read from MH i2c: E2 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 0B 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 0B 00 12 15 00 58 61 23 9E DF 95 C3 BC 90 00 10 [05:03:27]RAPDU: 58 61 23 9E DF 95 C3 BC 90 00 [05:03:27]wFMCommunicate OK [05:03:27]SAM_PROTO_SignData done [05:03:27]FM_MakeSignedData done [05:03:27]CreateOFDProtocolMessage [05:03:27]wFMCommunicate request_size=4 [05:03:27]MH_SAM_APDU [05:03:27]CAPDU: 80 11 00 00 [05:03:27]Write to MH i2c: E2 08 00 13 15 80 11 00 00 00 00 00 00 A2 [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:27]Read from MH i2c: E2 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 17 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: E2 17 00 13 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [05:03:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:03:27]wFMCommunicate OK [05:03:27]CreateOFDProtocolMessage done [05:03:27]OFDSenderStorePacket 188027 [05:03:27]StoreOFDPacket docnum=188027 [05:03:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 11 CD 04 01 B8 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1F 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DE 02 00 35 04 06 00 51 66 01 73 C9 FD 58 61 23 9E DF 95 C3 BC [05:03:27]CheckFolder [05:03:27]dirname=/storage/ofd_packets [05:03:27]CheckFolder done [05:03:27]ProducePacketName [05:03:27]name=ofd_packets/00188027 [05:03:27]NVStorageSaveData ofd_packets/00188027 [05:03:27]File name is /storage/ofd_packets/00188027 [05:03:27]Write 298 bytes [05:03:27]NVStorageSaveData done [05:03:27]OFDSenderStorePacket done [05:03:27]KKMCreateOFDPacket done [05:03:27]NVStorageSaveData kkm_last_timestamp [05:03:27]File name is /storage/kkm_last_timestamp [05:03:27]Write 4 bytes [05:03:27]NVStorageSaveData done [05:03:27]ExternCall_PrintAddStr [05:03:27]wPrintStart [05:03:27]Write to MH i2c: 01 00 00 14 15 29 [05:03:27]Write i2c OK [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: 01 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: 01 07 00 [05:03:27]MH_I2C_Read... [05:03:27]Read from MH i2c: 01 07 00 14 15 00 00 00 00 00 FF 0F 3E [05:03:27]RasterBufferAndPrint [05:03:27]line Счет N : (1)210078 [05:03:27]line ИНН: 02508201610067 [05:03:27]line Контрольно-Кассовый Чек [05:03:27]line ПРОДАЖА [05:03:27]line ТРК (МРК, ГНК) : 51 [05:03:27]line Товар: 2710194210 [05:03:27]line ДТ-К-5 [05:03:27]line 9.190 * 76.20 [05:03:27]line = 700.28 [05:03:27]line НДС 12% НСП 1% [05:03:27]line > о реализуемом товаре [05:03:27]line ОКРУГЛЕНИЕ: -0.28 [05:03:27]line ИТОГО: 700.00 [05:03:27]line Внесено: 700.00 [05:03:27]line СДАЧА: 0.00 [05:03:27]line НСП 1% : 6.20 [05:03:27]line НДС 12% : 74.37 [05:03:27]line Наличными: 700.00 [05:03:27]line Безнал.: 0.00 [05:03:27]line Место: АЗС № 86 "Партнер Нефть" [05:03:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:03:27]line СНО: Общий режим [05:03:27]line Чек 56 22.10.2024 05:03 [05:03:27]line Смена: 461 ФФД: 1.0 [05:03:27]line ЗНМ: 0300000155 [05:03:27]line РНМ: 0000000000100030 [05:03:27]line Версия ККМ: 001 [05:03:27]line ФМ: 0000000000965340 [05:03:27]line ФД: 188027 [05:03:27]line ФПД: 89498552879613 [05:03:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050327&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188027&fm=89498552879613&tin=02508201610067®Number=0000000000100030&sum=70000 [05:03:28]OFD Sender: Processing packet 188027 [packets to send 1062, broken 1061] [05:03:28]ProducePacketName [05:03:28]name=ofd_packets/00188027 [05:03:28]OFD Sender: To server: pG, [05:03:28]CommunicateWithHost lk.salyk.kg:30040 [05:03:28]ConnectInit lk.salyk.kg [05:03:28]written 0, free lines is 4095 [05:03:28]Connected sock=10 [05:03:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 11 CD 04 01 B8 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 1F 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DE 02 00 35 04 06 00 51 66 01 73 C9 FD 58 61 23 9E DF 95 C3 BC [05:03:28]Write to MH i2c: 01 00 00 3F 15 54 [05:03:28]Write i2c OK [05:03:28]MH_I2C_Read... [05:03:28]Read from MH i2c: 01 [05:03:28]MH_I2C_Read... [05:03:28]Read from MH i2c: 01 07 00 [05:03:28]MH_I2C_Read... [05:03:28]Read from MH i2c: 01 07 00 3F 15 00 00 00 00 00 57 0C BE [05:03:28]RasterBufferAndPrint [05:03:28]line [05:03:28]line [05:03:28]line [05:03:28]line [05:03:28]line [05:03:28]written 0, free lines is 3162 [05:03:28]MH_Cut [05:03:28]Write to MH i2c: D1 01 00 46 15 01 2D [05:03:28]Write i2c OK [05:03:28]MH_I2C_Read... [05:03:28]Read from MH i2c: D1 [05:03:28]MH_I2C_Read... [05:03:28]Read from MH i2c: D1 01 00 [05:03:28]MH_I2C_Read... [05:03:28]Read from MH i2c: D1 01 00 46 15 00 2C [05:03:28]Write to MH i2c: 01 00 00 47 15 5C [05:03:28]Write i2c OK [05:03:28]MH_I2C_Read... [05:03:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC 69 47 00 A9 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 39 36 35 33 34 30 10 04 04 00 7B DE 02 00 F4 03 04 00 0E DC 16 67 B6 04 01 00 00 A9 48 96 02 1F 45 5E 36 [05:03:28]CommunicateWithHost err = 0 [05:03:28]CheckOFDResponse [05:03:28]1017 (14) - 77093643461234 [05:03:28]1041 (16) - 0000000000965340 [05:03:28]1040 (4) - 188027 [05:03:28]1012 (4) - 21.10.2024 22:56 [05:03:28]1206 (1) - 0 [05:03:28]OFD Sender: Remove packet 188027 [05:03:28]ProducePacketName [05:03:28]name=ofd_packets/00188027 [05:03:28]NVStorageDeleteData [05:03:29]OFD Sender: No OFD packet to send [05:03:29]*** Cut start [05:03:29]*** Partial cut [05:03:29]*** CUTSNS_PIN = 1 [05:03:29]*** CUTSNS_PIN = 0 [05:03:30]*** Brake cut motor [05:03:30]Read from MH i2c: 01 [05:03:30]MH_I2C_Read... [05:03:30]*** Stop cut motor [05:03:30]*** Cut end [05:03:30]Read from MH i2c: 01 07 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: 01 07 00 47 15 00 00 00 00 00 FF 0F 71 [05:03:30]process_action close_receipt done [05:03:30]requested_data is exist [05:03:30]produce_requested_data [05:03:30]requested_item fm.sn is exist - process it [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 11 00 00 [05:03:30]Write to MH i2c: E2 08 00 48 15 80 11 00 00 00 00 00 00 D7 [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 17 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 17 00 48 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [05:03:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:03:30]wFMCommunicate OK [05:03:30]requested_item fd.num is exist - process it [05:03:30]SAM_PROTO_GetFieldsCounters [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 13 00 00 [05:03:30]Write to MH i2c: E2 08 00 49 15 80 13 00 00 00 00 00 00 DA [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 62 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 62 00 49 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B DE 02 00 0E 04 04 00 CD 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 B2 [05:03:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B DE 02 00 0E 04 04 00 CD 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 [05:03:30]wFMCommunicate OK [05:03:30]SAM_PROTO_GetFieldsCounters done [05:03:30]requested_item shift.num is exist - process it [05:03:30]requested_item shift.opened is exist - process it [05:03:30]req_shift_opened [05:03:30]FM_GetShiftState [05:03:30]SAM_PROTO_GetShiftState [05:03:30]wFMCommunicate request_size=4 [05:03:30]MH_SAM_APDU [05:03:30]CAPDU: 80 13 01 00 [05:03:30]Write to MH i2c: E2 08 00 4A 15 80 13 01 00 00 00 00 00 DC [05:03:30]Write i2c OK [05:03:30]MH_I2C_Read... [05:03:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:03:30]Read from MH i2c: E2 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 0E 00 [05:03:30]MH_I2C_Read... [05:03:30]Read from MH i2c: E2 0E 00 4A 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [05:03:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:03:30]wFMCommunicate OK [05:03:30]SAM_PROTO_GetShiftState done [05:03:30]FM_GetShiftState done [05:03:30]req_shift_opened done [05:03:30]requested_item shift.open_date is exist - process it [05:03:30]req_shift_open_date [05:03:30]req_shift_open_date done [05:03:30]produce_requested_data done [05:03:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188027,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:03:30]process_action_free close_receipt [05:03:30]json_value_free [05:03:30]json_value_free done [05:03:30]process_json_proto returns [05:03:30]Send response to host [05:03:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188027,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:03:30]free response buf [05:03:30]execute_script done [05:03:30]execute_script returns [05:03:30]free content buf [05:03:30]Sock 8.Close socket [05:03:30]Sock 8.Thread stoped [05:03:34]OFD Sender: No OFD packet to send [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:18]accept exits with 9 [05:04:18]New connection [05:04:18]New thread 3067198820 created [05:04:18]Thread 3067055460 joined [05:04:18]Waiting for new connection... [05:04:18] Sock 9.Parse request [05:04:18]Sock 9.Check first char [05:04:18]Sock 9.First char is OK [05:04:18]request: POST /json_proto HTTP/1.0 [05:04:18]Method: POST [05:04:18]URL: /json_proto [05:04:18]Method is POST - this is cgi request [05:04:18]url: /json_proto [05:04:18]query_string will be loaded in cgi processing [05:04:18]execute_cgi json_proto POST (null) [05:04:18]execute_cgi path=json_proto method=POST [05:04:18]POST find Content-Length [05:04:18]Host: 172.17.42.131:8080 [05:04:18]Content-Length: 683 [05:04:18]Content-Type: application/json [05:04:18] [05:04:18]POST finish read [05:04:18]Found Content-Length = 683 [05:04:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:04:18]execute_script... [05:04: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)210079", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:04:18]POST & json_proto [05:04:18]process_json_proto [05:04:18]json parsed OK: [05:04:18]protocol is kg_v1.0 [05:04:18]action value=close_receipt [05:04:18]process_action close_receipt [05:04:18]cmd_close_receipt [05:04:18]MH_GetDate [05:04:18]Write to MH i2c: F0 00 00 4B 15 4F [05:04:18]Write i2c OK [05:04:18]MH_I2C_Read... [05:04:18]Read from MH i2c: F0 [05:04:18]MH_I2C_Read... [05:04:18]Read from MH i2c: F0 09 00 [05:04:18]MH_I2C_Read... [05:04:18]Read from MH i2c: F0 09 00 4B 15 00 54 32 17 67 A0 18 CA 66 44 [05:04:18]GetLastDocTimeStamp 1729573407 [05:04:18]current date 1729573460 [05:04:18]FM_GetShiftState [05:04:18]SAM_PROTO_GetShiftState [05:04:18]wFMCommunicate request_size=4 [05:04:18]MH_SAM_APDU [05:04:18]CAPDU: 80 13 01 00 [05:04:18]Write to MH i2c: E2 08 00 4C 15 80 13 01 00 00 00 00 00 DE [05:04:18]Write i2c OK [05:04:18]MH_I2C_Read... [05:04:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:18]Read from MH i2c: E2 [05:04:18]MH_I2C_Read... [05:04:18]Read from MH i2c: E2 0E 00 [05:04:18]MH_I2C_Read... [05:04:18]Read from MH i2c: E2 0E 00 4C 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D3 [05:04:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:04:18]wFMCommunicate OK [05:04:18]SAM_PROTO_GetShiftState done [05:04:18]FM_GetShiftState done [05:04:18]opened in 1729556094 [05:04:18]opened+sec_in_day 1729642494 [05:04:18]quantity*price = 50025 [05:04:18]sum+1 = 50027 [05:04:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 57 22.10.2024 05:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188028 ФПД: 10404024825325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050420&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188028&fm=10404024825325&tin=02508201610067®Number=0000000000100030&sum=50000 [05:04:19]StoreToDocumentArchive [05:04:19]shift 461 fd 188028 [05:04:19]save to /storage/0461/doc_00188028 [05:04:19]save last doc name /storage/0461/doc_00188028 to /storage/kkm_last_doc_name [05:04:19]save OK [05:04:19]Clear old archive folders... [05:04:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:04:19]tlvbuf is 01BC27E0 [05:04:19]SAM_PROTO_ClearQueue [05:04:19]wFMCommunicate request_size=4 [05:04:19]MH_SAM_APDU [05:04:19]CAPDU: 80 09 00 00 [05:04:19]Write to MH i2c: E2 08 00 59 15 80 09 00 00 00 00 00 00 E0 [05:04:19]Write i2c OK [05:04:19]MH_I2C_Read... [05:04:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:04:19]Read from MH i2c: E2 [05:04:19]MH_I2C_Read... [05:04:19]Read from MH i2c: E2 03 00 [05:04:19]MH_I2C_Read... [05:04:19]Read from MH i2c: E2 03 00 59 15 00 90 00 E2 [05:04:19]RAPDU: 90 00 [05:04:19]wFMCommunicate OK [05:04:19]SAM_PROTO_ClearQueue done [05:04:19]KKMCreateOFDPacket [05:04:19]OFDProtocolAddRootSTLVToBuf [05:04:19]FM_MakeSignedData [05:04:19]FM_MakeSignedData [05:04:19]SAM_PROTO_SignData [05:04:19]wFMCommunicate request_size=4 [05:04:19]MH_SAM_APDU [05:04:19]CAPDU: 80 0D 01 02 [05:04:19]Write to MH i2c: E2 08 00 5A 15 80 0D 01 02 00 00 00 00 E8 [05:04:19]Write i2c OK [05:04:19]MH_I2C_Read... [05:04:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:04:19]Read from MH i2c: E2 [05:04:19]MH_I2C_Read... [05:04:19]Read from MH i2c: E2 03 00 [05:04:19]MH_I2C_Read... [05:04:19]Read from MH i2c: E2 03 00 5A 15 00 90 00 E3 [05:04:19]RAPDU: 90 00 [05:04:19]wFMCommunicate OK [05:04:19]wFMCommunicate request_size=255 [05:04:19]MH_SAM_APDU [05:04:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 39 00 00 00 F4 03 04 00 54 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DE 02 [05:04:19]Write to MH i2c: E2 02 01 5B 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 39 00 00 00 F4 03 04 00 54 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DE 02 00 00 5C [05:04:19]Write i2c OK [05:04:19]MH_I2C_Read... [05:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:20]Read from MH i2c: E2 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 03 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 03 00 5B 15 00 90 00 E4 [05:04:20]RAPDU: 90 00 [05:04:20]wFMCommunicate OK [05:04:20]wFMCommunicate request_size=16 [05:04:20]MH_SAM_APDU [05:04:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 09 76 60 34 35 ED [05:04:20]Write to MH i2c: E2 13 00 5C 15 80 0D 02 02 0B 00 00 35 04 06 00 09 76 60 34 35 ED 00 00 75 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:04:20]Read from MH i2c: E2 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 03 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 03 00 5C 15 00 90 00 E5 [05:04:20]RAPDU: 90 00 [05:04:20]wFMCommunicate OK [05:04:20]wFMCommunicate request_size=4 [05:04:20]MH_SAM_APDU [05:04:20]CAPDU: 80 0D 03 02 [05:04:20]Write to MH i2c: E2 08 00 5D 15 80 0D 03 02 00 00 00 00 ED [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:04:20]Read from MH i2c: E2 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 0B 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 0B 00 5D 15 00 A3 E8 92 96 59 B3 0C E0 90 00 99 [05:04:20]RAPDU: A3 E8 92 96 59 B3 0C E0 90 00 [05:04:20]wFMCommunicate OK [05:04:20]SAM_PROTO_SignData done [05:04:20]FM_MakeSignedData done [05:04:20]CreateOFDProtocolMessage [05:04:20]wFMCommunicate request_size=4 [05:04:20]MH_SAM_APDU [05:04:20]CAPDU: 80 11 00 00 [05:04:20]Write to MH i2c: E2 08 00 5E 15 80 11 00 00 00 00 00 00 ED [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:20]Read from MH i2c: E2 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 17 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: E2 17 00 5E 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [05:04:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:04:20]wFMCommunicate OK [05:04:20]CreateOFDProtocolMessage done [05:04:20]OFDSenderStorePacket 188028 [05:04:20]StoreOFDPacket docnum=188028 [05:04:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0E 3B 0D 01 AD 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 39 00 00 00 F4 03 04 00 54 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DE 02 00 35 04 06 00 09 76 60 34 35 ED A3 E8 92 96 59 B3 0C E0 [05:04:20]CheckFolder [05:04:20]dirname=/storage/ofd_packets [05:04:20]CheckFolder done [05:04:20]ProducePacketName [05:04:20]name=ofd_packets/00188028 [05:04:20]NVStorageSaveData ofd_packets/00188028 [05:04:20]File name is /storage/ofd_packets/00188028 [05:04:20]Write 307 bytes [05:04:20]NVStorageSaveData done [05:04:20]OFDSenderStorePacket done [05:04:20]KKMCreateOFDPacket done [05:04:20]NVStorageSaveData kkm_last_timestamp [05:04:20]File name is /storage/kkm_last_timestamp [05:04:20]Write 4 bytes [05:04:20]NVStorageSaveData done [05:04:20]ExternCall_PrintAddStr [05:04:20]wPrintStart [05:04:20]Write to MH i2c: 01 00 00 5F 15 74 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: 01 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: 01 07 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: 01 07 00 5F 15 00 00 00 00 00 FF 0F 89 [05:04:20]RasterBufferAndPrint [05:04:20]line Счет N : (1)210079 [05:04:20]line ИНН: 02508201610067 [05:04:20]line Контрольно-Кассовый Чек [05:04:20]line ПРОДАЖА [05:04:20]line ТРК (МРК, ГНК) : 31 [05:04:20]line Товар: 2710194210 [05:04:20]line D-ENERGY ДТ-К-5 [05:04:20]line 6.480 * 77.20 [05:04:20]line = 500.26 [05:04:20]line НДС 12% НСП 1% [05:04:20]line > о реализуемом товаре [05:04:20]line ОКРУГЛЕНИЕ: -0.26 [05:04:20]line ИТОГО: 500.00 [05:04:20]line Внесено: 500.00 [05:04:20]line СДАЧА: 0.00 [05:04:20]line НСП 1% : 4.43 [05:04:20]line НДС 12% : 53.12 [05:04:20]line Наличными: 500.00 [05:04:20]line Безнал.: 0.00 [05:04:20]line Место: АЗС № 86 "Партнер Нефть" [05:04:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:04:20]line СНО: Общий режим [05:04:20]line Чек 57 22.10.2024 05:04 [05:04:20]line Смена: 461 ФФД: 1.0 [05:04:20]line ЗНМ: 0300000155 [05:04:20]line РНМ: 0000000000100030 [05:04:20]line Версия ККМ: 001 [05:04:20]line ФМ: 0000000000965340 [05:04:20]line ФД: 188028 [05:04:20]line ФПД: 10404024825325 [05:04:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T050420&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188028&fm=10404024825325&tin=02508201610067®Number=0000000000100030&sum=50000 [05:04:20]written 0, free lines is 4095 [05:04:20]OFD Sender: Processing packet 188028 [packets to send 1062, broken 1061] [05:04:20]ProducePacketName [05:04:20]name=ofd_packets/00188028 [05:04:20]OFD Sender: To server: pG, [05:04:20]CommunicateWithHost lk.salyk.kg:30040 [05:04:20]ConnectInit lk.salyk.kg [05:04:20]Connected sock=10 [05:04:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0E 3B 0D 01 AD 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 39 00 00 00 F4 03 04 00 54 32 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DE 02 00 35 04 06 00 09 76 60 34 35 ED A3 E8 92 96 59 B3 0C E0 [05:04:20]Write to MH i2c: 01 00 00 8A 15 9F [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: 01 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: 01 07 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: 01 07 00 8A 15 00 00 00 00 00 5F 0C 11 [05:04:20]RasterBufferAndPrint [05:04:20]line [05:04:20]line [05:04:20]line [05:04:20]line [05:04:20]line [05:04:20]written 0, free lines is 3171 [05:04:20]MH_Cut [05:04:20]Write to MH i2c: D1 01 00 91 15 01 78 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: D1 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: D1 01 00 [05:04:20]MH_I2C_Read... [05:04:20]Read from MH i2c: D1 01 00 91 15 00 77 [05:04:20]Write to MH i2c: 01 00 00 92 15 A7 [05:04:20]Write i2c OK [05:04:20]MH_I2C_Read... [05:04:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 80 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 7C DE 02 00 F4 03 04 00 42 DC 16 67 B6 04 01 00 00 FD 87 76 11 39 01 BD 0F [05:04:20]CommunicateWithHost err = 0 [05:04:20]CheckOFDResponse [05:04:20]1017 (14) - 77093643461234 [05:04:20]1041 (16) - 0000000000965340 [05:04:20]1040 (4) - 188028 [05:04:20]1012 (4) - 21.10.2024 22:57 [05:04:20]1206 (1) - 0 [05:04:20]OFD Sender: Remove packet 188028 [05:04:20]ProducePacketName [05:04:20]name=ofd_packets/00188028 [05:04:20]NVStorageDeleteData [05:04:21]OFD Sender: No OFD packet to send [05:04:22]*** Cut start [05:04:22]*** Partial cut [05:04:22]*** CUTSNS_PIN = 1 [05:04:22]*** CUTSNS_PIN = 0 [05:04:22]*** Brake cut motor [05:04:22]Read from MH i2c: 01 [05:04:22]MH_I2C_Read... [05:04:22]*** Stop cut motor [05:04:22]*** Cut end [05:04:22]Read from MH i2c: 01 07 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: 01 07 00 92 15 00 00 00 00 00 FF 0F BC [05:04:22]process_action close_receipt done [05:04:22]requested_data is exist [05:04:22]produce_requested_data [05:04:22]requested_item fm.sn is exist - process it [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 11 00 00 [05:04:22]Write to MH i2c: E2 08 00 93 15 80 11 00 00 00 00 00 00 22 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 17 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 17 00 93 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [05:04:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:04:22]wFMCommunicate OK [05:04:22]requested_item fd.num is exist - process it [05:04:22]SAM_PROTO_GetFieldsCounters [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 13 00 00 [05:04:22]Write to MH i2c: E2 08 00 94 15 80 13 00 00 00 00 00 00 25 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 62 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 62 00 94 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C DE 02 00 0E 04 04 00 CD 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 01 [05:04:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C DE 02 00 0E 04 04 00 CD 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 [05:04:22]wFMCommunicate OK [05:04:22]SAM_PROTO_GetFieldsCounters done [05:04:22]requested_item shift.num is exist - process it [05:04:22]requested_item shift.opened is exist - process it [05:04:22]req_shift_opened [05:04:22]FM_GetShiftState [05:04:22]SAM_PROTO_GetShiftState [05:04:22]wFMCommunicate request_size=4 [05:04:22]MH_SAM_APDU [05:04:22]CAPDU: 80 13 01 00 [05:04:22]Write to MH i2c: E2 08 00 95 15 80 13 01 00 00 00 00 00 27 [05:04:22]Write i2c OK [05:04:22]MH_I2C_Read... [05:04:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:04:22]Read from MH i2c: E2 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 0E 00 [05:04:22]MH_I2C_Read... [05:04:22]Read from MH i2c: E2 0E 00 95 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [05:04:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:04:22]wFMCommunicate OK [05:04:22]SAM_PROTO_GetShiftState done [05:04:22]FM_GetShiftState done [05:04:22]req_shift_opened done [05:04:22]requested_item shift.open_date is exist - process it [05:04:22]req_shift_open_date [05:04:22]req_shift_open_date done [05:04:22]produce_requested_data done [05:04:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188028,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:04:22]process_action_free close_receipt [05:04:22]json_value_free [05:04:22]json_value_free done [05:04:22]process_json_proto returns [05:04:22]Send response to host [05:04:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188028,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:04:22]free response buf [05:04:22]execute_script done [05:04:22]execute_script returns [05:04:22]free content buf [05:04:22]Sock 9.Close socket [05:04:22]Sock 9.Thread stoped [05:04:26]OFD Sender: No OFD packet to send [05:04:31]OFD Sender: No OFD packet to send [05:04:36]OFD Sender: No OFD packet to send [05:04:41]OFD Sender: No OFD packet to send [05:04:46]OFD Sender: No OFD packet to send [05:04:51]OFD Sender: No OFD packet to send [05:04:56]OFD Sender: No OFD packet to send [05:05:01]OFD Sender: No OFD packet to send [05:05:06]OFD Sender: No OFD packet to send [05:05:11]OFD Sender: No OFD packet to send [05:05:16]OFD Sender: No OFD packet to send [05:05:21]OFD Sender: No OFD packet to send [05:05:26]OFD Sender: No OFD packet to send [05:05:31]OFD Sender: No OFD packet to send [05:05:36]OFD Sender: No OFD packet to send [05:05:41]OFD Sender: No OFD packet to send [05:05:46]OFD Sender: No OFD packet to send [05:05:51]OFD Sender: No OFD packet to send [05:05:56]OFD Sender: No OFD packet to send [05:06:01]OFD Sender: No OFD packet to send [05:06:06]OFD Sender: No OFD packet to send [05:06:11]OFD Sender: No OFD packet to send [05:06:16]OFD Sender: No OFD packet to send [05:06:21]OFD Sender: No OFD packet to send [05:06:26]OFD Sender: No OFD packet to send [05:06:31]OFD Sender: No OFD packet to send [05:06:36]OFD Sender: No OFD packet to send [05:06:42]OFD Sender: No OFD packet to send [05:06:47]OFD Sender: No OFD packet to send [05:06:52]OFD Sender: No OFD packet to send [05:06:57]OFD Sender: No OFD packet to send [05:07:02]OFD Sender: No OFD packet to send [05:07:07]OFD Sender: No OFD packet to send [05:07:12]OFD Sender: No OFD packet to send [05:07:17]OFD Sender: No OFD packet to send [05:07:22]OFD Sender: No OFD packet to send [05:07:27]OFD Sender: No OFD packet to send [05:07:32]OFD Sender: No OFD packet to send [05:07:37]OFD Sender: No OFD packet to send [05:07:42]OFD Sender: No OFD packet to send [05:07:47]OFD Sender: No OFD packet to send [05:07:52]OFD Sender: No OFD packet to send [05:07:57]OFD Sender: No OFD packet to send [05:08:02]OFD Sender: No OFD packet to send [05:08:07]OFD Sender: No OFD packet to send [05:08:12]OFD Sender: No OFD packet to send [05:08:17]OFD Sender: No OFD packet to send [05:08:22]OFD Sender: No OFD packet to send [05:08:27]OFD Sender: No OFD packet to send [05:08:32]OFD Sender: No OFD packet to send [05:08:37]OFD Sender: No OFD packet to send [05:08:42]OFD Sender: No OFD packet to send [05:08:47]OFD Sender: No OFD packet to send [05:08:52]OFD Sender: No OFD packet to send [05:08:57]OFD Sender: No OFD packet to send [05:09:02]OFD Sender: No OFD packet to send [05:09:07]OFD Sender: No OFD packet to send [05:09:12]OFD Sender: No OFD packet to send [05:09:17]OFD Sender: No OFD packet to send [05:09:22]OFD Sender: No OFD packet to send [05:09:27]OFD Sender: No OFD packet to send [05:09:32]OFD Sender: No OFD packet to send [05:09:37]OFD Sender: No OFD packet to send [05:09:42]OFD Sender: No OFD packet to send [05:09:47]OFD Sender: No OFD packet to send [05:09:52]OFD Sender: No OFD packet to send [05:09:57]OFD Sender: No OFD packet to send [05:10:02]OFD Sender: No OFD packet to send [05:10:07]OFD Sender: No OFD packet to send [05:10:12]OFD Sender: No OFD packet to send [05:10:17]OFD Sender: No OFD packet to send [05:10:22]OFD Sender: No OFD packet to send [05:10:28]OFD Sender: No OFD packet to send [05:10:33]OFD Sender: No OFD packet to send [05:10:38]OFD Sender: No OFD packet to send [05:10:43]OFD Sender: No OFD packet to send [05:10:48]OFD Sender: No OFD packet to send [05:10:53]OFD Sender: No OFD packet to send [05:10:58]OFD Sender: No OFD packet to send [05:11:03]OFD Sender: No OFD packet to send [05:11:08]OFD Sender: No OFD packet to send [05:11:13]OFD Sender: No OFD packet to send [05:11:18]OFD Sender: No OFD packet to send [05:11:23]OFD Sender: No OFD packet to send [05:11:28]OFD Sender: No OFD packet to send [05:11:33]OFD Sender: No OFD packet to send [05:11:38]OFD Sender: No OFD packet to send [05:11:43]OFD Sender: No OFD packet to send [05:11:48]OFD Sender: No OFD packet to send [05:11:53]OFD Sender: No OFD packet to send [05:11:58]OFD Sender: No OFD packet to send [05:12:03]OFD Sender: No OFD packet to send [05:12:08]OFD Sender: No OFD packet to send [05:12:13]OFD Sender: No OFD packet to send [05:12:18]OFD Sender: No OFD packet to send [05:12:23]OFD Sender: No OFD packet to send [05:12:28]OFD Sender: No OFD packet to send [05:12:33]OFD Sender: No OFD packet to send [05:12:38]OFD Sender: No OFD packet to send [05:12:43]OFD Sender: No OFD packet to send [05:12:48]OFD Sender: No OFD packet to send [05:12:53]OFD Sender: No OFD packet to send [05:12:58]OFD Sender: No OFD packet to send [05:13:03]OFD Sender: No OFD packet to send [05:13:08]OFD Sender: No OFD packet to send [05:13:13]OFD Sender: No OFD packet to send [05:13:18]OFD Sender: No OFD packet to send [05:13:23]OFD Sender: No OFD packet to send [05:13:28]OFD Sender: No OFD packet to send [05:13:33]OFD Sender: No OFD packet to send [05:13:38]OFD Sender: No OFD packet to send [05:13:39]accept exits with 8 [05:13:39]New connection [05:13:39]New thread 3067055460 created [05:13:39]Thread 3067198820 joined [05:13:39]Waiting for new connection... [05:13:39] Sock 8.Parse request [05:13:39]Sock 8.Check first char [05:13:39]Sock 8.First char is OK [05:13:39]request: POST /json_proto HTTP/1.0 [05:13:39]Method: POST [05:13:39]URL: /json_proto [05:13:39]Method is POST - this is cgi request [05:13:39]url: /json_proto [05:13:39]query_string will be loaded in cgi processing [05:13:39]execute_cgi json_proto POST (null) [05:13:39]execute_cgi path=json_proto method=POST [05:13:39]POST find Content-Length [05:13:39]Host: 172.17.42.131:8080 [05:13:39]Content-Length: 688 [05:13:39]Content-Type: application/json [05:13:39] [05:13:39]POST finish read [05:13:39]Found Content-Length = 688 [05:13:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [05:13:39]execute_script... [05:13: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)210080", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [05:13:39]POST & json_proto [05:13:39]process_json_proto [05:13:39]json parsed OK: [05:13:39]protocol is kg_v1.0 [05:13:39]action value=close_receipt [05:13:39]process_action close_receipt [05:13:39]cmd_close_receipt [05:13:39]MH_GetDate [05:13:39]Write to MH i2c: F0 00 00 96 15 9A [05:13:39]Write i2c OK [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: F0 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: F0 09 00 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: F0 09 00 96 15 00 85 34 17 67 A0 18 CA 66 C2 [05:13:39]GetLastDocTimeStamp 1729573460 [05:13:39]current date 1729574021 [05:13:39]FM_GetShiftState [05:13:39]SAM_PROTO_GetShiftState [05:13:39]wFMCommunicate request_size=4 [05:13:39]MH_SAM_APDU [05:13:39]CAPDU: 80 13 01 00 [05:13:39]Write to MH i2c: E2 08 00 97 15 80 13 01 00 00 00 00 00 29 [05:13:39]Write i2c OK [05:13:39]MH_I2C_Read... [05:13:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:39]Read from MH i2c: E2 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: E2 0E 00 [05:13:39]MH_I2C_Read... [05:13:39]Read from MH i2c: E2 0E 00 97 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1E [05:13:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:13:39]wFMCommunicate OK [05:13:39]SAM_PROTO_GetShiftState done [05:13:39]FM_GetShiftState done [05:13:39]opened in 1729556094 [05:13:39]opened+sec_in_day 1729642494 [05:13:39]quantity*price = 100051 [05:13:39]sum+1 = 100052 [05:13:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 58 22.10.2024 05:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188029 ФПД: 227878519406524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188029&fm=227878519406524&tin=02508201610067®Number=0000000000100030&sum=100000 [05:13:41]StoreToDocumentArchive [05:13:41]shift 461 fd 188029 [05:13:41]save to /storage/0461/doc_00188029 [05:13:41]save last doc name /storage/0461/doc_00188029 to /storage/kkm_last_doc_name [05:13:41]save OK [05:13:41]Clear old archive folders... [05:13:41]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:13:41]tlvbuf is B6EE4270 [05:13:41]SAM_PROTO_ClearQueue [05:13:41]wFMCommunicate request_size=4 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 09 00 00 [05:13:41]Write to MH i2c: E2 08 00 A4 15 80 09 00 00 00 00 00 00 2B [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 A4 15 00 90 00 2D [05:13:41]RAPDU: 90 00 [05:13:41]wFMCommunicate OK [05:13:41]SAM_PROTO_ClearQueue done [05:13:41]KKMCreateOFDPacket [05:13:41]OFDProtocolAddRootSTLVToBuf [05:13:41]FM_MakeSignedData [05:13:41]FM_MakeSignedData [05:13:41]SAM_PROTO_SignData [05:13:41]wFMCommunicate request_size=4 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 0D 01 02 [05:13:41]Write to MH i2c: E2 08 00 A5 15 80 0D 01 02 00 00 00 00 33 [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 A5 15 00 90 00 2E [05:13:41]RAPDU: 90 00 [05:13:41]wFMCommunicate OK [05:13:41]wFMCommunicate request_size=255 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 85 34 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DE 02 [05:13:41]Write to MH i2c: E2 02 01 A6 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 85 34 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DE 02 00 00 2C [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 A6 15 00 90 00 2F [05:13:41]RAPDU: 90 00 [05:13:41]wFMCommunicate OK [05:13:41]wFMCommunicate request_size=16 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CF 41 1A 33 7F BC [05:13:41]Write to MH i2c: E2 13 00 A7 15 80 0D 02 02 0B 00 00 35 04 06 00 CF 41 1A 33 7F BC 00 00 23 [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 03 00 A7 15 00 90 00 30 [05:13:41]RAPDU: 90 00 [05:13:41]wFMCommunicate OK [05:13:41]wFMCommunicate request_size=4 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 0D 03 02 [05:13:41]Write to MH i2c: E2 08 00 A8 15 80 0D 03 02 00 00 00 00 38 [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 0B 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 0B 00 A8 15 00 77 AB 0D DD 9B 00 C4 85 90 00 29 [05:13:41]RAPDU: 77 AB 0D DD 9B 00 C4 85 90 00 [05:13:41]wFMCommunicate OK [05:13:41]SAM_PROTO_SignData done [05:13:41]FM_MakeSignedData done [05:13:41]CreateOFDProtocolMessage [05:13:41]wFMCommunicate request_size=4 [05:13:41]MH_SAM_APDU [05:13:41]CAPDU: 80 11 00 00 [05:13:41]Write to MH i2c: E2 08 00 A9 15 80 11 00 00 00 00 00 00 38 [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:41]Read from MH i2c: E2 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 17 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: E2 17 00 A9 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [05:13:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:13:41]wFMCommunicate OK [05:13:41]CreateOFDProtocolMessage done [05:13:41]OFDSenderStorePacket 188029 [05:13:41]StoreOFDPacket docnum=188029 [05:13:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D8 4D 0D 01 9E C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 85 34 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DE 02 00 35 04 06 00 CF 41 1A 33 7F BC 77 AB 0D DD 9B 00 C4 85 [05:13:41]CheckFolder [05:13:41]dirname=/storage/ofd_packets [05:13:41]CheckFolder done [05:13:41]ProducePacketName [05:13:41]name=ofd_packets/00188029 [05:13:41]NVStorageSaveData ofd_packets/00188029 [05:13:41]File name is /storage/ofd_packets/00188029 [05:13:41]Write 307 bytes [05:13:41]NVStorageSaveData done [05:13:41]OFDSenderStorePacket done [05:13:41]KKMCreateOFDPacket done [05:13:41]NVStorageSaveData kkm_last_timestamp [05:13:41]File name is /storage/kkm_last_timestamp [05:13:41]Write 4 bytes [05:13:41]NVStorageSaveData done [05:13:41]ExternCall_PrintAddStr [05:13:41]wPrintStart [05:13:41]Write to MH i2c: 01 00 00 AA 15 BF [05:13:41]Write i2c OK [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: 01 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: 01 07 00 [05:13:41]MH_I2C_Read... [05:13:41]Read from MH i2c: 01 07 00 AA 15 00 00 00 00 00 FF 0F D4 [05:13:41]RasterBufferAndPrint [05:13:41]line Счет N : (1)210080 [05:13:41]line ИНН: 02508201610067 [05:13:41]line Контрольно-Кассовый Чек [05:13:41]line ПРОДАЖА [05:13:41]line ТРК (МРК, ГНК) : 11 [05:13:41]line Товар: 2710194210 [05:13:41]line D-ENERGY ДТ-К-5 [05:13:41]line 12.960 * 77.20 [05:13:41]line = 1000.51 [05:13:41]line НДС 12% НСП 1% [05:13:41]line > о реализуемом товаре [05:13:41]line ОКРУГЛЕНИЕ: -0.51 [05:13:41]line ИТОГО: 1000.00 [05:13:41]line Внесено: 1000.00 [05:13:41]line СДАЧА: 0.00 [05:13:41]line НСП 1% : 8.85 [05:13:41]line НДС 12% : 106.25 [05:13:41]line Наличными: 1000.00 [05:13:41]line Безнал.: 0.00 [05:13:41]line Место: АЗС № 86 "Партнер Нефть" [05:13:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:13:41]line СНО: Общий режим [05:13:41]line Чек 58 22.10.2024 05:13 [05:13:41]line Смена: 461 ФФД: 1.0 [05:13:41]line ЗНМ: 0300000155 [05:13:41]line РНМ: 0000000000100030 [05:13:41]line Версия ККМ: 001 [05:13:41]line ФМ: 0000000000965340 [05:13:41]line ФД: 188029 [05:13:41]line ФПД: 227878519406524 [05:13:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051341&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188029&fm=227878519406524&tin=02508201610067®Number=0000000000100030&sum=100000 [05:13:41]written 0, free lines is 4095 [05:13:41]OFD Sender: Processing packet 188029 [packets to send 1062, broken 1061] [05:13:41]ProducePacketName [05:13:41]name=ofd_packets/00188029 [05:13:41]OFD Sender: To server: pG, [05:13:41]CommunicateWithHost lk.salyk.kg:30040 [05:13:41]ConnectInit lk.salyk.kg [05:13:41]Connected sock=11 [05:13:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D8 4D 0D 01 9E C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 85 34 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DE 02 00 35 04 06 00 CF 41 1A 33 7F BC 77 AB 0D DD 9B 00 C4 85 [05:13:42]Write to MH i2c: 01 00 00 D5 15 EA [05:13:42]Write i2c OK [05:13:42]MH_I2C_Read... [05:13:42]Read from MH i2c: 01 [05:13:42]MH_I2C_Read... [05:13:42]Read from MH i2c: 01 07 00 [05:13:42]MH_I2C_Read... [05:13:42]Read from MH i2c: 01 07 00 D5 15 00 00 00 00 00 57 0C 54 [05:13:42]RasterBufferAndPrint [05:13:42]line [05:13:42]line [05:13:42]line [05:13:42]line [05:13:42]line [05:13:42]written 0, free lines is 3162 [05:13:42]MH_Cut [05:13:42]Write to MH i2c: D1 01 00 DC 15 01 C3 [05:13:42]Write i2c OK [05:13:42]MH_I2C_Read... [05:13:42]Read from MH i2c: D1 [05:13:42]MH_I2C_Read... [05:13:42]Read from MH i2c: D1 01 00 [05:13:42]MH_I2C_Read... [05:13:42]Read from MH i2c: D1 01 00 DC 15 00 C2 [05:13:42]Write to MH i2c: 01 00 00 DD 15 F2 [05:13:42]Write i2c OK [05:13:42]MH_I2C_Read... [05:13:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 95 47 00 75 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DE 02 00 F4 03 04 00 73 DE 16 67 B6 04 01 00 00 6A 17 D0 CE 25 91 E8 67 [05:13:42]CommunicateWithHost err = 0 [05:13:42]CheckOFDResponse [05:13:42]1017 (14) - 77093643461234 [05:13:42]1041 (16) - 0000000000965340 [05:13:42]1040 (4) - 188029 [05:13:42]1012 (4) - 21.10.2024 23:06 [05:13:42]1206 (1) - 0 [05:13:42]OFD Sender: Remove packet 188029 [05:13:42]ProducePacketName [05:13:42]name=ofd_packets/00188029 [05:13:42]NVStorageDeleteData [05:13:42]OFD Sender: No OFD packet to send [05:13:43]*** Cut start [05:13:43]*** Partial cut [05:13:43]*** CUTSNS_PIN = 1 [05:13:43]*** CUTSNS_PIN = 0 [05:13:43]*** Brake cut motor [05:13:43]Read from MH i2c: 01 [05:13:43]MH_I2C_Read... [05:13:43]*** Stop cut motor [05:13:43]*** Cut end [05:13:43]Read from MH i2c: 01 07 00 [05:13:43]MH_I2C_Read... [05:13:43]Read from MH i2c: 01 07 00 DD 15 00 00 00 00 00 FF 0F 07 [05:13:43]process_action close_receipt done [05:13:43]requested_data is exist [05:13:43]produce_requested_data [05:13:43]requested_item fm.sn is exist - process it [05:13:43]wFMCommunicate request_size=4 [05:13:43]MH_SAM_APDU [05:13:43]CAPDU: 80 11 00 00 [05:13:43]Write to MH i2c: E2 08 00 DE 15 80 11 00 00 00 00 00 00 6D [05:13:43]Write i2c OK [05:13:43]MH_I2C_Read... [05:13:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:13:44]Read from MH i2c: E2 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 17 00 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 17 00 DE 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [05:13:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:13:44]wFMCommunicate OK [05:13:44]requested_item fd.num is exist - process it [05:13:44]SAM_PROTO_GetFieldsCounters [05:13:44]wFMCommunicate request_size=4 [05:13:44]MH_SAM_APDU [05:13:44]CAPDU: 80 13 00 00 [05:13:44]Write to MH i2c: E2 08 00 DF 15 80 13 00 00 00 00 00 00 70 [05:13:44]Write i2c OK [05:13:44]MH_I2C_Read... [05:13:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:13:44]Read from MH i2c: E2 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 62 00 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 62 00 DF 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D DE 02 00 0E 04 04 00 CD 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 50 [05:13:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D DE 02 00 0E 04 04 00 CD 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 [05:13:44]wFMCommunicate OK [05:13:44]SAM_PROTO_GetFieldsCounters done [05:13:44]requested_item shift.num is exist - process it [05:13:44]requested_item shift.opened is exist - process it [05:13:44]req_shift_opened [05:13:44]FM_GetShiftState [05:13:44]SAM_PROTO_GetShiftState [05:13:44]wFMCommunicate request_size=4 [05:13:44]MH_SAM_APDU [05:13:44]CAPDU: 80 13 01 00 [05:13:44]Write to MH i2c: E2 08 00 E0 15 80 13 01 00 00 00 00 00 72 [05:13:44]Write i2c OK [05:13:44]MH_I2C_Read... [05:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:13:44]Read from MH i2c: E2 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 0E 00 [05:13:44]MH_I2C_Read... [05:13:44]Read from MH i2c: E2 0E 00 E0 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [05:13:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:13:44]wFMCommunicate OK [05:13:44]SAM_PROTO_GetShiftState done [05:13:44]FM_GetShiftState done [05:13:44]req_shift_opened done [05:13:44]requested_item shift.open_date is exist - process it [05:13:44]req_shift_open_date [05:13:44]req_shift_open_date done [05:13:44]produce_requested_data done [05:13:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188029,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:13:44]process_action_free close_receipt [05:13:44]json_value_free [05:13:44]json_value_free done [05:13:44]process_json_proto returns [05:13:44]Send response to host [05:13:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188029,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:13:44]free response buf [05:13:44]execute_script done [05:13:44]execute_script returns [05:13:44]free content buf [05:13:44]Sock 8.Close socket [05:13:44]Sock 8.Thread stoped [05:13:47]OFD Sender: No OFD packet to send [05:13:52]OFD Sender: No OFD packet to send [05:13:57]OFD Sender: No OFD packet to send [05:14:02]OFD Sender: No OFD packet to send [05:14:07]OFD Sender: No OFD packet to send [05:14:12]OFD Sender: No OFD packet to send [05:14:17]OFD Sender: No OFD packet to send [05:14:22]OFD Sender: No OFD packet to send [05:14:27]OFD Sender: No OFD packet to send [05:14:32]OFD Sender: No OFD packet to send [05:14:37]OFD Sender: No OFD packet to send [05:14:42]OFD Sender: No OFD packet to send [05:14:47]OFD Sender: No OFD packet to send [05:14:52]OFD Sender: No OFD packet to send [05:14:57]OFD Sender: No OFD packet to send [05:15:03]OFD Sender: No OFD packet to send [05:15:08]OFD Sender: No OFD packet to send [05:15:13]OFD Sender: No OFD packet to send [05:15:18]OFD Sender: No OFD packet to send [05:15:23]OFD Sender: No OFD packet to send [05:15:28]OFD Sender: No OFD packet to send [05:15:33]OFD Sender: No OFD packet to send [05:15:38]OFD Sender: No OFD packet to send [05:15:43]OFD Sender: No OFD packet to send [05:15:48]OFD Sender: No OFD packet to send [05:15:53]OFD Sender: No OFD packet to send [05:15:58]OFD Sender: No OFD packet to send [05:16:03]OFD Sender: No OFD packet to send [05:16:08]OFD Sender: No OFD packet to send [05:16:13]OFD Sender: No OFD packet to send [05:16:18]OFD Sender: No OFD packet to send [05:16:23]OFD Sender: No OFD packet to send [05:16:27]accept exits with 9 [05:16:27]New connection [05:16:27]New thread 3067198820 created [05:16:27]Thread 3067055460 joined [05:16:27]Waiting for new connection... [05:16:27] Sock 9.Parse request [05:16:27]Sock 9.Check first char [05:16:27]Sock 9.First char is OK [05:16:27]request: POST /json_proto HTTP/1.0 [05:16:27]Method: POST [05:16:27]URL: /json_proto [05:16:27]Method is POST - this is cgi request [05:16:27]url: /json_proto [05:16:27]query_string will be loaded in cgi processing [05:16:27]execute_cgi json_proto POST (null) [05:16:27]execute_cgi path=json_proto method=POST [05:16:27]POST find Content-Length [05:16:27]Host: 172.17.42.131:8080 [05:16:27]Content-Length: 682 [05:16:27]Content-Type: application/json [05:16:27] [05:16:27]POST finish read [05:16:27]Found Content-Length = 682 [05:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:27]execute_script... [05:16: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)210081", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:16:27]POST & json_proto [05:16:27]process_json_proto [05:16:27]json parsed OK: [05:16:27]protocol is kg_v1.0 [05:16:27]action value=close_receipt [05:16:27]process_action close_receipt [05:16:27]cmd_close_receipt [05:16:27]MH_GetDate [05:16:27]Write to MH i2c: F0 00 00 E1 15 E5 [05:16:27]Write i2c OK [05:16:27]MH_I2C_Read... [05:16:27]Read from MH i2c: F0 [05:16:27]MH_I2C_Read... [05:16:27]Read from MH i2c: F0 09 00 [05:16:27]MH_I2C_Read... [05:16:27]Read from MH i2c: F0 09 00 E1 15 00 2D 35 17 67 A0 18 CA 66 B6 [05:16:27]GetLastDocTimeStamp 1729574021 [05:16:27]current date 1729574189 [05:16:27]FM_GetShiftState [05:16:27]SAM_PROTO_GetShiftState [05:16:27]wFMCommunicate request_size=4 [05:16:27]MH_SAM_APDU [05:16:27]CAPDU: 80 13 01 00 [05:16:27]Write to MH i2c: E2 08 00 E2 15 80 13 01 00 00 00 00 00 74 [05:16:27]Write i2c OK [05:16:27]MH_I2C_Read... [05:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:27]Read from MH i2c: E2 [05:16:27]MH_I2C_Read... [05:16:27]Read from MH i2c: E2 0E 00 [05:16:27]MH_I2C_Read... [05:16:27]Read from MH i2c: E2 0E 00 E2 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 69 [05:16:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:16:27]wFMCommunicate OK [05:16:27]SAM_PROTO_GetShiftState done [05:16:27]FM_GetShiftState done [05:16:27]opened in 1729556094 [05:16:27]opened+sec_in_day 1729642494 [05:16:27]quantity*price = 100015 [05:16:27]sum+1 = 100017 [05:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 59 22.10.2024 05:16 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188030 ФПД: 127175567120107 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051629&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188030&fm=127175567120107&tin=02508201610067®Number=0000000000100030&sum=100000 [05:16:28]StoreToDocumentArchive [05:16:28]shift 461 fd 188030 [05:16:28]save to /storage/0461/doc_00188030 [05:16:28]save last doc name /storage/0461/doc_00188030 to /storage/kkm_last_doc_name [05:16:28]save OK [05:16:28]Clear old archive folders... [05:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:16:28]tlvbuf is 01BED0C0 [05:16:28]SAM_PROTO_ClearQueue [05:16:28]wFMCommunicate request_size=4 [05:16:28]MH_SAM_APDU [05:16:28]CAPDU: 80 09 00 00 [05:16:28]Write to MH i2c: E2 08 00 EF 15 80 09 00 00 00 00 00 00 76 [05:16:28]Write i2c OK [05:16:28]MH_I2C_Read... [05:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:16:28]Read from MH i2c: E2 [05:16:28]MH_I2C_Read... [05:16:28]Read from MH i2c: E2 03 00 [05:16:28]MH_I2C_Read... [05:16:28]Read from MH i2c: E2 03 00 EF 15 00 90 00 78 [05:16:28]RAPDU: 90 00 [05:16:28]wFMCommunicate OK [05:16:28]SAM_PROTO_ClearQueue done [05:16:28]KKMCreateOFDPacket [05:16:28]OFDProtocolAddRootSTLVToBuf [05:16:28]FM_MakeSignedData [05:16:28]FM_MakeSignedData [05:16:28]SAM_PROTO_SignData [05:16:28]wFMCommunicate request_size=4 [05:16:28]MH_SAM_APDU [05:16:28]CAPDU: 80 0D 01 02 [05:16:28]Write to MH i2c: E2 08 00 F0 15 80 0D 01 02 00 00 00 00 7E [05:16:28]Write i2c OK [05:16:28]MH_I2C_Read... [05:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:16:28]Read from MH i2c: E2 [05:16:28]MH_I2C_Read... [05:16:28]Read from MH i2c: E2 03 00 [05:16:28]MH_I2C_Read... [05:16:28]Read from MH i2c: E2 03 00 F0 15 00 90 00 79 [05:16:28]RAPDU: 90 00 [05:16:28]wFMCommunicate OK [05:16:28]wFMCommunicate request_size=255 [05:16:28]MH_SAM_APDU [05:16:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2D 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DE 02 00 35 04 06 00 73 [05:16:28]Write to MH i2c: E2 02 01 F1 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2D 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DE 02 00 35 04 06 00 73 00 00 A5 [05:16:28]Write i2c OK [05:16:28]MH_I2C_Read... [05:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:29]Read from MH i2c: E2 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 03 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 03 00 F1 15 00 90 00 7A [05:16:29]RAPDU: 90 00 [05:16:29]wFMCommunicate OK [05:16:29]wFMCommunicate request_size=10 [05:16:29]MH_SAM_APDU [05:16:29]CAPDU: 80 0D 02 02 05 AA 5E 80 96 EB [05:16:29]Write to MH i2c: E2 0D 00 F2 15 80 0D 02 02 05 00 AA 5E 80 96 EB 00 00 94 [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:16:29]Read from MH i2c: E2 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 03 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 03 00 F2 15 00 90 00 7B [05:16:29]RAPDU: 90 00 [05:16:29]wFMCommunicate OK [05:16:29]wFMCommunicate request_size=4 [05:16:29]MH_SAM_APDU [05:16:29]CAPDU: 80 0D 03 02 [05:16:29]Write to MH i2c: E2 08 00 F3 15 80 0D 03 02 00 00 00 00 83 [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:16:29]Read from MH i2c: E2 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 0B 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 0B 00 F3 15 00 EB B3 DC 21 F3 4A AA 57 90 00 5D [05:16:29]RAPDU: EB B3 DC 21 F3 4A AA 57 90 00 [05:16:29]wFMCommunicate OK [05:16:29]SAM_PROTO_SignData done [05:16:29]FM_MakeSignedData done [05:16:29]CreateOFDProtocolMessage [05:16:29]wFMCommunicate request_size=4 [05:16:29]MH_SAM_APDU [05:16:29]CAPDU: 80 11 00 00 [05:16:29]Write to MH i2c: E2 08 00 F4 15 80 11 00 00 00 00 00 00 83 [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:29]Read from MH i2c: E2 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 17 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: E2 17 00 F4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [05:16:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:16:29]wFMCommunicate OK [05:16:29]CreateOFDProtocolMessage done [05:16:29]OFDSenderStorePacket 188030 [05:16:29]StoreOFDPacket docnum=188030 [05:16:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF A9 07 01 70 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2D 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DE 02 00 35 04 06 00 73 AA 5E 80 96 EB EB B3 DC 21 F3 4A AA 57 [05:16:29]CheckFolder [05:16:29]dirname=/storage/ofd_packets [05:16:29]CheckFolder done [05:16:29]ProducePacketName [05:16:29]name=ofd_packets/00188030 [05:16:29]NVStorageSaveData ofd_packets/00188030 [05:16:29]File name is /storage/ofd_packets/00188030 [05:16:29]Write 301 bytes [05:16:29]NVStorageSaveData done [05:16:29]OFDSenderStorePacket done [05:16:29]KKMCreateOFDPacket done [05:16:29]NVStorageSaveData kkm_last_timestamp [05:16:29]File name is /storage/kkm_last_timestamp [05:16:29]Write 4 bytes [05:16:29]NVStorageSaveData done [05:16:29]ExternCall_PrintAddStr [05:16:29]wPrintStart [05:16:29]Write to MH i2c: 01 00 00 F5 15 0A [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: 01 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: 01 07 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: 01 07 00 F5 15 00 00 00 00 00 FF 0F 1F [05:16:29]RasterBufferAndPrint [05:16:29]line Счет N : (1)210081 [05:16:29]line ИНН: 02508201610067 [05:16:29]line Контрольно-Кассовый Чек [05:16:29]line ПРОДАЖА [05:16:29]line ТРК (МРК, ГНК) : 42 [05:16:29]line Товар: 2710124130 [05:16:29]line Аи-92-К-3 [05:16:29]line 14.950 * 66.90 [05:16:29]line = 1000.16 [05:16:29]line НДС 12% НСП 1% [05:16:29]line > о реализуемом товаре [05:16:29]line ОКРУГЛЕНИЕ: -0.16 [05:16:29]line ИТОГО: 1000.00 [05:16:29]line Внесено: 1000.00 [05:16:29]line СДАЧА: 0.00 [05:16:29]line НСП 1% : 8.85 [05:16:29]line НДС 12% : 106.21 [05:16:29]line Наличными: 1000.00 [05:16:29]line Безнал.: 0.00 [05:16:29]line Место: АЗС № 86 "Партнер Нефть" [05:16:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:16:29]line СНО: Общий режим [05:16:29]line Чек 59 22.10.2024 05:16 [05:16:29]line Смена: 461 ФФД: 1.0 [05:16:29]line ЗНМ: 0300000155 [05:16:29]line РНМ: 0000000000100030 [05:16:29]line Версия ККМ: 001 [05:16:29]line ФМ: 0000000000965340 [05:16:29]line ФД: 188030 [05:16:29]line ФПД: 127175567120107 [05:16:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051629&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188030&fm=127175567120107&tin=02508201610067®Number=0000000000100030&sum=100000 [05:16:29]OFD Sender: Processing packet 188030 [packets to send 1062, broken 1061] [05:16:29]ProducePacketName [05:16:29]name=ofd_packets/00188030 [05:16:29]OFD Sender: To server: pG, [05:16:29]CommunicateWithHost lk.salyk.kg:30040 [05:16:29]ConnectInit lk.salyk.kg [05:16:29]written 0, free lines is 4095 [05:16:29]Connected sock=10 [05:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF A9 07 01 70 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 2D 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DE 02 00 35 04 06 00 73 AA 5E 80 96 EB EB B3 DC 21 F3 4A AA 57 [05:16:29]Write to MH i2c: 01 00 00 20 16 36 [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: 01 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: 01 07 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: 01 07 00 20 16 00 00 00 00 00 5B 0C A4 [05:16:29]RasterBufferAndPrint [05:16:29]line [05:16:29]line [05:16:29]line [05:16:29]line [05:16:29]line [05:16:29]written 0, free lines is 3167 [05:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 63 D6 47 00 0E 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DE 02 00 F4 03 04 00 1B DF 16 67 B6 04 01 00 00 55 E4 AB 75 61 2E 7A AF [05:16:29]CommunicateWithHost err = 0 [05:16:29]CheckOFDResponse [05:16:29]1017 (14) - 77093643461234 [05:16:29]1041 (16) - 0000000000965340 [05:16:29]1040 (4) - 188030 [05:16:29]1012 (4) - 21.10.2024 23:09 [05:16:29]1206 (1) - 0 [05:16:29]OFD Sender: Remove packet 188030 [05:16:29]ProducePacketName [05:16:29]name=ofd_packets/00188030 [05:16:29]NVStorageDeleteData [05:16:29]MH_Cut [05:16:29]Write to MH i2c: D1 01 00 27 16 01 0F [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: D1 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: D1 01 00 [05:16:29]MH_I2C_Read... [05:16:29]Read from MH i2c: D1 01 00 27 16 00 0E [05:16:29]Write to MH i2c: 01 00 00 28 16 3E [05:16:29]Write i2c OK [05:16:29]MH_I2C_Read... [05:16:30]OFD Sender: No OFD packet to send [05:16:31]*** Cut start [05:16:31]*** Partial cut [05:16:31]*** CUTSNS_PIN = 1 [05:16:31]*** CUTSNS_PIN = 0 [05:16:31]*** Brake cut motor [05:16:31]Read from MH i2c: 01 [05:16:31]MH_I2C_Read... [05:16:31]*** Stop cut motor [05:16:31]*** Cut end [05:16:31]Read from MH i2c: 01 07 00 [05:16:31]MH_I2C_Read... [05:16:31]Read from MH i2c: 01 07 00 28 16 00 00 00 00 00 FF 0F 53 [05:16:31]process_action close_receipt done [05:16:31]requested_data is exist [05:16:31]produce_requested_data [05:16:31]requested_item fm.sn is exist - process it [05:16:31]wFMCommunicate request_size=4 [05:16:31]MH_SAM_APDU [05:16:31]CAPDU: 80 11 00 00 [05:16:31]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [05:16:31]Write i2c OK [05:16:31]MH_I2C_Read... [05:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:16:31]Read from MH i2c: E2 [05:16:31]MH_I2C_Read... [05:16:31]Read from MH i2c: E2 17 00 [05:16:31]MH_I2C_Read... [05:16:31]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [05:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:16:31]wFMCommunicate OK [05:16:31]requested_item fd.num is exist - process it [05:16:31]SAM_PROTO_GetFieldsCounters [05:16:31]wFMCommunicate request_size=4 [05:16:31]MH_SAM_APDU [05:16:31]CAPDU: 80 13 00 00 [05:16:31]Write to MH i2c: E2 08 00 2A 16 80 13 00 00 00 00 00 00 BC [05:16:31]Write i2c OK [05:16:31]MH_I2C_Read... [05:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:16:31]Read from MH i2c: E2 [05:16:31]MH_I2C_Read... [05:16:31]Read from MH i2c: E2 62 00 [05:16:31]MH_I2C_Read... [05:16:31]Read from MH i2c: E2 62 00 2A 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E DE 02 00 0E 04 04 00 CD 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 A0 [05:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E DE 02 00 0E 04 04 00 CD 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 [05:16:31]wFMCommunicate OK [05:16:31]SAM_PROTO_GetFieldsCounters done [05:16:31]requested_item shift.num is exist - process it [05:16:31]requested_item shift.opened is exist - process it [05:16:31]req_shift_opened [05:16:31]FM_GetShiftState [05:16:31]SAM_PROTO_GetShiftState [05:16:31]wFMCommunicate request_size=4 [05:16:31]MH_SAM_APDU [05:16:31]CAPDU: 80 13 01 00 [05:16:31]Write to MH i2c: E2 08 00 2B 16 80 13 01 00 00 00 00 00 BE [05:16:31]Write i2c OK [05:16:31]MH_I2C_Read... [05:16:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:16:32]Read from MH i2c: E2 [05:16:32]MH_I2C_Read... [05:16:32]Read from MH i2c: E2 0E 00 [05:16:32]MH_I2C_Read... [05:16:32]Read from MH i2c: E2 0E 00 2B 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B3 [05:16:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:16:32]wFMCommunicate OK [05:16:32]SAM_PROTO_GetShiftState done [05:16:32]FM_GetShiftState done [05:16:32]req_shift_opened done [05:16:32]requested_item shift.open_date is exist - process it [05:16:32]req_shift_open_date [05:16:32]req_shift_open_date done [05:16:32]produce_requested_data done [05:16:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188030,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:16:32]process_action_free close_receipt [05:16:32]json_value_free [05:16:32]json_value_free done [05:16:32]process_json_proto returns [05:16:32]Send response to host [05:16:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188030,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:16:32]free response buf [05:16:32]execute_script done [05:16:32]execute_script returns [05:16:32]free content buf [05:16:32]Sock 9.Close socket [05:16:32]Sock 9.Thread stoped [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:46]OFD Sender: No OFD packet to send [05:18:51]OFD Sender: No OFD packet to send [05:18:56]OFD Sender: No OFD packet to send [05:19:01]OFD Sender: No OFD packet to send [05:19:06]OFD Sender: No OFD packet to send [05:19:11]OFD Sender: No OFD packet to send [05:19:15]accept exits with 8 [05:19:15]New connection [05:19:15]New thread 3067055460 created [05:19:15]Thread 3067198820 joined [05:19:15]Waiting for new connection... [05:19:15] Sock 8.Parse request [05:19:15]Sock 8.Check first char [05:19:15]Sock 8.First char is OK [05:19:15]request: POST /json_proto HTTP/1.0 [05:19:15]Method: POST [05:19:15]URL: /json_proto [05:19:15]Method is POST - this is cgi request [05:19:15]url: /json_proto [05:19:15]query_string will be loaded in cgi processing [05:19:15]execute_cgi json_proto POST (null) [05:19:15]execute_cgi path=json_proto method=POST [05:19:15]POST find Content-Length [05:19:15]Host: 172.17.42.131:8080 [05:19:15]Content-Length: 674 [05:19:15]Content-Type: application/json [05:19:15] [05:19:15]POST finish read [05:19:15]Found Content-Length = 674 [05:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:19:15]execute_script... [05:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210082", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.190, "sum" : 700.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:19:15]POST & json_proto [05:19:15]process_json_proto [05:19:15]json parsed OK: [05:19:15]protocol is kg_v1.0 [05:19:15]action value=close_receipt [05:19:15]process_action close_receipt [05:19:15]cmd_close_receipt [05:19:15]MH_GetDate [05:19:15]Write to MH i2c: F0 00 00 2C 16 31 [05:19:15]Write i2c OK [05:19:15]MH_I2C_Read... [05:19:15]Read from MH i2c: F0 [05:19:15]MH_I2C_Read... [05:19:15]Read from MH i2c: F0 09 00 [05:19:15]MH_I2C_Read... [05:19:15]Read from MH i2c: F0 09 00 2C 16 00 D5 35 17 67 A0 18 CA 66 AA [05:19:15]GetLastDocTimeStamp 1729574189 [05:19:15]current date 1729574357 [05:19:15]FM_GetShiftState [05:19:15]SAM_PROTO_GetShiftState [05:19:15]wFMCommunicate request_size=4 [05:19:15]MH_SAM_APDU [05:19:15]CAPDU: 80 13 01 00 [05:19:15]Write to MH i2c: E2 08 00 2D 16 80 13 01 00 00 00 00 00 C0 [05:19:15]Write i2c OK [05:19:15]MH_I2C_Read... [05:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:15]Read from MH i2c: E2 [05:19:15]MH_I2C_Read... [05:19:15]Read from MH i2c: E2 0E 00 [05:19:15]MH_I2C_Read... [05:19:15]Read from MH i2c: E2 0E 00 2D 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B5 [05:19:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:19:15]wFMCommunicate OK [05:19:15]SAM_PROTO_GetShiftState done [05:19:15]FM_GetShiftState done [05:19:15]opened in 1729556094 [05:19:15]opened+sec_in_day 1729642494 [05:19:15]quantity*price = 70027 [05:19:15]sum+1 = 70029 [05:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.37 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 60 22.10.2024 05:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188031 ФПД: 113259830331737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051917&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188031&fm=113259830331737&tin=02508201610067®Number=0000000000100030&sum=70000 [05:19:16]StoreToDocumentArchive [05:19:16]shift 461 fd 188031 [05:19:16]save to /storage/0461/doc_00188031 [05:19:16]save last doc name /storage/0461/doc_00188031 to /storage/kkm_last_doc_name [05:19:16]save OK [05:19:16]Clear old archive folders... [05:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:19:16]tlvbuf is 01BF9830 [05:19:16]SAM_PROTO_ClearQueue [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 09 00 00 [05:19:16]Write to MH i2c: E2 08 00 3A 16 80 09 00 00 00 00 00 00 C2 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 3A 16 00 90 00 C4 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]SAM_PROTO_ClearQueue done [05:19:16]KKMCreateOFDPacket [05:19:16]OFDProtocolAddRootSTLVToBuf [05:19:16]FM_MakeSignedData [05:19:16]FM_MakeSignedData [05:19:16]SAM_PROTO_SignData [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 01 02 [05:19:16]Write to MH i2c: E2 08 00 3B 16 80 0D 01 02 00 00 00 00 CA [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 3B 16 00 90 00 C5 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]wFMCommunicate request_size=255 [05:19:16]MH_SAM_APDU [05:19: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D5 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DE 02 00 35 04 06 00 67 02 5B F4 [05:19:16]Write to MH i2c: E2 02 01 3C 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D5 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DE 02 00 35 04 06 00 67 02 5B F4 00 00 DA [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 3C 16 00 90 00 C6 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]wFMCommunicate request_size=7 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 02 02 02 49 59 [05:19:16]Write to MH i2c: E2 0A 00 3D 16 80 0D 02 02 02 00 49 59 00 00 73 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 03 00 3D 16 00 90 00 C7 [05:19:16]RAPDU: 90 00 [05:19:16]wFMCommunicate OK [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 0D 03 02 [05:19:16]Write to MH i2c: E2 08 00 3E 16 80 0D 03 02 00 00 00 00 CF [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 0B 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 0B 00 3E 16 00 EC DF 29 BB DF 0F D2 31 90 00 70 [05:19:16]RAPDU: EC DF 29 BB DF 0F D2 31 90 00 [05:19:16]wFMCommunicate OK [05:19:16]SAM_PROTO_SignData done [05:19:16]FM_MakeSignedData done [05:19:16]CreateOFDProtocolMessage [05:19:16]wFMCommunicate request_size=4 [05:19:16]MH_SAM_APDU [05:19:16]CAPDU: 80 11 00 00 [05:19:16]Write to MH i2c: E2 08 00 3F 16 80 11 00 00 00 00 00 00 CF [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:16]Read from MH i2c: E2 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 17 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: E2 17 00 3F 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [05:19:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:19:16]wFMCommunicate OK [05:19:16]CreateOFDProtocolMessage done [05:19:16]OFDSenderStorePacket 188031 [05:19:16]StoreOFDPacket docnum=188031 [05:19:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1E 46 04 01 CF 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D5 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DE 02 00 35 04 06 00 67 02 5B F4 49 59 EC DF 29 BB DF 0F D2 31 [05:19:16]CheckFolder [05:19:16]dirname=/storage/ofd_packets [05:19:16]CheckFolder done [05:19:16]ProducePacketName [05:19:16]name=ofd_packets/00188031 [05:19:16]NVStorageSaveData ofd_packets/00188031 [05:19:16]File name is /storage/ofd_packets/00188031 [05:19:16]Write 298 bytes [05:19:16]NVStorageSaveData done [05:19:16]OFDSenderStorePacket done [05:19:16]KKMCreateOFDPacket done [05:19:16]NVStorageSaveData kkm_last_timestamp [05:19:16]File name is /storage/kkm_last_timestamp [05:19:16]Write 4 bytes [05:19:16]NVStorageSaveData done [05:19:16]ExternCall_PrintAddStr [05:19:16]wPrintStart [05:19:16]Write to MH i2c: 01 00 00 40 16 56 [05:19:16]Write i2c OK [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: 01 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: 01 07 00 [05:19:16]MH_I2C_Read... [05:19:16]Read from MH i2c: 01 07 00 40 16 00 00 00 00 00 FF 0F 6B [05:19:16]RasterBufferAndPrint [05:19:16]line Счет N : (1)210082 [05:19:16]line ИНН: 02508201610067 [05:19:16]line Контрольно-Кассовый Чек [05:19:16]line ПРОДАЖА [05:19:16]line ТРК (МРК, ГНК) : 51 [05:19:16]line Товар: 2710194210 [05:19:16]line ДТ-К-5 [05:19:16]line 9.190 * 76.20 [05:19:16]line = 700.28 [05:19:16]line НДС 12% НСП 1% [05:19:16]line > о реализуемом товаре [05:19:16]line ОКРУГЛЕНИЕ: -0.28 [05:19:16]line ИТОГО: 700.00 [05:19:16]line Внесено: 700.00 [05:19:16]line СДАЧА: 0.00 [05:19:16]line НСП 1% : 6.20 [05:19:16]line НДС 12% : 74.37 [05:19:16]line Наличными: 700.00 [05:19:16]line Безнал.: 0.00 [05:19:16]line Место: АЗС № 86 "Партнер Нефть" [05:19:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:19:16]line СНО: Общий режим [05:19:16]line Чек 60 22.10.2024 05:19 [05:19:16]line Смена: 461 ФФД: 1.0 [05:19:16]line ЗНМ: 0300000155 [05:19:16]line РНМ: 0000000000100030 [05:19:16]line Версия ККМ: 001 [05:19:16]line ФМ: 0000000000965340 [05:19:16]line ФД: 188031 [05:19:16]line ФПД: 113259830331737 [05:19:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T051917&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188031&fm=113259830331737&tin=02508201610067®Number=0000000000100030&sum=70000 [05:19:16]written 0, free lines is 4095 [05:19:16]OFD Sender: Processing packet 188031 [packets to send 1062, broken 1061] [05:19:16]ProducePacketName [05:19:16]name=ofd_packets/00188031 [05:19:16]OFD Sender: To server: pG, [05:19:16]CommunicateWithHost lk.salyk.kg:30040 [05:19:16]ConnectInit lk.salyk.kg [05:19:17]Connected sock=9 [05:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1E 46 04 01 CF 76 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 E6 23 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 00 00 00 F4 03 04 00 D5 35 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DE 02 00 35 04 06 00 67 02 5B F4 49 59 EC DF 29 BB DF 0F D2 31 [05:19:17]Write to MH i2c: 01 00 00 6B 16 81 [05:19:17]Write i2c OK [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: 01 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: 01 07 00 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: 01 07 00 6B 16 00 00 00 00 00 5A 0C EE [05:19:17]RasterBufferAndPrint [05:19:17]line [05:19:17]line [05:19:17]line [05:19:17]line [05:19:17]line [05:19:17]written 0, free lines is 3167 [05:19:17]MH_Cut [05:19:17]Write to MH i2c: D1 01 00 72 16 01 5A [05:19:17]Write i2c OK [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: D1 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: D1 01 00 [05:19:17]MH_I2C_Read... [05:19:17]Read from MH i2c: D1 01 00 72 16 00 59 [05:19:17]Write to MH i2c: 01 00 00 73 16 89 [05:19:17]Write i2c OK [05:19:17]MH_I2C_Read... [05:19:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 CB 47 00 37 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DE 02 00 F4 03 04 00 C3 DF 16 67 B6 04 01 00 00 3D 41 02 ED EF 2A 6B 9B [05:19:17]CommunicateWithHost err = 0 [05:19:17]CheckOFDResponse [05:19:17]1017 (14) - 77093643461234 [05:19:17]1041 (16) - 0000000000965340 [05:19:17]1040 (4) - 188031 [05:19:17]1012 (4) - 21.10.2024 23:12 [05:19:17]1206 (1) - 0 [05:19:17]OFD Sender: Remove packet 188031 [05:19:17]ProducePacketName [05:19:17]name=ofd_packets/00188031 [05:19:17]NVStorageDeleteData [05:19:17]OFD Sender: No OFD packet to send [05:19:18]*** Cut start [05:19:18]*** Partial cut [05:19:18]*** CUTSNS_PIN = 1 [05:19:18]*** CUTSNS_PIN = 0 [05:19:18]*** Brake cut motor [05:19:19]Read from MH i2c: 01 [05:19:19]MH_I2C_Read... [05:19:19]*** Stop cut motor [05:19:19]*** Cut end [05:19:19]Read from MH i2c: 01 07 00 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: 01 07 00 73 16 00 00 00 00 00 FF 0F 9E [05:19:19]process_action close_receipt done [05:19:19]requested_data is exist [05:19:19]produce_requested_data [05:19:19]requested_item fm.sn is exist - process it [05:19:19]wFMCommunicate request_size=4 [05:19:19]MH_SAM_APDU [05:19:19]CAPDU: 80 11 00 00 [05:19:19]Write to MH i2c: E2 08 00 74 16 80 11 00 00 00 00 00 00 04 [05:19:19]Write i2c OK [05:19:19]MH_I2C_Read... [05:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:19:19]Read from MH i2c: E2 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 17 00 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 17 00 74 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [05:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:19:19]wFMCommunicate OK [05:19:19]requested_item fd.num is exist - process it [05:19:19]SAM_PROTO_GetFieldsCounters [05:19:19]wFMCommunicate request_size=4 [05:19:19]MH_SAM_APDU [05:19:19]CAPDU: 80 13 00 00 [05:19:19]Write to MH i2c: E2 08 00 75 16 80 13 00 00 00 00 00 00 07 [05:19:19]Write i2c OK [05:19:19]MH_I2C_Read... [05:19:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:19:19]Read from MH i2c: E2 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 62 00 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 62 00 75 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F DE 02 00 0E 04 04 00 CD 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 EF [05:19:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F DE 02 00 0E 04 04 00 CD 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 [05:19:19]wFMCommunicate OK [05:19:19]SAM_PROTO_GetFieldsCounters done [05:19:19]requested_item shift.num is exist - process it [05:19:19]requested_item shift.opened is exist - process it [05:19:19]req_shift_opened [05:19:19]FM_GetShiftState [05:19:19]SAM_PROTO_GetShiftState [05:19:19]wFMCommunicate request_size=4 [05:19:19]MH_SAM_APDU [05:19:19]CAPDU: 80 13 01 00 [05:19:19]Write to MH i2c: E2 08 00 76 16 80 13 01 00 00 00 00 00 09 [05:19:19]Write i2c OK [05:19:19]MH_I2C_Read... [05:19:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:19:19]Read from MH i2c: E2 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 0E 00 [05:19:19]MH_I2C_Read... [05:19:19]Read from MH i2c: E2 0E 00 76 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FE [05:19:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:19:19]wFMCommunicate OK [05:19:19]SAM_PROTO_GetShiftState done [05:19:19]FM_GetShiftState done [05:19:19]req_shift_opened done [05:19:19]requested_item shift.open_date is exist - process it [05:19:19]req_shift_open_date [05:19:19]req_shift_open_date done [05:19:19]produce_requested_data done [05:19:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188031,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:19:19]process_action_free close_receipt [05:19:19]json_value_free [05:19:19]json_value_free done [05:19:19]process_json_proto returns [05:19:19]Send response to host [05:19:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188031,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:19:19]free response buf [05:19:19]execute_script done [05:19:19]execute_script returns [05:19:19]free content buf [05:19:19]Sock 8.Close socket [05:19:19]Sock 8.Thread stoped [05:19:23]OFD Sender: No OFD packet to send [05:19:28]OFD Sender: No OFD packet to send [05:19:33]OFD Sender: No OFD packet to send [05:19:38]OFD Sender: No OFD packet to send [05:19:43]OFD Sender: No OFD packet to send [05:19:48]OFD Sender: No OFD packet to send [05:19:53]OFD Sender: No OFD packet to send [05:19:58]OFD Sender: No OFD packet to send [05:20:03]OFD Sender: No OFD packet to send [05:20:08]OFD Sender: No OFD packet to send [05:20:13]OFD Sender: No OFD packet to send [05:20:18]OFD Sender: No OFD packet to send [05:20:23]OFD Sender: No OFD packet to send [05:20:28]OFD Sender: No OFD packet to send [05:20:33]OFD Sender: No OFD packet to send [05:20:38]OFD Sender: No OFD packet to send [05:20:43]OFD Sender: No OFD packet to send [05:20:48]OFD Sender: No OFD packet to send [05:20:53]OFD Sender: No OFD packet to send [05:20:58]OFD Sender: No OFD packet to send [05:21:03]OFD Sender: No OFD packet to send [05:21:08]OFD Sender: No OFD packet to send [05:21:13]OFD Sender: No OFD packet to send [05:21:18]OFD Sender: No OFD packet to send [05:21:23]OFD Sender: No OFD packet to send [05:21:28]OFD Sender: No OFD packet to send [05:21:33]OFD Sender: No OFD packet to send [05:21:38]OFD Sender: No OFD packet to send [05:21:43]OFD Sender: No OFD packet to send [05:21:48]OFD Sender: No OFD packet to send [05:21:53]OFD Sender: No OFD packet to send [05:21:58]OFD Sender: No OFD packet to send [05:22:03]OFD Sender: No OFD packet to send [05:22:08]OFD Sender: No OFD packet to send [05:22:13]OFD Sender: No OFD packet to send [05:22:18]OFD Sender: No OFD packet to send [05:22:19]accept exits with 10 [05:22:19]New connection [05:22:19]New thread 3067198820 created [05:22:19]Thread 3067055460 joined [05:22:19]Waiting for new connection... [05:22:19] Sock 10.Parse request [05:22:19]Sock 10.Check first char [05:22:19]Sock 10.First char is OK [05:22:19]request: POST /json_proto HTTP/1.0 [05:22:19]Method: POST [05:22:19]URL: /json_proto [05:22:19]Method is POST - this is cgi request [05:22:19]url: /json_proto [05:22:19]query_string will be loaded in cgi processing [05:22:19]execute_cgi json_proto POST (null) [05:22:19]execute_cgi path=json_proto method=POST [05:22:19]POST find Content-Length [05:22:19]Host: 172.17.42.131:8080 [05:22:19]Content-Length: 678 [05:22:19]Content-Type: application/json [05:22:19] [05:22:19]POST finish read [05:22:19]Found Content-Length = 678 [05:22:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.690, "sum" : 715.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 715.00, "total" : 715.00, "payments": [ { "type": 0, "sum" : 715.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:19]execute_script... [05:22: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)210083", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.690, "sum" : 715.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 715.00, "total" : 715.00, "payments": [ { "type": 0, "sum" : 715.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:22:19]POST & json_proto [05:22:19]process_json_proto [05:22:19]json parsed OK: [05:22:19]protocol is kg_v1.0 [05:22:19]action value=close_receipt [05:22:19]process_action close_receipt [05:22:19]cmd_close_receipt [05:22:19]MH_GetDate [05:22:19]Write to MH i2c: F0 00 00 77 16 7C [05:22:19]Write i2c OK [05:22:19]MH_I2C_Read... [05:22:19]Read from MH i2c: F0 [05:22:19]MH_I2C_Read... [05:22:19]Read from MH i2c: F0 09 00 [05:22:19]MH_I2C_Read... [05:22:19]Read from MH i2c: F0 09 00 77 16 00 8D 36 17 67 A0 18 CA 66 AE [05:22:19]GetLastDocTimeStamp 1729574357 [05:22:19]current date 1729574541 [05:22:19]FM_GetShiftState [05:22:19]SAM_PROTO_GetShiftState [05:22:19]wFMCommunicate request_size=4 [05:22:19]MH_SAM_APDU [05:22:19]CAPDU: 80 13 01 00 [05:22:19]Write to MH i2c: E2 08 00 78 16 80 13 01 00 00 00 00 00 0B [05:22:19]Write i2c OK [05:22:19]MH_I2C_Read... [05:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:22:19]Read from MH i2c: E2 [05:22:19]MH_I2C_Read... [05:22:19]Read from MH i2c: E2 0E 00 [05:22:19]MH_I2C_Read... [05:22:19]Read from MH i2c: E2 0E 00 78 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 00 [05:22:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:22:19]wFMCommunicate OK [05:22:19]SAM_PROTO_GetShiftState done [05:22:19]FM_GetShiftState done [05:22:19]opened in 1729556094 [05:22:19]opened+sec_in_day 1729642494 [05:22:19]quantity*price = 71516 [05:22:19]sum+1 = 71517 [05:22:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 715.00 Внесено: 715.00 СДАЧА: 0.00 НСП 1% : 6.33 НДС 12% : 75.95 Наличными: 715.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 61 22.10.2024 05:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188032 ФПД: 200218543294095 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052221&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188032&fm=200218543294095&tin=02508201610067®Number=0000000000100030&sum=71500 [05:22:20]StoreToDocumentArchive [05:22:20]shift 461 fd 188032 [05:22:20]save to /storage/0461/doc_00188032 [05:22:20]save last doc name /storage/0461/doc_00188032 to /storage/kkm_last_doc_name [05:22:20]save OK [05:22:20]Clear old archive folders... [05:22:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:22:20]tlvbuf is 01B8C070 [05:22:20]SAM_PROTO_ClearQueue [05:22:20]wFMCommunicate request_size=4 [05:22:20]MH_SAM_APDU [05:22:20]CAPDU: 80 09 00 00 [05:22:20]Write to MH i2c: E2 08 00 85 16 80 09 00 00 00 00 00 00 0D [05:22:20]Write i2c OK [05:22:20]MH_I2C_Read... [05:22:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:22:20]Read from MH i2c: E2 [05:22:20]MH_I2C_Read... [05:22:20]Read from MH i2c: E2 03 00 [05:22:20]MH_I2C_Read... [05:22:20]Read from MH i2c: E2 03 00 85 16 00 90 00 0F [05:22:20]RAPDU: 90 00 [05:22:20]wFMCommunicate OK [05:22:20]SAM_PROTO_ClearQueue done [05:22:20]KKMCreateOFDPacket [05:22:20]OFDProtocolAddRootSTLVToBuf [05:22:20]FM_MakeSignedData [05:22:20]FM_MakeSignedData [05:22:20]SAM_PROTO_SignData [05:22:20]wFMCommunicate request_size=4 [05:22:20]MH_SAM_APDU [05:22:20]CAPDU: 80 0D 01 02 [05:22:20]Write to MH i2c: E2 08 00 86 16 80 0D 01 02 00 00 00 00 15 [05:22:20]Write i2c OK [05:22:20]MH_I2C_Read... [05:22:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:22:20]Read from MH i2c: E2 [05:22:20]MH_I2C_Read... [05:22:20]Read from MH i2c: E2 03 00 [05:22:20]MH_I2C_Read... [05:22:20]Read from MH i2c: E2 03 00 86 16 00 90 00 10 [05:22:20]RAPDU: 90 00 [05:22:20]wFMCommunicate OK [05:22:20]wFMCommunicate request_size=255 [05:22:20]MH_SAM_APDU [05:22: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 33 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 17 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1D 00 00 00 00 07 04 06 00 4C 17 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8D 36 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DE 02 00 35 04 06 00 B6 [05:22:20]Write to MH i2c: E2 02 01 87 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 33 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 17 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1D 00 00 00 00 07 04 06 00 4C 17 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8D 36 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DE 02 00 35 04 06 00 B6 00 00 0B [05:22:20]Write i2c OK [05:22:20]MH_I2C_Read... [05:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:21]Read from MH i2c: E2 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 03 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 03 00 87 16 00 90 00 11 [05:22:21]RAPDU: 90 00 [05:22:21]wFMCommunicate OK [05:22:21]wFMCommunicate request_size=10 [05:22:21]MH_SAM_APDU [05:22:21]CAPDU: 80 0D 02 02 05 19 03 26 86 8F [05:22:21]Write to MH i2c: E2 0D 00 88 16 80 0D 02 02 05 00 19 03 26 86 8F 00 00 79 [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:22:21]Read from MH i2c: E2 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 03 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 03 00 88 16 00 90 00 12 [05:22:21]RAPDU: 90 00 [05:22:21]wFMCommunicate OK [05:22:21]wFMCommunicate request_size=4 [05:22:21]MH_SAM_APDU [05:22:21]CAPDU: 80 0D 03 02 [05:22:21]Write to MH i2c: E2 08 00 89 16 80 0D 03 02 00 00 00 00 1A [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:22:21]Read from MH i2c: E2 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 0B 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 0B 00 89 16 00 2C E9 4B A9 9B 6E 68 83 90 00 18 [05:22:21]RAPDU: 2C E9 4B A9 9B 6E 68 83 90 00 [05:22:21]wFMCommunicate OK [05:22:21]SAM_PROTO_SignData done [05:22:21]FM_MakeSignedData done [05:22:21]CreateOFDProtocolMessage [05:22:21]wFMCommunicate request_size=4 [05:22:21]MH_SAM_APDU [05:22:21]CAPDU: 80 11 00 00 [05:22:21]Write to MH i2c: E2 08 00 8A 16 80 11 00 00 00 00 00 00 1A [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:21]Read from MH i2c: E2 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 17 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: E2 17 00 8A 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [05:22:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:22:21]wFMCommunicate OK [05:22:21]CreateOFDProtocolMessage done [05:22:21]OFDSenderStorePacket 188032 [05:22:21]StoreOFDPacket docnum=188032 [05:22:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7D 43 07 01 FD B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 17 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1D 00 00 00 00 07 04 06 00 4C 17 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8D 36 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DE 02 00 35 04 06 00 B6 19 03 26 86 8F 2C E9 4B A9 9B 6E 68 83 [05:22:21]CheckFolder [05:22:21]dirname=/storage/ofd_packets [05:22:21]CheckFolder done [05:22:21]ProducePacketName [05:22:21]name=ofd_packets/00188032 [05:22:21]NVStorageSaveData ofd_packets/00188032 [05:22:21]File name is /storage/ofd_packets/00188032 [05:22:21]Write 301 bytes [05:22:21]NVStorageSaveData done [05:22:21]OFDSenderStorePacket done [05:22:21]KKMCreateOFDPacket done [05:22:21]NVStorageSaveData kkm_last_timestamp [05:22:21]File name is /storage/kkm_last_timestamp [05:22:21]Write 4 bytes [05:22:21]NVStorageSaveData done [05:22:21]ExternCall_PrintAddStr [05:22:21]wPrintStart [05:22:21]Write to MH i2c: 01 00 00 8B 16 A1 [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: 01 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: 01 07 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: 01 07 00 8B 16 00 00 00 00 00 FF 0F B6 [05:22:21]RasterBufferAndPrint [05:22:21]line Счет N : (1)210083 [05:22:21]line ИНН: 02508201610067 [05:22:21]line Контрольно-Кассовый Чек [05:22:21]line ПРОДАЖА [05:22:21]line ТРК (МРК, ГНК) : 42 [05:22:21]line Товар: 2710124130 [05:22:21]line Аи-92-К-3 [05:22:21]line 10.690 * 66.90 [05:22:21]line = 715.16 [05:22:21]line НДС 12% НСП 1% [05:22:21]line > о реализуемом товаре [05:22:21]line ОКРУГЛЕНИЕ: -0.16 [05:22:21]line ИТОГО: 715.00 [05:22:21]line Внесено: 715.00 [05:22:21]line СДАЧА: 0.00 [05:22:21]line НСП 1% : 6.33 [05:22:21]line НДС 12% : 75.95 [05:22:21]line Наличными: 715.00 [05:22:21]line Безнал.: 0.00 [05:22:21]line Место: АЗС № 86 "Партнер Нефть" [05:22:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:22:21]line СНО: Общий режим [05:22:21]line Чек 61 22.10.2024 05:22 [05:22:21]line Смена: 461 ФФД: 1.0 [05:22:21]line ЗНМ: 0300000155 [05:22:21]line РНМ: 0000000000100030 [05:22:21]line Версия ККМ: 001 [05:22:21]line ФМ: 0000000000965340 [05:22:21]line ФД: 188032 [05:22:21]line ФПД: 200218543294095 [05:22:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052221&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188032&fm=200218543294095&tin=02508201610067®Number=0000000000100030&sum=71500 [05:22:21]written 0, free lines is 4095 [05:22:21]OFD Sender: Processing packet 188032 [packets to send 1062, broken 1061] [05:22:21]ProducePacketName [05:22:21]name=ofd_packets/00188032 [05:22:21]OFD Sender: To server: pG, [05:22:21]CommunicateWithHost lk.salyk.kg:30040 [05:22:21]ConnectInit lk.salyk.kg [05:22:21]Connected sock=9 [05:22:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7D 43 07 01 FD B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 C2 29 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5C 17 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 17 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 79 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 1D 00 00 00 00 07 04 06 00 4C 17 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 8D 36 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DE 02 00 35 04 06 00 B6 19 03 26 86 8F 2C E9 4B A9 9B 6E 68 83 [05:22:21]Write to MH i2c: 01 00 00 B6 16 CC [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: 01 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: 01 07 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: 01 07 00 B6 16 00 00 00 00 00 51 0C 30 [05:22:21]RasterBufferAndPrint [05:22:21]line [05:22:21]line [05:22:21]line [05:22:21]line [05:22:21]line [05:22:21]written 0, free lines is 3157 [05:22:21]MH_Cut [05:22:21]Write to MH i2c: D1 01 00 BD 16 01 A5 [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: D1 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: D1 01 00 [05:22:21]MH_I2C_Read... [05:22:21]Read from MH i2c: D1 01 00 BD 16 00 A4 [05:22:21]Write to MH i2c: 01 00 00 BE 16 D4 [05:22:21]Write i2c OK [05:22:21]MH_I2C_Read... [05:22:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AA 70 47 00 ED 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DE 02 00 F4 03 04 00 7B E0 16 67 B6 04 01 00 00 DC 80 7E 23 9F 41 4E 81 [05:22:21]CommunicateWithHost err = 0 [05:22:21]CheckOFDResponse [05:22:21]1017 (14) - 77093643461234 [05:22:21]1041 (16) - 0000000000965340 [05:22:21]1040 (4) - 188032 [05:22:21]1012 (4) - 21.10.2024 23:15 [05:22:21]1206 (1) - 0 [05:22:21]OFD Sender: Remove packet 188032 [05:22:21]ProducePacketName [05:22:21]name=ofd_packets/00188032 [05:22:21]NVStorageDeleteData [05:22:22]OFD Sender: No OFD packet to send [05:22:22]*** Cut start [05:22:22]*** Partial cut [05:22:22]*** CUTSNS_PIN = 1 [05:22:23]*** CUTSNS_PIN = 0 [05:22:23]*** Brake cut motor [05:22:23]Read from MH i2c: 01 [05:22:23]MH_I2C_Read... [05:22:23]*** Stop cut motor [05:22:23]*** Cut end [05:22:23]Read from MH i2c: 01 07 00 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: 01 07 00 BE 16 00 00 00 00 00 FF 0F E9 [05:22:23]process_action close_receipt done [05:22:23]requested_data is exist [05:22:23]produce_requested_data [05:22:23]requested_item fm.sn is exist - process it [05:22:23]wFMCommunicate request_size=4 [05:22:23]MH_SAM_APDU [05:22:23]CAPDU: 80 11 00 00 [05:22:23]Write to MH i2c: E2 08 00 BF 16 80 11 00 00 00 00 00 00 4F [05:22:23]Write i2c OK [05:22:23]MH_I2C_Read... [05:22:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:22:23]Read from MH i2c: E2 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 17 00 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 17 00 BF 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [05:22:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:22:23]wFMCommunicate OK [05:22:23]requested_item fd.num is exist - process it [05:22:23]SAM_PROTO_GetFieldsCounters [05:22:23]wFMCommunicate request_size=4 [05:22:23]MH_SAM_APDU [05:22:23]CAPDU: 80 13 00 00 [05:22:23]Write to MH i2c: E2 08 00 C0 16 80 13 00 00 00 00 00 00 52 [05:22:23]Write i2c OK [05:22:23]MH_I2C_Read... [05:22:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:22:23]Read from MH i2c: E2 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 62 00 [05:22:23]MH_I2C_Read... [05:22:23]Read from MH i2c: E2 62 00 C0 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 DE 02 00 0E 04 04 00 CD 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 3E [05:22:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 DE 02 00 0E 04 04 00 CD 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 [05:22:23]wFMCommunicate OK [05:22:23]SAM_PROTO_GetFieldsCounters done [05:22:23]requested_item shift.num is exist - process it [05:22:23]requested_item shift.opened is exist - process it [05:22:23]req_shift_opened [05:22:23]FM_GetShiftState [05:22:23]SAM_PROTO_GetShiftState [05:22:23]wFMCommunicate request_size=4 [05:22:23]MH_SAM_APDU [05:22:23]CAPDU: 80 13 01 00 [05:22:23]Write to MH i2c: E2 08 00 C1 16 80 13 01 00 00 00 00 00 54 [05:22:23]Write i2c OK [05:22:23]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 C1 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [05:22:23]RAPDU: 09 00 01 7E EE 16 67 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]req_shift_opened done [05:22:23]requested_item shift.open_date is exist - process it [05:22:23]req_shift_open_date [05:22:23]req_shift_open_date done [05:22:23]produce_requested_data done [05:22:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188032,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:22:23]process_action_free close_receipt [05:22:23]json_value_free [05:22:23]json_value_free done [05:22:23]process_json_proto returns [05:22:23]Send response to host [05:22:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188032,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:22:23]free response buf [05:22:23]execute_script done [05:22:23]execute_script returns [05:22:23]free content buf [05:22:23]Sock 10.Close socket [05:22:23]Sock 10.Thread stoped [05:22:27]OFD Sender: No OFD packet to send [05:22:32]OFD Sender: No OFD packet to send [05:22:37]OFD Sender: No OFD packet to send [05:22:42]OFD Sender: No OFD packet to send [05:22:47]OFD Sender: No OFD packet to send [05:22:52]OFD Sender: No OFD packet to send [05:22:57]OFD Sender: No OFD packet to send [05:23:02]OFD Sender: No OFD packet to send [05:23:07]OFD Sender: No OFD packet to send [05:23:12]OFD Sender: No OFD packet to send [05:23:17]OFD Sender: No OFD packet to send [05:23:22]OFD Sender: No OFD packet to send [05:23:27]OFD Sender: No OFD packet to send [05:23:32]OFD Sender: No OFD packet to send [05:23:37]OFD Sender: No OFD packet to send [05:23:42]OFD Sender: No OFD packet to send [05:23:47]OFD Sender: No OFD packet to send [05:23:52]OFD Sender: No OFD packet to send [05:23:57]OFD Sender: No OFD packet to send [05:24:02]OFD Sender: No OFD packet to send [05:24:07]OFD Sender: No OFD packet to send [05:24:12]OFD Sender: No OFD packet to send [05:24:17]OFD Sender: No OFD packet to send [05:24:22]OFD Sender: No OFD packet to send [05:24:27]OFD Sender: No OFD packet to send [05:24:30]accept exits with 8 [05:24:30]New connection [05:24:30]New thread 3067055460 created [05:24:30]Thread 3067198820 joined [05:24:30]Waiting for new connection... [05:24:30] Sock 8.Parse request [05:24:30]Sock 8.Check first char [05:24:30]Sock 8.First char is OK [05:24:30]request: POST /json_proto HTTP/1.0 [05:24:30]Method: POST [05:24:30]URL: /json_proto [05:24:30]Method is POST - this is cgi request [05:24:30]url: /json_proto [05:24:30]query_string will be loaded in cgi processing [05:24:30]execute_cgi json_proto POST (null) [05:24:30]execute_cgi path=json_proto method=POST [05:24:30]POST find Content-Length [05:24:30]Host: 172.17.42.131:8080 [05:24:30]Content-Length: 677 [05:24:30]Content-Type: application/json [05:24:30] [05:24:30]POST finish read [05:24:30]Found Content-Length = 677 [05:24:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:30]execute_script... [05:24: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)210084", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:24:30]POST & json_proto [05:24:30]process_json_proto [05:24:30]json parsed OK: [05:24:30]protocol is kg_v1.0 [05:24:30]action value=close_receipt [05:24:30]process_action close_receipt [05:24:30]cmd_close_receipt [05:24:30]MH_GetDate [05:24:30]Write to MH i2c: F0 00 00 C2 16 C7 [05:24:30]Write i2c OK [05:24:30]MH_I2C_Read... [05:24:30]Read from MH i2c: F0 [05:24:30]MH_I2C_Read... [05:24:30]Read from MH i2c: F0 09 00 [05:24:30]MH_I2C_Read... [05:24:30]Read from MH i2c: F0 09 00 C2 16 00 10 37 17 67 A0 18 CA 66 7D [05:24:30]GetLastDocTimeStamp 1729574541 [05:24:30]current date 1729574672 [05:24:30]FM_GetShiftState [05:24:30]SAM_PROTO_GetShiftState [05:24:30]wFMCommunicate request_size=4 [05:24:30]MH_SAM_APDU [05:24:30]CAPDU: 80 13 01 00 [05:24:30]Write to MH i2c: E2 08 00 C3 16 80 13 01 00 00 00 00 00 56 [05:24:30]Write i2c OK [05:24:30]MH_I2C_Read... [05:24:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:30]Read from MH i2c: E2 [05:24:30]MH_I2C_Read... [05:24:30]Read from MH i2c: E2 0E 00 [05:24:30]MH_I2C_Read... [05:24:30]Read from MH i2c: E2 0E 00 C3 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [05:24:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:24:30]wFMCommunicate OK [05:24:30]SAM_PROTO_GetShiftState done [05:24:30]FM_GetShiftState done [05:24:30]opened in 1729556094 [05:24:30]opened+sec_in_day 1729642494 [05:24:30]quantity*price = 50041 [05:24:30]sum+1 = 50042 [05:24:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 62 22.10.2024 05:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188033 ФПД: 197051244114066 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188033&fm=197051244114066&tin=02508201610067®Number=0000000000100030&sum=50000 [05:24:31]StoreToDocumentArchive [05:24:31]shift 461 fd 188033 [05:24:31]save to /storage/0461/doc_00188033 [05:24:31]save last doc name /storage/0461/doc_00188033 to /storage/kkm_last_doc_name [05:24:31]save OK [05:24:31]Clear old archive folders... [05:24:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:24:31]tlvbuf is 01BDC090 [05:24:31]SAM_PROTO_ClearQueue [05:24:31]wFMCommunicate request_size=4 [05:24:31]MH_SAM_APDU [05:24:31]CAPDU: 80 09 00 00 [05:24:31]Write to MH i2c: E2 08 00 D0 16 80 09 00 00 00 00 00 00 58 [05:24:31]Write i2c OK [05:24:31]MH_I2C_Read... [05:24:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:24:31]Read from MH i2c: E2 [05:24:31]MH_I2C_Read... [05:24:31]Read from MH i2c: E2 03 00 [05:24:31]MH_I2C_Read... [05:24:31]Read from MH i2c: E2 03 00 D0 16 00 90 00 5A [05:24:31]RAPDU: 90 00 [05:24:31]wFMCommunicate OK [05:24:31]SAM_PROTO_ClearQueue done [05:24:31]KKMCreateOFDPacket [05:24:31]OFDProtocolAddRootSTLVToBuf [05:24:31]FM_MakeSignedData [05:24:31]FM_MakeSignedData [05:24:31]SAM_PROTO_SignData [05:24:31]wFMCommunicate request_size=4 [05:24:31]MH_SAM_APDU [05:24:31]CAPDU: 80 0D 01 02 [05:24:31]Write to MH i2c: E2 08 00 D1 16 80 0D 01 02 00 00 00 00 60 [05:24:32]Write i2c OK [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 [05:24:32]MH_I2C_Read... [05:24:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:24:32]Read from MH i2c: E2 03 00 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 03 00 D1 16 00 90 00 5B [05:24:32]RAPDU: 90 00 [05:24:32]wFMCommunicate OK [05:24:32]wFMCommunicate request_size=255 [05:24:32]MH_SAM_APDU [05:24: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DE 02 00 35 04 06 00 B3 [05:24:32]Write to MH i2c: E2 02 01 D2 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DE 02 00 35 04 06 00 B3 00 00 B8 [05:24:32]Write i2c OK [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 [05:24:32]MH_I2C_Read... [05:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:32]Read from MH i2c: E2 03 00 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 03 00 D2 16 00 90 00 5C [05:24:32]RAPDU: 90 00 [05:24:32]wFMCommunicate OK [05:24:32]wFMCommunicate request_size=10 [05:24:32]MH_SAM_APDU [05:24:32]CAPDU: 80 0D 02 02 05 37 91 68 70 92 [05:24:32]Write to MH i2c: E2 0D 00 D3 16 80 0D 02 02 05 00 37 91 68 70 92 00 00 9F [05:24:32]Write i2c OK [05:24:32]MH_I2C_Read... [05:24:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:24:32]Read from MH i2c: E2 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 03 00 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 03 00 D3 16 00 90 00 5D [05:24:32]RAPDU: 90 00 [05:24:32]wFMCommunicate OK [05:24:32]wFMCommunicate request_size=4 [05:24:32]MH_SAM_APDU [05:24:32]CAPDU: 80 0D 03 02 [05:24:32]Write to MH i2c: E2 08 00 D4 16 80 0D 03 02 00 00 00 00 65 [05:24:32]Write i2c OK [05:24:32]MH_I2C_Read... [05:24:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:24:32]Read from MH i2c: E2 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 0B 00 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 0B 00 D4 16 00 1E 9A 92 9A 08 9A F7 39 90 00 1C [05:24:32]RAPDU: 1E 9A 92 9A 08 9A F7 39 90 00 [05:24:32]wFMCommunicate OK [05:24:32]SAM_PROTO_SignData done [05:24:32]FM_MakeSignedData done [05:24:32]CreateOFDProtocolMessage [05:24:32]wFMCommunicate request_size=4 [05:24:32]MH_SAM_APDU [05:24:32]CAPDU: 80 11 00 00 [05:24:32]Write to MH i2c: E2 08 00 D5 16 80 11 00 00 00 00 00 00 65 [05:24:32]Write i2c OK [05:24:32]MH_I2C_Read... [05:24:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:32]Read from MH i2c: E2 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 17 00 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: E2 17 00 D5 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [05:24:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:24:32]wFMCommunicate OK [05:24:32]CreateOFDProtocolMessage done [05:24:32]OFDSenderStorePacket 188033 [05:24:32]StoreOFDPacket docnum=188033 [05:24:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 62 07 01 7B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DE 02 00 35 04 06 00 B3 37 91 68 70 92 1E 9A 92 9A 08 9A F7 39 [05:24:32]CheckFolder [05:24:32]dirname=/storage/ofd_packets [05:24:32]CheckFolder done [05:24:32]ProducePacketName [05:24:32]name=ofd_packets/00188033 [05:24:32]NVStorageSaveData ofd_packets/00188033 [05:24:32]File name is /storage/ofd_packets/00188033 [05:24:32]Write 301 bytes [05:24:32]NVStorageSaveData done [05:24:32]OFDSenderStorePacket done [05:24:32]KKMCreateOFDPacket done [05:24:32]NVStorageSaveData kkm_last_timestamp [05:24:32]File name is /storage/kkm_last_timestamp [05:24:32]Write 4 bytes [05:24:32]NVStorageSaveData done [05:24:32]ExternCall_PrintAddStr [05:24:32]wPrintStart [05:24:32]Write to MH i2c: 01 00 00 D6 16 EC [05:24:32]Write i2c OK [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: 01 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: 01 07 00 [05:24:32]MH_I2C_Read... [05:24:32]Read from MH i2c: 01 07 00 D6 16 00 00 00 00 00 FF 0F 01 [05:24:32]RasterBufferAndPrint [05:24:32]line Счет N : (1)210084 [05:24:32]line ИНН: 02508201610067 [05:24:32]line Контрольно-Кассовый Чек [05:24:32]line ПРОДАЖА [05:24:32]line ТРК (МРК, ГНК) : 22 [05:24:32]line Товар: 2710124130 [05:24:32]line Аи-92-К-3 [05:24:32]line 7.480 * 66.90 [05:24:32]line = 500.41 [05:24:32]line НДС 12% НСП 1% [05:24:32]line > о реализуемом товаре [05:24:32]line ОКРУГЛЕНИЕ: -0.41 [05:24:32]line ИТОГО: 500.00 [05:24:32]line Внесено: 500.00 [05:24:32]line СДАЧА: 0.00 [05:24:32]line НСП 1% : 4.43 [05:24:32]line НДС 12% : 53.14 [05:24:32]line Наличными: 500.00 [05:24:32]line Безнал.: 0.00 [05:24:32]line Место: АЗС № 86 "Партнер Нефть" [05:24:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:24:32]line СНО: Общий режим [05:24:32]line Чек 62 22.10.2024 05:24 [05:24:32]line Смена: 461 ФФД: 1.0 [05:24:32]line ЗНМ: 0300000155 [05:24:32]line РНМ: 0000000000100030 [05:24:32]line Версия ККМ: 001 [05:24:32]line ФМ: 0000000000965340 [05:24:32]line ФД: 188033 [05:24:32]line ФПД: 197051244114066 [05:24:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188033&fm=197051244114066&tin=02508201610067®Number=0000000000100030&sum=50000 [05:24:32]OFD Sender: Processing packet 188033 [packets to send 1062, broken 1061] [05:24:32]ProducePacketName [05:24:32]name=ofd_packets/00188033 [05:24:32]OFD Sender: To server: pG, [05:24:32]CommunicateWithHost lk.salyk.kg:30040 [05:24:32]ConnectInit lk.salyk.kg [05:24:32]written 0, free lines is 4095 [05:24:32]Connected sock=10 [05:24:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 62 07 01 7B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 00 00 00 F4 03 04 00 10 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DE 02 00 35 04 06 00 B3 37 91 68 70 92 1E 9A 92 9A 08 9A F7 39 [05:24:33]Write to MH i2c: 01 00 00 01 17 18 [05:24:33]Write i2c OK [05:24:33]MH_I2C_Read... [05:24:33]Read from MH i2c: 01 [05:24:33]MH_I2C_Read... [05:24:33]Read from MH i2c: 01 07 00 [05:24:33]MH_I2C_Read... [05:24:33]Read from MH i2c: 01 07 00 01 17 00 00 00 00 00 54 0C 7F [05:24:33]RasterBufferAndPrint [05:24:33]line [05:24:33]line [05:24:33]line [05:24:33]line [05:24:33]line [05:24:33]written 0, free lines is 3160 [05:24:33]MH_Cut [05:24:33]Write to MH i2c: D1 01 00 08 17 01 F1 [05:24:33]Write i2c OK [05:24:33]MH_I2C_Read... [05:24:33]Read from MH i2c: D1 [05:24:33]MH_I2C_Read... [05:24:33]Read from MH i2c: D1 01 00 [05:24:33]MH_I2C_Read... [05:24:33]Read from MH i2c: D1 01 00 08 17 00 F0 [05:24:33]Write to MH i2c: 01 00 00 09 17 20 [05:24:33]Write i2c OK [05:24:33]MH_I2C_Read... [05:24:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 93 47 00 93 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 39 36 35 33 34 30 10 04 04 00 81 DE 02 00 F4 03 04 00 FE E0 16 67 B6 04 01 00 00 E1 71 8B 6C A0 CD 2D 09 [05:24:33]CommunicateWithHost err = 0 [05:24:33]CheckOFDResponse [05:24:33]1017 (14) - 77093643461234 [05:24:33]1041 (16) - 0000000000965340 [05:24:33]1040 (4) - 188033 [05:24:33]1012 (4) - 21.10.2024 23:17 [05:24:33]1206 (1) - 0 [05:24:33]OFD Sender: Remove packet 188033 [05:24:33]ProducePacketName [05:24:33]name=ofd_packets/00188033 [05:24:33]NVStorageDeleteData [05:24:33]OFD Sender: No OFD packet to send [05:24:34]*** Cut start [05:24:34]*** Partial cut [05:24:34]*** CUTSNS_PIN = 1 [05:24:34]*** CUTSNS_PIN = 0 [05:24:34]*** Brake cut motor [05:24:35]Read from MH i2c: 01 [05:24:35]MH_I2C_Read... [05:24:35]*** Stop cut motor [05:24:35]*** Cut end [05:24:35]Read from MH i2c: 01 07 00 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: 01 07 00 09 17 00 00 00 00 00 FF 0F 35 [05:24:35]process_action close_receipt done [05:24:35]requested_data is exist [05:24:35]produce_requested_data [05:24:35]requested_item fm.sn is exist - process it [05:24:35]wFMCommunicate request_size=4 [05:24:35]MH_SAM_APDU [05:24:35]CAPDU: 80 11 00 00 [05:24:35]Write to MH i2c: E2 08 00 0A 17 80 11 00 00 00 00 00 00 9B [05:24:35]Write i2c OK [05:24:35]MH_I2C_Read... [05:24:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:24:35]Read from MH i2c: E2 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 17 00 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 17 00 0A 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [05:24:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:24:35]wFMCommunicate OK [05:24:35]requested_item fd.num is exist - process it [05:24:35]SAM_PROTO_GetFieldsCounters [05:24:35]wFMCommunicate request_size=4 [05:24:35]MH_SAM_APDU [05:24:35]CAPDU: 80 13 00 00 [05:24:35]Write to MH i2c: E2 08 00 0B 17 80 13 00 00 00 00 00 00 9E [05:24:35]Write i2c OK [05:24:35]MH_I2C_Read... [05:24:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:24:35]Read from MH i2c: E2 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 62 00 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 62 00 0B 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 DE 02 00 0E 04 04 00 CD 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 8E [05:24:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 DE 02 00 0E 04 04 00 CD 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 [05:24:35]wFMCommunicate OK [05:24:35]SAM_PROTO_GetFieldsCounters done [05:24:35]requested_item shift.num is exist - process it [05:24:35]requested_item shift.opened is exist - process it [05:24:35]req_shift_opened [05:24:35]FM_GetShiftState [05:24:35]SAM_PROTO_GetShiftState [05:24:35]wFMCommunicate request_size=4 [05:24:35]MH_SAM_APDU [05:24:35]CAPDU: 80 13 01 00 [05:24:35]Write to MH i2c: E2 08 00 0C 17 80 13 01 00 00 00 00 00 A0 [05:24:35]Write i2c OK [05:24:35]MH_I2C_Read... [05:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:24:35]Read from MH i2c: E2 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 0E 00 [05:24:35]MH_I2C_Read... [05:24:35]Read from MH i2c: E2 0E 00 0C 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 95 [05:24:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:24:35]wFMCommunicate OK [05:24:35]SAM_PROTO_GetShiftState done [05:24:35]FM_GetShiftState done [05:24:35]req_shift_opened done [05:24:35]requested_item shift.open_date is exist - process it [05:24:35]req_shift_open_date [05:24:35]req_shift_open_date done [05:24:35]produce_requested_data done [05:24:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188033,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:24:35]process_action_free close_receipt [05:24:35]json_value_free [05:24:35]json_value_free done [05:24:35]process_json_proto returns [05:24:35]Send response to host [05:24:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188033,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:24:35]free response buf [05:24:35]execute_script done [05:24:35]execute_script returns [05:24:35]free content buf [05:24:35]Sock 8.Close socket [05:24:35]Sock 8.Thread stoped [05:24:38]OFD Sender: No OFD packet to send [05:24:43]OFD Sender: No OFD packet to send [05:24:48]OFD Sender: No OFD packet to send [05:24:53]OFD Sender: No OFD packet to send [05:24:58]OFD Sender: No OFD packet to send [05:25:03]OFD Sender: No OFD packet to send [05:25:08]OFD Sender: No OFD packet to send [05:25:14]OFD Sender: No OFD packet to send [05:25:19]OFD Sender: No OFD packet to send [05:25:24]OFD Sender: No OFD packet to send [05:25:28]accept exits with 9 [05:25:28]New connection [05:25:28]New thread 3067198820 created [05:25:28]Thread 3067055460 joined [05:25:28]Waiting for new connection... [05:25:28] Sock 9.Parse request [05:25:28]Sock 9.Check first char [05:25:28]Sock 9.First char is OK [05:25:28]request: POST /json_proto HTTP/1.0 [05:25:28]Method: POST [05:25:28]URL: /json_proto [05:25:28]Method is POST - this is cgi request [05:25:28]url: /json_proto [05:25:28]query_string will be loaded in cgi processing [05:25:28]execute_cgi json_proto POST (null) [05:25:28]execute_cgi path=json_proto method=POST [05:25:28]POST find Content-Length [05:25:28]Host: 172.17.42.131:8080 [05:25:28]Content-Length: 677 [05:25:28]Content-Type: application/json [05:25:28] [05:25:28]POST finish read [05:25:28]Found Content-Length = 677 [05:25:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:28]execute_script... [05:25: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)210086", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:28]POST & json_proto [05:25:28]process_json_proto [05:25:28]json parsed OK: [05:25:28]protocol is kg_v1.0 [05:25:28]action value=close_receipt [05:25:28]process_action close_receipt [05:25:28]cmd_close_receipt [05:25:28]MH_GetDate [05:25:28]Write to MH i2c: F0 00 00 0D 17 13 [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: F0 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: F0 09 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: F0 09 00 0D 17 00 4A 37 17 67 A0 18 CA 66 03 [05:25:28]GetLastDocTimeStamp 1729574672 [05:25:28]current date 1729574730 [05:25:28]FM_GetShiftState [05:25:28]SAM_PROTO_GetShiftState [05:25:28]wFMCommunicate request_size=4 [05:25:28]MH_SAM_APDU [05:25:28]CAPDU: 80 13 01 00 [05:25:28]Write to MH i2c: E2 08 00 0E 17 80 13 01 00 00 00 00 00 A2 [05:25:28]Write i2c OK [05:25:28]MH_I2C_Read... [05:25:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:28]Read from MH i2c: E2 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 0E 00 [05:25:28]MH_I2C_Read... [05:25:28]Read from MH i2c: E2 0E 00 0E 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 97 [05:25:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:25:28]wFMCommunicate OK [05:25:28]SAM_PROTO_GetShiftState done [05:25:28]FM_GetShiftState done [05:25:28]opened in 1729556094 [05:25:28]opened+sec_in_day 1729642494 [05:25:28]quantity*price = 50041 [05:25:28]sum+1 = 50042 [05:25:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 63 22.10.2024 05:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188034 ФПД: 157995082740771 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188034&fm=157995082740771&tin=02508201610067®Number=0000000000100030&sum=50000 [05:25:30]StoreToDocumentArchive [05:25:30]shift 461 fd 188034 [05:25:30]save to /storage/0461/doc_00188034 [05:25:30]save last doc name /storage/0461/doc_00188034 to /storage/kkm_last_doc_name [05:25:30]save OK [05:25:30]Clear old archive folders... [05:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:25:30]tlvbuf is 01BDCA00 [05:25:30]SAM_PROTO_ClearQueue [05:25:30]wFMCommunicate request_size=4 [05:25:30]MH_SAM_APDU [05:25:30]CAPDU: 80 09 00 00 [05:25:30]Write to MH i2c: E2 08 00 1B 17 80 09 00 00 00 00 00 00 A4 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:30]Read from MH i2c: E2 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 1B 17 00 90 00 A6 [05:25:30]RAPDU: 90 00 [05:25:30]wFMCommunicate OK [05:25:30]SAM_PROTO_ClearQueue done [05:25:30]KKMCreateOFDPacket [05:25:30]OFDProtocolAddRootSTLVToBuf [05:25:30]FM_MakeSignedData [05:25:30]FM_MakeSignedData [05:25:30]SAM_PROTO_SignData [05:25:30]wFMCommunicate request_size=4 [05:25:30]MH_SAM_APDU [05:25:30]CAPDU: 80 0D 01 02 [05:25:30]Write to MH i2c: E2 08 00 1C 17 80 0D 01 02 00 00 00 00 AC [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:30]Read from MH i2c: E2 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 1C 17 00 90 00 A7 [05:25:30]RAPDU: 90 00 [05:25:30]wFMCommunicate OK [05:25:30]wFMCommunicate request_size=255 [05:25:30]MH_SAM_APDU [05:25:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4A 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DE 02 00 35 04 06 00 8F [05:25:30]Write to MH i2c: E2 02 01 1D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4A 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DE 02 00 35 04 06 00 8F 00 00 1C [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:30]Read from MH i2c: E2 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 1D 17 00 90 00 A8 [05:25:30]RAPDU: 90 00 [05:25:30]wFMCommunicate OK [05:25:30]wFMCommunicate request_size=10 [05:25:30]MH_SAM_APDU [05:25:30]CAPDU: 80 0D 02 02 05 B2 18 C8 74 23 [05:25:30]Write to MH i2c: E2 0D 00 1E 17 80 0D 02 02 05 00 B2 18 C8 74 23 00 00 E2 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:30]Read from MH i2c: E2 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 03 00 1E 17 00 90 00 A9 [05:25:30]RAPDU: 90 00 [05:25:30]wFMCommunicate OK [05:25:30]wFMCommunicate request_size=4 [05:25:30]MH_SAM_APDU [05:25:30]CAPDU: 80 0D 03 02 [05:25:30]Write to MH i2c: E2 08 00 1F 17 80 0D 03 02 00 00 00 00 B1 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:30]Read from MH i2c: E2 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 0B 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 0B 00 1F 17 00 72 46 57 2E 21 1E F9 08 90 00 2F [05:25:30]RAPDU: 72 46 57 2E 21 1E F9 08 90 00 [05:25:30]wFMCommunicate OK [05:25:30]SAM_PROTO_SignData done [05:25:30]FM_MakeSignedData done [05:25:30]CreateOFDProtocolMessage [05:25:30]wFMCommunicate request_size=4 [05:25:30]MH_SAM_APDU [05:25:30]CAPDU: 80 11 00 00 [05:25:30]Write to MH i2c: E2 08 00 20 17 80 11 00 00 00 00 00 00 B1 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:30]Read from MH i2c: E2 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 17 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: E2 17 00 20 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [05:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:25:30]wFMCommunicate OK [05:25:30]CreateOFDProtocolMessage done [05:25:30]OFDSenderStorePacket 188034 [05:25:30]StoreOFDPacket docnum=188034 [05:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 7A 07 01 54 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4A 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DE 02 00 35 04 06 00 8F B2 18 C8 74 23 72 46 57 2E 21 1E F9 08 [05:25:30]CheckFolder [05:25:30]dirname=/storage/ofd_packets [05:25:30]CheckFolder done [05:25:30]ProducePacketName [05:25:30]name=ofd_packets/00188034 [05:25:30]NVStorageSaveData ofd_packets/00188034 [05:25:30]File name is /storage/ofd_packets/00188034 [05:25:30]Write 301 bytes [05:25:30]NVStorageSaveData done [05:25:30]OFDSenderStorePacket done [05:25:30]KKMCreateOFDPacket done [05:25:30]NVStorageSaveData kkm_last_timestamp [05:25:30]File name is /storage/kkm_last_timestamp [05:25:30]Write 4 bytes [05:25:30]NVStorageSaveData done [05:25:30]ExternCall_PrintAddStr [05:25:30]wPrintStart [05:25:30]Write to MH i2c: 01 00 00 21 17 38 [05:25:30]Write i2c OK [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 07 00 [05:25:30]MH_I2C_Read... [05:25:30]Read from MH i2c: 01 07 00 21 17 00 00 00 00 00 FF 0F 4D [05:25:30]RasterBufferAndPrint [05:25:30]line Счет N : (1)210086 [05:25:30]line ИНН: 02508201610067 [05:25:30]line Контрольно-Кассовый Чек [05:25:30]line ПРОДАЖА [05:25:30]line ТРК (МРК, ГНК) : 12 [05:25:30]line Товар: 2710124130 [05:25:30]line Аи-92-К-3 [05:25:30]line 7.480 * 66.90 [05:25:30]line = 500.41 [05:25:30]line НДС 12% НСП 1% [05:25:30]line > о реализуемом товаре [05:25:30]line ОКРУГЛЕНИЕ: -0.41 [05:25:30]line ИТОГО: 500.00 [05:25:30]line Внесено: 500.00 [05:25:30]line СДАЧА: 0.00 [05:25:30]line НСП 1% : 4.43 [05:25:30]line НДС 12% : 53.14 [05:25:30]line Наличными: 500.00 [05:25:30]line Безнал.: 0.00 [05:25:30]line Место: АЗС № 86 "Партнер Нефть" [05:25:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:25:30]line СНО: Общий режим [05:25:30]line Чек 63 22.10.2024 05:25 [05:25:30]line Смена: 461 ФФД: 1.0 [05:25:30]line ЗНМ: 0300000155 [05:25:30]line РНМ: 0000000000100030 [05:25:30]line Версия ККМ: 001 [05:25:30]line ФМ: 0000000000965340 [05:25:30]line ФД: 188034 [05:25:30]line ФПД: 157995082740771 [05:25:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188034&fm=157995082740771&tin=02508201610067®Number=0000000000100030&sum=50000 [05:25:30]written 0, free lines is 4095 [05:25:30]OFD Sender: Processing packet 188034 [packets to send 1062, broken 1061] [05:25:30]ProducePacketName [05:25:30]name=ofd_packets/00188034 [05:25:30]OFD Sender: To server: pG, [05:25:30]CommunicateWithHost lk.salyk.kg:30040 [05:25:30]ConnectInit lk.salyk.kg [05:25:31]Connected sock=10 [05:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 18 7A 07 01 54 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3F 00 00 00 F4 03 04 00 4A 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DE 02 00 35 04 06 00 8F B2 18 C8 74 23 72 46 57 2E 21 1E F9 08 [05:25:31]Write to MH i2c: 01 00 00 4C 17 63 [05:25:31]Write i2c OK [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: 01 [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: 01 07 00 [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: 01 07 00 4C 17 00 00 00 00 00 5A 0C D0 [05:25:31]RasterBufferAndPrint [05:25:31]line [05:25:31]line [05:25:31]line [05:25:31]line [05:25:31]line [05:25:31]written 0, free lines is 3166 [05:25:31]MH_Cut [05:25:31]Write to MH i2c: D1 01 00 53 17 01 3C [05:25:31]Write i2c OK [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: D1 [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: D1 01 00 [05:25:31]MH_I2C_Read... [05:25:31]Read from MH i2c: D1 01 00 53 17 00 3B [05:25:31]Write to MH i2c: 01 00 00 54 17 6B [05:25:31]Write i2c OK [05:25:31]MH_I2C_Read... [05:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C7 11 47 00 29 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DE 02 00 F4 03 04 00 38 E1 16 67 B6 04 01 00 00 E1 AC D2 BC DF 11 CC F9 [05:25:31]CommunicateWithHost err = 0 [05:25:31]CheckOFDResponse [05:25:31]1017 (14) - 77093643461234 [05:25:31]1041 (16) - 0000000000965340 [05:25:31]1040 (4) - 188034 [05:25:31]1012 (4) - 21.10.2024 23:18 [05:25:31]1206 (1) - 0 [05:25:31]OFD Sender: Remove packet 188034 [05:25:31]ProducePacketName [05:25:31]name=ofd_packets/00188034 [05:25:31]NVStorageDeleteData [05:25:31]OFD Sender: No OFD packet to send [05:25:32]*** Cut start [05:25:32]*** Partial cut [05:25:32]*** CUTSNS_PIN = 1 [05:25:32]*** CUTSNS_PIN = 0 [05:25:32]*** Brake cut motor [05:25:33]Read from MH i2c: 01 [05:25:33]MH_I2C_Read... [05:25:33]*** Stop cut motor [05:25:33]*** Cut end [05:25:33]Read from MH i2c: 01 07 00 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: 01 07 00 54 17 00 00 00 00 00 FF 0F 80 [05:25:33]process_action close_receipt done [05:25:33]requested_data is exist [05:25:33]produce_requested_data [05:25:33]requested_item fm.sn is exist - process it [05:25:33]wFMCommunicate request_size=4 [05:25:33]MH_SAM_APDU [05:25:33]CAPDU: 80 11 00 00 [05:25:33]Write to MH i2c: E2 08 00 55 17 80 11 00 00 00 00 00 00 E6 [05:25:33]Write i2c OK [05:25:33]MH_I2C_Read... [05:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:33]Read from MH i2c: E2 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: E2 17 00 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: E2 17 00 55 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [05:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:25:33]wFMCommunicate OK [05:25:33]requested_item fd.num is exist - process it [05:25:33]SAM_PROTO_GetFieldsCounters [05:25:33]wFMCommunicate request_size=4 [05:25:33]MH_SAM_APDU [05:25:33]CAPDU: 80 13 00 00 [05:25:33]Write to MH i2c: E2 08 00 56 17 80 13 00 00 00 00 00 00 E9 [05:25:33]Write i2c OK [05:25:33]MH_I2C_Read... [05:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:33]Read from MH i2c: E2 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: E2 62 00 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: E2 62 00 56 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 DE 02 00 0E 04 04 00 CD 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 DD [05:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 DE 02 00 0E 04 04 00 CD 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 [05:25:33]wFMCommunicate OK [05:25:33]SAM_PROTO_GetFieldsCounters done [05:25:33]requested_item shift.num is exist - process it [05:25:33]requested_item shift.opened is exist - process it [05:25:33]req_shift_opened [05:25:33]FM_GetShiftState [05:25:33]SAM_PROTO_GetShiftState [05:25:33]wFMCommunicate request_size=4 [05:25:33]MH_SAM_APDU [05:25:33]CAPDU: 80 13 01 00 [05:25:33]Write to MH i2c: E2 08 00 57 17 80 13 01 00 00 00 00 00 EB [05:25:33]Write i2c OK [05:25:33]MH_I2C_Read... [05:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:33]Read from MH i2c: E2 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: E2 0E 00 [05:25:33]MH_I2C_Read... [05:25:33]Read from MH i2c: E2 0E 00 57 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E0 [05:25:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:25:33]wFMCommunicate OK [05:25:33]SAM_PROTO_GetShiftState done [05:25:33]FM_GetShiftState done [05:25:33]req_shift_opened done [05:25:33]requested_item shift.open_date is exist - process it [05:25:33]req_shift_open_date [05:25:33]req_shift_open_date done [05:25:33]produce_requested_data done [05:25:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188034,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:25:33]process_action_free close_receipt [05:25:33]json_value_free [05:25:33]json_value_free done [05:25:33]process_json_proto returns [05:25:33]Send response to host [05:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188034,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:25:33]free response buf [05:25:33]execute_script done [05:25:33]execute_script returns [05:25:33]free content buf [05:25:33]Sock 9.Close socket [05:25:33]Sock 9.Thread stoped [05:25:36]OFD Sender: No OFD packet to send [05:25:37]accept exits with 8 [05:25:37]New connection [05:25:37]New thread 3067055460 created [05:25:37]Thread 3067198820 joined [05:25:37]Waiting for new connection... [05:25:37] Sock 8.Parse request [05:25:37]Sock 8.Check first char [05:25:37]Sock 8.First char is OK [05:25:37]request: POST /json_proto HTTP/1.0 [05:25:37]Method: POST [05:25:37]URL: /json_proto [05:25:37]Method is POST - this is cgi request [05:25:37]url: /json_proto [05:25:37]query_string will be loaded in cgi processing [05:25:37]execute_cgi json_proto POST (null) [05:25:37]execute_cgi path=json_proto method=POST [05:25:37]POST find Content-Length [05:25:37]Host: 172.17.42.131:8080 [05:25:37]Content-Length: 677 [05:25:37]Content-Type: application/json [05:25:37] [05:25:37]POST finish read [05:25:37]Found Content-Length = 677 [05:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:37]execute_script... [05:25: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)210085", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:25:37]POST & json_proto [05:25:37]process_json_proto [05:25:37]json parsed OK: [05:25:37]protocol is kg_v1.0 [05:25:37]action value=close_receipt [05:25:37]process_action close_receipt [05:25:37]cmd_close_receipt [05:25:37]MH_GetDate [05:25:37]Write to MH i2c: F0 00 00 58 17 5E [05:25:37]Write i2c OK [05:25:37]MH_I2C_Read... [05:25:37]Read from MH i2c: F0 [05:25:37]MH_I2C_Read... [05:25:37]Read from MH i2c: F0 09 00 [05:25:37]MH_I2C_Read... [05:25:37]Read from MH i2c: F0 09 00 58 17 00 53 37 17 67 A0 18 CA 66 57 [05:25:37]GetLastDocTimeStamp 1729574730 [05:25:37]current date 1729574739 [05:25:37]FM_GetShiftState [05:25:37]SAM_PROTO_GetShiftState [05:25:37]wFMCommunicate request_size=4 [05:25:37]MH_SAM_APDU [05:25:37]CAPDU: 80 13 01 00 [05:25:37]Write to MH i2c: E2 08 00 59 17 80 13 01 00 00 00 00 00 ED [05:25:37]Write i2c OK [05:25:37]MH_I2C_Read... [05:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:37]Read from MH i2c: E2 [05:25:37]MH_I2C_Read... [05:25:37]Read from MH i2c: E2 0E 00 [05:25:37]MH_I2C_Read... [05:25:37]Read from MH i2c: E2 0E 00 59 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E2 [05:25:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:25:37]wFMCommunicate OK [05:25:37]SAM_PROTO_GetShiftState done [05:25:37]FM_GetShiftState done [05:25:37]opened in 1729556094 [05:25:37]opened+sec_in_day 1729642494 [05:25:37]quantity*price = 50041 [05:25:37]sum+1 = 50042 [05:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 64 22.10.2024 05:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188035 ФПД: 136248957079926 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188035&fm=136248957079926&tin=02508201610067®Number=0000000000100030&sum=50000 [05:25:38]StoreToDocumentArchive [05:25:38]shift 461 fd 188035 [05:25:38]save to /storage/0461/doc_00188035 [05:25:38]save last doc name /storage/0461/doc_00188035 to /storage/kkm_last_doc_name [05:25:38]save OK [05:25:38]Clear old archive folders... [05:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:25:38]tlvbuf is 01BBEA90 [05:25:38]SAM_PROTO_ClearQueue [05:25:38]wFMCommunicate request_size=4 [05:25:38]MH_SAM_APDU [05:25:38]CAPDU: 80 09 00 00 [05:25:38]Write to MH i2c: E2 08 00 66 17 80 09 00 00 00 00 00 00 EF [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:25:38]Read from MH i2c: E2 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 66 17 00 90 00 F1 [05:25:38]RAPDU: 90 00 [05:25:38]wFMCommunicate OK [05:25:38]SAM_PROTO_ClearQueue done [05:25:38]KKMCreateOFDPacket [05:25:38]OFDProtocolAddRootSTLVToBuf [05:25:38]FM_MakeSignedData [05:25:38]FM_MakeSignedData [05:25:38]SAM_PROTO_SignData [05:25:38]wFMCommunicate request_size=4 [05:25:38]MH_SAM_APDU [05:25:38]CAPDU: 80 0D 01 02 [05:25:38]Write to MH i2c: E2 08 00 67 17 80 0D 01 02 00 00 00 00 F7 [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:25:38]Read from MH i2c: E2 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 67 17 00 90 00 F2 [05:25:38]RAPDU: 90 00 [05:25:38]wFMCommunicate OK [05:25:38]wFMCommunicate request_size=255 [05:25:38]MH_SAM_APDU [05:25: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 53 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DE 02 00 35 04 06 00 7B [05:25:38]Write to MH i2c: E2 02 01 68 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 53 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DE 02 00 35 04 06 00 7B 00 00 5E [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:38]Read from MH i2c: E2 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 68 17 00 90 00 F3 [05:25:38]RAPDU: 90 00 [05:25:38]wFMCommunicate OK [05:25:38]wFMCommunicate request_size=10 [05:25:38]MH_SAM_APDU [05:25:38]CAPDU: 80 0D 02 02 05 EA EE B0 11 76 [05:25:38]Write to MH i2c: E2 0D 00 69 17 80 0D 02 02 05 00 EA EE B0 11 76 00 00 13 [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:25:38]Read from MH i2c: E2 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 03 00 69 17 00 90 00 F4 [05:25:38]RAPDU: 90 00 [05:25:38]wFMCommunicate OK [05:25:38]wFMCommunicate request_size=4 [05:25:38]MH_SAM_APDU [05:25:38]CAPDU: 80 0D 03 02 [05:25:38]Write to MH i2c: E2 08 00 6A 17 80 0D 03 02 00 00 00 00 FC [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:25:38]Read from MH i2c: E2 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 0B 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 0B 00 6A 17 00 9A 64 CB 7A B7 A9 17 48 90 00 FF [05:25:38]RAPDU: 9A 64 CB 7A B7 A9 17 48 90 00 [05:25:38]wFMCommunicate OK [05:25:38]SAM_PROTO_SignData done [05:25:38]FM_MakeSignedData done [05:25:38]CreateOFDProtocolMessage [05:25:38]wFMCommunicate request_size=4 [05:25:38]MH_SAM_APDU [05:25:38]CAPDU: 80 11 00 00 [05:25:38]Write to MH i2c: E2 08 00 6B 17 80 11 00 00 00 00 00 00 FC [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:38]Read from MH i2c: E2 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 17 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: E2 17 00 6B 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [05:25:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:25:38]wFMCommunicate OK [05:25:38]CreateOFDProtocolMessage done [05:25:38]OFDSenderStorePacket 188035 [05:25:38]StoreOFDPacket docnum=188035 [05:25:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB BC 07 01 32 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 53 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DE 02 00 35 04 06 00 7B EA EE B0 11 76 9A 64 CB 7A B7 A9 17 48 [05:25:38]CheckFolder [05:25:38]dirname=/storage/ofd_packets [05:25:38]CheckFolder done [05:25:38]ProducePacketName [05:25:38]name=ofd_packets/00188035 [05:25:38]NVStorageSaveData ofd_packets/00188035 [05:25:38]File name is /storage/ofd_packets/00188035 [05:25:38]Write 301 bytes [05:25:38]NVStorageSaveData done [05:25:38]OFDSenderStorePacket done [05:25:38]KKMCreateOFDPacket done [05:25:38]NVStorageSaveData kkm_last_timestamp [05:25:38]File name is /storage/kkm_last_timestamp [05:25:38]Write 4 bytes [05:25:38]NVStorageSaveData done [05:25:38]ExternCall_PrintAddStr [05:25:38]wPrintStart [05:25:38]Write to MH i2c: 01 00 00 6C 17 83 [05:25:38]Write i2c OK [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: 01 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: 01 07 00 [05:25:38]MH_I2C_Read... [05:25:38]Read from MH i2c: 01 07 00 6C 17 00 00 00 00 00 FF 0F 98 [05:25:38]RasterBufferAndPrint [05:25:38]line Счет N : (1)210085 [05:25:38]line ИНН: 02508201610067 [05:25:38]line Контрольно-Кассовый Чек [05:25:38]line ПРОДАЖА [05:25:38]line ТРК (МРК, ГНК) : 42 [05:25:38]line Товар: 2710124130 [05:25:38]line Аи-92-К-3 [05:25:38]line 7.480 * 66.90 [05:25:38]line = 500.41 [05:25:38]line НДС 12% НСП 1% [05:25:38]line > о реализуемом товаре [05:25:38]line ОКРУГЛЕНИЕ: -0.41 [05:25:38]line ИТОГО: 500.00 [05:25:38]line Внесено: 500.00 [05:25:38]line СДАЧА: 0.00 [05:25:38]line НСП 1% : 4.43 [05:25:38]line НДС 12% : 53.14 [05:25:38]line Наличными: 500.00 [05:25:38]line Безнал.: 0.00 [05:25:38]line Место: АЗС № 86 "Партнер Нефть" [05:25:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:25:38]line СНО: Общий режим [05:25:38]line Чек 64 22.10.2024 05:25 [05:25:38]line Смена: 461 ФФД: 1.0 [05:25:38]line ЗНМ: 0300000155 [05:25:38]line РНМ: 0000000000100030 [05:25:38]line Версия ККМ: 001 [05:25:38]line ФМ: 0000000000965340 [05:25:38]line ФД: 188035 [05:25:38]line ФПД: 136248957079926 [05:25:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T052539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188035&fm=136248957079926&tin=02508201610067®Number=0000000000100030&sum=50000 [05:25:38]written 0, free lines is 4095 [05:25:38]OFD Sender: Processing packet 188035 [packets to send 1062, broken 1061] [05:25:38]ProducePacketName [05:25:38]name=ofd_packets/00188035 [05:25:38]OFD Sender: To server: pG, [05:25:38]CommunicateWithHost lk.salyk.kg:30040 [05:25:38]ConnectInit lk.salyk.kg [05:25:39]Connected sock=10 [05:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB BC 07 01 32 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 00 00 00 F4 03 04 00 53 37 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DE 02 00 35 04 06 00 7B EA EE B0 11 76 9A 64 CB 7A B7 A9 17 48 [05:25:39]Write to MH i2c: 01 00 00 97 17 AE [05:25:39]Write i2c OK [05:25:39]MH_I2C_Read... [05:25:39]Read from MH i2c: 01 [05:25:39]MH_I2C_Read... [05:25:39]Read from MH i2c: 01 07 00 [05:25:39]MH_I2C_Read... [05:25:39]Read from MH i2c: 01 07 00 97 17 00 00 00 00 00 5C 0C 1D [05:25:39]RasterBufferAndPrint [05:25:39]line [05:25:39]line [05:25:39]line [05:25:39]line [05:25:39]line [05:25:39]written 0, free lines is 3169 [05:25:39]MH_Cut [05:25:39]Write to MH i2c: D1 01 00 9E 17 01 87 [05:25:39]Write i2c OK [05:25:39]MH_I2C_Read... [05:25:39]Read from MH i2c: D1 [05:25:39]MH_I2C_Read... [05:25:39]Read from MH i2c: D1 01 00 [05:25:39]MH_I2C_Read... [05:25:39]Read from MH i2c: D1 01 00 9E 17 00 86 [05:25:39]Write to MH i2c: 01 00 00 9F 17 B6 [05:25:39]Write i2c OK [05:25:39]MH_I2C_Read... [05:25:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 C2 47 00 86 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 39 36 35 33 34 30 10 04 04 00 83 DE 02 00 F4 03 04 00 41 E1 16 67 B6 04 01 00 00 0F 54 CB D8 68 8D B8 44 [05:25:39]CommunicateWithHost err = 0 [05:25:39]CheckOFDResponse [05:25:39]1017 (14) - 77093643461234 [05:25:39]1041 (16) - 0000000000965340 [05:25:39]1040 (4) - 188035 [05:25:39]1012 (4) - 21.10.2024 23:18 [05:25:39]1206 (1) - 0 [05:25:39]OFD Sender: Remove packet 188035 [05:25:39]ProducePacketName [05:25:39]name=ofd_packets/00188035 [05:25:39]NVStorageDeleteData [05:25:39]OFD Sender: No OFD packet to send [05:25:40]*** Cut start [05:25:40]*** Partial cut [05:25:40]*** CUTSNS_PIN = 1 [05:25:40]*** CUTSNS_PIN = 0 [05:25:40]*** Brake cut motor [05:25:41]Read from MH i2c: 01 [05:25:41]MH_I2C_Read... [05:25:41]*** Stop cut motor [05:25:41]*** Cut end [05:25:41]Read from MH i2c: 01 07 00 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: 01 07 00 9F 17 00 00 00 00 00 FF 0F CB [05:25:41]process_action close_receipt done [05:25:41]requested_data is exist [05:25:41]produce_requested_data [05:25:41]requested_item fm.sn is exist - process it [05:25:41]wFMCommunicate request_size=4 [05:25:41]MH_SAM_APDU [05:25:41]CAPDU: 80 11 00 00 [05:25:41]Write to MH i2c: E2 08 00 A0 17 80 11 00 00 00 00 00 00 31 [05:25:41]Write i2c OK [05:25:41]MH_I2C_Read... [05:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:25:41]Read from MH i2c: E2 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: E2 17 00 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: E2 17 00 A0 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [05:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:25:41]wFMCommunicate OK [05:25:41]requested_item fd.num is exist - process it [05:25:41]SAM_PROTO_GetFieldsCounters [05:25:41]wFMCommunicate request_size=4 [05:25:41]MH_SAM_APDU [05:25:41]CAPDU: 80 13 00 00 [05:25:41]Write to MH i2c: E2 08 00 A1 17 80 13 00 00 00 00 00 00 34 [05:25:41]Write i2c OK [05:25:41]MH_I2C_Read... [05:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:25:41]Read from MH i2c: E2 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: E2 62 00 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: E2 62 00 A1 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 DE 02 00 0E 04 04 00 CD 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 2C [05:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 DE 02 00 0E 04 04 00 CD 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 [05:25:41]wFMCommunicate OK [05:25:41]SAM_PROTO_GetFieldsCounters done [05:25:41]requested_item shift.num is exist - process it [05:25:41]requested_item shift.opened is exist - process it [05:25:41]req_shift_opened [05:25:41]FM_GetShiftState [05:25:41]SAM_PROTO_GetShiftState [05:25:41]wFMCommunicate request_size=4 [05:25:41]MH_SAM_APDU [05:25:41]CAPDU: 80 13 01 00 [05:25:41]Write to MH i2c: E2 08 00 A2 17 80 13 01 00 00 00 00 00 36 [05:25:41]Write i2c OK [05:25:41]MH_I2C_Read... [05:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:25:41]Read from MH i2c: E2 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: E2 0E 00 [05:25:41]MH_I2C_Read... [05:25:41]Read from MH i2c: E2 0E 00 A2 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2B [05:25:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:25:41]wFMCommunicate OK [05:25:41]SAM_PROTO_GetShiftState done [05:25:41]FM_GetShiftState done [05:25:41]req_shift_opened done [05:25:41]requested_item shift.open_date is exist - process it [05:25:41]req_shift_open_date [05:25:41]req_shift_open_date done [05:25:41]produce_requested_data done [05:25:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188035,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:25:41]process_action_free close_receipt [05:25:41]json_value_free [05:25:41]json_value_free done [05:25:41]process_json_proto returns [05:25:41]Send response to host [05:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188035,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:25:41]free response buf [05:25:41]execute_script done [05:25:41]execute_script returns [05:25:41]free content buf [05:25:41]Sock 8.Close socket [05:25:41]Sock 8.Thread stoped [05:25:45]OFD Sender: No OFD packet to send [05:25:50]OFD Sender: No OFD packet to send [05:25:55]OFD Sender: No OFD packet to send [05:26:00]OFD Sender: No OFD packet to send [05:26:05]OFD Sender: No OFD packet to send [05:26:10]OFD Sender: No OFD packet to send [05:26:15]OFD Sender: No OFD packet to send [05:26:20]OFD Sender: No OFD packet to send [05:26:25]OFD Sender: No OFD packet to send [05:26:30]OFD Sender: No OFD packet to send [05:26:35]OFD Sender: No OFD packet to send [05:26:40]OFD Sender: No OFD packet to send [05:26:45]OFD Sender: No OFD packet to send [05:26:50]OFD Sender: No OFD packet to send [05:26:55]OFD Sender: No OFD packet to send [05:27:00]OFD Sender: No OFD packet to send [05:27:05]OFD Sender: No OFD packet to send [05:27:10]OFD Sender: No OFD packet to send [05:27:15]OFD Sender: No OFD packet to send [05:27:20]OFD Sender: No OFD packet to send [05:27:25]OFD Sender: No OFD packet to send [05:27:30]OFD Sender: No OFD packet to send [05:27:35]OFD Sender: No OFD packet to send [05:27:40]OFD Sender: No OFD packet to send [05:27:45]OFD Sender: No OFD packet to send [05:27:50]OFD Sender: No OFD packet to send [05:27:55]OFD Sender: No OFD packet to send [05:28:00]OFD Sender: No OFD packet to send [05:28:05]OFD Sender: No OFD packet to send [05:28:10]OFD Sender: No OFD packet to send [05:28:15]OFD Sender: No OFD packet to send [05:28:20]OFD Sender: No OFD packet to send [05:28:25]OFD Sender: No OFD packet to send [05:28:30]OFD Sender: No OFD packet to send [05:28:35]OFD Sender: No OFD packet to send [05:28:40]OFD Sender: No OFD packet to send [05:28:45]OFD Sender: No OFD packet to send [05:28:50]OFD Sender: No OFD packet to send [05:28:55]OFD Sender: No OFD packet to send [05:29:00]OFD Sender: No OFD packet to send [05:29:05]OFD Sender: No OFD packet to send [05:29:10]OFD Sender: No OFD packet to send [05:29:15]OFD Sender: No OFD packet to send [05:29:21]OFD Sender: No OFD packet to send [05:29:26]OFD Sender: No OFD packet to send [05:29:31]OFD Sender: No OFD packet to send [05:29:36]OFD Sender: No OFD packet to send [05:29:41]OFD Sender: No OFD packet to send [05:29:46]OFD Sender: No OFD packet to send [05:29:51]OFD Sender: No OFD packet to send [05:29:56]OFD Sender: No OFD packet to send [05:30:01]OFD Sender: No OFD packet to send [05:30:06]OFD Sender: No OFD packet to send [05:30:11]OFD Sender: No OFD packet to send [05:30:16]OFD Sender: No OFD packet to send [05:30:21]OFD Sender: No OFD packet to send [05:30:26]OFD Sender: No OFD packet to send [05:30:28]accept exits with 9 [05:30:28]New connection [05:30:28]New thread 3067198820 created [05:30:28]Thread 3067055460 joined [05:30:28]Waiting for new connection... [05:30:28] Sock 9.Parse request [05:30:28]Sock 9.Check first char [05:30:28]Sock 9.First char is OK [05:30:28]request: POST /json_proto HTTP/1.0 [05:30:28]Method: POST [05:30:28]URL: /json_proto [05:30:28]Method is POST - this is cgi request [05:30:28]url: /json_proto [05:30:28]query_string will be loaded in cgi processing [05:30:28]execute_cgi json_proto POST (null) [05:30:28]execute_cgi path=json_proto method=POST [05:30:28]POST find Content-Length [05:30:28]Host: 172.17.42.131:8080 [05:30:28]Content-Length: 775 [05:30:28]Content-Type: application/json [05:30:28] [05:30:28]POST finish read [05:30:28]Found Content-Length = 775 [05:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.000, "sum" : 1544.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1544.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:28]execute_script... [05:30: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)210087", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.000, "sum" : 1544.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1544.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:30:28]POST & json_proto [05:30:28]process_json_proto [05:30:28]json parsed OK: [05:30:28]protocol is kg_v1.0 [05:30:28]action value=close_receipt [05:30:28]process_action close_receipt [05:30:28]cmd_close_receipt [05:30:28]MH_GetDate [05:30:28]Write to MH i2c: F0 00 00 A3 17 A9 [05:30:28]Write i2c OK [05:30:28]MH_I2C_Read... [05:30:28]Read from MH i2c: F0 [05:30:28]MH_I2C_Read... [05:30:28]Read from MH i2c: F0 09 00 [05:30:28]MH_I2C_Read... [05:30:28]Read from MH i2c: F0 09 00 A3 17 00 76 38 17 67 A0 18 CA 66 C6 [05:30:28]GetLastDocTimeStamp 1729574739 [05:30:28]current date 1729575030 [05:30:28]FM_GetShiftState [05:30:28]SAM_PROTO_GetShiftState [05:30:28]wFMCommunicate request_size=4 [05:30:28]MH_SAM_APDU [05:30:28]CAPDU: 80 13 01 00 [05:30:28]Write to MH i2c: E2 08 00 A4 17 80 13 01 00 00 00 00 00 38 [05:30:28]Write i2c OK [05:30:28]MH_I2C_Read... [05:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:28]Read from MH i2c: E2 [05:30:28]MH_I2C_Read... [05:30:28]Read from MH i2c: E2 0E 00 [05:30:28]MH_I2C_Read... [05:30:28]Read from MH i2c: E2 0E 00 A4 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2D [05:30:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:30:28]wFMCommunicate OK [05:30:28]SAM_PROTO_GetShiftState done [05:30:28]FM_GetShiftState done [05:30:28]opened in 1729556094 [05:30:28]opened+sec_in_day 1729642494 [05:30:28]quantity*price = 154400 [05:30:28]sum+1 = 154401 [05:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1544.00 НСП 1% : 13.66 НДС 12% : 163.96 Наличными: 0.00 Безнал.: 1544.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 65 22.10.2024 05:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188036 ФПД: 16881957153717 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188036&fm=16881957153717&tin=02508201610067®Number=0000000000100030&sum=154400 [05:30:29]StoreToDocumentArchive [05:30:29]shift 461 fd 188036 [05:30:29]save to /storage/0461/doc_00188036 [05:30:29]save last doc name /storage/0461/doc_00188036 to /storage/kkm_last_doc_name [05:30:29]save OK [05:30:29]Clear old archive folders... [05:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:30:29]tlvbuf is 01BE0200 [05:30:29]SAM_PROTO_ClearQueue [05:30:29]wFMCommunicate request_size=4 [05:30:29]MH_SAM_APDU [05:30:29]CAPDU: 80 09 00 00 [05:30:29]Write to MH i2c: E2 08 00 B1 17 80 09 00 00 00 00 00 00 3A [05:30:29]Write i2c OK [05:30:29]MH_I2C_Read... [05:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:30:29]Read from MH i2c: E2 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 B1 17 00 90 00 3C [05:30:29]RAPDU: 90 00 [05:30:29]wFMCommunicate OK [05:30:29]SAM_PROTO_ClearQueue done [05:30:29]KKMCreateOFDPacket [05:30:29]OFDProtocolAddRootSTLVToBuf [05:30:29]FM_MakeSignedData [05:30:29]FM_MakeSignedData [05:30:29]SAM_PROTO_SignData [05:30:29]wFMCommunicate request_size=4 [05:30:29]MH_SAM_APDU [05:30:29]CAPDU: 80 0D 01 02 [05:30:29]Write to MH i2c: E2 08 00 B2 17 80 0D 01 02 00 00 00 00 42 [05:30:29]Write i2c OK [05:30:29]MH_I2C_Read... [05:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:30:29]Read from MH i2c: E2 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 B2 17 00 90 00 3D [05:30:29]RAPDU: 90 00 [05:30:29]wFMCommunicate OK [05:30:29]wFMCommunicate request_size=255 [05:30:29]MH_SAM_APDU [05:30:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 5B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 5B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 5B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 76 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DE 02 [05:30:29]Write to MH i2c: E2 02 01 B3 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 5B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 5B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 5B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 76 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DE 02 00 00 2E [05:30:29]Write i2c OK [05:30:29]MH_I2C_Read... [05:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:29]Read from MH i2c: E2 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 B3 17 00 90 00 3E [05:30:29]RAPDU: 90 00 [05:30:29]wFMCommunicate OK [05:30:29]wFMCommunicate request_size=16 [05:30:29]MH_SAM_APDU [05:30:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0F 5A A3 0F 2B B5 [05:30:29]Write to MH i2c: E2 13 00 B4 17 80 0D 02 02 0B 00 00 35 04 06 00 0F 5A A3 0F 2B B5 00 00 95 [05:30:29]Write i2c OK [05:30:29]MH_I2C_Read... [05:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:30:29]Read from MH i2c: E2 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 03 00 B4 17 00 90 00 3F [05:30:29]RAPDU: 90 00 [05:30:29]wFMCommunicate OK [05:30:29]wFMCommunicate request_size=4 [05:30:29]MH_SAM_APDU [05:30:29]CAPDU: 80 0D 03 02 [05:30:29]Write to MH i2c: E2 08 00 B5 17 80 0D 03 02 00 00 00 00 47 [05:30:29]Write i2c OK [05:30:29]MH_I2C_Read... [05:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:30:29]Read from MH i2c: E2 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 0B 00 [05:30:29]MH_I2C_Read... [05:30:29]Read from MH i2c: E2 0B 00 B5 17 00 85 C9 79 E4 B7 F4 6C 63 90 00 6D [05:30:29]RAPDU: 85 C9 79 E4 B7 F4 6C 63 90 00 [05:30:29]wFMCommunicate OK [05:30:29]SAM_PROTO_SignData done [05:30:29]FM_MakeSignedData done [05:30:29]CreateOFDProtocolMessage [05:30:29]wFMCommunicate request_size=4 [05:30:29]MH_SAM_APDU [05:30:29]CAPDU: 80 11 00 00 [05:30:29]Write to MH i2c: E2 08 00 B6 17 80 11 00 00 00 00 00 00 47 [05:30:30]Write i2c OK [05:30:30]MH_I2C_Read... [05:30:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:30]Read from MH i2c: E2 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: E2 17 00 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: E2 17 00 B6 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [05:30:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:30:30]wFMCommunicate OK [05:30:30]CreateOFDProtocolMessage done [05:30:30]OFDSenderStorePacket 188036 [05:30:30]StoreOFDPacket docnum=188036 [05:30:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 31 79 0D 01 8F 27 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 5B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 5B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 5B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 76 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DE 02 00 35 04 06 00 0F 5A A3 0F 2B B5 85 C9 79 E4 B7 F4 6C 63 [05:30:30]CheckFolder [05:30:30]dirname=/storage/ofd_packets [05:30:30]CheckFolder done [05:30:30]ProducePacketName [05:30:30]name=ofd_packets/00188036 [05:30:30]NVStorageSaveData ofd_packets/00188036 [05:30:30]File name is /storage/ofd_packets/00188036 [05:30:30]Write 307 bytes [05:30:30]NVStorageSaveData done [05:30:30]OFDSenderStorePacket done [05:30:30]KKMCreateOFDPacket done [05:30:30]NVStorageSaveData kkm_last_timestamp [05:30:30]File name is /storage/kkm_last_timestamp [05:30:30]Write 4 bytes [05:30:30]NVStorageSaveData done [05:30:30]ExternCall_PrintAddStr [05:30:30]wPrintStart [05:30:30]Write to MH i2c: 01 00 00 B7 17 CE [05:30:30]Write i2c OK [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: 01 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: 01 07 00 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: 01 07 00 B7 17 00 00 00 00 00 FF 0F E3 [05:30:30]RasterBufferAndPrint [05:30:30]line Счет N : (1)210087 [05:30:30]line ИНН: 02508201610067 [05:30:30]line Контрольно-Кассовый Чек [05:30:30]line ПРОДАЖА [05:30:30]line ТРК (МРК, ГНК) : 31 [05:30:30]line Товар: 2710194210 [05:30:30]line D-ENERGY ДТ-К-5 [05:30:30]line 20.000 * 77.20 [05:30:30]line = 1544.00 [05:30:30]line НДС 12% НСП 1% [05:30:30]line > о реализуемом товаре [05:30:30]line ИТОГО: 1544.00 [05:30:30]line НСП 1% : 13.66 [05:30:30]line НДС 12% : 163.96 [05:30:30]line Наличными: 0.00 [05:30:30]line Безнал.: 1544.00 [05:30:30]line Место: АЗС № 86 "Партнер Нефть" [05:30:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:30:30]line СНО: Общий режим [05:30:30]line Чек 65 22.10.2024 05:30 [05:30:30]line Смена: 461 ФФД: 1.0 [05:30:30]line ЗНМ: 0300000155 [05:30:30]line РНМ: 0000000000100030 [05:30:30]line Версия ККМ: 001 [05:30:30]line Платежная система: Mbank [05:30:30]line ФМ: 0000000000965340 [05:30:30]line ФД: 188036 [05:30:30]line ФПД: 16881957153717 [05:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188036&fm=16881957153717&tin=02508201610067®Number=0000000000100030&sum=154400 [05:30:30]OFD Sender: Processing packet 188036 [packets to send 1062, broken 1061] [05:30:30]ProducePacketName [05:30:30]name=ofd_packets/00188036 [05:30:30]OFD Sender: To server: pG, [05:30:30]CommunicateWithHost lk.salyk.kg:30040 [05:30:30]ConnectInit lk.salyk.kg [05:30:30]written 0, free lines is 4095 [05:30:30]Connected sock=10 [05:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 31 79 0D 01 8F 27 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 20 5B 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 5B 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 40 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 20 5B 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 00 00 00 F4 03 04 00 76 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DE 02 00 35 04 06 00 0F 5A A3 0F 2B B5 85 C9 79 E4 B7 F4 6C 63 [05:30:30]Write to MH i2c: 01 00 00 E0 17 F7 [05:30:30]Write i2c OK [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: 01 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: 01 07 00 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: 01 07 00 E0 17 00 00 00 00 00 80 0C 8A [05:30:30]RasterBufferAndPrint [05:30:30]line [05:30:30]line [05:30:30]line [05:30:30]line [05:30:30]line [05:30:30]written 0, free lines is 3204 [05:30:30]MH_Cut [05:30:30]Write to MH i2c: D1 01 00 E7 17 01 D0 [05:30:30]Write i2c OK [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: D1 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: D1 01 00 [05:30:30]MH_I2C_Read... [05:30:30]Read from MH i2c: D1 01 00 E7 17 00 CF [05:30:30]Write to MH i2c: 01 00 00 E8 17 FF [05:30:30]Write i2c OK [05:30:30]MH_I2C_Read... [05:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 54 47 00 55 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DE 02 00 F4 03 04 00 64 E2 16 67 B6 04 01 00 00 69 F1 12 C9 B8 41 D9 FC [05:30:30]CommunicateWithHost err = 0 [05:30:30]CheckOFDResponse [05:30:30]1017 (14) - 77093643461234 [05:30:30]1041 (16) - 0000000000965340 [05:30:30]1040 (4) - 188036 [05:30:30]1012 (4) - 21.10.2024 23:23 [05:30:30]1206 (1) - 0 [05:30:30]OFD Sender: Remove packet 188036 [05:30:30]ProducePacketName [05:30:30]name=ofd_packets/00188036 [05:30:30]NVStorageDeleteData [05:30:31]OFD Sender: No OFD packet to send [05:30:31]*** Cut start [05:30:31]*** Partial cut [05:30:31]*** CUTSNS_PIN = 1 [05:30:31]*** CUTSNS_PIN = 0 [05:30:32]*** Brake cut motor [05:30:32]Read from MH i2c: 01 [05:30:32]MH_I2C_Read... [05:30:32]*** Stop cut motor [05:30:32]*** Cut end [05:30:32]Read from MH i2c: 01 07 00 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: 01 07 00 E8 17 00 00 00 00 00 FF 0F 14 [05:30:32]process_action close_receipt done [05:30:32]requested_data is exist [05:30:32]produce_requested_data [05:30:32]requested_item fm.sn is exist - process it [05:30:32]wFMCommunicate request_size=4 [05:30:32]MH_SAM_APDU [05:30:32]CAPDU: 80 11 00 00 [05:30:32]Write to MH i2c: E2 08 00 E9 17 80 11 00 00 00 00 00 00 7A [05:30:32]Write i2c OK [05:30:32]MH_I2C_Read... [05:30:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:30:32]Read from MH i2c: E2 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: E2 17 00 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: E2 17 00 E9 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [05:30:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:30:32]wFMCommunicate OK [05:30:32]requested_item fd.num is exist - process it [05:30:32]SAM_PROTO_GetFieldsCounters [05:30:32]wFMCommunicate request_size=4 [05:30:32]MH_SAM_APDU [05:30:32]CAPDU: 80 13 00 00 [05:30:32]Write to MH i2c: E2 08 00 EA 17 80 13 00 00 00 00 00 00 7D [05:30:32]Write i2c OK [05:30:32]MH_I2C_Read... [05:30:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:30:32]Read from MH i2c: E2 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: E2 62 00 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: E2 62 00 EA 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 DE 02 00 0E 04 04 00 CD 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 79 [05:30:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 DE 02 00 0E 04 04 00 CD 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 [05:30:32]wFMCommunicate OK [05:30:32]SAM_PROTO_GetFieldsCounters done [05:30:32]requested_item shift.num is exist - process it [05:30:32]requested_item shift.opened is exist - process it [05:30:32]req_shift_opened [05:30:32]FM_GetShiftState [05:30:32]SAM_PROTO_GetShiftState [05:30:32]wFMCommunicate request_size=4 [05:30:32]MH_SAM_APDU [05:30:32]CAPDU: 80 13 01 00 [05:30:32]Write to MH i2c: E2 08 00 EB 17 80 13 01 00 00 00 00 00 7F [05:30:32]Write i2c OK [05:30:32]MH_I2C_Read... [05:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:30:32]Read from MH i2c: E2 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: E2 0E 00 [05:30:32]MH_I2C_Read... [05:30:32]Read from MH i2c: E2 0E 00 EB 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 74 [05:30:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:30:32]wFMCommunicate OK [05:30:32]SAM_PROTO_GetShiftState done [05:30:32]FM_GetShiftState done [05:30:32]req_shift_opened done [05:30:32]requested_item shift.open_date is exist - process it [05:30:32]req_shift_open_date [05:30:32]req_shift_open_date done [05:30:32]produce_requested_data done [05:30:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188036,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:30:32]process_action_free close_receipt [05:30:32]json_value_free [05:30:32]json_value_free done [05:30:32]process_json_proto returns [05:30:32]Send response to host [05:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188036,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:30:32]free response buf [05:30:32]execute_script done [05:30:32]execute_script returns [05:30:32]free content buf [05:30:32]Sock 9.Close socket [05:30:32]Sock 9.Thread stoped [05:30:36]OFD Sender: No OFD packet to send [05:30:41]OFD Sender: No OFD packet to send [05:30:46]OFD Sender: No OFD packet to send [05:30:51]OFD Sender: No OFD packet to send [05:30:56]OFD Sender: No OFD packet to send [05:31:01]OFD Sender: No OFD packet to send [05:31:06]OFD Sender: No OFD packet to send [05:31:10]accept exits with 8 [05:31:10]New connection [05:31:10]New thread 3067055460 created [05:31:10]Thread 3067198820 joined [05:31:10]Waiting for new connection... [05:31:10] Sock 8.Parse request [05:31:10]Sock 8.Check first char [05:31:10]Sock 8.First char is OK [05:31:10]request: POST /json_proto HTTP/1.0 [05:31:10]Method: POST [05:31:10]URL: /json_proto [05:31:10]Method is POST - this is cgi request [05:31:10]url: /json_proto [05:31:10]query_string will be loaded in cgi processing [05:31:10]execute_cgi json_proto POST (null) [05:31:10]execute_cgi path=json_proto method=POST [05:31:10]POST find Content-Length [05:31:10]Host: 172.17.42.131:8080 [05:31:10]Content-Length: 683 [05:31:10]Content-Type: application/json [05:31:10] [05:31:10]POST finish read [05:31:10]Found Content-Length = 683 [05:31:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "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:31:10]execute_script... [05:31:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210088", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.190, "sum" : 400.67, "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:31:10]POST & json_proto [05:31:10]process_json_proto [05:31:10]json parsed OK: [05:31:10]protocol is kg_v1.0 [05:31:10]action value=close_receipt [05:31:10]process_action close_receipt [05:31:10]cmd_close_receipt [05:31:10]MH_GetDate [05:31:10]Write to MH i2c: F0 00 00 EC 17 F2 [05:31:10]Write i2c OK [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: F0 [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: F0 09 00 [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: F0 09 00 EC 17 00 A0 38 17 67 A0 18 CA 66 39 [05:31:10]GetLastDocTimeStamp 1729575030 [05:31:10]current date 1729575072 [05:31:10]FM_GetShiftState [05:31:10]SAM_PROTO_GetShiftState [05:31:10]wFMCommunicate request_size=4 [05:31:10]MH_SAM_APDU [05:31:10]CAPDU: 80 13 01 00 [05:31:10]Write to MH i2c: E2 08 00 ED 17 80 13 01 00 00 00 00 00 81 [05:31:10]Write i2c OK [05:31:10]MH_I2C_Read... [05:31:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:10]Read from MH i2c: E2 [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: E2 0E 00 [05:31:10]MH_I2C_Read... [05:31:10]Read from MH i2c: E2 0E 00 ED 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 76 [05:31:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:31:10]wFMCommunicate OK [05:31:10]SAM_PROTO_GetShiftState done [05:31:10]FM_GetShiftState done [05:31:10]opened in 1729556094 [05:31:10]opened+sec_in_day 1729642494 [05:31:10]quantity*price = 40066 [05:31:10]sum+1 = 40068 [05:31:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 66 22.10.2024 05:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188037 ФПД: 93255509403476 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188037&fm=93255509403476&tin=02508201610067®Number=0000000000100030&sum=40000 [05:31:11]StoreToDocumentArchive [05:31:11]shift 461 fd 188037 [05:31:11]save to /storage/0461/doc_00188037 [05:31:11]save last doc name /storage/0461/doc_00188037 to /storage/kkm_last_doc_name [05:31:11]save OK [05:31:11]Clear old archive folders... [05:31:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:31:11]tlvbuf is 01BDC090 [05:31:11]SAM_PROTO_ClearQueue [05:31:11]wFMCommunicate request_size=4 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 09 00 00 [05:31:11]Write to MH i2c: E2 08 00 FA 17 80 09 00 00 00 00 00 00 83 [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:31:11]Read from MH i2c: E2 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 FA 17 00 90 00 85 [05:31:11]RAPDU: 90 00 [05:31:11]wFMCommunicate OK [05:31:11]SAM_PROTO_ClearQueue done [05:31:11]KKMCreateOFDPacket [05:31:11]OFDProtocolAddRootSTLVToBuf [05:31:11]FM_MakeSignedData [05:31:11]FM_MakeSignedData [05:31:11]SAM_PROTO_SignData [05:31:11]wFMCommunicate request_size=4 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 0D 01 02 [05:31:11]Write to MH i2c: E2 08 00 FB 17 80 0D 01 02 00 00 00 00 8B [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:31:11]Read from MH i2c: E2 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 [05:31:11]MH_I2C_Read... [05:31:11]Read from MH i2c: E2 03 00 FB 17 00 90 00 86 [05:31:11]RAPDU: 90 00 [05:31:11]wFMCommunicate OK [05:31:11]wFMCommunicate request_size=255 [05:31:11]MH_SAM_APDU [05:31:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 42 00 00 00 F4 03 04 00 A0 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DE 02 [05:31:11]Write to MH i2c: E2 02 01 FC 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 42 00 00 00 F4 03 04 00 A0 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DE 02 00 00 5B [05:31:11]Write i2c OK [05:31:11]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 FC 17 00 90 00 87 [05:31:12]RAPDU: 90 00 [05:31:12]wFMCommunicate OK [05:31:12]wFMCommunicate request_size=16 [05:31:12]MH_SAM_APDU [05:31:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 D0 BD 82 E7 54 [05:31:12]Write to MH i2c: E2 13 00 FD 17 80 0D 02 02 0B 00 00 35 04 06 00 54 D0 BD 82 E7 54 00 00 81 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 03 00 FD 17 00 90 00 88 [05:31:12]RAPDU: 90 00 [05:31:12]wFMCommunicate OK [05:31:12]wFMCommunicate request_size=4 [05:31:12]MH_SAM_APDU [05:31:12]CAPDU: 80 0D 03 02 [05:31:12]Write to MH i2c: E2 08 00 FE 17 80 0D 03 02 00 00 00 00 90 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 0B 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 0B 00 FE 17 00 3A 6F A0 CA FC 1E E7 EC 90 00 91 [05:31:12]RAPDU: 3A 6F A0 CA FC 1E E7 EC 90 00 [05:31:12]wFMCommunicate OK [05:31:12]SAM_PROTO_SignData done [05:31:12]FM_MakeSignedData done [05:31:12]CreateOFDProtocolMessage [05:31:12]wFMCommunicate request_size=4 [05:31:12]MH_SAM_APDU [05:31:12]CAPDU: 80 11 00 00 [05:31:12]Write to MH i2c: E2 08 00 FF 17 80 11 00 00 00 00 00 00 90 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:12]Read from MH i2c: E2 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 17 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: E2 17 00 FF 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [05:31:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:31:12]wFMCommunicate OK [05:31:12]CreateOFDProtocolMessage done [05:31:12]OFDSenderStorePacket 188037 [05:31:12]StoreOFDPacket docnum=188037 [05:31:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 58 45 0D 01 DE B4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 42 00 00 00 F4 03 04 00 A0 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DE 02 00 35 04 06 00 54 D0 BD 82 E7 54 3A 6F A0 CA FC 1E E7 EC [05:31:12]CheckFolder [05:31:12]dirname=/storage/ofd_packets [05:31:12]CheckFolder done [05:31:12]ProducePacketName [05:31:12]name=ofd_packets/00188037 [05:31:12]NVStorageSaveData ofd_packets/00188037 [05:31:12]File name is /storage/ofd_packets/00188037 [05:31:12]Write 307 bytes [05:31:12]NVStorageSaveData done [05:31:12]OFDSenderStorePacket done [05:31:12]KKMCreateOFDPacket done [05:31:12]NVStorageSaveData kkm_last_timestamp [05:31:12]File name is /storage/kkm_last_timestamp [05:31:12]Write 4 bytes [05:31:12]NVStorageSaveData done [05:31:12]ExternCall_PrintAddStr [05:31:12]wPrintStart [05:31:12]Write to MH i2c: 01 00 00 00 18 18 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 07 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 07 00 00 18 00 00 00 00 00 FF 0F 2D [05:31:12]RasterBufferAndPrint [05:31:12]line Счет N : (1)210088 [05:31:12]line ИНН: 02508201610067 [05:31:12]line Контрольно-Кассовый Чек [05:31:12]line ПРОДАЖА [05:31:12]line ТРК (МРК, ГНК) : 11 [05:31:12]line Товар: 2710194210 [05:31:12]line D-ENERGY ДТ-К-5 [05:31:12]line 5.190 * 77.20 [05:31:12]line = 400.67 [05:31:12]line НДС 12% НСП 1% [05:31:12]line > о реализуемом товаре [05:31:12]line ОКРУГЛЕНИЕ: -0.67 [05:31:12]line ИТОГО: 400.00 [05:31:12]line Внесено: 400.00 [05:31:12]line СДАЧА: 0.00 [05:31:12]line НСП 1% : 3.55 [05:31:12]line НДС 12% : 42.55 [05:31:12]line Наличными: 400.00 [05:31:12]line Безнал.: 0.00 [05:31:12]line Место: АЗС № 86 "Партнер Нефть" [05:31:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:31:12]line СНО: Общий режим [05:31:12]line Чек 66 22.10.2024 05:31 [05:31:12]line Смена: 461 ФФД: 1.0 [05:31:12]line ЗНМ: 0300000155 [05:31:12]line РНМ: 0000000000100030 [05:31:12]line Версия ККМ: 001 [05:31:12]line ФМ: 0000000000965340 [05:31:12]line ФД: 188037 [05:31:12]line ФПД: 93255509403476 [05:31:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188037&fm=93255509403476&tin=02508201610067®Number=0000000000100030&sum=40000 [05:31:12]written 0, free lines is 4095 [05:31:12]OFD Sender: Processing packet 188037 [packets to send 1062, broken 1061] [05:31:12]ProducePacketName [05:31:12]name=ofd_packets/00188037 [05:31:12]OFD Sender: To server: pG, [05:31:12]CommunicateWithHost lk.salyk.kg:30040 [05:31:12]ConnectInit lk.salyk.kg [05:31:12]Connected sock=11 [05:31:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 58 45 0D 01 DE B4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 42 00 00 00 F4 03 04 00 A0 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DE 02 00 35 04 06 00 54 D0 BD 82 E7 54 3A 6F A0 CA FC 1E E7 EC [05:31:12]Write to MH i2c: 01 00 00 2B 18 43 [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 07 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: 01 07 00 2B 18 00 00 00 00 00 50 0C A6 [05:31:12]RasterBufferAndPrint [05:31:12]line [05:31:12]line [05:31:12]line [05:31:12]line [05:31:12]line [05:31:12]written 0, free lines is 3155 [05:31:12]MH_Cut [05:31:12]Write to MH i2c: D1 01 00 32 18 01 1C [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: D1 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: D1 01 00 [05:31:12]MH_I2C_Read... [05:31:12]Read from MH i2c: D1 01 00 32 18 00 1B [05:31:12]Write to MH i2c: 01 00 00 33 18 4B [05:31:12]Write i2c OK [05:31:12]MH_I2C_Read... [05:31:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 08 1B 47 00 B7 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DE 02 00 F4 03 04 00 8E E2 16 67 B6 04 01 00 00 D6 DF 87 A7 33 5F D3 89 [05:31:12]CommunicateWithHost err = 0 [05:31:12]CheckOFDResponse [05:31:12]1017 (14) - 77093643461234 [05:31:12]1041 (16) - 0000000000965340 [05:31:12]1040 (4) - 188037 [05:31:12]1012 (4) - 21.10.2024 23:23 [05:31:12]1206 (1) - 0 [05:31:12]OFD Sender: Remove packet 188037 [05:31:12]ProducePacketName [05:31:12]name=ofd_packets/00188037 [05:31:12]NVStorageDeleteData [05:31:13]OFD Sender: No OFD packet to send [05:31:13]*** Cut start [05:31:13]*** Partial cut [05:31:13]*** CUTSNS_PIN = 1 [05:31:14]*** CUTSNS_PIN = 0 [05:31:14]*** Brake cut motor [05:31:14]Read from MH i2c: 01 [05:31:14]MH_I2C_Read... [05:31:14]*** Stop cut motor [05:31:14]*** Cut end [05:31:14]Read from MH i2c: 01 07 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: 01 07 00 33 18 00 00 00 00 00 FF 0F 60 [05:31:14]process_action close_receipt done [05:31:14]requested_data is exist [05:31:14]produce_requested_data [05:31:14]requested_item fm.sn is exist - process it [05:31:14]wFMCommunicate request_size=4 [05:31:14]MH_SAM_APDU [05:31:14]CAPDU: 80 11 00 00 [05:31:14]Write to MH i2c: E2 08 00 34 18 80 11 00 00 00 00 00 00 C6 [05:31:14]Write i2c OK [05:31:14]MH_I2C_Read... [05:31:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:31:14]Read from MH i2c: E2 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 17 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 17 00 34 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [05:31:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:31:14]wFMCommunicate OK [05:31:14]requested_item fd.num is exist - process it [05:31:14]SAM_PROTO_GetFieldsCounters [05:31:14]wFMCommunicate request_size=4 [05:31:14]MH_SAM_APDU [05:31:14]CAPDU: 80 13 00 00 [05:31:14]Write to MH i2c: E2 08 00 35 18 80 13 00 00 00 00 00 00 C9 [05:31:14]Write i2c OK [05:31:14]MH_I2C_Read... [05:31:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:31:14]Read from MH i2c: E2 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 62 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 62 00 35 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 DE 02 00 0E 04 04 00 CD 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 C9 [05:31:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 DE 02 00 0E 04 04 00 CD 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 [05:31:14]wFMCommunicate OK [05:31:14]SAM_PROTO_GetFieldsCounters done [05:31:14]requested_item shift.num is exist - process it [05:31:14]requested_item shift.opened is exist - process it [05:31:14]req_shift_opened [05:31:14]FM_GetShiftState [05:31:14]SAM_PROTO_GetShiftState [05:31:14]wFMCommunicate request_size=4 [05:31:14]MH_SAM_APDU [05:31:14]CAPDU: 80 13 01 00 [05:31:14]Write to MH i2c: E2 08 00 36 18 80 13 01 00 00 00 00 00 CB [05:31:14]Write i2c OK [05:31:14]MH_I2C_Read... [05:31:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:31:14]Read from MH i2c: E2 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 0E 00 [05:31:14]MH_I2C_Read... [05:31:14]Read from MH i2c: E2 0E 00 36 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C0 [05:31:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:31:14]wFMCommunicate OK [05:31:14]SAM_PROTO_GetShiftState done [05:31:14]FM_GetShiftState done [05:31:14]req_shift_opened done [05:31:14]requested_item shift.open_date is exist - process it [05:31:14]req_shift_open_date [05:31:14]req_shift_open_date done [05:31:14]produce_requested_data done [05:31:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188037,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:31:14]process_action_free close_receipt [05:31:14]json_value_free [05:31:14]json_value_free done [05:31:14]process_json_proto returns [05:31:14]Send response to host [05:31:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188037,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:31:14]free response buf [05:31:14]execute_script done [05:31:14]execute_script returns [05:31:14]free content buf [05:31:14]Sock 8.Close socket [05:31:14]Sock 8.Thread stoped [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:24]accept exits with 9 [05:32:24]New connection [05:32:24]New thread 3067198820 created [05:32:24]Thread 3067055460 joined [05:32:24]Waiting for new connection... [05:32:24] Sock 9.Parse request [05:32:24]Sock 9.Check first char [05:32:24]Sock 9.First char is OK [05:32:24]request: POST /json_proto HTTP/1.0 [05:32:24]Method: POST [05:32:24]URL: /json_proto [05:32:24]Method is POST - this is cgi request [05:32:24]url: /json_proto [05:32:24]query_string will be loaded in cgi processing [05:32:24]execute_cgi json_proto POST (null) [05:32:24]execute_cgi path=json_proto method=POST [05:32:24]POST find Content-Length [05:32:24]Host: 172.17.42.131:8080 [05:32:24]Content-Length: 679 [05:32:24]Content-Type: application/json [05:32:24] [05:32:24]POST finish read [05:32:24]Found Content-Length = 679 [05:32:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:24]execute_script... [05:32:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210089", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:32:24]POST & json_proto [05:32:24]process_json_proto [05:32:24]json parsed OK: [05:32:24]protocol is kg_v1.0 [05:32:24]action value=close_receipt [05:32:24]process_action close_receipt [05:32:24]cmd_close_receipt [05:32:24]MH_GetDate [05:32:24]Write to MH i2c: F0 00 00 37 18 3E [05:32:24]Write i2c OK [05:32:24]MH_I2C_Read... [05:32:24]Read from MH i2c: F0 [05:32:24]MH_I2C_Read... [05:32:24]Read from MH i2c: F0 09 00 [05:32:24]MH_I2C_Read... [05:32:24]Read from MH i2c: F0 09 00 37 18 00 EA 38 17 67 A0 18 CA 66 CF [05:32:24]GetLastDocTimeStamp 1729575072 [05:32:24]current date 1729575146 [05:32:24]FM_GetShiftState [05:32:24]SAM_PROTO_GetShiftState [05:32:24]wFMCommunicate request_size=4 [05:32:24]MH_SAM_APDU [05:32:24]CAPDU: 80 13 01 00 [05:32:24]Write to MH i2c: E2 08 00 38 18 80 13 01 00 00 00 00 00 CD [05:32:24]Write i2c OK [05:32:24]MH_I2C_Read... [05:32:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:24]Read from MH i2c: E2 [05:32:24]MH_I2C_Read... [05:32:24]Read from MH i2c: E2 0E 00 [05:32:24]MH_I2C_Read... [05:32:24]Read from MH i2c: E2 0E 00 38 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C2 [05:32:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:32:24]wFMCommunicate OK [05:32:24]SAM_PROTO_GetShiftState done [05:32:24]FM_GetShiftState done [05:32:24]opened in 1729556094 [05:32:24]opened+sec_in_day 1729642494 [05:32:24]quantity*price = 250012 [05:32:24]sum+1 = 250013 [05:32:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 67 22.10.2024 05:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188038 ФПД: 110082377689917 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188038&fm=110082377689917&tin=02508201610067®Number=0000000000100030&sum=250000 [05:32:25]StoreToDocumentArchive [05:32:25]shift 461 fd 188038 [05:32:25]save to /storage/0461/doc_00188038 [05:32:25]save last doc name /storage/0461/doc_00188038 to /storage/kkm_last_doc_name [05:32:25]save OK [05:32:25]Clear old archive folders... [05:32:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:32:25]tlvbuf is 01BDC9E0 [05:32:25]SAM_PROTO_ClearQueue [05:32:25]wFMCommunicate request_size=4 [05:32:25]MH_SAM_APDU [05:32:25]CAPDU: 80 09 00 00 [05:32:25]Write to MH i2c: E2 08 00 45 18 80 09 00 00 00 00 00 00 CF [05:32:25]Write i2c OK [05:32:25]MH_I2C_Read... [05:32:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:32:25]Read from MH i2c: E2 [05:32:25]MH_I2C_Read... [05:32:25]Read from MH i2c: E2 03 00 [05:32:25]MH_I2C_Read... [05:32:25]Read from MH i2c: E2 03 00 45 18 00 90 00 D1 [05:32:25]RAPDU: 90 00 [05:32:25]wFMCommunicate OK [05:32:25]SAM_PROTO_ClearQueue done [05:32:25]KKMCreateOFDPacket [05:32:25]OFDProtocolAddRootSTLVToBuf [05:32:25]FM_MakeSignedData [05:32:25]FM_MakeSignedData [05:32:25]SAM_PROTO_SignData [05:32:25]wFMCommunicate request_size=4 [05:32:25]MH_SAM_APDU [05:32:25]CAPDU: 80 0D 01 02 [05:32:25]Write to MH i2c: E2 08 00 46 18 80 0D 01 02 00 00 00 00 D7 [05:32:25]Write i2c OK [05:32:25]MH_I2C_Read... [05:32:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:32:25]Read from MH i2c: E2 [05:32:25]MH_I2C_Read... [05:32:25]Read from MH i2c: E2 03 00 [05:32:25]MH_I2C_Read... [05:32:25]Read from MH i2c: E2 03 00 46 18 00 90 00 D2 [05:32:25]RAPDU: 90 00 [05:32:25]wFMCommunicate OK [05:32:25]wFMCommunicate request_size=255 [05:32:25]MH_SAM_APDU [05:32:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EA 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DE 02 00 35 04 06 00 64 1E 8D 04 [05:32:25]Write to MH i2c: E2 02 01 47 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EA 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DE 02 00 35 04 06 00 64 1E 8D 04 00 00 CD [05:32:25]Write i2c OK [05:32:25]MH_I2C_Read... [05:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:26]Read from MH i2c: E2 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 03 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 03 00 47 18 00 90 00 D3 [05:32:26]RAPDU: 90 00 [05:32:26]wFMCommunicate OK [05:32:26]wFMCommunicate request_size=7 [05:32:26]MH_SAM_APDU [05:32:26]CAPDU: 80 0D 02 02 02 AB 3D [05:32:26]Write to MH i2c: E2 0A 00 48 18 80 0D 02 02 02 00 AB 3D 00 00 C6 [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:32:26]Read from MH i2c: E2 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 03 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 03 00 48 18 00 90 00 D4 [05:32:26]RAPDU: 90 00 [05:32:26]wFMCommunicate OK [05:32:26]wFMCommunicate request_size=4 [05:32:26]MH_SAM_APDU [05:32:26]CAPDU: 80 0D 03 02 [05:32:26]Write to MH i2c: E2 08 00 49 18 80 0D 03 02 00 00 00 00 DC [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:32:26]Read from MH i2c: E2 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 0B 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 0B 00 49 18 00 92 21 8E DB B6 90 69 35 90 00 DD [05:32:26]RAPDU: 92 21 8E DB B6 90 69 35 90 00 [05:32:26]wFMCommunicate OK [05:32:26]SAM_PROTO_SignData done [05:32:26]FM_MakeSignedData done [05:32:26]CreateOFDProtocolMessage [05:32:26]wFMCommunicate request_size=4 [05:32:26]MH_SAM_APDU [05:32:26]CAPDU: 80 11 00 00 [05:32:26]Write to MH i2c: E2 08 00 4A 18 80 11 00 00 00 00 00 00 DC [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:26]Read from MH i2c: E2 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 17 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: E2 17 00 4A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [05:32:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:32:26]wFMCommunicate OK [05:32:26]CreateOFDProtocolMessage done [05:32:26]OFDSenderStorePacket 188038 [05:32:26]StoreOFDPacket docnum=188038 [05:32:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4A 27 04 01 92 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EA 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DE 02 00 35 04 06 00 64 1E 8D 04 AB 3D 92 21 8E DB B6 90 69 35 [05:32:26]CheckFolder [05:32:26]dirname=/storage/ofd_packets [05:32:26]CheckFolder done [05:32:26]ProducePacketName [05:32:26]name=ofd_packets/00188038 [05:32:26]NVStorageSaveData ofd_packets/00188038 [05:32:26]File name is /storage/ofd_packets/00188038 [05:32:26]Write 298 bytes [05:32:26]NVStorageSaveData done [05:32:26]OFDSenderStorePacket done [05:32:26]KKMCreateOFDPacket done [05:32:26]NVStorageSaveData kkm_last_timestamp [05:32:26]File name is /storage/kkm_last_timestamp [05:32:26]Write 4 bytes [05:32:26]NVStorageSaveData done [05:32:26]ExternCall_PrintAddStr [05:32:26]wPrintStart [05:32:26]Write to MH i2c: 01 00 00 4B 18 63 [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: 01 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: 01 07 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: 01 07 00 4B 18 00 00 00 00 00 FF 0F 78 [05:32:26]RasterBufferAndPrint [05:32:26]line Счет N : (1)210089 [05:32:26]line ИНН: 02508201610067 [05:32:26]line Контрольно-Кассовый Чек [05:32:26]line ПРОДАЖА [05:32:26]line ТРК (МРК, ГНК) : 51 [05:32:26]line Товар: 2710194210 [05:32:26]line ДТ-К-5 [05:32:26]line 32.810 * 76.20 [05:32:26]line = 2500.12 [05:32:26]line НДС 12% НСП 1% [05:32:26]line > о реализуемом товаре [05:32:26]line ОКРУГЛЕНИЕ: -0.12 [05:32:26]line ИТОГО: 2500.00 [05:32:26]line Внесено: 2500.00 [05:32:26]line СДАЧА: 0.00 [05:32:26]line НСП 1% : 22.12 [05:32:26]line НДС 12% : 265.50 [05:32:26]line Наличными: 2500.00 [05:32:26]line Безнал.: 0.00 [05:32:26]line Место: АЗС № 86 "Партнер Нефть" [05:32:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:32:26]line СНО: Общий режим [05:32:26]line Чек 67 22.10.2024 05:32 [05:32:26]line Смена: 461 ФФД: 1.0 [05:32:26]line ЗНМ: 0300000155 [05:32:26]line РНМ: 0000000000100030 [05:32:26]line Версия ККМ: 001 [05:32:26]line ФМ: 0000000000965340 [05:32:26]line ФД: 188038 [05:32:26]line ФПД: 110082377689917 [05:32:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T053226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188038&fm=110082377689917&tin=02508201610067®Number=0000000000100030&sum=250000 [05:32:26]written 0, free lines is 4095 [05:32:26]OFD Sender: Processing packet 188038 [packets to send 1062, broken 1061] [05:32:26]ProducePacketName [05:32:26]name=ofd_packets/00188038 [05:32:26]OFD Sender: To server: pG, [05:32:26]CommunicateWithHost lk.salyk.kg:30040 [05:32:26]ConnectInit lk.salyk.kg [05:32:26]Connected sock=10 [05:32:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4A 27 04 01 92 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 00 00 00 F4 03 04 00 EA 38 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DE 02 00 35 04 06 00 64 1E 8D 04 AB 3D 92 21 8E DB B6 90 69 35 [05:32:26]Write to MH i2c: 01 00 00 76 18 8E [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: 01 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: 01 07 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: 01 07 00 76 18 00 00 00 00 00 56 0C F7 [05:32:26]RasterBufferAndPrint [05:32:26]line [05:32:26]line [05:32:26]line [05:32:26]line [05:32:26]line [05:32:26]written 0, free lines is 3161 [05:32:26]MH_Cut [05:32:26]Write to MH i2c: D1 01 00 7D 18 01 67 [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: D1 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: D1 01 00 [05:32:26]MH_I2C_Read... [05:32:26]Read from MH i2c: D1 01 00 7D 18 00 66 [05:32:26]Write to MH i2c: 01 00 00 7E 18 96 [05:32:26]Write i2c OK [05:32:26]MH_I2C_Read... [05:32:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4C 1E 47 00 55 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DE 02 00 F4 03 04 00 D8 E2 16 67 B6 04 01 00 00 B3 D9 E4 D2 B3 87 B0 A2 [05:32:26]CommunicateWithHost err = 0 [05:32:26]CheckOFDResponse [05:32:26]1017 (14) - 77093643461234 [05:32:26]1041 (16) - 0000000000965340 [05:32:26]1040 (4) - 188038 [05:32:26]1012 (4) - 21.10.2024 23:25 [05:32:26]1206 (1) - 0 [05:32:26]OFD Sender: Remove packet 188038 [05:32:26]ProducePacketName [05:32:26]name=ofd_packets/00188038 [05:32:26]NVStorageDeleteData [05:32:27]OFD Sender: No OFD packet to send [05:32:28]*** Cut start [05:32:28]*** Partial cut [05:32:28]*** CUTSNS_PIN = 1 [05:32:28]*** CUTSNS_PIN = 0 [05:32:28]*** Brake cut motor [05:32:28]Read from MH i2c: 01 [05:32:28]MH_I2C_Read... [05:32:28]*** Stop cut motor [05:32:28]*** Cut end [05:32:28]Read from MH i2c: 01 07 00 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: 01 07 00 7E 18 00 00 00 00 00 FF 0F AB [05:32:28]process_action close_receipt done [05:32:28]requested_data is exist [05:32:28]produce_requested_data [05:32:28]requested_item fm.sn is exist - process it [05:32:28]wFMCommunicate request_size=4 [05:32:28]MH_SAM_APDU [05:32:28]CAPDU: 80 11 00 00 [05:32:28]Write to MH i2c: E2 08 00 7F 18 80 11 00 00 00 00 00 00 11 [05:32:28]Write i2c OK [05:32:28]MH_I2C_Read... [05:32:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:32:28]Read from MH i2c: E2 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: E2 17 00 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: E2 17 00 7F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [05:32:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:32:28]wFMCommunicate OK [05:32:28]requested_item fd.num is exist - process it [05:32:28]SAM_PROTO_GetFieldsCounters [05:32:28]wFMCommunicate request_size=4 [05:32:28]MH_SAM_APDU [05:32:28]CAPDU: 80 13 00 00 [05:32:28]Write to MH i2c: E2 08 00 80 18 80 13 00 00 00 00 00 00 14 [05:32:28]Write i2c OK [05:32:28]MH_I2C_Read... [05:32:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:32:28]Read from MH i2c: E2 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: E2 62 00 [05:32:28]MH_I2C_Read... [05:32:28]Read from MH i2c: E2 62 00 80 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 DE 02 00 0E 04 04 00 CD 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 18 [05:32:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 DE 02 00 0E 04 04 00 CD 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 [05:32:28]wFMCommunicate OK [05:32:28]SAM_PROTO_GetFieldsCounters done [05:32:28]requested_item shift.num is exist - process it [05:32:28]requested_item shift.opened is exist - process it [05:32:28]req_shift_opened [05:32:28]FM_GetShiftState [05:32:28]SAM_PROTO_GetShiftState [05:32:28]wFMCommunicate request_size=4 [05:32:28]MH_SAM_APDU [05:32:28]CAPDU: 80 13 01 00 [05:32:28]Write to MH i2c: E2 08 00 81 18 80 13 01 00 00 00 00 00 16 [05:32:28]Write i2c OK [05:32:28]MH_I2C_Read... [05:32:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:32:29]Read from MH i2c: E2 [05:32:29]MH_I2C_Read... [05:32:29]Read from MH i2c: E2 0E 00 [05:32:29]MH_I2C_Read... [05:32:29]Read from MH i2c: E2 0E 00 81 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0B [05:32:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:32:29]wFMCommunicate OK [05:32:29]SAM_PROTO_GetShiftState done [05:32:29]FM_GetShiftState done [05:32:29]req_shift_opened done [05:32:29]requested_item shift.open_date is exist - process it [05:32:29]req_shift_open_date [05:32:29]req_shift_open_date done [05:32:29]produce_requested_data done [05:32:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188038,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:32:29]process_action_free close_receipt [05:32:29]json_value_free [05:32:29]json_value_free done [05:32:29]process_json_proto returns [05:32:29]Send response to host [05:32:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188038,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:32:29]free response buf [05:32:29]execute_script done [05:32:29]execute_script returns [05:32:29]free content buf [05:32:29]Sock 9.Close socket [05:32:29]Sock 9.Thread stoped [05:32:32]OFD Sender: No OFD packet to send [05:32:37]OFD Sender: No OFD packet to send [05:32:42]OFD Sender: No OFD packet to send [05:32:47]OFD Sender: No OFD packet to send [05:32:52]OFD Sender: No OFD packet to send [05:32:57]OFD Sender: No OFD packet to send [05:33:02]OFD Sender: No OFD packet to send [05:33:07]OFD Sender: No OFD packet to send [05:33:12]OFD Sender: No OFD packet to send [05:33:17]OFD Sender: No OFD packet to send [05:33:22]OFD Sender: No OFD packet to send [05:33:27]OFD Sender: No OFD packet to send [05:33:32]OFD Sender: No OFD packet to send [05:33:37]OFD Sender: No OFD packet to send [05:33:42]OFD Sender: No OFD packet to send [05:33:47]OFD Sender: No OFD packet to send [05:33:52]OFD Sender: No OFD packet to send [05:33:57]OFD Sender: No OFD packet to send [05:34:02]OFD Sender: No OFD packet to send [05:34:07]OFD Sender: No OFD packet to send [05:34:12]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35:28]OFD Sender: No OFD packet to send [05:35:33]OFD Sender: No OFD packet to send [05:35:38]OFD Sender: No OFD packet to send [05:35:43]OFD Sender: No OFD packet to send [05:35:48]OFD Sender: No OFD packet to send [05:35:53]OFD Sender: No OFD packet to send [05:35:58]OFD Sender: No OFD packet to send [05:36:03]OFD Sender: No OFD packet to send [05:36:08]OFD Sender: No OFD packet to send [05:36:13]OFD Sender: No OFD packet to send [05:36:18]OFD Sender: No OFD packet to send [05:36:23]OFD Sender: No OFD packet to send [05:36:28]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:54]OFD Sender: No OFD packet to send [05:37:59]OFD Sender: No OFD packet to send [05:38:04]OFD Sender: No OFD packet to send [05:38:09]OFD Sender: No OFD packet to send [05:38:14]OFD Sender: No OFD packet to send [05:38:19]OFD Sender: No OFD packet to send [05:38:24]OFD Sender: No OFD packet to send [05:38:29]OFD Sender: No OFD packet to send [05:38:34]OFD Sender: No OFD packet to send [05:38:39]OFD Sender: No OFD packet to send [05:38:44]OFD Sender: No OFD packet to send [05:38:49]OFD Sender: No OFD packet to send [05:38:54]OFD Sender: No OFD packet to send [05:38:59]OFD Sender: No OFD packet to send [05:39:04]OFD Sender: No OFD packet to send [05:39:09]OFD Sender: No OFD packet to send [05:39:14]OFD Sender: No OFD packet to send [05:39:19]OFD Sender: No OFD packet to send [05:39:24]OFD Sender: No OFD packet to send [05:39:29]OFD Sender: No OFD packet to send [05:39:34]OFD Sender: No OFD packet to send [05:39:39]OFD Sender: No OFD packet to send [05:39:44]OFD Sender: No OFD packet to send [05:39:49]OFD Sender: No OFD packet to send [05:39:54]OFD Sender: No OFD packet to send [05:39:59]OFD Sender: No OFD packet to send [05:40:04]OFD Sender: No OFD packet to send [05:40:09]OFD Sender: No OFD packet to send [05:40:14]OFD Sender: No OFD packet to send [05:40:19]OFD Sender: No OFD packet to send [05:40:24]OFD Sender: No OFD packet to send [05:40:29]OFD Sender: No OFD packet to send [05:40:34]OFD Sender: No OFD packet to send [05:40:39]OFD Sender: No OFD packet to send [05:40:44]OFD Sender: No OFD packet to send [05:40:49]OFD Sender: No OFD packet to send [05:40:54]OFD Sender: No OFD packet to send [05:40:59]OFD Sender: No OFD packet to send [05:41:04]OFD Sender: No OFD packet to send [05:41:09]OFD Sender: No OFD packet to send [05:41:14]OFD Sender: No OFD packet to send [05:41:19]OFD Sender: No OFD packet to send [05:41:24]OFD Sender: No OFD packet to send [05:41:27]accept exits with 8 [05:41:27]New connection [05:41:27]New thread 3067055460 created [05:41:27]Thread 3067198820 joined [05:41:27]Waiting for new connection... [05:41:27] Sock 8.Parse request [05:41:27]Sock 8.Check first char [05:41:27]Sock 8.First char is OK [05:41:27]request: POST /json_proto HTTP/1.0 [05:41:27]Method: POST [05:41:27]URL: /json_proto [05:41:27]Method is POST - this is cgi request [05:41:27]url: /json_proto [05:41:27]query_string will be loaded in cgi processing [05:41:27]execute_cgi json_proto POST (null) [05:41:27]execute_cgi path=json_proto method=POST [05:41:27]POST find Content-Length [05:41:27]Host: 172.17.42.131:8080 [05:41:27]Content-Length: 677 [05:41:27]Content-Type: application/json [05:41:27] [05:41:27]POST finish read [05:41:27]Found Content-Length = 677 [05:41:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:27]execute_script... [05:41: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)210090", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:27]POST & json_proto [05:41:27]process_json_proto [05:41:27]json parsed OK: [05:41:27]protocol is kg_v1.0 [05:41:27]action value=close_receipt [05:41:27]process_action close_receipt [05:41:27]cmd_close_receipt [05:41:27]MH_GetDate [05:41:27]Write to MH i2c: F0 00 00 82 18 89 [05:41:27]Write i2c OK [05:41:27]MH_I2C_Read... [05:41:27]Read from MH i2c: F0 [05:41:27]MH_I2C_Read... [05:41:27]Read from MH i2c: F0 09 00 [05:41:27]MH_I2C_Read... [05:41:27]Read from MH i2c: F0 09 00 82 18 00 09 3B 17 67 A0 18 CA 66 3C [05:41:27]GetLastDocTimeStamp 1729575146 [05:41:27]current date 1729575689 [05:41:27]FM_GetShiftState [05:41:27]SAM_PROTO_GetShiftState [05:41:27]wFMCommunicate request_size=4 [05:41:27]MH_SAM_APDU [05:41:27]CAPDU: 80 13 01 00 [05:41:27]Write to MH i2c: E2 08 00 83 18 80 13 01 00 00 00 00 00 18 [05:41:27]Write i2c OK [05:41:27]MH_I2C_Read... [05:41:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:27]Read from MH i2c: E2 [05:41:27]MH_I2C_Read... [05:41:27]Read from MH i2c: E2 0E 00 [05:41:27]MH_I2C_Read... [05:41:27]Read from MH i2c: E2 0E 00 83 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0D [05:41:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:41:27]wFMCommunicate OK [05:41:27]SAM_PROTO_GetShiftState done [05:41:27]FM_GetShiftState done [05:41:27]opened in 1729556094 [05:41:27]opened+sec_in_day 1729642494 [05:41:27]quantity*price = 50041 [05:41:27]sum+1 = 50042 [05:41:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 68 22.10.2024 05:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188039 ФПД: 153624099415977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188039&fm=153624099415977&tin=02508201610067®Number=0000000000100030&sum=50000 [05:41:28]StoreToDocumentArchive [05:41:28]shift 461 fd 188039 [05:41:28]save to /storage/0461/doc_00188039 [05:41:28]save last doc name /storage/0461/doc_00188039 to /storage/kkm_last_doc_name [05:41:28]save OK [05:41:28]Clear old archive folders... [05:41:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:41:28]tlvbuf is 01BC2940 [05:41:28]SAM_PROTO_ClearQueue [05:41:28]wFMCommunicate request_size=4 [05:41:28]MH_SAM_APDU [05:41:28]CAPDU: 80 09 00 00 [05:41:28]Write to MH i2c: E2 08 00 90 18 80 09 00 00 00 00 00 00 1A [05:41:28]Write i2c OK [05:41:28]MH_I2C_Read... [05:41:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:41:28]Read from MH i2c: E2 [05:41:28]MH_I2C_Read... [05:41:28]Read from MH i2c: E2 03 00 [05:41:28]MH_I2C_Read... [05:41:28]Read from MH i2c: E2 03 00 90 18 00 90 00 1C [05:41:28]RAPDU: 90 00 [05:41:28]wFMCommunicate OK [05:41:28]SAM_PROTO_ClearQueue done [05:41:28]KKMCreateOFDPacket [05:41:28]OFDProtocolAddRootSTLVToBuf [05:41:28]FM_MakeSignedData [05:41:28]FM_MakeSignedData [05:41:28]SAM_PROTO_SignData [05:41:28]wFMCommunicate request_size=4 [05:41:28]MH_SAM_APDU [05:41:28]CAPDU: 80 0D 01 02 [05:41:28]Write to MH i2c: E2 08 00 91 18 80 0D 01 02 00 00 00 00 22 [05:41:28]Write i2c OK [05:41:28]MH_I2C_Read... [05:41:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:41:28]Read from MH i2c: E2 [05:41:28]MH_I2C_Read... [05:41:28]Read from MH i2c: E2 03 00 [05:41:28]MH_I2C_Read... [05:41:28]Read from MH i2c: E2 03 00 91 18 00 90 00 1D [05:41:28]RAPDU: 90 00 [05:41:28]wFMCommunicate OK [05:41:28]wFMCommunicate request_size=255 [05:41:28]MH_SAM_APDU [05:41:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 09 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DE 02 00 35 04 06 00 8B [05:41:28]Write to MH i2c: E2 02 01 92 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 09 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DE 02 00 35 04 06 00 8B 00 00 5B [05:41:28]Write i2c OK [05:41:28]MH_I2C_Read... [05:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:29]Read from MH i2c: E2 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 03 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 03 00 92 18 00 90 00 1E [05:41:29]RAPDU: 90 00 [05:41:29]wFMCommunicate OK [05:41:29]wFMCommunicate request_size=10 [05:41:29]MH_SAM_APDU [05:41:29]CAPDU: 80 0D 02 02 05 B8 65 DF E7 A9 [05:41:29]Write to MH i2c: E2 0D 00 93 18 80 0D 02 02 05 00 B8 65 DF E7 A9 00 00 BB [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:29]Read from MH i2c: E2 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 03 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 03 00 93 18 00 90 00 1F [05:41:29]RAPDU: 90 00 [05:41:29]wFMCommunicate OK [05:41:29]wFMCommunicate request_size=4 [05:41:29]MH_SAM_APDU [05:41:29]CAPDU: 80 0D 03 02 [05:41:29]Write to MH i2c: E2 08 00 94 18 80 0D 03 02 00 00 00 00 27 [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:41:29]Read from MH i2c: E2 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 0B 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 0B 00 94 18 00 68 F6 E3 D4 E1 C8 22 29 90 00 31 [05:41:29]RAPDU: 68 F6 E3 D4 E1 C8 22 29 90 00 [05:41:29]wFMCommunicate OK [05:41:29]SAM_PROTO_SignData done [05:41:29]FM_MakeSignedData done [05:41:29]CreateOFDProtocolMessage [05:41:29]wFMCommunicate request_size=4 [05:41:29]MH_SAM_APDU [05:41:29]CAPDU: 80 11 00 00 [05:41:29]Write to MH i2c: E2 08 00 95 18 80 11 00 00 00 00 00 00 27 [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:29]Read from MH i2c: E2 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 17 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: E2 17 00 95 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [05:41:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:41:29]wFMCommunicate OK [05:41:29]CreateOFDProtocolMessage done [05:41:29]OFDSenderStorePacket 188039 [05:41:29]StoreOFDPacket docnum=188039 [05:41:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B BF 07 01 7E 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 09 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DE 02 00 35 04 06 00 8B B8 65 DF E7 A9 68 F6 E3 D4 E1 C8 22 29 [05:41:29]CheckFolder [05:41:29]dirname=/storage/ofd_packets [05:41:29]CheckFolder done [05:41:29]ProducePacketName [05:41:29]name=ofd_packets/00188039 [05:41:29]NVStorageSaveData ofd_packets/00188039 [05:41:29]File name is /storage/ofd_packets/00188039 [05:41:29]Write 301 bytes [05:41:29]NVStorageSaveData done [05:41:29]OFDSenderStorePacket done [05:41:29]KKMCreateOFDPacket done [05:41:29]NVStorageSaveData kkm_last_timestamp [05:41:29]File name is /storage/kkm_last_timestamp [05:41:29]Write 4 bytes [05:41:29]NVStorageSaveData done [05:41:29]ExternCall_PrintAddStr [05:41:29]wPrintStart [05:41:29]Write to MH i2c: 01 00 00 96 18 AE [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: 01 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: 01 07 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: 01 07 00 96 18 00 00 00 00 00 FF 0F C3 [05:41:29]RasterBufferAndPrint [05:41:29]line Счет N : (1)210090 [05:41:29]line ИНН: 02508201610067 [05:41:29]line Контрольно-Кассовый Чек [05:41:29]line ПРОДАЖА [05:41:29]line ТРК (МРК, ГНК) : 32 [05:41:29]line Товар: 2710124130 [05:41:29]line Аи-92-К-3 [05:41:29]line 7.480 * 66.90 [05:41:29]line = 500.41 [05:41:29]line НДС 12% НСП 1% [05:41:29]line > о реализуемом товаре [05:41:29]line ОКРУГЛЕНИЕ: -0.41 [05:41:29]line ИТОГО: 500.00 [05:41:29]line Внесено: 500.00 [05:41:29]line СДАЧА: 0.00 [05:41:29]line НСП 1% : 4.43 [05:41:29]line НДС 12% : 53.14 [05:41:29]line Наличными: 500.00 [05:41:29]line Безнал.: 0.00 [05:41:29]line Место: АЗС № 86 "Партнер Нефть" [05:41:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:41:29]line СНО: Общий режим [05:41:29]line Чек 68 22.10.2024 05:41 [05:41:29]line Смена: 461 ФФД: 1.0 [05:41:29]line ЗНМ: 0300000155 [05:41:29]line РНМ: 0000000000100030 [05:41:29]line Версия ККМ: 001 [05:41:29]line ФМ: 0000000000965340 [05:41:29]line ФД: 188039 [05:41:29]line ФПД: 153624099415977 [05:41:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188039&fm=153624099415977&tin=02508201610067®Number=0000000000100030&sum=50000 [05:41:29]written 0, free lines is 4095 [05:41:29]OFD Sender: Processing packet 188039 [packets to send 1062, broken 1061] [05:41:29]ProducePacketName [05:41:29]name=ofd_packets/00188039 [05:41:29]OFD Sender: To server: pG, [05:41:29]CommunicateWithHost lk.salyk.kg:30040 [05:41:29]ConnectInit lk.salyk.kg [05:41:29]Connected sock=10 [05:41:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B BF 07 01 7E 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 09 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DE 02 00 35 04 06 00 8B B8 65 DF E7 A9 68 F6 E3 D4 E1 C8 22 29 [05:41:29]Write to MH i2c: 01 00 00 C1 18 D9 [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: 01 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: 01 07 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: 01 07 00 C1 18 00 00 00 00 00 52 0C 3E [05:41:29]RasterBufferAndPrint [05:41:29]line [05:41:29]line [05:41:29]line [05:41:29]line [05:41:29]line [05:41:29]written 0, free lines is 3158 [05:41:29]MH_Cut [05:41:29]Write to MH i2c: D1 01 00 C8 18 01 B2 [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: D1 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: D1 01 00 [05:41:29]MH_I2C_Read... [05:41:29]Read from MH i2c: D1 01 00 C8 18 00 B1 [05:41:29]Write to MH i2c: 01 00 00 C9 18 E1 [05:41:29]Write i2c OK [05:41:29]MH_I2C_Read... [05:41:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F4 27 47 00 57 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DE 02 00 F4 03 04 00 F7 E4 16 67 B6 04 01 00 00 70 76 A0 7F 50 E7 71 C0 [05:41:29]CommunicateWithHost err = 0 [05:41:29]CheckOFDResponse [05:41:29]1017 (14) - 77093643461234 [05:41:29]1041 (16) - 0000000000965340 [05:41:29]1040 (4) - 188039 [05:41:29]1012 (4) - 21.10.2024 23:34 [05:41:29]1206 (1) - 0 [05:41:29]OFD Sender: Remove packet 188039 [05:41:29]ProducePacketName [05:41:29]name=ofd_packets/00188039 [05:41:29]NVStorageDeleteData [05:41:30]OFD Sender: No OFD packet to send [05:41:30]*** Cut start [05:41:30]*** Partial cut [05:41:30]*** CUTSNS_PIN = 1 [05:41:30]*** CUTSNS_PIN = 0 [05:41:31]*** Brake cut motor [05:41:31]Read from MH i2c: 01 [05:41:31]MH_I2C_Read... [05:41:31]*** Stop cut motor [05:41:31]*** Cut end [05:41:31]Read from MH i2c: 01 07 00 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: 01 07 00 C9 18 00 00 00 00 00 FF 0F F6 [05:41:31]process_action close_receipt done [05:41:31]requested_data is exist [05:41:31]produce_requested_data [05:41:31]requested_item fm.sn is exist - process it [05:41:31]wFMCommunicate request_size=4 [05:41:31]MH_SAM_APDU [05:41:31]CAPDU: 80 11 00 00 [05:41:31]Write to MH i2c: E2 08 00 CA 18 80 11 00 00 00 00 00 00 5C [05:41:31]Write i2c OK [05:41:31]MH_I2C_Read... [05:41:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:31]Read from MH i2c: E2 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: E2 17 00 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: E2 17 00 CA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [05:41:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:41:31]wFMCommunicate OK [05:41:31]requested_item fd.num is exist - process it [05:41:31]SAM_PROTO_GetFieldsCounters [05:41:31]wFMCommunicate request_size=4 [05:41:31]MH_SAM_APDU [05:41:31]CAPDU: 80 13 00 00 [05:41:31]Write to MH i2c: E2 08 00 CB 18 80 13 00 00 00 00 00 00 5F [05:41:31]Write i2c OK [05:41:31]MH_I2C_Read... [05:41:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:41:31]Read from MH i2c: E2 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: E2 62 00 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: E2 62 00 CB 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 DE 02 00 0E 04 04 00 CD 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 67 [05:41:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 DE 02 00 0E 04 04 00 CD 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 [05:41:31]wFMCommunicate OK [05:41:31]SAM_PROTO_GetFieldsCounters done [05:41:31]requested_item shift.num is exist - process it [05:41:31]requested_item shift.opened is exist - process it [05:41:31]req_shift_opened [05:41:31]FM_GetShiftState [05:41:31]SAM_PROTO_GetShiftState [05:41:31]wFMCommunicate request_size=4 [05:41:31]MH_SAM_APDU [05:41:31]CAPDU: 80 13 01 00 [05:41:31]Write to MH i2c: E2 08 00 CC 18 80 13 01 00 00 00 00 00 61 [05:41:31]Write i2c OK [05:41:31]MH_I2C_Read... [05:41:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:31]Read from MH i2c: E2 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: E2 0E 00 [05:41:31]MH_I2C_Read... [05:41:31]Read from MH i2c: E2 0E 00 CC 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 56 [05:41:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:41:31]wFMCommunicate OK [05:41:31]SAM_PROTO_GetShiftState done [05:41:31]FM_GetShiftState done [05:41:31]req_shift_opened done [05:41:31]requested_item shift.open_date is exist - process it [05:41:31]req_shift_open_date [05:41:31]req_shift_open_date done [05:41:31]produce_requested_data done [05:41:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188039,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:41:31]process_action_free close_receipt [05:41:31]json_value_free [05:41:31]json_value_free done [05:41:31]process_json_proto returns [05:41:31]Send response to host [05:41:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188039,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:41:31]free response buf [05:41:31]execute_script done [05:41:31]execute_script returns [05:41:31]free content buf [05:41:31]Sock 8.Close socket [05:41:31]Sock 8.Thread stoped [05:41:35]OFD Sender: No OFD packet to send [05:41:40]OFD Sender: No OFD packet to send [05:41:45]OFD Sender: No OFD packet to send [05:41:50]OFD Sender: No OFD packet to send [05:41:54]accept exits with 9 [05:41:54]New connection [05:41:54]New thread 3067198820 created [05:41:54]Thread 3067055460 joined [05:41:54]Waiting for new connection... [05:41:54] Sock 9.Parse request [05:41:54]Sock 9.Check first char [05:41:54]Sock 9.First char is OK [05:41:54]request: POST /json_proto HTTP/1.0 [05:41:54]Method: POST [05:41:54]URL: /json_proto [05:41:54]Method is POST - this is cgi request [05:41:54]url: /json_proto [05:41:54]query_string will be loaded in cgi processing [05:41:54]execute_cgi json_proto POST (null) [05:41:54]execute_cgi path=json_proto method=POST [05:41:54]POST find Content-Length [05:41:54]Host: 172.17.42.131:8080 [05:41:54]Content-Length: 766 [05:41:54]Content-Type: application/json [05:41:54] [05:41:54]POST finish read [05:41:54]Found Content-Length = 766 [05:41:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.700, "sum" : 515.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 515.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:54]execute_script... [05:41:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210091", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.700, "sum" : 515.13, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 515.13 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:41:54]POST & json_proto [05:41:54]process_json_proto [05:41:54]json parsed OK: [05:41:54]protocol is kg_v1.0 [05:41:54]action value=close_receipt [05:41:54]process_action close_receipt [05:41:54]cmd_close_receipt [05:41:54]MH_GetDate [05:41:54]Write to MH i2c: F0 00 00 CD 18 D4 [05:41:54]Write i2c OK [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: F0 [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: F0 09 00 [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: F0 09 00 CD 18 00 24 3B 17 67 A0 18 CA 66 A2 [05:41:54]GetLastDocTimeStamp 1729575689 [05:41:54]current date 1729575716 [05:41:54]FM_GetShiftState [05:41:54]SAM_PROTO_GetShiftState [05:41:54]wFMCommunicate request_size=4 [05:41:54]MH_SAM_APDU [05:41:54]CAPDU: 80 13 01 00 [05:41:54]Write to MH i2c: E2 08 00 CE 18 80 13 01 00 00 00 00 00 63 [05:41:54]Write i2c OK [05:41:54]MH_I2C_Read... [05:41:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:54]Read from MH i2c: E2 [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: E2 0E 00 [05:41:54]MH_I2C_Read... [05:41:54]Read from MH i2c: E2 0E 00 CE 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 58 [05:41:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:41:54]wFMCommunicate OK [05:41:54]SAM_PROTO_GetShiftState done [05:41:54]FM_GetShiftState done [05:41:54]opened in 1729556094 [05:41:54]opened+sec_in_day 1729642494 [05:41:54]quantity*price = 51513 [05:41:54]sum+1 = 51514 [05:41:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 515.13 НСП 1% : 4.56 НДС 12% : 54.70 Наличными: 0.00 Безнал.: 515.13 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 69 22.10.2024 05:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188040 ФПД: 6665803867982 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188040&fm=6665803867982&tin=02508201610067®Number=0000000000100030&sum=51513 [05:41:55]StoreToDocumentArchive [05:41:55]shift 461 fd 188040 [05:41:55]save to /storage/0461/doc_00188040 [05:41:55]save last doc name /storage/0461/doc_00188040 to /storage/kkm_last_doc_name [05:41:55]save OK [05:41:55]Clear old archive folders... [05:41:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:41:55]tlvbuf is 01BDC060 [05:41:55]SAM_PROTO_ClearQueue [05:41:55]wFMCommunicate request_size=4 [05:41:55]MH_SAM_APDU [05:41:55]CAPDU: 80 09 00 00 [05:41:55]Write to MH i2c: E2 08 00 DB 18 80 09 00 00 00 00 00 00 65 [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:41:55]Read from MH i2c: E2 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: E2 03 00 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: E2 03 00 DB 18 00 90 00 67 [05:41:55]RAPDU: 90 00 [05:41:55]wFMCommunicate OK [05:41:55]SAM_PROTO_ClearQueue done [05:41:55]KKMCreateOFDPacket [05:41:55]OFDProtocolAddRootSTLVToBuf [05:41:55]FM_MakeSignedData [05:41:55]FM_MakeSignedData [05:41:55]SAM_PROTO_SignData [05:41:55]wFMCommunicate request_size=4 [05:41:55]MH_SAM_APDU [05:41:55]CAPDU: 80 0D 01 02 [05:41:55]Write to MH i2c: E2 08 00 DC 18 80 0D 01 02 00 00 00 00 6D [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:41:55]Read from MH i2c: E2 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: E2 03 00 [05:41:55]MH_I2C_Read... [05:41:55]Read from MH i2c: E2 03 00 DC 18 00 90 00 68 [05:41:55]RAPDU: 90 00 [05:41:55]wFMCommunicate OK [05:41:55]wFMCommunicate request_size=255 [05:41:55]MH_SAM_APDU [05:41:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 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 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 24 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DE 02 00 35 04 06 00 06 [05:41:55]Write to MH i2c: E2 02 01 DD 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 33 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 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 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 24 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DE 02 00 35 04 06 00 06 00 00 69 [05:41:55]Write i2c OK [05:41:55]MH_I2C_Read... [05:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:56]Read from MH i2c: E2 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 03 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 03 00 DD 18 00 90 00 69 [05:41:56]RAPDU: 90 00 [05:41:56]wFMCommunicate OK [05:41:56]wFMCommunicate request_size=10 [05:41:56]MH_SAM_APDU [05:41:56]CAPDU: 80 0D 02 02 05 10 00 DF 27 4E [05:41:56]Write to MH i2c: E2 0D 00 DE 18 80 0D 02 02 05 00 10 00 DF 27 4E 00 00 DE [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:41:56]Read from MH i2c: E2 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 03 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 03 00 DE 18 00 90 00 6A [05:41:56]RAPDU: 90 00 [05:41:56]wFMCommunicate OK [05:41:56]wFMCommunicate request_size=4 [05:41:56]MH_SAM_APDU [05:41:56]CAPDU: 80 0D 03 02 [05:41:56]Write to MH i2c: E2 08 00 DF 18 80 0D 03 02 00 00 00 00 72 [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:41:56]Read from MH i2c: E2 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 0B 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 0B 00 DF 18 00 07 DA D7 08 DB F5 F8 B4 90 00 AF [05:41:56]RAPDU: 07 DA D7 08 DB F5 F8 B4 90 00 [05:41:56]wFMCommunicate OK [05:41:56]SAM_PROTO_SignData done [05:41:56]FM_MakeSignedData done [05:41:56]CreateOFDProtocolMessage [05:41:56]wFMCommunicate request_size=4 [05:41:56]MH_SAM_APDU [05:41:56]CAPDU: 80 11 00 00 [05:41:56]Write to MH i2c: E2 08 00 E0 18 80 11 00 00 00 00 00 00 72 [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:56]Read from MH i2c: E2 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 17 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: E2 17 00 E0 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [05:41:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:41:56]wFMCommunicate OK [05:41:56]CreateOFDProtocolMessage done [05:41:56]OFDSenderStorePacket 188040 [05:41:56]StoreOFDPacket docnum=188040 [05:41:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E B0 07 01 CB ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 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 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 24 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DE 02 00 35 04 06 00 06 10 00 DF 27 4E 07 DA D7 08 DB F5 F8 B4 [05:41:56]CheckFolder [05:41:56]dirname=/storage/ofd_packets [05:41:56]CheckFolder done [05:41:56]ProducePacketName [05:41:56]name=ofd_packets/00188040 [05:41:56]NVStorageSaveData ofd_packets/00188040 [05:41:56]File name is /storage/ofd_packets/00188040 [05:41:56]Write 301 bytes [05:41:56]NVStorageSaveData done [05:41:56]OFDSenderStorePacket done [05:41:56]KKMCreateOFDPacket done [05:41:56]NVStorageSaveData kkm_last_timestamp [05:41:56]File name is /storage/kkm_last_timestamp [05:41:56]Write 4 bytes [05:41:56]NVStorageSaveData done [05:41:56]ExternCall_PrintAddStr [05:41:56]wPrintStart [05:41:56]Write to MH i2c: 01 00 00 E1 18 F9 [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: 01 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: 01 07 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: 01 07 00 E1 18 00 00 00 00 00 FF 0F 0E [05:41:56]RasterBufferAndPrint [05:41:56]line Счет N : (1)210091 [05:41:56]line ИНН: 02508201610067 [05:41:56]line Контрольно-Кассовый Чек [05:41:56]line ПРОДАЖА [05:41:56]line ТРК (МРК, ГНК) : 42 [05:41:56]line Товар: 2710124130 [05:41:56]line Аи-92-К-3 [05:41:56]line 7.700 * 66.90 [05:41:56]line = 515.13 [05:41:56]line НДС 12% НСП 1% [05:41:56]line > о реализуемом товаре [05:41:56]line ИТОГО: 515.13 [05:41:56]line НСП 1% : 4.56 [05:41:56]line НДС 12% : 54.70 [05:41:56]line Наличными: 0.00 [05:41:56]line Безнал.: 515.13 [05:41:56]line Место: АЗС № 86 "Партнер Нефть" [05:41:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:41:56]line СНО: Общий режим [05:41:56]line Чек 69 22.10.2024 05:41 [05:41:56]line Смена: 461 ФФД: 1.0 [05:41:56]line ЗНМ: 0300000155 [05:41:56]line РНМ: 0000000000100030 [05:41:56]line Версия ККМ: 001 [05:41:56]line Платежная система: Mbank [05:41:56]line ФМ: 0000000000965340 [05:41:56]line ФД: 188040 [05:41:56]line ФПД: 6665803867982 [05:41:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188040&fm=6665803867982&tin=02508201610067®Number=0000000000100030&sum=51513 [05:41:56]written 0, free lines is 4095 [05:41:56]OFD Sender: Processing packet 188040 [packets to send 1062, broken 1061] [05:41:56]ProducePacketName [05:41:56]name=ofd_packets/00188040 [05:41:56]OFD Sender: To server: pG, [05:41:56]CommunicateWithHost lk.salyk.kg:30040 [05:41:56]ConnectInit lk.salyk.kg [05:41:56]Connected sock=10 [05:41:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E B0 07 01 CB ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C9 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 39 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 00 00 00 00 00 00 39 04 06 00 39 C9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 00 00 00 F4 03 04 00 24 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DE 02 00 35 04 06 00 06 10 00 DF 27 4E 07 DA D7 08 DB F5 F8 B4 [05:41:56]Write to MH i2c: 01 00 00 0A 19 23 [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: 01 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: 01 07 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: 01 07 00 0A 19 00 00 00 00 00 7E 0C B4 [05:41:56]RasterBufferAndPrint [05:41:56]line [05:41:56]line [05:41:56]line [05:41:56]line [05:41:56]line [05:41:56]written 0, free lines is 3203 [05:41:56]MH_Cut [05:41:56]Write to MH i2c: D1 01 00 11 19 01 FC [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: D1 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: D1 01 00 [05:41:56]MH_I2C_Read... [05:41:56]Read from MH i2c: D1 01 00 11 19 00 FB [05:41:56]Write to MH i2c: 01 00 00 12 19 2B [05:41:56]Write i2c OK [05:41:56]MH_I2C_Read... [05:41:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A3 70 47 00 F5 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 39 36 35 33 34 30 10 04 04 00 88 DE 02 00 F4 03 04 00 12 E5 16 67 B6 04 01 00 00 4F DC FC AE DF A7 7F 4A [05:41:56]CommunicateWithHost err = 0 [05:41:56]CheckOFDResponse [05:41:56]1017 (14) - 77093643461234 [05:41:56]1041 (16) - 0000000000965340 [05:41:56]1040 (4) - 188040 [05:41:56]1012 (4) - 21.10.2024 23:34 [05:41:56]1206 (1) - 0 [05:41:56]OFD Sender: Remove packet 188040 [05:41:56]ProducePacketName [05:41:56]name=ofd_packets/00188040 [05:41:56]NVStorageDeleteData [05:41:57]OFD Sender: No OFD packet to send [05:41:57]*** Cut start [05:41:57]*** Partial cut [05:41:57]*** CUTSNS_PIN = 1 [05:41:58]*** CUTSNS_PIN = 0 [05:41:58]*** Brake cut motor [05:41:58]Read from MH i2c: 01 [05:41:58]MH_I2C_Read... [05:41:58]*** Stop cut motor [05:41:58]*** Cut end [05:41:58]Read from MH i2c: 01 07 00 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: 01 07 00 12 19 00 00 00 00 00 FF 0F 40 [05:41:58]process_action close_receipt done [05:41:58]requested_data is exist [05:41:58]produce_requested_data [05:41:58]requested_item fm.sn is exist - process it [05:41:58]wFMCommunicate request_size=4 [05:41:58]MH_SAM_APDU [05:41:58]CAPDU: 80 11 00 00 [05:41:58]Write to MH i2c: E2 08 00 13 19 80 11 00 00 00 00 00 00 A6 [05:41:58]Write i2c OK [05:41:58]MH_I2C_Read... [05:41:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:41:58]Read from MH i2c: E2 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: E2 17 00 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: E2 17 00 13 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [05:41:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:41:58]wFMCommunicate OK [05:41:58]requested_item fd.num is exist - process it [05:41:58]SAM_PROTO_GetFieldsCounters [05:41:58]wFMCommunicate request_size=4 [05:41:58]MH_SAM_APDU [05:41:58]CAPDU: 80 13 00 00 [05:41:58]Write to MH i2c: E2 08 00 14 19 80 13 00 00 00 00 00 00 A9 [05:41:58]Write i2c OK [05:41:58]MH_I2C_Read... [05:41:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:41:58]Read from MH i2c: E2 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: E2 62 00 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: E2 62 00 14 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 DE 02 00 0E 04 04 00 CD 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 B5 [05:41:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 DE 02 00 0E 04 04 00 CD 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 [05:41:58]wFMCommunicate OK [05:41:58]SAM_PROTO_GetFieldsCounters done [05:41:58]requested_item shift.num is exist - process it [05:41:58]requested_item shift.opened is exist - process it [05:41:58]req_shift_opened [05:41:58]FM_GetShiftState [05:41:58]SAM_PROTO_GetShiftState [05:41:58]wFMCommunicate request_size=4 [05:41:58]MH_SAM_APDU [05:41:58]CAPDU: 80 13 01 00 [05:41:58]Write to MH i2c: E2 08 00 15 19 80 13 01 00 00 00 00 00 AB [05:41:58]Write i2c OK [05:41:58]MH_I2C_Read... [05:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:41:58]Read from MH i2c: E2 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: E2 0E 00 [05:41:58]MH_I2C_Read... [05:41:58]Read from MH i2c: E2 0E 00 15 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A0 [05:41:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:41:58]wFMCommunicate OK [05:41:58]SAM_PROTO_GetShiftState done [05:41:58]FM_GetShiftState done [05:41:58]req_shift_opened done [05:41:58]requested_item shift.open_date is exist - process it [05:41:58]req_shift_open_date [05:41:58]req_shift_open_date done [05:41:58]produce_requested_data done [05:41:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188040,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:41:58]process_action_free close_receipt [05:41:58]json_value_free [05:41:58]json_value_free done [05:41:58]process_json_proto returns [05:41:58]Send response to host [05:41:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188040,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:41:58]free response buf [05:41:58]execute_script done [05:41:58]execute_script returns [05:41:58]free content buf [05:41:58]Sock 9.Close socket [05:41:58]Sock 9.Thread stoped [05:42:02]OFD Sender: No OFD packet to send [05:42:03]accept exits with 8 [05:42:03]New connection [05:42:03]New thread 3067055460 created [05:42:03]Thread 3067198820 joined [05:42:03]Waiting for new connection... [05:42:03] Sock 8.Parse request [05:42:03]Sock 8.Check first char [05:42:03]Sock 8.First char is OK [05:42:03]request: POST /json_proto HTTP/1.0 [05:42:03]Method: POST [05:42:03]URL: /json_proto [05:42:03]Method is POST - this is cgi request [05:42:03]url: /json_proto [05:42:03]query_string will be loaded in cgi processing [05:42:03]execute_cgi json_proto POST (null) [05:42:03]execute_cgi path=json_proto method=POST [05:42:03]POST find Content-Length [05:42:03]Host: 172.17.42.131:8080 [05:42:03]Content-Length: 683 [05:42:03]Content-Type: application/json [05:42:03] [05:42:03]POST finish read [05:42:03]Found Content-Length = 683 [05:42:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:42:03]execute_script... [05:42: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)210092", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:42:03]POST & json_proto [05:42:03]process_json_proto [05:42:03]json parsed OK: [05:42:03]protocol is kg_v1.0 [05:42:03]action value=close_receipt [05:42:03]process_action close_receipt [05:42:03]cmd_close_receipt [05:42:03]MH_GetDate [05:42:03]Write to MH i2c: F0 00 00 16 19 1E [05:42:03]Write i2c OK [05:42:03]MH_I2C_Read... [05:42:03]Read from MH i2c: F0 [05:42:03]MH_I2C_Read... [05:42:03]Read from MH i2c: F0 09 00 [05:42:03]MH_I2C_Read... [05:42:03]Read from MH i2c: F0 09 00 16 19 00 2D 3B 17 67 A0 18 CA 66 F5 [05:42:03]GetLastDocTimeStamp 1729575716 [05:42:03]current date 1729575725 [05:42:03]FM_GetShiftState [05:42:03]SAM_PROTO_GetShiftState [05:42:03]wFMCommunicate request_size=4 [05:42:03]MH_SAM_APDU [05:42:03]CAPDU: 80 13 01 00 [05:42:03]Write to MH i2c: E2 08 00 17 19 80 13 01 00 00 00 00 00 AD [05:42:03]Write i2c OK [05:42:03]MH_I2C_Read... [05:42:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:03]Read from MH i2c: E2 [05:42:03]MH_I2C_Read... [05:42:03]Read from MH i2c: E2 0E 00 [05:42:03]MH_I2C_Read... [05:42:03]Read from MH i2c: E2 0E 00 17 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A2 [05:42:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:42:03]wFMCommunicate OK [05:42:03]SAM_PROTO_GetShiftState done [05:42:03]FM_GetShiftState done [05:42:03]opened in 1729556094 [05:42:03]opened+sec_in_day 1729642494 [05:42:03]quantity*price = 50025 [05:42:03]sum+1 = 50027 [05:42:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 70 22.10.2024 05:42 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188041 ФПД: 184695631578250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188041&fm=184695631578250&tin=02508201610067®Number=0000000000100030&sum=50000 [05:42:04]StoreToDocumentArchive [05:42:04]shift 461 fd 188041 [05:42:04]save to /storage/0461/doc_00188041 [05:42:04]save last doc name /storage/0461/doc_00188041 to /storage/kkm_last_doc_name [05:42:04]save OK [05:42:04]Clear old archive folders... [05:42:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:42:04]tlvbuf is 01BC7D30 [05:42:04]SAM_PROTO_ClearQueue [05:42:04]wFMCommunicate request_size=4 [05:42:04]MH_SAM_APDU [05:42:04]CAPDU: 80 09 00 00 [05:42:04]Write to MH i2c: E2 08 00 24 19 80 09 00 00 00 00 00 00 AF [05:42:04]Write i2c OK [05:42:04]MH_I2C_Read... [05:42:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:04]Read from MH i2c: E2 [05:42:04]MH_I2C_Read... [05:42:04]Read from MH i2c: E2 03 00 [05:42:04]MH_I2C_Read... [05:42:04]Read from MH i2c: E2 03 00 24 19 00 90 00 B1 [05:42:04]RAPDU: 90 00 [05:42:04]wFMCommunicate OK [05:42:04]SAM_PROTO_ClearQueue done [05:42:04]KKMCreateOFDPacket [05:42:04]OFDProtocolAddRootSTLVToBuf [05:42:04]FM_MakeSignedData [05:42:04]FM_MakeSignedData [05:42:04]SAM_PROTO_SignData [05:42:04]wFMCommunicate request_size=4 [05:42:04]MH_SAM_APDU [05:42:04]CAPDU: 80 0D 01 02 [05:42:04]Write to MH i2c: E2 08 00 25 19 80 0D 01 02 00 00 00 00 B7 [05:42:04]Write i2c OK [05:42:04]MH_I2C_Read... [05:42:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:04]Read from MH i2c: E2 [05:42:04]MH_I2C_Read... [05:42:04]Read from MH i2c: E2 03 00 [05:42:04]MH_I2C_Read... [05:42:04]Read from MH i2c: E2 03 00 25 19 00 90 00 B2 [05:42:04]RAPDU: 90 00 [05:42:04]wFMCommunicate OK [05:42:04]wFMCommunicate request_size=255 [05:42:04]MH_SAM_APDU [05:42:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 46 00 00 00 F4 03 04 00 2D 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DE 02 [05:42:04]Write to MH i2c: E2 02 01 26 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 46 00 00 00 F4 03 04 00 2D 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DE 02 00 00 27 [05:42:04]Write i2c OK [05:42:04]MH_I2C_Read... [05:42:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:04]Read from MH i2c: E2 [05:42:04]MH_I2C_Read... [05:42:04]Read from MH i2c: E2 03 00 [05:42:04]MH_I2C_Read... [05:42:04]Read from MH i2c: E2 03 00 26 19 00 90 00 B3 [05:42:04]RAPDU: 90 00 [05:42:04]wFMCommunicate OK [05:42:04]wFMCommunicate request_size=16 [05:42:04]MH_SAM_APDU [05:42:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A7 FA CD 83 04 8A [05:42:04]Write to MH i2c: E2 13 00 27 19 80 0D 02 02 0B 00 00 35 04 06 00 A7 FA CD 83 04 8A 00 00 8E [05:42:04]Write i2c OK [05:42:04]MH_I2C_Read... [05:42:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:05]Read from MH i2c: E2 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: E2 03 00 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: E2 03 00 27 19 00 90 00 B4 [05:42:05]RAPDU: 90 00 [05:42:05]wFMCommunicate OK [05:42:05]wFMCommunicate request_size=4 [05:42:05]MH_SAM_APDU [05:42:05]CAPDU: 80 0D 03 02 [05:42:05]Write to MH i2c: E2 08 00 28 19 80 0D 03 02 00 00 00 00 BC [05:42:05]Write i2c OK [05:42:05]MH_I2C_Read... [05:42:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:05]Read from MH i2c: E2 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: E2 0B 00 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: E2 0B 00 28 19 00 7B FD EC F5 07 52 AD 54 90 00 70 [05:42:05]RAPDU: 7B FD EC F5 07 52 AD 54 90 00 [05:42:05]wFMCommunicate OK [05:42:05]SAM_PROTO_SignData done [05:42:05]FM_MakeSignedData done [05:42:05]CreateOFDProtocolMessage [05:42:05]wFMCommunicate request_size=4 [05:42:05]MH_SAM_APDU [05:42:05]CAPDU: 80 11 00 00 [05:42:05]Write to MH i2c: E2 08 00 29 19 80 11 00 00 00 00 00 00 BC [05:42:05]Write i2c OK [05:42:05]MH_I2C_Read... [05:42:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:05]Read from MH i2c: E2 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: E2 17 00 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: E2 17 00 29 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [05:42:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:42:05]wFMCommunicate OK [05:42:05]CreateOFDProtocolMessage done [05:42:05]OFDSenderStorePacket 188041 [05:42:05]StoreOFDPacket docnum=188041 [05:42:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A3 C9 0D 01 3D 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 46 00 00 00 F4 03 04 00 2D 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DE 02 00 35 04 06 00 A7 FA CD 83 04 8A 7B FD EC F5 07 52 AD 54 [05:42:05]CheckFolder [05:42:05]dirname=/storage/ofd_packets [05:42:05]CheckFolder done [05:42:05]ProducePacketName [05:42:05]name=ofd_packets/00188041 [05:42:05]NVStorageSaveData ofd_packets/00188041 [05:42:05]File name is /storage/ofd_packets/00188041 [05:42:05]Write 307 bytes [05:42:05]NVStorageSaveData done [05:42:05]OFDSenderStorePacket done [05:42:05]KKMCreateOFDPacket done [05:42:05]NVStorageSaveData kkm_last_timestamp [05:42:05]File name is /storage/kkm_last_timestamp [05:42:05]Write 4 bytes [05:42:05]NVStorageSaveData done [05:42:05]ExternCall_PrintAddStr [05:42:05]wPrintStart [05:42:05]Write to MH i2c: 01 00 00 2A 19 43 [05:42:05]Write i2c OK [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: 01 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: 01 07 00 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: 01 07 00 2A 19 00 00 00 00 00 FF 0F 58 [05:42:05]RasterBufferAndPrint [05:42:05]line Счет N : (1)210092 [05:42:05]line ИНН: 02508201610067 [05:42:05]line Контрольно-Кассовый Чек [05:42:05]line ПРОДАЖА [05:42:05]line ТРК (МРК, ГНК) : 21 [05:42:05]line Товар: 2710194210 [05:42:05]line D-ENERGY ДТ-К-5 [05:42:05]line 6.480 * 77.20 [05:42:05]line = 500.26 [05:42:05]line НДС 12% НСП 1% [05:42:05]line > о реализуемом товаре [05:42:05]line ОКРУГЛЕНИЕ: -0.26 [05:42:05]line ИТОГО: 500.00 [05:42:05]line Внесено: 500.00 [05:42:05]line СДАЧА: 0.00 [05:42:05]line НСП 1% : 4.43 [05:42:05]line НДС 12% : 53.12 [05:42:05]line Наличными: 500.00 [05:42:05]line Безнал.: 0.00 [05:42:05]line Место: АЗС № 86 "Партнер Нефть" [05:42:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:42:05]line СНО: Общий режим [05:42:05]line Чек 70 22.10.2024 05:42 [05:42:05]line Смена: 461 ФФД: 1.0 [05:42:05]line ЗНМ: 0300000155 [05:42:05]line РНМ: 0000000000100030 [05:42:05]line Версия ККМ: 001 [05:42:05]line ФМ: 0000000000965340 [05:42:05]line ФД: 188041 [05:42:05]line ФПД: 184695631578250 [05:42:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054205&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188041&fm=184695631578250&tin=02508201610067®Number=0000000000100030&sum=50000 [05:42:05]written 0, free lines is 4095 [05:42:05]OFD Sender: Processing packet 188041 [packets to send 1062, broken 1061] [05:42:05]ProducePacketName [05:42:05]name=ofd_packets/00188041 [05:42:05]OFD Sender: To server: pG, [05:42:05]CommunicateWithHost lk.salyk.kg:30040 [05:42:05]ConnectInit lk.salyk.kg [05:42:05]Connected sock=10 [05:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A3 C9 0D 01 3D 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 46 00 00 00 F4 03 04 00 2D 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DE 02 00 35 04 06 00 A7 FA CD 83 04 8A 7B FD EC F5 07 52 AD 54 [05:42:05]Write to MH i2c: 01 00 00 55 19 6E [05:42:05]Write i2c OK [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: 01 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: 01 07 00 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: 01 07 00 55 19 00 00 00 00 00 55 0C D6 [05:42:05]RasterBufferAndPrint [05:42:05]line [05:42:05]line [05:42:05]line [05:42:05]line [05:42:05]line [05:42:05]written 0, free lines is 3164 [05:42:05]MH_Cut [05:42:05]Write to MH i2c: D1 01 00 5C 19 01 47 [05:42:05]Write i2c OK [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: D1 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: D1 01 00 [05:42:05]MH_I2C_Read... [05:42:05]Read from MH i2c: D1 01 00 5C 19 00 46 [05:42:05]Write to MH i2c: 01 00 00 5D 19 76 [05:42:05]Write i2c OK [05:42:05]MH_I2C_Read... [05:42:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A 2B 47 00 AD 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 39 36 35 33 34 30 10 04 04 00 89 DE 02 00 F4 03 04 00 1B E5 16 67 B6 04 01 00 00 6B EB A9 28 4B 8D 8D 9F [05:42:05]CommunicateWithHost err = 0 [05:42:05]CheckOFDResponse [05:42:05]1017 (14) - 77093643461234 [05:42:05]1041 (16) - 0000000000965340 [05:42:05]1040 (4) - 188041 [05:42:05]1012 (4) - 21.10.2024 23:34 [05:42:05]1206 (1) - 0 [05:42:05]OFD Sender: Remove packet 188041 [05:42:05]ProducePacketName [05:42:05]name=ofd_packets/00188041 [05:42:05]NVStorageDeleteData [05:42:06]OFD Sender: No OFD packet to send [05:42:06]*** Cut start [05:42:06]*** Partial cut [05:42:06]*** CUTSNS_PIN = 1 [05:42:06]*** CUTSNS_PIN = 0 [05:42:07]*** Brake cut motor [05:42:07]Read from MH i2c: 01 [05:42:07]MH_I2C_Read... [05:42:07]*** Stop cut motor [05:42:07]*** Cut end [05:42:07]Read from MH i2c: 01 07 00 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: 01 07 00 5D 19 00 00 00 00 00 FF 0F 8B [05:42:07]process_action close_receipt done [05:42:07]requested_data is exist [05:42:07]produce_requested_data [05:42:07]requested_item fm.sn is exist - process it [05:42:07]wFMCommunicate request_size=4 [05:42:07]MH_SAM_APDU [05:42:07]CAPDU: 80 11 00 00 [05:42:07]Write to MH i2c: E2 08 00 5E 19 80 11 00 00 00 00 00 00 F1 [05:42:07]Write i2c OK [05:42:07]MH_I2C_Read... [05:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:07]Read from MH i2c: E2 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: E2 17 00 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: E2 17 00 5E 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [05:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:42:07]wFMCommunicate OK [05:42:07]requested_item fd.num is exist - process it [05:42:07]SAM_PROTO_GetFieldsCounters [05:42:07]wFMCommunicate request_size=4 [05:42:07]MH_SAM_APDU [05:42:07]CAPDU: 80 13 00 00 [05:42:07]Write to MH i2c: E2 08 00 5F 19 80 13 00 00 00 00 00 00 F4 [05:42:07]Write i2c OK [05:42:07]MH_I2C_Read... [05:42:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:42:07]Read from MH i2c: E2 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: E2 62 00 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: E2 62 00 5F 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 DE 02 00 0E 04 04 00 CD 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 04 [05:42:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 DE 02 00 0E 04 04 00 CD 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 [05:42:07]wFMCommunicate OK [05:42:07]SAM_PROTO_GetFieldsCounters done [05:42:07]requested_item shift.num is exist - process it [05:42:07]requested_item shift.opened is exist - process it [05:42:07]req_shift_opened [05:42:07]FM_GetShiftState [05:42:07]SAM_PROTO_GetShiftState [05:42:07]wFMCommunicate request_size=4 [05:42:07]MH_SAM_APDU [05:42:07]CAPDU: 80 13 01 00 [05:42:07]Write to MH i2c: E2 08 00 60 19 80 13 01 00 00 00 00 00 F6 [05:42:07]Write i2c OK [05:42:07]MH_I2C_Read... [05:42:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:07]Read from MH i2c: E2 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: E2 0E 00 [05:42:07]MH_I2C_Read... [05:42:07]Read from MH i2c: E2 0E 00 60 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [05:42:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:42:07]wFMCommunicate OK [05:42:07]SAM_PROTO_GetShiftState done [05:42:07]FM_GetShiftState done [05:42:07]req_shift_opened done [05:42:07]requested_item shift.open_date is exist - process it [05:42:07]req_shift_open_date [05:42:07]req_shift_open_date done [05:42:07]produce_requested_data done [05:42:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188041,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:42:07]process_action_free close_receipt [05:42:07]json_value_free [05:42:07]json_value_free done [05:42:07]process_json_proto returns [05:42:07]Send response to host [05:42:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188041,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:42:07]free response buf [05:42:07]execute_script done [05:42:07]execute_script returns [05:42:07]free content buf [05:42:07]Sock 8.Close socket [05:42:07]Sock 8.Thread stoped [05:42:11]OFD Sender: No OFD packet to send [05:42:16]OFD Sender: No OFD packet to send [05:42:21]OFD Sender: No OFD packet to send [05:42:26]OFD Sender: No OFD packet to send [05:42:31]OFD Sender: No OFD packet to send [05:42:36]OFD Sender: No OFD packet to send [05:42:41]OFD Sender: No OFD packet to send [05:42:46]OFD Sender: No OFD packet to send [05:42:51]OFD Sender: No OFD packet to send [05:42:56]OFD Sender: No OFD packet to send [05:42:57]accept exits with 9 [05:42:57]New connection [05:42:57]New thread 3067198820 created [05:42:57]Thread 3067055460 joined [05:42:57]Waiting for new connection... [05:42:57] Sock 9.Parse request [05:42:57]Sock 9.Check first char [05:42:57]Sock 9.First char is OK [05:42:57]request: POST /json_proto HTTP/1.0 [05:42:57]Method: POST [05:42:57]URL: /json_proto [05:42:57]Method is POST - this is cgi request [05:42:57]url: /json_proto [05:42:57]query_string will be loaded in cgi processing [05:42:57]execute_cgi json_proto POST (null) [05:42:57]execute_cgi path=json_proto method=POST [05:42:57]POST find Content-Length [05:42:57]Host: 172.17.42.131:8080 [05:42:57]Content-Length: 688 [05:42:57]Content-Type: application/json [05:42:57] [05:42:57]POST finish read [05:42:57]Found Content-Length = 688 [05:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [05:42:57]execute_script... [05:42: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)210093", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [05:42:57]POST & json_proto [05:42:57]process_json_proto [05:42:57]json parsed OK: [05:42:57]protocol is kg_v1.0 [05:42:57]action value=close_receipt [05:42:57]process_action close_receipt [05:42:57]cmd_close_receipt [05:42:57]MH_GetDate [05:42:57]Write to MH i2c: F0 00 00 61 19 69 [05:42:57]Write i2c OK [05:42:57]MH_I2C_Read... [05:42:57]Read from MH i2c: F0 [05:42:57]MH_I2C_Read... [05:42:57]Read from MH i2c: F0 09 00 [05:42:57]MH_I2C_Read... [05:42:57]Read from MH i2c: F0 09 00 61 19 00 63 3B 17 67 A0 18 CA 66 76 [05:42:57]GetLastDocTimeStamp 1729575725 [05:42:57]current date 1729575779 [05:42:57]FM_GetShiftState [05:42:57]SAM_PROTO_GetShiftState [05:42:57]wFMCommunicate request_size=4 [05:42:57]MH_SAM_APDU [05:42:57]CAPDU: 80 13 01 00 [05:42:57]Write to MH i2c: E2 08 00 62 19 80 13 01 00 00 00 00 00 F8 [05:42:57]Write i2c OK [05:42:57]MH_I2C_Read... [05:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:42:57]Read from MH i2c: E2 [05:42:57]MH_I2C_Read... [05:42:57]Read from MH i2c: E2 0E 00 [05:42:57]MH_I2C_Read... [05:42:57]Read from MH i2c: E2 0E 00 62 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 ED [05:42:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:42:57]wFMCommunicate OK [05:42:57]SAM_PROTO_GetShiftState done [05:42:57]FM_GetShiftState done [05:42:57]opened in 1729556094 [05:42:57]opened+sec_in_day 1729642494 [05:42:57]quantity*price = 100051 [05:42:57]sum+1 = 100052 [05:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 71 22.10.2024 05:42 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188042 ФПД: 143020792050706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054259&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188042&fm=143020792050706&tin=02508201610067®Number=0000000000100030&sum=100000 [05:42:58]StoreToDocumentArchive [05:42:58]shift 461 fd 188042 [05:42:58]save to /storage/0461/doc_00188042 [05:42:58]save last doc name /storage/0461/doc_00188042 to /storage/kkm_last_doc_name [05:42:58]save OK [05:42:58]Clear old archive folders... [05:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:42:58]tlvbuf is 01BC21D0 [05:42:58]SAM_PROTO_ClearQueue [05:42:58]wFMCommunicate request_size=4 [05:42:58]MH_SAM_APDU [05:42:58]CAPDU: 80 09 00 00 [05:42:58]Write to MH i2c: E2 08 00 6F 19 80 09 00 00 00 00 00 00 FA [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:42:58]Read from MH i2c: E2 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 6F 19 00 90 00 FC [05:42:58]RAPDU: 90 00 [05:42:58]wFMCommunicate OK [05:42:58]SAM_PROTO_ClearQueue done [05:42:58]KKMCreateOFDPacket [05:42:58]OFDProtocolAddRootSTLVToBuf [05:42:58]FM_MakeSignedData [05:42:58]FM_MakeSignedData [05:42:58]SAM_PROTO_SignData [05:42:58]wFMCommunicate request_size=4 [05:42:58]MH_SAM_APDU [05:42:58]CAPDU: 80 0D 01 02 [05:42:58]Write to MH i2c: E2 08 00 70 19 80 0D 01 02 00 00 00 00 02 [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:42:58]Read from MH i2c: E2 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 70 19 00 90 00 FD [05:42:58]RAPDU: 90 00 [05:42:58]wFMCommunicate OK [05:42:58]wFMCommunicate request_size=255 [05:42:58]MH_SAM_APDU [05:42:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 47 00 00 00 F4 03 04 00 63 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DE 02 [05:42:58]Write to MH i2c: E2 02 01 71 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 47 00 00 00 F4 03 04 00 63 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DE 02 00 00 FA [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:58]Read from MH i2c: E2 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 71 19 00 90 00 FE [05:42:58]RAPDU: 90 00 [05:42:58]wFMCommunicate OK [05:42:58]wFMCommunicate request_size=16 [05:42:58]MH_SAM_APDU [05:42:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 82 13 9F 81 74 12 [05:42:58]Write to MH i2c: E2 13 00 72 19 80 0D 02 02 0B 00 00 35 04 06 00 82 13 9F 81 74 12 00 00 95 [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:42:58]Read from MH i2c: E2 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 03 00 72 19 00 90 00 FF [05:42:58]RAPDU: 90 00 [05:42:58]wFMCommunicate OK [05:42:58]wFMCommunicate request_size=4 [05:42:58]MH_SAM_APDU [05:42:58]CAPDU: 80 0D 03 02 [05:42:58]Write to MH i2c: E2 08 00 73 19 80 0D 03 02 00 00 00 00 07 [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:42:58]Read from MH i2c: E2 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 0B 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 0B 00 73 19 00 93 99 53 00 48 4B FC FC 90 00 12 [05:42:58]RAPDU: 93 99 53 00 48 4B FC FC 90 00 [05:42:58]wFMCommunicate OK [05:42:58]SAM_PROTO_SignData done [05:42:58]FM_MakeSignedData done [05:42:58]CreateOFDProtocolMessage [05:42:58]wFMCommunicate request_size=4 [05:42:58]MH_SAM_APDU [05:42:58]CAPDU: 80 11 00 00 [05:42:58]Write to MH i2c: E2 08 00 74 19 80 11 00 00 00 00 00 00 07 [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:42:58]Read from MH i2c: E2 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 17 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: E2 17 00 74 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [05:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:42:58]wFMCommunicate OK [05:42:58]CreateOFDProtocolMessage done [05:42:58]OFDSenderStorePacket 188042 [05:42:58]StoreOFDPacket docnum=188042 [05:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 98 E9 0D 01 80 4E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 47 00 00 00 F4 03 04 00 63 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DE 02 00 35 04 06 00 82 13 9F 81 74 12 93 99 53 00 48 4B FC FC [05:42:58]CheckFolder [05:42:58]dirname=/storage/ofd_packets [05:42:58]CheckFolder done [05:42:58]ProducePacketName [05:42:58]name=ofd_packets/00188042 [05:42:58]NVStorageSaveData ofd_packets/00188042 [05:42:58]File name is /storage/ofd_packets/00188042 [05:42:58]Write 307 bytes [05:42:58]NVStorageSaveData done [05:42:58]OFDSenderStorePacket done [05:42:58]KKMCreateOFDPacket done [05:42:58]NVStorageSaveData kkm_last_timestamp [05:42:58]File name is /storage/kkm_last_timestamp [05:42:58]Write 4 bytes [05:42:58]NVStorageSaveData done [05:42:58]ExternCall_PrintAddStr [05:42:58]wPrintStart [05:42:58]Write to MH i2c: 01 00 00 75 19 8E [05:42:58]Write i2c OK [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: 01 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: 01 07 00 [05:42:58]MH_I2C_Read... [05:42:58]Read from MH i2c: 01 07 00 75 19 00 00 00 00 00 FF 0F A3 [05:42:58]RasterBufferAndPrint [05:42:58]line Счет N : (1)210093 [05:42:58]line ИНН: 02508201610067 [05:42:58]line Контрольно-Кассовый Чек [05:42:58]line ПРОДАЖА [05:42:58]line ТРК (МРК, ГНК) : 11 [05:42:58]line Товар: 2710194210 [05:42:58]line D-ENERGY ДТ-К-5 [05:42:58]line 12.960 * 77.20 [05:42:58]line = 1000.51 [05:42:58]line НДС 12% НСП 1% [05:42:58]line > о реализуемом товаре [05:42:58]line ОКРУГЛЕНИЕ: -0.51 [05:42:58]line ИТОГО: 1000.00 [05:42:58]line Внесено: 1000.00 [05:42:58]line СДАЧА: 0.00 [05:42:58]line НСП 1% : 8.85 [05:42:58]line НДС 12% : 106.25 [05:42:58]line Наличными: 1000.00 [05:42:58]line Безнал.: 0.00 [05:42:58]line Место: АЗС № 86 "Партнер Нефть" [05:42:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:42:58]line СНО: Общий режим [05:42:58]line Чек 71 22.10.2024 05:42 [05:42:58]line Смена: 461 ФФД: 1.0 [05:42:58]line ЗНМ: 0300000155 [05:42:58]line РНМ: 0000000000100030 [05:42:58]line Версия ККМ: 001 [05:42:58]line ФМ: 0000000000965340 [05:42:58]line ФД: 188042 [05:42:58]line ФПД: 143020792050706 [05:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054259&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188042&fm=143020792050706&tin=02508201610067®Number=0000000000100030&sum=100000 [05:42:58]written 0, free lines is 4095 [05:42:58]OFD Sender: Processing packet 188042 [packets to send 1062, broken 1061] [05:42:58]ProducePacketName [05:42:58]name=ofd_packets/00188042 [05:42:58]OFD Sender: To server: pG, [05:42:58]CommunicateWithHost lk.salyk.kg:30040 [05:42:58]ConnectInit lk.salyk.kg [05:42:59]Connected sock=11 [05:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 98 E9 0D 01 80 4E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 47 00 00 00 F4 03 04 00 63 3B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DE 02 00 35 04 06 00 82 13 9F 81 74 12 93 99 53 00 48 4B FC FC [05:42:59]Write to MH i2c: 01 00 00 A0 19 B9 [05:42:59]Write i2c OK [05:42:59]MH_I2C_Read... [05:42:59]Read from MH i2c: 01 [05:42:59]MH_I2C_Read... [05:42:59]Read from MH i2c: 01 07 00 [05:42:59]MH_I2C_Read... [05:42:59]Read from MH i2c: 01 07 00 A0 19 00 00 00 00 00 5D 0C 29 [05:42:59]RasterBufferAndPrint [05:42:59]line [05:42:59]line [05:42:59]line [05:42:59]line [05:42:59]line [05:42:59]written 0, free lines is 3168 [05:42:59]MH_Cut [05:42:59]Write to MH i2c: D1 01 00 A7 19 01 92 [05:42:59]Write i2c OK [05:42:59]MH_I2C_Read... [05:42:59]Read from MH i2c: D1 [05:42:59]MH_I2C_Read... [05:42:59]Read from MH i2c: D1 01 00 [05:42:59]MH_I2C_Read... [05:42:59]Read from MH i2c: D1 01 00 A7 19 00 91 [05:42:59]Write to MH i2c: 01 00 00 A8 19 C1 [05:42:59]Write i2c OK [05:42:59]MH_I2C_Read... [05:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FB 71 47 00 1D EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DE 02 00 F4 03 04 00 51 E5 16 67 B6 04 01 00 00 1F 0E D1 A3 89 CA 21 59 [05:42:59]CommunicateWithHost err = 0 [05:42:59]CheckOFDResponse [05:42:59]1017 (14) - 77093643461234 [05:42:59]1041 (16) - 0000000000965340 [05:42:59]1040 (4) - 188042 [05:42:59]1012 (4) - 21.10.2024 23:35 [05:42:59]1206 (1) - 0 [05:42:59]OFD Sender: Remove packet 188042 [05:42:59]ProducePacketName [05:42:59]name=ofd_packets/00188042 [05:42:59]NVStorageDeleteData [05:42:59]OFD Sender: No OFD packet to send [05:43:00]*** Cut start [05:43:00]*** Partial cut [05:43:00]*** CUTSNS_PIN = 1 [05:43:00]*** CUTSNS_PIN = 0 [05:43:00]*** Brake cut motor [05:43:01]Read from MH i2c: 01 [05:43:01]MH_I2C_Read... [05:43:01]*** Stop cut motor [05:43:01]*** Cut end [05:43:01]Read from MH i2c: 01 07 00 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: 01 07 00 A8 19 00 00 00 00 00 FF 0F D6 [05:43:01]process_action close_receipt done [05:43:01]requested_data is exist [05:43:01]produce_requested_data [05:43:01]requested_item fm.sn is exist - process it [05:43:01]wFMCommunicate request_size=4 [05:43:01]MH_SAM_APDU [05:43:01]CAPDU: 80 11 00 00 [05:43:01]Write to MH i2c: E2 08 00 A9 19 80 11 00 00 00 00 00 00 3C [05:43:01]Write i2c OK [05:43:01]MH_I2C_Read... [05:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:43:01]Read from MH i2c: E2 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: E2 17 00 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: E2 17 00 A9 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [05:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:43:01]wFMCommunicate OK [05:43:01]requested_item fd.num is exist - process it [05:43:01]SAM_PROTO_GetFieldsCounters [05:43:01]wFMCommunicate request_size=4 [05:43:01]MH_SAM_APDU [05:43:01]CAPDU: 80 13 00 00 [05:43:01]Write to MH i2c: E2 08 00 AA 19 80 13 00 00 00 00 00 00 3F [05:43:01]Write i2c OK [05:43:01]MH_I2C_Read... [05:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:43:01]Read from MH i2c: E2 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: E2 62 00 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: E2 62 00 AA 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A DE 02 00 0E 04 04 00 CD 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 53 [05:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A DE 02 00 0E 04 04 00 CD 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 [05:43:01]wFMCommunicate OK [05:43:01]SAM_PROTO_GetFieldsCounters done [05:43:01]requested_item shift.num is exist - process it [05:43:01]requested_item shift.opened is exist - process it [05:43:01]req_shift_opened [05:43:01]FM_GetShiftState [05:43:01]SAM_PROTO_GetShiftState [05:43:01]wFMCommunicate request_size=4 [05:43:01]MH_SAM_APDU [05:43:01]CAPDU: 80 13 01 00 [05:43:01]Write to MH i2c: E2 08 00 AB 19 80 13 01 00 00 00 00 00 41 [05:43:01]Write i2c OK [05:43:01]MH_I2C_Read... [05:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:43:01]Read from MH i2c: E2 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: E2 0E 00 [05:43:01]MH_I2C_Read... [05:43:01]Read from MH i2c: E2 0E 00 AB 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [05:43:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:43:01]wFMCommunicate OK [05:43:01]SAM_PROTO_GetShiftState done [05:43:01]FM_GetShiftState done [05:43:01]req_shift_opened done [05:43:01]requested_item shift.open_date is exist - process it [05:43:01]req_shift_open_date [05:43:01]req_shift_open_date done [05:43:01]produce_requested_data done [05:43:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188042,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:43:01]process_action_free close_receipt [05:43:01]json_value_free [05:43:01]json_value_free done [05:43:01]process_json_proto returns [05:43:01]Send response to host [05:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188042,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:43:01]free response buf [05:43:01]execute_script done [05:43:01]execute_script returns [05:43:01]free content buf [05:43:01]Sock 9.Close socket [05:43:01]Sock 9.Thread stoped [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:20]OFD Sender: No OFD packet to send [05:43:25]OFD Sender: No OFD packet to send [05:43:30]OFD Sender: No OFD packet to send [05:43:35]OFD Sender: No OFD packet to send [05:43:40]OFD Sender: No OFD packet to send [05:43:45]OFD Sender: No OFD packet to send [05:43:50]OFD Sender: No OFD packet to send [05:43:55]OFD Sender: No OFD packet to send [05:44:00]OFD Sender: No OFD packet to send [05:44:05]OFD Sender: No OFD packet to send [05:44:10]OFD Sender: No OFD packet to send [05:44:15]OFD Sender: No OFD packet to send [05:44:20]OFD Sender: No OFD packet to send [05:44:25]OFD Sender: No OFD packet to send [05:44:30]OFD Sender: No OFD packet to send [05:44:35]OFD Sender: No OFD packet to send [05:44:40]OFD Sender: No OFD packet to send [05:44:45]OFD Sender: No OFD packet to send [05:44:50]OFD Sender: No OFD packet to send [05:44:55]OFD Sender: No OFD packet to send [05:45:00]OFD Sender: No OFD packet to send [05:45:05]OFD Sender: No OFD packet to send [05:45:10]OFD Sender: No OFD packet to send [05:45:15]OFD Sender: No OFD packet to send [05:45:20]OFD Sender: No OFD packet to send [05:45:25]OFD Sender: No OFD packet to send [05:45:30]OFD Sender: No OFD packet to send [05:45:35]OFD Sender: No OFD packet to send [05:45:40]OFD Sender: No OFD packet to send [05:45:45]OFD Sender: No OFD packet to send [05:45:50]OFD Sender: No OFD packet to send [05:45:55]OFD Sender: No OFD packet to send [05:46:00]OFD Sender: No OFD packet to send [05:46:05]OFD Sender: No OFD packet to send [05:46:10]OFD Sender: No OFD packet to send [05:46:15]OFD Sender: No OFD packet to send [05:46:17]accept exits with 8 [05:46:17]New connection [05:46:17]New thread 3067055460 created [05:46:17]Thread 3067198820 joined [05:46:17]Waiting for new connection... [05:46:17] Sock 8.Parse request [05:46:17]Sock 8.Check first char [05:46:17]Sock 8.First char is OK [05:46:17]request: POST /json_proto HTTP/1.0 [05:46:17]Method: POST [05:46:17]URL: /json_proto [05:46:17]Method is POST - this is cgi request [05:46:17]url: /json_proto [05:46:17]query_string will be loaded in cgi processing [05:46:17]execute_cgi json_proto POST (null) [05:46:17]execute_cgi path=json_proto method=POST [05:46:17]POST find Content-Length [05:46:17]Host: 172.17.42.131:8080 [05:46:17]Content-Length: 682 [05:46:17]Content-Type: application/json [05:46:17] [05:46:17]POST finish read [05:46:17]Found Content-Length = 682 [05:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210095", "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" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:17]execute_script... [05:46: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)210095", "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" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:17]POST & json_proto [05:46:17]process_json_proto [05:46:17]json parsed OK: [05:46:17]protocol is kg_v1.0 [05:46:17]action value=close_receipt [05:46:17]process_action close_receipt [05:46:17]cmd_close_receipt [05:46:17]MH_GetDate [05:46:17]Write to MH i2c: F0 00 00 AC 19 B4 [05:46:17]Write i2c OK [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: F0 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: F0 09 00 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: F0 09 00 AC 19 00 2B 3C 17 67 A0 18 CA 66 8A [05:46:17]GetLastDocTimeStamp 1729575779 [05:46:17]current date 1729575979 [05:46:17]FM_GetShiftState [05:46:17]SAM_PROTO_GetShiftState [05:46:17]wFMCommunicate request_size=4 [05:46:17]MH_SAM_APDU [05:46:17]CAPDU: 80 13 01 00 [05:46:17]Write to MH i2c: E2 08 00 AD 19 80 13 01 00 00 00 00 00 43 [05:46:17]Write i2c OK [05:46:17]MH_I2C_Read... [05:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:17]Read from MH i2c: E2 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: E2 0E 00 [05:46:17]MH_I2C_Read... [05:46:17]Read from MH i2c: E2 0E 00 AD 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [05:46:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:46:17]wFMCommunicate OK [05:46:17]SAM_PROTO_GetShiftState done [05:46:17]FM_GetShiftState done [05:46:17]opened in 1729556094 [05:46:17]opened+sec_in_day 1729642494 [05:46:17]quantity*price = 150032 [05:46:17]sum+1 = 150033 [05:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 72 22.10.2024 05:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188043 ФПД: 253521271842280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188043&fm=253521271842280&tin=02508201610067®Number=0000000000100030&sum=150000 [05:46:18]StoreToDocumentArchive [05:46:18]shift 461 fd 188043 [05:46:18]save to /storage/0461/doc_00188043 [05:46:18]save last doc name /storage/0461/doc_00188043 to /storage/kkm_last_doc_name [05:46:18]save OK [05:46:18]Clear old archive folders... [05:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [05:46:18]tlvbuf is B6DE4150 [05:46:18]SAM_PROTO_ClearQueue [05:46:18]wFMCommunicate request_size=4 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 09 00 00 [05:46:18]Write to MH i2c: E2 08 00 BA 19 80 09 00 00 00 00 00 00 45 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 BA 19 00 90 00 47 [05:46:18]RAPDU: 90 00 [05:46:18]wFMCommunicate OK [05:46:18]SAM_PROTO_ClearQueue done [05:46:18]KKMCreateOFDPacket [05:46:18]OFDProtocolAddRootSTLVToBuf [05:46:18]FM_MakeSignedData [05:46:18]FM_MakeSignedData [05:46:18]SAM_PROTO_SignData [05:46:18]wFMCommunicate request_size=4 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 0D 01 02 [05:46:18]Write to MH i2c: E2 08 00 BB 19 80 0D 01 02 00 00 00 00 4D [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 BB 19 00 90 00 48 [05:46:18]RAPDU: 90 00 [05:46:18]wFMCommunicate OK [05:46:18]wFMCommunicate request_size=255 [05:46:18]MH_SAM_APDU [05:46: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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2B 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DE 02 00 35 04 06 00 E6 [05:46:18]Write to MH i2c: E2 02 01 BC 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2B 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DE 02 00 35 04 06 00 E6 00 00 6F [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 BC 19 00 90 00 49 [05:46:18]RAPDU: 90 00 [05:46:18]wFMCommunicate OK [05:46:18]wFMCommunicate request_size=10 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 0D 02 02 05 93 85 59 E5 E8 [05:46:18]Write to MH i2c: E2 0D 00 BD 19 80 0D 02 02 05 00 93 85 59 E5 E8 00 00 98 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 03 00 BD 19 00 90 00 4A [05:46:18]RAPDU: 90 00 [05:46:18]wFMCommunicate OK [05:46:18]wFMCommunicate request_size=4 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 0D 03 02 [05:46:18]Write to MH i2c: E2 08 00 BE 19 80 0D 03 02 00 00 00 00 52 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 0B 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 0B 00 BE 19 00 65 59 4D F1 B2 EC 31 3E 90 00 5C [05:46:18]RAPDU: 65 59 4D F1 B2 EC 31 3E 90 00 [05:46:18]wFMCommunicate OK [05:46:18]SAM_PROTO_SignData done [05:46:18]FM_MakeSignedData done [05:46:18]CreateOFDProtocolMessage [05:46:18]wFMCommunicate request_size=4 [05:46:18]MH_SAM_APDU [05:46:18]CAPDU: 80 11 00 00 [05:46:18]Write to MH i2c: E2 08 00 BF 19 80 11 00 00 00 00 00 00 52 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:18]Read from MH i2c: E2 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 17 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: E2 17 00 BF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [05:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:46:18]wFMCommunicate OK [05:46:18]CreateOFDProtocolMessage done [05:46:18]OFDSenderStorePacket 188043 [05:46:18]StoreOFDPacket docnum=188043 [05:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 79 1B 07 01 8F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2B 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DE 02 00 35 04 06 00 E6 93 85 59 E5 E8 65 59 4D F1 B2 EC 31 3E [05:46:18]CheckFolder [05:46:18]dirname=/storage/ofd_packets [05:46:18]CheckFolder done [05:46:18]ProducePacketName [05:46:18]name=ofd_packets/00188043 [05:46:18]NVStorageSaveData ofd_packets/00188043 [05:46:18]File name is /storage/ofd_packets/00188043 [05:46:18]Write 301 bytes [05:46:18]NVStorageSaveData done [05:46:18]OFDSenderStorePacket done [05:46:18]KKMCreateOFDPacket done [05:46:18]NVStorageSaveData kkm_last_timestamp [05:46:18]File name is /storage/kkm_last_timestamp [05:46:18]Write 4 bytes [05:46:18]NVStorageSaveData done [05:46:18]ExternCall_PrintAddStr [05:46:18]wPrintStart [05:46:18]Write to MH i2c: 01 00 00 C0 19 D9 [05:46:18]Write i2c OK [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: 01 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: 01 07 00 [05:46:18]MH_I2C_Read... [05:46:18]Read from MH i2c: 01 07 00 C0 19 00 00 00 00 00 FF 0F EE [05:46:18]RasterBufferAndPrint [05:46:18]line Счет N : (1)210095 [05:46:18]line ИНН: 02508201610067 [05:46:18]line Контрольно-Кассовый Чек [05:46:18]line ПРОДАЖА [05:46:18]line ТРК (МРК, ГНК) : 43 [05:46:18]line Товар: 2710124500 [05:46:18]line Аи-95-К-3 [05:46:18]line 20.220 * 74.20 [05:46:18]line = 1500.32 [05:46:18]line НДС 12% НСП 1% [05:46:18]line > о реализуемом товаре [05:46:18]line ОКРУГЛЕНИЕ: -0.32 [05:46:18]line ИТОГО: 1500.00 [05:46:18]line Внесено: 1500.00 [05:46:18]line СДАЧА: 0.00 [05:46:18]line НСП 1% : 13.28 [05:46:18]line НДС 12% : 159.33 [05:46:18]line Наличными: 1500.00 [05:46:18]line Безнал.: 0.00 [05:46:18]line Место: АЗС № 86 "Партнер Нефть" [05:46:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:46:18]line СНО: Общий режим [05:46:18]line Чек 72 22.10.2024 05:46 [05:46:18]line Смена: 461 ФФД: 1.0 [05:46:18]line ЗНМ: 0300000155 [05:46:18]line РНМ: 0000000000100030 [05:46:18]line Версия ККМ: 001 [05:46:18]line ФМ: 0000000000965340 [05:46:18]line ФД: 188043 [05:46:18]line ФПД: 253521271842280 [05:46:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054619&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188043&fm=253521271842280&tin=02508201610067®Number=0000000000100030&sum=150000 [05:46:18]written 0, free lines is 4095 [05:46:19]OFD Sender: Processing packet 188043 [packets to send 1062, broken 1061] [05:46:19]ProducePacketName [05:46:19]name=ofd_packets/00188043 [05:46:19]OFD Sender: To server: pG, [05:46:19]CommunicateWithHost lk.salyk.kg:30040 [05:46:19]ConnectInit lk.salyk.kg [05:46:19]Connected sock=10 [05:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 79 1B 07 01 8F D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 2B 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DE 02 00 35 04 06 00 E6 93 85 59 E5 E8 65 59 4D F1 B2 EC 31 3E [05:46:19]Write to MH i2c: 01 00 00 EB 19 04 [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 07 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: 01 07 00 EB 19 00 00 00 00 00 63 0C 7A [05:46:19]RasterBufferAndPrint [05:46:19]line [05:46:19]line [05:46:19]line [05:46:19]line [05:46:19]line [05:46:19]written 0, free lines is 3174 [05:46:19]MH_Cut [05:46:19]Write to MH i2c: D1 01 00 F2 19 01 DD [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: D1 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: D1 01 00 [05:46:19]MH_I2C_Read... [05:46:19]Read from MH i2c: D1 01 00 F2 19 00 DC [05:46:19]Write to MH i2c: 01 00 00 F3 19 0C [05:46:19]Write i2c OK [05:46:19]MH_I2C_Read... [05:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 88 47 00 E2 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DE 02 00 F4 03 04 00 19 E6 16 67 B6 04 01 00 00 F1 22 3E A0 62 E8 2F 0E [05:46:19]CommunicateWithHost err = 0 [05:46:19]CheckOFDResponse [05:46:19]1017 (14) - 77093643461234 [05:46:19]1041 (16) - 0000000000965340 [05:46:19]1040 (4) - 188043 [05:46:19]1012 (4) - 21.10.2024 23:39 [05:46:19]1206 (1) - 0 [05:46:19]OFD Sender: Remove packet 188043 [05:46:19]ProducePacketName [05:46:19]name=ofd_packets/00188043 [05:46:19]NVStorageDeleteData [05:46:20]OFD Sender: No OFD packet to send [05:46:20]*** Cut start [05:46:20]*** Partial cut [05:46:20]*** CUTSNS_PIN = 1 [05:46:20]*** CUTSNS_PIN = 0 [05:46:20]*** Brake cut motor [05:46:21]Read from MH i2c: 01 [05:46:21]MH_I2C_Read... [05:46:21]*** Stop cut motor [05:46:21]*** Cut end [05:46:21]Read from MH i2c: 01 07 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: 01 07 00 F3 19 00 00 00 00 00 FF 0F 21 [05:46:21]process_action close_receipt done [05:46:21]requested_data is exist [05:46:21]produce_requested_data [05:46:21]requested_item fm.sn is exist - process it [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 11 00 00 [05:46:21]Write to MH i2c: E2 08 00 F4 19 80 11 00 00 00 00 00 00 87 [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 17 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 17 00 F4 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [05:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:46:21]wFMCommunicate OK [05:46:21]requested_item fd.num is exist - process it [05:46:21]SAM_PROTO_GetFieldsCounters [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 13 00 00 [05:46:21]Write to MH i2c: E2 08 00 F5 19 80 13 00 00 00 00 00 00 8A [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 62 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 62 00 F5 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B DE 02 00 0E 04 04 00 CD 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 A2 [05:46:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B DE 02 00 0E 04 04 00 CD 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 [05:46:21]wFMCommunicate OK [05:46:21]SAM_PROTO_GetFieldsCounters done [05:46:21]requested_item shift.num is exist - process it [05:46:21]requested_item shift.opened is exist - process it [05:46:21]req_shift_opened [05:46:21]FM_GetShiftState [05:46:21]SAM_PROTO_GetShiftState [05:46:21]wFMCommunicate request_size=4 [05:46:21]MH_SAM_APDU [05:46:21]CAPDU: 80 13 01 00 [05:46:21]Write to MH i2c: E2 08 00 F6 19 80 13 01 00 00 00 00 00 8C [05:46:21]Write i2c OK [05:46:21]MH_I2C_Read... [05:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:21]Read from MH i2c: E2 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 0E 00 [05:46:21]MH_I2C_Read... [05:46:21]Read from MH i2c: E2 0E 00 F6 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 81 [05:46:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:46:21]wFMCommunicate OK [05:46:21]SAM_PROTO_GetShiftState done [05:46:21]FM_GetShiftState done [05:46:21]req_shift_opened done [05:46:21]requested_item shift.open_date is exist - process it [05:46:21]req_shift_open_date [05:46:21]req_shift_open_date done [05:46:21]produce_requested_data done [05:46:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188043,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:46:21]process_action_free close_receipt [05:46:21]json_value_free [05:46:21]json_value_free done [05:46:21]process_json_proto returns [05:46:21]Send response to host [05:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188043,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:46:21]free response buf [05:46:21]execute_script done [05:46:21]execute_script returns [05:46:21]free content buf [05:46:21]Sock 8.Close socket [05:46:21]Sock 8.Thread stoped [05:46:25]OFD Sender: No OFD packet to send [05:46:26]accept exits with 9 [05:46:26]New connection [05:46:26]New thread 3067198820 created [05:46:26]Thread 3067055460 joined [05:46:26]Waiting for new connection... [05:46:26] Sock 9.Parse request [05:46:26]Sock 9.Check first char [05:46:26]Sock 9.First char is OK [05:46:26]request: POST /json_proto HTTP/1.0 [05:46:26]Method: POST [05:46:26]URL: /json_proto [05:46:26]Method is POST - this is cgi request [05:46:26]url: /json_proto [05:46:26]query_string will be loaded in cgi processing [05:46:26]execute_cgi json_proto POST (null) [05:46:26]execute_cgi path=json_proto method=POST [05:46:26]POST find Content-Length [05:46:26]Host: 172.17.42.131:8080 [05:46:26]Content-Length: 679 [05:46:26]Content-Type: application/json [05:46:26] [05:46:26]POST finish read [05:46:26]Found Content-Length = 679 [05:46:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:26]execute_script... [05:46: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)210094", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:46:26]POST & json_proto [05:46:26]process_json_proto [05:46:26]json parsed OK: [05:46:26]protocol is kg_v1.0 [05:46:26]action value=close_receipt [05:46:26]process_action close_receipt [05:46:26]cmd_close_receipt [05:46:26]MH_GetDate [05:46:26]Write to MH i2c: F0 00 00 F7 19 FF [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: F0 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: F0 09 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: F0 09 00 F7 19 00 34 3C 17 67 A0 18 CA 66 DE [05:46:26]GetLastDocTimeStamp 1729575979 [05:46:26]current date 1729575988 [05:46:26]FM_GetShiftState [05:46:26]SAM_PROTO_GetShiftState [05:46:26]wFMCommunicate request_size=4 [05:46:26]MH_SAM_APDU [05:46:26]CAPDU: 80 13 01 00 [05:46:26]Write to MH i2c: E2 08 00 F8 19 80 13 01 00 00 00 00 00 8E [05:46:26]Write i2c OK [05:46:26]MH_I2C_Read... [05:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:26]Read from MH i2c: E2 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 0E 00 [05:46:26]MH_I2C_Read... [05:46:26]Read from MH i2c: E2 0E 00 F8 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [05:46:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:46:26]wFMCommunicate OK [05:46:26]SAM_PROTO_GetShiftState done [05:46:26]FM_GetShiftState done [05:46:26]opened in 1729556094 [05:46:26]opened+sec_in_day 1729642494 [05:46:26]quantity*price = 300075 [05:46:26]sum+1 = 300077 [05:46:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 73 22.10.2024 05:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188044 ФПД: 267054397719175 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188044&fm=267054397719175&tin=02508201610067®Number=0000000000100030&sum=300000 [05:46:27]StoreToDocumentArchive [05:46:27]shift 461 fd 188044 [05:46:27]save to /storage/0461/doc_00188044 [05:46:27]save last doc name /storage/0461/doc_00188044 to /storage/kkm_last_doc_name [05:46:27]save OK [05:46:27]Clear old archive folders... [05:46:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [05:46:27]tlvbuf is 01B9E100 [05:46:27]SAM_PROTO_ClearQueue [05:46:27]wFMCommunicate request_size=4 [05:46:27]MH_SAM_APDU [05:46:27]CAPDU: 80 09 00 00 [05:46:27]Write to MH i2c: E2 08 00 05 1A 80 09 00 00 00 00 00 00 91 [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:46:27]Read from MH i2c: E2 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 03 00 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 03 00 05 1A 00 90 00 93 [05:46:27]RAPDU: 90 00 [05:46:27]wFMCommunicate OK [05:46:27]SAM_PROTO_ClearQueue done [05:46:27]KKMCreateOFDPacket [05:46:27]OFDProtocolAddRootSTLVToBuf [05:46:27]FM_MakeSignedData [05:46:27]FM_MakeSignedData [05:46:27]SAM_PROTO_SignData [05:46:27]wFMCommunicate request_size=4 [05:46:27]MH_SAM_APDU [05:46:27]CAPDU: 80 0D 01 02 [05:46:27]Write to MH i2c: E2 08 00 06 1A 80 0D 01 02 00 00 00 00 99 [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:46:27]Read from MH i2c: E2 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 03 00 [05:46:27]MH_I2C_Read... [05:46:27]Read from MH i2c: E2 03 00 06 1A 00 90 00 94 [05:46:27]RAPDU: 90 00 [05:46:27]wFMCommunicate OK [05:46:27]wFMCommunicate request_size=255 [05:46:27]MH_SAM_APDU [05:46:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 34 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DE 02 00 35 04 06 00 F2 E2 72 83 [05:46:27]Write to MH i2c: E2 02 01 07 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 32 31 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 34 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DE 02 00 35 04 06 00 F2 E2 72 83 00 00 75 [05:46:27]Write i2c OK [05:46:27]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 [05:46:28]MH_I2C_Read... [05:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:28]Read from MH i2c: E2 03 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 03 00 07 1A 00 90 00 95 [05:46:28]RAPDU: 90 00 [05:46:28]wFMCommunicate OK [05:46:28]wFMCommunicate request_size=7 [05:46:28]MH_SAM_APDU [05:46:28]CAPDU: 80 0D 02 02 02 02 87 [05:46:28]Write to MH i2c: E2 0A 00 08 1A 80 0D 02 02 02 00 02 87 00 00 29 [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:46:28]Read from MH i2c: E2 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 03 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 03 00 08 1A 00 90 00 96 [05:46:28]RAPDU: 90 00 [05:46:28]wFMCommunicate OK [05:46:28]wFMCommunicate request_size=4 [05:46:28]MH_SAM_APDU [05:46:28]CAPDU: 80 0D 03 02 [05:46:28]Write to MH i2c: E2 08 00 09 1A 80 0D 03 02 00 00 00 00 9E [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:46:28]Read from MH i2c: E2 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 0B 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 0B 00 09 1A 00 9F C9 15 75 44 69 48 B9 90 00 3F [05:46:28]RAPDU: 9F C9 15 75 44 69 48 B9 90 00 [05:46:28]wFMCommunicate OK [05:46:28]SAM_PROTO_SignData done [05:46:28]FM_MakeSignedData done [05:46:28]CreateOFDProtocolMessage [05:46:28]wFMCommunicate request_size=4 [05:46:28]MH_SAM_APDU [05:46:28]CAPDU: 80 11 00 00 [05:46:28]Write to MH i2c: E2 08 00 0A 1A 80 11 00 00 00 00 00 00 9E [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:28]Read from MH i2c: E2 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 17 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: E2 17 00 0A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [05:46:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:46:28]wFMCommunicate OK [05:46:28]CreateOFDProtocolMessage done [05:46:28]OFDSenderStorePacket 188044 [05:46:28]StoreOFDPacket docnum=188044 [05:46:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 AF 08 04 01 EC B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 34 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DE 02 00 35 04 06 00 F2 E2 72 83 02 87 9F C9 15 75 44 69 48 B9 [05:46:28]CheckFolder [05:46:28]dirname=/storage/ofd_packets [05:46:28]CheckFolder done [05:46:28]ProducePacketName [05:46:28]name=ofd_packets/00188044 [05:46:28]NVStorageSaveData ofd_packets/00188044 [05:46:28]File name is /storage/ofd_packets/00188044 [05:46:28]Write 298 bytes [05:46:28]NVStorageSaveData done [05:46:28]OFDSenderStorePacket done [05:46:28]KKMCreateOFDPacket done [05:46:28]NVStorageSaveData kkm_last_timestamp [05:46:28]File name is /storage/kkm_last_timestamp [05:46:28]Write 4 bytes [05:46:28]NVStorageSaveData done [05:46:28]ExternCall_PrintAddStr [05:46:28]wPrintStart [05:46:28]Write to MH i2c: 01 00 00 0B 1A 25 [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: 01 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: 01 07 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: 01 07 00 0B 1A 00 00 00 00 00 FF 0F 3A [05:46:28]RasterBufferAndPrint [05:46:28]line Счет N : (1)210094 [05:46:28]line ИНН: 02508201610067 [05:46:28]line Контрольно-Кассовый Чек [05:46:28]line ПРОДАЖА [05:46:28]line ТРК (МРК, ГНК) : 51 [05:46:28]line Товар: 2710194210 [05:46:28]line ДТ-К-5 [05:46:28]line 39.380 * 76.20 [05:46:28]line = 3000.76 [05:46:28]line НДС 12% НСП 1% [05:46:28]line > о реализуемом товаре [05:46:28]line ОКРУГЛЕНИЕ: -0.76 [05:46:28]line ИТОГО: 3000.00 [05:46:28]line Внесено: 3000.00 [05:46:28]line СДАЧА: 0.00 [05:46:28]line НСП 1% : 26.55 [05:46:28]line НДС 12% : 318.66 [05:46:28]line Наличными: 3000.00 [05:46:28]line Безнал.: 0.00 [05:46:28]line Место: АЗС № 86 "Партнер Нефть" [05:46:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:46:28]line СНО: Общий режим [05:46:28]line Чек 73 22.10.2024 05:46 [05:46:28]line Смена: 461 ФФД: 1.0 [05:46:28]line ЗНМ: 0300000155 [05:46:28]line РНМ: 0000000000100030 [05:46:28]line Версия ККМ: 001 [05:46:28]line ФМ: 0000000000965340 [05:46:28]line ФД: 188044 [05:46:28]line ФПД: 267054397719175 [05:46:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188044&fm=267054397719175&tin=02508201610067®Number=0000000000100030&sum=300000 [05:46:28]written 0, free lines is 4095 [05:46:28]OFD Sender: Processing packet 188044 [packets to send 1062, broken 1061] [05:46:28]ProducePacketName [05:46:28]name=ofd_packets/00188044 [05:46:28]OFD Sender: To server: pG, [05:46:28]CommunicateWithHost lk.salyk.kg:30040 [05:46:28]ConnectInit lk.salyk.kg [05:46:28]Connected sock=8 [05:46:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 AF 08 04 01 EC B2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 00 00 00 F4 03 04 00 34 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DE 02 00 35 04 06 00 F2 E2 72 83 02 87 9F C9 15 75 44 69 48 B9 [05:46:28]Write to MH i2c: 01 00 00 36 1A 50 [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: 01 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: 01 07 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: 01 07 00 36 1A 00 00 00 00 00 5E 0C C1 [05:46:28]RasterBufferAndPrint [05:46:28]line [05:46:28]line [05:46:28]line [05:46:28]line [05:46:28]line [05:46:28]written 0, free lines is 3171 [05:46:28]MH_Cut [05:46:28]Write to MH i2c: D1 01 00 3D 1A 01 29 [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: D1 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: D1 01 00 [05:46:28]MH_I2C_Read... [05:46:28]Read from MH i2c: D1 01 00 3D 1A 00 28 [05:46:28]Write to MH i2c: 01 00 00 3E 1A 58 [05:46:28]Write i2c OK [05:46:28]MH_I2C_Read... [05:46:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D6 0A 47 00 5C 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DE 02 00 F4 03 04 00 22 E6 16 67 B6 04 01 00 00 BB E1 BA E1 CA CD CD B3 [05:46:28]CommunicateWithHost err = 0 [05:46:28]CheckOFDResponse [05:46:28]1017 (14) - 77093643461234 [05:46:28]1041 (16) - 0000000000965340 [05:46:28]1040 (4) - 188044 [05:46:28]1012 (4) - 21.10.2024 23:39 [05:46:28]1206 (1) - 0 [05:46:28]OFD Sender: Remove packet 188044 [05:46:28]ProducePacketName [05:46:28]name=ofd_packets/00188044 [05:46:28]NVStorageDeleteData [05:46:29]OFD Sender: No OFD packet to send [05:46:29]*** Cut start [05:46:29]*** Partial cut [05:46:29]*** CUTSNS_PIN = 1 [05:46:29]*** CUTSNS_PIN = 0 [05:46:30]*** Brake cut motor [05:46:30]Read from MH i2c: 01 [05:46:30]MH_I2C_Read... [05:46:30]*** Stop cut motor [05:46:30]*** Cut end [05:46:30]Read from MH i2c: 01 07 00 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: 01 07 00 3E 1A 00 00 00 00 00 FF 0F 6D [05:46:30]process_action close_receipt done [05:46:30]requested_data is exist [05:46:30]produce_requested_data [05:46:30]requested_item fm.sn is exist - process it [05:46:30]wFMCommunicate request_size=4 [05:46:30]MH_SAM_APDU [05:46:30]CAPDU: 80 11 00 00 [05:46:30]Write to MH i2c: E2 08 00 3F 1A 80 11 00 00 00 00 00 00 D3 [05:46:30]Write i2c OK [05:46:30]MH_I2C_Read... [05:46:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:46:30]Read from MH i2c: E2 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: E2 17 00 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: E2 17 00 3F 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [05:46:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:46:30]wFMCommunicate OK [05:46:30]requested_item fd.num is exist - process it [05:46:30]SAM_PROTO_GetFieldsCounters [05:46:30]wFMCommunicate request_size=4 [05:46:30]MH_SAM_APDU [05:46:30]CAPDU: 80 13 00 00 [05:46:30]Write to MH i2c: E2 08 00 40 1A 80 13 00 00 00 00 00 00 D6 [05:46:30]Write i2c OK [05:46:30]MH_I2C_Read... [05:46:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:46:30]Read from MH i2c: E2 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: E2 62 00 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: E2 62 00 40 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C DE 02 00 0E 04 04 00 CD 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 F2 [05:46:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C DE 02 00 0E 04 04 00 CD 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 [05:46:30]wFMCommunicate OK [05:46:30]SAM_PROTO_GetFieldsCounters done [05:46:30]requested_item shift.num is exist - process it [05:46:30]requested_item shift.opened is exist - process it [05:46:30]req_shift_opened [05:46:30]FM_GetShiftState [05:46:30]SAM_PROTO_GetShiftState [05:46:30]wFMCommunicate request_size=4 [05:46:30]MH_SAM_APDU [05:46:30]CAPDU: 80 13 01 00 [05:46:30]Write to MH i2c: E2 08 00 41 1A 80 13 01 00 00 00 00 00 D8 [05:46:30]Write i2c OK [05:46:30]MH_I2C_Read... [05:46:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:46:30]Read from MH i2c: E2 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: E2 0E 00 [05:46:30]MH_I2C_Read... [05:46:30]Read from MH i2c: E2 0E 00 41 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CD [05:46:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:46:30]wFMCommunicate OK [05:46:30]SAM_PROTO_GetShiftState done [05:46:30]FM_GetShiftState done [05:46:30]req_shift_opened done [05:46:30]requested_item shift.open_date is exist - process it [05:46:30]req_shift_open_date [05:46:30]req_shift_open_date done [05:46:30]produce_requested_data done [05:46:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188044,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:46:30]process_action_free close_receipt [05:46:30]json_value_free [05:46:30]json_value_free done [05:46:30]process_json_proto returns [05:46:30]Send response to host [05:46:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188044,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:46:30]free response buf [05:46:30]execute_script done [05:46:30]execute_script returns [05:46:30]free content buf [05:46:30]Sock 9.Close socket [05:46:30]Sock 9.Thread stoped [05:46:34]OFD Sender: No OFD packet to send [05:46:39]OFD Sender: No OFD packet to send [05:46:44]OFD Sender: No OFD packet to send [05:46:49]OFD Sender: No OFD packet to send [05:46:54]OFD Sender: No OFD packet to send [05:46:59]OFD Sender: No OFD packet to send [05:47:04]OFD Sender: No OFD packet to send [05:47:09]OFD Sender: No OFD packet to send [05:47:14]OFD Sender: No OFD packet to send [05:47:19]OFD Sender: No OFD packet to send [05:47:24]OFD Sender: No OFD packet to send [05:47:29]OFD Sender: No OFD packet to send [05:47:34]OFD Sender: No OFD packet to send [05:47:39]OFD Sender: No OFD packet to send [05:47:44]OFD Sender: No OFD packet to send [05:47:49]OFD Sender: No OFD packet to send [05:47:54]OFD Sender: No OFD packet to send [05:47:59]OFD Sender: No OFD packet to send [05:48:04]OFD Sender: No OFD packet to send [05:48:09]OFD Sender: No OFD packet to send [05:48:14]OFD Sender: No OFD packet to send [05:48:19]OFD Sender: No OFD packet to send [05:48:24]OFD Sender: No OFD packet to send [05:48:29]OFD Sender: No OFD packet to send [05:48:34]OFD Sender: No OFD packet to send [05:48:39]OFD Sender: No OFD packet to send [05:48:44]OFD Sender: No OFD packet to send [05:48:49]OFD Sender: No OFD packet to send [05:48:54]OFD Sender: No OFD packet to send [05:48:59]OFD Sender: No OFD packet to send [05:49:04]OFD Sender: No OFD packet to send [05:49:08]accept exits with 10 [05:49:08]New connection [05:49:08]New thread 3067055460 created [05:49:08]Thread 3067198820 joined [05:49:08]Waiting for new connection... [05:49:08] Sock 10.Parse request [05:49:08]Sock 10.Check first char [05:49:08]Sock 10.First char is OK [05:49:08]request: POST /json_proto HTTP/1.0 [05:49:08]Method: POST [05:49:08]URL: /json_proto [05:49:08]Method is POST - this is cgi request [05:49:08]url: /json_proto [05:49:08]query_string will be loaded in cgi processing [05:49:08]execute_cgi json_proto POST (null) [05:49:08]execute_cgi path=json_proto method=POST [05:49:08]POST find Content-Length [05:49:08]Host: 172.17.42.131:8080 [05:49:08]Content-Length: 683 [05:49:08]Content-Type: application/json [05:49:08] [05:49:08]POST finish read [05:49:08]Found Content-Length = 683 [05:49:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [05:49:08]execute_script... [05:49: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)210096", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [05:49:08]POST & json_proto [05:49:08]process_json_proto [05:49:08]json parsed OK: [05:49:08]protocol is kg_v1.0 [05:49:08]action value=close_receipt [05:49:08]process_action close_receipt [05:49:08]cmd_close_receipt [05:49:08]MH_GetDate [05:49:08]Write to MH i2c: F0 00 00 42 1A 4B [05:49:08]Write i2c OK [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: F0 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: F0 09 00 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: F0 09 00 42 1A 00 D6 3C 17 67 A0 18 CA 66 CC [05:49:08]GetLastDocTimeStamp 1729575988 [05:49:08]current date 1729576150 [05:49:08]FM_GetShiftState [05:49:08]SAM_PROTO_GetShiftState [05:49:08]wFMCommunicate request_size=4 [05:49:08]MH_SAM_APDU [05:49:08]CAPDU: 80 13 01 00 [05:49:08]Write to MH i2c: E2 08 00 43 1A 80 13 01 00 00 00 00 00 DA [05:49:08]Write i2c OK [05:49:08]MH_I2C_Read... [05:49:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:08]Read from MH i2c: E2 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 0E 00 [05:49:08]MH_I2C_Read... [05:49:08]Read from MH i2c: E2 0E 00 43 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CF [05:49:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:49:08]wFMCommunicate OK [05:49:08]SAM_PROTO_GetShiftState done [05:49:08]FM_GetShiftState done [05:49:08]opened in 1729556094 [05:49:08]opened+sec_in_day 1729642494 [05:49:08]quantity*price = 70020 [05:49:08]sum+1 = 70021 [05:49:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 74 22.10.2024 05:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188045 ФПД: 146374265859872 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054910&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188045&fm=146374265859872&tin=02508201610067®Number=0000000000100030&sum=70000 [05:49:09]StoreToDocumentArchive [05:49:09]shift 461 fd 188045 [05:49:09]save to /storage/0461/doc_00188045 [05:49:09]save last doc name /storage/0461/doc_00188045 to /storage/kkm_last_doc_name [05:49:09]save OK [05:49:09]Clear old archive folders... [05:49:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:49:09]tlvbuf is B6F164A0 [05:49:09]SAM_PROTO_ClearQueue [05:49:09]wFMCommunicate request_size=4 [05:49:09]MH_SAM_APDU [05:49:09]CAPDU: 80 09 00 00 [05:49:09]Write to MH i2c: E2 08 00 50 1A 80 09 00 00 00 00 00 00 DC [05:49:09]Write i2c OK [05:49:09]MH_I2C_Read... [05:49:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:49:09]Read from MH i2c: E2 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 50 1A 00 90 00 DE [05:49:09]RAPDU: 90 00 [05:49:09]wFMCommunicate OK [05:49:09]SAM_PROTO_ClearQueue done [05:49:09]KKMCreateOFDPacket [05:49:09]OFDProtocolAddRootSTLVToBuf [05:49:09]FM_MakeSignedData [05:49:09]FM_MakeSignedData [05:49:09]SAM_PROTO_SignData [05:49:09]wFMCommunicate request_size=4 [05:49:09]MH_SAM_APDU [05:49:09]CAPDU: 80 0D 01 02 [05:49:09]Write to MH i2c: E2 08 00 51 1A 80 0D 01 02 00 00 00 00 E4 [05:49:09]Write i2c OK [05:49:09]MH_I2C_Read... [05:49:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:49:09]Read from MH i2c: E2 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 51 1A 00 90 00 DF [05:49:09]RAPDU: 90 00 [05:49:09]wFMCommunicate OK [05:49:09]wFMCommunicate request_size=255 [05:49:09]MH_SAM_APDU [05:49:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 4A 00 00 00 F4 03 04 00 D6 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DE 02 [05:49:09]Write to MH i2c: E2 02 01 52 1A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 4A 00 00 00 F4 03 04 00 D6 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DE 02 00 00 7C [05:49:09]Write i2c OK [05:49:09]MH_I2C_Read... [05:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:09]Read from MH i2c: E2 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 52 1A 00 90 00 E0 [05:49:09]RAPDU: 90 00 [05:49:09]wFMCommunicate OK [05:49:09]wFMCommunicate request_size=16 [05:49:09]MH_SAM_APDU [05:49:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 85 20 6A 1E EF 20 [05:49:09]Write to MH i2c: E2 13 00 53 1A 80 0D 02 02 0B 00 00 35 04 06 00 85 20 6A 1E EF 20 00 00 78 [05:49:09]Write i2c OK [05:49:09]MH_I2C_Read... [05:49:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:49:09]Read from MH i2c: E2 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 [05:49:09]MH_I2C_Read... [05:49:09]Read from MH i2c: E2 03 00 53 1A 00 90 00 E1 [05:49:09]RAPDU: 90 00 [05:49:09]wFMCommunicate OK [05:49:09]wFMCommunicate request_size=4 [05:49:09]MH_SAM_APDU [05:49:09]CAPDU: 80 0D 03 02 [05:49:09]Write to MH i2c: E2 08 00 54 1A 80 0D 03 02 00 00 00 00 E9 [05:49:09]Write i2c OK [05:49:09]MH_I2C_Read... [05:49:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:49:10]Read from MH i2c: E2 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: E2 0B 00 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: E2 0B 00 54 1A 00 1B DC 4D DD BA BA C4 5F 90 00 A2 [05:49:10]RAPDU: 1B DC 4D DD BA BA C4 5F 90 00 [05:49:10]wFMCommunicate OK [05:49:10]SAM_PROTO_SignData done [05:49:10]FM_MakeSignedData done [05:49:10]CreateOFDProtocolMessage [05:49:10]wFMCommunicate request_size=4 [05:49:10]MH_SAM_APDU [05:49:10]CAPDU: 80 11 00 00 [05:49:10]Write to MH i2c: E2 08 00 55 1A 80 11 00 00 00 00 00 00 E9 [05:49:10]Write i2c OK [05:49:10]MH_I2C_Read... [05:49:10]OFD Sender: No OFD packet to send [05:49:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:10]Read from MH i2c: E2 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: E2 17 00 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: E2 17 00 55 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [05:49:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:49:10]wFMCommunicate OK [05:49:10]CreateOFDProtocolMessage done [05:49:10]OFDSenderStorePacket 188045 [05:49:10]StoreOFDPacket docnum=188045 [05:49:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 31 6E 0D 01 0B 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 4A 00 00 00 F4 03 04 00 D6 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DE 02 00 35 04 06 00 85 20 6A 1E EF 20 1B DC 4D DD BA BA C4 5F [05:49:10]CheckFolder [05:49:10]dirname=/storage/ofd_packets [05:49:10]CheckFolder done [05:49:10]ProducePacketName [05:49:10]name=ofd_packets/00188045 [05:49:10]NVStorageSaveData ofd_packets/00188045 [05:49:10]File name is /storage/ofd_packets/00188045 [05:49:10]Write 307 bytes [05:49:10]NVStorageSaveData done [05:49:10]OFDSenderStorePacket done [05:49:10]KKMCreateOFDPacket done [05:49:10]NVStorageSaveData kkm_last_timestamp [05:49:10]File name is /storage/kkm_last_timestamp [05:49:10]Write 4 bytes [05:49:10]NVStorageSaveData done [05:49:10]ExternCall_PrintAddStr [05:49:10]wPrintStart [05:49:10]Write to MH i2c: 01 00 00 56 1A 70 [05:49:10]Write i2c OK [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: 01 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: 01 07 00 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: 01 07 00 56 1A 00 00 00 00 00 FF 0F 85 [05:49:10]RasterBufferAndPrint [05:49:10]line Счет N : (1)210096 [05:49:10]line ИНН: 02508201610067 [05:49:10]line Контрольно-Кассовый Чек [05:49:10]line ПРОДАЖА [05:49:10]line ТРК (МРК, ГНК) : 11 [05:49:10]line Товар: 2710194210 [05:49:10]line D-ENERGY ДТ-К-5 [05:49:10]line 9.070 * 77.20 [05:49:10]line = 700.20 [05:49:10]line НДС 12% НСП 1% [05:49:10]line > о реализуемом товаре [05:49:10]line ОКРУГЛЕНИЕ: -0.20 [05:49:10]line ИТОГО: 700.00 [05:49:10]line Внесено: 700.00 [05:49:10]line СДАЧА: 0.00 [05:49:10]line НСП 1% : 6.20 [05:49:10]line НДС 12% : 74.36 [05:49:10]line Наличными: 700.00 [05:49:10]line Безнал.: 0.00 [05:49:10]line Место: АЗС № 86 "Партнер Нефть" [05:49:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:49:10]line СНО: Общий режим [05:49:10]line Чек 74 22.10.2024 05:49 [05:49:10]line Смена: 461 ФФД: 1.0 [05:49:10]line ЗНМ: 0300000155 [05:49:10]line РНМ: 0000000000100030 [05:49:10]line Версия ККМ: 001 [05:49:10]line ФМ: 0000000000965340 [05:49:10]line ФД: 188045 [05:49:10]line ФПД: 146374265859872 [05:49:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T054910&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188045&fm=146374265859872&tin=02508201610067®Number=0000000000100030&sum=70000 [05:49:10]written 0, free lines is 4095 [05:49:10]OFD Sender: Processing packet 188045 [packets to send 1062, broken 1061] [05:49:10]ProducePacketName [05:49:10]name=ofd_packets/00188045 [05:49:10]OFD Sender: To server: pG, [05:49:10]CommunicateWithHost lk.salyk.kg:30040 [05:49:10]ConnectInit lk.salyk.kg [05:49:10]Write to MH i2c: 01 00 00 81 1A 9B [05:49:10]Write i2c OK [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: 01 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: 01 07 00 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: 01 07 00 81 1A 00 00 00 00 00 58 0C 06 [05:49:10]RasterBufferAndPrint [05:49:10]line [05:49:10]line [05:49:10]line [05:49:10]line [05:49:10]line [05:49:10]written 0, free lines is 3162 [05:49:10]MH_Cut [05:49:10]Write to MH i2c: D1 01 00 88 1A 01 74 [05:49:10]Write i2c OK [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: D1 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: D1 01 00 [05:49:10]MH_I2C_Read... [05:49:10]Read from MH i2c: D1 01 00 88 1A 00 73 [05:49:10]Write to MH i2c: 01 00 00 89 1A A3 [05:49:10]Write i2c OK [05:49:10]MH_I2C_Read... [05:49:11]*** Cut start [05:49:11]*** Partial cut [05:49:11]*** CUTSNS_PIN = 1 [05:49:11]*** CUTSNS_PIN = 0 [05:49:12]*** Brake cut motor [05:49:12]Read from MH i2c: 01 [05:49:12]MH_I2C_Read... [05:49:12]*** Stop cut motor [05:49:12]*** Cut end [05:49:12]Read from MH i2c: 01 07 00 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: 01 07 00 89 1A 00 00 00 00 00 FF 0F B8 [05:49:12]process_action close_receipt done [05:49:12]requested_data is exist [05:49:12]produce_requested_data [05:49:12]requested_item fm.sn is exist - process it [05:49:12]wFMCommunicate request_size=4 [05:49:12]MH_SAM_APDU [05:49:12]CAPDU: 80 11 00 00 [05:49:12]Write to MH i2c: E2 08 00 8A 1A 80 11 00 00 00 00 00 00 1E [05:49:12]Write i2c OK [05:49:12]MH_I2C_Read... [05:49:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:49:12]Read from MH i2c: E2 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 17 00 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 17 00 8A 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [05:49:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:49:12]wFMCommunicate OK [05:49:12]requested_item fd.num is exist - process it [05:49:12]SAM_PROTO_GetFieldsCounters [05:49:12]wFMCommunicate request_size=4 [05:49:12]MH_SAM_APDU [05:49:12]CAPDU: 80 13 00 00 [05:49:12]Write to MH i2c: E2 08 00 8B 1A 80 13 00 00 00 00 00 00 21 [05:49:12]Write i2c OK [05:49:12]MH_I2C_Read... [05:49:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:49:12]Read from MH i2c: E2 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 62 00 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 62 00 8B 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D DE 02 00 0E 04 04 00 CD 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 41 [05:49:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D DE 02 00 0E 04 04 00 CD 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 [05:49:12]wFMCommunicate OK [05:49:12]SAM_PROTO_GetFieldsCounters done [05:49:12]requested_item shift.num is exist - process it [05:49:12]requested_item shift.opened is exist - process it [05:49:12]req_shift_opened [05:49:12]FM_GetShiftState [05:49:12]SAM_PROTO_GetShiftState [05:49:12]wFMCommunicate request_size=4 [05:49:12]MH_SAM_APDU [05:49:12]CAPDU: 80 13 01 00 [05:49:12]Write to MH i2c: E2 08 00 8C 1A 80 13 01 00 00 00 00 00 23 [05:49:12]Write i2c OK [05:49:12]MH_I2C_Read... [05:49:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:49:12]Read from MH i2c: E2 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 0E 00 [05:49:12]MH_I2C_Read... [05:49:12]Read from MH i2c: E2 0E 00 8C 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 18 [05:49:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:49:12]wFMCommunicate OK [05:49:12]SAM_PROTO_GetShiftState done [05:49:12]FM_GetShiftState done [05:49:12]req_shift_opened done [05:49:12]requested_item shift.open_date is exist - process it [05:49:12]req_shift_open_date [05:49:12]req_shift_open_date done [05:49:12]produce_requested_data done [05:49:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188045,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:49:12]process_action_free close_receipt [05:49:12]json_value_free [05:49:12]json_value_free done [05:49:12]process_json_proto returns [05:49:12]Send response to host [05:49:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188045,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:49:12]free response buf [05:49:12]execute_script done [05:49:12]execute_script returns [05:49:12]free content buf [05:49:12]Sock 10.Close socket [05:49:12]Sock 10.Thread stoped [05:51:24]ConnectInit Can't connect to host [05:51:24]CommunicateWithHost connect error [05:51:24]CommunicateWithHost err = -1 [05:51:24]OFD Sender: Server communicate error [05:51:29]OFD Sender: Processing packet 188045 [packets to send 1062, broken 1061] [05:51:29]ProducePacketName [05:51:29]name=ofd_packets/00188045 [05:51:29]OFD Sender: To server: pG, [05:51:29]CommunicateWithHost lk.salyk.kg:30040 [05:51:29]ConnectInit lk.salyk.kg [05:51:29]Connected sock=9 [05:51:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 31 6E 0D 01 0B 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 4A 00 00 00 F4 03 04 00 D6 3C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DE 02 00 35 04 06 00 85 20 6A 1E EF 20 1B DC 4D DD BA BA C4 5F [05:51:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B 58 47 00 3D DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DE 02 00 F4 03 04 00 4F E7 16 67 B6 04 01 00 00 D6 1E 94 43 92 DE F1 07 [05:51:29]CommunicateWithHost err = 0 [05:51:29]CheckOFDResponse [05:51:29]1017 (14) - 77093643461234 [05:51:29]1041 (16) - 0000000000965340 [05:51:29]1040 (4) - 188045 [05:51:29]1012 (4) - 21.10.2024 23:44 [05:51:29]1206 (1) - 0 [05:51:29]OFD Sender: Remove packet 188045 [05:51:29]ProducePacketName [05:51:29]name=ofd_packets/00188045 [05:51:29]NVStorageDeleteData [05:51:30]OFD Sender: No OFD packet to send [05:51:35]OFD Sender: No OFD packet to send [05:51:40]OFD Sender: No OFD packet to send [05:51:45]OFD Sender: No OFD packet to send [05:51:50]OFD Sender: No OFD packet to send [05:51:55]OFD Sender: No OFD packet to send [05:52:00]OFD Sender: No OFD packet to send [05:52:05]OFD Sender: No OFD packet to send [05:52:10]OFD Sender: No OFD packet to send [05:52:15]OFD Sender: No OFD packet to send [05:52:20]OFD Sender: No OFD packet to send [05:52:25]OFD Sender: No OFD packet to send [05:52:30]OFD Sender: No OFD packet to send [05:52:35]OFD Sender: No OFD packet to send [05:52:40]OFD Sender: No OFD packet to send [05:52:45]OFD Sender: No OFD packet to send [05:52:50]OFD Sender: No OFD packet to send [05:52:55]OFD Sender: No OFD packet to send [05:53:00]OFD Sender: No OFD packet to send [05:53:05]OFD Sender: No OFD packet to send [05:53:10]OFD Sender: No OFD packet to send [05:53:15]OFD Sender: No OFD packet to send [05:53:20]OFD Sender: No OFD packet to send [05:53:25]OFD Sender: No OFD packet to send [05:53:30]OFD Sender: No OFD packet to send [05:53:35]OFD Sender: No OFD packet to send [05:53:40]OFD Sender: No OFD packet to send [05:53:45]OFD Sender: No OFD packet to send [05:53:50]OFD Sender: No OFD packet to send [05:53:55]OFD Sender: No OFD packet to send [05:54:00]OFD Sender: No OFD packet to send [05:54:06]OFD Sender: No OFD packet to send [05:54:11]OFD Sender: No OFD packet to send [05:54:16]OFD Sender: No OFD packet to send [05:54:21]OFD Sender: No OFD packet to send [05:54:26]OFD Sender: No OFD packet to send [05:54:31]OFD Sender: No OFD packet to send [05:54:36]OFD Sender: No OFD packet to send [05:54:41]OFD Sender: No OFD packet to send [05:54:46]OFD Sender: No OFD packet to send [05:54:51]OFD Sender: No OFD packet to send [05:54:56]OFD Sender: No OFD packet to send [05:55:01]OFD Sender: No OFD packet to send [05:55:06]OFD Sender: No OFD packet to send [05:55:11]OFD Sender: No OFD packet to send [05:55:16]OFD Sender: No OFD packet to send [05:55:21]OFD Sender: No OFD packet to send [05:55:26]OFD Sender: No OFD packet to send [05:55:31]OFD Sender: No OFD packet to send [05:55:36]OFD Sender: No OFD packet to send [05:55:41]OFD Sender: No OFD packet to send [05:55:46]OFD Sender: No OFD packet to send [05:55:51]OFD Sender: No OFD packet to send [05:55:56]OFD Sender: No OFD packet to send [05:56:01]OFD Sender: No OFD packet to send [05:56:06]OFD Sender: No OFD packet to send [05:56:07]accept exits with 8 [05:56:07]New connection [05:56:07]New thread 3067198820 created [05:56:07]Thread 3067055460 joined [05:56:07]Waiting for new connection... [05:56:07] Sock 8.Parse request [05:56:07]Sock 8.Check first char [05:56:07]Sock 8.First char is OK [05:56:07]request: POST /json_proto HTTP/1.0 [05:56:07]Method: POST [05:56:07]URL: /json_proto [05:56:07]Method is POST - this is cgi request [05:56:07]url: /json_proto [05:56:07]query_string will be loaded in cgi processing [05:56:07]execute_cgi json_proto POST (null) [05:56:07]execute_cgi path=json_proto method=POST [05:56:07]POST find Content-Length [05:56:07]Host: 172.17.42.131:8080 [05:56:07]Content-Length: 688 [05:56:07]Content-Type: application/json [05:56:07] [05:56:07]POST finish read [05:56:07]Found Content-Length = 688 [05:56:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [05:56:07]execute_script... [05:56: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)210097", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [05:56:07]POST & json_proto [05:56:07]process_json_proto [05:56:07]json parsed OK: [05:56:07]protocol is kg_v1.0 [05:56:07]action value=close_receipt [05:56:07]process_action close_receipt [05:56:07]cmd_close_receipt [05:56:07]MH_GetDate [05:56:07]Write to MH i2c: F0 00 00 8D 1A 96 [05:56:07]Write i2c OK [05:56:07]MH_I2C_Read... [05:56:07]Read from MH i2c: F0 [05:56:07]MH_I2C_Read... [05:56:07]Read from MH i2c: F0 09 00 [05:56:07]MH_I2C_Read... [05:56:07]Read from MH i2c: F0 09 00 8D 1A 00 79 3E 17 67 A0 18 CA 66 BC [05:56:07]GetLastDocTimeStamp 1729576150 [05:56:07]current date 1729576569 [05:56:07]FM_GetShiftState [05:56:07]SAM_PROTO_GetShiftState [05:56:07]wFMCommunicate request_size=4 [05:56:07]MH_SAM_APDU [05:56:07]CAPDU: 80 13 01 00 [05:56:07]Write to MH i2c: E2 08 00 8E 1A 80 13 01 00 00 00 00 00 25 [05:56:07]Write i2c OK [05:56:07]MH_I2C_Read... [05:56:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:07]Read from MH i2c: E2 [05:56:07]MH_I2C_Read... [05:56:07]Read from MH i2c: E2 0E 00 [05:56:07]MH_I2C_Read... [05:56:07]Read from MH i2c: E2 0E 00 8E 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [05:56:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:56:07]wFMCommunicate OK [05:56:07]SAM_PROTO_GetShiftState done [05:56:07]FM_GetShiftState done [05:56:07]opened in 1729556094 [05:56:07]opened+sec_in_day 1729642494 [05:56:07]quantity*price = 200025 [05:56:07]sum+1 = 200026 [05:56:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 75 22.10.2024 05:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188046 ФПД: 25039273475077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055609&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188046&fm=25039273475077&tin=02508201610067®Number=0000000000100030&sum=200000 [05:56:09]StoreToDocumentArchive [05:56:09]shift 461 fd 188046 [05:56:09]save to /storage/0461/doc_00188046 [05:56:09]save last doc name /storage/0461/doc_00188046 to /storage/kkm_last_doc_name [05:56:09]save OK [05:56:09]Clear old archive folders... [05:56:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [05:56:09]tlvbuf is 01BE0150 [05:56:09]SAM_PROTO_ClearQueue [05:56:09]wFMCommunicate request_size=4 [05:56:09]MH_SAM_APDU [05:56:09]CAPDU: 80 09 00 00 [05:56:09]Write to MH i2c: E2 08 00 9B 1A 80 09 00 00 00 00 00 00 27 [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:56:09]Read from MH i2c: E2 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 9B 1A 00 90 00 29 [05:56:09]RAPDU: 90 00 [05:56:09]wFMCommunicate OK [05:56:09]SAM_PROTO_ClearQueue done [05:56:09]KKMCreateOFDPacket [05:56:09]OFDProtocolAddRootSTLVToBuf [05:56:09]FM_MakeSignedData [05:56:09]FM_MakeSignedData [05:56:09]SAM_PROTO_SignData [05:56:09]wFMCommunicate request_size=4 [05:56:09]MH_SAM_APDU [05:56:09]CAPDU: 80 0D 01 02 [05:56:09]Write to MH i2c: E2 08 00 9C 1A 80 0D 01 02 00 00 00 00 2F [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:56:09]Read from MH i2c: E2 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 9C 1A 00 90 00 2A [05:56:09]RAPDU: 90 00 [05:56:09]wFMCommunicate OK [05:56:09]wFMCommunicate request_size=255 [05:56:09]MH_SAM_APDU [05:56:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4B 00 00 00 F4 03 04 00 79 3E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DE 02 [05:56:09]Write to MH i2c: E2 02 01 9D 1A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4B 00 00 00 F4 03 04 00 79 3E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DE 02 00 00 8C [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:09]Read from MH i2c: E2 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 9D 1A 00 90 00 2B [05:56:09]RAPDU: 90 00 [05:56:09]wFMCommunicate OK [05:56:09]wFMCommunicate request_size=16 [05:56:09]MH_SAM_APDU [05:56:09]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 16 C5 E9 00 3C 05 [05:56:09]Write to MH i2c: E2 13 00 9E 1A 80 0D 02 02 0B 00 00 35 04 06 00 16 C5 E9 00 3C 05 00 00 8C [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:09]Read from MH i2c: E2 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 03 00 9E 1A 00 90 00 2C [05:56:09]RAPDU: 90 00 [05:56:09]wFMCommunicate OK [05:56:09]wFMCommunicate request_size=4 [05:56:09]MH_SAM_APDU [05:56:09]CAPDU: 80 0D 03 02 [05:56:09]Write to MH i2c: E2 08 00 9F 1A 80 0D 03 02 00 00 00 00 34 [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:56:09]Read from MH i2c: E2 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 0B 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 0B 00 9F 1A 00 6E 1A 3C D9 2B E9 8A D0 90 00 40 [05:56:09]RAPDU: 6E 1A 3C D9 2B E9 8A D0 90 00 [05:56:09]wFMCommunicate OK [05:56:09]SAM_PROTO_SignData done [05:56:09]FM_MakeSignedData done [05:56:09]CreateOFDProtocolMessage [05:56:09]wFMCommunicate request_size=4 [05:56:09]MH_SAM_APDU [05:56:09]CAPDU: 80 11 00 00 [05:56:09]Write to MH i2c: E2 08 00 A0 1A 80 11 00 00 00 00 00 00 34 [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:09]Read from MH i2c: E2 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 17 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: E2 17 00 A0 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [05:56:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:56:09]wFMCommunicate OK [05:56:09]CreateOFDProtocolMessage done [05:56:09]OFDSenderStorePacket 188046 [05:56:09]StoreOFDPacket docnum=188046 [05:56:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 22 7E 0D 01 A2 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4B 00 00 00 F4 03 04 00 79 3E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DE 02 00 35 04 06 00 16 C5 E9 00 3C 05 6E 1A 3C D9 2B E9 8A D0 [05:56:09]CheckFolder [05:56:09]dirname=/storage/ofd_packets [05:56:09]CheckFolder done [05:56:09]ProducePacketName [05:56:09]name=ofd_packets/00188046 [05:56:09]NVStorageSaveData ofd_packets/00188046 [05:56:09]File name is /storage/ofd_packets/00188046 [05:56:09]Write 307 bytes [05:56:09]NVStorageSaveData done [05:56:09]OFDSenderStorePacket done [05:56:09]KKMCreateOFDPacket done [05:56:09]NVStorageSaveData kkm_last_timestamp [05:56:09]File name is /storage/kkm_last_timestamp [05:56:09]Write 4 bytes [05:56:09]NVStorageSaveData done [05:56:09]ExternCall_PrintAddStr [05:56:09]wPrintStart [05:56:09]Write to MH i2c: 01 00 00 A1 1A BB [05:56:09]Write i2c OK [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: 01 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: 01 07 00 [05:56:09]MH_I2C_Read... [05:56:09]Read from MH i2c: 01 07 00 A1 1A 00 00 00 00 00 FF 0F D0 [05:56:09]RasterBufferAndPrint [05:56:09]line Счет N : (1)210097 [05:56:09]line ИНН: 02508201610067 [05:56:09]line Контрольно-Кассовый Чек [05:56:09]line ПРОДАЖА [05:56:09]line ТРК (МРК, ГНК) : 31 [05:56:09]line Товар: 2710194210 [05:56:09]line D-ENERGY ДТ-К-5 [05:56:09]line 25.910 * 77.20 [05:56:09]line = 2000.25 [05:56:09]line НДС 12% НСП 1% [05:56:09]line > о реализуемом товаре [05:56:09]line ОКРУГЛЕНИЕ: -0.25 [05:56:09]line ИТОГО: 2000.00 [05:56:09]line Внесено: 2000.00 [05:56:09]line СДАЧА: 0.00 [05:56:09]line НСП 1% : 17.70 [05:56:09]line НДС 12% : 212.42 [05:56:09]line Наличными: 2000.00 [05:56:09]line Безнал.: 0.00 [05:56:09]line Место: АЗС № 86 "Партнер Нефть" [05:56:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [05:56:09]line СНО: Общий режим [05:56:09]line Чек 75 22.10.2024 05:56 [05:56:09]line Смена: 461 ФФД: 1.0 [05:56:09]line ЗНМ: 0300000155 [05:56:09]line РНМ: 0000000000100030 [05:56:09]line Версия ККМ: 001 [05:56:09]line ФМ: 0000000000965340 [05:56:09]line ФД: 188046 [05:56:09]line ФПД: 25039273475077 [05:56:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T055609&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188046&fm=25039273475077&tin=02508201610067®Number=0000000000100030&sum=200000 [05:56:09]written 0, free lines is 4095 [05:56:09]OFD Sender: Processing packet 188046 [packets to send 1062, broken 1061] [05:56:09]ProducePacketName [05:56:09]name=ofd_packets/00188046 [05:56:09]OFD Sender: To server: pG, [05:56:09]CommunicateWithHost lk.salyk.kg:30040 [05:56:09]ConnectInit lk.salyk.kg [05:56:09]Connected sock=10 [05:56:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 22 7E 0D 01 A2 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4B 00 00 00 F4 03 04 00 79 3E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DE 02 00 35 04 06 00 16 C5 E9 00 3C 05 6E 1A 3C D9 2B E9 8A D0 [05:56:10]Write to MH i2c: 01 00 00 CC 1A E6 [05:56:10]Write i2c OK [05:56:10]MH_I2C_Read... [05:56:10]Read from MH i2c: 01 [05:56:10]MH_I2C_Read... [05:56:10]Read from MH i2c: 01 07 00 [05:56:10]MH_I2C_Read... [05:56:10]Read from MH i2c: 01 07 00 CC 1A 00 00 00 00 00 58 0C 51 [05:56:10]RasterBufferAndPrint [05:56:10]line [05:56:10]line [05:56:10]line [05:56:10]line [05:56:10]line [05:56:10]written 0, free lines is 3164 [05:56:10]MH_Cut [05:56:10]Write to MH i2c: D1 01 00 D3 1A 01 BF [05:56:10]Write i2c OK [05:56:10]MH_I2C_Read... [05:56:10]Read from MH i2c: D1 [05:56:10]MH_I2C_Read... [05:56:10]Read from MH i2c: D1 01 00 [05:56:10]MH_I2C_Read... [05:56:10]Read from MH i2c: D1 01 00 D3 1A 00 BE [05:56:10]Write to MH i2c: 01 00 00 D4 1A EE [05:56:10]Write i2c OK [05:56:10]MH_I2C_Read... [05:56:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6B 84 47 00 45 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DE 02 00 F4 03 04 00 67 E8 16 67 B6 04 01 00 00 17 CA 3D D9 02 21 04 AD [05:56:10]CommunicateWithHost err = 0 [05:56:10]CheckOFDResponse [05:56:10]1017 (14) - 77093643461234 [05:56:10]1041 (16) - 0000000000965340 [05:56:10]1040 (4) - 188046 [05:56:10]1012 (4) - 21.10.2024 23:48 [05:56:10]1206 (1) - 0 [05:56:10]OFD Sender: Remove packet 188046 [05:56:10]ProducePacketName [05:56:10]name=ofd_packets/00188046 [05:56:10]NVStorageDeleteData [05:56:10]OFD Sender: No OFD packet to send [05:56:11]*** Cut start [05:56:11]*** Partial cut [05:56:11]*** CUTSNS_PIN = 1 [05:56:11]*** CUTSNS_PIN = 0 [05:56:11]*** Brake cut motor [05:56:12]Read from MH i2c: 01 [05:56:12]MH_I2C_Read... [05:56:12]*** Stop cut motor [05:56:12]*** Cut end [05:56:12]Read from MH i2c: 01 07 00 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: 01 07 00 D4 1A 00 00 00 00 00 FF 0F 03 [05:56:12]process_action close_receipt done [05:56:12]requested_data is exist [05:56:12]produce_requested_data [05:56:12]requested_item fm.sn is exist - process it [05:56:12]wFMCommunicate request_size=4 [05:56:12]MH_SAM_APDU [05:56:12]CAPDU: 80 11 00 00 [05:56:12]Write to MH i2c: E2 08 00 D5 1A 80 11 00 00 00 00 00 00 69 [05:56:12]Write i2c OK [05:56:12]MH_I2C_Read... [05:56:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:12]Read from MH i2c: E2 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: E2 17 00 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: E2 17 00 D5 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [05:56:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [05:56:12]wFMCommunicate OK [05:56:12]requested_item fd.num is exist - process it [05:56:12]SAM_PROTO_GetFieldsCounters [05:56:12]wFMCommunicate request_size=4 [05:56:12]MH_SAM_APDU [05:56:12]CAPDU: 80 13 00 00 [05:56:12]Write to MH i2c: E2 08 00 D6 1A 80 13 00 00 00 00 00 00 6C [05:56:12]Write i2c OK [05:56:12]MH_I2C_Read... [05:56:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:56:12]Read from MH i2c: E2 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: E2 62 00 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: E2 62 00 D6 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E DE 02 00 0E 04 04 00 CD 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 90 [05:56:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E DE 02 00 0E 04 04 00 CD 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 [05:56:12]wFMCommunicate OK [05:56:12]SAM_PROTO_GetFieldsCounters done [05:56:12]requested_item shift.num is exist - process it [05:56:12]requested_item shift.opened is exist - process it [05:56:12]req_shift_opened [05:56:12]FM_GetShiftState [05:56:12]SAM_PROTO_GetShiftState [05:56:12]wFMCommunicate request_size=4 [05:56:12]MH_SAM_APDU [05:56:12]CAPDU: 80 13 01 00 [05:56:12]Write to MH i2c: E2 08 00 D7 1A 80 13 01 00 00 00 00 00 6E [05:56:12]Write i2c OK [05:56:12]MH_I2C_Read... [05:56:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:12]Read from MH i2c: E2 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: E2 0E 00 [05:56:12]MH_I2C_Read... [05:56:12]Read from MH i2c: E2 0E 00 D7 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 63 [05:56:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [05:56:12]wFMCommunicate OK [05:56:12]SAM_PROTO_GetShiftState done [05:56:12]FM_GetShiftState done [05:56:12]req_shift_opened done [05:56:12]requested_item shift.open_date is exist - process it [05:56:12]req_shift_open_date [05:56:12]req_shift_open_date done [05:56:12]produce_requested_data done [05:56:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188046,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [05:56:12]process_action_free close_receipt [05:56:12]json_value_free [05:56:12]json_value_free done [05:56:12]process_json_proto returns [05:56:12]Send response to host [05:56:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188046,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [05:56:12]free response buf [05:56:12]execute_script done [05:56:12]execute_script returns [05:56:12]free content buf [05:56:12]Sock 8.Close socket [05:56:12]Sock 8.Thread stoped [05:56:15]OFD Sender: No OFD packet to send [05:56:20]OFD Sender: No OFD packet to send [05:56:25]OFD Sender: No OFD packet to send [05:56:30]OFD Sender: No OFD packet to send [05:56:35]OFD Sender: No OFD packet to send [05:56:40]OFD Sender: No OFD packet to send [05:56:45]OFD Sender: No OFD packet to send [05:56:50]OFD Sender: No OFD packet to send [05:56:55]OFD Sender: No OFD packet to send [05:57:00]OFD Sender: No OFD packet to send [05:57:05]OFD Sender: No OFD packet to send [05:57:10]OFD Sender: No OFD packet to send [05:57:15]OFD Sender: No OFD packet to send [05:57:21]OFD Sender: No OFD packet to send [05:57:26]OFD Sender: No OFD packet to send [05:57:31]OFD Sender: No OFD packet to send [05:57:36]OFD Sender: No OFD packet to send [05:57:41]OFD Sender: No OFD packet to send [05:57:46]OFD Sender: No OFD packet to send [05:57:51]OFD Sender: No OFD packet to send [05:57:56]OFD Sender: No OFD packet to send [05:58:01]OFD Sender: No OFD packet to send [05:58:06]OFD Sender: No OFD packet to send [05:58:11]OFD Sender: No OFD packet to send [05:58:16]OFD Sender: No OFD packet to send [05:58:21]OFD Sender: No OFD packet to send [05:58:26]OFD Sender: No OFD packet to send [05:58:31]OFD Sender: No OFD packet to send [05:58:36]OFD Sender: No OFD packet to send [05:58:41]OFD Sender: No OFD packet to send [05:58:46]OFD Sender: No OFD packet to send [05:58:51]OFD Sender: No OFD packet to send [05:58:56]OFD Sender: No OFD packet to send [05:59:01]OFD Sender: No OFD packet to send [05:59:06]OFD Sender: No OFD packet to send [05:59:11]OFD Sender: No OFD packet to send [05:59:16]OFD Sender: No OFD packet to send [05:59:21]OFD Sender: No OFD packet to send [05:59:26]OFD Sender: No OFD packet to send [05:59:31]OFD Sender: No OFD packet to send [05:59:36]OFD Sender: No OFD packet to send [05:59:41]OFD Sender: No OFD packet to send [05:59:46]OFD Sender: No OFD packet to send [05:59:51]OFD Sender: No OFD packet to send [05:59:56]OFD Sender: No OFD packet to send [06:00:01]OFD Sender: No OFD packet to send [06:00:06]OFD Sender: No OFD packet to send [06:00:11]OFD Sender: No OFD packet to send [06:00:16]OFD Sender: No OFD packet to send [06:00:21]OFD Sender: No OFD packet to send [06:00:26]OFD Sender: No OFD packet to send [06:00:31]OFD Sender: No OFD packet to send [06:00:36]OFD Sender: No OFD packet to send [06:00:41]OFD Sender: No OFD packet to send [06:00:46]OFD Sender: No OFD packet to send [06:00:51]OFD Sender: No OFD packet to send [06:00:56]OFD Sender: No OFD packet to send [06:01:01]OFD Sender: No OFD packet to send [06:01:07]OFD Sender: No OFD packet to send [06:01:12]OFD Sender: No OFD packet to send [06:01:17]OFD Sender: No OFD packet to send [06:01:22]OFD Sender: No OFD packet to send [06:01:27]OFD Sender: No OFD packet to send [06:01:32]OFD Sender: No OFD packet to send [06:01:37]OFD Sender: No OFD packet to send [06:01:42]OFD Sender: No OFD packet to send [06:01:47]OFD Sender: No OFD packet to send [06:01:52]OFD Sender: No OFD packet to send [06:01:57]OFD Sender: No OFD packet to send [06:02:02]OFD Sender: No OFD packet to send [06:02:07]OFD Sender: No OFD packet to send [06:02:12]OFD Sender: No OFD packet to send [06:02:17]OFD Sender: No OFD packet to send [06:02:22]OFD Sender: No OFD packet to send [06:02:27]OFD Sender: No OFD packet to send [06:02:32]OFD Sender: No OFD packet to send [06:02:37]OFD Sender: No OFD packet to send [06:02:42]OFD Sender: No OFD packet to send [06:02:47]OFD Sender: No OFD packet to send [06:02:52]OFD Sender: No OFD packet to send [06:02:57]OFD Sender: No OFD packet to send [06:03:02]OFD Sender: No OFD packet to send [06:03:07]OFD Sender: No OFD packet to send [06:03:10]accept exits with 9 [06:03:10]New connection [06:03:10]New thread 3067055460 created [06:03:10]Thread 3067198820 joined [06:03:10]Waiting for new connection... [06:03:10] Sock 9.Parse request [06:03:10]Sock 9.Check first char [06:03:10]Sock 9.First char is OK [06:03:10]request: POST /json_proto HTTP/1.0 [06:03:10]Method: POST [06:03:10]URL: /json_proto [06:03:10]Method is POST - this is cgi request [06:03:10]url: /json_proto [06:03:10]query_string will be loaded in cgi processing [06:03:10]execute_cgi json_proto POST (null) [06:03:10]execute_cgi path=json_proto method=POST [06:03:10]POST find Content-Length [06:03:10]Host: 172.17.42.131:8080 [06:03:10]Content-Length: 682 [06:03:10]Content-Type: application/json [06:03:10] [06:03:10]POST finish read [06:03:10]Found Content-Length = 682 [06:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210099", "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" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:10]execute_script... [06:03:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210099", "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" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:03:10]POST & json_proto [06:03:10]process_json_proto [06:03:10]json parsed OK: [06:03:10]protocol is kg_v1.0 [06:03:10]action value=close_receipt [06:03:10]process_action close_receipt [06:03:10]cmd_close_receipt [06:03:10]MH_GetDate [06:03:10]Write to MH i2c: F0 00 00 D8 1A E1 [06:03:10]Write i2c OK [06:03:10]MH_I2C_Read... [06:03:10]Read from MH i2c: F0 [06:03:10]MH_I2C_Read... [06:03:10]Read from MH i2c: F0 09 00 [06:03:10]MH_I2C_Read... [06:03:10]Read from MH i2c: F0 09 00 D8 1A 00 21 40 17 67 A0 18 CA 66 B1 [06:03:10]GetLastDocTimeStamp 1729576569 [06:03:10]current date 1729576993 [06:03:10]FM_GetShiftState [06:03:10]SAM_PROTO_GetShiftState [06:03:10]wFMCommunicate request_size=4 [06:03:10]MH_SAM_APDU [06:03:10]CAPDU: 80 13 01 00 [06:03:10]Write to MH i2c: E2 08 00 D9 1A 80 13 01 00 00 00 00 00 70 [06:03:10]Write i2c OK [06:03:10]MH_I2C_Read... [06:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:10]Read from MH i2c: E2 [06:03:10]MH_I2C_Read... [06:03:10]Read from MH i2c: E2 0E 00 [06:03:10]MH_I2C_Read... [06:03:10]Read from MH i2c: E2 0E 00 D9 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [06:03:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:03:10]wFMCommunicate OK [06:03:10]SAM_PROTO_GetShiftState done [06:03:10]FM_GetShiftState done [06:03:10]opened in 1729556094 [06:03:10]opened+sec_in_day 1729642494 [06:03:10]quantity*price = 300064 [06:03:10]sum+1 = 300066 [06:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 76 22.10.2024 06:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188047 ФПД: 84922287654597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T060313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188047&fm=84922287654597&tin=02508201610067®Number=0000000000100030&sum=300000 [06:03:12]StoreToDocumentArchive [06:03:12]shift 461 fd 188047 [06:03:12]save to /storage/0461/doc_00188047 [06:03:12]save last doc name /storage/0461/doc_00188047 to /storage/kkm_last_doc_name [06:03:12]save OK [06:03:12]Clear old archive folders... [06:03:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:03:12]tlvbuf is 01BA0120 [06:03:12]SAM_PROTO_ClearQueue [06:03:12]wFMCommunicate request_size=4 [06:03:12]MH_SAM_APDU [06:03:12]CAPDU: 80 09 00 00 [06:03:12]Write to MH i2c: E2 08 00 E6 1A 80 09 00 00 00 00 00 00 72 [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:03:12]Read from MH i2c: E2 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 E6 1A 00 90 00 74 [06:03:12]RAPDU: 90 00 [06:03:12]wFMCommunicate OK [06:03:12]SAM_PROTO_ClearQueue done [06:03:12]KKMCreateOFDPacket [06:03:12]OFDProtocolAddRootSTLVToBuf [06:03:12]FM_MakeSignedData [06:03:12]FM_MakeSignedData [06:03:12]SAM_PROTO_SignData [06:03:12]wFMCommunicate request_size=4 [06:03:12]MH_SAM_APDU [06:03:12]CAPDU: 80 0D 01 02 [06:03:12]Write to MH i2c: E2 08 00 E7 1A 80 0D 01 02 00 00 00 00 7A [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:03:12]Read from MH i2c: E2 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 E7 1A 00 90 00 75 [06:03:12]RAPDU: 90 00 [06:03:12]wFMCommunicate OK [06:03:12]wFMCommunicate request_size=255 [06:03:12]MH_SAM_APDU [06:03:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 21 40 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DE 02 00 35 04 06 00 4D [06:03:12]Write to MH i2c: E2 02 01 E8 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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 21 40 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DE 02 00 35 04 06 00 4D 00 00 D3 [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:12]Read from MH i2c: E2 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 E8 1A 00 90 00 76 [06:03:12]RAPDU: 90 00 [06:03:12]wFMCommunicate OK [06:03:12]wFMCommunicate request_size=10 [06:03:12]MH_SAM_APDU [06:03:12]CAPDU: 80 0D 02 02 05 3C 82 CA 06 C5 [06:03:12]Write to MH i2c: E2 0D 00 E9 1A 80 0D 02 02 05 00 3C 82 CA 06 C5 00 00 DA [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:03:12]Read from MH i2c: E2 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 03 00 E9 1A 00 90 00 77 [06:03:12]RAPDU: 90 00 [06:03:12]wFMCommunicate OK [06:03:12]wFMCommunicate request_size=4 [06:03:12]MH_SAM_APDU [06:03:12]CAPDU: 80 0D 03 02 [06:03:12]Write to MH i2c: E2 08 00 EA 1A 80 0D 03 02 00 00 00 00 7F [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:03:12]OFD Sender: No OFD packet to send [06:03:12]Read from MH i2c: E2 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 0B 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 0B 00 EA 1A 00 BA 77 FC 64 EB 8E F9 F4 90 00 77 [06:03:12]RAPDU: BA 77 FC 64 EB 8E F9 F4 90 00 [06:03:12]wFMCommunicate OK [06:03:12]SAM_PROTO_SignData done [06:03:12]FM_MakeSignedData done [06:03:12]CreateOFDProtocolMessage [06:03:12]wFMCommunicate request_size=4 [06:03:12]MH_SAM_APDU [06:03:12]CAPDU: 80 11 00 00 [06:03:12]Write to MH i2c: E2 08 00 EB 1A 80 11 00 00 00 00 00 00 7F [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:12]Read from MH i2c: E2 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 17 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: E2 17 00 EB 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [06:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:03:12]wFMCommunicate OK [06:03:12]CreateOFDProtocolMessage done [06:03:12]OFDSenderStorePacket 188047 [06:03:12]StoreOFDPacket docnum=188047 [06:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 9A 07 01 F7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 21 40 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DE 02 00 35 04 06 00 4D 3C 82 CA 06 C5 BA 77 FC 64 EB 8E F9 F4 [06:03:12]CheckFolder [06:03:12]dirname=/storage/ofd_packets [06:03:12]CheckFolder done [06:03:12]ProducePacketName [06:03:12]name=ofd_packets/00188047 [06:03:12]NVStorageSaveData ofd_packets/00188047 [06:03:12]File name is /storage/ofd_packets/00188047 [06:03:12]Write 301 bytes [06:03:12]NVStorageSaveData done [06:03:12]OFDSenderStorePacket done [06:03:12]KKMCreateOFDPacket done [06:03:12]NVStorageSaveData kkm_last_timestamp [06:03:12]File name is /storage/kkm_last_timestamp [06:03:12]Write 4 bytes [06:03:12]NVStorageSaveData done [06:03:12]ExternCall_PrintAddStr [06:03:12]wPrintStart [06:03:12]Write to MH i2c: 01 00 00 EC 1A 06 [06:03:12]Write i2c OK [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: 01 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: 01 07 00 [06:03:12]MH_I2C_Read... [06:03:12]Read from MH i2c: 01 07 00 EC 1A 00 00 00 00 00 FF 0F 1B [06:03:12]RasterBufferAndPrint [06:03:12]line Счет N : (1)210099 [06:03:12]line ИНН: 02508201610067 [06:03:12]line Контрольно-Кассовый Чек [06:03:12]line ПРОДАЖА [06:03:12]line ТРК (МРК, ГНК) : 33 [06:03:12]line Товар: 2710124500 [06:03:12]line Аи-95-К-3 [06:03:12]line 40.440 * 74.20 [06:03:12]line = 3000.65 [06:03:12]line НДС 12% НСП 1% [06:03:12]line > о реализуемом товаре [06:03:12]line ОКРУГЛЕНИЕ: -0.65 [06:03:12]line ИТОГО: 3000.00 [06:03:12]line Внесено: 3000.00 [06:03:12]line СДАЧА: 0.00 [06:03:12]line НСП 1% : 26.55 [06:03:12]line НДС 12% : 318.65 [06:03:12]line Наличными: 3000.00 [06:03:12]line Безнал.: 0.00 [06:03:12]line Место: АЗС № 86 "Партнер Нефть" [06:03:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:03:12]line СНО: Общий режим [06:03:12]line Чек 76 22.10.2024 06:03 [06:03:12]line Смена: 461 ФФД: 1.0 [06:03:12]line ЗНМ: 0300000155 [06:03:12]line РНМ: 0000000000100030 [06:03:12]line Версия ККМ: 001 [06:03:12]line ФМ: 0000000000965340 [06:03:12]line ФД: 188047 [06:03:12]line ФПД: 84922287654597 [06:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T060313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188047&fm=84922287654597&tin=02508201610067®Number=0000000000100030&sum=300000 [06:03:12]written 0, free lines is 4095 [06:03:12]OFD Sender: Processing packet 188047 [packets to send 1062, broken 1061] [06:03:12]ProducePacketName [06:03:12]name=ofd_packets/00188047 [06:03:12]OFD Sender: To server: pG, [06:03:12]CommunicateWithHost lk.salyk.kg:30040 [06:03:12]ConnectInit lk.salyk.kg [06:03:12]Connected sock=10 [06:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 9A 07 01 F7 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 21 40 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DE 02 00 35 04 06 00 4D 3C 82 CA 06 C5 BA 77 FC 64 EB 8E F9 F4 [06:03:13]Write to MH i2c: 01 00 00 17 1B 32 [06:03:13]Write i2c OK [06:03:13]MH_I2C_Read... [06:03:13]Read from MH i2c: 01 [06:03:13]MH_I2C_Read... [06:03:13]Read from MH i2c: 01 07 00 [06:03:13]MH_I2C_Read... [06:03:13]Read from MH i2c: 01 07 00 17 1B 00 00 00 00 00 59 0C 9E [06:03:13]RasterBufferAndPrint [06:03:13]line [06:03:13]line [06:03:13]line [06:03:13]line [06:03:13]line [06:03:13]written 0, free lines is 3166 [06:03:13]MH_Cut [06:03:13]Write to MH i2c: D1 01 00 1E 1B 01 0B [06:03:13]Write i2c OK [06:03:13]MH_I2C_Read... [06:03:13]Read from MH i2c: D1 [06:03:13]MH_I2C_Read... [06:03:13]Read from MH i2c: D1 01 00 [06:03:13]MH_I2C_Read... [06:03:13]Read from MH i2c: D1 01 00 1E 1B 00 0A [06:03:13]Write to MH i2c: 01 00 00 1F 1B 3A [06:03:13]Write i2c OK [06:03:13]MH_I2C_Read... [06:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 26 33 47 00 31 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DE 02 00 F4 03 04 00 0E EA 16 67 B6 04 01 00 00 94 79 1A 93 B0 48 79 FE [06:03:13]CommunicateWithHost err = 0 [06:03:13]CheckOFDResponse [06:03:13]1017 (14) - 77093643461234 [06:03:13]1041 (16) - 0000000000965340 [06:03:13]1040 (4) - 188047 [06:03:13]1012 (4) - 21.10.2024 23:55 [06:03:13]1206 (1) - 0 [06:03:13]OFD Sender: Remove packet 188047 [06:03:13]ProducePacketName [06:03:13]name=ofd_packets/00188047 [06:03:13]NVStorageDeleteData [06:03:13]OFD Sender: No OFD packet to send [06:03:14]*** Cut start [06:03:14]*** Partial cut [06:03:14]*** CUTSNS_PIN = 1 [06:03:14]*** CUTSNS_PIN = 0 [06:03:14]*** Brake cut motor [06:03:15]Read from MH i2c: 01 [06:03:15]MH_I2C_Read... [06:03:15]*** Stop cut motor [06:03:15]*** Cut end [06:03:15]Read from MH i2c: 01 07 00 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: 01 07 00 1F 1B 00 00 00 00 00 FF 0F 4F [06:03:15]process_action close_receipt done [06:03:15]requested_data is exist [06:03:15]produce_requested_data [06:03:15]requested_item fm.sn is exist - process it [06:03:15]wFMCommunicate request_size=4 [06:03:15]MH_SAM_APDU [06:03:15]CAPDU: 80 11 00 00 [06:03:15]Write to MH i2c: E2 08 00 20 1B 80 11 00 00 00 00 00 00 B5 [06:03:15]Write i2c OK [06:03:15]MH_I2C_Read... [06:03:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:03:15]Read from MH i2c: E2 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 17 00 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 17 00 20 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [06:03:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:03:15]wFMCommunicate OK [06:03:15]requested_item fd.num is exist - process it [06:03:15]SAM_PROTO_GetFieldsCounters [06:03:15]wFMCommunicate request_size=4 [06:03:15]MH_SAM_APDU [06:03:15]CAPDU: 80 13 00 00 [06:03:15]Write to MH i2c: E2 08 00 21 1B 80 13 00 00 00 00 00 00 B8 [06:03:15]Write i2c OK [06:03:15]MH_I2C_Read... [06:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:03:15]Read from MH i2c: E2 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 62 00 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 62 00 21 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F DE 02 00 0E 04 04 00 CD 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 E0 [06:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F DE 02 00 0E 04 04 00 CD 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 [06:03:15]wFMCommunicate OK [06:03:15]SAM_PROTO_GetFieldsCounters done [06:03:15]requested_item shift.num is exist - process it [06:03:15]requested_item shift.opened is exist - process it [06:03:15]req_shift_opened [06:03:15]FM_GetShiftState [06:03:15]SAM_PROTO_GetShiftState [06:03:15]wFMCommunicate request_size=4 [06:03:15]MH_SAM_APDU [06:03:15]CAPDU: 80 13 01 00 [06:03:15]Write to MH i2c: E2 08 00 22 1B 80 13 01 00 00 00 00 00 BA [06:03:15]Write i2c OK [06:03:15]MH_I2C_Read... [06:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:03:15]Read from MH i2c: E2 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 0E 00 [06:03:15]MH_I2C_Read... [06:03:15]Read from MH i2c: E2 0E 00 22 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AF [06:03:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:03:15]wFMCommunicate OK [06:03:15]SAM_PROTO_GetShiftState done [06:03:15]FM_GetShiftState done [06:03:15]req_shift_opened done [06:03:15]requested_item shift.open_date is exist - process it [06:03:15]req_shift_open_date [06:03:15]req_shift_open_date done [06:03:15]produce_requested_data done [06:03:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188047,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:03:15]process_action_free close_receipt [06:03:15]json_value_free [06:03:15]json_value_free done [06:03:15]process_json_proto returns [06:03:15]Send response to host [06:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188047,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:03:15]free response buf [06:03:15]execute_script done [06:03:15]execute_script returns [06:03:15]free content buf [06:03:15]Sock 9.Close socket [06:03:15]Sock 9.Thread stoped [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:09]OFD Sender: No OFD packet to send [06:04:14]OFD Sender: No OFD packet to send [06:04:19]OFD Sender: No OFD packet to send [06:04:24]OFD Sender: No OFD packet to send [06:04:29]OFD Sender: No OFD packet to send [06:04:34]OFD Sender: No OFD packet to send [06:04:39]OFD Sender: No OFD packet to send [06:04:44]OFD Sender: No OFD packet to send [06:04:49]OFD Sender: No OFD packet to send [06:04:54]OFD Sender: No OFD packet to send [06:04:59]OFD Sender: No OFD packet to send [06:05:04]OFD Sender: No OFD packet to send [06:05:09]OFD Sender: No OFD packet to send [06:05:14]OFD Sender: No OFD packet to send [06:05:19]OFD Sender: No OFD packet to send [06:05:24]OFD Sender: No OFD packet to send [06:05:29]OFD Sender: No OFD packet to send [06:05:34]OFD Sender: No OFD packet to send [06:05:39]OFD Sender: No OFD packet to send [06:05:44]OFD Sender: No OFD packet to send [06:05:49]OFD Sender: No OFD packet to send [06:05:54]OFD Sender: No OFD packet to send [06:05:59]OFD Sender: No OFD packet to send [06:06:04]OFD Sender: No OFD packet to send [06:06:09]OFD Sender: No OFD packet to send [06:06:14]OFD Sender: No OFD packet to send [06:06:19]OFD Sender: No OFD packet to send [06:06:24]OFD Sender: No OFD packet to send [06:06:29]OFD Sender: No OFD packet to send [06:06:34]OFD Sender: No OFD packet to send [06:06:39]OFD Sender: No OFD packet to send [06:06:44]OFD Sender: No OFD packet to send [06:06:49]OFD Sender: No OFD packet to send [06:06:54]OFD Sender: No OFD packet to send [06:06:59]OFD Sender: No OFD packet to send [06:07:04]OFD Sender: No OFD packet to send [06:07:09]OFD Sender: No OFD packet to send [06:07:14]OFD Sender: No OFD packet to send [06:07:19]OFD Sender: No OFD packet to send [06:07:24]OFD Sender: No OFD packet to send [06:07:29]OFD Sender: No OFD packet to send [06:07:34]OFD Sender: No OFD packet to send [06:07:39]OFD Sender: No OFD packet to send [06:07:44]OFD Sender: No OFD packet to send [06:07:49]OFD Sender: No OFD packet to send [06:07:55]OFD Sender: No OFD packet to send [06:08:00]OFD Sender: No OFD packet to send [06:08:05]OFD Sender: No OFD packet to send [06:08:09]accept exits with 8 [06:08:09]New connection [06:08:09]New thread 3067198820 created [06:08:09]Thread 3067055460 joined [06:08:09]Waiting for new connection... [06:08:09] Sock 8.Parse request [06:08:09]Sock 8.Check first char [06:08:09]Sock 8.First char is OK [06:08:09]request: POST /json_proto HTTP/1.0 [06:08:09]Method: POST [06:08:09]URL: /json_proto [06:08:09]Method is POST - this is cgi request [06:08:09]url: /json_proto [06:08:09]query_string will be loaded in cgi processing [06:08:09]execute_cgi json_proto POST (null) [06:08:09]execute_cgi path=json_proto method=POST [06:08:09]POST find Content-Length [06:08:09]Host: 172.17.42.131:8080 [06:08:09]Content-Length: 688 [06:08:09]Content-Type: application/json [06:08:09] [06:08:09]POST finish read [06:08:09]Found Content-Length = 688 [06:08:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [06:08:09]execute_script... [06:08:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210100", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [06:08:09]POST & json_proto [06:08:09]process_json_proto [06:08:09]json parsed OK: [06:08:09]protocol is kg_v1.0 [06:08:09]action value=close_receipt [06:08:09]process_action close_receipt [06:08:09]cmd_close_receipt [06:08:09]MH_GetDate [06:08:09]Write to MH i2c: F0 00 00 23 1B 2D [06:08:09]Write i2c OK [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: F0 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: F0 09 00 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: F0 09 00 23 1B 00 4B 41 17 67 A0 18 CA 66 28 [06:08:09]GetLastDocTimeStamp 1729576993 [06:08:09]current date 1729577291 [06:08:09]FM_GetShiftState [06:08:09]SAM_PROTO_GetShiftState [06:08:09]wFMCommunicate request_size=4 [06:08:09]MH_SAM_APDU [06:08:09]CAPDU: 80 13 01 00 [06:08:09]Write to MH i2c: E2 08 00 24 1B 80 13 01 00 00 00 00 00 BC [06:08:09]Write i2c OK [06:08:09]MH_I2C_Read... [06:08:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:09]Read from MH i2c: E2 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: E2 0E 00 [06:08:09]MH_I2C_Read... [06:08:09]Read from MH i2c: E2 0E 00 24 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [06:08:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:08:09]wFMCommunicate OK [06:08:09]SAM_PROTO_GetShiftState done [06:08:09]FM_GetShiftState done [06:08:09]opened in 1729556094 [06:08:09]opened+sec_in_day 1729642494 [06:08:09]quantity*price = 200025 [06:08:09]sum+1 = 200026 [06:08:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 77 22.10.2024 06:08 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188048 ФПД: 93128784161795 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T060811&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188048&fm=93128784161795&tin=02508201610067®Number=0000000000100030&sum=200000 [06:08:10]StoreToDocumentArchive [06:08:10]shift 461 fd 188048 [06:08:10]save to /storage/0461/doc_00188048 [06:08:10]save last doc name /storage/0461/doc_00188048 to /storage/kkm_last_doc_name [06:08:10]save OK [06:08:10]Clear old archive folders... [06:08:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:08:10]tlvbuf is 01B8C430 [06:08:10]SAM_PROTO_ClearQueue [06:08:10]wFMCommunicate request_size=4 [06:08:10]MH_SAM_APDU [06:08:10]CAPDU: 80 09 00 00 [06:08:10]Write to MH i2c: E2 08 00 31 1B 80 09 00 00 00 00 00 00 BE [06:08:10]Write i2c OK [06:08:10]MH_I2C_Read... [06:08:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:08:10]Read from MH i2c: E2 [06:08:10]MH_I2C_Read... [06:08:10]Read from MH i2c: E2 03 00 [06:08:10]MH_I2C_Read... [06:08:10]Read from MH i2c: E2 03 00 31 1B 00 90 00 C0 [06:08:10]RAPDU: 90 00 [06:08:10]wFMCommunicate OK [06:08:10]SAM_PROTO_ClearQueue done [06:08:10]KKMCreateOFDPacket [06:08:10]OFDProtocolAddRootSTLVToBuf [06:08:10]FM_MakeSignedData [06:08:10]FM_MakeSignedData [06:08:10]SAM_PROTO_SignData [06:08:10]wFMCommunicate request_size=4 [06:08:10]MH_SAM_APDU [06:08:10]CAPDU: 80 0D 01 02 [06:08:10]Write to MH i2c: E2 08 00 32 1B 80 0D 01 02 00 00 00 00 C6 [06:08:10]Write i2c OK [06:08:10]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 32 1B 00 90 00 C1 [06:08:11]RAPDU: 90 00 [06:08:11]wFMCommunicate OK [06:08:11]wFMCommunicate request_size=255 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 4B 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DE 02 [06:08:11]Write to MH i2c: E2 02 01 33 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 4B 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DE 02 00 00 FC [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 33 1B 00 90 00 C2 [06:08:11]RAPDU: 90 00 [06:08:11]wFMCommunicate OK [06:08:11]wFMCommunicate request_size=16 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 54 B3 3C 19 2C 03 [06:08:11]Write to MH i2c: E2 13 00 34 1B 80 0D 02 02 0B 00 00 35 04 06 00 54 B3 3C 19 2C 03 00 00 A9 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 03 00 34 1B 00 90 00 C3 [06:08:11]RAPDU: 90 00 [06:08:11]wFMCommunicate OK [06:08:11]wFMCommunicate request_size=4 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 0D 03 02 [06:08:11]Write to MH i2c: E2 08 00 35 1B 80 0D 03 02 00 00 00 00 CB [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 0B 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 0B 00 35 1B 00 C7 4F D8 D1 19 57 6E 13 90 00 7C [06:08:11]RAPDU: C7 4F D8 D1 19 57 6E 13 90 00 [06:08:11]wFMCommunicate OK [06:08:11]SAM_PROTO_SignData done [06:08:11]FM_MakeSignedData done [06:08:11]CreateOFDProtocolMessage [06:08:11]wFMCommunicate request_size=4 [06:08:11]MH_SAM_APDU [06:08:11]CAPDU: 80 11 00 00 [06:08:11]Write to MH i2c: E2 08 00 36 1B 80 11 00 00 00 00 00 00 CB [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:11]Read from MH i2c: E2 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 17 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: E2 17 00 36 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [06:08:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:08:11]wFMCommunicate OK [06:08:11]CreateOFDProtocolMessage done [06:08:11]OFDSenderStorePacket 188048 [06:08:11]StoreOFDPacket docnum=188048 [06:08:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BB CA 0D 01 B6 DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 4B 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DE 02 00 35 04 06 00 54 B3 3C 19 2C 03 C7 4F D8 D1 19 57 6E 13 [06:08:11]CheckFolder [06:08:11]dirname=/storage/ofd_packets [06:08:11]CheckFolder done [06:08:11]ProducePacketName [06:08:11]name=ofd_packets/00188048 [06:08:11]NVStorageSaveData ofd_packets/00188048 [06:08:11]File name is /storage/ofd_packets/00188048 [06:08:11]Write 307 bytes [06:08:11]NVStorageSaveData done [06:08:11]OFDSenderStorePacket done [06:08:11]KKMCreateOFDPacket done [06:08:11]NVStorageSaveData kkm_last_timestamp [06:08:11]File name is /storage/kkm_last_timestamp [06:08:11]Write 4 bytes [06:08:11]NVStorageSaveData done [06:08:11]ExternCall_PrintAddStr [06:08:11]wPrintStart [06:08:11]Write to MH i2c: 01 00 00 37 1B 52 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 07 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 07 00 37 1B 00 00 00 00 00 FF 0F 67 [06:08:11]RasterBufferAndPrint [06:08:11]line Счет N : (1)210100 [06:08:11]line ИНН: 02508201610067 [06:08:11]line Контрольно-Кассовый Чек [06:08:11]line ПРОДАЖА [06:08:11]line ТРК (МРК, ГНК) : 31 [06:08:11]line Товар: 2710194210 [06:08:11]line D-ENERGY ДТ-К-5 [06:08:11]line 25.910 * 77.20 [06:08:11]line = 2000.25 [06:08:11]line НДС 12% НСП 1% [06:08:11]line > о реализуемом товаре [06:08:11]line ОКРУГЛЕНИЕ: -0.25 [06:08:11]line ИТОГО: 2000.00 [06:08:11]line Внесено: 2000.00 [06:08:11]line СДАЧА: 0.00 [06:08:11]line НСП 1% : 17.70 [06:08:11]line НДС 12% : 212.42 [06:08:11]line Наличными: 2000.00 [06:08:11]line Безнал.: 0.00 [06:08:11]line Место: АЗС № 86 "Партнер Нефть" [06:08:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:08:11]line СНО: Общий режим [06:08:11]line Чек 77 22.10.2024 06:08 [06:08:11]line Смена: 461 ФФД: 1.0 [06:08:11]line ЗНМ: 0300000155 [06:08:11]line РНМ: 0000000000100030 [06:08:11]line Версия ККМ: 001 [06:08:11]line ФМ: 0000000000965340 [06:08:11]line ФД: 188048 [06:08:11]line ФПД: 93128784161795 [06:08:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T060811&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188048&fm=93128784161795&tin=02508201610067®Number=0000000000100030&sum=200000 [06:08:11]written 0, free lines is 4095 [06:08:11]OFD Sender: Processing packet 188048 [packets to send 1062, broken 1061] [06:08:11]ProducePacketName [06:08:11]name=ofd_packets/00188048 [06:08:11]OFD Sender: To server: pG, [06:08:11]CommunicateWithHost lk.salyk.kg:30040 [06:08:11]ConnectInit lk.salyk.kg [06:08:11]Connected sock=10 [06:08:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BB CA 0D 01 B6 DD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 4D 00 00 00 F4 03 04 00 4B 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DE 02 00 35 04 06 00 54 B3 3C 19 2C 03 C7 4F D8 D1 19 57 6E 13 [06:08:11]Write to MH i2c: 01 00 00 62 1B 7D [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 07 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: 01 07 00 62 1B 00 00 00 00 00 55 0C E5 [06:08:11]RasterBufferAndPrint [06:08:11]line [06:08:11]line [06:08:11]line [06:08:11]line [06:08:11]line [06:08:11]written 0, free lines is 3160 [06:08:11]MH_Cut [06:08:11]Write to MH i2c: D1 01 00 69 1B 01 56 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: D1 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: D1 01 00 [06:08:11]MH_I2C_Read... [06:08:11]Read from MH i2c: D1 01 00 69 1B 00 55 [06:08:11]Write to MH i2c: 01 00 00 6A 1B 85 [06:08:11]Write i2c OK [06:08:11]MH_I2C_Read... [06:08:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD F3 47 00 8C CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DE 02 00 F4 03 04 00 39 EB 16 67 B6 04 01 00 00 6B 47 CE B6 81 E3 FA 81 [06:08:12]CommunicateWithHost err = 0 [06:08:12]CheckOFDResponse [06:08:12]1017 (14) - 77093643461234 [06:08:12]1041 (16) - 0000000000965340 [06:08:12]1040 (4) - 188048 [06:08:12]1012 (4) - 22.10.2024 00:00 [06:08:12]1206 (1) - 0 [06:08:12]OFD Sender: Remove packet 188048 [06:08:12]ProducePacketName [06:08:12]name=ofd_packets/00188048 [06:08:12]NVStorageDeleteData [06:08:12]OFD Sender: No OFD packet to send [06:08:13]*** Cut start [06:08:13]*** Partial cut [06:08:13]*** CUTSNS_PIN = 1 [06:08:13]*** CUTSNS_PIN = 0 [06:08:13]*** Brake cut motor [06:08:13]Read from MH i2c: 01 [06:08:13]MH_I2C_Read... [06:08:13]*** Stop cut motor [06:08:13]*** Cut end [06:08:13]Read from MH i2c: 01 07 00 [06:08:13]MH_I2C_Read... [06:08:13]Read from MH i2c: 01 07 00 6A 1B 00 00 00 00 00 FF 0F 9A [06:08:13]process_action close_receipt done [06:08:13]requested_data is exist [06:08:13]produce_requested_data [06:08:13]requested_item fm.sn is exist - process it [06:08:13]wFMCommunicate request_size=4 [06:08:13]MH_SAM_APDU [06:08:13]CAPDU: 80 11 00 00 [06:08:13]Write to MH i2c: E2 08 00 6B 1B 80 11 00 00 00 00 00 00 00 [06:08:13]Write i2c OK [06:08:13]MH_I2C_Read... [06:08:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:08:13]Read from MH i2c: E2 [06:08:13]MH_I2C_Read... [06:08:13]Read from MH i2c: E2 17 00 [06:08:13]MH_I2C_Read... [06:08:13]Read from MH i2c: E2 17 00 6B 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [06:08:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:08:13]wFMCommunicate OK [06:08:13]requested_item fd.num is exist - process it [06:08:13]SAM_PROTO_GetFieldsCounters [06:08:13]wFMCommunicate request_size=4 [06:08:13]MH_SAM_APDU [06:08:13]CAPDU: 80 13 00 00 [06:08:13]Write to MH i2c: E2 08 00 6C 1B 80 13 00 00 00 00 00 00 03 [06:08:13]Write i2c OK [06:08:13]MH_I2C_Read... [06:08:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:08:14]Read from MH i2c: E2 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: E2 62 00 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: E2 62 00 6C 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 DE 02 00 0E 04 04 00 CD 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 2F [06:08:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 DE 02 00 0E 04 04 00 CD 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 [06:08:14]wFMCommunicate OK [06:08:14]SAM_PROTO_GetFieldsCounters done [06:08:14]requested_item shift.num is exist - process it [06:08:14]requested_item shift.opened is exist - process it [06:08:14]req_shift_opened [06:08:14]FM_GetShiftState [06:08:14]SAM_PROTO_GetShiftState [06:08:14]wFMCommunicate request_size=4 [06:08:14]MH_SAM_APDU [06:08:14]CAPDU: 80 13 01 00 [06:08:14]Write to MH i2c: E2 08 00 6D 1B 80 13 01 00 00 00 00 00 05 [06:08:14]Write i2c OK [06:08:14]MH_I2C_Read... [06:08:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:08:14]Read from MH i2c: E2 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: E2 0E 00 [06:08:14]MH_I2C_Read... [06:08:14]Read from MH i2c: E2 0E 00 6D 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FA [06:08:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:08:14]wFMCommunicate OK [06:08:14]SAM_PROTO_GetShiftState done [06:08:14]FM_GetShiftState done [06:08:14]req_shift_opened done [06:08:14]requested_item shift.open_date is exist - process it [06:08:14]req_shift_open_date [06:08:14]req_shift_open_date done [06:08:14]produce_requested_data done [06:08:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188048,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:08:14]process_action_free close_receipt [06:08:14]json_value_free [06:08:14]json_value_free done [06:08:14]process_json_proto returns [06:08:14]Send response to host [06:08:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188048,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:08:14]free response buf [06:08:14]execute_script done [06:08:14]execute_script returns [06:08:14]free content buf [06:08:14]Sock 8.Close socket [06:08:14]Sock 8.Thread stoped [06:08:17]OFD Sender: No OFD packet to send [06:08:22]OFD Sender: No OFD packet to send [06:08:27]OFD Sender: No OFD packet to send [06:08:32]OFD Sender: No OFD packet to send [06:08:37]OFD Sender: No OFD packet to send [06:08:42]OFD Sender: No OFD packet to send [06:08:47]OFD Sender: No OFD packet to send [06:08:52]OFD Sender: No OFD packet to send [06:08:57]OFD Sender: No OFD packet to send [06:09:02]OFD Sender: No OFD packet to send [06:09:07]OFD Sender: No OFD packet to send [06:09:12]OFD Sender: No OFD packet to send [06:09:17]OFD Sender: No OFD packet to send [06:09:22]OFD Sender: No OFD packet to send [06:09:27]OFD Sender: No OFD packet to send [06:09:32]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:18]OFD Sender: No OFD packet to send [06:10:22]accept exits with 9 [06:10:22]New connection [06:10:22]New thread 3067055460 created [06:10:22]Thread 3067198820 joined [06:10:22]Waiting for new connection... [06:10:22] Sock 9.Parse request [06:10:22]Sock 9.Check first char [06:10:22]Sock 9.First char is OK [06:10:22]request: POST /json_proto HTTP/1.0 [06:10:22]Method: POST [06:10:22]URL: /json_proto [06:10:22]Method is POST - this is cgi request [06:10:22]url: /json_proto [06:10:22]query_string will be loaded in cgi processing [06:10:22]execute_cgi json_proto POST (null) [06:10:22]execute_cgi path=json_proto method=POST [06:10:22]POST find Content-Length [06:10:22]Host: 172.17.42.131:8080 [06:10:22]Content-Length: 677 [06:10:22]Content-Type: application/json [06:10:22] [06:10:22]POST finish read [06:10:22]Found Content-Length = 677 [06:10:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:22]execute_script... [06:10: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)210101", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:10:22]POST & json_proto [06:10:22]process_json_proto [06:10:22]json parsed OK: [06:10:22]protocol is kg_v1.0 [06:10:22]action value=close_receipt [06:10:22]process_action close_receipt [06:10:22]cmd_close_receipt [06:10:22]MH_GetDate [06:10:22]Write to MH i2c: F0 00 00 6E 1B 78 [06:10:22]Write i2c OK [06:10:22]MH_I2C_Read... [06:10:22]Read from MH i2c: F0 [06:10:22]MH_I2C_Read... [06:10:22]Read from MH i2c: F0 09 00 [06:10:22]MH_I2C_Read... [06:10:22]Read from MH i2c: F0 09 00 6E 1B 00 D0 41 17 67 A0 18 CA 66 F8 [06:10:22]GetLastDocTimeStamp 1729577291 [06:10:22]current date 1729577424 [06:10:22]FM_GetShiftState [06:10:22]SAM_PROTO_GetShiftState [06:10:22]wFMCommunicate request_size=4 [06:10:22]MH_SAM_APDU [06:10:22]CAPDU: 80 13 01 00 [06:10:22]Write to MH i2c: E2 08 00 6F 1B 80 13 01 00 00 00 00 00 07 [06:10:22]Write i2c OK [06:10:22]MH_I2C_Read... [06:10:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:22]Read from MH i2c: E2 [06:10:22]MH_I2C_Read... [06:10:22]Read from MH i2c: E2 0E 00 [06:10:22]MH_I2C_Read... [06:10:22]Read from MH i2c: E2 0E 00 6F 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FC [06:10:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:10:22]wFMCommunicate OK [06:10:22]SAM_PROTO_GetShiftState done [06:10:22]FM_GetShiftState done [06:10:22]opened in 1729556094 [06:10:22]opened+sec_in_day 1729642494 [06:10:22]quantity*price = 60009 [06:10:22]sum+1 = 60010 [06:10:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 78 22.10.2024 06:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188049 ФПД: 137206184233707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188049&fm=137206184233707&tin=02508201610067®Number=0000000000100030&sum=60000 [06:10:23]StoreToDocumentArchive [06:10:23]shift 461 fd 188049 [06:10:23]save to /storage/0461/doc_00188049 [06:10:23]save last doc name /storage/0461/doc_00188049 to /storage/kkm_last_doc_name [06:10:23]save OK [06:10:23]Clear old archive folders... [06:10:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:10:23]tlvbuf is 01C03E60 [06:10:23]SAM_PROTO_ClearQueue [06:10:23]wFMCommunicate request_size=4 [06:10:23]MH_SAM_APDU [06:10:23]CAPDU: 80 09 00 00 [06:10:23]Write to MH i2c: E2 08 00 7C 1B 80 09 00 00 00 00 00 00 09 [06:10:23]Write i2c OK [06:10:23]MH_I2C_Read... [06:10:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:10:23]Read from MH i2c: E2 [06:10:23]MH_I2C_Read... [06:10:23]Read from MH i2c: E2 03 00 [06:10:23]MH_I2C_Read... [06:10:23]Read from MH i2c: E2 03 00 7C 1B 00 90 00 0B [06:10:23]RAPDU: 90 00 [06:10:23]wFMCommunicate OK [06:10:23]SAM_PROTO_ClearQueue done [06:10:23]KKMCreateOFDPacket [06:10:23]OFDProtocolAddRootSTLVToBuf [06:10:23]FM_MakeSignedData [06:10:23]FM_MakeSignedData [06:10:23]SAM_PROTO_SignData [06:10:23]wFMCommunicate request_size=4 [06:10:23]MH_SAM_APDU [06:10:23]CAPDU: 80 0D 01 02 [06:10:23]Write to MH i2c: E2 08 00 7D 1B 80 0D 01 02 00 00 00 00 11 [06:10:23]Write i2c OK [06:10:23]MH_I2C_Read... [06:10:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:10:23]Read from MH i2c: E2 [06:10:23]MH_I2C_Read... [06:10:23]Read from MH i2c: E2 03 00 [06:10:23]MH_I2C_Read... [06:10:23]Read from MH i2c: E2 03 00 7D 1B 00 90 00 0C [06:10:23]RAPDU: 90 00 [06:10:23]wFMCommunicate OK [06:10:23]wFMCommunicate request_size=255 [06:10:23]MH_SAM_APDU [06:10: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D0 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DE 02 00 35 04 06 00 7C [06:10:23]Write to MH i2c: E2 02 01 7E 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D0 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DE 02 00 35 04 06 00 7C 00 00 F9 [06:10:23]Write i2c OK [06:10:23]MH_I2C_Read... [06:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:24]Read from MH i2c: E2 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 03 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 03 00 7E 1B 00 90 00 0D [06:10:24]RAPDU: 90 00 [06:10:24]wFMCommunicate OK [06:10:24]wFMCommunicate request_size=10 [06:10:24]MH_SAM_APDU [06:10:24]CAPDU: 80 0D 02 02 05 C9 CD DF 4A EB [06:10:24]Write to MH i2c: E2 0D 00 7F 1B 80 0D 02 02 05 00 C9 CD DF 4A EB 00 00 C8 [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:10:24]Read from MH i2c: E2 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 03 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 03 00 7F 1B 00 90 00 0E [06:10:24]RAPDU: 90 00 [06:10:24]wFMCommunicate OK [06:10:24]wFMCommunicate request_size=4 [06:10:24]MH_SAM_APDU [06:10:24]CAPDU: 80 0D 03 02 [06:10:24]Write to MH i2c: E2 08 00 80 1B 80 0D 03 02 00 00 00 00 16 [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:10:24]Read from MH i2c: E2 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 0B 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 0B 00 80 1B 00 30 EE 32 2A 82 6A 2E 2A 90 00 D5 [06:10:24]RAPDU: 30 EE 32 2A 82 6A 2E 2A 90 00 [06:10:24]wFMCommunicate OK [06:10:24]SAM_PROTO_SignData done [06:10:24]FM_MakeSignedData done [06:10:24]CreateOFDProtocolMessage [06:10:24]wFMCommunicate request_size=4 [06:10:24]MH_SAM_APDU [06:10:24]CAPDU: 80 11 00 00 [06:10:24]Write to MH i2c: E2 08 00 81 1B 80 11 00 00 00 00 00 00 16 [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:24]Read from MH i2c: E2 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 17 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: E2 17 00 81 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [06:10:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:10:24]wFMCommunicate OK [06:10:24]CreateOFDProtocolMessage done [06:10:24]OFDSenderStorePacket 188049 [06:10:24]StoreOFDPacket docnum=188049 [06:10:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B1 98 07 01 55 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D0 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DE 02 00 35 04 06 00 7C C9 CD DF 4A EB 30 EE 32 2A 82 6A 2E 2A [06:10:24]CheckFolder [06:10:24]dirname=/storage/ofd_packets [06:10:24]CheckFolder done [06:10:24]ProducePacketName [06:10:24]name=ofd_packets/00188049 [06:10:24]NVStorageSaveData ofd_packets/00188049 [06:10:24]File name is /storage/ofd_packets/00188049 [06:10:24]Write 301 bytes [06:10:24]NVStorageSaveData done [06:10:24]OFDSenderStorePacket done [06:10:24]KKMCreateOFDPacket done [06:10:24]NVStorageSaveData kkm_last_timestamp [06:10:24]File name is /storage/kkm_last_timestamp [06:10:24]Write 4 bytes [06:10:24]NVStorageSaveData done [06:10:24]ExternCall_PrintAddStr [06:10:24]wPrintStart [06:10:24]Write to MH i2c: 01 00 00 82 1B 9D [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: 01 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: 01 07 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: 01 07 00 82 1B 00 00 00 00 00 FF 0F B2 [06:10:24]RasterBufferAndPrint [06:10:24]line Счет N : (1)210101 [06:10:24]line ИНН: 02508201610067 [06:10:24]line Контрольно-Кассовый Чек [06:10:24]line ПРОДАЖА [06:10:24]line ТРК (МРК, ГНК) : 32 [06:10:24]line Товар: 2710124130 [06:10:24]line Аи-92-К-3 [06:10:24]line 8.970 * 66.90 [06:10:24]line = 600.09 [06:10:24]line НДС 12% НСП 1% [06:10:24]line > о реализуемом товаре [06:10:24]line ОКРУГЛЕНИЕ: -0.09 [06:10:24]line ИТОГО: 600.00 [06:10:24]line Внесено: 600.00 [06:10:24]line СДАЧА: 0.00 [06:10:24]line НСП 1% : 5.31 [06:10:24]line НДС 12% : 63.73 [06:10:24]line Наличными: 600.00 [06:10:24]line Безнал.: 0.00 [06:10:24]line Место: АЗС № 86 "Партнер Нефть" [06:10:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:10:24]line СНО: Общий режим [06:10:24]line Чек 78 22.10.2024 06:10 [06:10:24]line Смена: 461 ФФД: 1.0 [06:10:24]line ЗНМ: 0300000155 [06:10:24]line РНМ: 0000000000100030 [06:10:24]line Версия ККМ: 001 [06:10:24]line ФМ: 0000000000965340 [06:10:24]line ФД: 188049 [06:10:24]line ФПД: 137206184233707 [06:10:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188049&fm=137206184233707&tin=02508201610067®Number=0000000000100030&sum=60000 [06:10:24]OFD Sender: Processing packet 188049 [packets to send 1062, broken 1061] [06:10:24]ProducePacketName [06:10:24]name=ofd_packets/00188049 [06:10:24]OFD Sender: To server: pG, [06:10:24]CommunicateWithHost lk.salyk.kg:30040 [06:10:24]ConnectInit lk.salyk.kg [06:10:24]written 0, free lines is 4095 [06:10:24]Connected sock=10 [06:10:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B1 98 07 01 55 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 00 00 00 F4 03 04 00 D0 41 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DE 02 00 35 04 06 00 7C C9 CD DF 4A EB 30 EE 32 2A 82 6A 2E 2A [06:10:24]Write to MH i2c: 01 00 00 AD 1B C8 [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: 01 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: 01 07 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: 01 07 00 AD 1B 00 00 00 00 00 5F 0C 3A [06:10:24]RasterBufferAndPrint [06:10:24]line [06:10:24]line [06:10:24]line [06:10:24]line [06:10:24]line [06:10:24]written 0, free lines is 3171 [06:10:24]MH_Cut [06:10:24]Write to MH i2c: D1 01 00 B4 1B 01 A1 [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: D1 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: D1 01 00 [06:10:24]MH_I2C_Read... [06:10:24]Read from MH i2c: D1 01 00 B4 1B 00 A0 [06:10:24]Write to MH i2c: 01 00 00 B5 1B D0 [06:10:24]Write i2c OK [06:10:24]MH_I2C_Read... [06:10:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 10 47 00 F3 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DE 02 00 F4 03 04 00 BE EB 16 67 B6 04 01 00 00 FB F3 AD 6F A1 6A 2E 21 [06:10:24]CommunicateWithHost err = 0 [06:10:24]CheckOFDResponse [06:10:24]1017 (14) - 77093643461234 [06:10:24]1041 (16) - 0000000000965340 [06:10:24]1040 (4) - 188049 [06:10:24]1012 (4) - 22.10.2024 00:03 [06:10:24]1206 (1) - 0 [06:10:24]OFD Sender: Remove packet 188049 [06:10:24]ProducePacketName [06:10:24]name=ofd_packets/00188049 [06:10:24]NVStorageDeleteData [06:10:25]OFD Sender: No OFD packet to send [06:10:25]*** Cut start [06:10:25]*** Partial cut [06:10:25]*** CUTSNS_PIN = 1 [06:10:26]*** CUTSNS_PIN = 0 [06:10:26]*** Brake cut motor [06:10:26]Read from MH i2c: 01 [06:10:26]MH_I2C_Read... [06:10:26]*** Stop cut motor [06:10:26]*** Cut end [06:10:26]Read from MH i2c: 01 07 00 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: 01 07 00 B5 1B 00 00 00 00 00 FF 0F E5 [06:10:26]process_action close_receipt done [06:10:26]requested_data is exist [06:10:26]produce_requested_data [06:10:26]requested_item fm.sn is exist - process it [06:10:26]wFMCommunicate request_size=4 [06:10:26]MH_SAM_APDU [06:10:26]CAPDU: 80 11 00 00 [06:10:26]Write to MH i2c: E2 08 00 B6 1B 80 11 00 00 00 00 00 00 4B [06:10:26]Write i2c OK [06:10:26]MH_I2C_Read... [06:10:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:10:26]Read from MH i2c: E2 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 17 00 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 17 00 B6 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [06:10:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:10:26]wFMCommunicate OK [06:10:26]requested_item fd.num is exist - process it [06:10:26]SAM_PROTO_GetFieldsCounters [06:10:26]wFMCommunicate request_size=4 [06:10:26]MH_SAM_APDU [06:10:26]CAPDU: 80 13 00 00 [06:10:26]Write to MH i2c: E2 08 00 B7 1B 80 13 00 00 00 00 00 00 4E [06:10:26]Write i2c OK [06:10:26]MH_I2C_Read... [06:10:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:10:26]Read from MH i2c: E2 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 62 00 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 62 00 B7 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 DE 02 00 0E 04 04 00 CD 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 7E [06:10:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 DE 02 00 0E 04 04 00 CD 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 [06:10:26]wFMCommunicate OK [06:10:26]SAM_PROTO_GetFieldsCounters done [06:10:26]requested_item shift.num is exist - process it [06:10:26]requested_item shift.opened is exist - process it [06:10:26]req_shift_opened [06:10:26]FM_GetShiftState [06:10:26]SAM_PROTO_GetShiftState [06:10:26]wFMCommunicate request_size=4 [06:10:26]MH_SAM_APDU [06:10:26]CAPDU: 80 13 01 00 [06:10:26]Write to MH i2c: E2 08 00 B8 1B 80 13 01 00 00 00 00 00 50 [06:10:26]Write i2c OK [06:10:26]MH_I2C_Read... [06:10:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:10:26]Read from MH i2c: E2 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 0E 00 [06:10:26]MH_I2C_Read... [06:10:26]Read from MH i2c: E2 0E 00 B8 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 45 [06:10:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:10:26]wFMCommunicate OK [06:10:26]SAM_PROTO_GetShiftState done [06:10:26]FM_GetShiftState done [06:10:26]req_shift_opened done [06:10:26]requested_item shift.open_date is exist - process it [06:10:26]req_shift_open_date [06:10:26]req_shift_open_date done [06:10:26]produce_requested_data done [06:10:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188049,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:10:26]process_action_free close_receipt [06:10:26]json_value_free [06:10:26]json_value_free done [06:10:26]process_json_proto returns [06:10:26]Send response to host [06:10:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188049,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:10:26]free response buf [06:10:26]execute_script done [06:10:26]execute_script returns [06:10:26]free content buf [06:10:26]Sock 9.Close socket [06:10:26]Sock 9.Thread stoped [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:40]accept exits with 8 [06:11:40]New connection [06:11:40]New thread 3067198820 created [06:11:40]Thread 3067055460 joined [06:11:40]Waiting for new connection... [06:11:40] Sock 8.Parse request [06:11:40]Sock 8.Check first char [06:11:40]Sock 8.First char is OK [06:11:40]request: POST /json_proto HTTP/1.0 [06:11:40]Method: POST [06:11:40]URL: /json_proto [06:11:40]Method is POST - this is cgi request [06:11:40]url: /json_proto [06:11:40]query_string will be loaded in cgi processing [06:11:40]execute_cgi json_proto POST (null) [06:11:40]execute_cgi path=json_proto method=POST [06:11:40]POST find Content-Length [06:11:40]Host: 172.17.42.131:8080 [06:11:40]Content-Length: 677 [06:11:40]Content-Type: application/json [06:11:40] [06:11:40]POST finish read [06:11:40]Found Content-Length = 677 [06:11:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:40]execute_script... [06:11: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)210102", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:11:40]POST & json_proto [06:11:40]process_json_proto [06:11:40]json parsed OK: [06:11:40]protocol is kg_v1.0 [06:11:40]action value=close_receipt [06:11:40]process_action close_receipt [06:11:40]cmd_close_receipt [06:11:40]MH_GetDate [06:11:40]Write to MH i2c: F0 00 00 B9 1B C3 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: F0 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: F0 09 00 [06:11:40]MH_I2C_Read... [06:11:40]Read from MH i2c: F0 09 00 B9 1B 00 1F 42 17 67 A0 18 CA 66 93 [06:11:40]GetLastDocTimeStamp 1729577424 [06:11:40]current date 1729577503 [06:11:40]FM_GetShiftState [06:11:40]SAM_PROTO_GetShiftState [06:11:40]wFMCommunicate request_size=4 [06:11:40]MH_SAM_APDU [06:11:40]CAPDU: 80 13 01 00 [06:11:40]Write to MH i2c: E2 08 00 BA 1B 80 13 01 00 00 00 00 00 52 [06:11:40]Write i2c OK [06:11:40]MH_I2C_Read... [06:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:41]Read from MH i2c: E2 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: E2 0E 00 [06:11:41]MH_I2C_Read... [06:11:41]Read from MH i2c: E2 0E 00 BA 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 47 [06:11:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:11:41]wFMCommunicate OK [06:11:41]SAM_PROTO_GetShiftState done [06:11:41]FM_GetShiftState done [06:11:41]opened in 1729556094 [06:11:41]opened+sec_in_day 1729642494 [06:11:41]quantity*price = 40006 [06:11:41]sum+1 = 40007 [06:11:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 79 22.10.2024 06:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188050 ФПД: 60145841108254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188050&fm=60145841108254&tin=02508201610067®Number=0000000000100030&sum=40000 [06:11:42]StoreToDocumentArchive [06:11:42]shift 461 fd 188050 [06:11:42]save to /storage/0461/doc_00188050 [06:11:42]save last doc name /storage/0461/doc_00188050 to /storage/kkm_last_doc_name [06:11:42]save OK [06:11:42]Clear old archive folders... [06:11:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:11:42]tlvbuf is 01BDBF60 [06:11:42]SAM_PROTO_ClearQueue [06:11:42]wFMCommunicate request_size=4 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 09 00 00 [06:11:42]Write to MH i2c: E2 08 00 C7 1B 80 09 00 00 00 00 00 00 54 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 C7 1B 00 90 00 56 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]SAM_PROTO_ClearQueue done [06:11:42]KKMCreateOFDPacket [06:11:42]OFDProtocolAddRootSTLVToBuf [06:11:42]FM_MakeSignedData [06:11:42]FM_MakeSignedData [06:11:42]SAM_PROTO_SignData [06:11:42]wFMCommunicate request_size=4 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 01 02 [06:11:42]Write to MH i2c: E2 08 00 C8 1B 80 0D 01 02 00 00 00 00 5C [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 C8 1B 00 90 00 57 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]wFMCommunicate request_size=255 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1F 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DE 02 00 35 04 06 00 36 [06:11:42]Write to MH i2c: E2 02 01 C9 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1F 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DE 02 00 35 04 06 00 36 00 00 42 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 C9 1B 00 90 00 58 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]wFMCommunicate request_size=10 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 02 02 05 B3 CB 7E 75 1E [06:11:42]Write to MH i2c: E2 0D 00 CA 1B 80 0D 02 02 05 00 B3 CB 7E 75 1E 00 00 F8 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 03 00 CA 1B 00 90 00 59 [06:11:42]RAPDU: 90 00 [06:11:42]wFMCommunicate OK [06:11:42]wFMCommunicate request_size=4 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 0D 03 02 [06:11:42]Write to MH i2c: E2 08 00 CB 1B 80 0D 03 02 00 00 00 00 61 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 0B 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 0B 00 CB 1B 00 B8 33 CB 9C 22 08 0F 43 90 00 30 [06:11:42]RAPDU: B8 33 CB 9C 22 08 0F 43 90 00 [06:11:42]wFMCommunicate OK [06:11:42]SAM_PROTO_SignData done [06:11:42]FM_MakeSignedData done [06:11:42]CreateOFDProtocolMessage [06:11:42]wFMCommunicate request_size=4 [06:11:42]MH_SAM_APDU [06:11:42]CAPDU: 80 11 00 00 [06:11:42]Write to MH i2c: E2 08 00 CC 1B 80 11 00 00 00 00 00 00 61 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:42]Read from MH i2c: E2 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 17 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: E2 17 00 CC 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [06:11:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:11:42]wFMCommunicate OK [06:11:42]CreateOFDProtocolMessage done [06:11:42]OFDSenderStorePacket 188050 [06:11:42]StoreOFDPacket docnum=188050 [06:11:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 37 07 01 CF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1F 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DE 02 00 35 04 06 00 36 B3 CB 7E 75 1E B8 33 CB 9C 22 08 0F 43 [06:11:42]CheckFolder [06:11:42]dirname=/storage/ofd_packets [06:11:42]CheckFolder done [06:11:42]ProducePacketName [06:11:42]name=ofd_packets/00188050 [06:11:42]NVStorageSaveData ofd_packets/00188050 [06:11:42]File name is /storage/ofd_packets/00188050 [06:11:42]Write 301 bytes [06:11:42]NVStorageSaveData done [06:11:42]OFDSenderStorePacket done [06:11:42]KKMCreateOFDPacket done [06:11:42]NVStorageSaveData kkm_last_timestamp [06:11:42]File name is /storage/kkm_last_timestamp [06:11:42]Write 4 bytes [06:11:42]NVStorageSaveData done [06:11:42]ExternCall_PrintAddStr [06:11:42]wPrintStart [06:11:42]Write to MH i2c: 01 00 00 CD 1B E8 [06:11:42]Write i2c OK [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: 01 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: 01 07 00 [06:11:42]MH_I2C_Read... [06:11:42]Read from MH i2c: 01 07 00 CD 1B 00 00 00 00 00 FF 0F FD [06:11:42]RasterBufferAndPrint [06:11:42]line Счет N : (1)210102 [06:11:42]line ИНН: 02508201610067 [06:11:42]line Контрольно-Кассовый Чек [06:11:42]line ПРОДАЖА [06:11:42]line ТРК (МРК, ГНК) : 42 [06:11:42]line Товар: 2710124130 [06:11:42]line Аи-92-К-3 [06:11:42]line 5.980 * 66.90 [06:11:42]line = 400.06 [06:11:42]line НДС 12% НСП 1% [06:11:42]line > о реализуемом товаре [06:11:42]line ОКРУГЛЕНИЕ: -0.06 [06:11:42]line ИТОГО: 400.00 [06:11:42]line Внесено: 400.00 [06:11:42]line СДАЧА: 0.00 [06:11:42]line НСП 1% : 3.54 [06:11:42]line НДС 12% : 42.48 [06:11:42]line Наличными: 400.00 [06:11:42]line Безнал.: 0.00 [06:11:42]line Место: АЗС № 86 "Партнер Нефть" [06:11:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:11:42]line СНО: Общий режим [06:11:42]line Чек 79 22.10.2024 06:11 [06:11:42]line Смена: 461 ФФД: 1.0 [06:11:42]line ЗНМ: 0300000155 [06:11:42]line РНМ: 0000000000100030 [06:11:42]line Версия ККМ: 001 [06:11:42]line ФМ: 0000000000965340 [06:11:42]line ФД: 188050 [06:11:42]line ФПД: 60145841108254 [06:11:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188050&fm=60145841108254&tin=02508201610067®Number=0000000000100030&sum=40000 [06:11:42]written 0, free lines is 4095 [06:11:42]OFD Sender: Processing packet 188050 [packets to send 1062, broken 1061] [06:11:42]ProducePacketName [06:11:42]name=ofd_packets/00188050 [06:11:42]OFD Sender: To server: pG, [06:11:42]CommunicateWithHost lk.salyk.kg:30040 [06:11:42]ConnectInit lk.salyk.kg [06:11:43]Write to MH i2c: 01 00 00 F8 1B 13 [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: 01 07 00 F8 1B 00 00 00 00 00 56 0C 7C [06:11:43]RasterBufferAndPrint [06:11:43]line [06:11:43]line [06:11:43]line [06:11:43]line [06:11:43]line [06:11:43]written 0, free lines is 3160 [06:11:43]MH_Cut [06:11:43]Write to MH i2c: D1 01 00 FF 1B 01 EC [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: D1 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: D1 01 00 [06:11:43]MH_I2C_Read... [06:11:43]Read from MH i2c: D1 01 00 FF 1B 00 EB [06:11:43]Write to MH i2c: 01 00 00 00 1C 1C [06:11:43]Write i2c OK [06:11:43]MH_I2C_Read... [06:11:43]Connected sock=11 [06:11:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 77 37 07 01 CF 9D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 00 00 00 F4 03 04 00 1F 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DE 02 00 35 04 06 00 36 B3 CB 7E 75 1E B8 33 CB 9C 22 08 0F 43 [06:11:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A8 9F 47 00 3D 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DE 02 00 F4 03 04 00 0D EC 16 67 B6 04 01 00 00 33 FB 92 4B 01 1A 2A 02 [06:11:43]CommunicateWithHost err = 0 [06:11:43]CheckOFDResponse [06:11:43]1017 (14) - 77093643461234 [06:11:43]1041 (16) - 0000000000965340 [06:11:43]1040 (4) - 188050 [06:11:43]1012 (4) - 22.10.2024 00:04 [06:11:43]1206 (1) - 0 [06:11:43]OFD Sender: Remove packet 188050 [06:11:43]ProducePacketName [06:11:43]name=ofd_packets/00188050 [06:11:43]NVStorageDeleteData [06:11:44]OFD Sender: No OFD packet to send [06:11:44]*** Cut start [06:11:44]*** Partial cut [06:11:44]*** CUTSNS_PIN = 1 [06:11:44]*** CUTSNS_PIN = 0 [06:11:44]*** Brake cut motor [06:11:45]Read from MH i2c: 01 [06:11:45]MH_I2C_Read... [06:11:45]*** Stop cut motor [06:11:45]*** Cut end [06:11:45]Read from MH i2c: 01 07 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: 01 07 00 00 1C 00 00 00 00 00 FF 0F 31 [06:11:45]process_action close_receipt done [06:11:45]requested_data is exist [06:11:45]produce_requested_data [06:11:45]requested_item fm.sn is exist - process it [06:11:45]wFMCommunicate request_size=4 [06:11:45]MH_SAM_APDU [06:11:45]CAPDU: 80 11 00 00 [06:11:45]Write to MH i2c: E2 08 00 01 1C 80 11 00 00 00 00 00 00 97 [06:11:45]Write i2c OK [06:11:45]MH_I2C_Read... [06:11:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:11:45]Read from MH i2c: E2 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 17 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 17 00 01 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [06:11:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:11:45]wFMCommunicate OK [06:11:45]requested_item fd.num is exist - process it [06:11:45]SAM_PROTO_GetFieldsCounters [06:11:45]wFMCommunicate request_size=4 [06:11:45]MH_SAM_APDU [06:11:45]CAPDU: 80 13 00 00 [06:11:45]Write to MH i2c: E2 08 00 02 1C 80 13 00 00 00 00 00 00 9A [06:11:45]Write i2c OK [06:11:45]MH_I2C_Read... [06:11:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:11:45]Read from MH i2c: E2 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 62 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 62 00 02 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 DE 02 00 0E 04 04 00 CD 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 CE [06:11:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 DE 02 00 0E 04 04 00 CD 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 [06:11:45]wFMCommunicate OK [06:11:45]SAM_PROTO_GetFieldsCounters done [06:11:45]requested_item shift.num is exist - process it [06:11:45]requested_item shift.opened is exist - process it [06:11:45]req_shift_opened [06:11:45]FM_GetShiftState [06:11:45]SAM_PROTO_GetShiftState [06:11:45]wFMCommunicate request_size=4 [06:11:45]MH_SAM_APDU [06:11:45]CAPDU: 80 13 01 00 [06:11:45]Write to MH i2c: E2 08 00 03 1C 80 13 01 00 00 00 00 00 9C [06:11:45]Write i2c OK [06:11:45]MH_I2C_Read... [06:11:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:11:45]Read from MH i2c: E2 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 0E 00 [06:11:45]MH_I2C_Read... [06:11:45]Read from MH i2c: E2 0E 00 03 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [06:11:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:11:45]wFMCommunicate OK [06:11:45]SAM_PROTO_GetShiftState done [06:11:45]FM_GetShiftState done [06:11:45]req_shift_opened done [06:11:45]requested_item shift.open_date is exist - process it [06:11:45]req_shift_open_date [06:11:45]req_shift_open_date done [06:11:45]produce_requested_data done [06:11:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188050,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:11:45]process_action_free close_receipt [06:11:45]json_value_free [06:11:45]json_value_free done [06:11:45]process_json_proto returns [06:11:45]Send response to host [06:11:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188050,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:11:45]free response buf [06:11:45]execute_script done [06:11:45]execute_script returns [06:11:45]free content buf [06:11:45]Sock 8.Close socket [06:11:45]Sock 8.Thread stoped [06:11:49]OFD Sender: No OFD packet to send [06:11:54]OFD Sender: No OFD packet to send [06:11:59]OFD Sender: No OFD packet to send [06:12:04]OFD Sender: No OFD packet to send [06:12:09]OFD Sender: No OFD packet to send [06:12:14]OFD Sender: No OFD packet to send [06:12:19]OFD Sender: No OFD packet to send [06:12:24]OFD Sender: No OFD packet to send [06:12:29]OFD Sender: No OFD packet to send [06:12:34]OFD Sender: No OFD packet to send [06:12:39]OFD Sender: No OFD packet to send [06:12:44]OFD Sender: No OFD packet to send [06:12:49]OFD Sender: No OFD packet to send [06:12:54]OFD Sender: No OFD packet to send [06:12:59]OFD Sender: No OFD packet to send [06:13:04]OFD Sender: No OFD packet to send [06:13:09]OFD Sender: No OFD packet to send [06:13:14]OFD Sender: No OFD packet to send [06:13:19]OFD Sender: No OFD packet to send [06:13:24]OFD Sender: No OFD packet to send [06:13:29]OFD Sender: No OFD packet to send [06:13:34]OFD Sender: No OFD packet to send [06:13:39]OFD Sender: No OFD packet to send [06:13:44]accept exits with 9 [06:13:44]New connection [06:13:44]New thread 3067055460 created [06:13:44]Thread 3067198820 joined [06:13:44]Waiting for new connection... [06:13:44] Sock 9.Parse request [06:13:44]Sock 9.Check first char [06:13:44]Sock 9.First char is OK [06:13:44]request: POST /json_proto HTTP/1.0 [06:13:44]Method: POST [06:13:44]URL: /json_proto [06:13:44]Method is POST - this is cgi request [06:13:44]url: /json_proto [06:13:44]query_string will be loaded in cgi processing [06:13:44]execute_cgi json_proto POST (null) [06:13:44]execute_cgi path=json_proto method=POST [06:13:44]POST find Content-Length [06:13:44]Host: 172.17.42.131:8080 [06:13:44]Content-Length: 688 [06:13:44]Content-Type: application/json [06:13:44] [06:13:44]POST finish read [06:13:44]Found Content-Length = 688 [06:13:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:44]execute_script... [06:13: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)210103", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:13:44]POST & json_proto [06:13:44]process_json_proto [06:13:44]json parsed OK: [06:13:44]protocol is kg_v1.0 [06:13:44]action value=close_receipt [06:13:44]process_action close_receipt [06:13:44]cmd_close_receipt [06:13:44]MH_GetDate [06:13:44]Write to MH i2c: F0 00 00 04 1C 0F [06:13:44]Write i2c OK [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: F0 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: F0 09 00 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: F0 09 00 04 1C 00 9A 42 17 67 A0 18 CA 66 5A [06:13:44]GetLastDocTimeStamp 1729577503 [06:13:44]current date 1729577626 [06:13:44]FM_GetShiftState [06:13:44]SAM_PROTO_GetShiftState [06:13:44]wFMCommunicate request_size=4 [06:13:44]MH_SAM_APDU [06:13:44]CAPDU: 80 13 01 00 [06:13:44]Write to MH i2c: E2 08 00 05 1C 80 13 01 00 00 00 00 00 9E [06:13:44]Write i2c OK [06:13:44]MH_I2C_Read... [06:13:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:44]Read from MH i2c: E2 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: E2 0E 00 [06:13:44]MH_I2C_Read... [06:13:44]Read from MH i2c: E2 0E 00 05 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 93 [06:13:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:13:44]wFMCommunicate OK [06:13:44]SAM_PROTO_GetShiftState done [06:13:44]FM_GetShiftState done [06:13:44]opened in 1729556094 [06:13:44]opened+sec_in_day 1729642494 [06:13:44]quantity*price = 250050 [06:13:44]sum+1 = 250052 [06:13:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 80 22.10.2024 06:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188051 ФПД: 195383698013521 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061346&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188051&fm=195383698013521&tin=02508201610067®Number=0000000000100030&sum=250000 [06:13:45]StoreToDocumentArchive [06:13:45]shift 461 fd 188051 [06:13:45]save to /storage/0461/doc_00188051 [06:13:45]save last doc name /storage/0461/doc_00188051 to /storage/kkm_last_doc_name [06:13:45]save OK [06:13:45]Clear old archive folders... [06:13:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:13:45]tlvbuf is B6F91820 [06:13:45]SAM_PROTO_ClearQueue [06:13:45]wFMCommunicate request_size=4 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 09 00 00 [06:13:45]Write to MH i2c: E2 08 00 12 1C 80 09 00 00 00 00 00 00 A0 [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 12 1C 00 90 00 A2 [06:13:45]RAPDU: 90 00 [06:13:45]wFMCommunicate OK [06:13:45]SAM_PROTO_ClearQueue done [06:13:45]KKMCreateOFDPacket [06:13:45]OFDProtocolAddRootSTLVToBuf [06:13:45]FM_MakeSignedData [06:13:45]FM_MakeSignedData [06:13:45]SAM_PROTO_SignData [06:13:45]wFMCommunicate request_size=4 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 0D 01 02 [06:13:45]Write to MH i2c: E2 08 00 13 1C 80 0D 01 02 00 00 00 00 A8 [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 13 1C 00 90 00 A3 [06:13:45]RAPDU: 90 00 [06:13:45]wFMCommunicate OK [06:13:45]wFMCommunicate request_size=255 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DE 02 [06:13:45]Write to MH i2c: E2 02 01 14 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DE 02 00 00 82 [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 14 1C 00 90 00 A4 [06:13:45]RAPDU: 90 00 [06:13:45]wFMCommunicate OK [06:13:45]wFMCommunicate request_size=16 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B1 B3 4F EA 3D 51 [06:13:45]Write to MH i2c: E2 13 00 15 1C 80 0D 02 02 0B 00 00 35 04 06 00 B1 B3 4F EA 3D 51 00 00 2B [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 03 00 15 1C 00 90 00 A5 [06:13:45]RAPDU: 90 00 [06:13:45]wFMCommunicate OK [06:13:45]wFMCommunicate request_size=4 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 0D 03 02 [06:13:45]Write to MH i2c: E2 08 00 16 1C 80 0D 03 02 00 00 00 00 AD [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 0B 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 0B 00 16 1C 00 60 03 78 D1 BC CE 5F 14 90 00 57 [06:13:45]RAPDU: 60 03 78 D1 BC CE 5F 14 90 00 [06:13:45]wFMCommunicate OK [06:13:45]SAM_PROTO_SignData done [06:13:45]FM_MakeSignedData done [06:13:45]CreateOFDProtocolMessage [06:13:45]wFMCommunicate request_size=4 [06:13:45]MH_SAM_APDU [06:13:45]CAPDU: 80 11 00 00 [06:13:45]Write to MH i2c: E2 08 00 17 1C 80 11 00 00 00 00 00 00 AD [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:45]Read from MH i2c: E2 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 17 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: E2 17 00 17 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [06:13:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:13:45]wFMCommunicate OK [06:13:45]CreateOFDProtocolMessage done [06:13:45]OFDSenderStorePacket 188051 [06:13:45]StoreOFDPacket docnum=188051 [06:13:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3A A0 0D 01 8E 56 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DE 02 00 35 04 06 00 B1 B3 4F EA 3D 51 60 03 78 D1 BC CE 5F 14 [06:13:45]CheckFolder [06:13:45]dirname=/storage/ofd_packets [06:13:45]CheckFolder done [06:13:45]ProducePacketName [06:13:45]name=ofd_packets/00188051 [06:13:45]NVStorageSaveData ofd_packets/00188051 [06:13:45]File name is /storage/ofd_packets/00188051 [06:13:45]Write 307 bytes [06:13:45]NVStorageSaveData done [06:13:45]OFDSenderStorePacket done [06:13:45]KKMCreateOFDPacket done [06:13:45]NVStorageSaveData kkm_last_timestamp [06:13:45]File name is /storage/kkm_last_timestamp [06:13:45]Write 4 bytes [06:13:45]NVStorageSaveData done [06:13:45]ExternCall_PrintAddStr [06:13:45]wPrintStart [06:13:45]Write to MH i2c: 01 00 00 18 1C 34 [06:13:45]Write i2c OK [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: 01 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: 01 07 00 [06:13:45]MH_I2C_Read... [06:13:45]Read from MH i2c: 01 07 00 18 1C 00 00 00 00 00 FF 0F 49 [06:13:45]RasterBufferAndPrint [06:13:45]line Счет N : (1)210103 [06:13:45]line ИНН: 02508201610067 [06:13:45]line Контрольно-Кассовый Чек [06:13:45]line ПРОДАЖА [06:13:45]line ТРК (МРК, ГНК) : 11 [06:13:45]line Товар: 2710194210 [06:13:45]line D-ENERGY ДТ-К-5 [06:13:45]line 32.390 * 77.20 [06:13:45]line = 2500.51 [06:13:45]line НДС 12% НСП 1% [06:13:45]line > о реализуемом товаре [06:13:45]line ОКРУГЛЕНИЕ: -0.51 [06:13:45]line ИТОГО: 2500.00 [06:13:45]line Внесено: 2500.00 [06:13:45]line СДАЧА: 0.00 [06:13:45]line НСП 1% : 22.13 [06:13:45]line НДС 12% : 265.54 [06:13:45]line Наличными: 2500.00 [06:13:45]line Безнал.: 0.00 [06:13:45]line Место: АЗС № 86 "Партнер Нефть" [06:13:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:13:45]line СНО: Общий режим [06:13:45]line Чек 80 22.10.2024 06:13 [06:13:45]line Смена: 461 ФФД: 1.0 [06:13:45]line ЗНМ: 0300000155 [06:13:45]line РНМ: 0000000000100030 [06:13:45]line Версия ККМ: 001 [06:13:45]line ФМ: 0000000000965340 [06:13:45]line ФД: 188051 [06:13:45]line ФПД: 195383698013521 [06:13:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061346&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188051&fm=195383698013521&tin=02508201610067®Number=0000000000100030&sum=250000 [06:13:45]written 0, free lines is 4095 [06:13:45]OFD Sender: Processing packet 188051 [packets to send 1062, broken 1061] [06:13:45]ProducePacketName [06:13:45]name=ofd_packets/00188051 [06:13:45]OFD Sender: To server: pG, [06:13:45]CommunicateWithHost lk.salyk.kg:30040 [06:13:45]ConnectInit lk.salyk.kg [06:13:46]Connected sock=10 [06:13:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3A A0 0D 01 8E 56 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 9A 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DE 02 00 35 04 06 00 B1 B3 4F EA 3D 51 60 03 78 D1 BC CE 5F 14 [06:13:46]Write to MH i2c: 01 00 00 43 1C 5F [06:13:46]Write i2c OK [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: 01 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: 01 07 00 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: 01 07 00 43 1C 00 00 00 00 00 5C 0C CE [06:13:46]RasterBufferAndPrint [06:13:46]line [06:13:46]line [06:13:46]line [06:13:46]line [06:13:46]line [06:13:46]written 0, free lines is 3167 [06:13:46]MH_Cut [06:13:46]Write to MH i2c: D1 01 00 4A 1C 01 38 [06:13:46]Write i2c OK [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: D1 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: D1 01 00 [06:13:46]MH_I2C_Read... [06:13:46]Read from MH i2c: D1 01 00 4A 1C 00 37 [06:13:46]Write to MH i2c: 01 00 00 4B 1C 67 [06:13:46]Write i2c OK [06:13:46]MH_I2C_Read... [06:13:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2B D9 47 00 8E F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DE 02 00 F4 03 04 00 88 EC 16 67 B6 04 01 00 00 9B B0 9D 85 A1 C6 7B E7 [06:13:46]CommunicateWithHost err = 0 [06:13:46]CheckOFDResponse [06:13:46]1017 (14) - 77093643461234 [06:13:46]1041 (16) - 0000000000965340 [06:13:46]1040 (4) - 188051 [06:13:46]1012 (4) - 22.10.2024 00:06 [06:13:46]1206 (1) - 0 [06:13:46]OFD Sender: Remove packet 188051 [06:13:46]ProducePacketName [06:13:46]name=ofd_packets/00188051 [06:13:46]NVStorageDeleteData [06:13:47]OFD Sender: No OFD packet to send [06:13:47]*** Cut start [06:13:47]*** Partial cut [06:13:47]*** CUTSNS_PIN = 1 [06:13:47]*** CUTSNS_PIN = 0 [06:13:48]*** Brake cut motor [06:13:48]Read from MH i2c: 01 [06:13:48]MH_I2C_Read... [06:13:48]*** Stop cut motor [06:13:48]*** Cut end [06:13:48]Read from MH i2c: 01 07 00 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: 01 07 00 4B 1C 00 00 00 00 00 FF 0F 7C [06:13:48]process_action close_receipt done [06:13:48]requested_data is exist [06:13:48]produce_requested_data [06:13:48]requested_item fm.sn is exist - process it [06:13:48]wFMCommunicate request_size=4 [06:13:48]MH_SAM_APDU [06:13:48]CAPDU: 80 11 00 00 [06:13:48]Write to MH i2c: E2 08 00 4C 1C 80 11 00 00 00 00 00 00 E2 [06:13:48]Write i2c OK [06:13:48]MH_I2C_Read... [06:13:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:13:48]Read from MH i2c: E2 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: E2 17 00 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: E2 17 00 4C 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [06:13:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:13:48]wFMCommunicate OK [06:13:48]requested_item fd.num is exist - process it [06:13:48]SAM_PROTO_GetFieldsCounters [06:13:48]wFMCommunicate request_size=4 [06:13:48]MH_SAM_APDU [06:13:48]CAPDU: 80 13 00 00 [06:13:48]Write to MH i2c: E2 08 00 4D 1C 80 13 00 00 00 00 00 00 E5 [06:13:48]Write i2c OK [06:13:48]MH_I2C_Read... [06:13:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:13:48]Read from MH i2c: E2 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: E2 62 00 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: E2 62 00 4D 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 DE 02 00 0E 04 04 00 CD 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 1D [06:13:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 DE 02 00 0E 04 04 00 CD 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 [06:13:48]wFMCommunicate OK [06:13:48]SAM_PROTO_GetFieldsCounters done [06:13:48]requested_item shift.num is exist - process it [06:13:48]requested_item shift.opened is exist - process it [06:13:48]req_shift_opened [06:13:48]FM_GetShiftState [06:13:48]SAM_PROTO_GetShiftState [06:13:48]wFMCommunicate request_size=4 [06:13:48]MH_SAM_APDU [06:13:48]CAPDU: 80 13 01 00 [06:13:48]Write to MH i2c: E2 08 00 4E 1C 80 13 01 00 00 00 00 00 E7 [06:13:48]Write i2c OK [06:13:48]MH_I2C_Read... [06:13:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:13:48]Read from MH i2c: E2 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: E2 0E 00 [06:13:48]MH_I2C_Read... [06:13:48]Read from MH i2c: E2 0E 00 4E 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DC [06:13:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:13:48]wFMCommunicate OK [06:13:48]SAM_PROTO_GetShiftState done [06:13:48]FM_GetShiftState done [06:13:48]req_shift_opened done [06:13:48]requested_item shift.open_date is exist - process it [06:13:48]req_shift_open_date [06:13:48]req_shift_open_date done [06:13:48]produce_requested_data done [06:13:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188051,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:13:48]process_action_free close_receipt [06:13:48]json_value_free [06:13:48]json_value_free done [06:13:48]process_json_proto returns [06:13:48]Send response to host [06:13:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188051,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:13:48]free response buf [06:13:48]execute_script done [06:13:48]execute_script returns [06:13:48]free content buf [06:13:48]Sock 9.Close socket [06:13:48]Sock 9.Thread stoped [06:13:52]OFD Sender: No OFD packet to send [06:13:57]OFD Sender: No OFD packet to send [06:14:02]OFD Sender: No OFD packet to send [06:14:07]OFD Sender: No OFD packet to send [06:14:12]OFD Sender: No OFD packet to send [06:14:17]OFD Sender: No OFD packet to send [06:14:22]OFD Sender: No OFD packet to send [06:14:27]OFD Sender: No OFD packet to send [06:14:32]OFD Sender: No OFD packet to send [06:14:37]OFD Sender: No OFD packet to send [06:14:42]OFD Sender: No OFD packet to send [06:14:47]OFD Sender: No OFD packet to send [06:14:52]OFD Sender: No OFD packet to send [06:14:57]OFD Sender: No OFD packet to send [06:15:02]OFD Sender: No OFD packet to send [06:15:07]OFD Sender: No OFD packet to send [06:15:12]OFD Sender: No OFD packet to send [06:15:17]OFD Sender: No OFD packet to send [06:15:17]accept exits with 8 [06:15:17]New connection [06:15:17]New thread 3067198820 created [06:15:17]Thread 3067055460 joined [06:15:17]Waiting for new connection... [06:15:17] Sock 8.Parse request [06:15:17]Sock 8.Check first char [06:15:17]Sock 8.First char is OK [06:15:17]request: POST /json_proto HTTP/1.0 [06:15:17]Method: POST [06:15:17]URL: /json_proto [06:15:17]Method is POST - this is cgi request [06:15:17]url: /json_proto [06:15:17]query_string will be loaded in cgi processing [06:15:17]execute_cgi json_proto POST (null) [06:15:17]execute_cgi path=json_proto method=POST [06:15:17]POST find Content-Length [06:15:17]Host: 172.17.42.131:8080 [06:15:17]Content-Length: 682 [06:15:17]Content-Type: application/json [06:15:17] [06:15:17]POST finish read [06:15:17]Found Content-Length = 682 [06:15:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210104", "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:15:17]execute_script... [06:15: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)210104", "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:15:17]POST & json_proto [06:15:17]process_json_proto [06:15:17]json parsed OK: [06:15:17]protocol is kg_v1.0 [06:15:17]action value=close_receipt [06:15:17]process_action close_receipt [06:15:17]cmd_close_receipt [06:15:17]MH_GetDate [06:15:17]Write to MH i2c: F0 00 00 4F 1C 5A [06:15:17]Write i2c OK [06:15:17]MH_I2C_Read... [06:15:17]Read from MH i2c: F0 [06:15:17]MH_I2C_Read... [06:15:17]Read from MH i2c: F0 09 00 [06:15:17]MH_I2C_Read... [06:15:17]Read from MH i2c: F0 09 00 4F 1C 00 F7 42 17 67 A0 18 CA 66 02 [06:15:17]GetLastDocTimeStamp 1729577626 [06:15:17]current date 1729577719 [06:15:17]FM_GetShiftState [06:15:17]SAM_PROTO_GetShiftState [06:15:17]wFMCommunicate request_size=4 [06:15:17]MH_SAM_APDU [06:15:17]CAPDU: 80 13 01 00 [06:15:17]Write to MH i2c: E2 08 00 50 1C 80 13 01 00 00 00 00 00 E9 [06:15:17]Write i2c OK [06:15:17]MH_I2C_Read... [06:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:17]Read from MH i2c: E2 [06:15:17]MH_I2C_Read... [06:15:17]Read from MH i2c: E2 0E 00 [06:15:17]MH_I2C_Read... [06:15:17]Read from MH i2c: E2 0E 00 50 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DE [06:15:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:15:17]wFMCommunicate OK [06:15:17]SAM_PROTO_GetShiftState done [06:15:17]FM_GetShiftState done [06:15:17]opened in 1729556094 [06:15:17]opened+sec_in_day 1729642494 [06:15:17]quantity*price = 200043 [06:15:17]sum+1 = 200044 [06:15:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 81 22.10.2024 06:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188052 ФПД: 179718731664582 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188052&fm=179718731664582&tin=02508201610067®Number=0000000000100030&sum=200000 [06:15:19]StoreToDocumentArchive [06:15:19]shift 461 fd 188052 [06:15:19]save to /storage/0461/doc_00188052 [06:15:19]save last doc name /storage/0461/doc_00188052 to /storage/kkm_last_doc_name [06:15:19]save OK [06:15:19]Clear old archive folders... [06:15:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:15:19]tlvbuf is 01BB7F00 [06:15:19]SAM_PROTO_ClearQueue [06:15:19]wFMCommunicate request_size=4 [06:15:19]MH_SAM_APDU [06:15:19]CAPDU: 80 09 00 00 [06:15:19]Write to MH i2c: E2 08 00 5D 1C 80 09 00 00 00 00 00 00 EB [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:15:19]Read from MH i2c: E2 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 5D 1C 00 90 00 ED [06:15:19]RAPDU: 90 00 [06:15:19]wFMCommunicate OK [06:15:19]SAM_PROTO_ClearQueue done [06:15:19]KKMCreateOFDPacket [06:15:19]OFDProtocolAddRootSTLVToBuf [06:15:19]FM_MakeSignedData [06:15:19]FM_MakeSignedData [06:15:19]SAM_PROTO_SignData [06:15:19]wFMCommunicate request_size=4 [06:15:19]MH_SAM_APDU [06:15:19]CAPDU: 80 0D 01 02 [06:15:19]Write to MH i2c: E2 08 00 5E 1C 80 0D 01 02 00 00 00 00 F3 [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:15:19]Read from MH i2c: E2 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 5E 1C 00 90 00 EE [06:15:19]RAPDU: 90 00 [06:15:19]wFMCommunicate OK [06:15:19]wFMCommunicate request_size=255 [06:15:19]MH_SAM_APDU [06:15:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 51 00 00 00 F4 03 04 00 F8 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DE 02 00 35 04 06 00 A3 [06:15:19]Write to MH i2c: E2 02 01 5F 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 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 51 00 00 00 F4 03 04 00 F8 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DE 02 00 35 04 06 00 A3 00 00 FC [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:19]Read from MH i2c: E2 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 5F 1C 00 90 00 EF [06:15:19]RAPDU: 90 00 [06:15:19]wFMCommunicate OK [06:15:19]wFMCommunicate request_size=10 [06:15:19]MH_SAM_APDU [06:15:19]CAPDU: 80 0D 02 02 05 74 07 29 0C C6 [06:15:19]Write to MH i2c: E2 0D 00 60 1C 80 0D 02 02 05 00 74 07 29 0C C6 00 00 76 [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:15:19]Read from MH i2c: E2 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 03 00 60 1C 00 90 00 F0 [06:15:19]RAPDU: 90 00 [06:15:19]wFMCommunicate OK [06:15:19]wFMCommunicate request_size=4 [06:15:19]MH_SAM_APDU [06:15:19]CAPDU: 80 0D 03 02 [06:15:19]Write to MH i2c: E2 08 00 61 1C 80 0D 03 02 00 00 00 00 F8 [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:15:19]Read from MH i2c: E2 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 0B 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 0B 00 61 1C 00 1F 42 A1 E2 BC 55 E4 AB 90 00 7D [06:15:19]RAPDU: 1F 42 A1 E2 BC 55 E4 AB 90 00 [06:15:19]wFMCommunicate OK [06:15:19]SAM_PROTO_SignData done [06:15:19]FM_MakeSignedData done [06:15:19]CreateOFDProtocolMessage [06:15:19]wFMCommunicate request_size=4 [06:15:19]MH_SAM_APDU [06:15:19]CAPDU: 80 11 00 00 [06:15:19]Write to MH i2c: E2 08 00 62 1C 80 11 00 00 00 00 00 00 F8 [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:19]Read from MH i2c: E2 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 17 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: E2 17 00 62 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 46 [06:15:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:15:19]wFMCommunicate OK [06:15:19]CreateOFDProtocolMessage done [06:15:19]OFDSenderStorePacket 188052 [06:15:19]StoreOFDPacket docnum=188052 [06:15:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 4D 07 01 4C 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 51 00 00 00 F4 03 04 00 F8 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DE 02 00 35 04 06 00 A3 74 07 29 0C C6 1F 42 A1 E2 BC 55 E4 AB [06:15:19]CheckFolder [06:15:19]dirname=/storage/ofd_packets [06:15:19]CheckFolder done [06:15:19]ProducePacketName [06:15:19]name=ofd_packets/00188052 [06:15:19]NVStorageSaveData ofd_packets/00188052 [06:15:19]File name is /storage/ofd_packets/00188052 [06:15:19]Write 301 bytes [06:15:19]NVStorageSaveData done [06:15:19]OFDSenderStorePacket done [06:15:19]KKMCreateOFDPacket done [06:15:19]NVStorageSaveData kkm_last_timestamp [06:15:19]File name is /storage/kkm_last_timestamp [06:15:19]Write 4 bytes [06:15:19]NVStorageSaveData done [06:15:19]ExternCall_PrintAddStr [06:15:19]wPrintStart [06:15:19]Write to MH i2c: 01 00 00 63 1C 7F [06:15:19]Write i2c OK [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: 01 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: 01 07 00 [06:15:19]MH_I2C_Read... [06:15:19]Read from MH i2c: 01 07 00 63 1C 00 00 00 00 00 FF 0F 94 [06:15:19]RasterBufferAndPrint [06:15:19]line Счет N : (1)210104 [06:15:19]line ИНН: 02508201610067 [06:15:19]line Контрольно-Кассовый Чек [06:15:19]line ПРОДАЖА [06:15:19]line ТРК (МРК, ГНК) : 43 [06:15:19]line Товар: 2710124500 [06:15:19]line Аи-95-К-3 [06:15:19]line 26.960 * 74.20 [06:15:19]line = 2000.43 [06:15:19]line НДС 12% НСП 1% [06:15:19]line > о реализуемом товаре [06:15:19]line ОКРУГЛЕНИЕ: -0.43 [06:15:19]line ИТОГО: 2000.00 [06:15:19]line Внесено: 2000.00 [06:15:19]line СДАЧА: 0.00 [06:15:19]line НСП 1% : 17.70 [06:15:19]line НДС 12% : 212.43 [06:15:19]line Наличными: 2000.00 [06:15:19]line Безнал.: 0.00 [06:15:19]line Место: АЗС № 86 "Партнер Нефть" [06:15:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:15:19]line СНО: Общий режим [06:15:19]line Чек 81 22.10.2024 06:15 [06:15:19]line Смена: 461 ФФД: 1.0 [06:15:19]line ЗНМ: 0300000155 [06:15:19]line РНМ: 0000000000100030 [06:15:19]line Версия ККМ: 001 [06:15:19]line ФМ: 0000000000965340 [06:15:19]line ФД: 188052 [06:15:19]line ФПД: 179718731664582 [06:15:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061520&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188052&fm=179718731664582&tin=02508201610067®Number=0000000000100030&sum=200000 [06:15:19]written 0, free lines is 4095 [06:15:19]OFD Sender: Processing packet 188052 [packets to send 1062, broken 1061] [06:15:19]ProducePacketName [06:15:19]name=ofd_packets/00188052 [06:15:19]OFD Sender: To server: pG, [06:15:19]CommunicateWithHost lk.salyk.kg:30040 [06:15:19]ConnectInit lk.salyk.kg [06:15:19]Connected sock=10 [06:15:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 4D 07 01 4C 0F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 51 00 00 00 F4 03 04 00 F8 42 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DE 02 00 35 04 06 00 A3 74 07 29 0C C6 1F 42 A1 E2 BC 55 E4 AB [06:15:20]Write to MH i2c: 01 00 00 8E 1C AA [06:15:20]Write i2c OK [06:15:20]MH_I2C_Read... [06:15:20]Read from MH i2c: 01 [06:15:20]MH_I2C_Read... [06:15:20]Read from MH i2c: 01 07 00 [06:15:20]MH_I2C_Read... [06:15:20]Read from MH i2c: 01 07 00 8E 1C 00 00 00 00 00 61 0C 1E [06:15:20]RasterBufferAndPrint [06:15:20]line [06:15:20]line [06:15:20]line [06:15:20]line [06:15:20]line [06:15:20]written 0, free lines is 3173 [06:15:20]MH_Cut [06:15:20]Write to MH i2c: D1 01 00 95 1C 01 83 [06:15:20]Write i2c OK [06:15:20]MH_I2C_Read... [06:15:20]Read from MH i2c: D1 [06:15:20]MH_I2C_Read... [06:15:20]Read from MH i2c: D1 01 00 [06:15:20]MH_I2C_Read... [06:15:20]Read from MH i2c: D1 01 00 95 1C 00 82 [06:15:20]Write to MH i2c: 01 00 00 96 1C B2 [06:15:20]Write i2c OK [06:15:20]MH_I2C_Read... [06:15:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A 95 47 00 1B 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DE 02 00 F4 03 04 00 E5 EC 16 67 B6 04 01 00 00 60 36 7D 30 8F E1 E8 5D [06:15:20]CommunicateWithHost err = 0 [06:15:20]CheckOFDResponse [06:15:20]1017 (14) - 77093643461234 [06:15:20]1041 (16) - 0000000000965340 [06:15:20]1040 (4) - 188052 [06:15:20]1012 (4) - 22.10.2024 00:08 [06:15:20]1206 (1) - 0 [06:15:20]OFD Sender: Remove packet 188052 [06:15:20]ProducePacketName [06:15:20]name=ofd_packets/00188052 [06:15:20]NVStorageDeleteData [06:15:20]OFD Sender: No OFD packet to send [06:15:21]*** Cut start [06:15:21]*** Partial cut [06:15:21]*** CUTSNS_PIN = 1 [06:15:21]*** CUTSNS_PIN = 0 [06:15:21]*** Brake cut motor [06:15:21]Read from MH i2c: 01 [06:15:21]MH_I2C_Read... [06:15:21]*** Stop cut motor [06:15:21]*** Cut end [06:15:21]Read from MH i2c: 01 07 00 [06:15:21]MH_I2C_Read... [06:15:21]Read from MH i2c: 01 07 00 96 1C 00 00 00 00 00 FF 0F C7 [06:15:21]process_action close_receipt done [06:15:21]requested_data is exist [06:15:21]produce_requested_data [06:15:21]requested_item fm.sn is exist - process it [06:15:21]wFMCommunicate request_size=4 [06:15:21]MH_SAM_APDU [06:15:21]CAPDU: 80 11 00 00 [06:15:21]Write to MH i2c: E2 08 00 97 1C 80 11 00 00 00 00 00 00 2D [06:15:21]Write i2c OK [06:15:21]MH_I2C_Read... [06:15:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:15:22]Read from MH i2c: E2 [06:15:22]MH_I2C_Read... [06:15:22]Read from MH i2c: E2 17 00 [06:15:22]MH_I2C_Read... [06:15:22]Read from MH i2c: E2 17 00 97 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [06:15:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:15:22]wFMCommunicate OK [06:15:22]requested_item fd.num is exist - process it [06:15:22]SAM_PROTO_GetFieldsCounters [06:15:22]wFMCommunicate request_size=4 [06:15:22]MH_SAM_APDU [06:15:22]CAPDU: 80 13 00 00 [06:15:22]Write to MH i2c: E2 08 00 98 1C 80 13 00 00 00 00 00 00 30 [06:15:22]Write i2c OK [06:15:22]MH_I2C_Read... [06:15:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:15:22]Read from MH i2c: E2 [06:15:22]MH_I2C_Read... [06:15:22]Read from MH i2c: E2 62 00 [06:15:22]MH_I2C_Read... [06:15:22]Read from MH i2c: E2 62 00 98 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 DE 02 00 0E 04 04 00 CD 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 6C [06:15:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 DE 02 00 0E 04 04 00 CD 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 [06:15:22]wFMCommunicate OK [06:15:22]SAM_PROTO_GetFieldsCounters done [06:15:22]requested_item shift.num is exist - process it [06:15:22]requested_item shift.opened is exist - process it [06:15:22]req_shift_opened [06:15:22]FM_GetShiftState [06:15:22]SAM_PROTO_GetShiftState [06:15:22]wFMCommunicate request_size=4 [06:15:22]MH_SAM_APDU [06:15:22]CAPDU: 80 13 01 00 [06:15:22]Write to MH i2c: E2 08 00 99 1C 80 13 01 00 00 00 00 00 32 [06:15:22]Write i2c OK [06:15:22]MH_I2C_Read... [06:15:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:15:22]Read from MH i2c: E2 [06:15:22]MH_I2C_Read... [06:15:22]Read from MH i2c: E2 0E 00 [06:15:22]MH_I2C_Read... [06:15:22]Read from MH i2c: E2 0E 00 99 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 27 [06:15:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:15:22]wFMCommunicate OK [06:15:22]SAM_PROTO_GetShiftState done [06:15:22]FM_GetShiftState done [06:15:22]req_shift_opened done [06:15:22]requested_item shift.open_date is exist - process it [06:15:22]req_shift_open_date [06:15:22]req_shift_open_date done [06:15:22]produce_requested_data done [06:15:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188052,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:15:22]process_action_free close_receipt [06:15:22]json_value_free [06:15:22]json_value_free done [06:15:22]process_json_proto returns [06:15:22]Send response to host [06:15:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188052,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:15:22]free response buf [06:15:22]execute_script done [06:15:22]execute_script returns [06:15:22]free content buf [06:15:22]Sock 8.Close socket [06:15:22]Sock 8.Thread stoped [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:26]OFD Sender: No OFD packet to send [06:16:31]OFD Sender: No OFD packet to send [06:16:36]OFD Sender: No OFD packet to send [06:16:41]OFD Sender: No OFD packet to send [06:16:46]OFD Sender: No OFD packet to send [06:16:51]OFD Sender: No OFD packet to send [06:16:56]OFD Sender: No OFD packet to send [06:17:01]OFD Sender: No OFD packet to send [06:17:06]OFD Sender: No OFD packet to send [06:17:11]OFD Sender: No OFD packet to send [06:17:16]OFD Sender: No OFD packet to send [06:17:21]OFD Sender: No OFD packet to send [06:17:26]OFD Sender: No OFD packet to send [06:17:31]OFD Sender: No OFD packet to send [06:17:36]OFD Sender: No OFD packet to send [06:17:41]OFD Sender: No OFD packet to send [06:17:46]OFD Sender: No OFD packet to send [06:17:51]OFD Sender: No OFD packet to send [06:17:51]accept exits with 9 [06:17:51]New connection [06:17:51]New thread 3067055460 created [06:17:51]Thread 3067198820 joined [06:17:51]Waiting for new connection... [06:17:51] Sock 9.Parse request [06:17:51]Sock 9.Check first char [06:17:51]Sock 9.First char is OK [06:17:51]request: POST /json_proto HTTP/1.0 [06:17:51]Method: POST [06:17:51]URL: /json_proto [06:17:51]Method is POST - this is cgi request [06:17:51]url: /json_proto [06:17:51]query_string will be loaded in cgi processing [06:17:51]execute_cgi json_proto POST (null) [06:17:51]execute_cgi path=json_proto method=POST [06:17:51]POST find Content-Length [06:17:51]Host: 172.17.42.131:8080 [06:17:51]Content-Length: 688 [06:17:51]Content-Type: application/json [06:17:51] [06:17:51]POST finish read [06:17:51]Found Content-Length = 688 [06:17:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:17:51]execute_script... [06:17: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)210105", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:17:51]POST & json_proto [06:17:51]process_json_proto [06:17:51]json parsed OK: [06:17:51]protocol is kg_v1.0 [06:17:51]action value=close_receipt [06:17:51]process_action close_receipt [06:17:51]cmd_close_receipt [06:17:51]MH_GetDate [06:17:51]Write to MH i2c: F0 00 00 9A 1C A5 [06:17:51]Write i2c OK [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: F0 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: F0 09 00 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: F0 09 00 9A 1C 00 91 43 17 67 A0 18 CA 66 E8 [06:17:51]GetLastDocTimeStamp 1729577720 [06:17:51]current date 1729577873 [06:17:51]FM_GetShiftState [06:17:51]SAM_PROTO_GetShiftState [06:17:51]wFMCommunicate request_size=4 [06:17:51]MH_SAM_APDU [06:17:51]CAPDU: 80 13 01 00 [06:17:51]Write to MH i2c: E2 08 00 9B 1C 80 13 01 00 00 00 00 00 34 [06:17:51]Write i2c OK [06:17:51]MH_I2C_Read... [06:17:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:51]Read from MH i2c: E2 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: E2 0E 00 [06:17:51]MH_I2C_Read... [06:17:51]Read from MH i2c: E2 0E 00 9B 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 29 [06:17:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:17:51]wFMCommunicate OK [06:17:51]SAM_PROTO_GetShiftState done [06:17:51]FM_GetShiftState done [06:17:51]opened in 1729556094 [06:17:51]opened+sec_in_day 1729642494 [06:17:51]quantity*price = 100051 [06:17:51]sum+1 = 100052 [06:17:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 82 22.10.2024 06:17 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188053 ФПД: 120608488904962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188053&fm=120608488904962&tin=02508201610067®Number=0000000000100030&sum=100000 [06:17:52]StoreToDocumentArchive [06:17:52]shift 461 fd 188053 [06:17:52]save to /storage/0461/doc_00188053 [06:17:52]save last doc name /storage/0461/doc_00188053 to /storage/kkm_last_doc_name [06:17:52]save OK [06:17:52]Clear old archive folders... [06:17:52]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:17:52]tlvbuf is 01C042D0 [06:17:52]SAM_PROTO_ClearQueue [06:17:52]wFMCommunicate request_size=4 [06:17:52]MH_SAM_APDU [06:17:52]CAPDU: 80 09 00 00 [06:17:52]Write to MH i2c: E2 08 00 A8 1C 80 09 00 00 00 00 00 00 36 [06:17:52]Write i2c OK [06:17:52]MH_I2C_Read... [06:17:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:17:52]Read from MH i2c: E2 [06:17:52]MH_I2C_Read... [06:17:52]Read from MH i2c: E2 03 00 [06:17:52]MH_I2C_Read... [06:17:52]Read from MH i2c: E2 03 00 A8 1C 00 90 00 38 [06:17:52]RAPDU: 90 00 [06:17:52]wFMCommunicate OK [06:17:52]SAM_PROTO_ClearQueue done [06:17:52]KKMCreateOFDPacket [06:17:52]OFDProtocolAddRootSTLVToBuf [06:17:52]FM_MakeSignedData [06:17:52]FM_MakeSignedData [06:17:52]SAM_PROTO_SignData [06:17:52]wFMCommunicate request_size=4 [06:17:52]MH_SAM_APDU [06:17:52]CAPDU: 80 0D 01 02 [06:17:52]Write to MH i2c: E2 08 00 A9 1C 80 0D 01 02 00 00 00 00 3E [06:17:52]Write i2c OK [06:17:52]MH_I2C_Read... [06:17:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:17:53]Read from MH i2c: E2 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 03 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 03 00 A9 1C 00 90 00 39 [06:17:53]RAPDU: 90 00 [06:17:53]wFMCommunicate OK [06:17:53]wFMCommunicate request_size=255 [06:17:53]MH_SAM_APDU [06:17:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 52 00 00 00 F4 03 04 00 91 43 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DE 02 [06:17:53]Write to MH i2c: E2 02 01 AA 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 52 00 00 00 F4 03 04 00 91 43 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DE 02 00 00 82 [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:53]Read from MH i2c: E2 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 03 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 03 00 AA 1C 00 90 00 3A [06:17:53]RAPDU: 90 00 [06:17:53]wFMCommunicate OK [06:17:53]wFMCommunicate request_size=16 [06:17:53]MH_SAM_APDU [06:17:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 6D B1 5A 23 59 02 [06:17:53]Write to MH i2c: E2 13 00 AB 1C 80 0D 02 02 0B 00 00 35 04 06 00 6D B1 5A 23 59 02 00 00 8C [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:17:53]Read from MH i2c: E2 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 03 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 03 00 AB 1C 00 90 00 3B [06:17:53]RAPDU: 90 00 [06:17:53]wFMCommunicate OK [06:17:53]wFMCommunicate request_size=4 [06:17:53]MH_SAM_APDU [06:17:53]CAPDU: 80 0D 03 02 [06:17:53]Write to MH i2c: E2 08 00 AC 1C 80 0D 03 02 00 00 00 00 43 [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:17:53]Read from MH i2c: E2 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 0B 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 0B 00 AC 1C 00 A2 CB 6B BB 8B 3F DB 5F 90 00 DB [06:17:53]RAPDU: A2 CB 6B BB 8B 3F DB 5F 90 00 [06:17:53]wFMCommunicate OK [06:17:53]SAM_PROTO_SignData done [06:17:53]FM_MakeSignedData done [06:17:53]CreateOFDProtocolMessage [06:17:53]wFMCommunicate request_size=4 [06:17:53]MH_SAM_APDU [06:17:53]CAPDU: 80 11 00 00 [06:17:53]Write to MH i2c: E2 08 00 AD 1C 80 11 00 00 00 00 00 00 43 [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:53]Read from MH i2c: E2 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 17 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: E2 17 00 AD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [06:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:17:53]wFMCommunicate OK [06:17:53]CreateOFDProtocolMessage done [06:17:53]OFDSenderStorePacket 188053 [06:17:53]StoreOFDPacket docnum=188053 [06:17:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 92 97 0D 01 54 E2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 52 00 00 00 F4 03 04 00 91 43 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DE 02 00 35 04 06 00 6D B1 5A 23 59 02 A2 CB 6B BB 8B 3F DB 5F [06:17:53]CheckFolder [06:17:53]dirname=/storage/ofd_packets [06:17:53]CheckFolder done [06:17:53]ProducePacketName [06:17:53]name=ofd_packets/00188053 [06:17:53]NVStorageSaveData ofd_packets/00188053 [06:17:53]File name is /storage/ofd_packets/00188053 [06:17:53]Write 307 bytes [06:17:53]NVStorageSaveData done [06:17:53]OFDSenderStorePacket done [06:17:53]KKMCreateOFDPacket done [06:17:53]NVStorageSaveData kkm_last_timestamp [06:17:53]File name is /storage/kkm_last_timestamp [06:17:53]Write 4 bytes [06:17:53]NVStorageSaveData done [06:17:53]ExternCall_PrintAddStr [06:17:53]wPrintStart [06:17:53]Write to MH i2c: 01 00 00 AE 1C CA [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: 01 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: 01 07 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: 01 07 00 AE 1C 00 00 00 00 00 FF 0F DF [06:17:53]RasterBufferAndPrint [06:17:53]line Счет N : (1)210105 [06:17:53]line ИНН: 02508201610067 [06:17:53]line Контрольно-Кассовый Чек [06:17:53]line ПРОДАЖА [06:17:53]line ТРК (МРК, ГНК) : 11 [06:17:53]line Товар: 2710194210 [06:17:53]line D-ENERGY ДТ-К-5 [06:17:53]line 12.960 * 77.20 [06:17:53]line = 1000.51 [06:17:53]line НДС 12% НСП 1% [06:17:53]line > о реализуемом товаре [06:17:53]line ОКРУГЛЕНИЕ: -0.51 [06:17:53]line ИТОГО: 1000.00 [06:17:53]line Внесено: 1000.00 [06:17:53]line СДАЧА: 0.00 [06:17:53]line НСП 1% : 8.85 [06:17:53]line НДС 12% : 106.25 [06:17:53]line Наличными: 1000.00 [06:17:53]line Безнал.: 0.00 [06:17:53]line Место: АЗС № 86 "Партнер Нефть" [06:17:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:17:53]line СНО: Общий режим [06:17:53]line Чек 82 22.10.2024 06:17 [06:17:53]line Смена: 461 ФФД: 1.0 [06:17:53]line ЗНМ: 0300000155 [06:17:53]line РНМ: 0000000000100030 [06:17:53]line Версия ККМ: 001 [06:17:53]line ФМ: 0000000000965340 [06:17:53]line ФД: 188053 [06:17:53]line ФПД: 120608488904962 [06:17:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T061753&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188053&fm=120608488904962&tin=02508201610067®Number=0000000000100030&sum=100000 [06:17:53]written 0, free lines is 4095 [06:17:53]OFD Sender: Processing packet 188053 [packets to send 1062, broken 1061] [06:17:53]ProducePacketName [06:17:53]name=ofd_packets/00188053 [06:17:53]OFD Sender: To server: pG, [06:17:53]CommunicateWithHost lk.salyk.kg:30040 [06:17:53]ConnectInit lk.salyk.kg [06:17:53]Connected sock=10 [06:17:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 92 97 0D 01 54 E2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 52 00 00 00 F4 03 04 00 91 43 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DE 02 00 35 04 06 00 6D B1 5A 23 59 02 A2 CB 6B BB 8B 3F DB 5F [06:17:53]Write to MH i2c: 01 00 00 D9 1C F5 [06:17:53]Write i2c OK [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: 01 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: 01 07 00 [06:17:53]MH_I2C_Read... [06:17:53]Read from MH i2c: 01 07 00 D9 1C 00 00 00 00 00 58 0C 60 [06:17:53]RasterBufferAndPrint [06:17:53]line [06:17:53]line [06:17:53]line [06:17:53]line [06:17:53]line [06:17:53]written 0, free lines is 3164 [06:17:54]MH_Cut [06:17:54]Write to MH i2c: D1 01 00 E0 1C 01 CE [06:17:54]Write i2c OK [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: D1 [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: D1 01 00 [06:17:54]MH_I2C_Read... [06:17:54]Read from MH i2c: D1 01 00 E0 1C 00 CD [06:17:54]Write to MH i2c: 01 00 00 E1 1C FD [06:17:54]Write i2c OK [06:17:54]MH_I2C_Read... [06:17:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C6 D9 47 00 AE 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DE 02 00 F4 03 04 00 7F ED 16 67 B6 04 01 00 00 E0 5F 47 FA 07 BF 3D A3 [06:17:54]CommunicateWithHost err = 0 [06:17:54]CheckOFDResponse [06:17:54]1017 (14) - 77093643461234 [06:17:54]1041 (16) - 0000000000965340 [06:17:54]1040 (4) - 188053 [06:17:54]1012 (4) - 22.10.2024 00:10 [06:17:54]1206 (1) - 0 [06:17:54]OFD Sender: Remove packet 188053 [06:17:54]ProducePacketName [06:17:54]name=ofd_packets/00188053 [06:17:54]NVStorageDeleteData [06:17:54]OFD Sender: No OFD packet to send [06:17:55]*** Cut start [06:17:55]*** Partial cut [06:17:55]*** CUTSNS_PIN = 1 [06:17:55]*** CUTSNS_PIN = 0 [06:17:55]*** Brake cut motor [06:17:55]Read from MH i2c: 01 [06:17:55]MH_I2C_Read... [06:17:55]*** Stop cut motor [06:17:55]*** Cut end [06:17:55]Read from MH i2c: 01 07 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: 01 07 00 E1 1C 00 00 00 00 00 FF 0F 12 [06:17:55]process_action close_receipt done [06:17:55]requested_data is exist [06:17:55]produce_requested_data [06:17:55]requested_item fm.sn is exist - process it [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 11 00 00 [06:17:55]Write to MH i2c: E2 08 00 E2 1C 80 11 00 00 00 00 00 00 78 [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:17:55]Read from MH i2c: E2 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 17 00 [06:17:55]MH_I2C_Read... [06:17:55]Read from MH i2c: E2 17 00 E2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [06:17:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:17:55]wFMCommunicate OK [06:17:55]requested_item fd.num is exist - process it [06:17:55]SAM_PROTO_GetFieldsCounters [06:17:55]wFMCommunicate request_size=4 [06:17:55]MH_SAM_APDU [06:17:55]CAPDU: 80 13 00 00 [06:17:55]Write to MH i2c: E2 08 00 E3 1C 80 13 00 00 00 00 00 00 7B [06:17:55]Write i2c OK [06:17:55]MH_I2C_Read... [06:17:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:17:56]Read from MH i2c: E2 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: E2 62 00 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: E2 62 00 E3 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 DE 02 00 0E 04 04 00 CD 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 BB [06:17:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 DE 02 00 0E 04 04 00 CD 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 [06:17:56]wFMCommunicate OK [06:17:56]SAM_PROTO_GetFieldsCounters done [06:17:56]requested_item shift.num is exist - process it [06:17:56]requested_item shift.opened is exist - process it [06:17:56]req_shift_opened [06:17:56]FM_GetShiftState [06:17:56]SAM_PROTO_GetShiftState [06:17:56]wFMCommunicate request_size=4 [06:17:56]MH_SAM_APDU [06:17:56]CAPDU: 80 13 01 00 [06:17:56]Write to MH i2c: E2 08 00 E4 1C 80 13 01 00 00 00 00 00 7D [06:17:56]Write i2c OK [06:17:56]MH_I2C_Read... [06:17:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:17:56]Read from MH i2c: E2 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: E2 0E 00 [06:17:56]MH_I2C_Read... [06:17:56]Read from MH i2c: E2 0E 00 E4 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [06:17:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:17:56]wFMCommunicate OK [06:17:56]SAM_PROTO_GetShiftState done [06:17:56]FM_GetShiftState done [06:17:56]req_shift_opened done [06:17:56]requested_item shift.open_date is exist - process it [06:17:56]req_shift_open_date [06:17:56]req_shift_open_date done [06:17:56]produce_requested_data done [06:17:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188053,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:17:56]process_action_free close_receipt [06:17:56]json_value_free [06:17:56]json_value_free done [06:17:56]process_json_proto returns [06:17:56]Send response to host [06:17:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188053,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:17:56]free response buf [06:17:56]execute_script done [06:17:56]execute_script returns [06:17:56]free content buf [06:17:56]Sock 9.Close socket [06:17:56]Sock 9.Thread stoped [06:17:59]OFD Sender: No OFD packet to send [06:18:04]OFD Sender: No OFD packet to send [06:18:09]OFD Sender: No OFD packet to send [06:18:14]OFD Sender: No OFD packet to send [06:18:19]OFD Sender: No OFD packet to send [06:18:24]OFD Sender: No OFD packet to send [06:18:29]OFD Sender: No OFD packet to send [06:18:34]OFD Sender: No OFD packet to send [06:18:39]OFD Sender: No OFD packet to send [06:18:44]OFD Sender: No OFD packet to send [06:18:49]OFD Sender: No OFD packet to send [06:18:54]OFD Sender: No OFD packet to send [06:18:59]OFD Sender: No OFD packet to send [06:19:04]OFD Sender: No OFD packet to send [06:19:09]OFD Sender: No OFD packet to send [06:19:14]OFD Sender: No OFD packet to send [06:19:19]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:11]OFD Sender: No OFD packet to send [06:23:16]OFD Sender: No OFD packet to send [06:23:21]OFD Sender: No OFD packet to send [06:23:26]OFD Sender: No OFD packet to send [06:23:31]OFD Sender: No OFD packet to send [06:23:36]OFD Sender: No OFD packet to send [06:23:41]OFD Sender: No OFD packet to send [06:23:46]OFD Sender: No OFD packet to send [06:23:51]OFD Sender: No OFD packet to send [06:23:56]OFD Sender: No OFD packet to send [06:24:01]OFD Sender: No OFD packet to send [06:24:06]OFD Sender: No OFD packet to send [06:24:11]OFD Sender: No OFD packet to send [06:24:16]OFD Sender: No OFD packet to send [06:24:21]OFD Sender: No OFD packet to send [06:24:26]OFD Sender: No OFD packet to send [06:24:31]OFD Sender: No OFD packet to send [06:24:36]OFD Sender: No OFD packet to send [06:24:41]OFD Sender: No OFD packet to send [06:24:46]OFD Sender: No OFD packet to send [06:24:51]OFD Sender: No OFD packet to send [06:24:56]OFD Sender: No OFD packet to send [06:25:01]OFD Sender: No OFD packet to send [06:25:06]OFD Sender: No OFD packet to send [06:25:11]OFD Sender: No OFD packet to send [06:25:16]OFD Sender: No OFD packet to send [06:25:21]OFD Sender: No OFD packet to send [06:25:26]OFD Sender: No OFD packet to send [06:25:31]OFD Sender: No OFD packet to send [06:25:36]OFD Sender: No OFD packet to send [06:25:41]OFD Sender: No OFD packet to send [06:25:46]OFD Sender: No OFD packet to send [06:25:51]OFD Sender: No OFD packet to send [06:25:56]OFD Sender: No OFD packet to send [06:26:01]OFD Sender: No OFD packet to send [06:26:06]OFD Sender: No OFD packet to send [06:26:11]OFD Sender: No OFD packet to send [06:26:16]OFD Sender: No OFD packet to send [06:26:21]OFD Sender: No OFD packet to send [06:26:26]OFD Sender: No OFD packet to send [06:26:31]OFD Sender: No OFD packet to send [06:26:36]OFD Sender: No OFD packet to send [06:26:41]OFD Sender: No OFD packet to send [06:26:46]OFD Sender: No OFD packet to send [06:26:52]OFD Sender: No OFD packet to send [06:26:57]OFD Sender: No OFD packet to send [06:27:02]OFD Sender: No OFD packet to send [06:27:07]OFD Sender: No OFD packet to send [06:27:12]OFD Sender: No OFD packet to send [06:27:17]OFD Sender: No OFD packet to send [06:27:22]OFD Sender: No OFD packet to send [06:27:27]OFD Sender: No OFD packet to send [06:27:32]OFD Sender: No OFD packet to send [06:27:37]OFD Sender: No OFD packet to send [06:27:42]OFD Sender: No OFD packet to send [06:27:47]OFD Sender: No OFD packet to send [06:27:52]OFD Sender: No OFD packet to send [06:27:57]OFD Sender: No OFD packet to send [06:28:02]OFD Sender: No OFD packet to send [06:28:07]OFD Sender: No OFD packet to send [06:28:12]OFD Sender: No OFD packet to send [06:28:17]OFD Sender: No OFD packet to send [06:28:22]OFD Sender: No OFD packet to send [06:28:27]OFD Sender: No OFD packet to send [06:28:32]OFD Sender: No OFD packet to send [06:28:37]OFD Sender: No OFD packet to send [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:57]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [06:30:43]OFD Sender: No OFD packet to send [06:30:48]OFD Sender: No OFD packet to send [06:30:53]OFD Sender: No OFD packet to send [06:30:58]OFD Sender: No OFD packet to send [06:31:03]OFD Sender: No OFD packet to send [06:31:08]OFD Sender: No OFD packet to send [06:31:13]OFD Sender: No OFD packet to send [06:31:18]OFD Sender: No OFD packet to send [06:31:23]OFD Sender: No OFD packet to send [06:31:28]OFD Sender: No OFD packet to send [06:31:33]OFD Sender: No OFD packet to send [06:31:38]OFD Sender: No OFD packet to send [06:31:43]OFD Sender: No OFD packet to send [06:31:48]OFD Sender: No OFD packet to send [06:31:53]OFD Sender: No OFD packet to send [06:31:58]OFD Sender: No OFD packet to send [06:32:03]OFD Sender: No OFD packet to send [06:32:08]OFD Sender: No OFD packet to send [06:32:13]OFD Sender: No OFD packet to send [06:32:18]OFD Sender: No OFD packet to send [06:32:23]OFD Sender: No OFD packet to send [06:32:28]OFD Sender: No OFD packet to send [06:32:33]OFD Sender: No OFD packet to send [06:32:38]OFD Sender: No OFD packet to send [06:32:43]OFD Sender: No OFD packet to send [06:32:48]OFD Sender: No OFD packet to send [06:32:53]OFD Sender: No OFD packet to send [06:32:58]OFD Sender: No OFD packet to send [06:33:03]OFD Sender: No OFD packet to send [06:33:08]OFD Sender: No OFD packet to send [06:33:13]accept exits with 8 [06:33:13]New connection [06:33:13]New thread 3067198820 created [06:33:13]Thread 3067055460 joined [06:33:13]Waiting for new connection... [06:33:13] Sock 8.Parse request [06:33:13]Sock 8.Check first char [06:33:13]Sock 8.First char is OK [06:33:13]request: POST /json_proto HTTP/1.0 [06:33:13]Method: POST [06:33:13]URL: /json_proto [06:33:13]Method is POST - this is cgi request [06:33:13]url: /json_proto [06:33:13]query_string will be loaded in cgi processing [06:33:13]execute_cgi json_proto POST (null) [06:33:13]execute_cgi path=json_proto method=POST [06:33:13]POST find Content-Length [06:33:13]Host: 172.17.42.131:8080 [06:33:13]Content-Length: 688 [06:33:13]Content-Type: application/json [06:33:13] [06:33:13]POST finish read [06:33:13]Found Content-Length = 688 [06:33:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:13]execute_script... [06:33: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)210106", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:33:13]POST & json_proto [06:33:13]process_json_proto [06:33:13]json parsed OK: [06:33:13]protocol is kg_v1.0 [06:33:13]action value=close_receipt [06:33:13]process_action close_receipt [06:33:13]cmd_close_receipt [06:33:13]MH_GetDate [06:33:13]Write to MH i2c: F0 00 00 E5 1C F0 [06:33:13]Write i2c OK [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: F0 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: F0 09 00 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: F0 09 00 E5 1C 00 2B 47 17 67 A0 18 CA 66 D1 [06:33:13]GetLastDocTimeStamp 1729577873 [06:33:13]current date 1729578795 [06:33:13]FM_GetShiftState [06:33:13]SAM_PROTO_GetShiftState [06:33:13]wFMCommunicate request_size=4 [06:33:13]MH_SAM_APDU [06:33:13]CAPDU: 80 13 01 00 [06:33:13]Write to MH i2c: E2 08 00 E6 1C 80 13 01 00 00 00 00 00 7F [06:33:13]Write i2c OK [06:33:13]MH_I2C_Read... [06:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:13]Read from MH i2c: E2 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 0E 00 [06:33:13]MH_I2C_Read... [06:33:13]Read from MH i2c: E2 0E 00 E6 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 74 [06:33:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:33:13]wFMCommunicate OK [06:33:13]SAM_PROTO_GetShiftState done [06:33:13]FM_GetShiftState done [06:33:13]opened in 1729556094 [06:33:13]opened+sec_in_day 1729642494 [06:33:13]quantity*price = 140040 [06:33:13]sum+1 = 140042 [06:33:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 83 22.10.2024 06:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188054 ФПД: 112424567959135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188054&fm=112424567959135&tin=02508201610067®Number=0000000000100030&sum=140000 [06:33:14]StoreToDocumentArchive [06:33:14]shift 461 fd 188054 [06:33:14]save to /storage/0461/doc_00188054 [06:33:14]save last doc name /storage/0461/doc_00188054 to /storage/kkm_last_doc_name [06:33:14]save OK [06:33:14]Clear old archive folders... [06:33:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:33:14]tlvbuf is 01B995D0 [06:33:14]SAM_PROTO_ClearQueue [06:33:14]wFMCommunicate request_size=4 [06:33:14]MH_SAM_APDU [06:33:14]CAPDU: 80 09 00 00 [06:33:14]Write to MH i2c: E2 08 00 F3 1C 80 09 00 00 00 00 00 00 81 [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:33:14]Read from MH i2c: E2 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 F3 1C 00 90 00 83 [06:33:14]RAPDU: 90 00 [06:33:14]wFMCommunicate OK [06:33:14]SAM_PROTO_ClearQueue done [06:33:14]KKMCreateOFDPacket [06:33:14]OFDProtocolAddRootSTLVToBuf [06:33:14]FM_MakeSignedData [06:33:14]FM_MakeSignedData [06:33:14]SAM_PROTO_SignData [06:33:14]wFMCommunicate request_size=4 [06:33:14]MH_SAM_APDU [06:33:14]CAPDU: 80 0D 01 02 [06:33:14]Write to MH i2c: E2 08 00 F4 1C 80 0D 01 02 00 00 00 00 89 [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:33:14]Read from MH i2c: E2 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 F4 1C 00 90 00 84 [06:33:14]RAPDU: 90 00 [06:33:14]wFMCommunicate OK [06:33:14]wFMCommunicate request_size=255 [06:33:14]MH_SAM_APDU [06:33:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2B 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DE 02 [06:33:14]Write to MH i2c: E2 02 01 F5 1C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2B 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DE 02 00 00 56 [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:14]Read from MH i2c: E2 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 F5 1C 00 90 00 85 [06:33:14]RAPDU: 90 00 [06:33:14]wFMCommunicate OK [06:33:14]wFMCommunicate request_size=16 [06:33:14]MH_SAM_APDU [06:33:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 3F E2 6F EE 5F [06:33:14]Write to MH i2c: E2 13 00 F6 1C 80 0D 02 02 0B 00 00 35 04 06 00 66 3F E2 6F EE 5F 00 00 24 [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:33:14]Read from MH i2c: E2 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 03 00 F6 1C 00 90 00 86 [06:33:14]RAPDU: 90 00 [06:33:14]wFMCommunicate OK [06:33:14]wFMCommunicate request_size=4 [06:33:14]MH_SAM_APDU [06:33:14]CAPDU: 80 0D 03 02 [06:33:14]Write to MH i2c: E2 08 00 F7 1C 80 0D 03 02 00 00 00 00 8E [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:33:14]Read from MH i2c: E2 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 0B 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 0B 00 F7 1C 00 F9 97 C6 FF 6A 33 30 F5 90 00 A6 [06:33:14]RAPDU: F9 97 C6 FF 6A 33 30 F5 90 00 [06:33:14]wFMCommunicate OK [06:33:14]SAM_PROTO_SignData done [06:33:14]FM_MakeSignedData done [06:33:14]CreateOFDProtocolMessage [06:33:14]wFMCommunicate request_size=4 [06:33:14]MH_SAM_APDU [06:33:14]CAPDU: 80 11 00 00 [06:33:14]Write to MH i2c: E2 08 00 F8 1C 80 11 00 00 00 00 00 00 8E [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:14]Read from MH i2c: E2 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 17 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: E2 17 00 F8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [06:33:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:33:14]wFMCommunicate OK [06:33:14]CreateOFDProtocolMessage done [06:33:14]OFDSenderStorePacket 188054 [06:33:14]StoreOFDPacket docnum=188054 [06:33:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AB F1 0D 01 35 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2B 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DE 02 00 35 04 06 00 66 3F E2 6F EE 5F F9 97 C6 FF 6A 33 30 F5 [06:33:14]CheckFolder [06:33:14]dirname=/storage/ofd_packets [06:33:14]CheckFolder done [06:33:14]ProducePacketName [06:33:14]name=ofd_packets/00188054 [06:33:14]NVStorageSaveData ofd_packets/00188054 [06:33:14]File name is /storage/ofd_packets/00188054 [06:33:14]Write 307 bytes [06:33:14]NVStorageSaveData done [06:33:14]OFDSenderStorePacket done [06:33:14]KKMCreateOFDPacket done [06:33:14]NVStorageSaveData kkm_last_timestamp [06:33:14]File name is /storage/kkm_last_timestamp [06:33:14]Write 4 bytes [06:33:14]NVStorageSaveData done [06:33:14]ExternCall_PrintAddStr [06:33:14]wPrintStart [06:33:14]Write to MH i2c: 01 00 00 F9 1C 15 [06:33:14]Write i2c OK [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: 01 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: 01 07 00 [06:33:14]MH_I2C_Read... [06:33:14]Read from MH i2c: 01 07 00 F9 1C 00 00 00 00 00 FF 0F 2A [06:33:14]RasterBufferAndPrint [06:33:14]line Счет N : (1)210106 [06:33:14]line ИНН: 02508201610067 [06:33:14]line Контрольно-Кассовый Чек [06:33:14]line ПРОДАЖА [06:33:14]line ТРК (МРК, ГНК) : 31 [06:33:14]line Товар: 2710194210 [06:33:14]line D-ENERGY ДТ-К-5 [06:33:14]line 18.140 * 77.20 [06:33:14]line = 1400.41 [06:33:14]line НДС 12% НСП 1% [06:33:14]line > о реализуемом товаре [06:33:14]line ОКРУГЛЕНИЕ: -0.41 [06:33:14]line ИТОГО: 1400.00 [06:33:14]line Внесено: 1400.00 [06:33:14]line СДАЧА: 0.00 [06:33:14]line НСП 1% : 12.39 [06:33:14]line НДС 12% : 148.72 [06:33:14]line Наличными: 1400.00 [06:33:14]line Безнал.: 0.00 [06:33:14]line Место: АЗС № 86 "Партнер Нефть" [06:33:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:33:14]line СНО: Общий режим [06:33:14]line Чек 83 22.10.2024 06:33 [06:33:14]line Смена: 461 ФФД: 1.0 [06:33:14]line ЗНМ: 0300000155 [06:33:14]line РНМ: 0000000000100030 [06:33:14]line Версия ККМ: 001 [06:33:14]line ФМ: 0000000000965340 [06:33:14]line ФД: 188054 [06:33:14]line ФПД: 112424567959135 [06:33:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063315&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188054&fm=112424567959135&tin=02508201610067®Number=0000000000100030&sum=140000 [06:33:14]written 0, free lines is 4095 [06:33:14]OFD Sender: Processing packet 188054 [packets to send 1062, broken 1061] [06:33:14]ProducePacketName [06:33:14]name=ofd_packets/00188054 [06:33:14]OFD Sender: To server: pG, [06:33:14]CommunicateWithHost lk.salyk.kg:30040 [06:33:14]ConnectInit lk.salyk.kg [06:33:15]Connected sock=11 [06:33:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AB F1 0D 01 35 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 53 00 00 00 F4 03 04 00 2B 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DE 02 00 35 04 06 00 66 3F E2 6F EE 5F F9 97 C6 FF 6A 33 30 F5 [06:33:15]Write to MH i2c: 01 00 00 24 1D 41 [06:33:15]Write i2c OK [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: 01 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: 01 07 00 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: 01 07 00 24 1D 00 00 00 00 00 58 0C AC [06:33:15]RasterBufferAndPrint [06:33:15]line [06:33:15]line [06:33:15]line [06:33:15]line [06:33:15]line [06:33:15]written 0, free lines is 3164 [06:33:15]MH_Cut [06:33:15]Write to MH i2c: D1 01 00 2B 1D 01 1A [06:33:15]Write i2c OK [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: D1 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: D1 01 00 [06:33:15]MH_I2C_Read... [06:33:15]Read from MH i2c: D1 01 00 2B 1D 00 19 [06:33:15]Write to MH i2c: 01 00 00 2C 1D 49 [06:33:15]Write i2c OK [06:33:15]MH_I2C_Read... [06:33:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DB CB 47 00 28 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 39 36 35 33 34 30 10 04 04 00 96 DE 02 00 F4 03 04 00 19 F1 16 67 B6 04 01 00 00 D8 D1 8E 86 3A 31 3A 87 [06:33:15]CommunicateWithHost err = 0 [06:33:15]CheckOFDResponse [06:33:15]1017 (14) - 77093643461234 [06:33:15]1041 (16) - 0000000000965340 [06:33:15]1040 (4) - 188054 [06:33:15]1012 (4) - 22.10.2024 00:26 [06:33:15]1206 (1) - 0 [06:33:15]OFD Sender: Remove packet 188054 [06:33:15]ProducePacketName [06:33:15]name=ofd_packets/00188054 [06:33:15]NVStorageDeleteData [06:33:15]OFD Sender: No OFD packet to send [06:33:16]*** Cut start [06:33:16]*** Partial cut [06:33:16]*** CUTSNS_PIN = 1 [06:33:16]*** CUTSNS_PIN = 0 [06:33:16]*** Brake cut motor [06:33:17]Read from MH i2c: 01 [06:33:17]MH_I2C_Read... [06:33:17]*** Stop cut motor [06:33:17]*** Cut end [06:33:17]Read from MH i2c: 01 07 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: 01 07 00 2C 1D 00 00 00 00 00 FF 0F 5E [06:33:17]process_action close_receipt done [06:33:17]requested_data is exist [06:33:17]produce_requested_data [06:33:17]requested_item fm.sn is exist - process it [06:33:17]wFMCommunicate request_size=4 [06:33:17]MH_SAM_APDU [06:33:17]CAPDU: 80 11 00 00 [06:33:17]Write to MH i2c: E2 08 00 2D 1D 80 11 00 00 00 00 00 00 C4 [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 17 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 17 00 2D 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [06:33:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:33:17]wFMCommunicate OK [06:33:17]requested_item fd.num is exist - process it [06:33:17]SAM_PROTO_GetFieldsCounters [06:33:17]wFMCommunicate request_size=4 [06:33:17]MH_SAM_APDU [06:33:17]CAPDU: 80 13 00 00 [06:33:17]Write to MH i2c: E2 08 00 2E 1D 80 13 00 00 00 00 00 00 C7 [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 62 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 62 00 2E 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 DE 02 00 0E 04 04 00 CD 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 0B [06:33:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 DE 02 00 0E 04 04 00 CD 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 [06:33:17]wFMCommunicate OK [06:33:17]SAM_PROTO_GetFieldsCounters done [06:33:17]requested_item shift.num is exist - process it [06:33:17]requested_item shift.opened is exist - process it [06:33:17]req_shift_opened [06:33:17]FM_GetShiftState [06:33:17]SAM_PROTO_GetShiftState [06:33:17]wFMCommunicate request_size=4 [06:33:17]MH_SAM_APDU [06:33:17]CAPDU: 80 13 01 00 [06:33:17]Write to MH i2c: E2 08 00 2F 1D 80 13 01 00 00 00 00 00 C9 [06:33:17]Write i2c OK [06:33:17]MH_I2C_Read... [06:33:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:33:17]Read from MH i2c: E2 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 0E 00 [06:33:17]MH_I2C_Read... [06:33:17]Read from MH i2c: E2 0E 00 2F 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [06:33:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:33:17]wFMCommunicate OK [06:33:17]SAM_PROTO_GetShiftState done [06:33:17]FM_GetShiftState done [06:33:17]req_shift_opened done [06:33:17]requested_item shift.open_date is exist - process it [06:33:17]req_shift_open_date [06:33:17]req_shift_open_date done [06:33:17]produce_requested_data done [06:33:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188054,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:33:17]process_action_free close_receipt [06:33:17]json_value_free [06:33:17]json_value_free done [06:33:17]process_json_proto returns [06:33:17]Send response to host [06:33:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188054,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:33:17]free response buf [06:33:17]execute_script done [06:33:17]execute_script returns [06:33:17]free content buf [06:33:17]Sock 8.Close socket [06:33:17]Sock 8.Thread stoped [06:33:20]OFD Sender: No OFD packet to send [06:33:25]OFD Sender: No OFD packet to send [06:33:30]OFD Sender: No OFD packet to send [06:33:35]OFD Sender: No OFD packet to send [06:33:41]OFD Sender: No OFD packet to send [06:33:46]OFD Sender: No OFD packet to send [06:33:51]OFD Sender: No OFD packet to send [06:33:56]OFD Sender: No OFD packet to send [06:34:01]OFD Sender: No OFD packet to send [06:34:06]OFD Sender: No OFD packet to send [06:34:11]OFD Sender: No OFD packet to send [06:34:16]OFD Sender: No OFD packet to send [06:34:21]OFD Sender: No OFD packet to send [06:34:26]OFD Sender: No OFD packet to send [06:34:31]OFD Sender: No OFD packet to send [06:34:36]OFD Sender: No OFD packet to send [06:34:41]OFD Sender: No OFD packet to send [06:34:46]OFD Sender: No OFD packet to send [06:34:51]OFD Sender: No OFD packet to send [06:34:56]OFD Sender: No OFD packet to send [06:34:58]accept exits with 9 [06:34:58]New connection [06:34:58]New thread 3067055460 created [06:34:58]Thread 3067198820 joined [06:34:58]Waiting for new connection... [06:34:58] Sock 9.Parse request [06:34:58]Sock 9.Check first char [06:34:58]Sock 9.First char is OK [06:34:58]request: POST /json_proto HTTP/1.0 [06:34:58]Method: POST [06:34:58]URL: /json_proto [06:34:58]Method is POST - this is cgi request [06:34:58]url: /json_proto [06:34:58]query_string will be loaded in cgi processing [06:34:58]execute_cgi json_proto POST (null) [06:34:58]execute_cgi path=json_proto method=POST [06:34:58]POST find Content-Length [06:34:58]Host: 172.17.42.131:8080 [06:34:58]Content-Length: 688 [06:34:58]Content-Type: application/json [06:34:58] [06:34:58]POST finish read [06:34:58]Found Content-Length = 688 [06:34:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:34:58]execute_script... [06:34: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)210107", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:34:58]POST & json_proto [06:34:58]process_json_proto [06:34:58]json parsed OK: [06:34:58]protocol is kg_v1.0 [06:34:58]action value=close_receipt [06:34:58]process_action close_receipt [06:34:58]cmd_close_receipt [06:34:58]MH_GetDate [06:34:58]Write to MH i2c: F0 00 00 30 1D 3C [06:34:58]Write i2c OK [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: F0 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: F0 09 00 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: F0 09 00 30 1D 00 94 47 17 67 A0 18 CA 66 86 [06:34:58]GetLastDocTimeStamp 1729578795 [06:34:58]current date 1729578900 [06:34:58]FM_GetShiftState [06:34:58]SAM_PROTO_GetShiftState [06:34:58]wFMCommunicate request_size=4 [06:34:58]MH_SAM_APDU [06:34:58]CAPDU: 80 13 01 00 [06:34:58]Write to MH i2c: E2 08 00 31 1D 80 13 01 00 00 00 00 00 CB [06:34:58]Write i2c OK [06:34:58]MH_I2C_Read... [06:34:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:34:58]Read from MH i2c: E2 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: E2 0E 00 [06:34:58]MH_I2C_Read... [06:34:58]Read from MH i2c: E2 0E 00 31 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C0 [06:34:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:34:58]wFMCommunicate OK [06:34:58]SAM_PROTO_GetShiftState done [06:34:58]FM_GetShiftState done [06:34:58]opened in 1729556094 [06:34:58]opened+sec_in_day 1729642494 [06:34:58]quantity*price = 100051 [06:34:58]sum+1 = 100052 [06:34:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 84 22.10.2024 06:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188055 ФПД: 213196455063869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063500&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188055&fm=213196455063869&tin=02508201610067®Number=0000000000100030&sum=100000 [06:34:59]StoreToDocumentArchive [06:34:59]shift 461 fd 188055 [06:34:59]save to /storage/0461/doc_00188055 [06:34:59]save last doc name /storage/0461/doc_00188055 to /storage/kkm_last_doc_name [06:34:59]save OK [06:34:59]Clear old archive folders... [06:34:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:34:59]tlvbuf is 01C03C10 [06:34:59]SAM_PROTO_ClearQueue [06:34:59]wFMCommunicate request_size=4 [06:34:59]MH_SAM_APDU [06:34:59]CAPDU: 80 09 00 00 [06:34:59]Write to MH i2c: E2 08 00 3E 1D 80 09 00 00 00 00 00 00 CD [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:34:59]Read from MH i2c: E2 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 3E 1D 00 90 00 CF [06:34:59]RAPDU: 90 00 [06:34:59]wFMCommunicate OK [06:34:59]SAM_PROTO_ClearQueue done [06:34:59]KKMCreateOFDPacket [06:34:59]OFDProtocolAddRootSTLVToBuf [06:34:59]FM_MakeSignedData [06:34:59]FM_MakeSignedData [06:34:59]SAM_PROTO_SignData [06:34:59]wFMCommunicate request_size=4 [06:34:59]MH_SAM_APDU [06:34:59]CAPDU: 80 0D 01 02 [06:34:59]Write to MH i2c: E2 08 00 3F 1D 80 0D 01 02 00 00 00 00 D5 [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:34:59]Read from MH i2c: E2 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 3F 1D 00 90 00 D0 [06:34:59]RAPDU: 90 00 [06:34:59]wFMCommunicate OK [06:34:59]wFMCommunicate request_size=255 [06:34:59]MH_SAM_APDU [06:34:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 54 00 00 00 F4 03 04 00 94 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DE 02 [06:34:59]Write to MH i2c: E2 02 01 40 1D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 54 00 00 00 F4 03 04 00 94 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DE 02 00 00 24 [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:59]Read from MH i2c: E2 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 40 1D 00 90 00 D1 [06:34:59]RAPDU: 90 00 [06:34:59]wFMCommunicate OK [06:34:59]wFMCommunicate request_size=16 [06:34:59]MH_SAM_APDU [06:34:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C1 E6 AA F8 B1 3D [06:34:59]Write to MH i2c: E2 13 00 41 1D 80 0D 02 02 0B 00 00 35 04 06 00 C1 E6 AA F8 B1 3D 00 00 64 [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:34:59]Read from MH i2c: E2 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 03 00 41 1D 00 90 00 D2 [06:34:59]RAPDU: 90 00 [06:34:59]wFMCommunicate OK [06:34:59]wFMCommunicate request_size=4 [06:34:59]MH_SAM_APDU [06:34:59]CAPDU: 80 0D 03 02 [06:34:59]Write to MH i2c: E2 08 00 42 1D 80 0D 03 02 00 00 00 00 DA [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:34:59]Read from MH i2c: E2 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 0B 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 0B 00 42 1D 00 AC 32 0C D5 88 30 3D 1E 90 00 AD [06:34:59]RAPDU: AC 32 0C D5 88 30 3D 1E 90 00 [06:34:59]wFMCommunicate OK [06:34:59]SAM_PROTO_SignData done [06:34:59]FM_MakeSignedData done [06:34:59]CreateOFDProtocolMessage [06:34:59]wFMCommunicate request_size=4 [06:34:59]MH_SAM_APDU [06:34:59]CAPDU: 80 11 00 00 [06:34:59]Write to MH i2c: E2 08 00 43 1D 80 11 00 00 00 00 00 00 DA [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:34:59]Read from MH i2c: E2 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 17 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: E2 17 00 43 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [06:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:34:59]wFMCommunicate OK [06:34:59]CreateOFDProtocolMessage done [06:34:59]OFDSenderStorePacket 188055 [06:34:59]StoreOFDPacket docnum=188055 [06:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A8 D9 0D 01 99 E4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 54 00 00 00 F4 03 04 00 94 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DE 02 00 35 04 06 00 C1 E6 AA F8 B1 3D AC 32 0C D5 88 30 3D 1E [06:34:59]CheckFolder [06:34:59]dirname=/storage/ofd_packets [06:34:59]CheckFolder done [06:34:59]ProducePacketName [06:34:59]name=ofd_packets/00188055 [06:34:59]NVStorageSaveData ofd_packets/00188055 [06:34:59]File name is /storage/ofd_packets/00188055 [06:34:59]Write 307 bytes [06:34:59]NVStorageSaveData done [06:34:59]OFDSenderStorePacket done [06:34:59]KKMCreateOFDPacket done [06:34:59]NVStorageSaveData kkm_last_timestamp [06:34:59]File name is /storage/kkm_last_timestamp [06:34:59]Write 4 bytes [06:34:59]NVStorageSaveData done [06:34:59]ExternCall_PrintAddStr [06:34:59]wPrintStart [06:34:59]Write to MH i2c: 01 00 00 44 1D 61 [06:34:59]Write i2c OK [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: 01 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: 01 07 00 [06:34:59]MH_I2C_Read... [06:34:59]Read from MH i2c: 01 07 00 44 1D 00 00 00 00 00 FF 0F 76 [06:34:59]RasterBufferAndPrint [06:34:59]line Счет N : (1)210107 [06:34:59]line ИНН: 02508201610067 [06:34:59]line Контрольно-Кассовый Чек [06:34:59]line ПРОДАЖА [06:34:59]line ТРК (МРК, ГНК) : 11 [06:34:59]line Товар: 2710194210 [06:34:59]line D-ENERGY ДТ-К-5 [06:34:59]line 12.960 * 77.20 [06:34:59]line = 1000.51 [06:34:59]line НДС 12% НСП 1% [06:34:59]line > о реализуемом товаре [06:34:59]line ОКРУГЛЕНИЕ: -0.51 [06:34:59]line ИТОГО: 1000.00 [06:34:59]line Внесено: 1000.00 [06:34:59]line СДАЧА: 0.00 [06:34:59]line НСП 1% : 8.85 [06:34:59]line НДС 12% : 106.25 [06:34:59]line Наличными: 1000.00 [06:34:59]line Безнал.: 0.00 [06:34:59]line Место: АЗС № 86 "Партнер Нефть" [06:34:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:34:59]line СНО: Общий режим [06:34:59]line Чек 84 22.10.2024 06:35 [06:34:59]line Смена: 461 ФФД: 1.0 [06:34:59]line ЗНМ: 0300000155 [06:34:59]line РНМ: 0000000000100030 [06:34:59]line Версия ККМ: 001 [06:34:59]line ФМ: 0000000000965340 [06:34:59]line ФД: 188055 [06:34:59]line ФПД: 213196455063869 [06:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063500&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188055&fm=213196455063869&tin=02508201610067®Number=0000000000100030&sum=100000 [06:34:59]OFD Sender: Processing packet 188055 [packets to send 1062, broken 1061] [06:34:59]ProducePacketName [06:34:59]name=ofd_packets/00188055 [06:34:59]OFD Sender: To server: pG, [06:34:59]CommunicateWithHost lk.salyk.kg:30040 [06:34:59]ConnectInit lk.salyk.kg [06:34:59]written 0, free lines is 4095 [06:35:00]Connected sock=10 [06:35:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A8 D9 0D 01 99 E4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 54 00 00 00 F4 03 04 00 94 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DE 02 00 35 04 06 00 C1 E6 AA F8 B1 3D AC 32 0C D5 88 30 3D 1E [06:35:00]Write to MH i2c: 01 00 00 6F 1D 8C [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: 01 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: 01 07 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: 01 07 00 6F 1D 00 00 00 00 00 57 0C F6 [06:35:00]RasterBufferAndPrint [06:35:00]line [06:35:00]line [06:35:00]line [06:35:00]line [06:35:00]line [06:35:00]written 0, free lines is 3163 [06:35:00]MH_Cut [06:35:00]Write to MH i2c: D1 01 00 76 1D 01 65 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: D1 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: D1 01 00 [06:35:00]MH_I2C_Read... [06:35:00]Read from MH i2c: D1 01 00 76 1D 00 64 [06:35:00]Write to MH i2c: 01 00 00 77 1D 94 [06:35:00]Write i2c OK [06:35:00]MH_I2C_Read... [06:35:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5B 63 47 00 1E EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DE 02 00 F4 03 04 00 82 F1 16 67 B6 04 01 00 00 19 B2 27 31 29 33 DE 27 [06:35:00]CommunicateWithHost err = 0 [06:35:00]CheckOFDResponse [06:35:00]1017 (14) - 77093643461234 [06:35:00]1041 (16) - 0000000000965340 [06:35:00]1040 (4) - 188055 [06:35:00]1012 (4) - 22.10.2024 00:27 [06:35:00]1206 (1) - 0 [06:35:00]OFD Sender: Remove packet 188055 [06:35:00]ProducePacketName [06:35:00]name=ofd_packets/00188055 [06:35:00]NVStorageDeleteData [06:35:00]OFD Sender: No OFD packet to send [06:35:01]*** Cut start [06:35:01]*** Partial cut [06:35:01]*** CUTSNS_PIN = 1 [06:35:01]*** CUTSNS_PIN = 0 [06:35:01]*** Brake cut motor [06:35:02]Read from MH i2c: 01 [06:35:02]MH_I2C_Read... [06:35:02]*** Stop cut motor [06:35:02]*** Cut end [06:35:02]Read from MH i2c: 01 07 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: 01 07 00 77 1D 00 00 00 00 00 FF 0F A9 [06:35:02]process_action close_receipt done [06:35:02]requested_data is exist [06:35:02]produce_requested_data [06:35:02]requested_item fm.sn is exist - process it [06:35:02]wFMCommunicate request_size=4 [06:35:02]MH_SAM_APDU [06:35:02]CAPDU: 80 11 00 00 [06:35:02]Write to MH i2c: E2 08 00 78 1D 80 11 00 00 00 00 00 00 0F [06:35:02]Write i2c OK [06:35:02]MH_I2C_Read... [06:35:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:02]Read from MH i2c: E2 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 17 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 17 00 78 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [06:35:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:35:02]wFMCommunicate OK [06:35:02]requested_item fd.num is exist - process it [06:35:02]SAM_PROTO_GetFieldsCounters [06:35:02]wFMCommunicate request_size=4 [06:35:02]MH_SAM_APDU [06:35:02]CAPDU: 80 13 00 00 [06:35:02]Write to MH i2c: E2 08 00 79 1D 80 13 00 00 00 00 00 00 12 [06:35:02]Write i2c OK [06:35:02]MH_I2C_Read... [06:35:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:02]Read from MH i2c: E2 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 62 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 62 00 79 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 DE 02 00 0E 04 04 00 CD 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 5A [06:35:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 DE 02 00 0E 04 04 00 CD 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 [06:35:02]wFMCommunicate OK [06:35:02]SAM_PROTO_GetFieldsCounters done [06:35:02]requested_item shift.num is exist - process it [06:35:02]requested_item shift.opened is exist - process it [06:35:02]req_shift_opened [06:35:02]FM_GetShiftState [06:35:02]SAM_PROTO_GetShiftState [06:35:02]wFMCommunicate request_size=4 [06:35:02]MH_SAM_APDU [06:35:02]CAPDU: 80 13 01 00 [06:35:02]Write to MH i2c: E2 08 00 7A 1D 80 13 01 00 00 00 00 00 14 [06:35:02]Write i2c OK [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 [06:35:02]MH_I2C_Read... [06:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:02]Read from MH i2c: E2 0E 00 [06:35:02]MH_I2C_Read... [06:35:02]Read from MH i2c: E2 0E 00 7A 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 09 [06:35:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:35:02]wFMCommunicate OK [06:35:02]SAM_PROTO_GetShiftState done [06:35:02]FM_GetShiftState done [06:35:02]req_shift_opened done [06:35:02]requested_item shift.open_date is exist - process it [06:35:02]req_shift_open_date [06:35:02]req_shift_open_date done [06:35:02]produce_requested_data done [06:35:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188055,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:35:02]process_action_free close_receipt [06:35:02]json_value_free [06:35:02]json_value_free done [06:35:02]process_json_proto returns [06:35:02]Send response to host [06:35:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188055,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:35:02]free response buf [06:35:02]execute_script done [06:35:02]execute_script returns [06:35:02]free content buf [06:35:02]Sock 9.Close socket [06:35:02]Sock 9.Thread stoped [06:35:05]OFD Sender: No OFD packet to send [06:35:10]OFD Sender: No OFD packet to send [06:35:15]OFD Sender: No OFD packet to send [06:35:21]OFD Sender: No OFD packet to send [06:35:26]OFD Sender: No OFD packet to send [06:35:31]OFD Sender: No OFD packet to send [06:35:36]OFD Sender: No OFD packet to send [06:35:40]accept exits with 8 [06:35:40]New connection [06:35:40]New thread 3067198820 created [06:35:40]Thread 3067055460 joined [06:35:40]Waiting for new connection... [06:35:40] Sock 8.Parse request [06:35:40]Sock 8.Check first char [06:35:40]Sock 8.First char is OK [06:35:40]request: POST /json_proto HTTP/1.0 [06:35:40]Method: POST [06:35:40]URL: /json_proto [06:35:40]Method is POST - this is cgi request [06:35:40]url: /json_proto [06:35:40]query_string will be loaded in cgi processing [06:35:40]execute_cgi json_proto POST (null) [06:35:40]execute_cgi path=json_proto method=POST [06:35:40]POST find Content-Length [06:35:40]Host: 172.17.42.131:8080 [06:35:40]Content-Length: 677 [06:35:40]Content-Type: application/json [06:35:40] [06:35:40]POST finish read [06:35:40]Found Content-Length = 677 [06:35:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:40]execute_script... [06: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)210108", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:35:40]POST & json_proto [06:35:40]process_json_proto [06:35:40]json parsed OK: [06:35:40]protocol is kg_v1.0 [06:35:40]action value=close_receipt [06:35:40]process_action close_receipt [06:35:40]cmd_close_receipt [06:35:40]MH_GetDate [06:35:40]Write to MH i2c: F0 00 00 7B 1D 87 [06:35:40]Write i2c OK [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: F0 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: F0 09 00 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: F0 09 00 7B 1D 00 BE 47 17 67 A0 18 CA 66 FB [06:35:40]GetLastDocTimeStamp 1729578900 [06:35:40]current date 1729578942 [06:35:40]FM_GetShiftState [06:35:40]SAM_PROTO_GetShiftState [06:35:40]wFMCommunicate request_size=4 [06:35:40]MH_SAM_APDU [06:35:40]CAPDU: 80 13 01 00 [06:35:40]Write to MH i2c: E2 08 00 7C 1D 80 13 01 00 00 00 00 00 16 [06:35:40]Write i2c OK [06:35:40]MH_I2C_Read... [06:35:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:40]Read from MH i2c: E2 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 0E 00 [06:35:40]MH_I2C_Read... [06:35:40]Read from MH i2c: E2 0E 00 7C 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0B [06:35:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:35:40]wFMCommunicate OK [06:35:40]SAM_PROTO_GetShiftState done [06:35:40]FM_GetShiftState done [06:35:40]opened in 1729556094 [06:35:40]opened+sec_in_day 1729642494 [06:35:40]quantity*price = 50041 [06:35:40]sum+1 = 50042 [06:35:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 85 22.10.2024 06:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188056 ФПД: 20665417617688 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063542&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188056&fm=20665417617688&tin=02508201610067®Number=0000000000100030&sum=50000 [06:35:41]StoreToDocumentArchive [06:35:41]shift 461 fd 188056 [06:35:41]save to /storage/0461/doc_00188056 [06:35:41]save last doc name /storage/0461/doc_00188056 to /storage/kkm_last_doc_name [06:35:41]save OK [06:35:41]Clear old archive folders... [06:35:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:35:41]tlvbuf is 01BB3ED0 [06:35:41]SAM_PROTO_ClearQueue [06:35:41]wFMCommunicate request_size=4 [06:35:41]MH_SAM_APDU [06:35:41]CAPDU: 80 09 00 00 [06:35:41]Write to MH i2c: E2 08 00 89 1D 80 09 00 00 00 00 00 00 18 [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:35:41]Read from MH i2c: E2 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 89 1D 00 90 00 1A [06:35:41]RAPDU: 90 00 [06:35:41]wFMCommunicate OK [06:35:41]SAM_PROTO_ClearQueue done [06:35:41]KKMCreateOFDPacket [06:35:41]OFDProtocolAddRootSTLVToBuf [06:35:41]FM_MakeSignedData [06:35:41]FM_MakeSignedData [06:35:41]SAM_PROTO_SignData [06:35:41]wFMCommunicate request_size=4 [06:35:41]MH_SAM_APDU [06:35:41]CAPDU: 80 0D 01 02 [06:35:41]Write to MH i2c: E2 08 00 8A 1D 80 0D 01 02 00 00 00 00 20 [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:35:41]Read from MH i2c: E2 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 8A 1D 00 90 00 1B [06:35:41]RAPDU: 90 00 [06:35:41]wFMCommunicate OK [06:35:41]wFMCommunicate request_size=255 [06:35:41]MH_SAM_APDU [06: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BE 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DE 02 00 35 04 06 00 12 [06:35:41]Write to MH i2c: E2 02 01 8B 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BE 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DE 02 00 35 04 06 00 12 00 00 C3 [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:41]Read from MH i2c: E2 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 8B 1D 00 90 00 1C [06:35:41]RAPDU: 90 00 [06:35:41]wFMCommunicate OK [06:35:41]wFMCommunicate request_size=10 [06:35:41]MH_SAM_APDU [06:35:41]CAPDU: 80 0D 02 02 05 CB 8A E0 51 18 [06:35:41]Write to MH i2c: E2 0D 00 8C 1D 80 0D 02 02 05 00 CB 8A E0 51 18 00 00 CB [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:35:41]Read from MH i2c: E2 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 03 00 8C 1D 00 90 00 1D [06:35:41]RAPDU: 90 00 [06:35:41]wFMCommunicate OK [06:35:41]wFMCommunicate request_size=4 [06:35:41]MH_SAM_APDU [06:35:41]CAPDU: 80 0D 03 02 [06:35:41]Write to MH i2c: E2 08 00 8D 1D 80 0D 03 02 00 00 00 00 25 [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:35:41]Read from MH i2c: E2 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 0B 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 0B 00 8D 1D 00 54 BB F5 63 AF 59 D1 EB 90 00 51 [06:35:41]RAPDU: 54 BB F5 63 AF 59 D1 EB 90 00 [06:35:41]wFMCommunicate OK [06:35:41]SAM_PROTO_SignData done [06:35:41]FM_MakeSignedData done [06:35:41]CreateOFDProtocolMessage [06:35:41]wFMCommunicate request_size=4 [06:35:41]MH_SAM_APDU [06:35:41]CAPDU: 80 11 00 00 [06:35:41]Write to MH i2c: E2 08 00 8E 1D 80 11 00 00 00 00 00 00 25 [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:41]Read from MH i2c: E2 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 17 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: E2 17 00 8E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [06:35:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:35:41]wFMCommunicate OK [06:35:41]CreateOFDProtocolMessage done [06:35:41]OFDSenderStorePacket 188056 [06:35:41]StoreOFDPacket docnum=188056 [06:35:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 15 47 07 01 31 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BE 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DE 02 00 35 04 06 00 12 CB 8A E0 51 18 54 BB F5 63 AF 59 D1 EB [06:35:41]CheckFolder [06:35:41]dirname=/storage/ofd_packets [06:35:41]CheckFolder done [06:35:41]ProducePacketName [06:35:41]name=ofd_packets/00188056 [06:35:41]NVStorageSaveData ofd_packets/00188056 [06:35:41]File name is /storage/ofd_packets/00188056 [06:35:41]Write 301 bytes [06:35:41]NVStorageSaveData done [06:35:41]OFDSenderStorePacket done [06:35:41]KKMCreateOFDPacket done [06:35:41]NVStorageSaveData kkm_last_timestamp [06:35:41]File name is /storage/kkm_last_timestamp [06:35:41]Write 4 bytes [06:35:41]NVStorageSaveData done [06:35:41]ExternCall_PrintAddStr [06:35:41]wPrintStart [06:35:41]Write to MH i2c: 01 00 00 8F 1D AC [06:35:41]Write i2c OK [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: 01 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: 01 07 00 [06:35:41]MH_I2C_Read... [06:35:41]Read from MH i2c: 01 07 00 8F 1D 00 00 00 00 00 FF 0F C1 [06:35:41]RasterBufferAndPrint [06:35:41]line Счет N : (1)210108 [06:35:41]line ИНН: 02508201610067 [06:35:41]line Контрольно-Кассовый Чек [06:35:41]line ПРОДАЖА [06:35:41]line ТРК (МРК, ГНК) : 42 [06:35:41]line Товар: 2710124130 [06:35:41]line Аи-92-К-3 [06:35:41]line 7.480 * 66.90 [06:35:41]line = 500.41 [06:35:41]line НДС 12% НСП 1% [06:35:41]line > о реализуемом товаре [06:35:41]line ОКРУГЛЕНИЕ: -0.41 [06:35:41]line ИТОГО: 500.00 [06:35:41]line Внесено: 500.00 [06:35:41]line СДАЧА: 0.00 [06:35:41]line НСП 1% : 4.43 [06:35:41]line НДС 12% : 53.14 [06:35:41]line Наличными: 500.00 [06:35:41]line Безнал.: 0.00 [06:35:41]line Место: АЗС № 86 "Партнер Нефть" [06:35:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:35:41]line СНО: Общий режим [06:35:41]line Чек 85 22.10.2024 06:35 [06:35:41]line Смена: 461 ФФД: 1.0 [06:35:41]line ЗНМ: 0300000155 [06:35:41]line РНМ: 0000000000100030 [06:35:41]line Версия ККМ: 001 [06:35:41]line ФМ: 0000000000965340 [06:35:41]line ФД: 188056 [06:35:41]line ФПД: 20665417617688 [06:35:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063542&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188056&fm=20665417617688&tin=02508201610067®Number=0000000000100030&sum=50000 [06:35:41]written 0, free lines is 4095 [06:35:41]OFD Sender: Processing packet 188056 [packets to send 1062, broken 1061] [06:35:41]ProducePacketName [06:35:41]name=ofd_packets/00188056 [06:35:41]OFD Sender: To server: pG, [06:35:41]CommunicateWithHost lk.salyk.kg:30040 [06:35:41]ConnectInit lk.salyk.kg [06:35:42]Write to MH i2c: 01 00 00 BA 1D D7 [06:35:42]Write i2c OK [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: 01 [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: 01 07 00 [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: 01 07 00 BA 1D 00 00 00 00 00 55 0C 3F [06:35:42]RasterBufferAndPrint [06:35:42]line [06:35:42]line [06:35:42]line [06:35:42]line [06:35:42]line [06:35:42]written 0, free lines is 3160 [06:35:42]MH_Cut [06:35:42]Write to MH i2c: D1 01 00 C1 1D 01 B0 [06:35:42]Write i2c OK [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: D1 [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: D1 01 00 [06:35:42]MH_I2C_Read... [06:35:42]Read from MH i2c: D1 01 00 C1 1D 00 AF [06:35:42]Write to MH i2c: 01 00 00 C2 1D DF [06:35:42]Write i2c OK [06:35:42]MH_I2C_Read... [06:35:43]*** Cut start [06:35:43]*** Partial cut [06:35:43]*** CUTSNS_PIN = 1 [06:35:43]*** CUTSNS_PIN = 0 [06:35:43]*** Brake cut motor [06:35:44]Read from MH i2c: 01 [06:35:44]MH_I2C_Read... [06:35:44]*** Stop cut motor [06:35:44]*** Cut end [06:35:44]Read from MH i2c: 01 07 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: 01 07 00 C2 1D 00 00 00 00 00 FF 0F F4 [06:35:44]process_action close_receipt done [06:35:44]requested_data is exist [06:35:44]produce_requested_data [06:35:44]requested_item fm.sn is exist - process it [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 11 00 00 [06:35:44]Write to MH i2c: E2 08 00 C3 1D 80 11 00 00 00 00 00 00 5A [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 17 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 17 00 C3 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [06:35:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:35:44]wFMCommunicate OK [06:35:44]requested_item fd.num is exist - process it [06:35:44]SAM_PROTO_GetFieldsCounters [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 13 00 00 [06:35:44]Write to MH i2c: E2 08 00 C4 1D 80 13 00 00 00 00 00 00 5D [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 62 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 62 00 C4 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 DE 02 00 0E 04 04 00 CD 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 A9 [06:35:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 DE 02 00 0E 04 04 00 CD 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 [06:35:44]wFMCommunicate OK [06:35:44]SAM_PROTO_GetFieldsCounters done [06:35:44]requested_item shift.num is exist - process it [06:35:44]requested_item shift.opened is exist - process it [06:35:44]req_shift_opened [06:35:44]FM_GetShiftState [06:35:44]SAM_PROTO_GetShiftState [06:35:44]wFMCommunicate request_size=4 [06:35:44]MH_SAM_APDU [06:35:44]CAPDU: 80 13 01 00 [06:35:44]Write to MH i2c: E2 08 00 C5 1D 80 13 01 00 00 00 00 00 5F [06:35:44]Write i2c OK [06:35:44]MH_I2C_Read... [06:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:35:44]Read from MH i2c: E2 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 0E 00 [06:35:44]MH_I2C_Read... [06:35:44]Read from MH i2c: E2 0E 00 C5 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 54 [06:35:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:35:44]wFMCommunicate OK [06:35:44]SAM_PROTO_GetShiftState done [06:35:44]FM_GetShiftState done [06:35:44]req_shift_opened done [06:35:44]requested_item shift.open_date is exist - process it [06:35:44]req_shift_open_date [06:35:44]req_shift_open_date done [06:35:44]produce_requested_data done [06:35:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188056,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:35:44]process_action_free close_receipt [06:35:44]json_value_free [06:35:44]json_value_free done [06:35:44]process_json_proto returns [06:35:44]Send response to host [06:35:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188056,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:35:44]free response buf [06:35:44]execute_script done [06:35:44]execute_script returns [06:35:44]free content buf [06:35:44]Sock 8.Close socket [06:35:44]Sock 8.Thread stoped [06:37:54]ConnectInit Can't connect to host [06:37:54]CommunicateWithHost connect error [06:37:54]CommunicateWithHost err = -1 [06:37:54]OFD Sender: Server communicate error [06:37:59]OFD Sender: Processing packet 188056 [packets to send 1062, broken 1061] [06:37:59]ProducePacketName [06:37:59]name=ofd_packets/00188056 [06:37:59]OFD Sender: To server: pG, [06:37:59]CommunicateWithHost lk.salyk.kg:30040 [06:37:59]ConnectInit lk.salyk.kg [06:37:59]Connected sock=8 [06:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 15 47 07 01 31 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 00 00 00 F4 03 04 00 BE 47 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DE 02 00 35 04 06 00 12 CB 8A E0 51 18 54 BB F5 63 AF 59 D1 EB [06:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE 50 47 00 8F CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DE 02 00 F4 03 04 00 35 F2 16 67 B6 04 01 00 00 48 A9 1D BA 16 6C 17 EB [06:38:00]CommunicateWithHost err = 0 [06:38:00]CheckOFDResponse [06:38:00]1017 (14) - 77093643461234 [06:38:00]1041 (16) - 0000000000965340 [06:38:00]1040 (4) - 188056 [06:38:00]1012 (4) - 22.10.2024 00:30 [06:38:00]1206 (1) - 0 [06:38:00]OFD Sender: Remove packet 188056 [06:38:00]ProducePacketName [06:38:00]name=ofd_packets/00188056 [06:38:00]NVStorageDeleteData [06:38:00]OFD Sender: No OFD packet to send [06:38:05]OFD Sender: No OFD packet to send [06:38:10]OFD Sender: No OFD packet to send [06:38:15]OFD Sender: No OFD packet to send [06:38:20]OFD Sender: No OFD packet to send [06:38:25]OFD Sender: No OFD packet to send [06:38:30]OFD Sender: No OFD packet to send [06:38:35]OFD Sender: No OFD packet to send [06:38:40]OFD Sender: No OFD packet to send [06:38:46]OFD Sender: No OFD packet to send [06:38:51]OFD Sender: No OFD packet to send [06:38:56]OFD Sender: No OFD packet to send [06:39:01]OFD Sender: No OFD packet to send [06:39:06]OFD Sender: No OFD packet to send [06:39:11]OFD Sender: No OFD packet to send [06:39:16]OFD Sender: No OFD packet to send [06:39:21]OFD Sender: No OFD packet to send [06:39:26]OFD Sender: No OFD packet to send [06:39:31]OFD Sender: No OFD packet to send [06:39:33]accept exits with 9 [06:39:33]New connection [06:39:33]New thread 3067055460 created [06:39:33]Thread 3067198820 joined [06:39:33]Waiting for new connection... [06:39:33] Sock 9.Parse request [06:39:33]Sock 9.Check first char [06:39:33]Sock 9.First char is OK [06:39:33]request: POST /json_proto HTTP/1.0 [06:39:33]Method: POST [06:39:33]URL: /json_proto [06:39:33]Method is POST - this is cgi request [06:39:33]url: /json_proto [06:39:33]query_string will be loaded in cgi processing [06:39:33]execute_cgi json_proto POST (null) [06:39:33]execute_cgi path=json_proto method=POST [06:39:33]POST find Content-Length [06:39:33]Host: 172.17.42.131:8080 [06:39:33]Content-Length: 677 [06:39:33]Content-Type: application/json [06:39:33] [06:39:33]POST finish read [06:39:33]Found Content-Length = 677 [06:39:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210109", "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" : 5.400, "sum" : 400.68, "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" ] } } [06:39:33]execute_script... [06:39: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)210109", "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" : 5.400, "sum" : 400.68, "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" ] } } [06:39:33]POST & json_proto [06:39:33]process_json_proto [06:39:33]json parsed OK: [06:39:33]protocol is kg_v1.0 [06:39:33]action value=close_receipt [06:39:33]process_action close_receipt [06:39:33]cmd_close_receipt [06:39:33]MH_GetDate [06:39:33]Write to MH i2c: F0 00 00 C6 1D D2 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: F0 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: F0 09 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: F0 09 00 C6 1D 00 A7 48 17 67 A0 18 CA 66 30 [06:39:33]GetLastDocTimeStamp 1729578942 [06:39:33]current date 1729579175 [06:39:33]FM_GetShiftState [06:39:33]SAM_PROTO_GetShiftState [06:39:33]wFMCommunicate request_size=4 [06:39:33]MH_SAM_APDU [06:39:33]CAPDU: 80 13 01 00 [06:39:33]Write to MH i2c: E2 08 00 C7 1D 80 13 01 00 00 00 00 00 61 [06:39:33]Write i2c OK [06:39:33]MH_I2C_Read... [06:39:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:33]Read from MH i2c: E2 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 0E 00 [06:39:33]MH_I2C_Read... [06:39:33]Read from MH i2c: E2 0E 00 C7 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 56 [06:39:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:39:33]wFMCommunicate OK [06:39:33]SAM_PROTO_GetShiftState done [06:39:33]FM_GetShiftState done [06:39:33]opened in 1729556094 [06:39:33]opened+sec_in_day 1729642494 [06:39:33]quantity*price = 40068 [06:39:33]sum+1 = 40069 [06:39:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 86 22.10.2024 06:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188057 ФПД: 168854202062343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063935&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188057&fm=168854202062343&tin=02508201610067®Number=0000000000100030&sum=40000 [06:39:34]StoreToDocumentArchive [06:39:34]shift 461 fd 188057 [06:39:34]save to /storage/0461/doc_00188057 [06:39:34]save last doc name /storage/0461/doc_00188057 to /storage/kkm_last_doc_name [06:39:34]save OK [06:39:34]Clear old archive folders... [06:39:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:39:34]tlvbuf is 01BB7A50 [06:39:34]SAM_PROTO_ClearQueue [06:39:34]wFMCommunicate request_size=4 [06:39:34]MH_SAM_APDU [06:39:34]CAPDU: 80 09 00 00 [06:39:34]Write to MH i2c: E2 08 00 D4 1D 80 09 00 00 00 00 00 00 63 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:39:34]Read from MH i2c: E2 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 D4 1D 00 90 00 65 [06:39:34]RAPDU: 90 00 [06:39:34]wFMCommunicate OK [06:39:34]SAM_PROTO_ClearQueue done [06:39:34]KKMCreateOFDPacket [06:39:34]OFDProtocolAddRootSTLVToBuf [06:39:34]FM_MakeSignedData [06:39:34]FM_MakeSignedData [06:39:34]SAM_PROTO_SignData [06:39:34]wFMCommunicate request_size=4 [06:39:34]MH_SAM_APDU [06:39:34]CAPDU: 80 0D 01 02 [06:39:34]Write to MH i2c: E2 08 00 D5 1D 80 0D 01 02 00 00 00 00 6B [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:39:34]Read from MH i2c: E2 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 D5 1D 00 90 00 66 [06:39:34]RAPDU: 90 00 [06:39:34]wFMCommunicate OK [06:39:34]wFMCommunicate request_size=255 [06:39:34]MH_SAM_APDU [06:39:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 A7 48 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DE 02 00 35 04 06 00 99 [06:39:34]Write to MH i2c: E2 02 01 D6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 A7 48 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DE 02 00 35 04 06 00 99 00 00 30 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:34]Read from MH i2c: E2 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 D6 1D 00 90 00 67 [06:39:34]RAPDU: 90 00 [06:39:34]wFMCommunicate OK [06:39:34]wFMCommunicate request_size=10 [06:39:34]MH_SAM_APDU [06:39:34]CAPDU: 80 0D 02 02 05 92 6E BB 96 07 [06:39:34]Write to MH i2c: E2 0D 00 D7 1D 80 0D 02 02 05 00 92 6E BB 96 07 00 00 D0 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:39:34]Read from MH i2c: E2 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 03 00 D7 1D 00 90 00 68 [06:39:34]RAPDU: 90 00 [06:39:34]wFMCommunicate OK [06:39:34]wFMCommunicate request_size=4 [06:39:34]MH_SAM_APDU [06:39:34]CAPDU: 80 0D 03 02 [06:39:34]Write to MH i2c: E2 08 00 D8 1D 80 0D 03 02 00 00 00 00 70 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:39:34]Read from MH i2c: E2 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 0B 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 0B 00 D8 1D 00 49 49 0F D1 74 7A 56 58 90 00 7F [06:39:34]RAPDU: 49 49 0F D1 74 7A 56 58 90 00 [06:39:34]wFMCommunicate OK [06:39:34]SAM_PROTO_SignData done [06:39:34]FM_MakeSignedData done [06:39:34]CreateOFDProtocolMessage [06:39:34]wFMCommunicate request_size=4 [06:39:34]MH_SAM_APDU [06:39:34]CAPDU: 80 11 00 00 [06:39:34]Write to MH i2c: E2 08 00 D9 1D 80 11 00 00 00 00 00 00 70 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:34]Read from MH i2c: E2 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 17 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: E2 17 00 D9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [06:39:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:39:34]wFMCommunicate OK [06:39:34]CreateOFDProtocolMessage done [06:39:34]OFDSenderStorePacket 188057 [06:39:34]StoreOFDPacket docnum=188057 [06:39:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F5 E9 07 01 A0 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 A7 48 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DE 02 00 35 04 06 00 99 92 6E BB 96 07 49 49 0F D1 74 7A 56 58 [06:39:34]CheckFolder [06:39:34]dirname=/storage/ofd_packets [06:39:34]CheckFolder done [06:39:34]ProducePacketName [06:39:34]name=ofd_packets/00188057 [06:39:34]NVStorageSaveData ofd_packets/00188057 [06:39:34]File name is /storage/ofd_packets/00188057 [06:39:34]Write 301 bytes [06:39:34]NVStorageSaveData done [06:39:34]OFDSenderStorePacket done [06:39:34]KKMCreateOFDPacket done [06:39:34]NVStorageSaveData kkm_last_timestamp [06:39:34]File name is /storage/kkm_last_timestamp [06:39:34]Write 4 bytes [06:39:34]NVStorageSaveData done [06:39:34]ExternCall_PrintAddStr [06:39:34]wPrintStart [06:39:34]Write to MH i2c: 01 00 00 DA 1D F7 [06:39:34]Write i2c OK [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: 01 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: 01 07 00 [06:39:34]MH_I2C_Read... [06:39:34]Read from MH i2c: 01 07 00 DA 1D 00 00 00 00 00 FF 0F 0C [06:39:34]RasterBufferAndPrint [06:39:34]line Счет N : (1)210109 [06:39:34]line ИНН: 02508201610067 [06:39:34]line Контрольно-Кассовый Чек [06:39:34]line ПРОДАЖА [06:39:34]line ТРК (МРК, ГНК) : 33 [06:39:34]line Товар: 2710124500 [06:39:34]line Аи-95-К-3 [06:39:34]line 5.400 * 74.20 [06:39:34]line = 400.68 [06:39:34]line НДС 12% НСП 1% [06:39:34]line > о реализуемом товаре [06:39:34]line ОКРУГЛЕНИЕ: -0.68 [06:39:34]line ИТОГО: 400.00 [06:39:34]line Внесено: 400.00 [06:39:34]line СДАЧА: 0.00 [06:39:34]line НСП 1% : 3.55 [06:39:34]line НДС 12% : 42.55 [06:39:34]line Наличными: 400.00 [06:39:34]line Безнал.: 0.00 [06:39:34]line Место: АЗС № 86 "Партнер Нефть" [06:39:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:39:34]line СНО: Общий режим [06:39:34]line Чек 86 22.10.2024 06:39 [06:39:34]line Смена: 461 ФФД: 1.0 [06:39:34]line ЗНМ: 0300000155 [06:39:34]line РНМ: 0000000000100030 [06:39:34]line Версия ККМ: 001 [06:39:34]line ФМ: 0000000000965340 [06:39:34]line ФД: 188057 [06:39:34]line ФПД: 168854202062343 [06:39:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T063935&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188057&fm=168854202062343&tin=02508201610067®Number=0000000000100030&sum=40000 [06:39:34]written 0, free lines is 4095 [06:39:35]OFD Sender: Processing packet 188057 [packets to send 1062, broken 1061] [06:39:35]ProducePacketName [06:39:35]name=ofd_packets/00188057 [06:39:35]OFD Sender: To server: pG, [06:39:35]CommunicateWithHost lk.salyk.kg:30040 [06:39:35]ConnectInit lk.salyk.kg [06:39:35]Connected sock=10 [06:39:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F5 E9 07 01 A0 CA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 18 15 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 84 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 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 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 A7 48 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DE 02 00 35 04 06 00 99 92 6E BB 96 07 49 49 0F D1 74 7A 56 58 [06:39:35]Write to MH i2c: 01 00 00 05 1E 23 [06:39:35]Write i2c OK [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: 01 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: 01 07 00 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: 01 07 00 05 1E 00 00 00 00 00 57 0C 8D [06:39:35]RasterBufferAndPrint [06:39:35]line [06:39:35]line [06:39:35]line [06:39:35]line [06:39:35]line [06:39:35]written 0, free lines is 3162 [06:39:35]MH_Cut [06:39:35]Write to MH i2c: D1 01 00 0C 1E 01 FC [06:39:35]Write i2c OK [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: D1 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: D1 01 00 [06:39:35]MH_I2C_Read... [06:39:35]Read from MH i2c: D1 01 00 0C 1E 00 FB [06:39:35]Write to MH i2c: 01 00 00 0D 1E 2B [06:39:35]Write i2c OK [06:39:35]MH_I2C_Read... [06:39:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 0E 47 00 FD 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 39 36 35 33 34 30 10 04 04 00 99 DE 02 00 F4 03 04 00 95 F2 16 67 B6 04 01 00 00 9C C2 8C 3E 50 3A 3B CA [06:39:35]CommunicateWithHost err = 0 [06:39:35]CheckOFDResponse [06:39:35]1017 (14) - 77093643461234 [06:39:35]1041 (16) - 0000000000965340 [06:39:35]1040 (4) - 188057 [06:39:35]1012 (4) - 22.10.2024 00:32 [06:39:35]1206 (1) - 0 [06:39:35]OFD Sender: Remove packet 188057 [06:39:35]ProducePacketName [06:39:35]name=ofd_packets/00188057 [06:39:35]NVStorageDeleteData [06:39:36]OFD Sender: No OFD packet to send [06:39:36]*** Cut start [06:39:36]*** Partial cut [06:39:36]*** CUTSNS_PIN = 1 [06:39:36]*** CUTSNS_PIN = 0 [06:39:37]*** Brake cut motor [06:39:37]Read from MH i2c: 01 [06:39:37]MH_I2C_Read... [06:39:37]*** Stop cut motor [06:39:37]*** Cut end [06:39:37]Read from MH i2c: 01 07 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: 01 07 00 0D 1E 00 00 00 00 00 FF 0F 40 [06:39:37]process_action close_receipt done [06:39:37]requested_data is exist [06:39:37]produce_requested_data [06:39:37]requested_item fm.sn is exist - process it [06:39:37]wFMCommunicate request_size=4 [06:39:37]MH_SAM_APDU [06:39:37]CAPDU: 80 11 00 00 [06:39:37]Write to MH i2c: E2 08 00 0E 1E 80 11 00 00 00 00 00 00 A6 [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:39:37]Read from MH i2c: E2 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: E2 17 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: E2 17 00 0E 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [06:39:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:39:37]wFMCommunicate OK [06:39:37]requested_item fd.num is exist - process it [06:39:37]SAM_PROTO_GetFieldsCounters [06:39:37]wFMCommunicate request_size=4 [06:39:37]MH_SAM_APDU [06:39:37]CAPDU: 80 13 00 00 [06:39:37]Write to MH i2c: E2 08 00 0F 1E 80 13 00 00 00 00 00 00 A9 [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:39:37]Read from MH i2c: E2 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: E2 62 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: E2 62 00 0F 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 DE 02 00 0E 04 04 00 CD 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 F9 [06:39:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 DE 02 00 0E 04 04 00 CD 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 [06:39:37]wFMCommunicate OK [06:39:37]SAM_PROTO_GetFieldsCounters done [06:39:37]requested_item shift.num is exist - process it [06:39:37]requested_item shift.opened is exist - process it [06:39:37]req_shift_opened [06:39:37]FM_GetShiftState [06:39:37]SAM_PROTO_GetShiftState [06:39:37]wFMCommunicate request_size=4 [06:39:37]MH_SAM_APDU [06:39:37]CAPDU: 80 13 01 00 [06:39:37]Write to MH i2c: E2 08 00 10 1E 80 13 01 00 00 00 00 00 AB [06:39:37]Write i2c OK [06:39:37]MH_I2C_Read... [06:39:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:39:37]Read from MH i2c: E2 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: E2 0E 00 [06:39:37]MH_I2C_Read... [06:39:37]Read from MH i2c: E2 0E 00 10 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A0 [06:39:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:39:37]wFMCommunicate OK [06:39:37]SAM_PROTO_GetShiftState done [06:39:37]FM_GetShiftState done [06:39:37]req_shift_opened done [06:39:37]requested_item shift.open_date is exist - process it [06:39:37]req_shift_open_date [06:39:37]req_shift_open_date done [06:39:37]produce_requested_data done [06:39:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188057,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:39:37]process_action_free close_receipt [06:39:37]json_value_free [06:39:37]json_value_free done [06:39:37]process_json_proto returns [06:39:37]Send response to host [06:39:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188057,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:39:37]free response buf [06:39:37]execute_script done [06:39:37]execute_script returns [06:39:37]free content buf [06:39:37]Sock 9.Close socket [06:39:37]Sock 9.Thread stoped [06:39:41]OFD Sender: No OFD packet to send [06:39:46]OFD Sender: No OFD packet to send [06:39:51]OFD Sender: No OFD packet to send [06:39:56]OFD Sender: No OFD packet to send [06:40:01]OFD Sender: No OFD packet to send [06:40:06]OFD Sender: No OFD packet to send [06:40:11]OFD Sender: No OFD packet to send [06:40:16]OFD Sender: No OFD packet to send [06:40:21]OFD Sender: No OFD packet to send [06:40:26]OFD Sender: No OFD packet to send [06:40:31]OFD Sender: No OFD packet to send [06:40:36]OFD Sender: No OFD packet to send [06:40:41]OFD Sender: No OFD packet to send [06:40:46]OFD Sender: No OFD packet to send [06:40:51]OFD Sender: No OFD packet to send [06:40:56]OFD Sender: No OFD packet to send [06:41:01]OFD Sender: No OFD packet to send [06:41:06]OFD Sender: No OFD packet to send [06:41:11]OFD Sender: No OFD packet to send [06:41:16]OFD Sender: No OFD packet to send [06:41:21]OFD Sender: No OFD packet to send [06:41:26]OFD Sender: No OFD packet to send [06:41:31]OFD Sender: No OFD packet to send [06:41:36]OFD Sender: No OFD packet to send [06:41:41]OFD Sender: No OFD packet to send [06:41:46]OFD Sender: No OFD packet to send [06:41:51]OFD Sender: No OFD packet to send [06:41:56]OFD Sender: No OFD packet to send [06:42:01]OFD Sender: No OFD packet to send [06:42:06]OFD Sender: No OFD packet to send [06:42:11]OFD Sender: No OFD packet to send [06:42:16]OFD Sender: No OFD packet to send [06:42:21]OFD Sender: No OFD packet to send [06:42:26]OFD Sender: No OFD packet to send [06:42:31]OFD Sender: No OFD packet to send [06:42:36]OFD Sender: No OFD packet to send [06:42:41]OFD Sender: No OFD packet to send [06:42:46]OFD Sender: No OFD packet to send [06:42:51]OFD Sender: No OFD packet to send [06:42:56]OFD Sender: No OFD packet to send [06:43:02]OFD Sender: No OFD packet to send [06:43:07]OFD Sender: No OFD packet to send [06:43:12]OFD Sender: No OFD packet to send [06:43:17]OFD Sender: No OFD packet to send [06:43:22]OFD Sender: No OFD packet to send [06:43:27]OFD Sender: No OFD packet to send [06:43:32]OFD Sender: No OFD packet to send [06:43:37]OFD Sender: No OFD packet to send [06:43:42]OFD Sender: No OFD packet to send [06:43:47]OFD Sender: No OFD packet to send [06:43:52]OFD Sender: No OFD packet to send [06:43:57]OFD Sender: No OFD packet to send [06:44:02]OFD Sender: No OFD packet to send [06:44:07]OFD Sender: No OFD packet to send [06:44:12]OFD Sender: No OFD packet to send [06:44:17]OFD Sender: No OFD packet to send [06:44:22]OFD Sender: No OFD packet to send [06:44:27]OFD Sender: No OFD packet to send [06:44:32]OFD Sender: No OFD packet to send [06:44:37]OFD Sender: No OFD packet to send [06:44:42]OFD Sender: No OFD packet to send [06:44:47]OFD Sender: No OFD packet to send [06:44:49]accept exits with 8 [06:44:49]New connection [06:44:49]New thread 3067198820 created [06:44:49]Thread 3067055460 joined [06:44:49]Waiting for new connection... [06:44:49] Sock 8.Parse request [06:44:49]Sock 8.Check first char [06:44:49]Sock 8.First char is OK [06:44:49]request: POST /json_proto HTTP/1.0 [06:44:49]Method: POST [06:44:49]URL: /json_proto [06:44:49]Method is POST - this is cgi request [06:44:49]url: /json_proto [06:44:49]query_string will be loaded in cgi processing [06:44:49]execute_cgi json_proto POST (null) [06:44:49]execute_cgi path=json_proto method=POST [06:44:49]POST find Content-Length [06:44:49]Host: 172.17.42.131:8080 [06:44:49]Content-Length: 678 [06:44:49]Content-Type: application/json [06:44:49] [06:44:49]POST finish read [06:44:49]Found Content-Length = 678 [06:44:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:49]execute_script... [06:44:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210110", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:44:49]POST & json_proto [06:44:49]process_json_proto [06:44:49]json parsed OK: [06:44:49]protocol is kg_v1.0 [06:44:49]action value=close_receipt [06:44:49]process_action close_receipt [06:44:49]cmd_close_receipt [06:44:49]MH_GetDate [06:44:49]Write to MH i2c: F0 00 00 11 1E 1E [06:44:49]Write i2c OK [06:44:49]MH_I2C_Read... [06:44:49]Read from MH i2c: F0 [06:44:49]MH_I2C_Read... [06:44:49]Read from MH i2c: F0 09 00 [06:44:49]MH_I2C_Read... [06:44:49]Read from MH i2c: F0 09 00 11 1E 00 E3 49 17 67 A0 18 CA 66 B9 [06:44:49]GetLastDocTimeStamp 1729579175 [06:44:49]current date 1729579491 [06:44:49]FM_GetShiftState [06:44:49]SAM_PROTO_GetShiftState [06:44:49]wFMCommunicate request_size=4 [06:44:49]MH_SAM_APDU [06:44:49]CAPDU: 80 13 01 00 [06:44:49]Write to MH i2c: E2 08 00 12 1E 80 13 01 00 00 00 00 00 AD [06:44:49]Write i2c OK [06:44:49]MH_I2C_Read... [06:44:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:49]Read from MH i2c: E2 [06:44:49]MH_I2C_Read... [06:44:49]Read from MH i2c: E2 0E 00 [06:44:49]MH_I2C_Read... [06:44:49]Read from MH i2c: E2 0E 00 12 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A2 [06:44:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:44:49]wFMCommunicate OK [06:44:49]SAM_PROTO_GetShiftState done [06:44:49]FM_GetShiftState done [06:44:49]opened in 1729556094 [06:44:49]opened+sec_in_day 1729642494 [06:44:49]quantity*price = 70044 [06:44:49]sum+1 = 70045 [06:44:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 87 22.10.2024 06:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188058 ФПД: 184016353983079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188058&fm=184016353983079&tin=02508201610067®Number=0000000000100030&sum=70000 [06:44:50]StoreToDocumentArchive [06:44:50]shift 461 fd 188058 [06:44:50]save to /storage/0461/doc_00188058 [06:44:50]save last doc name /storage/0461/doc_00188058 to /storage/kkm_last_doc_name [06:44:50]save OK [06:44:50]Clear old archive folders... [06:44:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:44:50]tlvbuf is 01B91F50 [06:44:50]SAM_PROTO_ClearQueue [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 09 00 00 [06:44:50]Write to MH i2c: E2 08 00 1F 1E 80 09 00 00 00 00 00 00 AF [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 1F 1E 00 90 00 B1 [06:44:50]RAPDU: 90 00 [06:44:50]wFMCommunicate OK [06:44:50]SAM_PROTO_ClearQueue done [06:44:50]KKMCreateOFDPacket [06:44:50]OFDProtocolAddRootSTLVToBuf [06:44:50]FM_MakeSignedData [06:44:50]FM_MakeSignedData [06:44:50]SAM_PROTO_SignData [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 0D 01 02 [06:44:50]Write to MH i2c: E2 08 00 20 1E 80 0D 01 02 00 00 00 00 B7 [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 20 1E 00 90 00 B2 [06:44:50]RAPDU: 90 00 [06:44:50]wFMCommunicate OK [06:44:50]wFMCommunicate request_size=255 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E3 49 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DE 02 00 35 04 06 00 A7 [06:44:50]Write to MH i2c: E2 02 01 21 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E3 49 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DE 02 00 35 04 06 00 A7 00 00 2A [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 21 1E 00 90 00 B3 [06:44:50]RAPDU: 90 00 [06:44:50]wFMCommunicate OK [06:44:50]wFMCommunicate request_size=10 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 0D 02 02 05 5C A5 69 7A 67 [06:44:50]Write to MH i2c: E2 0D 00 22 1E 80 0D 02 02 05 00 5C A5 69 7A 67 00 00 0F [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:44:50]Read from MH i2c: E2 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 [06:44:50]MH_I2C_Read... [06:44:50]Read from MH i2c: E2 03 00 22 1E 00 90 00 B4 [06:44:50]RAPDU: 90 00 [06:44:50]wFMCommunicate OK [06:44:50]wFMCommunicate request_size=4 [06:44:50]MH_SAM_APDU [06:44:50]CAPDU: 80 0D 03 02 [06:44:50]Write to MH i2c: E2 08 00 23 1E 80 0D 03 02 00 00 00 00 BC [06:44:50]Write i2c OK [06:44:50]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 0B 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 0B 00 23 1E 00 B5 A5 27 96 E9 93 21 EA 90 00 5B [06:44:51]RAPDU: B5 A5 27 96 E9 93 21 EA 90 00 [06:44:51]wFMCommunicate OK [06:44:51]SAM_PROTO_SignData done [06:44:51]FM_MakeSignedData done [06:44:51]CreateOFDProtocolMessage [06:44:51]wFMCommunicate request_size=4 [06:44:51]MH_SAM_APDU [06:44:51]CAPDU: 80 11 00 00 [06:44:51]Write to MH i2c: E2 08 00 24 1E 80 11 00 00 00 00 00 00 BC [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:51]Read from MH i2c: E2 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 17 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: E2 17 00 24 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [06:44:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:44:51]wFMCommunicate OK [06:44:51]CreateOFDProtocolMessage done [06:44:51]OFDSenderStorePacket 188058 [06:44:51]StoreOFDPacket docnum=188058 [06:44:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 11 07 01 C3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E3 49 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DE 02 00 35 04 06 00 A7 5C A5 69 7A 67 B5 A5 27 96 E9 93 21 EA [06:44:51]CheckFolder [06:44:51]dirname=/storage/ofd_packets [06:44:51]CheckFolder done [06:44:51]ProducePacketName [06:44:51]name=ofd_packets/00188058 [06:44:51]NVStorageSaveData ofd_packets/00188058 [06:44:51]File name is /storage/ofd_packets/00188058 [06:44:51]Write 301 bytes [06:44:51]NVStorageSaveData done [06:44:51]OFDSenderStorePacket done [06:44:51]KKMCreateOFDPacket done [06:44:51]NVStorageSaveData kkm_last_timestamp [06:44:51]File name is /storage/kkm_last_timestamp [06:44:51]Write 4 bytes [06:44:51]NVStorageSaveData done [06:44:51]ExternCall_PrintAddStr [06:44:51]wPrintStart [06:44:51]Write to MH i2c: 01 00 00 25 1E 43 [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: 01 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: 01 07 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: 01 07 00 25 1E 00 00 00 00 00 FF 0F 58 [06:44:51]RasterBufferAndPrint [06:44:51]line Счет N : (1)210110 [06:44:51]line ИНН: 02508201610067 [06:44:51]line Контрольно-Кассовый Чек [06:44:51]line ПРОДАЖА [06:44:51]line ТРК (МРК, ГНК) : 42 [06:44:51]line Товар: 2710124130 [06:44:51]line Аи-92-К-3 [06:44:51]line 10.470 * 66.90 [06:44:51]line = 700.44 [06:44:51]line НДС 12% НСП 1% [06:44:51]line > о реализуемом товаре [06:44:51]line ОКРУГЛЕНИЕ: -0.44 [06:44:51]line ИТОГО: 700.00 [06:44:51]line Внесено: 700.00 [06:44:51]line СДАЧА: 0.00 [06:44:51]line НСП 1% : 6.20 [06:44:51]line НДС 12% : 74.38 [06:44:51]line Наличными: 700.00 [06:44:51]line Безнал.: 0.00 [06:44:51]line Место: АЗС № 86 "Партнер Нефть" [06:44:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:44:51]line СНО: Общий режим [06:44:51]line Чек 87 22.10.2024 06:44 [06:44:51]line Смена: 461 ФФД: 1.0 [06:44:51]line ЗНМ: 0300000155 [06:44:51]line РНМ: 0000000000100030 [06:44:51]line Версия ККМ: 001 [06:44:51]line ФМ: 0000000000965340 [06:44:51]line ФД: 188058 [06:44:51]line ФПД: 184016353983079 [06:44:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188058&fm=184016353983079&tin=02508201610067®Number=0000000000100030&sum=70000 [06:44:51]written 0, free lines is 4095 [06:44:51]OFD Sender: Processing packet 188058 [packets to send 1062, broken 1061] [06:44:51]ProducePacketName [06:44:51]name=ofd_packets/00188058 [06:44:51]OFD Sender: To server: pG, [06:44:51]CommunicateWithHost lk.salyk.kg:30040 [06:44:51]ConnectInit lk.salyk.kg [06:44:51]Connected sock=9 [06:44:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 11 07 01 C3 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 00 00 00 F4 03 04 00 E3 49 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DE 02 00 35 04 06 00 A7 5C A5 69 7A 67 B5 A5 27 96 E9 93 21 EA [06:44:51]Write to MH i2c: 01 00 00 50 1E 6E [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: 01 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: 01 07 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: 01 07 00 50 1E 00 00 00 00 00 59 0C DA [06:44:51]RasterBufferAndPrint [06:44:51]line [06:44:51]line [06:44:51]line [06:44:51]line [06:44:51]line [06:44:51]written 0, free lines is 3165 [06:44:51]MH_Cut [06:44:51]Write to MH i2c: D1 01 00 57 1E 01 47 [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: D1 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: D1 01 00 [06:44:51]MH_I2C_Read... [06:44:51]Read from MH i2c: D1 01 00 57 1E 00 46 [06:44:51]Write to MH i2c: 01 00 00 58 1E 76 [06:44:51]Write i2c OK [06:44:51]MH_I2C_Read... [06:44:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 BC 47 00 16 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 39 36 35 33 34 30 10 04 04 00 9A DE 02 00 F4 03 04 00 D1 F3 16 67 B6 04 01 00 00 97 96 83 39 9A 71 97 FF [06:44:51]CommunicateWithHost err = 0 [06:44:51]CheckOFDResponse [06:44:51]1017 (14) - 77093643461234 [06:44:51]1041 (16) - 0000000000965340 [06:44:51]1040 (4) - 188058 [06:44:51]1012 (4) - 22.10.2024 00:37 [06:44:51]1206 (1) - 0 [06:44:51]OFD Sender: Remove packet 188058 [06:44:51]ProducePacketName [06:44:51]name=ofd_packets/00188058 [06:44:51]NVStorageDeleteData [06:44:52]OFD Sender: No OFD packet to send [06:44:52]*** Cut start [06:44:52]*** Partial cut [06:44:52]*** CUTSNS_PIN = 1 [06:44:52]*** CUTSNS_PIN = 0 [06:44:53]*** Brake cut motor [06:44:53]Read from MH i2c: 01 [06:44:53]MH_I2C_Read... [06:44:53]*** Stop cut motor [06:44:53]*** Cut end [06:44:53]Read from MH i2c: 01 07 00 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: 01 07 00 58 1E 00 00 00 00 00 FF 0F 8B [06:44:53]process_action close_receipt done [06:44:53]requested_data is exist [06:44:53]produce_requested_data [06:44:53]requested_item fm.sn is exist - process it [06:44:53]wFMCommunicate request_size=4 [06:44:53]MH_SAM_APDU [06:44:53]CAPDU: 80 11 00 00 [06:44:53]Write to MH i2c: E2 08 00 59 1E 80 11 00 00 00 00 00 00 F1 [06:44:53]Write i2c OK [06:44:53]MH_I2C_Read... [06:44:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:44:53]Read from MH i2c: E2 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: E2 17 00 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: E2 17 00 59 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [06:44:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:44:53]wFMCommunicate OK [06:44:53]requested_item fd.num is exist - process it [06:44:53]SAM_PROTO_GetFieldsCounters [06:44:53]wFMCommunicate request_size=4 [06:44:53]MH_SAM_APDU [06:44:53]CAPDU: 80 13 00 00 [06:44:53]Write to MH i2c: E2 08 00 5A 1E 80 13 00 00 00 00 00 00 F4 [06:44:53]Write i2c OK [06:44:53]MH_I2C_Read... [06:44:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:44:53]Read from MH i2c: E2 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: E2 62 00 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: E2 62 00 5A 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A DE 02 00 0E 04 04 00 CD 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 48 [06:44:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A DE 02 00 0E 04 04 00 CD 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 [06:44:53]wFMCommunicate OK [06:44:53]SAM_PROTO_GetFieldsCounters done [06:44:53]requested_item shift.num is exist - process it [06:44:53]requested_item shift.opened is exist - process it [06:44:53]req_shift_opened [06:44:53]FM_GetShiftState [06:44:53]SAM_PROTO_GetShiftState [06:44:53]wFMCommunicate request_size=4 [06:44:53]MH_SAM_APDU [06:44:53]CAPDU: 80 13 01 00 [06:44:53]Write to MH i2c: E2 08 00 5B 1E 80 13 01 00 00 00 00 00 F6 [06:44:53]Write i2c OK [06:44:53]MH_I2C_Read... [06:44:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:44:53]Read from MH i2c: E2 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: E2 0E 00 [06:44:53]MH_I2C_Read... [06:44:53]Read from MH i2c: E2 0E 00 5B 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [06:44:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:44:53]wFMCommunicate OK [06:44:53]SAM_PROTO_GetShiftState done [06:44:53]FM_GetShiftState done [06:44:53]req_shift_opened done [06:44:53]requested_item shift.open_date is exist - process it [06:44:53]req_shift_open_date [06:44:53]req_shift_open_date done [06:44:53]produce_requested_data done [06:44:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188058,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:44:53]process_action_free close_receipt [06:44:53]json_value_free [06:44:53]json_value_free done [06:44:53]process_json_proto returns [06:44:53]Send response to host [06:44:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188058,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:44:53]free response buf [06:44:53]execute_script done [06:44:53]execute_script returns [06:44:53]free content buf [06:44:53]Sock 8.Close socket [06:44:53]Sock 8.Thread stoped [06:44:57]OFD Sender: No OFD packet to send [06:45:02]OFD Sender: No OFD packet to send [06:45:07]OFD Sender: No OFD packet to send [06:45:12]OFD Sender: No OFD packet to send [06:45:17]OFD Sender: No OFD packet to send [06:45:22]OFD Sender: No OFD packet to send [06:45:27]OFD Sender: No OFD packet to send [06:45:32]OFD Sender: No OFD packet to send [06:45:37]OFD Sender: No OFD packet to send [06:45:42]OFD Sender: No OFD packet to send [06:45:47]OFD Sender: No OFD packet to send [06:45:52]OFD Sender: No OFD packet to send [06:45:57]OFD Sender: No OFD packet to send [06:46:02]OFD Sender: No OFD packet to send [06:46:07]OFD Sender: No OFD packet to send [06:46:12]OFD Sender: No OFD packet to send [06:46:17]OFD Sender: No OFD packet to send [06:46:22]OFD Sender: No OFD packet to send [06:46:27]OFD Sender: No OFD packet to send [06:46:32]OFD Sender: No OFD packet to send [06:46:37]OFD Sender: No OFD packet to send [06:46:42]OFD Sender: No OFD packet to send [06:46:47]OFD Sender: No OFD packet to send [06:46:52]OFD Sender: No OFD packet to send [06:46:57]OFD Sender: No OFD packet to send [06:47:02]OFD Sender: No OFD packet to send [06:47:07]OFD Sender: No OFD packet to send [06:47:12]OFD Sender: No OFD packet to send [06:47:17]OFD Sender: No OFD packet to send [06:47:22]OFD Sender: No OFD packet to send [06:47:27]OFD Sender: No OFD packet to send [06:47:32]OFD Sender: No OFD packet to send [06:47:37]OFD Sender: No OFD packet to send [06:47:42]OFD Sender: No OFD packet to send [06:47:48]OFD Sender: No OFD packet to send [06:47:53]OFD Sender: No OFD packet to send [06:47:58]OFD Sender: No OFD packet to send [06:48:03]OFD Sender: No OFD packet to send [06:48:08]OFD Sender: No OFD packet to send [06:48:13]OFD Sender: No OFD packet to send [06:48:18]OFD Sender: No OFD packet to send [06:48:23]OFD Sender: No OFD packet to send [06:48:28]OFD Sender: No OFD packet to send [06:48:33]OFD Sender: No OFD packet to send [06:48:38]OFD Sender: No OFD packet to send [06:48:43]OFD Sender: No OFD packet to send [06:48:48]OFD Sender: No OFD packet to send [06:48:53]OFD Sender: No OFD packet to send [06:48:58]OFD Sender: No OFD packet to send [06:49:03]OFD Sender: No OFD packet to send [06:49:08]OFD Sender: No OFD packet to send [06:49:13]OFD Sender: No OFD packet to send [06:49:16]accept exits with 10 [06:49:16]New connection [06:49:16]New thread 3067055460 created [06:49:16]Thread 3067198820 joined [06:49:16]Waiting for new connection... [06:49:16] Sock 10.Parse request [06:49:16]Sock 10.Check first char [06:49:16]Sock 10.First char is OK [06:49:16]request: POST /json_proto HTTP/1.0 [06:49:16]Method: POST [06:49:16]URL: /json_proto [06:49:16]Method is POST - this is cgi request [06:49:16]url: /json_proto [06:49:16]query_string will be loaded in cgi processing [06:49:16]execute_cgi json_proto POST (null) [06:49:16]execute_cgi path=json_proto method=POST [06:49:16]POST find Content-Length [06:49:16]Host: 172.17.42.131:8080 [06:49:16]Content-Length: 688 [06:49:16]Content-Type: application/json [06:49:16] [06:49:16]POST finish read [06:49:16]Found Content-Length = 688 [06:49:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [06:49:16]execute_script... [06:49:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210111", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [06:49:16]POST & json_proto [06:49:16]process_json_proto [06:49:16]json parsed OK: [06:49:16]protocol is kg_v1.0 [06:49:16]action value=close_receipt [06:49:16]process_action close_receipt [06:49:16]cmd_close_receipt [06:49:16]MH_GetDate [06:49:16]Write to MH i2c: F0 00 00 5C 1E 69 [06:49:16]Write i2c OK [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: F0 [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: F0 09 00 [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: F0 09 00 5C 1E 00 EE 4A 17 67 A0 18 CA 66 10 [06:49:16]GetLastDocTimeStamp 1729579491 [06:49:16]current date 1729579758 [06:49:16]FM_GetShiftState [06:49:16]SAM_PROTO_GetShiftState [06:49:16]wFMCommunicate request_size=4 [06:49:16]MH_SAM_APDU [06:49:16]CAPDU: 80 13 01 00 [06:49:16]Write to MH i2c: E2 08 00 5D 1E 80 13 01 00 00 00 00 00 F8 [06:49:16]Write i2c OK [06:49:16]MH_I2C_Read... [06:49:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:16]Read from MH i2c: E2 [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: E2 0E 00 [06:49:16]MH_I2C_Read... [06:49:16]Read from MH i2c: E2 0E 00 5D 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 ED [06:49:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:49:16]wFMCommunicate OK [06:49:16]SAM_PROTO_GetShiftState done [06:49:16]FM_GetShiftState done [06:49:16]opened in 1729556094 [06:49:16]opened+sec_in_day 1729642494 [06:49:16]quantity*price = 200025 [06:49:16]sum+1 = 200026 [06:49:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 88 22.10.2024 06:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188059 ФПД: 48693408845542 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064918&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188059&fm=48693408845542&tin=02508201610067®Number=0000000000100030&sum=200000 [06:49:17]StoreToDocumentArchive [06:49:17]shift 461 fd 188059 [06:49:17]save to /storage/0461/doc_00188059 [06:49:17]save last doc name /storage/0461/doc_00188059 to /storage/kkm_last_doc_name [06:49:17]save OK [06:49:17]Clear old archive folders... [06:49:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:49:17]tlvbuf is 01BCFF40 [06:49:17]SAM_PROTO_ClearQueue [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 09 00 00 [06:49:17]Write to MH i2c: E2 08 00 6A 1E 80 09 00 00 00 00 00 00 FA [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 6A 1E 00 90 00 FC [06:49:17]RAPDU: 90 00 [06:49:17]wFMCommunicate OK [06:49:17]SAM_PROTO_ClearQueue done [06:49:17]KKMCreateOFDPacket [06:49:17]OFDProtocolAddRootSTLVToBuf [06:49:17]FM_MakeSignedData [06:49:17]FM_MakeSignedData [06:49:17]SAM_PROTO_SignData [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 0D 01 02 [06:49:17]Write to MH i2c: E2 08 00 6B 1E 80 0D 01 02 00 00 00 00 02 [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 6B 1E 00 90 00 FD [06:49:17]RAPDU: 90 00 [06:49:17]wFMCommunicate OK [06:49:17]wFMCommunicate request_size=255 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 58 00 00 00 F4 03 04 00 EE 4A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DE 02 [06:49:17]Write to MH i2c: E2 02 01 6C 1E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 58 00 00 00 F4 03 04 00 EE 4A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DE 02 00 00 FA [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 6C 1E 00 90 00 FE [06:49:17]RAPDU: 90 00 [06:49:17]wFMCommunicate OK [06:49:17]wFMCommunicate request_size=16 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2C 49 51 56 4E E6 [06:49:17]Write to MH i2c: E2 13 00 6D 1E 80 0D 02 02 0B 00 00 35 04 06 00 2C 49 51 56 4E E6 00 00 AA [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 03 00 6D 1E 00 90 00 FF [06:49:17]RAPDU: 90 00 [06:49:17]wFMCommunicate OK [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 0D 03 02 [06:49:17]Write to MH i2c: E2 08 00 6E 1E 80 0D 03 02 00 00 00 00 07 [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 0B 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 0B 00 6E 1E 00 2D 3A 53 A9 EE A5 64 36 90 00 98 [06:49:17]RAPDU: 2D 3A 53 A9 EE A5 64 36 90 00 [06:49:17]wFMCommunicate OK [06:49:17]SAM_PROTO_SignData done [06:49:17]FM_MakeSignedData done [06:49:17]CreateOFDProtocolMessage [06:49:17]wFMCommunicate request_size=4 [06:49:17]MH_SAM_APDU [06:49:17]CAPDU: 80 11 00 00 [06:49:17]Write to MH i2c: E2 08 00 6F 1E 80 11 00 00 00 00 00 00 07 [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:17]Read from MH i2c: E2 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 17 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: E2 17 00 6F 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [06:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:49:17]wFMCommunicate OK [06:49:17]CreateOFDProtocolMessage done [06:49:17]OFDSenderStorePacket 188059 [06:49:17]StoreOFDPacket docnum=188059 [06:49:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D C1 0D 01 3F E5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 58 00 00 00 F4 03 04 00 EE 4A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DE 02 00 35 04 06 00 2C 49 51 56 4E E6 2D 3A 53 A9 EE A5 64 36 [06:49:17]CheckFolder [06:49:17]dirname=/storage/ofd_packets [06:49:17]CheckFolder done [06:49:17]ProducePacketName [06:49:17]name=ofd_packets/00188059 [06:49:17]NVStorageSaveData ofd_packets/00188059 [06:49:17]File name is /storage/ofd_packets/00188059 [06:49:17]Write 307 bytes [06:49:17]NVStorageSaveData done [06:49:17]OFDSenderStorePacket done [06:49:17]KKMCreateOFDPacket done [06:49:17]NVStorageSaveData kkm_last_timestamp [06:49:17]File name is /storage/kkm_last_timestamp [06:49:17]Write 4 bytes [06:49:17]NVStorageSaveData done [06:49:17]ExternCall_PrintAddStr [06:49:17]wPrintStart [06:49:17]Write to MH i2c: 01 00 00 70 1E 8E [06:49:17]Write i2c OK [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: 01 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: 01 07 00 [06:49:17]MH_I2C_Read... [06:49:17]Read from MH i2c: 01 07 00 70 1E 00 00 00 00 00 FF 0F A3 [06:49:17]RasterBufferAndPrint [06:49:17]line Счет N : (1)210111 [06:49:17]line ИНН: 02508201610067 [06:49:17]line Контрольно-Кассовый Чек [06:49:17]line ПРОДАЖА [06:49:17]line ТРК (МРК, ГНК) : 31 [06:49:17]line Товар: 2710194210 [06:49:17]line D-ENERGY ДТ-К-5 [06:49:17]line 25.910 * 77.20 [06:49:17]line = 2000.25 [06:49:17]line НДС 12% НСП 1% [06:49:17]line > о реализуемом товаре [06:49:17]line ОКРУГЛЕНИЕ: -0.25 [06:49:17]line ИТОГО: 2000.00 [06:49:17]line Внесено: 2000.00 [06:49:17]line СДАЧА: 0.00 [06:49:17]line НСП 1% : 17.70 [06:49:17]line НДС 12% : 212.42 [06:49:17]line Наличными: 2000.00 [06:49:17]line Безнал.: 0.00 [06:49:17]line Место: АЗС № 86 "Партнер Нефть" [06:49:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:49:17]line СНО: Общий режим [06:49:17]line Чек 88 22.10.2024 06:49 [06:49:17]line Смена: 461 ФФД: 1.0 [06:49:17]line ЗНМ: 0300000155 [06:49:17]line РНМ: 0000000000100030 [06:49:17]line Версия ККМ: 001 [06:49:17]line ФМ: 0000000000965340 [06:49:17]line ФД: 188059 [06:49:17]line ФПД: 48693408845542 [06:49:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T064918&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188059&fm=48693408845542&tin=02508201610067®Number=0000000000100030&sum=200000 [06:49:17]written 0, free lines is 4095 [06:49:18]OFD Sender: Processing packet 188059 [packets to send 1062, broken 1061] [06:49:18]ProducePacketName [06:49:18]name=ofd_packets/00188059 [06:49:18]OFD Sender: To server: pG, [06:49:18]CommunicateWithHost lk.salyk.kg:30040 [06:49:18]ConnectInit lk.salyk.kg [06:49:18]Connected sock=9 [06:49:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D C1 0D 01 3F E5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 58 00 00 00 F4 03 04 00 EE 4A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DE 02 00 35 04 06 00 2C 49 51 56 4E E6 2D 3A 53 A9 EE A5 64 36 [06:49:18]Write to MH i2c: 01 00 00 9B 1E B9 [06:49:18]Write i2c OK [06:49:18]MH_I2C_Read... [06:49:18]Read from MH i2c: 01 [06:49:18]MH_I2C_Read... [06:49:18]Read from MH i2c: 01 07 00 [06:49:18]MH_I2C_Read... [06:49:18]Read from MH i2c: 01 07 00 9B 1E 00 00 00 00 00 58 0C 24 [06:49:18]RasterBufferAndPrint [06:49:18]line [06:49:18]line [06:49:18]line [06:49:18]line [06:49:18]line [06:49:18]written 0, free lines is 3163 [06:49:18]MH_Cut [06:49:18]Write to MH i2c: D1 01 00 A2 1E 01 92 [06:49:18]Write i2c OK [06:49:18]MH_I2C_Read... [06:49:18]Read from MH i2c: D1 [06:49:18]MH_I2C_Read... [06:49:18]Read from MH i2c: D1 01 00 [06:49:18]MH_I2C_Read... [06:49:18]Read from MH i2c: D1 01 00 A2 1E 00 91 [06:49:18]Write to MH i2c: 01 00 00 A3 1E C1 [06:49:18]Write i2c OK [06:49:18]MH_I2C_Read... [06:49:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0F 3B 47 00 F7 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DE 02 00 F4 03 04 00 DC F4 16 67 B6 04 01 00 00 08 56 43 C5 BD F3 59 49 [06:49:18]CommunicateWithHost err = 0 [06:49:18]CheckOFDResponse [06:49:18]1017 (14) - 77093643461234 [06:49:18]1041 (16) - 0000000000965340 [06:49:18]1040 (4) - 188059 [06:49:18]1012 (4) - 22.10.2024 00:42 [06:49:18]1206 (1) - 0 [06:49:18]OFD Sender: Remove packet 188059 [06:49:18]ProducePacketName [06:49:18]name=ofd_packets/00188059 [06:49:18]NVStorageDeleteData [06:49:19]OFD Sender: No OFD packet to send [06:49:19]*** Cut start [06:49:19]*** Partial cut [06:49:19]*** CUTSNS_PIN = 1 [06:49:19]*** CUTSNS_PIN = 0 [06:49:20]*** Brake cut motor [06:49:20]Read from MH i2c: 01 [06:49:20]MH_I2C_Read... [06:49:20]*** Stop cut motor [06:49:20]*** Cut end [06:49:20]Read from MH i2c: 01 07 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: 01 07 00 A3 1E 00 00 00 00 00 FF 0F D6 [06:49:20]process_action close_receipt done [06:49:20]requested_data is exist [06:49:20]produce_requested_data [06:49:20]requested_item fm.sn is exist - process it [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 11 00 00 [06:49:20]Write to MH i2c: E2 08 00 A4 1E 80 11 00 00 00 00 00 00 3C [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 17 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 17 00 A4 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [06:49:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:49:20]wFMCommunicate OK [06:49:20]requested_item fd.num is exist - process it [06:49:20]SAM_PROTO_GetFieldsCounters [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 13 00 00 [06:49:20]Write to MH i2c: E2 08 00 A5 1E 80 13 00 00 00 00 00 00 3F [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 62 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 62 00 A5 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B DE 02 00 0E 04 04 00 CD 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 97 [06:49:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B DE 02 00 0E 04 04 00 CD 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 [06:49:20]wFMCommunicate OK [06:49:20]SAM_PROTO_GetFieldsCounters done [06:49:20]requested_item shift.num is exist - process it [06:49:20]requested_item shift.opened is exist - process it [06:49:20]req_shift_opened [06:49:20]FM_GetShiftState [06:49:20]SAM_PROTO_GetShiftState [06:49:20]wFMCommunicate request_size=4 [06:49:20]MH_SAM_APDU [06:49:20]CAPDU: 80 13 01 00 [06:49:20]Write to MH i2c: E2 08 00 A6 1E 80 13 01 00 00 00 00 00 41 [06:49:20]Write i2c OK [06:49:20]MH_I2C_Read... [06:49:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:49:20]Read from MH i2c: E2 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 0E 00 [06:49:20]MH_I2C_Read... [06:49:20]Read from MH i2c: E2 0E 00 A6 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [06:49:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:49:20]wFMCommunicate OK [06:49:20]SAM_PROTO_GetShiftState done [06:49:20]FM_GetShiftState done [06:49:20]req_shift_opened done [06:49:20]requested_item shift.open_date is exist - process it [06:49:20]req_shift_open_date [06:49:20]req_shift_open_date done [06:49:20]produce_requested_data done [06:49:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188059,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:49:20]process_action_free close_receipt [06:49:20]json_value_free [06:49:20]json_value_free done [06:49:20]process_json_proto returns [06:49:20]Send response to host [06:49:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188059,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:49:20]free response buf [06:49:20]execute_script done [06:49:20]execute_script returns [06:49:20]free content buf [06:49:20]Sock 10.Close socket [06:49:20]Sock 10.Thread stoped [06:49:24]OFD Sender: No OFD packet to send [06:49:29]OFD Sender: No OFD packet to send [06:49:34]OFD Sender: No OFD packet to send [06:49:39]OFD Sender: No OFD packet to send [06:49:44]OFD Sender: No OFD packet to send [06:49:49]OFD Sender: No OFD packet to send [06:49:54]OFD Sender: No OFD packet to send [06:49:59]OFD Sender: No OFD packet to send [06:50:04]OFD Sender: No OFD packet to send [06:50:09]OFD Sender: No OFD packet to send [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:04]OFD Sender: No OFD packet to send [06:52:09]OFD Sender: No OFD packet to send [06:52:14]OFD Sender: No OFD packet to send [06:52:19]OFD Sender: No OFD packet to send [06:52:24]OFD Sender: No OFD packet to send [06:52:29]OFD Sender: No OFD packet to send [06:52:35]OFD Sender: No OFD packet to send [06:52:40]OFD Sender: No OFD packet to send [06:52:45]OFD Sender: No OFD packet to send [06:52:50]OFD Sender: No OFD packet to send [06:52:55]OFD Sender: No OFD packet to send [06:53:00]OFD Sender: No OFD packet to send [06:53:05]OFD Sender: No OFD packet to send [06:53:10]OFD Sender: No OFD packet to send [06:53:15]OFD Sender: No OFD packet to send [06:53:20]OFD Sender: No OFD packet to send [06:53:25]OFD Sender: No OFD packet to send [06:53:30]OFD Sender: No OFD packet to send [06:53:35]OFD Sender: No OFD packet to send [06:53:40]OFD Sender: No OFD packet to send [06:53:45]OFD Sender: No OFD packet to send [06:53:50]OFD Sender: No OFD packet to send [06:53:55]OFD Sender: No OFD packet to send [06:54:00]OFD Sender: No OFD packet to send [06:54:05]OFD Sender: No OFD packet to send [06:54:10]OFD Sender: No OFD packet to send [06:54:15]OFD Sender: No OFD packet to send [06:54:20]OFD Sender: No OFD packet to send [06:54:25]OFD Sender: No OFD packet to send [06:54:30]OFD Sender: No OFD packet to send [06:54:35]OFD Sender: No OFD packet to send [06:54:40]OFD Sender: No OFD packet to send [06:54:45]OFD Sender: No OFD packet to send [06:54:50]OFD Sender: No OFD packet to send [06:54:55]OFD Sender: No OFD packet to send [06:55:00]OFD Sender: No OFD packet to send [06:55:05]OFD Sender: No OFD packet to send [06:55:10]OFD Sender: No OFD packet to send [06:55:15]OFD Sender: No OFD packet to send [06:55:20]OFD Sender: No OFD packet to send [06:55:25]OFD Sender: No OFD packet to send [06:55:30]OFD Sender: No OFD packet to send [06:55:35]OFD Sender: No OFD packet to send [06:55:40]OFD Sender: No OFD packet to send [06:55:45]OFD Sender: No OFD packet to send [06:55:50]OFD Sender: No OFD packet to send [06:55:55]OFD Sender: No OFD packet to send [06:56:00]OFD Sender: No OFD packet to send [06:56:05]OFD Sender: No OFD packet to send [06:56:10]OFD Sender: No OFD packet to send [06:56:15]OFD Sender: No OFD packet to send [06:56: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:35]accept exits with 8 [06:57:35]New connection [06:57:35]New thread 3067198820 created [06:57:35]Thread 3067055460 joined [06:57:35]Waiting for new connection... [06:57:35] Sock 8.Parse request [06:57:35]Sock 8.Check first char [06:57:35]Sock 8.First char is OK [06:57:35]request: POST /json_proto HTTP/1.0 [06:57:35]Method: POST [06:57:35]URL: /json_proto [06:57:35]Method is POST - this is cgi request [06:57:35]url: /json_proto [06:57:35]query_string will be loaded in cgi processing [06:57:35]execute_cgi json_proto POST (null) [06:57:35]execute_cgi path=json_proto method=POST [06:57:35]POST find Content-Length [06:57:35]Host: 172.17.42.131:8080 [06:57:35]Content-Length: 684 [06:57:35]Content-Type: application/json [06:57:35] [06:57:35]POST finish read [06:57:35]Found Content-Length = 684 [06:57:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:35]execute_script... [06:57:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210112", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:35]POST & json_proto [06:57:35]process_json_proto [06:57:35]json parsed OK: [06:57:35]protocol is kg_v1.0 [06:57:35]action value=close_receipt [06:57:35]process_action close_receipt [06:57:35]cmd_close_receipt [06:57:35]MH_GetDate [06:57:35]Write to MH i2c: F0 00 00 A7 1E B4 [06:57:35]Write i2c OK [06:57:35]MH_I2C_Read... [06:57:35]Read from MH i2c: F0 [06:57:35]MH_I2C_Read... [06:57:35]Read from MH i2c: F0 09 00 [06:57:35]MH_I2C_Read... [06:57:35]Read from MH i2c: F0 09 00 A7 1E 00 E1 4C 17 67 A0 18 CA 66 50 [06:57:35]GetLastDocTimeStamp 1729579758 [06:57:35]current date 1729580257 [06:57:35]FM_GetShiftState [06:57:35]SAM_PROTO_GetShiftState [06:57:35]wFMCommunicate request_size=4 [06:57:35]MH_SAM_APDU [06:57:35]CAPDU: 80 13 01 00 [06:57:35]Write to MH i2c: E2 08 00 A8 1E 80 13 01 00 00 00 00 00 43 [06:57:35]Write i2c OK [06:57:35]MH_I2C_Read... [06:57:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:35]Read from MH i2c: E2 [06:57:35]MH_I2C_Read... [06:57:35]Read from MH i2c: E2 0E 00 [06:57:35]MH_I2C_Read... [06:57:35]Read from MH i2c: E2 0E 00 A8 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [06:57:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:57:35]wFMCommunicate OK [06:57:35]SAM_PROTO_GetShiftState done [06:57:35]FM_GetShiftState done [06:57:35]opened in 1729556094 [06:57:35]opened+sec_in_day 1729642494 [06:57:35]quantity*price = 80056 [06:57:35]sum+1 = 80057 [06:57:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 89 22.10.2024 06:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188060 ФПД: 230471578921585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188060&fm=230471578921585&tin=02508201610067®Number=0000000000100030&sum=80000 [06:57:36]StoreToDocumentArchive [06:57:36]shift 461 fd 188060 [06:57:36]save to /storage/0461/doc_00188060 [06:57:36]save last doc name /storage/0461/doc_00188060 to /storage/kkm_last_doc_name [06:57:36]save OK [06:57:36]Clear old archive folders... [06:57:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:57:36]tlvbuf is 01C529B0 [06:57:36]SAM_PROTO_ClearQueue [06:57:36]wFMCommunicate request_size=4 [06:57:36]MH_SAM_APDU [06:57:36]CAPDU: 80 09 00 00 [06:57:36]Write to MH i2c: E2 08 00 B5 1E 80 09 00 00 00 00 00 00 45 [06:57:36]Write i2c OK [06:57:36]MH_I2C_Read... [06:57:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:36]Read from MH i2c: E2 [06:57:36]MH_I2C_Read... [06:57:36]Read from MH i2c: E2 03 00 [06:57:36]MH_I2C_Read... [06:57:36]Read from MH i2c: E2 03 00 B5 1E 00 90 00 47 [06:57:36]RAPDU: 90 00 [06:57:36]wFMCommunicate OK [06:57:36]SAM_PROTO_ClearQueue done [06:57:36]KKMCreateOFDPacket [06:57:36]OFDProtocolAddRootSTLVToBuf [06:57:36]FM_MakeSignedData [06:57:36]FM_MakeSignedData [06:57:36]SAM_PROTO_SignData [06:57:36]wFMCommunicate request_size=4 [06:57:36]MH_SAM_APDU [06:57:36]CAPDU: 80 0D 01 02 [06:57:36]Write to MH i2c: E2 08 00 B6 1E 80 0D 01 02 00 00 00 00 4D [06:57:36]Write i2c OK [06:57:36]MH_I2C_Read... [06:57:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:36]Read from MH i2c: E2 [06:57:36]MH_I2C_Read... [06:57:36]Read from MH i2c: E2 03 00 [06:57:36]MH_I2C_Read... [06:57:36]Read from MH i2c: E2 03 00 B6 1E 00 90 00 48 [06:57:36]RAPDU: 90 00 [06:57:36]wFMCommunicate OK [06:57:36]wFMCommunicate request_size=255 [06:57:36]MH_SAM_APDU [06:57:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E1 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DE 02 [06:57:36]Write to MH i2c: E2 02 01 B7 1E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E1 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DE 02 00 00 85 [06:57:36]Write i2c OK [06:57:36]MH_I2C_Read... [06:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:37]Read from MH i2c: E2 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 03 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 03 00 B7 1E 00 90 00 49 [06:57:37]RAPDU: 90 00 [06:57:37]wFMCommunicate OK [06:57:37]wFMCommunicate request_size=16 [06:57:37]MH_SAM_APDU [06:57:37]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D1 9C D8 97 AA 71 [06:57:37]Write to MH i2c: E2 13 00 B8 1E 80 0D 02 02 0B 00 00 35 04 06 00 D1 9C D8 97 AA 71 00 00 9C [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:37]Read from MH i2c: E2 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 03 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 03 00 B8 1E 00 90 00 4A [06:57:37]RAPDU: 90 00 [06:57:37]wFMCommunicate OK [06:57:37]wFMCommunicate request_size=4 [06:57:37]MH_SAM_APDU [06:57:37]CAPDU: 80 0D 03 02 [06:57:37]Write to MH i2c: E2 08 00 B9 1E 80 0D 03 02 00 00 00 00 52 [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:37]Read from MH i2c: E2 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 0B 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 0B 00 B9 1E 00 30 38 1E 1C 80 99 3D 32 90 00 7D [06:57:37]RAPDU: 30 38 1E 1C 80 99 3D 32 90 00 [06:57:37]wFMCommunicate OK [06:57:37]SAM_PROTO_SignData done [06:57:37]FM_MakeSignedData done [06:57:37]CreateOFDProtocolMessage [06:57:37]wFMCommunicate request_size=4 [06:57:37]MH_SAM_APDU [06:57:37]CAPDU: 80 11 00 00 [06:57:37]Write to MH i2c: E2 08 00 BA 1E 80 11 00 00 00 00 00 00 52 [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:37]Read from MH i2c: E2 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 17 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: E2 17 00 BA 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [06:57:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:57:37]wFMCommunicate OK [06:57:37]CreateOFDProtocolMessage done [06:57:37]OFDSenderStorePacket 188060 [06:57:37]StoreOFDPacket docnum=188060 [06:57:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FB CB 0D 01 19 B1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E1 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DE 02 00 35 04 06 00 D1 9C D8 97 AA 71 30 38 1E 1C 80 99 3D 32 [06:57:37]CheckFolder [06:57:37]dirname=/storage/ofd_packets [06:57:37]CheckFolder done [06:57:37]ProducePacketName [06:57:37]name=ofd_packets/00188060 [06:57:37]NVStorageSaveData ofd_packets/00188060 [06:57:37]File name is /storage/ofd_packets/00188060 [06:57:37]Write 307 bytes [06:57:37]NVStorageSaveData done [06:57:37]OFDSenderStorePacket done [06:57:37]KKMCreateOFDPacket done [06:57:37]NVStorageSaveData kkm_last_timestamp [06:57:37]File name is /storage/kkm_last_timestamp [06:57:37]Write 4 bytes [06:57:37]NVStorageSaveData done [06:57:37]ExternCall_PrintAddStr [06:57:37]wPrintStart [06:57:37]Write to MH i2c: 01 00 00 BB 1E D9 [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: 01 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: 01 07 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: 01 07 00 BB 1E 00 00 00 00 00 FF 0F EE [06:57:37]RasterBufferAndPrint [06:57:37]line Счет N : (1)210112 [06:57:37]line ИНН: 02508201610067 [06:57:37]line Контрольно-Кассовый Чек [06:57:37]line ПРОДАЖА [06:57:37]line ТРК (МРК, ГНК) : 11 [06:57:37]line Товар: 2710194210 [06:57:37]line D-ENERGY ДТ-К-5 [06:57:37]line 10.370 * 77.20 [06:57:37]line = 800.56 [06:57:37]line НДС 12% НСП 1% [06:57:37]line > о реализуемом товаре [06:57:37]line ОКРУГЛЕНИЕ: -0.56 [06:57:37]line ИТОГО: 800.00 [06:57:37]line Внесено: 800.00 [06:57:37]line СДАЧА: 0.00 [06:57:37]line НСП 1% : 7.08 [06:57:37]line НДС 12% : 85.01 [06:57:37]line Наличными: 800.00 [06:57:37]line Безнал.: 0.00 [06:57:37]line Место: АЗС № 86 "Партнер Нефть" [06:57:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:57:37]line СНО: Общий режим [06:57:37]line Чек 89 22.10.2024 06:57 [06:57:37]line Смена: 461 ФФД: 1.0 [06:57:37]line ЗНМ: 0300000155 [06:57:37]line РНМ: 0000000000100030 [06:57:37]line Версия ККМ: 001 [06:57:37]line ФМ: 0000000000965340 [06:57:37]line ФД: 188060 [06:57:37]line ФПД: 230471578921585 [06:57:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188060&fm=230471578921585&tin=02508201610067®Number=0000000000100030&sum=80000 [06:57:37]written 0, free lines is 4095 [06:57:37]OFD Sender: Processing packet 188060 [packets to send 1062, broken 1061] [06:57:37]ProducePacketName [06:57:37]name=ofd_packets/00188060 [06:57:37]OFD Sender: To server: pG, [06:57:37]CommunicateWithHost lk.salyk.kg:30040 [06:57:37]ConnectInit lk.salyk.kg [06:57:37]Connected sock=10 [06:57:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FB CB 0D 01 19 B1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 E1 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DE 02 00 35 04 06 00 D1 9C D8 97 AA 71 30 38 1E 1C 80 99 3D 32 [06:57:37]Write to MH i2c: 01 00 00 E6 1E 04 [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: 01 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: 01 07 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: 01 07 00 E6 1E 00 00 00 00 00 53 0C 6A [06:57:37]RasterBufferAndPrint [06:57:37]line [06:57:37]line [06:57:37]line [06:57:37]line [06:57:37]line [06:57:37]written 0, free lines is 3159 [06:57:37]MH_Cut [06:57:37]Write to MH i2c: D1 01 00 ED 1E 01 DD [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: D1 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: D1 01 00 [06:57:37]MH_I2C_Read... [06:57:37]Read from MH i2c: D1 01 00 ED 1E 00 DC [06:57:37]Write to MH i2c: 01 00 00 EE 1E 0C [06:57:37]Write i2c OK [06:57:37]MH_I2C_Read... [06:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 ED 47 00 BE 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DE 02 00 F4 03 04 00 CF F6 16 67 B6 04 01 00 00 84 23 48 37 58 FD 2F 32 [06:57:37]CommunicateWithHost err = 0 [06:57:37]CheckOFDResponse [06:57:37]1017 (14) - 77093643461234 [06:57:37]1041 (16) - 0000000000965340 [06:57:37]1040 (4) - 188060 [06:57:37]1012 (4) - 22.10.2024 00:50 [06:57:37]1206 (1) - 0 [06:57:37]OFD Sender: Remove packet 188060 [06:57:37]ProducePacketName [06:57:37]name=ofd_packets/00188060 [06:57:37]NVStorageDeleteData [06:57:38]OFD Sender: No OFD packet to send [06:57:39]*** Cut start [06:57:39]*** Partial cut [06:57:39]*** CUTSNS_PIN = 1 [06:57:39]*** CUTSNS_PIN = 0 [06:57:39]*** Brake cut motor [06:57:39]Read from MH i2c: 01 [06:57:39]MH_I2C_Read... [06:57:39]*** Stop cut motor [06:57:39]*** Cut end [06:57:39]Read from MH i2c: 01 07 00 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: 01 07 00 EE 1E 00 00 00 00 00 FF 0F 21 [06:57:39]process_action close_receipt done [06:57:39]requested_data is exist [06:57:39]produce_requested_data [06:57:39]requested_item fm.sn is exist - process it [06:57:39]wFMCommunicate request_size=4 [06:57:39]MH_SAM_APDU [06:57:39]CAPDU: 80 11 00 00 [06:57:39]Write to MH i2c: E2 08 00 EF 1E 80 11 00 00 00 00 00 00 87 [06:57:39]Write i2c OK [06:57:39]MH_I2C_Read... [06:57:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:39]Read from MH i2c: E2 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: E2 17 00 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: E2 17 00 EF 1E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [06:57:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:57:39]wFMCommunicate OK [06:57:39]requested_item fd.num is exist - process it [06:57:39]SAM_PROTO_GetFieldsCounters [06:57:39]wFMCommunicate request_size=4 [06:57:39]MH_SAM_APDU [06:57:39]CAPDU: 80 13 00 00 [06:57:39]Write to MH i2c: E2 08 00 F0 1E 80 13 00 00 00 00 00 00 8A [06:57:39]Write i2c OK [06:57:39]MH_I2C_Read... [06:57:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:39]Read from MH i2c: E2 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: E2 62 00 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: E2 62 00 F0 1E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C DE 02 00 0E 04 04 00 CD 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 E6 [06:57:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C DE 02 00 0E 04 04 00 CD 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 [06:57:39]wFMCommunicate OK [06:57:39]SAM_PROTO_GetFieldsCounters done [06:57:39]requested_item shift.num is exist - process it [06:57:39]requested_item shift.opened is exist - process it [06:57:39]req_shift_opened [06:57:39]FM_GetShiftState [06:57:39]SAM_PROTO_GetShiftState [06:57:39]wFMCommunicate request_size=4 [06:57:39]MH_SAM_APDU [06:57:39]CAPDU: 80 13 01 00 [06:57:39]Write to MH i2c: E2 08 00 F1 1E 80 13 01 00 00 00 00 00 8C [06:57:39]Write i2c OK [06:57:39]MH_I2C_Read... [06:57:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:39]Read from MH i2c: E2 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: E2 0E 00 [06:57:39]MH_I2C_Read... [06:57:39]Read from MH i2c: E2 0E 00 F1 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 81 [06:57:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:57:39]wFMCommunicate OK [06:57:39]SAM_PROTO_GetShiftState done [06:57:39]FM_GetShiftState done [06:57:39]req_shift_opened done [06:57:39]requested_item shift.open_date is exist - process it [06:57:39]req_shift_open_date [06:57:39]req_shift_open_date done [06:57:39]produce_requested_data done [06:57:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188060,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:57:39]process_action_free close_receipt [06:57:39]json_value_free [06:57:39]json_value_free done [06:57:39]process_json_proto returns [06:57:39]Send response to host [06:57:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188060,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:57:39]free response buf [06:57:39]execute_script done [06:57:39]execute_script returns [06:57:39]free content buf [06:57:39]Sock 8.Close socket [06:57:39]Sock 8.Thread stoped [06:57:43]OFD Sender: No OFD packet to send [06:57:48]OFD Sender: No OFD packet to send [06:57:52]accept exits with 9 [06:57:52]New connection [06:57:52]New thread 3067055460 created [06:57:52]Thread 3067198820 joined [06:57:52]Waiting for new connection... [06:57:52] Sock 9.Parse request [06:57:52]Sock 9.Check first char [06:57:52]Sock 9.First char is OK [06:57:52]request: POST /json_proto HTTP/1.0 [06:57:52]Method: POST [06:57:52]URL: /json_proto [06:57:52]Method is POST - this is cgi request [06:57:52]url: /json_proto [06:57:52]query_string will be loaded in cgi processing [06:57:52]execute_cgi json_proto POST (null) [06:57:52]execute_cgi path=json_proto method=POST [06:57:52]POST find Content-Length [06:57:52]Host: 172.17.42.131:8080 [06:57:52]Content-Length: 677 [06:57:52]Content-Type: application/json [06:57:52] [06:57:52]POST finish read [06:57:52]Found Content-Length = 677 [06:57:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:52]execute_script... [06:57: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)210113", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:57:52]POST & json_proto [06:57:52]process_json_proto [06:57:52]json parsed OK: [06:57:52]protocol is kg_v1.0 [06:57:52]action value=close_receipt [06:57:52]process_action close_receipt [06:57:52]cmd_close_receipt [06:57:52]MH_GetDate [06:57:52]Write to MH i2c: F0 00 00 F2 1E FF [06:57:52]Write i2c OK [06:57:52]MH_I2C_Read... [06:57:52]Read from MH i2c: F0 [06:57:52]MH_I2C_Read... [06:57:52]Read from MH i2c: F0 09 00 [06:57:52]MH_I2C_Read... [06:57:52]Read from MH i2c: F0 09 00 F2 1E 00 F3 4C 17 67 A0 18 CA 66 AD [06:57:52]GetLastDocTimeStamp 1729580257 [06:57:52]current date 1729580275 [06:57:52]FM_GetShiftState [06:57:52]SAM_PROTO_GetShiftState [06:57:52]wFMCommunicate request_size=4 [06:57:52]MH_SAM_APDU [06:57:52]CAPDU: 80 13 01 00 [06:57:52]Write to MH i2c: E2 08 00 F3 1E 80 13 01 00 00 00 00 00 8E [06:57:52]Write i2c OK [06:57:52]MH_I2C_Read... [06:57:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:52]Read from MH i2c: E2 [06:57:52]MH_I2C_Read... [06:57:52]Read from MH i2c: E2 0E 00 [06:57:52]MH_I2C_Read... [06:57:52]Read from MH i2c: E2 0E 00 F3 1E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [06:57:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:57:52]wFMCommunicate OK [06:57:52]SAM_PROTO_GetShiftState done [06:57:52]FM_GetShiftState done [06:57:52]opened in 1729556094 [06:57:52]opened+sec_in_day 1729642494 [06:57:52]quantity*price = 50041 [06:57:52]sum+1 = 50042 [06:57:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 90 22.10.2024 06:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188061 ФПД: 246161636150948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188061&fm=246161636150948&tin=02508201610067®Number=0000000000100030&sum=50000 [06:57:53]StoreToDocumentArchive [06:57:53]shift 461 fd 188061 [06:57:53]save to /storage/0461/doc_00188061 [06:57:53]save last doc name /storage/0461/doc_00188061 to /storage/kkm_last_doc_name [06:57:53]save OK [06:57:53]Clear old archive folders... [06:57:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [06:57:53]tlvbuf is 01B921D0 [06:57:53]SAM_PROTO_ClearQueue [06:57:53]wFMCommunicate request_size=4 [06:57:53]MH_SAM_APDU [06:57:53]CAPDU: 80 09 00 00 [06:57:53]Write to MH i2c: E2 08 00 00 1F 80 09 00 00 00 00 00 00 91 [06:57:53]Write i2c OK [06:57:53]MH_I2C_Read... [06:57:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 00 1F 00 90 00 93 [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]SAM_PROTO_ClearQueue done [06:57:54]KKMCreateOFDPacket [06:57:54]OFDProtocolAddRootSTLVToBuf [06:57:54]FM_MakeSignedData [06:57:54]FM_MakeSignedData [06:57:54]SAM_PROTO_SignData [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 01 02 [06:57:54]Write to MH i2c: E2 08 00 01 1F 80 0D 01 02 00 00 00 00 99 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 01 1F 00 90 00 94 [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]wFMCommunicate request_size=255 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F3 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DE 02 00 35 04 06 00 DF [06:57:54]Write to MH i2c: E2 02 01 02 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F3 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DE 02 00 35 04 06 00 DF 00 00 4D [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 02 1F 00 90 00 95 [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]wFMCommunicate request_size=10 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 02 02 05 E1 F8 E1 4E A4 [06:57:54]Write to MH i2c: E2 0D 00 03 1F 80 0D 02 02 05 00 E1 F8 E1 4E A4 00 00 52 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 03 00 03 1F 00 90 00 96 [06:57:54]RAPDU: 90 00 [06:57:54]wFMCommunicate OK [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 0D 03 02 [06:57:54]Write to MH i2c: E2 08 00 04 1F 80 0D 03 02 00 00 00 00 9E [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 0B 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 0B 00 04 1F 00 75 8A 88 DF 50 32 60 80 90 00 67 [06:57:54]RAPDU: 75 8A 88 DF 50 32 60 80 90 00 [06:57:54]wFMCommunicate OK [06:57:54]SAM_PROTO_SignData done [06:57:54]FM_MakeSignedData done [06:57:54]CreateOFDProtocolMessage [06:57:54]wFMCommunicate request_size=4 [06:57:54]MH_SAM_APDU [06:57:54]CAPDU: 80 11 00 00 [06:57:54]Write to MH i2c: E2 08 00 05 1F 80 11 00 00 00 00 00 00 9E [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:54]Read from MH i2c: E2 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 17 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: E2 17 00 05 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [06:57:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:57:54]wFMCommunicate OK [06:57:54]CreateOFDProtocolMessage done [06:57:54]OFDSenderStorePacket 188061 [06:57:54]StoreOFDPacket docnum=188061 [06:57:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 06 C2 07 01 8C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F3 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DE 02 00 35 04 06 00 DF E1 F8 E1 4E A4 75 8A 88 DF 50 32 60 80 [06:57:54]CheckFolder [06:57:54]dirname=/storage/ofd_packets [06:57:54]CheckFolder done [06:57:54]ProducePacketName [06:57:54]name=ofd_packets/00188061 [06:57:54]NVStorageSaveData ofd_packets/00188061 [06:57:54]File name is /storage/ofd_packets/00188061 [06:57:54]Write 301 bytes [06:57:54]NVStorageSaveData done [06:57:54]OFDSenderStorePacket done [06:57:54]KKMCreateOFDPacket done [06:57:54]NVStorageSaveData kkm_last_timestamp [06:57:54]File name is /storage/kkm_last_timestamp [06:57:54]Write 4 bytes [06:57:54]NVStorageSaveData done [06:57:54]ExternCall_PrintAddStr [06:57:54]wPrintStart [06:57:54]Write to MH i2c: 01 00 00 06 1F 25 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 07 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 07 00 06 1F 00 00 00 00 00 FF 0F 3A [06:57:54]RasterBufferAndPrint [06:57:54]line Счет N : (1)210113 [06:57:54]line ИНН: 02508201610067 [06:57:54]line Контрольно-Кассовый Чек [06:57:54]line ПРОДАЖА [06:57:54]line ТРК (МРК, ГНК) : 32 [06:57:54]line Товар: 2710124130 [06:57:54]line Аи-92-К-3 [06:57:54]line 7.480 * 66.90 [06:57:54]line = 500.41 [06:57:54]line НДС 12% НСП 1% [06:57:54]line > о реализуемом товаре [06:57:54]line ОКРУГЛЕНИЕ: -0.41 [06:57:54]line ИТОГО: 500.00 [06:57:54]line Внесено: 500.00 [06:57:54]line СДАЧА: 0.00 [06:57:54]line НСП 1% : 4.43 [06:57:54]line НДС 12% : 53.14 [06:57:54]line Наличными: 500.00 [06:57:54]line Безнал.: 0.00 [06:57:54]line Место: АЗС № 86 "Партнер Нефть" [06:57:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:57:54]line СНО: Общий режим [06:57:54]line Чек 90 22.10.2024 06:57 [06:57:54]line Смена: 461 ФФД: 1.0 [06:57:54]line ЗНМ: 0300000155 [06:57:54]line РНМ: 0000000000100030 [06:57:54]line Версия ККМ: 001 [06:57:54]line ФМ: 0000000000965340 [06:57:54]line ФД: 188061 [06:57:54]line ФПД: 246161636150948 [06:57:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065755&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188061&fm=246161636150948&tin=02508201610067®Number=0000000000100030&sum=50000 [06:57:54]written 0, free lines is 4095 [06:57:54]OFD Sender: Processing packet 188061 [packets to send 1062, broken 1061] [06:57:54]ProducePacketName [06:57:54]name=ofd_packets/00188061 [06:57:54]OFD Sender: To server: pG, [06:57:54]CommunicateWithHost lk.salyk.kg:30040 [06:57:54]ConnectInit lk.salyk.kg [06:57:54]Connected sock=10 [06:57:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 06 C2 07 01 8C 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 F3 4C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DE 02 00 35 04 06 00 DF E1 F8 E1 4E A4 75 8A 88 DF 50 32 60 80 [06:57:54]Write to MH i2c: 01 00 00 31 1F 50 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 07 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: 01 07 00 31 1F 00 00 00 00 00 57 0C BA [06:57:54]RasterBufferAndPrint [06:57:54]line [06:57:54]line [06:57:54]line [06:57:54]line [06:57:54]line [06:57:54]written 0, free lines is 3162 [06:57:54]MH_Cut [06:57:54]Write to MH i2c: D1 01 00 38 1F 01 29 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: D1 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: D1 01 00 [06:57:54]MH_I2C_Read... [06:57:54]Read from MH i2c: D1 01 00 38 1F 00 28 [06:57:54]Write to MH i2c: 01 00 00 39 1F 58 [06:57:54]Write i2c OK [06:57:54]MH_I2C_Read... [06:57:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C9 CB 47 00 5E 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DE 02 00 F4 03 04 00 E0 F6 16 67 B6 04 01 00 00 B3 CA 5D E7 AB 8D 04 FF [06:57:55]CommunicateWithHost err = 0 [06:57:55]CheckOFDResponse [06:57:55]1017 (14) - 77093643461234 [06:57:55]1041 (16) - 0000000000965340 [06:57:55]1040 (4) - 188061 [06:57:55]1012 (4) - 22.10.2024 00:50 [06:57:55]1206 (1) - 0 [06:57:55]OFD Sender: Remove packet 188061 [06:57:55]ProducePacketName [06:57:55]name=ofd_packets/00188061 [06:57:55]NVStorageDeleteData [06:57:55]OFD Sender: No OFD packet to send [06:57:56]*** Cut start [06:57:56]*** Partial cut [06:57:56]*** CUTSNS_PIN = 1 [06:57:56]*** CUTSNS_PIN = 0 [06:57:56]*** Brake cut motor [06:57:56]Read from MH i2c: 01 [06:57:56]MH_I2C_Read... [06:57:56]*** Stop cut motor [06:57:56]*** Cut end [06:57:56]Read from MH i2c: 01 07 00 [06:57:56]MH_I2C_Read... [06:57:56]Read from MH i2c: 01 07 00 39 1F 00 00 00 00 00 FF 0F 6D [06:57:56]process_action close_receipt done [06:57:56]requested_data is exist [06:57:56]produce_requested_data [06:57:56]requested_item fm.sn is exist - process it [06:57:56]wFMCommunicate request_size=4 [06:57:56]MH_SAM_APDU [06:57:56]CAPDU: 80 11 00 00 [06:57:56]Write to MH i2c: E2 08 00 3A 1F 80 11 00 00 00 00 00 00 D3 [06:57:56]Write i2c OK [06:57:56]MH_I2C_Read... [06:57:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:57:56]Read from MH i2c: E2 [06:57:56]MH_I2C_Read... [06:57:56]Read from MH i2c: E2 17 00 [06:57:56]MH_I2C_Read... [06:57:56]Read from MH i2c: E2 17 00 3A 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [06:57:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:57:56]wFMCommunicate OK [06:57:56]requested_item fd.num is exist - process it [06:57:56]SAM_PROTO_GetFieldsCounters [06:57:56]wFMCommunicate request_size=4 [06:57:56]MH_SAM_APDU [06:57:56]CAPDU: 80 13 00 00 [06:57:56]Write to MH i2c: E2 08 00 3B 1F 80 13 00 00 00 00 00 00 D6 [06:57:56]Write i2c OK [06:57:56]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 62 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 62 00 3B 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D DE 02 00 0E 04 04 00 CD 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 36 [06:57:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D DE 02 00 0E 04 04 00 CD 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 [06:57:57]wFMCommunicate OK [06:57:57]SAM_PROTO_GetFieldsCounters done [06:57:57]requested_item shift.num is exist - process it [06:57:57]requested_item shift.opened is exist - process it [06:57:57]req_shift_opened [06:57:57]FM_GetShiftState [06:57:57]SAM_PROTO_GetShiftState [06:57:57]wFMCommunicate request_size=4 [06:57:57]MH_SAM_APDU [06:57:57]CAPDU: 80 13 01 00 [06:57:57]Write to MH i2c: E2 08 00 3C 1F 80 13 01 00 00 00 00 00 D8 [06:57:57]Write i2c OK [06:57:57]MH_I2C_Read... [06:57:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:57:57]Read from MH i2c: E2 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 0E 00 [06:57:57]MH_I2C_Read... [06:57:57]Read from MH i2c: E2 0E 00 3C 1F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CD [06:57:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:57:57]wFMCommunicate OK [06:57:57]SAM_PROTO_GetShiftState done [06:57:57]FM_GetShiftState done [06:57:57]req_shift_opened done [06:57:57]requested_item shift.open_date is exist - process it [06:57:57]req_shift_open_date [06:57:57]req_shift_open_date done [06:57:57]produce_requested_data done [06:57:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188061,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:57:57]process_action_free close_receipt [06:57:57]json_value_free [06:57:57]json_value_free done [06:57:57]process_json_proto returns [06:57:57]Send response to host [06:57:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188061,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:57:57]free response buf [06:57:57]execute_script done [06:57:57]execute_script returns [06:57:57]free content buf [06:57:57]Sock 9.Close socket [06:57:57]Sock 9.Thread stoped [06:58:00]OFD Sender: No OFD packet to send [06:58:05]OFD Sender: No OFD packet to send [06:58:10]OFD Sender: No OFD packet to send [06:58:15]OFD Sender: No OFD packet to send [06:58:20]OFD Sender: No OFD packet to send [06:58:25]OFD Sender: No OFD packet to send [06:58:30]OFD Sender: No OFD packet to send [06:58:35]OFD Sender: No OFD packet to send [06:58:40]OFD Sender: No OFD packet to send [06:58:45]OFD Sender: No OFD packet to send [06:58:47]accept exits with 8 [06:58:47]New connection [06:58:47]New thread 3067198820 created [06:58:47]Thread 3067055460 joined [06:58:47]Waiting for new connection... [06:58:47] Sock 8.Parse request [06:58:47]Sock 8.Check first char [06:58:47]Sock 8.First char is OK [06:58:47]request: POST /json_proto HTTP/1.0 [06:58:47]Method: POST [06:58:47]URL: /json_proto [06:58:47]Method is POST - this is cgi request [06:58:47]url: /json_proto [06:58:47]query_string will be loaded in cgi processing [06:58:47]execute_cgi json_proto POST (null) [06:58:47]execute_cgi path=json_proto method=POST [06:58:47]POST find Content-Length [06:58:47]Host: 172.17.42.131:8080 [06:58:47]Content-Length: 688 [06:58:47]Content-Type: application/json [06:58:47] [06:58:47]POST finish read [06:58:47]Found Content-Length = 688 [06:58:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:58:47]execute_script... [06:58: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)210114", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:58:47]POST & json_proto [06:58:47]process_json_proto [06:58:47]json parsed OK: [06:58:47]protocol is kg_v1.0 [06:58:47]action value=close_receipt [06:58:47]process_action close_receipt [06:58:47]cmd_close_receipt [06:58:47]MH_GetDate [06:58:47]Write to MH i2c: F0 00 00 3D 1F 4B [06:58:47]Write i2c OK [06:58:47]MH_I2C_Read... [06:58:47]Read from MH i2c: F0 [06:58:47]MH_I2C_Read... [06:58:47]Read from MH i2c: F0 09 00 [06:58:47]MH_I2C_Read... [06:58:47]Read from MH i2c: F0 09 00 3D 1F 00 2A 4D 17 67 A0 18 CA 66 31 [06:58:47]GetLastDocTimeStamp 1729580275 [06:58:47]current date 1729580330 [06:58:47]FM_GetShiftState [06:58:47]SAM_PROTO_GetShiftState [06:58:47]wFMCommunicate request_size=4 [06:58:47]MH_SAM_APDU [06:58:47]CAPDU: 80 13 01 00 [06:58:47]Write to MH i2c: E2 08 00 3E 1F 80 13 01 00 00 00 00 00 DA [06:58:47]Write i2c OK [06:58:47]MH_I2C_Read... [06:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:48]Read from MH i2c: E2 [06:58:48]MH_I2C_Read... [06:58:48]Read from MH i2c: E2 0E 00 [06:58:48]MH_I2C_Read... [06:58:48]Read from MH i2c: E2 0E 00 3E 1F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CF [06:58:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:58:48]wFMCommunicate OK [06:58:48]SAM_PROTO_GetShiftState done [06:58:48]FM_GetShiftState done [06:58:48]opened in 1729556094 [06:58:48]opened+sec_in_day 1729642494 [06:58:48]quantity*price = 100051 [06:58:48]sum+1 = 100052 [06:58:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 91 22.10.2024 06:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188062 ФПД: 170100986271033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188062&fm=170100986271033&tin=02508201610067®Number=0000000000100030&sum=100000 [06:58:49]StoreToDocumentArchive [06:58:49]shift 461 fd 188062 [06:58:49]save to /storage/0461/doc_00188062 [06:58:49]save last doc name /storage/0461/doc_00188062 to /storage/kkm_last_doc_name [06:58:49]save OK [06:58:49]Clear old archive folders... [06:58:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [06:58:49]tlvbuf is 01B8C460 [06:58:49]SAM_PROTO_ClearQueue [06:58:49]wFMCommunicate request_size=4 [06:58:49]MH_SAM_APDU [06:58:49]CAPDU: 80 09 00 00 [06:58:49]Write to MH i2c: E2 08 00 4B 1F 80 09 00 00 00 00 00 00 DC [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:58:49]Read from MH i2c: E2 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 4B 1F 00 90 00 DE [06:58:49]RAPDU: 90 00 [06:58:49]wFMCommunicate OK [06:58:49]SAM_PROTO_ClearQueue done [06:58:49]KKMCreateOFDPacket [06:58:49]OFDProtocolAddRootSTLVToBuf [06:58:49]FM_MakeSignedData [06:58:49]FM_MakeSignedData [06:58:49]SAM_PROTO_SignData [06:58:49]wFMCommunicate request_size=4 [06:58:49]MH_SAM_APDU [06:58:49]CAPDU: 80 0D 01 02 [06:58:49]Write to MH i2c: E2 08 00 4C 1F 80 0D 01 02 00 00 00 00 E4 [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:58:49]Read from MH i2c: E2 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 4C 1F 00 90 00 DF [06:58:49]RAPDU: 90 00 [06:58:49]wFMCommunicate OK [06:58:49]wFMCommunicate request_size=255 [06:58:49]MH_SAM_APDU [06:58:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 00 00 00 F4 03 04 00 2A 4D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DE 02 [06:58:49]Write to MH i2c: E2 02 01 4D 1F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 00 00 00 F4 03 04 00 2A 4D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DE 02 00 00 DD [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:49]Read from MH i2c: E2 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 4D 1F 00 90 00 E0 [06:58:49]RAPDU: 90 00 [06:58:49]wFMCommunicate OK [06:58:49]wFMCommunicate request_size=16 [06:58:49]MH_SAM_APDU [06:58:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9A B4 B8 DC D5 39 [06:58:49]Write to MH i2c: E2 13 00 4E 1F 80 0D 02 02 0B 00 00 35 04 06 00 9A B4 B8 DC D5 39 00 00 2C [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:58:49]Read from MH i2c: E2 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 03 00 4E 1F 00 90 00 E1 [06:58:49]RAPDU: 90 00 [06:58:49]wFMCommunicate OK [06:58:49]wFMCommunicate request_size=4 [06:58:49]MH_SAM_APDU [06:58:49]CAPDU: 80 0D 03 02 [06:58:49]Write to MH i2c: E2 08 00 4F 1F 80 0D 03 02 00 00 00 00 E9 [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:58:49]Read from MH i2c: E2 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 0B 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 0B 00 4F 1F 00 4E A7 DD B2 D9 F0 3C DE 90 00 51 [06:58:49]RAPDU: 4E A7 DD B2 D9 F0 3C DE 90 00 [06:58:49]wFMCommunicate OK [06:58:49]SAM_PROTO_SignData done [06:58:49]FM_MakeSignedData done [06:58:49]CreateOFDProtocolMessage [06:58:49]wFMCommunicate request_size=4 [06:58:49]MH_SAM_APDU [06:58:49]CAPDU: 80 11 00 00 [06:58:49]Write to MH i2c: E2 08 00 50 1F 80 11 00 00 00 00 00 00 E9 [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:49]Read from MH i2c: E2 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 17 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: E2 17 00 50 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [06:58:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:58:49]wFMCommunicate OK [06:58:49]CreateOFDProtocolMessage done [06:58:49]OFDSenderStorePacket 188062 [06:58:49]StoreOFDPacket docnum=188062 [06:58:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D5 3E 0D 01 EF 8D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 00 00 00 F4 03 04 00 2A 4D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DE 02 00 35 04 06 00 9A B4 B8 DC D5 39 4E A7 DD B2 D9 F0 3C DE [06:58:49]CheckFolder [06:58:49]dirname=/storage/ofd_packets [06:58:49]CheckFolder done [06:58:49]ProducePacketName [06:58:49]name=ofd_packets/00188062 [06:58:49]NVStorageSaveData ofd_packets/00188062 [06:58:49]File name is /storage/ofd_packets/00188062 [06:58:49]Write 307 bytes [06:58:49]NVStorageSaveData done [06:58:49]OFDSenderStorePacket done [06:58:49]KKMCreateOFDPacket done [06:58:49]NVStorageSaveData kkm_last_timestamp [06:58:49]File name is /storage/kkm_last_timestamp [06:58:49]Write 4 bytes [06:58:49]NVStorageSaveData done [06:58:49]ExternCall_PrintAddStr [06:58:49]wPrintStart [06:58:49]Write to MH i2c: 01 00 00 51 1F 70 [06:58:49]Write i2c OK [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: 01 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: 01 07 00 [06:58:49]MH_I2C_Read... [06:58:49]Read from MH i2c: 01 07 00 51 1F 00 00 00 00 00 FF 0F 85 [06:58:49]RasterBufferAndPrint [06:58:49]line Счет N : (1)210114 [06:58:49]line ИНН: 02508201610067 [06:58:49]line Контрольно-Кассовый Чек [06:58:49]line ПРОДАЖА [06:58:49]line ТРК (МРК, ГНК) : 21 [06:58:49]line Товар: 2710194210 [06:58:49]line D-ENERGY ДТ-К-5 [06:58:49]line 12.960 * 77.20 [06:58:49]line = 1000.51 [06:58:49]line НДС 12% НСП 1% [06:58:49]line > о реализуемом товаре [06:58:49]line ОКРУГЛЕНИЕ: -0.51 [06:58:49]line ИТОГО: 1000.00 [06:58:49]line Внесено: 1000.00 [06:58:49]line СДАЧА: 0.00 [06:58:49]line НСП 1% : 8.85 [06:58:49]line НДС 12% : 106.25 [06:58:49]line Наличными: 1000.00 [06:58:49]line Безнал.: 0.00 [06:58:49]line Место: АЗС № 86 "Партнер Нефть" [06:58:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [06:58:49]line СНО: Общий режим [06:58:49]line Чек 91 22.10.2024 06:58 [06:58:49]line Смена: 461 ФФД: 1.0 [06:58:49]line ЗНМ: 0300000155 [06:58:49]line РНМ: 0000000000100030 [06:58:49]line Версия ККМ: 001 [06:58:49]line ФМ: 0000000000965340 [06:58:49]line ФД: 188062 [06:58:49]line ФПД: 170100986271033 [06:58:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T065850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188062&fm=170100986271033&tin=02508201610067®Number=0000000000100030&sum=100000 [06:58:49]written 0, free lines is 4095 [06:58:49]OFD Sender: Processing packet 188062 [packets to send 1062, broken 1061] [06:58:49]ProducePacketName [06:58:49]name=ofd_packets/00188062 [06:58:49]OFD Sender: To server: pG, [06:58:49]CommunicateWithHost lk.salyk.kg:30040 [06:58:49]ConnectInit lk.salyk.kg [06:58:49]Connected sock=10 [06:58:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D5 3E 0D 01 EF 8D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 00 00 00 F4 03 04 00 2A 4D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DE 02 00 35 04 06 00 9A B4 B8 DC D5 39 4E A7 DD B2 D9 F0 3C DE [06:58:50]Write to MH i2c: 01 00 00 7C 1F 9B [06:58:50]Write i2c OK [06:58:50]MH_I2C_Read... [06:58:50]Read from MH i2c: 01 [06:58:50]MH_I2C_Read... [06:58:50]Read from MH i2c: 01 07 00 [06:58:50]MH_I2C_Read... [06:58:50]Read from MH i2c: 01 07 00 7C 1F 00 00 00 00 00 56 0C 04 [06:58:50]RasterBufferAndPrint [06:58:50]line [06:58:50]line [06:58:50]line [06:58:50]line [06:58:50]line [06:58:50]written 0, free lines is 3161 [06:58:50]MH_Cut [06:58:50]Write to MH i2c: D1 01 00 83 1F 01 74 [06:58:50]Write i2c OK [06:58:50]MH_I2C_Read... [06:58:50]Read from MH i2c: D1 [06:58:50]MH_I2C_Read... [06:58:50]Read from MH i2c: D1 01 00 [06:58:50]MH_I2C_Read... [06:58:50]Read from MH i2c: D1 01 00 83 1F 00 73 [06:58:50]Write to MH i2c: 01 00 00 84 1F A3 [06:58:50]Write i2c OK [06:58:50]MH_I2C_Read... [06:58:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 79 47 00 08 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 39 36 35 33 34 30 10 04 04 00 9E DE 02 00 F4 03 04 00 18 F7 16 67 B6 04 01 00 00 7A 74 31 94 19 C8 BA 2E [06:58:50]CommunicateWithHost err = 0 [06:58:50]CheckOFDResponse [06:58:50]1017 (14) - 77093643461234 [06:58:50]1041 (16) - 0000000000965340 [06:58:50]1040 (4) - 188062 [06:58:50]1012 (4) - 22.10.2024 00:51 [06:58:50]1206 (1) - 0 [06:58:50]OFD Sender: Remove packet 188062 [06:58:50]ProducePacketName [06:58:50]name=ofd_packets/00188062 [06:58:50]NVStorageDeleteData [06:58:50]OFD Sender: No OFD packet to send [06:58:51]*** Cut start [06:58:51]*** Partial cut [06:58:51]*** CUTSNS_PIN = 1 [06:58:51]*** CUTSNS_PIN = 0 [06:58:51]*** Brake cut motor [06:58:52]Read from MH i2c: 01 [06:58:52]MH_I2C_Read... [06:58:52]*** Stop cut motor [06:58:52]*** Cut end [06:58:52]Read from MH i2c: 01 07 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: 01 07 00 84 1F 00 00 00 00 00 FF 0F B8 [06:58:52]process_action close_receipt done [06:58:52]requested_data is exist [06:58:52]produce_requested_data [06:58:52]requested_item fm.sn is exist - process it [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 11 00 00 [06:58:52]Write to MH i2c: E2 08 00 85 1F 80 11 00 00 00 00 00 00 1E [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 17 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 17 00 85 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [06:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [06:58:52]wFMCommunicate OK [06:58:52]requested_item fd.num is exist - process it [06:58:52]SAM_PROTO_GetFieldsCounters [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 13 00 00 [06:58:52]Write to MH i2c: E2 08 00 86 1F 80 13 00 00 00 00 00 00 21 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 62 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 62 00 86 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E DE 02 00 0E 04 04 00 CD 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 85 [06:58:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E DE 02 00 0E 04 04 00 CD 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 [06:58:52]wFMCommunicate OK [06:58:52]SAM_PROTO_GetFieldsCounters done [06:58:52]requested_item shift.num is exist - process it [06:58:52]requested_item shift.opened is exist - process it [06:58:52]req_shift_opened [06:58:52]FM_GetShiftState [06:58:52]SAM_PROTO_GetShiftState [06:58:52]wFMCommunicate request_size=4 [06:58:52]MH_SAM_APDU [06:58:52]CAPDU: 80 13 01 00 [06:58:52]Write to MH i2c: E2 08 00 87 1F 80 13 01 00 00 00 00 00 23 [06:58:52]Write i2c OK [06:58:52]MH_I2C_Read... [06:58:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:58:52]Read from MH i2c: E2 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 0E 00 [06:58:52]MH_I2C_Read... [06:58:52]Read from MH i2c: E2 0E 00 87 1F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 18 [06:58:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [06:58:52]wFMCommunicate OK [06:58:52]SAM_PROTO_GetShiftState done [06:58:52]FM_GetShiftState done [06:58:52]req_shift_opened done [06:58:52]requested_item shift.open_date is exist - process it [06:58:52]req_shift_open_date [06:58:52]req_shift_open_date done [06:58:52]produce_requested_data done [06:58:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188062,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [06:58:52]process_action_free close_receipt [06:58:52]json_value_free [06:58:52]json_value_free done [06:58:52]process_json_proto returns [06:58:52]Send response to host [06:58:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188062,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [06:58:52]free response buf [06:58:52]execute_script done [06:58:52]execute_script returns [06:58:52]free content buf [06:58:52]Sock 8.Close socket [06:58:52]Sock 8.Thread stoped [06:58:55]OFD Sender: No OFD packet to send [06:59:00]OFD Sender: No OFD packet to send [06:59:05]OFD Sender: No OFD packet to send [06:59:10]OFD Sender: No OFD packet to send [06:59:15]OFD Sender: No OFD packet to send [06:59:20]OFD Sender: No OFD packet to send [06:59:26]OFD Sender: No OFD packet to send [06:59:31]OFD Sender: No OFD packet to send [06:59:36]OFD Sender: No OFD packet to send [06:59:41]OFD Sender: No OFD packet to send [06:59:46]OFD Sender: No OFD packet to send [06:59:51]OFD Sender: No OFD packet to send [06:59:56]OFD Sender: No OFD packet to send [07:00:01]OFD Sender: No OFD packet to send [07:00:06]OFD Sender: No OFD packet to send [07:00:11]OFD Sender: No OFD packet to send [07:00:16]OFD Sender: No OFD packet to send [07:00:21]OFD Sender: No OFD packet to send [07:00:26]OFD Sender: No OFD packet to send [07:00:31]OFD Sender: No OFD packet to send [07:00:36]OFD Sender: No OFD packet to send [07:00:41]OFD Sender: No OFD packet to send [07:00:46]OFD Sender: No OFD packet to send [07:00:51]OFD Sender: No OFD packet to send [07:00:56]OFD Sender: No OFD packet to send [07:01:01]OFD Sender: No OFD packet to send [07:01:06]OFD Sender: No OFD packet to send [07:01:11]OFD Sender: No OFD packet to send [07:01:16]OFD Sender: No OFD packet to send [07:01:21]OFD Sender: No OFD packet to send [07:01:26]OFD Sender: No OFD packet to send [07:01:31]OFD Sender: No OFD packet to send [07:01:36]OFD Sender: No OFD packet to send [07:01:41]OFD Sender: No OFD packet to send [07:01:46]OFD Sender: No OFD packet to send [07:01:51]OFD Sender: No OFD packet to send [07:01:56]OFD Sender: No OFD packet to send [07:02:01]OFD Sender: No OFD packet to send [07:02:06]OFD Sender: No OFD packet to send [07:02:11]OFD Sender: No OFD packet to send [07:02:16]OFD Sender: No OFD packet to send [07:02:21]OFD Sender: No OFD packet to send [07:02:26]OFD Sender: No OFD packet to send [07:02:31]OFD Sender: No OFD packet to send [07:02:36]OFD Sender: No OFD packet to send [07:02:41]OFD Sender: No OFD packet to send [07:02:46]OFD Sender: No OFD packet to send [07:02:51]OFD Sender: No OFD packet to send [07:02:56]OFD Sender: No OFD packet to send [07:03:01]OFD Sender: No OFD packet to send [07:03:07]OFD Sender: No OFD packet to send [07:03:12]OFD Sender: No OFD packet to send [07:03:17]OFD Sender: No OFD packet to send [07:03:22]OFD Sender: No OFD packet to send [07:03:27]OFD Sender: No OFD packet to send [07:03:32]OFD Sender: No OFD packet to send [07:03:37]OFD Sender: No OFD packet to send [07:03:42]OFD Sender: No OFD packet to send [07:03:47]OFD Sender: No OFD packet to send [07:03:52]OFD Sender: No OFD packet to send [07:03:57]OFD Sender: No OFD packet to send [07:04:02]OFD Sender: No OFD packet to send [07:04:07]OFD Sender: No OFD packet to send [07:04:12]OFD Sender: No OFD packet to send [07:04:17]OFD Sender: No OFD packet to send [07:04:22]OFD Sender: No OFD packet to send [07:04:27]OFD Sender: No OFD packet to send [07:04:32]OFD Sender: No OFD packet to send [07:04:37]OFD Sender: No OFD packet to send [07:04:42]OFD Sender: No OFD packet to send [07:04:47]OFD Sender: No OFD packet to send [07:04:52]OFD Sender: No OFD packet to send [07:04:57]OFD Sender: No OFD packet to send [07:05:02]OFD Sender: No OFD packet to send [07:05:07]OFD Sender: No OFD packet to send [07:05:12]OFD Sender: No OFD packet to send [07:05:17]OFD Sender: No OFD packet to send [07:05:22]OFD Sender: No OFD packet to send [07:05:27]OFD Sender: No OFD packet to send [07:05:32]OFD Sender: No OFD packet to send [07:05:37]OFD Sender: No OFD packet to send [07:05:42]OFD Sender: No OFD packet to send [07:05:47]OFD Sender: No OFD packet to send [07:05:52]OFD Sender: No OFD packet to send [07:05:57]OFD Sender: No OFD packet to send [07:06:02]OFD Sender: No OFD packet to send [07:06:07]OFD Sender: No OFD packet to send [07:06:12]OFD Sender: No OFD packet to send [07:06:17]OFD Sender: No OFD packet to send [07:06:22]OFD Sender: No OFD packet to send [07:06:27]OFD Sender: No OFD packet to send [07:06:32]OFD Sender: No OFD packet to send [07:06:37]OFD Sender: No OFD packet to send [07:06:42]OFD Sender: No OFD packet to send [07:06:46]accept exits with 9 [07:06:46]New connection [07:06:46]New thread 3067055460 created [07:06:46]Thread 3067198820 joined [07:06:46]Waiting for new connection... [07:06:46] Sock 9.Parse request [07:06:46]Sock 9.Check first char [07:06:46]Sock 9.First char is OK [07:06:46]request: POST /json_proto HTTP/1.0 [07:06:46]Method: POST [07:06:46]URL: /json_proto [07:06:46]Method is POST - this is cgi request [07:06:46]url: /json_proto [07:06:46]query_string will be loaded in cgi processing [07:06:46]execute_cgi json_proto POST (null) [07:06:46]execute_cgi path=json_proto method=POST [07:06:46]POST find Content-Length [07:06:46]Host: 172.17.42.131:8080 [07:06:46]Content-Length: 677 [07:06:46]Content-Type: application/json [07:06:46] [07:06:46]POST finish read [07:06:46]Found Content-Length = 677 [07:06:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:46]execute_script... [07:06:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210116", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:06:46]POST & json_proto [07:06:46]process_json_proto [07:06:46]json parsed OK: [07:06:46]protocol is kg_v1.0 [07:06:46]action value=close_receipt [07:06:46]process_action close_receipt [07:06:46]cmd_close_receipt [07:06:46]MH_GetDate [07:06:46]Write to MH i2c: F0 00 00 88 1F 96 [07:06:46]Write i2c OK [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: F0 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: F0 09 00 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: F0 09 00 88 1F 00 08 4F 17 67 A0 18 CA 66 5C [07:06:46]GetLastDocTimeStamp 1729580330 [07:06:46]current date 1729580808 [07:06:46]FM_GetShiftState [07:06:46]SAM_PROTO_GetShiftState [07:06:46]wFMCommunicate request_size=4 [07:06:46]MH_SAM_APDU [07:06:46]CAPDU: 80 13 01 00 [07:06:46]Write to MH i2c: E2 08 00 89 1F 80 13 01 00 00 00 00 00 25 [07:06:46]Write i2c OK [07:06:46]MH_I2C_Read... [07:06:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:46]Read from MH i2c: E2 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 0E 00 [07:06:46]MH_I2C_Read... [07:06:46]Read from MH i2c: E2 0E 00 89 1F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [07:06:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:06:46]wFMCommunicate OK [07:06:46]SAM_PROTO_GetShiftState done [07:06:46]FM_GetShiftState done [07:06:46]opened in 1729556094 [07:06:46]opened+sec_in_day 1729642494 [07:06:46]quantity*price = 50041 [07:06:46]sum+1 = 50042 [07:06:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 92 22.10.2024 07:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188063 ФПД: 41062115373267 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188063&fm=41062115373267&tin=02508201610067®Number=0000000000100030&sum=50000 [07:06:47]StoreToDocumentArchive [07:06:47]shift 461 fd 188063 [07:06:47]save to /storage/0461/doc_00188063 [07:06:47]save last doc name /storage/0461/doc_00188063 to /storage/kkm_last_doc_name [07:06:47]save OK [07:06:47]Clear old archive folders... [07:06:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:06:47]tlvbuf is 01BE0620 [07:06:47]SAM_PROTO_ClearQueue [07:06:47]wFMCommunicate request_size=4 [07:06:47]MH_SAM_APDU [07:06:47]CAPDU: 80 09 00 00 [07:06:47]Write to MH i2c: E2 08 00 96 1F 80 09 00 00 00 00 00 00 27 [07:06:47]Write i2c OK [07:06:47]MH_I2C_Read... [07:06:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:06:47]Read from MH i2c: E2 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 03 00 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 03 00 96 1F 00 90 00 29 [07:06:47]RAPDU: 90 00 [07:06:47]wFMCommunicate OK [07:06:47]SAM_PROTO_ClearQueue done [07:06:47]KKMCreateOFDPacket [07:06:47]OFDProtocolAddRootSTLVToBuf [07:06:47]FM_MakeSignedData [07:06:47]FM_MakeSignedData [07:06:47]SAM_PROTO_SignData [07:06:47]wFMCommunicate request_size=4 [07:06:47]MH_SAM_APDU [07:06:47]CAPDU: 80 0D 01 02 [07:06:47]Write to MH i2c: E2 08 00 97 1F 80 0D 01 02 00 00 00 00 2F [07:06:47]Write i2c OK [07:06:47]MH_I2C_Read... [07:06:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:06:47]Read from MH i2c: E2 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 03 00 [07:06:47]MH_I2C_Read... [07:06:47]Read from MH i2c: E2 03 00 97 1F 00 90 00 2A [07:06:47]RAPDU: 90 00 [07:06:47]wFMCommunicate OK [07:06:47]wFMCommunicate request_size=255 [07:06:47]MH_SAM_APDU [07:06: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 08 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DE 02 00 35 04 06 00 25 [07:06:47]Write to MH i2c: E2 02 01 98 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 08 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DE 02 00 35 04 06 00 25 00 00 45 [07:06:47]Write i2c OK [07:06:47]MH_I2C_Read... [07:06:48]OFD Sender: No OFD packet to send [07:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:48]Read from MH i2c: E2 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 03 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 03 00 98 1F 00 90 00 2B [07:06:48]RAPDU: 90 00 [07:06:48]wFMCommunicate OK [07:06:48]wFMCommunicate request_size=10 [07:06:48]MH_SAM_APDU [07:06:48]CAPDU: 80 0D 02 02 05 58 84 CC F0 D3 [07:06:48]Write to MH i2c: E2 0D 00 99 1F 80 0D 02 02 05 00 58 84 CC F0 D3 00 00 A7 [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:06:48]Read from MH i2c: E2 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 03 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 03 00 99 1F 00 90 00 2C [07:06:48]RAPDU: 90 00 [07:06:48]wFMCommunicate OK [07:06:48]wFMCommunicate request_size=4 [07:06:48]MH_SAM_APDU [07:06:48]CAPDU: 80 0D 03 02 [07:06:48]Write to MH i2c: E2 08 00 9A 1F 80 0D 03 02 00 00 00 00 34 [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:06:48]Read from MH i2c: E2 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 0B 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 0B 00 9A 1F 00 0C 97 02 98 0B 20 CA 79 90 00 E0 [07:06:48]RAPDU: 0C 97 02 98 0B 20 CA 79 90 00 [07:06:48]wFMCommunicate OK [07:06:48]SAM_PROTO_SignData done [07:06:48]FM_MakeSignedData done [07:06:48]CreateOFDProtocolMessage [07:06:48]wFMCommunicate request_size=4 [07:06:48]MH_SAM_APDU [07:06:48]CAPDU: 80 11 00 00 [07:06:48]Write to MH i2c: E2 08 00 9B 1F 80 11 00 00 00 00 00 00 34 [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:48]Read from MH i2c: E2 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 17 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: E2 17 00 9B 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [07:06:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:06:48]wFMCommunicate OK [07:06:48]CreateOFDProtocolMessage done [07:06:48]OFDSenderStorePacket 188063 [07:06:48]StoreOFDPacket docnum=188063 [07:06:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 51 07 01 3A 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 08 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DE 02 00 35 04 06 00 25 58 84 CC F0 D3 0C 97 02 98 0B 20 CA 79 [07:06:48]CheckFolder [07:06:48]dirname=/storage/ofd_packets [07:06:48]CheckFolder done [07:06:48]ProducePacketName [07:06:48]name=ofd_packets/00188063 [07:06:48]NVStorageSaveData ofd_packets/00188063 [07:06:48]File name is /storage/ofd_packets/00188063 [07:06:48]Write 301 bytes [07:06:48]NVStorageSaveData done [07:06:48]OFDSenderStorePacket done [07:06:48]KKMCreateOFDPacket done [07:06:48]NVStorageSaveData kkm_last_timestamp [07:06:48]File name is /storage/kkm_last_timestamp [07:06:48]Write 4 bytes [07:06:48]NVStorageSaveData done [07:06:48]ExternCall_PrintAddStr [07:06:48]wPrintStart [07:06:48]Write to MH i2c: 01 00 00 9C 1F BB [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: 01 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: 01 07 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: 01 07 00 9C 1F 00 00 00 00 00 FF 0F D0 [07:06:48]RasterBufferAndPrint [07:06:48]line Счет N : (1)210116 [07:06:48]line ИНН: 02508201610067 [07:06:48]line Контрольно-Кассовый Чек [07:06:48]line ПРОДАЖА [07:06:48]line ТРК (МРК, ГНК) : 42 [07:06:48]line Товар: 2710124130 [07:06:48]line Аи-92-К-3 [07:06:48]line 7.480 * 66.90 [07:06:48]line = 500.41 [07:06:48]line НДС 12% НСП 1% [07:06:48]line > о реализуемом товаре [07:06:48]line ОКРУГЛЕНИЕ: -0.41 [07:06:48]line ИТОГО: 500.00 [07:06:48]line Внесено: 500.00 [07:06:48]line СДАЧА: 0.00 [07:06:48]line НСП 1% : 4.43 [07:06:48]line НДС 12% : 53.14 [07:06:48]line Наличными: 500.00 [07:06:48]line Безнал.: 0.00 [07:06:48]line Место: АЗС № 86 "Партнер Нефть" [07:06:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:06:48]line СНО: Общий режим [07:06:48]line Чек 92 22.10.2024 07:06 [07:06:48]line Смена: 461 ФФД: 1.0 [07:06:48]line ЗНМ: 0300000155 [07:06:48]line РНМ: 0000000000100030 [07:06:48]line Версия ККМ: 001 [07:06:48]line ФМ: 0000000000965340 [07:06:48]line ФД: 188063 [07:06:48]line ФПД: 41062115373267 [07:06:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188063&fm=41062115373267&tin=02508201610067®Number=0000000000100030&sum=50000 [07:06:48]written 0, free lines is 4095 [07:06:48]OFD Sender: Processing packet 188063 [packets to send 1062, broken 1061] [07:06:48]ProducePacketName [07:06:48]name=ofd_packets/00188063 [07:06:48]OFD Sender: To server: pG, [07:06:48]CommunicateWithHost lk.salyk.kg:30040 [07:06:48]ConnectInit lk.salyk.kg [07:06:48]Connected sock=8 [07:06:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 51 07 01 3A 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 00 00 00 F4 03 04 00 08 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DE 02 00 35 04 06 00 25 58 84 CC F0 D3 0C 97 02 98 0B 20 CA 79 [07:06:48]Write to MH i2c: 01 00 00 C7 1F E6 [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: 01 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: 01 07 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: 01 07 00 C7 1F 00 00 00 00 00 56 0C 4F [07:06:48]RasterBufferAndPrint [07:06:48]line [07:06:48]line [07:06:48]line [07:06:48]line [07:06:48]line [07:06:48]written 0, free lines is 3162 [07:06:48]MH_Cut [07:06:48]Write to MH i2c: D1 01 00 CE 1F 01 BF [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: D1 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: D1 01 00 [07:06:48]MH_I2C_Read... [07:06:48]Read from MH i2c: D1 01 00 CE 1F 00 BE [07:06:48]Write to MH i2c: 01 00 00 CF 1F EE [07:06:48]Write i2c OK [07:06:48]MH_I2C_Read... [07:06:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA 3F 47 00 FB 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DE 02 00 F4 03 04 00 F6 F8 16 67 B6 04 01 00 00 05 CA 60 8D F2 FE B1 A3 [07:06:48]CommunicateWithHost err = 0 [07:06:48]CheckOFDResponse [07:06:48]1017 (14) - 77093643461234 [07:06:48]1041 (16) - 0000000000965340 [07:06:48]1040 (4) - 188063 [07:06:48]1012 (4) - 22.10.2024 00:59 [07:06:48]1206 (1) - 0 [07:06:48]OFD Sender: Remove packet 188063 [07:06:48]ProducePacketName [07:06:48]name=ofd_packets/00188063 [07:06:48]NVStorageDeleteData [07:06:49]OFD Sender: No OFD packet to send [07:06:50]*** Cut start [07:06:50]*** Partial cut [07:06:50]*** CUTSNS_PIN = 1 [07:06:50]*** CUTSNS_PIN = 0 [07:06:50]*** Brake cut motor [07:06:50]Read from MH i2c: 01 [07:06:50]MH_I2C_Read... [07:06:50]*** Stop cut motor [07:06:50]*** Cut end [07:06:50]Read from MH i2c: 01 07 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: 01 07 00 CF 1F 00 00 00 00 00 FF 0F 03 [07:06:50]process_action close_receipt done [07:06:50]requested_data is exist [07:06:50]produce_requested_data [07:06:50]requested_item fm.sn is exist - process it [07:06:50]wFMCommunicate request_size=4 [07:06:50]MH_SAM_APDU [07:06:50]CAPDU: 80 11 00 00 [07:06:50]Write to MH i2c: E2 08 00 D0 1F 80 11 00 00 00 00 00 00 69 [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 17 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 17 00 D0 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [07:06:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:06:50]wFMCommunicate OK [07:06:50]requested_item fd.num is exist - process it [07:06:50]SAM_PROTO_GetFieldsCounters [07:06:50]wFMCommunicate request_size=4 [07:06:50]MH_SAM_APDU [07:06:50]CAPDU: 80 13 00 00 [07:06:50]Write to MH i2c: E2 08 00 D1 1F 80 13 00 00 00 00 00 00 6C [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 62 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 62 00 D1 1F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F DE 02 00 0E 04 04 00 CD 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 D4 [07:06:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F DE 02 00 0E 04 04 00 CD 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 [07:06:50]wFMCommunicate OK [07:06:50]SAM_PROTO_GetFieldsCounters done [07:06:50]requested_item shift.num is exist - process it [07:06:50]requested_item shift.opened is exist - process it [07:06:50]req_shift_opened [07:06:50]FM_GetShiftState [07:06:50]SAM_PROTO_GetShiftState [07:06:50]wFMCommunicate request_size=4 [07:06:50]MH_SAM_APDU [07:06:50]CAPDU: 80 13 01 00 [07:06:50]Write to MH i2c: E2 08 00 D2 1F 80 13 01 00 00 00 00 00 6E [07:06:50]Write i2c OK [07:06:50]MH_I2C_Read... [07:06:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:06:50]Read from MH i2c: E2 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 0E 00 [07:06:50]MH_I2C_Read... [07:06:50]Read from MH i2c: E2 0E 00 D2 1F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 63 [07:06:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:06:50]wFMCommunicate OK [07:06:50]SAM_PROTO_GetShiftState done [07:06:50]FM_GetShiftState done [07:06:50]req_shift_opened done [07:06:50]requested_item shift.open_date is exist - process it [07:06:50]req_shift_open_date [07:06:50]req_shift_open_date done [07:06:50]produce_requested_data done [07:06:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188063,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:06:50]process_action_free close_receipt [07:06:50]json_value_free [07:06:50]json_value_free done [07:06:50]process_json_proto returns [07:06:50]Send response to host [07:06:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188063,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:06:50]free response buf [07:06:50]execute_script done [07:06:50]execute_script returns [07:06:50]free content buf [07:06:50]Sock 9.Close socket [07:06:50]Sock 9.Thread stoped [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:01]accept exits with 10 [07:08:01]New connection [07:08:01]New thread 3067198820 created [07:08:01]Thread 3067055460 joined [07:08:01]Waiting for new connection... [07:08:01] Sock 10.Parse request [07:08:01]Sock 10.Check first char [07:08:01]Sock 10.First char is OK [07:08:01]request: POST /json_proto HTTP/1.0 [07:08:01]Method: POST [07:08:01]URL: /json_proto [07:08:01]Method is POST - this is cgi request [07:08:01]url: /json_proto [07:08:01]query_string will be loaded in cgi processing [07:08:01]execute_cgi json_proto POST (null) [07:08:01]execute_cgi path=json_proto method=POST [07:08:01]POST find Content-Length [07:08:01]Host: 172.17.42.131:8080 [07:08:01]Content-Length: 688 [07:08:01]Content-Type: application/json [07:08:01] [07:08:01]POST finish read [07:08:01]Found Content-Length = 688 [07:08:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:01]execute_script... [07:08: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)210115", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:08:01]POST & json_proto [07:08:01]process_json_proto [07:08:01]json parsed OK: [07:08:01]protocol is kg_v1.0 [07:08:01]action value=close_receipt [07:08:01]process_action close_receipt [07:08:01]cmd_close_receipt [07:08:01]MH_GetDate [07:08:01]Write to MH i2c: F0 00 00 D3 1F E1 [07:08:01]Write i2c OK [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: F0 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: F0 09 00 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: F0 09 00 D3 1F 00 53 4F 17 67 A0 18 CA 66 F2 [07:08:01]GetLastDocTimeStamp 1729580808 [07:08:01]current date 1729580883 [07:08:01]FM_GetShiftState [07:08:01]SAM_PROTO_GetShiftState [07:08:01]wFMCommunicate request_size=4 [07:08:01]MH_SAM_APDU [07:08:01]CAPDU: 80 13 01 00 [07:08:01]Write to MH i2c: E2 08 00 D4 1F 80 13 01 00 00 00 00 00 70 [07:08:01]Write i2c OK [07:08:01]MH_I2C_Read... [07:08:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:01]Read from MH i2c: E2 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 0E 00 [07:08:01]MH_I2C_Read... [07:08:01]Read from MH i2c: E2 0E 00 D4 1F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [07:08:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:08:01]wFMCommunicate OK [07:08:01]SAM_PROTO_GetShiftState done [07:08:01]FM_GetShiftState done [07:08:01]opened in 1729556094 [07:08:01]opened+sec_in_day 1729642494 [07:08:01]quantity*price = 250050 [07:08:01]sum+1 = 250052 [07:08:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 93 22.10.2024 07:08 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188064 ФПД: 266220316826187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188064&fm=266220316826187&tin=02508201610067®Number=0000000000100030&sum=250000 [07:08:02]StoreToDocumentArchive [07:08:02]shift 461 fd 188064 [07:08:02]save to /storage/0461/doc_00188064 [07:08:02]save last doc name /storage/0461/doc_00188064 to /storage/kkm_last_doc_name [07:08:02]save OK [07:08:02]Clear old archive folders... [07:08:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:08:02]tlvbuf is B6EE4800 [07:08:02]SAM_PROTO_ClearQueue [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 09 00 00 [07:08:02]Write to MH i2c: E2 08 00 E1 1F 80 09 00 00 00 00 00 00 72 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 E1 1F 00 90 00 74 [07:08:02]RAPDU: 90 00 [07:08:02]wFMCommunicate OK [07:08:02]SAM_PROTO_ClearQueue done [07:08:02]KKMCreateOFDPacket [07:08:02]OFDProtocolAddRootSTLVToBuf [07:08:02]FM_MakeSignedData [07:08:02]FM_MakeSignedData [07:08:02]SAM_PROTO_SignData [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 0D 01 02 [07:08:02]Write to MH i2c: E2 08 00 E2 1F 80 0D 01 02 00 00 00 00 7A [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 E2 1F 00 90 00 75 [07:08:02]RAPDU: 90 00 [07:08:02]wFMCommunicate OK [07:08:02]wFMCommunicate request_size=255 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 53 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DE 02 [07:08:02]Write to MH i2c: E2 02 01 E3 1F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 53 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DE 02 00 00 34 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 E3 1F 00 90 00 76 [07:08:02]RAPDU: 90 00 [07:08:02]wFMCommunicate OK [07:08:02]wFMCommunicate request_size=16 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F2 20 3F 6A 9A 4B [07:08:02]Write to MH i2c: E2 13 00 E4 1F 80 0D 02 02 0B 00 00 35 04 06 00 F2 20 3F 6A 9A 4B 00 00 72 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 03 00 E4 1F 00 90 00 77 [07:08:02]RAPDU: 90 00 [07:08:02]wFMCommunicate OK [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 0D 03 02 [07:08:02]Write to MH i2c: E2 08 00 E5 1F 80 0D 03 02 00 00 00 00 7F [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 0B 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 0B 00 E5 1F 00 AB D8 41 57 1D 7D B9 9A 90 00 88 [07:08:02]RAPDU: AB D8 41 57 1D 7D B9 9A 90 00 [07:08:02]wFMCommunicate OK [07:08:02]SAM_PROTO_SignData done [07:08:02]FM_MakeSignedData done [07:08:02]CreateOFDProtocolMessage [07:08:02]wFMCommunicate request_size=4 [07:08:02]MH_SAM_APDU [07:08:02]CAPDU: 80 11 00 00 [07:08:02]Write to MH i2c: E2 08 00 E6 1F 80 11 00 00 00 00 00 00 7F [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:02]Read from MH i2c: E2 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 17 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: E2 17 00 E6 1F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [07:08:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:08:02]wFMCommunicate OK [07:08:02]CreateOFDProtocolMessage done [07:08:02]OFDSenderStorePacket 188064 [07:08:02]StoreOFDPacket docnum=188064 [07:08:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E2 05 0D 01 57 83 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 53 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DE 02 00 35 04 06 00 F2 20 3F 6A 9A 4B AB D8 41 57 1D 7D B9 9A [07:08:02]CheckFolder [07:08:02]dirname=/storage/ofd_packets [07:08:02]CheckFolder done [07:08:02]ProducePacketName [07:08:02]name=ofd_packets/00188064 [07:08:02]NVStorageSaveData ofd_packets/00188064 [07:08:02]File name is /storage/ofd_packets/00188064 [07:08:02]Write 307 bytes [07:08:02]NVStorageSaveData done [07:08:02]OFDSenderStorePacket done [07:08:02]KKMCreateOFDPacket done [07:08:02]NVStorageSaveData kkm_last_timestamp [07:08:02]File name is /storage/kkm_last_timestamp [07:08:02]Write 4 bytes [07:08:02]NVStorageSaveData done [07:08:02]ExternCall_PrintAddStr [07:08:02]wPrintStart [07:08:02]Write to MH i2c: 01 00 00 E7 1F 06 [07:08:02]Write i2c OK [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: 01 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: 01 07 00 [07:08:02]MH_I2C_Read... [07:08:02]Read from MH i2c: 01 07 00 E7 1F 00 00 00 00 00 FF 0F 1B [07:08:02]RasterBufferAndPrint [07:08:02]line Счет N : (1)210115 [07:08:02]line ИНН: 02508201610067 [07:08:02]line Контрольно-Кассовый Чек [07:08:02]line ПРОДАЖА [07:08:02]line ТРК (МРК, ГНК) : 11 [07:08:02]line Товар: 2710194210 [07:08:02]line D-ENERGY ДТ-К-5 [07:08:02]line 32.390 * 77.20 [07:08:02]line = 2500.51 [07:08:02]line НДС 12% НСП 1% [07:08:02]line > о реализуемом товаре [07:08:02]line ОКРУГЛЕНИЕ: -0.51 [07:08:02]line ИТОГО: 2500.00 [07:08:02]line Внесено: 2500.00 [07:08:02]line СДАЧА: 0.00 [07:08:02]line НСП 1% : 22.13 [07:08:02]line НДС 12% : 265.54 [07:08:02]line Наличными: 2500.00 [07:08:02]line Безнал.: 0.00 [07:08:02]line Место: АЗС № 86 "Партнер Нефть" [07:08:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:08:02]line СНО: Общий режим [07:08:02]line Чек 93 22.10.2024 07:08 [07:08:02]line Смена: 461 ФФД: 1.0 [07:08:02]line ЗНМ: 0300000155 [07:08:02]line РНМ: 0000000000100030 [07:08:02]line Версия ККМ: 001 [07:08:02]line ФМ: 0000000000965340 [07:08:02]line ФД: 188064 [07:08:02]line ФПД: 266220316826187 [07:08:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T070803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188064&fm=266220316826187&tin=02508201610067®Number=0000000000100030&sum=250000 [07:08:02]written 0, free lines is 4095 [07:08:02]OFD Sender: Processing packet 188064 [packets to send 1062, broken 1061] [07:08:02]ProducePacketName [07:08:02]name=ofd_packets/00188064 [07:08:02]OFD Sender: To server: pG, [07:08:02]CommunicateWithHost lk.salyk.kg:30040 [07:08:02]ConnectInit lk.salyk.kg [07:08:03]Connected sock=11 [07:08:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E2 05 0D 01 57 83 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 53 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DE 02 00 35 04 06 00 F2 20 3F 6A 9A 4B AB D8 41 57 1D 7D B9 9A [07:08:03]Write to MH i2c: 01 00 00 12 20 32 [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: 01 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: 01 07 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: 01 07 00 12 20 00 00 00 00 00 58 0C 9D [07:08:03]RasterBufferAndPrint [07:08:03]line [07:08:03]line [07:08:03]line [07:08:03]line [07:08:03]line [07:08:03]written 0, free lines is 3163 [07:08:03]MH_Cut [07:08:03]Write to MH i2c: D1 01 00 19 20 01 0B [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: D1 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: D1 01 00 [07:08:03]MH_I2C_Read... [07:08:03]Read from MH i2c: D1 01 00 19 20 00 0A [07:08:03]Write to MH i2c: 01 00 00 1A 20 3A [07:08:03]Write i2c OK [07:08:03]MH_I2C_Read... [07:08:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 CB 47 00 E3 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DE 02 00 F4 03 04 00 41 F9 16 67 B6 04 01 00 00 B4 AF 2F A7 F3 60 7D 95 [07:08:03]CommunicateWithHost err = 0 [07:08:03]CheckOFDResponse [07:08:03]1017 (14) - 77093643461234 [07:08:03]1041 (16) - 0000000000965340 [07:08:03]1040 (4) - 188064 [07:08:03]1012 (4) - 22.10.2024 01:00 [07:08:03]1206 (1) - 0 [07:08:03]OFD Sender: Remove packet 188064 [07:08:03]ProducePacketName [07:08:03]name=ofd_packets/00188064 [07:08:03]NVStorageDeleteData [07:08:03]OFD Sender: No OFD packet to send [07:08:04]*** Cut start [07:08:04]*** Partial cut [07:08:04]*** CUTSNS_PIN = 1 [07:08:04]*** CUTSNS_PIN = 0 [07:08:04]*** Brake cut motor [07:08:05]Read from MH i2c: 01 [07:08:05]MH_I2C_Read... [07:08:05]*** Stop cut motor [07:08:05]*** Cut end [07:08:05]Read from MH i2c: 01 07 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: 01 07 00 1A 20 00 00 00 00 00 FF 0F 4F [07:08:05]process_action close_receipt done [07:08:05]requested_data is exist [07:08:05]produce_requested_data [07:08:05]requested_item fm.sn is exist - process it [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 11 00 00 [07:08:05]Write to MH i2c: E2 08 00 1B 20 80 11 00 00 00 00 00 00 B5 [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 17 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 17 00 1B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [07:08:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:08:05]wFMCommunicate OK [07:08:05]requested_item fd.num is exist - process it [07:08:05]SAM_PROTO_GetFieldsCounters [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 13 00 00 [07:08:05]Write to MH i2c: E2 08 00 1C 20 80 13 00 00 00 00 00 00 B8 [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 62 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 62 00 1C 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 DE 02 00 0E 04 04 00 CD 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 24 [07:08:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 DE 02 00 0E 04 04 00 CD 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 [07:08:05]wFMCommunicate OK [07:08:05]SAM_PROTO_GetFieldsCounters done [07:08:05]requested_item shift.num is exist - process it [07:08:05]requested_item shift.opened is exist - process it [07:08:05]req_shift_opened [07:08:05]FM_GetShiftState [07:08:05]SAM_PROTO_GetShiftState [07:08:05]wFMCommunicate request_size=4 [07:08:05]MH_SAM_APDU [07:08:05]CAPDU: 80 13 01 00 [07:08:05]Write to MH i2c: E2 08 00 1D 20 80 13 01 00 00 00 00 00 BA [07:08:05]Write i2c OK [07:08:05]MH_I2C_Read... [07:08:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:08:05]Read from MH i2c: E2 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 0E 00 [07:08:05]MH_I2C_Read... [07:08:05]Read from MH i2c: E2 0E 00 1D 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AF [07:08:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:08:05]wFMCommunicate OK [07:08:05]SAM_PROTO_GetShiftState done [07:08:05]FM_GetShiftState done [07:08:05]req_shift_opened done [07:08:05]requested_item shift.open_date is exist - process it [07:08:05]req_shift_open_date [07:08:05]req_shift_open_date done [07:08:05]produce_requested_data done [07:08:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188064,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:08:05]process_action_free close_receipt [07:08:05]json_value_free [07:08:05]json_value_free done [07:08:05]process_json_proto returns [07:08:05]Send response to host [07:08:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188064,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:08:05]free response buf [07:08:05]execute_script done [07:08:05]execute_script returns [07:08:05]free content buf [07:08:05]Sock 10.Close socket [07:08:05]Sock 10.Thread stoped [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08: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:49]OFD Sender: No OFD packet to send [07:08:54]OFD Sender: No OFD packet to send [07:08:59]OFD Sender: No OFD packet to send [07:09:04]OFD Sender: No OFD packet to send [07:09:09]OFD Sender: No OFD packet to send [07:09:14]OFD Sender: No OFD packet to send [07:09:19]OFD Sender: No OFD packet to send [07:09:24]OFD Sender: No OFD packet to send [07:09:29]OFD Sender: No OFD packet to send [07:09:34]OFD Sender: No OFD packet to send [07:09:39]OFD Sender: No OFD packet to send [07:09:44]OFD Sender: No OFD packet to send [07:09:49]OFD Sender: No OFD packet to send [07:09:54]OFD Sender: No OFD packet to send [07:09:59]OFD Sender: No OFD packet to send [07:10:00]accept exits with 8 [07:10:00]New connection [07:10:00]New thread 3067055460 created [07:10:00]Thread 3067198820 joined [07:10:00]Waiting for new connection... [07:10:00] Sock 8.Parse request [07:10:00]Sock 8.Check first char [07:10:00]Sock 8.First char is OK [07:10:00]request: POST /json_proto HTTP/1.0 [07:10:00]Method: POST [07:10:00]URL: /json_proto [07:10:00]Method is POST - this is cgi request [07:10:00]url: /json_proto [07:10:00]query_string will be loaded in cgi processing [07:10:00]execute_cgi json_proto POST (null) [07:10:00]execute_cgi path=json_proto method=POST [07:10:00]POST find Content-Length [07:10:00]Host: 172.17.42.131:8080 [07:10:00]Content-Length: 800 [07:10:00]Content-Type: application/json [07:10:00] [07:10:00]POST finish read [07:10:00]Found Content-Length = 800 [07:10:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908652", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:00]execute_script... [07:10:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210117", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908652", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:00]POST & json_proto [07:10:00]process_json_proto [07:10:00]json parsed OK: [07:10:00]protocol is kg_v1.0 [07:10:00]action value=close_receipt [07:10:00]process_action close_receipt [07:10:00]cmd_close_receipt [07:10:00]MH_GetDate [07:10:00]Write to MH i2c: F0 00 00 1E 20 2D [07:10:00]Write i2c OK [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: F0 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: F0 09 00 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: F0 09 00 1E 20 00 CB 4F 17 67 A0 18 CA 66 B6 [07:10:00]GetLastDocTimeStamp 1729580883 [07:10:00]current date 1729581003 [07:10:00]FM_GetShiftState [07:10:00]SAM_PROTO_GetShiftState [07:10:00]wFMCommunicate request_size=4 [07:10:00]MH_SAM_APDU [07:10:00]CAPDU: 80 13 01 00 [07:10:00]Write to MH i2c: E2 08 00 1F 20 80 13 01 00 00 00 00 00 BC [07:10:00]Write i2c OK [07:10:00]MH_I2C_Read... [07:10:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:00]Read from MH i2c: E2 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: E2 0E 00 [07:10:00]MH_I2C_Read... [07:10:00]Read from MH i2c: E2 0E 00 1F 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [07:10:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:10:00]wFMCommunicate OK [07:10:00]SAM_PROTO_GetShiftState done [07:10:00]FM_GetShiftState done [07:10:00]opened in 1729556094 [07:10:00]opened+sec_in_day 1729642494 [07:10:00]quantity*price = 0 [07:10:00]sum+1 = 1 [07:10:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 94 22.10.2024 07:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3908652 ФМ: 0000000000965340 ФД: 188065 ФПД: 251813955589227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071003&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188065&fm=251813955589227&tin=02508201610067®Number=0000000000100030&sum=0 [07:10:01]StoreToDocumentArchive [07:10:01]shift 461 fd 188065 [07:10:01]save to /storage/0461/doc_00188065 [07:10:01]save last doc name /storage/0461/doc_00188065 to /storage/kkm_last_doc_name [07:10:01]save OK [07:10:01]Clear old archive folders... [07:10:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:01]tlvbuf is 01BB7F00 [07:10:01]SAM_PROTO_ClearQueue [07:10:01]wFMCommunicate request_size=4 [07:10:01]MH_SAM_APDU [07:10:01]CAPDU: 80 09 00 00 [07:10:01]Write to MH i2c: E2 08 00 2C 20 80 09 00 00 00 00 00 00 BE [07:10:01]Write i2c OK [07:10:01]MH_I2C_Read... [07:10:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:01]Read from MH i2c: E2 [07:10:01]MH_I2C_Read... [07:10:01]Read from MH i2c: E2 03 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 2C 20 00 90 00 C0 [07:10:02]RAPDU: 90 00 [07:10:02]wFMCommunicate OK [07:10:02]SAM_PROTO_ClearQueue done [07:10:02]KKMCreateOFDPacket [07:10:02]OFDProtocolAddRootSTLVToBuf [07:10:02]FM_MakeSignedData [07:10:02]FM_MakeSignedData [07:10:02]SAM_PROTO_SignData [07:10:02]wFMCommunicate request_size=4 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 0D 01 02 [07:10:02]Write to MH i2c: E2 08 00 2D 20 80 0D 01 02 00 00 00 00 C6 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 2D 20 00 90 00 C1 [07:10:02]RAPDU: 90 00 [07:10:02]wFMCommunicate OK [07:10:02]wFMCommunicate request_size=255 [07:10:02]MH_SAM_APDU [07:10: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CB 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DE 02 00 35 04 06 00 E5 [07:10:02]Write to MH i2c: E2 02 01 2E 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CB 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DE 02 00 35 04 06 00 E5 00 00 15 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 2E 20 00 90 00 C2 [07:10:02]RAPDU: 90 00 [07:10:02]wFMCommunicate OK [07:10:02]wFMCommunicate request_size=10 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 0D 02 02 05 06 01 5F 54 6B [07:10:02]Write to MH i2c: E2 0D 00 2F 20 80 0D 02 02 05 00 06 01 5F 54 6B 00 00 F8 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 03 00 2F 20 00 90 00 C3 [07:10:02]RAPDU: 90 00 [07:10:02]wFMCommunicate OK [07:10:02]wFMCommunicate request_size=4 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 0D 03 02 [07:10:02]Write to MH i2c: E2 08 00 30 20 80 0D 03 02 00 00 00 00 CB [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 0B 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 0B 00 30 20 00 EA 16 A8 7F 16 6E B3 6C 90 00 96 [07:10:02]RAPDU: EA 16 A8 7F 16 6E B3 6C 90 00 [07:10:02]wFMCommunicate OK [07:10:02]SAM_PROTO_SignData done [07:10:02]FM_MakeSignedData done [07:10:02]CreateOFDProtocolMessage [07:10:02]wFMCommunicate request_size=4 [07:10:02]MH_SAM_APDU [07:10:02]CAPDU: 80 11 00 00 [07:10:02]Write to MH i2c: E2 08 00 31 20 80 11 00 00 00 00 00 00 CB [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:02]Read from MH i2c: E2 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 17 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: E2 17 00 31 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [07:10:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:10:02]wFMCommunicate OK [07:10:02]CreateOFDProtocolMessage done [07:10:02]OFDSenderStorePacket 188065 [07:10:02]StoreOFDPacket docnum=188065 [07:10:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 66 07 01 B6 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CB 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DE 02 00 35 04 06 00 E5 06 01 5F 54 6B EA 16 A8 7F 16 6E B3 6C [07:10:02]CheckFolder [07:10:02]dirname=/storage/ofd_packets [07:10:02]CheckFolder done [07:10:02]ProducePacketName [07:10:02]name=ofd_packets/00188065 [07:10:02]NVStorageSaveData ofd_packets/00188065 [07:10:02]File name is /storage/ofd_packets/00188065 [07:10:02]Write 301 bytes [07:10:02]NVStorageSaveData done [07:10:02]OFDSenderStorePacket done [07:10:02]KKMCreateOFDPacket done [07:10:02]NVStorageSaveData kkm_last_timestamp [07:10:02]File name is /storage/kkm_last_timestamp [07:10:02]Write 4 bytes [07:10:02]NVStorageSaveData done [07:10:02]ExternCall_PrintAddStr [07:10:02]wPrintStart [07:10:02]Write to MH i2c: 01 00 00 32 20 52 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 07 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 07 00 32 20 00 00 00 00 00 FF 0F 67 [07:10:02]RasterBufferAndPrint [07:10:02]line Счет N : (1)210117 [07:10:02]line ИНН: 02508201610067 [07:10:02]line Контрольно-Кассовый Чек [07:10:02]line ПРОДАЖА [07:10:02]line ТРК (МРК, ГНК) : 42 [07:10:02]line Товар: 2710124130 [07:10:02]line Аи-92-К-3 [07:10:02]line 10.000 * 0.00 [07:10:02]line = 0.00 [07:10:02]line НДС 12% НСП 1% [07:10:02]line > о реализуемом товаре [07:10:02]line ИТОГО: 0.00 [07:10:02]line НСП 1% : 0.00 [07:10:02]line НДС 12% : 0.00 [07:10:02]line Наличными: 0.00 [07:10:02]line Безнал.: 0.00 [07:10:02]line Место: АЗС № 86 "Партнер Нефть" [07:10:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:10:02]line СНО: Общий режим [07:10:02]line Чек 94 22.10.2024 07:10 [07:10:02]line Смена: 461 ФФД: 1.0 [07:10:02]line ЗНМ: 0300000155 [07:10:02]line РНМ: 0000000000100030 [07:10:02]line Версия ККМ: 001 [07:10:02]line Талоны: Топливные Талоны [07:10:02]line 3908652 [07:10:02]line ФМ: 0000000000965340 [07:10:02]line ФД: 188065 [07:10:02]line ФПД: 251813955589227 [07:10:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071003&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188065&fm=251813955589227&tin=02508201610067®Number=0000000000100030&sum=0 [07:10:02]written 0, free lines is 4095 [07:10:02]OFD Sender: Processing packet 188065 [packets to send 1062, broken 1061] [07:10:02]ProducePacketName [07:10:02]name=ofd_packets/00188065 [07:10:02]OFD Sender: To server: pG, [07:10:02]CommunicateWithHost lk.salyk.kg:30040 [07:10:02]ConnectInit lk.salyk.kg [07:10:02]Connected sock=10 [07:10:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 66 07 01 B6 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 00 00 00 F4 03 04 00 CB 4F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DE 02 00 35 04 06 00 E5 06 01 5F 54 6B EA 16 A8 7F 16 6E B3 6C [07:10:02]Write to MH i2c: 01 00 00 5C 20 7C [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 07 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: 01 07 00 5C 20 00 00 00 00 00 6D 0C FC [07:10:02]RasterBufferAndPrint [07:10:02]line [07:10:02]line [07:10:02]line [07:10:02]line [07:10:02]line [07:10:02]written 0, free lines is 3187 [07:10:02]MH_Cut [07:10:02]Write to MH i2c: D1 01 00 63 20 01 55 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: D1 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: D1 01 00 [07:10:02]MH_I2C_Read... [07:10:02]Read from MH i2c: D1 01 00 63 20 00 54 [07:10:02]Write to MH i2c: 01 00 00 64 20 84 [07:10:02]Write i2c OK [07:10:02]MH_I2C_Read... [07:10:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 12 47 00 D5 E7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DE 02 00 F4 03 04 00 B8 F9 16 67 B6 04 01 00 00 DD 6D A0 B4 A6 C4 BD D4 [07:10:03]CommunicateWithHost err = 0 [07:10:03]CheckOFDResponse [07:10:03]1017 (14) - 77093643461234 [07:10:03]1041 (16) - 0000000000965340 [07:10:03]1040 (4) - 188065 [07:10:03]1012 (4) - 22.10.2024 01:02 [07:10:03]1206 (1) - 0 [07:10:03]OFD Sender: Remove packet 188065 [07:10:03]ProducePacketName [07:10:03]name=ofd_packets/00188065 [07:10:03]NVStorageDeleteData [07:10:03]OFD Sender: No OFD packet to send [07:10:04]*** Cut start [07:10:04]*** Partial cut [07:10:04]*** CUTSNS_PIN = 1 [07:10:04]*** CUTSNS_PIN = 0 [07:10:04]*** Brake cut motor [07:10:04]Read from MH i2c: 01 [07:10:04]MH_I2C_Read... [07:10:04]*** Stop cut motor [07:10:04]*** Cut end [07:10:04]Read from MH i2c: 01 07 00 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: 01 07 00 64 20 00 00 00 00 00 FF 0F 99 [07:10:04]process_action close_receipt done [07:10:04]requested_data is exist [07:10:04]produce_requested_data [07:10:04]requested_item fm.sn is exist - process it [07:10:04]wFMCommunicate request_size=4 [07:10:04]MH_SAM_APDU [07:10:04]CAPDU: 80 11 00 00 [07:10:04]Write to MH i2c: E2 08 00 65 20 80 11 00 00 00 00 00 00 FF [07:10:04]Write i2c OK [07:10:04]MH_I2C_Read... [07:10:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:04]Read from MH i2c: E2 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 17 00 [07:10:04]MH_I2C_Read... [07:10:04]Read from MH i2c: E2 17 00 65 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [07:10:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:10:04]wFMCommunicate OK [07:10:04]requested_item fd.num is exist - process it [07:10:04]SAM_PROTO_GetFieldsCounters [07:10:04]wFMCommunicate request_size=4 [07:10:04]MH_SAM_APDU [07:10:04]CAPDU: 80 13 00 00 [07:10:04]Write to MH i2c: E2 08 00 66 20 80 13 00 00 00 00 00 00 02 [07:10:04]Write i2c OK [07:10:04]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 62 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 62 00 66 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 DE 02 00 0E 04 04 00 CD 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 72 [07:10:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 DE 02 00 0E 04 04 00 CD 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 [07:10:05]wFMCommunicate OK [07:10:05]SAM_PROTO_GetFieldsCounters done [07:10:05]requested_item shift.num is exist - process it [07:10:05]requested_item shift.opened is exist - process it [07:10:05]req_shift_opened [07:10:05]FM_GetShiftState [07:10:05]SAM_PROTO_GetShiftState [07:10:05]wFMCommunicate request_size=4 [07:10:05]MH_SAM_APDU [07:10:05]CAPDU: 80 13 01 00 [07:10:05]Write to MH i2c: E2 08 00 67 20 80 13 01 00 00 00 00 00 04 [07:10:05]Write i2c OK [07:10:05]MH_I2C_Read... [07:10:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:05]Read from MH i2c: E2 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 0E 00 [07:10:05]MH_I2C_Read... [07:10:05]Read from MH i2c: E2 0E 00 67 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [07:10:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:10:05]wFMCommunicate OK [07:10:05]SAM_PROTO_GetShiftState done [07:10:05]FM_GetShiftState done [07:10:05]req_shift_opened done [07:10:05]requested_item shift.open_date is exist - process it [07:10:05]req_shift_open_date [07:10:05]req_shift_open_date done [07:10:05]produce_requested_data done [07:10:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188065,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:10:05]process_action_free close_receipt [07:10:05]json_value_free [07:10:05]json_value_free done [07:10:05]process_json_proto returns [07:10:05]Send response to host [07:10:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188065,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:10:05]free response buf [07:10:05]execute_script done [07:10:05]execute_script returns [07:10:05]free content buf [07:10:05]Sock 8.Close socket [07:10:05]Sock 8.Thread stoped [07:10:08]OFD Sender: No OFD packet to send [07:10:13]OFD Sender: No OFD packet to send [07:10:18]OFD Sender: No OFD packet to send [07:10:23]OFD Sender: No OFD packet to send [07:10:28]OFD Sender: No OFD packet to send [07:10:33]OFD Sender: No OFD packet to send [07:10:38]OFD Sender: No OFD packet to send [07:10:43]OFD Sender: No OFD packet to send [07:10:48]OFD Sender: No OFD packet to send [07:10:53]OFD Sender: No OFD packet to send [07:10:57]accept exits with 9 [07:10:57]New connection [07:10:57]New thread 3067198820 created [07:10:57]Thread 3067055460 joined [07:10:57]Waiting for new connection... [07:10:57] Sock 9.Parse request [07:10:57]Sock 9.Check first char [07:10:57]Sock 9.First char is OK [07:10:57]request: POST /json_proto HTTP/1.0 [07:10:57]Method: POST [07:10:57]URL: /json_proto [07:10:57]Method is POST - this is cgi request [07:10:57]url: /json_proto [07:10:57]query_string will be loaded in cgi processing [07:10:57]execute_cgi json_proto POST (null) [07:10:57]execute_cgi path=json_proto method=POST [07:10:57]POST find Content-Length [07:10:57]Host: 172.17.42.131:8080 [07:10:57]Content-Length: 677 [07:10:57]Content-Type: application/json [07:10:57] [07:10:57]POST finish read [07:10:57]Found Content-Length = 677 [07:10:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210118", "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" : 3.510, "sum" : 260.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:57]execute_script... [07:10: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)210118", "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" : 3.510, "sum" : 260.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:57]POST & json_proto [07:10:57]process_json_proto [07:10:57]json parsed OK: [07:10:57]protocol is kg_v1.0 [07:10:57]action value=close_receipt [07:10:57]process_action close_receipt [07:10:57]cmd_close_receipt [07:10:57]MH_GetDate [07:10:57]Write to MH i2c: F0 00 00 68 20 77 [07:10:57]Write i2c OK [07:10:57]MH_I2C_Read... [07:10:57]Read from MH i2c: F0 [07:10:57]MH_I2C_Read... [07:10:57]Read from MH i2c: F0 09 00 [07:10:57]MH_I2C_Read... [07:10:57]Read from MH i2c: F0 09 00 68 20 00 04 50 17 67 A0 18 CA 66 3A [07:10:57]GetLastDocTimeStamp 1729581003 [07:10:57]current date 1729581060 [07:10:57]FM_GetShiftState [07:10:57]SAM_PROTO_GetShiftState [07:10:57]wFMCommunicate request_size=4 [07:10:57]MH_SAM_APDU [07:10:57]CAPDU: 80 13 01 00 [07:10:57]Write to MH i2c: E2 08 00 69 20 80 13 01 00 00 00 00 00 06 [07:10:57]Write i2c OK [07:10:57]MH_I2C_Read... [07:10:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:57]Read from MH i2c: E2 [07:10:57]MH_I2C_Read... [07:10:57]Read from MH i2c: E2 0E 00 [07:10:57]MH_I2C_Read... [07:10:57]Read from MH i2c: E2 0E 00 69 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FB [07:10:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:10:57]wFMCommunicate OK [07:10:57]SAM_PROTO_GetShiftState done [07:10:57]FM_GetShiftState done [07:10:57]opened in 1729556094 [07:10:57]opened+sec_in_day 1729642494 [07:10:57]quantity*price = 26044 [07:10:57]sum+1 = 26045 [07:10:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.66 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 95 22.10.2024 07:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188066 ФПД: 230894175647531 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188066&fm=230894175647531&tin=02508201610067®Number=0000000000100030&sum=26000 [07:10:59]StoreToDocumentArchive [07:10:59]shift 461 fd 188066 [07:10:59]save to /storage/0461/doc_00188066 [07:10:59]save last doc name /storage/0461/doc_00188066 to /storage/kkm_last_doc_name [07:10:59]save OK [07:10:59]Clear old archive folders... [07:10:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:10:59]tlvbuf is 01BB3D00 [07:10:59]SAM_PROTO_ClearQueue [07:10:59]wFMCommunicate request_size=4 [07:10:59]MH_SAM_APDU [07:10:59]CAPDU: 80 09 00 00 [07:10:59]Write to MH i2c: E2 08 00 76 20 80 09 00 00 00 00 00 00 08 [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:59]Read from MH i2c: E2 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 76 20 00 90 00 0A [07:10:59]RAPDU: 90 00 [07:10:59]wFMCommunicate OK [07:10:59]SAM_PROTO_ClearQueue done [07:10:59]KKMCreateOFDPacket [07:10:59]OFDProtocolAddRootSTLVToBuf [07:10:59]FM_MakeSignedData [07:10:59]FM_MakeSignedData [07:10:59]SAM_PROTO_SignData [07:10:59]wFMCommunicate request_size=4 [07:10:59]MH_SAM_APDU [07:10:59]CAPDU: 80 0D 01 02 [07:10:59]Write to MH i2c: E2 08 00 77 20 80 0D 01 02 00 00 00 00 10 [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:59]Read from MH i2c: E2 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 77 20 00 90 00 0B [07:10:59]RAPDU: 90 00 [07:10:59]wFMCommunicate OK [07:10:59]wFMCommunicate request_size=255 [07:10:59]MH_SAM_APDU [07:10: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 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 04 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DE 02 00 35 04 06 00 D1 [07:10:59]Write to MH i2c: E2 02 01 78 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 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 04 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DE 02 00 35 04 06 00 D1 00 00 F8 [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:59]Read from MH i2c: E2 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 78 20 00 90 00 0C [07:10:59]RAPDU: 90 00 [07:10:59]wFMCommunicate OK [07:10:59]wFMCommunicate request_size=10 [07:10:59]MH_SAM_APDU [07:10:59]CAPDU: 80 0D 02 02 05 FF 3D 51 F7 2B [07:10:59]Write to MH i2c: E2 0D 00 79 20 80 0D 02 02 05 00 FF 3D 51 F7 2B 00 00 CC [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:59]Read from MH i2c: E2 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 03 00 79 20 00 90 00 0D [07:10:59]RAPDU: 90 00 [07:10:59]wFMCommunicate OK [07:10:59]wFMCommunicate request_size=4 [07:10:59]MH_SAM_APDU [07:10:59]CAPDU: 80 0D 03 02 [07:10:59]Write to MH i2c: E2 08 00 7A 20 80 0D 03 02 00 00 00 00 15 [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:59]Read from MH i2c: E2 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 0B 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 0B 00 7A 20 00 11 0C 15 52 59 55 5F BD 90 00 64 [07:10:59]RAPDU: 11 0C 15 52 59 55 5F BD 90 00 [07:10:59]wFMCommunicate OK [07:10:59]SAM_PROTO_SignData done [07:10:59]FM_MakeSignedData done [07:10:59]CreateOFDProtocolMessage [07:10:59]wFMCommunicate request_size=4 [07:10:59]MH_SAM_APDU [07:10:59]CAPDU: 80 11 00 00 [07:10:59]Write to MH i2c: E2 08 00 7B 20 80 11 00 00 00 00 00 00 15 [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:59]Read from MH i2c: E2 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 17 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: E2 17 00 7B 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [07:10:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:10:59]wFMCommunicate OK [07:10:59]CreateOFDProtocolMessage done [07:10:59]OFDSenderStorePacket 188066 [07:10:59]StoreOFDPacket docnum=188066 [07:10:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 77 07 01 C7 09 5A 03 01 00 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 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 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 04 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DE 02 00 35 04 06 00 D1 FF 3D 51 F7 2B 11 0C 15 52 59 55 5F BD [07:10:59]CheckFolder [07:10:59]dirname=/storage/ofd_packets [07:10:59]CheckFolder done [07:10:59]ProducePacketName [07:10:59]name=ofd_packets/00188066 [07:10:59]NVStorageSaveData ofd_packets/00188066 [07:10:59]File name is /storage/ofd_packets/00188066 [07:10:59]Write 301 bytes [07:10:59]NVStorageSaveData done [07:10:59]OFDSenderStorePacket done [07:10:59]KKMCreateOFDPacket done [07:10:59]NVStorageSaveData kkm_last_timestamp [07:10:59]File name is /storage/kkm_last_timestamp [07:10:59]Write 4 bytes [07:10:59]NVStorageSaveData done [07:10:59]ExternCall_PrintAddStr [07:10:59]wPrintStart [07:10:59]Write to MH i2c: 01 00 00 7C 20 9C [07:10:59]Write i2c OK [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: 01 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: 01 07 00 [07:10:59]MH_I2C_Read... [07:10:59]Read from MH i2c: 01 07 00 7C 20 00 00 00 00 00 FF 0F B1 [07:10:59]RasterBufferAndPrint [07:10:59]line Счет N : (1)210118 [07:10:59]line ИНН: 02508201610067 [07:10:59]line Контрольно-Кассовый Чек [07:10:59]line ПРОДАЖА [07:10:59]line ТРК (МРК, ГНК) : 43 [07:10:59]line Товар: 2710124500 [07:10:59]line Аи-95-К-3 [07:10:59]line 3.510 * 74.20 [07:10:59]line = 260.44 [07:10:59]line НДС 12% НСП 1% [07:10:59]line > о реализуемом товаре [07:10:59]line ОКРУГЛЕНИЕ: -0.44 [07:10:59]line ИТОГО: 260.00 [07:10:59]line Внесено: 260.00 [07:10:59]line СДАЧА: 0.00 [07:10:59]line НСП 1% : 2.30 [07:10:59]line НДС 12% : 27.66 [07:10:59]line Наличными: 260.00 [07:10:59]line Безнал.: 0.00 [07:10:59]line Место: АЗС № 86 "Партнер Нефть" [07:10:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:10:59]line СНО: Общий режим [07:10:59]line Чек 95 22.10.2024 07:11 [07:10:59]line Смена: 461 ФФД: 1.0 [07:10:59]line ЗНМ: 0300000155 [07:10:59]line РНМ: 0000000000100030 [07:10:59]line Версия ККМ: 001 [07:10:59]line ФМ: 0000000000965340 [07:10:59]line ФД: 188066 [07:10:59]line ФПД: 230894175647531 [07:10:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188066&fm=230894175647531&tin=02508201610067®Number=0000000000100030&sum=26000 [07:10:59]written 0, free lines is 4095 [07:10:59]OFD Sender: Processing packet 188066 [packets to send 1062, broken 1061] [07:10:59]ProducePacketName [07:10:59]name=ofd_packets/00188066 [07:10:59]OFD Sender: To server: pG, [07:10:59]CommunicateWithHost lk.salyk.kg:30040 [07:10:59]ConnectInit lk.salyk.kg [07:10:59]Connected sock=8 [07:10:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 77 07 01 C7 09 5A 03 01 00 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 B6 0D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BC 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CE 0A 00 00 00 00 07 04 06 00 90 65 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 04 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DE 02 00 35 04 06 00 D1 FF 3D 51 F7 2B 11 0C 15 52 59 55 5F BD [07:11:00]Write to MH i2c: 01 00 00 A7 20 C7 [07:11:00]Write i2c OK [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: 01 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: 01 07 00 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: 01 07 00 A7 20 00 00 00 00 00 5C 0C 36 [07:11:00]RasterBufferAndPrint [07:11:00]line [07:11:00]line [07:11:00]line [07:11:00]line [07:11:00]line [07:11:00]written 0, free lines is 3167 [07:11:00]MH_Cut [07:11:00]Write to MH i2c: D1 01 00 AE 20 01 A0 [07:11:00]Write i2c OK [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: D1 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: D1 01 00 [07:11:00]MH_I2C_Read... [07:11:00]Read from MH i2c: D1 01 00 AE 20 00 9F [07:11:00]Write to MH i2c: 01 00 00 AF 20 CF [07:11:00]Write i2c OK [07:11:00]MH_I2C_Read... [07:11:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 B2 47 00 73 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DE 02 00 F4 03 04 00 F1 F9 16 67 B6 04 01 00 00 E7 99 EB 66 5F C9 EE 3C [07:11:00]CommunicateWithHost err = 0 [07:11:00]CheckOFDResponse [07:11:00]1017 (14) - 77093643461234 [07:11:00]1041 (16) - 0000000000965340 [07:11:00]1040 (4) - 188066 [07:11:00]1012 (4) - 22.10.2024 01:03 [07:11:00]1206 (1) - 0 [07:11:00]OFD Sender: Remove packet 188066 [07:11:00]ProducePacketName [07:11:00]name=ofd_packets/00188066 [07:11:00]NVStorageDeleteData [07:11:00]OFD Sender: No OFD packet to send [07:11:01]*** Cut start [07:11:01]*** Partial cut [07:11:01]*** CUTSNS_PIN = 1 [07:11:01]*** CUTSNS_PIN = 0 [07:11:01]*** Brake cut motor [07:11:01]Read from MH i2c: 01 [07:11:01]MH_I2C_Read... [07:11:01]*** Stop cut motor [07:11:01]*** Cut end [07:11:01]Read from MH i2c: 01 07 00 [07:11:01]MH_I2C_Read... [07:11:01]Read from MH i2c: 01 07 00 AF 20 00 00 00 00 00 FF 0F E4 [07:11:01]process_action close_receipt done [07:11:01]requested_data is exist [07:11:01]produce_requested_data [07:11:01]requested_item fm.sn is exist - process it [07:11:01]wFMCommunicate request_size=4 [07:11:01]MH_SAM_APDU [07:11:01]CAPDU: 80 11 00 00 [07:11:01]Write to MH i2c: E2 08 00 B0 20 80 11 00 00 00 00 00 00 4A [07:11:01]Write i2c OK [07:11:01]MH_I2C_Read... [07:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:11:02]Read from MH i2c: E2 [07:11:02]MH_I2C_Read... [07:11:02]Read from MH i2c: E2 17 00 [07:11:02]MH_I2C_Read... [07:11:02]Read from MH i2c: E2 17 00 B0 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [07:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:11:02]wFMCommunicate OK [07:11:02]requested_item fd.num is exist - process it [07:11:02]SAM_PROTO_GetFieldsCounters [07:11:02]wFMCommunicate request_size=4 [07:11:02]MH_SAM_APDU [07:11:02]CAPDU: 80 13 00 00 [07:11:02]Write to MH i2c: E2 08 00 B1 20 80 13 00 00 00 00 00 00 4D [07:11:02]Write i2c OK [07:11:02]MH_I2C_Read... [07:11:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:11:02]Read from MH i2c: E2 [07:11:02]MH_I2C_Read... [07:11:02]Read from MH i2c: E2 62 00 [07:11:02]MH_I2C_Read... [07:11:02]Read from MH i2c: E2 62 00 B1 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 DE 02 00 0E 04 04 00 CD 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 C1 [07:11:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 DE 02 00 0E 04 04 00 CD 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 [07:11:02]wFMCommunicate OK [07:11:02]SAM_PROTO_GetFieldsCounters done [07:11:02]requested_item shift.num is exist - process it [07:11:02]requested_item shift.opened is exist - process it [07:11:02]req_shift_opened [07:11:02]FM_GetShiftState [07:11:02]SAM_PROTO_GetShiftState [07:11:02]wFMCommunicate request_size=4 [07:11:02]MH_SAM_APDU [07:11:02]CAPDU: 80 13 01 00 [07:11:02]Write to MH i2c: E2 08 00 B2 20 80 13 01 00 00 00 00 00 4F [07:11:02]Write i2c OK [07:11:02]MH_I2C_Read... [07:11:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:11:02]Read from MH i2c: E2 [07:11:02]MH_I2C_Read... [07:11:02]Read from MH i2c: E2 0E 00 [07:11:02]MH_I2C_Read... [07:11:02]Read from MH i2c: E2 0E 00 B2 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [07:11:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:11:02]wFMCommunicate OK [07:11:02]SAM_PROTO_GetShiftState done [07:11:02]FM_GetShiftState done [07:11:02]req_shift_opened done [07:11:02]requested_item shift.open_date is exist - process it [07:11:02]req_shift_open_date [07:11:02]req_shift_open_date done [07:11:02]produce_requested_data done [07:11:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188066,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:11:02]process_action_free close_receipt [07:11:02]json_value_free [07:11:02]json_value_free done [07:11:02]process_json_proto returns [07:11:02]Send response to host [07:11:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188066,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:11:02]free response buf [07:11:02]execute_script done [07:11:02]execute_script returns [07:11:02]free content buf [07:11:02]Sock 9.Close socket [07:11:02]Sock 9.Thread stoped [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11:15]OFD Sender: No OFD packet to send [07:11:20]OFD Sender: No OFD packet to send [07:11:25]OFD Sender: No OFD packet to send [07:11:30]OFD Sender: No OFD packet to send [07:11:35]OFD Sender: No OFD packet to send [07:11:40]OFD Sender: No OFD packet to send [07:11:45]OFD Sender: No OFD packet to send [07:11:50]OFD Sender: No OFD packet to send [07:11:56]OFD Sender: No OFD packet to send [07:12:01]OFD Sender: No OFD packet to send [07:12:06]OFD Sender: No OFD packet to send [07:12:11]OFD Sender: No OFD packet to send [07:12:16]OFD Sender: No OFD packet to send [07:12:21]OFD Sender: No OFD packet to send [07:12:26]OFD Sender: No OFD packet to send [07:12:31]OFD Sender: No OFD packet to send [07:12:36]OFD Sender: No OFD packet to send [07:12:41]OFD Sender: No OFD packet to send [07:12:46]OFD Sender: No OFD packet to send [07:12:51]OFD Sender: No OFD packet to send [07:12:56]OFD Sender: No OFD packet to send [07:13:01]OFD Sender: No OFD packet to send [07:13:06]OFD Sender: No OFD packet to send [07:13:11]OFD Sender: No OFD packet to send [07:13:16]OFD Sender: No OFD packet to send [07:13:21]OFD Sender: No OFD packet to send [07:13:26]OFD Sender: No OFD packet to send [07:13:31]OFD Sender: No OFD packet to send [07:13:36]OFD Sender: No OFD packet to send [07:13:41]OFD Sender: No OFD packet to send [07:13:46]OFD Sender: No OFD packet to send [07:13:51]OFD Sender: No OFD packet to send [07:13:55]accept exits with 10 [07:13:55]New connection [07:13:55]New thread 3067055460 created [07:13:55]Thread 3067198820 joined [07:13:55]Waiting for new connection... [07:13:55] Sock 10.Parse request [07:13:55]Sock 10.Check first char [07:13:55]Sock 10.First char is OK [07:13:55]request: POST /json_proto HTTP/1.0 [07:13:55]Method: POST [07:13:55]URL: /json_proto [07:13:55]Method is POST - this is cgi request [07:13:55]url: /json_proto [07:13:55]query_string will be loaded in cgi processing [07:13:55]execute_cgi json_proto POST (null) [07:13:55]execute_cgi path=json_proto method=POST [07:13:55]POST find Content-Length [07:13:55]Host: 172.17.42.131:8080 [07:13:55]Content-Length: 677 [07:13:55]Content-Type: application/json [07:13:55] [07:13:55]POST finish read [07:13:55]Found Content-Length = 677 [07:13:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:55]execute_script... [07:13: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)210119", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:13:55]POST & json_proto [07:13:55]process_json_proto [07:13:55]json parsed OK: [07:13:55]protocol is kg_v1.0 [07:13:55]action value=close_receipt [07:13:55]process_action close_receipt [07:13:55]cmd_close_receipt [07:13:55]MH_GetDate [07:13:55]Write to MH i2c: F0 00 00 B3 20 C2 [07:13:55]Write i2c OK [07:13:55]MH_I2C_Read... [07:13:55]Read from MH i2c: F0 [07:13:55]MH_I2C_Read... [07:13:55]Read from MH i2c: F0 09 00 [07:13:55]MH_I2C_Read... [07:13:55]Read from MH i2c: F0 09 00 B3 20 00 B6 50 17 67 A0 18 CA 66 37 [07:13:55]GetLastDocTimeStamp 1729581060 [07:13:55]current date 1729581238 [07:13:55]FM_GetShiftState [07:13:55]SAM_PROTO_GetShiftState [07:13:55]wFMCommunicate request_size=4 [07:13:55]MH_SAM_APDU [07:13:55]CAPDU: 80 13 01 00 [07:13:55]Write to MH i2c: E2 08 00 B4 20 80 13 01 00 00 00 00 00 51 [07:13:55]Write i2c OK [07:13:55]MH_I2C_Read... [07:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:13:55]Read from MH i2c: E2 [07:13:55]MH_I2C_Read... [07:13:55]Read from MH i2c: E2 0E 00 [07:13:55]MH_I2C_Read... [07:13:55]Read from MH i2c: E2 0E 00 B4 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 46 [07:13:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:13:55]wFMCommunicate OK [07:13:55]SAM_PROTO_GetShiftState done [07:13:55]FM_GetShiftState done [07:13:55]opened in 1729556094 [07:13:55]opened+sec_in_day 1729642494 [07:13:55]quantity*price = 50041 [07:13:55]sum+1 = 50042 [07:13:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 96 22.10.2024 07:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188067 ФПД: 69745954911332 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188067&fm=69745954911332&tin=02508201610067®Number=0000000000100030&sum=50000 [07:13:56]StoreToDocumentArchive [07:13:56]shift 461 fd 188067 [07:13:56]save to /storage/0461/doc_00188067 [07:13:56]save last doc name /storage/0461/doc_00188067 to /storage/kkm_last_doc_name [07:13:56]save OK [07:13:56]Clear old archive folders... [07:13:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:13:56]tlvbuf is 01BD2460 [07:13:56]SAM_PROTO_ClearQueue [07:13:56]wFMCommunicate request_size=4 [07:13:56]MH_SAM_APDU [07:13:56]CAPDU: 80 09 00 00 [07:13:56]Write to MH i2c: E2 08 00 C1 20 80 09 00 00 00 00 00 00 53 [07:13:56]Write i2c OK [07:13:56]MH_I2C_Read... [07:13:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:13:56]Read from MH i2c: E2 [07:13:56]MH_I2C_Read... [07:13:56]Read from MH i2c: E2 03 00 [07:13:56]MH_I2C_Read... [07:13:56]Read from MH i2c: E2 03 00 C1 20 00 90 00 55 [07:13:56]RAPDU: 90 00 [07:13:56]wFMCommunicate OK [07:13:56]SAM_PROTO_ClearQueue done [07:13:56]KKMCreateOFDPacket [07:13:56]OFDProtocolAddRootSTLVToBuf [07:13:56]FM_MakeSignedData [07:13:56]FM_MakeSignedData [07:13:56]SAM_PROTO_SignData [07:13:56]wFMCommunicate request_size=4 [07:13:56]MH_SAM_APDU [07:13:56]CAPDU: 80 0D 01 02 [07:13:56]Write to MH i2c: E2 08 00 C2 20 80 0D 01 02 00 00 00 00 5B [07:13:56]Write i2c OK [07:13:56]MH_I2C_Read... [07:13:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:13:56]Read from MH i2c: E2 [07:13:56]MH_I2C_Read... [07:13:56]Read from MH i2c: E2 03 00 [07:13:56]MH_I2C_Read... [07:13:56]Read from MH i2c: E2 03 00 C2 20 00 90 00 56 [07:13:56]RAPDU: 90 00 [07:13:56]wFMCommunicate OK [07:13:56]wFMCommunicate request_size=255 [07:13:56]MH_SAM_APDU [07:13: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B6 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DE 02 00 35 04 06 00 3F [07:13:57]Write to MH i2c: E2 02 01 C3 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B6 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DE 02 00 35 04 06 00 3F 00 00 42 [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:57]Read from MH i2c: E2 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 03 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 03 00 C3 20 00 90 00 57 [07:13:57]RAPDU: 90 00 [07:13:57]wFMCommunicate OK [07:13:57]wFMCommunicate request_size=10 [07:13:57]MH_SAM_APDU [07:13:57]CAPDU: 80 0D 02 02 05 6E FE DD F4 64 [07:13:57]Write to MH i2c: E2 0D 00 C4 20 80 0D 02 02 05 00 6E FE DD F4 64 00 00 09 [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:13:57]Read from MH i2c: E2 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 03 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 03 00 C4 20 00 90 00 58 [07:13:57]RAPDU: 90 00 [07:13:57]wFMCommunicate OK [07:13:57]wFMCommunicate request_size=4 [07:13:57]MH_SAM_APDU [07:13:57]CAPDU: 80 0D 03 02 [07:13:57]Write to MH i2c: E2 08 00 C5 20 80 0D 03 02 00 00 00 00 60 [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:13:57]Read from MH i2c: E2 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 0B 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 0B 00 C5 20 00 48 A2 7A 4A A2 FB C4 BB 90 00 2B [07:13:57]RAPDU: 48 A2 7A 4A A2 FB C4 BB 90 00 [07:13:57]wFMCommunicate OK [07:13:57]SAM_PROTO_SignData done [07:13:57]FM_MakeSignedData done [07:13:57]CreateOFDProtocolMessage [07:13:57]wFMCommunicate request_size=4 [07:13:57]MH_SAM_APDU [07:13:57]CAPDU: 80 11 00 00 [07:13:57]Write to MH i2c: E2 08 00 C6 20 80 11 00 00 00 00 00 00 60 [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:57]Read from MH i2c: E2 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 17 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: E2 17 00 C6 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [07:13:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:13:57]wFMCommunicate OK [07:13:57]CreateOFDProtocolMessage done [07:13:57]OFDSenderStorePacket 188067 [07:13:57]StoreOFDPacket docnum=188067 [07:13:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD 7A 07 01 05 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B6 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DE 02 00 35 04 06 00 3F 6E FE DD F4 64 48 A2 7A 4A A2 FB C4 BB [07:13:57]CheckFolder [07:13:57]dirname=/storage/ofd_packets [07:13:57]CheckFolder done [07:13:57]ProducePacketName [07:13:57]name=ofd_packets/00188067 [07:13:57]NVStorageSaveData ofd_packets/00188067 [07:13:57]File name is /storage/ofd_packets/00188067 [07:13:57]Write 301 bytes [07:13:57]NVStorageSaveData done [07:13:57]OFDSenderStorePacket done [07:13:57]KKMCreateOFDPacket done [07:13:57]NVStorageSaveData kkm_last_timestamp [07:13:57]File name is /storage/kkm_last_timestamp [07:13:57]Write 4 bytes [07:13:57]NVStorageSaveData done [07:13:57]ExternCall_PrintAddStr [07:13:57]wPrintStart [07:13:57]Write to MH i2c: 01 00 00 C7 20 E7 [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: 01 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: 01 07 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: 01 07 00 C7 20 00 00 00 00 00 FF 0F FC [07:13:57]RasterBufferAndPrint [07:13:57]line Счет N : (1)210119 [07:13:57]line ИНН: 02508201610067 [07:13:57]line Контрольно-Кассовый Чек [07:13:57]line ПРОДАЖА [07:13:57]line ТРК (МРК, ГНК) : 42 [07:13:57]line Товар: 2710124130 [07:13:57]line Аи-92-К-3 [07:13:57]line 7.480 * 66.90 [07:13:57]line = 500.41 [07:13:57]line НДС 12% НСП 1% [07:13:57]line > о реализуемом товаре [07:13:57]line ОКРУГЛЕНИЕ: -0.41 [07:13:57]line ИТОГО: 500.00 [07:13:57]line Внесено: 500.00 [07:13:57]line СДАЧА: 0.00 [07:13:57]line НСП 1% : 4.43 [07:13:57]line НДС 12% : 53.14 [07:13:57]line Наличными: 500.00 [07:13:57]line Безнал.: 0.00 [07:13:57]line Место: АЗС № 86 "Партнер Нефть" [07:13:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:13:57]line СНО: Общий режим [07:13:57]line Чек 96 22.10.2024 07:13 [07:13:57]line Смена: 461 ФФД: 1.0 [07:13:57]line ЗНМ: 0300000155 [07:13:57]line РНМ: 0000000000100030 [07:13:57]line Версия ККМ: 001 [07:13:57]line ФМ: 0000000000965340 [07:13:57]line ФД: 188067 [07:13:57]line ФПД: 69745954911332 [07:13:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T071358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188067&fm=69745954911332&tin=02508201610067®Number=0000000000100030&sum=50000 [07:13:57]written 0, free lines is 4095 [07:13:57]OFD Sender: Processing packet 188067 [packets to send 1062, broken 1061] [07:13:57]ProducePacketName [07:13:57]name=ofd_packets/00188067 [07:13:57]OFD Sender: To server: pG, [07:13:57]CommunicateWithHost lk.salyk.kg:30040 [07:13:57]ConnectInit lk.salyk.kg [07:13:57]Connected sock=9 [07:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD 7A 07 01 05 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 00 00 00 F4 03 04 00 B6 50 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DE 02 00 35 04 06 00 3F 6E FE DD F4 64 48 A2 7A 4A A2 FB C4 BB [07:13:57]Write to MH i2c: 01 00 00 F2 20 12 [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: 01 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: 01 07 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: 01 07 00 F2 20 00 00 00 00 00 53 0C 78 [07:13:57]RasterBufferAndPrint [07:13:57]line [07:13:57]line [07:13:57]line [07:13:57]line [07:13:57]line [07:13:57]written 0, free lines is 3160 [07:13:57]MH_Cut [07:13:57]Write to MH i2c: D1 01 00 F9 20 01 EB [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: D1 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: D1 01 00 [07:13:57]MH_I2C_Read... [07:13:57]Read from MH i2c: D1 01 00 F9 20 00 EA [07:13:57]Write to MH i2c: 01 00 00 FA 20 1A [07:13:57]Write i2c OK [07:13:57]MH_I2C_Read... [07:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A D0 47 00 43 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 39 36 35 33 34 30 10 04 04 00 A3 DE 02 00 F4 03 04 00 A3 FA 16 67 B6 04 01 00 00 6B 12 3D 4F C4 05 E7 AE [07:13:58]CommunicateWithHost err = 0 [07:13:58]CheckOFDResponse [07:13:58]1017 (14) - 77093643461234 [07:13:58]1041 (16) - 0000000000965340 [07:13:58]1040 (4) - 188067 [07:13:58]1012 (4) - 22.10.2024 01:06 [07:13:58]1206 (1) - 0 [07:13:58]OFD Sender: Remove packet 188067 [07:13:58]ProducePacketName [07:13:58]name=ofd_packets/00188067 [07:13:58]NVStorageDeleteData [07:13:58]OFD Sender: No OFD packet to send [07:13:59]*** Cut start [07:13:59]*** Partial cut [07:13:59]*** CUTSNS_PIN = 1 [07:13:59]*** CUTSNS_PIN = 0 [07:13:59]*** Brake cut motor [07:13:59]Read from MH i2c: 01 [07:13:59]MH_I2C_Read... [07:13:59]*** Stop cut motor [07:13:59]*** Cut end [07:13:59]Read from MH i2c: 01 07 00 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: 01 07 00 FA 20 00 00 00 00 00 FF 0F 2F [07:13:59]process_action close_receipt done [07:13:59]requested_data is exist [07:13:59]produce_requested_data [07:13:59]requested_item fm.sn is exist - process it [07:13:59]wFMCommunicate request_size=4 [07:13:59]MH_SAM_APDU [07:13:59]CAPDU: 80 11 00 00 [07:13:59]Write to MH i2c: E2 08 00 FB 20 80 11 00 00 00 00 00 00 95 [07:13:59]Write i2c OK [07:13:59]MH_I2C_Read... [07:13:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:13:59]Read from MH i2c: E2 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: E2 17 00 [07:13:59]MH_I2C_Read... [07:13:59]Read from MH i2c: E2 17 00 FB 20 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [07:13:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:13:59]wFMCommunicate OK [07:13:59]requested_item fd.num is exist - process it [07:13:59]SAM_PROTO_GetFieldsCounters [07:13:59]wFMCommunicate request_size=4 [07:13:59]MH_SAM_APDU [07:13:59]CAPDU: 80 13 00 00 [07:13:59]Write to MH i2c: E2 08 00 FC 20 80 13 00 00 00 00 00 00 98 [07:13:59]Write i2c OK [07:13:59]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 62 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 62 00 FC 20 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 DE 02 00 0E 04 04 00 CD 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 [07:14:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 DE 02 00 0E 04 04 00 CD 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 [07:14:00]wFMCommunicate OK [07:14:00]SAM_PROTO_GetFieldsCounters done [07:14:00]requested_item shift.num is exist - process it [07:14:00]requested_item shift.opened is exist - process it [07:14:00]req_shift_opened [07:14:00]FM_GetShiftState [07:14:00]SAM_PROTO_GetShiftState [07:14:00]wFMCommunicate request_size=4 [07:14:00]MH_SAM_APDU [07:14:00]CAPDU: 80 13 01 00 [07:14:00]Write to MH i2c: E2 08 00 FD 20 80 13 01 00 00 00 00 00 9A [07:14:00]Write i2c OK [07:14:00]MH_I2C_Read... [07:14:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:14:00]Read from MH i2c: E2 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 0E 00 [07:14:00]MH_I2C_Read... [07:14:00]Read from MH i2c: E2 0E 00 FD 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8F [07:14:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:14:00]wFMCommunicate OK [07:14:00]SAM_PROTO_GetShiftState done [07:14:00]FM_GetShiftState done [07:14:00]req_shift_opened done [07:14:00]requested_item shift.open_date is exist - process it [07:14:00]req_shift_open_date [07:14:00]req_shift_open_date done [07:14:00]produce_requested_data done [07:14:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188067,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:14:00]process_action_free close_receipt [07:14:00]json_value_free [07:14:00]json_value_free done [07:14:00]process_json_proto returns [07:14:00]Send response to host [07:14:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188067,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:14:00]free response buf [07:14:00]execute_script done [07:14:00]execute_script returns [07:14:00]free content buf [07:14:00]Sock 10.Close socket [07:14:00]Sock 10.Thread stoped [07:14:03]OFD Sender: No OFD packet to send [07:14:08]OFD Sender: No OFD packet to send [07:14:13]OFD Sender: No OFD packet to send [07:14:18]OFD Sender: No OFD packet to send [07:14:23]OFD Sender: No OFD packet to send [07:14:28]OFD Sender: No OFD packet to send [07:14:33]OFD Sender: No OFD packet to send [07:14:38]OFD Sender: No OFD packet to send [07:14:43]OFD Sender: No OFD packet to send [07:14:48]OFD Sender: No OFD packet to send [07:14:53]OFD Sender: No OFD packet to send [07:14:58]OFD Sender: No OFD packet to send [07:15:03]OFD Sender: No OFD packet to send [07:15:08]OFD Sender: No OFD packet to send [07:15:13]OFD Sender: No OFD packet to send [07:15:18]OFD Sender: No OFD packet to send [07:15:23]OFD Sender: No OFD packet to send [07:15:28]OFD Sender: No OFD packet to send [07:15:33]OFD Sender: No OFD packet to send [07:15:39]OFD Sender: No OFD packet to send [07:15:44]OFD Sender: No OFD packet to send [07:15:49]OFD Sender: No OFD packet to send [07:15:54]OFD Sender: No OFD packet to send [07:15:59]OFD Sender: No OFD packet to send [07:16:04]OFD Sender: No OFD packet to send [07:16:09]OFD Sender: No OFD packet to send [07:16:14]OFD Sender: No OFD packet to send [07:16:19]OFD Sender: No OFD packet to send [07:16:24]OFD Sender: No OFD packet to send [07:16:29]OFD Sender: No OFD packet to send [07:16:34]OFD Sender: No OFD packet to send [07:16:39]OFD Sender: No OFD packet to send [07:16:44]OFD Sender: No OFD packet to send [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:25]OFD Sender: No OFD packet to send [07:19:30]OFD Sender: No OFD packet to send [07:19:35]OFD Sender: No OFD packet to send [07:19:40]OFD Sender: No OFD packet to send [07:19:45]OFD Sender: No OFD packet to send [07:19:50]OFD Sender: No OFD packet to send [07:19:55]OFD Sender: No OFD packet to send [07:20:00]OFD Sender: No OFD packet to send [07:20:05]OFD Sender: No OFD packet to send [07:20:10]OFD Sender: No OFD packet to send [07:20:15]OFD Sender: No OFD packet to send [07:20:18]accept exits with 8 [07:20:18]New connection [07:20:18]New thread 3067198820 created [07:20:18]Thread 3067055460 joined [07:20:18]Waiting for new connection... [07:20:18] Sock 8.Parse request [07:20:18]Sock 8.Check first char [07:20:18]Sock 8.First char is OK [07:20:18]request: POST /json_proto HTTP/1.0 [07:20:18]Method: POST [07:20:18]URL: /json_proto [07:20:18]Method is POST - this is cgi request [07:20:18]url: /json_proto [07:20:18]query_string will be loaded in cgi processing [07:20:18]execute_cgi json_proto POST (null) [07:20:18]execute_cgi path=json_proto method=POST [07:20:18]POST find Content-Length [07:20:18]Host: 172.17.42.131:8080 [07:20:18]Content-Length: 677 [07:20:18]Content-Type: application/json [07:20:18] [07:20:18]POST finish read [07:20:18]Found Content-Length = 677 [07:20:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:18]execute_script... [07:20: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)210120", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:20:18]POST & json_proto [07:20:18]process_json_proto [07:20:18]json parsed OK: [07:20:18]protocol is kg_v1.0 [07:20:18]action value=close_receipt [07:20:18]process_action close_receipt [07:20:18]cmd_close_receipt [07:20:18]MH_GetDate [07:20:18]Write to MH i2c: F0 00 00 FE 20 0D [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 09 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: F0 09 00 FE 20 00 34 52 17 67 A0 18 CA 66 02 [07:20:18]GetLastDocTimeStamp 1729581238 [07:20:18]current date 1729581620 [07:20:18]FM_GetShiftState [07:20:18]SAM_PROTO_GetShiftState [07:20:18]wFMCommunicate request_size=4 [07:20:18]MH_SAM_APDU [07:20:18]CAPDU: 80 13 01 00 [07:20:18]Write to MH i2c: E2 08 00 FF 20 80 13 01 00 00 00 00 00 9C [07:20:18]Write i2c OK [07:20:18]MH_I2C_Read... [07:20:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:18]Read from MH i2c: E2 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 [07:20:18]MH_I2C_Read... [07:20:18]Read from MH i2c: E2 0E 00 FF 20 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [07:20:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:20:18]wFMCommunicate OK [07:20:18]SAM_PROTO_GetShiftState done [07:20:18]FM_GetShiftState done [07:20:18]opened in 1729556094 [07:20:18]opened+sec_in_day 1729642494 [07:20:18]quantity*price = 60009 [07:20:18]sum+1 = 60010 [07:20:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 97 22.10.2024 07:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188068 ФПД: 200597277697655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188068&fm=200597277697655&tin=02508201610067®Number=0000000000100030&sum=60000 [07:20:19]StoreToDocumentArchive [07:20:19]shift 461 fd 188068 [07:20:19]save to /storage/0461/doc_00188068 [07:20:19]save last doc name /storage/0461/doc_00188068 to /storage/kkm_last_doc_name [07:20:19]save OK [07:20:19]Clear old archive folders... [07:20:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:20:19]tlvbuf is B6F91680 [07:20:19]SAM_PROTO_ClearQueue [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 09 00 00 [07:20:19]Write to MH i2c: E2 08 00 0C 21 80 09 00 00 00 00 00 00 9F [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 0C 21 00 90 00 A1 [07:20:19]RAPDU: 90 00 [07:20:19]wFMCommunicate OK [07:20:19]SAM_PROTO_ClearQueue done [07:20:19]KKMCreateOFDPacket [07:20:19]OFDProtocolAddRootSTLVToBuf [07:20:19]FM_MakeSignedData [07:20:19]FM_MakeSignedData [07:20:19]SAM_PROTO_SignData [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 0D 01 02 [07:20:19]Write to MH i2c: E2 08 00 0D 21 80 0D 01 02 00 00 00 00 A7 [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 0D 21 00 90 00 A2 [07:20:19]RAPDU: 90 00 [07:20:19]wFMCommunicate OK [07:20:19]wFMCommunicate request_size=255 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 34 52 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DE 02 00 35 04 06 00 B6 [07:20:19]Write to MH i2c: E2 02 01 0E 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 34 52 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DE 02 00 35 04 06 00 B6 00 00 64 [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 0E 21 00 90 00 A3 [07:20:19]RAPDU: 90 00 [07:20:19]wFMCommunicate OK [07:20:19]wFMCommunicate request_size=10 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 0D 02 02 05 71 31 7A E6 77 [07:20:19]Write to MH i2c: E2 0D 00 0F 21 80 0D 02 02 05 00 71 31 7A E6 77 00 00 2D [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 03 00 0F 21 00 90 00 A4 [07:20:19]RAPDU: 90 00 [07:20:19]wFMCommunicate OK [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 0D 03 02 [07:20:19]Write to MH i2c: E2 08 00 10 21 80 0D 03 02 00 00 00 00 AC [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 0B 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 0B 00 10 21 00 57 54 14 E5 42 B0 8D 28 90 00 F8 [07:20:19]RAPDU: 57 54 14 E5 42 B0 8D 28 90 00 [07:20:19]wFMCommunicate OK [07:20:19]SAM_PROTO_SignData done [07:20:19]FM_MakeSignedData done [07:20:19]CreateOFDProtocolMessage [07:20:19]wFMCommunicate request_size=4 [07:20:19]MH_SAM_APDU [07:20:19]CAPDU: 80 11 00 00 [07:20:19]Write to MH i2c: E2 08 00 11 21 80 11 00 00 00 00 00 00 AC [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:19]Read from MH i2c: E2 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 17 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: E2 17 00 11 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [07:20:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:20:19]wFMCommunicate OK [07:20:19]CreateOFDProtocolMessage done [07:20:19]OFDSenderStorePacket 188068 [07:20:19]StoreOFDPacket docnum=188068 [07:20:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D A9 07 01 D6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 34 52 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DE 02 00 35 04 06 00 B6 71 31 7A E6 77 57 54 14 E5 42 B0 8D 28 [07:20:19]CheckFolder [07:20:19]dirname=/storage/ofd_packets [07:20:19]CheckFolder done [07:20:19]ProducePacketName [07:20:19]name=ofd_packets/00188068 [07:20:19]NVStorageSaveData ofd_packets/00188068 [07:20:19]File name is /storage/ofd_packets/00188068 [07:20:19]Write 301 bytes [07:20:19]NVStorageSaveData done [07:20:19]OFDSenderStorePacket done [07:20:19]KKMCreateOFDPacket done [07:20:19]NVStorageSaveData kkm_last_timestamp [07:20:19]File name is /storage/kkm_last_timestamp [07:20:19]Write 4 bytes [07:20:19]NVStorageSaveData done [07:20:19]ExternCall_PrintAddStr [07:20:19]wPrintStart [07:20:19]Write to MH i2c: 01 00 00 12 21 33 [07:20:19]Write i2c OK [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: 01 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: 01 07 00 [07:20:19]MH_I2C_Read... [07:20:19]Read from MH i2c: 01 07 00 12 21 00 00 00 00 00 FF 0F 48 [07:20:19]RasterBufferAndPrint [07:20:19]line Счет N : (1)210120 [07:20:19]line ИНН: 02508201610067 [07:20:19]line Контрольно-Кассовый Чек [07:20:19]line ПРОДАЖА [07:20:19]line ТРК (МРК, ГНК) : 32 [07:20:19]line Товар: 2710124130 [07:20:19]line Аи-92-К-3 [07:20:19]line 8.970 * 66.90 [07:20:19]line = 600.09 [07:20:19]line НДС 12% НСП 1% [07:20:19]line > о реализуемом товаре [07:20:19]line ОКРУГЛЕНИЕ: -0.09 [07:20:19]line ИТОГО: 600.00 [07:20:19]line Внесено: 600.00 [07:20:19]line СДАЧА: 0.00 [07:20:19]line НСП 1% : 5.31 [07:20:19]line НДС 12% : 63.73 [07:20:19]line Наличными: 600.00 [07:20:19]line Безнал.: 0.00 [07:20:19]line Место: АЗС № 86 "Партнер Нефть" [07:20:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:20:19]line СНО: Общий режим [07:20:19]line Чек 97 22.10.2024 07:20 [07:20:19]line Смена: 461 ФФД: 1.0 [07:20:19]line ЗНМ: 0300000155 [07:20:19]line РНМ: 0000000000100030 [07:20:19]line Версия ККМ: 001 [07:20:19]line ФМ: 0000000000965340 [07:20:19]line ФД: 188068 [07:20:19]line ФПД: 200597277697655 [07:20:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188068&fm=200597277697655&tin=02508201610067®Number=0000000000100030&sum=60000 [07:20:19]written 0, free lines is 4095 [07:20:19]OFD Sender: Processing packet 188068 [packets to send 1062, broken 1061] [07:20:19]ProducePacketName [07:20:19]name=ofd_packets/00188068 [07:20:19]OFD Sender: To server: pG, [07:20:19]CommunicateWithHost lk.salyk.kg:30040 [07:20:19]ConnectInit lk.salyk.kg [07:20:20]Connected sock=10 [07:20:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D A9 07 01 D6 AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 00 00 00 F4 03 04 00 34 52 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DE 02 00 35 04 06 00 B6 71 31 7A E6 77 57 54 14 E5 42 B0 8D 28 [07:20:20]Write to MH i2c: 01 00 00 3D 21 5E [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 07 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: 01 07 00 3D 21 00 00 00 00 00 57 0C C8 [07:20:20]RasterBufferAndPrint [07:20:20]line [07:20:20]line [07:20:20]line [07:20:20]line [07:20:20]line [07:20:20]written 0, free lines is 3163 [07:20:20]MH_Cut [07:20:20]Write to MH i2c: D1 01 00 44 21 01 37 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: D1 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: D1 01 00 [07:20:20]MH_I2C_Read... [07:20:20]Read from MH i2c: D1 01 00 44 21 00 36 [07:20:20]Write to MH i2c: 01 00 00 45 21 66 [07:20:20]Write i2c OK [07:20:20]MH_I2C_Read... [07:20:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 27 6D 47 00 79 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DE 02 00 F4 03 04 00 22 FC 16 67 B6 04 01 00 00 50 7B FB 61 1D EF 40 8F [07:20:20]CommunicateWithHost err = 0 [07:20:20]CheckOFDResponse [07:20:20]1017 (14) - 77093643461234 [07:20:20]1041 (16) - 0000000000965340 [07:20:20]1040 (4) - 188068 [07:20:20]1012 (4) - 22.10.2024 01:13 [07:20:20]1206 (1) - 0 [07:20:20]OFD Sender: Remove packet 188068 [07:20:20]ProducePacketName [07:20:20]name=ofd_packets/00188068 [07:20:20]NVStorageDeleteData [07:20:20]OFD Sender: No OFD packet to send [07:20:21]*** Cut start [07:20:21]*** Partial cut [07:20:21]*** CUTSNS_PIN = 1 [07:20:21]*** CUTSNS_PIN = 0 [07:20:21]*** Brake cut motor [07:20:22]Read from MH i2c: 01 [07:20:22]MH_I2C_Read... [07:20:22]*** Stop cut motor [07:20:22]*** Cut end [07:20:22]Read from MH i2c: 01 07 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: 01 07 00 45 21 00 00 00 00 00 FF 0F 7B [07:20:22]process_action close_receipt done [07:20:22]requested_data is exist [07:20:22]produce_requested_data [07:20:22]requested_item fm.sn is exist - process it [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 11 00 00 [07:20:22]Write to MH i2c: E2 08 00 46 21 80 11 00 00 00 00 00 00 E1 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 17 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 17 00 46 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [07:20:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:20:22]wFMCommunicate OK [07:20:22]requested_item fd.num is exist - process it [07:20:22]SAM_PROTO_GetFieldsCounters [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 13 00 00 [07:20:22]Write to MH i2c: E2 08 00 47 21 80 13 00 00 00 00 00 00 E4 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 62 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 62 00 47 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 DE 02 00 0E 04 04 00 CD 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 60 [07:20:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 DE 02 00 0E 04 04 00 CD 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 [07:20:22]wFMCommunicate OK [07:20:22]SAM_PROTO_GetFieldsCounters done [07:20:22]requested_item shift.num is exist - process it [07:20:22]requested_item shift.opened is exist - process it [07:20:22]req_shift_opened [07:20:22]FM_GetShiftState [07:20:22]SAM_PROTO_GetShiftState [07:20:22]wFMCommunicate request_size=4 [07:20:22]MH_SAM_APDU [07:20:22]CAPDU: 80 13 01 00 [07:20:22]Write to MH i2c: E2 08 00 48 21 80 13 01 00 00 00 00 00 E6 [07:20:22]Write i2c OK [07:20:22]MH_I2C_Read... [07:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:20:22]Read from MH i2c: E2 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 0E 00 [07:20:22]MH_I2C_Read... [07:20:22]Read from MH i2c: E2 0E 00 48 21 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [07:20:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:20:22]wFMCommunicate OK [07:20:22]SAM_PROTO_GetShiftState done [07:20:22]FM_GetShiftState done [07:20:22]req_shift_opened done [07:20:22]requested_item shift.open_date is exist - process it [07:20:22]req_shift_open_date [07:20:22]req_shift_open_date done [07:20:22]produce_requested_data done [07:20:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188068,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:20:22]process_action_free close_receipt [07:20:22]json_value_free [07:20:22]json_value_free done [07:20:22]process_json_proto returns [07:20:22]Send response to host [07:20:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188068,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:20:22]free response buf [07:20:22]execute_script done [07:20:22]execute_script returns [07:20:22]free content buf [07:20:22]Sock 8.Close socket [07:20:22]Sock 8.Thread stoped [07:20:26]OFD Sender: No OFD packet to send [07:20:31]OFD Sender: No OFD packet to send [07:20:36]OFD Sender: No OFD packet to send [07:20:41]OFD Sender: No OFD packet to send [07:20:46]OFD Sender: No OFD packet to send [07:20:51]OFD Sender: No OFD packet to send [07:21:01]OFD Sender: No OFD packet to send [07:21:06]OFD Sender: No OFD packet to send [07:21:11]OFD Sender: No OFD packet to send [07:21:16]OFD Sender: No OFD packet to send [07:21:21]OFD Sender: No OFD packet to send [07:21:26]OFD Sender: No OFD packet to send [07:21:31]OFD Sender: No OFD packet to send [07:21:36]OFD Sender: No OFD packet to send [07:21:41]OFD Sender: No OFD packet to send [07:21:46]OFD Sender: No OFD packet to send [07:21:51]OFD Sender: No OFD packet to send [07:21:56]OFD Sender: No OFD packet to send [07:22:01]OFD Sender: No OFD packet to send [07:22:06]OFD Sender: No OFD packet to send [07:22:11]OFD Sender: No OFD packet to send [07:22:16]OFD Sender: No OFD packet to send [07:22:21]OFD Sender: No OFD packet to send [07:22:26]OFD Sender: No OFD packet to send [07:22:31]OFD Sender: No OFD packet to send [07:22:36]OFD Sender: No OFD packet to send [07:22:41]OFD Sender: No OFD packet to send [07:22:46]OFD Sender: No OFD packet to send [07:22:51]OFD Sender: No OFD packet to send [07:22:56]OFD Sender: No OFD packet to send [07:23:01]OFD Sender: No OFD packet to send [07:23:06]OFD Sender: No OFD packet to send [07:23:11]OFD Sender: No OFD packet to send [07:23:13]ConnectInit Can't connect to host [07:23:16]OFD Sender: No OFD packet to send [07:23:21]OFD Sender: No OFD packet to send [07:23:26]OFD Sender: No OFD packet to send [07:23:31]OFD Sender: No OFD packet to send [07:23:36]OFD Sender: No OFD packet to send [07:23:41]OFD Sender: No OFD packet to send [07:23:46]OFD Sender: No OFD packet to send [07:23:51]OFD Sender: No OFD packet to send [07:23:56]OFD Sender: No OFD packet to send [07:24:01]OFD Sender: No OFD packet to send [07:24:06]OFD Sender: No OFD packet to send [07:24:12]OFD Sender: No OFD packet to send [07:24:17]OFD Sender: No OFD packet to send [07:24:22]OFD Sender: No OFD packet to send [07:24:27]OFD Sender: No OFD packet to send [07:24:32]OFD Sender: No OFD packet to send [07:24:37]OFD Sender: No OFD packet to send [07:24:42]OFD Sender: No OFD packet to send [07:24:47]OFD Sender: No OFD packet to send [07:24:52]OFD Sender: No OFD packet to send [07:24:57]OFD Sender: No OFD packet to send [07:25:02]OFD Sender: No OFD packet to send [07:25:07]OFD Sender: No OFD packet to send [07:25:12]OFD Sender: No OFD packet to send [07:25:17]OFD Sender: No OFD packet to send [07:25:22]OFD Sender: No OFD packet to send [07:25:27]OFD Sender: No OFD packet to send [07:25:32]OFD Sender: No OFD packet to send [07:25:37]OFD Sender: No OFD packet to send [07:25:42]OFD Sender: No OFD packet to send [07:25:47]OFD Sender: No OFD packet to send [07:25:52]OFD Sender: No OFD packet to send [07:25:57]OFD Sender: No OFD packet to send [07:26:02]OFD Sender: No OFD packet to send [07:26:07]OFD Sender: No OFD packet to send [07:26:12]OFD Sender: No OFD packet to send [07:26:17]OFD Sender: No OFD packet to send [07:26:22]OFD Sender: No OFD packet to send [07:26:27]OFD Sender: No OFD packet to send [07:26:32]OFD Sender: No OFD packet to send [07:26:37]OFD Sender: No OFD packet to send [07:26:42]OFD Sender: No OFD packet to send [07:26:47]OFD Sender: No OFD packet to send [07:26:51]accept exits with 9 [07:26:51]New connection [07:26:51]New thread 3067055460 created [07:26:51]Thread 3067198820 joined [07:26:51]Waiting for new connection... [07:26:51] Sock 9.Parse request [07:26:51]Sock 9.Check first char [07:26:51]Sock 9.First char is OK [07:26:51]request: POST /json_proto HTTP/1.0 [07:26:51]Method: POST [07:26:51]URL: /json_proto [07:26:51]Method is POST - this is cgi request [07:26:51]url: /json_proto [07:26:51]query_string will be loaded in cgi processing [07:26:51]execute_cgi json_proto POST (null) [07:26:51]execute_cgi path=json_proto method=POST [07:26:51]POST find Content-Length [07:26:51]Host: 172.17.42.131:8080 [07:26:51]Content-Length: 825 [07:26:51]Content-Type: application/json [07:26:51] [07:26:51]POST finish read [07:26:51]Found Content-Length = 825 [07:26:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:51]execute_script... [07:26: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)210121", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:26:51]POST & json_proto [07:26:51]process_json_proto [07:26:51]json parsed OK: [07:26:51]protocol is kg_v1.0 [07:26:51]action value=close_receipt [07:26:51]process_action close_receipt [07:26:51]cmd_close_receipt [07:26:51]MH_GetDate [07:26:51]Write to MH i2c: F0 00 00 49 21 59 [07:26:51]Write i2c OK [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: F0 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: F0 09 00 [07:26:51]MH_I2C_Read... [07:26:51]Read from MH i2c: F0 09 00 49 21 00 BE 53 17 67 A0 18 CA 66 D9 [07:26:51]GetLastDocTimeStamp 1729581620 [07:26:51]current date 1729582014 [07:26:51]FM_GetShiftState [07:26:51]SAM_PROTO_GetShiftState [07:26:51]wFMCommunicate request_size=4 [07:26:51]MH_SAM_APDU [07:26:51]CAPDU: 80 13 01 00 [07:26:51]Write to MH i2c: E2 08 00 4A 21 80 13 01 00 00 00 00 00 E8 [07:26:51]Write i2c OK [07:26:51]MH_I2C_Read... [07:26:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:52]Read from MH i2c: E2 [07:26:52]MH_I2C_Read... [07:26:52]Read from MH i2c: E2 0E 00 [07:26:52]MH_I2C_Read... [07:26:52]Read from MH i2c: E2 0E 00 4A 21 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [07:26:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:26:52]wFMCommunicate OK [07:26:52]SAM_PROTO_GetShiftState done [07:26:52]FM_GetShiftState done [07:26:52]opened in 1729556094 [07:26:52]opened+sec_in_day 1729642494 [07:26:52]quantity*price = 100051 [07:26:52]sum+1 = 100052 [07:26:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 98 22.10.2024 07:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188069 ФПД: 223405027950553 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188069&fm=223405027950553&tin=02508201610067®Number=0000000000100030&sum=100051 [07:26:53]StoreToDocumentArchive [07:26:53]shift 461 fd 188069 [07:26:53]save to /storage/0461/doc_00188069 [07:26:53]save last doc name /storage/0461/doc_00188069 to /storage/kkm_last_doc_name [07:26:53]save OK [07:26:53]Clear old archive folders... [07:26:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:26:53]tlvbuf is 01BE0AC0 [07:26:53]SAM_PROTO_ClearQueue [07:26:53]wFMCommunicate request_size=4 [07:26:53]MH_SAM_APDU [07:26:53]CAPDU: 80 09 00 00 [07:26:53]Write to MH i2c: E2 08 00 57 21 80 09 00 00 00 00 00 00 EA [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:26:53]Read from MH i2c: E2 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 57 21 00 90 00 EC [07:26:53]RAPDU: 90 00 [07:26:53]wFMCommunicate OK [07:26:53]SAM_PROTO_ClearQueue done [07:26:53]KKMCreateOFDPacket [07:26:53]OFDProtocolAddRootSTLVToBuf [07:26:53]FM_MakeSignedData [07:26:53]FM_MakeSignedData [07:26:53]SAM_PROTO_SignData [07:26:53]wFMCommunicate request_size=4 [07:26:53]MH_SAM_APDU [07:26:53]CAPDU: 80 0D 01 02 [07:26:53]Write to MH i2c: E2 08 00 58 21 80 0D 01 02 00 00 00 00 F2 [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:26:53]Read from MH i2c: E2 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 58 21 00 90 00 ED [07:26:53]RAPDU: 90 00 [07:26:53]wFMCommunicate OK [07:26:53]wFMCommunicate request_size=255 [07:26:53]MH_SAM_APDU [07:26:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BE 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DE 02 [07:26:53]Write to MH i2c: E2 02 01 59 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BE 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DE 02 00 00 F9 [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:53]Read from MH i2c: E2 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 59 21 00 90 00 EE [07:26:53]RAPDU: 90 00 [07:26:53]wFMCommunicate OK [07:26:53]wFMCommunicate request_size=16 [07:26:53]MH_SAM_APDU [07:26:53]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CB 2F 89 54 FF D9 [07:26:53]Write to MH i2c: E2 13 00 5A 21 80 0D 02 02 0B 00 00 35 04 06 00 CB 2F 89 54 FF D9 00 00 F9 [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:26:53]Read from MH i2c: E2 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 03 00 5A 21 00 90 00 EF [07:26:53]RAPDU: 90 00 [07:26:53]wFMCommunicate OK [07:26:53]wFMCommunicate request_size=4 [07:26:53]MH_SAM_APDU [07:26:53]CAPDU: 80 0D 03 02 [07:26:53]Write to MH i2c: E2 08 00 5B 21 80 0D 03 02 00 00 00 00 F7 [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:26:53]Read from MH i2c: E2 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 0B 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 0B 00 5B 21 00 F7 99 93 26 34 E3 FC E6 90 00 3A [07:26:53]RAPDU: F7 99 93 26 34 E3 FC E6 90 00 [07:26:53]wFMCommunicate OK [07:26:53]SAM_PROTO_SignData done [07:26:53]FM_MakeSignedData done [07:26:53]CreateOFDProtocolMessage [07:26:53]wFMCommunicate request_size=4 [07:26:53]MH_SAM_APDU [07:26:53]CAPDU: 80 11 00 00 [07:26:53]Write to MH i2c: E2 08 00 5C 21 80 11 00 00 00 00 00 00 F7 [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:53]Read from MH i2c: E2 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 17 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: E2 17 00 5C 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [07:26:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:26:53]wFMCommunicate OK [07:26:53]CreateOFDProtocolMessage done [07:26:53]OFDSenderStorePacket 188069 [07:26:53]StoreOFDPacket docnum=188069 [07:26:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 98 0D 01 00 86 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BE 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DE 02 00 35 04 06 00 CB 2F 89 54 FF D9 F7 99 93 26 34 E3 FC E6 [07:26:53]CheckFolder [07:26:53]dirname=/storage/ofd_packets [07:26:53]CheckFolder done [07:26:53]ProducePacketName [07:26:53]name=ofd_packets/00188069 [07:26:53]NVStorageSaveData ofd_packets/00188069 [07:26:53]File name is /storage/ofd_packets/00188069 [07:26:53]Write 307 bytes [07:26:53]NVStorageSaveData done [07:26:53]OFDSenderStorePacket done [07:26:53]KKMCreateOFDPacket done [07:26:53]NVStorageSaveData kkm_last_timestamp [07:26:53]File name is /storage/kkm_last_timestamp [07:26:53]Write 4 bytes [07:26:53]NVStorageSaveData done [07:26:53]ExternCall_PrintAddStr [07:26:53]wPrintStart [07:26:53]Write to MH i2c: 01 00 00 5D 21 7E [07:26:53]Write i2c OK [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: 01 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: 01 07 00 [07:26:53]MH_I2C_Read... [07:26:53]Read from MH i2c: 01 07 00 5D 21 00 00 00 00 00 FF 0F 93 [07:26:53]RasterBufferAndPrint [07:26:53]line Счет N : (1)210121 [07:26:53]line ИНН: 02508201610067 [07:26:53]line Контрольно-Кассовый Чек [07:26:53]line ПРОДАЖА [07:26:53]line ТРК (МРК, ГНК) : 41 [07:26:53]line Товар: 2710194210 [07:26:53]line D-ENERGY ДТ-К-5 [07:26:53]line 12.960 * 77.20 [07:26:53]line = 1000.51 [07:26:53]line НДС 12% НСП 1% [07:26:53]line > о реализуемом товаре [07:26:53]line ИТОГО: 1000.51 [07:26:53]line НСП 1% : 8.85 [07:26:53]line НДС 12% : 106.25 [07:26:53]line Наличными: 0.00 [07:26:53]line Безнал.: 1000.51 [07:26:53]line Место: АЗС № 86 "Партнер Нефть" [07:26:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:26:53]line СНО: Общий режим [07:26:53]line Чек 98 22.10.2024 07:26 [07:26:53]line Смена: 461 ФФД: 1.0 [07:26:53]line ЗНМ: 0300000155 [07:26:53]line РНМ: 0000000000100030 [07:26:53]line Версия ККМ: 001 [07:26:53]line Платежная система: Бакай Банк [07:26:53]line ФМ: 0000000000965340 [07:26:53]line ФД: 188069 [07:26:53]line ФПД: 223405027950553 [07:26:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188069&fm=223405027950553&tin=02508201610067®Number=0000000000100030&sum=100051 [07:26:53]written 0, free lines is 4095 [07:26:53]OFD Sender: Processing packet 188069 [packets to send 1062, broken 1061] [07:26:53]ProducePacketName [07:26:53]name=ofd_packets/00188069 [07:26:53]OFD Sender: To server: pG, [07:26:53]CommunicateWithHost lk.salyk.kg:30040 [07:26:53]ConnectInit lk.salyk.kg [07:26:54]Connected sock=10 [07:26:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 79 98 0D 01 00 86 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 BE 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DE 02 00 35 04 06 00 CB 2F 89 54 FF D9 F7 99 93 26 34 E3 FC E6 [07:26:54]Write to MH i2c: 01 00 00 87 21 A8 [07:26:54]Write i2c OK [07:26:54]MH_I2C_Read... [07:26:54]Read from MH i2c: 01 [07:26:54]MH_I2C_Read... [07:26:54]Read from MH i2c: 01 07 00 [07:26:54]MH_I2C_Read... [07:26:54]Read from MH i2c: 01 07 00 87 21 00 00 00 00 00 75 0C 30 [07:26:54]RasterBufferAndPrint [07:26:54]line [07:26:54]line [07:26:54]line [07:26:54]line [07:26:54]line [07:26:54]written 0, free lines is 3192 [07:26:54]MH_Cut [07:26:54]Write to MH i2c: D1 01 00 8E 21 01 81 [07:26:54]Write i2c OK [07:26:54]MH_I2C_Read... [07:26:54]Read from MH i2c: D1 [07:26:54]MH_I2C_Read... [07:26:54]Read from MH i2c: D1 01 00 [07:26:54]MH_I2C_Read... [07:26:54]Read from MH i2c: D1 01 00 8E 21 00 80 [07:26:54]Write to MH i2c: 01 00 00 8F 21 B0 [07:26:54]Write i2c OK [07:26:54]MH_I2C_Read... [07:26:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 10 18 47 00 AA 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DE 02 00 F4 03 04 00 AC FD 16 67 B6 04 01 00 00 6E 63 32 B4 FE D2 6E CB [07:26:54]CommunicateWithHost err = 0 [07:26:54]CheckOFDResponse [07:26:54]1017 (14) - 77093643461234 [07:26:54]1041 (16) - 0000000000965340 [07:26:54]1040 (4) - 188069 [07:26:54]1012 (4) - 22.10.2024 01:19 [07:26:54]1206 (1) - 0 [07:26:54]OFD Sender: Remove packet 188069 [07:26:54]ProducePacketName [07:26:54]name=ofd_packets/00188069 [07:26:54]NVStorageDeleteData [07:26:54]OFD Sender: No OFD packet to send [07:26:55]*** Cut start [07:26:55]*** Partial cut [07:26:55]*** CUTSNS_PIN = 1 [07:26:55]*** CUTSNS_PIN = 0 [07:26:55]*** Brake cut motor [07:26:56]Read from MH i2c: 01 [07:26:56]MH_I2C_Read... [07:26:56]*** Stop cut motor [07:26:56]*** Cut end [07:26:56]Read from MH i2c: 01 07 00 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: 01 07 00 8F 21 00 00 00 00 00 FF 0F C5 [07:26:56]process_action close_receipt done [07:26:56]requested_data is exist [07:26:56]produce_requested_data [07:26:56]requested_item fm.sn is exist - process it [07:26:56]wFMCommunicate request_size=4 [07:26:56]MH_SAM_APDU [07:26:56]CAPDU: 80 11 00 00 [07:26:56]Write to MH i2c: E2 08 00 90 21 80 11 00 00 00 00 00 00 2B [07:26:56]Write i2c OK [07:26:56]MH_I2C_Read... [07:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:26:56]Read from MH i2c: E2 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: E2 17 00 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: E2 17 00 90 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [07:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:26:56]wFMCommunicate OK [07:26:56]requested_item fd.num is exist - process it [07:26:56]SAM_PROTO_GetFieldsCounters [07:26:56]wFMCommunicate request_size=4 [07:26:56]MH_SAM_APDU [07:26:56]CAPDU: 80 13 00 00 [07:26:56]Write to MH i2c: E2 08 00 91 21 80 13 00 00 00 00 00 00 2E [07:26:56]Write i2c OK [07:26:56]MH_I2C_Read... [07:26:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:26:56]Read from MH i2c: E2 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: E2 62 00 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: E2 62 00 91 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 DE 02 00 0E 04 04 00 CD 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 AE [07:26:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 DE 02 00 0E 04 04 00 CD 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 [07:26:56]wFMCommunicate OK [07:26:56]SAM_PROTO_GetFieldsCounters done [07:26:56]requested_item shift.num is exist - process it [07:26:56]requested_item shift.opened is exist - process it [07:26:56]req_shift_opened [07:26:56]FM_GetShiftState [07:26:56]SAM_PROTO_GetShiftState [07:26:56]wFMCommunicate request_size=4 [07:26:56]MH_SAM_APDU [07:26:56]CAPDU: 80 13 01 00 [07:26:56]Write to MH i2c: E2 08 00 92 21 80 13 01 00 00 00 00 00 30 [07:26:56]Write i2c OK [07:26:56]MH_I2C_Read... [07:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:26:56]Read from MH i2c: E2 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: E2 0E 00 [07:26:56]MH_I2C_Read... [07:26:56]Read from MH i2c: E2 0E 00 92 21 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 25 [07:26:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:26:56]wFMCommunicate OK [07:26:56]SAM_PROTO_GetShiftState done [07:26:56]FM_GetShiftState done [07:26:56]req_shift_opened done [07:26:56]requested_item shift.open_date is exist - process it [07:26:56]req_shift_open_date [07:26:56]req_shift_open_date done [07:26:56]produce_requested_data done [07:26:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188069,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:26:56]process_action_free close_receipt [07:26:56]json_value_free [07:26:56]json_value_free done [07:26:56]process_json_proto returns [07:26:56]Send response to host [07:26:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188069,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:26:56]free response buf [07:26:56]execute_script done [07:26:56]execute_script returns [07:26:56]free content buf [07:26:56]Sock 9.Close socket [07:26:56]Sock 9.Thread stoped [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27: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:45]accept exits with 8 [07:27:45]New connection [07:27:45]New thread 3067198820 created [07:27:45]Thread 3067055460 joined [07:27:45]Waiting for new connection... [07:27:45] Sock 8.Parse request [07:27:45]Sock 8.Check first char [07:27:45]Sock 8.First char is OK [07:27:45]request: POST /json_proto HTTP/1.0 [07:27:45]Method: POST [07:27:45]URL: /json_proto [07:27:45]Method is POST - this is cgi request [07:27:45]url: /json_proto [07:27:45]query_string will be loaded in cgi processing [07:27:45]execute_cgi json_proto POST (null) [07:27:45]execute_cgi path=json_proto method=POST [07:27:45]POST find Content-Length [07:27:45]Host: 172.17.42.131:8080 [07:27:45]Content-Length: 688 [07:27:45]Content-Type: application/json [07:27:45] [07:27:45]POST finish read [07:27:45]Found Content-Length = 688 [07:27:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:27:45]execute_script... [07:27:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210122", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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:27:45]POST & json_proto [07:27:45]process_json_proto [07:27:45]json parsed OK: [07:27:45]protocol is kg_v1.0 [07:27:45]action value=close_receipt [07:27:45]process_action close_receipt [07:27:45]cmd_close_receipt [07:27:45]MH_GetDate [07:27:45]Write to MH i2c: F0 00 00 93 21 A3 [07:27:45]Write i2c OK [07:27:45]MH_I2C_Read... [07:27:45]Read from MH i2c: F0 [07:27:45]MH_I2C_Read... [07:27:45]Read from MH i2c: F0 09 00 [07:27:45]MH_I2C_Read... [07:27:45]Read from MH i2c: F0 09 00 93 21 00 F3 53 17 67 A0 18 CA 66 58 [07:27:45]GetLastDocTimeStamp 1729582014 [07:27:45]current date 1729582067 [07:27:45]FM_GetShiftState [07:27:45]SAM_PROTO_GetShiftState [07:27:45]wFMCommunicate request_size=4 [07:27:45]MH_SAM_APDU [07:27:45]CAPDU: 80 13 01 00 [07:27:45]Write to MH i2c: E2 08 00 94 21 80 13 01 00 00 00 00 00 32 [07:27:45]Write i2c OK [07:27:45]MH_I2C_Read... [07:27:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:45]Read from MH i2c: E2 [07:27:45]MH_I2C_Read... [07:27:45]Read from MH i2c: E2 0E 00 [07:27:45]MH_I2C_Read... [07:27:45]Read from MH i2c: E2 0E 00 94 21 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 27 [07:27:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:27:45]wFMCommunicate OK [07:27:45]SAM_PROTO_GetShiftState done [07:27:45]FM_GetShiftState done [07:27:45]opened in 1729556094 [07:27:45]opened+sec_in_day 1729642494 [07:27:45]quantity*price = 150076 [07:27:45]sum+1 = 150078 [07:27:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 99 22.10.2024 07:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188070 ФПД: 132817900728435 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188070&fm=132817900728435&tin=02508201610067®Number=0000000000100030&sum=150000 [07:27:46]StoreToDocumentArchive [07:27:46]shift 461 fd 188070 [07:27:46]save to /storage/0461/doc_00188070 [07:27:46]save last doc name /storage/0461/doc_00188070 to /storage/kkm_last_doc_name [07:27:46]save OK [07:27:46]Clear old archive folders... [07:27:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:27:46]tlvbuf is B6F91010 [07:27:46]SAM_PROTO_ClearQueue [07:27:46]wFMCommunicate request_size=4 [07:27:46]MH_SAM_APDU [07:27:46]CAPDU: 80 09 00 00 [07:27:46]Write to MH i2c: E2 08 00 A1 21 80 09 00 00 00 00 00 00 34 [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 [07:27:46]MH_I2C_Read... [07:27:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:27:46]Read from MH i2c: E2 03 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 A1 21 00 90 00 36 [07:27:46]RAPDU: 90 00 [07:27:46]wFMCommunicate OK [07:27:46]SAM_PROTO_ClearQueue done [07:27:46]KKMCreateOFDPacket [07:27:46]OFDProtocolAddRootSTLVToBuf [07:27:46]FM_MakeSignedData [07:27:46]FM_MakeSignedData [07:27:46]SAM_PROTO_SignData [07:27:46]wFMCommunicate request_size=4 [07:27:46]MH_SAM_APDU [07:27:46]CAPDU: 80 0D 01 02 [07:27:46]Write to MH i2c: E2 08 00 A2 21 80 0D 01 02 00 00 00 00 3C [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:27:46]Read from MH i2c: E2 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 A2 21 00 90 00 37 [07:27:46]RAPDU: 90 00 [07:27:46]wFMCommunicate OK [07:27:46]wFMCommunicate request_size=255 [07:27:46]MH_SAM_APDU [07:27:46]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 00 00 00 F4 03 04 00 F3 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DE 02 [07:27:46]Write to MH i2c: E2 02 01 A3 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 00 00 00 F4 03 04 00 F3 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DE 02 00 00 66 [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:46]Read from MH i2c: E2 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 A3 21 00 90 00 38 [07:27:46]RAPDU: 90 00 [07:27:46]wFMCommunicate OK [07:27:46]wFMCommunicate request_size=16 [07:27:46]MH_SAM_APDU [07:27:46]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 78 CC 13 CA F0 73 [07:27:46]Write to MH i2c: E2 13 00 A4 21 80 0D 02 02 0B 00 00 35 04 06 00 78 CC 13 CA F0 73 00 00 18 [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:27:46]Read from MH i2c: E2 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 03 00 A4 21 00 90 00 39 [07:27:46]RAPDU: 90 00 [07:27:46]wFMCommunicate OK [07:27:46]wFMCommunicate request_size=4 [07:27:46]MH_SAM_APDU [07:27:46]CAPDU: 80 0D 03 02 [07:27:46]Write to MH i2c: E2 08 00 A5 21 80 0D 03 02 00 00 00 00 41 [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:27:46]Read from MH i2c: E2 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 0B 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 0B 00 A5 21 00 D0 02 60 73 53 CF 8B CC 90 00 60 [07:27:46]RAPDU: D0 02 60 73 53 CF 8B CC 90 00 [07:27:46]wFMCommunicate OK [07:27:46]SAM_PROTO_SignData done [07:27:46]FM_MakeSignedData done [07:27:46]CreateOFDProtocolMessage [07:27:46]wFMCommunicate request_size=4 [07:27:46]MH_SAM_APDU [07:27:46]CAPDU: 80 11 00 00 [07:27:46]Write to MH i2c: E2 08 00 A6 21 80 11 00 00 00 00 00 00 41 [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:46]Read from MH i2c: E2 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 17 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: E2 17 00 A6 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [07:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:27:46]wFMCommunicate OK [07:27:46]CreateOFDProtocolMessage done [07:27:46]OFDSenderStorePacket 188070 [07:27:46]StoreOFDPacket docnum=188070 [07:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9D 10 0D 01 C1 D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 00 00 00 F4 03 04 00 F3 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DE 02 00 35 04 06 00 78 CC 13 CA F0 73 D0 02 60 73 53 CF 8B CC [07:27:46]CheckFolder [07:27:46]dirname=/storage/ofd_packets [07:27:46]CheckFolder done [07:27:46]ProducePacketName [07:27:46]name=ofd_packets/00188070 [07:27:46]NVStorageSaveData ofd_packets/00188070 [07:27:46]File name is /storage/ofd_packets/00188070 [07:27:46]Write 307 bytes [07:27:46]NVStorageSaveData done [07:27:46]OFDSenderStorePacket done [07:27:46]KKMCreateOFDPacket done [07:27:46]NVStorageSaveData kkm_last_timestamp [07:27:46]File name is /storage/kkm_last_timestamp [07:27:46]Write 4 bytes [07:27:46]NVStorageSaveData done [07:27:46]ExternCall_PrintAddStr [07:27:46]wPrintStart [07:27:46]Write to MH i2c: 01 00 00 A7 21 C8 [07:27:46]Write i2c OK [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: 01 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: 01 07 00 [07:27:46]MH_I2C_Read... [07:27:46]Read from MH i2c: 01 07 00 A7 21 00 00 00 00 00 FF 0F DD [07:27:46]RasterBufferAndPrint [07:27:46]line Счет N : (1)210122 [07:27:46]line ИНН: 02508201610067 [07:27:46]line Контрольно-Кассовый Чек [07:27:46]line ПРОДАЖА [07:27:46]line ТРК (МРК, ГНК) : 31 [07:27:46]line Товар: 2710194210 [07:27:46]line D-ENERGY ДТ-К-5 [07:27:46]line 19.440 * 77.20 [07:27:46]line = 1500.77 [07:27:46]line НДС 12% НСП 1% [07:27:46]line > о реализуемом товаре [07:27:46]line ОКРУГЛЕНИЕ: -0.77 [07:27:46]line ИТОГО: 1500.00 [07:27:46]line Внесено: 1500.00 [07:27:46]line СДАЧА: 0.00 [07:27:46]line НСП 1% : 13.28 [07:27:46]line НДС 12% : 159.37 [07:27:46]line Наличными: 1500.00 [07:27:46]line Безнал.: 0.00 [07:27:46]line Место: АЗС № 86 "Партнер Нефть" [07:27:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:27:46]line СНО: Общий режим [07:27:46]line Чек 99 22.10.2024 07:27 [07:27:46]line Смена: 461 ФФД: 1.0 [07:27:46]line ЗНМ: 0300000155 [07:27:46]line РНМ: 0000000000100030 [07:27:46]line Версия ККМ: 001 [07:27:46]line ФМ: 0000000000965340 [07:27:46]line ФД: 188070 [07:27:46]line ФПД: 132817900728435 [07:27:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T072747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188070&fm=132817900728435&tin=02508201610067®Number=0000000000100030&sum=150000 [07:27:47]OFD Sender: Processing packet 188070 [packets to send 1062, broken 1061] [07:27:47]ProducePacketName [07:27:47]name=ofd_packets/00188070 [07:27:47]OFD Sender: To server: pG, [07:27:47]CommunicateWithHost lk.salyk.kg:30040 [07:27:47]ConnectInit lk.salyk.kg [07:27:47]written 0, free lines is 4095 [07:27:47]Connected sock=10 [07:27:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9D 10 0D 01 C1 D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 00 00 00 F4 03 04 00 F3 53 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DE 02 00 35 04 06 00 78 CC 13 CA F0 73 D0 02 60 73 53 CF 8B CC [07:27:47]Write to MH i2c: 01 00 00 D2 21 F3 [07:27:47]Write i2c OK [07:27:47]MH_I2C_Read... [07:27:47]Read from MH i2c: 01 [07:27:47]MH_I2C_Read... [07:27:47]Read from MH i2c: 01 07 00 [07:27:47]MH_I2C_Read... [07:27:47]Read from MH i2c: 01 07 00 D2 21 00 00 00 00 00 5A 0C 60 [07:27:47]RasterBufferAndPrint [07:27:47]line [07:27:47]line [07:27:47]line [07:27:47]line [07:27:47]line [07:27:47]written 0, free lines is 3166 [07:27:47]MH_Cut [07:27:47]Write to MH i2c: D1 01 00 D9 21 01 CC [07:27:47]Write i2c OK [07:27:47]MH_I2C_Read... [07:27:47]Read from MH i2c: D1 [07:27:47]MH_I2C_Read... [07:27:47]Read from MH i2c: D1 01 00 [07:27:47]MH_I2C_Read... [07:27:47]Read from MH i2c: D1 01 00 D9 21 00 CB [07:27:47]Write to MH i2c: 01 00 00 DA 21 FB [07:27:47]Write i2c OK [07:27:47]MH_I2C_Read... [07:27:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 36 47 00 48 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DE 02 00 F4 03 04 00 E1 FD 16 67 B6 04 01 00 00 AA AF 35 89 C6 35 35 F1 [07:27:47]CommunicateWithHost err = 0 [07:27:47]CheckOFDResponse [07:27:47]1017 (14) - 77093643461234 [07:27:47]1041 (16) - 0000000000965340 [07:27:47]1040 (4) - 188070 [07:27:47]1012 (4) - 22.10.2024 01:20 [07:27:47]1206 (1) - 0 [07:27:47]OFD Sender: Remove packet 188070 [07:27:47]ProducePacketName [07:27:47]name=ofd_packets/00188070 [07:27:47]NVStorageDeleteData [07:27:48]OFD Sender: No OFD packet to send [07:27:49]*** Cut start [07:27:49]*** Partial cut [07:27:49]*** CUTSNS_PIN = 1 [07:27:49]*** CUTSNS_PIN = 0 [07:27:49]*** Brake cut motor [07:27:49]Read from MH i2c: 01 [07:27:49]MH_I2C_Read... [07:27:49]*** Stop cut motor [07:27:49]*** Cut end [07:27:49]Read from MH i2c: 01 07 00 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: 01 07 00 DA 21 00 00 00 00 00 FF 0F 10 [07:27:49]process_action close_receipt done [07:27:49]requested_data is exist [07:27:49]produce_requested_data [07:27:49]requested_item fm.sn is exist - process it [07:27:49]wFMCommunicate request_size=4 [07:27:49]MH_SAM_APDU [07:27:49]CAPDU: 80 11 00 00 [07:27:49]Write to MH i2c: E2 08 00 DB 21 80 11 00 00 00 00 00 00 76 [07:27:49]Write i2c OK [07:27:49]MH_I2C_Read... [07:27:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:27:49]Read from MH i2c: E2 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 17 00 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 17 00 DB 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [07:27:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:27:49]wFMCommunicate OK [07:27:49]requested_item fd.num is exist - process it [07:27:49]SAM_PROTO_GetFieldsCounters [07:27:49]wFMCommunicate request_size=4 [07:27:49]MH_SAM_APDU [07:27:49]CAPDU: 80 13 00 00 [07:27:49]Write to MH i2c: E2 08 00 DC 21 80 13 00 00 00 00 00 00 79 [07:27:49]Write i2c OK [07:27:49]MH_I2C_Read... [07:27:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:27:49]Read from MH i2c: E2 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 62 00 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 62 00 DC 21 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DE 02 00 0E 04 04 00 CD 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 FD [07:27:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DE 02 00 0E 04 04 00 CD 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 [07:27:49]wFMCommunicate OK [07:27:49]SAM_PROTO_GetFieldsCounters done [07:27:49]requested_item shift.num is exist - process it [07:27:49]requested_item shift.opened is exist - process it [07:27:49]req_shift_opened [07:27:49]FM_GetShiftState [07:27:49]SAM_PROTO_GetShiftState [07:27:49]wFMCommunicate request_size=4 [07:27:49]MH_SAM_APDU [07:27:49]CAPDU: 80 13 01 00 [07:27:49]Write to MH i2c: E2 08 00 DD 21 80 13 01 00 00 00 00 00 7B [07:27:49]Write i2c OK [07:27:49]MH_I2C_Read... [07:27:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:27:49]Read from MH i2c: E2 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 0E 00 [07:27:49]MH_I2C_Read... [07:27:49]Read from MH i2c: E2 0E 00 DD 21 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 70 [07:27:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:27:49]wFMCommunicate OK [07:27:49]SAM_PROTO_GetShiftState done [07:27:49]FM_GetShiftState done [07:27:49]req_shift_opened done [07:27:49]requested_item shift.open_date is exist - process it [07:27:49]req_shift_open_date [07:27:49]req_shift_open_date done [07:27:49]produce_requested_data done [07:27:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188070,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:27:49]process_action_free close_receipt [07:27:49]json_value_free [07:27:49]json_value_free done [07:27:49]process_json_proto returns [07:27:49]Send response to host [07:27:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188070,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:27:49]free response buf [07:27:49]execute_script done [07:27:49]execute_script returns [07:27:49]free content buf [07:27:49]Sock 8.Close socket [07:27:49]Sock 8.Thread stoped [07:27:53]OFD Sender: No OFD packet to send [07:27:58]OFD Sender: No OFD packet to send [07:28:03]OFD Sender: No OFD packet to send [07:28:08]OFD Sender: No OFD packet to send [07:28:13]OFD Sender: No OFD packet to send [07:28:18]OFD Sender: No OFD packet to send [07:28:23]OFD Sender: No OFD packet to send [07:28:28]OFD Sender: No OFD packet to send [07:28:33]OFD Sender: No OFD packet to send [07:28:38]OFD Sender: No OFD packet to send [07:28:43]OFD Sender: No OFD packet to send [07:28:48]OFD Sender: No OFD packet to send [07:28:53]OFD Sender: No OFD packet to send [07:28:58]OFD Sender: No OFD packet to send [07:29:03]OFD Sender: No OFD packet to send [07:29:08]OFD Sender: No OFD packet to send [07:29:13]OFD Sender: No OFD packet to send [07:29:18]OFD Sender: No OFD packet to send [07:29:23]OFD Sender: No OFD packet to send [07:29:28]OFD Sender: No OFD packet to send [07:29:33]OFD Sender: No OFD packet to send [07:29:38]OFD Sender: No OFD packet to send [07:29:43]OFD Sender: No OFD packet to send [07:29:48]OFD Sender: No OFD packet to send [07:29:53]OFD Sender: No OFD packet to send [07:29:58]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:45]OFD Sender: No OFD packet to send [07:33:50]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:14]accept exits with 9 [07:34:14]New connection [07:34:14]New thread 3067055460 created [07:34:15]Thread 3067198820 joined [07:34:15]Waiting for new connection... [07:34:15] Sock 9.Parse request [07:34:15]Sock 9.Check first char [07:34:15]Sock 9.First char is OK [07:34:15]request: POST /json_proto HTTP/1.0 [07:34:15]Method: POST [07:34:15]URL: /json_proto [07:34:15]Method is POST - this is cgi request [07:34:15]url: /json_proto [07:34:15]query_string will be loaded in cgi processing [07:34:15]execute_cgi json_proto POST (null) [07:34:15]execute_cgi path=json_proto method=POST [07:34:15]POST find Content-Length [07:34:15]Host: 172.17.42.131:8080 [07:34:15]Content-Length: 683 [07:34:15]Content-Type: application/json [07:34:15] [07:34:15]POST finish read [07:34:15]Found Content-Length = 683 [07:34:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:15]execute_script... [07:34: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)210123", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:34:15]POST & json_proto [07:34:15]process_json_proto [07:34:15]json parsed OK: [07:34:15]protocol is kg_v1.0 [07:34:15]action value=close_receipt [07:34:15]process_action close_receipt [07:34:15]cmd_close_receipt [07:34:15]MH_GetDate [07:34:15]Write to MH i2c: F0 00 00 DE 21 EE [07:34:15]Write i2c OK [07:34:15]MH_I2C_Read... [07:34:15]Read from MH i2c: F0 [07:34:15]MH_I2C_Read... [07:34:15]Read from MH i2c: F0 09 00 [07:34:15]MH_I2C_Read... [07:34:15]Read from MH i2c: F0 09 00 DE 21 00 79 55 17 67 A0 18 CA 66 2B [07:34:15]GetLastDocTimeStamp 1729582067 [07:34:15]current date 1729582457 [07:34:15]FM_GetShiftState [07:34:15]SAM_PROTO_GetShiftState [07:34:15]wFMCommunicate request_size=4 [07:34:15]MH_SAM_APDU [07:34:15]CAPDU: 80 13 01 00 [07:34:15]Write to MH i2c: E2 08 00 DF 21 80 13 01 00 00 00 00 00 7D [07:34:15]Write i2c OK [07:34:15]MH_I2C_Read... [07:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:15]Read from MH i2c: E2 [07:34:15]MH_I2C_Read... [07:34:15]Read from MH i2c: E2 0E 00 [07:34:15]MH_I2C_Read... [07:34:15]Read from MH i2c: E2 0E 00 DF 21 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [07:34:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:34:15]wFMCommunicate OK [07:34:15]SAM_PROTO_GetShiftState done [07:34:15]FM_GetShiftState done [07:34:15]opened in 1729556094 [07:34:15]opened+sec_in_day 1729642494 [07:34:15]quantity*price = 70020 [07:34:15]sum+1 = 70021 [07:34:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 100 22.10.2024 07:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188071 ФПД: 274243449298130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073417&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188071&fm=274243449298130&tin=02508201610067®Number=0000000000100030&sum=70000 [07:34:16]StoreToDocumentArchive [07:34:16]shift 461 fd 188071 [07:34:16]save to /storage/0461/doc_00188071 [07:34:16]save last doc name /storage/0461/doc_00188071 to /storage/kkm_last_doc_name [07:34:16]save OK [07:34:16]Clear old archive folders... [07:34:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:34:16]tlvbuf is 01C45290 [07:34:16]SAM_PROTO_ClearQueue [07:34:16]wFMCommunicate request_size=4 [07:34:16]MH_SAM_APDU [07:34:16]CAPDU: 80 09 00 00 [07:34:16]Write to MH i2c: E2 08 00 EC 21 80 09 00 00 00 00 00 00 7F [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:34:16]Read from MH i2c: E2 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 EC 21 00 90 00 81 [07:34:16]RAPDU: 90 00 [07:34:16]wFMCommunicate OK [07:34:16]SAM_PROTO_ClearQueue done [07:34:16]KKMCreateOFDPacket [07:34:16]OFDProtocolAddRootSTLVToBuf [07:34:16]FM_MakeSignedData [07:34:16]FM_MakeSignedData [07:34:16]SAM_PROTO_SignData [07:34:16]wFMCommunicate request_size=4 [07:34:16]MH_SAM_APDU [07:34:16]CAPDU: 80 0D 01 02 [07:34:16]Write to MH i2c: E2 08 00 ED 21 80 0D 01 02 00 00 00 00 87 [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:34:16]Read from MH i2c: E2 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 ED 21 00 90 00 82 [07:34:16]RAPDU: 90 00 [07:34:16]wFMCommunicate OK [07:34:16]wFMCommunicate request_size=255 [07:34:16]MH_SAM_APDU [07:34:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 64 00 00 00 F4 03 04 00 79 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DE 02 [07:34:16]Write to MH i2c: E2 02 01 EE 21 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 64 00 00 00 F4 03 04 00 79 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DE 02 00 00 0F [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:16]Read from MH i2c: E2 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 EE 21 00 90 00 83 [07:34:16]RAPDU: 90 00 [07:34:16]wFMCommunicate OK [07:34:16]wFMCommunicate request_size=16 [07:34:16]MH_SAM_APDU [07:34:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F9 6C 47 60 9C D2 [07:34:16]Write to MH i2c: E2 13 00 EF 21 80 0D 02 02 0B 00 00 35 04 06 00 F9 6C 47 60 9C D2 00 00 59 [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:34:16]Read from MH i2c: E2 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 03 00 EF 21 00 90 00 84 [07:34:16]RAPDU: 90 00 [07:34:16]wFMCommunicate OK [07:34:16]wFMCommunicate request_size=4 [07:34:16]MH_SAM_APDU [07:34:16]CAPDU: 80 0D 03 02 [07:34:16]Write to MH i2c: E2 08 00 F0 21 80 0D 03 02 00 00 00 00 8C [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:34:16]Read from MH i2c: E2 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 0B 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 0B 00 F0 21 00 C1 37 DB B8 AA BD 2A 6E 90 00 17 [07:34:16]RAPDU: C1 37 DB B8 AA BD 2A 6E 90 00 [07:34:16]wFMCommunicate OK [07:34:16]SAM_PROTO_SignData done [07:34:16]FM_MakeSignedData done [07:34:16]CreateOFDProtocolMessage [07:34:16]wFMCommunicate request_size=4 [07:34:16]MH_SAM_APDU [07:34:16]CAPDU: 80 11 00 00 [07:34:16]Write to MH i2c: E2 08 00 F1 21 80 11 00 00 00 00 00 00 8C [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:16]Read from MH i2c: E2 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 17 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: E2 17 00 F1 21 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [07:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:34:16]wFMCommunicate OK [07:34:16]CreateOFDProtocolMessage done [07:34:16]OFDSenderStorePacket 188071 [07:34:16]StoreOFDPacket docnum=188071 [07:34:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 EB 0D 01 E0 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 64 00 00 00 F4 03 04 00 79 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DE 02 00 35 04 06 00 F9 6C 47 60 9C D2 C1 37 DB B8 AA BD 2A 6E [07:34:16]CheckFolder [07:34:16]dirname=/storage/ofd_packets [07:34:16]CheckFolder done [07:34:16]ProducePacketName [07:34:16]name=ofd_packets/00188071 [07:34:16]NVStorageSaveData ofd_packets/00188071 [07:34:16]File name is /storage/ofd_packets/00188071 [07:34:16]Write 307 bytes [07:34:16]NVStorageSaveData done [07:34:16]OFDSenderStorePacket done [07:34:16]KKMCreateOFDPacket done [07:34:16]NVStorageSaveData kkm_last_timestamp [07:34:16]File name is /storage/kkm_last_timestamp [07:34:16]Write 4 bytes [07:34:16]NVStorageSaveData done [07:34:16]ExternCall_PrintAddStr [07:34:16]wPrintStart [07:34:16]Write to MH i2c: 01 00 00 F2 21 13 [07:34:16]Write i2c OK [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: 01 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: 01 07 00 [07:34:16]MH_I2C_Read... [07:34:16]Read from MH i2c: 01 07 00 F2 21 00 00 00 00 00 FF 0F 28 [07:34:16]RasterBufferAndPrint [07:34:16]line Счет N : (1)210123 [07:34:16]line ИНН: 02508201610067 [07:34:16]line Контрольно-Кассовый Чек [07:34:16]line ПРОДАЖА [07:34:16]line ТРК (МРК, ГНК) : 11 [07:34:16]line Товар: 2710194210 [07:34:16]line D-ENERGY ДТ-К-5 [07:34:16]line 9.070 * 77.20 [07:34:16]line = 700.20 [07:34:16]line НДС 12% НСП 1% [07:34:16]line > о реализуемом товаре [07:34:16]line ОКРУГЛЕНИЕ: -0.20 [07:34:16]line ИТОГО: 700.00 [07:34:16]line Внесено: 700.00 [07:34:16]line СДАЧА: 0.00 [07:34:16]line НСП 1% : 6.20 [07:34:16]line НДС 12% : 74.36 [07:34:16]line Наличными: 700.00 [07:34:16]line Безнал.: 0.00 [07:34:16]line Место: АЗС № 86 "Партнер Нефть" [07:34:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:34:16]line СНО: Общий режим [07:34:16]line Чек 100 22.10.2024 07:34 [07:34:16]line Смена: 461 ФФД: 1.0 [07:34:16]line ЗНМ: 0300000155 [07:34:16]line РНМ: 0000000000100030 [07:34:16]line Версия ККМ: 001 [07:34:16]line ФМ: 0000000000965340 [07:34:16]line ФД: 188071 [07:34:16]line ФПД: 274243449298130 [07:34:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073417&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188071&fm=274243449298130&tin=02508201610067®Number=0000000000100030&sum=70000 [07:34:16]written 0, free lines is 4095 [07:34:16]OFD Sender: Processing packet 188071 [packets to send 1062, broken 1061] [07:34:16]ProducePacketName [07:34:16]name=ofd_packets/00188071 [07:34:16]OFD Sender: To server: pG, [07:34:16]CommunicateWithHost lk.salyk.kg:30040 [07:34:16]ConnectInit lk.salyk.kg [07:34:17]Connected sock=10 [07:34:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 17 EB 0D 01 E0 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 64 00 00 00 F4 03 04 00 79 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DE 02 00 35 04 06 00 F9 6C 47 60 9C D2 C1 37 DB B8 AA BD 2A 6E [07:34:17]Write to MH i2c: 01 00 00 1D 22 3F [07:34:17]Write i2c OK [07:34:17]MH_I2C_Read... [07:34:17]Read from MH i2c: 01 [07:34:17]MH_I2C_Read... [07:34:17]Read from MH i2c: 01 07 00 [07:34:17]MH_I2C_Read... [07:34:17]Read from MH i2c: 01 07 00 1D 22 00 00 00 00 00 51 0C A3 [07:34:17]RasterBufferAndPrint [07:34:17]line [07:34:17]line [07:34:17]line [07:34:17]line [07:34:17]line [07:34:17]written 0, free lines is 3157 [07:34:17]MH_Cut [07:34:17]Write to MH i2c: D1 01 00 24 22 01 18 [07:34:17]Write i2c OK [07:34:17]MH_I2C_Read... [07:34:17]Read from MH i2c: D1 [07:34:17]MH_I2C_Read... [07:34:17]Read from MH i2c: D1 01 00 [07:34:17]MH_I2C_Read... [07:34:17]Read from MH i2c: D1 01 00 24 22 00 17 [07:34:17]Write to MH i2c: 01 00 00 25 22 47 [07:34:17]Write i2c OK [07:34:17]MH_I2C_Read... [07:34:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 74 83 47 00 7A 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 39 36 35 33 34 30 10 04 04 00 A7 DE 02 00 F4 03 04 00 67 FF 16 67 B6 04 01 00 00 74 27 D1 48 B0 C1 3E EF [07:34:17]CommunicateWithHost err = 0 [07:34:17]CheckOFDResponse [07:34:17]1017 (14) - 77093643461234 [07:34:17]1041 (16) - 0000000000965340 [07:34:17]1040 (4) - 188071 [07:34:17]1012 (4) - 22.10.2024 01:27 [07:34:17]1206 (1) - 0 [07:34:17]OFD Sender: Remove packet 188071 [07:34:17]ProducePacketName [07:34:17]name=ofd_packets/00188071 [07:34:17]NVStorageDeleteData [07:34:17]OFD Sender: No OFD packet to send [07:34:18]*** Cut start [07:34:18]*** Partial cut [07:34:18]*** CUTSNS_PIN = 1 [07:34:18]*** CUTSNS_PIN = 0 [07:34:18]*** Brake cut motor [07:34:19]Read from MH i2c: 01 [07:34:19]MH_I2C_Read... [07:34:19]*** Stop cut motor [07:34:19]*** Cut end [07:34:19]Read from MH i2c: 01 07 00 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: 01 07 00 25 22 00 00 00 00 00 FF 0F 5C [07:34:19]process_action close_receipt done [07:34:19]requested_data is exist [07:34:19]produce_requested_data [07:34:19]requested_item fm.sn is exist - process it [07:34:19]wFMCommunicate request_size=4 [07:34:19]MH_SAM_APDU [07:34:19]CAPDU: 80 11 00 00 [07:34:19]Write to MH i2c: E2 08 00 26 22 80 11 00 00 00 00 00 00 C2 [07:34:19]Write i2c OK [07:34:19]MH_I2C_Read... [07:34:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:34:19]Read from MH i2c: E2 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: E2 17 00 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: E2 17 00 26 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [07:34:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:34:19]wFMCommunicate OK [07:34:19]requested_item fd.num is exist - process it [07:34:19]SAM_PROTO_GetFieldsCounters [07:34:19]wFMCommunicate request_size=4 [07:34:19]MH_SAM_APDU [07:34:19]CAPDU: 80 13 00 00 [07:34:19]Write to MH i2c: E2 08 00 27 22 80 13 00 00 00 00 00 00 C5 [07:34:19]Write i2c OK [07:34:19]MH_I2C_Read... [07:34:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:34:19]Read from MH i2c: E2 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: E2 62 00 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: E2 62 00 27 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DE 02 00 0E 04 04 00 CD 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 4D [07:34:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DE 02 00 0E 04 04 00 CD 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 [07:34:19]wFMCommunicate OK [07:34:19]SAM_PROTO_GetFieldsCounters done [07:34:19]requested_item shift.num is exist - process it [07:34:19]requested_item shift.opened is exist - process it [07:34:19]req_shift_opened [07:34:19]FM_GetShiftState [07:34:19]SAM_PROTO_GetShiftState [07:34:19]wFMCommunicate request_size=4 [07:34:19]MH_SAM_APDU [07:34:19]CAPDU: 80 13 01 00 [07:34:19]Write to MH i2c: E2 08 00 28 22 80 13 01 00 00 00 00 00 C7 [07:34:19]Write i2c OK [07:34:19]MH_I2C_Read... [07:34:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:34:19]Read from MH i2c: E2 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: E2 0E 00 [07:34:19]MH_I2C_Read... [07:34:19]Read from MH i2c: E2 0E 00 28 22 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BC [07:34:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:34:19]wFMCommunicate OK [07:34:19]SAM_PROTO_GetShiftState done [07:34:19]FM_GetShiftState done [07:34:19]req_shift_opened done [07:34:19]requested_item shift.open_date is exist - process it [07:34:19]req_shift_open_date [07:34:19]req_shift_open_date done [07:34:19]produce_requested_data done [07:34:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188071,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:34:19]process_action_free close_receipt [07:34:19]json_value_free [07:34:19]json_value_free done [07:34:19]process_json_proto returns [07:34:19]Send response to host [07:34:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188071,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:34:19]free response buf [07:34:19]execute_script done [07:34:19]execute_script returns [07:34:19]free content buf [07:34:19]Sock 9.Close socket [07:34:19]Sock 9.Thread stoped [07:34:22]OFD Sender: No OFD packet to send [07:34:27]OFD Sender: No OFD packet to send [07:34:32]OFD Sender: No OFD packet to send [07:34:38]OFD Sender: No OFD packet to send [07:34:43]OFD Sender: No OFD packet to send [07:34:48]OFD Sender: No OFD packet to send [07:34:53]OFD Sender: No OFD packet to send [07:34:58]OFD Sender: No OFD packet to send [07:35:03]OFD Sender: No OFD packet to send [07:35:08]OFD Sender: No OFD packet to send [07:35:10]accept exits with 8 [07:35:10]New connection [07:35:10]New thread 3067198820 created [07:35:10]Thread 3067055460 joined [07:35:10]Waiting for new connection... [07:35:10] Sock 8.Parse request [07:35:10]Sock 8.Check first char [07:35:10]Sock 8.First char is OK [07:35:10]request: POST /json_proto HTTP/1.0 [07:35:10]Method: POST [07:35:10]URL: /json_proto [07:35:10]Method is POST - this is cgi request [07:35:10]url: /json_proto [07:35:10]query_string will be loaded in cgi processing [07:35:10]execute_cgi json_proto POST (null) [07:35:10]execute_cgi path=json_proto method=POST [07:35:10]POST find Content-Length [07:35:10]Host: 172.17.42.131:8080 [07:35:10]Content-Length: 983 [07:35:10]Content-Type: application/json [07:35:10] [07:35:10]POST finish read [07:35:10]Found Content-Length = 983 [07:35:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:35:10]execute_script... [07:35:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210124", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "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:35:10]POST & json_proto [07:35:10]process_json_proto [07:35:10]json parsed OK: [07:35:10]protocol is kg_v1.0 [07:35:10]action value=close_receipt [07:35:10]process_action close_receipt [07:35:10]cmd_close_receipt [07:35:10]MH_GetDate [07:35:10]Write to MH i2c: F0 00 00 29 22 3A [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: F0 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: F0 09 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: F0 09 00 29 22 00 B0 55 17 67 A0 18 CA 66 AE [07:35:10]GetLastDocTimeStamp 1729582457 [07:35:10]current date 1729582512 [07:35:10]FM_GetShiftState [07:35:10]SAM_PROTO_GetShiftState [07:35:10]wFMCommunicate request_size=4 [07:35:10]MH_SAM_APDU [07:35:10]CAPDU: 80 13 01 00 [07:35:10]Write to MH i2c: E2 08 00 2A 22 80 13 01 00 00 00 00 00 C9 [07:35:10]Write i2c OK [07:35:10]MH_I2C_Read... [07:35:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:10]Read from MH i2c: E2 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 0E 00 [07:35:10]MH_I2C_Read... [07:35:10]Read from MH i2c: E2 0E 00 2A 22 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [07:35:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:35:10]wFMCommunicate OK [07:35:10]SAM_PROTO_GetShiftState done [07:35:10]FM_GetShiftState done [07:35:10]opened in 1729556094 [07:35:10]opened+sec_in_day 1729642494 [07:35:10]quantity*price = 200006 [07:35:10]sum+1 = 200008 [07:35:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 101 22.10.2024 07:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188072 ФПД: 278406680646325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073512&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188072&fm=278406680646325&tin=02508201610067®Number=0000000000100030&sum=200000 [07:35:11]StoreToDocumentArchive [07:35:11]shift 461 fd 188072 [07:35:11]save to /storage/0461/doc_00188072 [07:35:11]save last doc name /storage/0461/doc_00188072 to /storage/kkm_last_doc_name [07:35:11]save OK [07:35:11]Clear old archive folders... [07:35:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:35:11]tlvbuf is 01BDC400 [07:35:11]SAM_PROTO_ClearQueue [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 09 00 00 [07:35:11]Write to MH i2c: E2 08 00 37 22 80 09 00 00 00 00 00 00 CB [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 37 22 00 90 00 CD [07:35:11]RAPDU: 90 00 [07:35:11]wFMCommunicate OK [07:35:11]SAM_PROTO_ClearQueue done [07:35:11]KKMCreateOFDPacket [07:35:11]OFDProtocolAddRootSTLVToBuf [07:35:11]FM_MakeSignedData [07:35:11]FM_MakeSignedData [07:35:11]SAM_PROTO_SignData [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 0D 01 02 [07:35:11]Write to MH i2c: E2 08 00 38 22 80 0D 01 02 00 00 00 00 D3 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 38 22 00 90 00 CE [07:35:11]RAPDU: 90 00 [07:35:11]wFMCommunicate OK [07:35:11]wFMCommunicate request_size=255 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 65 00 00 00 F4 03 04 00 B0 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DE 02 00 35 04 06 00 FD [07:35:11]Write to MH i2c: E2 02 01 39 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 65 00 00 00 F4 03 04 00 B0 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DE 02 00 35 04 06 00 FD 00 00 08 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 39 22 00 90 00 CF [07:35:11]RAPDU: 90 00 [07:35:11]wFMCommunicate OK [07:35:11]wFMCommunicate request_size=10 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 0D 02 02 05 35 9B 4D 92 B5 [07:35:11]Write to MH i2c: E2 0D 00 3A 22 80 0D 02 02 05 00 35 9B 4D 92 B5 00 00 44 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 03 00 3A 22 00 90 00 D0 [07:35:11]RAPDU: 90 00 [07:35:11]wFMCommunicate OK [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 0D 03 02 [07:35:11]Write to MH i2c: E2 08 00 3B 22 80 0D 03 02 00 00 00 00 D8 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 0B 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 0B 00 3B 22 00 71 1D D7 3A 4F 7A 95 4B 90 00 21 [07:35:11]RAPDU: 71 1D D7 3A 4F 7A 95 4B 90 00 [07:35:11]wFMCommunicate OK [07:35:11]SAM_PROTO_SignData done [07:35:11]FM_MakeSignedData done [07:35:11]CreateOFDProtocolMessage [07:35:11]wFMCommunicate request_size=4 [07:35:11]MH_SAM_APDU [07:35:11]CAPDU: 80 11 00 00 [07:35:11]Write to MH i2c: E2 08 00 3C 22 80 11 00 00 00 00 00 00 D8 [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:11]Read from MH i2c: E2 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 17 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: E2 17 00 3C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [07:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:35:11]wFMCommunicate OK [07:35:11]CreateOFDProtocolMessage done [07:35:11]OFDSenderStorePacket 188072 [07:35:11]StoreOFDPacket docnum=188072 [07:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 96 07 01 AC 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 65 00 00 00 F4 03 04 00 B0 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DE 02 00 35 04 06 00 FD 35 9B 4D 92 B5 71 1D D7 3A 4F 7A 95 4B [07:35:11]CheckFolder [07:35:11]dirname=/storage/ofd_packets [07:35:11]CheckFolder done [07:35:11]ProducePacketName [07:35:11]name=ofd_packets/00188072 [07:35:11]NVStorageSaveData ofd_packets/00188072 [07:35:11]File name is /storage/ofd_packets/00188072 [07:35:11]Write 301 bytes [07:35:11]NVStorageSaveData done [07:35:11]OFDSenderStorePacket done [07:35:11]KKMCreateOFDPacket done [07:35:11]NVStorageSaveData kkm_last_timestamp [07:35:11]File name is /storage/kkm_last_timestamp [07:35:11]Write 4 bytes [07:35:11]NVStorageSaveData done [07:35:11]ExternCall_PrintAddStr [07:35:11]wPrintStart [07:35:11]Write to MH i2c: 01 00 00 3D 22 5F [07:35:11]Write i2c OK [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 07 00 [07:35:11]MH_I2C_Read... [07:35:11]Read from MH i2c: 01 07 00 3D 22 00 00 00 00 00 FF 0F 74 [07:35:11]RasterBufferAndPrint [07:35:11]line Счет N : (1)210124 [07:35:11]line ИНН: 02508201610067 [07:35:11]line Контрольно-Кассовый Чек [07:35:11]line ПРОДАЖА [07:35:11]line ТРК (МРК, ГНК) : 32 [07:35:11]line Товар: 2710124130 [07:35:11]line Аи-92-К-3 [07:35:11]line 30.350 * 65.90 [07:35:11]line = 2000.07 [07:35:11]line НДС 12% НСП 1% [07:35:11]line > о реализуемом товаре [07:35:11]line ОКРУГЛЕНИЕ: -0.07 [07:35:11]line ИТОГО: 2000.00 [07:35:11]line Внесено: 2000.00 [07:35:11]line СДАЧА: 0.00 [07:35:11]line НСП 1% : 17.70 [07:35:11]line НДС 12% : 212.40 [07:35:11]line Наличными: 2000.00 [07:35:11]line Безнал.: 0.00 [07:35:11]line Место: АЗС № 86 "Партнер Нефть" [07:35:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:35:11]line СНО: Общий режим [07:35:11]line Чек 101 22.10.2024 07:35 [07:35:11]line Смена: 461 ФФД: 1.0 [07:35:11]line ЗНМ: 0300000155 [07:35:11]line РНМ: 0000000000100030 [07:35:11]line Версия ККМ: 001 [07:35:11]line [07:35:11]line Дисконтная программа [07:35:11]line АИ-92 [07:35:11]line номер 86 [07:35:11]line сэкономлено 30.35 сом [07:35:11]line ФМ: 0000000000965340 [07:35:11]line ФД: 188072 [07:35:11]line ФПД: 278406680646325 [07:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073512&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188072&fm=278406680646325&tin=02508201610067®Number=0000000000100030&sum=200000 [07:35:11]written 0, free lines is 4095 [07:35:11]OFD Sender: Processing packet 188072 [packets to send 1062, broken 1061] [07:35:11]ProducePacketName [07:35:11]name=ofd_packets/00188072 [07:35:11]OFD Sender: To server: pG, [07:35:11]CommunicateWithHost lk.salyk.kg:30040 [07:35:11]ConnectInit lk.salyk.kg [07:35:12]Connected sock=10 [07:35:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 96 07 01 AC 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 65 00 00 00 F4 03 04 00 B0 55 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DE 02 00 35 04 06 00 FD 35 9B 4D 92 B5 71 1D D7 3A 4F 7A 95 4B [07:35:12]Write to MH i2c: 01 00 00 6D 22 8F [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: 01 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: 01 07 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: 01 07 00 6D 22 00 00 00 00 00 E2 0B 83 [07:35:12]RasterBufferAndPrint [07:35:12]line [07:35:12]line [07:35:12]line [07:35:12]line [07:35:12]line [07:35:12]written 0, free lines is 3045 [07:35:12]MH_Cut [07:35:12]Write to MH i2c: D1 01 00 74 22 01 68 [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: D1 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: D1 01 00 [07:35:12]MH_I2C_Read... [07:35:12]Read from MH i2c: D1 01 00 74 22 00 67 [07:35:12]Write to MH i2c: 01 00 00 75 22 97 [07:35:12]Write i2c OK [07:35:12]MH_I2C_Read... [07:35:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 2D 47 00 51 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DE 02 00 F4 03 04 00 9E FF 16 67 B6 04 01 00 00 A2 D1 3B 98 C6 E2 29 A7 [07:35:12]CommunicateWithHost err = 0 [07:35:12]CheckOFDResponse [07:35:12]1017 (14) - 77093643461234 [07:35:12]1041 (16) - 0000000000965340 [07:35:12]1040 (4) - 188072 [07:35:12]1012 (4) - 22.10.2024 01:27 [07:35:12]1206 (1) - 0 [07:35:12]OFD Sender: Remove packet 188072 [07:35:12]ProducePacketName [07:35:12]name=ofd_packets/00188072 [07:35:12]NVStorageDeleteData [07:35:12]OFD Sender: No OFD packet to send [07:35:13]*** Cut start [07:35:13]*** Partial cut [07:35:13]*** CUTSNS_PIN = 1 [07:35:13]*** CUTSNS_PIN = 0 [07:35:13]*** Brake cut motor [07:35:14]Read from MH i2c: 01 [07:35:14]MH_I2C_Read... [07:35:14]*** Stop cut motor [07:35:14]*** Cut end [07:35:14]Read from MH i2c: 01 07 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: 01 07 00 75 22 00 00 00 00 00 FF 0F AC [07:35:14]process_action close_receipt done [07:35:14]requested_data is exist [07:35:14]produce_requested_data [07:35:14]requested_item fm.sn is exist - process it [07:35:14]wFMCommunicate request_size=4 [07:35:14]MH_SAM_APDU [07:35:14]CAPDU: 80 11 00 00 [07:35:14]Write to MH i2c: E2 08 00 76 22 80 11 00 00 00 00 00 00 12 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:35:14]Read from MH i2c: E2 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 17 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 17 00 76 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [07:35:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:35:14]wFMCommunicate OK [07:35:14]requested_item fd.num is exist - process it [07:35:14]SAM_PROTO_GetFieldsCounters [07:35:14]wFMCommunicate request_size=4 [07:35:14]MH_SAM_APDU [07:35:14]CAPDU: 80 13 00 00 [07:35:14]Write to MH i2c: E2 08 00 77 22 80 13 00 00 00 00 00 00 15 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:35:14]Read from MH i2c: E2 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 62 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 62 00 77 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DE 02 00 0E 04 04 00 CD 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 A1 [07:35:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DE 02 00 0E 04 04 00 CD 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 [07:35:14]wFMCommunicate OK [07:35:14]SAM_PROTO_GetFieldsCounters done [07:35:14]requested_item shift.num is exist - process it [07:35:14]requested_item shift.opened is exist - process it [07:35:14]req_shift_opened [07:35:14]FM_GetShiftState [07:35:14]SAM_PROTO_GetShiftState [07:35:14]wFMCommunicate request_size=4 [07:35:14]MH_SAM_APDU [07:35:14]CAPDU: 80 13 01 00 [07:35:14]Write to MH i2c: E2 08 00 78 22 80 13 01 00 00 00 00 00 17 [07:35:14]Write i2c OK [07:35:14]MH_I2C_Read... [07:35:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:35:14]Read from MH i2c: E2 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 0E 00 [07:35:14]MH_I2C_Read... [07:35:14]Read from MH i2c: E2 0E 00 78 22 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0C [07:35:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:35:14]wFMCommunicate OK [07:35:14]SAM_PROTO_GetShiftState done [07:35:14]FM_GetShiftState done [07:35:14]req_shift_opened done [07:35:14]requested_item shift.open_date is exist - process it [07:35:14]req_shift_open_date [07:35:14]req_shift_open_date done [07:35:14]produce_requested_data done [07:35:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188072,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:35:14]process_action_free close_receipt [07:35:14]json_value_free [07:35:14]json_value_free done [07:35:14]process_json_proto returns [07:35:14]Send response to host [07:35:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188072,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:35:14]free response buf [07:35:14]execute_script done [07:35:14]execute_script returns [07:35:14]free content buf [07:35:14]Sock 8.Close socket [07:35:14]Sock 8.Thread stoped [07:35:17]OFD Sender: No OFD packet to send [07:35:23]OFD Sender: No OFD packet to send [07:35:28]OFD Sender: No OFD packet to send [07:35:33]OFD Sender: No OFD packet to send [07:35:38]OFD Sender: No OFD packet to send [07:35:43]OFD Sender: No OFD packet to send [07:35:48]OFD Sender: No OFD packet to send [07:35:53]OFD Sender: No OFD packet to send [07:35:58]OFD Sender: No OFD packet to send [07:36:03]OFD Sender: No OFD packet to send [07:36:08]OFD Sender: No OFD packet to send [07:36:13]OFD Sender: No OFD packet to send [07:36:18]OFD Sender: No OFD packet to send [07:36:23]OFD Sender: No OFD packet to send [07:36:28]OFD Sender: No OFD packet to send [07:36:33]OFD Sender: No OFD packet to send [07:36:38]OFD Sender: No OFD packet to send [07:36:43]OFD Sender: No OFD packet to send [07:36:48]OFD Sender: No OFD packet to send [07:36:53]OFD Sender: No OFD packet to send [07:36:58]OFD Sender: No OFD packet to send [07:37:03]OFD Sender: No OFD packet to send [07:37:08]OFD Sender: No OFD packet to send [07:37:13]OFD Sender: No OFD packet to send [07:37:18]OFD Sender: No OFD packet to send [07:37:23]OFD Sender: No OFD packet to send [07:37:28]OFD Sender: No OFD packet to send [07:37:33]OFD Sender: No OFD packet to send [07:37:38]OFD Sender: No OFD packet to send [07:37:43]OFD Sender: No OFD packet to send [07:37:48]OFD Sender: No OFD packet to send [07:37:53]OFD Sender: No OFD packet to send [07:37:58]OFD Sender: No OFD packet to send [07:38:01]accept exits with 9 [07:38:01]New connection [07:38:01]New thread 3067055460 created [07:38:01]Thread 3067198820 joined [07:38:01]Waiting for new connection... [07:38:01] Sock 9.Parse request [07:38:01]Sock 9.Check first char [07:38:01]Sock 9.First char is OK [07:38:01]request: POST /json_proto HTTP/1.0 [07:38:01]Method: POST [07:38:01]URL: /json_proto [07:38:01]Method is POST - this is cgi request [07:38:01]url: /json_proto [07:38:01]query_string will be loaded in cgi processing [07:38:01]execute_cgi json_proto POST (null) [07:38:01]execute_cgi path=json_proto method=POST [07:38:01]POST find Content-Length [07:38:01]Host: 172.17.42.131:8080 [07:38:01]Content-Length: 677 [07:38:01]Content-Type: application/json [07:38:01] [07:38:01]POST finish read [07:38:01]Found Content-Length = 677 [07:38:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:01]execute_script... [07:38: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)210126", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:01]POST & json_proto [07:38:01]process_json_proto [07:38:01]json parsed OK: [07:38:01]protocol is kg_v1.0 [07:38:01]action value=close_receipt [07:38:01]process_action close_receipt [07:38:01]cmd_close_receipt [07:38:01]MH_GetDate [07:38:01]Write to MH i2c: F0 00 00 79 22 8A [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: F0 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: F0 09 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: F0 09 00 79 22 00 5B 56 17 67 A0 18 CA 66 AA [07:38:01]GetLastDocTimeStamp 1729582512 [07:38:01]current date 1729582683 [07:38:01]FM_GetShiftState [07:38:01]SAM_PROTO_GetShiftState [07:38:01]wFMCommunicate request_size=4 [07:38:01]MH_SAM_APDU [07:38:01]CAPDU: 80 13 01 00 [07:38:01]Write to MH i2c: E2 08 00 7A 22 80 13 01 00 00 00 00 00 19 [07:38:01]Write i2c OK [07:38:01]MH_I2C_Read... [07:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:01]Read from MH i2c: E2 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 0E 00 [07:38:01]MH_I2C_Read... [07:38:01]Read from MH i2c: E2 0E 00 7A 22 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0E [07:38:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:38:01]wFMCommunicate OK [07:38:01]SAM_PROTO_GetShiftState done [07:38:01]FM_GetShiftState done [07:38:01]opened in 1729556094 [07:38:01]opened+sec_in_day 1729642494 [07:38:01]quantity*price = 50041 [07:38:01]sum+1 = 50042 [07:38:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 102 22.10.2024 07:38 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188073 ФПД: 8059117302482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188073&fm=8059117302482&tin=02508201610067®Number=0000000000100030&sum=50000 [07:38:02]StoreToDocumentArchive [07:38:02]shift 461 fd 188073 [07:38:02]save to /storage/0461/doc_00188073 [07:38:02]save last doc name /storage/0461/doc_00188073 to /storage/kkm_last_doc_name [07:38:02]save OK [07:38:02]Clear old archive folders... [07:38:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:38:02]tlvbuf is 01BD24D0 [07:38:02]SAM_PROTO_ClearQueue [07:38:02]wFMCommunicate request_size=4 [07:38:02]MH_SAM_APDU [07:38:02]CAPDU: 80 09 00 00 [07:38:02]Write to MH i2c: E2 08 00 87 22 80 09 00 00 00 00 00 00 1B [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:02]Read from MH i2c: E2 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 87 22 00 90 00 1D [07:38:02]RAPDU: 90 00 [07:38:02]wFMCommunicate OK [07:38:02]SAM_PROTO_ClearQueue done [07:38:02]KKMCreateOFDPacket [07:38:02]OFDProtocolAddRootSTLVToBuf [07:38:02]FM_MakeSignedData [07:38:02]FM_MakeSignedData [07:38:02]SAM_PROTO_SignData [07:38:02]wFMCommunicate request_size=4 [07:38:02]MH_SAM_APDU [07:38:02]CAPDU: 80 0D 01 02 [07:38:02]Write to MH i2c: E2 08 00 88 22 80 0D 01 02 00 00 00 00 23 [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:02]Read from MH i2c: E2 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 88 22 00 90 00 1E [07:38:02]RAPDU: 90 00 [07:38:02]wFMCommunicate OK [07:38:02]wFMCommunicate request_size=255 [07:38:02]MH_SAM_APDU [07:38: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DE 02 00 35 04 06 00 07 [07:38:02]Write to MH i2c: E2 02 01 89 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DE 02 00 35 04 06 00 07 00 00 89 [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:02]Read from MH i2c: E2 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 89 22 00 90 00 1F [07:38:02]RAPDU: 90 00 [07:38:02]wFMCommunicate OK [07:38:02]wFMCommunicate request_size=10 [07:38:02]MH_SAM_APDU [07:38:02]CAPDU: 80 0D 02 02 05 54 68 D2 F2 D2 [07:38:02]Write to MH i2c: E2 0D 00 8A 22 80 0D 02 02 05 00 54 68 D2 F2 D2 00 00 82 [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:02]Read from MH i2c: E2 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 [07:38:02]MH_I2C_Read... [07:38:02]Read from MH i2c: E2 03 00 8A 22 00 90 00 20 [07:38:02]RAPDU: 90 00 [07:38:02]wFMCommunicate OK [07:38:02]wFMCommunicate request_size=4 [07:38:02]MH_SAM_APDU [07:38:02]CAPDU: 80 0D 03 02 [07:38:02]Write to MH i2c: E2 08 00 8B 22 80 0D 03 02 00 00 00 00 28 [07:38:02]Write i2c OK [07:38:02]MH_I2C_Read... [07:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:03]Read from MH i2c: E2 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 0B 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 0B 00 8B 22 00 65 F1 93 BD 58 A8 55 93 90 00 B7 [07:38:03]RAPDU: 65 F1 93 BD 58 A8 55 93 90 00 [07:38:03]wFMCommunicate OK [07:38:03]SAM_PROTO_SignData done [07:38:03]FM_MakeSignedData done [07:38:03]CreateOFDProtocolMessage [07:38:03]wFMCommunicate request_size=4 [07:38:03]MH_SAM_APDU [07:38:03]CAPDU: 80 11 00 00 [07:38:03]Write to MH i2c: E2 08 00 8C 22 80 11 00 00 00 00 00 00 28 [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:03]Read from MH i2c: E2 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 17 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: E2 17 00 8C 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [07:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:38:03]wFMCommunicate OK [07:38:03]CreateOFDProtocolMessage done [07:38:03]OFDSenderStorePacket 188073 [07:38:03]StoreOFDPacket docnum=188073 [07:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 08 07 01 25 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DE 02 00 35 04 06 00 07 54 68 D2 F2 D2 65 F1 93 BD 58 A8 55 93 [07:38:03]CheckFolder [07:38:03]dirname=/storage/ofd_packets [07:38:03]CheckFolder done [07:38:03]ProducePacketName [07:38:03]name=ofd_packets/00188073 [07:38:03]NVStorageSaveData ofd_packets/00188073 [07:38:03]File name is /storage/ofd_packets/00188073 [07:38:03]Write 301 bytes [07:38:03]NVStorageSaveData done [07:38:03]OFDSenderStorePacket done [07:38:03]KKMCreateOFDPacket done [07:38:03]NVStorageSaveData kkm_last_timestamp [07:38:03]File name is /storage/kkm_last_timestamp [07:38:03]Write 4 bytes [07:38:03]NVStorageSaveData done [07:38:03]ExternCall_PrintAddStr [07:38:03]wPrintStart [07:38:03]Write to MH i2c: 01 00 00 8D 22 AF [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 07 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 07 00 8D 22 00 00 00 00 00 FF 0F C4 [07:38:03]RasterBufferAndPrint [07:38:03]line Счет N : (1)210126 [07:38:03]line ИНН: 02508201610067 [07:38:03]line Контрольно-Кассовый Чек [07:38:03]line ПРОДАЖА [07:38:03]line ТРК (МРК, ГНК) : 42 [07:38:03]line Товар: 2710124130 [07:38:03]line Аи-92-К-3 [07:38:03]line 7.480 * 66.90 [07:38:03]line = 500.41 [07:38:03]line НДС 12% НСП 1% [07:38:03]line > о реализуемом товаре [07:38:03]line ОКРУГЛЕНИЕ: -0.41 [07:38:03]line ИТОГО: 500.00 [07:38:03]line Внесено: 500.00 [07:38:03]line СДАЧА: 0.00 [07:38:03]line НСП 1% : 4.43 [07:38:03]line НДС 12% : 53.14 [07:38:03]line Наличными: 500.00 [07:38:03]line Безнал.: 0.00 [07:38:03]line Место: АЗС № 86 "Партнер Нефть" [07:38:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:38:03]line СНО: Общий режим [07:38:03]line Чек 102 22.10.2024 07:38 [07:38:03]line Смена: 461 ФФД: 1.0 [07:38:03]line ЗНМ: 0300000155 [07:38:03]line РНМ: 0000000000100030 [07:38:03]line Версия ККМ: 001 [07:38:03]line ФМ: 0000000000965340 [07:38:03]line ФД: 188073 [07:38:03]line ФПД: 8059117302482 [07:38:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188073&fm=8059117302482&tin=02508201610067®Number=0000000000100030&sum=50000 [07:38:03]written 0, free lines is 4095 [07:38:03]OFD Sender: Processing packet 188073 [packets to send 1062, broken 1061] [07:38:03]ProducePacketName [07:38:03]name=ofd_packets/00188073 [07:38:03]OFD Sender: To server: pG, [07:38:03]CommunicateWithHost lk.salyk.kg:30040 [07:38:03]ConnectInit lk.salyk.kg [07:38:03]Connected sock=8 [07:38:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 08 07 01 25 09 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 00 00 00 F4 03 04 00 5B 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DE 02 00 35 04 06 00 07 54 68 D2 F2 D2 65 F1 93 BD 58 A8 55 93 [07:38:03]Write to MH i2c: 01 00 00 B8 22 DA [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 07 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: 01 07 00 B8 22 00 00 00 00 00 50 0C 3D [07:38:03]RasterBufferAndPrint [07:38:03]line [07:38:03]line [07:38:03]line [07:38:03]line [07:38:03]line [07:38:03]written 0, free lines is 3157 [07:38:03]MH_Cut [07:38:03]Write to MH i2c: D1 01 00 BF 22 01 B3 [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: D1 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: D1 01 00 [07:38:03]MH_I2C_Read... [07:38:03]Read from MH i2c: D1 01 00 BF 22 00 B2 [07:38:03]Write to MH i2c: 01 00 00 C0 22 E2 [07:38:03]Write i2c OK [07:38:03]MH_I2C_Read... [07:38:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BD F4 47 00 18 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 39 36 35 33 34 30 10 04 04 00 A9 DE 02 00 F4 03 04 00 49 00 17 67 B6 04 01 00 00 8E 0C 55 76 9C 6D EF B4 [07:38:03]CommunicateWithHost err = 0 [07:38:03]CheckOFDResponse [07:38:03]1017 (14) - 77093643461234 [07:38:03]1041 (16) - 0000000000965340 [07:38:03]1040 (4) - 188073 [07:38:03]1012 (4) - 22.10.2024 01:30 [07:38:03]1206 (1) - 0 [07:38:03]OFD Sender: Remove packet 188073 [07:38:03]ProducePacketName [07:38:03]name=ofd_packets/00188073 [07:38:03]NVStorageDeleteData [07:38:04]OFD Sender: No OFD packet to send [07:38:04]*** Cut start [07:38:04]*** Partial cut [07:38:04]*** CUTSNS_PIN = 1 [07:38:04]*** CUTSNS_PIN = 0 [07:38:05]*** Brake cut motor [07:38:05]Read from MH i2c: 01 [07:38:05]MH_I2C_Read... [07:38:05]*** Stop cut motor [07:38:05]*** Cut end [07:38:05]Read from MH i2c: 01 07 00 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: 01 07 00 C0 22 00 00 00 00 00 FF 0F F7 [07:38:05]process_action close_receipt done [07:38:05]requested_data is exist [07:38:05]produce_requested_data [07:38:05]requested_item fm.sn is exist - process it [07:38:05]wFMCommunicate request_size=4 [07:38:05]MH_SAM_APDU [07:38:05]CAPDU: 80 11 00 00 [07:38:05]Write to MH i2c: E2 08 00 C1 22 80 11 00 00 00 00 00 00 5D [07:38:05]Write i2c OK [07:38:05]MH_I2C_Read... [07:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:05]Read from MH i2c: E2 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 17 00 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 17 00 C1 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [07:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:38:05]wFMCommunicate OK [07:38:05]requested_item fd.num is exist - process it [07:38:05]SAM_PROTO_GetFieldsCounters [07:38:05]wFMCommunicate request_size=4 [07:38:05]MH_SAM_APDU [07:38:05]CAPDU: 80 13 00 00 [07:38:05]Write to MH i2c: E2 08 00 C2 22 80 13 00 00 00 00 00 00 60 [07:38:05]Write i2c OK [07:38:05]MH_I2C_Read... [07:38:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:05]Read from MH i2c: E2 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 62 00 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 62 00 C2 22 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DE 02 00 0E 04 04 00 CD 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 F0 [07:38:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DE 02 00 0E 04 04 00 CD 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 [07:38:05]wFMCommunicate OK [07:38:05]SAM_PROTO_GetFieldsCounters done [07:38:05]requested_item shift.num is exist - process it [07:38:05]requested_item shift.opened is exist - process it [07:38:05]req_shift_opened [07:38:05]FM_GetShiftState [07:38:05]SAM_PROTO_GetShiftState [07:38:05]wFMCommunicate request_size=4 [07:38:05]MH_SAM_APDU [07:38:05]CAPDU: 80 13 01 00 [07:38:05]Write to MH i2c: E2 08 00 C3 22 80 13 01 00 00 00 00 00 62 [07:38:05]Write i2c OK [07:38:05]MH_I2C_Read... [07:38:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:05]Read from MH i2c: E2 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 0E 00 [07:38:05]MH_I2C_Read... [07:38:05]Read from MH i2c: E2 0E 00 C3 22 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 57 [07:38:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:38:05]wFMCommunicate OK [07:38:05]SAM_PROTO_GetShiftState done [07:38:05]FM_GetShiftState done [07:38:05]req_shift_opened done [07:38:05]requested_item shift.open_date is exist - process it [07:38:05]req_shift_open_date [07:38:05]req_shift_open_date done [07:38:05]produce_requested_data done [07:38:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188073,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:38:05]process_action_free close_receipt [07:38:05]json_value_free [07:38:05]json_value_free done [07:38:05]process_json_proto returns [07:38:05]Send response to host [07:38:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188073,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:38:05]free response buf [07:38:05]execute_script done [07:38:05]execute_script returns [07:38:05]free content buf [07:38:05]Sock 9.Close socket [07:38:05]Sock 9.Thread stoped [07:38:09]OFD Sender: No OFD packet to send [07:38:14]OFD Sender: No OFD packet to send [07:38:19]OFD Sender: No OFD packet to send [07:38:24]OFD Sender: No OFD packet to send [07:38:29]OFD Sender: No OFD packet to send [07:38:34]OFD Sender: No OFD packet to send [07:38:39]OFD Sender: No OFD packet to send [07:38:44]OFD Sender: No OFD packet to send [07:38:47]accept exits with 10 [07:38:47]New connection [07:38:47]New thread 3067198820 created [07:38:47]Thread 3067055460 joined [07:38:47]Waiting for new connection... [07:38:47] Sock 10.Parse request [07:38:47]Sock 10.Check first char [07:38:47]Sock 10.First char is OK [07:38:47]request: POST /json_proto HTTP/1.0 [07:38:47]Method: POST [07:38:47]URL: /json_proto [07:38:47]Method is POST - this is cgi request [07:38:47]url: /json_proto [07:38:47]query_string will be loaded in cgi processing [07:38:47]execute_cgi json_proto POST (null) [07:38:47]execute_cgi path=json_proto method=POST [07:38:47]POST find Content-Length [07:38:47]Host: 172.17.42.131:8080 [07:38:47]Content-Length: 688 [07:38:47]Content-Type: application/json [07:38:47] [07:38:47]POST finish read [07:38:47]Found Content-Length = 688 [07:38:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:47]execute_script... [07:38: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)210125", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:38:47]POST & json_proto [07:38:47]process_json_proto [07:38:47]json parsed OK: [07:38:47]protocol is kg_v1.0 [07:38:47]action value=close_receipt [07:38:47]process_action close_receipt [07:38:47]cmd_close_receipt [07:38:47]MH_GetDate [07:38:47]Write to MH i2c: F0 00 00 C4 22 D5 [07:38:47]Write i2c OK [07:38:47]MH_I2C_Read... [07:38:47]Read from MH i2c: F0 [07:38:47]MH_I2C_Read... [07:38:47]Read from MH i2c: F0 09 00 [07:38:47]MH_I2C_Read... [07:38:47]Read from MH i2c: F0 09 00 C4 22 00 8A 56 17 67 A0 18 CA 66 24 [07:38:47]GetLastDocTimeStamp 1729582683 [07:38:47]current date 1729582730 [07:38:47]FM_GetShiftState [07:38:47]SAM_PROTO_GetShiftState [07:38:47]wFMCommunicate request_size=4 [07:38:47]MH_SAM_APDU [07:38:47]CAPDU: 80 13 01 00 [07:38:47]Write to MH i2c: E2 08 00 C5 22 80 13 01 00 00 00 00 00 64 [07:38:47]Write i2c OK [07:38:47]MH_I2C_Read... [07:38:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:47]Read from MH i2c: E2 [07:38:47]MH_I2C_Read... [07:38:47]Read from MH i2c: E2 0E 00 [07:38:47]MH_I2C_Read... [07:38:47]Read from MH i2c: E2 0E 00 C5 22 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 59 [07:38:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:38:48]wFMCommunicate OK [07:38:48]SAM_PROTO_GetShiftState done [07:38:48]FM_GetShiftState done [07:38:48]opened in 1729556094 [07:38:48]opened+sec_in_day 1729642494 [07:38:48]quantity*price = 250050 [07:38:48]sum+1 = 250052 [07:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 103 22.10.2024 07:38 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188074 ФПД: 253425282605564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188074&fm=253425282605564&tin=02508201610067®Number=0000000000100030&sum=250000 [07:38:49]StoreToDocumentArchive [07:38:49]shift 461 fd 188074 [07:38:49]save to /storage/0461/doc_00188074 [07:38:49]save last doc name /storage/0461/doc_00188074 to /storage/kkm_last_doc_name [07:38:49]save OK [07:38:49]Clear old archive folders... [07:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:38:49]tlvbuf is 01BB83D0 [07:38:49]SAM_PROTO_ClearQueue [07:38:49]wFMCommunicate request_size=4 [07:38:49]MH_SAM_APDU [07:38:49]CAPDU: 80 09 00 00 [07:38:49]Write to MH i2c: E2 08 00 D2 22 80 09 00 00 00 00 00 00 66 [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:38:49]Read from MH i2c: E2 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 D2 22 00 90 00 68 [07:38:49]RAPDU: 90 00 [07:38:49]wFMCommunicate OK [07:38:49]SAM_PROTO_ClearQueue done [07:38:49]KKMCreateOFDPacket [07:38:49]OFDProtocolAddRootSTLVToBuf [07:38:49]FM_MakeSignedData [07:38:49]FM_MakeSignedData [07:38:49]SAM_PROTO_SignData [07:38:49]wFMCommunicate request_size=4 [07:38:49]MH_SAM_APDU [07:38:49]CAPDU: 80 0D 01 02 [07:38:49]Write to MH i2c: E2 08 00 D3 22 80 0D 01 02 00 00 00 00 6E [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:38:49]Read from MH i2c: E2 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 D3 22 00 90 00 69 [07:38:49]RAPDU: 90 00 [07:38:49]wFMCommunicate OK [07:38:49]wFMCommunicate request_size=255 [07:38:49]MH_SAM_APDU [07:38:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DE 02 [07:38:49]Write to MH i2c: E2 02 01 D4 22 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DE 02 00 00 7A [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:49]Read from MH i2c: E2 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 D4 22 00 90 00 6A [07:38:49]RAPDU: 90 00 [07:38:49]wFMCommunicate OK [07:38:49]wFMCommunicate request_size=16 [07:38:49]MH_SAM_APDU [07:38:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E6 7D 2B F2 61 FC [07:38:49]Write to MH i2c: E2 13 00 D5 22 80 0D 02 02 0B 00 00 35 04 06 00 E6 7D 2B F2 61 FC 00 00 A3 [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:38:49]OFD Sender: No OFD packet to send [07:38:49]Read from MH i2c: E2 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 03 00 D5 22 00 90 00 6B [07:38:49]RAPDU: 90 00 [07:38:49]wFMCommunicate OK [07:38:49]wFMCommunicate request_size=4 [07:38:49]MH_SAM_APDU [07:38:49]CAPDU: 80 0D 03 02 [07:38:49]Write to MH i2c: E2 08 00 D6 22 80 0D 03 02 00 00 00 00 73 [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:38:49]Read from MH i2c: E2 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 0B 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 0B 00 D6 22 00 5B 9A 60 51 52 62 99 B6 90 00 1D [07:38:49]RAPDU: 5B 9A 60 51 52 62 99 B6 90 00 [07:38:49]wFMCommunicate OK [07:38:49]SAM_PROTO_SignData done [07:38:49]FM_MakeSignedData done [07:38:49]CreateOFDProtocolMessage [07:38:49]wFMCommunicate request_size=4 [07:38:49]MH_SAM_APDU [07:38:49]CAPDU: 80 11 00 00 [07:38:49]Write to MH i2c: E2 08 00 D7 22 80 11 00 00 00 00 00 00 73 [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:49]Read from MH i2c: E2 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 17 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: E2 17 00 D7 22 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [07:38:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:38:49]wFMCommunicate OK [07:38:49]CreateOFDProtocolMessage done [07:38:49]OFDSenderStorePacket 188074 [07:38:49]StoreOFDPacket docnum=188074 [07:38:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7D E7 0D 01 1A 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DE 02 00 35 04 06 00 E6 7D 2B F2 61 FC 5B 9A 60 51 52 62 99 B6 [07:38:49]CheckFolder [07:38:49]dirname=/storage/ofd_packets [07:38:49]CheckFolder done [07:38:49]ProducePacketName [07:38:49]name=ofd_packets/00188074 [07:38:49]NVStorageSaveData ofd_packets/00188074 [07:38:49]File name is /storage/ofd_packets/00188074 [07:38:49]Write 307 bytes [07:38:49]NVStorageSaveData done [07:38:49]OFDSenderStorePacket done [07:38:49]KKMCreateOFDPacket done [07:38:49]NVStorageSaveData kkm_last_timestamp [07:38:49]File name is /storage/kkm_last_timestamp [07:38:49]Write 4 bytes [07:38:49]NVStorageSaveData done [07:38:49]ExternCall_PrintAddStr [07:38:49]wPrintStart [07:38:49]Write to MH i2c: 01 00 00 D8 22 FA [07:38:49]Write i2c OK [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: 01 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: 01 07 00 [07:38:49]MH_I2C_Read... [07:38:49]Read from MH i2c: 01 07 00 D8 22 00 00 00 00 00 FF 0F 0F [07:38:49]RasterBufferAndPrint [07:38:49]line Счет N : (1)210125 [07:38:49]line ИНН: 02508201610067 [07:38:49]line Контрольно-Кассовый Чек [07:38:49]line ПРОДАЖА [07:38:49]line ТРК (МРК, ГНК) : 11 [07:38:49]line Товар: 2710194210 [07:38:49]line D-ENERGY ДТ-К-5 [07:38:49]line 32.390 * 77.20 [07:38:49]line = 2500.51 [07:38:49]line НДС 12% НСП 1% [07:38:49]line > о реализуемом товаре [07:38:49]line ОКРУГЛЕНИЕ: -0.51 [07:38:49]line ИТОГО: 2500.00 [07:38:49]line Внесено: 2500.00 [07:38:49]line СДАЧА: 0.00 [07:38:49]line НСП 1% : 22.13 [07:38:49]line НДС 12% : 265.54 [07:38:49]line Наличными: 2500.00 [07:38:49]line Безнал.: 0.00 [07:38:49]line Место: АЗС № 86 "Партнер Нефть" [07:38:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:38:49]line СНО: Общий режим [07:38:49]line Чек 103 22.10.2024 07:38 [07:38:49]line Смена: 461 ФФД: 1.0 [07:38:49]line ЗНМ: 0300000155 [07:38:49]line РНМ: 0000000000100030 [07:38:49]line Версия ККМ: 001 [07:38:49]line ФМ: 0000000000965340 [07:38:49]line ФД: 188074 [07:38:49]line ФПД: 253425282605564 [07:38:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188074&fm=253425282605564&tin=02508201610067®Number=0000000000100030&sum=250000 [07:38:49]written 0, free lines is 4095 [07:38:49]OFD Sender: Processing packet 188074 [packets to send 1062, broken 1061] [07:38:49]ProducePacketName [07:38:49]name=ofd_packets/00188074 [07:38:49]OFD Sender: To server: pG, [07:38:49]CommunicateWithHost lk.salyk.kg:30040 [07:38:49]ConnectInit lk.salyk.kg [07:38:50]Connected sock=9 [07:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7D E7 0D 01 1A 5C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 8A 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DE 02 00 35 04 06 00 E6 7D 2B F2 61 FC 5B 9A 60 51 52 62 99 B6 [07:38:50]Write to MH i2c: 01 00 00 03 23 26 [07:38:50]Write i2c OK [07:38:50]MH_I2C_Read... [07:38:50]Read from MH i2c: 01 [07:38:50]MH_I2C_Read... [07:38:50]Read from MH i2c: 01 07 00 [07:38:50]MH_I2C_Read... [07:38:50]Read from MH i2c: 01 07 00 03 23 00 00 00 00 00 50 0C 89 [07:38:50]RasterBufferAndPrint [07:38:50]line [07:38:50]line [07:38:50]line [07:38:50]line [07:38:50]line [07:38:50]written 0, free lines is 3157 [07:38:50]MH_Cut [07:38:50]Write to MH i2c: D1 01 00 0A 23 01 FF [07:38:50]Write i2c OK [07:38:50]MH_I2C_Read... [07:38:50]Read from MH i2c: D1 [07:38:50]MH_I2C_Read... [07:38:50]Read from MH i2c: D1 01 00 [07:38:50]MH_I2C_Read... [07:38:50]Read from MH i2c: D1 01 00 0A 23 00 FE [07:38:50]Write to MH i2c: 01 00 00 0B 23 2E [07:38:50]Write i2c OK [07:38:50]MH_I2C_Read... [07:38:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 3C 47 00 35 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DE 02 00 F4 03 04 00 78 00 17 67 B6 04 01 00 00 B9 83 12 EF BF 26 10 A7 [07:38:50]CommunicateWithHost err = 0 [07:38:50]CheckOFDResponse [07:38:50]1017 (14) - 77093643461234 [07:38:50]1041 (16) - 0000000000965340 [07:38:50]1040 (4) - 188074 [07:38:50]1012 (4) - 22.10.2024 01:31 [07:38:50]1206 (1) - 0 [07:38:50]OFD Sender: Remove packet 188074 [07:38:50]ProducePacketName [07:38:50]name=ofd_packets/00188074 [07:38:50]NVStorageDeleteData [07:38:51]OFD Sender: No OFD packet to send [07:38:51]*** Cut start [07:38:51]*** Partial cut [07:38:51]*** CUTSNS_PIN = 1 [07:38:51]*** CUTSNS_PIN = 0 [07:38:51]*** Brake cut motor [07:38:52]Read from MH i2c: 01 [07:38:52]MH_I2C_Read... [07:38:52]*** Stop cut motor [07:38:52]*** Cut end [07:38:52]Read from MH i2c: 01 07 00 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: 01 07 00 0B 23 00 00 00 00 00 FF 0F 43 [07:38:52]process_action close_receipt done [07:38:52]requested_data is exist [07:38:52]produce_requested_data [07:38:52]requested_item fm.sn is exist - process it [07:38:52]wFMCommunicate request_size=4 [07:38:52]MH_SAM_APDU [07:38:52]CAPDU: 80 11 00 00 [07:38:52]Write to MH i2c: E2 08 00 0C 23 80 11 00 00 00 00 00 00 A9 [07:38:52]Write i2c OK [07:38:52]MH_I2C_Read... [07:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:38:52]Read from MH i2c: E2 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: E2 17 00 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: E2 17 00 0C 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [07:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:38:52]wFMCommunicate OK [07:38:52]requested_item fd.num is exist - process it [07:38:52]SAM_PROTO_GetFieldsCounters [07:38:52]wFMCommunicate request_size=4 [07:38:52]MH_SAM_APDU [07:38:52]CAPDU: 80 13 00 00 [07:38:52]Write to MH i2c: E2 08 00 0D 23 80 13 00 00 00 00 00 00 AC [07:38:52]Write i2c OK [07:38:52]MH_I2C_Read... [07:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:38:52]Read from MH i2c: E2 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: E2 62 00 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: E2 62 00 0D 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DE 02 00 0E 04 04 00 CD 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 40 [07:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 67 00 00 00 5E 04 04 00 67 00 00 00 57 04 04 00 68 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:38:52]wFMCommunicate OK [07:38:52]SAM_PROTO_GetFieldsCounters done [07:38:52]requested_item shift.num is exist - process it [07:38:52]requested_item shift.opened is exist - process it [07:38:52]req_shift_opened [07:38:52]FM_GetShiftState [07:38:52]SAM_PROTO_GetShiftState [07:38:52]wFMCommunicate request_size=4 [07:38:52]MH_SAM_APDU [07:38:52]CAPDU: 80 13 01 00 [07:38:52]Write to MH i2c: E2 08 00 0E 23 80 13 01 00 00 00 00 00 AE [07:38:52]Write i2c OK [07:38:52]MH_I2C_Read... [07:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:38:52]Read from MH i2c: E2 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: E2 0E 00 [07:38:52]MH_I2C_Read... [07:38:52]Read from MH i2c: E2 0E 00 0E 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A3 [07:38:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:38:52]wFMCommunicate OK [07:38:52]SAM_PROTO_GetShiftState done [07:38:52]FM_GetShiftState done [07:38:52]req_shift_opened done [07:38:52]requested_item shift.open_date is exist - process it [07:38:52]req_shift_open_date [07:38:52]req_shift_open_date done [07:38:52]produce_requested_data done [07:38:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188074,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:38:52]process_action_free close_receipt [07:38:52]json_value_free [07:38:52]json_value_free done [07:38:52]process_json_proto returns [07:38:52]Send response to host [07:38:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188074,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:38:52]free response buf [07:38:52]execute_script done [07:38:52]execute_script returns [07:38:52]free content buf [07:38:52]Sock 10.Close socket [07:38:52]Sock 10.Thread stoped [07:38:56]OFD Sender: No OFD packet to send [07:39:01]OFD Sender: No OFD packet to send [07:39:06]OFD Sender: No OFD packet to send [07:39:11]OFD Sender: No OFD packet to send [07:39:16]OFD Sender: No OFD packet to send [07:39:21]OFD Sender: No OFD packet to send [07:39:26]OFD Sender: No OFD packet to send [07:39:31]OFD Sender: No OFD packet to send [07:39:36]OFD Sender: No OFD packet to send [07:39:41]OFD Sender: No OFD packet to send [07:39:46]OFD Sender: No OFD packet to send [07:39:51]OFD Sender: No OFD packet to send [07:39:54]accept exits with 8 [07:39:54]New connection [07:39:54]New thread 3067055460 created [07:39:54]Thread 3067198820 joined [07:39:54]Waiting for new connection... [07:39:54] Sock 8.Parse request [07:39:54]Sock 8.Check first char [07:39:54]Sock 8.First char is OK [07:39:54]request: POST /json_proto HTTP/1.0 [07:39:54]Method: POST [07:39:54]URL: /json_proto [07:39:54]Method is POST - this is cgi request [07:39:54]url: /json_proto [07:39:54]query_string will be loaded in cgi processing [07:39:54]execute_cgi json_proto POST (null) [07:39:54]execute_cgi path=json_proto method=POST [07:39:54]POST find Content-Length [07:39:54]Host: 172.17.42.131:8080 [07:39:54]Content-Length: 677 [07:39:54]Content-Type: application/json [07:39:54] [07:39:54]POST finish read [07:39:54]Found Content-Length = 677 [07:39:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [07:39:54]execute_script... [07:39:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210128", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [07:39:54]POST & json_proto [07:39:54]process_json_proto [07:39:54]json parsed OK: [07:39:54]protocol is kg_v1.0 [07:39:54]action value=close_receipt [07:39:54]process_action close_receipt [07:39:54]cmd_close_receipt [07:39:54]MH_GetDate [07:39:54]Write to MH i2c: F0 00 00 0F 23 21 [07:39:54]Write i2c OK [07:39:54]MH_I2C_Read... [07:39:54]Read from MH i2c: F0 [07:39:54]MH_I2C_Read... [07:39:54]Read from MH i2c: F0 09 00 [07:39:54]MH_I2C_Read... [07:39:54]Read from MH i2c: F0 09 00 0F 23 00 CC 56 17 67 A0 18 CA 66 B2 [07:39:54]GetLastDocTimeStamp 1729582730 [07:39:54]current date 1729582796 [07:39:54]FM_GetShiftState [07:39:54]SAM_PROTO_GetShiftState [07:39:54]wFMCommunicate request_size=4 [07:39:54]MH_SAM_APDU [07:39:54]CAPDU: 80 13 01 00 [07:39:54]Write to MH i2c: E2 08 00 10 23 80 13 01 00 00 00 00 00 B0 [07:39:54]Write i2c OK [07:39:54]MH_I2C_Read... [07:39:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:54]Read from MH i2c: E2 [07:39:54]MH_I2C_Read... [07:39:54]Read from MH i2c: E2 0E 00 [07:39:54]MH_I2C_Read... [07:39:54]Read from MH i2c: E2 0E 00 10 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A5 [07:39:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:39:54]wFMCommunicate OK [07:39:54]SAM_PROTO_GetShiftState done [07:39:54]FM_GetShiftState done [07:39:54]opened in 1729556094 [07:39:54]opened+sec_in_day 1729642494 [07:39:54]quantity*price = 50010 [07:39:54]sum+1 = 50012 [07:39:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 104 22.10.2024 07:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188075 ФПД: 151489282530054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188075&fm=151489282530054&tin=02508201610067®Number=0000000000100030&sum=50000 [07:39:55]StoreToDocumentArchive [07:39:55]shift 461 fd 188075 [07:39:55]save to /storage/0461/doc_00188075 [07:39:55]save last doc name /storage/0461/doc_00188075 to /storage/kkm_last_doc_name [07:39:55]save OK [07:39:55]Clear old archive folders... [07:39:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:39:55]tlvbuf is 01BAD5A0 [07:39:55]SAM_PROTO_ClearQueue [07:39:55]wFMCommunicate request_size=4 [07:39:55]MH_SAM_APDU [07:39:55]CAPDU: 80 09 00 00 [07:39:55]Write to MH i2c: E2 08 00 1D 23 80 09 00 00 00 00 00 00 B2 [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:39:55]Read from MH i2c: E2 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 1D 23 00 90 00 B4 [07:39:55]RAPDU: 90 00 [07:39:55]wFMCommunicate OK [07:39:55]SAM_PROTO_ClearQueue done [07:39:55]KKMCreateOFDPacket [07:39:55]OFDProtocolAddRootSTLVToBuf [07:39:55]FM_MakeSignedData [07:39:55]FM_MakeSignedData [07:39:55]SAM_PROTO_SignData [07:39:55]wFMCommunicate request_size=4 [07:39:55]MH_SAM_APDU [07:39:55]CAPDU: 80 0D 01 02 [07:39:55]Write to MH i2c: E2 08 00 1E 23 80 0D 01 02 00 00 00 00 BA [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:39:55]Read from MH i2c: E2 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 1E 23 00 90 00 B5 [07:39:55]RAPDU: 90 00 [07:39:55]wFMCommunicate OK [07:39:55]wFMCommunicate request_size=255 [07:39:55]MH_SAM_APDU [07:39:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 CC 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DE 02 00 35 04 06 00 89 [07:39:55]Write to MH i2c: E2 02 01 1F 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 68 00 00 00 F4 03 04 00 CC 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DE 02 00 35 04 06 00 89 00 00 EF [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:55]Read from MH i2c: E2 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 1F 23 00 90 00 B6 [07:39:55]RAPDU: 90 00 [07:39:55]wFMCommunicate OK [07:39:55]wFMCommunicate request_size=10 [07:39:55]MH_SAM_APDU [07:39:55]CAPDU: 80 0D 02 02 05 C7 58 DF 5B 06 [07:39:55]Write to MH i2c: E2 0D 00 20 23 80 0D 02 02 05 00 C7 58 DF 5B 06 00 00 26 [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:39:55]Read from MH i2c: E2 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 03 00 20 23 00 90 00 B7 [07:39:55]RAPDU: 90 00 [07:39:55]wFMCommunicate OK [07:39:55]wFMCommunicate request_size=4 [07:39:55]MH_SAM_APDU [07:39:55]CAPDU: 80 0D 03 02 [07:39:55]Write to MH i2c: E2 08 00 21 23 80 0D 03 02 00 00 00 00 BF [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:39:55]Read from MH i2c: E2 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 0B 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 0B 00 21 23 00 57 1A 8C C6 66 C7 C2 E5 90 00 57 [07:39:55]RAPDU: 57 1A 8C C6 66 C7 C2 E5 90 00 [07:39:55]wFMCommunicate OK [07:39:55]SAM_PROTO_SignData done [07:39:55]FM_MakeSignedData done [07:39:55]CreateOFDProtocolMessage [07:39:55]wFMCommunicate request_size=4 [07:39:55]MH_SAM_APDU [07:39:55]CAPDU: 80 11 00 00 [07:39:55]Write to MH i2c: E2 08 00 22 23 80 11 00 00 00 00 00 00 BF [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:55]Read from MH i2c: E2 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 17 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: E2 17 00 22 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [07:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:39:55]wFMCommunicate OK [07:39:55]CreateOFDProtocolMessage done [07:39:55]OFDSenderStorePacket 188075 [07:39:55]StoreOFDPacket docnum=188075 [07:39:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 9D 07 01 B0 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 CC 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DE 02 00 35 04 06 00 89 C7 58 DF 5B 06 57 1A 8C C6 66 C7 C2 E5 [07:39:55]CheckFolder [07:39:55]dirname=/storage/ofd_packets [07:39:55]CheckFolder done [07:39:55]ProducePacketName [07:39:55]name=ofd_packets/00188075 [07:39:55]NVStorageSaveData ofd_packets/00188075 [07:39:55]File name is /storage/ofd_packets/00188075 [07:39:55]Write 301 bytes [07:39:55]NVStorageSaveData done [07:39:55]OFDSenderStorePacket done [07:39:55]KKMCreateOFDPacket done [07:39:55]NVStorageSaveData kkm_last_timestamp [07:39:55]File name is /storage/kkm_last_timestamp [07:39:55]Write 4 bytes [07:39:55]NVStorageSaveData done [07:39:55]ExternCall_PrintAddStr [07:39:55]wPrintStart [07:39:55]Write to MH i2c: 01 00 00 23 23 46 [07:39:55]Write i2c OK [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: 01 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: 01 07 00 [07:39:55]MH_I2C_Read... [07:39:55]Read from MH i2c: 01 07 00 23 23 00 00 00 00 00 FF 0F 5B [07:39:55]RasterBufferAndPrint [07:39:55]line Счет N : (1)210128 [07:39:55]line ИНН: 02508201610067 [07:39:55]line Контрольно-Кассовый Чек [07:39:55]line ПРОДАЖА [07:39:55]line ТРК (МРК, ГНК) : 13 [07:39:55]line Товар: 2710124500 [07:39:55]line Аи-95-К-3 [07:39:55]line 6.740 * 74.20 [07:39:55]line = 500.11 [07:39:55]line НДС 12% НСП 1% [07:39:55]line > о реализуемом товаре [07:39:55]line ОКРУГЛЕНИЕ: -0.11 [07:39:55]line ИТОГО: 500.00 [07:39:55]line Внесено: 500.00 [07:39:55]line СДАЧА: 0.00 [07:39:55]line НСП 1% : 4.43 [07:39:55]line НДС 12% : 53.11 [07:39:55]line Наличными: 500.00 [07:39:55]line Безнал.: 0.00 [07:39:55]line Место: АЗС № 86 "Партнер Нефть" [07:39:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:39:55]line СНО: Общий режим [07:39:55]line Чек 104 22.10.2024 07:39 [07:39:55]line Смена: 461 ФФД: 1.0 [07:39:55]line ЗНМ: 0300000155 [07:39:55]line РНМ: 0000000000100030 [07:39:55]line Версия ККМ: 001 [07:39:55]line ФМ: 0000000000965340 [07:39:55]line ФД: 188075 [07:39:55]line ФПД: 151489282530054 [07:39:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T073956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188075&fm=151489282530054&tin=02508201610067®Number=0000000000100030&sum=50000 [07:39:55]written 0, free lines is 4095 [07:39:55]OFD Sender: Processing packet 188075 [packets to send 1062, broken 1061] [07:39:55]ProducePacketName [07:39:55]name=ofd_packets/00188075 [07:39:55]OFD Sender: To server: pG, [07:39:55]CommunicateWithHost lk.salyk.kg:30040 [07:39:55]ConnectInit lk.salyk.kg [07:39:56]Connected sock=10 [07:39:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 9D 07 01 B0 D7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 68 00 00 00 F4 03 04 00 CC 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DE 02 00 35 04 06 00 89 C7 58 DF 5B 06 57 1A 8C C6 66 C7 C2 E5 [07:39:56]Write to MH i2c: 01 00 00 4E 23 71 [07:39:56]Write i2c OK [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: 01 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: 01 07 00 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: 01 07 00 4E 23 00 00 00 00 00 50 0C D4 [07:39:56]RasterBufferAndPrint [07:39:56]line [07:39:56]line [07:39:56]line [07:39:56]line [07:39:56]line [07:39:56]written 0, free lines is 3157 [07:39:56]MH_Cut [07:39:56]Write to MH i2c: D1 01 00 55 23 01 4A [07:39:56]Write i2c OK [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: D1 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: D1 01 00 [07:39:56]MH_I2C_Read... [07:39:56]Read from MH i2c: D1 01 00 55 23 00 49 [07:39:56]Write to MH i2c: 01 00 00 56 23 79 [07:39:56]Write i2c OK [07:39:56]MH_I2C_Read... [07:39:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A DF 47 00 8F 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DE 02 00 F4 03 04 00 BA 00 17 67 B6 04 01 00 00 1C C4 E1 66 82 99 A6 0E [07:39:56]CommunicateWithHost err = 0 [07:39:56]CheckOFDResponse [07:39:56]1017 (14) - 77093643461234 [07:39:56]1041 (16) - 0000000000965340 [07:39:56]1040 (4) - 188075 [07:39:56]1012 (4) - 22.10.2024 01:32 [07:39:56]1206 (1) - 0 [07:39:56]OFD Sender: Remove packet 188075 [07:39:56]ProducePacketName [07:39:56]name=ofd_packets/00188075 [07:39:56]NVStorageDeleteData [07:39:57]OFD Sender: No OFD packet to send [07:39:57]*** Cut start [07:39:57]*** Partial cut [07:39:57]*** CUTSNS_PIN = 1 [07:39:57]*** CUTSNS_PIN = 0 [07:39:57]*** Brake cut motor [07:39:58]Read from MH i2c: 01 [07:39:58]MH_I2C_Read... [07:39:58]*** Stop cut motor [07:39:58]*** Cut end [07:39:58]Read from MH i2c: 01 07 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: 01 07 00 56 23 00 00 00 00 00 FF 0F 8E [07:39:58]process_action close_receipt done [07:39:58]requested_data is exist [07:39:58]produce_requested_data [07:39:58]requested_item fm.sn is exist - process it [07:39:58]wFMCommunicate request_size=4 [07:39:58]MH_SAM_APDU [07:39:58]CAPDU: 80 11 00 00 [07:39:58]Write to MH i2c: E2 08 00 57 23 80 11 00 00 00 00 00 00 F4 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:39:58]Read from MH i2c: E2 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 17 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 17 00 57 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [07:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:39:58]wFMCommunicate OK [07:39:58]requested_item fd.num is exist - process it [07:39:58]SAM_PROTO_GetFieldsCounters [07:39:58]wFMCommunicate request_size=4 [07:39:58]MH_SAM_APDU [07:39:58]CAPDU: 80 13 00 00 [07:39:58]Write to MH i2c: E2 08 00 58 23 80 13 00 00 00 00 00 00 F7 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:39:58]Read from MH i2c: E2 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 62 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 62 00 58 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DE 02 00 0E 04 04 00 CD 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 8F [07:39:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DE 02 00 0E 04 04 00 CD 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 [07:39:58]wFMCommunicate OK [07:39:58]SAM_PROTO_GetFieldsCounters done [07:39:58]requested_item shift.num is exist - process it [07:39:58]requested_item shift.opened is exist - process it [07:39:58]req_shift_opened [07:39:58]FM_GetShiftState [07:39:58]SAM_PROTO_GetShiftState [07:39:58]wFMCommunicate request_size=4 [07:39:58]MH_SAM_APDU [07:39:58]CAPDU: 80 13 01 00 [07:39:58]Write to MH i2c: E2 08 00 59 23 80 13 01 00 00 00 00 00 F9 [07:39:58]Write i2c OK [07:39:58]MH_I2C_Read... [07:39:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:39:58]Read from MH i2c: E2 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 0E 00 [07:39:58]MH_I2C_Read... [07:39:58]Read from MH i2c: E2 0E 00 59 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EE [07:39:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:39:58]wFMCommunicate OK [07:39:58]SAM_PROTO_GetShiftState done [07:39:58]FM_GetShiftState done [07:39:58]req_shift_opened done [07:39:58]requested_item shift.open_date is exist - process it [07:39:58]req_shift_open_date [07:39:58]req_shift_open_date done [07:39:58]produce_requested_data done [07:39:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188075,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:39:58]process_action_free close_receipt [07:39:58]json_value_free [07:39:58]json_value_free done [07:39:58]process_json_proto returns [07:39:58]Send response to host [07:39:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188075,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:39:58]free response buf [07:39:58]execute_script done [07:39:58]execute_script returns [07:39:58]free content buf [07:39:58]Sock 8.Close socket [07:39:58]Sock 8.Thread stoped [07:40:02]OFD Sender: No OFD packet to send [07:40:07]OFD Sender: No OFD packet to send [07:40:12]OFD Sender: No OFD packet to send [07:40:17]OFD Sender: No OFD packet to send [07:40:18]accept exits with 9 [07:40:18]New connection [07:40:18]New thread 3067198820 created [07:40:18]Thread 3067055460 joined [07:40:18]Waiting for new connection... [07:40:18] Sock 9.Parse request [07:40:18]Sock 9.Check first char [07:40:18]Sock 9.First char is OK [07:40:18]request: POST /json_proto HTTP/1.0 [07:40:18]Method: POST [07:40:18]URL: /json_proto [07:40:18]Method is POST - this is cgi request [07:40:18]url: /json_proto [07:40:18]query_string will be loaded in cgi processing [07:40:18]execute_cgi json_proto POST (null) [07:40:18]execute_cgi path=json_proto method=POST [07:40:18]POST find Content-Length [07:40:18]Host: 172.17.42.131:8080 [07:40:18]Content-Length: 769 [07:40:18]Content-Type: application/json [07:40:18] [07:40:18]POST finish read [07:40:18]Found Content-Length = 769 [07:40:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:18]execute_script... [07:40: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)210127", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:40:18]POST & json_proto [07:40:18]process_json_proto [07:40:18]json parsed OK: [07:40:18]protocol is kg_v1.0 [07:40:18]action value=close_receipt [07:40:18]process_action close_receipt [07:40:18]cmd_close_receipt [07:40:18]MH_GetDate [07:40:18]Write to MH i2c: F0 00 00 5A 23 6C [07:40:18]Write i2c OK [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: F0 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: F0 09 00 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: F0 09 00 5A 23 00 E4 56 17 67 A0 18 CA 66 15 [07:40:18]GetLastDocTimeStamp 1729582796 [07:40:18]current date 1729582820 [07:40:18]FM_GetShiftState [07:40:18]SAM_PROTO_GetShiftState [07:40:18]wFMCommunicate request_size=4 [07:40:18]MH_SAM_APDU [07:40:18]CAPDU: 80 13 01 00 [07:40:18]Write to MH i2c: E2 08 00 5B 23 80 13 01 00 00 00 00 00 FB [07:40:18]Write i2c OK [07:40:18]MH_I2C_Read... [07:40:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:18]Read from MH i2c: E2 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: E2 0E 00 [07:40:18]MH_I2C_Read... [07:40:18]Read from MH i2c: E2 0E 00 5B 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F0 [07:40:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:40:18]wFMCommunicate OK [07:40:18]SAM_PROTO_GetShiftState done [07:40:18]FM_GetShiftState done [07:40:18]opened in 1729556094 [07:40:18]opened+sec_in_day 1729642494 [07:40:18]quantity*price = 100015 [07:40:18]sum+1 = 100017 [07:40:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 105 22.10.2024 07:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188076 ФПД: 57590659574350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188076&fm=57590659574350&tin=02508201610067®Number=0000000000100030&sum=100016 [07:40:19]StoreToDocumentArchive [07:40:19]shift 461 fd 188076 [07:40:19]save to /storage/0461/doc_00188076 [07:40:19]save last doc name /storage/0461/doc_00188076 to /storage/kkm_last_doc_name [07:40:19]save OK [07:40:19]Clear old archive folders... [07:40:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:19]tlvbuf is 01C34CA0 [07:40:19]SAM_PROTO_ClearQueue [07:40:19]wFMCommunicate request_size=4 [07:40:19]MH_SAM_APDU [07:40:19]CAPDU: 80 09 00 00 [07:40:19]Write to MH i2c: E2 08 00 68 23 80 09 00 00 00 00 00 00 FD [07:40:19]Write i2c OK [07:40:19]MH_I2C_Read... [07:40:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:19]Read from MH i2c: E2 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 03 00 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 03 00 68 23 00 90 00 FF [07:40:19]RAPDU: 90 00 [07:40:19]wFMCommunicate OK [07:40:19]SAM_PROTO_ClearQueue done [07:40:19]KKMCreateOFDPacket [07:40:19]OFDProtocolAddRootSTLVToBuf [07:40:19]FM_MakeSignedData [07:40:19]FM_MakeSignedData [07:40:19]SAM_PROTO_SignData [07:40:19]wFMCommunicate request_size=4 [07:40:19]MH_SAM_APDU [07:40:19]CAPDU: 80 0D 01 02 [07:40:19]Write to MH i2c: E2 08 00 69 23 80 0D 01 02 00 00 00 00 05 [07:40:19]Write i2c OK [07:40:19]MH_I2C_Read... [07:40:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:19]Read from MH i2c: E2 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 03 00 [07:40:19]MH_I2C_Read... [07:40:19]Read from MH i2c: E2 03 00 69 23 00 90 00 00 [07:40:19]RAPDU: 90 00 [07:40:19]wFMCommunicate OK [07:40:19]wFMCommunicate request_size=255 [07:40:19]MH_SAM_APDU [07:40:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E4 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DE 02 00 35 04 06 00 34 [07:40:19]Write to MH i2c: E2 02 01 6A 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E4 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DE 02 00 35 04 06 00 34 00 00 41 [07:40:19]Write i2c OK [07:40:19]MH_I2C_Read... [07:40:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:20]Read from MH i2c: E2 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 03 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 03 00 6A 23 00 90 00 01 [07:40:20]RAPDU: 90 00 [07:40:20]wFMCommunicate OK [07:40:20]wFMCommunicate request_size=10 [07:40:20]MH_SAM_APDU [07:40:20]CAPDU: 80 0D 02 02 05 60 DE CE 6A 4E [07:40:20]Write to MH i2c: E2 0D 00 6B 23 80 0D 02 02 05 00 60 DE CE 6A 4E 00 00 D6 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:20]Read from MH i2c: E2 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 03 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 03 00 6B 23 00 90 00 02 [07:40:20]RAPDU: 90 00 [07:40:20]wFMCommunicate OK [07:40:20]wFMCommunicate request_size=4 [07:40:20]MH_SAM_APDU [07:40:20]CAPDU: 80 0D 03 02 [07:40:20]Write to MH i2c: E2 08 00 6C 23 80 0D 03 02 00 00 00 00 0A [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:20]Read from MH i2c: E2 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 0B 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 0B 00 6C 23 00 CB 37 D9 EB 7F A4 85 43 90 00 BC [07:40:20]RAPDU: CB 37 D9 EB 7F A4 85 43 90 00 [07:40:20]wFMCommunicate OK [07:40:20]SAM_PROTO_SignData done [07:40:20]FM_MakeSignedData done [07:40:20]CreateOFDProtocolMessage [07:40:20]wFMCommunicate request_size=4 [07:40:20]MH_SAM_APDU [07:40:20]CAPDU: 80 11 00 00 [07:40:20]Write to MH i2c: E2 08 00 6D 23 80 11 00 00 00 00 00 00 0A [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:20]Read from MH i2c: E2 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 17 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: E2 17 00 6D 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [07:40:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:40:20]wFMCommunicate OK [07:40:20]CreateOFDProtocolMessage done [07:40:20]OFDSenderStorePacket 188076 [07:40:20]StoreOFDPacket docnum=188076 [07:40:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 C7 07 01 63 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E4 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DE 02 00 35 04 06 00 34 60 DE CE 6A 4E CB 37 D9 EB 7F A4 85 43 [07:40:20]CheckFolder [07:40:20]dirname=/storage/ofd_packets [07:40:20]CheckFolder done [07:40:20]ProducePacketName [07:40:20]name=ofd_packets/00188076 [07:40:20]NVStorageSaveData ofd_packets/00188076 [07:40:20]File name is /storage/ofd_packets/00188076 [07:40:20]Write 301 bytes [07:40:20]NVStorageSaveData done [07:40:20]OFDSenderStorePacket done [07:40:20]KKMCreateOFDPacket done [07:40:20]NVStorageSaveData kkm_last_timestamp [07:40:20]File name is /storage/kkm_last_timestamp [07:40:20]Write 4 bytes [07:40:20]NVStorageSaveData done [07:40:20]ExternCall_PrintAddStr [07:40:20]wPrintStart [07:40:20]Write to MH i2c: 01 00 00 6E 23 91 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 6E 23 00 00 00 00 00 FF 0F A6 [07:40:20]RasterBufferAndPrint [07:40:20]line Счет N : (1)210127 [07:40:20]line ИНН: 02508201610067 [07:40:20]line Контрольно-Кассовый Чек [07:40:20]line ПРОДАЖА [07:40:20]line ТРК (МРК, ГНК) : 42 [07:40:20]line Товар: 2710124130 [07:40:20]line Аи-92-К-3 [07:40:20]line 14.950 * 66.90 [07:40:20]line = 1000.16 [07:40:20]line НДС 12% НСП 1% [07:40:20]line > о реализуемом товаре [07:40:20]line ИТОГО: 1000.16 [07:40:20]line НСП 1% : 8.85 [07:40:20]line НДС 12% : 106.21 [07:40:20]line Наличными: 0.00 [07:40:20]line Безнал.: 1000.16 [07:40:20]line Место: АЗС № 86 "Партнер Нефть" [07:40:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:40:20]line СНО: Общий режим [07:40:20]line Чек 105 22.10.2024 07:40 [07:40:20]line Смена: 461 ФФД: 1.0 [07:40:20]line ЗНМ: 0300000155 [07:40:20]line РНМ: 0000000000100030 [07:40:20]line Версия ККМ: 001 [07:40:20]line Платежная система: Mbank [07:40:20]line ФМ: 0000000000965340 [07:40:20]line ФД: 188076 [07:40:20]line ФПД: 57590659574350 [07:40:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188076&fm=57590659574350&tin=02508201610067®Number=0000000000100030&sum=100016 [07:40:20]written 0, free lines is 4095 [07:40:20]OFD Sender: Processing packet 188076 [packets to send 1062, broken 1061] [07:40:20]ProducePacketName [07:40:20]name=ofd_packets/00188076 [07:40:20]OFD Sender: To server: pG, [07:40:20]CommunicateWithHost lk.salyk.kg:30040 [07:40:20]ConnectInit lk.salyk.kg [07:40:20]Connected sock=10 [07:40:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 C7 07 01 63 C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 69 00 00 00 F4 03 04 00 E4 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DE 02 00 35 04 06 00 34 60 DE CE 6A 4E CB 37 D9 EB 7F A4 85 43 [07:40:20]Write to MH i2c: 01 00 00 97 23 BA [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: 01 07 00 97 23 00 00 00 00 00 81 0C 4E [07:40:20]RasterBufferAndPrint [07:40:20]line [07:40:20]line [07:40:20]line [07:40:20]line [07:40:20]line [07:40:20]written 0, free lines is 3206 [07:40:20]MH_Cut [07:40:20]Write to MH i2c: D1 01 00 9E 23 01 93 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: D1 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: D1 01 00 [07:40:20]MH_I2C_Read... [07:40:20]Read from MH i2c: D1 01 00 9E 23 00 92 [07:40:20]Write to MH i2c: 01 00 00 9F 23 C2 [07:40:20]Write i2c OK [07:40:20]MH_I2C_Read... [07:40:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6D 78 47 00 8C FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DE 02 00 F4 03 04 00 D2 00 17 67 B6 04 01 00 00 11 77 80 88 F6 47 D5 03 [07:40:20]CommunicateWithHost err = 0 [07:40:20]CheckOFDResponse [07:40:20]1017 (14) - 77093643461234 [07:40:20]1041 (16) - 0000000000965340 [07:40:20]1040 (4) - 188076 [07:40:20]1012 (4) - 22.10.2024 01:33 [07:40:20]1206 (1) - 0 [07:40:20]OFD Sender: Remove packet 188076 [07:40:20]ProducePacketName [07:40:20]name=ofd_packets/00188076 [07:40:20]NVStorageDeleteData [07:40:21]OFD Sender: No OFD packet to send [07:40:21]*** Cut start [07:40:21]*** Partial cut [07:40:21]*** CUTSNS_PIN = 1 [07:40:21]*** CUTSNS_PIN = 0 [07:40:22]*** Brake cut motor [07:40:22]Read from MH i2c: 01 [07:40:22]MH_I2C_Read... [07:40:22]*** Stop cut motor [07:40:22]*** Cut end [07:40:22]Read from MH i2c: 01 07 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: 01 07 00 9F 23 00 00 00 00 00 FF 0F D7 [07:40:22]process_action close_receipt done [07:40:22]requested_data is exist [07:40:22]produce_requested_data [07:40:22]requested_item fm.sn is exist - process it [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 11 00 00 [07:40:22]Write to MH i2c: E2 08 00 A0 23 80 11 00 00 00 00 00 00 3D [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 17 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 17 00 A0 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [07:40:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:40:22]wFMCommunicate OK [07:40:22]requested_item fd.num is exist - process it [07:40:22]SAM_PROTO_GetFieldsCounters [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 13 00 00 [07:40:22]Write to MH i2c: E2 08 00 A1 23 80 13 00 00 00 00 00 00 40 [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 62 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 62 00 A1 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DE 02 00 0E 04 04 00 CD 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 DC [07:40:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DE 02 00 0E 04 04 00 CD 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 [07:40:22]wFMCommunicate OK [07:40:22]SAM_PROTO_GetFieldsCounters done [07:40:22]requested_item shift.num is exist - process it [07:40:22]requested_item shift.opened is exist - process it [07:40:22]req_shift_opened [07:40:22]FM_GetShiftState [07:40:22]SAM_PROTO_GetShiftState [07:40:22]wFMCommunicate request_size=4 [07:40:22]MH_SAM_APDU [07:40:22]CAPDU: 80 13 01 00 [07:40:22]Write to MH i2c: E2 08 00 A2 23 80 13 01 00 00 00 00 00 42 [07:40:22]Write i2c OK [07:40:22]MH_I2C_Read... [07:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:22]Read from MH i2c: E2 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 0E 00 [07:40:22]MH_I2C_Read... [07:40:22]Read from MH i2c: E2 0E 00 A2 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 37 [07:40:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:40:22]wFMCommunicate OK [07:40:22]SAM_PROTO_GetShiftState done [07:40:22]FM_GetShiftState done [07:40:22]req_shift_opened done [07:40:22]requested_item shift.open_date is exist - process it [07:40:22]req_shift_open_date [07:40:22]req_shift_open_date done [07:40:22]produce_requested_data done [07:40:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188076,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:40:22]process_action_free close_receipt [07:40:22]json_value_free [07:40:22]json_value_free done [07:40:22]process_json_proto returns [07:40:22]Send response to host [07:40:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188076,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:40:22]free response buf [07:40:22]execute_script done [07:40:22]execute_script returns [07:40:22]free content buf [07:40:22]Sock 9.Close socket [07:40:22]Sock 9.Thread stoped [07:40:23]accept exits with 8 [07:40:23]New connection [07:40:23]New thread 3067055460 created [07:40:23]Thread 3067198820 joined [07:40:23]Waiting for new connection... [07:40:23] Sock 8.Parse request [07:40:23]Sock 8.Check first char [07:40:23]Sock 8.First char is OK [07:40:23]request: POST /json_proto HTTP/1.0 [07:40:23]Method: POST [07:40:23]URL: /json_proto [07:40:23]Method is POST - this is cgi request [07:40:23]url: /json_proto [07:40:23]query_string will be loaded in cgi processing [07:40:23]execute_cgi json_proto POST (null) [07:40:23]execute_cgi path=json_proto method=POST [07:40:23]POST find Content-Length [07:40:23]Host: 172.17.42.131:8080 [07:40:23]Content-Length: 682 [07:40:23]Content-Type: application/json [07:40:23] [07:40:23]POST finish read [07:40:23]Found Content-Length = 682 [07:40:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210129", "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" ] } } [07:40:23]execute_script... [07:40: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)210129", "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" ] } } [07:40:23]POST & json_proto [07:40:23]process_json_proto [07:40:23]json parsed OK: [07:40:23]protocol is kg_v1.0 [07:40:23]action value=close_receipt [07:40:23]process_action close_receipt [07:40:23]cmd_close_receipt [07:40:23]MH_GetDate [07:40:23]Write to MH i2c: F0 00 00 A3 23 B5 [07:40:23]Write i2c OK [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: F0 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: F0 09 00 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: F0 09 00 A3 23 00 E9 56 17 67 A0 18 CA 66 63 [07:40:23]GetLastDocTimeStamp 1729582820 [07:40:23]current date 1729582825 [07:40:23]FM_GetShiftState [07:40:23]SAM_PROTO_GetShiftState [07:40:23]wFMCommunicate request_size=4 [07:40:23]MH_SAM_APDU [07:40:23]CAPDU: 80 13 01 00 [07:40:23]Write to MH i2c: E2 08 00 A4 23 80 13 01 00 00 00 00 00 44 [07:40:23]Write i2c OK [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: E2 [07:40:23]MH_I2C_Read... [07:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:23]Read from MH i2c: E2 0E 00 [07:40:23]MH_I2C_Read... [07:40:23]Read from MH i2c: E2 0E 00 A4 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 39 [07:40:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:40:23]wFMCommunicate OK [07:40:23]SAM_PROTO_GetShiftState done [07:40:23]FM_GetShiftState done [07:40:23]opened in 1729556094 [07:40:23]opened+sec_in_day 1729642494 [07:40:23]quantity*price = 100021 [07:40:23]sum+1 = 100023 [07:40:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 106 22.10.2024 07:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188077 ФПД: 42623893738044 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188077&fm=42623893738044&tin=02508201610067®Number=0000000000100030&sum=100000 [07:40:24]StoreToDocumentArchive [07:40:24]shift 461 fd 188077 [07:40:24]save to /storage/0461/doc_00188077 [07:40:24]save last doc name /storage/0461/doc_00188077 to /storage/kkm_last_doc_name [07:40:24]save OK [07:40:24]Clear old archive folders... [07:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:40:24]tlvbuf is 01C63E70 [07:40:24]SAM_PROTO_ClearQueue [07:40:24]wFMCommunicate request_size=4 [07:40:24]MH_SAM_APDU [07:40:24]CAPDU: 80 09 00 00 [07:40:24]Write to MH i2c: E2 08 00 B1 23 80 09 00 00 00 00 00 00 46 [07:40:24]Write i2c OK [07:40:24]MH_I2C_Read... [07:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:40:24]Read from MH i2c: E2 [07:40:24]MH_I2C_Read... [07:40:24]Read from MH i2c: E2 03 00 [07:40:24]MH_I2C_Read... [07:40:24]Read from MH i2c: E2 03 00 B1 23 00 90 00 48 [07:40:24]RAPDU: 90 00 [07:40:24]wFMCommunicate OK [07:40:24]SAM_PROTO_ClearQueue done [07:40:24]KKMCreateOFDPacket [07:40:24]OFDProtocolAddRootSTLVToBuf [07:40:24]FM_MakeSignedData [07:40:24]FM_MakeSignedData [07:40:24]SAM_PROTO_SignData [07:40:24]wFMCommunicate request_size=4 [07:40:24]MH_SAM_APDU [07:40:24]CAPDU: 80 0D 01 02 [07:40:24]Write to MH i2c: E2 08 00 B2 23 80 0D 01 02 00 00 00 00 4E [07:40:24]Write i2c OK [07:40:24]MH_I2C_Read... [07:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:40:24]Read from MH i2c: E2 [07:40:24]MH_I2C_Read... [07:40:24]Read from MH i2c: E2 03 00 [07:40:24]MH_I2C_Read... [07:40:24]Read from MH i2c: E2 03 00 B2 23 00 90 00 49 [07:40:24]RAPDU: 90 00 [07:40:24]wFMCommunicate OK [07:40:24]wFMCommunicate request_size=255 [07:40:24]MH_SAM_APDU [07:40: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 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 E9 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DE 02 00 35 04 06 00 26 [07:40:24]Write to MH i2c: E2 02 01 B3 23 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 E9 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DE 02 00 35 04 06 00 26 00 00 86 [07:40:24]Write i2c OK [07:40:24]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 03 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 03 00 B3 23 00 90 00 4A [07:40:25]RAPDU: 90 00 [07:40:25]wFMCommunicate OK [07:40:25]wFMCommunicate request_size=10 [07:40:25]MH_SAM_APDU [07:40:25]CAPDU: 80 0D 02 02 05 C4 26 0B 92 3C [07:40:25]Write to MH i2c: E2 0D 00 B4 23 80 0D 02 02 05 00 C4 26 0B 92 3C 00 00 1E [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 03 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 03 00 B4 23 00 90 00 4B [07:40:25]RAPDU: 90 00 [07:40:25]wFMCommunicate OK [07:40:25]wFMCommunicate request_size=4 [07:40:25]MH_SAM_APDU [07:40:25]CAPDU: 80 0D 03 02 [07:40:25]Write to MH i2c: E2 08 00 B5 23 80 0D 03 02 00 00 00 00 53 [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 0B 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 0B 00 B5 23 00 55 D8 19 22 80 51 6F 74 90 00 70 [07:40:25]RAPDU: 55 D8 19 22 80 51 6F 74 90 00 [07:40:25]wFMCommunicate OK [07:40:25]SAM_PROTO_SignData done [07:40:25]FM_MakeSignedData done [07:40:25]CreateOFDProtocolMessage [07:40:25]wFMCommunicate request_size=4 [07:40:25]MH_SAM_APDU [07:40:25]CAPDU: 80 11 00 00 [07:40:25]Write to MH i2c: E2 08 00 B6 23 80 11 00 00 00 00 00 00 53 [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:25]Read from MH i2c: E2 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 17 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: E2 17 00 B6 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [07:40:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:40:25]wFMCommunicate OK [07:40:25]CreateOFDProtocolMessage done [07:40:25]OFDSenderStorePacket 188077 [07:40:25]StoreOFDPacket docnum=188077 [07:40:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 D4 07 01 79 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 E9 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DE 02 00 35 04 06 00 26 C4 26 0B 92 3C 55 D8 19 22 80 51 6F 74 [07:40:25]CheckFolder [07:40:25]dirname=/storage/ofd_packets [07:40:25]CheckFolder done [07:40:25]ProducePacketName [07:40:25]name=ofd_packets/00188077 [07:40:25]NVStorageSaveData ofd_packets/00188077 [07:40:25]File name is /storage/ofd_packets/00188077 [07:40:25]Write 301 bytes [07:40:25]NVStorageSaveData done [07:40:25]OFDSenderStorePacket done [07:40:25]KKMCreateOFDPacket done [07:40:25]NVStorageSaveData kkm_last_timestamp [07:40:25]File name is /storage/kkm_last_timestamp [07:40:25]Write 4 bytes [07:40:25]NVStorageSaveData done [07:40:25]ExternCall_PrintAddStr [07:40:25]wPrintStart [07:40:25]Write to MH i2c: 01 00 00 B7 23 DA [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: 01 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: 01 07 00 [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: 01 07 00 B7 23 00 00 00 00 00 FF 0F EF [07:40:25]RasterBufferAndPrint [07:40:25]line Счет N : (1)210129 [07:40:25]line ИНН: 02508201610067 [07:40:25]line Контрольно-Кассовый Чек [07:40:25]line ПРОДАЖА [07:40:25]line ТРК (МРК, ГНК) : 33 [07:40:25]line Товар: 2710124500 [07:40:25]line Аи-95-К-3 [07:40:25]line 13.480 * 74.20 [07:40:25]line = 1000.22 [07:40:25]line НДС 12% НСП 1% [07:40:25]line > о реализуемом товаре [07:40:25]line ОКРУГЛЕНИЕ: -0.22 [07:40:25]line ИТОГО: 1000.00 [07:40:25]line Внесено: 1000.00 [07:40:25]line СДАЧА: 0.00 [07:40:25]line НСП 1% : 8.85 [07:40:25]line НДС 12% : 106.22 [07:40:25]line Наличными: 1000.00 [07:40:25]line Безнал.: 0.00 [07:40:25]line Место: АЗС № 86 "Партнер Нефть" [07:40:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:40:25]line СНО: Общий режим [07:40:25]line Чек 106 22.10.2024 07:40 [07:40:25]line Смена: 461 ФФД: 1.0 [07:40:25]line ЗНМ: 0300000155 [07:40:25]line РНМ: 0000000000100030 [07:40:25]line Версия ККМ: 001 [07:40:25]line ФМ: 0000000000965340 [07:40:25]line ФД: 188077 [07:40:25]line ФПД: 42623893738044 [07:40:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188077&fm=42623893738044&tin=02508201610067®Number=0000000000100030&sum=100000 [07:40:25]OFD Sender: Processing packet 188077 [packets to send 1062, broken 1061] [07:40:25]ProducePacketName [07:40:25]name=ofd_packets/00188077 [07:40:25]OFD Sender: To server: pG, [07:40:25]CommunicateWithHost lk.salyk.kg:30040 [07:40:25]ConnectInit lk.salyk.kg [07:40:25]written 0, free lines is 4095 [07:40:25]Connected sock=10 [07:40:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 D4 07 01 79 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 E9 56 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DE 02 00 35 04 06 00 26 C4 26 0B 92 3C 55 D8 19 22 80 51 6F 74 [07:40:25]Write to MH i2c: 01 00 00 E2 23 05 [07:40:25]Write i2c OK [07:40:25]MH_I2C_Read... [07:40:25]Read from MH i2c: 01 [07:40:25]MH_I2C_Read... [07:40:26]Read from MH i2c: 01 07 00 [07:40:26]MH_I2C_Read... [07:40:26]Read from MH i2c: 01 07 00 E2 23 00 00 00 00 00 59 0C 71 [07:40:26]RasterBufferAndPrint [07:40:26]line [07:40:26]line [07:40:26]line [07:40:26]line [07:40:26]line [07:40:26]written 0, free lines is 3169 [07:40:26]MH_Cut [07:40:26]Write to MH i2c: D1 01 00 E9 23 01 DE [07:40:26]Write i2c OK [07:40:26]MH_I2C_Read... [07:40:26]Read from MH i2c: D1 [07:40:26]MH_I2C_Read... [07:40:26]Read from MH i2c: D1 01 00 [07:40:26]MH_I2C_Read... [07:40:26]Read from MH i2c: D1 01 00 E9 23 00 DD [07:40:26]Write to MH i2c: 01 00 00 EA 23 0D [07:40:26]Write i2c OK [07:40:26]MH_I2C_Read... [07:40:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 23 C0 47 00 D6 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 39 36 35 33 34 30 10 04 04 00 AD DE 02 00 F4 03 04 00 D7 00 17 67 B6 04 01 00 00 45 1F 51 3C 70 AB FE 91 [07:40:26]CommunicateWithHost err = 0 [07:40:26]CheckOFDResponse [07:40:26]1017 (14) - 77093643461234 [07:40:26]1041 (16) - 0000000000965340 [07:40:26]1040 (4) - 188077 [07:40:26]1012 (4) - 22.10.2024 01:33 [07:40:26]1206 (1) - 0 [07:40:26]OFD Sender: Remove packet 188077 [07:40:26]ProducePacketName [07:40:26]name=ofd_packets/00188077 [07:40:26]NVStorageDeleteData [07:40:26]OFD Sender: No OFD packet to send [07:40:27]*** Cut start [07:40:27]*** Partial cut [07:40:27]*** CUTSNS_PIN = 1 [07:40:27]*** CUTSNS_PIN = 0 [07:40:27]*** Brake cut motor [07:40:27]Read from MH i2c: 01 [07:40:27]MH_I2C_Read... [07:40:27]*** Stop cut motor [07:40:27]*** Cut end [07:40:27]Read from MH i2c: 01 07 00 [07:40:27]MH_I2C_Read... [07:40:27]Read from MH i2c: 01 07 00 EA 23 00 00 00 00 00 FF 0F 22 [07:40:27]process_action close_receipt done [07:40:27]requested_data is exist [07:40:27]produce_requested_data [07:40:27]requested_item fm.sn is exist - process it [07:40:27]wFMCommunicate request_size=4 [07:40:27]MH_SAM_APDU [07:40:27]CAPDU: 80 11 00 00 [07:40:27]Write to MH i2c: E2 08 00 EB 23 80 11 00 00 00 00 00 00 88 [07:40:27]Write i2c OK [07:40:27]MH_I2C_Read... [07:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:40:27]Read from MH i2c: E2 [07:40:27]MH_I2C_Read... [07:40:27]Read from MH i2c: E2 17 00 [07:40:27]MH_I2C_Read... [07:40:27]Read from MH i2c: E2 17 00 EB 23 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [07:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:40:27]wFMCommunicate OK [07:40:27]requested_item fd.num is exist - process it [07:40:27]SAM_PROTO_GetFieldsCounters [07:40:27]wFMCommunicate request_size=4 [07:40:27]MH_SAM_APDU [07:40:27]CAPDU: 80 13 00 00 [07:40:27]Write to MH i2c: E2 08 00 EC 23 80 13 00 00 00 00 00 00 8B [07:40:27]Write i2c OK [07:40:27]MH_I2C_Read... [07:40:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:40:28]Read from MH i2c: E2 [07:40:28]MH_I2C_Read... [07:40:28]Read from MH i2c: E2 62 00 [07:40:28]MH_I2C_Read... [07:40:28]Read from MH i2c: E2 62 00 EC 23 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DE 02 00 0E 04 04 00 CD 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 2B [07:40:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DE 02 00 0E 04 04 00 CD 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 [07:40:28]wFMCommunicate OK [07:40:28]SAM_PROTO_GetFieldsCounters done [07:40:28]requested_item shift.num is exist - process it [07:40:28]requested_item shift.opened is exist - process it [07:40:28]req_shift_opened [07:40:28]FM_GetShiftState [07:40:28]SAM_PROTO_GetShiftState [07:40:28]wFMCommunicate request_size=4 [07:40:28]MH_SAM_APDU [07:40:28]CAPDU: 80 13 01 00 [07:40:28]Write to MH i2c: E2 08 00 ED 23 80 13 01 00 00 00 00 00 8D [07:40:28]Write i2c OK [07:40:28]MH_I2C_Read... [07:40:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:40:28]Read from MH i2c: E2 [07:40:28]MH_I2C_Read... [07:40:28]Read from MH i2c: E2 0E 00 [07:40:28]MH_I2C_Read... [07:40:28]Read from MH i2c: E2 0E 00 ED 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 82 [07:40:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:40:28]wFMCommunicate OK [07:40:28]SAM_PROTO_GetShiftState done [07:40:28]FM_GetShiftState done [07:40:28]req_shift_opened done [07:40:28]requested_item shift.open_date is exist - process it [07:40:28]req_shift_open_date [07:40:28]req_shift_open_date done [07:40:28]produce_requested_data done [07:40:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188077,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:40:28]process_action_free close_receipt [07:40:28]json_value_free [07:40:28]json_value_free done [07:40:28]process_json_proto returns [07:40:28]Send response to host [07:40:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188077,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:40:28]free response buf [07:40:28]execute_script done [07:40:28]execute_script returns [07:40:28]free content buf [07:40:28]Sock 8.Close socket [07:40:28]Sock 8.Thread stoped [07:40:31]OFD Sender: No OFD packet to send [07:40:36]OFD Sender: No OFD packet to send [07:40:41]OFD Sender: No OFD packet to send [07:40:46]OFD Sender: No OFD packet to send [07:40:51]OFD Sender: No OFD packet to send [07:40:56]OFD Sender: No OFD packet to send [07:41:01]OFD Sender: No OFD packet to send [07:41:06]OFD Sender: No OFD packet to send [07:41:11]OFD Sender: No OFD packet to send [07:41:16]OFD Sender: No OFD packet to send [07:41:21]OFD Sender: No OFD packet to send [07:41:27]OFD Sender: No OFD packet to send [07:41:32]OFD Sender: No OFD packet to send [07:41:37]OFD Sender: No OFD packet to send [07:41:42]OFD Sender: No OFD packet to send [07:41:47]OFD Sender: No OFD packet to send [07:41:52]OFD Sender: No OFD packet to send [07:41:57]OFD Sender: No OFD packet to send [07:42:02]OFD Sender: No OFD packet to send [07:42:07]OFD Sender: No OFD packet to send [07:42:12]OFD Sender: No OFD packet to send [07:42:17]OFD Sender: No OFD packet to send [07:42:22]OFD Sender: No OFD packet to send [07:42:27]OFD Sender: No OFD packet to send [07:42:32]OFD Sender: No OFD packet to send [07:42:37]OFD Sender: No OFD packet to send [07:42:42]OFD Sender: No OFD packet to send [07:42:47]OFD Sender: No OFD packet to send [07:42:52]OFD Sender: No OFD packet to send [07:42:52]accept exits with 9 [07:42:52]New connection [07:42:52]New thread 3067198820 created [07:42:52]Thread 3067055460 joined [07:42:52]Waiting for new connection... [07:42:52] Sock 9.Parse request [07:42:52]Sock 9.Check first char [07:42:52]Sock 9.First char is OK [07:42:52]request: POST /json_proto HTTP/1.0 [07:42:52]Method: POST [07:42:52]URL: /json_proto [07:42:52]Method is POST - this is cgi request [07:42:52]url: /json_proto [07:42:52]query_string will be loaded in cgi processing [07:42:52]execute_cgi json_proto POST (null) [07:42:52]execute_cgi path=json_proto method=POST [07:42:52]POST find Content-Length [07:42:52]Host: 172.17.42.131:8080 [07:42:52]Content-Length: 679 [07:42:52]Content-Type: application/json [07:42:52] [07:42:52]POST finish read [07:42:52]Found Content-Length = 679 [07:42:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.740, "sum" : 1885.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1885.00, "total" : 1885.00, "payments": [ { "type": 0, "sum" : 1885.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:52]execute_script... [07:42: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)210130", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 24.740, "sum" : 1885.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1885.00, "total" : 1885.00, "payments": [ { "type": 0, "sum" : 1885.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:42:52]POST & json_proto [07:42:52]process_json_proto [07:42:52]json parsed OK: [07:42:52]protocol is kg_v1.0 [07:42:52]action value=close_receipt [07:42:52]process_action close_receipt [07:42:52]cmd_close_receipt [07:42:52]MH_GetDate [07:42:52]Write to MH i2c: F0 00 00 EE 23 00 [07:42:52]Write i2c OK [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: F0 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: F0 09 00 [07:42:52]MH_I2C_Read... [07:42:52]Read from MH i2c: F0 09 00 EE 23 00 7F 57 17 67 A0 18 CA 66 45 [07:42:52]GetLastDocTimeStamp 1729582825 [07:42:52]current date 1729582975 [07:42:52]FM_GetShiftState [07:42:52]SAM_PROTO_GetShiftState [07:42:52]wFMCommunicate request_size=4 [07:42:52]MH_SAM_APDU [07:42:52]CAPDU: 80 13 01 00 [07:42:52]Write to MH i2c: E2 08 00 EF 23 80 13 01 00 00 00 00 00 8F [07:42:52]Write i2c OK [07:42:52]MH_I2C_Read... [07:42:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:53]Read from MH i2c: E2 [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: E2 0E 00 [07:42:53]MH_I2C_Read... [07:42:53]Read from MH i2c: E2 0E 00 EF 23 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [07:42:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:42:53]wFMCommunicate OK [07:42:53]SAM_PROTO_GetShiftState done [07:42:53]FM_GetShiftState done [07:42:53]opened in 1729556094 [07:42:53]opened+sec_in_day 1729642494 [07:42:53]quantity*price = 188518 [07:42:53]sum+1 = 188520 [07:42:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1885.00 Внесено: 1885.00 СДАЧА: 0.00 НСП 1% : 16.68 НДС 12% : 200.20 Наличными: 1885.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 107 22.10.2024 07:42 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188078 ФПД: 16315183842658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188078&fm=16315183842658&tin=02508201610067®Number=0000000000100030&sum=188500 [07:42:54]StoreToDocumentArchive [07:42:54]shift 461 fd 188078 [07:42:54]save to /storage/0461/doc_00188078 [07:42:54]save last doc name /storage/0461/doc_00188078 to /storage/kkm_last_doc_name [07:42:54]save OK [07:42:54]Clear old archive folders... [07:42:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:42:54]tlvbuf is 01BD02B0 [07:42:54]SAM_PROTO_ClearQueue [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 09 00 00 [07:42:54]Write to MH i2c: E2 08 00 FC 23 80 09 00 00 00 00 00 00 91 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 FC 23 00 90 00 93 [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]SAM_PROTO_ClearQueue done [07:42:54]KKMCreateOFDPacket [07:42:54]OFDProtocolAddRootSTLVToBuf [07:42:54]FM_MakeSignedData [07:42:54]FM_MakeSignedData [07:42:54]SAM_PROTO_SignData [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 0D 01 02 [07:42:54]Write to MH i2c: E2 08 00 FD 23 80 0D 01 02 00 00 00 00 99 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 FD 23 00 90 00 94 [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]wFMCommunicate request_size=255 [07:42:54]MH_SAM_APDU [07:42: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 E0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 4E 00 00 00 00 07 04 06 00 54 E0 02 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 7F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DE 02 00 35 04 06 00 0E D6 AC BC [07:42:54]Write to MH i2c: E2 02 01 FE 23 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 E0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 4E 00 00 00 00 07 04 06 00 54 E0 02 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 7F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DE 02 00 35 04 06 00 0E D6 AC BC 00 00 E9 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 FE 23 00 90 00 95 [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]wFMCommunicate request_size=7 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 0D 02 02 02 C5 62 [07:42:54]Write to MH i2c: E2 0A 00 FF 23 80 0D 02 02 02 00 C5 62 00 00 C7 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 03 00 FF 23 00 90 00 96 [07:42:54]RAPDU: 90 00 [07:42:54]wFMCommunicate OK [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 0D 03 02 [07:42:54]Write to MH i2c: E2 08 00 00 24 80 0D 03 02 00 00 00 00 9F [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 0B 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 0B 00 00 24 00 91 49 0E 89 78 23 E2 79 90 00 07 [07:42:54]RAPDU: 91 49 0E 89 78 23 E2 79 90 00 [07:42:54]wFMCommunicate OK [07:42:54]SAM_PROTO_SignData done [07:42:54]FM_MakeSignedData done [07:42:54]CreateOFDProtocolMessage [07:42:54]wFMCommunicate request_size=4 [07:42:54]MH_SAM_APDU [07:42:54]CAPDU: 80 11 00 00 [07:42:54]Write to MH i2c: E2 08 00 01 24 80 11 00 00 00 00 00 00 9F [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:54]Read from MH i2c: E2 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 17 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: E2 17 00 01 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [07:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:42:54]wFMCommunicate OK [07:42:54]CreateOFDProtocolMessage done [07:42:54]OFDSenderStorePacket 188078 [07:42:54]StoreOFDPacket docnum=188078 [07:42:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1A 8D 04 01 66 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 E0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 4E 00 00 00 00 07 04 06 00 54 E0 02 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 7F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DE 02 00 35 04 06 00 0E D6 AC BC C5 62 91 49 0E 89 78 23 E2 79 [07:42:54]CheckFolder [07:42:54]dirname=/storage/ofd_packets [07:42:54]CheckFolder done [07:42:54]ProducePacketName [07:42:54]name=ofd_packets/00188078 [07:42:54]NVStorageSaveData ofd_packets/00188078 [07:42:54]File name is /storage/ofd_packets/00188078 [07:42:54]Write 298 bytes [07:42:54]NVStorageSaveData done [07:42:54]OFDSenderStorePacket done [07:42:54]KKMCreateOFDPacket done [07:42:54]NVStorageSaveData kkm_last_timestamp [07:42:54]File name is /storage/kkm_last_timestamp [07:42:54]Write 4 bytes [07:42:54]NVStorageSaveData done [07:42:54]ExternCall_PrintAddStr [07:42:54]wPrintStart [07:42:54]Write to MH i2c: 01 00 00 02 24 26 [07:42:54]Write i2c OK [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 07 00 [07:42:54]MH_I2C_Read... [07:42:54]Read from MH i2c: 01 07 00 02 24 00 00 00 00 00 FF 0F 3B [07:42:54]RasterBufferAndPrint [07:42:54]line Счет N : (1)210130 [07:42:54]line ИНН: 02508201610067 [07:42:54]line Контрольно-Кассовый Чек [07:42:54]line ПРОДАЖА [07:42:54]line ТРК (МРК, ГНК) : 51 [07:42:54]line Товар: 2710194210 [07:42:54]line ДТ-К-5 [07:42:54]line 24.740 * 76.20 [07:42:54]line = 1885.19 [07:42:54]line НДС 12% НСП 1% [07:42:54]line > о реализуемом товаре [07:42:54]line ОКРУГЛЕНИЕ: -0.19 [07:42:54]line ИТОГО: 1885.00 [07:42:54]line Внесено: 1885.00 [07:42:54]line СДАЧА: 0.00 [07:42:54]line НСП 1% : 16.68 [07:42:54]line НДС 12% : 200.20 [07:42:54]line Наличными: 1885.00 [07:42:54]line Безнал.: 0.00 [07:42:54]line Место: АЗС № 86 "Партнер Нефть" [07:42:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:42:54]line СНО: Общий режим [07:42:54]line Чек 107 22.10.2024 07:42 [07:42:54]line Смена: 461 ФФД: 1.0 [07:42:54]line ЗНМ: 0300000155 [07:42:54]line РНМ: 0000000000100030 [07:42:54]line Версия ККМ: 001 [07:42:54]line ФМ: 0000000000965340 [07:42:54]line ФД: 188078 [07:42:54]line ФПД: 16315183842658 [07:42:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188078&fm=16315183842658&tin=02508201610067®Number=0000000000100030&sum=188500 [07:42:54]written 0, free lines is 4095 [07:42:54]OFD Sender: Processing packet 188078 [packets to send 1062, broken 1061] [07:42:54]ProducePacketName [07:42:54]name=ofd_packets/00188078 [07:42:54]OFD Sender: To server: pG, [07:42:54]CommunicateWithHost lk.salyk.kg:30040 [07:42:54]ConnectInit lk.salyk.kg [07:42:55]Connected sock=10 [07:42:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1A 8D 04 01 66 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 60 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 67 E0 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 E0 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 34 4E 00 00 00 00 07 04 06 00 54 E0 02 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 7F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DE 02 00 35 04 06 00 0E D6 AC BC C5 62 91 49 0E 89 78 23 E2 79 [07:42:55]Write to MH i2c: 01 00 00 2D 24 51 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 07 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: 01 07 00 2D 24 00 00 00 00 00 52 0C B6 [07:42:55]RasterBufferAndPrint [07:42:55]line [07:42:55]line [07:42:55]line [07:42:55]line [07:42:55]line [07:42:55]written 0, free lines is 3158 [07:42:55]MH_Cut [07:42:55]Write to MH i2c: D1 01 00 34 24 01 2A [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: D1 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: D1 01 00 [07:42:55]MH_I2C_Read... [07:42:55]Read from MH i2c: D1 01 00 34 24 00 29 [07:42:55]Write to MH i2c: 01 00 00 35 24 59 [07:42:55]Write i2c OK [07:42:55]MH_I2C_Read... [07:42:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC 06 47 00 BD 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DE 02 00 F4 03 04 00 6D 01 17 67 B6 04 01 00 00 6A 93 C3 C2 E4 0F 89 4E [07:42:55]CommunicateWithHost err = 0 [07:42:55]CheckOFDResponse [07:42:55]1017 (14) - 77093643461234 [07:42:55]1041 (16) - 0000000000965340 [07:42:55]1040 (4) - 188078 [07:42:55]1012 (4) - 22.10.2024 01:35 [07:42:55]1206 (1) - 0 [07:42:55]OFD Sender: Remove packet 188078 [07:42:55]ProducePacketName [07:42:55]name=ofd_packets/00188078 [07:42:55]NVStorageDeleteData [07:42:55]OFD Sender: No OFD packet to send [07:42:56]*** Cut start [07:42:56]*** Partial cut [07:42:56]*** CUTSNS_PIN = 1 [07:42:56]*** CUTSNS_PIN = 0 [07:42:56]*** Brake cut motor [07:42:57]Read from MH i2c: 01 [07:42:57]MH_I2C_Read... [07:42:57]*** Stop cut motor [07:42:57]*** Cut end [07:42:57]Read from MH i2c: 01 07 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: 01 07 00 35 24 00 00 00 00 00 FF 0F 6E [07:42:57]process_action close_receipt done [07:42:57]requested_data is exist [07:42:57]produce_requested_data [07:42:57]requested_item fm.sn is exist - process it [07:42:57]wFMCommunicate request_size=4 [07:42:57]MH_SAM_APDU [07:42:57]CAPDU: 80 11 00 00 [07:42:57]Write to MH i2c: E2 08 00 36 24 80 11 00 00 00 00 00 00 D4 [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 17 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 17 00 36 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [07:42:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:42:57]wFMCommunicate OK [07:42:57]requested_item fd.num is exist - process it [07:42:57]SAM_PROTO_GetFieldsCounters [07:42:57]wFMCommunicate request_size=4 [07:42:57]MH_SAM_APDU [07:42:57]CAPDU: 80 13 00 00 [07:42:57]Write to MH i2c: E2 08 00 37 24 80 13 00 00 00 00 00 00 D7 [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 62 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 62 00 37 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DE 02 00 0E 04 04 00 CD 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 7B [07:42:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DE 02 00 0E 04 04 00 CD 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 [07:42:57]wFMCommunicate OK [07:42:57]SAM_PROTO_GetFieldsCounters done [07:42:57]requested_item shift.num is exist - process it [07:42:57]requested_item shift.opened is exist - process it [07:42:57]req_shift_opened [07:42:57]FM_GetShiftState [07:42:57]SAM_PROTO_GetShiftState [07:42:57]wFMCommunicate request_size=4 [07:42:57]MH_SAM_APDU [07:42:57]CAPDU: 80 13 01 00 [07:42:57]Write to MH i2c: E2 08 00 38 24 80 13 01 00 00 00 00 00 D9 [07:42:57]Write i2c OK [07:42:57]MH_I2C_Read... [07:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:42:57]Read from MH i2c: E2 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 0E 00 [07:42:57]MH_I2C_Read... [07:42:57]Read from MH i2c: E2 0E 00 38 24 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [07:42:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:42:57]wFMCommunicate OK [07:42:57]SAM_PROTO_GetShiftState done [07:42:57]FM_GetShiftState done [07:42:57]req_shift_opened done [07:42:57]requested_item shift.open_date is exist - process it [07:42:57]req_shift_open_date [07:42:57]req_shift_open_date done [07:42:57]produce_requested_data done [07:42:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188078,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:42:57]process_action_free close_receipt [07:42:57]json_value_free [07:42:57]json_value_free done [07:42:57]process_json_proto returns [07:42:57]Send response to host [07:42:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188078,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:42:57]free response buf [07:42:57]execute_script done [07:42:57]execute_script returns [07:42:57]free content buf [07:42:57]Sock 9.Close socket [07:42:57]Sock 9.Thread stoped [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:21]OFD Sender: No OFD packet to send [07:43:24]accept exits with 8 [07:43:24]New connection [07:43:24]New thread 3067055460 created [07:43:24]Thread 3067198820 joined [07:43:24]Waiting for new connection... [07:43:24] Sock 8.Parse request [07:43:24]Sock 8.Check first char [07:43:24]Sock 8.First char is OK [07:43:24]request: POST /json_proto HTTP/1.0 [07:43:24]Method: POST [07:43:24]URL: /json_proto [07:43:24]Method is POST - this is cgi request [07:43:24]url: /json_proto [07:43:24]query_string will be loaded in cgi processing [07:43:24]execute_cgi json_proto POST (null) [07:43:24]execute_cgi path=json_proto method=POST [07:43:24]POST find Content-Length [07:43:24]Host: 172.17.42.131:8080 [07:43:24]Content-Length: 682 [07:43:24]Content-Type: application/json [07:43:24] [07:43:24]POST finish read [07:43:24]Found Content-Length = 682 [07:43:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:24]execute_script... [07:43:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210131", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:43:24]POST & json_proto [07:43:24]process_json_proto [07:43:24]json parsed OK: [07:43:24]protocol is kg_v1.0 [07:43:24]action value=close_receipt [07:43:24]process_action close_receipt [07:43:24]cmd_close_receipt [07:43:24]MH_GetDate [07:43:24]Write to MH i2c: F0 00 00 39 24 4C [07:43:24]Write i2c OK [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: F0 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: F0 09 00 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: F0 09 00 39 24 00 9F 57 17 67 A0 18 CA 66 B1 [07:43:24]GetLastDocTimeStamp 1729582975 [07:43:24]current date 1729583007 [07:43:24]FM_GetShiftState [07:43:24]SAM_PROTO_GetShiftState [07:43:24]wFMCommunicate request_size=4 [07:43:24]MH_SAM_APDU [07:43:24]CAPDU: 80 13 01 00 [07:43:24]Write to MH i2c: E2 08 00 3A 24 80 13 01 00 00 00 00 00 DB [07:43:24]Write i2c OK [07:43:24]MH_I2C_Read... [07:43:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:24]Read from MH i2c: E2 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: E2 0E 00 [07:43:24]MH_I2C_Read... [07:43:24]Read from MH i2c: E2 0E 00 3A 24 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [07:43:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:43:24]wFMCommunicate OK [07:43:24]SAM_PROTO_GetShiftState done [07:43:24]FM_GetShiftState done [07:43:24]opened in 1729556094 [07:43:24]opened+sec_in_day 1729642494 [07:43:24]quantity*price = 100015 [07:43:24]sum+1 = 100017 [07:43:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 108 22.10.2024 07:43 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188079 ФПД: 84100303337554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074327&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188079&fm=84100303337554&tin=02508201610067®Number=0000000000100030&sum=100000 [07:43:25]StoreToDocumentArchive [07:43:25]shift 461 fd 188079 [07:43:25]save to /storage/0461/doc_00188079 [07:43:25]save last doc name /storage/0461/doc_00188079 to /storage/kkm_last_doc_name [07:43:25]save OK [07:43:25]Clear old archive folders... [07:43:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:43:25]tlvbuf is B6DE45D0 [07:43:25]SAM_PROTO_ClearQueue [07:43:25]wFMCommunicate request_size=4 [07:43:25]MH_SAM_APDU [07:43:25]CAPDU: 80 09 00 00 [07:43:25]Write to MH i2c: E2 08 00 47 24 80 09 00 00 00 00 00 00 DD [07:43:25]Write i2c OK [07:43:25]MH_I2C_Read... [07:43:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:43:25]Read from MH i2c: E2 [07:43:25]MH_I2C_Read... [07:43:25]Read from MH i2c: E2 03 00 [07:43:25]MH_I2C_Read... [07:43:25]Read from MH i2c: E2 03 00 47 24 00 90 00 DF [07:43:25]RAPDU: 90 00 [07:43:25]wFMCommunicate OK [07:43:25]SAM_PROTO_ClearQueue done [07:43:25]KKMCreateOFDPacket [07:43:25]OFDProtocolAddRootSTLVToBuf [07:43:25]FM_MakeSignedData [07:43:25]FM_MakeSignedData [07:43:25]SAM_PROTO_SignData [07:43:25]wFMCommunicate request_size=4 [07:43:25]MH_SAM_APDU [07:43:25]CAPDU: 80 0D 01 02 [07:43:25]Write to MH i2c: E2 08 00 48 24 80 0D 01 02 00 00 00 00 E5 [07:43:25]Write i2c OK [07:43:25]MH_I2C_Read... [07:43:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:43:25]Read from MH i2c: E2 [07:43:25]MH_I2C_Read... [07:43:25]Read from MH i2c: E2 03 00 [07:43:25]MH_I2C_Read... [07:43:25]Read from MH i2c: E2 03 00 48 24 00 90 00 E0 [07:43:25]RAPDU: 90 00 [07:43:25]wFMCommunicate OK [07:43:25]wFMCommunicate request_size=255 [07:43:25]MH_SAM_APDU [07:43: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DE 02 00 35 04 06 00 4C [07:43:25]Write to MH i2c: E2 02 01 49 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DE 02 00 35 04 06 00 4C 00 00 DB [07:43:25]Write i2c OK [07:43:25]MH_I2C_Read... [07:43:26]OFD Sender: No OFD packet to send [07:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:26]Read from MH i2c: E2 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 03 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 03 00 49 24 00 90 00 E1 [07:43:26]RAPDU: 90 00 [07:43:26]wFMCommunicate OK [07:43:26]wFMCommunicate request_size=10 [07:43:26]MH_SAM_APDU [07:43:26]CAPDU: 80 0D 02 02 05 7D 20 B4 B8 52 [07:43:26]Write to MH i2c: E2 0D 00 4A 24 80 0D 02 02 05 00 7D 20 B4 B8 52 00 00 4D [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:43:26]Read from MH i2c: E2 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 03 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 03 00 4A 24 00 90 00 E2 [07:43:26]RAPDU: 90 00 [07:43:26]wFMCommunicate OK [07:43:26]wFMCommunicate request_size=4 [07:43:26]MH_SAM_APDU [07:43:26]CAPDU: 80 0D 03 02 [07:43:26]Write to MH i2c: E2 08 00 4B 24 80 0D 03 02 00 00 00 00 EA [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:43:26]Read from MH i2c: E2 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 0B 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 0B 00 4B 24 00 DC 35 2B ED EF 79 D4 4E 90 00 9E [07:43:26]RAPDU: DC 35 2B ED EF 79 D4 4E 90 00 [07:43:26]wFMCommunicate OK [07:43:26]SAM_PROTO_SignData done [07:43:26]FM_MakeSignedData done [07:43:26]CreateOFDProtocolMessage [07:43:26]wFMCommunicate request_size=4 [07:43:26]MH_SAM_APDU [07:43:26]CAPDU: 80 11 00 00 [07:43:26]Write to MH i2c: E2 08 00 4C 24 80 11 00 00 00 00 00 00 EA [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:26]Read from MH i2c: E2 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 17 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: E2 17 00 4C 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [07:43:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:43:26]wFMCommunicate OK [07:43:26]CreateOFDProtocolMessage done [07:43:26]OFDSenderStorePacket 188079 [07:43:26]StoreOFDPacket docnum=188079 [07:43:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 96 A4 07 01 42 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DE 02 00 35 04 06 00 4C 7D 20 B4 B8 52 DC 35 2B ED EF 79 D4 4E [07:43:26]CheckFolder [07:43:26]dirname=/storage/ofd_packets [07:43:26]CheckFolder done [07:43:26]ProducePacketName [07:43:26]name=ofd_packets/00188079 [07:43:26]NVStorageSaveData ofd_packets/00188079 [07:43:26]File name is /storage/ofd_packets/00188079 [07:43:26]Write 301 bytes [07:43:26]NVStorageSaveData done [07:43:26]OFDSenderStorePacket done [07:43:26]KKMCreateOFDPacket done [07:43:26]NVStorageSaveData kkm_last_timestamp [07:43:26]File name is /storage/kkm_last_timestamp [07:43:26]Write 4 bytes [07:43:26]NVStorageSaveData done [07:43:26]ExternCall_PrintAddStr [07:43:26]wPrintStart [07:43:26]Write to MH i2c: 01 00 00 4D 24 71 [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: 01 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: 01 07 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: 01 07 00 4D 24 00 00 00 00 00 FF 0F 86 [07:43:26]RasterBufferAndPrint [07:43:26]line Счет N : (1)210131 [07:43:26]line ИНН: 02508201610067 [07:43:26]line Контрольно-Кассовый Чек [07:43:26]line ПРОДАЖА [07:43:26]line ТРК (МРК, ГНК) : 12 [07:43:26]line Товар: 2710124130 [07:43:26]line Аи-92-К-3 [07:43:26]line 14.950 * 66.90 [07:43:26]line = 1000.16 [07:43:26]line НДС 12% НСП 1% [07:43:26]line > о реализуемом товаре [07:43:26]line ОКРУГЛЕНИЕ: -0.16 [07:43:26]line ИТОГО: 1000.00 [07:43:26]line Внесено: 1000.00 [07:43:26]line СДАЧА: 0.00 [07:43:26]line НСП 1% : 8.85 [07:43:26]line НДС 12% : 106.21 [07:43:26]line Наличными: 1000.00 [07:43:26]line Безнал.: 0.00 [07:43:26]line Место: АЗС № 86 "Партнер Нефть" [07:43:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:43:26]line СНО: Общий режим [07:43:26]line Чек 108 22.10.2024 07:43 [07:43:26]line Смена: 461 ФФД: 1.0 [07:43:26]line ЗНМ: 0300000155 [07:43:26]line РНМ: 0000000000100030 [07:43:26]line Версия ККМ: 001 [07:43:26]line ФМ: 0000000000965340 [07:43:26]line ФД: 188079 [07:43:26]line ФПД: 84100303337554 [07:43:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074327&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188079&fm=84100303337554&tin=02508201610067®Number=0000000000100030&sum=100000 [07:43:26]written 0, free lines is 4095 [07:43:26]OFD Sender: Processing packet 188079 [packets to send 1062, broken 1061] [07:43:26]ProducePacketName [07:43:26]name=ofd_packets/00188079 [07:43:26]OFD Sender: To server: pG, [07:43:26]CommunicateWithHost lk.salyk.kg:30040 [07:43:26]ConnectInit lk.salyk.kg [07:43:26]Connected sock=10 [07:43:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 96 A4 07 01 42 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 9F 57 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DE 02 00 35 04 06 00 4C 7D 20 B4 B8 52 DC 35 2B ED EF 79 D4 4E [07:43:26]Write to MH i2c: 01 00 00 78 24 9C [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: 01 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: 01 07 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: 01 07 00 78 24 00 00 00 00 00 54 0C 03 [07:43:26]RasterBufferAndPrint [07:43:26]line [07:43:26]line [07:43:26]line [07:43:26]line [07:43:26]line [07:43:26]written 0, free lines is 3160 [07:43:26]MH_Cut [07:43:26]Write to MH i2c: D1 01 00 7F 24 01 75 [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: D1 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: D1 01 00 [07:43:26]MH_I2C_Read... [07:43:26]Read from MH i2c: D1 01 00 7F 24 00 74 [07:43:26]Write to MH i2c: 01 00 00 80 24 A4 [07:43:26]Write i2c OK [07:43:26]MH_I2C_Read... [07:43:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA 21 47 00 DE 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 39 36 35 33 34 30 10 04 04 00 AF DE 02 00 F4 03 04 00 8C 01 17 67 B6 04 01 00 00 E0 84 9F 5E 10 53 00 F9 [07:43:27]CommunicateWithHost err = 0 [07:43:27]CheckOFDResponse [07:43:27]1017 (14) - 77093643461234 [07:43:27]1041 (16) - 0000000000965340 [07:43:27]1040 (4) - 188079 [07:43:27]1012 (4) - 22.10.2024 01:36 [07:43:27]1206 (1) - 0 [07:43:27]OFD Sender: Remove packet 188079 [07:43:27]ProducePacketName [07:43:27]name=ofd_packets/00188079 [07:43:27]NVStorageDeleteData [07:43:27]OFD Sender: No OFD packet to send [07:43:28]*** Cut start [07:43:28]*** Partial cut [07:43:28]*** CUTSNS_PIN = 1 [07:43:28]*** CUTSNS_PIN = 0 [07:43:28]*** Brake cut motor [07:43:28]Read from MH i2c: 01 [07:43:28]MH_I2C_Read... [07:43:28]*** Stop cut motor [07:43:28]*** Cut end [07:43:28]Read from MH i2c: 01 07 00 [07:43:28]MH_I2C_Read... [07:43:28]Read from MH i2c: 01 07 00 80 24 00 00 00 00 00 FF 0F B9 [07:43:28]process_action close_receipt done [07:43:28]requested_data is exist [07:43:28]produce_requested_data [07:43:28]requested_item fm.sn is exist - process it [07:43:28]wFMCommunicate request_size=4 [07:43:28]MH_SAM_APDU [07:43:28]CAPDU: 80 11 00 00 [07:43:28]Write to MH i2c: E2 08 00 81 24 80 11 00 00 00 00 00 00 1F [07:43:28]Write i2c OK [07:43:28]MH_I2C_Read... [07:43:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:43:28]Read from MH i2c: E2 [07:43:28]MH_I2C_Read... [07:43:28]Read from MH i2c: E2 17 00 [07:43:28]MH_I2C_Read... [07:43:28]Read from MH i2c: E2 17 00 81 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [07:43:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:43:28]wFMCommunicate OK [07:43:28]requested_item fd.num is exist - process it [07:43:28]SAM_PROTO_GetFieldsCounters [07:43:28]wFMCommunicate request_size=4 [07:43:28]MH_SAM_APDU [07:43:28]CAPDU: 80 13 00 00 [07:43:28]Write to MH i2c: E2 08 00 82 24 80 13 00 00 00 00 00 00 22 [07:43:28]Write i2c OK [07:43:28]MH_I2C_Read... [07:43:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:43:28]Read from MH i2c: E2 [07:43:28]MH_I2C_Read... [07:43:28]Read from MH i2c: E2 62 00 [07:43:28]MH_I2C_Read... [07:43:28]Read from MH i2c: E2 62 00 82 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DE 02 00 0E 04 04 00 CD 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 CA [07:43:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DE 02 00 0E 04 04 00 CD 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 [07:43:28]wFMCommunicate OK [07:43:28]SAM_PROTO_GetFieldsCounters done [07:43:28]requested_item shift.num is exist - process it [07:43:28]requested_item shift.opened is exist - process it [07:43:28]req_shift_opened [07:43:28]FM_GetShiftState [07:43:28]SAM_PROTO_GetShiftState [07:43:28]wFMCommunicate request_size=4 [07:43:28]MH_SAM_APDU [07:43:28]CAPDU: 80 13 01 00 [07:43:28]Write to MH i2c: E2 08 00 83 24 80 13 01 00 00 00 00 00 24 [07:43:28]Write i2c OK [07:43:28]MH_I2C_Read... [07:43:29]Read from MH i2c: E2 [07:43:29]MH_I2C_Read... [07:43:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:43:29]Read from MH i2c: E2 0E 00 [07:43:29]MH_I2C_Read... [07:43:29]Read from MH i2c: E2 0E 00 83 24 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 19 [07:43:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:43:29]wFMCommunicate OK [07:43:29]SAM_PROTO_GetShiftState done [07:43:29]FM_GetShiftState done [07:43:29]req_shift_opened done [07:43:29]requested_item shift.open_date is exist - process it [07:43:29]req_shift_open_date [07:43:29]req_shift_open_date done [07:43:29]produce_requested_data done [07:43:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188079,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:43:29]process_action_free close_receipt [07:43:29]json_value_free [07:43:29]json_value_free done [07:43:29]process_json_proto returns [07:43:29]Send response to host [07:43:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188079,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:43:29]free response buf [07:43:29]execute_script done [07:43:29]execute_script returns [07:43:29]free content buf [07:43:29]Sock 8.Close socket [07:43:29]Sock 8.Thread stoped [07:43:32]OFD Sender: No OFD packet to send [07:43:37]OFD Sender: No OFD packet to send [07:43:42]OFD Sender: No OFD packet to send [07:43:47]OFD Sender: No OFD packet to send [07:43:52]OFD Sender: No OFD packet to send [07:43:57]OFD Sender: No OFD packet to send [07:44:02]OFD Sender: No OFD packet to send [07:44:07]OFD Sender: No OFD packet to send [07:44:12]OFD Sender: No OFD packet to send [07:44:17]OFD Sender: No OFD packet to send [07:44:22]OFD Sender: No OFD packet to send [07:44:27]OFD Sender: No OFD packet to send [07:44:32]OFD Sender: No OFD packet to send [07:44:37]OFD Sender: No OFD packet to send [07:44:42]OFD Sender: No OFD packet to send [07:44:47]OFD Sender: No OFD packet to send [07:44:52]OFD Sender: No OFD packet to send [07:44:57]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:43]OFD Sender: No OFD packet to send [07:46:48]OFD Sender: No OFD packet to send [07:46:53]OFD Sender: No OFD packet to send [07:46:58]OFD Sender: No OFD packet to send [07:47:03]OFD Sender: No OFD packet to send [07:47:08]OFD Sender: No OFD packet to send [07:47:13]OFD Sender: No OFD packet to send [07:47:18]OFD Sender: No OFD packet to send [07:47:23]OFD Sender: No OFD packet to send [07:47:28]OFD Sender: No OFD packet to send [07:47:33]OFD Sender: No OFD packet to send [07:47:38]OFD Sender: No OFD packet to send [07:47:40]accept exits with 9 [07:47:40]New connection [07:47:40]New thread 3067198820 created [07:47:40]Thread 3067055460 joined [07:47:40]Waiting for new connection... [07:47:40] Sock 9.Parse request [07:47:40]Sock 9.Check first char [07:47:40]Sock 9.First char is OK [07:47:40]request: POST /json_proto HTTP/1.0 [07:47:40]Method: POST [07:47:40]URL: /json_proto [07:47:40]Method is POST - this is cgi request [07:47:40]url: /json_proto [07:47:40]query_string will be loaded in cgi processing [07:47:40]execute_cgi json_proto POST (null) [07:47:40]execute_cgi path=json_proto method=POST [07:47:40]POST find Content-Length [07:47:40]Host: 172.17.42.131:8080 [07:47:40]Content-Length: 679 [07:47:40]Content-Type: application/json [07:47:40] [07:47:40]POST finish read [07:47:40]Found Content-Length = 679 [07:47:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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:47:40]execute_script... [07:47: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)210132", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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:47:40]POST & json_proto [07:47:40]process_json_proto [07:47:40]json parsed OK: [07:47:40]protocol is kg_v1.0 [07:47:40]action value=close_receipt [07:47:40]process_action close_receipt [07:47:40]cmd_close_receipt [07:47:40]MH_GetDate [07:47:40]Write to MH i2c: F0 00 00 84 24 97 [07:47:40]Write i2c OK [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: F0 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: F0 09 00 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: F0 09 00 84 24 00 9E 58 17 67 A0 18 CA 66 FC [07:47:40]GetLastDocTimeStamp 1729583007 [07:47:40]current date 1729583262 [07:47:40]FM_GetShiftState [07:47:40]SAM_PROTO_GetShiftState [07:47:40]wFMCommunicate request_size=4 [07:47:40]MH_SAM_APDU [07:47:40]CAPDU: 80 13 01 00 [07:47:40]Write to MH i2c: E2 08 00 85 24 80 13 01 00 00 00 00 00 26 [07:47:40]Write i2c OK [07:47:40]MH_I2C_Read... [07:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:40]Read from MH i2c: E2 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 0E 00 [07:47:40]MH_I2C_Read... [07:47:40]Read from MH i2c: E2 0E 00 85 24 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1B [07:47:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:47:40]wFMCommunicate OK [07:47:40]SAM_PROTO_GetShiftState done [07:47:40]FM_GetShiftState done [07:47:40]opened in 1729556094 [07:47:40]opened+sec_in_day 1729642494 [07:47:40]quantity*price = 150037 [07:47:40]sum+1 = 150039 [07:47:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 109 22.10.2024 07:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188080 ФПД: 26329150479466 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188080&fm=26329150479466&tin=02508201610067®Number=0000000000100030&sum=150000 [07:47:41]StoreToDocumentArchive [07:47:41]shift 461 fd 188080 [07:47:41]save to /storage/0461/doc_00188080 [07:47:41]save last doc name /storage/0461/doc_00188080 to /storage/kkm_last_doc_name [07:47:41]save OK [07:47:41]Clear old archive folders... [07:47:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [07:47:41]tlvbuf is 01C44CD0 [07:47:41]SAM_PROTO_ClearQueue [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 09 00 00 [07:47:41]Write to MH i2c: E2 08 00 92 24 80 09 00 00 00 00 00 00 28 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 92 24 00 90 00 2A [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]SAM_PROTO_ClearQueue done [07:47:41]KKMCreateOFDPacket [07:47:41]OFDProtocolAddRootSTLVToBuf [07:47:41]FM_MakeSignedData [07:47:41]FM_MakeSignedData [07:47:41]SAM_PROTO_SignData [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 0D 01 02 [07:47:41]Write to MH i2c: E2 08 00 93 24 80 0D 01 02 00 00 00 00 30 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 93 24 00 90 00 2B [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]wFMCommunicate request_size=255 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9E 58 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DE 02 00 35 04 06 00 17 F2 3B A9 [07:47:41]Write to MH i2c: E2 02 01 94 24 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9E 58 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DE 02 00 35 04 06 00 17 F2 3B A9 00 00 3E [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 94 24 00 90 00 2C [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]wFMCommunicate request_size=7 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 0D 02 02 02 5C 6A [07:47:41]Write to MH i2c: E2 0A 00 95 24 80 0D 02 02 02 00 5C 6A 00 00 FD [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 03 00 95 24 00 90 00 2D [07:47:41]RAPDU: 90 00 [07:47:41]wFMCommunicate OK [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 0D 03 02 [07:47:41]Write to MH i2c: E2 08 00 96 24 80 0D 03 02 00 00 00 00 35 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 0B 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 0B 00 96 24 00 23 8F F8 86 A1 58 FF 65 90 00 C3 [07:47:41]RAPDU: 23 8F F8 86 A1 58 FF 65 90 00 [07:47:41]wFMCommunicate OK [07:47:41]SAM_PROTO_SignData done [07:47:41]FM_MakeSignedData done [07:47:41]CreateOFDProtocolMessage [07:47:41]wFMCommunicate request_size=4 [07:47:41]MH_SAM_APDU [07:47:41]CAPDU: 80 11 00 00 [07:47:41]Write to MH i2c: E2 08 00 97 24 80 11 00 00 00 00 00 00 35 [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:41]Read from MH i2c: E2 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 17 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: E2 17 00 97 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [07:47:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:47:41]wFMCommunicate OK [07:47:41]CreateOFDProtocolMessage done [07:47:41]OFDSenderStorePacket 188080 [07:47:41]StoreOFDPacket docnum=188080 [07:47:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7B EC 04 01 28 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9E 58 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DE 02 00 35 04 06 00 17 F2 3B A9 5C 6A 23 8F F8 86 A1 58 FF 65 [07:47:41]CheckFolder [07:47:41]dirname=/storage/ofd_packets [07:47:41]CheckFolder done [07:47:41]ProducePacketName [07:47:41]name=ofd_packets/00188080 [07:47:41]NVStorageSaveData ofd_packets/00188080 [07:47:41]File name is /storage/ofd_packets/00188080 [07:47:41]Write 298 bytes [07:47:41]NVStorageSaveData done [07:47:41]OFDSenderStorePacket done [07:47:41]KKMCreateOFDPacket done [07:47:41]NVStorageSaveData kkm_last_timestamp [07:47:41]File name is /storage/kkm_last_timestamp [07:47:41]Write 4 bytes [07:47:41]NVStorageSaveData done [07:47:41]ExternCall_PrintAddStr [07:47:41]wPrintStart [07:47:41]Write to MH i2c: 01 00 00 98 24 BC [07:47:41]Write i2c OK [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: 01 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: 01 07 00 [07:47:41]MH_I2C_Read... [07:47:41]Read from MH i2c: 01 07 00 98 24 00 00 00 00 00 FF 0F D1 [07:47:41]RasterBufferAndPrint [07:47:41]line Счет N : (1)210132 [07:47:41]line ИНН: 02508201610067 [07:47:41]line Контрольно-Кассовый Чек [07:47:41]line ПРОДАЖА [07:47:41]line ТРК (МРК, ГНК) : 51 [07:47:41]line Товар: 2710194210 [07:47:41]line ДТ-К-5 [07:47:41]line 19.690 * 76.20 [07:47:41]line = 1500.38 [07:47:41]line НДС 12% НСП 1% [07:47:41]line > о реализуемом товаре [07:47:41]line ОКРУГЛЕНИЕ: -0.38 [07:47:41]line ИТОГО: 1500.00 [07:47:41]line Внесено: 1500.00 [07:47:41]line СДАЧА: 0.00 [07:47:41]line НСП 1% : 13.28 [07:47:41]line НДС 12% : 159.33 [07:47:41]line Наличными: 1500.00 [07:47:41]line Безнал.: 0.00 [07:47:41]line Место: АЗС № 86 "Партнер Нефть" [07:47:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:47:41]line СНО: Общий режим [07:47:41]line Чек 109 22.10.2024 07:47 [07:47:41]line Смена: 461 ФФД: 1.0 [07:47:41]line ЗНМ: 0300000155 [07:47:41]line РНМ: 0000000000100030 [07:47:41]line Версия ККМ: 001 [07:47:41]line ФМ: 0000000000965340 [07:47:41]line ФД: 188080 [07:47:41]line ФПД: 26329150479466 [07:47:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T074742&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188080&fm=26329150479466&tin=02508201610067®Number=0000000000100030&sum=150000 [07:47:41]written 0, free lines is 4095 [07:47:42]OFD Sender: Processing packet 188080 [packets to send 1062, broken 1061] [07:47:42]ProducePacketName [07:47:42]name=ofd_packets/00188080 [07:47:42]OFD Sender: To server: pG, [07:47:42]CommunicateWithHost lk.salyk.kg:30040 [07:47:42]ConnectInit lk.salyk.kg [07:47:42]Write to MH i2c: 01 00 00 C3 24 E7 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: 01 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: 01 07 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: 01 07 00 C3 24 00 00 00 00 00 50 0C 4A [07:47:42]RasterBufferAndPrint [07:47:42]line [07:47:42]line [07:47:42]line [07:47:42]line [07:47:42]line [07:47:42]written 0, free lines is 3155 [07:47:42]MH_Cut [07:47:42]Write to MH i2c: D1 01 00 CA 24 01 C0 [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: D1 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: D1 01 00 [07:47:42]MH_I2C_Read... [07:47:42]Read from MH i2c: D1 01 00 CA 24 00 BF [07:47:42]Write to MH i2c: 01 00 00 CB 24 EF [07:47:42]Write i2c OK [07:47:42]MH_I2C_Read... [07:47:43]*** Cut start [07:47:43]*** Partial cut [07:47:43]*** CUTSNS_PIN = 1 [07:47:43]*** CUTSNS_PIN = 0 [07:47:43]*** Brake cut motor [07:47:44]Read from MH i2c: 01 [07:47:44]MH_I2C_Read... [07:47:44]*** Stop cut motor [07:47:44]*** Cut end [07:47:44]Read from MH i2c: 01 07 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: 01 07 00 CB 24 00 00 00 00 00 FF 0F 04 [07:47:44]process_action close_receipt done [07:47:44]requested_data is exist [07:47:44]produce_requested_data [07:47:44]requested_item fm.sn is exist - process it [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 11 00 00 [07:47:44]Write to MH i2c: E2 08 00 CC 24 80 11 00 00 00 00 00 00 6A [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 17 00 CC 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [07:47:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:47:44]wFMCommunicate OK [07:47:44]requested_item fd.num is exist - process it [07:47:44]SAM_PROTO_GetFieldsCounters [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 13 00 00 [07:47:44]Write to MH i2c: E2 08 00 CD 24 80 13 00 00 00 00 00 00 6D [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 62 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 62 00 CD 24 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DE 02 00 0E 04 04 00 CD 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 19 [07:47:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DE 02 00 0E 04 04 00 CD 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 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_GetFieldsCounters done [07:47:44]requested_item shift.num is exist - process it [07:47:44]requested_item shift.opened is exist - process it [07:47:44]req_shift_opened [07:47:44]FM_GetShiftState [07:47:44]SAM_PROTO_GetShiftState [07:47:44]wFMCommunicate request_size=4 [07:47:44]MH_SAM_APDU [07:47:44]CAPDU: 80 13 01 00 [07:47:44]Write to MH i2c: E2 08 00 CE 24 80 13 01 00 00 00 00 00 6F [07:47:44]Write i2c OK [07:47:44]MH_I2C_Read... [07:47:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:47:44]Read from MH i2c: E2 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0E 00 [07:47:44]MH_I2C_Read... [07:47:44]Read from MH i2c: E2 0E 00 CE 24 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 64 [07:47:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:47:44]wFMCommunicate OK [07:47:44]SAM_PROTO_GetShiftState done [07:47:44]FM_GetShiftState done [07:47:44]req_shift_opened done [07:47:44]requested_item shift.open_date is exist - process it [07:47:44]req_shift_open_date [07:47:44]req_shift_open_date done [07:47:44]produce_requested_data done [07:47:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188080,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:47:44]process_action_free close_receipt [07:47:44]json_value_free [07:47:44]json_value_free done [07:47:44]process_json_proto returns [07:47:44]Send response to host [07:47:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188080,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:47:44]free response buf [07:47:44]execute_script done [07:47:44]execute_script returns [07:47:44]free content buf [07:47:44]Sock 9.Close socket [07:47:44]Sock 9.Thread stoped [07:49:56]ConnectInit Can't connect to host [07:49:56]CommunicateWithHost connect error [07:49:56]CommunicateWithHost err = -1 [07:49:56]OFD Sender: Server communicate error [07:50:01]OFD Sender: Processing packet 188080 [packets to send 1062, broken 1061] [07:50:01]ProducePacketName [07:50:01]name=ofd_packets/00188080 [07:50:01]OFD Sender: To server: pG, [07:50:01]CommunicateWithHost lk.salyk.kg:30040 [07:50:01]ConnectInit lk.salyk.kg [07:50:01]Connected sock=9 [07:50:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 7B EC 04 01 28 1E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 9E 58 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DE 02 00 35 04 06 00 17 F2 3B A9 5C 6A 23 8F F8 86 A1 58 FF 65 [07:50:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4C 69 47 00 54 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DE 02 00 F4 03 04 00 17 03 17 67 B6 04 01 00 00 94 79 66 AA 70 EA B4 4D [07:50:01]CommunicateWithHost err = 0 [07:50:01]CheckOFDResponse [07:50:01]1017 (14) - 77093643461234 [07:50:01]1041 (16) - 0000000000965340 [07:50:01]1040 (4) - 188080 [07:50:01]1012 (4) - 22.10.2024 01:42 [07:50:01]1206 (1) - 0 [07:50:01]OFD Sender: Remove packet 188080 [07:50:01]ProducePacketName [07:50:01]name=ofd_packets/00188080 [07:50:01]NVStorageDeleteData [07:50:02]OFD Sender: No OFD packet to send [07:50:07]OFD Sender: No OFD packet to send [07:50:12]OFD Sender: No OFD packet to send [07:50:17]OFD Sender: No OFD packet to send [07:50:21]accept exits with 8 [07:50:21]New connection [07:50:21]New thread 3067055460 created [07:50:21]Thread 3067198820 joined [07:50:21]Waiting for new connection... [07:50:21] Sock 8.Parse request [07:50:21]Sock 8.Check first char [07:50:21]Sock 8.First char is OK [07:50:21]request: POST /json_proto HTTP/1.0 [07:50:21]Method: POST [07:50:21]URL: /json_proto [07:50:21]Method is POST - this is cgi request [07:50:21]url: /json_proto [07:50:21]query_string will be loaded in cgi processing [07:50:21]execute_cgi json_proto POST (null) [07:50:21]execute_cgi path=json_proto method=POST [07:50:21]POST find Content-Length [07:50:21]Host: 172.17.42.131:8080 [07:50:21]Content-Length: 682 [07:50:21]Content-Type: application/json [07:50:21] [07:50:21]POST finish read [07:50:21]Found Content-Length = 682 [07:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:21]execute_script... [07:50: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)210133", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:50:21]POST & json_proto [07:50:21]process_json_proto [07:50:21]json parsed OK: [07:50:21]protocol is kg_v1.0 [07:50:21]action value=close_receipt [07:50:21]process_action close_receipt [07:50:21]cmd_close_receipt [07:50:21]MH_GetDate [07:50:21]Write to MH i2c: F0 00 00 CF 24 E2 [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: F0 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: F0 09 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: F0 09 00 CF 24 00 3F 59 17 67 A0 18 CA 66 E9 [07:50:21]GetLastDocTimeStamp 1729583262 [07:50:21]current date 1729583423 [07:50:21]FM_GetShiftState [07:50:21]SAM_PROTO_GetShiftState [07:50:21]wFMCommunicate request_size=4 [07:50:21]MH_SAM_APDU [07:50:21]CAPDU: 80 13 01 00 [07:50:21]Write to MH i2c: E2 08 00 D0 24 80 13 01 00 00 00 00 00 71 [07:50:21]Write i2c OK [07:50:21]MH_I2C_Read... [07:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:21]Read from MH i2c: E2 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 0E 00 [07:50:21]MH_I2C_Read... [07:50:21]Read from MH i2c: E2 0E 00 D0 24 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 66 [07:50:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:50:21]wFMCommunicate OK [07:50:21]SAM_PROTO_GetShiftState done [07:50:21]FM_GetShiftState done [07:50:21]opened in 1729556094 [07:50:21]opened+sec_in_day 1729642494 [07:50:21]quantity*price = 100015 [07:50:21]sum+1 = 100017 [07:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 110 22.10.2024 07:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188081 ФПД: 132156630955006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075023&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188081&fm=132156630955006&tin=02508201610067®Number=0000000000100030&sum=100000 [07:50:22]StoreToDocumentArchive [07:50:22]shift 461 fd 188081 [07:50:22]save to /storage/0461/doc_00188081 [07:50:22]save last doc name /storage/0461/doc_00188081 to /storage/kkm_last_doc_name [07:50:22]save OK [07:50:22]Clear old archive folders... [07:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:50:22]tlvbuf is 01B995D0 [07:50:22]SAM_PROTO_ClearQueue [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 09 00 00 [07:50:22]Write to MH i2c: E2 08 00 DD 24 80 09 00 00 00 00 00 00 73 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 DD 24 00 90 00 75 [07:50:22]RAPDU: 90 00 [07:50:22]wFMCommunicate OK [07:50:22]SAM_PROTO_ClearQueue done [07:50:22]KKMCreateOFDPacket [07:50:22]OFDProtocolAddRootSTLVToBuf [07:50:22]FM_MakeSignedData [07:50:22]FM_MakeSignedData [07:50:22]SAM_PROTO_SignData [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 0D 01 02 [07:50:22]Write to MH i2c: E2 08 00 DE 24 80 0D 01 02 00 00 00 00 7B [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 DE 24 00 90 00 76 [07:50:22]RAPDU: 90 00 [07:50:22]wFMCommunicate OK [07:50:22]wFMCommunicate request_size=255 [07:50:22]MH_SAM_APDU [07:50: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3F 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DE 02 00 35 04 06 00 78 [07:50:22]Write to MH i2c: E2 02 01 DF 24 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3F 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DE 02 00 35 04 06 00 78 00 00 43 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 DF 24 00 90 00 77 [07:50:22]RAPDU: 90 00 [07:50:22]wFMCommunicate OK [07:50:22]wFMCommunicate request_size=10 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 0D 02 02 05 32 1D 0A F3 FE [07:50:22]Write to MH i2c: E2 0D 00 E0 24 80 0D 02 02 05 00 32 1D 0A F3 FE 00 00 D2 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 03 00 E0 24 00 90 00 78 [07:50:22]RAPDU: 90 00 [07:50:22]wFMCommunicate OK [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 0D 03 02 [07:50:22]Write to MH i2c: E2 08 00 E1 24 80 0D 03 02 00 00 00 00 80 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 0B 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 0B 00 E1 24 00 AC 3A B1 A4 29 68 47 77 90 00 0B [07:50:22]RAPDU: AC 3A B1 A4 29 68 47 77 90 00 [07:50:22]wFMCommunicate OK [07:50:22]SAM_PROTO_SignData done [07:50:22]FM_MakeSignedData done [07:50:22]CreateOFDProtocolMessage [07:50:22]wFMCommunicate request_size=4 [07:50:22]MH_SAM_APDU [07:50:22]CAPDU: 80 11 00 00 [07:50:22]Write to MH i2c: E2 08 00 E2 24 80 11 00 00 00 00 00 00 80 [07:50:22]Write i2c OK [07:50:22]MH_I2C_Read... [07:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:22]Read from MH i2c: E2 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 17 00 [07:50:22]MH_I2C_Read... [07:50:22]Read from MH i2c: E2 17 00 E2 24 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [07:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:50:22]wFMCommunicate OK [07:50:22]CreateOFDProtocolMessage done [07:50:22]OFDSenderStorePacket 188081 [07:50:22]StoreOFDPacket docnum=188081 [07:50:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 72 07 01 D1 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3F 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DE 02 00 35 04 06 00 78 32 1D 0A F3 FE AC 3A B1 A4 29 68 47 77 [07:50:22]CheckFolder [07:50:22]dirname=/storage/ofd_packets [07:50:22]CheckFolder done [07:50:22]ProducePacketName [07:50:22]name=ofd_packets/00188081 [07:50:22]NVStorageSaveData ofd_packets/00188081 [07:50:22]File name is /storage/ofd_packets/00188081 [07:50:23]Write 301 bytes [07:50:23]NVStorageSaveData done [07:50:23]OFDSenderStorePacket done [07:50:23]KKMCreateOFDPacket done [07:50:23]NVStorageSaveData kkm_last_timestamp [07:50:23]File name is /storage/kkm_last_timestamp [07:50:23]Write 4 bytes [07:50:23]NVStorageSaveData done [07:50:23]ExternCall_PrintAddStr [07:50:23]wPrintStart [07:50:23]Write to MH i2c: 01 00 00 E3 24 07 [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 07 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 07 00 E3 24 00 00 00 00 00 FF 0F 1C [07:50:23]RasterBufferAndPrint [07:50:23]line Счет N : (1)210133 [07:50:23]line ИНН: 02508201610067 [07:50:23]line Контрольно-Кассовый Чек [07:50:23]line ПРОДАЖА [07:50:23]line ТРК (МРК, ГНК) : 32 [07:50:23]line Товар: 2710124130 [07:50:23]line Аи-92-К-3 [07:50:23]line 14.950 * 66.90 [07:50:23]line = 1000.16 [07:50:23]line НДС 12% НСП 1% [07:50:23]line > о реализуемом товаре [07:50:23]line ОКРУГЛЕНИЕ: -0.16 [07:50:23]line ИТОГО: 1000.00 [07:50:23]line Внесено: 1000.00 [07:50:23]line СДАЧА: 0.00 [07:50:23]line НСП 1% : 8.85 [07:50:23]line НДС 12% : 106.21 [07:50:23]line Наличными: 1000.00 [07:50:23]line Безнал.: 0.00 [07:50:23]line Место: АЗС № 86 "Партнер Нефть" [07:50:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:50:23]line СНО: Общий режим [07:50:23]line Чек 110 22.10.2024 07:50 [07:50:23]line Смена: 461 ФФД: 1.0 [07:50:23]line ЗНМ: 0300000155 [07:50:23]line РНМ: 0000000000100030 [07:50:23]line Версия ККМ: 001 [07:50:23]line ФМ: 0000000000965340 [07:50:23]line ФД: 188081 [07:50:23]line ФПД: 132156630955006 [07:50:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075023&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188081&fm=132156630955006&tin=02508201610067®Number=0000000000100030&sum=100000 [07:50:23]written 0, free lines is 4095 [07:50:23]OFD Sender: Processing packet 188081 [packets to send 1062, broken 1061] [07:50:23]ProducePacketName [07:50:23]name=ofd_packets/00188081 [07:50:23]OFD Sender: To server: pG, [07:50:23]CommunicateWithHost lk.salyk.kg:30040 [07:50:23]ConnectInit lk.salyk.kg [07:50:23]Connected sock=9 [07:50:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 72 07 01 D1 EE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 3F 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DE 02 00 35 04 06 00 78 32 1D 0A F3 FE AC 3A B1 A4 29 68 47 77 [07:50:23]Write to MH i2c: 01 00 00 0E 25 33 [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 07 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: 01 07 00 0E 25 00 00 00 00 00 50 0C 96 [07:50:23]RasterBufferAndPrint [07:50:23]line [07:50:23]line [07:50:23]line [07:50:23]line [07:50:23]line [07:50:23]written 0, free lines is 3157 [07:50:23]MH_Cut [07:50:23]Write to MH i2c: D1 01 00 15 25 01 0C [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: D1 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: D1 01 00 [07:50:23]MH_I2C_Read... [07:50:23]Read from MH i2c: D1 01 00 15 25 00 0B [07:50:23]Write to MH i2c: 01 00 00 16 25 3B [07:50:23]Write i2c OK [07:50:23]MH_I2C_Read... [07:50:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A D5 47 00 64 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 39 36 35 33 34 30 10 04 04 00 B1 DE 02 00 F4 03 04 00 2D 03 17 67 B6 04 01 00 00 D2 55 F6 62 E1 E7 B6 36 [07:50:23]CommunicateWithHost err = 0 [07:50:23]CheckOFDResponse [07:50:23]1017 (14) - 77093643461234 [07:50:23]1041 (16) - 0000000000965340 [07:50:23]1040 (4) - 188081 [07:50:23]1012 (4) - 22.10.2024 01:43 [07:50:23]1206 (1) - 0 [07:50:23]OFD Sender: Remove packet 188081 [07:50:23]ProducePacketName [07:50:23]name=ofd_packets/00188081 [07:50:23]NVStorageDeleteData [07:50:24]OFD Sender: No OFD packet to send [07:50:24]*** Cut start [07:50:24]*** Partial cut [07:50:24]*** CUTSNS_PIN = 1 [07:50:24]*** CUTSNS_PIN = 0 [07:50:25]*** Brake cut motor [07:50:25]Read from MH i2c: 01 [07:50:25]MH_I2C_Read... [07:50:25]*** Stop cut motor [07:50:25]*** Cut end [07:50:25]Read from MH i2c: 01 07 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: 01 07 00 16 25 00 00 00 00 00 FF 0F 50 [07:50:25]process_action close_receipt done [07:50:25]requested_data is exist [07:50:25]produce_requested_data [07:50:25]requested_item fm.sn is exist - process it [07:50:25]wFMCommunicate request_size=4 [07:50:25]MH_SAM_APDU [07:50:25]CAPDU: 80 11 00 00 [07:50:25]Write to MH i2c: E2 08 00 17 25 80 11 00 00 00 00 00 00 B6 [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:50:25]Read from MH i2c: E2 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 17 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 17 00 17 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [07:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:50:25]wFMCommunicate OK [07:50:25]requested_item fd.num is exist - process it [07:50:25]SAM_PROTO_GetFieldsCounters [07:50:25]wFMCommunicate request_size=4 [07:50:25]MH_SAM_APDU [07:50:25]CAPDU: 80 13 00 00 [07:50:25]Write to MH i2c: E2 08 00 18 25 80 13 00 00 00 00 00 00 B9 [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:50:25]Read from MH i2c: E2 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 62 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 62 00 18 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DE 02 00 0E 04 04 00 CD 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 69 [07:50:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DE 02 00 0E 04 04 00 CD 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 [07:50:25]wFMCommunicate OK [07:50:25]SAM_PROTO_GetFieldsCounters done [07:50:25]requested_item shift.num is exist - process it [07:50:25]requested_item shift.opened is exist - process it [07:50:25]req_shift_opened [07:50:25]FM_GetShiftState [07:50:25]SAM_PROTO_GetShiftState [07:50:25]wFMCommunicate request_size=4 [07:50:25]MH_SAM_APDU [07:50:25]CAPDU: 80 13 01 00 [07:50:25]Write to MH i2c: E2 08 00 19 25 80 13 01 00 00 00 00 00 BB [07:50:25]Write i2c OK [07:50:25]MH_I2C_Read... [07:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:50:25]Read from MH i2c: E2 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 0E 00 [07:50:25]MH_I2C_Read... [07:50:25]Read from MH i2c: E2 0E 00 19 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B0 [07:50:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:50:25]wFMCommunicate OK [07:50:25]SAM_PROTO_GetShiftState done [07:50:25]FM_GetShiftState done [07:50:25]req_shift_opened done [07:50:25]requested_item shift.open_date is exist - process it [07:50:25]req_shift_open_date [07:50:25]req_shift_open_date done [07:50:25]produce_requested_data done [07:50:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188081,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:50:25]process_action_free close_receipt [07:50:25]json_value_free [07:50:25]json_value_free done [07:50:25]process_json_proto returns [07:50:25]Send response to host [07:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188081,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:50:25]free response buf [07:50:25]execute_script done [07:50:25]execute_script returns [07:50:25]free content buf [07:50:25]Sock 8.Close socket [07:50:25]Sock 8.Thread stoped [07:50:29]OFD Sender: No OFD packet to send [07:50:34]OFD Sender: No OFD packet to send [07:50:39]OFD Sender: No OFD packet to send [07:50:44]OFD Sender: No OFD packet to send [07:50:49]OFD Sender: No OFD packet to send [07:50:54]OFD Sender: No OFD packet to send [07:50:59]OFD Sender: No OFD packet to send [07:51:04]OFD Sender: No OFD packet to send [07:51:09]OFD Sender: No OFD packet to send [07:51:14]OFD Sender: No OFD packet to send [07:51:16]accept exits with 10 [07:51:16]New connection [07:51:16]New thread 3067198820 created [07:51:16]Thread 3067055460 joined [07:51:16]Waiting for new connection... [07:51:16] Sock 10.Parse request [07:51:16]Sock 10.Check first char [07:51:16]Sock 10.First char is OK [07:51:16]request: POST /json_proto HTTP/1.0 [07:51:16]Method: POST [07:51:16]URL: /json_proto [07:51:16]Method is POST - this is cgi request [07:51:16]url: /json_proto [07:51:16]query_string will be loaded in cgi processing [07:51:16]execute_cgi json_proto POST (null) [07:51:16]execute_cgi path=json_proto method=POST [07:51:16]POST find Content-Length [07:51:16]Host: 172.17.42.131:8080 [07:51:16]Content-Length: 677 [07:51:16]Content-Type: application/json [07:51:16] [07:51:16]POST finish read [07:51:16]Found Content-Length = 677 [07:51:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.140, "sum" : 477.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 477.00, "payments": [ { "type": 0, "sum" : 477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:16]execute_script... [07:51: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)210134", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.140, "sum" : 477.67, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 477.00, "payments": [ { "type": 0, "sum" : 477.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:51:16]POST & json_proto [07:51:16]process_json_proto [07:51:16]json parsed OK: [07:51:16]protocol is kg_v1.0 [07:51:16]action value=close_receipt [07:51:16]process_action close_receipt [07:51:16]cmd_close_receipt [07:51:16]MH_GetDate [07:51:16]Write to MH i2c: F0 00 00 1A 25 2E [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: F0 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: F0 09 00 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: F0 09 00 1A 25 00 77 59 17 67 A0 18 CA 66 6D [07:51:16]GetLastDocTimeStamp 1729583423 [07:51:16]current date 1729583479 [07:51:16]FM_GetShiftState [07:51:16]SAM_PROTO_GetShiftState [07:51:16]wFMCommunicate request_size=4 [07:51:16]MH_SAM_APDU [07:51:16]CAPDU: 80 13 01 00 [07:51:16]Write to MH i2c: E2 08 00 1B 25 80 13 01 00 00 00 00 00 BD [07:51:16]Write i2c OK [07:51:16]MH_I2C_Read... [07:51:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:16]Read from MH i2c: E2 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: E2 0E 00 [07:51:16]MH_I2C_Read... [07:51:16]Read from MH i2c: E2 0E 00 1B 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B2 [07:51:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:51:16]wFMCommunicate OK [07:51:16]SAM_PROTO_GetShiftState done [07:51:16]FM_GetShiftState done [07:51:16]opened in 1729556094 [07:51:16]opened+sec_in_day 1729642494 [07:51:16]quantity*price = 47766 [07:51:16]sum+1 = 47768 [07:51:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.67 ИТОГО: 477.00 Внесено: 500.00 СДАЧА: 23.00 НСП 1% : 4.23 НДС 12% : 50.73 Наличными: 477.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 111 22.10.2024 07:51 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188082 ФПД: 23495653826196 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075119&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188082&fm=23495653826196&tin=02508201610067®Number=0000000000100030&sum=47700 [07:51:18]StoreToDocumentArchive [07:51:18]shift 461 fd 188082 [07:51:18]save to /storage/0461/doc_00188082 [07:51:18]save last doc name /storage/0461/doc_00188082 to /storage/kkm_last_doc_name [07:51:18]save OK [07:51:18]Clear old archive folders... [07:51:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:51:18]tlvbuf is 01B99790 [07:51:18]SAM_PROTO_ClearQueue [07:51:18]wFMCommunicate request_size=4 [07:51:18]MH_SAM_APDU [07:51:18]CAPDU: 80 09 00 00 [07:51:18]Write to MH i2c: E2 08 00 28 25 80 09 00 00 00 00 00 00 BF [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:51:18]Read from MH i2c: E2 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 28 25 00 90 00 C1 [07:51:18]RAPDU: 90 00 [07:51:18]wFMCommunicate OK [07:51:18]SAM_PROTO_ClearQueue done [07:51:18]KKMCreateOFDPacket [07:51:18]OFDProtocolAddRootSTLVToBuf [07:51:18]FM_MakeSignedData [07:51:18]FM_MakeSignedData [07:51:18]SAM_PROTO_SignData [07:51:18]wFMCommunicate request_size=4 [07:51:18]MH_SAM_APDU [07:51:18]CAPDU: 80 0D 01 02 [07:51:18]Write to MH i2c: E2 08 00 29 25 80 0D 01 02 00 00 00 00 C7 [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:51:18]Read from MH i2c: E2 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 29 25 00 90 00 C2 [07:51:18]RAPDU: 90 00 [07:51:18]wFMCommunicate OK [07:51:18]wFMCommunicate request_size=255 [07:51:18]MH_SAM_APDU [07:51: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 33 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 13 00 00 00 00 07 04 06 00 54 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 77 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DE 02 00 35 04 06 00 15 [07:51:18]Write to MH i2c: E2 02 01 2A 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 13 00 00 00 00 07 04 06 00 54 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 77 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DE 02 00 35 04 06 00 15 00 00 1B [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:18]Read from MH i2c: E2 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 2A 25 00 90 00 C3 [07:51:18]RAPDU: 90 00 [07:51:18]wFMCommunicate OK [07:51:18]wFMCommunicate request_size=10 [07:51:18]MH_SAM_APDU [07:51:18]CAPDU: 80 0D 02 02 05 5E 82 19 9E 94 [07:51:18]Write to MH i2c: E2 0D 00 2B 25 80 0D 02 02 05 00 5E 82 19 9E 94 00 00 FF [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:51:18]Read from MH i2c: E2 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 03 00 2B 25 00 90 00 C4 [07:51:18]RAPDU: 90 00 [07:51:18]wFMCommunicate OK [07:51:18]wFMCommunicate request_size=4 [07:51:18]MH_SAM_APDU [07:51:18]CAPDU: 80 0D 03 02 [07:51:18]Write to MH i2c: E2 08 00 2C 25 80 0D 03 02 00 00 00 00 CC [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:51:18]Read from MH i2c: E2 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 0B 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 0B 00 2C 25 00 77 6C 23 86 87 2F E5 AE 90 00 A2 [07:51:18]RAPDU: 77 6C 23 86 87 2F E5 AE 90 00 [07:51:18]wFMCommunicate OK [07:51:18]SAM_PROTO_SignData done [07:51:18]FM_MakeSignedData done [07:51:18]CreateOFDProtocolMessage [07:51:18]wFMCommunicate request_size=4 [07:51:18]MH_SAM_APDU [07:51:18]CAPDU: 80 11 00 00 [07:51:18]Write to MH i2c: E2 08 00 2D 25 80 11 00 00 00 00 00 00 CC [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:18]Read from MH i2c: E2 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 17 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: E2 17 00 2D 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [07:51:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:51:18]wFMCommunicate OK [07:51:18]CreateOFDProtocolMessage done [07:51:18]OFDSenderStorePacket 188082 [07:51:18]StoreOFDPacket docnum=188082 [07:51:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 0D 07 01 10 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 13 00 00 00 00 07 04 06 00 54 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 77 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DE 02 00 35 04 06 00 15 5E 82 19 9E 94 77 6C 23 86 87 2F E5 AE [07:51:18]CheckFolder [07:51:18]dirname=/storage/ofd_packets [07:51:18]CheckFolder done [07:51:18]ProducePacketName [07:51:18]name=ofd_packets/00188082 [07:51:18]NVStorageSaveData ofd_packets/00188082 [07:51:18]File name is /storage/ofd_packets/00188082 [07:51:18]Write 301 bytes [07:51:18]NVStorageSaveData done [07:51:18]OFDSenderStorePacket done [07:51:18]KKMCreateOFDPacket done [07:51:18]NVStorageSaveData kkm_last_timestamp [07:51:18]File name is /storage/kkm_last_timestamp [07:51:18]Write 4 bytes [07:51:18]NVStorageSaveData done [07:51:18]ExternCall_PrintAddStr [07:51:18]wPrintStart [07:51:18]Write to MH i2c: 01 00 00 2E 25 53 [07:51:18]Write i2c OK [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: 01 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: 01 07 00 [07:51:18]MH_I2C_Read... [07:51:18]Read from MH i2c: 01 07 00 2E 25 00 00 00 00 00 FF 0F 68 [07:51:18]RasterBufferAndPrint [07:51:18]line Счет N : (1)210134 [07:51:18]line ИНН: 02508201610067 [07:51:18]line Контрольно-Кассовый Чек [07:51:18]line ПРОДАЖА [07:51:18]line ТРК (МРК, ГНК) : 42 [07:51:18]line Товар: 2710124130 [07:51:18]line Аи-92-К-3 [07:51:18]line 7.140 * 66.90 [07:51:18]line = 477.67 [07:51:18]line НДС 12% НСП 1% [07:51:18]line > о реализуемом товаре [07:51:18]line ОКРУГЛЕНИЕ: -0.67 [07:51:18]line ИТОГО: 477.00 [07:51:18]line Внесено: 500.00 [07:51:18]line СДАЧА: 23.00 [07:51:18]line НСП 1% : 4.23 [07:51:18]line НДС 12% : 50.73 [07:51:18]line Наличными: 477.00 [07:51:18]line Безнал.: 0.00 [07:51:18]line Место: АЗС № 86 "Партнер Нефть" [07:51:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:51:18]line СНО: Общий режим [07:51:18]line Чек 111 22.10.2024 07:51 [07:51:18]line Смена: 461 ФФД: 1.0 [07:51:18]line ЗНМ: 0300000155 [07:51:18]line РНМ: 0000000000100030 [07:51:18]line Версия ККМ: 001 [07:51:18]line ФМ: 0000000000965340 [07:51:18]line ФД: 188082 [07:51:18]line ФПД: 23495653826196 [07:51:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075119&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188082&fm=23495653826196&tin=02508201610067®Number=0000000000100030&sum=47700 [07:51:18]written 0, free lines is 4095 [07:51:18]OFD Sender: Processing packet 188082 [packets to send 1062, broken 1061] [07:51:18]ProducePacketName [07:51:18]name=ofd_packets/00188082 [07:51:18]OFD Sender: To server: pG, [07:51:18]CommunicateWithHost lk.salyk.kg:30040 [07:51:18]ConnectInit lk.salyk.kg [07:51:18]Connected sock=8 [07:51:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 0D 07 01 10 3B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E4 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 BA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 BA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 13 00 00 00 00 07 04 06 00 54 BA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 00 00 00 F4 03 04 00 77 59 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DE 02 00 35 04 06 00 15 5E 82 19 9E 94 77 6C 23 86 87 2F E5 AE [07:51:19]Write to MH i2c: 01 00 00 59 25 7E [07:51:19]Write i2c OK [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: 01 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: 01 07 00 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: 01 07 00 59 25 00 00 00 00 00 50 0C E1 [07:51:19]RasterBufferAndPrint [07:51:19]line [07:51:19]line [07:51:19]line [07:51:19]line [07:51:19]line [07:51:19]written 0, free lines is 3156 [07:51:19]MH_Cut [07:51:19]Write to MH i2c: D1 01 00 60 25 01 57 [07:51:19]Write i2c OK [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: D1 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: D1 01 00 [07:51:19]MH_I2C_Read... [07:51:19]Read from MH i2c: D1 01 00 60 25 00 56 [07:51:19]Write to MH i2c: 01 00 00 61 25 86 [07:51:19]Write i2c OK [07:51:19]MH_I2C_Read... [07:51:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B0 2E 47 00 AE 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 39 36 35 33 34 30 10 04 04 00 B2 DE 02 00 F4 03 04 00 65 03 17 67 B6 04 01 00 00 40 B5 35 76 50 37 DA 7A [07:51:19]CommunicateWithHost err = 0 [07:51:19]CheckOFDResponse [07:51:19]1017 (14) - 77093643461234 [07:51:19]1041 (16) - 0000000000965340 [07:51:19]1040 (4) - 188082 [07:51:19]1012 (4) - 22.10.2024 01:44 [07:51:19]1206 (1) - 0 [07:51:19]OFD Sender: Remove packet 188082 [07:51:19]ProducePacketName [07:51:19]name=ofd_packets/00188082 [07:51:19]NVStorageDeleteData [07:51:19]OFD Sender: No OFD packet to send [07:51:20]*** Cut start [07:51:20]*** Partial cut [07:51:20]*** CUTSNS_PIN = 1 [07:51:20]*** CUTSNS_PIN = 0 [07:51:20]*** Brake cut motor [07:51:21]Read from MH i2c: 01 [07:51:21]MH_I2C_Read... [07:51:21]*** Stop cut motor [07:51:21]*** Cut end [07:51:21]Read from MH i2c: 01 07 00 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: 01 07 00 61 25 00 00 00 00 00 FF 0F 9B [07:51:21]process_action close_receipt done [07:51:21]requested_data is exist [07:51:21]produce_requested_data [07:51:21]requested_item fm.sn is exist - process it [07:51:21]wFMCommunicate request_size=4 [07:51:21]MH_SAM_APDU [07:51:21]CAPDU: 80 11 00 00 [07:51:21]Write to MH i2c: E2 08 00 62 25 80 11 00 00 00 00 00 00 01 [07:51:21]Write i2c OK [07:51:21]MH_I2C_Read... [07:51:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:51:21]Read from MH i2c: E2 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: E2 17 00 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: E2 17 00 62 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [07:51:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:51:21]wFMCommunicate OK [07:51:21]requested_item fd.num is exist - process it [07:51:21]SAM_PROTO_GetFieldsCounters [07:51:21]wFMCommunicate request_size=4 [07:51:21]MH_SAM_APDU [07:51:21]CAPDU: 80 13 00 00 [07:51:21]Write to MH i2c: E2 08 00 63 25 80 13 00 00 00 00 00 00 04 [07:51:21]Write i2c OK [07:51:21]MH_I2C_Read... [07:51:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:51:21]Read from MH i2c: E2 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: E2 62 00 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: E2 62 00 63 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DE 02 00 0E 04 04 00 CD 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 B8 [07:51:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DE 02 00 0E 04 04 00 CD 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:51:21]wFMCommunicate OK [07:51:21]SAM_PROTO_GetFieldsCounters done [07:51:21]requested_item shift.num is exist - process it [07:51:21]requested_item shift.opened is exist - process it [07:51:21]req_shift_opened [07:51:21]FM_GetShiftState [07:51:21]SAM_PROTO_GetShiftState [07:51:21]wFMCommunicate request_size=4 [07:51:21]MH_SAM_APDU [07:51:21]CAPDU: 80 13 01 00 [07:51:21]Write to MH i2c: E2 08 00 64 25 80 13 01 00 00 00 00 00 06 [07:51:21]Write i2c OK [07:51:21]MH_I2C_Read... [07:51:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:51:21]Read from MH i2c: E2 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: E2 0E 00 [07:51:21]MH_I2C_Read... [07:51:21]Read from MH i2c: E2 0E 00 64 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FB [07:51:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:51:21]wFMCommunicate OK [07:51:21]SAM_PROTO_GetShiftState done [07:51:21]FM_GetShiftState done [07:51:21]req_shift_opened done [07:51:21]requested_item shift.open_date is exist - process it [07:51:21]req_shift_open_date [07:51:21]req_shift_open_date done [07:51:21]produce_requested_data done [07:51:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188082,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:51:21]process_action_free close_receipt [07:51:21]json_value_free [07:51:21]json_value_free done [07:51:21]process_json_proto returns [07:51:21]Send response to host [07:51:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188082,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:51:21]free response buf [07:51:21]execute_script done [07:51:21]execute_script returns [07:51:21]free content buf [07:51:21]Sock 10.Close socket [07:51:21]Sock 10.Thread stoped [07:51:24]OFD Sender: No OFD packet to send [07:51:29]OFD Sender: No OFD packet to send [07:51:34]OFD Sender: No OFD packet to send [07:51:39]OFD Sender: No OFD packet to send [07:51:44]OFD Sender: No OFD packet to send [07:51:49]OFD Sender: No OFD packet to send [07:51:54]OFD Sender: No OFD packet to send [07:51:59]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:55]OFD Sender: No OFD packet to send [07:53:00]OFD Sender: No OFD packet to send [07:53:05]OFD Sender: No OFD packet to send [07:53:10]OFD Sender: No OFD packet to send [07:53:15]OFD Sender: No OFD packet to send [07:53:20]OFD Sender: No OFD packet to send [07:53:25]OFD Sender: No OFD packet to send [07:53:30]OFD Sender: No OFD packet to send [07:53:35]OFD Sender: No OFD packet to send [07:53:40]OFD Sender: No OFD packet to send [07:53:45]OFD Sender: No OFD packet to send [07:53:50]OFD Sender: No OFD packet to send [07:53:55]OFD Sender: No OFD packet to send [07:54:00]OFD Sender: No OFD packet to send [07:54:05]OFD Sender: No OFD packet to send [07:54:10]OFD Sender: No OFD packet to send [07:54:15]OFD Sender: No OFD packet to send [07:54:20]OFD Sender: No OFD packet to send [07:54:25]OFD Sender: No OFD packet to send [07:54:30]OFD Sender: No OFD packet to send [07:54:35]OFD Sender: No OFD packet to send [07:54:40]OFD Sender: No OFD packet to send [07:54:45]OFD Sender: No OFD packet to send [07:54:50]OFD Sender: No OFD packet to send [07:54:55]OFD Sender: No OFD packet to send [07:54:57]accept exits with 9 [07:54:57]New connection [07:54:57]New thread 3067055460 created [07:54:57]Thread 3067198820 joined [07:54:57]Waiting for new connection... [07:54:57] Sock 9.Parse request [07:54:57]Sock 9.Check first char [07:54:57]Sock 9.First char is OK [07:54:57]request: POST /json_proto HTTP/1.0 [07:54:57]Method: POST [07:54:57]URL: /json_proto [07:54:57]Method is POST - this is cgi request [07:54:57]url: /json_proto [07:54:57]query_string will be loaded in cgi processing [07:54:57]execute_cgi json_proto POST (null) [07:54:57]execute_cgi path=json_proto method=POST [07:54:57]POST find Content-Length [07:54:57]Host: 172.17.42.131:8080 [07:54:57]Content-Length: 688 [07:54:57]Content-Type: application/json [07:54:57] [07:54:57]POST finish read [07:54:57]Found Content-Length = 688 [07:54:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [07:54:57]execute_script... [07:54: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)210135", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [07:54:57]POST & json_proto [07:54:57]process_json_proto [07:54:57]json parsed OK: [07:54:57]protocol is kg_v1.0 [07:54:57]action value=close_receipt [07:54:57]process_action close_receipt [07:54:57]cmd_close_receipt [07:54:57]MH_GetDate [07:54:57]Write to MH i2c: F0 00 00 65 25 79 [07:54:57]Write i2c OK [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: F0 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: F0 09 00 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: F0 09 00 65 25 00 53 5A 17 67 A0 18 CA 66 95 [07:54:57]GetLastDocTimeStamp 1729583479 [07:54:57]current date 1729583699 [07:54:57]FM_GetShiftState [07:54:57]SAM_PROTO_GetShiftState [07:54:57]wFMCommunicate request_size=4 [07:54:57]MH_SAM_APDU [07:54:57]CAPDU: 80 13 01 00 [07:54:57]Write to MH i2c: E2 08 00 66 25 80 13 01 00 00 00 00 00 08 [07:54:57]Write i2c OK [07:54:57]MH_I2C_Read... [07:54:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:54:57]Read from MH i2c: E2 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: E2 0E 00 [07:54:57]MH_I2C_Read... [07:54:57]Read from MH i2c: E2 0E 00 66 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FD [07:54:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:54:57]wFMCommunicate OK [07:54:57]SAM_PROTO_GetShiftState done [07:54:57]FM_GetShiftState done [07:54:57]opened in 1729556094 [07:54:57]opened+sec_in_day 1729642494 [07:54:57]quantity*price = 200025 [07:54:57]sum+1 = 200026 [07:54:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 112 22.10.2024 07:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188083 ФПД: 195775117072527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188083&fm=195775117072527&tin=02508201610067®Number=0000000000100030&sum=200000 [07:54:58]StoreToDocumentArchive [07:54:58]shift 461 fd 188083 [07:54:58]save to /storage/0461/doc_00188083 [07:54:58]save last doc name /storage/0461/doc_00188083 to /storage/kkm_last_doc_name [07:54:58]save OK [07:54:58]Clear old archive folders... [07:54:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [07:54:58]tlvbuf is 01BB8040 [07:54:58]SAM_PROTO_ClearQueue [07:54:58]wFMCommunicate request_size=4 [07:54:58]MH_SAM_APDU [07:54:58]CAPDU: 80 09 00 00 [07:54:58]Write to MH i2c: E2 08 00 73 25 80 09 00 00 00 00 00 00 0A [07:54:58]Write i2c OK [07:54:58]MH_I2C_Read... [07:54:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:54:58]Read from MH i2c: E2 [07:54:58]MH_I2C_Read... [07:54:58]Read from MH i2c: E2 03 00 [07:54:58]MH_I2C_Read... [07:54:58]Read from MH i2c: E2 03 00 73 25 00 90 00 0C [07:54:58]RAPDU: 90 00 [07:54:58]wFMCommunicate OK [07:54:58]SAM_PROTO_ClearQueue done [07:54:58]KKMCreateOFDPacket [07:54:58]OFDProtocolAddRootSTLVToBuf [07:54:58]FM_MakeSignedData [07:54:58]FM_MakeSignedData [07:54:58]SAM_PROTO_SignData [07:54:58]wFMCommunicate request_size=4 [07:54:58]MH_SAM_APDU [07:54:58]CAPDU: 80 0D 01 02 [07:54:58]Write to MH i2c: E2 08 00 74 25 80 0D 01 02 00 00 00 00 12 [07:54:58]Write i2c OK [07:54:58]MH_I2C_Read... [07:54:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:54:58]Read from MH i2c: E2 [07:54:58]MH_I2C_Read... [07:54:58]Read from MH i2c: E2 03 00 [07:54:58]MH_I2C_Read... [07:54:58]Read from MH i2c: E2 03 00 74 25 00 90 00 0D [07:54:58]RAPDU: 90 00 [07:54:58]wFMCommunicate OK [07:54:58]wFMCommunicate request_size=255 [07:54:58]MH_SAM_APDU [07:54:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 70 00 00 00 F4 03 04 00 53 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DE 02 [07:54:58]Write to MH i2c: E2 02 01 75 25 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 70 00 00 00 F4 03 04 00 53 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DE 02 00 00 AF [07:54:58]Write i2c OK [07:54:58]MH_I2C_Read... [07:54:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:58]Read from MH i2c: E2 [07:54:58]MH_I2C_Read... [07:54:58]Read from MH i2c: E2 03 00 [07:54:58]MH_I2C_Read... [07:54:58]Read from MH i2c: E2 03 00 75 25 00 90 00 0E [07:54:58]RAPDU: 90 00 [07:54:58]wFMCommunicate OK [07:54:58]wFMCommunicate request_size=16 [07:54:58]MH_SAM_APDU [07:54:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 0E 72 4F 18 8F [07:54:58]Write to MH i2c: E2 13 00 76 25 80 0D 02 02 0B 00 00 35 04 06 00 B2 0E 72 4F 18 8F 00 00 92 [07:54:58]Write i2c OK [07:54:58]MH_I2C_Read... [07:54:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:54:59]Read from MH i2c: E2 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: E2 03 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: E2 03 00 76 25 00 90 00 0F [07:54:59]RAPDU: 90 00 [07:54:59]wFMCommunicate OK [07:54:59]wFMCommunicate request_size=4 [07:54:59]MH_SAM_APDU [07:54:59]CAPDU: 80 0D 03 02 [07:54:59]Write to MH i2c: E2 08 00 77 25 80 0D 03 02 00 00 00 00 17 [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:54:59]Read from MH i2c: E2 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: E2 0B 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: E2 0B 00 77 25 00 87 18 80 A8 65 C9 DB E2 90 00 CA [07:54:59]RAPDU: 87 18 80 A8 65 C9 DB E2 90 00 [07:54:59]wFMCommunicate OK [07:54:59]SAM_PROTO_SignData done [07:54:59]FM_MakeSignedData done [07:54:59]CreateOFDProtocolMessage [07:54:59]wFMCommunicate request_size=4 [07:54:59]MH_SAM_APDU [07:54:59]CAPDU: 80 11 00 00 [07:54:59]Write to MH i2c: E2 08 00 78 25 80 11 00 00 00 00 00 00 17 [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:54:59]Read from MH i2c: E2 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: E2 17 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: E2 17 00 78 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [07:54:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:54:59]wFMCommunicate OK [07:54:59]CreateOFDProtocolMessage done [07:54:59]OFDSenderStorePacket 188083 [07:54:59]StoreOFDPacket docnum=188083 [07:54:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 37 0D 01 57 13 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 70 00 00 00 F4 03 04 00 53 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DE 02 00 35 04 06 00 B2 0E 72 4F 18 8F 87 18 80 A8 65 C9 DB E2 [07:54:59]CheckFolder [07:54:59]dirname=/storage/ofd_packets [07:54:59]CheckFolder done [07:54:59]ProducePacketName [07:54:59]name=ofd_packets/00188083 [07:54:59]NVStorageSaveData ofd_packets/00188083 [07:54:59]File name is /storage/ofd_packets/00188083 [07:54:59]Write 307 bytes [07:54:59]NVStorageSaveData done [07:54:59]OFDSenderStorePacket done [07:54:59]KKMCreateOFDPacket done [07:54:59]NVStorageSaveData kkm_last_timestamp [07:54:59]File name is /storage/kkm_last_timestamp [07:54:59]Write 4 bytes [07:54:59]NVStorageSaveData done [07:54:59]ExternCall_PrintAddStr [07:54:59]wPrintStart [07:54:59]Write to MH i2c: 01 00 00 79 25 9E [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: 01 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: 01 07 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: 01 07 00 79 25 00 00 00 00 00 FF 0F B3 [07:54:59]RasterBufferAndPrint [07:54:59]line Счет N : (1)210135 [07:54:59]line ИНН: 02508201610067 [07:54:59]line Контрольно-Кассовый Чек [07:54:59]line ПРОДАЖА [07:54:59]line ТРК (МРК, ГНК) : 11 [07:54:59]line Товар: 2710194210 [07:54:59]line D-ENERGY ДТ-К-5 [07:54:59]line 25.910 * 77.20 [07:54:59]line = 2000.25 [07:54:59]line НДС 12% НСП 1% [07:54:59]line > о реализуемом товаре [07:54:59]line ОКРУГЛЕНИЕ: -0.25 [07:54:59]line ИТОГО: 2000.00 [07:54:59]line Внесено: 2000.00 [07:54:59]line СДАЧА: 0.00 [07:54:59]line НСП 1% : 17.70 [07:54:59]line НДС 12% : 212.42 [07:54:59]line Наличными: 2000.00 [07:54:59]line Безнал.: 0.00 [07:54:59]line Место: АЗС № 86 "Партнер Нефть" [07:54:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:54:59]line СНО: Общий режим [07:54:59]line Чек 112 22.10.2024 07:54 [07:54:59]line Смена: 461 ФФД: 1.0 [07:54:59]line ЗНМ: 0300000155 [07:54:59]line РНМ: 0000000000100030 [07:54:59]line Версия ККМ: 001 [07:54:59]line ФМ: 0000000000965340 [07:54:59]line ФД: 188083 [07:54:59]line ФПД: 195775117072527 [07:54:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075459&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188083&fm=195775117072527&tin=02508201610067®Number=0000000000100030&sum=200000 [07:54:59]written 0, free lines is 4095 [07:54:59]OFD Sender: Processing packet 188083 [packets to send 1062, broken 1061] [07:54:59]ProducePacketName [07:54:59]name=ofd_packets/00188083 [07:54:59]OFD Sender: To server: pG, [07:54:59]CommunicateWithHost lk.salyk.kg:30040 [07:54:59]ConnectInit lk.salyk.kg [07:54:59]Connected sock=10 [07:54:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 37 0D 01 57 13 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 70 00 00 00 F4 03 04 00 53 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DE 02 00 35 04 06 00 B2 0E 72 4F 18 8F 87 18 80 A8 65 C9 DB E2 [07:54:59]Write to MH i2c: 01 00 00 A4 25 C9 [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: 01 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: 01 07 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: 01 07 00 A4 25 00 00 00 00 00 57 0C 33 [07:54:59]RasterBufferAndPrint [07:54:59]line [07:54:59]line [07:54:59]line [07:54:59]line [07:54:59]line [07:54:59]written 0, free lines is 3162 [07:54:59]MH_Cut [07:54:59]Write to MH i2c: D1 01 00 AB 25 01 A2 [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: D1 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: D1 01 00 [07:54:59]MH_I2C_Read... [07:54:59]Read from MH i2c: D1 01 00 AB 25 00 A1 [07:54:59]Write to MH i2c: 01 00 00 AC 25 D1 [07:54:59]Write i2c OK [07:54:59]MH_I2C_Read... [07:54:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 31 9C 47 00 2C 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DE 02 00 F4 03 04 00 41 04 17 67 B6 04 01 00 00 3A 98 B4 46 07 89 47 21 [07:54:59]CommunicateWithHost err = 0 [07:54:59]CheckOFDResponse [07:54:59]1017 (14) - 77093643461234 [07:54:59]1041 (16) - 0000000000965340 [07:54:59]1040 (4) - 188083 [07:54:59]1012 (4) - 22.10.2024 01:47 [07:54:59]1206 (1) - 0 [07:54:59]OFD Sender: Remove packet 188083 [07:54:59]ProducePacketName [07:54:59]name=ofd_packets/00188083 [07:54:59]NVStorageDeleteData [07:55:00]OFD Sender: No OFD packet to send [07:55:00]*** Cut start [07:55:00]*** Partial cut [07:55:00]*** CUTSNS_PIN = 1 [07:55:00]*** CUTSNS_PIN = 0 [07:55:01]*** Brake cut motor [07:55:01]Read from MH i2c: 01 [07:55:01]MH_I2C_Read... [07:55:01]*** Stop cut motor [07:55:01]*** Cut end [07:55:01]Read from MH i2c: 01 07 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: 01 07 00 AC 25 00 00 00 00 00 FF 0F E6 [07:55:01]process_action close_receipt done [07:55:01]requested_data is exist [07:55:01]produce_requested_data [07:55:01]requested_item fm.sn is exist - process it [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 11 00 00 [07:55:01]Write to MH i2c: E2 08 00 AD 25 80 11 00 00 00 00 00 00 4C [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 17 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 17 00 AD 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [07:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:55:01]wFMCommunicate OK [07:55:01]requested_item fd.num is exist - process it [07:55:01]SAM_PROTO_GetFieldsCounters [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 13 00 00 [07:55:01]Write to MH i2c: E2 08 00 AE 25 80 13 00 00 00 00 00 00 4F [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 62 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 62 00 AE 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DE 02 00 0E 04 04 00 CD 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 07 [07:55:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DE 02 00 0E 04 04 00 CD 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 [07:55:01]wFMCommunicate OK [07:55:01]SAM_PROTO_GetFieldsCounters done [07:55:01]requested_item shift.num is exist - process it [07:55:01]requested_item shift.opened is exist - process it [07:55:01]req_shift_opened [07:55:01]FM_GetShiftState [07:55:01]SAM_PROTO_GetShiftState [07:55:01]wFMCommunicate request_size=4 [07:55:01]MH_SAM_APDU [07:55:01]CAPDU: 80 13 01 00 [07:55:01]Write to MH i2c: E2 08 00 AF 25 80 13 01 00 00 00 00 00 51 [07:55:01]Write i2c OK [07:55:01]MH_I2C_Read... [07:55:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:01]Read from MH i2c: E2 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 0E 00 [07:55:01]MH_I2C_Read... [07:55:01]Read from MH i2c: E2 0E 00 AF 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 46 [07:55:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:55:01]wFMCommunicate OK [07:55:01]SAM_PROTO_GetShiftState done [07:55:01]FM_GetShiftState done [07:55:01]req_shift_opened done [07:55:01]requested_item shift.open_date is exist - process it [07:55:01]req_shift_open_date [07:55:01]req_shift_open_date done [07:55:01]produce_requested_data done [07:55:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188083,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:55:01]process_action_free close_receipt [07:55:01]json_value_free [07:55:01]json_value_free done [07:55:01]process_json_proto returns [07:55:01]Send response to host [07:55:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188083,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:55:01]free response buf [07:55:01]execute_script done [07:55:01]execute_script returns [07:55:01]free content buf [07:55:01]Sock 9.Close socket [07:55:01]Sock 9.Thread stoped [07:55:05]OFD Sender: No OFD packet to send [07:55:10]OFD Sender: No OFD packet to send [07:55:10]accept exits with 8 [07:55:10]New connection [07:55:10]New thread 3067198820 created [07:55:10]Thread 3067055460 joined [07:55:10]Waiting for new connection... [07:55:10] Sock 8.Parse request [07:55:10]Sock 8.Check first char [07:55:10]Sock 8.First char is OK [07:55:10]request: POST /json_proto HTTP/1.0 [07:55:10]Method: POST [07:55:10]URL: /json_proto [07:55:10]Method is POST - this is cgi request [07:55:10]url: /json_proto [07:55:10]query_string will be loaded in cgi processing [07:55:10]execute_cgi json_proto POST (null) [07:55:10]execute_cgi path=json_proto method=POST [07:55:10]POST find Content-Length [07:55:10]Host: 172.17.42.131:8080 [07:55:10]Content-Length: 682 [07:55:10]Content-Type: application/json [07:55:10] [07:55:10]POST finish read [07:55:10]Found Content-Length = 682 [07:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:10]execute_script... [07:55:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210136", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:55:10]POST & json_proto [07:55:10]process_json_proto [07:55:10]json parsed OK: [07:55:10]protocol is kg_v1.0 [07:55:10]action value=close_receipt [07:55:10]process_action close_receipt [07:55:10]cmd_close_receipt [07:55:10]MH_GetDate [07:55:10]Write to MH i2c: F0 00 00 B0 25 C4 [07:55:10]Write i2c OK [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: F0 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: F0 09 00 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: F0 09 00 B0 25 00 61 5A 17 67 A0 18 CA 66 EE [07:55:10]GetLastDocTimeStamp 1729583699 [07:55:10]current date 1729583713 [07:55:10]FM_GetShiftState [07:55:10]SAM_PROTO_GetShiftState [07:55:10]wFMCommunicate request_size=4 [07:55:10]MH_SAM_APDU [07:55:10]CAPDU: 80 13 01 00 [07:55:10]Write to MH i2c: E2 08 00 B1 25 80 13 01 00 00 00 00 00 53 [07:55:10]Write i2c OK [07:55:10]MH_I2C_Read... [07:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:10]Read from MH i2c: E2 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: E2 0E 00 [07:55:10]MH_I2C_Read... [07:55:10]Read from MH i2c: E2 0E 00 B1 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 48 [07:55:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:55:10]wFMCommunicate OK [07:55:10]SAM_PROTO_GetShiftState done [07:55:10]FM_GetShiftState done [07:55:10]opened in 1729556094 [07:55:10]opened+sec_in_day 1729642494 [07:55:10]quantity*price = 100015 [07:55:10]sum+1 = 100017 [07:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 113 22.10.2024 07:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188084 ФПД: 59395018219656 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188084&fm=59395018219656&tin=02508201610067®Number=0000000000100030&sum=100000 [07:55:11]StoreToDocumentArchive [07:55:11]shift 461 fd 188084 [07:55:11]save to /storage/0461/doc_00188084 [07:55:11]save last doc name /storage/0461/doc_00188084 to /storage/kkm_last_doc_name [07:55:11]save OK [07:55:11]Clear old archive folders... [07:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:55:11]tlvbuf is 01BF2B30 [07:55:11]SAM_PROTO_ClearQueue [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 09 00 00 [07:55:11]Write to MH i2c: E2 08 00 BE 25 80 09 00 00 00 00 00 00 55 [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 BE 25 00 90 00 57 [07:55:11]RAPDU: 90 00 [07:55:11]wFMCommunicate OK [07:55:11]SAM_PROTO_ClearQueue done [07:55:11]KKMCreateOFDPacket [07:55:11]OFDProtocolAddRootSTLVToBuf [07:55:11]FM_MakeSignedData [07:55:11]FM_MakeSignedData [07:55:11]SAM_PROTO_SignData [07:55:11]wFMCommunicate request_size=4 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 0D 01 02 [07:55:11]Write to MH i2c: E2 08 00 BF 25 80 0D 01 02 00 00 00 00 5D [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:55:11]Read from MH i2c: E2 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 [07:55:11]MH_I2C_Read... [07:55:11]Read from MH i2c: E2 03 00 BF 25 00 90 00 58 [07:55:11]RAPDU: 90 00 [07:55:11]wFMCommunicate OK [07:55:11]wFMCommunicate request_size=255 [07:55:11]MH_SAM_APDU [07:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 61 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DE 02 00 35 04 06 00 36 [07:55:11]Write to MH i2c: E2 02 01 C0 25 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 61 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DE 02 00 35 04 06 00 36 00 00 0C [07:55:11]Write i2c OK [07:55:11]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 03 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 03 00 C0 25 00 90 00 59 [07:55:12]RAPDU: 90 00 [07:55:12]wFMCommunicate OK [07:55:12]wFMCommunicate request_size=10 [07:55:12]MH_SAM_APDU [07:55:12]CAPDU: 80 0D 02 02 05 04 FA F6 60 88 [07:55:12]Write to MH i2c: E2 0D 00 C1 25 80 0D 02 02 05 00 04 FA F6 60 88 00 00 46 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 03 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 03 00 C1 25 00 90 00 5A [07:55:12]RAPDU: 90 00 [07:55:12]wFMCommunicate OK [07:55:12]wFMCommunicate request_size=4 [07:55:12]MH_SAM_APDU [07:55:12]CAPDU: 80 0D 03 02 [07:55:12]Write to MH i2c: E2 08 00 C2 25 80 0D 03 02 00 00 00 00 62 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 0B 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 0B 00 C2 25 00 FF E8 7C C9 FF 33 4A 21 90 00 2C [07:55:12]RAPDU: FF E8 7C C9 FF 33 4A 21 90 00 [07:55:12]wFMCommunicate OK [07:55:12]SAM_PROTO_SignData done [07:55:12]FM_MakeSignedData done [07:55:12]CreateOFDProtocolMessage [07:55:12]wFMCommunicate request_size=4 [07:55:12]MH_SAM_APDU [07:55:12]CAPDU: 80 11 00 00 [07:55:12]Write to MH i2c: E2 08 00 C3 25 80 11 00 00 00 00 00 00 62 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:12]Read from MH i2c: E2 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 17 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: E2 17 00 C3 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [07:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:55:12]wFMCommunicate OK [07:55:12]CreateOFDProtocolMessage done [07:55:12]OFDSenderStorePacket 188084 [07:55:12]StoreOFDPacket docnum=188084 [07:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B0 0C 07 01 45 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 61 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DE 02 00 35 04 06 00 36 04 FA F6 60 88 FF E8 7C C9 FF 33 4A 21 [07:55:12]CheckFolder [07:55:12]dirname=/storage/ofd_packets [07:55:12]CheckFolder done [07:55:12]ProducePacketName [07:55:12]name=ofd_packets/00188084 [07:55:12]NVStorageSaveData ofd_packets/00188084 [07:55:12]File name is /storage/ofd_packets/00188084 [07:55:12]Write 301 bytes [07:55:12]NVStorageSaveData done [07:55:12]OFDSenderStorePacket done [07:55:12]KKMCreateOFDPacket done [07:55:12]NVStorageSaveData kkm_last_timestamp [07:55:12]File name is /storage/kkm_last_timestamp [07:55:12]Write 4 bytes [07:55:12]NVStorageSaveData done [07:55:12]ExternCall_PrintAddStr [07:55:12]wPrintStart [07:55:12]Write to MH i2c: 01 00 00 C4 25 E9 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 C4 25 00 00 00 00 00 FF 0F FE [07:55:12]RasterBufferAndPrint [07:55:12]line Счет N : (1)210136 [07:55:12]line ИНН: 02508201610067 [07:55:12]line Контрольно-Кассовый Чек [07:55:12]line ПРОДАЖА [07:55:12]line ТРК (МРК, ГНК) : 32 [07:55:12]line Товар: 2710124130 [07:55:12]line Аи-92-К-3 [07:55:12]line 14.950 * 66.90 [07:55:12]line = 1000.16 [07:55:12]line НДС 12% НСП 1% [07:55:12]line > о реализуемом товаре [07:55:12]line ОКРУГЛЕНИЕ: -0.16 [07:55:12]line ИТОГО: 1000.00 [07:55:12]line Внесено: 1000.00 [07:55:12]line СДАЧА: 0.00 [07:55:12]line НСП 1% : 8.85 [07:55:12]line НДС 12% : 106.21 [07:55:12]line Наличными: 1000.00 [07:55:12]line Безнал.: 0.00 [07:55:12]line Место: АЗС № 86 "Партнер Нефть" [07:55:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:55:12]line СНО: Общий режим [07:55:12]line Чек 113 22.10.2024 07:55 [07:55:12]line Смена: 461 ФФД: 1.0 [07:55:12]line ЗНМ: 0300000155 [07:55:12]line РНМ: 0000000000100030 [07:55:12]line Версия ККМ: 001 [07:55:12]line ФМ: 0000000000965340 [07:55:12]line ФД: 188084 [07:55:12]line ФПД: 59395018219656 [07:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188084&fm=59395018219656&tin=02508201610067®Number=0000000000100030&sum=100000 [07:55:12]written 0, free lines is 4095 [07:55:12]OFD Sender: Processing packet 188084 [packets to send 1062, broken 1061] [07:55:12]ProducePacketName [07:55:12]name=ofd_packets/00188084 [07:55:12]OFD Sender: To server: pG, [07:55:12]CommunicateWithHost lk.salyk.kg:30040 [07:55:12]ConnectInit lk.salyk.kg [07:55:12]Connected sock=10 [07:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B0 0C 07 01 45 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 61 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DE 02 00 35 04 06 00 36 04 FA F6 60 88 FF E8 7C C9 FF 33 4A 21 [07:55:12]Write to MH i2c: 01 00 00 EF 25 14 [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: 01 07 00 EF 25 00 00 00 00 00 53 0C 7A [07:55:12]RasterBufferAndPrint [07:55:12]line [07:55:12]line [07:55:12]line [07:55:12]line [07:55:12]line [07:55:12]written 0, free lines is 3160 [07:55:12]MH_Cut [07:55:12]Write to MH i2c: D1 01 00 F6 25 01 ED [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: D1 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: D1 01 00 [07:55:12]MH_I2C_Read... [07:55:12]Read from MH i2c: D1 01 00 F6 25 00 EC [07:55:12]Write to MH i2c: 01 00 00 F7 25 1C [07:55:12]Write i2c OK [07:55:12]MH_I2C_Read... [07:55:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 04 47 00 A9 4E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DE 02 00 F4 03 04 00 4E 04 17 67 B6 04 01 00 00 EC BD 7E F7 2A 67 6D EC [07:55:13]CommunicateWithHost err = 0 [07:55:13]CheckOFDResponse [07:55:13]1017 (14) - 77093643461234 [07:55:13]1041 (16) - 0000000000965340 [07:55:13]1040 (4) - 188084 [07:55:13]1012 (4) - 22.10.2024 01:47 [07:55:13]1206 (1) - 0 [07:55:13]OFD Sender: Remove packet 188084 [07:55:13]ProducePacketName [07:55:13]name=ofd_packets/00188084 [07:55:13]NVStorageDeleteData [07:55:13]OFD Sender: No OFD packet to send [07:55:14]*** Cut start [07:55:14]*** Partial cut [07:55:14]*** CUTSNS_PIN = 1 [07:55:14]*** CUTSNS_PIN = 0 [07:55:14]*** Brake cut motor [07:55:14]Read from MH i2c: 01 [07:55:14]MH_I2C_Read... [07:55:14]*** Stop cut motor [07:55:14]*** Cut end [07:55:14]Read from MH i2c: 01 07 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: 01 07 00 F7 25 00 00 00 00 00 FF 0F 31 [07:55:14]process_action close_receipt done [07:55:14]requested_data is exist [07:55:14]produce_requested_data [07:55:14]requested_item fm.sn is exist - process it [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 11 00 00 [07:55:14]Write to MH i2c: E2 08 00 F8 25 80 11 00 00 00 00 00 00 97 [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:55:14]Read from MH i2c: E2 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 17 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 17 00 F8 25 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [07:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:55:14]wFMCommunicate OK [07:55:14]requested_item fd.num is exist - process it [07:55:14]SAM_PROTO_GetFieldsCounters [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 13 00 00 [07:55:14]Write to MH i2c: E2 08 00 F9 25 80 13 00 00 00 00 00 00 9A [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:55:14]Read from MH i2c: E2 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 62 00 [07:55:14]MH_I2C_Read... [07:55:14]Read from MH i2c: E2 62 00 F9 25 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DE 02 00 0E 04 04 00 CD 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 56 [07:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DE 02 00 0E 04 04 00 CD 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 [07:55:14]wFMCommunicate OK [07:55:14]SAM_PROTO_GetFieldsCounters done [07:55:14]requested_item shift.num is exist - process it [07:55:14]requested_item shift.opened is exist - process it [07:55:14]req_shift_opened [07:55:14]FM_GetShiftState [07:55:14]SAM_PROTO_GetShiftState [07:55:14]wFMCommunicate request_size=4 [07:55:14]MH_SAM_APDU [07:55:14]CAPDU: 80 13 01 00 [07:55:14]Write to MH i2c: E2 08 00 FA 25 80 13 01 00 00 00 00 00 9C [07:55:14]Write i2c OK [07:55:14]MH_I2C_Read... [07:55:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:55:15]Read from MH i2c: E2 [07:55:15]MH_I2C_Read... [07:55:15]Read from MH i2c: E2 0E 00 [07:55:15]MH_I2C_Read... [07:55:15]Read from MH i2c: E2 0E 00 FA 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [07:55:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:55:15]wFMCommunicate OK [07:55:15]SAM_PROTO_GetShiftState done [07:55:15]FM_GetShiftState done [07:55:15]req_shift_opened done [07:55:15]requested_item shift.open_date is exist - process it [07:55:15]req_shift_open_date [07:55:15]req_shift_open_date done [07:55:15]produce_requested_data done [07:55:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188084,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:55:15]process_action_free close_receipt [07:55:15]json_value_free [07:55:15]json_value_free done [07:55:15]process_json_proto returns [07:55:15]Send response to host [07:55:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188084,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:55:15]free response buf [07:55:15]execute_script done [07:55:15]execute_script returns [07:55:15]free content buf [07:55:15]Sock 8.Close socket [07:55:15]Sock 8.Thread stoped [07:55:18]OFD Sender: No OFD packet to send [07:55:23]OFD Sender: No OFD packet to send [07:55:28]OFD Sender: No OFD packet to send [07:55:33]OFD Sender: No OFD packet to send [07:55:38]OFD Sender: No OFD packet to send [07:55:43]OFD Sender: No OFD packet to send [07:55:48]OFD Sender: No OFD packet to send [07:55:53]OFD Sender: No OFD packet to send [07:55:58]OFD Sender: No OFD packet to send [07:56:03]OFD Sender: No OFD packet to send [07:56:08]OFD Sender: No OFD packet to send [07:56:13]OFD Sender: No OFD packet to send [07:56:18]OFD Sender: No OFD packet to send [07:56:23]OFD Sender: No OFD packet to send [07:56:28]OFD Sender: No OFD packet to send [07:56:33]OFD Sender: No OFD packet to send [07:56:38]OFD Sender: No OFD packet to send [07:56:43]OFD Sender: No OFD packet to send [07:56:48]OFD Sender: No OFD packet to send [07:56:54]OFD Sender: No OFD packet to send [07:56:59]OFD Sender: No OFD packet to send [07:57:04]OFD Sender: No OFD packet to send [07:57:09]OFD Sender: No OFD packet to send [07:57:14]OFD Sender: No OFD packet to send [07:57:19]OFD Sender: No OFD packet to send [07:57:24]OFD Sender: No OFD packet to send [07:57:29]OFD Sender: No OFD packet to send [07:57:34]OFD Sender: No OFD packet to send [07:57:34]accept exits with 9 [07:57:34]New connection [07:57:34]New thread 3067055460 created [07:57:34]Thread 3067198820 joined [07:57:34]Waiting for new connection... [07:57:34] Sock 9.Parse request [07:57:34]Sock 9.Check first char [07:57:34]Sock 9.First char is OK [07:57:34]request: POST /json_proto HTTP/1.0 [07:57:34]Method: POST [07:57:34]URL: /json_proto [07:57:34]Method is POST - this is cgi request [07:57:34]url: /json_proto [07:57:34]query_string will be loaded in cgi processing [07:57:34]execute_cgi json_proto POST (null) [07:57:34]execute_cgi path=json_proto method=POST [07:57:34]POST find Content-Length [07:57:34]Host: 172.17.42.131:8080 [07:57:34]Content-Length: 682 [07:57:34]Content-Type: application/json [07:57:34] [07:57:34]POST finish read [07:57:34]Found Content-Length = 682 [07:57:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:57:34]execute_script... [07:57: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)210137", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:57:34]POST & json_proto [07:57:34]process_json_proto [07:57:34]json parsed OK: [07:57:34]protocol is kg_v1.0 [07:57:34]action value=close_receipt [07:57:34]process_action close_receipt [07:57:34]cmd_close_receipt [07:57:34]MH_GetDate [07:57:34]Write to MH i2c: F0 00 00 FB 25 0F [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: F0 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: F0 09 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: F0 09 00 FB 25 00 F0 5A 17 67 A0 18 CA 66 C8 [07:57:34]GetLastDocTimeStamp 1729583713 [07:57:34]current date 1729583856 [07:57:34]FM_GetShiftState [07:57:34]SAM_PROTO_GetShiftState [07:57:34]wFMCommunicate request_size=4 [07:57:34]MH_SAM_APDU [07:57:34]CAPDU: 80 13 01 00 [07:57:34]Write to MH i2c: E2 08 00 FC 25 80 13 01 00 00 00 00 00 9E [07:57:34]Write i2c OK [07:57:34]MH_I2C_Read... [07:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:34]Read from MH i2c: E2 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 0E 00 [07:57:34]MH_I2C_Read... [07:57:34]Read from MH i2c: E2 0E 00 FC 25 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 93 [07:57:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:57:34]wFMCommunicate OK [07:57:34]SAM_PROTO_GetShiftState done [07:57:34]FM_GetShiftState done [07:57:34]opened in 1729556094 [07:57:34]opened+sec_in_day 1729642494 [07:57:34]quantity*price = 200043 [07:57:34]sum+1 = 200044 [07:57: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 114 22.10.2024 07:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188085 ФПД: 207977763431779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188085&fm=207977763431779&tin=02508201610067®Number=0000000000100030&sum=200000 [07:57:35]StoreToDocumentArchive [07:57:35]shift 461 fd 188085 [07:57:35]save to /storage/0461/doc_00188085 [07:57:35]save last doc name /storage/0461/doc_00188085 to /storage/kkm_last_doc_name [07:57:35]save OK [07:57:35]Clear old archive folders... [07:57:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:57:35]tlvbuf is 01BAD0D0 [07:57:35]SAM_PROTO_ClearQueue [07:57:35]wFMCommunicate request_size=4 [07:57:35]MH_SAM_APDU [07:57:35]CAPDU: 80 09 00 00 [07:57:35]Write to MH i2c: E2 08 00 09 26 80 09 00 00 00 00 00 00 A1 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 09 26 00 90 00 A3 [07:57:35]RAPDU: 90 00 [07:57:35]wFMCommunicate OK [07:57:35]SAM_PROTO_ClearQueue done [07:57:35]KKMCreateOFDPacket [07:57:35]OFDProtocolAddRootSTLVToBuf [07:57:35]FM_MakeSignedData [07:57:35]FM_MakeSignedData [07:57:35]SAM_PROTO_SignData [07:57:35]wFMCommunicate request_size=4 [07:57:35]MH_SAM_APDU [07:57:35]CAPDU: 80 0D 01 02 [07:57:35]Write to MH i2c: E2 08 00 0A 26 80 0D 01 02 00 00 00 00 A9 [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:57:35]Read from MH i2c: E2 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 [07:57:35]MH_I2C_Read... [07:57:35]Read from MH i2c: E2 03 00 0A 26 00 90 00 A4 [07:57:35]RAPDU: 90 00 [07:57:35]wFMCommunicate OK [07:57:35]wFMCommunicate request_size=255 [07:57:35]MH_SAM_APDU [07:57: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 72 00 00 00 F4 03 04 00 F1 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DE 02 00 35 04 06 00 BD [07:57:35]Write to MH i2c: E2 02 01 0B 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 72 00 00 00 F4 03 04 00 F1 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DE 02 00 35 04 06 00 BD 00 00 1F [07:57:35]Write i2c OK [07:57:35]MH_I2C_Read... [07:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:36]Read from MH i2c: E2 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 03 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 03 00 0B 26 00 90 00 A5 [07:57:36]RAPDU: 90 00 [07:57:36]wFMCommunicate OK [07:57:36]wFMCommunicate request_size=10 [07:57:36]MH_SAM_APDU [07:57:36]CAPDU: 80 0D 02 02 05 27 98 B5 E5 63 [07:57:36]Write to MH i2c: E2 0D 00 0C 26 80 0D 02 02 05 00 27 98 B5 E5 63 00 00 72 [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:57:36]Read from MH i2c: E2 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 03 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 03 00 0C 26 00 90 00 A6 [07:57:36]RAPDU: 90 00 [07:57:36]wFMCommunicate OK [07:57:36]wFMCommunicate request_size=4 [07:57:36]MH_SAM_APDU [07:57:36]CAPDU: 80 0D 03 02 [07:57:36]Write to MH i2c: E2 08 00 0D 26 80 0D 03 02 00 00 00 00 AE [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:57:36]Read from MH i2c: E2 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 0B 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 0B 00 0D 26 00 2D 97 4E 99 E9 13 5B 4D 90 00 FE [07:57:36]RAPDU: 2D 97 4E 99 E9 13 5B 4D 90 00 [07:57:36]wFMCommunicate OK [07:57:36]SAM_PROTO_SignData done [07:57:36]FM_MakeSignedData done [07:57:36]CreateOFDProtocolMessage [07:57:36]wFMCommunicate request_size=4 [07:57:36]MH_SAM_APDU [07:57:36]CAPDU: 80 11 00 00 [07:57:36]Write to MH i2c: E2 08 00 0E 26 80 11 00 00 00 00 00 00 AE [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:36]Read from MH i2c: E2 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 17 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: E2 17 00 0E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [07:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:57:36]wFMCommunicate OK [07:57:36]CreateOFDProtocolMessage done [07:57:36]OFDSenderStorePacket 188085 [07:57:36]StoreOFDPacket docnum=188085 [07:57:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 82 BF 07 01 7F D2 5A 03 01 00 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 72 00 00 00 F4 03 04 00 F1 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DE 02 00 35 04 06 00 BD 27 98 B5 E5 63 2D 97 4E 99 E9 13 5B 4D [07:57:36]CheckFolder [07:57:36]dirname=/storage/ofd_packets [07:57:36]CheckFolder done [07:57:36]ProducePacketName [07:57:36]name=ofd_packets/00188085 [07:57:36]NVStorageSaveData ofd_packets/00188085 [07:57:36]File name is /storage/ofd_packets/00188085 [07:57:36]Write 301 bytes [07:57:36]NVStorageSaveData done [07:57:36]OFDSenderStorePacket done [07:57:36]KKMCreateOFDPacket done [07:57:36]NVStorageSaveData kkm_last_timestamp [07:57:36]File name is /storage/kkm_last_timestamp [07:57:36]Write 4 bytes [07:57:36]NVStorageSaveData done [07:57:36]ExternCall_PrintAddStr [07:57:36]wPrintStart [07:57:36]Write to MH i2c: 01 00 00 0F 26 35 [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: 01 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: 01 07 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: 01 07 00 0F 26 00 00 00 00 00 FF 0F 4A [07:57:36]RasterBufferAndPrint [07:57:36]line Счет N : (1)210137 [07:57:36]line ИНН: 02508201610067 [07:57:36]line Контрольно-Кассовый Чек [07:57:36]line ПРОДАЖА [07:57:36]line ТРК (МРК, ГНК) : 23 [07:57:36]line Товар: 2710124500 [07:57:36]line Аи-95-К-3 [07:57:36]line 26.960 * 74.20 [07:57:36]line = 2000.43 [07:57:36]line НДС 12% НСП 1% [07:57:36]line > о реализуемом товаре [07:57:36]line ОКРУГЛЕНИЕ: -0.43 [07:57:36]line ИТОГО: 2000.00 [07:57:36]line Внесено: 2000.00 [07:57:36]line СДАЧА: 0.00 [07:57:36]line НСП 1% : 17.70 [07:57:36]line НДС 12% : 212.43 [07:57:36]line Наличными: 2000.00 [07:57:36]line Безнал.: 0.00 [07:57:36]line Место: АЗС № 86 "Партнер Нефть" [07:57:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:57:36]line СНО: Общий режим [07:57:36]line Чек 114 22.10.2024 07:57 [07:57:36]line Смена: 461 ФФД: 1.0 [07:57:36]line ЗНМ: 0300000155 [07:57:36]line РНМ: 0000000000100030 [07:57:36]line Версия ККМ: 001 [07:57:36]line ФМ: 0000000000965340 [07:57:36]line ФД: 188085 [07:57:36]line ФПД: 207977763431779 [07:57:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188085&fm=207977763431779&tin=02508201610067®Number=0000000000100030&sum=200000 [07:57:36]written 0, free lines is 4095 [07:57:36]OFD Sender: Processing packet 188085 [packets to send 1062, broken 1061] [07:57:36]ProducePacketName [07:57:36]name=ofd_packets/00188085 [07:57:36]OFD Sender: To server: pG, [07:57:36]CommunicateWithHost lk.salyk.kg:30040 [07:57:36]ConnectInit lk.salyk.kg [07:57:36]Write to MH i2c: 01 00 00 3A 26 60 [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: 01 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: 01 07 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: 01 07 00 3A 26 00 00 00 00 00 53 0C C6 [07:57:36]RasterBufferAndPrint [07:57:36]line [07:57:36]line [07:57:36]line [07:57:36]line [07:57:36]line [07:57:36]written 0, free lines is 3160 [07:57:36]MH_Cut [07:57:36]Write to MH i2c: D1 01 00 41 26 01 39 [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: D1 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: D1 01 00 [07:57:36]MH_I2C_Read... [07:57:36]Read from MH i2c: D1 01 00 41 26 00 38 [07:57:36]Write to MH i2c: 01 00 00 42 26 68 [07:57:36]Write i2c OK [07:57:36]MH_I2C_Read... [07:57:36]Connected sock=10 [07:57:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 82 BF 07 01 7F D2 5A 03 01 00 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 72 00 00 00 F4 03 04 00 F1 5A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DE 02 00 35 04 06 00 BD 27 98 B5 E5 63 2D 97 4E 99 E9 13 5B 4D [07:57:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2F 6F 47 00 86 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DE 02 00 F4 03 04 00 DE 04 17 67 B6 04 01 00 00 8A 4B 1E 59 62 F6 9C 0C [07:57:37]CommunicateWithHost err = 0 [07:57:37]CheckOFDResponse [07:57:37]1017 (14) - 77093643461234 [07:57:37]1041 (16) - 0000000000965340 [07:57:37]1040 (4) - 188085 [07:57:37]1012 (4) - 22.10.2024 01:50 [07:57:37]1206 (1) - 0 [07:57:37]OFD Sender: Remove packet 188085 [07:57:37]ProducePacketName [07:57:37]name=ofd_packets/00188085 [07:57:37]NVStorageDeleteData [07:57:37]OFD Sender: No OFD packet to send [07:57:37]*** Cut start [07:57:37]*** Partial cut [07:57:37]*** CUTSNS_PIN = 1 [07:57:38]*** CUTSNS_PIN = 0 [07:57:38]*** Brake cut motor [07:57:38]Read from MH i2c: 01 [07:57:38]MH_I2C_Read... [07:57:38]*** Stop cut motor [07:57:38]*** Cut end [07:57:38]Read from MH i2c: 01 07 00 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: 01 07 00 42 26 00 00 00 00 00 FF 0F 7D [07:57:38]process_action close_receipt done [07:57:38]requested_data is exist [07:57:38]produce_requested_data [07:57:38]requested_item fm.sn is exist - process it [07:57:38]wFMCommunicate request_size=4 [07:57:38]MH_SAM_APDU [07:57:38]CAPDU: 80 11 00 00 [07:57:38]Write to MH i2c: E2 08 00 43 26 80 11 00 00 00 00 00 00 E3 [07:57:38]Write i2c OK [07:57:38]MH_I2C_Read... [07:57:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:57:38]Read from MH i2c: E2 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 17 00 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 17 00 43 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [07:57:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:57:38]wFMCommunicate OK [07:57:38]requested_item fd.num is exist - process it [07:57:38]SAM_PROTO_GetFieldsCounters [07:57:38]wFMCommunicate request_size=4 [07:57:38]MH_SAM_APDU [07:57:38]CAPDU: 80 13 00 00 [07:57:38]Write to MH i2c: E2 08 00 44 26 80 13 00 00 00 00 00 00 E6 [07:57:38]Write i2c OK [07:57:38]MH_I2C_Read... [07:57:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:57:38]Read from MH i2c: E2 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 62 00 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 62 00 44 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DE 02 00 0E 04 04 00 CD 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 A6 [07:57:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DE 02 00 0E 04 04 00 CD 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 [07:57:38]wFMCommunicate OK [07:57:38]SAM_PROTO_GetFieldsCounters done [07:57:38]requested_item shift.num is exist - process it [07:57:38]requested_item shift.opened is exist - process it [07:57:38]req_shift_opened [07:57:38]FM_GetShiftState [07:57:38]SAM_PROTO_GetShiftState [07:57:38]wFMCommunicate request_size=4 [07:57:38]MH_SAM_APDU [07:57:38]CAPDU: 80 13 01 00 [07:57:38]Write to MH i2c: E2 08 00 45 26 80 13 01 00 00 00 00 00 E8 [07:57:38]Write i2c OK [07:57:38]MH_I2C_Read... [07:57:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:57:38]Read from MH i2c: E2 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 0E 00 [07:57:38]MH_I2C_Read... [07:57:38]Read from MH i2c: E2 0E 00 45 26 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [07:57:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:57:38]wFMCommunicate OK [07:57:38]SAM_PROTO_GetShiftState done [07:57:38]FM_GetShiftState done [07:57:38]req_shift_opened done [07:57:38]requested_item shift.open_date is exist - process it [07:57:38]req_shift_open_date [07:57:38]req_shift_open_date done [07:57:38]produce_requested_data done [07:57:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188085,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:57:38]process_action_free close_receipt [07:57:38]json_value_free [07:57:38]json_value_free done [07:57:38]process_json_proto returns [07:57:38]Send response to host [07:57:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188085,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:57:38]free response buf [07:57:38]execute_script done [07:57:38]execute_script returns [07:57:38]free content buf [07:57:38]Sock 9.Close socket [07:57:38]Sock 9.Thread stoped [07:57:42]OFD Sender: No OFD packet to send [07:57:47]OFD Sender: No OFD packet to send [07:57:52]OFD Sender: No OFD packet to send [07:57:57]OFD Sender: No OFD packet to send [07:58:02]OFD Sender: No OFD packet to send [07:58:07]OFD Sender: No OFD packet to send [07:58:12]OFD Sender: No OFD packet to send [07:58:16]accept exits with 8 [07:58:16]New connection [07:58:16]New thread 3067198820 created [07:58:16]Thread 3067055460 joined [07:58:16]Waiting for new connection... [07:58:16] Sock 8.Parse request [07:58:16]Sock 8.Check first char [07:58:16]Sock 8.First char is OK [07:58:16]request: POST /json_proto HTTP/1.0 [07:58:16]Method: POST [07:58:16]URL: /json_proto [07:58:16]Method is POST - this is cgi request [07:58:16]url: /json_proto [07:58:16]query_string will be loaded in cgi processing [07:58:16]execute_cgi json_proto POST (null) [07:58:16]execute_cgi path=json_proto method=POST [07:58:16]POST find Content-Length [07:58:16]Host: 172.17.42.131:8080 [07:58:16]Content-Length: 682 [07:58:16]Content-Type: application/json [07:58:16] [07:58:16]POST finish read [07:58:16]Found Content-Length = 682 [07:58:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210138", "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" ] } } [07:58:16]execute_script... [07:58: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)210138", "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" ] } } [07:58:16]POST & json_proto [07:58:16]process_json_proto [07:58:16]json parsed OK: [07:58:16]protocol is kg_v1.0 [07:58:16]action value=close_receipt [07:58:16]process_action close_receipt [07:58:16]cmd_close_receipt [07:58:16]MH_GetDate [07:58:16]Write to MH i2c: F0 00 00 46 26 5B [07:58:16]Write i2c OK [07:58:16]MH_I2C_Read... [07:58:16]Read from MH i2c: F0 [07:58:16]MH_I2C_Read... [07:58:16]Read from MH i2c: F0 09 00 [07:58:16]MH_I2C_Read... [07:58:16]Read from MH i2c: F0 09 00 46 26 00 1A 5B 17 67 A0 18 CA 66 3F [07:58:16]GetLastDocTimeStamp 1729583857 [07:58:16]current date 1729583898 [07:58:16]FM_GetShiftState [07:58:16]SAM_PROTO_GetShiftState [07:58:16]wFMCommunicate request_size=4 [07:58:16]MH_SAM_APDU [07:58:16]CAPDU: 80 13 01 00 [07:58:16]Write to MH i2c: E2 08 00 47 26 80 13 01 00 00 00 00 00 EA [07:58:16]Write i2c OK [07:58:16]MH_I2C_Read... [07:58:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:16]Read from MH i2c: E2 [07:58:16]MH_I2C_Read... [07:58:16]Read from MH i2c: E2 0E 00 [07:58:16]MH_I2C_Read... [07:58:16]Read from MH i2c: E2 0E 00 47 26 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DF [07:58:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:58:16]wFMCommunicate OK [07:58:16]SAM_PROTO_GetShiftState done [07:58:16]FM_GetShiftState done [07:58:16]opened in 1729556094 [07:58:16]opened+sec_in_day 1729642494 [07:58:16]quantity*price = 100021 [07:58:16]sum+1 = 100023 [07:58:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 115 22.10.2024 07:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188086 ФПД: 34156642355805 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188086&fm=34156642355805&tin=02508201610067®Number=0000000000100030&sum=100000 [07:58:17]StoreToDocumentArchive [07:58:17]shift 461 fd 188086 [07:58:17]save to /storage/0461/doc_00188086 [07:58:17]save last doc name /storage/0461/doc_00188086 to /storage/kkm_last_doc_name [07:58:17]save OK [07:58:17]Clear old archive folders... [07:58:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:58:17]tlvbuf is 01BD2640 [07:58:17]SAM_PROTO_ClearQueue [07:58:17]wFMCommunicate request_size=4 [07:58:17]MH_SAM_APDU [07:58:17]CAPDU: 80 09 00 00 [07:58:17]Write to MH i2c: E2 08 00 54 26 80 09 00 00 00 00 00 00 EC [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 54 26 00 90 00 EE [07:58:17]RAPDU: 90 00 [07:58:17]wFMCommunicate OK [07:58:17]SAM_PROTO_ClearQueue done [07:58:17]KKMCreateOFDPacket [07:58:17]OFDProtocolAddRootSTLVToBuf [07:58:17]FM_MakeSignedData [07:58:17]FM_MakeSignedData [07:58:17]SAM_PROTO_SignData [07:58:17]wFMCommunicate request_size=4 [07:58:17]MH_SAM_APDU [07:58:17]CAPDU: 80 0D 01 02 [07:58:17]Write to MH i2c: E2 08 00 55 26 80 0D 01 02 00 00 00 00 F4 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 55 26 00 90 00 EF [07:58:17]RAPDU: 90 00 [07:58:17]wFMCommunicate OK [07:58:17]wFMCommunicate request_size=255 [07:58:17]MH_SAM_APDU [07:58: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 73 00 00 00 F4 03 04 00 1A 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DE 02 00 35 04 06 00 1F [07:58:17]Write to MH i2c: E2 02 01 56 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 73 00 00 00 F4 03 04 00 1A 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DE 02 00 35 04 06 00 1F 00 00 6D [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]OFD Sender: No OFD packet to send [07:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 56 26 00 90 00 F0 [07:58:17]RAPDU: 90 00 [07:58:17]wFMCommunicate OK [07:58:17]wFMCommunicate request_size=10 [07:58:17]MH_SAM_APDU [07:58:17]CAPDU: 80 0D 02 02 05 10 B6 88 CA 5D [07:58:17]Write to MH i2c: E2 0D 00 57 26 80 0D 02 02 05 00 10 B6 88 CA 5D 00 00 76 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 03 00 57 26 00 90 00 F1 [07:58:17]RAPDU: 90 00 [07:58:17]wFMCommunicate OK [07:58:17]wFMCommunicate request_size=4 [07:58:17]MH_SAM_APDU [07:58:17]CAPDU: 80 0D 03 02 [07:58:17]Write to MH i2c: E2 08 00 58 26 80 0D 03 02 00 00 00 00 F9 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 0B 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 0B 00 58 26 00 9F 41 12 51 2B A5 B3 EA 90 00 AA [07:58:17]RAPDU: 9F 41 12 51 2B A5 B3 EA 90 00 [07:58:17]wFMCommunicate OK [07:58:17]SAM_PROTO_SignData done [07:58:17]FM_MakeSignedData done [07:58:17]CreateOFDProtocolMessage [07:58:17]wFMCommunicate request_size=4 [07:58:17]MH_SAM_APDU [07:58:17]CAPDU: 80 11 00 00 [07:58:17]Write to MH i2c: E2 08 00 59 26 80 11 00 00 00 00 00 00 F9 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:17]Read from MH i2c: E2 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 17 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: E2 17 00 59 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [07:58:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:58:17]wFMCommunicate OK [07:58:17]CreateOFDProtocolMessage done [07:58:17]OFDSenderStorePacket 188086 [07:58:17]StoreOFDPacket docnum=188086 [07:58:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 39 07 01 93 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 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 73 00 00 00 F4 03 04 00 1A 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DE 02 00 35 04 06 00 1F 10 B6 88 CA 5D 9F 41 12 51 2B A5 B3 EA [07:58:17]CheckFolder [07:58:17]dirname=/storage/ofd_packets [07:58:17]CheckFolder done [07:58:17]ProducePacketName [07:58:17]name=ofd_packets/00188086 [07:58:17]NVStorageSaveData ofd_packets/00188086 [07:58:17]File name is /storage/ofd_packets/00188086 [07:58:17]Write 301 bytes [07:58:17]NVStorageSaveData done [07:58:17]OFDSenderStorePacket done [07:58:17]KKMCreateOFDPacket done [07:58:17]NVStorageSaveData kkm_last_timestamp [07:58:17]File name is /storage/kkm_last_timestamp [07:58:17]Write 4 bytes [07:58:17]NVStorageSaveData done [07:58:17]ExternCall_PrintAddStr [07:58:17]wPrintStart [07:58:17]Write to MH i2c: 01 00 00 5A 26 80 [07:58:17]Write i2c OK [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: 01 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: 01 07 00 [07:58:17]MH_I2C_Read... [07:58:17]Read from MH i2c: 01 07 00 5A 26 00 00 00 00 00 FF 0F 95 [07:58:17]RasterBufferAndPrint [07:58:17]line Счет N : (1)210138 [07:58:17]line ИНН: 02508201610067 [07:58:17]line Контрольно-Кассовый Чек [07:58:17]line ПРОДАЖА [07:58:17]line ТРК (МРК, ГНК) : 33 [07:58:17]line Товар: 2710124500 [07:58:17]line Аи-95-К-3 [07:58:17]line 13.480 * 74.20 [07:58:17]line = 1000.22 [07:58:17]line НДС 12% НСП 1% [07:58:17]line > о реализуемом товаре [07:58:17]line ОКРУГЛЕНИЕ: -0.22 [07:58:17]line ИТОГО: 1000.00 [07:58:17]line Внесено: 1000.00 [07:58:17]line СДАЧА: 0.00 [07:58:17]line НСП 1% : 8.85 [07:58:17]line НДС 12% : 106.22 [07:58:17]line Наличными: 1000.00 [07:58:17]line Безнал.: 0.00 [07:58:17]line Место: АЗС № 86 "Партнер Нефть" [07:58:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:58:17]line СНО: Общий режим [07:58:17]line Чек 115 22.10.2024 07:58 [07:58:17]line Смена: 461 ФФД: 1.0 [07:58:17]line ЗНМ: 0300000155 [07:58:17]line РНМ: 0000000000100030 [07:58:17]line Версия ККМ: 001 [07:58:17]line ФМ: 0000000000965340 [07:58:17]line ФД: 188086 [07:58:17]line ФПД: 34156642355805 [07:58:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075818&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188086&fm=34156642355805&tin=02508201610067®Number=0000000000100030&sum=100000 [07:58:18]written 0, free lines is 4095 [07:58:18]OFD Sender: Processing packet 188086 [packets to send 1062, broken 1061] [07:58:18]ProducePacketName [07:58:18]name=ofd_packets/00188086 [07:58:18]OFD Sender: To server: pG, [07:58:18]CommunicateWithHost lk.salyk.kg:30040 [07:58:18]ConnectInit lk.salyk.kg [07:58:18]Connected sock=9 [07:58:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 39 07 01 93 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 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 73 00 00 00 F4 03 04 00 1A 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DE 02 00 35 04 06 00 1F 10 B6 88 CA 5D 9F 41 12 51 2B A5 B3 EA [07:58:18]Write to MH i2c: 01 00 00 85 26 AB [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: 01 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: 01 07 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: 01 07 00 85 26 00 00 00 00 00 52 0C 10 [07:58:18]RasterBufferAndPrint [07:58:18]line [07:58:18]line [07:58:18]line [07:58:18]line [07:58:18]line [07:58:18]written 0, free lines is 3158 [07:58:18]MH_Cut [07:58:18]Write to MH i2c: D1 01 00 8C 26 01 84 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: D1 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: D1 01 00 [07:58:18]MH_I2C_Read... [07:58:18]Read from MH i2c: D1 01 00 8C 26 00 83 [07:58:18]Write to MH i2c: 01 00 00 8D 26 B3 [07:58:18]Write i2c OK [07:58:18]MH_I2C_Read... [07:58:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A5 80 47 00 27 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 39 36 35 33 34 30 10 04 04 00 B6 DE 02 00 F4 03 04 00 08 05 17 67 B6 04 01 00 00 4A 40 A6 EA 80 54 37 57 [07:58:18]CommunicateWithHost err = 0 [07:58:18]CheckOFDResponse [07:58:18]1017 (14) - 77093643461234 [07:58:18]1041 (16) - 0000000000965340 [07:58:18]1040 (4) - 188086 [07:58:18]1012 (4) - 22.10.2024 01:51 [07:58:18]1206 (1) - 0 [07:58:18]OFD Sender: Remove packet 188086 [07:58:18]ProducePacketName [07:58:18]name=ofd_packets/00188086 [07:58:18]NVStorageDeleteData [07:58:19]OFD Sender: No OFD packet to send [07:58:19]*** Cut start [07:58:19]*** Partial cut [07:58:19]*** CUTSNS_PIN = 1 [07:58:19]*** CUTSNS_PIN = 0 [07:58:20]*** Brake cut motor [07:58:20]Read from MH i2c: 01 [07:58:20]MH_I2C_Read... [07:58:20]*** Stop cut motor [07:58:20]*** Cut end [07:58:20]Read from MH i2c: 01 07 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: 01 07 00 8D 26 00 00 00 00 00 FF 0F C8 [07:58:20]process_action close_receipt done [07:58:20]requested_data is exist [07:58:20]produce_requested_data [07:58:20]requested_item fm.sn is exist - process it [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 11 00 00 [07:58:20]Write to MH i2c: E2 08 00 8E 26 80 11 00 00 00 00 00 00 2E [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 17 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 17 00 8E 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [07:58:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:58:20]wFMCommunicate OK [07:58:20]requested_item fd.num is exist - process it [07:58:20]SAM_PROTO_GetFieldsCounters [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 13 00 00 [07:58:20]Write to MH i2c: E2 08 00 8F 26 80 13 00 00 00 00 00 00 31 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 62 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 62 00 8F 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DE 02 00 0E 04 04 00 CD 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 F5 [07:58:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DE 02 00 0E 04 04 00 CD 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 [07:58:20]wFMCommunicate OK [07:58:20]SAM_PROTO_GetFieldsCounters done [07:58:20]requested_item shift.num is exist - process it [07:58:20]requested_item shift.opened is exist - process it [07:58:20]req_shift_opened [07:58:20]FM_GetShiftState [07:58:20]SAM_PROTO_GetShiftState [07:58:20]wFMCommunicate request_size=4 [07:58:20]MH_SAM_APDU [07:58:20]CAPDU: 80 13 01 00 [07:58:20]Write to MH i2c: E2 08 00 90 26 80 13 01 00 00 00 00 00 33 [07:58:20]Write i2c OK [07:58:20]MH_I2C_Read... [07:58:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:58:20]Read from MH i2c: E2 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 0E 00 [07:58:20]MH_I2C_Read... [07:58:20]Read from MH i2c: E2 0E 00 90 26 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 28 [07:58:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:58:20]wFMCommunicate OK [07:58:20]SAM_PROTO_GetShiftState done [07:58:20]FM_GetShiftState done [07:58:20]req_shift_opened done [07:58:20]requested_item shift.open_date is exist - process it [07:58:20]req_shift_open_date [07:58:20]req_shift_open_date done [07:58:20]produce_requested_data done [07:58:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188086,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:58:20]process_action_free close_receipt [07:58:20]json_value_free [07:58:20]json_value_free done [07:58:20]process_json_proto returns [07:58:20]Send response to host [07:58:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188086,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:58:20]free response buf [07:58:20]execute_script done [07:58:20]execute_script returns [07:58:20]free content buf [07:58:20]Sock 8.Close socket [07:58:20]Sock 8.Thread stoped [07:58:24]OFD Sender: No OFD packet to send [07:58:29]OFD Sender: No OFD packet to send [07:58:34]OFD Sender: No OFD packet to send [07:58:39]OFD Sender: No OFD packet to send [07:58:44]OFD Sender: No OFD packet to send [07:58:49]OFD Sender: No OFD packet to send [07:58:54]OFD Sender: No OFD packet to send [07:58:59]OFD Sender: No OFD packet to send [07:59:04]OFD Sender: No OFD packet to send [07:59:09]OFD Sender: No OFD packet to send [07:59:14]OFD Sender: No OFD packet to send [07:59:19]OFD Sender: No OFD packet to send [07:59:24]OFD Sender: No OFD packet to send [07:59:29]OFD Sender: No OFD packet to send [07:59:34]OFD Sender: No OFD packet to send [07:59:37]accept exits with 10 [07:59:37]New connection [07:59:37]New thread 3067055460 created [07:59:37]Thread 3067198820 joined [07:59:37]Waiting for new connection... [07:59:37] Sock 10.Parse request [07:59:37]Sock 10.Check first char [07:59:37]Sock 10.First char is OK [07:59:37]request: POST /json_proto HTTP/1.0 [07:59:37]Method: POST [07:59:37]URL: /json_proto [07:59:37]Method is POST - this is cgi request [07:59:37]url: /json_proto [07:59:37]query_string will be loaded in cgi processing [07:59:37]execute_cgi json_proto POST (null) [07:59:37]execute_cgi path=json_proto method=POST [07:59:37]POST find Content-Length [07:59:37]Host: 172.17.42.131:8080 [07:59:37]Content-Length: 769 [07:59:37]Content-Type: application/json [07:59:37] [07:59:37]POST finish read [07:59:37]Found Content-Length = 769 [07:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:37]execute_script... [07:59: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)210139", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:59:37]POST & json_proto [07:59:37]process_json_proto [07:59:37]json parsed OK: [07:59:37]protocol is kg_v1.0 [07:59:37]action value=close_receipt [07:59:37]process_action close_receipt [07:59:37]cmd_close_receipt [07:59:37]MH_GetDate [07:59:37]Write to MH i2c: F0 00 00 91 26 A6 [07:59:37]Write i2c OK [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: F0 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: F0 09 00 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: F0 09 00 91 26 00 6C 5B 17 67 A0 18 CA 66 DC [07:59:37]GetLastDocTimeStamp 1729583898 [07:59:37]current date 1729583980 [07:59:37]FM_GetShiftState [07:59:37]SAM_PROTO_GetShiftState [07:59:37]wFMCommunicate request_size=4 [07:59:37]MH_SAM_APDU [07:59:37]CAPDU: 80 13 01 00 [07:59:37]Write to MH i2c: E2 08 00 92 26 80 13 01 00 00 00 00 00 35 [07:59:37]Write i2c OK [07:59:37]MH_I2C_Read... [07:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:37]Read from MH i2c: E2 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 0E 00 [07:59:37]MH_I2C_Read... [07:59:37]Read from MH i2c: E2 0E 00 92 26 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2A [07:59:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:59:37]wFMCommunicate OK [07:59:37]SAM_PROTO_GetShiftState done [07:59:37]FM_GetShiftState done [07:59:37]opened in 1729556094 [07:59:37]opened+sec_in_day 1729642494 [07:59:37]quantity*price = 100015 [07:59:37]sum+1 = 100017 [07:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 116 22.10.2024 07:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188087 ФПД: 34063323690493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188087&fm=34063323690493&tin=02508201610067®Number=0000000000100030&sum=100016 [07:59:38]StoreToDocumentArchive [07:59:38]shift 461 fd 188087 [07:59:38]save to /storage/0461/doc_00188087 [07:59:38]save last doc name /storage/0461/doc_00188087 to /storage/kkm_last_doc_name [07:59:38]save OK [07:59:38]Clear old archive folders... [07:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [07:59:38]tlvbuf is 01BBC530 [07:59:38]SAM_PROTO_ClearQueue [07:59:38]wFMCommunicate request_size=4 [07:59:38]MH_SAM_APDU [07:59:38]CAPDU: 80 09 00 00 [07:59:38]Write to MH i2c: E2 08 00 9F 26 80 09 00 00 00 00 00 00 37 [07:59:38]Write i2c OK [07:59:38]MH_I2C_Read... [07:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:59:38]Read from MH i2c: E2 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 03 00 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 03 00 9F 26 00 90 00 39 [07:59:38]RAPDU: 90 00 [07:59:38]wFMCommunicate OK [07:59:38]SAM_PROTO_ClearQueue done [07:59:38]KKMCreateOFDPacket [07:59:38]OFDProtocolAddRootSTLVToBuf [07:59:38]FM_MakeSignedData [07:59:38]FM_MakeSignedData [07:59:38]SAM_PROTO_SignData [07:59:38]wFMCommunicate request_size=4 [07:59:38]MH_SAM_APDU [07:59:38]CAPDU: 80 0D 01 02 [07:59:38]Write to MH i2c: E2 08 00 A0 26 80 0D 01 02 00 00 00 00 3F [07:59:38]Write i2c OK [07:59:38]MH_I2C_Read... [07:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:59:38]Read from MH i2c: E2 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 03 00 [07:59:38]MH_I2C_Read... [07:59:38]Read from MH i2c: E2 03 00 A0 26 00 90 00 3A [07:59:38]RAPDU: 90 00 [07:59:38]wFMCommunicate OK [07:59:38]wFMCommunicate request_size=255 [07:59:38]MH_SAM_APDU [07:59:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6C 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DE 02 00 35 04 06 00 1E [07:59:38]Write to MH i2c: E2 02 01 A1 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6C 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DE 02 00 35 04 06 00 1E 00 00 08 [07:59:38]Write i2c OK [07:59:38]MH_I2C_Read... [07:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:39]Read from MH i2c: E2 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 03 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 03 00 A1 26 00 90 00 3B [07:59:39]RAPDU: 90 00 [07:59:39]wFMCommunicate OK [07:59:39]wFMCommunicate request_size=10 [07:59:39]MH_SAM_APDU [07:59:39]CAPDU: 80 0D 02 02 05 FA FC 4E F5 FD [07:59:39]Write to MH i2c: E2 0D 00 A2 26 80 0D 02 02 05 00 FA FC 4E F5 FD 00 00 82 [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:59:39]Read from MH i2c: E2 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 03 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 03 00 A2 26 00 90 00 3C [07:59:39]RAPDU: 90 00 [07:59:39]wFMCommunicate OK [07:59:39]wFMCommunicate request_size=4 [07:59:39]MH_SAM_APDU [07:59:39]CAPDU: 80 0D 03 02 [07:59:39]Write to MH i2c: E2 08 00 A3 26 80 0D 03 02 00 00 00 00 44 [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:59:39]Read from MH i2c: E2 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 0B 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 0B 00 A3 26 00 75 45 77 EC B7 26 F6 0E 90 00 43 [07:59:39]RAPDU: 75 45 77 EC B7 26 F6 0E 90 00 [07:59:39]wFMCommunicate OK [07:59:39]SAM_PROTO_SignData done [07:59:39]FM_MakeSignedData done [07:59:39]CreateOFDProtocolMessage [07:59:39]wFMCommunicate request_size=4 [07:59:39]MH_SAM_APDU [07:59:39]CAPDU: 80 11 00 00 [07:59:39]Write to MH i2c: E2 08 00 A4 26 80 11 00 00 00 00 00 00 44 [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:39]Read from MH i2c: E2 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 17 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: E2 17 00 A4 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [07:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:59:39]wFMCommunicate OK [07:59:39]CreateOFDProtocolMessage done [07:59:39]OFDSenderStorePacket 188087 [07:59:39]StoreOFDPacket docnum=188087 [07:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 6E 07 01 3C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6C 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DE 02 00 35 04 06 00 1E FA FC 4E F5 FD 75 45 77 EC B7 26 F6 0E [07:59:39]CheckFolder [07:59:39]dirname=/storage/ofd_packets [07:59:39]CheckFolder done [07:59:39]ProducePacketName [07:59:39]name=ofd_packets/00188087 [07:59:39]NVStorageSaveData ofd_packets/00188087 [07:59:39]File name is /storage/ofd_packets/00188087 [07:59:39]Write 301 bytes [07:59:39]NVStorageSaveData done [07:59:39]OFDSenderStorePacket done [07:59:39]KKMCreateOFDPacket done [07:59:39]NVStorageSaveData kkm_last_timestamp [07:59:39]File name is /storage/kkm_last_timestamp [07:59:39]Write 4 bytes [07:59:39]NVStorageSaveData done [07:59:39]ExternCall_PrintAddStr [07:59:39]wPrintStart [07:59:39]Write to MH i2c: 01 00 00 A5 26 CB [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: 01 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: 01 07 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: 01 07 00 A5 26 00 00 00 00 00 FF 0F E0 [07:59:39]RasterBufferAndPrint [07:59:39]line Счет N : (1)210139 [07:59:39]line ИНН: 02508201610067 [07:59:39]line Контрольно-Кассовый Чек [07:59:39]line ПРОДАЖА [07:59:39]line ТРК (МРК, ГНК) : 12 [07:59:39]line Товар: 2710124130 [07:59:39]line Аи-92-К-3 [07:59:39]line 14.950 * 66.90 [07:59:39]line = 1000.16 [07:59:39]line НДС 12% НСП 1% [07:59:39]line > о реализуемом товаре [07:59:39]line ИТОГО: 1000.16 [07:59:39]line НСП 1% : 8.85 [07:59:39]line НДС 12% : 106.21 [07:59:39]line Наличными: 0.00 [07:59:39]line Безнал.: 1000.16 [07:59:39]line Место: АЗС № 86 "Партнер Нефть" [07:59:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [07:59:39]line СНО: Общий режим [07:59:39]line Чек 116 22.10.2024 07:59 [07:59:39]line Смена: 461 ФФД: 1.0 [07:59:39]line ЗНМ: 0300000155 [07:59:39]line РНМ: 0000000000100030 [07:59:39]line Версия ККМ: 001 [07:59:39]line Платежная система: Mbank [07:59:39]line ФМ: 0000000000965340 [07:59:39]line ФД: 188087 [07:59:39]line ФПД: 34063323690493 [07:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T075940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188087&fm=34063323690493&tin=02508201610067®Number=0000000000100030&sum=100016 [07:59:39]written 0, free lines is 4095 [07:59:39]OFD Sender: Processing packet 188087 [packets to send 1062, broken 1061] [07:59:39]ProducePacketName [07:59:39]name=ofd_packets/00188087 [07:59:39]OFD Sender: To server: pG, [07:59:39]CommunicateWithHost lk.salyk.kg:30040 [07:59:39]ConnectInit lk.salyk.kg [07:59:39]Connected sock=9 [07:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 6E 07 01 3C 19 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 6C 5B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DE 02 00 35 04 06 00 1E FA FC 4E F5 FD 75 45 77 EC B7 26 F6 0E [07:59:39]Write to MH i2c: 01 00 00 CE 26 F4 [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: 01 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: 01 07 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: 01 07 00 CE 26 00 00 00 00 00 81 0C 88 [07:59:39]RasterBufferAndPrint [07:59:39]line [07:59:39]line [07:59:39]line [07:59:39]line [07:59:39]line [07:59:39]written 0, free lines is 3206 [07:59:39]MH_Cut [07:59:39]Write to MH i2c: D1 01 00 D5 26 01 CD [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: D1 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: D1 01 00 [07:59:39]MH_I2C_Read... [07:59:39]Read from MH i2c: D1 01 00 D5 26 00 CC [07:59:39]Write to MH i2c: 01 00 00 D6 26 FC [07:59:39]Write i2c OK [07:59:39]MH_I2C_Read... [07:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A 3F 47 00 06 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DE 02 00 F4 03 04 00 59 05 17 67 B6 04 01 00 00 E0 98 EC 80 D2 9B 9C AD [07:59:39]CommunicateWithHost err = 0 [07:59:39]CheckOFDResponse [07:59:39]1017 (14) - 77093643461234 [07:59:39]1041 (16) - 0000000000965340 [07:59:39]1040 (4) - 188087 [07:59:39]1012 (4) - 22.10.2024 01:52 [07:59:39]1206 (1) - 0 [07:59:39]OFD Sender: Remove packet 188087 [07:59:39]ProducePacketName [07:59:39]name=ofd_packets/00188087 [07:59:39]NVStorageDeleteData [07:59:40]OFD Sender: No OFD packet to send [07:59:40]*** Cut start [07:59:40]*** Partial cut [07:59:40]*** CUTSNS_PIN = 1 [07:59:40]*** CUTSNS_PIN = 0 [07:59:41]*** Brake cut motor [07:59:41]Read from MH i2c: 01 [07:59:41]MH_I2C_Read... [07:59:41]*** Stop cut motor [07:59:41]*** Cut end [07:59:41]Read from MH i2c: 01 07 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: 01 07 00 D6 26 00 00 00 00 00 FF 0F 11 [07:59:41]process_action close_receipt done [07:59:41]requested_data is exist [07:59:41]produce_requested_data [07:59:41]requested_item fm.sn is exist - process it [07:59:41]wFMCommunicate request_size=4 [07:59:41]MH_SAM_APDU [07:59:41]CAPDU: 80 11 00 00 [07:59:41]Write to MH i2c: E2 08 00 D7 26 80 11 00 00 00 00 00 00 77 [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:59:41]Read from MH i2c: E2 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 17 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 17 00 D7 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [07:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [07:59:41]wFMCommunicate OK [07:59:41]requested_item fd.num is exist - process it [07:59:41]SAM_PROTO_GetFieldsCounters [07:59:41]wFMCommunicate request_size=4 [07:59:41]MH_SAM_APDU [07:59:41]CAPDU: 80 13 00 00 [07:59:41]Write to MH i2c: E2 08 00 D8 26 80 13 00 00 00 00 00 00 7A [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:59:41]Read from MH i2c: E2 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 62 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 62 00 D8 26 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DE 02 00 0E 04 04 00 CD 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 42 [07:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DE 02 00 0E 04 04 00 CD 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 [07:59:41]wFMCommunicate OK [07:59:41]SAM_PROTO_GetFieldsCounters done [07:59:41]requested_item shift.num is exist - process it [07:59:41]requested_item shift.opened is exist - process it [07:59:41]req_shift_opened [07:59:41]FM_GetShiftState [07:59:41]SAM_PROTO_GetShiftState [07:59:41]wFMCommunicate request_size=4 [07:59:41]MH_SAM_APDU [07:59:41]CAPDU: 80 13 01 00 [07:59:41]Write to MH i2c: E2 08 00 D9 26 80 13 01 00 00 00 00 00 7C [07:59:41]Write i2c OK [07:59:41]MH_I2C_Read... [07:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:59:41]Read from MH i2c: E2 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 0E 00 [07:59:41]MH_I2C_Read... [07:59:41]Read from MH i2c: E2 0E 00 D9 26 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [07:59:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [07:59:41]wFMCommunicate OK [07:59:41]SAM_PROTO_GetShiftState done [07:59:41]FM_GetShiftState done [07:59:41]req_shift_opened done [07:59:41]requested_item shift.open_date is exist - process it [07:59:41]req_shift_open_date [07:59:41]req_shift_open_date done [07:59:41]produce_requested_data done [07:59:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188087,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [07:59:41]process_action_free close_receipt [07:59:41]json_value_free [07:59:41]json_value_free done [07:59:41]process_json_proto returns [07:59:41]Send response to host [07:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188087,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [07:59:41]free response buf [07:59:41]execute_script done [07:59:41]execute_script returns [07:59:41]free content buf [07:59:41]Sock 10.Close socket [07:59:41]Sock 10.Thread stoped [07:59:45]OFD Sender: No OFD packet to send [07:59:50]OFD Sender: No OFD packet to send [07:59:55]OFD Sender: No OFD packet to send [08:00:00]OFD Sender: No OFD packet to send [08:00:05]OFD Sender: No OFD packet to send [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: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:46]OFD Sender: No OFD packet to send [08:01:51]OFD Sender: No OFD packet to send [08:01:56]OFD Sender: No OFD packet to send [08:02:01]OFD Sender: No OFD packet to send [08:02:06]OFD Sender: No OFD packet to send [08:02:11]OFD Sender: No OFD packet to send [08:02:16]OFD Sender: No OFD packet to send [08:02:21]OFD Sender: No OFD packet to send [08:02:26]OFD Sender: No OFD packet to send [08:02:31]OFD Sender: No OFD packet to send [08:02:36]OFD Sender: No OFD packet to send [08:02:41]OFD Sender: No OFD packet to send [08:02:46]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:16]accept exits with 8 [08:03:16]New connection [08:03:16]New thread 3067198820 created [08:03:16]Thread 3067055460 joined [08:03:16]Waiting for new connection... [08:03:16] Sock 8.Parse request [08:03:16]Sock 8.Check first char [08:03:16]Sock 8.First char is OK [08:03:16]request: POST /json_proto HTTP/1.0 [08:03:16]Method: POST [08:03:16]URL: /json_proto [08:03:16]Method is POST - this is cgi request [08:03:16]url: /json_proto [08:03:16]query_string will be loaded in cgi processing [08:03:16]execute_cgi json_proto POST (null) [08:03:16]execute_cgi path=json_proto method=POST [08:03:16]POST find Content-Length [08:03:16]Host: 172.17.42.131:8080 [08:03:16]Content-Length: 677 [08:03:16]Content-Type: application/json [08:03:16] [08:03:16]POST finish read [08:03:16]Found Content-Length = 677 [08:03:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:16]execute_script... [08:03: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)210140", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:03:16]POST & json_proto [08:03:16]process_json_proto [08:03:16]json parsed OK: [08:03:16]protocol is kg_v1.0 [08:03:16]action value=close_receipt [08:03:16]process_action close_receipt [08:03:16]cmd_close_receipt [08:03:16]MH_GetDate [08:03:16]Write to MH i2c: F0 00 00 DA 26 EF [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: F0 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: F0 09 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: F0 09 00 DA 26 00 47 5C 17 67 A0 18 CA 66 01 [08:03:16]GetLastDocTimeStamp 1729583980 [08:03:16]current date 1729584199 [08:03:16]FM_GetShiftState [08:03:16]SAM_PROTO_GetShiftState [08:03:16]wFMCommunicate request_size=4 [08:03:16]MH_SAM_APDU [08:03:16]CAPDU: 80 13 01 00 [08:03:16]Write to MH i2c: E2 08 00 DB 26 80 13 01 00 00 00 00 00 7E [08:03:16]Write i2c OK [08:03:16]MH_I2C_Read... [08:03:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:16]Read from MH i2c: E2 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0E 00 [08:03:16]MH_I2C_Read... [08:03:16]Read from MH i2c: E2 0E 00 DB 26 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 73 [08:03:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:03:16]wFMCommunicate OK [08:03:16]SAM_PROTO_GetShiftState done [08:03:16]FM_GetShiftState done [08:03:16]opened in 1729556094 [08:03:16]opened+sec_in_day 1729642494 [08:03:16]quantity*price = 20003 [08:03:16]sum+1 = 20004 [08:03:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 117 22.10.2024 08:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188088 ФПД: 220416024333014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188088&fm=220416024333014&tin=02508201610067®Number=0000000000100030&sum=20000 [08:03:17]StoreToDocumentArchive [08:03:17]shift 461 fd 188088 [08:03:17]save to /storage/0461/doc_00188088 [08:03:17]save last doc name /storage/0461/doc_00188088 to /storage/kkm_last_doc_name [08:03:17]save OK [08:03:17]Clear old archive folders... [08:03:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:03:17]tlvbuf is 01C30870 [08:03:17]SAM_PROTO_ClearQueue [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 09 00 00 [08:03:17]Write to MH i2c: E2 08 00 E8 26 80 09 00 00 00 00 00 00 80 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:03:17]Read from MH i2c: E2 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 03 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 03 00 E8 26 00 90 00 82 [08:03:17]RAPDU: 90 00 [08:03:17]wFMCommunicate OK [08:03:17]SAM_PROTO_ClearQueue done [08:03:17]KKMCreateOFDPacket [08:03:17]OFDProtocolAddRootSTLVToBuf [08:03:17]FM_MakeSignedData [08:03:17]FM_MakeSignedData [08:03:17]SAM_PROTO_SignData [08:03:17]wFMCommunicate request_size=4 [08:03:17]MH_SAM_APDU [08:03:17]CAPDU: 80 0D 01 02 [08:03:17]Write to MH i2c: E2 08 00 E9 26 80 0D 01 02 00 00 00 00 88 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:03:17]Read from MH i2c: E2 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 03 00 [08:03:17]MH_I2C_Read... [08:03:17]Read from MH i2c: E2 03 00 E9 26 00 90 00 83 [08:03:17]RAPDU: 90 00 [08:03:17]wFMCommunicate OK [08:03:17]wFMCommunicate request_size=255 [08:03:17]MH_SAM_APDU [08:03: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DE 02 00 35 04 06 00 C8 [08:03:17]Write to MH i2c: E2 02 01 EA 26 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DE 02 00 35 04 06 00 C8 00 00 81 [08:03:17]Write i2c OK [08:03:17]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 EA 26 00 90 00 84 [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]wFMCommunicate request_size=10 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 02 02 05 77 9A D5 4A D6 [08:03:18]Write to MH i2c: E2 0D 00 EB 26 80 0D 02 02 05 00 77 9A D5 4A D6 00 00 9B [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 03 00 EB 26 00 90 00 85 [08:03:18]RAPDU: 90 00 [08:03:18]wFMCommunicate OK [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 0D 03 02 [08:03:18]Write to MH i2c: E2 08 00 EC 26 80 0D 03 02 00 00 00 00 8D [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0B 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 0B 00 EC 26 00 86 35 BE 22 AF 86 92 B0 90 00 A0 [08:03:18]RAPDU: 86 35 BE 22 AF 86 92 B0 90 00 [08:03:18]wFMCommunicate OK [08:03:18]SAM_PROTO_SignData done [08:03:18]FM_MakeSignedData done [08:03:18]CreateOFDProtocolMessage [08:03:18]wFMCommunicate request_size=4 [08:03:18]MH_SAM_APDU [08:03:18]CAPDU: 80 11 00 00 [08:03:18]Write to MH i2c: E2 08 00 ED 26 80 11 00 00 00 00 00 00 8D [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:18]Read from MH i2c: E2 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 17 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: E2 17 00 ED 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [08:03:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:03:18]wFMCommunicate OK [08:03:18]CreateOFDProtocolMessage done [08:03:18]OFDSenderStorePacket 188088 [08:03:18]StoreOFDPacket docnum=188088 [08:03:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B9 D8 07 01 71 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DE 02 00 35 04 06 00 C8 77 9A D5 4A D6 86 35 BE 22 AF 86 92 B0 [08:03:18]CheckFolder [08:03:18]dirname=/storage/ofd_packets [08:03:18]CheckFolder done [08:03:18]ProducePacketName [08:03:18]name=ofd_packets/00188088 [08:03:18]NVStorageSaveData ofd_packets/00188088 [08:03:18]File name is /storage/ofd_packets/00188088 [08:03:18]Write 301 bytes [08:03:18]NVStorageSaveData done [08:03:18]OFDSenderStorePacket done [08:03:18]KKMCreateOFDPacket done [08:03:18]NVStorageSaveData kkm_last_timestamp [08:03:18]File name is /storage/kkm_last_timestamp [08:03:18]Write 4 bytes [08:03:18]NVStorageSaveData done [08:03:18]ExternCall_PrintAddStr [08:03:18]wPrintStart [08:03:18]Write to MH i2c: 01 00 00 EE 26 14 [08:03:18]Write i2c OK [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 07 00 [08:03:18]MH_I2C_Read... [08:03:18]Read from MH i2c: 01 07 00 EE 26 00 00 00 00 00 FF 0F 29 [08:03:18]RasterBufferAndPrint [08:03:18]line Счет N : (1)210140 [08:03:18]line ИНН: 02508201610067 [08:03:18]line Контрольно-Кассовый Чек [08:03:18]line ПРОДАЖА [08:03:18]line ТРК (МРК, ГНК) : 42 [08:03:18]line Товар: 2710124130 [08:03:18]line Аи-92-К-3 [08:03:18]line 2.990 * 66.90 [08:03:18]line = 200.03 [08:03:18]line НДС 12% НСП 1% [08:03:18]line > о реализуемом товаре [08:03:18]line ОКРУГЛЕНИЕ: -0.03 [08:03:18]line ИТОГО: 200.00 [08:03:18]line Внесено: 200.00 [08:03:18]line СДАЧА: 0.00 [08:03:18]line НСП 1% : 1.77 [08:03:18]line НДС 12% : 21.24 [08:03:18]line Наличными: 200.00 [08:03:18]line Безнал.: 0.00 [08:03:18]line Место: АЗС № 86 "Партнер Нефть" [08:03:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:03:18]line СНО: Общий режим [08:03:18]line Чек 117 22.10.2024 08:03 [08:03:18]line Смена: 461 ФФД: 1.0 [08:03:18]line ЗНМ: 0300000155 [08:03:18]line РНМ: 0000000000100030 [08:03:18]line Версия ККМ: 001 [08:03:18]line ФМ: 0000000000965340 [08:03:18]line ФД: 188088 [08:03:18]line ФПД: 220416024333014 [08:03:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188088&fm=220416024333014&tin=02508201610067®Number=0000000000100030&sum=20000 [08:03:18]OFD Sender: Processing packet 188088 [packets to send 1062, broken 1061] [08:03:18]ProducePacketName [08:03:18]name=ofd_packets/00188088 [08:03:18]OFD Sender: To server: pG, [08:03:18]CommunicateWithHost lk.salyk.kg:30040 [08:03:18]ConnectInit lk.salyk.kg [08:03:18]written 0, free lines is 4095 [08:03:18]Connected sock=10 [08:03:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B9 D8 07 01 71 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 47 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DE 02 00 35 04 06 00 C8 77 9A D5 4A D6 86 35 BE 22 AF 86 92 B0 [08:03:19]Write to MH i2c: 01 00 00 19 27 40 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: 01 07 00 19 27 00 00 00 00 00 50 0C A3 [08:03:19]RasterBufferAndPrint [08:03:19]line [08:03:19]line [08:03:19]line [08:03:19]line [08:03:19]line [08:03:19]written 0, free lines is 3155 [08:03:19]MH_Cut [08:03:19]Write to MH i2c: D1 01 00 20 27 01 19 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: D1 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: D1 01 00 [08:03:19]MH_I2C_Read... [08:03:19]Read from MH i2c: D1 01 00 20 27 00 18 [08:03:19]Write to MH i2c: 01 00 00 21 27 48 [08:03:19]Write i2c OK [08:03:19]MH_I2C_Read... [08:03:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 37 47 00 58 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 39 36 35 33 34 30 10 04 04 00 B8 DE 02 00 F4 03 04 00 35 06 17 67 B6 04 01 00 00 8A 16 56 6A 42 7C 89 8C [08:03:19]CommunicateWithHost err = 0 [08:03:19]CheckOFDResponse [08:03:19]1017 (14) - 77093643461234 [08:03:19]1041 (16) - 0000000000965340 [08:03:19]1040 (4) - 188088 [08:03:19]1012 (4) - 22.10.2024 01:56 [08:03:19]1206 (1) - 0 [08:03:19]OFD Sender: Remove packet 188088 [08:03:19]ProducePacketName [08:03:19]name=ofd_packets/00188088 [08:03:19]NVStorageDeleteData [08:03:19]OFD Sender: No OFD packet to send [08:03:20]*** Cut start [08:03:20]*** Partial cut [08:03:20]*** CUTSNS_PIN = 1 [08:03:20]*** CUTSNS_PIN = 0 [08:03:20]*** Brake cut motor [08:03:20]Read from MH i2c: 01 [08:03:20]MH_I2C_Read... [08:03:20]*** Stop cut motor [08:03:20]*** Cut end [08:03:20]Read from MH i2c: 01 07 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: 01 07 00 21 27 00 00 00 00 00 FF 0F 5D [08:03:20]process_action close_receipt done [08:03:20]requested_data is exist [08:03:20]produce_requested_data [08:03:20]requested_item fm.sn is exist - process it [08:03:20]wFMCommunicate request_size=4 [08:03:20]MH_SAM_APDU [08:03:20]CAPDU: 80 11 00 00 [08:03:20]Write to MH i2c: E2 08 00 22 27 80 11 00 00 00 00 00 00 C3 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: E2 [08:03:20]MH_I2C_Read... [08:03:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:03:20]Read from MH i2c: E2 17 00 [08:03:20]MH_I2C_Read... [08:03:20]Read from MH i2c: E2 17 00 22 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [08:03:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:03:20]wFMCommunicate OK [08:03:20]requested_item fd.num is exist - process it [08:03:20]SAM_PROTO_GetFieldsCounters [08:03:20]wFMCommunicate request_size=4 [08:03:20]MH_SAM_APDU [08:03:20]CAPDU: 80 13 00 00 [08:03:20]Write to MH i2c: E2 08 00 23 27 80 13 00 00 00 00 00 00 C6 [08:03:20]Write i2c OK [08:03:20]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 62 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 62 00 23 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DE 02 00 0E 04 04 00 CD 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 92 [08:03:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DE 02 00 0E 04 04 00 CD 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 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_GetFieldsCounters done [08:03:21]requested_item shift.num is exist - process it [08:03:21]requested_item shift.opened is exist - process it [08:03:21]req_shift_opened [08:03:21]FM_GetShiftState [08:03:21]SAM_PROTO_GetShiftState [08:03:21]wFMCommunicate request_size=4 [08:03:21]MH_SAM_APDU [08:03:21]CAPDU: 80 13 01 00 [08:03:21]Write to MH i2c: E2 08 00 24 27 80 13 01 00 00 00 00 00 C8 [08:03:21]Write i2c OK [08:03:21]MH_I2C_Read... [08:03:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:03:21]Read from MH i2c: E2 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 0E 00 [08:03:21]MH_I2C_Read... [08:03:21]Read from MH i2c: E2 0E 00 24 27 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BD [08:03:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:03:21]wFMCommunicate OK [08:03:21]SAM_PROTO_GetShiftState done [08:03:21]FM_GetShiftState done [08:03:21]req_shift_opened done [08:03:21]requested_item shift.open_date is exist - process it [08:03:21]req_shift_open_date [08:03:21]req_shift_open_date done [08:03:21]produce_requested_data done [08:03:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188088,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:03:21]process_action_free close_receipt [08:03:21]json_value_free [08:03:21]json_value_free done [08:03:21]process_json_proto returns [08:03:21]Send response to host [08:03:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188088,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:03:21]free response buf [08:03:21]execute_script done [08:03:21]execute_script returns [08:03:21]free content buf [08:03:21]Sock 8.Close socket [08:03:21]Sock 8.Thread stoped [08:03:24]OFD Sender: No OFD packet to send [08:03:29]OFD Sender: No OFD packet to send [08:03:34]OFD Sender: No OFD packet to send [08:03:39]OFD Sender: No OFD packet to send [08:03:44]OFD Sender: No OFD packet to send [08:03:49]OFD Sender: No OFD packet to send [08:03:54]OFD Sender: No OFD packet to send [08:03:59]OFD Sender: No OFD packet to send [08:04:04]OFD Sender: No OFD packet to send [08:04:09]OFD Sender: No OFD packet to send [08:04:14]OFD Sender: No OFD packet to send [08:04:19]OFD Sender: No OFD packet to send [08:04: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:23]accept exits with 9 [08:05:23]New connection [08:05:23]New thread 3067055460 created [08:05:23]Thread 3067198820 joined [08:05:23]Waiting for new connection... [08:05:23] Sock 9.Parse request [08:05:23]Sock 9.Check first char [08:05:23]Sock 9.First char is OK [08:05:23]request: POST /json_proto HTTP/1.0 [08:05:23]Method: POST [08:05:23]URL: /json_proto [08:05:23]Method is POST - this is cgi request [08:05:23]url: /json_proto [08:05:23]query_string will be loaded in cgi processing [08:05:23]execute_cgi json_proto POST (null) [08:05:23]execute_cgi path=json_proto method=POST [08:05:23]POST find Content-Length [08:05:23]Host: 172.17.42.131:8080 [08:05:23]Content-Length: 678 [08:05:23]Content-Type: application/json [08:05:23] [08:05:23]POST finish read [08:05:23]Found Content-Length = 678 [08:05:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:23]execute_script... [08:05:23]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210141", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:05:23]POST & json_proto [08:05:23]process_json_proto [08:05:23]json parsed OK: [08:05:23]protocol is kg_v1.0 [08:05:23]action value=close_receipt [08:05:23]process_action close_receipt [08:05:23]cmd_close_receipt [08:05:23]MH_GetDate [08:05:23]Write to MH i2c: F0 00 00 25 27 3B [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: F0 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: F0 09 00 [08:05:23]MH_I2C_Read... [08:05:23]Read from MH i2c: F0 09 00 25 27 00 C6 5C 17 67 A0 18 CA 66 CC [08:05:23]GetLastDocTimeStamp 1729584199 [08:05:23]current date 1729584326 [08:05:23]FM_GetShiftState [08:05:23]SAM_PROTO_GetShiftState [08:05:23]wFMCommunicate request_size=4 [08:05:23]MH_SAM_APDU [08:05:23]CAPDU: 80 13 01 00 [08:05:23]Write to MH i2c: E2 08 00 26 27 80 13 01 00 00 00 00 00 CA [08:05:23]Write i2c OK [08:05:23]MH_I2C_Read... [08:05:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:24]Read from MH i2c: E2 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 0E 00 [08:05:24]MH_I2C_Read... [08:05:24]Read from MH i2c: E2 0E 00 26 27 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BF [08:05:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:05:24]wFMCommunicate OK [08:05:24]SAM_PROTO_GetShiftState done [08:05:24]FM_GetShiftState done [08:05:24]opened in 1729556094 [08:05:24]opened+sec_in_day 1729642494 [08:05:24]quantity*price = 80012 [08:05:24]sum+1 = 80013 [08:05:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 118 22.10.2024 08:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188089 ФПД: 260371845913773 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080526&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188089&fm=260371845913773&tin=02508201610067®Number=0000000000100030&sum=80000 [08:05:25]StoreToDocumentArchive [08:05:25]shift 461 fd 188089 [08:05:25]save to /storage/0461/doc_00188089 [08:05:25]save last doc name /storage/0461/doc_00188089 to /storage/kkm_last_doc_name [08:05:25]save OK [08:05:25]Clear old archive folders... [08:05:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:05:25]tlvbuf is 01BA0180 [08:05:25]SAM_PROTO_ClearQueue [08:05:25]wFMCommunicate request_size=4 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 09 00 00 [08:05:25]Write to MH i2c: E2 08 00 33 27 80 09 00 00 00 00 00 00 CC [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 33 27 00 90 00 CE [08:05:25]RAPDU: 90 00 [08:05:25]wFMCommunicate OK [08:05:25]SAM_PROTO_ClearQueue done [08:05:25]KKMCreateOFDPacket [08:05:25]OFDProtocolAddRootSTLVToBuf [08:05:25]FM_MakeSignedData [08:05:25]FM_MakeSignedData [08:05:25]SAM_PROTO_SignData [08:05:25]wFMCommunicate request_size=4 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 0D 01 02 [08:05:25]Write to MH i2c: E2 08 00 34 27 80 0D 01 02 00 00 00 00 D4 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 34 27 00 90 00 CF [08:05:25]RAPDU: 90 00 [08:05:25]wFMCommunicate OK [08:05:25]wFMCommunicate request_size=255 [08:05:25]MH_SAM_APDU [08:05: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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C6 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DE 02 00 35 04 06 00 EC [08:05:25]Write to MH i2c: E2 02 01 35 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C6 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DE 02 00 35 04 06 00 EC 00 00 9C [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]OFD Sender: No OFD packet to send [08:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 35 27 00 90 00 D0 [08:05:25]RAPDU: 90 00 [08:05:25]wFMCommunicate OK [08:05:25]wFMCommunicate request_size=10 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 0D 02 02 05 CE 8B 62 9C AD [08:05:25]Write to MH i2c: E2 0D 00 36 27 80 0D 02 02 05 00 CE 8B 62 9C AD 00 00 E5 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 03 00 36 27 00 90 00 D1 [08:05:25]RAPDU: 90 00 [08:05:25]wFMCommunicate OK [08:05:25]wFMCommunicate request_size=4 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 0D 03 02 [08:05:25]Write to MH i2c: E2 08 00 37 27 80 0D 03 02 00 00 00 00 D9 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 0B 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 0B 00 37 27 00 77 4F E1 21 B4 8E B7 B7 90 00 52 [08:05:25]RAPDU: 77 4F E1 21 B4 8E B7 B7 90 00 [08:05:25]wFMCommunicate OK [08:05:25]SAM_PROTO_SignData done [08:05:25]FM_MakeSignedData done [08:05:25]CreateOFDProtocolMessage [08:05:25]wFMCommunicate request_size=4 [08:05:25]MH_SAM_APDU [08:05:25]CAPDU: 80 11 00 00 [08:05:25]Write to MH i2c: E2 08 00 38 27 80 11 00 00 00 00 00 00 D9 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:25]Read from MH i2c: E2 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 17 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: E2 17 00 38 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [08:05:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:05:25]wFMCommunicate OK [08:05:25]CreateOFDProtocolMessage done [08:05:25]OFDSenderStorePacket 188089 [08:05:25]StoreOFDPacket docnum=188089 [08:05:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 BF 07 01 DA 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C6 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DE 02 00 35 04 06 00 EC CE 8B 62 9C AD 77 4F E1 21 B4 8E B7 B7 [08:05:25]CheckFolder [08:05:25]dirname=/storage/ofd_packets [08:05:25]CheckFolder done [08:05:25]ProducePacketName [08:05:25]name=ofd_packets/00188089 [08:05:25]NVStorageSaveData ofd_packets/00188089 [08:05:25]File name is /storage/ofd_packets/00188089 [08:05:25]Write 301 bytes [08:05:25]NVStorageSaveData done [08:05:25]OFDSenderStorePacket done [08:05:25]KKMCreateOFDPacket done [08:05:25]NVStorageSaveData kkm_last_timestamp [08:05:25]File name is /storage/kkm_last_timestamp [08:05:25]Write 4 bytes [08:05:25]NVStorageSaveData done [08:05:25]ExternCall_PrintAddStr [08:05:25]wPrintStart [08:05:25]Write to MH i2c: 01 00 00 39 27 60 [08:05:25]Write i2c OK [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: 01 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: 01 07 00 [08:05:25]MH_I2C_Read... [08:05:25]Read from MH i2c: 01 07 00 39 27 00 00 00 00 00 FF 0F 75 [08:05:25]RasterBufferAndPrint [08:05:25]line Счет N : (1)210141 [08:05:25]line ИНН: 02508201610067 [08:05:25]line Контрольно-Кассовый Чек [08:05:25]line ПРОДАЖА [08:05:25]line ТРК (МРК, ГНК) : 42 [08:05:25]line Товар: 2710124130 [08:05:25]line Аи-92-К-3 [08:05:25]line 11.960 * 66.90 [08:05:25]line = 800.12 [08:05:25]line НДС 12% НСП 1% [08:05:25]line > о реализуемом товаре [08:05:25]line ОКРУГЛЕНИЕ: -0.12 [08:05:25]line ИТОГО: 800.00 [08:05:25]line Внесено: 800.00 [08:05:25]line СДАЧА: 0.00 [08:05:25]line НСП 1% : 7.08 [08:05:25]line НДС 12% : 84.97 [08:05:25]line Наличными: 800.00 [08:05:25]line Безнал.: 0.00 [08:05:25]line Место: АЗС № 86 "Партнер Нефть" [08:05:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:05:25]line СНО: Общий режим [08:05:25]line Чек 118 22.10.2024 08:05 [08:05:25]line Смена: 461 ФФД: 1.0 [08:05:25]line ЗНМ: 0300000155 [08:05:25]line РНМ: 0000000000100030 [08:05:25]line Версия ККМ: 001 [08:05:25]line ФМ: 0000000000965340 [08:05:25]line ФД: 188089 [08:05:25]line ФПД: 260371845913773 [08:05:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080526&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188089&fm=260371845913773&tin=02508201610067®Number=0000000000100030&sum=80000 [08:05:25]written 0, free lines is 4095 [08:05:25]OFD Sender: Processing packet 188089 [packets to send 1062, broken 1061] [08:05:25]ProducePacketName [08:05:25]name=ofd_packets/00188089 [08:05:25]OFD Sender: To server: pG, [08:05:25]CommunicateWithHost lk.salyk.kg:30040 [08:05:25]ConnectInit lk.salyk.kg [08:05:26]Write to MH i2c: 01 00 00 64 27 8B [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 07 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: 01 07 00 64 27 00 00 00 00 00 50 0C EE [08:05:26]RasterBufferAndPrint [08:05:26]line [08:05:26]line [08:05:26]line [08:05:26]line [08:05:26]line [08:05:26]written 0, free lines is 3155 [08:05:26]MH_Cut [08:05:26]Write to MH i2c: D1 01 00 6B 27 01 64 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: D1 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: D1 01 00 [08:05:26]MH_I2C_Read... [08:05:26]Read from MH i2c: D1 01 00 6B 27 00 63 [08:05:26]Write to MH i2c: 01 00 00 6C 27 93 [08:05:26]Write i2c OK [08:05:26]MH_I2C_Read... [08:05:26]Connected sock=10 [08:05:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 BF 07 01 DA 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 00 00 00 F4 03 04 00 C6 5C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DE 02 00 35 04 06 00 EC CE 8B 62 9C AD 77 4F E1 21 B4 8E B7 B7 [08:05:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 74 47 00 FD C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DE 02 00 F4 03 04 00 B4 06 17 67 B6 04 01 00 00 EF 24 2B DF 67 09 87 7A [08:05:26]CommunicateWithHost err = 0 [08:05:26]CheckOFDResponse [08:05:26]1017 (14) - 77093643461234 [08:05:26]1041 (16) - 0000000000965340 [08:05:26]1040 (4) - 188089 [08:05:26]1012 (4) - 22.10.2024 01:58 [08:05:26]1206 (1) - 0 [08:05:26]OFD Sender: Remove packet 188089 [08:05:26]ProducePacketName [08:05:26]name=ofd_packets/00188089 [08:05:26]NVStorageDeleteData [08:05:27]OFD Sender: No OFD packet to send [08:05:27]*** Cut start [08:05:27]*** Partial cut [08:05:27]*** CUTSNS_PIN = 1 [08:05:27]*** CUTSNS_PIN = 0 [08:05:27]*** Brake cut motor [08:05:28]Read from MH i2c: 01 [08:05:28]MH_I2C_Read... [08:05:28]*** Stop cut motor [08:05:28]*** Cut end [08:05:28]Read from MH i2c: 01 07 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: 01 07 00 6C 27 00 00 00 00 00 FF 0F A8 [08:05:28]process_action close_receipt done [08:05:28]requested_data is exist [08:05:28]produce_requested_data [08:05:28]requested_item fm.sn is exist - process it [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 11 00 00 [08:05:28]Write to MH i2c: E2 08 00 6D 27 80 11 00 00 00 00 00 00 0E [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 17 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 17 00 6D 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [08:05:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:05:28]wFMCommunicate OK [08:05:28]requested_item fd.num is exist - process it [08:05:28]SAM_PROTO_GetFieldsCounters [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 13 00 00 [08:05:28]Write to MH i2c: E2 08 00 6E 27 80 13 00 00 00 00 00 00 11 [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 62 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 62 00 6E 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DE 02 00 0E 04 04 00 CD 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 E1 [08:05:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DE 02 00 0E 04 04 00 CD 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 [08:05:28]wFMCommunicate OK [08:05:28]SAM_PROTO_GetFieldsCounters done [08:05:28]requested_item shift.num is exist - process it [08:05:28]requested_item shift.opened is exist - process it [08:05:28]req_shift_opened [08:05:28]FM_GetShiftState [08:05:28]SAM_PROTO_GetShiftState [08:05:28]wFMCommunicate request_size=4 [08:05:28]MH_SAM_APDU [08:05:28]CAPDU: 80 13 01 00 [08:05:28]Write to MH i2c: E2 08 00 6F 27 80 13 01 00 00 00 00 00 13 [08:05:28]Write i2c OK [08:05:28]MH_I2C_Read... [08:05:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:05:28]Read from MH i2c: E2 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 0E 00 [08:05:28]MH_I2C_Read... [08:05:28]Read from MH i2c: E2 0E 00 6F 27 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 08 [08:05:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:05:28]wFMCommunicate OK [08:05:28]SAM_PROTO_GetShiftState done [08:05:28]FM_GetShiftState done [08:05:28]req_shift_opened done [08:05:28]requested_item shift.open_date is exist - process it [08:05:28]req_shift_open_date [08:05:28]req_shift_open_date done [08:05:28]produce_requested_data done [08:05:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188089,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:05:28]process_action_free close_receipt [08:05:28]json_value_free [08:05:28]json_value_free done [08:05:28]process_json_proto returns [08:05:28]Send response to host [08:05:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188089,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:05:28]free response buf [08:05:28]execute_script done [08:05:28]execute_script returns [08:05:28]free content buf [08:05:28]Sock 9.Close socket [08:05:28]Sock 9.Thread stoped [08:05:32]OFD Sender: No OFD packet to send [08:05:37]OFD Sender: No OFD packet to send [08:05:42]OFD Sender: No OFD packet to send [08:05:47]OFD Sender: No OFD packet to send [08:05:52]OFD Sender: No OFD packet to send [08:05:57]OFD Sender: No OFD packet to send [08:06:02]OFD Sender: No OFD packet to send [08:06:07]OFD Sender: No OFD packet to send [08:06:12]OFD Sender: No OFD packet to send [08:06:17]OFD Sender: No OFD packet to send [08:06:22]OFD Sender: No OFD packet to send [08:06:27]OFD Sender: No OFD packet to send [08:06:32]OFD Sender: No OFD packet to send [08:06:37]OFD Sender: No OFD packet to send [08:06:42]OFD Sender: No OFD packet to send [08:06:47]OFD Sender: No OFD packet to send [08:06:52]OFD Sender: No OFD packet to send [08:06:57]OFD Sender: No OFD packet to send [08:07:02]OFD Sender: No OFD packet to send [08:07:07]OFD Sender: No OFD packet to send [08:07:07]accept exits with 8 [08:07:07]New connection [08:07:07]New thread 3067198820 created [08:07:07]Thread 3067055460 joined [08:07:07]Waiting for new connection... [08:07:07] Sock 8.Parse request [08:07:07]Sock 8.Check first char [08:07:07]Sock 8.First char is OK [08:07:07]request: POST /json_proto HTTP/1.0 [08:07:07]Method: POST [08:07:07]URL: /json_proto [08:07:07]Method is POST - this is cgi request [08:07:07]url: /json_proto [08:07:07]query_string will be loaded in cgi processing [08:07:07]execute_cgi json_proto POST (null) [08:07:07]execute_cgi path=json_proto method=POST [08:07:07]POST find Content-Length [08:07:07]Host: 172.17.42.131:8080 [08:07:07]Content-Length: 677 [08:07:07]Content-Type: application/json [08:07:07] [08:07:07]POST finish read [08:07:07]Found Content-Length = 677 [08:07:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:07]execute_script... [08:07: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)210142", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.720, "sum" : 650.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 650.00, "total" : 650.00, "payments": [ { "type": 0, "sum" : 650.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:07]POST & json_proto [08:07:07]process_json_proto [08:07:07]json parsed OK: [08:07:07]protocol is kg_v1.0 [08:07:07]action value=close_receipt [08:07:07]process_action close_receipt [08:07:07]cmd_close_receipt [08:07:07]MH_GetDate [08:07:07]Write to MH i2c: F0 00 00 70 27 86 [08:07:07]Write i2c OK [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: F0 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: F0 09 00 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: F0 09 00 70 27 00 2E 5D 17 67 A0 18 CA 66 80 [08:07:07]GetLastDocTimeStamp 1729584326 [08:07:07]current date 1729584430 [08:07:07]FM_GetShiftState [08:07:07]SAM_PROTO_GetShiftState [08:07:07]wFMCommunicate request_size=4 [08:07:07]MH_SAM_APDU [08:07:07]CAPDU: 80 13 01 00 [08:07:07]Write to MH i2c: E2 08 00 71 27 80 13 01 00 00 00 00 00 15 [08:07:07]Write i2c OK [08:07:07]MH_I2C_Read... [08:07:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:07]Read from MH i2c: E2 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 0E 00 [08:07:07]MH_I2C_Read... [08:07:07]Read from MH i2c: E2 0E 00 71 27 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0A [08:07:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:07:07]wFMCommunicate OK [08:07:07]SAM_PROTO_GetShiftState done [08:07:07]FM_GetShiftState done [08:07:07]opened in 1729556094 [08:07:07]opened+sec_in_day 1729642494 [08:07:07]quantity*price = 65026 [08:07:07]sum+1 = 65028 [08:07:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 119 22.10.2024 08:07 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188090 ФПД: 162733426767565 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188090&fm=162733426767565&tin=02508201610067®Number=0000000000100030&sum=65000 [08:07:08]StoreToDocumentArchive [08:07:08]shift 461 fd 188090 [08:07:08]save to /storage/0461/doc_00188090 [08:07:08]save last doc name /storage/0461/doc_00188090 to /storage/kkm_last_doc_name [08:07:08]save OK [08:07:08]Clear old archive folders... [08:07:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:07:08]tlvbuf is 01B99610 [08:07:08]SAM_PROTO_ClearQueue [08:07:08]wFMCommunicate request_size=4 [08:07:08]MH_SAM_APDU [08:07:08]CAPDU: 80 09 00 00 [08:07:08]Write to MH i2c: E2 08 00 7E 27 80 09 00 00 00 00 00 00 17 [08:07:08]Write i2c OK [08:07:08]MH_I2C_Read... [08:07:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:08]Read from MH i2c: E2 [08:07:08]MH_I2C_Read... [08:07:08]Read from MH i2c: E2 03 00 [08:07:08]MH_I2C_Read... [08:07:08]Read from MH i2c: E2 03 00 7E 27 00 90 00 19 [08:07:08]RAPDU: 90 00 [08:07:08]wFMCommunicate OK [08:07:08]SAM_PROTO_ClearQueue done [08:07:08]KKMCreateOFDPacket [08:07:08]OFDProtocolAddRootSTLVToBuf [08:07:08]FM_MakeSignedData [08:07:08]FM_MakeSignedData [08:07:08]SAM_PROTO_SignData [08:07:08]wFMCommunicate request_size=4 [08:07:08]MH_SAM_APDU [08:07:08]CAPDU: 80 0D 01 02 [08:07:08]Write to MH i2c: E2 08 00 7F 27 80 0D 01 02 00 00 00 00 1F [08:07:08]Write i2c OK [08:07:08]MH_I2C_Read... [08:07:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:08]Read from MH i2c: E2 [08:07:08]MH_I2C_Read... [08:07:08]Read from MH i2c: E2 03 00 [08:07:08]MH_I2C_Read... [08:07:08]Read from MH i2c: E2 03 00 7F 27 00 90 00 1A [08:07:08]RAPDU: 90 00 [08:07:08]wFMCommunicate OK [08:07:08]wFMCommunicate request_size=255 [08:07:08]MH_SAM_APDU [08:07: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 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2E 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DE 02 00 35 04 06 00 94 [08:07:08]Write to MH i2c: E2 02 01 80 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2E 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DE 02 00 35 04 06 00 94 00 00 01 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 03 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 03 00 80 27 00 90 00 1B [08:07:09]RAPDU: 90 00 [08:07:09]wFMCommunicate OK [08:07:09]wFMCommunicate request_size=10 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 0D 02 02 05 01 54 18 76 CD [08:07:09]Write to MH i2c: E2 0D 00 81 27 80 0D 02 02 05 00 01 54 18 76 CD 00 00 DC [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 03 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 03 00 81 27 00 90 00 1C [08:07:09]RAPDU: 90 00 [08:07:09]wFMCommunicate OK [08:07:09]wFMCommunicate request_size=4 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 0D 03 02 [08:07:09]Write to MH i2c: E2 08 00 82 27 80 0D 03 02 00 00 00 00 24 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 0B 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 0B 00 82 27 00 2D 17 7A 7C 16 4A E5 8D 90 00 31 [08:07:09]RAPDU: 2D 17 7A 7C 16 4A E5 8D 90 00 [08:07:09]wFMCommunicate OK [08:07:09]SAM_PROTO_SignData done [08:07:09]FM_MakeSignedData done [08:07:09]CreateOFDProtocolMessage [08:07:09]wFMCommunicate request_size=4 [08:07:09]MH_SAM_APDU [08:07:09]CAPDU: 80 11 00 00 [08:07:09]Write to MH i2c: E2 08 00 83 27 80 11 00 00 00 00 00 00 24 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:09]Read from MH i2c: E2 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 17 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: E2 17 00 83 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [08:07:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:07:09]wFMCommunicate OK [08:07:09]CreateOFDProtocolMessage done [08:07:09]OFDSenderStorePacket 188090 [08:07:09]StoreOFDPacket docnum=188090 [08:07:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 C7 07 01 DD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2E 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DE 02 00 35 04 06 00 94 01 54 18 76 CD 2D 17 7A 7C 16 4A E5 8D [08:07:09]CheckFolder [08:07:09]dirname=/storage/ofd_packets [08:07:09]CheckFolder done [08:07:09]ProducePacketName [08:07:09]name=ofd_packets/00188090 [08:07:09]NVStorageSaveData ofd_packets/00188090 [08:07:09]File name is /storage/ofd_packets/00188090 [08:07:09]Write 301 bytes [08:07:09]NVStorageSaveData done [08:07:09]OFDSenderStorePacket done [08:07:09]KKMCreateOFDPacket done [08:07:09]NVStorageSaveData kkm_last_timestamp [08:07:09]File name is /storage/kkm_last_timestamp [08:07:09]Write 4 bytes [08:07:09]NVStorageSaveData done [08:07:09]ExternCall_PrintAddStr [08:07:09]wPrintStart [08:07:09]Write to MH i2c: 01 00 00 84 27 AB [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 07 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 07 00 84 27 00 00 00 00 00 FF 0F C0 [08:07:09]RasterBufferAndPrint [08:07:09]line Счет N : (1)210142 [08:07:09]line ИНН: 02508201610067 [08:07:09]line Контрольно-Кассовый Чек [08:07:09]line ПРОДАЖА [08:07:09]line ТРК (МРК, ГНК) : 22 [08:07:09]line Товар: 2710124130 [08:07:09]line Аи-92-К-3 [08:07:09]line 9.720 * 66.90 [08:07:09]line = 650.27 [08:07:09]line НДС 12% НСП 1% [08:07:09]line > о реализуемом товаре [08:07:09]line ОКРУГЛЕНИЕ: -0.27 [08:07:09]line ИТОГО: 650.00 [08:07:09]line Внесено: 650.00 [08:07:09]line СДАЧА: 0.00 [08:07:09]line НСП 1% : 5.75 [08:07:09]line НДС 12% : 69.05 [08:07:09]line Наличными: 650.00 [08:07:09]line Безнал.: 0.00 [08:07:09]line Место: АЗС № 86 "Партнер Нефть" [08:07:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:07:09]line СНО: Общий режим [08:07:09]line Чек 119 22.10.2024 08:07 [08:07:09]line Смена: 461 ФФД: 1.0 [08:07:09]line ЗНМ: 0300000155 [08:07:09]line РНМ: 0000000000100030 [08:07:09]line Версия ККМ: 001 [08:07:09]line ФМ: 0000000000965340 [08:07:09]line ФД: 188090 [08:07:09]line ФПД: 162733426767565 [08:07:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188090&fm=162733426767565&tin=02508201610067®Number=0000000000100030&sum=65000 [08:07:09]written 0, free lines is 4095 [08:07:09]OFD Sender: Processing packet 188090 [packets to send 1062, broken 1061] [08:07:09]ProducePacketName [08:07:09]name=ofd_packets/00188090 [08:07:09]OFD Sender: To server: pG, [08:07:09]CommunicateWithHost lk.salyk.kg:30040 [08:07:09]ConnectInit lk.salyk.kg [08:07:09]Connected sock=10 [08:07:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 C7 07 01 DD ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F8 25 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 03 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 3F 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 1A 00 00 00 00 07 04 06 00 E8 FD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 00 00 00 F4 03 04 00 2E 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DE 02 00 35 04 06 00 94 01 54 18 76 CD 2D 17 7A 7C 16 4A E5 8D [08:07:09]Write to MH i2c: 01 00 00 AF 27 D6 [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 07 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: 01 07 00 AF 27 00 00 00 00 00 54 0C 3D [08:07:09]RasterBufferAndPrint [08:07:09]line [08:07:09]line [08:07:09]line [08:07:09]line [08:07:09]line [08:07:09]written 0, free lines is 3160 [08:07:09]MH_Cut [08:07:09]Write to MH i2c: D1 01 00 B6 27 01 AF [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: D1 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: D1 01 00 [08:07:09]MH_I2C_Read... [08:07:09]Read from MH i2c: D1 01 00 B6 27 00 AE [08:07:09]Write to MH i2c: 01 00 00 B7 27 DE [08:07:09]Write i2c OK [08:07:09]MH_I2C_Read... [08:07:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 A7 47 00 72 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DE 02 00 F4 03 04 00 1B 07 17 67 B6 04 01 00 00 32 3F 27 F3 93 0B AB EE [08:07:10]CommunicateWithHost err = 0 [08:07:10]CheckOFDResponse [08:07:10]1017 (14) - 77093643461234 [08:07:10]1041 (16) - 0000000000965340 [08:07:10]1040 (4) - 188090 [08:07:10]1012 (4) - 22.10.2024 01:59 [08:07:10]1206 (1) - 0 [08:07:10]OFD Sender: Remove packet 188090 [08:07:10]ProducePacketName [08:07:10]name=ofd_packets/00188090 [08:07:10]NVStorageDeleteData [08:07:10]OFD Sender: No OFD packet to send [08:07:11]*** Cut start [08:07:11]*** Partial cut [08:07:11]*** CUTSNS_PIN = 1 [08:07:11]*** CUTSNS_PIN = 0 [08:07:11]*** Brake cut motor [08:07:11]Read from MH i2c: 01 [08:07:11]MH_I2C_Read... [08:07:11]*** Stop cut motor [08:07:11]*** Cut end [08:07:11]Read from MH i2c: 01 07 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: 01 07 00 B7 27 00 00 00 00 00 FF 0F F3 [08:07:11]process_action close_receipt done [08:07:11]requested_data is exist [08:07:11]produce_requested_data [08:07:11]requested_item fm.sn is exist - process it [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 11 00 00 [08:07:11]Write to MH i2c: E2 08 00 B8 27 80 11 00 00 00 00 00 00 59 [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:11]Read from MH i2c: E2 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 17 00 [08:07:11]MH_I2C_Read... [08:07:11]Read from MH i2c: E2 17 00 B8 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [08:07:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:07:11]wFMCommunicate OK [08:07:11]requested_item fd.num is exist - process it [08:07:11]SAM_PROTO_GetFieldsCounters [08:07:11]wFMCommunicate request_size=4 [08:07:11]MH_SAM_APDU [08:07:11]CAPDU: 80 13 00 00 [08:07:11]Write to MH i2c: E2 08 00 B9 27 80 13 00 00 00 00 00 00 5C [08:07:11]Write i2c OK [08:07:11]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 62 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 62 00 B9 27 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DE 02 00 0E 04 04 00 CD 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 30 [08:07:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DE 02 00 0E 04 04 00 CD 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 [08:07:12]wFMCommunicate OK [08:07:12]SAM_PROTO_GetFieldsCounters done [08:07:12]requested_item shift.num is exist - process it [08:07:12]requested_item shift.opened is exist - process it [08:07:12]req_shift_opened [08:07:12]FM_GetShiftState [08:07:12]SAM_PROTO_GetShiftState [08:07:12]wFMCommunicate request_size=4 [08:07:12]MH_SAM_APDU [08:07:12]CAPDU: 80 13 01 00 [08:07:12]Write to MH i2c: E2 08 00 BA 27 80 13 01 00 00 00 00 00 5E [08:07:12]Write i2c OK [08:07:12]MH_I2C_Read... [08:07:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:12]Read from MH i2c: E2 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 0E 00 [08:07:12]MH_I2C_Read... [08:07:12]Read from MH i2c: E2 0E 00 BA 27 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 53 [08:07:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:07:12]wFMCommunicate OK [08:07:12]SAM_PROTO_GetShiftState done [08:07:12]FM_GetShiftState done [08:07:12]req_shift_opened done [08:07:12]requested_item shift.open_date is exist - process it [08:07:12]req_shift_open_date [08:07:12]req_shift_open_date done [08:07:12]produce_requested_data done [08:07:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188090,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:07:12]process_action_free close_receipt [08:07:12]json_value_free [08:07:12]json_value_free done [08:07:12]process_json_proto returns [08:07:12]Send response to host [08:07:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188090,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:07:12]free response buf [08:07:12]execute_script done [08:07:12]execute_script returns [08:07:12]free content buf [08:07:12]Sock 8.Close socket [08:07:12]Sock 8.Thread stoped [08:07:15]OFD Sender: No OFD packet to send [08:07:20]OFD Sender: No OFD packet to send [08:07:25]OFD Sender: No OFD packet to send [08:07:30]OFD Sender: No OFD packet to send [08:07:35]OFD Sender: No OFD packet to send [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08: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:21]OFD Sender: No OFD packet to send [08:09:26]OFD Sender: No OFD packet to send [08:09:31]OFD Sender: No OFD packet to send [08:09:36]OFD Sender: No OFD packet to send [08:09:38]accept exits with 9 [08:09:38]New connection [08:09:38]New thread 3067055460 created [08:09:38]Thread 3067198820 joined [08:09:38]Waiting for new connection... [08:09:38] Sock 9.Parse request [08:09:38]Sock 9.Check first char [08:09:38]Sock 9.First char is OK [08:09:38]request: POST /json_proto HTTP/1.0 [08:09:38]Method: POST [08:09:38]URL: /json_proto [08:09:38]Method is POST - this is cgi request [08:09:38]url: /json_proto [08:09:38]query_string will be loaded in cgi processing [08:09:38]execute_cgi json_proto POST (null) [08:09:38]execute_cgi path=json_proto method=POST [08:09:38]POST find Content-Length [08:09:38]Host: 172.17.42.131:8080 [08:09:38]Content-Length: 769 [08:09:38]Content-Type: application/json [08:09:38] [08:09:38]POST finish read [08:09:38]Found Content-Length = 769 [08:09:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210143", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:38]execute_script... [08:09: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)210143", "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 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:09:38]POST & json_proto [08:09:38]process_json_proto [08:09:38]json parsed OK: [08:09:38]protocol is kg_v1.0 [08:09:38]action value=close_receipt [08:09:38]process_action close_receipt [08:09:38]cmd_close_receipt [08:09:38]MH_GetDate [08:09:38]Write to MH i2c: F0 00 00 BB 27 D1 [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: F0 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: F0 09 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: F0 09 00 BB 27 00 C5 5D 17 67 A0 18 CA 66 62 [08:09:38]GetLastDocTimeStamp 1729584430 [08:09:38]current date 1729584581 [08:09:38]FM_GetShiftState [08:09:38]SAM_PROTO_GetShiftState [08:09:38]wFMCommunicate request_size=4 [08:09:38]MH_SAM_APDU [08:09:38]CAPDU: 80 13 01 00 [08:09:38]Write to MH i2c: E2 08 00 BC 27 80 13 01 00 00 00 00 00 60 [08:09:38]Write i2c OK [08:09:38]MH_I2C_Read... [08:09:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:38]Read from MH i2c: E2 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: E2 0E 00 [08:09:38]MH_I2C_Read... [08:09:38]Read from MH i2c: E2 0E 00 BC 27 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 55 [08:09:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:09:38]wFMCommunicate OK [08:09:38]SAM_PROTO_GetShiftState done [08:09:38]FM_GetShiftState done [08:09:38]opened in 1729556094 [08:09:38]opened+sec_in_day 1729642494 [08:09:38]quantity*price = 100021 [08:09:38]sum+1 = 100023 [08:09:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 120 22.10.2024 08:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188091 ФПД: 124366101965141 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188091&fm=124366101965141&tin=02508201610067®Number=0000000000100030&sum=100022 [08:09:40]StoreToDocumentArchive [08:09:40]shift 461 fd 188091 [08:09:40]save to /storage/0461/doc_00188091 [08:09:40]save last doc name /storage/0461/doc_00188091 to /storage/kkm_last_doc_name [08:09:40]save OK [08:09:40]Clear old archive folders... [08:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:09:40]tlvbuf is 01C454C0 [08:09:40]SAM_PROTO_ClearQueue [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 09 00 00 [08:09:40]Write to MH i2c: E2 08 00 C9 27 80 09 00 00 00 00 00 00 62 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 C9 27 00 90 00 64 [08:09:40]RAPDU: 90 00 [08:09:40]wFMCommunicate OK [08:09:40]SAM_PROTO_ClearQueue done [08:09:40]KKMCreateOFDPacket [08:09:40]OFDProtocolAddRootSTLVToBuf [08:09:40]FM_MakeSignedData [08:09:40]FM_MakeSignedData [08:09:40]SAM_PROTO_SignData [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 0D 01 02 [08:09:40]Write to MH i2c: E2 08 00 CA 27 80 0D 01 02 00 00 00 00 6A [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 CA 27 00 90 00 65 [08:09:40]RAPDU: 90 00 [08:09:40]wFMCommunicate OK [08:09:40]wFMCommunicate request_size=255 [08:09:40]MH_SAM_APDU [08:09: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C5 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DE 02 00 35 04 06 00 71 [08:09:40]Write to MH i2c: E2 02 01 CB 27 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C5 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DE 02 00 35 04 06 00 71 00 00 18 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 CB 27 00 90 00 66 [08:09:40]RAPDU: 90 00 [08:09:40]wFMCommunicate OK [08:09:40]wFMCommunicate request_size=10 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 0D 02 02 05 1C 3D 54 69 55 [08:09:40]Write to MH i2c: E2 0D 00 CC 27 80 0D 02 02 05 00 1C 3D 54 69 55 00 00 E2 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 03 00 CC 27 00 90 00 67 [08:09:40]RAPDU: 90 00 [08:09:40]wFMCommunicate OK [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 0D 03 02 [08:09:40]Write to MH i2c: E2 08 00 CD 27 80 0D 03 02 00 00 00 00 6F [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 0B 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 0B 00 CD 27 00 B2 85 F5 3D F0 9D AD 8C 90 00 9F [08:09:40]RAPDU: B2 85 F5 3D F0 9D AD 8C 90 00 [08:09:40]wFMCommunicate OK [08:09:40]SAM_PROTO_SignData done [08:09:40]FM_MakeSignedData done [08:09:40]CreateOFDProtocolMessage [08:09:40]wFMCommunicate request_size=4 [08:09:40]MH_SAM_APDU [08:09:40]CAPDU: 80 11 00 00 [08:09:40]Write to MH i2c: E2 08 00 CE 27 80 11 00 00 00 00 00 00 6F [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:40]Read from MH i2c: E2 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 17 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: E2 17 00 CE 27 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [08:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:09:40]wFMCommunicate OK [08:09:40]CreateOFDProtocolMessage done [08:09:40]OFDSenderStorePacket 188091 [08:09:40]StoreOFDPacket docnum=188091 [08:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 6F 07 01 F7 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C5 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DE 02 00 35 04 06 00 71 1C 3D 54 69 55 B2 85 F5 3D F0 9D AD 8C [08:09:40]CheckFolder [08:09:40]dirname=/storage/ofd_packets [08:09:40]CheckFolder done [08:09:40]ProducePacketName [08:09:40]name=ofd_packets/00188091 [08:09:40]NVStorageSaveData ofd_packets/00188091 [08:09:40]File name is /storage/ofd_packets/00188091 [08:09:40]Write 301 bytes [08:09:40]NVStorageSaveData done [08:09:40]OFDSenderStorePacket done [08:09:40]KKMCreateOFDPacket done [08:09:40]NVStorageSaveData kkm_last_timestamp [08:09:40]File name is /storage/kkm_last_timestamp [08:09:40]Write 4 bytes [08:09:40]NVStorageSaveData done [08:09:40]ExternCall_PrintAddStr [08:09:40]wPrintStart [08:09:40]Write to MH i2c: 01 00 00 CF 27 F6 [08:09:40]Write i2c OK [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 [08:09:40]MH_I2C_Read... [08:09:40]Read from MH i2c: 01 07 00 CF 27 00 00 00 00 00 FF 0F 0B [08:09:40]RasterBufferAndPrint [08:09:40]line Счет N : (1)210143 [08:09:40]line ИНН: 02508201610067 [08:09:40]line Контрольно-Кассовый Чек [08:09:40]line ПРОДАЖА [08:09:40]line ТРК (МРК, ГНК) : 33 [08:09:40]line Товар: 2710124500 [08:09:40]line Аи-95-К-3 [08:09:40]line 13.480 * 74.20 [08:09:40]line = 1000.22 [08:09:40]line НДС 12% НСП 1% [08:09:40]line > о реализуемом товаре [08:09:40]line ИТОГО: 1000.22 [08:09:40]line НСП 1% : 8.85 [08:09:40]line НДС 12% : 106.22 [08:09:40]line Наличными: 0.00 [08:09:40]line Безнал.: 1000.22 [08:09:40]line Место: АЗС № 86 "Партнер Нефть" [08:09:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:09:40]line СНО: Общий режим [08:09:40]line Чек 120 22.10.2024 08:09 [08:09:40]line Смена: 461 ФФД: 1.0 [08:09:40]line ЗНМ: 0300000155 [08:09:40]line РНМ: 0000000000100030 [08:09:40]line Версия ККМ: 001 [08:09:40]line Платежная система: Mbank [08:09:40]line ФМ: 0000000000965340 [08:09:40]line ФД: 188091 [08:09:40]line ФПД: 124366101965141 [08:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T080941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188091&fm=124366101965141&tin=02508201610067®Number=0000000000100030&sum=100022 [08:09:40]written 0, free lines is 4095 [08:09:40]OFD Sender: Processing packet 188091 [packets to send 1062, broken 1061] [08:09:40]ProducePacketName [08:09:40]name=ofd_packets/00188091 [08:09:40]OFD Sender: To server: pG, [08:09:40]CommunicateWithHost lk.salyk.kg:30040 [08:09:40]ConnectInit lk.salyk.kg [08:09:40]Connected sock=10 [08:09:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 6F 07 01 F7 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 C5 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DE 02 00 35 04 06 00 71 1C 3D 54 69 55 B2 85 F5 3D F0 9D AD 8C [08:09:41]Write to MH i2c: 01 00 00 F8 27 1F [08:09:41]Write i2c OK [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: 01 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: 01 07 00 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: 01 07 00 F8 27 00 00 00 00 00 82 0C B4 [08:09:41]RasterBufferAndPrint [08:09:41]line [08:09:41]line [08:09:41]line [08:09:41]line [08:09:41]line [08:09:41]written 0, free lines is 3205 [08:09:41]MH_Cut [08:09:41]Write to MH i2c: D1 01 00 FF 27 01 F8 [08:09:41]Write i2c OK [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: D1 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: D1 01 00 [08:09:41]MH_I2C_Read... [08:09:41]Read from MH i2c: D1 01 00 FF 27 00 F7 [08:09:41]Write to MH i2c: 01 00 00 00 28 28 [08:09:41]Write i2c OK [08:09:41]MH_I2C_Read... [08:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 68 E7 47 00 EE 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 39 36 35 33 34 30 10 04 04 00 BB DE 02 00 F4 03 04 00 B3 07 17 67 B6 04 01 00 00 F7 BE FE 0C C1 EB 06 95 [08:09:41]CommunicateWithHost err = 0 [08:09:41]CheckOFDResponse [08:09:41]1017 (14) - 77093643461234 [08:09:41]1041 (16) - 0000000000965340 [08:09:41]1040 (4) - 188091 [08:09:41]1012 (4) - 22.10.2024 02:02 [08:09:41]1206 (1) - 0 [08:09:41]OFD Sender: Remove packet 188091 [08:09:41]ProducePacketName [08:09:41]name=ofd_packets/00188091 [08:09:41]NVStorageDeleteData [08:09:41]OFD Sender: No OFD packet to send [08:09:42]*** Cut start [08:09:42]*** Partial cut [08:09:42]*** CUTSNS_PIN = 1 [08:09:42]*** CUTSNS_PIN = 0 [08:09:42]*** Brake cut motor [08:09:42]Read from MH i2c: 01 [08:09:42]MH_I2C_Read... [08:09:42]*** Stop cut motor [08:09:42]*** Cut end [08:09:42]Read from MH i2c: 01 07 00 [08:09:42]MH_I2C_Read... [08:09:42]Read from MH i2c: 01 07 00 00 28 00 00 00 00 00 FF 0F 3D [08:09:42]process_action close_receipt done [08:09:42]requested_data is exist [08:09:42]produce_requested_data [08:09:42]requested_item fm.sn is exist - process it [08:09:42]wFMCommunicate request_size=4 [08:09:42]MH_SAM_APDU [08:09:42]CAPDU: 80 11 00 00 [08:09:42]Write to MH i2c: E2 08 00 01 28 80 11 00 00 00 00 00 00 A3 [08:09:42]Write i2c OK [08:09:42]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:09:43]Read from MH i2c: E2 17 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 17 00 01 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [08:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:09:43]wFMCommunicate OK [08:09:43]requested_item fd.num is exist - process it [08:09:43]SAM_PROTO_GetFieldsCounters [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 13 00 00 [08:09:43]Write to MH i2c: E2 08 00 02 28 80 13 00 00 00 00 00 00 A6 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 62 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 62 00 02 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DE 02 00 0E 04 04 00 CD 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 7E [08:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DE 02 00 0E 04 04 00 CD 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 [08:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_GetFieldsCounters done [08:09:43]requested_item shift.num is exist - process it [08:09:43]requested_item shift.opened is exist - process it [08:09:43]req_shift_opened [08:09:43]FM_GetShiftState [08:09:43]SAM_PROTO_GetShiftState [08:09:43]wFMCommunicate request_size=4 [08:09:43]MH_SAM_APDU [08:09:43]CAPDU: 80 13 01 00 [08:09:43]Write to MH i2c: E2 08 00 03 28 80 13 01 00 00 00 00 00 A8 [08:09:43]Write i2c OK [08:09:43]MH_I2C_Read... [08:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:09:43]Read from MH i2c: E2 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 [08:09:43]MH_I2C_Read... [08:09:43]Read from MH i2c: E2 0E 00 03 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [08:09:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:09:43]wFMCommunicate OK [08:09:43]SAM_PROTO_GetShiftState done [08:09:43]FM_GetShiftState done [08:09:43]req_shift_opened done [08:09:43]requested_item shift.open_date is exist - process it [08:09:43]req_shift_open_date [08:09:43]req_shift_open_date done [08:09:43]produce_requested_data done [08:09:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188091,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:09:43]process_action_free close_receipt [08:09:43]json_value_free [08:09:43]json_value_free done [08:09:43]process_json_proto returns [08:09:43]Send response to host [08:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188091,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:09:43]free response buf [08:09:43]execute_script done [08:09:43]execute_script returns [08:09:43]free content buf [08:09:43]Sock 9.Close socket [08:09:43]Sock 9.Thread stoped [08:09:46]OFD Sender: No OFD packet to send [08:09:51]OFD Sender: No OFD packet to send [08:09:56]OFD Sender: No OFD packet to send [08:10:01]OFD Sender: No OFD packet to send [08:10:07]OFD Sender: No OFD packet to send [08:10:12]OFD Sender: No OFD packet to send [08:10:13]accept exits with 8 [08:10:13]New connection [08:10:13]New thread 3067198820 created [08:10:13]Thread 3067055460 joined [08:10:13]Waiting for new connection... [08:10:13] Sock 8.Parse request [08:10:13]Sock 8.Check first char [08:10:13]Sock 8.First char is OK [08:10:13]request: POST /json_proto HTTP/1.0 [08:10:13]Method: POST [08:10:13]URL: /json_proto [08:10:13]Method is POST - this is cgi request [08:10:13]url: /json_proto [08:10:13]query_string will be loaded in cgi processing [08:10:13]execute_cgi json_proto POST (null) [08:10:13]execute_cgi path=json_proto method=POST [08:10:13]POST find Content-Length [08:10:13]Host: 172.17.42.131:8080 [08:10:13]Content-Length: 682 [08:10:13]Content-Type: application/json [08:10:13] [08:10:13]POST finish read [08:10:13]Found Content-Length = 682 [08:10:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:13]execute_script... [08:10: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)210144", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1200.00, "total" : 1200.00, "payments": [ { "type": 0, "sum" : 1200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:13]POST & json_proto [08:10:13]process_json_proto [08:10:13]json parsed OK: [08:10:13]protocol is kg_v1.0 [08:10:13]action value=close_receipt [08:10:13]process_action close_receipt [08:10:13]cmd_close_receipt [08:10:13]MH_GetDate [08:10:13]Write to MH i2c: F0 00 00 04 28 1B [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: F0 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: F0 09 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: F0 09 00 04 28 00 E7 5D 17 67 A0 18 CA 66 CE [08:10:13]GetLastDocTimeStamp 1729584581 [08:10:13]current date 1729584615 [08:10:13]FM_GetShiftState [08:10:13]SAM_PROTO_GetShiftState [08:10:13]wFMCommunicate request_size=4 [08:10:13]MH_SAM_APDU [08:10:13]CAPDU: 80 13 01 00 [08:10:13]Write to MH i2c: E2 08 00 05 28 80 13 01 00 00 00 00 00 AA [08:10:13]Write i2c OK [08:10:13]MH_I2C_Read... [08:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:13]Read from MH i2c: E2 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: E2 0E 00 [08:10:13]MH_I2C_Read... [08:10:13]Read from MH i2c: E2 0E 00 05 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9F [08:10:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:10:13]wFMCommunicate OK [08:10:13]SAM_PROTO_GetShiftState done [08:10:13]FM_GetShiftState done [08:10:13]opened in 1729556094 [08:10:13]opened+sec_in_day 1729642494 [08:10:13]quantity*price = 120018 [08:10:13]sum+1 = 120020 [08:10:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.19 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 121 22.10.2024 08:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188092 ФПД: 184610292246662 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188092&fm=184610292246662&tin=02508201610067®Number=0000000000100030&sum=120000 [08:10:14]StoreToDocumentArchive [08:10:14]shift 461 fd 188092 [08:10:14]save to /storage/0461/doc_00188092 [08:10:14]save last doc name /storage/0461/doc_00188092 to /storage/kkm_last_doc_name [08:10:14]save OK [08:10:14]Clear old archive folders... [08:10:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:14]tlvbuf is 01BB40E0 [08:10:14]SAM_PROTO_ClearQueue [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 09 00 00 [08:10:14]Write to MH i2c: E2 08 00 12 28 80 09 00 00 00 00 00 00 AC [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 12 28 00 90 00 AE [08:10:14]RAPDU: 90 00 [08:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_ClearQueue done [08:10:14]KKMCreateOFDPacket [08:10:14]OFDProtocolAddRootSTLVToBuf [08:10:14]FM_MakeSignedData [08:10:14]FM_MakeSignedData [08:10:14]SAM_PROTO_SignData [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 0D 01 02 [08:10:14]Write to MH i2c: E2 08 00 13 28 80 0D 01 02 00 00 00 00 B4 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 13 28 00 90 00 AF [08:10:14]RAPDU: 90 00 [08:10:14]wFMCommunicate OK [08:10:14]wFMCommunicate request_size=255 [08:10:14]MH_SAM_APDU [08:10: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 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E7 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DE 02 00 35 04 06 00 A7 [08:10:14]Write to MH i2c: E2 02 01 14 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E7 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DE 02 00 35 04 06 00 A7 00 00 7A [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 14 28 00 90 00 B0 [08:10:14]RAPDU: 90 00 [08:10:14]wFMCommunicate OK [08:10:14]wFMCommunicate request_size=10 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 0D 02 02 05 E6 EE E4 28 86 [08:10:14]Write to MH i2c: E2 0D 00 15 28 80 0D 02 02 05 00 E6 EE E4 28 86 00 00 27 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 03 00 15 28 00 90 00 B1 [08:10:14]RAPDU: 90 00 [08:10:14]wFMCommunicate OK [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 0D 03 02 [08:10:14]Write to MH i2c: E2 08 00 16 28 80 0D 03 02 00 00 00 00 B9 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0B 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 0B 00 16 28 00 BB AD E3 BA 48 E9 3A 28 90 00 52 [08:10:14]RAPDU: BB AD E3 BA 48 E9 3A 28 90 00 [08:10:14]wFMCommunicate OK [08:10:14]SAM_PROTO_SignData done [08:10:14]FM_MakeSignedData done [08:10:14]CreateOFDProtocolMessage [08:10:14]wFMCommunicate request_size=4 [08:10:14]MH_SAM_APDU [08:10:14]CAPDU: 80 11 00 00 [08:10:14]Write to MH i2c: E2 08 00 17 28 80 11 00 00 00 00 00 00 B9 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:14]Read from MH i2c: E2 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 17 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: E2 17 00 17 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [08:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:10:14]wFMCommunicate OK [08:10:14]CreateOFDProtocolMessage done [08:10:14]OFDSenderStorePacket 188092 [08:10:14]StoreOFDPacket docnum=188092 [08:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 68 C9 07 01 F2 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E7 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DE 02 00 35 04 06 00 A7 E6 EE E4 28 86 BB AD E3 BA 48 E9 3A 28 [08:10:14]CheckFolder [08:10:14]dirname=/storage/ofd_packets [08:10:14]CheckFolder done [08:10:14]ProducePacketName [08:10:14]name=ofd_packets/00188092 [08:10:14]NVStorageSaveData ofd_packets/00188092 [08:10:14]File name is /storage/ofd_packets/00188092 [08:10:14]Write 301 bytes [08:10:14]NVStorageSaveData done [08:10:14]OFDSenderStorePacket done [08:10:14]KKMCreateOFDPacket done [08:10:14]NVStorageSaveData kkm_last_timestamp [08:10:14]File name is /storage/kkm_last_timestamp [08:10:14]Write 4 bytes [08:10:14]NVStorageSaveData done [08:10:14]ExternCall_PrintAddStr [08:10:14]wPrintStart [08:10:14]Write to MH i2c: 01 00 00 18 28 40 [08:10:14]Write i2c OK [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: 01 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: 01 07 00 [08:10:14]MH_I2C_Read... [08:10:14]Read from MH i2c: 01 07 00 18 28 00 00 00 00 00 FF 0F 55 [08:10:14]RasterBufferAndPrint [08:10:14]line Счет N : (1)210144 [08:10:14]line ИНН: 02508201610067 [08:10:14]line Контрольно-Кассовый Чек [08:10:14]line ПРОДАЖА [08:10:14]line ТРК (МРК, ГНК) : 12 [08:10:14]line Товар: 2710124130 [08:10:14]line Аи-92-К-3 [08:10:14]line 17.940 * 66.90 [08:10:14]line = 1200.19 [08:10:14]line НДС 12% НСП 1% [08:10:14]line > о реализуемом товаре [08:10:14]line ОКРУГЛЕНИЕ: -0.19 [08:10:14]line ИТОГО: 1200.00 [08:10:14]line Внесено: 1200.00 [08:10:14]line СДАЧА: 0.00 [08:10:14]line НСП 1% : 10.62 [08:10:14]line НДС 12% : 127.45 [08:10:14]line Наличными: 1200.00 [08:10:14]line Безнал.: 0.00 [08:10:14]line Место: АЗС № 86 "Партнер Нефть" [08:10:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:10:14]line СНО: Общий режим [08:10:14]line Чек 121 22.10.2024 08:10 [08:10:14]line Смена: 461 ФФД: 1.0 [08:10:14]line ЗНМ: 0300000155 [08:10:14]line РНМ: 0000000000100030 [08:10:14]line Версия ККМ: 001 [08:10:14]line ФМ: 0000000000965340 [08:10:14]line ФД: 188092 [08:10:14]line ФПД: 184610292246662 [08:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188092&fm=184610292246662&tin=02508201610067®Number=0000000000100030&sum=120000 [08:10:14]written 0, free lines is 4095 [08:10:14]OFD Sender: Processing packet 188092 [packets to send 1062, broken 1061] [08:10:14]ProducePacketName [08:10:14]name=ofd_packets/00188092 [08:10:14]OFD Sender: To server: pG, [08:10:14]CommunicateWithHost lk.salyk.kg:30040 [08:10:14]ConnectInit lk.salyk.kg [08:10:15]Connected sock=10 [08:10:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 68 C9 07 01 F2 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 14 46 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 D3 D4 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 D4 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 26 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 31 00 00 00 00 07 04 06 00 C0 D4 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 79 00 00 00 F4 03 04 00 E7 5D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DE 02 00 35 04 06 00 A7 E6 EE E4 28 86 BB AD E3 BA 48 E9 3A 28 [08:10:15]Write to MH i2c: 01 00 00 43 28 6B [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: 01 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: 01 07 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: 01 07 00 43 28 00 00 00 00 00 59 0C D7 [08:10:15]RasterBufferAndPrint [08:10:15]line [08:10:15]line [08:10:15]line [08:10:15]line [08:10:15]line [08:10:15]written 0, free lines is 3165 [08:10:15]MH_Cut [08:10:15]Write to MH i2c: D1 01 00 4A 28 01 44 [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: D1 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: D1 01 00 [08:10:15]MH_I2C_Read... [08:10:15]Read from MH i2c: D1 01 00 4A 28 00 43 [08:10:15]Write to MH i2c: 01 00 00 4B 28 73 [08:10:15]Write i2c OK [08:10:15]MH_I2C_Read... [08:10:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 C9 47 00 67 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 39 36 35 33 34 30 10 04 04 00 BC DE 02 00 F4 03 04 00 D5 07 17 67 B6 04 01 00 00 CA 56 1B 05 9F 38 95 D1 [08:10:15]CommunicateWithHost err = 0 [08:10:15]CheckOFDResponse [08:10:15]1017 (14) - 77093643461234 [08:10:15]1041 (16) - 0000000000965340 [08:10:15]1040 (4) - 188092 [08:10:15]1012 (4) - 22.10.2024 02:03 [08:10:15]1206 (1) - 0 [08:10:15]OFD Sender: Remove packet 188092 [08:10:15]ProducePacketName [08:10:15]name=ofd_packets/00188092 [08:10:15]NVStorageDeleteData [08:10:16]OFD Sender: No OFD packet to send [08:10:16]*** Cut start [08:10:16]*** Partial cut [08:10:16]*** CUTSNS_PIN = 1 [08:10:16]*** CUTSNS_PIN = 0 [08:10:16]*** Brake cut motor [08:10:17]Read from MH i2c: 01 [08:10:17]MH_I2C_Read... [08:10:17]*** Stop cut motor [08:10:17]*** Cut end [08:10:17]Read from MH i2c: 01 07 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: 01 07 00 4B 28 00 00 00 00 00 FF 0F 88 [08:10:17]process_action close_receipt done [08:10:17]requested_data is exist [08:10:17]produce_requested_data [08:10:17]requested_item fm.sn is exist - process it [08:10:17]wFMCommunicate request_size=4 [08:10:17]MH_SAM_APDU [08:10:17]CAPDU: 80 11 00 00 [08:10:17]Write to MH i2c: E2 08 00 4C 28 80 11 00 00 00 00 00 00 EE [08:10:17]Write i2c OK [08:10:17]MH_I2C_Read... [08:10:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:17]Read from MH i2c: E2 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 17 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 17 00 4C 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [08:10:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:10:17]wFMCommunicate OK [08:10:17]requested_item fd.num is exist - process it [08:10:17]SAM_PROTO_GetFieldsCounters [08:10:17]wFMCommunicate request_size=4 [08:10:17]MH_SAM_APDU [08:10:17]CAPDU: 80 13 00 00 [08:10:17]Write to MH i2c: E2 08 00 4D 28 80 13 00 00 00 00 00 00 F1 [08:10:17]Write i2c OK [08:10:17]MH_I2C_Read... [08:10:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:17]Read from MH i2c: E2 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 62 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 62 00 4D 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DE 02 00 0E 04 04 00 CD 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 CD [08:10:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DE 02 00 0E 04 04 00 CD 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 [08:10:17]wFMCommunicate OK [08:10:17]SAM_PROTO_GetFieldsCounters done [08:10:17]requested_item shift.num is exist - process it [08:10:17]requested_item shift.opened is exist - process it [08:10:17]req_shift_opened [08:10:17]FM_GetShiftState [08:10:17]SAM_PROTO_GetShiftState [08:10:17]wFMCommunicate request_size=4 [08:10:17]MH_SAM_APDU [08:10:17]CAPDU: 80 13 01 00 [08:10:17]Write to MH i2c: E2 08 00 4E 28 80 13 01 00 00 00 00 00 F3 [08:10:17]Write i2c OK [08:10:17]MH_I2C_Read... [08:10:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:17]Read from MH i2c: E2 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 0E 00 [08:10:17]MH_I2C_Read... [08:10:17]Read from MH i2c: E2 0E 00 4E 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E8 [08:10:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:10:17]wFMCommunicate OK [08:10:17]SAM_PROTO_GetShiftState done [08:10:17]FM_GetShiftState done [08:10:17]req_shift_opened done [08:10:17]requested_item shift.open_date is exist - process it [08:10:17]req_shift_open_date [08:10:17]req_shift_open_date done [08:10:17]produce_requested_data done [08:10:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188092,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:10:17]process_action_free close_receipt [08:10:17]json_value_free [08:10:17]json_value_free done [08:10:17]process_json_proto returns [08:10:17]Send response to host [08:10:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188092,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:10:17]free response buf [08:10:17]execute_script done [08:10:17]execute_script returns [08:10:17]free content buf [08:10:17]Sock 8.Close socket [08:10:17]Sock 8.Thread stoped [08:10:21]OFD Sender: No OFD packet to send [08:10:26]OFD Sender: No OFD packet to send [08:10:31]OFD Sender: No OFD packet to send [08:10:36]OFD Sender: No OFD packet to send [08:10:40]accept exits with 9 [08:10:40]New connection [08:10:40]New thread 3067055460 created [08:10:40]Thread 3067198820 joined [08:10:40]Waiting for new connection... [08:10:40] Sock 9.Parse request [08:10:40]Sock 9.Check first char [08:10:40]Sock 9.First char is OK [08:10:40]request: POST /json_proto HTTP/1.0 [08:10:40]Method: POST [08:10:40]URL: /json_proto [08:10:40]Method is POST - this is cgi request [08:10:40]url: /json_proto [08:10:40]query_string will be loaded in cgi processing [08:10:40]execute_cgi json_proto POST (null) [08:10:40]execute_cgi path=json_proto method=POST [08:10:40]POST find Content-Length [08:10:40]Host: 172.17.42.131:8080 [08:10:40]Content-Length: 767 [08:10:40]Content-Type: application/json [08:10:40] [08:10:40]POST finish read [08:10:40]Found Content-Length = 767 [08:10:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:40]execute_script... [08:10: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)210145", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:10:40]POST & json_proto [08:10:40]process_json_proto [08:10:40]json parsed OK: [08:10:40]protocol is kg_v1.0 [08:10:40]action value=close_receipt [08:10:40]process_action close_receipt [08:10:40]cmd_close_receipt [08:10:40]MH_GetDate [08:10:40]Write to MH i2c: F0 00 00 4F 28 66 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: F0 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: F0 09 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: F0 09 00 4F 28 00 03 5E 17 67 A0 18 CA 66 36 [08:10:40]GetLastDocTimeStamp 1729584615 [08:10:40]current date 1729584643 [08:10:40]FM_GetShiftState [08:10:40]SAM_PROTO_GetShiftState [08:10:40]wFMCommunicate request_size=4 [08:10:40]MH_SAM_APDU [08:10:40]CAPDU: 80 13 01 00 [08:10:40]Write to MH i2c: E2 08 00 50 28 80 13 01 00 00 00 00 00 F5 [08:10:40]Write i2c OK [08:10:40]MH_I2C_Read... [08:10:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:40]Read from MH i2c: E2 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 0E 00 [08:10:40]MH_I2C_Read... [08:10:40]Read from MH i2c: E2 0E 00 50 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EA [08:10:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:10:40]wFMCommunicate OK [08:10:40]SAM_PROTO_GetShiftState done [08:10:40]FM_GetShiftState done [08:10:40]opened in 1729556094 [08:10:40]opened+sec_in_day 1729642494 [08:10:40]quantity*price = 80012 [08:10:40]sum+1 = 80013 [08:10:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 122 22.10.2024 08:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188093 ФПД: 87926523077681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081043&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188093&fm=87926523077681&tin=02508201610067®Number=0000000000100030&sum=80012 [08:10:41]StoreToDocumentArchive [08:10:41]shift 461 fd 188093 [08:10:41]save to /storage/0461/doc_00188093 [08:10:41]save last doc name /storage/0461/doc_00188093 to /storage/kkm_last_doc_name [08:10:41]save OK [08:10:41]Clear old archive folders... [08:10:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:10:41]tlvbuf is 01C52A80 [08:10:41]SAM_PROTO_ClearQueue [08:10:41]wFMCommunicate request_size=4 [08:10:41]MH_SAM_APDU [08:10:41]CAPDU: 80 09 00 00 [08:10:41]Write to MH i2c: E2 08 00 5D 28 80 09 00 00 00 00 00 00 F7 [08:10:41]Write i2c OK [08:10:41]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 5D 28 00 90 00 F9 [08:10:42]RAPDU: 90 00 [08:10:42]wFMCommunicate OK [08:10:42]SAM_PROTO_ClearQueue done [08:10:42]KKMCreateOFDPacket [08:10:42]OFDProtocolAddRootSTLVToBuf [08:10:42]FM_MakeSignedData [08:10:42]FM_MakeSignedData [08:10:42]SAM_PROTO_SignData [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 0D 01 02 [08:10:42]Write to MH i2c: E2 08 00 5E 28 80 0D 01 02 00 00 00 00 FF [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 5E 28 00 90 00 FA [08:10:42]RAPDU: 90 00 [08:10:42]wFMCommunicate OK [08:10:42]wFMCommunicate request_size=255 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 03 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DE 02 00 35 04 06 00 4F [08:10:42]Write to MH i2c: E2 02 01 5F 28 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 03 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DE 02 00 35 04 06 00 4F 00 00 89 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 5F 28 00 90 00 FB [08:10:42]RAPDU: 90 00 [08:10:42]wFMCommunicate OK [08:10:42]wFMCommunicate request_size=10 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 0D 02 02 05 F7 FD 2C A4 31 [08:10:42]Write to MH i2c: E2 0D 00 60 28 80 0D 02 02 05 00 F7 FD 2C A4 31 00 00 01 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 03 00 60 28 00 90 00 FC [08:10:42]RAPDU: 90 00 [08:10:42]wFMCommunicate OK [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 0D 03 02 [08:10:42]Write to MH i2c: E2 08 00 61 28 80 0D 03 02 00 00 00 00 04 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 0B 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 0B 00 61 28 00 79 78 85 B9 2E EA 2D 2C 90 00 A5 [08:10:42]RAPDU: 79 78 85 B9 2E EA 2D 2C 90 00 [08:10:42]wFMCommunicate OK [08:10:42]SAM_PROTO_SignData done [08:10:42]FM_MakeSignedData done [08:10:42]CreateOFDProtocolMessage [08:10:42]wFMCommunicate request_size=4 [08:10:42]MH_SAM_APDU [08:10:42]CAPDU: 80 11 00 00 [08:10:42]Write to MH i2c: E2 08 00 62 28 80 11 00 00 00 00 00 00 04 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:42]Read from MH i2c: E2 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: E2 17 00 62 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [08:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:10:42]wFMCommunicate OK [08:10:42]CreateOFDProtocolMessage done [08:10:42]OFDSenderStorePacket 188093 [08:10:42]StoreOFDPacket docnum=188093 [08:10:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 A3 07 01 D4 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 03 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DE 02 00 35 04 06 00 4F F7 FD 2C A4 31 79 78 85 B9 2E EA 2D 2C [08:10:42]CheckFolder [08:10:42]dirname=/storage/ofd_packets [08:10:42]CheckFolder done [08:10:42]ProducePacketName [08:10:42]name=ofd_packets/00188093 [08:10:42]NVStorageSaveData ofd_packets/00188093 [08:10:42]File name is /storage/ofd_packets/00188093 [08:10:42]Write 301 bytes [08:10:42]NVStorageSaveData done [08:10:42]OFDSenderStorePacket done [08:10:42]KKMCreateOFDPacket done [08:10:42]NVStorageSaveData kkm_last_timestamp [08:10:42]File name is /storage/kkm_last_timestamp [08:10:42]Write 4 bytes [08:10:42]NVStorageSaveData done [08:10:42]ExternCall_PrintAddStr [08:10:42]wPrintStart [08:10:42]Write to MH i2c: 01 00 00 63 28 8B [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 63 28 00 00 00 00 00 FF 0F A0 [08:10:42]RasterBufferAndPrint [08:10:42]line Счет N : (1)210145 [08:10:42]line ИНН: 02508201610067 [08:10:42]line Контрольно-Кассовый Чек [08:10:42]line ПРОДАЖА [08:10:42]line ТРК (МРК, ГНК) : 42 [08:10:42]line Товар: 2710124130 [08:10:42]line Аи-92-К-3 [08:10:42]line 11.960 * 66.90 [08:10:42]line = 800.12 [08:10:42]line НДС 12% НСП 1% [08:10:42]line > о реализуемом товаре [08:10:42]line ИТОГО: 800.12 [08:10:42]line НСП 1% : 7.08 [08:10:42]line НДС 12% : 84.97 [08:10:42]line Наличными: 0.00 [08:10:42]line Безнал.: 800.12 [08:10:42]line Место: АЗС № 86 "Партнер Нефть" [08:10:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:10:42]line СНО: Общий режим [08:10:42]line Чек 122 22.10.2024 08:10 [08:10:42]line Смена: 461 ФФД: 1.0 [08:10:42]line ЗНМ: 0300000155 [08:10:42]line РНМ: 0000000000100030 [08:10:42]line Версия ККМ: 001 [08:10:42]line Платежная система: Mbank [08:10:42]line ФМ: 0000000000965340 [08:10:42]line ФД: 188093 [08:10:42]line ФПД: 87926523077681 [08:10:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081043&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188093&fm=87926523077681&tin=02508201610067®Number=0000000000100030&sum=80012 [08:10:42]written 0, free lines is 4095 [08:10:42]OFD Sender: Processing packet 188093 [packets to send 1062, broken 1061] [08:10:42]ProducePacketName [08:10:42]name=ofd_packets/00188093 [08:10:42]OFD Sender: To server: pG, [08:10:42]CommunicateWithHost lk.salyk.kg:30040 [08:10:42]ConnectInit lk.salyk.kg [08:10:42]Connected sock=10 [08:10:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 A3 07 01 D4 48 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 8C 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 03 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DE 02 00 35 04 06 00 4F F7 FD 2C A4 31 79 78 85 B9 2E EA 2D 2C [08:10:42]Write to MH i2c: 01 00 00 8C 28 B4 [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: 01 07 00 8C 28 00 00 00 00 00 85 0C 4C [08:10:42]RasterBufferAndPrint [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]line [08:10:42]written 0, free lines is 3210 [08:10:42]MH_Cut [08:10:42]Write to MH i2c: D1 01 00 93 28 01 8D [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: D1 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: D1 01 00 [08:10:42]MH_I2C_Read... [08:10:42]Read from MH i2c: D1 01 00 93 28 00 8C [08:10:42]Write to MH i2c: 01 00 00 94 28 BC [08:10:42]Write i2c OK [08:10:42]MH_I2C_Read... [08:10:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 D9 47 00 1C 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 39 36 35 33 34 30 10 04 04 00 BD DE 02 00 F4 03 04 00 F1 07 17 67 B6 04 01 00 00 43 4A 42 C3 08 7E 60 67 [08:10:43]CommunicateWithHost err = 0 [08:10:43]CheckOFDResponse [08:10:43]1017 (14) - 77093643461234 [08:10:43]1041 (16) - 0000000000965340 [08:10:43]1040 (4) - 188093 [08:10:43]1012 (4) - 22.10.2024 02:03 [08:10:43]1206 (1) - 0 [08:10:43]OFD Sender: Remove packet 188093 [08:10:43]ProducePacketName [08:10:43]name=ofd_packets/00188093 [08:10:43]NVStorageDeleteData [08:10:43]OFD Sender: No OFD packet to send [08:10:44]*** Cut start [08:10:44]*** Partial cut [08:10:44]*** CUTSNS_PIN = 1 [08:10:44]*** CUTSNS_PIN = 0 [08:10:44]*** Brake cut motor [08:10:44]Read from MH i2c: 01 [08:10:44]MH_I2C_Read... [08:10:44]*** Stop cut motor [08:10:44]*** Cut end [08:10:44]Read from MH i2c: 01 07 00 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: 01 07 00 94 28 00 00 00 00 00 FF 0F D1 [08:10:44]process_action close_receipt done [08:10:44]requested_data is exist [08:10:44]produce_requested_data [08:10:44]requested_item fm.sn is exist - process it [08:10:44]wFMCommunicate request_size=4 [08:10:44]MH_SAM_APDU [08:10:44]CAPDU: 80 11 00 00 [08:10:44]Write to MH i2c: E2 08 00 95 28 80 11 00 00 00 00 00 00 37 [08:10:44]Write i2c OK [08:10:44]MH_I2C_Read... [08:10:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:10:44]Read from MH i2c: E2 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 17 00 [08:10:44]MH_I2C_Read... [08:10:44]Read from MH i2c: E2 17 00 95 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [08:10:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:10:44]wFMCommunicate OK [08:10:44]requested_item fd.num is exist - process it [08:10:44]SAM_PROTO_GetFieldsCounters [08:10:44]wFMCommunicate request_size=4 [08:10:44]MH_SAM_APDU [08:10:44]CAPDU: 80 13 00 00 [08:10:44]Write to MH i2c: E2 08 00 96 28 80 13 00 00 00 00 00 00 3A [08:10:44]Write i2c OK [08:10:44]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 62 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 62 00 96 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DE 02 00 0E 04 04 00 CD 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 1A [08:10:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DE 02 00 0E 04 04 00 CD 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 [08:10:45]wFMCommunicate OK [08:10:45]SAM_PROTO_GetFieldsCounters done [08:10:45]requested_item shift.num is exist - process it [08:10:45]requested_item shift.opened is exist - process it [08:10:45]req_shift_opened [08:10:45]FM_GetShiftState [08:10:45]SAM_PROTO_GetShiftState [08:10:45]wFMCommunicate request_size=4 [08:10:45]MH_SAM_APDU [08:10:45]CAPDU: 80 13 01 00 [08:10:45]Write to MH i2c: E2 08 00 97 28 80 13 01 00 00 00 00 00 3C [08:10:45]Write i2c OK [08:10:45]MH_I2C_Read... [08:10:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:10:45]Read from MH i2c: E2 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 0E 00 [08:10:45]MH_I2C_Read... [08:10:45]Read from MH i2c: E2 0E 00 97 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 31 [08:10:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:10:45]wFMCommunicate OK [08:10:45]SAM_PROTO_GetShiftState done [08:10:45]FM_GetShiftState done [08:10:45]req_shift_opened done [08:10:45]requested_item shift.open_date is exist - process it [08:10:45]req_shift_open_date [08:10:45]req_shift_open_date done [08:10:45]produce_requested_data done [08:10:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188093,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:10:45]process_action_free close_receipt [08:10:45]json_value_free [08:10:45]json_value_free done [08:10:45]process_json_proto returns [08:10:45]Send response to host [08:10:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188093,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:10:45]free response buf [08:10:45]execute_script done [08:10:45]execute_script returns [08:10:45]free content buf [08:10:45]Sock 9.Close socket [08:10:45]Sock 9.Thread stoped [08:10:48]OFD Sender: No OFD packet to send [08:10:53]OFD Sender: No OFD packet to send [08:10:58]OFD Sender: No OFD packet to send [08:11:03]OFD Sender: No OFD packet to send [08:11:08]OFD Sender: No OFD packet to send [08:11:13]OFD Sender: No OFD packet to send [08:11:18]OFD Sender: No OFD packet to send [08:11:23]OFD Sender: No OFD packet to send [08:11:28]OFD Sender: No OFD packet to send [08:11:33]OFD Sender: No OFD packet to send [08:11:38]OFD Sender: No OFD packet to send [08:11:43]OFD Sender: No OFD packet to send [08:11:49]OFD Sender: No OFD packet to send [08:11:54]OFD Sender: No OFD packet to send [08:11:59]OFD Sender: No OFD packet to send [08:12:04]OFD Sender: No OFD packet to send [08:12:09]OFD Sender: No OFD packet to send [08:12:14]OFD Sender: No OFD packet to send [08:12:19]OFD Sender: No OFD packet to send [08:12:24]OFD Sender: No OFD packet to send [08:12:29]OFD Sender: No OFD packet to send [08:12:34]OFD Sender: No OFD packet to send [08:12:39]OFD Sender: No OFD packet to send [08:12:44]OFD Sender: No OFD packet to send [08:12:49]OFD Sender: No OFD packet to send [08:12:53]accept exits with 8 [08:12:53]New connection [08:12:53]New thread 3067198820 created [08:12:53]Thread 3067055460 joined [08:12:53]Waiting for new connection... [08:12:53] Sock 8.Parse request [08:12:53]Sock 8.Check first char [08:12:53]Sock 8.First char is OK [08:12:53]request: POST /json_proto HTTP/1.0 [08:12:53]Method: POST [08:12:53]URL: /json_proto [08:12:53]Method is POST - this is cgi request [08:12:53]url: /json_proto [08:12:53]query_string will be loaded in cgi processing [08:12:53]execute_cgi json_proto POST (null) [08:12:53]execute_cgi path=json_proto method=POST [08:12:53]POST find Content-Length [08:12:53]Host: 172.17.42.131:8080 [08:12:53]Content-Length: 688 [08:12:53]Content-Type: application/json [08:12:53] [08:12:53]POST finish read [08:12:53]Found Content-Length = 688 [08:12:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:12:53]execute_script... [08:12: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)210146", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:12:53]POST & json_proto [08:12:53]process_json_proto [08:12:53]json parsed OK: [08:12:53]protocol is kg_v1.0 [08:12:53]action value=close_receipt [08:12:53]process_action close_receipt [08:12:53]cmd_close_receipt [08:12:53]MH_GetDate [08:12:53]Write to MH i2c: F0 00 00 98 28 AF [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: F0 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: F0 09 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: F0 09 00 98 28 00 87 5E 17 67 A0 18 CA 66 03 [08:12:53]GetLastDocTimeStamp 1729584643 [08:12:53]current date 1729584775 [08:12:53]FM_GetShiftState [08:12:53]SAM_PROTO_GetShiftState [08:12:53]wFMCommunicate request_size=4 [08:12:53]MH_SAM_APDU [08:12:53]CAPDU: 80 13 01 00 [08:12:53]Write to MH i2c: E2 08 00 99 28 80 13 01 00 00 00 00 00 3E [08:12:53]Write i2c OK [08:12:53]MH_I2C_Read... [08:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:53]Read from MH i2c: E2 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: E2 0E 00 [08:12:53]MH_I2C_Read... [08:12:53]Read from MH i2c: E2 0E 00 99 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 33 [08:12:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:12:53]wFMCommunicate OK [08:12:53]SAM_PROTO_GetShiftState done [08:12:53]FM_GetShiftState done [08:12:53]opened in 1729556094 [08:12:53]opened+sec_in_day 1729642494 [08:12:53]quantity*price = 100051 [08:12:53]sum+1 = 100052 [08:12:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 123 22.10.2024 08:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188094 ФПД: 49399123797947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188094&fm=49399123797947&tin=02508201610067®Number=0000000000100030&sum=100000 [08:12:54]StoreToDocumentArchive [08:12:54]shift 461 fd 188094 [08:12:54]save to /storage/0461/doc_00188094 [08:12:54]save last doc name /storage/0461/doc_00188094 to /storage/kkm_last_doc_name [08:12:54]save OK [08:12:54]Clear old archive folders... [08:12:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:12:54]tlvbuf is 01BC2030 [08:12:54]SAM_PROTO_ClearQueue [08:12:54]wFMCommunicate request_size=4 [08:12:54]MH_SAM_APDU [08:12:54]CAPDU: 80 09 00 00 [08:12:54]Write to MH i2c: E2 08 00 A6 28 80 09 00 00 00 00 00 00 40 [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:12:54]Read from MH i2c: E2 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 A6 28 00 90 00 42 [08:12:54]RAPDU: 90 00 [08:12:54]wFMCommunicate OK [08:12:54]SAM_PROTO_ClearQueue done [08:12:54]KKMCreateOFDPacket [08:12:54]OFDProtocolAddRootSTLVToBuf [08:12:54]FM_MakeSignedData [08:12:54]FM_MakeSignedData [08:12:54]SAM_PROTO_SignData [08:12:54]wFMCommunicate request_size=4 [08:12:54]MH_SAM_APDU [08:12:54]CAPDU: 80 0D 01 02 [08:12:54]Write to MH i2c: E2 08 00 A7 28 80 0D 01 02 00 00 00 00 48 [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:12:54]OFD Sender: No OFD packet to send [08:12:54]Read from MH i2c: E2 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 A7 28 00 90 00 43 [08:12:54]RAPDU: 90 00 [08:12:54]wFMCommunicate OK [08:12:54]wFMCommunicate request_size=255 [08:12:54]MH_SAM_APDU [08:12:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 7B 00 00 00 F4 03 04 00 87 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DE 02 [08:12:54]Write to MH i2c: E2 02 01 A8 28 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 7B 00 00 00 F4 03 04 00 87 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DE 02 00 00 EF [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:54]Read from MH i2c: E2 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 A8 28 00 90 00 44 [08:12:54]RAPDU: 90 00 [08:12:54]wFMCommunicate OK [08:12:54]wFMCommunicate request_size=16 [08:12:54]MH_SAM_APDU [08:12:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 2C ED A1 39 E7 BB [08:12:54]Write to MH i2c: E2 13 00 A9 28 80 0D 02 02 0B 00 00 35 04 06 00 2C ED A1 39 E7 BB 00 00 35 [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:12:54]Read from MH i2c: E2 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 03 00 A9 28 00 90 00 45 [08:12:54]RAPDU: 90 00 [08:12:54]wFMCommunicate OK [08:12:54]wFMCommunicate request_size=4 [08:12:54]MH_SAM_APDU [08:12:54]CAPDU: 80 0D 03 02 [08:12:54]Write to MH i2c: E2 08 00 AA 28 80 0D 03 02 00 00 00 00 4D [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:12:54]Read from MH i2c: E2 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 0B 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 0B 00 AA 28 00 88 D2 DF 49 16 26 3F C3 90 00 0E [08:12:54]RAPDU: 88 D2 DF 49 16 26 3F C3 90 00 [08:12:54]wFMCommunicate OK [08:12:54]SAM_PROTO_SignData done [08:12:54]FM_MakeSignedData done [08:12:54]CreateOFDProtocolMessage [08:12:54]wFMCommunicate request_size=4 [08:12:54]MH_SAM_APDU [08:12:54]CAPDU: 80 11 00 00 [08:12:54]Write to MH i2c: E2 08 00 AB 28 80 11 00 00 00 00 00 00 4D [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:54]Read from MH i2c: E2 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 17 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: E2 17 00 AB 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [08:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:12:54]wFMCommunicate OK [08:12:54]CreateOFDProtocolMessage done [08:12:54]OFDSenderStorePacket 188094 [08:12:54]StoreOFDPacket docnum=188094 [08:12:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B0 C1 0D 01 9E 33 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 7B 00 00 00 F4 03 04 00 87 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DE 02 00 35 04 06 00 2C ED A1 39 E7 BB 88 D2 DF 49 16 26 3F C3 [08:12:54]CheckFolder [08:12:54]dirname=/storage/ofd_packets [08:12:54]CheckFolder done [08:12:54]ProducePacketName [08:12:54]name=ofd_packets/00188094 [08:12:54]NVStorageSaveData ofd_packets/00188094 [08:12:54]File name is /storage/ofd_packets/00188094 [08:12:54]Write 307 bytes [08:12:54]NVStorageSaveData done [08:12:54]OFDSenderStorePacket done [08:12:54]KKMCreateOFDPacket done [08:12:54]NVStorageSaveData kkm_last_timestamp [08:12:54]File name is /storage/kkm_last_timestamp [08:12:54]Write 4 bytes [08:12:54]NVStorageSaveData done [08:12:54]ExternCall_PrintAddStr [08:12:54]wPrintStart [08:12:54]Write to MH i2c: 01 00 00 AC 28 D4 [08:12:54]Write i2c OK [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: 01 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: 01 07 00 [08:12:54]MH_I2C_Read... [08:12:54]Read from MH i2c: 01 07 00 AC 28 00 00 00 00 00 FF 0F E9 [08:12:54]RasterBufferAndPrint [08:12:54]line Счет N : (1)210146 [08:12:54]line ИНН: 02508201610067 [08:12:54]line Контрольно-Кассовый Чек [08:12:54]line ПРОДАЖА [08:12:54]line ТРК (МРК, ГНК) : 11 [08:12:54]line Товар: 2710194210 [08:12:54]line D-ENERGY ДТ-К-5 [08:12:54]line 12.960 * 77.20 [08:12:54]line = 1000.51 [08:12:54]line НДС 12% НСП 1% [08:12:54]line > о реализуемом товаре [08:12:54]line ОКРУГЛЕНИЕ: -0.51 [08:12:54]line ИТОГО: 1000.00 [08:12:54]line Внесено: 1000.00 [08:12:54]line СДАЧА: 0.00 [08:12:54]line НСП 1% : 8.85 [08:12:54]line НДС 12% : 106.25 [08:12:54]line Наличными: 1000.00 [08:12:54]line Безнал.: 0.00 [08:12:54]line Место: АЗС № 86 "Партнер Нефть" [08:12:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:12:54]line СНО: Общий режим [08:12:54]line Чек 123 22.10.2024 08:12 [08:12:54]line Смена: 461 ФФД: 1.0 [08:12:54]line ЗНМ: 0300000155 [08:12:54]line РНМ: 0000000000100030 [08:12:54]line Версия ККМ: 001 [08:12:54]line ФМ: 0000000000965340 [08:12:54]line ФД: 188094 [08:12:54]line ФПД: 49399123797947 [08:12:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081255&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188094&fm=49399123797947&tin=02508201610067®Number=0000000000100030&sum=100000 [08:12:55]OFD Sender: Processing packet 188094 [packets to send 1062, broken 1061] [08:12:55]ProducePacketName [08:12:55]name=ofd_packets/00188094 [08:12:55]OFD Sender: To server: pG, [08:12:55]CommunicateWithHost lk.salyk.kg:30040 [08:12:55]ConnectInit lk.salyk.kg [08:12:55]written 0, free lines is 4095 [08:12:55]Connected sock=10 [08:12:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B0 C1 0D 01 9E 33 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 7B 00 00 00 F4 03 04 00 87 5E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DE 02 00 35 04 06 00 2C ED A1 39 E7 BB 88 D2 DF 49 16 26 3F C3 [08:12:55]Write to MH i2c: 01 00 00 D7 28 FF [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: 01 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: 01 07 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: 01 07 00 D7 28 00 00 00 00 00 56 0C 68 [08:12:55]RasterBufferAndPrint [08:12:55]line [08:12:55]line [08:12:55]line [08:12:55]line [08:12:55]line [08:12:55]written 0, free lines is 3162 [08:12:55]MH_Cut [08:12:55]Write to MH i2c: D1 01 00 DE 28 01 D8 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: D1 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: D1 01 00 [08:12:55]MH_I2C_Read... [08:12:55]Read from MH i2c: D1 01 00 DE 28 00 D7 [08:12:55]Write to MH i2c: 01 00 00 DF 28 07 [08:12:55]Write i2c OK [08:12:55]MH_I2C_Read... [08:12:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 28 4F 47 00 C6 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 39 36 35 33 34 30 10 04 04 00 BE DE 02 00 F4 03 04 00 75 08 17 67 B6 04 01 00 00 D8 C7 53 0F B0 B3 D4 B5 [08:12:55]CommunicateWithHost err = 0 [08:12:55]CheckOFDResponse [08:12:55]1017 (14) - 77093643461234 [08:12:55]1041 (16) - 0000000000965340 [08:12:55]1040 (4) - 188094 [08:12:55]1012 (4) - 22.10.2024 02:05 [08:12:55]1206 (1) - 0 [08:12:55]OFD Sender: Remove packet 188094 [08:12:55]ProducePacketName [08:12:55]name=ofd_packets/00188094 [08:12:55]NVStorageDeleteData [08:12:56]OFD Sender: No OFD packet to send [08:12:56]*** Cut start [08:12:56]*** Partial cut [08:12:56]*** CUTSNS_PIN = 1 [08:12:56]*** CUTSNS_PIN = 0 [08:12:57]*** Brake cut motor [08:12:57]Read from MH i2c: 01 [08:12:57]MH_I2C_Read... [08:12:57]*** Stop cut motor [08:12:57]*** Cut end [08:12:57]Read from MH i2c: 01 07 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: 01 07 00 DF 28 00 00 00 00 00 FF 0F 1C [08:12:57]process_action close_receipt done [08:12:57]requested_data is exist [08:12:57]produce_requested_data [08:12:57]requested_item fm.sn is exist - process it [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 11 00 00 [08:12:57]Write to MH i2c: E2 08 00 E0 28 80 11 00 00 00 00 00 00 82 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 17 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 17 00 E0 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [08:12:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:12:57]wFMCommunicate OK [08:12:57]requested_item fd.num is exist - process it [08:12:57]SAM_PROTO_GetFieldsCounters [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 13 00 00 [08:12:57]Write to MH i2c: E2 08 00 E1 28 80 13 00 00 00 00 00 00 85 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 62 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 62 00 E1 28 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DE 02 00 0E 04 04 00 CD 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 69 [08:12:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DE 02 00 0E 04 04 00 CD 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 [08:12:57]wFMCommunicate OK [08:12:57]SAM_PROTO_GetFieldsCounters done [08:12:57]requested_item shift.num is exist - process it [08:12:57]requested_item shift.opened is exist - process it [08:12:57]req_shift_opened [08:12:57]FM_GetShiftState [08:12:57]SAM_PROTO_GetShiftState [08:12:57]wFMCommunicate request_size=4 [08:12:57]MH_SAM_APDU [08:12:57]CAPDU: 80 13 01 00 [08:12:57]Write to MH i2c: E2 08 00 E2 28 80 13 01 00 00 00 00 00 87 [08:12:57]Write i2c OK [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 [08:12:57]MH_I2C_Read... [08:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:12:57]Read from MH i2c: E2 0E 00 [08:12:57]MH_I2C_Read... [08:12:57]Read from MH i2c: E2 0E 00 E2 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7C [08:12:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:12:57]wFMCommunicate OK [08:12:57]SAM_PROTO_GetShiftState done [08:12:57]FM_GetShiftState done [08:12:57]req_shift_opened done [08:12:57]requested_item shift.open_date is exist - process it [08:12:57]req_shift_open_date [08:12:57]req_shift_open_date done [08:12:57]produce_requested_data done [08:12:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188094,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:12:57]process_action_free close_receipt [08:12:57]json_value_free [08:12:57]json_value_free done [08:12:57]process_json_proto returns [08:12:57]Send response to host [08:12:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188094,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:12:57]free response buf [08:12:57]execute_script done [08:12:57]execute_script returns [08:12:57]free content buf [08:12:57]Sock 8.Close socket [08:12:57]Sock 8.Thread stoped [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:42]OFD Sender: No OFD packet to send [08:15:47]OFD Sender: No OFD packet to send [08:15:52]OFD Sender: No OFD packet to send [08:15:57]OFD Sender: No OFD packet to send [08:16:02]OFD Sender: No OFD packet to send [08:16:07]OFD Sender: No OFD packet to send [08:16:12]OFD Sender: No OFD packet to send [08:16:17]OFD Sender: No OFD packet to send [08:16:22]OFD Sender: No OFD packet to send [08:16:27]accept exits with 9 [08:16:27]New connection [08:16:27]New thread 3067055460 created [08:16:27]Thread 3067198820 joined [08:16:27]Waiting for new connection... [08:16:27] Sock 9.Parse request [08:16:27]Sock 9.Check first char [08:16:27]Sock 9.First char is OK [08:16:27]request: POST /json_proto HTTP/1.0 [08:16:27]Method: POST [08:16:27]URL: /json_proto [08:16:27]Method is POST - this is cgi request [08:16:27]url: /json_proto [08:16:27]query_string will be loaded in cgi processing [08:16:27]execute_cgi json_proto POST (null) [08:16:27]execute_cgi path=json_proto method=POST [08:16:27]POST find Content-Length [08:16:27]Host: 172.17.42.131:8080 [08:16:27]Content-Length: 797 [08:16:27]Content-Type: application/json [08:16:27] [08:16:27]POST finish read [08:16:27]Found Content-Length = 797 [08:16:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:27]execute_script... [08:16: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)210147", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4379704", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:16:27]POST & json_proto [08:16:27]process_json_proto [08:16:27]json parsed OK: [08:16:27]protocol is kg_v1.0 [08:16:27]action value=close_receipt [08:16:27]process_action close_receipt [08:16:27]cmd_close_receipt [08:16:27]MH_GetDate [08:16:27]Write to MH i2c: F0 00 00 E3 28 FA [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: F0 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: F0 09 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: F0 09 00 E3 28 00 5D 5F 17 67 A0 18 CA 66 25 [08:16:27]GetLastDocTimeStamp 1729584775 [08:16:27]current date 1729584989 [08:16:27]FM_GetShiftState [08:16:27]SAM_PROTO_GetShiftState [08:16:27]wFMCommunicate request_size=4 [08:16:27]MH_SAM_APDU [08:16:27]CAPDU: 80 13 01 00 [08:16:27]Write to MH i2c: E2 08 00 E4 28 80 13 01 00 00 00 00 00 89 [08:16:27]Write i2c OK [08:16:27]MH_I2C_Read... [08:16:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:16:27]Read from MH i2c: E2 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 [08:16:27]MH_I2C_Read... [08:16:27]Read from MH i2c: E2 0E 00 E4 28 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7E [08:16:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:16:27]wFMCommunicate OK [08:16:27]SAM_PROTO_GetShiftState done [08:16:27]FM_GetShiftState done [08:16:27]opened in 1729556094 [08:16:27]opened+sec_in_day 1729642494 [08:16:27]quantity*price = 0 [08:16:27]sum+1 = 1 [08:16:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 124 22.10.2024 08:16 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4379704 ФМ: 0000000000965340 ФД: 188095 ФПД: 125268898081376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081629&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188095&fm=125268898081376&tin=02508201610067®Number=0000000000100030&sum=0 [08:16:28]StoreToDocumentArchive [08:16:28]shift 461 fd 188095 [08:16:28]save to /storage/0461/doc_00188095 [08:16:28]save last doc name /storage/0461/doc_00188095 to /storage/kkm_last_doc_name [08:16:28]save OK [08:16:28]Clear old archive folders... [08:16:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:16:28]tlvbuf is 01C346A0 [08:16:28]SAM_PROTO_ClearQueue [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 09 00 00 [08:16:28]Write to MH i2c: E2 08 00 F1 28 80 09 00 00 00 00 00 00 8B [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 F1 28 00 90 00 8D [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]SAM_PROTO_ClearQueue done [08:16:28]KKMCreateOFDPacket [08:16:28]OFDProtocolAddRootSTLVToBuf [08:16:28]FM_MakeSignedData [08:16:28]FM_MakeSignedData [08:16:28]SAM_PROTO_SignData [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 01 02 [08:16:28]Write to MH i2c: E2 08 00 F2 28 80 0D 01 02 00 00 00 00 93 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 F2 28 00 90 00 8E [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]wFMCommunicate request_size=255 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5D 5F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DE 02 00 35 04 06 00 71 EE 70 2B [08:16:28]Write to MH i2c: E2 02 01 F3 28 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5D 5F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DE 02 00 35 04 06 00 71 EE 70 2B 00 00 61 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 F3 28 00 90 00 8F [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]wFMCommunicate request_size=7 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 02 02 02 EA 60 [08:16:28]Write to MH i2c: E2 0A 00 F4 28 80 0D 02 02 02 00 EA 60 00 00 E4 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 03 00 F4 28 00 90 00 90 [08:16:28]RAPDU: 90 00 [08:16:28]wFMCommunicate OK [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 0D 03 02 [08:16:28]Write to MH i2c: E2 08 00 F5 28 80 0D 03 02 00 00 00 00 98 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 0B 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 0B 00 F5 28 00 1B 2A 5A AC 06 96 4E 36 90 00 04 [08:16:28]RAPDU: 1B 2A 5A AC 06 96 4E 36 90 00 [08:16:28]wFMCommunicate OK [08:16:28]SAM_PROTO_SignData done [08:16:28]FM_MakeSignedData done [08:16:28]CreateOFDProtocolMessage [08:16:28]wFMCommunicate request_size=4 [08:16:28]MH_SAM_APDU [08:16:28]CAPDU: 80 11 00 00 [08:16:28]Write to MH i2c: E2 08 00 F6 28 80 11 00 00 00 00 00 00 98 [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:28]Read from MH i2c: E2 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 17 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: E2 17 00 F6 28 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [08:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:16:28]wFMCommunicate OK [08:16:28]CreateOFDProtocolMessage done [08:16:28]OFDSenderStorePacket 188095 [08:16:28]StoreOFDPacket docnum=188095 [08:16:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A5 B5 04 01 AC 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5D 5F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DE 02 00 35 04 06 00 71 EE 70 2B EA 60 1B 2A 5A AC 06 96 4E 36 [08:16:28]CheckFolder [08:16:28]dirname=/storage/ofd_packets [08:16:28]CheckFolder done [08:16:28]ProducePacketName [08:16:28]name=ofd_packets/00188095 [08:16:28]NVStorageSaveData ofd_packets/00188095 [08:16:28]File name is /storage/ofd_packets/00188095 [08:16:28]Write 298 bytes [08:16:28]NVStorageSaveData done [08:16:28]OFDSenderStorePacket done [08:16:28]KKMCreateOFDPacket done [08:16:28]NVStorageSaveData kkm_last_timestamp [08:16:28]File name is /storage/kkm_last_timestamp [08:16:28]Write 4 bytes [08:16:28]NVStorageSaveData done [08:16:28]ExternCall_PrintAddStr [08:16:28]wPrintStart [08:16:28]Write to MH i2c: 01 00 00 F7 28 1F [08:16:28]Write i2c OK [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: 01 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: 01 07 00 [08:16:28]MH_I2C_Read... [08:16:28]Read from MH i2c: 01 07 00 F7 28 00 00 00 00 00 FF 0F 34 [08:16:28]RasterBufferAndPrint [08:16:28]line Счет N : (1)210147 [08:16:28]line ИНН: 02508201610067 [08:16:28]line Контрольно-Кассовый Чек [08:16:28]line ПРОДАЖА [08:16:28]line ТРК (МРК, ГНК) : 51 [08:16:28]line Товар: 2710194210 [08:16:28]line ДТ-К-5 [08:16:28]line 20.000 * 0.00 [08:16:28]line = 0.00 [08:16:28]line НДС 12% НСП 1% [08:16:28]line > о реализуемом товаре [08:16:28]line ИТОГО: 0.00 [08:16:28]line НСП 1% : 0.00 [08:16:28]line НДС 12% : 0.00 [08:16:28]line Наличными: 0.00 [08:16:28]line Безнал.: 0.00 [08:16:28]line Место: АЗС № 86 "Партнер Нефть" [08:16:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:16:28]line СНО: Общий режим [08:16:28]line Чек 124 22.10.2024 08:16 [08:16:28]line Смена: 461 ФФД: 1.0 [08:16:28]line ЗНМ: 0300000155 [08:16:28]line РНМ: 0000000000100030 [08:16:28]line Версия ККМ: 001 [08:16:28]line Талоны: Топливные Талоны [08:16:28]line 4379704 [08:16:28]line ФМ: 0000000000965340 [08:16:28]line ФД: 188095 [08:16:28]line ФПД: 125268898081376 [08:16:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T081629&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188095&fm=125268898081376&tin=02508201610067®Number=0000000000100030&sum=0 [08:16:28]written 0, free lines is 4095 [08:16:28]OFD Sender: Processing packet 188095 [packets to send 1062, broken 1061] [08:16:28]ProducePacketName [08:16:28]name=ofd_packets/00188095 [08:16:28]OFD Sender: To server: pG, [08:16:28]CommunicateWithHost lk.salyk.kg:30040 [08:16:28]ConnectInit lk.salyk.kg [08:16:29]Connected sock=10 [08:16:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A5 B5 04 01 AC 92 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 5D 5F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DE 02 00 35 04 06 00 71 EE 70 2B EA 60 1B 2A 5A AC 06 96 4E 36 [08:16:29]Write to MH i2c: 01 00 00 21 29 4A [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: 01 07 00 21 29 00 00 00 00 00 71 0C CE [08:16:29]RasterBufferAndPrint [08:16:29]line [08:16:29]line [08:16:29]line [08:16:29]line [08:16:29]line [08:16:29]written 0, free lines is 3190 [08:16:29]MH_Cut [08:16:29]Write to MH i2c: D1 01 00 28 29 01 23 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: D1 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: D1 01 00 [08:16:29]MH_I2C_Read... [08:16:29]Read from MH i2c: D1 01 00 28 29 00 22 [08:16:29]Write to MH i2c: 01 00 00 29 29 52 [08:16:29]Write i2c OK [08:16:29]MH_I2C_Read... [08:16:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 4C 47 00 4F 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 39 36 35 33 34 30 10 04 04 00 BF DE 02 00 F4 03 04 00 4B 09 17 67 B6 04 01 00 00 FC FD A8 19 DC 6B 32 3D [08:16:29]CommunicateWithHost err = 0 [08:16:29]CheckOFDResponse [08:16:29]1017 (14) - 77093643461234 [08:16:29]1041 (16) - 0000000000965340 [08:16:29]1040 (4) - 188095 [08:16:29]1012 (4) - 22.10.2024 02:09 [08:16:29]1206 (1) - 0 [08:16:29]OFD Sender: Remove packet 188095 [08:16:29]ProducePacketName [08:16:29]name=ofd_packets/00188095 [08:16:29]NVStorageDeleteData [08:16:30]OFD Sender: No OFD packet to send [08:16:30]*** Cut start [08:16:30]*** Partial cut [08:16:30]*** CUTSNS_PIN = 1 [08:16:30]*** CUTSNS_PIN = 0 [08:16:30]*** Brake cut motor [08:16:31]Read from MH i2c: 01 [08:16:31]MH_I2C_Read... [08:16:31]*** Stop cut motor [08:16:31]*** Cut end [08:16:31]Read from MH i2c: 01 07 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: 01 07 00 29 29 00 00 00 00 00 FF 0F 67 [08:16:31]process_action close_receipt done [08:16:31]requested_data is exist [08:16:31]produce_requested_data [08:16:31]requested_item fm.sn is exist - process it [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 11 00 00 [08:16:31]Write to MH i2c: E2 08 00 2A 29 80 11 00 00 00 00 00 00 CD [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 17 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 17 00 2A 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [08:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:16:31]wFMCommunicate OK [08:16:31]requested_item fd.num is exist - process it [08:16:31]SAM_PROTO_GetFieldsCounters [08:16:31]wFMCommunicate request_size=4 [08:16:31]MH_SAM_APDU [08:16:31]CAPDU: 80 13 00 00 [08:16:31]Write to MH i2c: E2 08 00 2B 29 80 13 00 00 00 00 00 00 D0 [08:16:31]Write i2c OK [08:16:31]MH_I2C_Read... [08:16:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:16:31]Read from MH i2c: E2 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 62 00 [08:16:31]MH_I2C_Read... [08:16:31]Read from MH i2c: E2 62 00 2B 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DE 02 00 0E 04 04 00 CD 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 B8 [08:16:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DE 02 00 0E 04 04 00 CD 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 [08:16:31]wFMCommunicate OK [08:16:31]SAM_PROTO_GetFieldsCounters done [08:16:31]requested_item shift.num is exist - process it [08:16:31]requested_item shift.opened is exist - process it [08:16:31]req_shift_opened [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 2C 29 80 13 01 00 00 00 00 00 D2 [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]Read from MH i2c: E2 0E 00 2C 29 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C7 [08:16:31]RAPDU: 09 00 01 7E EE 16 67 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]req_shift_opened done [08:16:31]requested_item shift.open_date is exist - process it [08:16:31]req_shift_open_date [08:16:31]req_shift_open_date done [08:16:31]produce_requested_data done [08:16:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188095,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:16:31]process_action_free close_receipt [08:16:31]json_value_free [08:16:31]json_value_free done [08:16:31]process_json_proto returns [08:16:31]Send response to host [08:16:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188095,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:16:31]free response buf [08:16:31]execute_script done [08:16:31]execute_script returns [08:16:31]free content buf [08:16:31]Sock 9.Close socket [08:16:31]Sock 9.Thread stoped [08:16:35]OFD Sender: No OFD packet to send [08:16:40]OFD Sender: No OFD packet to send [08:16:45]OFD Sender: No OFD packet to send [08:16:50]OFD Sender: No OFD packet to send [08:16:55]OFD Sender: No OFD packet to send [08:17:00]OFD Sender: No OFD packet to send [08:17:05]OFD Sender: No OFD packet to send [08:17:10]OFD Sender: No OFD packet to send [08:17:15]OFD Sender: No OFD packet to send [08:17:20]OFD Sender: No OFD packet to send [08:17:25]OFD Sender: No OFD packet to send [08:17:30]OFD Sender: No OFD packet to send [08:17:35]OFD Sender: No OFD packet to send [08:17:40]OFD Sender: No OFD packet to send [08:17:45]OFD Sender: No OFD packet to send [08:17:50]OFD Sender: No OFD packet to send [08:17:55]OFD Sender: No OFD packet to send [08:18:00]OFD Sender: No OFD packet to send [08:18:05]OFD Sender: No OFD packet to send [08:18:10]OFD Sender: No OFD packet to send [08:18:15]OFD Sender: No OFD packet to send [08:18:20]OFD Sender: No OFD packet to send [08:18:25]OFD Sender: No OFD packet to send [08:18:30]OFD Sender: No OFD packet to send [08:18:35]OFD Sender: No OFD packet to send [08:18:40]OFD Sender: No OFD packet to send [08:18:45]OFD Sender: No OFD packet to send [08:18:50]OFD Sender: No OFD packet to send [08:18:55]OFD Sender: No OFD packet to send [08:19:00]OFD Sender: No OFD packet to send [08:19:05]OFD Sender: No OFD packet to send [08:19:10]OFD Sender: No OFD packet to send [08:19:15]OFD Sender: No OFD packet to send [08:19:20]OFD Sender: No OFD packet to send [08:19:25]OFD Sender: No OFD packet to send [08:19:30]OFD Sender: No OFD packet to send [08:19:35]OFD Sender: No OFD packet to send [08:19:40]OFD Sender: No OFD packet to send [08:19:45]OFD Sender: No OFD packet to send [08:19:50]OFD Sender: No OFD packet to send [08:19:55]OFD Sender: No OFD packet to send [08:20:00]OFD Sender: No OFD packet to send [08:20:06]OFD Sender: No OFD packet to send [08:20:11]OFD Sender: No OFD packet to send [08:20:16]OFD Sender: No OFD packet to send [08:20:21]OFD Sender: No OFD packet to send [08:20:26]OFD Sender: No OFD packet to send [08:20:31]OFD Sender: No OFD packet to send [08:20:36]OFD Sender: No OFD packet to send [08:20:41]OFD Sender: No OFD packet to send [08:20:46]OFD Sender: No OFD packet to send [08:20:51]OFD Sender: No OFD packet to send [08:20:56]OFD Sender: No OFD packet to send [08:21:01]OFD Sender: No OFD packet to send [08:21:06]OFD Sender: No OFD packet to send [08:21:11]OFD Sender: No OFD packet to send [08:21:16]OFD Sender: No OFD packet to send [08:21:21]OFD Sender: No OFD packet to send [08:21:26]accept exits with 8 [08:21:26]New connection [08:21:26]New thread 3067198820 created [08:21:26]Thread 3067055460 joined [08:21:26]Waiting for new connection... [08:21:26] Sock 8.Parse request [08:21:26]Sock 8.Check first char [08:21:26]Sock 8.First char is OK [08:21:26]request: POST /json_proto HTTP/1.0 [08:21:26]Method: POST [08:21:26]URL: /json_proto [08:21:26]Method is POST - this is cgi request [08:21:26]url: /json_proto [08:21:26]query_string will be loaded in cgi processing [08:21:26]execute_cgi json_proto POST (null) [08:21:26]execute_cgi path=json_proto method=POST [08:21:26]POST find Content-Length [08:21:26]Host: 172.17.42.131:8080 [08:21:26]Content-Length: 677 [08:21:26]Content-Type: application/json [08:21:26] [08:21:26]POST finish read [08:21:26]Found Content-Length = 677 [08:21:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:26]execute_script... [08:21: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)210148", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:21:26]POST & json_proto [08:21:26]process_json_proto [08:21:26]json parsed OK: [08:21:26]protocol is kg_v1.0 [08:21:26]action value=close_receipt [08:21:26]process_action close_receipt [08:21:26]cmd_close_receipt [08:21:26]MH_GetDate [08:21:26]Write to MH i2c: F0 00 00 2D 29 45 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: F0 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: F0 09 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: F0 09 00 2D 29 00 88 60 17 67 A0 18 CA 66 9C [08:21:26]GetLastDocTimeStamp 1729584989 [08:21:26]current date 1729585288 [08:21:26]FM_GetShiftState [08:21:26]SAM_PROTO_GetShiftState [08:21:26]wFMCommunicate request_size=4 [08:21:26]MH_SAM_APDU [08:21:26]CAPDU: 80 13 01 00 [08:21:26]Write to MH i2c: E2 08 00 2E 29 80 13 01 00 00 00 00 00 D4 [08:21:26]Write i2c OK [08:21:26]MH_I2C_Read... [08:21:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:26]Read from MH i2c: E2 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 [08:21:26]MH_I2C_Read... [08:21:26]Read from MH i2c: E2 0E 00 2E 29 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C9 [08:21:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:21:26]wFMCommunicate OK [08:21:26]SAM_PROTO_GetShiftState done [08:21:26]FM_GetShiftState done [08:21:26]opened in 1729556094 [08:21:26]opened+sec_in_day 1729642494 [08:21:26]quantity*price = 50041 [08:21:26]sum+1 = 50042 [08:21:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 125 22.10.2024 08:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188096 ФПД: 239224069408526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082128&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188096&fm=239224069408526&tin=02508201610067®Number=0000000000100030&sum=50000 [08:21:27]StoreToDocumentArchive [08:21:27]shift 461 fd 188096 [08:21:27]save to /storage/0461/doc_00188096 [08:21:27]save last doc name /storage/0461/doc_00188096 to /storage/kkm_last_doc_name [08:21:27]save OK [08:21:27]Clear old archive folders... [08:21:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:21:27]tlvbuf is B6EE4300 [08:21:27]SAM_PROTO_ClearQueue [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 09 00 00 [08:21:27]Write to MH i2c: E2 08 00 3B 29 80 09 00 00 00 00 00 00 D6 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 3B 29 00 90 00 D8 [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]SAM_PROTO_ClearQueue done [08:21:27]KKMCreateOFDPacket [08:21:27]OFDProtocolAddRootSTLVToBuf [08:21:27]FM_MakeSignedData [08:21:27]FM_MakeSignedData [08:21:27]SAM_PROTO_SignData [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 01 02 [08:21:27]Write to MH i2c: E2 08 00 3C 29 80 0D 01 02 00 00 00 00 DE [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 3C 29 00 90 00 D9 [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=255 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 88 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DE 02 00 35 04 06 00 D9 [08:21:27]Write to MH i2c: E2 02 01 3D 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 88 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DE 02 00 35 04 06 00 D9 00 00 7B [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 3D 29 00 90 00 DA [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=10 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 02 02 05 92 B1 AD C7 0E [08:21:27]Write to MH i2c: E2 0D 00 3E 29 80 0D 02 02 05 00 92 B1 AD C7 0E 00 00 B0 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 03 00 3E 29 00 90 00 DB [08:21:27]RAPDU: 90 00 [08:21:27]wFMCommunicate OK [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 0D 03 02 [08:21:27]Write to MH i2c: E2 08 00 3F 29 80 0D 03 02 00 00 00 00 E3 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:21:27]Read from MH i2c: E2 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 0B 00 [08:21:27]MH_I2C_Read... [08:21:27]Read from MH i2c: E2 0B 00 3F 29 00 96 42 E0 2F D9 58 34 2B 90 00 5B [08:21:27]RAPDU: 96 42 E0 2F D9 58 34 2B 90 00 [08:21:27]wFMCommunicate OK [08:21:27]SAM_PROTO_SignData done [08:21:27]FM_MakeSignedData done [08:21:27]CreateOFDProtocolMessage [08:21:27]wFMCommunicate request_size=4 [08:21:27]MH_SAM_APDU [08:21:27]CAPDU: 80 11 00 00 [08:21:27]Write to MH i2c: E2 08 00 40 29 80 11 00 00 00 00 00 00 E3 [08:21:27]Write i2c OK [08:21:27]MH_I2C_Read... [08:21:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:28]Read from MH i2c: E2 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 17 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: E2 17 00 40 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [08:21:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:21:28]wFMCommunicate OK [08:21:28]CreateOFDProtocolMessage done [08:21:28]OFDSenderStorePacket 188096 [08:21:28]StoreOFDPacket docnum=188096 [08:21:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B1 DF 07 01 8A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 88 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DE 02 00 35 04 06 00 D9 92 B1 AD C7 0E 96 42 E0 2F D9 58 34 2B [08:21:28]CheckFolder [08:21:28]dirname=/storage/ofd_packets [08:21:28]CheckFolder done [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00188096 [08:21:28]NVStorageSaveData ofd_packets/00188096 [08:21:28]File name is /storage/ofd_packets/00188096 [08:21:28]Write 301 bytes [08:21:28]NVStorageSaveData done [08:21:28]OFDSenderStorePacket done [08:21:28]KKMCreateOFDPacket done [08:21:28]NVStorageSaveData kkm_last_timestamp [08:21:28]File name is /storage/kkm_last_timestamp [08:21:28]Write 4 bytes [08:21:28]NVStorageSaveData done [08:21:28]ExternCall_PrintAddStr [08:21:28]wPrintStart [08:21:28]Write to MH i2c: 01 00 00 41 29 6A [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 41 29 00 00 00 00 00 FF 0F 7F [08:21:28]RasterBufferAndPrint [08:21:28]line Счет N : (1)210148 [08:21:28]line ИНН: 02508201610067 [08:21:28]line Контрольно-Кассовый Чек [08:21:28]line ПРОДАЖА [08:21:28]line ТРК (МРК, ГНК) : 22 [08:21:28]line Товар: 2710124130 [08:21:28]line Аи-92-К-3 [08:21:28]line 7.480 * 66.90 [08:21:28]line = 500.41 [08:21:28]line НДС 12% НСП 1% [08:21:28]line > о реализуемом товаре [08:21:28]line ОКРУГЛЕНИЕ: -0.41 [08:21:28]line ИТОГО: 500.00 [08:21:28]line Внесено: 500.00 [08:21:28]line СДАЧА: 0.00 [08:21:28]line НСП 1% : 4.43 [08:21:28]line НДС 12% : 53.14 [08:21:28]line Наличными: 500.00 [08:21:28]line Безнал.: 0.00 [08:21:28]line Место: АЗС № 86 "Партнер Нефть" [08:21:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:21:28]line СНО: Общий режим [08:21:28]line Чек 125 22.10.2024 08:21 [08:21:28]line Смена: 461 ФФД: 1.0 [08:21:28]line ЗНМ: 0300000155 [08:21:28]line РНМ: 0000000000100030 [08:21:28]line Версия ККМ: 001 [08:21:28]line ФМ: 0000000000965340 [08:21:28]line ФД: 188096 [08:21:28]line ФПД: 239224069408526 [08:21:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082128&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188096&fm=239224069408526&tin=02508201610067®Number=0000000000100030&sum=50000 [08:21:28]written 0, free lines is 4095 [08:21:28]OFD Sender: Processing packet 188096 [packets to send 1062, broken 1061] [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00188096 [08:21:28]OFD Sender: To server: pG, [08:21:28]CommunicateWithHost lk.salyk.kg:30040 [08:21:28]ConnectInit lk.salyk.kg [08:21:28]Connected sock=9 [08:21:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B1 DF 07 01 8A C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 88 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DE 02 00 35 04 06 00 D9 92 B1 AD C7 0E 96 42 E0 2F D9 58 34 2B [08:21:28]Write to MH i2c: 01 00 00 6C 29 95 [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: 01 07 00 6C 29 00 00 00 00 00 5A 0C 02 [08:21:28]RasterBufferAndPrint [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]line [08:21:28]written 0, free lines is 3166 [08:21:28]MH_Cut [08:21:28]Write to MH i2c: D1 01 00 73 29 01 6E [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 01 00 [08:21:28]MH_I2C_Read... [08:21:28]Read from MH i2c: D1 01 00 73 29 00 6D [08:21:28]Write to MH i2c: 01 00 00 74 29 9D [08:21:28]Write i2c OK [08:21:28]MH_I2C_Read... [08:21:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 45 47 00 27 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 39 36 35 33 34 30 10 04 04 00 C0 DE 02 00 F4 03 04 00 76 0A 17 67 B6 04 01 00 00 42 8F 18 65 F2 23 EE 2E [08:21:28]CommunicateWithHost err = 0 [08:21:28]CheckOFDResponse [08:21:28]1017 (14) - 77093643461234 [08:21:28]1041 (16) - 0000000000965340 [08:21:28]1040 (4) - 188096 [08:21:28]1012 (4) - 22.10.2024 02:14 [08:21:28]1206 (1) - 0 [08:21:28]OFD Sender: Remove packet 188096 [08:21:28]ProducePacketName [08:21:28]name=ofd_packets/00188096 [08:21:28]NVStorageDeleteData [08:21:29]OFD Sender: No OFD packet to send [08:21:29]*** Cut start [08:21:29]*** Partial cut [08:21:29]*** CUTSNS_PIN = 1 [08:21:29]*** CUTSNS_PIN = 0 [08:21:30]*** Brake cut motor [08:21:30]Read from MH i2c: 01 [08:21:30]MH_I2C_Read... [08:21:30]*** Stop cut motor [08:21:30]*** Cut end [08:21:30]Read from MH i2c: 01 07 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: 01 07 00 74 29 00 00 00 00 00 FF 0F B2 [08:21:30]process_action close_receipt done [08:21:30]requested_data is exist [08:21:30]produce_requested_data [08:21:30]requested_item fm.sn is exist - process it [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 11 00 00 [08:21:30]Write to MH i2c: E2 08 00 75 29 80 11 00 00 00 00 00 00 18 [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 17 00 75 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [08:21:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:21:30]wFMCommunicate OK [08:21:30]requested_item fd.num is exist - process it [08:21:30]SAM_PROTO_GetFieldsCounters [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 13 00 00 [08:21:30]Write to MH i2c: E2 08 00 76 29 80 13 00 00 00 00 00 00 1B [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 62 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 62 00 76 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DE 02 00 0E 04 04 00 CD 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 07 [08:21:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DE 02 00 0E 04 04 00 CD 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 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_GetFieldsCounters done [08:21:30]requested_item shift.num is exist - process it [08:21:30]requested_item shift.opened is exist - process it [08:21:30]req_shift_opened [08:21:30]FM_GetShiftState [08:21:30]SAM_PROTO_GetShiftState [08:21:30]wFMCommunicate request_size=4 [08:21:30]MH_SAM_APDU [08:21:30]CAPDU: 80 13 01 00 [08:21:30]Write to MH i2c: E2 08 00 77 29 80 13 01 00 00 00 00 00 1D [08:21:30]Write i2c OK [08:21:30]MH_I2C_Read... [08:21:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:21:30]Read from MH i2c: E2 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0E 00 [08:21:30]MH_I2C_Read... [08:21:30]Read from MH i2c: E2 0E 00 77 29 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 12 [08:21:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:21:30]wFMCommunicate OK [08:21:30]SAM_PROTO_GetShiftState done [08:21:30]FM_GetShiftState done [08:21:30]req_shift_opened done [08:21:30]requested_item shift.open_date is exist - process it [08:21:30]req_shift_open_date [08:21:30]req_shift_open_date done [08:21:30]produce_requested_data done [08:21:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188096,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:21:30]process_action_free close_receipt [08:21:30]json_value_free [08:21:30]json_value_free done [08:21:30]process_json_proto returns [08:21:30]Send response to host [08:21:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188096,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:21:30]free response buf [08:21:30]execute_script done [08:21:30]execute_script returns [08:21:30]free content buf [08:21:30]Sock 8.Close socket [08:21:30]Sock 8.Thread stoped [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:23]accept exits with 10 [08:22:23]New connection [08:22:23]New thread 3067055460 created [08:22:23]Thread 3067198820 joined [08:22:23]Waiting for new connection... [08:22:23] Sock 10.Parse request [08:22:23]Sock 10.Check first char [08:22:23]Sock 10.First char is OK [08:22:23]request: POST /json_proto HTTP/1.0 [08:22:23]Method: POST [08:22:23]URL: /json_proto [08:22:23]Method is POST - this is cgi request [08:22:23]url: /json_proto [08:22:23]query_string will be loaded in cgi processing [08:22:23]execute_cgi json_proto POST (null) [08:22:23]execute_cgi path=json_proto method=POST [08:22:23]POST find Content-Length [08:22:23]Host: 172.17.42.131:8080 [08:22:23]Content-Length: 766 [08:22:23]Content-Type: application/json [08:22:23] [08:22:23]POST finish read [08:22:23]Found Content-Length = 766 [08:22:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:23]execute_script... [08:22: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)210149", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:22:23]POST & json_proto [08:22:23]process_json_proto [08:22:23]json parsed OK: [08:22:23]protocol is kg_v1.0 [08:22:23]action value=close_receipt [08:22:23]process_action close_receipt [08:22:23]cmd_close_receipt [08:22:23]MH_GetDate [08:22:23]Write to MH i2c: F0 00 00 78 29 90 [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: F0 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: F0 09 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: F0 09 00 78 29 00 C2 60 17 67 A0 18 CA 66 21 [08:22:23]GetLastDocTimeStamp 1729585288 [08:22:23]current date 1729585346 [08:22:23]FM_GetShiftState [08:22:23]SAM_PROTO_GetShiftState [08:22:23]wFMCommunicate request_size=4 [08:22:23]MH_SAM_APDU [08:22:23]CAPDU: 80 13 01 00 [08:22:23]Write to MH i2c: E2 08 00 79 29 80 13 01 00 00 00 00 00 1F [08:22:23]Write i2c OK [08:22:23]MH_I2C_Read... [08:22:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:23]Read from MH i2c: E2 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 0E 00 [08:22:23]MH_I2C_Read... [08:22:23]Read from MH i2c: E2 0E 00 79 29 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 14 [08:22:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:22:23]wFMCommunicate OK [08:22:23]SAM_PROTO_GetShiftState done [08:22:23]FM_GetShiftState done [08:22:23]opened in 1729556094 [08:22:23]opened+sec_in_day 1729642494 [08:22:23]quantity*price = 50041 [08:22:23]sum+1 = 50042 [08:22:23]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 126 22.10.2024 08:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188097 ФПД: 19084573751347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188097&fm=19084573751347&tin=02508201610067®Number=0000000000100030&sum=50041 [08:22:24]StoreToDocumentArchive [08:22:24]shift 461 fd 188097 [08:22:24]save to /storage/0461/doc_00188097 [08:22:24]save last doc name /storage/0461/doc_00188097 to /storage/kkm_last_doc_name [08:22:24]save OK [08:22:24]Clear old archive folders... [08:22:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:22:24]tlvbuf is 01C52900 [08:22:24]SAM_PROTO_ClearQueue [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 09 00 00 [08:22:24]Write to MH i2c: E2 08 00 86 29 80 09 00 00 00 00 00 00 21 [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 86 29 00 90 00 23 [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]SAM_PROTO_ClearQueue done [08:22:24]KKMCreateOFDPacket [08:22:24]OFDProtocolAddRootSTLVToBuf [08:22:24]FM_MakeSignedData [08:22:24]FM_MakeSignedData [08:22:24]SAM_PROTO_SignData [08:22:24]wFMCommunicate request_size=4 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 0D 01 02 [08:22:24]Write to MH i2c: E2 08 00 87 29 80 0D 01 02 00 00 00 00 29 [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 87 29 00 90 00 24 [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]wFMCommunicate request_size=255 [08:22:24]MH_SAM_APDU [08: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C2 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DE 02 00 35 04 06 00 11 [08:22:24]Write to MH i2c: E2 02 01 88 29 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C2 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DE 02 00 35 04 06 00 11 00 00 8C [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:24]Read from MH i2c: E2 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 [08:22:24]MH_I2C_Read... [08:22:24]Read from MH i2c: E2 03 00 88 29 00 90 00 25 [08:22:24]RAPDU: 90 00 [08:22:24]wFMCommunicate OK [08:22:24]wFMCommunicate request_size=10 [08:22:24]MH_SAM_APDU [08:22:24]CAPDU: 80 0D 02 02 05 5B 79 3D 38 33 [08:22:24]Write to MH i2c: E2 0D 00 89 29 80 0D 02 02 05 00 5B 79 3D 38 33 00 00 B2 [08:22:24]Write i2c OK [08:22:24]MH_I2C_Read... [08:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:22:25]Read from MH i2c: E2 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 03 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 03 00 89 29 00 90 00 26 [08:22:25]RAPDU: 90 00 [08:22:25]wFMCommunicate OK [08:22:25]wFMCommunicate request_size=4 [08:22:25]MH_SAM_APDU [08:22:25]CAPDU: 80 0D 03 02 [08:22:25]Write to MH i2c: E2 08 00 8A 29 80 0D 03 02 00 00 00 00 2E [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:22:25]Read from MH i2c: E2 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 0B 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 0B 00 8A 29 00 5D A3 B4 7A DE E9 DA 87 90 00 85 [08:22:25]RAPDU: 5D A3 B4 7A DE E9 DA 87 90 00 [08:22:25]wFMCommunicate OK [08:22:25]SAM_PROTO_SignData done [08:22:25]FM_MakeSignedData done [08:22:25]CreateOFDProtocolMessage [08:22:25]wFMCommunicate request_size=4 [08:22:25]MH_SAM_APDU [08:22:25]CAPDU: 80 11 00 00 [08:22:25]Write to MH i2c: E2 08 00 8B 29 80 11 00 00 00 00 00 00 2E [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:25]Read from MH i2c: E2 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 17 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: E2 17 00 8B 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [08:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:22:25]wFMCommunicate OK [08:22:25]CreateOFDProtocolMessage done [08:22:25]OFDSenderStorePacket 188097 [08:22:25]StoreOFDPacket docnum=188097 [08:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 6E 07 01 E0 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C2 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DE 02 00 35 04 06 00 11 5B 79 3D 38 33 5D A3 B4 7A DE E9 DA 87 [08:22:25]CheckFolder [08:22:25]dirname=/storage/ofd_packets [08:22:25]CheckFolder done [08:22:25]ProducePacketName [08:22:25]name=ofd_packets/00188097 [08:22:25]NVStorageSaveData ofd_packets/00188097 [08:22:25]File name is /storage/ofd_packets/00188097 [08:22:25]Write 301 bytes [08:22:25]NVStorageSaveData done [08:22:25]OFDSenderStorePacket done [08:22:25]KKMCreateOFDPacket done [08:22:25]NVStorageSaveData kkm_last_timestamp [08:22:25]File name is /storage/kkm_last_timestamp [08:22:25]Write 4 bytes [08:22:25]NVStorageSaveData done [08:22:25]ExternCall_PrintAddStr [08:22:25]wPrintStart [08:22:25]Write to MH i2c: 01 00 00 8C 29 B5 [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 8C 29 00 00 00 00 00 FF 0F CA [08:22:25]RasterBufferAndPrint [08:22:25]line Счет N : (1)210149 [08:22:25]line ИНН: 02508201610067 [08:22:25]line Контрольно-Кассовый Чек [08:22:25]line ПРОДАЖА [08:22:25]line ТРК (МРК, ГНК) : 42 [08:22:25]line Товар: 2710124130 [08:22:25]line Аи-92-К-3 [08:22:25]line 7.480 * 66.90 [08:22:25]line = 500.41 [08:22:25]line НДС 12% НСП 1% [08:22:25]line > о реализуемом товаре [08:22:25]line ИТОГО: 500.41 [08:22:25]line НСП 1% : 4.43 [08:22:25]line НДС 12% : 53.14 [08:22:25]line Наличными: 0.00 [08:22:25]line Безнал.: 500.41 [08:22:25]line Место: АЗС № 86 "Партнер Нефть" [08:22:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:22:25]line СНО: Общий режим [08:22:25]line Чек 126 22.10.2024 08:22 [08:22:25]line Смена: 461 ФФД: 1.0 [08:22:25]line ЗНМ: 0300000155 [08:22:25]line РНМ: 0000000000100030 [08:22:25]line Версия ККМ: 001 [08:22:25]line Платежная система: Mbank [08:22:25]line ФМ: 0000000000965340 [08:22:25]line ФД: 188097 [08:22:25]line ФПД: 19084573751347 [08:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082226&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188097&fm=19084573751347&tin=02508201610067®Number=0000000000100030&sum=50041 [08:22:25]written 0, free lines is 4095 [08:22:25]OFD Sender: Processing packet 188097 [packets to send 1062, broken 1061] [08:22:25]ProducePacketName [08:22:25]name=ofd_packets/00188097 [08:22:25]OFD Sender: To server: pG, [08:22:25]CommunicateWithHost lk.salyk.kg:30040 [08:22:25]ConnectInit lk.salyk.kg [08:22:25]Connected sock=9 [08:22:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 6E 07 01 E0 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 00 00 00 F4 03 04 00 C2 60 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DE 02 00 35 04 06 00 11 5B 79 3D 38 33 5D A3 B4 7A DE E9 DA 87 [08:22:25]Write to MH i2c: 01 00 00 B5 29 DE [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: 01 07 00 B5 29 00 00 00 00 00 87 0C 78 [08:22:25]RasterBufferAndPrint [08:22:25]line [08:22:25]line [08:22:25]line [08:22:25]line [08:22:25]line [08:22:25]written 0, free lines is 3212 [08:22:25]MH_Cut [08:22:25]Write to MH i2c: D1 01 00 BC 29 01 B7 [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: D1 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: D1 01 00 [08:22:25]MH_I2C_Read... [08:22:25]Read from MH i2c: D1 01 00 BC 29 00 B6 [08:22:25]Write to MH i2c: 01 00 00 BD 29 E6 [08:22:25]Write i2c OK [08:22:25]MH_I2C_Read... [08:22:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 82 BC 47 00 B7 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 39 36 35 33 34 30 10 04 04 00 C1 DE 02 00 F4 03 04 00 AF 0A 17 67 B6 04 01 00 00 23 E9 59 F8 FD 0A 7B 40 [08:22:25]CommunicateWithHost err = 0 [08:22:25]CheckOFDResponse [08:22:25]1017 (14) - 77093643461234 [08:22:25]1041 (16) - 0000000000965340 [08:22:25]1040 (4) - 188097 [08:22:25]1012 (4) - 22.10.2024 02:15 [08:22:25]1206 (1) - 0 [08:22:25]OFD Sender: Remove packet 188097 [08:22:25]ProducePacketName [08:22:25]name=ofd_packets/00188097 [08:22:25]NVStorageDeleteData [08:22:26]OFD Sender: No OFD packet to send [08:22:26]*** Cut start [08:22:26]*** Partial cut [08:22:26]*** CUTSNS_PIN = 1 [08:22:26]*** CUTSNS_PIN = 0 [08:22:27]*** Brake cut motor [08:22:27]Read from MH i2c: 01 [08:22:27]MH_I2C_Read... [08:22:27]*** Stop cut motor [08:22:27]*** Cut end [08:22:27]Read from MH i2c: 01 07 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: 01 07 00 BD 29 00 00 00 00 00 FF 0F FB [08:22:27]process_action close_receipt done [08:22:27]requested_data is exist [08:22:27]produce_requested_data [08:22:27]requested_item fm.sn is exist - process it [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 11 00 00 [08:22:27]Write to MH i2c: E2 08 00 BE 29 80 11 00 00 00 00 00 00 61 [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 17 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 17 00 BE 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [08:22:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:22:27]wFMCommunicate OK [08:22:27]requested_item fd.num is exist - process it [08:22:27]SAM_PROTO_GetFieldsCounters [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 13 00 00 [08:22:27]Write to MH i2c: E2 08 00 BF 29 80 13 00 00 00 00 00 00 64 [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 62 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 62 00 BF 29 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DE 02 00 0E 04 04 00 CD 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 54 [08:22:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DE 02 00 0E 04 04 00 CD 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 [08:22:27]wFMCommunicate OK [08:22:27]SAM_PROTO_GetFieldsCounters done [08:22:27]requested_item shift.num is exist - process it [08:22:27]requested_item shift.opened is exist - process it [08:22:27]req_shift_opened [08:22:27]FM_GetShiftState [08:22:27]SAM_PROTO_GetShiftState [08:22:27]wFMCommunicate request_size=4 [08:22:27]MH_SAM_APDU [08:22:27]CAPDU: 80 13 01 00 [08:22:27]Write to MH i2c: E2 08 00 C0 29 80 13 01 00 00 00 00 00 66 [08:22:27]Write i2c OK [08:22:27]MH_I2C_Read... [08:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:22:27]Read from MH i2c: E2 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 0E 00 [08:22:27]MH_I2C_Read... [08:22:27]Read from MH i2c: E2 0E 00 C0 29 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5B [08:22:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:22:27]wFMCommunicate OK [08:22:27]SAM_PROTO_GetShiftState done [08:22:27]FM_GetShiftState done [08:22:27]req_shift_opened done [08:22:27]requested_item shift.open_date is exist - process it [08:22:27]req_shift_open_date [08:22:27]req_shift_open_date done [08:22:27]produce_requested_data done [08:22:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188097,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:22:27]process_action_free close_receipt [08:22:27]json_value_free [08:22:27]json_value_free done [08:22:27]process_json_proto returns [08:22:27]Send response to host [08:22:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188097,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:22:27]free response buf [08:22:27]execute_script done [08:22:27]execute_script returns [08:22:27]free content buf [08:22:27]Sock 10.Close socket [08:22:27]Sock 10.Thread stoped [08:22:31]OFD Sender: No OFD packet to send [08:22:36]OFD Sender: No OFD packet to send [08:22:41]OFD Sender: No OFD packet to send [08:22:46]OFD Sender: No OFD packet to send [08:22:51]OFD Sender: No OFD packet to send [08:22:56]OFD Sender: No OFD packet to send [08:23:01]OFD Sender: No OFD packet to send [08:23:06]OFD Sender: No OFD packet to send [08:23:11]OFD Sender: No OFD packet to send [08:23:16]OFD Sender: No OFD packet to send [08:23:21]OFD Sender: No OFD packet to send [08:23:26]OFD Sender: No OFD packet to send [08:23:27]accept exits with 8 [08:23:27]New connection [08:23:27]New thread 3067198820 created [08:23:27]Thread 3067055460 joined [08:23:27]Waiting for new connection... [08:23:27] Sock 8.Parse request [08:23:27]Sock 8.Check first char [08:23:27]Sock 8.First char is OK [08:23:27]request: POST /json_proto HTTP/1.0 [08:23:27]Method: POST [08:23:27]URL: /json_proto [08:23:27]Method is POST - this is cgi request [08:23:27]url: /json_proto [08:23:27]query_string will be loaded in cgi processing [08:23:27]execute_cgi json_proto POST (null) [08:23:27]execute_cgi path=json_proto method=POST [08:23:27]POST find Content-Length [08:23:27]Host: 172.17.42.131:8080 [08:23:27]Content-Length: 797 [08:23:27]Content-Type: application/json [08:23:27] [08:23:27]POST finish read [08:23:27]Found Content-Length = 797 [08:23:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4345256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:27]execute_script... [08:23:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210150", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4345256", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:23:27]POST & json_proto [08:23:27]process_json_proto [08:23:27]json parsed OK: [08:23:27]protocol is kg_v1.0 [08:23:27]action value=close_receipt [08:23:27]process_action close_receipt [08:23:27]cmd_close_receipt [08:23:27]MH_GetDate [08:23:27]Write to MH i2c: F0 00 00 C1 29 D9 [08:23:27]Write i2c OK [08:23:27]MH_I2C_Read... [08:23:27]Read from MH i2c: F0 [08:23:27]MH_I2C_Read... [08:23:27]Read from MH i2c: F0 09 00 [08:23:27]MH_I2C_Read... [08:23:27]Read from MH i2c: F0 09 00 C1 29 00 02 61 17 67 A0 18 CA 66 AB [08:23:27]GetLastDocTimeStamp 1729585346 [08:23:27]current date 1729585410 [08:23:27]FM_GetShiftState [08:23:27]SAM_PROTO_GetShiftState [08:23:27]wFMCommunicate request_size=4 [08:23:27]MH_SAM_APDU [08:23:27]CAPDU: 80 13 01 00 [08:23:27]Write to MH i2c: E2 08 00 C2 29 80 13 01 00 00 00 00 00 68 [08:23:27]Write i2c OK [08:23:27]MH_I2C_Read... [08:23:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:27]Read from MH i2c: E2 [08:23:27]MH_I2C_Read... [08:23:27]Read from MH i2c: E2 0E 00 [08:23:27]MH_I2C_Read... [08:23:27]Read from MH i2c: E2 0E 00 C2 29 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5D [08:23:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:23:27]wFMCommunicate OK [08:23:27]SAM_PROTO_GetShiftState done [08:23:27]FM_GetShiftState done [08:23:27]opened in 1729556094 [08:23:27]opened+sec_in_day 1729642494 [08:23:27]quantity*price = 0 [08:23:27]sum+1 = 1 [08:23:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 127 22.10.2024 08:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4345256 ФМ: 0000000000965340 ФД: 188098 ФПД: 142577236964427 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188098&fm=142577236964427&tin=02508201610067®Number=0000000000100030&sum=0 [08:23:28]StoreToDocumentArchive [08:23:28]shift 461 fd 188098 [08:23:28]save to /storage/0461/doc_00188098 [08:23:28]save last doc name /storage/0461/doc_00188098 to /storage/kkm_last_doc_name [08:23:28]save OK [08:23:28]Clear old archive folders... [08:23:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:23:28]tlvbuf is 01BAD230 [08:23:28]SAM_PROTO_ClearQueue [08:23:28]wFMCommunicate request_size=4 [08:23:28]MH_SAM_APDU [08:23:28]CAPDU: 80 09 00 00 [08:23:28]Write to MH i2c: E2 08 00 CF 29 80 09 00 00 00 00 00 00 6A [08:23:28]Write i2c OK [08:23:28]MH_I2C_Read... [08:23:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:28]Read from MH i2c: E2 [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: E2 03 00 [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: E2 03 00 CF 29 00 90 00 6C [08:23:28]RAPDU: 90 00 [08:23:28]wFMCommunicate OK [08:23:28]SAM_PROTO_ClearQueue done [08:23:28]KKMCreateOFDPacket [08:23:28]OFDProtocolAddRootSTLVToBuf [08:23:28]FM_MakeSignedData [08:23:28]FM_MakeSignedData [08:23:28]SAM_PROTO_SignData [08:23:28]wFMCommunicate request_size=4 [08:23:28]MH_SAM_APDU [08:23:28]CAPDU: 80 0D 01 02 [08:23:28]Write to MH i2c: E2 08 00 D0 29 80 0D 01 02 00 00 00 00 72 [08:23:28]Write i2c OK [08:23:28]MH_I2C_Read... [08:23:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:28]Read from MH i2c: E2 [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: E2 03 00 [08:23:28]MH_I2C_Read... [08:23:28]Read from MH i2c: E2 03 00 D0 29 00 90 00 6D [08:23:28]RAPDU: 90 00 [08:23:28]wFMCommunicate OK [08:23:28]wFMCommunicate request_size=255 [08:23:28]MH_SAM_APDU [08:23:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 02 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DE 02 00 35 04 06 00 81 AC 59 8F [08:23:28]Write to MH i2c: E2 02 01 D1 29 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 02 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DE 02 00 35 04 06 00 81 AC 59 8F 00 00 08 [08:23:28]Write i2c OK [08:23:28]MH_I2C_Read... [08:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:29]Read from MH i2c: E2 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 03 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 03 00 D1 29 00 90 00 6E [08:23:29]RAPDU: 90 00 [08:23:29]wFMCommunicate OK [08:23:29]wFMCommunicate request_size=7 [08:23:29]MH_SAM_APDU [08:23:29]CAPDU: 80 0D 02 02 02 F4 4B [08:23:29]Write to MH i2c: E2 0A 00 D2 29 80 0D 02 02 02 00 F4 4B 00 00 B8 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:29]Read from MH i2c: E2 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 03 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 03 00 D2 29 00 90 00 6F [08:23:29]RAPDU: 90 00 [08:23:29]wFMCommunicate OK [08:23:29]wFMCommunicate request_size=4 [08:23:29]MH_SAM_APDU [08:23:29]CAPDU: 80 0D 03 02 [08:23:29]Write to MH i2c: E2 08 00 D3 29 80 0D 03 02 00 00 00 00 77 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:29]Read from MH i2c: E2 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 0B 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 0B 00 D3 29 00 8A 0E 32 6E DE F6 CC EB 90 00 3B [08:23:29]RAPDU: 8A 0E 32 6E DE F6 CC EB 90 00 [08:23:29]wFMCommunicate OK [08:23:29]SAM_PROTO_SignData done [08:23:29]FM_MakeSignedData done [08:23:29]CreateOFDProtocolMessage [08:23:29]wFMCommunicate request_size=4 [08:23:29]MH_SAM_APDU [08:23:29]CAPDU: 80 11 00 00 [08:23:29]Write to MH i2c: E2 08 00 D4 29 80 11 00 00 00 00 00 00 77 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:29]Read from MH i2c: E2 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 17 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: E2 17 00 D4 29 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [08:23:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:23:29]wFMCommunicate OK [08:23:29]CreateOFDProtocolMessage done [08:23:29]OFDSenderStorePacket 188098 [08:23:29]StoreOFDPacket docnum=188098 [08:23:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 66 F8 04 01 6C 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 02 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DE 02 00 35 04 06 00 81 AC 59 8F F4 4B 8A 0E 32 6E DE F6 CC EB [08:23:29]CheckFolder [08:23:29]dirname=/storage/ofd_packets [08:23:29]CheckFolder done [08:23:29]ProducePacketName [08:23:29]name=ofd_packets/00188098 [08:23:29]NVStorageSaveData ofd_packets/00188098 [08:23:29]File name is /storage/ofd_packets/00188098 [08:23:29]Write 298 bytes [08:23:29]NVStorageSaveData done [08:23:29]OFDSenderStorePacket done [08:23:29]KKMCreateOFDPacket done [08:23:29]NVStorageSaveData kkm_last_timestamp [08:23:29]File name is /storage/kkm_last_timestamp [08:23:29]Write 4 bytes [08:23:29]NVStorageSaveData done [08:23:29]ExternCall_PrintAddStr [08:23:29]wPrintStart [08:23:29]Write to MH i2c: 01 00 00 D5 29 FE [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: 01 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: 01 07 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: 01 07 00 D5 29 00 00 00 00 00 FF 0F 13 [08:23:29]RasterBufferAndPrint [08:23:29]line Счет N : (1)210150 [08:23:29]line ИНН: 02508201610067 [08:23:29]line Контрольно-Кассовый Чек [08:23:29]line ПРОДАЖА [08:23:29]line ТРК (МРК, ГНК) : 51 [08:23:29]line Товар: 2710194210 [08:23:29]line ДТ-К-5 [08:23:29]line 20.000 * 0.00 [08:23:29]line = 0.00 [08:23:29]line НДС 12% НСП 1% [08:23:29]line > о реализуемом товаре [08:23:29]line ИТОГО: 0.00 [08:23:29]line НСП 1% : 0.00 [08:23:29]line НДС 12% : 0.00 [08:23:29]line Наличными: 0.00 [08:23:29]line Безнал.: 0.00 [08:23:29]line Место: АЗС № 86 "Партнер Нефть" [08:23:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:23:29]line СНО: Общий режим [08:23:29]line Чек 127 22.10.2024 08:23 [08:23:29]line Смена: 461 ФФД: 1.0 [08:23:29]line ЗНМ: 0300000155 [08:23:29]line РНМ: 0000000000100030 [08:23:29]line Версия ККМ: 001 [08:23:29]line Талоны: Топливные Талоны [08:23:29]line 4345256 [08:23:29]line ФМ: 0000000000965340 [08:23:29]line ФД: 188098 [08:23:29]line ФПД: 142577236964427 [08:23:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082330&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188098&fm=142577236964427&tin=02508201610067®Number=0000000000100030&sum=0 [08:23:29]written 0, free lines is 4095 [08:23:29]OFD Sender: Processing packet 188098 [packets to send 1062, broken 1061] [08:23:29]ProducePacketName [08:23:29]name=ofd_packets/00188098 [08:23:29]OFD Sender: To server: pG, [08:23:29]CommunicateWithHost lk.salyk.kg:30040 [08:23:29]ConnectInit lk.salyk.kg [08:23:29]Connected sock=10 [08:23:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 66 F8 04 01 6C 85 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7F 00 00 00 F4 03 04 00 02 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DE 02 00 35 04 06 00 81 AC 59 8F F4 4B 8A 0E 32 6E DE F6 CC EB [08:23:29]Write to MH i2c: 01 00 00 FF 29 28 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: 01 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: 01 07 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: 01 07 00 FF 29 00 00 00 00 00 77 0C B2 [08:23:29]RasterBufferAndPrint [08:23:29]line [08:23:29]line [08:23:29]line [08:23:29]line [08:23:29]line [08:23:29]written 0, free lines is 3195 [08:23:29]MH_Cut [08:23:29]Write to MH i2c: D1 01 00 06 2A 01 02 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: D1 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: D1 01 00 [08:23:29]MH_I2C_Read... [08:23:29]Read from MH i2c: D1 01 00 06 2A 00 01 [08:23:29]Write to MH i2c: 01 00 00 07 2A 31 [08:23:29]Write i2c OK [08:23:29]MH_I2C_Read... [08:23:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B2 FE 47 00 FD 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 39 36 35 33 34 30 10 04 04 00 C2 DE 02 00 F4 03 04 00 EF 0A 17 67 B6 04 01 00 00 DD 2E 0F C8 C7 F4 0E 1C [08:23:29]CommunicateWithHost err = 0 [08:23:29]CheckOFDResponse [08:23:29]1017 (14) - 77093643461234 [08:23:29]1041 (16) - 0000000000965340 [08:23:29]1040 (4) - 188098 [08:23:29]1012 (4) - 22.10.2024 02:16 [08:23:29]1206 (1) - 0 [08:23:29]OFD Sender: Remove packet 188098 [08:23:29]ProducePacketName [08:23:29]name=ofd_packets/00188098 [08:23:29]NVStorageDeleteData [08:23:30]OFD Sender: No OFD packet to send [08:23:30]*** Cut start [08:23:30]*** Partial cut [08:23:30]*** CUTSNS_PIN = 1 [08:23:30]*** CUTSNS_PIN = 0 [08:23:31]*** Brake cut motor [08:23:31]Read from MH i2c: 01 [08:23:31]MH_I2C_Read... [08:23:31]*** Stop cut motor [08:23:31]*** Cut end [08:23:31]Read from MH i2c: 01 07 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: 01 07 00 07 2A 00 00 00 00 00 FF 0F 46 [08:23:31]process_action close_receipt done [08:23:31]requested_data is exist [08:23:31]produce_requested_data [08:23:31]requested_item fm.sn is exist - process it [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 11 00 00 [08:23:31]Write to MH i2c: E2 08 00 08 2A 80 11 00 00 00 00 00 00 AC [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 17 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 17 00 08 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [08:23:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:23:31]wFMCommunicate OK [08:23:31]requested_item fd.num is exist - process it [08:23:31]SAM_PROTO_GetFieldsCounters [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 13 00 00 [08:23:31]Write to MH i2c: E2 08 00 09 2A 80 13 00 00 00 00 00 00 AF [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 62 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 62 00 09 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DE 02 00 0E 04 04 00 CD 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 A3 [08:23:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DE 02 00 0E 04 04 00 CD 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 [08:23:31]wFMCommunicate OK [08:23:31]SAM_PROTO_GetFieldsCounters done [08:23:31]requested_item shift.num is exist - process it [08:23:31]requested_item shift.opened is exist - process it [08:23:31]req_shift_opened [08:23:31]FM_GetShiftState [08:23:31]SAM_PROTO_GetShiftState [08:23:31]wFMCommunicate request_size=4 [08:23:31]MH_SAM_APDU [08:23:31]CAPDU: 80 13 01 00 [08:23:31]Write to MH i2c: E2 08 00 0A 2A 80 13 01 00 00 00 00 00 B1 [08:23:31]Write i2c OK [08:23:31]MH_I2C_Read... [08:23:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:31]Read from MH i2c: E2 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 0E 00 [08:23:31]MH_I2C_Read... [08:23:31]Read from MH i2c: E2 0E 00 0A 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A6 [08:23:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:23:31]wFMCommunicate OK [08:23:31]SAM_PROTO_GetShiftState done [08:23:31]FM_GetShiftState done [08:23:31]req_shift_opened done [08:23:31]requested_item shift.open_date is exist - process it [08:23:31]req_shift_open_date [08:23:31]req_shift_open_date done [08:23:31]produce_requested_data done [08:23:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188098,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:23:31]process_action_free close_receipt [08:23:31]json_value_free [08:23:31]json_value_free done [08:23:31]process_json_proto returns [08:23:31]Send response to host [08:23:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188098,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:23:31]free response buf [08:23:31]execute_script done [08:23:31]execute_script returns [08:23:31]free content buf [08:23:31]Sock 8.Close socket [08:23:31]Sock 8.Thread stoped [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:50]accept exits with 9 [08:23:50]New connection [08:23:50]New thread 3067055460 created [08:23:50]Thread 3067198820 joined [08:23:50]Waiting for new connection... [08:23:50] Sock 9.Parse request [08:23:50]Sock 9.Check first char [08:23:50]Sock 9.First char is OK [08:23:50]request: POST /json_proto HTTP/1.0 [08:23:50]Method: POST [08:23:50]URL: /json_proto [08:23:50]Method is POST - this is cgi request [08:23:50]url: /json_proto [08:23:50]query_string will be loaded in cgi processing [08:23:50]execute_cgi json_proto POST (null) [08:23:50]execute_cgi path=json_proto method=POST [08:23:50]POST find Content-Length [08:23:50]Host: 172.17.42.131:8080 [08:23:50]Content-Length: 682 [08:23:50]Content-Type: application/json [08:23:50] [08:23:50]POST finish read [08:23:50]Found Content-Length = 682 [08:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [08:23:50]execute_script... [08:23: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)210151", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [08:23:50]POST & json_proto [08:23:50]process_json_proto [08:23:50]json parsed OK: [08:23:50]protocol is kg_v1.0 [08:23:50]action value=close_receipt [08:23:50]process_action close_receipt [08:23:50]cmd_close_receipt [08:23:50]MH_GetDate [08:23:50]Write to MH i2c: F0 00 00 0B 2A 24 [08:23:50]Write i2c OK [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: F0 [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: F0 09 00 [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: F0 09 00 0B 2A 00 19 61 17 67 A0 18 CA 66 0D [08:23:50]GetLastDocTimeStamp 1729585410 [08:23:50]current date 1729585433 [08:23:50]FM_GetShiftState [08:23:50]SAM_PROTO_GetShiftState [08:23:50]wFMCommunicate request_size=4 [08:23:50]MH_SAM_APDU [08:23:50]CAPDU: 80 13 01 00 [08:23:50]Write to MH i2c: E2 08 00 0C 2A 80 13 01 00 00 00 00 00 B3 [08:23:50]Write i2c OK [08:23:50]MH_I2C_Read... [08:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:50]Read from MH i2c: E2 [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: E2 0E 00 [08:23:50]MH_I2C_Read... [08:23:50]Read from MH i2c: E2 0E 00 0C 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A8 [08:23:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:23:50]wFMCommunicate OK [08:23:50]SAM_PROTO_GetShiftState done [08:23:50]FM_GetShiftState done [08:23:50]opened in 1729556094 [08:23:50]opened+sec_in_day 1729642494 [08:23:50]quantity*price = 200043 [08:23:50]sum+1 = 200044 [08:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 128 22.10.2024 08:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188099 ФПД: 177340655884897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188099&fm=177340655884897&tin=02508201610067®Number=0000000000100030&sum=200000 [08:23:51]StoreToDocumentArchive [08:23:51]shift 461 fd 188099 [08:23:51]save to /storage/0461/doc_00188099 [08:23:51]save last doc name /storage/0461/doc_00188099 to /storage/kkm_last_doc_name [08:23:51]save OK [08:23:51]Clear old archive folders... [08:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:23:51]tlvbuf is 01BB82F0 [08:23:51]SAM_PROTO_ClearQueue [08:23:51]wFMCommunicate request_size=4 [08:23:51]MH_SAM_APDU [08:23:51]CAPDU: 80 09 00 00 [08:23:51]Write to MH i2c: E2 08 00 19 2A 80 09 00 00 00 00 00 00 B5 [08:23:51]Write i2c OK [08:23:51]MH_I2C_Read... [08:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:23:51]Read from MH i2c: E2 [08:23:51]MH_I2C_Read... [08:23:51]Read from MH i2c: E2 03 00 [08:23:51]MH_I2C_Read... [08:23:51]Read from MH i2c: E2 03 00 19 2A 00 90 00 B7 [08:23:51]RAPDU: 90 00 [08:23:51]wFMCommunicate OK [08:23:51]SAM_PROTO_ClearQueue done [08:23:51]KKMCreateOFDPacket [08:23:51]OFDProtocolAddRootSTLVToBuf [08:23:51]FM_MakeSignedData [08:23:51]FM_MakeSignedData [08:23:51]SAM_PROTO_SignData [08:23:51]wFMCommunicate request_size=4 [08:23:51]MH_SAM_APDU [08:23:51]CAPDU: 80 0D 01 02 [08:23:51]Write to MH i2c: E2 08 00 1A 2A 80 0D 01 02 00 00 00 00 BD [08:23:51]Write i2c OK [08:23:51]MH_I2C_Read... [08:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:23:51]Read from MH i2c: E2 [08:23:51]MH_I2C_Read... [08:23:51]Read from MH i2c: E2 03 00 [08:23:51]MH_I2C_Read... [08:23:51]Read from MH i2c: E2 03 00 1A 2A 00 90 00 B8 [08:23:51]RAPDU: 90 00 [08:23:51]wFMCommunicate OK [08:23:51]wFMCommunicate request_size=255 [08:23:51]MH_SAM_APDU [08:23:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 19 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DE 02 00 35 04 06 00 A1 [08:23:51]Write to MH i2c: E2 02 01 1B 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 19 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DE 02 00 35 04 06 00 A1 00 00 62 [08:23:51]Write i2c OK [08:23:51]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 03 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 03 00 1B 2A 00 90 00 B9 [08:23:52]RAPDU: 90 00 [08:23:52]wFMCommunicate OK [08:23:52]wFMCommunicate request_size=10 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 0D 02 02 05 4A 56 CC 5A 61 [08:23:52]Write to MH i2c: E2 0D 00 1C 2A 80 0D 02 02 05 00 4A 56 CC 5A 61 00 00 F1 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 03 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 03 00 1C 2A 00 90 00 BA [08:23:52]RAPDU: 90 00 [08:23:52]wFMCommunicate OK [08:23:52]wFMCommunicate request_size=4 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 0D 03 02 [08:23:52]Write to MH i2c: E2 08 00 1D 2A 80 0D 03 02 00 00 00 00 C2 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 0B 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 0B 00 1D 2A 00 21 80 6B 22 04 43 8D 18 90 00 DD [08:23:52]RAPDU: 21 80 6B 22 04 43 8D 18 90 00 [08:23:52]wFMCommunicate OK [08:23:52]SAM_PROTO_SignData done [08:23:52]FM_MakeSignedData done [08:23:52]CreateOFDProtocolMessage [08:23:52]wFMCommunicate request_size=4 [08:23:52]MH_SAM_APDU [08:23:52]CAPDU: 80 11 00 00 [08:23:52]Write to MH i2c: E2 08 00 1E 2A 80 11 00 00 00 00 00 00 C2 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:52]Read from MH i2c: E2 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 17 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: E2 17 00 1E 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [08:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:23:52]wFMCommunicate OK [08:23:52]CreateOFDProtocolMessage done [08:23:52]OFDSenderStorePacket 188099 [08:23:52]StoreOFDPacket docnum=188099 [08:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 9B 07 01 5F E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 19 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DE 02 00 35 04 06 00 A1 4A 56 CC 5A 61 21 80 6B 22 04 43 8D 18 [08:23:52]CheckFolder [08:23:52]dirname=/storage/ofd_packets [08:23:52]CheckFolder done [08:23:52]ProducePacketName [08:23:52]name=ofd_packets/00188099 [08:23:52]NVStorageSaveData ofd_packets/00188099 [08:23:52]File name is /storage/ofd_packets/00188099 [08:23:52]Write 301 bytes [08:23:52]NVStorageSaveData done [08:23:52]OFDSenderStorePacket done [08:23:52]KKMCreateOFDPacket done [08:23:52]NVStorageSaveData kkm_last_timestamp [08:23:52]File name is /storage/kkm_last_timestamp [08:23:52]Write 4 bytes [08:23:52]NVStorageSaveData done [08:23:52]ExternCall_PrintAddStr [08:23:52]wPrintStart [08:23:52]Write to MH i2c: 01 00 00 1F 2A 49 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: 01 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: 01 07 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: 01 07 00 1F 2A 00 00 00 00 00 FF 0F 5E [08:23:52]RasterBufferAndPrint [08:23:52]line Счет N : (1)210151 [08:23:52]line ИНН: 02508201610067 [08:23:52]line Контрольно-Кассовый Чек [08:23:52]line ПРОДАЖА [08:23:52]line ТРК (МРК, ГНК) : 13 [08:23:52]line Товар: 2710124500 [08:23:52]line Аи-95-К-3 [08:23:52]line 26.960 * 74.20 [08:23:52]line = 2000.43 [08:23:52]line НДС 12% НСП 1% [08:23:52]line > о реализуемом товаре [08:23:52]line ОКРУГЛЕНИЕ: -0.43 [08:23:52]line ИТОГО: 2000.00 [08:23:52]line Внесено: 2000.00 [08:23:52]line СДАЧА: 0.00 [08:23:52]line НСП 1% : 17.70 [08:23:52]line НДС 12% : 212.43 [08:23:52]line Наличными: 2000.00 [08:23:52]line Безнал.: 0.00 [08:23:52]line Место: АЗС № 86 "Партнер Нефть" [08:23:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:23:52]line СНО: Общий режим [08:23:52]line Чек 128 22.10.2024 08:23 [08:23:52]line Смена: 461 ФФД: 1.0 [08:23:52]line ЗНМ: 0300000155 [08:23:52]line РНМ: 0000000000100030 [08:23:52]line Версия ККМ: 001 [08:23:52]line ФМ: 0000000000965340 [08:23:52]line ФД: 188099 [08:23:52]line ФПД: 177340655884897 [08:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188099&fm=177340655884897&tin=02508201610067®Number=0000000000100030&sum=200000 [08:23:52]written 0, free lines is 4095 [08:23:52]OFD Sender: Processing packet 188099 [packets to send 1062, broken 1061] [08:23:52]ProducePacketName [08:23:52]name=ofd_packets/00188099 [08:23:52]OFD Sender: To server: pG, [08:23:52]CommunicateWithHost lk.salyk.kg:30040 [08:23:52]ConnectInit lk.salyk.kg [08:23:52]Connected sock=10 [08:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E2 9B 07 01 5F E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 80 00 00 00 F4 03 04 00 19 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DE 02 00 35 04 06 00 A1 4A 56 CC 5A 61 21 80 6B 22 04 43 8D 18 [08:23:52]Write to MH i2c: 01 00 00 4A 2A 74 [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: 01 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: 01 07 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: 01 07 00 4A 2A 00 00 00 00 00 5F 0C E6 [08:23:52]RasterBufferAndPrint [08:23:52]line [08:23:52]line [08:23:52]line [08:23:52]line [08:23:52]line [08:23:52]written 0, free lines is 3170 [08:23:52]MH_Cut [08:23:52]Write to MH i2c: D1 01 00 51 2A 01 4D [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: D1 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: D1 01 00 [08:23:52]MH_I2C_Read... [08:23:52]Read from MH i2c: D1 01 00 51 2A 00 4C [08:23:52]Write to MH i2c: 01 00 00 52 2A 7C [08:23:52]Write i2c OK [08:23:52]MH_I2C_Read... [08:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 7D 47 00 80 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 39 36 35 33 34 30 10 04 04 00 C3 DE 02 00 F4 03 04 00 06 0B 17 67 B6 04 01 00 00 AD C0 5A 0C EE EC 7C 22 [08:23:52]CommunicateWithHost err = 0 [08:23:52]CheckOFDResponse [08:23:52]1017 (14) - 77093643461234 [08:23:52]1041 (16) - 0000000000965340 [08:23:52]1040 (4) - 188099 [08:23:52]1012 (4) - 22.10.2024 02:16 [08:23:52]1206 (1) - 0 [08:23:52]OFD Sender: Remove packet 188099 [08:23:52]ProducePacketName [08:23:52]name=ofd_packets/00188099 [08:23:52]NVStorageDeleteData [08:23:53]OFD Sender: No OFD packet to send [08:23:54]*** Cut start [08:23:54]*** Partial cut [08:23:54]*** CUTSNS_PIN = 1 [08:23:54]*** CUTSNS_PIN = 0 [08:23:54]*** Brake cut motor [08:23:54]Read from MH i2c: 01 [08:23:54]MH_I2C_Read... [08:23:54]*** Stop cut motor [08:23:54]*** Cut end [08:23:54]Read from MH i2c: 01 07 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: 01 07 00 52 2A 00 00 00 00 00 FF 0F 91 [08:23:54]process_action close_receipt done [08:23:54]requested_data is exist [08:23:54]produce_requested_data [08:23:54]requested_item fm.sn is exist - process it [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 11 00 00 [08:23:54]Write to MH i2c: E2 08 00 53 2A 80 11 00 00 00 00 00 00 F7 [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 17 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 17 00 53 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [08:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:23:54]wFMCommunicate OK [08:23:54]requested_item fd.num is exist - process it [08:23:54]SAM_PROTO_GetFieldsCounters [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 13 00 00 [08:23:54]Write to MH i2c: E2 08 00 54 2A 80 13 00 00 00 00 00 00 FA [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 62 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 62 00 54 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DE 02 00 0E 04 04 00 CD 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 F2 [08:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DE 02 00 0E 04 04 00 CD 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 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_GetFieldsCounters done [08:23:54]requested_item shift.num is exist - process it [08:23:54]requested_item shift.opened is exist - process it [08:23:54]req_shift_opened [08:23:54]FM_GetShiftState [08:23:54]SAM_PROTO_GetShiftState [08:23:54]wFMCommunicate request_size=4 [08:23:54]MH_SAM_APDU [08:23:54]CAPDU: 80 13 01 00 [08:23:54]Write to MH i2c: E2 08 00 55 2A 80 13 01 00 00 00 00 00 FC [08:23:54]Write i2c OK [08:23:54]MH_I2C_Read... [08:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:23:54]Read from MH i2c: E2 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0E 00 [08:23:54]MH_I2C_Read... [08:23:54]Read from MH i2c: E2 0E 00 55 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F1 [08:23:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:23:54]wFMCommunicate OK [08:23:54]SAM_PROTO_GetShiftState done [08:23:54]FM_GetShiftState done [08:23:54]req_shift_opened done [08:23:54]requested_item shift.open_date is exist - process it [08:23:54]req_shift_open_date [08:23:54]req_shift_open_date done [08:23:54]produce_requested_data done [08:23:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188099,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:23:54]process_action_free close_receipt [08:23:54]json_value_free [08:23:54]json_value_free done [08:23:54]process_json_proto returns [08:23:54]Send response to host [08:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188099,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:23:54]free response buf [08:23:54]execute_script done [08:23:54]execute_script returns [08:23:54]free content buf [08:23:54]Sock 9.Close socket [08:23:54]Sock 9.Thread stoped [08:23:58]OFD Sender: No OFD packet to send [08:24:03]OFD Sender: No OFD packet to send [08:24:08]OFD Sender: No OFD packet to send [08:24:13]OFD Sender: No OFD packet to send [08:24:18]OFD Sender: No OFD packet to send [08:24:23]OFD Sender: No OFD packet to send [08:24:28]OFD Sender: No OFD packet to send [08:24:33]OFD Sender: No OFD packet to send [08:24:36]accept exits with 8 [08:24:36]New connection [08:24:36]New thread 3067198820 created [08:24:36]Thread 3067055460 joined [08:24:36]Waiting for new connection... [08:24:36] Sock 8.Parse request [08:24:36]Sock 8.Check first char [08:24:36]Sock 8.First char is OK [08:24:36]request: POST /json_proto HTTP/1.0 [08:24:36]Method: POST [08:24:36]URL: /json_proto [08:24:36]Method is POST - this is cgi request [08:24:36]url: /json_proto [08:24:36]query_string will be loaded in cgi processing [08:24:36]execute_cgi json_proto POST (null) [08:24:36]execute_cgi path=json_proto method=POST [08:24:36]POST find Content-Length [08:24:36]Host: 172.17.42.131:8080 [08:24:36]Content-Length: 769 [08:24:36]Content-Type: application/json [08:24:36] [08:24:36]POST finish read [08:24:36]Found Content-Length = 769 [08:24:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210152", "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" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:36]execute_script... [08:24: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)210152", "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" : 26.960, "sum" : 2000.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.43 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:24:36]POST & json_proto [08:24:36]process_json_proto [08:24:36]json parsed OK: [08:24:36]protocol is kg_v1.0 [08:24:36]action value=close_receipt [08:24:36]process_action close_receipt [08:24:36]cmd_close_receipt [08:24:36]MH_GetDate [08:24:36]Write to MH i2c: F0 00 00 56 2A 6F [08:24:36]Write i2c OK [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: F0 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: F0 09 00 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: F0 09 00 56 2A 00 47 61 17 67 A0 18 CA 66 86 [08:24:36]GetLastDocTimeStamp 1729585433 [08:24:36]current date 1729585479 [08:24:36]FM_GetShiftState [08:24:36]SAM_PROTO_GetShiftState [08:24:36]wFMCommunicate request_size=4 [08:24:36]MH_SAM_APDU [08:24:36]CAPDU: 80 13 01 00 [08:24:36]Write to MH i2c: E2 08 00 57 2A 80 13 01 00 00 00 00 00 FE [08:24:36]Write i2c OK [08:24:36]MH_I2C_Read... [08:24:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:36]Read from MH i2c: E2 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 0E 00 [08:24:36]MH_I2C_Read... [08:24:36]Read from MH i2c: E2 0E 00 57 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F3 [08:24:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:24:36]wFMCommunicate OK [08:24:36]SAM_PROTO_GetShiftState done [08:24:36]FM_GetShiftState done [08:24:36]opened in 1729556094 [08:24:36]opened+sec_in_day 1729642494 [08:24:36]quantity*price = 200043 [08:24:36]sum+1 = 200044 [08:24:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 129 22.10.2024 08:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188100 ФПД: 8593684445079 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188100&fm=8593684445079&tin=02508201610067®Number=0000000000100030&sum=200043 [08:24:37]StoreToDocumentArchive [08:24:37]shift 461 fd 188100 [08:24:37]save to /storage/0461/doc_00188100 [08:24:37]save last doc name /storage/0461/doc_00188100 to /storage/kkm_last_doc_name [08:24:37]save OK [08:24:37]Clear old archive folders... [08:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:24:37]tlvbuf is B6F165F0 [08:24:37]SAM_PROTO_ClearQueue [08:24:37]wFMCommunicate request_size=4 [08:24:37]MH_SAM_APDU [08:24:37]CAPDU: 80 09 00 00 [08:24:37]Write to MH i2c: E2 08 00 64 2A 80 09 00 00 00 00 00 00 00 [08:24:37]Write i2c OK [08:24:37]MH_I2C_Read... [08:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:24:37]Read from MH i2c: E2 [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: E2 03 00 [08:24:37]MH_I2C_Read... [08:24:37]Read from MH i2c: E2 03 00 64 2A 00 90 00 02 [08:24:37]RAPDU: 90 00 [08:24:37]wFMCommunicate OK [08:24:37]SAM_PROTO_ClearQueue done [08:24:37]KKMCreateOFDPacket [08:24:37]OFDProtocolAddRootSTLVToBuf [08:24:37]FM_MakeSignedData [08:24:37]FM_MakeSignedData [08:24:37]SAM_PROTO_SignData [08:24:37]wFMCommunicate request_size=4 [08:24:37]MH_SAM_APDU [08:24:37]CAPDU: 80 0D 01 02 [08:24:37]Write to MH i2c: E2 08 00 65 2A 80 0D 01 02 00 00 00 00 08 [08:24:37]Write i2c OK [08:24:37]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 65 2A 00 90 00 03 [08:24:38]RAPDU: 90 00 [08:24:38]wFMCommunicate OK [08:24:38]wFMCommunicate request_size=255 [08:24:38]MH_SAM_APDU [08:24: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 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DE 02 00 35 04 06 00 07 [08:24:38]Write to MH i2c: E2 02 01 66 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DE 02 00 35 04 06 00 07 00 00 99 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 66 2A 00 90 00 04 [08:24:38]RAPDU: 90 00 [08:24:38]wFMCommunicate OK [08:24:38]wFMCommunicate request_size=10 [08:24:38]MH_SAM_APDU [08:24:38]CAPDU: 80 0D 02 02 05 D0 DF 82 37 97 [08:24:38]Write to MH i2c: E2 0D 00 67 2A 80 0D 02 02 05 00 D0 DF 82 37 97 00 00 14 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 03 00 67 2A 00 90 00 05 [08:24:38]RAPDU: 90 00 [08:24:38]wFMCommunicate OK [08:24:38]wFMCommunicate request_size=4 [08:24:38]MH_SAM_APDU [08:24:38]CAPDU: 80 0D 03 02 [08:24:38]Write to MH i2c: E2 08 00 68 2A 80 0D 03 02 00 00 00 00 0D [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 0B 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 0B 00 68 2A 00 6F 9A 6D 1D 33 77 84 C7 90 00 96 [08:24:38]RAPDU: 6F 9A 6D 1D 33 77 84 C7 90 00 [08:24:38]wFMCommunicate OK [08:24:38]SAM_PROTO_SignData done [08:24:38]FM_MakeSignedData done [08:24:38]CreateOFDProtocolMessage [08:24:38]wFMCommunicate request_size=4 [08:24:38]MH_SAM_APDU [08:24:38]CAPDU: 80 11 00 00 [08:24:38]Write to MH i2c: E2 08 00 69 2A 80 11 00 00 00 00 00 00 0D [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:38]Read from MH i2c: E2 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 17 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: E2 17 00 69 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [08:24:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:24:38]wFMCommunicate OK [08:24:38]CreateOFDProtocolMessage done [08:24:38]OFDSenderStorePacket 188100 [08:24:38]StoreOFDPacket docnum=188100 [08:24:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 89 2D 07 01 D2 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DE 02 00 35 04 06 00 07 D0 DF 82 37 97 6F 9A 6D 1D 33 77 84 C7 [08:24:38]CheckFolder [08:24:38]dirname=/storage/ofd_packets [08:24:38]CheckFolder done [08:24:38]ProducePacketName [08:24:38]name=ofd_packets/00188100 [08:24:38]NVStorageSaveData ofd_packets/00188100 [08:24:38]File name is /storage/ofd_packets/00188100 [08:24:38]Write 301 bytes [08:24:38]NVStorageSaveData done [08:24:38]OFDSenderStorePacket done [08:24:38]KKMCreateOFDPacket done [08:24:38]NVStorageSaveData kkm_last_timestamp [08:24:38]File name is /storage/kkm_last_timestamp [08:24:38]Write 4 bytes [08:24:38]NVStorageSaveData done [08:24:38]ExternCall_PrintAddStr [08:24:38]wPrintStart [08:24:38]Write to MH i2c: 01 00 00 6A 2A 94 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: 01 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: 01 07 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: 01 07 00 6A 2A 00 00 00 00 00 FF 0F A9 [08:24:38]RasterBufferAndPrint [08:24:38]line Счет N : (1)210152 [08:24:38]line ИНН: 02508201610067 [08:24:38]line Контрольно-Кассовый Чек [08:24:38]line ПРОДАЖА [08:24:38]line ТРК (МРК, ГНК) : 33 [08:24:38]line Товар: 2710124500 [08:24:38]line Аи-95-К-3 [08:24:38]line 26.960 * 74.20 [08:24:38]line = 2000.43 [08:24:38]line НДС 12% НСП 1% [08:24:38]line > о реализуемом товаре [08:24:38]line ИТОГО: 2000.43 [08:24:38]line НСП 1% : 17.70 [08:24:38]line НДС 12% : 212.43 [08:24:38]line Наличными: 0.00 [08:24:38]line Безнал.: 2000.43 [08:24:38]line Место: АЗС № 86 "Партнер Нефть" [08:24:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:24:38]line СНО: Общий режим [08:24:38]line Чек 129 22.10.2024 08:24 [08:24:38]line Смена: 461 ФФД: 1.0 [08:24:38]line ЗНМ: 0300000155 [08:24:38]line РНМ: 0000000000100030 [08:24:38]line Версия ККМ: 001 [08:24:38]line Платежная система: Mbank [08:24:38]line ФМ: 0000000000965340 [08:24:38]line ФД: 188100 [08:24:38]line ФПД: 8593684445079 [08:24:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188100&fm=8593684445079&tin=02508201610067®Number=0000000000100030&sum=200043 [08:24:38]written 0, free lines is 4095 [08:24:38]OFD Sender: Processing packet 188100 [packets to send 1062, broken 1061] [08:24:38]ProducePacketName [08:24:38]name=ofd_packets/00188100 [08:24:38]OFD Sender: To server: pG, [08:24:38]CommunicateWithHost lk.salyk.kg:30040 [08:24:38]ConnectInit lk.salyk.kg [08:24:38]Connected sock=10 [08:24:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 89 2D 07 01 D2 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 6B 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 00 00 00 00 00 00 39 04 06 00 6B 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 81 00 00 00 F4 03 04 00 47 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DE 02 00 35 04 06 00 07 D0 DF 82 37 97 6F 9A 6D 1D 33 77 84 C7 [08:24:38]Write to MH i2c: 01 00 00 93 2A BD [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: 01 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: 01 07 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: 01 07 00 93 2A 00 00 00 00 00 92 0C 62 [08:24:38]RasterBufferAndPrint [08:24:38]line [08:24:38]line [08:24:38]line [08:24:38]line [08:24:38]line [08:24:38]written 0, free lines is 3222 [08:24:38]MH_Cut [08:24:38]Write to MH i2c: D1 01 00 9A 2A 01 96 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: D1 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: D1 01 00 [08:24:38]MH_I2C_Read... [08:24:38]Read from MH i2c: D1 01 00 9A 2A 00 95 [08:24:38]Write to MH i2c: 01 00 00 9B 2A C5 [08:24:38]Write i2c OK [08:24:38]MH_I2C_Read... [08:24:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF C8 47 00 19 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 39 36 35 33 34 30 10 04 04 00 C4 DE 02 00 F4 03 04 00 35 0B 17 67 B6 04 01 00 00 5E 58 E4 C9 35 20 C9 73 [08:24:39]CommunicateWithHost err = 0 [08:24:39]CheckOFDResponse [08:24:39]1017 (14) - 77093643461234 [08:24:39]1041 (16) - 0000000000965340 [08:24:39]1040 (4) - 188100 [08:24:39]1012 (4) - 22.10.2024 02:17 [08:24:39]1206 (1) - 0 [08:24:39]OFD Sender: Remove packet 188100 [08:24:39]ProducePacketName [08:24:39]name=ofd_packets/00188100 [08:24:39]NVStorageDeleteData [08:24:39]OFD Sender: No OFD packet to send [08:24:40]*** Cut start [08:24:40]*** Partial cut [08:24:40]*** CUTSNS_PIN = 1 [08:24:40]*** CUTSNS_PIN = 0 [08:24:40]*** Brake cut motor [08:24:40]Read from MH i2c: 01 [08:24:40]MH_I2C_Read... [08:24:40]*** Stop cut motor [08:24:40]*** Cut end [08:24:40]Read from MH i2c: 01 07 00 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: 01 07 00 9B 2A 00 00 00 00 00 FF 0F DA [08:24:40]process_action close_receipt done [08:24:40]requested_data is exist [08:24:40]produce_requested_data [08:24:40]requested_item fm.sn is exist - process it [08:24:40]wFMCommunicate request_size=4 [08:24:40]MH_SAM_APDU [08:24:40]CAPDU: 80 11 00 00 [08:24:40]Write to MH i2c: E2 08 00 9C 2A 80 11 00 00 00 00 00 00 40 [08:24:40]Write i2c OK [08:24:40]MH_I2C_Read... [08:24:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:24:40]Read from MH i2c: E2 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: E2 17 00 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: E2 17 00 9C 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [08:24:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:24:40]wFMCommunicate OK [08:24:40]requested_item fd.num is exist - process it [08:24:40]SAM_PROTO_GetFieldsCounters [08:24:40]wFMCommunicate request_size=4 [08:24:40]MH_SAM_APDU [08:24:40]CAPDU: 80 13 00 00 [08:24:40]Write to MH i2c: E2 08 00 9D 2A 80 13 00 00 00 00 00 00 43 [08:24:40]Write i2c OK [08:24:40]MH_I2C_Read... [08:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:24:40]Read from MH i2c: E2 [08:24:40]MH_I2C_Read... [08:24:40]Read from MH i2c: E2 62 00 [08:24:40]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 62 00 9D 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DE 02 00 0E 04 04 00 CD 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 3F [08:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DE 02 00 0E 04 04 00 CD 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 [08:24:41]wFMCommunicate OK [08:24:41]SAM_PROTO_GetFieldsCounters done [08:24:41]requested_item shift.num is exist - process it [08:24:41]requested_item shift.opened is exist - process it [08:24:41]req_shift_opened [08:24:41]FM_GetShiftState [08:24:41]SAM_PROTO_GetShiftState [08:24:41]wFMCommunicate request_size=4 [08:24:41]MH_SAM_APDU [08:24:41]CAPDU: 80 13 01 00 [08:24:41]Write to MH i2c: E2 08 00 9E 2A 80 13 01 00 00 00 00 00 45 [08:24:41]Write i2c OK [08:24:41]MH_I2C_Read... [08:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:24:41]Read from MH i2c: E2 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 0E 00 [08:24:41]MH_I2C_Read... [08:24:41]Read from MH i2c: E2 0E 00 9E 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [08:24:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:24:41]wFMCommunicate OK [08:24:41]SAM_PROTO_GetShiftState done [08:24:41]FM_GetShiftState done [08:24:41]req_shift_opened done [08:24:41]requested_item shift.open_date is exist - process it [08:24:41]req_shift_open_date [08:24:41]req_shift_open_date done [08:24:41]produce_requested_data done [08:24:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188100,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:24:41]process_action_free close_receipt [08:24:41]json_value_free [08:24:41]json_value_free done [08:24:41]process_json_proto returns [08:24:41]Send response to host [08:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188100,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:24:41]free response buf [08:24:41]execute_script done [08:24:41]execute_script returns [08:24:41]free content buf [08:24:41]Sock 8.Close socket [08:24:41]Sock 8.Thread stoped [08:24:44]OFD Sender: No OFD packet to send [08:24:49]OFD Sender: No OFD packet to send [08:24:54]OFD Sender: No OFD packet to send [08:24:59]OFD Sender: No OFD packet to send [08:25:04]OFD Sender: No OFD packet to send [08:25:09]OFD Sender: No OFD packet to send [08:25:11]accept exits with 9 [08:25:11]New connection [08:25:11]New thread 3067055460 created [08:25:11]Thread 3067198820 joined [08:25:11]Waiting for new connection... [08:25:11] Sock 9.Parse request [08:25:11]Sock 9.Check first char [08:25:11]Sock 9.First char is OK [08:25:11]request: POST /json_proto HTTP/1.0 [08:25:11]Method: POST [08:25:11]URL: /json_proto [08:25:11]Method is POST - this is cgi request [08:25:11]url: /json_proto [08:25:11]query_string will be loaded in cgi processing [08:25:11]execute_cgi json_proto POST (null) [08:25:11]execute_cgi path=json_proto method=POST [08:25:11]POST find Content-Length [08:25:11]Host: 172.17.42.131:8080 [08:25:11]Content-Length: 769 [08:25:11]Content-Type: application/json [08:25:11] [08:25:11]POST finish read [08:25:11]Found Content-Length = 769 [08:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:11]execute_script... [08:25: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)210153", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:25:11]POST & json_proto [08:25:11]process_json_proto [08:25:11]json parsed OK: [08:25:11]protocol is kg_v1.0 [08:25:11]action value=close_receipt [08:25:11]process_action close_receipt [08:25:11]cmd_close_receipt [08:25:11]MH_GetDate [08:25:11]Write to MH i2c: F0 00 00 9F 2A B8 [08:25:11]Write i2c OK [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: F0 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: F0 09 00 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: F0 09 00 9F 2A 00 6A 61 17 67 A0 18 CA 66 F2 [08:25:11]GetLastDocTimeStamp 1729585479 [08:25:11]current date 1729585514 [08:25:11]FM_GetShiftState [08:25:11]SAM_PROTO_GetShiftState [08:25:11]wFMCommunicate request_size=4 [08:25:11]MH_SAM_APDU [08:25:11]CAPDU: 80 13 01 00 [08:25:11]Write to MH i2c: E2 08 00 A0 2A 80 13 01 00 00 00 00 00 47 [08:25:11]Write i2c OK [08:25:11]MH_I2C_Read... [08:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:11]Read from MH i2c: E2 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 0E 00 [08:25:11]MH_I2C_Read... [08:25:11]Read from MH i2c: E2 0E 00 A0 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3C [08:25:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:25:11]wFMCommunicate OK [08:25:11]SAM_PROTO_GetShiftState done [08:25:11]FM_GetShiftState done [08:25:11]opened in 1729556094 [08:25:11]opened+sec_in_day 1729642494 [08:25:11]quantity*price = 100015 [08:25:11]sum+1 = 100017 [08:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 130 22.10.2024 08:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188101 ФПД: 137574269973303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188101&fm=137574269973303&tin=02508201610067®Number=0000000000100030&sum=100016 [08:25:12]StoreToDocumentArchive [08:25:12]shift 461 fd 188101 [08:25:12]save to /storage/0461/doc_00188101 [08:25:12]save last doc name /storage/0461/doc_00188101 to /storage/kkm_last_doc_name [08:25:12]save OK [08:25:12]Clear old archive folders... [08:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:25:12]tlvbuf is B6F91640 [08:25:12]SAM_PROTO_ClearQueue [08:25:12]wFMCommunicate request_size=4 [08:25:12]MH_SAM_APDU [08:25:12]CAPDU: 80 09 00 00 [08:25:12]Write to MH i2c: E2 08 00 AD 2A 80 09 00 00 00 00 00 00 49 [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:25:12]Read from MH i2c: E2 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 03 00 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 03 00 AD 2A 00 90 00 4B [08:25:12]RAPDU: 90 00 [08:25:12]wFMCommunicate OK [08:25:12]SAM_PROTO_ClearQueue done [08:25:12]KKMCreateOFDPacket [08:25:12]OFDProtocolAddRootSTLVToBuf [08:25:12]FM_MakeSignedData [08:25:12]FM_MakeSignedData [08:25:12]SAM_PROTO_SignData [08:25:12]wFMCommunicate request_size=4 [08:25:12]MH_SAM_APDU [08:25:12]CAPDU: 80 0D 01 02 [08:25:12]Write to MH i2c: E2 08 00 AE 2A 80 0D 01 02 00 00 00 00 51 [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:25:12]Read from MH i2c: E2 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 03 00 [08:25:12]MH_I2C_Read... [08:25:12]Read from MH i2c: E2 03 00 AE 2A 00 90 00 4C [08:25:12]RAPDU: 90 00 [08:25:12]wFMCommunicate OK [08:25:12]wFMCommunicate request_size=255 [08:25:12]MH_SAM_APDU [08:25: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6A 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DE 02 00 35 04 06 00 7D [08:25:12]Write to MH i2c: E2 02 01 AF 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6A 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DE 02 00 35 04 06 00 7D 00 00 99 [08:25:12]Write i2c OK [08:25:12]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 AF 2A 00 90 00 4D [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=10 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 02 02 05 1F 81 7D F3 37 [08:25:13]Write to MH i2c: E2 0D 00 B0 2A 80 0D 02 02 05 00 1F 81 7D F3 37 00 00 A5 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 03 00 B0 2A 00 90 00 4E [08:25:13]RAPDU: 90 00 [08:25:13]wFMCommunicate OK [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 0D 03 02 [08:25:13]Write to MH i2c: E2 08 00 B1 2A 80 0D 03 02 00 00 00 00 56 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 0B 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 0B 00 B1 2A 00 7A CB C9 9C 03 EE 1A 97 90 00 A3 [08:25:13]RAPDU: 7A CB C9 9C 03 EE 1A 97 90 00 [08:25:13]wFMCommunicate OK [08:25:13]SAM_PROTO_SignData done [08:25:13]FM_MakeSignedData done [08:25:13]CreateOFDProtocolMessage [08:25:13]wFMCommunicate request_size=4 [08:25:13]MH_SAM_APDU [08:25:13]CAPDU: 80 11 00 00 [08:25:13]Write to MH i2c: E2 08 00 B2 2A 80 11 00 00 00 00 00 00 56 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:13]Read from MH i2c: E2 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 17 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: E2 17 00 B2 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [08:25:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:25:13]wFMCommunicate OK [08:25:13]CreateOFDProtocolMessage done [08:25:13]OFDSenderStorePacket 188101 [08:25:13]StoreOFDPacket docnum=188101 [08:25:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 63 D5 07 01 44 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6A 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DE 02 00 35 04 06 00 7D 1F 81 7D F3 37 7A CB C9 9C 03 EE 1A 97 [08:25:13]CheckFolder [08:25:13]dirname=/storage/ofd_packets [08:25:13]CheckFolder done [08:25:13]ProducePacketName [08:25:13]name=ofd_packets/00188101 [08:25:13]NVStorageSaveData ofd_packets/00188101 [08:25:13]File name is /storage/ofd_packets/00188101 [08:25:13]Write 301 bytes [08:25:13]NVStorageSaveData done [08:25:13]OFDSenderStorePacket done [08:25:13]KKMCreateOFDPacket done [08:25:13]NVStorageSaveData kkm_last_timestamp [08:25:13]File name is /storage/kkm_last_timestamp [08:25:13]Write 4 bytes [08:25:13]NVStorageSaveData done [08:25:13]ExternCall_PrintAddStr [08:25:13]wPrintStart [08:25:13]Write to MH i2c: 01 00 00 B3 2A DD [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: 01 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: 01 07 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: 01 07 00 B3 2A 00 00 00 00 00 FF 0F F2 [08:25:13]RasterBufferAndPrint [08:25:13]line Счет N : (1)210153 [08:25:13]line ИНН: 02508201610067 [08:25:13]line Контрольно-Кассовый Чек [08:25:13]line ПРОДАЖА [08:25:13]line ТРК (МРК, ГНК) : 22 [08:25:13]line Товар: 2710124130 [08:25:13]line Аи-92-К-3 [08:25:13]line 14.950 * 66.90 [08:25:13]line = 1000.16 [08:25:13]line НДС 12% НСП 1% [08:25:13]line > о реализуемом товаре [08:25:13]line ИТОГО: 1000.16 [08:25:13]line НСП 1% : 8.85 [08:25:13]line НДС 12% : 106.21 [08:25:13]line Наличными: 0.00 [08:25:13]line Безнал.: 1000.16 [08:25:13]line Место: АЗС № 86 "Партнер Нефть" [08:25:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:25:13]line СНО: Общий режим [08:25:13]line Чек 130 22.10.2024 08:25 [08:25:13]line Смена: 461 ФФД: 1.0 [08:25:13]line ЗНМ: 0300000155 [08:25:13]line РНМ: 0000000000100030 [08:25:13]line Версия ККМ: 001 [08:25:13]line Платежная система: Mbank [08:25:13]line ФМ: 0000000000965340 [08:25:13]line ФД: 188101 [08:25:13]line ФПД: 137574269973303 [08:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188101&fm=137574269973303&tin=02508201610067®Number=0000000000100030&sum=100016 [08:25:13]written 0, free lines is 4095 [08:25:13]OFD Sender: Processing packet 188101 [packets to send 1062, broken 1061] [08:25:13]ProducePacketName [08:25:13]name=ofd_packets/00188101 [08:25:13]OFD Sender: To server: pG, [08:25:13]CommunicateWithHost lk.salyk.kg:30040 [08:25:13]ConnectInit lk.salyk.kg [08:25:13]Connected sock=11 [08:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 63 D5 07 01 44 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 6A 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DE 02 00 35 04 06 00 7D 1F 81 7D F3 37 7A CB C9 9C 03 EE 1A 97 [08:25:13]Write to MH i2c: 01 00 00 DC 2A 06 [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: 01 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: 01 07 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: 01 07 00 DC 2A 00 00 00 00 00 88 0C A1 [08:25:13]RasterBufferAndPrint [08:25:13]line [08:25:13]line [08:25:13]line [08:25:13]line [08:25:13]line [08:25:13]written 0, free lines is 3212 [08:25:13]MH_Cut [08:25:13]Write to MH i2c: D1 01 00 E3 2A 01 DF [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: D1 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: D1 01 00 [08:25:13]MH_I2C_Read... [08:25:13]Read from MH i2c: D1 01 00 E3 2A 00 DE [08:25:13]Write to MH i2c: 01 00 00 E4 2A 0E [08:25:13]Write i2c OK [08:25:13]MH_I2C_Read... [08:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F B8 47 00 37 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 39 36 35 33 34 30 10 04 04 00 C5 DE 02 00 F4 03 04 00 57 0B 17 67 B6 04 01 00 00 46 02 F9 0E 50 1E 88 B5 [08:25:14]CommunicateWithHost err = 0 [08:25:14]CheckOFDResponse [08:25:14]1017 (14) - 77093643461234 [08:25:14]1041 (16) - 0000000000965340 [08:25:14]1040 (4) - 188101 [08:25:14]1012 (4) - 22.10.2024 02:17 [08:25:14]1206 (1) - 0 [08:25:14]OFD Sender: Remove packet 188101 [08:25:14]ProducePacketName [08:25:14]name=ofd_packets/00188101 [08:25:14]NVStorageDeleteData [08:25:14]OFD Sender: No OFD packet to send [08:25:15]*** Cut start [08:25:15]*** Partial cut [08:25:15]*** CUTSNS_PIN = 1 [08:25:15]*** CUTSNS_PIN = 0 [08:25:15]*** Brake cut motor [08:25:15]Read from MH i2c: 01 [08:25:15]MH_I2C_Read... [08:25:15]*** Stop cut motor [08:25:15]*** Cut end [08:25:15]Read from MH i2c: 01 07 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: 01 07 00 E4 2A 00 00 00 00 00 FF 0F 23 [08:25:15]process_action close_receipt done [08:25:15]requested_data is exist [08:25:15]produce_requested_data [08:25:15]requested_item fm.sn is exist - process it [08:25:15]wFMCommunicate request_size=4 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 11 00 00 [08:25:15]Write to MH i2c: E2 08 00 E5 2A 80 11 00 00 00 00 00 00 89 [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 17 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 17 00 E5 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [08:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:25:15]wFMCommunicate OK [08:25:15]requested_item fd.num is exist - process it [08:25:15]SAM_PROTO_GetFieldsCounters [08:25:15]wFMCommunicate request_size=4 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 13 00 00 [08:25:15]Write to MH i2c: E2 08 00 E6 2A 80 13 00 00 00 00 00 00 8C [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 62 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 62 00 E6 2A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [08:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 82 00 00 00 5E 04 04 00 82 00 00 00 57 04 04 00 83 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:25:15]wFMCommunicate OK [08:25:15]SAM_PROTO_GetFieldsCounters done [08:25:15]requested_item shift.num is exist - process it [08:25:15]requested_item shift.opened is exist - process it [08:25:15]req_shift_opened [08:25:15]FM_GetShiftState [08:25:15]SAM_PROTO_GetShiftState [08:25:15]wFMCommunicate request_size=4 [08:25:15]MH_SAM_APDU [08:25:15]CAPDU: 80 13 01 00 [08:25:15]Write to MH i2c: E2 08 00 E7 2A 80 13 01 00 00 00 00 00 8E [08:25:15]Write i2c OK [08:25:15]MH_I2C_Read... [08:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:25:15]Read from MH i2c: E2 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 0E 00 [08:25:15]MH_I2C_Read... [08:25:15]Read from MH i2c: E2 0E 00 E7 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [08:25:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:25:15]wFMCommunicate OK [08:25:15]SAM_PROTO_GetShiftState done [08:25:15]FM_GetShiftState done [08:25:15]req_shift_opened done [08:25:15]requested_item shift.open_date is exist - process it [08:25:15]req_shift_open_date [08:25:15]req_shift_open_date done [08:25:15]produce_requested_data done [08:25:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188101,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:25:15]process_action_free close_receipt [08:25:15]json_value_free [08:25:15]json_value_free done [08:25:15]process_json_proto returns [08:25:15]Send response to host [08:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188101,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:25:15]free response buf [08:25:15]execute_script done [08:25:15]execute_script returns [08:25:15]free content buf [08:25:15]Sock 9.Close socket [08:25:15]Sock 9.Thread stoped [08:25:19]OFD Sender: No OFD packet to send [08:25:24]OFD Sender: No OFD packet to send [08:25:29]OFD Sender: No OFD packet to send [08:25:34]OFD Sender: No OFD packet to send [08:25:39]OFD Sender: No OFD packet to send [08:25:44]OFD Sender: No OFD packet to send [08:25:49]OFD Sender: No OFD packet to send [08:25:54]OFD Sender: No OFD packet to send [08:25:59]OFD Sender: No OFD packet to send [08:26:04]OFD Sender: No OFD packet to send [08:26:09]OFD Sender: No OFD packet to send [08:26:14]OFD Sender: No OFD packet to send [08:26:19]OFD Sender: No OFD packet to send [08:26:24]OFD Sender: No OFD packet to send [08:26:29]OFD Sender: No OFD packet to send [08:26:30]accept exits with 8 [08:26:30]New connection [08:26:30]New thread 3067198820 created [08:26:30]Thread 3067055460 joined [08:26:30]Waiting for new connection... [08:26:30] Sock 8.Parse request [08:26:30]Sock 8.Check first char [08:26:30]Sock 8.First char is OK [08:26:30]request: POST /json_proto HTTP/1.0 [08:26:30]Method: POST [08:26:30]URL: /json_proto [08:26:30]Method is POST - this is cgi request [08:26:30]url: /json_proto [08:26:30]query_string will be loaded in cgi processing [08:26:30]execute_cgi json_proto POST (null) [08:26:30]execute_cgi path=json_proto method=POST [08:26:30]POST find Content-Length [08:26:30]Host: 172.17.42.131:8080 [08:26:30]Content-Length: 754 [08:26:30]Content-Type: application/json [08:26:30] [08:26:30]POST finish read [08:26:30]Found Content-Length = 754 [08:26:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115630", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:30]execute_script... [08:26:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210154", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30115630", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:30]POST & json_proto [08:26:30]process_json_proto [08:26:30]json parsed OK: [08:26:30]protocol is kg_v1.0 [08:26:30]action value=close_receipt [08:26:30]process_action close_receipt [08:26:30]cmd_close_receipt [08:26:30]MH_GetDate [08:26:30]Write to MH i2c: F0 00 00 E8 2A 01 [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 09 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: F0 09 00 E8 2A 00 B9 61 17 67 A0 18 CA 66 8A [08:26:30]GetLastDocTimeStamp 1729585514 [08:26:30]current date 1729585593 [08:26:30]FM_GetShiftState [08:26:30]SAM_PROTO_GetShiftState [08:26:30]wFMCommunicate request_size=4 [08:26:30]MH_SAM_APDU [08:26:30]CAPDU: 80 13 01 00 [08:26:30]Write to MH i2c: E2 08 00 E9 2A 80 13 01 00 00 00 00 00 90 [08:26:30]Write i2c OK [08:26:30]MH_I2C_Read... [08:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:30]Read from MH i2c: E2 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 [08:26:30]MH_I2C_Read... [08:26:30]Read from MH i2c: E2 0E 00 E9 2A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [08:26:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:26:30]wFMCommunicate OK [08:26:30]SAM_PROTO_GetShiftState done [08:26:30]FM_GetShiftState done [08:26:30]opened in 1729556094 [08:26:30]opened+sec_in_day 1729642494 [08:26:30]quantity*price = 0 [08:26:30]sum+1 = 1 [08:26:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 131 22.10.2024 08:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30115630 ФМ: 0000000000965340 ФД: 188102 ФПД: 211640971470694 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082633&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188102&fm=211640971470694&tin=02508201610067®Number=0000000000100030&sum=0 [08:26:31]StoreToDocumentArchive [08:26:31]shift 461 fd 188102 [08:26:31]save to /storage/0461/doc_00188102 [08:26:31]save last doc name /storage/0461/doc_00188102 to /storage/kkm_last_doc_name [08:26:31]save OK [08:26:31]Clear old archive folders... [08:26:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:26:31]tlvbuf is B6F94490 [08:26:31]SAM_PROTO_ClearQueue [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 09 00 00 [08:26:31]Write to MH i2c: E2 08 00 F6 2A 80 09 00 00 00 00 00 00 92 [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 F6 2A 00 90 00 94 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]SAM_PROTO_ClearQueue done [08:26:31]KKMCreateOFDPacket [08:26:31]OFDProtocolAddRootSTLVToBuf [08:26:31]FM_MakeSignedData [08:26:31]FM_MakeSignedData [08:26:31]SAM_PROTO_SignData [08:26:31]wFMCommunicate request_size=4 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 01 02 [08:26:31]Write to MH i2c: E2 08 00 F7 2A 80 0D 01 02 00 00 00 00 9A [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:31]Read from MH i2c: E2 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 [08:26:31]MH_I2C_Read... [08:26:31]Read from MH i2c: E2 03 00 F7 2A 00 90 00 95 [08:26:31]RAPDU: 90 00 [08:26:31]wFMCommunicate OK [08:26:31]wFMCommunicate request_size=255 [08:26:31]MH_SAM_APDU [08:26:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B9 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DE 02 00 35 04 06 00 C0 [08:26:31]Write to MH i2c: E2 02 01 F8 2A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B9 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DE 02 00 35 04 06 00 C0 00 00 7C [08:26:31]Write i2c OK [08:26:31]MH_I2C_Read... [08:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:32]Read from MH i2c: E2 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 03 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 03 00 F8 2A 00 90 00 96 [08:26:32]RAPDU: 90 00 [08:26:32]wFMCommunicate OK [08:26:32]wFMCommunicate request_size=10 [08:26:32]MH_SAM_APDU [08:26:32]CAPDU: 80 0D 02 02 05 7C 80 EC A7 66 [08:26:32]Write to MH i2c: E2 0D 00 F9 2A 80 0D 02 02 05 00 7C 80 EC A7 66 00 00 9C [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:32]Read from MH i2c: E2 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 03 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 03 00 F9 2A 00 90 00 97 [08:26:32]RAPDU: 90 00 [08:26:32]wFMCommunicate OK [08:26:32]wFMCommunicate request_size=4 [08:26:32]MH_SAM_APDU [08:26:32]CAPDU: 80 0D 03 02 [08:26:32]Write to MH i2c: E2 08 00 FA 2A 80 0D 03 02 00 00 00 00 9F [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:32]Read from MH i2c: E2 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 0B 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 0B 00 FA 2A 00 41 E5 E8 43 1B 87 9B 00 90 00 2E [08:26:32]RAPDU: 41 E5 E8 43 1B 87 9B 00 90 00 [08:26:32]wFMCommunicate OK [08:26:32]SAM_PROTO_SignData done [08:26:32]FM_MakeSignedData done [08:26:32]CreateOFDProtocolMessage [08:26:32]wFMCommunicate request_size=4 [08:26:32]MH_SAM_APDU [08:26:32]CAPDU: 80 11 00 00 [08:26:32]Write to MH i2c: E2 08 00 FB 2A 80 11 00 00 00 00 00 00 9F [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:32]Read from MH i2c: E2 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 17 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: E2 17 00 FB 2A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [08:26:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:26:32]wFMCommunicate OK [08:26:32]CreateOFDProtocolMessage done [08:26:32]OFDSenderStorePacket 188102 [08:26:32]StoreOFDPacket docnum=188102 [08:26:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A8 27 07 01 73 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B9 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DE 02 00 35 04 06 00 C0 7C 80 EC A7 66 41 E5 E8 43 1B 87 9B 00 [08:26:32]CheckFolder [08:26:32]dirname=/storage/ofd_packets [08:26:32]CheckFolder done [08:26:32]ProducePacketName [08:26:32]name=ofd_packets/00188102 [08:26:32]NVStorageSaveData ofd_packets/00188102 [08:26:32]File name is /storage/ofd_packets/00188102 [08:26:32]Write 301 bytes [08:26:32]NVStorageSaveData done [08:26:32]OFDSenderStorePacket done [08:26:32]KKMCreateOFDPacket done [08:26:32]NVStorageSaveData kkm_last_timestamp [08:26:32]File name is /storage/kkm_last_timestamp [08:26:32]Write 4 bytes [08:26:32]NVStorageSaveData done [08:26:32]ExternCall_PrintAddStr [08:26:32]wPrintStart [08:26:32]Write to MH i2c: 01 00 00 FC 2A 26 [08:26:32]Write i2c OK [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 07 00 [08:26:32]MH_I2C_Read... [08:26:32]Read from MH i2c: 01 07 00 FC 2A 00 00 00 00 00 FF 0F 3B [08:26:32]RasterBufferAndPrint [08:26:32]line Счет N : (1)210154 [08:26:32]line ИНН: 02508201610067 [08:26:32]line Контрольно-Кассовый Чек [08:26:32]line ПРОДАЖА [08:26:32]line ТРК (МРК, ГНК) : 42 [08:26:32]line Товар: 2710124130 [08:26:32]line Аи-92-К-3 [08:26:32]line 30.000 * 0.00 [08:26:32]line = 0.00 [08:26:32]line НДС 12% НСП 1% [08:26:32]line > о реализуемом товаре [08:26:32]line ИТОГО: 0.00 [08:26:32]line НСП 1% : 0.00 [08:26:32]line НДС 12% : 0.00 [08:26:32]line Наличными: 0.00 [08:26:32]line Безнал.: 0.00 [08:26:32]line Место: АЗС № 86 "Партнер Нефть" [08:26:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:26:32]line СНО: Общий режим [08:26:32]line Чек 131 22.10.2024 08:26 [08:26:32]line Смена: 461 ФФД: 1.0 [08:26:32]line ЗНМ: 0300000155 [08:26:32]line РНМ: 0000000000100030 [08:26:32]line Версия ККМ: 001 [08:26:32]line Талоны: ТК ГПНА Online [08:26:32]line 30115630 [08:26:32]line ФМ: 0000000000965340 [08:26:32]line ФД: 188102 [08:26:32]line ФПД: 211640971470694 [08:26:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082633&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188102&fm=211640971470694&tin=02508201610067®Number=0000000000100030&sum=0 [08:26:32]OFD Sender: Processing packet 188102 [packets to send 1062, broken 1061] [08:26:32]ProducePacketName [08:26:32]name=ofd_packets/00188102 [08:26:32]OFD Sender: To server: pG, [08:26:32]CommunicateWithHost lk.salyk.kg:30040 [08:26:32]ConnectInit lk.salyk.kg [08:26:32]written 0, free lines is 4095 [08:26:32]Connected sock=10 [08:26:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A8 27 07 01 73 42 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 00 00 00 F4 03 04 00 B9 61 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DE 02 00 35 04 06 00 C0 7C 80 EC A7 66 41 E5 E8 43 1B 87 9B 00 [08:26:33]Write to MH i2c: 01 00 00 26 2B 51 [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: 01 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: 01 07 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: 01 07 00 26 2B 00 00 00 00 00 6F 0C D3 [08:26:33]RasterBufferAndPrint [08:26:33]line [08:26:33]line [08:26:33]line [08:26:33]line [08:26:33]line [08:26:33]written 0, free lines is 3188 [08:26:33]MH_Cut [08:26:33]Write to MH i2c: D1 01 00 2D 2B 01 2A [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: D1 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: D1 01 00 [08:26:33]MH_I2C_Read... [08:26:33]Read from MH i2c: D1 01 00 2D 2B 00 29 [08:26:33]Write to MH i2c: 01 00 00 2E 2B 59 [08:26:33]Write i2c OK [08:26:33]MH_I2C_Read... [08:26:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 A3 47 00 9E 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DE 02 00 F4 03 04 00 A7 0B 17 67 B6 04 01 00 00 BF 41 11 06 E3 33 EB 1B [08:26:33]CommunicateWithHost err = 0 [08:26:33]CheckOFDResponse [08:26:33]1017 (14) - 77093643461234 [08:26:33]1041 (16) - 0000000000965340 [08:26:33]1040 (4) - 188102 [08:26:33]1012 (4) - 22.10.2024 02:19 [08:26:33]1206 (1) - 0 [08:26:33]OFD Sender: Remove packet 188102 [08:26:33]ProducePacketName [08:26:33]name=ofd_packets/00188102 [08:26:33]NVStorageDeleteData [08:26:33]OFD Sender: No OFD packet to send [08:26:34]*** Cut start [08:26:34]*** Partial cut [08:26:34]*** CUTSNS_PIN = 1 [08:26:34]*** CUTSNS_PIN = 0 [08:26:34]*** Brake cut motor [08:26:34]Read from MH i2c: 01 [08:26:34]MH_I2C_Read... [08:26:34]*** Stop cut motor [08:26:34]*** Cut end [08:26:34]Read from MH i2c: 01 07 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: 01 07 00 2E 2B 00 00 00 00 00 FF 0F 6E [08:26:34]process_action close_receipt done [08:26:34]requested_data is exist [08:26:34]produce_requested_data [08:26:34]requested_item fm.sn is exist - process it [08:26:34]wFMCommunicate request_size=4 [08:26:34]MH_SAM_APDU [08:26:34]CAPDU: 80 11 00 00 [08:26:34]Write to MH i2c: E2 08 00 2F 2B 80 11 00 00 00 00 00 00 D4 [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:34]Read from MH i2c: E2 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 17 00 [08:26:34]MH_I2C_Read... [08:26:34]Read from MH i2c: E2 17 00 2F 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [08:26:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:26:34]wFMCommunicate OK [08:26:34]requested_item fd.num is exist - process it [08:26:34]SAM_PROTO_GetFieldsCounters [08:26:34]wFMCommunicate request_size=4 [08:26:34]MH_SAM_APDU [08:26:34]CAPDU: 80 13 00 00 [08:26:34]Write to MH i2c: E2 08 00 30 2B 80 13 00 00 00 00 00 00 D7 [08:26:34]Write i2c OK [08:26:34]MH_I2C_Read... [08:26:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:35]Read from MH i2c: E2 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 62 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 62 00 30 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 DB [08:26:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 83 00 00 00 5E 04 04 00 83 00 00 00 57 04 04 00 84 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:35]wFMCommunicate OK [08:26:35]SAM_PROTO_GetFieldsCounters done [08:26:35]requested_item shift.num is exist - process it [08:26:35]requested_item shift.opened is exist - process it [08:26:35]req_shift_opened [08:26:35]FM_GetShiftState [08:26:35]SAM_PROTO_GetShiftState [08:26:35]wFMCommunicate request_size=4 [08:26:35]MH_SAM_APDU [08:26:35]CAPDU: 80 13 01 00 [08:26:35]Write to MH i2c: E2 08 00 31 2B 80 13 01 00 00 00 00 00 D9 [08:26:35]Write i2c OK [08:26:35]MH_I2C_Read... [08:26:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:35]Read from MH i2c: E2 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 0E 00 [08:26:35]MH_I2C_Read... [08:26:35]Read from MH i2c: E2 0E 00 31 2B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [08:26:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:26:35]wFMCommunicate OK [08:26:35]SAM_PROTO_GetShiftState done [08:26:35]FM_GetShiftState done [08:26:35]req_shift_opened done [08:26:35]requested_item shift.open_date is exist - process it [08:26:35]req_shift_open_date [08:26:35]req_shift_open_date done [08:26:35]produce_requested_data done [08:26:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188102,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:26:35]process_action_free close_receipt [08:26:35]json_value_free [08:26:35]json_value_free done [08:26:35]process_json_proto returns [08:26:35]Send response to host [08:26:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188102,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:26:35]free response buf [08:26:35]execute_script done [08:26:35]execute_script returns [08:26:35]free content buf [08:26:35]Sock 8.Close socket [08:26:35]Sock 8.Thread stoped [08:26:38]OFD Sender: No OFD packet to send [08:26:43]OFD Sender: No OFD packet to send [08:26:48]OFD Sender: No OFD packet to send [08:26:53]OFD Sender: No OFD packet to send [08:26:58]OFD Sender: No OFD packet to send [08:27:03]OFD Sender: No OFD packet to send [08:27:08]OFD Sender: No OFD packet to send [08:27:13]OFD Sender: No OFD packet to send [08:27:18]OFD Sender: No OFD packet to send [08:27:23]OFD Sender: No OFD packet to send [08:27:28]OFD Sender: No OFD packet to send [08:27:33]OFD Sender: No OFD packet to send [08:27:38]OFD Sender: No OFD packet to send [08:27:43]OFD Sender: No OFD packet to send [08:27:44]accept exits with 9 [08:27:44]New connection [08:27:44]New thread 3067055460 created [08:27:44]Thread 3067198820 joined [08:27:44]Waiting for new connection... [08:27:44] Sock 9.Parse request [08:27:44]Sock 9.Check first char [08:27:44]Sock 9.First char is OK [08:27:44]request: POST /json_proto HTTP/1.0 [08:27:44]Method: POST [08:27:44]URL: /json_proto [08:27:44]Method is POST - this is cgi request [08:27:44]url: /json_proto [08:27:44]query_string will be loaded in cgi processing [08:27:44]execute_cgi json_proto POST (null) [08:27:44]execute_cgi path=json_proto method=POST [08:27:44]POST find Content-Length [08:27:44]Host: 172.17.42.131:8080 [08:27:44]Content-Length: 688 [08:27:44]Content-Type: application/json [08:27:44] [08:27:44]POST finish read [08:27:44]Found Content-Length = 688 [08:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:27:44]execute_script... [08:27: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)210156", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:27:44]POST & json_proto [08:27:44]process_json_proto [08:27:44]json parsed OK: [08:27:44]protocol is kg_v1.0 [08:27:44]action value=close_receipt [08:27:44]process_action close_receipt [08:27:44]cmd_close_receipt [08:27:44]MH_GetDate [08:27:44]Write to MH i2c: F0 00 00 32 2B 4C [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: F0 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: F0 09 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: F0 09 00 32 2B 00 03 62 17 67 A0 18 CA 66 20 [08:27:44]GetLastDocTimeStamp 1729585593 [08:27:44]current date 1729585667 [08:27:44]FM_GetShiftState [08:27:44]SAM_PROTO_GetShiftState [08:27:44]wFMCommunicate request_size=4 [08:27:44]MH_SAM_APDU [08:27:44]CAPDU: 80 13 01 00 [08:27:44]Write to MH i2c: E2 08 00 33 2B 80 13 01 00 00 00 00 00 DB [08:27:44]Write i2c OK [08:27:44]MH_I2C_Read... [08:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:44]Read from MH i2c: E2 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 0E 00 [08:27:44]MH_I2C_Read... [08:27:44]Read from MH i2c: E2 0E 00 33 2B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [08:27:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:27:44]wFMCommunicate OK [08:27:44]SAM_PROTO_GetShiftState done [08:27:44]FM_GetShiftState done [08:27:44]opened in 1729556094 [08:27:44]opened+sec_in_day 1729642494 [08:27:44]quantity*price = 100051 [08:27:44]sum+1 = 100052 [08:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 132 22.10.2024 08:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188103 ФПД: 131783401065713 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188103&fm=131783401065713&tin=02508201610067®Number=0000000000100030&sum=100000 [08:27:45]StoreToDocumentArchive [08:27:45]shift 461 fd 188103 [08:27:45]save to /storage/0461/doc_00188103 [08:27:45]save last doc name /storage/0461/doc_00188103 to /storage/kkm_last_doc_name [08:27:45]save OK [08:27:45]Clear old archive folders... [08:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:27:45]tlvbuf is 01BD21E0 [08:27:45]SAM_PROTO_ClearQueue [08:27:45]wFMCommunicate request_size=4 [08:27:45]MH_SAM_APDU [08:27:45]CAPDU: 80 09 00 00 [08:27:45]Write to MH i2c: E2 08 00 40 2B 80 09 00 00 00 00 00 00 DD [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 40 2B 00 90 00 DF [08:27:45]RAPDU: 90 00 [08:27:45]wFMCommunicate OK [08:27:45]SAM_PROTO_ClearQueue done [08:27:45]KKMCreateOFDPacket [08:27:45]OFDProtocolAddRootSTLVToBuf [08:27:45]FM_MakeSignedData [08:27:45]FM_MakeSignedData [08:27:45]SAM_PROTO_SignData [08:27:45]wFMCommunicate request_size=4 [08:27:45]MH_SAM_APDU [08:27:45]CAPDU: 80 0D 01 02 [08:27:45]Write to MH i2c: E2 08 00 41 2B 80 0D 01 02 00 00 00 00 E5 [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:45]Read from MH i2c: E2 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 [08:27:45]MH_I2C_Read... [08:27:45]Read from MH i2c: E2 03 00 41 2B 00 90 00 E0 [08:27:45]RAPDU: 90 00 [08:27:45]wFMCommunicate OK [08:27:45]wFMCommunicate request_size=255 [08:27:45]MH_SAM_APDU [08:27:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 84 00 00 00 F4 03 04 00 03 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DE 02 [08:27:45]Write to MH i2c: E2 02 01 42 2B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 84 00 00 00 F4 03 04 00 03 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DE 02 00 00 1E [08:27:45]Write i2c OK [08:27:45]MH_I2C_Read... [08:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:46]Read from MH i2c: E2 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 03 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 03 00 42 2B 00 90 00 E1 [08:27:46]RAPDU: 90 00 [08:27:46]wFMCommunicate OK [08:27:46]wFMCommunicate request_size=16 [08:27:46]MH_SAM_APDU [08:27:46]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 77 DB 36 CE CC F1 [08:27:46]Write to MH i2c: E2 13 00 43 2B 80 0D 02 02 0B 00 00 35 04 06 00 77 DB 36 CE CC F1 00 00 50 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:46]Read from MH i2c: E2 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 03 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 03 00 43 2B 00 90 00 E2 [08:27:46]RAPDU: 90 00 [08:27:46]wFMCommunicate OK [08:27:46]wFMCommunicate request_size=4 [08:27:46]MH_SAM_APDU [08:27:46]CAPDU: 80 0D 03 02 [08:27:46]Write to MH i2c: E2 08 00 44 2B 80 0D 03 02 00 00 00 00 EA [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:46]Read from MH i2c: E2 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 0B 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 0B 00 44 2B 00 74 D8 9E 12 7F DA 3C 33 90 00 AF [08:27:46]RAPDU: 74 D8 9E 12 7F DA 3C 33 90 00 [08:27:46]wFMCommunicate OK [08:27:46]SAM_PROTO_SignData done [08:27:46]FM_MakeSignedData done [08:27:46]CreateOFDProtocolMessage [08:27:46]wFMCommunicate request_size=4 [08:27:46]MH_SAM_APDU [08:27:46]CAPDU: 80 11 00 00 [08:27:46]Write to MH i2c: E2 08 00 45 2B 80 11 00 00 00 00 00 00 EA [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:46]Read from MH i2c: E2 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 17 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: E2 17 00 45 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [08:27:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:27:46]wFMCommunicate OK [08:27:46]CreateOFDProtocolMessage done [08:27:46]OFDSenderStorePacket 188103 [08:27:46]StoreOFDPacket docnum=188103 [08:27:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 25 6E 0D 01 8F C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 84 00 00 00 F4 03 04 00 03 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DE 02 00 35 04 06 00 77 DB 36 CE CC F1 74 D8 9E 12 7F DA 3C 33 [08:27:46]CheckFolder [08:27:46]dirname=/storage/ofd_packets [08:27:46]CheckFolder done [08:27:46]ProducePacketName [08:27:46]name=ofd_packets/00188103 [08:27:46]NVStorageSaveData ofd_packets/00188103 [08:27:46]File name is /storage/ofd_packets/00188103 [08:27:46]Write 307 bytes [08:27:46]NVStorageSaveData done [08:27:46]OFDSenderStorePacket done [08:27:46]KKMCreateOFDPacket done [08:27:46]NVStorageSaveData kkm_last_timestamp [08:27:46]File name is /storage/kkm_last_timestamp [08:27:46]Write 4 bytes [08:27:46]NVStorageSaveData done [08:27:46]ExternCall_PrintAddStr [08:27:46]wPrintStart [08:27:46]Write to MH i2c: 01 00 00 46 2B 71 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 07 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 07 00 46 2B 00 00 00 00 00 FF 0F 86 [08:27:46]RasterBufferAndPrint [08:27:46]line Счет N : (1)210156 [08:27:46]line ИНН: 02508201610067 [08:27:46]line Контрольно-Кассовый Чек [08:27:46]line ПРОДАЖА [08:27:46]line ТРК (МРК, ГНК) : 31 [08:27:46]line Товар: 2710194210 [08:27:46]line D-ENERGY ДТ-К-5 [08:27:46]line 12.960 * 77.20 [08:27:46]line = 1000.51 [08:27:46]line НДС 12% НСП 1% [08:27:46]line > о реализуемом товаре [08:27:46]line ОКРУГЛЕНИЕ: -0.51 [08:27:46]line ИТОГО: 1000.00 [08:27:46]line Внесено: 1000.00 [08:27:46]line СДАЧА: 0.00 [08:27:46]line НСП 1% : 8.85 [08:27:46]line НДС 12% : 106.25 [08:27:46]line Наличными: 1000.00 [08:27:46]line Безнал.: 0.00 [08:27:46]line Место: АЗС № 86 "Партнер Нефть" [08:27:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:27:46]line СНО: Общий режим [08:27:46]line Чек 132 22.10.2024 08:27 [08:27:46]line Смена: 461 ФФД: 1.0 [08:27:46]line ЗНМ: 0300000155 [08:27:46]line РНМ: 0000000000100030 [08:27:46]line Версия ККМ: 001 [08:27:46]line ФМ: 0000000000965340 [08:27:46]line ФД: 188103 [08:27:46]line ФПД: 131783401065713 [08:27:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082747&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188103&fm=131783401065713&tin=02508201610067®Number=0000000000100030&sum=100000 [08:27:46]written 0, free lines is 4095 [08:27:46]OFD Sender: Processing packet 188103 [packets to send 1062, broken 1061] [08:27:46]ProducePacketName [08:27:46]name=ofd_packets/00188103 [08:27:46]OFD Sender: To server: pG, [08:27:46]CommunicateWithHost lk.salyk.kg:30040 [08:27:46]ConnectInit lk.salyk.kg [08:27:46]Connected sock=10 [08:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 25 6E 0D 01 8F C3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 84 00 00 00 F4 03 04 00 03 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DE 02 00 35 04 06 00 77 DB 36 CE CC F1 74 D8 9E 12 7F DA 3C 33 [08:27:46]Write to MH i2c: 01 00 00 71 2B 9C [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 07 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: 01 07 00 71 2B 00 00 00 00 00 58 0C 07 [08:27:46]RasterBufferAndPrint [08:27:46]line [08:27:46]line [08:27:46]line [08:27:46]line [08:27:46]line [08:27:46]written 0, free lines is 3165 [08:27:46]MH_Cut [08:27:46]Write to MH i2c: D1 01 00 78 2B 01 75 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: D1 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: D1 01 00 [08:27:46]MH_I2C_Read... [08:27:46]Read from MH i2c: D1 01 00 78 2B 00 74 [08:27:46]Write to MH i2c: 01 00 00 79 2B A4 [08:27:46]Write i2c OK [08:27:46]MH_I2C_Read... [08:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2C 6C 47 00 F5 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DE 02 00 F4 03 04 00 F0 0B 17 67 B6 04 01 00 00 BC 08 59 C8 2F 96 D3 1E [08:27:46]CommunicateWithHost err = 0 [08:27:46]CheckOFDResponse [08:27:46]1017 (14) - 77093643461234 [08:27:46]1041 (16) - 0000000000965340 [08:27:46]1040 (4) - 188103 [08:27:46]1012 (4) - 22.10.2024 02:20 [08:27:46]1206 (1) - 0 [08:27:46]OFD Sender: Remove packet 188103 [08:27:46]ProducePacketName [08:27:46]name=ofd_packets/00188103 [08:27:46]NVStorageDeleteData [08:27:47]OFD Sender: No OFD packet to send [08:27:47]*** Cut start [08:27:47]*** Partial cut [08:27:47]*** CUTSNS_PIN = 1 [08:27:47]*** CUTSNS_PIN = 0 [08:27:48]*** Brake cut motor [08:27:48]Read from MH i2c: 01 [08:27:48]MH_I2C_Read... [08:27:48]*** Stop cut motor [08:27:48]*** Cut end [08:27:48]Read from MH i2c: 01 07 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: 01 07 00 79 2B 00 00 00 00 00 FF 0F B9 [08:27:48]process_action close_receipt done [08:27:48]requested_data is exist [08:27:48]produce_requested_data [08:27:48]requested_item fm.sn is exist - process it [08:27:48]wFMCommunicate request_size=4 [08:27:48]MH_SAM_APDU [08:27:48]CAPDU: 80 11 00 00 [08:27:48]Write to MH i2c: E2 08 00 7A 2B 80 11 00 00 00 00 00 00 1F [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 17 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 17 00 7A 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [08:27:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:27:48]wFMCommunicate OK [08:27:48]requested_item fd.num is exist - process it [08:27:48]SAM_PROTO_GetFieldsCounters [08:27:48]wFMCommunicate request_size=4 [08:27:48]MH_SAM_APDU [08:27:48]CAPDU: 80 13 00 00 [08:27:48]Write to MH i2c: E2 08 00 7B 2B 80 13 00 00 00 00 00 00 22 [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 62 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 62 00 7B 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 2A [08:27:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 84 00 00 00 5E 04 04 00 84 00 00 00 57 04 04 00 85 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:48]wFMCommunicate OK [08:27:48]SAM_PROTO_GetFieldsCounters done [08:27:48]requested_item shift.num is exist - process it [08:27:48]requested_item shift.opened is exist - process it [08:27:48]req_shift_opened [08:27:48]FM_GetShiftState [08:27:48]SAM_PROTO_GetShiftState [08:27:48]wFMCommunicate request_size=4 [08:27:48]MH_SAM_APDU [08:27:48]CAPDU: 80 13 01 00 [08:27:48]Write to MH i2c: E2 08 00 7C 2B 80 13 01 00 00 00 00 00 24 [08:27:48]Write i2c OK [08:27:48]MH_I2C_Read... [08:27:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:48]Read from MH i2c: E2 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 0E 00 [08:27:48]MH_I2C_Read... [08:27:48]Read from MH i2c: E2 0E 00 7C 2B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 19 [08:27:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:27:48]wFMCommunicate OK [08:27:48]SAM_PROTO_GetShiftState done [08:27:48]FM_GetShiftState done [08:27:48]req_shift_opened done [08:27:48]requested_item shift.open_date is exist - process it [08:27:48]req_shift_open_date [08:27:48]req_shift_open_date done [08:27:48]produce_requested_data done [08:27:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188103,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:27:48]process_action_free close_receipt [08:27:48]json_value_free [08:27:48]json_value_free done [08:27:48]process_json_proto returns [08:27:48]Send response to host [08:27:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188103,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:27:48]free response buf [08:27:48]execute_script done [08:27:48]execute_script returns [08:27:48]free content buf [08:27:48]Sock 9.Close socket [08:27:48]Sock 9.Thread stoped [08:27:52]OFD Sender: No OFD packet to send [08:27:57]OFD Sender: No OFD packet to send [08:28:02]OFD Sender: No OFD packet to send [08:28:07]OFD Sender: No OFD packet to send [08:28:12]OFD Sender: No OFD packet to send [08:28:17]OFD Sender: No OFD packet to send [08:28:22]OFD Sender: No OFD packet to send [08:28:27]OFD Sender: No OFD packet to send [08:28:32]OFD Sender: No OFD packet to send [08:28:37]OFD Sender: No OFD packet to send [08:28:42]OFD Sender: No OFD packet to send [08:28:47]OFD Sender: No OFD packet to send [08:28:52]OFD Sender: No OFD packet to send [08:28:57]OFD Sender: No OFD packet to send [08:29:02]OFD Sender: No OFD packet to send [08:29:07]OFD Sender: No OFD packet to send [08:29:12]OFD Sender: No OFD packet to send [08:29:13]accept exits with 8 [08:29:13]New connection [08:29:13]New thread 3067198820 created [08:29:13]Thread 3067055460 joined [08:29:13]Waiting for new connection... [08:29:13] Sock 8.Parse request [08:29:13]Sock 8.Check first char [08:29:13]Sock 8.First char is OK [08:29:13]request: POST /json_proto HTTP/1.0 [08:29:13]Method: POST [08:29:13]URL: /json_proto [08:29:13]Method is POST - this is cgi request [08:29:13]url: /json_proto [08:29:13]query_string will be loaded in cgi processing [08:29:13]execute_cgi json_proto POST (null) [08:29:13]execute_cgi path=json_proto method=POST [08:29:13]POST find Content-Length [08:29:13]Host: 172.17.42.131:8080 [08:29:13]Content-Length: 688 [08:29:13]Content-Type: application/json [08:29:13] [08:29:13]POST finish read [08:29:13]Found Content-Length = 688 [08:29:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 35.240, "sum" : 2720.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2720.00, "payments": [ { "type": 0, "sum" : 2720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:13]execute_script... [08:29: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)210155", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 35.240, "sum" : 2720.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2720.00, "payments": [ { "type": 0, "sum" : 2720.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:13]POST & json_proto [08:29:13]process_json_proto [08:29:13]json parsed OK: [08:29:13]protocol is kg_v1.0 [08:29:13]action value=close_receipt [08:29:13]process_action close_receipt [08:29:13]cmd_close_receipt [08:29:13]MH_GetDate [08:29:13]Write to MH i2c: F0 00 00 7D 2B 97 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: F0 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: F0 09 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: F0 09 00 7D 2B 00 5B 62 17 67 A0 18 CA 66 C3 [08:29:13]GetLastDocTimeStamp 1729585667 [08:29:13]current date 1729585755 [08:29:13]FM_GetShiftState [08:29:13]SAM_PROTO_GetShiftState [08:29:13]wFMCommunicate request_size=4 [08:29:13]MH_SAM_APDU [08:29:13]CAPDU: 80 13 01 00 [08:29:13]Write to MH i2c: E2 08 00 7E 2B 80 13 01 00 00 00 00 00 26 [08:29:13]Write i2c OK [08:29:13]MH_I2C_Read... [08:29:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:13]Read from MH i2c: E2 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 0E 00 [08:29:13]MH_I2C_Read... [08:29:13]Read from MH i2c: E2 0E 00 7E 2B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1B [08:29:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:29:13]wFMCommunicate OK [08:29:13]SAM_PROTO_GetShiftState done [08:29:13]FM_GetShiftState done [08:29:13]opened in 1729556094 [08:29:13]opened+sec_in_day 1729642494 [08:29:13]quantity*price = 272052 [08:29:13]sum+1 = 272054 [08:29:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 2720.00 Внесено: 3000.00 СДАЧА: 280.00 НСП 1% : 24.07 НДС 12% : 288.91 Наличными: 2720.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 133 22.10.2024 08:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188104 ФПД: 249518889969947 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082915&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188104&fm=249518889969947&tin=02508201610067®Number=0000000000100030&sum=272000 [08:29:14]StoreToDocumentArchive [08:29:14]shift 461 fd 188104 [08:29:14]save to /storage/0461/doc_00188104 [08:29:14]save last doc name /storage/0461/doc_00188104 to /storage/kkm_last_doc_name [08:29:14]save OK [08:29:14]Clear old archive folders... [08:29:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:29:14]tlvbuf is B6F944F0 [08:29:14]SAM_PROTO_ClearQueue [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 09 00 00 [08:29:14]Write to MH i2c: E2 08 00 8B 2B 80 09 00 00 00 00 00 00 28 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 8B 2B 00 90 00 2A [08:29:14]RAPDU: 90 00 [08:29:14]wFMCommunicate OK [08:29:14]SAM_PROTO_ClearQueue done [08:29:14]KKMCreateOFDPacket [08:29:14]OFDProtocolAddRootSTLVToBuf [08:29:14]FM_MakeSignedData [08:29:14]FM_MakeSignedData [08:29:14]SAM_PROTO_SignData [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 0D 01 02 [08:29:14]Write to MH i2c: E2 08 00 8C 2B 80 0D 01 02 00 00 00 00 30 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 8C 2B 00 90 00 2B [08:29:14]RAPDU: 90 00 [08:29:14]wFMCommunicate OK [08:29:14]wFMCommunicate request_size=255 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 89 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DE 02 [08:29:14]Write to MH i2c: E2 02 01 8D 2B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 89 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DE 02 00 00 46 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 8D 2B 00 90 00 2C [08:29:14]RAPDU: 90 00 [08:29:14]wFMCommunicate OK [08:29:14]wFMCommunicate request_size=16 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E2 EF A4 CD 29 1B [08:29:14]Write to MH i2c: E2 13 00 8E 2B 80 0D 02 02 0B 00 00 35 04 06 00 E2 EF A4 CD 29 1B 00 00 0E [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 03 00 8E 2B 00 90 00 2D [08:29:14]RAPDU: 90 00 [08:29:14]wFMCommunicate OK [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 0D 03 02 [08:29:14]Write to MH i2c: E2 08 00 8F 2B 80 0D 03 02 00 00 00 00 35 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 0B 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 0B 00 8F 2B 00 B2 29 A5 13 05 AD FE 61 90 00 DA [08:29:14]RAPDU: B2 29 A5 13 05 AD FE 61 90 00 [08:29:14]wFMCommunicate OK [08:29:14]SAM_PROTO_SignData done [08:29:14]FM_MakeSignedData done [08:29:14]CreateOFDProtocolMessage [08:29:14]wFMCommunicate request_size=4 [08:29:14]MH_SAM_APDU [08:29:14]CAPDU: 80 11 00 00 [08:29:14]Write to MH i2c: E2 08 00 90 2B 80 11 00 00 00 00 00 00 35 [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:14]Read from MH i2c: E2 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 17 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: E2 17 00 90 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [08:29:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:14]wFMCommunicate OK [08:29:14]CreateOFDProtocolMessage done [08:29:14]OFDSenderStorePacket 188104 [08:29:14]StoreOFDPacket docnum=188104 [08:29:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F3 CA 0D 01 95 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 89 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DE 02 00 35 04 06 00 E2 EF A4 CD 29 1B B2 29 A5 13 05 AD FE 61 [08:29:14]CheckFolder [08:29:14]dirname=/storage/ofd_packets [08:29:14]CheckFolder done [08:29:14]ProducePacketName [08:29:14]name=ofd_packets/00188104 [08:29:14]NVStorageSaveData ofd_packets/00188104 [08:29:14]File name is /storage/ofd_packets/00188104 [08:29:14]Write 307 bytes [08:29:14]NVStorageSaveData done [08:29:14]OFDSenderStorePacket done [08:29:14]KKMCreateOFDPacket done [08:29:14]NVStorageSaveData kkm_last_timestamp [08:29:14]File name is /storage/kkm_last_timestamp [08:29:14]Write 4 bytes [08:29:14]NVStorageSaveData done [08:29:14]ExternCall_PrintAddStr [08:29:14]wPrintStart [08:29:14]Write to MH i2c: 01 00 00 91 2B BC [08:29:14]Write i2c OK [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 07 00 [08:29:14]MH_I2C_Read... [08:29:14]Read from MH i2c: 01 07 00 91 2B 00 00 00 00 00 FF 0F D1 [08:29:14]RasterBufferAndPrint [08:29:14]line Счет N : (1)210155 [08:29:14]line ИНН: 02508201610067 [08:29:14]line Контрольно-Кассовый Чек [08:29:14]line ПРОДАЖА [08:29:14]line ТРК (МРК, ГНК) : 11 [08:29:14]line Товар: 2710194210 [08:29:14]line D-ENERGY ДТ-К-5 [08:29:14]line 35.240 * 77.20 [08:29:14]line = 2720.53 [08:29:14]line НДС 12% НСП 1% [08:29:14]line > о реализуемом товаре [08:29:14]line ОКРУГЛЕНИЕ: -0.53 [08:29:14]line ИТОГО: 2720.00 [08:29:14]line Внесено: 3000.00 [08:29:14]line СДАЧА: 280.00 [08:29:14]line НСП 1% : 24.07 [08:29:14]line НДС 12% : 288.91 [08:29:14]line Наличными: 2720.00 [08:29:14]line Безнал.: 0.00 [08:29:14]line Место: АЗС № 86 "Партнер Нефть" [08:29:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:29:14]line СНО: Общий режим [08:29:14]line Чек 133 22.10.2024 08:29 [08:29:14]line Смена: 461 ФФД: 1.0 [08:29:14]line ЗНМ: 0300000155 [08:29:14]line РНМ: 0000000000100030 [08:29:14]line Версия ККМ: 001 [08:29:14]line ФМ: 0000000000965340 [08:29:14]line ФД: 188104 [08:29:14]line ФПД: 249518889969947 [08:29:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082915&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188104&fm=249518889969947&tin=02508201610067®Number=0000000000100030&sum=272000 [08:29:14]written 0, free lines is 4095 [08:29:14]OFD Sender: Processing packet 188104 [packets to send 1062, broken 1061] [08:29:14]ProducePacketName [08:29:14]name=ofd_packets/00188104 [08:29:14]OFD Sender: To server: pG, [08:29:14]CommunicateWithHost lk.salyk.kg:30040 [08:29:14]ConnectInit lk.salyk.kg [08:29:15]Connected sock=10 [08:29:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F3 CA 0D 01 95 9C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 89 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B5 26 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 26 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DB 70 00 00 00 00 07 04 06 00 80 26 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 85 00 00 00 F4 03 04 00 5B 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DE 02 00 35 04 06 00 E2 EF A4 CD 29 1B B2 29 A5 13 05 AD FE 61 [08:29:15]Write to MH i2c: 01 00 00 BC 2B E7 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 07 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: 01 07 00 BC 2B 00 00 00 00 00 60 0C 5A [08:29:15]RasterBufferAndPrint [08:29:15]line [08:29:15]line [08:29:15]line [08:29:15]line [08:29:15]line [08:29:15]written 0, free lines is 3173 [08:29:15]MH_Cut [08:29:15]Write to MH i2c: D1 01 00 C3 2B 01 C0 [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: D1 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: D1 01 00 [08:29:15]MH_I2C_Read... [08:29:15]Read from MH i2c: D1 01 00 C3 2B 00 BF [08:29:15]Write to MH i2c: 01 00 00 C4 2B EF [08:29:15]Write i2c OK [08:29:15]MH_I2C_Read... [08:29:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DD 34 47 00 53 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DE 02 00 F4 03 04 00 49 0C 17 67 B6 04 01 00 00 D2 A7 E0 2A D8 85 9E 1C [08:29:15]CommunicateWithHost err = 0 [08:29:15]CheckOFDResponse [08:29:15]1017 (14) - 77093643461234 [08:29:15]1041 (16) - 0000000000965340 [08:29:15]1040 (4) - 188104 [08:29:15]1012 (4) - 22.10.2024 02:22 [08:29:15]1206 (1) - 0 [08:29:15]OFD Sender: Remove packet 188104 [08:29:15]ProducePacketName [08:29:15]name=ofd_packets/00188104 [08:29:15]NVStorageDeleteData [08:29:15]OFD Sender: No OFD packet to send [08:29:16]*** Cut start [08:29:16]*** Partial cut [08:29:16]*** CUTSNS_PIN = 1 [08:29:16]*** CUTSNS_PIN = 0 [08:29:16]*** Brake cut motor [08:29:17]Read from MH i2c: 01 [08:29:17]MH_I2C_Read... [08:29:17]*** Stop cut motor [08:29:17]*** Cut end [08:29:17]Read from MH i2c: 01 07 00 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: 01 07 00 C4 2B 00 00 00 00 00 FF 0F 04 [08:29:17]process_action close_receipt done [08:29:17]requested_data is exist [08:29:17]produce_requested_data [08:29:17]requested_item fm.sn is exist - process it [08:29:17]wFMCommunicate request_size=4 [08:29:17]MH_SAM_APDU [08:29:17]CAPDU: 80 11 00 00 [08:29:17]Write to MH i2c: E2 08 00 C5 2B 80 11 00 00 00 00 00 00 6A [08:29:17]Write i2c OK [08:29:17]MH_I2C_Read... [08:29:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:17]Read from MH i2c: E2 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: E2 17 00 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: E2 17 00 C5 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [08:29:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:17]wFMCommunicate OK [08:29:17]requested_item fd.num is exist - process it [08:29:17]SAM_PROTO_GetFieldsCounters [08:29:17]wFMCommunicate request_size=4 [08:29:17]MH_SAM_APDU [08:29:17]CAPDU: 80 13 00 00 [08:29:17]Write to MH i2c: E2 08 00 C6 2B 80 13 00 00 00 00 00 00 6D [08:29:17]Write i2c OK [08:29:17]MH_I2C_Read... [08:29:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:17]Read from MH i2c: E2 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: E2 62 00 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: E2 62 00 C6 2B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 79 [08:29:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 85 00 00 00 5E 04 04 00 85 00 00 00 57 04 04 00 86 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:17]wFMCommunicate OK [08:29:17]SAM_PROTO_GetFieldsCounters done [08:29:17]requested_item shift.num is exist - process it [08:29:17]requested_item shift.opened is exist - process it [08:29:17]req_shift_opened [08:29:17]FM_GetShiftState [08:29:17]SAM_PROTO_GetShiftState [08:29:17]wFMCommunicate request_size=4 [08:29:17]MH_SAM_APDU [08:29:17]CAPDU: 80 13 01 00 [08:29:17]Write to MH i2c: E2 08 00 C7 2B 80 13 01 00 00 00 00 00 6F [08:29:17]Write i2c OK [08:29:17]MH_I2C_Read... [08:29:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:17]Read from MH i2c: E2 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: E2 0E 00 [08:29:17]MH_I2C_Read... [08:29:17]Read from MH i2c: E2 0E 00 C7 2B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 64 [08:29:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:29:17]wFMCommunicate OK [08:29:17]SAM_PROTO_GetShiftState done [08:29:17]FM_GetShiftState done [08:29:17]req_shift_opened done [08:29:17]requested_item shift.open_date is exist - process it [08:29:17]req_shift_open_date [08:29:17]req_shift_open_date done [08:29:17]produce_requested_data done [08:29:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188104,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:29:17]process_action_free close_receipt [08:29:17]json_value_free [08:29:17]json_value_free done [08:29:17]process_json_proto returns [08:29:17]Send response to host [08:29:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188104,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:29:17]free response buf [08:29:17]execute_script done [08:29:17]execute_script returns [08:29:17]free content buf [08:29:17]Sock 8.Close socket [08:29:17]Sock 8.Thread stoped [08:29:21]OFD Sender: No OFD packet to send [08:29:26]OFD Sender: No OFD packet to send [08:29:31]OFD Sender: No OFD packet to send [08:29:36]OFD Sender: No OFD packet to send [08:29:41]OFD Sender: No OFD packet to send [08:29:42]accept exits with 9 [08:29:42]New connection [08:29:42]New thread 3067055460 created [08:29:42]Thread 3067198820 joined [08:29:42]Waiting for new connection... [08:29:42] Sock 9.Parse request [08:29:42]Sock 9.Check first char [08:29:42]Sock 9.First char is OK [08:29:42]request: POST /json_proto HTTP/1.0 [08:29:42]Method: POST [08:29:42]URL: /json_proto [08:29:42]Method is POST - this is cgi request [08:29:42]url: /json_proto [08:29:42]query_string will be loaded in cgi processing [08:29:42]execute_cgi json_proto POST (null) [08:29:42]execute_cgi path=json_proto method=POST [08:29:42]POST find Content-Length [08:29:42]Host: 172.17.42.131:8080 [08:29:42]Content-Length: 682 [08:29:42]Content-Type: application/json [08:29:42] [08:29:42]POST finish read [08:29:42]Found Content-Length = 682 [08:29:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:42]execute_script... [08:29: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)210157", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:42]POST & json_proto [08:29:42]process_json_proto [08:29:42]json parsed OK: [08:29:42]protocol is kg_v1.0 [08:29:42]action value=close_receipt [08:29:42]process_action close_receipt [08:29:42]cmd_close_receipt [08:29:42]MH_GetDate [08:29:42]Write to MH i2c: F0 00 00 C8 2B E2 [08:29:42]Write i2c OK [08:29:42]MH_I2C_Read... [08:29:42]Read from MH i2c: F0 [08:29:42]MH_I2C_Read... [08:29:42]Read from MH i2c: F0 09 00 [08:29:42]MH_I2C_Read... [08:29:42]Read from MH i2c: F0 09 00 C8 2B 00 79 62 17 67 A0 18 CA 66 2C [08:29:42]GetLastDocTimeStamp 1729585755 [08:29:42]current date 1729585785 [08:29:42]FM_GetShiftState [08:29:42]SAM_PROTO_GetShiftState [08:29:42]wFMCommunicate request_size=4 [08:29:42]MH_SAM_APDU [08:29:42]CAPDU: 80 13 01 00 [08:29:42]Write to MH i2c: E2 08 00 C9 2B 80 13 01 00 00 00 00 00 71 [08:29:42]Write i2c OK [08:29:42]MH_I2C_Read... [08:29:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:42]Read from MH i2c: E2 [08:29:42]MH_I2C_Read... [08:29:42]Read from MH i2c: E2 0E 00 [08:29:42]MH_I2C_Read... [08:29:42]Read from MH i2c: E2 0E 00 C9 2B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 66 [08:29:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:29:42]wFMCommunicate OK [08:29:42]SAM_PROTO_GetShiftState done [08:29:42]FM_GetShiftState done [08:29:42]opened in 1729556094 [08:29:42]opened+sec_in_day 1729642494 [08:29:42]quantity*price = 100015 [08:29:42]sum+1 = 100017 [08:29:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 134 22.10.2024 08:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188105 ФПД: 243477343643215 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188105&fm=243477343643215&tin=02508201610067®Number=0000000000100030&sum=100000 [08:29:43]StoreToDocumentArchive [08:29:43]shift 461 fd 188105 [08:29:43]save to /storage/0461/doc_00188105 [08:29:43]save last doc name /storage/0461/doc_00188105 to /storage/kkm_last_doc_name [08:29:43]save OK [08:29:43]Clear old archive folders... [08:29:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:43]tlvbuf is B6DE4BA0 [08:29:43]SAM_PROTO_ClearQueue [08:29:43]wFMCommunicate request_size=4 [08:29:43]MH_SAM_APDU [08:29:43]CAPDU: 80 09 00 00 [08:29:43]Write to MH i2c: E2 08 00 D6 2B 80 09 00 00 00 00 00 00 73 [08:29:43]Write i2c OK [08:29:43]MH_I2C_Read... [08:29:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:43]Read from MH i2c: E2 [08:29:43]MH_I2C_Read... [08:29:43]Read from MH i2c: E2 03 00 [08:29:43]MH_I2C_Read... [08:29:43]Read from MH i2c: E2 03 00 D6 2B 00 90 00 75 [08:29:43]RAPDU: 90 00 [08:29:43]wFMCommunicate OK [08:29:43]SAM_PROTO_ClearQueue done [08:29:43]KKMCreateOFDPacket [08:29:43]OFDProtocolAddRootSTLVToBuf [08:29:43]FM_MakeSignedData [08:29:43]FM_MakeSignedData [08:29:43]SAM_PROTO_SignData [08:29:43]wFMCommunicate request_size=4 [08:29:43]MH_SAM_APDU [08:29:43]CAPDU: 80 0D 01 02 [08:29:43]Write to MH i2c: E2 08 00 D7 2B 80 0D 01 02 00 00 00 00 7B [08:29:43]Write i2c OK [08:29:43]MH_I2C_Read... [08:29:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:43]Read from MH i2c: E2 [08:29:43]MH_I2C_Read... [08:29:43]Read from MH i2c: E2 03 00 [08:29:43]MH_I2C_Read... [08:29:43]Read from MH i2c: E2 03 00 D7 2B 00 90 00 76 [08:29:43]RAPDU: 90 00 [08:29:43]wFMCommunicate OK [08:29:43]wFMCommunicate request_size=255 [08:29:43]MH_SAM_APDU [08:29: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 79 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DE 02 00 35 04 06 00 DD [08:29:43]Write to MH i2c: E2 02 01 D8 2B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 79 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DE 02 00 35 04 06 00 DD 00 00 1B [08:29:43]Write i2c OK [08:29:43]MH_I2C_Read... [08:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:44]Read from MH i2c: E2 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 03 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 03 00 D8 2B 00 90 00 77 [08:29:44]RAPDU: 90 00 [08:29:44]wFMCommunicate OK [08:29:44]wFMCommunicate request_size=10 [08:29:44]MH_SAM_APDU [08:29:44]CAPDU: 80 0D 02 02 05 70 FC 94 26 4F [08:29:44]Write to MH i2c: E2 0D 00 D9 2B 80 0D 02 02 05 00 70 FC 94 26 4F 00 00 FD [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:44]Read from MH i2c: E2 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 03 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 03 00 D9 2B 00 90 00 78 [08:29:44]RAPDU: 90 00 [08:29:44]wFMCommunicate OK [08:29:44]wFMCommunicate request_size=4 [08:29:44]MH_SAM_APDU [08:29:44]CAPDU: 80 0D 03 02 [08:29:44]Write to MH i2c: E2 08 00 DA 2B 80 0D 03 02 00 00 00 00 80 [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:44]Read from MH i2c: E2 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 0B 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 0B 00 DA 2B 00 B2 40 2E 43 39 6E CD B7 90 00 0F [08:29:44]RAPDU: B2 40 2E 43 39 6E CD B7 90 00 [08:29:44]wFMCommunicate OK [08:29:44]SAM_PROTO_SignData done [08:29:44]FM_MakeSignedData done [08:29:44]CreateOFDProtocolMessage [08:29:44]wFMCommunicate request_size=4 [08:29:44]MH_SAM_APDU [08:29:44]CAPDU: 80 11 00 00 [08:29:44]Write to MH i2c: E2 08 00 DB 2B 80 11 00 00 00 00 00 00 80 [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:44]Read from MH i2c: E2 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 17 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: E2 17 00 DB 2B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [08:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:44]wFMCommunicate OK [08:29:44]CreateOFDProtocolMessage done [08:29:44]OFDSenderStorePacket 188105 [08:29:44]StoreOFDPacket docnum=188105 [08:29:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 86 07 01 3A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 79 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DE 02 00 35 04 06 00 DD 70 FC 94 26 4F B2 40 2E 43 39 6E CD B7 [08:29:44]CheckFolder [08:29:44]dirname=/storage/ofd_packets [08:29:44]CheckFolder done [08:29:44]ProducePacketName [08:29:44]name=ofd_packets/00188105 [08:29:44]NVStorageSaveData ofd_packets/00188105 [08:29:44]File name is /storage/ofd_packets/00188105 [08:29:44]Write 301 bytes [08:29:44]NVStorageSaveData done [08:29:44]OFDSenderStorePacket done [08:29:44]KKMCreateOFDPacket done [08:29:44]NVStorageSaveData kkm_last_timestamp [08:29:44]File name is /storage/kkm_last_timestamp [08:29:44]Write 4 bytes [08:29:44]NVStorageSaveData done [08:29:44]ExternCall_PrintAddStr [08:29:44]wPrintStart [08:29:44]Write to MH i2c: 01 00 00 DC 2B 07 [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: 01 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: 01 07 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: 01 07 00 DC 2B 00 00 00 00 00 FF 0F 1C [08:29:44]RasterBufferAndPrint [08:29:44]line Счет N : (1)210157 [08:29:44]line ИНН: 02508201610067 [08:29:44]line Контрольно-Кассовый Чек [08:29:44]line ПРОДАЖА [08:29:44]line ТРК (МРК, ГНК) : 42 [08:29:44]line Товар: 2710124130 [08:29:44]line Аи-92-К-3 [08:29:44]line 14.950 * 66.90 [08:29:44]line = 1000.16 [08:29:44]line НДС 12% НСП 1% [08:29:44]line > о реализуемом товаре [08:29:44]line ОКРУГЛЕНИЕ: -0.16 [08:29:44]line ИТОГО: 1000.00 [08:29:44]line Внесено: 1000.00 [08:29:44]line СДАЧА: 0.00 [08:29:44]line НСП 1% : 8.85 [08:29:44]line НДС 12% : 106.21 [08:29:44]line Наличными: 1000.00 [08:29:44]line Безнал.: 0.00 [08:29:44]line Место: АЗС № 86 "Партнер Нефть" [08:29:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:29:44]line СНО: Общий режим [08:29:44]line Чек 134 22.10.2024 08:29 [08:29:44]line Смена: 461 ФФД: 1.0 [08:29:44]line ЗНМ: 0300000155 [08:29:44]line РНМ: 0000000000100030 [08:29:44]line Версия ККМ: 001 [08:29:44]line ФМ: 0000000000965340 [08:29:44]line ФД: 188105 [08:29:44]line ФПД: 243477343643215 [08:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082945&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188105&fm=243477343643215&tin=02508201610067®Number=0000000000100030&sum=100000 [08:29:44]written 0, free lines is 4095 [08:29:44]OFD Sender: Processing packet 188105 [packets to send 1062, broken 1061] [08:29:44]ProducePacketName [08:29:44]name=ofd_packets/00188105 [08:29:44]OFD Sender: To server: pG, [08:29:44]CommunicateWithHost lk.salyk.kg:30040 [08:29:44]ConnectInit lk.salyk.kg [08:29:44]Connected sock=10 [08:29:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 86 07 01 3A 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 86 00 00 00 F4 03 04 00 79 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DE 02 00 35 04 06 00 DD 70 FC 94 26 4F B2 40 2E 43 39 6E CD B7 [08:29:44]Write to MH i2c: 01 00 00 07 2C 33 [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: 01 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: 01 07 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: 01 07 00 07 2C 00 00 00 00 00 5C 0C A2 [08:29:44]RasterBufferAndPrint [08:29:44]line [08:29:44]line [08:29:44]line [08:29:44]line [08:29:44]line [08:29:44]written 0, free lines is 3167 [08:29:44]MH_Cut [08:29:44]Write to MH i2c: D1 01 00 0E 2C 01 0C [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: D1 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: D1 01 00 [08:29:44]MH_I2C_Read... [08:29:44]Read from MH i2c: D1 01 00 0E 2C 00 0B [08:29:44]Write to MH i2c: 01 00 00 0F 2C 3B [08:29:44]Write i2c OK [08:29:44]MH_I2C_Read... [08:29:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 68 47 00 64 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 39 36 35 33 34 30 10 04 04 00 C9 DE 02 00 F4 03 04 00 66 0C 17 67 B6 04 01 00 00 41 5E 5E 4E EE 50 15 9C [08:29:44]CommunicateWithHost err = 0 [08:29:44]CheckOFDResponse [08:29:44]1017 (14) - 77093643461234 [08:29:44]1041 (16) - 0000000000965340 [08:29:44]1040 (4) - 188105 [08:29:44]1012 (4) - 22.10.2024 02:22 [08:29:44]1206 (1) - 0 [08:29:44]OFD Sender: Remove packet 188105 [08:29:44]ProducePacketName [08:29:44]name=ofd_packets/00188105 [08:29:44]NVStorageDeleteData [08:29:45]OFD Sender: No OFD packet to send [08:29:45]*** Cut start [08:29:45]*** Partial cut [08:29:45]*** CUTSNS_PIN = 1 [08:29:45]*** CUTSNS_PIN = 0 [08:29:46]*** Brake cut motor [08:29:46]Read from MH i2c: 01 [08:29:46]MH_I2C_Read... [08:29:46]*** Stop cut motor [08:29:46]*** Cut end [08:29:46]Read from MH i2c: 01 07 00 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: 01 07 00 0F 2C 00 00 00 00 00 FF 0F 50 [08:29:46]process_action close_receipt done [08:29:46]requested_data is exist [08:29:46]produce_requested_data [08:29:46]requested_item fm.sn is exist - process it [08:29:46]wFMCommunicate request_size=4 [08:29:46]MH_SAM_APDU [08:29:46]CAPDU: 80 11 00 00 [08:29:46]Write to MH i2c: E2 08 00 10 2C 80 11 00 00 00 00 00 00 B6 [08:29:46]Write i2c OK [08:29:46]MH_I2C_Read... [08:29:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:46]Read from MH i2c: E2 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 17 00 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 17 00 10 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [08:29:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:46]wFMCommunicate OK [08:29:46]requested_item fd.num is exist - process it [08:29:46]SAM_PROTO_GetFieldsCounters [08:29:46]wFMCommunicate request_size=4 [08:29:46]MH_SAM_APDU [08:29:46]CAPDU: 80 13 00 00 [08:29:46]Write to MH i2c: E2 08 00 11 2C 80 13 00 00 00 00 00 00 B9 [08:29:46]Write i2c OK [08:29:46]MH_I2C_Read... [08:29:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:46]Read from MH i2c: E2 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 62 00 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 62 00 11 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 C9 [08:29:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 86 00 00 00 5E 04 04 00 86 00 00 00 57 04 04 00 87 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:46]wFMCommunicate OK [08:29:46]SAM_PROTO_GetFieldsCounters done [08:29:46]requested_item shift.num is exist - process it [08:29:46]requested_item shift.opened is exist - process it [08:29:46]req_shift_opened [08:29:46]FM_GetShiftState [08:29:46]SAM_PROTO_GetShiftState [08:29:46]wFMCommunicate request_size=4 [08:29:46]MH_SAM_APDU [08:29:46]CAPDU: 80 13 01 00 [08:29:46]Write to MH i2c: E2 08 00 12 2C 80 13 01 00 00 00 00 00 BB [08:29:46]Write i2c OK [08:29:46]MH_I2C_Read... [08:29:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:46]Read from MH i2c: E2 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 0E 00 [08:29:46]MH_I2C_Read... [08:29:46]Read from MH i2c: E2 0E 00 12 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B0 [08:29:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:29:46]wFMCommunicate OK [08:29:46]SAM_PROTO_GetShiftState done [08:29:46]FM_GetShiftState done [08:29:46]req_shift_opened done [08:29:46]requested_item shift.open_date is exist - process it [08:29:46]req_shift_open_date [08:29:46]req_shift_open_date done [08:29:46]produce_requested_data done [08:29:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188105,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:29:46]process_action_free close_receipt [08:29:46]json_value_free [08:29:46]json_value_free done [08:29:46]process_json_proto returns [08:29:46]Send response to host [08:29:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188105,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:29:46]free response buf [08:29:46]execute_script done [08:29:46]execute_script returns [08:29:46]free content buf [08:29:46]Sock 9.Close socket [08:29:46]Sock 9.Thread stoped [08:29:50]OFD Sender: No OFD packet to send [08:29:52]accept exits with 8 [08:29:52]New connection [08:29:52]New thread 3067198820 created [08:29:52]Thread 3067055460 joined [08:29:52]Waiting for new connection... [08:29:52] Sock 8.Parse request [08:29:52]Sock 8.Check first char [08:29:52]Sock 8.First char is OK [08:29:52]request: POST /json_proto HTTP/1.0 [08:29:52]Method: POST [08:29:52]URL: /json_proto [08:29:52]Method is POST - this is cgi request [08:29:52]url: /json_proto [08:29:52]query_string will be loaded in cgi processing [08:29:52]execute_cgi json_proto POST (null) [08:29:52]execute_cgi path=json_proto method=POST [08:29:52]POST find Content-Length [08:29:52]Host: 172.17.42.131:8080 [08:29:52]Content-Length: 677 [08:29:52]Content-Type: application/json [08:29:52] [08:29:52]POST finish read [08:29:52]Found Content-Length = 677 [08:29:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.130, "sum" : 410.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:52]execute_script... [08:29: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)210158", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.130, "sum" : 410.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 410.00, "total" : 410.00, "payments": [ { "type": 0, "sum" : 410.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:29:52]POST & json_proto [08:29:52]process_json_proto [08:29:52]json parsed OK: [08:29:52]protocol is kg_v1.0 [08:29:52]action value=close_receipt [08:29:52]process_action close_receipt [08:29:52]cmd_close_receipt [08:29:52]MH_GetDate [08:29:52]Write to MH i2c: F0 00 00 13 2C 2E [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: F0 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: F0 09 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: F0 09 00 13 2C 00 83 62 17 67 A0 18 CA 66 82 [08:29:52]GetLastDocTimeStamp 1729585785 [08:29:52]current date 1729585795 [08:29:52]FM_GetShiftState [08:29:52]SAM_PROTO_GetShiftState [08:29:52]wFMCommunicate request_size=4 [08:29:52]MH_SAM_APDU [08:29:52]CAPDU: 80 13 01 00 [08:29:52]Write to MH i2c: E2 08 00 14 2C 80 13 01 00 00 00 00 00 BD [08:29:52]Write i2c OK [08:29:52]MH_I2C_Read... [08:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:52]Read from MH i2c: E2 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0E 00 [08:29:52]MH_I2C_Read... [08:29:52]Read from MH i2c: E2 0E 00 14 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B2 [08:29:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:29:52]wFMCommunicate OK [08:29:52]SAM_PROTO_GetShiftState done [08:29:52]FM_GetShiftState done [08:29:52]opened in 1729556094 [08:29:52]opened+sec_in_day 1729642494 [08:29:52]quantity*price = 41009 [08:29:52]sum+1 = 41011 [08:29:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 410.00 Внесено: 410.00 СДАЧА: 0.00 НСП 1% : 3.63 НДС 12% : 43.55 Наличными: 410.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 135 22.10.2024 08:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188106 ФПД: 156608690336087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082955&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188106&fm=156608690336087&tin=02508201610067®Number=0000000000100030&sum=41000 [08:29:53]StoreToDocumentArchive [08:29:53]shift 461 fd 188106 [08:29:53]save to /storage/0461/doc_00188106 [08:29:53]save last doc name /storage/0461/doc_00188106 to /storage/kkm_last_doc_name [08:29:53]save OK [08:29:53]Clear old archive folders... [08:29:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:29:53]tlvbuf is 01BC7D30 [08:29:53]SAM_PROTO_ClearQueue [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 09 00 00 [08:29:53]Write to MH i2c: E2 08 00 21 2C 80 09 00 00 00 00 00 00 BF [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:29:53]Read from MH i2c: E2 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 03 00 [08:29:53]MH_I2C_Read... [08:29:53]Read from MH i2c: E2 03 00 21 2C 00 90 00 C1 [08:29:53]RAPDU: 90 00 [08:29:53]wFMCommunicate OK [08:29:53]SAM_PROTO_ClearQueue done [08:29:53]KKMCreateOFDPacket [08:29:53]OFDProtocolAddRootSTLVToBuf [08:29:53]FM_MakeSignedData [08:29:53]FM_MakeSignedData [08:29:53]SAM_PROTO_SignData [08:29:53]wFMCommunicate request_size=4 [08:29:53]MH_SAM_APDU [08:29:53]CAPDU: 80 0D 01 02 [08:29:53]Write to MH i2c: E2 08 00 22 2C 80 0D 01 02 00 00 00 00 C7 [08:29:53]Write i2c OK [08:29:53]MH_I2C_Read... [08:29:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:29:54]Read from MH i2c: E2 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 03 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 03 00 22 2C 00 90 00 C2 [08:29:54]RAPDU: 90 00 [08:29:54]wFMCommunicate OK [08:29:54]wFMCommunicate request_size=255 [08:29:54]MH_SAM_APDU [08:29:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 83 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DE 02 00 35 04 06 00 8E [08:29:54]Write to MH i2c: E2 02 01 23 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 83 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DE 02 00 35 04 06 00 8E 00 00 CC [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:54]Read from MH i2c: E2 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 03 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 03 00 23 2C 00 90 00 C3 [08:29:54]RAPDU: 90 00 [08:29:54]wFMCommunicate OK [08:29:54]wFMCommunicate request_size=10 [08:29:54]MH_SAM_APDU [08:29:54]CAPDU: 80 0D 02 02 05 6F 4D 5B 31 57 [08:29:54]Write to MH i2c: E2 0D 00 24 2C 80 0D 02 02 05 00 6F 4D 5B 31 57 00 00 73 [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:29:54]Read from MH i2c: E2 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 03 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 03 00 24 2C 00 90 00 C4 [08:29:54]RAPDU: 90 00 [08:29:54]wFMCommunicate OK [08:29:54]wFMCommunicate request_size=4 [08:29:54]MH_SAM_APDU [08:29:54]CAPDU: 80 0D 03 02 [08:29:54]Write to MH i2c: E2 08 00 25 2C 80 0D 03 02 00 00 00 00 CC [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:29:54]Read from MH i2c: E2 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 0B 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 0B 00 25 2C 00 16 65 12 31 E7 43 6E D8 90 00 FB [08:29:54]RAPDU: 16 65 12 31 E7 43 6E D8 90 00 [08:29:54]wFMCommunicate OK [08:29:54]SAM_PROTO_SignData done [08:29:54]FM_MakeSignedData done [08:29:54]CreateOFDProtocolMessage [08:29:54]wFMCommunicate request_size=4 [08:29:54]MH_SAM_APDU [08:29:54]CAPDU: 80 11 00 00 [08:29:54]Write to MH i2c: E2 08 00 26 2C 80 11 00 00 00 00 00 00 CC [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:54]Read from MH i2c: E2 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 17 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: E2 17 00 26 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [08:29:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:54]wFMCommunicate OK [08:29:54]CreateOFDProtocolMessage done [08:29:54]OFDSenderStorePacket 188106 [08:29:54]StoreOFDPacket docnum=188106 [08:29:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0B C9 07 01 A7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 83 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DE 02 00 35 04 06 00 8E 6F 4D 5B 31 57 16 65 12 31 E7 43 6E D8 [08:29:54]CheckFolder [08:29:54]dirname=/storage/ofd_packets [08:29:54]CheckFolder done [08:29:54]ProducePacketName [08:29:54]name=ofd_packets/00188106 [08:29:54]NVStorageSaveData ofd_packets/00188106 [08:29:54]File name is /storage/ofd_packets/00188106 [08:29:54]Write 301 bytes [08:29:54]NVStorageSaveData done [08:29:54]OFDSenderStorePacket done [08:29:54]KKMCreateOFDPacket done [08:29:54]NVStorageSaveData kkm_last_timestamp [08:29:54]File name is /storage/kkm_last_timestamp [08:29:54]Write 4 bytes [08:29:54]NVStorageSaveData done [08:29:54]ExternCall_PrintAddStr [08:29:54]wPrintStart [08:29:54]Write to MH i2c: 01 00 00 27 2C 53 [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: 01 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: 01 07 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: 01 07 00 27 2C 00 00 00 00 00 FF 0F 68 [08:29:54]RasterBufferAndPrint [08:29:54]line Счет N : (1)210158 [08:29:54]line ИНН: 02508201610067 [08:29:54]line Контрольно-Кассовый Чек [08:29:54]line ПРОДАЖА [08:29:54]line ТРК (МРК, ГНК) : 32 [08:29:54]line Товар: 2710124130 [08:29:54]line Аи-92-К-3 [08:29:54]line 6.130 * 66.90 [08:29:54]line = 410.10 [08:29:54]line НДС 12% НСП 1% [08:29:54]line > о реализуемом товаре [08:29:54]line ОКРУГЛЕНИЕ: -0.10 [08:29:54]line ИТОГО: 410.00 [08:29:54]line Внесено: 410.00 [08:29:54]line СДАЧА: 0.00 [08:29:54]line НСП 1% : 3.63 [08:29:54]line НДС 12% : 43.55 [08:29:54]line Наличными: 410.00 [08:29:54]line Безнал.: 0.00 [08:29:54]line Место: АЗС № 86 "Партнер Нефть" [08:29:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:29:54]line СНО: Общий режим [08:29:54]line Чек 135 22.10.2024 08:29 [08:29:54]line Смена: 461 ФФД: 1.0 [08:29:54]line ЗНМ: 0300000155 [08:29:54]line РНМ: 0000000000100030 [08:29:54]line Версия ККМ: 001 [08:29:54]line ФМ: 0000000000965340 [08:29:54]line ФД: 188106 [08:29:54]line ФПД: 156608690336087 [08:29:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T082955&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188106&fm=156608690336087&tin=02508201610067®Number=0000000000100030&sum=41000 [08:29:54]written 0, free lines is 4095 [08:29:54]OFD Sender: Processing packet 188106 [packets to send 1062, broken 1061] [08:29:54]ProducePacketName [08:29:54]name=ofd_packets/00188106 [08:29:54]OFD Sender: To server: pG, [08:29:54]CommunicateWithHost lk.salyk.kg:30040 [08:29:54]ConnectInit lk.salyk.kg [08:29:54]Connected sock=10 [08:29:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0B C9 07 01 A7 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F2 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 32 A0 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 A0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 03 11 00 00 00 00 07 04 06 00 28 A0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 00 00 00 F4 03 04 00 83 62 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DE 02 00 35 04 06 00 8E 6F 4D 5B 31 57 16 65 12 31 E7 43 6E D8 [08:29:54]Write to MH i2c: 01 00 00 52 2C 7E [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: 01 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: 01 07 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: 01 07 00 52 2C 00 00 00 00 00 67 0C F8 [08:29:54]RasterBufferAndPrint [08:29:54]line [08:29:54]line [08:29:54]line [08:29:54]line [08:29:54]line [08:29:54]written 0, free lines is 3181 [08:29:54]MH_Cut [08:29:54]Write to MH i2c: D1 01 00 59 2C 01 57 [08:29:54]Write i2c OK [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: D1 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: D1 01 00 [08:29:54]MH_I2C_Read... [08:29:54]Read from MH i2c: D1 01 00 59 2C 00 56 [08:29:55]Write to MH i2c: 01 00 00 5A 2C 86 [08:29:55]Write i2c OK [08:29:55]MH_I2C_Read... [08:29:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1D 68 47 00 E2 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DE 02 00 F4 03 04 00 71 0C 17 67 B6 04 01 00 00 A9 7D 5E BC 64 0F C4 F7 [08:29:55]CommunicateWithHost err = 0 [08:29:55]CheckOFDResponse [08:29:55]1017 (14) - 77093643461234 [08:29:55]1041 (16) - 0000000000965340 [08:29:55]1040 (4) - 188106 [08:29:55]1012 (4) - 22.10.2024 02:22 [08:29:55]1206 (1) - 0 [08:29:55]OFD Sender: Remove packet 188106 [08:29:55]ProducePacketName [08:29:55]name=ofd_packets/00188106 [08:29:55]NVStorageDeleteData [08:29:55]OFD Sender: No OFD packet to send [08:29:56]*** Cut start [08:29:56]*** Partial cut [08:29:56]*** CUTSNS_PIN = 1 [08:29:56]*** CUTSNS_PIN = 0 [08:29:56]*** Brake cut motor [08:29:56]Read from MH i2c: 01 [08:29:56]MH_I2C_Read... [08:29:56]*** Stop cut motor [08:29:56]*** Cut end [08:29:56]Read from MH i2c: 01 07 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: 01 07 00 5A 2C 00 00 00 00 00 FF 0F 9B [08:29:56]process_action close_receipt done [08:29:56]requested_data is exist [08:29:56]produce_requested_data [08:29:56]requested_item fm.sn is exist - process it [08:29:56]wFMCommunicate request_size=4 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 11 00 00 [08:29:56]Write to MH i2c: E2 08 00 5B 2C 80 11 00 00 00 00 00 00 01 [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:29:56]Read from MH i2c: E2 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 17 00 [08:29:56]MH_I2C_Read... [08:29:56]Read from MH i2c: E2 17 00 5B 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [08:29:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:29:56]wFMCommunicate OK [08:29:56]requested_item fd.num is exist - process it [08:29:56]SAM_PROTO_GetFieldsCounters [08:29:56]wFMCommunicate request_size=4 [08:29:56]MH_SAM_APDU [08:29:56]CAPDU: 80 13 00 00 [08:29:56]Write to MH i2c: E2 08 00 5C 2C 80 13 00 00 00 00 00 00 04 [08:29:56]Write i2c OK [08:29:56]MH_I2C_Read... [08:29:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:29:57]Read from MH i2c: E2 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: E2 62 00 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: E2 62 00 5C 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 18 [08:29:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 87 00 00 00 5E 04 04 00 87 00 00 00 57 04 04 00 88 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:29:57]wFMCommunicate OK [08:29:57]SAM_PROTO_GetFieldsCounters done [08:29:57]requested_item shift.num is exist - process it [08:29:57]requested_item shift.opened is exist - process it [08:29:57]req_shift_opened [08:29:57]FM_GetShiftState [08:29:57]SAM_PROTO_GetShiftState [08:29:57]wFMCommunicate request_size=4 [08:29:57]MH_SAM_APDU [08:29:57]CAPDU: 80 13 01 00 [08:29:57]Write to MH i2c: E2 08 00 5D 2C 80 13 01 00 00 00 00 00 06 [08:29:57]Write i2c OK [08:29:57]MH_I2C_Read... [08:29:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:29:57]Read from MH i2c: E2 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: E2 0E 00 [08:29:57]MH_I2C_Read... [08:29:57]Read from MH i2c: E2 0E 00 5D 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FB [08:29:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:29:57]wFMCommunicate OK [08:29:57]SAM_PROTO_GetShiftState done [08:29:57]FM_GetShiftState done [08:29:57]req_shift_opened done [08:29:57]requested_item shift.open_date is exist - process it [08:29:57]req_shift_open_date [08:29:57]req_shift_open_date done [08:29:57]produce_requested_data done [08:29:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188106,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:29:57]process_action_free close_receipt [08:29:57]json_value_free [08:29:57]json_value_free done [08:29:57]process_json_proto returns [08:29:57]Send response to host [08:29:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188106,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:29:57]free response buf [08:29:57]execute_script done [08:29:57]execute_script returns [08:29:57]free content buf [08:29:57]Sock 8.Close socket [08:29:57]Sock 8.Thread stoped [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:30]OFD Sender: No OFD packet to send [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:46]OFD Sender: No OFD packet to send [08:30:51]OFD Sender: No OFD packet to send [08:30:56]OFD Sender: No OFD packet to send [08:31:01]OFD Sender: No OFD packet to send [08:31:06]OFD Sender: No OFD packet to send [08:31:11]OFD Sender: No OFD packet to send [08:31:16]OFD Sender: No OFD packet to send [08:31:21]OFD Sender: No OFD packet to send [08:31:26]OFD Sender: No OFD packet to send [08:31:31]OFD Sender: No OFD packet to send [08:31:36]OFD Sender: No OFD packet to send [08:31:41]OFD Sender: No OFD packet to send [08:31:46]OFD Sender: No OFD packet to send [08:31:51]OFD Sender: No OFD packet to send [08:31:56]OFD Sender: No OFD packet to send [08:32:01]OFD Sender: No OFD packet to send [08:32:06]OFD Sender: No OFD packet to send [08:32:11]OFD Sender: No OFD packet to send [08:32:16]OFD Sender: No OFD packet to send [08:32:21]OFD Sender: No OFD packet to send [08:32:26]OFD Sender: No OFD packet to send [08:32:31]OFD Sender: No OFD packet to send [08:32:36]OFD Sender: No OFD packet to send [08:32:41]OFD Sender: No OFD packet to send [08:32:46]OFD Sender: No OFD packet to send [08:32:51]OFD Sender: No OFD packet to send [08:32:56]OFD Sender: No OFD packet to send [08:33:01]OFD Sender: No OFD packet to send [08:33:06]OFD Sender: No OFD packet to send [08:33:11]OFD Sender: No OFD packet to send [08:33:16]OFD Sender: No OFD packet to send [08:33:19]accept exits with 9 [08:33:19]New connection [08:33:19]New thread 3067055460 created [08:33:19]Thread 3067198820 joined [08:33:19]Waiting for new connection... [08:33:19] Sock 9.Parse request [08:33:19]Sock 9.Check first char [08:33:19]Sock 9.First char is OK [08:33:19]request: POST /json_proto HTTP/1.0 [08:33:19]Method: POST [08:33:19]URL: /json_proto [08:33:19]Method is POST - this is cgi request [08:33:19]url: /json_proto [08:33:19]query_string will be loaded in cgi processing [08:33:19]execute_cgi json_proto POST (null) [08:33:19]execute_cgi path=json_proto method=POST [08:33:19]POST find Content-Length [08:33:19]Host: 172.17.42.131:8080 [08:33:19]Content-Length: 682 [08:33:19]Content-Type: application/json [08:33:19] [08:33:19]POST finish read [08:33:19]Found Content-Length = 682 [08:33:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:19]execute_script... [08:33: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)210159", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 14.830, "sum" : 1100.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1100.00, "total" : 1100.00, "payments": [ { "type": 0, "sum" : 1100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:19]POST & json_proto [08:33:19]process_json_proto [08:33:19]json parsed OK: [08:33:19]protocol is kg_v1.0 [08:33:19]action value=close_receipt [08:33:19]process_action close_receipt [08:33:19]cmd_close_receipt [08:33:19]MH_GetDate [08:33:19]Write to MH i2c: F0 00 00 5E 2C 79 [08:33:19]Write i2c OK [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: F0 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: F0 09 00 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: F0 09 00 5E 2C 00 52 63 17 67 A0 18 CA 66 9D [08:33:19]GetLastDocTimeStamp 1729585795 [08:33:19]current date 1729586002 [08:33:19]FM_GetShiftState [08:33:19]SAM_PROTO_GetShiftState [08:33:19]wFMCommunicate request_size=4 [08:33:19]MH_SAM_APDU [08:33:19]CAPDU: 80 13 01 00 [08:33:19]Write to MH i2c: E2 08 00 5F 2C 80 13 01 00 00 00 00 00 08 [08:33:19]Write i2c OK [08:33:19]MH_I2C_Read... [08:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:19]Read from MH i2c: E2 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: E2 0E 00 [08:33:19]MH_I2C_Read... [08:33:19]Read from MH i2c: E2 0E 00 5F 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FD [08:33:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:33:19]wFMCommunicate OK [08:33:19]SAM_PROTO_GetShiftState done [08:33:19]FM_GetShiftState done [08:33:19]opened in 1729556094 [08:33:19]opened+sec_in_day 1729642494 [08:33:19]quantity*price = 110038 [08:33:19]sum+1 = 110040 [08:33:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.39 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.86 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 136 22.10.2024 08:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188107 ФПД: 131590006338614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083322&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188107&fm=131590006338614&tin=02508201610067®Number=0000000000100030&sum=110000 [08:33:20]StoreToDocumentArchive [08:33:20]shift 461 fd 188107 [08:33:20]save to /storage/0461/doc_00188107 [08:33:20]save last doc name /storage/0461/doc_00188107 to /storage/kkm_last_doc_name [08:33:20]save OK [08:33:20]Clear old archive folders... [08:33:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:33:20]tlvbuf is 01BEC7E0 [08:33:20]SAM_PROTO_ClearQueue [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 09 00 00 [08:33:20]Write to MH i2c: E2 08 00 6C 2C 80 09 00 00 00 00 00 00 0A [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 03 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 03 00 6C 2C 00 90 00 0C [08:33:20]RAPDU: 90 00 [08:33:20]wFMCommunicate OK [08:33:20]SAM_PROTO_ClearQueue done [08:33:20]KKMCreateOFDPacket [08:33:20]OFDProtocolAddRootSTLVToBuf [08:33:20]FM_MakeSignedData [08:33:20]FM_MakeSignedData [08:33:20]SAM_PROTO_SignData [08:33:20]wFMCommunicate request_size=4 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 0D 01 02 [08:33:20]Write to MH i2c: E2 08 00 6D 2C 80 0D 01 02 00 00 00 00 12 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:20]Read from MH i2c: E2 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 03 00 [08:33:20]MH_I2C_Read... [08:33:20]Read from MH i2c: E2 03 00 6D 2C 00 90 00 0D [08:33:20]RAPDU: 90 00 [08:33:20]wFMCommunicate OK [08:33:20]wFMCommunicate request_size=255 [08:33:20]MH_SAM_APDU [08:33:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 52 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DE 02 00 35 04 06 00 77 [08:33:20]Write to MH i2c: E2 02 01 6E 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 52 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DE 02 00 35 04 06 00 77 00 00 D3 [08:33:20]Write i2c OK [08:33:20]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 6E 2C 00 90 00 0E [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=10 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 02 02 05 AE 2F 95 74 36 [08:33:21]Write to MH i2c: E2 0D 00 6F 2C 80 0D 02 02 05 00 AE 2F 95 74 36 00 00 3B [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 03 00 6F 2C 00 90 00 0F [08:33:21]RAPDU: 90 00 [08:33:21]wFMCommunicate OK [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 0D 03 02 [08:33:21]Write to MH i2c: E2 08 00 70 2C 80 0D 03 02 00 00 00 00 17 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 0B 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 0B 00 70 2C 00 09 70 CD DF F9 2B E6 7C 90 00 C3 [08:33:21]RAPDU: 09 70 CD DF F9 2B E6 7C 90 00 [08:33:21]wFMCommunicate OK [08:33:21]SAM_PROTO_SignData done [08:33:21]FM_MakeSignedData done [08:33:21]CreateOFDProtocolMessage [08:33:21]wFMCommunicate request_size=4 [08:33:21]MH_SAM_APDU [08:33:21]CAPDU: 80 11 00 00 [08:33:21]Write to MH i2c: E2 08 00 71 2C 80 11 00 00 00 00 00 00 17 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:21]Read from MH i2c: E2 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 17 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: E2 17 00 71 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [08:33:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:33:21]wFMCommunicate OK [08:33:21]CreateOFDProtocolMessage done [08:33:21]OFDSenderStorePacket 188107 [08:33:21]StoreOFDPacket docnum=188107 [08:33:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 AE 07 01 B5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 52 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DE 02 00 35 04 06 00 77 AE 2F 95 74 36 09 70 CD DF F9 2B E6 7C [08:33:21]CheckFolder [08:33:21]dirname=/storage/ofd_packets [08:33:21]CheckFolder done [08:33:21]ProducePacketName [08:33:21]name=ofd_packets/00188107 [08:33:21]NVStorageSaveData ofd_packets/00188107 [08:33:21]File name is /storage/ofd_packets/00188107 [08:33:21]Write 301 bytes [08:33:21]NVStorageSaveData done [08:33:21]OFDSenderStorePacket done [08:33:21]KKMCreateOFDPacket done [08:33:21]NVStorageSaveData kkm_last_timestamp [08:33:21]File name is /storage/kkm_last_timestamp [08:33:21]Write 4 bytes [08:33:21]NVStorageSaveData done [08:33:21]ExternCall_PrintAddStr [08:33:21]wPrintStart [08:33:21]Write to MH i2c: 01 00 00 72 2C 9E [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 72 2C 00 00 00 00 00 FF 0F B3 [08:33:21]RasterBufferAndPrint [08:33:21]line Счет N : (1)210159 [08:33:21]line ИНН: 02508201610067 [08:33:21]line Контрольно-Кассовый Чек [08:33:21]line ПРОДАЖА [08:33:21]line ТРК (МРК, ГНК) : 23 [08:33:21]line Товар: 2710124500 [08:33:21]line Аи-95-К-3 [08:33:21]line 14.830 * 74.20 [08:33:21]line = 1100.39 [08:33:21]line НДС 12% НСП 1% [08:33:21]line > о реализуемом товаре [08:33:21]line ОКРУГЛЕНИЕ: -0.39 [08:33:21]line ИТОГО: 1100.00 [08:33:21]line Внесено: 1100.00 [08:33:21]line СДАЧА: 0.00 [08:33:21]line НСП 1% : 9.74 [08:33:21]line НДС 12% : 116.86 [08:33:21]line Наличными: 1100.00 [08:33:21]line Безнал.: 0.00 [08:33:21]line Место: АЗС № 86 "Партнер Нефть" [08:33:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:33:21]line СНО: Общий режим [08:33:21]line Чек 136 22.10.2024 08:33 [08:33:21]line Смена: 461 ФФД: 1.0 [08:33:21]line ЗНМ: 0300000155 [08:33:21]line РНМ: 0000000000100030 [08:33:21]line Версия ККМ: 001 [08:33:21]line ФМ: 0000000000965340 [08:33:21]line ФД: 188107 [08:33:21]line ФПД: 131590006338614 [08:33:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083322&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188107&fm=131590006338614&tin=02508201610067®Number=0000000000100030&sum=110000 [08:33:21]written 0, free lines is 4095 [08:33:21]OFD Sender: Processing packet 188107 [packets to send 1062, broken 1061] [08:33:21]ProducePacketName [08:33:21]name=ofd_packets/00188107 [08:33:21]OFD Sender: To server: pG, [08:33:21]CommunicateWithHost lk.salyk.kg:30040 [08:33:21]ConnectInit lk.salyk.kg [08:33:21]Connected sock=10 [08:33:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 AE 07 01 B5 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 EE 39 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D7 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 88 00 00 00 F4 03 04 00 52 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DE 02 00 35 04 06 00 77 AE 2F 95 74 36 09 70 CD DF F9 2B E6 7C [08:33:21]Write to MH i2c: 01 00 00 9D 2C C9 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: 01 07 00 9D 2C 00 00 00 00 00 5F 0C 3B [08:33:21]RasterBufferAndPrint [08:33:21]line [08:33:21]line [08:33:21]line [08:33:21]line [08:33:21]line [08:33:21]written 0, free lines is 3169 [08:33:21]MH_Cut [08:33:21]Write to MH i2c: D1 01 00 A4 2C 01 A2 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: D1 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: D1 01 00 [08:33:21]MH_I2C_Read... [08:33:21]Read from MH i2c: D1 01 00 A4 2C 00 A1 [08:33:21]Write to MH i2c: 01 00 00 A5 2C D1 [08:33:21]Write i2c OK [08:33:21]MH_I2C_Read... [08:33:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 EA 47 00 C2 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 39 36 35 33 34 30 10 04 04 00 CB DE 02 00 F4 03 04 00 3F 0D 17 67 B6 04 01 00 00 35 A3 2A 83 EE 7E D9 93 [08:33:21]CommunicateWithHost err = 0 [08:33:21]CheckOFDResponse [08:33:21]1017 (14) - 77093643461234 [08:33:21]1041 (16) - 0000000000965340 [08:33:21]1040 (4) - 188107 [08:33:21]1012 (4) - 22.10.2024 02:26 [08:33:21]1206 (1) - 0 [08:33:21]OFD Sender: Remove packet 188107 [08:33:21]ProducePacketName [08:33:21]name=ofd_packets/00188107 [08:33:21]NVStorageDeleteData [08:33:22]OFD Sender: No OFD packet to send [08:33:23]*** Cut start [08:33:23]*** Partial cut [08:33:23]*** CUTSNS_PIN = 1 [08:33:23]*** CUTSNS_PIN = 0 [08:33:23]*** Brake cut motor [08:33:23]Read from MH i2c: 01 [08:33:23]MH_I2C_Read... [08:33:23]*** Stop cut motor [08:33:23]*** Cut end [08:33:23]Read from MH i2c: 01 07 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: 01 07 00 A5 2C 00 00 00 00 00 FF 0F E6 [08:33:23]process_action close_receipt done [08:33:23]requested_data is exist [08:33:23]produce_requested_data [08:33:23]requested_item fm.sn is exist - process it [08:33:23]wFMCommunicate request_size=4 [08:33:23]MH_SAM_APDU [08:33:23]CAPDU: 80 11 00 00 [08:33:23]Write to MH i2c: E2 08 00 A6 2C 80 11 00 00 00 00 00 00 4C [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:23]Read from MH i2c: E2 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 17 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 17 00 A6 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [08:33:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:33:23]wFMCommunicate OK [08:33:23]requested_item fd.num is exist - process it [08:33:23]SAM_PROTO_GetFieldsCounters [08:33:23]wFMCommunicate request_size=4 [08:33:23]MH_SAM_APDU [08:33:23]CAPDU: 80 13 00 00 [08:33:23]Write to MH i2c: E2 08 00 A7 2C 80 13 00 00 00 00 00 00 4F [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:23]Read from MH i2c: E2 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 62 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 62 00 A7 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 67 [08:33:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 88 00 00 00 5E 04 04 00 88 00 00 00 57 04 04 00 89 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:23]wFMCommunicate OK [08:33:23]SAM_PROTO_GetFieldsCounters done [08:33:23]requested_item shift.num is exist - process it [08:33:23]requested_item shift.opened is exist - process it [08:33:23]req_shift_opened [08:33:23]FM_GetShiftState [08:33:23]SAM_PROTO_GetShiftState [08:33:23]wFMCommunicate request_size=4 [08:33:23]MH_SAM_APDU [08:33:23]CAPDU: 80 13 01 00 [08:33:23]Write to MH i2c: E2 08 00 A8 2C 80 13 01 00 00 00 00 00 51 [08:33:23]Write i2c OK [08:33:23]MH_I2C_Read... [08:33:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:23]Read from MH i2c: E2 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 0E 00 [08:33:23]MH_I2C_Read... [08:33:23]Read from MH i2c: E2 0E 00 A8 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 46 [08:33:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:33:23]wFMCommunicate OK [08:33:23]SAM_PROTO_GetShiftState done [08:33:23]FM_GetShiftState done [08:33:23]req_shift_opened done [08:33:23]requested_item shift.open_date is exist - process it [08:33:23]req_shift_open_date [08:33:23]req_shift_open_date done [08:33:23]produce_requested_data done [08:33:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188107,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:33:23]process_action_free close_receipt [08:33:23]json_value_free [08:33:23]json_value_free done [08:33:23]process_json_proto returns [08:33:23]Send response to host [08:33:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188107,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:33:23]free response buf [08:33:23]execute_script done [08:33:23]execute_script returns [08:33:23]free content buf [08:33:23]Sock 9.Close socket [08:33:23]Sock 9.Thread stoped [08:33:27]OFD Sender: No OFD packet to send [08:33:32]OFD Sender: No OFD packet to send [08:33:37]OFD Sender: No OFD packet to send [08:33:42]OFD Sender: No OFD packet to send [08:33:47]OFD Sender: No OFD packet to send [08:33:52]OFD Sender: No OFD packet to send [08:33:57]OFD Sender: No OFD packet to send [08:34:02]OFD Sender: No OFD packet to send [08:34:07]OFD Sender: No OFD packet to send [08:34:12]OFD Sender: No OFD packet to send [08:34:17]OFD Sender: No OFD packet to send [08:34:22]OFD Sender: No OFD packet to send [08:34:27]OFD Sender: No OFD packet to send [08:34:32]OFD Sender: No OFD packet to send [08:34:37]OFD Sender: No OFD packet to send [08:34:42]OFD Sender: No OFD packet to send [08:34:47]OFD Sender: No OFD packet to send [08:34:52]OFD Sender: No OFD packet to send [08:34:57]OFD Sender: No OFD packet to send [08:35:02]OFD Sender: No OFD packet to send [08:35:07]OFD Sender: No OFD packet to send [08:35:12]OFD Sender: No OFD packet to send [08:35:18]OFD Sender: No OFD packet to send [08:35:23]OFD Sender: No OFD packet to send [08:35:28]OFD Sender: No OFD packet to send [08:35:29]accept exits with 8 [08:35:29]New connection [08:35:29]New thread 3067198820 created [08:35:29]Thread 3067055460 joined [08:35:29]Waiting for new connection... [08:35:29] Sock 8.Parse request [08:35:29]Sock 8.Check first char [08:35:29]Sock 8.First char is OK [08:35:29]request: POST /json_proto HTTP/1.0 [08:35:29]Method: POST [08:35:29]URL: /json_proto [08:35:29]Method is POST - this is cgi request [08:35:29]url: /json_proto [08:35:29]query_string will be loaded in cgi processing [08:35:29]execute_cgi json_proto POST (null) [08:35:29]execute_cgi path=json_proto method=POST [08:35:29]POST find Content-Length [08:35:29]Host: 172.17.42.131:8080 [08:35:29]Content-Length: 682 [08:35:29]Content-Type: application/json [08:35:29] [08:35:29]POST finish read [08:35:29]Found Content-Length = 682 [08:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:29]execute_script... [08:35: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)210160", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:35:29]POST & json_proto [08:35:29]process_json_proto [08:35:29]json parsed OK: [08:35:29]protocol is kg_v1.0 [08:35:29]action value=close_receipt [08:35:29]process_action close_receipt [08:35:29]cmd_close_receipt [08:35:29]MH_GetDate [08:35:29]Write to MH i2c: F0 00 00 A9 2C C4 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: F0 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: F0 09 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: F0 09 00 A9 2C 00 D4 63 17 67 A0 18 CA 66 6A [08:35:29]GetLastDocTimeStamp 1729586002 [08:35:29]current date 1729586132 [08:35:29]FM_GetShiftState [08:35:29]SAM_PROTO_GetShiftState [08:35:29]wFMCommunicate request_size=4 [08:35:29]MH_SAM_APDU [08:35:29]CAPDU: 80 13 01 00 [08:35:29]Write to MH i2c: E2 08 00 AA 2C 80 13 01 00 00 00 00 00 53 [08:35:29]Write i2c OK [08:35:29]MH_I2C_Read... [08:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:29]Read from MH i2c: E2 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0E 00 [08:35:29]MH_I2C_Read... [08:35:29]Read from MH i2c: E2 0E 00 AA 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 48 [08:35:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:35:29]wFMCommunicate OK [08:35:29]SAM_PROTO_GetShiftState done [08:35:29]FM_GetShiftState done [08:35:29]opened in 1729556094 [08:35:29]opened+sec_in_day 1729642494 [08:35:29]quantity*price = 100015 [08:35:29]sum+1 = 100017 [08:35:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 137 22.10.2024 08:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188108 ФПД: 205828653915331 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188108&fm=205828653915331&tin=02508201610067®Number=0000000000100030&sum=100000 [08:35:30]StoreToDocumentArchive [08:35:30]shift 461 fd 188108 [08:35:30]save to /storage/0461/doc_00188108 [08:35:30]save last doc name /storage/0461/doc_00188108 to /storage/kkm_last_doc_name [08:35:30]save OK [08:35:30]Clear old archive folders... [08:35:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:35:30]tlvbuf is 01BA05E0 [08:35:30]SAM_PROTO_ClearQueue [08:35:30]wFMCommunicate request_size=4 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 09 00 00 [08:35:30]Write to MH i2c: E2 08 00 B7 2C 80 09 00 00 00 00 00 00 55 [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 B7 2C 00 90 00 57 [08:35:30]RAPDU: 90 00 [08:35:30]wFMCommunicate OK [08:35:30]SAM_PROTO_ClearQueue done [08:35:30]KKMCreateOFDPacket [08:35:30]OFDProtocolAddRootSTLVToBuf [08:35:30]FM_MakeSignedData [08:35:30]FM_MakeSignedData [08:35:30]SAM_PROTO_SignData [08:35:30]wFMCommunicate request_size=4 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 0D 01 02 [08:35:30]Write to MH i2c: E2 08 00 B8 2C 80 0D 01 02 00 00 00 00 5D [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:35:30]Read from MH i2c: E2 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 [08:35:30]MH_I2C_Read... [08:35:30]Read from MH i2c: E2 03 00 B8 2C 00 90 00 58 [08:35:30]RAPDU: 90 00 [08:35:30]wFMCommunicate OK [08:35:30]wFMCommunicate request_size=255 [08:35:30]MH_SAM_APDU [08:35:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D4 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DE 02 00 35 04 06 00 BB [08:35:30]Write to MH i2c: E2 02 01 B9 2C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D4 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DE 02 00 35 04 06 00 BB 00 00 3D [08:35:30]Write i2c OK [08:35:30]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 03 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 03 00 B9 2C 00 90 00 59 [08:35:31]RAPDU: 90 00 [08:35:31]wFMCommunicate OK [08:35:31]wFMCommunicate request_size=10 [08:35:31]MH_SAM_APDU [08:35:31]CAPDU: 80 0D 02 02 05 33 37 CD 1C C3 [08:35:31]Write to MH i2c: E2 0D 00 BA 2C 80 0D 02 02 05 00 33 37 CD 1C C3 00 00 80 [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 03 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 03 00 BA 2C 00 90 00 5A [08:35:31]RAPDU: 90 00 [08:35:31]wFMCommunicate OK [08:35:31]wFMCommunicate request_size=4 [08:35:31]MH_SAM_APDU [08:35:31]CAPDU: 80 0D 03 02 [08:35:31]Write to MH i2c: E2 08 00 BB 2C 80 0D 03 02 00 00 00 00 62 [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 0B 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 0B 00 BB 2C 00 CA 12 35 68 2C 45 C2 21 90 00 30 [08:35:31]RAPDU: CA 12 35 68 2C 45 C2 21 90 00 [08:35:31]wFMCommunicate OK [08:35:31]SAM_PROTO_SignData done [08:35:31]FM_MakeSignedData done [08:35:31]CreateOFDProtocolMessage [08:35:31]wFMCommunicate request_size=4 [08:35:31]MH_SAM_APDU [08:35:31]CAPDU: 80 11 00 00 [08:35:31]Write to MH i2c: E2 08 00 BC 2C 80 11 00 00 00 00 00 00 62 [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:31]Read from MH i2c: E2 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 17 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: E2 17 00 BC 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B0 [08:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:35:31]wFMCommunicate OK [08:35:31]CreateOFDProtocolMessage done [08:35:31]OFDSenderStorePacket 188108 [08:35:31]StoreOFDPacket docnum=188108 [08:35:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 D8 07 01 D0 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D4 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DE 02 00 35 04 06 00 BB 33 37 CD 1C C3 CA 12 35 68 2C 45 C2 21 [08:35:31]CheckFolder [08:35:31]dirname=/storage/ofd_packets [08:35:31]CheckFolder done [08:35:31]ProducePacketName [08:35:31]name=ofd_packets/00188108 [08:35:31]NVStorageSaveData ofd_packets/00188108 [08:35:31]File name is /storage/ofd_packets/00188108 [08:35:31]Write 301 bytes [08:35:31]NVStorageSaveData done [08:35:31]OFDSenderStorePacket done [08:35:31]KKMCreateOFDPacket done [08:35:31]NVStorageSaveData kkm_last_timestamp [08:35:31]File name is /storage/kkm_last_timestamp [08:35:31]Write 4 bytes [08:35:31]NVStorageSaveData done [08:35:31]ExternCall_PrintAddStr [08:35:31]wPrintStart [08:35:31]Write to MH i2c: 01 00 00 BD 2C E9 [08:35:31]Write i2c OK [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: 01 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: 01 07 00 [08:35:31]MH_I2C_Read... [08:35:31]Read from MH i2c: 01 07 00 BD 2C 00 00 00 00 00 FF 0F FE [08:35:31]RasterBufferAndPrint [08:35:31]line Счет N : (1)210160 [08:35:31]line ИНН: 02508201610067 [08:35:31]line Контрольно-Кассовый Чек [08:35:31]line ПРОДАЖА [08:35:31]line ТРК (МРК, ГНК) : 32 [08:35:31]line Товар: 2710124130 [08:35:31]line Аи-92-К-3 [08:35:31]line 14.950 * 66.90 [08:35:31]line = 1000.16 [08:35:31]line НДС 12% НСП 1% [08:35:31]line > о реализуемом товаре [08:35:31]line ОКРУГЛЕНИЕ: -0.16 [08:35:31]line ИТОГО: 1000.00 [08:35:31]line Внесено: 1000.00 [08:35:31]line СДАЧА: 0.00 [08:35:31]line НСП 1% : 8.85 [08:35:31]line НДС 12% : 106.21 [08:35:31]line Наличными: 1000.00 [08:35:31]line Безнал.: 0.00 [08:35:31]line Место: АЗС № 86 "Партнер Нефть" [08:35:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:35:31]line СНО: Общий режим [08:35:31]line Чек 137 22.10.2024 08:35 [08:35:31]line Смена: 461 ФФД: 1.0 [08:35:31]line ЗНМ: 0300000155 [08:35:31]line РНМ: 0000000000100030 [08:35:31]line Версия ККМ: 001 [08:35:31]line ФМ: 0000000000965340 [08:35:31]line ФД: 188108 [08:35:31]line ФПД: 205828653915331 [08:35:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188108&fm=205828653915331&tin=02508201610067®Number=0000000000100030&sum=100000 [08:35:31]OFD Sender: Processing packet 188108 [packets to send 1062, broken 1061] [08:35:31]ProducePacketName [08:35:31]name=ofd_packets/00188108 [08:35:31]OFD Sender: To server: pG, [08:35:31]CommunicateWithHost lk.salyk.kg:30040 [08:35:31]ConnectInit lk.salyk.kg [08:35:31]written 0, free lines is 4095 [08:35:32]Write to MH i2c: 01 00 00 E8 2C 14 [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: 01 07 00 E8 2C 00 00 00 00 00 5B 0C 82 [08:35:32]RasterBufferAndPrint [08:35:32]line [08:35:32]line [08:35:32]line [08:35:32]line [08:35:32]line [08:35:32]Connected sock=10 [08:35:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 D8 07 01 D0 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 D4 63 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DE 02 00 35 04 06 00 BB 33 37 CD 1C C3 CA 12 35 68 2C 45 C2 21 [08:35:32]written 0, free lines is 3174 [08:35:32]MH_Cut [08:35:32]Write to MH i2c: D1 01 00 EF 2C 01 ED [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: D1 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: D1 01 00 [08:35:32]MH_I2C_Read... [08:35:32]Read from MH i2c: D1 01 00 EF 2C 00 EC [08:35:32]Write to MH i2c: 01 00 00 F0 2C 1C [08:35:32]Write i2c OK [08:35:32]MH_I2C_Read... [08:35:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 B7 47 00 69 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 39 36 35 33 34 30 10 04 04 00 CC DE 02 00 F4 03 04 00 C2 0D 17 67 B6 04 01 00 00 3A FC 8F 87 FF 97 33 77 [08:35:32]CommunicateWithHost err = 0 [08:35:32]CheckOFDResponse [08:35:32]1017 (14) - 77093643461234 [08:35:32]1041 (16) - 0000000000965340 [08:35:32]1040 (4) - 188108 [08:35:32]1012 (4) - 22.10.2024 02:28 [08:35:32]1206 (1) - 0 [08:35:32]OFD Sender: Remove packet 188108 [08:35:32]ProducePacketName [08:35:32]name=ofd_packets/00188108 [08:35:32]NVStorageDeleteData [08:35:32]OFD Sender: No OFD packet to send [08:35:33]*** Cut start [08:35:33]*** Partial cut [08:35:33]*** CUTSNS_PIN = 1 [08:35:33]*** CUTSNS_PIN = 0 [08:35:33]*** Brake cut motor [08:35:33]Read from MH i2c: 01 [08:35:33]MH_I2C_Read... [08:35:33]*** Stop cut motor [08:35:33]*** Cut end [08:35:33]Read from MH i2c: 01 07 00 [08:35:33]MH_I2C_Read... [08:35:33]Read from MH i2c: 01 07 00 F0 2C 00 00 00 00 00 FF 0F 31 [08:35:33]process_action close_receipt done [08:35:33]requested_data is exist [08:35:33]produce_requested_data [08:35:33]requested_item fm.sn is exist - process it [08:35:33]wFMCommunicate request_size=4 [08:35:33]MH_SAM_APDU [08:35:33]CAPDU: 80 11 00 00 [08:35:33]Write to MH i2c: E2 08 00 F1 2C 80 11 00 00 00 00 00 00 97 [08:35:33]Write i2c OK [08:35:33]MH_I2C_Read... [08:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:35:34]Read from MH i2c: E2 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 17 00 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 17 00 F1 2C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [08:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:35:34]wFMCommunicate OK [08:35:34]requested_item fd.num is exist - process it [08:35:34]SAM_PROTO_GetFieldsCounters [08:35:34]wFMCommunicate request_size=4 [08:35:34]MH_SAM_APDU [08:35:34]CAPDU: 80 13 00 00 [08:35:34]Write to MH i2c: E2 08 00 F2 2C 80 13 00 00 00 00 00 00 9A [08:35:34]Write i2c OK [08:35:34]MH_I2C_Read... [08:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:35:34]Read from MH i2c: E2 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 62 00 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 62 00 F2 2C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 89 00 00 00 5E 04 04 00 89 00 00 00 57 04 04 00 8A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:35:34]wFMCommunicate OK [08:35:34]SAM_PROTO_GetFieldsCounters done [08:35:34]requested_item shift.num is exist - process it [08:35:34]requested_item shift.opened is exist - process it [08:35:34]req_shift_opened [08:35:34]FM_GetShiftState [08:35:34]SAM_PROTO_GetShiftState [08:35:34]wFMCommunicate request_size=4 [08:35:34]MH_SAM_APDU [08:35:34]CAPDU: 80 13 01 00 [08:35:34]Write to MH i2c: E2 08 00 F3 2C 80 13 01 00 00 00 00 00 9C [08:35:34]Write i2c OK [08:35:34]MH_I2C_Read... [08:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:35:34]Read from MH i2c: E2 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 0E 00 [08:35:34]MH_I2C_Read... [08:35:34]Read from MH i2c: E2 0E 00 F3 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [08:35:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:35:34]wFMCommunicate OK [08:35:34]SAM_PROTO_GetShiftState done [08:35:34]FM_GetShiftState done [08:35:34]req_shift_opened done [08:35:34]requested_item shift.open_date is exist - process it [08:35:34]req_shift_open_date [08:35:34]req_shift_open_date done [08:35:34]produce_requested_data done [08:35:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188108,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:35:34]process_action_free close_receipt [08:35:34]json_value_free [08:35:34]json_value_free done [08:35:34]process_json_proto returns [08:35:34]Send response to host [08:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188108,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:35:34]free response buf [08:35:34]execute_script done [08:35:34]execute_script returns [08:35:34]free content buf [08:35:34]Sock 8.Close socket [08:35:34]Sock 8.Thread stoped [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:53]OFD Sender: No OFD packet to send [08:35:58]OFD Sender: No OFD packet to send [08:36:03]OFD Sender: No OFD packet to send [08:36:08]OFD Sender: No OFD packet to send [08:36:13]OFD Sender: No OFD packet to send [08:36:18]OFD Sender: No OFD packet to send [08:36:23]OFD Sender: No OFD packet to send [08:36:28]OFD Sender: No OFD packet to send [08:36:33]OFD Sender: No OFD packet to send [08:36:38]OFD Sender: No OFD packet to send [08:36:43]OFD Sender: No OFD packet to send [08:36:48]OFD Sender: No OFD packet to send [08:36:53]OFD Sender: No OFD packet to send [08:36:58]OFD Sender: No OFD packet to send [08:37:03]OFD Sender: No OFD packet to send [08:37:08]OFD Sender: No OFD packet to send [08:37:13]OFD Sender: No OFD packet to send [08:37:18]accept exits with 9 [08:37:18]New connection [08:37:18]New thread 3067055460 created [08:37:18]Thread 3067198820 joined [08:37:18]Waiting for new connection... [08:37:18] Sock 9.Parse request [08:37:18]Sock 9.Check first char [08:37:18]Sock 9.First char is OK [08:37:18]request: POST /json_proto HTTP/1.0 [08:37:18]Method: POST [08:37:18]URL: /json_proto [08:37:18]Method is POST - this is cgi request [08:37:18]url: /json_proto [08:37:18]query_string will be loaded in cgi processing [08:37:18]execute_cgi json_proto POST (null) [08:37:18]execute_cgi path=json_proto method=POST [08:37:18]POST find Content-Length [08:37:18]Host: 172.17.42.131:8080 [08:37:18]Content-Length: 688 [08:37:18]Content-Type: application/json [08:37:18] [08:37:18]POST finish read [08:37:18]Found Content-Length = 688 [08:37:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:18]execute_script... [08:37: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)210161", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:37:18]POST & json_proto [08:37:18]process_json_proto [08:37:18]json parsed OK: [08:37:18]protocol is kg_v1.0 [08:37:18]action value=close_receipt [08:37:18]process_action close_receipt [08:37:18]cmd_close_receipt [08:37:18]MH_GetDate [08:37:18]Write to MH i2c: F0 00 00 F4 2C 0F [08:37:18]Write i2c OK [08:37:18]MH_I2C_Read... [08:37:18]Read from MH i2c: F0 [08:37:18]MH_I2C_Read... [08:37:18]Read from MH i2c: F0 09 00 [08:37:18]MH_I2C_Read... [08:37:18]Read from MH i2c: F0 09 00 F4 2C 00 40 64 17 67 A0 18 CA 66 22 [08:37:18]GetLastDocTimeStamp 1729586132 [08:37:18]current date 1729586240 [08:37:18]FM_GetShiftState [08:37:18]SAM_PROTO_GetShiftState [08:37:18]wFMCommunicate request_size=4 [08:37:18]MH_SAM_APDU [08:37:18]CAPDU: 80 13 01 00 [08:37:18]Write to MH i2c: E2 08 00 F5 2C 80 13 01 00 00 00 00 00 9E [08:37:18]Write i2c OK [08:37:18]MH_I2C_Read... [08:37:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:18]Read from MH i2c: E2 [08:37:18]MH_I2C_Read... [08:37:18]Read from MH i2c: E2 0E 00 [08:37:18]MH_I2C_Read... [08:37:18]Read from MH i2c: E2 0E 00 F5 2C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 93 [08:37:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:37:18]wFMCommunicate OK [08:37:18]SAM_PROTO_GetShiftState done [08:37:18]FM_GetShiftState done [08:37:18]opened in 1729556094 [08:37:18]opened+sec_in_day 1729642494 [08:37:18]quantity*price = 300076 [08:37:18]sum+1 = 300077 [08:37:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 138 22.10.2024 08:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188109 ФПД: 194039134317791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188109&fm=194039134317791&tin=02508201610067®Number=0000000000100030&sum=300000 [08:37:19]StoreToDocumentArchive [08:37:19]shift 461 fd 188109 [08:37:19]save to /storage/0461/doc_00188109 [08:37:19]save last doc name /storage/0461/doc_00188109 to /storage/kkm_last_doc_name [08:37:19]save OK [08:37:19]Clear old archive folders... [08:37:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:37:19]tlvbuf is 01BE00B0 [08:37:19]SAM_PROTO_ClearQueue [08:37:19]wFMCommunicate request_size=4 [08:37:19]MH_SAM_APDU [08:37:19]CAPDU: 80 09 00 00 [08:37:19]Write to MH i2c: E2 08 00 02 2D 80 09 00 00 00 00 00 00 A1 [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:37:19]Read from MH i2c: E2 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 02 2D 00 90 00 A3 [08:37:19]RAPDU: 90 00 [08:37:19]wFMCommunicate OK [08:37:19]SAM_PROTO_ClearQueue done [08:37:19]KKMCreateOFDPacket [08:37:19]OFDProtocolAddRootSTLVToBuf [08:37:19]FM_MakeSignedData [08:37:19]FM_MakeSignedData [08:37:19]SAM_PROTO_SignData [08:37:19]wFMCommunicate request_size=4 [08:37:19]MH_SAM_APDU [08:37:19]CAPDU: 80 0D 01 02 [08:37:19]Write to MH i2c: E2 08 00 03 2D 80 0D 01 02 00 00 00 00 A9 [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:37:19]Read from MH i2c: E2 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 03 2D 00 90 00 A4 [08:37:19]RAPDU: 90 00 [08:37:19]wFMCommunicate OK [08:37:19]wFMCommunicate request_size=255 [08:37:19]MH_SAM_APDU [08:37:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DE 02 [08:37:19]Write to MH i2c: E2 02 01 04 2D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DE 02 00 00 0F [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:19]Read from MH i2c: E2 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 04 2D 00 90 00 A5 [08:37:19]RAPDU: 90 00 [08:37:19]wFMCommunicate OK [08:37:19]wFMCommunicate request_size=16 [08:37:19]MH_SAM_APDU [08:37:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B0 7A 41 AC 6C DF [08:37:19]Write to MH i2c: E2 13 00 05 2D 80 0D 02 02 0B 00 00 35 04 06 00 B0 7A 41 AC 6C DF 00 00 63 [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:37:19]Read from MH i2c: E2 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 03 00 05 2D 00 90 00 A6 [08:37:19]RAPDU: 90 00 [08:37:19]wFMCommunicate OK [08:37:19]wFMCommunicate request_size=4 [08:37:19]MH_SAM_APDU [08:37:19]CAPDU: 80 0D 03 02 [08:37:19]Write to MH i2c: E2 08 00 06 2D 80 0D 03 02 00 00 00 00 AE [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:37:19]Read from MH i2c: E2 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 0B 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 0B 00 06 2D 00 B5 7F A2 64 2F DB 1D 32 90 00 42 [08:37:19]RAPDU: B5 7F A2 64 2F DB 1D 32 90 00 [08:37:19]wFMCommunicate OK [08:37:19]SAM_PROTO_SignData done [08:37:19]FM_MakeSignedData done [08:37:19]CreateOFDProtocolMessage [08:37:19]wFMCommunicate request_size=4 [08:37:19]MH_SAM_APDU [08:37:19]CAPDU: 80 11 00 00 [08:37:19]Write to MH i2c: E2 08 00 07 2D 80 11 00 00 00 00 00 00 AE [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:19]Read from MH i2c: E2 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 17 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: E2 17 00 07 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [08:37:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:37:19]wFMCommunicate OK [08:37:19]CreateOFDProtocolMessage done [08:37:19]OFDSenderStorePacket 188109 [08:37:19]StoreOFDPacket docnum=188109 [08:37:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 70 34 0D 01 58 5D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DE 02 00 35 04 06 00 B0 7A 41 AC 6C DF B5 7F A2 64 2F DB 1D 32 [08:37:19]CheckFolder [08:37:19]dirname=/storage/ofd_packets [08:37:19]CheckFolder done [08:37:19]ProducePacketName [08:37:19]name=ofd_packets/00188109 [08:37:19]NVStorageSaveData ofd_packets/00188109 [08:37:19]File name is /storage/ofd_packets/00188109 [08:37:19]Write 307 bytes [08:37:19]NVStorageSaveData done [08:37:19]OFDSenderStorePacket done [08:37:19]KKMCreateOFDPacket done [08:37:19]NVStorageSaveData kkm_last_timestamp [08:37:19]File name is /storage/kkm_last_timestamp [08:37:19]Write 4 bytes [08:37:19]NVStorageSaveData done [08:37:19]ExternCall_PrintAddStr [08:37:19]wPrintStart [08:37:19]Write to MH i2c: 01 00 00 08 2D 35 [08:37:19]Write i2c OK [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: 01 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: 01 07 00 [08:37:19]MH_I2C_Read... [08:37:19]Read from MH i2c: 01 07 00 08 2D 00 00 00 00 00 FF 0F 4A [08:37:19]RasterBufferAndPrint [08:37:19]line Счет N : (1)210161 [08:37:19]line ИНН: 02508201610067 [08:37:19]line Контрольно-Кассовый Чек [08:37:19]line ПРОДАЖА [08:37:19]line ТРК (МРК, ГНК) : 21 [08:37:19]line Товар: 2710194210 [08:37:19]line D-ENERGY ДТ-К-5 [08:37:19]line 38.870 * 77.20 [08:37:19]line = 3000.76 [08:37:19]line НДС 12% НСП 1% [08:37:19]line > о реализуемом товаре [08:37:19]line ОКРУГЛЕНИЕ: -0.76 [08:37:19]line ИТОГО: 3000.00 [08:37:19]line Внесено: 3000.00 [08:37:19]line СДАЧА: 0.00 [08:37:19]line НСП 1% : 26.55 [08:37:19]line НДС 12% : 318.66 [08:37:19]line Наличными: 3000.00 [08:37:19]line Безнал.: 0.00 [08:37:19]line Место: АЗС № 86 "Партнер Нефть" [08:37:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:37:19]line СНО: Общий режим [08:37:19]line Чек 138 22.10.2024 08:37 [08:37:19]line Смена: 461 ФФД: 1.0 [08:37:19]line ЗНМ: 0300000155 [08:37:19]line РНМ: 0000000000100030 [08:37:19]line Версия ККМ: 001 [08:37:19]line ФМ: 0000000000965340 [08:37:19]line ФД: 188109 [08:37:19]line ФПД: 194039134317791 [08:37:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188109&fm=194039134317791&tin=02508201610067®Number=0000000000100030&sum=300000 [08:37:19]written 0, free lines is 4095 [08:37:19]OFD Sender: Processing packet 188109 [packets to send 1062, broken 1061] [08:37:19]ProducePacketName [08:37:19]name=ofd_packets/00188109 [08:37:19]OFD Sender: To server: pG, [08:37:19]CommunicateWithHost lk.salyk.kg:30040 [08:37:19]ConnectInit lk.salyk.kg [08:37:20]Connected sock=10 [08:37:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 70 34 0D 01 58 5D 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8A 00 00 00 F4 03 04 00 40 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DE 02 00 35 04 06 00 B0 7A 41 AC 6C DF B5 7F A2 64 2F DB 1D 32 [08:37:20]Write to MH i2c: 01 00 00 33 2D 60 [08:37:20]Write i2c OK [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: 01 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: 01 07 00 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: 01 07 00 33 2D 00 00 00 00 00 5D 0C D0 [08:37:20]RasterBufferAndPrint [08:37:20]line [08:37:20]line [08:37:20]line [08:37:20]line [08:37:20]line [08:37:20]written 0, free lines is 3168 [08:37:20]MH_Cut [08:37:20]Write to MH i2c: D1 01 00 3A 2D 01 39 [08:37:20]Write i2c OK [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: D1 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: D1 01 00 [08:37:20]MH_I2C_Read... [08:37:20]Read from MH i2c: D1 01 00 3A 2D 00 38 [08:37:20]Write to MH i2c: 01 00 00 3B 2D 68 [08:37:20]Write i2c OK [08:37:20]MH_I2C_Read... [08:37:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 6B 47 00 07 ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DE 02 00 F4 03 04 00 2E 0E 17 67 B6 04 01 00 00 D3 5F 4C 36 AF D4 9B 20 [08:37:20]CommunicateWithHost err = 0 [08:37:20]CheckOFDResponse [08:37:20]1017 (14) - 77093643461234 [08:37:20]1041 (16) - 0000000000965340 [08:37:20]1040 (4) - 188109 [08:37:20]1012 (4) - 22.10.2024 02:30 [08:37:20]1206 (1) - 0 [08:37:20]OFD Sender: Remove packet 188109 [08:37:20]ProducePacketName [08:37:20]name=ofd_packets/00188109 [08:37:20]NVStorageDeleteData [08:37:21]OFD Sender: No OFD packet to send [08:37:21]*** Cut start [08:37:21]*** Partial cut [08:37:21]*** CUTSNS_PIN = 1 [08:37:21]*** CUTSNS_PIN = 0 [08:37:21]*** Brake cut motor [08:37:22]Read from MH i2c: 01 [08:37:22]MH_I2C_Read... [08:37:22]*** Stop cut motor [08:37:22]*** Cut end [08:37:22]Read from MH i2c: 01 07 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: 01 07 00 3B 2D 00 00 00 00 00 FF 0F 7D [08:37:22]process_action close_receipt done [08:37:22]requested_data is exist [08:37:22]produce_requested_data [08:37:22]requested_item fm.sn is exist - process it [08:37:22]wFMCommunicate request_size=4 [08:37:22]MH_SAM_APDU [08:37:22]CAPDU: 80 11 00 00 [08:37:22]Write to MH i2c: E2 08 00 3C 2D 80 11 00 00 00 00 00 00 E3 [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 17 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 17 00 3C 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [08:37:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:37:22]wFMCommunicate OK [08:37:22]requested_item fd.num is exist - process it [08:37:22]SAM_PROTO_GetFieldsCounters [08:37:22]wFMCommunicate request_size=4 [08:37:22]MH_SAM_APDU [08:37:22]CAPDU: 80 13 00 00 [08:37:22]Write to MH i2c: E2 08 00 3D 2D 80 13 00 00 00 00 00 00 E6 [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 62 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 62 00 3D 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [08:37:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8A 00 00 00 5E 04 04 00 8A 00 00 00 57 04 04 00 8B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:37:22]wFMCommunicate OK [08:37:22]SAM_PROTO_GetFieldsCounters done [08:37:22]requested_item shift.num is exist - process it [08:37:22]requested_item shift.opened is exist - process it [08:37:22]req_shift_opened [08:37:22]FM_GetShiftState [08:37:22]SAM_PROTO_GetShiftState [08:37:22]wFMCommunicate request_size=4 [08:37:22]MH_SAM_APDU [08:37:22]CAPDU: 80 13 01 00 [08:37:22]Write to MH i2c: E2 08 00 3E 2D 80 13 01 00 00 00 00 00 E8 [08:37:22]Write i2c OK [08:37:22]MH_I2C_Read... [08:37:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:37:22]Read from MH i2c: E2 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 0E 00 [08:37:22]MH_I2C_Read... [08:37:22]Read from MH i2c: E2 0E 00 3E 2D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [08:37:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:37:22]wFMCommunicate OK [08:37:22]SAM_PROTO_GetShiftState done [08:37:22]FM_GetShiftState done [08:37:22]req_shift_opened done [08:37:22]requested_item shift.open_date is exist - process it [08:37:22]req_shift_open_date [08:37:22]req_shift_open_date done [08:37:22]produce_requested_data done [08:37:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188109,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:37:22]process_action_free close_receipt [08:37:22]json_value_free [08:37:22]json_value_free done [08:37:22]process_json_proto returns [08:37:22]Send response to host [08:37:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188109,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:37:22]free response buf [08:37:22]execute_script done [08:37:22]execute_script returns [08:37:22]free content buf [08:37:22]Sock 9.Close socket [08:37:22]Sock 9.Thread stoped [08:37:26]OFD Sender: No OFD packet to send [08:37:31]OFD Sender: No OFD packet to send [08:37:36]OFD Sender: No OFD packet to send [08:37:41]OFD Sender: No OFD packet to send [08:37:46]OFD Sender: No OFD packet to send [08:37:51]OFD Sender: No OFD packet to send [08:37:56]OFD Sender: No OFD packet to send [08:38:01]OFD Sender: No OFD packet to send [08:38:06]OFD Sender: No OFD packet to send [08:38:11]OFD Sender: No OFD packet to send [08:38:16]OFD Sender: No OFD packet to send [08:38:21]OFD Sender: No OFD packet to send [08:38:26]OFD Sender: No OFD packet to send [08:38:31]OFD Sender: No OFD packet to send [08:38:36]OFD Sender: No OFD packet to send [08:38:41]OFD Sender: No OFD packet to send [08:38:46]OFD Sender: No OFD packet to send [08:38:48]accept exits with 8 [08:38:48]New connection [08:38:48]New thread 3067198820 created [08:38:48]Thread 3067055460 joined [08:38:48]Waiting for new connection... [08:38:48] Sock 8.Parse request [08:38:48]Sock 8.Check first char [08:38:48]Sock 8.First char is OK [08:38:48]request: POST /json_proto HTTP/1.0 [08:38:48]Method: POST [08:38:48]URL: /json_proto [08:38:48]Method is POST - this is cgi request [08:38:48]url: /json_proto [08:38:48]query_string will be loaded in cgi processing [08:38:48]execute_cgi json_proto POST (null) [08:38:48]execute_cgi path=json_proto method=POST [08:38:48]POST find Content-Length [08:38:48]Host: 172.17.42.131:8080 [08:38:48]Content-Length: 677 [08:38:48]Content-Type: application/json [08:38:48] [08:38:48]POST finish read [08:38:48]Found Content-Length = 677 [08:38:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:48]execute_script... [08:38: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)210162", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:38:48]POST & json_proto [08:38:48]process_json_proto [08:38:48]json parsed OK: [08:38:48]protocol is kg_v1.0 [08:38:48]action value=close_receipt [08:38:48]process_action close_receipt [08:38:48]cmd_close_receipt [08:38:48]MH_GetDate [08:38:48]Write to MH i2c: F0 00 00 3F 2D 5B [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: F0 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: F0 09 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: F0 09 00 3F 2D 00 9B 64 17 67 A0 18 CA 66 C9 [08:38:48]GetLastDocTimeStamp 1729586240 [08:38:48]current date 1729586331 [08:38:48]FM_GetShiftState [08:38:48]SAM_PROTO_GetShiftState [08:38:48]wFMCommunicate request_size=4 [08:38:48]MH_SAM_APDU [08:38:48]CAPDU: 80 13 01 00 [08:38:48]Write to MH i2c: E2 08 00 40 2D 80 13 01 00 00 00 00 00 EA [08:38:48]Write i2c OK [08:38:48]MH_I2C_Read... [08:38:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:48]Read from MH i2c: E2 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 0E 00 [08:38:48]MH_I2C_Read... [08:38:48]Read from MH i2c: E2 0E 00 40 2D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DF [08:38:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:38:48]wFMCommunicate OK [08:38:48]SAM_PROTO_GetShiftState done [08:38:48]FM_GetShiftState done [08:38:48]opened in 1729556094 [08:38:48]opened+sec_in_day 1729642494 [08:38:48]quantity*price = 50041 [08:38:48]sum+1 = 50042 [08:38:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 139 22.10.2024 08:38 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188110 ФПД: 281440528584344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188110&fm=281440528584344&tin=02508201610067®Number=0000000000100030&sum=50000 [08:38:49]StoreToDocumentArchive [08:38:49]shift 461 fd 188110 [08:38:49]save to /storage/0461/doc_00188110 [08:38:49]save last doc name /storage/0461/doc_00188110 to /storage/kkm_last_doc_name [08:38:49]save OK [08:38:49]Clear old archive folders... [08:38:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:38:49]tlvbuf is 01BD21E0 [08:38:49]SAM_PROTO_ClearQueue [08:38:49]wFMCommunicate request_size=4 [08:38:49]MH_SAM_APDU [08:38:49]CAPDU: 80 09 00 00 [08:38:49]Write to MH i2c: E2 08 00 4D 2D 80 09 00 00 00 00 00 00 EC [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:38:49]Read from MH i2c: E2 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 03 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 03 00 4D 2D 00 90 00 EE [08:38:49]RAPDU: 90 00 [08:38:49]wFMCommunicate OK [08:38:49]SAM_PROTO_ClearQueue done [08:38:49]KKMCreateOFDPacket [08:38:49]OFDProtocolAddRootSTLVToBuf [08:38:49]FM_MakeSignedData [08:38:49]FM_MakeSignedData [08:38:49]SAM_PROTO_SignData [08:38:49]wFMCommunicate request_size=4 [08:38:49]MH_SAM_APDU [08:38:49]CAPDU: 80 0D 01 02 [08:38:49]Write to MH i2c: E2 08 00 4E 2D 80 0D 01 02 00 00 00 00 F4 [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:38:49]Read from MH i2c: E2 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 03 00 [08:38:49]MH_I2C_Read... [08:38:49]Read from MH i2c: E2 03 00 4E 2D 00 90 00 EF [08:38:49]RAPDU: 90 00 [08:38:49]wFMCommunicate OK [08:38:49]wFMCommunicate request_size=255 [08:38:49]MH_SAM_APDU [08:38: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9B 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DE 02 00 35 04 06 00 FF [08:38:49]Write to MH i2c: E2 02 01 4F 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9B 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DE 02 00 35 04 06 00 FF 00 00 EA [08:38:49]Write i2c OK [08:38:49]MH_I2C_Read... [08:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:50]Read from MH i2c: E2 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 4F 2D 00 90 00 F0 [08:38:50]RAPDU: 90 00 [08:38:50]wFMCommunicate OK [08:38:50]wFMCommunicate request_size=10 [08:38:50]MH_SAM_APDU [08:38:50]CAPDU: 80 0D 02 02 05 F7 FA BB 4E 98 [08:38:50]Write to MH i2c: E2 0D 00 50 2D 80 0D 02 02 05 00 F7 FA BB 4E 98 00 00 93 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:38:50]Read from MH i2c: E2 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 03 00 50 2D 00 90 00 F1 [08:38:50]RAPDU: 90 00 [08:38:50]wFMCommunicate OK [08:38:50]wFMCommunicate request_size=4 [08:38:50]MH_SAM_APDU [08:38:50]CAPDU: 80 0D 03 02 [08:38:50]Write to MH i2c: E2 08 00 51 2D 80 0D 03 02 00 00 00 00 F9 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:38:50]Read from MH i2c: E2 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 0B 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 0B 00 51 2D 00 9A B5 03 77 F1 44 C5 37 90 00 F4 [08:38:50]RAPDU: 9A B5 03 77 F1 44 C5 37 90 00 [08:38:50]wFMCommunicate OK [08:38:50]SAM_PROTO_SignData done [08:38:50]FM_MakeSignedData done [08:38:50]CreateOFDProtocolMessage [08:38:50]wFMCommunicate request_size=4 [08:38:50]MH_SAM_APDU [08:38:50]CAPDU: 80 11 00 00 [08:38:50]Write to MH i2c: E2 08 00 52 2D 80 11 00 00 00 00 00 00 F9 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:50]Read from MH i2c: E2 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 17 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: E2 17 00 52 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [08:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:38:50]wFMCommunicate OK [08:38:50]CreateOFDProtocolMessage done [08:38:50]OFDSenderStorePacket 188110 [08:38:50]StoreOFDPacket docnum=188110 [08:38:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C 13 07 01 20 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9B 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DE 02 00 35 04 06 00 FF F7 FA BB 4E 98 9A B5 03 77 F1 44 C5 37 [08:38:50]CheckFolder [08:38:50]dirname=/storage/ofd_packets [08:38:50]CheckFolder done [08:38:50]ProducePacketName [08:38:50]name=ofd_packets/00188110 [08:38:50]NVStorageSaveData ofd_packets/00188110 [08:38:50]File name is /storage/ofd_packets/00188110 [08:38:50]Write 301 bytes [08:38:50]NVStorageSaveData done [08:38:50]OFDSenderStorePacket done [08:38:50]KKMCreateOFDPacket done [08:38:50]NVStorageSaveData kkm_last_timestamp [08:38:50]File name is /storage/kkm_last_timestamp [08:38:50]Write 4 bytes [08:38:50]NVStorageSaveData done [08:38:50]ExternCall_PrintAddStr [08:38:50]wPrintStart [08:38:50]Write to MH i2c: 01 00 00 53 2D 80 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 07 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 07 00 53 2D 00 00 00 00 00 FF 0F 95 [08:38:50]RasterBufferAndPrint [08:38:50]line Счет N : (1)210162 [08:38:50]line ИНН: 02508201610067 [08:38:50]line Контрольно-Кассовый Чек [08:38:50]line ПРОДАЖА [08:38:50]line ТРК (МРК, ГНК) : 12 [08:38:50]line Товар: 2710124130 [08:38:50]line Аи-92-К-3 [08:38:50]line 7.480 * 66.90 [08:38:50]line = 500.41 [08:38:50]line НДС 12% НСП 1% [08:38:50]line > о реализуемом товаре [08:38:50]line ОКРУГЛЕНИЕ: -0.41 [08:38:50]line ИТОГО: 500.00 [08:38:50]line Внесено: 500.00 [08:38:50]line СДАЧА: 0.00 [08:38:50]line НСП 1% : 4.43 [08:38:50]line НДС 12% : 53.14 [08:38:50]line Наличными: 500.00 [08:38:50]line Безнал.: 0.00 [08:38:50]line Место: АЗС № 86 "Партнер Нефть" [08:38:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:38:50]line СНО: Общий режим [08:38:50]line Чек 139 22.10.2024 08:38 [08:38:50]line Смена: 461 ФФД: 1.0 [08:38:50]line ЗНМ: 0300000155 [08:38:50]line РНМ: 0000000000100030 [08:38:50]line Версия ККМ: 001 [08:38:50]line ФМ: 0000000000965340 [08:38:50]line ФД: 188110 [08:38:50]line ФПД: 281440528584344 [08:38:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T083851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188110&fm=281440528584344&tin=02508201610067®Number=0000000000100030&sum=50000 [08:38:50]written 0, free lines is 4095 [08:38:50]OFD Sender: Processing packet 188110 [packets to send 1062, broken 1061] [08:38:50]ProducePacketName [08:38:50]name=ofd_packets/00188110 [08:38:50]OFD Sender: To server: pG, [08:38:50]CommunicateWithHost lk.salyk.kg:30040 [08:38:50]ConnectInit lk.salyk.kg [08:38:50]Connected sock=10 [08:38:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C 13 07 01 20 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 9B 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DE 02 00 35 04 06 00 FF F7 FA BB 4E 98 9A B5 03 77 F1 44 C5 37 [08:38:50]Write to MH i2c: 01 00 00 7E 2D AB [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 07 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: 01 07 00 7E 2D 00 00 00 00 00 5B 0C 19 [08:38:50]RasterBufferAndPrint [08:38:50]line [08:38:50]line [08:38:50]line [08:38:50]line [08:38:50]line [08:38:50]written 0, free lines is 3167 [08:38:50]MH_Cut [08:38:50]Write to MH i2c: D1 01 00 85 2D 01 84 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: D1 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: D1 01 00 [08:38:50]MH_I2C_Read... [08:38:50]Read from MH i2c: D1 01 00 85 2D 00 83 [08:38:50]Write to MH i2c: 01 00 00 86 2D B3 [08:38:50]Write i2c OK [08:38:50]MH_I2C_Read... [08:38:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 F5 47 00 AB 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DE 02 00 F4 03 04 00 88 0E 17 67 B6 04 01 00 00 C2 F1 6F E2 64 AF F5 3C [08:38:51]CommunicateWithHost err = 0 [08:38:51]CheckOFDResponse [08:38:51]1017 (14) - 77093643461234 [08:38:51]1041 (16) - 0000000000965340 [08:38:51]1040 (4) - 188110 [08:38:51]1012 (4) - 22.10.2024 02:31 [08:38:51]1206 (1) - 0 [08:38:51]OFD Sender: Remove packet 188110 [08:38:51]ProducePacketName [08:38:51]name=ofd_packets/00188110 [08:38:51]NVStorageDeleteData [08:38:51]OFD Sender: No OFD packet to send [08:38:52]*** Cut start [08:38:52]*** Partial cut [08:38:52]*** CUTSNS_PIN = 1 [08:38:52]*** CUTSNS_PIN = 0 [08:38:52]*** Brake cut motor [08:38:52]Read from MH i2c: 01 [08:38:52]MH_I2C_Read... [08:38:52]*** Stop cut motor [08:38:52]*** Cut end [08:38:52]Read from MH i2c: 01 07 00 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: 01 07 00 86 2D 00 00 00 00 00 FF 0F C8 [08:38:52]process_action close_receipt done [08:38:52]requested_data is exist [08:38:52]produce_requested_data [08:38:52]requested_item fm.sn is exist - process it [08:38:52]wFMCommunicate request_size=4 [08:38:52]MH_SAM_APDU [08:38:52]CAPDU: 80 11 00 00 [08:38:52]Write to MH i2c: E2 08 00 87 2D 80 11 00 00 00 00 00 00 2E [08:38:52]Write i2c OK [08:38:52]MH_I2C_Read... [08:38:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:38:52]Read from MH i2c: E2 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: E2 17 00 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: E2 17 00 87 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [08:38:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:38:52]wFMCommunicate OK [08:38:52]requested_item fd.num is exist - process it [08:38:52]SAM_PROTO_GetFieldsCounters [08:38:52]wFMCommunicate request_size=4 [08:38:52]MH_SAM_APDU [08:38:52]CAPDU: 80 13 00 00 [08:38:52]Write to MH i2c: E2 08 00 88 2D 80 13 00 00 00 00 00 00 31 [08:38:52]Write i2c OK [08:38:52]MH_I2C_Read... [08:38:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:38:52]Read from MH i2c: E2 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: E2 62 00 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: E2 62 00 88 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 55 [08:38:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8B 00 00 00 5E 04 04 00 8B 00 00 00 57 04 04 00 8C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:38:52]wFMCommunicate OK [08:38:52]SAM_PROTO_GetFieldsCounters done [08:38:52]requested_item shift.num is exist - process it [08:38:52]requested_item shift.opened is exist - process it [08:38:52]req_shift_opened [08:38:52]FM_GetShiftState [08:38:52]SAM_PROTO_GetShiftState [08:38:52]wFMCommunicate request_size=4 [08:38:52]MH_SAM_APDU [08:38:52]CAPDU: 80 13 01 00 [08:38:52]Write to MH i2c: E2 08 00 89 2D 80 13 01 00 00 00 00 00 33 [08:38:52]Write i2c OK [08:38:52]MH_I2C_Read... [08:38:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:38:52]Read from MH i2c: E2 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: E2 0E 00 [08:38:52]MH_I2C_Read... [08:38:52]Read from MH i2c: E2 0E 00 89 2D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 28 [08:38:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:38:52]wFMCommunicate OK [08:38:52]SAM_PROTO_GetShiftState done [08:38:52]FM_GetShiftState done [08:38:52]req_shift_opened done [08:38:52]requested_item shift.open_date is exist - process it [08:38:52]req_shift_open_date [08:38:52]req_shift_open_date done [08:38:52]produce_requested_data done [08:38:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188110,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:38:53]process_action_free close_receipt [08:38:53]json_value_free [08:38:53]json_value_free done [08:38:53]process_json_proto returns [08:38:53]Send response to host [08:38:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188110,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:38:53]free response buf [08:38:53]execute_script done [08:38:53]execute_script returns [08:38:53]free content buf [08:38:53]Sock 8.Close socket [08:38:53]Sock 8.Thread stoped [08:38:56]OFD Sender: No OFD packet to send [08:39:01]OFD Sender: No OFD packet to send [08:39:06]OFD Sender: No OFD packet to send [08:39:11]OFD Sender: No OFD packet to send [08:39:16]OFD Sender: No OFD packet to send [08:39:21]OFD Sender: No OFD packet to send [08:39:26]OFD Sender: No OFD packet to send [08:39:31]OFD Sender: No OFD packet to send [08:39:36]OFD Sender: No OFD packet to send [08:39:41]OFD Sender: No OFD packet to send [08:39:46]OFD Sender: No OFD packet to send [08:39:51]OFD Sender: No OFD packet to send [08:39:56]OFD Sender: No OFD packet to send [08:40:01]OFD Sender: No OFD packet to send [08:40:06]OFD Sender: No OFD packet to send [08:40:11]OFD Sender: No OFD packet to send [08:40:16]OFD Sender: No OFD packet to send [08:40:21]OFD Sender: No OFD packet to send [08:40:22]accept exits with 9 [08:40:22]New connection [08:40:22]New thread 3067055460 created [08:40:22]Thread 3067198820 joined [08:40:22]Waiting for new connection... [08:40:22] Sock 9.Parse request [08:40:22]Sock 9.Check first char [08:40:22]Sock 9.First char is OK [08:40:22]request: POST /json_proto HTTP/1.0 [08:40:22]Method: POST [08:40:22]URL: /json_proto [08:40:22]Method is POST - this is cgi request [08:40:22]url: /json_proto [08:40:22]query_string will be loaded in cgi processing [08:40:22]execute_cgi json_proto POST (null) [08:40:22]execute_cgi path=json_proto method=POST [08:40:22]POST find Content-Length [08:40:22]Host: 172.17.42.131:8080 [08:40:22]Content-Length: 769 [08:40:22]Content-Type: application/json [08:40:22] [08:40:22]POST finish read [08:40:22]Found Content-Length = 769 [08:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:22]execute_script... [08:40: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)210163", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:40:22]POST & json_proto [08:40:22]process_json_proto [08:40:22]json parsed OK: [08:40:22]protocol is kg_v1.0 [08:40:22]action value=close_receipt [08:40:22]process_action close_receipt [08:40:22]cmd_close_receipt [08:40:22]MH_GetDate [08:40:22]Write to MH i2c: F0 00 00 8A 2D A6 [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: F0 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: F0 09 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: F0 09 00 8A 2D 00 F9 64 17 67 A0 18 CA 66 72 [08:40:22]GetLastDocTimeStamp 1729586331 [08:40:22]current date 1729586425 [08:40:22]FM_GetShiftState [08:40:22]SAM_PROTO_GetShiftState [08:40:22]wFMCommunicate request_size=4 [08:40:22]MH_SAM_APDU [08:40:22]CAPDU: 80 13 01 00 [08:40:22]Write to MH i2c: E2 08 00 8B 2D 80 13 01 00 00 00 00 00 35 [08:40:22]Write i2c OK [08:40:22]MH_I2C_Read... [08:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:22]Read from MH i2c: E2 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 0E 00 [08:40:22]MH_I2C_Read... [08:40:22]Read from MH i2c: E2 0E 00 8B 2D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2A [08:40:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:40:22]wFMCommunicate OK [08:40:22]SAM_PROTO_GetShiftState done [08:40:22]FM_GetShiftState done [08:40:22]opened in 1729556094 [08:40:22]opened+sec_in_day 1729642494 [08:40:22]quantity*price = 100015 [08:40:22]sum+1 = 100017 [08:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 140 22.10.2024 08:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188111 ФПД: 120889629299753 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188111&fm=120889629299753&tin=02508201610067®Number=0000000000100030&sum=100016 [08:40:23]StoreToDocumentArchive [08:40:23]shift 461 fd 188111 [08:40:23]save to /storage/0461/doc_00188111 [08:40:23]save last doc name /storage/0461/doc_00188111 to /storage/kkm_last_doc_name [08:40:23]save OK [08:40:23]Clear old archive folders... [08:40:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:40:23]tlvbuf is 01BAD230 [08:40:23]SAM_PROTO_ClearQueue [08:40:23]wFMCommunicate request_size=4 [08:40:23]MH_SAM_APDU [08:40:23]CAPDU: 80 09 00 00 [08:40:23]Write to MH i2c: E2 08 00 98 2D 80 09 00 00 00 00 00 00 37 [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:40:23]Read from MH i2c: E2 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 03 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 03 00 98 2D 00 90 00 39 [08:40:23]RAPDU: 90 00 [08:40:23]wFMCommunicate OK [08:40:23]SAM_PROTO_ClearQueue done [08:40:23]KKMCreateOFDPacket [08:40:23]OFDProtocolAddRootSTLVToBuf [08:40:23]FM_MakeSignedData [08:40:23]FM_MakeSignedData [08:40:23]SAM_PROTO_SignData [08:40:23]wFMCommunicate request_size=4 [08:40:23]MH_SAM_APDU [08:40:23]CAPDU: 80 0D 01 02 [08:40:23]Write to MH i2c: E2 08 00 99 2D 80 0D 01 02 00 00 00 00 3F [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:40:23]Read from MH i2c: E2 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 03 00 [08:40:23]MH_I2C_Read... [08:40:23]Read from MH i2c: E2 03 00 99 2D 00 90 00 3A [08:40:23]RAPDU: 90 00 [08:40:23]wFMCommunicate OK [08:40:23]wFMCommunicate request_size=255 [08:40:23]MH_SAM_APDU [08:40: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F9 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DE 02 00 35 04 06 00 6D [08:40:23]Write to MH i2c: E2 02 01 9A 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F9 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DE 02 00 35 04 06 00 6D 00 00 1D [08:40:23]Write i2c OK [08:40:23]MH_I2C_Read... [08:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:24]Read from MH i2c: E2 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 03 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 03 00 9A 2D 00 90 00 3B [08:40:24]RAPDU: 90 00 [08:40:24]wFMCommunicate OK [08:40:24]wFMCommunicate request_size=10 [08:40:24]MH_SAM_APDU [08:40:24]CAPDU: 80 0D 02 02 05 F2 CF 69 54 29 [08:40:24]Write to MH i2c: E2 0D 00 9B 2D 80 0D 02 02 05 00 F2 CF 69 54 29 00 00 F3 [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:40:24]Read from MH i2c: E2 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 03 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 03 00 9B 2D 00 90 00 3C [08:40:24]RAPDU: 90 00 [08:40:24]wFMCommunicate OK [08:40:24]wFMCommunicate request_size=4 [08:40:24]MH_SAM_APDU [08:40:24]CAPDU: 80 0D 03 02 [08:40:24]Write to MH i2c: E2 08 00 9C 2D 80 0D 03 02 00 00 00 00 44 [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:40:24]Read from MH i2c: E2 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 0B 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 0B 00 9C 2D 00 46 F7 1E 03 99 FF 53 7D 90 00 0B [08:40:24]RAPDU: 46 F7 1E 03 99 FF 53 7D 90 00 [08:40:24]wFMCommunicate OK [08:40:24]SAM_PROTO_SignData done [08:40:24]FM_MakeSignedData done [08:40:24]CreateOFDProtocolMessage [08:40:24]wFMCommunicate request_size=4 [08:40:24]MH_SAM_APDU [08:40:24]CAPDU: 80 11 00 00 [08:40:24]Write to MH i2c: E2 08 00 9D 2D 80 11 00 00 00 00 00 00 44 [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:24]Read from MH i2c: E2 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 17 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: E2 17 00 9D 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [08:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:40:24]wFMCommunicate OK [08:40:24]CreateOFDProtocolMessage done [08:40:24]OFDSenderStorePacket 188111 [08:40:24]StoreOFDPacket docnum=188111 [08:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 92 07 01 F3 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F9 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DE 02 00 35 04 06 00 6D F2 CF 69 54 29 46 F7 1E 03 99 FF 53 7D [08:40:24]CheckFolder [08:40:24]dirname=/storage/ofd_packets [08:40:24]CheckFolder done [08:40:24]ProducePacketName [08:40:24]name=ofd_packets/00188111 [08:40:24]NVStorageSaveData ofd_packets/00188111 [08:40:24]File name is /storage/ofd_packets/00188111 [08:40:24]Write 301 bytes [08:40:24]NVStorageSaveData done [08:40:24]OFDSenderStorePacket done [08:40:24]KKMCreateOFDPacket done [08:40:24]NVStorageSaveData kkm_last_timestamp [08:40:24]File name is /storage/kkm_last_timestamp [08:40:24]Write 4 bytes [08:40:24]NVStorageSaveData done [08:40:24]ExternCall_PrintAddStr [08:40:24]wPrintStart [08:40:24]Write to MH i2c: 01 00 00 9E 2D CB [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: 01 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: 01 07 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: 01 07 00 9E 2D 00 00 00 00 00 FF 0F E0 [08:40:24]RasterBufferAndPrint [08:40:24]line Счет N : (1)210163 [08:40:24]line ИНН: 02508201610067 [08:40:24]line Контрольно-Кассовый Чек [08:40:24]line ПРОДАЖА [08:40:24]line ТРК (МРК, ГНК) : 42 [08:40:24]line Товар: 2710124130 [08:40:24]line Аи-92-К-3 [08:40:24]line 14.950 * 66.90 [08:40:24]line = 1000.16 [08:40:24]line НДС 12% НСП 1% [08:40:24]line > о реализуемом товаре [08:40:24]line ИТОГО: 1000.16 [08:40:24]line НСП 1% : 8.85 [08:40:24]line НДС 12% : 106.21 [08:40:24]line Наличными: 0.00 [08:40:24]line Безнал.: 1000.16 [08:40:24]line Место: АЗС № 86 "Партнер Нефть" [08:40:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:40:24]line СНО: Общий режим [08:40:24]line Чек 140 22.10.2024 08:40 [08:40:24]line Смена: 461 ФФД: 1.0 [08:40:24]line ЗНМ: 0300000155 [08:40:24]line РНМ: 0000000000100030 [08:40:24]line Версия ККМ: 001 [08:40:24]line Платежная система: Mbank [08:40:24]line ФМ: 0000000000965340 [08:40:24]line ФД: 188111 [08:40:24]line ФПД: 120889629299753 [08:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188111&fm=120889629299753&tin=02508201610067®Number=0000000000100030&sum=100016 [08:40:24]written 0, free lines is 4095 [08:40:24]OFD Sender: Processing packet 188111 [packets to send 1062, broken 1061] [08:40:24]ProducePacketName [08:40:24]name=ofd_packets/00188111 [08:40:24]OFD Sender: To server: pG, [08:40:24]CommunicateWithHost lk.salyk.kg:30040 [08:40:24]ConnectInit lk.salyk.kg [08:40:24]Connected sock=10 [08:40:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 33 92 07 01 F3 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 00 00 00 F4 03 04 00 F9 64 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DE 02 00 35 04 06 00 6D F2 CF 69 54 29 46 F7 1E 03 99 FF 53 7D [08:40:24]Write to MH i2c: 01 00 00 C7 2D F4 [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: 01 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: 01 07 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: 01 07 00 C7 2D 00 00 00 00 00 8F 0C 96 [08:40:24]RasterBufferAndPrint [08:40:24]line [08:40:24]line [08:40:24]line [08:40:24]line [08:40:24]line [08:40:24]written 0, free lines is 3220 [08:40:24]MH_Cut [08:40:24]Write to MH i2c: D1 01 00 CE 2D 01 CD [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: D1 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: D1 01 00 [08:40:24]MH_I2C_Read... [08:40:24]Read from MH i2c: D1 01 00 CE 2D 00 CC [08:40:24]Write to MH i2c: 01 00 00 CF 2D FC [08:40:24]Write i2c OK [08:40:24]MH_I2C_Read... [08:40:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 57 59 47 00 56 77 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DE 02 00 F4 03 04 00 E6 0E 17 67 B6 04 01 00 00 A0 25 34 EF D1 A8 74 F4 [08:40:24]CommunicateWithHost err = 0 [08:40:24]CheckOFDResponse [08:40:24]1017 (14) - 77093643461234 [08:40:24]1041 (16) - 0000000000965340 [08:40:24]1040 (4) - 188111 [08:40:24]1012 (4) - 22.10.2024 02:33 [08:40:24]1206 (1) - 0 [08:40:24]OFD Sender: Remove packet 188111 [08:40:24]ProducePacketName [08:40:24]name=ofd_packets/00188111 [08:40:24]NVStorageDeleteData [08:40:25]OFD Sender: No OFD packet to send [08:40:25]*** Cut start [08:40:25]*** Partial cut [08:40:25]*** CUTSNS_PIN = 1 [08:40:25]*** CUTSNS_PIN = 0 [08:40:26]*** Brake cut motor [08:40:26]Read from MH i2c: 01 [08:40:26]MH_I2C_Read... [08:40:26]*** Stop cut motor [08:40:26]*** Cut end [08:40:26]Read from MH i2c: 01 07 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: 01 07 00 CF 2D 00 00 00 00 00 FF 0F 11 [08:40:26]process_action close_receipt done [08:40:26]requested_data is exist [08:40:26]produce_requested_data [08:40:26]requested_item fm.sn is exist - process it [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 11 00 00 [08:40:26]Write to MH i2c: E2 08 00 D0 2D 80 11 00 00 00 00 00 00 77 [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 17 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 17 00 D0 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [08:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:40:26]wFMCommunicate OK [08:40:26]requested_item fd.num is exist - process it [08:40:26]SAM_PROTO_GetFieldsCounters [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 13 00 00 [08:40:26]Write to MH i2c: E2 08 00 D1 2D 80 13 00 00 00 00 00 00 7A [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 62 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 62 00 D1 2D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 A2 [08:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8C 00 00 00 5E 04 04 00 8C 00 00 00 57 04 04 00 8D 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:40:26]wFMCommunicate OK [08:40:26]SAM_PROTO_GetFieldsCounters done [08:40:26]requested_item shift.num is exist - process it [08:40:26]requested_item shift.opened is exist - process it [08:40:26]req_shift_opened [08:40:26]FM_GetShiftState [08:40:26]SAM_PROTO_GetShiftState [08:40:26]wFMCommunicate request_size=4 [08:40:26]MH_SAM_APDU [08:40:26]CAPDU: 80 13 01 00 [08:40:26]Write to MH i2c: E2 08 00 D2 2D 80 13 01 00 00 00 00 00 7C [08:40:26]Write i2c OK [08:40:26]MH_I2C_Read... [08:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:40:26]Read from MH i2c: E2 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 0E 00 [08:40:26]MH_I2C_Read... [08:40:26]Read from MH i2c: E2 0E 00 D2 2D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [08:40:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:40:26]wFMCommunicate OK [08:40:26]SAM_PROTO_GetShiftState done [08:40:26]FM_GetShiftState done [08:40:26]req_shift_opened done [08:40:26]requested_item shift.open_date is exist - process it [08:40:26]req_shift_open_date [08:40:26]req_shift_open_date done [08:40:26]produce_requested_data done [08:40:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188111,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:40:26]process_action_free close_receipt [08:40:26]json_value_free [08:40:26]json_value_free done [08:40:26]process_json_proto returns [08:40:26]Send response to host [08:40:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188111,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:40:26]free response buf [08:40:26]execute_script done [08:40:26]execute_script returns [08:40:26]free content buf [08:40:26]Sock 9.Close socket [08:40:26]Sock 9.Thread stoped [08:40:30]OFD Sender: No OFD packet to send [08:40:35]OFD Sender: No OFD packet to send [08:40:40]OFD Sender: No OFD packet to send [08:40:45]OFD Sender: No OFD packet to send [08:40:50]OFD Sender: No OFD packet to send [08:40:55]OFD Sender: No OFD packet to send [08:41:00]OFD Sender: No OFD packet to send [08:41:05]OFD Sender: No OFD packet to send [08:41:10]OFD Sender: No OFD packet to send [08:41:15]OFD Sender: No OFD packet to send [08:41:20]OFD Sender: No OFD packet to send [08:41:25]OFD Sender: No OFD packet to send [08:41:30]OFD Sender: No OFD packet to send [08:41:35]OFD Sender: No OFD packet to send [08:41:40]OFD Sender: No OFD packet to send [08:41:45]OFD Sender: No OFD packet to send [08:41:50]OFD Sender: No OFD packet to send [08:41:55]OFD Sender: No OFD packet to send [08:42:00]OFD Sender: No OFD packet to send [08:42:05]OFD Sender: No OFD packet to send [08:42:10]OFD Sender: No OFD packet to send [08:42:15]OFD Sender: No OFD packet to send [08:42:20]OFD Sender: No OFD packet to send [08:42:25]OFD Sender: No OFD packet to send [08:42:30]OFD Sender: No OFD packet to send [08:42:35]OFD Sender: No OFD packet to send [08:42:41]OFD Sender: No OFD packet to send [08:42:46]OFD Sender: No OFD packet to send [08:42:51]OFD Sender: No OFD packet to send [08:42:56]OFD Sender: No OFD packet to send [08:43:01]OFD Sender: No OFD packet to send [08:43:06]OFD Sender: No OFD packet to send [08:43:11]OFD Sender: No OFD packet to send [08:43:16]OFD Sender: No OFD packet to send [08:43:21]OFD Sender: No OFD packet to send [08:43:26]OFD Sender: No OFD packet to send [08:43:31]OFD Sender: No OFD packet to send [08:43:36]OFD Sender: No OFD packet to send [08:43:41]OFD Sender: No OFD packet to send [08:43:46]OFD Sender: No OFD packet to send [08:43:51]OFD Sender: No OFD packet to send [08:43:56]OFD Sender: No OFD packet to send [08:44:01]OFD Sender: No OFD packet to send [08:44:06]OFD Sender: No OFD packet to send [08:44:11]OFD Sender: No OFD packet to send [08:44:16]OFD Sender: No OFD packet to send [08:44:21]OFD Sender: No OFD packet to send [08:44:26]OFD Sender: No OFD packet to send [08:44:31]OFD Sender: No OFD packet to send [08:44:36]OFD Sender: No OFD packet to send [08:44:41]OFD Sender: No OFD packet to send [08:44:46]OFD Sender: No OFD packet to send [08:44:50]accept exits with 8 [08:44:50]New connection [08:44:50]New thread 3067198820 created [08:44:50]Thread 3067055460 joined [08:44:50]Waiting for new connection... [08:44:50] Sock 8.Parse request [08:44:50]Sock 8.Check first char [08:44:50]Sock 8.First char is OK [08:44:50]request: POST /json_proto HTTP/1.0 [08:44:50]Method: POST [08:44:50]URL: /json_proto [08:44:50]Method is POST - this is cgi request [08:44:50]url: /json_proto [08:44:50]query_string will be loaded in cgi processing [08:44:50]execute_cgi json_proto POST (null) [08:44:50]execute_cgi path=json_proto method=POST [08:44:50]POST find Content-Length [08:44:50]Host: 172.17.42.131:8080 [08:44:50]Content-Length: 766 [08:44:50]Content-Type: application/json [08:44:50] [08:44:50]POST finish read [08:44:50]Found Content-Length = 766 [08:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:50]execute_script... [08:44: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)210164", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:44:50]POST & json_proto [08:44:50]process_json_proto [08:44:50]json parsed OK: [08:44:50]protocol is kg_v1.0 [08:44:50]action value=close_receipt [08:44:50]process_action close_receipt [08:44:50]cmd_close_receipt [08:44:50]MH_GetDate [08:44:50]Write to MH i2c: F0 00 00 D3 2D EF [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: F0 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: F0 09 00 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: F0 09 00 D3 2D 00 05 66 17 67 A0 18 CA 66 C9 [08:44:50]GetLastDocTimeStamp 1729586425 [08:44:50]current date 1729586693 [08:44:50]FM_GetShiftState [08:44:50]SAM_PROTO_GetShiftState [08:44:50]wFMCommunicate request_size=4 [08:44:50]MH_SAM_APDU [08:44:50]CAPDU: 80 13 01 00 [08:44:50]Write to MH i2c: E2 08 00 D4 2D 80 13 01 00 00 00 00 00 7E [08:44:50]Write i2c OK [08:44:50]MH_I2C_Read... [08:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:50]Read from MH i2c: E2 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: E2 0E 00 [08:44:50]MH_I2C_Read... [08:44:50]Read from MH i2c: E2 0E 00 D4 2D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 73 [08:44:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:44:50]wFMCommunicate OK [08:44:50]SAM_PROTO_GetShiftState done [08:44:50]FM_GetShiftState done [08:44:50]opened in 1729556094 [08:44:50]opened+sec_in_day 1729642494 [08:44:50]quantity*price = 70044 [08:44:50]sum+1 = 70046 [08:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 141 22.10.2024 08:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188112 ФПД: 122702659309269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188112&fm=122702659309269&tin=02508201610067®Number=0000000000100030&sum=70045 [08:44:51]StoreToDocumentArchive [08:44:51]shift 461 fd 188112 [08:44:51]save to /storage/0461/doc_00188112 [08:44:51]save last doc name /storage/0461/doc_00188112 to /storage/kkm_last_doc_name [08:44:51]save OK [08:44:51]Clear old archive folders... [08:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:44:51]tlvbuf is B6F94EF0 [08:44:51]SAM_PROTO_ClearQueue [08:44:51]wFMCommunicate request_size=4 [08:44:51]MH_SAM_APDU [08:44:51]CAPDU: 80 09 00 00 [08:44:51]Write to MH i2c: E2 08 00 E1 2D 80 09 00 00 00 00 00 00 80 [08:44:51]Write i2c OK [08:44:51]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 E1 2D 00 90 00 82 [08:44:52]RAPDU: 90 00 [08:44:52]wFMCommunicate OK [08:44:52]SAM_PROTO_ClearQueue done [08:44:52]KKMCreateOFDPacket [08:44:52]OFDProtocolAddRootSTLVToBuf [08:44:52]FM_MakeSignedData [08:44:52]FM_MakeSignedData [08:44:52]SAM_PROTO_SignData [08:44:52]wFMCommunicate request_size=4 [08:44:52]MH_SAM_APDU [08:44:52]CAPDU: 80 0D 01 02 [08:44:52]Write to MH i2c: E2 08 00 E2 2D 80 0D 01 02 00 00 00 00 88 [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 E2 2D 00 90 00 83 [08:44:52]RAPDU: 90 00 [08:44:52]wFMCommunicate OK [08:44:52]wFMCommunicate request_size=255 [08:44:52]MH_SAM_APDU [08:44: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DE 02 00 35 04 06 00 6F [08:44:52]Write to MH i2c: E2 02 01 E3 2D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DE 02 00 35 04 06 00 6F 00 00 9F [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 E3 2D 00 90 00 84 [08:44:52]RAPDU: 90 00 [08:44:52]wFMCommunicate OK [08:44:52]wFMCommunicate request_size=10 [08:44:52]MH_SAM_APDU [08:44:52]CAPDU: 80 0D 02 02 05 98 F0 6B CE D5 [08:44:52]Write to MH i2c: E2 0D 00 E4 2D 80 0D 02 02 05 00 98 F0 6B CE D5 00 00 2B [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 03 00 E4 2D 00 90 00 85 [08:44:52]RAPDU: 90 00 [08:44:52]wFMCommunicate OK [08:44:52]wFMCommunicate request_size=4 [08:44:52]MH_SAM_APDU [08:44:52]CAPDU: 80 0D 03 02 [08:44:52]Write to MH i2c: E2 08 00 E5 2D 80 0D 03 02 00 00 00 00 8D [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 0B 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 0B 00 E5 2D 00 C9 9F 1C E2 98 C6 1E F1 90 00 61 [08:44:52]RAPDU: C9 9F 1C E2 98 C6 1E F1 90 00 [08:44:52]wFMCommunicate OK [08:44:52]SAM_PROTO_SignData done [08:44:52]FM_MakeSignedData done [08:44:52]CreateOFDProtocolMessage [08:44:52]wFMCommunicate request_size=4 [08:44:52]MH_SAM_APDU [08:44:52]CAPDU: 80 11 00 00 [08:44:52]Write to MH i2c: E2 08 00 E6 2D 80 11 00 00 00 00 00 00 8D [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:52]Read from MH i2c: E2 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 17 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: E2 17 00 E6 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [08:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:44:52]wFMCommunicate OK [08:44:52]CreateOFDProtocolMessage done [08:44:52]OFDSenderStorePacket 188112 [08:44:52]StoreOFDPacket docnum=188112 [08:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D A4 07 01 4B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DE 02 00 35 04 06 00 6F 98 F0 6B CE D5 C9 9F 1C E2 98 C6 1E F1 [08:44:52]CheckFolder [08:44:52]dirname=/storage/ofd_packets [08:44:52]CheckFolder done [08:44:52]ProducePacketName [08:44:52]name=ofd_packets/00188112 [08:44:52]NVStorageSaveData ofd_packets/00188112 [08:44:52]File name is /storage/ofd_packets/00188112 [08:44:52]Write 301 bytes [08:44:52]NVStorageSaveData done [08:44:52]OFDSenderStorePacket done [08:44:52]KKMCreateOFDPacket done [08:44:52]NVStorageSaveData kkm_last_timestamp [08:44:52]File name is /storage/kkm_last_timestamp [08:44:52]Write 4 bytes [08:44:52]NVStorageSaveData done [08:44:52]ExternCall_PrintAddStr [08:44:52]wPrintStart [08:44:52]Write to MH i2c: 01 00 00 E7 2D 14 [08:44:52]Write i2c OK [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: 01 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: 01 07 00 [08:44:52]MH_I2C_Read... [08:44:52]Read from MH i2c: 01 07 00 E7 2D 00 00 00 00 00 FF 0F 29 [08:44:52]RasterBufferAndPrint [08:44:52]line Счет N : (1)210164 [08:44:52]line ИНН: 02508201610067 [08:44:52]line Контрольно-Кассовый Чек [08:44:52]line ПРОДАЖА [08:44:52]line ТРК (МРК, ГНК) : 13 [08:44:52]line Товар: 2710124500 [08:44:52]line Аи-95-К-3 [08:44:52]line 9.440 * 74.20 [08:44:52]line = 700.45 [08:44:52]line НДС 12% НСП 1% [08:44:52]line > о реализуемом товаре [08:44:52]line ИТОГО: 700.45 [08:44:52]line НСП 1% : 6.20 [08:44:52]line НДС 12% : 74.38 [08:44:52]line Наличными: 0.00 [08:44:52]line Безнал.: 700.45 [08:44:52]line Место: АЗС № 86 "Партнер Нефть" [08:44:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:44:52]line СНО: Общий режим [08:44:52]line Чек 141 22.10.2024 08:44 [08:44:52]line Смена: 461 ФФД: 1.0 [08:44:52]line ЗНМ: 0300000155 [08:44:52]line РНМ: 0000000000100030 [08:44:52]line Версия ККМ: 001 [08:44:52]line Платежная система: Mbank [08:44:52]line ФМ: 0000000000965340 [08:44:52]line ФД: 188112 [08:44:52]line ФПД: 122702659309269 [08:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084453&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188112&fm=122702659309269&tin=02508201610067®Number=0000000000100030&sum=70045 [08:44:52]written 0, free lines is 4095 [08:44:52]OFD Sender: Processing packet 188112 [packets to send 1062, broken 1061] [08:44:52]ProducePacketName [08:44:52]name=ofd_packets/00188112 [08:44:52]OFD Sender: To server: pG, [08:44:52]CommunicateWithHost lk.salyk.kg:30040 [08:44:52]ConnectInit lk.salyk.kg [08:44:52]Connected sock=10 [08:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8D A4 07 01 4B 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 05 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DE 02 00 35 04 06 00 6F 98 F0 6B CE D5 C9 9F 1C E2 98 C6 1E F1 [08:44:53]Write to MH i2c: 01 00 00 10 2E 3E [08:44:53]Write i2c OK [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: 01 [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: 01 07 00 [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: 01 07 00 10 2E 00 00 00 00 00 84 0C D5 [08:44:53]RasterBufferAndPrint [08:44:53]line [08:44:53]line [08:44:53]line [08:44:53]line [08:44:53]line [08:44:53]written 0, free lines is 3209 [08:44:53]MH_Cut [08:44:53]Write to MH i2c: D1 01 00 17 2E 01 17 [08:44:53]Write i2c OK [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: D1 [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: D1 01 00 [08:44:53]MH_I2C_Read... [08:44:53]Read from MH i2c: D1 01 00 17 2E 00 16 [08:44:53]Write to MH i2c: 01 00 00 18 2E 46 [08:44:53]Write i2c OK [08:44:53]MH_I2C_Read... [08:44:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 02 1B 47 00 28 B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DE 02 00 F4 03 04 00 F3 0F 17 67 B6 04 01 00 00 C6 36 4E 4A 2B 95 1B 88 [08:44:53]CommunicateWithHost err = 0 [08:44:53]CheckOFDResponse [08:44:53]1017 (14) - 77093643461234 [08:44:53]1041 (16) - 0000000000965340 [08:44:53]1040 (4) - 188112 [08:44:53]1012 (4) - 22.10.2024 02:37 [08:44:53]1206 (1) - 0 [08:44:53]OFD Sender: Remove packet 188112 [08:44:53]ProducePacketName [08:44:53]name=ofd_packets/00188112 [08:44:53]NVStorageDeleteData [08:44:53]OFD Sender: No OFD packet to send [08:44:54]*** Cut start [08:44:54]*** Partial cut [08:44:54]*** CUTSNS_PIN = 1 [08:44:54]*** CUTSNS_PIN = 0 [08:44:54]*** Brake cut motor [08:44:54]Read from MH i2c: 01 [08:44:54]MH_I2C_Read... [08:44:54]*** Stop cut motor [08:44:54]*** Cut end [08:44:54]Read from MH i2c: 01 07 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: 01 07 00 18 2E 00 00 00 00 00 FF 0F 5B [08:44:54]process_action close_receipt done [08:44:54]requested_data is exist [08:44:54]produce_requested_data [08:44:54]requested_item fm.sn is exist - process it [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 11 00 00 [08:44:54]Write to MH i2c: E2 08 00 19 2E 80 11 00 00 00 00 00 00 C1 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:44:54]Read from MH i2c: E2 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 17 00 [08:44:54]MH_I2C_Read... [08:44:54]Read from MH i2c: E2 17 00 19 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [08:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:44:54]wFMCommunicate OK [08:44:54]requested_item fd.num is exist - process it [08:44:54]SAM_PROTO_GetFieldsCounters [08:44:54]wFMCommunicate request_size=4 [08:44:54]MH_SAM_APDU [08:44:54]CAPDU: 80 13 00 00 [08:44:54]Write to MH i2c: E2 08 00 1A 2E 80 13 00 00 00 00 00 00 C4 [08:44:54]Write i2c OK [08:44:54]MH_I2C_Read... [08:44:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:44:55]Read from MH i2c: E2 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 62 00 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 62 00 1A 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 F0 [08:44:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8D 00 00 00 5E 04 04 00 8D 00 00 00 57 04 04 00 8E 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:44:55]wFMCommunicate OK [08:44:55]SAM_PROTO_GetFieldsCounters done [08:44:55]requested_item shift.num is exist - process it [08:44:55]requested_item shift.opened is exist - process it [08:44:55]req_shift_opened [08:44:55]FM_GetShiftState [08:44:55]SAM_PROTO_GetShiftState [08:44:55]wFMCommunicate request_size=4 [08:44:55]MH_SAM_APDU [08:44:55]CAPDU: 80 13 01 00 [08:44:55]Write to MH i2c: E2 08 00 1B 2E 80 13 01 00 00 00 00 00 C6 [08:44:55]Write i2c OK [08:44:55]MH_I2C_Read... [08:44:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:44:55]Read from MH i2c: E2 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 0E 00 [08:44:55]MH_I2C_Read... [08:44:55]Read from MH i2c: E2 0E 00 1B 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [08:44:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:44:55]wFMCommunicate OK [08:44:55]SAM_PROTO_GetShiftState done [08:44:55]FM_GetShiftState done [08:44:55]req_shift_opened done [08:44:55]requested_item shift.open_date is exist - process it [08:44:55]req_shift_open_date [08:44:55]req_shift_open_date done [08:44:55]produce_requested_data done [08:44:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188112,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:44:55]process_action_free close_receipt [08:44:55]json_value_free [08:44:55]json_value_free done [08:44:55]process_json_proto returns [08:44:55]Send response to host [08:44:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188112,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:44:55]free response buf [08:44:55]execute_script done [08:44:55]execute_script returns [08:44:55]free content buf [08:44:55]Sock 8.Close socket [08:44:55]Sock 8.Thread stoped [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:59]OFD Sender: No OFD packet to send [08:46:04]OFD Sender: No OFD packet to send [08:46:09]OFD Sender: No OFD packet to send [08:46:14]OFD Sender: No OFD packet to send [08:46:19]OFD Sender: No OFD packet to send [08:46:24]OFD Sender: No OFD packet to send [08:46:29]OFD Sender: No OFD packet to send [08:46:34]OFD Sender: No OFD packet to send [08:46:39]OFD Sender: No OFD packet to send [08:46:44]OFD Sender: No OFD packet to send [08:46:49]OFD Sender: No OFD packet to send [08:46:54]OFD Sender: No OFD packet to send [08:46:59]OFD Sender: No OFD packet to send [08:47:04]OFD Sender: No OFD packet to send [08:47:09]OFD Sender: No OFD packet to send [08:47:14]OFD Sender: No OFD packet to send [08:47:19]OFD Sender: No OFD packet to send [08:47:24]OFD Sender: No OFD packet to send [08:47:29]OFD Sender: No OFD packet to send [08:47:34]OFD Sender: No OFD packet to send [08:47:39]OFD Sender: No OFD packet to send [08:47:44]OFD Sender: No OFD packet to send [08:47:49]accept exits with 9 [08:47:49]New connection [08:47:49]New thread 3067055460 created [08:47:49]Thread 3067198820 joined [08:47:49]Waiting for new connection... [08:47:49] Sock 9.Parse request [08:47:49]Sock 9.Check first char [08:47:49]Sock 9.First char is OK [08:47:49]request: POST /json_proto HTTP/1.0 [08:47:49]Method: POST [08:47:49]URL: /json_proto [08:47:49]Method is POST - this is cgi request [08:47:49]url: /json_proto [08:47:49]query_string will be loaded in cgi processing [08:47:49]execute_cgi json_proto POST (null) [08:47:49]execute_cgi path=json_proto method=POST [08:47:49]POST find Content-Length [08:47:49]Host: 172.17.42.131:8080 [08:47:49]Content-Length: 688 [08:47:49]Content-Type: application/json [08:47:49] [08:47:49]POST finish read [08:47:49]Found Content-Length = 688 [08:47:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:49]execute_script... [08:47: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)210165", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:47:49]POST & json_proto [08:47:49]process_json_proto [08:47:49]json parsed OK: [08:47:49]protocol is kg_v1.0 [08:47:49]action value=close_receipt [08:47:49]process_action close_receipt [08:47:49]cmd_close_receipt [08:47:49]MH_GetDate [08:47:49]Write to MH i2c: F0 00 00 1C 2E 39 [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: F0 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: F0 09 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: F0 09 00 1C 2E 00 B7 66 17 67 A0 18 CA 66 C5 [08:47:49]GetLastDocTimeStamp 1729586693 [08:47:49]current date 1729586871 [08:47:49]FM_GetShiftState [08:47:49]SAM_PROTO_GetShiftState [08:47:49]wFMCommunicate request_size=4 [08:47:49]MH_SAM_APDU [08:47:49]CAPDU: 80 13 01 00 [08:47:49]Write to MH i2c: E2 08 00 1D 2E 80 13 01 00 00 00 00 00 C8 [08:47:49]Write i2c OK [08:47:49]MH_I2C_Read... [08:47:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:49]Read from MH i2c: E2 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 0E 00 [08:47:49]MH_I2C_Read... [08:47:49]Read from MH i2c: E2 0E 00 1D 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BD [08:47:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:47:49]wFMCommunicate OK [08:47:49]SAM_PROTO_GetShiftState done [08:47:49]FM_GetShiftState done [08:47:49]opened in 1729556094 [08:47:49]opened+sec_in_day 1729642494 [08:47:49]quantity*price = 180030 [08:47:49]sum+1 = 180031 [08:47:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 142 22.10.2024 08:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188113 ФПД: 143619174912403 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188113&fm=143619174912403&tin=02508201610067®Number=0000000000100030&sum=180000 [08:47:50]StoreToDocumentArchive [08:47:50]shift 461 fd 188113 [08:47:50]save to /storage/0461/doc_00188113 [08:47:50]save last doc name /storage/0461/doc_00188113 to /storage/kkm_last_doc_name [08:47:50]save OK [08:47:50]Clear old archive folders... [08:47:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:47:50]tlvbuf is 01C04420 [08:47:50]SAM_PROTO_ClearQueue [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 09 00 00 [08:47:50]Write to MH i2c: E2 08 00 2A 2E 80 09 00 00 00 00 00 00 CA [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 2A 2E 00 90 00 CC [08:47:50]RAPDU: 90 00 [08:47:50]wFMCommunicate OK [08:47:50]SAM_PROTO_ClearQueue done [08:47:50]KKMCreateOFDPacket [08:47:50]OFDProtocolAddRootSTLVToBuf [08:47:50]FM_MakeSignedData [08:47:50]FM_MakeSignedData [08:47:50]SAM_PROTO_SignData [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 0D 01 02 [08:47:50]Write to MH i2c: E2 08 00 2B 2E 80 0D 01 02 00 00 00 00 D2 [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 2B 2E 00 90 00 CD [08:47:50]RAPDU: 90 00 [08:47:50]wFMCommunicate OK [08:47:50]wFMCommunicate request_size=255 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 B8 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DE 02 [08:47:50]Write to MH i2c: E2 02 01 2C 2E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 B8 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DE 02 00 00 A7 [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 2C 2E 00 90 00 CE [08:47:50]RAPDU: 90 00 [08:47:50]wFMCommunicate OK [08:47:50]wFMCommunicate request_size=16 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 82 9E F1 E7 51 93 [08:47:50]Write to MH i2c: E2 13 00 2D 2E 80 0D 02 02 0B 00 00 35 04 06 00 82 9E F1 E7 51 93 00 00 06 [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 03 00 2D 2E 00 90 00 CF [08:47:50]RAPDU: 90 00 [08:47:50]wFMCommunicate OK [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 0D 03 02 [08:47:50]Write to MH i2c: E2 08 00 2E 2E 80 0D 03 02 00 00 00 00 D7 [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 0B 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 0B 00 2E 2E 00 18 A9 EE 49 5F 23 34 79 90 00 FF [08:47:50]RAPDU: 18 A9 EE 49 5F 23 34 79 90 00 [08:47:50]wFMCommunicate OK [08:47:50]SAM_PROTO_SignData done [08:47:50]FM_MakeSignedData done [08:47:50]CreateOFDProtocolMessage [08:47:50]wFMCommunicate request_size=4 [08:47:50]MH_SAM_APDU [08:47:50]CAPDU: 80 11 00 00 [08:47:50]Write to MH i2c: E2 08 00 2F 2E 80 11 00 00 00 00 00 00 D7 [08:47:50]Write i2c OK [08:47:50]MH_I2C_Read... [08:47:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:50]Read from MH i2c: E2 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 17 00 [08:47:50]MH_I2C_Read... [08:47:50]Read from MH i2c: E2 17 00 2F 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [08:47:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:47:50]wFMCommunicate OK [08:47:50]CreateOFDProtocolMessage done [08:47:50]OFDSenderStorePacket 188113 [08:47:50]StoreOFDPacket docnum=188113 [08:47:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 54 32 0D 01 C2 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 B8 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DE 02 00 35 04 06 00 82 9E F1 E7 51 93 18 A9 EE 49 5F 23 34 79 [08:47:50]CheckFolder [08:47:50]dirname=/storage/ofd_packets [08:47:50]CheckFolder done [08:47:50]ProducePacketName [08:47:50]name=ofd_packets/00188113 [08:47:50]NVStorageSaveData ofd_packets/00188113 [08:47:50]File name is /storage/ofd_packets/00188113 [08:47:50]Write 307 bytes [08:47:50]NVStorageSaveData done [08:47:50]OFDSenderStorePacket done [08:47:50]KKMCreateOFDPacket done [08:47:50]NVStorageSaveData kkm_last_timestamp [08:47:50]File name is /storage/kkm_last_timestamp [08:47:50]Write 4 bytes [08:47:50]NVStorageSaveData done [08:47:51]ExternCall_PrintAddStr [08:47:51]wPrintStart [08:47:51]Write to MH i2c: 01 00 00 30 2E 5E [08:47:51]Write i2c OK [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: 01 [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: 01 07 00 [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: 01 07 00 30 2E 00 00 00 00 00 FF 0F 73 [08:47:51]RasterBufferAndPrint [08:47:51]line Счет N : (1)210165 [08:47:51]line ИНН: 02508201610067 [08:47:51]line Контрольно-Кассовый Чек [08:47:51]line ПРОДАЖА [08:47:51]line ТРК (МРК, ГНК) : 21 [08:47:51]line Товар: 2710194210 [08:47:51]line D-ENERGY ДТ-К-5 [08:47:51]line 23.320 * 77.20 [08:47:51]line = 1800.30 [08:47:51]line НДС 12% НСП 1% [08:47:51]line > о реализуемом товаре [08:47:51]line ОКРУГЛЕНИЕ: -0.30 [08:47:51]line ИТОГО: 1800.00 [08:47:51]line Внесено: 1800.00 [08:47:51]line СДАЧА: 0.00 [08:47:51]line НСП 1% : 15.93 [08:47:51]line НДС 12% : 191.18 [08:47:51]line Наличными: 1800.00 [08:47:51]line Безнал.: 0.00 [08:47:51]line Место: АЗС № 86 "Партнер Нефть" [08:47:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:47:51]line СНО: Общий режим [08:47:51]line Чек 142 22.10.2024 08:47 [08:47:51]line Смена: 461 ФФД: 1.0 [08:47:51]line ЗНМ: 0300000155 [08:47:51]line РНМ: 0000000000100030 [08:47:51]line Версия ККМ: 001 [08:47:51]line ФМ: 0000000000965340 [08:47:51]line ФД: 188113 [08:47:51]line ФПД: 143619174912403 [08:47:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188113&fm=143619174912403&tin=02508201610067®Number=0000000000100030&sum=180000 [08:47:51]written 0, free lines is 4095 [08:47:51]OFD Sender: Processing packet 188113 [packets to send 1062, broken 1061] [08:47:51]ProducePacketName [08:47:51]name=ofd_packets/00188113 [08:47:51]OFD Sender: To server: pG, [08:47:51]CommunicateWithHost lk.salyk.kg:30040 [08:47:51]ConnectInit lk.salyk.kg [08:47:51]Connected sock=10 [08:47:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 54 32 0D 01 C2 77 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 B8 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DE 02 00 35 04 06 00 82 9E F1 E7 51 93 18 A9 EE 49 5F 23 34 79 [08:47:51]Write to MH i2c: 01 00 00 5B 2E 89 [08:47:51]Write i2c OK [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: 01 [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: 01 07 00 [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: 01 07 00 5B 2E 00 00 00 00 00 56 0C F2 [08:47:51]RasterBufferAndPrint [08:47:51]line [08:47:51]line [08:47:51]line [08:47:51]line [08:47:51]line [08:47:51]written 0, free lines is 3161 [08:47:51]MH_Cut [08:47:51]Write to MH i2c: D1 01 00 62 2E 01 62 [08:47:51]Write i2c OK [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: D1 [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: D1 01 00 [08:47:51]MH_I2C_Read... [08:47:51]Read from MH i2c: D1 01 00 62 2E 00 61 [08:47:51]Write to MH i2c: 01 00 00 63 2E 91 [08:47:51]Write i2c OK [08:47:51]MH_I2C_Read... [08:47:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 36 F7 47 00 7F 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DE 02 00 F4 03 04 00 A5 10 17 67 B6 04 01 00 00 FD 3E DC 93 B8 7F 9F 54 [08:47:51]CommunicateWithHost err = 0 [08:47:51]CheckOFDResponse [08:47:51]1017 (14) - 77093643461234 [08:47:51]1041 (16) - 0000000000965340 [08:47:51]1040 (4) - 188113 [08:47:51]1012 (4) - 22.10.2024 02:40 [08:47:51]1206 (1) - 0 [08:47:51]OFD Sender: Remove packet 188113 [08:47:51]ProducePacketName [08:47:51]name=ofd_packets/00188113 [08:47:51]NVStorageDeleteData [08:47:52]OFD Sender: No OFD packet to send [08:47:52]*** Cut start [08:47:52]*** Partial cut [08:47:52]*** CUTSNS_PIN = 1 [08:47:52]*** CUTSNS_PIN = 0 [08:47:53]*** Brake cut motor [08:47:53]Read from MH i2c: 01 [08:47:53]MH_I2C_Read... [08:47:53]*** Stop cut motor [08:47:53]*** Cut end [08:47:53]Read from MH i2c: 01 07 00 [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: 01 07 00 63 2E 00 00 00 00 00 FF 0F A6 [08:47:53]process_action close_receipt done [08:47:53]requested_data is exist [08:47:53]produce_requested_data [08:47:53]requested_item fm.sn is exist - process it [08:47:53]wFMCommunicate request_size=4 [08:47:53]MH_SAM_APDU [08:47:53]CAPDU: 80 11 00 00 [08:47:53]Write to MH i2c: E2 08 00 64 2E 80 11 00 00 00 00 00 00 0C [08:47:53]Write i2c OK [08:47:53]MH_I2C_Read... [08:47:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:47:53]Read from MH i2c: E2 [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: E2 17 00 [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: E2 17 00 64 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5A [08:47:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:47:53]wFMCommunicate OK [08:47:53]requested_item fd.num is exist - process it [08:47:53]SAM_PROTO_GetFieldsCounters [08:47:53]wFMCommunicate request_size=4 [08:47:53]MH_SAM_APDU [08:47:53]CAPDU: 80 13 00 00 [08:47:53]Write to MH i2c: E2 08 00 65 2E 80 13 00 00 00 00 00 00 0F [08:47:53]Write i2c OK [08:47:53]MH_I2C_Read... [08:47:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:47:53]Read from MH i2c: E2 [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: E2 62 00 [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: E2 62 00 65 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 3F [08:47:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8E 00 00 00 5E 04 04 00 8E 00 00 00 57 04 04 00 8F 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:47:53]wFMCommunicate OK [08:47:53]SAM_PROTO_GetFieldsCounters done [08:47:53]requested_item shift.num is exist - process it [08:47:53]requested_item shift.opened is exist - process it [08:47:53]req_shift_opened [08:47:53]FM_GetShiftState [08:47:53]SAM_PROTO_GetShiftState [08:47:53]wFMCommunicate request_size=4 [08:47:53]MH_SAM_APDU [08:47:53]CAPDU: 80 13 01 00 [08:47:53]Write to MH i2c: E2 08 00 66 2E 80 13 01 00 00 00 00 00 11 [08:47:53]Write i2c OK [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: E2 [08:47:53]MH_I2C_Read... [08:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:47:53]Read from MH i2c: E2 0E 00 [08:47:53]MH_I2C_Read... [08:47:53]Read from MH i2c: E2 0E 00 66 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 06 [08:47:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:47:53]wFMCommunicate OK [08:47:53]SAM_PROTO_GetShiftState done [08:47:53]FM_GetShiftState done [08:47:53]req_shift_opened done [08:47:53]requested_item shift.open_date is exist - process it [08:47:53]req_shift_open_date [08:47:53]req_shift_open_date done [08:47:53]produce_requested_data done [08:47:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188113,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:47:53]process_action_free close_receipt [08:47:53]json_value_free [08:47:53]json_value_free done [08:47:53]process_json_proto returns [08:47:53]Send response to host [08:47:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188113,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:47:53]free response buf [08:47:53]execute_script done [08:47:53]execute_script returns [08:47:53]free content buf [08:47:53]Sock 9.Close socket [08:47:53]Sock 9.Thread stoped [08:47:57]OFD Sender: No OFD packet to send [08:48:02]OFD Sender: No OFD packet to send [08:48:07]OFD Sender: No OFD packet to send [08:48:12]OFD Sender: No OFD packet to send [08:48:16]accept exits with 8 [08:48:16]New connection [08:48:16]New thread 3067198820 created [08:48:16]Thread 3067055460 joined [08:48:16]Waiting for new connection... [08:48:16] Sock 8.Parse request [08:48:16]Sock 8.Check first char [08:48:16]Sock 8.First char is OK [08:48:16]request: POST /json_proto HTTP/1.0 [08:48:16]Method: POST [08:48:16]URL: /json_proto [08:48:16]Method is POST - this is cgi request [08:48:16]url: /json_proto [08:48:16]query_string will be loaded in cgi processing [08:48:16]execute_cgi json_proto POST (null) [08:48:16]execute_cgi path=json_proto method=POST [08:48:16]POST find Content-Length [08:48:16]Host: 172.17.42.131:8080 [08:48:16]Content-Length: 682 [08:48:16]Content-Type: application/json [08:48:16] [08:48:16]POST finish read [08:48:16]Found Content-Length = 682 [08:48:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:16]execute_script... [08:48: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)210166", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:48:16]POST & json_proto [08:48:16]process_json_proto [08:48:16]json parsed OK: [08:48:16]protocol is kg_v1.0 [08:48:16]action value=close_receipt [08:48:16]process_action close_receipt [08:48:16]cmd_close_receipt [08:48:16]MH_GetDate [08:48:16]Write to MH i2c: F0 00 00 67 2E 84 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: F0 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: F0 09 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: F0 09 00 67 2E 00 D3 66 17 67 A0 18 CA 66 2C [08:48:16]GetLastDocTimeStamp 1729586872 [08:48:16]current date 1729586899 [08:48:16]FM_GetShiftState [08:48:16]SAM_PROTO_GetShiftState [08:48:16]wFMCommunicate request_size=4 [08:48:16]MH_SAM_APDU [08:48:16]CAPDU: 80 13 01 00 [08:48:16]Write to MH i2c: E2 08 00 68 2E 80 13 01 00 00 00 00 00 13 [08:48:16]Write i2c OK [08:48:16]MH_I2C_Read... [08:48:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:16]Read from MH i2c: E2 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0E 00 [08:48:16]MH_I2C_Read... [08:48:16]Read from MH i2c: E2 0E 00 68 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 08 [08:48:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:48:16]wFMCommunicate OK [08:48:16]SAM_PROTO_GetShiftState done [08:48:16]FM_GetShiftState done [08:48:16]opened in 1729556094 [08:48:16]opened+sec_in_day 1729642494 [08:48:16]quantity*price = 100015 [08:48:16]sum+1 = 100017 [08:48:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 143 22.10.2024 08:48 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188114 ФПД: 268678990853050 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188114&fm=268678990853050&tin=02508201610067®Number=0000000000100030&sum=100000 [08:48:17]StoreToDocumentArchive [08:48:17]shift 461 fd 188114 [08:48:17]save to /storage/0461/doc_00188114 [08:48:17]save last doc name /storage/0461/doc_00188114 to /storage/kkm_last_doc_name [08:48:17]save OK [08:48:17]Clear old archive folders... [08:48:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:48:17]tlvbuf is 01BEF020 [08:48:17]SAM_PROTO_ClearQueue [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 09 00 00 [08:48:17]Write to MH i2c: E2 08 00 75 2E 80 09 00 00 00 00 00 00 15 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 75 2E 00 90 00 17 [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]SAM_PROTO_ClearQueue done [08:48:17]KKMCreateOFDPacket [08:48:17]OFDProtocolAddRootSTLVToBuf [08:48:17]FM_MakeSignedData [08:48:17]FM_MakeSignedData [08:48:17]SAM_PROTO_SignData [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 01 02 [08:48:17]Write to MH i2c: E2 08 00 76 2E 80 0D 01 02 00 00 00 00 1D [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 76 2E 00 90 00 18 [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=255 [08:48:17]MH_SAM_APDU [08:48: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D3 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DE 02 00 35 04 06 00 F4 [08:48:17]Write to MH i2c: E2 02 01 77 2E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D3 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DE 02 00 35 04 06 00 F4 00 00 44 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 77 2E 00 90 00 19 [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=10 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 02 02 05 5C B3 CE F3 BA [08:48:17]Write to MH i2c: E2 0D 00 78 2E 80 0D 02 02 05 00 5C B3 CE F3 BA 00 00 B4 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 03 00 78 2E 00 90 00 1A [08:48:17]RAPDU: 90 00 [08:48:17]wFMCommunicate OK [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 0D 03 02 [08:48:17]Write to MH i2c: E2 08 00 79 2E 80 0D 03 02 00 00 00 00 22 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:17]Read from MH i2c: E2 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 0B 00 [08:48:17]MH_I2C_Read... [08:48:17]Read from MH i2c: E2 0B 00 79 2E 00 76 D2 AA 3B 59 51 C2 F0 90 00 AC [08:48:17]RAPDU: 76 D2 AA 3B 59 51 C2 F0 90 00 [08:48:17]wFMCommunicate OK [08:48:17]SAM_PROTO_SignData done [08:48:17]FM_MakeSignedData done [08:48:17]CreateOFDProtocolMessage [08:48:17]wFMCommunicate request_size=4 [08:48:17]MH_SAM_APDU [08:48:17]CAPDU: 80 11 00 00 [08:48:17]Write to MH i2c: E2 08 00 7A 2E 80 11 00 00 00 00 00 00 22 [08:48:17]Write i2c OK [08:48:17]MH_I2C_Read... [08:48:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:18]Read from MH i2c: E2 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: E2 17 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: E2 17 00 7A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [08:48:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:48:18]wFMCommunicate OK [08:48:18]CreateOFDProtocolMessage done [08:48:18]OFDSenderStorePacket 188114 [08:48:18]StoreOFDPacket docnum=188114 [08:48:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD AD 07 01 7C 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D3 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DE 02 00 35 04 06 00 F4 5C B3 CE F3 BA 76 D2 AA 3B 59 51 C2 F0 [08:48:18]CheckFolder [08:48:18]dirname=/storage/ofd_packets [08:48:18]CheckFolder done [08:48:18]ProducePacketName [08:48:18]name=ofd_packets/00188114 [08:48:18]NVStorageSaveData ofd_packets/00188114 [08:48:18]File name is /storage/ofd_packets/00188114 [08:48:18]Write 301 bytes [08:48:18]NVStorageSaveData done [08:48:18]OFDSenderStorePacket done [08:48:18]KKMCreateOFDPacket done [08:48:18]NVStorageSaveData kkm_last_timestamp [08:48:18]File name is /storage/kkm_last_timestamp [08:48:18]Write 4 bytes [08:48:18]NVStorageSaveData done [08:48:18]ExternCall_PrintAddStr [08:48:18]wPrintStart [08:48:18]Write to MH i2c: 01 00 00 7B 2E A9 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 7B 2E 00 00 00 00 00 FF 0F BE [08:48:18]RasterBufferAndPrint [08:48:18]line Счет N : (1)210166 [08:48:18]line ИНН: 02508201610067 [08:48:18]line Контрольно-Кассовый Чек [08:48:18]line ПРОДАЖА [08:48:18]line ТРК (МРК, ГНК) : 32 [08:48:18]line Товар: 2710124130 [08:48:18]line Аи-92-К-3 [08:48:18]line 14.950 * 66.90 [08:48:18]line = 1000.16 [08:48:18]line НДС 12% НСП 1% [08:48:18]line > о реализуемом товаре [08:48:18]line ОКРУГЛЕНИЕ: -0.16 [08:48:18]line ИТОГО: 1000.00 [08:48:18]line Внесено: 1000.00 [08:48:18]line СДАЧА: 0.00 [08:48:18]line НСП 1% : 8.85 [08:48:18]line НДС 12% : 106.21 [08:48:18]line Наличными: 1000.00 [08:48:18]line Безнал.: 0.00 [08:48:18]line Место: АЗС № 86 "Партнер Нефть" [08:48:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:48:18]line СНО: Общий режим [08:48:18]line Чек 143 22.10.2024 08:48 [08:48:18]line Смена: 461 ФФД: 1.0 [08:48:18]line ЗНМ: 0300000155 [08:48:18]line РНМ: 0000000000100030 [08:48:18]line Версия ККМ: 001 [08:48:18]line ФМ: 0000000000965340 [08:48:18]line ФД: 188114 [08:48:18]line ФПД: 268678990853050 [08:48:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084819&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188114&fm=268678990853050&tin=02508201610067®Number=0000000000100030&sum=100000 [08:48:18]OFD Sender: Processing packet 188114 [packets to send 1062, broken 1061] [08:48:18]ProducePacketName [08:48:18]name=ofd_packets/00188114 [08:48:18]OFD Sender: To server: pG, [08:48:18]CommunicateWithHost lk.salyk.kg:30040 [08:48:18]ConnectInit lk.salyk.kg [08:48:18]written 0, free lines is 4095 [08:48:18]Connected sock=10 [08:48:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD AD 07 01 7C 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 D3 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DE 02 00 35 04 06 00 F4 5C B3 CE F3 BA 76 D2 AA 3B 59 51 C2 F0 [08:48:18]Write to MH i2c: 01 00 00 A6 2E D4 [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: 01 07 00 A6 2E 00 00 00 00 00 65 0C 4C [08:48:18]RasterBufferAndPrint [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]line [08:48:18]written 0, free lines is 3177 [08:48:18]MH_Cut [08:48:18]Write to MH i2c: D1 01 00 AD 2E 01 AD [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 01 00 [08:48:18]MH_I2C_Read... [08:48:18]Read from MH i2c: D1 01 00 AD 2E 00 AC [08:48:18]Write to MH i2c: 01 00 00 AE 2E DC [08:48:18]Write i2c OK [08:48:18]MH_I2C_Read... [08:48:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE 17 47 00 E2 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DE 02 00 F4 03 04 00 C0 10 17 67 B6 04 01 00 00 9D 0D C0 89 F3 2B E2 FF [08:48:19]CommunicateWithHost err = 0 [08:48:19]CheckOFDResponse [08:48:19]1017 (14) - 77093643461234 [08:48:19]1041 (16) - 0000000000965340 [08:48:19]1040 (4) - 188114 [08:48:19]1012 (4) - 22.10.2024 02:41 [08:48:19]1206 (1) - 0 [08:48:19]OFD Sender: Remove packet 188114 [08:48:19]ProducePacketName [08:48:19]name=ofd_packets/00188114 [08:48:19]NVStorageDeleteData [08:48:19]OFD Sender: No OFD packet to send [08:48:20]*** Cut start [08:48:20]*** Partial cut [08:48:20]*** CUTSNS_PIN = 1 [08:48:20]*** CUTSNS_PIN = 0 [08:48:20]*** Brake cut motor [08:48:20]Read from MH i2c: 01 [08:48:20]MH_I2C_Read... [08:48:20]*** Stop cut motor [08:48:20]*** Cut end [08:48:20]Read from MH i2c: 01 07 00 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: 01 07 00 AE 2E 00 00 00 00 00 FF 0F F1 [08:48:20]process_action close_receipt done [08:48:20]requested_data is exist [08:48:20]produce_requested_data [08:48:20]requested_item fm.sn is exist - process it [08:48:20]wFMCommunicate request_size=4 [08:48:20]MH_SAM_APDU [08:48:20]CAPDU: 80 11 00 00 [08:48:20]Write to MH i2c: E2 08 00 AF 2E 80 11 00 00 00 00 00 00 57 [08:48:20]Write i2c OK [08:48:20]MH_I2C_Read... [08:48:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:20]Read from MH i2c: E2 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: E2 17 00 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: E2 17 00 AF 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A5 [08:48:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:48:20]wFMCommunicate OK [08:48:20]requested_item fd.num is exist - process it [08:48:20]SAM_PROTO_GetFieldsCounters [08:48:20]wFMCommunicate request_size=4 [08:48:20]MH_SAM_APDU [08:48:20]CAPDU: 80 13 00 00 [08:48:20]Write to MH i2c: E2 08 00 B0 2E 80 13 00 00 00 00 00 00 5A [08:48:20]Write i2c OK [08:48:20]MH_I2C_Read... [08:48:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:20]Read from MH i2c: E2 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: E2 62 00 [08:48:20]MH_I2C_Read... [08:48:20]Read from MH i2c: E2 62 00 B0 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 8E [08:48:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8F 00 00 00 5E 04 04 00 8F 00 00 00 57 04 04 00 90 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:20]wFMCommunicate OK [08:48:20]SAM_PROTO_GetFieldsCounters done [08:48:20]requested_item shift.num is exist - process it [08:48:20]requested_item shift.opened is exist - process it [08:48:20]req_shift_opened [08:48:20]FM_GetShiftState [08:48:20]SAM_PROTO_GetShiftState [08:48:20]wFMCommunicate request_size=4 [08:48:20]MH_SAM_APDU [08:48:20]CAPDU: 80 13 01 00 [08:48:20]Write to MH i2c: E2 08 00 B1 2E 80 13 01 00 00 00 00 00 5C [08:48:20]Write i2c OK [08:48:20]MH_I2C_Read... [08:48:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:21]Read from MH i2c: E2 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 0E 00 [08:48:21]MH_I2C_Read... [08:48:21]Read from MH i2c: E2 0E 00 B1 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [08:48:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:48:21]wFMCommunicate OK [08:48:21]SAM_PROTO_GetShiftState done [08:48:21]FM_GetShiftState done [08:48:21]req_shift_opened done [08:48:21]requested_item shift.open_date is exist - process it [08:48:21]req_shift_open_date [08:48:21]req_shift_open_date done [08:48:21]produce_requested_data done [08:48:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188114,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:48:21]process_action_free close_receipt [08:48:21]json_value_free [08:48:21]json_value_free done [08:48:21]process_json_proto returns [08:48:21]Send response to host [08:48:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188114,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:48:21]free response buf [08:48:21]execute_script done [08:48:21]execute_script returns [08:48:21]free content buf [08:48:21]Sock 8.Close socket [08:48:21]Sock 8.Thread stoped [08:48:24]OFD Sender: No OFD packet to send [08:48:29]OFD Sender: No OFD packet to send [08:48:34]OFD Sender: No OFD packet to send [08:48:39]OFD Sender: No OFD packet to send [08:48:44]OFD Sender: No OFD packet to send [08:48:49]OFD Sender: No OFD packet to send [08:48:51]accept exits with 9 [08:48:51]New connection [08:48:51]New thread 3067055460 created [08:48:51]Thread 3067198820 joined [08:48:51]Waiting for new connection... [08:48:51] Sock 9.Parse request [08:48:51]Sock 9.Check first char [08:48:51]Sock 9.First char is OK [08:48:51]request: POST /json_proto HTTP/1.0 [08:48:51]Method: POST [08:48:51]URL: /json_proto [08:48:51]Method is POST - this is cgi request [08:48:51]url: /json_proto [08:48:51]query_string will be loaded in cgi processing [08:48:51]execute_cgi json_proto POST (null) [08:48:51]execute_cgi path=json_proto method=POST [08:48:51]POST find Content-Length [08:48:51]Host: 172.17.42.131:8080 [08:48:51]Content-Length: 679 [08:48:51]Content-Type: application/json [08:48:51] [08:48:51]POST finish read [08:48:51]Found Content-Length = 679 [08:48:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:48:51]execute_script... [08:48: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)210167", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:48:51]POST & json_proto [08:48:51]process_json_proto [08:48:51]json parsed OK: [08:48:51]protocol is kg_v1.0 [08:48:51]action value=close_receipt [08:48:51]process_action close_receipt [08:48:51]cmd_close_receipt [08:48:51]MH_GetDate [08:48:51]Write to MH i2c: F0 00 00 B2 2E CF [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: F0 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: F0 09 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: F0 09 00 B2 2E 00 F5 66 17 67 A0 18 CA 66 99 [08:48:51]GetLastDocTimeStamp 1729586899 [08:48:51]current date 1729586933 [08:48:51]FM_GetShiftState [08:48:51]SAM_PROTO_GetShiftState [08:48:51]wFMCommunicate request_size=4 [08:48:51]MH_SAM_APDU [08:48:51]CAPDU: 80 13 01 00 [08:48:51]Write to MH i2c: E2 08 00 B3 2E 80 13 01 00 00 00 00 00 5E [08:48:51]Write i2c OK [08:48:51]MH_I2C_Read... [08:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:51]Read from MH i2c: E2 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 [08:48:51]MH_I2C_Read... [08:48:51]Read from MH i2c: E2 0E 00 B3 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 53 [08:48:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:48:51]wFMCommunicate OK [08:48:51]SAM_PROTO_GetShiftState done [08:48:51]FM_GetShiftState done [08:48:51]opened in 1729556094 [08:48:51]opened+sec_in_day 1729642494 [08:48:51]quantity*price = 100050 [08:48:51]sum+1 = 100052 [08:48:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 144 22.10.2024 08:48 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188115 ФПД: 108609696128148 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084853&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188115&fm=108609696128148&tin=02508201610067®Number=0000000000100030&sum=100000 [08:48:52]StoreToDocumentArchive [08:48:52]shift 461 fd 188115 [08:48:52]save to /storage/0461/doc_00188115 [08:48:52]save last doc name /storage/0461/doc_00188115 to /storage/kkm_last_doc_name [08:48:52]save OK [08:48:52]Clear old archive folders... [08:48:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:48:52]tlvbuf is 01BBC4D0 [08:48:52]SAM_PROTO_ClearQueue [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 09 00 00 [08:48:52]Write to MH i2c: E2 08 00 C0 2E 80 09 00 00 00 00 00 00 60 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 C0 2E 00 90 00 62 [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_ClearQueue done [08:48:52]KKMCreateOFDPacket [08:48:52]OFDProtocolAddRootSTLVToBuf [08:48:52]FM_MakeSignedData [08:48:52]FM_MakeSignedData [08:48:52]SAM_PROTO_SignData [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 01 02 [08:48:52]Write to MH i2c: E2 08 00 C1 2E 80 0D 01 02 00 00 00 00 68 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 C1 2E 00 90 00 63 [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]wFMCommunicate request_size=255 [08:48:52]MH_SAM_APDU [08:48: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 32 31 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 90 00 00 00 F4 03 04 00 F5 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DE 02 00 35 04 06 00 62 C7 AA 5B [08:48:52]Write to MH i2c: E2 02 01 C2 2E 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 F5 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DE 02 00 35 04 06 00 62 C7 AA 5B 00 00 EB [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 C2 2E 00 90 00 64 [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]wFMCommunicate request_size=7 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 02 02 02 5C 94 [08:48:52]Write to MH i2c: E2 0A 00 C3 2E 80 0D 02 02 02 00 5C 94 00 00 5F [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 03 00 C3 2E 00 90 00 65 [08:48:52]RAPDU: 90 00 [08:48:52]wFMCommunicate OK [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 0D 03 02 [08:48:52]Write to MH i2c: E2 08 00 C4 2E 80 0D 03 02 00 00 00 00 6D [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0B 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 0B 00 C4 2E 00 0F 7C EB 78 CB 20 36 AD 90 00 2A [08:48:52]RAPDU: 0F 7C EB 78 CB 20 36 AD 90 00 [08:48:52]wFMCommunicate OK [08:48:52]SAM_PROTO_SignData done [08:48:52]FM_MakeSignedData done [08:48:52]CreateOFDProtocolMessage [08:48:52]wFMCommunicate request_size=4 [08:48:52]MH_SAM_APDU [08:48:52]CAPDU: 80 11 00 00 [08:48:52]Write to MH i2c: E2 08 00 C5 2E 80 11 00 00 00 00 00 00 6D [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:52]Read from MH i2c: E2 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 17 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: E2 17 00 C5 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [08:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:48:52]wFMCommunicate OK [08:48:52]CreateOFDProtocolMessage done [08:48:52]OFDSenderStorePacket 188115 [08:48:52]StoreOFDPacket docnum=188115 [08:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 43 D2 04 01 28 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 F5 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DE 02 00 35 04 06 00 62 C7 AA 5B 5C 94 0F 7C EB 78 CB 20 36 AD [08:48:52]CheckFolder [08:48:52]dirname=/storage/ofd_packets [08:48:52]CheckFolder done [08:48:52]ProducePacketName [08:48:52]name=ofd_packets/00188115 [08:48:52]NVStorageSaveData ofd_packets/00188115 [08:48:52]File name is /storage/ofd_packets/00188115 [08:48:52]Write 298 bytes [08:48:52]NVStorageSaveData done [08:48:52]OFDSenderStorePacket done [08:48:52]KKMCreateOFDPacket done [08:48:52]NVStorageSaveData kkm_last_timestamp [08:48:52]File name is /storage/kkm_last_timestamp [08:48:52]Write 4 bytes [08:48:52]NVStorageSaveData done [08:48:52]ExternCall_PrintAddStr [08:48:52]wPrintStart [08:48:52]Write to MH i2c: 01 00 00 C6 2E F4 [08:48:52]Write i2c OK [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 07 00 [08:48:52]MH_I2C_Read... [08:48:52]Read from MH i2c: 01 07 00 C6 2E 00 00 00 00 00 FF 0F 09 [08:48:52]RasterBufferAndPrint [08:48:52]line Счет N : (1)210167 [08:48:52]line ИНН: 02508201610067 [08:48:52]line Контрольно-Кассовый Чек [08:48:52]line ПРОДАЖА [08:48:52]line ТРК (МРК, ГНК) : 51 [08:48:52]line Товар: 2710194210 [08:48:52]line ДТ-К-5 [08:48:52]line 13.130 * 76.20 [08:48:52]line = 1000.51 [08:48:52]line НДС 12% НСП 1% [08:48:52]line > о реализуемом товаре [08:48:52]line ОКРУГЛЕНИЕ: -0.51 [08:48:52]line ИТОГО: 1000.00 [08:48:52]line Внесено: 1000.00 [08:48:52]line СДАЧА: 0.00 [08:48:52]line НСП 1% : 8.85 [08:48:52]line НДС 12% : 106.25 [08:48:52]line Наличными: 1000.00 [08:48:52]line Безнал.: 0.00 [08:48:52]line Место: АЗС № 86 "Партнер Нефть" [08:48:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:48:52]line СНО: Общий режим [08:48:52]line Чек 144 22.10.2024 08:48 [08:48:52]line Смена: 461 ФФД: 1.0 [08:48:52]line ЗНМ: 0300000155 [08:48:52]line РНМ: 0000000000100030 [08:48:52]line Версия ККМ: 001 [08:48:52]line ФМ: 0000000000965340 [08:48:52]line ФД: 188115 [08:48:52]line ФПД: 108609696128148 [08:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T084853&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188115&fm=108609696128148&tin=02508201610067®Number=0000000000100030&sum=100000 [08:48:52]written 0, free lines is 4095 [08:48:52]OFD Sender: Processing packet 188115 [packets to send 1062, broken 1061] [08:48:52]ProducePacketName [08:48:52]name=ofd_packets/00188115 [08:48:52]OFD Sender: To server: pG, [08:48:52]CommunicateWithHost lk.salyk.kg:30040 [08:48:52]ConnectInit lk.salyk.kg [08:48:53]Connected sock=8 [08:48:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 43 D2 04 01 28 93 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 90 00 00 00 F4 03 04 00 F5 66 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DE 02 00 35 04 06 00 62 C7 AA 5B 5C 94 0F 7C EB 78 CB 20 36 AD [08:48:53]Write to MH i2c: 01 00 00 F1 2E 1F [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 07 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: 01 07 00 F1 2E 00 00 00 00 00 59 0C 8B [08:48:53]RasterBufferAndPrint [08:48:53]line [08:48:53]line [08:48:53]line [08:48:53]line [08:48:53]line [08:48:53]written 0, free lines is 3165 [08:48:53]MH_Cut [08:48:53]Write to MH i2c: D1 01 00 F8 2E 01 F8 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: D1 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: D1 01 00 [08:48:53]MH_I2C_Read... [08:48:53]Read from MH i2c: D1 01 00 F8 2E 00 F7 [08:48:53]Write to MH i2c: 01 00 00 F9 2E 27 [08:48:53]Write i2c OK [08:48:53]MH_I2C_Read... [08:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 21 47 00 91 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D3 DE 02 00 F4 03 04 00 E3 10 17 67 B6 04 01 00 00 91 81 B6 D2 48 07 DC D8 [08:48:53]CommunicateWithHost err = 0 [08:48:53]CheckOFDResponse [08:48:53]1017 (14) - 77093643461234 [08:48:53]1041 (16) - 0000000000965340 [08:48:53]1040 (4) - 188115 [08:48:53]1012 (4) - 22.10.2024 02:41 [08:48:53]1206 (1) - 0 [08:48:53]OFD Sender: Remove packet 188115 [08:48:53]ProducePacketName [08:48:53]name=ofd_packets/00188115 [08:48:53]NVStorageDeleteData [08:48:54]OFD Sender: No OFD packet to send [08:48:54]*** Cut start [08:48:54]*** Partial cut [08:48:54]*** CUTSNS_PIN = 1 [08:48:54]*** CUTSNS_PIN = 0 [08:48:54]*** Brake cut motor [08:48:55]Read from MH i2c: 01 [08:48:55]MH_I2C_Read... [08:48:55]*** Stop cut motor [08:48:55]*** Cut end [08:48:55]Read from MH i2c: 01 07 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: 01 07 00 F9 2E 00 00 00 00 00 FF 0F 3C [08:48:55]process_action close_receipt done [08:48:55]requested_data is exist [08:48:55]produce_requested_data [08:48:55]requested_item fm.sn is exist - process it [08:48:55]wFMCommunicate request_size=4 [08:48:55]MH_SAM_APDU [08:48:55]CAPDU: 80 11 00 00 [08:48:55]Write to MH i2c: E2 08 00 FA 2E 80 11 00 00 00 00 00 00 A2 [08:48:55]Write i2c OK [08:48:55]MH_I2C_Read... [08:48:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:48:55]Read from MH i2c: E2 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 17 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 17 00 FA 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [08:48:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:48:55]wFMCommunicate OK [08:48:55]requested_item fd.num is exist - process it [08:48:55]SAM_PROTO_GetFieldsCounters [08:48:55]wFMCommunicate request_size=4 [08:48:55]MH_SAM_APDU [08:48:55]CAPDU: 80 13 00 00 [08:48:55]Write to MH i2c: E2 08 00 FB 2E 80 13 00 00 00 00 00 00 A5 [08:48:55]Write i2c OK [08:48:55]MH_I2C_Read... [08:48:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:48:55]Read from MH i2c: E2 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 62 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 62 00 FB 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 DD [08:48:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D3 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 90 00 00 00 5E 04 04 00 90 00 00 00 57 04 04 00 91 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:48:55]wFMCommunicate OK [08:48:55]SAM_PROTO_GetFieldsCounters done [08:48:55]requested_item shift.num is exist - process it [08:48:55]requested_item shift.opened is exist - process it [08:48:55]req_shift_opened [08:48:55]FM_GetShiftState [08:48:55]SAM_PROTO_GetShiftState [08:48:55]wFMCommunicate request_size=4 [08:48:55]MH_SAM_APDU [08:48:55]CAPDU: 80 13 01 00 [08:48:55]Write to MH i2c: E2 08 00 FC 2E 80 13 01 00 00 00 00 00 A7 [08:48:55]Write i2c OK [08:48:55]MH_I2C_Read... [08:48:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:48:55]Read from MH i2c: E2 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 0E 00 [08:48:55]MH_I2C_Read... [08:48:55]Read from MH i2c: E2 0E 00 FC 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9C [08:48:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:48:55]wFMCommunicate OK [08:48:55]SAM_PROTO_GetShiftState done [08:48:55]FM_GetShiftState done [08:48:55]req_shift_opened done [08:48:55]requested_item shift.open_date is exist - process it [08:48:55]req_shift_open_date [08:48:55]req_shift_open_date done [08:48:55]produce_requested_data done [08:48:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188115,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:48:55]process_action_free close_receipt [08:48:55]json_value_free [08:48:55]json_value_free done [08:48:55]process_json_proto returns [08:48:55]Send response to host [08:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188115,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:48:55]free response buf [08:48:55]execute_script done [08:48:55]execute_script returns [08:48:55]free content buf [08:48:55]Sock 9.Close socket [08:48:55]Sock 9.Thread stoped [08:48:59]OFD Sender: No OFD packet to send [08:49:04]OFD Sender: No OFD packet to send [08:49:09]OFD Sender: No OFD packet to send [08:49:14]OFD Sender: No OFD packet to send [08:49:19]OFD Sender: No OFD packet to send [08:49:24]OFD Sender: No OFD packet to send [08:49:29]OFD Sender: No OFD packet to send [08:49:34]OFD Sender: No OFD packet to send [08:49:39]OFD Sender: No OFD packet to send [08:49:44]OFD Sender: No OFD packet to send [08:49:49]OFD Sender: No OFD packet to send [08:49:54]OFD Sender: No OFD packet to send [08:49:59]OFD Sender: No OFD packet to send [08:50:04]OFD Sender: No OFD packet to send [08:50:09]OFD Sender: No OFD packet to send [08:50:14]OFD Sender: No OFD packet to send [08:50:18]accept exits with 10 [08:50:18]New connection [08:50:18]New thread 3067198820 created [08:50:18]Thread 3067055460 joined [08:50:18]Waiting for new connection... [08:50:18] Sock 10.Parse request [08:50:18]Sock 10.Check first char [08:50:18]Sock 10.First char is OK [08:50:18]request: POST /json_proto HTTP/1.0 [08:50:18]Method: POST [08:50:18]URL: /json_proto [08:50:18]Method is POST - this is cgi request [08:50:18]url: /json_proto [08:50:18]query_string will be loaded in cgi processing [08:50:18]execute_cgi json_proto POST (null) [08:50:18]execute_cgi path=json_proto method=POST [08:50:18]POST find Content-Length [08:50:18]Host: 172.17.42.131:8080 [08:50:18]Content-Length: 682 [08:50:18]Content-Type: application/json [08:50:18] [08:50:18]POST finish read [08:50:18]Found Content-Length = 682 [08:50:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:18]execute_script... [08:50: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)210170", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:18]POST & json_proto [08:50:18]process_json_proto [08:50:18]json parsed OK: [08:50:18]protocol is kg_v1.0 [08:50:18]action value=close_receipt [08:50:18]process_action close_receipt [08:50:18]cmd_close_receipt [08:50:18]MH_GetDate [08:50:18]Write to MH i2c: F0 00 00 FD 2E 1A [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: F0 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: F0 09 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: F0 09 00 FD 2E 00 4C 67 17 67 A0 18 CA 66 3C [08:50:18]GetLastDocTimeStamp 1729586933 [08:50:18]current date 1729587020 [08:50:18]FM_GetShiftState [08:50:18]SAM_PROTO_GetShiftState [08:50:18]wFMCommunicate request_size=4 [08:50:18]MH_SAM_APDU [08:50:18]CAPDU: 80 13 01 00 [08:50:18]Write to MH i2c: E2 08 00 FE 2E 80 13 01 00 00 00 00 00 A9 [08:50:18]Write i2c OK [08:50:18]MH_I2C_Read... [08:50:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:18]Read from MH i2c: E2 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0E 00 [08:50:18]MH_I2C_Read... [08:50:18]Read from MH i2c: E2 0E 00 FE 2E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9E [08:50:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:50:18]wFMCommunicate OK [08:50:18]SAM_PROTO_GetShiftState done [08:50:18]FM_GetShiftState done [08:50:18]opened in 1729556094 [08:50:18]opened+sec_in_day 1729642494 [08:50:18]quantity*price = 100015 [08:50:18]sum+1 = 100017 [08:50:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 145 22.10.2024 08:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188116 ФПД: 275453336886614 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188116&fm=275453336886614&tin=02508201610067®Number=0000000000100030&sum=100000 [08:50:19]StoreToDocumentArchive [08:50:19]shift 461 fd 188116 [08:50:19]save to /storage/0461/doc_00188116 [08:50:19]save last doc name /storage/0461/doc_00188116 to /storage/kkm_last_doc_name [08:50:19]save OK [08:50:19]Clear old archive folders... [08:50:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:19]tlvbuf is B6F16480 [08:50:19]SAM_PROTO_ClearQueue [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 09 00 00 [08:50:19]Write to MH i2c: E2 08 00 0B 2F 80 09 00 00 00 00 00 00 AC [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 0B 2F 00 90 00 AE [08:50:19]RAPDU: 90 00 [08:50:19]wFMCommunicate OK [08:50:19]SAM_PROTO_ClearQueue done [08:50:19]KKMCreateOFDPacket [08:50:19]OFDProtocolAddRootSTLVToBuf [08:50:19]FM_MakeSignedData [08:50:19]FM_MakeSignedData [08:50:19]SAM_PROTO_SignData [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 0D 01 02 [08:50:19]Write to MH i2c: E2 08 00 0C 2F 80 0D 01 02 00 00 00 00 B4 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 0C 2F 00 90 00 AF [08:50:19]RAPDU: 90 00 [08:50:19]wFMCommunicate OK [08:50:19]wFMCommunicate request_size=255 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4C 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DE 02 00 35 04 06 00 FA [08:50:19]Write to MH i2c: E2 02 01 0D 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4C 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DE 02 00 35 04 06 00 FA 00 00 5F [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]OFD Sender: No OFD packet to send [08:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 0D 2F 00 90 00 B0 [08:50:19]RAPDU: 90 00 [08:50:19]wFMCommunicate OK [08:50:19]wFMCommunicate request_size=10 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 0D 02 02 05 85 FA 4C 1D 56 [08:50:19]Write to MH i2c: E2 0D 00 0E 2F 80 0D 02 02 05 00 85 FA 4C 1D 56 00 00 FF [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 03 00 0E 2F 00 90 00 B1 [08:50:19]RAPDU: 90 00 [08:50:19]wFMCommunicate OK [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 0D 03 02 [08:50:19]Write to MH i2c: E2 08 00 0F 2F 80 0D 03 02 00 00 00 00 B9 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 0B 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 0B 00 0F 2F 00 9B AD 74 CE 60 60 70 67 90 00 DB [08:50:19]RAPDU: 9B AD 74 CE 60 60 70 67 90 00 [08:50:19]wFMCommunicate OK [08:50:19]SAM_PROTO_SignData done [08:50:19]FM_MakeSignedData done [08:50:19]CreateOFDProtocolMessage [08:50:19]wFMCommunicate request_size=4 [08:50:19]MH_SAM_APDU [08:50:19]CAPDU: 80 11 00 00 [08:50:19]Write to MH i2c: E2 08 00 10 2F 80 11 00 00 00 00 00 00 B9 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:19]Read from MH i2c: E2 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 17 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: E2 17 00 10 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [08:50:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:50:19]wFMCommunicate OK [08:50:19]CreateOFDProtocolMessage done [08:50:19]OFDSenderStorePacket 188116 [08:50:19]StoreOFDPacket docnum=188116 [08:50:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 43 07 01 BB DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4C 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DE 02 00 35 04 06 00 FA 85 FA 4C 1D 56 9B AD 74 CE 60 60 70 67 [08:50:19]CheckFolder [08:50:19]dirname=/storage/ofd_packets [08:50:19]CheckFolder done [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00188116 [08:50:19]NVStorageSaveData ofd_packets/00188116 [08:50:19]File name is /storage/ofd_packets/00188116 [08:50:19]Write 301 bytes [08:50:19]NVStorageSaveData done [08:50:19]OFDSenderStorePacket done [08:50:19]KKMCreateOFDPacket done [08:50:19]NVStorageSaveData kkm_last_timestamp [08:50:19]File name is /storage/kkm_last_timestamp [08:50:19]Write 4 bytes [08:50:19]NVStorageSaveData done [08:50:19]ExternCall_PrintAddStr [08:50:19]wPrintStart [08:50:19]Write to MH i2c: 01 00 00 11 2F 40 [08:50:19]Write i2c OK [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 [08:50:19]MH_I2C_Read... [08:50:19]Read from MH i2c: 01 07 00 11 2F 00 00 00 00 00 FF 0F 55 [08:50:19]RasterBufferAndPrint [08:50:19]line Счет N : (1)210170 [08:50:19]line ИНН: 02508201610067 [08:50:19]line Контрольно-Кассовый Чек [08:50:19]line ПРОДАЖА [08:50:19]line ТРК (МРК, ГНК) : 22 [08:50:19]line Товар: 2710124130 [08:50:19]line Аи-92-К-3 [08:50:19]line 14.950 * 66.90 [08:50:19]line = 1000.16 [08:50:19]line НДС 12% НСП 1% [08:50:19]line > о реализуемом товаре [08:50:19]line ОКРУГЛЕНИЕ: -0.16 [08:50:19]line ИТОГО: 1000.00 [08:50:19]line Внесено: 1000.00 [08:50:19]line СДАЧА: 0.00 [08:50:19]line НСП 1% : 8.85 [08:50:19]line НДС 12% : 106.21 [08:50:19]line Наличными: 1000.00 [08:50:19]line Безнал.: 0.00 [08:50:19]line Место: АЗС № 86 "Партнер Нефть" [08:50:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:50:19]line СНО: Общий режим [08:50:19]line Чек 145 22.10.2024 08:50 [08:50:19]line Смена: 461 ФФД: 1.0 [08:50:19]line ЗНМ: 0300000155 [08:50:19]line РНМ: 0000000000100030 [08:50:19]line Версия ККМ: 001 [08:50:19]line ФМ: 0000000000965340 [08:50:19]line ФД: 188116 [08:50:19]line ФПД: 275453336886614 [08:50:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188116&fm=275453336886614&tin=02508201610067®Number=0000000000100030&sum=100000 [08:50:19]written 0, free lines is 4095 [08:50:19]OFD Sender: Processing packet 188116 [packets to send 1062, broken 1061] [08:50:19]ProducePacketName [08:50:19]name=ofd_packets/00188116 [08:50:19]OFD Sender: To server: pG, [08:50:19]CommunicateWithHost lk.salyk.kg:30040 [08:50:19]ConnectInit lk.salyk.kg [08:50:20]Connected sock=11 [08:50:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE 43 07 01 BB DE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 91 00 00 00 F4 03 04 00 4C 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D4 DE 02 00 35 04 06 00 FA 85 FA 4C 1D 56 9B AD 74 CE 60 60 70 67 [08:50:20]Write to MH i2c: 01 00 00 3C 2F 6B [08:50:20]Write i2c OK [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: 01 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: 01 07 00 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: 01 07 00 3C 2F 00 00 00 00 00 5C 0C DA [08:50:20]RasterBufferAndPrint [08:50:20]line [08:50:20]line [08:50:20]line [08:50:20]line [08:50:20]line [08:50:20]written 0, free lines is 3167 [08:50:20]MH_Cut [08:50:20]Write to MH i2c: D1 01 00 43 2F 01 44 [08:50:20]Write i2c OK [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: D1 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: D1 01 00 [08:50:20]MH_I2C_Read... [08:50:20]Read from MH i2c: D1 01 00 43 2F 00 43 [08:50:20]Write to MH i2c: 01 00 00 44 2F 73 [08:50:20]Write i2c OK [08:50:20]MH_I2C_Read... [08:50:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 3E 47 00 80 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 39 36 35 33 34 30 10 04 04 00 D4 DE 02 00 F4 03 04 00 3A 11 17 67 B6 04 01 00 00 82 00 CF AF B7 BB 7D 5E [08:50:20]CommunicateWithHost err = 0 [08:50:20]CheckOFDResponse [08:50:20]1017 (14) - 77093643461234 [08:50:20]1041 (16) - 0000000000965340 [08:50:20]1040 (4) - 188116 [08:50:20]1012 (4) - 22.10.2024 02:43 [08:50:20]1206 (1) - 0 [08:50:20]OFD Sender: Remove packet 188116 [08:50:20]ProducePacketName [08:50:20]name=ofd_packets/00188116 [08:50:20]NVStorageDeleteData [08:50:21]OFD Sender: No OFD packet to send [08:50:21]*** Cut start [08:50:21]*** Partial cut [08:50:21]*** CUTSNS_PIN = 1 [08:50:21]*** CUTSNS_PIN = 0 [08:50:21]*** Brake cut motor [08:50:22]Read from MH i2c: 01 [08:50:22]MH_I2C_Read... [08:50:22]*** Stop cut motor [08:50:22]*** Cut end [08:50:22]Read from MH i2c: 01 07 00 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: 01 07 00 44 2F 00 00 00 00 00 FF 0F 88 [08:50:22]process_action close_receipt done [08:50:22]requested_data is exist [08:50:22]produce_requested_data [08:50:22]requested_item fm.sn is exist - process it [08:50:22]wFMCommunicate request_size=4 [08:50:22]MH_SAM_APDU [08:50:22]CAPDU: 80 11 00 00 [08:50:22]Write to MH i2c: E2 08 00 45 2F 80 11 00 00 00 00 00 00 EE [08:50:22]Write i2c OK [08:50:22]MH_I2C_Read... [08:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:22]Read from MH i2c: E2 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 17 00 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 17 00 45 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [08:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:50:22]wFMCommunicate OK [08:50:22]requested_item fd.num is exist - process it [08:50:22]SAM_PROTO_GetFieldsCounters [08:50:22]wFMCommunicate request_size=4 [08:50:22]MH_SAM_APDU [08:50:22]CAPDU: 80 13 00 00 [08:50:22]Write to MH i2c: E2 08 00 46 2F 80 13 00 00 00 00 00 00 F1 [08:50:22]Write i2c OK [08:50:22]MH_I2C_Read... [08:50:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:22]Read from MH i2c: E2 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 62 00 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 62 00 46 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 2D [08:50:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D4 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 91 00 00 00 5E 04 04 00 91 00 00 00 57 04 04 00 92 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:22]wFMCommunicate OK [08:50:22]SAM_PROTO_GetFieldsCounters done [08:50:22]requested_item shift.num is exist - process it [08:50:22]requested_item shift.opened is exist - process it [08:50:22]req_shift_opened [08:50:22]FM_GetShiftState [08:50:22]SAM_PROTO_GetShiftState [08:50:22]wFMCommunicate request_size=4 [08:50:22]MH_SAM_APDU [08:50:22]CAPDU: 80 13 01 00 [08:50:22]Write to MH i2c: E2 08 00 47 2F 80 13 01 00 00 00 00 00 F3 [08:50:22]Write i2c OK [08:50:22]MH_I2C_Read... [08:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:22]Read from MH i2c: E2 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 0E 00 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 0E 00 47 2F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E8 [08:50:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:50:22]wFMCommunicate OK [08:50:22]SAM_PROTO_GetShiftState done [08:50:22]FM_GetShiftState done [08:50:22]req_shift_opened done [08:50:22]requested_item shift.open_date is exist - process it [08:50:22]req_shift_open_date [08:50:22]req_shift_open_date done [08:50:22]produce_requested_data done [08:50:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188116,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:50:22]process_action_free close_receipt [08:50:22]json_value_free [08:50:22]json_value_free done [08:50:22]process_json_proto returns [08:50:22]Send response to host [08:50:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188116,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:50:22]free response buf [08:50:22]execute_script done [08:50:22]execute_script returns [08:50:22]free content buf [08:50:22]Sock 10.Close socket [08:50:22]Sock 10.Thread stoped [08:50:22]accept exits with 8 [08:50:22]New connection [08:50:22]New thread 3067055460 created [08:50:22]Thread 3067198820 joined [08:50:22]Waiting for new connection... [08:50:22] Sock 8.Parse request [08:50:22]Sock 8.Check first char [08:50:22]Sock 8.First char is OK [08:50:22]request: POST /json_proto HTTP/1.0 [08:50:22]Method: POST [08:50:22]URL: /json_proto [08:50:22]Method is POST - this is cgi request [08:50:22]url: /json_proto [08:50:22]query_string will be loaded in cgi processing [08:50:22]execute_cgi json_proto POST (null) [08:50:22]execute_cgi path=json_proto method=POST [08:50:22]POST find Content-Length [08:50:22]Host: 172.17.42.131:8080 [08:50:22]Content-Length: 683 [08:50:22]Content-Type: application/json [08:50:22] [08:50:22]POST finish read [08:50:22]Found Content-Length = 683 [08:50:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:50:22]execute_script... [08:50: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)210169", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:50:22]POST & json_proto [08:50:22]process_json_proto [08:50:22]json parsed OK: [08:50:22]protocol is kg_v1.0 [08:50:22]action value=close_receipt [08:50:22]process_action close_receipt [08:50:22]cmd_close_receipt [08:50:22]MH_GetDate [08:50:22]Write to MH i2c: F0 00 00 48 2F 66 [08:50:22]Write i2c OK [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: F0 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: F0 09 00 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: F0 09 00 48 2F 00 51 67 17 67 A0 18 CA 66 8D [08:50:22]GetLastDocTimeStamp 1729587020 [08:50:22]current date 1729587025 [08:50:22]FM_GetShiftState [08:50:22]SAM_PROTO_GetShiftState [08:50:22]wFMCommunicate request_size=4 [08:50:22]MH_SAM_APDU [08:50:22]CAPDU: 80 13 01 00 [08:50:22]Write to MH i2c: E2 08 00 49 2F 80 13 01 00 00 00 00 00 F5 [08:50:22]Write i2c OK [08:50:22]MH_I2C_Read... [08:50:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:22]Read from MH i2c: E2 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 0E 00 [08:50:22]MH_I2C_Read... [08:50:22]Read from MH i2c: E2 0E 00 49 2F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EA [08:50:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:50:22]wFMCommunicate OK [08:50:22]SAM_PROTO_GetShiftState done [08:50:22]FM_GetShiftState done [08:50:22]opened in 1729556094 [08:50:22]opened+sec_in_day 1729642494 [08:50:22]quantity*price = 50025 [08:50:22]sum+1 = 50027 [08:50:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 146 22.10.2024 08:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188117 ФПД: 79764832402293 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188117&fm=79764832402293&tin=02508201610067®Number=0000000000100030&sum=50000 [08:50:24]StoreToDocumentArchive [08:50:24]shift 461 fd 188117 [08:50:24]save to /storage/0461/doc_00188117 [08:50:24]save last doc name /storage/0461/doc_00188117 to /storage/kkm_last_doc_name [08:50:24]save OK [08:50:24]Clear old archive folders... [08:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:50:24]tlvbuf is 01CAFAB0 [08:50:24]SAM_PROTO_ClearQueue [08:50:24]wFMCommunicate request_size=4 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 09 00 00 [08:50:24]Write to MH i2c: E2 08 00 56 2F 80 09 00 00 00 00 00 00 F7 [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 56 2F 00 90 00 F9 [08:50:24]RAPDU: 90 00 [08:50:24]wFMCommunicate OK [08:50:24]SAM_PROTO_ClearQueue done [08:50:24]KKMCreateOFDPacket [08:50:24]OFDProtocolAddRootSTLVToBuf [08:50:24]FM_MakeSignedData [08:50:24]FM_MakeSignedData [08:50:24]SAM_PROTO_SignData [08:50:24]wFMCommunicate request_size=4 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 0D 01 02 [08:50:24]Write to MH i2c: E2 08 00 57 2F 80 0D 01 02 00 00 00 00 FF [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 57 2F 00 90 00 FA [08:50:24]RAPDU: 90 00 [08:50:24]wFMCommunicate OK [08:50:24]wFMCommunicate request_size=255 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 92 00 00 00 F4 03 04 00 51 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DE 02 [08:50:24]Write to MH i2c: E2 02 01 58 2F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 92 00 00 00 F4 03 04 00 51 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DE 02 00 00 57 [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 58 2F 00 90 00 FB [08:50:24]RAPDU: 90 00 [08:50:24]wFMCommunicate OK [08:50:24]wFMCommunicate request_size=16 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 48 8B B2 80 3B 75 [08:50:24]Write to MH i2c: E2 13 00 59 2F 80 0D 02 02 0B 00 00 35 04 06 00 48 8B B2 80 3B 75 00 00 0C [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 03 00 59 2F 00 90 00 FC [08:50:24]RAPDU: 90 00 [08:50:24]wFMCommunicate OK [08:50:24]wFMCommunicate request_size=4 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 0D 03 02 [08:50:24]Write to MH i2c: E2 08 00 5A 2F 80 0D 03 02 00 00 00 00 04 [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 0B 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 0B 00 5A 2F 00 95 88 E0 A2 D7 90 6B B3 90 00 29 [08:50:24]RAPDU: 95 88 E0 A2 D7 90 6B B3 90 00 [08:50:24]wFMCommunicate OK [08:50:24]SAM_PROTO_SignData done [08:50:24]FM_MakeSignedData done [08:50:24]CreateOFDProtocolMessage [08:50:24]wFMCommunicate request_size=4 [08:50:24]MH_SAM_APDU [08:50:24]CAPDU: 80 11 00 00 [08:50:24]Write to MH i2c: E2 08 00 5B 2F 80 11 00 00 00 00 00 00 04 [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:24]Read from MH i2c: E2 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 17 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: E2 17 00 5B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [08:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:50:24]wFMCommunicate OK [08:50:24]CreateOFDProtocolMessage done [08:50:24]OFDSenderStorePacket 188117 [08:50:24]StoreOFDPacket docnum=188117 [08:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CD 70 0D 01 FE B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 92 00 00 00 F4 03 04 00 51 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DE 02 00 35 04 06 00 48 8B B2 80 3B 75 95 88 E0 A2 D7 90 6B B3 [08:50:24]CheckFolder [08:50:24]dirname=/storage/ofd_packets [08:50:24]CheckFolder done [08:50:24]ProducePacketName [08:50:24]name=ofd_packets/00188117 [08:50:24]NVStorageSaveData ofd_packets/00188117 [08:50:24]File name is /storage/ofd_packets/00188117 [08:50:24]Write 307 bytes [08:50:24]NVStorageSaveData done [08:50:24]OFDSenderStorePacket done [08:50:24]KKMCreateOFDPacket done [08:50:24]NVStorageSaveData kkm_last_timestamp [08:50:24]File name is /storage/kkm_last_timestamp [08:50:24]Write 4 bytes [08:50:24]NVStorageSaveData done [08:50:24]ExternCall_PrintAddStr [08:50:24]wPrintStart [08:50:24]Write to MH i2c: 01 00 00 5C 2F 8B [08:50:24]Write i2c OK [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: 01 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: 01 07 00 [08:50:24]MH_I2C_Read... [08:50:24]Read from MH i2c: 01 07 00 5C 2F 00 00 00 00 00 FF 0F A0 [08:50:24]RasterBufferAndPrint [08:50:24]line Счет N : (1)210169 [08:50:24]line ИНН: 02508201610067 [08:50:24]line Контрольно-Кассовый Чек [08:50:24]line ПРОДАЖА [08:50:24]line ТРК (МРК, ГНК) : 41 [08:50:24]line Товар: 2710194210 [08:50:24]line D-ENERGY ДТ-К-5 [08:50:24]line 6.480 * 77.20 [08:50:24]line = 500.26 [08:50:24]line НДС 12% НСП 1% [08:50:24]line > о реализуемом товаре [08:50:24]line ОКРУГЛЕНИЕ: -0.26 [08:50:24]line ИТОГО: 500.00 [08:50:24]line Внесено: 500.00 [08:50:24]line СДАЧА: 0.00 [08:50:24]line НСП 1% : 4.43 [08:50:24]line НДС 12% : 53.12 [08:50:24]line Наличными: 500.00 [08:50:24]line Безнал.: 0.00 [08:50:24]line Место: АЗС № 86 "Партнер Нефть" [08:50:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:50:24]line СНО: Общий режим [08:50:24]line Чек 146 22.10.2024 08:50 [08:50:24]line Смена: 461 ФФД: 1.0 [08:50:24]line ЗНМ: 0300000155 [08:50:24]line РНМ: 0000000000100030 [08:50:24]line Версия ККМ: 001 [08:50:24]line ФМ: 0000000000965340 [08:50:24]line ФД: 188117 [08:50:24]line ФПД: 79764832402293 [08:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188117&fm=79764832402293&tin=02508201610067®Number=0000000000100030&sum=50000 [08:50:24]written 0, free lines is 4095 [08:50:25]OFD Sender: Processing packet 188117 [packets to send 1062, broken 1061] [08:50:25]ProducePacketName [08:50:25]name=ofd_packets/00188117 [08:50:25]OFD Sender: To server: pG, [08:50:25]CommunicateWithHost lk.salyk.kg:30040 [08:50:25]ConnectInit lk.salyk.kg [08:50:25]Connected sock=10 [08:50:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CD 70 0D 01 FE B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 92 00 00 00 F4 03 04 00 51 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D5 DE 02 00 35 04 06 00 48 8B B2 80 3B 75 95 88 E0 A2 D7 90 6B B3 [08:50:25]Write to MH i2c: 01 00 00 87 2F B6 [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: 01 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: 01 07 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: 01 07 00 87 2F 00 00 00 00 00 65 0C 2E [08:50:25]RasterBufferAndPrint [08:50:25]line [08:50:25]line [08:50:25]line [08:50:25]line [08:50:25]line [08:50:25]written 0, free lines is 3178 [08:50:25]MH_Cut [08:50:25]Write to MH i2c: D1 01 00 8E 2F 01 8F [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: D1 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: D1 01 00 [08:50:25]MH_I2C_Read... [08:50:25]Read from MH i2c: D1 01 00 8E 2F 00 8E [08:50:25]Write to MH i2c: 01 00 00 8F 2F BE [08:50:25]Write i2c OK [08:50:25]MH_I2C_Read... [08:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 71 08 47 00 16 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 39 36 35 33 34 30 10 04 04 00 D5 DE 02 00 F4 03 04 00 3F 11 17 67 B6 04 01 00 00 A8 8C CA DD ED DE E2 C3 [08:50:25]CommunicateWithHost err = 0 [08:50:25]CheckOFDResponse [08:50:25]1017 (14) - 77093643461234 [08:50:25]1041 (16) - 0000000000965340 [08:50:25]1040 (4) - 188117 [08:50:25]1012 (4) - 22.10.2024 02:43 [08:50:25]1206 (1) - 0 [08:50:25]OFD Sender: Remove packet 188117 [08:50:25]ProducePacketName [08:50:25]name=ofd_packets/00188117 [08:50:25]NVStorageDeleteData [08:50:26]OFD Sender: No OFD packet to send [08:50:26]*** Cut start [08:50:26]*** Partial cut [08:50:26]*** CUTSNS_PIN = 1 [08:50:26]*** CUTSNS_PIN = 0 [08:50:26]*** Brake cut motor [08:50:27]Read from MH i2c: 01 [08:50:27]MH_I2C_Read... [08:50:27]*** Stop cut motor [08:50:27]*** Cut end [08:50:27]Read from MH i2c: 01 07 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: 01 07 00 8F 2F 00 00 00 00 00 FF 0F D3 [08:50:27]process_action close_receipt done [08:50:27]requested_data is exist [08:50:27]produce_requested_data [08:50:27]requested_item fm.sn is exist - process it [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 11 00 00 [08:50:27]Write to MH i2c: E2 08 00 90 2F 80 11 00 00 00 00 00 00 39 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 17 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 17 00 90 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [08:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:50:27]wFMCommunicate OK [08:50:27]requested_item fd.num is exist - process it [08:50:27]SAM_PROTO_GetFieldsCounters [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 13 00 00 [08:50:27]Write to MH i2c: E2 08 00 91 2F 80 13 00 00 00 00 00 00 3C [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 62 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 62 00 91 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 7C [08:50:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 92 00 00 00 5E 04 04 00 92 00 00 00 57 04 04 00 93 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetFieldsCounters done [08:50:27]requested_item shift.num is exist - process it [08:50:27]requested_item shift.opened is exist - process it [08:50:27]req_shift_opened [08:50:27]FM_GetShiftState [08:50:27]SAM_PROTO_GetShiftState [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 13 01 00 [08:50:27]Write to MH i2c: E2 08 00 92 2F 80 13 01 00 00 00 00 00 3E [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 92 2F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 33 [08:50:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetShiftState done [08:50:27]FM_GetShiftState done [08:50:27]req_shift_opened done [08:50:27]requested_item shift.open_date is exist - process it [08:50:27]req_shift_open_date [08:50:27]req_shift_open_date done [08:50:27]produce_requested_data done [08:50:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188117,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:50:27]process_action_free close_receipt [08:50:27]json_value_free [08:50:27]json_value_free done [08:50:27]process_json_proto returns [08:50:27]Send response to host [08:50:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188117,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:50:27]free response buf [08:50:27]execute_script done [08:50:27]execute_script returns [08:50:27]free content buf [08:50:27]Sock 8.Close socket [08:50:27]Sock 8.Thread stoped [08:50:27]accept exits with 9 [08:50:27]New connection [08:50:27]New thread 3067198820 created [08:50:27]Thread 3067055460 joined [08:50:27]Waiting for new connection... [08:50:27] Sock 9.Parse request [08:50:27]Sock 9.Check first char [08:50:27]Sock 9.First char is OK [08:50:27]request: POST /json_proto HTTP/1.0 [08:50:27]Method: POST [08:50:27]URL: /json_proto [08:50:27]Method is POST - this is cgi request [08:50:27]url: /json_proto [08:50:27]query_string will be loaded in cgi processing [08:50:27]execute_cgi json_proto POST (null) [08:50:27]execute_cgi path=json_proto method=POST [08:50:27]POST find Content-Length [08:50:27]Host: 172.17.42.131:8080 [08:50:27]Content-Length: 682 [08:50:27]Content-Type: application/json [08:50:27] [08:50:27]POST finish read [08:50:27]Found Content-Length = 682 [08:50:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:27]execute_script... [08:50: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)210168", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:50:27]POST & json_proto [08:50:27]process_json_proto [08:50:27]json parsed OK: [08:50:27]protocol is kg_v1.0 [08:50:27]action value=close_receipt [08:50:27]process_action close_receipt [08:50:27]cmd_close_receipt [08:50:27]MH_GetDate [08:50:27]Write to MH i2c: F0 00 00 93 2F B1 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 09 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: F0 09 00 93 2F 00 56 67 17 67 A0 18 CA 66 DD [08:50:27]GetLastDocTimeStamp 1729587025 [08:50:27]current date 1729587030 [08:50:27]FM_GetShiftState [08:50:27]SAM_PROTO_GetShiftState [08:50:27]wFMCommunicate request_size=4 [08:50:27]MH_SAM_APDU [08:50:27]CAPDU: 80 13 01 00 [08:50:27]Write to MH i2c: E2 08 00 94 2F 80 13 01 00 00 00 00 00 40 [08:50:27]Write i2c OK [08:50:27]MH_I2C_Read... [08:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:27]Read from MH i2c: E2 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 [08:50:27]MH_I2C_Read... [08:50:27]Read from MH i2c: E2 0E 00 94 2F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 35 [08:50:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:50:27]wFMCommunicate OK [08:50:27]SAM_PROTO_GetShiftState done [08:50:27]FM_GetShiftState done [08:50:27]opened in 1729556094 [08:50:27]opened+sec_in_day 1729642494 [08:50:27]quantity*price = 250054 [08:50:27]sum+1 = 250055 [08:50:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 147 22.10.2024 08:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188118 ФПД: 185202510484586 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188118&fm=185202510484586&tin=02508201610067®Number=0000000000100030&sum=250000 [08:50:28]StoreToDocumentArchive [08:50:28]shift 461 fd 188118 [08:50:28]save to /storage/0461/doc_00188118 [08:50:28]save last doc name /storage/0461/doc_00188118 to /storage/kkm_last_doc_name [08:50:28]save OK [08:50:28]Clear old archive folders... [08:50:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:50:28]tlvbuf is 01CC6EA0 [08:50:28]SAM_PROTO_ClearQueue [08:50:28]wFMCommunicate request_size=4 [08:50:28]MH_SAM_APDU [08:50:28]CAPDU: 80 09 00 00 [08:50:28]Write to MH i2c: E2 08 00 A1 2F 80 09 00 00 00 00 00 00 42 [08:50:28]Write i2c OK [08:50:28]MH_I2C_Read... [08:50:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:50:28]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 A1 2F 00 90 00 44 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]SAM_PROTO_ClearQueue done [08:50:29]KKMCreateOFDPacket [08:50:29]OFDProtocolAddRootSTLVToBuf [08:50:29]FM_MakeSignedData [08:50:29]FM_MakeSignedData [08:50:29]SAM_PROTO_SignData [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 01 02 [08:50:29]Write to MH i2c: E2 08 00 A2 2F 80 0D 01 02 00 00 00 00 4A [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 A2 2F 00 90 00 45 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=255 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 56 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DE 02 00 35 04 06 00 A8 [08:50:29]Write to MH i2c: E2 02 01 A3 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 56 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DE 02 00 35 04 06 00 A8 00 00 A2 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 A3 2F 00 90 00 46 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=10 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 02 02 05 70 D1 D9 54 6A [08:50:29]Write to MH i2c: E2 0D 00 A4 2F 80 0D 02 02 05 00 70 D1 D9 54 6A 00 00 2F [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 03 00 A4 2F 00 90 00 47 [08:50:29]RAPDU: 90 00 [08:50:29]wFMCommunicate OK [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 0D 03 02 [08:50:29]Write to MH i2c: E2 08 00 A5 2F 80 0D 03 02 00 00 00 00 4F [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 0B 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 0B 00 A5 2F 00 A5 04 BE D4 EB 4E B9 1C 90 00 99 [08:50:29]RAPDU: A5 04 BE D4 EB 4E B9 1C 90 00 [08:50:29]wFMCommunicate OK [08:50:29]SAM_PROTO_SignData done [08:50:29]FM_MakeSignedData done [08:50:29]CreateOFDProtocolMessage [08:50:29]wFMCommunicate request_size=4 [08:50:29]MH_SAM_APDU [08:50:29]CAPDU: 80 11 00 00 [08:50:29]Write to MH i2c: E2 08 00 A6 2F 80 11 00 00 00 00 00 00 4F [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:29]Read from MH i2c: E2 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 17 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: E2 17 00 A6 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [08:50:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:50:29]wFMCommunicate OK [08:50:29]CreateOFDProtocolMessage done [08:50:29]OFDSenderStorePacket 188118 [08:50:29]StoreOFDPacket docnum=188118 [08:50:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 EF 07 01 7B BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 56 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DE 02 00 35 04 06 00 A8 70 D1 D9 54 6A A5 04 BE D4 EB 4E B9 1C [08:50:29]CheckFolder [08:50:29]dirname=/storage/ofd_packets [08:50:29]CheckFolder done [08:50:29]ProducePacketName [08:50:29]name=ofd_packets/00188118 [08:50:29]NVStorageSaveData ofd_packets/00188118 [08:50:29]File name is /storage/ofd_packets/00188118 [08:50:29]Write 301 bytes [08:50:29]NVStorageSaveData done [08:50:29]OFDSenderStorePacket done [08:50:29]KKMCreateOFDPacket done [08:50:29]NVStorageSaveData kkm_last_timestamp [08:50:29]File name is /storage/kkm_last_timestamp [08:50:29]Write 4 bytes [08:50:29]NVStorageSaveData done [08:50:29]ExternCall_PrintAddStr [08:50:29]wPrintStart [08:50:29]Write to MH i2c: 01 00 00 A7 2F D6 [08:50:29]Write i2c OK [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 [08:50:29]MH_I2C_Read... [08:50:29]Read from MH i2c: 01 07 00 A7 2F 00 00 00 00 00 FF 0F EB [08:50:29]RasterBufferAndPrint [08:50:29]line Счет N : (1)210168 [08:50:29]line ИНН: 02508201610067 [08:50:29]line Контрольно-Кассовый Чек [08:50:29]line ПРОДАЖА [08:50:29]line ТРК (МРК, ГНК) : 13 [08:50:29]line Товар: 2710124500 [08:50:29]line Аи-95-К-3 [08:50:29]line 33.700 * 74.20 [08:50:29]line = 2500.54 [08:50:29]line НДС 12% НСП 1% [08:50:29]line > о реализуемом товаре [08:50:29]line ОКРУГЛЕНИЕ: -0.54 [08:50:29]line ИТОГО: 2500.00 [08:50:29]line Внесено: 2500.00 [08:50:29]line СДАЧА: 0.00 [08:50:29]line НСП 1% : 22.13 [08:50:29]line НДС 12% : 265.54 [08:50:29]line Наличными: 2500.00 [08:50:29]line Безнал.: 0.00 [08:50:29]line Место: АЗС № 86 "Партнер Нефть" [08:50:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:50:29]line СНО: Общий режим [08:50:29]line Чек 147 22.10.2024 08:50 [08:50:29]line Смена: 461 ФФД: 1.0 [08:50:29]line ЗНМ: 0300000155 [08:50:29]line РНМ: 0000000000100030 [08:50:29]line Версия ККМ: 001 [08:50:29]line ФМ: 0000000000965340 [08:50:29]line ФД: 188118 [08:50:29]line ФПД: 185202510484586 [08:50:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188118&fm=185202510484586&tin=02508201610067®Number=0000000000100030&sum=250000 [08:50:29]written 0, free lines is 4095 [08:50:30]OFD Sender: Processing packet 188118 [packets to send 1062, broken 1061] [08:50:30]ProducePacketName [08:50:30]name=ofd_packets/00188118 [08:50:30]OFD Sender: To server: pG, [08:50:30]CommunicateWithHost lk.salyk.kg:30040 [08:50:30]ConnectInit lk.salyk.kg [08:50:30]Connected sock=10 [08:50:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 EF 07 01 7B BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 56 67 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DE 02 00 35 04 06 00 A8 70 D1 D9 54 6A A5 04 BE D4 EB 4E B9 1C [08:50:30]Write to MH i2c: 01 00 00 D2 2F 01 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: 01 07 00 D2 2F 00 00 00 00 00 6C 0C 80 [08:50:30]RasterBufferAndPrint [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]line [08:50:30]written 0, free lines is 3188 [08:50:30]MH_Cut [08:50:30]Write to MH i2c: D1 01 00 D9 2F 01 DA [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: D1 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: D1 01 00 [08:50:30]MH_I2C_Read... [08:50:30]Read from MH i2c: D1 01 00 D9 2F 00 D9 [08:50:30]Write to MH i2c: 01 00 00 DA 2F 09 [08:50:30]Write i2c OK [08:50:30]MH_I2C_Read... [08:50:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 63 64 47 00 A3 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D6 DE 02 00 F4 03 04 00 44 11 17 67 B6 04 01 00 00 8E 60 C2 57 CB 57 E1 C3 [08:50:30]CommunicateWithHost err = 0 [08:50:30]CheckOFDResponse [08:50:30]1017 (14) - 77093643461234 [08:50:30]1041 (16) - 0000000000965340 [08:50:30]1040 (4) - 188118 [08:50:30]1012 (4) - 22.10.2024 02:43 [08:50:30]1206 (1) - 0 [08:50:30]OFD Sender: Remove packet 188118 [08:50:30]ProducePacketName [08:50:30]name=ofd_packets/00188118 [08:50:30]NVStorageDeleteData [08:50:31]OFD Sender: No OFD packet to send [08:50:31]*** Cut start [08:50:31]*** Partial cut [08:50:31]*** CUTSNS_PIN = 1 [08:50:31]*** CUTSNS_PIN = 0 [08:50:31]*** Brake cut motor [08:50:32]Read from MH i2c: 01 [08:50:32]MH_I2C_Read... [08:50:32]*** Stop cut motor [08:50:32]*** Cut end [08:50:32]Read from MH i2c: 01 07 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: 01 07 00 DA 2F 00 00 00 00 00 FF 0F 1E [08:50:32]process_action close_receipt done [08:50:32]requested_data is exist [08:50:32]produce_requested_data [08:50:32]requested_item fm.sn is exist - process it [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 11 00 00 [08:50:32]Write to MH i2c: E2 08 00 DB 2F 80 11 00 00 00 00 00 00 84 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 17 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 17 00 DB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [08:50:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:50:32]wFMCommunicate OK [08:50:32]requested_item fd.num is exist - process it [08:50:32]SAM_PROTO_GetFieldsCounters [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 13 00 00 [08:50:32]Write to MH i2c: E2 08 00 DC 2F 80 13 00 00 00 00 00 00 87 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 62 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 62 00 DC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 CB [08:50:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 93 00 00 00 5E 04 04 00 93 00 00 00 57 04 04 00 94 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:50:32]wFMCommunicate OK [08:50:32]SAM_PROTO_GetFieldsCounters done [08:50:32]requested_item shift.num is exist - process it [08:50:32]requested_item shift.opened is exist - process it [08:50:32]req_shift_opened [08:50:32]FM_GetShiftState [08:50:32]SAM_PROTO_GetShiftState [08:50:32]wFMCommunicate request_size=4 [08:50:32]MH_SAM_APDU [08:50:32]CAPDU: 80 13 01 00 [08:50:32]Write to MH i2c: E2 08 00 DD 2F 80 13 01 00 00 00 00 00 89 [08:50:32]Write i2c OK [08:50:32]MH_I2C_Read... [08:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:50:32]Read from MH i2c: E2 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 0E 00 [08:50:32]MH_I2C_Read... [08:50:32]Read from MH i2c: E2 0E 00 DD 2F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7E [08:50:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:50:32]wFMCommunicate OK [08:50:32]SAM_PROTO_GetShiftState done [08:50:32]FM_GetShiftState done [08:50:32]req_shift_opened done [08:50:32]requested_item shift.open_date is exist - process it [08:50:32]req_shift_open_date [08:50:32]req_shift_open_date done [08:50:32]produce_requested_data done [08:50:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188118,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:50:32]process_action_free close_receipt [08:50:32]json_value_free [08:50:32]json_value_free done [08:50:32]process_json_proto returns [08:50:32]Send response to host [08:50:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188118,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:50:32]free response buf [08:50:32]execute_script done [08:50:32]execute_script returns [08:50:32]free content buf [08:50:32]Sock 9.Close socket [08:50:32]Sock 9.Thread stoped [08:50:36]OFD Sender: No OFD packet to send [08:50:41]OFD Sender: No OFD packet to send [08:50:46]OFD Sender: No OFD packet to send [08:50:51]OFD Sender: No OFD packet to send [08:50:56]OFD Sender: No OFD packet to send [08:51:01]OFD Sender: No OFD packet to send [08:51:06]OFD Sender: No OFD packet to send [08:51:11]OFD Sender: No OFD packet to send [08:51:16]OFD Sender: No OFD packet to send [08:51:21]OFD Sender: No OFD packet to send [08:51:26]OFD Sender: No OFD packet to send [08:51:31]OFD Sender: No OFD packet to send [08:51:36]OFD Sender: No OFD packet to send [08:51:41]OFD Sender: No OFD packet to send [08:51:46]OFD Sender: No OFD packet to send [08:51:51]OFD Sender: No OFD packet to send [08:51:56]OFD Sender: No OFD packet to send [08:52:01]OFD Sender: No OFD packet to send [08:52:06]OFD Sender: No OFD packet to send [08:52:11]OFD Sender: No OFD packet to send [08:52:16]OFD Sender: No OFD packet to send [08:52:21]OFD Sender: No OFD packet to send [08:52:26]OFD Sender: No OFD packet to send [08:52:31]OFD Sender: No OFD packet to send [08:52:36]OFD Sender: No OFD packet to send [08:52:41]OFD Sender: No OFD packet to send [08:52:46]OFD Sender: No OFD packet to send [08:52:51]OFD Sender: No OFD packet to send [08:52:56]OFD Sender: No OFD packet to send [08:53:01]OFD Sender: No OFD packet to send [08:53:06]OFD Sender: No OFD packet to send [08:53:11]OFD Sender: No OFD packet to send [08:53:16]OFD Sender: No OFD packet to send [08:53:22]OFD Sender: No OFD packet to send [08:53:27]OFD Sender: No OFD packet to send [08:53:32]OFD Sender: No OFD packet to send [08:53:37]OFD Sender: No OFD packet to send [08:53:42]OFD Sender: No OFD packet to send [08:53:47]OFD Sender: No OFD packet to send [08:53:52]OFD Sender: No OFD packet to send [08:53:57]OFD Sender: No OFD packet to send [08:54:02]OFD Sender: No OFD packet to send [08:54:07]OFD Sender: No OFD packet to send [08:54:12]OFD Sender: No OFD packet to send [08:54:17]OFD Sender: No OFD packet to send [08:54:22]OFD Sender: No OFD packet to send [08:54:27]OFD Sender: No OFD packet to send [08:54:32]OFD Sender: No OFD packet to send [08:54:37]OFD Sender: No OFD packet to send [08:54:42]OFD Sender: No OFD packet to send [08:54:47]OFD Sender: No OFD packet to send [08:54:52]OFD Sender: No OFD packet to send [08:54:57]OFD Sender: No OFD packet to send [08:55:02]OFD Sender: No OFD packet to send [08:55:07]OFD Sender: No OFD packet to send [08:55:10]accept exits with 8 [08:55:10]New connection [08:55:10]New thread 3067055460 created [08:55:10]Thread 3067198820 joined [08:55:10]Waiting for new connection... [08:55:10] Sock 8.Parse request [08:55:10]Sock 8.Check first char [08:55:10]Sock 8.First char is OK [08:55:10]request: POST /json_proto HTTP/1.0 [08:55:10]Method: POST [08:55:10]URL: /json_proto [08:55:10]Method is POST - this is cgi request [08:55:10]url: /json_proto [08:55:10]query_string will be loaded in cgi processing [08:55:10]execute_cgi json_proto POST (null) [08:55:10]execute_cgi path=json_proto method=POST [08:55:10]POST find Content-Length [08:55:10]Host: 172.17.42.131:8080 [08:55:10]Content-Length: 682 [08:55:10]Content-Type: application/json [08:55:10] [08:55:10]POST finish read [08:55:10]Found Content-Length = 682 [08:55:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:10]execute_script... [08:55:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210171", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:55:10]POST & json_proto [08:55:10]process_json_proto [08:55:10]json parsed OK: [08:55:10]protocol is kg_v1.0 [08:55:10]action value=close_receipt [08:55:10]process_action close_receipt [08:55:10]cmd_close_receipt [08:55:10]MH_GetDate [08:55:10]Write to MH i2c: F0 00 00 DE 2F FC [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: F0 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: F0 09 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: F0 09 00 DE 2F 00 71 68 17 67 A0 18 CA 66 44 [08:55:10]GetLastDocTimeStamp 1729587030 [08:55:10]current date 1729587313 [08:55:10]FM_GetShiftState [08:55:10]SAM_PROTO_GetShiftState [08:55:10]wFMCommunicate request_size=4 [08:55:10]MH_SAM_APDU [08:55:10]CAPDU: 80 13 01 00 [08:55:10]Write to MH i2c: E2 08 00 DF 2F 80 13 01 00 00 00 00 00 8B [08:55:10]Write i2c OK [08:55:10]MH_I2C_Read... [08:55:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:10]Read from MH i2c: E2 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 0E 00 [08:55:10]MH_I2C_Read... [08:55:10]Read from MH i2c: E2 0E 00 DF 2F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 80 [08:55:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:55:10]wFMCommunicate OK [08:55:10]SAM_PROTO_GetShiftState done [08:55:10]FM_GetShiftState done [08:55:10]opened in 1729556094 [08:55:10]opened+sec_in_day 1729642494 [08:55:10]quantity*price = 100015 [08:55:10]sum+1 = 100017 [08:55:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 148 22.10.2024 08:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188119 ФПД: 260355625468954 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188119&fm=260355625468954&tin=02508201610067®Number=0000000000100030&sum=100000 [08:55:11]StoreToDocumentArchive [08:55:11]shift 461 fd 188119 [08:55:11]save to /storage/0461/doc_00188119 [08:55:11]save last doc name /storage/0461/doc_00188119 to /storage/kkm_last_doc_name [08:55:11]save OK [08:55:11]Clear old archive folders... [08:55:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:55:11]tlvbuf is 01C25250 [08:55:11]SAM_PROTO_ClearQueue [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 09 00 00 [08:55:11]Write to MH i2c: E2 08 00 EC 2F 80 09 00 00 00 00 00 00 8D [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 EC 2F 00 90 00 8F [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]SAM_PROTO_ClearQueue done [08:55:11]KKMCreateOFDPacket [08:55:11]OFDProtocolAddRootSTLVToBuf [08:55:11]FM_MakeSignedData [08:55:11]FM_MakeSignedData [08:55:11]SAM_PROTO_SignData [08:55:11]wFMCommunicate request_size=4 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 0D 01 02 [08:55:11]Write to MH i2c: E2 08 00 ED 2F 80 0D 01 02 00 00 00 00 95 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 ED 2F 00 90 00 90 [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]wFMCommunicate request_size=255 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 71 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DE 02 00 35 04 06 00 EC [08:55:11]Write to MH i2c: E2 02 01 EE 2F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 71 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DE 02 00 35 04 06 00 EC 00 00 5E [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:11]Read from MH i2c: E2 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 [08:55:11]MH_I2C_Read... [08:55:11]Read from MH i2c: E2 03 00 EE 2F 00 90 00 91 [08:55:11]RAPDU: 90 00 [08:55:11]wFMCommunicate OK [08:55:11]wFMCommunicate request_size=10 [08:55:11]MH_SAM_APDU [08:55:11]CAPDU: 80 0D 02 02 05 CA C4 92 44 1A [08:55:11]Write to MH i2c: E2 0D 00 EF 2F 80 0D 02 02 05 00 CA C4 92 44 1A 00 00 20 [08:55:11]Write i2c OK [08:55:11]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 03 00 EF 2F 00 90 00 92 [08:55:12]RAPDU: 90 00 [08:55:12]wFMCommunicate OK [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 0D 03 02 [08:55:12]Write to MH i2c: E2 08 00 F0 2F 80 0D 03 02 00 00 00 00 9A [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0B 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 0B 00 F0 2F 00 B9 CC 93 44 EE 43 50 6C 90 00 E4 [08:55:12]RAPDU: B9 CC 93 44 EE 43 50 6C 90 00 [08:55:12]wFMCommunicate OK [08:55:12]SAM_PROTO_SignData done [08:55:12]FM_MakeSignedData done [08:55:12]CreateOFDProtocolMessage [08:55:12]wFMCommunicate request_size=4 [08:55:12]MH_SAM_APDU [08:55:12]CAPDU: 80 11 00 00 [08:55:12]Write to MH i2c: E2 08 00 F1 2F 80 11 00 00 00 00 00 00 9A [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:12]Read from MH i2c: E2 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: E2 17 00 F1 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [08:55:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:55:12]wFMCommunicate OK [08:55:12]CreateOFDProtocolMessage done [08:55:12]OFDSenderStorePacket 188119 [08:55:12]StoreOFDPacket docnum=188119 [08:55:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AC C4 07 01 4A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 71 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DE 02 00 35 04 06 00 EC CA C4 92 44 1A B9 CC 93 44 EE 43 50 6C [08:55:12]CheckFolder [08:55:12]dirname=/storage/ofd_packets [08:55:12]CheckFolder done [08:55:12]ProducePacketName [08:55:12]name=ofd_packets/00188119 [08:55:12]NVStorageSaveData ofd_packets/00188119 [08:55:12]File name is /storage/ofd_packets/00188119 [08:55:12]Write 301 bytes [08:55:12]NVStorageSaveData done [08:55:12]OFDSenderStorePacket done [08:55:12]KKMCreateOFDPacket done [08:55:12]NVStorageSaveData kkm_last_timestamp [08:55:12]File name is /storage/kkm_last_timestamp [08:55:12]Write 4 bytes [08:55:12]NVStorageSaveData done [08:55:12]ExternCall_PrintAddStr [08:55:12]wPrintStart [08:55:12]Write to MH i2c: 01 00 00 F2 2F 21 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 F2 2F 00 00 00 00 00 FF 0F 36 [08:55:12]RasterBufferAndPrint [08:55:12]line Счет N : (1)210171 [08:55:12]line ИНН: 02508201610067 [08:55:12]line Контрольно-Кассовый Чек [08:55:12]line ПРОДАЖА [08:55:12]line ТРК (МРК, ГНК) : 32 [08:55:12]line Товар: 2710124130 [08:55:12]line Аи-92-К-3 [08:55:12]line 14.950 * 66.90 [08:55:12]line = 1000.16 [08:55:12]line НДС 12% НСП 1% [08:55:12]line > о реализуемом товаре [08:55:12]line ОКРУГЛЕНИЕ: -0.16 [08:55:12]line ИТОГО: 1000.00 [08:55:12]line Внесено: 1000.00 [08:55:12]line СДАЧА: 0.00 [08:55:12]line НСП 1% : 8.85 [08:55:12]line НДС 12% : 106.21 [08:55:12]line Наличными: 1000.00 [08:55:12]line Безнал.: 0.00 [08:55:12]line Место: АЗС № 86 "Партнер Нефть" [08:55:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:55:12]line СНО: Общий режим [08:55:12]line Чек 148 22.10.2024 08:55 [08:55:12]line Смена: 461 ФФД: 1.0 [08:55:12]line ЗНМ: 0300000155 [08:55:12]line РНМ: 0000000000100030 [08:55:12]line Версия ККМ: 001 [08:55:12]line ФМ: 0000000000965340 [08:55:12]line ФД: 188119 [08:55:12]line ФПД: 260355625468954 [08:55:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085513&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188119&fm=260355625468954&tin=02508201610067®Number=0000000000100030&sum=100000 [08:55:12]written 0, free lines is 4095 [08:55:12]OFD Sender: Processing packet 188119 [packets to send 1062, broken 1061] [08:55:12]ProducePacketName [08:55:12]name=ofd_packets/00188119 [08:55:12]OFD Sender: To server: pG, [08:55:12]CommunicateWithHost lk.salyk.kg:30040 [08:55:12]ConnectInit lk.salyk.kg [08:55:12]Connected sock=9 [08:55:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AC C4 07 01 4A D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 94 00 00 00 F4 03 04 00 71 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DE 02 00 35 04 06 00 EC CA C4 92 44 1A B9 CC 93 44 EE 43 50 6C [08:55:12]Write to MH i2c: 01 00 00 1D 30 4D [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: 01 07 00 1D 30 00 00 00 00 00 59 0C B9 [08:55:12]RasterBufferAndPrint [08:55:12]line [08:55:12]line [08:55:12]line [08:55:12]line [08:55:12]line [08:55:12]written 0, free lines is 3166 [08:55:12]MH_Cut [08:55:12]Write to MH i2c: D1 01 00 24 30 01 26 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: D1 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: D1 01 00 [08:55:12]MH_I2C_Read... [08:55:12]Read from MH i2c: D1 01 00 24 30 00 25 [08:55:12]Write to MH i2c: 01 00 00 25 30 55 [08:55:12]Write i2c OK [08:55:12]MH_I2C_Read... [08:55:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1C 84 47 00 24 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D7 DE 02 00 F4 03 04 00 5E 12 17 67 B6 04 01 00 00 9D 90 C6 72 31 62 2D BE [08:55:12]CommunicateWithHost err = 0 [08:55:12]CheckOFDResponse [08:55:12]1017 (14) - 77093643461234 [08:55:12]1041 (16) - 0000000000965340 [08:55:12]1040 (4) - 188119 [08:55:12]1012 (4) - 22.10.2024 02:47 [08:55:12]1206 (1) - 0 [08:55:12]OFD Sender: Remove packet 188119 [08:55:12]ProducePacketName [08:55:12]name=ofd_packets/00188119 [08:55:12]NVStorageDeleteData [08:55:13]OFD Sender: No OFD packet to send [08:55:13]*** Cut start [08:55:13]*** Partial cut [08:55:13]*** CUTSNS_PIN = 1 [08:55:13]*** CUTSNS_PIN = 0 [08:55:14]*** Brake cut motor [08:55:14]Read from MH i2c: 01 [08:55:14]MH_I2C_Read... [08:55:14]*** Stop cut motor [08:55:14]*** Cut end [08:55:14]Read from MH i2c: 01 07 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: 01 07 00 25 30 00 00 00 00 00 FF 0F 6A [08:55:14]process_action close_receipt done [08:55:14]requested_data is exist [08:55:14]produce_requested_data [08:55:14]requested_item fm.sn is exist - process it [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 11 00 00 [08:55:14]Write to MH i2c: E2 08 00 26 30 80 11 00 00 00 00 00 00 D0 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 17 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 17 00 26 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [08:55:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:55:14]wFMCommunicate OK [08:55:14]requested_item fd.num is exist - process it [08:55:14]SAM_PROTO_GetFieldsCounters [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 13 00 00 [08:55:14]Write to MH i2c: E2 08 00 27 30 80 13 00 00 00 00 00 00 D3 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 62 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 62 00 27 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [08:55:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 94 00 00 00 5E 04 04 00 94 00 00 00 57 04 04 00 95 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:55:14]wFMCommunicate OK [08:55:14]SAM_PROTO_GetFieldsCounters done [08:55:14]requested_item shift.num is exist - process it [08:55:14]requested_item shift.opened is exist - process it [08:55:14]req_shift_opened [08:55:14]FM_GetShiftState [08:55:14]SAM_PROTO_GetShiftState [08:55:14]wFMCommunicate request_size=4 [08:55:14]MH_SAM_APDU [08:55:14]CAPDU: 80 13 01 00 [08:55:14]Write to MH i2c: E2 08 00 28 30 80 13 01 00 00 00 00 00 D5 [08:55:14]Write i2c OK [08:55:14]MH_I2C_Read... [08:55:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:55:14]Read from MH i2c: E2 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 0E 00 [08:55:14]MH_I2C_Read... [08:55:14]Read from MH i2c: E2 0E 00 28 30 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CA [08:55:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:55:14]wFMCommunicate OK [08:55:14]SAM_PROTO_GetShiftState done [08:55:14]FM_GetShiftState done [08:55:14]req_shift_opened done [08:55:14]requested_item shift.open_date is exist - process it [08:55:14]req_shift_open_date [08:55:14]req_shift_open_date done [08:55:14]produce_requested_data done [08:55:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188119,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:55:14]process_action_free close_receipt [08:55:14]json_value_free [08:55:14]json_value_free done [08:55:14]process_json_proto returns [08:55:14]Send response to host [08:55:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188119,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:55:14]free response buf [08:55:14]execute_script done [08:55:14]execute_script returns [08:55:14]free content buf [08:55:14]Sock 8.Close socket [08:55:14]Sock 8.Thread stoped [08:55:18]OFD Sender: No OFD packet to send [08:55:23]OFD Sender: No OFD packet to send [08:55:28]OFD Sender: No OFD packet to send [08:55:33]OFD Sender: No OFD packet to send [08:55:38]OFD Sender: No OFD packet to send [08:55:43]OFD Sender: No OFD packet to send [08:55:48]OFD Sender: No OFD packet to send [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:33]OFD Sender: No OFD packet to send [08:56:37]accept exits with 10 [08:56:37]New connection [08:56:37]New thread 3067198820 created [08:56:37]Thread 3067055460 joined [08:56:37]Waiting for new connection... [08:56:37] Sock 10.Parse request [08:56:37]Sock 10.Check first char [08:56:37]Sock 10.First char is OK [08:56:37]request: POST /json_proto HTTP/1.0 [08:56:37]Method: POST [08:56:37]URL: /json_proto [08:56:37]Method is POST - this is cgi request [08:56:37]url: /json_proto [08:56:37]query_string will be loaded in cgi processing [08:56:37]execute_cgi json_proto POST (null) [08:56:37]execute_cgi path=json_proto method=POST [08:56:37]POST find Content-Length [08:56:37]Host: 172.17.42.131:8080 [08:56:37]Content-Length: 677 [08:56:37]Content-Type: application/json [08:56:37] [08:56:37]POST finish read [08:56:37]Found Content-Length = 677 [08:56:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:37]execute_script... [08:56: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)210173", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:37]POST & json_proto [08:56:37]process_json_proto [08:56:37]json parsed OK: [08:56:37]protocol is kg_v1.0 [08:56:37]action value=close_receipt [08:56:37]process_action close_receipt [08:56:37]cmd_close_receipt [08:56:37]MH_GetDate [08:56:37]Write to MH i2c: F0 00 00 29 30 48 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: F0 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: F0 09 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: F0 09 00 29 30 00 C8 68 17 67 A0 18 CA 66 E7 [08:56:37]GetLastDocTimeStamp 1729587313 [08:56:37]current date 1729587400 [08:56:37]FM_GetShiftState [08:56:37]SAM_PROTO_GetShiftState [08:56:37]wFMCommunicate request_size=4 [08:56:37]MH_SAM_APDU [08:56:37]CAPDU: 80 13 01 00 [08:56:37]Write to MH i2c: E2 08 00 2A 30 80 13 01 00 00 00 00 00 D7 [08:56:37]Write i2c OK [08:56:37]MH_I2C_Read... [08:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:37]Read from MH i2c: E2 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 [08:56:37]MH_I2C_Read... [08:56:37]Read from MH i2c: E2 0E 00 2A 30 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CC [08:56:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:56:37]wFMCommunicate OK [08:56:37]SAM_PROTO_GetShiftState done [08:56:37]FM_GetShiftState done [08:56:37]opened in 1729556094 [08:56:37]opened+sec_in_day 1729642494 [08:56:37]quantity*price = 50041 [08:56:37]sum+1 = 50042 [08:56:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 149 22.10.2024 08:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188120 ФПД: 23156195285085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085640&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188120&fm=23156195285085&tin=02508201610067®Number=0000000000100030&sum=50000 [08:56:38]StoreToDocumentArchive [08:56:38]shift 461 fd 188120 [08:56:38]save to /storage/0461/doc_00188120 [08:56:38]save last doc name /storage/0461/doc_00188120 to /storage/kkm_last_doc_name [08:56:38]save OK [08:56:38]Clear old archive folders... [08:56:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:56:38]tlvbuf is 01B91DD0 [08:56:38]SAM_PROTO_ClearQueue [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 09 00 00 [08:56:38]Write to MH i2c: E2 08 00 37 30 80 09 00 00 00 00 00 00 D9 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 37 30 00 90 00 DB [08:56:38]RAPDU: 90 00 [08:56:38]wFMCommunicate OK [08:56:38]SAM_PROTO_ClearQueue done [08:56:38]KKMCreateOFDPacket [08:56:38]OFDProtocolAddRootSTLVToBuf [08:56:38]FM_MakeSignedData [08:56:38]FM_MakeSignedData [08:56:38]SAM_PROTO_SignData [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 0D 01 02 [08:56:38]Write to MH i2c: E2 08 00 38 30 80 0D 01 02 00 00 00 00 E1 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 38 30 00 90 00 DC [08:56:38]RAPDU: 90 00 [08:56:38]wFMCommunicate OK [08:56:38]wFMCommunicate request_size=255 [08:56:38]MH_SAM_APDU [08:56: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DE 02 00 35 04 06 00 15 [08:56:38]Write to MH i2c: E2 02 01 39 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DE 02 00 35 04 06 00 15 00 00 32 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]OFD Sender: No OFD packet to send [08:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 39 30 00 90 00 DD [08:56:38]RAPDU: 90 00 [08:56:38]wFMCommunicate OK [08:56:38]wFMCommunicate request_size=10 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 0D 02 02 05 0F 78 CB 58 5D [08:56:38]Write to MH i2c: E2 0D 00 3A 30 80 0D 02 02 05 00 0F 78 CB 58 5D 00 00 F5 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:38]Read from MH i2c: E2 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 [08:56:38]MH_I2C_Read... [08:56:38]Read from MH i2c: E2 03 00 3A 30 00 90 00 DE [08:56:38]RAPDU: 90 00 [08:56:38]wFMCommunicate OK [08:56:38]wFMCommunicate request_size=4 [08:56:38]MH_SAM_APDU [08:56:38]CAPDU: 80 0D 03 02 [08:56:38]Write to MH i2c: E2 08 00 3B 30 80 0D 03 02 00 00 00 00 E6 [08:56:38]Write i2c OK [08:56:38]MH_I2C_Read... [08:56:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 0B 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 0B 00 3B 30 00 74 81 DA BB B1 51 CB 39 90 00 77 [08:56:39]RAPDU: 74 81 DA BB B1 51 CB 39 90 00 [08:56:39]wFMCommunicate OK [08:56:39]SAM_PROTO_SignData done [08:56:39]FM_MakeSignedData done [08:56:39]CreateOFDProtocolMessage [08:56:39]wFMCommunicate request_size=4 [08:56:39]MH_SAM_APDU [08:56:39]CAPDU: 80 11 00 00 [08:56:39]Write to MH i2c: E2 08 00 3C 30 80 11 00 00 00 00 00 00 E6 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:39]Read from MH i2c: E2 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 17 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: E2 17 00 3C 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [08:56:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:56:39]wFMCommunicate OK [08:56:39]CreateOFDProtocolMessage done [08:56:39]OFDSenderStorePacket 188120 [08:56:39]StoreOFDPacket docnum=188120 [08:56:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B4 B5 07 01 29 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DE 02 00 35 04 06 00 15 0F 78 CB 58 5D 74 81 DA BB B1 51 CB 39 [08:56:39]CheckFolder [08:56:39]dirname=/storage/ofd_packets [08:56:39]CheckFolder done [08:56:39]ProducePacketName [08:56:39]name=ofd_packets/00188120 [08:56:39]NVStorageSaveData ofd_packets/00188120 [08:56:39]File name is /storage/ofd_packets/00188120 [08:56:39]Write 301 bytes [08:56:39]NVStorageSaveData done [08:56:39]OFDSenderStorePacket done [08:56:39]KKMCreateOFDPacket done [08:56:39]NVStorageSaveData kkm_last_timestamp [08:56:39]File name is /storage/kkm_last_timestamp [08:56:39]Write 4 bytes [08:56:39]NVStorageSaveData done [08:56:39]ExternCall_PrintAddStr [08:56:39]wPrintStart [08:56:39]Write to MH i2c: 01 00 00 3D 30 6D [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 07 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 07 00 3D 30 00 00 00 00 00 FF 0F 82 [08:56:39]RasterBufferAndPrint [08:56:39]line Счет N : (1)210173 [08:56:39]line ИНН: 02508201610067 [08:56:39]line Контрольно-Кассовый Чек [08:56:39]line ПРОДАЖА [08:56:39]line ТРК (МРК, ГНК) : 32 [08:56:39]line Товар: 2710124130 [08:56:39]line Аи-92-К-3 [08:56:39]line 7.480 * 66.90 [08:56:39]line = 500.41 [08:56:39]line НДС 12% НСП 1% [08:56:39]line > о реализуемом товаре [08:56:39]line ОКРУГЛЕНИЕ: -0.41 [08:56:39]line ИТОГО: 500.00 [08:56:39]line Внесено: 500.00 [08:56:39]line СДАЧА: 0.00 [08:56:39]line НСП 1% : 4.43 [08:56:39]line НДС 12% : 53.14 [08:56:39]line Наличными: 500.00 [08:56:39]line Безнал.: 0.00 [08:56:39]line Место: АЗС № 86 "Партнер Нефть" [08:56:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:56:39]line СНО: Общий режим [08:56:39]line Чек 149 22.10.2024 08:56 [08:56:39]line Смена: 461 ФФД: 1.0 [08:56:39]line ЗНМ: 0300000155 [08:56:39]line РНМ: 0000000000100030 [08:56:39]line Версия ККМ: 001 [08:56:39]line ФМ: 0000000000965340 [08:56:39]line ФД: 188120 [08:56:39]line ФПД: 23156195285085 [08:56:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085640&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188120&fm=23156195285085&tin=02508201610067®Number=0000000000100030&sum=50000 [08:56:39]written 0, free lines is 4095 [08:56:39]OFD Sender: Processing packet 188120 [packets to send 1062, broken 1061] [08:56:39]ProducePacketName [08:56:39]name=ofd_packets/00188120 [08:56:39]OFD Sender: To server: pG, [08:56:39]CommunicateWithHost lk.salyk.kg:30040 [08:56:39]ConnectInit lk.salyk.kg [08:56:39]Connected sock=9 [08:56:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B4 B5 07 01 29 94 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 95 00 00 00 F4 03 04 00 C8 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DE 02 00 35 04 06 00 15 0F 78 CB 58 5D 74 81 DA BB B1 51 CB 39 [08:56:39]Write to MH i2c: 01 00 00 68 30 98 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 07 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: 01 07 00 68 30 00 00 00 00 00 58 0C 03 [08:56:39]RasterBufferAndPrint [08:56:39]line [08:56:39]line [08:56:39]line [08:56:39]line [08:56:39]line [08:56:39]written 0, free lines is 3165 [08:56:39]MH_Cut [08:56:39]Write to MH i2c: D1 01 00 6F 30 01 71 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: D1 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: D1 01 00 [08:56:39]MH_I2C_Read... [08:56:39]Read from MH i2c: D1 01 00 6F 30 00 70 [08:56:39]Write to MH i2c: 01 00 00 70 30 A0 [08:56:39]Write i2c OK [08:56:39]MH_I2C_Read... [08:56:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 39 47 00 47 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D8 DE 02 00 F4 03 04 00 B5 12 17 67 B6 04 01 00 00 86 90 24 6B F1 0F 84 3F [08:56:39]CommunicateWithHost err = 0 [08:56:39]CheckOFDResponse [08:56:39]1017 (14) - 77093643461234 [08:56:39]1041 (16) - 0000000000965340 [08:56:39]1040 (4) - 188120 [08:56:39]1012 (4) - 22.10.2024 02:49 [08:56:39]1206 (1) - 0 [08:56:39]OFD Sender: Remove packet 188120 [08:56:39]ProducePacketName [08:56:39]name=ofd_packets/00188120 [08:56:39]NVStorageDeleteData [08:56:40]OFD Sender: No OFD packet to send [08:56:40]*** Cut start [08:56:40]*** Partial cut [08:56:40]*** CUTSNS_PIN = 1 [08:56:40]*** CUTSNS_PIN = 0 [08:56:41]*** Brake cut motor [08:56:41]Read from MH i2c: 01 [08:56:41]MH_I2C_Read... [08:56:41]*** Stop cut motor [08:56:41]*** Cut end [08:56:41]Read from MH i2c: 01 07 00 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: 01 07 00 70 30 00 00 00 00 00 FF 0F B5 [08:56:41]process_action close_receipt done [08:56:41]requested_data is exist [08:56:41]produce_requested_data [08:56:41]requested_item fm.sn is exist - process it [08:56:41]wFMCommunicate request_size=4 [08:56:41]MH_SAM_APDU [08:56:41]CAPDU: 80 11 00 00 [08:56:41]Write to MH i2c: E2 08 00 71 30 80 11 00 00 00 00 00 00 1B [08:56:41]Write i2c OK [08:56:41]MH_I2C_Read... [08:56:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:41]Read from MH i2c: E2 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: E2 17 00 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: E2 17 00 71 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [08:56:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:56:41]wFMCommunicate OK [08:56:41]requested_item fd.num is exist - process it [08:56:41]SAM_PROTO_GetFieldsCounters [08:56:41]wFMCommunicate request_size=4 [08:56:41]MH_SAM_APDU [08:56:41]CAPDU: 80 13 00 00 [08:56:41]Write to MH i2c: E2 08 00 72 30 80 13 00 00 00 00 00 00 1E [08:56:41]Write i2c OK [08:56:41]MH_I2C_Read... [08:56:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:56:41]Read from MH i2c: E2 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: E2 62 00 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: E2 62 00 72 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 6A [08:56:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 95 00 00 00 5E 04 04 00 95 00 00 00 57 04 04 00 96 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:56:41]wFMCommunicate OK [08:56:41]SAM_PROTO_GetFieldsCounters done [08:56:41]requested_item shift.num is exist - process it [08:56:41]requested_item shift.opened is exist - process it [08:56:41]req_shift_opened [08:56:41]FM_GetShiftState [08:56:41]SAM_PROTO_GetShiftState [08:56:41]wFMCommunicate request_size=4 [08:56:41]MH_SAM_APDU [08:56:41]CAPDU: 80 13 01 00 [08:56:41]Write to MH i2c: E2 08 00 73 30 80 13 01 00 00 00 00 00 20 [08:56:41]Write i2c OK [08:56:41]MH_I2C_Read... [08:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:41]Read from MH i2c: E2 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: E2 0E 00 [08:56:41]MH_I2C_Read... [08:56:41]Read from MH i2c: E2 0E 00 73 30 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [08:56:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:56:41]wFMCommunicate OK [08:56:41]SAM_PROTO_GetShiftState done [08:56:41]FM_GetShiftState done [08:56:41]req_shift_opened done [08:56:41]requested_item shift.open_date is exist - process it [08:56:41]req_shift_open_date [08:56:41]req_shift_open_date done [08:56:41]produce_requested_data done [08:56:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188120,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:56:41]process_action_free close_receipt [08:56:41]json_value_free [08:56:41]json_value_free done [08:56:41]process_json_proto returns [08:56:41]Send response to host [08:56:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188120,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:56:41]free response buf [08:56:41]execute_script done [08:56:41]execute_script returns [08:56:41]free content buf [08:56:41]Sock 10.Close socket [08:56:41]Sock 10.Thread stoped [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:17]accept exits with 8 [08:57:17]New connection [08:57:17]New thread 3067055460 created [08:57:17]Thread 3067198820 joined [08:57:17]Waiting for new connection... [08:57:17] Sock 8.Parse request [08:57:17]Sock 8.Check first char [08:57:17]Sock 8.First char is OK [08:57:17]request: POST /json_proto HTTP/1.0 [08:57:17]Method: POST [08:57:17]URL: /json_proto [08:57:17]Method is POST - this is cgi request [08:57:17]url: /json_proto [08:57:17]query_string will be loaded in cgi processing [08:57:17]execute_cgi json_proto POST (null) [08:57:17]execute_cgi path=json_proto method=POST [08:57:17]POST find Content-Length [08:57:17]Host: 172.17.42.131:8080 [08:57:17]Content-Length: 688 [08:57:17]Content-Type: application/json [08:57:17] [08:57:17]POST finish read [08:57:17]Found Content-Length = 688 [08:57:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [08:57:17]execute_script... [08:57: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)210172", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [08:57:17]POST & json_proto [08:57:17]process_json_proto [08:57:17]json parsed OK: [08:57:17]protocol is kg_v1.0 [08:57:17]action value=close_receipt [08:57:17]process_action close_receipt [08:57:17]cmd_close_receipt [08:57:17]MH_GetDate [08:57:17]Write to MH i2c: F0 00 00 74 30 93 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: F0 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: F0 09 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: F0 09 00 74 30 00 EF 68 17 67 A0 18 CA 66 59 [08:57:17]GetLastDocTimeStamp 1729587400 [08:57:17]current date 1729587439 [08:57:17]FM_GetShiftState [08:57:17]SAM_PROTO_GetShiftState [08:57:17]wFMCommunicate request_size=4 [08:57:17]MH_SAM_APDU [08:57:17]CAPDU: 80 13 01 00 [08:57:17]Write to MH i2c: E2 08 00 75 30 80 13 01 00 00 00 00 00 22 [08:57:17]Write i2c OK [08:57:17]MH_I2C_Read... [08:57:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:17]Read from MH i2c: E2 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0E 00 [08:57:17]MH_I2C_Read... [08:57:17]Read from MH i2c: E2 0E 00 75 30 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 17 [08:57:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:57:17]wFMCommunicate OK [08:57:17]SAM_PROTO_GetShiftState done [08:57:17]FM_GetShiftState done [08:57:17]opened in 1729556094 [08:57:17]opened+sec_in_day 1729642494 [08:57:17]quantity*price = 200025 [08:57:17]sum+1 = 200026 [08:57:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 150 22.10.2024 08:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188121 ФПД: 230723135982914 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188121&fm=230723135982914&tin=02508201610067®Number=0000000000100030&sum=200000 [08:57:18]StoreToDocumentArchive [08:57:18]shift 461 fd 188121 [08:57:18]save to /storage/0461/doc_00188121 [08:57:18]save last doc name /storage/0461/doc_00188121 to /storage/kkm_last_doc_name [08:57:18]save OK [08:57:18]Clear old archive folders... [08:57:18]ProcessDocumentItem done err = 0, tmpTLVsize=257 [08:57:18]tlvbuf is 01BAD6D0 [08:57:18]SAM_PROTO_ClearQueue [08:57:18]wFMCommunicate request_size=4 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 09 00 00 [08:57:18]Write to MH i2c: E2 08 00 82 30 80 09 00 00 00 00 00 00 24 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 82 30 00 90 00 26 [08:57:18]RAPDU: 90 00 [08:57:18]wFMCommunicate OK [08:57:18]SAM_PROTO_ClearQueue done [08:57:18]KKMCreateOFDPacket [08:57:18]OFDProtocolAddRootSTLVToBuf [08:57:18]FM_MakeSignedData [08:57:18]FM_MakeSignedData [08:57:18]SAM_PROTO_SignData [08:57:18]wFMCommunicate request_size=4 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 0D 01 02 [08:57:18]Write to MH i2c: E2 08 00 83 30 80 0D 01 02 00 00 00 00 2C [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 83 30 00 90 00 27 [08:57:18]RAPDU: 90 00 [08:57:18]wFMCommunicate OK [08:57:18]wFMCommunicate request_size=255 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 96 00 00 00 F4 03 04 00 F0 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DE 02 [08:57:18]Write to MH i2c: E2 02 01 84 30 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 96 00 00 00 F4 03 04 00 F0 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DE 02 00 00 C0 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 84 30 00 90 00 28 [08:57:18]RAPDU: 90 00 [08:57:18]wFMCommunicate OK [08:57:18]wFMCommunicate request_size=16 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D1 D7 6A 8F CD 42 [08:57:18]Write to MH i2c: E2 13 00 85 30 80 0D 02 02 0B 00 00 35 04 06 00 D1 D7 6A 8F CD 42 00 00 34 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 03 00 85 30 00 90 00 29 [08:57:18]RAPDU: 90 00 [08:57:18]wFMCommunicate OK [08:57:18]wFMCommunicate request_size=4 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 0D 03 02 [08:57:18]Write to MH i2c: E2 08 00 86 30 80 0D 03 02 00 00 00 00 31 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 0B 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 0B 00 86 30 00 08 64 6A F8 60 0A 1F 3F 90 00 C8 [08:57:18]RAPDU: 08 64 6A F8 60 0A 1F 3F 90 00 [08:57:18]wFMCommunicate OK [08:57:18]SAM_PROTO_SignData done [08:57:18]FM_MakeSignedData done [08:57:18]CreateOFDProtocolMessage [08:57:18]wFMCommunicate request_size=4 [08:57:18]MH_SAM_APDU [08:57:18]CAPDU: 80 11 00 00 [08:57:18]Write to MH i2c: E2 08 00 87 30 80 11 00 00 00 00 00 00 31 [08:57:18]Write i2c OK [08:57:18]MH_I2C_Read... [08:57:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:18]Read from MH i2c: E2 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 17 00 [08:57:18]MH_I2C_Read... [08:57:18]Read from MH i2c: E2 17 00 87 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [08:57:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:18]wFMCommunicate OK [08:57:18]CreateOFDProtocolMessage done [08:57:18]OFDSenderStorePacket 188121 [08:57:18]StoreOFDPacket docnum=188121 [08:57:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4F 7F 0D 01 F0 46 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 96 00 00 00 F4 03 04 00 F0 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DE 02 00 35 04 06 00 D1 D7 6A 8F CD 42 08 64 6A F8 60 0A 1F 3F [08:57:18]CheckFolder [08:57:18]dirname=/storage/ofd_packets [08:57:18]CheckFolder done [08:57:18]ProducePacketName [08:57:18]name=ofd_packets/00188121 [08:57:18]NVStorageSaveData ofd_packets/00188121 [08:57:18]File name is /storage/ofd_packets/00188121 [08:57:18]Write 307 bytes [08:57:18]NVStorageSaveData done [08:57:18]OFDSenderStorePacket done [08:57:18]KKMCreateOFDPacket done [08:57:18]NVStorageSaveData kkm_last_timestamp [08:57:18]File name is /storage/kkm_last_timestamp [08:57:18]Write 4 bytes [08:57:18]NVStorageSaveData done [08:57:18]ExternCall_PrintAddStr [08:57:18]wPrintStart [08:57:18]Write to MH i2c: 01 00 00 88 30 B8 [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 88 30 00 00 00 00 00 FF 0F CD [08:57:18]RasterBufferAndPrint [08:57:18]line Счет N : (1)210172 [08:57:18]line ИНН: 02508201610067 [08:57:18]line Контрольно-Кассовый Чек [08:57:18]line ПРОДАЖА [08:57:18]line ТРК (МРК, ГНК) : 11 [08:57:18]line Товар: 2710194210 [08:57:18]line D-ENERGY ДТ-К-5 [08:57:18]line 25.910 * 77.20 [08:57:18]line = 2000.25 [08:57:18]line НДС 12% НСП 1% [08:57:18]line > о реализуемом товаре [08:57:18]line ОКРУГЛЕНИЕ: -0.25 [08:57:18]line ИТОГО: 2000.00 [08:57:18]line Внесено: 2000.00 [08:57:18]line СДАЧА: 0.00 [08:57:18]line НСП 1% : 17.70 [08:57:18]line НДС 12% : 212.42 [08:57:18]line Наличными: 2000.00 [08:57:18]line Безнал.: 0.00 [08:57:18]line Место: АЗС № 86 "Партнер Нефть" [08:57:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:57:18]line СНО: Общий режим [08:57:18]line Чек 150 22.10.2024 08:57 [08:57:18]line Смена: 461 ФФД: 1.0 [08:57:18]line ЗНМ: 0300000155 [08:57:18]line РНМ: 0000000000100030 [08:57:18]line Версия ККМ: 001 [08:57:18]line ФМ: 0000000000965340 [08:57:18]line ФД: 188121 [08:57:18]line ФПД: 230723135982914 [08:57:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085720&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188121&fm=230723135982914&tin=02508201610067®Number=0000000000100030&sum=200000 [08:57:19]written 0, free lines is 4095 [08:57:19]OFD Sender: Processing packet 188121 [packets to send 1062, broken 1061] [08:57:19]ProducePacketName [08:57:19]name=ofd_packets/00188121 [08:57:19]OFD Sender: To server: pG, [08:57:19]CommunicateWithHost lk.salyk.kg:30040 [08:57:19]ConnectInit lk.salyk.kg [08:57:19]Connected sock=10 [08:57:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4F 7F 0D 01 F0 46 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 96 00 00 00 F4 03 04 00 F0 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D9 DE 02 00 35 04 06 00 D1 D7 6A 8F CD 42 08 64 6A F8 60 0A 1F 3F [08:57:19]Write to MH i2c: 01 00 00 B3 30 E3 [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: 01 [08:57:19]MH_I2C_Read... [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 B3 30 00 00 00 00 00 59 0C 4F [08:57:19]RasterBufferAndPrint [08:57:19]line [08:57:19]line [08:57:19]line [08:57:19]line [08:57:19]line [08:57:19]written 0, free lines is 3166 [08:57:19]MH_Cut [08:57:19]Write to MH i2c: D1 01 00 BA 30 01 BC [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: D1 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: D1 01 00 [08:57:19]MH_I2C_Read... [08:57:19]Read from MH i2c: D1 01 00 BA 30 00 BB [08:57:19]Write to MH i2c: 01 00 00 BB 30 EB [08:57:19]Write i2c OK [08:57:19]MH_I2C_Read... [08:57:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D4 E6 47 00 5B 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 39 36 35 33 34 30 10 04 04 00 D9 DE 02 00 F4 03 04 00 DD 12 17 67 B6 04 01 00 00 88 36 6D A7 91 27 2F 4D [08:57:19]CommunicateWithHost err = 0 [08:57:19]CheckOFDResponse [08:57:19]1017 (14) - 77093643461234 [08:57:19]1041 (16) - 0000000000965340 [08:57:19]1040 (4) - 188121 [08:57:19]1012 (4) - 22.10.2024 02:50 [08:57:19]1206 (1) - 0 [08:57:19]OFD Sender: Remove packet 188121 [08:57:19]ProducePacketName [08:57:19]name=ofd_packets/00188121 [08:57:19]NVStorageDeleteData [08:57:20]OFD Sender: No OFD packet to send [08:57:20]*** Cut start [08:57:20]*** Partial cut [08:57:20]*** CUTSNS_PIN = 1 [08:57:20]*** CUTSNS_PIN = 0 [08:57:21]*** Brake cut motor [08:57:21]Read from MH i2c: 01 [08:57:21]MH_I2C_Read... [08:57:21]*** Stop cut motor [08:57:21]*** Cut end [08:57:21]Read from MH i2c: 01 07 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: 01 07 00 BB 30 00 00 00 00 00 FF 0F 00 [08:57:21]process_action close_receipt done [08:57:21]requested_data is exist [08:57:21]produce_requested_data [08:57:21]requested_item fm.sn is exist - process it [08:57:21]wFMCommunicate request_size=4 [08:57:21]MH_SAM_APDU [08:57:21]CAPDU: 80 11 00 00 [08:57:21]Write to MH i2c: E2 08 00 BC 30 80 11 00 00 00 00 00 00 66 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:21]Read from MH i2c: E2 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 17 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 17 00 BC 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [08:57:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:21]wFMCommunicate OK [08:57:21]requested_item fd.num is exist - process it [08:57:21]SAM_PROTO_GetFieldsCounters [08:57:21]wFMCommunicate request_size=4 [08:57:21]MH_SAM_APDU [08:57:21]CAPDU: 80 13 00 00 [08:57:21]Write to MH i2c: E2 08 00 BD 30 80 13 00 00 00 00 00 00 69 [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:21]Read from MH i2c: E2 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 62 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 62 00 BD 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 B9 [08:57:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 96 00 00 00 5E 04 04 00 96 00 00 00 57 04 04 00 97 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:21]wFMCommunicate OK [08:57:21]SAM_PROTO_GetFieldsCounters done [08:57:21]requested_item shift.num is exist - process it [08:57:21]requested_item shift.opened is exist - process it [08:57:21]req_shift_opened [08:57:21]FM_GetShiftState [08:57:21]SAM_PROTO_GetShiftState [08:57:21]wFMCommunicate request_size=4 [08:57:21]MH_SAM_APDU [08:57:21]CAPDU: 80 13 01 00 [08:57:21]Write to MH i2c: E2 08 00 BE 30 80 13 01 00 00 00 00 00 6B [08:57:21]Write i2c OK [08:57:21]MH_I2C_Read... [08:57:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:21]Read from MH i2c: E2 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 0E 00 [08:57:21]MH_I2C_Read... [08:57:21]Read from MH i2c: E2 0E 00 BE 30 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 60 [08:57:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:57:21]wFMCommunicate OK [08:57:21]SAM_PROTO_GetShiftState done [08:57:21]FM_GetShiftState done [08:57:21]req_shift_opened done [08:57:21]requested_item shift.open_date is exist - process it [08:57:21]req_shift_open_date [08:57:21]req_shift_open_date done [08:57:21]produce_requested_data done [08:57:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188121,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:57:21]process_action_free close_receipt [08:57:21]json_value_free [08:57:21]json_value_free done [08:57:21]process_json_proto returns [08:57:21]Send response to host [08:57:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188121,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:57:21]free response buf [08:57:21]execute_script done [08:57:21]execute_script returns [08:57:21]free content buf [08:57:21]Sock 8.Close socket [08:57:21]Sock 8.Thread stoped [08:57:25]OFD Sender: No OFD packet to send [08:57:30]accept exits with 9 [08:57:30]New connection [08:57:30]New thread 3067198820 created [08:57:30]Thread 3067055460 joined [08:57:30]Waiting for new connection... [08:57:30] Sock 9.Parse request [08:57:30]Sock 9.Check first char [08:57:30]Sock 9.First char is OK [08:57:30]request: POST /json_proto HTTP/1.0 [08:57:30]Method: POST [08:57:30]URL: /json_proto [08:57:30]Method is POST - this is cgi request [08:57:30]url: /json_proto [08:57:30]query_string will be loaded in cgi processing [08:57:30]execute_cgi json_proto POST (null) [08:57:30]execute_cgi path=json_proto method=POST [08:57:30]POST find Content-Length [08:57:30]Host: 172.17.42.131:8080 [08:57:30]Content-Length: 682 [08:57:30]Content-Type: application/json [08:57:30] [08:57:30]POST finish read [08:57:30]Found Content-Length = 682 [08:57:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:30]execute_script... [08:57: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)210174", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:57:30]POST & json_proto [08:57:30]process_json_proto [08:57:30]json parsed OK: [08:57:30]protocol is kg_v1.0 [08:57:30]action value=close_receipt [08:57:30]process_action close_receipt [08:57:30]cmd_close_receipt [08:57:30]MH_GetDate [08:57:30]Write to MH i2c: F0 00 00 BF 30 DE [08:57:30]Write i2c OK [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: F0 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: F0 09 00 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: F0 09 00 BF 30 00 FC 68 17 67 A0 18 CA 66 B1 [08:57:30]GetLastDocTimeStamp 1729587440 [08:57:30]current date 1729587452 [08:57:30]FM_GetShiftState [08:57:30]SAM_PROTO_GetShiftState [08:57:30]wFMCommunicate request_size=4 [08:57:30]MH_SAM_APDU [08:57:30]CAPDU: 80 13 01 00 [08:57:30]Write to MH i2c: E2 08 00 C0 30 80 13 01 00 00 00 00 00 6D [08:57:30]Write i2c OK [08:57:30]MH_I2C_Read... [08:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:30]Read from MH i2c: E2 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 0E 00 [08:57:30]MH_I2C_Read... [08:57:30]Read from MH i2c: E2 0E 00 C0 30 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 62 [08:57:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:57:30]wFMCommunicate OK [08:57:30]SAM_PROTO_GetShiftState done [08:57:30]FM_GetShiftState done [08:57:30]opened in 1729556094 [08:57:30]opened+sec_in_day 1729642494 [08:57:30]quantity*price = 100015 [08:57:30]sum+1 = 100017 [08:57:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 151 22.10.2024 08:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188122 ФПД: 132630930126104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188122&fm=132630930126104&tin=02508201610067®Number=0000000000100030&sum=100000 [08:57:31]StoreToDocumentArchive [08:57:31]shift 461 fd 188122 [08:57:31]save to /storage/0461/doc_00188122 [08:57:31]save last doc name /storage/0461/doc_00188122 to /storage/kkm_last_doc_name [08:57:31]save OK [08:57:31]Clear old archive folders... [08:57:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:57:31]tlvbuf is 01C44EB0 [08:57:31]SAM_PROTO_ClearQueue [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 09 00 00 [08:57:31]Write to MH i2c: E2 08 00 CD 30 80 09 00 00 00 00 00 00 6F [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 CD 30 00 90 00 71 [08:57:31]RAPDU: 90 00 [08:57:31]wFMCommunicate OK [08:57:31]SAM_PROTO_ClearQueue done [08:57:31]KKMCreateOFDPacket [08:57:31]OFDProtocolAddRootSTLVToBuf [08:57:31]FM_MakeSignedData [08:57:31]FM_MakeSignedData [08:57:31]SAM_PROTO_SignData [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 0D 01 02 [08:57:31]Write to MH i2c: E2 08 00 CE 30 80 0D 01 02 00 00 00 00 77 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 CE 30 00 90 00 72 [08:57:31]RAPDU: 90 00 [08:57:31]wFMCommunicate OK [08:57:31]wFMCommunicate request_size=255 [08:57:31]MH_SAM_APDU [08:57: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 FC 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DE 02 00 35 04 06 00 78 [08:57:31]Write to MH i2c: E2 02 01 CF 30 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 FC 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DE 02 00 35 04 06 00 78 00 00 5D [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 CF 30 00 90 00 73 [08:57:31]RAPDU: 90 00 [08:57:31]wFMCommunicate OK [08:57:31]wFMCommunicate request_size=10 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 0D 02 02 05 A0 8B 79 F5 18 [08:57:31]Write to MH i2c: E2 0D 00 D0 30 80 0D 02 02 05 00 A0 8B 79 F5 18 00 00 35 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 03 00 D0 30 00 90 00 74 [08:57:31]RAPDU: 90 00 [08:57:31]wFMCommunicate OK [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 0D 03 02 [08:57:31]Write to MH i2c: E2 08 00 D1 30 80 0D 03 02 00 00 00 00 7C [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 0B 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 0B 00 D1 30 00 49 C5 E5 52 58 DE 1A 5D 90 00 6F [08:57:31]RAPDU: 49 C5 E5 52 58 DE 1A 5D 90 00 [08:57:31]wFMCommunicate OK [08:57:31]SAM_PROTO_SignData done [08:57:31]FM_MakeSignedData done [08:57:31]CreateOFDProtocolMessage [08:57:31]wFMCommunicate request_size=4 [08:57:31]MH_SAM_APDU [08:57:31]CAPDU: 80 11 00 00 [08:57:31]Write to MH i2c: E2 08 00 D2 30 80 11 00 00 00 00 00 00 7C [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:31]Read from MH i2c: E2 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 17 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: E2 17 00 D2 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [08:57:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:31]wFMCommunicate OK [08:57:31]CreateOFDProtocolMessage done [08:57:31]OFDSenderStorePacket 188122 [08:57:31]StoreOFDPacket docnum=188122 [08:57:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 69 07 01 CA 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 FC 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DE 02 00 35 04 06 00 78 A0 8B 79 F5 18 49 C5 E5 52 58 DE 1A 5D [08:57:31]CheckFolder [08:57:31]dirname=/storage/ofd_packets [08:57:31]CheckFolder done [08:57:31]ProducePacketName [08:57:31]name=ofd_packets/00188122 [08:57:31]NVStorageSaveData ofd_packets/00188122 [08:57:31]File name is /storage/ofd_packets/00188122 [08:57:31]Write 301 bytes [08:57:31]NVStorageSaveData done [08:57:31]OFDSenderStorePacket done [08:57:31]KKMCreateOFDPacket done [08:57:31]NVStorageSaveData kkm_last_timestamp [08:57:31]File name is /storage/kkm_last_timestamp [08:57:31]Write 4 bytes [08:57:31]NVStorageSaveData done [08:57:31]ExternCall_PrintAddStr [08:57:31]wPrintStart [08:57:31]Write to MH i2c: 01 00 00 D3 30 03 [08:57:31]Write i2c OK [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 [08:57:31]MH_I2C_Read... [08:57:31]Read from MH i2c: 01 07 00 D3 30 00 00 00 00 00 FF 0F 18 [08:57:31]RasterBufferAndPrint [08:57:31]line Счет N : (1)210174 [08:57:31]line ИНН: 02508201610067 [08:57:31]line Контрольно-Кассовый Чек [08:57:31]line ПРОДАЖА [08:57:31]line ТРК (МРК, ГНК) : 22 [08:57:31]line Товар: 2710124130 [08:57:31]line Аи-92-К-3 [08:57:31]line 14.950 * 66.90 [08:57:31]line = 1000.16 [08:57:31]line НДС 12% НСП 1% [08:57:31]line > о реализуемом товаре [08:57:31]line ОКРУГЛЕНИЕ: -0.16 [08:57:31]line ИТОГО: 1000.00 [08:57:31]line Внесено: 1000.00 [08:57:31]line СДАЧА: 0.00 [08:57:31]line НСП 1% : 8.85 [08:57:31]line НДС 12% : 106.21 [08:57:31]line Наличными: 1000.00 [08:57:31]line Безнал.: 0.00 [08:57:31]line Место: АЗС № 86 "Партнер Нефть" [08:57:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:57:31]line СНО: Общий режим [08:57:31]line Чек 151 22.10.2024 08:57 [08:57:31]line Смена: 461 ФФД: 1.0 [08:57:31]line ЗНМ: 0300000155 [08:57:31]line РНМ: 0000000000100030 [08:57:31]line Версия ККМ: 001 [08:57:31]line ФМ: 0000000000965340 [08:57:31]line ФД: 188122 [08:57:31]line ФПД: 132630930126104 [08:57:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188122&fm=132630930126104&tin=02508201610067®Number=0000000000100030&sum=100000 [08:57:31]written 0, free lines is 4095 [08:57:31]OFD Sender: Processing packet 188122 [packets to send 1062, broken 1061] [08:57:31]ProducePacketName [08:57:31]name=ofd_packets/00188122 [08:57:31]OFD Sender: To server: pG, [08:57:31]CommunicateWithHost lk.salyk.kg:30040 [08:57:31]ConnectInit lk.salyk.kg [08:57:32]Connected sock=11 [08:57:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 69 07 01 CA 6A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 97 00 00 00 F4 03 04 00 FC 68 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DA DE 02 00 35 04 06 00 78 A0 8B 79 F5 18 49 C5 E5 52 58 DE 1A 5D [08:57:32]Write to MH i2c: 01 00 00 FE 30 2E [08:57:32]Write i2c OK [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: 01 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: 01 07 00 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: 01 07 00 FE 30 00 00 00 00 00 62 0C A3 [08:57:32]RasterBufferAndPrint [08:57:32]line [08:57:32]line [08:57:32]line [08:57:32]line [08:57:32]line [08:57:32]written 0, free lines is 3174 [08:57:32]MH_Cut [08:57:32]Write to MH i2c: D1 01 00 05 31 01 08 [08:57:32]Write i2c OK [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: D1 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: D1 01 00 [08:57:32]MH_I2C_Read... [08:57:32]Read from MH i2c: D1 01 00 05 31 00 07 [08:57:32]Write to MH i2c: 01 00 00 06 31 37 [08:57:32]Write i2c OK [08:57:32]MH_I2C_Read... [08:57:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 78 47 00 C5 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 39 36 35 33 34 30 10 04 04 00 DA DE 02 00 F4 03 04 00 EA 12 17 67 B6 04 01 00 00 1D 84 29 7A 90 0F E6 2E [08:57:32]CommunicateWithHost err = 0 [08:57:32]CheckOFDResponse [08:57:32]1017 (14) - 77093643461234 [08:57:32]1041 (16) - 0000000000965340 [08:57:32]1040 (4) - 188122 [08:57:32]1012 (4) - 22.10.2024 02:50 [08:57:32]1206 (1) - 0 [08:57:32]OFD Sender: Remove packet 188122 [08:57:32]ProducePacketName [08:57:32]name=ofd_packets/00188122 [08:57:32]NVStorageDeleteData [08:57:33]OFD Sender: No OFD packet to send [08:57:33]*** Cut start [08:57:33]*** Partial cut [08:57:33]*** CUTSNS_PIN = 1 [08:57:33]*** CUTSNS_PIN = 0 [08:57:33]*** Brake cut motor [08:57:34]Read from MH i2c: 01 [08:57:34]MH_I2C_Read... [08:57:34]*** Stop cut motor [08:57:34]*** Cut end [08:57:34]Read from MH i2c: 01 07 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: 01 07 00 06 31 00 00 00 00 00 FF 0F 4C [08:57:34]process_action close_receipt done [08:57:34]requested_data is exist [08:57:34]produce_requested_data [08:57:34]requested_item fm.sn is exist - process it [08:57:34]wFMCommunicate request_size=4 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 11 00 00 [08:57:34]Write to MH i2c: E2 08 00 07 31 80 11 00 00 00 00 00 00 B2 [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 17 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 17 00 07 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [08:57:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:57:34]wFMCommunicate OK [08:57:34]requested_item fd.num is exist - process it [08:57:34]SAM_PROTO_GetFieldsCounters [08:57:34]wFMCommunicate request_size=4 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 13 00 00 [08:57:34]Write to MH i2c: E2 08 00 08 31 80 13 00 00 00 00 00 00 B5 [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 62 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 62 00 08 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 09 [08:57:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 97 00 00 00 5E 04 04 00 97 00 00 00 57 04 04 00 98 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:57:34]wFMCommunicate OK [08:57:34]SAM_PROTO_GetFieldsCounters done [08:57:34]requested_item shift.num is exist - process it [08:57:34]requested_item shift.opened is exist - process it [08:57:34]req_shift_opened [08:57:34]FM_GetShiftState [08:57:34]SAM_PROTO_GetShiftState [08:57:34]wFMCommunicate request_size=4 [08:57:34]MH_SAM_APDU [08:57:34]CAPDU: 80 13 01 00 [08:57:34]Write to MH i2c: E2 08 00 09 31 80 13 01 00 00 00 00 00 B7 [08:57:34]Write i2c OK [08:57:34]MH_I2C_Read... [08:57:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:57:34]Read from MH i2c: E2 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 0E 00 [08:57:34]MH_I2C_Read... [08:57:34]Read from MH i2c: E2 0E 00 09 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AC [08:57:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:57:34]wFMCommunicate OK [08:57:34]SAM_PROTO_GetShiftState done [08:57:34]FM_GetShiftState done [08:57:34]req_shift_opened done [08:57:34]requested_item shift.open_date is exist - process it [08:57:34]req_shift_open_date [08:57:34]req_shift_open_date done [08:57:34]produce_requested_data done [08:57:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188122,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:57:34]process_action_free close_receipt [08:57:34]json_value_free [08:57:34]json_value_free done [08:57:34]process_json_proto returns [08:57:34]Send response to host [08:57:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188122,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:57:34]free response buf [08:57:34]execute_script done [08:57:34]execute_script returns [08:57:34]free content buf [08:57:34]Sock 9.Close socket [08:57:34]Sock 9.Thread stoped [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:02]accept exits with 8 [08:58:02]New connection [08:58:02]New thread 3067055460 created [08:58:02]Thread 3067198820 joined [08:58:02]Waiting for new connection... [08:58:02] Sock 8.Parse request [08:58:02]Sock 8.Check first char [08:58:02]Sock 8.First char is OK [08:58:02]request: POST /json_proto HTTP/1.0 [08:58:02]Method: POST [08:58:02]URL: /json_proto [08:58:02]Method is POST - this is cgi request [08:58:02]url: /json_proto [08:58:02]query_string will be loaded in cgi processing [08:58:02]execute_cgi json_proto POST (null) [08:58:02]execute_cgi path=json_proto method=POST [08:58:02]POST find Content-Length [08:58:02]Host: 172.17.42.131:8080 [08:58:02]Content-Length: 679 [08:58:02]Content-Type: application/json [08:58:02] [08:58:02]POST finish read [08:58:02]Found Content-Length = 679 [08:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:58:02]execute_script... [08:58: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)210175", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:58:02]POST & json_proto [08:58:02]process_json_proto [08:58:02]json parsed OK: [08:58:02]protocol is kg_v1.0 [08:58:02]action value=close_receipt [08:58:02]process_action close_receipt [08:58:02]cmd_close_receipt [08:58:02]MH_GetDate [08:58:02]Write to MH i2c: F0 00 00 0A 31 2A [08:58:02]Write i2c OK [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: F0 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: F0 09 00 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: F0 09 00 0A 31 00 1D 69 17 67 A0 18 CA 66 1F [08:58:02]GetLastDocTimeStamp 1729587452 [08:58:02]current date 1729587485 [08:58:02]FM_GetShiftState [08:58:02]SAM_PROTO_GetShiftState [08:58:02]wFMCommunicate request_size=4 [08:58:02]MH_SAM_APDU [08:58:02]CAPDU: 80 13 01 00 [08:58:02]Write to MH i2c: E2 08 00 0B 31 80 13 01 00 00 00 00 00 B9 [08:58:02]Write i2c OK [08:58:02]MH_I2C_Read... [08:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:02]Read from MH i2c: E2 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: E2 0E 00 [08:58:02]MH_I2C_Read... [08:58:02]Read from MH i2c: E2 0E 00 0B 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AE [08:58:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:58:02]wFMCommunicate OK [08:58:02]SAM_PROTO_GetShiftState done [08:58:02]FM_GetShiftState done [08:58:02]opened in 1729556094 [08:58:02]opened+sec_in_day 1729642494 [08:58:02]quantity*price = 100050 [08:58:02]sum+1 = 100052 [08:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 152 22.10.2024 08:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188123 ФПД: 247297658555779 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085805&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188123&fm=247297658555779&tin=02508201610067®Number=0000000000100030&sum=100000 [08:58:03]StoreToDocumentArchive [08:58:03]shift 461 fd 188123 [08:58:03]save to /storage/0461/doc_00188123 [08:58:03]save last doc name /storage/0461/doc_00188123 to /storage/kkm_last_doc_name [08:58:03]save OK [08:58:03]Clear old archive folders... [08:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [08:58:03]tlvbuf is B6F16ED0 [08:58:03]SAM_PROTO_ClearQueue [08:58:03]wFMCommunicate request_size=4 [08:58:03]MH_SAM_APDU [08:58:03]CAPDU: 80 09 00 00 [08:58:03]Write to MH i2c: E2 08 00 18 31 80 09 00 00 00 00 00 00 BB [08:58:03]Write i2c OK [08:58:03]MH_I2C_Read... [08:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:58:03]Read from MH i2c: E2 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 18 31 00 90 00 BD [08:58:03]RAPDU: 90 00 [08:58:03]wFMCommunicate OK [08:58:03]SAM_PROTO_ClearQueue done [08:58:03]KKMCreateOFDPacket [08:58:03]OFDProtocolAddRootSTLVToBuf [08:58:03]FM_MakeSignedData [08:58:03]FM_MakeSignedData [08:58:03]SAM_PROTO_SignData [08:58:03]wFMCommunicate request_size=4 [08:58:03]MH_SAM_APDU [08:58:03]CAPDU: 80 0D 01 02 [08:58:03]Write to MH i2c: E2 08 00 19 31 80 0D 01 02 00 00 00 00 C3 [08:58:03]Write i2c OK [08:58:03]MH_I2C_Read... [08:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:58:03]Read from MH i2c: E2 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 19 31 00 90 00 BE [08:58:03]RAPDU: 90 00 [08:58:03]wFMCommunicate OK [08:58:03]wFMCommunicate request_size=255 [08:58:03]MH_SAM_APDU [08:58:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1D 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DE 02 00 35 04 06 00 E0 EA 79 17 [08:58:03]Write to MH i2c: E2 02 01 1A 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1D 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DE 02 00 35 04 06 00 E0 EA 79 17 00 00 AD [08:58:03]Write i2c OK [08:58:03]MH_I2C_Read... [08:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:03]Read from MH i2c: E2 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 1A 31 00 90 00 BF [08:58:03]RAPDU: 90 00 [08:58:03]wFMCommunicate OK [08:58:03]wFMCommunicate request_size=7 [08:58:03]MH_SAM_APDU [08:58:03]CAPDU: 80 0D 02 02 02 8D 83 [08:58:03]Write to MH i2c: E2 0A 00 1B 31 80 0D 02 02 02 00 8D 83 00 00 DA [08:58:03]Write i2c OK [08:58:03]MH_I2C_Read... [08:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:58:03]Read from MH i2c: E2 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 [08:58:03]MH_I2C_Read... [08:58:03]Read from MH i2c: E2 03 00 1B 31 00 90 00 C0 [08:58:03]RAPDU: 90 00 [08:58:03]wFMCommunicate OK [08:58:03]wFMCommunicate request_size=4 [08:58:03]MH_SAM_APDU [08:58:03]CAPDU: 80 0D 03 02 [08:58:03]Write to MH i2c: E2 08 00 1C 31 80 0D 03 02 00 00 00 00 C8 [08:58:03]Write i2c OK [08:58:03]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 0B 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 0B 00 1C 31 00 5A 3F E6 4F C6 D2 40 24 90 00 93 [08:58:04]RAPDU: 5A 3F E6 4F C6 D2 40 24 90 00 [08:58:04]wFMCommunicate OK [08:58:04]SAM_PROTO_SignData done [08:58:04]FM_MakeSignedData done [08:58:04]CreateOFDProtocolMessage [08:58:04]wFMCommunicate request_size=4 [08:58:04]MH_SAM_APDU [08:58:04]CAPDU: 80 11 00 00 [08:58:04]Write to MH i2c: E2 08 00 1D 31 80 11 00 00 00 00 00 00 C8 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:04]Read from MH i2c: E2 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 17 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: E2 17 00 1D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [08:58:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:58:04]wFMCommunicate OK [08:58:04]CreateOFDProtocolMessage done [08:58:04]OFDSenderStorePacket 188123 [08:58:04]StoreOFDPacket docnum=188123 [08:58:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2F 4D 04 01 7C A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1D 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DE 02 00 35 04 06 00 E0 EA 79 17 8D 83 5A 3F E6 4F C6 D2 40 24 [08:58:04]CheckFolder [08:58:04]dirname=/storage/ofd_packets [08:58:04]CheckFolder done [08:58:04]ProducePacketName [08:58:04]name=ofd_packets/00188123 [08:58:04]NVStorageSaveData ofd_packets/00188123 [08:58:04]File name is /storage/ofd_packets/00188123 [08:58:04]Write 298 bytes [08:58:04]NVStorageSaveData done [08:58:04]OFDSenderStorePacket done [08:58:04]KKMCreateOFDPacket done [08:58:04]NVStorageSaveData kkm_last_timestamp [08:58:04]File name is /storage/kkm_last_timestamp [08:58:04]Write 4 bytes [08:58:04]NVStorageSaveData done [08:58:04]ExternCall_PrintAddStr [08:58:04]wPrintStart [08:58:04]Write to MH i2c: 01 00 00 1E 31 4F [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 07 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 07 00 1E 31 00 00 00 00 00 FF 0F 64 [08:58:04]RasterBufferAndPrint [08:58:04]line Счет N : (1)210175 [08:58:04]line ИНН: 02508201610067 [08:58:04]line Контрольно-Кассовый Чек [08:58:04]line ПРОДАЖА [08:58:04]line ТРК (МРК, ГНК) : 51 [08:58:04]line Товар: 2710194210 [08:58:04]line ДТ-К-5 [08:58:04]line 13.130 * 76.20 [08:58:04]line = 1000.51 [08:58:04]line НДС 12% НСП 1% [08:58:04]line > о реализуемом товаре [08:58:04]line ОКРУГЛЕНИЕ: -0.51 [08:58:04]line ИТОГО: 1000.00 [08:58:04]line Внесено: 1000.00 [08:58:04]line СДАЧА: 0.00 [08:58:04]line НСП 1% : 8.85 [08:58:04]line НДС 12% : 106.25 [08:58:04]line Наличными: 1000.00 [08:58:04]line Безнал.: 0.00 [08:58:04]line Место: АЗС № 86 "Партнер Нефть" [08:58:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:58:04]line СНО: Общий режим [08:58:04]line Чек 152 22.10.2024 08:58 [08:58:04]line Смена: 461 ФФД: 1.0 [08:58:04]line ЗНМ: 0300000155 [08:58:04]line РНМ: 0000000000100030 [08:58:04]line Версия ККМ: 001 [08:58:04]line ФМ: 0000000000965340 [08:58:04]line ФД: 188123 [08:58:04]line ФПД: 247297658555779 [08:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085805&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188123&fm=247297658555779&tin=02508201610067®Number=0000000000100030&sum=100000 [08:58:04]written 0, free lines is 4095 [08:58:04]OFD Sender: Processing packet 188123 [packets to send 1062, broken 1061] [08:58:04]ProducePacketName [08:58:04]name=ofd_packets/00188123 [08:58:04]OFD Sender: To server: pG, [08:58:04]CommunicateWithHost lk.salyk.kg:30040 [08:58:04]ConnectInit lk.salyk.kg [08:58:04]Connected sock=10 [08:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2F 4D 04 01 7C A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 1D 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DB DE 02 00 35 04 06 00 E0 EA 79 17 8D 83 5A 3F E6 4F C6 D2 40 24 [08:58:04]Write to MH i2c: 01 00 00 49 31 7A [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 07 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: 01 07 00 49 31 00 00 00 00 00 58 0C E5 [08:58:04]RasterBufferAndPrint [08:58:04]line [08:58:04]line [08:58:04]line [08:58:04]line [08:58:04]line [08:58:04]written 0, free lines is 3164 [08:58:04]MH_Cut [08:58:04]Write to MH i2c: D1 01 00 50 31 01 53 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: D1 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: D1 01 00 [08:58:04]MH_I2C_Read... [08:58:04]Read from MH i2c: D1 01 00 50 31 00 52 [08:58:04]Write to MH i2c: 01 00 00 51 31 82 [08:58:04]Write i2c OK [08:58:04]MH_I2C_Read... [08:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AD 4B 47 00 0A 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 39 36 35 33 34 30 10 04 04 00 DB DE 02 00 F4 03 04 00 0A 13 17 67 B6 04 01 00 00 EB EF 5A 4E DF C3 43 D8 [08:58:04]CommunicateWithHost err = 0 [08:58:04]CheckOFDResponse [08:58:04]1017 (14) - 77093643461234 [08:58:04]1041 (16) - 0000000000965340 [08:58:04]1040 (4) - 188123 [08:58:04]1012 (4) - 22.10.2024 02:50 [08:58:04]1206 (1) - 0 [08:58:04]OFD Sender: Remove packet 188123 [08:58:04]ProducePacketName [08:58:04]name=ofd_packets/00188123 [08:58:04]NVStorageDeleteData [08:58:05]OFD Sender: No OFD packet to send [08:58:05]*** Cut start [08:58:05]*** Partial cut [08:58:05]*** CUTSNS_PIN = 1 [08:58:05]*** CUTSNS_PIN = 0 [08:58:06]*** Brake cut motor [08:58:06]Read from MH i2c: 01 [08:58:06]MH_I2C_Read... [08:58:06]*** Stop cut motor [08:58:06]*** Cut end [08:58:06]Read from MH i2c: 01 07 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: 01 07 00 51 31 00 00 00 00 00 FF 0F 97 [08:58:06]process_action close_receipt done [08:58:06]requested_data is exist [08:58:06]produce_requested_data [08:58:06]requested_item fm.sn is exist - process it [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 11 00 00 [08:58:06]Write to MH i2c: E2 08 00 52 31 80 11 00 00 00 00 00 00 FD [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:58:06]Read from MH i2c: E2 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 17 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 17 00 52 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [08:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:58:06]wFMCommunicate OK [08:58:06]requested_item fd.num is exist - process it [08:58:06]SAM_PROTO_GetFieldsCounters [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 13 00 00 [08:58:06]Write to MH i2c: E2 08 00 53 31 80 13 00 00 00 00 00 00 00 [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:58:06]Read from MH i2c: E2 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 62 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 62 00 53 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [08:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 98 00 00 00 5E 04 04 00 98 00 00 00 57 04 04 00 99 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:58:06]wFMCommunicate OK [08:58:06]SAM_PROTO_GetFieldsCounters done [08:58:06]requested_item shift.num is exist - process it [08:58:06]requested_item shift.opened is exist - process it [08:58:06]req_shift_opened [08:58:06]FM_GetShiftState [08:58:06]SAM_PROTO_GetShiftState [08:58:06]wFMCommunicate request_size=4 [08:58:06]MH_SAM_APDU [08:58:06]CAPDU: 80 13 01 00 [08:58:06]Write to MH i2c: E2 08 00 54 31 80 13 01 00 00 00 00 00 02 [08:58:06]Write i2c OK [08:58:06]MH_I2C_Read... [08:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:58:06]Read from MH i2c: E2 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 0E 00 [08:58:06]MH_I2C_Read... [08:58:06]Read from MH i2c: E2 0E 00 54 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F7 [08:58:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:58:06]wFMCommunicate OK [08:58:06]SAM_PROTO_GetShiftState done [08:58:06]FM_GetShiftState done [08:58:06]req_shift_opened done [08:58:06]requested_item shift.open_date is exist - process it [08:58:06]req_shift_open_date [08:58:06]req_shift_open_date done [08:58:06]produce_requested_data done [08:58:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188123,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:58:06]process_action_free close_receipt [08:58:06]json_value_free [08:58:06]json_value_free done [08:58:06]process_json_proto returns [08:58:06]Send response to host [08:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188123,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:58:06]free response buf [08:58:06]execute_script done [08:58:06]execute_script returns [08:58:06]free content buf [08:58:06]Sock 8.Close socket [08:58:06]Sock 8.Thread stoped [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:53]accept exits with 9 [08:59:53]New connection [08:59:53]New thread 3067198820 created [08:59:53]Thread 3067055460 joined [08:59:53]Waiting for new connection... [08:59:53] Sock 9.Parse request [08:59:53]Sock 9.Check first char [08:59:53]Sock 9.First char is OK [08:59:53]request: POST /json_proto HTTP/1.0 [08:59:53]Method: POST [08:59:53]URL: /json_proto [08:59:53]Method is POST - this is cgi request [08:59:53]url: /json_proto [08:59:53]query_string will be loaded in cgi processing [08:59:53]execute_cgi json_proto POST (null) [08:59:53]execute_cgi path=json_proto method=POST [08:59:53]POST find Content-Length [08:59:53]Host: 172.17.42.131:8080 [08:59:53]Content-Length: 677 [08:59:53]Content-Type: application/json [08:59:53] [08:59:53]POST finish read [08:59:53]Found Content-Length = 677 [08:59:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:53]execute_script... [08:59: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)210177", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:59:53]POST & json_proto [08:59:53]process_json_proto [08:59:53]json parsed OK: [08:59:53]protocol is kg_v1.0 [08:59:53]action value=close_receipt [08:59:53]process_action close_receipt [08:59:53]cmd_close_receipt [08:59:53]MH_GetDate [08:59:53]Write to MH i2c: F0 00 00 55 31 75 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: F0 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: F0 09 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: F0 09 00 55 31 00 8C 69 17 67 A0 18 CA 66 D9 [08:59:53]GetLastDocTimeStamp 1729587485 [08:59:53]current date 1729587596 [08:59:53]FM_GetShiftState [08:59:53]SAM_PROTO_GetShiftState [08:59:53]wFMCommunicate request_size=4 [08:59:53]MH_SAM_APDU [08:59:53]CAPDU: 80 13 01 00 [08:59:53]Write to MH i2c: E2 08 00 56 31 80 13 01 00 00 00 00 00 04 [08:59:53]Write i2c OK [08:59:53]MH_I2C_Read... [08:59:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:53]Read from MH i2c: E2 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 0E 00 [08:59:53]MH_I2C_Read... [08:59:53]Read from MH i2c: E2 0E 00 56 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [08:59:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:59:53]wFMCommunicate OK [08:59:53]SAM_PROTO_GetShiftState done [08:59:53]FM_GetShiftState done [08:59:53]opened in 1729556094 [08:59:53]opened+sec_in_day 1729642494 [08:59:53]quantity*price = 50041 [08:59:53]sum+1 = 50042 [08:59:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 153 22.10.2024 08:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188124 ФПД: 34581707723681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188124&fm=34581707723681&tin=02508201610067®Number=0000000000100030&sum=50000 [08:59:54]StoreToDocumentArchive [08:59:54]shift 461 fd 188124 [08:59:54]save to /storage/0461/doc_00188124 [08:59:54]save last doc name /storage/0461/doc_00188124 to /storage/kkm_last_doc_name [08:59:54]save OK [08:59:54]Clear old archive folders... [08:59:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:59:54]tlvbuf is 01CA1EA0 [08:59:54]SAM_PROTO_ClearQueue [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 09 00 00 [08:59:54]Write to MH i2c: E2 08 00 63 31 80 09 00 00 00 00 00 00 06 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 63 31 00 90 00 08 [08:59:54]RAPDU: 90 00 [08:59:54]wFMCommunicate OK [08:59:54]SAM_PROTO_ClearQueue done [08:59:54]KKMCreateOFDPacket [08:59:54]OFDProtocolAddRootSTLVToBuf [08:59:54]FM_MakeSignedData [08:59:54]FM_MakeSignedData [08:59:54]SAM_PROTO_SignData [08:59:54]wFMCommunicate request_size=4 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 0D 01 02 [08:59:54]Write to MH i2c: E2 08 00 64 31 80 0D 01 02 00 00 00 00 0E [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:59:54]Read from MH i2c: E2 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 [08:59:54]MH_I2C_Read... [08:59:54]Read from MH i2c: E2 03 00 64 31 00 90 00 09 [08:59:54]RAPDU: 90 00 [08:59:54]wFMCommunicate OK [08:59:54]wFMCommunicate request_size=255 [08:59:54]MH_SAM_APDU [08:59:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8C 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DE 02 00 35 04 06 00 1F [08:59:54]Write to MH i2c: E2 02 01 65 31 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8C 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DE 02 00 35 04 06 00 1F 00 00 36 [08:59:54]Write i2c OK [08:59:54]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 65 31 00 90 00 0A [08:59:55]RAPDU: 90 00 [08:59:55]wFMCommunicate OK [08:59:55]wFMCommunicate request_size=10 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 0D 02 02 05 73 AE 67 93 A1 [08:59:55]Write to MH i2c: E2 0D 00 66 31 80 0D 02 02 05 00 73 AE 67 93 A1 00 00 D7 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 03 00 66 31 00 90 00 0B [08:59:55]RAPDU: 90 00 [08:59:55]wFMCommunicate OK [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 0D 03 02 [08:59:55]Write to MH i2c: E2 08 00 67 31 80 0D 03 02 00 00 00 00 13 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 0B 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 0B 00 67 31 00 E1 E4 1C E7 C1 CF 79 D6 90 00 BB [08:59:55]RAPDU: E1 E4 1C E7 C1 CF 79 D6 90 00 [08:59:55]wFMCommunicate OK [08:59:55]SAM_PROTO_SignData done [08:59:55]FM_MakeSignedData done [08:59:55]CreateOFDProtocolMessage [08:59:55]wFMCommunicate request_size=4 [08:59:55]MH_SAM_APDU [08:59:55]CAPDU: 80 11 00 00 [08:59:55]Write to MH i2c: E2 08 00 68 31 80 11 00 00 00 00 00 00 13 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:55]Read from MH i2c: E2 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 17 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: E2 17 00 68 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [08:59:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:59:55]wFMCommunicate OK [08:59:55]CreateOFDProtocolMessage done [08:59:55]OFDSenderStorePacket 188124 [08:59:55]StoreOFDPacket docnum=188124 [08:59:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 66 FB 07 01 A1 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8C 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DE 02 00 35 04 06 00 1F 73 AE 67 93 A1 E1 E4 1C E7 C1 CF 79 D6 [08:59:55]CheckFolder [08:59:55]dirname=/storage/ofd_packets [08:59:55]CheckFolder done [08:59:55]ProducePacketName [08:59:55]name=ofd_packets/00188124 [08:59:55]NVStorageSaveData ofd_packets/00188124 [08:59:55]File name is /storage/ofd_packets/00188124 [08:59:55]Write 301 bytes [08:59:55]NVStorageSaveData done [08:59:55]OFDSenderStorePacket done [08:59:55]KKMCreateOFDPacket done [08:59:55]NVStorageSaveData kkm_last_timestamp [08:59:55]File name is /storage/kkm_last_timestamp [08:59:55]Write 4 bytes [08:59:55]NVStorageSaveData done [08:59:55]ExternCall_PrintAddStr [08:59:55]wPrintStart [08:59:55]Write to MH i2c: 01 00 00 69 31 9A [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 69 31 00 00 00 00 00 FF 0F AF [08:59:55]RasterBufferAndPrint [08:59:55]line Счет N : (1)210177 [08:59:55]line ИНН: 02508201610067 [08:59:55]line Контрольно-Кассовый Чек [08:59:55]line ПРОДАЖА [08:59:55]line ТРК (МРК, ГНК) : 22 [08:59:55]line Товар: 2710124130 [08:59:55]line Аи-92-К-3 [08:59:55]line 7.480 * 66.90 [08:59:55]line = 500.41 [08:59:55]line НДС 12% НСП 1% [08:59:55]line > о реализуемом товаре [08:59:55]line ОКРУГЛЕНИЕ: -0.41 [08:59:55]line ИТОГО: 500.00 [08:59:55]line Внесено: 500.00 [08:59:55]line СДАЧА: 0.00 [08:59:55]line НСП 1% : 4.43 [08:59:55]line НДС 12% : 53.14 [08:59:55]line Наличными: 500.00 [08:59:55]line Безнал.: 0.00 [08:59:55]line Место: АЗС № 86 "Партнер Нефть" [08:59:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [08:59:55]line СНО: Общий режим [08:59:55]line Чек 153 22.10.2024 08:59 [08:59:55]line Смена: 461 ФФД: 1.0 [08:59:55]line ЗНМ: 0300000155 [08:59:55]line РНМ: 0000000000100030 [08:59:55]line Версия ККМ: 001 [08:59:55]line ФМ: 0000000000965340 [08:59:55]line ФД: 188124 [08:59:55]line ФПД: 34581707723681 [08:59:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T085956&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188124&fm=34581707723681&tin=02508201610067®Number=0000000000100030&sum=50000 [08:59:55]written 0, free lines is 4095 [08:59:55]OFD Sender: Processing packet 188124 [packets to send 1062, broken 1061] [08:59:55]ProducePacketName [08:59:55]name=ofd_packets/00188124 [08:59:55]OFD Sender: To server: pG, [08:59:55]CommunicateWithHost lk.salyk.kg:30040 [08:59:55]ConnectInit lk.salyk.kg [08:59:55]Connected sock=10 [08:59:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 66 FB 07 01 A1 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 99 00 00 00 F4 03 04 00 8C 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DE 02 00 35 04 06 00 1F 73 AE 67 93 A1 E1 E4 1C E7 C1 CF 79 D6 [08:59:55]Write to MH i2c: 01 00 00 94 31 C5 [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: 01 07 00 94 31 00 00 00 00 00 56 0C 2E [08:59:55]RasterBufferAndPrint [08:59:55]line [08:59:55]line [08:59:55]line [08:59:55]line [08:59:55]line [08:59:55]written 0, free lines is 3161 [08:59:55]MH_Cut [08:59:55]Write to MH i2c: D1 01 00 9B 31 01 9E [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: D1 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: D1 01 00 [08:59:55]MH_I2C_Read... [08:59:55]Read from MH i2c: D1 01 00 9B 31 00 9D [08:59:55]Write to MH i2c: 01 00 00 9C 31 CD [08:59:55]Write i2c OK [08:59:55]MH_I2C_Read... [08:59:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE 9D 47 00 DE 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DC DE 02 00 F4 03 04 00 7A 13 17 67 B6 04 01 00 00 3F 72 8F D0 40 EE 11 CB [08:59:56]CommunicateWithHost err = 0 [08:59:56]CheckOFDResponse [08:59:56]1017 (14) - 77093643461234 [08:59:56]1041 (16) - 0000000000965340 [08:59:56]1040 (4) - 188124 [08:59:56]1012 (4) - 22.10.2024 02:52 [08:59:56]1206 (1) - 0 [08:59:56]OFD Sender: Remove packet 188124 [08:59:56]ProducePacketName [08:59:56]name=ofd_packets/00188124 [08:59:56]NVStorageDeleteData [08:59:56]OFD Sender: No OFD packet to send [08:59:57]*** Cut start [08:59:57]*** Partial cut [08:59:57]*** CUTSNS_PIN = 1 [08:59:57]*** CUTSNS_PIN = 0 [08:59:57]*** Brake cut motor [08:59:57]Read from MH i2c: 01 [08:59:57]MH_I2C_Read... [08:59:57]*** Stop cut motor [08:59:57]*** Cut end [08:59:57]Read from MH i2c: 01 07 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: 01 07 00 9C 31 00 00 00 00 00 FF 0F E2 [08:59:57]process_action close_receipt done [08:59:57]requested_data is exist [08:59:57]produce_requested_data [08:59:57]requested_item fm.sn is exist - process it [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 11 00 00 [08:59:57]Write to MH i2c: E2 08 00 9D 31 80 11 00 00 00 00 00 00 48 [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 17 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 17 00 9D 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [08:59:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [08:59:57]wFMCommunicate OK [08:59:57]requested_item fd.num is exist - process it [08:59:57]SAM_PROTO_GetFieldsCounters [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 00 00 [08:59:57]Write to MH i2c: E2 08 00 9E 31 80 13 00 00 00 00 00 00 4B [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:59:57]Read from MH i2c: E2 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 62 00 [08:59:57]MH_I2C_Read... [08:59:57]Read from MH i2c: E2 62 00 9E 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 A7 [08:59:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 99 00 00 00 5E 04 04 00 99 00 00 00 57 04 04 00 9A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:59:57]wFMCommunicate OK [08:59:57]SAM_PROTO_GetFieldsCounters done [08:59:57]requested_item shift.num is exist - process it [08:59:57]requested_item shift.opened is exist - process it [08:59:57]req_shift_opened [08:59:57]FM_GetShiftState [08:59:57]SAM_PROTO_GetShiftState [08:59:57]wFMCommunicate request_size=4 [08:59:57]MH_SAM_APDU [08:59:57]CAPDU: 80 13 01 00 [08:59:57]Write to MH i2c: E2 08 00 9F 31 80 13 01 00 00 00 00 00 4D [08:59:57]Write i2c OK [08:59:57]MH_I2C_Read... [08:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:59:58]Read from MH i2c: E2 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 0E 00 [08:59:58]MH_I2C_Read... [08:59:58]Read from MH i2c: E2 0E 00 9F 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 42 [08:59:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [08:59:58]wFMCommunicate OK [08:59:58]SAM_PROTO_GetShiftState done [08:59:58]FM_GetShiftState done [08:59:58]req_shift_opened done [08:59:58]requested_item shift.open_date is exist - process it [08:59:58]req_shift_open_date [08:59:58]req_shift_open_date done [08:59:58]produce_requested_data done [08:59:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188124,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [08:59:58]process_action_free close_receipt [08:59:58]json_value_free [08:59:58]json_value_free done [08:59:58]process_json_proto returns [08:59:58]Send response to host [08:59:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188124,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [08:59:58]free response buf [08:59:58]execute_script done [08:59:58]execute_script returns [08:59:58]free content buf [08:59:58]Sock 9.Close socket [08:59:58]Sock 9.Thread stoped [09:00:01]OFD Sender: No OFD packet to send [09:00:06]OFD Sender: No OFD packet to send [09:00:11]OFD Sender: No OFD packet to send [09:00:16]OFD Sender: No OFD packet to send [09:00:21]OFD Sender: No OFD packet to send [09:00:26]OFD Sender: No OFD packet to send [09:00:31]OFD Sender: No OFD packet to send [09:00:36]OFD Sender: No OFD packet to send [09:00:41]OFD Sender: No OFD packet to send [09:00:46]OFD Sender: No OFD packet to send [09:00:50]accept exits with 8 [09:00:50]New connection [09:00:50]New thread 3067055460 created [09:00:50]Thread 3067198820 joined [09:00:50]Waiting for new connection... [09:00:50] Sock 8.Parse request [09:00:50]Sock 8.Check first char [09:00:50]Sock 8.First char is OK [09:00:50]request: POST /json_proto HTTP/1.0 [09:00:50]Method: POST [09:00:50]URL: /json_proto [09:00:50]Method is POST - this is cgi request [09:00:50]url: /json_proto [09:00:50]query_string will be loaded in cgi processing [09:00:50]execute_cgi json_proto POST (null) [09:00:50]execute_cgi path=json_proto method=POST [09:00:50]POST find Content-Length [09:00:50]Host: 172.17.42.131:8080 [09:00:50]Content-Length: 688 [09:00:50]Content-Type: application/json [09:00:50] [09:00:50]POST finish read [09:00:50]Found Content-Length = 688 [09:00:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:50]execute_script... [09:00: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)210176", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:00:50]POST & json_proto [09:00:50]process_json_proto [09:00:50]json parsed OK: [09:00:50]protocol is kg_v1.0 [09:00:50]action value=close_receipt [09:00:50]process_action close_receipt [09:00:50]cmd_close_receipt [09:00:50]MH_GetDate [09:00:50]Write to MH i2c: F0 00 00 A0 31 C0 [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: F0 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: F0 09 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: F0 09 00 A0 31 00 C4 69 17 67 A0 18 CA 66 5C [09:00:50]GetLastDocTimeStamp 1729587596 [09:00:50]current date 1729587652 [09:00:50]FM_GetShiftState [09:00:50]SAM_PROTO_GetShiftState [09:00:50]wFMCommunicate request_size=4 [09:00:50]MH_SAM_APDU [09:00:50]CAPDU: 80 13 01 00 [09:00:50]Write to MH i2c: E2 08 00 A1 31 80 13 01 00 00 00 00 00 4F [09:00:50]Write i2c OK [09:00:50]MH_I2C_Read... [09:00:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:50]Read from MH i2c: E2 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 0E 00 [09:00:50]MH_I2C_Read... [09:00:50]Read from MH i2c: E2 0E 00 A1 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [09:00:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:00:50]wFMCommunicate OK [09:00:50]SAM_PROTO_GetShiftState done [09:00:50]FM_GetShiftState done [09:00:50]opened in 1729556094 [09:00:50]opened+sec_in_day 1729642494 [09:00:50]quantity*price = 300076 [09:00:50]sum+1 = 300077 [09:00:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 154 22.10.2024 09:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188125 ФПД: 175503210379998 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090052&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188125&fm=175503210379998&tin=02508201610067®Number=0000000000100030&sum=300000 [09:00:51]StoreToDocumentArchive [09:00:51]shift 461 fd 188125 [09:00:51]save to /storage/0461/doc_00188125 [09:00:51]save last doc name /storage/0461/doc_00188125 to /storage/kkm_last_doc_name [09:00:51]save OK [09:00:51]Clear old archive folders... [09:00:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:00:51]tlvbuf is 01C04670 [09:00:51]SAM_PROTO_ClearQueue [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 09 00 00 [09:00:51]Write to MH i2c: E2 08 00 AE 31 80 09 00 00 00 00 00 00 51 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 AE 31 00 90 00 53 [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]SAM_PROTO_ClearQueue done [09:00:51]KKMCreateOFDPacket [09:00:51]OFDProtocolAddRootSTLVToBuf [09:00:51]FM_MakeSignedData [09:00:51]FM_MakeSignedData [09:00:51]SAM_PROTO_SignData [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 01 02 [09:00:51]Write to MH i2c: E2 08 00 AF 31 80 0D 01 02 00 00 00 00 59 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 AF 31 00 90 00 54 [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=255 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C4 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DE 02 [09:00:51]Write to MH i2c: E2 02 01 B0 31 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C4 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DE 02 00 00 68 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 B0 31 00 90 00 55 [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=16 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9F 9E 86 82 FA DE [09:00:51]Write to MH i2c: E2 13 00 B1 31 80 0D 02 02 0B 00 00 35 04 06 00 9F 9E 86 82 FA DE 00 00 CE [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 03 00 B1 31 00 90 00 56 [09:00:51]RAPDU: 90 00 [09:00:51]wFMCommunicate OK [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 0D 03 02 [09:00:51]Write to MH i2c: E2 08 00 B2 31 80 0D 03 02 00 00 00 00 5E [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 0B 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 0B 00 B2 31 00 71 3C 50 0D 05 1E C9 FE 90 00 53 [09:00:51]RAPDU: 71 3C 50 0D 05 1E C9 FE 90 00 [09:00:51]wFMCommunicate OK [09:00:51]SAM_PROTO_SignData done [09:00:51]FM_MakeSignedData done [09:00:51]CreateOFDProtocolMessage [09:00:51]wFMCommunicate request_size=4 [09:00:51]MH_SAM_APDU [09:00:51]CAPDU: 80 11 00 00 [09:00:51]Write to MH i2c: E2 08 00 B3 31 80 11 00 00 00 00 00 00 5E [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:51]Read from MH i2c: E2 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 17 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: E2 17 00 B3 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [09:00:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:00:51]wFMCommunicate OK [09:00:51]CreateOFDProtocolMessage done [09:00:51]OFDSenderStorePacket 188125 [09:00:51]StoreOFDPacket docnum=188125 [09:00:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3C 14 0D 01 FD 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C4 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DE 02 00 35 04 06 00 9F 9E 86 82 FA DE 71 3C 50 0D 05 1E C9 FE [09:00:51]CheckFolder [09:00:51]dirname=/storage/ofd_packets [09:00:51]CheckFolder done [09:00:51]ProducePacketName [09:00:51]name=ofd_packets/00188125 [09:00:51]NVStorageSaveData ofd_packets/00188125 [09:00:51]File name is /storage/ofd_packets/00188125 [09:00:51]Write 307 bytes [09:00:51]NVStorageSaveData done [09:00:51]OFDSenderStorePacket done [09:00:51]KKMCreateOFDPacket done [09:00:51]NVStorageSaveData kkm_last_timestamp [09:00:51]File name is /storage/kkm_last_timestamp [09:00:51]Write 4 bytes [09:00:51]NVStorageSaveData done [09:00:51]ExternCall_PrintAddStr [09:00:51]wPrintStart [09:00:51]Write to MH i2c: 01 00 00 B4 31 E5 [09:00:51]Write i2c OK [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 07 00 [09:00:51]MH_I2C_Read... [09:00:51]Read from MH i2c: 01 07 00 B4 31 00 00 00 00 00 FF 0F FA [09:00:51]RasterBufferAndPrint [09:00:51]line Счет N : (1)210176 [09:00:51]line ИНН: 02508201610067 [09:00:51]line Контрольно-Кассовый Чек [09:00:51]line ПРОДАЖА [09:00:51]line ТРК (МРК, ГНК) : 11 [09:00:51]line Товар: 2710194210 [09:00:51]line D-ENERGY ДТ-К-5 [09:00:51]line 38.870 * 77.20 [09:00:51]line = 3000.76 [09:00:51]line НДС 12% НСП 1% [09:00:51]line > о реализуемом товаре [09:00:51]line ОКРУГЛЕНИЕ: -0.76 [09:00:51]line ИТОГО: 3000.00 [09:00:51]line Внесено: 3000.00 [09:00:51]line СДАЧА: 0.00 [09:00:51]line НСП 1% : 26.55 [09:00:51]line НДС 12% : 318.66 [09:00:51]line Наличными: 3000.00 [09:00:51]line Безнал.: 0.00 [09:00:51]line Место: АЗС № 86 "Партнер Нефть" [09:00:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:00:51]line СНО: Общий режим [09:00:51]line Чек 154 22.10.2024 09:00 [09:00:51]line Смена: 461 ФФД: 1.0 [09:00:51]line ЗНМ: 0300000155 [09:00:51]line РНМ: 0000000000100030 [09:00:51]line Версия ККМ: 001 [09:00:51]line ФМ: 0000000000965340 [09:00:51]line ФД: 188125 [09:00:51]line ФПД: 175503210379998 [09:00:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090052&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188125&fm=175503210379998&tin=02508201610067®Number=0000000000100030&sum=300000 [09:00:52]OFD Sender: Processing packet 188125 [packets to send 1062, broken 1061] [09:00:52]ProducePacketName [09:00:52]name=ofd_packets/00188125 [09:00:52]OFD Sender: To server: pG, [09:00:52]CommunicateWithHost lk.salyk.kg:30040 [09:00:52]ConnectInit lk.salyk.kg [09:00:52]written 0, free lines is 4095 [09:00:52]Connected sock=10 [09:00:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3C 14 0D 01 FD 1F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 C4 69 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DE 02 00 35 04 06 00 9F 9E 86 82 FA DE 71 3C 50 0D 05 1E C9 FE [09:00:52]Write to MH i2c: 01 00 00 DF 31 10 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 07 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: 01 07 00 DF 31 00 00 00 00 00 5A 0C 7D [09:00:52]RasterBufferAndPrint [09:00:52]line [09:00:52]line [09:00:52]line [09:00:52]line [09:00:52]line [09:00:52]written 0, free lines is 3165 [09:00:52]MH_Cut [09:00:52]Write to MH i2c: D1 01 00 E6 31 01 E9 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: D1 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: D1 01 00 [09:00:52]MH_I2C_Read... [09:00:52]Read from MH i2c: D1 01 00 E6 31 00 E8 [09:00:52]Write to MH i2c: 01 00 00 E7 31 18 [09:00:52]Write i2c OK [09:00:52]MH_I2C_Read... [09:00:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 32 47 00 E3 05 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DD DE 02 00 F4 03 04 00 B2 13 17 67 B6 04 01 00 00 9F F0 D3 B2 3D 8A 9E 70 [09:00:52]CommunicateWithHost err = 0 [09:00:52]CheckOFDResponse [09:00:52]1017 (14) - 77093643461234 [09:00:52]1041 (16) - 0000000000965340 [09:00:52]1040 (4) - 188125 [09:00:52]1012 (4) - 22.10.2024 02:53 [09:00:52]1206 (1) - 0 [09:00:52]OFD Sender: Remove packet 188125 [09:00:52]ProducePacketName [09:00:52]name=ofd_packets/00188125 [09:00:52]NVStorageDeleteData [09:00:53]OFD Sender: No OFD packet to send [09:00:53]*** Cut start [09:00:53]*** Partial cut [09:00:53]*** CUTSNS_PIN = 1 [09:00:53]*** CUTSNS_PIN = 0 [09:00:54]*** Brake cut motor [09:00:54]Read from MH i2c: 01 [09:00:54]MH_I2C_Read... [09:00:54]*** Stop cut motor [09:00:54]*** Cut end [09:00:54]Read from MH i2c: 01 07 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: 01 07 00 E7 31 00 00 00 00 00 FF 0F 2D [09:00:54]process_action close_receipt done [09:00:54]requested_data is exist [09:00:54]produce_requested_data [09:00:54]requested_item fm.sn is exist - process it [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 11 00 00 [09:00:54]Write to MH i2c: E2 08 00 E8 31 80 11 00 00 00 00 00 00 93 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 17 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 17 00 E8 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [09:00:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:00:54]wFMCommunicate OK [09:00:54]requested_item fd.num is exist - process it [09:00:54]SAM_PROTO_GetFieldsCounters [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 00 00 [09:00:54]Write to MH i2c: E2 08 00 E9 31 80 13 00 00 00 00 00 00 96 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 62 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 62 00 E9 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [09:00:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DD DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9A 00 00 00 5E 04 04 00 9A 00 00 00 57 04 04 00 9B 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetFieldsCounters done [09:00:54]requested_item shift.num is exist - process it [09:00:54]requested_item shift.opened is exist - process it [09:00:54]req_shift_opened [09:00:54]FM_GetShiftState [09:00:54]SAM_PROTO_GetShiftState [09:00:54]wFMCommunicate request_size=4 [09:00:54]MH_SAM_APDU [09:00:54]CAPDU: 80 13 01 00 [09:00:54]Write to MH i2c: E2 08 00 EA 31 80 13 01 00 00 00 00 00 98 [09:00:54]Write i2c OK [09:00:54]MH_I2C_Read... [09:00:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:00:54]Read from MH i2c: E2 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 [09:00:54]MH_I2C_Read... [09:00:54]Read from MH i2c: E2 0E 00 EA 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8D [09:00:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:00:54]wFMCommunicate OK [09:00:54]SAM_PROTO_GetShiftState done [09:00:54]FM_GetShiftState done [09:00:54]req_shift_opened done [09:00:54]requested_item shift.open_date is exist - process it [09:00:54]req_shift_open_date [09:00:54]req_shift_open_date done [09:00:54]produce_requested_data done [09:00:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188125,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:00:54]process_action_free close_receipt [09:00:54]json_value_free [09:00:54]json_value_free done [09:00:54]process_json_proto returns [09:00:54]Send response to host [09:00:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188125,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:00:54]free response buf [09:00:54]execute_script done [09:00:54]execute_script returns [09:00:54]free content buf [09:00:54]Sock 8.Close socket [09:00:54]Sock 8.Thread stoped [09:00:58]OFD Sender: No OFD packet to send [09:01:03]OFD Sender: No OFD packet to send [09:01:08]OFD Sender: No OFD packet to send [09:01:13]OFD Sender: No OFD packet to send [09:01:18]OFD Sender: No OFD packet to send [09:01:23]OFD Sender: No OFD packet to send [09:01:28]OFD Sender: No OFD packet to send [09:01:33]OFD Sender: No OFD packet to send [09:01:38]OFD Sender: No OFD packet to send [09:01:43]OFD Sender: No OFD packet to send [09:01:48]OFD Sender: No OFD packet to send [09:01:53]OFD Sender: No OFD packet to send [09:01:58]OFD Sender: No OFD packet to send [09:02:03]OFD Sender: No OFD packet to send [09:02:08]OFD Sender: No OFD packet to send [09:02:13]OFD Sender: No OFD packet to send [09:02:18]OFD Sender: No OFD packet to send [09:02:23]OFD Sender: No OFD packet to send [09:02:28]OFD Sender: No OFD packet to send [09:02:31]accept exits with 9 [09:02:31]New connection [09:02:31]New thread 3067198820 created [09:02:31]Thread 3067055460 joined [09:02:31]Waiting for new connection... [09:02:31] Sock 9.Parse request [09:02:31]Sock 9.Check first char [09:02:31]Sock 9.First char is OK [09:02:31]request: POST /json_proto HTTP/1.0 [09:02:31]Method: POST [09:02:31]URL: /json_proto [09:02:31]Method is POST - this is cgi request [09:02:31]url: /json_proto [09:02:31]query_string will be loaded in cgi processing [09:02:31]execute_cgi json_proto POST (null) [09:02:31]execute_cgi path=json_proto method=POST [09:02:31]POST find Content-Length [09:02:31]Host: 172.17.42.131:8080 [09:02:31]Content-Length: 679 [09:02:31]Content-Type: application/json [09:02:31] [09:02:31]POST finish read [09:02:31]Found Content-Length = 679 [09:02:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:02:31]execute_script... [09:02: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)210178", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [09:02:31]POST & json_proto [09:02:31]process_json_proto [09:02:31]json parsed OK: [09:02:31]protocol is kg_v1.0 [09:02:31]action value=close_receipt [09:02:31]process_action close_receipt [09:02:31]cmd_close_receipt [09:02:31]MH_GetDate [09:02:31]Write to MH i2c: F0 00 00 EB 31 0B [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: F0 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: F0 09 00 [09:02:31]MH_I2C_Read... [09:02:31]Read from MH i2c: F0 09 00 EB 31 00 2A 6A 17 67 A0 18 CA 66 0E [09:02:31]GetLastDocTimeStamp 1729587652 [09:02:31]current date 1729587754 [09:02:31]FM_GetShiftState [09:02:31]SAM_PROTO_GetShiftState [09:02:31]wFMCommunicate request_size=4 [09:02:31]MH_SAM_APDU [09:02:31]CAPDU: 80 13 01 00 [09:02:31]Write to MH i2c: E2 08 00 EC 31 80 13 01 00 00 00 00 00 9A [09:02:31]Write i2c OK [09:02:31]MH_I2C_Read... [09:02:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:32]Read from MH i2c: E2 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 0E 00 [09:02:32]MH_I2C_Read... [09:02:32]Read from MH i2c: E2 0E 00 EC 31 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8F [09:02:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:02:32]wFMCommunicate OK [09:02:32]SAM_PROTO_GetShiftState done [09:02:32]FM_GetShiftState done [09:02:32]opened in 1729556094 [09:02:32]opened+sec_in_day 1729642494 [09:02:32]quantity*price = 200025 [09:02:32]sum+1 = 200026 [09:02:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 155 22.10.2024 09:02 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188126 ФПД: 277319303468897 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090234&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188126&fm=277319303468897&tin=02508201610067®Number=0000000000100030&sum=200000 [09:02:33]StoreToDocumentArchive [09:02:33]shift 461 fd 188126 [09:02:33]save to /storage/0461/doc_00188126 [09:02:33]save last doc name /storage/0461/doc_00188126 to /storage/kkm_last_doc_name [09:02:33]save OK [09:02:33]Clear old archive folders... [09:02:33]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:02:33]tlvbuf is 01BD21E0 [09:02:33]SAM_PROTO_ClearQueue [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 09 00 00 [09:02:33]Write to MH i2c: E2 08 00 F9 31 80 09 00 00 00 00 00 00 9C [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 F9 31 00 90 00 9E [09:02:33]RAPDU: 90 00 [09:02:33]wFMCommunicate OK [09:02:33]SAM_PROTO_ClearQueue done [09:02:33]KKMCreateOFDPacket [09:02:33]OFDProtocolAddRootSTLVToBuf [09:02:33]FM_MakeSignedData [09:02:33]FM_MakeSignedData [09:02:33]SAM_PROTO_SignData [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 0D 01 02 [09:02:33]Write to MH i2c: E2 08 00 FA 31 80 0D 01 02 00 00 00 00 A4 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 FA 31 00 90 00 9F [09:02:33]RAPDU: 90 00 [09:02:33]wFMCommunicate OK [09:02:33]wFMCommunicate request_size=255 [09:02:33]MH_SAM_APDU [09:02: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 32 31 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 9B 00 00 00 F4 03 04 00 2A 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DE 02 00 35 04 06 00 FC 38 6E 92 [09:02:33]Write to MH i2c: E2 02 01 FB 31 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9B 00 00 00 F4 03 04 00 2A 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DE 02 00 35 04 06 00 FC 38 6E 92 00 00 6A [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 FB 31 00 90 00 A0 [09:02:33]RAPDU: 90 00 [09:02:33]wFMCommunicate OK [09:02:33]wFMCommunicate request_size=7 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 0D 02 02 02 97 61 [09:02:33]Write to MH i2c: E2 0A 00 FC 31 80 0D 02 02 02 00 97 61 00 00 A3 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 03 00 FC 31 00 90 00 A1 [09:02:33]RAPDU: 90 00 [09:02:33]wFMCommunicate OK [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 0D 03 02 [09:02:33]Write to MH i2c: E2 08 00 FD 31 80 0D 03 02 00 00 00 00 A9 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 0B 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 0B 00 FD 31 00 1F C3 79 09 74 1A 6D DA 90 00 E3 [09:02:33]RAPDU: 1F C3 79 09 74 1A 6D DA 90 00 [09:02:33]wFMCommunicate OK [09:02:33]SAM_PROTO_SignData done [09:02:33]FM_MakeSignedData done [09:02:33]CreateOFDProtocolMessage [09:02:33]wFMCommunicate request_size=4 [09:02:33]MH_SAM_APDU [09:02:33]CAPDU: 80 11 00 00 [09:02:33]Write to MH i2c: E2 08 00 FE 31 80 11 00 00 00 00 00 00 A9 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:33]Read from MH i2c: E2 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 17 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: E2 17 00 FE 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [09:02:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:02:33]wFMCommunicate OK [09:02:33]CreateOFDProtocolMessage done [09:02:33]OFDSenderStorePacket 188126 [09:02:33]StoreOFDPacket docnum=188126 [09:02:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4C 1D 04 01 B3 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9B 00 00 00 F4 03 04 00 2A 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DE 02 00 35 04 06 00 FC 38 6E 92 97 61 1F C3 79 09 74 1A 6D DA [09:02:33]CheckFolder [09:02:33]dirname=/storage/ofd_packets [09:02:33]CheckFolder done [09:02:33]ProducePacketName [09:02:33]name=ofd_packets/00188126 [09:02:33]NVStorageSaveData ofd_packets/00188126 [09:02:33]File name is /storage/ofd_packets/00188126 [09:02:33]Write 298 bytes [09:02:33]NVStorageSaveData done [09:02:33]OFDSenderStorePacket done [09:02:33]KKMCreateOFDPacket done [09:02:33]NVStorageSaveData kkm_last_timestamp [09:02:33]File name is /storage/kkm_last_timestamp [09:02:33]Write 4 bytes [09:02:33]NVStorageSaveData done [09:02:33]ExternCall_PrintAddStr [09:02:33]wPrintStart [09:02:33]Write to MH i2c: 01 00 00 FF 31 30 [09:02:33]Write i2c OK [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 [09:02:33]MH_I2C_Read... [09:02:33]Read from MH i2c: 01 07 00 FF 31 00 00 00 00 00 FF 0F 45 [09:02:33]RasterBufferAndPrint [09:02:33]line Счет N : (1)210178 [09:02:33]line ИНН: 02508201610067 [09:02:33]line Контрольно-Кассовый Чек [09:02:33]line ПРОДАЖА [09:02:33]line ТРК (МРК, ГНК) : 51 [09:02:33]line Товар: 2710194210 [09:02:33]line ДТ-К-5 [09:02:33]line 26.250 * 76.20 [09:02:33]line = 2000.25 [09:02:33]line НДС 12% НСП 1% [09:02:33]line > о реализуемом товаре [09:02:33]line ОКРУГЛЕНИЕ: -0.25 [09:02:33]line ИТОГО: 2000.00 [09:02:33]line Внесено: 2000.00 [09:02:33]line СДАЧА: 0.00 [09:02:33]line НСП 1% : 17.70 [09:02:33]line НДС 12% : 212.42 [09:02:33]line Наличными: 2000.00 [09:02:33]line Безнал.: 0.00 [09:02:33]line Место: АЗС № 86 "Партнер Нефть" [09:02:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:02:33]line СНО: Общий режим [09:02:33]line Чек 155 22.10.2024 09:02 [09:02:33]line Смена: 461 ФФД: 1.0 [09:02:33]line ЗНМ: 0300000155 [09:02:33]line РНМ: 0000000000100030 [09:02:33]line Версия ККМ: 001 [09:02:33]line ФМ: 0000000000965340 [09:02:33]line ФД: 188126 [09:02:33]line ФПД: 277319303468897 [09:02:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090234&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188126&fm=277319303468897&tin=02508201610067®Number=0000000000100030&sum=200000 [09:02:33]written 0, free lines is 4095 [09:02:33]OFD Sender: Processing packet 188126 [packets to send 1062, broken 1061] [09:02:33]ProducePacketName [09:02:33]name=ofd_packets/00188126 [09:02:33]OFD Sender: To server: pG, [09:02:33]CommunicateWithHost lk.salyk.kg:30040 [09:02:33]ConnectInit lk.salyk.kg [09:02:34]Connected sock=8 [09:02:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4C 1D 04 01 B3 C6 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 9B 00 00 00 F4 03 04 00 2A 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DE 02 00 35 04 06 00 FC 38 6E 92 97 61 1F C3 79 09 74 1A 6D DA [09:02:34]Write to MH i2c: 01 00 00 2A 32 5C [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: 01 07 00 2A 32 00 00 00 00 00 5B 0C CA [09:02:34]RasterBufferAndPrint [09:02:34]line [09:02:34]line [09:02:34]line [09:02:34]line [09:02:34]line [09:02:34]written 0, free lines is 3167 [09:02:34]MH_Cut [09:02:34]Write to MH i2c: D1 01 00 31 32 01 35 [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: D1 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: D1 01 00 [09:02:34]MH_I2C_Read... [09:02:34]Read from MH i2c: D1 01 00 31 32 00 34 [09:02:34]Write to MH i2c: 01 00 00 32 32 64 [09:02:34]Write i2c OK [09:02:34]MH_I2C_Read... [09:02:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C5 73 47 00 F4 6D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DE DE 02 00 F4 03 04 00 18 14 17 67 B6 04 01 00 00 EF CF 08 47 3A 44 1B 51 [09:02:34]CommunicateWithHost err = 0 [09:02:34]CheckOFDResponse [09:02:34]1017 (14) - 77093643461234 [09:02:34]1041 (16) - 0000000000965340 [09:02:34]1040 (4) - 188126 [09:02:34]1012 (4) - 22.10.2024 02:55 [09:02:34]1206 (1) - 0 [09:02:34]OFD Sender: Remove packet 188126 [09:02:34]ProducePacketName [09:02:34]name=ofd_packets/00188126 [09:02:34]NVStorageDeleteData [09:02:34]OFD Sender: No OFD packet to send [09:02:35]*** Cut start [09:02:35]*** Partial cut [09:02:35]*** CUTSNS_PIN = 1 [09:02:35]*** CUTSNS_PIN = 0 [09:02:35]*** Brake cut motor [09:02:36]Read from MH i2c: 01 [09:02:36]MH_I2C_Read... [09:02:36]*** Stop cut motor [09:02:36]*** Cut end [09:02:36]Read from MH i2c: 01 07 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: 01 07 00 32 32 00 00 00 00 00 FF 0F 79 [09:02:36]process_action close_receipt done [09:02:36]requested_data is exist [09:02:36]produce_requested_data [09:02:36]requested_item fm.sn is exist - process it [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 11 00 00 [09:02:36]Write to MH i2c: E2 08 00 33 32 80 11 00 00 00 00 00 00 DF [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 17 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 17 00 33 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [09:02:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:02:36]wFMCommunicate OK [09:02:36]requested_item fd.num is exist - process it [09:02:36]SAM_PROTO_GetFieldsCounters [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 13 00 00 [09:02:36]Write to MH i2c: E2 08 00 34 32 80 13 00 00 00 00 00 00 E2 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 62 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 62 00 34 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [09:02:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9B 00 00 00 5E 04 04 00 9B 00 00 00 57 04 04 00 9C 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:02:36]wFMCommunicate OK [09:02:36]SAM_PROTO_GetFieldsCounters done [09:02:36]requested_item shift.num is exist - process it [09:02:36]requested_item shift.opened is exist - process it [09:02:36]req_shift_opened [09:02:36]FM_GetShiftState [09:02:36]SAM_PROTO_GetShiftState [09:02:36]wFMCommunicate request_size=4 [09:02:36]MH_SAM_APDU [09:02:36]CAPDU: 80 13 01 00 [09:02:36]Write to MH i2c: E2 08 00 35 32 80 13 01 00 00 00 00 00 E4 [09:02:36]Write i2c OK [09:02:36]MH_I2C_Read... [09:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:02:36]Read from MH i2c: E2 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 0E 00 [09:02:36]MH_I2C_Read... [09:02:36]Read from MH i2c: E2 0E 00 35 32 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D9 [09:02:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:02:36]wFMCommunicate OK [09:02:36]SAM_PROTO_GetShiftState done [09:02:36]FM_GetShiftState done [09:02:36]req_shift_opened done [09:02:36]requested_item shift.open_date is exist - process it [09:02:36]req_shift_open_date [09:02:36]req_shift_open_date done [09:02:36]produce_requested_data done [09:02:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188126,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:02:36]process_action_free close_receipt [09:02:36]json_value_free [09:02:36]json_value_free done [09:02:36]process_json_proto returns [09:02:36]Send response to host [09:02:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188126,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:02:36]free response buf [09:02:36]execute_script done [09:02:36]execute_script returns [09:02:36]free content buf [09:02:36]Sock 9.Close socket [09:02:36]Sock 9.Thread stoped [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:03:00]OFD Sender: No OFD packet to send [09:03:05]OFD Sender: No OFD packet to send [09:03:10]OFD Sender: No OFD packet to send [09:03:15]OFD Sender: No OFD packet to send [09:03:20]OFD Sender: No OFD packet to send [09:03:25]OFD Sender: No OFD packet to send [09:03:30]OFD Sender: No OFD packet to send [09:03:35]OFD Sender: No OFD packet to send [09:03:40]OFD Sender: No OFD packet to send [09:03:45]OFD Sender: No OFD packet to send [09:03:50]OFD Sender: No OFD packet to send [09:03:55]OFD Sender: No OFD packet to send [09:04:00]OFD Sender: No OFD packet to send [09:04:05]OFD Sender: No OFD packet to send [09:04:07]accept exits with 10 [09:04:07]New connection [09:04:07]New thread 3067055460 created [09:04:07]Thread 3067198820 joined [09:04:07]Waiting for new connection... [09:04:07] Sock 10.Parse request [09:04:07]Sock 10.Check first char [09:04:07]Sock 10.First char is OK [09:04:07]request: POST /json_proto HTTP/1.0 [09:04:07]Method: POST [09:04:07]URL: /json_proto [09:04:07]Method is POST - this is cgi request [09:04:07]url: /json_proto [09:04:07]query_string will be loaded in cgi processing [09:04:07]execute_cgi json_proto POST (null) [09:04:07]execute_cgi path=json_proto method=POST [09:04:07]POST find Content-Length [09:04:07]Host: 172.17.42.131:8080 [09:04:07]Content-Length: 682 [09:04:07]Content-Type: application/json [09:04:07] [09:04:07]POST finish read [09:04:07]Found Content-Length = 682 [09:04:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:07]execute_script... [09:04: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)210180", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:07]POST & json_proto [09:04:07]process_json_proto [09:04:07]json parsed OK: [09:04:07]protocol is kg_v1.0 [09:04:07]action value=close_receipt [09:04:07]process_action close_receipt [09:04:07]cmd_close_receipt [09:04:07]MH_GetDate [09:04:07]Write to MH i2c: F0 00 00 36 32 57 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: F0 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: F0 09 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: F0 09 00 36 32 00 89 6A 17 67 A0 18 CA 66 B9 [09:04:07]GetLastDocTimeStamp 1729587754 [09:04:07]current date 1729587849 [09:04:07]FM_GetShiftState [09:04:07]SAM_PROTO_GetShiftState [09:04:07]wFMCommunicate request_size=4 [09:04:07]MH_SAM_APDU [09:04:07]CAPDU: 80 13 01 00 [09:04:07]Write to MH i2c: E2 08 00 37 32 80 13 01 00 00 00 00 00 E6 [09:04:07]Write i2c OK [09:04:07]MH_I2C_Read... [09:04:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:07]Read from MH i2c: E2 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 0E 00 [09:04:07]MH_I2C_Read... [09:04:07]Read from MH i2c: E2 0E 00 37 32 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [09:04:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:04:07]wFMCommunicate OK [09:04:07]SAM_PROTO_GetShiftState done [09:04:07]FM_GetShiftState done [09:04:07]opened in 1729556094 [09:04:07]opened+sec_in_day 1729642494 [09:04:07]quantity*price = 150056 [09:04:07]sum+1 = 150058 [09:04:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 156 22.10.2024 09:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188127 ФПД: 98730382464787 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188127&fm=98730382464787&tin=02508201610067®Number=0000000000100030&sum=150000 [09:04:08]StoreToDocumentArchive [09:04:08]shift 461 fd 188127 [09:04:08]save to /storage/0461/doc_00188127 [09:04:08]save last doc name /storage/0461/doc_00188127 to /storage/kkm_last_doc_name [09:04:08]save OK [09:04:08]Clear old archive folders... [09:04:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:08]tlvbuf is B6DE4010 [09:04:08]SAM_PROTO_ClearQueue [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 09 00 00 [09:04:08]Write to MH i2c: E2 08 00 44 32 80 09 00 00 00 00 00 00 E8 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 44 32 00 90 00 EA [09:04:08]RAPDU: 90 00 [09:04:08]wFMCommunicate OK [09:04:08]SAM_PROTO_ClearQueue done [09:04:08]KKMCreateOFDPacket [09:04:08]OFDProtocolAddRootSTLVToBuf [09:04:08]FM_MakeSignedData [09:04:08]FM_MakeSignedData [09:04:08]SAM_PROTO_SignData [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 0D 01 02 [09:04:08]Write to MH i2c: E2 08 00 45 32 80 0D 01 02 00 00 00 00 F0 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 45 32 00 90 00 EB [09:04:08]RAPDU: 90 00 [09:04:08]wFMCommunicate OK [09:04:08]wFMCommunicate request_size=255 [09:04:08]MH_SAM_APDU [09:04: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 89 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DE 02 00 35 04 06 00 59 [09:04:08]Write to MH i2c: E2 02 01 46 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 89 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DE 02 00 35 04 06 00 59 00 00 9F [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 46 32 00 90 00 EC [09:04:08]RAPDU: 90 00 [09:04:08]wFMCommunicate OK [09:04:08]wFMCommunicate request_size=10 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 0D 02 02 05 CB 75 60 17 13 [09:04:08]Write to MH i2c: E2 0D 00 47 32 80 0D 02 02 05 00 CB 75 60 17 13 00 00 C7 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 03 00 47 32 00 90 00 ED [09:04:08]RAPDU: 90 00 [09:04:08]wFMCommunicate OK [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 0D 03 02 [09:04:08]Write to MH i2c: E2 08 00 48 32 80 0D 03 02 00 00 00 00 F5 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 0B 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 0B 00 48 32 00 DC ED F7 F8 C6 CC 2A 0C 90 00 76 [09:04:08]RAPDU: DC ED F7 F8 C6 CC 2A 0C 90 00 [09:04:08]wFMCommunicate OK [09:04:08]SAM_PROTO_SignData done [09:04:08]FM_MakeSignedData done [09:04:08]CreateOFDProtocolMessage [09:04:08]wFMCommunicate request_size=4 [09:04:08]MH_SAM_APDU [09:04:08]CAPDU: 80 11 00 00 [09:04:08]Write to MH i2c: E2 08 00 49 32 80 11 00 00 00 00 00 00 F5 [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:08]Read from MH i2c: E2 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: E2 17 00 49 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [09:04:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:04:08]wFMCommunicate OK [09:04:08]CreateOFDProtocolMessage done [09:04:08]OFDSenderStorePacket 188127 [09:04:08]StoreOFDPacket docnum=188127 [09:04:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9B BE 07 01 B7 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 89 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DE 02 00 35 04 06 00 59 CB 75 60 17 13 DC ED F7 F8 C6 CC 2A 0C [09:04:08]CheckFolder [09:04:08]dirname=/storage/ofd_packets [09:04:08]CheckFolder done [09:04:08]ProducePacketName [09:04:08]name=ofd_packets/00188127 [09:04:08]NVStorageSaveData ofd_packets/00188127 [09:04:08]File name is /storage/ofd_packets/00188127 [09:04:08]Write 301 bytes [09:04:08]NVStorageSaveData done [09:04:08]OFDSenderStorePacket done [09:04:08]KKMCreateOFDPacket done [09:04:08]NVStorageSaveData kkm_last_timestamp [09:04:08]File name is /storage/kkm_last_timestamp [09:04:08]Write 4 bytes [09:04:08]NVStorageSaveData done [09:04:08]ExternCall_PrintAddStr [09:04:08]wPrintStart [09:04:08]Write to MH i2c: 01 00 00 4A 32 7C [09:04:08]Write i2c OK [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 [09:04:08]MH_I2C_Read... [09:04:08]Read from MH i2c: 01 07 00 4A 32 00 00 00 00 00 FF 0F 91 [09:04:08]RasterBufferAndPrint [09:04:08]line Счет N : (1)210180 [09:04:08]line ИНН: 02508201610067 [09:04:08]line Контрольно-Кассовый Чек [09:04:08]line ПРОДАЖА [09:04:08]line ТРК (МРК, ГНК) : 12 [09:04:08]line Товар: 2710124130 [09:04:08]line Аи-92-К-3 [09:04:08]line 22.430 * 66.90 [09:04:08]line = 1500.57 [09:04:08]line НДС 12% НСП 1% [09:04:08]line > о реализуемом товаре [09:04:08]line ОКРУГЛЕНИЕ: -0.57 [09:04:08]line ИТОГО: 1500.00 [09:04:08]line Внесено: 1500.00 [09:04:08]line СДАЧА: 0.00 [09:04:08]line НСП 1% : 13.28 [09:04:08]line НДС 12% : 159.35 [09:04:08]line Наличными: 1500.00 [09:04:08]line Безнал.: 0.00 [09:04:08]line Место: АЗС № 86 "Партнер Нефть" [09:04:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:04:08]line СНО: Общий режим [09:04:08]line Чек 156 22.10.2024 09:04 [09:04:08]line Смена: 461 ФФД: 1.0 [09:04:08]line ЗНМ: 0300000155 [09:04:08]line РНМ: 0000000000100030 [09:04:08]line Версия ККМ: 001 [09:04:08]line ФМ: 0000000000965340 [09:04:08]line ФД: 188127 [09:04:08]line ФПД: 98730382464787 [09:04:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188127&fm=98730382464787&tin=02508201610067®Number=0000000000100030&sum=150000 [09:04:08]written 0, free lines is 4095 [09:04:08]OFD Sender: Processing packet 188127 [packets to send 1062, broken 1061] [09:04:08]ProducePacketName [09:04:08]name=ofd_packets/00188127 [09:04:08]OFD Sender: To server: pG, [09:04:08]CommunicateWithHost lk.salyk.kg:30040 [09:04:08]ConnectInit lk.salyk.kg [09:04:09]Connected sock=9 [09:04:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9B BE 07 01 B7 B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9C 00 00 00 F4 03 04 00 89 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DE 02 00 35 04 06 00 59 CB 75 60 17 13 DC ED F7 F8 C6 CC 2A 0C [09:04:09]Write to MH i2c: 01 00 00 75 32 A7 [09:04:09]Write i2c OK [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: 01 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: 01 07 00 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: 01 07 00 75 32 00 00 00 00 00 5B 0C 15 [09:04:09]RasterBufferAndPrint [09:04:09]line [09:04:09]line [09:04:09]line [09:04:09]line [09:04:09]line [09:04:09]written 0, free lines is 3167 [09:04:09]MH_Cut [09:04:09]Write to MH i2c: D1 01 00 7C 32 01 80 [09:04:09]Write i2c OK [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: D1 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: D1 01 00 [09:04:09]MH_I2C_Read... [09:04:09]Read from MH i2c: D1 01 00 7C 32 00 7F [09:04:09]Write to MH i2c: 01 00 00 7D 32 AF [09:04:09]Write i2c OK [09:04:09]MH_I2C_Read... [09:04:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 9E 47 00 37 FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 DF DE 02 00 F4 03 04 00 77 14 17 67 B6 04 01 00 00 9F 32 FB 60 15 4A E3 77 [09:04:09]CommunicateWithHost err = 0 [09:04:09]CheckOFDResponse [09:04:09]1017 (14) - 77093643461234 [09:04:09]1041 (16) - 0000000000965340 [09:04:09]1040 (4) - 188127 [09:04:09]1012 (4) - 22.10.2024 02:56 [09:04:09]1206 (1) - 0 [09:04:09]OFD Sender: Remove packet 188127 [09:04:09]ProducePacketName [09:04:09]name=ofd_packets/00188127 [09:04:09]NVStorageDeleteData [09:04:09]OFD Sender: No OFD packet to send [09:04:10]*** Cut start [09:04:10]*** Partial cut [09:04:10]*** CUTSNS_PIN = 1 [09:04:10]*** CUTSNS_PIN = 0 [09:04:10]*** Brake cut motor [09:04:11]Read from MH i2c: 01 [09:04:11]MH_I2C_Read... [09:04:11]*** Stop cut motor [09:04:11]*** Cut end [09:04:11]Read from MH i2c: 01 07 00 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: 01 07 00 7D 32 00 00 00 00 00 FF 0F C4 [09:04:11]process_action close_receipt done [09:04:11]requested_data is exist [09:04:11]produce_requested_data [09:04:11]requested_item fm.sn is exist - process it [09:04:11]wFMCommunicate request_size=4 [09:04:11]MH_SAM_APDU [09:04:11]CAPDU: 80 11 00 00 [09:04:11]Write to MH i2c: E2 08 00 7E 32 80 11 00 00 00 00 00 00 2A [09:04:11]Write i2c OK [09:04:11]MH_I2C_Read... [09:04:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:11]Read from MH i2c: E2 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: E2 17 00 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: E2 17 00 7E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [09:04:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:04:11]wFMCommunicate OK [09:04:11]requested_item fd.num is exist - process it [09:04:11]SAM_PROTO_GetFieldsCounters [09:04:11]wFMCommunicate request_size=4 [09:04:11]MH_SAM_APDU [09:04:11]CAPDU: 80 13 00 00 [09:04:11]Write to MH i2c: E2 08 00 7F 32 80 13 00 00 00 00 00 00 2D [09:04:11]Write i2c OK [09:04:11]MH_I2C_Read... [09:04:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:11]Read from MH i2c: E2 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: E2 62 00 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: E2 62 00 7F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 95 [09:04:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 DF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9C 00 00 00 5E 04 04 00 9C 00 00 00 57 04 04 00 9D 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:11]wFMCommunicate OK [09:04:11]SAM_PROTO_GetFieldsCounters done [09:04:11]requested_item shift.num is exist - process it [09:04:11]requested_item shift.opened is exist - process it [09:04:11]req_shift_opened [09:04:11]FM_GetShiftState [09:04:11]SAM_PROTO_GetShiftState [09:04:11]wFMCommunicate request_size=4 [09:04:11]MH_SAM_APDU [09:04:11]CAPDU: 80 13 01 00 [09:04:11]Write to MH i2c: E2 08 00 80 32 80 13 01 00 00 00 00 00 2F [09:04:11]Write i2c OK [09:04:11]MH_I2C_Read... [09:04:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:11]Read from MH i2c: E2 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: E2 0E 00 [09:04:11]MH_I2C_Read... [09:04:11]Read from MH i2c: E2 0E 00 80 32 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [09:04:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:04:11]wFMCommunicate OK [09:04:11]SAM_PROTO_GetShiftState done [09:04:11]FM_GetShiftState done [09:04:11]req_shift_opened done [09:04:11]requested_item shift.open_date is exist - process it [09:04:11]req_shift_open_date [09:04:11]req_shift_open_date done [09:04:11]produce_requested_data done [09:04:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188127,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:04:11]process_action_free close_receipt [09:04:11]json_value_free [09:04:11]json_value_free done [09:04:11]process_json_proto returns [09:04:11]Send response to host [09:04:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188127,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:04:11]free response buf [09:04:11]execute_script done [09:04:11]execute_script returns [09:04:11]free content buf [09:04:11]Sock 10.Close socket [09:04:11]Sock 10.Thread stoped [09:04:15]OFD Sender: No OFD packet to send [09:04:20]OFD Sender: No OFD packet to send [09:04:25]OFD Sender: No OFD packet to send [09:04:30]OFD Sender: No OFD packet to send [09:04:35]OFD Sender: No OFD packet to send [09:04:40]OFD Sender: No OFD packet to send [09:04:45]OFD Sender: No OFD packet to send [09:04:50]OFD Sender: No OFD packet to send [09:04:54]accept exits with 8 [09:04:54]New connection [09:04:54]New thread 3067198820 created [09:04:54]Thread 3067055460 joined [09:04:54]Waiting for new connection... [09:04:54] Sock 8.Parse request [09:04:54]Sock 8.Check first char [09:04:54]Sock 8.First char is OK [09:04:54]request: POST /json_proto HTTP/1.0 [09:04:54]Method: POST [09:04:54]URL: /json_proto [09:04:54]Method is POST - this is cgi request [09:04:54]url: /json_proto [09:04:54]query_string will be loaded in cgi processing [09:04:54]execute_cgi json_proto POST (null) [09:04:54]execute_cgi path=json_proto method=POST [09:04:54]POST find Content-Length [09:04:54]Host: 172.17.42.131:8080 [09:04:54]Content-Length: 754 [09:04:54]Content-Type: application/json [09:04:54] [09:04:54]POST finish read [09:04:54]Found Content-Length = 754 [09:04:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:54]execute_script... [09:04:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210179", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30101333", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:04:54]POST & json_proto [09:04:54]process_json_proto [09:04:54]json parsed OK: [09:04:54]protocol is kg_v1.0 [09:04:54]action value=close_receipt [09:04:54]process_action close_receipt [09:04:54]cmd_close_receipt [09:04:54]MH_GetDate [09:04:54]Write to MH i2c: F0 00 00 81 32 A2 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: F0 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: F0 09 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: F0 09 00 81 32 00 B8 6A 17 67 A0 18 CA 66 33 [09:04:54]GetLastDocTimeStamp 1729587849 [09:04:54]current date 1729587896 [09:04:54]FM_GetShiftState [09:04:54]SAM_PROTO_GetShiftState [09:04:54]wFMCommunicate request_size=4 [09:04:54]MH_SAM_APDU [09:04:54]CAPDU: 80 13 01 00 [09:04:54]Write to MH i2c: E2 08 00 82 32 80 13 01 00 00 00 00 00 31 [09:04:54]Write i2c OK [09:04:54]MH_I2C_Read... [09:04:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:54]Read from MH i2c: E2 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 0E 00 [09:04:54]MH_I2C_Read... [09:04:54]Read from MH i2c: E2 0E 00 82 32 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [09:04:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:04:54]wFMCommunicate OK [09:04:54]SAM_PROTO_GetShiftState done [09:04:54]FM_GetShiftState done [09:04:54]opened in 1729556094 [09:04:54]opened+sec_in_day 1729642494 [09:04:54]quantity*price = 0 [09:04:54]sum+1 = 1 [09:04:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 157 22.10.2024 09:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30101333 ФМ: 0000000000965340 ФД: 188128 ФПД: 241297541907437 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090456&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188128&fm=241297541907437&tin=02508201610067®Number=0000000000100030&sum=0 [09:04:55]StoreToDocumentArchive [09:04:55]shift 461 fd 188128 [09:04:55]save to /storage/0461/doc_00188128 [09:04:55]save last doc name /storage/0461/doc_00188128 to /storage/kkm_last_doc_name [09:04:55]save OK [09:04:55]Clear old archive folders... [09:04:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:04:55]tlvbuf is 01C03C10 [09:04:55]SAM_PROTO_ClearQueue [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 09 00 00 [09:04:55]Write to MH i2c: E2 08 00 8F 32 80 09 00 00 00 00 00 00 33 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 8F 32 00 90 00 35 [09:04:55]RAPDU: 90 00 [09:04:55]wFMCommunicate OK [09:04:55]SAM_PROTO_ClearQueue done [09:04:55]KKMCreateOFDPacket [09:04:55]OFDProtocolAddRootSTLVToBuf [09:04:55]FM_MakeSignedData [09:04:55]FM_MakeSignedData [09:04:55]SAM_PROTO_SignData [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 0D 01 02 [09:04:55]Write to MH i2c: E2 08 00 90 32 80 0D 01 02 00 00 00 00 3B [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 90 32 00 90 00 36 [09:04:55]RAPDU: 90 00 [09:04:55]wFMCommunicate OK [09:04:55]wFMCommunicate request_size=255 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DE 02 00 35 04 06 00 DB [09:04:55]Write to MH i2c: E2 02 01 91 32 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DE 02 00 35 04 06 00 DB 00 00 AB [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 91 32 00 90 00 37 [09:04:55]RAPDU: 90 00 [09:04:55]wFMCommunicate OK [09:04:55]wFMCommunicate request_size=10 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 0D 02 02 05 75 76 45 43 ED [09:04:55]Write to MH i2c: E2 0D 00 92 32 80 0D 02 02 05 00 75 76 45 43 ED 00 00 A8 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 03 00 92 32 00 90 00 38 [09:04:55]RAPDU: 90 00 [09:04:55]wFMCommunicate OK [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 0D 03 02 [09:04:55]Write to MH i2c: E2 08 00 93 32 80 0D 03 02 00 00 00 00 40 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 0B 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 0B 00 93 32 00 CF D8 39 05 94 9B 67 E6 90 00 A2 [09:04:55]RAPDU: CF D8 39 05 94 9B 67 E6 90 00 [09:04:55]wFMCommunicate OK [09:04:55]SAM_PROTO_SignData done [09:04:55]FM_MakeSignedData done [09:04:55]CreateOFDProtocolMessage [09:04:55]wFMCommunicate request_size=4 [09:04:55]MH_SAM_APDU [09:04:55]CAPDU: 80 11 00 00 [09:04:55]Write to MH i2c: E2 08 00 94 32 80 11 00 00 00 00 00 00 40 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:55]Read from MH i2c: E2 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 17 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: E2 17 00 94 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [09:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:04:55]wFMCommunicate OK [09:04:55]CreateOFDProtocolMessage done [09:04:55]OFDSenderStorePacket 188128 [09:04:55]StoreOFDPacket docnum=188128 [09:04:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 58 07 01 75 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DE 02 00 35 04 06 00 DB 75 76 45 43 ED CF D8 39 05 94 9B 67 E6 [09:04:55]CheckFolder [09:04:55]dirname=/storage/ofd_packets [09:04:55]CheckFolder done [09:04:55]ProducePacketName [09:04:55]name=ofd_packets/00188128 [09:04:55]NVStorageSaveData ofd_packets/00188128 [09:04:55]File name is /storage/ofd_packets/00188128 [09:04:55]Write 301 bytes [09:04:55]NVStorageSaveData done [09:04:55]OFDSenderStorePacket done [09:04:55]KKMCreateOFDPacket done [09:04:55]NVStorageSaveData kkm_last_timestamp [09:04:55]File name is /storage/kkm_last_timestamp [09:04:55]Write 4 bytes [09:04:55]NVStorageSaveData done [09:04:55]ExternCall_PrintAddStr [09:04:55]wPrintStart [09:04:55]Write to MH i2c: 01 00 00 95 32 C7 [09:04:55]Write i2c OK [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 07 00 [09:04:55]MH_I2C_Read... [09:04:55]Read from MH i2c: 01 07 00 95 32 00 00 00 00 00 FF 0F DC [09:04:55]RasterBufferAndPrint [09:04:55]line Счет N : (1)210179 [09:04:55]line ИНН: 02508201610067 [09:04:55]line Контрольно-Кассовый Чек [09:04:55]line ПРОДАЖА [09:04:55]line ТРК (МРК, ГНК) : 42 [09:04:55]line Товар: 2710124130 [09:04:55]line Аи-92-К-3 [09:04:55]line 40.000 * 0.00 [09:04:55]line = 0.00 [09:04:55]line НДС 12% НСП 1% [09:04:55]line > о реализуемом товаре [09:04:55]line ИТОГО: 0.00 [09:04:55]line НСП 1% : 0.00 [09:04:55]line НДС 12% : 0.00 [09:04:55]line Наличными: 0.00 [09:04:55]line Безнал.: 0.00 [09:04:55]line Место: АЗС № 86 "Партнер Нефть" [09:04:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:04:55]line СНО: Общий режим [09:04:55]line Чек 157 22.10.2024 09:04 [09:04:55]line Смена: 461 ФФД: 1.0 [09:04:55]line ЗНМ: 0300000155 [09:04:55]line РНМ: 0000000000100030 [09:04:55]line Версия ККМ: 001 [09:04:55]line Талоны: ТК ГПНА Online [09:04:55]line 30101333 [09:04:55]line ФМ: 0000000000965340 [09:04:55]line ФД: 188128 [09:04:55]line ФПД: 241297541907437 [09:04:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090456&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188128&fm=241297541907437&tin=02508201610067®Number=0000000000100030&sum=0 [09:04:55]written 0, free lines is 4095 [09:04:55]OFD Sender: Processing packet 188128 [packets to send 1062, broken 1061] [09:04:55]ProducePacketName [09:04:55]name=ofd_packets/00188128 [09:04:55]OFD Sender: To server: pG, [09:04:55]CommunicateWithHost lk.salyk.kg:30040 [09:04:55]ConnectInit lk.salyk.kg [09:04:56]Connected sock=10 [09:04:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 58 07 01 75 C0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 B8 6A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DE 02 00 35 04 06 00 DB 75 76 45 43 ED CF D8 39 05 94 9B 67 E6 [09:04:56]Write to MH i2c: 01 00 00 BF 32 F1 [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: 01 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: 01 07 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: 01 07 00 BF 32 00 00 00 00 00 72 0C 76 [09:04:56]RasterBufferAndPrint [09:04:56]line [09:04:56]line [09:04:56]line [09:04:56]line [09:04:56]line [09:04:56]written 0, free lines is 3191 [09:04:56]MH_Cut [09:04:56]Write to MH i2c: D1 01 00 C6 32 01 CA [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: D1 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: D1 01 00 [09:04:56]MH_I2C_Read... [09:04:56]Read from MH i2c: D1 01 00 C6 32 00 C9 [09:04:56]Write to MH i2c: 01 00 00 C7 32 F9 [09:04:56]Write i2c OK [09:04:56]MH_I2C_Read... [09:04:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E6 A6 47 00 52 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E0 DE 02 00 F4 03 04 00 A6 14 17 67 B6 04 01 00 00 7F 8D 26 F3 EE 32 F9 10 [09:04:56]CommunicateWithHost err = 0 [09:04:56]CheckOFDResponse [09:04:56]1017 (14) - 77093643461234 [09:04:56]1041 (16) - 0000000000965340 [09:04:56]1040 (4) - 188128 [09:04:56]1012 (4) - 22.10.2024 02:57 [09:04:56]1206 (1) - 0 [09:04:56]OFD Sender: Remove packet 188128 [09:04:56]ProducePacketName [09:04:56]name=ofd_packets/00188128 [09:04:56]NVStorageDeleteData [09:04:57]OFD Sender: No OFD packet to send [09:04:57]*** Cut start [09:04:57]*** Partial cut [09:04:57]*** CUTSNS_PIN = 1 [09:04:57]*** CUTSNS_PIN = 0 [09:04:57]*** Brake cut motor [09:04:58]Read from MH i2c: 01 [09:04:58]MH_I2C_Read... [09:04:58]*** Stop cut motor [09:04:58]*** Cut end [09:04:58]Read from MH i2c: 01 07 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: 01 07 00 C7 32 00 00 00 00 00 FF 0F 0E [09:04:58]process_action close_receipt done [09:04:58]requested_data is exist [09:04:58]produce_requested_data [09:04:58]requested_item fm.sn is exist - process it [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 11 00 00 [09:04:58]Write to MH i2c: E2 08 00 C8 32 80 11 00 00 00 00 00 00 74 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 17 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 17 00 C8 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [09:04:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:04:58]wFMCommunicate OK [09:04:58]requested_item fd.num is exist - process it [09:04:58]SAM_PROTO_GetFieldsCounters [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 13 00 00 [09:04:58]Write to MH i2c: E2 08 00 C9 32 80 13 00 00 00 00 00 00 77 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 62 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 62 00 C9 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [09:04:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E0 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9D 00 00 00 5E 04 04 00 9D 00 00 00 57 04 04 00 9E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:04:58]wFMCommunicate OK [09:04:58]SAM_PROTO_GetFieldsCounters done [09:04:58]requested_item shift.num is exist - process it [09:04:58]requested_item shift.opened is exist - process it [09:04:58]req_shift_opened [09:04:58]FM_GetShiftState [09:04:58]SAM_PROTO_GetShiftState [09:04:58]wFMCommunicate request_size=4 [09:04:58]MH_SAM_APDU [09:04:58]CAPDU: 80 13 01 00 [09:04:58]Write to MH i2c: E2 08 00 CA 32 80 13 01 00 00 00 00 00 79 [09:04:58]Write i2c OK [09:04:58]MH_I2C_Read... [09:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:04:58]Read from MH i2c: E2 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 0E 00 [09:04:58]MH_I2C_Read... [09:04:58]Read from MH i2c: E2 0E 00 CA 32 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6E [09:04:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:04:58]wFMCommunicate OK [09:04:58]SAM_PROTO_GetShiftState done [09:04:58]FM_GetShiftState done [09:04:58]req_shift_opened done [09:04:58]requested_item shift.open_date is exist - process it [09:04:58]req_shift_open_date [09:04:58]req_shift_open_date done [09:04:58]produce_requested_data done [09:04:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188128,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:04:58]process_action_free close_receipt [09:04:58]json_value_free [09:04:58]json_value_free done [09:04:58]process_json_proto returns [09:04:58]Send response to host [09:04:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188128,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:04:58]free response buf [09:04:58]execute_script done [09:04:58]execute_script returns [09:04:58]free content buf [09:04:58]Sock 8.Close socket [09:04:58]Sock 8.Thread stoped [09:05:02]OFD Sender: No OFD packet to send [09:05:07]OFD Sender: No OFD packet to send [09:05:12]OFD Sender: No OFD packet to send [09:05:17]OFD Sender: No OFD packet to send [09:05:22]OFD Sender: No OFD packet to send [09:05:27]OFD Sender: No OFD packet to send [09:05:32]OFD Sender: No OFD packet to send [09:05:37]OFD Sender: No OFD packet to send [09:05:42]OFD Sender: No OFD packet to send [09:05:47]OFD Sender: No OFD packet to send [09:05:52]OFD Sender: No OFD packet to send [09:05:57]OFD Sender: No OFD packet to send [09:06:02]OFD Sender: No OFD packet to send [09:06:07]OFD Sender: No OFD packet to send [09:06:12]OFD Sender: No OFD packet to send [09:06:17]OFD Sender: No OFD packet to send [09:06:22]OFD Sender: No OFD packet to send [09:06:27]OFD Sender: No OFD packet to send [09:06:32]OFD Sender: No OFD packet to send [09:06:37]OFD Sender: No OFD packet to send [09:06:42]OFD Sender: No OFD packet to send [09:06:47]OFD Sender: No OFD packet to send [09:06:52]OFD Sender: No OFD packet to send [09:06:57]OFD Sender: No OFD packet to send [09:07:02]OFD Sender: No OFD packet to send [09:07:07]OFD Sender: No OFD packet to send [09:07:12]OFD Sender: No OFD packet to send [09:07:17]OFD Sender: No OFD packet to send [09:07:22]OFD Sender: No OFD packet to send [09:07:27]OFD Sender: No OFD packet to send [09:07:32]OFD Sender: No OFD packet to send [09:07:37]OFD Sender: No OFD packet to send [09:07:42]OFD Sender: No OFD packet to send [09:07:47]OFD Sender: No OFD packet to send [09:07:52]OFD Sender: No OFD packet to send [09:07:57]OFD Sender: No OFD packet to send [09:08:02]OFD Sender: No OFD packet to send [09:08:07]OFD Sender: No OFD packet to send [09:08:12]OFD Sender: No OFD packet to send [09:08:15]accept exits with 9 [09:08:15]New connection [09:08:15]New thread 3067055460 created [09:08:15]Thread 3067198820 joined [09:08:15]Waiting for new connection... [09:08:15] Sock 9.Parse request [09:08:15]Sock 9.Check first char [09:08:15]Sock 9.First char is OK [09:08:15]request: POST /json_proto HTTP/1.0 [09:08:15]Method: POST [09:08:15]URL: /json_proto [09:08:15]Method is POST - this is cgi request [09:08:15]url: /json_proto [09:08:15]query_string will be loaded in cgi processing [09:08:15]execute_cgi json_proto POST (null) [09:08:15]execute_cgi path=json_proto method=POST [09:08:15]POST find Content-Length [09:08:15]Host: 172.17.42.131:8080 [09:08:15]Content-Length: 798 [09:08:15]Content-Type: application/json [09:08:15] [09:08:15]POST finish read [09:08:15]Found Content-Length = 798 [09:08:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987368", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:15]execute_script... [09:08: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)210181", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3987368", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:08:15]POST & json_proto [09:08:15]process_json_proto [09:08:15]json parsed OK: [09:08:15]protocol is kg_v1.0 [09:08:15]action value=close_receipt [09:08:15]process_action close_receipt [09:08:15]cmd_close_receipt [09:08:15]MH_GetDate [09:08:15]Write to MH i2c: F0 00 00 CB 32 EC [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: F0 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: F0 09 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: F0 09 00 CB 32 00 81 6B 17 67 A0 18 CA 66 47 [09:08:15]GetLastDocTimeStamp 1729587896 [09:08:15]current date 1729588097 [09:08:15]FM_GetShiftState [09:08:15]SAM_PROTO_GetShiftState [09:08:15]wFMCommunicate request_size=4 [09:08:15]MH_SAM_APDU [09:08:15]CAPDU: 80 13 01 00 [09:08:15]Write to MH i2c: E2 08 00 CC 32 80 13 01 00 00 00 00 00 7B [09:08:15]Write i2c OK [09:08:15]MH_I2C_Read... [09:08:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:15]Read from MH i2c: E2 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0E 00 [09:08:15]MH_I2C_Read... [09:08:15]Read from MH i2c: E2 0E 00 CC 32 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 70 [09:08:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:08:15]wFMCommunicate OK [09:08:15]SAM_PROTO_GetShiftState done [09:08:15]FM_GetShiftState done [09:08:15]opened in 1729556094 [09:08:15]opened+sec_in_day 1729642494 [09:08:15]quantity*price = 0 [09:08:15]sum+1 = 1 [09:08:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 158 22.10.2024 09:08 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3987368 ФМ: 0000000000965340 ФД: 188129 ФПД: 147508868109477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188129&fm=147508868109477&tin=02508201610067®Number=0000000000100030&sum=0 [09:08:16]StoreToDocumentArchive [09:08:16]shift 461 fd 188129 [09:08:16]save to /storage/0461/doc_00188129 [09:08:16]save last doc name /storage/0461/doc_00188129 to /storage/kkm_last_doc_name [09:08:16]save OK [09:08:16]Clear old archive folders... [09:08:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:08:16]tlvbuf is 01BBC640 [09:08:16]SAM_PROTO_ClearQueue [09:08:16]wFMCommunicate request_size=4 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 09 00 00 [09:08:16]Write to MH i2c: E2 08 00 D9 32 80 09 00 00 00 00 00 00 7D [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 D9 32 00 90 00 7F [09:08:16]RAPDU: 90 00 [09:08:16]wFMCommunicate OK [09:08:16]SAM_PROTO_ClearQueue done [09:08:16]KKMCreateOFDPacket [09:08:16]OFDProtocolAddRootSTLVToBuf [09:08:16]FM_MakeSignedData [09:08:16]FM_MakeSignedData [09:08:16]SAM_PROTO_SignData [09:08:16]wFMCommunicate request_size=4 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 0D 01 02 [09:08:16]Write to MH i2c: E2 08 00 DA 32 80 0D 01 02 00 00 00 00 85 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:08:16]Read from MH i2c: E2 03 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 DA 32 00 90 00 80 [09:08:16]RAPDU: 90 00 [09:08:16]wFMCommunicate OK [09:08:16]wFMCommunicate request_size=255 [09:08:16]MH_SAM_APDU [09:08: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 81 6B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DE 02 00 35 04 06 00 86 28 95 AF [09:08:16]Write to MH i2c: E2 02 01 DB 32 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 81 6B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DE 02 00 35 04 06 00 86 28 95 AF 00 00 78 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 DB 32 00 90 00 81 [09:08:16]RAPDU: 90 00 [09:08:16]wFMCommunicate OK [09:08:16]wFMCommunicate request_size=7 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 0D 02 02 02 54 A5 [09:08:16]Write to MH i2c: E2 0A 00 DC 32 80 0D 02 02 02 00 54 A5 00 00 85 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 03 00 DC 32 00 90 00 82 [09:08:16]RAPDU: 90 00 [09:08:16]wFMCommunicate OK [09:08:16]wFMCommunicate request_size=4 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 0D 03 02 [09:08:16]Write to MH i2c: E2 08 00 DD 32 80 0D 03 02 00 00 00 00 8A [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 0B 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 0B 00 DD 32 00 A8 02 D6 8E B4 30 C1 62 90 00 A0 [09:08:16]RAPDU: A8 02 D6 8E B4 30 C1 62 90 00 [09:08:16]wFMCommunicate OK [09:08:16]SAM_PROTO_SignData done [09:08:16]FM_MakeSignedData done [09:08:16]CreateOFDProtocolMessage [09:08:16]wFMCommunicate request_size=4 [09:08:16]MH_SAM_APDU [09:08:16]CAPDU: 80 11 00 00 [09:08:16]Write to MH i2c: E2 08 00 DE 32 80 11 00 00 00 00 00 00 8A [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:16]Read from MH i2c: E2 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 17 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: E2 17 00 DE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [09:08:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:08:16]wFMCommunicate OK [09:08:16]CreateOFDProtocolMessage done [09:08:16]OFDSenderStorePacket 188129 [09:08:16]StoreOFDPacket docnum=188129 [09:08:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 85 96 04 01 87 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 81 6B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DE 02 00 35 04 06 00 86 28 95 AF 54 A5 A8 02 D6 8E B4 30 C1 62 [09:08:16]CheckFolder [09:08:16]dirname=/storage/ofd_packets [09:08:16]CheckFolder done [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00188129 [09:08:16]NVStorageSaveData ofd_packets/00188129 [09:08:16]File name is /storage/ofd_packets/00188129 [09:08:16]Write 298 bytes [09:08:16]NVStorageSaveData done [09:08:16]OFDSenderStorePacket done [09:08:16]KKMCreateOFDPacket done [09:08:16]NVStorageSaveData kkm_last_timestamp [09:08:16]File name is /storage/kkm_last_timestamp [09:08:16]Write 4 bytes [09:08:16]NVStorageSaveData done [09:08:16]ExternCall_PrintAddStr [09:08:16]wPrintStart [09:08:16]Write to MH i2c: 01 00 00 DF 32 11 [09:08:16]Write i2c OK [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 [09:08:16]MH_I2C_Read... [09:08:16]Read from MH i2c: 01 07 00 DF 32 00 00 00 00 00 FF 0F 26 [09:08:16]RasterBufferAndPrint [09:08:16]line Счет N : (1)210181 [09:08:16]line ИНН: 02508201610067 [09:08:16]line Контрольно-Кассовый Чек [09:08:16]line ПРОДАЖА [09:08:16]line ТРК (МРК, ГНК) : 51 [09:08:16]line Товар: 2710194210 [09:08:16]line ДТ-К-5 [09:08:16]line 100.000 * 0.00 [09:08:16]line = 0.00 [09:08:16]line НДС 12% НСП 1% [09:08:16]line > о реализуемом товаре [09:08:16]line ИТОГО: 0.00 [09:08:16]line НСП 1% : 0.00 [09:08:16]line НДС 12% : 0.00 [09:08:16]line Наличными: 0.00 [09:08:16]line Безнал.: 0.00 [09:08:16]line Место: АЗС № 86 "Партнер Нефть" [09:08:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:08:16]line СНО: Общий режим [09:08:16]line Чек 158 22.10.2024 09:08 [09:08:16]line Смена: 461 ФФД: 1.0 [09:08:16]line ЗНМ: 0300000155 [09:08:16]line РНМ: 0000000000100030 [09:08:16]line Версия ККМ: 001 [09:08:16]line Талоны: Топливные Талоны [09:08:16]line 3987368 [09:08:16]line ФМ: 0000000000965340 [09:08:16]line ФД: 188129 [09:08:16]line ФПД: 147508868109477 [09:08:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T090817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188129&fm=147508868109477&tin=02508201610067®Number=0000000000100030&sum=0 [09:08:16]written 0, free lines is 4095 [09:08:16]OFD Sender: Processing packet 188129 [packets to send 1062, broken 1061] [09:08:16]ProducePacketName [09:08:16]name=ofd_packets/00188129 [09:08:16]OFD Sender: To server: pG, [09:08:16]CommunicateWithHost lk.salyk.kg:30040 [09:08:16]ConnectInit lk.salyk.kg [09:08:17]Write to MH i2c: 01 00 00 09 33 3C [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: 01 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: 01 07 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: 01 07 00 09 33 00 00 00 00 00 65 0C B4 [09:08:17]RasterBufferAndPrint [09:08:17]line [09:08:17]line [09:08:17]line [09:08:17]line [09:08:17]line [09:08:17]written 0, free lines is 3176 [09:08:17]MH_Cut [09:08:17]Write to MH i2c: D1 01 00 10 33 01 15 [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: D1 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: D1 01 00 [09:08:17]MH_I2C_Read... [09:08:17]Read from MH i2c: D1 01 00 10 33 00 14 [09:08:17]Write to MH i2c: 01 00 00 11 33 44 [09:08:17]Write i2c OK [09:08:17]MH_I2C_Read... [09:08:17]Connected sock=10 [09:08:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 85 96 04 01 87 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 81 6B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E1 DE 02 00 35 04 06 00 86 28 95 AF 54 A5 A8 02 D6 8E B4 30 C1 62 [09:08:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC A6 47 00 A8 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 39 36 35 33 34 30 10 04 04 00 E1 DE 02 00 F4 03 04 00 6F 15 17 67 B6 04 01 00 00 95 DD E8 6D EC EC 38 97 [09:08:17]CommunicateWithHost err = 0 [09:08:17]CheckOFDResponse [09:08:17]1017 (14) - 77093643461234 [09:08:17]1041 (16) - 0000000000965340 [09:08:17]1040 (4) - 188129 [09:08:17]1012 (4) - 22.10.2024 03:01 [09:08:17]1206 (1) - 0 [09:08:17]OFD Sender: Remove packet 188129 [09:08:17]ProducePacketName [09:08:17]name=ofd_packets/00188129 [09:08:17]NVStorageDeleteData [09:08:18]OFD Sender: No OFD packet to send [09:08:18]*** Cut start [09:08:18]*** Partial cut [09:08:18]*** CUTSNS_PIN = 1 [09:08:18]*** CUTSNS_PIN = 0 [09:08:18]*** Brake cut motor [09:08:19]Read from MH i2c: 01 [09:08:19]MH_I2C_Read... [09:08:19]*** Stop cut motor [09:08:19]*** Cut end [09:08:19]Read from MH i2c: 01 07 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: 01 07 00 11 33 00 00 00 00 00 FF 0F 59 [09:08:19]process_action close_receipt done [09:08:19]requested_data is exist [09:08:19]produce_requested_data [09:08:19]requested_item fm.sn is exist - process it [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 11 00 00 [09:08:19]Write to MH i2c: E2 08 00 12 33 80 11 00 00 00 00 00 00 BF [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 17 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 17 00 12 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [09:08:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:08:19]wFMCommunicate OK [09:08:19]requested_item fd.num is exist - process it [09:08:19]SAM_PROTO_GetFieldsCounters [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 13 00 00 [09:08:19]Write to MH i2c: E2 08 00 13 33 80 13 00 00 00 00 00 00 C2 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 62 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 62 00 13 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [09:08:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E1 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9E 00 00 00 5E 04 04 00 9E 00 00 00 57 04 04 00 9F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_GetFieldsCounters done [09:08:19]requested_item shift.num is exist - process it [09:08:19]requested_item shift.opened is exist - process it [09:08:19]req_shift_opened [09:08:19]FM_GetShiftState [09:08:19]SAM_PROTO_GetShiftState [09:08:19]wFMCommunicate request_size=4 [09:08:19]MH_SAM_APDU [09:08:19]CAPDU: 80 13 01 00 [09:08:19]Write to MH i2c: E2 08 00 14 33 80 13 01 00 00 00 00 00 C4 [09:08:19]Write i2c OK [09:08:19]MH_I2C_Read... [09:08:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:08:19]Read from MH i2c: E2 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0E 00 [09:08:19]MH_I2C_Read... [09:08:19]Read from MH i2c: E2 0E 00 14 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B9 [09:08:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:08:19]wFMCommunicate OK [09:08:19]SAM_PROTO_GetShiftState done [09:08:19]FM_GetShiftState done [09:08:19]req_shift_opened done [09:08:19]requested_item shift.open_date is exist - process it [09:08:19]req_shift_open_date [09:08:19]req_shift_open_date done [09:08:19]produce_requested_data done [09:08:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188129,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:08:19]process_action_free close_receipt [09:08:19]json_value_free [09:08:19]json_value_free done [09:08:19]process_json_proto returns [09:08:19]Send response to host [09:08:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188129,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:08:19]free response buf [09:08:19]execute_script done [09:08:19]execute_script returns [09:08:19]free content buf [09:08:19]Sock 9.Close socket [09:08:19]Sock 9.Thread stoped [09:08:23]OFD Sender: No OFD packet to send [09:08:28]OFD Sender: No OFD packet to send [09:08:33]OFD Sender: No OFD packet to send [09:08:38]OFD Sender: No OFD packet to send [09:08:43]OFD Sender: No OFD packet to send [09:08:48]OFD Sender: No OFD packet to send [09:08:53]OFD Sender: No OFD packet to send [09:08:58]OFD Sender: No OFD packet to send [09:09:03]OFD Sender: No OFD packet to send [09:09:08]OFD Sender: No OFD packet to send [09:09:13]OFD Sender: No OFD packet to send [09:09:18]OFD Sender: No OFD packet to send [09:09:23]OFD Sender: No OFD packet to send [09:09:28]OFD Sender: No OFD packet to send [09:09:33]OFD Sender: No OFD packet to send [09:09:38]OFD Sender: No OFD packet to send [09:09:43]OFD Sender: No OFD packet to send [09:09:48]OFD Sender: No OFD packet to send [09:09:53]OFD Sender: No OFD packet to send [09:09:58]OFD Sender: No OFD packet to send [09:10:03]OFD Sender: No OFD packet to send [09:10:08]OFD Sender: No OFD packet to send [09:10:13]OFD Sender: No OFD packet to send [09:10:18]OFD Sender: No OFD packet to send [09:10:23]OFD Sender: No OFD packet to send [09:10:28]OFD Sender: No OFD packet to send [09:10:33]OFD Sender: No OFD packet to send [09:10:38]OFD Sender: No OFD packet to send [09:10:43]OFD Sender: No OFD packet to send [09:10:48]OFD Sender: No OFD packet to send [09:10:53]OFD Sender: No OFD packet to send [09:10:58]OFD Sender: No OFD packet to send [09:11:03]OFD Sender: No OFD packet to send [09:11:09]OFD Sender: No OFD packet to send [09:11:14]OFD Sender: No OFD packet to send [09:11:19]OFD Sender: No OFD packet to send [09:11:24]OFD Sender: No OFD packet to send [09:11:29]OFD Sender: No OFD packet to send [09:11:34]OFD Sender: No OFD packet to send [09:11:39]OFD Sender: No OFD packet to send [09:11:44]OFD Sender: No OFD packet to send [09:11:49]OFD Sender: No OFD packet to send [09:11:54]OFD Sender: No OFD packet to send [09:11:59]OFD Sender: No OFD packet to send [09:12:04]OFD Sender: No OFD packet to send [09:12:09]OFD Sender: No OFD packet to send [09:12:14]OFD Sender: No OFD packet to send [09:12:19]OFD Sender: No OFD packet to send [09:12:24]OFD Sender: No OFD packet to send [09:12:29]OFD Sender: No OFD packet to send [09:12:34]OFD Sender: No OFD packet to send [09:12:39]OFD Sender: No OFD packet to send [09:12:44]OFD Sender: No OFD packet to send [09:12:49]OFD Sender: No OFD packet to send [09:12:54]OFD Sender: No OFD packet to send [09:12:59]OFD Sender: No OFD packet to send [09:13:04]OFD Sender: No OFD packet to send [09:13:09]OFD Sender: No OFD packet to send [09:13:14]OFD Sender: No OFD packet to send [09:13:19]OFD Sender: No OFD packet to send [09:13:24]OFD Sender: No OFD packet to send [09:13:29]OFD Sender: No OFD packet to send [09:13:34]OFD Sender: No OFD packet to send [09:13:39]OFD Sender: No OFD packet to send [09:13:44]OFD Sender: No OFD packet to send [09:13:49]OFD Sender: No OFD packet to send [09:13:54]OFD Sender: No OFD packet to send [09:13:59]OFD Sender: No OFD packet to send [09:14:04]OFD Sender: No OFD packet to send [09:14:09]OFD Sender: No OFD packet to send [09:14:14]OFD Sender: No OFD packet to send [09:14:19]OFD Sender: No OFD packet to send [09:14:24]OFD Sender: No OFD packet to send [09:14:29]OFD Sender: No OFD packet to send [09:14:34]OFD Sender: No OFD packet to send [09:14:39]OFD Sender: No OFD packet to send [09:14:44]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:23]accept exits with 8 [09:16:23]New connection [09:16:23]New thread 3067198820 created [09:16:23]Thread 3067055460 joined [09:16:23]Waiting for new connection... [09:16:23] Sock 8.Parse request [09:16:23]Sock 8.Check first char [09:16:23]Sock 8.First char is OK [09:16:23]request: POST /json_proto HTTP/1.0 [09:16:23]Method: POST [09:16:23]URL: /json_proto [09:16:23]Method is POST - this is cgi request [09:16:23]url: /json_proto [09:16:23]query_string will be loaded in cgi processing [09:16:23]execute_cgi json_proto POST (null) [09:16:23]execute_cgi path=json_proto method=POST [09:16:23]POST find Content-Length [09:16:23]Host: 172.17.42.131:8080 [09:16:23]Content-Length: 688 [09:16:23]Content-Type: application/json [09:16:23] [09:16:23]POST finish read [09:16:23]Found Content-Length = 688 [09:16:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:23]execute_script... [09:16: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)210182", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:16:23]POST & json_proto [09:16:23]process_json_proto [09:16:23]json parsed OK: [09:16:23]protocol is kg_v1.0 [09:16:23]action value=close_receipt [09:16:23]process_action close_receipt [09:16:23]cmd_close_receipt [09:16:23]MH_GetDate [09:16:23]Write to MH i2c: F0 00 00 15 33 37 [09:16:23]Write i2c OK [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: F0 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: F0 09 00 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: F0 09 00 15 33 00 6A 6D 17 67 A0 18 CA 66 7D [09:16:23]GetLastDocTimeStamp 1729588097 [09:16:23]current date 1729588586 [09:16:23]FM_GetShiftState [09:16:23]SAM_PROTO_GetShiftState [09:16:23]wFMCommunicate request_size=4 [09:16:23]MH_SAM_APDU [09:16:23]CAPDU: 80 13 01 00 [09:16:23]Write to MH i2c: E2 08 00 16 33 80 13 01 00 00 00 00 00 C6 [09:16:23]Write i2c OK [09:16:23]MH_I2C_Read... [09:16:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:23]Read from MH i2c: E2 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: E2 0E 00 [09:16:23]MH_I2C_Read... [09:16:23]Read from MH i2c: E2 0E 00 16 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [09:16:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:16:23]wFMCommunicate OK [09:16:23]SAM_PROTO_GetShiftState done [09:16:23]FM_GetShiftState done [09:16:23]opened in 1729556094 [09:16:23]opened+sec_in_day 1729642494 [09:16:23]quantity*price = 150076 [09:16:23]sum+1 = 150078 [09:16:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 159 22.10.2024 09:16 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188130 ФПД: 90638344692136 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091626&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188130&fm=90638344692136&tin=02508201610067®Number=0000000000100030&sum=150000 [09:16:25]StoreToDocumentArchive [09:16:25]shift 461 fd 188130 [09:16:25]save to /storage/0461/doc_00188130 [09:16:25]save last doc name /storage/0461/doc_00188130 to /storage/kkm_last_doc_name [09:16:25]save OK [09:16:25]Clear old archive folders... [09:16:25]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:16:25]tlvbuf is 01BAD6C0 [09:16:25]SAM_PROTO_ClearQueue [09:16:25]wFMCommunicate request_size=4 [09:16:25]MH_SAM_APDU [09:16:25]CAPDU: 80 09 00 00 [09:16:25]Write to MH i2c: E2 08 00 23 33 80 09 00 00 00 00 00 00 C8 [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 23 33 00 90 00 CA [09:16:25]RAPDU: 90 00 [09:16:25]wFMCommunicate OK [09:16:25]SAM_PROTO_ClearQueue done [09:16:25]KKMCreateOFDPacket [09:16:25]OFDProtocolAddRootSTLVToBuf [09:16:25]FM_MakeSignedData [09:16:25]FM_MakeSignedData [09:16:25]SAM_PROTO_SignData [09:16:25]wFMCommunicate request_size=4 [09:16:25]MH_SAM_APDU [09:16:25]CAPDU: 80 0D 01 02 [09:16:25]Write to MH i2c: E2 08 00 24 33 80 0D 01 02 00 00 00 00 D0 [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 24 33 00 90 00 CB [09:16:25]RAPDU: 90 00 [09:16:25]wFMCommunicate OK [09:16:25]wFMCommunicate request_size=255 [09:16:25]MH_SAM_APDU [09:16:25]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 9F 00 00 00 F4 03 04 00 6A 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DE 02 [09:16:25]Write to MH i2c: E2 02 01 25 33 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 9F 00 00 00 F4 03 04 00 6A 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DE 02 00 00 03 [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 25 33 00 90 00 CC [09:16:25]RAPDU: 90 00 [09:16:25]wFMCommunicate OK [09:16:25]wFMCommunicate request_size=16 [09:16:25]MH_SAM_APDU [09:16:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 52 6F 62 56 A1 A8 [09:16:25]Write to MH i2c: E2 13 00 26 33 80 0D 02 02 0B 00 00 35 04 06 00 52 6F 62 56 A1 A8 00 00 EA [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]OFD Sender: No OFD packet to send [09:16:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 03 00 26 33 00 90 00 CD [09:16:25]RAPDU: 90 00 [09:16:25]wFMCommunicate OK [09:16:25]wFMCommunicate request_size=4 [09:16:25]MH_SAM_APDU [09:16:25]CAPDU: 80 0D 03 02 [09:16:25]Write to MH i2c: E2 08 00 27 33 80 0D 03 02 00 00 00 00 D5 [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 0B 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 0B 00 27 33 00 35 AF DA 31 38 8A 7B B9 90 00 BB [09:16:25]RAPDU: 35 AF DA 31 38 8A 7B B9 90 00 [09:16:25]wFMCommunicate OK [09:16:25]SAM_PROTO_SignData done [09:16:25]FM_MakeSignedData done [09:16:25]CreateOFDProtocolMessage [09:16:25]wFMCommunicate request_size=4 [09:16:25]MH_SAM_APDU [09:16:25]CAPDU: 80 11 00 00 [09:16:25]Write to MH i2c: E2 08 00 28 33 80 11 00 00 00 00 00 00 D5 [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:25]Read from MH i2c: E2 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 17 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: E2 17 00 28 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [09:16:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:16:25]wFMCommunicate OK [09:16:25]CreateOFDProtocolMessage done [09:16:25]OFDSenderStorePacket 188130 [09:16:25]StoreOFDPacket docnum=188130 [09:16:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 09 60 0D 01 1E 0C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 9F 00 00 00 F4 03 04 00 6A 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DE 02 00 35 04 06 00 52 6F 62 56 A1 A8 35 AF DA 31 38 8A 7B B9 [09:16:25]CheckFolder [09:16:25]dirname=/storage/ofd_packets [09:16:25]CheckFolder done [09:16:25]ProducePacketName [09:16:25]name=ofd_packets/00188130 [09:16:25]NVStorageSaveData ofd_packets/00188130 [09:16:25]File name is /storage/ofd_packets/00188130 [09:16:25]Write 307 bytes [09:16:25]NVStorageSaveData done [09:16:25]OFDSenderStorePacket done [09:16:25]KKMCreateOFDPacket done [09:16:25]NVStorageSaveData kkm_last_timestamp [09:16:25]File name is /storage/kkm_last_timestamp [09:16:25]Write 4 bytes [09:16:25]NVStorageSaveData done [09:16:25]ExternCall_PrintAddStr [09:16:25]wPrintStart [09:16:25]Write to MH i2c: 01 00 00 29 33 5C [09:16:25]Write i2c OK [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: 01 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: 01 07 00 [09:16:25]MH_I2C_Read... [09:16:25]Read from MH i2c: 01 07 00 29 33 00 00 00 00 00 FF 0F 71 [09:16:25]RasterBufferAndPrint [09:16:25]line Счет N : (1)210182 [09:16:25]line ИНН: 02508201610067 [09:16:25]line Контрольно-Кассовый Чек [09:16:25]line ПРОДАЖА [09:16:25]line ТРК (МРК, ГНК) : 21 [09:16:25]line Товар: 2710194210 [09:16:25]line D-ENERGY ДТ-К-5 [09:16:25]line 19.440 * 77.20 [09:16:25]line = 1500.77 [09:16:25]line НДС 12% НСП 1% [09:16:25]line > о реализуемом товаре [09:16:25]line ОКРУГЛЕНИЕ: -0.77 [09:16:25]line ИТОГО: 1500.00 [09:16:25]line Внесено: 1500.00 [09:16:25]line СДАЧА: 0.00 [09:16:25]line НСП 1% : 13.28 [09:16:25]line НДС 12% : 159.37 [09:16:25]line Наличными: 1500.00 [09:16:25]line Безнал.: 0.00 [09:16:25]line Место: АЗС № 86 "Партнер Нефть" [09:16:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:16:25]line СНО: Общий режим [09:16:25]line Чек 159 22.10.2024 09:16 [09:16:25]line Смена: 461 ФФД: 1.0 [09:16:25]line ЗНМ: 0300000155 [09:16:25]line РНМ: 0000000000100030 [09:16:25]line Версия ККМ: 001 [09:16:25]line ФМ: 0000000000965340 [09:16:25]line ФД: 188130 [09:16:25]line ФПД: 90638344692136 [09:16:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091626&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188130&fm=90638344692136&tin=02508201610067®Number=0000000000100030&sum=150000 [09:16:25]written 0, free lines is 4095 [09:16:25]OFD Sender: Processing packet 188130 [packets to send 1062, broken 1061] [09:16:25]ProducePacketName [09:16:25]name=ofd_packets/00188130 [09:16:25]OFD Sender: To server: pG, [09:16:25]CommunicateWithHost lk.salyk.kg:30040 [09:16:25]ConnectInit lk.salyk.kg [09:16:25]Connected sock=10 [09:16:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 09 60 0D 01 1E 0C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 9F 00 00 00 F4 03 04 00 6A 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DE 02 00 35 04 06 00 52 6F 62 56 A1 A8 35 AF DA 31 38 8A 7B B9 [09:16:26]Write to MH i2c: 01 00 00 54 33 87 [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: 01 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: 01 07 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: 01 07 00 54 33 00 00 00 00 00 5E 0C F8 [09:16:26]RasterBufferAndPrint [09:16:26]line [09:16:26]line [09:16:26]line [09:16:26]line [09:16:26]line [09:16:26]written 0, free lines is 3169 [09:16:26]MH_Cut [09:16:26]Write to MH i2c: D1 01 00 5B 33 01 60 [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: D1 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: D1 01 00 [09:16:26]MH_I2C_Read... [09:16:26]Read from MH i2c: D1 01 00 5B 33 00 5F [09:16:26]Write to MH i2c: 01 00 00 5C 33 8F [09:16:26]Write i2c OK [09:16:26]MH_I2C_Read... [09:16:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 13 47 00 3B 7C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E2 DE 02 00 F4 03 04 00 58 17 17 67 B6 04 01 00 00 3B F7 18 E9 44 52 5A 7B [09:16:26]CommunicateWithHost err = 0 [09:16:26]CheckOFDResponse [09:16:26]1017 (14) - 77093643461234 [09:16:26]1041 (16) - 0000000000965340 [09:16:26]1040 (4) - 188130 [09:16:26]1012 (4) - 22.10.2024 03:09 [09:16:26]1206 (1) - 0 [09:16:26]OFD Sender: Remove packet 188130 [09:16:26]ProducePacketName [09:16:26]name=ofd_packets/00188130 [09:16:26]NVStorageDeleteData [09:16:26]OFD Sender: No OFD packet to send [09:16:27]*** Cut start [09:16:27]*** Partial cut [09:16:27]*** CUTSNS_PIN = 1 [09:16:27]*** CUTSNS_PIN = 0 [09:16:27]*** Brake cut motor [09:16:28]Read from MH i2c: 01 [09:16:28]MH_I2C_Read... [09:16:28]*** Stop cut motor [09:16:28]*** Cut end [09:16:28]Read from MH i2c: 01 07 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: 01 07 00 5C 33 00 00 00 00 00 FF 0F A4 [09:16:28]process_action close_receipt done [09:16:28]requested_data is exist [09:16:28]produce_requested_data [09:16:28]requested_item fm.sn is exist - process it [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 11 00 00 [09:16:28]Write to MH i2c: E2 08 00 5D 33 80 11 00 00 00 00 00 00 0A [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:16:28]Read from MH i2c: E2 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 17 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 17 00 5D 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [09:16:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:16:28]wFMCommunicate OK [09:16:28]requested_item fd.num is exist - process it [09:16:28]SAM_PROTO_GetFieldsCounters [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 13 00 00 [09:16:28]Write to MH i2c: E2 08 00 5E 33 80 13 00 00 00 00 00 00 0D [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:16:28]Read from MH i2c: E2 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 62 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 62 00 5E 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 81 [09:16:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E2 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 9F 00 00 00 5E 04 04 00 9F 00 00 00 57 04 04 00 A0 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:16:28]wFMCommunicate OK [09:16:28]SAM_PROTO_GetFieldsCounters done [09:16:28]requested_item shift.num is exist - process it [09:16:28]requested_item shift.opened is exist - process it [09:16:28]req_shift_opened [09:16:28]FM_GetShiftState [09:16:28]SAM_PROTO_GetShiftState [09:16:28]wFMCommunicate request_size=4 [09:16:28]MH_SAM_APDU [09:16:28]CAPDU: 80 13 01 00 [09:16:28]Write to MH i2c: E2 08 00 5F 33 80 13 01 00 00 00 00 00 0F [09:16:28]Write i2c OK [09:16:28]MH_I2C_Read... [09:16:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:16:28]Read from MH i2c: E2 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 0E 00 [09:16:28]MH_I2C_Read... [09:16:28]Read from MH i2c: E2 0E 00 5F 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 04 [09:16:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:16:28]wFMCommunicate OK [09:16:28]SAM_PROTO_GetShiftState done [09:16:28]FM_GetShiftState done [09:16:28]req_shift_opened done [09:16:28]requested_item shift.open_date is exist - process it [09:16:28]req_shift_open_date [09:16:28]req_shift_open_date done [09:16:28]produce_requested_data done [09:16:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188130,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:16:28]process_action_free close_receipt [09:16:28]json_value_free [09:16:28]json_value_free done [09:16:28]process_json_proto returns [09:16:28]Send response to host [09:16:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188130,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:16:28]free response buf [09:16:28]execute_script done [09:16:28]execute_script returns [09:16:28]free content buf [09:16:28]Sock 8.Close socket [09:16:28]Sock 8.Thread stoped [09:16:31]OFD Sender: No OFD packet to send [09:16:36]OFD Sender: No OFD packet to send [09:16:41]OFD Sender: No OFD packet to send [09:16:46]OFD Sender: No OFD packet to send [09:16:51]OFD Sender: No OFD packet to send [09:16:56]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: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:36]accept exits with 9 [09:18:36]New connection [09:18:36]New thread 3067055460 created [09:18:36]Thread 3067198820 joined [09:18:36]Waiting for new connection... [09:18:36] Sock 9.Parse request [09:18:36]Sock 9.Check first char [09:18:36]Sock 9.First char is OK [09:18:36]request: POST /json_proto HTTP/1.0 [09:18:36]Method: POST [09:18:36]URL: /json_proto [09:18:36]Method is POST - this is cgi request [09:18:36]url: /json_proto [09:18:36]query_string will be loaded in cgi processing [09:18:36]execute_cgi json_proto POST (null) [09:18:36]execute_cgi path=json_proto method=POST [09:18:36]POST find Content-Length [09:18:36]Host: 172.17.42.131:8080 [09:18:36]Content-Length: 677 [09:18:36]Content-Type: application/json [09:18:36] [09:18:36]POST finish read [09:18:36]Found Content-Length = 677 [09:18:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:36]execute_script... [09:18: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)210183", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:18:36]POST & json_proto [09:18:36]process_json_proto [09:18:36]json parsed OK: [09:18:36]protocol is kg_v1.0 [09:18:36]action value=close_receipt [09:18:36]process_action close_receipt [09:18:36]cmd_close_receipt [09:18:36]MH_GetDate [09:18:36]Write to MH i2c: F0 00 00 60 33 82 [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: F0 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: F0 09 00 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: F0 09 00 60 33 00 EF 6D 17 67 A0 18 CA 66 4D [09:18:36]GetLastDocTimeStamp 1729588586 [09:18:36]current date 1729588719 [09:18:36]FM_GetShiftState [09:18:36]SAM_PROTO_GetShiftState [09:18:36]wFMCommunicate request_size=4 [09:18:36]MH_SAM_APDU [09:18:36]CAPDU: 80 13 01 00 [09:18:36]Write to MH i2c: E2 08 00 61 33 80 13 01 00 00 00 00 00 11 [09:18:36]Write i2c OK [09:18:36]MH_I2C_Read... [09:18:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:36]Read from MH i2c: E2 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: E2 0E 00 [09:18:36]MH_I2C_Read... [09:18:36]Read from MH i2c: E2 0E 00 61 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 06 [09:18:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:18:36]wFMCommunicate OK [09:18:36]SAM_PROTO_GetShiftState done [09:18:36]FM_GetShiftState done [09:18:36]opened in 1729556094 [09:18:36]opened+sec_in_day 1729642494 [09:18:36]quantity*price = 50041 [09:18:36]sum+1 = 50042 [09:18:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 160 22.10.2024 09:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188131 ФПД: 204261261000514 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091839&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188131&fm=204261261000514&tin=02508201610067®Number=0000000000100030&sum=50000 [09:18:37]StoreToDocumentArchive [09:18:37]shift 461 fd 188131 [09:18:37]save to /storage/0461/doc_00188131 [09:18:37]save last doc name /storage/0461/doc_00188131 to /storage/kkm_last_doc_name [09:18:37]save OK [09:18:37]Clear old archive folders... [09:18:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:18:37]tlvbuf is 01BB42C0 [09:18:37]SAM_PROTO_ClearQueue [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 09 00 00 [09:18:37]Write to MH i2c: E2 08 00 6E 33 80 09 00 00 00 00 00 00 13 [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 6E 33 00 90 00 15 [09:18:37]RAPDU: 90 00 [09:18:37]wFMCommunicate OK [09:18:37]SAM_PROTO_ClearQueue done [09:18:37]KKMCreateOFDPacket [09:18:37]OFDProtocolAddRootSTLVToBuf [09:18:37]FM_MakeSignedData [09:18:37]FM_MakeSignedData [09:18:37]SAM_PROTO_SignData [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 0D 01 02 [09:18:37]Write to MH i2c: E2 08 00 6F 33 80 0D 01 02 00 00 00 00 1B [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 6F 33 00 90 00 16 [09:18:37]RAPDU: 90 00 [09:18:37]wFMCommunicate OK [09:18:37]wFMCommunicate request_size=255 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EF 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DE 02 00 35 04 06 00 B9 [09:18:37]Write to MH i2c: E2 02 01 70 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EF 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DE 02 00 35 04 06 00 B9 00 00 52 [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 70 33 00 90 00 17 [09:18:37]RAPDU: 90 00 [09:18:37]wFMCommunicate OK [09:18:37]wFMCommunicate request_size=10 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 0D 02 02 05 C6 47 E7 3F 42 [09:18:37]Write to MH i2c: E2 0D 00 71 33 80 0D 02 02 05 00 C6 47 E7 3F 42 00 00 9D [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:18:37]Read from MH i2c: E2 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 [09:18:37]MH_I2C_Read... [09:18:37]Read from MH i2c: E2 03 00 71 33 00 90 00 18 [09:18:37]RAPDU: 90 00 [09:18:37]wFMCommunicate OK [09:18:37]wFMCommunicate request_size=4 [09:18:37]MH_SAM_APDU [09:18:37]CAPDU: 80 0D 03 02 [09:18:37]Write to MH i2c: E2 08 00 72 33 80 0D 03 02 00 00 00 00 20 [09:18:37]Write i2c OK [09:18:37]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 0B 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 0B 00 72 33 00 74 95 34 DF CE EB A2 BB 90 00 53 [09:18:38]RAPDU: 74 95 34 DF CE EB A2 BB 90 00 [09:18:38]wFMCommunicate OK [09:18:38]SAM_PROTO_SignData done [09:18:38]FM_MakeSignedData done [09:18:38]CreateOFDProtocolMessage [09:18:38]wFMCommunicate request_size=4 [09:18:38]MH_SAM_APDU [09:18:38]CAPDU: 80 11 00 00 [09:18:38]Write to MH i2c: E2 08 00 73 33 80 11 00 00 00 00 00 00 20 [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:38]Read from MH i2c: E2 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 17 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: E2 17 00 73 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [09:18:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:18:38]wFMCommunicate OK [09:18:38]CreateOFDProtocolMessage done [09:18:38]OFDSenderStorePacket 188131 [09:18:38]StoreOFDPacket docnum=188131 [09:18:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A AF 07 01 E1 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EF 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DE 02 00 35 04 06 00 B9 C6 47 E7 3F 42 74 95 34 DF CE EB A2 BB [09:18:38]CheckFolder [09:18:38]dirname=/storage/ofd_packets [09:18:38]CheckFolder done [09:18:38]ProducePacketName [09:18:38]name=ofd_packets/00188131 [09:18:38]NVStorageSaveData ofd_packets/00188131 [09:18:38]File name is /storage/ofd_packets/00188131 [09:18:38]Write 301 bytes [09:18:38]NVStorageSaveData done [09:18:38]OFDSenderStorePacket done [09:18:38]KKMCreateOFDPacket done [09:18:38]NVStorageSaveData kkm_last_timestamp [09:18:38]File name is /storage/kkm_last_timestamp [09:18:38]Write 4 bytes [09:18:38]NVStorageSaveData done [09:18:38]ExternCall_PrintAddStr [09:18:38]wPrintStart [09:18:38]Write to MH i2c: 01 00 00 74 33 A7 [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: 01 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: 01 07 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: 01 07 00 74 33 00 00 00 00 00 FF 0F BC [09:18:38]RasterBufferAndPrint [09:18:38]line Счет N : (1)210183 [09:18:38]line ИНН: 02508201610067 [09:18:38]line Контрольно-Кассовый Чек [09:18:38]line ПРОДАЖА [09:18:38]line ТРК (МРК, ГНК) : 12 [09:18:38]line Товар: 2710124130 [09:18:38]line Аи-92-К-3 [09:18:38]line 7.480 * 66.90 [09:18:38]line = 500.41 [09:18:38]line НДС 12% НСП 1% [09:18:38]line > о реализуемом товаре [09:18:38]line ОКРУГЛЕНИЕ: -0.41 [09:18:38]line ИТОГО: 500.00 [09:18:38]line Внесено: 500.00 [09:18:38]line СДАЧА: 0.00 [09:18:38]line НСП 1% : 4.43 [09:18:38]line НДС 12% : 53.14 [09:18:38]line Наличными: 500.00 [09:18:38]line Безнал.: 0.00 [09:18:38]line Место: АЗС № 86 "Партнер Нефть" [09:18:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:18:38]line СНО: Общий режим [09:18:38]line Чек 160 22.10.2024 09:18 [09:18:38]line Смена: 461 ФФД: 1.0 [09:18:38]line ЗНМ: 0300000155 [09:18:38]line РНМ: 0000000000100030 [09:18:38]line Версия ККМ: 001 [09:18:38]line ФМ: 0000000000965340 [09:18:38]line ФД: 188131 [09:18:38]line ФПД: 204261261000514 [09:18:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T091839&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188131&fm=204261261000514&tin=02508201610067®Number=0000000000100030&sum=50000 [09:18:38]written 0, free lines is 4095 [09:18:38]OFD Sender: Processing packet 188131 [packets to send 1062, broken 1061] [09:18:38]ProducePacketName [09:18:38]name=ofd_packets/00188131 [09:18:38]OFD Sender: To server: pG, [09:18:38]CommunicateWithHost lk.salyk.kg:30040 [09:18:38]ConnectInit lk.salyk.kg [09:18:38]Connected sock=10 [09:18:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A AF 07 01 E1 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 EF 6D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DE 02 00 35 04 06 00 B9 C6 47 E7 3F 42 74 95 34 DF CE EB A2 BB [09:18:38]Write to MH i2c: 01 00 00 9F 33 D2 [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: 01 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: 01 07 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: 01 07 00 9F 33 00 00 00 00 00 5A 0C 3F [09:18:38]RasterBufferAndPrint [09:18:38]line [09:18:38]line [09:18:38]line [09:18:38]line [09:18:38]line [09:18:38]written 0, free lines is 3165 [09:18:38]MH_Cut [09:18:38]Write to MH i2c: D1 01 00 A6 33 01 AB [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: D1 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: D1 01 00 [09:18:38]MH_I2C_Read... [09:18:38]Read from MH i2c: D1 01 00 A6 33 00 AA [09:18:38]Write to MH i2c: 01 00 00 A7 33 DA [09:18:38]Write i2c OK [09:18:38]MH_I2C_Read... [09:18:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E6 44 47 00 4B 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E3 DE 02 00 F4 03 04 00 DC 17 17 67 B6 04 01 00 00 80 ED 99 F4 18 92 EA A6 [09:18:38]CommunicateWithHost err = 0 [09:18:38]CheckOFDResponse [09:18:38]1017 (14) - 77093643461234 [09:18:38]1041 (16) - 0000000000965340 [09:18:38]1040 (4) - 188131 [09:18:38]1012 (4) - 22.10.2024 03:11 [09:18:38]1206 (1) - 0 [09:18:38]OFD Sender: Remove packet 188131 [09:18:38]ProducePacketName [09:18:38]name=ofd_packets/00188131 [09:18:38]NVStorageDeleteData [09:18:39]OFD Sender: No OFD packet to send [09:18:39]*** Cut start [09:18:39]*** Partial cut [09:18:39]*** CUTSNS_PIN = 1 [09:18:39]*** CUTSNS_PIN = 0 [09:18:40]*** Brake cut motor [09:18:40]Read from MH i2c: 01 [09:18:40]MH_I2C_Read... [09:18:40]*** Stop cut motor [09:18:40]*** Cut end [09:18:40]Read from MH i2c: 01 07 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: 01 07 00 A7 33 00 00 00 00 00 FF 0F EF [09:18:40]process_action close_receipt done [09:18:40]requested_data is exist [09:18:40]produce_requested_data [09:18:40]requested_item fm.sn is exist - process it [09:18:40]wFMCommunicate request_size=4 [09:18:40]MH_SAM_APDU [09:18:40]CAPDU: 80 11 00 00 [09:18:40]Write to MH i2c: E2 08 00 A8 33 80 11 00 00 00 00 00 00 55 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 17 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 17 00 A8 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [09:18:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:18:40]wFMCommunicate OK [09:18:40]requested_item fd.num is exist - process it [09:18:40]SAM_PROTO_GetFieldsCounters [09:18:40]wFMCommunicate request_size=4 [09:18:40]MH_SAM_APDU [09:18:40]CAPDU: 80 13 00 00 [09:18:40]Write to MH i2c: E2 08 00 A9 33 80 13 00 00 00 00 00 00 58 [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 62 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 62 00 A9 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [09:18:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E3 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A0 00 00 00 5E 04 04 00 A0 00 00 00 57 04 04 00 A1 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:18:40]wFMCommunicate OK [09:18:40]SAM_PROTO_GetFieldsCounters done [09:18:40]requested_item shift.num is exist - process it [09:18:40]requested_item shift.opened is exist - process it [09:18:40]req_shift_opened [09:18:40]FM_GetShiftState [09:18:40]SAM_PROTO_GetShiftState [09:18:40]wFMCommunicate request_size=4 [09:18:40]MH_SAM_APDU [09:18:40]CAPDU: 80 13 01 00 [09:18:40]Write to MH i2c: E2 08 00 AA 33 80 13 01 00 00 00 00 00 5A [09:18:40]Write i2c OK [09:18:40]MH_I2C_Read... [09:18:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:18:40]Read from MH i2c: E2 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 0E 00 [09:18:40]MH_I2C_Read... [09:18:40]Read from MH i2c: E2 0E 00 AA 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4F [09:18:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:18:40]wFMCommunicate OK [09:18:40]SAM_PROTO_GetShiftState done [09:18:40]FM_GetShiftState done [09:18:40]req_shift_opened done [09:18:40]requested_item shift.open_date is exist - process it [09:18:40]req_shift_open_date [09:18:40]req_shift_open_date done [09:18:40]produce_requested_data done [09:18:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188131,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:18:40]process_action_free close_receipt [09:18:40]json_value_free [09:18:40]json_value_free done [09:18:40]process_json_proto returns [09:18:40]Send response to host [09:18:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188131,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:18:40]free response buf [09:18:40]execute_script done [09:18:40]execute_script returns [09:18:40]free content buf [09:18:40]Sock 9.Close socket [09:18:40]Sock 9.Thread stoped [09:18:44]OFD Sender: No OFD packet to send [09:18:49]OFD Sender: No OFD packet to send [09:18:54]OFD Sender: No OFD packet to send [09:18:59]OFD Sender: No OFD packet to send [09:19:04]OFD Sender: No OFD packet to send [09:19:09]OFD Sender: No OFD packet to send [09:19:14]OFD Sender: No OFD packet to send [09:19:19]OFD Sender: No OFD packet to send [09:19:24]OFD Sender: No OFD packet to send [09:19:29]OFD Sender: No OFD packet to send [09:19:34]OFD Sender: No OFD packet to send [09:19:39]OFD Sender: No OFD packet to send [09:19:44]OFD Sender: No OFD packet to send [09:19:49]OFD Sender: No OFD packet to send [09:19:54]OFD Sender: No OFD packet to send [09:19:59]OFD Sender: No OFD packet to send [09:20:04]OFD Sender: No OFD packet to send [09:20:09]OFD Sender: No OFD packet to send [09:20:14]OFD Sender: No OFD packet to send [09:20:19]OFD Sender: No OFD packet to send [09:20:24]OFD Sender: No OFD packet to send [09:20:29]OFD Sender: No OFD packet to send [09:20:34]OFD Sender: No OFD packet to send [09:20:39]OFD Sender: No OFD packet to send [09:20:44]OFD Sender: No OFD packet to send [09:20:49]OFD Sender: No OFD packet to send [09:20:54]OFD Sender: No OFD packet to send [09:20:59]OFD Sender: No OFD packet to send [09:21:04]OFD Sender: No OFD packet to send [09:21:05]accept exits with 8 [09:21:05]New connection [09:21:05]New thread 3067198820 created [09:21:05]Thread 3067055460 joined [09:21:05]Waiting for new connection... [09:21:05] Sock 8.Parse request [09:21:05]Sock 8.Check first char [09:21:05]Sock 8.First char is OK [09:21:05]request: POST /json_proto HTTP/1.0 [09:21:05]Method: POST [09:21:05]URL: /json_proto [09:21:05]Method is POST - this is cgi request [09:21:05]url: /json_proto [09:21:05]query_string will be loaded in cgi processing [09:21:05]execute_cgi json_proto POST (null) [09:21:05]execute_cgi path=json_proto method=POST [09:21:05]POST find Content-Length [09:21:05]Host: 172.17.42.131:8080 [09:21:05]Content-Length: 754 [09:21:05]Content-Type: application/json [09:21:05] [09:21:05]POST finish read [09:21:05]Found Content-Length = 754 [09:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053260", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:05]execute_script... [09:21: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)210184", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 25.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053260", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:21:05]POST & json_proto [09:21:05]process_json_proto [09:21:05]json parsed OK: [09:21:05]protocol is kg_v1.0 [09:21:05]action value=close_receipt [09:21:05]process_action close_receipt [09:21:05]cmd_close_receipt [09:21:05]MH_GetDate [09:21:05]Write to MH i2c: F0 00 00 AB 33 CD [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: F0 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: F0 09 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: F0 09 00 AB 33 00 84 6E 17 67 A0 18 CA 66 2E [09:21:05]GetLastDocTimeStamp 1729588719 [09:21:05]current date 1729588868 [09:21:05]FM_GetShiftState [09:21:05]SAM_PROTO_GetShiftState [09:21:05]wFMCommunicate request_size=4 [09:21:05]MH_SAM_APDU [09:21:05]CAPDU: 80 13 01 00 [09:21:05]Write to MH i2c: E2 08 00 AC 33 80 13 01 00 00 00 00 00 5C [09:21:05]Write i2c OK [09:21:05]MH_I2C_Read... [09:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:05]Read from MH i2c: E2 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 0E 00 [09:21:05]MH_I2C_Read... [09:21:05]Read from MH i2c: E2 0E 00 AC 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [09:21:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:21:05]wFMCommunicate OK [09:21:05]SAM_PROTO_GetShiftState done [09:21:05]FM_GetShiftState done [09:21:05]opened in 1729556094 [09:21:05]opened+sec_in_day 1729642494 [09:21:05]quantity*price = 0 [09:21:05]sum+1 = 1 [09:21:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 161 22.10.2024 09:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053260 ФМ: 0000000000965340 ФД: 188132 ФПД: 236202488243878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188132&fm=236202488243878&tin=02508201610067®Number=0000000000100030&sum=0 [09:21:07]StoreToDocumentArchive [09:21:07]shift 461 fd 188132 [09:21:07]save to /storage/0461/doc_00188132 [09:21:07]save last doc name /storage/0461/doc_00188132 to /storage/kkm_last_doc_name [09:21:07]save OK [09:21:07]Clear old archive folders... [09:21:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:21:07]tlvbuf is 01BB3E20 [09:21:07]SAM_PROTO_ClearQueue [09:21:07]wFMCommunicate request_size=4 [09:21:07]MH_SAM_APDU [09:21:07]CAPDU: 80 09 00 00 [09:21:07]Write to MH i2c: E2 08 00 B9 33 80 09 00 00 00 00 00 00 5E [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 B9 33 00 90 00 60 [09:21:07]RAPDU: 90 00 [09:21:07]wFMCommunicate OK [09:21:07]SAM_PROTO_ClearQueue done [09:21:07]KKMCreateOFDPacket [09:21:07]OFDProtocolAddRootSTLVToBuf [09:21:07]FM_MakeSignedData [09:21:07]FM_MakeSignedData [09:21:07]SAM_PROTO_SignData [09:21:07]wFMCommunicate request_size=4 [09:21:07]MH_SAM_APDU [09:21:07]CAPDU: 80 0D 01 02 [09:21:07]Write to MH i2c: E2 08 00 BA 33 80 0D 01 02 00 00 00 00 66 [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 BA 33 00 90 00 61 [09:21:07]RAPDU: 90 00 [09:21:07]wFMCommunicate OK [09:21:07]wFMCommunicate request_size=255 [09:21:07]MH_SAM_APDU [09:21: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 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 84 6E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DE 02 00 35 04 06 00 D6 [09:21:07]Write to MH i2c: E2 02 01 BB 33 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 84 6E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DE 02 00 35 04 06 00 D6 00 00 D6 [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 BB 33 00 90 00 62 [09:21:07]RAPDU: 90 00 [09:21:07]wFMCommunicate OK [09:21:07]wFMCommunicate request_size=10 [09:21:07]MH_SAM_APDU [09:21:07]CAPDU: 80 0D 02 02 05 D3 2D 68 26 A6 [09:21:07]Write to MH i2c: E2 0D 00 BC 33 80 0D 02 02 05 00 D3 2D 68 26 A6 00 00 A7 [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 03 00 BC 33 00 90 00 63 [09:21:07]RAPDU: 90 00 [09:21:07]wFMCommunicate OK [09:21:07]wFMCommunicate request_size=4 [09:21:07]MH_SAM_APDU [09:21:07]CAPDU: 80 0D 03 02 [09:21:07]Write to MH i2c: E2 08 00 BD 33 80 0D 03 02 00 00 00 00 6B [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 0B 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 0B 00 BD 33 00 A8 BA EA F9 A0 B8 60 43 90 00 AC [09:21:07]RAPDU: A8 BA EA F9 A0 B8 60 43 90 00 [09:21:07]wFMCommunicate OK [09:21:07]SAM_PROTO_SignData done [09:21:07]FM_MakeSignedData done [09:21:07]CreateOFDProtocolMessage [09:21:07]wFMCommunicate request_size=4 [09:21:07]MH_SAM_APDU [09:21:07]CAPDU: 80 11 00 00 [09:21:07]Write to MH i2c: E2 08 00 BE 33 80 11 00 00 00 00 00 00 6B [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:07]Read from MH i2c: E2 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 17 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: E2 17 00 BE 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [09:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:21:07]wFMCommunicate OK [09:21:07]CreateOFDProtocolMessage done [09:21:07]OFDSenderStorePacket 188132 [09:21:07]StoreOFDPacket docnum=188132 [09:21:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 F7 07 01 DB 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 84 6E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DE 02 00 35 04 06 00 D6 D3 2D 68 26 A6 A8 BA EA F9 A0 B8 60 43 [09:21:07]CheckFolder [09:21:07]dirname=/storage/ofd_packets [09:21:07]CheckFolder done [09:21:07]ProducePacketName [09:21:07]name=ofd_packets/00188132 [09:21:07]NVStorageSaveData ofd_packets/00188132 [09:21:07]File name is /storage/ofd_packets/00188132 [09:21:07]Write 301 bytes [09:21:07]NVStorageSaveData done [09:21:07]OFDSenderStorePacket done [09:21:07]KKMCreateOFDPacket done [09:21:07]NVStorageSaveData kkm_last_timestamp [09:21:07]File name is /storage/kkm_last_timestamp [09:21:07]Write 4 bytes [09:21:07]NVStorageSaveData done [09:21:07]ExternCall_PrintAddStr [09:21:07]wPrintStart [09:21:07]Write to MH i2c: 01 00 00 BF 33 F2 [09:21:07]Write i2c OK [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: 01 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: 01 07 00 [09:21:07]MH_I2C_Read... [09:21:07]Read from MH i2c: 01 07 00 BF 33 00 00 00 00 00 FF 0F 07 [09:21:07]RasterBufferAndPrint [09:21:07]line Счет N : (1)210184 [09:21:07]line ИНН: 02508201610067 [09:21:07]line Контрольно-Кассовый Чек [09:21:07]line ПРОДАЖА [09:21:07]line ТРК (МРК, ГНК) : 22 [09:21:07]line Товар: 2710124130 [09:21:07]line Аи-92-К-3 [09:21:07]line 25.000 * 0.00 [09:21:07]line = 0.00 [09:21:07]line НДС 12% НСП 1% [09:21:07]line > о реализуемом товаре [09:21:07]line ИТОГО: 0.00 [09:21:07]line НСП 1% : 0.00 [09:21:07]line НДС 12% : 0.00 [09:21:07]line Наличными: 0.00 [09:21:07]line Безнал.: 0.00 [09:21:07]line Место: АЗС № 86 "Партнер Нефть" [09:21:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:21:07]line СНО: Общий режим [09:21:07]line Чек 161 22.10.2024 09:21 [09:21:07]line Смена: 461 ФФД: 1.0 [09:21:07]line ЗНМ: 0300000155 [09:21:07]line РНМ: 0000000000100030 [09:21:07]line Версия ККМ: 001 [09:21:07]line Талоны: ТК ГПНА Online [09:21:07]line 30053260 [09:21:07]line ФМ: 0000000000965340 [09:21:07]line ФД: 188132 [09:21:07]line ФПД: 236202488243878 [09:21:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092108&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188132&fm=236202488243878&tin=02508201610067®Number=0000000000100030&sum=0 [09:21:07]written 0, free lines is 4095 [09:21:07]OFD Sender: Processing packet 188132 [packets to send 1062, broken 1061] [09:21:07]ProducePacketName [09:21:07]name=ofd_packets/00188132 [09:21:07]OFD Sender: To server: pG, [09:21:07]CommunicateWithHost lk.salyk.kg:30040 [09:21:07]ConnectInit lk.salyk.kg [09:21:08]Write to MH i2c: 01 00 00 E9 33 1C [09:21:08]Write i2c OK [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: 01 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: 01 07 00 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: 01 07 00 E9 33 00 00 00 00 00 6A 0C 99 [09:21:08]RasterBufferAndPrint [09:21:08]line [09:21:08]line [09:21:08]line [09:21:08]line [09:21:08]line [09:21:08]Connected sock=10 [09:21:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 F7 07 01 DB 3A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A8 61 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 84 6E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DE 02 00 35 04 06 00 D6 D3 2D 68 26 A6 A8 BA EA F9 A0 B8 60 43 [09:21:08]written 0, free lines is 3182 [09:21:08]MH_Cut [09:21:08]Write to MH i2c: D1 01 00 F0 33 01 F5 [09:21:08]Write i2c OK [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: D1 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: D1 01 00 [09:21:08]MH_I2C_Read... [09:21:08]Read from MH i2c: D1 01 00 F0 33 00 F4 [09:21:08]Write to MH i2c: 01 00 00 F1 33 24 [09:21:08]Write i2c OK [09:21:08]MH_I2C_Read... [09:21:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 77 47 00 30 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E4 DE 02 00 F4 03 04 00 72 18 17 67 B6 04 01 00 00 A0 B5 9B 54 0D 78 75 61 [09:21:08]CommunicateWithHost err = 0 [09:21:08]CheckOFDResponse [09:21:08]1017 (14) - 77093643461234 [09:21:08]1041 (16) - 0000000000965340 [09:21:08]1040 (4) - 188132 [09:21:08]1012 (4) - 22.10.2024 03:13 [09:21:08]1206 (1) - 0 [09:21:08]OFD Sender: Remove packet 188132 [09:21:08]ProducePacketName [09:21:08]name=ofd_packets/00188132 [09:21:08]NVStorageDeleteData [09:21:08]OFD Sender: No OFD packet to send [09:21:09]*** Cut start [09:21:09]*** Partial cut [09:21:09]*** CUTSNS_PIN = 1 [09:21:09]*** CUTSNS_PIN = 0 [09:21:09]*** Brake cut motor [09:21:09]Read from MH i2c: 01 [09:21:09]MH_I2C_Read... [09:21:09]*** Stop cut motor [09:21:09]*** Cut end [09:21:09]Read from MH i2c: 01 07 00 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: 01 07 00 F1 33 00 00 00 00 00 FF 0F 39 [09:21:09]process_action close_receipt done [09:21:09]requested_data is exist [09:21:09]produce_requested_data [09:21:09]requested_item fm.sn is exist - process it [09:21:09]wFMCommunicate request_size=4 [09:21:09]MH_SAM_APDU [09:21:09]CAPDU: 80 11 00 00 [09:21:09]Write to MH i2c: E2 08 00 F2 33 80 11 00 00 00 00 00 00 9F [09:21:09]Write i2c OK [09:21:09]MH_I2C_Read... [09:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:21:09]Read from MH i2c: E2 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: E2 17 00 [09:21:09]MH_I2C_Read... [09:21:09]Read from MH i2c: E2 17 00 F2 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [09:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:21:09]wFMCommunicate OK [09:21:09]requested_item fd.num is exist - process it [09:21:09]SAM_PROTO_GetFieldsCounters [09:21:09]wFMCommunicate request_size=4 [09:21:09]MH_SAM_APDU [09:21:09]CAPDU: 80 13 00 00 [09:21:09]Write to MH i2c: E2 08 00 F3 33 80 13 00 00 00 00 00 00 A2 [09:21:09]Write i2c OK [09:21:09]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 62 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 62 00 F3 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 1E [09:21:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E4 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A1 00 00 00 5E 04 04 00 A1 00 00 00 57 04 04 00 A2 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:21:10]wFMCommunicate OK [09:21:10]SAM_PROTO_GetFieldsCounters done [09:21:10]requested_item shift.num is exist - process it [09:21:10]requested_item shift.opened is exist - process it [09:21:10]req_shift_opened [09:21:10]FM_GetShiftState [09:21:10]SAM_PROTO_GetShiftState [09:21:10]wFMCommunicate request_size=4 [09:21:10]MH_SAM_APDU [09:21:10]CAPDU: 80 13 01 00 [09:21:10]Write to MH i2c: E2 08 00 F4 33 80 13 01 00 00 00 00 00 A4 [09:21:10]Write i2c OK [09:21:10]MH_I2C_Read... [09:21:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:21:10]Read from MH i2c: E2 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0E 00 [09:21:10]MH_I2C_Read... [09:21:10]Read from MH i2c: E2 0E 00 F4 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 99 [09:21:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:21:10]wFMCommunicate OK [09:21:10]SAM_PROTO_GetShiftState done [09:21:10]FM_GetShiftState done [09:21:10]req_shift_opened done [09:21:10]requested_item shift.open_date is exist - process it [09:21:10]req_shift_open_date [09:21:10]req_shift_open_date done [09:21:10]produce_requested_data done [09:21:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188132,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:21:10]process_action_free close_receipt [09:21:10]json_value_free [09:21:10]json_value_free done [09:21:10]process_json_proto returns [09:21:10]Send response to host [09:21:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188132,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:21:10]free response buf [09:21:10]execute_script done [09:21:10]execute_script returns [09:21:10]free content buf [09:21:10]Sock 8.Close socket [09:21:10]Sock 8.Thread stoped [09:21:13]OFD Sender: No OFD packet to send [09:21:18]OFD Sender: No OFD packet to send [09:21:24]OFD Sender: No OFD packet to send [09:21:29]OFD Sender: No OFD packet to send [09:21:34]OFD Sender: No OFD packet to send [09:21:39]OFD Sender: No OFD packet to send [09:21:44]OFD Sender: No OFD packet to send [09:21:49]OFD Sender: No OFD packet to send [09:21:54]OFD Sender: No OFD packet to send [09:21:59]OFD Sender: No OFD packet to send [09:22:04]OFD Sender: No OFD packet to send [09:22:09]OFD Sender: No OFD packet to send [09:22:14]OFD Sender: No OFD packet to send [09:22:19]OFD Sender: No OFD packet to send [09:22:24]OFD Sender: No OFD packet to send [09:22:29]OFD Sender: No OFD packet to send [09:22:34]OFD Sender: No OFD packet to send [09:22:39]OFD Sender: No OFD packet to send [09:22:44]OFD Sender: No OFD packet to send [09:22:49]OFD Sender: No OFD packet to send [09:22:54]OFD Sender: No OFD packet to send [09:22:59]OFD Sender: No OFD packet to send [09:23:04]OFD Sender: No OFD packet to send [09:23:09]OFD Sender: No OFD packet to send [09:23:14]OFD Sender: No OFD packet to send [09:23:19]OFD Sender: No OFD packet to send [09:23:24]OFD Sender: No OFD packet to send [09:23:29]OFD Sender: No OFD packet to send [09:23:34]OFD Sender: No OFD packet to send [09:23:39]OFD Sender: No OFD packet to send [09:23:44]OFD Sender: No OFD packet to send [09:23:49]OFD Sender: No OFD packet to send [09:23:54]OFD Sender: No OFD packet to send [09:23:59]OFD Sender: No OFD packet to send [09:24:04]OFD Sender: No OFD packet to send [09:24:09]OFD Sender: No OFD packet to send [09:24:14]OFD Sender: No OFD packet to send [09:24:19]OFD Sender: No OFD packet to send [09:24:24]OFD Sender: No OFD packet to send [09:24:29]OFD Sender: No OFD packet to send [09:24:34]OFD Sender: No OFD packet to send [09:24:35]accept exits with 9 [09:24:35]New connection [09:24:35]New thread 3067055460 created [09:24:35]Thread 3067198820 joined [09:24:35]Waiting for new connection... [09:24:35] Sock 9.Parse request [09:24:35]Sock 9.Check first char [09:24:35]Sock 9.First char is OK [09:24:35]request: POST /json_proto HTTP/1.0 [09:24:35]Method: POST [09:24:35]URL: /json_proto [09:24:35]Method is POST - this is cgi request [09:24:35]url: /json_proto [09:24:35]query_string will be loaded in cgi processing [09:24:35]execute_cgi json_proto POST (null) [09:24:35]execute_cgi path=json_proto method=POST [09:24:35]POST find Content-Length [09:24:35]Host: 172.17.42.131:8080 [09:24:35]Content-Length: 682 [09:24:35]Content-Type: application/json [09:24:35] [09:24:35]POST finish read [09:24:35]Found Content-Length = 682 [09:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:35]execute_script... [09:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210186", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:24:35]POST & json_proto [09:24:35]process_json_proto [09:24:35]json parsed OK: [09:24:35]protocol is kg_v1.0 [09:24:35]action value=close_receipt [09:24:35]process_action close_receipt [09:24:35]cmd_close_receipt [09:24:35]MH_GetDate [09:24:35]Write to MH i2c: F0 00 00 F5 33 17 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: F0 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: F0 09 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: F0 09 00 F5 33 00 56 6F 17 67 A0 18 CA 66 4B [09:24:35]GetLastDocTimeStamp 1729588868 [09:24:35]current date 1729589078 [09:24:35]FM_GetShiftState [09:24:35]SAM_PROTO_GetShiftState [09:24:35]wFMCommunicate request_size=4 [09:24:35]MH_SAM_APDU [09:24:35]CAPDU: 80 13 01 00 [09:24:35]Write to MH i2c: E2 08 00 F6 33 80 13 01 00 00 00 00 00 A6 [09:24:35]Write i2c OK [09:24:35]MH_I2C_Read... [09:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:35]Read from MH i2c: E2 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 0E 00 [09:24:35]MH_I2C_Read... [09:24:35]Read from MH i2c: E2 0E 00 F6 33 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9B [09:24:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:24:35]wFMCommunicate OK [09:24:35]SAM_PROTO_GetShiftState done [09:24:35]FM_GetShiftState done [09:24:35]opened in 1729556094 [09:24:35]opened+sec_in_day 1729642494 [09:24:35]quantity*price = 100015 [09:24:35]sum+1 = 100017 [09:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 162 22.10.2024 09:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188133 ФПД: 224501167641616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188133&fm=224501167641616&tin=02508201610067®Number=0000000000100030&sum=100000 [09:24:36]StoreToDocumentArchive [09:24:36]shift 461 fd 188133 [09:24:36]save to /storage/0461/doc_00188133 [09:24:36]save last doc name /storage/0461/doc_00188133 to /storage/kkm_last_doc_name [09:24:36]save OK [09:24:36]Clear old archive folders... [09:24:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:24:37]tlvbuf is 01B8C070 [09:24:37]SAM_PROTO_ClearQueue [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 09 00 00 [09:24:37]Write to MH i2c: E2 08 00 03 34 80 09 00 00 00 00 00 00 A9 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 03 34 00 90 00 AB [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]SAM_PROTO_ClearQueue done [09:24:37]KKMCreateOFDPacket [09:24:37]OFDProtocolAddRootSTLVToBuf [09:24:37]FM_MakeSignedData [09:24:37]FM_MakeSignedData [09:24:37]SAM_PROTO_SignData [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 0D 01 02 [09:24:37]Write to MH i2c: E2 08 00 04 34 80 0D 01 02 00 00 00 00 B1 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 04 34 00 90 00 AC [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]wFMCommunicate request_size=255 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 56 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DE 02 00 35 04 06 00 CC [09:24:37]Write to MH i2c: E2 02 01 05 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 56 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DE 02 00 35 04 06 00 CC 00 00 62 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 05 34 00 90 00 AD [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]wFMCommunicate request_size=10 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 0D 02 02 05 2E C0 59 54 10 [09:24:37]Write to MH i2c: E2 0D 00 06 34 80 0D 02 02 05 00 2E C0 59 54 10 00 00 69 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 03 00 06 34 00 90 00 AE [09:24:37]RAPDU: 90 00 [09:24:37]wFMCommunicate OK [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 0D 03 02 [09:24:37]Write to MH i2c: E2 08 00 07 34 80 0D 03 02 00 00 00 00 B6 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 0B 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 0B 00 07 34 00 C4 35 70 51 E3 37 FC 95 90 00 1C [09:24:37]RAPDU: C4 35 70 51 E3 37 FC 95 90 00 [09:24:37]wFMCommunicate OK [09:24:37]SAM_PROTO_SignData done [09:24:37]FM_MakeSignedData done [09:24:37]CreateOFDProtocolMessage [09:24:37]wFMCommunicate request_size=4 [09:24:37]MH_SAM_APDU [09:24:37]CAPDU: 80 11 00 00 [09:24:37]Write to MH i2c: E2 08 00 08 34 80 11 00 00 00 00 00 00 B6 [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:37]Read from MH i2c: E2 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 17 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: E2 17 00 08 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [09:24:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:24:37]wFMCommunicate OK [09:24:37]CreateOFDProtocolMessage done [09:24:37]OFDSenderStorePacket 188133 [09:24:37]StoreOFDPacket docnum=188133 [09:24:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B0 AA 07 01 84 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 56 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DE 02 00 35 04 06 00 CC 2E C0 59 54 10 C4 35 70 51 E3 37 FC 95 [09:24:37]CheckFolder [09:24:37]dirname=/storage/ofd_packets [09:24:37]CheckFolder done [09:24:37]ProducePacketName [09:24:37]name=ofd_packets/00188133 [09:24:37]NVStorageSaveData ofd_packets/00188133 [09:24:37]File name is /storage/ofd_packets/00188133 [09:24:37]Write 301 bytes [09:24:37]NVStorageSaveData done [09:24:37]OFDSenderStorePacket done [09:24:37]KKMCreateOFDPacket done [09:24:37]NVStorageSaveData kkm_last_timestamp [09:24:37]File name is /storage/kkm_last_timestamp [09:24:37]Write 4 bytes [09:24:37]NVStorageSaveData done [09:24:37]ExternCall_PrintAddStr [09:24:37]wPrintStart [09:24:37]Write to MH i2c: 01 00 00 09 34 3D [09:24:37]Write i2c OK [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: 01 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: 01 07 00 [09:24:37]MH_I2C_Read... [09:24:37]Read from MH i2c: 01 07 00 09 34 00 00 00 00 00 FF 0F 52 [09:24:37]RasterBufferAndPrint [09:24:37]line Счет N : (1)210186 [09:24:37]line ИНН: 02508201610067 [09:24:37]line Контрольно-Кассовый Чек [09:24:37]line ПРОДАЖА [09:24:37]line ТРК (МРК, ГНК) : 42 [09:24:37]line Товар: 2710124130 [09:24:37]line Аи-92-К-3 [09:24:37]line 14.950 * 66.90 [09:24:37]line = 1000.16 [09:24:37]line НДС 12% НСП 1% [09:24:37]line > о реализуемом товаре [09:24:37]line ОКРУГЛЕНИЕ: -0.16 [09:24:37]line ИТОГО: 1000.00 [09:24:37]line Внесено: 1000.00 [09:24:37]line СДАЧА: 0.00 [09:24:37]line НСП 1% : 8.85 [09:24:37]line НДС 12% : 106.21 [09:24:37]line Наличными: 1000.00 [09:24:37]line Безнал.: 0.00 [09:24:37]line Место: АЗС № 86 "Партнер Нефть" [09:24:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:24:37]line СНО: Общий режим [09:24:37]line Чек 162 22.10.2024 09:24 [09:24:37]line Смена: 461 ФФД: 1.0 [09:24:37]line ЗНМ: 0300000155 [09:24:37]line РНМ: 0000000000100030 [09:24:37]line Версия ККМ: 001 [09:24:37]line ФМ: 0000000000965340 [09:24:37]line ФД: 188133 [09:24:37]line ФПД: 224501167641616 [09:24:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188133&fm=224501167641616&tin=02508201610067®Number=0000000000100030&sum=100000 [09:24:37]written 0, free lines is 4095 [09:24:37]OFD Sender: Processing packet 188133 [packets to send 1062, broken 1061] [09:24:37]ProducePacketName [09:24:37]name=ofd_packets/00188133 [09:24:37]OFD Sender: To server: pG, [09:24:37]CommunicateWithHost lk.salyk.kg:30040 [09:24:37]ConnectInit lk.salyk.kg [09:24:37]Connected sock=10 [09:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B0 AA 07 01 84 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A2 00 00 00 F4 03 04 00 56 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E5 DE 02 00 35 04 06 00 CC 2E C0 59 54 10 C4 35 70 51 E3 37 FC 95 [09:24:38]Write to MH i2c: 01 00 00 34 34 68 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 07 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: 01 07 00 34 34 00 00 00 00 00 56 0C D1 [09:24:38]RasterBufferAndPrint [09:24:38]line [09:24:38]line [09:24:38]line [09:24:38]line [09:24:38]line [09:24:38]written 0, free lines is 3161 [09:24:38]MH_Cut [09:24:38]Write to MH i2c: D1 01 00 3B 34 01 41 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: D1 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: D1 01 00 [09:24:38]MH_I2C_Read... [09:24:38]Read from MH i2c: D1 01 00 3B 34 00 40 [09:24:38]Write to MH i2c: 01 00 00 3C 34 70 [09:24:38]Write i2c OK [09:24:38]MH_I2C_Read... [09:24:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 41 9B 47 00 9B 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 39 36 35 33 34 30 10 04 04 00 E5 DE 02 00 F4 03 04 00 44 19 17 67 B6 04 01 00 00 F7 1B 80 E3 7E DE 54 42 [09:24:38]CommunicateWithHost err = 0 [09:24:38]CheckOFDResponse [09:24:38]1017 (14) - 77093643461234 [09:24:38]1041 (16) - 0000000000965340 [09:24:38]1040 (4) - 188133 [09:24:38]1012 (4) - 22.10.2024 03:17 [09:24:38]1206 (1) - 0 [09:24:38]OFD Sender: Remove packet 188133 [09:24:38]ProducePacketName [09:24:38]name=ofd_packets/00188133 [09:24:38]NVStorageDeleteData [09:24:38]OFD Sender: No OFD packet to send [09:24:39]*** Cut start [09:24:39]*** Partial cut [09:24:39]*** CUTSNS_PIN = 1 [09:24:39]*** CUTSNS_PIN = 0 [09:24:39]*** Brake cut motor [09:24:39]Read from MH i2c: 01 [09:24:39]MH_I2C_Read... [09:24:39]*** Stop cut motor [09:24:39]*** Cut end [09:24:39]Read from MH i2c: 01 07 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: 01 07 00 3C 34 00 00 00 00 00 FF 0F 85 [09:24:39]process_action close_receipt done [09:24:39]requested_data is exist [09:24:39]produce_requested_data [09:24:39]requested_item fm.sn is exist - process it [09:24:39]wFMCommunicate request_size=4 [09:24:39]MH_SAM_APDU [09:24:39]CAPDU: 80 11 00 00 [09:24:39]Write to MH i2c: E2 08 00 3D 34 80 11 00 00 00 00 00 00 EB [09:24:39]Write i2c OK [09:24:39]MH_I2C_Read... [09:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:24:39]Read from MH i2c: E2 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: E2 17 00 [09:24:39]MH_I2C_Read... [09:24:39]Read from MH i2c: E2 17 00 3D 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [09:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:24:39]wFMCommunicate OK [09:24:39]requested_item fd.num is exist - process it [09:24:40]SAM_PROTO_GetFieldsCounters [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 13 00 00 [09:24:40]Write to MH i2c: E2 08 00 3E 34 80 13 00 00 00 00 00 00 EE [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 62 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 62 00 3E 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 6E [09:24:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A2 00 00 00 5E 04 04 00 A2 00 00 00 57 04 04 00 A3 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:24:40]wFMCommunicate OK [09:24:40]SAM_PROTO_GetFieldsCounters done [09:24:40]requested_item shift.num is exist - process it [09:24:40]requested_item shift.opened is exist - process it [09:24:40]req_shift_opened [09:24:40]FM_GetShiftState [09:24:40]SAM_PROTO_GetShiftState [09:24:40]wFMCommunicate request_size=4 [09:24:40]MH_SAM_APDU [09:24:40]CAPDU: 80 13 01 00 [09:24:40]Write to MH i2c: E2 08 00 3F 34 80 13 01 00 00 00 00 00 F0 [09:24:40]Write i2c OK [09:24:40]MH_I2C_Read... [09:24:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:24:40]Read from MH i2c: E2 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 0E 00 [09:24:40]MH_I2C_Read... [09:24:40]Read from MH i2c: E2 0E 00 3F 34 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E5 [09:24:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:24:40]wFMCommunicate OK [09:24:40]SAM_PROTO_GetShiftState done [09:24:40]FM_GetShiftState done [09:24:40]req_shift_opened done [09:24:40]requested_item shift.open_date is exist - process it [09:24:40]req_shift_open_date [09:24:40]req_shift_open_date done [09:24:40]produce_requested_data done [09:24:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188133,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:24:40]process_action_free close_receipt [09:24:40]json_value_free [09:24:40]json_value_free done [09:24:40]process_json_proto returns [09:24:40]Send response to host [09:24:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188133,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:24:40]free response buf [09:24:40]execute_script done [09:24:40]execute_script returns [09:24:40]free content buf [09:24:40]Sock 9.Close socket [09:24:40]Sock 9.Thread stoped [09:24:43]OFD Sender: No OFD packet to send [09:24:48]OFD Sender: No OFD packet to send [09:24:53]OFD Sender: No OFD packet to send [09:24:58]OFD Sender: No OFD packet to send [09:25:03]OFD Sender: No OFD packet to send [09:25:08]OFD Sender: No OFD packet to send [09:25:13]OFD Sender: No OFD packet to send [09:25:18]OFD Sender: No OFD packet to send [09:25:23]OFD Sender: No OFD packet to send [09:25:28]OFD Sender: No OFD packet to send [09:25:34]OFD Sender: No OFD packet to send [09:25:39]OFD Sender: No OFD packet to send [09:25:44]OFD Sender: No OFD packet to send [09:25:49]OFD Sender: No OFD packet to send [09:25:54]OFD Sender: No OFD packet to send [09:25:59]OFD Sender: No OFD packet to send [09:26:04]OFD Sender: No OFD packet to send [09:26:09]OFD Sender: No OFD packet to send [09:26:14]OFD Sender: No OFD packet to send [09:26:15]accept exits with 8 [09:26:15]New connection [09:26:15]New thread 3067198820 created [09:26:15]Thread 3067055460 joined [09:26:15]Waiting for new connection... [09:26:15] Sock 8.Parse request [09:26:15]Sock 8.Check first char [09:26:15]Sock 8.First char is OK [09:26:15]request: POST /json_proto HTTP/1.0 [09:26:15]Method: POST [09:26:15]URL: /json_proto [09:26:15]Method is POST - this is cgi request [09:26:15]url: /json_proto [09:26:15]query_string will be loaded in cgi processing [09:26:15]execute_cgi json_proto POST (null) [09:26:15]execute_cgi path=json_proto method=POST [09:26:15]POST find Content-Length [09:26:15]Host: 172.17.42.131:8080 [09:26:15]Content-Length: 688 [09:26:15]Content-Type: application/json [09:26:15] [09:26:15]POST finish read [09:26:15]Found Content-Length = 688 [09:26:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:15]execute_script... [09:26:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210185", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:26:15]POST & json_proto [09:26:15]process_json_proto [09:26:15]json parsed OK: [09:26:15]protocol is kg_v1.0 [09:26:15]action value=close_receipt [09:26:15]process_action close_receipt [09:26:15]cmd_close_receipt [09:26:15]MH_GetDate [09:26:15]Write to MH i2c: F0 00 00 40 34 63 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: F0 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: F0 09 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: F0 09 00 40 34 00 BA 6F 17 67 A0 18 CA 66 FB [09:26:15]GetLastDocTimeStamp 1729589078 [09:26:15]current date 1729589178 [09:26:15]FM_GetShiftState [09:26:15]SAM_PROTO_GetShiftState [09:26:15]wFMCommunicate request_size=4 [09:26:15]MH_SAM_APDU [09:26:15]CAPDU: 80 13 01 00 [09:26:15]Write to MH i2c: E2 08 00 41 34 80 13 01 00 00 00 00 00 F2 [09:26:15]Write i2c OK [09:26:15]MH_I2C_Read... [09:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:15]Read from MH i2c: E2 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 [09:26:15]MH_I2C_Read... [09:26:15]Read from MH i2c: E2 0E 00 41 34 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E7 [09:26:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:26:15]wFMCommunicate OK [09:26:15]SAM_PROTO_GetShiftState done [09:26:15]FM_GetShiftState done [09:26:15]opened in 1729556094 [09:26:15]opened+sec_in_day 1729642494 [09:26:15]quantity*price = 400050 [09:26:15]sum+1 = 400051 [09:26:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 163 22.10.2024 09:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188134 ФПД: 242536094146928 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092618&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188134&fm=242536094146928&tin=02508201610067®Number=0000000000100030&sum=400000 [09:26:16]StoreToDocumentArchive [09:26:16]shift 461 fd 188134 [09:26:16]save to /storage/0461/doc_00188134 [09:26:16]save last doc name /storage/0461/doc_00188134 to /storage/kkm_last_doc_name [09:26:16]save OK [09:26:16]Clear old archive folders... [09:26:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:26:16]tlvbuf is 01C34630 [09:26:16]SAM_PROTO_ClearQueue [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 09 00 00 [09:26:16]Write to MH i2c: E2 08 00 4E 34 80 09 00 00 00 00 00 00 F4 [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 03 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 03 00 4E 34 00 90 00 F6 [09:26:16]RAPDU: 90 00 [09:26:16]wFMCommunicate OK [09:26:16]SAM_PROTO_ClearQueue done [09:26:16]KKMCreateOFDPacket [09:26:16]OFDProtocolAddRootSTLVToBuf [09:26:16]FM_MakeSignedData [09:26:16]FM_MakeSignedData [09:26:16]SAM_PROTO_SignData [09:26:16]wFMCommunicate request_size=4 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 0D 01 02 [09:26:16]Write to MH i2c: E2 08 00 4F 34 80 0D 01 02 00 00 00 00 FC [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:26:16]Read from MH i2c: E2 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 03 00 [09:26:16]MH_I2C_Read... [09:26:16]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [09:26:16]RAPDU: 90 00 [09:26:16]wFMCommunicate OK [09:26:16]wFMCommunicate request_size=255 [09:26:16]MH_SAM_APDU [09:26:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DE 02 [09:26:16]Write to MH i2c: E2 02 01 50 34 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DE 02 00 00 5C [09:26:16]Write i2c OK [09:26:16]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 50 34 00 90 00 F8 [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]wFMCommunicate request_size=16 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DC 95 D5 BC A1 70 [09:26:17]Write to MH i2c: E2 13 00 51 34 80 0D 02 02 0B 00 00 35 04 06 00 DC 95 D5 BC A1 70 00 00 67 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 03 00 51 34 00 90 00 F9 [09:26:17]RAPDU: 90 00 [09:26:17]wFMCommunicate OK [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 0D 03 02 [09:26:17]Write to MH i2c: E2 08 00 52 34 80 0D 03 02 00 00 00 00 01 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 0B 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 0B 00 52 34 00 3B C8 7A 68 6B 5E CB 51 90 00 CC [09:26:17]RAPDU: 3B C8 7A 68 6B 5E CB 51 90 00 [09:26:17]wFMCommunicate OK [09:26:17]SAM_PROTO_SignData done [09:26:17]FM_MakeSignedData done [09:26:17]CreateOFDProtocolMessage [09:26:17]wFMCommunicate request_size=4 [09:26:17]MH_SAM_APDU [09:26:17]CAPDU: 80 11 00 00 [09:26:17]Write to MH i2c: E2 08 00 53 34 80 11 00 00 00 00 00 00 01 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:17]Read from MH i2c: E2 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 17 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: E2 17 00 53 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4F [09:26:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:26:17]wFMCommunicate OK [09:26:17]CreateOFDProtocolMessage done [09:26:17]OFDSenderStorePacket 188134 [09:26:17]StoreOFDPacket docnum=188134 [09:26:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AC A9 0D 01 0D 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DE 02 00 35 04 06 00 DC 95 D5 BC A1 70 3B C8 7A 68 6B 5E CB 51 [09:26:17]CheckFolder [09:26:17]dirname=/storage/ofd_packets [09:26:17]CheckFolder done [09:26:17]ProducePacketName [09:26:17]name=ofd_packets/00188134 [09:26:17]NVStorageSaveData ofd_packets/00188134 [09:26:17]File name is /storage/ofd_packets/00188134 [09:26:17]Write 307 bytes [09:26:17]NVStorageSaveData done [09:26:17]OFDSenderStorePacket done [09:26:17]KKMCreateOFDPacket done [09:26:17]NVStorageSaveData kkm_last_timestamp [09:26:17]File name is /storage/kkm_last_timestamp [09:26:17]Write 4 bytes [09:26:17]NVStorageSaveData done [09:26:17]ExternCall_PrintAddStr [09:26:17]wPrintStart [09:26:17]Write to MH i2c: 01 00 00 54 34 88 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 54 34 00 00 00 00 00 FF 0F 9D [09:26:17]RasterBufferAndPrint [09:26:17]line Счет N : (1)210185 [09:26:17]line ИНН: 02508201610067 [09:26:17]line Контрольно-Кассовый Чек [09:26:17]line ПРОДАЖА [09:26:17]line ТРК (МРК, ГНК) : 21 [09:26:17]line Товар: 2710194210 [09:26:17]line D-ENERGY ДТ-К-5 [09:26:17]line 51.820 * 77.20 [09:26:17]line = 4000.50 [09:26:17]line НДС 12% НСП 1% [09:26:17]line > о реализуемом товаре [09:26:17]line ОКРУГЛЕНИЕ: -0.50 [09:26:17]line ИТОГО: 4000.00 [09:26:17]line Внесено: 4000.00 [09:26:17]line СДАЧА: 0.00 [09:26:17]line НСП 1% : 35.40 [09:26:17]line НДС 12% : 424.83 [09:26:17]line Наличными: 4000.00 [09:26:17]line Безнал.: 0.00 [09:26:17]line Место: АЗС № 86 "Партнер Нефть" [09:26:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:26:17]line СНО: Общий режим [09:26:17]line Чек 163 22.10.2024 09:26 [09:26:17]line Смена: 461 ФФД: 1.0 [09:26:17]line ЗНМ: 0300000155 [09:26:17]line РНМ: 0000000000100030 [09:26:17]line Версия ККМ: 001 [09:26:17]line ФМ: 0000000000965340 [09:26:17]line ФД: 188134 [09:26:17]line ФПД: 242536094146928 [09:26:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092618&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188134&fm=242536094146928&tin=02508201610067®Number=0000000000100030&sum=400000 [09:26:17]written 0, free lines is 4095 [09:26:17]OFD Sender: Processing packet 188134 [packets to send 1062, broken 1061] [09:26:17]ProducePacketName [09:26:17]name=ofd_packets/00188134 [09:26:17]OFD Sender: To server: pG, [09:26:17]CommunicateWithHost lk.salyk.kg:30040 [09:26:17]ConnectInit lk.salyk.kg [09:26:17]Connected sock=9 [09:26:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AC A9 0D 01 0D 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 BA 6F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DE 02 00 35 04 06 00 DC 95 D5 BC A1 70 3B C8 7A 68 6B 5E CB 51 [09:26:17]Write to MH i2c: 01 00 00 7F 34 B3 [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: 01 07 00 7F 34 00 00 00 00 00 5E 0C 24 [09:26:17]RasterBufferAndPrint [09:26:17]line [09:26:17]line [09:26:17]line [09:26:17]line [09:26:17]line [09:26:17]written 0, free lines is 3169 [09:26:17]MH_Cut [09:26:17]Write to MH i2c: D1 01 00 86 34 01 8C [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: D1 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: D1 01 00 [09:26:17]MH_I2C_Read... [09:26:17]Read from MH i2c: D1 01 00 86 34 00 8B [09:26:17]Write to MH i2c: 01 00 00 87 34 BB [09:26:17]Write i2c OK [09:26:17]MH_I2C_Read... [09:26:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 44 47 00 B1 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E6 DE 02 00 F4 03 04 00 A7 19 17 67 B6 04 01 00 00 0C 5F B1 3C 67 E2 36 5E [09:26:17]CommunicateWithHost err = 0 [09:26:17]CheckOFDResponse [09:26:17]1017 (14) - 77093643461234 [09:26:17]1041 (16) - 0000000000965340 [09:26:17]1040 (4) - 188134 [09:26:17]1012 (4) - 22.10.2024 03:19 [09:26:17]1206 (1) - 0 [09:26:17]OFD Sender: Remove packet 188134 [09:26:17]ProducePacketName [09:26:17]name=ofd_packets/00188134 [09:26:17]NVStorageDeleteData [09:26:18]OFD Sender: No OFD packet to send [09:26:19]*** Cut start [09:26:19]*** Partial cut [09:26:19]*** CUTSNS_PIN = 1 [09:26:19]*** CUTSNS_PIN = 0 [09:26:19]*** Brake cut motor [09:26:19]Read from MH i2c: 01 [09:26:19]MH_I2C_Read... [09:26:19]*** Stop cut motor [09:26:19]*** Cut end [09:26:19]Read from MH i2c: 01 07 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: 01 07 00 87 34 00 00 00 00 00 FF 0F D0 [09:26:19]process_action close_receipt done [09:26:19]requested_data is exist [09:26:19]produce_requested_data [09:26:19]requested_item fm.sn is exist - process it [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 11 00 00 [09:26:19]Write to MH i2c: E2 08 00 88 34 80 11 00 00 00 00 00 00 36 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 17 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 17 00 88 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [09:26:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:26:19]wFMCommunicate OK [09:26:19]requested_item fd.num is exist - process it [09:26:19]SAM_PROTO_GetFieldsCounters [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 13 00 00 [09:26:19]Write to MH i2c: E2 08 00 89 34 80 13 00 00 00 00 00 00 39 [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 62 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 62 00 89 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 BD [09:26:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A3 00 00 00 5E 04 04 00 A3 00 00 00 57 04 04 00 A4 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:26:19]wFMCommunicate OK [09:26:19]SAM_PROTO_GetFieldsCounters done [09:26:19]requested_item shift.num is exist - process it [09:26:19]requested_item shift.opened is exist - process it [09:26:19]req_shift_opened [09:26:19]FM_GetShiftState [09:26:19]SAM_PROTO_GetShiftState [09:26:19]wFMCommunicate request_size=4 [09:26:19]MH_SAM_APDU [09:26:19]CAPDU: 80 13 01 00 [09:26:19]Write to MH i2c: E2 08 00 8A 34 80 13 01 00 00 00 00 00 3B [09:26:19]Write i2c OK [09:26:19]MH_I2C_Read... [09:26:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:26:19]Read from MH i2c: E2 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 0E 00 [09:26:19]MH_I2C_Read... [09:26:19]Read from MH i2c: E2 0E 00 8A 34 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 30 [09:26:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:26:19]wFMCommunicate OK [09:26:19]SAM_PROTO_GetShiftState done [09:26:19]FM_GetShiftState done [09:26:19]req_shift_opened done [09:26:19]requested_item shift.open_date is exist - process it [09:26:19]req_shift_open_date [09:26:19]req_shift_open_date done [09:26:19]produce_requested_data done [09:26:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188134,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:26:19]process_action_free close_receipt [09:26:19]json_value_free [09:26:19]json_value_free done [09:26:19]process_json_proto returns [09:26:19]Send response to host [09:26:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188134,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:26:19]free response buf [09:26:19]execute_script done [09:26:19]execute_script returns [09:26:19]free content buf [09:26:19]Sock 8.Close socket [09:26:19]Sock 8.Thread stoped [09:26:23]OFD Sender: No OFD packet to send [09:26:28]OFD Sender: No OFD packet to send [09:26:33]OFD Sender: No OFD packet to send [09:26:38]OFD Sender: No OFD packet to send [09:26:43]OFD Sender: No OFD packet to send [09:26:48]OFD Sender: No OFD packet to send [09:26:53]OFD Sender: No OFD packet to send [09:26:58]OFD Sender: No OFD packet to send [09:27:03]OFD Sender: No OFD packet to send [09:27:08]OFD Sender: No OFD packet to send [09:27:13]OFD Sender: No OFD packet to send [09:27:18]OFD Sender: No OFD packet to send [09:27:23]OFD Sender: No OFD packet to send [09:27:28]OFD Sender: No OFD packet to send [09:27:33]OFD Sender: No OFD packet to send [09:27:38]OFD Sender: No OFD packet to send [09:27:43]OFD Sender: No OFD packet to send [09:27:48]OFD Sender: No OFD packet to send [09:27:53]OFD Sender: No OFD packet to send [09:27:58]OFD Sender: No OFD packet to send [09:28:03]OFD Sender: No OFD packet to send [09:28:08]OFD Sender: No OFD packet to send [09:28:13]OFD Sender: No OFD packet to send [09:28:18]OFD Sender: No OFD packet to send [09:28:23]OFD Sender: No OFD packet to send [09:28:29]OFD Sender: No OFD packet to send [09:28:34]OFD Sender: No OFD packet to send [09:28:39]OFD Sender: No OFD packet to send [09:28:44]OFD Sender: No OFD packet to send [09:28:49]OFD Sender: No OFD packet to send [09:28:54]OFD Sender: No OFD packet to send [09:28:59]OFD Sender: No OFD packet to send [09:29:04]OFD Sender: No OFD packet to send [09:29:09]OFD Sender: No OFD packet to send [09:29:14]OFD Sender: No OFD packet to send [09:29:19]OFD Sender: No OFD packet to send [09:29:24]OFD Sender: No OFD packet to send [09:29:29]OFD Sender: No OFD packet to send [09:29:33]accept exits with 10 [09:29:33]New connection [09:29:33]New thread 3067055460 created [09:29:33]Thread 3067198820 joined [09:29:33]Waiting for new connection... [09:29:33] Sock 10.Parse request [09:29:33]Sock 10.Check first char [09:29:33]Sock 10.First char is OK [09:29:33]request: POST /json_proto HTTP/1.0 [09:29:33]Method: POST [09:29:33]URL: /json_proto [09:29:33]Method is POST - this is cgi request [09:29:33]url: /json_proto [09:29:33]query_string will be loaded in cgi processing [09:29:33]execute_cgi json_proto POST (null) [09:29:33]execute_cgi path=json_proto method=POST [09:29:33]POST find Content-Length [09:29:33]Host: 172.17.42.131:8080 [09:29:33]Content-Length: 751 [09:29:33]Content-Type: application/json [09:29:33] [09:29:33]POST finish read [09:29:33]Found Content-Length = 751 [09:29:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:33]execute_script... [09:29: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)210187", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118667", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:29:33]POST & json_proto [09:29:33]process_json_proto [09:29:33]json parsed OK: [09:29:33]protocol is kg_v1.0 [09:29:33]action value=close_receipt [09:29:33]process_action close_receipt [09:29:33]cmd_close_receipt [09:29:33]MH_GetDate [09:29:33]Write to MH i2c: F0 00 00 8B 34 AE [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: F0 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: F0 09 00 [09:29:33]MH_I2C_Read... [09:29:33]Read from MH i2c: F0 09 00 8B 34 00 80 70 17 67 A0 18 CA 66 0D [09:29:33]GetLastDocTimeStamp 1729589178 [09:29:33]current date 1729589376 [09:29:33]FM_GetShiftState [09:29:33]SAM_PROTO_GetShiftState [09:29:33]wFMCommunicate request_size=4 [09:29:33]MH_SAM_APDU [09:29:33]CAPDU: 80 13 01 00 [09:29:33]Write to MH i2c: E2 08 00 8C 34 80 13 01 00 00 00 00 00 3D [09:29:33]Write i2c OK [09:29:33]MH_I2C_Read... [09:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:34]Read from MH i2c: E2 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: E2 0E 00 [09:29:34]MH_I2C_Read... [09:29:34]Read from MH i2c: E2 0E 00 8C 34 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 32 [09:29:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:29:34]wFMCommunicate OK [09:29:34]SAM_PROTO_GetShiftState done [09:29:34]FM_GetShiftState done [09:29:34]opened in 1729556094 [09:29:34]opened+sec_in_day 1729642494 [09:29:34]quantity*price = 0 [09:29:34]sum+1 = 1 [09:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 164 22.10.2024 09:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118667 ФМ: 0000000000965340 ФД: 188135 ФПД: 256308714057254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188135&fm=256308714057254&tin=02508201610067®Number=0000000000100030&sum=0 [09:29:35]StoreToDocumentArchive [09:29:35]shift 461 fd 188135 [09:29:35]save to /storage/0461/doc_00188135 [09:29:35]save last doc name /storage/0461/doc_00188135 to /storage/kkm_last_doc_name [09:29:35]save OK [09:29:35]Clear old archive folders... [09:29:35]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:29:35]tlvbuf is 01BA02B0 [09:29:35]SAM_PROTO_ClearQueue [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 09 00 00 [09:29:35]Write to MH i2c: E2 08 00 99 34 80 09 00 00 00 00 00 00 3F [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 99 34 00 90 00 41 [09:29:35]RAPDU: 90 00 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_ClearQueue done [09:29:35]KKMCreateOFDPacket [09:29:35]OFDProtocolAddRootSTLVToBuf [09:29:35]FM_MakeSignedData [09:29:35]FM_MakeSignedData [09:29:35]SAM_PROTO_SignData [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 0D 01 02 [09:29:35]Write to MH i2c: E2 08 00 9A 34 80 0D 01 02 00 00 00 00 47 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 9A 34 00 90 00 42 [09:29:35]RAPDU: 90 00 [09:29:35]wFMCommunicate OK [09:29:35]wFMCommunicate request_size=255 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 80 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DE 02 00 35 04 06 00 E9 1C 85 DA [09:29:35]Write to MH i2c: E2 02 01 9B 34 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 80 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DE 02 00 35 04 06 00 E9 1C 85 DA 00 00 71 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 9B 34 00 90 00 43 [09:29:35]RAPDU: 90 00 [09:29:35]wFMCommunicate OK [09:29:35]wFMCommunicate request_size=7 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 0D 02 02 02 AE 26 [09:29:35]Write to MH i2c: E2 0A 00 9C 34 80 0D 02 02 02 00 AE 26 00 00 22 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 03 00 9C 34 00 90 00 44 [09:29:35]RAPDU: 90 00 [09:29:35]wFMCommunicate OK [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 0D 03 02 [09:29:35]Write to MH i2c: E2 08 00 9D 34 80 0D 03 02 00 00 00 00 4C [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0B 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 0B 00 9D 34 00 36 A8 37 3F E8 19 84 27 90 00 4D [09:29:35]RAPDU: 36 A8 37 3F E8 19 84 27 90 00 [09:29:35]wFMCommunicate OK [09:29:35]SAM_PROTO_SignData done [09:29:35]FM_MakeSignedData done [09:29:35]CreateOFDProtocolMessage [09:29:35]wFMCommunicate request_size=4 [09:29:35]MH_SAM_APDU [09:29:35]CAPDU: 80 11 00 00 [09:29:35]Write to MH i2c: E2 08 00 9E 34 80 11 00 00 00 00 00 00 4C [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:35]Read from MH i2c: E2 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 17 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: E2 17 00 9E 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [09:29:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:29:35]wFMCommunicate OK [09:29:35]CreateOFDProtocolMessage done [09:29:35]OFDSenderStorePacket 188135 [09:29:35]StoreOFDPacket docnum=188135 [09:29:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DE 43 04 01 73 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 80 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DE 02 00 35 04 06 00 E9 1C 85 DA AE 26 36 A8 37 3F E8 19 84 27 [09:29:35]CheckFolder [09:29:35]dirname=/storage/ofd_packets [09:29:35]CheckFolder done [09:29:35]ProducePacketName [09:29:35]name=ofd_packets/00188135 [09:29:35]NVStorageSaveData ofd_packets/00188135 [09:29:35]File name is /storage/ofd_packets/00188135 [09:29:35]Write 298 bytes [09:29:35]NVStorageSaveData done [09:29:35]OFDSenderStorePacket done [09:29:35]KKMCreateOFDPacket done [09:29:35]NVStorageSaveData kkm_last_timestamp [09:29:35]File name is /storage/kkm_last_timestamp [09:29:35]Write 4 bytes [09:29:35]NVStorageSaveData done [09:29:35]ExternCall_PrintAddStr [09:29:35]wPrintStart [09:29:35]Write to MH i2c: 01 00 00 9F 34 D3 [09:29:35]Write i2c OK [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: 01 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: 01 07 00 [09:29:35]MH_I2C_Read... [09:29:35]Read from MH i2c: 01 07 00 9F 34 00 00 00 00 00 FF 0F E8 [09:29:35]RasterBufferAndPrint [09:29:35]line Счет N : (1)210187 [09:29:35]line ИНН: 02508201610067 [09:29:35]line Контрольно-Кассовый Чек [09:29:35]line ПРОДАЖА [09:29:35]line ТРК (МРК, ГНК) : 51 [09:29:35]line Товар: 2710194210 [09:29:35]line ДТ-К-5 [09:29:35]line 40.000 * 0.00 [09:29:35]line = 0.00 [09:29:35]line НДС 12% НСП 1% [09:29:35]line > о реализуемом товаре [09:29:35]line ИТОГО: 0.00 [09:29:35]line НСП 1% : 0.00 [09:29:35]line НДС 12% : 0.00 [09:29:35]line Наличными: 0.00 [09:29:35]line Безнал.: 0.00 [09:29:35]line Место: АЗС № 86 "Партнер Нефть" [09:29:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:29:35]line СНО: Общий режим [09:29:35]line Чек 164 22.10.2024 09:29 [09:29:35]line Смена: 461 ФФД: 1.0 [09:29:35]line ЗНМ: 0300000155 [09:29:35]line РНМ: 0000000000100030 [09:29:35]line Версия ККМ: 001 [09:29:35]line Талоны: ТК ГПНА Online [09:29:35]line 30118667 [09:29:35]line ФМ: 0000000000965340 [09:29:35]line ФД: 188135 [09:29:35]line ФПД: 256308714057254 [09:29:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T092936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188135&fm=256308714057254&tin=02508201610067®Number=0000000000100030&sum=0 [09:29:35]written 0, free lines is 4095 [09:29:35]OFD Sender: Processing packet 188135 [packets to send 1062, broken 1061] [09:29:35]ProducePacketName [09:29:35]name=ofd_packets/00188135 [09:29:35]OFD Sender: To server: pG, [09:29:35]CommunicateWithHost lk.salyk.kg:30040 [09:29:35]ConnectInit lk.salyk.kg [09:29:36]Connected sock=9 [09:29:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DE 43 04 01 73 2D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 80 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DE 02 00 35 04 06 00 E9 1C 85 DA AE 26 36 A8 37 3F E8 19 84 27 [09:29:36]Write to MH i2c: 01 00 00 C9 34 FD [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: 01 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: 01 07 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: 01 07 00 C9 34 00 00 00 00 00 6B 0C 7B [09:29:36]RasterBufferAndPrint [09:29:36]line [09:29:36]line [09:29:36]line [09:29:36]line [09:29:36]line [09:29:36]written 0, free lines is 3184 [09:29:36]MH_Cut [09:29:36]Write to MH i2c: D1 01 00 D0 34 01 D6 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: D1 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: D1 01 00 [09:29:36]MH_I2C_Read... [09:29:36]Read from MH i2c: D1 01 00 D0 34 00 D5 [09:29:36]Write to MH i2c: 01 00 00 D1 34 05 [09:29:36]Write i2c OK [09:29:36]MH_I2C_Read... [09:29:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 05 47 00 EE 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E7 DE 02 00 F4 03 04 00 6E 1A 17 67 B6 04 01 00 00 C4 8C 2E 40 41 E9 2A F9 [09:29:36]CommunicateWithHost err = 0 [09:29:36]CheckOFDResponse [09:29:36]1017 (14) - 77093643461234 [09:29:36]1041 (16) - 0000000000965340 [09:29:36]1040 (4) - 188135 [09:29:36]1012 (4) - 22.10.2024 03:22 [09:29:36]1206 (1) - 0 [09:29:36]OFD Sender: Remove packet 188135 [09:29:36]ProducePacketName [09:29:36]name=ofd_packets/00188135 [09:29:36]NVStorageDeleteData [09:29:36]OFD Sender: No OFD packet to send [09:29:37]*** Cut start [09:29:37]*** Partial cut [09:29:37]*** CUTSNS_PIN = 1 [09:29:37]*** CUTSNS_PIN = 0 [09:29:37]*** Brake cut motor [09:29:38]Read from MH i2c: 01 [09:29:38]MH_I2C_Read... [09:29:38]*** Stop cut motor [09:29:38]*** Cut end [09:29:38]Read from MH i2c: 01 07 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: 01 07 00 D1 34 00 00 00 00 00 FF 0F 1A [09:29:38]process_action close_receipt done [09:29:38]requested_data is exist [09:29:38]produce_requested_data [09:29:38]requested_item fm.sn is exist - process it [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 11 00 00 [09:29:38]Write to MH i2c: E2 08 00 D2 34 80 11 00 00 00 00 00 00 80 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 17 00 D2 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [09:29:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:29:38]wFMCommunicate OK [09:29:38]requested_item fd.num is exist - process it [09:29:38]SAM_PROTO_GetFieldsCounters [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 13 00 00 [09:29:38]Write to MH i2c: E2 08 00 D3 34 80 13 00 00 00 00 00 00 83 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 62 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 62 00 D3 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [09:29:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A4 00 00 00 5E 04 04 00 A4 00 00 00 57 04 04 00 A5 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_GetFieldsCounters done [09:29:38]requested_item shift.num is exist - process it [09:29:38]requested_item shift.opened is exist - process it [09:29:38]req_shift_opened [09:29:38]FM_GetShiftState [09:29:38]SAM_PROTO_GetShiftState [09:29:38]wFMCommunicate request_size=4 [09:29:38]MH_SAM_APDU [09:29:38]CAPDU: 80 13 01 00 [09:29:38]Write to MH i2c: E2 08 00 D4 34 80 13 01 00 00 00 00 00 85 [09:29:38]Write i2c OK [09:29:38]MH_I2C_Read... [09:29:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:29:38]Read from MH i2c: E2 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0E 00 [09:29:38]MH_I2C_Read... [09:29:38]Read from MH i2c: E2 0E 00 D4 34 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7A [09:29:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:29:38]wFMCommunicate OK [09:29:38]SAM_PROTO_GetShiftState done [09:29:38]FM_GetShiftState done [09:29:38]req_shift_opened done [09:29:38]requested_item shift.open_date is exist - process it [09:29:38]req_shift_open_date [09:29:38]req_shift_open_date done [09:29:38]produce_requested_data done [09:29:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188135,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:29:38]process_action_free close_receipt [09:29:38]json_value_free [09:29:38]json_value_free done [09:29:38]process_json_proto returns [09:29:38]Send response to host [09:29:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188135,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:29:38]free response buf [09:29:38]execute_script done [09:29:38]execute_script returns [09:29:38]free content buf [09:29:38]Sock 10.Close socket [09:29:38]Sock 10.Thread stoped [09:29:41]OFD Sender: No OFD packet to send [09:29:46]OFD Sender: No OFD packet to send [09:29:51]OFD Sender: No OFD packet to send [09:29:57]OFD Sender: No OFD packet to send [09:30:02]OFD Sender: No OFD packet to send [09:30:07]OFD Sender: No OFD packet to send [09:30:12]OFD Sender: No OFD packet to send [09:30:17]OFD Sender: No OFD packet to send [09:30:22]OFD Sender: No OFD packet to send [09:30:27]OFD Sender: No OFD packet to send [09:30:32]OFD Sender: No OFD packet to send [09:30:37]OFD Sender: No OFD packet to send [09:30:42]OFD Sender: No OFD packet to send [09:30:47]OFD Sender: No OFD packet to send [09:30:52]OFD Sender: No OFD packet to send [09:30:57]OFD Sender: No OFD packet to send [09:30:57]accept exits with 8 [09:30:57]New connection [09:30:57]New thread 3067198820 created [09:30:57]Thread 3067055460 joined [09:30:57]Waiting for new connection... [09:30:57] Sock 8.Parse request [09:30:57]Sock 8.Check first char [09:30:57]Sock 8.First char is OK [09:30:57]request: POST /json_proto HTTP/1.0 [09:30:57]Method: POST [09:30:57]URL: /json_proto [09:30:57]Method is POST - this is cgi request [09:30:57]url: /json_proto [09:30:57]query_string will be loaded in cgi processing [09:30:57]execute_cgi json_proto POST (null) [09:30:57]execute_cgi path=json_proto method=POST [09:30:57]POST find Content-Length [09:30:57]Host: 172.17.42.131:8080 [09:30:57]Content-Length: 677 [09:30:57]Content-Type: application/json [09:30:57] [09:30:57]POST finish read [09:30:57]Found Content-Length = 677 [09:30:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.420, "sum" : 630.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:57]execute_script... [09:30: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)210188", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 9.420, "sum" : 630.20, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 630.00, "total" : 630.00, "payments": [ { "type": 0, "sum" : 630.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:30:57]POST & json_proto [09:30:57]process_json_proto [09:30:57]json parsed OK: [09:30:57]protocol is kg_v1.0 [09:30:57]action value=close_receipt [09:30:57]process_action close_receipt [09:30:57]cmd_close_receipt [09:30:57]MH_GetDate [09:30:57]Write to MH i2c: F0 00 00 D5 34 F8 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: F0 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: F0 09 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: F0 09 00 D5 34 00 D4 70 17 67 A0 18 CA 66 AB [09:30:57]GetLastDocTimeStamp 1729589376 [09:30:57]current date 1729589460 [09:30:57]FM_GetShiftState [09:30:57]SAM_PROTO_GetShiftState [09:30:57]wFMCommunicate request_size=4 [09:30:57]MH_SAM_APDU [09:30:57]CAPDU: 80 13 01 00 [09:30:57]Write to MH i2c: E2 08 00 D6 34 80 13 01 00 00 00 00 00 87 [09:30:57]Write i2c OK [09:30:57]MH_I2C_Read... [09:30:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:30:57]Read from MH i2c: E2 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 0E 00 [09:30:57]MH_I2C_Read... [09:30:57]Read from MH i2c: E2 0E 00 D6 34 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7C [09:30:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:30:57]wFMCommunicate OK [09:30:57]SAM_PROTO_GetShiftState done [09:30:57]FM_GetShiftState done [09:30:57]opened in 1729556094 [09:30:57]opened+sec_in_day 1729642494 [09:30:57]quantity*price = 63019 [09:30:57]sum+1 = 63021 [09:30:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 630.00 Внесено: 630.00 СДАЧА: 0.00 НСП 1% : 5.58 НДС 12% : 66.92 Наличными: 630.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 165 22.10.2024 09:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188136 ФПД: 147991008026411 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188136&fm=147991008026411&tin=02508201610067®Number=0000000000100030&sum=63000 [09:30:58]StoreToDocumentArchive [09:30:58]shift 461 fd 188136 [09:30:58]save to /storage/0461/doc_00188136 [09:30:58]save last doc name /storage/0461/doc_00188136 to /storage/kkm_last_doc_name [09:30:58]save OK [09:30:58]Clear old archive folders... [09:30:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:30:58]tlvbuf is 01B98FD0 [09:30:58]SAM_PROTO_ClearQueue [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 09 00 00 [09:30:58]Write to MH i2c: E2 08 00 E3 34 80 09 00 00 00 00 00 00 89 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:30:58]Read from MH i2c: E2 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 [09:30:58]MH_I2C_Read... [09:30:58]Read from MH i2c: E2 03 00 E3 34 00 90 00 8B [09:30:58]RAPDU: 90 00 [09:30:58]wFMCommunicate OK [09:30:58]SAM_PROTO_ClearQueue done [09:30:58]KKMCreateOFDPacket [09:30:58]OFDProtocolAddRootSTLVToBuf [09:30:58]FM_MakeSignedData [09:30:58]FM_MakeSignedData [09:30:58]SAM_PROTO_SignData [09:30:58]wFMCommunicate request_size=4 [09:30:58]MH_SAM_APDU [09:30:58]CAPDU: 80 0D 01 02 [09:30:58]Write to MH i2c: E2 08 00 E4 34 80 0D 01 02 00 00 00 00 91 [09:30:58]Write i2c OK [09:30:58]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 E4 34 00 90 00 8C [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]wFMCommunicate request_size=255 [09:30:59]MH_SAM_APDU [09:30: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 33 FF 03 08 00 03 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D4 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DE 02 00 35 04 06 00 86 [09:30:59]Write to MH i2c: E2 02 01 E5 34 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D4 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DE 02 00 35 04 06 00 86 00 00 DA [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 E5 34 00 90 00 8D [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]wFMCommunicate request_size=10 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 0D 02 02 05 98 D7 76 9F 2B [09:30:59]Write to MH i2c: E2 0D 00 E6 34 80 0D 02 02 05 00 98 D7 76 9F 2B 00 00 4D [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 03 00 E6 34 00 90 00 8E [09:30:59]RAPDU: 90 00 [09:30:59]wFMCommunicate OK [09:30:59]wFMCommunicate request_size=4 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 0D 03 02 [09:30:59]Write to MH i2c: E2 08 00 E7 34 80 0D 03 02 00 00 00 00 96 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 0B 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 0B 00 E7 34 00 3E B4 DF E4 AE B6 D6 BB 90 00 41 [09:30:59]RAPDU: 3E B4 DF E4 AE B6 D6 BB 90 00 [09:30:59]wFMCommunicate OK [09:30:59]SAM_PROTO_SignData done [09:30:59]FM_MakeSignedData done [09:30:59]CreateOFDProtocolMessage [09:30:59]wFMCommunicate request_size=4 [09:30:59]MH_SAM_APDU [09:30:59]CAPDU: 80 11 00 00 [09:30:59]Write to MH i2c: E2 08 00 E8 34 80 11 00 00 00 00 00 00 96 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:30:59]Read from MH i2c: E2 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 17 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: E2 17 00 E8 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [09:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:30:59]wFMCommunicate OK [09:30:59]CreateOFDProtocolMessage done [09:30:59]OFDSenderStorePacket 188136 [09:30:59]StoreOFDPacket docnum=188136 [09:30:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 27 07 01 FC 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D4 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DE 02 00 35 04 06 00 86 98 D7 76 9F 2B 3E B4 DF E4 AE B6 D6 BB [09:30:59]CheckFolder [09:30:59]dirname=/storage/ofd_packets [09:30:59]CheckFolder done [09:30:59]ProducePacketName [09:30:59]name=ofd_packets/00188136 [09:30:59]NVStorageSaveData ofd_packets/00188136 [09:30:59]File name is /storage/ofd_packets/00188136 [09:30:59]Write 301 bytes [09:30:59]NVStorageSaveData done [09:30:59]OFDSenderStorePacket done [09:30:59]KKMCreateOFDPacket done [09:30:59]NVStorageSaveData kkm_last_timestamp [09:30:59]File name is /storage/kkm_last_timestamp [09:30:59]Write 4 bytes [09:30:59]NVStorageSaveData done [09:30:59]ExternCall_PrintAddStr [09:30:59]wPrintStart [09:30:59]Write to MH i2c: 01 00 00 E9 34 1D [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 E9 34 00 00 00 00 00 FF 0F 32 [09:30:59]RasterBufferAndPrint [09:30:59]line Счет N : (1)210188 [09:30:59]line ИНН: 02508201610067 [09:30:59]line Контрольно-Кассовый Чек [09:30:59]line ПРОДАЖА [09:30:59]line ТРК (МРК, ГНК) : 32 [09:30:59]line Товар: 2710124130 [09:30:59]line Аи-92-К-3 [09:30:59]line 9.420 * 66.90 [09:30:59]line = 630.20 [09:30:59]line НДС 12% НСП 1% [09:30:59]line > о реализуемом товаре [09:30:59]line ОКРУГЛЕНИЕ: -0.20 [09:30:59]line ИТОГО: 630.00 [09:30:59]line Внесено: 630.00 [09:30:59]line СДАЧА: 0.00 [09:30:59]line НСП 1% : 5.58 [09:30:59]line НДС 12% : 66.92 [09:30:59]line Наличными: 630.00 [09:30:59]line Безнал.: 0.00 [09:30:59]line Место: АЗС № 86 "Партнер Нефть" [09:30:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:30:59]line СНО: Общий режим [09:30:59]line Чек 165 22.10.2024 09:31 [09:30:59]line Смена: 461 ФФД: 1.0 [09:30:59]line ЗНМ: 0300000155 [09:30:59]line РНМ: 0000000000100030 [09:30:59]line Версия ККМ: 001 [09:30:59]line ФМ: 0000000000965340 [09:30:59]line ФД: 188136 [09:30:59]line ФПД: 147991008026411 [09:30:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093100&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188136&fm=147991008026411&tin=02508201610067®Number=0000000000100030&sum=63000 [09:30:59]written 0, free lines is 4095 [09:30:59]OFD Sender: Processing packet 188136 [packets to send 1062, broken 1061] [09:30:59]ProducePacketName [09:30:59]name=ofd_packets/00188136 [09:30:59]OFD Sender: To server: pG, [09:30:59]CommunicateWithHost lk.salyk.kg:30040 [09:30:59]ConnectInit lk.salyk.kg [09:30:59]Connected sock=10 [09:30:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 27 07 01 FC 75 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 24 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2C F6 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 F6 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2E 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 1A 00 00 00 00 07 04 06 00 18 F6 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D4 70 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DE 02 00 35 04 06 00 86 98 D7 76 9F 2B 3E B4 DF E4 AE B6 D6 BB [09:30:59]Write to MH i2c: 01 00 00 14 35 49 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: 01 07 00 14 35 00 00 00 00 00 5B 0C B7 [09:30:59]RasterBufferAndPrint [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]line [09:30:59]written 0, free lines is 3166 [09:30:59]MH_Cut [09:30:59]Write to MH i2c: D1 01 00 1B 35 01 22 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 01 00 [09:30:59]MH_I2C_Read... [09:30:59]Read from MH i2c: D1 01 00 1B 35 00 21 [09:30:59]Write to MH i2c: 01 00 00 1C 35 51 [09:30:59]Write i2c OK [09:30:59]MH_I2C_Read... [09:31:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 85 09 47 00 EF EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E8 DE 02 00 F4 03 04 00 C2 1A 17 67 B6 04 01 00 00 5A 57 AD C5 7D 07 58 91 [09:31:00]CommunicateWithHost err = 0 [09:31:00]CheckOFDResponse [09:31:00]1017 (14) - 77093643461234 [09:31:00]1041 (16) - 0000000000965340 [09:31:00]1040 (4) - 188136 [09:31:00]1012 (4) - 22.10.2024 03:23 [09:31:00]1206 (1) - 0 [09:31:00]OFD Sender: Remove packet 188136 [09:31:00]ProducePacketName [09:31:00]name=ofd_packets/00188136 [09:31:00]NVStorageDeleteData [09:31:00]OFD Sender: No OFD packet to send [09:31:01]*** Cut start [09:31:01]*** Partial cut [09:31:01]*** CUTSNS_PIN = 1 [09:31:01]*** CUTSNS_PIN = 0 [09:31:01]*** Brake cut motor [09:31:01]Read from MH i2c: 01 [09:31:01]MH_I2C_Read... [09:31:01]*** Stop cut motor [09:31:01]*** Cut end [09:31:01]Read from MH i2c: 01 07 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: 01 07 00 1C 35 00 00 00 00 00 FF 0F 66 [09:31:01]process_action close_receipt done [09:31:01]requested_data is exist [09:31:01]produce_requested_data [09:31:01]requested_item fm.sn is exist - process it [09:31:01]wFMCommunicate request_size=4 [09:31:01]MH_SAM_APDU [09:31:01]CAPDU: 80 11 00 00 [09:31:01]Write to MH i2c: E2 08 00 1D 35 80 11 00 00 00 00 00 00 CC [09:31:01]Write i2c OK [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 [09:31:01]MH_I2C_Read... [09:31:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:31:01]Read from MH i2c: E2 17 00 [09:31:01]MH_I2C_Read... [09:31:01]Read from MH i2c: E2 17 00 1D 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [09:31:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:31:01]wFMCommunicate OK [09:31:01]requested_item fd.num is exist - process it [09:31:01]SAM_PROTO_GetFieldsCounters [09:31:01]wFMCommunicate request_size=4 [09:31:01]MH_SAM_APDU [09:31:01]CAPDU: 80 13 00 00 [09:31:01]Write to MH i2c: E2 08 00 1E 35 80 13 00 00 00 00 00 00 CF [09:31:01]Write i2c OK [09:31:01]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 62 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 62 00 1E 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 5B [09:31:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A5 00 00 00 5E 04 04 00 A5 00 00 00 57 04 04 00 A6 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetFieldsCounters done [09:31:02]requested_item shift.num is exist - process it [09:31:02]requested_item shift.opened is exist - process it [09:31:02]req_shift_opened [09:31:02]FM_GetShiftState [09:31:02]SAM_PROTO_GetShiftState [09:31:02]wFMCommunicate request_size=4 [09:31:02]MH_SAM_APDU [09:31:02]CAPDU: 80 13 01 00 [09:31:02]Write to MH i2c: E2 08 00 1F 35 80 13 01 00 00 00 00 00 D1 [09:31:02]Write i2c OK [09:31:02]MH_I2C_Read... [09:31:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:31:02]Read from MH i2c: E2 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 [09:31:02]MH_I2C_Read... [09:31:02]Read from MH i2c: E2 0E 00 1F 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C6 [09:31:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:31:02]wFMCommunicate OK [09:31:02]SAM_PROTO_GetShiftState done [09:31:02]FM_GetShiftState done [09:31:02]req_shift_opened done [09:31:02]requested_item shift.open_date is exist - process it [09:31:02]req_shift_open_date [09:31:02]req_shift_open_date done [09:31:02]produce_requested_data done [09:31:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188136,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:31:02]process_action_free close_receipt [09:31:02]json_value_free [09:31:02]json_value_free done [09:31:02]process_json_proto returns [09:31:02]Send response to host [09:31:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188136,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:31:02]free response buf [09:31:02]execute_script done [09:31:02]execute_script returns [09:31:02]free content buf [09:31:02]Sock 8.Close socket [09:31:02]Sock 8.Thread stoped [09:31:05]OFD Sender: No OFD packet to send [09:31:10]OFD Sender: No OFD packet to send [09:31:15]OFD Sender: No OFD packet to send [09:31:20]OFD Sender: No OFD packet to send [09:31:25]OFD Sender: No OFD packet to send [09:31:30]OFD Sender: No OFD packet to send [09:31:35]OFD Sender: No OFD packet to send [09:31:40]OFD Sender: No OFD packet to send [09:31:45]OFD Sender: No OFD packet to send [09:31:50]OFD Sender: No OFD packet to send [09:31:55]OFD Sender: No OFD packet to send [09:32:00]OFD Sender: No OFD packet to send [09:32:05]accept exits with 9 [09:32:05]New connection [09:32:05]New thread 3067055460 created [09:32:05]Thread 3067198820 joined [09:32:05]Waiting for new connection... [09:32:05] Sock 9.Parse request [09:32:05]Sock 9.Check first char [09:32:05]Sock 9.First char is OK [09:32:05]request: POST /json_proto HTTP/1.0 [09:32:05]Method: POST [09:32:05]URL: /json_proto [09:32:05]Method is POST - this is cgi request [09:32:05]url: /json_proto [09:32:05]query_string will be loaded in cgi processing [09:32:05]execute_cgi json_proto POST (null) [09:32:05]execute_cgi path=json_proto method=POST [09:32:05]POST find Content-Length [09:32:05]Host: 172.17.42.131:8080 [09:32:05]Content-Length: 682 [09:32:05]Content-Type: application/json [09:32:05] [09:32:05]POST finish read [09:32:05]Found Content-Length = 682 [09:32:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:05]execute_script... [09:32: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)210189", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:05]POST & json_proto [09:32:05]process_json_proto [09:32:05]json parsed OK: [09:32:05]protocol is kg_v1.0 [09:32:05]action value=close_receipt [09:32:05]process_action close_receipt [09:32:05]cmd_close_receipt [09:32:05]MH_GetDate [09:32:05]Write to MH i2c: F0 00 00 20 35 44 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: F0 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: F0 09 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: F0 09 00 20 35 00 18 71 17 67 A0 18 CA 66 3C [09:32:05]GetLastDocTimeStamp 1729589460 [09:32:05]current date 1729589528 [09:32:05]FM_GetShiftState [09:32:05]SAM_PROTO_GetShiftState [09:32:05]wFMCommunicate request_size=4 [09:32:05]MH_SAM_APDU [09:32:05]CAPDU: 80 13 01 00 [09:32:05]Write to MH i2c: E2 08 00 21 35 80 13 01 00 00 00 00 00 D3 [09:32:05]Write i2c OK [09:32:05]MH_I2C_Read... [09:32:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:05]Read from MH i2c: E2 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 [09:32:05]MH_I2C_Read... [09:32:05]Read from MH i2c: E2 0E 00 21 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [09:32:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:32:05]wFMCommunicate OK [09:32:05]SAM_PROTO_GetShiftState done [09:32:05]FM_GetShiftState done [09:32:05]opened in 1729556094 [09:32:05]opened+sec_in_day 1729642494 [09:32:05]quantity*price = 100015 [09:32:05]sum+1 = 100017 [09:32:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 166 22.10.2024 09:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188137 ФПД: 115342530303054 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093208&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188137&fm=115342530303054&tin=02508201610067®Number=0000000000100030&sum=100000 [09:32:06]StoreToDocumentArchive [09:32:06]shift 461 fd 188137 [09:32:06]save to /storage/0461/doc_00188137 [09:32:06]save last doc name /storage/0461/doc_00188137 to /storage/kkm_last_doc_name [09:32:06]save OK [09:32:06]Clear old archive folders... [09:32:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:06]tlvbuf is 01BAD830 [09:32:06]SAM_PROTO_ClearQueue [09:32:06]wFMCommunicate request_size=4 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 09 00 00 [09:32:06]Write to MH i2c: E2 08 00 2E 35 80 09 00 00 00 00 00 00 D5 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 2E 35 00 90 00 D7 [09:32:06]RAPDU: 90 00 [09:32:06]wFMCommunicate OK [09:32:06]SAM_PROTO_ClearQueue done [09:32:06]KKMCreateOFDPacket [09:32:06]OFDProtocolAddRootSTLVToBuf [09:32:06]FM_MakeSignedData [09:32:06]FM_MakeSignedData [09:32:06]SAM_PROTO_SignData [09:32:06]wFMCommunicate request_size=4 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 0D 01 02 [09:32:06]Write to MH i2c: E2 08 00 2F 35 80 0D 01 02 00 00 00 00 DD [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 2F 35 00 90 00 D8 [09:32:06]RAPDU: 90 00 [09:32:06]wFMCommunicate OK [09:32:06]wFMCommunicate request_size=255 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 18 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DE 02 00 35 04 06 00 68 [09:32:06]Write to MH i2c: E2 02 01 30 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 18 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DE 02 00 35 04 06 00 68 00 00 F6 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 30 35 00 90 00 D9 [09:32:06]RAPDU: 90 00 [09:32:06]wFMCommunicate OK [09:32:06]wFMCommunicate request_size=10 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 0D 02 02 05 E7 46 8B D4 4E [09:32:06]Write to MH i2c: E2 0D 00 31 35 80 0D 02 02 05 00 E7 46 8B D4 4E 00 00 C4 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 03 00 31 35 00 90 00 DA [09:32:06]RAPDU: 90 00 [09:32:06]wFMCommunicate OK [09:32:06]wFMCommunicate request_size=4 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 0D 03 02 [09:32:06]Write to MH i2c: E2 08 00 32 35 80 0D 03 02 00 00 00 00 E2 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 0B 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 0B 00 32 35 00 28 BB 3D C8 7A C5 AB 81 90 00 36 [09:32:06]RAPDU: 28 BB 3D C8 7A C5 AB 81 90 00 [09:32:06]wFMCommunicate OK [09:32:06]SAM_PROTO_SignData done [09:32:06]FM_MakeSignedData done [09:32:06]CreateOFDProtocolMessage [09:32:06]wFMCommunicate request_size=4 [09:32:06]MH_SAM_APDU [09:32:06]CAPDU: 80 11 00 00 [09:32:06]Write to MH i2c: E2 08 00 33 35 80 11 00 00 00 00 00 00 E2 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:06]Read from MH i2c: E2 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 17 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: E2 17 00 33 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [09:32:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:06]wFMCommunicate OK [09:32:06]CreateOFDProtocolMessage done [09:32:06]OFDSenderStorePacket 188137 [09:32:06]StoreOFDPacket docnum=188137 [09:32:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 70 07 01 7F 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 18 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DE 02 00 35 04 06 00 68 E7 46 8B D4 4E 28 BB 3D C8 7A C5 AB 81 [09:32:06]CheckFolder [09:32:06]dirname=/storage/ofd_packets [09:32:06]CheckFolder done [09:32:06]ProducePacketName [09:32:06]name=ofd_packets/00188137 [09:32:06]NVStorageSaveData ofd_packets/00188137 [09:32:06]File name is /storage/ofd_packets/00188137 [09:32:06]Write 301 bytes [09:32:06]NVStorageSaveData done [09:32:06]OFDSenderStorePacket done [09:32:06]KKMCreateOFDPacket done [09:32:06]NVStorageSaveData kkm_last_timestamp [09:32:06]File name is /storage/kkm_last_timestamp [09:32:06]Write 4 bytes [09:32:06]NVStorageSaveData done [09:32:06]ExternCall_PrintAddStr [09:32:06]wPrintStart [09:32:06]Write to MH i2c: 01 00 00 34 35 69 [09:32:06]Write i2c OK [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 07 00 [09:32:06]MH_I2C_Read... [09:32:06]Read from MH i2c: 01 07 00 34 35 00 00 00 00 00 FF 0F 7E [09:32:06]RasterBufferAndPrint [09:32:06]line Счет N : (1)210189 [09:32:06]line ИНН: 02508201610067 [09:32:06]line Контрольно-Кассовый Чек [09:32:06]line ПРОДАЖА [09:32:06]line ТРК (МРК, ГНК) : 42 [09:32:06]line Товар: 2710124130 [09:32:06]line Аи-92-К-3 [09:32:06]line 14.950 * 66.90 [09:32:06]line = 1000.16 [09:32:06]line НДС 12% НСП 1% [09:32:06]line > о реализуемом товаре [09:32:06]line ОКРУГЛЕНИЕ: -0.16 [09:32:06]line ИТОГО: 1000.00 [09:32:06]line Внесено: 1000.00 [09:32:06]line СДАЧА: 0.00 [09:32:06]line НСП 1% : 8.85 [09:32:06]line НДС 12% : 106.21 [09:32:06]line Наличными: 1000.00 [09:32:06]line Безнал.: 0.00 [09:32:06]line Место: АЗС № 86 "Партнер Нефть" [09:32:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:06]line СНО: Общий режим [09:32:06]line Чек 166 22.10.2024 09:32 [09:32:06]line Смена: 461 ФФД: 1.0 [09:32:06]line ЗНМ: 0300000155 [09:32:06]line РНМ: 0000000000100030 [09:32:06]line Версия ККМ: 001 [09:32:06]line ФМ: 0000000000965340 [09:32:06]line ФД: 188137 [09:32:06]line ФПД: 115342530303054 [09:32:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093208&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188137&fm=115342530303054&tin=02508201610067®Number=0000000000100030&sum=100000 [09:32:06]OFD Sender: Processing packet 188137 [packets to send 1062, broken 1061] [09:32:06]ProducePacketName [09:32:06]name=ofd_packets/00188137 [09:32:06]OFD Sender: To server: pG, [09:32:06]CommunicateWithHost lk.salyk.kg:30040 [09:32:06]ConnectInit lk.salyk.kg [09:32:06]written 0, free lines is 4095 [09:32:07]Connected sock=11 [09:32:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 84 70 07 01 7F 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A6 00 00 00 F4 03 04 00 18 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DE 02 00 35 04 06 00 68 E7 46 8B D4 4E 28 BB 3D C8 7A C5 AB 81 [09:32:07]Write to MH i2c: 01 00 00 5F 35 94 [09:32:07]Write i2c OK [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: 01 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: 01 07 00 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: 01 07 00 5F 35 00 00 00 00 00 5E 0C 05 [09:32:07]RasterBufferAndPrint [09:32:07]line [09:32:07]line [09:32:07]line [09:32:07]line [09:32:07]line [09:32:07]written 0, free lines is 3168 [09:32:07]MH_Cut [09:32:07]Write to MH i2c: D1 01 00 66 35 01 6D [09:32:07]Write i2c OK [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: D1 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: D1 01 00 [09:32:07]MH_I2C_Read... [09:32:07]Read from MH i2c: D1 01 00 66 35 00 6C [09:32:07]Write to MH i2c: 01 00 00 67 35 9C [09:32:07]Write i2c OK [09:32:07]MH_I2C_Read... [09:32:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 2F 47 00 7F 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 E9 DE 02 00 F4 03 04 00 05 1B 17 67 B6 04 01 00 00 FF 80 4F B8 20 B7 59 BB [09:32:07]CommunicateWithHost err = 0 [09:32:07]CheckOFDResponse [09:32:07]1017 (14) - 77093643461234 [09:32:07]1041 (16) - 0000000000965340 [09:32:07]1040 (4) - 188137 [09:32:07]1012 (4) - 22.10.2024 03:24 [09:32:07]1206 (1) - 0 [09:32:07]OFD Sender: Remove packet 188137 [09:32:07]ProducePacketName [09:32:07]name=ofd_packets/00188137 [09:32:07]NVStorageDeleteData [09:32:08]OFD Sender: No OFD packet to send [09:32:08]*** Cut start [09:32:08]*** Partial cut [09:32:08]*** CUTSNS_PIN = 1 [09:32:08]*** CUTSNS_PIN = 0 [09:32:08]*** Brake cut motor [09:32:09]Read from MH i2c: 01 [09:32:09]MH_I2C_Read... [09:32:09]*** Stop cut motor [09:32:09]*** Cut end [09:32:09]Read from MH i2c: 01 07 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: 01 07 00 67 35 00 00 00 00 00 FF 0F B1 [09:32:09]process_action close_receipt done [09:32:09]requested_data is exist [09:32:09]produce_requested_data [09:32:09]requested_item fm.sn is exist - process it [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 11 00 00 [09:32:09]Write to MH i2c: E2 08 00 68 35 80 11 00 00 00 00 00 00 17 [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 17 00 68 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 65 [09:32:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:09]wFMCommunicate OK [09:32:09]requested_item fd.num is exist - process it [09:32:09]SAM_PROTO_GetFieldsCounters [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 13 00 00 [09:32:09]Write to MH i2c: E2 08 00 69 35 80 13 00 00 00 00 00 00 1A [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 62 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 62 00 69 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 AA [09:32:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 E9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A6 00 00 00 5E 04 04 00 A6 00 00 00 57 04 04 00 A7 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_GetFieldsCounters done [09:32:09]requested_item shift.num is exist - process it [09:32:09]requested_item shift.opened is exist - process it [09:32:09]req_shift_opened [09:32:09]FM_GetShiftState [09:32:09]SAM_PROTO_GetShiftState [09:32:09]wFMCommunicate request_size=4 [09:32:09]MH_SAM_APDU [09:32:09]CAPDU: 80 13 01 00 [09:32:09]Write to MH i2c: E2 08 00 6A 35 80 13 01 00 00 00 00 00 1C [09:32:09]Write i2c OK [09:32:09]MH_I2C_Read... [09:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:09]Read from MH i2c: E2 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0E 00 [09:32:09]MH_I2C_Read... [09:32:09]Read from MH i2c: E2 0E 00 6A 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 11 [09:32:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:32:09]wFMCommunicate OK [09:32:09]SAM_PROTO_GetShiftState done [09:32:09]FM_GetShiftState done [09:32:09]req_shift_opened done [09:32:09]requested_item shift.open_date is exist - process it [09:32:09]req_shift_open_date [09:32:09]req_shift_open_date done [09:32:09]produce_requested_data done [09:32:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188137,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:32:09]process_action_free close_receipt [09:32:09]json_value_free [09:32:09]json_value_free done [09:32:09]process_json_proto returns [09:32:09]Send response to host [09:32:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188137,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:32:09]free response buf [09:32:09]execute_script done [09:32:09]execute_script returns [09:32:09]free content buf [09:32:09]Sock 9.Close socket [09:32:09]Sock 9.Thread stoped [09:32:13]OFD Sender: No OFD packet to send [09:32:18]OFD Sender: No OFD packet to send [09:32:23]int [09:32:23]Write to MH i2c: 01 00 00 6B 35 A0 [09:32:23]*** FLAG_PRN_PAP2 set [09:32:23]Write i2c OK [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: 01 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: 01 07 00 [09:32:23]MH_I2C_Read... [09:32:23]Read from MH i2c: 01 07 00 6B 35 00 02 00 00 00 FF 0F B7 [09:32:23]state=0 [09:32:23]Cover opened [09:32:23]OFD Sender: No OFD packet to send [09:32:24]int [09:32:24]Write to MH i2c: 01 00 00 6C 35 A1 [09:32:24]*** FLAG_PRN_PAP2 reset [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 6C 35 00 00 00 00 00 FF 0F B6 [09:32:24]state=3 [09:32:24]Cover closed [09:32:24]int [09:32:24]Write to MH i2c: 01 00 00 6D 35 A2 [09:32:24]*** FLAG_PRN_PAP2 set [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 6D 35 00 02 00 00 00 FF 0F B9 [09:32:24]state=0 [09:32:24]Cover opened [09:32:24]int [09:32:24]Write to MH i2c: 01 00 00 6E 35 A3 [09:32:24]*** FLAG_PRN_PAP2 reset [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 6E 35 00 00 00 00 00 FF 0F B8 [09:32:24]state=3 [09:32:24]Cover closed [09:32:24]int [09:32:24]Write to MH i2c: 01 00 00 6F 35 A4 [09:32:24]*** FLAG_PRN_PAP2 set [09:32:24]Write i2c OK [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 [09:32:24]MH_I2C_Read... [09:32:24]Read from MH i2c: 01 07 00 6F 35 00 02 00 00 00 FF 0F BB [09:32:24]state=0 [09:32:24]Cover opened [09:32:28]OFD Sender: No OFD packet to send [09:32:29]Write to MH i2c: 01 00 00 70 35 A5 [09:32:29]Write i2c OK [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 07 00 [09:32:29]MH_I2C_Read... [09:32:29]Read from MH i2c: 01 07 00 70 35 00 02 00 00 00 FF 0F BC [09:32:29]state=3 [09:32:29]Cover opened [09:32:33]OFD Sender: No OFD packet to send [09:32:34]accept exits with 8 [09:32:34]New connection [09:32:34]New thread 3067198820 created [09:32:34]Thread 3067055460 joined [09:32:34]Waiting for new connection... [09:32:34] Sock 8.Parse request [09:32:34]Sock 8.Check first char [09:32:34]Sock 8.First char is OK [09:32:34]request: POST /json_proto HTTP/1.0 [09:32:34]Method: POST [09:32:34]URL: /json_proto [09:32:34]Method is POST - this is cgi request [09:32:34]url: /json_proto [09:32:34]query_string will be loaded in cgi processing [09:32:34]execute_cgi json_proto POST (null) [09:32:34]execute_cgi path=json_proto method=POST [09:32:34]POST find Content-Length [09:32:34]Host: 172.17.42.131:8080 [09:32:34]Content-Length: 806 [09:32:34]Content-Type: application/json [09:32:34] [09:32:34]POST finish read [09:32:34]Found Content-Length = 806 [09:32:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913816.17.18", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:34]execute_script... [09:32: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)210190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913816.17.18", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:34]POST & json_proto [09:32:34]process_json_proto [09:32:34]json parsed OK: [09:32:34]protocol is kg_v1.0 [09:32:34]action value=close_receipt [09:32:34]process_action close_receipt [09:32:34]cmd_close_receipt [09:32:34]MH_GetDate [09:32:34]Write to MH i2c: F0 00 00 71 35 95 [09:32:34]Write i2c OK [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: F0 [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: F0 09 00 [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: F0 09 00 71 35 00 35 71 17 67 A0 18 CA 66 AA [09:32:34]GetLastDocTimeStamp 1729589528 [09:32:34]current date 1729589557 [09:32:34]FM_GetShiftState [09:32:34]SAM_PROTO_GetShiftState [09:32:34]wFMCommunicate request_size=4 [09:32:34]MH_SAM_APDU [09:32:34]CAPDU: 80 13 01 00 [09:32:34]Write to MH i2c: E2 08 00 72 35 80 13 01 00 00 00 00 00 24 [09:32:34]Write i2c OK [09:32:34]MH_I2C_Read... [09:32:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:34]Read from MH i2c: E2 [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: E2 0E 00 [09:32:34]MH_I2C_Read... [09:32:34]Read from MH i2c: E2 0E 00 72 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 19 [09:32:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:32:34]wFMCommunicate OK [09:32:34]SAM_PROTO_GetShiftState done [09:32:34]FM_GetShiftState done [09:32:34]opened in 1729556094 [09:32:34]opened+sec_in_day 1729642494 [09:32:34]quantity*price = 0 [09:32:34]sum+1 = 1 [09:32:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 167 22.10.2024 09:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913816.17.18 ФМ: 0000000000965340 ФД: 188138 ФПД: 55313713094956 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093237&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188138&fm=55313713094956&tin=02508201610067®Number=0000000000100030&sum=0 [09:32:35]StoreToDocumentArchive [09:32:35]shift 461 fd 188138 [09:32:35]save to /storage/0461/doc_00188138 [09:32:35]save last doc name /storage/0461/doc_00188138 to /storage/kkm_last_doc_name [09:32:35]save OK [09:32:35]Clear old archive folders... [09:32:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:35]tlvbuf is 01BAD3E0 [09:32:35]SAM_PROTO_ClearQueue [09:32:35]wFMCommunicate request_size=4 [09:32:35]MH_SAM_APDU [09:32:35]CAPDU: 80 09 00 00 [09:32:35]Write to MH i2c: E2 08 00 80 35 80 09 00 00 00 00 00 00 27 [09:32:35]Write i2c OK [09:32:35]MH_I2C_Read... [09:32:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:35]Read from MH i2c: E2 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 03 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 03 00 80 35 00 90 00 29 [09:32:35]RAPDU: 90 00 [09:32:35]wFMCommunicate OK [09:32:35]SAM_PROTO_ClearQueue done [09:32:35]KKMCreateOFDPacket [09:32:35]OFDProtocolAddRootSTLVToBuf [09:32:35]FM_MakeSignedData [09:32:35]FM_MakeSignedData [09:32:35]SAM_PROTO_SignData [09:32:35]wFMCommunicate request_size=4 [09:32:35]MH_SAM_APDU [09:32:35]CAPDU: 80 0D 01 02 [09:32:35]Write to MH i2c: E2 08 00 81 35 80 0D 01 02 00 00 00 00 2F [09:32:35]Write i2c OK [09:32:35]MH_I2C_Read... [09:32:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:35]Read from MH i2c: E2 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 03 00 [09:32:35]MH_I2C_Read... [09:32:35]Read from MH i2c: E2 03 00 81 35 00 90 00 2A [09:32:35]RAPDU: 90 00 [09:32:35]wFMCommunicate OK [09:32:35]wFMCommunicate request_size=255 [09:32:35]MH_SAM_APDU [09:32: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 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 35 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DE 02 00 35 04 06 00 32 [09:32:35]Write to MH i2c: E2 02 01 82 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 35 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DE 02 00 35 04 06 00 32 00 00 57 [09:32:35]Write i2c OK [09:32:35]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 82 35 00 90 00 2B [09:32:36]RAPDU: 90 00 [09:32:36]wFMCommunicate OK [09:32:36]wFMCommunicate request_size=10 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 0D 02 02 05 4E BA 38 61 2C [09:32:36]Write to MH i2c: E2 0D 00 83 35 80 0D 02 02 05 00 4E BA 38 61 2C 00 00 09 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 03 00 83 35 00 90 00 2C [09:32:36]RAPDU: 90 00 [09:32:36]wFMCommunicate OK [09:32:36]wFMCommunicate request_size=4 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 0D 03 02 [09:32:36]Write to MH i2c: E2 08 00 84 35 80 0D 03 02 00 00 00 00 34 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 0B 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 0B 00 84 35 00 67 6E 47 D8 58 26 45 59 90 00 45 [09:32:36]RAPDU: 67 6E 47 D8 58 26 45 59 90 00 [09:32:36]wFMCommunicate OK [09:32:36]SAM_PROTO_SignData done [09:32:36]FM_MakeSignedData done [09:32:36]CreateOFDProtocolMessage [09:32:36]wFMCommunicate request_size=4 [09:32:36]MH_SAM_APDU [09:32:36]CAPDU: 80 11 00 00 [09:32:36]Write to MH i2c: E2 08 00 85 35 80 11 00 00 00 00 00 00 34 [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:36]Read from MH i2c: E2 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 17 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: E2 17 00 85 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [09:32:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:36]wFMCommunicate OK [09:32:36]CreateOFDProtocolMessage done [09:32:36]OFDSenderStorePacket 188138 [09:32:36]StoreOFDPacket docnum=188138 [09:32:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A 90 07 01 D9 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 35 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DE 02 00 35 04 06 00 32 4E BA 38 61 2C 67 6E 47 D8 58 26 45 59 [09:32:36]CheckFolder [09:32:36]dirname=/storage/ofd_packets [09:32:36]CheckFolder done [09:32:36]ProducePacketName [09:32:36]name=ofd_packets/00188138 [09:32:36]NVStorageSaveData ofd_packets/00188138 [09:32:36]File name is /storage/ofd_packets/00188138 [09:32:36]Write 301 bytes [09:32:36]NVStorageSaveData done [09:32:36]OFDSenderStorePacket done [09:32:36]KKMCreateOFDPacket done [09:32:36]NVStorageSaveData kkm_last_timestamp [09:32:36]File name is /storage/kkm_last_timestamp [09:32:36]Write 4 bytes [09:32:36]NVStorageSaveData done [09:32:36]ExternCall_PrintAddStr [09:32:36]wPrintStart [09:32:36]Write to MH i2c: 01 00 00 86 35 BB [09:32:36]Write i2c OK [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: 01 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: 01 07 00 [09:32:36]MH_I2C_Read... [09:32:36]Read from MH i2c: 01 07 00 86 35 00 02 00 00 00 FF 0F D2 [09:32:36]RasterBufferAndPrint [09:32:36]line Счет N : (1)210190 [09:32:36]line ИНН: 02508201610067 [09:32:36]line Контрольно-Кассовый Чек [09:32:36]line ПРОДАЖА [09:32:36]line ТРК (МРК, ГНК) : 22 [09:32:36]line Товар: 2710124130 [09:32:36]line Аи-92-К-3 [09:32:36]line 30.000 * 0.00 [09:32:36]line = 0.00 [09:32:36]line НДС 12% НСП 1% [09:32:36]line > о реализуемом товаре [09:32:36]line ИТОГО: 0.00 [09:32:36]line НСП 1% : 0.00 [09:32:36]line НДС 12% : 0.00 [09:32:36]line Наличными: 0.00 [09:32:36]line Безнал.: 0.00 [09:32:36]line Место: АЗС № 86 "Партнер Нефть" [09:32:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:36]line СНО: Общий режим [09:32:36]line Чек 167 22.10.2024 09:32 [09:32:36]line Смена: 461 ФФД: 1.0 [09:32:36]line ЗНМ: 0300000155 [09:32:36]line РНМ: 0000000000100030 [09:32:36]line Версия ККМ: 001 [09:32:36]line Талоны: Топливные Талоны [09:32:36]line 3913816.17.18 [09:32:36]line ФМ: 0000000000965340 [09:32:36]line ФД: 188138 [09:32:36]line ФПД: 55313713094956 [09:32:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093237&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188138&fm=55313713094956&tin=02508201610067®Number=0000000000100030&sum=0 [09:32:36]written 0, free lines is 4095 [09:32:36]Error from MH - 05 [09:32:36]process_action_free close_receipt [09:32:36]json_value_free [09:32:36]json_value_free done [09:32:36]process_json_proto returns [09:32:36]Send response to host [09:32:36]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [09:32:36]free response buf [09:32:36]execute_script done [09:32:36]execute_script returns [09:32:36]free content buf [09:32:36]Sock 8.Close socket [09:32:36]Sock 8.Thread stoped [09:32:36]OFD Sender: Processing packet 188138 [packets to send 1062, broken 1061] [09:32:36]ProducePacketName [09:32:36]name=ofd_packets/00188138 [09:32:36]OFD Sender: To server: pG, [09:32:36]CommunicateWithHost lk.salyk.kg:30040 [09:32:36]ConnectInit lk.salyk.kg [09:32:36]Connected sock=8 [09:32:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A 90 07 01 D9 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A7 00 00 00 F4 03 04 00 35 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EA DE 02 00 35 04 06 00 32 4E BA 38 61 2C 67 6E 47 D8 58 26 45 59 [09:32:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F1 35 47 00 1B 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 39 36 35 33 34 30 10 04 04 00 EA DE 02 00 F4 03 04 00 23 1B 17 67 B6 04 01 00 00 18 E0 5F B8 3F F4 98 2A [09:32:37]CommunicateWithHost err = 0 [09:32:37]CheckOFDResponse [09:32:37]1017 (14) - 77093643461234 [09:32:37]1041 (16) - 0000000000965340 [09:32:37]1040 (4) - 188138 [09:32:37]1012 (4) - 22.10.2024 03:25 [09:32:37]1206 (1) - 0 [09:32:37]OFD Sender: Remove packet 188138 [09:32:37]ProducePacketName [09:32:37]name=ofd_packets/00188138 [09:32:37]NVStorageDeleteData [09:32:37]OFD Sender: No OFD packet to send [09:32:38]int [09:32:38]Write to MH i2c: 01 00 00 89 35 BE [09:32:38]*** FLAG_PRN_PAP2 reset [09:32:38]Write i2c OK [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: 01 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: 01 07 00 [09:32:38]MH_I2C_Read... [09:32:38]Read from MH i2c: 01 07 00 89 35 00 00 00 00 00 FF 0F D3 [09:32:38]state=3 [09:32:38]Cover closed [09:32:42]OFD Sender: No OFD packet to send [09:32:43]accept exits with 10 [09:32:43]New connection [09:32:43]New thread 3067055460 created [09:32:43]Thread 3067198820 joined [09:32:43]Waiting for new connection... [09:32:43] Sock 10.Parse request [09:32:43]Sock 10.Check first char [09:32:43]Sock 10.First char is OK [09:32:43]request: POST /json_proto HTTP/1.0 [09:32:43]Method: POST [09:32:43]URL: /json_proto [09:32:43]Method is POST - this is cgi request [09:32:43]url: /json_proto [09:32:43]query_string will be loaded in cgi processing [09:32:43]execute_cgi json_proto POST (null) [09:32:43]execute_cgi path=json_proto method=POST [09:32:43]POST find Content-Length [09:32:43]Host: 172.17.42.131:8080 [09:32:43]Content-Length: 215 [09:32:43]Content-Type: application/json [09:32:43] [09:32:43]POST finish read [09:32:43]Found Content-Length = 215 [09:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:43]execute_script... [09:32:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:43]POST & json_proto [09:32:43]process_json_proto [09:32:43]json parsed OK: [09:32:43]protocol is kg_v1.0 [09:32:43]action value=get_value [09:32:43]process_action get_value [09:32:43]cmd_get_value [09:32:43]process_action get_value done [09:32:43]requested_data is exist [09:32:43]produce_requested_data [09:32:43]requested_item kkm.sn is exist - process it [09:32:43]requested_item kkm.ver is exist - process it [09:32:43]requested_item fm.sn is exist - process it [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 11 00 00 [09:32:43]Write to MH i2c: E2 08 00 8A 35 80 11 00 00 00 00 00 00 39 [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 17 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 17 00 8A 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 87 [09:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:43]wFMCommunicate OK [09:32:43]requested_item fd.num is exist - process it [09:32:43]SAM_PROTO_GetFieldsCounters [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 13 00 00 [09:32:43]Write to MH i2c: E2 08 00 8B 35 80 13 00 00 00 00 00 00 3C [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 62 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 62 00 8B 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 D0 [09:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A7 00 00 00 5E 04 04 00 A7 00 00 00 57 04 04 00 A8 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:43]wFMCommunicate OK [09:32:43]SAM_PROTO_GetFieldsCounters done [09:32:43]requested_item shift.num is exist - process it [09:32:43]requested_item shift.opened is exist - process it [09:32:43]req_shift_opened [09:32:43]FM_GetShiftState [09:32:43]SAM_PROTO_GetShiftState [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 13 01 00 [09:32:43]Write to MH i2c: E2 08 00 8C 35 80 13 01 00 00 00 00 00 3E [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:43]Read from MH i2c: E2 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 0E 00 [09:32:43]MH_I2C_Read... [09:32:43]Read from MH i2c: E2 0E 00 8C 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 33 [09:32:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:32:43]wFMCommunicate OK [09:32:43]SAM_PROTO_GetShiftState done [09:32:43]FM_GetShiftState done [09:32:43]req_shift_opened done [09:32:43]requested_item shift.open_date is exist - process it [09:32:43]req_shift_open_date [09:32:43]req_shift_open_date done [09:32:43]produce_requested_data done [09:32:43]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188138,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:32:43]process_action_free get_value [09:32:43]json_value_free [09:32:43]json_value_free done [09:32:43]process_json_proto returns [09:32:43]Send response to host [09:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188138,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:32:43]free response buf [09:32:43]execute_script done [09:32:43]execute_script returns [09:32:43]free content buf [09:32:43]Sock 10.Close socket [09:32:43]Sock 10.Thread stoped [09:32:43]accept exits with 8 [09:32:43]New connection [09:32:43]New thread 3067198820 created [09:32:43]Thread 3067055460 joined [09:32:43]Waiting for new connection... [09:32:43] Sock 8.Parse request [09:32:43]Sock 8.Check first char [09:32:43]Sock 8.First char is OK [09:32:43]request: POST /json_proto HTTP/1.0 [09:32:43]Method: POST [09:32:43]URL: /json_proto [09:32:43]Method is POST - this is cgi request [09:32:43]url: /json_proto [09:32:43]query_string will be loaded in cgi processing [09:32:43]execute_cgi json_proto POST (null) [09:32:43]execute_cgi path=json_proto method=POST [09:32:43]POST find Content-Length [09:32:43]Host: 172.17.42.131:8080 [09:32:43]Content-Length: 331 [09:32:43]Content-Type: application/json [09:32:43] [09:32:43]POST finish read [09:32:43]Found Content-Length = 331 [09:32:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:32:43]execute_script... [09:32:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [09:32:43]POST & json_proto [09:32:43]process_json_proto [09:32:43]json parsed OK: [09:32:43]protocol is kg_v1.0 [09:32:43]action value=get_value [09:32:43]process_action get_value [09:32:43]cmd_get_value [09:32:43]process_action get_value done [09:32:43]requested_data is exist [09:32:43]produce_requested_data [09:32:43]requested_item fm.sale.total is exist - process it [09:32:43]SAM_PROTO_GetFMData [09:32:43]wFMCommunicate request_size=4 [09:32:43]MH_SAM_APDU [09:32:43]CAPDU: 80 13 03 00 [09:32:43]Write to MH i2c: E2 08 00 8D 35 80 13 03 00 00 00 00 00 41 [09:32:43]Write i2c OK [09:32:43]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 FD 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 FD 00 8D 35 00 CB 04 85 04 C7 04 6E 04 04 00 50 DB 02 00 69 04 A4 00 6F 04 04 00 C1 DA 02 00 B1 04 05 00 A2 74 55 B9 06 70 04 05 00 F8 CF 51 A0 04 72 04 05 00 AA A4 03 19 02 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 89 C8 D4 B6 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 4E 2C 3C 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 25 [09:32:44]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 50 DB 02 00 69 04 A4 00 6F 04 04 00 C1 DA 02 00 B1 04 05 00 A2 74 55 B9 06 70 04 05 00 F8 CF 51 A0 04 72 04 05 00 AA A4 03 19 02 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 89 C8 D4 B6 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 4E 2C 3C 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [09:32:44]wFMCommunicate OK [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 17 00 00 [09:32:44]Write to MH i2c: E2 08 00 8E 35 80 17 00 00 00 00 00 00 43 [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 FD 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 FD 00 8E 35 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 10 [09:32:44]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [09:32:44]wFMCommunicate OK [09:32:44]wFMCommunicate request_size=4 [09:32:44]MH_SAM_APDU [09:32:44]CAPDU: 80 17 00 00 [09:32:44]Write to MH i2c: E2 08 00 8F 35 80 17 00 00 00 00 00 00 44 [09:32:44]Write i2c OK [09:32:44]MH_I2C_Read... [09:32:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:44]Read from MH i2c: E2 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 FD 00 [09:32:44]MH_I2C_Read... [09:32:44]Read from MH i2c: E2 FD 00 8F 35 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1F [09:32:45]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:32:45]wFMCommunicate OK [09:32:45]wFMCommunicate request_size=4 [09:32:45]MH_SAM_APDU [09:32:45]CAPDU: 80 17 00 00 [09:32:45]Write to MH i2c: E2 08 00 90 35 80 17 00 00 00 00 00 00 45 [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:45]Read from MH i2c: E2 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 FD 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 FD 00 90 35 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C3 [09:32:45]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:32:45]wFMCommunicate OK [09:32:45]wFMCommunicate request_size=4 [09:32:45]MH_SAM_APDU [09:32:45]CAPDU: 80 17 00 00 [09:32:45]Write to MH i2c: E2 08 00 91 35 80 17 00 00 00 00 00 00 46 [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [09:32:45]Read from MH i2c: E2 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 E8 00 [09:32:45]MH_I2C_Read... [09:32:45]Read from MH i2c: E2 E8 00 91 35 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 24 [09:32:45]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:32:45]wFMCommunicate OK [09:32:45]SAM_PROTO_GetFMData done [09:32:45]requested_item fm.sale_refund.total is exist - process it [09:32:45]requested_item fm.buy.total is exist - process it [09:32:45]requested_item shift.sale.total is exist - process it [09:32:45]SAM_PROTO_GetShiftData [09:32:45]wFMCommunicate request_size=4 [09:32:45]MH_SAM_APDU [09:32:45]CAPDU: 80 13 02 00 [09:32:45]Write to MH i2c: E2 08 00 92 35 80 13 02 00 00 00 00 00 45 [09:32:45]Write i2c OK [09:32:45]MH_I2C_Read... [09:32:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [09:32:46]Read from MH i2c: E2 [09:32:46]MH_I2C_Read... [09:32:46]Read from MH i2c: E2 FD 00 [09:32:46]MH_I2C_Read... [09:32:46]Read from MH i2c: E2 FD 00 92 35 00 B1 04 AA 04 AD 04 6E 04 04 00 A7 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 03 40 56 01 70 04 04 00 2C FD 34 01 72 04 03 00 D7 42 21 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 64 5A 24 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 7A 07 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 02 [09:32:46]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 A7 00 00 00 69 04 9E 00 6F 04 04 00 A7 00 00 00 B1 04 04 00 03 40 56 01 70 04 04 00 2C FD 34 01 72 04 03 00 D7 42 21 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 64 5A 24 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 7A 07 03 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [09:32:46]wFMCommunicate OK [09:32:46]wFMCommunicate request_size=4 [09:32:46]MH_SAM_APDU [09:32:46]CAPDU: 80 17 00 00 [09:32:46]Write to MH i2c: E2 08 00 93 35 80 17 00 00 00 00 00 00 48 [09:32:46]Write i2c OK [09:32:46]MH_I2C_Read... [09:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:46]Read from MH i2c: E2 [09:32:46]MH_I2C_Read... [09:32:46]Read from MH i2c: E2 FD 00 [09:32:46]MH_I2C_Read... [09:32:46]Read from MH i2c: E2 FD 00 93 35 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 61 [09:32:46]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:32:46]wFMCommunicate OK [09:32:46]wFMCommunicate request_size=4 [09:32:46]MH_SAM_APDU [09:32:46]CAPDU: 80 17 00 00 [09:32:46]Write to MH i2c: E2 08 00 94 35 80 17 00 00 00 00 00 00 49 [09:32:46]Write i2c OK [09:32:46]MH_I2C_Read... [09:32:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:46]Read from MH i2c: E2 [09:32:46]MH_I2C_Read... [09:32:46]Read from MH i2c: E2 FD 00 [09:32:46]MH_I2C_Read... [09:32:46]Read from MH i2c: E2 FD 00 94 35 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [09:32:46]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [09:32:46]wFMCommunicate OK [09:32:46]wFMCommunicate request_size=4 [09:32:46]MH_SAM_APDU [09:32:46]CAPDU: 80 17 00 00 [09:32:46]Write to MH i2c: E2 08 00 95 35 80 17 00 00 00 00 00 00 4A [09:32:46]Write i2c OK [09:32:46]MH_I2C_Read... [09:32:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [09:32:47]Read from MH i2c: E2 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 FD 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 FD 00 95 35 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 90 00 C2 [09:32:47]RAPDU: 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 90 00 [09:32:47]wFMCommunicate OK [09:32:47]wFMCommunicate request_size=4 [09:32:47]MH_SAM_APDU [09:32:47]CAPDU: 80 17 00 00 [09:32:47]Write to MH i2c: E2 08 00 96 35 80 17 00 00 00 00 00 00 4B [09:32:47]Write i2c OK [09:32:47]MH_I2C_Read... [09:32:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [09:32:47]Read from MH i2c: E2 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 CE 00 [09:32:47]MH_I2C_Read... [09:32:47]Read from MH i2c: E2 CE 00 96 35 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 30 [09:32:47]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [09:32:47]wFMCommunicate OK [09:32:47]SAM_PROTO_GetShiftData done [09:32:47]requested_item shift.sale.total_cash is exist - process it [09:32:47]requested_item shift.sale_refund.total is exist - process it [09:32:47]requested_item shift.sale_refund.total_cash is exist - process it [09:32:47]requested_item shift.buy.total is exist - process it [09:32:47]requested_item shift.buy.total_cash is exist - process it [09:32:47]produce_requested_data done [09:32:47]produce_requested_data return {"fm.sale.total":288791891.54,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":224296.99,"shift.sale.total_cash":202499.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [09:32:47]process_action_free get_value [09:32:47]json_value_free [09:32:47]json_value_free done [09:32:47]process_json_proto returns [09:32:47]Send response to host [09:32:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288791891.54,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":224296.99,"shift.sale.total_cash":202499.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [09:32:47]free response buf [09:32:47]execute_script done [09:32:47]execute_script returns [09:32:47]free content buf [09:32:47]Sock 8.Close socket [09:32:47]Sock 8.Thread stoped [09:32:47]OFD Sender: No OFD packet to send [09:32:48]accept exits with 9 [09:32:48]New connection [09:32:48]New thread 3067055460 created [09:32:48]Thread 3067198820 joined [09:32:48]Waiting for new connection... [09:32:48] Sock 9.Parse request [09:32:48]Sock 9.Check first char [09:32:48]Sock 9.First char is OK [09:32:48]request: POST /json_proto HTTP/1.0 [09:32:48]Method: POST [09:32:48]URL: /json_proto [09:32:48]Method is POST - this is cgi request [09:32:48]url: /json_proto [09:32:48]query_string will be loaded in cgi processing [09:32:48]execute_cgi json_proto POST (null) [09:32:48]execute_cgi path=json_proto method=POST [09:32:48]POST find Content-Length [09:32:48]Host: 172.17.42.131:8080 [09:32:48]Content-Length: 806 [09:32:48]Content-Type: application/json [09:32:48] [09:32:48]POST finish read [09:32:48]Found Content-Length = 806 [09:32:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913816.17.18", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:48]execute_script... [09:32: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)210190", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913816.17.18", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:32:48]POST & json_proto [09:32:48]process_json_proto [09:32:48]json parsed OK: [09:32:48]protocol is kg_v1.0 [09:32:48]action value=close_receipt [09:32:48]process_action close_receipt [09:32:48]cmd_close_receipt [09:32:48]MH_GetDate [09:32:48]Write to MH i2c: F0 00 00 97 35 BB [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: F0 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: F0 09 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: F0 09 00 97 35 00 42 71 17 67 A0 18 CA 66 DD [09:32:48]GetLastDocTimeStamp 1729589557 [09:32:48]current date 1729589570 [09:32:48]FM_GetShiftState [09:32:48]SAM_PROTO_GetShiftState [09:32:48]wFMCommunicate request_size=4 [09:32:48]MH_SAM_APDU [09:32:48]CAPDU: 80 13 01 00 [09:32:48]Write to MH i2c: E2 08 00 98 35 80 13 01 00 00 00 00 00 4A [09:32:48]Write i2c OK [09:32:48]MH_I2C_Read... [09:32:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:48]Read from MH i2c: E2 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 0E 00 [09:32:48]MH_I2C_Read... [09:32:48]Read from MH i2c: E2 0E 00 98 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3F [09:32:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:32:48]wFMCommunicate OK [09:32:48]SAM_PROTO_GetShiftState done [09:32:48]FM_GetShiftState done [09:32:48]opened in 1729556094 [09:32:48]opened+sec_in_day 1729642494 [09:32:48]quantity*price = 0 [09:32:48]sum+1 = 1 [09:32:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 168 22.10.2024 09:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913816.17.18 ФМ: 0000000000965340 ФД: 188139 ФПД: 5479099698448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188139&fm=5479099698448&tin=02508201610067®Number=0000000000100030&sum=0 [09:32:49]StoreToDocumentArchive [09:32:49]shift 461 fd 188139 [09:32:49]save to /storage/0461/doc_00188139 [09:32:49]save last doc name /storage/0461/doc_00188139 to /storage/kkm_last_doc_name [09:32:49]save OK [09:32:49]Clear old archive folders... [09:32:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:32:49]tlvbuf is 01BD24D0 [09:32:49]SAM_PROTO_ClearQueue [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 09 00 00 [09:32:49]Write to MH i2c: E2 08 00 A5 35 80 09 00 00 00 00 00 00 4C [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 A5 35 00 90 00 4E [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]SAM_PROTO_ClearQueue done [09:32:49]KKMCreateOFDPacket [09:32:49]OFDProtocolAddRootSTLVToBuf [09:32:49]FM_MakeSignedData [09:32:49]FM_MakeSignedData [09:32:49]SAM_PROTO_SignData [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 0D 01 02 [09:32:49]Write to MH i2c: E2 08 00 A6 35 80 0D 01 02 00 00 00 00 54 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 A6 35 00 90 00 4F [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]wFMCommunicate request_size=255 [09:32:49]MH_SAM_APDU [09:32: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 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 42 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DE 02 00 35 04 06 00 04 [09:32:49]Write to MH i2c: E2 02 01 A7 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 42 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DE 02 00 35 04 06 00 04 00 00 5D [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 A7 35 00 90 00 50 [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]wFMCommunicate request_size=10 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 0D 02 02 05 FB B3 CA 8D 10 [09:32:49]Write to MH i2c: E2 0D 00 A8 35 80 0D 02 02 05 00 FB B3 CA 8D 10 00 00 76 [09:32:49]Write i2c OK [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 [09:32:49]MH_I2C_Read... [09:32:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:32:49]Read from MH i2c: E2 03 00 [09:32:49]MH_I2C_Read... [09:32:49]Read from MH i2c: E2 03 00 A8 35 00 90 00 51 [09:32:49]RAPDU: 90 00 [09:32:49]wFMCommunicate OK [09:32:49]wFMCommunicate request_size=4 [09:32:49]MH_SAM_APDU [09:32:49]CAPDU: 80 0D 03 02 [09:32:49]Write to MH i2c: E2 08 00 A9 35 80 0D 03 02 00 00 00 00 59 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 0B 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 0B 00 A9 35 00 0D EA 62 76 10 13 E8 9D 90 00 D1 [09:32:50]RAPDU: 0D EA 62 76 10 13 E8 9D 90 00 [09:32:50]wFMCommunicate OK [09:32:50]SAM_PROTO_SignData done [09:32:50]FM_MakeSignedData done [09:32:50]CreateOFDProtocolMessage [09:32:50]wFMCommunicate request_size=4 [09:32:50]MH_SAM_APDU [09:32:50]CAPDU: 80 11 00 00 [09:32:50]Write to MH i2c: E2 08 00 AA 35 80 11 00 00 00 00 00 00 59 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:50]Read from MH i2c: E2 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 17 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: E2 17 00 AA 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [09:32:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:50]wFMCommunicate OK [09:32:50]CreateOFDProtocolMessage done [09:32:50]OFDSenderStorePacket 188139 [09:32:50]StoreOFDPacket docnum=188139 [09:32:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 18 07 01 17 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 42 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DE 02 00 35 04 06 00 04 FB B3 CA 8D 10 0D EA 62 76 10 13 E8 9D [09:32:50]CheckFolder [09:32:50]dirname=/storage/ofd_packets [09:32:50]CheckFolder done [09:32:50]ProducePacketName [09:32:50]name=ofd_packets/00188139 [09:32:50]NVStorageSaveData ofd_packets/00188139 [09:32:50]File name is /storage/ofd_packets/00188139 [09:32:50]Write 301 bytes [09:32:50]NVStorageSaveData done [09:32:50]OFDSenderStorePacket done [09:32:50]KKMCreateOFDPacket done [09:32:50]NVStorageSaveData kkm_last_timestamp [09:32:50]File name is /storage/kkm_last_timestamp [09:32:50]Write 4 bytes [09:32:50]NVStorageSaveData done [09:32:50]ExternCall_PrintAddStr [09:32:50]wPrintStart [09:32:50]Write to MH i2c: 01 00 00 AB 35 E0 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 07 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 07 00 AB 35 00 00 00 00 00 FF 0F F5 [09:32:50]RasterBufferAndPrint [09:32:50]line Счет N : (1)210190 [09:32:50]line ИНН: 02508201610067 [09:32:50]line Контрольно-Кассовый Чек [09:32:50]line ПРОДАЖА [09:32:50]line ТРК (МРК, ГНК) : 22 [09:32:50]line Товар: 2710124130 [09:32:50]line Аи-92-К-3 [09:32:50]line 30.000 * 0.00 [09:32:50]line = 0.00 [09:32:50]line НДС 12% НСП 1% [09:32:50]line > о реализуемом товаре [09:32:50]line ИТОГО: 0.00 [09:32:50]line НСП 1% : 0.00 [09:32:50]line НДС 12% : 0.00 [09:32:50]line Наличными: 0.00 [09:32:50]line Безнал.: 0.00 [09:32:50]line Место: АЗС № 86 "Партнер Нефть" [09:32:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:32:50]line СНО: Общий режим [09:32:50]line Чек 168 22.10.2024 09:32 [09:32:50]line Смена: 461 ФФД: 1.0 [09:32:50]line ЗНМ: 0300000155 [09:32:50]line РНМ: 0000000000100030 [09:32:50]line Версия ККМ: 001 [09:32:50]line Талоны: Топливные Талоны [09:32:50]line 3913816.17.18 [09:32:50]line ФМ: 0000000000965340 [09:32:50]line ФД: 188139 [09:32:50]line ФПД: 5479099698448 [09:32:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188139&fm=5479099698448&tin=02508201610067®Number=0000000000100030&sum=0 [09:32:50]written 0, free lines is 4095 [09:32:50]OFD Sender: Processing packet 188139 [packets to send 1062, broken 1061] [09:32:50]ProducePacketName [09:32:50]name=ofd_packets/00188139 [09:32:50]OFD Sender: To server: pG, [09:32:50]CommunicateWithHost lk.salyk.kg:30040 [09:32:50]ConnectInit lk.salyk.kg [09:32:50]Connected sock=8 [09:32:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 18 07 01 17 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A8 00 00 00 F4 03 04 00 42 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EB DE 02 00 35 04 06 00 04 FB B3 CA 8D 10 0D EA 62 76 10 13 E8 9D [09:32:50]Write to MH i2c: 01 00 00 D5 35 0A [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 07 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: 01 07 00 D5 35 00 00 00 00 00 7A 0C 97 [09:32:50]RasterBufferAndPrint [09:32:50]line [09:32:50]line [09:32:50]line [09:32:50]line [09:32:50]line [09:32:50]written 0, free lines is 3211 [09:32:50]MH_Cut [09:32:50]Write to MH i2c: D1 01 00 DC 35 01 E3 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: D1 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: D1 01 00 [09:32:50]MH_I2C_Read... [09:32:50]Read from MH i2c: D1 01 00 DC 35 00 E2 [09:32:50]Write to MH i2c: 01 00 00 DD 35 12 [09:32:50]Write i2c OK [09:32:50]MH_I2C_Read... [09:32:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC 94 47 00 F1 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 39 36 35 33 34 30 10 04 04 00 EB DE 02 00 F4 03 04 00 30 1B 17 67 B6 04 01 00 00 B7 8D DC F4 97 6F 92 B4 [09:32:50]CommunicateWithHost err = 0 [09:32:50]CheckOFDResponse [09:32:50]1017 (14) - 77093643461234 [09:32:50]1041 (16) - 0000000000965340 [09:32:50]1040 (4) - 188139 [09:32:50]1012 (4) - 22.10.2024 03:25 [09:32:50]1206 (1) - 0 [09:32:50]OFD Sender: Remove packet 188139 [09:32:50]ProducePacketName [09:32:50]name=ofd_packets/00188139 [09:32:50]NVStorageDeleteData [09:32:51]OFD Sender: No OFD packet to send [09:32:51]*** Cut start [09:32:51]*** Partial cut [09:32:51]*** CUTSNS_PIN = 1 [09:32:51]*** CUTSNS_PIN = 0 [09:32:52]*** Brake cut motor [09:32:52]Read from MH i2c: 01 [09:32:52]MH_I2C_Read... [09:32:52]*** Stop cut motor [09:32:52]*** Cut end [09:32:52]Read from MH i2c: 01 07 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: 01 07 00 DD 35 00 00 00 00 00 FF 0F 27 [09:32:52]process_action close_receipt done [09:32:52]requested_data is exist [09:32:52]produce_requested_data [09:32:52]requested_item fm.sn is exist - process it [09:32:52]wFMCommunicate request_size=4 [09:32:52]MH_SAM_APDU [09:32:52]CAPDU: 80 11 00 00 [09:32:52]Write to MH i2c: E2 08 00 DE 35 80 11 00 00 00 00 00 00 8D [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 [09:32:52]MH_I2C_Read... [09:32:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:32:52]Read from MH i2c: E2 17 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 17 00 DE 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [09:32:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:32:52]wFMCommunicate OK [09:32:52]requested_item fd.num is exist - process it [09:32:52]SAM_PROTO_GetFieldsCounters [09:32:52]wFMCommunicate request_size=4 [09:32:52]MH_SAM_APDU [09:32:52]CAPDU: 80 13 00 00 [09:32:52]Write to MH i2c: E2 08 00 DF 35 80 13 00 00 00 00 00 00 90 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:32:52]Read from MH i2c: E2 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 62 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 62 00 DF 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 28 [09:32:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A8 00 00 00 5E 04 04 00 A8 00 00 00 57 04 04 00 A9 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:32:52]wFMCommunicate OK [09:32:52]SAM_PROTO_GetFieldsCounters done [09:32:52]requested_item shift.num is exist - process it [09:32:52]requested_item shift.opened is exist - process it [09:32:52]req_shift_opened [09:32:52]FM_GetShiftState [09:32:52]SAM_PROTO_GetShiftState [09:32:52]wFMCommunicate request_size=4 [09:32:52]MH_SAM_APDU [09:32:52]CAPDU: 80 13 01 00 [09:32:52]Write to MH i2c: E2 08 00 E0 35 80 13 01 00 00 00 00 00 92 [09:32:52]Write i2c OK [09:32:52]MH_I2C_Read... [09:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:32:52]Read from MH i2c: E2 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 0E 00 [09:32:52]MH_I2C_Read... [09:32:52]Read from MH i2c: E2 0E 00 E0 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 87 [09:32:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:32:52]wFMCommunicate OK [09:32:52]SAM_PROTO_GetShiftState done [09:32:52]FM_GetShiftState done [09:32:52]req_shift_opened done [09:32:52]requested_item shift.open_date is exist - process it [09:32:52]req_shift_open_date [09:32:52]req_shift_open_date done [09:32:52]produce_requested_data done [09:32:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188139,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:32:52]process_action_free close_receipt [09:32:52]json_value_free [09:32:52]json_value_free done [09:32:52]process_json_proto returns [09:32:52]Send response to host [09:32:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188139,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:32:52]free response buf [09:32:52]execute_script done [09:32:52]execute_script returns [09:32:52]free content buf [09:32:52]Sock 9.Close socket [09:32:52]Sock 9.Thread stoped [09:32:56]OFD Sender: No OFD packet to send [09:33:01]OFD Sender: No OFD packet to send [09:33:06]OFD Sender: No OFD packet to send [09:33:11]OFD Sender: No OFD packet to send [09:33:16]OFD Sender: No OFD packet to send [09:33:21]OFD Sender: No OFD packet to send [09:33:26]OFD Sender: No OFD packet to send [09:33:31]OFD Sender: No OFD packet to send [09:33:36]OFD Sender: No OFD packet to send [09:33:41]OFD Sender: No OFD packet to send [09:33:46]OFD Sender: No OFD packet to send [09:33:51]OFD Sender: No OFD packet to send [09:33:56]OFD Sender: No OFD packet to send [09:34:01]OFD Sender: No OFD packet to send [09:34:06]OFD Sender: No OFD packet to send [09:34:11]OFD Sender: No OFD packet to send [09:34:16]OFD Sender: No OFD packet to send [09:34:21]OFD Sender: No OFD packet to send [09:34:26]OFD Sender: No OFD packet to send [09:34:31]OFD Sender: No OFD packet to send [09:34:36]OFD Sender: No OFD packet to send [09:34:38]accept exits with 10 [09:34:38]New connection [09:34:38]New thread 3067198820 created [09:34:38]Thread 3067055460 joined [09:34:38]Waiting for new connection... [09:34:38] Sock 10.Parse request [09:34:38]Sock 10.Check first char [09:34:38]Sock 10.First char is OK [09:34:38]request: POST /json_proto HTTP/1.0 [09:34:38]Method: POST [09:34:38]URL: /json_proto [09:34:38]Method is POST - this is cgi request [09:34:38]url: /json_proto [09:34:38]query_string will be loaded in cgi processing [09:34:38]execute_cgi json_proto POST (null) [09:34:38]execute_cgi path=json_proto method=POST [09:34:38]POST find Content-Length [09:34:38]Host: 172.17.42.131:8080 [09:34:38]Content-Length: 769 [09:34:38]Content-Type: application/json [09:34:38] [09:34:38]POST finish read [09:34:38]Found Content-Length = 769 [09:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:38]execute_script... [09:34: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)210191", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:38]POST & json_proto [09:34:38]process_json_proto [09:34:38]json parsed OK: [09:34:38]protocol is kg_v1.0 [09:34:38]action value=close_receipt [09:34:38]process_action close_receipt [09:34:38]cmd_close_receipt [09:34:38]MH_GetDate [09:34:38]Write to MH i2c: F0 00 00 E1 35 05 [09:34:38]Write i2c OK [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: F0 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: F0 09 00 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: F0 09 00 E1 35 00 B1 71 17 67 A0 18 CA 66 96 [09:34:38]GetLastDocTimeStamp 1729589570 [09:34:38]current date 1729589681 [09:34:38]FM_GetShiftState [09:34:38]SAM_PROTO_GetShiftState [09:34:38]wFMCommunicate request_size=4 [09:34:38]MH_SAM_APDU [09:34:38]CAPDU: 80 13 01 00 [09:34:38]Write to MH i2c: E2 08 00 E2 35 80 13 01 00 00 00 00 00 94 [09:34:38]Write i2c OK [09:34:38]MH_I2C_Read... [09:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:38]Read from MH i2c: E2 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: E2 0E 00 [09:34:38]MH_I2C_Read... [09:34:38]Read from MH i2c: E2 0E 00 E2 35 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 89 [09:34:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:34:38]wFMCommunicate OK [09:34:38]SAM_PROTO_GetShiftState done [09:34:38]FM_GetShiftState done [09:34:38]opened in 1729556094 [09:34:38]opened+sec_in_day 1729642494 [09:34:38]quantity*price = 100015 [09:34:38]sum+1 = 100017 [09:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 169 22.10.2024 09:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188140 ФПД: 235773777986087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093441&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188140&fm=235773777986087&tin=02508201610067®Number=0000000000100030&sum=100016 [09:34:40]StoreToDocumentArchive [09:34:40]shift 461 fd 188140 [09:34:40]save to /storage/0461/doc_00188140 [09:34:40]save last doc name /storage/0461/doc_00188140 to /storage/kkm_last_doc_name [09:34:40]save OK [09:34:40]Clear old archive folders... [09:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:40]tlvbuf is 01CAA450 [09:34:40]SAM_PROTO_ClearQueue [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 09 00 00 [09:34:40]Write to MH i2c: E2 08 00 EF 35 80 09 00 00 00 00 00 00 96 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 EF 35 00 90 00 98 [09:34:40]RAPDU: 90 00 [09:34:40]wFMCommunicate OK [09:34:40]SAM_PROTO_ClearQueue done [09:34:40]KKMCreateOFDPacket [09:34:40]OFDProtocolAddRootSTLVToBuf [09:34:40]FM_MakeSignedData [09:34:40]FM_MakeSignedData [09:34:40]SAM_PROTO_SignData [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 0D 01 02 [09:34:40]Write to MH i2c: E2 08 00 F0 35 80 0D 01 02 00 00 00 00 9E [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 F0 35 00 90 00 99 [09:34:40]RAPDU: 90 00 [09:34:40]wFMCommunicate OK [09:34:40]wFMCommunicate request_size=255 [09:34:40]MH_SAM_APDU [09:34: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B1 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DE 02 00 35 04 06 00 D6 [09:34:40]Write to MH i2c: E2 02 01 F1 35 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B1 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DE 02 00 35 04 06 00 D6 00 00 E4 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 F1 35 00 90 00 9A [09:34:40]RAPDU: 90 00 [09:34:40]wFMCommunicate OK [09:34:40]wFMCommunicate request_size=10 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 0D 02 02 05 6F 5C 48 C2 27 [09:34:40]Write to MH i2c: E2 0D 00 F2 35 80 0D 02 02 05 00 6F 5C 48 C2 27 00 00 A7 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 03 00 F2 35 00 90 00 9B [09:34:40]RAPDU: 90 00 [09:34:40]wFMCommunicate OK [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 0D 03 02 [09:34:40]Write to MH i2c: E2 08 00 F3 35 80 0D 03 02 00 00 00 00 A3 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 0B 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 0B 00 F3 35 00 D1 DF 6D 10 B5 50 E2 57 90 00 0F [09:34:40]RAPDU: D1 DF 6D 10 B5 50 E2 57 90 00 [09:34:40]wFMCommunicate OK [09:34:40]SAM_PROTO_SignData done [09:34:40]FM_MakeSignedData done [09:34:40]CreateOFDProtocolMessage [09:34:40]wFMCommunicate request_size=4 [09:34:40]MH_SAM_APDU [09:34:40]CAPDU: 80 11 00 00 [09:34:40]Write to MH i2c: E2 08 00 F4 35 80 11 00 00 00 00 00 00 A3 [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:40]Read from MH i2c: E2 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 17 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: E2 17 00 F4 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [09:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:34:40]wFMCommunicate OK [09:34:40]CreateOFDProtocolMessage done [09:34:40]OFDSenderStorePacket 188140 [09:34:40]StoreOFDPacket docnum=188140 [09:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F6 25 07 01 BD 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B1 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DE 02 00 35 04 06 00 D6 6F 5C 48 C2 27 D1 DF 6D 10 B5 50 E2 57 [09:34:40]CheckFolder [09:34:40]dirname=/storage/ofd_packets [09:34:40]CheckFolder done [09:34:40]ProducePacketName [09:34:40]name=ofd_packets/00188140 [09:34:40]NVStorageSaveData ofd_packets/00188140 [09:34:40]File name is /storage/ofd_packets/00188140 [09:34:40]Write 301 bytes [09:34:40]NVStorageSaveData done [09:34:40]OFDSenderStorePacket done [09:34:40]KKMCreateOFDPacket done [09:34:40]NVStorageSaveData kkm_last_timestamp [09:34:40]File name is /storage/kkm_last_timestamp [09:34:40]Write 4 bytes [09:34:40]NVStorageSaveData done [09:34:40]ExternCall_PrintAddStr [09:34:40]wPrintStart [09:34:40]Write to MH i2c: 01 00 00 F5 35 2A [09:34:40]Write i2c OK [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 07 00 [09:34:40]MH_I2C_Read... [09:34:40]Read from MH i2c: 01 07 00 F5 35 00 00 00 00 00 FF 0F 3F [09:34:40]RasterBufferAndPrint [09:34:40]line Счет N : (1)210191 [09:34:40]line ИНН: 02508201610067 [09:34:40]line Контрольно-Кассовый Чек [09:34:40]line ПРОДАЖА [09:34:40]line ТРК (МРК, ГНК) : 42 [09:34:40]line Товар: 2710124130 [09:34:40]line Аи-92-К-3 [09:34:40]line 14.950 * 66.90 [09:34:40]line = 1000.16 [09:34:40]line НДС 12% НСП 1% [09:34:40]line > о реализуемом товаре [09:34:40]line ИТОГО: 1000.16 [09:34:40]line НСП 1% : 8.85 [09:34:40]line НДС 12% : 106.21 [09:34:40]line Наличными: 0.00 [09:34:40]line Безнал.: 1000.16 [09:34:40]line Место: АЗС № 86 "Партнер Нефть" [09:34:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:34:40]line СНО: Общий режим [09:34:40]line Чек 169 22.10.2024 09:34 [09:34:40]line Смена: 461 ФФД: 1.0 [09:34:40]line ЗНМ: 0300000155 [09:34:40]line РНМ: 0000000000100030 [09:34:40]line Версия ККМ: 001 [09:34:40]line Платежная система: Mbank [09:34:40]line ФМ: 0000000000965340 [09:34:40]line ФД: 188140 [09:34:40]line ФПД: 235773777986087 [09:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093441&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188140&fm=235773777986087&tin=02508201610067®Number=0000000000100030&sum=100016 [09:34:40]written 0, free lines is 4095 [09:34:40]OFD Sender: Processing packet 188140 [packets to send 1062, broken 1061] [09:34:40]ProducePacketName [09:34:40]name=ofd_packets/00188140 [09:34:40]OFD Sender: To server: pG, [09:34:40]CommunicateWithHost lk.salyk.kg:30040 [09:34:40]ConnectInit lk.salyk.kg [09:34:40]Connected sock=9 [09:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F6 25 07 01 BD 39 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 B1 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EC DE 02 00 35 04 06 00 D6 6F 5C 48 C2 27 D1 DF 6D 10 B5 50 E2 57 [09:34:41]Write to MH i2c: 01 00 00 1E 36 54 [09:34:41]Write i2c OK [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: 01 [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: 01 07 00 [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: 01 07 00 1E 36 00 00 00 00 00 84 0C EB [09:34:41]RasterBufferAndPrint [09:34:41]line [09:34:41]line [09:34:41]line [09:34:41]line [09:34:41]line [09:34:41]written 0, free lines is 3209 [09:34:41]MH_Cut [09:34:41]Write to MH i2c: D1 01 00 25 36 01 2D [09:34:41]Write i2c OK [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: D1 [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: D1 01 00 [09:34:41]MH_I2C_Read... [09:34:41]Read from MH i2c: D1 01 00 25 36 00 2C [09:34:41]Write to MH i2c: 01 00 00 26 36 5C [09:34:41]Write i2c OK [09:34:41]MH_I2C_Read... [09:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9A DF 47 00 17 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 39 36 35 33 34 30 10 04 04 00 EC DE 02 00 F4 03 04 00 9F 1B 17 67 B6 04 01 00 00 3C E9 AA 80 1C 01 91 10 [09:34:41]CommunicateWithHost err = 0 [09:34:41]CheckOFDResponse [09:34:41]1017 (14) - 77093643461234 [09:34:41]1041 (16) - 0000000000965340 [09:34:41]1040 (4) - 188140 [09:34:41]1012 (4) - 22.10.2024 03:27 [09:34:41]1206 (1) - 0 [09:34:41]OFD Sender: Remove packet 188140 [09:34:41]ProducePacketName [09:34:41]name=ofd_packets/00188140 [09:34:41]NVStorageDeleteData [09:34:41]OFD Sender: No OFD packet to send [09:34:42]*** Cut start [09:34:42]*** Partial cut [09:34:42]*** CUTSNS_PIN = 1 [09:34:42]*** CUTSNS_PIN = 0 [09:34:42]*** Brake cut motor [09:34:42]Read from MH i2c: 01 [09:34:42]MH_I2C_Read... [09:34:42]*** Stop cut motor [09:34:42]*** Cut end [09:34:42]Read from MH i2c: 01 07 00 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: 01 07 00 26 36 00 00 00 00 00 FF 0F 71 [09:34:42]process_action close_receipt done [09:34:42]requested_data is exist [09:34:42]produce_requested_data [09:34:42]requested_item fm.sn is exist - process it [09:34:42]wFMCommunicate request_size=4 [09:34:42]MH_SAM_APDU [09:34:42]CAPDU: 80 11 00 00 [09:34:42]Write to MH i2c: E2 08 00 27 36 80 11 00 00 00 00 00 00 D7 [09:34:42]Write i2c OK [09:34:42]MH_I2C_Read... [09:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:42]Read from MH i2c: E2 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: E2 17 00 [09:34:42]MH_I2C_Read... [09:34:42]Read from MH i2c: E2 17 00 27 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [09:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:34:42]wFMCommunicate OK [09:34:42]requested_item fd.num is exist - process it [09:34:42]SAM_PROTO_GetFieldsCounters [09:34:42]wFMCommunicate request_size=4 [09:34:42]MH_SAM_APDU [09:34:42]CAPDU: 80 13 00 00 [09:34:42]Write to MH i2c: E2 08 00 28 36 80 13 00 00 00 00 00 00 DA [09:34:42]Write i2c OK [09:34:42]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 62 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 62 00 28 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [09:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 A9 00 00 00 5E 04 04 00 A9 00 00 00 57 04 04 00 AA 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:34:43]wFMCommunicate OK [09:34:43]SAM_PROTO_GetFieldsCounters done [09:34:43]requested_item shift.num is exist - process it [09:34:43]requested_item shift.opened is exist - process it [09:34:43]req_shift_opened [09:34:43]FM_GetShiftState [09:34:43]SAM_PROTO_GetShiftState [09:34:43]wFMCommunicate request_size=4 [09:34:43]MH_SAM_APDU [09:34:43]CAPDU: 80 13 01 00 [09:34:43]Write to MH i2c: E2 08 00 29 36 80 13 01 00 00 00 00 00 DC [09:34:43]Write i2c OK [09:34:43]MH_I2C_Read... [09:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:43]Read from MH i2c: E2 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 0E 00 [09:34:43]MH_I2C_Read... [09:34:43]Read from MH i2c: E2 0E 00 29 36 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [09:34:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:34:43]wFMCommunicate OK [09:34:43]SAM_PROTO_GetShiftState done [09:34:43]FM_GetShiftState done [09:34:43]req_shift_opened done [09:34:43]requested_item shift.open_date is exist - process it [09:34:43]req_shift_open_date [09:34:43]req_shift_open_date done [09:34:43]produce_requested_data done [09:34:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188140,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:34:43]process_action_free close_receipt [09:34:43]json_value_free [09:34:43]json_value_free done [09:34:43]process_json_proto returns [09:34:43]Send response to host [09:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188140,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:34:43]free response buf [09:34:43]execute_script done [09:34:43]execute_script returns [09:34:43]free content buf [09:34:43]Sock 10.Close socket [09:34:43]Sock 10.Thread stoped [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:34:57]accept exits with 8 [09:34:57]New connection [09:34:57]New thread 3067055460 created [09:34:57]Thread 3067198820 joined [09:34:57]Waiting for new connection... [09:34:57] Sock 8.Parse request [09:34:57]Sock 8.Check first char [09:34:57]Sock 8.First char is OK [09:34:57]request: POST /json_proto HTTP/1.0 [09:34:57]Method: POST [09:34:57]URL: /json_proto [09:34:57]Method is POST - this is cgi request [09:34:57]url: /json_proto [09:34:57]query_string will be loaded in cgi processing [09:34:57]execute_cgi json_proto POST (null) [09:34:57]execute_cgi path=json_proto method=POST [09:34:57]POST find Content-Length [09:34:57]Host: 172.17.42.131:8080 [09:34:57]Content-Length: 682 [09:34:57]Content-Type: application/json [09:34:57] [09:34:57]POST finish read [09:34:57]Found Content-Length = 682 [09:34:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:57]execute_script... [09:34: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)210192", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:34:57]POST & json_proto [09:34:57]process_json_proto [09:34:57]json parsed OK: [09:34:57]protocol is kg_v1.0 [09:34:57]action value=close_receipt [09:34:57]process_action close_receipt [09:34:57]cmd_close_receipt [09:34:57]MH_GetDate [09:34:57]Write to MH i2c: F0 00 00 2A 36 4F [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: F0 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: F0 09 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: F0 09 00 2A 36 00 C4 71 17 67 A0 18 CA 66 F3 [09:34:57]GetLastDocTimeStamp 1729589681 [09:34:57]current date 1729589700 [09:34:57]FM_GetShiftState [09:34:57]SAM_PROTO_GetShiftState [09:34:57]wFMCommunicate request_size=4 [09:34:57]MH_SAM_APDU [09:34:57]CAPDU: 80 13 01 00 [09:34:57]Write to MH i2c: E2 08 00 2B 36 80 13 01 00 00 00 00 00 DE [09:34:57]Write i2c OK [09:34:57]MH_I2C_Read... [09:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:34:57]Read from MH i2c: E2 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0E 00 [09:34:57]MH_I2C_Read... [09:34:57]Read from MH i2c: E2 0E 00 2B 36 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D3 [09:34:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:34:57]wFMCommunicate OK [09:34:57]SAM_PROTO_GetShiftState done [09:34:57]FM_GetShiftState done [09:34:57]opened in 1729556094 [09:34:57]opened+sec_in_day 1729642494 [09:34:57]quantity*price = 100015 [09:34:57]sum+1 = 100017 [09:34:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 170 22.10.2024 09:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188141 ФПД: 85683658539608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093500&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188141&fm=85683658539608&tin=02508201610067®Number=0000000000100030&sum=100000 [09:34:58]StoreToDocumentArchive [09:34:58]shift 461 fd 188141 [09:34:58]save to /storage/0461/doc_00188141 [09:34:58]save last doc name /storage/0461/doc_00188141 to /storage/kkm_last_doc_name [09:34:58]save OK [09:34:58]Clear old archive folders... [09:34:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:34:58]tlvbuf is 01BB3980 [09:34:58]SAM_PROTO_ClearQueue [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 09 00 00 [09:34:58]Write to MH i2c: E2 08 00 38 36 80 09 00 00 00 00 00 00 E0 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 38 36 00 90 00 E2 [09:34:58]RAPDU: 90 00 [09:34:58]wFMCommunicate OK [09:34:58]SAM_PROTO_ClearQueue done [09:34:58]KKMCreateOFDPacket [09:34:58]OFDProtocolAddRootSTLVToBuf [09:34:58]FM_MakeSignedData [09:34:58]FM_MakeSignedData [09:34:58]SAM_PROTO_SignData [09:34:58]wFMCommunicate request_size=4 [09:34:58]MH_SAM_APDU [09:34:58]CAPDU: 80 0D 01 02 [09:34:58]Write to MH i2c: E2 08 00 39 36 80 0D 01 02 00 00 00 00 E8 [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:34:58]Read from MH i2c: E2 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 [09:34:58]MH_I2C_Read... [09:34:58]Read from MH i2c: E2 03 00 39 36 00 90 00 E3 [09:34:58]RAPDU: 90 00 [09:34:58]wFMCommunicate OK [09:34:58]wFMCommunicate request_size=255 [09:34:58]MH_SAM_APDU [09:34: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DE 02 00 35 04 06 00 4D [09:34:58]Write to MH i2c: E2 02 01 3A 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DE 02 00 35 04 06 00 4D 00 00 9A [09:34:58]Write i2c OK [09:34:58]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 3A 36 00 90 00 E4 [09:34:59]RAPDU: 90 00 [09:34:59]wFMCommunicate OK [09:34:59]wFMCommunicate request_size=10 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 0D 02 02 05 ED C8 07 C2 58 [09:34:59]Write to MH i2c: E2 0D 00 3B 36 80 0D 02 02 05 00 ED C8 07 C2 58 00 00 CB [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 03 00 3B 36 00 90 00 E5 [09:34:59]RAPDU: 90 00 [09:34:59]wFMCommunicate OK [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 0D 03 02 [09:34:59]Write to MH i2c: E2 08 00 3C 36 80 0D 03 02 00 00 00 00 ED [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0B 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 0B 00 3C 36 00 8F F5 05 A6 99 8D 90 4B 90 00 1E [09:34:59]RAPDU: 8F F5 05 A6 99 8D 90 4B 90 00 [09:34:59]wFMCommunicate OK [09:34:59]SAM_PROTO_SignData done [09:34:59]FM_MakeSignedData done [09:34:59]CreateOFDProtocolMessage [09:34:59]wFMCommunicate request_size=4 [09:34:59]MH_SAM_APDU [09:34:59]CAPDU: 80 11 00 00 [09:34:59]Write to MH i2c: E2 08 00 3D 36 80 11 00 00 00 00 00 00 ED [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:34:59]Read from MH i2c: E2 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 17 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: E2 17 00 3D 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [09:34:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:34:59]wFMCommunicate OK [09:34:59]CreateOFDProtocolMessage done [09:34:59]OFDSenderStorePacket 188141 [09:34:59]StoreOFDPacket docnum=188141 [09:34:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 3C 07 01 C9 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DE 02 00 35 04 06 00 4D ED C8 07 C2 58 8F F5 05 A6 99 8D 90 4B [09:34:59]CheckFolder [09:34:59]dirname=/storage/ofd_packets [09:34:59]CheckFolder done [09:34:59]ProducePacketName [09:34:59]name=ofd_packets/00188141 [09:34:59]NVStorageSaveData ofd_packets/00188141 [09:34:59]File name is /storage/ofd_packets/00188141 [09:34:59]Write 301 bytes [09:34:59]NVStorageSaveData done [09:34:59]OFDSenderStorePacket done [09:34:59]KKMCreateOFDPacket done [09:34:59]NVStorageSaveData kkm_last_timestamp [09:34:59]File name is /storage/kkm_last_timestamp [09:34:59]Write 4 bytes [09:34:59]NVStorageSaveData done [09:34:59]ExternCall_PrintAddStr [09:34:59]wPrintStart [09:34:59]Write to MH i2c: 01 00 00 3E 36 74 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 07 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 07 00 3E 36 00 00 00 00 00 FF 0F 89 [09:34:59]RasterBufferAndPrint [09:34:59]line Счет N : (1)210192 [09:34:59]line ИНН: 02508201610067 [09:34:59]line Контрольно-Кассовый Чек [09:34:59]line ПРОДАЖА [09:34:59]line ТРК (МРК, ГНК) : 32 [09:34:59]line Товар: 2710124130 [09:34:59]line Аи-92-К-3 [09:34:59]line 14.950 * 66.90 [09:34:59]line = 1000.16 [09:34:59]line НДС 12% НСП 1% [09:34:59]line > о реализуемом товаре [09:34:59]line ОКРУГЛЕНИЕ: -0.16 [09:34:59]line ИТОГО: 1000.00 [09:34:59]line Внесено: 1000.00 [09:34:59]line СДАЧА: 0.00 [09:34:59]line НСП 1% : 8.85 [09:34:59]line НДС 12% : 106.21 [09:34:59]line Наличными: 1000.00 [09:34:59]line Безнал.: 0.00 [09:34:59]line Место: АЗС № 86 "Партнер Нефть" [09:34:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:34:59]line СНО: Общий режим [09:34:59]line Чек 170 22.10.2024 09:35 [09:34:59]line Смена: 461 ФФД: 1.0 [09:34:59]line ЗНМ: 0300000155 [09:34:59]line РНМ: 0000000000100030 [09:34:59]line Версия ККМ: 001 [09:34:59]line ФМ: 0000000000965340 [09:34:59]line ФД: 188141 [09:34:59]line ФПД: 85683658539608 [09:34:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093500&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188141&fm=85683658539608&tin=02508201610067®Number=0000000000100030&sum=100000 [09:34:59]written 0, free lines is 4095 [09:34:59]OFD Sender: Processing packet 188141 [packets to send 1062, broken 1061] [09:34:59]ProducePacketName [09:34:59]name=ofd_packets/00188141 [09:34:59]OFD Sender: To server: pG, [09:34:59]CommunicateWithHost lk.salyk.kg:30040 [09:34:59]ConnectInit lk.salyk.kg [09:34:59]Connected sock=10 [09:34:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 3C 07 01 C9 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AA 00 00 00 F4 03 04 00 C4 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DE 02 00 35 04 06 00 4D ED C8 07 C2 58 8F F5 05 A6 99 8D 90 4B [09:34:59]Write to MH i2c: 01 00 00 69 36 9F [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 07 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: 01 07 00 69 36 00 00 00 00 00 5C 0C 0E [09:34:59]RasterBufferAndPrint [09:34:59]line [09:34:59]line [09:34:59]line [09:34:59]line [09:34:59]line [09:34:59]written 0, free lines is 3168 [09:34:59]MH_Cut [09:34:59]Write to MH i2c: D1 01 00 70 36 01 78 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: D1 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: D1 01 00 [09:34:59]MH_I2C_Read... [09:34:59]Read from MH i2c: D1 01 00 70 36 00 77 [09:34:59]Write to MH i2c: 01 00 00 71 36 A7 [09:34:59]Write i2c OK [09:34:59]MH_I2C_Read... [09:34:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 05 47 00 3B 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 ED DE 02 00 F4 03 04 00 B1 1B 17 67 B6 04 01 00 00 9C 2F B1 A8 0B 72 4A 5B [09:34:59]CommunicateWithHost err = 0 [09:34:59]CheckOFDResponse [09:34:59]1017 (14) - 77093643461234 [09:34:59]1041 (16) - 0000000000965340 [09:34:59]1040 (4) - 188141 [09:34:59]1012 (4) - 22.10.2024 03:27 [09:34:59]1206 (1) - 0 [09:34:59]OFD Sender: Remove packet 188141 [09:34:59]ProducePacketName [09:34:59]name=ofd_packets/00188141 [09:34:59]NVStorageDeleteData [09:35:00]OFD Sender: No OFD packet to send [09:35:00]*** Cut start [09:35:00]*** Partial cut [09:35:00]*** CUTSNS_PIN = 1 [09:35:01]*** CUTSNS_PIN = 0 [09:35:01]*** Brake cut motor [09:35:01]Read from MH i2c: 01 [09:35:01]MH_I2C_Read... [09:35:01]*** Stop cut motor [09:35:01]*** Cut end [09:35:01]Read from MH i2c: 01 07 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: 01 07 00 71 36 00 00 00 00 00 FF 0F BC [09:35:01]process_action close_receipt done [09:35:01]requested_data is exist [09:35:01]produce_requested_data [09:35:01]requested_item fm.sn is exist - process it [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 11 00 00 [09:35:01]Write to MH i2c: E2 08 00 72 36 80 11 00 00 00 00 00 00 22 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 17 00 72 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [09:35:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:35:01]wFMCommunicate OK [09:35:01]requested_item fd.num is exist - process it [09:35:01]SAM_PROTO_GetFieldsCounters [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 13 00 00 [09:35:01]Write to MH i2c: E2 08 00 73 36 80 13 00 00 00 00 00 00 25 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 62 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 62 00 73 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [09:35:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 ED DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AA 00 00 00 5E 04 04 00 AA 00 00 00 57 04 04 00 AB 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_GetFieldsCounters done [09:35:01]requested_item shift.num is exist - process it [09:35:01]requested_item shift.opened is exist - process it [09:35:01]req_shift_opened [09:35:01]FM_GetShiftState [09:35:01]SAM_PROTO_GetShiftState [09:35:01]wFMCommunicate request_size=4 [09:35:01]MH_SAM_APDU [09:35:01]CAPDU: 80 13 01 00 [09:35:01]Write to MH i2c: E2 08 00 74 36 80 13 01 00 00 00 00 00 27 [09:35:01]Write i2c OK [09:35:01]MH_I2C_Read... [09:35:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:01]Read from MH i2c: E2 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0E 00 [09:35:01]MH_I2C_Read... [09:35:01]Read from MH i2c: E2 0E 00 74 36 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [09:35:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:35:01]wFMCommunicate OK [09:35:01]SAM_PROTO_GetShiftState done [09:35:01]FM_GetShiftState done [09:35:01]req_shift_opened done [09:35:01]requested_item shift.open_date is exist - process it [09:35:01]req_shift_open_date [09:35:01]req_shift_open_date done [09:35:01]produce_requested_data done [09:35:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188141,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:35:01]process_action_free close_receipt [09:35:01]json_value_free [09:35:01]json_value_free done [09:35:01]process_json_proto returns [09:35:01]Send response to host [09:35:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188141,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:35:01]free response buf [09:35:01]execute_script done [09:35:01]execute_script returns [09:35:01]free content buf [09:35:01]Sock 8.Close socket [09:35:01]Sock 8.Thread stoped [09:35:05]OFD Sender: No OFD packet to send [09:35:09]accept exits with 9 [09:35:09]New connection [09:35:09]New thread 3067198820 created [09:35:09]Thread 3067055460 joined [09:35:09]Waiting for new connection... [09:35:09] Sock 9.Parse request [09:35:09]Sock 9.Check first char [09:35:09]Sock 9.First char is OK [09:35:09]request: POST /json_proto HTTP/1.0 [09:35:09]Method: POST [09:35:09]URL: /json_proto [09:35:09]Method is POST - this is cgi request [09:35:09]url: /json_proto [09:35:09]query_string will be loaded in cgi processing [09:35:09]execute_cgi json_proto POST (null) [09:35:09]execute_cgi path=json_proto method=POST [09:35:09]POST find Content-Length [09:35:09]Host: 172.17.42.131:8080 [09:35:09]Content-Length: 677 [09:35:09]Content-Type: application/json [09:35:09] [09:35:09]POST finish read [09:35:09]Found Content-Length = 677 [09:35:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:09]execute_script... [09:35:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210193", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:35:09]POST & json_proto [09:35:09]process_json_proto [09:35:09]json parsed OK: [09:35:09]protocol is kg_v1.0 [09:35:09]action value=close_receipt [09:35:09]process_action close_receipt [09:35:09]cmd_close_receipt [09:35:09]MH_GetDate [09:35:09]Write to MH i2c: F0 00 00 75 36 9A [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: F0 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: F0 09 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: F0 09 00 75 36 00 D0 71 17 67 A0 18 CA 66 4A [09:35:09]GetLastDocTimeStamp 1729589700 [09:35:09]current date 1729589712 [09:35:09]FM_GetShiftState [09:35:09]SAM_PROTO_GetShiftState [09:35:09]wFMCommunicate request_size=4 [09:35:09]MH_SAM_APDU [09:35:09]CAPDU: 80 13 01 00 [09:35:09]Write to MH i2c: E2 08 00 76 36 80 13 01 00 00 00 00 00 29 [09:35:09]Write i2c OK [09:35:09]MH_I2C_Read... [09:35:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:09]Read from MH i2c: E2 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 0E 00 [09:35:09]MH_I2C_Read... [09:35:09]Read from MH i2c: E2 0E 00 76 36 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1E [09:35:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:35:09]wFMCommunicate OK [09:35:09]SAM_PROTO_GetShiftState done [09:35:09]FM_GetShiftState done [09:35:09]opened in 1729556094 [09:35:09]opened+sec_in_day 1729642494 [09:35:09]quantity*price = 50041 [09:35:09]sum+1 = 50042 [09:35:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 171 22.10.2024 09:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188142 ФПД: 186378877703978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093512&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188142&fm=186378877703978&tin=02508201610067®Number=0000000000100030&sum=50000 [09:35:10]StoreToDocumentArchive [09:35:10]shift 461 fd 188142 [09:35:10]save to /storage/0461/doc_00188142 [09:35:10]save last doc name /storage/0461/doc_00188142 to /storage/kkm_last_doc_name [09:35:10]save OK [09:35:10]Clear old archive folders... [09:35:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:35:10]tlvbuf is B6F94930 [09:35:10]SAM_PROTO_ClearQueue [09:35:10]wFMCommunicate request_size=4 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 09 00 00 [09:35:10]Write to MH i2c: E2 08 00 83 36 80 09 00 00 00 00 00 00 2B [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 03 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 03 00 83 36 00 90 00 2D [09:35:10]RAPDU: 90 00 [09:35:10]wFMCommunicate OK [09:35:10]SAM_PROTO_ClearQueue done [09:35:10]KKMCreateOFDPacket [09:35:10]OFDProtocolAddRootSTLVToBuf [09:35:10]FM_MakeSignedData [09:35:10]FM_MakeSignedData [09:35:10]SAM_PROTO_SignData [09:35:10]wFMCommunicate request_size=4 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 0D 01 02 [09:35:10]Write to MH i2c: E2 08 00 84 36 80 0D 01 02 00 00 00 00 33 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:35:10]Read from MH i2c: E2 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 03 00 [09:35:10]MH_I2C_Read... [09:35:10]Read from MH i2c: E2 03 00 84 36 00 90 00 2E [09:35:10]RAPDU: 90 00 [09:35:10]wFMCommunicate OK [09:35:10]wFMCommunicate request_size=255 [09:35:10]MH_SAM_APDU [09:35:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DE 02 00 35 04 06 00 A9 [09:35:10]Write to MH i2c: E2 02 01 85 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DE 02 00 35 04 06 00 A9 00 00 55 [09:35:10]Write i2c OK [09:35:10]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 85 36 00 90 00 2F [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=10 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 02 02 05 82 B6 CC 97 2A [09:35:11]Write to MH i2c: E2 0D 00 86 36 80 0D 02 02 05 00 82 B6 CC 97 2A 00 00 05 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 03 00 86 36 00 90 00 30 [09:35:11]RAPDU: 90 00 [09:35:11]wFMCommunicate OK [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 0D 03 02 [09:35:11]Write to MH i2c: E2 08 00 87 36 80 0D 03 02 00 00 00 00 38 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 0B 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 0B 00 87 36 00 BF F6 8F F4 4F 3E 84 D8 90 00 5A [09:35:11]RAPDU: BF F6 8F F4 4F 3E 84 D8 90 00 [09:35:11]wFMCommunicate OK [09:35:11]SAM_PROTO_SignData done [09:35:11]FM_MakeSignedData done [09:35:11]CreateOFDProtocolMessage [09:35:11]wFMCommunicate request_size=4 [09:35:11]MH_SAM_APDU [09:35:11]CAPDU: 80 11 00 00 [09:35:11]Write to MH i2c: E2 08 00 88 36 80 11 00 00 00 00 00 00 38 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:11]Read from MH i2c: E2 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 17 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: E2 17 00 88 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [09:35:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:35:11]wFMCommunicate OK [09:35:11]CreateOFDProtocolMessage done [09:35:11]OFDSenderStorePacket 188142 [09:35:11]StoreOFDPacket docnum=188142 [09:35:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F 79 07 01 94 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DE 02 00 35 04 06 00 A9 82 B6 CC 97 2A BF F6 8F F4 4F 3E 84 D8 [09:35:11]CheckFolder [09:35:11]dirname=/storage/ofd_packets [09:35:11]CheckFolder done [09:35:11]ProducePacketName [09:35:11]name=ofd_packets/00188142 [09:35:11]NVStorageSaveData ofd_packets/00188142 [09:35:11]File name is /storage/ofd_packets/00188142 [09:35:11]Write 301 bytes [09:35:11]NVStorageSaveData done [09:35:11]OFDSenderStorePacket done [09:35:11]KKMCreateOFDPacket done [09:35:11]NVStorageSaveData kkm_last_timestamp [09:35:11]File name is /storage/kkm_last_timestamp [09:35:11]Write 4 bytes [09:35:11]NVStorageSaveData done [09:35:11]ExternCall_PrintAddStr [09:35:11]wPrintStart [09:35:11]Write to MH i2c: 01 00 00 89 36 BF [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 89 36 00 00 00 00 00 FF 0F D4 [09:35:11]RasterBufferAndPrint [09:35:11]line Счет N : (1)210193 [09:35:11]line ИНН: 02508201610067 [09:35:11]line Контрольно-Кассовый Чек [09:35:11]line ПРОДАЖА [09:35:11]line ТРК (МРК, ГНК) : 22 [09:35:11]line Товар: 2710124130 [09:35:11]line Аи-92-К-3 [09:35:11]line 7.480 * 66.90 [09:35:11]line = 500.41 [09:35:11]line НДС 12% НСП 1% [09:35:11]line > о реализуемом товаре [09:35:11]line ОКРУГЛЕНИЕ: -0.41 [09:35:11]line ИТОГО: 500.00 [09:35:11]line Внесено: 500.00 [09:35:11]line СДАЧА: 0.00 [09:35:11]line НСП 1% : 4.43 [09:35:11]line НДС 12% : 53.14 [09:35:11]line Наличными: 500.00 [09:35:11]line Безнал.: 0.00 [09:35:11]line Место: АЗС № 86 "Партнер Нефть" [09:35:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:35:11]line СНО: Общий режим [09:35:11]line Чек 171 22.10.2024 09:35 [09:35:11]line Смена: 461 ФФД: 1.0 [09:35:11]line ЗНМ: 0300000155 [09:35:11]line РНМ: 0000000000100030 [09:35:11]line Версия ККМ: 001 [09:35:11]line ФМ: 0000000000965340 [09:35:11]line ФД: 188142 [09:35:11]line ФПД: 186378877703978 [09:35:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093512&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188142&fm=186378877703978&tin=02508201610067®Number=0000000000100030&sum=50000 [09:35:11]written 0, free lines is 4095 [09:35:11]OFD Sender: Processing packet 188142 [packets to send 1062, broken 1061] [09:35:11]ProducePacketName [09:35:11]name=ofd_packets/00188142 [09:35:11]OFD Sender: To server: pG, [09:35:11]CommunicateWithHost lk.salyk.kg:30040 [09:35:11]ConnectInit lk.salyk.kg [09:35:11]Connected sock=10 [09:35:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F 79 07 01 94 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AB 00 00 00 F4 03 04 00 D0 71 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DE 02 00 35 04 06 00 A9 82 B6 CC 97 2A BF F6 8F F4 4F 3E 84 D8 [09:35:11]Write to MH i2c: 01 00 00 B4 36 EA [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: 01 07 00 B4 36 00 00 00 00 00 58 0C 55 [09:35:11]RasterBufferAndPrint [09:35:11]line [09:35:11]line [09:35:11]line [09:35:11]line [09:35:11]line [09:35:11]written 0, free lines is 3166 [09:35:11]MH_Cut [09:35:11]Write to MH i2c: D1 01 00 BB 36 01 C3 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: D1 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: D1 01 00 [09:35:11]MH_I2C_Read... [09:35:11]Read from MH i2c: D1 01 00 BB 36 00 C2 [09:35:11]Write to MH i2c: 01 00 00 BC 36 F2 [09:35:11]Write i2c OK [09:35:11]MH_I2C_Read... [09:35:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 69 47 00 58 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EE DE 02 00 F4 03 04 00 BD 1B 17 67 B6 04 01 00 00 8E DF 54 E8 D2 BF 14 00 [09:35:11]CommunicateWithHost err = 0 [09:35:11]CheckOFDResponse [09:35:11]1017 (14) - 77093643461234 [09:35:11]1041 (16) - 0000000000965340 [09:35:11]1040 (4) - 188142 [09:35:11]1012 (4) - 22.10.2024 03:27 [09:35:11]1206 (1) - 0 [09:35:11]OFD Sender: Remove packet 188142 [09:35:11]ProducePacketName [09:35:11]name=ofd_packets/00188142 [09:35:11]NVStorageDeleteData [09:35:12]OFD Sender: No OFD packet to send [09:35:12]*** Cut start [09:35:12]*** Partial cut [09:35:12]*** CUTSNS_PIN = 1 [09:35:13]*** CUTSNS_PIN = 0 [09:35:13]*** Brake cut motor [09:35:13]Read from MH i2c: 01 [09:35:13]MH_I2C_Read... [09:35:13]*** Stop cut motor [09:35:13]*** Cut end [09:35:13]Read from MH i2c: 01 07 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: 01 07 00 BC 36 00 00 00 00 00 FF 0F 07 [09:35:13]process_action close_receipt done [09:35:13]requested_data is exist [09:35:13]produce_requested_data [09:35:13]requested_item fm.sn is exist - process it [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 11 00 00 [09:35:13]Write to MH i2c: E2 08 00 BD 36 80 11 00 00 00 00 00 00 6D [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:35:13]Read from MH i2c: E2 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 17 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 17 00 BD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [09:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:35:13]wFMCommunicate OK [09:35:13]requested_item fd.num is exist - process it [09:35:13]SAM_PROTO_GetFieldsCounters [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 13 00 00 [09:35:13]Write to MH i2c: E2 08 00 BE 36 80 13 00 00 00 00 00 00 70 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:35:13]Read from MH i2c: E2 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 62 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 62 00 BE 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [09:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AB 00 00 00 5E 04 04 00 AB 00 00 00 57 04 04 00 AC 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:35:13]wFMCommunicate OK [09:35:13]SAM_PROTO_GetFieldsCounters done [09:35:13]requested_item shift.num is exist - process it [09:35:13]requested_item shift.opened is exist - process it [09:35:13]req_shift_opened [09:35:13]FM_GetShiftState [09:35:13]SAM_PROTO_GetShiftState [09:35:13]wFMCommunicate request_size=4 [09:35:13]MH_SAM_APDU [09:35:13]CAPDU: 80 13 01 00 [09:35:13]Write to MH i2c: E2 08 00 BF 36 80 13 01 00 00 00 00 00 72 [09:35:13]Write i2c OK [09:35:13]MH_I2C_Read... [09:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:35:13]Read from MH i2c: E2 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 0E 00 [09:35:13]MH_I2C_Read... [09:35:13]Read from MH i2c: E2 0E 00 BF 36 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [09:35:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:35:13]wFMCommunicate OK [09:35:13]SAM_PROTO_GetShiftState done [09:35:13]FM_GetShiftState done [09:35:13]req_shift_opened done [09:35:13]requested_item shift.open_date is exist - process it [09:35:13]req_shift_open_date [09:35:13]req_shift_open_date done [09:35:13]produce_requested_data done [09:35:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188142,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:35:13]process_action_free close_receipt [09:35:13]json_value_free [09:35:13]json_value_free done [09:35:13]process_json_proto returns [09:35:13]Send response to host [09:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188142,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:35:13]free response buf [09:35:13]execute_script done [09:35:13]execute_script returns [09:35:13]free content buf [09:35:13]Sock 9.Close socket [09:35:13]Sock 9.Thread stoped [09:35:17]OFD Sender: No OFD packet to send [09:35:22]OFD Sender: No OFD packet to send [09:35:27]OFD Sender: No OFD packet to send [09:35:32]OFD Sender: No OFD packet to send [09:35:37]OFD Sender: No OFD packet to send [09:35:42]OFD Sender: No OFD packet to send [09:35:47]OFD Sender: No OFD packet to send [09:35:52]OFD Sender: No OFD packet to send [09:35:57]OFD Sender: No OFD packet to send [09:36:02]OFD Sender: No OFD packet to send [09:36:07]OFD Sender: No OFD packet to send [09:36:12]OFD Sender: No OFD packet to send [09:36:17]OFD Sender: No OFD packet to send [09:36:22]OFD Sender: No OFD packet to send [09:36:27]OFD Sender: No OFD packet to send [09:36:32]OFD Sender: No OFD packet to send [09:36:37]OFD Sender: No OFD packet to send [09:36:42]OFD Sender: No OFD packet to send [09:36:47]OFD Sender: No OFD packet to send [09:36:52]OFD Sender: No OFD packet to send [09:36:57]OFD Sender: No OFD packet to send [09:37:02]OFD Sender: No OFD packet to send [09:37:06]accept exits with 8 [09:37:06]New connection [09:37:06]New thread 3067055460 created [09:37:06]Thread 3067198820 joined [09:37:06]Waiting for new connection... [09:37:06] Sock 8.Parse request [09:37:06]Sock 8.Check first char [09:37:06]Sock 8.First char is OK [09:37:06]request: POST /json_proto HTTP/1.0 [09:37:06]Method: POST [09:37:06]URL: /json_proto [09:37:06]Method is POST - this is cgi request [09:37:06]url: /json_proto [09:37:06]query_string will be loaded in cgi processing [09:37:06]execute_cgi json_proto POST (null) [09:37:06]execute_cgi path=json_proto method=POST [09:37:06]POST find Content-Length [09:37:06]Host: 172.17.42.131:8080 [09:37:06]Content-Length: 688 [09:37:06]Content-Type: application/json [09:37:06] [09:37:06]POST finish read [09:37:06]Found Content-Length = 688 [09:37:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:37:06]execute_script... [09:37: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)210194", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:37:06]POST & json_proto [09:37:06]process_json_proto [09:37:06]json parsed OK: [09:37:06]protocol is kg_v1.0 [09:37:06]action value=close_receipt [09:37:06]process_action close_receipt [09:37:06]cmd_close_receipt [09:37:06]MH_GetDate [09:37:06]Write to MH i2c: F0 00 00 C0 36 E5 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: F0 09 00 C0 36 00 45 72 17 67 A0 18 CA 66 0B [09:37:06]GetLastDocTimeStamp 1729589712 [09:37:06]current date 1729589829 [09:37:06]FM_GetShiftState [09:37:06]SAM_PROTO_GetShiftState [09:37:06]wFMCommunicate request_size=4 [09:37:06]MH_SAM_APDU [09:37:06]CAPDU: 80 13 01 00 [09:37:06]Write to MH i2c: E2 08 00 C1 36 80 13 01 00 00 00 00 00 74 [09:37:06]Write i2c OK [09:37:06]MH_I2C_Read... [09:37:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:06]Read from MH i2c: E2 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 [09:37:06]MH_I2C_Read... [09:37:06]Read from MH i2c: E2 0E 00 C1 36 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 69 [09:37:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:37:06]wFMCommunicate OK [09:37:06]SAM_PROTO_GetShiftState done [09:37:06]FM_GetShiftState done [09:37:06]opened in 1729556094 [09:37:06]opened+sec_in_day 1729642494 [09:37:06]quantity*price = 100051 [09:37:06]sum+1 = 100052 [09:37:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 172 22.10.2024 09:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188143 ФПД: 181962131878526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188143&fm=181962131878526&tin=02508201610067®Number=0000000000100030&sum=100000 [09:37:07]StoreToDocumentArchive [09:37:07]shift 461 fd 188143 [09:37:07]save to /storage/0461/doc_00188143 [09:37:07]save last doc name /storage/0461/doc_00188143 to /storage/kkm_last_doc_name [09:37:07]save OK [09:37:07]Clear old archive folders... [09:37:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:37:07]tlvbuf is 01BB83B0 [09:37:07]SAM_PROTO_ClearQueue [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 09 00 00 [09:37:07]Write to MH i2c: E2 08 00 CE 36 80 09 00 00 00 00 00 00 76 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 CE 36 00 90 00 78 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]SAM_PROTO_ClearQueue done [09:37:07]KKMCreateOFDPacket [09:37:07]OFDProtocolAddRootSTLVToBuf [09:37:07]FM_MakeSignedData [09:37:07]FM_MakeSignedData [09:37:07]SAM_PROTO_SignData [09:37:07]wFMCommunicate request_size=4 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 01 02 [09:37:07]Write to MH i2c: E2 08 00 CF 36 80 0D 01 02 00 00 00 00 7E [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:07]Read from MH i2c: E2 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 [09:37:07]MH_I2C_Read... [09:37:07]Read from MH i2c: E2 03 00 CF 36 00 90 00 79 [09:37:07]RAPDU: 90 00 [09:37:07]wFMCommunicate OK [09:37:07]wFMCommunicate request_size=255 [09:37:07]MH_SAM_APDU [09:37:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AC 00 00 00 F4 03 04 00 45 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DE 02 [09:37:07]Write to MH i2c: E2 02 01 D0 36 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AC 00 00 00 F4 03 04 00 45 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DE 02 00 00 59 [09:37:07]Write i2c OK [09:37:07]MH_I2C_Read... [09:37:07]OFD Sender: No OFD packet to send [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 D0 36 00 90 00 7A [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=16 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A5 7E 5C 3B B2 7E [09:37:08]Write to MH i2c: E2 13 00 D1 36 80 0D 02 02 0B 00 00 35 04 06 00 A5 7E 5C 3B B2 7E 00 00 C0 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 03 00 D1 36 00 90 00 7B [09:37:08]RAPDU: 90 00 [09:37:08]wFMCommunicate OK [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 0D 03 02 [09:37:08]Write to MH i2c: E2 08 00 D2 36 80 0D 03 02 00 00 00 00 83 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0B 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 0B 00 D2 36 00 7E 2B 7B A6 93 CC EF D7 90 00 73 [09:37:08]RAPDU: 7E 2B 7B A6 93 CC EF D7 90 00 [09:37:08]wFMCommunicate OK [09:37:08]SAM_PROTO_SignData done [09:37:08]FM_MakeSignedData done [09:37:08]CreateOFDProtocolMessage [09:37:08]wFMCommunicate request_size=4 [09:37:08]MH_SAM_APDU [09:37:08]CAPDU: 80 11 00 00 [09:37:08]Write to MH i2c: E2 08 00 D3 36 80 11 00 00 00 00 00 00 83 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:08]Read from MH i2c: E2 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: E2 17 00 D3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [09:37:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:37:08]wFMCommunicate OK [09:37:08]CreateOFDProtocolMessage done [09:37:08]OFDSenderStorePacket 188143 [09:37:08]StoreOFDPacket docnum=188143 [09:37:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0E CE 0D 01 03 BE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AC 00 00 00 F4 03 04 00 45 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DE 02 00 35 04 06 00 A5 7E 5C 3B B2 7E 7E 2B 7B A6 93 CC EF D7 [09:37:08]CheckFolder [09:37:08]dirname=/storage/ofd_packets [09:37:08]CheckFolder done [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00188143 [09:37:08]NVStorageSaveData ofd_packets/00188143 [09:37:08]File name is /storage/ofd_packets/00188143 [09:37:08]Write 307 bytes [09:37:08]NVStorageSaveData done [09:37:08]OFDSenderStorePacket done [09:37:08]KKMCreateOFDPacket done [09:37:08]NVStorageSaveData kkm_last_timestamp [09:37:08]File name is /storage/kkm_last_timestamp [09:37:08]Write 4 bytes [09:37:08]NVStorageSaveData done [09:37:08]ExternCall_PrintAddStr [09:37:08]wPrintStart [09:37:08]Write to MH i2c: 01 00 00 D4 36 0A [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 D4 36 00 00 00 00 00 FF 0F 1F [09:37:08]RasterBufferAndPrint [09:37:08]line Счет N : (1)210194 [09:37:08]line ИНН: 02508201610067 [09:37:08]line Контрольно-Кассовый Чек [09:37:08]line ПРОДАЖА [09:37:08]line ТРК (МРК, ГНК) : 11 [09:37:08]line Товар: 2710194210 [09:37:08]line D-ENERGY ДТ-К-5 [09:37:08]line 12.960 * 77.20 [09:37:08]line = 1000.51 [09:37:08]line НДС 12% НСП 1% [09:37:08]line > о реализуемом товаре [09:37:08]line ОКРУГЛЕНИЕ: -0.51 [09:37:08]line ИТОГО: 1000.00 [09:37:08]line Внесено: 1000.00 [09:37:08]line СДАЧА: 0.00 [09:37:08]line НСП 1% : 8.85 [09:37:08]line НДС 12% : 106.25 [09:37:08]line Наличными: 1000.00 [09:37:08]line Безнал.: 0.00 [09:37:08]line Место: АЗС № 86 "Партнер Нефть" [09:37:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:37:08]line СНО: Общий режим [09:37:08]line Чек 172 22.10.2024 09:37 [09:37:08]line Смена: 461 ФФД: 1.0 [09:37:08]line ЗНМ: 0300000155 [09:37:08]line РНМ: 0000000000100030 [09:37:08]line Версия ККМ: 001 [09:37:08]line ФМ: 0000000000965340 [09:37:08]line ФД: 188143 [09:37:08]line ФПД: 181962131878526 [09:37:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093709&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188143&fm=181962131878526&tin=02508201610067®Number=0000000000100030&sum=100000 [09:37:08]written 0, free lines is 4095 [09:37:08]OFD Sender: Processing packet 188143 [packets to send 1062, broken 1061] [09:37:08]ProducePacketName [09:37:08]name=ofd_packets/00188143 [09:37:08]OFD Sender: To server: pG, [09:37:08]CommunicateWithHost lk.salyk.kg:30040 [09:37:08]ConnectInit lk.salyk.kg [09:37:08]Write to MH i2c: 01 00 00 FF 36 35 [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: 01 07 00 FF 36 00 00 00 00 00 58 0C A0 [09:37:08]RasterBufferAndPrint [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]line [09:37:08]written 0, free lines is 3164 [09:37:08]MH_Cut [09:37:08]Write to MH i2c: D1 01 00 06 37 01 0F [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 [09:37:08]MH_I2C_Read... [09:37:08]Read from MH i2c: D1 01 00 06 37 00 0E [09:37:08]Write to MH i2c: 01 00 00 07 37 3E [09:37:08]Write i2c OK [09:37:08]MH_I2C_Read... [09:37:09]*** Cut start [09:37:09]*** Partial cut [09:37:09]*** CUTSNS_PIN = 1 [09:37:09]*** CUTSNS_PIN = 0 [09:37:10]*** Brake cut motor [09:37:10]Read from MH i2c: 01 [09:37:10]MH_I2C_Read... [09:37:10]*** Stop cut motor [09:37:10]*** Cut end [09:37:10]Read from MH i2c: 01 07 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: 01 07 00 07 37 00 00 00 00 00 FF 0F 53 [09:37:10]process_action close_receipt done [09:37:10]requested_data is exist [09:37:10]produce_requested_data [09:37:10]requested_item fm.sn is exist - process it [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 11 00 00 [09:37:10]Write to MH i2c: E2 08 00 08 37 80 11 00 00 00 00 00 00 B9 [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 17 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 17 00 08 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [09:37:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:37:10]wFMCommunicate OK [09:37:10]requested_item fd.num is exist - process it [09:37:10]SAM_PROTO_GetFieldsCounters [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 00 00 [09:37:10]Write to MH i2c: E2 08 00 09 37 80 13 00 00 00 00 00 00 BC [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 62 00 09 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [09:37:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 EF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AC 00 00 00 5E 04 04 00 AC 00 00 00 57 04 04 00 AD 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetFieldsCounters done [09:37:10]requested_item shift.num is exist - process it [09:37:10]requested_item shift.opened is exist - process it [09:37:10]req_shift_opened [09:37:10]FM_GetShiftState [09:37:10]SAM_PROTO_GetShiftState [09:37:10]wFMCommunicate request_size=4 [09:37:10]MH_SAM_APDU [09:37:10]CAPDU: 80 13 01 00 [09:37:10]Write to MH i2c: E2 08 00 0A 37 80 13 01 00 00 00 00 00 BE [09:37:10]Write i2c OK [09:37:10]MH_I2C_Read... [09:37:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:10]Read from MH i2c: E2 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 [09:37:10]MH_I2C_Read... [09:37:10]Read from MH i2c: E2 0E 00 0A 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B3 [09:37:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:37:10]wFMCommunicate OK [09:37:10]SAM_PROTO_GetShiftState done [09:37:10]FM_GetShiftState done [09:37:10]req_shift_opened done [09:37:10]requested_item shift.open_date is exist - process it [09:37:10]req_shift_open_date [09:37:10]req_shift_open_date done [09:37:10]produce_requested_data done [09:37:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188143,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:37:10]process_action_free close_receipt [09:37:10]json_value_free [09:37:10]json_value_free done [09:37:10]process_json_proto returns [09:37:10]Send response to host [09:37:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188143,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:37:10]free response buf [09:37:10]execute_script done [09:37:10]execute_script returns [09:37:10]free content buf [09:37:10]Sock 8.Close socket [09:37:10]Sock 8.Thread stoped [09:37:31]accept exits with 9 [09:37:31]New connection [09:37:31]New thread 3067198820 created [09:37:31]Thread 3067055460 joined [09:37:31]Waiting for new connection... [09:37:31] Sock 9.Parse request [09:37:31]Sock 9.Check first char [09:37:31]Sock 9.First char is OK [09:37:31]request: POST /json_proto HTTP/1.0 [09:37:31]Method: POST [09:37:31]URL: /json_proto [09:37:31]Method is POST - this is cgi request [09:37:31]url: /json_proto [09:37:31]query_string will be loaded in cgi processing [09:37:31]execute_cgi json_proto POST (null) [09:37:31]execute_cgi path=json_proto method=POST [09:37:31]POST find Content-Length [09:37:31]Host: 172.17.42.131:8080 [09:37:31]Content-Length: 766 [09:37:31]Content-Type: application/json [09:37:31] [09:37:31]POST finish read [09:37:31]Found Content-Length = 766 [09:37:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:31]execute_script... [09:37: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)210195", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:37:31]POST & json_proto [09:37:31]process_json_proto [09:37:31]json parsed OK: [09:37:31]protocol is kg_v1.0 [09:37:31]action value=close_receipt [09:37:31]process_action close_receipt [09:37:31]cmd_close_receipt [09:37:31]MH_GetDate [09:37:31]Write to MH i2c: F0 00 00 0B 37 31 [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: F0 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: F0 09 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: F0 09 00 0B 37 00 5D 72 17 67 A0 18 CA 66 6F [09:37:31]GetLastDocTimeStamp 1729589829 [09:37:31]current date 1729589853 [09:37:31]FM_GetShiftState [09:37:31]SAM_PROTO_GetShiftState [09:37:31]wFMCommunicate request_size=4 [09:37:31]MH_SAM_APDU [09:37:31]CAPDU: 80 13 01 00 [09:37:31]Write to MH i2c: E2 08 00 0C 37 80 13 01 00 00 00 00 00 C0 [09:37:31]Write i2c OK [09:37:31]MH_I2C_Read... [09:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:31]Read from MH i2c: E2 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 0E 00 [09:37:31]MH_I2C_Read... [09:37:31]Read from MH i2c: E2 0E 00 0C 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B5 [09:37:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:37:31]wFMCommunicate OK [09:37:31]SAM_PROTO_GetShiftState done [09:37:31]FM_GetShiftState done [09:37:31]opened in 1729556094 [09:37:31]opened+sec_in_day 1729642494 [09:37:31]quantity*price = 50041 [09:37:31]sum+1 = 50042 [09:37:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 173 22.10.2024 09:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188144 ФПД: 136335868183683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093733&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188144&fm=136335868183683&tin=02508201610067®Number=0000000000100030&sum=50041 [09:37:32]StoreToDocumentArchive [09:37:32]shift 461 fd 188144 [09:37:32]save to /storage/0461/doc_00188144 [09:37:32]save last doc name /storage/0461/doc_00188144 to /storage/kkm_last_doc_name [09:37:32]save OK [09:37:32]Clear old archive folders... [09:37:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:37:32]tlvbuf is 01BB7E40 [09:37:32]SAM_PROTO_ClearQueue [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 09 00 00 [09:37:32]Write to MH i2c: E2 08 00 19 37 80 09 00 00 00 00 00 00 C2 [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 19 37 00 90 00 C4 [09:37:32]RAPDU: 90 00 [09:37:32]wFMCommunicate OK [09:37:32]SAM_PROTO_ClearQueue done [09:37:32]KKMCreateOFDPacket [09:37:32]OFDProtocolAddRootSTLVToBuf [09:37:32]FM_MakeSignedData [09:37:32]FM_MakeSignedData [09:37:32]SAM_PROTO_SignData [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 0D 01 02 [09:37:32]Write to MH i2c: E2 08 00 1A 37 80 0D 01 02 00 00 00 00 CA [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 1A 37 00 90 00 C5 [09:37:32]RAPDU: 90 00 [09:37:32]wFMCommunicate OK [09:37:32]wFMCommunicate request_size=255 [09:37:32]MH_SAM_APDU [09:37: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 5D 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DE 02 00 35 04 06 00 7B [09:37:32]Write to MH i2c: E2 02 01 1B 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 5D 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DE 02 00 35 04 06 00 7B 00 00 A2 [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 1B 37 00 90 00 C6 [09:37:32]RAPDU: 90 00 [09:37:32]wFMCommunicate OK [09:37:32]wFMCommunicate request_size=10 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 0D 02 02 05 FF 2A FE 44 83 [09:37:32]Write to MH i2c: E2 0D 00 1C 37 80 0D 02 02 05 00 FF 2A FE 44 83 00 00 C5 [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 03 00 1C 37 00 90 00 C7 [09:37:32]RAPDU: 90 00 [09:37:32]wFMCommunicate OK [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 0D 03 02 [09:37:32]Write to MH i2c: E2 08 00 1D 37 80 0D 03 02 00 00 00 00 CF [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 0B 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 0B 00 1D 37 00 4B 11 46 2C 6F BA 13 31 90 00 0B [09:37:32]RAPDU: 4B 11 46 2C 6F BA 13 31 90 00 [09:37:32]wFMCommunicate OK [09:37:32]SAM_PROTO_SignData done [09:37:32]FM_MakeSignedData done [09:37:32]CreateOFDProtocolMessage [09:37:32]wFMCommunicate request_size=4 [09:37:32]MH_SAM_APDU [09:37:32]CAPDU: 80 11 00 00 [09:37:32]Write to MH i2c: E2 08 00 1E 37 80 11 00 00 00 00 00 00 CF [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:32]Read from MH i2c: E2 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 17 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: E2 17 00 1E 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [09:37:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:37:32]wFMCommunicate OK [09:37:32]CreateOFDProtocolMessage done [09:37:32]OFDSenderStorePacket 188144 [09:37:32]StoreOFDPacket docnum=188144 [09:37:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4C 17 07 01 1E 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 5D 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DE 02 00 35 04 06 00 7B FF 2A FE 44 83 4B 11 46 2C 6F BA 13 31 [09:37:32]CheckFolder [09:37:32]dirname=/storage/ofd_packets [09:37:32]CheckFolder done [09:37:32]ProducePacketName [09:37:32]name=ofd_packets/00188144 [09:37:32]NVStorageSaveData ofd_packets/00188144 [09:37:32]File name is /storage/ofd_packets/00188144 [09:37:32]Write 301 bytes [09:37:32]NVStorageSaveData done [09:37:32]OFDSenderStorePacket done [09:37:32]KKMCreateOFDPacket done [09:37:32]NVStorageSaveData kkm_last_timestamp [09:37:32]File name is /storage/kkm_last_timestamp [09:37:32]Write 4 bytes [09:37:32]NVStorageSaveData done [09:37:32]ExternCall_PrintAddStr [09:37:32]wPrintStart [09:37:32]Write to MH i2c: 01 00 00 1F 37 56 [09:37:32]Write i2c OK [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 07 00 [09:37:32]MH_I2C_Read... [09:37:32]Read from MH i2c: 01 07 00 1F 37 00 00 00 00 00 FF 0F 6B [09:37:32]RasterBufferAndPrint [09:37:32]line Счет N : (1)210195 [09:37:32]line ИНН: 02508201610067 [09:37:32]line Контрольно-Кассовый Чек [09:37:32]line ПРОДАЖА [09:37:32]line ТРК (МРК, ГНК) : 32 [09:37:32]line Товар: 2710124130 [09:37:32]line Аи-92-К-3 [09:37:32]line 7.480 * 66.90 [09:37:32]line = 500.41 [09:37:32]line НДС 12% НСП 1% [09:37:32]line > о реализуемом товаре [09:37:32]line ИТОГО: 500.41 [09:37:32]line НСП 1% : 4.43 [09:37:32]line НДС 12% : 53.14 [09:37:32]line Наличными: 0.00 [09:37:32]line Безнал.: 500.41 [09:37:32]line Место: АЗС № 86 "Партнер Нефть" [09:37:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:37:32]line СНО: Общий режим [09:37:32]line Чек 173 22.10.2024 09:37 [09:37:32]line Смена: 461 ФФД: 1.0 [09:37:32]line ЗНМ: 0300000155 [09:37:32]line РНМ: 0000000000100030 [09:37:32]line Версия ККМ: 001 [09:37:32]line Платежная система: Mbank [09:37:32]line ФМ: 0000000000965340 [09:37:32]line ФД: 188144 [09:37:32]line ФПД: 136335868183683 [09:37:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093733&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188144&fm=136335868183683&tin=02508201610067®Number=0000000000100030&sum=50041 [09:37:32]written 0, free lines is 4095 [09:37:33]Write to MH i2c: 01 00 00 48 37 7F [09:37:33]Write i2c OK [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: 01 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: 01 07 00 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: 01 07 00 48 37 00 00 00 00 00 87 0C 19 [09:37:33]RasterBufferAndPrint [09:37:33]line [09:37:33]line [09:37:33]line [09:37:33]line [09:37:33]line [09:37:33]written 0, free lines is 3212 [09:37:33]MH_Cut [09:37:33]Write to MH i2c: D1 01 00 4F 37 01 58 [09:37:33]Write i2c OK [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: D1 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: D1 01 00 [09:37:33]MH_I2C_Read... [09:37:33]Read from MH i2c: D1 01 00 4F 37 00 57 [09:37:33]Write to MH i2c: 01 00 00 50 37 87 [09:37:33]Write i2c OK [09:37:33]MH_I2C_Read... [09:37:34]*** Cut start [09:37:34]*** Partial cut [09:37:34]*** CUTSNS_PIN = 1 [09:37:34]*** CUTSNS_PIN = 0 [09:37:34]*** Brake cut motor [09:37:35]Read from MH i2c: 01 [09:37:35]MH_I2C_Read... [09:37:35]*** Stop cut motor [09:37:35]*** Cut end [09:37:35]Read from MH i2c: 01 07 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: 01 07 00 50 37 00 00 00 00 00 FF 0F 9C [09:37:35]process_action close_receipt done [09:37:35]requested_data is exist [09:37:35]produce_requested_data [09:37:35]requested_item fm.sn is exist - process it [09:37:35]wFMCommunicate request_size=4 [09:37:35]MH_SAM_APDU [09:37:35]CAPDU: 80 11 00 00 [09:37:35]Write to MH i2c: E2 08 00 51 37 80 11 00 00 00 00 00 00 02 [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:37:35]Read from MH i2c: E2 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: E2 17 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: E2 17 00 51 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [09:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:37:35]wFMCommunicate OK [09:37:35]requested_item fd.num is exist - process it [09:37:35]SAM_PROTO_GetFieldsCounters [09:37:35]wFMCommunicate request_size=4 [09:37:35]MH_SAM_APDU [09:37:35]CAPDU: 80 13 00 00 [09:37:35]Write to MH i2c: E2 08 00 52 37 80 13 00 00 00 00 00 00 05 [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:37:35]Read from MH i2c: E2 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: E2 62 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: E2 62 00 52 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [09:37:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F0 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AD 00 00 00 5E 04 04 00 AD 00 00 00 57 04 04 00 AE 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:37:35]wFMCommunicate OK [09:37:35]SAM_PROTO_GetFieldsCounters done [09:37:35]requested_item shift.num is exist - process it [09:37:35]requested_item shift.opened is exist - process it [09:37:35]req_shift_opened [09:37:35]FM_GetShiftState [09:37:35]SAM_PROTO_GetShiftState [09:37:35]wFMCommunicate request_size=4 [09:37:35]MH_SAM_APDU [09:37:35]CAPDU: 80 13 01 00 [09:37:35]Write to MH i2c: E2 08 00 53 37 80 13 01 00 00 00 00 00 07 [09:37:35]Write i2c OK [09:37:35]MH_I2C_Read... [09:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:37:35]Read from MH i2c: E2 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: E2 0E 00 [09:37:35]MH_I2C_Read... [09:37:35]Read from MH i2c: E2 0E 00 53 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FC [09:37:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:37:35]wFMCommunicate OK [09:37:35]SAM_PROTO_GetShiftState done [09:37:35]FM_GetShiftState done [09:37:35]req_shift_opened done [09:37:35]requested_item shift.open_date is exist - process it [09:37:35]req_shift_open_date [09:37:35]req_shift_open_date done [09:37:35]produce_requested_data done [09:37:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188144,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:37:35]process_action_free close_receipt [09:37:35]json_value_free [09:37:35]json_value_free done [09:37:35]process_json_proto returns [09:37:35]Send response to host [09:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188144,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:37:35]free response buf [09:37:35]execute_script done [09:37:35]execute_script returns [09:37:35]free content buf [09:37:35]Sock 9.Close socket [09:37:35]Sock 9.Thread stoped [09:38:57]accept exits with 8 [09:38:57]New connection [09:38:57]New thread 3067055460 created [09:38:57]Thread 3067198820 joined [09:38:57]Waiting for new connection... [09:38:57] Sock 8.Parse request [09:38:57]Sock 8.Check first char [09:38:57]Sock 8.First char is OK [09:38:57]request: POST /json_proto HTTP/1.0 [09:38:57]Method: POST [09:38:57]URL: /json_proto [09:38:57]Method is POST - this is cgi request [09:38:57]url: /json_proto [09:38:57]query_string will be loaded in cgi processing [09:38:57]execute_cgi json_proto POST (null) [09:38:57]execute_cgi path=json_proto method=POST [09:38:57]POST find Content-Length [09:38:57]Host: 172.17.42.131:8080 [09:38:57]Content-Length: 682 [09:38:57]Content-Type: application/json [09:38:57] [09:38:57]POST finish read [09:38:57]Found Content-Length = 682 [09:38:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:57]execute_script... [09:38: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)210196", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:38:57]POST & json_proto [09:38:57]process_json_proto [09:38:57]json parsed OK: [09:38:57]protocol is kg_v1.0 [09:38:57]action value=close_receipt [09:38:57]process_action close_receipt [09:38:57]cmd_close_receipt [09:38:57]MH_GetDate [09:38:57]Write to MH i2c: F0 00 00 54 37 7A [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: F0 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: F0 09 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: F0 09 00 54 37 00 B4 72 17 67 A0 18 CA 66 0F [09:38:57]GetLastDocTimeStamp 1729589853 [09:38:57]current date 1729589940 [09:38:57]FM_GetShiftState [09:38:57]SAM_PROTO_GetShiftState [09:38:57]wFMCommunicate request_size=4 [09:38:57]MH_SAM_APDU [09:38:57]CAPDU: 80 13 01 00 [09:38:57]Write to MH i2c: E2 08 00 55 37 80 13 01 00 00 00 00 00 09 [09:38:57]Write i2c OK [09:38:57]MH_I2C_Read... [09:38:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:38:57]Read from MH i2c: E2 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 0E 00 [09:38:57]MH_I2C_Read... [09:38:57]Read from MH i2c: E2 0E 00 55 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FE [09:38:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:38:57]wFMCommunicate OK [09:38:57]SAM_PROTO_GetShiftState done [09:38:57]FM_GetShiftState done [09:38:57]opened in 1729556094 [09:38:57]opened+sec_in_day 1729642494 [09:38:57]quantity*price = 100015 [09:38:57]sum+1 = 100017 [09:38:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 174 22.10.2024 09:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188145 ФПД: 99224982337655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093900&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188145&fm=99224982337655&tin=02508201610067®Number=0000000000100030&sum=100000 [09:38:58]StoreToDocumentArchive [09:38:58]shift 461 fd 188145 [09:38:58]save to /storage/0461/doc_00188145 [09:38:58]save last doc name /storage/0461/doc_00188145 to /storage/kkm_last_doc_name [09:38:58]save OK [09:38:58]Clear old archive folders... [09:38:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:38:58]tlvbuf is 01C34BD0 [09:38:58]SAM_PROTO_ClearQueue [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 09 00 00 [09:38:58]Write to MH i2c: E2 08 00 62 37 80 09 00 00 00 00 00 00 0B [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:38:58]Read from MH i2c: E2 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 [09:38:58]MH_I2C_Read... [09:38:58]Read from MH i2c: E2 03 00 62 37 00 90 00 0D [09:38:58]RAPDU: 90 00 [09:38:58]wFMCommunicate OK [09:38:58]SAM_PROTO_ClearQueue done [09:38:58]KKMCreateOFDPacket [09:38:58]OFDProtocolAddRootSTLVToBuf [09:38:58]FM_MakeSignedData [09:38:58]FM_MakeSignedData [09:38:58]SAM_PROTO_SignData [09:38:58]wFMCommunicate request_size=4 [09:38:58]MH_SAM_APDU [09:38:58]CAPDU: 80 0D 01 02 [09:38:58]Write to MH i2c: E2 08 00 63 37 80 0D 01 02 00 00 00 00 13 [09:38:58]Write i2c OK [09:38:58]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 63 37 00 90 00 0E [09:38:59]RAPDU: 90 00 [09:38:59]wFMCommunicate OK [09:38:59]wFMCommunicate request_size=255 [09:38:59]MH_SAM_APDU [09:38: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B4 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DE 02 00 35 04 06 00 5A [09:38:59]Write to MH i2c: E2 02 01 64 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B4 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DE 02 00 35 04 06 00 5A 00 00 CB [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 64 37 00 90 00 0F [09:38:59]RAPDU: 90 00 [09:38:59]wFMCommunicate OK [09:38:59]wFMCommunicate request_size=10 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 0D 02 02 05 3E 9D D3 38 77 [09:38:59]Write to MH i2c: E2 0D 00 65 37 80 0D 02 02 05 00 3E 9D D3 38 77 00 00 7D [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 03 00 65 37 00 90 00 10 [09:38:59]RAPDU: 90 00 [09:38:59]wFMCommunicate OK [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 0D 03 02 [09:38:59]Write to MH i2c: E2 08 00 66 37 80 0D 03 02 00 00 00 00 18 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0B 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 0B 00 66 37 00 78 53 27 B2 42 84 D7 B6 90 00 10 [09:38:59]RAPDU: 78 53 27 B2 42 84 D7 B6 90 00 [09:38:59]wFMCommunicate OK [09:38:59]SAM_PROTO_SignData done [09:38:59]FM_MakeSignedData done [09:38:59]CreateOFDProtocolMessage [09:38:59]wFMCommunicate request_size=4 [09:38:59]MH_SAM_APDU [09:38:59]CAPDU: 80 11 00 00 [09:38:59]Write to MH i2c: E2 08 00 67 37 80 11 00 00 00 00 00 00 18 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:38:59]Read from MH i2c: E2 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: E2 17 00 67 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [09:38:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:38:59]wFMCommunicate OK [09:38:59]CreateOFDProtocolMessage done [09:38:59]OFDSenderStorePacket 188145 [09:38:59]StoreOFDPacket docnum=188145 [09:38:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 90 07 01 B7 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B4 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DE 02 00 35 04 06 00 5A 3E 9D D3 38 77 78 53 27 B2 42 84 D7 B6 [09:38:59]CheckFolder [09:38:59]dirname=/storage/ofd_packets [09:38:59]CheckFolder done [09:38:59]ProducePacketName [09:38:59]name=ofd_packets/00188145 [09:38:59]NVStorageSaveData ofd_packets/00188145 [09:38:59]File name is /storage/ofd_packets/00188145 [09:38:59]Write 301 bytes [09:38:59]NVStorageSaveData done [09:38:59]OFDSenderStorePacket done [09:38:59]KKMCreateOFDPacket done [09:38:59]NVStorageSaveData kkm_last_timestamp [09:38:59]File name is /storage/kkm_last_timestamp [09:38:59]Write 4 bytes [09:38:59]NVStorageSaveData done [09:38:59]ExternCall_PrintAddStr [09:38:59]wPrintStart [09:38:59]Write to MH i2c: 01 00 00 68 37 9F [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 68 37 00 00 00 00 00 FF 0F B4 [09:38:59]RasterBufferAndPrint [09:38:59]line Счет N : (1)210196 [09:38:59]line ИНН: 02508201610067 [09:38:59]line Контрольно-Кассовый Чек [09:38:59]line ПРОДАЖА [09:38:59]line ТРК (МРК, ГНК) : 42 [09:38:59]line Товар: 2710124130 [09:38:59]line Аи-92-К-3 [09:38:59]line 14.950 * 66.90 [09:38:59]line = 1000.16 [09:38:59]line НДС 12% НСП 1% [09:38:59]line > о реализуемом товаре [09:38:59]line ОКРУГЛЕНИЕ: -0.16 [09:38:59]line ИТОГО: 1000.00 [09:38:59]line Внесено: 1000.00 [09:38:59]line СДАЧА: 0.00 [09:38:59]line НСП 1% : 8.85 [09:38:59]line НДС 12% : 106.21 [09:38:59]line Наличными: 1000.00 [09:38:59]line Безнал.: 0.00 [09:38:59]line Место: АЗС № 86 "Партнер Нефть" [09:38:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:38:59]line СНО: Общий режим [09:38:59]line Чек 174 22.10.2024 09:39 [09:38:59]line Смена: 461 ФФД: 1.0 [09:38:59]line ЗНМ: 0300000155 [09:38:59]line РНМ: 0000000000100030 [09:38:59]line Версия ККМ: 001 [09:38:59]line ФМ: 0000000000965340 [09:38:59]line ФД: 188145 [09:38:59]line ФПД: 99224982337655 [09:38:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T093900&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188145&fm=99224982337655&tin=02508201610067®Number=0000000000100030&sum=100000 [09:38:59]written 0, free lines is 4095 [09:38:59]Write to MH i2c: 01 00 00 93 37 CA [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: 01 07 00 93 37 00 00 00 00 00 59 0C 36 [09:38:59]RasterBufferAndPrint [09:38:59]line [09:38:59]line [09:38:59]line [09:38:59]line [09:38:59]line [09:38:59]written 0, free lines is 3165 [09:38:59]MH_Cut [09:38:59]Write to MH i2c: D1 01 00 9A 37 01 A3 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: D1 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: D1 01 00 [09:38:59]MH_I2C_Read... [09:38:59]Read from MH i2c: D1 01 00 9A 37 00 A2 [09:38:59]Write to MH i2c: 01 00 00 9B 37 D2 [09:38:59]Write i2c OK [09:38:59]MH_I2C_Read... [09:39:01]*** Cut start [09:39:01]*** Partial cut [09:39:01]*** CUTSNS_PIN = 1 [09:39:01]*** CUTSNS_PIN = 0 [09:39:01]*** Brake cut motor [09:39:01]Read from MH i2c: 01 [09:39:01]MH_I2C_Read... [09:39:01]*** Stop cut motor [09:39:01]Read from MH i2c: 01 07 00 [09:39:01]MH_I2C_Read... [09:39:01]*** Cut end [09:39:01]Read from MH i2c: 01 07 00 9B 37 00 00 00 00 00 FF 0F E7 [09:39:01]process_action close_receipt done [09:39:01]requested_data is exist [09:39:01]produce_requested_data [09:39:01]requested_item fm.sn is exist - process it [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 11 00 00 [09:39:01]Write to MH i2c: E2 08 00 9C 37 80 11 00 00 00 00 00 00 4D [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:39:01]Read from MH i2c: E2 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 17 00 [09:39:01]MH_I2C_Read... [09:39:01]Read from MH i2c: E2 17 00 9C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [09:39:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:39:01]wFMCommunicate OK [09:39:01]requested_item fd.num is exist - process it [09:39:01]SAM_PROTO_GetFieldsCounters [09:39:01]wFMCommunicate request_size=4 [09:39:01]MH_SAM_APDU [09:39:01]CAPDU: 80 13 00 00 [09:39:01]Write to MH i2c: E2 08 00 9D 37 80 13 00 00 00 00 00 00 50 [09:39:01]Write i2c OK [09:39:01]MH_I2C_Read... [09:39:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:39:02]Read from MH i2c: E2 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 62 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 62 00 9D 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 00 [09:39:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AE 00 00 00 5E 04 04 00 AE 00 00 00 57 04 04 00 AF 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:39:02]wFMCommunicate OK [09:39:02]SAM_PROTO_GetFieldsCounters done [09:39:02]requested_item shift.num is exist - process it [09:39:02]requested_item shift.opened is exist - process it [09:39:02]req_shift_opened [09:39:02]FM_GetShiftState [09:39:02]SAM_PROTO_GetShiftState [09:39:02]wFMCommunicate request_size=4 [09:39:02]MH_SAM_APDU [09:39:02]CAPDU: 80 13 01 00 [09:39:02]Write to MH i2c: E2 08 00 9E 37 80 13 01 00 00 00 00 00 52 [09:39:02]Write i2c OK [09:39:02]MH_I2C_Read... [09:39:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:39:02]Read from MH i2c: E2 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 0E 00 [09:39:02]MH_I2C_Read... [09:39:02]Read from MH i2c: E2 0E 00 9E 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 47 [09:39:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:39:02]wFMCommunicate OK [09:39:02]SAM_PROTO_GetShiftState done [09:39:02]FM_GetShiftState done [09:39:02]req_shift_opened done [09:39:02]requested_item shift.open_date is exist - process it [09:39:02]req_shift_open_date [09:39:02]req_shift_open_date done [09:39:02]produce_requested_data done [09:39:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188145,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:39:02]process_action_free close_receipt [09:39:02]json_value_free [09:39:02]json_value_free done [09:39:02]process_json_proto returns [09:39:02]Send response to host [09:39:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188145,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:39:02]free response buf [09:39:02]execute_script done [09:39:02]execute_script returns [09:39:02]free content buf [09:39:02]Sock 8.Close socket [09:39:02]Sock 8.Thread stoped [09:39:19]ConnectInit Can't connect to host [09:39:19]CommunicateWithHost connect error [09:39:19]CommunicateWithHost err = -1 [09:39:19]OFD Sender: Server communicate error [09:39:19]OFD Sender: Processing packet 188143 [packets to send 1064, broken 1061] [09:39:19]ProducePacketName [09:39:20]name=ofd_packets/00188143 [09:39:20]OFD Sender: To server: pG, [09:39:20]CommunicateWithHost lk.salyk.kg:30040 [09:39:20]ConnectInit lk.salyk.kg [09:39:20]Connected sock=8 [09:39:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 0E CE 0D 01 03 BE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AC 00 00 00 F4 03 04 00 45 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DE 02 00 35 04 06 00 A5 7E 5C 3B B2 7E 7E 2B 7B A6 93 CC EF D7 [09:39:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8A E1 47 00 13 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 EF DE 02 00 F4 03 04 00 B6 1C 17 67 B6 04 01 00 00 DA 11 1F 65 DC D9 CB 13 [09:39:20]CommunicateWithHost err = 0 [09:39:20]CheckOFDResponse [09:39:20]1017 (14) - 77093643461234 [09:39:20]1041 (16) - 0000000000965340 [09:39:20]1040 (4) - 188143 [09:39:20]1012 (4) - 22.10.2024 03:32 [09:39:20]1206 (1) - 0 [09:39:20]OFD Sender: Remove packet 188143 [09:39:20]ProducePacketName [09:39:20]name=ofd_packets/00188143 [09:39:20]NVStorageDeleteData [09:39:21]OFD Sender: Processing packet 188144 [packets to send 1063, broken 1061] [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00188144 [09:39:21]OFD Sender: To server: pG, [09:39:21]CommunicateWithHost lk.salyk.kg:30040 [09:39:21]ConnectInit lk.salyk.kg [09:39:21]Connected sock=8 [09:39:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4C 17 07 01 1E 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 5D 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DE 02 00 35 04 06 00 7B FF 2A FE 44 83 4B 11 46 2C 6F BA 13 31 [09:39:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 7C 47 00 FD 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F0 DE 02 00 F4 03 04 00 B7 1C 17 67 B6 04 01 00 00 1D B7 D1 9F 94 FA 4D E4 [09:39:21]CommunicateWithHost err = 0 [09:39:21]CheckOFDResponse [09:39:21]1017 (14) - 77093643461234 [09:39:21]1041 (16) - 0000000000965340 [09:39:21]1040 (4) - 188144 [09:39:21]1012 (4) - 22.10.2024 03:32 [09:39:21]1206 (1) - 0 [09:39:21]OFD Sender: Remove packet 188144 [09:39:21]ProducePacketName [09:39:21]name=ofd_packets/00188144 [09:39:21]NVStorageDeleteData [09:39:22]OFD Sender: Processing packet 188145 [packets to send 1062, broken 1061] [09:39:22]ProducePacketName [09:39:22]name=ofd_packets/00188145 [09:39:22]OFD Sender: To server: pG, [09:39:22]CommunicateWithHost lk.salyk.kg:30040 [09:39:22]ConnectInit lk.salyk.kg [09:39:22]Connected sock=8 [09:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 90 07 01 B7 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 00 00 00 F4 03 04 00 B4 72 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DE 02 00 35 04 06 00 5A 3E 9D D3 38 77 78 53 27 B2 42 84 D7 B6 [09:39:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 93 31 47 00 4B 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DE 02 00 F4 03 04 00 B9 1C 17 67 B6 04 01 00 00 AF 92 16 A4 BB 43 82 D7 [09:39:23]CommunicateWithHost err = 0 [09:39:23]CheckOFDResponse [09:39:23]1017 (14) - 77093643461234 [09:39:23]1041 (16) - 0000000000965340 [09:39:23]1040 (4) - 188145 [09:39:23]1012 (4) - 22.10.2024 03:32 [09:39:23]1206 (1) - 0 [09:39:23]OFD Sender: Remove packet 188145 [09:39:23]ProducePacketName [09:39:23]name=ofd_packets/00188145 [09:39:23]NVStorageDeleteData [09:39:23]OFD Sender: No OFD packet to send [09:39:28]OFD Sender: No OFD packet to send [09:39:33]OFD Sender: No OFD packet to send [09:39:38]OFD Sender: No OFD packet to send [09:39:43]OFD Sender: No OFD packet to send [09:39:48]OFD Sender: No OFD packet to send [09:39:53]OFD Sender: No OFD packet to send [09:39:58]OFD Sender: No OFD packet to send [09:40:03]OFD Sender: No OFD packet to send [09:40:08]OFD Sender: No OFD packet to send [09:40:13]OFD Sender: No OFD packet to send [09:40:18]OFD Sender: No OFD packet to send [09:40:23]OFD Sender: No OFD packet to send [09:40:28]OFD Sender: No OFD packet to send [09:40:33]OFD Sender: No OFD packet to send [09:40:38]OFD Sender: No OFD packet to send [09:40:43]OFD Sender: No OFD packet to send [09:40:48]OFD Sender: No OFD packet to send [09:40:53]OFD Sender: No OFD packet to send [09:40:58]OFD Sender: No OFD packet to send [09:41:03]OFD Sender: No OFD packet to send [09:41:09]OFD Sender: No OFD packet to send [09:41:14]OFD Sender: No OFD packet to send [09:41:19]OFD Sender: No OFD packet to send [09:41:24]OFD Sender: No OFD packet to send [09:41:24]accept exits with 9 [09:41:24]New connection [09:41:24]New thread 3067198820 created [09:41:24]Thread 3067055460 joined [09:41:24]Waiting for new connection... [09:41:24] Sock 9.Parse request [09:41:24]Sock 9.Check first char [09:41:24]Sock 9.First char is OK [09:41:24]request: POST /json_proto HTTP/1.0 [09:41:24]Method: POST [09:41:24]URL: /json_proto [09:41:24]Method is POST - this is cgi request [09:41:24]url: /json_proto [09:41:24]query_string will be loaded in cgi processing [09:41:24]execute_cgi json_proto POST (null) [09:41:24]execute_cgi path=json_proto method=POST [09:41:24]POST find Content-Length [09:41:24]Host: 172.17.42.131:8080 [09:41:24]Content-Length: 769 [09:41:24]Content-Type: application/json [09:41:24] [09:41:24]POST finish read [09:41:24]Found Content-Length = 769 [09:41:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210197", "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" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:24]execute_script... [09:41:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210197", "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" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.32 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:24]POST & json_proto [09:41:24]process_json_proto [09:41:24]json parsed OK: [09:41:24]protocol is kg_v1.0 [09:41:24]action value=close_receipt [09:41:24]process_action close_receipt [09:41:24]cmd_close_receipt [09:41:24]MH_GetDate [09:41:24]Write to MH i2c: F0 00 00 9F 37 C5 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: F0 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: F0 09 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: F0 09 00 9F 37 00 46 73 17 67 A0 18 CA 66 ED [09:41:24]GetLastDocTimeStamp 1729589940 [09:41:24]current date 1729590086 [09:41:24]FM_GetShiftState [09:41:24]SAM_PROTO_GetShiftState [09:41:24]wFMCommunicate request_size=4 [09:41:24]MH_SAM_APDU [09:41:24]CAPDU: 80 13 01 00 [09:41:24]Write to MH i2c: E2 08 00 A0 37 80 13 01 00 00 00 00 00 54 [09:41:24]Write i2c OK [09:41:24]MH_I2C_Read... [09:41:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:24]Read from MH i2c: E2 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 0E 00 [09:41:24]MH_I2C_Read... [09:41:24]Read from MH i2c: E2 0E 00 A0 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [09:41:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:41:24]wFMCommunicate OK [09:41:24]SAM_PROTO_GetShiftState done [09:41:24]FM_GetShiftState done [09:41:24]opened in 1729556094 [09:41:24]opened+sec_in_day 1729642494 [09:41:24]quantity*price = 150032 [09:41:24]sum+1 = 150033 [09:41:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 175 22.10.2024 09:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188146 ФПД: 35508314877110 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188146&fm=35508314877110&tin=02508201610067®Number=0000000000100030&sum=150032 [09:41:25]StoreToDocumentArchive [09:41:25]shift 461 fd 188146 [09:41:25]save to /storage/0461/doc_00188146 [09:41:25]save last doc name /storage/0461/doc_00188146 to /storage/kkm_last_doc_name [09:41:25]save OK [09:41:25]Clear old archive folders... [09:41:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:25]tlvbuf is 01C04040 [09:41:25]SAM_PROTO_ClearQueue [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 09 00 00 [09:41:25]Write to MH i2c: E2 08 00 AD 37 80 09 00 00 00 00 00 00 56 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 AD 37 00 90 00 58 [09:41:25]RAPDU: 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_ClearQueue done [09:41:25]KKMCreateOFDPacket [09:41:25]OFDProtocolAddRootSTLVToBuf [09:41:25]FM_MakeSignedData [09:41:25]FM_MakeSignedData [09:41:25]SAM_PROTO_SignData [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 0D 01 02 [09:41:25]Write to MH i2c: E2 08 00 AE 37 80 0D 01 02 00 00 00 00 5E [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 AE 37 00 90 00 59 [09:41:25]RAPDU: 90 00 [09:41:25]wFMCommunicate OK [09:41:25]wFMCommunicate request_size=255 [09:41:25]MH_SAM_APDU [09:41: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 47 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DE 02 00 35 04 06 00 20 [09:41:25]Write to MH i2c: E2 02 01 AF 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 47 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DE 02 00 35 04 06 00 20 00 00 1D [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 AF 37 00 90 00 5A [09:41:25]RAPDU: 90 00 [09:41:25]wFMCommunicate OK [09:41:25]wFMCommunicate request_size=10 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 0D 02 02 05 4B 6C 7E AC B6 [09:41:25]Write to MH i2c: E2 0D 00 B0 37 80 0D 02 02 05 00 4B 6C 7E AC B6 00 00 02 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 03 00 B0 37 00 90 00 5B [09:41:25]RAPDU: 90 00 [09:41:25]wFMCommunicate OK [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 0D 03 02 [09:41:25]Write to MH i2c: E2 08 00 B1 37 80 0D 03 02 00 00 00 00 63 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0B 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 0B 00 B1 37 00 10 F2 C1 B4 A4 14 D7 8E 90 00 F8 [09:41:25]RAPDU: 10 F2 C1 B4 A4 14 D7 8E 90 00 [09:41:25]wFMCommunicate OK [09:41:25]SAM_PROTO_SignData done [09:41:25]FM_MakeSignedData done [09:41:25]CreateOFDProtocolMessage [09:41:25]wFMCommunicate request_size=4 [09:41:25]MH_SAM_APDU [09:41:25]CAPDU: 80 11 00 00 [09:41:25]Write to MH i2c: E2 08 00 B2 37 80 11 00 00 00 00 00 00 63 [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:25]Read from MH i2c: E2 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 17 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: E2 17 00 B2 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [09:41:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:25]wFMCommunicate OK [09:41:25]CreateOFDProtocolMessage done [09:41:25]OFDSenderStorePacket 188146 [09:41:25]StoreOFDPacket docnum=188146 [09:41:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B C2 07 01 3C A3 5A 03 01 00 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 47 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DE 02 00 35 04 06 00 20 4B 6C 7E AC B6 10 F2 C1 B4 A4 14 D7 8E [09:41:25]CheckFolder [09:41:25]dirname=/storage/ofd_packets [09:41:25]CheckFolder done [09:41:25]ProducePacketName [09:41:25]name=ofd_packets/00188146 [09:41:25]NVStorageSaveData ofd_packets/00188146 [09:41:25]File name is /storage/ofd_packets/00188146 [09:41:25]Write 301 bytes [09:41:25]NVStorageSaveData done [09:41:25]OFDSenderStorePacket done [09:41:25]KKMCreateOFDPacket done [09:41:25]NVStorageSaveData kkm_last_timestamp [09:41:25]File name is /storage/kkm_last_timestamp [09:41:25]Write 4 bytes [09:41:25]NVStorageSaveData done [09:41:25]ExternCall_PrintAddStr [09:41:25]wPrintStart [09:41:25]Write to MH i2c: 01 00 00 B3 37 EA [09:41:25]Write i2c OK [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 07 00 [09:41:25]MH_I2C_Read... [09:41:25]Read from MH i2c: 01 07 00 B3 37 00 00 00 00 00 FF 0F FF [09:41:25]RasterBufferAndPrint [09:41:25]line Счет N : (1)210197 [09:41:25]line ИНН: 02508201610067 [09:41:25]line Контрольно-Кассовый Чек [09:41:25]line ПРОДАЖА [09:41:25]line ТРК (МРК, ГНК) : 33 [09:41:25]line Товар: 2710124500 [09:41:25]line Аи-95-К-3 [09:41:25]line 20.220 * 74.20 [09:41:25]line = 1500.32 [09:41:25]line НДС 12% НСП 1% [09:41:25]line > о реализуемом товаре [09:41:25]line ИТОГО: 1500.32 [09:41:25]line НСП 1% : 13.28 [09:41:25]line НДС 12% : 159.33 [09:41:25]line Наличными: 0.00 [09:41:25]line Безнал.: 1500.32 [09:41:25]line Место: АЗС № 86 "Партнер Нефть" [09:41:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:41:25]line СНО: Общий режим [09:41:25]line Чек 175 22.10.2024 09:41 [09:41:25]line Смена: 461 ФФД: 1.0 [09:41:25]line ЗНМ: 0300000155 [09:41:25]line РНМ: 0000000000100030 [09:41:25]line Версия ККМ: 001 [09:41:25]line Платежная система: Mbank [09:41:25]line ФМ: 0000000000965340 [09:41:25]line ФД: 188146 [09:41:25]line ФПД: 35508314877110 [09:41:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094127&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188146&fm=35508314877110&tin=02508201610067®Number=0000000000100030&sum=150032 [09:41:25]written 0, free lines is 4095 [09:41:25]OFD Sender: Processing packet 188146 [packets to send 1062, broken 1061] [09:41:25]ProducePacketName [09:41:25]name=ofd_packets/00188146 [09:41:25]OFD Sender: To server: pG, [09:41:25]CommunicateWithHost lk.salyk.kg:30040 [09:41:25]ConnectInit lk.salyk.kg [09:41:26]Write to MH i2c: 01 00 00 DC 37 13 [09:41:26]Write i2c OK [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: 01 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: 01 07 00 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: 01 07 00 DC 37 00 00 00 00 00 87 0C AD [09:41:26]RasterBufferAndPrint [09:41:26]line [09:41:26]line [09:41:26]line [09:41:26]line [09:41:26]line [09:41:26]written 0, free lines is 3210 [09:41:26]MH_Cut [09:41:26]Write to MH i2c: D1 01 00 E3 37 01 EC [09:41:26]Write i2c OK [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: D1 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: D1 01 00 [09:41:26]MH_I2C_Read... [09:41:26]Read from MH i2c: D1 01 00 E3 37 00 EB [09:41:26]Write to MH i2c: 01 00 00 E4 37 1B [09:41:26]Write i2c OK [09:41:26]MH_I2C_Read... [09:41:26]Connected sock=11 [09:41:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B C2 07 01 3C A3 5A 03 01 00 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 47 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DE 02 00 35 04 06 00 20 4B 6C 7E AC B6 10 F2 C1 B4 A4 14 D7 8E [09:41:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A F5 47 00 E0 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 39 36 35 33 34 30 10 04 04 00 F2 DE 02 00 F4 03 04 00 34 1D 17 67 B6 04 01 00 00 08 B4 57 05 DB B7 AA 74 [09:41:26]CommunicateWithHost err = 0 [09:41:26]CheckOFDResponse [09:41:26]1017 (14) - 77093643461234 [09:41:26]1041 (16) - 0000000000965340 [09:41:26]1040 (4) - 188146 [09:41:26]1012 (4) - 22.10.2024 03:34 [09:41:26]1206 (1) - 0 [09:41:26]OFD Sender: Remove packet 188146 [09:41:26]ProducePacketName [09:41:26]name=ofd_packets/00188146 [09:41:26]NVStorageDeleteData [09:41:27]OFD Sender: No OFD packet to send [09:41:27]*** Cut start [09:41:27]*** Partial cut [09:41:27]*** CUTSNS_PIN = 1 [09:41:27]*** CUTSNS_PIN = 0 [09:41:27]*** Brake cut motor [09:41:28]Read from MH i2c: 01 [09:41:28]MH_I2C_Read... [09:41:28]*** Stop cut motor [09:41:28]*** Cut end [09:41:28]Read from MH i2c: 01 07 00 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: 01 07 00 E4 37 00 00 00 00 00 FF 0F 30 [09:41:28]process_action close_receipt done [09:41:28]requested_data is exist [09:41:28]produce_requested_data [09:41:28]requested_item fm.sn is exist - process it [09:41:28]wFMCommunicate request_size=4 [09:41:28]MH_SAM_APDU [09:41:28]CAPDU: 80 11 00 00 [09:41:28]Write to MH i2c: E2 08 00 E5 37 80 11 00 00 00 00 00 00 96 [09:41:28]Write i2c OK [09:41:28]MH_I2C_Read... [09:41:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:28]Read from MH i2c: E2 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: E2 17 00 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: E2 17 00 E5 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [09:41:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:28]wFMCommunicate OK [09:41:28]requested_item fd.num is exist - process it [09:41:28]SAM_PROTO_GetFieldsCounters [09:41:28]wFMCommunicate request_size=4 [09:41:28]MH_SAM_APDU [09:41:28]CAPDU: 80 13 00 00 [09:41:28]Write to MH i2c: E2 08 00 E6 37 80 13 00 00 00 00 00 00 99 [09:41:28]Write i2c OK [09:41:28]MH_I2C_Read... [09:41:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:28]Read from MH i2c: E2 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: E2 62 00 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: E2 62 00 E6 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 4D [09:41:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AF 00 00 00 5E 04 04 00 AF 00 00 00 57 04 04 00 B0 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:28]wFMCommunicate OK [09:41:28]SAM_PROTO_GetFieldsCounters done [09:41:28]requested_item shift.num is exist - process it [09:41:28]requested_item shift.opened is exist - process it [09:41:28]req_shift_opened [09:41:28]FM_GetShiftState [09:41:28]SAM_PROTO_GetShiftState [09:41:28]wFMCommunicate request_size=4 [09:41:28]MH_SAM_APDU [09:41:28]CAPDU: 80 13 01 00 [09:41:28]Write to MH i2c: E2 08 00 E7 37 80 13 01 00 00 00 00 00 9B [09:41:28]Write i2c OK [09:41:28]MH_I2C_Read... [09:41:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:28]Read from MH i2c: E2 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: E2 0E 00 [09:41:28]MH_I2C_Read... [09:41:28]Read from MH i2c: E2 0E 00 E7 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 90 [09:41:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:41:28]wFMCommunicate OK [09:41:28]SAM_PROTO_GetShiftState done [09:41:28]FM_GetShiftState done [09:41:28]req_shift_opened done [09:41:28]requested_item shift.open_date is exist - process it [09:41:28]req_shift_open_date [09:41:28]req_shift_open_date done [09:41:28]produce_requested_data done [09:41:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188146,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:41:28]process_action_free close_receipt [09:41:28]json_value_free [09:41:28]json_value_free done [09:41:28]process_json_proto returns [09:41:28]Send response to host [09:41:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188146,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:41:28]free response buf [09:41:28]execute_script done [09:41:28]execute_script returns [09:41:28]free content buf [09:41:28]Sock 9.Close socket [09:41:28]Sock 9.Thread stoped [09:41:32]OFD Sender: No OFD packet to send [09:41:36]accept exits with 8 [09:41:36]New connection [09:41:36]New thread 3067055460 created [09:41:36]Thread 3067198820 joined [09:41:36]Waiting for new connection... [09:41:36] Sock 8.Parse request [09:41:36]Sock 8.Check first char [09:41:36]Sock 8.First char is OK [09:41:36]request: POST /json_proto HTTP/1.0 [09:41:36]Method: POST [09:41:36]URL: /json_proto [09:41:36]Method is POST - this is cgi request [09:41:36]url: /json_proto [09:41:36]query_string will be loaded in cgi processing [09:41:36]execute_cgi json_proto POST (null) [09:41:36]execute_cgi path=json_proto method=POST [09:41:36]POST find Content-Length [09:41:36]Host: 172.17.42.131:8080 [09:41:36]Content-Length: 677 [09:41:36]Content-Type: application/json [09:41:36] [09:41:36]POST finish read [09:41:36]Found Content-Length = 677 [09:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:36]execute_script... [09:41: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)210198", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:36]POST & json_proto [09:41:36]process_json_proto [09:41:36]json parsed OK: [09:41:36]protocol is kg_v1.0 [09:41:36]action value=close_receipt [09:41:36]process_action close_receipt [09:41:36]cmd_close_receipt [09:41:36]MH_GetDate [09:41:36]Write to MH i2c: F0 00 00 E8 37 0E [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: F0 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: F0 09 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: F0 09 00 E8 37 00 53 73 17 67 A0 18 CA 66 43 [09:41:36]GetLastDocTimeStamp 1729590087 [09:41:36]current date 1729590099 [09:41:36]FM_GetShiftState [09:41:36]SAM_PROTO_GetShiftState [09:41:36]wFMCommunicate request_size=4 [09:41:36]MH_SAM_APDU [09:41:36]CAPDU: 80 13 01 00 [09:41:36]Write to MH i2c: E2 08 00 E9 37 80 13 01 00 00 00 00 00 9D [09:41:36]Write i2c OK [09:41:36]MH_I2C_Read... [09:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:36]Read from MH i2c: E2 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0E 00 [09:41:36]MH_I2C_Read... [09:41:36]Read from MH i2c: E2 0E 00 E9 37 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 92 [09:41:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:41:36]wFMCommunicate OK [09:41:36]SAM_PROTO_GetShiftState done [09:41:36]FM_GetShiftState done [09:41:36]opened in 1729556094 [09:41:36]opened+sec_in_day 1729642494 [09:41:36]quantity*price = 50041 [09:41:36]sum+1 = 50042 [09:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 176 22.10.2024 09:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188147 ФПД: 84910704121704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188147&fm=84910704121704&tin=02508201610067®Number=0000000000100030&sum=50000 [09:41:38]StoreToDocumentArchive [09:41:38]shift 461 fd 188147 [09:41:38]save to /storage/0461/doc_00188147 [09:41:38]save last doc name /storage/0461/doc_00188147 to /storage/kkm_last_doc_name [09:41:38]save OK [09:41:38]Clear old archive folders... [09:41:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:41:38]tlvbuf is 01C24E30 [09:41:38]SAM_PROTO_ClearQueue [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 09 00 00 [09:41:38]Write to MH i2c: E2 08 00 F6 37 80 09 00 00 00 00 00 00 9F [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 F6 37 00 90 00 A1 [09:41:38]RAPDU: 90 00 [09:41:38]wFMCommunicate OK [09:41:38]SAM_PROTO_ClearQueue done [09:41:38]KKMCreateOFDPacket [09:41:38]OFDProtocolAddRootSTLVToBuf [09:41:38]FM_MakeSignedData [09:41:38]FM_MakeSignedData [09:41:38]SAM_PROTO_SignData [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 0D 01 02 [09:41:38]Write to MH i2c: E2 08 00 F7 37 80 0D 01 02 00 00 00 00 A7 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 F7 37 00 90 00 A2 [09:41:38]RAPDU: 90 00 [09:41:38]wFMCommunicate OK [09:41:38]wFMCommunicate request_size=255 [09:41:38]MH_SAM_APDU [09:41: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 53 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DE 02 00 35 04 06 00 4D [09:41:38]Write to MH i2c: E2 02 01 F8 37 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 53 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DE 02 00 35 04 06 00 4D 00 00 FC [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 F8 37 00 90 00 A3 [09:41:38]RAPDU: 90 00 [09:41:38]wFMCommunicate OK [09:41:38]wFMCommunicate request_size=10 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 0D 02 02 05 39 D0 5B 57 68 [09:41:38]Write to MH i2c: E2 0D 00 F9 37 80 0D 02 02 05 00 39 D0 5B 57 68 00 00 D7 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 03 00 F9 37 00 90 00 A4 [09:41:38]RAPDU: 90 00 [09:41:38]wFMCommunicate OK [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 0D 03 02 [09:41:38]Write to MH i2c: E2 08 00 FA 37 80 0D 03 02 00 00 00 00 AC [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 0B 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 0B 00 FA 37 00 6D 33 F3 0D AF 7D 7A DD 90 00 D0 [09:41:38]RAPDU: 6D 33 F3 0D AF 7D 7A DD 90 00 [09:41:38]wFMCommunicate OK [09:41:38]SAM_PROTO_SignData done [09:41:38]FM_MakeSignedData done [09:41:38]CreateOFDProtocolMessage [09:41:38]wFMCommunicate request_size=4 [09:41:38]MH_SAM_APDU [09:41:38]CAPDU: 80 11 00 00 [09:41:38]Write to MH i2c: E2 08 00 FB 37 80 11 00 00 00 00 00 00 AC [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:38]Read from MH i2c: E2 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 17 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: E2 17 00 FB 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [09:41:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:38]wFMCommunicate OK [09:41:38]CreateOFDProtocolMessage done [09:41:38]OFDSenderStorePacket 188147 [09:41:38]StoreOFDPacket docnum=188147 [09:41:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC BF 07 01 1D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 53 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DE 02 00 35 04 06 00 4D 39 D0 5B 57 68 6D 33 F3 0D AF 7D 7A DD [09:41:38]CheckFolder [09:41:38]dirname=/storage/ofd_packets [09:41:38]CheckFolder done [09:41:38]ProducePacketName [09:41:38]name=ofd_packets/00188147 [09:41:38]NVStorageSaveData ofd_packets/00188147 [09:41:38]File name is /storage/ofd_packets/00188147 [09:41:38]Write 301 bytes [09:41:38]NVStorageSaveData done [09:41:38]OFDSenderStorePacket done [09:41:38]KKMCreateOFDPacket done [09:41:38]NVStorageSaveData kkm_last_timestamp [09:41:38]File name is /storage/kkm_last_timestamp [09:41:38]Write 4 bytes [09:41:38]NVStorageSaveData done [09:41:38]ExternCall_PrintAddStr [09:41:38]wPrintStart [09:41:38]Write to MH i2c: 01 00 00 FC 37 33 [09:41:38]Write i2c OK [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 [09:41:38]MH_I2C_Read... [09:41:38]Read from MH i2c: 01 07 00 FC 37 00 00 00 00 00 FF 0F 48 [09:41:38]RasterBufferAndPrint [09:41:38]line Счет N : (1)210198 [09:41:38]line ИНН: 02508201610067 [09:41:38]line Контрольно-Кассовый Чек [09:41:38]line ПРОДАЖА [09:41:38]line ТРК (МРК, ГНК) : 42 [09:41:38]line Товар: 2710124130 [09:41:38]line Аи-92-К-3 [09:41:38]line 7.480 * 66.90 [09:41:38]line = 500.41 [09:41:38]line НДС 12% НСП 1% [09:41:38]line > о реализуемом товаре [09:41:38]line ОКРУГЛЕНИЕ: -0.41 [09:41:38]line ИТОГО: 500.00 [09:41:38]line Внесено: 500.00 [09:41:38]line СДАЧА: 0.00 [09:41:38]line НСП 1% : 4.43 [09:41:38]line НДС 12% : 53.14 [09:41:38]line Наличными: 500.00 [09:41:38]line Безнал.: 0.00 [09:41:38]line Место: АЗС № 86 "Партнер Нефть" [09:41:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:41:38]line СНО: Общий режим [09:41:38]line Чек 176 22.10.2024 09:41 [09:41:38]line Смена: 461 ФФД: 1.0 [09:41:38]line ЗНМ: 0300000155 [09:41:38]line РНМ: 0000000000100030 [09:41:38]line Версия ККМ: 001 [09:41:38]line ФМ: 0000000000965340 [09:41:38]line ФД: 188147 [09:41:38]line ФПД: 84910704121704 [09:41:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188147&fm=84910704121704&tin=02508201610067®Number=0000000000100030&sum=50000 [09:41:38]written 0, free lines is 4095 [09:41:38]OFD Sender: Processing packet 188147 [packets to send 1062, broken 1061] [09:41:38]ProducePacketName [09:41:38]name=ofd_packets/00188147 [09:41:38]OFD Sender: To server: pG, [09:41:38]CommunicateWithHost lk.salyk.kg:30040 [09:41:38]ConnectInit lk.salyk.kg [09:41:38]Connected sock=9 [09:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CC BF 07 01 1D 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 53 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DE 02 00 35 04 06 00 4D 39 D0 5B 57 68 6D 33 F3 0D AF 7D 7A DD [09:41:39]Write to MH i2c: 01 00 00 27 38 5F [09:41:39]Write i2c OK [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: 01 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: 01 07 00 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: 01 07 00 27 38 00 00 00 00 00 55 0C C7 [09:41:39]RasterBufferAndPrint [09:41:39]line [09:41:39]line [09:41:39]line [09:41:39]line [09:41:39]line [09:41:39]written 0, free lines is 3161 [09:41:39]MH_Cut [09:41:39]Write to MH i2c: D1 01 00 2E 38 01 38 [09:41:39]Write i2c OK [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: D1 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: D1 01 00 [09:41:39]MH_I2C_Read... [09:41:39]Read from MH i2c: D1 01 00 2E 38 00 37 [09:41:39]Write to MH i2c: 01 00 00 2F 38 67 [09:41:39]Write i2c OK [09:41:39]MH_I2C_Read... [09:41:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 C9 47 00 EE EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DE 02 00 F4 03 04 00 41 1D 17 67 B6 04 01 00 00 BF 39 32 0A AE F5 A3 16 [09:41:39]CommunicateWithHost err = 0 [09:41:39]CheckOFDResponse [09:41:39]1017 (14) - 77093643461234 [09:41:39]1041 (16) - 0000000000965340 [09:41:39]1040 (4) - 188147 [09:41:39]1012 (4) - 22.10.2024 03:34 [09:41:39]1206 (1) - 0 [09:41:39]OFD Sender: Remove packet 188147 [09:41:39]ProducePacketName [09:41:39]name=ofd_packets/00188147 [09:41:39]NVStorageDeleteData [09:41:39]OFD Sender: No OFD packet to send [09:41:40]*** Cut start [09:41:40]*** Partial cut [09:41:40]*** CUTSNS_PIN = 1 [09:41:40]*** CUTSNS_PIN = 0 [09:41:40]*** Brake cut motor [09:41:40]Read from MH i2c: 01 [09:41:40]MH_I2C_Read... [09:41:40]*** Stop cut motor [09:41:40]*** Cut end [09:41:40]Read from MH i2c: 01 07 00 [09:41:40]MH_I2C_Read... [09:41:40]Read from MH i2c: 01 07 00 2F 38 00 00 00 00 00 FF 0F 7C [09:41:40]process_action close_receipt done [09:41:40]requested_data is exist [09:41:40]produce_requested_data [09:41:40]requested_item fm.sn is exist - process it [09:41:40]wFMCommunicate request_size=4 [09:41:40]MH_SAM_APDU [09:41:40]CAPDU: 80 11 00 00 [09:41:40]Write to MH i2c: E2 08 00 30 38 80 11 00 00 00 00 00 00 E2 [09:41:40]Write i2c OK [09:41:40]MH_I2C_Read... [09:41:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:41]Read from MH i2c: E2 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 17 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 17 00 30 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [09:41:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:41:41]wFMCommunicate OK [09:41:41]requested_item fd.num is exist - process it [09:41:41]SAM_PROTO_GetFieldsCounters [09:41:41]wFMCommunicate request_size=4 [09:41:41]MH_SAM_APDU [09:41:41]CAPDU: 80 13 00 00 [09:41:41]Write to MH i2c: E2 08 00 31 38 80 13 00 00 00 00 00 00 E5 [09:41:41]Write i2c OK [09:41:41]MH_I2C_Read... [09:41:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:41]Read from MH i2c: E2 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 62 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 62 00 31 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [09:41:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B0 00 00 00 5E 04 04 00 B0 00 00 00 57 04 04 00 B1 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:41]wFMCommunicate OK [09:41:41]SAM_PROTO_GetFieldsCounters done [09:41:41]requested_item shift.num is exist - process it [09:41:41]requested_item shift.opened is exist - process it [09:41:41]req_shift_opened [09:41:41]FM_GetShiftState [09:41:41]SAM_PROTO_GetShiftState [09:41:41]wFMCommunicate request_size=4 [09:41:41]MH_SAM_APDU [09:41:41]CAPDU: 80 13 01 00 [09:41:41]Write to MH i2c: E2 08 00 32 38 80 13 01 00 00 00 00 00 E7 [09:41:41]Write i2c OK [09:41:41]MH_I2C_Read... [09:41:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:41]Read from MH i2c: E2 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 0E 00 [09:41:41]MH_I2C_Read... [09:41:41]Read from MH i2c: E2 0E 00 32 38 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DC [09:41:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:41:41]wFMCommunicate OK [09:41:41]SAM_PROTO_GetShiftState done [09:41:41]FM_GetShiftState done [09:41:41]req_shift_opened done [09:41:41]requested_item shift.open_date is exist - process it [09:41:41]req_shift_open_date [09:41:41]req_shift_open_date done [09:41:41]produce_requested_data done [09:41:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188147,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:41:41]process_action_free close_receipt [09:41:41]json_value_free [09:41:41]json_value_free done [09:41:41]process_json_proto returns [09:41:41]Send response to host [09:41:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188147,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:41:41]free response buf [09:41:41]execute_script done [09:41:41]execute_script returns [09:41:41]free content buf [09:41:41]Sock 8.Close socket [09:41:41]Sock 8.Thread stoped [09:41:44]OFD Sender: No OFD packet to send [09:41:49]OFD Sender: No OFD packet to send [09:41:54]OFD Sender: No OFD packet to send [09:41:59]OFD Sender: No OFD packet to send [09:42:04]OFD Sender: No OFD packet to send [09:42:09]OFD Sender: No OFD packet to send [09:42:14]OFD Sender: No OFD packet to send [09:42:19]OFD Sender: No OFD packet to send [09:42:24]OFD Sender: No OFD packet to send [09:42:29]OFD Sender: No OFD packet to send [09:42:35]OFD Sender: No OFD packet to send [09:42:40]OFD Sender: No OFD packet to send [09:42:45]OFD Sender: No OFD packet to send [09:42:50]OFD Sender: No OFD packet to send [09:42:50]accept exits with 10 [09:42:50]New connection [09:42:50]New thread 3067198820 created [09:42:50]Thread 3067055460 joined [09:42:50]Waiting for new connection... [09:42:50] Sock 10.Parse request [09:42:50]Sock 10.Check first char [09:42:50]Sock 10.First char is OK [09:42:50]request: POST /json_proto HTTP/1.0 [09:42:50]Method: POST [09:42:50]URL: /json_proto [09:42:50]Method is POST - this is cgi request [09:42:50]url: /json_proto [09:42:50]query_string will be loaded in cgi processing [09:42:50]execute_cgi json_proto POST (null) [09:42:50]execute_cgi path=json_proto method=POST [09:42:50]POST find Content-Length [09:42:50]Host: 172.17.42.131:8080 [09:42:50]Content-Length: 675 [09:42:50]Content-Type: application/json [09:42:50] [09:42:50]POST finish read [09:42:50]Found Content-Length = 675 [09:42:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:50]execute_script... [09:42: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)210199", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 10.500, "sum" : 800.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:50]POST & json_proto [09:42:50]process_json_proto [09:42:50]json parsed OK: [09:42:50]protocol is kg_v1.0 [09:42:50]action value=close_receipt [09:42:50]process_action close_receipt [09:42:50]cmd_close_receipt [09:42:50]MH_GetDate [09:42:50]Write to MH i2c: F0 00 00 33 38 5A [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 09 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: F0 09 00 33 38 00 9D 73 17 67 A0 18 CA 66 D9 [09:42:50]GetLastDocTimeStamp 1729590099 [09:42:50]current date 1729590173 [09:42:50]FM_GetShiftState [09:42:50]SAM_PROTO_GetShiftState [09:42:50]wFMCommunicate request_size=4 [09:42:50]MH_SAM_APDU [09:42:50]CAPDU: 80 13 01 00 [09:42:50]Write to MH i2c: E2 08 00 34 38 80 13 01 00 00 00 00 00 E9 [09:42:50]Write i2c OK [09:42:50]MH_I2C_Read... [09:42:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:50]Read from MH i2c: E2 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0E 00 [09:42:50]MH_I2C_Read... [09:42:50]Read from MH i2c: E2 0E 00 34 38 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DE [09:42:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:42:50]wFMCommunicate OK [09:42:50]SAM_PROTO_GetShiftState done [09:42:50]FM_GetShiftState done [09:42:50]opened in 1729556094 [09:42:50]opened+sec_in_day 1729642494 [09:42:50]quantity*price = 80010 [09:42:50]sum+1 = 80011 [09:42:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 177 22.10.2024 09:42 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188148 ФПД: 237865479337370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094253&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188148&fm=237865479337370&tin=02508201610067®Number=0000000000100030&sum=80000 [09:42:51]StoreToDocumentArchive [09:42:51]shift 461 fd 188148 [09:42:51]save to /storage/0461/doc_00188148 [09:42:51]save last doc name /storage/0461/doc_00188148 to /storage/kkm_last_doc_name [09:42:51]save OK [09:42:51]Clear old archive folders... [09:42:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:42:51]tlvbuf is 01B8C5C0 [09:42:51]SAM_PROTO_ClearQueue [09:42:51]wFMCommunicate request_size=4 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 09 00 00 [09:42:51]Write to MH i2c: E2 08 00 41 38 80 09 00 00 00 00 00 00 EB [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:51]Read from MH i2c: E2 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 41 38 00 90 00 ED [09:42:51]RAPDU: 90 00 [09:42:51]wFMCommunicate OK [09:42:51]SAM_PROTO_ClearQueue done [09:42:51]KKMCreateOFDPacket [09:42:51]OFDProtocolAddRootSTLVToBuf [09:42:51]FM_MakeSignedData [09:42:51]FM_MakeSignedData [09:42:51]SAM_PROTO_SignData [09:42:51]wFMCommunicate request_size=4 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 0D 01 02 [09:42:51]Write to MH i2c: E2 08 00 42 38 80 0D 01 02 00 00 00 00 F3 [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:51]Read from MH i2c: E2 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 42 38 00 90 00 EE [09:42:51]RAPDU: 90 00 [09:42:51]wFMCommunicate OK [09:42:51]wFMCommunicate request_size=255 [09:42:51]MH_SAM_APDU [09:42: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9D 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DE 02 00 35 04 06 00 D8 56 5F 66 [09:42:51]Write to MH i2c: E2 02 01 43 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9D 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DE 02 00 35 04 06 00 D8 56 5F 66 00 00 65 [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:51]Read from MH i2c: E2 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 43 38 00 90 00 EF [09:42:51]RAPDU: 90 00 [09:42:51]wFMCommunicate OK [09:42:51]wFMCommunicate request_size=7 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 0D 02 02 02 75 9A [09:42:51]Write to MH i2c: E2 0A 00 44 38 80 0D 02 02 02 00 75 9A 00 00 09 [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:51]Read from MH i2c: E2 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 [09:42:51]MH_I2C_Read... [09:42:51]Read from MH i2c: E2 03 00 44 38 00 90 00 F0 [09:42:51]RAPDU: 90 00 [09:42:51]wFMCommunicate OK [09:42:51]wFMCommunicate request_size=4 [09:42:51]MH_SAM_APDU [09:42:51]CAPDU: 80 0D 03 02 [09:42:51]Write to MH i2c: E2 08 00 45 38 80 0D 03 02 00 00 00 00 F8 [09:42:51]Write i2c OK [09:42:51]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0B 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 0B 00 45 38 00 73 27 EC 4E 09 73 8A 7E 90 00 51 [09:42:52]RAPDU: 73 27 EC 4E 09 73 8A 7E 90 00 [09:42:52]wFMCommunicate OK [09:42:52]SAM_PROTO_SignData done [09:42:52]FM_MakeSignedData done [09:42:52]CreateOFDProtocolMessage [09:42:52]wFMCommunicate request_size=4 [09:42:52]MH_SAM_APDU [09:42:52]CAPDU: 80 11 00 00 [09:42:52]Write to MH i2c: E2 08 00 46 38 80 11 00 00 00 00 00 00 F8 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:52]Read from MH i2c: E2 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 17 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: E2 17 00 46 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 46 [09:42:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:42:52]wFMCommunicate OK [09:42:52]CreateOFDProtocolMessage done [09:42:52]OFDSenderStorePacket 188148 [09:42:52]StoreOFDPacket docnum=188148 [09:42:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0F 13 04 01 99 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9D 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DE 02 00 35 04 06 00 D8 56 5F 66 75 9A 73 27 EC 4E 09 73 8A 7E [09:42:52]CheckFolder [09:42:52]dirname=/storage/ofd_packets [09:42:52]CheckFolder done [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00188148 [09:42:52]NVStorageSaveData ofd_packets/00188148 [09:42:52]File name is /storage/ofd_packets/00188148 [09:42:52]Write 298 bytes [09:42:52]NVStorageSaveData done [09:42:52]OFDSenderStorePacket done [09:42:52]KKMCreateOFDPacket done [09:42:52]NVStorageSaveData kkm_last_timestamp [09:42:52]File name is /storage/kkm_last_timestamp [09:42:52]Write 4 bytes [09:42:52]NVStorageSaveData done [09:42:52]ExternCall_PrintAddStr [09:42:52]wPrintStart [09:42:52]Write to MH i2c: 01 00 00 47 38 7F [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 47 38 00 00 00 00 00 FF 0F 94 [09:42:52]RasterBufferAndPrint [09:42:52]line Счет N : (1)210199 [09:42:52]line ИНН: 02508201610067 [09:42:52]line Контрольно-Кассовый Чек [09:42:52]line ПРОДАЖА [09:42:52]line ТРК (МРК, ГНК) : 51 [09:42:52]line Товар: 2710194210 [09:42:52]line ДТ-К-5 [09:42:52]line 10.500 * 76.20 [09:42:52]line = 800.10 [09:42:52]line НДС 12% НСП 1% [09:42:52]line > о реализуемом товаре [09:42:52]line ОКРУГЛЕНИЕ: -0.10 [09:42:52]line ИТОГО: 800.00 [09:42:52]line Внесено: 800.00 [09:42:52]line СДАЧА: 0.00 [09:42:52]line НСП 1% : 7.08 [09:42:52]line НДС 12% : 84.97 [09:42:52]line Наличными: 800.00 [09:42:52]line Безнал.: 0.00 [09:42:52]line Место: АЗС № 86 "Партнер Нефть" [09:42:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:42:52]line СНО: Общий режим [09:42:52]line Чек 177 22.10.2024 09:42 [09:42:52]line Смена: 461 ФФД: 1.0 [09:42:52]line ЗНМ: 0300000155 [09:42:52]line РНМ: 0000000000100030 [09:42:52]line Версия ККМ: 001 [09:42:52]line ФМ: 0000000000965340 [09:42:52]line ФД: 188148 [09:42:52]line ФПД: 237865479337370 [09:42:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094253&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188148&fm=237865479337370&tin=02508201610067®Number=0000000000100030&sum=80000 [09:42:52]written 0, free lines is 4095 [09:42:52]OFD Sender: Processing packet 188148 [packets to send 1062, broken 1061] [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00188148 [09:42:52]OFD Sender: To server: pG, [09:42:52]CommunicateWithHost lk.salyk.kg:30040 [09:42:52]ConnectInit lk.salyk.kg [09:42:52]Connected sock=9 [09:42:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 0F 13 04 01 99 10 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 04 29 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8A 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 9D 73 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DE 02 00 35 04 06 00 D8 56 5F 66 75 9A 73 27 EC 4E 09 73 8A 7E [09:42:52]Write to MH i2c: 01 00 00 72 38 AA [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: 01 07 00 72 38 00 00 00 00 00 5E 0C 1B [09:42:52]RasterBufferAndPrint [09:42:52]line [09:42:52]line [09:42:52]line [09:42:52]line [09:42:52]line [09:42:52]written 0, free lines is 3169 [09:42:52]MH_Cut [09:42:52]Write to MH i2c: D1 01 00 79 38 01 83 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: D1 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: D1 01 00 [09:42:52]MH_I2C_Read... [09:42:52]Read from MH i2c: D1 01 00 79 38 00 82 [09:42:52]Write to MH i2c: 01 00 00 7A 38 B2 [09:42:52]Write i2c OK [09:42:52]MH_I2C_Read... [09:42:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C1 F9 47 00 CD 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DE 02 00 F4 03 04 00 8A 1D 17 67 B6 04 01 00 00 D0 EE 44 D7 F2 0E 21 E8 [09:42:52]CommunicateWithHost err = 0 [09:42:52]CheckOFDResponse [09:42:52]1017 (14) - 77093643461234 [09:42:52]1041 (16) - 0000000000965340 [09:42:52]1040 (4) - 188148 [09:42:52]1012 (4) - 22.10.2024 03:35 [09:42:52]1206 (1) - 0 [09:42:52]OFD Sender: Remove packet 188148 [09:42:52]ProducePacketName [09:42:52]name=ofd_packets/00188148 [09:42:52]NVStorageDeleteData [09:42:53]OFD Sender: No OFD packet to send [09:42:53]*** Cut start [09:42:53]*** Partial cut [09:42:53]*** CUTSNS_PIN = 1 [09:42:53]*** CUTSNS_PIN = 0 [09:42:54]*** Brake cut motor [09:42:54]Read from MH i2c: 01 [09:42:54]MH_I2C_Read... [09:42:54]*** Stop cut motor [09:42:54]*** Cut end [09:42:54]Read from MH i2c: 01 07 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: 01 07 00 7A 38 00 00 00 00 00 FF 0F C7 [09:42:54]process_action close_receipt done [09:42:54]requested_data is exist [09:42:54]produce_requested_data [09:42:54]requested_item fm.sn is exist - process it [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 11 00 00 [09:42:54]Write to MH i2c: E2 08 00 7B 38 80 11 00 00 00 00 00 00 2D [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 17 00 7B 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [09:42:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:42:54]wFMCommunicate OK [09:42:54]requested_item fd.num is exist - process it [09:42:54]SAM_PROTO_GetFieldsCounters [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 13 00 00 [09:42:54]Write to MH i2c: E2 08 00 7C 38 80 13 00 00 00 00 00 00 30 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 62 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 62 00 7C 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [09:42:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B1 00 00 00 5E 04 04 00 B1 00 00 00 57 04 04 00 B2 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_GetFieldsCounters done [09:42:54]requested_item shift.num is exist - process it [09:42:54]requested_item shift.opened is exist - process it [09:42:54]req_shift_opened [09:42:54]FM_GetShiftState [09:42:54]SAM_PROTO_GetShiftState [09:42:54]wFMCommunicate request_size=4 [09:42:54]MH_SAM_APDU [09:42:54]CAPDU: 80 13 01 00 [09:42:54]Write to MH i2c: E2 08 00 7D 38 80 13 01 00 00 00 00 00 32 [09:42:54]Write i2c OK [09:42:54]MH_I2C_Read... [09:42:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:54]Read from MH i2c: E2 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 [09:42:54]MH_I2C_Read... [09:42:54]Read from MH i2c: E2 0E 00 7D 38 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 27 [09:42:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:42:54]wFMCommunicate OK [09:42:54]SAM_PROTO_GetShiftState done [09:42:54]FM_GetShiftState done [09:42:54]req_shift_opened done [09:42:54]requested_item shift.open_date is exist - process it [09:42:54]req_shift_open_date [09:42:54]req_shift_open_date done [09:42:54]produce_requested_data done [09:42:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188148,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:42:54]process_action_free close_receipt [09:42:54]json_value_free [09:42:54]json_value_free done [09:42:54]process_json_proto returns [09:42:54]Send response to host [09:42:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188148,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:42:54]free response buf [09:42:54]execute_script done [09:42:54]execute_script returns [09:42:54]free content buf [09:42:54]Sock 10.Close socket [09:42:54]Sock 10.Thread stoped [09:42:58]OFD Sender: No OFD packet to send [09:43:03]OFD Sender: No OFD packet to send [09:43:08]OFD Sender: No OFD packet to send [09:43:13]OFD Sender: No OFD packet to send [09:43:18]OFD Sender: No OFD packet to send [09:43:23]OFD Sender: No OFD packet to send [09:43:28]OFD Sender: No OFD packet to send [09:43:33]OFD Sender: No OFD packet to send [09:43:38]OFD Sender: No OFD packet to send [09:43:43]OFD Sender: No OFD packet to send [09:43:48]OFD Sender: No OFD packet to send [09:43:53]OFD Sender: No OFD packet to send [09:43:58]OFD Sender: No OFD packet to send [09:44:03]OFD Sender: No OFD packet to send [09:44:08]OFD Sender: No OFD packet to send [09:44:13]OFD Sender: No OFD packet to send [09:44:18]OFD Sender: No OFD packet to send [09:44:23]OFD Sender: No OFD packet to send [09:44:28]OFD Sender: No OFD packet to send [09:44:33]OFD Sender: No OFD packet to send [09:44:38]OFD Sender: No OFD packet to send [09:44:43]OFD Sender: No OFD packet to send [09:44:48]OFD Sender: No OFD packet to send [09:44:53]OFD Sender: No OFD packet to send [09:44:58]OFD Sender: No OFD packet to send [09:45:03]OFD Sender: No OFD packet to send [09:45:08]OFD Sender: No OFD packet to send [09:45:13]OFD Sender: No OFD packet to send [09:45:18]OFD Sender: No OFD packet to send [09:45:23]OFD Sender: No OFD packet to send [09:45:28]OFD Sender: No OFD packet to send [09:45:34]OFD Sender: No OFD packet to send [09:45:39]OFD Sender: No OFD packet to send [09:45:44]OFD Sender: No OFD packet to send [09:45:49]OFD Sender: No OFD packet to send [09:45:54]OFD Sender: No OFD packet to send [09:45:59]OFD Sender: No OFD packet to send [09:46:04]OFD Sender: No OFD packet to send [09:46:09]OFD Sender: No OFD packet to send [09:46:14]OFD Sender: No OFD packet to send [09:46:19]OFD Sender: No OFD packet to send [09:46:24]OFD Sender: No OFD packet to send [09:46:29]OFD Sender: No OFD packet to send [09:46:34]OFD Sender: No OFD packet to send [09:46:39]OFD Sender: No OFD packet to send [09:46:44]OFD Sender: No OFD packet to send [09:46:49]OFD Sender: No OFD packet to send [09:46:54]OFD Sender: No OFD packet to send [09:46:59]OFD Sender: No OFD packet to send [09:47:04]OFD Sender: No OFD packet to send [09:47:09]OFD Sender: No OFD packet to send [09:47:14]OFD Sender: No OFD packet to send [09:47:14]accept exits with 8 [09:47:14]New connection [09:47:14]New thread 3067055460 created [09:47:14]Thread 3067198820 joined [09:47:14]Waiting for new connection... [09:47:14] Sock 8.Parse request [09:47:14]Sock 8.Check first char [09:47:14]Sock 8.First char is OK [09:47:14]request: POST /json_proto HTTP/1.0 [09:47:14]Method: POST [09:47:14]URL: /json_proto [09:47:14]Method is POST - this is cgi request [09:47:14]url: /json_proto [09:47:14]query_string will be loaded in cgi processing [09:47:14]execute_cgi json_proto POST (null) [09:47:14]execute_cgi path=json_proto method=POST [09:47:14]POST find Content-Length [09:47:14]Host: 172.17.42.131:8080 [09:47:14]Content-Length: 672 [09:47:14]Content-Type: application/json [09:47:14] [09:47:14]POST finish read [09:47:14]Found Content-Length = 672 [09:47:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.270, "sum" : 96.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 96.00, "payments": [ { "type": 0, "sum" : 96.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:14]execute_script... [09:47: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)210200", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 1.270, "sum" : 96.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 96.00, "payments": [ { "type": 0, "sum" : 96.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:47:14]POST & json_proto [09:47:14]process_json_proto [09:47:14]json parsed OK: [09:47:14]protocol is kg_v1.0 [09:47:14]action value=close_receipt [09:47:14]process_action close_receipt [09:47:14]cmd_close_receipt [09:47:14]MH_GetDate [09:47:14]Write to MH i2c: F0 00 00 7E 38 A5 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: F0 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: F0 09 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: F0 09 00 7E 38 00 A5 74 17 67 A0 18 CA 66 2D [09:47:14]GetLastDocTimeStamp 1729590173 [09:47:14]current date 1729590437 [09:47:14]FM_GetShiftState [09:47:14]SAM_PROTO_GetShiftState [09:47:14]wFMCommunicate request_size=4 [09:47:14]MH_SAM_APDU [09:47:14]CAPDU: 80 13 01 00 [09:47:14]Write to MH i2c: E2 08 00 7F 38 80 13 01 00 00 00 00 00 34 [09:47:14]Write i2c OK [09:47:14]MH_I2C_Read... [09:47:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:14]Read from MH i2c: E2 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 0E 00 [09:47:14]MH_I2C_Read... [09:47:14]Read from MH i2c: E2 0E 00 7F 38 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 29 [09:47:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:47:14]wFMCommunicate OK [09:47:14]SAM_PROTO_GetShiftState done [09:47:14]FM_GetShiftState done [09:47:14]opened in 1729556094 [09:47:14]opened+sec_in_day 1729642494 [09:47:14]quantity*price = 9677 [09:47:14]sum+1 = 9678 [09:47:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 96.00 Внесено: 1150.00 СДАЧА: 1054.00 НСП 1% : 0.86 НДС 12% : 10.28 Наличными: 96.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 178 22.10.2024 09:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188149 ФПД: 72440133702613 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188149&fm=72440133702613&tin=02508201610067®Number=0000000000100030&sum=9600 [09:47:15]StoreToDocumentArchive [09:47:15]shift 461 fd 188149 [09:47:15]save to /storage/0461/doc_00188149 [09:47:15]save last doc name /storage/0461/doc_00188149 to /storage/kkm_last_doc_name [09:47:15]save OK [09:47:15]Clear old archive folders... [09:47:15]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:47:15]tlvbuf is 01CAA1F0 [09:47:15]SAM_PROTO_ClearQueue [09:47:15]wFMCommunicate request_size=4 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 09 00 00 [09:47:15]Write to MH i2c: E2 08 00 8C 38 80 09 00 00 00 00 00 00 36 [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:47:15]Read from MH i2c: E2 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 03 00 [09:47:15]MH_I2C_Read... [09:47:15]Read from MH i2c: E2 03 00 8C 38 00 90 00 38 [09:47:15]RAPDU: 90 00 [09:47:15]wFMCommunicate OK [09:47:15]SAM_PROTO_ClearQueue done [09:47:15]KKMCreateOFDPacket [09:47:15]OFDProtocolAddRootSTLVToBuf [09:47:15]FM_MakeSignedData [09:47:15]FM_MakeSignedData [09:47:15]SAM_PROTO_SignData [09:47:15]wFMCommunicate request_size=4 [09:47:15]MH_SAM_APDU [09:47:15]CAPDU: 80 0D 01 02 [09:47:15]Write to MH i2c: E2 08 00 8D 38 80 0D 01 02 00 00 00 00 3E [09:47:15]Write i2c OK [09:47:15]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 03 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 03 00 8D 38 00 90 00 39 [09:47:16]RAPDU: 90 00 [09:47:16]wFMCommunicate OK [09:47:16]wFMCommunicate request_size=255 [09:47:16]MH_SAM_APDU [09:47: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 04 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 04 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A5 74 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DE 02 00 35 04 06 00 41 E2 48 6F [09:47:16]Write to MH i2c: E2 02 01 8E 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 04 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 04 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A5 74 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DE 02 00 35 04 06 00 41 E2 48 6F 00 00 BC [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 03 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 03 00 8E 38 00 90 00 3A [09:47:16]RAPDU: 90 00 [09:47:16]wFMCommunicate OK [09:47:16]wFMCommunicate request_size=7 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 0D 02 02 02 D3 D5 [09:47:16]Write to MH i2c: E2 0A 00 8F 38 80 0D 02 02 02 00 D3 D5 00 00 ED [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 03 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 03 00 8F 38 00 90 00 3B [09:47:16]RAPDU: 90 00 [09:47:16]wFMCommunicate OK [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 0D 03 02 [09:47:16]Write to MH i2c: E2 08 00 90 38 80 0D 03 02 00 00 00 00 43 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0B 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 0B 00 90 38 00 96 49 84 A1 07 C3 B6 56 90 00 1E [09:47:16]RAPDU: 96 49 84 A1 07 C3 B6 56 90 00 [09:47:16]wFMCommunicate OK [09:47:16]SAM_PROTO_SignData done [09:47:16]FM_MakeSignedData done [09:47:16]CreateOFDProtocolMessage [09:47:16]wFMCommunicate request_size=4 [09:47:16]MH_SAM_APDU [09:47:16]CAPDU: 80 11 00 00 [09:47:16]Write to MH i2c: E2 08 00 91 38 80 11 00 00 00 00 00 00 43 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:16]Read from MH i2c: E2 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 17 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: E2 17 00 91 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [09:47:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:47:16]wFMCommunicate OK [09:47:16]CreateOFDProtocolMessage done [09:47:16]OFDSenderStorePacket 188149 [09:47:16]StoreOFDPacket docnum=188149 [09:47:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A5 9B 04 01 D3 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 04 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 04 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A5 74 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DE 02 00 35 04 06 00 41 E2 48 6F D3 D5 96 49 84 A1 07 C3 B6 56 [09:47:16]CheckFolder [09:47:16]dirname=/storage/ofd_packets [09:47:16]CheckFolder done [09:47:16]ProducePacketName [09:47:16]name=ofd_packets/00188149 [09:47:16]NVStorageSaveData ofd_packets/00188149 [09:47:16]File name is /storage/ofd_packets/00188149 [09:47:16]Write 298 bytes [09:47:16]NVStorageSaveData done [09:47:16]OFDSenderStorePacket done [09:47:16]KKMCreateOFDPacket done [09:47:16]NVStorageSaveData kkm_last_timestamp [09:47:16]File name is /storage/kkm_last_timestamp [09:47:16]Write 4 bytes [09:47:16]NVStorageSaveData done [09:47:16]ExternCall_PrintAddStr [09:47:16]wPrintStart [09:47:16]Write to MH i2c: 01 00 00 92 38 CA [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 07 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 07 00 92 38 00 00 00 00 00 FF 0F DF [09:47:16]RasterBufferAndPrint [09:47:16]line Счет N : (1)210200 [09:47:16]line ИНН: 02508201610067 [09:47:16]line Контрольно-Кассовый Чек [09:47:16]line ПРОДАЖА [09:47:16]line ТРК (МРК, ГНК) : 51 [09:47:16]line Товар: 2710194210 [09:47:16]line ДТ-К-5 [09:47:16]line 1.270 * 76.20 [09:47:16]line = 96.77 [09:47:16]line НДС 12% НСП 1% [09:47:16]line > о реализуемом товаре [09:47:16]line ОКРУГЛЕНИЕ: -0.77 [09:47:16]line ИТОГО: 96.00 [09:47:16]line Внесено: 1150.00 [09:47:16]line СДАЧА: 1054.00 [09:47:16]line НСП 1% : 0.86 [09:47:16]line НДС 12% : 10.28 [09:47:16]line Наличными: 96.00 [09:47:16]line Безнал.: 0.00 [09:47:16]line Место: АЗС № 86 "Партнер Нефть" [09:47:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:47:16]line СНО: Общий режим [09:47:16]line Чек 178 22.10.2024 09:47 [09:47:16]line Смена: 461 ФФД: 1.0 [09:47:16]line ЗНМ: 0300000155 [09:47:16]line РНМ: 0000000000100030 [09:47:16]line Версия ККМ: 001 [09:47:16]line ФМ: 0000000000965340 [09:47:16]line ФД: 188149 [09:47:16]line ФПД: 72440133702613 [09:47:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188149&fm=72440133702613&tin=02508201610067®Number=0000000000100030&sum=9600 [09:47:16]written 0, free lines is 4095 [09:47:16]OFD Sender: Processing packet 188149 [packets to send 1062, broken 1061] [09:47:16]ProducePacketName [09:47:16]name=ofd_packets/00188149 [09:47:16]OFD Sender: To server: pG, [09:47:16]CommunicateWithHost lk.salyk.kg:30040 [09:47:16]ConnectInit lk.salyk.kg [09:47:16]Connected sock=10 [09:47:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A5 9B 04 01 D3 01 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 04 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 CD 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 04 00 00 00 00 07 04 06 00 80 25 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 00 00 00 F4 03 04 00 A5 74 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DE 02 00 35 04 06 00 41 E2 48 6F D3 D5 96 49 84 A1 07 C3 B6 56 [09:47:16]Write to MH i2c: 01 00 00 BD 38 F5 [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 07 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: 01 07 00 BD 38 00 00 00 00 00 57 0C 5F [09:47:16]RasterBufferAndPrint [09:47:16]line [09:47:16]line [09:47:16]line [09:47:16]line [09:47:16]line [09:47:16]written 0, free lines is 3162 [09:47:16]MH_Cut [09:47:16]Write to MH i2c: D1 01 00 C4 38 01 CE [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: D1 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: D1 01 00 [09:47:16]MH_I2C_Read... [09:47:16]Read from MH i2c: D1 01 00 C4 38 00 CD [09:47:16]Write to MH i2c: 01 00 00 C5 38 FD [09:47:16]Write i2c OK [09:47:16]MH_I2C_Read... [09:47:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 F8 47 00 4C 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DE 02 00 F4 03 04 00 93 1E 17 67 B6 04 01 00 00 9F DB 48 3E 89 74 E3 FC [09:47:17]CommunicateWithHost err = 0 [09:47:17]CheckOFDResponse [09:47:17]1017 (14) - 77093643461234 [09:47:17]1041 (16) - 0000000000965340 [09:47:17]1040 (4) - 188149 [09:47:17]1012 (4) - 22.10.2024 03:40 [09:47:17]1206 (1) - 0 [09:47:17]OFD Sender: Remove packet 188149 [09:47:17]ProducePacketName [09:47:17]name=ofd_packets/00188149 [09:47:17]NVStorageDeleteData [09:47:17]OFD Sender: No OFD packet to send [09:47:18]*** Cut start [09:47:18]*** Partial cut [09:47:18]*** CUTSNS_PIN = 1 [09:47:18]*** CUTSNS_PIN = 0 [09:47:18]*** Brake cut motor [09:47:18]Read from MH i2c: 01 [09:47:18]MH_I2C_Read... [09:47:18]*** Stop cut motor [09:47:18]*** Cut end [09:47:18]Read from MH i2c: 01 07 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: 01 07 00 C5 38 00 00 00 00 00 FF 0F 12 [09:47:18]process_action close_receipt done [09:47:18]requested_data is exist [09:47:18]produce_requested_data [09:47:18]requested_item fm.sn is exist - process it [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 11 00 00 [09:47:18]Write to MH i2c: E2 08 00 C6 38 80 11 00 00 00 00 00 00 78 [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:47:18]Read from MH i2c: E2 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 17 00 [09:47:18]MH_I2C_Read... [09:47:18]Read from MH i2c: E2 17 00 C6 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [09:47:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:47:18]wFMCommunicate OK [09:47:18]requested_item fd.num is exist - process it [09:47:18]SAM_PROTO_GetFieldsCounters [09:47:18]wFMCommunicate request_size=4 [09:47:18]MH_SAM_APDU [09:47:18]CAPDU: 80 13 00 00 [09:47:18]Write to MH i2c: E2 08 00 C7 38 80 13 00 00 00 00 00 00 7B [09:47:18]Write i2c OK [09:47:18]MH_I2C_Read... [09:47:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:47:19]Read from MH i2c: E2 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 62 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 62 00 C7 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 3B [09:47:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B2 00 00 00 5E 04 04 00 B2 00 00 00 57 04 04 00 B3 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:47:19]wFMCommunicate OK [09:47:19]SAM_PROTO_GetFieldsCounters done [09:47:19]requested_item shift.num is exist - process it [09:47:19]requested_item shift.opened is exist - process it [09:47:19]req_shift_opened [09:47:19]FM_GetShiftState [09:47:19]SAM_PROTO_GetShiftState [09:47:19]wFMCommunicate request_size=4 [09:47:19]MH_SAM_APDU [09:47:19]CAPDU: 80 13 01 00 [09:47:19]Write to MH i2c: E2 08 00 C8 38 80 13 01 00 00 00 00 00 7D [09:47:19]Write i2c OK [09:47:19]MH_I2C_Read... [09:47:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:47:19]Read from MH i2c: E2 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 0E 00 [09:47:19]MH_I2C_Read... [09:47:19]Read from MH i2c: E2 0E 00 C8 38 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [09:47:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:47:19]wFMCommunicate OK [09:47:19]SAM_PROTO_GetShiftState done [09:47:19]FM_GetShiftState done [09:47:19]req_shift_opened done [09:47:19]requested_item shift.open_date is exist - process it [09:47:19]req_shift_open_date [09:47:19]req_shift_open_date done [09:47:19]produce_requested_data done [09:47:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188149,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:47:19]process_action_free close_receipt [09:47:19]json_value_free [09:47:19]json_value_free done [09:47:19]process_json_proto returns [09:47:19]Send response to host [09:47:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188149,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:47:19]free response buf [09:47:19]execute_script done [09:47:19]execute_script returns [09:47:19]free content buf [09:47:19]Sock 8.Close socket [09:47:19]Sock 8.Thread stoped [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:48]OFD Sender: No OFD packet to send [09:48:53]OFD Sender: No OFD packet to send [09:48:58]OFD Sender: No OFD packet to send [09:49:03]OFD Sender: No OFD packet to send [09:49:08]OFD Sender: No OFD packet to send [09:49:13]OFD Sender: No OFD packet to send [09:49:17]accept exits with 9 [09:49:17]New connection [09:49:17]New thread 3067198820 created [09:49:17]Thread 3067055460 joined [09:49:17]Waiting for new connection... [09:49:17] Sock 9.Parse request [09:49:17]Sock 9.Check first char [09:49:17]Sock 9.First char is OK [09:49:17]request: POST /json_proto HTTP/1.0 [09:49:17]Method: POST [09:49:17]URL: /json_proto [09:49:17]Method is POST - this is cgi request [09:49:17]url: /json_proto [09:49:17]query_string will be loaded in cgi processing [09:49:17]execute_cgi json_proto POST (null) [09:49:17]execute_cgi path=json_proto method=POST [09:49:17]POST find Content-Length [09:49:17]Host: 172.17.42.131:8080 [09:49:17]Content-Length: 675 [09:49:17]Content-Type: application/json [09:49:17] [09:49:17]POST finish read [09:49:17]Found Content-Length = 675 [09:49:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.110, "sum" : 389.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1054.00, "total" : 389.00, "payments": [ { "type": 0, "sum" : 389.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:17]execute_script... [09:49: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)210202", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 5.110, "sum" : 389.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1054.00, "total" : 389.00, "payments": [ { "type": 0, "sum" : 389.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:17]POST & json_proto [09:49:17]process_json_proto [09:49:17]json parsed OK: [09:49:17]protocol is kg_v1.0 [09:49:17]action value=close_receipt [09:49:17]process_action close_receipt [09:49:17]cmd_close_receipt [09:49:17]MH_GetDate [09:49:17]Write to MH i2c: F0 00 00 C9 38 F0 [09:49:17]Write i2c OK [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: F0 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: F0 09 00 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: F0 09 00 C9 38 00 20 75 17 67 A0 18 CA 66 F4 [09:49:17]GetLastDocTimeStamp 1729590437 [09:49:17]current date 1729590560 [09:49:17]FM_GetShiftState [09:49:17]SAM_PROTO_GetShiftState [09:49:17]wFMCommunicate request_size=4 [09:49:17]MH_SAM_APDU [09:49:17]CAPDU: 80 13 01 00 [09:49:17]Write to MH i2c: E2 08 00 CA 38 80 13 01 00 00 00 00 00 7F [09:49:17]Write i2c OK [09:49:17]MH_I2C_Read... [09:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:17]Read from MH i2c: E2 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: E2 0E 00 [09:49:17]MH_I2C_Read... [09:49:17]Read from MH i2c: E2 0E 00 CA 38 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 74 [09:49:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:49:17]wFMCommunicate OK [09:49:17]SAM_PROTO_GetShiftState done [09:49:17]FM_GetShiftState done [09:49:17]opened in 1729556094 [09:49:17]opened+sec_in_day 1729642494 [09:49:17]quantity*price = 38938 [09:49:17]sum+1 = 38939 [09:49:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 389.00 Внесено: 1054.00 СДАЧА: 665.00 НСП 1% : 3.45 НДС 12% : 41.35 Наличными: 389.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 179 22.10.2024 09:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188150 ФПД: 246290684712798 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188150&fm=246290684712798&tin=02508201610067®Number=0000000000100030&sum=38900 [09:49:18]StoreToDocumentArchive [09:49:18]shift 461 fd 188150 [09:49:18]save to /storage/0461/doc_00188150 [09:49:18]save last doc name /storage/0461/doc_00188150 to /storage/kkm_last_doc_name [09:49:18]save OK [09:49:18]Clear old archive folders... [09:49:18]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:49:18]tlvbuf is 01C638C0 [09:49:18]SAM_PROTO_ClearQueue [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 09 00 00 [09:49:18]Write to MH i2c: E2 08 00 D7 38 80 09 00 00 00 00 00 00 81 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 D7 38 00 90 00 83 [09:49:18]RAPDU: 90 00 [09:49:18]wFMCommunicate OK [09:49:18]SAM_PROTO_ClearQueue done [09:49:18]KKMCreateOFDPacket [09:49:18]OFDProtocolAddRootSTLVToBuf [09:49:18]FM_MakeSignedData [09:49:18]FM_MakeSignedData [09:49:18]SAM_PROTO_SignData [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 0D 01 02 [09:49:18]Write to MH i2c: E2 08 00 D8 38 80 0D 01 02 00 00 00 00 89 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 D8 38 00 90 00 84 [09:49:18]RAPDU: 90 00 [09:49:18]wFMCommunicate OK [09:49:18]wFMCommunicate request_size=255 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1A 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 10 00 00 00 00 07 04 06 00 F4 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 20 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DE 02 00 35 04 06 00 E0 00 04 C6 [09:49:18]Write to MH i2c: E2 02 01 D9 38 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1A 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 10 00 00 00 00 07 04 06 00 F4 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 20 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DE 02 00 35 04 06 00 E0 00 04 C6 00 00 23 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 D9 38 00 90 00 85 [09:49:18]RAPDU: 90 00 [09:49:18]wFMCommunicate OK [09:49:18]wFMCommunicate request_size=7 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 0D 02 02 02 17 5E [09:49:18]Write to MH i2c: E2 0A 00 DA 38 80 0D 02 02 02 00 17 5E 00 00 05 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 03 00 DA 38 00 90 00 86 [09:49:18]RAPDU: 90 00 [09:49:18]wFMCommunicate OK [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 0D 03 02 [09:49:18]Write to MH i2c: E2 08 00 DB 38 80 0D 03 02 00 00 00 00 8E [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 0B 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 0B 00 DB 38 00 FD 09 34 A4 3B 32 1D 1C 90 00 13 [09:49:18]RAPDU: FD 09 34 A4 3B 32 1D 1C 90 00 [09:49:18]wFMCommunicate OK [09:49:18]SAM_PROTO_SignData done [09:49:18]FM_MakeSignedData done [09:49:18]CreateOFDProtocolMessage [09:49:18]wFMCommunicate request_size=4 [09:49:18]MH_SAM_APDU [09:49:18]CAPDU: 80 11 00 00 [09:49:18]Write to MH i2c: E2 08 00 DC 38 80 11 00 00 00 00 00 00 8E [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:18]Read from MH i2c: E2 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 17 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: E2 17 00 DC 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [09:49:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:49:18]wFMCommunicate OK [09:49:18]CreateOFDProtocolMessage done [09:49:18]OFDSenderStorePacket 188150 [09:49:18]StoreOFDPacket docnum=188150 [09:49:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1A F0 04 01 A8 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1A 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 10 00 00 00 00 07 04 06 00 F4 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 20 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DE 02 00 35 04 06 00 E0 00 04 C6 17 5E FD 09 34 A4 3B 32 1D 1C [09:49:18]CheckFolder [09:49:18]dirname=/storage/ofd_packets [09:49:18]CheckFolder done [09:49:18]ProducePacketName [09:49:18]name=ofd_packets/00188150 [09:49:18]NVStorageSaveData ofd_packets/00188150 [09:49:18]File name is /storage/ofd_packets/00188150 [09:49:18]Write 298 bytes [09:49:18]NVStorageSaveData done [09:49:18]OFDSenderStorePacket done [09:49:18]KKMCreateOFDPacket done [09:49:18]NVStorageSaveData kkm_last_timestamp [09:49:18]File name is /storage/kkm_last_timestamp [09:49:18]Write 4 bytes [09:49:18]NVStorageSaveData done [09:49:18]ExternCall_PrintAddStr [09:49:18]wPrintStart [09:49:18]Write to MH i2c: 01 00 00 DD 38 15 [09:49:18]Write i2c OK [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: 01 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: 01 07 00 [09:49:18]MH_I2C_Read... [09:49:18]Read from MH i2c: 01 07 00 DD 38 00 00 00 00 00 FF 0F 2A [09:49:18]RasterBufferAndPrint [09:49:18]line Счет N : (1)210202 [09:49:18]line ИНН: 02508201610067 [09:49:18]line Контрольно-Кассовый Чек [09:49:18]line ПРОДАЖА [09:49:18]line ТРК (МРК, ГНК) : 51 [09:49:18]line Товар: 2710194210 [09:49:18]line ДТ-К-5 [09:49:18]line 5.110 * 76.20 [09:49:18]line = 389.38 [09:49:18]line НДС 12% НСП 1% [09:49:18]line > о реализуемом товаре [09:49:18]line ОКРУГЛЕНИЕ: -0.38 [09:49:18]line ИТОГО: 389.00 [09:49:18]line Внесено: 1054.00 [09:49:18]line СДАЧА: 665.00 [09:49:18]line НСП 1% : 3.45 [09:49:18]line НДС 12% : 41.35 [09:49:18]line Наличными: 389.00 [09:49:18]line Безнал.: 0.00 [09:49:18]line Место: АЗС № 86 "Партнер Нефть" [09:49:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:49:18]line СНО: Общий режим [09:49:18]line Чек 179 22.10.2024 09:49 [09:49:18]line Смена: 461 ФФД: 1.0 [09:49:18]line ЗНМ: 0300000155 [09:49:18]line РНМ: 0000000000100030 [09:49:18]line Версия ККМ: 001 [09:49:18]line ФМ: 0000000000965340 [09:49:18]line ФД: 188150 [09:49:18]line ФПД: 246290684712798 [09:49:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094920&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188150&fm=246290684712798&tin=02508201610067®Number=0000000000100030&sum=38900 [09:49:18]written 0, free lines is 4095 [09:49:18]OFD Sender: Processing packet 188150 [packets to send 1062, broken 1061] [09:49:18]ProducePacketName [09:49:18]name=ofd_packets/00188150 [09:49:18]OFD Sender: To server: pG, [09:49:18]CommunicateWithHost lk.salyk.kg:30040 [09:49:18]ConnectInit lk.salyk.kg [09:49:19]Connected sock=10 [09:49:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1A F0 04 01 A8 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F6 13 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 1A 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 97 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 59 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 27 10 00 00 00 00 07 04 06 00 F4 97 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 00 00 00 F4 03 04 00 20 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DE 02 00 35 04 06 00 E0 00 04 C6 17 5E FD 09 34 A4 3B 32 1D 1C [09:49:19]Write to MH i2c: 01 00 00 08 39 41 [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: 01 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: 01 07 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: 01 07 00 08 39 00 00 00 00 00 58 0C AC [09:49:19]RasterBufferAndPrint [09:49:19]line [09:49:19]line [09:49:19]line [09:49:19]line [09:49:19]line [09:49:19]written 0, free lines is 3165 [09:49:19]MH_Cut [09:49:19]Write to MH i2c: D1 01 00 0F 39 01 1A [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: D1 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: D1 01 00 [09:49:19]MH_I2C_Read... [09:49:19]Read from MH i2c: D1 01 00 0F 39 00 19 [09:49:19]Write to MH i2c: 01 00 00 10 39 49 [09:49:19]Write i2c OK [09:49:19]MH_I2C_Read... [09:49:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AA C2 47 00 25 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 39 36 35 33 34 30 10 04 04 00 F6 DE 02 00 F4 03 04 00 0D 1F 17 67 B6 04 01 00 00 68 18 65 9F 97 7A 32 EF [09:49:19]CommunicateWithHost err = 0 [09:49:19]CheckOFDResponse [09:49:19]1017 (14) - 77093643461234 [09:49:19]1041 (16) - 0000000000965340 [09:49:19]1040 (4) - 188150 [09:49:19]1012 (4) - 22.10.2024 03:42 [09:49:19]1206 (1) - 0 [09:49:19]OFD Sender: Remove packet 188150 [09:49:19]ProducePacketName [09:49:19]name=ofd_packets/00188150 [09:49:19]NVStorageDeleteData [09:49:19]OFD Sender: No OFD packet to send [09:49:20]*** Cut start [09:49:20]*** Partial cut [09:49:20]*** CUTSNS_PIN = 1 [09:49:20]*** CUTSNS_PIN = 0 [09:49:20]*** Brake cut motor [09:49:21]Read from MH i2c: 01 [09:49:21]MH_I2C_Read... [09:49:21]*** Stop cut motor [09:49:21]*** Cut end [09:49:21]Read from MH i2c: 01 07 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: 01 07 00 10 39 00 00 00 00 00 FF 0F 5E [09:49:21]process_action close_receipt done [09:49:21]requested_data is exist [09:49:21]produce_requested_data [09:49:21]requested_item fm.sn is exist - process it [09:49:21]wFMCommunicate request_size=4 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 11 00 00 [09:49:21]Write to MH i2c: E2 08 00 11 39 80 11 00 00 00 00 00 00 C4 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 17 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 17 00 11 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [09:49:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:49:21]wFMCommunicate OK [09:49:21]requested_item fd.num is exist - process it [09:49:21]SAM_PROTO_GetFieldsCounters [09:49:21]wFMCommunicate request_size=4 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 13 00 00 [09:49:21]Write to MH i2c: E2 08 00 12 39 80 13 00 00 00 00 00 00 C7 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 62 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 62 00 12 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 8B [09:49:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B3 00 00 00 5E 04 04 00 B3 00 00 00 57 04 04 00 B4 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:21]wFMCommunicate OK [09:49:21]SAM_PROTO_GetFieldsCounters done [09:49:21]requested_item shift.num is exist - process it [09:49:21]requested_item shift.opened is exist - process it [09:49:21]req_shift_opened [09:49:21]FM_GetShiftState [09:49:21]SAM_PROTO_GetShiftState [09:49:21]wFMCommunicate request_size=4 [09:49:21]MH_SAM_APDU [09:49:21]CAPDU: 80 13 01 00 [09:49:21]Write to MH i2c: E2 08 00 13 39 80 13 01 00 00 00 00 00 C9 [09:49:21]Write i2c OK [09:49:21]MH_I2C_Read... [09:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:21]Read from MH i2c: E2 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 0E 00 [09:49:21]MH_I2C_Read... [09:49:21]Read from MH i2c: E2 0E 00 13 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [09:49:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:49:21]wFMCommunicate OK [09:49:21]SAM_PROTO_GetShiftState done [09:49:21]FM_GetShiftState done [09:49:21]req_shift_opened done [09:49:21]requested_item shift.open_date is exist - process it [09:49:21]req_shift_open_date [09:49:21]req_shift_open_date done [09:49:21]produce_requested_data done [09:49:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188150,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:49:21]process_action_free close_receipt [09:49:21]json_value_free [09:49:21]json_value_free done [09:49:21]process_json_proto returns [09:49:21]Send response to host [09:49:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188150,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:49:21]free response buf [09:49:21]execute_script done [09:49:21]execute_script returns [09:49:21]free content buf [09:49:21]Sock 9.Close socket [09:49:21]Sock 9.Thread stoped [09:49:25]OFD Sender: No OFD packet to send [09:49:30]OFD Sender: No OFD packet to send [09:49:35]OFD Sender: No OFD packet to send [09:49:40]OFD Sender: No OFD packet to send [09:49:45]OFD Sender: No OFD packet to send [09:49:50]OFD Sender: No OFD packet to send [09:49:55]OFD Sender: No OFD packet to send [09:49:55]accept exits with 8 [09:49:55]New connection [09:49:55]New thread 3067055460 created [09:49:55]Thread 3067198820 joined [09:49:55]Waiting for new connection... [09:49:55] Sock 8.Parse request [09:49:55]Sock 8.Check first char [09:49:55]Sock 8.First char is OK [09:49:55]request: POST /json_proto HTTP/1.0 [09:49:55]Method: POST [09:49:55]URL: /json_proto [09:49:55]Method is POST - this is cgi request [09:49:55]url: /json_proto [09:49:55]query_string will be loaded in cgi processing [09:49:55]execute_cgi json_proto POST (null) [09:49:55]execute_cgi path=json_proto method=POST [09:49:55]POST find Content-Length [09:49:55]Host: 172.17.42.131:8080 [09:49:55]Content-Length: 688 [09:49:55]Content-Type: application/json [09:49:55] [09:49:55]POST finish read [09:49:55]Found Content-Length = 688 [09:49:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:55]execute_script... [09:49: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)210201", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:49:55]POST & json_proto [09:49:55]process_json_proto [09:49:55]json parsed OK: [09:49:55]protocol is kg_v1.0 [09:49:55]action value=close_receipt [09:49:55]process_action close_receipt [09:49:55]cmd_close_receipt [09:49:55]MH_GetDate [09:49:55]Write to MH i2c: F0 00 00 14 39 3C [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: F0 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: F0 09 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: F0 09 00 14 39 00 46 75 17 67 A0 18 CA 66 66 [09:49:55]GetLastDocTimeStamp 1729590560 [09:49:55]current date 1729590598 [09:49:55]FM_GetShiftState [09:49:55]SAM_PROTO_GetShiftState [09:49:55]wFMCommunicate request_size=4 [09:49:55]MH_SAM_APDU [09:49:55]CAPDU: 80 13 01 00 [09:49:55]Write to MH i2c: E2 08 00 15 39 80 13 01 00 00 00 00 00 CB [09:49:55]Write i2c OK [09:49:55]MH_I2C_Read... [09:49:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:55]Read from MH i2c: E2 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 [09:49:55]MH_I2C_Read... [09:49:55]Read from MH i2c: E2 0E 00 15 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C0 [09:49:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:49:55]wFMCommunicate OK [09:49:55]SAM_PROTO_GetShiftState done [09:49:55]FM_GetShiftState done [09:49:55]opened in 1729556094 [09:49:55]opened+sec_in_day 1729642494 [09:49:55]quantity*price = 300076 [09:49:55]sum+1 = 300077 [09:49:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 180 22.10.2024 09:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188151 ФПД: 196459168694413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094958&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188151&fm=196459168694413&tin=02508201610067®Number=0000000000100030&sum=300000 [09:49:56]StoreToDocumentArchive [09:49:56]shift 461 fd 188151 [09:49:56]save to /storage/0461/doc_00188151 [09:49:56]save last doc name /storage/0461/doc_00188151 to /storage/kkm_last_doc_name [09:49:56]save OK [09:49:56]Clear old archive folders... [09:49:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:49:56]tlvbuf is 01B8C960 [09:49:56]SAM_PROTO_ClearQueue [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 09 00 00 [09:49:56]Write to MH i2c: E2 08 00 22 39 80 09 00 00 00 00 00 00 CD [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 22 39 00 90 00 CF [09:49:56]RAPDU: 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_ClearQueue done [09:49:56]KKMCreateOFDPacket [09:49:56]OFDProtocolAddRootSTLVToBuf [09:49:56]FM_MakeSignedData [09:49:56]FM_MakeSignedData [09:49:56]SAM_PROTO_SignData [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 0D 01 02 [09:49:56]Write to MH i2c: E2 08 00 23 39 80 0D 01 02 00 00 00 00 D5 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 23 39 00 90 00 D0 [09:49:56]RAPDU: 90 00 [09:49:56]wFMCommunicate OK [09:49:56]wFMCommunicate request_size=255 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 46 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DE 02 [09:49:56]Write to MH i2c: E2 02 01 24 39 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 46 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DE 02 00 00 A6 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 24 39 00 90 00 D1 [09:49:56]RAPDU: 90 00 [09:49:56]wFMCommunicate OK [09:49:56]wFMCommunicate request_size=16 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B2 AD B6 F6 80 8D [09:49:56]Write to MH i2c: E2 13 00 25 39 80 0D 02 02 0B 00 00 35 04 06 00 B2 AD B6 F6 80 8D 00 00 45 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 03 00 25 39 00 90 00 D2 [09:49:56]RAPDU: 90 00 [09:49:56]wFMCommunicate OK [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 0D 03 02 [09:49:56]Write to MH i2c: E2 08 00 26 39 80 0D 03 02 00 00 00 00 DA [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0B 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 0B 00 26 39 00 DC 35 BF DF C5 41 2B FE 90 00 B9 [09:49:56]RAPDU: DC 35 BF DF C5 41 2B FE 90 00 [09:49:56]wFMCommunicate OK [09:49:56]SAM_PROTO_SignData done [09:49:56]FM_MakeSignedData done [09:49:56]CreateOFDProtocolMessage [09:49:56]wFMCommunicate request_size=4 [09:49:56]MH_SAM_APDU [09:49:56]CAPDU: 80 11 00 00 [09:49:56]Write to MH i2c: E2 08 00 27 39 80 11 00 00 00 00 00 00 DA [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:56]Read from MH i2c: E2 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: E2 17 00 27 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [09:49:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:49:56]wFMCommunicate OK [09:49:56]CreateOFDProtocolMessage done [09:49:56]OFDSenderStorePacket 188151 [09:49:56]StoreOFDPacket docnum=188151 [09:49:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F8 5D 0D 01 85 30 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 46 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DE 02 00 35 04 06 00 B2 AD B6 F6 80 8D DC 35 BF DF C5 41 2B FE [09:49:56]CheckFolder [09:49:56]dirname=/storage/ofd_packets [09:49:56]CheckFolder done [09:49:56]ProducePacketName [09:49:56]name=ofd_packets/00188151 [09:49:56]NVStorageSaveData ofd_packets/00188151 [09:49:56]File name is /storage/ofd_packets/00188151 [09:49:56]Write 307 bytes [09:49:56]NVStorageSaveData done [09:49:56]OFDSenderStorePacket done [09:49:56]KKMCreateOFDPacket done [09:49:56]NVStorageSaveData kkm_last_timestamp [09:49:56]File name is /storage/kkm_last_timestamp [09:49:56]Write 4 bytes [09:49:56]NVStorageSaveData done [09:49:56]ExternCall_PrintAddStr [09:49:56]wPrintStart [09:49:56]Write to MH i2c: 01 00 00 28 39 61 [09:49:56]Write i2c OK [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: 01 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: 01 07 00 [09:49:56]MH_I2C_Read... [09:49:56]Read from MH i2c: 01 07 00 28 39 00 00 00 00 00 FF 0F 76 [09:49:56]RasterBufferAndPrint [09:49:56]line Счет N : (1)210201 [09:49:56]line ИНН: 02508201610067 [09:49:56]line Контрольно-Кассовый Чек [09:49:56]line ПРОДАЖА [09:49:56]line ТРК (МРК, ГНК) : 31 [09:49:56]line Товар: 2710194210 [09:49:56]line D-ENERGY ДТ-К-5 [09:49:56]line 38.870 * 77.20 [09:49:56]line = 3000.76 [09:49:56]line НДС 12% НСП 1% [09:49:56]line > о реализуемом товаре [09:49:56]line ОКРУГЛЕНИЕ: -0.76 [09:49:56]line ИТОГО: 3000.00 [09:49:56]line Внесено: 3000.00 [09:49:56]line СДАЧА: 0.00 [09:49:56]line НСП 1% : 26.55 [09:49:56]line НДС 12% : 318.66 [09:49:56]line Наличными: 3000.00 [09:49:56]line Безнал.: 0.00 [09:49:56]line Место: АЗС № 86 "Партнер Нефть" [09:49:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:49:56]line СНО: Общий режим [09:49:56]line Чек 180 22.10.2024 09:49 [09:49:56]line Смена: 461 ФФД: 1.0 [09:49:56]line ЗНМ: 0300000155 [09:49:56]line РНМ: 0000000000100030 [09:49:56]line Версия ККМ: 001 [09:49:56]line ФМ: 0000000000965340 [09:49:56]line ФД: 188151 [09:49:56]line ФПД: 196459168694413 [09:49:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T094958&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188151&fm=196459168694413&tin=02508201610067®Number=0000000000100030&sum=300000 [09:49:56]written 0, free lines is 4095 [09:49:56]OFD Sender: Processing packet 188151 [packets to send 1062, broken 1061] [09:49:56]ProducePacketName [09:49:56]name=ofd_packets/00188151 [09:49:56]OFD Sender: To server: pG, [09:49:56]CommunicateWithHost lk.salyk.kg:30040 [09:49:56]ConnectInit lk.salyk.kg [09:49:57]Connected sock=10 [09:49:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F8 5D 0D 01 85 30 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 46 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DE 02 00 35 04 06 00 B2 AD B6 F6 80 8D DC 35 BF DF C5 41 2B FE [09:49:57]Write to MH i2c: 01 00 00 53 39 8C [09:49:57]Write i2c OK [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: 01 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: 01 07 00 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: 01 07 00 53 39 00 00 00 00 00 5A 0C F9 [09:49:57]RasterBufferAndPrint [09:49:57]line [09:49:57]line [09:49:57]line [09:49:57]line [09:49:57]line [09:49:57]written 0, free lines is 3166 [09:49:57]MH_Cut [09:49:57]Write to MH i2c: D1 01 00 5A 39 01 65 [09:49:57]Write i2c OK [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: D1 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: D1 01 00 [09:49:57]MH_I2C_Read... [09:49:57]Read from MH i2c: D1 01 00 5A 39 00 64 [09:49:57]Write to MH i2c: 01 00 00 5B 39 94 [09:49:57]Write i2c OK [09:49:57]MH_I2C_Read... [09:49:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A 48 47 00 81 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DE 02 00 F4 03 04 00 33 1F 17 67 B6 04 01 00 00 01 AC 06 C0 B4 24 60 F1 [09:49:57]CommunicateWithHost err = 0 [09:49:57]CheckOFDResponse [09:49:57]1017 (14) - 77093643461234 [09:49:57]1041 (16) - 0000000000965340 [09:49:57]1040 (4) - 188151 [09:49:57]1012 (4) - 22.10.2024 03:42 [09:49:57]1206 (1) - 0 [09:49:57]OFD Sender: Remove packet 188151 [09:49:57]ProducePacketName [09:49:57]name=ofd_packets/00188151 [09:49:57]NVStorageDeleteData [09:49:58]OFD Sender: No OFD packet to send [09:49:58]*** Cut start [09:49:58]*** Partial cut [09:49:58]*** CUTSNS_PIN = 1 [09:49:58]*** CUTSNS_PIN = 0 [09:49:58]*** Brake cut motor [09:49:59]Read from MH i2c: 01 [09:49:59]MH_I2C_Read... [09:49:59]*** Stop cut motor [09:49:59]*** Cut end [09:49:59]Read from MH i2c: 01 07 00 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: 01 07 00 5B 39 00 00 00 00 00 FF 0F A9 [09:49:59]process_action close_receipt done [09:49:59]requested_data is exist [09:49:59]produce_requested_data [09:49:59]requested_item fm.sn is exist - process it [09:49:59]wFMCommunicate request_size=4 [09:49:59]MH_SAM_APDU [09:49:59]CAPDU: 80 11 00 00 [09:49:59]Write to MH i2c: E2 08 00 5C 39 80 11 00 00 00 00 00 00 0F [09:49:59]Write i2c OK [09:49:59]MH_I2C_Read... [09:49:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:49:59]Read from MH i2c: E2 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: E2 17 00 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: E2 17 00 5C 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [09:49:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:49:59]wFMCommunicate OK [09:49:59]requested_item fd.num is exist - process it [09:49:59]SAM_PROTO_GetFieldsCounters [09:49:59]wFMCommunicate request_size=4 [09:49:59]MH_SAM_APDU [09:49:59]CAPDU: 80 13 00 00 [09:49:59]Write to MH i2c: E2 08 00 5D 39 80 13 00 00 00 00 00 00 12 [09:49:59]Write i2c OK [09:49:59]MH_I2C_Read... [09:49:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:49:59]Read from MH i2c: E2 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: E2 62 00 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: E2 62 00 5D 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 DA [09:49:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B4 00 00 00 5E 04 04 00 B4 00 00 00 57 04 04 00 B5 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:49:59]wFMCommunicate OK [09:49:59]SAM_PROTO_GetFieldsCounters done [09:49:59]requested_item shift.num is exist - process it [09:49:59]requested_item shift.opened is exist - process it [09:49:59]req_shift_opened [09:49:59]FM_GetShiftState [09:49:59]SAM_PROTO_GetShiftState [09:49:59]wFMCommunicate request_size=4 [09:49:59]MH_SAM_APDU [09:49:59]CAPDU: 80 13 01 00 [09:49:59]Write to MH i2c: E2 08 00 5E 39 80 13 01 00 00 00 00 00 14 [09:49:59]Write i2c OK [09:49:59]MH_I2C_Read... [09:49:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:49:59]Read from MH i2c: E2 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: E2 0E 00 [09:49:59]MH_I2C_Read... [09:49:59]Read from MH i2c: E2 0E 00 5E 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 09 [09:49:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:49:59]wFMCommunicate OK [09:49:59]SAM_PROTO_GetShiftState done [09:49:59]FM_GetShiftState done [09:49:59]req_shift_opened done [09:49:59]requested_item shift.open_date is exist - process it [09:49:59]req_shift_open_date [09:49:59]req_shift_open_date done [09:49:59]produce_requested_data done [09:49:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188151,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:49:59]process_action_free close_receipt [09:49:59]json_value_free [09:49:59]json_value_free done [09:49:59]process_json_proto returns [09:49:59]Send response to host [09:49:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188151,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:49:59]free response buf [09:49:59]execute_script done [09:49:59]execute_script returns [09:49:59]free content buf [09:49:59]Sock 8.Close socket [09:49:59]Sock 8.Thread stoped [09:50:03]OFD Sender: No OFD packet to send [09:50:08]OFD Sender: No OFD packet to send [09:50:13]OFD Sender: No OFD packet to send [09:50:18]OFD Sender: No OFD packet to send [09:50:23]OFD Sender: No OFD packet to send [09:50:24]accept exits with 9 [09:50:24]New connection [09:50:24]New thread 3067198820 created [09:50:24]Thread 3067055460 joined [09:50:24]Waiting for new connection... [09:50:24] Sock 9.Parse request [09:50:24]Sock 9.Check first char [09:50:24]Sock 9.First char is OK [09:50:24]request: POST /json_proto HTTP/1.0 [09:50:24]Method: POST [09:50:24]URL: /json_proto [09:50:24]Method is POST - this is cgi request [09:50:24]url: /json_proto [09:50:24]query_string will be loaded in cgi processing [09:50:24]execute_cgi json_proto POST (null) [09:50:24]execute_cgi path=json_proto method=POST [09:50:24]POST find Content-Length [09:50:24]Host: 172.17.42.131:8080 [09:50:24]Content-Length: 682 [09:50:24]Content-Type: application/json [09:50:24] [09:50:24]POST finish read [09:50:24]Found Content-Length = 682 [09:50:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:50:24]execute_script... [09:50:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210203", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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:50:24]POST & json_proto [09:50:24]process_json_proto [09:50:24]json parsed OK: [09:50:24]protocol is kg_v1.0 [09:50:24]action value=close_receipt [09:50:24]process_action close_receipt [09:50:24]cmd_close_receipt [09:50:24]MH_GetDate [09:50:24]Write to MH i2c: F0 00 00 5F 39 87 [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: F0 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: F0 09 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: F0 09 00 5F 39 00 63 75 17 67 A0 18 CA 66 CE [09:50:24]GetLastDocTimeStamp 1729590598 [09:50:24]current date 1729590627 [09:50:24]FM_GetShiftState [09:50:24]SAM_PROTO_GetShiftState [09:50:24]wFMCommunicate request_size=4 [09:50:24]MH_SAM_APDU [09:50:24]CAPDU: 80 13 01 00 [09:50:24]Write to MH i2c: E2 08 00 60 39 80 13 01 00 00 00 00 00 16 [09:50:24]Write i2c OK [09:50:24]MH_I2C_Read... [09:50:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:24]Read from MH i2c: E2 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 0E 00 [09:50:24]MH_I2C_Read... [09:50:24]Read from MH i2c: E2 0E 00 60 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0B [09:50:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:50:24]wFMCommunicate OK [09:50:24]SAM_PROTO_GetShiftState done [09:50:24]FM_GetShiftState done [09:50:24]opened in 1729556094 [09:50:24]opened+sec_in_day 1729642494 [09:50:24]quantity*price = 100021 [09:50:24]sum+1 = 100023 [09:50:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 181 22.10.2024 09:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188152 ФПД: 189824555220632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095027&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188152&fm=189824555220632&tin=02508201610067®Number=0000000000100030&sum=100000 [09:50:25]StoreToDocumentArchive [09:50:25]shift 461 fd 188152 [09:50:25]save to /storage/0461/doc_00188152 [09:50:25]save last doc name /storage/0461/doc_00188152 to /storage/kkm_last_doc_name [09:50:25]save OK [09:50:25]Clear old archive folders... [09:50:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:25]tlvbuf is 01C250A0 [09:50:25]SAM_PROTO_ClearQueue [09:50:25]wFMCommunicate request_size=4 [09:50:25]MH_SAM_APDU [09:50:25]CAPDU: 80 09 00 00 [09:50:25]Write to MH i2c: E2 08 00 6D 39 80 09 00 00 00 00 00 00 18 [09:50:25]Write i2c OK [09:50:25]MH_I2C_Read... [09:50:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:25]Read from MH i2c: E2 [09:50:25]MH_I2C_Read... [09:50:25]Read from MH i2c: E2 03 00 [09:50:25]MH_I2C_Read... [09:50:25]Read from MH i2c: E2 03 00 6D 39 00 90 00 1A [09:50:25]RAPDU: 90 00 [09:50:25]wFMCommunicate OK [09:50:25]SAM_PROTO_ClearQueue done [09:50:25]KKMCreateOFDPacket [09:50:25]OFDProtocolAddRootSTLVToBuf [09:50:25]FM_MakeSignedData [09:50:25]FM_MakeSignedData [09:50:25]SAM_PROTO_SignData [09:50:25]wFMCommunicate request_size=4 [09:50:25]MH_SAM_APDU [09:50:25]CAPDU: 80 0D 01 02 [09:50:25]Write to MH i2c: E2 08 00 6E 39 80 0D 01 02 00 00 00 00 20 [09:50:25]Write i2c OK [09:50:25]MH_I2C_Read... [09:50:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:25]Read from MH i2c: E2 [09:50:25]MH_I2C_Read... [09:50:25]Read from MH i2c: E2 03 00 [09:50:25]MH_I2C_Read... [09:50:25]Read from MH i2c: E2 03 00 6E 39 00 90 00 1B [09:50:25]RAPDU: 90 00 [09:50:25]wFMCommunicate OK [09:50:25]wFMCommunicate request_size=255 [09:50:25]MH_SAM_APDU [09:50: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 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 B5 00 00 00 F4 03 04 00 63 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DE 02 00 35 04 06 00 AC [09:50:25]Write to MH i2c: E2 02 01 6F 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B5 00 00 00 F4 03 04 00 63 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DE 02 00 35 04 06 00 AC 00 00 0D [09:50:25]Write i2c OK [09:50:25]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 6F 39 00 90 00 1C [09:50:26]RAPDU: 90 00 [09:50:26]wFMCommunicate OK [09:50:26]wFMCommunicate request_size=10 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 0D 02 02 05 A4 F9 2E FE 98 [09:50:26]Write to MH i2c: E2 0D 00 70 39 80 0D 02 02 05 00 A4 F9 2E FE 98 00 00 8E [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 03 00 70 39 00 90 00 1D [09:50:26]RAPDU: 90 00 [09:50:26]wFMCommunicate OK [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 0D 03 02 [09:50:26]Write to MH i2c: E2 08 00 71 39 80 0D 03 02 00 00 00 00 25 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0B 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 0B 00 71 39 00 3E 0E 2E 79 EE B5 A9 5E 90 00 C3 [09:50:26]RAPDU: 3E 0E 2E 79 EE B5 A9 5E 90 00 [09:50:26]wFMCommunicate OK [09:50:26]SAM_PROTO_SignData done [09:50:26]FM_MakeSignedData done [09:50:26]CreateOFDProtocolMessage [09:50:26]wFMCommunicate request_size=4 [09:50:26]MH_SAM_APDU [09:50:26]CAPDU: 80 11 00 00 [09:50:26]Write to MH i2c: E2 08 00 72 39 80 11 00 00 00 00 00 00 25 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:26]Read from MH i2c: E2 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: E2 17 00 72 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [09:50:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:50:26]wFMCommunicate OK [09:50:26]CreateOFDProtocolMessage done [09:50:26]OFDSenderStorePacket 188152 [09:50:26]StoreOFDPacket docnum=188152 [09:50:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 19 07 01 59 D3 5A 03 01 00 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 B5 00 00 00 F4 03 04 00 63 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DE 02 00 35 04 06 00 AC A4 F9 2E FE 98 3E 0E 2E 79 EE B5 A9 5E [09:50:26]CheckFolder [09:50:26]dirname=/storage/ofd_packets [09:50:26]CheckFolder done [09:50:26]ProducePacketName [09:50:26]name=ofd_packets/00188152 [09:50:26]NVStorageSaveData ofd_packets/00188152 [09:50:26]File name is /storage/ofd_packets/00188152 [09:50:26]Write 301 bytes [09:50:26]NVStorageSaveData done [09:50:26]OFDSenderStorePacket done [09:50:26]KKMCreateOFDPacket done [09:50:26]NVStorageSaveData kkm_last_timestamp [09:50:26]File name is /storage/kkm_last_timestamp [09:50:26]Write 4 bytes [09:50:26]NVStorageSaveData done [09:50:26]ExternCall_PrintAddStr [09:50:26]wPrintStart [09:50:26]Write to MH i2c: 01 00 00 73 39 AC [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 FF 0F C1 [09:50:26]RasterBufferAndPrint [09:50:26]line Счет N : (1)210203 [09:50:26]line ИНН: 02508201610067 [09:50:26]line Контрольно-Кассовый Чек [09:50:26]line ПРОДАЖА [09:50:26]line ТРК (МРК, ГНК) : 23 [09:50:26]line Товар: 2710124500 [09:50:26]line Аи-95-К-3 [09:50:26]line 13.480 * 74.20 [09:50:26]line = 1000.22 [09:50:26]line НДС 12% НСП 1% [09:50:26]line > о реализуемом товаре [09:50:26]line ОКРУГЛЕНИЕ: -0.22 [09:50:26]line ИТОГО: 1000.00 [09:50:26]line Внесено: 1000.00 [09:50:26]line СДАЧА: 0.00 [09:50:26]line НСП 1% : 8.85 [09:50:26]line НДС 12% : 106.22 [09:50:26]line Наличными: 1000.00 [09:50:26]line Безнал.: 0.00 [09:50:26]line Место: АЗС № 86 "Партнер Нефть" [09:50:26]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:50:26]line СНО: Общий режим [09:50:26]line Чек 181 22.10.2024 09:50 [09:50:26]line Смена: 461 ФФД: 1.0 [09:50:26]line ЗНМ: 0300000155 [09:50:26]line РНМ: 0000000000100030 [09:50:26]line Версия ККМ: 001 [09:50:26]line ФМ: 0000000000965340 [09:50:26]line ФД: 188152 [09:50:26]line ФПД: 189824555220632 [09:50:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095027&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188152&fm=189824555220632&tin=02508201610067®Number=0000000000100030&sum=100000 [09:50:26]written 0, free lines is 4095 [09:50:26]OFD Sender: Processing packet 188152 [packets to send 1062, broken 1061] [09:50:26]ProducePacketName [09:50:26]name=ofd_packets/00188152 [09:50:26]OFD Sender: To server: pG, [09:50:26]CommunicateWithHost lk.salyk.kg:30040 [09:50:26]ConnectInit lk.salyk.kg [09:50:26]Connected sock=10 [09:50:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 19 07 01 59 D3 5A 03 01 00 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 B5 00 00 00 F4 03 04 00 63 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DE 02 00 35 04 06 00 AC A4 F9 2E FE 98 3E 0E 2E 79 EE B5 A9 5E [09:50:26]Write to MH i2c: 01 00 00 9E 39 D7 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: 01 07 00 9E 39 00 00 00 00 00 5F 0C 49 [09:50:26]RasterBufferAndPrint [09:50:26]line [09:50:26]line [09:50:26]line [09:50:26]line [09:50:26]line [09:50:26]written 0, free lines is 3169 [09:50:26]MH_Cut [09:50:26]Write to MH i2c: D1 01 00 A5 39 01 B0 [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: D1 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: D1 01 00 [09:50:26]MH_I2C_Read... [09:50:26]Read from MH i2c: D1 01 00 A5 39 00 AF [09:50:26]Write to MH i2c: 01 00 00 A6 39 DF [09:50:26]Write i2c OK [09:50:26]MH_I2C_Read... [09:50:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC 71 47 00 9F 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 39 36 35 33 34 30 10 04 04 00 F8 DE 02 00 F4 03 04 00 51 1F 17 67 B6 04 01 00 00 08 DD 9F D1 25 C3 0F 16 [09:50:27]CommunicateWithHost err = 0 [09:50:27]CheckOFDResponse [09:50:27]1017 (14) - 77093643461234 [09:50:27]1041 (16) - 0000000000965340 [09:50:27]1040 (4) - 188152 [09:50:27]1012 (4) - 22.10.2024 03:43 [09:50:27]1206 (1) - 0 [09:50:27]OFD Sender: Remove packet 188152 [09:50:27]ProducePacketName [09:50:27]name=ofd_packets/00188152 [09:50:27]NVStorageDeleteData [09:50:27]OFD Sender: No OFD packet to send [09:50:28]*** Cut start [09:50:28]*** Partial cut [09:50:28]*** CUTSNS_PIN = 1 [09:50:28]*** CUTSNS_PIN = 0 [09:50:28]*** Brake cut motor [09:50:28]Read from MH i2c: 01 [09:50:28]MH_I2C_Read... [09:50:28]*** Stop cut motor [09:50:28]*** Cut end [09:50:28]Read from MH i2c: 01 07 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: 01 07 00 A6 39 00 00 00 00 00 FF 0F F4 [09:50:28]process_action close_receipt done [09:50:28]requested_data is exist [09:50:28]produce_requested_data [09:50:28]requested_item fm.sn is exist - process it [09:50:28]wFMCommunicate request_size=4 [09:50:28]MH_SAM_APDU [09:50:28]CAPDU: 80 11 00 00 [09:50:28]Write to MH i2c: E2 08 00 A7 39 80 11 00 00 00 00 00 00 5A [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:28]Read from MH i2c: E2 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 17 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 17 00 A7 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [09:50:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:50:28]wFMCommunicate OK [09:50:28]requested_item fd.num is exist - process it [09:50:28]SAM_PROTO_GetFieldsCounters [09:50:28]wFMCommunicate request_size=4 [09:50:28]MH_SAM_APDU [09:50:28]CAPDU: 80 13 00 00 [09:50:28]Write to MH i2c: E2 08 00 A8 39 80 13 00 00 00 00 00 00 5D [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:50:28]Read from MH i2c: E2 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 62 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 62 00 A8 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 29 [09:50:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B5 00 00 00 5E 04 04 00 B5 00 00 00 57 04 04 00 B6 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:50:28]wFMCommunicate OK [09:50:28]SAM_PROTO_GetFieldsCounters done [09:50:28]requested_item shift.num is exist - process it [09:50:28]requested_item shift.opened is exist - process it [09:50:28]req_shift_opened [09:50:28]FM_GetShiftState [09:50:28]SAM_PROTO_GetShiftState [09:50:28]wFMCommunicate request_size=4 [09:50:28]MH_SAM_APDU [09:50:28]CAPDU: 80 13 01 00 [09:50:28]Write to MH i2c: E2 08 00 A9 39 80 13 01 00 00 00 00 00 5F [09:50:28]Write i2c OK [09:50:28]MH_I2C_Read... [09:50:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:28]Read from MH i2c: E2 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 0E 00 [09:50:28]MH_I2C_Read... [09:50:28]Read from MH i2c: E2 0E 00 A9 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 54 [09:50:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:50:28]wFMCommunicate OK [09:50:28]SAM_PROTO_GetShiftState done [09:50:28]FM_GetShiftState done [09:50:28]req_shift_opened done [09:50:28]requested_item shift.open_date is exist - process it [09:50:28]req_shift_open_date [09:50:28]req_shift_open_date done [09:50:28]produce_requested_data done [09:50:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188152,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:50:28]process_action_free close_receipt [09:50:28]json_value_free [09:50:28]json_value_free done [09:50:28]process_json_proto returns [09:50:28]Send response to host [09:50:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188152,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:50:28]free response buf [09:50:28]execute_script done [09:50:28]execute_script returns [09:50:28]free content buf [09:50:28]Sock 9.Close socket [09:50:28]Sock 9.Thread stoped [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:56]accept exits with 8 [09:50:56]New connection [09:50:56]New thread 3067055460 created [09:50:56]Thread 3067198820 joined [09:50:56]Waiting for new connection... [09:50:56] Sock 8.Parse request [09:50:56]Sock 8.Check first char [09:50:56]Sock 8.First char is OK [09:50:56]request: POST /json_proto HTTP/1.0 [09:50:56]Method: POST [09:50:56]URL: /json_proto [09:50:56]Method is POST - this is cgi request [09:50:56]url: /json_proto [09:50:56]query_string will be loaded in cgi processing [09:50:56]execute_cgi json_proto POST (null) [09:50:56]execute_cgi path=json_proto method=POST [09:50:56]POST find Content-Length [09:50:56]Host: 172.17.42.131:8080 [09:50:56]Content-Length: 677 [09:50:56]Content-Type: application/json [09:50:56] [09:50:56]POST finish read [09:50:56]Found Content-Length = 677 [09:50:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:56]execute_script... [09:50: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)210205", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:50:56]POST & json_proto [09:50:56]process_json_proto [09:50:56]json parsed OK: [09:50:56]protocol is kg_v1.0 [09:50:56]action value=close_receipt [09:50:56]process_action close_receipt [09:50:56]cmd_close_receipt [09:50:56]MH_GetDate [09:50:56]Write to MH i2c: F0 00 00 AA 39 D2 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: F0 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: F0 09 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: F0 09 00 AA 39 00 83 75 17 67 A0 18 CA 66 39 [09:50:56]GetLastDocTimeStamp 1729590627 [09:50:56]current date 1729590659 [09:50:56]FM_GetShiftState [09:50:56]SAM_PROTO_GetShiftState [09:50:56]wFMCommunicate request_size=4 [09:50:56]MH_SAM_APDU [09:50:56]CAPDU: 80 13 01 00 [09:50:56]Write to MH i2c: E2 08 00 AB 39 80 13 01 00 00 00 00 00 61 [09:50:56]Write i2c OK [09:50:56]MH_I2C_Read... [09:50:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:50:56]Read from MH i2c: E2 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 0E 00 [09:50:56]MH_I2C_Read... [09:50:56]Read from MH i2c: E2 0E 00 AB 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 56 [09:50:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:50:56]wFMCommunicate OK [09:50:56]SAM_PROTO_GetShiftState done [09:50:56]FM_GetShiftState done [09:50:56]opened in 1729556094 [09:50:56]opened+sec_in_day 1729642494 [09:50:56]quantity*price = 50041 [09:50:56]sum+1 = 50042 [09:50:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 182 22.10.2024 09:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188153 ФПД: 131022467122686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095059&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188153&fm=131022467122686&tin=02508201610067®Number=0000000000100030&sum=50000 [09:50:57]StoreToDocumentArchive [09:50:57]shift 461 fd 188153 [09:50:57]save to /storage/0461/doc_00188153 [09:50:57]save last doc name /storage/0461/doc_00188153 to /storage/kkm_last_doc_name [09:50:57]save OK [09:50:57]Clear old archive folders... [09:50:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:50:57]tlvbuf is B6F949E0 [09:50:57]SAM_PROTO_ClearQueue [09:50:57]wFMCommunicate request_size=4 [09:50:57]MH_SAM_APDU [09:50:57]CAPDU: 80 09 00 00 [09:50:57]Write to MH i2c: E2 08 00 B8 39 80 09 00 00 00 00 00 00 63 [09:50:57]Write i2c OK [09:50:57]MH_I2C_Read... [09:50:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:50:57]Read from MH i2c: E2 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 03 00 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 03 00 B8 39 00 90 00 65 [09:50:57]RAPDU: 90 00 [09:50:57]wFMCommunicate OK [09:50:57]SAM_PROTO_ClearQueue done [09:50:57]KKMCreateOFDPacket [09:50:57]OFDProtocolAddRootSTLVToBuf [09:50:57]FM_MakeSignedData [09:50:57]FM_MakeSignedData [09:50:57]SAM_PROTO_SignData [09:50:57]wFMCommunicate request_size=4 [09:50:57]MH_SAM_APDU [09:50:57]CAPDU: 80 0D 01 02 [09:50:57]Write to MH i2c: E2 08 00 B9 39 80 0D 01 02 00 00 00 00 6B [09:50:57]Write i2c OK [09:50:57]MH_I2C_Read... [09:50:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:50:57]Read from MH i2c: E2 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 03 00 [09:50:57]MH_I2C_Read... [09:50:57]Read from MH i2c: E2 03 00 B9 39 00 90 00 66 [09:50:57]RAPDU: 90 00 [09:50:57]wFMCommunicate OK [09:50:57]wFMCommunicate request_size=255 [09:50:57]MH_SAM_APDU [09:50: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 83 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DE 02 00 35 04 06 00 77 [09:50:57]Write to MH i2c: E2 02 01 BA 39 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 83 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DE 02 00 35 04 06 00 77 00 00 28 [09:50:57]Write i2c OK [09:50:57]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 BA 39 00 90 00 67 [09:50:58]RAPDU: 90 00 [09:50:58]wFMCommunicate OK [09:50:58]wFMCommunicate request_size=10 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 0D 02 02 05 2A 0B 9C 45 FE [09:50:58]Write to MH i2c: E2 0D 00 BB 39 80 0D 02 02 05 00 2A 0B 9C 45 FE 00 00 8C [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 03 00 BB 39 00 90 00 68 [09:50:58]RAPDU: 90 00 [09:50:58]wFMCommunicate OK [09:50:58]wFMCommunicate request_size=4 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 0D 03 02 [09:50:58]Write to MH i2c: E2 08 00 BC 39 80 0D 03 02 00 00 00 00 70 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 0B 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 0B 00 BC 39 00 0F 1E 77 A8 C1 1F 11 6D 90 00 1B [09:50:58]RAPDU: 0F 1E 77 A8 C1 1F 11 6D 90 00 [09:50:58]wFMCommunicate OK [09:50:58]SAM_PROTO_SignData done [09:50:58]FM_MakeSignedData done [09:50:58]CreateOFDProtocolMessage [09:50:58]wFMCommunicate request_size=4 [09:50:58]MH_SAM_APDU [09:50:58]CAPDU: 80 11 00 00 [09:50:58]Write to MH i2c: E2 08 00 BD 39 80 11 00 00 00 00 00 00 70 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:50:58]Read from MH i2c: E2 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 17 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: E2 17 00 BD 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [09:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:50:58]wFMCommunicate OK [09:50:58]CreateOFDProtocolMessage done [09:50:58]OFDSenderStorePacket 188153 [09:50:58]StoreOFDPacket docnum=188153 [09:50:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 2F 07 01 5F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 83 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DE 02 00 35 04 06 00 77 2A 0B 9C 45 FE 0F 1E 77 A8 C1 1F 11 6D [09:50:58]CheckFolder [09:50:58]dirname=/storage/ofd_packets [09:50:58]CheckFolder done [09:50:58]ProducePacketName [09:50:58]name=ofd_packets/00188153 [09:50:58]NVStorageSaveData ofd_packets/00188153 [09:50:58]File name is /storage/ofd_packets/00188153 [09:50:58]Write 301 bytes [09:50:58]NVStorageSaveData done [09:50:58]OFDSenderStorePacket done [09:50:58]KKMCreateOFDPacket done [09:50:58]NVStorageSaveData kkm_last_timestamp [09:50:58]File name is /storage/kkm_last_timestamp [09:50:58]Write 4 bytes [09:50:58]NVStorageSaveData done [09:50:58]ExternCall_PrintAddStr [09:50:58]wPrintStart [09:50:58]Write to MH i2c: 01 00 00 BE 39 F7 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: 01 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: 01 07 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 FF 0F 0C [09:50:58]RasterBufferAndPrint [09:50:58]line Счет N : (1)210205 [09:50:58]line ИНН: 02508201610067 [09:50:58]line Контрольно-Кассовый Чек [09:50:58]line ПРОДАЖА [09:50:58]line ТРК (МРК, ГНК) : 42 [09:50:58]line Товар: 2710124130 [09:50:58]line Аи-92-К-3 [09:50:58]line 7.480 * 66.90 [09:50:58]line = 500.41 [09:50:58]line НДС 12% НСП 1% [09:50:58]line > о реализуемом товаре [09:50:58]line ОКРУГЛЕНИЕ: -0.41 [09:50:58]line ИТОГО: 500.00 [09:50:58]line Внесено: 500.00 [09:50:58]line СДАЧА: 0.00 [09:50:58]line НСП 1% : 4.43 [09:50:58]line НДС 12% : 53.14 [09:50:58]line Наличными: 500.00 [09:50:58]line Безнал.: 0.00 [09:50:58]line Место: АЗС № 86 "Партнер Нефть" [09:50:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:50:58]line СНО: Общий режим [09:50:58]line Чек 182 22.10.2024 09:50 [09:50:58]line Смена: 461 ФФД: 1.0 [09:50:58]line ЗНМ: 0300000155 [09:50:58]line РНМ: 0000000000100030 [09:50:58]line Версия ККМ: 001 [09:50:58]line ФМ: 0000000000965340 [09:50:58]line ФД: 188153 [09:50:58]line ФПД: 131022467122686 [09:50:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095059&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188153&fm=131022467122686&tin=02508201610067®Number=0000000000100030&sum=50000 [09:50:58]OFD Sender: Processing packet 188153 [packets to send 1062, broken 1061] [09:50:58]ProducePacketName [09:50:58]name=ofd_packets/00188153 [09:50:58]OFD Sender: To server: pG, [09:50:58]CommunicateWithHost lk.salyk.kg:30040 [09:50:58]ConnectInit lk.salyk.kg [09:50:58]written 0, free lines is 4095 [09:50:58]Connected sock=10 [09:50:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 2F 07 01 5F 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 83 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DE 02 00 35 04 06 00 77 2A 0B 9C 45 FE 0F 1E 77 A8 C1 1F 11 6D [09:50:58]Write to MH i2c: 01 00 00 E9 39 22 [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: 01 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: 01 07 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: 01 07 00 E9 39 00 00 00 00 00 62 0C 97 [09:50:58]RasterBufferAndPrint [09:50:58]line [09:50:58]line [09:50:58]line [09:50:58]line [09:50:58]line [09:50:58]written 0, free lines is 3174 [09:50:58]MH_Cut [09:50:58]Write to MH i2c: D1 01 00 F0 39 01 FB [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: D1 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: D1 01 00 [09:50:58]MH_I2C_Read... [09:50:58]Read from MH i2c: D1 01 00 F0 39 00 FA [09:50:58]Write to MH i2c: 01 00 00 F1 39 2A [09:50:58]Write i2c OK [09:50:58]MH_I2C_Read... [09:50:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E3 1D 47 00 14 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DE 02 00 F4 03 04 00 71 1F 17 67 B6 04 01 00 00 D0 B0 37 19 F1 4F 39 EE [09:50:59]CommunicateWithHost err = 0 [09:50:59]CheckOFDResponse [09:50:59]1017 (14) - 77093643461234 [09:50:59]1041 (16) - 0000000000965340 [09:50:59]1040 (4) - 188153 [09:50:59]1012 (4) - 22.10.2024 03:43 [09:50:59]1206 (1) - 0 [09:50:59]OFD Sender: Remove packet 188153 [09:50:59]ProducePacketName [09:50:59]name=ofd_packets/00188153 [09:50:59]NVStorageDeleteData [09:50:59]OFD Sender: No OFD packet to send [09:51:00]*** Cut start [09:51:00]*** Partial cut [09:51:00]*** CUTSNS_PIN = 1 [09:51:00]*** CUTSNS_PIN = 0 [09:51:00]*** Brake cut motor [09:51:00]Read from MH i2c: 01 [09:51:00]MH_I2C_Read... [09:51:00]*** Stop cut motor [09:51:00]*** Cut end [09:51:00]Read from MH i2c: 01 07 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: 01 07 00 F1 39 00 00 00 00 00 FF 0F 3F [09:51:00]process_action close_receipt done [09:51:00]requested_data is exist [09:51:00]produce_requested_data [09:51:00]requested_item fm.sn is exist - process it [09:51:00]wFMCommunicate request_size=4 [09:51:00]MH_SAM_APDU [09:51:00]CAPDU: 80 11 00 00 [09:51:00]Write to MH i2c: E2 08 00 F2 39 80 11 00 00 00 00 00 00 A5 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:00]Read from MH i2c: E2 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 17 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 17 00 F2 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [09:51:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:51:00]wFMCommunicate OK [09:51:00]requested_item fd.num is exist - process it [09:51:00]SAM_PROTO_GetFieldsCounters [09:51:00]wFMCommunicate request_size=4 [09:51:00]MH_SAM_APDU [09:51:00]CAPDU: 80 13 00 00 [09:51:00]Write to MH i2c: E2 08 00 F3 39 80 13 00 00 00 00 00 00 A8 [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:00]Read from MH i2c: E2 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 62 00 [09:51:00]MH_I2C_Read... [09:51:00]Read from MH i2c: E2 62 00 F3 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [09:51:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B6 00 00 00 5E 04 04 00 B6 00 00 00 57 04 04 00 B7 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:00]wFMCommunicate OK [09:51:00]SAM_PROTO_GetFieldsCounters done [09:51:00]requested_item shift.num is exist - process it [09:51:00]requested_item shift.opened is exist - process it [09:51:00]req_shift_opened [09:51:00]FM_GetShiftState [09:51:00]SAM_PROTO_GetShiftState [09:51:00]wFMCommunicate request_size=4 [09:51:00]MH_SAM_APDU [09:51:00]CAPDU: 80 13 01 00 [09:51:00]Write to MH i2c: E2 08 00 F4 39 80 13 01 00 00 00 00 00 AA [09:51:00]Write i2c OK [09:51:00]MH_I2C_Read... [09:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:01]Read from MH i2c: E2 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 0E 00 [09:51:01]MH_I2C_Read... [09:51:01]Read from MH i2c: E2 0E 00 F4 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9F [09:51:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:51:01]wFMCommunicate OK [09:51:01]SAM_PROTO_GetShiftState done [09:51:01]FM_GetShiftState done [09:51:01]req_shift_opened done [09:51:01]requested_item shift.open_date is exist - process it [09:51:01]req_shift_open_date [09:51:01]req_shift_open_date done [09:51:01]produce_requested_data done [09:51:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188153,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:51:01]process_action_free close_receipt [09:51:01]json_value_free [09:51:01]json_value_free done [09:51:01]process_json_proto returns [09:51:01]Send response to host [09:51:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188153,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:51:01]free response buf [09:51:01]execute_script done [09:51:01]execute_script returns [09:51:01]free content buf [09:51:01]Sock 8.Close socket [09:51:01]Sock 8.Thread stoped [09:51:04]OFD Sender: No OFD packet to send [09:51:09]OFD Sender: No OFD packet to send [09:51:14]OFD Sender: No OFD packet to send [09:51:19]OFD Sender: No OFD packet to send [09:51:24]OFD Sender: No OFD packet to send [09:51:29]OFD Sender: No OFD packet to send [09:51:34]OFD Sender: No OFD packet to send [09:51:39]OFD Sender: No OFD packet to send [09:51:40]accept exits with 9 [09:51:40]New connection [09:51:40]New thread 3067198820 created [09:51:40]Thread 3067055460 joined [09:51:40]Waiting for new connection... [09:51:40] Sock 9.Parse request [09:51:40]Sock 9.Check first char [09:51:40]Sock 9.First char is OK [09:51:40]request: POST /json_proto HTTP/1.0 [09:51:40]Method: POST [09:51:40]URL: /json_proto [09:51:40]Method is POST - this is cgi request [09:51:40]url: /json_proto [09:51:40]query_string will be loaded in cgi processing [09:51:40]execute_cgi json_proto POST (null) [09:51:40]execute_cgi path=json_proto method=POST [09:51:40]POST find Content-Length [09:51:40]Host: 172.17.42.131:8080 [09:51:40]Content-Length: 674 [09:51:40]Content-Type: application/json [09:51:40] [09:51:40]POST finish read [09:51:40]Found Content-Length = 674 [09:51:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.730, "sum" : 665.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:40]execute_script... [09: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)210204", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 8.730, "sum" : 665.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 665.00, "total" : 665.00, "payments": [ { "type": 0, "sum" : 665.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:51:40]POST & json_proto [09:51:40]process_json_proto [09:51:40]json parsed OK: [09:51:40]protocol is kg_v1.0 [09:51:40]action value=close_receipt [09:51:40]process_action close_receipt [09:51:40]cmd_close_receipt [09:51:40]MH_GetDate [09:51:40]Write to MH i2c: F0 00 00 F5 39 1D [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: F0 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: F0 09 00 [09:51:40]MH_I2C_Read... [09:51:40]Read from MH i2c: F0 09 00 F5 39 00 AF 75 17 67 A0 18 CA 66 B0 [09:51:40]GetLastDocTimeStamp 1729590659 [09:51:40]current date 1729590703 [09:51:40]FM_GetShiftState [09:51:40]SAM_PROTO_GetShiftState [09:51:40]wFMCommunicate request_size=4 [09:51:40]MH_SAM_APDU [09:51:40]CAPDU: 80 13 01 00 [09:51:40]Write to MH i2c: E2 08 00 F6 39 80 13 01 00 00 00 00 00 AC [09:51:40]Write i2c OK [09:51:40]MH_I2C_Read... [09:51:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:41]Read from MH i2c: E2 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 [09:51:41]MH_I2C_Read... [09:51:41]Read from MH i2c: E2 0E 00 F6 39 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A1 [09:51:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:51:41]wFMCommunicate OK [09:51:41]SAM_PROTO_GetShiftState done [09:51:41]FM_GetShiftState done [09:51:41]opened in 1729556094 [09:51:41]opened+sec_in_day 1729642494 [09:51:41]quantity*price = 66522 [09:51:41]sum+1 = 66524 [09:51:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.23 ИТОГО: 665.00 Внесено: 665.00 СДАЧА: 0.00 НСП 1% : 5.89 НДС 12% : 70.64 Наличными: 665.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 183 22.10.2024 09:51 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188154 ФПД: 210719304097278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188154&fm=210719304097278&tin=02508201610067®Number=0000000000100030&sum=66500 [09:51:42]StoreToDocumentArchive [09:51:42]shift 461 fd 188154 [09:51:42]save to /storage/0461/doc_00188154 [09:51:42]save last doc name /storage/0461/doc_00188154 to /storage/kkm_last_doc_name [09:51:42]save OK [09:51:42]Clear old archive folders... [09:51:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:51:42]tlvbuf is 01CD1620 [09:51:42]SAM_PROTO_ClearQueue [09:51:42]wFMCommunicate request_size=4 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 09 00 00 [09:51:42]Write to MH i2c: E2 08 00 03 3A 80 09 00 00 00 00 00 00 AF [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 03 3A 00 90 00 B1 [09:51:42]RAPDU: 90 00 [09:51:42]wFMCommunicate OK [09:51:42]SAM_PROTO_ClearQueue done [09:51:42]KKMCreateOFDPacket [09:51:42]OFDProtocolAddRootSTLVToBuf [09:51:42]FM_MakeSignedData [09:51:42]FM_MakeSignedData [09:51:42]SAM_PROTO_SignData [09:51:42]wFMCommunicate request_size=4 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 0D 01 02 [09:51:42]Write to MH i2c: E2 08 00 04 3A 80 0D 01 02 00 00 00 00 B7 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 04 3A 00 90 00 B2 [09:51:42]RAPDU: 90 00 [09:51:42]wFMCommunicate OK [09:51:42]wFMCommunicate request_size=255 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AF 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DE 02 00 35 04 06 00 BF A5 E9 44 [09:51:42]Write to MH i2c: E2 02 01 05 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AF 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DE 02 00 35 04 06 00 BF A5 E9 44 00 00 1A [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 05 3A 00 90 00 B3 [09:51:42]RAPDU: 90 00 [09:51:42]wFMCommunicate OK [09:51:42]wFMCommunicate request_size=7 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 0D 02 02 02 9D FE [09:51:42]Write to MH i2c: E2 0A 00 06 3A 80 0D 02 02 02 00 9D FE 00 00 59 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 03 00 06 3A 00 90 00 B4 [09:51:42]RAPDU: 90 00 [09:51:42]wFMCommunicate OK [09:51:42]wFMCommunicate request_size=4 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 0D 03 02 [09:51:42]Write to MH i2c: E2 08 00 07 3A 80 0D 03 02 00 00 00 00 BC [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 0B 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 0B 00 07 3A 00 5D 82 C6 C6 74 D1 AD 47 90 00 61 [09:51:42]RAPDU: 5D 82 C6 C6 74 D1 AD 47 90 00 [09:51:42]wFMCommunicate OK [09:51:42]SAM_PROTO_SignData done [09:51:42]FM_MakeSignedData done [09:51:42]CreateOFDProtocolMessage [09:51:42]wFMCommunicate request_size=4 [09:51:42]MH_SAM_APDU [09:51:42]CAPDU: 80 11 00 00 [09:51:42]Write to MH i2c: E2 08 00 08 3A 80 11 00 00 00 00 00 00 BC [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:42]Read from MH i2c: E2 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 17 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: E2 17 00 08 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [09:51:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:51:42]wFMCommunicate OK [09:51:42]CreateOFDProtocolMessage done [09:51:42]OFDSenderStorePacket 188154 [09:51:42]StoreOFDPacket docnum=188154 [09:51:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 02 2D 04 01 4F C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AF 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DE 02 00 35 04 06 00 BF A5 E9 44 9D FE 5D 82 C6 C6 74 D1 AD 47 [09:51:42]CheckFolder [09:51:42]dirname=/storage/ofd_packets [09:51:42]CheckFolder done [09:51:42]ProducePacketName [09:51:42]name=ofd_packets/00188154 [09:51:42]NVStorageSaveData ofd_packets/00188154 [09:51:42]File name is /storage/ofd_packets/00188154 [09:51:42]Write 298 bytes [09:51:42]NVStorageSaveData done [09:51:42]OFDSenderStorePacket done [09:51:42]KKMCreateOFDPacket done [09:51:42]NVStorageSaveData kkm_last_timestamp [09:51:42]File name is /storage/kkm_last_timestamp [09:51:42]Write 4 bytes [09:51:42]NVStorageSaveData done [09:51:42]ExternCall_PrintAddStr [09:51:42]wPrintStart [09:51:42]Write to MH i2c: 01 00 00 09 3A 43 [09:51:42]Write i2c OK [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: 01 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: 01 07 00 [09:51:42]MH_I2C_Read... [09:51:42]Read from MH i2c: 01 07 00 09 3A 00 00 00 00 00 FF 0F 58 [09:51:42]RasterBufferAndPrint [09:51:42]line Счет N : (1)210204 [09:51:42]line ИНН: 02508201610067 [09:51:42]line Контрольно-Кассовый Чек [09:51:42]line ПРОДАЖА [09:51:42]line ТРК (МРК, ГНК) : 51 [09:51:42]line Товар: 2710194210 [09:51:42]line ДТ-К-5 [09:51:42]line 8.730 * 76.20 [09:51:42]line = 665.23 [09:51:42]line НДС 12% НСП 1% [09:51:42]line > о реализуемом товаре [09:51:42]line ОКРУГЛЕНИЕ: -0.23 [09:51:42]line ИТОГО: 665.00 [09:51:42]line Внесено: 665.00 [09:51:42]line СДАЧА: 0.00 [09:51:42]line НСП 1% : 5.89 [09:51:42]line НДС 12% : 70.64 [09:51:42]line Наличными: 665.00 [09:51:42]line Безнал.: 0.00 [09:51:42]line Место: АЗС № 86 "Партнер Нефть" [09:51:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:51:42]line СНО: Общий режим [09:51:42]line Чек 183 22.10.2024 09:51 [09:51:42]line Смена: 461 ФФД: 1.0 [09:51:42]line ЗНМ: 0300000155 [09:51:42]line РНМ: 0000000000100030 [09:51:42]line Версия ККМ: 001 [09:51:42]line ФМ: 0000000000965340 [09:51:42]line ФД: 188154 [09:51:42]line ФПД: 210719304097278 [09:51:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188154&fm=210719304097278&tin=02508201610067®Number=0000000000100030&sum=66500 [09:51:42]written 0, free lines is 4095 [09:51:42]OFD Sender: Processing packet 188154 [packets to send 1062, broken 1061] [09:51:42]ProducePacketName [09:51:42]name=ofd_packets/00188154 [09:51:42]OFD Sender: To server: pG, [09:51:42]CommunicateWithHost lk.salyk.kg:30040 [09:51:42]ConnectInit lk.salyk.kg [09:51:43]Connected sock=10 [09:51:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 02 2D 04 01 4F C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1A 22 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 DB 03 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 03 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 1B 00 00 00 00 07 04 06 00 C4 03 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B7 00 00 00 F4 03 04 00 AF 75 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DE 02 00 35 04 06 00 BF A5 E9 44 9D FE 5D 82 C6 C6 74 D1 AD 47 [09:51:43]Write to MH i2c: 01 00 00 34 3A 6E [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: 01 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: 01 07 00 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: 01 07 00 34 3A 00 00 00 00 00 5A 0C DB [09:51:43]RasterBufferAndPrint [09:51:43]line [09:51:43]line [09:51:43]line [09:51:43]line [09:51:43]line [09:51:43]written 0, free lines is 3167 [09:51:43]MH_Cut [09:51:43]Write to MH i2c: D1 01 00 3B 3A 01 47 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: D1 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: D1 01 00 [09:51:43]MH_I2C_Read... [09:51:43]Read from MH i2c: D1 01 00 3B 3A 00 46 [09:51:43]Write to MH i2c: 01 00 00 3C 3A 76 [09:51:43]Write i2c OK [09:51:43]MH_I2C_Read... [09:51:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D3 B1 47 00 7F 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DE 02 00 F4 03 04 00 9D 1F 17 67 B6 04 01 00 00 D6 D8 E3 79 3D CA 11 E9 [09:51:43]CommunicateWithHost err = 0 [09:51:43]CheckOFDResponse [09:51:43]1017 (14) - 77093643461234 [09:51:43]1041 (16) - 0000000000965340 [09:51:43]1040 (4) - 188154 [09:51:43]1012 (4) - 22.10.2024 03:44 [09:51:43]1206 (1) - 0 [09:51:43]OFD Sender: Remove packet 188154 [09:51:43]ProducePacketName [09:51:43]name=ofd_packets/00188154 [09:51:43]NVStorageDeleteData [09:51:43]OFD Sender: No OFD packet to send [09:51:44]*** Cut start [09:51:44]*** Partial cut [09:51:44]*** CUTSNS_PIN = 1 [09:51:44]*** CUTSNS_PIN = 0 [09:51:44]*** Brake cut motor [09:51:44]Read from MH i2c: 01 [09:51:44]MH_I2C_Read... [09:51:44]*** Stop cut motor [09:51:44]*** Cut end [09:51:44]Read from MH i2c: 01 07 00 [09:51:44]MH_I2C_Read... [09:51:44]Read from MH i2c: 01 07 00 3C 3A 00 00 00 00 00 FF 0F 8B [09:51:44]process_action close_receipt done [09:51:44]requested_data is exist [09:51:44]produce_requested_data [09:51:44]requested_item fm.sn is exist - process it [09:51:44]wFMCommunicate request_size=4 [09:51:44]MH_SAM_APDU [09:51:44]CAPDU: 80 11 00 00 [09:51:44]Write to MH i2c: E2 08 00 3D 3A 80 11 00 00 00 00 00 00 F1 [09:51:44]Write i2c OK [09:51:44]MH_I2C_Read... [09:51:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:51:45]Read from MH i2c: E2 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 17 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 17 00 3D 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [09:51:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:51:45]wFMCommunicate OK [09:51:45]requested_item fd.num is exist - process it [09:51:45]SAM_PROTO_GetFieldsCounters [09:51:45]wFMCommunicate request_size=4 [09:51:45]MH_SAM_APDU [09:51:45]CAPDU: 80 13 00 00 [09:51:45]Write to MH i2c: E2 08 00 3E 3A 80 13 00 00 00 00 00 00 F4 [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:51:45]Read from MH i2c: E2 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 62 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 62 00 3E 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 C8 [09:51:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B7 00 00 00 5E 04 04 00 B7 00 00 00 57 04 04 00 B8 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:51:45]wFMCommunicate OK [09:51:45]SAM_PROTO_GetFieldsCounters done [09:51:45]requested_item shift.num is exist - process it [09:51:45]requested_item shift.opened is exist - process it [09:51:45]req_shift_opened [09:51:45]FM_GetShiftState [09:51:45]SAM_PROTO_GetShiftState [09:51:45]wFMCommunicate request_size=4 [09:51:45]MH_SAM_APDU [09:51:45]CAPDU: 80 13 01 00 [09:51:45]Write to MH i2c: E2 08 00 3F 3A 80 13 01 00 00 00 00 00 F6 [09:51:45]Write i2c OK [09:51:45]MH_I2C_Read... [09:51:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:51:45]Read from MH i2c: E2 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 0E 00 [09:51:45]MH_I2C_Read... [09:51:45]Read from MH i2c: E2 0E 00 3F 3A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [09:51:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:51:45]wFMCommunicate OK [09:51:45]SAM_PROTO_GetShiftState done [09:51:45]FM_GetShiftState done [09:51:45]req_shift_opened done [09:51:45]requested_item shift.open_date is exist - process it [09:51:45]req_shift_open_date [09:51:45]req_shift_open_date done [09:51:45]produce_requested_data done [09:51:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188154,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:51:45]process_action_free close_receipt [09:51:45]json_value_free [09:51:45]json_value_free done [09:51:45]process_json_proto returns [09:51:45]Send response to host [09:51:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188154,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:51:45]free response buf [09:51:45]execute_script done [09:51:45]execute_script returns [09:51:45]free content buf [09:51:45]Sock 9.Close socket [09:51:45]Sock 9.Thread stoped [09:51:48]OFD Sender: No OFD packet to send [09:51:53]OFD Sender: No OFD packet to send [09:51:58]OFD Sender: No OFD packet to send [09:52:04]OFD Sender: No OFD packet to send [09:52:09]OFD Sender: No OFD packet to send [09:52:14]OFD Sender: No OFD packet to send [09:52:19]OFD Sender: No OFD packet to send [09:52:24]OFD Sender: No OFD packet to send [09:52:29]OFD Sender: No OFD packet to send [09:52:34]OFD Sender: No OFD packet to send [09:52:39]OFD Sender: No OFD packet to send [09:52:44]OFD Sender: No OFD packet to send [09:52:49]OFD Sender: No OFD packet to send [09:52:54]OFD Sender: No OFD packet to send [09:52:59]OFD Sender: No OFD packet to send [09:53:04]OFD Sender: No OFD packet to send [09:53:09]OFD Sender: No OFD packet to send [09:53:14]OFD Sender: No OFD packet to send [09:53:19]OFD Sender: No OFD packet to send [09:53:24]OFD Sender: No OFD packet to send [09:53:29]OFD Sender: No OFD packet to send [09:53:34]OFD Sender: No OFD packet to send [09:53:39]OFD Sender: No OFD packet to send [09:53:44]OFD Sender: No OFD packet to send [09:53:49]OFD Sender: No OFD packet to send [09:53:54]OFD Sender: No OFD packet to send [09:53:56]accept exits with 8 [09:53:56]New connection [09:53:56]New thread 3067055460 created [09:53:56]Thread 3067198820 joined [09:53:56]Waiting for new connection... [09:53:56] Sock 8.Parse request [09:53:56]Sock 8.Check first char [09:53:56]Sock 8.First char is OK [09:53:56]request: POST /json_proto HTTP/1.0 [09:53:56]Method: POST [09:53:56]URL: /json_proto [09:53:56]Method is POST - this is cgi request [09:53:56]url: /json_proto [09:53:56]query_string will be loaded in cgi processing [09:53:56]execute_cgi json_proto POST (null) [09:53:56]execute_cgi path=json_proto method=POST [09:53:56]POST find Content-Length [09:53:56]Host: 172.17.42.131:8080 [09:53:56]Content-Length: 682 [09:53:56]Content-Type: application/json [09:53:56] [09:53:56]POST finish read [09:53:56]Found Content-Length = 682 [09:53:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210206", "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" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:56]execute_script... [09:53: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)210206", "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" : 40.440, "sum" : 3000.65, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:53:56]POST & json_proto [09:53:56]process_json_proto [09:53:56]json parsed OK: [09:53:56]protocol is kg_v1.0 [09:53:56]action value=close_receipt [09:53:56]process_action close_receipt [09:53:56]cmd_close_receipt [09:53:56]MH_GetDate [09:53:56]Write to MH i2c: F0 00 00 40 3A 69 [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: F0 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: F0 09 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: F0 09 00 40 3A 00 37 76 17 67 A0 18 CA 66 85 [09:53:56]GetLastDocTimeStamp 1729590703 [09:53:56]current date 1729590839 [09:53:56]FM_GetShiftState [09:53:56]SAM_PROTO_GetShiftState [09:53:56]wFMCommunicate request_size=4 [09:53:56]MH_SAM_APDU [09:53:56]CAPDU: 80 13 01 00 [09:53:56]Write to MH i2c: E2 08 00 41 3A 80 13 01 00 00 00 00 00 F8 [09:53:56]Write i2c OK [09:53:56]MH_I2C_Read... [09:53:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:53:56]Read from MH i2c: E2 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 [09:53:56]MH_I2C_Read... [09:53:56]Read from MH i2c: E2 0E 00 41 3A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 ED [09:53:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:53:56]wFMCommunicate OK [09:53:56]SAM_PROTO_GetShiftState done [09:53:56]FM_GetShiftState done [09:53:56]opened in 1729556094 [09:53:56]opened+sec_in_day 1729642494 [09:53:56]quantity*price = 300064 [09:53:56]sum+1 = 300066 [09:53:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.65 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.65 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 184 22.10.2024 09:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188155 ФПД: 149337203985564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095359&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188155&fm=149337203985564&tin=02508201610067®Number=0000000000100030&sum=300000 [09:53:57]StoreToDocumentArchive [09:53:57]shift 461 fd 188155 [09:53:57]save to /storage/0461/doc_00188155 [09:53:57]save last doc name /storage/0461/doc_00188155 to /storage/kkm_last_doc_name [09:53:57]save OK [09:53:57]Clear old archive folders... [09:53:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:53:57]tlvbuf is 01BE05B0 [09:53:57]SAM_PROTO_ClearQueue [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 09 00 00 [09:53:57]Write to MH i2c: E2 08 00 4E 3A 80 09 00 00 00 00 00 00 FA [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 4E 3A 00 90 00 FC [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_ClearQueue done [09:53:57]KKMCreateOFDPacket [09:53:57]OFDProtocolAddRootSTLVToBuf [09:53:57]FM_MakeSignedData [09:53:57]FM_MakeSignedData [09:53:57]SAM_PROTO_SignData [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 0D 01 02 [09:53:57]Write to MH i2c: E2 08 00 4F 3A 80 0D 01 02 00 00 00 00 02 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 4F 3A 00 90 00 FD [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]wFMCommunicate request_size=255 [09:53:57]MH_SAM_APDU [09:53: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 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 37 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DE 02 00 35 04 06 00 87 [09:53:57]Write to MH i2c: E2 02 01 50 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 37 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DE 02 00 35 04 06 00 87 00 00 B9 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 50 3A 00 90 00 FE [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]wFMCommunicate request_size=10 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 0D 02 02 05 D2 46 FE CC 9C [09:53:57]Write to MH i2c: E2 0D 00 51 3A 80 0D 02 02 05 00 D2 46 FE CC 9C 00 00 8D [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 03 00 51 3A 00 90 00 FF [09:53:57]RAPDU: 90 00 [09:53:57]wFMCommunicate OK [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 0D 03 02 [09:53:57]Write to MH i2c: E2 08 00 52 3A 80 0D 03 02 00 00 00 00 07 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0B 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 0B 00 52 3A 00 33 5A 16 8B D3 AB 04 0D 90 00 C5 [09:53:57]RAPDU: 33 5A 16 8B D3 AB 04 0D 90 00 [09:53:57]wFMCommunicate OK [09:53:57]SAM_PROTO_SignData done [09:53:57]FM_MakeSignedData done [09:53:57]CreateOFDProtocolMessage [09:53:57]wFMCommunicate request_size=4 [09:53:57]MH_SAM_APDU [09:53:57]CAPDU: 80 11 00 00 [09:53:57]Write to MH i2c: E2 08 00 53 3A 80 11 00 00 00 00 00 00 07 [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:53:57]Read from MH i2c: E2 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: E2 17 00 53 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [09:53:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:53:57]wFMCommunicate OK [09:53:57]CreateOFDProtocolMessage done [09:53:57]OFDSenderStorePacket 188155 [09:53:57]StoreOFDPacket docnum=188155 [09:53:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D CA 07 01 29 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 37 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DE 02 00 35 04 06 00 87 D2 46 FE CC 9C 33 5A 16 8B D3 AB 04 0D [09:53:57]CheckFolder [09:53:57]dirname=/storage/ofd_packets [09:53:57]CheckFolder done [09:53:57]ProducePacketName [09:53:57]name=ofd_packets/00188155 [09:53:57]NVStorageSaveData ofd_packets/00188155 [09:53:57]File name is /storage/ofd_packets/00188155 [09:53:57]Write 301 bytes [09:53:57]NVStorageSaveData done [09:53:57]OFDSenderStorePacket done [09:53:57]KKMCreateOFDPacket done [09:53:57]NVStorageSaveData kkm_last_timestamp [09:53:57]File name is /storage/kkm_last_timestamp [09:53:57]Write 4 bytes [09:53:57]NVStorageSaveData done [09:53:57]ExternCall_PrintAddStr [09:53:57]wPrintStart [09:53:57]Write to MH i2c: 01 00 00 54 3A 8E [09:53:57]Write i2c OK [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 07 00 [09:53:57]MH_I2C_Read... [09:53:57]Read from MH i2c: 01 07 00 54 3A 00 00 00 00 00 FF 0F A3 [09:53:57]RasterBufferAndPrint [09:53:57]line Счет N : (1)210206 [09:53:57]line ИНН: 02508201610067 [09:53:57]line Контрольно-Кассовый Чек [09:53:57]line ПРОДАЖА [09:53:57]line ТРК (МРК, ГНК) : 33 [09:53:57]line Товар: 2710124500 [09:53:57]line Аи-95-К-3 [09:53:57]line 40.440 * 74.20 [09:53:57]line = 3000.65 [09:53:57]line НДС 12% НСП 1% [09:53:57]line > о реализуемом товаре [09:53:57]line ОКРУГЛЕНИЕ: -0.65 [09:53:57]line ИТОГО: 3000.00 [09:53:57]line Внесено: 3000.00 [09:53:57]line СДАЧА: 0.00 [09:53:57]line НСП 1% : 26.55 [09:53:57]line НДС 12% : 318.65 [09:53:57]line Наличными: 3000.00 [09:53:57]line Безнал.: 0.00 [09:53:57]line Место: АЗС № 86 "Партнер Нефть" [09:53:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:53:57]line СНО: Общий режим [09:53:57]line Чек 184 22.10.2024 09:53 [09:53:57]line Смена: 461 ФФД: 1.0 [09:53:57]line ЗНМ: 0300000155 [09:53:57]line РНМ: 0000000000100030 [09:53:57]line Версия ККМ: 001 [09:53:57]line ФМ: 0000000000965340 [09:53:57]line ФД: 188155 [09:53:57]line ФПД: 149337203985564 [09:53:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095359&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188155&fm=149337203985564&tin=02508201610067®Number=0000000000100030&sum=300000 [09:53:57]written 0, free lines is 4095 [09:53:57]OFD Sender: Processing packet 188155 [packets to send 1062, broken 1061] [09:53:57]ProducePacketName [09:53:57]name=ofd_packets/00188155 [09:53:57]OFD Sender: To server: pG, [09:53:57]CommunicateWithHost lk.salyk.kg:30040 [09:53:57]ConnectInit lk.salyk.kg [09:53:58]Connected sock=10 [09:53:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D CA 07 01 29 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 F8 9D 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 21 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B8 00 00 00 F4 03 04 00 37 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DE 02 00 35 04 06 00 87 D2 46 FE CC 9C 33 5A 16 8B D3 AB 04 0D [09:53:58]Write to MH i2c: 01 00 00 7F 3A B9 [09:53:58]Write i2c OK [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: 01 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: 01 07 00 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: 01 07 00 7F 3A 00 00 00 00 00 63 0C 2F [09:53:58]RasterBufferAndPrint [09:53:58]line [09:53:58]line [09:53:58]line [09:53:58]line [09:53:58]line [09:53:58]written 0, free lines is 3175 [09:53:58]MH_Cut [09:53:58]Write to MH i2c: D1 01 00 86 3A 01 92 [09:53:58]Write i2c OK [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: D1 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: D1 01 00 [09:53:58]MH_I2C_Read... [09:53:58]Read from MH i2c: D1 01 00 86 3A 00 91 [09:53:58]Write to MH i2c: 01 00 00 87 3A C1 [09:53:58]Write i2c OK [09:53:58]MH_I2C_Read... [09:53:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E C9 47 00 92 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 39 36 35 33 34 30 10 04 04 00 FB DE 02 00 F4 03 04 00 24 20 17 67 B6 04 01 00 00 3F 06 CA AB 62 B8 1C F0 [09:53:58]CommunicateWithHost err = 0 [09:53:58]CheckOFDResponse [09:53:58]1017 (14) - 77093643461234 [09:53:58]1041 (16) - 0000000000965340 [09:53:58]1040 (4) - 188155 [09:53:58]1012 (4) - 22.10.2024 03:46 [09:53:58]1206 (1) - 0 [09:53:58]OFD Sender: Remove packet 188155 [09:53:58]ProducePacketName [09:53:58]name=ofd_packets/00188155 [09:53:58]NVStorageDeleteData [09:53:59]OFD Sender: No OFD packet to send [09:53:59]*** Cut start [09:53:59]*** Partial cut [09:53:59]*** CUTSNS_PIN = 1 [09:53:59]*** CUTSNS_PIN = 0 [09:53:59]*** Brake cut motor [09:54:00]Read from MH i2c: 01 [09:54:00]MH_I2C_Read... [09:54:00]*** Stop cut motor [09:54:00]*** Cut end [09:54:00]Read from MH i2c: 01 07 00 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: 01 07 00 87 3A 00 00 00 00 00 FF 0F D6 [09:54:00]process_action close_receipt done [09:54:00]requested_data is exist [09:54:00]produce_requested_data [09:54:00]requested_item fm.sn is exist - process it [09:54:00]wFMCommunicate request_size=4 [09:54:00]MH_SAM_APDU [09:54:00]CAPDU: 80 11 00 00 [09:54:00]Write to MH i2c: E2 08 00 88 3A 80 11 00 00 00 00 00 00 3C [09:54:00]Write i2c OK [09:54:00]MH_I2C_Read... [09:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:00]Read from MH i2c: E2 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: E2 17 00 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: E2 17 00 88 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [09:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:54:00]wFMCommunicate OK [09:54:00]requested_item fd.num is exist - process it [09:54:00]SAM_PROTO_GetFieldsCounters [09:54:00]wFMCommunicate request_size=4 [09:54:00]MH_SAM_APDU [09:54:00]CAPDU: 80 13 00 00 [09:54:00]Write to MH i2c: E2 08 00 89 3A 80 13 00 00 00 00 00 00 3F [09:54:00]Write i2c OK [09:54:00]MH_I2C_Read... [09:54:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:00]Read from MH i2c: E2 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: E2 62 00 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: E2 62 00 89 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 17 [09:54:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B8 00 00 00 5E 04 04 00 B8 00 00 00 57 04 04 00 B9 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:00]wFMCommunicate OK [09:54:00]SAM_PROTO_GetFieldsCounters done [09:54:00]requested_item shift.num is exist - process it [09:54:00]requested_item shift.opened is exist - process it [09:54:00]req_shift_opened [09:54:00]FM_GetShiftState [09:54:00]SAM_PROTO_GetShiftState [09:54:00]wFMCommunicate request_size=4 [09:54:00]MH_SAM_APDU [09:54:00]CAPDU: 80 13 01 00 [09:54:00]Write to MH i2c: E2 08 00 8A 3A 80 13 01 00 00 00 00 00 41 [09:54:00]Write i2c OK [09:54:00]MH_I2C_Read... [09:54:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:00]Read from MH i2c: E2 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: E2 0E 00 [09:54:00]MH_I2C_Read... [09:54:00]Read from MH i2c: E2 0E 00 8A 3A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [09:54:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:54:00]wFMCommunicate OK [09:54:00]SAM_PROTO_GetShiftState done [09:54:00]FM_GetShiftState done [09:54:00]req_shift_opened done [09:54:00]requested_item shift.open_date is exist - process it [09:54:00]req_shift_open_date [09:54:00]req_shift_open_date done [09:54:00]produce_requested_data done [09:54:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188155,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:54:00]process_action_free close_receipt [09:54:00]json_value_free [09:54:00]json_value_free done [09:54:00]process_json_proto returns [09:54:00]Send response to host [09:54:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188155,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:54:00]free response buf [09:54:00]execute_script done [09:54:00]execute_script returns [09:54:00]free content buf [09:54:00]Sock 8.Close socket [09:54:00]Sock 8.Thread stoped [09:54:04]OFD Sender: No OFD packet to send [09:54:08]accept exits with 9 [09:54:08]New connection [09:54:08]New thread 3067198820 created [09:54:08]Thread 3067055460 joined [09:54:08]Waiting for new connection... [09:54:08] Sock 9.Parse request [09:54:08]Sock 9.Check first char [09:54:08]Sock 9.First char is OK [09:54:08]request: POST /json_proto HTTP/1.0 [09:54:08]Method: POST [09:54:08]URL: /json_proto [09:54:08]Method is POST - this is cgi request [09:54:08]url: /json_proto [09:54:08]query_string will be loaded in cgi processing [09:54:08]execute_cgi json_proto POST (null) [09:54:08]execute_cgi path=json_proto method=POST [09:54:08]POST find Content-Length [09:54:08]Host: 172.17.42.131:8080 [09:54:08]Content-Length: 679 [09:54:08]Content-Type: application/json [09:54:08] [09:54:08]POST finish read [09:54:08]Found Content-Length = 679 [09:54:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:54:08]execute_script... [09:54: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)210207", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:54:08]POST & json_proto [09:54:08]process_json_proto [09:54:08]json parsed OK: [09:54:08]protocol is kg_v1.0 [09:54:08]action value=close_receipt [09:54:08]process_action close_receipt [09:54:08]cmd_close_receipt [09:54:08]MH_GetDate [09:54:08]Write to MH i2c: F0 00 00 8B 3A B4 [09:54:08]Write i2c OK [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: F0 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: F0 09 00 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: F0 09 00 8B 3A 00 43 76 17 67 A0 18 CA 66 DC [09:54:08]GetLastDocTimeStamp 1729590839 [09:54:08]current date 1729590851 [09:54:08]FM_GetShiftState [09:54:08]SAM_PROTO_GetShiftState [09:54:08]wFMCommunicate request_size=4 [09:54:08]MH_SAM_APDU [09:54:08]CAPDU: 80 13 01 00 [09:54:08]Write to MH i2c: E2 08 00 8C 3A 80 13 01 00 00 00 00 00 43 [09:54:08]Write i2c OK [09:54:08]MH_I2C_Read... [09:54:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:08]Read from MH i2c: E2 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: E2 0E 00 [09:54:08]MH_I2C_Read... [09:54:08]Read from MH i2c: E2 0E 00 8C 3A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [09:54:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:54:08]wFMCommunicate OK [09:54:08]SAM_PROTO_GetShiftState done [09:54:08]FM_GetShiftState done [09:54:08]opened in 1729556094 [09:54:08]opened+sec_in_day 1729642494 [09:54:08]quantity*price = 100050 [09:54:08]sum+1 = 100052 [09:54:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 185 22.10.2024 09:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188156 ФПД: 219519441383597 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188156&fm=219519441383597&tin=02508201610067®Number=0000000000100030&sum=100000 [09:54:09]StoreToDocumentArchive [09:54:09]shift 461 fd 188156 [09:54:09]save to /storage/0461/doc_00188156 [09:54:09]save last doc name /storage/0461/doc_00188156 to /storage/kkm_last_doc_name [09:54:09]save OK [09:54:09]Clear old archive folders... [09:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=248 [09:54:09]tlvbuf is 01CA2580 [09:54:09]SAM_PROTO_ClearQueue [09:54:09]wFMCommunicate request_size=4 [09:54:09]MH_SAM_APDU [09:54:09]CAPDU: 80 09 00 00 [09:54:09]Write to MH i2c: E2 08 00 99 3A 80 09 00 00 00 00 00 00 45 [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:54:09]Read from MH i2c: E2 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 99 3A 00 90 00 47 [09:54:09]RAPDU: 90 00 [09:54:09]wFMCommunicate OK [09:54:09]SAM_PROTO_ClearQueue done [09:54:09]KKMCreateOFDPacket [09:54:09]OFDProtocolAddRootSTLVToBuf [09:54:09]FM_MakeSignedData [09:54:09]FM_MakeSignedData [09:54:09]SAM_PROTO_SignData [09:54:09]wFMCommunicate request_size=4 [09:54:09]MH_SAM_APDU [09:54:09]CAPDU: 80 0D 01 02 [09:54:09]Write to MH i2c: E2 08 00 9A 3A 80 0D 01 02 00 00 00 00 4D [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:54:09]Read from MH i2c: E2 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 9A 3A 00 90 00 48 [09:54:09]RAPDU: 90 00 [09:54:09]wFMCommunicate OK [09:54:09]wFMCommunicate request_size=255 [09:54:09]MH_SAM_APDU [09:54: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 32 31 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 B9 00 00 00 F4 03 04 00 43 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DE 02 00 35 04 06 00 C7 A6 DA 53 [09:54:09]Write to MH i2c: E2 02 01 9B 3A 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 B9 00 00 00 F4 03 04 00 43 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DE 02 00 35 04 06 00 C7 A6 DA 53 00 00 EC [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:09]Read from MH i2c: E2 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 [09:54:09]MH_I2C_Read... [09:54:09]Read from MH i2c: E2 03 00 9B 3A 00 90 00 49 [09:54:09]RAPDU: 90 00 [09:54:09]wFMCommunicate OK [09:54:09]wFMCommunicate request_size=7 [09:54:09]MH_SAM_APDU [09:54:09]CAPDU: 80 0D 02 02 02 30 AD [09:54:09]Write to MH i2c: E2 0A 00 9C 3A 80 0D 02 02 02 00 30 AD 00 00 31 [09:54:09]Write i2c OK [09:54:09]MH_I2C_Read... [09:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:54:09]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 03 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 03 00 9C 3A 00 90 00 4A [09:54:10]RAPDU: 90 00 [09:54:10]wFMCommunicate OK [09:54:10]wFMCommunicate request_size=4 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 0D 03 02 [09:54:10]Write to MH i2c: E2 08 00 9D 3A 80 0D 03 02 00 00 00 00 52 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0B 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 0B 00 9D 3A 00 B0 4F E7 D0 3E 2F E7 AA 90 00 07 [09:54:10]RAPDU: B0 4F E7 D0 3E 2F E7 AA 90 00 [09:54:10]wFMCommunicate OK [09:54:10]SAM_PROTO_SignData done [09:54:10]FM_MakeSignedData done [09:54:10]CreateOFDProtocolMessage [09:54:10]wFMCommunicate request_size=4 [09:54:10]MH_SAM_APDU [09:54:10]CAPDU: 80 11 00 00 [09:54:10]Write to MH i2c: E2 08 00 9E 3A 80 11 00 00 00 00 00 00 52 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:10]Read from MH i2c: E2 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 17 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: E2 17 00 9E 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [09:54:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:54:10]wFMCommunicate OK [09:54:10]CreateOFDProtocolMessage done [09:54:10]OFDSenderStorePacket 188156 [09:54:10]StoreOFDPacket docnum=188156 [09:54:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F1 2D 04 01 1F 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 B9 00 00 00 F4 03 04 00 43 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DE 02 00 35 04 06 00 C7 A6 DA 53 30 AD B0 4F E7 D0 3E 2F E7 AA [09:54:10]CheckFolder [09:54:10]dirname=/storage/ofd_packets [09:54:10]CheckFolder done [09:54:10]ProducePacketName [09:54:10]name=ofd_packets/00188156 [09:54:10]NVStorageSaveData ofd_packets/00188156 [09:54:10]File name is /storage/ofd_packets/00188156 [09:54:10]Write 298 bytes [09:54:10]NVStorageSaveData done [09:54:10]OFDSenderStorePacket done [09:54:10]KKMCreateOFDPacket done [09:54:10]NVStorageSaveData kkm_last_timestamp [09:54:10]File name is /storage/kkm_last_timestamp [09:54:10]Write 4 bytes [09:54:10]NVStorageSaveData done [09:54:10]ExternCall_PrintAddStr [09:54:10]wPrintStart [09:54:10]Write to MH i2c: 01 00 00 9F 3A D9 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 07 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 07 00 9F 3A 00 00 00 00 00 FF 0F EE [09:54:10]RasterBufferAndPrint [09:54:10]line Счет N : (1)210207 [09:54:10]line ИНН: 02508201610067 [09:54:10]line Контрольно-Кассовый Чек [09:54:10]line ПРОДАЖА [09:54:10]line ТРК (МРК, ГНК) : 51 [09:54:10]line Товар: 2710194210 [09:54:10]line ДТ-К-5 [09:54:10]line 13.130 * 76.20 [09:54:10]line = 1000.51 [09:54:10]line НДС 12% НСП 1% [09:54:10]line > о реализуемом товаре [09:54:10]line ОКРУГЛЕНИЕ: -0.51 [09:54:10]line ИТОГО: 1000.00 [09:54:10]line Внесено: 1000.00 [09:54:10]line СДАЧА: 0.00 [09:54:10]line НСП 1% : 8.85 [09:54:10]line НДС 12% : 106.25 [09:54:10]line Наличными: 1000.00 [09:54:10]line Безнал.: 0.00 [09:54:10]line Место: АЗС № 86 "Партнер Нефть" [09:54:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:54:10]line СНО: Общий режим [09:54:10]line Чек 185 22.10.2024 09:54 [09:54:10]line Смена: 461 ФФД: 1.0 [09:54:10]line ЗНМ: 0300000155 [09:54:10]line РНМ: 0000000000100030 [09:54:10]line Версия ККМ: 001 [09:54:10]line ФМ: 0000000000965340 [09:54:10]line ФД: 188156 [09:54:10]line ФПД: 219519441383597 [09:54:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188156&fm=219519441383597&tin=02508201610067®Number=0000000000100030&sum=100000 [09:54:10]written 0, free lines is 4095 [09:54:10]OFD Sender: Processing packet 188156 [packets to send 1062, broken 1061] [09:54:10]ProducePacketName [09:54:10]name=ofd_packets/00188156 [09:54:10]OFD Sender: To server: pG, [09:54:10]CommunicateWithHost lk.salyk.kg:30040 [09:54:10]ConnectInit lk.salyk.kg [09:54:10]Write to MH i2c: 01 00 00 CA 3A 04 [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 07 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: 01 07 00 CA 3A 00 00 00 00 00 6A 0C 81 [09:54:10]RasterBufferAndPrint [09:54:10]line [09:54:10]line [09:54:10]line [09:54:10]line [09:54:10]line [09:54:10]written 0, free lines is 3181 [09:54:10]MH_Cut [09:54:10]Write to MH i2c: D1 01 00 D1 3A 01 DD [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: D1 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: D1 01 00 [09:54:10]MH_I2C_Read... [09:54:10]Read from MH i2c: D1 01 00 D1 3A 00 DC [09:54:10]Write to MH i2c: 01 00 00 D2 3A 0C [09:54:10]Write i2c OK [09:54:10]MH_I2C_Read... [09:54:10]Connected sock=11 [09:54:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F1 2D 04 01 1F 5B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 B9 00 00 00 F4 03 04 00 43 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DE 02 00 35 04 06 00 C7 A6 DA 53 30 AD B0 4F E7 D0 3E 2F E7 AA [09:54:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 4E 47 00 04 82 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DE 02 00 F4 03 04 00 31 20 17 67 B6 04 01 00 00 A9 6B 76 5E E9 03 DE 77 [09:54:11]CommunicateWithHost err = 0 [09:54:11]CheckOFDResponse [09:54:11]1017 (14) - 77093643461234 [09:54:11]1041 (16) - 0000000000965340 [09:54:11]1040 (4) - 188156 [09:54:11]1012 (4) - 22.10.2024 03:46 [09:54:11]1206 (1) - 0 [09:54:11]OFD Sender: Remove packet 188156 [09:54:11]ProducePacketName [09:54:11]name=ofd_packets/00188156 [09:54:11]NVStorageDeleteData [09:54:11]OFD Sender: No OFD packet to send [09:54:11]*** Cut start [09:54:11]*** Partial cut [09:54:11]*** CUTSNS_PIN = 1 [09:54:11]*** CUTSNS_PIN = 0 [09:54:12]*** Brake cut motor [09:54:12]Read from MH i2c: 01 [09:54:12]MH_I2C_Read... [09:54:12]*** Stop cut motor [09:54:12]*** Cut end [09:54:12]Read from MH i2c: 01 07 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: 01 07 00 D2 3A 00 00 00 00 00 FF 0F 21 [09:54:12]process_action close_receipt done [09:54:12]requested_data is exist [09:54:12]produce_requested_data [09:54:12]requested_item fm.sn is exist - process it [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 11 00 00 [09:54:12]Write to MH i2c: E2 08 00 D3 3A 80 11 00 00 00 00 00 00 87 [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 17 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 17 00 D3 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [09:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:54:12]wFMCommunicate OK [09:54:12]requested_item fd.num is exist - process it [09:54:12]SAM_PROTO_GetFieldsCounters [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 13 00 00 [09:54:12]Write to MH i2c: E2 08 00 D4 3A 80 13 00 00 00 00 00 00 8A [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 62 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 62 00 D4 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [09:54:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B9 00 00 00 5E 04 04 00 B9 00 00 00 57 04 04 00 BA 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:54:12]wFMCommunicate OK [09:54:12]SAM_PROTO_GetFieldsCounters done [09:54:12]requested_item shift.num is exist - process it [09:54:12]requested_item shift.opened is exist - process it [09:54:12]req_shift_opened [09:54:12]FM_GetShiftState [09:54:12]SAM_PROTO_GetShiftState [09:54:12]wFMCommunicate request_size=4 [09:54:12]MH_SAM_APDU [09:54:12]CAPDU: 80 13 01 00 [09:54:12]Write to MH i2c: E2 08 00 D5 3A 80 13 01 00 00 00 00 00 8C [09:54:12]Write i2c OK [09:54:12]MH_I2C_Read... [09:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:54:12]Read from MH i2c: E2 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 0E 00 [09:54:12]MH_I2C_Read... [09:54:12]Read from MH i2c: E2 0E 00 D5 3A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 81 [09:54:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:54:12]wFMCommunicate OK [09:54:12]SAM_PROTO_GetShiftState done [09:54:12]FM_GetShiftState done [09:54:12]req_shift_opened done [09:54:12]requested_item shift.open_date is exist - process it [09:54:12]req_shift_open_date [09:54:12]req_shift_open_date done [09:54:12]produce_requested_data done [09:54:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188156,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:54:12]process_action_free close_receipt [09:54:12]json_value_free [09:54:12]json_value_free done [09:54:12]process_json_proto returns [09:54:12]Send response to host [09:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188156,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:54:12]free response buf [09:54:12]execute_script done [09:54:12]execute_script returns [09:54:12]free content buf [09:54:12]Sock 9.Close socket [09:54:12]Sock 9.Thread stoped [09:54:16]OFD Sender: No OFD packet to send [09:54:21]OFD Sender: No OFD packet to send [09:54:26]OFD Sender: No OFD packet to send [09:54:31]OFD Sender: No OFD packet to send [09:54:36]OFD Sender: No OFD packet to send [09:54:41]OFD Sender: No OFD packet to send [09:54:46]OFD Sender: No OFD packet to send [09:54:51]OFD Sender: No OFD packet to send [09:54:56]OFD Sender: No OFD packet to send [09:55:01]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:19]accept exits with 8 [09:55:19]New connection [09:55:19]New thread 3067055460 created [09:55:19]Thread 3067198820 joined [09:55:19]Waiting for new connection... [09:55:19] Sock 8.Parse request [09:55:19]Sock 8.Check first char [09:55:19]Sock 8.First char is OK [09:55:19]request: POST /json_proto HTTP/1.0 [09:55:19]Method: POST [09:55:19]URL: /json_proto [09:55:19]Method is POST - this is cgi request [09:55:19]url: /json_proto [09:55:19]query_string will be loaded in cgi processing [09:55:19]execute_cgi json_proto POST (null) [09:55:19]execute_cgi path=json_proto method=POST [09:55:19]POST find Content-Length [09:55:19]Host: 172.17.42.131:8080 [09:55:19]Content-Length: 754 [09:55:19]Content-Type: application/json [09:55:19] [09:55:19]POST finish read [09:55:19]Found Content-Length = 754 [09:55:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119053", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:19]execute_script... [09:55: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)210208", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 0.00, "quantity" : 35.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30119053", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:19]POST & json_proto [09:55:19]process_json_proto [09:55:19]json parsed OK: [09:55:19]protocol is kg_v1.0 [09:55:19]action value=close_receipt [09:55:19]process_action close_receipt [09:55:19]cmd_close_receipt [09:55:19]MH_GetDate [09:55:19]Write to MH i2c: F0 00 00 D6 3A FF [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: F0 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: F0 09 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: F0 09 00 D6 3A 00 8A 76 17 67 A0 18 CA 66 6E [09:55:19]GetLastDocTimeStamp 1729590851 [09:55:19]current date 1729590922 [09:55:19]FM_GetShiftState [09:55:19]SAM_PROTO_GetShiftState [09:55:19]wFMCommunicate request_size=4 [09:55:19]MH_SAM_APDU [09:55:19]CAPDU: 80 13 01 00 [09:55:19]Write to MH i2c: E2 08 00 D7 3A 80 13 01 00 00 00 00 00 8E [09:55:19]Write i2c OK [09:55:19]MH_I2C_Read... [09:55:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:19]Read from MH i2c: E2 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 0E 00 [09:55:19]MH_I2C_Read... [09:55:19]Read from MH i2c: E2 0E 00 D7 3A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [09:55:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:55:19]wFMCommunicate OK [09:55:19]SAM_PROTO_GetShiftState done [09:55:19]FM_GetShiftState done [09:55:19]opened in 1729556094 [09:55:19]opened+sec_in_day 1729642494 [09:55:19]quantity*price = 0 [09:55:19]sum+1 = 1 [09:55:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 186 22.10.2024 09:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30119053 ФМ: 0000000000965340 ФД: 188157 ФПД: 158720308951041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188157&fm=158720308951041&tin=02508201610067®Number=0000000000100030&sum=0 [09:55:20]StoreToDocumentArchive [09:55:20]shift 461 fd 188157 [09:55:20]save to /storage/0461/doc_00188157 [09:55:20]save last doc name /storage/0461/doc_00188157 to /storage/kkm_last_doc_name [09:55:20]save OK [09:55:20]Clear old archive folders... [09:55:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:55:20]tlvbuf is B6F16350 [09:55:20]SAM_PROTO_ClearQueue [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 09 00 00 [09:55:20]Write to MH i2c: E2 08 00 E4 3A 80 09 00 00 00 00 00 00 90 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 E4 3A 00 90 00 92 [09:55:20]RAPDU: 90 00 [09:55:20]wFMCommunicate OK [09:55:20]SAM_PROTO_ClearQueue done [09:55:20]KKMCreateOFDPacket [09:55:20]OFDProtocolAddRootSTLVToBuf [09:55:20]FM_MakeSignedData [09:55:20]FM_MakeSignedData [09:55:20]SAM_PROTO_SignData [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 0D 01 02 [09:55:20]Write to MH i2c: E2 08 00 E5 3A 80 0D 01 02 00 00 00 00 98 [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 E5 3A 00 90 00 93 [09:55:20]RAPDU: 90 00 [09:55:20]wFMCommunicate OK [09:55:20]wFMCommunicate request_size=255 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 8A 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DE 02 00 35 04 06 00 90 [09:55:20]Write to MH i2c: E2 02 01 E6 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 8A 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DE 02 00 35 04 06 00 90 00 00 3D [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 E6 3A 00 90 00 94 [09:55:20]RAPDU: 90 00 [09:55:20]wFMCommunicate OK [09:55:20]wFMCommunicate request_size=10 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 0D 02 02 05 5A F3 A2 38 01 [09:55:20]Write to MH i2c: E2 0D 00 E7 3A 80 0D 02 02 05 00 5A F3 A2 38 01 00 00 CD [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:20]Read from MH i2c: E2 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 [09:55:20]MH_I2C_Read... [09:55:20]Read from MH i2c: E2 03 00 E7 3A 00 90 00 95 [09:55:20]RAPDU: 90 00 [09:55:20]wFMCommunicate OK [09:55:20]wFMCommunicate request_size=4 [09:55:20]MH_SAM_APDU [09:55:20]CAPDU: 80 0D 03 02 [09:55:20]Write to MH i2c: E2 08 00 E8 3A 80 0D 03 02 00 00 00 00 9D [09:55:20]Write i2c OK [09:55:20]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0B 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 0B 00 E8 3A 00 93 7E 81 5E 09 B9 50 46 90 00 E6 [09:55:21]RAPDU: 93 7E 81 5E 09 B9 50 46 90 00 [09:55:21]wFMCommunicate OK [09:55:21]SAM_PROTO_SignData done [09:55:21]FM_MakeSignedData done [09:55:21]CreateOFDProtocolMessage [09:55:21]wFMCommunicate request_size=4 [09:55:21]MH_SAM_APDU [09:55:21]CAPDU: 80 11 00 00 [09:55:21]Write to MH i2c: E2 08 00 E9 3A 80 11 00 00 00 00 00 00 9D [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:21]Read from MH i2c: E2 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 17 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: E2 17 00 E9 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [09:55:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:55:21]wFMCommunicate OK [09:55:21]CreateOFDProtocolMessage done [09:55:21]OFDSenderStorePacket 188157 [09:55:21]StoreOFDPacket docnum=188157 [09:55:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8C 6F 07 01 2C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 8A 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DE 02 00 35 04 06 00 90 5A F3 A2 38 01 93 7E 81 5E 09 B9 50 46 [09:55:21]CheckFolder [09:55:21]dirname=/storage/ofd_packets [09:55:21]CheckFolder done [09:55:21]ProducePacketName [09:55:21]name=ofd_packets/00188157 [09:55:21]NVStorageSaveData ofd_packets/00188157 [09:55:21]File name is /storage/ofd_packets/00188157 [09:55:21]Write 301 bytes [09:55:21]NVStorageSaveData done [09:55:21]OFDSenderStorePacket done [09:55:21]KKMCreateOFDPacket done [09:55:21]NVStorageSaveData kkm_last_timestamp [09:55:21]File name is /storage/kkm_last_timestamp [09:55:21]Write 4 bytes [09:55:21]NVStorageSaveData done [09:55:21]ExternCall_PrintAddStr [09:55:21]wPrintStart [09:55:21]Write to MH i2c: 01 00 00 EA 3A 24 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 EA 3A 00 00 00 00 00 FF 0F 39 [09:55:21]RasterBufferAndPrint [09:55:21]line Счет N : (1)210208 [09:55:21]line ИНН: 02508201610067 [09:55:21]line Контрольно-Кассовый Чек [09:55:21]line ПРОДАЖА [09:55:21]line ТРК (МРК, ГНК) : 23 [09:55:21]line Товар: 2710124500 [09:55:21]line Аи-95-К-3 [09:55:21]line 35.000 * 0.00 [09:55:21]line = 0.00 [09:55:21]line НДС 12% НСП 1% [09:55:21]line > о реализуемом товаре [09:55:21]line ИТОГО: 0.00 [09:55:21]line НСП 1% : 0.00 [09:55:21]line НДС 12% : 0.00 [09:55:21]line Наличными: 0.00 [09:55:21]line Безнал.: 0.00 [09:55:21]line Место: АЗС № 86 "Партнер Нефть" [09:55:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:55:21]line СНО: Общий режим [09:55:21]line Чек 186 22.10.2024 09:55 [09:55:21]line Смена: 461 ФФД: 1.0 [09:55:21]line ЗНМ: 0300000155 [09:55:21]line РНМ: 0000000000100030 [09:55:21]line Версия ККМ: 001 [09:55:21]line Талоны: ТК ГПНА Online [09:55:21]line 30119053 [09:55:21]line ФМ: 0000000000965340 [09:55:21]line ФД: 188157 [09:55:21]line ФПД: 158720308951041 [09:55:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188157&fm=158720308951041&tin=02508201610067®Number=0000000000100030&sum=0 [09:55:21]written 0, free lines is 4095 [09:55:21]OFD Sender: Processing packet 188157 [packets to send 1062, broken 1061] [09:55:21]ProducePacketName [09:55:21]name=ofd_packets/00188157 [09:55:21]OFD Sender: To server: pG, [09:55:21]CommunicateWithHost lk.salyk.kg:30040 [09:55:21]ConnectInit lk.salyk.kg [09:55:21]Connected sock=10 [09:55:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8C 6F 07 01 2C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 B8 88 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 00 00 00 F4 03 04 00 8A 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DE 02 00 35 04 06 00 90 5A F3 A2 38 01 93 7E 81 5E 09 B9 50 46 [09:55:21]Write to MH i2c: 01 00 00 14 3B 4F [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: 01 07 00 14 3B 00 00 00 00 00 77 0C D9 [09:55:21]RasterBufferAndPrint [09:55:21]line [09:55:21]line [09:55:21]line [09:55:21]line [09:55:21]line [09:55:21]written 0, free lines is 3196 [09:55:21]MH_Cut [09:55:21]Write to MH i2c: D1 01 00 1B 3B 01 28 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: D1 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: D1 01 00 [09:55:21]MH_I2C_Read... [09:55:21]Read from MH i2c: D1 01 00 1B 3B 00 27 [09:55:21]Write to MH i2c: 01 00 00 1C 3B 57 [09:55:21]Write i2c OK [09:55:21]MH_I2C_Read... [09:55:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C9 29 47 00 47 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 39 36 35 33 34 30 10 04 04 00 FD DE 02 00 F4 03 04 00 77 20 17 67 B6 04 01 00 00 D5 93 BA 9C DD B8 26 34 [09:55:21]CommunicateWithHost err = 0 [09:55:21]CheckOFDResponse [09:55:21]1017 (14) - 77093643461234 [09:55:21]1041 (16) - 0000000000965340 [09:55:21]1040 (4) - 188157 [09:55:21]1012 (4) - 22.10.2024 03:48 [09:55:21]1206 (1) - 0 [09:55:21]OFD Sender: Remove packet 188157 [09:55:21]ProducePacketName [09:55:21]name=ofd_packets/00188157 [09:55:21]NVStorageDeleteData [09:55:22]OFD Sender: No OFD packet to send [09:55:22]*** Cut start [09:55:22]*** Partial cut [09:55:22]*** CUTSNS_PIN = 1 [09:55:22]*** CUTSNS_PIN = 0 [09:55:23]*** Brake cut motor [09:55:23]Read from MH i2c: 01 [09:55:23]MH_I2C_Read... [09:55:23]*** Stop cut motor [09:55:23]*** Cut end [09:55:23]Read from MH i2c: 01 07 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: 01 07 00 1C 3B 00 00 00 00 00 FF 0F 6C [09:55:23]process_action close_receipt done [09:55:23]requested_data is exist [09:55:23]produce_requested_data [09:55:23]requested_item fm.sn is exist - process it [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 11 00 00 [09:55:23]Write to MH i2c: E2 08 00 1D 3B 80 11 00 00 00 00 00 00 D2 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 17 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 17 00 1D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [09:55:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:55:23]wFMCommunicate OK [09:55:23]requested_item fd.num is exist - process it [09:55:23]SAM_PROTO_GetFieldsCounters [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 13 00 00 [09:55:23]Write to MH i2c: E2 08 00 1E 3B 80 13 00 00 00 00 00 00 D5 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 62 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 62 00 1E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [09:55:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BA 00 00 00 5E 04 04 00 BA 00 00 00 57 04 04 00 BB 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_GetFieldsCounters done [09:55:23]requested_item shift.num is exist - process it [09:55:23]requested_item shift.opened is exist - process it [09:55:23]req_shift_opened [09:55:23]FM_GetShiftState [09:55:23]SAM_PROTO_GetShiftState [09:55:23]wFMCommunicate request_size=4 [09:55:23]MH_SAM_APDU [09:55:23]CAPDU: 80 13 01 00 [09:55:23]Write to MH i2c: E2 08 00 1F 3B 80 13 01 00 00 00 00 00 D7 [09:55:23]Write i2c OK [09:55:23]MH_I2C_Read... [09:55:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:23]Read from MH i2c: E2 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0E 00 [09:55:23]MH_I2C_Read... [09:55:23]Read from MH i2c: E2 0E 00 1F 3B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CC [09:55:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:55:23]wFMCommunicate OK [09:55:23]SAM_PROTO_GetShiftState done [09:55:23]FM_GetShiftState done [09:55:23]req_shift_opened done [09:55:23]requested_item shift.open_date is exist - process it [09:55:23]req_shift_open_date [09:55:23]req_shift_open_date done [09:55:23]produce_requested_data done [09:55:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188157,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:55:23]process_action_free close_receipt [09:55:23]json_value_free [09:55:23]json_value_free done [09:55:23]process_json_proto returns [09:55:23]Send response to host [09:55:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188157,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:55:23]free response buf [09:55:23]execute_script done [09:55:23]execute_script returns [09:55:23]free content buf [09:55:23]Sock 8.Close socket [09:55:23]Sock 8.Thread stoped [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:40]accept exits with 9 [09:55:40]New connection [09:55:40]New thread 3067198820 created [09:55:40]Thread 3067055460 joined [09:55:40]Waiting for new connection... [09:55:40] Sock 9.Parse request [09:55:40]Sock 9.Check first char [09:55:40]Sock 9.First char is OK [09:55:40]request: POST /json_proto HTTP/1.0 [09:55:40]Method: POST [09:55:40]URL: /json_proto [09:55:40]Method is POST - this is cgi request [09:55:40]url: /json_proto [09:55:40]query_string will be loaded in cgi processing [09:55:40]execute_cgi json_proto POST (null) [09:55:40]execute_cgi path=json_proto method=POST [09:55:40]POST find Content-Length [09:55:40]Host: 172.17.42.131:8080 [09:55:40]Content-Length: 688 [09:55:40]Content-Type: application/json [09:55:40] [09:55:40]POST finish read [09:55:40]Found Content-Length = 688 [09:55:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:40]execute_script... [09:55: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)210209", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:55:40]POST & json_proto [09:55:40]process_json_proto [09:55:40]json parsed OK: [09:55:40]protocol is kg_v1.0 [09:55:40]action value=close_receipt [09:55:40]process_action close_receipt [09:55:40]cmd_close_receipt [09:55:40]MH_GetDate [09:55:40]Write to MH i2c: F0 00 00 20 3B 4A [09:55:40]Write i2c OK [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: F0 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: F0 09 00 [09:55:40]MH_I2C_Read... [09:55:40]Read from MH i2c: F0 09 00 20 3B 00 9F 76 17 67 A0 18 CA 66 CE [09:55:40]GetLastDocTimeStamp 1729590922 [09:55:40]current date 1729590943 [09:55:40]FM_GetShiftState [09:55:40]SAM_PROTO_GetShiftState [09:55:40]wFMCommunicate request_size=4 [09:55:40]MH_SAM_APDU [09:55:40]CAPDU: 80 13 01 00 [09:55:40]Write to MH i2c: E2 08 00 21 3B 80 13 01 00 00 00 00 00 D9 [09:55:40]Write i2c OK [09:55:40]MH_I2C_Read... [09:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:41]Read from MH i2c: E2 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 0E 00 [09:55:41]MH_I2C_Read... [09:55:41]Read from MH i2c: E2 0E 00 21 3B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [09:55:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:55:41]wFMCommunicate OK [09:55:41]SAM_PROTO_GetShiftState done [09:55:41]FM_GetShiftState done [09:55:41]opened in 1729556094 [09:55:41]opened+sec_in_day 1729642494 [09:55:41]quantity*price = 150076 [09:55:41]sum+1 = 150078 [09:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 187 22.10.2024 09:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188158 ФПД: 205473968521683 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188158&fm=205473968521683&tin=02508201610067®Number=0000000000100030&sum=150000 [09:55:42]StoreToDocumentArchive [09:55:42]shift 461 fd 188158 [09:55:42]save to /storage/0461/doc_00188158 [09:55:42]save last doc name /storage/0461/doc_00188158 to /storage/kkm_last_doc_name [09:55:42]save OK [09:55:42]Clear old archive folders... [09:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [09:55:42]tlvbuf is 01BAD7A0 [09:55:42]SAM_PROTO_ClearQueue [09:55:42]wFMCommunicate request_size=4 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 09 00 00 [09:55:42]Write to MH i2c: E2 08 00 2E 3B 80 09 00 00 00 00 00 00 DB [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 2E 3B 00 90 00 DD [09:55:42]RAPDU: 90 00 [09:55:42]wFMCommunicate OK [09:55:42]SAM_PROTO_ClearQueue done [09:55:42]KKMCreateOFDPacket [09:55:42]OFDProtocolAddRootSTLVToBuf [09:55:42]FM_MakeSignedData [09:55:42]FM_MakeSignedData [09:55:42]SAM_PROTO_SignData [09:55:42]wFMCommunicate request_size=4 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 0D 01 02 [09:55:42]Write to MH i2c: E2 08 00 2F 3B 80 0D 01 02 00 00 00 00 E3 [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 2F 3B 00 90 00 DE [09:55:42]RAPDU: 90 00 [09:55:42]wFMCommunicate OK [09:55:42]wFMCommunicate request_size=255 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 BB 00 00 00 F4 03 04 00 9F 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DE 02 [09:55:42]Write to MH i2c: E2 02 01 30 3B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 BB 00 00 00 F4 03 04 00 9F 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DE 02 00 00 8C [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]OFD Sender: No OFD packet to send [09:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 30 3B 00 90 00 DF [09:55:42]RAPDU: 90 00 [09:55:42]wFMCommunicate OK [09:55:42]wFMCommunicate request_size=16 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA E0 A2 E7 81 D3 [09:55:42]Write to MH i2c: E2 13 00 31 3B 80 0D 02 02 0B 00 00 35 04 06 00 BA E0 A2 E7 81 D3 00 00 B2 [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 03 00 31 3B 00 90 00 E0 [09:55:42]RAPDU: 90 00 [09:55:42]wFMCommunicate OK [09:55:42]wFMCommunicate request_size=4 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 0D 03 02 [09:55:42]Write to MH i2c: E2 08 00 32 3B 80 0D 03 02 00 00 00 00 E8 [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 0B 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 0B 00 32 3B 00 47 BE 35 52 A4 C8 96 19 90 00 90 [09:55:42]RAPDU: 47 BE 35 52 A4 C8 96 19 90 00 [09:55:42]wFMCommunicate OK [09:55:42]SAM_PROTO_SignData done [09:55:42]FM_MakeSignedData done [09:55:42]CreateOFDProtocolMessage [09:55:42]wFMCommunicate request_size=4 [09:55:42]MH_SAM_APDU [09:55:42]CAPDU: 80 11 00 00 [09:55:42]Write to MH i2c: E2 08 00 33 3B 80 11 00 00 00 00 00 00 E8 [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:42]Read from MH i2c: E2 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 17 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: E2 17 00 33 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [09:55:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:55:42]wFMCommunicate OK [09:55:42]CreateOFDProtocolMessage done [09:55:42]OFDSenderStorePacket 188158 [09:55:42]StoreOFDPacket docnum=188158 [09:55:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DA E3 0D 01 69 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 BB 00 00 00 F4 03 04 00 9F 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DE 02 00 35 04 06 00 BA E0 A2 E7 81 D3 47 BE 35 52 A4 C8 96 19 [09:55:42]CheckFolder [09:55:42]dirname=/storage/ofd_packets [09:55:42]CheckFolder done [09:55:42]ProducePacketName [09:55:42]name=ofd_packets/00188158 [09:55:42]NVStorageSaveData ofd_packets/00188158 [09:55:42]File name is /storage/ofd_packets/00188158 [09:55:42]Write 307 bytes [09:55:42]NVStorageSaveData done [09:55:42]OFDSenderStorePacket done [09:55:42]KKMCreateOFDPacket done [09:55:42]NVStorageSaveData kkm_last_timestamp [09:55:42]File name is /storage/kkm_last_timestamp [09:55:42]Write 4 bytes [09:55:42]NVStorageSaveData done [09:55:42]ExternCall_PrintAddStr [09:55:42]wPrintStart [09:55:42]Write to MH i2c: 01 00 00 34 3B 6F [09:55:42]Write i2c OK [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: 01 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: 01 07 00 [09:55:42]MH_I2C_Read... [09:55:42]Read from MH i2c: 01 07 00 34 3B 00 00 00 00 00 FF 0F 84 [09:55:42]RasterBufferAndPrint [09:55:42]line Счет N : (1)210209 [09:55:42]line ИНН: 02508201610067 [09:55:42]line Контрольно-Кассовый Чек [09:55:42]line ПРОДАЖА [09:55:42]line ТРК (МРК, ГНК) : 41 [09:55:42]line Товар: 2710194210 [09:55:42]line D-ENERGY ДТ-К-5 [09:55:42]line 19.440 * 77.20 [09:55:42]line = 1500.77 [09:55:42]line НДС 12% НСП 1% [09:55:42]line > о реализуемом товаре [09:55:42]line ОКРУГЛЕНИЕ: -0.77 [09:55:42]line ИТОГО: 1500.00 [09:55:42]line Внесено: 1500.00 [09:55:42]line СДАЧА: 0.00 [09:55:42]line НСП 1% : 13.28 [09:55:42]line НДС 12% : 159.37 [09:55:42]line Наличными: 1500.00 [09:55:42]line Безнал.: 0.00 [09:55:42]line Место: АЗС № 86 "Партнер Нефть" [09:55:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:55:42]line СНО: Общий режим [09:55:42]line Чек 187 22.10.2024 09:55 [09:55:42]line Смена: 461 ФФД: 1.0 [09:55:42]line ЗНМ: 0300000155 [09:55:42]line РНМ: 0000000000100030 [09:55:42]line Версия ККМ: 001 [09:55:42]line ФМ: 0000000000965340 [09:55:42]line ФД: 188158 [09:55:42]line ФПД: 205473968521683 [09:55:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T095543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188158&fm=205473968521683&tin=02508201610067®Number=0000000000100030&sum=150000 [09:55:42]written 0, free lines is 4095 [09:55:42]OFD Sender: Processing packet 188158 [packets to send 1062, broken 1061] [09:55:42]ProducePacketName [09:55:42]name=ofd_packets/00188158 [09:55:42]OFD Sender: To server: pG, [09:55:42]CommunicateWithHost lk.salyk.kg:30040 [09:55:42]ConnectInit lk.salyk.kg [09:55:43]Connected sock=8 [09:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DA E3 0D 01 69 35 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 BB 00 00 00 F4 03 04 00 9F 76 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DE 02 00 35 04 06 00 BA E0 A2 E7 81 D3 47 BE 35 52 A4 C8 96 19 [09:55:43]Write to MH i2c: 01 00 00 5F 3B 9A [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: 01 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: 01 07 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: 01 07 00 5F 3B 00 00 00 00 00 68 0C 15 [09:55:43]RasterBufferAndPrint [09:55:43]line [09:55:43]line [09:55:43]line [09:55:43]line [09:55:43]line [09:55:43]written 0, free lines is 3180 [09:55:43]MH_Cut [09:55:43]Write to MH i2c: D1 01 00 66 3B 01 73 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: D1 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: D1 01 00 [09:55:43]MH_I2C_Read... [09:55:43]Read from MH i2c: D1 01 00 66 3B 00 72 [09:55:43]Write to MH i2c: 01 00 00 67 3B A2 [09:55:43]Write i2c OK [09:55:43]MH_I2C_Read... [09:55:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CE 21 47 00 5D 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DE 02 00 F4 03 04 00 8D 20 17 67 B6 04 01 00 00 F4 54 BC DC 98 A5 AE 12 [09:55:43]CommunicateWithHost err = 0 [09:55:43]CheckOFDResponse [09:55:43]1017 (14) - 77093643461234 [09:55:43]1041 (16) - 0000000000965340 [09:55:43]1040 (4) - 188158 [09:55:43]1012 (4) - 22.10.2024 03:48 [09:55:43]1206 (1) - 0 [09:55:43]OFD Sender: Remove packet 188158 [09:55:43]ProducePacketName [09:55:43]name=ofd_packets/00188158 [09:55:43]NVStorageDeleteData [09:55:43]OFD Sender: No OFD packet to send [09:55:44]*** Cut start [09:55:44]*** Partial cut [09:55:44]*** CUTSNS_PIN = 1 [09:55:44]*** CUTSNS_PIN = 0 [09:55:44]*** Brake cut motor [09:55:45]Read from MH i2c: 01 [09:55:45]MH_I2C_Read... [09:55:45]*** Stop cut motor [09:55:45]*** Cut end [09:55:45]Read from MH i2c: 01 07 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: 01 07 00 67 3B 00 00 00 00 00 FF 0F B7 [09:55:45]process_action close_receipt done [09:55:45]requested_data is exist [09:55:45]produce_requested_data [09:55:45]requested_item fm.sn is exist - process it [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 11 00 00 [09:55:45]Write to MH i2c: E2 08 00 68 3B 80 11 00 00 00 00 00 00 1D [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 17 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 17 00 68 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6B [09:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:55:45]wFMCommunicate OK [09:55:45]requested_item fd.num is exist - process it [09:55:45]SAM_PROTO_GetFieldsCounters [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 13 00 00 [09:55:45]Write to MH i2c: E2 08 00 69 3B 80 13 00 00 00 00 00 00 20 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 62 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 62 00 69 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 04 [09:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BB 00 00 00 5E 04 04 00 BB 00 00 00 57 04 04 00 BC 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:55:45]wFMCommunicate OK [09:55:45]SAM_PROTO_GetFieldsCounters done [09:55:45]requested_item shift.num is exist - process it [09:55:45]requested_item shift.opened is exist - process it [09:55:45]req_shift_opened [09:55:45]FM_GetShiftState [09:55:45]SAM_PROTO_GetShiftState [09:55:45]wFMCommunicate request_size=4 [09:55:45]MH_SAM_APDU [09:55:45]CAPDU: 80 13 01 00 [09:55:45]Write to MH i2c: E2 08 00 6A 3B 80 13 01 00 00 00 00 00 22 [09:55:45]Write i2c OK [09:55:45]MH_I2C_Read... [09:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:55:45]Read from MH i2c: E2 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0E 00 [09:55:45]MH_I2C_Read... [09:55:45]Read from MH i2c: E2 0E 00 6A 3B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 17 [09:55:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:55:45]wFMCommunicate OK [09:55:45]SAM_PROTO_GetShiftState done [09:55:45]FM_GetShiftState done [09:55:45]req_shift_opened done [09:55:45]requested_item shift.open_date is exist - process it [09:55:45]req_shift_open_date [09:55:45]req_shift_open_date done [09:55:45]produce_requested_data done [09:55:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188158,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [09:55:45]process_action_free close_receipt [09:55:45]json_value_free [09:55:45]json_value_free done [09:55:45]process_json_proto returns [09:55:45]Send response to host [09:55:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188158,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [09:55:45]free response buf [09:55:45]execute_script done [09:55:45]execute_script returns [09:55:45]free content buf [09:55:45]Sock 9.Close socket [09:55:45]Sock 9.Thread stoped [09:55:48]OFD Sender: No OFD packet to send [09:55:53]OFD Sender: No OFD packet to send [09:55:58]OFD Sender: No OFD packet to send [09:56:04]OFD Sender: No OFD packet to send [09:56:09]OFD Sender: No OFD packet to send [09:56:14]OFD Sender: No OFD packet to send [09:56:19]OFD Sender: No OFD packet to send [09:56:24]OFD Sender: No OFD packet to send [09:56:29]OFD Sender: No OFD packet to send [09:56:34]OFD Sender: No OFD packet to send [09:56:39]OFD Sender: No OFD packet to send [09:56:44]OFD Sender: No OFD packet to send [09:56:49]OFD Sender: No OFD packet to send [09:56:54]OFD Sender: No OFD packet to send [09:56:59]OFD Sender: No OFD packet to send [09:57:04]OFD Sender: No OFD packet to send [09:57:09]OFD Sender: No OFD packet to send [09:57:14]OFD Sender: No OFD packet to send [09:57:19]OFD Sender: No OFD packet to send [09:57:24]OFD Sender: No OFD packet to send [09:57:29]OFD Sender: No OFD packet to send [09:57:34]OFD Sender: No OFD packet to send [09:57:39]OFD Sender: No OFD packet to send [09:57:44]OFD Sender: No OFD packet to send [09:57:49]OFD Sender: No OFD packet to send [09:57:54]OFD Sender: No OFD packet to send [09:57:59]OFD Sender: No OFD packet to send [09:58:04]OFD Sender: No OFD packet to send [09:58:09]OFD Sender: No OFD packet to send [09:58:14]OFD Sender: No OFD packet to send [09:58:19]OFD Sender: No OFD packet to send [09:58:24]OFD Sender: No OFD packet to send [09:58:29]OFD Sender: No OFD packet to send [09:58:34]OFD Sender: No OFD packet to send [09:58:39]OFD Sender: No OFD packet to send [09:58:44]OFD Sender: No OFD packet to send [09:58:49]OFD Sender: No OFD packet to send [09:58:54]OFD Sender: No OFD packet to send [09:58:59]OFD Sender: No OFD packet to send [09:59:04]OFD Sender: No OFD packet to send [09:59:09]OFD Sender: No OFD packet to send [09:59:14]OFD Sender: No OFD packet to send [09:59:19]OFD Sender: No OFD packet to send [09:59:24]OFD Sender: No OFD packet to send [09:59:29]OFD Sender: No OFD packet to send [09:59:34]OFD Sender: No OFD packet to send [09:59:39]OFD Sender: No OFD packet to send [09:59:44]OFD Sender: No OFD packet to send [09:59:50]OFD Sender: No OFD packet to send [09:59:55]OFD Sender: No OFD packet to send [09:59:58]accept exits with 10 [09:59:58]New connection [09:59:58]New thread 3067055460 created [09:59:58]Thread 3067198820 joined [09:59:58]Waiting for new connection... [09:59:58] Sock 10.Parse request [09:59:58]Sock 10.Check first char [09:59:58]Sock 10.First char is OK [09:59:58]request: POST /json_proto HTTP/1.0 [09:59:58]Method: POST [09:59:58]URL: /json_proto [09:59:58]Method is POST - this is cgi request [09:59:58]url: /json_proto [09:59:58]query_string will be loaded in cgi processing [09:59:58]execute_cgi json_proto POST (null) [09:59:58]execute_cgi path=json_proto method=POST [09:59:58]POST find Content-Length [09:59:58]Host: 172.17.42.131:8080 [09:59:58]Content-Length: 682 [09:59:58]Content-Type: application/json [09:59:58] [09:59:58]POST finish read [09:59:58]Found Content-Length = 682 [09:59:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:58]execute_script... [09:59: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)210210", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:59:58]POST & json_proto [09:59:58]process_json_proto [09:59:58]json parsed OK: [09:59:58]protocol is kg_v1.0 [09:59:58]action value=close_receipt [09:59:58]process_action close_receipt [09:59:58]cmd_close_receipt [09:59:58]MH_GetDate [09:59:58]Write to MH i2c: F0 00 00 6B 3B 95 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: F0 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: F0 09 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: F0 09 00 6B 3B 00 A0 77 17 67 A0 18 CA 66 1B [09:59:58]GetLastDocTimeStamp 1729590943 [09:59:58]current date 1729591200 [09:59:58]FM_GetShiftState [09:59:58]SAM_PROTO_GetShiftState [09:59:58]wFMCommunicate request_size=4 [09:59:58]MH_SAM_APDU [09:59:58]CAPDU: 80 13 01 00 [09:59:58]Write to MH i2c: E2 08 00 6C 3B 80 13 01 00 00 00 00 00 24 [09:59:58]Write i2c OK [09:59:58]MH_I2C_Read... [09:59:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:59:58]Read from MH i2c: E2 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 0E 00 [09:59:58]MH_I2C_Read... [09:59:58]Read from MH i2c: E2 0E 00 6C 3B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 19 [09:59:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [09:59:58]wFMCommunicate OK [09:59:58]SAM_PROTO_GetShiftState done [09:59:58]FM_GetShiftState done [09:59:58]opened in 1729556094 [09:59:58]opened+sec_in_day 1729642494 [09:59:58]quantity*price = 100015 [09:59:58]sum+1 = 100017 [09:59:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 188 22.10.2024 10:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188159 ФПД: 1419833215330 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100000&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188159&fm=1419833215330&tin=02508201610067®Number=0000000000100030&sum=100000 [09:59:59]StoreToDocumentArchive [09:59:59]shift 461 fd 188159 [09:59:59]save to /storage/0461/doc_00188159 [09:59:59]save last doc name /storage/0461/doc_00188159 to /storage/kkm_last_doc_name [09:59:59]save OK [09:59:59]Clear old archive folders... [09:59:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:59:59]tlvbuf is 01CDE720 [09:59:59]SAM_PROTO_ClearQueue [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 09 00 00 [09:59:59]Write to MH i2c: E2 08 00 79 3B 80 09 00 00 00 00 00 00 26 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 79 3B 00 90 00 28 [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]SAM_PROTO_ClearQueue done [09:59:59]KKMCreateOFDPacket [09:59:59]OFDProtocolAddRootSTLVToBuf [09:59:59]FM_MakeSignedData [09:59:59]FM_MakeSignedData [09:59:59]SAM_PROTO_SignData [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 0D 01 02 [09:59:59]Write to MH i2c: E2 08 00 7A 3B 80 0D 01 02 00 00 00 00 2E [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 7A 3B 00 90 00 29 [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]wFMCommunicate request_size=255 [09:59:59]MH_SAM_APDU [09:59: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DE 02 00 35 04 06 00 01 [09:59:59]Write to MH i2c: E2 02 01 7B 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DE 02 00 35 04 06 00 01 00 00 9A [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 7B 3B 00 90 00 2A [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]wFMCommunicate request_size=10 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 0D 02 02 05 4A 94 A7 89 62 [09:59:59]Write to MH i2c: E2 0D 00 7C 3B 80 0D 02 02 05 00 4A 94 A7 89 62 00 00 AB [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 03 00 7C 3B 00 90 00 2B [09:59:59]RAPDU: 90 00 [09:59:59]wFMCommunicate OK [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 0D 03 02 [09:59:59]Write to MH i2c: E2 08 00 7D 3B 80 0D 03 02 00 00 00 00 33 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 0B 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 0B 00 7D 3B 00 9F 97 96 F4 0E 91 E4 D9 90 00 50 [09:59:59]RAPDU: 9F 97 96 F4 0E 91 E4 D9 90 00 [09:59:59]wFMCommunicate OK [09:59:59]SAM_PROTO_SignData done [09:59:59]FM_MakeSignedData done [09:59:59]CreateOFDProtocolMessage [09:59:59]wFMCommunicate request_size=4 [09:59:59]MH_SAM_APDU [09:59:59]CAPDU: 80 11 00 00 [09:59:59]Write to MH i2c: E2 08 00 7E 3B 80 11 00 00 00 00 00 00 33 [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:59:59]Read from MH i2c: E2 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 17 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: E2 17 00 7E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [09:59:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [09:59:59]wFMCommunicate OK [09:59:59]CreateOFDProtocolMessage done [09:59:59]OFDSenderStorePacket 188159 [09:59:59]StoreOFDPacket docnum=188159 [09:59:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 8F 07 01 6A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DE 02 00 35 04 06 00 01 4A 94 A7 89 62 9F 97 96 F4 0E 91 E4 D9 [09:59:59]CheckFolder [09:59:59]dirname=/storage/ofd_packets [09:59:59]CheckFolder done [09:59:59]ProducePacketName [09:59:59]name=ofd_packets/00188159 [09:59:59]NVStorageSaveData ofd_packets/00188159 [09:59:59]File name is /storage/ofd_packets/00188159 [09:59:59]Write 301 bytes [09:59:59]NVStorageSaveData done [09:59:59]OFDSenderStorePacket done [09:59:59]KKMCreateOFDPacket done [09:59:59]NVStorageSaveData kkm_last_timestamp [09:59:59]File name is /storage/kkm_last_timestamp [09:59:59]Write 4 bytes [09:59:59]NVStorageSaveData done [09:59:59]ExternCall_PrintAddStr [09:59:59]wPrintStart [09:59:59]Write to MH i2c: 01 00 00 7F 3B BA [09:59:59]Write i2c OK [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 [09:59:59]MH_I2C_Read... [09:59:59]Read from MH i2c: 01 07 00 7F 3B 00 00 00 00 00 FF 0F CF [09:59:59]RasterBufferAndPrint [09:59:59]line Счет N : (1)210210 [09:59:59]line ИНН: 02508201610067 [09:59:59]line Контрольно-Кассовый Чек [09:59:59]line ПРОДАЖА [09:59:59]line ТРК (МРК, ГНК) : 32 [09:59:59]line Товар: 2710124130 [09:59:59]line Аи-92-К-3 [09:59:59]line 14.950 * 66.90 [09:59:59]line = 1000.16 [09:59:59]line НДС 12% НСП 1% [09:59:59]line > о реализуемом товаре [09:59:59]line ОКРУГЛЕНИЕ: -0.16 [09:59:59]line ИТОГО: 1000.00 [09:59:59]line Внесено: 1000.00 [09:59:59]line СДАЧА: 0.00 [09:59:59]line НСП 1% : 8.85 [09:59:59]line НДС 12% : 106.21 [09:59:59]line Наличными: 1000.00 [09:59:59]line Безнал.: 0.00 [09:59:59]line Место: АЗС № 86 "Партнер Нефть" [09:59:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [09:59:59]line СНО: Общий режим [09:59:59]line Чек 188 22.10.2024 10:00 [09:59:59]line Смена: 461 ФФД: 1.0 [09:59:59]line ЗНМ: 0300000155 [09:59:59]line РНМ: 0000000000100030 [09:59:59]line Версия ККМ: 001 [09:59:59]line ФМ: 0000000000965340 [09:59:59]line ФД: 188159 [09:59:59]line ФПД: 1419833215330 [09:59:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100000&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188159&fm=1419833215330&tin=02508201610067®Number=0000000000100030&sum=100000 [09:59:59]written 0, free lines is 4095 [09:59:59]OFD Sender: Processing packet 188159 [packets to send 1062, broken 1061] [09:59:59]ProducePacketName [09:59:59]name=ofd_packets/00188159 [09:59:59]OFD Sender: To server: pG, [09:59:59]CommunicateWithHost lk.salyk.kg:30040 [09:59:59]ConnectInit lk.salyk.kg [10:00:00]Connected sock=9 [10:00:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 8F 07 01 6A 2E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 00 00 00 F4 03 04 00 A0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DE 02 00 35 04 06 00 01 4A 94 A7 89 62 9F 97 96 F4 0E 91 E4 D9 [10:00:00]Write to MH i2c: 01 00 00 AA 3B E5 [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 07 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: 01 07 00 AA 3B 00 00 00 00 00 60 0C 58 [10:00:00]RasterBufferAndPrint [10:00:00]line [10:00:00]line [10:00:00]line [10:00:00]line [10:00:00]line [10:00:00]written 0, free lines is 3172 [10:00:00]MH_Cut [10:00:00]Write to MH i2c: D1 01 00 B1 3B 01 BE [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: D1 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: D1 01 00 [10:00:00]MH_I2C_Read... [10:00:00]Read from MH i2c: D1 01 00 B1 3B 00 BD [10:00:00]Write to MH i2c: 01 00 00 B2 3B ED [10:00:00]Write i2c OK [10:00:00]MH_I2C_Read... [10:00:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 C6 47 00 A0 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DE 02 00 F4 03 04 00 8E 21 17 67 B6 04 01 00 00 77 3E 48 E7 E7 55 73 E8 [10:00:00]CommunicateWithHost err = 0 [10:00:00]CheckOFDResponse [10:00:00]1017 (14) - 77093643461234 [10:00:00]1041 (16) - 0000000000965340 [10:00:00]1040 (4) - 188159 [10:00:00]1012 (4) - 22.10.2024 03:52 [10:00:00]1206 (1) - 0 [10:00:00]OFD Sender: Remove packet 188159 [10:00:00]ProducePacketName [10:00:00]name=ofd_packets/00188159 [10:00:00]NVStorageDeleteData [10:00:00]OFD Sender: No OFD packet to send [10:00:01]*** Cut start [10:00:01]*** Partial cut [10:00:01]*** CUTSNS_PIN = 1 [10:00:01]*** CUTSNS_PIN = 0 [10:00:01]*** Brake cut motor [10:00:02]Read from MH i2c: 01 [10:00:02]MH_I2C_Read... [10:00:02]*** Stop cut motor [10:00:02]*** Cut end [10:00:02]Read from MH i2c: 01 07 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: 01 07 00 B2 3B 00 00 00 00 00 FF 0F 02 [10:00:02]process_action close_receipt done [10:00:02]requested_data is exist [10:00:02]produce_requested_data [10:00:02]requested_item fm.sn is exist - process it [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 11 00 00 [10:00:02]Write to MH i2c: E2 08 00 B3 3B 80 11 00 00 00 00 00 00 68 [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 17 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 17 00 B3 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [10:00:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:00:02]wFMCommunicate OK [10:00:02]requested_item fd.num is exist - process it [10:00:02]SAM_PROTO_GetFieldsCounters [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 13 00 00 [10:00:02]Write to MH i2c: E2 08 00 B4 3B 80 13 00 00 00 00 00 00 6B [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 62 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 62 00 B4 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [10:00:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DE 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BC 00 00 00 5E 04 04 00 BC 00 00 00 57 04 04 00 BD 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:02]wFMCommunicate OK [10:00:02]SAM_PROTO_GetFieldsCounters done [10:00:02]requested_item shift.num is exist - process it [10:00:02]requested_item shift.opened is exist - process it [10:00:02]req_shift_opened [10:00:02]FM_GetShiftState [10:00:02]SAM_PROTO_GetShiftState [10:00:02]wFMCommunicate request_size=4 [10:00:02]MH_SAM_APDU [10:00:02]CAPDU: 80 13 01 00 [10:00:02]Write to MH i2c: E2 08 00 B5 3B 80 13 01 00 00 00 00 00 6D [10:00:02]Write i2c OK [10:00:02]MH_I2C_Read... [10:00:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:02]Read from MH i2c: E2 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 0E 00 [10:00:02]MH_I2C_Read... [10:00:02]Read from MH i2c: E2 0E 00 B5 3B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 62 [10:00:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:00:02]wFMCommunicate OK [10:00:02]SAM_PROTO_GetShiftState done [10:00:02]FM_GetShiftState done [10:00:02]req_shift_opened done [10:00:02]requested_item shift.open_date is exist - process it [10:00:02]req_shift_open_date [10:00:02]req_shift_open_date done [10:00:02]produce_requested_data done [10:00:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188159,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:00:02]process_action_free close_receipt [10:00:02]json_value_free [10:00:02]json_value_free done [10:00:02]process_json_proto returns [10:00:02]Send response to host [10:00:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188159,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:00:02]free response buf [10:00:02]execute_script done [10:00:02]execute_script returns [10:00:02]free content buf [10:00:02]Sock 10.Close socket [10:00:02]Sock 10.Thread stoped [10:00:05]OFD Sender: No OFD packet to send [10:00:10]OFD Sender: No OFD packet to send [10:00:13]accept exits with 8 [10:00:13]New connection [10:00:13]New thread 3067198820 created [10:00:13]Thread 3067055460 joined [10:00:13]Waiting for new connection... [10:00:13] Sock 8.Parse request [10:00:13]Sock 8.Check first char [10:00:13]Sock 8.First char is OK [10:00:13]request: POST /json_proto HTTP/1.0 [10:00:13]Method: POST [10:00:13]URL: /json_proto [10:00:13]Method is POST - this is cgi request [10:00:13]url: /json_proto [10:00:13]query_string will be loaded in cgi processing [10:00:13]execute_cgi json_proto POST (null) [10:00:13]execute_cgi path=json_proto method=POST [10:00:13]POST find Content-Length [10:00:13]Host: 172.17.42.131:8080 [10:00:13]Content-Length: 677 [10:00:13]Content-Type: application/json [10:00:13] [10:00:13]POST finish read [10:00:13]Found Content-Length = 677 [10:00:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:13]execute_script... [10:00: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)210211", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:00:13]POST & json_proto [10:00:13]process_json_proto [10:00:13]json parsed OK: [10:00:13]protocol is kg_v1.0 [10:00:13]action value=close_receipt [10:00:13]process_action close_receipt [10:00:13]cmd_close_receipt [10:00:13]MH_GetDate [10:00:13]Write to MH i2c: F0 00 00 B6 3B E0 [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: F0 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: F0 09 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: F0 09 00 B6 3B 00 B0 77 17 67 A0 18 CA 66 76 [10:00:13]GetLastDocTimeStamp 1729591200 [10:00:13]current date 1729591216 [10:00:13]FM_GetShiftState [10:00:13]SAM_PROTO_GetShiftState [10:00:13]wFMCommunicate request_size=4 [10:00:13]MH_SAM_APDU [10:00:13]CAPDU: 80 13 01 00 [10:00:13]Write to MH i2c: E2 08 00 B7 3B 80 13 01 00 00 00 00 00 6F [10:00:13]Write i2c OK [10:00:13]MH_I2C_Read... [10:00:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:13]Read from MH i2c: E2 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: E2 0E 00 [10:00:13]MH_I2C_Read... [10:00:13]Read from MH i2c: E2 0E 00 B7 3B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 64 [10:00:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:00:13]wFMCommunicate OK [10:00:13]SAM_PROTO_GetShiftState done [10:00:13]FM_GetShiftState done [10:00:13]opened in 1729556094 [10:00:13]opened+sec_in_day 1729642494 [10:00:13]quantity*price = 50041 [10:00:13]sum+1 = 50042 [10:00:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 189 22.10.2024 10:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188160 ФПД: 59291633137616 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188160&fm=59291633137616&tin=02508201610067®Number=0000000000100030&sum=50000 [10:00:14]StoreToDocumentArchive [10:00:14]shift 461 fd 188160 [10:00:14]save to /storage/0461/doc_00188160 [10:00:14]save last doc name /storage/0461/doc_00188160 to /storage/kkm_last_doc_name [10:00:14]save OK [10:00:14]Clear old archive folders... [10:00:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:00:14]tlvbuf is 01CE4B00 [10:00:14]SAM_PROTO_ClearQueue [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 09 00 00 [10:00:14]Write to MH i2c: E2 08 00 C4 3B 80 09 00 00 00 00 00 00 71 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 C4 3B 00 90 00 73 [10:00:14]RAPDU: 90 00 [10:00:14]wFMCommunicate OK [10:00:14]SAM_PROTO_ClearQueue done [10:00:14]KKMCreateOFDPacket [10:00:14]OFDProtocolAddRootSTLVToBuf [10:00:14]FM_MakeSignedData [10:00:14]FM_MakeSignedData [10:00:14]SAM_PROTO_SignData [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 0D 01 02 [10:00:14]Write to MH i2c: E2 08 00 C5 3B 80 0D 01 02 00 00 00 00 79 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 C5 3B 00 90 00 74 [10:00:14]RAPDU: 90 00 [10:00:14]wFMCommunicate OK [10:00:14]wFMCommunicate request_size=255 [10:00:14]MH_SAM_APDU [10:00: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DF 02 00 35 04 06 00 35 [10:00:14]Write to MH i2c: E2 02 01 C6 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DF 02 00 35 04 06 00 35 00 00 32 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 C6 3B 00 90 00 75 [10:00:14]RAPDU: 90 00 [10:00:14]wFMCommunicate OK [10:00:14]wFMCommunicate request_size=10 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 0D 02 02 05 EC E8 BB 37 D0 [10:00:14]Write to MH i2c: E2 0D 00 C7 3B 80 0D 02 02 05 00 EC E8 BB 37 D0 00 00 1C [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 03 00 C7 3B 00 90 00 76 [10:00:14]RAPDU: 90 00 [10:00:14]wFMCommunicate OK [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 0D 03 02 [10:00:14]Write to MH i2c: E2 08 00 C8 3B 80 0D 03 02 00 00 00 00 7E [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 0B 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 0B 00 C8 3B 00 76 1A 69 9B FA 3C E0 B1 90 00 DA [10:00:14]RAPDU: 76 1A 69 9B FA 3C E0 B1 90 00 [10:00:14]wFMCommunicate OK [10:00:14]SAM_PROTO_SignData done [10:00:14]FM_MakeSignedData done [10:00:14]CreateOFDProtocolMessage [10:00:14]wFMCommunicate request_size=4 [10:00:14]MH_SAM_APDU [10:00:14]CAPDU: 80 11 00 00 [10:00:14]Write to MH i2c: E2 08 00 C9 3B 80 11 00 00 00 00 00 00 7E [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:14]Read from MH i2c: E2 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 17 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: E2 17 00 C9 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [10:00:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:00:14]wFMCommunicate OK [10:00:14]CreateOFDProtocolMessage done [10:00:14]OFDSenderStorePacket 188160 [10:00:14]StoreOFDPacket docnum=188160 [10:00:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 BC 07 01 E1 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DF 02 00 35 04 06 00 35 EC E8 BB 37 D0 76 1A 69 9B FA 3C E0 B1 [10:00:14]CheckFolder [10:00:14]dirname=/storage/ofd_packets [10:00:14]CheckFolder done [10:00:14]ProducePacketName [10:00:14]name=ofd_packets/00188160 [10:00:14]NVStorageSaveData ofd_packets/00188160 [10:00:14]File name is /storage/ofd_packets/00188160 [10:00:14]Write 301 bytes [10:00:14]NVStorageSaveData done [10:00:14]OFDSenderStorePacket done [10:00:14]KKMCreateOFDPacket done [10:00:14]NVStorageSaveData kkm_last_timestamp [10:00:14]File name is /storage/kkm_last_timestamp [10:00:14]Write 4 bytes [10:00:14]NVStorageSaveData done [10:00:14]ExternCall_PrintAddStr [10:00:14]wPrintStart [10:00:14]Write to MH i2c: 01 00 00 CA 3B 05 [10:00:14]Write i2c OK [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 [10:00:14]MH_I2C_Read... [10:00:14]Read from MH i2c: 01 07 00 CA 3B 00 00 00 00 00 FF 0F 1A [10:00:14]RasterBufferAndPrint [10:00:14]line Счет N : (1)210211 [10:00:14]line ИНН: 02508201610067 [10:00:14]line Контрольно-Кассовый Чек [10:00:14]line ПРОДАЖА [10:00:14]line ТРК (МРК, ГНК) : 42 [10:00:14]line Товар: 2710124130 [10:00:14]line Аи-92-К-3 [10:00:14]line 7.480 * 66.90 [10:00:14]line = 500.41 [10:00:14]line НДС 12% НСП 1% [10:00:14]line > о реализуемом товаре [10:00:14]line ОКРУГЛЕНИЕ: -0.41 [10:00:14]line ИТОГО: 500.00 [10:00:14]line Внесено: 500.00 [10:00:14]line СДАЧА: 0.00 [10:00:14]line НСП 1% : 4.43 [10:00:14]line НДС 12% : 53.14 [10:00:14]line Наличными: 500.00 [10:00:14]line Безнал.: 0.00 [10:00:14]line Место: АЗС № 86 "Партнер Нефть" [10:00:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:00:14]line СНО: Общий режим [10:00:14]line Чек 189 22.10.2024 10:00 [10:00:14]line Смена: 461 ФФД: 1.0 [10:00:14]line ЗНМ: 0300000155 [10:00:14]line РНМ: 0000000000100030 [10:00:14]line Версия ККМ: 001 [10:00:14]line ФМ: 0000000000965340 [10:00:14]line ФД: 188160 [10:00:14]line ФПД: 59291633137616 [10:00:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188160&fm=59291633137616&tin=02508201610067®Number=0000000000100030&sum=50000 [10:00:14]written 0, free lines is 4095 [10:00:14]OFD Sender: Processing packet 188160 [packets to send 1062, broken 1061] [10:00:14]ProducePacketName [10:00:14]name=ofd_packets/00188160 [10:00:14]OFD Sender: To server: pG, [10:00:14]CommunicateWithHost lk.salyk.kg:30040 [10:00:14]ConnectInit lk.salyk.kg [10:00:15]Write to MH i2c: 01 00 00 F5 3B 30 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: 01 07 00 F5 3B 00 00 00 00 00 5F 0C A2 [10:00:15]RasterBufferAndPrint [10:00:15]line [10:00:15]line [10:00:15]line [10:00:15]line [10:00:15]line [10:00:15]written 0, free lines is 3170 [10:00:15]MH_Cut [10:00:15]Write to MH i2c: D1 01 00 FC 3B 01 09 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: D1 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: D1 01 00 [10:00:15]MH_I2C_Read... [10:00:15]Read from MH i2c: D1 01 00 FC 3B 00 08 [10:00:15]Write to MH i2c: 01 00 00 FD 3B 38 [10:00:15]Write i2c OK [10:00:15]MH_I2C_Read... [10:00:16]*** Cut start [10:00:16]*** Partial cut [10:00:16]*** CUTSNS_PIN = 1 [10:00:16]*** CUTSNS_PIN = 0 [10:00:16]*** Brake cut motor [10:00:17]Read from MH i2c: 01 [10:00:17]MH_I2C_Read... [10:00:17]*** Stop cut motor [10:00:17]*** Cut end [10:00:17]Read from MH i2c: 01 07 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: 01 07 00 FD 3B 00 00 00 00 00 FF 0F 4D [10:00:17]process_action close_receipt done [10:00:17]requested_data is exist [10:00:17]produce_requested_data [10:00:17]requested_item fm.sn is exist - process it [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 11 00 00 [10:00:17]Write to MH i2c: E2 08 00 FE 3B 80 11 00 00 00 00 00 00 B3 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 17 00 FE 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [10:00:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:00:17]wFMCommunicate OK [10:00:17]requested_item fd.num is exist - process it [10:00:17]SAM_PROTO_GetFieldsCounters [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 13 00 00 [10:00:17]Write to MH i2c: E2 08 00 FF 3B 80 13 00 00 00 00 00 00 B6 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 62 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 62 00 FF 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 A3 [10:00:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BD 00 00 00 5E 04 04 00 BD 00 00 00 57 04 04 00 BE 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:00:17]wFMCommunicate OK [10:00:17]SAM_PROTO_GetFieldsCounters done [10:00:17]requested_item shift.num is exist - process it [10:00:17]requested_item shift.opened is exist - process it [10:00:17]req_shift_opened [10:00:17]FM_GetShiftState [10:00:17]SAM_PROTO_GetShiftState [10:00:17]wFMCommunicate request_size=4 [10:00:17]MH_SAM_APDU [10:00:17]CAPDU: 80 13 01 00 [10:00:17]Write to MH i2c: E2 08 00 00 3C 80 13 01 00 00 00 00 00 B9 [10:00:17]Write i2c OK [10:00:17]MH_I2C_Read... [10:00:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:00:17]Read from MH i2c: E2 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 0E 00 [10:00:17]MH_I2C_Read... [10:00:17]Read from MH i2c: E2 0E 00 00 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AE [10:00:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:00:17]wFMCommunicate OK [10:00:17]SAM_PROTO_GetShiftState done [10:00:17]FM_GetShiftState done [10:00:17]req_shift_opened done [10:00:17]requested_item shift.open_date is exist - process it [10:00:17]req_shift_open_date [10:00:17]req_shift_open_date done [10:00:17]produce_requested_data done [10:00:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188160,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:00:17]process_action_free close_receipt [10:00:17]json_value_free [10:00:17]json_value_free done [10:00:17]process_json_proto returns [10:00:17]Send response to host [10:00:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188160,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:00:17]free response buf [10:00:17]execute_script done [10:00:17]execute_script returns [10:00:17]free content buf [10:00:17]Sock 8.Close socket [10:00:17]Sock 8.Thread stoped [10:01:14]accept exits with 9 [10:01:14]New connection [10:01:14]New thread 3067055460 created [10:01:14]Thread 3067198820 joined [10:01:14]Waiting for new connection... [10:01:14] Sock 9.Parse request [10:01:14]Sock 9.Check first char [10:01:14]Sock 9.First char is OK [10:01:14]request: POST /json_proto HTTP/1.0 [10:01:14]Method: POST [10:01:14]URL: /json_proto [10:01:14]Method is POST - this is cgi request [10:01:14]url: /json_proto [10:01:14]query_string will be loaded in cgi processing [10:01:14]execute_cgi json_proto POST (null) [10:01:14]execute_cgi path=json_proto method=POST [10:01:14]POST find Content-Length [10:01:14]Host: 172.17.42.131:8080 [10:01:14]Content-Length: 682 [10:01:14]Content-Type: application/json [10:01:14] [10:01:14]POST finish read [10:01:14]Found Content-Length = 682 [10:01:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:14]execute_script... [10:01: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)210212", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:01:14]POST & json_proto [10:01:14]process_json_proto [10:01:14]json parsed OK: [10:01:14]protocol is kg_v1.0 [10:01:14]action value=close_receipt [10:01:14]process_action close_receipt [10:01:14]cmd_close_receipt [10:01:14]MH_GetDate [10:01:14]Write to MH i2c: F0 00 00 01 3C 2C [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: F0 09 00 01 3C 00 ED 77 17 67 A0 18 CA 66 FF [10:01:14]GetLastDocTimeStamp 1729591216 [10:01:14]current date 1729591277 [10:01:14]FM_GetShiftState [10:01:14]SAM_PROTO_GetShiftState [10:01:14]wFMCommunicate request_size=4 [10:01:14]MH_SAM_APDU [10:01:14]CAPDU: 80 13 01 00 [10:01:14]Write to MH i2c: E2 08 00 02 3C 80 13 01 00 00 00 00 00 BB [10:01:14]Write i2c OK [10:01:14]MH_I2C_Read... [10:01:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:14]Read from MH i2c: E2 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 [10:01:14]MH_I2C_Read... [10:01:14]Read from MH i2c: E2 0E 00 02 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B0 [10:01:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:01:14]wFMCommunicate OK [10:01:14]SAM_PROTO_GetShiftState done [10:01:14]FM_GetShiftState done [10:01:14]opened in 1729556094 [10:01:14]opened+sec_in_day 1729642494 [10:01:14]quantity*price = 100015 [10:01:14]sum+1 = 100017 [10:01:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 190 22.10.2024 10:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188161 ФПД: 61539246190429 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188161&fm=61539246190429&tin=02508201610067®Number=0000000000100030&sum=100000 [10:01:15]StoreToDocumentArchive [10:01:15]shift 461 fd 188161 [10:01:15]save to /storage/0461/doc_00188161 [10:01:15]save last doc name /storage/0461/doc_00188161 to /storage/kkm_last_doc_name [10:01:15]save OK [10:01:15]Clear old archive folders... [10:01:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:01:15]tlvbuf is 01BD6AB0 [10:01:15]SAM_PROTO_ClearQueue [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 09 00 00 [10:01:15]Write to MH i2c: E2 08 00 0F 3C 80 09 00 00 00 00 00 00 BD [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 0F 3C 00 90 00 BF [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]SAM_PROTO_ClearQueue done [10:01:15]KKMCreateOFDPacket [10:01:15]OFDProtocolAddRootSTLVToBuf [10:01:15]FM_MakeSignedData [10:01:15]FM_MakeSignedData [10:01:15]SAM_PROTO_SignData [10:01:15]wFMCommunicate request_size=4 [10:01:15]MH_SAM_APDU [10:01:15]CAPDU: 80 0D 01 02 [10:01:15]Write to MH i2c: E2 08 00 10 3C 80 0D 01 02 00 00 00 00 C5 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:01:15]Read from MH i2c: E2 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 [10:01:15]MH_I2C_Read... [10:01:15]Read from MH i2c: E2 03 00 10 3C 00 90 00 C0 [10:01:15]RAPDU: 90 00 [10:01:15]wFMCommunicate OK [10:01:15]wFMCommunicate request_size=255 [10:01:15]MH_SAM_APDU [10:01: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DF 02 00 35 04 06 00 37 [10:01:15]Write to MH i2c: E2 02 01 11 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DF 02 00 35 04 06 00 37 00 00 B9 [10:01:15]Write i2c OK [10:01:15]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 11 3C 00 90 00 C1 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]wFMCommunicate request_size=10 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 0D 02 02 05 F8 38 E8 AF 5D [10:01:16]Write to MH i2c: E2 0D 00 12 3C 80 0D 02 02 05 00 F8 38 E8 AF 5D 00 00 F6 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 03 00 12 3C 00 90 00 C2 [10:01:16]RAPDU: 90 00 [10:01:16]wFMCommunicate OK [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 0D 03 02 [10:01:16]Write to MH i2c: E2 08 00 13 3C 80 0D 03 02 00 00 00 00 CA [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0B 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 0B 00 13 3C 00 DE 96 84 92 28 DA 05 95 90 00 F1 [10:01:16]RAPDU: DE 96 84 92 28 DA 05 95 90 00 [10:01:16]wFMCommunicate OK [10:01:16]SAM_PROTO_SignData done [10:01:16]FM_MakeSignedData done [10:01:16]CreateOFDProtocolMessage [10:01:16]wFMCommunicate request_size=4 [10:01:16]MH_SAM_APDU [10:01:16]CAPDU: 80 11 00 00 [10:01:16]Write to MH i2c: E2 08 00 14 3C 80 11 00 00 00 00 00 00 CA [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:16]Read from MH i2c: E2 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: E2 17 00 14 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [10:01:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:16]wFMCommunicate OK [10:01:16]CreateOFDProtocolMessage done [10:01:16]OFDSenderStorePacket 188161 [10:01:16]StoreOFDPacket docnum=188161 [10:01:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 ED 6D 07 01 A6 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DF 02 00 35 04 06 00 37 F8 38 E8 AF 5D DE 96 84 92 28 DA 05 95 [10:01:16]CheckFolder [10:01:16]dirname=/storage/ofd_packets [10:01:16]CheckFolder done [10:01:16]ProducePacketName [10:01:16]name=ofd_packets/00188161 [10:01:16]NVStorageSaveData ofd_packets/00188161 [10:01:16]File name is /storage/ofd_packets/00188161 [10:01:16]Write 301 bytes [10:01:16]NVStorageSaveData done [10:01:16]OFDSenderStorePacket done [10:01:16]KKMCreateOFDPacket done [10:01:16]NVStorageSaveData kkm_last_timestamp [10:01:16]File name is /storage/kkm_last_timestamp [10:01:16]Write 4 bytes [10:01:16]NVStorageSaveData done [10:01:16]ExternCall_PrintAddStr [10:01:16]wPrintStart [10:01:16]Write to MH i2c: 01 00 00 15 3C 51 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 15 3C 00 00 00 00 00 FF 0F 66 [10:01:16]RasterBufferAndPrint [10:01:16]line Счет N : (1)210212 [10:01:16]line ИНН: 02508201610067 [10:01:16]line Контрольно-Кассовый Чек [10:01:16]line ПРОДАЖА [10:01:16]line ТРК (МРК, ГНК) : 12 [10:01:16]line Товар: 2710124130 [10:01:16]line Аи-92-К-3 [10:01:16]line 14.950 * 66.90 [10:01:16]line = 1000.16 [10:01:16]line НДС 12% НСП 1% [10:01:16]line > о реализуемом товаре [10:01:16]line ОКРУГЛЕНИЕ: -0.16 [10:01:16]line ИТОГО: 1000.00 [10:01:16]line Внесено: 1000.00 [10:01:16]line СДАЧА: 0.00 [10:01:16]line НСП 1% : 8.85 [10:01:16]line НДС 12% : 106.21 [10:01:16]line Наличными: 1000.00 [10:01:16]line Безнал.: 0.00 [10:01:16]line Место: АЗС № 86 "Партнер Нефть" [10:01:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:01:16]line СНО: Общий режим [10:01:16]line Чек 190 22.10.2024 10:01 [10:01:16]line Смена: 461 ФФД: 1.0 [10:01:16]line ЗНМ: 0300000155 [10:01:16]line РНМ: 0000000000100030 [10:01:16]line Версия ККМ: 001 [10:01:16]line ФМ: 0000000000965340 [10:01:16]line ФД: 188161 [10:01:16]line ФПД: 61539246190429 [10:01:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188161&fm=61539246190429&tin=02508201610067®Number=0000000000100030&sum=100000 [10:01:16]written 0, free lines is 4095 [10:01:16]Write to MH i2c: 01 00 00 40 3C 7C [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: 01 07 00 40 3C 00 00 00 00 00 5E 0C ED [10:01:16]RasterBufferAndPrint [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]line [10:01:16]written 0, free lines is 3169 [10:01:16]MH_Cut [10:01:16]Write to MH i2c: D1 01 00 47 3C 01 55 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 [10:01:16]MH_I2C_Read... [10:01:16]Read from MH i2c: D1 01 00 47 3C 00 54 [10:01:16]Write to MH i2c: 01 00 00 48 3C 84 [10:01:16]Write i2c OK [10:01:16]MH_I2C_Read... [10:01:18]*** Cut start [10:01:18]*** Partial cut [10:01:18]*** CUTSNS_PIN = 1 [10:01:18]*** CUTSNS_PIN = 0 [10:01:18]*** Brake cut motor [10:01:18]Read from MH i2c: 01 [10:01:18]MH_I2C_Read... [10:01:18]*** Stop cut motor [10:01:18]*** Cut end [10:01:18]Read from MH i2c: 01 07 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: 01 07 00 48 3C 00 00 00 00 00 FF 0F 99 [10:01:18]process_action close_receipt done [10:01:18]requested_data is exist [10:01:18]produce_requested_data [10:01:18]requested_item fm.sn is exist - process it [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 11 00 00 [10:01:18]Write to MH i2c: E2 08 00 49 3C 80 11 00 00 00 00 00 00 FF [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 17 00 49 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [10:01:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:01:18]wFMCommunicate OK [10:01:18]requested_item fd.num is exist - process it [10:01:18]SAM_PROTO_GetFieldsCounters [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 00 00 [10:01:18]Write to MH i2c: E2 08 00 4A 3C 80 13 00 00 00 00 00 00 02 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 62 00 4A 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [10:01:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BE 00 00 00 5E 04 04 00 BE 00 00 00 57 04 04 00 BF 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetFieldsCounters done [10:01:18]requested_item shift.num is exist - process it [10:01:18]requested_item shift.opened is exist - process it [10:01:18]req_shift_opened [10:01:18]FM_GetShiftState [10:01:18]SAM_PROTO_GetShiftState [10:01:18]wFMCommunicate request_size=4 [10:01:18]MH_SAM_APDU [10:01:18]CAPDU: 80 13 01 00 [10:01:18]Write to MH i2c: E2 08 00 4B 3C 80 13 01 00 00 00 00 00 04 [10:01:18]Write i2c OK [10:01:18]MH_I2C_Read... [10:01:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:01:18]Read from MH i2c: E2 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 [10:01:18]MH_I2C_Read... [10:01:18]Read from MH i2c: E2 0E 00 4B 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [10:01:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:01:18]wFMCommunicate OK [10:01:18]SAM_PROTO_GetShiftState done [10:01:18]FM_GetShiftState done [10:01:18]req_shift_opened done [10:01:18]requested_item shift.open_date is exist - process it [10:01:18]req_shift_open_date [10:01:18]req_shift_open_date done [10:01:18]produce_requested_data done [10:01:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188161,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:01:18]process_action_free close_receipt [10:01:18]json_value_free [10:01:18]json_value_free done [10:01:18]process_json_proto returns [10:01:18]Send response to host [10:01:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188161,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:01:18]free response buf [10:01:18]execute_script done [10:01:18]execute_script returns [10:01:18]free content buf [10:01:18]Sock 9.Close socket [10:01:18]Sock 9.Thread stoped [10:02:15]accept exits with 8 [10:02:15]New connection [10:02:15]New thread 3067198820 created [10:02:15]Thread 3067055460 joined [10:02:15]Waiting for new connection... [10:02:15] Sock 8.Parse request [10:02:15]Sock 8.Check first char [10:02:15]Sock 8.First char is OK [10:02:15]request: POST /json_proto HTTP/1.0 [10:02:15]Method: POST [10:02:15]URL: /json_proto [10:02:15]Method is POST - this is cgi request [10:02:15]url: /json_proto [10:02:15]query_string will be loaded in cgi processing [10:02:15]execute_cgi json_proto POST (null) [10:02:15]execute_cgi path=json_proto method=POST [10:02:15]POST find Content-Length [10:02:15]Host: 172.17.42.131:8080 [10:02:15]Content-Length: 677 [10:02:15]Content-Type: application/json [10:02:15] [10:02:15]POST finish read [10:02:15]Found Content-Length = 677 [10:02:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:15]execute_script... [10:02: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)210213", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:02:15]POST & json_proto [10:02:15]process_json_proto [10:02:15]json parsed OK: [10:02:15]protocol is kg_v1.0 [10:02:15]action value=close_receipt [10:02:15]process_action close_receipt [10:02:15]cmd_close_receipt [10:02:15]MH_GetDate [10:02:15]Write to MH i2c: F0 00 00 4C 3C 77 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 09 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: F0 09 00 4C 3C 00 2A 78 17 67 A0 18 CA 66 88 [10:02:15]GetLastDocTimeStamp 1729591277 [10:02:15]current date 1729591338 [10:02:15]FM_GetShiftState [10:02:15]SAM_PROTO_GetShiftState [10:02:15]wFMCommunicate request_size=4 [10:02:15]MH_SAM_APDU [10:02:15]CAPDU: 80 13 01 00 [10:02:15]Write to MH i2c: E2 08 00 4D 3C 80 13 01 00 00 00 00 00 06 [10:02:15]Write i2c OK [10:02:15]MH_I2C_Read... [10:02:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:15]Read from MH i2c: E2 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 [10:02:15]MH_I2C_Read... [10:02:15]Read from MH i2c: E2 0E 00 4D 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FB [10:02:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:02:15]wFMCommunicate OK [10:02:15]SAM_PROTO_GetShiftState done [10:02:15]FM_GetShiftState done [10:02:15]opened in 1729556094 [10:02:15]opened+sec_in_day 1729642494 [10:02:15]quantity*price = 50041 [10:02:15]sum+1 = 50042 [10:02:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 191 22.10.2024 10:02 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188162 ФПД: 50039680330117 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188162&fm=50039680330117&tin=02508201610067®Number=0000000000100030&sum=50000 [10:02:16]StoreToDocumentArchive [10:02:16]shift 461 fd 188162 [10:02:16]save to /storage/0461/doc_00188162 [10:02:16]save last doc name /storage/0461/doc_00188162 to /storage/kkm_last_doc_name [10:02:16]save OK [10:02:16]Clear old archive folders... [10:02:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:02:16]tlvbuf is B6F16B00 [10:02:16]SAM_PROTO_ClearQueue [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 09 00 00 [10:02:16]Write to MH i2c: E2 08 00 5A 3C 80 09 00 00 00 00 00 00 08 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 5A 3C 00 90 00 0A [10:02:16]RAPDU: 90 00 [10:02:16]wFMCommunicate OK [10:02:16]SAM_PROTO_ClearQueue done [10:02:16]KKMCreateOFDPacket [10:02:16]OFDProtocolAddRootSTLVToBuf [10:02:16]FM_MakeSignedData [10:02:16]FM_MakeSignedData [10:02:16]SAM_PROTO_SignData [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 0D 01 02 [10:02:16]Write to MH i2c: E2 08 00 5B 3C 80 0D 01 02 00 00 00 00 10 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 5B 3C 00 90 00 0B [10:02:16]RAPDU: 90 00 [10:02:16]wFMCommunicate OK [10:02:16]wFMCommunicate request_size=255 [10:02:16]MH_SAM_APDU [10:02: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 2A 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DF 02 00 35 04 06 00 2D [10:02:16]Write to MH i2c: E2 02 01 5C 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 2A 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DF 02 00 35 04 06 00 2D 00 00 40 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 5C 3C 00 90 00 0C [10:02:16]RAPDU: 90 00 [10:02:16]wFMCommunicate OK [10:02:16]wFMCommunicate request_size=10 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 0D 02 02 05 82 C5 5E E9 85 [10:02:16]Write to MH i2c: E2 0D 00 5D 3C 80 0D 02 02 05 00 82 C5 5E E9 85 00 00 30 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 03 00 5D 3C 00 90 00 0D [10:02:16]RAPDU: 90 00 [10:02:16]wFMCommunicate OK [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 0D 03 02 [10:02:16]Write to MH i2c: E2 08 00 5E 3C 80 0D 03 02 00 00 00 00 15 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 0B 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 0B 00 5E 3C 00 7E 39 5B 76 D0 AB 94 82 90 00 2F [10:02:16]RAPDU: 7E 39 5B 76 D0 AB 94 82 90 00 [10:02:16]wFMCommunicate OK [10:02:16]SAM_PROTO_SignData done [10:02:16]FM_MakeSignedData done [10:02:16]CreateOFDProtocolMessage [10:02:16]wFMCommunicate request_size=4 [10:02:16]MH_SAM_APDU [10:02:16]CAPDU: 80 11 00 00 [10:02:16]Write to MH i2c: E2 08 00 5F 3C 80 11 00 00 00 00 00 00 15 [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:16]Read from MH i2c: E2 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 17 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: E2 17 00 5F 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [10:02:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:02:16]wFMCommunicate OK [10:02:16]CreateOFDProtocolMessage done [10:02:16]OFDSenderStorePacket 188162 [10:02:16]StoreOFDPacket docnum=188162 [10:02:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 36 7F 07 01 BA 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 2A 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DF 02 00 35 04 06 00 2D 82 C5 5E E9 85 7E 39 5B 76 D0 AB 94 82 [10:02:16]CheckFolder [10:02:16]dirname=/storage/ofd_packets [10:02:16]CheckFolder done [10:02:16]ProducePacketName [10:02:16]name=ofd_packets/00188162 [10:02:16]NVStorageSaveData ofd_packets/00188162 [10:02:16]File name is /storage/ofd_packets/00188162 [10:02:16]Write 301 bytes [10:02:16]NVStorageSaveData done [10:02:16]OFDSenderStorePacket done [10:02:16]KKMCreateOFDPacket done [10:02:16]NVStorageSaveData kkm_last_timestamp [10:02:16]File name is /storage/kkm_last_timestamp [10:02:16]Write 4 bytes [10:02:16]NVStorageSaveData done [10:02:16]ExternCall_PrintAddStr [10:02:16]wPrintStart [10:02:16]Write to MH i2c: 01 00 00 60 3C 9C [10:02:16]Write i2c OK [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 [10:02:16]MH_I2C_Read... [10:02:16]Read from MH i2c: 01 07 00 60 3C 00 00 00 00 00 FF 0F B1 [10:02:16]RasterBufferAndPrint [10:02:16]line Счет N : (1)210213 [10:02:16]line ИНН: 02508201610067 [10:02:16]line Контрольно-Кассовый Чек [10:02:16]line ПРОДАЖА [10:02:16]line ТРК (МРК, ГНК) : 42 [10:02:16]line Товар: 2710124130 [10:02:16]line Аи-92-К-3 [10:02:16]line 7.480 * 66.90 [10:02:16]line = 500.41 [10:02:16]line НДС 12% НСП 1% [10:02:16]line > о реализуемом товаре [10:02:16]line ОКРУГЛЕНИЕ: -0.41 [10:02:16]line ИТОГО: 500.00 [10:02:16]line Внесено: 500.00 [10:02:16]line СДАЧА: 0.00 [10:02:16]line НСП 1% : 4.43 [10:02:16]line НДС 12% : 53.14 [10:02:16]line Наличными: 500.00 [10:02:16]line Безнал.: 0.00 [10:02:16]line Место: АЗС № 86 "Партнер Нефть" [10:02:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:02:16]line СНО: Общий режим [10:02:16]line Чек 191 22.10.2024 10:02 [10:02:16]line Смена: 461 ФФД: 1.0 [10:02:16]line ЗНМ: 0300000155 [10:02:16]line РНМ: 0000000000100030 [10:02:16]line Версия ККМ: 001 [10:02:16]line ФМ: 0000000000965340 [10:02:16]line ФД: 188162 [10:02:16]line ФПД: 50039680330117 [10:02:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188162&fm=50039680330117&tin=02508201610067®Number=0000000000100030&sum=50000 [10:02:16]written 0, free lines is 4095 [10:02:17]Write to MH i2c: 01 00 00 8B 3C C7 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: 01 07 00 8B 3C 00 00 00 00 00 60 0C 3A [10:02:17]RasterBufferAndPrint [10:02:17]line [10:02:17]line [10:02:17]line [10:02:17]line [10:02:17]line [10:02:17]written 0, free lines is 3172 [10:02:17]MH_Cut [10:02:17]Write to MH i2c: D1 01 00 92 3C 01 A0 [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: D1 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: D1 01 00 [10:02:17]MH_I2C_Read... [10:02:17]Read from MH i2c: D1 01 00 92 3C 00 9F [10:02:17]Write to MH i2c: 01 00 00 93 3C CF [10:02:17]Write i2c OK [10:02:17]MH_I2C_Read... [10:02:18]*** Cut start [10:02:18]*** Partial cut [10:02:18]*** CUTSNS_PIN = 1 [10:02:18]*** CUTSNS_PIN = 0 [10:02:18]*** Brake cut motor [10:02:19]Read from MH i2c: 01 [10:02:19]MH_I2C_Read... [10:02:19]*** Stop cut motor [10:02:19]*** Cut end [10:02:19]Read from MH i2c: 01 07 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: 01 07 00 93 3C 00 00 00 00 00 FF 0F E4 [10:02:19]process_action close_receipt done [10:02:19]requested_data is exist [10:02:19]produce_requested_data [10:02:19]requested_item fm.sn is exist - process it [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 11 00 00 [10:02:19]Write to MH i2c: E2 08 00 94 3C 80 11 00 00 00 00 00 00 4A [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 17 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 17 00 94 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [10:02:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:02:19]wFMCommunicate OK [10:02:19]requested_item fd.num is exist - process it [10:02:19]SAM_PROTO_GetFieldsCounters [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 00 00 [10:02:19]Write to MH i2c: E2 08 00 95 3C 80 13 00 00 00 00 00 00 4D [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 62 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 62 00 95 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 42 [10:02:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BF 00 00 00 5E 04 04 00 BF 00 00 00 57 04 04 00 C0 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_GetFieldsCounters done [10:02:19]requested_item shift.num is exist - process it [10:02:19]requested_item shift.opened is exist - process it [10:02:19]req_shift_opened [10:02:19]FM_GetShiftState [10:02:19]SAM_PROTO_GetShiftState [10:02:19]wFMCommunicate request_size=4 [10:02:19]MH_SAM_APDU [10:02:19]CAPDU: 80 13 01 00 [10:02:19]Write to MH i2c: E2 08 00 96 3C 80 13 01 00 00 00 00 00 4F [10:02:19]Write i2c OK [10:02:19]MH_I2C_Read... [10:02:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:02:19]Read from MH i2c: E2 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 0E 00 [10:02:19]MH_I2C_Read... [10:02:19]Read from MH i2c: E2 0E 00 96 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [10:02:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:02:19]wFMCommunicate OK [10:02:19]SAM_PROTO_GetShiftState done [10:02:19]FM_GetShiftState done [10:02:19]req_shift_opened done [10:02:19]requested_item shift.open_date is exist - process it [10:02:19]req_shift_open_date [10:02:19]req_shift_open_date done [10:02:19]produce_requested_data done [10:02:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188162,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:02:19]process_action_free close_receipt [10:02:19]json_value_free [10:02:19]json_value_free done [10:02:19]process_json_proto returns [10:02:19]Send response to host [10:02:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188162,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:02:19]free response buf [10:02:19]execute_script done [10:02:19]execute_script returns [10:02:19]free content buf [10:02:19]Sock 8.Close socket [10:02:19]Sock 8.Thread stoped [10:02:27]ConnectInit Can't connect to host [10:02:27]CommunicateWithHost connect error [10:02:27]CommunicateWithHost err = -1 [10:02:27]OFD Sender: Server communicate error [10:02:27]OFD Sender: Processing packet 188160 [packets to send 1064, broken 1061] [10:02:27]ProducePacketName [10:02:27]name=ofd_packets/00188160 [10:02:27]OFD Sender: To server: pG, [10:02:27]CommunicateWithHost lk.salyk.kg:30040 [10:02:27]ConnectInit lk.salyk.kg [10:02:27]Connected sock=8 [10:02:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 21 BC 07 01 E1 6C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 00 00 00 F4 03 04 00 B0 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DF 02 00 35 04 06 00 35 EC E8 BB 37 D0 76 1A 69 9B FA 3C E0 B1 [10:02:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC BC 47 00 ED F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 DF 02 00 F4 03 04 00 22 22 17 67 B6 04 01 00 00 A5 20 A1 49 CA A8 51 49 [10:02:28]CommunicateWithHost err = 0 [10:02:28]CheckOFDResponse [10:02:28]1017 (14) - 77093643461234 [10:02:28]1041 (16) - 0000000000965340 [10:02:28]1040 (4) - 188160 [10:02:28]1012 (4) - 22.10.2024 03:55 [10:02:28]1206 (1) - 0 [10:02:28]OFD Sender: Remove packet 188160 [10:02:28]ProducePacketName [10:02:28]name=ofd_packets/00188160 [10:02:28]NVStorageDeleteData [10:02:28]OFD Sender: Processing packet 188161 [packets to send 1063, broken 1061] [10:02:28]ProducePacketName [10:02:28]name=ofd_packets/00188161 [10:02:28]OFD Sender: To server: pG, [10:02:28]CommunicateWithHost lk.salyk.kg:30040 [10:02:28]ConnectInit lk.salyk.kg [10:02:28]Connected sock=8 [10:02:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 ED 6D 07 01 A6 18 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 00 00 00 F4 03 04 00 ED 77 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 DF 02 00 35 04 06 00 37 F8 38 E8 AF 5D DE 96 84 92 28 DA 05 95 [10:02:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 53 32 47 00 C4 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 39 36 35 33 34 30 10 04 04 00 01 DF 02 00 F4 03 04 00 23 22 17 67 B6 04 01 00 00 2B 0A 90 90 AB EE 3D AE [10:02:29]CommunicateWithHost err = 0 [10:02:29]CheckOFDResponse [10:02:29]1017 (14) - 77093643461234 [10:02:29]1041 (16) - 0000000000965340 [10:02:29]1040 (4) - 188161 [10:02:29]1012 (4) - 22.10.2024 03:55 [10:02:29]1206 (1) - 0 [10:02:29]OFD Sender: Remove packet 188161 [10:02:29]ProducePacketName [10:02:29]name=ofd_packets/00188161 [10:02:29]NVStorageDeleteData [10:02:29]OFD Sender: Processing packet 188162 [packets to send 1062, broken 1061] [10:02:29]ProducePacketName [10:02:29]name=ofd_packets/00188162 [10:02:29]OFD Sender: To server: pG, [10:02:29]CommunicateWithHost lk.salyk.kg:30040 [10:02:29]ConnectInit lk.salyk.kg [10:02:29]Connected sock=8 [10:02:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 36 7F 07 01 BA 50 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 2A 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DF 02 00 35 04 06 00 2D 82 C5 5E E9 85 7E 39 5B 76 D0 AB 94 82 [10:02:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C6 85 47 00 64 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 DF 02 00 F4 03 04 00 24 22 17 67 B6 04 01 00 00 A3 E0 81 4B 64 F6 CB 17 [10:02:30]CommunicateWithHost err = 0 [10:02:30]CheckOFDResponse [10:02:30]1017 (14) - 77093643461234 [10:02:30]1041 (16) - 0000000000965340 [10:02:30]1040 (4) - 188162 [10:02:30]1012 (4) - 22.10.2024 03:55 [10:02:30]1206 (1) - 0 [10:02:30]OFD Sender: Remove packet 188162 [10:02:30]ProducePacketName [10:02:30]name=ofd_packets/00188162 [10:02:30]NVStorageDeleteData [10:02:30]OFD Sender: No OFD packet to send [10:02:35]OFD Sender: No OFD packet to send [10:02:40]OFD Sender: No OFD packet to send [10:02:45]OFD Sender: No OFD packet to send [10:02:50]OFD Sender: No OFD packet to send [10:02:55]OFD Sender: No OFD packet to send [10:03:00]OFD Sender: No OFD packet to send [10:03:06]OFD Sender: No OFD packet to send [10:03:10]accept exits with 9 [10:03:10]New connection [10:03:10]New thread 3067055460 created [10:03:10]Thread 3067198820 joined [10:03:10]Waiting for new connection... [10:03:10] Sock 9.Parse request [10:03:10]Sock 9.Check first char [10:03:10]Sock 9.First char is OK [10:03:10]request: POST /json_proto HTTP/1.0 [10:03:10]Method: POST [10:03:10]URL: /json_proto [10:03:10]Method is POST - this is cgi request [10:03:10]url: /json_proto [10:03:10]query_string will be loaded in cgi processing [10:03:10]execute_cgi json_proto POST (null) [10:03:10]execute_cgi path=json_proto method=POST [10:03:10]POST find Content-Length [10:03:10]Host: 172.17.42.131:8080 [10:03:10]Content-Length: 677 [10:03:10]Content-Type: application/json [10:03:10] [10:03:10]POST finish read [10:03:10]Found Content-Length = 677 [10:03:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:10]execute_script... [10:03:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210214", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:03:10]POST & json_proto [10:03:10]process_json_proto [10:03:10]json parsed OK: [10:03:10]protocol is kg_v1.0 [10:03:10]action value=close_receipt [10:03:10]process_action close_receipt [10:03:10]cmd_close_receipt [10:03:10]MH_GetDate [10:03:10]Write to MH i2c: F0 00 00 97 3C C2 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: F0 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: F0 09 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: F0 09 00 97 3C 00 61 78 17 67 A0 18 CA 66 0A [10:03:10]GetLastDocTimeStamp 1729591338 [10:03:10]current date 1729591393 [10:03:10]FM_GetShiftState [10:03:10]SAM_PROTO_GetShiftState [10:03:10]wFMCommunicate request_size=4 [10:03:10]MH_SAM_APDU [10:03:10]CAPDU: 80 13 01 00 [10:03:10]Write to MH i2c: E2 08 00 98 3C 80 13 01 00 00 00 00 00 51 [10:03:10]Write i2c OK [10:03:10]MH_I2C_Read... [10:03:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:10]Read from MH i2c: E2 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 0E 00 [10:03:10]MH_I2C_Read... [10:03:10]Read from MH i2c: E2 0E 00 98 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 46 [10:03:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:03:10]wFMCommunicate OK [10:03:10]SAM_PROTO_GetShiftState done [10:03:10]FM_GetShiftState done [10:03:10]opened in 1729556094 [10:03:10]opened+sec_in_day 1729642494 [10:03:10]quantity*price = 50041 [10:03:10]sum+1 = 50042 [10:03:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 192 22.10.2024 10:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188163 ФПД: 255310028479392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188163&fm=255310028479392&tin=02508201610067®Number=0000000000100030&sum=50000 [10:03:11]StoreToDocumentArchive [10:03:11]shift 461 fd 188163 [10:03:11]save to /storage/0461/doc_00188163 [10:03:11]save last doc name /storage/0461/doc_00188163 to /storage/kkm_last_doc_name [10:03:11]save OK [10:03:11]Clear old archive folders... [10:03:11]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:03:11]tlvbuf is 01BAD950 [10:03:11]SAM_PROTO_ClearQueue [10:03:11]wFMCommunicate request_size=4 [10:03:11]MH_SAM_APDU [10:03:11]CAPDU: 80 09 00 00 [10:03:11]Write to MH i2c: E2 08 00 A5 3C 80 09 00 00 00 00 00 00 53 [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:03:11]Read from MH i2c: E2 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 03 00 [10:03:11]MH_I2C_Read... [10:03:11]Read from MH i2c: E2 03 00 A5 3C 00 90 00 55 [10:03:11]RAPDU: 90 00 [10:03:11]wFMCommunicate OK [10:03:11]SAM_PROTO_ClearQueue done [10:03:11]KKMCreateOFDPacket [10:03:11]OFDProtocolAddRootSTLVToBuf [10:03:11]FM_MakeSignedData [10:03:11]FM_MakeSignedData [10:03:11]SAM_PROTO_SignData [10:03:11]wFMCommunicate request_size=4 [10:03:11]MH_SAM_APDU [10:03:11]CAPDU: 80 0D 01 02 [10:03:11]Write to MH i2c: E2 08 00 A6 3C 80 0D 01 02 00 00 00 00 5B [10:03:11]Write i2c OK [10:03:11]MH_I2C_Read... [10:03:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:03:12]Read from MH i2c: E2 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 03 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 03 00 A6 3C 00 90 00 56 [10:03:12]RAPDU: 90 00 [10:03:12]wFMCommunicate OK [10:03:12]wFMCommunicate request_size=255 [10:03:12]MH_SAM_APDU [10:03: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 61 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DF 02 00 35 04 06 00 E8 [10:03:12]Write to MH i2c: E2 02 01 A7 3C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 61 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DF 02 00 35 04 06 00 E8 00 00 7F [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:12]Read from MH i2c: E2 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 03 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 03 00 A7 3C 00 90 00 57 [10:03:12]RAPDU: 90 00 [10:03:12]wFMCommunicate OK [10:03:12]wFMCommunicate request_size=10 [10:03:12]MH_SAM_APDU [10:03:12]CAPDU: 80 0D 02 02 05 33 FF 8E 1B A0 [10:03:12]Write to MH i2c: E2 0D 00 A8 3C 80 0D 02 02 05 00 33 FF 8E 1B A0 00 00 E3 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:03:12]Read from MH i2c: E2 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 03 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 03 00 A8 3C 00 90 00 58 [10:03:12]RAPDU: 90 00 [10:03:12]wFMCommunicate OK [10:03:12]wFMCommunicate request_size=4 [10:03:12]MH_SAM_APDU [10:03:12]CAPDU: 80 0D 03 02 [10:03:12]Write to MH i2c: E2 08 00 A9 3C 80 0D 03 02 00 00 00 00 60 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:03:12]Read from MH i2c: E2 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 0B 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 0B 00 A9 3C 00 26 76 2D 84 C8 4B 8A D6 90 00 21 [10:03:12]RAPDU: 26 76 2D 84 C8 4B 8A D6 90 00 [10:03:12]wFMCommunicate OK [10:03:12]SAM_PROTO_SignData done [10:03:12]FM_MakeSignedData done [10:03:12]CreateOFDProtocolMessage [10:03:12]wFMCommunicate request_size=4 [10:03:12]MH_SAM_APDU [10:03:12]CAPDU: 80 11 00 00 [10:03:12]Write to MH i2c: E2 08 00 AA 3C 80 11 00 00 00 00 00 00 60 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:12]Read from MH i2c: E2 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 17 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: E2 17 00 AA 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [10:03:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:03:12]wFMCommunicate OK [10:03:12]CreateOFDProtocolMessage done [10:03:12]OFDSenderStorePacket 188163 [10:03:12]StoreOFDPacket docnum=188163 [10:03:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D E9 07 01 87 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 61 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DF 02 00 35 04 06 00 E8 33 FF 8E 1B A0 26 76 2D 84 C8 4B 8A D6 [10:03:12]CheckFolder [10:03:12]dirname=/storage/ofd_packets [10:03:12]CheckFolder done [10:03:12]ProducePacketName [10:03:12]name=ofd_packets/00188163 [10:03:12]NVStorageSaveData ofd_packets/00188163 [10:03:12]File name is /storage/ofd_packets/00188163 [10:03:12]Write 301 bytes [10:03:12]NVStorageSaveData done [10:03:12]OFDSenderStorePacket done [10:03:12]KKMCreateOFDPacket done [10:03:12]NVStorageSaveData kkm_last_timestamp [10:03:12]File name is /storage/kkm_last_timestamp [10:03:12]Write 4 bytes [10:03:12]NVStorageSaveData done [10:03:12]ExternCall_PrintAddStr [10:03:12]wPrintStart [10:03:12]Write to MH i2c: 01 00 00 AB 3C E7 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 07 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 07 00 AB 3C 00 00 00 00 00 FF 0F FC [10:03:12]RasterBufferAndPrint [10:03:12]line Счет N : (1)210214 [10:03:12]line ИНН: 02508201610067 [10:03:12]line Контрольно-Кассовый Чек [10:03:12]line ПРОДАЖА [10:03:12]line ТРК (МРК, ГНК) : 12 [10:03:12]line Товар: 2710124130 [10:03:12]line Аи-92-К-3 [10:03:12]line 7.480 * 66.90 [10:03:12]line = 500.41 [10:03:12]line НДС 12% НСП 1% [10:03:12]line > о реализуемом товаре [10:03:12]line ОКРУГЛЕНИЕ: -0.41 [10:03:12]line ИТОГО: 500.00 [10:03:12]line Внесено: 500.00 [10:03:12]line СДАЧА: 0.00 [10:03:12]line НСП 1% : 4.43 [10:03:12]line НДС 12% : 53.14 [10:03:12]line Наличными: 500.00 [10:03:12]line Безнал.: 0.00 [10:03:12]line Место: АЗС № 86 "Партнер Нефть" [10:03:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:03:12]line СНО: Общий режим [10:03:12]line Чек 192 22.10.2024 10:03 [10:03:12]line Смена: 461 ФФД: 1.0 [10:03:12]line ЗНМ: 0300000155 [10:03:12]line РНМ: 0000000000100030 [10:03:12]line Версия ККМ: 001 [10:03:12]line ФМ: 0000000000965340 [10:03:12]line ФД: 188163 [10:03:12]line ФПД: 255310028479392 [10:03:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100313&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188163&fm=255310028479392&tin=02508201610067®Number=0000000000100030&sum=50000 [10:03:12]written 0, free lines is 4095 [10:03:12]OFD Sender: Processing packet 188163 [packets to send 1062, broken 1061] [10:03:12]ProducePacketName [10:03:12]name=ofd_packets/00188163 [10:03:12]OFD Sender: To server: pG, [10:03:12]CommunicateWithHost lk.salyk.kg:30040 [10:03:12]ConnectInit lk.salyk.kg [10:03:12]Connected sock=10 [10:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D E9 07 01 87 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 00 00 00 F4 03 04 00 61 78 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 DF 02 00 35 04 06 00 E8 33 FF 8E 1B A0 26 76 2D 84 C8 4B 8A D6 [10:03:12]Write to MH i2c: 01 00 00 D6 3C 12 [10:03:12]Write i2c OK [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 07 00 [10:03:12]MH_I2C_Read... [10:03:12]Read from MH i2c: 01 07 00 D6 3C 00 00 00 00 00 69 0C 8E [10:03:12]RasterBufferAndPrint [10:03:12]line [10:03:12]line [10:03:12]line [10:03:12]line [10:03:12]line [10:03:12]written 0, free lines is 3180 [10:03:13]MH_Cut [10:03:13]Write to MH i2c: D1 01 00 DD 3C 01 EB [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: D1 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: D1 01 00 [10:03:13]MH_I2C_Read... [10:03:13]Read from MH i2c: D1 01 00 DD 3C 00 EA [10:03:13]Write to MH i2c: 01 00 00 DE 3C 1A [10:03:13]Write i2c OK [10:03:13]MH_I2C_Read... [10:03:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F A2 47 00 2A 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 39 36 35 33 34 30 10 04 04 00 03 DF 02 00 F4 03 04 00 4F 22 17 67 B6 04 01 00 00 DF AD A8 4E A4 88 CA 66 [10:03:13]CommunicateWithHost err = 0 [10:03:13]CheckOFDResponse [10:03:13]1017 (14) - 77093643461234 [10:03:13]1041 (16) - 0000000000965340 [10:03:13]1040 (4) - 188163 [10:03:13]1012 (4) - 22.10.2024 03:55 [10:03:13]1206 (1) - 0 [10:03:13]OFD Sender: Remove packet 188163 [10:03:13]ProducePacketName [10:03:13]name=ofd_packets/00188163 [10:03:13]NVStorageDeleteData [10:03:13]OFD Sender: No OFD packet to send [10:03:14]*** Cut start [10:03:14]*** Partial cut [10:03:14]*** CUTSNS_PIN = 1 [10:03:14]*** CUTSNS_PIN = 0 [10:03:14]*** Brake cut motor [10:03:14]Read from MH i2c: 01 [10:03:14]MH_I2C_Read... [10:03:14]*** Stop cut motor [10:03:14]*** Cut end [10:03:14]Read from MH i2c: 01 07 00 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: 01 07 00 DE 3C 00 00 00 00 00 FF 0F 2F [10:03:14]process_action close_receipt done [10:03:14]requested_data is exist [10:03:14]produce_requested_data [10:03:14]requested_item fm.sn is exist - process it [10:03:14]wFMCommunicate request_size=4 [10:03:14]MH_SAM_APDU [10:03:14]CAPDU: 80 11 00 00 [10:03:14]Write to MH i2c: E2 08 00 DF 3C 80 11 00 00 00 00 00 00 95 [10:03:14]Write i2c OK [10:03:14]MH_I2C_Read... [10:03:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:03:14]Read from MH i2c: E2 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: E2 17 00 [10:03:14]MH_I2C_Read... [10:03:14]Read from MH i2c: E2 17 00 DF 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [10:03:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:03:14]wFMCommunicate OK [10:03:14]requested_item fd.num is exist - process it [10:03:14]SAM_PROTO_GetFieldsCounters [10:03:14]wFMCommunicate request_size=4 [10:03:14]MH_SAM_APDU [10:03:14]CAPDU: 80 13 00 00 [10:03:14]Write to MH i2c: E2 08 00 E0 3C 80 13 00 00 00 00 00 00 98 [10:03:14]Write i2c OK [10:03:14]MH_I2C_Read... [10:03:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:03:15]Read from MH i2c: E2 [10:03:15]MH_I2C_Read... [10:03:15]Read from MH i2c: E2 62 00 [10:03:15]MH_I2C_Read... [10:03:15]Read from MH i2c: E2 62 00 E0 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 91 [10:03:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C0 00 00 00 5E 04 04 00 C0 00 00 00 57 04 04 00 C1 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:03:15]wFMCommunicate OK [10:03:15]SAM_PROTO_GetFieldsCounters done [10:03:15]requested_item shift.num is exist - process it [10:03:15]requested_item shift.opened is exist - process it [10:03:15]req_shift_opened [10:03:15]FM_GetShiftState [10:03:15]SAM_PROTO_GetShiftState [10:03:15]wFMCommunicate request_size=4 [10:03:15]MH_SAM_APDU [10:03:15]CAPDU: 80 13 01 00 [10:03:15]Write to MH i2c: E2 08 00 E1 3C 80 13 01 00 00 00 00 00 9A [10:03:15]Write i2c OK [10:03:15]MH_I2C_Read... [10:03:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:03:15]Read from MH i2c: E2 [10:03:15]MH_I2C_Read... [10:03:15]Read from MH i2c: E2 0E 00 [10:03:15]MH_I2C_Read... [10:03:15]Read from MH i2c: E2 0E 00 E1 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8F [10:03:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:03:15]wFMCommunicate OK [10:03:15]SAM_PROTO_GetShiftState done [10:03:15]FM_GetShiftState done [10:03:15]req_shift_opened done [10:03:15]requested_item shift.open_date is exist - process it [10:03:15]req_shift_open_date [10:03:15]req_shift_open_date done [10:03:15]produce_requested_data done [10:03:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188163,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:03:15]process_action_free close_receipt [10:03:15]json_value_free [10:03:15]json_value_free done [10:03:15]process_json_proto returns [10:03:15]Send response to host [10:03:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188163,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:03:15]free response buf [10:03:15]execute_script done [10:03:15]execute_script returns [10:03:15]free content buf [10:03:15]Sock 9.Close socket [10:03:15]Sock 9.Thread stoped [10:03:18]OFD Sender: No OFD packet to send [10:03:23]OFD Sender: No OFD packet to send [10:03:28]OFD Sender: No OFD packet to send [10:03:33]OFD Sender: No OFD packet to send [10:03:38]OFD Sender: No OFD packet to send [10:03:43]OFD Sender: No OFD packet to send [10:03:48]OFD Sender: No OFD packet to send [10:03:53]OFD Sender: No OFD packet to send [10:03:58]OFD Sender: No OFD packet to send [10:04:03]OFD Sender: No OFD packet to send [10:04:08]OFD Sender: No OFD packet to send [10:04:13]OFD Sender: No OFD packet to send [10:04:18]OFD Sender: No OFD packet to send [10:04:23]OFD Sender: No OFD packet to send [10:04:29]OFD Sender: No OFD packet to send [10:04:34]OFD Sender: No OFD packet to send [10:04:39]OFD Sender: No OFD packet to send [10:04:44]OFD Sender: No OFD packet to send [10:04:49]OFD Sender: No OFD packet to send [10:04:54]OFD Sender: No OFD packet to send [10:04:59]OFD Sender: No OFD packet to send [10:05:04]OFD Sender: No OFD packet to send [10:05:09]OFD Sender: No OFD packet to send [10:05:14]OFD Sender: No OFD packet to send [10:05:19]OFD Sender: No OFD packet to send [10:05:24]OFD Sender: No OFD packet to send [10:05:29]OFD Sender: No OFD packet to send [10:05:34]OFD Sender: No OFD packet to send [10:05:39]OFD Sender: No OFD packet to send [10:05:44]OFD Sender: No OFD packet to send [10:05:49]OFD Sender: No OFD packet to send [10:05:54]OFD Sender: No OFD packet to send [10:05:59]OFD Sender: No OFD packet to send [10:06:04]OFD Sender: No OFD packet to send [10:06:09]OFD Sender: No OFD packet to send [10:06:14]OFD Sender: No OFD packet to send [10:06:19]OFD Sender: No OFD packet to send [10:06:24]OFD Sender: No OFD packet to send [10:06:28]accept exits with 8 [10:06:28]New connection [10:06:28]New thread 3067198820 created [10:06:28]Thread 3067055460 joined [10:06:28]Waiting for new connection... [10:06:28] Sock 8.Parse request [10:06:28]Sock 8.Check first char [10:06:28]Sock 8.First char is OK [10:06:28]request: POST /json_proto HTTP/1.0 [10:06:28]Method: POST [10:06:28]URL: /json_proto [10:06:28]Method is POST - this is cgi request [10:06:28]url: /json_proto [10:06:28]query_string will be loaded in cgi processing [10:06:28]execute_cgi json_proto POST (null) [10:06:28]execute_cgi path=json_proto method=POST [10:06:28]POST find Content-Length [10:06:28]Host: 172.17.42.131:8080 [10:06:28]Content-Length: 688 [10:06:28]Content-Type: application/json [10:06:28] [10:06:28]POST finish read [10:06:28]Found Content-Length = 688 [10:06:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.820, "sum" : 1530.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:28]execute_script... [10:06: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)210215", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.820, "sum" : 1530.10, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1530.00, "total" : 1530.00, "payments": [ { "type": 0, "sum" : 1530.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:06:28]POST & json_proto [10:06:28]process_json_proto [10:06:28]json parsed OK: [10:06:28]protocol is kg_v1.0 [10:06:28]action value=close_receipt [10:06:28]process_action close_receipt [10:06:28]cmd_close_receipt [10:06:28]MH_GetDate [10:06:28]Write to MH i2c: F0 00 00 E2 3C 0D [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: F0 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: F0 09 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: F0 09 00 E2 3C 00 27 79 17 67 A0 18 CA 66 1C [10:06:28]GetLastDocTimeStamp 1729591393 [10:06:28]current date 1729591591 [10:06:28]FM_GetShiftState [10:06:28]SAM_PROTO_GetShiftState [10:06:28]wFMCommunicate request_size=4 [10:06:28]MH_SAM_APDU [10:06:28]CAPDU: 80 13 01 00 [10:06:28]Write to MH i2c: E2 08 00 E3 3C 80 13 01 00 00 00 00 00 9C [10:06:28]Write i2c OK [10:06:28]MH_I2C_Read... [10:06:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:28]Read from MH i2c: E2 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0E 00 [10:06:28]MH_I2C_Read... [10:06:28]Read from MH i2c: E2 0E 00 E3 3C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [10:06:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:06:28]wFMCommunicate OK [10:06:28]SAM_PROTO_GetShiftState done [10:06:28]FM_GetShiftState done [10:06:28]opened in 1729556094 [10:06:28]opened+sec_in_day 1729642494 [10:06:28]quantity*price = 153010 [10:06:28]sum+1 = 153011 [10:06:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.10 ИТОГО: 1530.00 Внесено: 1530.00 СДАЧА: 0.00 НСП 1% : 13.54 НДС 12% : 162.49 Наличными: 1530.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 193 22.10.2024 10:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188164 ФПД: 123336406338254 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188164&fm=123336406338254&tin=02508201610067®Number=0000000000100030&sum=153000 [10:06:29]StoreToDocumentArchive [10:06:29]shift 461 fd 188164 [10:06:29]save to /storage/0461/doc_00188164 [10:06:29]save last doc name /storage/0461/doc_00188164 to /storage/kkm_last_doc_name [10:06:29]save OK [10:06:29]Clear old archive folders... [10:06:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:06:29]tlvbuf is B6F91A20 [10:06:29]SAM_PROTO_ClearQueue [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 09 00 00 [10:06:29]Write to MH i2c: E2 08 00 F0 3C 80 09 00 00 00 00 00 00 9E [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 F0 3C 00 90 00 A0 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]SAM_PROTO_ClearQueue done [10:06:29]KKMCreateOFDPacket [10:06:29]OFDProtocolAddRootSTLVToBuf [10:06:29]FM_MakeSignedData [10:06:29]FM_MakeSignedData [10:06:29]SAM_PROTO_SignData [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 01 02 [10:06:29]Write to MH i2c: E2 08 00 F1 3C 80 0D 01 02 00 00 00 00 A6 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 F1 3C 00 90 00 A1 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]wFMCommunicate request_size=255 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 27 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DF 02 [10:06:29]Write to MH i2c: E2 02 01 F2 3C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 27 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DF 02 00 00 C0 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]OFD Sender: No OFD packet to send [10:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 F2 3C 00 90 00 A2 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]wFMCommunicate request_size=16 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 70 2C 7E B0 0A CE [10:06:29]Write to MH i2c: E2 13 00 F3 3C 80 0D 02 02 0B 00 00 35 04 06 00 70 2C 7E B0 0A CE 00 00 A0 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 03 00 F3 3C 00 90 00 A3 [10:06:29]RAPDU: 90 00 [10:06:29]wFMCommunicate OK [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 0D 03 02 [10:06:29]Write to MH i2c: E2 08 00 F4 3C 80 0D 03 02 00 00 00 00 AB [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 0B 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 0B 00 F4 3C 00 C5 F4 13 37 F9 8B 3B 9B 90 00 09 [10:06:29]RAPDU: C5 F4 13 37 F9 8B 3B 9B 90 00 [10:06:29]wFMCommunicate OK [10:06:29]SAM_PROTO_SignData done [10:06:29]FM_MakeSignedData done [10:06:29]CreateOFDProtocolMessage [10:06:29]wFMCommunicate request_size=4 [10:06:29]MH_SAM_APDU [10:06:29]CAPDU: 80 11 00 00 [10:06:29]Write to MH i2c: E2 08 00 F5 3C 80 11 00 00 00 00 00 00 AB [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:29]Read from MH i2c: E2 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: E2 17 00 F5 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [10:06:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:06:29]wFMCommunicate OK [10:06:29]CreateOFDProtocolMessage done [10:06:29]OFDSenderStorePacket 188164 [10:06:29]StoreOFDPacket docnum=188164 [10:06:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 22 FF 0D 01 1F 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 27 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DF 02 00 35 04 06 00 70 2C 7E B0 0A CE C5 F4 13 37 F9 8B 3B 9B [10:06:29]CheckFolder [10:06:29]dirname=/storage/ofd_packets [10:06:29]CheckFolder done [10:06:29]ProducePacketName [10:06:29]name=ofd_packets/00188164 [10:06:29]NVStorageSaveData ofd_packets/00188164 [10:06:29]File name is /storage/ofd_packets/00188164 [10:06:29]Write 307 bytes [10:06:29]NVStorageSaveData done [10:06:29]OFDSenderStorePacket done [10:06:29]KKMCreateOFDPacket done [10:06:29]NVStorageSaveData kkm_last_timestamp [10:06:29]File name is /storage/kkm_last_timestamp [10:06:29]Write 4 bytes [10:06:29]NVStorageSaveData done [10:06:29]ExternCall_PrintAddStr [10:06:29]wPrintStart [10:06:29]Write to MH i2c: 01 00 00 F6 3C 32 [10:06:29]Write i2c OK [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 [10:06:29]MH_I2C_Read... [10:06:29]Read from MH i2c: 01 07 00 F6 3C 00 00 00 00 00 FF 0F 47 [10:06:29]RasterBufferAndPrint [10:06:29]line Счет N : (1)210215 [10:06:29]line ИНН: 02508201610067 [10:06:29]line Контрольно-Кассовый Чек [10:06:29]line ПРОДАЖА [10:06:29]line ТРК (МРК, ГНК) : 11 [10:06:29]line Товар: 2710194210 [10:06:29]line D-ENERGY ДТ-К-5 [10:06:29]line 19.820 * 77.20 [10:06:29]line = 1530.10 [10:06:29]line НДС 12% НСП 1% [10:06:29]line > о реализуемом товаре [10:06:29]line ОКРУГЛЕНИЕ: -0.10 [10:06:29]line ИТОГО: 1530.00 [10:06:29]line Внесено: 1530.00 [10:06:29]line СДАЧА: 0.00 [10:06:29]line НСП 1% : 13.54 [10:06:29]line НДС 12% : 162.49 [10:06:29]line Наличными: 1530.00 [10:06:29]line Безнал.: 0.00 [10:06:29]line Место: АЗС № 86 "Партнер Нефть" [10:06:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:06:29]line СНО: Общий режим [10:06:29]line Чек 193 22.10.2024 10:06 [10:06:29]line Смена: 461 ФФД: 1.0 [10:06:29]line ЗНМ: 0300000155 [10:06:29]line РНМ: 0000000000100030 [10:06:29]line Версия ККМ: 001 [10:06:29]line ФМ: 0000000000965340 [10:06:29]line ФД: 188164 [10:06:29]line ФПД: 123336406338254 [10:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100631&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188164&fm=123336406338254&tin=02508201610067®Number=0000000000100030&sum=153000 [10:06:29]written 0, free lines is 4095 [10:06:30]OFD Sender: Processing packet 188164 [packets to send 1062, broken 1061] [10:06:30]ProducePacketName [10:06:30]name=ofd_packets/00188164 [10:06:30]OFD Sender: To server: pG, [10:06:30]CommunicateWithHost lk.salyk.kg:30040 [10:06:30]ConnectInit lk.salyk.kg [10:06:30]Connected sock=10 [10:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 22 FF 0D 01 1F 94 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C 4D 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 55 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 55 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 3F 00 00 00 00 07 04 06 00 A8 55 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 00 00 00 F4 03 04 00 27 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DF 02 00 35 04 06 00 70 2C 7E B0 0A CE C5 F4 13 37 F9 8B 3B 9B [10:06:30]Write to MH i2c: 01 00 00 21 3D 5E [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 07 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: 01 07 00 21 3D 00 00 00 00 00 61 0C D2 [10:06:30]RasterBufferAndPrint [10:06:30]line [10:06:30]line [10:06:30]line [10:06:30]line [10:06:30]line [10:06:30]written 0, free lines is 3173 [10:06:30]MH_Cut [10:06:30]Write to MH i2c: D1 01 00 28 3D 01 37 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: D1 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: D1 01 00 [10:06:30]MH_I2C_Read... [10:06:30]Read from MH i2c: D1 01 00 28 3D 00 36 [10:06:30]Write to MH i2c: 01 00 00 29 3D 66 [10:06:30]Write i2c OK [10:06:30]MH_I2C_Read... [10:06:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 49 53 47 00 42 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 DF 02 00 F4 03 04 00 14 23 17 67 B6 04 01 00 00 76 DD 32 D5 77 49 36 51 [10:06:30]CommunicateWithHost err = 0 [10:06:30]CheckOFDResponse [10:06:30]1017 (14) - 77093643461234 [10:06:30]1041 (16) - 0000000000965340 [10:06:30]1040 (4) - 188164 [10:06:30]1012 (4) - 22.10.2024 03:59 [10:06:30]1206 (1) - 0 [10:06:30]OFD Sender: Remove packet 188164 [10:06:30]ProducePacketName [10:06:30]name=ofd_packets/00188164 [10:06:30]NVStorageDeleteData [10:06:31]OFD Sender: No OFD packet to send [10:06:31]*** Cut start [10:06:31]*** Partial cut [10:06:31]*** CUTSNS_PIN = 1 [10:06:31]*** CUTSNS_PIN = 0 [10:06:31]*** Brake cut motor [10:06:32]Read from MH i2c: 01 [10:06:32]MH_I2C_Read... [10:06:32]*** Stop cut motor [10:06:32]*** Cut end [10:06:32]Read from MH i2c: 01 07 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: 01 07 00 29 3D 00 00 00 00 00 FF 0F 7B [10:06:32]process_action close_receipt done [10:06:32]requested_data is exist [10:06:32]produce_requested_data [10:06:32]requested_item fm.sn is exist - process it [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 11 00 00 [10:06:32]Write to MH i2c: E2 08 00 2A 3D 80 11 00 00 00 00 00 00 E1 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 17 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 17 00 2A 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [10:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:06:32]wFMCommunicate OK [10:06:32]requested_item fd.num is exist - process it [10:06:32]SAM_PROTO_GetFieldsCounters [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 13 00 00 [10:06:32]Write to MH i2c: E2 08 00 2B 3D 80 13 00 00 00 00 00 00 E4 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 62 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 62 00 2B 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 E1 [10:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C1 00 00 00 5E 04 04 00 C1 00 00 00 57 04 04 00 C2 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:06:32]wFMCommunicate OK [10:06:32]SAM_PROTO_GetFieldsCounters done [10:06:32]requested_item shift.num is exist - process it [10:06:32]requested_item shift.opened is exist - process it [10:06:32]req_shift_opened [10:06:32]FM_GetShiftState [10:06:32]SAM_PROTO_GetShiftState [10:06:32]wFMCommunicate request_size=4 [10:06:32]MH_SAM_APDU [10:06:32]CAPDU: 80 13 01 00 [10:06:32]Write to MH i2c: E2 08 00 2C 3D 80 13 01 00 00 00 00 00 E6 [10:06:32]Write i2c OK [10:06:32]MH_I2C_Read... [10:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:06:32]Read from MH i2c: E2 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 0E 00 [10:06:32]MH_I2C_Read... [10:06:32]Read from MH i2c: E2 0E 00 2C 3D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [10:06:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:06:32]wFMCommunicate OK [10:06:32]SAM_PROTO_GetShiftState done [10:06:32]FM_GetShiftState done [10:06:32]req_shift_opened done [10:06:32]requested_item shift.open_date is exist - process it [10:06:32]req_shift_open_date [10:06:32]req_shift_open_date done [10:06:32]produce_requested_data done [10:06:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188164,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:06:32]process_action_free close_receipt [10:06:32]json_value_free [10:06:32]json_value_free done [10:06:32]process_json_proto returns [10:06:32]Send response to host [10:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188164,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:06:32]free response buf [10:06:32]execute_script done [10:06:32]execute_script returns [10:06:32]free content buf [10:06:32]Sock 8.Close socket [10:06:32]Sock 8.Thread stoped [10:06:36]OFD Sender: No OFD packet to send [10:06:41]OFD Sender: No OFD packet to send [10:06:46]OFD Sender: No OFD packet to send [10:06:51]OFD Sender: No OFD packet to send [10:06:56]OFD Sender: No OFD packet to send [10:07:01]OFD Sender: No OFD packet to send [10:07:06]OFD Sender: No OFD packet to send [10:07:11]OFD Sender: No OFD packet to send [10:07:14]accept exits with 9 [10:07:14]New connection [10:07:14]New thread 3067055460 created [10:07:14]Thread 3067198820 joined [10:07:14]Waiting for new connection... [10:07:14] Sock 9.Parse request [10:07:14]Sock 9.Check first char [10:07:14]Sock 9.First char is OK [10:07:14]request: POST /json_proto HTTP/1.0 [10:07:14]Method: POST [10:07:14]URL: /json_proto [10:07:14]Method is POST - this is cgi request [10:07:14]url: /json_proto [10:07:14]query_string will be loaded in cgi processing [10:07:14]execute_cgi json_proto POST (null) [10:07:14]execute_cgi path=json_proto method=POST [10:07:14]POST find Content-Length [10:07:14]Host: 172.17.42.131:8080 [10:07:14]Content-Length: 688 [10:07:14]Content-Type: application/json [10:07:14] [10:07:14]POST finish read [10:07:14]Found Content-Length = 688 [10:07:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 27.210, "sum" : 2100.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:14]execute_script... [10:07: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)210216", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 27.210, "sum" : 2100.61, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2100.00, "total" : 2100.00, "payments": [ { "type": 0, "sum" : 2100.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:07:14]POST & json_proto [10:07:14]process_json_proto [10:07:14]json parsed OK: [10:07:14]protocol is kg_v1.0 [10:07:14]action value=close_receipt [10:07:14]process_action close_receipt [10:07:14]cmd_close_receipt [10:07:14]MH_GetDate [10:07:14]Write to MH i2c: F0 00 00 2D 3D 59 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 09 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: F0 09 00 2D 3D 00 55 79 17 67 A0 18 CA 66 96 [10:07:14]GetLastDocTimeStamp 1729591591 [10:07:14]current date 1729591637 [10:07:14]FM_GetShiftState [10:07:14]SAM_PROTO_GetShiftState [10:07:14]wFMCommunicate request_size=4 [10:07:14]MH_SAM_APDU [10:07:14]CAPDU: 80 13 01 00 [10:07:14]Write to MH i2c: E2 08 00 2E 3D 80 13 01 00 00 00 00 00 E8 [10:07:14]Write i2c OK [10:07:14]MH_I2C_Read... [10:07:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:14]Read from MH i2c: E2 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0E 00 [10:07:14]MH_I2C_Read... [10:07:14]Read from MH i2c: E2 0E 00 2E 3D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [10:07:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:07:14]wFMCommunicate OK [10:07:14]SAM_PROTO_GetShiftState done [10:07:14]FM_GetShiftState done [10:07:14]opened in 1729556094 [10:07:14]opened+sec_in_day 1729642494 [10:07:14]quantity*price = 210061 [10:07:14]sum+1 = 210062 [10:07:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.61 ИТОГО: 2100.00 Внесено: 2100.00 СДАЧА: 0.00 НСП 1% : 18.59 НДС 12% : 223.07 Наличными: 2100.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 194 22.10.2024 10:07 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188165 ФПД: 133368673007227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188165&fm=133368673007227&tin=02508201610067®Number=0000000000100030&sum=210000 [10:07:15]StoreToDocumentArchive [10:07:15]shift 461 fd 188165 [10:07:15]save to /storage/0461/doc_00188165 [10:07:15]save last doc name /storage/0461/doc_00188165 to /storage/kkm_last_doc_name [10:07:15]save OK [10:07:15]Clear old archive folders... [10:07:15]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:07:15]tlvbuf is 01B996D0 [10:07:15]SAM_PROTO_ClearQueue [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 09 00 00 [10:07:15]Write to MH i2c: E2 08 00 3B 3D 80 09 00 00 00 00 00 00 EA [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 3B 3D 00 90 00 EC [10:07:15]RAPDU: 90 00 [10:07:15]wFMCommunicate OK [10:07:15]SAM_PROTO_ClearQueue done [10:07:15]KKMCreateOFDPacket [10:07:15]OFDProtocolAddRootSTLVToBuf [10:07:15]FM_MakeSignedData [10:07:15]FM_MakeSignedData [10:07:15]SAM_PROTO_SignData [10:07:15]wFMCommunicate request_size=4 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 0D 01 02 [10:07:15]Write to MH i2c: E2 08 00 3C 3D 80 0D 01 02 00 00 00 00 F2 [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:07:15]Read from MH i2c: E2 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 [10:07:15]MH_I2C_Read... [10:07:15]Read from MH i2c: E2 03 00 3C 3D 00 90 00 ED [10:07:15]RAPDU: 90 00 [10:07:15]wFMCommunicate OK [10:07:15]wFMCommunicate request_size=255 [10:07:15]MH_SAM_APDU [10:07:15]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 55 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DF 02 [10:07:15]Write to MH i2c: E2 02 01 3D 3D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 55 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DF 02 00 00 BF [10:07:15]Write i2c OK [10:07:15]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 3D 3D 00 90 00 EE [10:07:16]RAPDU: 90 00 [10:07:16]wFMCommunicate OK [10:07:16]wFMCommunicate request_size=16 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 79 4C 50 60 F6 7B [10:07:16]Write to MH i2c: E2 13 00 3E 3D 80 0D 02 02 0B 00 00 35 04 06 00 79 4C 50 60 F6 7B 00 00 30 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 03 00 3E 3D 00 90 00 EF [10:07:16]RAPDU: 90 00 [10:07:16]wFMCommunicate OK [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 0D 03 02 [10:07:16]Write to MH i2c: E2 08 00 3F 3D 80 0D 03 02 00 00 00 00 F7 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 0B 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 0B 00 3F 3D 00 AC 1F 9A C0 C0 00 6A 3E 90 00 85 [10:07:16]RAPDU: AC 1F 9A C0 C0 00 6A 3E 90 00 [10:07:16]wFMCommunicate OK [10:07:16]SAM_PROTO_SignData done [10:07:16]FM_MakeSignedData done [10:07:16]CreateOFDProtocolMessage [10:07:16]wFMCommunicate request_size=4 [10:07:16]MH_SAM_APDU [10:07:16]CAPDU: 80 11 00 00 [10:07:16]Write to MH i2c: E2 08 00 40 3D 80 11 00 00 00 00 00 00 F7 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:16]Read from MH i2c: E2 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: E2 17 00 40 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [10:07:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:07:16]wFMCommunicate OK [10:07:16]CreateOFDProtocolMessage done [10:07:16]OFDSenderStorePacket 188165 [10:07:16]StoreOFDPacket docnum=188165 [10:07:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F3 28 0D 01 BF 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 55 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DF 02 00 35 04 06 00 79 4C 50 60 F6 7B AC 1F 9A C0 C0 00 6A 3E [10:07:16]CheckFolder [10:07:16]dirname=/storage/ofd_packets [10:07:16]CheckFolder done [10:07:16]ProducePacketName [10:07:16]name=ofd_packets/00188165 [10:07:16]NVStorageSaveData ofd_packets/00188165 [10:07:16]File name is /storage/ofd_packets/00188165 [10:07:16]Write 307 bytes [10:07:16]NVStorageSaveData done [10:07:16]OFDSenderStorePacket done [10:07:16]KKMCreateOFDPacket done [10:07:16]NVStorageSaveData kkm_last_timestamp [10:07:16]File name is /storage/kkm_last_timestamp [10:07:16]Write 4 bytes [10:07:16]NVStorageSaveData done [10:07:16]ExternCall_PrintAddStr [10:07:16]wPrintStart [10:07:16]Write to MH i2c: 01 00 00 41 3D 7E [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 41 3D 00 00 00 00 00 FF 0F 93 [10:07:16]RasterBufferAndPrint [10:07:16]line Счет N : (1)210216 [10:07:16]line ИНН: 02508201610067 [10:07:16]line Контрольно-Кассовый Чек [10:07:16]line ПРОДАЖА [10:07:16]line ТРК (МРК, ГНК) : 41 [10:07:16]line Товар: 2710194210 [10:07:16]line D-ENERGY ДТ-К-5 [10:07:16]line 27.210 * 77.20 [10:07:16]line = 2100.61 [10:07:16]line НДС 12% НСП 1% [10:07:16]line > о реализуемом товаре [10:07:16]line ОКРУГЛЕНИЕ: -0.61 [10:07:16]line ИТОГО: 2100.00 [10:07:16]line Внесено: 2100.00 [10:07:16]line СДАЧА: 0.00 [10:07:16]line НСП 1% : 18.59 [10:07:16]line НДС 12% : 223.07 [10:07:16]line Наличными: 2100.00 [10:07:16]line Безнал.: 0.00 [10:07:16]line Место: АЗС № 86 "Партнер Нефть" [10:07:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:07:16]line СНО: Общий режим [10:07:16]line Чек 194 22.10.2024 10:07 [10:07:16]line Смена: 461 ФФД: 1.0 [10:07:16]line ЗНМ: 0300000155 [10:07:16]line РНМ: 0000000000100030 [10:07:16]line Версия ККМ: 001 [10:07:16]line ФМ: 0000000000965340 [10:07:16]line ФД: 188165 [10:07:16]line ФПД: 133368673007227 [10:07:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100717&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188165&fm=133368673007227&tin=02508201610067®Number=0000000000100030&sum=210000 [10:07:16]written 0, free lines is 4095 [10:07:16]OFD Sender: Processing packet 188165 [packets to send 1062, broken 1061] [10:07:16]ProducePacketName [10:07:16]name=ofd_packets/00188165 [10:07:16]OFD Sender: To server: pG, [10:07:16]CommunicateWithHost lk.salyk.kg:30040 [10:07:16]ConnectInit lk.salyk.kg [10:07:16]Connected sock=10 [10:07:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F3 28 0D 01 BF 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4A 6A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8D 34 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 34 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 43 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 57 00 00 00 00 07 04 06 00 50 34 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C2 00 00 00 F4 03 04 00 55 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DF 02 00 35 04 06 00 79 4C 50 60 F6 7B AC 1F 9A C0 C0 00 6A 3E [10:07:16]Write to MH i2c: 01 00 00 6C 3D A9 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: 01 07 00 6C 3D 00 00 00 00 00 61 0C 1D [10:07:16]RasterBufferAndPrint [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]line [10:07:16]written 0, free lines is 3173 [10:07:16]MH_Cut [10:07:16]Write to MH i2c: D1 01 00 73 3D 01 82 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 01 00 [10:07:16]MH_I2C_Read... [10:07:16]Read from MH i2c: D1 01 00 73 3D 00 81 [10:07:16]Write to MH i2c: 01 00 00 74 3D B1 [10:07:16]Write i2c OK [10:07:16]MH_I2C_Read... [10:07:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 D2 47 00 5B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 DF 02 00 F4 03 04 00 43 23 17 67 B6 04 01 00 00 B3 39 A5 8C 35 24 B1 31 [10:07:16]CommunicateWithHost err = 0 [10:07:16]CheckOFDResponse [10:07:16]1017 (14) - 77093643461234 [10:07:16]1041 (16) - 0000000000965340 [10:07:16]1040 (4) - 188165 [10:07:16]1012 (4) - 22.10.2024 04:00 [10:07:16]1206 (1) - 0 [10:07:16]OFD Sender: Remove packet 188165 [10:07:16]ProducePacketName [10:07:16]name=ofd_packets/00188165 [10:07:16]NVStorageDeleteData [10:07:17]OFD Sender: No OFD packet to send [10:07:17]*** Cut start [10:07:17]*** Partial cut [10:07:17]*** CUTSNS_PIN = 1 [10:07:18]*** CUTSNS_PIN = 0 [10:07:18]*** Brake cut motor [10:07:18]Read from MH i2c: 01 [10:07:18]MH_I2C_Read... [10:07:18]*** Stop cut motor [10:07:18]*** Cut end [10:07:18]Read from MH i2c: 01 07 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: 01 07 00 74 3D 00 00 00 00 00 FF 0F C6 [10:07:18]process_action close_receipt done [10:07:18]requested_data is exist [10:07:18]produce_requested_data [10:07:18]requested_item fm.sn is exist - process it [10:07:18]wFMCommunicate request_size=4 [10:07:18]MH_SAM_APDU [10:07:18]CAPDU: 80 11 00 00 [10:07:18]Write to MH i2c: E2 08 00 75 3D 80 11 00 00 00 00 00 00 2C [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:07:18]Read from MH i2c: E2 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 17 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 17 00 75 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [10:07:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:07:18]wFMCommunicate OK [10:07:18]requested_item fd.num is exist - process it [10:07:18]SAM_PROTO_GetFieldsCounters [10:07:18]wFMCommunicate request_size=4 [10:07:18]MH_SAM_APDU [10:07:18]CAPDU: 80 13 00 00 [10:07:18]Write to MH i2c: E2 08 00 76 3D 80 13 00 00 00 00 00 00 2F [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:07:18]Read from MH i2c: E2 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 62 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 62 00 76 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 30 [10:07:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C2 00 00 00 5E 04 04 00 C2 00 00 00 57 04 04 00 C3 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:07:18]wFMCommunicate OK [10:07:18]SAM_PROTO_GetFieldsCounters done [10:07:18]requested_item shift.num is exist - process it [10:07:18]requested_item shift.opened is exist - process it [10:07:18]req_shift_opened [10:07:18]FM_GetShiftState [10:07:18]SAM_PROTO_GetShiftState [10:07:18]wFMCommunicate request_size=4 [10:07:18]MH_SAM_APDU [10:07:18]CAPDU: 80 13 01 00 [10:07:18]Write to MH i2c: E2 08 00 77 3D 80 13 01 00 00 00 00 00 31 [10:07:18]Write i2c OK [10:07:18]MH_I2C_Read... [10:07:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:07:18]Read from MH i2c: E2 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 0E 00 [10:07:18]MH_I2C_Read... [10:07:18]Read from MH i2c: E2 0E 00 77 3D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [10:07:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:07:18]wFMCommunicate OK [10:07:18]SAM_PROTO_GetShiftState done [10:07:18]FM_GetShiftState done [10:07:18]req_shift_opened done [10:07:18]requested_item shift.open_date is exist - process it [10:07:18]req_shift_open_date [10:07:18]req_shift_open_date done [10:07:18]produce_requested_data done [10:07:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188165,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:07:18]process_action_free close_receipt [10:07:18]json_value_free [10:07:18]json_value_free done [10:07:18]process_json_proto returns [10:07:18]Send response to host [10:07:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188165,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:07:18]free response buf [10:07:18]execute_script done [10:07:18]execute_script returns [10:07:18]free content buf [10:07:18]Sock 9.Close socket [10:07:18]Sock 9.Thread stoped [10:07:22]OFD Sender: No OFD packet to send [10:07:27]OFD Sender: No OFD packet to send [10:07:32]OFD Sender: No OFD packet to send [10:07:37]OFD Sender: No OFD packet to send [10:07:42]OFD Sender: No OFD packet to send [10:07:47]OFD Sender: No OFD packet to send [10:07:52]OFD Sender: No OFD packet to send [10:07:57]OFD Sender: No OFD packet to send [10:08:02]OFD Sender: No OFD packet to send [10:08:07]OFD Sender: No OFD packet to send [10:08:12]OFD Sender: No OFD packet to send [10:08:17]OFD Sender: No OFD packet to send [10:08:22]OFD Sender: No OFD packet to send [10:08:27]OFD Sender: No OFD packet to send [10:08:32]OFD Sender: No OFD packet to send [10:08:37]OFD Sender: No OFD packet to send [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:13]OFD Sender: No OFD packet to send [10:09:18]OFD Sender: No OFD packet to send [10:09:23]OFD Sender: No OFD packet to send [10:09:28]OFD Sender: No OFD packet to send [10:09:33]OFD Sender: No OFD packet to send [10:09:38]OFD Sender: No OFD packet to send [10:09:43]OFD Sender: No OFD packet to send [10:09:48]OFD Sender: No OFD packet to send [10:09:53]OFD Sender: No OFD packet to send [10:09:54]accept exits with 8 [10:09:54]New connection [10:09:54]New thread 3067198820 created [10:09:54]Thread 3067055460 joined [10:09:54]Waiting for new connection... [10:09:54] Sock 8.Parse request [10:09:54]Sock 8.Check first char [10:09:54]Sock 8.First char is OK [10:09:54]request: POST /json_proto HTTP/1.0 [10:09:54]Method: POST [10:09:54]URL: /json_proto [10:09:54]Method is POST - this is cgi request [10:09:54]url: /json_proto [10:09:54]query_string will be loaded in cgi processing [10:09:54]execute_cgi json_proto POST (null) [10:09:54]execute_cgi path=json_proto method=POST [10:09:54]POST find Content-Length [10:09:54]Host: 172.17.42.131:8080 [10:09:54]Content-Length: 677 [10:09:54]Content-Type: application/json [10:09:54] [10:09:54]POST finish read [10:09:54]Found Content-Length = 677 [10:09:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:54]execute_script... [10:09:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210217", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:09:54]POST & json_proto [10:09:54]process_json_proto [10:09:54]json parsed OK: [10:09:54]protocol is kg_v1.0 [10:09:54]action value=close_receipt [10:09:54]process_action close_receipt [10:09:54]cmd_close_receipt [10:09:54]MH_GetDate [10:09:54]Write to MH i2c: F0 00 00 78 3D A4 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 09 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: F0 09 00 78 3D 00 F5 79 17 67 A0 18 CA 66 81 [10:09:54]GetLastDocTimeStamp 1729591637 [10:09:54]current date 1729591797 [10:09:54]FM_GetShiftState [10:09:54]SAM_PROTO_GetShiftState [10:09:54]wFMCommunicate request_size=4 [10:09:54]MH_SAM_APDU [10:09:54]CAPDU: 80 13 01 00 [10:09:54]Write to MH i2c: E2 08 00 79 3D 80 13 01 00 00 00 00 00 33 [10:09:54]Write i2c OK [10:09:54]MH_I2C_Read... [10:09:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:09:54]Read from MH i2c: E2 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 [10:09:54]MH_I2C_Read... [10:09:54]Read from MH i2c: E2 0E 00 79 3D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 28 [10:09:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:09:54]wFMCommunicate OK [10:09:54]SAM_PROTO_GetShiftState done [10:09:54]FM_GetShiftState done [10:09:54]opened in 1729556094 [10:09:54]opened+sec_in_day 1729642494 [10:09:54]quantity*price = 50041 [10:09:54]sum+1 = 50042 [10:09:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 195 22.10.2024 10:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188166 ФПД: 252367350765387 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188166&fm=252367350765387&tin=02508201610067®Number=0000000000100030&sum=50000 [10:09:55]StoreToDocumentArchive [10:09:55]shift 461 fd 188166 [10:09:55]save to /storage/0461/doc_00188166 [10:09:55]save last doc name /storage/0461/doc_00188166 to /storage/kkm_last_doc_name [10:09:55]save OK [10:09:55]Clear old archive folders... [10:09:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:09:55]tlvbuf is 01BB4160 [10:09:55]SAM_PROTO_ClearQueue [10:09:55]wFMCommunicate request_size=4 [10:09:55]MH_SAM_APDU [10:09:55]CAPDU: 80 09 00 00 [10:09:55]Write to MH i2c: E2 08 00 86 3D 80 09 00 00 00 00 00 00 35 [10:09:55]Write i2c OK [10:09:55]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 86 3D 00 90 00 37 [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 87 3D 80 0D 01 02 00 00 00 00 3D [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 87 3D 00 90 00 38 [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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F5 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DF 02 00 35 04 06 00 E5 [10:09:56]Write to MH i2c: E2 02 01 88 3D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F5 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DF 02 00 35 04 06 00 E5 00 00 F9 [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 88 3D 00 90 00 39 [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 86 DA 4B 97 4B [10:09:56]Write to MH i2c: E2 0D 00 89 3D 80 0D 02 02 05 00 86 DA 4B 97 4B 00 00 D7 [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 89 3D 00 90 00 3A [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 8A 3D 80 0D 03 02 00 00 00 00 42 [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 8A 3D 00 FA 94 1F 4D E4 3B E6 D2 90 00 14 [10:09:56]RAPDU: FA 94 1F 4D E4 3B E6 D2 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 8B 3D 80 11 00 00 00 00 00 00 42 [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 8B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [10:09:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:09:56]wFMCommunicate OK [10:09:56]CreateOFDProtocolMessage done [10:09:56]OFDSenderStorePacket 188166 [10:09:56]StoreOFDPacket docnum=188166 [10:09:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 0C 07 01 7A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F5 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DF 02 00 35 04 06 00 E5 86 DA 4B 97 4B FA 94 1F 4D E4 3B E6 D2 [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/00188166 [10:09:56]NVStorageSaveData ofd_packets/00188166 [10:09:56]File name is /storage/ofd_packets/00188166 [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 8C 3D C9 [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 8C 3D 00 00 00 00 00 FF 0F DE [10:09:56]RasterBufferAndPrint [10:09:56]line Счет N : (1)210217 [10:09:56]line ИНН: 02508201610067 [10:09:56]line Контрольно-Кассовый Чек [10:09:56]line ПРОДАЖА [10:09:56]line ТРК (МРК, ГНК) : 42 [10:09:56]line Товар: 2710124130 [10:09:56]line Аи-92-К-3 [10:09:56]line 7.480 * 66.90 [10:09:56]line = 500.41 [10:09:56]line НДС 12% НСП 1% [10:09:56]line > о реализуемом товаре [10:09:56]line ОКРУГЛЕНИЕ: -0.41 [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 Место: АЗС № 86 "Партнер Нефть" [10:09:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:09:56]line СНО: Общий режим [10:09:56]line Чек 195 22.10.2024 10:09 [10:09:56]line Смена: 461 ФФД: 1.0 [10:09:56]line ЗНМ: 0300000155 [10:09:56]line РНМ: 0000000000100030 [10:09:56]line Версия ККМ: 001 [10:09:56]line ФМ: 0000000000965340 [10:09:56]line ФД: 188166 [10:09:56]line ФПД: 252367350765387 [10:09:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T100957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188166&fm=252367350765387&tin=02508201610067®Number=0000000000100030&sum=50000 [10:09:56]written 0, free lines is 4095 [10:09:56]OFD Sender: Processing packet 188166 [packets to send 1062, broken 1061] [10:09:56]ProducePacketName [10:09:56]name=ofd_packets/00188166 [10:09:56]OFD Sender: To server: pG, [10:09:56]CommunicateWithHost lk.salyk.kg:30040 [10:09:56]ConnectInit lk.salyk.kg [10:09:57]Write to MH i2c: 01 00 00 B7 3D F4 [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 B7 3D 00 00 00 00 00 5C 0C 63 [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 3167 [10:09:57]MH_Cut [10:09:57]Write to MH i2c: D1 01 00 BE 3D 01 CD [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 BE 3D 00 CC [10:09:57]Write to MH i2c: 01 00 00 BF 3D FC [10:09:57]Write i2c OK [10:09:57]MH_I2C_Read... [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 BF 3D 00 00 00 00 00 FF 0F 11 [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 C0 3D 80 11 00 00 00 00 00 00 77 [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 C0 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [10:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 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 C1 3D 80 13 00 00 00 00 00 00 7A [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 C1 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 7F [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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C3 00 00 00 5E 04 04 00 C3 00 00 00 57 04 04 00 C4 00 00 00 19 04 04 00 00 00 00 00 90 00 [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 C2 3D 80 13 01 00 00 00 00 00 7C [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 C2 3D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [10:09:59]RAPDU: 09 00 01 7E EE 16 67 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":"0000000000965340","fd.num":188166,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [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":"0000000000965340","fd.num":188166,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [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 8.Close socket [10:09:59]Sock 8.Thread stoped [10:12:05]ConnectInit Can't connect to host [10:12:05]CommunicateWithHost connect error [10:12:05]CommunicateWithHost err = -1 [10:12:05]OFD Sender: Server communicate error [10:12:10]OFD Sender: Processing packet 188166 [packets to send 1062, broken 1061] [10:12:10]ProducePacketName [10:12:10]name=ofd_packets/00188166 [10:12:10]OFD Sender: To server: pG, [10:12:10]CommunicateWithHost lk.salyk.kg:30040 [10:12:10]ConnectInit lk.salyk.kg [10:12:11]Connected sock=8 [10:12:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 0C 07 01 7A 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C3 00 00 00 F4 03 04 00 F5 79 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DF 02 00 35 04 06 00 E5 86 DA 4B 97 4B FA 94 1F 4D E4 3B E6 D2 [10:12:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 20 9F 47 00 4C 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 DF 02 00 F4 03 04 00 69 24 17 67 B6 04 01 00 00 CB 3C 92 3A 9E 1B 6B 24 [10:12:11]CommunicateWithHost err = 0 [10:12:11]CheckOFDResponse [10:12:11]1017 (14) - 77093643461234 [10:12:11]1041 (16) - 0000000000965340 [10:12:11]1040 (4) - 188166 [10:12:11]1012 (4) - 22.10.2024 04:04 [10:12:11]1206 (1) - 0 [10:12:11]OFD Sender: Remove packet 188166 [10:12:11]ProducePacketName [10:12:11]name=ofd_packets/00188166 [10:12:11]NVStorageDeleteData [10:12:12]OFD Sender: No OFD packet to send [10:12:17]OFD Sender: No OFD packet to send [10:12:22]OFD Sender: No OFD packet to send [10:12:27]OFD Sender: No OFD packet to send [10:12:32]OFD Sender: No OFD packet to send [10:12:37]OFD Sender: No OFD packet to send [10:12:42]OFD Sender: No OFD packet to send [10:12:47]OFD Sender: No OFD packet to send [10:12:52]OFD Sender: No OFD packet to send [10:12:57]OFD Sender: No OFD packet to send [10:13:02]OFD Sender: No OFD packet to send [10:13:07]OFD Sender: No OFD packet to send [10:13:12]OFD Sender: No OFD packet to send [10:13:17]OFD Sender: No OFD packet to send [10:13:22]OFD Sender: No OFD packet to send [10:13:27]OFD Sender: No OFD packet to send [10:13:32]OFD Sender: No OFD packet to send [10:13:37]OFD Sender: No OFD packet to send [10:13:42]OFD Sender: No OFD packet to send [10:13:47]OFD Sender: No OFD packet to send [10:13:52]OFD Sender: No OFD packet to send [10:13:57]OFD Sender: No OFD packet to send [10:14:02]OFD Sender: No OFD packet to send [10:14:07]OFD Sender: No OFD packet to send [10:14:12]OFD Sender: No OFD packet to send [10:14:17]OFD Sender: No OFD packet to send [10:14:22]OFD Sender: No OFD packet to send [10:14:27]OFD Sender: No OFD packet to send [10:14:32]OFD Sender: No OFD packet to send [10:14:37]OFD Sender: No OFD packet to send [10:14:42]OFD Sender: No OFD packet to send [10:14:47]OFD Sender: No OFD packet to send [10:14:52]OFD Sender: No OFD packet to send [10:14:57]OFD Sender: No OFD packet to send [10:15:02]OFD Sender: No OFD packet to send [10:15:07]OFD Sender: No OFD packet to send [10:15:12]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:28]accept exits with 9 [10:15:28]New connection [10:15:28]New thread 3067055460 created [10:15:28]Thread 3067198820 joined [10:15:28]Waiting for new connection... [10:15:28] Sock 9.Parse request [10:15:28]Sock 9.Check first char [10:15:28]Sock 9.First char is OK [10:15:28]request: POST /json_proto HTTP/1.0 [10:15:28]Method: POST [10:15:28]URL: /json_proto [10:15:28]Method is POST - this is cgi request [10:15:28]url: /json_proto [10:15:28]query_string will be loaded in cgi processing [10:15:28]execute_cgi json_proto POST (null) [10:15:28]execute_cgi path=json_proto method=POST [10:15:28]POST find Content-Length [10:15:28]Host: 172.17.42.131:8080 [10:15:28]Content-Length: 754 [10:15:28]Content-Type: application/json [10:15:28] [10:15:28]POST finish read [10:15:28]Found Content-Length = 754 [10:15:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210218", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089116", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:28]execute_script... [10:15: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)210218", "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" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30089116", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:15:28]POST & json_proto [10:15:28]process_json_proto [10:15:28]json parsed OK: [10:15:28]protocol is kg_v1.0 [10:15:28]action value=close_receipt [10:15:28]process_action close_receipt [10:15:28]cmd_close_receipt [10:15:28]MH_GetDate [10:15:28]Write to MH i2c: F0 00 00 C3 3D EF [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: F0 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: F0 09 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: F0 09 00 C3 3D 00 43 7B 17 67 A0 18 CA 66 1C [10:15:28]GetLastDocTimeStamp 1729591797 [10:15:28]current date 1729592131 [10:15:28]FM_GetShiftState [10:15:28]SAM_PROTO_GetShiftState [10:15:28]wFMCommunicate request_size=4 [10:15:28]MH_SAM_APDU [10:15:28]CAPDU: 80 13 01 00 [10:15:28]Write to MH i2c: E2 08 00 C4 3D 80 13 01 00 00 00 00 00 7E [10:15:28]Write i2c OK [10:15:28]MH_I2C_Read... [10:15:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:28]Read from MH i2c: E2 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 [10:15:28]MH_I2C_Read... [10:15:28]Read from MH i2c: E2 0E 00 C4 3D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 73 [10:15:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:15:28]wFMCommunicate OK [10:15:28]SAM_PROTO_GetShiftState done [10:15:28]FM_GetShiftState done [10:15:28]opened in 1729556094 [10:15:28]opened+sec_in_day 1729642494 [10:15:28]quantity*price = 0 [10:15:28]sum+1 = 1 [10:15:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 196 22.10.2024 10:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30089116 ФМ: 0000000000965340 ФД: 188167 ФПД: 109224997734465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101531&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188167&fm=109224997734465&tin=02508201610067®Number=0000000000100030&sum=0 [10:15:29]StoreToDocumentArchive [10:15:29]shift 461 fd 188167 [10:15:29]save to /storage/0461/doc_00188167 [10:15:29]save last doc name /storage/0461/doc_00188167 to /storage/kkm_last_doc_name [10:15:29]save OK [10:15:29]Clear old archive folders... [10:15:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:15:29]tlvbuf is 01CAA360 [10:15:29]SAM_PROTO_ClearQueue [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 09 00 00 [10:15:29]Write to MH i2c: E2 08 00 D1 3D 80 09 00 00 00 00 00 00 80 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 D1 3D 00 90 00 82 [10:15:29]RAPDU: 90 00 [10:15:29]wFMCommunicate OK [10:15:29]SAM_PROTO_ClearQueue done [10:15:29]KKMCreateOFDPacket [10:15:29]OFDProtocolAddRootSTLVToBuf [10:15:29]FM_MakeSignedData [10:15:29]FM_MakeSignedData [10:15:29]SAM_PROTO_SignData [10:15:29]wFMCommunicate request_size=4 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 0D 01 02 [10:15:29]Write to MH i2c: E2 08 00 D2 3D 80 0D 01 02 00 00 00 00 88 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:15:29]Read from MH i2c: E2 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 [10:15:29]MH_I2C_Read... [10:15:29]Read from MH i2c: E2 03 00 D2 3D 00 90 00 83 [10:15:29]RAPDU: 90 00 [10:15:29]wFMCommunicate OK [10:15:29]wFMCommunicate request_size=255 [10:15:29]MH_SAM_APDU [10:15:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 43 7B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DF 02 00 35 04 06 00 63 [10:15:29]Write to MH i2c: E2 02 01 D3 3D 80 0D 02 02 FA 00 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 43 7B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DF 02 00 35 04 06 00 63 00 00 65 [10:15:29]Write i2c OK [10:15:29]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 D3 3D 00 90 00 84 [10:15:30]RAPDU: 90 00 [10:15:30]wFMCommunicate OK [10:15:30]wFMCommunicate request_size=10 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 0D 02 02 05 56 ED 30 C8 41 [10:15:30]Write to MH i2c: E2 0D 00 D4 3D 80 0D 02 02 05 00 56 ED 30 C8 41 00 00 11 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 03 00 D4 3D 00 90 00 85 [10:15:30]RAPDU: 90 00 [10:15:30]wFMCommunicate OK [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 0D 03 02 [10:15:30]Write to MH i2c: E2 08 00 D5 3D 80 0D 03 02 00 00 00 00 8D [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 0B 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 0B 00 D5 3D 00 91 40 F1 72 27 BE 62 75 90 00 7E [10:15:30]RAPDU: 91 40 F1 72 27 BE 62 75 90 00 [10:15:30]wFMCommunicate OK [10:15:30]SAM_PROTO_SignData done [10:15:30]FM_MakeSignedData done [10:15:30]CreateOFDProtocolMessage [10:15:30]wFMCommunicate request_size=4 [10:15:30]MH_SAM_APDU [10:15:30]CAPDU: 80 11 00 00 [10:15:30]Write to MH i2c: E2 08 00 D6 3D 80 11 00 00 00 00 00 00 8D [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:30]Read from MH i2c: E2 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 17 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: E2 17 00 D6 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [10:15:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:15:30]wFMCommunicate OK [10:15:30]CreateOFDProtocolMessage done [10:15:30]OFDSenderStorePacket 188167 [10:15:30]StoreOFDPacket docnum=188167 [10:15:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 7E 07 01 49 9C 5A 03 01 00 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 43 7B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DF 02 00 35 04 06 00 63 56 ED 30 C8 41 91 40 F1 72 27 BE 62 75 [10:15:30]CheckFolder [10:15:30]dirname=/storage/ofd_packets [10:15:30]CheckFolder done [10:15:30]ProducePacketName [10:15:30]name=ofd_packets/00188167 [10:15:30]NVStorageSaveData ofd_packets/00188167 [10:15:30]File name is /storage/ofd_packets/00188167 [10:15:30]Write 301 bytes [10:15:30]NVStorageSaveData done [10:15:30]OFDSenderStorePacket done [10:15:30]KKMCreateOFDPacket done [10:15:30]NVStorageSaveData kkm_last_timestamp [10:15:30]File name is /storage/kkm_last_timestamp [10:15:30]Write 4 bytes [10:15:30]NVStorageSaveData done [10:15:30]ExternCall_PrintAddStr [10:15:30]wPrintStart [10:15:30]Write to MH i2c: 01 00 00 D7 3D 14 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 07 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 07 00 D7 3D 00 00 00 00 00 FF 0F 29 [10:15:30]RasterBufferAndPrint [10:15:30]line Счет N : (1)210218 [10:15:30]line ИНН: 02508201610067 [10:15:30]line Контрольно-Кассовый Чек [10:15:30]line ПРОДАЖА [10:15:30]line ТРК (МРК, ГНК) : 43 [10:15:30]line Товар: 2710124500 [10:15:30]line Аи-95-К-3 [10:15:30]line 15.000 * 0.00 [10:15:30]line = 0.00 [10:15:30]line НДС 12% НСП 1% [10:15:30]line > о реализуемом товаре [10:15:30]line ИТОГО: 0.00 [10:15:30]line НСП 1% : 0.00 [10:15:30]line НДС 12% : 0.00 [10:15:30]line Наличными: 0.00 [10:15:30]line Безнал.: 0.00 [10:15:30]line Место: АЗС № 86 "Партнер Нефть" [10:15:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:15:30]line СНО: Общий режим [10:15:30]line Чек 196 22.10.2024 10:15 [10:15:30]line Смена: 461 ФФД: 1.0 [10:15:30]line ЗНМ: 0300000155 [10:15:30]line РНМ: 0000000000100030 [10:15:30]line Версия ККМ: 001 [10:15:30]line Талоны: ТК ГПНА Online [10:15:30]line 30089116 [10:15:30]line ФМ: 0000000000965340 [10:15:30]line ФД: 188167 [10:15:30]line ФПД: 109224997734465 [10:15:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101531&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188167&fm=109224997734465&tin=02508201610067®Number=0000000000100030&sum=0 [10:15:30]written 0, free lines is 4095 [10:15:30]OFD Sender: Processing packet 188167 [packets to send 1062, broken 1061] [10:15:30]ProducePacketName [10:15:30]name=ofd_packets/00188167 [10:15:30]OFD Sender: To server: pG, [10:15:30]CommunicateWithHost lk.salyk.kg:30040 [10:15:30]ConnectInit lk.salyk.kg [10:15:30]Connected sock=11 [10:15:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 16 7E 07 01 49 9C 5A 03 01 00 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 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C4 00 00 00 F4 03 04 00 43 7B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 DF 02 00 35 04 06 00 63 56 ED 30 C8 41 91 40 F1 72 27 BE 62 75 [10:15:30]Write to MH i2c: 01 00 00 01 3E 3F [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 07 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: 01 07 00 01 3E 00 00 00 00 00 88 0C DA [10:15:30]RasterBufferAndPrint [10:15:30]line [10:15:30]line [10:15:30]line [10:15:30]line [10:15:30]line [10:15:30]written 0, free lines is 3212 [10:15:30]MH_Cut [10:15:30]Write to MH i2c: D1 01 00 08 3E 01 18 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: D1 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: D1 01 00 [10:15:30]MH_I2C_Read... [10:15:30]Read from MH i2c: D1 01 00 08 3E 00 17 [10:15:30]Write to MH i2c: 01 00 00 09 3E 47 [10:15:30]Write i2c OK [10:15:30]MH_I2C_Read... [10:15:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1B 94 47 00 6D 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 39 36 35 33 34 30 10 04 04 00 07 DF 02 00 F4 03 04 00 31 25 17 67 B6 04 01 00 00 F2 75 77 01 27 D7 4E 3F [10:15:31]CommunicateWithHost err = 0 [10:15:31]CheckOFDResponse [10:15:31]1017 (14) - 77093643461234 [10:15:31]1041 (16) - 0000000000965340 [10:15:31]1040 (4) - 188167 [10:15:31]1012 (4) - 22.10.2024 04:08 [10:15:31]1206 (1) - 0 [10:15:31]OFD Sender: Remove packet 188167 [10:15:31]ProducePacketName [10:15:31]name=ofd_packets/00188167 [10:15:31]NVStorageDeleteData [10:15:31]OFD Sender: No OFD packet to send [10:15:32]*** Cut start [10:15:32]*** Partial cut [10:15:32]*** CUTSNS_PIN = 1 [10:15:32]*** CUTSNS_PIN = 0 [10:15:32]*** Brake cut motor [10:15:32]Read from MH i2c: 01 [10:15:32]MH_I2C_Read... [10:15:32]*** Stop cut motor [10:15:32]*** Cut end [10:15:32]Read from MH i2c: 01 07 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: 01 07 00 09 3E 00 00 00 00 00 FF 0F 5C [10:15:32]process_action close_receipt done [10:15:32]requested_data is exist [10:15:32]produce_requested_data [10:15:32]requested_item fm.sn is exist - process it [10:15:32]wFMCommunicate request_size=4 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 11 00 00 [10:15:32]Write to MH i2c: E2 08 00 0A 3E 80 11 00 00 00 00 00 00 C2 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 17 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 17 00 0A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 10 [10:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:15:32]wFMCommunicate OK [10:15:32]requested_item fd.num is exist - process it [10:15:32]SAM_PROTO_GetFieldsCounters [10:15:32]wFMCommunicate request_size=4 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 13 00 00 [10:15:32]Write to MH i2c: E2 08 00 0B 3E 80 13 00 00 00 00 00 00 C5 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 62 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 62 00 0B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [10:15:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C4 00 00 00 5E 04 04 00 C4 00 00 00 57 04 04 00 C5 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:15:32]wFMCommunicate OK [10:15:32]SAM_PROTO_GetFieldsCounters done [10:15:32]requested_item shift.num is exist - process it [10:15:32]requested_item shift.opened is exist - process it [10:15:32]req_shift_opened [10:15:32]FM_GetShiftState [10:15:32]SAM_PROTO_GetShiftState [10:15:32]wFMCommunicate request_size=4 [10:15:32]MH_SAM_APDU [10:15:32]CAPDU: 80 13 01 00 [10:15:32]Write to MH i2c: E2 08 00 0C 3E 80 13 01 00 00 00 00 00 C7 [10:15:32]Write i2c OK [10:15:32]MH_I2C_Read... [10:15:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:15:32]Read from MH i2c: E2 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 0E 00 [10:15:32]MH_I2C_Read... [10:15:32]Read from MH i2c: E2 0E 00 0C 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BC [10:15:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:15:32]wFMCommunicate OK [10:15:32]SAM_PROTO_GetShiftState done [10:15:32]FM_GetShiftState done [10:15:32]req_shift_opened done [10:15:32]requested_item shift.open_date is exist - process it [10:15:32]req_shift_open_date [10:15:32]req_shift_open_date done [10:15:32]produce_requested_data done [10:15:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188167,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:15:32]process_action_free close_receipt [10:15:32]json_value_free [10:15:32]json_value_free done [10:15:32]process_json_proto returns [10:15:32]Send response to host [10:15:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188167,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:15:32]free response buf [10:15:32]execute_script done [10:15:32]execute_script returns [10:15:32]free content buf [10:15:32]Sock 9.Close socket [10:15:32]Sock 9.Thread stoped [10:15:36]OFD Sender: No OFD packet to send [10:15:41]OFD Sender: No OFD packet to send [10:15:46]OFD Sender: No OFD packet to send [10:15:51]OFD Sender: No OFD packet to send [10:15:56]OFD Sender: No OFD packet to send [10:16:01]OFD Sender: No OFD packet to send [10:16:06]OFD Sender: No OFD packet to send [10:16:11]OFD Sender: No OFD packet to send [10:16:16]OFD Sender: No OFD packet to send [10:16:21]OFD Sender: No OFD packet to send [10:16:26]OFD Sender: No OFD packet to send [10:16:31]OFD Sender: No OFD packet to send [10:16:36]OFD Sender: No OFD packet to send [10:16:41]OFD Sender: No OFD packet to send [10:16:46]OFD Sender: No OFD packet to send [10:16:51]OFD Sender: No OFD packet to send [10:16:57]OFD Sender: No OFD packet to send [10:17:02]OFD Sender: No OFD packet to send [10:17:07]OFD Sender: No OFD packet to send [10:17:12]OFD Sender: No OFD packet to send [10:17:17]OFD Sender: No OFD packet to send [10:17:22]OFD Sender: No OFD packet to send [10:17:27]OFD Sender: No OFD packet to send [10:17:32]OFD Sender: No OFD packet to send [10:17:37]OFD Sender: No OFD packet to send [10:17:42]OFD Sender: No OFD packet to send [10:17:47]OFD Sender: No OFD packet to send [10:17:52]OFD Sender: No OFD packet to send [10:17:57]OFD Sender: No OFD packet to send [10:18:02]OFD Sender: No OFD packet to send [10:18:07]OFD Sender: No OFD packet to send [10:18:12]OFD Sender: No OFD packet to send [10:18:17]OFD Sender: No OFD packet to send [10:18:22]OFD Sender: No OFD packet to send [10:18:27]OFD Sender: No OFD packet to send [10:18:32]OFD Sender: No OFD packet to send [10:18:37]OFD Sender: No OFD packet to send [10:18:42]OFD Sender: No OFD packet to send [10:18:47]OFD Sender: No OFD packet to send [10:18:52]OFD Sender: No OFD packet to send [10:18:57]OFD Sender: No OFD packet to send [10:19:02]OFD Sender: No OFD packet to send [10:19:07]OFD Sender: No OFD packet to send [10:19:12]OFD Sender: No OFD packet to send [10:19:16]accept exits with 8 [10:19:16]New connection [10:19:16]New thread 3067198820 created [10:19:16]Thread 3067055460 joined [10:19:16]Waiting for new connection... [10:19:16] Sock 8.Parse request [10:19:16]Sock 8.Check first char [10:19:16]Sock 8.First char is OK [10:19:16]request: POST /json_proto HTTP/1.0 [10:19:16]Method: POST [10:19:16]URL: /json_proto [10:19:16]Method is POST - this is cgi request [10:19:16]url: /json_proto [10:19:16]query_string will be loaded in cgi processing [10:19:16]execute_cgi json_proto POST (null) [10:19:16]execute_cgi path=json_proto method=POST [10:19:16]POST find Content-Length [10:19:16]Host: 172.17.42.131:8080 [10:19:16]Content-Length: 677 [10:19:16]Content-Type: application/json [10:19:16] [10:19:16]POST finish read [10:19:16]Found Content-Length = 677 [10:19:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:16]execute_script... [10:19: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)210219", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:19:16]POST & json_proto [10:19:16]process_json_proto [10:19:16]json parsed OK: [10:19:16]protocol is kg_v1.0 [10:19:16]action value=close_receipt [10:19:16]process_action close_receipt [10:19:16]cmd_close_receipt [10:19:16]MH_GetDate [10:19:16]Write to MH i2c: F0 00 00 0D 3E 3A [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: F0 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: F0 09 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: F0 09 00 0D 3E 00 27 7C 17 67 A0 18 CA 66 4C [10:19:16]GetLastDocTimeStamp 1729592131 [10:19:16]current date 1729592359 [10:19:16]FM_GetShiftState [10:19:16]SAM_PROTO_GetShiftState [10:19:16]wFMCommunicate request_size=4 [10:19:16]MH_SAM_APDU [10:19:16]CAPDU: 80 13 01 00 [10:19:16]Write to MH i2c: E2 08 00 0E 3E 80 13 01 00 00 00 00 00 C9 [10:19:16]Write i2c OK [10:19:16]MH_I2C_Read... [10:19:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:16]Read from MH i2c: E2 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 0E 00 [10:19:16]MH_I2C_Read... [10:19:16]Read from MH i2c: E2 0E 00 0E 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [10:19:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:19:16]wFMCommunicate OK [10:19:16]SAM_PROTO_GetShiftState done [10:19:16]FM_GetShiftState done [10:19:16]opened in 1729556094 [10:19:16]opened+sec_in_day 1729642494 [10:19:16]quantity*price = 25020 [10:19:16]sum+1 = 25022 [10:19:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 197 22.10.2024 10:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188168 ФПД: 127558062001645 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101919&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188168&fm=127558062001645&tin=02508201610067®Number=0000000000100030&sum=25000 [10:19:17]StoreToDocumentArchive [10:19:17]shift 461 fd 188168 [10:19:17]save to /storage/0461/doc_00188168 [10:19:17]save last doc name /storage/0461/doc_00188168 to /storage/kkm_last_doc_name [10:19:17]save OK [10:19:17]Clear old archive folders... [10:19:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:19:17]tlvbuf is 01B92230 [10:19:17]SAM_PROTO_ClearQueue [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 09 00 00 [10:19:17]Write to MH i2c: E2 08 00 1B 3E 80 09 00 00 00 00 00 00 CB [10:19:17]OFD Sender: No OFD packet to send [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 1B 3E 00 90 00 CD [10:19:17]RAPDU: 90 00 [10:19:17]wFMCommunicate OK [10:19:17]SAM_PROTO_ClearQueue done [10:19:17]KKMCreateOFDPacket [10:19:17]OFDProtocolAddRootSTLVToBuf [10:19:17]FM_MakeSignedData [10:19:17]FM_MakeSignedData [10:19:17]SAM_PROTO_SignData [10:19:17]wFMCommunicate request_size=4 [10:19:17]MH_SAM_APDU [10:19:17]CAPDU: 80 0D 01 02 [10:19:17]Write to MH i2c: E2 08 00 1C 3E 80 0D 01 02 00 00 00 00 D3 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:17]Read from MH i2c: E2 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 [10:19:17]MH_I2C_Read... [10:19:17]Read from MH i2c: E2 03 00 1C 3E 00 90 00 CE [10:19:17]RAPDU: 90 00 [10:19:17]wFMCommunicate OK [10:19:17]wFMCommunicate request_size=255 [10:19:17]MH_SAM_APDU [10:19: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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 27 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DF 02 00 35 04 06 00 74 [10:19:17]Write to MH i2c: E2 02 01 1D 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 27 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DF 02 00 35 04 06 00 74 00 00 30 [10:19:17]Write i2c OK [10:19:17]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 1D 3E 00 90 00 CF [10:19:18]RAPDU: 90 00 [10:19:18]wFMCommunicate OK [10:19:18]wFMCommunicate request_size=10 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 0D 02 02 05 03 6C F9 4D ED [10:19:18]Write to MH i2c: E2 0D 00 1E 3E 80 0D 02 02 05 00 03 6C F9 4D ED 00 00 82 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 03 00 1E 3E 00 90 00 D0 [10:19:18]RAPDU: 90 00 [10:19:18]wFMCommunicate OK [10:19:18]wFMCommunicate request_size=4 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 0D 03 02 [10:19:18]Write to MH i2c: E2 08 00 1F 3E 80 0D 03 02 00 00 00 00 D8 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 0B 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 0B 00 1F 3E 00 D2 B9 DF 1B A3 5B 18 C1 90 00 35 [10:19:18]RAPDU: D2 B9 DF 1B A3 5B 18 C1 90 00 [10:19:18]wFMCommunicate OK [10:19:18]SAM_PROTO_SignData done [10:19:18]FM_MakeSignedData done [10:19:18]CreateOFDProtocolMessage [10:19:18]wFMCommunicate request_size=4 [10:19:18]MH_SAM_APDU [10:19:18]CAPDU: 80 11 00 00 [10:19:18]Write to MH i2c: E2 08 00 20 3E 80 11 00 00 00 00 00 00 D8 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:18]Read from MH i2c: E2 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 17 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: E2 17 00 20 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [10:19:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:19:18]wFMCommunicate OK [10:19:18]CreateOFDProtocolMessage done [10:19:18]OFDSenderStorePacket 188168 [10:19:18]StoreOFDPacket docnum=188168 [10:19:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E7 10 07 01 65 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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 27 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DF 02 00 35 04 06 00 74 03 6C F9 4D ED D2 B9 DF 1B A3 5B 18 C1 [10:19:18]CheckFolder [10:19:18]dirname=/storage/ofd_packets [10:19:18]CheckFolder done [10:19:18]ProducePacketName [10:19:18]name=ofd_packets/00188168 [10:19:18]NVStorageSaveData ofd_packets/00188168 [10:19:18]File name is /storage/ofd_packets/00188168 [10:19:18]Write 301 bytes [10:19:18]NVStorageSaveData done [10:19:18]OFDSenderStorePacket done [10:19:18]KKMCreateOFDPacket done [10:19:18]NVStorageSaveData kkm_last_timestamp [10:19:18]File name is /storage/kkm_last_timestamp [10:19:18]Write 4 bytes [10:19:18]NVStorageSaveData done [10:19:18]ExternCall_PrintAddStr [10:19:18]wPrintStart [10:19:18]Write to MH i2c: 01 00 00 21 3E 5F [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 07 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 07 00 21 3E 00 00 00 00 00 FF 0F 74 [10:19:18]RasterBufferAndPrint [10:19:18]line Счет N : (1)210219 [10:19:18]line ИНН: 02508201610067 [10:19:18]line Контрольно-Кассовый Чек [10:19:18]line ПРОДАЖА [10:19:18]line ТРК (МРК, ГНК) : 42 [10:19:18]line Товар: 2710124130 [10:19:18]line Аи-92-К-3 [10:19:18]line 3.740 * 66.90 [10:19:18]line = 250.21 [10:19:18]line НДС 12% НСП 1% [10:19:18]line > о реализуемом товаре [10:19:18]line ОКРУГЛЕНИЕ: -0.21 [10:19:18]line ИТОГО: 250.00 [10:19:18]line Внесено: 250.00 [10:19:18]line СДАЧА: 0.00 [10:19:18]line НСП 1% : 2.21 [10:19:18]line НДС 12% : 26.57 [10:19:18]line Наличными: 250.00 [10:19:18]line Безнал.: 0.00 [10:19:18]line Место: АЗС № 86 "Партнер Нефть" [10:19:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:19:18]line СНО: Общий режим [10:19:18]line Чек 197 22.10.2024 10:19 [10:19:18]line Смена: 461 ФФД: 1.0 [10:19:18]line ЗНМ: 0300000155 [10:19:18]line РНМ: 0000000000100030 [10:19:18]line Версия ККМ: 001 [10:19:18]line ФМ: 0000000000965340 [10:19:18]line ФД: 188168 [10:19:18]line ФПД: 127558062001645 [10:19:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T101919&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188168&fm=127558062001645&tin=02508201610067®Number=0000000000100030&sum=25000 [10:19:18]written 0, free lines is 4095 [10:19:18]OFD Sender: Processing packet 188168 [packets to send 1062, broken 1061] [10:19:18]ProducePacketName [10:19:18]name=ofd_packets/00188168 [10:19:18]OFD Sender: To server: pG, [10:19:18]CommunicateWithHost lk.salyk.kg:30040 [10:19:18]ConnectInit lk.salyk.kg [10:19:18]Connected sock=10 [10:19:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E7 10 07 01 65 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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 00 00 00 F4 03 04 00 27 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 DF 02 00 35 04 06 00 74 03 6C F9 4D ED D2 B9 DF 1B A3 5B 18 C1 [10:19:18]Write to MH i2c: 01 00 00 4C 3E 8A [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 07 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: 01 07 00 4C 3E 00 00 00 00 00 5A 0C F7 [10:19:18]RasterBufferAndPrint [10:19:18]line [10:19:18]line [10:19:18]line [10:19:18]line [10:19:18]line [10:19:18]written 0, free lines is 3167 [10:19:18]MH_Cut [10:19:18]Write to MH i2c: D1 01 00 53 3E 01 63 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: D1 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: D1 01 00 [10:19:18]MH_I2C_Read... [10:19:18]Read from MH i2c: D1 01 00 53 3E 00 62 [10:19:18]Write to MH i2c: 01 00 00 54 3E 92 [10:19:18]Write i2c OK [10:19:18]MH_I2C_Read... [10:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6E 95 47 00 BB 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 39 36 35 33 34 30 10 04 04 00 08 DF 02 00 F4 03 04 00 14 26 17 67 B6 04 01 00 00 88 2B 9F 86 3D FB 86 25 [10:19:18]CommunicateWithHost err = 0 [10:19:18]CheckOFDResponse [10:19:18]1017 (14) - 77093643461234 [10:19:18]1041 (16) - 0000000000965340 [10:19:18]1040 (4) - 188168 [10:19:18]1012 (4) - 22.10.2024 04:12 [10:19:18]1206 (1) - 0 [10:19:18]OFD Sender: Remove packet 188168 [10:19:18]ProducePacketName [10:19:18]name=ofd_packets/00188168 [10:19:18]NVStorageDeleteData [10:19:19]OFD Sender: No OFD packet to send [10:19:19]*** Cut start [10:19:19]*** Partial cut [10:19:19]*** CUTSNS_PIN = 1 [10:19:19]*** CUTSNS_PIN = 0 [10:19:20]*** Brake cut motor [10:19:20]Read from MH i2c: 01 [10:19:20]MH_I2C_Read... [10:19:20]*** Stop cut motor [10:19:20]*** Cut end [10:19:20]Read from MH i2c: 01 07 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: 01 07 00 54 3E 00 00 00 00 00 FF 0F A7 [10:19:20]process_action close_receipt done [10:19:20]requested_data is exist [10:19:20]produce_requested_data [10:19:20]requested_item fm.sn is exist - process it [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 11 00 00 [10:19:20]Write to MH i2c: E2 08 00 55 3E 80 11 00 00 00 00 00 00 0D [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 17 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 17 00 55 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5B [10:19:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:19:20]wFMCommunicate OK [10:19:20]requested_item fd.num is exist - process it [10:19:20]SAM_PROTO_GetFieldsCounters [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 13 00 00 [10:19:20]Write to MH i2c: E2 08 00 56 3E 80 13 00 00 00 00 00 00 10 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 62 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 62 00 56 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 1D [10:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C5 00 00 00 5E 04 04 00 C5 00 00 00 57 04 04 00 C6 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_GetFieldsCounters done [10:19:20]requested_item shift.num is exist - process it [10:19:20]requested_item shift.opened is exist - process it [10:19:20]req_shift_opened [10:19:20]FM_GetShiftState [10:19:20]SAM_PROTO_GetShiftState [10:19:20]wFMCommunicate request_size=4 [10:19:20]MH_SAM_APDU [10:19:20]CAPDU: 80 13 01 00 [10:19:20]Write to MH i2c: E2 08 00 57 3E 80 13 01 00 00 00 00 00 12 [10:19:20]Write i2c OK [10:19:20]MH_I2C_Read... [10:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:20]Read from MH i2c: E2 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0E 00 [10:19:20]MH_I2C_Read... [10:19:20]Read from MH i2c: E2 0E 00 57 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 07 [10:19:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:19:20]wFMCommunicate OK [10:19:20]SAM_PROTO_GetShiftState done [10:19:20]FM_GetShiftState done [10:19:20]req_shift_opened done [10:19:20]requested_item shift.open_date is exist - process it [10:19:20]req_shift_open_date [10:19:20]req_shift_open_date done [10:19:20]produce_requested_data done [10:19:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188168,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:19:20]process_action_free close_receipt [10:19:20]json_value_free [10:19:20]json_value_free done [10:19:20]process_json_proto returns [10:19:20]Send response to host [10:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188168,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:19:20]free response buf [10:19:20]execute_script done [10:19:20]execute_script returns [10:19:20]free content buf [10:19:20]Sock 8.Close socket [10:19:20]Sock 8.Thread stoped [10:19:24]OFD Sender: No OFD packet to send [10:19:29]OFD Sender: No OFD packet to send [10:19:34]OFD Sender: No OFD packet to send [10:19:39]OFD Sender: No OFD packet to send [10:19:44]OFD Sender: No OFD packet to send [10:19:49]OFD Sender: No OFD packet to send [10:19:54]OFD Sender: No OFD packet to send [10:19:59]OFD Sender: No OFD packet to send [10:20:04]OFD Sender: No OFD packet to send [10:20:09]OFD Sender: No OFD packet to send [10:20:14]OFD Sender: No OFD packet to send [10:20:19]OFD Sender: No OFD packet to send [10:20:22]accept exits with 9 [10:20:22]New connection [10:20:22]New thread 3067055460 created [10:20:22]Thread 3067198820 joined [10:20:22]Waiting for new connection... [10:20:22] Sock 9.Parse request [10:20:22]Sock 9.Check first char [10:20:22]Sock 9.First char is OK [10:20:22]request: POST /json_proto HTTP/1.0 [10:20:22]Method: POST [10:20:22]URL: /json_proto [10:20:22]Method is POST - this is cgi request [10:20:22]url: /json_proto [10:20:22]query_string will be loaded in cgi processing [10:20:22]execute_cgi json_proto POST (null) [10:20:22]execute_cgi path=json_proto method=POST [10:20:22]POST find Content-Length [10:20:22]Host: 172.17.42.131:8080 [10:20:22]Content-Length: 682 [10:20:22]Content-Type: application/json [10:20:22] [10:20:22]POST finish read [10:20:22]Found Content-Length = 682 [10:20:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:20:22]execute_script... [10:20: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)210220", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:20:22]POST & json_proto [10:20:22]process_json_proto [10:20:22]json parsed OK: [10:20:22]protocol is kg_v1.0 [10:20:22]action value=close_receipt [10:20:22]process_action close_receipt [10:20:22]cmd_close_receipt [10:20:22]MH_GetDate [10:20:22]Write to MH i2c: F0 00 00 58 3E 85 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: F0 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: F0 09 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: F0 09 00 58 3E 00 69 7C 17 67 A0 18 CA 66 D9 [10:20:22]GetLastDocTimeStamp 1729592359 [10:20:22]current date 1729592425 [10:20:22]FM_GetShiftState [10:20:22]SAM_PROTO_GetShiftState [10:20:22]wFMCommunicate request_size=4 [10:20:22]MH_SAM_APDU [10:20:22]CAPDU: 80 13 01 00 [10:20:22]Write to MH i2c: E2 08 00 59 3E 80 13 01 00 00 00 00 00 14 [10:20:22]Write i2c OK [10:20:22]MH_I2C_Read... [10:20:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:22]Read from MH i2c: E2 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 0E 00 [10:20:22]MH_I2C_Read... [10:20:22]Read from MH i2c: E2 0E 00 59 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 09 [10:20:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:20:22]wFMCommunicate OK [10:20:22]SAM_PROTO_GetShiftState done [10:20:22]FM_GetShiftState done [10:20:22]opened in 1729556094 [10:20:22]opened+sec_in_day 1729642494 [10:20:22]quantity*price = 100021 [10:20:22]sum+1 = 100023 [10:20:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 198 22.10.2024 10:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188169 ФПД: 275066581143632 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188169&fm=275066581143632&tin=02508201610067®Number=0000000000100030&sum=100000 [10:20:23]StoreToDocumentArchive [10:20:23]shift 461 fd 188169 [10:20:23]save to /storage/0461/doc_00188169 [10:20:23]save last doc name /storage/0461/doc_00188169 to /storage/kkm_last_doc_name [10:20:23]save OK [10:20:23]Clear old archive folders... [10:20:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:20:23]tlvbuf is 01C44D40 [10:20:23]SAM_PROTO_ClearQueue [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 09 00 00 [10:20:23]Write to MH i2c: E2 08 00 66 3E 80 09 00 00 00 00 00 00 16 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 66 3E 00 90 00 18 [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]SAM_PROTO_ClearQueue done [10:20:23]KKMCreateOFDPacket [10:20:23]OFDProtocolAddRootSTLVToBuf [10:20:23]FM_MakeSignedData [10:20:23]FM_MakeSignedData [10:20:23]SAM_PROTO_SignData [10:20:23]wFMCommunicate request_size=4 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 01 02 [10:20:23]Write to MH i2c: E2 08 00 67 3E 80 0D 01 02 00 00 00 00 1E [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 67 3E 00 90 00 19 [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]wFMCommunicate request_size=255 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 C6 00 00 00 F4 03 04 00 69 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DF 02 00 35 04 06 00 FA [10:20:23]Write to MH i2c: E2 02 01 68 3E 80 0D 02 02 FA 00 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 C6 00 00 00 F4 03 04 00 69 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DF 02 00 35 04 06 00 FA 00 00 89 [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:23]Read from MH i2c: E2 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 [10:20:23]MH_I2C_Read... [10:20:23]Read from MH i2c: E2 03 00 68 3E 00 90 00 1A [10:20:23]RAPDU: 90 00 [10:20:23]wFMCommunicate OK [10:20:23]wFMCommunicate request_size=10 [10:20:23]MH_SAM_APDU [10:20:23]CAPDU: 80 0D 02 02 05 2B ED DB D0 50 [10:20:23]Write to MH i2c: E2 0D 00 69 3E 80 0D 02 02 05 00 2B ED DB D0 50 00 00 3E [10:20:23]Write i2c OK [10:20:23]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 03 00 69 3E 00 90 00 1B [10:20:24]RAPDU: 90 00 [10:20:24]wFMCommunicate OK [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 0D 03 02 [10:20:24]Write to MH i2c: E2 08 00 6A 3E 80 0D 03 02 00 00 00 00 23 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 0B 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 0B 00 6A 3E 00 17 6E 77 33 97 61 8B D8 90 00 AE [10:20:24]RAPDU: 17 6E 77 33 97 61 8B D8 90 00 [10:20:24]wFMCommunicate OK [10:20:24]SAM_PROTO_SignData done [10:20:24]FM_MakeSignedData done [10:20:24]CreateOFDProtocolMessage [10:20:24]wFMCommunicate request_size=4 [10:20:24]MH_SAM_APDU [10:20:24]CAPDU: 80 11 00 00 [10:20:24]Write to MH i2c: E2 08 00 6B 3E 80 11 00 00 00 00 00 00 23 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:24]Read from MH i2c: E2 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 17 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: E2 17 00 6B 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 71 [10:20:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:20:24]wFMCommunicate OK [10:20:24]CreateOFDProtocolMessage done [10:20:24]OFDSenderStorePacket 188169 [10:20:24]StoreOFDPacket docnum=188169 [10:20:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9C 49 07 01 0E 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 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 C6 00 00 00 F4 03 04 00 69 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DF 02 00 35 04 06 00 FA 2B ED DB D0 50 17 6E 77 33 97 61 8B D8 [10:20:24]CheckFolder [10:20:24]dirname=/storage/ofd_packets [10:20:24]CheckFolder done [10:20:24]ProducePacketName [10:20:24]name=ofd_packets/00188169 [10:20:24]NVStorageSaveData ofd_packets/00188169 [10:20:24]File name is /storage/ofd_packets/00188169 [10:20:24]Write 301 bytes [10:20:24]NVStorageSaveData done [10:20:24]OFDSenderStorePacket done [10:20:24]KKMCreateOFDPacket done [10:20:24]NVStorageSaveData kkm_last_timestamp [10:20:24]File name is /storage/kkm_last_timestamp [10:20:24]Write 4 bytes [10:20:24]NVStorageSaveData done [10:20:24]ExternCall_PrintAddStr [10:20:24]wPrintStart [10:20:24]Write to MH i2c: 01 00 00 6C 3E AA [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 6C 3E 00 00 00 00 00 FF 0F BF [10:20:24]RasterBufferAndPrint [10:20:24]line Счет N : (1)210220 [10:20:24]line ИНН: 02508201610067 [10:20:24]line Контрольно-Кассовый Чек [10:20:24]line ПРОДАЖА [10:20:24]line ТРК (МРК, ГНК) : 13 [10:20:24]line Товар: 2710124500 [10:20:24]line Аи-95-К-3 [10:20:24]line 13.480 * 74.20 [10:20:24]line = 1000.22 [10:20:24]line НДС 12% НСП 1% [10:20:24]line > о реализуемом товаре [10:20:24]line ОКРУГЛЕНИЕ: -0.22 [10:20:24]line ИТОГО: 1000.00 [10:20:24]line Внесено: 1000.00 [10:20:24]line СДАЧА: 0.00 [10:20:24]line НСП 1% : 8.85 [10:20:24]line НДС 12% : 106.22 [10:20:24]line Наличными: 1000.00 [10:20:24]line Безнал.: 0.00 [10:20:24]line Место: АЗС № 86 "Партнер Нефть" [10:20:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:20:24]line СНО: Общий режим [10:20:24]line Чек 198 22.10.2024 10:20 [10:20:24]line Смена: 461 ФФД: 1.0 [10:20:24]line ЗНМ: 0300000155 [10:20:24]line РНМ: 0000000000100030 [10:20:24]line Версия ККМ: 001 [10:20:24]line ФМ: 0000000000965340 [10:20:24]line ФД: 188169 [10:20:24]line ФПД: 275066581143632 [10:20:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102025&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188169&fm=275066581143632&tin=02508201610067®Number=0000000000100030&sum=100000 [10:20:24]written 0, free lines is 4095 [10:20:24]OFD Sender: Processing packet 188169 [packets to send 1062, broken 1061] [10:20:24]ProducePacketName [10:20:24]name=ofd_packets/00188169 [10:20:24]OFD Sender: To server: pG, [10:20:24]CommunicateWithHost lk.salyk.kg:30040 [10:20:24]ConnectInit lk.salyk.kg [10:20:24]Connected sock=8 [10:20:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9C 49 07 01 0E 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 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 C6 00 00 00 F4 03 04 00 69 7C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 DF 02 00 35 04 06 00 FA 2B ED DB D0 50 17 6E 77 33 97 61 8B D8 [10:20:24]Write to MH i2c: 01 00 00 97 3E D5 [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: 01 07 00 97 3E 00 00 00 00 00 5B 0C 43 [10:20:24]RasterBufferAndPrint [10:20:24]line [10:20:24]line [10:20:24]line [10:20:24]line [10:20:24]line [10:20:24]written 0, free lines is 3167 [10:20:24]MH_Cut [10:20:24]Write to MH i2c: D1 01 00 9E 3E 01 AE [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: D1 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: D1 01 00 [10:20:24]MH_I2C_Read... [10:20:24]Read from MH i2c: D1 01 00 9E 3E 00 AD [10:20:24]Write to MH i2c: 01 00 00 9F 3E DD [10:20:24]Write i2c OK [10:20:24]MH_I2C_Read... [10:20:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0C 8A 47 00 6F 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 39 36 35 33 34 30 10 04 04 00 09 DF 02 00 F4 03 04 00 56 26 17 67 B6 04 01 00 00 C9 E0 31 4F 0B 1E A7 9E [10:20:24]CommunicateWithHost err = 0 [10:20:24]CheckOFDResponse [10:20:24]1017 (14) - 77093643461234 [10:20:24]1041 (16) - 0000000000965340 [10:20:24]1040 (4) - 188169 [10:20:24]1012 (4) - 22.10.2024 04:13 [10:20:24]1206 (1) - 0 [10:20:24]OFD Sender: Remove packet 188169 [10:20:24]ProducePacketName [10:20:24]name=ofd_packets/00188169 [10:20:24]NVStorageDeleteData [10:20:25]OFD Sender: No OFD packet to send [10:20:25]*** Cut start [10:20:25]*** Partial cut [10:20:25]*** CUTSNS_PIN = 1 [10:20:25]*** CUTSNS_PIN = 0 [10:20:26]*** Brake cut motor [10:20:26]Read from MH i2c: 01 [10:20:26]MH_I2C_Read... [10:20:26]*** Stop cut motor [10:20:26]*** Cut end [10:20:26]Read from MH i2c: 01 07 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: 01 07 00 9F 3E 00 00 00 00 00 FF 0F F2 [10:20:26]process_action close_receipt done [10:20:26]requested_data is exist [10:20:26]produce_requested_data [10:20:26]requested_item fm.sn is exist - process it [10:20:26]wFMCommunicate request_size=4 [10:20:26]MH_SAM_APDU [10:20:26]CAPDU: 80 11 00 00 [10:20:26]Write to MH i2c: E2 08 00 A0 3E 80 11 00 00 00 00 00 00 58 [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 [10:20:26]MH_I2C_Read... [10:20:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:26]Read from MH i2c: E2 17 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 17 00 A0 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A6 [10:20:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:20:26]wFMCommunicate OK [10:20:26]requested_item fd.num is exist - process it [10:20:26]SAM_PROTO_GetFieldsCounters [10:20:26]wFMCommunicate request_size=4 [10:20:26]MH_SAM_APDU [10:20:26]CAPDU: 80 13 00 00 [10:20:26]Write to MH i2c: E2 08 00 A1 3E 80 13 00 00 00 00 00 00 5B [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:20:26]Read from MH i2c: E2 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 62 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 62 00 A1 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 6C [10:20:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C6 00 00 00 5E 04 04 00 C6 00 00 00 57 04 04 00 C7 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:20:26]wFMCommunicate OK [10:20:26]SAM_PROTO_GetFieldsCounters done [10:20:26]requested_item shift.num is exist - process it [10:20:26]requested_item shift.opened is exist - process it [10:20:26]req_shift_opened [10:20:26]FM_GetShiftState [10:20:26]SAM_PROTO_GetShiftState [10:20:26]wFMCommunicate request_size=4 [10:20:26]MH_SAM_APDU [10:20:26]CAPDU: 80 13 01 00 [10:20:26]Write to MH i2c: E2 08 00 A2 3E 80 13 01 00 00 00 00 00 5D [10:20:26]Write i2c OK [10:20:26]MH_I2C_Read... [10:20:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:26]Read from MH i2c: E2 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 0E 00 [10:20:26]MH_I2C_Read... [10:20:26]Read from MH i2c: E2 0E 00 A2 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 52 [10:20:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:20:26]wFMCommunicate OK [10:20:26]SAM_PROTO_GetShiftState done [10:20:26]FM_GetShiftState done [10:20:26]req_shift_opened done [10:20:26]requested_item shift.open_date is exist - process it [10:20:26]req_shift_open_date [10:20:26]req_shift_open_date done [10:20:26]produce_requested_data done [10:20:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188169,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:20:26]process_action_free close_receipt [10:20:26]json_value_free [10:20:26]json_value_free done [10:20:26]process_json_proto returns [10:20:26]Send response to host [10:20:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188169,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:20:26]free response buf [10:20:26]execute_script done [10:20:26]execute_script returns [10:20:26]free content buf [10:20:26]Sock 9.Close socket [10:20:26]Sock 9.Thread stoped [10:20:30]OFD Sender: No OFD packet to send [10:20:35]OFD Sender: No OFD packet to send [10:20:40]OFD Sender: No OFD packet to send [10:20:45]OFD Sender: No OFD packet to send [10:20:50]OFD Sender: No OFD packet to send [10:20:55]OFD Sender: No OFD packet to send [10:21:00]OFD Sender: No OFD packet to send [10:21:05]OFD Sender: No OFD packet to send [10:21:10]OFD Sender: No OFD packet to send [10:21:15]OFD Sender: No OFD packet to send [10:21:20]OFD Sender: No OFD packet to send [10:21:25]OFD Sender: No OFD packet to send [10:21:30]OFD Sender: No OFD packet to send [10:21:35]OFD Sender: No OFD packet to send [10:21:40]OFD Sender: No OFD packet to send [10:21:45]OFD Sender: No OFD packet to send [10:21:50]OFD Sender: No OFD packet to send [10:21:55]OFD Sender: No OFD packet to send [10:22:00]OFD Sender: No OFD packet to send [10:22:05]OFD Sender: No OFD packet to send [10:22:10]OFD Sender: No OFD packet to send [10:22:15]OFD Sender: No OFD packet to send [10:22:20]OFD Sender: No OFD packet to send [10:22:25]OFD Sender: No OFD packet to send [10:22:30]OFD Sender: No OFD packet to send [10:22:35]OFD Sender: No OFD packet to send [10:22:40]OFD Sender: No OFD packet to send [10:22:46]OFD Sender: No OFD packet to send [10:22:51]OFD Sender: No OFD packet to send [10:22:56]OFD Sender: No OFD packet to send [10:23:01]OFD Sender: No OFD packet to send [10:23:06]OFD Sender: No OFD packet to send [10:23:11]OFD Sender: No OFD packet to send [10:23:16]OFD Sender: No OFD packet to send [10:23:20]accept exits with 10 [10:23:20]New connection [10:23:20]New thread 3067198820 created [10:23:20]Thread 3067055460 joined [10:23:20]Waiting for new connection... [10:23:20] Sock 10.Parse request [10:23:20]Sock 10.Check first char [10:23:20]Sock 10.First char is OK [10:23:20]request: POST /json_proto HTTP/1.0 [10:23:20]Method: POST [10:23:20]URL: /json_proto [10:23:20]Method is POST - this is cgi request [10:23:20]url: /json_proto [10:23:20]query_string will be loaded in cgi processing [10:23:20]execute_cgi json_proto POST (null) [10:23:20]execute_cgi path=json_proto method=POST [10:23:20]POST find Content-Length [10:23:20]Host: 172.17.42.131:8080 [10:23:20]Content-Length: 682 [10:23:20]Content-Type: application/json [10:23:20] [10:23:20]POST finish read [10:23:20]Found Content-Length = 682 [10:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:20]execute_script... [10:23:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210221", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:23:20]POST & json_proto [10:23:20]process_json_proto [10:23:20]json parsed OK: [10:23:20]protocol is kg_v1.0 [10:23:20]action value=close_receipt [10:23:20]process_action close_receipt [10:23:20]cmd_close_receipt [10:23:20]MH_GetDate [10:23:20]Write to MH i2c: F0 00 00 A3 3E D0 [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: F0 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: F0 09 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: F0 09 00 A3 3E 00 1B 7D 17 67 A0 18 CA 66 D7 [10:23:20]GetLastDocTimeStamp 1729592425 [10:23:20]current date 1729592603 [10:23:20]FM_GetShiftState [10:23:20]SAM_PROTO_GetShiftState [10:23:20]wFMCommunicate request_size=4 [10:23:20]MH_SAM_APDU [10:23:20]CAPDU: 80 13 01 00 [10:23:20]Write to MH i2c: E2 08 00 A4 3E 80 13 01 00 00 00 00 00 5F [10:23:20]Write i2c OK [10:23:20]MH_I2C_Read... [10:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:20]Read from MH i2c: E2 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 0E 00 [10:23:20]MH_I2C_Read... [10:23:20]Read from MH i2c: E2 0E 00 A4 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 54 [10:23:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:23:20]wFMCommunicate OK [10:23:20]SAM_PROTO_GetShiftState done [10:23:20]FM_GetShiftState done [10:23:20]opened in 1729556094 [10:23:20]opened+sec_in_day 1729642494 [10:23:20]quantity*price = 150056 [10:23:20]sum+1 = 150058 [10:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 199 22.10.2024 10:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188170 ФПД: 60454832917738 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102323&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188170&fm=60454832917738&tin=02508201610067®Number=0000000000100030&sum=150000 [10:23:21]StoreToDocumentArchive [10:23:21]shift 461 fd 188170 [10:23:21]save to /storage/0461/doc_00188170 [10:23:21]save last doc name /storage/0461/doc_00188170 to /storage/kkm_last_doc_name [10:23:21]save OK [10:23:21]Clear old archive folders... [10:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:21]tlvbuf is 01BEF170 [10:23:21]SAM_PROTO_ClearQueue [10:23:21]wFMCommunicate request_size=4 [10:23:21]MH_SAM_APDU [10:23:21]CAPDU: 80 09 00 00 [10:23:21]Write to MH i2c: E2 08 00 B1 3E 80 09 00 00 00 00 00 00 61 [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:21]Read from MH i2c: E2 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 B1 3E 00 90 00 63 [10:23:21]RAPDU: 90 00 [10:23:21]wFMCommunicate OK [10:23:21]SAM_PROTO_ClearQueue done [10:23:21]KKMCreateOFDPacket [10:23:21]OFDProtocolAddRootSTLVToBuf [10:23:21]FM_MakeSignedData [10:23:21]FM_MakeSignedData [10:23:21]SAM_PROTO_SignData [10:23:21]wFMCommunicate request_size=4 [10:23:21]MH_SAM_APDU [10:23:21]CAPDU: 80 0D 01 02 [10:23:21]Write to MH i2c: E2 08 00 B2 3E 80 0D 01 02 00 00 00 00 69 [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:21]Read from MH i2c: E2 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 B2 3E 00 90 00 64 [10:23:21]RAPDU: 90 00 [10:23:21]wFMCommunicate OK [10:23:21]wFMCommunicate request_size=255 [10:23:21]MH_SAM_APDU [10:23: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1B 7D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DF 02 00 35 04 06 00 36 [10:23:21]Write to MH i2c: E2 02 01 B3 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1B 7D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DF 02 00 35 04 06 00 36 00 00 F1 [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:21]Read from MH i2c: E2 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 B3 3E 00 90 00 65 [10:23:21]RAPDU: 90 00 [10:23:21]wFMCommunicate OK [10:23:21]wFMCommunicate request_size=10 [10:23:21]MH_SAM_APDU [10:23:21]CAPDU: 80 0D 02 02 05 FB BC D7 4C EA [10:23:21]Write to MH i2c: E2 0D 00 B4 3E 80 0D 02 02 05 00 FB BC D7 4C EA 00 00 3A [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:21]Read from MH i2c: E2 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 03 00 B4 3E 00 90 00 66 [10:23:21]RAPDU: 90 00 [10:23:21]wFMCommunicate OK [10:23:21]wFMCommunicate request_size=4 [10:23:21]MH_SAM_APDU [10:23:21]CAPDU: 80 0D 03 02 [10:23:21]Write to MH i2c: E2 08 00 B5 3E 80 0D 03 02 00 00 00 00 6E [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:21]Read from MH i2c: E2 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 0B 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 0B 00 B5 3E 00 93 60 60 89 11 D2 47 80 90 00 F5 [10:23:21]RAPDU: 93 60 60 89 11 D2 47 80 90 00 [10:23:21]wFMCommunicate OK [10:23:21]SAM_PROTO_SignData done [10:23:21]FM_MakeSignedData done [10:23:21]CreateOFDProtocolMessage [10:23:21]wFMCommunicate request_size=4 [10:23:21]MH_SAM_APDU [10:23:21]CAPDU: 80 11 00 00 [10:23:21]Write to MH i2c: E2 08 00 B6 3E 80 11 00 00 00 00 00 00 6E [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:21]Read from MH i2c: E2 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 17 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: E2 17 00 B6 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BC [10:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:23:21]wFMCommunicate OK [10:23:21]CreateOFDProtocolMessage done [10:23:21]OFDSenderStorePacket 188170 [10:23:21]StoreOFDPacket docnum=188170 [10:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 E4 07 01 D1 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1B 7D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DF 02 00 35 04 06 00 36 FB BC D7 4C EA 93 60 60 89 11 D2 47 80 [10:23:21]CheckFolder [10:23:21]dirname=/storage/ofd_packets [10:23:21]CheckFolder done [10:23:21]ProducePacketName [10:23:21]name=ofd_packets/00188170 [10:23:21]NVStorageSaveData ofd_packets/00188170 [10:23:21]File name is /storage/ofd_packets/00188170 [10:23:21]Write 301 bytes [10:23:21]NVStorageSaveData done [10:23:21]OFDSenderStorePacket done [10:23:21]KKMCreateOFDPacket done [10:23:21]NVStorageSaveData kkm_last_timestamp [10:23:21]File name is /storage/kkm_last_timestamp [10:23:21]Write 4 bytes [10:23:21]NVStorageSaveData done [10:23:21]ExternCall_PrintAddStr [10:23:21]wPrintStart [10:23:21]Write to MH i2c: 01 00 00 B7 3E F5 [10:23:21]Write i2c OK [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: 01 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: 01 07 00 [10:23:21]MH_I2C_Read... [10:23:21]Read from MH i2c: 01 07 00 B7 3E 00 00 00 00 00 FF 0F 0A [10:23:21]RasterBufferAndPrint [10:23:21]line Счет N : (1)210221 [10:23:21]line ИНН: 02508201610067 [10:23:21]line Контрольно-Кассовый Чек [10:23:21]line ПРОДАЖА [10:23:21]line ТРК (МРК, ГНК) : 32 [10:23:21]line Товар: 2710124130 [10:23:21]line Аи-92-К-3 [10:23:21]line 22.430 * 66.90 [10:23:21]line = 1500.57 [10:23:21]line НДС 12% НСП 1% [10:23:21]line > о реализуемом товаре [10:23:21]line ОКРУГЛЕНИЕ: -0.57 [10:23:21]line ИТОГО: 1500.00 [10:23:21]line Внесено: 1500.00 [10:23:21]line СДАЧА: 0.00 [10:23:21]line НСП 1% : 13.28 [10:23:21]line НДС 12% : 159.35 [10:23:21]line Наличными: 1500.00 [10:23:21]line Безнал.: 0.00 [10:23:21]line Место: АЗС № 86 "Партнер Нефть" [10:23:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:23:21]line СНО: Общий режим [10:23:21]line Чек 199 22.10.2024 10:23 [10:23:21]line Смена: 461 ФФД: 1.0 [10:23:21]line ЗНМ: 0300000155 [10:23:21]line РНМ: 0000000000100030 [10:23:21]line Версия ККМ: 001 [10:23:21]line ФМ: 0000000000965340 [10:23:21]line ФД: 188170 [10:23:21]line ФПД: 60454832917738 [10:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102323&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188170&fm=60454832917738&tin=02508201610067®Number=0000000000100030&sum=150000 [10:23:22]OFD Sender: Processing packet 188170 [packets to send 1062, broken 1061] [10:23:22]ProducePacketName [10:23:22]name=ofd_packets/00188170 [10:23:22]OFD Sender: To server: pG, [10:23:22]CommunicateWithHost lk.salyk.kg:30040 [10:23:22]ConnectInit lk.salyk.kg [10:23:22]written 0, free lines is 4095 [10:23:22]Connected sock=9 [10:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 E4 07 01 D1 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 00 00 00 F4 03 04 00 1B 7D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DF 02 00 35 04 06 00 36 FB BC D7 4C EA 93 60 60 89 11 D2 47 80 [10:23:22]Write to MH i2c: 01 00 00 E2 3E 20 [10:23:22]Write i2c OK [10:23:22]MH_I2C_Read... [10:23:22]Read from MH i2c: 01 [10:23:22]MH_I2C_Read... [10:23:22]Read from MH i2c: 01 07 00 [10:23:22]MH_I2C_Read... [10:23:22]Read from MH i2c: 01 07 00 E2 3E 00 00 00 00 00 5C 0C 8F [10:23:22]RasterBufferAndPrint [10:23:22]line [10:23:22]line [10:23:22]line [10:23:22]line [10:23:22]line [10:23:22]written 0, free lines is 3167 [10:23:22]MH_Cut [10:23:22]Write to MH i2c: D1 01 00 E9 3E 01 F9 [10:23:22]Write i2c OK [10:23:22]MH_I2C_Read... [10:23:22]Read from MH i2c: D1 [10:23:22]MH_I2C_Read... [10:23:22]Read from MH i2c: D1 01 00 [10:23:22]MH_I2C_Read... [10:23:22]Read from MH i2c: D1 01 00 E9 3E 00 F8 [10:23:22]Write to MH i2c: 01 00 00 EA 3E 28 [10:23:22]Write i2c OK [10:23:22]MH_I2C_Read... [10:23:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 42 C7 47 00 B3 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A DF 02 00 F4 03 04 00 08 27 17 67 B6 04 01 00 00 C1 EB 71 D0 A1 79 C1 F9 [10:23:22]CommunicateWithHost err = 0 [10:23:22]CheckOFDResponse [10:23:22]1017 (14) - 77093643461234 [10:23:22]1041 (16) - 0000000000965340 [10:23:22]1040 (4) - 188170 [10:23:22]1012 (4) - 22.10.2024 04:16 [10:23:22]1206 (1) - 0 [10:23:22]OFD Sender: Remove packet 188170 [10:23:22]ProducePacketName [10:23:22]name=ofd_packets/00188170 [10:23:22]NVStorageDeleteData [10:23:23]OFD Sender: No OFD packet to send [10:23:23]*** Cut start [10:23:23]*** Partial cut [10:23:23]*** CUTSNS_PIN = 1 [10:23:23]*** CUTSNS_PIN = 0 [10:23:24]*** Brake cut motor [10:23:24]Read from MH i2c: 01 [10:23:24]MH_I2C_Read... [10:23:24]*** Stop cut motor [10:23:24]*** Cut end [10:23:24]Read from MH i2c: 01 07 00 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: 01 07 00 EA 3E 00 00 00 00 00 FF 0F 3D [10:23:24]process_action close_receipt done [10:23:24]requested_data is exist [10:23:24]produce_requested_data [10:23:24]requested_item fm.sn is exist - process it [10:23:24]wFMCommunicate request_size=4 [10:23:24]MH_SAM_APDU [10:23:24]CAPDU: 80 11 00 00 [10:23:24]Write to MH i2c: E2 08 00 EB 3E 80 11 00 00 00 00 00 00 A3 [10:23:24]Write i2c OK [10:23:24]MH_I2C_Read... [10:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:24]Read from MH i2c: E2 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 17 00 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 17 00 EB 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [10:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:23:24]wFMCommunicate OK [10:23:24]requested_item fd.num is exist - process it [10:23:24]SAM_PROTO_GetFieldsCounters [10:23:24]wFMCommunicate request_size=4 [10:23:24]MH_SAM_APDU [10:23:24]CAPDU: 80 13 00 00 [10:23:24]Write to MH i2c: E2 08 00 EC 3E 80 13 00 00 00 00 00 00 A6 [10:23:24]Write i2c OK [10:23:24]MH_I2C_Read... [10:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:24]Read from MH i2c: E2 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 62 00 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 62 00 EC 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 BB [10:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C7 00 00 00 5E 04 04 00 C7 00 00 00 57 04 04 00 C8 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:24]wFMCommunicate OK [10:23:24]SAM_PROTO_GetFieldsCounters done [10:23:24]requested_item shift.num is exist - process it [10:23:24]requested_item shift.opened is exist - process it [10:23:24]req_shift_opened [10:23:24]FM_GetShiftState [10:23:24]SAM_PROTO_GetShiftState [10:23:24]wFMCommunicate request_size=4 [10:23:24]MH_SAM_APDU [10:23:24]CAPDU: 80 13 01 00 [10:23:24]Write to MH i2c: E2 08 00 ED 3E 80 13 01 00 00 00 00 00 A8 [10:23:24]Write i2c OK [10:23:24]MH_I2C_Read... [10:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:24]Read from MH i2c: E2 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 0E 00 [10:23:24]MH_I2C_Read... [10:23:24]Read from MH i2c: E2 0E 00 ED 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [10:23:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:23:24]wFMCommunicate OK [10:23:24]SAM_PROTO_GetShiftState done [10:23:24]FM_GetShiftState done [10:23:24]req_shift_opened done [10:23:24]requested_item shift.open_date is exist - process it [10:23:24]req_shift_open_date [10:23:24]req_shift_open_date done [10:23:24]produce_requested_data done [10:23:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188170,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:23:24]process_action_free close_receipt [10:23:24]json_value_free [10:23:24]json_value_free done [10:23:24]process_json_proto returns [10:23:24]Send response to host [10:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188170,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:23:24]free response buf [10:23:24]execute_script done [10:23:24]execute_script returns [10:23:24]free content buf [10:23:24]Sock 10.Close socket [10:23:24]Sock 10.Thread stoped [10:23:28]OFD Sender: No OFD packet to send [10:23:33]OFD Sender: No OFD packet to send [10:23:38]OFD Sender: No OFD packet to send [10:23:43]OFD Sender: No OFD packet to send [10:23:48]OFD Sender: No OFD packet to send [10:23:53]OFD Sender: No OFD packet to send [10:23:58]OFD Sender: No OFD packet to send [10:24:03]OFD Sender: No OFD packet to send [10:24:08]OFD Sender: No OFD packet to send [10:24:13]OFD Sender: No OFD packet to send [10:24:18]OFD Sender: No OFD packet to send [10:24:23]OFD Sender: No OFD packet to send [10:24:28]OFD Sender: No OFD packet to send [10:24:33]OFD Sender: No OFD packet to send [10:24:38]OFD Sender: No OFD packet to send [10:24:43]OFD Sender: No OFD packet to send [10:24:48]OFD Sender: No OFD packet to send [10:24:53]OFD Sender: No OFD packet to send [10:24:58]OFD Sender: No OFD packet to send [10:25:03]OFD Sender: No OFD packet to send [10:25:08]OFD Sender: No OFD packet to send [10:25:13]OFD Sender: No OFD packet to send [10:25:18]OFD Sender: No OFD packet to send [10:25:23]OFD Sender: No OFD packet to send [10:25:28]OFD Sender: No OFD packet to send [10:25:33]OFD Sender: No OFD packet to send [10:25:38]OFD Sender: No OFD packet to send [10:25:43]OFD Sender: No OFD packet to send [10:25:48]OFD Sender: No OFD packet to send [10:25:53]OFD Sender: No OFD packet to send [10:25:58]OFD Sender: No OFD packet to send [10:26:03]OFD Sender: No OFD packet to send [10:26:08]OFD Sender: No OFD packet to send [10:26:13]OFD Sender: No OFD packet to send [10:26:18]OFD Sender: No OFD packet to send [10:26:24]OFD Sender: No OFD packet to send [10:26:29]OFD Sender: No OFD packet to send [10:26:34]OFD Sender: No OFD packet to send [10:26:39]OFD Sender: No OFD packet to send [10:26:44]OFD Sender: No OFD packet to send [10:26:49]OFD Sender: No OFD packet to send [10:26:54]OFD Sender: No OFD packet to send [10:26:59]OFD Sender: No OFD packet to send [10:27:04]OFD Sender: No OFD packet to send [10:27:09]OFD Sender: No OFD packet to send [10:27:14]OFD Sender: No OFD packet to send [10:27:19]OFD Sender: No OFD packet to send [10:27:24]OFD Sender: No OFD packet to send [10:27:29]OFD Sender: No OFD packet to send [10:27:31]accept exits with 8 [10:27:31]New connection [10:27:31]New thread 3067055460 created [10:27:31]Thread 3067198820 joined [10:27:31]Waiting for new connection... [10:27:31] Sock 8.Parse request [10:27:31]Sock 8.Check first char [10:27:31]Sock 8.First char is OK [10:27:31]request: POST /json_proto HTTP/1.0 [10:27:31]Method: POST [10:27:31]URL: /json_proto [10:27:31]Method is POST - this is cgi request [10:27:31]url: /json_proto [10:27:31]query_string will be loaded in cgi processing [10:27:31]execute_cgi json_proto POST (null) [10:27:31]execute_cgi path=json_proto method=POST [10:27:31]POST find Content-Length [10:27:31]Host: 172.17.42.131:8080 [10:27:31]Content-Length: 677 [10:27:31]Content-Type: application/json [10:27:31] [10:27:31]POST finish read [10:27:31]Found Content-Length = 677 [10:27:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:31]execute_script... [10:27: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)210222", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:27:31]POST & json_proto [10:27:31]process_json_proto [10:27:31]json parsed OK: [10:27:31]protocol is kg_v1.0 [10:27:31]action value=close_receipt [10:27:31]process_action close_receipt [10:27:31]cmd_close_receipt [10:27:31]MH_GetDate [10:27:31]Write to MH i2c: F0 00 00 EE 3E 1B [10:27:31]Write i2c OK [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: F0 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: F0 09 00 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: F0 09 00 EE 3E 00 16 7E 17 67 A0 18 CA 66 1E [10:27:31]GetLastDocTimeStamp 1729592603 [10:27:31]current date 1729592854 [10:27:31]FM_GetShiftState [10:27:31]SAM_PROTO_GetShiftState [10:27:31]wFMCommunicate request_size=4 [10:27:31]MH_SAM_APDU [10:27:31]CAPDU: 80 13 01 00 [10:27:31]Write to MH i2c: E2 08 00 EF 3E 80 13 01 00 00 00 00 00 AA [10:27:31]Write i2c OK [10:27:31]MH_I2C_Read... [10:27:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:31]Read from MH i2c: E2 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: E2 0E 00 [10:27:31]MH_I2C_Read... [10:27:31]Read from MH i2c: E2 0E 00 EF 3E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9F [10:27:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:27:31]wFMCommunicate OK [10:27:31]SAM_PROTO_GetShiftState done [10:27:31]FM_GetShiftState done [10:27:31]opened in 1729556094 [10:27:31]opened+sec_in_day 1729642494 [10:27:31]quantity*price = 50041 [10:27:31]sum+1 = 50042 [10:27:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 200 22.10.2024 10:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188171 ФПД: 12353479900702 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102734&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188171&fm=12353479900702&tin=02508201610067®Number=0000000000100030&sum=50000 [10:27:32]StoreToDocumentArchive [10:27:32]shift 461 fd 188171 [10:27:32]save to /storage/0461/doc_00188171 [10:27:32]save last doc name /storage/0461/doc_00188171 to /storage/kkm_last_doc_name [10:27:32]save OK [10:27:32]Clear old archive folders... [10:27:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:27:32]tlvbuf is 01BB7B00 [10:27:32]SAM_PROTO_ClearQueue [10:27:32]wFMCommunicate request_size=4 [10:27:32]MH_SAM_APDU [10:27:32]CAPDU: 80 09 00 00 [10:27:32]Write to MH i2c: E2 08 00 FC 3E 80 09 00 00 00 00 00 00 AC [10:27:32]Write i2c OK [10:27:32]MH_I2C_Read... [10:27:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:27:32]Read from MH i2c: E2 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 03 00 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 03 00 FC 3E 00 90 00 AE [10:27:32]RAPDU: 90 00 [10:27:32]wFMCommunicate OK [10:27:32]SAM_PROTO_ClearQueue done [10:27:32]KKMCreateOFDPacket [10:27:32]OFDProtocolAddRootSTLVToBuf [10:27:32]FM_MakeSignedData [10:27:32]FM_MakeSignedData [10:27:32]SAM_PROTO_SignData [10:27:32]wFMCommunicate request_size=4 [10:27:32]MH_SAM_APDU [10:27:32]CAPDU: 80 0D 01 02 [10:27:32]Write to MH i2c: E2 08 00 FD 3E 80 0D 01 02 00 00 00 00 B4 [10:27:32]Write i2c OK [10:27:32]MH_I2C_Read... [10:27:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:27:32]Read from MH i2c: E2 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 03 00 [10:27:32]MH_I2C_Read... [10:27:32]Read from MH i2c: E2 03 00 FD 3E 00 90 00 AF [10:27:32]RAPDU: 90 00 [10:27:32]wFMCommunicate OK [10:27:32]wFMCommunicate request_size=255 [10:27:32]MH_SAM_APDU [10:27: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 16 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DF 02 00 35 04 06 00 0B [10:27:32]Write to MH i2c: E2 02 01 FE 3E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 16 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DF 02 00 35 04 06 00 0B 00 00 C6 [10:27:32]Write i2c OK [10:27:32]MH_I2C_Read... [10:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:33]Read from MH i2c: E2 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 03 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 03 00 FE 3E 00 90 00 B0 [10:27:33]RAPDU: 90 00 [10:27:33]wFMCommunicate OK [10:27:33]wFMCommunicate request_size=10 [10:27:33]MH_SAM_APDU [10:27:33]CAPDU: 80 0D 02 02 05 3C 44 C7 FE 1E [10:27:33]Write to MH i2c: E2 0D 00 FF 3E 80 0D 02 02 05 00 3C 44 C7 FE 1E 00 00 24 [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:27:33]Read from MH i2c: E2 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 03 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 03 00 FF 3E 00 90 00 B1 [10:27:33]RAPDU: 90 00 [10:27:33]wFMCommunicate OK [10:27:33]wFMCommunicate request_size=4 [10:27:33]MH_SAM_APDU [10:27:33]CAPDU: 80 0D 03 02 [10:27:33]Write to MH i2c: E2 08 00 00 3F 80 0D 03 02 00 00 00 00 BA [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:27:33]Read from MH i2c: E2 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 0B 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 0B 00 00 3F 00 06 B7 65 32 C4 34 67 66 90 00 D4 [10:27:33]RAPDU: 06 B7 65 32 C4 34 67 66 90 00 [10:27:33]wFMCommunicate OK [10:27:33]SAM_PROTO_SignData done [10:27:33]FM_MakeSignedData done [10:27:33]CreateOFDProtocolMessage [10:27:33]wFMCommunicate request_size=4 [10:27:33]MH_SAM_APDU [10:27:33]CAPDU: 80 11 00 00 [10:27:33]Write to MH i2c: E2 08 00 01 3F 80 11 00 00 00 00 00 00 BA [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:33]Read from MH i2c: E2 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 17 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: E2 17 00 01 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [10:27:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:27:33]wFMCommunicate OK [10:27:33]CreateOFDProtocolMessage done [10:27:33]OFDSenderStorePacket 188171 [10:27:33]StoreOFDPacket docnum=188171 [10:27:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 D7 07 01 75 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 16 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DF 02 00 35 04 06 00 0B 3C 44 C7 FE 1E 06 B7 65 32 C4 34 67 66 [10:27:33]CheckFolder [10:27:33]dirname=/storage/ofd_packets [10:27:33]CheckFolder done [10:27:33]ProducePacketName [10:27:33]name=ofd_packets/00188171 [10:27:33]NVStorageSaveData ofd_packets/00188171 [10:27:33]File name is /storage/ofd_packets/00188171 [10:27:33]Write 301 bytes [10:27:33]NVStorageSaveData done [10:27:33]OFDSenderStorePacket done [10:27:33]KKMCreateOFDPacket done [10:27:33]NVStorageSaveData kkm_last_timestamp [10:27:33]File name is /storage/kkm_last_timestamp [10:27:33]Write 4 bytes [10:27:33]NVStorageSaveData done [10:27:33]ExternCall_PrintAddStr [10:27:33]wPrintStart [10:27:33]Write to MH i2c: 01 00 00 02 3F 41 [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: 01 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: 01 07 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: 01 07 00 02 3F 00 00 00 00 00 FF 0F 56 [10:27:33]RasterBufferAndPrint [10:27:33]line Счет N : (1)210222 [10:27:33]line ИНН: 02508201610067 [10:27:33]line Контрольно-Кассовый Чек [10:27:33]line ПРОДАЖА [10:27:33]line ТРК (МРК, ГНК) : 42 [10:27:33]line Товар: 2710124130 [10:27:33]line Аи-92-К-3 [10:27:33]line 7.480 * 66.90 [10:27:33]line = 500.41 [10:27:33]line НДС 12% НСП 1% [10:27:33]line > о реализуемом товаре [10:27:33]line ОКРУГЛЕНИЕ: -0.41 [10:27:33]line ИТОГО: 500.00 [10:27:33]line Внесено: 500.00 [10:27:33]line СДАЧА: 0.00 [10:27:33]line НСП 1% : 4.43 [10:27:33]line НДС 12% : 53.14 [10:27:33]line Наличными: 500.00 [10:27:33]line Безнал.: 0.00 [10:27:33]line Место: АЗС № 86 "Партнер Нефть" [10:27:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:27:33]line СНО: Общий режим [10:27:33]line Чек 200 22.10.2024 10:27 [10:27:33]line Смена: 461 ФФД: 1.0 [10:27:33]line ЗНМ: 0300000155 [10:27:33]line РНМ: 0000000000100030 [10:27:33]line Версия ККМ: 001 [10:27:33]line ФМ: 0000000000965340 [10:27:33]line ФД: 188171 [10:27:33]line ФПД: 12353479900702 [10:27:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102734&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188171&fm=12353479900702&tin=02508201610067®Number=0000000000100030&sum=50000 [10:27:33]written 0, free lines is 4095 [10:27:33]OFD Sender: Processing packet 188171 [packets to send 1062, broken 1061] [10:27:33]ProducePacketName [10:27:33]name=ofd_packets/00188171 [10:27:33]OFD Sender: To server: pG, [10:27:33]CommunicateWithHost lk.salyk.kg:30040 [10:27:33]ConnectInit lk.salyk.kg [10:27:33]Connected sock=11 [10:27:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 98 D7 07 01 75 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 00 00 00 F4 03 04 00 16 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B DF 02 00 35 04 06 00 0B 3C 44 C7 FE 1E 06 B7 65 32 C4 34 67 66 [10:27:33]Write to MH i2c: 01 00 00 2D 3F 6C [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: 01 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: 01 07 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: 01 07 00 2D 3F 00 00 00 00 00 58 0C D7 [10:27:33]RasterBufferAndPrint [10:27:33]line [10:27:33]line [10:27:33]line [10:27:33]line [10:27:33]line [10:27:33]written 0, free lines is 3164 [10:27:33]MH_Cut [10:27:33]Write to MH i2c: D1 01 00 34 3F 01 45 [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: D1 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: D1 01 00 [10:27:33]MH_I2C_Read... [10:27:33]Read from MH i2c: D1 01 00 34 3F 00 44 [10:27:33]Write to MH i2c: 01 00 00 35 3F 74 [10:27:33]Write i2c OK [10:27:33]MH_I2C_Read... [10:27:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AF EF 47 00 8F 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 39 36 35 33 34 30 10 04 04 00 0B DF 02 00 F4 03 04 00 04 28 17 67 B6 04 01 00 00 37 F2 F4 8B 63 4A F7 4F [10:27:33]CommunicateWithHost err = 0 [10:27:33]CheckOFDResponse [10:27:33]1017 (14) - 77093643461234 [10:27:33]1041 (16) - 0000000000965340 [10:27:33]1040 (4) - 188171 [10:27:33]1012 (4) - 22.10.2024 04:20 [10:27:33]1206 (1) - 0 [10:27:33]OFD Sender: Remove packet 188171 [10:27:33]ProducePacketName [10:27:33]name=ofd_packets/00188171 [10:27:33]NVStorageDeleteData [10:27:34]OFD Sender: No OFD packet to send [10:27:34]*** Cut start [10:27:34]*** Partial cut [10:27:34]*** CUTSNS_PIN = 1 [10:27:35]*** CUTSNS_PIN = 0 [10:27:35]*** Brake cut motor [10:27:35]Read from MH i2c: 01 [10:27:35]MH_I2C_Read... [10:27:35]*** Stop cut motor [10:27:35]*** Cut end [10:27:35]Read from MH i2c: 01 07 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: 01 07 00 35 3F 00 00 00 00 00 FF 0F 89 [10:27:35]process_action close_receipt done [10:27:35]requested_data is exist [10:27:35]produce_requested_data [10:27:35]requested_item fm.sn is exist - process it [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 11 00 00 [10:27:35]Write to MH i2c: E2 08 00 36 3F 80 11 00 00 00 00 00 00 EF [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 17 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 17 00 36 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [10:27:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:27:35]wFMCommunicate OK [10:27:35]requested_item fd.num is exist - process it [10:27:35]SAM_PROTO_GetFieldsCounters [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 13 00 00 [10:27:35]Write to MH i2c: E2 08 00 37 3F 80 13 00 00 00 00 00 00 F2 [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 62 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 62 00 37 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 0B [10:27:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C8 00 00 00 5E 04 04 00 C8 00 00 00 57 04 04 00 C9 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:27:35]wFMCommunicate OK [10:27:35]SAM_PROTO_GetFieldsCounters done [10:27:35]requested_item shift.num is exist - process it [10:27:35]requested_item shift.opened is exist - process it [10:27:35]req_shift_opened [10:27:35]FM_GetShiftState [10:27:35]SAM_PROTO_GetShiftState [10:27:35]wFMCommunicate request_size=4 [10:27:35]MH_SAM_APDU [10:27:35]CAPDU: 80 13 01 00 [10:27:35]Write to MH i2c: E2 08 00 38 3F 80 13 01 00 00 00 00 00 F4 [10:27:35]Write i2c OK [10:27:35]MH_I2C_Read... [10:27:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:27:35]Read from MH i2c: E2 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 0E 00 [10:27:35]MH_I2C_Read... [10:27:35]Read from MH i2c: E2 0E 00 38 3F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E9 [10:27:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:27:35]wFMCommunicate OK [10:27:35]SAM_PROTO_GetShiftState done [10:27:35]FM_GetShiftState done [10:27:35]req_shift_opened done [10:27:35]requested_item shift.open_date is exist - process it [10:27:35]req_shift_open_date [10:27:35]req_shift_open_date done [10:27:35]produce_requested_data done [10:27:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188171,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:27:35]process_action_free close_receipt [10:27:35]json_value_free [10:27:35]json_value_free done [10:27:35]process_json_proto returns [10:27:35]Send response to host [10:27:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188171,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:27:35]free response buf [10:27:35]execute_script done [10:27:35]execute_script returns [10:27:35]free content buf [10:27:35]Sock 8.Close socket [10:27:35]Sock 8.Thread stoped [10:27:39]OFD Sender: No OFD packet to send [10:27:44]OFD Sender: No OFD packet to send [10:27:49]OFD Sender: No OFD packet to send [10:27:54]OFD Sender: No OFD packet to send [10:27:59]OFD Sender: No OFD packet to send [10:28:04]OFD Sender: No OFD packet to send [10:28:09]OFD Sender: No OFD packet to send [10:28:14]OFD Sender: No OFD packet to send [10:28:19]OFD Sender: No OFD packet to send [10:28:24]OFD Sender: No OFD packet to send [10:28:29]OFD Sender: No OFD packet to send [10:28:34]OFD Sender: No OFD packet to send [10:28:39]OFD Sender: No OFD packet to send [10:28:44]OFD Sender: No OFD packet to send [10:28:49]OFD Sender: No OFD packet to send [10:28:54]OFD Sender: No OFD packet to send [10:28:59]OFD Sender: No OFD packet to send [10:29:04]OFD Sender: No OFD packet to send [10:29:05]accept exits with 9 [10:29:05]New connection [10:29:05]New thread 3067198820 created [10:29:05]Thread 3067055460 joined [10:29:05]Waiting for new connection... [10:29:05] Sock 9.Parse request [10:29:05]Sock 9.Check first char [10:29:05]Sock 9.First char is OK [10:29:05]request: POST /json_proto HTTP/1.0 [10:29:05]Method: POST [10:29:05]URL: /json_proto [10:29:05]Method is POST - this is cgi request [10:29:05]url: /json_proto [10:29:05]query_string will be loaded in cgi processing [10:29:05]execute_cgi json_proto POST (null) [10:29:05]execute_cgi path=json_proto method=POST [10:29:05]POST find Content-Length [10:29:05]Host: 172.17.42.131:8080 [10:29:05]Content-Length: 682 [10:29:05]Content-Type: application/json [10:29:05] [10:29:05]POST finish read [10:29:05]Found Content-Length = 682 [10:29:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:05]execute_script... [10:29: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)210223", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:29:05]POST & json_proto [10:29:05]process_json_proto [10:29:05]json parsed OK: [10:29:05]protocol is kg_v1.0 [10:29:05]action value=close_receipt [10:29:05]process_action close_receipt [10:29:05]cmd_close_receipt [10:29:05]MH_GetDate [10:29:05]Write to MH i2c: F0 00 00 39 3F 67 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: F0 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: F0 09 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: F0 09 00 39 3F 00 74 7E 17 67 A0 18 CA 66 C8 [10:29:05]GetLastDocTimeStamp 1729592854 [10:29:05]current date 1729592948 [10:29:05]FM_GetShiftState [10:29:05]SAM_PROTO_GetShiftState [10:29:05]wFMCommunicate request_size=4 [10:29:05]MH_SAM_APDU [10:29:05]CAPDU: 80 13 01 00 [10:29:05]Write to MH i2c: E2 08 00 3A 3F 80 13 01 00 00 00 00 00 F6 [10:29:05]Write i2c OK [10:29:05]MH_I2C_Read... [10:29:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:05]Read from MH i2c: E2 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0E 00 [10:29:05]MH_I2C_Read... [10:29:05]Read from MH i2c: E2 0E 00 3A 3F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [10:29:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:29:05]wFMCommunicate OK [10:29:05]SAM_PROTO_GetShiftState done [10:29:05]FM_GetShiftState done [10:29:05]opened in 1729556094 [10:29:05]opened+sec_in_day 1729642494 [10:29:05]quantity*price = 130053 [10:29:05]sum+1 = 130055 [10:29:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 201 22.10.2024 10:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188172 ФПД: 80487751234654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102908&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188172&fm=80487751234654&tin=02508201610067®Number=0000000000100030&sum=130000 [10:29:06]StoreToDocumentArchive [10:29:06]shift 461 fd 188172 [10:29:06]save to /storage/0461/doc_00188172 [10:29:06]save last doc name /storage/0461/doc_00188172 to /storage/kkm_last_doc_name [10:29:06]save OK [10:29:06]Clear old archive folders... [10:29:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:29:06]tlvbuf is 01CA21F0 [10:29:06]SAM_PROTO_ClearQueue [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 09 00 00 [10:29:06]Write to MH i2c: E2 08 00 47 3F 80 09 00 00 00 00 00 00 F8 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 47 3F 00 90 00 FA [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]SAM_PROTO_ClearQueue done [10:29:06]KKMCreateOFDPacket [10:29:06]OFDProtocolAddRootSTLVToBuf [10:29:06]FM_MakeSignedData [10:29:06]FM_MakeSignedData [10:29:06]SAM_PROTO_SignData [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 01 02 [10:29:06]Write to MH i2c: E2 08 00 48 3F 80 0D 01 02 00 00 00 00 00 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 48 3F 00 90 00 FB [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=255 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 74 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DF 02 00 35 04 06 00 49 [10:29:06]Write to MH i2c: E2 02 01 49 3F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 74 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DF 02 00 35 04 06 00 49 00 00 E8 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 49 3F 00 90 00 FC [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=10 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 02 02 05 34 03 D2 34 5E [10:29:06]Write to MH i2c: E2 0D 00 4A 3F 80 0D 02 02 05 00 34 03 D2 34 5E 00 00 A8 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 03 00 4A 3F 00 90 00 FD [10:29:06]RAPDU: 90 00 [10:29:06]wFMCommunicate OK [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 0D 03 02 [10:29:06]Write to MH i2c: E2 08 00 4B 3F 80 0D 03 02 00 00 00 00 05 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 0B 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 0B 00 4B 3F 00 98 E0 B6 1A 2E 82 A0 B3 90 00 51 [10:29:06]RAPDU: 98 E0 B6 1A 2E 82 A0 B3 90 00 [10:29:06]wFMCommunicate OK [10:29:06]SAM_PROTO_SignData done [10:29:06]FM_MakeSignedData done [10:29:06]CreateOFDProtocolMessage [10:29:06]wFMCommunicate request_size=4 [10:29:06]MH_SAM_APDU [10:29:06]CAPDU: 80 11 00 00 [10:29:06]Write to MH i2c: E2 08 00 4C 3F 80 11 00 00 00 00 00 00 05 [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:06]Read from MH i2c: E2 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 17 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: E2 17 00 4C 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [10:29:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:29:06]wFMCommunicate OK [10:29:06]CreateOFDProtocolMessage done [10:29:06]OFDSenderStorePacket 188172 [10:29:06]StoreOFDPacket docnum=188172 [10:29:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 35 07 01 2C 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 74 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DF 02 00 35 04 06 00 49 34 03 D2 34 5E 98 E0 B6 1A 2E 82 A0 B3 [10:29:06]CheckFolder [10:29:06]dirname=/storage/ofd_packets [10:29:06]CheckFolder done [10:29:06]ProducePacketName [10:29:06]name=ofd_packets/00188172 [10:29:06]NVStorageSaveData ofd_packets/00188172 [10:29:06]File name is /storage/ofd_packets/00188172 [10:29:06]Write 301 bytes [10:29:06]NVStorageSaveData done [10:29:06]OFDSenderStorePacket done [10:29:06]KKMCreateOFDPacket done [10:29:06]NVStorageSaveData kkm_last_timestamp [10:29:06]File name is /storage/kkm_last_timestamp [10:29:06]Write 4 bytes [10:29:06]NVStorageSaveData done [10:29:06]ExternCall_PrintAddStr [10:29:06]wPrintStart [10:29:06]Write to MH i2c: 01 00 00 4D 3F 8C [10:29:06]Write i2c OK [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 07 00 [10:29:06]MH_I2C_Read... [10:29:06]Read from MH i2c: 01 07 00 4D 3F 00 00 00 00 00 FF 0F A1 [10:29:06]RasterBufferAndPrint [10:29:06]line Счет N : (1)210223 [10:29:06]line ИНН: 02508201610067 [10:29:06]line Контрольно-Кассовый Чек [10:29:06]line ПРОДАЖА [10:29:06]line ТРК (МРК, ГНК) : 22 [10:29:06]line Товар: 2710124130 [10:29:06]line Аи-92-К-3 [10:29:06]line 19.440 * 66.90 [10:29:06]line = 1300.54 [10:29:06]line НДС 12% НСП 1% [10:29:06]line > о реализуемом товаре [10:29:06]line ОКРУГЛЕНИЕ: -0.54 [10:29:06]line ИТОГО: 1300.00 [10:29:06]line Внесено: 1300.00 [10:29:06]line СДАЧА: 0.00 [10:29:06]line НСП 1% : 11.51 [10:29:06]line НДС 12% : 138.11 [10:29:06]line Наличными: 1300.00 [10:29:06]line Безнал.: 0.00 [10:29:06]line Место: АЗС № 86 "Партнер Нефть" [10:29:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:29:06]line СНО: Общий режим [10:29:06]line Чек 201 22.10.2024 10:29 [10:29:06]line Смена: 461 ФФД: 1.0 [10:29:06]line ЗНМ: 0300000155 [10:29:06]line РНМ: 0000000000100030 [10:29:06]line Версия ККМ: 001 [10:29:06]line ФМ: 0000000000965340 [10:29:06]line ФД: 188172 [10:29:06]line ФПД: 80487751234654 [10:29:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T102908&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188172&fm=80487751234654&tin=02508201610067®Number=0000000000100030&sum=130000 [10:29:06]written 0, free lines is 4095 [10:29:06]OFD Sender: Processing packet 188172 [packets to send 1062, broken 1061] [10:29:06]ProducePacketName [10:29:06]name=ofd_packets/00188172 [10:29:06]OFD Sender: To server: pG, [10:29:06]CommunicateWithHost lk.salyk.kg:30040 [10:29:06]ConnectInit lk.salyk.kg [10:29:07]Connected sock=10 [10:29:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EF 35 07 01 2C 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C9 00 00 00 F4 03 04 00 74 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DF 02 00 35 04 06 00 49 34 03 D2 34 5E 98 E0 B6 1A 2E 82 A0 B3 [10:29:07]Write to MH i2c: 01 00 00 78 3F B7 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: 01 07 00 78 3F 00 00 00 00 00 5F 0C 29 [10:29:07]RasterBufferAndPrint [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]line [10:29:07]written 0, free lines is 3170 [10:29:07]MH_Cut [10:29:07]Write to MH i2c: D1 01 00 7F 3F 01 90 [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 01 00 [10:29:07]MH_I2C_Read... [10:29:07]Read from MH i2c: D1 01 00 7F 3F 00 8F [10:29:07]Write to MH i2c: 01 00 00 80 3F BF [10:29:07]Write i2c OK [10:29:07]MH_I2C_Read... [10:29:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BC DD 47 00 17 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C DF 02 00 F4 03 04 00 61 28 17 67 B6 04 01 00 00 A4 D4 8F 39 A1 00 80 0C [10:29:07]CommunicateWithHost err = 0 [10:29:07]CheckOFDResponse [10:29:07]1017 (14) - 77093643461234 [10:29:07]1041 (16) - 0000000000965340 [10:29:07]1040 (4) - 188172 [10:29:07]1012 (4) - 22.10.2024 04:21 [10:29:07]1206 (1) - 0 [10:29:07]OFD Sender: Remove packet 188172 [10:29:07]ProducePacketName [10:29:07]name=ofd_packets/00188172 [10:29:07]NVStorageDeleteData [10:29:07]OFD Sender: No OFD packet to send [10:29:08]*** Cut start [10:29:08]*** Partial cut [10:29:08]*** CUTSNS_PIN = 1 [10:29:08]*** CUTSNS_PIN = 0 [10:29:08]*** Brake cut motor [10:29:09]Read from MH i2c: 01 [10:29:09]MH_I2C_Read... [10:29:09]*** Stop cut motor [10:29:09]*** Cut end [10:29:09]Read from MH i2c: 01 07 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: 01 07 00 80 3F 00 00 00 00 00 FF 0F D4 [10:29:09]process_action close_receipt done [10:29:09]requested_data is exist [10:29:09]produce_requested_data [10:29:09]requested_item fm.sn is exist - process it [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 11 00 00 [10:29:09]Write to MH i2c: E2 08 00 81 3F 80 11 00 00 00 00 00 00 3A [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 17 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 17 00 81 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [10:29:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:29:09]wFMCommunicate OK [10:29:09]requested_item fd.num is exist - process it [10:29:09]SAM_PROTO_GetFieldsCounters [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 00 00 [10:29:09]Write to MH i2c: E2 08 00 82 3F 80 13 00 00 00 00 00 00 3D [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 62 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 62 00 82 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 5A [10:29:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C9 00 00 00 5E 04 04 00 C9 00 00 00 57 04 04 00 CA 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetFieldsCounters done [10:29:09]requested_item shift.num is exist - process it [10:29:09]requested_item shift.opened is exist - process it [10:29:09]req_shift_opened [10:29:09]FM_GetShiftState [10:29:09]SAM_PROTO_GetShiftState [10:29:09]wFMCommunicate request_size=4 [10:29:09]MH_SAM_APDU [10:29:09]CAPDU: 80 13 01 00 [10:29:09]Write to MH i2c: E2 08 00 83 3F 80 13 01 00 00 00 00 00 3F [10:29:09]Write i2c OK [10:29:09]MH_I2C_Read... [10:29:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:29:09]Read from MH i2c: E2 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 [10:29:09]MH_I2C_Read... [10:29:09]Read from MH i2c: E2 0E 00 83 3F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 34 [10:29:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:29:09]wFMCommunicate OK [10:29:09]SAM_PROTO_GetShiftState done [10:29:09]FM_GetShiftState done [10:29:09]req_shift_opened done [10:29:09]requested_item shift.open_date is exist - process it [10:29:09]req_shift_open_date [10:29:09]req_shift_open_date done [10:29:09]produce_requested_data done [10:29:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188172,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:29:09]process_action_free close_receipt [10:29:09]json_value_free [10:29:09]json_value_free done [10:29:09]process_json_proto returns [10:29:09]Send response to host [10:29:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188172,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:29:09]free response buf [10:29:09]execute_script done [10:29:09]execute_script returns [10:29:09]free content buf [10:29:09]Sock 9.Close socket [10:29:09]Sock 9.Thread stoped [10:29:12]OFD Sender: No OFD packet to send [10:29:17]OFD Sender: No OFD packet to send [10:29:22]OFD Sender: No OFD packet to send [10:29:28]OFD Sender: No OFD packet to send [10:29:33]OFD Sender: No OFD packet to send [10:29:38]OFD Sender: No OFD packet to send [10:29:43]OFD Sender: No OFD packet to send [10:29:48]OFD Sender: No OFD packet to send [10:29:53]OFD Sender: No OFD packet to send [10:29:58]OFD Sender: No OFD packet to send [10:30:03]OFD Sender: No OFD packet to send [10:30:08]OFD Sender: No OFD packet to send [10:30:13]OFD Sender: No OFD packet to send [10:30:18]OFD Sender: No OFD packet to send [10:30:23]OFD Sender: No OFD packet to send [10:30:28]OFD Sender: No OFD packet to send [10:30:33]OFD Sender: No OFD packet to send [10:30:38]OFD Sender: No OFD packet to send [10:30:43]OFD Sender: No OFD packet to send [10:30:48]OFD Sender: No OFD packet to send [10:30:48]accept exits with 8 [10:30:48]New connection [10:30:48]New thread 3067055460 created [10:30:48]Thread 3067198820 joined [10:30:48]Waiting for new connection... [10:30:48] Sock 8.Parse request [10:30:48]Sock 8.Check first char [10:30:48]Sock 8.First char is OK [10:30:48]request: POST /json_proto HTTP/1.0 [10:30:48]Method: POST [10:30:48]URL: /json_proto [10:30:48]Method is POST - this is cgi request [10:30:48]url: /json_proto [10:30:48]query_string will be loaded in cgi processing [10:30:48]execute_cgi json_proto POST (null) [10:30:48]execute_cgi path=json_proto method=POST [10:30:48]POST find Content-Length [10:30:48]Host: 172.17.42.131:8080 [10:30:48]Content-Length: 684 [10:30:48]Content-Type: application/json [10:30:48] [10:30:48]POST finish read [10:30:48]Found Content-Length = 684 [10:30:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:48]execute_script... [10:30: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)210225", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:30:48]POST & json_proto [10:30:48]process_json_proto [10:30:48]json parsed OK: [10:30:48]protocol is kg_v1.0 [10:30:48]action value=close_receipt [10:30:48]process_action close_receipt [10:30:48]cmd_close_receipt [10:30:48]MH_GetDate [10:30:48]Write to MH i2c: F0 00 00 84 3F B2 [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: F0 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: F0 09 00 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: F0 09 00 84 3F 00 DC 7E 17 67 A0 18 CA 66 7B [10:30:48]GetLastDocTimeStamp 1729592948 [10:30:48]current date 1729593052 [10:30:48]FM_GetShiftState [10:30:48]SAM_PROTO_GetShiftState [10:30:48]wFMCommunicate request_size=4 [10:30:48]MH_SAM_APDU [10:30:48]CAPDU: 80 13 01 00 [10:30:48]Write to MH i2c: E2 08 00 85 3F 80 13 01 00 00 00 00 00 41 [10:30:48]Write i2c OK [10:30:48]MH_I2C_Read... [10:30:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:48]Read from MH i2c: E2 [10:30:48]MH_I2C_Read... [10:30:48]Read from MH i2c: E2 0E 00 [10:30:48]MH_I2C_Read... [10:30:49]Read from MH i2c: E2 0E 00 85 3F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [10:30:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:30:49]wFMCommunicate OK [10:30:49]SAM_PROTO_GetShiftState done [10:30:49]FM_GetShiftState done [10:30:49]opened in 1729556094 [10:30:49]opened+sec_in_day 1729642494 [10:30:49]quantity*price = 80056 [10:30:49]sum+1 = 80057 [10:30:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 202 22.10.2024 10:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188173 ФПД: 86646982901167 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103052&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188173&fm=86646982901167&tin=02508201610067®Number=0000000000100030&sum=80000 [10:30:50]StoreToDocumentArchive [10:30:50]shift 461 fd 188173 [10:30:50]save to /storage/0461/doc_00188173 [10:30:50]save last doc name /storage/0461/doc_00188173 to /storage/kkm_last_doc_name [10:30:50]save OK [10:30:50]Clear old archive folders... [10:30:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:30:50]tlvbuf is 01BBCEE0 [10:30:50]SAM_PROTO_ClearQueue [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 09 00 00 [10:30:50]Write to MH i2c: E2 08 00 92 3F 80 09 00 00 00 00 00 00 43 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 92 3F 00 90 00 45 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]SAM_PROTO_ClearQueue done [10:30:50]KKMCreateOFDPacket [10:30:50]OFDProtocolAddRootSTLVToBuf [10:30:50]FM_MakeSignedData [10:30:50]FM_MakeSignedData [10:30:50]SAM_PROTO_SignData [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 01 02 [10:30:50]Write to MH i2c: E2 08 00 93 3F 80 0D 01 02 00 00 00 00 4B [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 93 3F 00 90 00 46 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]wFMCommunicate request_size=255 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DC 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DF 02 [10:30:50]Write to MH i2c: E2 02 01 94 3F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DC 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DF 02 00 00 93 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 94 3F 00 90 00 47 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]wFMCommunicate request_size=16 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4E CE 12 A2 FD AF [10:30:50]Write to MH i2c: E2 13 00 95 3F 80 0D 02 02 0B 00 00 35 04 06 00 4E CE 12 A2 FD AF 00 00 1F [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 03 00 95 3F 00 90 00 48 [10:30:50]RAPDU: 90 00 [10:30:50]wFMCommunicate OK [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 0D 03 02 [10:30:50]Write to MH i2c: E2 08 00 96 3F 80 0D 03 02 00 00 00 00 50 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 0B 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 0B 00 96 3F 00 FE 41 12 D3 CB 37 10 74 90 00 FB [10:30:50]RAPDU: FE 41 12 D3 CB 37 10 74 90 00 [10:30:50]wFMCommunicate OK [10:30:50]SAM_PROTO_SignData done [10:30:50]FM_MakeSignedData done [10:30:50]CreateOFDProtocolMessage [10:30:50]wFMCommunicate request_size=4 [10:30:50]MH_SAM_APDU [10:30:50]CAPDU: 80 11 00 00 [10:30:50]Write to MH i2c: E2 08 00 97 3F 80 11 00 00 00 00 00 00 50 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:50]Read from MH i2c: E2 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 17 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: E2 17 00 97 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [10:30:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:30:50]wFMCommunicate OK [10:30:50]CreateOFDProtocolMessage done [10:30:50]OFDSenderStorePacket 188173 [10:30:50]StoreOFDPacket docnum=188173 [10:30:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BC F8 0D 01 9E D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DC 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DF 02 00 35 04 06 00 4E CE 12 A2 FD AF FE 41 12 D3 CB 37 10 74 [10:30:50]CheckFolder [10:30:50]dirname=/storage/ofd_packets [10:30:50]CheckFolder done [10:30:50]ProducePacketName [10:30:50]name=ofd_packets/00188173 [10:30:50]NVStorageSaveData ofd_packets/00188173 [10:30:50]File name is /storage/ofd_packets/00188173 [10:30:50]Write 307 bytes [10:30:50]NVStorageSaveData done [10:30:50]OFDSenderStorePacket done [10:30:50]KKMCreateOFDPacket done [10:30:50]NVStorageSaveData kkm_last_timestamp [10:30:50]File name is /storage/kkm_last_timestamp [10:30:50]Write 4 bytes [10:30:50]NVStorageSaveData done [10:30:50]ExternCall_PrintAddStr [10:30:50]wPrintStart [10:30:50]Write to MH i2c: 01 00 00 98 3F D7 [10:30:50]Write i2c OK [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 07 00 [10:30:50]MH_I2C_Read... [10:30:50]Read from MH i2c: 01 07 00 98 3F 00 00 00 00 00 FF 0F EC [10:30:50]RasterBufferAndPrint [10:30:50]line Счет N : (1)210225 [10:30:50]line ИНН: 02508201610067 [10:30:50]line Контрольно-Кассовый Чек [10:30:50]line ПРОДАЖА [10:30:50]line ТРК (МРК, ГНК) : 31 [10:30:50]line Товар: 2710194210 [10:30:50]line D-ENERGY ДТ-К-5 [10:30:50]line 10.370 * 77.20 [10:30:50]line = 800.56 [10:30:50]line НДС 12% НСП 1% [10:30:50]line > о реализуемом товаре [10:30:50]line ОКРУГЛЕНИЕ: -0.56 [10:30:50]line ИТОГО: 800.00 [10:30:50]line Внесено: 800.00 [10:30:50]line СДАЧА: 0.00 [10:30:50]line НСП 1% : 7.08 [10:30:50]line НДС 12% : 85.01 [10:30:50]line Наличными: 800.00 [10:30:50]line Безнал.: 0.00 [10:30:50]line Место: АЗС № 86 "Партнер Нефть" [10:30:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:30:50]line СНО: Общий режим [10:30:50]line Чек 202 22.10.2024 10:30 [10:30:50]line Смена: 461 ФФД: 1.0 [10:30:50]line ЗНМ: 0300000155 [10:30:50]line РНМ: 0000000000100030 [10:30:50]line Версия ККМ: 001 [10:30:50]line ФМ: 0000000000965340 [10:30:50]line ФД: 188173 [10:30:50]line ФПД: 86646982901167 [10:30:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103052&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188173&fm=86646982901167&tin=02508201610067®Number=0000000000100030&sum=80000 [10:30:50]written 0, free lines is 4095 [10:30:50]OFD Sender: Processing packet 188173 [packets to send 1062, broken 1061] [10:30:50]ProducePacketName [10:30:50]name=ofd_packets/00188173 [10:30:50]OFD Sender: To server: pG, [10:30:50]CommunicateWithHost lk.salyk.kg:30040 [10:30:50]ConnectInit lk.salyk.kg [10:30:50]Connected sock=9 [10:30:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BC F8 0D 01 9E D1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CA 00 00 00 F4 03 04 00 DC 7E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DF 02 00 35 04 06 00 4E CE 12 A2 FD AF FE 41 12 D3 CB 37 10 74 [10:30:51]Write to MH i2c: 01 00 00 C3 3F 02 [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 07 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: 01 07 00 C3 3F 00 00 00 00 00 62 0C 77 [10:30:51]RasterBufferAndPrint [10:30:51]line [10:30:51]line [10:30:51]line [10:30:51]line [10:30:51]line [10:30:51]written 0, free lines is 3174 [10:30:51]MH_Cut [10:30:51]Write to MH i2c: D1 01 00 CA 3F 01 DB [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: D1 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: D1 01 00 [10:30:51]MH_I2C_Read... [10:30:51]Read from MH i2c: D1 01 00 CA 3F 00 DA [10:30:51]Write to MH i2c: 01 00 00 CB 3F 0A [10:30:51]Write i2c OK [10:30:51]MH_I2C_Read... [10:30:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 3A 47 00 0C DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D DF 02 00 F4 03 04 00 C9 28 17 67 B6 04 01 00 00 77 26 F1 52 46 1C A9 D8 [10:30:51]CommunicateWithHost err = 0 [10:30:51]CheckOFDResponse [10:30:51]1017 (14) - 77093643461234 [10:30:51]1041 (16) - 0000000000965340 [10:30:51]1040 (4) - 188173 [10:30:51]1012 (4) - 22.10.2024 04:23 [10:30:51]1206 (1) - 0 [10:30:51]OFD Sender: Remove packet 188173 [10:30:51]ProducePacketName [10:30:51]name=ofd_packets/00188173 [10:30:51]NVStorageDeleteData [10:30:51]OFD Sender: No OFD packet to send [10:30:52]*** Cut start [10:30:52]*** Partial cut [10:30:52]*** CUTSNS_PIN = 1 [10:30:52]*** CUTSNS_PIN = 0 [10:30:52]*** Brake cut motor [10:30:52]Read from MH i2c: 01 [10:30:53]MH_I2C_Read... [10:30:53]*** Stop cut motor [10:30:53]*** Cut end [10:30:53]Read from MH i2c: 01 07 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: 01 07 00 CB 3F 00 00 00 00 00 FF 0F 1F [10:30:53]process_action close_receipt done [10:30:53]requested_data is exist [10:30:53]produce_requested_data [10:30:53]requested_item fm.sn is exist - process it [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 11 00 00 [10:30:53]Write to MH i2c: E2 08 00 CC 3F 80 11 00 00 00 00 00 00 85 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 17 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 17 00 CC 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [10:30:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:30:53]wFMCommunicate OK [10:30:53]requested_item fd.num is exist - process it [10:30:53]SAM_PROTO_GetFieldsCounters [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 13 00 00 [10:30:53]Write to MH i2c: E2 08 00 CD 3F 80 13 00 00 00 00 00 00 88 [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 62 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 62 00 CD 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 A9 [10:30:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CA 00 00 00 5E 04 04 00 CA 00 00 00 57 04 04 00 CB 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:30:53]wFMCommunicate OK [10:30:53]SAM_PROTO_GetFieldsCounters done [10:30:53]requested_item shift.num is exist - process it [10:30:53]requested_item shift.opened is exist - process it [10:30:53]req_shift_opened [10:30:53]FM_GetShiftState [10:30:53]SAM_PROTO_GetShiftState [10:30:53]wFMCommunicate request_size=4 [10:30:53]MH_SAM_APDU [10:30:53]CAPDU: 80 13 01 00 [10:30:53]Write to MH i2c: E2 08 00 CE 3F 80 13 01 00 00 00 00 00 8A [10:30:53]Write i2c OK [10:30:53]MH_I2C_Read... [10:30:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:30:53]Read from MH i2c: E2 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0E 00 [10:30:53]MH_I2C_Read... [10:30:53]Read from MH i2c: E2 0E 00 CE 3F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7F [10:30:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:30:53]wFMCommunicate OK [10:30:53]SAM_PROTO_GetShiftState done [10:30:53]FM_GetShiftState done [10:30:53]req_shift_opened done [10:30:53]requested_item shift.open_date is exist - process it [10:30:53]req_shift_open_date [10:30:53]req_shift_open_date done [10:30:53]produce_requested_data done [10:30:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188173,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:30:53]process_action_free close_receipt [10:30:53]json_value_free [10:30:53]json_value_free done [10:30:53]process_json_proto returns [10:30:53]Send response to host [10:30:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188173,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:30:53]free response buf [10:30:53]execute_script done [10:30:53]execute_script returns [10:30:53]free content buf [10:30:53]Sock 8.Close socket [10:30:53]Sock 8.Thread stoped [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:27]OFD Sender: No OFD packet to send [10:31:32]OFD Sender: No OFD packet to send [10:31:37]OFD Sender: No OFD packet to send [10:31:42]OFD Sender: No OFD packet to send [10:31:47]OFD Sender: No OFD packet to send [10:31:52]OFD Sender: No OFD packet to send [10:31:57]OFD Sender: No OFD packet to send [10:32:02]OFD Sender: No OFD packet to send [10:32:07]OFD Sender: No OFD packet to send [10:32:12]accept exits with 10 [10:32:12]New connection [10:32:12]New thread 3067198820 created [10:32:12]Thread 3067055460 joined [10:32:12]Waiting for new connection... [10:32:12] Sock 10.Parse request [10:32:12]Sock 10.Check first char [10:32:12]Sock 10.First char is OK [10:32:12]request: POST /json_proto HTTP/1.0 [10:32:12]Method: POST [10:32:12]URL: /json_proto [10:32:12]Method is POST - this is cgi request [10:32:12]url: /json_proto [10:32:12]query_string will be loaded in cgi processing [10:32:12]execute_cgi json_proto POST (null) [10:32:12]execute_cgi path=json_proto method=POST [10:32:12]POST find Content-Length [10:32:12]Host: 172.17.42.131:8080 [10:32:12]Content-Length: 648 [10:32:12]Content-Type: application/json [10:32:12] [10:32:12]POST finish read [10:32:12]Found Content-Length = 648 [10:32:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 50.000, "sum" : 3860.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:12]execute_script... [10:32:12]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210224", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 50.000, "sum" : 3860.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 3860.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:32:12]POST & json_proto [10:32:12]process_json_proto [10:32:12]json parsed OK: [10:32:12]protocol is kg_v1.0 [10:32:12]action value=close_receipt [10:32:12]process_action close_receipt [10:32:12]cmd_close_receipt [10:32:12]MH_GetDate [10:32:12]Write to MH i2c: F0 00 00 CF 3F FD [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: F0 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: F0 09 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: F0 09 00 CF 3F 00 2F 7F 17 67 A0 18 CA 66 1A [10:32:12]GetLastDocTimeStamp 1729593052 [10:32:12]current date 1729593135 [10:32:12]FM_GetShiftState [10:32:12]SAM_PROTO_GetShiftState [10:32:12]wFMCommunicate request_size=4 [10:32:12]MH_SAM_APDU [10:32:12]CAPDU: 80 13 01 00 [10:32:12]Write to MH i2c: E2 08 00 D0 3F 80 13 01 00 00 00 00 00 8C [10:32:12]Write i2c OK [10:32:12]MH_I2C_Read... [10:32:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:12]Read from MH i2c: E2 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0E 00 [10:32:12]MH_I2C_Read... [10:32:12]Read from MH i2c: E2 0E 00 D0 3F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 81 [10:32:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:32:12]wFMCommunicate OK [10:32:12]SAM_PROTO_GetShiftState done [10:32:12]FM_GetShiftState done [10:32:12]opened in 1729556094 [10:32:12]opened+sec_in_day 1729642494 [10:32:12]quantity*price = 386000 [10:32:12]sum+1 = 386001 [10:32:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3860.00 НСП 1% : 34.16 НДС 12% : 409.91 Наличными: 3860.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 203 22.10.2024 10:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188174 ФПД: 45616033905213 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188174&fm=45616033905213&tin=02508201610067®Number=0000000000100030&sum=386000 [10:32:13]StoreToDocumentArchive [10:32:13]shift 461 fd 188174 [10:32:13]save to /storage/0461/doc_00188174 [10:32:13]save last doc name /storage/0461/doc_00188174 to /storage/kkm_last_doc_name [10:32:13]save OK [10:32:13]Clear old archive folders... [10:32:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:32:13]tlvbuf is B6F16490 [10:32:13]SAM_PROTO_ClearQueue [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 09 00 00 [10:32:13]Write to MH i2c: E2 08 00 DD 3F 80 09 00 00 00 00 00 00 8E [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 DD 3F 00 90 00 90 [10:32:13]RAPDU: 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_ClearQueue done [10:32:13]KKMCreateOFDPacket [10:32:13]OFDProtocolAddRootSTLVToBuf [10:32:13]FM_MakeSignedData [10:32:13]FM_MakeSignedData [10:32:13]SAM_PROTO_SignData [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 0D 01 02 [10:32:13]Write to MH i2c: E2 08 00 DE 3F 80 0D 01 02 00 00 00 00 96 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 DE 3F 00 90 00 91 [10:32:13]RAPDU: 90 00 [10:32:13]wFMCommunicate OK [10:32:13]wFMCommunicate request_size=255 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D0 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 1F A0 00 00 00 00 07 04 06 00 D0 E3 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2F 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DF 02 [10:32:13]Write to MH i2c: E2 02 01 DF 3F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D0 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 1F A0 00 00 00 00 07 04 06 00 D0 E3 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2F 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DF 02 00 00 6A [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 DF 3F 00 90 00 92 [10:32:13]RAPDU: 90 00 [10:32:13]wFMCommunicate OK [10:32:13]wFMCommunicate request_size=16 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 29 7C CF 7F 3A 3D [10:32:13]Write to MH i2c: E2 13 00 E0 3F 80 0D 02 02 0B 00 00 35 04 06 00 29 7C CF 7F 3A 3D 00 00 58 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 03 00 E0 3F 00 90 00 93 [10:32:13]RAPDU: 90 00 [10:32:13]wFMCommunicate OK [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 0D 03 02 [10:32:13]Write to MH i2c: E2 08 00 E1 3F 80 0D 03 02 00 00 00 00 9B [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0B 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 0B 00 E1 3F 00 72 BD E5 49 F0 CF 9A 72 90 00 C4 [10:32:13]RAPDU: 72 BD E5 49 F0 CF 9A 72 90 00 [10:32:13]wFMCommunicate OK [10:32:13]SAM_PROTO_SignData done [10:32:13]FM_MakeSignedData done [10:32:13]CreateOFDProtocolMessage [10:32:13]wFMCommunicate request_size=4 [10:32:13]MH_SAM_APDU [10:32:13]CAPDU: 80 11 00 00 [10:32:13]Write to MH i2c: E2 08 00 E2 3F 80 11 00 00 00 00 00 00 9B [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:13]Read from MH i2c: E2 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: E2 17 00 E2 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [10:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:32:13]wFMCommunicate OK [10:32:13]CreateOFDProtocolMessage done [10:32:13]OFDSenderStorePacket 188174 [10:32:13]StoreOFDPacket docnum=188174 [10:32:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1E AC 0D 01 15 57 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D0 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 1F A0 00 00 00 00 07 04 06 00 D0 E3 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2F 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DF 02 00 35 04 06 00 29 7C CF 7F 3A 3D 72 BD E5 49 F0 CF 9A 72 [10:32:13]CheckFolder [10:32:13]dirname=/storage/ofd_packets [10:32:13]CheckFolder done [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00188174 [10:32:13]NVStorageSaveData ofd_packets/00188174 [10:32:13]File name is /storage/ofd_packets/00188174 [10:32:13]Write 307 bytes [10:32:13]NVStorageSaveData done [10:32:13]OFDSenderStorePacket done [10:32:13]KKMCreateOFDPacket done [10:32:13]NVStorageSaveData kkm_last_timestamp [10:32:13]File name is /storage/kkm_last_timestamp [10:32:13]Write 4 bytes [10:32:13]NVStorageSaveData done [10:32:13]ExternCall_PrintAddStr [10:32:13]wPrintStart [10:32:13]Write to MH i2c: 01 00 00 E3 3F 22 [10:32:13]Write i2c OK [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 [10:32:13]MH_I2C_Read... [10:32:13]Read from MH i2c: 01 07 00 E3 3F 00 00 00 00 00 FF 0F 37 [10:32:13]RasterBufferAndPrint [10:32:13]line Счет N : (1)210224 [10:32:13]line ИНН: 02508201610067 [10:32:13]line Контрольно-Кассовый Чек [10:32:13]line ПРОДАЖА [10:32:13]line ТРК (МРК, ГНК) : 41 [10:32:13]line Товар: 2710194210 [10:32:13]line D-ENERGY ДТ-К-5 [10:32:13]line 50.000 * 77.20 [10:32:13]line = 3860.00 [10:32:13]line НДС 12% НСП 1% [10:32:13]line > о реализуемом товаре [10:32:13]line ИТОГО: 3860.00 [10:32:13]line НСП 1% : 34.16 [10:32:13]line НДС 12% : 409.91 [10:32:13]line Наличными: 3860.00 [10:32:13]line Безнал.: 0.00 [10:32:13]line Место: АЗС № 86 "Партнер Нефть" [10:32:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:32:13]line СНО: Общий режим [10:32:13]line Чек 203 22.10.2024 10:32 [10:32:13]line Смена: 461 ФФД: 1.0 [10:32:13]line ЗНМ: 0300000155 [10:32:13]line РНМ: 0000000000100030 [10:32:13]line Версия ККМ: 001 [10:32:13]line ФМ: 0000000000965340 [10:32:13]line ФД: 188174 [10:32:13]line ФПД: 45616033905213 [10:32:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188174&fm=45616033905213&tin=02508201610067®Number=0000000000100030&sum=386000 [10:32:13]written 0, free lines is 4095 [10:32:13]OFD Sender: Processing packet 188174 [packets to send 1062, broken 1061] [10:32:13]ProducePacketName [10:32:13]name=ofd_packets/00188174 [10:32:13]OFD Sender: To server: pG, [10:32:13]CommunicateWithHost lk.salyk.kg:30040 [10:32:13]ConnectInit lk.salyk.kg [10:32:14]Connected sock=9 [10:32:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1E AC 0D 01 15 57 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D0 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 1F A0 00 00 00 00 07 04 06 00 D0 E3 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CB 00 00 00 F4 03 04 00 2F 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DF 02 00 35 04 06 00 29 7C CF 7F 3A 3D 72 BD E5 49 F0 CF 9A 72 [10:32:14]Write to MH i2c: 01 00 00 0B 40 4B [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: 01 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: 01 07 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: 01 07 00 0B 40 00 00 00 00 00 AA 0C 08 [10:32:14]RasterBufferAndPrint [10:32:14]line [10:32:14]line [10:32:14]line [10:32:14]line [10:32:14]line [10:32:14]written 0, free lines is 3245 [10:32:14]MH_Cut [10:32:14]Write to MH i2c: D1 01 00 12 40 01 24 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: D1 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: D1 01 00 [10:32:14]MH_I2C_Read... [10:32:14]Read from MH i2c: D1 01 00 12 40 00 23 [10:32:14]Write to MH i2c: 01 00 00 13 40 53 [10:32:14]Write i2c OK [10:32:14]MH_I2C_Read... [10:32:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 17 47 00 E1 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E DF 02 00 F4 03 04 00 1C 29 17 67 B6 04 01 00 00 8F B4 29 80 5E 47 F7 E3 [10:32:14]CommunicateWithHost err = 0 [10:32:14]CheckOFDResponse [10:32:14]1017 (14) - 77093643461234 [10:32:14]1041 (16) - 0000000000965340 [10:32:14]1040 (4) - 188174 [10:32:14]1012 (4) - 22.10.2024 04:25 [10:32:14]1206 (1) - 0 [10:32:14]OFD Sender: Remove packet 188174 [10:32:14]ProducePacketName [10:32:14]name=ofd_packets/00188174 [10:32:14]NVStorageDeleteData [10:32:14]OFD Sender: No OFD packet to send [10:32:15]*** Cut start [10:32:15]*** Partial cut [10:32:15]*** CUTSNS_PIN = 1 [10:32:15]*** CUTSNS_PIN = 0 [10:32:15]*** Brake cut motor [10:32:16]Read from MH i2c: 01 [10:32:16]MH_I2C_Read... [10:32:16]*** Stop cut motor [10:32:16]*** Cut end [10:32:16]Read from MH i2c: 01 07 00 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: 01 07 00 13 40 00 00 00 00 00 FF 0F 68 [10:32:16]process_action close_receipt done [10:32:16]requested_data is exist [10:32:16]produce_requested_data [10:32:16]requested_item fm.sn is exist - process it [10:32:16]wFMCommunicate request_size=4 [10:32:16]MH_SAM_APDU [10:32:16]CAPDU: 80 11 00 00 [10:32:16]Write to MH i2c: E2 08 00 14 40 80 11 00 00 00 00 00 00 CE [10:32:16]Write i2c OK [10:32:16]MH_I2C_Read... [10:32:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:32:16]Read from MH i2c: E2 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: E2 17 00 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: E2 17 00 14 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [10:32:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:32:16]wFMCommunicate OK [10:32:16]requested_item fd.num is exist - process it [10:32:16]SAM_PROTO_GetFieldsCounters [10:32:16]wFMCommunicate request_size=4 [10:32:16]MH_SAM_APDU [10:32:16]CAPDU: 80 13 00 00 [10:32:16]Write to MH i2c: E2 08 00 15 40 80 13 00 00 00 00 00 00 D1 [10:32:16]Write i2c OK [10:32:16]MH_I2C_Read... [10:32:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:32:16]Read from MH i2c: E2 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: E2 62 00 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: E2 62 00 15 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [10:32:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CB 00 00 00 5E 04 04 00 CB 00 00 00 57 04 04 00 CC 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:32:16]wFMCommunicate OK [10:32:16]SAM_PROTO_GetFieldsCounters done [10:32:16]requested_item shift.num is exist - process it [10:32:16]requested_item shift.opened is exist - process it [10:32:16]req_shift_opened [10:32:16]FM_GetShiftState [10:32:16]SAM_PROTO_GetShiftState [10:32:16]wFMCommunicate request_size=4 [10:32:16]MH_SAM_APDU [10:32:16]CAPDU: 80 13 01 00 [10:32:16]Write to MH i2c: E2 08 00 16 40 80 13 01 00 00 00 00 00 D3 [10:32:16]Write i2c OK [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: E2 [10:32:16]MH_I2C_Read... [10:32:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:32:16]Read from MH i2c: E2 0E 00 [10:32:16]MH_I2C_Read... [10:32:16]Read from MH i2c: E2 0E 00 16 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [10:32:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:32:16]wFMCommunicate OK [10:32:16]SAM_PROTO_GetShiftState done [10:32:16]FM_GetShiftState done [10:32:16]req_shift_opened done [10:32:16]requested_item shift.open_date is exist - process it [10:32:16]req_shift_open_date [10:32:16]req_shift_open_date done [10:32:16]produce_requested_data done [10:32:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188174,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:32:16]process_action_free close_receipt [10:32:16]json_value_free [10:32:16]json_value_free done [10:32:16]process_json_proto returns [10:32:16]Send response to host [10:32:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188174,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:32:16]free response buf [10:32:16]execute_script done [10:32:16]execute_script returns [10:32:16]free content buf [10:32:16]Sock 10.Close socket [10:32:16]Sock 10.Thread stoped [10:32:19]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:30]accept exits with 8 [10:33:30]New connection [10:33:30]New thread 3067055460 created [10:33:30]Thread 3067198820 joined [10:33:30]Waiting for new connection... [10:33:30] Sock 8.Parse request [10:33:30]Sock 8.Check first char [10:33:30]Sock 8.First char is OK [10:33:30]request: POST /json_proto HTTP/1.0 [10:33:30]Method: POST [10:33:30]URL: /json_proto [10:33:30]Method is POST - this is cgi request [10:33:30]url: /json_proto [10:33:30]query_string will be loaded in cgi processing [10:33:30]execute_cgi json_proto POST (null) [10:33:30]execute_cgi path=json_proto method=POST [10:33:30]POST find Content-Length [10:33:30]Host: 172.17.42.131:8080 [10:33:30]Content-Length: 684 [10:33:30]Content-Type: application/json [10:33:30] [10:33:30]POST finish read [10:33:30]Found Content-Length = 684 [10:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.080, "sum" : 855.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 855.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:30]execute_script... [10:33: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)210226", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.080, "sum" : 855.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 855.00, "total" : 855.00, "payments": [ { "type": 0, "sum" : 855.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:33:30]POST & json_proto [10:33:30]process_json_proto [10:33:30]json parsed OK: [10:33:30]protocol is kg_v1.0 [10:33:30]action value=close_receipt [10:33:30]process_action close_receipt [10:33:30]cmd_close_receipt [10:33:30]MH_GetDate [10:33:30]Write to MH i2c: F0 00 00 17 40 46 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: F0 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: F0 09 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: F0 09 00 17 40 00 7D 7F 17 67 A0 18 CA 66 B1 [10:33:30]GetLastDocTimeStamp 1729593135 [10:33:30]current date 1729593213 [10:33:30]FM_GetShiftState [10:33:30]SAM_PROTO_GetShiftState [10:33:30]wFMCommunicate request_size=4 [10:33:30]MH_SAM_APDU [10:33:30]CAPDU: 80 13 01 00 [10:33:30]Write to MH i2c: E2 08 00 18 40 80 13 01 00 00 00 00 00 D5 [10:33:30]Write i2c OK [10:33:30]MH_I2C_Read... [10:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:30]Read from MH i2c: E2 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 0E 00 [10:33:30]MH_I2C_Read... [10:33:30]Read from MH i2c: E2 0E 00 18 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CA [10:33:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:33:30]wFMCommunicate OK [10:33:30]SAM_PROTO_GetShiftState done [10:33:30]FM_GetShiftState done [10:33:30]opened in 1729556094 [10:33:30]opened+sec_in_day 1729642494 [10:33:30]quantity*price = 85537 [10:33:30]sum+1 = 85539 [10:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 855.00 Внесено: 855.00 СДАЧА: 0.00 НСП 1% : 7.57 НДС 12% : 90.84 Наличными: 855.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 204 22.10.2024 10:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188175 ФПД: 190241332477720 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188175&fm=190241332477720&tin=02508201610067®Number=0000000000100030&sum=85500 [10:33:31]StoreToDocumentArchive [10:33:31]shift 461 fd 188175 [10:33:31]save to /storage/0461/doc_00188175 [10:33:31]save last doc name /storage/0461/doc_00188175 to /storage/kkm_last_doc_name [10:33:31]save OK [10:33:31]Clear old archive folders... [10:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:33:31]tlvbuf is 01D00540 [10:33:31]SAM_PROTO_ClearQueue [10:33:31]wFMCommunicate request_size=4 [10:33:31]MH_SAM_APDU [10:33:31]CAPDU: 80 09 00 00 [10:33:31]Write to MH i2c: E2 08 00 25 40 80 09 00 00 00 00 00 00 D7 [10:33:31]Write i2c OK [10:33:31]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 25 40 00 90 00 D9 [10:33:32]RAPDU: 90 00 [10:33:32]wFMCommunicate OK [10:33:32]SAM_PROTO_ClearQueue done [10:33:32]KKMCreateOFDPacket [10:33:32]OFDProtocolAddRootSTLVToBuf [10:33:32]FM_MakeSignedData [10:33:32]FM_MakeSignedData [10:33:32]SAM_PROTO_SignData [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 0D 01 02 [10:33:32]Write to MH i2c: E2 08 00 26 40 80 0D 01 02 00 00 00 00 DF [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 26 40 00 90 00 DA [10:33:32]RAPDU: 90 00 [10:33:32]wFMCommunicate OK [10:33:32]wFMCommunicate request_size=255 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 2B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 22 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7D 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DF 02 [10:33:32]Write to MH i2c: E2 02 01 27 40 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 2B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 22 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7D 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DF 02 00 00 B2 [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 27 40 00 90 00 DB [10:33:32]RAPDU: 90 00 [10:33:32]wFMCommunicate OK [10:33:32]wFMCommunicate request_size=16 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AD 06 03 0B 3F 18 [10:33:32]Write to MH i2c: E2 13 00 28 40 80 0D 02 02 0B 00 00 35 04 06 00 AD 06 03 0B 3F 18 00 00 4F [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 03 00 28 40 00 90 00 DC [10:33:32]RAPDU: 90 00 [10:33:32]wFMCommunicate OK [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 0D 03 02 [10:33:32]Write to MH i2c: E2 08 00 29 40 80 0D 03 02 00 00 00 00 E4 [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 0B 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 0B 00 29 40 00 DD 8D 15 E2 CE 53 14 E6 90 00 61 [10:33:32]RAPDU: DD 8D 15 E2 CE 53 14 E6 90 00 [10:33:32]wFMCommunicate OK [10:33:32]SAM_PROTO_SignData done [10:33:32]FM_MakeSignedData done [10:33:32]CreateOFDProtocolMessage [10:33:32]wFMCommunicate request_size=4 [10:33:32]MH_SAM_APDU [10:33:32]CAPDU: 80 11 00 00 [10:33:32]Write to MH i2c: E2 08 00 2A 40 80 11 00 00 00 00 00 00 E4 [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:32]Read from MH i2c: E2 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 17 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: E2 17 00 2A 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [10:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:33:32]wFMCommunicate OK [10:33:32]CreateOFDProtocolMessage done [10:33:32]OFDSenderStorePacket 188175 [10:33:32]StoreOFDPacket docnum=188175 [10:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C7 3B 0D 01 A6 D5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 2B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 22 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7D 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DF 02 00 35 04 06 00 AD 06 03 0B 3F 18 DD 8D 15 E2 CE 53 14 E6 [10:33:32]CheckFolder [10:33:32]dirname=/storage/ofd_packets [10:33:32]CheckFolder done [10:33:32]ProducePacketName [10:33:32]name=ofd_packets/00188175 [10:33:32]NVStorageSaveData ofd_packets/00188175 [10:33:32]File name is /storage/ofd_packets/00188175 [10:33:32]Write 307 bytes [10:33:32]NVStorageSaveData done [10:33:32]OFDSenderStorePacket done [10:33:32]KKMCreateOFDPacket done [10:33:32]NVStorageSaveData kkm_last_timestamp [10:33:32]File name is /storage/kkm_last_timestamp [10:33:32]Write 4 bytes [10:33:32]NVStorageSaveData done [10:33:32]ExternCall_PrintAddStr [10:33:32]wPrintStart [10:33:32]Write to MH i2c: 01 00 00 2B 40 6B [10:33:32]Write i2c OK [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 07 00 [10:33:32]MH_I2C_Read... [10:33:32]Read from MH i2c: 01 07 00 2B 40 00 00 00 00 00 FF 0F 80 [10:33:32]RasterBufferAndPrint [10:33:32]line Счет N : (1)210226 [10:33:32]line ИНН: 02508201610067 [10:33:32]line Контрольно-Кассовый Чек [10:33:32]line ПРОДАЖА [10:33:32]line ТРК (МРК, ГНК) : 41 [10:33:32]line Товар: 2710194210 [10:33:32]line D-ENERGY ДТ-К-5 [10:33:32]line 11.080 * 77.20 [10:33:32]line = 855.38 [10:33:32]line НДС 12% НСП 1% [10:33:32]line > о реализуемом товаре [10:33:32]line ОКРУГЛЕНИЕ: -0.38 [10:33:32]line ИТОГО: 855.00 [10:33:32]line Внесено: 855.00 [10:33:32]line СДАЧА: 0.00 [10:33:32]line НСП 1% : 7.57 [10:33:32]line НДС 12% : 90.84 [10:33:32]line Наличными: 855.00 [10:33:32]line Безнал.: 0.00 [10:33:32]line Место: АЗС № 86 "Партнер Нефть" [10:33:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:33:32]line СНО: Общий режим [10:33:32]line Чек 204 22.10.2024 10:33 [10:33:32]line Смена: 461 ФФД: 1.0 [10:33:32]line ЗНМ: 0300000155 [10:33:32]line РНМ: 0000000000100030 [10:33:32]line Версия ККМ: 001 [10:33:32]line ФМ: 0000000000965340 [10:33:32]line ФД: 188175 [10:33:32]line ФПД: 190241332477720 [10:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188175&fm=190241332477720&tin=02508201610067®Number=0000000000100030&sum=85500 [10:33:32]written 0, free lines is 4095 [10:33:32]OFD Sender: Processing packet 188175 [packets to send 1062, broken 1061] [10:33:32]ProducePacketName [10:33:32]name=ofd_packets/00188175 [10:33:32]OFD Sender: To server: pG, [10:33:32]CommunicateWithHost lk.salyk.kg:30040 [10:33:32]ConnectInit lk.salyk.kg [10:33:32]Connected sock=9 [10:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C7 3B 0D 01 A6 D5 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 48 2B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 22 4E 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 4D 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F5 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 23 00 00 00 00 07 04 06 00 FC 4D 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CC 00 00 00 F4 03 04 00 7D 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F DF 02 00 35 04 06 00 AD 06 03 0B 3F 18 DD 8D 15 E2 CE 53 14 E6 [10:33:33]Write to MH i2c: 01 00 00 56 40 96 [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: 01 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: 01 07 00 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: 01 07 00 56 40 00 00 00 00 00 65 0C 0E [10:33:33]RasterBufferAndPrint [10:33:33]line [10:33:33]line [10:33:33]line [10:33:33]line [10:33:33]line [10:33:33]written 0, free lines is 3177 [10:33:33]MH_Cut [10:33:33]Write to MH i2c: D1 01 00 5D 40 01 6F [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: D1 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: D1 01 00 [10:33:33]MH_I2C_Read... [10:33:33]Read from MH i2c: D1 01 00 5D 40 00 6E [10:33:33]Write to MH i2c: 01 00 00 5E 40 9E [10:33:33]Write i2c OK [10:33:33]MH_I2C_Read... [10:33:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F1 12 47 00 AE 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 39 36 35 33 34 30 10 04 04 00 0F DF 02 00 F4 03 04 00 6B 29 17 67 B6 04 01 00 00 2B 83 C9 2E FB FC 2E AE [10:33:33]CommunicateWithHost err = 0 [10:33:33]CheckOFDResponse [10:33:33]1017 (14) - 77093643461234 [10:33:33]1041 (16) - 0000000000965340 [10:33:33]1040 (4) - 188175 [10:33:33]1012 (4) - 22.10.2024 04:26 [10:33:33]1206 (1) - 0 [10:33:33]OFD Sender: Remove packet 188175 [10:33:33]ProducePacketName [10:33:33]name=ofd_packets/00188175 [10:33:33]NVStorageDeleteData [10:33:33]OFD Sender: No OFD packet to send [10:33:34]*** Cut start [10:33:34]*** Partial cut [10:33:34]*** CUTSNS_PIN = 1 [10:33:34]*** CUTSNS_PIN = 0 [10:33:34]*** Brake cut motor [10:33:34]Read from MH i2c: 01 [10:33:34]MH_I2C_Read... [10:33:34]*** Stop cut motor [10:33:34]*** Cut end [10:33:34]Read from MH i2c: 01 07 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: 01 07 00 5E 40 00 00 00 00 00 FF 0F B3 [10:33:34]process_action close_receipt done [10:33:34]requested_data is exist [10:33:34]produce_requested_data [10:33:34]requested_item fm.sn is exist - process it [10:33:34]wFMCommunicate request_size=4 [10:33:34]MH_SAM_APDU [10:33:34]CAPDU: 80 11 00 00 [10:33:34]Write to MH i2c: E2 08 00 5F 40 80 11 00 00 00 00 00 00 19 [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:33:34]Read from MH i2c: E2 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 17 00 [10:33:34]MH_I2C_Read... [10:33:34]Read from MH i2c: E2 17 00 5F 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [10:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:33:34]wFMCommunicate OK [10:33:34]requested_item fd.num is exist - process it [10:33:34]SAM_PROTO_GetFieldsCounters [10:33:34]wFMCommunicate request_size=4 [10:33:34]MH_SAM_APDU [10:33:34]CAPDU: 80 13 00 00 [10:33:34]Write to MH i2c: E2 08 00 60 40 80 13 00 00 00 00 00 00 1C [10:33:34]Write i2c OK [10:33:34]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 62 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 62 00 60 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 45 [10:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CC 00 00 00 5E 04 04 00 CC 00 00 00 57 04 04 00 CD 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:33:35]wFMCommunicate OK [10:33:35]SAM_PROTO_GetFieldsCounters done [10:33:35]requested_item shift.num is exist - process it [10:33:35]requested_item shift.opened is exist - process it [10:33:35]req_shift_opened [10:33:35]FM_GetShiftState [10:33:35]SAM_PROTO_GetShiftState [10:33:35]wFMCommunicate request_size=4 [10:33:35]MH_SAM_APDU [10:33:35]CAPDU: 80 13 01 00 [10:33:35]Write to MH i2c: E2 08 00 61 40 80 13 01 00 00 00 00 00 1E [10:33:35]Write i2c OK [10:33:35]MH_I2C_Read... [10:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:33:35]Read from MH i2c: E2 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 0E 00 [10:33:35]MH_I2C_Read... [10:33:35]Read from MH i2c: E2 0E 00 61 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 13 [10:33:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:33:35]wFMCommunicate OK [10:33:35]SAM_PROTO_GetShiftState done [10:33:35]FM_GetShiftState done [10:33:35]req_shift_opened done [10:33:35]requested_item shift.open_date is exist - process it [10:33:35]req_shift_open_date [10:33:35]req_shift_open_date done [10:33:35]produce_requested_data done [10:33:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188175,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:33:35]process_action_free close_receipt [10:33:35]json_value_free [10:33:35]json_value_free done [10:33:35]process_json_proto returns [10:33:35]Send response to host [10:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188175,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:33:35]free response buf [10:33:35]execute_script done [10:33:35]execute_script returns [10:33:35]free content buf [10:33:35]Sock 8.Close socket [10:33:35]Sock 8.Thread stoped [10:33:38]OFD Sender: No OFD packet to send [10:33:43]OFD Sender: No OFD packet to send [10:33:48]OFD Sender: No OFD packet to send [10:33:53]OFD Sender: No OFD packet to send [10:33:58]OFD Sender: No OFD packet to send [10:34:03]OFD Sender: No OFD packet to send [10:34:08]OFD Sender: No OFD packet to send [10:34:13]OFD Sender: No OFD packet to send [10:34:18]OFD Sender: No OFD packet to send [10:34:23]OFD Sender: No OFD packet to send [10:34:28]OFD Sender: No OFD packet to send [10:34:33]OFD Sender: No OFD packet to send [10:34:38]OFD Sender: No OFD packet to send [10:34:44]OFD Sender: No OFD packet to send [10:34:49]OFD Sender: No OFD packet to send [10:34:54]OFD Sender: No OFD packet to send [10:34:59]OFD Sender: No OFD packet to send [10:35:04]OFD Sender: No OFD packet to send [10:35:09]OFD Sender: No OFD packet to send [10:35:14]OFD Sender: No OFD packet to send [10:35:19]OFD Sender: No OFD packet to send [10:35:24]OFD Sender: No OFD packet to send [10:35:29]OFD Sender: No OFD packet to send [10:35:32]accept exits with 10 [10:35:32]New connection [10:35:32]New thread 3067198820 created [10:35:32]Thread 3067055460 joined [10:35:32]Waiting for new connection... [10:35:32] Sock 10.Parse request [10:35:32]Sock 10.Check first char [10:35:32]Sock 10.First char is OK [10:35:32]request: POST /json_proto HTTP/1.0 [10:35:32]Method: POST [10:35:32]URL: /json_proto [10:35:32]Method is POST - this is cgi request [10:35:32]url: /json_proto [10:35:32]query_string will be loaded in cgi processing [10:35:32]execute_cgi json_proto POST (null) [10:35:32]execute_cgi path=json_proto method=POST [10:35:32]POST find Content-Length [10:35:32]Host: 172.17.42.131:8080 [10:35:32]Content-Length: 688 [10:35:32]Content-Type: application/json [10:35:32] [10:35:32]POST finish read [10:35:32]Found Content-Length = 688 [10:35:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 31.090, "sum" : 2400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:32]execute_script... [10:35: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)210227", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 31.090, "sum" : 2400.15, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:35:32]POST & json_proto [10:35:32]process_json_proto [10:35:32]json parsed OK: [10:35:32]protocol is kg_v1.0 [10:35:32]action value=close_receipt [10:35:32]process_action close_receipt [10:35:32]cmd_close_receipt [10:35:32]MH_GetDate [10:35:32]Write to MH i2c: F0 00 00 62 40 91 [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: F0 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: F0 09 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: F0 09 00 62 40 00 F7 7F 17 67 A0 18 CA 66 76 [10:35:32]GetLastDocTimeStamp 1729593213 [10:35:32]current date 1729593335 [10:35:32]FM_GetShiftState [10:35:32]SAM_PROTO_GetShiftState [10:35:32]wFMCommunicate request_size=4 [10:35:32]MH_SAM_APDU [10:35:32]CAPDU: 80 13 01 00 [10:35:32]Write to MH i2c: E2 08 00 63 40 80 13 01 00 00 00 00 00 20 [10:35:32]Write i2c OK [10:35:32]MH_I2C_Read... [10:35:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:32]Read from MH i2c: E2 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 0E 00 [10:35:32]MH_I2C_Read... [10:35:32]Read from MH i2c: E2 0E 00 63 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [10:35:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:35:32]wFMCommunicate OK [10:35:32]SAM_PROTO_GetShiftState done [10:35:32]FM_GetShiftState done [10:35:32]opened in 1729556094 [10:35:32]opened+sec_in_day 1729642494 [10:35:32]quantity*price = 240014 [10:35:32]sum+1 = 240016 [10:35:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.88 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 205 22.10.2024 10:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188176 ФПД: 259494449694343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103535&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188176&fm=259494449694343&tin=02508201610067®Number=0000000000100030&sum=240000 [10:35:33]StoreToDocumentArchive [10:35:33]shift 461 fd 188176 [10:35:33]save to /storage/0461/doc_00188176 [10:35:33]save last doc name /storage/0461/doc_00188176 to /storage/kkm_last_doc_name [10:35:33]save OK [10:35:33]Clear old archive folders... [10:35:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:35:33]tlvbuf is 01BB8240 [10:35:33]SAM_PROTO_ClearQueue [10:35:33]wFMCommunicate request_size=4 [10:35:33]MH_SAM_APDU [10:35:33]CAPDU: 80 09 00 00 [10:35:33]Write to MH i2c: E2 08 00 70 40 80 09 00 00 00 00 00 00 22 [10:35:33]Write i2c OK [10:35:33]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 70 40 00 90 00 24 [10:35:34]RAPDU: 90 00 [10:35:34]wFMCommunicate OK [10:35:34]SAM_PROTO_ClearQueue done [10:35:34]KKMCreateOFDPacket [10:35:34]OFDProtocolAddRootSTLVToBuf [10:35:34]FM_MakeSignedData [10:35:34]FM_MakeSignedData [10:35:34]SAM_PROTO_SignData [10:35:34]wFMCommunicate request_size=4 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 0D 01 02 [10:35:34]Write to MH i2c: E2 08 00 71 40 80 0D 01 02 00 00 00 00 2A [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 71 40 00 90 00 25 [10:35:34]RAPDU: 90 00 [10:35:34]wFMCommunicate OK [10:35:34]wFMCommunicate request_size=255 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F 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 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F7 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DF 02 [10:35:34]Write to MH i2c: E2 02 01 72 40 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F 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 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F7 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DF 02 00 00 30 [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]OFD Sender: No OFD packet to send [10:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 72 40 00 90 00 26 [10:35:34]RAPDU: 90 00 [10:35:34]wFMCommunicate OK [10:35:34]wFMCommunicate request_size=16 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EC 02 42 7E C6 87 [10:35:34]Write to MH i2c: E2 13 00 73 40 80 0D 02 02 0B 00 00 35 04 06 00 EC 02 42 7E C6 87 00 00 7D [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 03 00 73 40 00 90 00 27 [10:35:34]RAPDU: 90 00 [10:35:34]wFMCommunicate OK [10:35:34]wFMCommunicate request_size=4 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 0D 03 02 [10:35:34]Write to MH i2c: E2 08 00 74 40 80 0D 03 02 00 00 00 00 2F [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 0B 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 0B 00 74 40 00 D8 B1 F8 4C 32 9B 1C EB 90 00 D1 [10:35:34]RAPDU: D8 B1 F8 4C 32 9B 1C EB 90 00 [10:35:34]wFMCommunicate OK [10:35:34]SAM_PROTO_SignData done [10:35:34]FM_MakeSignedData done [10:35:34]CreateOFDProtocolMessage [10:35:34]wFMCommunicate request_size=4 [10:35:34]MH_SAM_APDU [10:35:34]CAPDU: 80 11 00 00 [10:35:34]Write to MH i2c: E2 08 00 75 40 80 11 00 00 00 00 00 00 2F [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:34]Read from MH i2c: E2 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 17 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: E2 17 00 75 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [10:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:35:34]wFMCommunicate OK [10:35:34]CreateOFDProtocolMessage done [10:35:34]OFDSenderStorePacket 188176 [10:35:34]StoreOFDPacket docnum=188176 [10:35:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 25 AE 0D 01 A0 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F 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 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F7 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DF 02 00 35 04 06 00 EC 02 42 7E C6 87 D8 B1 F8 4C 32 9B 1C EB [10:35:34]CheckFolder [10:35:34]dirname=/storage/ofd_packets [10:35:34]CheckFolder done [10:35:34]ProducePacketName [10:35:34]name=ofd_packets/00188176 [10:35:34]NVStorageSaveData ofd_packets/00188176 [10:35:34]File name is /storage/ofd_packets/00188176 [10:35:34]Write 307 bytes [10:35:34]NVStorageSaveData done [10:35:34]OFDSenderStorePacket done [10:35:34]KKMCreateOFDPacket done [10:35:34]NVStorageSaveData kkm_last_timestamp [10:35:34]File name is /storage/kkm_last_timestamp [10:35:34]Write 4 bytes [10:35:34]NVStorageSaveData done [10:35:34]ExternCall_PrintAddStr [10:35:34]wPrintStart [10:35:34]Write to MH i2c: 01 00 00 76 40 B6 [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 76 40 00 00 00 00 00 FF 0F CB [10:35:34]RasterBufferAndPrint [10:35:34]line Счет N : (1)210227 [10:35:34]line ИНН: 02508201610067 [10:35:34]line Контрольно-Кассовый Чек [10:35:34]line ПРОДАЖА [10:35:34]line ТРК (МРК, ГНК) : 31 [10:35:34]line Товар: 2710194210 [10:35:34]line D-ENERGY ДТ-К-5 [10:35:34]line 31.090 * 77.20 [10:35:34]line = 2400.15 [10:35:34]line НДС 12% НСП 1% [10:35:34]line > о реализуемом товаре [10:35:34]line ОКРУГЛЕНИЕ: -0.15 [10:35:34]line ИТОГО: 2400.00 [10:35:34]line Внесено: 2400.00 [10:35:34]line СДАЧА: 0.00 [10:35:34]line НСП 1% : 21.24 [10:35:34]line НДС 12% : 254.88 [10:35:34]line Наличными: 2400.00 [10:35:34]line Безнал.: 0.00 [10:35:34]line Место: АЗС № 86 "Партнер Нефть" [10:35:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:35:34]line СНО: Общий режим [10:35:34]line Чек 205 22.10.2024 10:35 [10:35:34]line Смена: 461 ФФД: 1.0 [10:35:34]line ЗНМ: 0300000155 [10:35:34]line РНМ: 0000000000100030 [10:35:34]line Версия ККМ: 001 [10:35:34]line ФМ: 0000000000965340 [10:35:34]line ФД: 188176 [10:35:34]line ФПД: 259494449694343 [10:35:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103535&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188176&fm=259494449694343&tin=02508201610067®Number=0000000000100030&sum=240000 [10:35:34]written 0, free lines is 4095 [10:35:34]OFD Sender: Processing packet 188176 [packets to send 1062, broken 1061] [10:35:34]ProducePacketName [10:35:34]name=ofd_packets/00188176 [10:35:34]OFD Sender: To server: pG, [10:35:34]CommunicateWithHost lk.salyk.kg:30040 [10:35:34]ConnectInit lk.salyk.kg [10:35:34]Connected sock=9 [10:35:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 25 AE 0D 01 A0 47 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 72 79 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 8F 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 90 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 00 00 00 F4 03 04 00 F7 7F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DF 02 00 35 04 06 00 EC 02 42 7E C6 87 D8 B1 F8 4C 32 9B 1C EB [10:35:34]Write to MH i2c: 01 00 00 A1 40 E1 [10:35:34]Write i2c OK [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 [10:35:34]MH_I2C_Read... [10:35:34]Read from MH i2c: 01 07 00 [10:35:34]MH_I2C_Read... [10:35:35]Read from MH i2c: 01 07 00 A1 40 00 00 00 00 00 62 0C 56 [10:35:35]RasterBufferAndPrint [10:35:35]line [10:35:35]line [10:35:35]line [10:35:35]line [10:35:35]line [10:35:35]written 0, free lines is 3173 [10:35:35]MH_Cut [10:35:35]Write to MH i2c: D1 01 00 A8 40 01 BA [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: D1 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: D1 01 00 [10:35:35]MH_I2C_Read... [10:35:35]Read from MH i2c: D1 01 00 A8 40 00 B9 [10:35:35]Write to MH i2c: 01 00 00 A9 40 E9 [10:35:35]Write i2c OK [10:35:35]MH_I2C_Read... [10:35:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 CE 47 00 A0 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 DF 02 00 F4 03 04 00 E5 29 17 67 B6 04 01 00 00 A4 CD 87 8E 41 32 1A 5D [10:35:35]CommunicateWithHost err = 0 [10:35:35]CheckOFDResponse [10:35:35]1017 (14) - 77093643461234 [10:35:35]1041 (16) - 0000000000965340 [10:35:35]1040 (4) - 188176 [10:35:35]1012 (4) - 22.10.2024 04:28 [10:35:35]1206 (1) - 0 [10:35:35]OFD Sender: Remove packet 188176 [10:35:35]ProducePacketName [10:35:35]name=ofd_packets/00188176 [10:35:35]NVStorageDeleteData [10:35:35]OFD Sender: No OFD packet to send [10:35:36]*** Cut start [10:35:36]*** Partial cut [10:35:36]*** CUTSNS_PIN = 1 [10:35:36]*** CUTSNS_PIN = 0 [10:35:36]*** Brake cut motor [10:35:36]Read from MH i2c: 01 [10:35:36]MH_I2C_Read... [10:35:36]*** Stop cut motor [10:35:36]*** Cut end [10:35:36]Read from MH i2c: 01 07 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: 01 07 00 A9 40 00 00 00 00 00 FF 0F FE [10:35:36]process_action close_receipt done [10:35:36]requested_data is exist [10:35:36]produce_requested_data [10:35:36]requested_item fm.sn is exist - process it [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 11 00 00 [10:35:36]Write to MH i2c: E2 08 00 AA 40 80 11 00 00 00 00 00 00 64 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:35:36]Read from MH i2c: E2 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 17 00 [10:35:36]MH_I2C_Read... [10:35:36]Read from MH i2c: E2 17 00 AA 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [10:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:35:36]wFMCommunicate OK [10:35:36]requested_item fd.num is exist - process it [10:35:36]SAM_PROTO_GetFieldsCounters [10:35:36]wFMCommunicate request_size=4 [10:35:36]MH_SAM_APDU [10:35:36]CAPDU: 80 13 00 00 [10:35:36]Write to MH i2c: E2 08 00 AB 40 80 13 00 00 00 00 00 00 67 [10:35:36]Write i2c OK [10:35:36]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 62 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 62 00 AB 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 94 [10:35:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CE 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_GetFieldsCounters done [10:35:37]requested_item shift.num is exist - process it [10:35:37]requested_item shift.opened is exist - process it [10:35:37]req_shift_opened [10:35:37]FM_GetShiftState [10:35:37]SAM_PROTO_GetShiftState [10:35:37]wFMCommunicate request_size=4 [10:35:37]MH_SAM_APDU [10:35:37]CAPDU: 80 13 01 00 [10:35:37]Write to MH i2c: E2 08 00 AC 40 80 13 01 00 00 00 00 00 69 [10:35:37]Write i2c OK [10:35:37]MH_I2C_Read... [10:35:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:35:37]Read from MH i2c: E2 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0E 00 [10:35:37]MH_I2C_Read... [10:35:37]Read from MH i2c: E2 0E 00 AC 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5E [10:35:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:35:37]wFMCommunicate OK [10:35:37]SAM_PROTO_GetShiftState done [10:35:37]FM_GetShiftState done [10:35:37]req_shift_opened done [10:35:37]requested_item shift.open_date is exist - process it [10:35:37]req_shift_open_date [10:35:37]req_shift_open_date done [10:35:37]produce_requested_data done [10:35:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188176,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:35:37]process_action_free close_receipt [10:35:37]json_value_free [10:35:37]json_value_free done [10:35:37]process_json_proto returns [10:35:37]Send response to host [10:35:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188176,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:35:37]free response buf [10:35:37]execute_script done [10:35:37]execute_script returns [10:35:37]free content buf [10:35:37]Sock 10.Close socket [10:35:37]Sock 10.Thread stoped [10:35:40]OFD Sender: No OFD packet to send [10:35:45]OFD Sender: No OFD packet to send [10:35:50]OFD Sender: No OFD packet to send [10:35:55]OFD Sender: No OFD packet to send [10:36:00]OFD Sender: No OFD packet to send [10:36:05]OFD Sender: No OFD packet to send [10:36:10]OFD Sender: No OFD packet to send [10:36:15]OFD Sender: No OFD packet to send [10:36:20]OFD Sender: No OFD packet to send [10:36:25]OFD Sender: No OFD packet to send [10:36: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]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:23]accept exits with 8 [10:39:23]New connection [10:39:23]New thread 3067055460 created [10:39:23]Thread 3067198820 joined [10:39:23]Waiting for new connection... [10:39:23] Sock 8.Parse request [10:39:23]Sock 8.Check first char [10:39:23]Sock 8.First char is OK [10:39:23]request: POST /json_proto HTTP/1.0 [10:39:23]Method: POST [10:39:23]URL: /json_proto [10:39:23]Method is POST - this is cgi request [10:39:23]url: /json_proto [10:39:23]query_string will be loaded in cgi processing [10:39:23]execute_cgi json_proto POST (null) [10:39:23]execute_cgi path=json_proto method=POST [10:39:23]POST find Content-Length [10:39:23]Host: 172.17.42.131:8080 [10:39:23]Content-Length: 688 [10:39:23]Content-Type: application/json [10:39:23] [10:39:23]POST finish read [10:39:23]Found Content-Length = 688 [10:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:23]execute_script... [10: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)210228", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:39:23]POST & json_proto [10:39:23]process_json_proto [10:39:23]json parsed OK: [10:39:23]protocol is kg_v1.0 [10:39:23]action value=close_receipt [10:39:23]process_action close_receipt [10:39:23]cmd_close_receipt [10:39:23]MH_GetDate [10:39:23]Write to MH i2c: F0 00 00 AD 40 DC [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: F0 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: F0 09 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: F0 09 00 AD 40 00 DE 80 17 67 A0 18 CA 66 A9 [10:39:23]GetLastDocTimeStamp 1729593335 [10:39:23]current date 1729593566 [10:39:23]FM_GetShiftState [10:39:23]SAM_PROTO_GetShiftState [10:39:23]wFMCommunicate request_size=4 [10:39:23]MH_SAM_APDU [10:39:23]CAPDU: 80 13 01 00 [10:39:23]Write to MH i2c: E2 08 00 AE 40 80 13 01 00 00 00 00 00 6B [10:39:23]Write i2c OK [10:39:23]MH_I2C_Read... [10:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:23]Read from MH i2c: E2 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 0E 00 [10:39:23]MH_I2C_Read... [10:39:23]Read from MH i2c: E2 0E 00 AE 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 60 [10:39:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:39:23]wFMCommunicate OK [10:39:23]SAM_PROTO_GetShiftState done [10:39:23]FM_GetShiftState done [10:39:23]opened in 1729556094 [10:39:23]opened+sec_in_day 1729642494 [10:39:23]quantity*price = 100051 [10:39:23]sum+1 = 100052 [10:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 206 22.10.2024 10:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188177 ФПД: 74153272333259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103926&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188177&fm=74153272333259&tin=02508201610067®Number=0000000000100030&sum=100000 [10:39:24]StoreToDocumentArchive [10:39:24]shift 461 fd 188177 [10:39:24]save to /storage/0461/doc_00188177 [10:39:24]save last doc name /storage/0461/doc_00188177 to /storage/kkm_last_doc_name [10:39:24]save OK [10:39:24]Clear old archive folders... [10:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:39:24]tlvbuf is 01CE4300 [10:39:24]SAM_PROTO_ClearQueue [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 09 00 00 [10:39:24]Write to MH i2c: E2 08 00 BB 40 80 09 00 00 00 00 00 00 6D [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 BB 40 00 90 00 6F [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]SAM_PROTO_ClearQueue done [10:39:24]KKMCreateOFDPacket [10:39:24]OFDProtocolAddRootSTLVToBuf [10:39:24]FM_MakeSignedData [10:39:24]FM_MakeSignedData [10:39:24]SAM_PROTO_SignData [10:39:24]wFMCommunicate request_size=4 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 01 02 [10:39:24]Write to MH i2c: E2 08 00 BC 40 80 0D 01 02 00 00 00 00 75 [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:39:24]Read from MH i2c: E2 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 [10:39:24]MH_I2C_Read... [10:39:24]Read from MH i2c: E2 03 00 BC 40 00 90 00 70 [10:39:24]RAPDU: 90 00 [10:39:24]wFMCommunicate OK [10:39:24]wFMCommunicate request_size=255 [10:39:24]MH_SAM_APDU [10:39:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CE 00 00 00 F4 03 04 00 DE 80 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DF 02 [10:39:24]Write to MH i2c: E2 02 01 BD 40 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CE 00 00 00 F4 03 04 00 DE 80 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DF 02 00 00 3C [10:39:24]Write i2c OK [10:39:24]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 BD 40 00 90 00 71 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]wFMCommunicate request_size=16 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 43 71 27 74 D3 CB [10:39:25]Write to MH i2c: E2 13 00 BE 40 80 0D 02 02 0B 00 00 35 04 06 00 43 71 27 74 D3 CB 00 00 BA [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 03 00 BE 40 00 90 00 72 [10:39:25]RAPDU: 90 00 [10:39:25]wFMCommunicate OK [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 0D 03 02 [10:39:25]Write to MH i2c: E2 08 00 BF 40 80 0D 03 02 00 00 00 00 7A [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 0B 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 0B 00 BF 40 00 D8 6D 01 77 5D E6 2D E6 90 00 8E [10:39:25]RAPDU: D8 6D 01 77 5D E6 2D E6 90 00 [10:39:25]wFMCommunicate OK [10:39:25]SAM_PROTO_SignData done [10:39:25]FM_MakeSignedData done [10:39:25]CreateOFDProtocolMessage [10:39:25]wFMCommunicate request_size=4 [10:39:25]MH_SAM_APDU [10:39:25]CAPDU: 80 11 00 00 [10:39:25]Write to MH i2c: E2 08 00 C0 40 80 11 00 00 00 00 00 00 7A [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:25]Read from MH i2c: E2 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 17 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: E2 17 00 C0 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [10:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:39:25]wFMCommunicate OK [10:39:25]CreateOFDProtocolMessage done [10:39:25]OFDSenderStorePacket 188177 [10:39:25]StoreOFDPacket docnum=188177 [10:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D 3E 0D 01 9D 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CE 00 00 00 F4 03 04 00 DE 80 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DF 02 00 35 04 06 00 43 71 27 74 D3 CB D8 6D 01 77 5D E6 2D E6 [10:39:25]CheckFolder [10:39:25]dirname=/storage/ofd_packets [10:39:25]CheckFolder done [10:39:25]ProducePacketName [10:39:25]name=ofd_packets/00188177 [10:39:25]NVStorageSaveData ofd_packets/00188177 [10:39:25]File name is /storage/ofd_packets/00188177 [10:39:25]Write 307 bytes [10:39:25]NVStorageSaveData done [10:39:25]OFDSenderStorePacket done [10:39:25]KKMCreateOFDPacket done [10:39:25]NVStorageSaveData kkm_last_timestamp [10:39:25]File name is /storage/kkm_last_timestamp [10:39:25]Write 4 bytes [10:39:25]NVStorageSaveData done [10:39:25]ExternCall_PrintAddStr [10:39:25]wPrintStart [10:39:25]Write to MH i2c: 01 00 00 C1 40 01 [10:39:25]Write i2c OK [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 [10:39:25]MH_I2C_Read... [10:39:25]Read from MH i2c: 01 07 00 C1 40 00 00 00 00 00 FF 0F 16 [10:39:25]RasterBufferAndPrint [10:39:25]line Счет N : (1)210228 [10:39:25]line ИНН: 02508201610067 [10:39:25]line Контрольно-Кассовый Чек [10:39:25]line ПРОДАЖА [10:39:25]line ТРК (МРК, ГНК) : 41 [10:39:25]line Товар: 2710194210 [10:39:25]line D-ENERGY ДТ-К-5 [10:39:25]line 12.960 * 77.20 [10:39:25]line = 1000.51 [10:39:25]line НДС 12% НСП 1% [10:39:25]line > о реализуемом товаре [10:39:25]line ОКРУГЛЕНИЕ: -0.51 [10:39:25]line ИТОГО: 1000.00 [10:39:25]line Внесено: 1000.00 [10:39:25]line СДАЧА: 0.00 [10:39:25]line НСП 1% : 8.85 [10:39:25]line НДС 12% : 106.25 [10:39:25]line Наличными: 1000.00 [10:39:25]line Безнал.: 0.00 [10:39:25]line Место: АЗС № 86 "Партнер Нефть" [10:39:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:39:25]line СНО: Общий режим [10:39:25]line Чек 206 22.10.2024 10:39 [10:39:25]line Смена: 461 ФФД: 1.0 [10:39:25]line ЗНМ: 0300000155 [10:39:25]line РНМ: 0000000000100030 [10:39:25]line Версия ККМ: 001 [10:39:25]line ФМ: 0000000000965340 [10:39:25]line ФД: 188177 [10:39:25]line ФПД: 74153272333259 [10:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T103926&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188177&fm=74153272333259&tin=02508201610067®Number=0000000000100030&sum=100000 [10:39:25]OFD Sender: Processing packet 188177 [packets to send 1062, broken 1061] [10:39:25]ProducePacketName [10:39:25]name=ofd_packets/00188177 [10:39:25]OFD Sender: To server: pG, [10:39:25]CommunicateWithHost lk.salyk.kg:30040 [10:39:25]ConnectInit lk.salyk.kg [10:39:25]written 0, free lines is 4095 [10:39:25]Connected sock=10 [10:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3D 3E 0D 01 9D 84 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CE 00 00 00 F4 03 04 00 DE 80 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DF 02 00 35 04 06 00 43 71 27 74 D3 CB D8 6D 01 77 5D E6 2D E6 [10:39:26]Write to MH i2c: 01 00 00 EC 40 2C [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: 01 07 00 EC 40 00 00 00 00 00 6C 0C AB [10:39:26]RasterBufferAndPrint [10:39:26]line [10:39:26]line [10:39:26]line [10:39:26]line [10:39:26]line [10:39:26]written 0, free lines is 3183 [10:39:26]MH_Cut [10:39:26]Write to MH i2c: D1 01 00 F3 40 01 05 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: D1 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: D1 01 00 [10:39:26]MH_I2C_Read... [10:39:26]Read from MH i2c: D1 01 00 F3 40 00 04 [10:39:26]Write to MH i2c: 01 00 00 F4 40 34 [10:39:26]Write i2c OK [10:39:26]MH_I2C_Read... [10:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 E4 47 00 0E FE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 DF 02 00 F4 03 04 00 CC 2A 17 67 B6 04 01 00 00 24 6D 9B F5 9D 02 DB 5B [10:39:26]CommunicateWithHost err = 0 [10:39:26]CheckOFDResponse [10:39:26]1017 (14) - 77093643461234 [10:39:26]1041 (16) - 0000000000965340 [10:39:26]1040 (4) - 188177 [10:39:26]1012 (4) - 22.10.2024 04:32 [10:39:26]1206 (1) - 0 [10:39:26]OFD Sender: Remove packet 188177 [10:39:26]ProducePacketName [10:39:26]name=ofd_packets/00188177 [10:39:26]NVStorageDeleteData [10:39:26]OFD Sender: No OFD packet to send [10:39:27]*** Cut start [10:39:27]*** Partial cut [10:39:27]*** CUTSNS_PIN = 1 [10:39:27]*** CUTSNS_PIN = 0 [10:39:27]*** Brake cut motor [10:39:27]Read from MH i2c: 01 [10:39:27]MH_I2C_Read... [10:39:27]*** Stop cut motor [10:39:27]*** Cut end [10:39:27]Read from MH i2c: 01 07 00 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: 01 07 00 F4 40 00 00 00 00 00 FF 0F 49 [10:39:27]process_action close_receipt done [10:39:27]requested_data is exist [10:39:27]produce_requested_data [10:39:27]requested_item fm.sn is exist - process it [10:39:27]wFMCommunicate request_size=4 [10:39:27]MH_SAM_APDU [10:39:27]CAPDU: 80 11 00 00 [10:39:27]Write to MH i2c: E2 08 00 F5 40 80 11 00 00 00 00 00 00 AF [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:39:27]Read from MH i2c: E2 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: E2 17 00 [10:39:27]MH_I2C_Read... [10:39:27]Read from MH i2c: E2 17 00 F5 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [10:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:39:27]wFMCommunicate OK [10:39:27]requested_item fd.num is exist - process it [10:39:27]SAM_PROTO_GetFieldsCounters [10:39:27]wFMCommunicate request_size=4 [10:39:27]MH_SAM_APDU [10:39:27]CAPDU: 80 13 00 00 [10:39:27]Write to MH i2c: E2 08 00 F6 40 80 13 00 00 00 00 00 00 B2 [10:39:27]Write i2c OK [10:39:27]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 62 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 62 00 F6 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 E3 [10:39:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CE 00 00 00 5E 04 04 00 CE 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetFieldsCounters done [10:39:28]requested_item shift.num is exist - process it [10:39:28]requested_item shift.opened is exist - process it [10:39:28]req_shift_opened [10:39:28]FM_GetShiftState [10:39:28]SAM_PROTO_GetShiftState [10:39:28]wFMCommunicate request_size=4 [10:39:28]MH_SAM_APDU [10:39:28]CAPDU: 80 13 01 00 [10:39:28]Write to MH i2c: E2 08 00 F7 40 80 13 01 00 00 00 00 00 B4 [10:39:28]Write i2c OK [10:39:28]MH_I2C_Read... [10:39:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:39:28]Read from MH i2c: E2 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 [10:39:28]MH_I2C_Read... [10:39:28]Read from MH i2c: E2 0E 00 F7 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A9 [10:39:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:39:28]wFMCommunicate OK [10:39:28]SAM_PROTO_GetShiftState done [10:39:28]FM_GetShiftState done [10:39:28]req_shift_opened done [10:39:28]requested_item shift.open_date is exist - process it [10:39:28]req_shift_open_date [10:39:28]req_shift_open_date done [10:39:28]produce_requested_data done [10:39:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188177,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:39:28]process_action_free close_receipt [10:39:28]json_value_free [10:39:28]json_value_free done [10:39:28]process_json_proto returns [10:39:28]Send response to host [10:39:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188177,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:39:28]free response buf [10:39:28]execute_script done [10:39:28]execute_script returns [10:39:28]free content buf [10:39:28]Sock 8.Close socket [10:39:28]Sock 8.Thread stoped [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:17]OFD Sender: No OFD packet to send [10:40:22]OFD Sender: No OFD packet to send [10:40:27]OFD Sender: No OFD packet to send [10:40:32]OFD Sender: No OFD packet to send [10:40:37]OFD Sender: No OFD packet to send [10:40:42]OFD Sender: No OFD packet to send [10:40:47]OFD Sender: No OFD packet to send [10:40:52]OFD Sender: No OFD packet to send [10:40:57]OFD Sender: No OFD packet to send [10:41:02]OFD Sender: No OFD packet to send [10:41:07]OFD Sender: No OFD packet to send [10:41:12]OFD Sender: No OFD packet to send [10:41:17]OFD Sender: No OFD packet to send [10:41:22]OFD Sender: No OFD packet to send [10:41:27]OFD Sender: No OFD packet to send [10:41:32]OFD Sender: No OFD packet to send [10:41:37]OFD Sender: No OFD packet to send [10:41:42]OFD Sender: No OFD packet to send [10:41:47]OFD Sender: No OFD packet to send [10:41:52]OFD Sender: No OFD packet to send [10:41:57]OFD Sender: No OFD packet to send [10:42:02]OFD Sender: No OFD packet to send [10:42:07]OFD Sender: No OFD packet to send [10:42:12]OFD Sender: No OFD packet to send [10:42:17]OFD Sender: No OFD packet to send [10:42:22]OFD Sender: No OFD packet to send [10:42:27]OFD Sender: No OFD packet to send [10:42:32]OFD Sender: No OFD packet to send [10:42:37]OFD Sender: No OFD packet to send [10:42:42]OFD Sender: No OFD packet to send [10:42:47]OFD Sender: No OFD packet to send [10:42:52]OFD Sender: No OFD packet to send [10:42:57]OFD Sender: No OFD packet to send [10:43:02]OFD Sender: No OFD packet to send [10:43:07]OFD Sender: No OFD packet to send [10:43:12]OFD Sender: No OFD packet to send [10:43:17]OFD Sender: No OFD packet to send [10:43:22]OFD Sender: No OFD packet to send [10:43:27]OFD Sender: No OFD packet to send [10:43:32]OFD Sender: No OFD packet to send [10:43:37]OFD Sender: No OFD packet to send [10:43:42]OFD Sender: No OFD packet to send [10:43:47]OFD Sender: No OFD packet to send [10:43:52]OFD Sender: No OFD packet to send [10:43:57]OFD Sender: No OFD packet to send [10:44:03]OFD Sender: No OFD packet to send [10:44:03]accept exits with 9 [10:44:03]New connection [10:44:03]New thread 3067198820 created [10:44:03]Thread 3067055460 joined [10:44:03]Waiting for new connection... [10:44:03] Sock 9.Parse request [10:44:03]Sock 9.Check first char [10:44:03]Sock 9.First char is OK [10:44:03]request: POST /json_proto HTTP/1.0 [10:44:03]Method: POST [10:44:03]URL: /json_proto [10:44:03]Method is POST - this is cgi request [10:44:03]url: /json_proto [10:44:03]query_string will be loaded in cgi processing [10:44:03]execute_cgi json_proto POST (null) [10:44:03]execute_cgi path=json_proto method=POST [10:44:03]POST find Content-Length [10:44:03]Host: 172.17.42.131:8080 [10:44:03]Content-Length: 800 [10:44:03]Content-Type: application/json [10:44:03] [10:44:03]POST finish read [10:44:03]Found Content-Length = 800 [10:44:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4199176", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:03]execute_script... [10:44: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)210229", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4199176", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:44:03]POST & json_proto [10:44:03]process_json_proto [10:44:03]json parsed OK: [10:44:03]protocol is kg_v1.0 [10:44:03]action value=close_receipt [10:44:03]process_action close_receipt [10:44:03]cmd_close_receipt [10:44:03]MH_GetDate [10:44:03]Write to MH i2c: F0 00 00 F8 40 27 [10:44:03]Write i2c OK [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: F0 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: F0 09 00 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: F0 09 00 F8 40 00 F6 81 17 67 A0 18 CA 66 0D [10:44:03]GetLastDocTimeStamp 1729593566 [10:44:03]current date 1729593846 [10:44:03]FM_GetShiftState [10:44:03]SAM_PROTO_GetShiftState [10:44:03]wFMCommunicate request_size=4 [10:44:03]MH_SAM_APDU [10:44:03]CAPDU: 80 13 01 00 [10:44:03]Write to MH i2c: E2 08 00 F9 40 80 13 01 00 00 00 00 00 B6 [10:44:03]Write i2c OK [10:44:03]MH_I2C_Read... [10:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:03]Read from MH i2c: E2 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: E2 0E 00 [10:44:03]MH_I2C_Read... [10:44:03]Read from MH i2c: E2 0E 00 F9 40 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AB [10:44:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:44:03]wFMCommunicate OK [10:44:03]SAM_PROTO_GetShiftState done [10:44:03]FM_GetShiftState done [10:44:03]opened in 1729556094 [10:44:03]opened+sec_in_day 1729642494 [10:44:03]quantity*price = 0 [10:44:03]sum+1 = 1 [10:44:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 207 22.10.2024 10:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4199176 ФМ: 0000000000965340 ФД: 188178 ФПД: 74004124870892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104407&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188178&fm=74004124870892&tin=02508201610067®Number=0000000000100030&sum=0 [10:44:05]StoreToDocumentArchive [10:44:05]shift 461 fd 188178 [10:44:05]save to /storage/0461/doc_00188178 [10:44:05]save last doc name /storage/0461/doc_00188178 to /storage/kkm_last_doc_name [10:44:05]save OK [10:44:05]Clear old archive folders... [10:44:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:44:05]tlvbuf is 01BCFFF0 [10:44:05]SAM_PROTO_ClearQueue [10:44:05]wFMCommunicate request_size=4 [10:44:05]MH_SAM_APDU [10:44:05]CAPDU: 80 09 00 00 [10:44:05]Write to MH i2c: E2 08 00 06 41 80 09 00 00 00 00 00 00 B9 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 06 41 00 90 00 BB [10:44:05]RAPDU: 90 00 [10:44:05]wFMCommunicate OK [10:44:05]SAM_PROTO_ClearQueue done [10:44:05]KKMCreateOFDPacket [10:44:05]OFDProtocolAddRootSTLVToBuf [10:44:05]FM_MakeSignedData [10:44:05]FM_MakeSignedData [10:44:05]SAM_PROTO_SignData [10:44:05]wFMCommunicate request_size=4 [10:44:05]MH_SAM_APDU [10:44:05]CAPDU: 80 0D 01 02 [10:44:05]Write to MH i2c: E2 08 00 07 41 80 0D 01 02 00 00 00 00 C1 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 07 41 00 90 00 BC [10:44:05]RAPDU: 90 00 [10:44:05]wFMCommunicate OK [10:44:05]wFMCommunicate request_size=255 [10:44:05]MH_SAM_APDU [10:44: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F7 81 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DF 02 00 35 04 06 00 43 [10:44:05]Write to MH i2c: E2 02 01 08 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F7 81 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DF 02 00 35 04 06 00 43 00 00 AF [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 08 41 00 90 00 BD [10:44:05]RAPDU: 90 00 [10:44:05]wFMCommunicate OK [10:44:05]wFMCommunicate request_size=10 [10:44:05]MH_SAM_APDU [10:44:05]CAPDU: 80 0D 02 02 05 4E 6D 93 28 EC [10:44:05]Write to MH i2c: E2 0D 00 09 41 80 0D 02 02 05 00 4E 6D 93 28 EC 00 00 30 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 03 00 09 41 00 90 00 BE [10:44:05]RAPDU: 90 00 [10:44:05]wFMCommunicate OK [10:44:05]wFMCommunicate request_size=4 [10:44:05]MH_SAM_APDU [10:44:05]CAPDU: 80 0D 03 02 [10:44:05]Write to MH i2c: E2 08 00 0A 41 80 0D 03 02 00 00 00 00 C6 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 0B 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 0B 00 0A 41 00 9B 92 AF CF 5F AD 8D BB 90 00 C6 [10:44:05]RAPDU: 9B 92 AF CF 5F AD 8D BB 90 00 [10:44:05]wFMCommunicate OK [10:44:05]SAM_PROTO_SignData done [10:44:05]FM_MakeSignedData done [10:44:05]CreateOFDProtocolMessage [10:44:05]wFMCommunicate request_size=4 [10:44:05]MH_SAM_APDU [10:44:05]CAPDU: 80 11 00 00 [10:44:05]Write to MH i2c: E2 08 00 0B 41 80 11 00 00 00 00 00 00 C6 [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:05]Read from MH i2c: E2 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 17 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: E2 17 00 0B 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [10:44:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:44:05]wFMCommunicate OK [10:44:05]CreateOFDProtocolMessage done [10:44:05]OFDSenderStorePacket 188178 [10:44:05]StoreOFDPacket docnum=188178 [10:44:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 50 07 01 CF CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F7 81 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DF 02 00 35 04 06 00 43 4E 6D 93 28 EC 9B 92 AF CF 5F AD 8D BB [10:44:05]CheckFolder [10:44:05]dirname=/storage/ofd_packets [10:44:05]CheckFolder done [10:44:05]ProducePacketName [10:44:05]name=ofd_packets/00188178 [10:44:05]NVStorageSaveData ofd_packets/00188178 [10:44:05]File name is /storage/ofd_packets/00188178 [10:44:05]Write 301 bytes [10:44:05]NVStorageSaveData done [10:44:05]OFDSenderStorePacket done [10:44:05]KKMCreateOFDPacket done [10:44:05]NVStorageSaveData kkm_last_timestamp [10:44:05]File name is /storage/kkm_last_timestamp [10:44:05]Write 4 bytes [10:44:05]NVStorageSaveData done [10:44:05]ExternCall_PrintAddStr [10:44:05]wPrintStart [10:44:05]Write to MH i2c: 01 00 00 0C 41 4D [10:44:05]Write i2c OK [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: 01 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: 01 07 00 [10:44:05]MH_I2C_Read... [10:44:05]Read from MH i2c: 01 07 00 0C 41 00 00 00 00 00 FF 0F 62 [10:44:05]RasterBufferAndPrint [10:44:05]line Счет N : (1)210229 [10:44:05]line ИНН: 02508201610067 [10:44:05]line Контрольно-Кассовый Чек [10:44:05]line ПРОДАЖА [10:44:05]line ТРК (МРК, ГНК) : 22 [10:44:05]line Товар: 2710124130 [10:44:05]line Аи-92-К-3 [10:44:05]line 10.000 * 0.00 [10:44:05]line = 0.00 [10:44:05]line НДС 12% НСП 1% [10:44:05]line > о реализуемом товаре [10:44:05]line ИТОГО: 0.00 [10:44:05]line НСП 1% : 0.00 [10:44:05]line НДС 12% : 0.00 [10:44:05]line Наличными: 0.00 [10:44:05]line Безнал.: 0.00 [10:44:05]line Место: АЗС № 86 "Партнер Нефть" [10:44:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:44:05]line СНО: Общий режим [10:44:05]line Чек 207 22.10.2024 10:44 [10:44:05]line Смена: 461 ФФД: 1.0 [10:44:05]line ЗНМ: 0300000155 [10:44:05]line РНМ: 0000000000100030 [10:44:05]line Версия ККМ: 001 [10:44:05]line Талоны: Топливные Талоны [10:44:05]line 4199176 [10:44:05]line ФМ: 0000000000965340 [10:44:05]line ФД: 188178 [10:44:05]line ФПД: 74004124870892 [10:44:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104407&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188178&fm=74004124870892&tin=02508201610067®Number=0000000000100030&sum=0 [10:44:05]written 0, free lines is 4095 [10:44:05]OFD Sender: Processing packet 188178 [packets to send 1062, broken 1061] [10:44:05]ProducePacketName [10:44:05]name=ofd_packets/00188178 [10:44:05]OFD Sender: To server: pG, [10:44:05]CommunicateWithHost lk.salyk.kg:30040 [10:44:05]ConnectInit lk.salyk.kg [10:44:05]Connected sock=8 [10:44:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 50 07 01 CF CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 00 00 00 F4 03 04 00 F7 81 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DF 02 00 35 04 06 00 43 4E 6D 93 28 EC 9B 92 AF CF 5F AD 8D BB [10:44:06]Write to MH i2c: 01 00 00 36 41 77 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 07 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: 01 07 00 36 41 00 00 00 00 00 74 0C FE [10:44:06]RasterBufferAndPrint [10:44:06]line [10:44:06]line [10:44:06]line [10:44:06]line [10:44:06]line [10:44:06]written 0, free lines is 3194 [10:44:06]MH_Cut [10:44:06]Write to MH i2c: D1 01 00 3D 41 01 50 [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: D1 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: D1 01 00 [10:44:06]MH_I2C_Read... [10:44:06]Read from MH i2c: D1 01 00 3D 41 00 4F [10:44:06]Write to MH i2c: 01 00 00 3E 41 7F [10:44:06]Write i2c OK [10:44:06]MH_I2C_Read... [10:44:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AB 1D 47 00 3D C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 DF 02 00 F4 03 04 00 E4 2B 17 67 B6 04 01 00 00 39 FC EA 7F AE CA 02 A0 [10:44:06]CommunicateWithHost err = 0 [10:44:06]CheckOFDResponse [10:44:06]1017 (14) - 77093643461234 [10:44:06]1041 (16) - 0000000000965340 [10:44:06]1040 (4) - 188178 [10:44:06]1012 (4) - 22.10.2024 04:36 [10:44:06]1206 (1) - 0 [10:44:06]OFD Sender: Remove packet 188178 [10:44:06]ProducePacketName [10:44:06]name=ofd_packets/00188178 [10:44:06]NVStorageDeleteData [10:44:06]OFD Sender: No OFD packet to send [10:44:07]*** Cut start [10:44:07]*** Partial cut [10:44:07]*** CUTSNS_PIN = 1 [10:44:07]*** CUTSNS_PIN = 0 [10:44:07]*** Brake cut motor [10:44:07]Read from MH i2c: 01 [10:44:07]MH_I2C_Read... [10:44:07]*** Stop cut motor [10:44:07]*** Cut end [10:44:07]Read from MH i2c: 01 07 00 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: 01 07 00 3E 41 00 00 00 00 00 FF 0F 94 [10:44:07]process_action close_receipt done [10:44:07]requested_data is exist [10:44:07]produce_requested_data [10:44:07]requested_item fm.sn is exist - process it [10:44:07]wFMCommunicate request_size=4 [10:44:07]MH_SAM_APDU [10:44:07]CAPDU: 80 11 00 00 [10:44:07]Write to MH i2c: E2 08 00 3F 41 80 11 00 00 00 00 00 00 FA [10:44:07]Write i2c OK [10:44:07]MH_I2C_Read... [10:44:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:44:07]Read from MH i2c: E2 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: E2 17 00 [10:44:07]MH_I2C_Read... [10:44:07]Read from MH i2c: E2 17 00 3F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [10:44:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:44:07]wFMCommunicate OK [10:44:07]requested_item fd.num is exist - process it [10:44:07]SAM_PROTO_GetFieldsCounters [10:44:07]wFMCommunicate request_size=4 [10:44:07]MH_SAM_APDU [10:44:07]CAPDU: 80 13 00 00 [10:44:07]Write to MH i2c: E2 08 00 40 41 80 13 00 00 00 00 00 00 FD [10:44:07]Write i2c OK [10:44:07]MH_I2C_Read... [10:44:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:44:08]Read from MH i2c: E2 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: E2 62 00 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: E2 62 00 40 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 32 [10:44:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CF 00 00 00 5E 04 04 00 CF 00 00 00 57 04 04 00 D0 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:44:08]wFMCommunicate OK [10:44:08]SAM_PROTO_GetFieldsCounters done [10:44:08]requested_item shift.num is exist - process it [10:44:08]requested_item shift.opened is exist - process it [10:44:08]req_shift_opened [10:44:08]FM_GetShiftState [10:44:08]SAM_PROTO_GetShiftState [10:44:08]wFMCommunicate request_size=4 [10:44:08]MH_SAM_APDU [10:44:08]CAPDU: 80 13 01 00 [10:44:08]Write to MH i2c: E2 08 00 41 41 80 13 01 00 00 00 00 00 FF [10:44:08]Write i2c OK [10:44:08]MH_I2C_Read... [10:44:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:44:08]Read from MH i2c: E2 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: E2 0E 00 [10:44:08]MH_I2C_Read... [10:44:08]Read from MH i2c: E2 0E 00 41 41 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F4 [10:44:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:44:08]wFMCommunicate OK [10:44:08]SAM_PROTO_GetShiftState done [10:44:08]FM_GetShiftState done [10:44:08]req_shift_opened done [10:44:08]requested_item shift.open_date is exist - process it [10:44:08]req_shift_open_date [10:44:08]req_shift_open_date done [10:44:08]produce_requested_data done [10:44:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188178,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:44:08]process_action_free close_receipt [10:44:08]json_value_free [10:44:08]json_value_free done [10:44:08]process_json_proto returns [10:44:08]Send response to host [10:44:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188178,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:44:08]free response buf [10:44:08]execute_script done [10:44:08]execute_script returns [10:44:08]free content buf [10:44:08]Sock 9.Close socket [10:44:08]Sock 9.Thread stoped [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:41]OFD Sender: No OFD packet to send [10:44:46]OFD Sender: No OFD packet to send [10:44:51]OFD Sender: No OFD packet to send [10:44:57]OFD Sender: No OFD packet to send [10:45:02]OFD Sender: No OFD packet to send [10:45:07]OFD Sender: No OFD packet to send [10:45:12]OFD Sender: No OFD packet to send [10:45:17]OFD Sender: No OFD packet to send [10:45:22]OFD Sender: No OFD packet to send [10:45:27]OFD Sender: No OFD packet to send [10:45:32]OFD Sender: No OFD packet to send [10:45:37]OFD Sender: No OFD packet to send [10:45:42]OFD Sender: No OFD packet to send [10:45:47]OFD Sender: No OFD packet to send [10:45:52]OFD Sender: No OFD packet to send [10:45:57]OFD Sender: No OFD packet to send [10:46:02]OFD Sender: No OFD packet to send [10:46:05]accept exits with 10 [10:46:05]New connection [10:46:05]New thread 3067055460 created [10:46:05]Thread 3067198820 joined [10:46:05]Waiting for new connection... [10:46:05] Sock 10.Parse request [10:46:05]Sock 10.Check first char [10:46:05]Sock 10.First char is OK [10:46:05]request: POST /json_proto HTTP/1.0 [10:46:05]Method: POST [10:46:05]URL: /json_proto [10:46:05]Method is POST - this is cgi request [10:46:05]url: /json_proto [10:46:05]query_string will be loaded in cgi processing [10:46:05]execute_cgi json_proto POST (null) [10:46:05]execute_cgi path=json_proto method=POST [10:46:05]POST find Content-Length [10:46:05]Host: 172.17.42.131:8080 [10:46:05]Content-Length: 983 [10:46:05]Content-Type: application/json [10:46:05] [10:46:05]POST finish read [10:46:05]Found Content-Length = 983 [10:46:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:05]execute_script... [10:46:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210230", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 65.90, "quantity" : 30.350, "sum" : 2000.07, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0410\u0418-92\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 30.35 \u0441\u043E\u043C", "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:46:05]POST & json_proto [10:46:05]process_json_proto [10:46:05]json parsed OK: [10:46:05]protocol is kg_v1.0 [10:46:05]action value=close_receipt [10:46:05]process_action close_receipt [10:46:05]cmd_close_receipt [10:46:05]MH_GetDate [10:46:05]Write to MH i2c: F0 00 00 42 41 72 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 09 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: F0 09 00 42 41 00 70 82 17 67 A0 18 CA 66 D3 [10:46:05]GetLastDocTimeStamp 1729593847 [10:46:05]current date 1729593968 [10:46:05]FM_GetShiftState [10:46:05]SAM_PROTO_GetShiftState [10:46:05]wFMCommunicate request_size=4 [10:46:05]MH_SAM_APDU [10:46:05]CAPDU: 80 13 01 00 [10:46:05]Write to MH i2c: E2 08 00 43 41 80 13 01 00 00 00 00 00 01 [10:46:05]Write i2c OK [10:46:05]MH_I2C_Read... [10:46:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:05]Read from MH i2c: E2 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: E2 0E 00 [10:46:05]MH_I2C_Read... [10:46:05]Read from MH i2c: E2 0E 00 43 41 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F6 [10:46:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:46:05]wFMCommunicate OK [10:46:05]SAM_PROTO_GetShiftState done [10:46:05]FM_GetShiftState done [10:46:05]opened in 1729556094 [10:46:05]opened+sec_in_day 1729642494 [10:46:05]quantity*price = 200006 [10:46:05]sum+1 = 200008 [10:46:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.07 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.40 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 208 22.10.2024 10:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа АИ-92 номер 86 сэкономлено 30.35 сом ФМ: 0000000000965340 ФД: 188179 ФПД: 268714101861375 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104608&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188179&fm=268714101861375&tin=02508201610067®Number=0000000000100030&sum=200000 [10:46:06]StoreToDocumentArchive [10:46:06]shift 461 fd 188179 [10:46:06]save to /storage/0461/doc_00188179 [10:46:06]save last doc name /storage/0461/doc_00188179 to /storage/kkm_last_doc_name [10:46:06]save OK [10:46:06]Clear old archive folders... [10:46:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:46:06]tlvbuf is 01BFD360 [10:46:06]SAM_PROTO_ClearQueue [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 09 00 00 [10:46:06]Write to MH i2c: E2 08 00 50 41 80 09 00 00 00 00 00 00 03 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 50 41 00 90 00 05 [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_ClearQueue done [10:46:06]KKMCreateOFDPacket [10:46:06]OFDProtocolAddRootSTLVToBuf [10:46:06]FM_MakeSignedData [10:46:06]FM_MakeSignedData [10:46:06]SAM_PROTO_SignData [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 01 02 [10:46:06]Write to MH i2c: E2 08 00 51 41 80 0D 01 02 00 00 00 00 0B [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 51 41 00 90 00 06 [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]wFMCommunicate request_size=255 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 D0 00 00 00 F4 03 04 00 70 82 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DF 02 00 35 04 06 00 F4 [10:46:06]Write to MH i2c: E2 02 01 52 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 D0 00 00 00 F4 03 04 00 70 82 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DF 02 00 35 04 06 00 F4 00 00 FB [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 52 41 00 90 00 07 [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]wFMCommunicate request_size=10 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 02 02 05 64 E0 96 6B FF [10:46:06]Write to MH i2c: E2 0D 00 53 41 80 0D 02 02 05 00 64 E0 96 6B FF 00 00 5C [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 03 00 53 41 00 90 00 08 [10:46:06]RAPDU: 90 00 [10:46:06]wFMCommunicate OK [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 0D 03 02 [10:46:06]Write to MH i2c: E2 08 00 54 41 80 0D 03 02 00 00 00 00 10 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0B 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 0B 00 54 41 00 A8 60 94 00 9B 9C 99 9F 90 00 1C [10:46:06]RAPDU: A8 60 94 00 9B 9C 99 9F 90 00 [10:46:06]wFMCommunicate OK [10:46:06]SAM_PROTO_SignData done [10:46:06]FM_MakeSignedData done [10:46:06]CreateOFDProtocolMessage [10:46:06]wFMCommunicate request_size=4 [10:46:06]MH_SAM_APDU [10:46:06]CAPDU: 80 11 00 00 [10:46:06]Write to MH i2c: E2 08 00 55 41 80 11 00 00 00 00 00 00 10 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:06]Read from MH i2c: E2 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: E2 17 00 55 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [10:46:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:46:06]wFMCommunicate OK [10:46:06]CreateOFDProtocolMessage done [10:46:06]OFDSenderStorePacket 188179 [10:46:06]StoreOFDPacket docnum=188179 [10:46:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 EC 07 01 A6 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 D0 00 00 00 F4 03 04 00 70 82 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DF 02 00 35 04 06 00 F4 64 E0 96 6B FF A8 60 94 00 9B 9C 99 9F [10:46:06]CheckFolder [10:46:06]dirname=/storage/ofd_packets [10:46:06]CheckFolder done [10:46:06]ProducePacketName [10:46:06]name=ofd_packets/00188179 [10:46:06]NVStorageSaveData ofd_packets/00188179 [10:46:06]File name is /storage/ofd_packets/00188179 [10:46:06]Write 301 bytes [10:46:06]NVStorageSaveData done [10:46:06]OFDSenderStorePacket done [10:46:06]KKMCreateOFDPacket done [10:46:06]NVStorageSaveData kkm_last_timestamp [10:46:06]File name is /storage/kkm_last_timestamp [10:46:06]Write 4 bytes [10:46:06]NVStorageSaveData done [10:46:06]ExternCall_PrintAddStr [10:46:06]wPrintStart [10:46:06]Write to MH i2c: 01 00 00 56 41 97 [10:46:06]Write i2c OK [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 07 00 [10:46:06]MH_I2C_Read... [10:46:06]Read from MH i2c: 01 07 00 56 41 00 00 00 00 00 FF 0F AC [10:46:06]RasterBufferAndPrint [10:46:06]line Счет N : (1)210230 [10:46:06]line ИНН: 02508201610067 [10:46:06]line Контрольно-Кассовый Чек [10:46:06]line ПРОДАЖА [10:46:06]line ТРК (МРК, ГНК) : 32 [10:46:06]line Товар: 2710124130 [10:46:06]line Аи-92-К-3 [10:46:06]line 30.350 * 65.90 [10:46:06]line = 2000.07 [10:46:06]line НДС 12% НСП 1% [10:46:06]line > о реализуемом товаре [10:46:06]line ОКРУГЛЕНИЕ: -0.07 [10:46:06]line ИТОГО: 2000.00 [10:46:06]line Внесено: 2000.00 [10:46:06]line СДАЧА: 0.00 [10:46:06]line НСП 1% : 17.70 [10:46:06]line НДС 12% : 212.40 [10:46:06]line Наличными: 2000.00 [10:46:06]line Безнал.: 0.00 [10:46:06]line Место: АЗС № 86 "Партнер Нефть" [10:46:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:46:06]line СНО: Общий режим [10:46:06]line Чек 208 22.10.2024 10:46 [10:46:06]line Смена: 461 ФФД: 1.0 [10:46:06]line ЗНМ: 0300000155 [10:46:06]line РНМ: 0000000000100030 [10:46:06]line Версия ККМ: 001 [10:46:06]line [10:46:06]line Дисконтная программа [10:46:06]line АИ-92 [10:46:06]line номер 86 [10:46:06]line сэкономлено 30.35 сом [10:46:06]line ФМ: 0000000000965340 [10:46:06]line ФД: 188179 [10:46:06]line ФПД: 268714101861375 [10:46:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104608&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188179&fm=268714101861375&tin=02508201610067®Number=0000000000100030&sum=200000 [10:46:06]written 0, free lines is 4095 [10:46:07]OFD Sender: Processing packet 188179 [packets to send 1062, broken 1061] [10:46:07]ProducePacketName [10:46:07]name=ofd_packets/00188179 [10:46:07]OFD Sender: To server: pG, [10:46:07]CommunicateWithHost lk.salyk.kg:30040 [10:46:07]ConnectInit lk.salyk.kg [10:46:07]Connected sock=9 [10:46:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 28 EC 07 01 A6 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 33 FF 03 08 00 03 8E 76 00 00 00 00 00 37 04 06 00 BE 19 00 00 00 00 13 04 06 00 47 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 F8 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 D0 00 00 00 F4 03 04 00 70 82 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DF 02 00 35 04 06 00 F4 64 E0 96 6B FF A8 60 94 00 9B 9C 99 9F [10:46:07]Write to MH i2c: 01 00 00 86 41 C7 [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 07 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: 01 07 00 86 41 00 00 00 00 00 E7 0B C0 [10:46:07]RasterBufferAndPrint [10:46:07]line [10:46:07]line [10:46:07]line [10:46:07]line [10:46:07]line [10:46:07]written 0, free lines is 3049 [10:46:07]MH_Cut [10:46:07]Write to MH i2c: D1 01 00 8D 41 01 A0 [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: D1 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: D1 01 00 [10:46:07]MH_I2C_Read... [10:46:07]Read from MH i2c: D1 01 00 8D 41 00 9F [10:46:07]Write to MH i2c: 01 00 00 8E 41 CF [10:46:07]Write i2c OK [10:46:07]MH_I2C_Read... [10:46:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AC 25 47 00 4B 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 DF 02 00 F4 03 04 00 5D 2C 17 67 B6 04 01 00 00 78 FB 32 AF 39 3D F6 6E [10:46:07]CommunicateWithHost err = 0 [10:46:07]CheckOFDResponse [10:46:07]1017 (14) - 77093643461234 [10:46:07]1041 (16) - 0000000000965340 [10:46:07]1040 (4) - 188179 [10:46:07]1012 (4) - 22.10.2024 04:38 [10:46:07]1206 (1) - 0 [10:46:07]OFD Sender: Remove packet 188179 [10:46:07]ProducePacketName [10:46:07]name=ofd_packets/00188179 [10:46:07]NVStorageDeleteData [10:46:08]OFD Sender: No OFD packet to send [10:46:08]*** Cut start [10:46:08]*** Partial cut [10:46:08]*** CUTSNS_PIN = 1 [10:46:08]*** CUTSNS_PIN = 0 [10:46:09]*** Brake cut motor [10:46:09]Read from MH i2c: 01 [10:46:09]MH_I2C_Read... [10:46:09]*** Stop cut motor [10:46:09]*** Cut end [10:46:09]Read from MH i2c: 01 07 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: 01 07 00 8E 41 00 00 00 00 00 FF 0F E4 [10:46:09]process_action close_receipt done [10:46:09]requested_data is exist [10:46:09]produce_requested_data [10:46:09]requested_item fm.sn is exist - process it [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 11 00 00 [10:46:09]Write to MH i2c: E2 08 00 8F 41 80 11 00 00 00 00 00 00 4A [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 17 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 17 00 8F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [10:46:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:46:09]wFMCommunicate OK [10:46:09]requested_item fd.num is exist - process it [10:46:09]SAM_PROTO_GetFieldsCounters [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 00 00 [10:46:09]Write to MH i2c: E2 08 00 90 41 80 13 00 00 00 00 00 00 4D [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 62 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 62 00 90 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [10:46:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D0 00 00 00 5E 04 04 00 D0 00 00 00 57 04 04 00 D1 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:46:09]wFMCommunicate OK [10:46:09]SAM_PROTO_GetFieldsCounters done [10:46:09]requested_item shift.num is exist - process it [10:46:09]requested_item shift.opened is exist - process it [10:46:09]req_shift_opened [10:46:09]FM_GetShiftState [10:46:09]SAM_PROTO_GetShiftState [10:46:09]wFMCommunicate request_size=4 [10:46:09]MH_SAM_APDU [10:46:09]CAPDU: 80 13 01 00 [10:46:09]Write to MH i2c: E2 08 00 91 41 80 13 01 00 00 00 00 00 4F [10:46:09]Write i2c OK [10:46:09]MH_I2C_Read... [10:46:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:46:09]Read from MH i2c: E2 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 0E 00 [10:46:09]MH_I2C_Read... [10:46:09]Read from MH i2c: E2 0E 00 91 41 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [10:46:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:46:09]wFMCommunicate OK [10:46:09]SAM_PROTO_GetShiftState done [10:46:09]FM_GetShiftState done [10:46:09]req_shift_opened done [10:46:09]requested_item shift.open_date is exist - process it [10:46:09]req_shift_open_date [10:46:09]req_shift_open_date done [10:46:09]produce_requested_data done [10:46:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188179,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:46:09]process_action_free close_receipt [10:46:09]json_value_free [10:46:09]json_value_free done [10:46:09]process_json_proto returns [10:46:09]Send response to host [10:46:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188179,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:46:09]free response buf [10:46:09]execute_script done [10:46:09]execute_script returns [10:46:09]free content buf [10:46:09]Sock 10.Close socket [10:46:09]Sock 10.Thread stoped [10:46:13]OFD Sender: No OFD packet to send [10:46:18]OFD Sender: No OFD packet to send [10:46:23]OFD Sender: No OFD packet to send [10:46:28]OFD Sender: No OFD packet to send [10:46:33]OFD Sender: No OFD packet to send [10:46:38]OFD Sender: No OFD packet to send [10:46:43]OFD Sender: No OFD packet to send [10:46:48]OFD Sender: No OFD packet to send [10:46:53]OFD Sender: No OFD packet to send [10:46:58]OFD Sender: No OFD packet to send [10:47:03]OFD Sender: No OFD packet to send [10:47:08]OFD Sender: No OFD packet to send [10:47:13]OFD Sender: No OFD packet to send [10:47:18]OFD Sender: No OFD packet to send [10:47:23]OFD Sender: No OFD packet to send [10:47:28]OFD Sender: No OFD packet to send [10:47:33]OFD Sender: No OFD packet to send [10:47:38]OFD Sender: No OFD packet to send [10:47:43]OFD Sender: No OFD packet to send [10:47:48]OFD Sender: No OFD packet to send [10:47:53]OFD Sender: No OFD packet to send [10:47:58]OFD Sender: No OFD packet to send [10:48:03]OFD Sender: No OFD packet to send [10:48:08]OFD Sender: No OFD packet to send [10:48:13]OFD Sender: No OFD packet to send [10:48:18]OFD Sender: No OFD packet to send [10:48:23]OFD Sender: No OFD packet to send [10:48:28]OFD Sender: No OFD packet to send [10:48:33]OFD Sender: No OFD packet to send [10:48:38]OFD Sender: No OFD packet to send [10:48:43]OFD Sender: No OFD packet to send [10:48:48]OFD Sender: No OFD packet to send [10:48:53]OFD Sender: No OFD packet to send [10:48:58]OFD Sender: No OFD packet to send [10:49:03]OFD Sender: No OFD packet to send [10:49:08]OFD Sender: No OFD packet to send [10:49:13]OFD Sender: No OFD packet to send [10:49:18]OFD Sender: No OFD packet to send [10:49:24]OFD Sender: No OFD packet to send [10:49:29]OFD Sender: No OFD packet to send [10:49:34]OFD Sender: No OFD packet to send [10:49:39]OFD Sender: No OFD packet to send [10:49:44]OFD Sender: No OFD packet to send [10:49:45]accept exits with 8 [10:49:45]New connection [10:49:45]New thread 3067198820 created [10:49:45]Thread 3067055460 joined [10:49:45]Waiting for new connection... [10:49:45] Sock 8.Parse request [10:49:45]Sock 8.Check first char [10:49:45]Sock 8.First char is OK [10:49:45]request: POST /json_proto HTTP/1.0 [10:49:45]Method: POST [10:49:45]URL: /json_proto [10:49:45]Method is POST - this is cgi request [10:49:45]url: /json_proto [10:49:45]query_string will be loaded in cgi processing [10:49:45]execute_cgi json_proto POST (null) [10:49:45]execute_cgi path=json_proto method=POST [10:49:45]POST find Content-Length [10:49:45]Host: 172.17.42.131:8080 [10:49:45]Content-Length: 677 [10:49:45]Content-Type: application/json [10:49:45] [10:49:45]POST finish read [10:49:45]Found Content-Length = 677 [10:49:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:45]execute_script... [10:49:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210231", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:49:45]POST & json_proto [10:49:45]process_json_proto [10:49:45]json parsed OK: [10:49:45]protocol is kg_v1.0 [10:49:45]action value=close_receipt [10:49:45]process_action close_receipt [10:49:45]cmd_close_receipt [10:49:45]MH_GetDate [10:49:45]Write to MH i2c: F0 00 00 92 41 C2 [10:49:45]Write i2c OK [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: F0 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: F0 09 00 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: F0 09 00 92 41 00 4C 83 17 67 A0 18 CA 66 00 [10:49:45]GetLastDocTimeStamp 1729593968 [10:49:45]current date 1729594188 [10:49:45]FM_GetShiftState [10:49:45]SAM_PROTO_GetShiftState [10:49:45]wFMCommunicate request_size=4 [10:49:45]MH_SAM_APDU [10:49:45]CAPDU: 80 13 01 00 [10:49:45]Write to MH i2c: E2 08 00 93 41 80 13 01 00 00 00 00 00 51 [10:49:45]Write i2c OK [10:49:45]MH_I2C_Read... [10:49:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:45]Read from MH i2c: E2 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: E2 0E 00 [10:49:45]MH_I2C_Read... [10:49:45]Read from MH i2c: E2 0E 00 93 41 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 46 [10:49:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:49:45]wFMCommunicate OK [10:49:45]SAM_PROTO_GetShiftState done [10:49:45]FM_GetShiftState done [10:49:45]opened in 1729556094 [10:49:45]opened+sec_in_day 1729642494 [10:49:45]quantity*price = 50041 [10:49:45]sum+1 = 50042 [10:49:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 209 22.10.2024 10:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188180 ФПД: 226599186682398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188180&fm=226599186682398&tin=02508201610067®Number=0000000000100030&sum=50000 [10:49:46]StoreToDocumentArchive [10:49:46]shift 461 fd 188180 [10:49:46]save to /storage/0461/doc_00188180 [10:49:46]save last doc name /storage/0461/doc_00188180 to /storage/kkm_last_doc_name [10:49:46]save OK [10:49:46]Clear old archive folders... [10:49:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:49:46]tlvbuf is 01BB3CB0 [10:49:46]SAM_PROTO_ClearQueue [10:49:46]wFMCommunicate request_size=4 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 09 00 00 [10:49:46]Write to MH i2c: E2 08 00 A0 41 80 09 00 00 00 00 00 00 53 [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 A0 41 00 90 00 55 [10:49:46]RAPDU: 90 00 [10:49:46]wFMCommunicate OK [10:49:46]SAM_PROTO_ClearQueue done [10:49:46]KKMCreateOFDPacket [10:49:46]OFDProtocolAddRootSTLVToBuf [10:49:46]FM_MakeSignedData [10:49:46]FM_MakeSignedData [10:49:46]SAM_PROTO_SignData [10:49:46]wFMCommunicate request_size=4 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 0D 01 02 [10:49:46]Write to MH i2c: E2 08 00 A1 41 80 0D 01 02 00 00 00 00 5B [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 A1 41 00 90 00 56 [10:49:46]RAPDU: 90 00 [10:49:46]wFMCommunicate OK [10:49:46]wFMCommunicate request_size=255 [10:49:46]MH_SAM_APDU [10:49: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4C 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DF 02 00 35 04 06 00 CE [10:49:46]Write to MH i2c: E2 02 01 A2 41 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4C 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DF 02 00 35 04 06 00 CE 00 00 7D [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 A2 41 00 90 00 57 [10:49:46]RAPDU: 90 00 [10:49:46]wFMCommunicate OK [10:49:46]wFMCommunicate request_size=10 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 0D 02 02 05 17 3C 07 52 1E [10:49:46]Write to MH i2c: E2 0D 00 A3 41 80 0D 02 02 05 00 17 3C 07 52 1E 00 00 32 [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 03 00 A3 41 00 90 00 58 [10:49:46]RAPDU: 90 00 [10:49:46]wFMCommunicate OK [10:49:46]wFMCommunicate request_size=4 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 0D 03 02 [10:49:46]Write to MH i2c: E2 08 00 A4 41 80 0D 03 02 00 00 00 00 60 [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 0B 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 0B 00 A4 41 00 FA A1 83 6C 11 7A F7 E3 90 00 50 [10:49:46]RAPDU: FA A1 83 6C 11 7A F7 E3 90 00 [10:49:46]wFMCommunicate OK [10:49:46]SAM_PROTO_SignData done [10:49:46]FM_MakeSignedData done [10:49:46]CreateOFDProtocolMessage [10:49:46]wFMCommunicate request_size=4 [10:49:46]MH_SAM_APDU [10:49:46]CAPDU: 80 11 00 00 [10:49:46]Write to MH i2c: E2 08 00 A5 41 80 11 00 00 00 00 00 00 60 [10:49:46]Write i2c OK [10:49:46]MH_I2C_Read... [10:49:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:46]Read from MH i2c: E2 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 17 00 [10:49:46]MH_I2C_Read... [10:49:46]Read from MH i2c: E2 17 00 A5 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [10:49:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:49:46]wFMCommunicate OK [10:49:46]CreateOFDProtocolMessage done [10:49:46]OFDSenderStorePacket 188180 [10:49:46]StoreOFDPacket docnum=188180 [10:49:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 3C 07 01 D6 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4C 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DF 02 00 35 04 06 00 CE 17 3C 07 52 1E FA A1 83 6C 11 7A F7 E3 [10:49:46]CheckFolder [10:49:46]dirname=/storage/ofd_packets [10:49:46]CheckFolder done [10:49:46]ProducePacketName [10:49:46]name=ofd_packets/00188180 [10:49:46]NVStorageSaveData ofd_packets/00188180 [10:49:46]File name is /storage/ofd_packets/00188180 [10:49:46]Write 301 bytes [10:49:46]NVStorageSaveData done [10:49:46]OFDSenderStorePacket done [10:49:46]KKMCreateOFDPacket done [10:49:46]NVStorageSaveData kkm_last_timestamp [10:49:46]File name is /storage/kkm_last_timestamp [10:49:46]Write 4 bytes [10:49:46]NVStorageSaveData done [10:49:47]ExternCall_PrintAddStr [10:49:47]wPrintStart [10:49:47]Write to MH i2c: 01 00 00 A6 41 E7 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 07 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 07 00 A6 41 00 00 00 00 00 FF 0F FC [10:49:47]RasterBufferAndPrint [10:49:47]line Счет N : (1)210231 [10:49:47]line ИНН: 02508201610067 [10:49:47]line Контрольно-Кассовый Чек [10:49:47]line ПРОДАЖА [10:49:47]line ТРК (МРК, ГНК) : 42 [10:49:47]line Товар: 2710124130 [10:49:47]line Аи-92-К-3 [10:49:47]line 7.480 * 66.90 [10:49:47]line = 500.41 [10:49:47]line НДС 12% НСП 1% [10:49:47]line > о реализуемом товаре [10:49:47]line ОКРУГЛЕНИЕ: -0.41 [10:49:47]line ИТОГО: 500.00 [10:49:47]line Внесено: 500.00 [10:49:47]line СДАЧА: 0.00 [10:49:47]line НСП 1% : 4.43 [10:49:47]line НДС 12% : 53.14 [10:49:47]line Наличными: 500.00 [10:49:47]line Безнал.: 0.00 [10:49:47]line Место: АЗС № 86 "Партнер Нефть" [10:49:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:49:47]line СНО: Общий режим [10:49:47]line Чек 209 22.10.2024 10:49 [10:49:47]line Смена: 461 ФФД: 1.0 [10:49:47]line ЗНМ: 0300000155 [10:49:47]line РНМ: 0000000000100030 [10:49:47]line Версия ККМ: 001 [10:49:47]line ФМ: 0000000000965340 [10:49:47]line ФД: 188180 [10:49:47]line ФПД: 226599186682398 [10:49:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T104948&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188180&fm=226599186682398&tin=02508201610067®Number=0000000000100030&sum=50000 [10:49:47]written 0, free lines is 4095 [10:49:47]OFD Sender: Processing packet 188180 [packets to send 1062, broken 1061] [10:49:47]ProducePacketName [10:49:47]name=ofd_packets/00188180 [10:49:47]OFD Sender: To server: pG, [10:49:47]CommunicateWithHost lk.salyk.kg:30040 [10:49:47]ConnectInit lk.salyk.kg [10:49:47]Connected sock=10 [10:49:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 3C 07 01 D6 E9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 00 00 00 F4 03 04 00 4C 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DF 02 00 35 04 06 00 CE 17 3C 07 52 1E FA A1 83 6C 11 7A F7 E3 [10:49:47]Write to MH i2c: 01 00 00 D1 41 12 [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 07 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: 01 07 00 D1 41 00 00 00 00 00 5F 0C 84 [10:49:47]RasterBufferAndPrint [10:49:47]line [10:49:47]line [10:49:47]line [10:49:47]line [10:49:47]line [10:49:47]written 0, free lines is 3172 [10:49:47]MH_Cut [10:49:47]Write to MH i2c: D1 01 00 D8 41 01 EB [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: D1 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: D1 01 00 [10:49:47]MH_I2C_Read... [10:49:47]Read from MH i2c: D1 01 00 D8 41 00 EA [10:49:47]Write to MH i2c: 01 00 00 D9 41 1A [10:49:47]Write i2c OK [10:49:47]MH_I2C_Read... [10:49:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B0 CC 47 00 B7 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 DF 02 00 F4 03 04 00 39 2D 17 67 B6 04 01 00 00 83 7D FE 55 DA A7 A8 B3 [10:49:47]CommunicateWithHost err = 0 [10:49:47]CheckOFDResponse [10:49:47]1017 (14) - 77093643461234 [10:49:47]1041 (16) - 0000000000965340 [10:49:47]1040 (4) - 188180 [10:49:47]1012 (4) - 22.10.2024 04:42 [10:49:47]1206 (1) - 0 [10:49:47]OFD Sender: Remove packet 188180 [10:49:47]ProducePacketName [10:49:47]name=ofd_packets/00188180 [10:49:47]NVStorageDeleteData [10:49:48]OFD Sender: No OFD packet to send [10:49:48]*** Cut start [10:49:48]*** Partial cut [10:49:48]*** CUTSNS_PIN = 1 [10:49:48]*** CUTSNS_PIN = 0 [10:49:49]*** Brake cut motor [10:49:49]Read from MH i2c: 01 [10:49:49]MH_I2C_Read... [10:49:49]*** Stop cut motor [10:49:49]*** Cut end [10:49:49]Read from MH i2c: 01 07 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: 01 07 00 D9 41 00 00 00 00 00 FF 0F 2F [10:49:49]process_action close_receipt done [10:49:49]requested_data is exist [10:49:49]produce_requested_data [10:49:49]requested_item fm.sn is exist - process it [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 11 00 00 [10:49:49]Write to MH i2c: E2 08 00 DA 41 80 11 00 00 00 00 00 00 95 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 17 00 DA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [10:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:49:49]wFMCommunicate OK [10:49:49]requested_item fd.num is exist - process it [10:49:49]SAM_PROTO_GetFieldsCounters [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 13 00 00 [10:49:49]Write to MH i2c: E2 08 00 DB 41 80 13 00 00 00 00 00 00 98 [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 62 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 62 00 DB 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [10:49:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D1 00 00 00 5E 04 04 00 D1 00 00 00 57 04 04 00 D2 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_GetFieldsCounters done [10:49:49]requested_item shift.num is exist - process it [10:49:49]requested_item shift.opened is exist - process it [10:49:49]req_shift_opened [10:49:49]FM_GetShiftState [10:49:49]SAM_PROTO_GetShiftState [10:49:49]wFMCommunicate request_size=4 [10:49:49]MH_SAM_APDU [10:49:49]CAPDU: 80 13 01 00 [10:49:49]Write to MH i2c: E2 08 00 DC 41 80 13 01 00 00 00 00 00 9A [10:49:49]Write i2c OK [10:49:49]MH_I2C_Read... [10:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:49:49]Read from MH i2c: E2 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0E 00 [10:49:49]MH_I2C_Read... [10:49:49]Read from MH i2c: E2 0E 00 DC 41 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8F [10:49:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:49:49]wFMCommunicate OK [10:49:49]SAM_PROTO_GetShiftState done [10:49:49]FM_GetShiftState done [10:49:49]req_shift_opened done [10:49:49]requested_item shift.open_date is exist - process it [10:49:49]req_shift_open_date [10:49:49]req_shift_open_date done [10:49:49]produce_requested_data done [10:49:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188180,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:49:49]process_action_free close_receipt [10:49:49]json_value_free [10:49:49]json_value_free done [10:49:49]process_json_proto returns [10:49:49]Send response to host [10:49:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188180,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:49:49]free response buf [10:49:49]execute_script done [10:49:49]execute_script returns [10:49:49]free content buf [10:49:49]Sock 8.Close socket [10:49:49]Sock 8.Thread stoped [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]accept exits with 9 [10:50:23]New connection [10:50:23]New thread 3067055460 created [10:50:23]Thread 3067198820 joined [10:50:23]Waiting for new connection... [10:50:23] Sock 9.Parse request [10:50:23]Sock 9.Check first char [10:50:23]Sock 9.First char is OK [10:50:23]request: POST /json_proto HTTP/1.0 [10:50:23]Method: POST [10:50:23]URL: /json_proto [10:50:23]Method is POST - this is cgi request [10:50:23]url: /json_proto [10:50:23]query_string will be loaded in cgi processing [10:50:23]execute_cgi json_proto POST (null) [10:50:23]execute_cgi path=json_proto method=POST [10:50:23]POST find Content-Length [10:50:23]Host: 172.17.42.131:8080 [10:50:23]Content-Length: 682 [10:50:23]Content-Type: application/json [10:50:23] [10:50:23]POST finish read [10:50:23]Found Content-Length = 682 [10:50:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:50:23]execute_script... [10:50: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)210232", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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:50:23]POST & json_proto [10:50:23]process_json_proto [10:50:23]json parsed OK: [10:50:23]protocol is kg_v1.0 [10:50:23]action value=close_receipt [10:50:23]process_action close_receipt [10:50:23]cmd_close_receipt [10:50:23]MH_GetDate [10:50:23]Write to MH i2c: F0 00 00 DD 41 0D [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: F0 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: F0 09 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: F0 09 00 DD 41 00 72 83 17 67 A0 18 CA 66 71 [10:50:23]GetLastDocTimeStamp 1729594188 [10:50:23]current date 1729594226 [10:50:23]FM_GetShiftState [10:50:23]SAM_PROTO_GetShiftState [10:50:23]wFMCommunicate request_size=4 [10:50:23]MH_SAM_APDU [10:50:23]CAPDU: 80 13 01 00 [10:50:23]Write to MH i2c: E2 08 00 DE 41 80 13 01 00 00 00 00 00 9C [10:50:23]Write i2c OK [10:50:23]MH_I2C_Read... [10:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:23]Read from MH i2c: E2 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0E 00 [10:50:23]MH_I2C_Read... [10:50:23]Read from MH i2c: E2 0E 00 DE 41 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [10:50:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:50:23]wFMCommunicate OK [10:50:23]SAM_PROTO_GetShiftState done [10:50:23]FM_GetShiftState done [10:50:23]opened in 1729556094 [10:50:23]opened+sec_in_day 1729642494 [10:50:23]quantity*price = 100021 [10:50:23]sum+1 = 100023 [10:50:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 210 22.10.2024 10:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188181 ФПД: 234401378000941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105026&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188181&fm=234401378000941&tin=02508201610067®Number=0000000000100030&sum=100000 [10:50:24]StoreToDocumentArchive [10:50:24]shift 461 fd 188181 [10:50:24]save to /storage/0461/doc_00188181 [10:50:24]save last doc name /storage/0461/doc_00188181 to /storage/kkm_last_doc_name [10:50:24]save OK [10:50:24]Clear old archive folders... [10:50:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:50:24]tlvbuf is 01BA04B0 [10:50:24]SAM_PROTO_ClearQueue [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 09 00 00 [10:50:24]Write to MH i2c: E2 08 00 EB 41 80 09 00 00 00 00 00 00 9E [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 EB 41 00 90 00 A0 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_ClearQueue done [10:50:24]KKMCreateOFDPacket [10:50:24]OFDProtocolAddRootSTLVToBuf [10:50:24]FM_MakeSignedData [10:50:24]FM_MakeSignedData [10:50:24]SAM_PROTO_SignData [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 01 02 [10:50:24]Write to MH i2c: E2 08 00 EC 41 80 0D 01 02 00 00 00 00 A6 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 EC 41 00 90 00 A1 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=255 [10:50:24]MH_SAM_APDU [10:50: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 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 D2 00 00 00 F4 03 04 00 72 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DF 02 00 35 04 06 00 D5 [10:50:24]Write to MH i2c: E2 02 01 ED 41 80 0D 02 02 FA 00 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 D2 00 00 00 F4 03 04 00 72 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DF 02 00 35 04 06 00 D5 00 00 14 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 ED 41 00 90 00 A2 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=10 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 02 02 05 2F D2 DE E0 2D [10:50:24]Write to MH i2c: E2 0D 00 EE 41 80 0D 02 02 05 00 2F D2 DE E0 2D 00 00 9F [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 03 00 EE 41 00 90 00 A3 [10:50:24]RAPDU: 90 00 [10:50:24]wFMCommunicate OK [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 0D 03 02 [10:50:24]Write to MH i2c: E2 08 00 EF 41 80 0D 03 02 00 00 00 00 AB [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0B 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 0B 00 EF 41 00 3A CE 97 F9 54 3A 37 DA 90 00 E3 [10:50:24]RAPDU: 3A CE 97 F9 54 3A 37 DA 90 00 [10:50:24]wFMCommunicate OK [10:50:24]SAM_PROTO_SignData done [10:50:24]FM_MakeSignedData done [10:50:24]CreateOFDProtocolMessage [10:50:24]wFMCommunicate request_size=4 [10:50:24]MH_SAM_APDU [10:50:24]CAPDU: 80 11 00 00 [10:50:24]Write to MH i2c: E2 08 00 F0 41 80 11 00 00 00 00 00 00 AB [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:24]Read from MH i2c: E2 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 17 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: E2 17 00 F0 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [10:50:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:50:24]wFMCommunicate OK [10:50:24]CreateOFDProtocolMessage done [10:50:24]OFDSenderStorePacket 188181 [10:50:24]StoreOFDPacket docnum=188181 [10:50:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C 59 07 01 19 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 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 D2 00 00 00 F4 03 04 00 72 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DF 02 00 35 04 06 00 D5 2F D2 DE E0 2D 3A CE 97 F9 54 3A 37 DA [10:50:24]CheckFolder [10:50:24]dirname=/storage/ofd_packets [10:50:24]CheckFolder done [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00188181 [10:50:24]NVStorageSaveData ofd_packets/00188181 [10:50:24]File name is /storage/ofd_packets/00188181 [10:50:24]Write 301 bytes [10:50:24]NVStorageSaveData done [10:50:24]OFDSenderStorePacket done [10:50:24]KKMCreateOFDPacket done [10:50:24]NVStorageSaveData kkm_last_timestamp [10:50:24]File name is /storage/kkm_last_timestamp [10:50:24]Write 4 bytes [10:50:24]NVStorageSaveData done [10:50:24]ExternCall_PrintAddStr [10:50:24]wPrintStart [10:50:24]Write to MH i2c: 01 00 00 F1 41 32 [10:50:24]Write i2c OK [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 [10:50:24]MH_I2C_Read... [10:50:24]Read from MH i2c: 01 07 00 F1 41 00 00 00 00 00 FF 0F 47 [10:50:24]RasterBufferAndPrint [10:50:24]line Счет N : (1)210232 [10:50:24]line ИНН: 02508201610067 [10:50:24]line Контрольно-Кассовый Чек [10:50:24]line ПРОДАЖА [10:50:24]line ТРК (МРК, ГНК) : 13 [10:50:24]line Товар: 2710124500 [10:50:24]line Аи-95-К-3 [10:50:24]line 13.480 * 74.20 [10:50:24]line = 1000.22 [10:50:24]line НДС 12% НСП 1% [10:50:24]line > о реализуемом товаре [10:50:24]line ОКРУГЛЕНИЕ: -0.22 [10:50:24]line ИТОГО: 1000.00 [10:50:24]line Внесено: 1000.00 [10:50:24]line СДАЧА: 0.00 [10:50:24]line НСП 1% : 8.85 [10:50:24]line НДС 12% : 106.22 [10:50:24]line Наличными: 1000.00 [10:50:24]line Безнал.: 0.00 [10:50:24]line Место: АЗС № 86 "Партнер Нефть" [10:50:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:50:24]line СНО: Общий режим [10:50:24]line Чек 210 22.10.2024 10:50 [10:50:24]line Смена: 461 ФФД: 1.0 [10:50:24]line ЗНМ: 0300000155 [10:50:24]line РНМ: 0000000000100030 [10:50:24]line Версия ККМ: 001 [10:50:24]line ФМ: 0000000000965340 [10:50:24]line ФД: 188181 [10:50:24]line ФПД: 234401378000941 [10:50:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105026&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188181&fm=234401378000941&tin=02508201610067®Number=0000000000100030&sum=100000 [10:50:24]OFD Sender: Processing packet 188181 [packets to send 1062, broken 1061] [10:50:24]ProducePacketName [10:50:24]name=ofd_packets/00188181 [10:50:24]OFD Sender: To server: pG, [10:50:24]CommunicateWithHost lk.salyk.kg:30040 [10:50:24]ConnectInit lk.salyk.kg [10:50:24]written 0, free lines is 4095 [10:50:25]Connected sock=10 [10:50:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2C 59 07 01 19 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 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 D2 00 00 00 F4 03 04 00 72 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DF 02 00 35 04 06 00 D5 2F D2 DE E0 2D 3A CE 97 F9 54 3A 37 DA [10:50:25]Write to MH i2c: 01 00 00 1C 42 5E [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: 01 07 00 1C 42 00 00 00 00 00 5F 0C D0 [10:50:25]RasterBufferAndPrint [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]line [10:50:25]written 0, free lines is 3170 [10:50:25]MH_Cut [10:50:25]Write to MH i2c: D1 01 00 23 42 01 37 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 01 00 [10:50:25]MH_I2C_Read... [10:50:25]Read from MH i2c: D1 01 00 23 42 00 36 [10:50:25]Write to MH i2c: 01 00 00 24 42 66 [10:50:25]Write i2c OK [10:50:25]MH_I2C_Read... [10:50:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 01 EE 47 00 29 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 DF 02 00 F4 03 04 00 5F 2D 17 67 B6 04 01 00 00 22 52 AE 8D E8 C8 A9 C0 [10:50:25]CommunicateWithHost err = 0 [10:50:25]CheckOFDResponse [10:50:25]1017 (14) - 77093643461234 [10:50:25]1041 (16) - 0000000000965340 [10:50:25]1040 (4) - 188181 [10:50:25]1012 (4) - 22.10.2024 04:43 [10:50:25]1206 (1) - 0 [10:50:25]OFD Sender: Remove packet 188181 [10:50:25]ProducePacketName [10:50:25]name=ofd_packets/00188181 [10:50:25]NVStorageDeleteData [10:50:25]OFD Sender: No OFD packet to send [10:50:26]*** Cut start [10:50:26]*** Partial cut [10:50:26]*** CUTSNS_PIN = 1 [10:50:26]*** CUTSNS_PIN = 0 [10:50:26]*** Brake cut motor [10:50:27]Read from MH i2c: 01 [10:50:27]MH_I2C_Read... [10:50:27]*** Stop cut motor [10:50:27]*** Cut end [10:50:27]Read from MH i2c: 01 07 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: 01 07 00 24 42 00 00 00 00 00 FF 0F 7B [10:50:27]process_action close_receipt done [10:50:27]requested_data is exist [10:50:27]produce_requested_data [10:50:27]requested_item fm.sn is exist - process it [10:50:27]wFMCommunicate request_size=4 [10:50:27]MH_SAM_APDU [10:50:27]CAPDU: 80 11 00 00 [10:50:27]Write to MH i2c: E2 08 00 25 42 80 11 00 00 00 00 00 00 E1 [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:27]Read from MH i2c: E2 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 17 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 17 00 25 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [10:50:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:50:27]wFMCommunicate OK [10:50:27]requested_item fd.num is exist - process it [10:50:27]SAM_PROTO_GetFieldsCounters [10:50:27]wFMCommunicate request_size=4 [10:50:27]MH_SAM_APDU [10:50:27]CAPDU: 80 13 00 00 [10:50:27]Write to MH i2c: E2 08 00 26 42 80 13 00 00 00 00 00 00 E4 [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:27]Read from MH i2c: E2 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 62 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 62 00 26 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [10:50:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D2 00 00 00 5E 04 04 00 D2 00 00 00 57 04 04 00 D3 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:27]wFMCommunicate OK [10:50:27]SAM_PROTO_GetFieldsCounters done [10:50:27]requested_item shift.num is exist - process it [10:50:27]requested_item shift.opened is exist - process it [10:50:27]req_shift_opened [10:50:27]FM_GetShiftState [10:50:27]SAM_PROTO_GetShiftState [10:50:27]wFMCommunicate request_size=4 [10:50:27]MH_SAM_APDU [10:50:27]CAPDU: 80 13 01 00 [10:50:27]Write to MH i2c: E2 08 00 27 42 80 13 01 00 00 00 00 00 E6 [10:50:27]Write i2c OK [10:50:27]MH_I2C_Read... [10:50:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:27]Read from MH i2c: E2 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 0E 00 [10:50:27]MH_I2C_Read... [10:50:27]Read from MH i2c: E2 0E 00 27 42 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [10:50:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:50:27]wFMCommunicate OK [10:50:27]SAM_PROTO_GetShiftState done [10:50:27]FM_GetShiftState done [10:50:27]req_shift_opened done [10:50:27]requested_item shift.open_date is exist - process it [10:50:27]req_shift_open_date [10:50:27]req_shift_open_date done [10:50:27]produce_requested_data done [10:50:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188181,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:50:27]process_action_free close_receipt [10:50:27]json_value_free [10:50:27]json_value_free done [10:50:27]process_json_proto returns [10:50:27]Send response to host [10:50:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188181,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:50:27]free response buf [10:50:27]execute_script done [10:50:27]execute_script returns [10:50:27]free content buf [10:50:27]Sock 9.Close socket [10:50:27]Sock 9.Thread stoped [10:50:30]OFD Sender: No OFD packet to send [10:50:36]OFD Sender: No OFD packet to send [10:50:41]OFD Sender: No OFD packet to send [10:50:46]OFD Sender: No OFD packet to send [10:50:51]OFD Sender: No OFD packet to send [10:50:56]OFD Sender: No OFD packet to send [10:51:01]OFD Sender: No OFD packet to send [10:51:06]OFD Sender: No OFD packet to send [10:51:11]OFD Sender: No OFD packet to send [10:51:16]OFD Sender: No OFD packet to send [10:51:21]OFD Sender: No OFD packet to send [10:51:26]OFD Sender: No OFD packet to send [10:51:31]OFD Sender: No OFD packet to send [10:51:36]OFD Sender: No OFD packet to send [10:51:41]OFD Sender: No OFD packet to send [10:51:46]OFD Sender: No OFD packet to send [10:51:51]OFD Sender: No OFD packet to send [10:51:56]OFD Sender: No OFD packet to send [10:52:01]OFD Sender: No OFD packet to send [10:52:06]OFD Sender: No OFD packet to send [10:52:11]OFD Sender: No OFD packet to send [10:52:16]OFD Sender: No OFD packet to send [10:52:17]accept exits with 8 [10:52:17]New connection [10:52:17]New thread 3067198820 created [10:52:17]Thread 3067055460 joined [10:52:17]Waiting for new connection... [10:52:17] Sock 8.Parse request [10:52:17]Sock 8.Check first char [10:52:17]Sock 8.First char is OK [10:52:17]request: POST /json_proto HTTP/1.0 [10:52:17]Method: POST [10:52:17]URL: /json_proto [10:52:17]Method is POST - this is cgi request [10:52:17]url: /json_proto [10:52:17]query_string will be loaded in cgi processing [10:52:17]execute_cgi json_proto POST (null) [10:52:17]execute_cgi path=json_proto method=POST [10:52:17]POST find Content-Length [10:52:17]Host: 172.17.42.131:8080 [10:52:17]Content-Length: 677 [10:52:17]Content-Type: application/json [10:52:17] [10:52:17]POST finish read [10:52:17]Found Content-Length = 677 [10:52:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:17]execute_script... [10:52: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)210233", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:17]POST & json_proto [10:52:17]process_json_proto [10:52:17]json parsed OK: [10:52:17]protocol is kg_v1.0 [10:52:17]action value=close_receipt [10:52:17]process_action close_receipt [10:52:17]cmd_close_receipt [10:52:17]MH_GetDate [10:52:17]Write to MH i2c: F0 00 00 28 42 59 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: F0 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: F0 09 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: F0 09 00 28 42 00 E4 83 17 67 A0 18 CA 66 2F [10:52:17]GetLastDocTimeStamp 1729594226 [10:52:17]current date 1729594340 [10:52:17]FM_GetShiftState [10:52:17]SAM_PROTO_GetShiftState [10:52:17]wFMCommunicate request_size=4 [10:52:17]MH_SAM_APDU [10:52:17]CAPDU: 80 13 01 00 [10:52:17]Write to MH i2c: E2 08 00 29 42 80 13 01 00 00 00 00 00 E8 [10:52:17]Write i2c OK [10:52:17]MH_I2C_Read... [10:52:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:17]Read from MH i2c: E2 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: E2 0E 00 [10:52:17]MH_I2C_Read... [10:52:17]Read from MH i2c: E2 0E 00 29 42 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [10:52:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:52:17]wFMCommunicate OK [10:52:17]SAM_PROTO_GetShiftState done [10:52:17]FM_GetShiftState done [10:52:17]opened in 1729556094 [10:52:17]opened+sec_in_day 1729642494 [10:52:17]quantity*price = 40006 [10:52:17]sum+1 = 40007 [10:52:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 211 22.10.2024 10:52 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188182 ФПД: 25940714470049 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105220&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188182&fm=25940714470049&tin=02508201610067®Number=0000000000100030&sum=40000 [10:52:18]StoreToDocumentArchive [10:52:18]shift 461 fd 188182 [10:52:18]save to /storage/0461/doc_00188182 [10:52:18]save last doc name /storage/0461/doc_00188182 to /storage/kkm_last_doc_name [10:52:18]save OK [10:52:18]Clear old archive folders... [10:52:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:52:18]tlvbuf is 01BBCAA0 [10:52:18]SAM_PROTO_ClearQueue [10:52:18]wFMCommunicate request_size=4 [10:52:18]MH_SAM_APDU [10:52:18]CAPDU: 80 09 00 00 [10:52:18]Write to MH i2c: E2 08 00 36 42 80 09 00 00 00 00 00 00 EA [10:52:18]Write i2c OK [10:52:18]MH_I2C_Read... [10:52:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:18]Read from MH i2c: E2 [10:52:18]MH_I2C_Read... [10:52:18]Read from MH i2c: E2 03 00 [10:52:18]MH_I2C_Read... [10:52:18]Read from MH i2c: E2 03 00 36 42 00 90 00 EC [10:52:18]RAPDU: 90 00 [10:52:18]wFMCommunicate OK [10:52:18]SAM_PROTO_ClearQueue done [10:52:18]KKMCreateOFDPacket [10:52:18]OFDProtocolAddRootSTLVToBuf [10:52:18]FM_MakeSignedData [10:52:18]FM_MakeSignedData [10:52:18]SAM_PROTO_SignData [10:52:18]wFMCommunicate request_size=4 [10:52:18]MH_SAM_APDU [10:52:18]CAPDU: 80 0D 01 02 [10:52:18]Write to MH i2c: E2 08 00 37 42 80 0D 01 02 00 00 00 00 F2 [10:52:18]Write i2c OK [10:52:18]MH_I2C_Read... [10:52:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:18]Read from MH i2c: E2 [10:52:18]MH_I2C_Read... [10:52:18]Read from MH i2c: E2 03 00 [10:52:18]MH_I2C_Read... [10:52:18]Read from MH i2c: E2 03 00 37 42 00 90 00 ED [10:52:18]RAPDU: 90 00 [10:52:18]wFMCommunicate OK [10:52:18]wFMCommunicate request_size=255 [10:52:18]MH_SAM_APDU [10:52: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E4 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DF 02 00 35 04 06 00 17 [10:52:18]Write to MH i2c: E2 02 01 38 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E4 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DF 02 00 35 04 06 00 17 00 00 C8 [10:52:18]Write i2c OK [10:52:18]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 03 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 03 00 38 42 00 90 00 EE [10:52:19]RAPDU: 90 00 [10:52:19]wFMCommunicate OK [10:52:19]wFMCommunicate request_size=10 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 0D 02 02 05 97 CB 12 3A A1 [10:52:19]Write to MH i2c: E2 0D 00 39 42 80 0D 02 02 05 00 97 CB 12 3A A1 00 00 4E [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 03 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 03 00 39 42 00 90 00 EF [10:52:19]RAPDU: 90 00 [10:52:19]wFMCommunicate OK [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 0D 03 02 [10:52:19]Write to MH i2c: E2 08 00 3A 42 80 0D 03 02 00 00 00 00 F7 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0B 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 0B 00 3A 42 00 6F 25 A0 0D 6C 6D FF AE 90 00 BF [10:52:19]RAPDU: 6F 25 A0 0D 6C 6D FF AE 90 00 [10:52:19]wFMCommunicate OK [10:52:19]SAM_PROTO_SignData done [10:52:19]FM_MakeSignedData done [10:52:19]CreateOFDProtocolMessage [10:52:19]wFMCommunicate request_size=4 [10:52:19]MH_SAM_APDU [10:52:19]CAPDU: 80 11 00 00 [10:52:19]Write to MH i2c: E2 08 00 3B 42 80 11 00 00 00 00 00 00 F7 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:19]Read from MH i2c: E2 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 17 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: E2 17 00 3B 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [10:52:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:52:19]wFMCommunicate OK [10:52:19]CreateOFDProtocolMessage done [10:52:19]OFDSenderStorePacket 188182 [10:52:19]StoreOFDPacket docnum=188182 [10:52:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 53 8A 07 01 72 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E4 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DF 02 00 35 04 06 00 17 97 CB 12 3A A1 6F 25 A0 0D 6C 6D FF AE [10:52:19]CheckFolder [10:52:19]dirname=/storage/ofd_packets [10:52:19]CheckFolder done [10:52:19]ProducePacketName [10:52:19]name=ofd_packets/00188182 [10:52:19]NVStorageSaveData ofd_packets/00188182 [10:52:19]File name is /storage/ofd_packets/00188182 [10:52:19]Write 301 bytes [10:52:19]NVStorageSaveData done [10:52:19]OFDSenderStorePacket done [10:52:19]KKMCreateOFDPacket done [10:52:19]NVStorageSaveData kkm_last_timestamp [10:52:19]File name is /storage/kkm_last_timestamp [10:52:19]Write 4 bytes [10:52:19]NVStorageSaveData done [10:52:19]ExternCall_PrintAddStr [10:52:19]wPrintStart [10:52:19]Write to MH i2c: 01 00 00 3C 42 7E [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 07 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 07 00 3C 42 00 00 00 00 00 FF 0F 93 [10:52:19]RasterBufferAndPrint [10:52:19]line Счет N : (1)210233 [10:52:19]line ИНН: 02508201610067 [10:52:19]line Контрольно-Кассовый Чек [10:52:19]line ПРОДАЖА [10:52:19]line ТРК (МРК, ГНК) : 12 [10:52:19]line Товар: 2710124130 [10:52:19]line Аи-92-К-3 [10:52:19]line 5.980 * 66.90 [10:52:19]line = 400.06 [10:52:19]line НДС 12% НСП 1% [10:52:19]line > о реализуемом товаре [10:52:19]line ОКРУГЛЕНИЕ: -0.06 [10:52:19]line ИТОГО: 400.00 [10:52:19]line Внесено: 400.00 [10:52:19]line СДАЧА: 0.00 [10:52:19]line НСП 1% : 3.54 [10:52:19]line НДС 12% : 42.48 [10:52:19]line Наличными: 400.00 [10:52:19]line Безнал.: 0.00 [10:52:19]line Место: АЗС № 86 "Партнер Нефть" [10:52:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:52:19]line СНО: Общий режим [10:52:19]line Чек 211 22.10.2024 10:52 [10:52:19]line Смена: 461 ФФД: 1.0 [10:52:19]line ЗНМ: 0300000155 [10:52:19]line РНМ: 0000000000100030 [10:52:19]line Версия ККМ: 001 [10:52:19]line ФМ: 0000000000965340 [10:52:19]line ФД: 188182 [10:52:19]line ФПД: 25940714470049 [10:52:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105220&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188182&fm=25940714470049&tin=02508201610067®Number=0000000000100030&sum=40000 [10:52:19]written 0, free lines is 4095 [10:52:19]OFD Sender: Processing packet 188182 [packets to send 1062, broken 1061] [10:52:19]ProducePacketName [10:52:19]name=ofd_packets/00188182 [10:52:19]OFD Sender: To server: pG, [10:52:19]CommunicateWithHost lk.salyk.kg:30040 [10:52:19]ConnectInit lk.salyk.kg [10:52:19]Connected sock=10 [10:52:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 53 8A 07 01 72 C4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D3 00 00 00 F4 03 04 00 E4 83 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 DF 02 00 35 04 06 00 17 97 CB 12 3A A1 6F 25 A0 0D 6C 6D FF AE [10:52:19]Write to MH i2c: 01 00 00 67 42 A9 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 07 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: 01 07 00 67 42 00 00 00 00 00 61 0C 1D [10:52:19]RasterBufferAndPrint [10:52:19]line [10:52:19]line [10:52:19]line [10:52:19]line [10:52:19]line [10:52:19]written 0, free lines is 3173 [10:52:19]MH_Cut [10:52:19]Write to MH i2c: D1 01 00 6E 42 01 82 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: D1 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: D1 01 00 [10:52:19]MH_I2C_Read... [10:52:19]Read from MH i2c: D1 01 00 6E 42 00 81 [10:52:19]Write to MH i2c: 01 00 00 6F 42 B1 [10:52:19]Write i2c OK [10:52:19]MH_I2C_Read... [10:52:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 12 3D 47 00 7F 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 39 36 35 33 34 30 10 04 04 00 16 DF 02 00 F4 03 04 00 D2 2D 17 67 B6 04 01 00 00 66 78 DD 27 E8 66 5F 58 [10:52:19]CommunicateWithHost err = 0 [10:52:19]CheckOFDResponse [10:52:19]1017 (14) - 77093643461234 [10:52:19]1041 (16) - 0000000000965340 [10:52:19]1040 (4) - 188182 [10:52:19]1012 (4) - 22.10.2024 04:45 [10:52:19]1206 (1) - 0 [10:52:19]OFD Sender: Remove packet 188182 [10:52:19]ProducePacketName [10:52:19]name=ofd_packets/00188182 [10:52:19]NVStorageDeleteData [10:52:20]OFD Sender: No OFD packet to send [10:52:20]*** Cut start [10:52:20]*** Partial cut [10:52:20]*** CUTSNS_PIN = 1 [10:52:20]*** CUTSNS_PIN = 0 [10:52:21]*** Brake cut motor [10:52:21]Read from MH i2c: 01 [10:52:21]MH_I2C_Read... [10:52:21]*** Stop cut motor [10:52:21]*** Cut end [10:52:21]Read from MH i2c: 01 07 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: 01 07 00 6F 42 00 00 00 00 00 FF 0F C6 [10:52:21]process_action close_receipt done [10:52:21]requested_data is exist [10:52:21]produce_requested_data [10:52:21]requested_item fm.sn is exist - process it [10:52:21]wFMCommunicate request_size=4 [10:52:21]MH_SAM_APDU [10:52:21]CAPDU: 80 11 00 00 [10:52:21]Write to MH i2c: E2 08 00 70 42 80 11 00 00 00 00 00 00 2C [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:21]Read from MH i2c: E2 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 17 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 17 00 70 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [10:52:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:52:21]wFMCommunicate OK [10:52:21]requested_item fd.num is exist - process it [10:52:21]SAM_PROTO_GetFieldsCounters [10:52:21]wFMCommunicate request_size=4 [10:52:21]MH_SAM_APDU [10:52:21]CAPDU: 80 13 00 00 [10:52:21]Write to MH i2c: E2 08 00 71 42 80 13 00 00 00 00 00 00 2F [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:21]Read from MH i2c: E2 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 62 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 62 00 71 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [10:52:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D3 00 00 00 5E 04 04 00 D3 00 00 00 57 04 04 00 D4 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:21]wFMCommunicate OK [10:52:21]SAM_PROTO_GetFieldsCounters done [10:52:21]requested_item shift.num is exist - process it [10:52:21]requested_item shift.opened is exist - process it [10:52:21]req_shift_opened [10:52:21]FM_GetShiftState [10:52:21]SAM_PROTO_GetShiftState [10:52:21]wFMCommunicate request_size=4 [10:52:21]MH_SAM_APDU [10:52:21]CAPDU: 80 13 01 00 [10:52:21]Write to MH i2c: E2 08 00 72 42 80 13 01 00 00 00 00 00 31 [10:52:21]Write i2c OK [10:52:21]MH_I2C_Read... [10:52:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:21]Read from MH i2c: E2 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 0E 00 [10:52:21]MH_I2C_Read... [10:52:21]Read from MH i2c: E2 0E 00 72 42 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [10:52:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:52:21]wFMCommunicate OK [10:52:21]SAM_PROTO_GetShiftState done [10:52:21]FM_GetShiftState done [10:52:21]req_shift_opened done [10:52:21]requested_item shift.open_date is exist - process it [10:52:21]req_shift_open_date [10:52:21]req_shift_open_date done [10:52:21]produce_requested_data done [10:52:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188182,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:52:21]process_action_free close_receipt [10:52:21]json_value_free [10:52:21]json_value_free done [10:52:21]process_json_proto returns [10:52:21]Send response to host [10:52:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188182,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:52:21]free response buf [10:52:21]execute_script done [10:52:21]execute_script returns [10:52:21]free content buf [10:52:21]Sock 8.Close socket [10:52:21]Sock 8.Thread stoped [10:52:25]OFD Sender: No OFD packet to send [10:52:30]OFD Sender: No OFD packet to send [10:52:35]OFD Sender: No OFD packet to send [10:52:40]OFD Sender: No OFD packet to send [10:52:45]OFD Sender: No OFD packet to send [10:52:50]OFD Sender: No OFD packet to send [10:52:55]OFD Sender: No OFD packet to send [10:53:00]OFD Sender: No OFD packet to send [10:53:05]OFD Sender: No OFD packet to send [10:53:10]OFD Sender: No OFD packet to send [10:53:13]accept exits with 9 [10:53:13]New connection [10:53:13]New thread 3067055460 created [10:53:13]Thread 3067198820 joined [10:53:13]Waiting for new connection... [10:53:13] Sock 9.Parse request [10:53:13]Sock 9.Check first char [10:53:13]Sock 9.First char is OK [10:53:13]request: POST /json_proto HTTP/1.0 [10:53:13]Method: POST [10:53:13]URL: /json_proto [10:53:13]Method is POST - this is cgi request [10:53:13]url: /json_proto [10:53:13]query_string will be loaded in cgi processing [10:53:13]execute_cgi json_proto POST (null) [10:53:13]execute_cgi path=json_proto method=POST [10:53:13]POST find Content-Length [10:53:13]Host: 172.17.42.131:8080 [10:53:13]Content-Length: 766 [10:53:13]Content-Type: application/json [10:53:13] [10:53:13]POST finish read [10:53:13]Found Content-Length = 766 [10:53:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:13]execute_script... [10:53: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)210234", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:53:13]POST & json_proto [10:53:13]process_json_proto [10:53:13]json parsed OK: [10:53:13]protocol is kg_v1.0 [10:53:13]action value=close_receipt [10:53:13]process_action close_receipt [10:53:13]cmd_close_receipt [10:53:13]MH_GetDate [10:53:13]Write to MH i2c: F0 00 00 73 42 A4 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: F0 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: F0 09 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: F0 09 00 73 42 00 1C 84 17 67 A0 18 CA 66 B3 [10:53:13]GetLastDocTimeStamp 1729594340 [10:53:13]current date 1729594396 [10:53:13]FM_GetShiftState [10:53:13]SAM_PROTO_GetShiftState [10:53:13]wFMCommunicate request_size=4 [10:53:13]MH_SAM_APDU [10:53:13]CAPDU: 80 13 01 00 [10:53:13]Write to MH i2c: E2 08 00 74 42 80 13 01 00 00 00 00 00 33 [10:53:13]Write i2c OK [10:53:13]MH_I2C_Read... [10:53:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:13]Read from MH i2c: E2 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0E 00 [10:53:13]MH_I2C_Read... [10:53:13]Read from MH i2c: E2 0E 00 74 42 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 28 [10:53:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:53:13]wFMCommunicate OK [10:53:13]SAM_PROTO_GetShiftState done [10:53:13]FM_GetShiftState done [10:53:13]opened in 1729556094 [10:53:13]opened+sec_in_day 1729642494 [10:53:13]quantity*price = 30038 [10:53:13]sum+1 = 30039 [10:53:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 212 22.10.2024 10:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188183 ФПД: 59289760676977 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188183&fm=59289760676977&tin=02508201610067®Number=0000000000100030&sum=30038 [10:53:14]StoreToDocumentArchive [10:53:14]shift 461 fd 188183 [10:53:14]save to /storage/0461/doc_00188183 [10:53:14]save last doc name /storage/0461/doc_00188183 to /storage/kkm_last_doc_name [10:53:14]save OK [10:53:14]Clear old archive folders... [10:53:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:53:14]tlvbuf is 01B91FC0 [10:53:14]SAM_PROTO_ClearQueue [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 09 00 00 [10:53:14]Write to MH i2c: E2 08 00 81 42 80 09 00 00 00 00 00 00 35 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 81 42 00 90 00 37 [10:53:14]RAPDU: 90 00 [10:53:14]wFMCommunicate OK [10:53:14]SAM_PROTO_ClearQueue done [10:53:14]KKMCreateOFDPacket [10:53:14]OFDProtocolAddRootSTLVToBuf [10:53:14]FM_MakeSignedData [10:53:14]FM_MakeSignedData [10:53:14]SAM_PROTO_SignData [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 0D 01 02 [10:53:14]Write to MH i2c: E2 08 00 82 42 80 0D 01 02 00 00 00 00 3D [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 82 42 00 90 00 38 [10:53:14]RAPDU: 90 00 [10:53:14]wFMCommunicate OK [10:53:14]wFMCommunicate request_size=255 [10:53:14]MH_SAM_APDU [10:53: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 1C 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DF 02 00 35 04 06 00 35 [10:53:14]Write to MH i2c: E2 02 01 83 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 1C 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DF 02 00 35 04 06 00 35 00 00 DD [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 83 42 00 90 00 39 [10:53:14]RAPDU: 90 00 [10:53:14]wFMCommunicate OK [10:53:14]wFMCommunicate request_size=10 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 0D 02 02 05 EC 79 1F BC 71 [10:53:14]Write to MH i2c: E2 0D 00 84 42 80 0D 02 02 05 00 EC 79 1F BC 71 00 00 FB [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:53:14]Read from MH i2c: E2 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 [10:53:14]MH_I2C_Read... [10:53:14]Read from MH i2c: E2 03 00 84 42 00 90 00 3A [10:53:14]RAPDU: 90 00 [10:53:14]wFMCommunicate OK [10:53:14]wFMCommunicate request_size=4 [10:53:14]MH_SAM_APDU [10:53:14]CAPDU: 80 0D 03 02 [10:53:14]Write to MH i2c: E2 08 00 85 42 80 0D 03 02 00 00 00 00 42 [10:53:14]Write i2c OK [10:53:14]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0B 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 0B 00 85 42 00 79 D7 E3 F1 4C 21 41 1F 90 00 34 [10:53:15]RAPDU: 79 D7 E3 F1 4C 21 41 1F 90 00 [10:53:15]wFMCommunicate OK [10:53:15]SAM_PROTO_SignData done [10:53:15]FM_MakeSignedData done [10:53:15]CreateOFDProtocolMessage [10:53:15]wFMCommunicate request_size=4 [10:53:15]MH_SAM_APDU [10:53:15]CAPDU: 80 11 00 00 [10:53:15]Write to MH i2c: E2 08 00 86 42 80 11 00 00 00 00 00 00 42 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:15]Read from MH i2c: E2 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: E2 17 00 86 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [10:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:53:15]wFMCommunicate OK [10:53:15]CreateOFDProtocolMessage done [10:53:15]OFDSenderStorePacket 188183 [10:53:15]StoreOFDPacket docnum=188183 [10:53:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3A CE 07 01 E0 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 1C 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DF 02 00 35 04 06 00 35 EC 79 1F BC 71 79 D7 E3 F1 4C 21 41 1F [10:53:15]CheckFolder [10:53:15]dirname=/storage/ofd_packets [10:53:15]CheckFolder done [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00188183 [10:53:15]NVStorageSaveData ofd_packets/00188183 [10:53:15]File name is /storage/ofd_packets/00188183 [10:53:15]Write 301 bytes [10:53:15]NVStorageSaveData done [10:53:15]OFDSenderStorePacket done [10:53:15]KKMCreateOFDPacket done [10:53:15]NVStorageSaveData kkm_last_timestamp [10:53:15]File name is /storage/kkm_last_timestamp [10:53:15]Write 4 bytes [10:53:15]NVStorageSaveData done [10:53:15]ExternCall_PrintAddStr [10:53:15]wPrintStart [10:53:15]Write to MH i2c: 01 00 00 87 42 C9 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 87 42 00 00 00 00 00 FF 0F DE [10:53:15]RasterBufferAndPrint [10:53:15]line Счет N : (1)210234 [10:53:15]line ИНН: 02508201610067 [10:53:15]line Контрольно-Кассовый Чек [10:53:15]line ПРОДАЖА [10:53:15]line ТРК (МРК, ГНК) : 22 [10:53:15]line Товар: 2710124130 [10:53:15]line Аи-92-К-3 [10:53:15]line 4.490 * 66.90 [10:53:15]line = 300.38 [10:53:15]line НДС 12% НСП 1% [10:53:15]line > о реализуемом товаре [10:53:15]line ИТОГО: 300.38 [10:53:15]line НСП 1% : 2.66 [10:53:15]line НДС 12% : 31.90 [10:53:15]line Наличными: 0.00 [10:53:15]line Безнал.: 300.38 [10:53:15]line Место: АЗС № 86 "Партнер Нефть" [10:53:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:53:15]line СНО: Общий режим [10:53:15]line Чек 212 22.10.2024 10:53 [10:53:15]line Смена: 461 ФФД: 1.0 [10:53:15]line ЗНМ: 0300000155 [10:53:15]line РНМ: 0000000000100030 [10:53:15]line Версия ККМ: 001 [10:53:15]line Платежная система: Mbank [10:53:15]line ФМ: 0000000000965340 [10:53:15]line ФД: 188183 [10:53:15]line ФПД: 59289760676977 [10:53:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188183&fm=59289760676977&tin=02508201610067®Number=0000000000100030&sum=30038 [10:53:15]written 0, free lines is 4095 [10:53:15]OFD Sender: Processing packet 188183 [packets to send 1062, broken 1061] [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00188183 [10:53:15]OFD Sender: To server: pG, [10:53:15]CommunicateWithHost lk.salyk.kg:30040 [10:53:15]ConnectInit lk.salyk.kg [10:53:15]Connected sock=10 [10:53:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3A CE 07 01 E0 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D4 00 00 00 F4 03 04 00 1C 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DF 02 00 35 04 06 00 35 EC 79 1F BC 71 79 D7 E3 F1 4C 21 41 1F [10:53:15]Write to MH i2c: 01 00 00 B0 42 F2 [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: 01 07 00 B0 42 00 00 00 00 00 93 0C 98 [10:53:15]RasterBufferAndPrint [10:53:15]line [10:53:15]line [10:53:15]line [10:53:15]line [10:53:15]line [10:53:15]written 0, free lines is 3223 [10:53:15]MH_Cut [10:53:15]Write to MH i2c: D1 01 00 B7 42 01 CB [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: D1 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: D1 01 00 [10:53:15]MH_I2C_Read... [10:53:15]Read from MH i2c: D1 01 00 B7 42 00 CA [10:53:15]Write to MH i2c: 01 00 00 B8 42 FA [10:53:15]Write i2c OK [10:53:15]MH_I2C_Read... [10:53:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 77 5D 47 00 D5 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 DF 02 00 F4 03 04 00 09 2E 17 67 B6 04 01 00 00 D7 FD 24 FD D9 1A F4 07 [10:53:15]CommunicateWithHost err = 0 [10:53:15]CheckOFDResponse [10:53:15]1017 (14) - 77093643461234 [10:53:15]1041 (16) - 0000000000965340 [10:53:15]1040 (4) - 188183 [10:53:15]1012 (4) - 22.10.2024 04:46 [10:53:15]1206 (1) - 0 [10:53:15]OFD Sender: Remove packet 188183 [10:53:15]ProducePacketName [10:53:15]name=ofd_packets/00188183 [10:53:15]NVStorageDeleteData [10:53:16]OFD Sender: No OFD packet to send [10:53:16]*** Cut start [10:53:16]*** Partial cut [10:53:16]*** CUTSNS_PIN = 1 [10:53:16]*** CUTSNS_PIN = 0 [10:53:17]*** Brake cut motor [10:53:17]Read from MH i2c: 01 [10:53:17]MH_I2C_Read... [10:53:17]*** Stop cut motor [10:53:17]*** Cut end [10:53:17]Read from MH i2c: 01 07 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: 01 07 00 B8 42 00 00 00 00 00 FF 0F 0F [10:53:17]process_action close_receipt done [10:53:17]requested_data is exist [10:53:17]produce_requested_data [10:53:17]requested_item fm.sn is exist - process it [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 11 00 00 [10:53:17]Write to MH i2c: E2 08 00 B9 42 80 11 00 00 00 00 00 00 75 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 17 00 B9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [10:53:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:53:17]wFMCommunicate OK [10:53:17]requested_item fd.num is exist - process it [10:53:17]SAM_PROTO_GetFieldsCounters [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 00 00 [10:53:17]Write to MH i2c: E2 08 00 BA 42 80 13 00 00 00 00 00 00 78 [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 62 00 BA 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [10:53:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D4 00 00 00 5E 04 04 00 D4 00 00 00 57 04 04 00 D5 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetFieldsCounters done [10:53:17]requested_item shift.num is exist - process it [10:53:17]requested_item shift.opened is exist - process it [10:53:17]req_shift_opened [10:53:17]FM_GetShiftState [10:53:17]SAM_PROTO_GetShiftState [10:53:17]wFMCommunicate request_size=4 [10:53:17]MH_SAM_APDU [10:53:17]CAPDU: 80 13 01 00 [10:53:17]Write to MH i2c: E2 08 00 BB 42 80 13 01 00 00 00 00 00 7A [10:53:17]Write i2c OK [10:53:17]MH_I2C_Read... [10:53:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:53:17]Read from MH i2c: E2 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 [10:53:17]MH_I2C_Read... [10:53:17]Read from MH i2c: E2 0E 00 BB 42 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6F [10:53:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:53:17]wFMCommunicate OK [10:53:17]SAM_PROTO_GetShiftState done [10:53:17]FM_GetShiftState done [10:53:17]req_shift_opened done [10:53:17]requested_item shift.open_date is exist - process it [10:53:17]req_shift_open_date [10:53:17]req_shift_open_date done [10:53:17]produce_requested_data done [10:53:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188183,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:53:17]process_action_free close_receipt [10:53:17]json_value_free [10:53:17]json_value_free done [10:53:17]process_json_proto returns [10:53:17]Send response to host [10:53:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188183,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:53:17]free response buf [10:53:17]execute_script done [10:53:17]execute_script returns [10:53:17]free content buf [10:53:17]Sock 9.Close socket [10:53:17]Sock 9.Thread stoped [10:53:21]OFD Sender: No OFD packet to send [10:53:26]OFD Sender: No OFD packet to send [10:53:31]OFD Sender: No OFD packet to send [10:53:36]OFD Sender: No OFD packet to send [10:53:41]OFD Sender: No OFD packet to send [10:53:46]OFD Sender: No OFD packet to send [10:53:51]OFD Sender: No OFD packet to send [10:53:56]OFD Sender: No OFD packet to send [10:54:01]OFD Sender: No OFD packet to send [10:54:06]OFD Sender: No OFD packet to send [10:54:11]OFD Sender: No OFD packet to send [10:54:16]OFD Sender: No OFD packet to send [10:54:21]OFD Sender: No OFD packet to send [10:54:26]OFD Sender: No OFD packet to send [10:54:31]OFD Sender: No OFD packet to send [10:54:36]OFD Sender: No OFD packet to send [10:54:41]OFD Sender: No OFD packet to send [10:54:46]OFD Sender: No OFD packet to send [10:54:51]accept exits with 8 [10:54:51]New connection [10:54:51]New thread 3067198820 created [10:54:51]Thread 3067055460 joined [10:54:51]Waiting for new connection... [10:54:51] Sock 8.Parse request [10:54:51]Sock 8.Check first char [10:54:51]Sock 8.First char is OK [10:54:51]request: POST /json_proto HTTP/1.0 [10:54:51]Method: POST [10:54:51]URL: /json_proto [10:54:51]Method is POST - this is cgi request [10:54:51]url: /json_proto [10:54:51]query_string will be loaded in cgi processing [10:54:51]execute_cgi json_proto POST (null) [10:54:51]execute_cgi path=json_proto method=POST [10:54:51]POST find Content-Length [10:54:51]Host: 172.17.42.131:8080 [10:54:51]Content-Length: 677 [10:54:51]Content-Type: application/json [10:54:51] [10:54:51]POST finish read [10:54:51]Found Content-Length = 677 [10:54:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:51]execute_script... [10:54: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)210236", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:54:51]POST & json_proto [10:54:51]process_json_proto [10:54:51]json parsed OK: [10:54:51]protocol is kg_v1.0 [10:54:51]action value=close_receipt [10:54:51]process_action close_receipt [10:54:51]cmd_close_receipt [10:54:51]MH_GetDate [10:54:51]Write to MH i2c: F0 00 00 BC 42 ED [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: F0 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: F0 09 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: F0 09 00 BC 42 00 7E 84 17 67 A0 18 CA 66 5E [10:54:51]GetLastDocTimeStamp 1729594396 [10:54:51]current date 1729594494 [10:54:51]FM_GetShiftState [10:54:51]SAM_PROTO_GetShiftState [10:54:51]wFMCommunicate request_size=4 [10:54:51]MH_SAM_APDU [10:54:51]CAPDU: 80 13 01 00 [10:54:51]Write to MH i2c: E2 08 00 BD 42 80 13 01 00 00 00 00 00 7C [10:54:51]Write i2c OK [10:54:51]MH_I2C_Read... [10:54:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:51]Read from MH i2c: E2 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 [10:54:51]MH_I2C_Read... [10:54:51]Read from MH i2c: E2 0E 00 BD 42 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [10:54:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:54:51]wFMCommunicate OK [10:54:51]SAM_PROTO_GetShiftState done [10:54:51]FM_GetShiftState done [10:54:51]opened in 1729556094 [10:54:51]opened+sec_in_day 1729642494 [10:54:51]quantity*price = 50041 [10:54:51]sum+1 = 50042 [10:54:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 213 22.10.2024 10:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188184 ФПД: 186487692067540 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188184&fm=186487692067540&tin=02508201610067®Number=0000000000100030&sum=50000 [10:54:52]StoreToDocumentArchive [10:54:52]shift 461 fd 188184 [10:54:52]save to /storage/0461/doc_00188184 [10:54:52]save last doc name /storage/0461/doc_00188184 to /storage/kkm_last_doc_name [10:54:52]save OK [10:54:52]Clear old archive folders... [10:54:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:54:52]tlvbuf is B6F94540 [10:54:52]SAM_PROTO_ClearQueue [10:54:52]wFMCommunicate request_size=4 [10:54:52]MH_SAM_APDU [10:54:52]CAPDU: 80 09 00 00 [10:54:52]Write to MH i2c: E2 08 00 CA 42 80 09 00 00 00 00 00 00 7E [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:54:52]Read from MH i2c: E2 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 03 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 03 00 CA 42 00 90 00 80 [10:54:52]RAPDU: 90 00 [10:54:52]wFMCommunicate OK [10:54:52]SAM_PROTO_ClearQueue done [10:54:52]KKMCreateOFDPacket [10:54:52]OFDProtocolAddRootSTLVToBuf [10:54:52]FM_MakeSignedData [10:54:52]FM_MakeSignedData [10:54:52]SAM_PROTO_SignData [10:54:52]wFMCommunicate request_size=4 [10:54:52]MH_SAM_APDU [10:54:52]CAPDU: 80 0D 01 02 [10:54:52]Write to MH i2c: E2 08 00 CB 42 80 0D 01 02 00 00 00 00 86 [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:54:52]Read from MH i2c: E2 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 03 00 [10:54:52]MH_I2C_Read... [10:54:52]Read from MH i2c: E2 03 00 CB 42 00 90 00 81 [10:54:52]RAPDU: 90 00 [10:54:52]wFMCommunicate OK [10:54:52]wFMCommunicate request_size=255 [10:54:52]MH_SAM_APDU [10:54: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DF 02 00 35 04 06 00 A9 [10:54:52]Write to MH i2c: E2 02 01 CC 42 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DF 02 00 35 04 06 00 A9 00 00 BE [10:54:52]Write i2c OK [10:54:52]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 03 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 03 00 CC 42 00 90 00 82 [10:54:53]RAPDU: 90 00 [10:54:53]wFMCommunicate OK [10:54:53]wFMCommunicate request_size=10 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 0D 02 02 05 9C 0C A4 02 D4 [10:54:53]Write to MH i2c: E2 0D 00 CD 42 80 0D 02 02 05 00 9C 0C A4 02 D4 00 00 B5 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 03 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 03 00 CD 42 00 90 00 83 [10:54:53]RAPDU: 90 00 [10:54:53]wFMCommunicate OK [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 0D 03 02 [10:54:53]Write to MH i2c: E2 08 00 CE 42 80 0D 03 02 00 00 00 00 8B [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 0B 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 0B 00 CE 42 00 00 ED 94 45 E3 20 AA AE 90 00 AD [10:54:53]RAPDU: 00 ED 94 45 E3 20 AA AE 90 00 [10:54:53]wFMCommunicate OK [10:54:53]SAM_PROTO_SignData done [10:54:53]FM_MakeSignedData done [10:54:53]CreateOFDProtocolMessage [10:54:53]wFMCommunicate request_size=4 [10:54:53]MH_SAM_APDU [10:54:53]CAPDU: 80 11 00 00 [10:54:53]Write to MH i2c: E2 08 00 CF 42 80 11 00 00 00 00 00 00 8B [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:53]Read from MH i2c: E2 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 17 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: E2 17 00 CF 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [10:54:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:54:53]wFMCommunicate OK [10:54:53]CreateOFDProtocolMessage done [10:54:53]OFDSenderStorePacket 188184 [10:54:53]StoreOFDPacket docnum=188184 [10:54:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 E8 07 01 D8 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DF 02 00 35 04 06 00 A9 9C 0C A4 02 D4 00 ED 94 45 E3 20 AA AE [10:54:53]CheckFolder [10:54:53]dirname=/storage/ofd_packets [10:54:53]CheckFolder done [10:54:53]ProducePacketName [10:54:53]name=ofd_packets/00188184 [10:54:53]NVStorageSaveData ofd_packets/00188184 [10:54:53]File name is /storage/ofd_packets/00188184 [10:54:53]Write 301 bytes [10:54:53]NVStorageSaveData done [10:54:53]OFDSenderStorePacket done [10:54:53]KKMCreateOFDPacket done [10:54:53]NVStorageSaveData kkm_last_timestamp [10:54:53]File name is /storage/kkm_last_timestamp [10:54:53]Write 4 bytes [10:54:53]NVStorageSaveData done [10:54:53]ExternCall_PrintAddStr [10:54:53]wPrintStart [10:54:53]Write to MH i2c: 01 00 00 D0 42 12 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 07 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 07 00 D0 42 00 00 00 00 00 FF 0F 27 [10:54:53]RasterBufferAndPrint [10:54:53]line Счет N : (1)210236 [10:54:53]line ИНН: 02508201610067 [10:54:53]line Контрольно-Кассовый Чек [10:54:53]line ПРОДАЖА [10:54:53]line ТРК (МРК, ГНК) : 32 [10:54:53]line Товар: 2710124130 [10:54:53]line Аи-92-К-3 [10:54:53]line 7.480 * 66.90 [10:54:53]line = 500.41 [10:54:53]line НДС 12% НСП 1% [10:54:53]line > о реализуемом товаре [10:54:53]line ОКРУГЛЕНИЕ: -0.41 [10:54:53]line ИТОГО: 500.00 [10:54:53]line Внесено: 500.00 [10:54:53]line СДАЧА: 0.00 [10:54:53]line НСП 1% : 4.43 [10:54:53]line НДС 12% : 53.14 [10:54:53]line Наличными: 500.00 [10:54:53]line Безнал.: 0.00 [10:54:53]line Место: АЗС № 86 "Партнер Нефть" [10:54:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:54:53]line СНО: Общий режим [10:54:53]line Чек 213 22.10.2024 10:54 [10:54:53]line Смена: 461 ФФД: 1.0 [10:54:53]line ЗНМ: 0300000155 [10:54:53]line РНМ: 0000000000100030 [10:54:53]line Версия ККМ: 001 [10:54:53]line ФМ: 0000000000965340 [10:54:53]line ФД: 188184 [10:54:53]line ФПД: 186487692067540 [10:54:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188184&fm=186487692067540&tin=02508201610067®Number=0000000000100030&sum=50000 [10:54:53]written 0, free lines is 4095 [10:54:53]OFD Sender: Processing packet 188184 [packets to send 1062, broken 1061] [10:54:53]ProducePacketName [10:54:53]name=ofd_packets/00188184 [10:54:53]OFD Sender: To server: pG, [10:54:53]CommunicateWithHost lk.salyk.kg:30040 [10:54:53]ConnectInit lk.salyk.kg [10:54:53]Connected sock=9 [10:54:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C1 E8 07 01 D8 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D5 00 00 00 F4 03 04 00 7E 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DF 02 00 35 04 06 00 A9 9C 0C A4 02 D4 00 ED 94 45 E3 20 AA AE [10:54:53]Write to MH i2c: 01 00 00 FB 42 3D [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 07 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: 01 07 00 FB 42 00 00 00 00 00 65 0C B5 [10:54:53]RasterBufferAndPrint [10:54:53]line [10:54:53]line [10:54:53]line [10:54:53]line [10:54:53]line [10:54:53]written 0, free lines is 3177 [10:54:53]MH_Cut [10:54:53]Write to MH i2c: D1 01 00 02 43 01 17 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: D1 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: D1 01 00 [10:54:53]MH_I2C_Read... [10:54:53]Read from MH i2c: D1 01 00 02 43 00 16 [10:54:53]Write to MH i2c: 01 00 00 03 43 46 [10:54:53]Write i2c OK [10:54:53]MH_I2C_Read... [10:54:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE F5 47 00 9E 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 DF 02 00 F4 03 04 00 6C 2E 17 67 B6 04 01 00 00 A4 78 FD 13 9A 3A EF 72 [10:54:54]CommunicateWithHost err = 0 [10:54:54]CheckOFDResponse [10:54:54]1017 (14) - 77093643461234 [10:54:54]1041 (16) - 0000000000965340 [10:54:54]1040 (4) - 188184 [10:54:54]1012 (4) - 22.10.2024 04:47 [10:54:54]1206 (1) - 0 [10:54:54]OFD Sender: Remove packet 188184 [10:54:54]ProducePacketName [10:54:54]name=ofd_packets/00188184 [10:54:54]NVStorageDeleteData [10:54:54]OFD Sender: No OFD packet to send [10:54:55]*** Cut start [10:54:55]*** Partial cut [10:54:55]*** CUTSNS_PIN = 1 [10:54:55]*** CUTSNS_PIN = 0 [10:54:55]*** Brake cut motor [10:54:55]Read from MH i2c: 01 [10:54:55]MH_I2C_Read... [10:54:55]*** Stop cut motor [10:54:55]*** Cut end [10:54:55]Read from MH i2c: 01 07 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: 01 07 00 03 43 00 00 00 00 00 FF 0F 5B [10:54:55]process_action close_receipt done [10:54:55]requested_data is exist [10:54:55]produce_requested_data [10:54:55]requested_item fm.sn is exist - process it [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 11 00 00 [10:54:55]Write to MH i2c: E2 08 00 04 43 80 11 00 00 00 00 00 00 C1 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 17 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 17 00 04 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [10:54:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:54:55]wFMCommunicate OK [10:54:55]requested_item fd.num is exist - process it [10:54:55]SAM_PROTO_GetFieldsCounters [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 13 00 00 [10:54:55]Write to MH i2c: E2 08 00 05 43 80 13 00 00 00 00 00 00 C4 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 62 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 62 00 05 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [10:54:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D5 00 00 00 5E 04 04 00 D5 00 00 00 57 04 04 00 D6 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_GetFieldsCounters done [10:54:55]requested_item shift.num is exist - process it [10:54:55]requested_item shift.opened is exist - process it [10:54:55]req_shift_opened [10:54:55]FM_GetShiftState [10:54:55]SAM_PROTO_GetShiftState [10:54:55]wFMCommunicate request_size=4 [10:54:55]MH_SAM_APDU [10:54:55]CAPDU: 80 13 01 00 [10:54:55]Write to MH i2c: E2 08 00 06 43 80 13 01 00 00 00 00 00 C6 [10:54:55]Write i2c OK [10:54:55]MH_I2C_Read... [10:54:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:54:55]Read from MH i2c: E2 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 [10:54:55]MH_I2C_Read... [10:54:55]Read from MH i2c: E2 0E 00 06 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [10:54:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:54:55]wFMCommunicate OK [10:54:55]SAM_PROTO_GetShiftState done [10:54:55]FM_GetShiftState done [10:54:55]req_shift_opened done [10:54:55]requested_item shift.open_date is exist - process it [10:54:55]req_shift_open_date [10:54:55]req_shift_open_date done [10:54:55]produce_requested_data done [10:54:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188184,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:54:55]process_action_free close_receipt [10:54:55]json_value_free [10:54:55]json_value_free done [10:54:55]process_json_proto returns [10:54:55]Send response to host [10:54:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188184,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:54:55]free response buf [10:54:55]execute_script done [10:54:55]execute_script returns [10:54:55]free content buf [10:54:55]Sock 8.Close socket [10:54:55]Sock 8.Thread stoped [10:54:59]OFD Sender: No OFD packet to send [10:55:04]OFD Sender: No OFD packet to send [10:55:09]OFD Sender: No OFD packet to send [10:55:14]OFD Sender: No OFD packet to send [10:55:19]OFD Sender: No OFD packet to send [10:55:24]OFD Sender: No OFD packet to send [10:55:29]OFD Sender: No OFD packet to send [10:55:34]OFD Sender: No OFD packet to send [10:55:39]OFD Sender: No OFD packet to send [10:55:41]accept exits with 10 [10:55:41]New connection [10:55:41]New thread 3067055460 created [10:55:41]Thread 3067198820 joined [10:55:41]Waiting for new connection... [10:55:41] Sock 10.Parse request [10:55:41]Sock 10.Check first char [10:55:41]Sock 10.First char is OK [10:55:41]request: POST /json_proto HTTP/1.0 [10:55:41]Method: POST [10:55:41]URL: /json_proto [10:55:41]Method is POST - this is cgi request [10:55:41]url: /json_proto [10:55:41]query_string will be loaded in cgi processing [10:55:41]execute_cgi json_proto POST (null) [10:55:41]execute_cgi path=json_proto method=POST [10:55:41]POST find Content-Length [10:55:41]Host: 172.17.42.131:8080 [10:55:41]Content-Length: 754 [10:55:41]Content-Type: application/json [10:55:41] [10:55:41]POST finish read [10:55:41]Found Content-Length = 754 [10:55:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 33.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074712", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:41]execute_script... [10:55: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)210235", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 33.500, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30074712", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:55:41]POST & json_proto [10:55:41]process_json_proto [10:55:41]json parsed OK: [10:55:41]protocol is kg_v1.0 [10:55:41]action value=close_receipt [10:55:41]process_action close_receipt [10:55:41]cmd_close_receipt [10:55:41]MH_GetDate [10:55:41]Write to MH i2c: F0 00 00 07 43 39 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: F0 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: F0 09 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: F0 09 00 07 43 00 B0 84 17 67 A0 18 CA 66 DC [10:55:41]GetLastDocTimeStamp 1729594494 [10:55:41]current date 1729594544 [10:55:41]FM_GetShiftState [10:55:41]SAM_PROTO_GetShiftState [10:55:41]wFMCommunicate request_size=4 [10:55:41]MH_SAM_APDU [10:55:41]CAPDU: 80 13 01 00 [10:55:41]Write to MH i2c: E2 08 00 08 43 80 13 01 00 00 00 00 00 C8 [10:55:41]Write i2c OK [10:55:41]MH_I2C_Read... [10:55:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:41]Read from MH i2c: E2 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: E2 0E 00 [10:55:41]MH_I2C_Read... [10:55:41]Read from MH i2c: E2 0E 00 08 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BD [10:55:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:55:41]wFMCommunicate OK [10:55:41]SAM_PROTO_GetShiftState done [10:55:41]FM_GetShiftState done [10:55:41]opened in 1729556094 [10:55:41]opened+sec_in_day 1729642494 [10:55:41]quantity*price = 0 [10:55:41]sum+1 = 1 [10:55:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 214 22.10.2024 10:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30074712 ФМ: 0000000000965340 ФД: 188185 ФПД: 12892685416388 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188185&fm=12892685416388&tin=02508201610067®Number=0000000000100030&sum=0 [10:55:42]StoreToDocumentArchive [10:55:42]shift 461 fd 188185 [10:55:42]save to /storage/0461/doc_00188185 [10:55:42]save last doc name /storage/0461/doc_00188185 to /storage/kkm_last_doc_name [10:55:42]save OK [10:55:42]Clear old archive folders... [10:55:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:55:42]tlvbuf is 01B993C0 [10:55:42]SAM_PROTO_ClearQueue [10:55:42]wFMCommunicate request_size=4 [10:55:42]MH_SAM_APDU [10:55:42]CAPDU: 80 09 00 00 [10:55:42]Write to MH i2c: E2 08 00 15 43 80 09 00 00 00 00 00 00 CA [10:55:42]Write i2c OK [10:55:42]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 15 43 00 90 00 CC [10:55:43]RAPDU: 90 00 [10:55:43]wFMCommunicate OK [10:55:43]SAM_PROTO_ClearQueue done [10:55:43]KKMCreateOFDPacket [10:55:43]OFDProtocolAddRootSTLVToBuf [10:55:43]FM_MakeSignedData [10:55:43]FM_MakeSignedData [10:55:43]SAM_PROTO_SignData [10:55:43]wFMCommunicate request_size=4 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 0D 01 02 [10:55:43]Write to MH i2c: E2 08 00 16 43 80 0D 01 02 00 00 00 00 D2 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 16 43 00 90 00 CD [10:55:43]RAPDU: 90 00 [10:55:43]wFMCommunicate OK [10:55:43]wFMCommunicate request_size=255 [10:55:43]MH_SAM_APDU [10:55: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 33 FF 03 08 00 03 DC 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 B0 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DF 02 00 35 04 06 00 0B [10:55:43]Write to MH i2c: E2 02 01 17 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DC 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 B0 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DF 02 00 35 04 06 00 0B 00 00 79 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 17 43 00 90 00 CE [10:55:43]RAPDU: 90 00 [10:55:43]wFMCommunicate OK [10:55:43]wFMCommunicate request_size=10 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 0D 02 02 05 B9 CF EF 37 C4 [10:55:43]Write to MH i2c: E2 0D 00 18 43 80 0D 02 02 05 00 B9 CF EF 37 C4 00 00 51 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 03 00 18 43 00 90 00 CF [10:55:43]RAPDU: 90 00 [10:55:43]wFMCommunicate OK [10:55:43]wFMCommunicate request_size=4 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 0D 03 02 [10:55:43]Write to MH i2c: E2 08 00 19 43 80 0D 03 02 00 00 00 00 D7 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 0B 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 0B 00 19 43 00 AD 41 97 71 A6 BB 86 04 90 00 B9 [10:55:43]RAPDU: AD 41 97 71 A6 BB 86 04 90 00 [10:55:43]wFMCommunicate OK [10:55:43]SAM_PROTO_SignData done [10:55:43]FM_MakeSignedData done [10:55:43]CreateOFDProtocolMessage [10:55:43]wFMCommunicate request_size=4 [10:55:43]MH_SAM_APDU [10:55:43]CAPDU: 80 11 00 00 [10:55:43]Write to MH i2c: E2 08 00 1A 43 80 11 00 00 00 00 00 00 D7 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:43]Read from MH i2c: E2 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 17 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: E2 17 00 1A 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [10:55:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:55:43]wFMCommunicate OK [10:55:43]CreateOFDProtocolMessage done [10:55:43]OFDSenderStorePacket 188185 [10:55:43]StoreOFDPacket docnum=188185 [10:55:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 22 07 01 A6 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DC 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 B0 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DF 02 00 35 04 06 00 0B B9 CF EF 37 C4 AD 41 97 71 A6 BB 86 04 [10:55:43]CheckFolder [10:55:43]dirname=/storage/ofd_packets [10:55:43]CheckFolder done [10:55:43]ProducePacketName [10:55:43]name=ofd_packets/00188185 [10:55:43]NVStorageSaveData ofd_packets/00188185 [10:55:43]File name is /storage/ofd_packets/00188185 [10:55:43]Write 301 bytes [10:55:43]NVStorageSaveData done [10:55:43]OFDSenderStorePacket done [10:55:43]KKMCreateOFDPacket done [10:55:43]NVStorageSaveData kkm_last_timestamp [10:55:43]File name is /storage/kkm_last_timestamp [10:55:43]Write 4 bytes [10:55:43]NVStorageSaveData done [10:55:43]ExternCall_PrintAddStr [10:55:43]wPrintStart [10:55:43]Write to MH i2c: 01 00 00 1B 43 5E [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 07 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 07 00 1B 43 00 00 00 00 00 FF 0F 73 [10:55:43]RasterBufferAndPrint [10:55:43]line Счет N : (1)210235 [10:55:43]line ИНН: 02508201610067 [10:55:43]line Контрольно-Кассовый Чек [10:55:43]line ПРОДАЖА [10:55:43]line ТРК (МРК, ГНК) : 42 [10:55:43]line Товар: 2710124130 [10:55:43]line Аи-92-К-3 [10:55:43]line 33.500 * 0.00 [10:55:43]line = 0.00 [10:55:43]line НДС 12% НСП 1% [10:55:43]line > о реализуемом товаре [10:55:43]line ИТОГО: 0.00 [10:55:43]line НСП 1% : 0.00 [10:55:43]line НДС 12% : 0.00 [10:55:43]line Наличными: 0.00 [10:55:43]line Безнал.: 0.00 [10:55:43]line Место: АЗС № 86 "Партнер Нефть" [10:55:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:55:43]line СНО: Общий режим [10:55:43]line Чек 214 22.10.2024 10:55 [10:55:43]line Смена: 461 ФФД: 1.0 [10:55:43]line ЗНМ: 0300000155 [10:55:43]line РНМ: 0000000000100030 [10:55:43]line Версия ККМ: 001 [10:55:43]line Талоны: ТК ГПНА Online [10:55:43]line 30074712 [10:55:43]line ФМ: 0000000000965340 [10:55:43]line ФД: 188185 [10:55:43]line ФПД: 12892685416388 [10:55:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188185&fm=12892685416388&tin=02508201610067®Number=0000000000100030&sum=0 [10:55:43]written 0, free lines is 4095 [10:55:43]OFD Sender: Processing packet 188185 [packets to send 1062, broken 1061] [10:55:43]ProducePacketName [10:55:43]name=ofd_packets/00188185 [10:55:43]OFD Sender: To server: pG, [10:55:43]CommunicateWithHost lk.salyk.kg:30040 [10:55:43]ConnectInit lk.salyk.kg [10:55:43]Connected sock=9 [10:55:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 22 07 01 A6 4D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DC 82 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 00 00 00 F4 03 04 00 B0 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 DF 02 00 35 04 06 00 0B B9 CF EF 37 C4 AD 41 97 71 A6 BB 86 04 [10:55:43]Write to MH i2c: 01 00 00 45 43 88 [10:55:43]Write i2c OK [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 07 00 [10:55:43]MH_I2C_Read... [10:55:43]Read from MH i2c: 01 07 00 45 43 00 00 00 00 00 7A 0C 15 [10:55:43]RasterBufferAndPrint [10:55:43]line [10:55:43]line [10:55:43]line [10:55:43]line [10:55:43]line [10:55:43]written 0, free lines is 3198 [10:55:44]MH_Cut [10:55:44]Write to MH i2c: D1 01 00 4C 43 01 61 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: D1 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: D1 01 00 [10:55:44]MH_I2C_Read... [10:55:44]Read from MH i2c: D1 01 00 4C 43 00 60 [10:55:44]Write to MH i2c: 01 00 00 4D 43 90 [10:55:44]Write i2c OK [10:55:44]MH_I2C_Read... [10:55:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 64 47 00 53 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 39 36 35 33 34 30 10 04 04 00 19 DF 02 00 F4 03 04 00 9E 2E 17 67 B6 04 01 00 00 06 A5 73 14 8E B8 02 B2 [10:55:44]CommunicateWithHost err = 0 [10:55:44]CheckOFDResponse [10:55:44]1017 (14) - 77093643461234 [10:55:44]1041 (16) - 0000000000965340 [10:55:44]1040 (4) - 188185 [10:55:44]1012 (4) - 22.10.2024 04:48 [10:55:44]1206 (1) - 0 [10:55:44]OFD Sender: Remove packet 188185 [10:55:44]ProducePacketName [10:55:44]name=ofd_packets/00188185 [10:55:44]NVStorageDeleteData [10:55:44]OFD Sender: No OFD packet to send [10:55:45]*** Cut start [10:55:45]*** Partial cut [10:55:45]*** CUTSNS_PIN = 1 [10:55:45]*** CUTSNS_PIN = 0 [10:55:45]*** Brake cut motor [10:55:45]Read from MH i2c: 01 [10:55:45]MH_I2C_Read... [10:55:45]*** Stop cut motor [10:55:45]*** Cut end [10:55:45]Read from MH i2c: 01 07 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: 01 07 00 4D 43 00 00 00 00 00 FF 0F A5 [10:55:45]process_action close_receipt done [10:55:45]requested_data is exist [10:55:45]produce_requested_data [10:55:45]requested_item fm.sn is exist - process it [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 11 00 00 [10:55:45]Write to MH i2c: E2 08 00 4E 43 80 11 00 00 00 00 00 00 0B [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 17 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 17 00 4E 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [10:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:55:45]wFMCommunicate OK [10:55:45]requested_item fd.num is exist - process it [10:55:45]SAM_PROTO_GetFieldsCounters [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 13 00 00 [10:55:45]Write to MH i2c: E2 08 00 4F 43 80 13 00 00 00 00 00 00 0E [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:55:45]Read from MH i2c: E2 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 62 00 [10:55:45]MH_I2C_Read... [10:55:45]Read from MH i2c: E2 62 00 4F 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [10:55:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D6 00 00 00 5E 04 04 00 D6 00 00 00 57 04 04 00 D7 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:55:45]wFMCommunicate OK [10:55:45]SAM_PROTO_GetFieldsCounters done [10:55:45]requested_item shift.num is exist - process it [10:55:45]requested_item shift.opened is exist - process it [10:55:45]req_shift_opened [10:55:45]FM_GetShiftState [10:55:45]SAM_PROTO_GetShiftState [10:55:45]wFMCommunicate request_size=4 [10:55:45]MH_SAM_APDU [10:55:45]CAPDU: 80 13 01 00 [10:55:45]Write to MH i2c: E2 08 00 50 43 80 13 01 00 00 00 00 00 10 [10:55:45]Write i2c OK [10:55:45]MH_I2C_Read... [10:55:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:55:46]Read from MH i2c: E2 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 0E 00 [10:55:46]MH_I2C_Read... [10:55:46]Read from MH i2c: E2 0E 00 50 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 05 [10:55:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:55:46]wFMCommunicate OK [10:55:46]SAM_PROTO_GetShiftState done [10:55:46]FM_GetShiftState done [10:55:46]req_shift_opened done [10:55:46]requested_item shift.open_date is exist - process it [10:55:46]req_shift_open_date [10:55:46]req_shift_open_date done [10:55:46]produce_requested_data done [10:55:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188185,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:55:46]process_action_free close_receipt [10:55:46]json_value_free [10:55:46]json_value_free done [10:55:46]process_json_proto returns [10:55:46]Send response to host [10:55:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188185,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:55:46]free response buf [10:55:46]execute_script done [10:55:46]execute_script returns [10:55:46]free content buf [10:55:46]Sock 10.Close socket [10:55:46]Sock 10.Thread stoped [10:55:49]OFD Sender: No OFD packet to send [10:55:54]OFD Sender: No OFD packet to send [10:55:59]OFD Sender: No OFD packet to send [10:56:04]OFD Sender: No OFD packet to send [10:56:09]OFD Sender: No OFD packet to send [10:56:14]OFD Sender: No OFD packet to send [10:56:19]OFD Sender: No OFD packet to send [10:56:22]accept exits with 8 [10:56:22]New connection [10:56:22]New thread 3067198820 created [10:56:22]Thread 3067055460 joined [10:56:22]Waiting for new connection... [10:56:22] Sock 8.Parse request [10:56:22]Sock 8.Check first char [10:56:22]Sock 8.First char is OK [10:56:22]request: POST /json_proto HTTP/1.0 [10:56:22]Method: POST [10:56:22]URL: /json_proto [10:56:22]Method is POST - this is cgi request [10:56:22]url: /json_proto [10:56:22]query_string will be loaded in cgi processing [10:56:22]execute_cgi json_proto POST (null) [10:56:22]execute_cgi path=json_proto method=POST [10:56:22]POST find Content-Length [10:56:22]Host: 172.17.42.131:8080 [10:56:22]Content-Length: 688 [10:56:22]Content-Type: application/json [10:56:22] [10:56:22]POST finish read [10:56:22]Found Content-Length = 688 [10:56:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [10:56:22]execute_script... [10:56: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)210238", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 20.730, "sum" : 1600.36, "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" ] } } [10:56:22]POST & json_proto [10:56:22]process_json_proto [10:56:22]json parsed OK: [10:56:22]protocol is kg_v1.0 [10:56:22]action value=close_receipt [10:56:22]process_action close_receipt [10:56:22]cmd_close_receipt [10:56:22]MH_GetDate [10:56:22]Write to MH i2c: F0 00 00 51 43 83 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: F0 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: F0 09 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: F0 09 00 51 43 00 D9 84 17 67 A0 18 CA 66 4F [10:56:22]GetLastDocTimeStamp 1729594544 [10:56:22]current date 1729594585 [10:56:22]FM_GetShiftState [10:56:22]SAM_PROTO_GetShiftState [10:56:22]wFMCommunicate request_size=4 [10:56:22]MH_SAM_APDU [10:56:22]CAPDU: 80 13 01 00 [10:56:22]Write to MH i2c: E2 08 00 52 43 80 13 01 00 00 00 00 00 12 [10:56:22]Write i2c OK [10:56:22]MH_I2C_Read... [10:56:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:22]Read from MH i2c: E2 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0E 00 [10:56:22]MH_I2C_Read... [10:56:22]Read from MH i2c: E2 0E 00 52 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 07 [10:56:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:56:22]wFMCommunicate OK [10:56:22]SAM_PROTO_GetShiftState done [10:56:22]FM_GetShiftState done [10:56:22]opened in 1729556094 [10:56:22]opened+sec_in_day 1729642494 [10:56:22]quantity*price = 160035 [10:56:22]sum+1 = 160037 [10:56:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.36 ИТОГО: 1600.00 Внесено: 1600.00 СДАЧА: 0.00 НСП 1% : 14.16 НДС 12% : 169.95 Наличными: 1600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 215 22.10.2024 10:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188186 ФПД: 228842011365055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188186&fm=228842011365055&tin=02508201610067®Number=0000000000100030&sum=160000 [10:56:23]StoreToDocumentArchive [10:56:23]shift 461 fd 188186 [10:56:23]save to /storage/0461/doc_00188186 [10:56:23]save last doc name /storage/0461/doc_00188186 to /storage/kkm_last_doc_name [10:56:23]save OK [10:56:23]Clear old archive folders... [10:56:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:56:23]tlvbuf is 01CE48D0 [10:56:23]SAM_PROTO_ClearQueue [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 09 00 00 [10:56:23]Write to MH i2c: E2 08 00 5F 43 80 09 00 00 00 00 00 00 14 [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:23]Read from MH i2c: E2 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 [10:56:23]MH_I2C_Read... [10:56:23]Read from MH i2c: E2 03 00 5F 43 00 90 00 16 [10:56:23]RAPDU: 90 00 [10:56:23]wFMCommunicate OK [10:56:23]SAM_PROTO_ClearQueue done [10:56:23]KKMCreateOFDPacket [10:56:23]OFDProtocolAddRootSTLVToBuf [10:56:23]FM_MakeSignedData [10:56:23]FM_MakeSignedData [10:56:23]SAM_PROTO_SignData [10:56:23]wFMCommunicate request_size=4 [10:56:23]MH_SAM_APDU [10:56:23]CAPDU: 80 0D 01 02 [10:56:23]Write to MH i2c: E2 08 00 60 43 80 0D 01 02 00 00 00 00 1C [10:56:23]Write i2c OK [10:56:23]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 60 43 00 90 00 17 [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]wFMCommunicate request_size=255 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 D7 00 00 00 F4 03 04 00 D9 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DF 02 [10:56:24]Write to MH i2c: E2 02 01 61 43 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 D7 00 00 00 F4 03 04 00 D9 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DF 02 00 00 51 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 61 43 00 90 00 18 [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]wFMCommunicate request_size=16 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D0 21 6E CC 0E BF [10:56:24]Write to MH i2c: E2 13 00 62 43 80 0D 02 02 0B 00 00 35 04 06 00 D0 21 6E CC 0E BF 00 00 6C [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 03 00 62 43 00 90 00 19 [10:56:24]RAPDU: 90 00 [10:56:24]wFMCommunicate OK [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 0D 03 02 [10:56:24]Write to MH i2c: E2 08 00 63 43 80 0D 03 02 00 00 00 00 21 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 0B 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 0B 00 63 43 00 0B 0F 72 CF FF DD 9F 31 90 00 29 [10:56:24]RAPDU: 0B 0F 72 CF FF DD 9F 31 90 00 [10:56:24]wFMCommunicate OK [10:56:24]SAM_PROTO_SignData done [10:56:24]FM_MakeSignedData done [10:56:24]CreateOFDProtocolMessage [10:56:24]wFMCommunicate request_size=4 [10:56:24]MH_SAM_APDU [10:56:24]CAPDU: 80 11 00 00 [10:56:24]Write to MH i2c: E2 08 00 64 43 80 11 00 00 00 00 00 00 21 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:24]Read from MH i2c: E2 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 17 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: E2 17 00 64 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [10:56:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:56:24]wFMCommunicate OK [10:56:24]CreateOFDProtocolMessage done [10:56:24]OFDSenderStorePacket 188186 [10:56:24]StoreOFDPacket docnum=188186 [10:56:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D2 06 0D 01 C6 AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 D7 00 00 00 F4 03 04 00 D9 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DF 02 00 35 04 06 00 D0 21 6E CC 0E BF 0B 0F 72 CF FF DD 9F 31 [10:56:24]CheckFolder [10:56:24]dirname=/storage/ofd_packets [10:56:24]CheckFolder done [10:56:24]ProducePacketName [10:56:24]name=ofd_packets/00188186 [10:56:24]NVStorageSaveData ofd_packets/00188186 [10:56:24]File name is /storage/ofd_packets/00188186 [10:56:24]Write 307 bytes [10:56:24]NVStorageSaveData done [10:56:24]OFDSenderStorePacket done [10:56:24]KKMCreateOFDPacket done [10:56:24]NVStorageSaveData kkm_last_timestamp [10:56:24]File name is /storage/kkm_last_timestamp [10:56:24]Write 4 bytes [10:56:24]NVStorageSaveData done [10:56:24]ExternCall_PrintAddStr [10:56:24]wPrintStart [10:56:24]Write to MH i2c: 01 00 00 65 43 A8 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 65 43 00 00 00 00 00 FF 0F BD [10:56:24]RasterBufferAndPrint [10:56:24]line Счет N : (1)210238 [10:56:24]line ИНН: 02508201610067 [10:56:24]line Контрольно-Кассовый Чек [10:56:24]line ПРОДАЖА [10:56:24]line ТРК (МРК, ГНК) : 11 [10:56:24]line Товар: 2710194210 [10:56:24]line D-ENERGY ДТ-К-5 [10:56:24]line 20.730 * 77.20 [10:56:24]line = 1600.36 [10:56:24]line НДС 12% НСП 1% [10:56:24]line > о реализуемом товаре [10:56:24]line ОКРУГЛЕНИЕ: -0.36 [10:56:24]line ИТОГО: 1600.00 [10:56:24]line Внесено: 1600.00 [10:56:24]line СДАЧА: 0.00 [10:56:24]line НСП 1% : 14.16 [10:56:24]line НДС 12% : 169.95 [10:56:24]line Наличными: 1600.00 [10:56:24]line Безнал.: 0.00 [10:56:24]line Место: АЗС № 86 "Партнер Нефть" [10:56:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:56:24]line СНО: Общий режим [10:56:24]line Чек 215 22.10.2024 10:56 [10:56:24]line Смена: 461 ФФД: 1.0 [10:56:24]line ЗНМ: 0300000155 [10:56:24]line РНМ: 0000000000100030 [10:56:24]line Версия ККМ: 001 [10:56:24]line ФМ: 0000000000965340 [10:56:24]line ФД: 188186 [10:56:24]line ФПД: 228842011365055 [10:56:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188186&fm=228842011365055&tin=02508201610067®Number=0000000000100030&sum=160000 [10:56:24]written 0, free lines is 4095 [10:56:24]OFD Sender: Processing packet 188186 [packets to send 1062, broken 1061] [10:56:24]ProducePacketName [10:56:24]name=ofd_packets/00188186 [10:56:24]OFD Sender: To server: pG, [10:56:24]CommunicateWithHost lk.salyk.kg:30040 [10:56:24]ConnectInit lk.salyk.kg [10:56:24]Connected sock=10 [10:56:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D2 06 0D 01 C6 AA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 FA 50 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 24 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 63 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 D7 00 00 00 F4 03 04 00 D9 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A DF 02 00 35 04 06 00 D0 21 6E CC 0E BF 0B 0F 72 CF FF DD 9F 31 [10:56:24]Write to MH i2c: 01 00 00 90 43 D3 [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: 01 07 00 90 43 00 00 00 00 00 6E 0C 54 [10:56:24]RasterBufferAndPrint [10:56:24]line [10:56:24]line [10:56:24]line [10:56:24]line [10:56:24]line [10:56:24]written 0, free lines is 3185 [10:56:24]MH_Cut [10:56:24]Write to MH i2c: D1 01 00 97 43 01 AC [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: D1 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: D1 01 00 [10:56:24]MH_I2C_Read... [10:56:24]Read from MH i2c: D1 01 00 97 43 00 AB [10:56:24]Write to MH i2c: 01 00 00 98 43 DB [10:56:24]Write i2c OK [10:56:24]MH_I2C_Read... [10:56:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 2A 47 00 8E 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 39 36 35 33 34 30 10 04 04 00 1A DF 02 00 F4 03 04 00 C7 2E 17 67 B6 04 01 00 00 B1 4B DD A8 B1 9D DD 16 [10:56:25]CommunicateWithHost err = 0 [10:56:25]CheckOFDResponse [10:56:25]1017 (14) - 77093643461234 [10:56:25]1041 (16) - 0000000000965340 [10:56:25]1040 (4) - 188186 [10:56:25]1012 (4) - 22.10.2024 04:49 [10:56:25]1206 (1) - 0 [10:56:25]OFD Sender: Remove packet 188186 [10:56:25]ProducePacketName [10:56:25]name=ofd_packets/00188186 [10:56:25]NVStorageDeleteData [10:56:25]OFD Sender: No OFD packet to send [10:56:26]*** Cut start [10:56:26]*** Partial cut [10:56:26]*** CUTSNS_PIN = 1 [10:56:26]*** CUTSNS_PIN = 0 [10:56:26]*** Brake cut motor [10:56:26]Read from MH i2c: 01 [10:56:26]MH_I2C_Read... [10:56:26]*** Stop cut motor [10:56:26]*** Cut end [10:56:26]Read from MH i2c: 01 07 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: 01 07 00 98 43 00 00 00 00 00 FF 0F F0 [10:56:26]process_action close_receipt done [10:56:26]requested_data is exist [10:56:26]produce_requested_data [10:56:26]requested_item fm.sn is exist - process it [10:56:26]wFMCommunicate request_size=4 [10:56:26]MH_SAM_APDU [10:56:26]CAPDU: 80 11 00 00 [10:56:26]Write to MH i2c: E2 08 00 99 43 80 11 00 00 00 00 00 00 56 [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:26]Read from MH i2c: E2 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 17 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 17 00 99 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [10:56:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:56:26]wFMCommunicate OK [10:56:26]requested_item fd.num is exist - process it [10:56:26]SAM_PROTO_GetFieldsCounters [10:56:26]wFMCommunicate request_size=4 [10:56:26]MH_SAM_APDU [10:56:26]CAPDU: 80 13 00 00 [10:56:26]Write to MH i2c: E2 08 00 9A 43 80 13 00 00 00 00 00 00 59 [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:26]Read from MH i2c: E2 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 62 00 [10:56:26]MH_I2C_Read... [10:56:26]Read from MH i2c: E2 62 00 9A 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [10:56:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D7 00 00 00 5E 04 04 00 D7 00 00 00 57 04 04 00 D8 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:26]wFMCommunicate OK [10:56:26]SAM_PROTO_GetFieldsCounters done [10:56:26]requested_item shift.num is exist - process it [10:56:26]requested_item shift.opened is exist - process it [10:56:26]req_shift_opened [10:56:26]FM_GetShiftState [10:56:26]SAM_PROTO_GetShiftState [10:56:26]wFMCommunicate request_size=4 [10:56:26]MH_SAM_APDU [10:56:26]CAPDU: 80 13 01 00 [10:56:26]Write to MH i2c: E2 08 00 9B 43 80 13 01 00 00 00 00 00 5B [10:56:26]Write i2c OK [10:56:26]MH_I2C_Read... [10:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:27]Read from MH i2c: E2 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0E 00 [10:56:27]MH_I2C_Read... [10:56:27]Read from MH i2c: E2 0E 00 9B 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 50 [10:56:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:56:27]wFMCommunicate OK [10:56:27]SAM_PROTO_GetShiftState done [10:56:27]FM_GetShiftState done [10:56:27]req_shift_opened done [10:56:27]requested_item shift.open_date is exist - process it [10:56:27]req_shift_open_date [10:56:27]req_shift_open_date done [10:56:27]produce_requested_data done [10:56:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188186,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:56:27]process_action_free close_receipt [10:56:27]json_value_free [10:56:27]json_value_free done [10:56:27]process_json_proto returns [10:56:27]Send response to host [10:56:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188186,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:56:27]free response buf [10:56:27]execute_script done [10:56:27]execute_script returns [10:56:27]free content buf [10:56:27]Sock 8.Close socket [10:56:27]Sock 8.Thread stoped [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:41]accept exits with 9 [10:56:41]New connection [10:56:41]New thread 3067055460 created [10:56:41]Thread 3067198820 joined [10:56:41]Waiting for new connection... [10:56:41] Sock 9.Parse request [10:56:41]Sock 9.Check first char [10:56:41]Sock 9.First char is OK [10:56:41]request: POST /json_proto HTTP/1.0 [10:56:41]Method: POST [10:56:41]URL: /json_proto [10:56:41]Method is POST - this is cgi request [10:56:41]url: /json_proto [10:56:41]query_string will be loaded in cgi processing [10:56:41]execute_cgi json_proto POST (null) [10:56:41]execute_cgi path=json_proto method=POST [10:56:41]POST find Content-Length [10:56:41]Host: 172.17.42.131:8080 [10:56:41]Content-Length: 751 [10:56:41]Content-Type: application/json [10:56:41] [10:56:41]POST finish read [10:56:41]Found Content-Length = 751 [10:56:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118691", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:41]execute_script... [10:56: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)210239", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118691", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:56:41]POST & json_proto [10:56:41]process_json_proto [10:56:41]json parsed OK: [10:56:41]protocol is kg_v1.0 [10:56:41]action value=close_receipt [10:56:41]process_action close_receipt [10:56:41]cmd_close_receipt [10:56:41]MH_GetDate [10:56:41]Write to MH i2c: F0 00 00 9C 43 CE [10:56:41]Write i2c OK [10:56:41]MH_I2C_Read... [10:56:41]Read from MH i2c: F0 [10:56:41]MH_I2C_Read... [10:56:41]Read from MH i2c: F0 09 00 [10:56:41]MH_I2C_Read... [10:56:41]Read from MH i2c: F0 09 00 9C 43 00 EC 84 17 67 A0 18 CA 66 AD [10:56:41]GetLastDocTimeStamp 1729594585 [10:56:41]current date 1729594604 [10:56:41]FM_GetShiftState [10:56:41]SAM_PROTO_GetShiftState [10:56:41]wFMCommunicate request_size=4 [10:56:41]MH_SAM_APDU [10:56:41]CAPDU: 80 13 01 00 [10:56:41]Write to MH i2c: E2 08 00 9D 43 80 13 01 00 00 00 00 00 5D [10:56:41]Write i2c OK [10:56:41]MH_I2C_Read... [10:56:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:41]Read from MH i2c: E2 [10:56:41]MH_I2C_Read... [10:56:41]Read from MH i2c: E2 0E 00 [10:56:41]MH_I2C_Read... [10:56:41]Read from MH i2c: E2 0E 00 9D 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 52 [10:56:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:56:41]wFMCommunicate OK [10:56:41]SAM_PROTO_GetShiftState done [10:56:41]FM_GetShiftState done [10:56:41]opened in 1729556094 [10:56:41]opened+sec_in_day 1729642494 [10:56:41]quantity*price = 0 [10:56:41]sum+1 = 1 [10:56:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 216 22.10.2024 10:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118691 ФМ: 0000000000965340 ФД: 188187 ФПД: 73222229563011 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188187&fm=73222229563011&tin=02508201610067®Number=0000000000100030&sum=0 [10:56:42]StoreToDocumentArchive [10:56:42]shift 461 fd 188187 [10:56:42]save to /storage/0461/doc_00188187 [10:56:42]save last doc name /storage/0461/doc_00188187 to /storage/kkm_last_doc_name [10:56:42]save OK [10:56:42]Clear old archive folders... [10:56:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [10:56:42]tlvbuf is 01B92470 [10:56:42]SAM_PROTO_ClearQueue [10:56:42]wFMCommunicate request_size=4 [10:56:42]MH_SAM_APDU [10:56:42]CAPDU: 80 09 00 00 [10:56:42]Write to MH i2c: E2 08 00 AA 43 80 09 00 00 00 00 00 00 5F [10:56:42]Write i2c OK [10:56:42]MH_I2C_Read... [10:56:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:56:42]Read from MH i2c: E2 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 AA 43 00 90 00 61 [10:56:42]RAPDU: 90 00 [10:56:42]wFMCommunicate OK [10:56:42]SAM_PROTO_ClearQueue done [10:56:42]KKMCreateOFDPacket [10:56:42]OFDProtocolAddRootSTLVToBuf [10:56:42]FM_MakeSignedData [10:56:42]FM_MakeSignedData [10:56:42]SAM_PROTO_SignData [10:56:42]wFMCommunicate request_size=4 [10:56:42]MH_SAM_APDU [10:56:42]CAPDU: 80 0D 01 02 [10:56:42]Write to MH i2c: E2 08 00 AB 43 80 0D 01 02 00 00 00 00 67 [10:56:42]Write i2c OK [10:56:42]MH_I2C_Read... [10:56:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:56:42]Read from MH i2c: E2 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 AB 43 00 90 00 62 [10:56:42]RAPDU: 90 00 [10:56:42]wFMCommunicate OK [10:56:42]wFMCommunicate request_size=255 [10:56:42]MH_SAM_APDU [10:56:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DF 02 00 35 04 06 00 42 98 60 FB [10:56:42]Write to MH i2c: E2 02 01 AC 43 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DF 02 00 35 04 06 00 42 98 60 FB 00 00 4B [10:56:42]Write i2c OK [10:56:42]MH_I2C_Read... [10:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:42]Read from MH i2c: E2 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 AC 43 00 90 00 63 [10:56:42]RAPDU: 90 00 [10:56:42]wFMCommunicate OK [10:56:42]wFMCommunicate request_size=7 [10:56:42]MH_SAM_APDU [10:56:42]CAPDU: 80 0D 02 02 02 96 83 [10:56:42]Write to MH i2c: E2 0A 00 AD 43 80 0D 02 02 02 00 96 83 00 00 87 [10:56:42]Write i2c OK [10:56:42]MH_I2C_Read... [10:56:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:56:42]Read from MH i2c: E2 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 03 00 AD 43 00 90 00 64 [10:56:42]RAPDU: 90 00 [10:56:42]wFMCommunicate OK [10:56:42]wFMCommunicate request_size=4 [10:56:42]MH_SAM_APDU [10:56:42]CAPDU: 80 0D 03 02 [10:56:42]Write to MH i2c: E2 08 00 AE 43 80 0D 03 02 00 00 00 00 6C [10:56:42]Write i2c OK [10:56:42]MH_I2C_Read... [10:56:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:56:42]Read from MH i2c: E2 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 0B 00 [10:56:42]MH_I2C_Read... [10:56:42]Read from MH i2c: E2 0B 00 AE 43 00 EC 66 46 24 B5 3A 67 18 90 00 97 [10:56:42]RAPDU: EC 66 46 24 B5 3A 67 18 90 00 [10:56:42]wFMCommunicate OK [10:56:42]SAM_PROTO_SignData done [10:56:42]FM_MakeSignedData done [10:56:42]CreateOFDProtocolMessage [10:56:42]wFMCommunicate request_size=4 [10:56:42]MH_SAM_APDU [10:56:42]CAPDU: 80 11 00 00 [10:56:42]Write to MH i2c: E2 08 00 AF 43 80 11 00 00 00 00 00 00 6C [10:56:42]Write i2c OK [10:56:42]MH_I2C_Read... [10:56:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:43]Read from MH i2c: E2 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 17 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: E2 17 00 AF 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [10:56:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:56:43]wFMCommunicate OK [10:56:43]CreateOFDProtocolMessage done [10:56:43]OFDSenderStorePacket 188187 [10:56:43]StoreOFDPacket docnum=188187 [10:56:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 44 7F 04 01 47 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DF 02 00 35 04 06 00 42 98 60 FB 96 83 EC 66 46 24 B5 3A 67 18 [10:56:43]CheckFolder [10:56:43]dirname=/storage/ofd_packets [10:56:43]CheckFolder done [10:56:43]ProducePacketName [10:56:43]name=ofd_packets/00188187 [10:56:43]NVStorageSaveData ofd_packets/00188187 [10:56:43]File name is /storage/ofd_packets/00188187 [10:56:43]Write 298 bytes [10:56:43]NVStorageSaveData done [10:56:43]OFDSenderStorePacket done [10:56:43]KKMCreateOFDPacket done [10:56:43]NVStorageSaveData kkm_last_timestamp [10:56:43]File name is /storage/kkm_last_timestamp [10:56:43]Write 4 bytes [10:56:43]NVStorageSaveData done [10:56:43]ExternCall_PrintAddStr [10:56:43]wPrintStart [10:56:43]Write to MH i2c: 01 00 00 B0 43 F3 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: 01 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: 01 07 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: 01 07 00 B0 43 00 00 00 00 00 FF 0F 08 [10:56:43]RasterBufferAndPrint [10:56:43]line Счет N : (1)210239 [10:56:43]line ИНН: 02508201610067 [10:56:43]line Контрольно-Кассовый Чек [10:56:43]line ПРОДАЖА [10:56:43]line ТРК (МРК, ГНК) : 51 [10:56:43]line Товар: 2710194210 [10:56:43]line ДТ-К-5 [10:56:43]line 40.000 * 0.00 [10:56:43]line = 0.00 [10:56:43]line НДС 12% НСП 1% [10:56:43]line > о реализуемом товаре [10:56:43]line ИТОГО: 0.00 [10:56:43]line НСП 1% : 0.00 [10:56:43]line НДС 12% : 0.00 [10:56:43]line Наличными: 0.00 [10:56:43]line Безнал.: 0.00 [10:56:43]line Место: АЗС № 86 "Партнер Нефть" [10:56:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:56:43]line СНО: Общий режим [10:56:43]line Чек 216 22.10.2024 10:56 [10:56:43]line Смена: 461 ФФД: 1.0 [10:56:43]line ЗНМ: 0300000155 [10:56:43]line РНМ: 0000000000100030 [10:56:43]line Версия ККМ: 001 [10:56:43]line Талоны: ТК ГПНА Online [10:56:43]line 30118691 [10:56:43]line ФМ: 0000000000965340 [10:56:43]line ФД: 188187 [10:56:43]line ФПД: 73222229563011 [10:56:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105644&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188187&fm=73222229563011&tin=02508201610067®Number=0000000000100030&sum=0 [10:56:43]written 0, free lines is 4095 [10:56:43]OFD Sender: Processing packet 188187 [packets to send 1062, broken 1061] [10:56:43]ProducePacketName [10:56:43]name=ofd_packets/00188187 [10:56:43]OFD Sender: To server: pG, [10:56:43]CommunicateWithHost lk.salyk.kg:30040 [10:56:43]ConnectInit lk.salyk.kg [10:56:43]Write to MH i2c: 01 00 00 DA 43 1D [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: 01 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: 01 07 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: 01 07 00 DA 43 00 00 00 00 00 83 0C B3 [10:56:43]RasterBufferAndPrint [10:56:43]line [10:56:43]line [10:56:43]line [10:56:43]line [10:56:43]line [10:56:43]written 0, free lines is 3206 [10:56:43]MH_Cut [10:56:43]Write to MH i2c: D1 01 00 E1 43 01 F6 [10:56:43]Connected sock=11 [10:56:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 44 7F 04 01 47 7E 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D8 00 00 00 F4 03 04 00 EC 84 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DF 02 00 35 04 06 00 42 98 60 FB 96 83 EC 66 46 24 B5 3A 67 18 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: D1 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: D1 01 00 [10:56:43]MH_I2C_Read... [10:56:43]Read from MH i2c: D1 01 00 E1 43 00 F5 [10:56:43]Write to MH i2c: 01 00 00 E2 43 25 [10:56:43]Write i2c OK [10:56:43]MH_I2C_Read... [10:56:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D E6 47 00 83 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B DF 02 00 F4 03 04 00 D9 2E 17 67 B6 04 01 00 00 D8 68 12 0C 99 E6 D7 3B [10:56:43]CommunicateWithHost err = 0 [10:56:43]CheckOFDResponse [10:56:43]1017 (14) - 77093643461234 [10:56:43]1041 (16) - 0000000000965340 [10:56:43]1040 (4) - 188187 [10:56:43]1012 (4) - 22.10.2024 04:49 [10:56:43]1206 (1) - 0 [10:56:43]OFD Sender: Remove packet 188187 [10:56:43]ProducePacketName [10:56:43]name=ofd_packets/00188187 [10:56:43]NVStorageDeleteData [10:56:44]OFD Sender: No OFD packet to send [10:56:44]*** Cut start [10:56:44]*** Partial cut [10:56:44]*** CUTSNS_PIN = 1 [10:56:44]*** CUTSNS_PIN = 0 [10:56:44]*** Brake cut motor [10:56:45]Read from MH i2c: 01 [10:56:45]MH_I2C_Read... [10:56:45]*** Stop cut motor [10:56:45]*** Cut end [10:56:45]Read from MH i2c: 01 07 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: 01 07 00 E2 43 00 00 00 00 00 FF 0F 3A [10:56:45]process_action close_receipt done [10:56:45]requested_data is exist [10:56:45]produce_requested_data [10:56:45]requested_item fm.sn is exist - process it [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 11 00 00 [10:56:45]Write to MH i2c: E2 08 00 E3 43 80 11 00 00 00 00 00 00 A0 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 17 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 17 00 E3 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [10:56:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:56:45]wFMCommunicate OK [10:56:45]requested_item fd.num is exist - process it [10:56:45]SAM_PROTO_GetFieldsCounters [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 13 00 00 [10:56:45]Write to MH i2c: E2 08 00 E4 43 80 13 00 00 00 00 00 00 A3 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 62 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 62 00 E4 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 FC [10:56:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D8 00 00 00 5E 04 04 00 D8 00 00 00 57 04 04 00 D9 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:56:45]wFMCommunicate OK [10:56:45]SAM_PROTO_GetFieldsCounters done [10:56:45]requested_item shift.num is exist - process it [10:56:45]requested_item shift.opened is exist - process it [10:56:45]req_shift_opened [10:56:45]FM_GetShiftState [10:56:45]SAM_PROTO_GetShiftState [10:56:45]wFMCommunicate request_size=4 [10:56:45]MH_SAM_APDU [10:56:45]CAPDU: 80 13 01 00 [10:56:45]Write to MH i2c: E2 08 00 E5 43 80 13 01 00 00 00 00 00 A5 [10:56:45]Write i2c OK [10:56:45]MH_I2C_Read... [10:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:56:45]Read from MH i2c: E2 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0E 00 [10:56:45]MH_I2C_Read... [10:56:45]Read from MH i2c: E2 0E 00 E5 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9A [10:56:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:56:45]wFMCommunicate OK [10:56:45]SAM_PROTO_GetShiftState done [10:56:45]FM_GetShiftState done [10:56:45]req_shift_opened done [10:56:45]requested_item shift.open_date is exist - process it [10:56:45]req_shift_open_date [10:56:45]req_shift_open_date done [10:56:45]produce_requested_data done [10:56:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188187,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:56:45]process_action_free close_receipt [10:56:45]json_value_free [10:56:45]json_value_free done [10:56:45]process_json_proto returns [10:56:45]Send response to host [10:56:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188187,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:56:45]free response buf [10:56:45]execute_script done [10:56:45]execute_script returns [10:56:45]free content buf [10:56:45]Sock 9.Close socket [10:56:45]Sock 9.Thread stoped [10:56:49]OFD Sender: No OFD packet to send [10:56:54]OFD Sender: No OFD packet to send [10:56:59]OFD Sender: No OFD packet to send [10:57:04]OFD Sender: No OFD packet to send [10:57:09]OFD Sender: No OFD packet to send [10:57:14]OFD Sender: No OFD packet to send [10:57:19]OFD Sender: No OFD packet to send [10:57:24]OFD Sender: No OFD packet to send [10:57:29]OFD Sender: No OFD packet to send [10:57:34]OFD Sender: No OFD packet to send [10:57:39]OFD Sender: No OFD packet to send [10:57:44]OFD Sender: No OFD packet to send [10:57:49]OFD Sender: No OFD packet to send [10:57:54]OFD Sender: No OFD packet to send [10:57:59]OFD Sender: No OFD packet to send [10:58:04]OFD Sender: No OFD packet to send [10:58:09]OFD Sender: No OFD packet to send [10:58:14]OFD Sender: No OFD packet to send [10:58:19]OFD Sender: No OFD packet to send [10:58:24]OFD Sender: No OFD packet to send [10:58:29]OFD Sender: No OFD packet to send [10:58:34]OFD Sender: No OFD packet to send [10:58:39]OFD Sender: No OFD packet to send [10:58:44]accept exits with 8 [10:58:44]New connection [10:58:44]New thread 3067198820 created [10:58:44]Thread 3067055460 joined [10:58:44]Waiting for new connection... [10:58:44] Sock 8.Parse request [10:58:44]Sock 8.Check first char [10:58:44]Sock 8.First char is OK [10:58:44]request: POST /json_proto HTTP/1.0 [10:58:44]Method: POST [10:58:44]URL: /json_proto [10:58:44]Method is POST - this is cgi request [10:58:44]url: /json_proto [10:58:44]query_string will be loaded in cgi processing [10:58:44]execute_cgi json_proto POST (null) [10:58:44]execute_cgi path=json_proto method=POST [10:58:44]POST find Content-Length [10:58:44]Host: 172.17.42.131:8080 [10:58:44]Content-Length: 682 [10:58:44]Content-Type: application/json [10:58:44] [10:58:44]POST finish read [10:58:44]Found Content-Length = 682 [10:58:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.190, "sum" : 1150.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:44]execute_script... [10:58:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210240", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 17.190, "sum" : 1150.01, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1150.00, "total" : 1150.00, "payments": [ { "type": 0, "sum" : 1150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:58:44]POST & json_proto [10:58:44]process_json_proto [10:58:44]json parsed OK: [10:58:44]protocol is kg_v1.0 [10:58:44]action value=close_receipt [10:58:44]process_action close_receipt [10:58:44]cmd_close_receipt [10:58:44]MH_GetDate [10:58:44]Write to MH i2c: F0 00 00 E6 43 18 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: F0 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: F0 09 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: F0 09 00 E6 43 00 67 85 17 67 A0 18 CA 66 73 [10:58:44]GetLastDocTimeStamp 1729594604 [10:58:44]current date 1729594727 [10:58:44]FM_GetShiftState [10:58:44]SAM_PROTO_GetShiftState [10:58:44]wFMCommunicate request_size=4 [10:58:44]MH_SAM_APDU [10:58:44]CAPDU: 80 13 01 00 [10:58:44]Write to MH i2c: E2 08 00 E7 43 80 13 01 00 00 00 00 00 A7 [10:58:44]Write i2c OK [10:58:44]MH_I2C_Read... [10:58:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:44]Read from MH i2c: E2 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 0E 00 [10:58:44]MH_I2C_Read... [10:58:44]Read from MH i2c: E2 0E 00 E7 43 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9C [10:58:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:58:44]wFMCommunicate OK [10:58:44]SAM_PROTO_GetShiftState done [10:58:44]FM_GetShiftState done [10:58:44]opened in 1729556094 [10:58:44]opened+sec_in_day 1729642494 [10:58:44]quantity*price = 115001 [10:58:44]sum+1 = 115002 [10:58:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.01 ИТОГО: 1150.00 Внесено: 1150.00 СДАЧА: 0.00 НСП 1% : 10.18 НДС 12% : 122.12 Наличными: 1150.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 217 22.10.2024 10:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188188 ФПД: 246841578136893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188188&fm=246841578136893&tin=02508201610067®Number=0000000000100030&sum=115000 [10:58:45]StoreToDocumentArchive [10:58:45]shift 461 fd 188188 [10:58:45]save to /storage/0461/doc_00188188 [10:58:45]save last doc name /storage/0461/doc_00188188 to /storage/kkm_last_doc_name [10:58:45]save OK [10:58:45]Clear old archive folders... [10:58:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:58:45]tlvbuf is B6F91750 [10:58:45]SAM_PROTO_ClearQueue [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 09 00 00 [10:58:45]Write to MH i2c: E2 08 00 F4 43 80 09 00 00 00 00 00 00 A9 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 F4 43 00 90 00 AB [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_ClearQueue done [10:58:45]KKMCreateOFDPacket [10:58:45]OFDProtocolAddRootSTLVToBuf [10:58:45]FM_MakeSignedData [10:58:45]FM_MakeSignedData [10:58:45]SAM_PROTO_SignData [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 01 02 [10:58:45]Write to MH i2c: E2 08 00 F5 43 80 0D 01 02 00 00 00 00 B1 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 F5 43 00 90 00 AC [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=255 [10:58:45]MH_SAM_APDU [10:58: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 33 FF 03 08 00 03 26 43 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 67 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DF 02 00 35 04 06 00 E0 [10:58:45]Write to MH i2c: E2 02 01 F6 43 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 43 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 67 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DF 02 00 35 04 06 00 E0 00 00 01 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 F6 43 00 90 00 AD [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=10 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 02 02 05 80 48 94 A5 3D [10:58:45]Write to MH i2c: E2 0D 00 F7 43 80 0D 02 02 05 00 80 48 94 A5 3D 00 00 FC [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 03 00 F7 43 00 90 00 AE [10:58:45]RAPDU: 90 00 [10:58:45]wFMCommunicate OK [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 0D 03 02 [10:58:45]Write to MH i2c: E2 08 00 F8 43 80 0D 03 02 00 00 00 00 B6 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0B 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 0B 00 F8 43 00 2F AC C3 79 5C 9D AC EB 90 00 5E [10:58:45]RAPDU: 2F AC C3 79 5C 9D AC EB 90 00 [10:58:45]wFMCommunicate OK [10:58:45]SAM_PROTO_SignData done [10:58:45]FM_MakeSignedData done [10:58:45]CreateOFDProtocolMessage [10:58:45]wFMCommunicate request_size=4 [10:58:45]MH_SAM_APDU [10:58:45]CAPDU: 80 11 00 00 [10:58:45]Write to MH i2c: E2 08 00 F9 43 80 11 00 00 00 00 00 00 B6 [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:45]Read from MH i2c: E2 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: E2 17 00 F9 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 04 [10:58:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:58:45]wFMCommunicate OK [10:58:45]CreateOFDProtocolMessage done [10:58:45]OFDSenderStorePacket 188188 [10:58:45]StoreOFDPacket docnum=188188 [10:58:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 E7 07 01 7D 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 43 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 67 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DF 02 00 35 04 06 00 E0 80 48 94 A5 3D 2F AC C3 79 5C 9D AC EB [10:58:45]CheckFolder [10:58:45]dirname=/storage/ofd_packets [10:58:45]CheckFolder done [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00188188 [10:58:45]NVStorageSaveData ofd_packets/00188188 [10:58:45]File name is /storage/ofd_packets/00188188 [10:58:45]Write 301 bytes [10:58:45]NVStorageSaveData done [10:58:45]OFDSenderStorePacket done [10:58:45]KKMCreateOFDPacket done [10:58:45]NVStorageSaveData kkm_last_timestamp [10:58:45]File name is /storage/kkm_last_timestamp [10:58:45]Write 4 bytes [10:58:45]NVStorageSaveData done [10:58:45]ExternCall_PrintAddStr [10:58:45]wPrintStart [10:58:45]Write to MH i2c: 01 00 00 FA 43 3D [10:58:45]Write i2c OK [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 [10:58:45]MH_I2C_Read... [10:58:45]Read from MH i2c: 01 07 00 FA 43 00 00 00 00 00 FF 0F 52 [10:58:45]RasterBufferAndPrint [10:58:45]line Счет N : (1)210240 [10:58:45]line ИНН: 02508201610067 [10:58:45]line Контрольно-Кассовый Чек [10:58:45]line ПРОДАЖА [10:58:45]line ТРК (МРК, ГНК) : 22 [10:58:45]line Товар: 2710124130 [10:58:45]line Аи-92-К-3 [10:58:45]line 17.190 * 66.90 [10:58:45]line = 1150.01 [10:58:45]line НДС 12% НСП 1% [10:58:45]line > о реализуемом товаре [10:58:45]line ОКРУГЛЕНИЕ: -0.01 [10:58:45]line ИТОГО: 1150.00 [10:58:45]line Внесено: 1150.00 [10:58:45]line СДАЧА: 0.00 [10:58:45]line НСП 1% : 10.18 [10:58:45]line НДС 12% : 122.12 [10:58:45]line Наличными: 1150.00 [10:58:45]line Безнал.: 0.00 [10:58:45]line Место: АЗС № 86 "Партнер Нефть" [10:58:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:58:45]line СНО: Общий режим [10:58:45]line Чек 217 22.10.2024 10:58 [10:58:45]line Смена: 461 ФФД: 1.0 [10:58:45]line ЗНМ: 0300000155 [10:58:45]line РНМ: 0000000000100030 [10:58:45]line Версия ККМ: 001 [10:58:45]line ФМ: 0000000000965340 [10:58:45]line ФД: 188188 [10:58:45]line ФПД: 246841578136893 [10:58:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188188&fm=246841578136893&tin=02508201610067®Number=0000000000100030&sum=115000 [10:58:45]written 0, free lines is 4095 [10:58:45]OFD Sender: Processing packet 188188 [packets to send 1062, broken 1061] [10:58:45]ProducePacketName [10:58:45]name=ofd_packets/00188188 [10:58:45]OFD Sender: To server: pG, [10:58:45]CommunicateWithHost lk.salyk.kg:30040 [10:58:45]ConnectInit lk.salyk.kg [10:58:46]Connected sock=10 [10:58:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 E7 07 01 7D 4B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 26 43 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 39 C1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 C1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 2F 00 00 00 00 07 04 06 00 38 C1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D9 00 00 00 F4 03 04 00 67 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DF 02 00 35 04 06 00 E0 80 48 94 A5 3D 2F AC C3 79 5C 9D AC EB [10:58:46]Write to MH i2c: 01 00 00 25 44 69 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: 01 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: 01 07 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: 01 07 00 25 44 00 00 00 00 00 6A 0C E6 [10:58:46]RasterBufferAndPrint [10:58:46]line [10:58:46]line [10:58:46]line [10:58:46]line [10:58:46]line [10:58:46]written 0, free lines is 3181 [10:58:46]MH_Cut [10:58:46]Write to MH i2c: D1 01 00 2C 44 01 42 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: D1 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: D1 01 00 [10:58:46]MH_I2C_Read... [10:58:46]Read from MH i2c: D1 01 00 2C 44 00 41 [10:58:46]Write to MH i2c: 01 00 00 2D 44 71 [10:58:46]Write i2c OK [10:58:46]MH_I2C_Read... [10:58:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 51 30 47 00 A4 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C DF 02 00 F4 03 04 00 54 2F 17 67 B6 04 01 00 00 51 6E F0 04 5C 97 00 50 [10:58:46]CommunicateWithHost err = 0 [10:58:46]CheckOFDResponse [10:58:46]1017 (14) - 77093643461234 [10:58:46]1041 (16) - 0000000000965340 [10:58:46]1040 (4) - 188188 [10:58:46]1012 (4) - 22.10.2024 04:51 [10:58:46]1206 (1) - 0 [10:58:46]OFD Sender: Remove packet 188188 [10:58:46]ProducePacketName [10:58:46]name=ofd_packets/00188188 [10:58:46]NVStorageDeleteData [10:58:46]OFD Sender: No OFD packet to send [10:58:47]*** Cut start [10:58:47]*** Partial cut [10:58:47]*** CUTSNS_PIN = 1 [10:58:47]*** CUTSNS_PIN = 0 [10:58:47]*** Brake cut motor [10:58:48]Read from MH i2c: 01 [10:58:48]MH_I2C_Read... [10:58:48]*** Stop cut motor [10:58:48]*** Cut end [10:58:48]Read from MH i2c: 01 07 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: 01 07 00 2D 44 00 00 00 00 00 FF 0F 86 [10:58:48]process_action close_receipt done [10:58:48]requested_data is exist [10:58:48]produce_requested_data [10:58:48]requested_item fm.sn is exist - process it [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 11 00 00 [10:58:48]Write to MH i2c: E2 08 00 2E 44 80 11 00 00 00 00 00 00 EC [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 17 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 17 00 2E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [10:58:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:58:48]wFMCommunicate OK [10:58:48]requested_item fd.num is exist - process it [10:58:48]SAM_PROTO_GetFieldsCounters [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 13 00 00 [10:58:48]Write to MH i2c: E2 08 00 2F 44 80 13 00 00 00 00 00 00 EF [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 62 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 62 00 2F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [10:58:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D9 00 00 00 5E 04 04 00 D9 00 00 00 57 04 04 00 DA 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:58:48]wFMCommunicate OK [10:58:48]SAM_PROTO_GetFieldsCounters done [10:58:48]requested_item shift.num is exist - process it [10:58:48]requested_item shift.opened is exist - process it [10:58:48]req_shift_opened [10:58:48]FM_GetShiftState [10:58:48]SAM_PROTO_GetShiftState [10:58:48]wFMCommunicate request_size=4 [10:58:48]MH_SAM_APDU [10:58:48]CAPDU: 80 13 01 00 [10:58:48]Write to MH i2c: E2 08 00 30 44 80 13 01 00 00 00 00 00 F1 [10:58:48]Write i2c OK [10:58:48]MH_I2C_Read... [10:58:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:58:48]Read from MH i2c: E2 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 0E 00 [10:58:48]MH_I2C_Read... [10:58:48]Read from MH i2c: E2 0E 00 30 44 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E6 [10:58:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:58:48]wFMCommunicate OK [10:58:48]SAM_PROTO_GetShiftState done [10:58:48]FM_GetShiftState done [10:58:48]req_shift_opened done [10:58:48]requested_item shift.open_date is exist - process it [10:58:48]req_shift_open_date [10:58:48]req_shift_open_date done [10:58:48]produce_requested_data done [10:58:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188188,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:58:48]process_action_free close_receipt [10:58:48]json_value_free [10:58:48]json_value_free done [10:58:48]process_json_proto returns [10:58:48]Send response to host [10:58:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188188,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:58:48]free response buf [10:58:48]execute_script done [10:58:48]execute_script returns [10:58:48]free content buf [10:58:48]Sock 8.Close socket [10:58:48]Sock 8.Thread stoped [10:58:51]OFD Sender: No OFD packet to send [10:58:56]OFD Sender: No OFD packet to send [10:59:01]OFD Sender: No OFD packet to send [10:59:03]accept exits with 9 [10:59:03]New connection [10:59:03]New thread 3067055460 created [10:59:03]Thread 3067198820 joined [10:59:03]Waiting for new connection... [10:59:03] Sock 9.Parse request [10:59:03]Sock 9.Check first char [10:59:03]Sock 9.First char is OK [10:59:03]request: POST /json_proto HTTP/1.0 [10:59:03]Method: POST [10:59:03]URL: /json_proto [10:59:03]Method is POST - this is cgi request [10:59:03]url: /json_proto [10:59:03]query_string will be loaded in cgi processing [10:59:03]execute_cgi json_proto POST (null) [10:59:03]execute_cgi path=json_proto method=POST [10:59:03]POST find Content-Length [10:59:03]Host: 172.17.42.131:8080 [10:59:03]Content-Length: 678 [10:59:03]Content-Type: application/json [10:59:03] [10:59:03]POST finish read [10:59:03]Found Content-Length = 678 [10:59:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:03]execute_script... [10:59: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)210241", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:59:03]POST & json_proto [10:59:03]process_json_proto [10:59:03]json parsed OK: [10:59:03]protocol is kg_v1.0 [10:59:03]action value=close_receipt [10:59:03]process_action close_receipt [10:59:03]cmd_close_receipt [10:59:03]MH_GetDate [10:59:03]Write to MH i2c: F0 00 00 31 44 64 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: F0 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: F0 09 00 [10:59:03]MH_I2C_Read... [10:59:03]Read from MH i2c: F0 09 00 31 44 00 7B 85 17 67 A0 18 CA 66 D3 [10:59:03]GetLastDocTimeStamp 1729594727 [10:59:03]current date 1729594747 [10:59:03]FM_GetShiftState [10:59:03]SAM_PROTO_GetShiftState [10:59:03]wFMCommunicate request_size=4 [10:59:03]MH_SAM_APDU [10:59:03]CAPDU: 80 13 01 00 [10:59:03]Write to MH i2c: E2 08 00 32 44 80 13 01 00 00 00 00 00 F3 [10:59:03]Write i2c OK [10:59:03]MH_I2C_Read... [10:59:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:04]Read from MH i2c: E2 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 0E 00 [10:59:04]MH_I2C_Read... [10:59:04]Read from MH i2c: E2 0E 00 32 44 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E8 [10:59:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:59:04]wFMCommunicate OK [10:59:04]SAM_PROTO_GetShiftState done [10:59:04]FM_GetShiftState done [10:59:04]opened in 1729556094 [10:59:04]opened+sec_in_day 1729642494 [10:59:04]quantity*price = 80061 [10:59:04]sum+1 = 80063 [10:59:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 218 22.10.2024 10:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188189 ФПД: 244832715899726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105907&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188189&fm=244832715899726&tin=02508201610067®Number=0000000000100030&sum=80000 [10:59:05]StoreToDocumentArchive [10:59:05]shift 461 fd 188189 [10:59:05]save to /storage/0461/doc_00188189 [10:59:05]save last doc name /storage/0461/doc_00188189 to /storage/kkm_last_doc_name [10:59:05]save OK [10:59:05]Clear old archive folders... [10:59:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:59:05]tlvbuf is 01C63E20 [10:59:05]SAM_PROTO_ClearQueue [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 09 00 00 [10:59:05]Write to MH i2c: E2 08 00 3F 44 80 09 00 00 00 00 00 00 F5 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 3F 44 00 90 00 F7 [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]SAM_PROTO_ClearQueue done [10:59:05]KKMCreateOFDPacket [10:59:05]OFDProtocolAddRootSTLVToBuf [10:59:05]FM_MakeSignedData [10:59:05]FM_MakeSignedData [10:59:05]SAM_PROTO_SignData [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 01 02 [10:59:05]Write to MH i2c: E2 08 00 40 44 80 0D 01 02 00 00 00 00 FD [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 40 44 00 90 00 F8 [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]wFMCommunicate request_size=255 [10:59:05]MH_SAM_APDU [10:59: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 7B 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DF 02 00 35 04 06 00 DE [10:59:05]Write to MH i2c: E2 02 01 41 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 7B 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DF 02 00 35 04 06 00 DE 00 00 DF [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 41 44 00 90 00 F9 [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]wFMCommunicate request_size=10 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 02 02 05 AC 8F 0F 83 4E [10:59:05]Write to MH i2c: E2 0D 00 42 44 80 0D 02 02 05 00 AC 8F 0F 83 4E 00 00 25 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 03 00 42 44 00 90 00 FA [10:59:05]RAPDU: 90 00 [10:59:05]wFMCommunicate OK [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 0D 03 02 [10:59:05]Write to MH i2c: E2 08 00 43 44 80 0D 03 02 00 00 00 00 02 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0B 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 0B 00 43 44 00 E1 BB CA AA 5A 4F 4F 1A 90 00 25 [10:59:05]RAPDU: E1 BB CA AA 5A 4F 4F 1A 90 00 [10:59:05]wFMCommunicate OK [10:59:05]SAM_PROTO_SignData done [10:59:05]FM_MakeSignedData done [10:59:05]CreateOFDProtocolMessage [10:59:05]wFMCommunicate request_size=4 [10:59:05]MH_SAM_APDU [10:59:05]CAPDU: 80 11 00 00 [10:59:05]Write to MH i2c: E2 08 00 44 44 80 11 00 00 00 00 00 00 02 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:05]Read from MH i2c: E2 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 17 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: E2 17 00 44 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [10:59:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:59:05]wFMCommunicate OK [10:59:05]CreateOFDProtocolMessage done [10:59:05]OFDSenderStorePacket 188189 [10:59:05]StoreOFDPacket docnum=188189 [10:59:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9D C3 07 01 8A 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 7B 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DF 02 00 35 04 06 00 DE AC 8F 0F 83 4E E1 BB CA AA 5A 4F 4F 1A [10:59:05]CheckFolder [10:59:05]dirname=/storage/ofd_packets [10:59:05]CheckFolder done [10:59:05]ProducePacketName [10:59:05]name=ofd_packets/00188189 [10:59:05]NVStorageSaveData ofd_packets/00188189 [10:59:05]File name is /storage/ofd_packets/00188189 [10:59:05]Write 301 bytes [10:59:05]NVStorageSaveData done [10:59:05]OFDSenderStorePacket done [10:59:05]KKMCreateOFDPacket done [10:59:05]NVStorageSaveData kkm_last_timestamp [10:59:05]File name is /storage/kkm_last_timestamp [10:59:05]Write 4 bytes [10:59:05]NVStorageSaveData done [10:59:05]ExternCall_PrintAddStr [10:59:05]wPrintStart [10:59:05]Write to MH i2c: 01 00 00 45 44 89 [10:59:05]Write i2c OK [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 07 00 [10:59:05]MH_I2C_Read... [10:59:05]Read from MH i2c: 01 07 00 45 44 00 00 00 00 00 FF 0F 9E [10:59:05]RasterBufferAndPrint [10:59:05]line Счет N : (1)210241 [10:59:05]line ИНН: 02508201610067 [10:59:05]line Контрольно-Кассовый Чек [10:59:05]line ПРОДАЖА [10:59:05]line ТРК (МРК, ГНК) : 13 [10:59:05]line Товар: 2710124500 [10:59:05]line Аи-95-К-3 [10:59:05]line 10.790 * 74.20 [10:59:05]line = 800.62 [10:59:05]line НДС 12% НСП 1% [10:59:05]line > о реализуемом товаре [10:59:05]line ОКРУГЛЕНИЕ: -0.62 [10:59:05]line ИТОГО: 800.00 [10:59:05]line Внесено: 800.00 [10:59:05]line СДАЧА: 0.00 [10:59:05]line НСП 1% : 7.08 [10:59:05]line НДС 12% : 85.02 [10:59:05]line Наличными: 800.00 [10:59:05]line Безнал.: 0.00 [10:59:05]line Место: АЗС № 86 "Партнер Нефть" [10:59:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [10:59:05]line СНО: Общий режим [10:59:05]line Чек 218 22.10.2024 10:59 [10:59:05]line Смена: 461 ФФД: 1.0 [10:59:05]line ЗНМ: 0300000155 [10:59:05]line РНМ: 0000000000100030 [10:59:05]line Версия ККМ: 001 [10:59:05]line ФМ: 0000000000965340 [10:59:05]line ФД: 188189 [10:59:05]line ФПД: 244832715899726 [10:59:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T105907&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188189&fm=244832715899726&tin=02508201610067®Number=0000000000100030&sum=80000 [10:59:05]OFD Sender: Processing packet 188189 [packets to send 1062, broken 1061] [10:59:05]ProducePacketName [10:59:05]name=ofd_packets/00188189 [10:59:05]OFD Sender: To server: pG, [10:59:05]CommunicateWithHost lk.salyk.kg:30040 [10:59:05]ConnectInit lk.salyk.kg [10:59:05]written 0, free lines is 4095 [10:59:06]Connected sock=10 [10:59:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9D C3 07 01 8A 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 00 00 00 F4 03 04 00 7B 85 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DF 02 00 35 04 06 00 DE AC 8F 0F 83 4E E1 BB CA AA 5A 4F 4F 1A [10:59:06]Write to MH i2c: 01 00 00 70 44 B4 [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: 01 07 00 70 44 00 00 00 00 00 71 0C 38 [10:59:06]RasterBufferAndPrint [10:59:06]line [10:59:06]line [10:59:06]line [10:59:06]line [10:59:06]line [10:59:06]written 0, free lines is 3187 [10:59:06]MH_Cut [10:59:06]Write to MH i2c: D1 01 00 77 44 01 8D [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: D1 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: D1 01 00 [10:59:06]MH_I2C_Read... [10:59:06]Read from MH i2c: D1 01 00 77 44 00 8C [10:59:06]Write to MH i2c: 01 00 00 78 44 BC [10:59:06]Write i2c OK [10:59:06]MH_I2C_Read... [10:59:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AA 10 47 00 35 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D DF 02 00 F4 03 04 00 68 2F 17 67 B6 04 01 00 00 A0 E2 AF CA 4E FA C9 18 [10:59:06]CommunicateWithHost err = 0 [10:59:06]CheckOFDResponse [10:59:06]1017 (14) - 77093643461234 [10:59:06]1041 (16) - 0000000000965340 [10:59:06]1040 (4) - 188189 [10:59:06]1012 (4) - 22.10.2024 04:51 [10:59:06]1206 (1) - 0 [10:59:06]OFD Sender: Remove packet 188189 [10:59:06]ProducePacketName [10:59:06]name=ofd_packets/00188189 [10:59:06]NVStorageDeleteData [10:59:06]OFD Sender: No OFD packet to send [10:59:07]*** Cut start [10:59:07]*** Partial cut [10:59:07]*** CUTSNS_PIN = 1 [10:59:07]*** CUTSNS_PIN = 0 [10:59:07]*** Brake cut motor [10:59:08]Read from MH i2c: 01 [10:59:08]MH_I2C_Read... [10:59:08]*** Stop cut motor [10:59:08]*** Cut end [10:59:08]Read from MH i2c: 01 07 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: 01 07 00 78 44 00 00 00 00 00 FF 0F D1 [10:59:08]process_action close_receipt done [10:59:08]requested_data is exist [10:59:08]produce_requested_data [10:59:08]requested_item fm.sn is exist - process it [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 11 00 00 [10:59:08]Write to MH i2c: E2 08 00 79 44 80 11 00 00 00 00 00 00 37 [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 17 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 17 00 79 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [10:59:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [10:59:08]wFMCommunicate OK [10:59:08]requested_item fd.num is exist - process it [10:59:08]SAM_PROTO_GetFieldsCounters [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 13 00 00 [10:59:08]Write to MH i2c: E2 08 00 7A 44 80 13 00 00 00 00 00 00 3A [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 62 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 62 00 7A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [10:59:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DA 00 00 00 5E 04 04 00 DA 00 00 00 57 04 04 00 DB 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:59:08]wFMCommunicate OK [10:59:08]SAM_PROTO_GetFieldsCounters done [10:59:08]requested_item shift.num is exist - process it [10:59:08]requested_item shift.opened is exist - process it [10:59:08]req_shift_opened [10:59:08]FM_GetShiftState [10:59:08]SAM_PROTO_GetShiftState [10:59:08]wFMCommunicate request_size=4 [10:59:08]MH_SAM_APDU [10:59:08]CAPDU: 80 13 01 00 [10:59:08]Write to MH i2c: E2 08 00 7B 44 80 13 01 00 00 00 00 00 3C [10:59:08]Write i2c OK [10:59:08]MH_I2C_Read... [10:59:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:59:08]Read from MH i2c: E2 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 0E 00 [10:59:08]MH_I2C_Read... [10:59:08]Read from MH i2c: E2 0E 00 7B 44 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 31 [10:59:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [10:59:08]wFMCommunicate OK [10:59:08]SAM_PROTO_GetShiftState done [10:59:08]FM_GetShiftState done [10:59:08]req_shift_opened done [10:59:08]requested_item shift.open_date is exist - process it [10:59:08]req_shift_open_date [10:59:08]req_shift_open_date done [10:59:08]produce_requested_data done [10:59:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188189,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [10:59:08]process_action_free close_receipt [10:59:08]json_value_free [10:59:08]json_value_free done [10:59:08]process_json_proto returns [10:59:08]Send response to host [10:59:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188189,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [10:59:08]free response buf [10:59:08]execute_script done [10:59:08]execute_script returns [10:59:08]free content buf [10:59:08]Sock 9.Close socket [10:59:08]Sock 9.Thread stoped [10:59:11]OFD Sender: No OFD packet to send [10:59:16]OFD Sender: No OFD packet to send [10:59:21]OFD Sender: No OFD packet to send [10:59:27]OFD Sender: No OFD packet to send [10:59:32]OFD Sender: No OFD packet to send [10:59:37]OFD Sender: No OFD packet to send [10:59:42]OFD Sender: No OFD packet to send [10:59:47]OFD Sender: No OFD packet to send [10:59:52]OFD Sender: No OFD packet to send [10:59:57]OFD Sender: No OFD packet to send [11:00:02]OFD Sender: No OFD packet to send [11:00:07]OFD Sender: No OFD packet to send [11:00:12]OFD Sender: No OFD packet to send [11:00:17]OFD Sender: No OFD packet to send [11:00:22]OFD Sender: No OFD packet to send [11:00:27]OFD Sender: No OFD packet to send [11:00:32]OFD Sender: No OFD packet to send [11:00:37]OFD Sender: No OFD packet to send [11:00:42]OFD Sender: No OFD packet to send [11:00:47]OFD Sender: No OFD packet to send [11:00:52]OFD Sender: No OFD packet to send [11:00:57]OFD Sender: No OFD packet to send [11:01:02]OFD Sender: No OFD packet to send [11:01:07]OFD Sender: No OFD packet to send [11:01:12]OFD Sender: No OFD packet to send [11:01:17]OFD Sender: No OFD packet to send [11:01:22]OFD Sender: No OFD packet to send [11:01:27]OFD Sender: No OFD packet to send [11:01:32]OFD Sender: No OFD packet to send [11:01:37]OFD Sender: No OFD packet to send [11:01:42]OFD Sender: No OFD packet to send [11:01:47]OFD Sender: No OFD packet to send [11:01:52]OFD Sender: No OFD packet to send [11:01:57]OFD Sender: No OFD packet to send [11:02:02]OFD Sender: No OFD packet to send [11:02:07]OFD Sender: No OFD packet to send [11:02:12]OFD Sender: No OFD packet to send [11:02:17]OFD Sender: No OFD packet to send [11:02:22]OFD Sender: No OFD packet to send [11:02:27]OFD Sender: No OFD packet to send [11:02:32]OFD Sender: No OFD packet to send [11:02:36]accept exits with 8 [11:02:36]New connection [11:02:36]New thread 3067198820 created [11:02:36]Thread 3067055460 joined [11:02:36]Waiting for new connection... [11:02:36] Sock 8.Parse request [11:02:36]Sock 8.Check first char [11:02:36]Sock 8.First char is OK [11:02:36]request: POST /json_proto HTTP/1.0 [11:02:36]Method: POST [11:02:36]URL: /json_proto [11:02:36]Method is POST - this is cgi request [11:02:36]url: /json_proto [11:02:36]query_string will be loaded in cgi processing [11:02:36]execute_cgi json_proto POST (null) [11:02:36]execute_cgi path=json_proto method=POST [11:02:36]POST find Content-Length [11:02:36]Host: 172.17.42.131:8080 [11:02:36]Content-Length: 682 [11:02:36]Content-Type: application/json [11:02:36] [11:02:36]POST finish read [11:02:36]Found Content-Length = 682 [11:02:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:36]execute_script... [11:02: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)210242", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:02:36]POST & json_proto [11:02:36]process_json_proto [11:02:36]json parsed OK: [11:02:36]protocol is kg_v1.0 [11:02:36]action value=close_receipt [11:02:36]process_action close_receipt [11:02:36]cmd_close_receipt [11:02:36]MH_GetDate [11:02:36]Write to MH i2c: F0 00 00 7C 44 AF [11:02:36]Write i2c OK [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: F0 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: F0 09 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: F0 09 00 7C 44 00 4F 86 17 67 A0 18 CA 66 F3 [11:02:36]GetLastDocTimeStamp 1729594747 [11:02:36]current date 1729594959 [11:02:36]FM_GetShiftState [11:02:36]SAM_PROTO_GetShiftState [11:02:36]wFMCommunicate request_size=4 [11:02:36]MH_SAM_APDU [11:02:36]CAPDU: 80 13 01 00 [11:02:36]Write to MH i2c: E2 08 00 7D 44 80 13 01 00 00 00 00 00 3E [11:02:36]Write i2c OK [11:02:36]MH_I2C_Read... [11:02:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:36]Read from MH i2c: E2 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 0E 00 [11:02:36]MH_I2C_Read... [11:02:36]Read from MH i2c: E2 0E 00 7D 44 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 33 [11:02:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:02:36]wFMCommunicate OK [11:02:36]SAM_PROTO_GetShiftState done [11:02:36]FM_GetShiftState done [11:02:36]opened in 1729556094 [11:02:36]opened+sec_in_day 1729642494 [11:02:36]quantity*price = 300046 [11:02:36]sum+1 = 300048 [11:02:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 219 22.10.2024 11:02 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188190 ФПД: 210095916561696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110239&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188190&fm=210095916561696&tin=02508201610067®Number=0000000000100030&sum=300000 [11:02:37]StoreToDocumentArchive [11:02:37]shift 461 fd 188190 [11:02:37]save to /storage/0461/doc_00188190 [11:02:37]save last doc name /storage/0461/doc_00188190 to /storage/kkm_last_doc_name [11:02:37]save OK [11:02:37]Clear old archive folders... [11:02:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:02:37]tlvbuf is 01BE08F0 [11:02:37]SAM_PROTO_ClearQueue [11:02:37]wFMCommunicate request_size=4 [11:02:37]MH_SAM_APDU [11:02:37]CAPDU: 80 09 00 00 [11:02:37]Write to MH i2c: E2 08 00 8A 44 80 09 00 00 00 00 00 00 40 [11:02:37]Write i2c OK [11:02:37]MH_I2C_Read... [11:02:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:02:37]Read from MH i2c: E2 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 8A 44 00 90 00 42 [11:02:37]RAPDU: 90 00 [11:02:37]wFMCommunicate OK [11:02:37]SAM_PROTO_ClearQueue done [11:02:37]KKMCreateOFDPacket [11:02:37]OFDProtocolAddRootSTLVToBuf [11:02:37]FM_MakeSignedData [11:02:37]FM_MakeSignedData [11:02:37]SAM_PROTO_SignData [11:02:37]wFMCommunicate request_size=4 [11:02:37]MH_SAM_APDU [11:02:37]CAPDU: 80 0D 01 02 [11:02:37]Write to MH i2c: E2 08 00 8B 44 80 0D 01 02 00 00 00 00 48 [11:02:37]Write i2c OK [11:02:37]MH_I2C_Read... [11:02:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:02:37]Read from MH i2c: E2 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 8B 44 00 90 00 43 [11:02:37]RAPDU: 90 00 [11:02:37]wFMCommunicate OK [11:02:37]wFMCommunicate request_size=255 [11:02:37]MH_SAM_APDU [11:02:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DF 02 00 35 04 06 00 BF [11:02:37]Write to MH i2c: E2 02 01 8C 44 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DF 02 00 35 04 06 00 BF 00 00 FE [11:02:37]Write i2c OK [11:02:37]MH_I2C_Read... [11:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:37]Read from MH i2c: E2 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 8C 44 00 90 00 44 [11:02:37]RAPDU: 90 00 [11:02:37]wFMCommunicate OK [11:02:37]wFMCommunicate request_size=10 [11:02:37]MH_SAM_APDU [11:02:37]CAPDU: 80 0D 02 02 05 14 C4 79 B5 20 [11:02:37]Write to MH i2c: E2 0D 00 8D 44 80 0D 02 02 05 00 14 C4 79 B5 20 00 00 7B [11:02:37]Write i2c OK [11:02:37]MH_I2C_Read... [11:02:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:02:37]Read from MH i2c: E2 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 03 00 8D 44 00 90 00 45 [11:02:37]RAPDU: 90 00 [11:02:37]wFMCommunicate OK [11:02:37]wFMCommunicate request_size=4 [11:02:37]MH_SAM_APDU [11:02:37]CAPDU: 80 0D 03 02 [11:02:37]Write to MH i2c: E2 08 00 8E 44 80 0D 03 02 00 00 00 00 4D [11:02:37]Write i2c OK [11:02:37]MH_I2C_Read... [11:02:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:02:37]OFD Sender: No OFD packet to send [11:02:37]Read from MH i2c: E2 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 0B 00 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 0B 00 8E 44 00 D7 21 0B 72 65 0A 03 A2 90 00 D7 [11:02:37]RAPDU: D7 21 0B 72 65 0A 03 A2 90 00 [11:02:37]wFMCommunicate OK [11:02:37]SAM_PROTO_SignData done [11:02:37]FM_MakeSignedData done [11:02:37]CreateOFDProtocolMessage [11:02:37]wFMCommunicate request_size=4 [11:02:37]MH_SAM_APDU [11:02:37]CAPDU: 80 11 00 00 [11:02:37]Write to MH i2c: E2 08 00 8F 44 80 11 00 00 00 00 00 00 4D [11:02:37]Write i2c OK [11:02:37]MH_I2C_Read... [11:02:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:37]Read from MH i2c: E2 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 17 00 [11:02:37]MH_I2C_Read... [11:02:37]Read from MH i2c: E2 17 00 8F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [11:02:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:02:37]wFMCommunicate OK [11:02:37]CreateOFDProtocolMessage done [11:02:37]OFDSenderStorePacket 188190 [11:02:37]StoreOFDPacket docnum=188190 [11:02:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 C6 07 01 E4 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DF 02 00 35 04 06 00 BF 14 C4 79 B5 20 D7 21 0B 72 65 0A 03 A2 [11:02:37]CheckFolder [11:02:37]dirname=/storage/ofd_packets [11:02:37]CheckFolder done [11:02:37]ProducePacketName [11:02:37]name=ofd_packets/00188190 [11:02:37]NVStorageSaveData ofd_packets/00188190 [11:02:37]File name is /storage/ofd_packets/00188190 [11:02:37]Write 301 bytes [11:02:37]NVStorageSaveData done [11:02:37]OFDSenderStorePacket done [11:02:37]KKMCreateOFDPacket done [11:02:37]NVStorageSaveData kkm_last_timestamp [11:02:37]File name is /storage/kkm_last_timestamp [11:02:37]Write 4 bytes [11:02:37]NVStorageSaveData done [11:02:38]ExternCall_PrintAddStr [11:02:38]wPrintStart [11:02:38]Write to MH i2c: 01 00 00 90 44 D4 [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: 01 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: 01 07 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: 01 07 00 90 44 00 00 00 00 00 FF 0F E9 [11:02:38]RasterBufferAndPrint [11:02:38]line Счет N : (1)210242 [11:02:38]line ИНН: 02508201610067 [11:02:38]line Контрольно-Кассовый Чек [11:02:38]line ПРОДАЖА [11:02:38]line ТРК (МРК, ГНК) : 12 [11:02:38]line Товар: 2710124130 [11:02:38]line Аи-92-К-3 [11:02:38]line 44.850 * 66.90 [11:02:38]line = 3000.47 [11:02:38]line НДС 12% НСП 1% [11:02:38]line > о реализуемом товаре [11:02:38]line ОКРУГЛЕНИЕ: -0.47 [11:02:38]line ИТОГО: 3000.00 [11:02:38]line Внесено: 3000.00 [11:02:38]line СДАЧА: 0.00 [11:02:38]line НСП 1% : 26.55 [11:02:38]line НДС 12% : 318.63 [11:02:38]line Наличными: 3000.00 [11:02:38]line Безнал.: 0.00 [11:02:38]line Место: АЗС № 86 "Партнер Нефть" [11:02:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:02:38]line СНО: Общий режим [11:02:38]line Чек 219 22.10.2024 11:02 [11:02:38]line Смена: 461 ФФД: 1.0 [11:02:38]line ЗНМ: 0300000155 [11:02:38]line РНМ: 0000000000100030 [11:02:38]line Версия ККМ: 001 [11:02:38]line ФМ: 0000000000965340 [11:02:38]line ФД: 188190 [11:02:38]line ФПД: 210095916561696 [11:02:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110239&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188190&fm=210095916561696&tin=02508201610067®Number=0000000000100030&sum=300000 [11:02:38]written 0, free lines is 4095 [11:02:38]OFD Sender: Processing packet 188190 [packets to send 1062, broken 1061] [11:02:38]ProducePacketName [11:02:38]name=ofd_packets/00188190 [11:02:38]OFD Sender: To server: pG, [11:02:38]CommunicateWithHost lk.salyk.kg:30040 [11:02:38]ConnectInit lk.salyk.kg [11:02:38]Connected sock=10 [11:02:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 10 C6 07 01 E4 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 00 00 00 F4 03 04 00 4F 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E DF 02 00 35 04 06 00 BF 14 C4 79 B5 20 D7 21 0B 72 65 0A 03 A2 [11:02:38]Write to MH i2c: 01 00 00 BB 44 FF [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: 01 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: 01 07 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: 01 07 00 BB 44 00 00 00 00 00 73 0C 85 [11:02:38]RasterBufferAndPrint [11:02:38]line [11:02:38]line [11:02:38]line [11:02:38]line [11:02:38]line [11:02:38]written 0, free lines is 3189 [11:02:38]MH_Cut [11:02:38]Write to MH i2c: D1 01 00 C2 44 01 D8 [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: D1 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: D1 01 00 [11:02:38]MH_I2C_Read... [11:02:38]Read from MH i2c: D1 01 00 C2 44 00 D7 [11:02:38]Write to MH i2c: 01 00 00 C3 44 07 [11:02:38]Write i2c OK [11:02:38]MH_I2C_Read... [11:02:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F2 42 47 00 F8 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 39 36 35 33 34 30 10 04 04 00 1E DF 02 00 F4 03 04 00 3C 30 17 67 B6 04 01 00 00 94 A2 76 D8 1F 02 91 A7 [11:02:38]CommunicateWithHost err = 0 [11:02:38]CheckOFDResponse [11:02:38]1017 (14) - 77093643461234 [11:02:38]1041 (16) - 0000000000965340 [11:02:38]1040 (4) - 188190 [11:02:38]1012 (4) - 22.10.2024 04:55 [11:02:38]1206 (1) - 0 [11:02:38]OFD Sender: Remove packet 188190 [11:02:38]ProducePacketName [11:02:38]name=ofd_packets/00188190 [11:02:38]NVStorageDeleteData [11:02:39]OFD Sender: No OFD packet to send [11:02:39]*** Cut start [11:02:39]*** Partial cut [11:02:39]*** CUTSNS_PIN = 1 [11:02:39]*** CUTSNS_PIN = 0 [11:02:39]*** Brake cut motor [11:02:40]Read from MH i2c: 01 [11:02:40]MH_I2C_Read... [11:02:40]*** Stop cut motor [11:02:40]*** Cut end [11:02:40]Read from MH i2c: 01 07 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: 01 07 00 C3 44 00 00 00 00 00 FF 0F 1C [11:02:40]process_action close_receipt done [11:02:40]requested_data is exist [11:02:40]produce_requested_data [11:02:40]requested_item fm.sn is exist - process it [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 11 00 00 [11:02:40]Write to MH i2c: E2 08 00 C4 44 80 11 00 00 00 00 00 00 82 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 17 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 17 00 C4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [11:02:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:02:40]wFMCommunicate OK [11:02:40]requested_item fd.num is exist - process it [11:02:40]SAM_PROTO_GetFieldsCounters [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 13 00 00 [11:02:40]Write to MH i2c: E2 08 00 C5 44 80 13 00 00 00 00 00 00 85 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 62 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 62 00 C5 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [11:02:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DB 00 00 00 5E 04 04 00 DB 00 00 00 57 04 04 00 DC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:02:40]wFMCommunicate OK [11:02:40]SAM_PROTO_GetFieldsCounters done [11:02:40]requested_item shift.num is exist - process it [11:02:40]requested_item shift.opened is exist - process it [11:02:40]req_shift_opened [11:02:40]FM_GetShiftState [11:02:40]SAM_PROTO_GetShiftState [11:02:40]wFMCommunicate request_size=4 [11:02:40]MH_SAM_APDU [11:02:40]CAPDU: 80 13 01 00 [11:02:40]Write to MH i2c: E2 08 00 C6 44 80 13 01 00 00 00 00 00 87 [11:02:40]Write i2c OK [11:02:40]MH_I2C_Read... [11:02:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:02:40]Read from MH i2c: E2 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 0E 00 [11:02:40]MH_I2C_Read... [11:02:40]Read from MH i2c: E2 0E 00 C6 44 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7C [11:02:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:02:40]wFMCommunicate OK [11:02:40]SAM_PROTO_GetShiftState done [11:02:40]FM_GetShiftState done [11:02:40]req_shift_opened done [11:02:40]requested_item shift.open_date is exist - process it [11:02:40]req_shift_open_date [11:02:40]req_shift_open_date done [11:02:40]produce_requested_data done [11:02:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188190,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:02:40]process_action_free close_receipt [11:02:40]json_value_free [11:02:40]json_value_free done [11:02:40]process_json_proto returns [11:02:40]Send response to host [11:02:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188190,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:02:40]free response buf [11:02:40]execute_script done [11:02:40]execute_script returns [11:02:40]free content buf [11:02:40]Sock 8.Close socket [11:02:40]Sock 8.Thread stoped [11:02:44]OFD Sender: No OFD packet to send [11:02:49]OFD Sender: No OFD packet to send [11:02:54]OFD Sender: No OFD packet to send [11:02:59]OFD Sender: No OFD packet to send [11:03:04]OFD Sender: No OFD packet to send [11:03:09]OFD Sender: No OFD packet to send [11:03:14]OFD Sender: No OFD packet to send [11:03:19]OFD Sender: No OFD packet to send [11:03:24]OFD Sender: No OFD packet to send [11:03:29]OFD Sender: No OFD packet to send [11:03:34]OFD Sender: No OFD packet to send [11:03:39]OFD Sender: No OFD packet to send [11:03:44]OFD Sender: No OFD packet to send [11:03:49]OFD Sender: No OFD packet to send [11:03:54]OFD Sender: No OFD packet to send [11:03:55]accept exits with 9 [11:03:55]New connection [11:03:55]New thread 3067055460 created [11:03:55]Thread 3067198820 joined [11:03:55]Waiting for new connection... [11:03:55] Sock 9.Parse request [11:03:55]Sock 9.Check first char [11:03:55]Sock 9.First char is OK [11:03:55]request: POST /json_proto HTTP/1.0 [11:03:55]Method: POST [11:03:55]URL: /json_proto [11:03:55]Method is POST - this is cgi request [11:03:55]url: /json_proto [11:03:55]query_string will be loaded in cgi processing [11:03:55]execute_cgi json_proto POST (null) [11:03:55]execute_cgi path=json_proto method=POST [11:03:55]POST find Content-Length [11:03:55]Host: 172.17.42.131:8080 [11:03:55]Content-Length: 685 [11:03:55]Content-Type: application/json [11:03:55] [11:03:55]POST finish read [11:03:55]Found Content-Length = 685 [11:03:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.740, "sum" : 983.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 983.00, "payments": [ { "type": 0, "sum" : 983.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:55]execute_script... [11:03: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)210244", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.740, "sum" : 983.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 983.00, "payments": [ { "type": 0, "sum" : 983.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:03:55]POST & json_proto [11:03:55]process_json_proto [11:03:55]json parsed OK: [11:03:55]protocol is kg_v1.0 [11:03:55]action value=close_receipt [11:03:55]process_action close_receipt [11:03:55]cmd_close_receipt [11:03:55]MH_GetDate [11:03:55]Write to MH i2c: F0 00 00 C7 44 FA [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: F0 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: F0 09 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: F0 09 00 C7 44 00 9E 86 17 67 A0 18 CA 66 8D [11:03:55]GetLastDocTimeStamp 1729594959 [11:03:55]current date 1729595038 [11:03:55]FM_GetShiftState [11:03:55]SAM_PROTO_GetShiftState [11:03:55]wFMCommunicate request_size=4 [11:03:55]MH_SAM_APDU [11:03:55]CAPDU: 80 13 01 00 [11:03:55]Write to MH i2c: E2 08 00 C8 44 80 13 01 00 00 00 00 00 89 [11:03:55]Write i2c OK [11:03:55]MH_I2C_Read... [11:03:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:55]Read from MH i2c: E2 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0E 00 [11:03:55]MH_I2C_Read... [11:03:55]Read from MH i2c: E2 0E 00 C8 44 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7E [11:03:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:03:55]wFMCommunicate OK [11:03:55]SAM_PROTO_GetShiftState done [11:03:55]FM_GetShiftState done [11:03:55]opened in 1729556094 [11:03:55]opened+sec_in_day 1729642494 [11:03:55]quantity*price = 98352 [11:03:55]sum+1 = 98354 [11:03:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 983.00 Внесено: 1000.00 СДАЧА: 17.00 НСП 1% : 8.70 НДС 12% : 104.45 Наличными: 983.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 220 22.10.2024 11:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188191 ФПД: 113808457248600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188191&fm=113808457248600&tin=02508201610067®Number=0000000000100030&sum=98300 [11:03:56]StoreToDocumentArchive [11:03:56]shift 461 fd 188191 [11:03:56]save to /storage/0461/doc_00188191 [11:03:56]save last doc name /storage/0461/doc_00188191 to /storage/kkm_last_doc_name [11:03:56]save OK [11:03:56]Clear old archive folders... [11:03:56]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:03:56]tlvbuf is 01CE42C0 [11:03:56]SAM_PROTO_ClearQueue [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 09 00 00 [11:03:56]Write to MH i2c: E2 08 00 D5 44 80 09 00 00 00 00 00 00 8B [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 D5 44 00 90 00 8D [11:03:56]RAPDU: 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_ClearQueue done [11:03:56]KKMCreateOFDPacket [11:03:56]OFDProtocolAddRootSTLVToBuf [11:03:56]FM_MakeSignedData [11:03:56]FM_MakeSignedData [11:03:56]SAM_PROTO_SignData [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 0D 01 02 [11:03:56]Write to MH i2c: E2 08 00 D6 44 80 0D 01 02 00 00 00 00 93 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 D6 44 00 90 00 8E [11:03:56]RAPDU: 90 00 [11:03:56]wFMCommunicate OK [11:03:56]wFMCommunicate request_size=255 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 31 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 31 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 28 00 00 00 00 07 04 06 00 FC 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9E 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DF 02 [11:03:56]Write to MH i2c: E2 02 01 D7 44 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 31 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 31 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 28 00 00 00 00 07 04 06 00 FC 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9E 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DF 02 00 00 9D [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 D7 44 00 90 00 8F [11:03:56]RAPDU: 90 00 [11:03:56]wFMCommunicate OK [11:03:56]wFMCommunicate request_size=16 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 67 82 18 AA AF 58 [11:03:56]Write to MH i2c: E2 13 00 D8 44 80 0D 02 02 0B 00 00 35 04 06 00 67 82 18 AA AF 58 00 00 9D [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 03 00 D8 44 00 90 00 90 [11:03:56]RAPDU: 90 00 [11:03:56]wFMCommunicate OK [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 0D 03 02 [11:03:56]Write to MH i2c: E2 08 00 D9 44 80 0D 03 02 00 00 00 00 98 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0B 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 0B 00 D9 44 00 22 7C 58 A3 DD 6C F1 42 90 00 AE [11:03:56]RAPDU: 22 7C 58 A3 DD 6C F1 42 90 00 [11:03:56]wFMCommunicate OK [11:03:56]SAM_PROTO_SignData done [11:03:56]FM_MakeSignedData done [11:03:56]CreateOFDProtocolMessage [11:03:56]wFMCommunicate request_size=4 [11:03:56]MH_SAM_APDU [11:03:56]CAPDU: 80 11 00 00 [11:03:56]Write to MH i2c: E2 08 00 DA 44 80 11 00 00 00 00 00 00 98 [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:56]Read from MH i2c: E2 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 17 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: E2 17 00 DA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [11:03:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:03:56]wFMCommunicate OK [11:03:56]CreateOFDProtocolMessage done [11:03:56]OFDSenderStorePacket 188191 [11:03:56]StoreOFDPacket docnum=188191 [11:03:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4F 2C 0D 01 69 F9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 31 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 31 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 28 00 00 00 00 07 04 06 00 FC 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9E 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DF 02 00 35 04 06 00 67 82 18 AA AF 58 22 7C 58 A3 DD 6C F1 42 [11:03:56]CheckFolder [11:03:56]dirname=/storage/ofd_packets [11:03:56]CheckFolder done [11:03:56]ProducePacketName [11:03:56]name=ofd_packets/00188191 [11:03:56]NVStorageSaveData ofd_packets/00188191 [11:03:56]File name is /storage/ofd_packets/00188191 [11:03:56]Write 307 bytes [11:03:56]NVStorageSaveData done [11:03:56]OFDSenderStorePacket done [11:03:56]KKMCreateOFDPacket done [11:03:56]NVStorageSaveData kkm_last_timestamp [11:03:56]File name is /storage/kkm_last_timestamp [11:03:56]Write 4 bytes [11:03:56]NVStorageSaveData done [11:03:56]ExternCall_PrintAddStr [11:03:56]wPrintStart [11:03:56]Write to MH i2c: 01 00 00 DB 44 1F [11:03:56]Write i2c OK [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 07 00 [11:03:56]MH_I2C_Read... [11:03:56]Read from MH i2c: 01 07 00 DB 44 00 00 00 00 00 FF 0F 34 [11:03:56]RasterBufferAndPrint [11:03:56]line Счет N : (1)210244 [11:03:56]line ИНН: 02508201610067 [11:03:56]line Контрольно-Кассовый Чек [11:03:56]line ПРОДАЖА [11:03:56]line ТРК (МРК, ГНК) : 41 [11:03:56]line Товар: 2710194210 [11:03:56]line D-ENERGY ДТ-К-5 [11:03:56]line 12.740 * 77.20 [11:03:56]line = 983.53 [11:03:56]line НДС 12% НСП 1% [11:03:56]line > о реализуемом товаре [11:03:56]line ОКРУГЛЕНИЕ: -0.53 [11:03:56]line ИТОГО: 983.00 [11:03:56]line Внесено: 1000.00 [11:03:56]line СДАЧА: 17.00 [11:03:56]line НСП 1% : 8.70 [11:03:56]line НДС 12% : 104.45 [11:03:56]line Наличными: 983.00 [11:03:56]line Безнал.: 0.00 [11:03:56]line Место: АЗС № 86 "Партнер Нефть" [11:03:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:03:56]line СНО: Общий режим [11:03:56]line Чек 220 22.10.2024 11:03 [11:03:56]line Смена: 461 ФФД: 1.0 [11:03:56]line ЗНМ: 0300000155 [11:03:56]line РНМ: 0000000000100030 [11:03:56]line Версия ККМ: 001 [11:03:56]line ФМ: 0000000000965340 [11:03:56]line ФД: 188191 [11:03:56]line ФПД: 113808457248600 [11:03:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110358&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188191&fm=113808457248600&tin=02508201610067®Number=0000000000100030&sum=98300 [11:03:56]written 0, free lines is 4095 [11:03:57]OFD Sender: Processing packet 188191 [packets to send 1062, broken 1061] [11:03:57]ProducePacketName [11:03:57]name=ofd_packets/00188191 [11:03:57]OFD Sender: To server: pG, [11:03:57]CommunicateWithHost lk.salyk.kg:30040 [11:03:57]ConnectInit lk.salyk.kg [11:03:57]Connected sock=10 [11:03:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4F 2C 0D 01 69 F9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C4 31 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 31 80 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC 7F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 28 00 00 00 00 07 04 06 00 FC 7F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DC 00 00 00 F4 03 04 00 9E 86 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DF 02 00 35 04 06 00 67 82 18 AA AF 58 22 7C 58 A3 DD 6C F1 42 [11:03:57]Write to MH i2c: 01 00 00 06 45 4B [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 07 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: 01 07 00 06 45 00 00 00 00 00 72 0C D0 [11:03:57]RasterBufferAndPrint [11:03:57]line [11:03:57]line [11:03:57]line [11:03:57]line [11:03:57]line [11:03:57]written 0, free lines is 3188 [11:03:57]MH_Cut [11:03:57]Write to MH i2c: D1 01 00 0D 45 01 24 [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: D1 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: D1 01 00 [11:03:57]MH_I2C_Read... [11:03:57]Read from MH i2c: D1 01 00 0D 45 00 23 [11:03:57]Write to MH i2c: 01 00 00 0E 45 53 [11:03:57]Write i2c OK [11:03:57]MH_I2C_Read... [11:03:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 08 47 00 25 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F DF 02 00 F4 03 04 00 8B 30 17 67 B6 04 01 00 00 40 06 D8 39 E0 97 76 3A [11:03:57]CommunicateWithHost err = 0 [11:03:57]CheckOFDResponse [11:03:57]1017 (14) - 77093643461234 [11:03:57]1041 (16) - 0000000000965340 [11:03:57]1040 (4) - 188191 [11:03:57]1012 (4) - 22.10.2024 04:56 [11:03:57]1206 (1) - 0 [11:03:57]OFD Sender: Remove packet 188191 [11:03:57]ProducePacketName [11:03:57]name=ofd_packets/00188191 [11:03:57]NVStorageDeleteData [11:03:58]OFD Sender: No OFD packet to send [11:03:58]*** Cut start [11:03:58]*** Partial cut [11:03:58]*** CUTSNS_PIN = 1 [11:03:58]*** CUTSNS_PIN = 0 [11:03:58]*** Brake cut motor [11:03:59]Read from MH i2c: 01 [11:03:59]MH_I2C_Read... [11:03:59]*** Stop cut motor [11:03:59]*** Cut end [11:03:59]Read from MH i2c: 01 07 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: 01 07 00 0E 45 00 00 00 00 00 FF 0F 68 [11:03:59]process_action close_receipt done [11:03:59]requested_data is exist [11:03:59]produce_requested_data [11:03:59]requested_item fm.sn is exist - process it [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 11 00 00 [11:03:59]Write to MH i2c: E2 08 00 0F 45 80 11 00 00 00 00 00 00 CE [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 17 00 0F 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [11:03:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:03:59]wFMCommunicate OK [11:03:59]requested_item fd.num is exist - process it [11:03:59]SAM_PROTO_GetFieldsCounters [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 13 00 00 [11:03:59]Write to MH i2c: E2 08 00 10 45 80 13 00 00 00 00 00 00 D1 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 62 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 62 00 10 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:03:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DC 00 00 00 5E 04 04 00 DC 00 00 00 57 04 04 00 DD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_GetFieldsCounters done [11:03:59]requested_item shift.num is exist - process it [11:03:59]requested_item shift.opened is exist - process it [11:03:59]req_shift_opened [11:03:59]FM_GetShiftState [11:03:59]SAM_PROTO_GetShiftState [11:03:59]wFMCommunicate request_size=4 [11:03:59]MH_SAM_APDU [11:03:59]CAPDU: 80 13 01 00 [11:03:59]Write to MH i2c: E2 08 00 11 45 80 13 01 00 00 00 00 00 D3 [11:03:59]Write i2c OK [11:03:59]MH_I2C_Read... [11:03:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:03:59]Read from MH i2c: E2 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0E 00 [11:03:59]MH_I2C_Read... [11:03:59]Read from MH i2c: E2 0E 00 11 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [11:03:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:03:59]wFMCommunicate OK [11:03:59]SAM_PROTO_GetShiftState done [11:03:59]FM_GetShiftState done [11:03:59]req_shift_opened done [11:03:59]requested_item shift.open_date is exist - process it [11:03:59]req_shift_open_date [11:03:59]req_shift_open_date done [11:03:59]produce_requested_data done [11:03:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188191,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:03:59]process_action_free close_receipt [11:03:59]json_value_free [11:03:59]json_value_free done [11:03:59]process_json_proto returns [11:03:59]Send response to host [11:03:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188191,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:03:59]free response buf [11:03:59]execute_script done [11:03:59]execute_script returns [11:03:59]free content buf [11:03:59]Sock 9.Close socket [11:03:59]Sock 9.Thread stoped [11:04:03]OFD Sender: No OFD packet to send [11:04:08]OFD Sender: No OFD packet to send [11:04:13]OFD Sender: No OFD packet to send [11:04:18]OFD Sender: No OFD packet to send [11:04:23]OFD Sender: No OFD packet to send [11:04:28]OFD Sender: No OFD packet to send [11:04:33]OFD Sender: No OFD packet to send [11:04:38]OFD Sender: No OFD packet to send [11:04:43]OFD Sender: No OFD packet to send [11:04:48]OFD Sender: No OFD packet to send [11:04:53]OFD Sender: No OFD packet to send [11:04:58]OFD Sender: No OFD packet to send [11:05:03]OFD Sender: No OFD packet to send [11:05:08]OFD Sender: No OFD packet to send [11:05:13]OFD Sender: No OFD packet to send [11:05:18]OFD Sender: No OFD packet to send [11:05:23]OFD Sender: No OFD packet to send [11:05:28]OFD Sender: No OFD packet to send [11:05:33]OFD Sender: No OFD packet to send [11:05:38]accept exits with 8 [11:05:38]New connection [11:05:38]New thread 3067198820 created [11:05:38]Thread 3067055460 joined [11:05:38]Waiting for new connection... [11:05:38] Sock 8.Parse request [11:05:38]Sock 8.Check first char [11:05:38]Sock 8.First char is OK [11:05:38]request: POST /json_proto HTTP/1.0 [11:05:38]Method: POST [11:05:38]URL: /json_proto [11:05:38]Method is POST - this is cgi request [11:05:38]url: /json_proto [11:05:38]query_string will be loaded in cgi processing [11:05:38]execute_cgi json_proto POST (null) [11:05:38]execute_cgi path=json_proto method=POST [11:05:38]POST find Content-Length [11:05:38]Host: 172.17.42.131:8080 [11:05:38]Content-Length: 688 [11:05:38]Content-Type: application/json [11:05:38] [11:05:38]POST finish read [11:05:38]Found Content-Length = 688 [11:05:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:05:38]execute_script... [11:05: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)210245", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:05:38]POST & json_proto [11:05:38]process_json_proto [11:05:38]json parsed OK: [11:05:38]protocol is kg_v1.0 [11:05:38]action value=close_receipt [11:05:38]process_action close_receipt [11:05:38]cmd_close_receipt [11:05:38]MH_GetDate [11:05:38]Write to MH i2c: F0 00 00 12 45 46 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: F0 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: F0 09 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: F0 09 00 12 45 00 05 87 17 67 A0 18 CA 66 41 [11:05:38]GetLastDocTimeStamp 1729595038 [11:05:38]current date 1729595141 [11:05:38]FM_GetShiftState [11:05:38]SAM_PROTO_GetShiftState [11:05:38]wFMCommunicate request_size=4 [11:05:38]MH_SAM_APDU [11:05:38]CAPDU: 80 13 01 00 [11:05:38]Write to MH i2c: E2 08 00 13 45 80 13 01 00 00 00 00 00 D5 [11:05:38]Write i2c OK [11:05:38]MH_I2C_Read... [11:05:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:38]Read from MH i2c: E2 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0E 00 [11:05:38]MH_I2C_Read... [11:05:38]Read from MH i2c: E2 0E 00 13 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CA [11:05:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:05:38]wFMCommunicate OK [11:05:38]SAM_PROTO_GetShiftState done [11:05:38]FM_GetShiftState done [11:05:38]opened in 1729556094 [11:05:38]opened+sec_in_day 1729642494 [11:05:38]quantity*price = 200025 [11:05:38]sum+1 = 200026 [11:05:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 221 22.10.2024 11:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188192 ФПД: 247880662802266 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188192&fm=247880662802266&tin=02508201610067®Number=0000000000100030&sum=200000 [11:05:39]StoreToDocumentArchive [11:05:39]shift 461 fd 188192 [11:05:39]save to /storage/0461/doc_00188192 [11:05:39]save last doc name /storage/0461/doc_00188192 to /storage/kkm_last_doc_name [11:05:39]save OK [11:05:39]Clear old archive folders... [11:05:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:05:39]tlvbuf is 01C00AB0 [11:05:39]SAM_PROTO_ClearQueue [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 09 00 00 [11:05:39]Write to MH i2c: E2 08 00 20 45 80 09 00 00 00 00 00 00 D7 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 20 45 00 90 00 D9 [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]SAM_PROTO_ClearQueue done [11:05:39]KKMCreateOFDPacket [11:05:39]OFDProtocolAddRootSTLVToBuf [11:05:39]FM_MakeSignedData [11:05:39]FM_MakeSignedData [11:05:39]SAM_PROTO_SignData [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 01 02 [11:05:39]Write to MH i2c: E2 08 00 21 45 80 0D 01 02 00 00 00 00 DF [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 21 45 00 90 00 DA [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]wFMCommunicate request_size=255 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DD 00 00 00 F4 03 04 00 05 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DF 02 [11:05:39]Write to MH i2c: E2 02 01 22 45 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DD 00 00 00 F4 03 04 00 05 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DF 02 00 00 36 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 22 45 00 90 00 DB [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]wFMCommunicate request_size=16 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E1 72 36 DA 5F 5A [11:05:39]Write to MH i2c: E2 13 00 23 45 80 0D 02 02 0B 00 00 35 04 06 00 E1 72 36 DA 5F 5A 00 00 53 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 03 00 23 45 00 90 00 DC [11:05:39]RAPDU: 90 00 [11:05:39]wFMCommunicate OK [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 0D 03 02 [11:05:39]Write to MH i2c: E2 08 00 24 45 80 0D 03 02 00 00 00 00 E4 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 0B 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 0B 00 24 45 00 C3 25 48 5B F0 2B 50 38 90 00 13 [11:05:39]RAPDU: C3 25 48 5B F0 2B 50 38 90 00 [11:05:39]wFMCommunicate OK [11:05:39]SAM_PROTO_SignData done [11:05:39]FM_MakeSignedData done [11:05:39]CreateOFDProtocolMessage [11:05:39]wFMCommunicate request_size=4 [11:05:39]MH_SAM_APDU [11:05:39]CAPDU: 80 11 00 00 [11:05:39]Write to MH i2c: E2 08 00 25 45 80 11 00 00 00 00 00 00 E4 [11:05:39]Write i2c OK [11:05:39]MH_I2C_Read... [11:05:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:39]Read from MH i2c: E2 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 [11:05:39]MH_I2C_Read... [11:05:39]Read from MH i2c: E2 17 00 25 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [11:05:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:05:39]wFMCommunicate OK [11:05:39]CreateOFDProtocolMessage done [11:05:39]OFDSenderStorePacket 188192 [11:05:39]StoreOFDPacket docnum=188192 [11:05:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 86 BC 0D 01 52 FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DD 00 00 00 F4 03 04 00 05 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DF 02 00 35 04 06 00 E1 72 36 DA 5F 5A C3 25 48 5B F0 2B 50 38 [11:05:39]CheckFolder [11:05:39]dirname=/storage/ofd_packets [11:05:39]CheckFolder done [11:05:39]ProducePacketName [11:05:39]name=ofd_packets/00188192 [11:05:39]NVStorageSaveData ofd_packets/00188192 [11:05:39]File name is /storage/ofd_packets/00188192 [11:05:39]Write 307 bytes [11:05:39]NVStorageSaveData done [11:05:39]OFDSenderStorePacket done [11:05:39]KKMCreateOFDPacket done [11:05:39]NVStorageSaveData kkm_last_timestamp [11:05:39]File name is /storage/kkm_last_timestamp [11:05:39]Write 4 bytes [11:05:39]NVStorageSaveData done [11:05:40]ExternCall_PrintAddStr [11:05:40]wPrintStart [11:05:40]Write to MH i2c: 01 00 00 26 45 6B [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 26 45 00 00 00 00 00 FF 0F 80 [11:05:40]RasterBufferAndPrint [11:05:40]line Счет N : (1)210245 [11:05:40]line ИНН: 02508201610067 [11:05:40]line Контрольно-Кассовый Чек [11:05:40]line ПРОДАЖА [11:05:40]line ТРК (МРК, ГНК) : 11 [11:05:40]line Товар: 2710194210 [11:05:40]line D-ENERGY ДТ-К-5 [11:05:40]line 25.910 * 77.20 [11:05:40]line = 2000.25 [11:05:40]line НДС 12% НСП 1% [11:05:40]line > о реализуемом товаре [11:05:40]line ОКРУГЛЕНИЕ: -0.25 [11:05:40]line ИТОГО: 2000.00 [11:05:40]line Внесено: 2000.00 [11:05:40]line СДАЧА: 0.00 [11:05:40]line НСП 1% : 17.70 [11:05:40]line НДС 12% : 212.42 [11:05:40]line Наличными: 2000.00 [11:05:40]line Безнал.: 0.00 [11:05:40]line Место: АЗС № 86 "Партнер Нефть" [11:05:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:05:40]line СНО: Общий режим [11:05:40]line Чек 221 22.10.2024 11:05 [11:05:40]line Смена: 461 ФФД: 1.0 [11:05:40]line ЗНМ: 0300000155 [11:05:40]line РНМ: 0000000000100030 [11:05:40]line Версия ККМ: 001 [11:05:40]line ФМ: 0000000000965340 [11:05:40]line ФД: 188192 [11:05:40]line ФПД: 247880662802266 [11:05:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110541&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188192&fm=247880662802266&tin=02508201610067®Number=0000000000100030&sum=200000 [11:05:40]OFD Sender: Processing packet 188192 [packets to send 1062, broken 1061] [11:05:40]ProducePacketName [11:05:40]name=ofd_packets/00188192 [11:05:40]OFD Sender: To server: pG, [11:05:40]CommunicateWithHost lk.salyk.kg:30040 [11:05:40]ConnectInit lk.salyk.kg [11:05:40]written 0, free lines is 4095 [11:05:40]Connected sock=10 [11:05:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 86 BC 0D 01 52 FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DD 00 00 00 F4 03 04 00 05 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DF 02 00 35 04 06 00 E1 72 36 DA 5F 5A C3 25 48 5B F0 2B 50 38 [11:05:40]Write to MH i2c: 01 00 00 51 45 96 [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: 01 07 00 51 45 00 00 00 00 00 6F 0C 18 [11:05:40]RasterBufferAndPrint [11:05:40]line [11:05:40]line [11:05:40]line [11:05:40]line [11:05:40]line [11:05:40]written 0, free lines is 3186 [11:05:40]MH_Cut [11:05:40]Write to MH i2c: D1 01 00 58 45 01 6F [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: D1 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: D1 01 00 [11:05:40]MH_I2C_Read... [11:05:40]Read from MH i2c: D1 01 00 58 45 00 6E [11:05:40]Write to MH i2c: 01 00 00 59 45 9E [11:05:40]Write i2c OK [11:05:40]MH_I2C_Read... [11:05:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 23 47 00 79 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 DF 02 00 F4 03 04 00 F3 30 17 67 B6 04 01 00 00 CE D8 AA B9 04 43 56 46 [11:05:40]CommunicateWithHost err = 0 [11:05:40]CheckOFDResponse [11:05:40]1017 (14) - 77093643461234 [11:05:40]1041 (16) - 0000000000965340 [11:05:40]1040 (4) - 188192 [11:05:40]1012 (4) - 22.10.2024 04:58 [11:05:40]1206 (1) - 0 [11:05:40]OFD Sender: Remove packet 188192 [11:05:40]ProducePacketName [11:05:40]name=ofd_packets/00188192 [11:05:40]NVStorageDeleteData [11:05:41]OFD Sender: No OFD packet to send [11:05:41]*** Cut start [11:05:41]*** Partial cut [11:05:41]*** CUTSNS_PIN = 1 [11:05:42]*** CUTSNS_PIN = 0 [11:05:42]*** Brake cut motor [11:05:42]Read from MH i2c: 01 [11:05:42]MH_I2C_Read... [11:05:42]*** Stop cut motor [11:05:42]*** Cut end [11:05:42]Read from MH i2c: 01 07 00 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: 01 07 00 59 45 00 00 00 00 00 FF 0F B3 [11:05:42]process_action close_receipt done [11:05:42]requested_data is exist [11:05:42]produce_requested_data [11:05:42]requested_item fm.sn is exist - process it [11:05:42]wFMCommunicate request_size=4 [11:05:42]MH_SAM_APDU [11:05:42]CAPDU: 80 11 00 00 [11:05:42]Write to MH i2c: E2 08 00 5A 45 80 11 00 00 00 00 00 00 19 [11:05:42]Write i2c OK [11:05:42]MH_I2C_Read... [11:05:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:42]Read from MH i2c: E2 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 17 00 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 17 00 5A 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [11:05:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:05:42]wFMCommunicate OK [11:05:42]requested_item fd.num is exist - process it [11:05:42]SAM_PROTO_GetFieldsCounters [11:05:42]wFMCommunicate request_size=4 [11:05:42]MH_SAM_APDU [11:05:42]CAPDU: 80 13 00 00 [11:05:42]Write to MH i2c: E2 08 00 5B 45 80 13 00 00 00 00 00 00 1C [11:05:42]Write i2c OK [11:05:42]MH_I2C_Read... [11:05:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:42]Read from MH i2c: E2 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 62 00 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 62 00 5B 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11:05:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DD 00 00 00 5E 04 04 00 DD 00 00 00 57 04 04 00 DE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:42]wFMCommunicate OK [11:05:42]SAM_PROTO_GetFieldsCounters done [11:05:42]requested_item shift.num is exist - process it [11:05:42]requested_item shift.opened is exist - process it [11:05:42]req_shift_opened [11:05:42]FM_GetShiftState [11:05:42]SAM_PROTO_GetShiftState [11:05:42]wFMCommunicate request_size=4 [11:05:42]MH_SAM_APDU [11:05:42]CAPDU: 80 13 01 00 [11:05:42]Write to MH i2c: E2 08 00 5C 45 80 13 01 00 00 00 00 00 1E [11:05:42]Write i2c OK [11:05:42]MH_I2C_Read... [11:05:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:42]Read from MH i2c: E2 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 0E 00 [11:05:42]MH_I2C_Read... [11:05:42]Read from MH i2c: E2 0E 00 5C 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 13 [11:05:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:05:42]wFMCommunicate OK [11:05:42]SAM_PROTO_GetShiftState done [11:05:42]FM_GetShiftState done [11:05:42]req_shift_opened done [11:05:42]requested_item shift.open_date is exist - process it [11:05:42]req_shift_open_date [11:05:42]req_shift_open_date done [11:05:42]produce_requested_data done [11:05:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188192,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:05:42]process_action_free close_receipt [11:05:42]json_value_free [11:05:42]json_value_free done [11:05:42]process_json_proto returns [11:05:42]Send response to host [11:05:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188192,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:05:42]free response buf [11:05:42]execute_script done [11:05:42]execute_script returns [11:05:42]free content buf [11:05:42]Sock 8.Close socket [11:05:42]Sock 8.Thread stoped [11:05:46]OFD Sender: No OFD packet to send [11:05:51]OFD Sender: No OFD packet to send [11:05:56]OFD Sender: No OFD packet to send [11:06:01]OFD Sender: No OFD packet to send [11:06:06]OFD Sender: No OFD packet to send [11:06:11]OFD Sender: No OFD packet to send [11:06:16]OFD Sender: No OFD packet to send [11:06:21]OFD Sender: No OFD packet to send [11:06:26]OFD Sender: No OFD packet to send [11:06:31]OFD Sender: No OFD packet to send [11:06:36]OFD Sender: No OFD packet to send [11:06:37]accept exits with 9 [11:06:37]New connection [11:06:37]New thread 3067055460 created [11:06:37] Sock 9.Parse request [11:06:37]Thread 3067198820 joined [11:06:37]Sock 9.Check first char [11:06:37]Waiting for new connection... [11:06:37]Sock 9.First char is OK [11:06:37]request: POST /json_proto HTTP/1.0 [11:06:37]Method: POST [11:06:37]URL: /json_proto [11:06:37]Method is POST - this is cgi request [11:06:37]url: /json_proto [11:06:37]query_string will be loaded in cgi processing [11:06:37]execute_cgi json_proto POST (null) [11:06:37]execute_cgi path=json_proto method=POST [11:06:37]POST find Content-Length [11:06:37]Host: 172.17.42.131:8080 [11:06:37]Content-Length: 688 [11:06:37]Content-Type: application/json [11:06:37] [11:06:37]POST finish read [11:06:37]Found Content-Length = 688 [11:06:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:06:37]execute_script... [11: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)210243", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:06:37]POST & json_proto [11:06:37]process_json_proto [11:06:37]json parsed OK: [11:06:37]protocol is kg_v1.0 [11:06:37]action value=close_receipt [11:06:37]process_action close_receipt [11:06:37]cmd_close_receipt [11:06:37]MH_GetDate [11:06:37]Write to MH i2c: F0 00 00 5D 45 91 [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 09 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: F0 09 00 5D 45 00 41 87 17 67 A0 18 CA 66 C8 [11:06:37]GetLastDocTimeStamp 1729595141 [11:06:37]current date 1729595201 [11:06:37]FM_GetShiftState [11:06:37]SAM_PROTO_GetShiftState [11:06:37]wFMCommunicate request_size=4 [11:06:37]MH_SAM_APDU [11:06:37]CAPDU: 80 13 01 00 [11:06:37]Write to MH i2c: E2 08 00 5E 45 80 13 01 00 00 00 00 00 20 [11:06:37]Write i2c OK [11:06:37]MH_I2C_Read... [11:06:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:37]Read from MH i2c: E2 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 [11:06:37]MH_I2C_Read... [11:06:37]Read from MH i2c: E2 0E 00 5E 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [11:06:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:06:37]wFMCommunicate OK [11:06:37]SAM_PROTO_GetShiftState done [11:06:37]FM_GetShiftState done [11:06:37]opened in 1729556094 [11:06:37]opened+sec_in_day 1729642494 [11:06:37]quantity*price = 200025 [11:06:37]sum+1 = 200026 [11:06:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 222 22.10.2024 11:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188193 ФПД: 221596367298245 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110641&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188193&fm=221596367298245&tin=02508201610067®Number=0000000000100030&sum=200000 [11:06:39]StoreToDocumentArchive [11:06:39]shift 461 fd 188193 [11:06:39]save to /storage/0461/doc_00188193 [11:06:39]save last doc name /storage/0461/doc_00188193 to /storage/kkm_last_doc_name [11:06:39]save OK [11:06:39]Clear old archive folders... [11:06:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:06:39]tlvbuf is 01BB40F0 [11:06:39]SAM_PROTO_ClearQueue [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 09 00 00 [11:06:39]Write to MH i2c: E2 08 00 6B 45 80 09 00 00 00 00 00 00 22 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 6B 45 00 90 00 24 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]SAM_PROTO_ClearQueue done [11:06:39]KKMCreateOFDPacket [11:06:39]OFDProtocolAddRootSTLVToBuf [11:06:39]FM_MakeSignedData [11:06:39]FM_MakeSignedData [11:06:39]SAM_PROTO_SignData [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 01 02 [11:06:39]Write to MH i2c: E2 08 00 6C 45 80 0D 01 02 00 00 00 00 2A [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 6C 45 00 90 00 25 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=255 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DE 00 00 00 F4 03 04 00 41 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DF 02 [11:06:39]Write to MH i2c: E2 02 01 6D 45 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DE 00 00 00 F4 03 04 00 41 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DF 02 00 00 BF [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 6D 45 00 90 00 26 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=16 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C9 8A 6C C1 9E C5 [11:06:39]Write to MH i2c: E2 13 00 6E 45 80 0D 02 02 0B 00 00 35 04 06 00 C9 8A 6C C1 9E C5 00 00 65 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 03 00 6E 45 00 90 00 27 [11:06:39]RAPDU: 90 00 [11:06:39]wFMCommunicate OK [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 0D 03 02 [11:06:39]Write to MH i2c: E2 08 00 6F 45 80 0D 03 02 00 00 00 00 2F [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0B 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 0B 00 6F 45 00 4A D9 EF EC 62 59 5D DD 90 00 23 [11:06:39]RAPDU: 4A D9 EF EC 62 59 5D DD 90 00 [11:06:39]wFMCommunicate OK [11:06:39]SAM_PROTO_SignData done [11:06:39]FM_MakeSignedData done [11:06:39]CreateOFDProtocolMessage [11:06:39]wFMCommunicate request_size=4 [11:06:39]MH_SAM_APDU [11:06:39]CAPDU: 80 11 00 00 [11:06:39]Write to MH i2c: E2 08 00 70 45 80 11 00 00 00 00 00 00 2F [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:39]Read from MH i2c: E2 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 17 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: E2 17 00 70 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [11:06:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:06:39]wFMCommunicate OK [11:06:39]CreateOFDProtocolMessage done [11:06:39]OFDSenderStorePacket 188193 [11:06:39]StoreOFDPacket docnum=188193 [11:06:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C3 11 0D 01 21 FD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DE 00 00 00 F4 03 04 00 41 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DF 02 00 35 04 06 00 C9 8A 6C C1 9E C5 4A D9 EF EC 62 59 5D DD [11:06:39]CheckFolder [11:06:39]dirname=/storage/ofd_packets [11:06:39]CheckFolder done [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00188193 [11:06:39]NVStorageSaveData ofd_packets/00188193 [11:06:39]File name is /storage/ofd_packets/00188193 [11:06:39]Write 307 bytes [11:06:39]NVStorageSaveData done [11:06:39]OFDSenderStorePacket done [11:06:39]KKMCreateOFDPacket done [11:06:39]NVStorageSaveData kkm_last_timestamp [11:06:39]File name is /storage/kkm_last_timestamp [11:06:39]Write 4 bytes [11:06:39]NVStorageSaveData done [11:06:39]ExternCall_PrintAddStr [11:06:39]wPrintStart [11:06:39]Write to MH i2c: 01 00 00 71 45 B6 [11:06:39]Write i2c OK [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 [11:06:39]MH_I2C_Read... [11:06:39]Read from MH i2c: 01 07 00 71 45 00 00 00 00 00 FF 0F CB [11:06:39]RasterBufferAndPrint [11:06:39]line Счет N : (1)210243 [11:06:39]line ИНН: 02508201610067 [11:06:39]line Контрольно-Кассовый Чек [11:06:39]line ПРОДАЖА [11:06:39]line ТРК (МРК, ГНК) : 21 [11:06:39]line Товар: 2710194210 [11:06:39]line D-ENERGY ДТ-К-5 [11:06:39]line 25.910 * 77.20 [11:06:39]line = 2000.25 [11:06:39]line НДС 12% НСП 1% [11:06:39]line > о реализуемом товаре [11:06:39]line ОКРУГЛЕНИЕ: -0.25 [11:06:39]line ИТОГО: 2000.00 [11:06:39]line Внесено: 2000.00 [11:06:39]line СДАЧА: 0.00 [11:06:39]line НСП 1% : 17.70 [11:06:39]line НДС 12% : 212.42 [11:06:39]line Наличными: 2000.00 [11:06:39]line Безнал.: 0.00 [11:06:39]line Место: АЗС № 86 "Партнер Нефть" [11:06:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:06:39]line СНО: Общий режим [11:06:39]line Чек 222 22.10.2024 11:06 [11:06:39]line Смена: 461 ФФД: 1.0 [11:06:39]line ЗНМ: 0300000155 [11:06:39]line РНМ: 0000000000100030 [11:06:39]line Версия ККМ: 001 [11:06:39]line ФМ: 0000000000965340 [11:06:39]line ФД: 188193 [11:06:39]line ФПД: 221596367298245 [11:06:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110641&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188193&fm=221596367298245&tin=02508201610067®Number=0000000000100030&sum=200000 [11:06:39]written 0, free lines is 4095 [11:06:39]OFD Sender: Processing packet 188193 [packets to send 1062, broken 1061] [11:06:39]ProducePacketName [11:06:39]name=ofd_packets/00188193 [11:06:39]OFD Sender: To server: pG, [11:06:39]CommunicateWithHost lk.salyk.kg:30040 [11:06:39]ConnectInit lk.salyk.kg [11:06:40]Connected sock=10 [11:06:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C3 11 0D 01 21 FD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DE 00 00 00 F4 03 04 00 41 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DF 02 00 35 04 06 00 C9 8A 6C C1 9E C5 4A D9 EF EC 62 59 5D DD [11:06:40]Write to MH i2c: 01 00 00 9C 45 E1 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 07 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: 01 07 00 9C 45 00 00 00 00 00 6B 0C 5F [11:06:40]RasterBufferAndPrint [11:06:40]line [11:06:40]line [11:06:40]line [11:06:40]line [11:06:40]line [11:06:40]written 0, free lines is 3183 [11:06:40]MH_Cut [11:06:40]Write to MH i2c: D1 01 00 A3 45 01 BA [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: D1 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: D1 01 00 [11:06:40]MH_I2C_Read... [11:06:40]Read from MH i2c: D1 01 00 A3 45 00 B9 [11:06:40]Write to MH i2c: 01 00 00 A4 45 E9 [11:06:40]Write i2c OK [11:06:40]MH_I2C_Read... [11:06:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DF 71 47 00 3B F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 DF 02 00 F4 03 04 00 2E 31 17 67 B6 04 01 00 00 70 9D 2E 82 FD 66 18 1E [11:06:40]CommunicateWithHost err = 0 [11:06:40]CheckOFDResponse [11:06:40]1017 (14) - 77093643461234 [11:06:40]1041 (16) - 0000000000965340 [11:06:40]1040 (4) - 188193 [11:06:40]1012 (4) - 22.10.2024 04:59 [11:06:40]1206 (1) - 0 [11:06:40]OFD Sender: Remove packet 188193 [11:06:40]ProducePacketName [11:06:40]name=ofd_packets/00188193 [11:06:40]NVStorageDeleteData [11:06:40]OFD Sender: No OFD packet to send [11:06:41]*** Cut start [11:06:41]*** Partial cut [11:06:41]*** CUTSNS_PIN = 1 [11:06:41]*** CUTSNS_PIN = 0 [11:06:41]*** Brake cut motor [11:06:41]Read from MH i2c: 01 [11:06:42]MH_I2C_Read... [11:06:42]*** Stop cut motor [11:06:42]*** Cut end [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 A4 45 00 00 00 00 00 FF 0F FE [11:06:42]process_action close_receipt done [11:06:42]requested_data is exist [11:06:42]produce_requested_data [11:06:42]requested_item fm.sn is exist - process it [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 A5 45 80 11 00 00 00 00 00 00 64 [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 A5 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [11:06:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:06:42]wFMCommunicate OK [11:06:42]requested_item fd.num is exist - process it [11:06:42]SAM_PROTO_GetFieldsCounters [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 13 00 00 [11:06:42]Write to MH i2c: E2 08 00 A6 45 80 13 00 00 00 00 00 00 67 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 62 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 62 00 A6 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 D8 [11:06:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DE 00 00 00 5E 04 04 00 DE 00 00 00 57 04 04 00 DF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_GetFieldsCounters done [11:06:42]requested_item shift.num is exist - process it [11:06:42]requested_item shift.opened is exist - process it [11:06:42]req_shift_opened [11:06:42]FM_GetShiftState [11:06:42]SAM_PROTO_GetShiftState [11:06:42]wFMCommunicate request_size=4 [11:06:42]MH_SAM_APDU [11:06:42]CAPDU: 80 13 01 00 [11:06:42]Write to MH i2c: E2 08 00 A7 45 80 13 01 00 00 00 00 00 69 [11:06:42]Write i2c OK [11:06:42]MH_I2C_Read... [11:06:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:42]Read from MH i2c: E2 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 [11:06:42]MH_I2C_Read... [11:06:42]Read from MH i2c: E2 0E 00 A7 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5E [11:06:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:06:42]wFMCommunicate OK [11:06:42]SAM_PROTO_GetShiftState done [11:06:42]FM_GetShiftState done [11:06:42]req_shift_opened done [11:06:42]requested_item shift.open_date is exist - process it [11:06:42]req_shift_open_date [11:06:42]req_shift_open_date done [11:06:42]produce_requested_data done [11:06:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188193,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:06:42]process_action_free close_receipt [11:06:42]json_value_free [11:06:42]json_value_free done [11:06:42]process_json_proto returns [11:06:42]Send response to host [11:06:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188193,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:06:42]free response buf [11:06:42]execute_script done [11:06:42]execute_script returns [11:06:42]free content buf [11:06:42]Sock 9.Close socket [11:06:42]Sock 9.Thread stoped [11:06:45]OFD Sender: No OFD packet to send [11:06:50]OFD Sender: No OFD packet to send [11:06:55]OFD Sender: No OFD packet to send [11:07:01]OFD Sender: No OFD packet to send [11:07:06]OFD Sender: No OFD packet to send [11:07:11]OFD Sender: No OFD packet to send [11:07:16]OFD Sender: No OFD packet to send [11:07:21]OFD Sender: No OFD packet to send [11:07:26]OFD Sender: No OFD packet to send [11:07:26]accept exits with 8 [11:07:26]New connection [11:07:26]New thread 3067198820 created [11:07:26]Thread 3067055460 joined [11:07:26]Waiting for new connection... [11:07:26] Sock 8.Parse request [11:07:26]Sock 8.Check first char [11:07:26]Sock 8.First char is OK [11:07:26]request: POST /json_proto HTTP/1.0 [11:07:26]Method: POST [11:07:26]URL: /json_proto [11:07:26]Method is POST - this is cgi request [11:07:26]url: /json_proto [11:07:26]query_string will be loaded in cgi processing [11:07:26]execute_cgi json_proto POST (null) [11:07:26]execute_cgi path=json_proto method=POST [11:07:26]POST find Content-Length [11:07:26]Host: 172.17.42.131:8080 [11:07:26]Content-Length: 766 [11:07:26]Content-Type: application/json [11:07:26] [11:07:26]POST finish read [11:07:26]Found Content-Length = 766 [11:07:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:26]execute_script... [11:07: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)210246", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:07:26]POST & json_proto [11:07:26]process_json_proto [11:07:26]json parsed OK: [11:07:26]protocol is kg_v1.0 [11:07:26]action value=close_receipt [11:07:26]process_action close_receipt [11:07:26]cmd_close_receipt [11:07:26]MH_GetDate [11:07:26]Write to MH i2c: F0 00 00 A8 45 DC [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: F0 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: F0 09 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: F0 09 00 A8 45 00 71 87 17 67 A0 18 CA 66 43 [11:07:26]GetLastDocTimeStamp 1729595201 [11:07:26]current date 1729595249 [11:07:26]FM_GetShiftState [11:07:26]SAM_PROTO_GetShiftState [11:07:26]wFMCommunicate request_size=4 [11:07:26]MH_SAM_APDU [11:07:26]CAPDU: 80 13 01 00 [11:07:26]Write to MH i2c: E2 08 00 A9 45 80 13 01 00 00 00 00 00 6B [11:07:26]Write i2c OK [11:07:26]MH_I2C_Read... [11:07:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:26]Read from MH i2c: E2 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 0E 00 [11:07:26]MH_I2C_Read... [11:07:26]Read from MH i2c: E2 0E 00 A9 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 60 [11:07:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:07:26]wFMCommunicate OK [11:07:26]SAM_PROTO_GetShiftState done [11:07:26]FM_GetShiftState done [11:07:26]opened in 1729556094 [11:07:26]opened+sec_in_day 1729642494 [11:07:26]quantity*price = 50041 [11:07:26]sum+1 = 50042 [11:07:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 223 22.10.2024 11:07 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188194 ФПД: 126607776810811 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110729&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188194&fm=126607776810811&tin=02508201610067®Number=0000000000100030&sum=50041 [11:07:27]StoreToDocumentArchive [11:07:27]shift 461 fd 188194 [11:07:27]save to /storage/0461/doc_00188194 [11:07:27]save last doc name /storage/0461/doc_00188194 to /storage/kkm_last_doc_name [11:07:27]save OK [11:07:27]Clear old archive folders... [11:07:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:07:27]tlvbuf is 01CE8B50 [11:07:27]SAM_PROTO_ClearQueue [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 09 00 00 [11:07:27]Write to MH i2c: E2 08 00 B6 45 80 09 00 00 00 00 00 00 6D [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 B6 45 00 90 00 6F [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]SAM_PROTO_ClearQueue done [11:07:27]KKMCreateOFDPacket [11:07:27]OFDProtocolAddRootSTLVToBuf [11:07:27]FM_MakeSignedData [11:07:27]FM_MakeSignedData [11:07:27]SAM_PROTO_SignData [11:07:27]wFMCommunicate request_size=4 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 01 02 [11:07:27]Write to MH i2c: E2 08 00 B7 45 80 0D 01 02 00 00 00 00 75 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:07:27]Read from MH i2c: E2 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 [11:07:27]MH_I2C_Read... [11:07:27]Read from MH i2c: E2 03 00 B7 45 00 90 00 70 [11:07:27]RAPDU: 90 00 [11:07:27]wFMCommunicate OK [11:07:27]wFMCommunicate request_size=255 [11:07:27]MH_SAM_APDU [11:07:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 71 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DF 02 00 35 04 06 00 73 [11:07:27]Write to MH i2c: E2 02 01 B8 45 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 71 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DF 02 00 35 04 06 00 73 00 00 D3 [11:07:27]Write i2c OK [11:07:27]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 B8 45 00 90 00 71 [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=10 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 02 02 05 26 2B 90 07 3B [11:07:28]Write to MH i2c: E2 0D 00 B9 45 80 0D 02 02 05 00 26 2B 90 07 3B 00 00 A5 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 03 00 B9 45 00 90 00 72 [11:07:28]RAPDU: 90 00 [11:07:28]wFMCommunicate OK [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 0D 03 02 [11:07:28]Write to MH i2c: E2 08 00 BA 45 80 0D 03 02 00 00 00 00 7A [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0B 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 0B 00 BA 45 00 09 C9 63 54 A9 A6 30 77 90 00 FA [11:07:28]RAPDU: 09 C9 63 54 A9 A6 30 77 90 00 [11:07:28]wFMCommunicate OK [11:07:28]SAM_PROTO_SignData done [11:07:28]FM_MakeSignedData done [11:07:28]CreateOFDProtocolMessage [11:07:28]wFMCommunicate request_size=4 [11:07:28]MH_SAM_APDU [11:07:28]CAPDU: 80 11 00 00 [11:07:28]Write to MH i2c: E2 08 00 BB 45 80 11 00 00 00 00 00 00 7A [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:28]Read from MH i2c: E2 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: E2 17 00 BB 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [11:07:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:07:28]wFMCommunicate OK [11:07:28]CreateOFDProtocolMessage done [11:07:28]OFDSenderStorePacket 188194 [11:07:28]StoreOFDPacket docnum=188194 [11:07:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 78 07 01 D8 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 71 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DF 02 00 35 04 06 00 73 26 2B 90 07 3B 09 C9 63 54 A9 A6 30 77 [11:07:28]CheckFolder [11:07:28]dirname=/storage/ofd_packets [11:07:28]CheckFolder done [11:07:28]ProducePacketName [11:07:28]name=ofd_packets/00188194 [11:07:28]NVStorageSaveData ofd_packets/00188194 [11:07:28]File name is /storage/ofd_packets/00188194 [11:07:28]Write 301 bytes [11:07:28]NVStorageSaveData done [11:07:28]OFDSenderStorePacket done [11:07:28]KKMCreateOFDPacket done [11:07:28]NVStorageSaveData kkm_last_timestamp [11:07:28]File name is /storage/kkm_last_timestamp [11:07:28]Write 4 bytes [11:07:28]NVStorageSaveData done [11:07:28]ExternCall_PrintAddStr [11:07:28]wPrintStart [11:07:28]Write to MH i2c: 01 00 00 BC 45 01 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 BC 45 00 00 00 00 00 FF 0F 16 [11:07:28]RasterBufferAndPrint [11:07:28]line Счет N : (1)210246 [11:07:28]line ИНН: 02508201610067 [11:07:28]line Контрольно-Кассовый Чек [11:07:28]line ПРОДАЖА [11:07:28]line ТРК (МРК, ГНК) : 22 [11:07:28]line Товар: 2710124130 [11:07:28]line Аи-92-К-3 [11:07:28]line 7.480 * 66.90 [11:07:28]line = 500.41 [11:07:28]line НДС 12% НСП 1% [11:07:28]line > о реализуемом товаре [11:07:28]line ИТОГО: 500.41 [11:07:28]line НСП 1% : 4.43 [11:07:28]line НДС 12% : 53.14 [11:07:28]line Наличными: 0.00 [11:07:28]line Безнал.: 500.41 [11:07:28]line Место: АЗС № 86 "Партнер Нефть" [11:07:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:07:28]line СНО: Общий режим [11:07:28]line Чек 223 22.10.2024 11:07 [11:07:28]line Смена: 461 ФФД: 1.0 [11:07:28]line ЗНМ: 0300000155 [11:07:28]line РНМ: 0000000000100030 [11:07:28]line Версия ККМ: 001 [11:07:28]line Платежная система: Mbank [11:07:28]line ФМ: 0000000000965340 [11:07:28]line ФД: 188194 [11:07:28]line ФПД: 126607776810811 [11:07:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T110729&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188194&fm=126607776810811&tin=02508201610067®Number=0000000000100030&sum=50041 [11:07:28]written 0, free lines is 4095 [11:07:28]OFD Sender: Processing packet 188194 [packets to send 1062, broken 1061] [11:07:28]ProducePacketName [11:07:28]name=ofd_packets/00188194 [11:07:28]OFD Sender: To server: pG, [11:07:28]CommunicateWithHost lk.salyk.kg:30040 [11:07:28]ConnectInit lk.salyk.kg [11:07:28]Connected sock=10 [11:07:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 78 07 01 D8 5C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DF 00 00 00 F4 03 04 00 71 87 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DF 02 00 35 04 06 00 73 26 2B 90 07 3B 09 C9 63 54 A9 A6 30 77 [11:07:28]Write to MH i2c: 01 00 00 E5 45 2A [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: 01 07 00 E5 45 00 00 00 00 00 9A 0C D7 [11:07:28]RasterBufferAndPrint [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]line [11:07:28]written 0, free lines is 3229 [11:07:28]MH_Cut [11:07:28]Write to MH i2c: D1 01 00 EC 45 01 03 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 01 00 [11:07:28]MH_I2C_Read... [11:07:28]Read from MH i2c: D1 01 00 EC 45 00 02 [11:07:28]Write to MH i2c: 01 00 00 ED 45 32 [11:07:28]Write i2c OK [11:07:28]MH_I2C_Read... [11:07:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 E8 47 00 84 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 DF 02 00 F4 03 04 00 5F 31 17 67 B6 04 01 00 00 B6 D0 A5 B7 40 37 60 8F [11:07:29]CommunicateWithHost err = 0 [11:07:29]CheckOFDResponse [11:07:29]1017 (14) - 77093643461234 [11:07:29]1041 (16) - 0000000000965340 [11:07:29]1040 (4) - 188194 [11:07:29]1012 (4) - 22.10.2024 05:00 [11:07:29]1206 (1) - 0 [11:07:29]OFD Sender: Remove packet 188194 [11:07:29]ProducePacketName [11:07:29]name=ofd_packets/00188194 [11:07:29]NVStorageDeleteData [11:07:29]OFD Sender: No OFD packet to send [11:07:29]*** Cut start [11:07:29]*** Partial cut [11:07:29]*** CUTSNS_PIN = 1 [11:07:30]*** CUTSNS_PIN = 0 [11:07:30]*** Brake cut motor [11:07:30]Read from MH i2c: 01 [11:07:30]MH_I2C_Read... [11:07:30]*** Stop cut motor [11:07:30]*** Cut end [11:07:30]Read from MH i2c: 01 07 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: 01 07 00 ED 45 00 00 00 00 00 FF 0F 47 [11:07:30]process_action close_receipt done [11:07:30]requested_data is exist [11:07:30]produce_requested_data [11:07:30]requested_item fm.sn is exist - process it [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 11 00 00 [11:07:30]Write to MH i2c: E2 08 00 EE 45 80 11 00 00 00 00 00 00 AD [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 17 00 EE 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [11:07:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:07:30]wFMCommunicate OK [11:07:30]requested_item fd.num is exist - process it [11:07:30]SAM_PROTO_GetFieldsCounters [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 13 00 00 [11:07:30]Write to MH i2c: E2 08 00 EF 45 80 13 00 00 00 00 00 00 B0 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 62 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 62 00 EF 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:07:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DF 00 00 00 5E 04 04 00 DF 00 00 00 57 04 04 00 E0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:07:30]wFMCommunicate OK [11:07:30]SAM_PROTO_GetFieldsCounters done [11:07:30]requested_item shift.num is exist - process it [11:07:30]requested_item shift.opened is exist - process it [11:07:30]req_shift_opened [11:07:30]FM_GetShiftState [11:07:30]SAM_PROTO_GetShiftState [11:07:30]wFMCommunicate request_size=4 [11:07:30]MH_SAM_APDU [11:07:30]CAPDU: 80 13 01 00 [11:07:30]Write to MH i2c: E2 08 00 F0 45 80 13 01 00 00 00 00 00 B2 [11:07:30]Write i2c OK [11:07:30]MH_I2C_Read... [11:07:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:07:30]Read from MH i2c: E2 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 0E 00 [11:07:30]MH_I2C_Read... [11:07:30]Read from MH i2c: E2 0E 00 F0 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A7 [11:07:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:07:30]wFMCommunicate OK [11:07:30]SAM_PROTO_GetShiftState done [11:07:30]FM_GetShiftState done [11:07:30]req_shift_opened done [11:07:30]requested_item shift.open_date is exist - process it [11:07:30]req_shift_open_date [11:07:30]req_shift_open_date done [11:07:30]produce_requested_data done [11:07:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188194,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:07:30]process_action_free close_receipt [11:07:30]json_value_free [11:07:30]json_value_free done [11:07:30]process_json_proto returns [11:07:30]Send response to host [11:07:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188194,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:07:30]free response buf [11:07:30]execute_script done [11:07:30]execute_script returns [11:07:30]free content buf [11:07:30]Sock 8.Close socket [11:07:30]Sock 8.Thread stoped [11:07:34]OFD Sender: No OFD packet to send [11:07:39]OFD Sender: No OFD packet to send [11:07:44]OFD Sender: No OFD packet to send [11:07:49]OFD Sender: No OFD packet to send [11:07:54]OFD Sender: No OFD packet to send [11:07:59]OFD Sender: No OFD packet to send [11:08:04]OFD Sender: No OFD packet to send [11:08:09]OFD Sender: No OFD packet to send [11:08:14]OFD Sender: No OFD packet to send [11:08:19]OFD Sender: No OFD packet to send [11:08:24]OFD Sender: No OFD packet to send [11:08:29]OFD Sender: No OFD packet to send [11:08:34]OFD Sender: No OFD packet to send [11:08:39]OFD Sender: No OFD packet to send [11:08:44]OFD Sender: No OFD packet to send [11:08:49]OFD Sender: No OFD packet to send [11:08:54]OFD Sender: No OFD packet to send [11:09:00]OFD Sender: No OFD packet to send [11:09:05]OFD Sender: No OFD packet to send [11:09:10]OFD Sender: No OFD packet to send [11:09:15]OFD Sender: No OFD packet to send [11:09:20]OFD Sender: No OFD packet to send [11:09:25]OFD Sender: No OFD packet to send [11:09:30]OFD Sender: No OFD packet to send [11:09:35]OFD Sender: No OFD packet to send [11:09:40]OFD Sender: No OFD packet to send [11:09:45]OFD Sender: No OFD packet to send [11:09:50]OFD Sender: No OFD packet to send [11:09:55]OFD Sender: No OFD packet to send [11:10:00]OFD Sender: No OFD packet to send [11:10:05]OFD Sender: No OFD packet to send [11:10:10]OFD Sender: No OFD packet to send [11:10:15]OFD Sender: No OFD packet to send [11:10:20]OFD Sender: No OFD packet to send [11:10:25]OFD Sender: No OFD packet to send [11:10:30]OFD Sender: No OFD packet to send [11:10:31]accept exits with 9 [11:10:31]New connection [11:10:31]New thread 3067055460 created [11:10:31]Thread 3067198820 joined [11:10:31]Waiting for new connection... [11:10:31] Sock 9.Parse request [11:10:31]Sock 9.Check first char [11:10:31]Sock 9.First char is OK [11:10:31]request: POST /json_proto HTTP/1.0 [11:10:31]Method: POST [11:10:31]URL: /json_proto [11:10:31]Method is POST - this is cgi request [11:10:31]url: /json_proto [11:10:31]query_string will be loaded in cgi processing [11:10:31]execute_cgi json_proto POST (null) [11:10:31]execute_cgi path=json_proto method=POST [11:10:31]POST find Content-Length [11:10:31]Host: 172.17.42.131:8080 [11:10:31]Content-Length: 682 [11:10:31]Content-Type: application/json [11:10:31] [11:10:31]POST finish read [11:10:31]Found Content-Length = 682 [11:10:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:31]execute_script... [11:10: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)210248", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:31]POST & json_proto [11:10:31]process_json_proto [11:10:31]json parsed OK: [11:10:31]protocol is kg_v1.0 [11:10:31]action value=close_receipt [11:10:31]process_action close_receipt [11:10:31]cmd_close_receipt [11:10:31]MH_GetDate [11:10:31]Write to MH i2c: F0 00 00 F1 45 25 [11:10:31]Write i2c OK [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: F0 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: F0 09 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: F0 09 00 F1 45 00 2B 88 17 67 A0 18 CA 66 47 [11:10:31]GetLastDocTimeStamp 1729595249 [11:10:31]current date 1729595435 [11:10:31]FM_GetShiftState [11:10:31]SAM_PROTO_GetShiftState [11:10:31]wFMCommunicate request_size=4 [11:10:31]MH_SAM_APDU [11:10:31]CAPDU: 80 13 01 00 [11:10:31]Write to MH i2c: E2 08 00 F2 45 80 13 01 00 00 00 00 00 B4 [11:10:31]Write i2c OK [11:10:31]MH_I2C_Read... [11:10:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:31]Read from MH i2c: E2 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 0E 00 [11:10:31]MH_I2C_Read... [11:10:31]Read from MH i2c: E2 0E 00 F2 45 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A9 [11:10:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:10:31]wFMCommunicate OK [11:10:31]SAM_PROTO_GetShiftState done [11:10:31]FM_GetShiftState done [11:10:31]opened in 1729556094 [11:10:31]opened+sec_in_day 1729642494 [11:10:31]quantity*price = 100015 [11:10:31]sum+1 = 100017 [11:10:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 224 22.10.2024 11:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188195 ФПД: 180493845841975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111035&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188195&fm=180493845841975&tin=02508201610067®Number=0000000000100030&sum=100000 [11:10:33]StoreToDocumentArchive [11:10:33]shift 461 fd 188195 [11:10:33]save to /storage/0461/doc_00188195 [11:10:33]save last doc name /storage/0461/doc_00188195 to /storage/kkm_last_doc_name [11:10:33]save OK [11:10:33]Clear old archive folders... [11:10:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:33]tlvbuf is 01D009C0 [11:10:33]SAM_PROTO_ClearQueue [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 09 00 00 [11:10:33]Write to MH i2c: E2 08 00 FF 45 80 09 00 00 00 00 00 00 B6 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 FF 45 00 90 00 B8 [11:10:33]RAPDU: 90 00 [11:10:33]wFMCommunicate OK [11:10:33]SAM_PROTO_ClearQueue done [11:10:33]KKMCreateOFDPacket [11:10:33]OFDProtocolAddRootSTLVToBuf [11:10:33]FM_MakeSignedData [11:10:33]FM_MakeSignedData [11:10:33]SAM_PROTO_SignData [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 0D 01 02 [11:10:33]Write to MH i2c: E2 08 00 00 46 80 0D 01 02 00 00 00 00 BF [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 00 46 00 90 00 BA [11:10:33]RAPDU: 90 00 [11:10:33]wFMCommunicate OK [11:10:33]wFMCommunicate request_size=255 [11:10:33]MH_SAM_APDU [11:10: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2B 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DF 02 00 35 04 06 00 A4 [11:10:33]Write to MH i2c: E2 02 01 01 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2B 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DF 02 00 35 04 06 00 A4 00 00 B3 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 01 46 00 90 00 BB [11:10:33]RAPDU: 90 00 [11:10:33]wFMCommunicate OK [11:10:33]wFMCommunicate request_size=10 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 0D 02 02 05 28 7F 90 C8 37 [11:10:33]Write to MH i2c: E2 0D 00 02 46 80 0D 02 02 05 00 28 7F 90 C8 37 00 00 02 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 03 00 02 46 00 90 00 BC [11:10:33]RAPDU: 90 00 [11:10:33]wFMCommunicate OK [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 0D 03 02 [11:10:33]Write to MH i2c: E2 08 00 03 46 80 0D 03 02 00 00 00 00 C4 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 0B 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 0B 00 03 46 00 87 D0 CA AD 1A 71 5C EB 90 00 65 [11:10:33]RAPDU: 87 D0 CA AD 1A 71 5C EB 90 00 [11:10:33]wFMCommunicate OK [11:10:33]SAM_PROTO_SignData done [11:10:33]FM_MakeSignedData done [11:10:33]CreateOFDProtocolMessage [11:10:33]wFMCommunicate request_size=4 [11:10:33]MH_SAM_APDU [11:10:33]CAPDU: 80 11 00 00 [11:10:33]Write to MH i2c: E2 08 00 04 46 80 11 00 00 00 00 00 00 C4 [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:33]Read from MH i2c: E2 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 17 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: E2 17 00 04 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [11:10:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:10:33]wFMCommunicate OK [11:10:33]CreateOFDProtocolMessage done [11:10:33]OFDSenderStorePacket 188195 [11:10:33]StoreOFDPacket docnum=188195 [11:10:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E 37 07 01 A6 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2B 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DF 02 00 35 04 06 00 A4 28 7F 90 C8 37 87 D0 CA AD 1A 71 5C EB [11:10:33]CheckFolder [11:10:33]dirname=/storage/ofd_packets [11:10:33]CheckFolder done [11:10:33]ProducePacketName [11:10:33]name=ofd_packets/00188195 [11:10:33]NVStorageSaveData ofd_packets/00188195 [11:10:33]File name is /storage/ofd_packets/00188195 [11:10:33]Write 301 bytes [11:10:33]NVStorageSaveData done [11:10:33]OFDSenderStorePacket done [11:10:33]KKMCreateOFDPacket done [11:10:33]NVStorageSaveData kkm_last_timestamp [11:10:33]File name is /storage/kkm_last_timestamp [11:10:33]Write 4 bytes [11:10:33]NVStorageSaveData done [11:10:33]ExternCall_PrintAddStr [11:10:33]wPrintStart [11:10:33]Write to MH i2c: 01 00 00 05 46 4B [11:10:33]Write i2c OK [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: 01 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: 01 07 00 [11:10:33]MH_I2C_Read... [11:10:33]Read from MH i2c: 01 07 00 05 46 00 00 00 00 00 FF 0F 60 [11:10:33]RasterBufferAndPrint [11:10:33]line Счет N : (1)210248 [11:10:33]line ИНН: 02508201610067 [11:10:33]line Контрольно-Кассовый Чек [11:10:33]line ПРОДАЖА [11:10:33]line ТРК (МРК, ГНК) : 12 [11:10:33]line Товар: 2710124130 [11:10:33]line Аи-92-К-3 [11:10:33]line 14.950 * 66.90 [11:10:33]line = 1000.16 [11:10:33]line НДС 12% НСП 1% [11:10:33]line > о реализуемом товаре [11:10:33]line ОКРУГЛЕНИЕ: -0.16 [11:10:33]line ИТОГО: 1000.00 [11:10:33]line Внесено: 1000.00 [11:10:33]line СДАЧА: 0.00 [11:10:33]line НСП 1% : 8.85 [11:10:33]line НДС 12% : 106.21 [11:10:33]line Наличными: 1000.00 [11:10:33]line Безнал.: 0.00 [11:10:33]line Место: АЗС № 86 "Партнер Нефть" [11:10:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:10:33]line СНО: Общий режим [11:10:33]line Чек 224 22.10.2024 11:10 [11:10:33]line Смена: 461 ФФД: 1.0 [11:10:33]line ЗНМ: 0300000155 [11:10:33]line РНМ: 0000000000100030 [11:10:33]line Версия ККМ: 001 [11:10:33]line ФМ: 0000000000965340 [11:10:33]line ФД: 188195 [11:10:33]line ФПД: 180493845841975 [11:10:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111035&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188195&fm=180493845841975&tin=02508201610067®Number=0000000000100030&sum=100000 [11:10:33]written 0, free lines is 4095 [11:10:33]OFD Sender: Processing packet 188195 [packets to send 1062, broken 1061] [11:10:33]ProducePacketName [11:10:33]name=ofd_packets/00188195 [11:10:33]OFD Sender: To server: pG, [11:10:33]CommunicateWithHost lk.salyk.kg:30040 [11:10:33]ConnectInit lk.salyk.kg [11:10:33]Connected sock=8 [11:10:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E 37 07 01 A6 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 00 00 00 F4 03 04 00 2B 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DF 02 00 35 04 06 00 A4 28 7F 90 C8 37 87 D0 CA AD 1A 71 5C EB [11:10:34]Write to MH i2c: 01 00 00 30 46 76 [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: 01 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: 01 07 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: 01 07 00 30 46 00 00 00 00 00 77 0C 00 [11:10:34]RasterBufferAndPrint [11:10:34]line [11:10:34]line [11:10:34]line [11:10:34]line [11:10:34]line [11:10:34]written 0, free lines is 3194 [11:10:34]MH_Cut [11:10:34]Write to MH i2c: D1 01 00 37 46 01 4F [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: D1 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: D1 01 00 [11:10:34]MH_I2C_Read... [11:10:34]Read from MH i2c: D1 01 00 37 46 00 4E [11:10:34]Write to MH i2c: 01 00 00 38 46 7E [11:10:34]Write i2c OK [11:10:34]MH_I2C_Read... [11:10:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5F 85 47 00 E4 86 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 DF 02 00 F4 03 04 00 18 32 17 67 B6 04 01 00 00 26 61 4E C1 20 F0 06 51 [11:10:34]CommunicateWithHost err = 0 [11:10:34]CheckOFDResponse [11:10:34]1017 (14) - 77093643461234 [11:10:34]1041 (16) - 0000000000965340 [11:10:34]1040 (4) - 188195 [11:10:34]1012 (4) - 22.10.2024 05:03 [11:10:34]1206 (1) - 0 [11:10:34]OFD Sender: Remove packet 188195 [11:10:34]ProducePacketName [11:10:34]name=ofd_packets/00188195 [11:10:34]NVStorageDeleteData [11:10:34]OFD Sender: No OFD packet to send [11:10:35]*** Cut start [11:10:35]*** Partial cut [11:10:35]*** CUTSNS_PIN = 1 [11:10:35]*** CUTSNS_PIN = 0 [11:10:35]*** Brake cut motor [11:10:35]Read from MH i2c: 01 [11:10:35]MH_I2C_Read... [11:10:35]*** Stop cut motor [11:10:35]*** Cut end [11:10:35]Read from MH i2c: 01 07 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: 01 07 00 38 46 00 00 00 00 00 FF 0F 93 [11:10:35]process_action close_receipt done [11:10:35]requested_data is exist [11:10:35]produce_requested_data [11:10:35]requested_item fm.sn is exist - process it [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 11 00 00 [11:10:35]Write to MH i2c: E2 08 00 39 46 80 11 00 00 00 00 00 00 F9 [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:35]Read from MH i2c: E2 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 17 00 [11:10:35]MH_I2C_Read... [11:10:35]Read from MH i2c: E2 17 00 39 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [11:10:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:10:35]wFMCommunicate OK [11:10:35]requested_item fd.num is exist - process it [11:10:35]SAM_PROTO_GetFieldsCounters [11:10:35]wFMCommunicate request_size=4 [11:10:35]MH_SAM_APDU [11:10:35]CAPDU: 80 13 00 00 [11:10:35]Write to MH i2c: E2 08 00 3A 46 80 13 00 00 00 00 00 00 FC [11:10:35]Write i2c OK [11:10:35]MH_I2C_Read... [11:10:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:36]Read from MH i2c: E2 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 62 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 62 00 3A 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 75 [11:10:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E0 00 00 00 5E 04 04 00 E0 00 00 00 57 04 04 00 E1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:36]wFMCommunicate OK [11:10:36]SAM_PROTO_GetFieldsCounters done [11:10:36]requested_item shift.num is exist - process it [11:10:36]requested_item shift.opened is exist - process it [11:10:36]req_shift_opened [11:10:36]FM_GetShiftState [11:10:36]SAM_PROTO_GetShiftState [11:10:36]wFMCommunicate request_size=4 [11:10:36]MH_SAM_APDU [11:10:36]CAPDU: 80 13 01 00 [11:10:36]Write to MH i2c: E2 08 00 3B 46 80 13 01 00 00 00 00 00 FE [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:36]Read from MH i2c: E2 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 0E 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 0E 00 3B 46 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F3 [11:10:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:10:36]wFMCommunicate OK [11:10:36]SAM_PROTO_GetShiftState done [11:10:36]FM_GetShiftState done [11:10:36]req_shift_opened done [11:10:36]requested_item shift.open_date is exist - process it [11:10:36]req_shift_open_date [11:10:36]req_shift_open_date done [11:10:36]produce_requested_data done [11:10:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188195,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:10:36]process_action_free close_receipt [11:10:36]json_value_free [11:10:36]json_value_free done [11:10:36]process_json_proto returns [11:10:36]Send response to host [11:10:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188195,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:10:36]free response buf [11:10:36]execute_script done [11:10:36]execute_script returns [11:10:36]free content buf [11:10:36]Sock 9.Close socket [11:10:36]Sock 9.Thread stoped [11:10:36]accept exits with 10 [11:10:36]New connection [11:10:36]New thread 3067198820 created [11:10:36]Thread 3067055460 joined [11:10:36]Waiting for new connection... [11:10:36] Sock 10.Parse request [11:10:36]Sock 10.Check first char [11:10:36]Sock 10.First char is OK [11:10:36]request: POST /json_proto HTTP/1.0 [11:10:36]Method: POST [11:10:36]URL: /json_proto [11:10:36]Method is POST - this is cgi request [11:10:36]url: /json_proto [11:10:36]query_string will be loaded in cgi processing [11:10:36]execute_cgi json_proto POST (null) [11:10:36]execute_cgi path=json_proto method=POST [11:10:36]POST find Content-Length [11:10:36]Host: 172.17.42.131:8080 [11:10:36]Content-Length: 677 [11:10:36]Content-Type: application/json [11:10:36] [11:10:36]POST finish read [11:10:36]Found Content-Length = 677 [11:10:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:36]execute_script... [11:10: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)210247", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:10:36]POST & json_proto [11:10:36]process_json_proto [11:10:36]json parsed OK: [11:10:36]protocol is kg_v1.0 [11:10:36]action value=close_receipt [11:10:36]process_action close_receipt [11:10:36]cmd_close_receipt [11:10:36]MH_GetDate [11:10:36]Write to MH i2c: F0 00 00 3C 46 71 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: F0 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: F0 09 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: F0 09 00 3C 46 00 2F 88 17 67 A0 18 CA 66 97 [11:10:36]GetLastDocTimeStamp 1729595435 [11:10:36]current date 1729595439 [11:10:36]FM_GetShiftState [11:10:36]SAM_PROTO_GetShiftState [11:10:36]wFMCommunicate request_size=4 [11:10:36]MH_SAM_APDU [11:10:36]CAPDU: 80 13 01 00 [11:10:36]Write to MH i2c: E2 08 00 3D 46 80 13 01 00 00 00 00 00 00 [11:10:36]Write i2c OK [11:10:36]MH_I2C_Read... [11:10:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:36]Read from MH i2c: E2 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 0E 00 [11:10:36]MH_I2C_Read... [11:10:36]Read from MH i2c: E2 0E 00 3D 46 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F5 [11:10:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:10:36]wFMCommunicate OK [11:10:36]SAM_PROTO_GetShiftState done [11:10:36]FM_GetShiftState done [11:10:36]opened in 1729556094 [11:10:36]opened+sec_in_day 1729642494 [11:10:36]quantity*price = 50041 [11:10:36]sum+1 = 50042 [11:10:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 225 22.10.2024 11:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188196 ФПД: 141721680589594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188196&fm=141721680589594&tin=02508201610067®Number=0000000000100030&sum=50000 [11:10:37]StoreToDocumentArchive [11:10:37]shift 461 fd 188196 [11:10:37]save to /storage/0461/doc_00188196 [11:10:37]save last doc name /storage/0461/doc_00188196 to /storage/kkm_last_doc_name [11:10:37]save OK [11:10:37]Clear old archive folders... [11:10:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:10:37]tlvbuf is 01BAFC20 [11:10:37]SAM_PROTO_ClearQueue [11:10:37]wFMCommunicate request_size=4 [11:10:37]MH_SAM_APDU [11:10:37]CAPDU: 80 09 00 00 [11:10:37]Write to MH i2c: E2 08 00 4A 46 80 09 00 00 00 00 00 00 02 [11:10:37]Write i2c OK [11:10:37]MH_I2C_Read... [11:10:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:10:37]Read from MH i2c: E2 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 03 00 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 03 00 4A 46 00 90 00 04 [11:10:37]RAPDU: 90 00 [11:10:37]wFMCommunicate OK [11:10:37]SAM_PROTO_ClearQueue done [11:10:37]KKMCreateOFDPacket [11:10:37]OFDProtocolAddRootSTLVToBuf [11:10:37]FM_MakeSignedData [11:10:37]FM_MakeSignedData [11:10:37]SAM_PROTO_SignData [11:10:37]wFMCommunicate request_size=4 [11:10:37]MH_SAM_APDU [11:10:37]CAPDU: 80 0D 01 02 [11:10:37]Write to MH i2c: E2 08 00 4B 46 80 0D 01 02 00 00 00 00 0A [11:10:37]Write i2c OK [11:10:37]MH_I2C_Read... [11:10:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:10:37]Read from MH i2c: E2 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 03 00 [11:10:37]MH_I2C_Read... [11:10:37]Read from MH i2c: E2 03 00 4B 46 00 90 00 05 [11:10:37]RAPDU: 90 00 [11:10:37]wFMCommunicate OK [11:10:37]wFMCommunicate request_size=255 [11:10:37]MH_SAM_APDU [11:10:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2F 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DF 02 00 35 04 06 00 80 [11:10:37]Write to MH i2c: E2 02 01 4C 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2F 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DF 02 00 35 04 06 00 80 00 00 E6 [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 03 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 03 00 4C 46 00 90 00 06 [11:10:38]RAPDU: 90 00 [11:10:38]wFMCommunicate OK [11:10:38]wFMCommunicate request_size=10 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 0D 02 02 05 E5 26 6D B3 1A [11:10:38]Write to MH i2c: E2 0D 00 4D 46 80 0D 02 02 05 00 E5 26 6D B3 1A 00 00 5C [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 03 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 03 00 4D 46 00 90 00 07 [11:10:38]RAPDU: 90 00 [11:10:38]wFMCommunicate OK [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 0D 03 02 [11:10:38]Write to MH i2c: E2 08 00 4E 46 80 0D 03 02 00 00 00 00 0F [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 0B 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 0B 00 4E 46 00 5C 1E 95 19 6F 69 14 1F 90 00 43 [11:10:38]RAPDU: 5C 1E 95 19 6F 69 14 1F 90 00 [11:10:38]wFMCommunicate OK [11:10:38]SAM_PROTO_SignData done [11:10:38]FM_MakeSignedData done [11:10:38]CreateOFDProtocolMessage [11:10:38]wFMCommunicate request_size=4 [11:10:38]MH_SAM_APDU [11:10:38]CAPDU: 80 11 00 00 [11:10:38]Write to MH i2c: E2 08 00 4F 46 80 11 00 00 00 00 00 00 0F [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:38]Read from MH i2c: E2 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 17 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: E2 17 00 4F 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [11:10:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:10:38]wFMCommunicate OK [11:10:38]CreateOFDProtocolMessage done [11:10:38]OFDSenderStorePacket 188196 [11:10:38]StoreOFDPacket docnum=188196 [11:10:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E5 05 07 01 58 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2F 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DF 02 00 35 04 06 00 80 E5 26 6D B3 1A 5C 1E 95 19 6F 69 14 1F [11:10:38]CheckFolder [11:10:38]dirname=/storage/ofd_packets [11:10:38]CheckFolder done [11:10:38]ProducePacketName [11:10:38]name=ofd_packets/00188196 [11:10:38]NVStorageSaveData ofd_packets/00188196 [11:10:38]File name is /storage/ofd_packets/00188196 [11:10:38]Write 301 bytes [11:10:38]NVStorageSaveData done [11:10:38]OFDSenderStorePacket done [11:10:38]KKMCreateOFDPacket done [11:10:38]NVStorageSaveData kkm_last_timestamp [11:10:38]File name is /storage/kkm_last_timestamp [11:10:38]Write 4 bytes [11:10:38]NVStorageSaveData done [11:10:38]ExternCall_PrintAddStr [11:10:38]wPrintStart [11:10:38]Write to MH i2c: 01 00 00 50 46 96 [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 07 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 07 00 50 46 00 00 00 00 00 FF 0F AB [11:10:38]RasterBufferAndPrint [11:10:38]line Счет N : (1)210247 [11:10:38]line ИНН: 02508201610067 [11:10:38]line Контрольно-Кассовый Чек [11:10:38]line ПРОДАЖА [11:10:38]line ТРК (МРК, ГНК) : 22 [11:10:38]line Товар: 2710124130 [11:10:38]line Аи-92-К-3 [11:10:38]line 7.480 * 66.90 [11:10:38]line = 500.41 [11:10:38]line НДС 12% НСП 1% [11:10:38]line > о реализуемом товаре [11:10:38]line ОКРУГЛЕНИЕ: -0.41 [11:10:38]line ИТОГО: 500.00 [11:10:38]line Внесено: 500.00 [11:10:38]line СДАЧА: 0.00 [11:10:38]line НСП 1% : 4.43 [11:10:38]line НДС 12% : 53.14 [11:10:38]line Наличными: 500.00 [11:10:38]line Безнал.: 0.00 [11:10:38]line Место: АЗС № 86 "Партнер Нефть" [11:10:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:10:38]line СНО: Общий режим [11:10:38]line Чек 225 22.10.2024 11:10 [11:10:38]line Смена: 461 ФФД: 1.0 [11:10:38]line ЗНМ: 0300000155 [11:10:38]line РНМ: 0000000000100030 [11:10:38]line Версия ККМ: 001 [11:10:38]line ФМ: 0000000000965340 [11:10:38]line ФД: 188196 [11:10:38]line ФПД: 141721680589594 [11:10:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188196&fm=141721680589594&tin=02508201610067®Number=0000000000100030&sum=50000 [11:10:38]OFD Sender: Processing packet 188196 [packets to send 1062, broken 1061] [11:10:38]ProducePacketName [11:10:38]name=ofd_packets/00188196 [11:10:38]OFD Sender: To server: pG, [11:10:38]CommunicateWithHost lk.salyk.kg:30040 [11:10:38]ConnectInit lk.salyk.kg [11:10:38]written 0, free lines is 4095 [11:10:38]Connected sock=9 [11:10:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E5 05 07 01 58 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 00 00 00 F4 03 04 00 2F 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DF 02 00 35 04 06 00 80 E5 26 6D B3 1A 5C 1E 95 19 6F 69 14 1F [11:10:38]Write to MH i2c: 01 00 00 7B 46 C1 [11:10:38]Write i2c OK [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 07 00 [11:10:38]MH_I2C_Read... [11:10:38]Read from MH i2c: 01 07 00 7B 46 00 00 00 00 00 6E 0C 42 [11:10:38]RasterBufferAndPrint [11:10:38]line [11:10:38]line [11:10:38]line [11:10:38]line [11:10:38]line [11:10:38]written 0, free lines is 3189 [11:10:39]MH_Cut [11:10:39]Write to MH i2c: D1 01 00 82 46 01 9A [11:10:39]Write i2c OK [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: D1 [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: D1 01 00 [11:10:39]MH_I2C_Read... [11:10:39]Read from MH i2c: D1 01 00 82 46 00 99 [11:10:39]Write to MH i2c: 01 00 00 83 46 C9 [11:10:39]Write i2c OK [11:10:39]MH_I2C_Read... [11:10:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D B5 47 00 C3 64 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 DF 02 00 F4 03 04 00 1D 32 17 67 B6 04 01 00 00 65 D8 31 97 80 D0 BF 26 [11:10:39]CommunicateWithHost err = 0 [11:10:39]CheckOFDResponse [11:10:39]1017 (14) - 77093643461234 [11:10:39]1041 (16) - 0000000000965340 [11:10:39]1040 (4) - 188196 [11:10:39]1012 (4) - 22.10.2024 05:03 [11:10:39]1206 (1) - 0 [11:10:39]OFD Sender: Remove packet 188196 [11:10:39]ProducePacketName [11:10:39]name=ofd_packets/00188196 [11:10:39]NVStorageDeleteData [11:10:39]OFD Sender: No OFD packet to send [11:10:40]*** Cut start [11:10:40]*** Partial cut [11:10:40]*** CUTSNS_PIN = 1 [11:10:40]*** CUTSNS_PIN = 0 [11:10:40]*** Brake cut motor [11:10:40]Read from MH i2c: 01 [11:10:40]MH_I2C_Read... [11:10:40]*** Stop cut motor [11:10:40]*** Cut end [11:10:40]Read from MH i2c: 01 07 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: 01 07 00 83 46 00 00 00 00 00 FF 0F DE [11:10:40]process_action close_receipt done [11:10:40]requested_data is exist [11:10:40]produce_requested_data [11:10:40]requested_item fm.sn is exist - process it [11:10:40]wFMCommunicate request_size=4 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 11 00 00 [11:10:40]Write to MH i2c: E2 08 00 84 46 80 11 00 00 00 00 00 00 44 [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:10:40]Read from MH i2c: E2 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 17 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 17 00 84 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [11:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:10:40]wFMCommunicate OK [11:10:40]requested_item fd.num is exist - process it [11:10:40]SAM_PROTO_GetFieldsCounters [11:10:40]wFMCommunicate request_size=4 [11:10:40]MH_SAM_APDU [11:10:40]CAPDU: 80 13 00 00 [11:10:40]Write to MH i2c: E2 08 00 85 46 80 13 00 00 00 00 00 00 47 [11:10:40]Write i2c OK [11:10:40]MH_I2C_Read... [11:10:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:10:40]Read from MH i2c: E2 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 62 00 [11:10:40]MH_I2C_Read... [11:10:40]Read from MH i2c: E2 62 00 85 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:10:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E1 00 00 00 5E 04 04 00 E1 00 00 00 57 04 04 00 E2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:10:41]wFMCommunicate OK [11:10:41]SAM_PROTO_GetFieldsCounters done [11:10:41]requested_item shift.num is exist - process it [11:10:41]requested_item shift.opened is exist - process it [11:10:41]req_shift_opened [11:10:41]FM_GetShiftState [11:10:41]SAM_PROTO_GetShiftState [11:10:41]wFMCommunicate request_size=4 [11:10:41]MH_SAM_APDU [11:10:41]CAPDU: 80 13 01 00 [11:10:41]Write to MH i2c: E2 08 00 86 46 80 13 01 00 00 00 00 00 49 [11:10:41]Write i2c OK [11:10:41]MH_I2C_Read... [11:10:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:10:41]Read from MH i2c: E2 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 0E 00 [11:10:41]MH_I2C_Read... [11:10:41]Read from MH i2c: E2 0E 00 86 46 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3E [11:10:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:10:41]wFMCommunicate OK [11:10:41]SAM_PROTO_GetShiftState done [11:10:41]FM_GetShiftState done [11:10:41]req_shift_opened done [11:10:41]requested_item shift.open_date is exist - process it [11:10:41]req_shift_open_date [11:10:41]req_shift_open_date done [11:10:41]produce_requested_data done [11:10:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188196,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:10:41]process_action_free close_receipt [11:10:41]json_value_free [11:10:41]json_value_free done [11:10:41]process_json_proto returns [11:10:41]Send response to host [11:10:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188196,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:10:41]free response buf [11:10:41]execute_script done [11:10:41]execute_script returns [11:10:41]free content buf [11:10:41]Sock 10.Close socket [11:10:41]Sock 10.Thread stoped [11:10:44]OFD Sender: No OFD packet to send [11:10:49]OFD Sender: No OFD packet to send [11:10:54]OFD Sender: No OFD packet to send [11:10:59]OFD Sender: No OFD packet to send [11:11:04]OFD Sender: No OFD packet to send [11:11:09]OFD Sender: No OFD packet to send [11:11:14]OFD Sender: No OFD packet to send [11:11:19]OFD Sender: No OFD packet to send [11:11:24]OFD Sender: No OFD packet to send [11:11:29]OFD Sender: No OFD packet to send [11:11:34]OFD Sender: No OFD packet to send [11:11:39]OFD Sender: No OFD packet to send [11:11:44]OFD Sender: No OFD packet to send [11:11:49]OFD Sender: No OFD packet to send [11:11:55]OFD Sender: No OFD packet to send [11:12:00]OFD Sender: No OFD packet to send [11:12:05]OFD Sender: No OFD packet to send [11:12:10]OFD Sender: No OFD packet to send [11:12:15]OFD Sender: No OFD packet to send [11:12:20]OFD Sender: No OFD packet to send [11:12:25]OFD Sender: No OFD packet to send [11:12:30]OFD Sender: No OFD packet to send [11:12:35]OFD Sender: No OFD packet to send [11:12:40]OFD Sender: No OFD packet to send [11:12:45]OFD Sender: No OFD packet to send [11:12:50]OFD Sender: No OFD packet to send [11:12:55]OFD Sender: No OFD packet to send [11:13:00]OFD Sender: No OFD packet to send [11:13:05]OFD Sender: No OFD packet to send [11:13:10]OFD Sender: No OFD packet to send [11:13:15]OFD Sender: No OFD packet to send [11:13:20]OFD Sender: No OFD packet to send [11:13:25]OFD Sender: No OFD packet to send [11:13:30]OFD Sender: No OFD packet to send [11:13:35]OFD Sender: No OFD packet to send [11:13:40]OFD Sender: No OFD packet to send [11:13:45]OFD Sender: No OFD packet to send [11:13:50]OFD Sender: No OFD packet to send [11:13:50]accept exits with 8 [11:13:50]New connection [11:13:50]New thread 3067055460 created [11:13:50]Thread 3067198820 joined [11:13:50]Waiting for new connection... [11:13:50] Sock 8.Parse request [11:13:50]Sock 8.Check first char [11:13:50]Sock 8.First char is OK [11:13:50]request: POST /json_proto HTTP/1.0 [11:13:50]Method: POST [11:13:50]URL: /json_proto [11:13:50]Method is POST - this is cgi request [11:13:50]url: /json_proto [11:13:50]query_string will be loaded in cgi processing [11:13:50]execute_cgi json_proto POST (null) [11:13:50]execute_cgi path=json_proto method=POST [11:13:50]POST find Content-Length [11:13:50]Host: 172.17.42.131:8080 [11:13:50]Content-Length: 688 [11:13:50]Content-Type: application/json [11:13:50] [11:13:50]POST finish read [11:13:50]Found Content-Length = 688 [11:13:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:13:50]execute_script... [11:13: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)210249", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:13:50]POST & json_proto [11:13:50]process_json_proto [11:13:50]json parsed OK: [11:13:50]protocol is kg_v1.0 [11:13:50]action value=close_receipt [11:13:50]process_action close_receipt [11:13:50]cmd_close_receipt [11:13:50]MH_GetDate [11:13:50]Write to MH i2c: F0 00 00 87 46 BC [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: F0 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: F0 09 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: F0 09 00 87 46 00 F1 88 17 67 A0 18 CA 66 A4 [11:13:50]GetLastDocTimeStamp 1729595439 [11:13:50]current date 1729595633 [11:13:50]FM_GetShiftState [11:13:50]SAM_PROTO_GetShiftState [11:13:50]wFMCommunicate request_size=4 [11:13:50]MH_SAM_APDU [11:13:50]CAPDU: 80 13 01 00 [11:13:50]Write to MH i2c: E2 08 00 88 46 80 13 01 00 00 00 00 00 4B [11:13:50]Write i2c OK [11:13:50]MH_I2C_Read... [11:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:50]Read from MH i2c: E2 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 0E 00 [11:13:50]MH_I2C_Read... [11:13:50]Read from MH i2c: E2 0E 00 88 46 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 40 [11:13:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:13:50]wFMCommunicate OK [11:13:50]SAM_PROTO_GetShiftState done [11:13:50]FM_GetShiftState done [11:13:50]opened in 1729556094 [11:13:50]opened+sec_in_day 1729642494 [11:13:50]quantity*price = 200025 [11:13:50]sum+1 = 200026 [11:13:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 226 22.10.2024 11:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188197 ФПД: 250554071909574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188197&fm=250554071909574&tin=02508201610067®Number=0000000000100030&sum=200000 [11:13:51]StoreToDocumentArchive [11:13:51]shift 461 fd 188197 [11:13:51]save to /storage/0461/doc_00188197 [11:13:51]save last doc name /storage/0461/doc_00188197 to /storage/kkm_last_doc_name [11:13:51]save OK [11:13:51]Clear old archive folders... [11:13:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:13:51]tlvbuf is 01BF2820 [11:13:51]SAM_PROTO_ClearQueue [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 09 00 00 [11:13:51]Write to MH i2c: E2 08 00 95 46 80 09 00 00 00 00 00 00 4D [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 95 46 00 90 00 4F [11:13:51]RAPDU: 90 00 [11:13:51]wFMCommunicate OK [11:13:51]SAM_PROTO_ClearQueue done [11:13:51]KKMCreateOFDPacket [11:13:51]OFDProtocolAddRootSTLVToBuf [11:13:51]FM_MakeSignedData [11:13:51]FM_MakeSignedData [11:13:51]SAM_PROTO_SignData [11:13:51]wFMCommunicate request_size=4 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 0D 01 02 [11:13:51]Write to MH i2c: E2 08 00 96 46 80 0D 01 02 00 00 00 00 55 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:13:51]Read from MH i2c: E2 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 [11:13:51]MH_I2C_Read... [11:13:51]Read from MH i2c: E2 03 00 96 46 00 90 00 50 [11:13:51]RAPDU: 90 00 [11:13:51]wFMCommunicate OK [11:13:51]wFMCommunicate request_size=255 [11:13:51]MH_SAM_APDU [11:13:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 E2 00 00 00 F4 03 04 00 F1 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DF 02 [11:13:51]Write to MH i2c: E2 02 01 97 46 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 E2 00 00 00 F4 03 04 00 F1 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DF 02 00 00 A3 [11:13:51]Write i2c OK [11:13:51]MH_I2C_Read... [11:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:52]Read from MH i2c: E2 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 03 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 03 00 97 46 00 90 00 51 [11:13:52]RAPDU: 90 00 [11:13:52]wFMCommunicate OK [11:13:52]wFMCommunicate request_size=16 [11:13:52]MH_SAM_APDU [11:13:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E3 E0 AA 74 04 C6 [11:13:52]Write to MH i2c: E2 13 00 98 46 80 0D 02 02 0B 00 00 35 04 06 00 E3 E0 AA 74 04 C6 00 00 58 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:13:52]Read from MH i2c: E2 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 03 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 03 00 98 46 00 90 00 52 [11:13:52]RAPDU: 90 00 [11:13:52]wFMCommunicate OK [11:13:52]wFMCommunicate request_size=4 [11:13:52]MH_SAM_APDU [11:13:52]CAPDU: 80 0D 03 02 [11:13:52]Write to MH i2c: E2 08 00 99 46 80 0D 03 02 00 00 00 00 5A [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:13:52]Read from MH i2c: E2 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 0B 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 0B 00 99 46 00 4A DE 99 0E EA 63 54 DF 90 00 AA [11:13:52]RAPDU: 4A DE 99 0E EA 63 54 DF 90 00 [11:13:52]wFMCommunicate OK [11:13:52]SAM_PROTO_SignData done [11:13:52]FM_MakeSignedData done [11:13:52]CreateOFDProtocolMessage [11:13:52]wFMCommunicate request_size=4 [11:13:52]MH_SAM_APDU [11:13:52]CAPDU: 80 11 00 00 [11:13:52]Write to MH i2c: E2 08 00 9A 46 80 11 00 00 00 00 00 00 5A [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:52]Read from MH i2c: E2 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 17 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: E2 17 00 9A 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [11:13:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:13:52]wFMCommunicate OK [11:13:52]CreateOFDProtocolMessage done [11:13:52]OFDSenderStorePacket 188197 [11:13:52]StoreOFDPacket docnum=188197 [11:13:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AA 81 0D 01 46 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 E2 00 00 00 F4 03 04 00 F1 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DF 02 00 35 04 06 00 E3 E0 AA 74 04 C6 4A DE 99 0E EA 63 54 DF [11:13:52]CheckFolder [11:13:52]dirname=/storage/ofd_packets [11:13:52]CheckFolder done [11:13:52]ProducePacketName [11:13:52]name=ofd_packets/00188197 [11:13:52]NVStorageSaveData ofd_packets/00188197 [11:13:52]File name is /storage/ofd_packets/00188197 [11:13:52]Write 307 bytes [11:13:52]NVStorageSaveData done [11:13:52]OFDSenderStorePacket done [11:13:52]KKMCreateOFDPacket done [11:13:52]NVStorageSaveData kkm_last_timestamp [11:13:52]File name is /storage/kkm_last_timestamp [11:13:52]Write 4 bytes [11:13:52]NVStorageSaveData done [11:13:52]ExternCall_PrintAddStr [11:13:52]wPrintStart [11:13:52]Write to MH i2c: 01 00 00 9B 46 E1 [11:13:52]Write i2c OK [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 07 00 [11:13:52]MH_I2C_Read... [11:13:52]Read from MH i2c: 01 07 00 9B 46 00 00 00 00 00 FF 0F F6 [11:13:52]RasterBufferAndPrint [11:13:52]line Счет N : (1)210249 [11:13:52]line ИНН: 02508201610067 [11:13:52]line Контрольно-Кассовый Чек [11:13:52]line ПРОДАЖА [11:13:52]line ТРК (МРК, ГНК) : 41 [11:13:52]line Товар: 2710194210 [11:13:52]line D-ENERGY ДТ-К-5 [11:13:52]line 25.910 * 77.20 [11:13:52]line = 2000.25 [11:13:52]line НДС 12% НСП 1% [11:13:52]line > о реализуемом товаре [11:13:52]line ОКРУГЛЕНИЕ: -0.25 [11:13:52]line ИТОГО: 2000.00 [11:13:52]line Внесено: 2000.00 [11:13:52]line СДАЧА: 0.00 [11:13:52]line НСП 1% : 17.70 [11:13:52]line НДС 12% : 212.42 [11:13:52]line Наличными: 2000.00 [11:13:52]line Безнал.: 0.00 [11:13:52]line Место: АЗС № 86 "Партнер Нефть" [11:13:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:13:52]line СНО: Общий режим [11:13:52]line Чек 226 22.10.2024 11:13 [11:13:52]line Смена: 461 ФФД: 1.0 [11:13:52]line ЗНМ: 0300000155 [11:13:52]line РНМ: 0000000000100030 [11:13:52]line Версия ККМ: 001 [11:13:52]line ФМ: 0000000000965340 [11:13:52]line ФД: 188197 [11:13:52]line ФПД: 250554071909574 [11:13:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111353&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188197&fm=250554071909574&tin=02508201610067®Number=0000000000100030&sum=200000 [11:13:52]OFD Sender: Processing packet 188197 [packets to send 1062, broken 1061] [11:13:52]ProducePacketName [11:13:52]name=ofd_packets/00188197 [11:13:52]OFD Sender: To server: pG, [11:13:52]CommunicateWithHost lk.salyk.kg:30040 [11:13:52]ConnectInit lk.salyk.kg [11:13:52]written 0, free lines is 4095 [11:13:52]Connected sock=10 [11:13:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AA 81 0D 01 46 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 E2 00 00 00 F4 03 04 00 F1 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 DF 02 00 35 04 06 00 E3 E0 AA 74 04 C6 4A DE 99 0E EA 63 54 DF [11:13:53]Write to MH i2c: 01 00 00 C6 46 0C [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: 01 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: 01 07 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: 01 07 00 C6 46 00 00 00 00 00 72 0C 91 [11:13:53]RasterBufferAndPrint [11:13:53]line [11:13:53]line [11:13:53]line [11:13:53]line [11:13:53]line [11:13:53]written 0, free lines is 3188 [11:13:53]MH_Cut [11:13:53]Write to MH i2c: D1 01 00 CD 46 01 E5 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: D1 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: D1 01 00 [11:13:53]MH_I2C_Read... [11:13:53]Read from MH i2c: D1 01 00 CD 46 00 E4 [11:13:53]Write to MH i2c: 01 00 00 CE 46 14 [11:13:53]Write i2c OK [11:13:53]MH_I2C_Read... [11:13:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 52 47 00 41 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 39 36 35 33 34 30 10 04 04 00 25 DF 02 00 F4 03 04 00 DF 32 17 67 B6 04 01 00 00 83 1D 80 46 51 7D 97 99 [11:13:53]CommunicateWithHost err = 0 [11:13:53]CheckOFDResponse [11:13:53]1017 (14) - 77093643461234 [11:13:53]1041 (16) - 0000000000965340 [11:13:53]1040 (4) - 188197 [11:13:53]1012 (4) - 22.10.2024 05:06 [11:13:53]1206 (1) - 0 [11:13:53]OFD Sender: Remove packet 188197 [11:13:53]ProducePacketName [11:13:53]name=ofd_packets/00188197 [11:13:53]NVStorageDeleteData [11:13:53]OFD Sender: No OFD packet to send [11:13:54]*** Cut start [11:13:54]*** Partial cut [11:13:54]*** CUTSNS_PIN = 1 [11:13:54]*** CUTSNS_PIN = 0 [11:13:54]*** Brake cut motor [11:13:54]Read from MH i2c: 01 [11:13:54]MH_I2C_Read... [11:13:54]*** Stop cut motor [11:13:55]*** Cut end [11:13:55]Read from MH i2c: 01 07 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: 01 07 00 CE 46 00 00 00 00 00 FF 0F 29 [11:13:55]process_action close_receipt done [11:13:55]requested_data is exist [11:13:55]produce_requested_data [11:13:55]requested_item fm.sn is exist - process it [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 11 00 00 [11:13:55]Write to MH i2c: E2 08 00 CF 46 80 11 00 00 00 00 00 00 8F [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 17 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 17 00 CF 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [11:13:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:13:55]wFMCommunicate OK [11:13:55]requested_item fd.num is exist - process it [11:13:55]SAM_PROTO_GetFieldsCounters [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 13 00 00 [11:13:55]Write to MH i2c: E2 08 00 D0 46 80 13 00 00 00 00 00 00 92 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 62 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 62 00 D0 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 13 [11:13:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E2 00 00 00 5E 04 04 00 E2 00 00 00 57 04 04 00 E3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_GetFieldsCounters done [11:13:55]requested_item shift.num is exist - process it [11:13:55]requested_item shift.opened is exist - process it [11:13:55]req_shift_opened [11:13:55]FM_GetShiftState [11:13:55]SAM_PROTO_GetShiftState [11:13:55]wFMCommunicate request_size=4 [11:13:55]MH_SAM_APDU [11:13:55]CAPDU: 80 13 01 00 [11:13:55]Write to MH i2c: E2 08 00 D1 46 80 13 01 00 00 00 00 00 94 [11:13:55]Write i2c OK [11:13:55]MH_I2C_Read... [11:13:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:13:55]Read from MH i2c: E2 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0E 00 [11:13:55]MH_I2C_Read... [11:13:55]Read from MH i2c: E2 0E 00 D1 46 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 89 [11:13:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:13:55]wFMCommunicate OK [11:13:55]SAM_PROTO_GetShiftState done [11:13:55]FM_GetShiftState done [11:13:55]req_shift_opened done [11:13:55]requested_item shift.open_date is exist - process it [11:13:55]req_shift_open_date [11:13:55]req_shift_open_date done [11:13:55]produce_requested_data done [11:13:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188197,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:13:55]process_action_free close_receipt [11:13:55]json_value_free [11:13:55]json_value_free done [11:13:55]process_json_proto returns [11:13:55]Send response to host [11:13:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188197,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:13:55]free response buf [11:13:55]execute_script done [11:13:55]execute_script returns [11:13:55]free content buf [11:13:55]Sock 8.Close socket [11:13:55]Sock 8.Thread stoped [11:13:58]OFD Sender: No OFD packet to send [11:14:02]accept exits with 9 [11:14:02]New connection [11:14:02]New thread 3067198820 created [11:14:02]Thread 3067055460 joined [11:14:02]Waiting for new connection... [11:14:02] Sock 9.Parse request [11:14:02]Sock 9.Check first char [11:14:02]Sock 9.First char is OK [11:14:02]request: POST /json_proto HTTP/1.0 [11:14:02]Method: POST [11:14:02]URL: /json_proto [11:14:02]Method is POST - this is cgi request [11:14:02]url: /json_proto [11:14:02]query_string will be loaded in cgi processing [11:14:02]execute_cgi json_proto POST (null) [11:14:02]execute_cgi path=json_proto method=POST [11:14:02]POST find Content-Length [11:14:02]Host: 172.17.42.131:8080 [11:14:02]Content-Length: 682 [11:14:02]Content-Type: application/json [11:14:02] [11:14:02]POST finish read [11:14:02]Found Content-Length = 682 [11:14:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:02]execute_script... [11:14: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)210250", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:14:02]POST & json_proto [11:14:02]process_json_proto [11:14:02]json parsed OK: [11:14:02]protocol is kg_v1.0 [11:14:02]action value=close_receipt [11:14:02]process_action close_receipt [11:14:02]cmd_close_receipt [11:14:02]MH_GetDate [11:14:02]Write to MH i2c: F0 00 00 D2 46 07 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: F0 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: F0 09 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: F0 09 00 D2 46 00 FD 88 17 67 A0 18 CA 66 FB [11:14:02]GetLastDocTimeStamp 1729595633 [11:14:02]current date 1729595645 [11:14:02]FM_GetShiftState [11:14:02]SAM_PROTO_GetShiftState [11:14:02]wFMCommunicate request_size=4 [11:14:02]MH_SAM_APDU [11:14:02]CAPDU: 80 13 01 00 [11:14:02]Write to MH i2c: E2 08 00 D3 46 80 13 01 00 00 00 00 00 96 [11:14:02]Write i2c OK [11:14:02]MH_I2C_Read... [11:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:02]Read from MH i2c: E2 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0E 00 [11:14:02]MH_I2C_Read... [11:14:02]Read from MH i2c: E2 0E 00 D3 46 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8B [11:14:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:14:02]wFMCommunicate OK [11:14:02]SAM_PROTO_GetShiftState done [11:14:02]FM_GetShiftState done [11:14:02]opened in 1729556094 [11:14:02]opened+sec_in_day 1729642494 [11:14:02]quantity*price = 100015 [11:14:02]sum+1 = 100017 [11:14:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 227 22.10.2024 11:14 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188198 ФПД: 182667513188696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111405&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188198&fm=182667513188696&tin=02508201610067®Number=0000000000100030&sum=100000 [11:14:03]StoreToDocumentArchive [11:14:03]shift 461 fd 188198 [11:14:03]save to /storage/0461/doc_00188198 [11:14:03]save last doc name /storage/0461/doc_00188198 to /storage/kkm_last_doc_name [11:14:03]save OK [11:14:03]Clear old archive folders... [11:14:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:14:03]tlvbuf is 01BB3980 [11:14:03]SAM_PROTO_ClearQueue [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 09 00 00 [11:14:03]Write to MH i2c: E2 08 00 E0 46 80 09 00 00 00 00 00 00 98 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 03 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 03 00 E0 46 00 90 00 9A [11:14:03]RAPDU: 90 00 [11:14:03]wFMCommunicate OK [11:14:03]SAM_PROTO_ClearQueue done [11:14:03]KKMCreateOFDPacket [11:14:03]OFDProtocolAddRootSTLVToBuf [11:14:03]FM_MakeSignedData [11:14:03]FM_MakeSignedData [11:14:03]SAM_PROTO_SignData [11:14:03]wFMCommunicate request_size=4 [11:14:03]MH_SAM_APDU [11:14:03]CAPDU: 80 0D 01 02 [11:14:03]Write to MH i2c: E2 08 00 E1 46 80 0D 01 02 00 00 00 00 A0 [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:14:03]Read from MH i2c: E2 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 03 00 [11:14:03]MH_I2C_Read... [11:14:03]Read from MH i2c: E2 03 00 E1 46 00 90 00 9B [11:14:03]RAPDU: 90 00 [11:14:03]wFMCommunicate OK [11:14:03]wFMCommunicate request_size=255 [11:14:03]MH_SAM_APDU [11:14: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 FD 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DF 02 00 35 04 06 00 A6 [11:14:03]Write to MH i2c: E2 02 01 E2 46 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 FD 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DF 02 00 35 04 06 00 A6 00 00 6E [11:14:03]Write i2c OK [11:14:03]MH_I2C_Read... [11:14:03]OFD Sender: No OFD packet to send [11:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 E2 46 00 90 00 9C [11:14:04]RAPDU: 90 00 [11:14:04]wFMCommunicate OK [11:14:04]wFMCommunicate request_size=10 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 0D 02 02 05 22 98 3C 51 58 [11:14:04]Write to MH i2c: E2 0D 00 E3 46 80 0D 02 02 05 00 22 98 3C 51 58 00 00 4C [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 03 00 E3 46 00 90 00 9D [11:14:04]RAPDU: 90 00 [11:14:04]wFMCommunicate OK [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 0D 03 02 [11:14:04]Write to MH i2c: E2 08 00 E4 46 80 0D 03 02 00 00 00 00 A5 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0B 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 0B 00 E4 46 00 63 AE E4 B3 0D C2 7D 00 90 00 9A [11:14:04]RAPDU: 63 AE E4 B3 0D C2 7D 00 90 00 [11:14:04]wFMCommunicate OK [11:14:04]SAM_PROTO_SignData done [11:14:04]FM_MakeSignedData done [11:14:04]CreateOFDProtocolMessage [11:14:04]wFMCommunicate request_size=4 [11:14:04]MH_SAM_APDU [11:14:04]CAPDU: 80 11 00 00 [11:14:04]Write to MH i2c: E2 08 00 E5 46 80 11 00 00 00 00 00 00 A5 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:14:04]Read from MH i2c: E2 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 17 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: E2 17 00 E5 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [11:14:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:14:04]wFMCommunicate OK [11:14:04]CreateOFDProtocolMessage done [11:14:04]OFDSenderStorePacket 188198 [11:14:04]StoreOFDPacket docnum=188198 [11:14:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB 94 07 01 E8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 FD 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DF 02 00 35 04 06 00 A6 22 98 3C 51 58 63 AE E4 B3 0D C2 7D 00 [11:14:04]CheckFolder [11:14:04]dirname=/storage/ofd_packets [11:14:04]CheckFolder done [11:14:04]ProducePacketName [11:14:04]name=ofd_packets/00188198 [11:14:04]NVStorageSaveData ofd_packets/00188198 [11:14:04]File name is /storage/ofd_packets/00188198 [11:14:04]Write 301 bytes [11:14:04]NVStorageSaveData done [11:14:04]OFDSenderStorePacket done [11:14:04]KKMCreateOFDPacket done [11:14:04]NVStorageSaveData kkm_last_timestamp [11:14:04]File name is /storage/kkm_last_timestamp [11:14:04]Write 4 bytes [11:14:04]NVStorageSaveData done [11:14:04]ExternCall_PrintAddStr [11:14:04]wPrintStart [11:14:04]Write to MH i2c: 01 00 00 E6 46 2C [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 E6 46 00 00 00 00 00 FF 0F 41 [11:14:04]RasterBufferAndPrint [11:14:04]line Счет N : (1)210250 [11:14:04]line ИНН: 02508201610067 [11:14:04]line Контрольно-Кассовый Чек [11:14:04]line ПРОДАЖА [11:14:04]line ТРК (МРК, ГНК) : 22 [11:14:04]line Товар: 2710124130 [11:14:04]line Аи-92-К-3 [11:14:04]line 14.950 * 66.90 [11:14:04]line = 1000.16 [11:14:04]line НДС 12% НСП 1% [11:14:04]line > о реализуемом товаре [11:14:04]line ОКРУГЛЕНИЕ: -0.16 [11:14:04]line ИТОГО: 1000.00 [11:14:04]line Внесено: 1000.00 [11:14:04]line СДАЧА: 0.00 [11:14:04]line НСП 1% : 8.85 [11:14:04]line НДС 12% : 106.21 [11:14:04]line Наличными: 1000.00 [11:14:04]line Безнал.: 0.00 [11:14:04]line Место: АЗС № 86 "Партнер Нефть" [11:14:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:14:04]line СНО: Общий режим [11:14:04]line Чек 227 22.10.2024 11:14 [11:14:04]line Смена: 461 ФФД: 1.0 [11:14:04]line ЗНМ: 0300000155 [11:14:04]line РНМ: 0000000000100030 [11:14:04]line Версия ККМ: 001 [11:14:04]line ФМ: 0000000000965340 [11:14:04]line ФД: 188198 [11:14:04]line ФПД: 182667513188696 [11:14:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111405&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188198&fm=182667513188696&tin=02508201610067®Number=0000000000100030&sum=100000 [11:14:04]written 0, free lines is 4095 [11:14:04]OFD Sender: Processing packet 188198 [packets to send 1062, broken 1061] [11:14:04]ProducePacketName [11:14:04]name=ofd_packets/00188198 [11:14:04]OFD Sender: To server: pG, [11:14:04]CommunicateWithHost lk.salyk.kg:30040 [11:14:04]ConnectInit lk.salyk.kg [11:14:04]Connected sock=10 [11:14:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB 94 07 01 E8 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 00 00 00 F4 03 04 00 FD 88 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DF 02 00 35 04 06 00 A6 22 98 3C 51 58 63 AE E4 B3 0D C2 7D 00 [11:14:04]Write to MH i2c: 01 00 00 11 47 58 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: 01 07 00 11 47 00 00 00 00 00 70 0C DB [11:14:04]RasterBufferAndPrint [11:14:04]line [11:14:04]line [11:14:04]line [11:14:04]line [11:14:04]line [11:14:04]written 0, free lines is 3186 [11:14:04]MH_Cut [11:14:04]Write to MH i2c: D1 01 00 18 47 01 31 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: D1 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: D1 01 00 [11:14:04]MH_I2C_Read... [11:14:04]Read from MH i2c: D1 01 00 18 47 00 30 [11:14:04]Write to MH i2c: 01 00 00 19 47 60 [11:14:04]Write i2c OK [11:14:04]MH_I2C_Read... [11:14:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 60 47 00 20 46 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 DF 02 00 F4 03 04 00 EB 32 17 67 B6 04 01 00 00 8B D4 A3 1D 3B DE 3C 98 [11:14:04]CommunicateWithHost err = 0 [11:14:04]CheckOFDResponse [11:14:04]1017 (14) - 77093643461234 [11:14:04]1041 (16) - 0000000000965340 [11:14:04]1040 (4) - 188198 [11:14:04]1012 (4) - 22.10.2024 05:06 [11:14:04]1206 (1) - 0 [11:14:04]OFD Sender: Remove packet 188198 [11:14:04]ProducePacketName [11:14:04]name=ofd_packets/00188198 [11:14:04]NVStorageDeleteData [11:14:05]OFD Sender: No OFD packet to send [11:14:05]*** Cut start [11:14:05]*** Partial cut [11:14:05]*** CUTSNS_PIN = 1 [11:14:05]*** CUTSNS_PIN = 0 [11:14:06]*** Brake cut motor [11:14:06]Read from MH i2c: 01 [11:14:06]MH_I2C_Read... [11:14:06]*** Stop cut motor [11:14:06]*** Cut end [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 19 47 00 00 00 00 00 FF 0F 75 [11:14:06]process_action close_receipt done [11:14:06]requested_data is exist [11:14:06]produce_requested_data [11:14:06]requested_item fm.sn is exist - process it [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 1A 47 80 11 00 00 00 00 00 00 DB [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 1A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [11:14:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:14:06]wFMCommunicate OK [11:14:06]requested_item fd.num is exist - process it [11:14:06]SAM_PROTO_GetFieldsCounters [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 13 00 00 [11:14:06]Write to MH i2c: E2 08 00 1B 47 80 13 00 00 00 00 00 00 DE [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 62 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 62 00 1B 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [11:14:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E3 00 00 00 5E 04 04 00 E3 00 00 00 57 04 04 00 E4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_GetFieldsCounters done [11:14:06]requested_item shift.num is exist - process it [11:14:06]requested_item shift.opened is exist - process it [11:14:06]req_shift_opened [11:14:06]FM_GetShiftState [11:14:06]SAM_PROTO_GetShiftState [11:14:06]wFMCommunicate request_size=4 [11:14:06]MH_SAM_APDU [11:14:06]CAPDU: 80 13 01 00 [11:14:06]Write to MH i2c: E2 08 00 1C 47 80 13 01 00 00 00 00 00 E0 [11:14:06]Write i2c OK [11:14:06]MH_I2C_Read... [11:14:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:14:06]Read from MH i2c: E2 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0E 00 [11:14:06]MH_I2C_Read... [11:14:06]Read from MH i2c: E2 0E 00 1C 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D5 [11:14:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:14:06]wFMCommunicate OK [11:14:06]SAM_PROTO_GetShiftState done [11:14:06]FM_GetShiftState done [11:14:06]req_shift_opened done [11:14:06]requested_item shift.open_date is exist - process it [11:14:06]req_shift_open_date [11:14:06]req_shift_open_date done [11:14:06]produce_requested_data done [11:14:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188198,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:14:06]process_action_free close_receipt [11:14:06]json_value_free [11:14:06]json_value_free done [11:14:06]process_json_proto returns [11:14:06]Send response to host [11:14:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188198,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:14:06]free response buf [11:14:06]execute_script done [11:14:06]execute_script returns [11:14:06]free content buf [11:14:06]Sock 9.Close socket [11:14:06]Sock 9.Thread stoped [11:14:10]OFD Sender: No OFD packet to send [11:14:15]OFD Sender: No OFD packet to send [11:14:20]OFD Sender: No OFD packet to send [11:14:25]OFD Sender: No OFD packet to send [11:14:30]OFD Sender: No OFD packet to send [11:14:35]OFD Sender: No OFD packet to send [11:14:40]OFD Sender: No OFD packet to send [11:14:45]OFD Sender: No OFD packet to send [11:14:50]OFD Sender: No OFD packet to send [11:14:55]OFD Sender: No OFD packet to send [11:15:00]OFD Sender: No OFD packet to send [11:15:05]OFD Sender: No OFD packet to send [11:15:10]OFD Sender: No OFD packet to send [11:15:15]OFD Sender: No OFD packet to send [11:15:20]OFD Sender: No OFD packet to send [11:15:25]OFD Sender: No OFD packet to send [11:15:30]OFD Sender: No OFD packet to send [11:15:35]OFD Sender: No OFD packet to send [11:15:40]OFD Sender: No OFD packet to send [11:15:45]OFD Sender: No OFD packet to send [11:15:50]OFD Sender: No OFD packet to send [11:15:55]OFD Sender: No OFD packet to send [11:16:00]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:31]OFD Sender: No OFD packet to send [11:16:36]OFD Sender: No OFD packet to send [11:16:41]OFD Sender: No OFD packet to send [11:16:46]OFD Sender: No OFD packet to send [11:16:51]OFD Sender: No OFD packet to send [11:16:56]OFD Sender: No OFD packet to send [11:17:01]OFD Sender: No OFD packet to send [11:17:06]OFD Sender: No OFD packet to send [11:17:11]OFD Sender: No OFD packet to send [11:17:16]OFD Sender: No OFD packet to send [11:17:21]OFD Sender: No OFD packet to send [11:17:26]OFD Sender: No OFD packet to send [11:17:31]OFD Sender: No OFD packet to send [11:17:33]accept exits with 8 [11:17:33]New connection [11:17:33]New thread 3067055460 created [11:17:33]Thread 3067198820 joined [11:17:33]Waiting for new connection... [11:17:33] Sock 8.Parse request [11:17:33]Sock 8.Check first char [11:17:33]Sock 8.First char is OK [11:17:33]request: POST /json_proto HTTP/1.0 [11:17:33]Method: POST [11:17:33]URL: /json_proto [11:17:33]Method is POST - this is cgi request [11:17:33]url: /json_proto [11:17:33]query_string will be loaded in cgi processing [11:17:33]execute_cgi json_proto POST (null) [11:17:33]execute_cgi path=json_proto method=POST [11:17:33]POST find Content-Length [11:17:33]Host: 172.17.42.131:8080 [11:17:33]Content-Length: 682 [11:17:33]Content-Type: application/json [11:17:33] [11:17:33]POST finish read [11:17:33]Found Content-Length = 682 [11:17:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]execute_script... [11:17: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)210251", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:17:33]POST & json_proto [11:17:33]process_json_proto [11:17:33]json parsed OK: [11:17:33]protocol is kg_v1.0 [11:17:33]action value=close_receipt [11:17:33]process_action close_receipt [11:17:33]cmd_close_receipt [11:17:33]MH_GetDate [11:17:33]Write to MH i2c: F0 00 00 1D 47 53 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: F0 09 00 1D 47 00 D0 89 17 67 A0 18 CA 66 1B [11:17:33]GetLastDocTimeStamp 1729595645 [11:17:33]current date 1729595856 [11:17:33]FM_GetShiftState [11:17:33]SAM_PROTO_GetShiftState [11:17:33]wFMCommunicate request_size=4 [11:17:33]MH_SAM_APDU [11:17:33]CAPDU: 80 13 01 00 [11:17:33]Write to MH i2c: E2 08 00 1E 47 80 13 01 00 00 00 00 00 E2 [11:17:33]Write i2c OK [11:17:33]MH_I2C_Read... [11:17:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:33]Read from MH i2c: E2 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 [11:17:33]MH_I2C_Read... [11:17:33]Read from MH i2c: E2 0E 00 1E 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D7 [11:17:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:17:33]wFMCommunicate OK [11:17:33]SAM_PROTO_GetShiftState done [11:17:33]FM_GetShiftState done [11:17:33]opened in 1729556094 [11:17:33]opened+sec_in_day 1729642494 [11:17:33]quantity*price = 100015 [11:17:33]sum+1 = 100017 [11:17:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 228 22.10.2024 11:17 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188199 ФПД: 237420200420800 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188199&fm=237420200420800&tin=02508201610067®Number=0000000000100030&sum=100000 [11:17:34]StoreToDocumentArchive [11:17:34]shift 461 fd 188199 [11:17:34]save to /storage/0461/doc_00188199 [11:17:34]save last doc name /storage/0461/doc_00188199 to /storage/kkm_last_doc_name [11:17:34]save OK [11:17:34]Clear old archive folders... [11:17:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:17:34]tlvbuf is 01D144D0 [11:17:34]SAM_PROTO_ClearQueue [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 09 00 00 [11:17:34]Write to MH i2c: E2 08 00 2B 47 80 09 00 00 00 00 00 00 E4 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 2B 47 00 90 00 E6 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_ClearQueue done [11:17:34]KKMCreateOFDPacket [11:17:34]OFDProtocolAddRootSTLVToBuf [11:17:34]FM_MakeSignedData [11:17:34]FM_MakeSignedData [11:17:34]SAM_PROTO_SignData [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 01 02 [11:17:34]Write to MH i2c: E2 08 00 2C 47 80 0D 01 02 00 00 00 00 EC [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 2C 47 00 90 00 E7 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=255 [11:17:34]MH_SAM_APDU [11:17: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D0 89 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DF 02 00 35 04 06 00 D7 [11:17:34]Write to MH i2c: E2 02 01 2D 47 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D0 89 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DF 02 00 35 04 06 00 D7 00 00 C1 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 2D 47 00 90 00 E8 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=10 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 02 02 05 EE B2 B5 65 C0 [11:17:34]Write to MH i2c: E2 0D 00 2E 47 80 0D 02 02 05 00 EE B2 B5 65 C0 00 00 73 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 03 00 2E 47 00 90 00 E9 [11:17:34]RAPDU: 90 00 [11:17:34]wFMCommunicate OK [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 0D 03 02 [11:17:34]Write to MH i2c: E2 08 00 2F 47 80 0D 03 02 00 00 00 00 F1 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0B 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 0B 00 2F 47 00 03 D7 DC C9 39 9D BF BB 90 00 C1 [11:17:34]RAPDU: 03 D7 DC C9 39 9D BF BB 90 00 [11:17:34]wFMCommunicate OK [11:17:34]SAM_PROTO_SignData done [11:17:34]FM_MakeSignedData done [11:17:34]CreateOFDProtocolMessage [11:17:34]wFMCommunicate request_size=4 [11:17:34]MH_SAM_APDU [11:17:34]CAPDU: 80 11 00 00 [11:17:34]Write to MH i2c: E2 08 00 30 47 80 11 00 00 00 00 00 00 F1 [11:17:34]Write i2c OK [11:17:34]MH_I2C_Read... [11:17:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:34]Read from MH i2c: E2 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 17 00 [11:17:34]MH_I2C_Read... [11:17:34]Read from MH i2c: E2 17 00 30 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [11:17:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:17:34]wFMCommunicate OK [11:17:34]CreateOFDProtocolMessage done [11:17:34]OFDSenderStorePacket 188199 [11:17:34]StoreOFDPacket docnum=188199 [11:17:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 F2 07 01 1B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D0 89 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DF 02 00 35 04 06 00 D7 EE B2 B5 65 C0 03 D7 DC C9 39 9D BF BB [11:17:34]CheckFolder [11:17:34]dirname=/storage/ofd_packets [11:17:34]CheckFolder done [11:17:34]ProducePacketName [11:17:34]name=ofd_packets/00188199 [11:17:34]NVStorageSaveData ofd_packets/00188199 [11:17:34]File name is /storage/ofd_packets/00188199 [11:17:34]Write 301 bytes [11:17:34]NVStorageSaveData done [11:17:34]OFDSenderStorePacket done [11:17:34]KKMCreateOFDPacket done [11:17:34]NVStorageSaveData kkm_last_timestamp [11:17:34]File name is /storage/kkm_last_timestamp [11:17:34]Write 4 bytes [11:17:34]NVStorageSaveData done [11:17:35]ExternCall_PrintAddStr [11:17:35]wPrintStart [11:17:35]Write to MH i2c: 01 00 00 31 47 78 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 31 47 00 00 00 00 00 FF 0F 8D [11:17:35]RasterBufferAndPrint [11:17:35]line Счет N : (1)210251 [11:17:35]line ИНН: 02508201610067 [11:17:35]line Контрольно-Кассовый Чек [11:17:35]line ПРОДАЖА [11:17:35]line ТРК (МРК, ГНК) : 42 [11:17:35]line Товар: 2710124130 [11:17:35]line Аи-92-К-3 [11:17:35]line 14.950 * 66.90 [11:17:35]line = 1000.16 [11:17:35]line НДС 12% НСП 1% [11:17:35]line > о реализуемом товаре [11:17:35]line ОКРУГЛЕНИЕ: -0.16 [11:17:35]line ИТОГО: 1000.00 [11:17:35]line Внесено: 1000.00 [11:17:35]line СДАЧА: 0.00 [11:17:35]line НСП 1% : 8.85 [11:17:35]line НДС 12% : 106.21 [11:17:35]line Наличными: 1000.00 [11:17:35]line Безнал.: 0.00 [11:17:35]line Место: АЗС № 86 "Партнер Нефть" [11:17:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:17:35]line СНО: Общий режим [11:17:35]line Чек 228 22.10.2024 11:17 [11:17:35]line Смена: 461 ФФД: 1.0 [11:17:35]line ЗНМ: 0300000155 [11:17:35]line РНМ: 0000000000100030 [11:17:35]line Версия ККМ: 001 [11:17:35]line ФМ: 0000000000965340 [11:17:35]line ФД: 188199 [11:17:35]line ФПД: 237420200420800 [11:17:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111736&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188199&fm=237420200420800&tin=02508201610067®Number=0000000000100030&sum=100000 [11:17:35]written 0, free lines is 4095 [11:17:35]OFD Sender: Processing packet 188199 [packets to send 1062, broken 1061] [11:17:35]ProducePacketName [11:17:35]name=ofd_packets/00188199 [11:17:35]OFD Sender: To server: pG, [11:17:35]CommunicateWithHost lk.salyk.kg:30040 [11:17:35]ConnectInit lk.salyk.kg [11:17:35]Write to MH i2c: 01 00 00 5C 47 A3 [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: 01 07 00 5C 47 00 00 00 00 00 6C 0C 22 [11:17:35]RasterBufferAndPrint [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]line [11:17:35]written 0, free lines is 3183 [11:17:35]MH_Cut [11:17:35]Write to MH i2c: D1 01 00 63 47 01 7C [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 01 00 [11:17:35]MH_I2C_Read... [11:17:35]Read from MH i2c: D1 01 00 63 47 00 7B [11:17:35]Write to MH i2c: 01 00 00 64 47 AB [11:17:35]Write i2c OK [11:17:35]MH_I2C_Read... [11:17:35]Connected sock=10 [11:17:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 F2 07 01 1B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 00 00 00 F4 03 04 00 D0 89 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 DF 02 00 35 04 06 00 D7 EE B2 B5 65 C0 03 D7 DC C9 39 9D BF BB [11:17:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA 24 47 00 39 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 39 36 35 33 34 30 10 04 04 00 27 DF 02 00 F4 03 04 00 BE 33 17 67 B6 04 01 00 00 86 CD 44 F7 6E A2 B7 6C [11:17:36]CommunicateWithHost err = 0 [11:17:36]CheckOFDResponse [11:17:36]1017 (14) - 77093643461234 [11:17:36]1041 (16) - 0000000000965340 [11:17:36]1040 (4) - 188199 [11:17:36]1012 (4) - 22.10.2024 05:10 [11:17:36]1206 (1) - 0 [11:17:36]OFD Sender: Remove packet 188199 [11:17:36]ProducePacketName [11:17:36]name=ofd_packets/00188199 [11:17:36]NVStorageDeleteData [11:17:36]*** Cut start [11:17:36]*** Partial cut [11:17:36]*** CUTSNS_PIN = 1 [11:17:36]*** CUTSNS_PIN = 0 [11:17:36]OFD Sender: No OFD packet to send [11:17:36]*** Brake cut motor [11:17:37]Read from MH i2c: 01 [11:17:37]MH_I2C_Read... [11:17:37]*** Stop cut motor [11:17:37]*** Cut end [11:17:37]Read from MH i2c: 01 07 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: 01 07 00 64 47 00 00 00 00 00 FF 0F C0 [11:17:37]process_action close_receipt done [11:17:37]requested_data is exist [11:17:37]produce_requested_data [11:17:37]requested_item fm.sn is exist - process it [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 11 00 00 [11:17:37]Write to MH i2c: E2 08 00 65 47 80 11 00 00 00 00 00 00 26 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 17 00 65 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [11:17:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:17:37]wFMCommunicate OK [11:17:37]requested_item fd.num is exist - process it [11:17:37]SAM_PROTO_GetFieldsCounters [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 00 00 [11:17:37]Write to MH i2c: E2 08 00 66 47 80 13 00 00 00 00 00 00 29 [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 62 00 66 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 B2 [11:17:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E4 00 00 00 5E 04 04 00 E4 00 00 00 57 04 04 00 E5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetFieldsCounters done [11:17:37]requested_item shift.num is exist - process it [11:17:37]requested_item shift.opened is exist - process it [11:17:37]req_shift_opened [11:17:37]FM_GetShiftState [11:17:37]SAM_PROTO_GetShiftState [11:17:37]wFMCommunicate request_size=4 [11:17:37]MH_SAM_APDU [11:17:37]CAPDU: 80 13 01 00 [11:17:37]Write to MH i2c: E2 08 00 67 47 80 13 01 00 00 00 00 00 2B [11:17:37]Write i2c OK [11:17:37]MH_I2C_Read... [11:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:17:37]Read from MH i2c: E2 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 [11:17:37]MH_I2C_Read... [11:17:37]Read from MH i2c: E2 0E 00 67 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 20 [11:17:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:17:37]wFMCommunicate OK [11:17:37]SAM_PROTO_GetShiftState done [11:17:37]FM_GetShiftState done [11:17:37]req_shift_opened done [11:17:37]requested_item shift.open_date is exist - process it [11:17:37]req_shift_open_date [11:17:37]req_shift_open_date done [11:17:37]produce_requested_data done [11:17:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188199,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:17:37]process_action_free close_receipt [11:17:37]json_value_free [11:17:37]json_value_free done [11:17:37]process_json_proto returns [11:17:37]Send response to host [11:17:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188199,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:17:37]free response buf [11:17:37]execute_script done [11:17:37]execute_script returns [11:17:37]free content buf [11:17:37]Sock 8.Close socket [11:17:37]Sock 8.Thread stoped [11:17:41]OFD Sender: No OFD packet to send [11:17:46]OFD Sender: No OFD packet to send [11:17:51]OFD Sender: No OFD packet to send [11:17:56]OFD Sender: No OFD packet to send [11:18:01]OFD Sender: No OFD packet to send [11:18:06]OFD Sender: No OFD packet to send [11:18:11]OFD Sender: No OFD packet to send [11:18:16]OFD Sender: No OFD packet to send [11:18:22]OFD Sender: No OFD packet to send [11:18:27]OFD Sender: No OFD packet to send [11:18:32]OFD Sender: No OFD packet to send [11:18:37]OFD Sender: No OFD packet to send [11:18:42]OFD Sender: No OFD packet to send [11:18:47]OFD Sender: No OFD packet to send [11:18:52]OFD Sender: No OFD packet to send [11:18:57]OFD Sender: No OFD packet to send [11:19:02]OFD Sender: No OFD packet to send [11:19:07]OFD Sender: No OFD packet to send [11:19:12]OFD Sender: No OFD packet to send [11:19:15]accept exits with 9 [11:19:15]New connection [11:19:15]New thread 3067198820 created [11:19:15]Thread 3067055460 joined [11:19:15]Waiting for new connection... [11:19:15] Sock 9.Parse request [11:19:15]Sock 9.Check first char [11:19:15]Sock 9.First char is OK [11:19:15]request: POST /json_proto HTTP/1.0 [11:19:15]Method: POST [11:19:15]URL: /json_proto [11:19:15]Method is POST - this is cgi request [11:19:15]url: /json_proto [11:19:15]query_string will be loaded in cgi processing [11:19:15]execute_cgi json_proto POST (null) [11:19:15]execute_cgi path=json_proto method=POST [11:19:15]POST find Content-Length [11:19:15]Host: 172.17.42.131:8080 [11:19:15]Content-Length: 679 [11:19:15]Content-Type: application/json [11:19:15] [11:19:15]POST finish read [11:19:15]Found Content-Length = 679 [11:19:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:19:15]execute_script... [11:19:15]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210252", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:19:15]POST & json_proto [11:19:15]process_json_proto [11:19:15]json parsed OK: [11:19:15]protocol is kg_v1.0 [11:19:15]action value=close_receipt [11:19:15]process_action close_receipt [11:19:15]cmd_close_receipt [11:19:15]MH_GetDate [11:19:15]Write to MH i2c: F0 00 00 68 47 9E [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: F0 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: F0 09 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: F0 09 00 68 47 00 36 8A 17 67 A0 18 CA 66 CD [11:19:15]GetLastDocTimeStamp 1729595856 [11:19:15]current date 1729595958 [11:19:15]FM_GetShiftState [11:19:15]SAM_PROTO_GetShiftState [11:19:15]wFMCommunicate request_size=4 [11:19:15]MH_SAM_APDU [11:19:15]CAPDU: 80 13 01 00 [11:19:15]Write to MH i2c: E2 08 00 69 47 80 13 01 00 00 00 00 00 2D [11:19:15]Write i2c OK [11:19:15]MH_I2C_Read... [11:19:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:15]Read from MH i2c: E2 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0E 00 [11:19:15]MH_I2C_Read... [11:19:15]Read from MH i2c: E2 0E 00 69 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 22 [11:19:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:19:15]wFMCommunicate OK [11:19:15]SAM_PROTO_GetShiftState done [11:19:15]FM_GetShiftState done [11:19:15]opened in 1729556094 [11:19:15]opened+sec_in_day 1729642494 [11:19:15]quantity*price = 100050 [11:19:15]sum+1 = 100052 [11:19:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 229 22.10.2024 11:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188200 ФПД: 248751338696039 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111918&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188200&fm=248751338696039&tin=02508201610067®Number=0000000000100030&sum=100000 [11:19:16]StoreToDocumentArchive [11:19:16]shift 461 fd 188200 [11:19:16]save to /storage/0461/doc_00188200 [11:19:16]save last doc name /storage/0461/doc_00188200 to /storage/kkm_last_doc_name [11:19:16]save OK [11:19:16]Clear old archive folders... [11:19:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:19:16]tlvbuf is 01C04170 [11:19:16]SAM_PROTO_ClearQueue [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 09 00 00 [11:19:16]Write to MH i2c: E2 08 00 76 47 80 09 00 00 00 00 00 00 2F [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 76 47 00 90 00 31 [11:19:16]RAPDU: 90 00 [11:19:16]wFMCommunicate OK [11:19:16]SAM_PROTO_ClearQueue done [11:19:16]KKMCreateOFDPacket [11:19:16]OFDProtocolAddRootSTLVToBuf [11:19:16]FM_MakeSignedData [11:19:16]FM_MakeSignedData [11:19:16]SAM_PROTO_SignData [11:19:16]wFMCommunicate request_size=4 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 0D 01 02 [11:19:16]Write to MH i2c: E2 08 00 77 47 80 0D 01 02 00 00 00 00 37 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:19:16]Read from MH i2c: E2 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 [11:19:16]MH_I2C_Read... [11:19:16]Read from MH i2c: E2 03 00 77 47 00 90 00 32 [11:19:16]RAPDU: 90 00 [11:19:16]wFMCommunicate OK [11:19:16]wFMCommunicate request_size=255 [11:19:16]MH_SAM_APDU [11:19:16]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E5 00 00 00 F4 03 04 00 36 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DF 02 00 35 04 06 00 E2 3C EF 2E [11:19:16]Write to MH i2c: E2 02 01 78 47 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E5 00 00 00 F4 03 04 00 36 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DF 02 00 35 04 06 00 E2 3C EF 2E 00 00 D7 [11:19:16]Write i2c OK [11:19:16]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 78 47 00 90 00 33 [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=7 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 02 02 02 2D 67 [11:19:17]Write to MH i2c: E2 0A 00 79 47 80 0D 02 02 02 00 2D 67 00 00 D2 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 03 00 79 47 00 90 00 34 [11:19:17]RAPDU: 90 00 [11:19:17]wFMCommunicate OK [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 0D 03 02 [11:19:17]Write to MH i2c: E2 08 00 7A 47 80 0D 03 02 00 00 00 00 3C [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0B 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 0B 00 7A 47 00 B3 FE 9D EB B6 76 D1 56 90 00 C9 [11:19:17]RAPDU: B3 FE 9D EB B6 76 D1 56 90 00 [11:19:17]wFMCommunicate OK [11:19:17]SAM_PROTO_SignData done [11:19:17]FM_MakeSignedData done [11:19:17]CreateOFDProtocolMessage [11:19:17]wFMCommunicate request_size=4 [11:19:17]MH_SAM_APDU [11:19:17]CAPDU: 80 11 00 00 [11:19:17]Write to MH i2c: E2 08 00 7B 47 80 11 00 00 00 00 00 00 3C [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:17]Read from MH i2c: E2 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: E2 17 00 7B 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [11:19:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:19:17]wFMCommunicate OK [11:19:17]CreateOFDProtocolMessage done [11:19:17]OFDSenderStorePacket 188200 [11:19:17]StoreOFDPacket docnum=188200 [11:19:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 34 18 04 01 AD A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E5 00 00 00 F4 03 04 00 36 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DF 02 00 35 04 06 00 E2 3C EF 2E 2D 67 B3 FE 9D EB B6 76 D1 56 [11:19:17]CheckFolder [11:19:17]dirname=/storage/ofd_packets [11:19:17]CheckFolder done [11:19:17]ProducePacketName [11:19:17]name=ofd_packets/00188200 [11:19:17]NVStorageSaveData ofd_packets/00188200 [11:19:17]File name is /storage/ofd_packets/00188200 [11:19:17]Write 298 bytes [11:19:17]NVStorageSaveData done [11:19:17]OFDSenderStorePacket done [11:19:17]KKMCreateOFDPacket done [11:19:17]NVStorageSaveData kkm_last_timestamp [11:19:17]File name is /storage/kkm_last_timestamp [11:19:17]Write 4 bytes [11:19:17]NVStorageSaveData done [11:19:17]ExternCall_PrintAddStr [11:19:17]wPrintStart [11:19:17]Write to MH i2c: 01 00 00 7C 47 C3 [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 7C 47 00 00 00 00 00 FF 0F D8 [11:19:17]RasterBufferAndPrint [11:19:17]line Счет N : (1)210252 [11:19:17]line ИНН: 02508201610067 [11:19:17]line Контрольно-Кассовый Чек [11:19:17]line ПРОДАЖА [11:19:17]line ТРК (МРК, ГНК) : 51 [11:19:17]line Товар: 2710194210 [11:19:17]line ДТ-К-5 [11:19:17]line 13.130 * 76.20 [11:19:17]line = 1000.51 [11:19:17]line НДС 12% НСП 1% [11:19:17]line > о реализуемом товаре [11:19:17]line ОКРУГЛЕНИЕ: -0.51 [11:19:17]line ИТОГО: 1000.00 [11:19:17]line Внесено: 1000.00 [11:19:17]line СДАЧА: 0.00 [11:19:17]line НСП 1% : 8.85 [11:19:17]line НДС 12% : 106.25 [11:19:17]line Наличными: 1000.00 [11:19:17]line Безнал.: 0.00 [11:19:17]line Место: АЗС № 86 "Партнер Нефть" [11:19:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:19:17]line СНО: Общий режим [11:19:17]line Чек 229 22.10.2024 11:19 [11:19:17]line Смена: 461 ФФД: 1.0 [11:19:17]line ЗНМ: 0300000155 [11:19:17]line РНМ: 0000000000100030 [11:19:17]line Версия ККМ: 001 [11:19:17]line ФМ: 0000000000965340 [11:19:17]line ФД: 188200 [11:19:17]line ФПД: 248751338696039 [11:19:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T111918&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188200&fm=248751338696039&tin=02508201610067®Number=0000000000100030&sum=100000 [11:19:17]OFD Sender: Processing packet 188200 [packets to send 1062, broken 1061] [11:19:17]ProducePacketName [11:19:17]name=ofd_packets/00188200 [11:19:17]OFD Sender: To server: pG, [11:19:17]CommunicateWithHost lk.salyk.kg:30040 [11:19:17]ConnectInit lk.salyk.kg [11:19:17]written 0, free lines is 4095 [11:19:17]Connected sock=10 [11:19:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 34 18 04 01 AD A3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E5 00 00 00 F4 03 04 00 36 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DF 02 00 35 04 06 00 E2 3C EF 2E 2D 67 B3 FE 9D EB B6 76 D1 56 [11:19:17]Write to MH i2c: 01 00 00 A7 47 EE [11:19:17]Write i2c OK [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 [11:19:17]MH_I2C_Read... [11:19:17]Read from MH i2c: 01 07 00 A7 47 00 00 00 00 00 6B 0C 6C [11:19:17]RasterBufferAndPrint [11:19:17]line [11:19:17]line [11:19:17]line [11:19:17]line [11:19:17]line [11:19:17]written 0, free lines is 3182 [11:19:18]MH_Cut [11:19:18]Write to MH i2c: D1 01 00 AE 47 01 C7 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 01 00 [11:19:18]MH_I2C_Read... [11:19:18]Read from MH i2c: D1 01 00 AE 47 00 C6 [11:19:18]Write to MH i2c: 01 00 00 AF 47 F6 [11:19:18]Write i2c OK [11:19:18]MH_I2C_Read... [11:19:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 93 BC 47 00 23 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 DF 02 00 F4 03 04 00 24 34 17 67 B6 04 01 00 00 87 89 D4 54 F0 46 FC D9 [11:19:18]CommunicateWithHost err = 0 [11:19:18]CheckOFDResponse [11:19:18]1017 (14) - 77093643461234 [11:19:18]1041 (16) - 0000000000965340 [11:19:18]1040 (4) - 188200 [11:19:18]1012 (4) - 22.10.2024 05:12 [11:19:18]1206 (1) - 0 [11:19:18]OFD Sender: Remove packet 188200 [11:19:18]ProducePacketName [11:19:18]name=ofd_packets/00188200 [11:19:18]NVStorageDeleteData [11:19:18]OFD Sender: No OFD packet to send [11:19:19]*** Cut start [11:19:19]*** Partial cut [11:19:19]*** CUTSNS_PIN = 1 [11:19:19]*** CUTSNS_PIN = 0 [11:19:19]*** Brake cut motor [11:19:19]Read from MH i2c: 01 [11:19:19]MH_I2C_Read... [11:19:19]*** Stop cut motor [11:19:19]*** Cut end [11:19:19]Read from MH i2c: 01 07 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: 01 07 00 AF 47 00 00 00 00 00 FF 0F 0B [11:19:19]process_action close_receipt done [11:19:19]requested_data is exist [11:19:19]produce_requested_data [11:19:19]requested_item fm.sn is exist - process it [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 11 00 00 [11:19:19]Write to MH i2c: E2 08 00 B0 47 80 11 00 00 00 00 00 00 71 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:19:19]Read from MH i2c: E2 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 17 00 [11:19:19]MH_I2C_Read... [11:19:19]Read from MH i2c: E2 17 00 B0 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [11:19:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:19:19]wFMCommunicate OK [11:19:19]requested_item fd.num is exist - process it [11:19:19]SAM_PROTO_GetFieldsCounters [11:19:19]wFMCommunicate request_size=4 [11:19:19]MH_SAM_APDU [11:19:19]CAPDU: 80 13 00 00 [11:19:19]Write to MH i2c: E2 08 00 B1 47 80 13 00 00 00 00 00 00 74 [11:19:19]Write i2c OK [11:19:19]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 62 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 62 00 B1 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 01 [11:19:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E5 00 00 00 5E 04 04 00 E5 00 00 00 57 04 04 00 E6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetFieldsCounters done [11:19:20]requested_item shift.num is exist - process it [11:19:20]requested_item shift.opened is exist - process it [11:19:20]req_shift_opened [11:19:20]FM_GetShiftState [11:19:20]SAM_PROTO_GetShiftState [11:19:20]wFMCommunicate request_size=4 [11:19:20]MH_SAM_APDU [11:19:20]CAPDU: 80 13 01 00 [11:19:20]Write to MH i2c: E2 08 00 B2 47 80 13 01 00 00 00 00 00 76 [11:19:20]Write i2c OK [11:19:20]MH_I2C_Read... [11:19:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:19:20]Read from MH i2c: E2 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 [11:19:20]MH_I2C_Read... [11:19:20]Read from MH i2c: E2 0E 00 B2 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6B [11:19:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:19:20]wFMCommunicate OK [11:19:20]SAM_PROTO_GetShiftState done [11:19:20]FM_GetShiftState done [11:19:20]req_shift_opened done [11:19:20]requested_item shift.open_date is exist - process it [11:19:20]req_shift_open_date [11:19:20]req_shift_open_date done [11:19:20]produce_requested_data done [11:19:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188200,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:19:20]process_action_free close_receipt [11:19:20]json_value_free [11:19:20]json_value_free done [11:19:20]process_json_proto returns [11:19:20]Send response to host [11:19:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188200,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:19:20]free response buf [11:19:20]execute_script done [11:19:20]execute_script returns [11:19:20]free content buf [11:19:20]Sock 9.Close socket [11:19:20]Sock 9.Thread stoped [11:19:23]OFD Sender: No OFD packet to send [11:19:28]OFD Sender: No OFD packet to send [11:19:33]OFD Sender: No OFD packet to send [11:19:38]OFD Sender: No OFD packet to send [11:19:43]OFD Sender: No OFD packet to send [11:19:48]OFD Sender: No OFD packet to send [11:19:53]OFD Sender: No OFD packet to send [11:19:58]OFD Sender: No OFD packet to send [11:20:03]OFD Sender: No OFD packet to send [11:20:08]OFD Sender: No OFD packet to send [11:20:13]OFD Sender: No OFD packet to send [11:20:18]OFD Sender: No OFD packet to send [11:20:23]OFD Sender: No OFD packet to send [11:20:28]OFD Sender: No OFD packet to send [11:20:33]OFD Sender: No OFD packet to send [11:20:38]accept exits with 8 [11:20:38]New connection [11:20:38]New thread 3067055460 created [11:20:38]Thread 3067198820 joined [11:20:38]Waiting for new connection... [11:20:38] Sock 8.Parse request [11:20:38]Sock 8.Check first char [11:20:38]Sock 8.First char is OK [11:20:38]request: POST /json_proto HTTP/1.0 [11:20:38]Method: POST [11:20:38]URL: /json_proto [11:20:38]Method is POST - this is cgi request [11:20:38]url: /json_proto [11:20:38]query_string will be loaded in cgi processing [11:20:38]execute_cgi json_proto POST (null) [11:20:38]execute_cgi path=json_proto method=POST [11:20:38]POST find Content-Length [11:20:38]Host: 172.17.42.131:8080 [11:20:38]Content-Length: 766 [11:20:38]Content-Type: application/json [11:20:38] [11:20:38]POST finish read [11:20:38]Found Content-Length = 766 [11:20:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:38]execute_script... [11:20: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)210253", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.45 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:38]POST & json_proto [11:20:38]process_json_proto [11:20:38]json parsed OK: [11:20:38]protocol is kg_v1.0 [11:20:38]action value=close_receipt [11:20:38]process_action close_receipt [11:20:38]cmd_close_receipt [11:20:38]MH_GetDate [11:20:38]Write to MH i2c: F0 00 00 B3 47 E9 [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: F0 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: F0 09 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: F0 09 00 B3 47 00 89 8A 17 67 A0 18 CA 66 6B [11:20:38]GetLastDocTimeStamp 1729595958 [11:20:38]current date 1729596041 [11:20:38]FM_GetShiftState [11:20:38]SAM_PROTO_GetShiftState [11:20:38]wFMCommunicate request_size=4 [11:20:38]MH_SAM_APDU [11:20:38]CAPDU: 80 13 01 00 [11:20:38]Write to MH i2c: E2 08 00 B4 47 80 13 01 00 00 00 00 00 78 [11:20:38]Write i2c OK [11:20:38]MH_I2C_Read... [11:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:38]Read from MH i2c: E2 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 0E 00 [11:20:38]MH_I2C_Read... [11:20:38]Read from MH i2c: E2 0E 00 B4 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6D [11:20:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:20:38]wFMCommunicate OK [11:20:38]SAM_PROTO_GetShiftState done [11:20:38]FM_GetShiftState done [11:20:38]opened in 1729556094 [11:20:38]opened+sec_in_day 1729642494 [11:20:38]quantity*price = 70044 [11:20:38]sum+1 = 70046 [11:20:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.45 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.45 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 230 22.10.2024 11:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188201 ФПД: 216398130614284 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112041&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188201&fm=216398130614284&tin=02508201610067®Number=0000000000100030&sum=70045 [11:20:39]StoreToDocumentArchive [11:20:39]shift 461 fd 188201 [11:20:39]save to /storage/0461/doc_00188201 [11:20:39]save last doc name /storage/0461/doc_00188201 to /storage/kkm_last_doc_name [11:20:39]save OK [11:20:39]Clear old archive folders... [11:20:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:20:39]tlvbuf is 01C00880 [11:20:39]SAM_PROTO_ClearQueue [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 09 00 00 [11:20:39]Write to MH i2c: E2 08 00 C1 47 80 09 00 00 00 00 00 00 7A [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 03 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 03 00 C1 47 00 90 00 7C [11:20:39]RAPDU: 90 00 [11:20:39]wFMCommunicate OK [11:20:39]SAM_PROTO_ClearQueue done [11:20:39]KKMCreateOFDPacket [11:20:39]OFDProtocolAddRootSTLVToBuf [11:20:39]FM_MakeSignedData [11:20:39]FM_MakeSignedData [11:20:39]SAM_PROTO_SignData [11:20:39]wFMCommunicate request_size=4 [11:20:39]MH_SAM_APDU [11:20:39]CAPDU: 80 0D 01 02 [11:20:39]Write to MH i2c: E2 08 00 C2 47 80 0D 01 02 00 00 00 00 82 [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:39]Read from MH i2c: E2 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 03 00 [11:20:39]MH_I2C_Read... [11:20:39]Read from MH i2c: E2 03 00 C2 47 00 90 00 7D [11:20:39]RAPDU: 90 00 [11:20:39]wFMCommunicate OK [11:20:39]wFMCommunicate request_size=255 [11:20:39]MH_SAM_APDU [11:20: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 89 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DF 02 00 35 04 06 00 C4 [11:20:39]Write to MH i2c: E2 02 01 C3 47 80 0D 02 02 FA 00 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 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 89 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DF 02 00 35 04 06 00 C4 00 00 49 [11:20:39]Write i2c OK [11:20:39]MH_I2C_Read... [11:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:40]Read from MH i2c: E2 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 03 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 03 00 C3 47 00 90 00 7E [11:20:40]RAPDU: 90 00 [11:20:40]wFMCommunicate OK [11:20:40]wFMCommunicate request_size=10 [11:20:40]MH_SAM_APDU [11:20:40]CAPDU: 80 0D 02 02 05 D0 1D B4 90 0C [11:20:40]Write to MH i2c: E2 0D 00 C4 47 80 0D 02 02 05 00 D0 1D B4 90 0C 00 00 CC [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:40]Read from MH i2c: E2 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 03 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 03 00 C4 47 00 90 00 7F [11:20:40]RAPDU: 90 00 [11:20:40]wFMCommunicate OK [11:20:40]wFMCommunicate request_size=4 [11:20:40]MH_SAM_APDU [11:20:40]CAPDU: 80 0D 03 02 [11:20:40]Write to MH i2c: E2 08 00 C5 47 80 0D 03 02 00 00 00 00 87 [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:40]Read from MH i2c: E2 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 0B 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 0B 00 C5 47 00 A4 A2 1C 51 27 A6 4D D9 90 00 2E [11:20:40]RAPDU: A4 A2 1C 51 27 A6 4D D9 90 00 [11:20:40]wFMCommunicate OK [11:20:40]SAM_PROTO_SignData done [11:20:40]FM_MakeSignedData done [11:20:40]CreateOFDProtocolMessage [11:20:40]wFMCommunicate request_size=4 [11:20:40]MH_SAM_APDU [11:20:40]CAPDU: 80 11 00 00 [11:20:40]Write to MH i2c: E2 08 00 C6 47 80 11 00 00 00 00 00 00 87 [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:40]Read from MH i2c: E2 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 17 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: E2 17 00 C6 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [11:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:20:40]wFMCommunicate OK [11:20:40]CreateOFDProtocolMessage done [11:20:40]OFDSenderStorePacket 188201 [11:20:40]StoreOFDPacket docnum=188201 [11:20:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D CD 07 01 09 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 89 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DF 02 00 35 04 06 00 C4 D0 1D B4 90 0C A4 A2 1C 51 27 A6 4D D9 [11:20:40]CheckFolder [11:20:40]dirname=/storage/ofd_packets [11:20:40]CheckFolder done [11:20:40]ProducePacketName [11:20:40]name=ofd_packets/00188201 [11:20:40]NVStorageSaveData ofd_packets/00188201 [11:20:40]File name is /storage/ofd_packets/00188201 [11:20:40]Write 301 bytes [11:20:40]NVStorageSaveData done [11:20:40]OFDSenderStorePacket done [11:20:40]KKMCreateOFDPacket done [11:20:40]NVStorageSaveData kkm_last_timestamp [11:20:40]File name is /storage/kkm_last_timestamp [11:20:40]Write 4 bytes [11:20:40]NVStorageSaveData done [11:20:40]ExternCall_PrintAddStr [11:20:40]wPrintStart [11:20:40]Write to MH i2c: 01 00 00 C7 47 0E [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: 01 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: 01 07 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: 01 07 00 C7 47 00 00 00 00 00 FF 0F 23 [11:20:40]RasterBufferAndPrint [11:20:40]line Счет N : (1)210253 [11:20:40]line ИНН: 02508201610067 [11:20:40]line Контрольно-Кассовый Чек [11:20:40]line ПРОДАЖА [11:20:40]line ТРК (МРК, ГНК) : 23 [11:20:40]line Товар: 2710124500 [11:20:40]line Аи-95-К-3 [11:20:40]line 9.440 * 74.20 [11:20:40]line = 700.45 [11:20:40]line НДС 12% НСП 1% [11:20:40]line > о реализуемом товаре [11:20:40]line ИТОГО: 700.45 [11:20:40]line НСП 1% : 6.20 [11:20:40]line НДС 12% : 74.38 [11:20:40]line Наличными: 0.00 [11:20:40]line Безнал.: 700.45 [11:20:40]line Место: АЗС № 86 "Партнер Нефть" [11:20:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:20:40]line СНО: Общий режим [11:20:40]line Чек 230 22.10.2024 11:20 [11:20:40]line Смена: 461 ФФД: 1.0 [11:20:40]line ЗНМ: 0300000155 [11:20:40]line РНМ: 0000000000100030 [11:20:40]line Версия ККМ: 001 [11:20:40]line Платежная система: Mbank [11:20:40]line ФМ: 0000000000965340 [11:20:40]line ФД: 188201 [11:20:40]line ФПД: 216398130614284 [11:20:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112041&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188201&fm=216398130614284&tin=02508201610067®Number=0000000000100030&sum=70045 [11:20:40]OFD Sender: Processing packet 188201 [packets to send 1062, broken 1061] [11:20:40]ProducePacketName [11:20:40]name=ofd_packets/00188201 [11:20:40]OFD Sender: To server: pG, [11:20:40]CommunicateWithHost lk.salyk.kg:30040 [11:20:40]ConnectInit lk.salyk.kg [11:20:40]written 0, free lines is 4095 [11:20:40]Connected sock=10 [11:20:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2D CD 07 01 09 A6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9D 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 00 00 00 00 00 00 39 04 06 00 9D 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 00 00 00 F4 03 04 00 89 8A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 DF 02 00 35 04 06 00 C4 D0 1D B4 90 0C A4 A2 1C 51 27 A6 4D D9 [11:20:40]Write to MH i2c: 01 00 00 F0 47 37 [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: 01 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: 01 07 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: 01 07 00 F0 47 00 00 00 00 00 A1 0C EB [11:20:40]RasterBufferAndPrint [11:20:40]line [11:20:40]line [11:20:40]line [11:20:40]line [11:20:40]line [11:20:40]written 0, free lines is 3236 [11:20:40]MH_Cut [11:20:40]Write to MH i2c: D1 01 00 F7 47 01 10 [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: D1 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: D1 01 00 [11:20:40]MH_I2C_Read... [11:20:40]Read from MH i2c: D1 01 00 F7 47 00 0F [11:20:40]Write to MH i2c: 01 00 00 F8 47 3F [11:20:40]Write i2c OK [11:20:40]MH_I2C_Read... [11:20:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE DA 47 00 D6 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 39 36 35 33 34 30 10 04 04 00 29 DF 02 00 F4 03 04 00 77 34 17 67 B6 04 01 00 00 D2 75 2E 72 5F 03 2D 21 [11:20:41]CommunicateWithHost err = 0 [11:20:41]CheckOFDResponse [11:20:41]1017 (14) - 77093643461234 [11:20:41]1041 (16) - 0000000000965340 [11:20:41]1040 (4) - 188201 [11:20:41]1012 (4) - 22.10.2024 05:13 [11:20:41]1206 (1) - 0 [11:20:41]OFD Sender: Remove packet 188201 [11:20:41]ProducePacketName [11:20:41]name=ofd_packets/00188201 [11:20:41]NVStorageDeleteData [11:20:41]OFD Sender: No OFD packet to send [11:20:42]*** Cut start [11:20:42]*** Partial cut [11:20:42]*** CUTSNS_PIN = 1 [11:20:42]*** CUTSNS_PIN = 0 [11:20:42]*** Brake cut motor [11:20:42]Read from MH i2c: 01 [11:20:42]MH_I2C_Read... [11:20:42]*** Stop cut motor [11:20:42]*** Cut end [11:20:42]Read from MH i2c: 01 07 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: 01 07 00 F8 47 00 00 00 00 00 FF 0F 54 [11:20:42]process_action close_receipt done [11:20:42]requested_data is exist [11:20:42]produce_requested_data [11:20:42]requested_item fm.sn is exist - process it [11:20:42]wFMCommunicate request_size=4 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 11 00 00 [11:20:42]Write to MH i2c: E2 08 00 F9 47 80 11 00 00 00 00 00 00 BA [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 17 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 17 00 F9 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [11:20:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:20:42]wFMCommunicate OK [11:20:42]requested_item fd.num is exist - process it [11:20:42]SAM_PROTO_GetFieldsCounters [11:20:42]wFMCommunicate request_size=4 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 13 00 00 [11:20:42]Write to MH i2c: E2 08 00 FA 47 80 13 00 00 00 00 00 00 BD [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 62 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 62 00 FA 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 4E [11:20:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E6 00 00 00 5E 04 04 00 E6 00 00 00 57 04 04 00 E7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:20:42]wFMCommunicate OK [11:20:42]SAM_PROTO_GetFieldsCounters done [11:20:42]requested_item shift.num is exist - process it [11:20:42]requested_item shift.opened is exist - process it [11:20:42]req_shift_opened [11:20:42]FM_GetShiftState [11:20:42]SAM_PROTO_GetShiftState [11:20:42]wFMCommunicate request_size=4 [11:20:42]MH_SAM_APDU [11:20:42]CAPDU: 80 13 01 00 [11:20:42]Write to MH i2c: E2 08 00 FB 47 80 13 01 00 00 00 00 00 BF [11:20:42]Write i2c OK [11:20:42]MH_I2C_Read... [11:20:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:42]Read from MH i2c: E2 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 0E 00 [11:20:42]MH_I2C_Read... [11:20:42]Read from MH i2c: E2 0E 00 FB 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B4 [11:20:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:20:42]wFMCommunicate OK [11:20:42]SAM_PROTO_GetShiftState done [11:20:42]FM_GetShiftState done [11:20:42]req_shift_opened done [11:20:42]requested_item shift.open_date is exist - process it [11:20:42]req_shift_open_date [11:20:42]req_shift_open_date done [11:20:42]produce_requested_data done [11:20:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188201,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:20:42]process_action_free close_receipt [11:20:42]json_value_free [11:20:42]json_value_free done [11:20:42]process_json_proto returns [11:20:42]Send response to host [11:20:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188201,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:20:42]free response buf [11:20:42]execute_script done [11:20:42]execute_script returns [11:20:42]free content buf [11:20:42]Sock 8.Close socket [11:20:42]Sock 8.Thread stoped [11:20:46]OFD Sender: No OFD packet to send [11:20:51]OFD Sender: No OFD packet to send [11:20:56]OFD Sender: No OFD packet to send [11:21:01]OFD Sender: No OFD packet to send [11:21:06]OFD Sender: No OFD packet to send [11:21:11]OFD Sender: No OFD packet to send [11:21:16]OFD Sender: No OFD packet to send [11:21:21]OFD Sender: No OFD packet to send [11:21:26]OFD Sender: No OFD packet to send [11:21:31]OFD Sender: No OFD packet to send [11:21:36]OFD Sender: No OFD packet to send [11:21:42]OFD Sender: No OFD packet to send [11:21:47]OFD Sender: No OFD packet to send [11:21:52]OFD Sender: No OFD packet to send [11:21:57]OFD Sender: No OFD packet to send [11:22:02]OFD Sender: No OFD packet to send [11:22:07]OFD Sender: No OFD packet to send [11:22:12]OFD Sender: No OFD packet to send [11:22:17]OFD Sender: No OFD packet to send [11:22:22]OFD Sender: No OFD packet to send [11:22:27]OFD Sender: No OFD packet to send [11:22:32]OFD Sender: No OFD packet to send [11:22:37]OFD Sender: No OFD packet to send [11:22:42]OFD Sender: No OFD packet to send [11:22:47]OFD Sender: No OFD packet to send [11:22:52]OFD Sender: No OFD packet to send [11:22:57]OFD Sender: No OFD packet to send [11:23:02]OFD Sender: No OFD packet to send [11:23:07]OFD Sender: No OFD packet to send [11:23:12]OFD Sender: No OFD packet to send [11:23:17]OFD Sender: No OFD packet to send [11:23:22]OFD Sender: No OFD packet to send [11:23:27]OFD Sender: No OFD packet to send [11:23:32]OFD Sender: No OFD packet to send [11:23:37]OFD Sender: No OFD packet to send [11:23:42]OFD Sender: No OFD packet to send [11:23:47]OFD Sender: No OFD packet to send [11:23:52]OFD Sender: No OFD packet to send [11:23:57]OFD Sender: No OFD packet to send [11:24:02]OFD Sender: No OFD packet to send [11:24:07]OFD Sender: No OFD packet to send [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:35]accept exits with 9 [11:24:35]New connection [11:24:35]New thread 3067198820 created [11:24:35]Thread 3067055460 joined [11:24:35]Waiting for new connection... [11:24:35] Sock 9.Parse request [11:24:35]Sock 9.Check first char [11:24:35]Sock 9.First char is OK [11:24:35]request: POST /json_proto HTTP/1.0 [11:24:35]Method: POST [11:24:35]URL: /json_proto [11:24:35]Method is POST - this is cgi request [11:24:35]url: /json_proto [11:24:35]query_string will be loaded in cgi processing [11:24:35]execute_cgi json_proto POST (null) [11:24:35]execute_cgi path=json_proto method=POST [11:24:35]POST find Content-Length [11:24:35]Host: 172.17.42.131:8080 [11:24:35]Content-Length: 754 [11:24:35]Content-Type: application/json [11:24:35] [11:24:35]POST finish read [11:24:35]Found Content-Length = 754 [11:24:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:35]execute_script... [11:24:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210254", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 15.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118758", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:35]POST & json_proto [11:24:35]process_json_proto [11:24:35]json parsed OK: [11:24:35]protocol is kg_v1.0 [11:24:35]action value=close_receipt [11:24:35]process_action close_receipt [11:24:35]cmd_close_receipt [11:24:35]MH_GetDate [11:24:35]Write to MH i2c: F0 00 00 FC 47 32 [11:24:35]Write i2c OK [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 09 00 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: F0 09 00 FC 47 00 76 8B 17 67 A0 18 CA 66 A2 [11:24:35]GetLastDocTimeStamp 1729596041 [11:24:35]current date 1729596278 [11:24:35]FM_GetShiftState [11:24:35]SAM_PROTO_GetShiftState [11:24:35]wFMCommunicate request_size=4 [11:24:35]MH_SAM_APDU [11:24:35]CAPDU: 80 13 01 00 [11:24:35]Write to MH i2c: E2 08 00 FD 47 80 13 01 00 00 00 00 00 C1 [11:24:35]Write i2c OK [11:24:35]MH_I2C_Read... [11:24:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:35]Read from MH i2c: E2 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: E2 0E 00 [11:24:35]MH_I2C_Read... [11:24:35]Read from MH i2c: E2 0E 00 FD 47 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B6 [11:24:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:24:35]wFMCommunicate OK [11:24:35]SAM_PROTO_GetShiftState done [11:24:35]FM_GetShiftState done [11:24:35]opened in 1729556094 [11:24:35]opened+sec_in_day 1729642494 [11:24:35]quantity*price = 0 [11:24:35]sum+1 = 1 [11:24:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 231 22.10.2024 11:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118758 ФМ: 0000000000965340 ФД: 188202 ФПД: 222011914341944 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188202&fm=222011914341944&tin=02508201610067®Number=0000000000100030&sum=0 [11:24:36]StoreToDocumentArchive [11:24:36]shift 461 fd 188202 [11:24:36]save to /storage/0461/doc_00188202 [11:24:36]save last doc name /storage/0461/doc_00188202 to /storage/kkm_last_doc_name [11:24:36]save OK [11:24:36]Clear old archive folders... [11:24:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:24:36]tlvbuf is 01BA26E0 [11:24:36]SAM_PROTO_ClearQueue [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 09 00 00 [11:24:36]Write to MH i2c: E2 08 00 0A 48 80 09 00 00 00 00 00 00 C4 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 0A 48 00 90 00 C6 [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]SAM_PROTO_ClearQueue done [11:24:36]KKMCreateOFDPacket [11:24:36]OFDProtocolAddRootSTLVToBuf [11:24:36]FM_MakeSignedData [11:24:36]FM_MakeSignedData [11:24:36]SAM_PROTO_SignData [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 01 02 [11:24:36]Write to MH i2c: E2 08 00 0B 48 80 0D 01 02 00 00 00 00 CC [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 0B 48 00 90 00 C7 [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=255 [11:24:36]MH_SAM_APDU [11:24: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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 76 8B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DF 02 00 35 04 06 00 C9 [11:24:36]Write to MH i2c: E2 02 01 0C 48 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 76 8B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DF 02 00 35 04 06 00 C9 00 00 94 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 0C 48 00 90 00 C8 [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=10 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 02 02 05 EB 2D 4A 4E 38 [11:24:36]Write to MH i2c: E2 0D 00 0D 48 80 0D 02 02 05 00 EB 2D 4A 4E 38 00 00 C1 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 03 00 0D 48 00 90 00 C9 [11:24:36]RAPDU: 90 00 [11:24:36]wFMCommunicate OK [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 0D 03 02 [11:24:36]Write to MH i2c: E2 08 00 0E 48 80 0D 03 02 00 00 00 00 D1 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 0B 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 0B 00 0E 48 00 11 61 BC E7 40 89 B6 50 90 00 B6 [11:24:36]RAPDU: 11 61 BC E7 40 89 B6 50 90 00 [11:24:36]wFMCommunicate OK [11:24:36]SAM_PROTO_SignData done [11:24:36]FM_MakeSignedData done [11:24:36]CreateOFDProtocolMessage [11:24:36]wFMCommunicate request_size=4 [11:24:36]MH_SAM_APDU [11:24:36]CAPDU: 80 11 00 00 [11:24:36]Write to MH i2c: E2 08 00 0F 48 80 11 00 00 00 00 00 00 D1 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:36]Read from MH i2c: E2 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 17 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: E2 17 00 0F 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [11:24:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:24:36]wFMCommunicate OK [11:24:36]CreateOFDProtocolMessage done [11:24:36]OFDSenderStorePacket 188202 [11:24:36]StoreOFDPacket docnum=188202 [11:24:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 43 07 01 53 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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 76 8B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DF 02 00 35 04 06 00 C9 EB 2D 4A 4E 38 11 61 BC E7 40 89 B6 50 [11:24:36]CheckFolder [11:24:36]dirname=/storage/ofd_packets [11:24:36]CheckFolder done [11:24:36]ProducePacketName [11:24:36]name=ofd_packets/00188202 [11:24:36]NVStorageSaveData ofd_packets/00188202 [11:24:36]File name is /storage/ofd_packets/00188202 [11:24:36]Write 301 bytes [11:24:36]NVStorageSaveData done [11:24:36]OFDSenderStorePacket done [11:24:36]KKMCreateOFDPacket done [11:24:36]NVStorageSaveData kkm_last_timestamp [11:24:36]File name is /storage/kkm_last_timestamp [11:24:36]Write 4 bytes [11:24:36]NVStorageSaveData done [11:24:36]ExternCall_PrintAddStr [11:24:36]wPrintStart [11:24:36]Write to MH i2c: 01 00 00 10 48 58 [11:24:36]Write i2c OK [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: 01 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: 01 07 00 [11:24:36]MH_I2C_Read... [11:24:36]Read from MH i2c: 01 07 00 10 48 00 00 00 00 00 FF 0F 6D [11:24:36]RasterBufferAndPrint [11:24:36]line Счет N : (1)210254 [11:24:36]line ИНН: 02508201610067 [11:24:36]line Контрольно-Кассовый Чек [11:24:36]line ПРОДАЖА [11:24:36]line ТРК (МРК, ГНК) : 42 [11:24:36]line Товар: 2710124130 [11:24:36]line Аи-92-К-3 [11:24:36]line 15.000 * 0.00 [11:24:36]line = 0.00 [11:24:36]line НДС 12% НСП 1% [11:24:36]line > о реализуемом товаре [11:24:36]line ИТОГО: 0.00 [11:24:36]line НСП 1% : 0.00 [11:24:36]line НДС 12% : 0.00 [11:24:36]line Наличными: 0.00 [11:24:36]line Безнал.: 0.00 [11:24:36]line Место: АЗС № 86 "Партнер Нефть" [11:24:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:24:36]line СНО: Общий режим [11:24:36]line Чек 231 22.10.2024 11:24 [11:24:36]line Смена: 461 ФФД: 1.0 [11:24:36]line ЗНМ: 0300000155 [11:24:36]line РНМ: 0000000000100030 [11:24:36]line Версия ККМ: 001 [11:24:36]line Талоны: ТК ГПНА Online [11:24:36]line 30118758 [11:24:36]line ФМ: 0000000000965340 [11:24:36]line ФД: 188202 [11:24:36]line ФПД: 222011914341944 [11:24:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188202&fm=222011914341944&tin=02508201610067®Number=0000000000100030&sum=0 [11:24:36]OFD Sender: Processing packet 188202 [packets to send 1062, broken 1061] [11:24:36]ProducePacketName [11:24:36]name=ofd_packets/00188202 [11:24:36]OFD Sender: To server: pG, [11:24:36]CommunicateWithHost lk.salyk.kg:30040 [11:24:36]ConnectInit lk.salyk.kg [11:24:36]written 0, free lines is 4095 [11:24:37]Connected sock=10 [11:24:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1D 43 07 01 53 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 33 FF 03 08 00 03 98 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 00 00 00 F4 03 04 00 76 8B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A DF 02 00 35 04 06 00 C9 EB 2D 4A 4E 38 11 61 BC E7 40 89 B6 50 [11:24:37]Write to MH i2c: 01 00 00 3A 48 82 [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 07 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: 01 07 00 3A 48 00 00 00 00 00 8B 0C 20 [11:24:37]RasterBufferAndPrint [11:24:37]line [11:24:37]line [11:24:37]line [11:24:37]line [11:24:37]line [11:24:37]written 0, free lines is 3215 [11:24:37]MH_Cut [11:24:37]Write to MH i2c: D1 01 00 41 48 01 5B [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: D1 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: D1 01 00 [11:24:37]MH_I2C_Read... [11:24:37]Read from MH i2c: D1 01 00 41 48 00 5A [11:24:37]Write to MH i2c: 01 00 00 42 48 8A [11:24:37]Write i2c OK [11:24:37]MH_I2C_Read... [11:24:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 56 47 00 E1 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 39 36 35 33 34 30 10 04 04 00 2A DF 02 00 F4 03 04 00 63 35 17 67 B6 04 01 00 00 86 BA DC CE 40 2E CE E8 [11:24:37]CommunicateWithHost err = 0 [11:24:37]CheckOFDResponse [11:24:37]1017 (14) - 77093643461234 [11:24:37]1041 (16) - 0000000000965340 [11:24:37]1040 (4) - 188202 [11:24:37]1012 (4) - 22.10.2024 05:17 [11:24:37]1206 (1) - 0 [11:24:37]OFD Sender: Remove packet 188202 [11:24:37]ProducePacketName [11:24:37]name=ofd_packets/00188202 [11:24:37]NVStorageDeleteData [11:24:37]OFD Sender: No OFD packet to send [11:24:38]*** Cut start [11:24:38]*** Partial cut [11:24:38]*** CUTSNS_PIN = 1 [11:24:38]*** CUTSNS_PIN = 0 [11:24:38]*** Brake cut motor [11:24:39]Read from MH i2c: 01 [11:24:39]MH_I2C_Read... [11:24:39]*** Stop cut motor [11:24:39]*** Cut end [11:24:39]Read from MH i2c: 01 07 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: 01 07 00 42 48 00 00 00 00 00 FF 0F 9F [11:24:39]process_action close_receipt done [11:24:39]requested_data is exist [11:24:39]produce_requested_data [11:24:39]requested_item fm.sn is exist - process it [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 11 00 00 [11:24:39]Write to MH i2c: E2 08 00 43 48 80 11 00 00 00 00 00 00 05 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 17 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 17 00 43 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [11:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:24:39]wFMCommunicate OK [11:24:39]requested_item fd.num is exist - process it [11:24:39]SAM_PROTO_GetFieldsCounters [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 00 00 [11:24:39]Write to MH i2c: E2 08 00 44 48 80 13 00 00 00 00 00 00 08 [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 62 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 62 00 44 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 9D [11:24:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E7 00 00 00 5E 04 04 00 E7 00 00 00 57 04 04 00 E8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetFieldsCounters done [11:24:39]requested_item shift.num is exist - process it [11:24:39]requested_item shift.opened is exist - process it [11:24:39]req_shift_opened [11:24:39]FM_GetShiftState [11:24:39]SAM_PROTO_GetShiftState [11:24:39]wFMCommunicate request_size=4 [11:24:39]MH_SAM_APDU [11:24:39]CAPDU: 80 13 01 00 [11:24:39]Write to MH i2c: E2 08 00 45 48 80 13 01 00 00 00 00 00 0A [11:24:39]Write i2c OK [11:24:39]MH_I2C_Read... [11:24:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:39]Read from MH i2c: E2 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 [11:24:39]MH_I2C_Read... [11:24:39]Read from MH i2c: E2 0E 00 45 48 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FF [11:24:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:24:39]wFMCommunicate OK [11:24:39]SAM_PROTO_GetShiftState done [11:24:39]FM_GetShiftState done [11:24:39]req_shift_opened done [11:24:39]requested_item shift.open_date is exist - process it [11:24:39]req_shift_open_date [11:24:39]req_shift_open_date done [11:24:39]produce_requested_data done [11:24:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188202,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:24:39]process_action_free close_receipt [11:24:39]json_value_free [11:24:39]json_value_free done [11:24:39]process_json_proto returns [11:24:39]Send response to host [11:24:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188202,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:24:39]free response buf [11:24:39]execute_script done [11:24:39]execute_script returns [11:24:39]free content buf [11:24:39]Sock 9.Close socket [11:24:39]Sock 9.Thread stoped [11:24:43]OFD Sender: No OFD packet to send [11:24:48]OFD Sender: No OFD packet to send [11:24:53]OFD Sender: No OFD packet to send [11:24:58]OFD Sender: No OFD packet to send [11:25:03]OFD Sender: No OFD packet to send [11:25:08]OFD Sender: No OFD packet to send [11:25:13]OFD Sender: No OFD packet to send [11:25:18]OFD Sender: No OFD packet to send [11:25:23]OFD Sender: No OFD packet to send [11:25:28]OFD Sender: No OFD packet to send [11:25:33]OFD Sender: No OFD packet to send [11:25:38]OFD Sender: No OFD packet to send [11:25:43]OFD Sender: No OFD packet to send [11:25:48]OFD Sender: No OFD packet to send [11:25:53]OFD Sender: No OFD packet to send [11:25:58]OFD Sender: No OFD packet to send [11:26:03]OFD Sender: No OFD packet to send [11:26:08]OFD Sender: No OFD packet to send [11:26:13]OFD Sender: No OFD packet to send [11:26:18]OFD Sender: No OFD packet to send [11:26:23]OFD Sender: No OFD packet to send [11:26:28]OFD Sender: No OFD packet to send [11:26:33]OFD Sender: No OFD packet to send [11:26:38]OFD Sender: No OFD packet to send [11:26:43]OFD Sender: No OFD packet to send [11:26:48]OFD Sender: No OFD packet to send [11:26:53]OFD Sender: No OFD packet to send [11:26:56]accept exits with 8 [11:26:56]New connection [11:26:56]New thread 3067055460 created [11:26:56]Thread 3067198820 joined [11:26:56]Waiting for new connection... [11:26:56] Sock 8.Parse request [11:26:56]Sock 8.Check first char [11:26:56]Sock 8.First char is OK [11:26:56]request: POST /json_proto HTTP/1.0 [11:26:56]Method: POST [11:26:56]URL: /json_proto [11:26:56]Method is POST - this is cgi request [11:26:56]url: /json_proto [11:26:56]query_string will be loaded in cgi processing [11:26:56]execute_cgi json_proto POST (null) [11:26:56]execute_cgi path=json_proto method=POST [11:26:56]POST find Content-Length [11:26:56]Host: 172.17.42.131:8080 [11:26:56]Content-Length: 790 [11:26:56]Content-Type: application/json [11:26:56] [11:26:56]POST finish read [11:26:56]Found Content-Length = 790 [11:26:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:56]execute_script... [11: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)210255", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:26:56]POST & json_proto [11:26:56]process_json_proto [11:26:56]json parsed OK: [11:26:56]protocol is kg_v1.0 [11:26:56]action value=close_receipt [11:26:56]process_action close_receipt [11:26:56]cmd_close_receipt [11:26:56]MH_GetDate [11:26:56]Write to MH i2c: F0 00 00 46 48 7D [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: F0 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: F0 09 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: F0 09 00 46 48 00 03 8C 17 67 A0 18 CA 66 7B [11:26:56]GetLastDocTimeStamp 1729596278 [11:26:56]current date 1729596419 [11:26:56]FM_GetShiftState [11:26:56]SAM_PROTO_GetShiftState [11:26:56]wFMCommunicate request_size=4 [11:26:56]MH_SAM_APDU [11:26:56]CAPDU: 80 13 01 00 [11:26:56]Write to MH i2c: E2 08 00 47 48 80 13 01 00 00 00 00 00 0C [11:26:56]Write i2c OK [11:26:56]MH_I2C_Read... [11:26:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:26:56]Read from MH i2c: E2 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 0E 00 [11:26:56]MH_I2C_Read... [11:26:56]Read from MH i2c: E2 0E 00 47 48 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 01 [11:26:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:26:56]wFMCommunicate OK [11:26:56]SAM_PROTO_GetShiftState done [11:26:56]FM_GetShiftState done [11:26:56]opened in 1729556094 [11:26:56]opened+sec_in_day 1729642494 [11:26:56]quantity*price = 0 [11:26:56]sum+1 = 1 [11:26:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 232 22.10.2024 11:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02640 ФМ: 0000000000965340 ФД: 188203 ФПД: 236406546903830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188203&fm=236406546903830&tin=02508201610067®Number=0000000000100030&sum=0 [11:26:57]StoreToDocumentArchive [11:26:57]shift 461 fd 188203 [11:26:57]save to /storage/0461/doc_00188203 [11:26:57]save last doc name /storage/0461/doc_00188203 to /storage/kkm_last_doc_name [11:26:57]save OK [11:26:57]Clear old archive folders... [11:26:57]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:26:57]tlvbuf is 01CE87E0 [11:26:57]SAM_PROTO_ClearQueue [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 09 00 00 [11:26:57]Write to MH i2c: E2 08 00 54 48 80 09 00 00 00 00 00 00 0E [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 54 48 00 90 00 10 [11:26:57]RAPDU: 90 00 [11:26:57]wFMCommunicate OK [11:26:57]SAM_PROTO_ClearQueue done [11:26:57]KKMCreateOFDPacket [11:26:57]OFDProtocolAddRootSTLVToBuf [11:26:57]FM_MakeSignedData [11:26:57]FM_MakeSignedData [11:26:57]SAM_PROTO_SignData [11:26:57]wFMCommunicate request_size=4 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 0D 01 02 [11:26:57]Write to MH i2c: E2 08 00 55 48 80 0D 01 02 00 00 00 00 16 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:26:57]Read from MH i2c: E2 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 [11:26:57]MH_I2C_Read... [11:26:57]Read from MH i2c: E2 03 00 55 48 00 90 00 11 [11:26:57]RAPDU: 90 00 [11:26:57]wFMCommunicate OK [11:26:57]wFMCommunicate request_size=255 [11:26:57]MH_SAM_APDU [11:26:57]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 03 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DF 02 00 35 04 06 00 D7 02 B0 40 [11:26:57]Write to MH i2c: E2 02 01 56 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 03 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DF 02 00 35 04 06 00 D7 02 B0 40 00 00 18 [11:26:57]Write i2c OK [11:26:57]MH_I2C_Read... [11:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:58]Read from MH i2c: E2 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 03 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 03 00 56 48 00 90 00 12 [11:26:58]RAPDU: 90 00 [11:26:58]wFMCommunicate OK [11:26:58]wFMCommunicate request_size=7 [11:26:58]MH_SAM_APDU [11:26:58]CAPDU: 80 0D 02 02 02 33 16 [11:26:58]Write to MH i2c: E2 0A 00 57 48 80 0D 02 02 02 00 33 16 00 00 66 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:26:58]Read from MH i2c: E2 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 03 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 03 00 57 48 00 90 00 13 [11:26:58]RAPDU: 90 00 [11:26:58]wFMCommunicate OK [11:26:58]wFMCommunicate request_size=4 [11:26:58]MH_SAM_APDU [11:26:58]CAPDU: 80 0D 03 02 [11:26:58]Write to MH i2c: E2 08 00 58 48 80 0D 03 02 00 00 00 00 1B [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:26:58]Read from MH i2c: E2 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 0B 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 0B 00 58 48 00 24 BE E1 EA 94 39 38 7F 90 00 4D [11:26:58]RAPDU: 24 BE E1 EA 94 39 38 7F 90 00 [11:26:58]wFMCommunicate OK [11:26:58]SAM_PROTO_SignData done [11:26:58]FM_MakeSignedData done [11:26:58]CreateOFDProtocolMessage [11:26:58]wFMCommunicate request_size=4 [11:26:58]MH_SAM_APDU [11:26:58]CAPDU: 80 11 00 00 [11:26:58]Write to MH i2c: E2 08 00 59 48 80 11 00 00 00 00 00 00 1B [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:26:58]Read from MH i2c: E2 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 17 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: E2 17 00 59 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [11:26:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:26:58]wFMCommunicate OK [11:26:58]CreateOFDProtocolMessage done [11:26:58]OFDSenderStorePacket 188203 [11:26:58]StoreOFDPacket docnum=188203 [11:26:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 19 44 04 01 B8 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 03 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DF 02 00 35 04 06 00 D7 02 B0 40 33 16 24 BE E1 EA 94 39 38 7F [11:26:58]CheckFolder [11:26:58]dirname=/storage/ofd_packets [11:26:58]CheckFolder done [11:26:58]ProducePacketName [11:26:58]name=ofd_packets/00188203 [11:26:58]NVStorageSaveData ofd_packets/00188203 [11:26:58]File name is /storage/ofd_packets/00188203 [11:26:58]Write 298 bytes [11:26:58]NVStorageSaveData done [11:26:58]OFDSenderStorePacket done [11:26:58]KKMCreateOFDPacket done [11:26:58]NVStorageSaveData kkm_last_timestamp [11:26:58]File name is /storage/kkm_last_timestamp [11:26:58]Write 4 bytes [11:26:58]NVStorageSaveData done [11:26:58]ExternCall_PrintAddStr [11:26:58]wPrintStart [11:26:58]Write to MH i2c: 01 00 00 5A 48 A2 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 5A 48 00 00 00 00 00 FF 0F B7 [11:26:58]RasterBufferAndPrint [11:26:58]line Счет N : (1)210255 [11:26:58]line ИНН: 02508201610067 [11:26:58]line Контрольно-Кассовый Чек [11:26:58]line ПРОДАЖА [11:26:58]line ТРК (МРК, ГНК) : 51 [11:26:58]line Товар: 2710194210 [11:26:58]line ДТ-К-5 [11:26:58]line 100.000 * 0.00 [11:26:58]line = 0.00 [11:26:58]line НДС 12% НСП 1% [11:26:58]line > о реализуемом товаре [11:26:58]line ИТОГО: 0.00 [11:26:58]line НСП 1% : 0.00 [11:26:58]line НДС 12% : 0.00 [11:26:58]line Наличными: 0.00 [11:26:58]line Безнал.: 0.00 [11:26:58]line Место: АЗС № 86 "Партнер Нефть" [11:26:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:26:58]line СНО: Общий режим [11:26:58]line Чек 232 22.10.2024 11:26 [11:26:58]line Смена: 461 ФФД: 1.0 [11:26:58]line ЗНМ: 0300000155 [11:26:58]line РНМ: 0000000000100030 [11:26:58]line Версия ККМ: 001 [11:26:58]line Талоны: Топливная Карта [11:26:58]line 02640 [11:26:58]line ФМ: 0000000000965340 [11:26:58]line ФД: 188203 [11:26:58]line ФПД: 236406546903830 [11:26:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188203&fm=236406546903830&tin=02508201610067®Number=0000000000100030&sum=0 [11:26:58]written 0, free lines is 4095 [11:26:58]OFD Sender: Processing packet 188203 [packets to send 1062, broken 1061] [11:26:58]ProducePacketName [11:26:58]name=ofd_packets/00188203 [11:26:58]OFD Sender: To server: pG, [11:26:58]CommunicateWithHost lk.salyk.kg:30040 [11:26:58]ConnectInit lk.salyk.kg [11:26:58]Write to MH i2c: 01 00 00 84 48 CC [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: 01 07 00 84 48 00 00 00 00 00 84 0C 63 [11:26:58]RasterBufferAndPrint [11:26:58]line [11:26:58]line [11:26:58]line [11:26:58]line [11:26:58]line [11:26:58]written 0, free lines is 3208 [11:26:58]MH_Cut [11:26:58]Write to MH i2c: D1 01 00 8B 48 01 A5 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: D1 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: D1 01 00 [11:26:58]MH_I2C_Read... [11:26:58]Read from MH i2c: D1 01 00 8B 48 00 A4 [11:26:58]Write to MH i2c: 01 00 00 8C 48 D4 [11:26:58]Write i2c OK [11:26:58]MH_I2C_Read... [11:26:58]Connected sock=10 [11:26:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 19 44 04 01 B8 87 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E8 00 00 00 F4 03 04 00 03 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DF 02 00 35 04 06 00 D7 02 B0 40 33 16 24 BE E1 EA 94 39 38 7F [11:26:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E FC 47 00 D9 95 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B DF 02 00 F4 03 04 00 F1 35 17 67 B6 04 01 00 00 DB A9 61 C2 0B 8F D8 AA [11:26:59]CommunicateWithHost err = 0 [11:26:59]CheckOFDResponse [11:26:59]1017 (14) - 77093643461234 [11:26:59]1041 (16) - 0000000000965340 [11:26:59]1040 (4) - 188203 [11:26:59]1012 (4) - 22.10.2024 05:19 [11:26:59]1206 (1) - 0 [11:26:59]OFD Sender: Remove packet 188203 [11:26:59]ProducePacketName [11:26:59]name=ofd_packets/00188203 [11:26:59]NVStorageDeleteData [11:26:59]OFD Sender: No OFD packet to send [11:26:59]*** Cut start [11:26:59]*** Partial cut [11:26:59]*** CUTSNS_PIN = 1 [11:26:59]*** CUTSNS_PIN = 0 [11:27:00]*** Brake cut motor [11:27:00]Read from MH i2c: 01 [11:27:00]MH_I2C_Read... [11:27:00]*** Stop cut motor [11:27:00]*** Cut end [11:27:00]Read from MH i2c: 01 07 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: 01 07 00 8C 48 00 00 00 00 00 FF 0F E9 [11:27:00]process_action close_receipt done [11:27:00]requested_data is exist [11:27:00]produce_requested_data [11:27:00]requested_item fm.sn is exist - process it [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 11 00 00 [11:27:00]Write to MH i2c: E2 08 00 8D 48 80 11 00 00 00 00 00 00 4F [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 17 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 17 00 8D 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [11:27:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:27:00]wFMCommunicate OK [11:27:00]requested_item fd.num is exist - process it [11:27:00]SAM_PROTO_GetFieldsCounters [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 13 00 00 [11:27:00]Write to MH i2c: E2 08 00 8E 48 80 13 00 00 00 00 00 00 52 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 62 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 62 00 8E 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 EB [11:27:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E8 00 00 00 5E 04 04 00 E8 00 00 00 57 04 04 00 E9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_GetFieldsCounters done [11:27:00]requested_item shift.num is exist - process it [11:27:00]requested_item shift.opened is exist - process it [11:27:00]req_shift_opened [11:27:00]FM_GetShiftState [11:27:00]SAM_PROTO_GetShiftState [11:27:00]wFMCommunicate request_size=4 [11:27:00]MH_SAM_APDU [11:27:00]CAPDU: 80 13 01 00 [11:27:00]Write to MH i2c: E2 08 00 8F 48 80 13 01 00 00 00 00 00 54 [11:27:00]Write i2c OK [11:27:00]MH_I2C_Read... [11:27:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:27:00]Read from MH i2c: E2 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 0E 00 [11:27:00]MH_I2C_Read... [11:27:00]Read from MH i2c: E2 0E 00 8F 48 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [11:27:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:27:00]wFMCommunicate OK [11:27:00]SAM_PROTO_GetShiftState done [11:27:00]FM_GetShiftState done [11:27:00]req_shift_opened done [11:27:00]requested_item shift.open_date is exist - process it [11:27:00]req_shift_open_date [11:27:00]req_shift_open_date done [11:27:00]produce_requested_data done [11:27:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188203,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:27:00]process_action_free close_receipt [11:27:00]json_value_free [11:27:00]json_value_free done [11:27:00]process_json_proto returns [11:27:00]Send response to host [11:27:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188203,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:27:00]free response buf [11:27:00]execute_script done [11:27:00]execute_script returns [11:27:00]free content buf [11:27:00]Sock 8.Close socket [11:27:00]Sock 8.Thread stoped [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:55]OFD Sender: No OFD packet to send [11:28:00]OFD Sender: No OFD packet to send [11:28:05]OFD Sender: No OFD packet to send [11:28:10]OFD Sender: No OFD packet to send [11:28:15]OFD Sender: No OFD packet to send [11:28:20]OFD Sender: No OFD packet to send [11:28:25]OFD Sender: No OFD packet to send [11:28:30]OFD Sender: No OFD packet to send [11:28:35]OFD Sender: No OFD packet to send [11:28:40]OFD Sender: No OFD packet to send [11:28:45]OFD Sender: No OFD packet to send [11:28:50]OFD Sender: No OFD packet to send [11:28:55]OFD Sender: No OFD packet to send [11:29:00]OFD Sender: No OFD packet to send [11:29:05]OFD Sender: No OFD packet to send [11:29:10]OFD Sender: No OFD packet to send [11:29:15]OFD Sender: No OFD packet to send [11:29:20]OFD Sender: No OFD packet to send [11:29:25]OFD Sender: No OFD packet to send [11:29:30]OFD Sender: No OFD packet to send [11:29:35]OFD Sender: No OFD packet to send [11:29:40]OFD Sender: No OFD packet to send [11:29:45]OFD Sender: No OFD packet to send [11:29:45]accept exits with 9 [11:29:45]New connection [11:29:45]New thread 3067198820 created [11:29:45]Thread 3067055460 joined [11:29:45]Waiting for new connection... [11:29:45] Sock 9.Parse request [11:29:45]Sock 9.Check first char [11:29:45]Sock 9.First char is OK [11:29:45]request: POST /json_proto HTTP/1.0 [11:29:45]Method: POST [11:29:45]URL: /json_proto [11:29:45]Method is POST - this is cgi request [11:29:45]url: /json_proto [11:29:45]query_string will be loaded in cgi processing [11:29:45]execute_cgi json_proto POST (null) [11:29:45]execute_cgi path=json_proto method=POST [11:29:45]POST find Content-Length [11:29:45]Host: 172.17.42.131:8080 [11:29:45]Content-Length: 688 [11:29:45]Content-Type: application/json [11:29:45] [11:29:45]POST finish read [11:29:45]Found Content-Length = 688 [11:29:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:29:45]execute_script... [11:29: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)210258", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:29:45]POST & json_proto [11:29:45]process_json_proto [11:29:45]json parsed OK: [11:29:45]protocol is kg_v1.0 [11:29:45]action value=close_receipt [11:29:45]process_action close_receipt [11:29:45]cmd_close_receipt [11:29:45]MH_GetDate [11:29:45]Write to MH i2c: F0 00 00 90 48 C7 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: F0 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: F0 09 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: F0 09 00 90 48 00 AC 8C 17 67 A0 18 CA 66 6E [11:29:45]GetLastDocTimeStamp 1729596419 [11:29:45]current date 1729596588 [11:29:45]FM_GetShiftState [11:29:45]SAM_PROTO_GetShiftState [11:29:45]wFMCommunicate request_size=4 [11:29:45]MH_SAM_APDU [11:29:45]CAPDU: 80 13 01 00 [11:29:45]Write to MH i2c: E2 08 00 91 48 80 13 01 00 00 00 00 00 56 [11:29:45]Write i2c OK [11:29:45]MH_I2C_Read... [11:29:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:45]Read from MH i2c: E2 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 0E 00 [11:29:45]MH_I2C_Read... [11:29:45]Read from MH i2c: E2 0E 00 91 48 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [11:29:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:29:45]wFMCommunicate OK [11:29:45]SAM_PROTO_GetShiftState done [11:29:45]FM_GetShiftState done [11:29:45]opened in 1729556094 [11:29:45]opened+sec_in_day 1729642494 [11:29:45]quantity*price = 100051 [11:29:45]sum+1 = 100052 [11:29: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 233 22.10.2024 11:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188204 ФПД: 40989469104502 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188204&fm=40989469104502&tin=02508201610067®Number=0000000000100030&sum=100000 [11:29:46]StoreToDocumentArchive [11:29:46]shift 461 fd 188204 [11:29:46]save to /storage/0461/doc_00188204 [11:29:46]save last doc name /storage/0461/doc_00188204 to /storage/kkm_last_doc_name [11:29:46]save OK [11:29:46]Clear old archive folders... [11:29:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:29:46]tlvbuf is 01BAD9D0 [11:29:46]SAM_PROTO_ClearQueue [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 09 00 00 [11:29:46]Write to MH i2c: E2 08 00 9E 48 80 09 00 00 00 00 00 00 58 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:29:46]Read from MH i2c: E2 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 [11:29:46]MH_I2C_Read... [11:29:46]Read from MH i2c: E2 03 00 9E 48 00 90 00 5A [11:29:46]RAPDU: 90 00 [11:29:46]wFMCommunicate OK [11:29:46]SAM_PROTO_ClearQueue done [11:29:46]KKMCreateOFDPacket [11:29:46]OFDProtocolAddRootSTLVToBuf [11:29:46]FM_MakeSignedData [11:29:46]FM_MakeSignedData [11:29:46]SAM_PROTO_SignData [11:29:46]wFMCommunicate request_size=4 [11:29:46]MH_SAM_APDU [11:29:46]CAPDU: 80 0D 01 02 [11:29:46]Write to MH i2c: E2 08 00 9F 48 80 0D 01 02 00 00 00 00 60 [11:29:46]Write i2c OK [11:29:46]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 9F 48 00 90 00 5B [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]wFMCommunicate request_size=255 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E9 00 00 00 F4 03 04 00 AD 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DF 02 [11:29:47]Write to MH i2c: E2 02 01 A0 48 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E9 00 00 00 F4 03 04 00 AD 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DF 02 00 00 38 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 A0 48 00 90 00 5C [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]wFMCommunicate request_size=16 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 25 47 9A BE D9 76 [11:29:47]Write to MH i2c: E2 13 00 A1 48 80 0D 02 02 0B 00 00 35 04 06 00 25 47 9A BE D9 76 00 00 CB [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 03 00 A1 48 00 90 00 5D [11:29:47]RAPDU: 90 00 [11:29:47]wFMCommunicate OK [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 0D 03 02 [11:29:47]Write to MH i2c: E2 08 00 A2 48 80 0D 03 02 00 00 00 00 65 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0B 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 0B 00 A2 48 00 67 57 0B A8 4F A5 9D B6 90 00 1E [11:29:47]RAPDU: 67 57 0B A8 4F A5 9D B6 90 00 [11:29:47]wFMCommunicate OK [11:29:47]SAM_PROTO_SignData done [11:29:47]FM_MakeSignedData done [11:29:47]CreateOFDProtocolMessage [11:29:47]wFMCommunicate request_size=4 [11:29:47]MH_SAM_APDU [11:29:47]CAPDU: 80 11 00 00 [11:29:47]Write to MH i2c: E2 08 00 A3 48 80 11 00 00 00 00 00 00 65 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:47]Read from MH i2c: E2 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 17 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: E2 17 00 A3 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [11:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:29:47]wFMCommunicate OK [11:29:47]CreateOFDProtocolMessage done [11:29:47]OFDSenderStorePacket 188204 [11:29:47]StoreOFDPacket docnum=188204 [11:29:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 87 7B 0D 01 9B E1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E9 00 00 00 F4 03 04 00 AD 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DF 02 00 35 04 06 00 25 47 9A BE D9 76 67 57 0B A8 4F A5 9D B6 [11:29:47]CheckFolder [11:29:47]dirname=/storage/ofd_packets [11:29:47]CheckFolder done [11:29:47]ProducePacketName [11:29:47]name=ofd_packets/00188204 [11:29:47]NVStorageSaveData ofd_packets/00188204 [11:29:47]File name is /storage/ofd_packets/00188204 [11:29:47]Write 307 bytes [11:29:47]NVStorageSaveData done [11:29:47]OFDSenderStorePacket done [11:29:47]KKMCreateOFDPacket done [11:29:47]NVStorageSaveData kkm_last_timestamp [11:29:47]File name is /storage/kkm_last_timestamp [11:29:47]Write 4 bytes [11:29:47]NVStorageSaveData done [11:29:47]ExternCall_PrintAddStr [11:29:47]wPrintStart [11:29:47]Write to MH i2c: 01 00 00 A4 48 EC [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 A4 48 00 00 00 00 00 FF 0F 01 [11:29:47]RasterBufferAndPrint [11:29:47]line Счет N : (1)210258 [11:29:47]line ИНН: 02508201610067 [11:29:47]line Контрольно-Кассовый Чек [11:29:47]line ПРОДАЖА [11:29:47]line ТРК (МРК, ГНК) : 21 [11:29:47]line Товар: 2710194210 [11:29:47]line D-ENERGY ДТ-К-5 [11:29:47]line 12.960 * 77.20 [11:29:47]line = 1000.51 [11:29:47]line НДС 12% НСП 1% [11:29:47]line > о реализуемом товаре [11:29:47]line ОКРУГЛЕНИЕ: -0.51 [11:29:47]line ИТОГО: 1000.00 [11:29:47]line Внесено: 1000.00 [11:29:47]line СДАЧА: 0.00 [11:29:47]line НСП 1% : 8.85 [11:29:47]line НДС 12% : 106.25 [11:29:47]line Наличными: 1000.00 [11:29:47]line Безнал.: 0.00 [11:29:47]line Место: АЗС № 86 "Партнер Нефть" [11:29:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:29:47]line СНО: Общий режим [11:29:47]line Чек 233 22.10.2024 11:29 [11:29:47]line Смена: 461 ФФД: 1.0 [11:29:47]line ЗНМ: 0300000155 [11:29:47]line РНМ: 0000000000100030 [11:29:47]line Версия ККМ: 001 [11:29:47]line ФМ: 0000000000965340 [11:29:47]line ФД: 188204 [11:29:47]line ФПД: 40989469104502 [11:29:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T112949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188204&fm=40989469104502&tin=02508201610067®Number=0000000000100030&sum=100000 [11:29:47]written 0, free lines is 4095 [11:29:47]OFD Sender: Processing packet 188204 [packets to send 1062, broken 1061] [11:29:47]ProducePacketName [11:29:47]name=ofd_packets/00188204 [11:29:47]OFD Sender: To server: pG, [11:29:47]CommunicateWithHost lk.salyk.kg:30040 [11:29:47]ConnectInit lk.salyk.kg [11:29:47]Connected sock=11 [11:29:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 87 7B 0D 01 9B E1 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 E9 00 00 00 F4 03 04 00 AD 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C DF 02 00 35 04 06 00 25 47 9A BE D9 76 67 57 0B A8 4F A5 9D B6 [11:29:47]Write to MH i2c: 01 00 00 CF 48 17 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: 01 07 00 CF 48 00 00 00 00 00 6C 0C 96 [11:29:47]RasterBufferAndPrint [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]line [11:29:47]written 0, free lines is 3183 [11:29:47]MH_Cut [11:29:47]Write to MH i2c: D1 01 00 D6 48 01 F0 [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 01 00 [11:29:47]MH_I2C_Read... [11:29:47]Read from MH i2c: D1 01 00 D6 48 00 EF [11:29:47]Write to MH i2c: 01 00 00 D7 48 1F [11:29:47]Write i2c OK [11:29:47]MH_I2C_Read... [11:29:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 86 71 47 00 C0 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 39 36 35 33 34 30 10 04 04 00 2C DF 02 00 F4 03 04 00 9A 36 17 67 B6 04 01 00 00 7E AC FB CE E2 64 E5 00 [11:29:48]CommunicateWithHost err = 0 [11:29:48]CheckOFDResponse [11:29:48]1017 (14) - 77093643461234 [11:29:48]1041 (16) - 0000000000965340 [11:29:48]1040 (4) - 188204 [11:29:48]1012 (4) - 22.10.2024 05:22 [11:29:48]1206 (1) - 0 [11:29:48]OFD Sender: Remove packet 188204 [11:29:48]ProducePacketName [11:29:48]name=ofd_packets/00188204 [11:29:48]NVStorageDeleteData [11:29:48]OFD Sender: No OFD packet to send [11:29:49]*** Cut start [11:29:49]*** Partial cut [11:29:49]*** CUTSNS_PIN = 1 [11:29:49]*** CUTSNS_PIN = 0 [11:29:49]*** Brake cut motor [11:29:49]Read from MH i2c: 01 [11:29:49]MH_I2C_Read... [11:29:49]*** Stop cut motor [11:29:49]*** Cut end [11:29:49]Read from MH i2c: 01 07 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: 01 07 00 D7 48 00 00 00 00 00 FF 0F 34 [11:29:49]process_action close_receipt done [11:29:49]requested_data is exist [11:29:49]produce_requested_data [11:29:49]requested_item fm.sn is exist - process it [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 11 00 00 [11:29:49]Write to MH i2c: E2 08 00 D8 48 80 11 00 00 00 00 00 00 9A [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 17 00 D8 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [11:29:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:29:49]wFMCommunicate OK [11:29:49]requested_item fd.num is exist - process it [11:29:49]SAM_PROTO_GetFieldsCounters [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 13 00 00 [11:29:49]Write to MH i2c: E2 08 00 D9 48 80 13 00 00 00 00 00 00 9D [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:29:49]Read from MH i2c: E2 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 62 00 [11:29:49]MH_I2C_Read... [11:29:49]Read from MH i2c: E2 62 00 D9 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [11:29:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E9 00 00 00 5E 04 04 00 E9 00 00 00 57 04 04 00 EA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:29:49]wFMCommunicate OK [11:29:49]SAM_PROTO_GetFieldsCounters done [11:29:49]requested_item shift.num is exist - process it [11:29:49]requested_item shift.opened is exist - process it [11:29:49]req_shift_opened [11:29:49]FM_GetShiftState [11:29:49]SAM_PROTO_GetShiftState [11:29:49]wFMCommunicate request_size=4 [11:29:49]MH_SAM_APDU [11:29:49]CAPDU: 80 13 01 00 [11:29:49]Write to MH i2c: E2 08 00 DA 48 80 13 01 00 00 00 00 00 9F [11:29:49]Write i2c OK [11:29:49]MH_I2C_Read... [11:29:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:29:50]Read from MH i2c: E2 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 [11:29:50]MH_I2C_Read... [11:29:50]Read from MH i2c: E2 0E 00 DA 48 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 94 [11:29:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:29:50]wFMCommunicate OK [11:29:50]SAM_PROTO_GetShiftState done [11:29:50]FM_GetShiftState done [11:29:50]req_shift_opened done [11:29:50]requested_item shift.open_date is exist - process it [11:29:50]req_shift_open_date [11:29:50]req_shift_open_date done [11:29:50]produce_requested_data done [11:29:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188204,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:29:50]process_action_free close_receipt [11:29:50]json_value_free [11:29:50]json_value_free done [11:29:50]process_json_proto returns [11:29:50]Send response to host [11:29:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188204,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:29:50]free response buf [11:29:50]execute_script done [11:29:50]execute_script returns [11:29:50]free content buf [11:29:50]Sock 9.Close socket [11:29:50]Sock 9.Thread stoped [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]accept exits with 8 [11:30:13]New connection [11:30:13]New thread 3067055460 created [11:30:13]Thread 3067198820 joined [11:30:13]Waiting for new connection... [11:30:13] Sock 8.Parse request [11:30:13]Sock 8.Check first char [11:30:13]Sock 8.First char is OK [11:30:13]request: POST /json_proto HTTP/1.0 [11:30:13]Method: POST [11:30:13]URL: /json_proto [11:30:13]Method is POST - this is cgi request [11:30:13]url: /json_proto [11:30:13]query_string will be loaded in cgi processing [11:30:13]execute_cgi json_proto POST (null) [11:30:13]execute_cgi path=json_proto method=POST [11:30:13]POST find Content-Length [11:30:13]Host: 172.17.42.131:8080 [11:30:13]Content-Length: 790 [11:30:13]Content-Type: application/json [11:30:13] [11:30:13]POST finish read [11:30:13]Found Content-Length = 790 [11:30:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:13]execute_script... [11:30: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)210256", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 100.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02640", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:30:13]POST & json_proto [11:30:13]process_json_proto [11:30:13]json parsed OK: [11:30:13]protocol is kg_v1.0 [11:30:13]action value=close_receipt [11:30:13]process_action close_receipt [11:30:13]cmd_close_receipt [11:30:13]MH_GetDate [11:30:13]Write to MH i2c: F0 00 00 DB 48 12 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: F0 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: F0 09 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: F0 09 00 DB 48 00 C8 8C 17 67 A0 18 CA 66 D5 [11:30:13]GetLastDocTimeStamp 1729596589 [11:30:13]current date 1729596616 [11:30:13]FM_GetShiftState [11:30:13]SAM_PROTO_GetShiftState [11:30:13]wFMCommunicate request_size=4 [11:30:13]MH_SAM_APDU [11:30:13]CAPDU: 80 13 01 00 [11:30:13]Write to MH i2c: E2 08 00 DC 48 80 13 01 00 00 00 00 00 A1 [11:30:13]Write i2c OK [11:30:13]MH_I2C_Read... [11:30:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:13]Read from MH i2c: E2 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 0E 00 [11:30:13]MH_I2C_Read... [11:30:13]Read from MH i2c: E2 0E 00 DC 48 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 96 [11:30:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:30:13]wFMCommunicate OK [11:30:13]SAM_PROTO_GetShiftState done [11:30:13]FM_GetShiftState done [11:30:13]opened in 1729556094 [11:30:13]opened+sec_in_day 1729642494 [11:30:13]quantity*price = 0 [11:30:13]sum+1 = 1 [11:30:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 234 22.10.2024 11:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02640 ФМ: 0000000000965340 ФД: 188205 ФПД: 19319919214581 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188205&fm=19319919214581&tin=02508201610067®Number=0000000000100030&sum=0 [11:30:14]StoreToDocumentArchive [11:30:14]shift 461 fd 188205 [11:30:14]save to /storage/0461/doc_00188205 [11:30:14]save last doc name /storage/0461/doc_00188205 to /storage/kkm_last_doc_name [11:30:14]save OK [11:30:14]Clear old archive folders... [11:30:14]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:30:14]tlvbuf is B6DE43B0 [11:30:14]SAM_PROTO_ClearQueue [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 09 00 00 [11:30:14]Write to MH i2c: E2 08 00 E9 48 80 09 00 00 00 00 00 00 A3 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 E9 48 00 90 00 A5 [11:30:14]RAPDU: 90 00 [11:30:14]wFMCommunicate OK [11:30:14]SAM_PROTO_ClearQueue done [11:30:14]KKMCreateOFDPacket [11:30:14]OFDProtocolAddRootSTLVToBuf [11:30:14]FM_MakeSignedData [11:30:14]FM_MakeSignedData [11:30:14]SAM_PROTO_SignData [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 0D 01 02 [11:30:14]Write to MH i2c: E2 08 00 EA 48 80 0D 01 02 00 00 00 00 AB [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 EA 48 00 90 00 A6 [11:30:14]RAPDU: 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=255 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C8 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DF 02 00 35 04 06 00 11 92 44 EB [11:30:14]Write to MH i2c: E2 02 01 EB 48 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C8 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DF 02 00 35 04 06 00 11 92 44 EB 00 00 7F [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 EB 48 00 90 00 A7 [11:30:14]RAPDU: 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=7 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 0D 02 02 02 FF F5 [11:30:14]Write to MH i2c: E2 0A 00 EC 48 80 0D 02 02 02 00 FF F5 00 00 A6 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 03 00 EC 48 00 90 00 A8 [11:30:14]RAPDU: 90 00 [11:30:14]wFMCommunicate OK [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 0D 03 02 [11:30:14]Write to MH i2c: E2 08 00 ED 48 80 0D 03 02 00 00 00 00 B0 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 0B 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 0B 00 ED 48 00 CD 2B D2 3C 81 64 D5 6B 90 00 DC [11:30:14]RAPDU: CD 2B D2 3C 81 64 D5 6B 90 00 [11:30:14]wFMCommunicate OK [11:30:14]SAM_PROTO_SignData done [11:30:14]FM_MakeSignedData done [11:30:14]CreateOFDProtocolMessage [11:30:14]wFMCommunicate request_size=4 [11:30:14]MH_SAM_APDU [11:30:14]CAPDU: 80 11 00 00 [11:30:14]Write to MH i2c: E2 08 00 EE 48 80 11 00 00 00 00 00 00 B0 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:14]Read from MH i2c: E2 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 17 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: E2 17 00 EE 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [11:30:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:30:14]wFMCommunicate OK [11:30:14]CreateOFDProtocolMessage done [11:30:14]OFDSenderStorePacket 188205 [11:30:14]StoreOFDPacket docnum=188205 [11:30:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 83 C3 04 01 F4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C8 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DF 02 00 35 04 06 00 11 92 44 EB FF F5 CD 2B D2 3C 81 64 D5 6B [11:30:14]CheckFolder [11:30:14]dirname=/storage/ofd_packets [11:30:14]CheckFolder done [11:30:14]ProducePacketName [11:30:14]name=ofd_packets/00188205 [11:30:14]NVStorageSaveData ofd_packets/00188205 [11:30:14]File name is /storage/ofd_packets/00188205 [11:30:14]Write 298 bytes [11:30:14]NVStorageSaveData done [11:30:14]OFDSenderStorePacket done [11:30:14]KKMCreateOFDPacket done [11:30:14]NVStorageSaveData kkm_last_timestamp [11:30:14]File name is /storage/kkm_last_timestamp [11:30:14]Write 4 bytes [11:30:14]NVStorageSaveData done [11:30:14]ExternCall_PrintAddStr [11:30:14]wPrintStart [11:30:14]Write to MH i2c: 01 00 00 EF 48 37 [11:30:14]Write i2c OK [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: 01 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: 01 07 00 [11:30:14]MH_I2C_Read... [11:30:14]Read from MH i2c: 01 07 00 EF 48 00 00 00 00 00 FF 0F 4C [11:30:14]RasterBufferAndPrint [11:30:14]line Счет N : (1)210256 [11:30:14]line ИНН: 02508201610067 [11:30:14]line Контрольно-Кассовый Чек [11:30:14]line ПРОДАЖА [11:30:14]line ТРК (МРК, ГНК) : 51 [11:30:14]line Товар: 2710194210 [11:30:14]line ДТ-К-5 [11:30:14]line 100.000 * 0.00 [11:30:14]line = 0.00 [11:30:14]line НДС 12% НСП 1% [11:30:14]line > о реализуемом товаре [11:30:14]line ИТОГО: 0.00 [11:30:14]line НСП 1% : 0.00 [11:30:14]line НДС 12% : 0.00 [11:30:14]line Наличными: 0.00 [11:30:14]line Безнал.: 0.00 [11:30:14]line Место: АЗС № 86 "Партнер Нефть" [11:30:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:30:14]line СНО: Общий режим [11:30:14]line Чек 234 22.10.2024 11:30 [11:30:14]line Смена: 461 ФФД: 1.0 [11:30:14]line ЗНМ: 0300000155 [11:30:14]line РНМ: 0000000000100030 [11:30:14]line Версия ККМ: 001 [11:30:14]line Талоны: Топливная Карта [11:30:14]line 02640 [11:30:14]line ФМ: 0000000000965340 [11:30:14]line ФД: 188205 [11:30:14]line ФПД: 19319919214581 [11:30:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188205&fm=19319919214581&tin=02508201610067®Number=0000000000100030&sum=0 [11:30:14]written 0, free lines is 4095 [11:30:14]OFD Sender: Processing packet 188205 [packets to send 1062, broken 1061] [11:30:14]ProducePacketName [11:30:14]name=ofd_packets/00188205 [11:30:14]OFD Sender: To server: pG, [11:30:14]CommunicateWithHost lk.salyk.kg:30040 [11:30:14]ConnectInit lk.salyk.kg [11:30:15]Connected sock=10 [11:30:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 83 C3 04 01 F4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 86 01 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 00 00 00 F4 03 04 00 C8 8C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D DF 02 00 35 04 06 00 11 92 44 EB FF F5 CD 2B D2 3C 81 64 D5 6B [11:30:15]Write to MH i2c: 01 00 00 19 49 62 [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: 01 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: 01 07 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: 01 07 00 19 49 00 00 00 00 00 86 0C FB [11:30:15]RasterBufferAndPrint [11:30:15]line [11:30:15]line [11:30:15]line [11:30:15]line [11:30:15]line [11:30:15]written 0, free lines is 3210 [11:30:15]MH_Cut [11:30:15]Write to MH i2c: D1 01 00 20 49 01 3B [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: D1 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: D1 01 00 [11:30:15]MH_I2C_Read... [11:30:15]Read from MH i2c: D1 01 00 20 49 00 3A [11:30:15]Write to MH i2c: 01 00 00 21 49 6A [11:30:15]Write i2c OK [11:30:15]MH_I2C_Read... [11:30:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A1 59 47 00 5E 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 39 36 35 33 34 30 10 04 04 00 2D DF 02 00 F4 03 04 00 B5 36 17 67 B6 04 01 00 00 DA 55 31 DE 09 F3 48 55 [11:30:15]CommunicateWithHost err = 0 [11:30:15]CheckOFDResponse [11:30:15]1017 (14) - 77093643461234 [11:30:15]1041 (16) - 0000000000965340 [11:30:15]1040 (4) - 188205 [11:30:15]1012 (4) - 22.10.2024 05:23 [11:30:15]1206 (1) - 0 [11:30:15]OFD Sender: Remove packet 188205 [11:30:15]ProducePacketName [11:30:15]name=ofd_packets/00188205 [11:30:15]NVStorageDeleteData [11:30:15]OFD Sender: No OFD packet to send [11:30:16]*** Cut start [11:30:16]*** Partial cut [11:30:16]*** CUTSNS_PIN = 1 [11:30:16]*** CUTSNS_PIN = 0 [11:30:16]*** Brake cut motor [11:30:16]Read from MH i2c: 01 [11:30:16]MH_I2C_Read... [11:30:16]*** Stop cut motor [11:30:17]*** Cut end [11:30:17]Read from MH i2c: 01 07 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: 01 07 00 21 49 00 00 00 00 00 FF 0F 7F [11:30:17]process_action close_receipt done [11:30:17]requested_data is exist [11:30:17]produce_requested_data [11:30:17]requested_item fm.sn is exist - process it [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 11 00 00 [11:30:17]Write to MH i2c: E2 08 00 22 49 80 11 00 00 00 00 00 00 E5 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 17 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 17 00 22 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [11:30:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:30:17]wFMCommunicate OK [11:30:17]requested_item fd.num is exist - process it [11:30:17]SAM_PROTO_GetFieldsCounters [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 13 00 00 [11:30:17]Write to MH i2c: E2 08 00 23 49 80 13 00 00 00 00 00 00 E8 [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 62 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 62 00 23 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 89 [11:30:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EA 00 00 00 5E 04 04 00 EA 00 00 00 57 04 04 00 EB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:30:17]wFMCommunicate OK [11:30:17]SAM_PROTO_GetFieldsCounters done [11:30:17]requested_item shift.num is exist - process it [11:30:17]requested_item shift.opened is exist - process it [11:30:17]req_shift_opened [11:30:17]FM_GetShiftState [11:30:17]SAM_PROTO_GetShiftState [11:30:17]wFMCommunicate request_size=4 [11:30:17]MH_SAM_APDU [11:30:17]CAPDU: 80 13 01 00 [11:30:17]Write to MH i2c: E2 08 00 24 49 80 13 01 00 00 00 00 00 EA [11:30:17]Write i2c OK [11:30:17]MH_I2C_Read... [11:30:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:30:17]Read from MH i2c: E2 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 0E 00 [11:30:17]MH_I2C_Read... [11:30:17]Read from MH i2c: E2 0E 00 24 49 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DF [11:30:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:30:17]wFMCommunicate OK [11:30:17]SAM_PROTO_GetShiftState done [11:30:17]FM_GetShiftState done [11:30:17]req_shift_opened done [11:30:17]requested_item shift.open_date is exist - process it [11:30:17]req_shift_open_date [11:30:17]req_shift_open_date done [11:30:17]produce_requested_data done [11:30:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188205,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:30:17]process_action_free close_receipt [11:30:17]json_value_free [11:30:17]json_value_free done [11:30:17]process_json_proto returns [11:30:17]Send response to host [11:30:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188205,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:30:17]free response buf [11:30:17]execute_script done [11:30:17]execute_script returns [11:30:17]free content buf [11:30:17]Sock 8.Close socket [11:30:17]Sock 8.Thread stoped [11:30:21]OFD Sender: No OFD packet to send [11:30:26]OFD Sender: No OFD packet to send [11:30:31]OFD Sender: No OFD packet to send [11:30:36]OFD Sender: No OFD packet to send [11:30:41]OFD Sender: No OFD packet to send [11:30:46]OFD Sender: No OFD packet to send [11:30:51]OFD Sender: No OFD packet to send [11:30:56]OFD Sender: No OFD packet to send [11:31:01]OFD Sender: No OFD packet to send [11:31:06]OFD Sender: No OFD packet to send [11:31:11]OFD Sender: No OFD packet to send [11:31:16]OFD Sender: No OFD packet to send [11:31:21]OFD Sender: No OFD packet to send [11:31:26]OFD Sender: No OFD packet to send [11:31:31]OFD Sender: No OFD packet to send [11:31:36]OFD Sender: No OFD packet to send [11:31:41]OFD Sender: No OFD packet to send [11:31:42]accept exits with 9 [11:31:42]New connection [11:31:42]New thread 3067198820 created [11:31:42]Thread 3067055460 joined [11:31:42]Waiting for new connection... [11:31:42] Sock 9.Parse request [11:31:42]Sock 9.Check first char [11:31:42]Sock 9.First char is OK [11:31:42]request: POST /json_proto HTTP/1.0 [11:31:42]Method: POST [11:31:42]URL: /json_proto [11:31:42]Method is POST - this is cgi request [11:31:42]url: /json_proto [11:31:42]query_string will be loaded in cgi processing [11:31:42]execute_cgi json_proto POST (null) [11:31:42]execute_cgi path=json_proto method=POST [11:31:42]POST find Content-Length [11:31:42]Host: 172.17.42.131:8080 [11:31:42]Content-Length: 800 [11:31:42]Content-Type: application/json [11:31:42] [11:31:42]POST finish read [11:31:42]Found Content-Length = 800 [11:31:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949372", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:42]execute_script... [11:31: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)210260", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949372", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:31:42]POST & json_proto [11:31:42]process_json_proto [11:31:42]json parsed OK: [11:31:42]protocol is kg_v1.0 [11:31:42]action value=close_receipt [11:31:42]process_action close_receipt [11:31:42]cmd_close_receipt [11:31:42]MH_GetDate [11:31:42]Write to MH i2c: F0 00 00 25 49 5D [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: F0 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: F0 09 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: F0 09 00 25 49 00 21 8D 17 67 A0 18 CA 66 7A [11:31:42]GetLastDocTimeStamp 1729596616 [11:31:42]current date 1729596705 [11:31:42]FM_GetShiftState [11:31:42]SAM_PROTO_GetShiftState [11:31:42]wFMCommunicate request_size=4 [11:31:42]MH_SAM_APDU [11:31:42]CAPDU: 80 13 01 00 [11:31:42]Write to MH i2c: E2 08 00 26 49 80 13 01 00 00 00 00 00 EC [11:31:42]Write i2c OK [11:31:42]MH_I2C_Read... [11:31:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:42]Read from MH i2c: E2 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: E2 0E 00 [11:31:42]MH_I2C_Read... [11:31:42]Read from MH i2c: E2 0E 00 26 49 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E1 [11:31:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:31:42]wFMCommunicate OK [11:31:42]SAM_PROTO_GetShiftState done [11:31:42]FM_GetShiftState done [11:31:42]opened in 1729556094 [11:31:42]opened+sec_in_day 1729642494 [11:31:42]quantity*price = 0 [11:31:42]sum+1 = 1 [11:31:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 235 22.10.2024 11:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3949372 ФМ: 0000000000965340 ФД: 188206 ФПД: 187935349682323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188206&fm=187935349682323&tin=02508201610067®Number=0000000000100030&sum=0 [11:31:43]StoreToDocumentArchive [11:31:43]shift 461 fd 188206 [11:31:43]save to /storage/0461/doc_00188206 [11:31:43]save last doc name /storage/0461/doc_00188206 to /storage/kkm_last_doc_name [11:31:43]save OK [11:31:43]Clear old archive folders... [11:31:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:31:43]tlvbuf is 01D00BA0 [11:31:43]SAM_PROTO_ClearQueue [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 09 00 00 [11:31:43]Write to MH i2c: E2 08 00 33 49 80 09 00 00 00 00 00 00 EE [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 33 49 00 90 00 F0 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]SAM_PROTO_ClearQueue done [11:31:43]KKMCreateOFDPacket [11:31:43]OFDProtocolAddRootSTLVToBuf [11:31:43]FM_MakeSignedData [11:31:43]FM_MakeSignedData [11:31:43]SAM_PROTO_SignData [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 01 02 [11:31:43]Write to MH i2c: E2 08 00 34 49 80 0D 01 02 00 00 00 00 F6 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 34 49 00 90 00 F1 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]wFMCommunicate request_size=255 [11:31:43]MH_SAM_APDU [11:31: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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 21 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DF 02 00 35 04 06 00 AA [11:31:43]Write to MH i2c: E2 02 01 35 49 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 21 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DF 02 00 35 04 06 00 AA 00 00 F0 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 35 49 00 90 00 F2 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]wFMCommunicate request_size=10 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 02 02 05 ED 1B C2 30 93 [11:31:43]Write to MH i2c: E2 0D 00 36 49 80 0D 02 02 05 00 ED 1B C2 30 93 00 00 90 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 03 00 36 49 00 90 00 F3 [11:31:43]RAPDU: 90 00 [11:31:43]wFMCommunicate OK [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 0D 03 02 [11:31:43]Write to MH i2c: E2 08 00 37 49 80 0D 03 02 00 00 00 00 FB [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 0B 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 0B 00 37 49 00 0F 5E 3C 95 1D 2A B3 1D 90 00 51 [11:31:43]RAPDU: 0F 5E 3C 95 1D 2A B3 1D 90 00 [11:31:43]wFMCommunicate OK [11:31:43]SAM_PROTO_SignData done [11:31:43]FM_MakeSignedData done [11:31:43]CreateOFDProtocolMessage [11:31:43]wFMCommunicate request_size=4 [11:31:43]MH_SAM_APDU [11:31:43]CAPDU: 80 11 00 00 [11:31:43]Write to MH i2c: E2 08 00 38 49 80 11 00 00 00 00 00 00 FB [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:43]Read from MH i2c: E2 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 17 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: E2 17 00 38 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [11:31:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:31:43]wFMCommunicate OK [11:31:43]CreateOFDProtocolMessage done [11:31:43]OFDSenderStorePacket 188206 [11:31:43]StoreOFDPacket docnum=188206 [11:31:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F DD 07 01 6D 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 21 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DF 02 00 35 04 06 00 AA ED 1B C2 30 93 0F 5E 3C 95 1D 2A B3 1D [11:31:43]CheckFolder [11:31:43]dirname=/storage/ofd_packets [11:31:43]CheckFolder done [11:31:43]ProducePacketName [11:31:43]name=ofd_packets/00188206 [11:31:43]NVStorageSaveData ofd_packets/00188206 [11:31:43]File name is /storage/ofd_packets/00188206 [11:31:43]Write 301 bytes [11:31:43]NVStorageSaveData done [11:31:43]OFDSenderStorePacket done [11:31:43]KKMCreateOFDPacket done [11:31:43]NVStorageSaveData kkm_last_timestamp [11:31:43]File name is /storage/kkm_last_timestamp [11:31:43]Write 4 bytes [11:31:43]NVStorageSaveData done [11:31:43]ExternCall_PrintAddStr [11:31:43]wPrintStart [11:31:43]Write to MH i2c: 01 00 00 39 49 82 [11:31:43]Write i2c OK [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 07 00 [11:31:43]MH_I2C_Read... [11:31:43]Read from MH i2c: 01 07 00 39 49 00 00 00 00 00 FF 0F 97 [11:31:43]RasterBufferAndPrint [11:31:43]line Счет N : (1)210260 [11:31:43]line ИНН: 02508201610067 [11:31:43]line Контрольно-Кассовый Чек [11:31:43]line ПРОДАЖА [11:31:43]line ТРК (МРК, ГНК) : 42 [11:31:43]line Товар: 2710124130 [11:31:43]line Аи-92-К-3 [11:31:43]line 20.000 * 0.00 [11:31:43]line = 0.00 [11:31:43]line НДС 12% НСП 1% [11:31:43]line > о реализуемом товаре [11:31:43]line ИТОГО: 0.00 [11:31:43]line НСП 1% : 0.00 [11:31:43]line НДС 12% : 0.00 [11:31:43]line Наличными: 0.00 [11:31:43]line Безнал.: 0.00 [11:31:43]line Место: АЗС № 86 "Партнер Нефть" [11:31:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:31:43]line СНО: Общий режим [11:31:43]line Чек 235 22.10.2024 11:31 [11:31:43]line Смена: 461 ФФД: 1.0 [11:31:43]line ЗНМ: 0300000155 [11:31:43]line РНМ: 0000000000100030 [11:31:43]line Версия ККМ: 001 [11:31:43]line Талоны: Топливные Талоны [11:31:43]line 3949372 [11:31:43]line ФМ: 0000000000965340 [11:31:43]line ФД: 188206 [11:31:43]line ФПД: 187935349682323 [11:31:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113145&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188206&fm=187935349682323&tin=02508201610067®Number=0000000000100030&sum=0 [11:31:43]written 0, free lines is 4095 [11:31:43]OFD Sender: Processing packet 188206 [packets to send 1062, broken 1061] [11:31:43]ProducePacketName [11:31:43]name=ofd_packets/00188206 [11:31:43]OFD Sender: To server: pG, [11:31:43]CommunicateWithHost lk.salyk.kg:30040 [11:31:43]ConnectInit lk.salyk.kg [11:31:44]Connected sock=10 [11:31:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8F DD 07 01 6D 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EB 00 00 00 F4 03 04 00 21 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DF 02 00 35 04 06 00 AA ED 1B C2 30 93 0F 5E 3C 95 1D 2A B3 1D [11:31:44]Write to MH i2c: 01 00 00 63 49 AC [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: 01 07 00 63 49 00 00 00 00 00 86 0C 45 [11:31:44]RasterBufferAndPrint [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]line [11:31:44]written 0, free lines is 3210 [11:31:44]MH_Cut [11:31:44]Write to MH i2c: D1 01 00 6A 49 01 85 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 01 00 [11:31:44]MH_I2C_Read... [11:31:44]Read from MH i2c: D1 01 00 6A 49 00 84 [11:31:44]Write to MH i2c: 01 00 00 6B 49 B4 [11:31:44]Write i2c OK [11:31:44]MH_I2C_Read... [11:31:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 CE 47 00 82 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E DF 02 00 F4 03 04 00 0E 37 17 67 B6 04 01 00 00 08 A4 1F 21 04 93 27 C2 [11:31:44]CommunicateWithHost err = 0 [11:31:44]CheckOFDResponse [11:31:44]1017 (14) - 77093643461234 [11:31:44]1041 (16) - 0000000000965340 [11:31:44]1040 (4) - 188206 [11:31:44]1012 (4) - 22.10.2024 05:24 [11:31:44]1206 (1) - 0 [11:31:44]OFD Sender: Remove packet 188206 [11:31:44]ProducePacketName [11:31:44]name=ofd_packets/00188206 [11:31:44]NVStorageDeleteData [11:31:45]OFD Sender: No OFD packet to send [11:31:45]*** Cut start [11:31:45]*** Partial cut [11:31:45]*** CUTSNS_PIN = 1 [11:31:45]*** CUTSNS_PIN = 0 [11:31:45]*** Brake cut motor [11:31:46]Read from MH i2c: 01 [11:31:46]MH_I2C_Read... [11:31:46]*** Stop cut motor [11:31:46]*** Cut end [11:31:46]Read from MH i2c: 01 07 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: 01 07 00 6B 49 00 00 00 00 00 FF 0F C9 [11:31:46]process_action close_receipt done [11:31:46]requested_data is exist [11:31:46]produce_requested_data [11:31:46]requested_item fm.sn is exist - process it [11:31:46]wFMCommunicate request_size=4 [11:31:46]MH_SAM_APDU [11:31:46]CAPDU: 80 11 00 00 [11:31:46]Write to MH i2c: E2 08 00 6C 49 80 11 00 00 00 00 00 00 2F [11:31:46]Write i2c OK [11:31:46]MH_I2C_Read... [11:31:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:31:46]Read from MH i2c: E2 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 17 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 17 00 6C 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [11:31:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:31:46]wFMCommunicate OK [11:31:46]requested_item fd.num is exist - process it [11:31:46]SAM_PROTO_GetFieldsCounters [11:31:46]wFMCommunicate request_size=4 [11:31:46]MH_SAM_APDU [11:31:46]CAPDU: 80 13 00 00 [11:31:46]Write to MH i2c: E2 08 00 6D 49 80 13 00 00 00 00 00 00 32 [11:31:46]Write i2c OK [11:31:46]MH_I2C_Read... [11:31:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:31:46]Read from MH i2c: E2 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 62 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 62 00 6D 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 D7 [11:31:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EB 00 00 00 5E 04 04 00 EB 00 00 00 57 04 04 00 EC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:31:46]wFMCommunicate OK [11:31:46]SAM_PROTO_GetFieldsCounters done [11:31:46]requested_item shift.num is exist - process it [11:31:46]requested_item shift.opened is exist - process it [11:31:46]req_shift_opened [11:31:46]FM_GetShiftState [11:31:46]SAM_PROTO_GetShiftState [11:31:46]wFMCommunicate request_size=4 [11:31:46]MH_SAM_APDU [11:31:46]CAPDU: 80 13 01 00 [11:31:46]Write to MH i2c: E2 08 00 6E 49 80 13 01 00 00 00 00 00 34 [11:31:46]Write i2c OK [11:31:46]MH_I2C_Read... [11:31:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:31:46]Read from MH i2c: E2 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 0E 00 [11:31:46]MH_I2C_Read... [11:31:46]Read from MH i2c: E2 0E 00 6E 49 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 29 [11:31:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:31:46]wFMCommunicate OK [11:31:46]SAM_PROTO_GetShiftState done [11:31:46]FM_GetShiftState done [11:31:46]req_shift_opened done [11:31:46]requested_item shift.open_date is exist - process it [11:31:46]req_shift_open_date [11:31:46]req_shift_open_date done [11:31:46]produce_requested_data done [11:31:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188206,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:31:46]process_action_free close_receipt [11:31:46]json_value_free [11:31:46]json_value_free done [11:31:46]process_json_proto returns [11:31:46]Send response to host [11:31:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188206,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:31:46]free response buf [11:31:46]execute_script done [11:31:46]execute_script returns [11:31:46]free content buf [11:31:46]Sock 9.Close socket [11:31:46]Sock 9.Thread stoped [11:31:50]OFD Sender: No OFD packet to send [11:31:55]OFD Sender: No OFD packet to send [11:32:00]OFD Sender: No OFD packet to send [11:32:05]OFD Sender: No OFD packet to send [11:32:10]OFD Sender: No OFD packet to send [11:32:15]OFD Sender: No OFD packet to send [11:32:20]OFD Sender: No OFD packet to send [11:32:25]OFD Sender: No OFD packet to send [11:32:30]OFD Sender: No OFD packet to send [11:32:35]OFD Sender: No OFD packet to send [11:32:40]OFD Sender: No OFD packet to send [11:32:45]OFD Sender: No OFD packet to send [11:32:50]OFD Sender: No OFD packet to send [11:32:55]OFD Sender: No OFD packet to send [11:33:00]OFD Sender: No OFD packet to send [11:33:05]OFD Sender: No OFD packet to send [11:33:10]OFD Sender: No OFD packet to send [11:33:15]OFD Sender: No OFD packet to send [11:33:20]OFD Sender: No OFD packet to send [11:33:25]OFD Sender: No OFD packet to send [11:33:30]OFD Sender: No OFD packet to send [11:33:32]accept exits with 8 [11:33:32]New connection [11:33:32]New thread 3067055460 created [11:33:32]Thread 3067198820 joined [11:33:32]Waiting for new connection... [11:33:32] Sock 8.Parse request [11:33:32]Sock 8.Check first char [11:33:32]Sock 8.First char is OK [11:33:32]request: POST /json_proto HTTP/1.0 [11:33:32]Method: POST [11:33:32]URL: /json_proto [11:33:32]Method is POST - this is cgi request [11:33:32]url: /json_proto [11:33:32]query_string will be loaded in cgi processing [11:33:32]execute_cgi json_proto POST (null) [11:33:32]execute_cgi path=json_proto method=POST [11:33:32]POST find Content-Length [11:33:32]Host: 172.17.42.131:8080 [11:33:32]Content-Length: 688 [11:33:32]Content-Type: application/json [11:33:32] [11:33:32]POST finish read [11:33:32]Found Content-Length = 688 [11:33:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:33:32]execute_script... [11:33: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)210261", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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:33:32]POST & json_proto [11:33:32]process_json_proto [11:33:32]json parsed OK: [11:33:32]protocol is kg_v1.0 [11:33:32]action value=close_receipt [11:33:32]process_action close_receipt [11:33:32]cmd_close_receipt [11:33:32]MH_GetDate [11:33:32]Write to MH i2c: F0 00 00 6F 49 A7 [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: F0 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: F0 09 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: F0 09 00 6F 49 00 8F 8D 17 67 A0 18 CA 66 32 [11:33:32]GetLastDocTimeStamp 1729596705 [11:33:32]current date 1729596815 [11:33:32]FM_GetShiftState [11:33:32]SAM_PROTO_GetShiftState [11:33:32]wFMCommunicate request_size=4 [11:33:32]MH_SAM_APDU [11:33:32]CAPDU: 80 13 01 00 [11:33:32]Write to MH i2c: E2 08 00 70 49 80 13 01 00 00 00 00 00 36 [11:33:32]Write i2c OK [11:33:32]MH_I2C_Read... [11:33:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:32]Read from MH i2c: E2 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 0E 00 [11:33:32]MH_I2C_Read... [11:33:32]Read from MH i2c: E2 0E 00 70 49 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2B [11:33:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:33:32]wFMCommunicate OK [11:33:32]SAM_PROTO_GetShiftState done [11:33:32]FM_GetShiftState done [11:33:32]opened in 1729556094 [11:33:32]opened+sec_in_day 1729642494 [11:33:32]quantity*price = 200025 [11:33:32]sum+1 = 200026 [11:33:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 236 22.10.2024 11:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188207 ФПД: 91549938790009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113335&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188207&fm=91549938790009&tin=02508201610067®Number=0000000000100030&sum=200000 [11:33:33]StoreToDocumentArchive [11:33:33]shift 461 fd 188207 [11:33:33]save to /storage/0461/doc_00188207 [11:33:33]save last doc name /storage/0461/doc_00188207 to /storage/kkm_last_doc_name [11:33:33]save OK [11:33:33]Clear old archive folders... [11:33:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:33:33]tlvbuf is B6F91940 [11:33:33]SAM_PROTO_ClearQueue [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 09 00 00 [11:33:33]Write to MH i2c: E2 08 00 7D 49 80 09 00 00 00 00 00 00 38 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 7D 49 00 90 00 3A [11:33:33]RAPDU: 90 00 [11:33:33]wFMCommunicate OK [11:33:33]SAM_PROTO_ClearQueue done [11:33:33]KKMCreateOFDPacket [11:33:33]OFDProtocolAddRootSTLVToBuf [11:33:33]FM_MakeSignedData [11:33:33]FM_MakeSignedData [11:33:33]SAM_PROTO_SignData [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 0D 01 02 [11:33:33]Write to MH i2c: E2 08 00 7E 49 80 0D 01 02 00 00 00 00 40 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 7E 49 00 90 00 3B [11:33:33]RAPDU: 90 00 [11:33:33]wFMCommunicate OK [11:33:33]wFMCommunicate request_size=255 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EC 00 00 00 F4 03 04 00 8F 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DF 02 [11:33:33]Write to MH i2c: E2 02 01 7F 49 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EC 00 00 00 F4 03 04 00 8F 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DF 02 00 00 45 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 7F 49 00 90 00 3C [11:33:33]RAPDU: 90 00 [11:33:33]wFMCommunicate OK [11:33:33]wFMCommunicate request_size=16 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 53 43 A1 94 AE 79 [11:33:33]Write to MH i2c: E2 13 00 80 49 80 0D 02 02 0B 00 00 35 04 06 00 53 43 A1 94 AE 79 00 00 8A [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 03 00 80 49 00 90 00 3D [11:33:33]RAPDU: 90 00 [11:33:33]wFMCommunicate OK [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 0D 03 02 [11:33:33]Write to MH i2c: E2 08 00 81 49 80 0D 03 02 00 00 00 00 45 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 0B 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 0B 00 81 49 00 08 1F C4 69 BF 30 62 A6 90 00 91 [11:33:33]RAPDU: 08 1F C4 69 BF 30 62 A6 90 00 [11:33:33]wFMCommunicate OK [11:33:33]SAM_PROTO_SignData done [11:33:33]FM_MakeSignedData done [11:33:33]CreateOFDProtocolMessage [11:33:33]wFMCommunicate request_size=4 [11:33:33]MH_SAM_APDU [11:33:33]CAPDU: 80 11 00 00 [11:33:33]Write to MH i2c: E2 08 00 82 49 80 11 00 00 00 00 00 00 45 [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:33]Read from MH i2c: E2 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 17 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: E2 17 00 82 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [11:33:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:33:33]wFMCommunicate OK [11:33:33]CreateOFDProtocolMessage done [11:33:33]OFDSenderStorePacket 188207 [11:33:33]StoreOFDPacket docnum=188207 [11:33:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 16 0D 01 54 FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EC 00 00 00 F4 03 04 00 8F 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DF 02 00 35 04 06 00 53 43 A1 94 AE 79 08 1F C4 69 BF 30 62 A6 [11:33:33]CheckFolder [11:33:33]dirname=/storage/ofd_packets [11:33:33]CheckFolder done [11:33:33]ProducePacketName [11:33:33]name=ofd_packets/00188207 [11:33:33]NVStorageSaveData ofd_packets/00188207 [11:33:33]File name is /storage/ofd_packets/00188207 [11:33:33]Write 307 bytes [11:33:33]NVStorageSaveData done [11:33:33]OFDSenderStorePacket done [11:33:33]KKMCreateOFDPacket done [11:33:33]NVStorageSaveData kkm_last_timestamp [11:33:33]File name is /storage/kkm_last_timestamp [11:33:33]Write 4 bytes [11:33:33]NVStorageSaveData done [11:33:33]ExternCall_PrintAddStr [11:33:33]wPrintStart [11:33:33]Write to MH i2c: 01 00 00 83 49 CC [11:33:33]Write i2c OK [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: 01 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: 01 07 00 [11:33:33]MH_I2C_Read... [11:33:33]Read from MH i2c: 01 07 00 83 49 00 00 00 00 00 FF 0F E1 [11:33:33]RasterBufferAndPrint [11:33:33]line Счет N : (1)210261 [11:33:33]line ИНН: 02508201610067 [11:33:33]line Контрольно-Кассовый Чек [11:33:33]line ПРОДАЖА [11:33:33]line ТРК (МРК, ГНК) : 21 [11:33:33]line Товар: 2710194210 [11:33:33]line D-ENERGY ДТ-К-5 [11:33:33]line 25.910 * 77.20 [11:33:33]line = 2000.25 [11:33:33]line НДС 12% НСП 1% [11:33:33]line > о реализуемом товаре [11:33:33]line ОКРУГЛЕНИЕ: -0.25 [11:33:33]line ИТОГО: 2000.00 [11:33:33]line Внесено: 2000.00 [11:33:33]line СДАЧА: 0.00 [11:33:33]line НСП 1% : 17.70 [11:33:33]line НДС 12% : 212.42 [11:33:33]line Наличными: 2000.00 [11:33:33]line Безнал.: 0.00 [11:33:33]line Место: АЗС № 86 "Партнер Нефть" [11:33:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:33:33]line СНО: Общий режим [11:33:33]line Чек 236 22.10.2024 11:33 [11:33:33]line Смена: 461 ФФД: 1.0 [11:33:33]line ЗНМ: 0300000155 [11:33:33]line РНМ: 0000000000100030 [11:33:33]line Версия ККМ: 001 [11:33:33]line ФМ: 0000000000965340 [11:33:33]line ФД: 188207 [11:33:33]line ФПД: 91549938790009 [11:33:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113335&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188207&fm=91549938790009&tin=02508201610067®Number=0000000000100030&sum=200000 [11:33:33]written 0, free lines is 4095 [11:33:33]OFD Sender: Processing packet 188207 [packets to send 1062, broken 1061] [11:33:33]ProducePacketName [11:33:33]name=ofd_packets/00188207 [11:33:33]OFD Sender: To server: pG, [11:33:33]CommunicateWithHost lk.salyk.kg:30040 [11:33:33]ConnectInit lk.salyk.kg [11:33:34]Connected sock=10 [11:33:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 16 0D 01 54 FF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EC 00 00 00 F4 03 04 00 8F 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DF 02 00 35 04 06 00 53 43 A1 94 AE 79 08 1F C4 69 BF 30 62 A6 [11:33:34]Write to MH i2c: 01 00 00 AE 49 F7 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: 01 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: 01 07 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: 01 07 00 AE 49 00 00 00 00 00 6D 0C 77 [11:33:34]RasterBufferAndPrint [11:33:34]line [11:33:34]line [11:33:34]line [11:33:34]line [11:33:34]line [11:33:34]written 0, free lines is 3185 [11:33:34]MH_Cut [11:33:34]Write to MH i2c: D1 01 00 B5 49 01 D0 [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: D1 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: D1 01 00 [11:33:34]MH_I2C_Read... [11:33:34]Read from MH i2c: D1 01 00 B5 49 00 CF [11:33:34]Write to MH i2c: 01 00 00 B6 49 FF [11:33:34]Write i2c OK [11:33:34]MH_I2C_Read... [11:33:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 EA 47 00 ED 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F DF 02 00 F4 03 04 00 7C 37 17 67 B6 04 01 00 00 E7 74 5D 51 EE 46 87 C2 [11:33:34]CommunicateWithHost err = 0 [11:33:34]CheckOFDResponse [11:33:34]1017 (14) - 77093643461234 [11:33:34]1041 (16) - 0000000000965340 [11:33:34]1040 (4) - 188207 [11:33:34]1012 (4) - 22.10.2024 05:26 [11:33:34]1206 (1) - 0 [11:33:34]OFD Sender: Remove packet 188207 [11:33:34]ProducePacketName [11:33:34]name=ofd_packets/00188207 [11:33:34]NVStorageDeleteData [11:33:35]OFD Sender: No OFD packet to send [11:33:35]*** Cut start [11:33:35]*** Partial cut [11:33:35]*** CUTSNS_PIN = 1 [11:33:35]*** CUTSNS_PIN = 0 [11:33:35]*** Brake cut motor [11:33:36]Read from MH i2c: 01 [11:33:36]MH_I2C_Read... [11:33:36]*** Stop cut motor [11:33:36]*** Cut end [11:33:36]Read from MH i2c: 01 07 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: 01 07 00 B6 49 00 00 00 00 00 FF 0F 14 [11:33:36]process_action close_receipt done [11:33:36]requested_data is exist [11:33:36]produce_requested_data [11:33:36]requested_item fm.sn is exist - process it [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 11 00 00 [11:33:36]Write to MH i2c: E2 08 00 B7 49 80 11 00 00 00 00 00 00 7A [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 17 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 17 00 B7 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [11:33:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:33:36]wFMCommunicate OK [11:33:36]requested_item fd.num is exist - process it [11:33:36]SAM_PROTO_GetFieldsCounters [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 13 00 00 [11:33:36]Write to MH i2c: E2 08 00 B8 49 80 13 00 00 00 00 00 00 7D [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 62 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 62 00 B8 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 26 [11:33:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EC 00 00 00 5E 04 04 00 EC 00 00 00 57 04 04 00 ED 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:36]wFMCommunicate OK [11:33:36]SAM_PROTO_GetFieldsCounters done [11:33:36]requested_item shift.num is exist - process it [11:33:36]requested_item shift.opened is exist - process it [11:33:36]req_shift_opened [11:33:36]FM_GetShiftState [11:33:36]SAM_PROTO_GetShiftState [11:33:36]wFMCommunicate request_size=4 [11:33:36]MH_SAM_APDU [11:33:36]CAPDU: 80 13 01 00 [11:33:36]Write to MH i2c: E2 08 00 B9 49 80 13 01 00 00 00 00 00 7F [11:33:36]Write i2c OK [11:33:36]MH_I2C_Read... [11:33:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:36]Read from MH i2c: E2 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0E 00 [11:33:36]MH_I2C_Read... [11:33:36]Read from MH i2c: E2 0E 00 B9 49 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 74 [11:33:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:33:36]wFMCommunicate OK [11:33:36]SAM_PROTO_GetShiftState done [11:33:36]FM_GetShiftState done [11:33:36]req_shift_opened done [11:33:36]requested_item shift.open_date is exist - process it [11:33:36]req_shift_open_date [11:33:36]req_shift_open_date done [11:33:36]produce_requested_data done [11:33:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188207,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:33:36]process_action_free close_receipt [11:33:36]json_value_free [11:33:36]json_value_free done [11:33:36]process_json_proto returns [11:33:36]Send response to host [11:33:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188207,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:33:36]free response buf [11:33:36]execute_script done [11:33:36]execute_script returns [11:33:36]free content buf [11:33:36]Sock 8.Close socket [11:33:36]Sock 8.Thread stoped [11:33:40]OFD Sender: No OFD packet to send [11:33:45]OFD Sender: No OFD packet to send [11:33:50]OFD Sender: No OFD packet to send [11:33:54]accept exits with 9 [11:33:54]New connection [11:33:54]New thread 3067198820 created [11:33:54]Thread 3067055460 joined [11:33:54]Waiting for new connection... [11:33:54] Sock 9.Parse request [11:33:54]Sock 9.Check first char [11:33:54]Sock 9.First char is OK [11:33:54]request: POST /json_proto HTTP/1.0 [11:33:54]Method: POST [11:33:54]URL: /json_proto [11:33:54]Method is POST - this is cgi request [11:33:54]url: /json_proto [11:33:54]query_string will be loaded in cgi processing [11:33:54]execute_cgi json_proto POST (null) [11:33:54]execute_cgi path=json_proto method=POST [11:33:54]POST find Content-Length [11:33:54]Host: 172.17.42.131:8080 [11:33:54]Content-Length: 679 [11:33:54]Content-Type: application/json [11:33:54] [11:33:54]POST finish read [11:33:54]Found Content-Length = 679 [11:33:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:54]execute_script... [11:33:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210263", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:33:54]POST & json_proto [11:33:54]process_json_proto [11:33:54]json parsed OK: [11:33:54]protocol is kg_v1.0 [11:33:54]action value=close_receipt [11:33:54]process_action close_receipt [11:33:54]cmd_close_receipt [11:33:54]MH_GetDate [11:33:54]Write to MH i2c: F0 00 00 BA 49 F2 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: F0 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: F0 09 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: F0 09 00 BA 49 00 A5 8D 17 67 A0 18 CA 66 93 [11:33:54]GetLastDocTimeStamp 1729596815 [11:33:54]current date 1729596837 [11:33:54]FM_GetShiftState [11:33:54]SAM_PROTO_GetShiftState [11:33:54]wFMCommunicate request_size=4 [11:33:54]MH_SAM_APDU [11:33:54]CAPDU: 80 13 01 00 [11:33:54]Write to MH i2c: E2 08 00 BB 49 80 13 01 00 00 00 00 00 81 [11:33:54]Write i2c OK [11:33:54]MH_I2C_Read... [11:33:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:54]Read from MH i2c: E2 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 0E 00 [11:33:54]MH_I2C_Read... [11:33:54]Read from MH i2c: E2 0E 00 BB 49 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 76 [11:33:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:33:54]wFMCommunicate OK [11:33:54]SAM_PROTO_GetShiftState done [11:33:54]FM_GetShiftState done [11:33:54]opened in 1729556094 [11:33:54]opened+sec_in_day 1729642494 [11:33:54]quantity*price = 150037 [11:33:54]sum+1 = 150039 [11:33:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 237 22.10.2024 11:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188208 ФПД: 200109597287366 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113357&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188208&fm=200109597287366&tin=02508201610067®Number=0000000000100030&sum=150000 [11:33:55]StoreToDocumentArchive [11:33:55]shift 461 fd 188208 [11:33:55]save to /storage/0461/doc_00188208 [11:33:55]save last doc name /storage/0461/doc_00188208 to /storage/kkm_last_doc_name [11:33:55]save OK [11:33:55]Clear old archive folders... [11:33:55]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:33:55]tlvbuf is 01BBCC30 [11:33:55]SAM_PROTO_ClearQueue [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 09 00 00 [11:33:55]Write to MH i2c: E2 08 00 C8 49 80 09 00 00 00 00 00 00 83 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 C8 49 00 90 00 85 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]SAM_PROTO_ClearQueue done [11:33:55]KKMCreateOFDPacket [11:33:55]OFDProtocolAddRootSTLVToBuf [11:33:55]FM_MakeSignedData [11:33:55]FM_MakeSignedData [11:33:55]SAM_PROTO_SignData [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 01 02 [11:33:55]Write to MH i2c: E2 08 00 C9 49 80 0D 01 02 00 00 00 00 8B [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 C9 49 00 90 00 86 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]wFMCommunicate request_size=255 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A5 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DF 02 00 35 04 06 00 B5 FF A5 76 [11:33:55]Write to MH i2c: E2 02 01 CA 49 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A5 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DF 02 00 35 04 06 00 B5 FF A5 76 00 00 B8 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 CA 49 00 90 00 87 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]wFMCommunicate request_size=7 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 02 02 02 63 C6 [11:33:55]Write to MH i2c: E2 0A 00 CB 49 80 0D 02 02 02 00 63 C6 00 00 BB [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 03 00 CB 49 00 90 00 88 [11:33:55]RAPDU: 90 00 [11:33:55]wFMCommunicate OK [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 0D 03 02 [11:33:55]Write to MH i2c: E2 08 00 CC 49 80 0D 03 02 00 00 00 00 90 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:33:55]Read from MH i2c: E2 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 0B 00 [11:33:55]MH_I2C_Read... [11:33:55]Read from MH i2c: E2 0B 00 CC 49 00 D2 2B 13 D0 CC 7E DF 7A 90 00 14 [11:33:55]RAPDU: D2 2B 13 D0 CC 7E DF 7A 90 00 [11:33:55]wFMCommunicate OK [11:33:55]SAM_PROTO_SignData done [11:33:55]FM_MakeSignedData done [11:33:55]CreateOFDProtocolMessage [11:33:55]wFMCommunicate request_size=4 [11:33:55]MH_SAM_APDU [11:33:55]CAPDU: 80 11 00 00 [11:33:55]Write to MH i2c: E2 08 00 CD 49 80 11 00 00 00 00 00 00 90 [11:33:55]Write i2c OK [11:33:55]MH_I2C_Read... [11:33:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:56]Read from MH i2c: E2 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 17 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: E2 17 00 CD 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [11:33:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:33:56]wFMCommunicate OK [11:33:56]CreateOFDProtocolMessage done [11:33:56]OFDSenderStorePacket 188208 [11:33:56]StoreOFDPacket docnum=188208 [11:33:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D3 AC 04 01 0D 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A5 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DF 02 00 35 04 06 00 B5 FF A5 76 63 C6 D2 2B 13 D0 CC 7E DF 7A [11:33:56]CheckFolder [11:33:56]dirname=/storage/ofd_packets [11:33:56]CheckFolder done [11:33:56]ProducePacketName [11:33:56]name=ofd_packets/00188208 [11:33:56]NVStorageSaveData ofd_packets/00188208 [11:33:56]File name is /storage/ofd_packets/00188208 [11:33:56]Write 298 bytes [11:33:56]NVStorageSaveData done [11:33:56]OFDSenderStorePacket done [11:33:56]KKMCreateOFDPacket done [11:33:56]NVStorageSaveData kkm_last_timestamp [11:33:56]File name is /storage/kkm_last_timestamp [11:33:56]Write 4 bytes [11:33:56]NVStorageSaveData done [11:33:56]ExternCall_PrintAddStr [11:33:56]wPrintStart [11:33:56]Write to MH i2c: 01 00 00 CE 49 17 [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 07 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 07 00 CE 49 00 00 00 00 00 FF 0F 2C [11:33:56]RasterBufferAndPrint [11:33:56]line Счет N : (1)210263 [11:33:56]line ИНН: 02508201610067 [11:33:56]line Контрольно-Кассовый Чек [11:33:56]line ПРОДАЖА [11:33:56]line ТРК (МРК, ГНК) : 51 [11:33:56]line Товар: 2710194210 [11:33:56]line ДТ-К-5 [11:33:56]line 19.690 * 76.20 [11:33:56]line = 1500.38 [11:33:56]line НДС 12% НСП 1% [11:33:56]line > о реализуемом товаре [11:33:56]line ОКРУГЛЕНИЕ: -0.38 [11:33:56]line ИТОГО: 1500.00 [11:33:56]line Внесено: 1500.00 [11:33:56]line СДАЧА: 0.00 [11:33:56]line НСП 1% : 13.28 [11:33:56]line НДС 12% : 159.33 [11:33:56]line Наличными: 1500.00 [11:33:56]line Безнал.: 0.00 [11:33:56]line Место: АЗС № 86 "Партнер Нефть" [11:33:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:33:56]line СНО: Общий режим [11:33:56]line Чек 237 22.10.2024 11:33 [11:33:56]line Смена: 461 ФФД: 1.0 [11:33:56]line ЗНМ: 0300000155 [11:33:56]line РНМ: 0000000000100030 [11:33:56]line Версия ККМ: 001 [11:33:56]line ФМ: 0000000000965340 [11:33:56]line ФД: 188208 [11:33:56]line ФПД: 200109597287366 [11:33:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113357&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188208&fm=200109597287366&tin=02508201610067®Number=0000000000100030&sum=150000 [11:33:56]written 0, free lines is 4095 [11:33:56]OFD Sender: Processing packet 188208 [packets to send 1062, broken 1061] [11:33:56]ProducePacketName [11:33:56]name=ofd_packets/00188208 [11:33:56]OFD Sender: To server: pG, [11:33:56]CommunicateWithHost lk.salyk.kg:30040 [11:33:56]ConnectInit lk.salyk.kg [11:33:56]Connected sock=10 [11:33:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D3 AC 04 01 0D 33 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 00 00 00 F4 03 04 00 A5 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 DF 02 00 35 04 06 00 B5 FF A5 76 63 C6 D2 2B 13 D0 CC 7E DF 7A [11:33:56]Write to MH i2c: 01 00 00 F9 49 42 [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 07 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: 01 07 00 F9 49 00 00 00 00 00 6C 0C C1 [11:33:56]RasterBufferAndPrint [11:33:56]line [11:33:56]line [11:33:56]line [11:33:56]line [11:33:56]line [11:33:56]written 0, free lines is 3184 [11:33:56]MH_Cut [11:33:56]Write to MH i2c: D1 01 00 00 4A 01 1C [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: D1 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: D1 01 00 [11:33:56]MH_I2C_Read... [11:33:56]Read from MH i2c: D1 01 00 00 4A 00 1B [11:33:56]Write to MH i2c: 01 00 00 01 4A 4B [11:33:56]Write i2c OK [11:33:56]MH_I2C_Read... [11:33:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC 47 47 00 20 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 39 36 35 33 34 30 10 04 04 00 30 DF 02 00 F4 03 04 00 93 37 17 67 B6 04 01 00 00 DF 8B DA B7 10 5A AC 2C [11:33:56]CommunicateWithHost err = 0 [11:33:56]CheckOFDResponse [11:33:56]1017 (14) - 77093643461234 [11:33:56]1041 (16) - 0000000000965340 [11:33:56]1040 (4) - 188208 [11:33:56]1012 (4) - 22.10.2024 05:26 [11:33:56]1206 (1) - 0 [11:33:56]OFD Sender: Remove packet 188208 [11:33:56]ProducePacketName [11:33:56]name=ofd_packets/00188208 [11:33:56]NVStorageDeleteData [11:33:57]OFD Sender: No OFD packet to send [11:33:57]*** Cut start [11:33:57]*** Partial cut [11:33:57]*** CUTSNS_PIN = 1 [11:33:57]*** CUTSNS_PIN = 0 [11:33:57]*** Brake cut motor [11:33:58]Read from MH i2c: 01 [11:33:58]MH_I2C_Read... [11:33:58]*** Stop cut motor [11:33:58]*** Cut end [11:33:58]Read from MH i2c: 01 07 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: 01 07 00 01 4A 00 00 00 00 00 FF 0F 60 [11:33:58]process_action close_receipt done [11:33:58]requested_data is exist [11:33:58]produce_requested_data [11:33:58]requested_item fm.sn is exist - process it [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 11 00 00 [11:33:58]Write to MH i2c: E2 08 00 02 4A 80 11 00 00 00 00 00 00 C6 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 17 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 17 00 02 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [11:33:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:33:58]wFMCommunicate OK [11:33:58]requested_item fd.num is exist - process it [11:33:58]SAM_PROTO_GetFieldsCounters [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 13 00 00 [11:33:58]Write to MH i2c: E2 08 00 03 4A 80 13 00 00 00 00 00 00 C9 [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 62 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 62 00 03 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 76 [11:33:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 ED 00 00 00 5E 04 04 00 ED 00 00 00 57 04 04 00 EE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_GetFieldsCounters done [11:33:58]requested_item shift.num is exist - process it [11:33:58]requested_item shift.opened is exist - process it [11:33:58]req_shift_opened [11:33:58]FM_GetShiftState [11:33:58]SAM_PROTO_GetShiftState [11:33:58]wFMCommunicate request_size=4 [11:33:58]MH_SAM_APDU [11:33:58]CAPDU: 80 13 01 00 [11:33:58]Write to MH i2c: E2 08 00 04 4A 80 13 01 00 00 00 00 00 CB [11:33:58]Write i2c OK [11:33:58]MH_I2C_Read... [11:33:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:33:58]Read from MH i2c: E2 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 [11:33:58]MH_I2C_Read... [11:33:58]Read from MH i2c: E2 0E 00 04 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C0 [11:33:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:33:58]wFMCommunicate OK [11:33:58]SAM_PROTO_GetShiftState done [11:33:58]FM_GetShiftState done [11:33:58]req_shift_opened done [11:33:58]requested_item shift.open_date is exist - process it [11:33:58]req_shift_open_date [11:33:58]req_shift_open_date done [11:33:58]produce_requested_data done [11:33:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188208,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:33:58]process_action_free close_receipt [11:33:58]json_value_free [11:33:58]json_value_free done [11:33:58]process_json_proto returns [11:33:58]Send response to host [11:33:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188208,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:33:58]free response buf [11:33:58]execute_script done [11:33:58]execute_script returns [11:33:58]free content buf [11:33:58]Sock 9.Close socket [11:33:58]Sock 9.Thread stoped [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:48]accept exits with 8 [11:34:48]New connection [11:34:48]New thread 3067055460 created [11:34:48]Thread 3067198820 joined [11:34:48]Waiting for new connection... [11:34:48] Sock 8.Parse request [11:34:48]Sock 8.Check first char [11:34:48]Sock 8.First char is OK [11:34:48]request: POST /json_proto HTTP/1.0 [11:34:48]Method: POST [11:34:48]URL: /json_proto [11:34:48]Method is POST - this is cgi request [11:34:48]url: /json_proto [11:34:48]query_string will be loaded in cgi processing [11:34:48]execute_cgi json_proto POST (null) [11:34:48]execute_cgi path=json_proto method=POST [11:34:48]POST find Content-Length [11:34:48]Host: 172.17.42.131:8080 [11:34:48]Content-Length: 800 [11:34:48]Content-Type: application/json [11:34:48] [11:34:48]POST finish read [11:34:48]Found Content-Length = 800 [11:34:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 13.220, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949373", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:48]execute_script... [11:34: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)210262", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 13.220, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949373", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:34:48]POST & json_proto [11:34:48]process_json_proto [11:34:48]json parsed OK: [11:34:48]protocol is kg_v1.0 [11:34:48]action value=close_receipt [11:34:48]process_action close_receipt [11:34:48]cmd_close_receipt [11:34:48]MH_GetDate [11:34:48]Write to MH i2c: F0 00 00 05 4A 3E [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: F0 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: F0 09 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: F0 09 00 05 4A 00 DB 8D 17 67 A0 18 CA 66 15 [11:34:48]GetLastDocTimeStamp 1729596837 [11:34:48]current date 1729596891 [11:34:48]FM_GetShiftState [11:34:48]SAM_PROTO_GetShiftState [11:34:48]wFMCommunicate request_size=4 [11:34:48]MH_SAM_APDU [11:34:48]CAPDU: 80 13 01 00 [11:34:48]Write to MH i2c: E2 08 00 06 4A 80 13 01 00 00 00 00 00 CD [11:34:48]Write i2c OK [11:34:48]MH_I2C_Read... [11:34:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:48]Read from MH i2c: E2 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 0E 00 [11:34:48]MH_I2C_Read... [11:34:48]Read from MH i2c: E2 0E 00 06 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C2 [11:34:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:34:48]wFMCommunicate OK [11:34:48]SAM_PROTO_GetShiftState done [11:34:48]FM_GetShiftState done [11:34:48]opened in 1729556094 [11:34:48]opened+sec_in_day 1729642494 [11:34:48]quantity*price = 0 [11:34:48]sum+1 = 1 [11:34:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 238 22.10.2024 11:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3949373 ФМ: 0000000000965340 ФД: 188209 ФПД: 19321240849006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188209&fm=19321240849006&tin=02508201610067®Number=0000000000100030&sum=0 [11:34:49]StoreToDocumentArchive [11:34:49]shift 461 fd 188209 [11:34:49]save to /storage/0461/doc_00188209 [11:34:49]save last doc name /storage/0461/doc_00188209 to /storage/kkm_last_doc_name [11:34:49]save OK [11:34:49]Clear old archive folders... [11:34:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:34:49]tlvbuf is 01C34BA0 [11:34:49]SAM_PROTO_ClearQueue [11:34:49]wFMCommunicate request_size=4 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 09 00 00 [11:34:49]Write to MH i2c: E2 08 00 13 4A 80 09 00 00 00 00 00 00 CF [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 13 4A 00 90 00 D1 [11:34:49]RAPDU: 90 00 [11:34:49]wFMCommunicate OK [11:34:49]SAM_PROTO_ClearQueue done [11:34:49]KKMCreateOFDPacket [11:34:49]OFDProtocolAddRootSTLVToBuf [11:34:49]FM_MakeSignedData [11:34:49]FM_MakeSignedData [11:34:49]SAM_PROTO_SignData [11:34:49]wFMCommunicate request_size=4 [11:34:49]MH_SAM_APDU [11:34:49]CAPDU: 80 0D 01 02 [11:34:49]Write to MH i2c: E2 08 00 14 4A 80 0D 01 02 00 00 00 00 D7 [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:34:49]Read from MH i2c: E2 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 [11:34:49]MH_I2C_Read... [11:34:49]Read from MH i2c: E2 03 00 14 4A 00 90 00 D2 [11:34:49]RAPDU: 90 00 [11:34:49]wFMCommunicate OK [11:34:49]wFMCommunicate request_size=255 [11:34:49]MH_SAM_APDU [11:34: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 33 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 DB 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DF 02 00 35 04 06 00 11 [11:34:49]Write to MH i2c: E2 02 01 15 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 DB 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DF 02 00 35 04 06 00 11 00 00 61 [11:34:49]Write i2c OK [11:34:49]MH_I2C_Read... [11:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:50]Read from MH i2c: E2 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 03 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 03 00 15 4A 00 90 00 D3 [11:34:50]RAPDU: 90 00 [11:34:50]wFMCommunicate OK [11:34:50]wFMCommunicate request_size=10 [11:34:50]MH_SAM_APDU [11:34:50]CAPDU: 80 0D 02 02 05 92 93 B2 8A 6E [11:34:50]Write to MH i2c: E2 0D 00 16 4A 80 0D 02 02 05 00 92 93 B2 8A 6E 00 00 B3 [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:34:50]Read from MH i2c: E2 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 03 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 03 00 16 4A 00 90 00 D4 [11:34:50]RAPDU: 90 00 [11:34:50]wFMCommunicate OK [11:34:50]wFMCommunicate request_size=4 [11:34:50]MH_SAM_APDU [11:34:50]CAPDU: 80 0D 03 02 [11:34:50]Write to MH i2c: E2 08 00 17 4A 80 0D 03 02 00 00 00 00 DC [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:34:50]Read from MH i2c: E2 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 0B 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 0B 00 17 4A 00 05 B0 5A 94 27 B6 28 0C 90 00 91 [11:34:50]RAPDU: 05 B0 5A 94 27 B6 28 0C 90 00 [11:34:50]wFMCommunicate OK [11:34:50]SAM_PROTO_SignData done [11:34:50]FM_MakeSignedData done [11:34:50]CreateOFDProtocolMessage [11:34:50]wFMCommunicate request_size=4 [11:34:50]MH_SAM_APDU [11:34:50]CAPDU: 80 11 00 00 [11:34:50]Write to MH i2c: E2 08 00 18 4A 80 11 00 00 00 00 00 00 DC [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:50]Read from MH i2c: E2 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 17 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: E2 17 00 18 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [11:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:34:50]wFMCommunicate OK [11:34:50]CreateOFDProtocolMessage done [11:34:50]OFDSenderStorePacket 188209 [11:34:50]StoreOFDPacket docnum=188209 [11:34:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 57 07 01 54 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 DB 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DF 02 00 35 04 06 00 11 92 93 B2 8A 6E 05 B0 5A 94 27 B6 28 0C [11:34:50]CheckFolder [11:34:50]dirname=/storage/ofd_packets [11:34:50]CheckFolder done [11:34:50]ProducePacketName [11:34:50]name=ofd_packets/00188209 [11:34:50]NVStorageSaveData ofd_packets/00188209 [11:34:50]File name is /storage/ofd_packets/00188209 [11:34:50]Write 301 bytes [11:34:50]NVStorageSaveData done [11:34:50]OFDSenderStorePacket done [11:34:50]KKMCreateOFDPacket done [11:34:50]NVStorageSaveData kkm_last_timestamp [11:34:50]File name is /storage/kkm_last_timestamp [11:34:50]Write 4 bytes [11:34:50]NVStorageSaveData done [11:34:50]ExternCall_PrintAddStr [11:34:50]wPrintStart [11:34:50]Write to MH i2c: 01 00 00 19 4A 63 [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 19 4A 00 00 00 00 00 FF 0F 78 [11:34:50]RasterBufferAndPrint [11:34:50]line Счет N : (1)210262 [11:34:50]line ИНН: 02508201610067 [11:34:50]line Контрольно-Кассовый Чек [11:34:50]line ПРОДАЖА [11:34:50]line ТРК (МРК, ГНК) : 42 [11:34:50]line Товар: 2710124130 [11:34:50]line Аи-92-К-3 [11:34:50]line 13.220 * 0.00 [11:34:50]line = 0.00 [11:34:50]line НДС 12% НСП 1% [11:34:50]line > о реализуемом товаре [11:34:50]line ИТОГО: 0.00 [11:34:50]line НСП 1% : 0.00 [11:34:50]line НДС 12% : 0.00 [11:34:50]line Наличными: 0.00 [11:34:50]line Безнал.: 0.00 [11:34:50]line Место: АЗС № 86 "Партнер Нефть" [11:34:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:34:50]line СНО: Общий режим [11:34:50]line Чек 238 22.10.2024 11:34 [11:34:50]line Смена: 461 ФФД: 1.0 [11:34:50]line ЗНМ: 0300000155 [11:34:50]line РНМ: 0000000000100030 [11:34:50]line Версия ККМ: 001 [11:34:50]line Талоны: Топливные Талоны [11:34:50]line 3949373 [11:34:50]line ФМ: 0000000000965340 [11:34:50]line ФД: 188209 [11:34:50]line ФПД: 19321240849006 [11:34:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113451&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188209&fm=19321240849006&tin=02508201610067®Number=0000000000100030&sum=0 [11:34:50]written 0, free lines is 4095 [11:34:50]OFD Sender: Processing packet 188209 [packets to send 1062, broken 1061] [11:34:50]ProducePacketName [11:34:50]name=ofd_packets/00188209 [11:34:50]OFD Sender: To server: pG, [11:34:50]CommunicateWithHost lk.salyk.kg:30040 [11:34:50]ConnectInit lk.salyk.kg [11:34:50]Connected sock=10 [11:34:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E 57 07 01 54 66 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 A4 33 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EE 00 00 00 F4 03 04 00 DB 8D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DF 02 00 35 04 06 00 11 92 93 B2 8A 6E 05 B0 5A 94 27 B6 28 0C [11:34:50]Write to MH i2c: 01 00 00 43 4A 8D [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: 01 07 00 43 4A 00 00 00 00 00 85 0C 25 [11:34:50]RasterBufferAndPrint [11:34:50]line [11:34:50]line [11:34:50]line [11:34:50]line [11:34:50]line [11:34:50]written 0, free lines is 3208 [11:34:50]MH_Cut [11:34:50]Write to MH i2c: D1 01 00 4A 4A 01 66 [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: D1 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: D1 01 00 [11:34:50]MH_I2C_Read... [11:34:50]Read from MH i2c: D1 01 00 4A 4A 00 65 [11:34:50]Write to MH i2c: 01 00 00 4B 4A 95 [11:34:50]Write i2c OK [11:34:50]MH_I2C_Read... [11:34:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5B 1B 47 00 95 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 DF 02 00 F4 03 04 00 C9 37 17 67 B6 04 01 00 00 EF 79 F5 62 AA DD C7 AD [11:34:50]CommunicateWithHost err = 0 [11:34:50]CheckOFDResponse [11:34:50]1017 (14) - 77093643461234 [11:34:50]1041 (16) - 0000000000965340 [11:34:50]1040 (4) - 188209 [11:34:50]1012 (4) - 22.10.2024 05:27 [11:34:50]1206 (1) - 0 [11:34:50]OFD Sender: Remove packet 188209 [11:34:50]ProducePacketName [11:34:50]name=ofd_packets/00188209 [11:34:50]NVStorageDeleteData [11:34:51]OFD Sender: No OFD packet to send [11:34:51]*** Cut start [11:34:51]*** Partial cut [11:34:51]*** CUTSNS_PIN = 1 [11:34:51]*** CUTSNS_PIN = 0 [11:34:52]*** Brake cut motor [11:34:52]Read from MH i2c: 01 [11:34:52]MH_I2C_Read... [11:34:52]*** Stop cut motor [11:34:52]*** Cut end [11:34:52]Read from MH i2c: 01 07 00 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: 01 07 00 4B 4A 00 00 00 00 00 FF 0F AA [11:34:52]process_action close_receipt done [11:34:52]requested_data is exist [11:34:52]produce_requested_data [11:34:52]requested_item fm.sn is exist - process it [11:34:52]wFMCommunicate request_size=4 [11:34:52]MH_SAM_APDU [11:34:52]CAPDU: 80 11 00 00 [11:34:52]Write to MH i2c: E2 08 00 4C 4A 80 11 00 00 00 00 00 00 10 [11:34:52]Write i2c OK [11:34:52]MH_I2C_Read... [11:34:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:34:52]Read from MH i2c: E2 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: E2 17 00 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: E2 17 00 4C 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [11:34:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:34:52]wFMCommunicate OK [11:34:52]requested_item fd.num is exist - process it [11:34:52]SAM_PROTO_GetFieldsCounters [11:34:52]wFMCommunicate request_size=4 [11:34:52]MH_SAM_APDU [11:34:52]CAPDU: 80 13 00 00 [11:34:52]Write to MH i2c: E2 08 00 4D 4A 80 13 00 00 00 00 00 00 13 [11:34:52]Write i2c OK [11:34:52]MH_I2C_Read... [11:34:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:34:52]Read from MH i2c: E2 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: E2 62 00 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: E2 62 00 4D 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 C4 [11:34:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EE 00 00 00 5E 04 04 00 EE 00 00 00 57 04 04 00 EF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:34:52]wFMCommunicate OK [11:34:52]SAM_PROTO_GetFieldsCounters done [11:34:52]requested_item shift.num is exist - process it [11:34:52]requested_item shift.opened is exist - process it [11:34:52]req_shift_opened [11:34:52]FM_GetShiftState [11:34:52]SAM_PROTO_GetShiftState [11:34:52]wFMCommunicate request_size=4 [11:34:52]MH_SAM_APDU [11:34:52]CAPDU: 80 13 01 00 [11:34:52]Write to MH i2c: E2 08 00 4E 4A 80 13 01 00 00 00 00 00 15 [11:34:52]Write i2c OK [11:34:52]MH_I2C_Read... [11:34:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:34:52]Read from MH i2c: E2 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: E2 0E 00 [11:34:52]MH_I2C_Read... [11:34:52]Read from MH i2c: E2 0E 00 4E 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0A [11:34:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:34:52]wFMCommunicate OK [11:34:52]SAM_PROTO_GetShiftState done [11:34:52]FM_GetShiftState done [11:34:52]req_shift_opened done [11:34:52]requested_item shift.open_date is exist - process it [11:34:52]req_shift_open_date [11:34:52]req_shift_open_date done [11:34:52]produce_requested_data done [11:34:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188209,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:34:52]process_action_free close_receipt [11:34:52]json_value_free [11:34:52]json_value_free done [11:34:52]process_json_proto returns [11:34:52]Send response to host [11:34:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188209,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:34:52]free response buf [11:34:52]execute_script done [11:34:52]execute_script returns [11:34:52]free content buf [11:34:52]Sock 8.Close socket [11:34:52]Sock 8.Thread stoped [11:34:56]OFD Sender: No OFD packet to send [11:35:01]OFD Sender: No OFD packet to send [11:35:06]OFD Sender: No OFD packet to send [11:35:11]OFD Sender: No OFD packet to send [11:35:16]OFD Sender: No OFD packet to send [11:35:21]OFD Sender: No OFD packet to send [11:35:26]OFD Sender: No OFD packet to send [11:35:31]OFD Sender: No OFD packet to send [11:35:34]accept exits with 9 [11:35:34]New connection [11:35:34]New thread 3067198820 created [11:35:34]Thread 3067055460 joined [11:35:34]Waiting for new connection... [11:35:34] Sock 9.Parse request [11:35:34]Sock 9.Check first char [11:35:34]Sock 9.First char is OK [11:35:34]request: POST /json_proto HTTP/1.0 [11:35:34]Method: POST [11:35:34]URL: /json_proto [11:35:34]Method is POST - this is cgi request [11:35:34]url: /json_proto [11:35:34]query_string will be loaded in cgi processing [11:35:34]execute_cgi json_proto POST (null) [11:35:34]execute_cgi path=json_proto method=POST [11:35:34]POST find Content-Length [11:35:34]Host: 172.17.42.131:8080 [11:35:34]Content-Length: 810 [11:35:34]Content-Type: application/json [11:35:34] [11:35:34]POST finish read [11:35:34]Found Content-Length = 810 [11:35:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:34]execute_script... [11:35: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)210257", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:35:34]POST & json_proto [11:35:34]process_json_proto [11:35:34]json parsed OK: [11:35:34]protocol is kg_v1.0 [11:35:34]action value=close_receipt [11:35:34]process_action close_receipt [11:35:34]cmd_close_receipt [11:35:34]MH_GetDate [11:35:34]Write to MH i2c: F0 00 00 4F 4A 88 [11:35:34]Write i2c OK [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: F0 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: F0 09 00 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: F0 09 00 4F 4A 00 09 8E 17 67 A0 18 CA 66 8E [11:35:34]GetLastDocTimeStamp 1729596891 [11:35:34]current date 1729596937 [11:35:34]FM_GetShiftState [11:35:34]SAM_PROTO_GetShiftState [11:35:34]wFMCommunicate request_size=4 [11:35:34]MH_SAM_APDU [11:35:34]CAPDU: 80 13 01 00 [11:35:34]Write to MH i2c: E2 08 00 50 4A 80 13 01 00 00 00 00 00 17 [11:35:34]Write i2c OK [11:35:34]MH_I2C_Read... [11:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:34]Read from MH i2c: E2 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: E2 0E 00 [11:35:34]MH_I2C_Read... [11:35:34]Read from MH i2c: E2 0E 00 50 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0C [11:35:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:35:34]wFMCommunicate OK [11:35:34]SAM_PROTO_GetShiftState done [11:35:34]FM_GetShiftState done [11:35:34]opened in 1729556094 [11:35:34]opened+sec_in_day 1729642494 [11:35:34]quantity*price = 950023 [11:35:34]sum+1 = 950024 [11:35:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.23 НСП 1% : 84.07 НДС 12% : 1008.87 Наличными: 0.00 Безнал.: 9500.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 239 22.10.2024 11:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188210 ФПД: 183802368394861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113538&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188210&fm=183802368394861&tin=02508201610067®Number=0000000000100030&sum=950023 [11:35:35]StoreToDocumentArchive [11:35:35]shift 461 fd 188210 [11:35:35]save to /storage/0461/doc_00188210 [11:35:35]save last doc name /storage/0461/doc_00188210 to /storage/kkm_last_doc_name [11:35:35]save OK [11:35:35]Clear old archive folders... [11:35:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:35:35]tlvbuf is 01CE83F0 [11:35:35]SAM_PROTO_ClearQueue [11:35:35]wFMCommunicate request_size=4 [11:35:35]MH_SAM_APDU [11:35:35]CAPDU: 80 09 00 00 [11:35:35]Write to MH i2c: E2 08 00 5D 4A 80 09 00 00 00 00 00 00 19 [11:35:35]Write i2c OK [11:35:35]MH_I2C_Read... [11:35:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:35:35]Read from MH i2c: E2 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 03 00 [11:35:35]MH_I2C_Read... [11:35:35]Read from MH i2c: E2 03 00 5D 4A 00 90 00 1B [11:35:35]RAPDU: 90 00 [11:35:35]wFMCommunicate OK [11:35:35]SAM_PROTO_ClearQueue done [11:35:35]KKMCreateOFDPacket [11:35:35]OFDProtocolAddRootSTLVToBuf [11:35:35]FM_MakeSignedData [11:35:35]FM_MakeSignedData [11:35:35]SAM_PROTO_SignData [11:35:35]wFMCommunicate request_size=4 [11:35:35]MH_SAM_APDU [11:35:35]CAPDU: 80 0D 01 02 [11:35:35]Write to MH i2c: E2 08 00 5E 4A 80 0D 01 02 00 00 00 00 21 [11:35:35]Write i2c OK [11:35:35]MH_I2C_Read... [11:35:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 03 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 03 00 5E 4A 00 90 00 1C [11:35:36]RAPDU: 90 00 [11:35:36]wFMCommunicate OK [11:35:36]wFMCommunicate request_size=255 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 0A 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DF 02 [11:35:36]Write to MH i2c: E2 02 01 5F 4A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 0A 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DF 02 00 00 B2 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 03 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 03 00 5F 4A 00 90 00 1D [11:35:36]RAPDU: 90 00 [11:35:36]wFMCommunicate OK [11:35:36]wFMCommunicate request_size=16 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A7 2A D2 E0 86 6D [11:35:36]Write to MH i2c: E2 13 00 60 4A 80 0D 02 02 0B 00 00 35 04 06 00 A7 2A D2 E0 86 6D 00 00 EF [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 03 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 03 00 60 4A 00 90 00 1E [11:35:36]RAPDU: 90 00 [11:35:36]wFMCommunicate OK [11:35:36]wFMCommunicate request_size=4 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 0D 03 02 [11:35:36]Write to MH i2c: E2 08 00 61 4A 80 0D 03 02 00 00 00 00 26 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 0B 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 0B 00 61 4A 00 0E 44 19 33 D5 EC 77 CA 90 00 C7 [11:35:36]RAPDU: 0E 44 19 33 D5 EC 77 CA 90 00 [11:35:36]wFMCommunicate OK [11:35:36]SAM_PROTO_SignData done [11:35:36]FM_MakeSignedData done [11:35:36]CreateOFDProtocolMessage [11:35:36]wFMCommunicate request_size=4 [11:35:36]MH_SAM_APDU [11:35:36]CAPDU: 80 11 00 00 [11:35:36]Write to MH i2c: E2 08 00 62 4A 80 11 00 00 00 00 00 00 26 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:36]Read from MH i2c: E2 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 17 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: E2 17 00 62 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [11:35:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:35:36]wFMCommunicate OK [11:35:36]CreateOFDProtocolMessage done [11:35:36]OFDSenderStorePacket 188210 [11:35:36]StoreOFDPacket docnum=188210 [11:35:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 65 84 0D 01 80 98 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 0A 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DF 02 00 35 04 06 00 A7 2A D2 E0 86 6D 0E 44 19 33 D5 EC 77 CA [11:35:36]CheckFolder [11:35:36]dirname=/storage/ofd_packets [11:35:36]CheckFolder done [11:35:36]ProducePacketName [11:35:36]name=ofd_packets/00188210 [11:35:36]NVStorageSaveData ofd_packets/00188210 [11:35:36]File name is /storage/ofd_packets/00188210 [11:35:36]Write 307 bytes [11:35:36]NVStorageSaveData done [11:35:36]OFDSenderStorePacket done [11:35:36]KKMCreateOFDPacket done [11:35:36]NVStorageSaveData kkm_last_timestamp [11:35:36]File name is /storage/kkm_last_timestamp [11:35:36]Write 4 bytes [11:35:36]NVStorageSaveData done [11:35:36]ExternCall_PrintAddStr [11:35:36]wPrintStart [11:35:36]Write to MH i2c: 01 00 00 63 4A AD [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 07 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 07 00 63 4A 00 00 00 00 00 FF 0F C2 [11:35:36]RasterBufferAndPrint [11:35:36]line Счет N : (1)210257 [11:35:36]line ИНН: 02508201610067 [11:35:36]line Контрольно-Кассовый Чек [11:35:36]line ПРОДАЖА [11:35:36]line ТРК (МРК, ГНК) : 11 [11:35:36]line Товар: 2710194210 [11:35:36]line D-ENERGY ДТ-К-5 [11:35:36]line 123.060 * 77.20 [11:35:36]line = 9500.23 [11:35:36]line НДС 12% НСП 1% [11:35:36]line > о реализуемом товаре [11:35:36]line ИТОГО: 9500.23 [11:35:36]line НСП 1% : 84.07 [11:35:36]line НДС 12% : 1008.87 [11:35:36]line Наличными: 0.00 [11:35:36]line Безнал.: 9500.23 [11:35:36]line Место: АЗС № 86 "Партнер Нефть" [11:35:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:35:36]line СНО: Общий режим [11:35:36]line Чек 239 22.10.2024 11:35 [11:35:36]line Смена: 461 ФФД: 1.0 [11:35:36]line ЗНМ: 0300000155 [11:35:36]line РНМ: 0000000000100030 [11:35:36]line Версия ККМ: 001 [11:35:36]line Платежная система: O! деньги [11:35:36]line ФМ: 0000000000965340 [11:35:36]line ФД: 188210 [11:35:36]line ФПД: 183802368394861 [11:35:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113538&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188210&fm=183802368394861&tin=02508201610067®Number=0000000000100030&sum=950023 [11:35:36]written 0, free lines is 4095 [11:35:36]OFD Sender: Processing packet 188210 [packets to send 1062, broken 1061] [11:35:36]ProducePacketName [11:35:36]name=ofd_packets/00188210 [11:35:36]OFD Sender: To server: pG, [11:35:36]CommunicateWithHost lk.salyk.kg:30040 [11:35:36]ConnectInit lk.salyk.kg [11:35:36]Connected sock=10 [11:35:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 65 84 0D 01 80 98 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 EF 00 00 00 F4 03 04 00 0A 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 DF 02 00 35 04 06 00 A7 2A D2 E0 86 6D 0E 44 19 33 D5 EC 77 CA [11:35:36]Write to MH i2c: 01 00 00 8D 4A D7 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 07 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: 01 07 00 8D 4A 00 00 00 00 00 88 0C 72 [11:35:36]RasterBufferAndPrint [11:35:36]line [11:35:36]line [11:35:36]line [11:35:36]line [11:35:36]line [11:35:36]written 0, free lines is 3212 [11:35:36]MH_Cut [11:35:36]Write to MH i2c: D1 01 00 94 4A 01 B0 [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: D1 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: D1 01 00 [11:35:36]MH_I2C_Read... [11:35:36]Read from MH i2c: D1 01 00 94 4A 00 AF [11:35:36]Write to MH i2c: 01 00 00 95 4A DF [11:35:36]Write i2c OK [11:35:36]MH_I2C_Read... [11:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2F 4B 47 00 A2 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 39 36 35 33 34 30 10 04 04 00 32 DF 02 00 F4 03 04 00 F7 37 17 67 B6 04 01 00 00 9F C6 5F A4 DE 36 25 CD [11:35:37]CommunicateWithHost err = 0 [11:35:37]CheckOFDResponse [11:35:37]1017 (14) - 77093643461234 [11:35:37]1041 (16) - 0000000000965340 [11:35:37]1040 (4) - 188210 [11:35:37]1012 (4) - 22.10.2024 05:28 [11:35:37]1206 (1) - 0 [11:35:37]OFD Sender: Remove packet 188210 [11:35:37]ProducePacketName [11:35:37]name=ofd_packets/00188210 [11:35:37]NVStorageDeleteData [11:35:37]OFD Sender: No OFD packet to send [11:35:38]*** Cut start [11:35:38]*** Partial cut [11:35:38]*** CUTSNS_PIN = 1 [11:35:38]*** CUTSNS_PIN = 0 [11:35:38]*** Brake cut motor [11:35:38]Read from MH i2c: 01 [11:35:38]MH_I2C_Read... [11:35:38]*** Stop cut motor [11:35:38]*** Cut end [11:35:38]Read from MH i2c: 01 07 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: 01 07 00 95 4A 00 00 00 00 00 FF 0F F4 [11:35:38]process_action close_receipt done [11:35:38]requested_data is exist [11:35:38]produce_requested_data [11:35:38]requested_item fm.sn is exist - process it [11:35:38]wFMCommunicate request_size=4 [11:35:38]MH_SAM_APDU [11:35:38]CAPDU: 80 11 00 00 [11:35:38]Write to MH i2c: E2 08 00 96 4A 80 11 00 00 00 00 00 00 5A [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 17 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 17 00 96 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [11:35:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:35:38]wFMCommunicate OK [11:35:38]requested_item fd.num is exist - process it [11:35:38]SAM_PROTO_GetFieldsCounters [11:35:38]wFMCommunicate request_size=4 [11:35:38]MH_SAM_APDU [11:35:38]CAPDU: 80 13 00 00 [11:35:38]Write to MH i2c: E2 08 00 97 4A 80 13 00 00 00 00 00 00 5D [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:35:38]Read from MH i2c: E2 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 62 00 [11:35:38]MH_I2C_Read... [11:35:38]Read from MH i2c: E2 62 00 97 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:35:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EF 00 00 00 5E 04 04 00 EF 00 00 00 57 04 04 00 F0 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:35:38]wFMCommunicate OK [11:35:38]SAM_PROTO_GetFieldsCounters done [11:35:38]requested_item shift.num is exist - process it [11:35:38]requested_item shift.opened is exist - process it [11:35:38]req_shift_opened [11:35:38]FM_GetShiftState [11:35:38]SAM_PROTO_GetShiftState [11:35:38]wFMCommunicate request_size=4 [11:35:38]MH_SAM_APDU [11:35:38]CAPDU: 80 13 01 00 [11:35:38]Write to MH i2c: E2 08 00 98 4A 80 13 01 00 00 00 00 00 5F [11:35:38]Write i2c OK [11:35:38]MH_I2C_Read... [11:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:35:39]Read from MH i2c: E2 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0E 00 [11:35:39]MH_I2C_Read... [11:35:39]Read from MH i2c: E2 0E 00 98 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 54 [11:35:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:35:39]wFMCommunicate OK [11:35:39]SAM_PROTO_GetShiftState done [11:35:39]FM_GetShiftState done [11:35:39]req_shift_opened done [11:35:39]requested_item shift.open_date is exist - process it [11:35:39]req_shift_open_date [11:35:39]req_shift_open_date done [11:35:39]produce_requested_data done [11:35:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188210,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:35:39]process_action_free close_receipt [11:35:39]json_value_free [11:35:39]json_value_free done [11:35:39]process_json_proto returns [11:35:39]Send response to host [11:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188210,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:35:39]free response buf [11:35:39]execute_script done [11:35:39]execute_script returns [11:35:39]free content buf [11:35:39]Sock 9.Close socket [11:35:39]Sock 9.Thread stoped [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:53]OFD Sender: No OFD packet to send [11:36:58]OFD Sender: No OFD packet to send [11:37:03]OFD Sender: No OFD packet to send [11:37:08]OFD Sender: No OFD packet to send [11:37:13]OFD Sender: No OFD packet to send [11:37:18]OFD Sender: No OFD packet to send [11:37:23]OFD Sender: No OFD packet to send [11:37:28]OFD Sender: No OFD packet to send [11:37:33]OFD Sender: No OFD packet to send [11:37:38]OFD Sender: No OFD packet to send [11:37:43]OFD Sender: No OFD packet to send [11:37:46]accept exits with 8 [11:37:46]New connection [11:37:46]New thread 3067055460 created [11:37:46]Thread 3067198820 joined [11:37:46]Waiting for new connection... [11:37:46] Sock 8.Parse request [11:37:46]Sock 8.Check first char [11:37:46]Sock 8.First char is OK [11:37:46]request: POST /json_proto HTTP/1.0 [11:37:46]Method: POST [11:37:46]URL: /json_proto [11:37:46]Method is POST - this is cgi request [11:37:46]url: /json_proto [11:37:46]query_string will be loaded in cgi processing [11:37:46]execute_cgi json_proto POST (null) [11:37:46]execute_cgi path=json_proto method=POST [11:37:46]POST find Content-Length [11:37:46]Host: 172.17.42.131:8080 [11:37:46]Content-Length: 688 [11:37:46]Content-Type: application/json [11:37:46] [11:37:46]POST finish read [11:37:46]Found Content-Length = 688 [11:37:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 42.330, "sum" : 3267.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3267.00, "payments": [ { "type": 0, "sum" : 3267.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:46]execute_script... [11:37:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210264", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 42.330, "sum" : 3267.88, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 3267.00, "payments": [ { "type": 0, "sum" : 3267.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:46]POST & json_proto [11:37:46]process_json_proto [11:37:46]json parsed OK: [11:37:46]protocol is kg_v1.0 [11:37:46]action value=close_receipt [11:37:46]process_action close_receipt [11:37:46]cmd_close_receipt [11:37:46]MH_GetDate [11:37:46]Write to MH i2c: F0 00 00 99 4A D2 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: F0 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: F0 09 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: F0 09 00 99 4A 00 8D 8E 17 67 A0 18 CA 66 5C [11:37:46]GetLastDocTimeStamp 1729596938 [11:37:46]current date 1729597069 [11:37:46]FM_GetShiftState [11:37:46]SAM_PROTO_GetShiftState [11:37:46]wFMCommunicate request_size=4 [11:37:46]MH_SAM_APDU [11:37:46]CAPDU: 80 13 01 00 [11:37:46]Write to MH i2c: E2 08 00 9A 4A 80 13 01 00 00 00 00 00 61 [11:37:46]Write i2c OK [11:37:46]MH_I2C_Read... [11:37:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:46]Read from MH i2c: E2 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 0E 00 [11:37:46]MH_I2C_Read... [11:37:46]Read from MH i2c: E2 0E 00 9A 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 56 [11:37:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:37:46]wFMCommunicate OK [11:37:46]SAM_PROTO_GetShiftState done [11:37:46]FM_GetShiftState done [11:37:46]opened in 1729556094 [11:37:46]opened+sec_in_day 1729642494 [11:37:46]quantity*price = 326787 [11:37:46]sum+1 = 326789 [11:37:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.88 ИТОГО: 3267.00 Внесено: 5000.00 СДАЧА: 1733.00 НСП 1% : 28.92 НДС 12% : 347.03 Наличными: 3267.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 240 22.10.2024 11:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188211 ФПД: 245906582883660 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113749&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188211&fm=245906582883660&tin=02508201610067®Number=0000000000100030&sum=326700 [11:37:47]StoreToDocumentArchive [11:37:47]shift 461 fd 188211 [11:37:47]save to /storage/0461/doc_00188211 [11:37:47]save last doc name /storage/0461/doc_00188211 to /storage/kkm_last_doc_name [11:37:47]save OK [11:37:47]Clear old archive folders... [11:37:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:37:47]tlvbuf is 01BEF110 [11:37:47]SAM_PROTO_ClearQueue [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 09 00 00 [11:37:47]Write to MH i2c: E2 08 00 A7 4A 80 09 00 00 00 00 00 00 63 [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 A7 4A 00 90 00 65 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]SAM_PROTO_ClearQueue done [11:37:47]KKMCreateOFDPacket [11:37:47]OFDProtocolAddRootSTLVToBuf [11:37:47]FM_MakeSignedData [11:37:47]FM_MakeSignedData [11:37:47]SAM_PROTO_SignData [11:37:47]wFMCommunicate request_size=4 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 01 02 [11:37:47]Write to MH i2c: E2 08 00 A8 4A 80 0D 01 02 00 00 00 00 6B [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:47]Read from MH i2c: E2 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 [11:37:47]MH_I2C_Read... [11:37:47]Read from MH i2c: E2 03 00 A8 4A 00 90 00 66 [11:37:47]RAPDU: 90 00 [11:37:47]wFMCommunicate OK [11:37:47]wFMCommunicate request_size=255 [11:37:47]MH_SAM_APDU [11:37:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A A5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 FC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 87 00 00 00 00 07 04 06 00 2C FC 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DF 02 [11:37:47]Write to MH i2c: E2 02 01 A9 4A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A A5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 FC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 87 00 00 00 00 07 04 06 00 2C FC 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DF 02 00 00 DF [11:37:47]Write i2c OK [11:37:47]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 A9 4A 00 90 00 67 [11:37:48]RAPDU: 90 00 [11:37:48]wFMCommunicate OK [11:37:48]wFMCommunicate request_size=16 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DF A6 96 85 4D 4C [11:37:48]Write to MH i2c: E2 13 00 AA 4A 80 0D 02 02 0B 00 00 35 04 06 00 DF A6 96 85 4D 4C 00 00 FC [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 03 00 AA 4A 00 90 00 68 [11:37:48]RAPDU: 90 00 [11:37:48]wFMCommunicate OK [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 0D 03 02 [11:37:48]Write to MH i2c: E2 08 00 AB 4A 80 0D 03 02 00 00 00 00 70 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 0B 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 0B 00 AB 4A 00 39 B3 5D A9 CC 1F CE 9E 90 00 BA [11:37:48]RAPDU: 39 B3 5D A9 CC 1F CE 9E 90 00 [11:37:48]wFMCommunicate OK [11:37:48]SAM_PROTO_SignData done [11:37:48]FM_MakeSignedData done [11:37:48]CreateOFDProtocolMessage [11:37:48]wFMCommunicate request_size=4 [11:37:48]MH_SAM_APDU [11:37:48]CAPDU: 80 11 00 00 [11:37:48]Write to MH i2c: E2 08 00 AC 4A 80 11 00 00 00 00 00 00 70 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:48]Read from MH i2c: E2 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 17 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: E2 17 00 AC 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [11:37:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:37:48]wFMCommunicate OK [11:37:48]CreateOFDProtocolMessage done [11:37:48]OFDSenderStorePacket 188211 [11:37:48]StoreOFDPacket docnum=188211 [11:37:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4A 04 0D 01 87 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A A5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 FC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 87 00 00 00 00 07 04 06 00 2C FC 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DF 02 00 35 04 06 00 DF A6 96 85 4D 4C 39 B3 5D A9 CC 1F CE 9E [11:37:48]CheckFolder [11:37:48]dirname=/storage/ofd_packets [11:37:48]CheckFolder done [11:37:48]ProducePacketName [11:37:48]name=ofd_packets/00188211 [11:37:48]NVStorageSaveData ofd_packets/00188211 [11:37:48]File name is /storage/ofd_packets/00188211 [11:37:48]Write 307 bytes [11:37:48]NVStorageSaveData done [11:37:48]OFDSenderStorePacket done [11:37:48]KKMCreateOFDPacket done [11:37:48]NVStorageSaveData kkm_last_timestamp [11:37:48]File name is /storage/kkm_last_timestamp [11:37:48]Write 4 bytes [11:37:48]NVStorageSaveData done [11:37:48]ExternCall_PrintAddStr [11:37:48]wPrintStart [11:37:48]Write to MH i2c: 01 00 00 AD 4A F7 [11:37:48]Write i2c OK [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 [11:37:48]MH_I2C_Read... [11:37:48]Read from MH i2c: 01 07 00 AD 4A 00 00 00 00 00 FF 0F 0C [11:37:48]RasterBufferAndPrint [11:37:48]line Счет N : (1)210264 [11:37:48]line ИНН: 02508201610067 [11:37:48]line Контрольно-Кассовый Чек [11:37:48]line ПРОДАЖА [11:37:48]line ТРК (МРК, ГНК) : 21 [11:37:48]line Товар: 2710194210 [11:37:48]line D-ENERGY ДТ-К-5 [11:37:48]line 42.330 * 77.20 [11:37:48]line = 3267.88 [11:37:48]line НДС 12% НСП 1% [11:37:48]line > о реализуемом товаре [11:37:48]line ОКРУГЛЕНИЕ: -0.88 [11:37:48]line ИТОГО: 3267.00 [11:37:48]line Внесено: 5000.00 [11:37:48]line СДАЧА: 1733.00 [11:37:48]line НСП 1% : 28.92 [11:37:48]line НДС 12% : 347.03 [11:37:48]line Наличными: 3267.00 [11:37:48]line Безнал.: 0.00 [11:37:48]line Место: АЗС № 86 "Партнер Нефть" [11:37:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:37:48]line СНО: Общий режим [11:37:48]line Чек 240 22.10.2024 11:37 [11:37:48]line Смена: 461 ФФД: 1.0 [11:37:48]line ЗНМ: 0300000155 [11:37:48]line РНМ: 0000000000100030 [11:37:48]line Версия ККМ: 001 [11:37:48]line ФМ: 0000000000965340 [11:37:48]line ФД: 188211 [11:37:48]line ФПД: 245906582883660 [11:37:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113749&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188211&fm=245906582883660&tin=02508201610067®Number=0000000000100030&sum=326700 [11:37:48]OFD Sender: Processing packet 188211 [packets to send 1062, broken 1061] [11:37:48]ProducePacketName [11:37:48]name=ofd_packets/00188211 [11:37:48]OFD Sender: To server: pG, [11:37:48]CommunicateWithHost lk.salyk.kg:30040 [11:37:48]ConnectInit lk.salyk.kg [11:37:48]written 0, free lines is 4095 [11:37:48]Connected sock=10 [11:37:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4A 04 0D 01 87 1A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5A A5 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 FC 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C FC 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4C 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8F 87 00 00 00 00 07 04 06 00 2C FC 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 00 00 00 F4 03 04 00 8D 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DF 02 00 35 04 06 00 DF A6 96 85 4D 4C 39 B3 5D A9 CC 1F CE 9E [11:37:49]Write to MH i2c: 01 00 00 D8 4A 22 [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 07 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: 01 07 00 D8 4A 00 00 00 00 00 74 0C A9 [11:37:49]RasterBufferAndPrint [11:37:49]line [11:37:49]line [11:37:49]line [11:37:49]line [11:37:49]line [11:37:49]written 0, free lines is 3191 [11:37:49]MH_Cut [11:37:49]Write to MH i2c: D1 01 00 DF 4A 01 FB [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: D1 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: D1 01 00 [11:37:49]MH_I2C_Read... [11:37:49]Read from MH i2c: D1 01 00 DF 4A 00 FA [11:37:49]Write to MH i2c: 01 00 00 E0 4A 2A [11:37:49]Write i2c OK [11:37:49]MH_I2C_Read... [11:37:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FA AE 47 00 05 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 DF 02 00 F4 03 04 00 7B 38 17 67 B6 04 01 00 00 39 8B 54 C3 20 80 8B C3 [11:37:49]CommunicateWithHost err = 0 [11:37:49]CheckOFDResponse [11:37:49]1017 (14) - 77093643461234 [11:37:49]1041 (16) - 0000000000965340 [11:37:49]1040 (4) - 188211 [11:37:49]1012 (4) - 22.10.2024 05:30 [11:37:49]1206 (1) - 0 [11:37:49]OFD Sender: Remove packet 188211 [11:37:49]ProducePacketName [11:37:49]name=ofd_packets/00188211 [11:37:49]NVStorageDeleteData [11:37:49]OFD Sender: No OFD packet to send [11:37:50]*** Cut start [11:37:50]*** Partial cut [11:37:50]*** CUTSNS_PIN = 1 [11:37:50]*** CUTSNS_PIN = 0 [11:37:50]*** Brake cut motor [11:37:50]Read from MH i2c: 01 [11:37:50]MH_I2C_Read... [11:37:50]*** Stop cut motor [11:37:50]*** Cut end [11:37:50]Read from MH i2c: 01 07 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: 01 07 00 E0 4A 00 00 00 00 00 FF 0F 3F [11:37:50]process_action close_receipt done [11:37:50]requested_data is exist [11:37:50]produce_requested_data [11:37:50]requested_item fm.sn is exist - process it [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 11 00 00 [11:37:50]Write to MH i2c: E2 08 00 E1 4A 80 11 00 00 00 00 00 00 A5 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:50]Read from MH i2c: E2 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 [11:37:50]MH_I2C_Read... [11:37:50]Read from MH i2c: E2 17 00 E1 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F3 [11:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:37:50]wFMCommunicate OK [11:37:50]requested_item fd.num is exist - process it [11:37:50]SAM_PROTO_GetFieldsCounters [11:37:50]wFMCommunicate request_size=4 [11:37:50]MH_SAM_APDU [11:37:50]CAPDU: 80 13 00 00 [11:37:50]Write to MH i2c: E2 08 00 E2 4A 80 13 00 00 00 00 00 00 A8 [11:37:50]Write i2c OK [11:37:50]MH_I2C_Read... [11:37:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:51]Read from MH i2c: E2 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 62 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 62 00 E2 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 61 [11:37:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F0 00 00 00 5E 04 04 00 F0 00 00 00 57 04 04 00 F1 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:37:51]wFMCommunicate OK [11:37:51]SAM_PROTO_GetFieldsCounters done [11:37:51]requested_item shift.num is exist - process it [11:37:51]requested_item shift.opened is exist - process it [11:37:51]req_shift_opened [11:37:51]FM_GetShiftState [11:37:51]SAM_PROTO_GetShiftState [11:37:51]wFMCommunicate request_size=4 [11:37:51]MH_SAM_APDU [11:37:51]CAPDU: 80 13 01 00 [11:37:51]Write to MH i2c: E2 08 00 E3 4A 80 13 01 00 00 00 00 00 AA [11:37:51]Write i2c OK [11:37:51]MH_I2C_Read... [11:37:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:51]Read from MH i2c: E2 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 0E 00 [11:37:51]MH_I2C_Read... [11:37:51]Read from MH i2c: E2 0E 00 E3 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9F [11:37:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:37:51]wFMCommunicate OK [11:37:51]SAM_PROTO_GetShiftState done [11:37:51]FM_GetShiftState done [11:37:51]req_shift_opened done [11:37:51]requested_item shift.open_date is exist - process it [11:37:51]req_shift_open_date [11:37:51]req_shift_open_date done [11:37:51]produce_requested_data done [11:37:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188211,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:37:51]process_action_free close_receipt [11:37:51]json_value_free [11:37:51]json_value_free done [11:37:51]process_json_proto returns [11:37:51]Send response to host [11:37:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188211,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:37:51]free response buf [11:37:51]execute_script done [11:37:51]execute_script returns [11:37:51]free content buf [11:37:51]Sock 8.Close socket [11:37:51]Sock 8.Thread stoped [11:37:54]OFD Sender: No OFD packet to send [11:37:59]OFD Sender: No OFD packet to send [11:38:04]OFD Sender: No OFD packet to send [11:38:09]OFD Sender: No OFD packet to send [11:38:14]OFD Sender: No OFD packet to send [11:38:19]OFD Sender: No OFD packet to send [11:38:24]OFD Sender: No OFD packet to send [11:38:29]OFD Sender: No OFD packet to send [11:38:34]OFD Sender: No OFD packet to send [11:38:39]OFD Sender: No OFD packet to send [11:38:44]OFD Sender: No OFD packet to send [11:38:49]OFD Sender: No OFD packet to send [11:38:55]OFD Sender: No OFD packet to send [11:39:00]OFD Sender: No OFD packet to send [11:39:05]OFD Sender: No OFD packet to send [11:39:10]OFD Sender: No OFD packet to send [11:39:15]OFD Sender: No OFD packet to send [11:39:19]accept exits with 9 [11:39:19]New connection [11:39:19]New thread 3067198820 created [11:39:19]Thread 3067055460 joined [11:39:19]Waiting for new connection... [11:39:19] Sock 9.Parse request [11:39:19]Sock 9.Check first char [11:39:19]Sock 9.First char is OK [11:39:19]request: POST /json_proto HTTP/1.0 [11:39:19]Method: POST [11:39:19]URL: /json_proto [11:39:19]Method is POST - this is cgi request [11:39:19]url: /json_proto [11:39:19]query_string will be loaded in cgi processing [11:39:19]execute_cgi json_proto POST (null) [11:39:19]execute_cgi path=json_proto method=POST [11:39:19]POST find Content-Length [11:39:19]Host: 172.17.42.131:8080 [11:39:19]Content-Length: 800 [11:39:19]Content-Type: application/json [11:39:19] [11:39:19]POST finish read [11:39:19]Found Content-Length = 800 [11:39:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908546", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:19]execute_script... [11:39: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)210267", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908546", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:19]POST & json_proto [11:39:19]process_json_proto [11:39:19]json parsed OK: [11:39:19]protocol is kg_v1.0 [11:39:19]action value=close_receipt [11:39:19]process_action close_receipt [11:39:19]cmd_close_receipt [11:39:19]MH_GetDate [11:39:19]Write to MH i2c: F0 00 00 E4 4A 1D [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: F0 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: F0 09 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: F0 09 00 E4 4A 00 EB 8E 17 67 A0 18 CA 66 05 [11:39:19]GetLastDocTimeStamp 1729597069 [11:39:19]current date 1729597163 [11:39:19]FM_GetShiftState [11:39:19]SAM_PROTO_GetShiftState [11:39:19]wFMCommunicate request_size=4 [11:39:19]MH_SAM_APDU [11:39:19]CAPDU: 80 13 01 00 [11:39:19]Write to MH i2c: E2 08 00 E5 4A 80 13 01 00 00 00 00 00 AC [11:39:19]Write i2c OK [11:39:19]MH_I2C_Read... [11:39:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:19]Read from MH i2c: E2 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0E 00 [11:39:19]MH_I2C_Read... [11:39:19]Read from MH i2c: E2 0E 00 E5 4A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A1 [11:39:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:39:19]wFMCommunicate OK [11:39:19]SAM_PROTO_GetShiftState done [11:39:19]FM_GetShiftState done [11:39:19]opened in 1729556094 [11:39:19]opened+sec_in_day 1729642494 [11:39:19]quantity*price = 0 [11:39:19]sum+1 = 1 [11:39:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 241 22.10.2024 11:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3908546 ФМ: 0000000000965340 ФД: 188212 ФПД: 38462168866156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188212&fm=38462168866156&tin=02508201610067®Number=0000000000100030&sum=0 [11:39:20]StoreToDocumentArchive [11:39:20]shift 461 fd 188212 [11:39:20]save to /storage/0461/doc_00188212 [11:39:20]save last doc name /storage/0461/doc_00188212 to /storage/kkm_last_doc_name [11:39:20]save OK [11:39:20]Clear old archive folders... [11:39:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:39:20]tlvbuf is 01BE01D0 [11:39:20]SAM_PROTO_ClearQueue [11:39:20]wFMCommunicate request_size=4 [11:39:20]MH_SAM_APDU [11:39:20]CAPDU: 80 09 00 00 [11:39:20]Write to MH i2c: E2 08 00 F2 4A 80 09 00 00 00 00 00 00 AE [11:39:20]Write i2c OK [11:39:20]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 F2 4A 00 90 00 B0 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_ClearQueue done [11:39:21]KKMCreateOFDPacket [11:39:21]OFDProtocolAddRootSTLVToBuf [11:39:21]FM_MakeSignedData [11:39:21]FM_MakeSignedData [11:39:21]SAM_PROTO_SignData [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 0D 01 02 [11:39:21]Write to MH i2c: E2 08 00 F3 4A 80 0D 01 02 00 00 00 00 B6 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 F3 4A 00 90 00 B1 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]wFMCommunicate request_size=255 [11:39:21]MH_SAM_APDU [11:39: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 EB 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DF 02 00 35 04 06 00 22 [11:39:21]Write to MH i2c: E2 02 01 F4 4A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 EB 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DF 02 00 35 04 06 00 22 00 00 C8 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 F4 4A 00 90 00 B2 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]wFMCommunicate request_size=10 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 0D 02 02 05 FB 2B E9 9D 6C [11:39:21]Write to MH i2c: E2 0D 00 F5 4A 80 0D 02 02 05 00 FB 2B E9 9D 6C 00 00 DB [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 03 00 F5 4A 00 90 00 B3 [11:39:21]RAPDU: 90 00 [11:39:21]wFMCommunicate OK [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 0D 03 02 [11:39:21]Write to MH i2c: E2 08 00 F6 4A 80 0D 03 02 00 00 00 00 BB [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0B 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 0B 00 F6 4A 00 88 4E 04 33 BF FA E4 AE 90 00 14 [11:39:21]RAPDU: 88 4E 04 33 BF FA E4 AE 90 00 [11:39:21]wFMCommunicate OK [11:39:21]SAM_PROTO_SignData done [11:39:21]FM_MakeSignedData done [11:39:21]CreateOFDProtocolMessage [11:39:21]wFMCommunicate request_size=4 [11:39:21]MH_SAM_APDU [11:39:21]CAPDU: 80 11 00 00 [11:39:21]Write to MH i2c: E2 08 00 F7 4A 80 11 00 00 00 00 00 00 BB [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:21]Read from MH i2c: E2 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 17 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: E2 17 00 F7 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 09 [11:39:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:39:21]wFMCommunicate OK [11:39:21]CreateOFDProtocolMessage done [11:39:21]OFDSenderStorePacket 188212 [11:39:21]StoreOFDPacket docnum=188212 [11:39:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 30 07 01 81 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 EB 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DF 02 00 35 04 06 00 22 FB 2B E9 9D 6C 88 4E 04 33 BF FA E4 AE [11:39:21]CheckFolder [11:39:21]dirname=/storage/ofd_packets [11:39:21]CheckFolder done [11:39:21]ProducePacketName [11:39:21]name=ofd_packets/00188212 [11:39:21]NVStorageSaveData ofd_packets/00188212 [11:39:21]File name is /storage/ofd_packets/00188212 [11:39:21]Write 301 bytes [11:39:21]NVStorageSaveData done [11:39:21]OFDSenderStorePacket done [11:39:21]KKMCreateOFDPacket done [11:39:21]NVStorageSaveData kkm_last_timestamp [11:39:21]File name is /storage/kkm_last_timestamp [11:39:21]Write 4 bytes [11:39:21]NVStorageSaveData done [11:39:21]ExternCall_PrintAddStr [11:39:21]wPrintStart [11:39:21]Write to MH i2c: 01 00 00 F8 4A 42 [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 07 00 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 07 00 F8 4A 00 00 00 00 00 FF 0F 57 [11:39:21]RasterBufferAndPrint [11:39:21]line Счет N : (1)210267 [11:39:21]line ИНН: 02508201610067 [11:39:21]line Контрольно-Кассовый Чек [11:39:21]line ПРОДАЖА [11:39:21]line ТРК (МРК, ГНК) : 42 [11:39:21]line Товар: 2710124130 [11:39:21]line Аи-92-К-3 [11:39:21]line 10.000 * 0.00 [11:39:21]line = 0.00 [11:39:21]line НДС 12% НСП 1% [11:39:21]line > о реализуемом товаре [11:39:21]line ИТОГО: 0.00 [11:39:21]line НСП 1% : 0.00 [11:39:21]line НДС 12% : 0.00 [11:39:21]line Наличными: 0.00 [11:39:21]line Безнал.: 0.00 [11:39:21]line Место: АЗС № 86 "Партнер Нефть" [11:39:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:39:21]line СНО: Общий режим [11:39:21]line Чек 241 22.10.2024 11:39 [11:39:21]line Смена: 461 ФФД: 1.0 [11:39:21]line ЗНМ: 0300000155 [11:39:21]line РНМ: 0000000000100030 [11:39:21]line Версия ККМ: 001 [11:39:21]line Талоны: Топливные Талоны [11:39:21]line 3908546 [11:39:21]line ФМ: 0000000000965340 [11:39:21]line ФД: 188212 [11:39:21]line ФПД: 38462168866156 [11:39:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113923&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188212&fm=38462168866156&tin=02508201610067®Number=0000000000100030&sum=0 [11:39:21]written 0, free lines is 4095 [11:39:21]OFD Sender: Processing packet 188212 [packets to send 1062, broken 1061] [11:39:21]ProducePacketName [11:39:21]name=ofd_packets/00188212 [11:39:21]OFD Sender: To server: pG, [11:39:21]CommunicateWithHost lk.salyk.kg:30040 [11:39:21]ConnectInit lk.salyk.kg [11:39:21]Write to MH i2c: 01 00 00 22 4B 6D [11:39:21]Write i2c OK [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 [11:39:21]MH_I2C_Read... [11:39:21]Read from MH i2c: 01 07 00 [11:39:21]MH_I2C_Read... [11:39:22]Read from MH i2c: 01 07 00 22 4B 00 00 00 00 00 86 0C 06 [11:39:22]RasterBufferAndPrint [11:39:22]line [11:39:22]line [11:39:22]line [11:39:22]line [11:39:22]line [11:39:22]written 0, free lines is 3209 [11:39:22]MH_Cut [11:39:22]Write to MH i2c: D1 01 00 29 4B 01 46 [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: D1 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: D1 01 00 [11:39:22]MH_I2C_Read... [11:39:22]Read from MH i2c: D1 01 00 29 4B 00 45 [11:39:22]Write to MH i2c: 01 00 00 2A 4B 75 [11:39:22]Write i2c OK [11:39:22]MH_I2C_Read... [11:39:22]Connected sock=11 [11:39:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5D 30 07 01 81 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 00 00 00 F4 03 04 00 EB 8E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 DF 02 00 35 04 06 00 22 FB 2B E9 9D 6C 88 4E 04 33 BF FA E4 AE [11:39:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 87 E5 47 00 E8 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 39 36 35 33 34 30 10 04 04 00 34 DF 02 00 F4 03 04 00 D8 38 17 67 B6 04 01 00 00 74 12 74 00 F7 F0 08 71 [11:39:22]CommunicateWithHost err = 0 [11:39:22]CheckOFDResponse [11:39:22]1017 (14) - 77093643461234 [11:39:22]1041 (16) - 0000000000965340 [11:39:22]1040 (4) - 188212 [11:39:22]1012 (4) - 22.10.2024 05:32 [11:39:22]1206 (1) - 0 [11:39:22]OFD Sender: Remove packet 188212 [11:39:22]ProducePacketName [11:39:22]name=ofd_packets/00188212 [11:39:22]NVStorageDeleteData [11:39:23]OFD Sender: No OFD packet to send [11:39:23]*** Cut start [11:39:23]*** Partial cut [11:39:23]*** CUTSNS_PIN = 1 [11:39:23]*** CUTSNS_PIN = 0 [11:39:23]*** Brake cut motor [11:39:23]Read from MH i2c: 01 [11:39:23]MH_I2C_Read... [11:39:23]*** Stop cut motor [11:39:23]*** Cut end [11:39:23]Read from MH i2c: 01 07 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: 01 07 00 2A 4B 00 00 00 00 00 FF 0F 8A [11:39:23]process_action close_receipt done [11:39:23]requested_data is exist [11:39:23]produce_requested_data [11:39:23]requested_item fm.sn is exist - process it [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 11 00 00 [11:39:23]Write to MH i2c: E2 08 00 2B 4B 80 11 00 00 00 00 00 00 F0 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 17 00 2B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3E [11:39:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:39:23]wFMCommunicate OK [11:39:23]requested_item fd.num is exist - process it [11:39:23]SAM_PROTO_GetFieldsCounters [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 13 00 00 [11:39:23]Write to MH i2c: E2 08 00 2C 4B 80 13 00 00 00 00 00 00 F3 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:23]Read from MH i2c: E2 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 62 00 [11:39:23]MH_I2C_Read... [11:39:23]Read from MH i2c: E2 62 00 2C 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 B0 [11:39:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F1 00 00 00 5E 04 04 00 F1 00 00 00 57 04 04 00 F2 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:23]wFMCommunicate OK [11:39:23]SAM_PROTO_GetFieldsCounters done [11:39:23]requested_item shift.num is exist - process it [11:39:23]requested_item shift.opened is exist - process it [11:39:23]req_shift_opened [11:39:23]FM_GetShiftState [11:39:23]SAM_PROTO_GetShiftState [11:39:23]wFMCommunicate request_size=4 [11:39:23]MH_SAM_APDU [11:39:23]CAPDU: 80 13 01 00 [11:39:23]Write to MH i2c: E2 08 00 2D 4B 80 13 01 00 00 00 00 00 F5 [11:39:23]Write i2c OK [11:39:23]MH_I2C_Read... [11:39:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:24]Read from MH i2c: E2 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: E2 0E 00 [11:39:24]MH_I2C_Read... [11:39:24]Read from MH i2c: E2 0E 00 2D 4B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EA [11:39:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:39:24]wFMCommunicate OK [11:39:24]SAM_PROTO_GetShiftState done [11:39:24]FM_GetShiftState done [11:39:24]req_shift_opened done [11:39:24]requested_item shift.open_date is exist - process it [11:39:24]req_shift_open_date [11:39:24]req_shift_open_date done [11:39:24]produce_requested_data done [11:39:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188212,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:39:24]process_action_free close_receipt [11:39:24]json_value_free [11:39:24]json_value_free done [11:39:24]process_json_proto returns [11:39:24]Send response to host [11:39:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188212,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:39:24]free response buf [11:39:24]execute_script done [11:39:24]execute_script returns [11:39:24]free content buf [11:39:24]Sock 9.Close socket [11:39:24]Sock 9.Thread stoped [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:47]accept exits with 8 [11:39:47]New connection [11:39:47]New thread 3067055460 created [11:39:47]Thread 3067198820 joined [11:39:47]Waiting for new connection... [11:39:47] Sock 8.Parse request [11:39:47]Sock 8.Check first char [11:39:47]Sock 8.First char is OK [11:39:47]request: POST /json_proto HTTP/1.0 [11:39:47]Method: POST [11:39:47]URL: /json_proto [11:39:47]Method is POST - this is cgi request [11:39:47]url: /json_proto [11:39:47]query_string will be loaded in cgi processing [11:39:47]execute_cgi json_proto POST (null) [11:39:47]execute_cgi path=json_proto method=POST [11:39:47]POST find Content-Length [11:39:47]Host: 172.17.42.131:8080 [11:39:47]Content-Length: 800 [11:39:47]Content-Type: application/json [11:39:47] [11:39:47]POST finish read [11:39:47]Found Content-Length = 800 [11:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:47]execute_script... [11:39: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)210266", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 3500.63 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:39:47]POST & json_proto [11:39:47]process_json_proto [11:39:47]json parsed OK: [11:39:47]protocol is kg_v1.0 [11:39:47]action value=close_receipt [11:39:47]process_action close_receipt [11:39:47]cmd_close_receipt [11:39:47]MH_GetDate [11:39:47]Write to MH i2c: F0 00 00 2E 4B 68 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: F0 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: F0 09 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: F0 09 00 2E 4B 00 06 8F 17 67 A0 18 CA 66 6C [11:39:47]GetLastDocTimeStamp 1729597163 [11:39:47]current date 1729597190 [11:39:47]FM_GetShiftState [11:39:47]SAM_PROTO_GetShiftState [11:39:47]wFMCommunicate request_size=4 [11:39:47]MH_SAM_APDU [11:39:47]CAPDU: 80 13 01 00 [11:39:47]Write to MH i2c: E2 08 00 2F 4B 80 13 01 00 00 00 00 00 F7 [11:39:47]Write i2c OK [11:39:47]MH_I2C_Read... [11:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:47]Read from MH i2c: E2 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0E 00 [11:39:47]MH_I2C_Read... [11:39:47]Read from MH i2c: E2 0E 00 2F 4B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EC [11:39:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:39:47]wFMCommunicate OK [11:39:47]SAM_PROTO_GetShiftState done [11:39:47]FM_GetShiftState done [11:39:47]opened in 1729556094 [11:39:47]opened+sec_in_day 1729642494 [11:39:47]quantity*price = 350062 [11:39:47]sum+1 = 350064 [11:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3500.63 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 0.00 Безнал.: 3500.63 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 242 22.10.2024 11:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188213 ФПД: 115801977629156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188213&fm=115801977629156&tin=02508201610067®Number=0000000000100030&sum=350063 [11:39:48]StoreToDocumentArchive [11:39:48]shift 461 fd 188213 [11:39:48]save to /storage/0461/doc_00188213 [11:39:48]save last doc name /storage/0461/doc_00188213 to /storage/kkm_last_doc_name [11:39:48]save OK [11:39:48]Clear old archive folders... [11:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:39:48]tlvbuf is B6DE4010 [11:39:48]SAM_PROTO_ClearQueue [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 09 00 00 [11:39:48]Write to MH i2c: E2 08 00 3C 4B 80 09 00 00 00 00 00 00 F9 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 3C 4B 00 90 00 FB [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]SAM_PROTO_ClearQueue done [11:39:48]KKMCreateOFDPacket [11:39:48]OFDProtocolAddRootSTLVToBuf [11:39:48]FM_MakeSignedData [11:39:48]FM_MakeSignedData [11:39:48]SAM_PROTO_SignData [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 01 02 [11:39:48]Write to MH i2c: E2 08 00 3D 4B 80 0D 01 02 00 00 00 00 01 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 3D 4B 00 90 00 FC [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]wFMCommunicate request_size=255 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DF 02 00 35 04 06 00 69 52 3F BD [11:39:48]Write to MH i2c: E2 02 01 3E 4B 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DF 02 00 35 04 06 00 69 52 3F BD 00 00 3B [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 3E 4B 00 90 00 FD [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]wFMCommunicate request_size=7 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 02 02 02 A9 E4 [11:39:48]Write to MH i2c: E2 0A 00 3F 4B 80 0D 02 02 02 00 A9 E4 00 00 95 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 03 00 3F 4B 00 90 00 FE [11:39:48]RAPDU: 90 00 [11:39:48]wFMCommunicate OK [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 0D 03 02 [11:39:48]Write to MH i2c: E2 08 00 40 4B 80 0D 03 02 00 00 00 00 06 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:39:48]Read from MH i2c: E2 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 0B 00 [11:39:48]MH_I2C_Read... [11:39:48]Read from MH i2c: E2 0B 00 40 4B 00 07 E0 87 55 45 6F BF 0B 90 00 48 [11:39:48]RAPDU: 07 E0 87 55 45 6F BF 0B 90 00 [11:39:48]wFMCommunicate OK [11:39:48]SAM_PROTO_SignData done [11:39:48]FM_MakeSignedData done [11:39:48]CreateOFDProtocolMessage [11:39:48]wFMCommunicate request_size=4 [11:39:48]MH_SAM_APDU [11:39:48]CAPDU: 80 11 00 00 [11:39:48]Write to MH i2c: E2 08 00 41 4B 80 11 00 00 00 00 00 00 06 [11:39:48]Write i2c OK [11:39:48]MH_I2C_Read... [11:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:49]Read from MH i2c: E2 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 17 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: E2 17 00 41 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [11:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:39:49]wFMCommunicate OK [11:39:49]CreateOFDProtocolMessage done [11:39:49]OFDSenderStorePacket 188213 [11:39:49]StoreOFDPacket docnum=188213 [11:39:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DF 47 04 01 03 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DF 02 00 35 04 06 00 69 52 3F BD A9 E4 07 E0 87 55 45 6F BF 0B [11:39:49]CheckFolder [11:39:49]dirname=/storage/ofd_packets [11:39:49]CheckFolder done [11:39:49]ProducePacketName [11:39:49]name=ofd_packets/00188213 [11:39:49]NVStorageSaveData ofd_packets/00188213 [11:39:49]File name is /storage/ofd_packets/00188213 [11:39:49]Write 298 bytes [11:39:49]NVStorageSaveData done [11:39:49]OFDSenderStorePacket done [11:39:49]KKMCreateOFDPacket done [11:39:49]NVStorageSaveData kkm_last_timestamp [11:39:49]File name is /storage/kkm_last_timestamp [11:39:49]Write 4 bytes [11:39:49]NVStorageSaveData done [11:39:49]ExternCall_PrintAddStr [11:39:49]wPrintStart [11:39:49]Write to MH i2c: 01 00 00 42 4B 8D [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 42 4B 00 00 00 00 00 FF 0F A2 [11:39:49]RasterBufferAndPrint [11:39:49]line Счет N : (1)210266 [11:39:49]line ИНН: 02508201610067 [11:39:49]line Контрольно-Кассовый Чек [11:39:49]line ПРОДАЖА [11:39:49]line ТРК (МРК, ГНК) : 51 [11:39:49]line Товар: 2710194210 [11:39:49]line ДТ-К-5 [11:39:49]line 45.940 * 76.20 [11:39:49]line = 3500.63 [11:39:49]line НДС 12% НСП 1% [11:39:49]line > о реализуемом товаре [11:39:49]line ИТОГО: 3500.63 [11:39:49]line НСП 1% : 30.98 [11:39:49]line НДС 12% : 371.75 [11:39:49]line Наличными: 0.00 [11:39:49]line Безнал.: 3500.63 [11:39:49]line Место: АЗС № 86 "Партнер Нефть" [11:39:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:39:49]line СНО: Общий режим [11:39:49]line Чек 242 22.10.2024 11:39 [11:39:49]line Смена: 461 ФФД: 1.0 [11:39:49]line ЗНМ: 0300000155 [11:39:49]line РНМ: 0000000000100030 [11:39:49]line Версия ККМ: 001 [11:39:49]line Платежная система: O! деньги [11:39:49]line ФМ: 0000000000965340 [11:39:49]line ФД: 188213 [11:39:49]line ФПД: 115801977629156 [11:39:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T113950&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188213&fm=115801977629156&tin=02508201610067®Number=0000000000100030&sum=350063 [11:39:49]written 0, free lines is 4095 [11:39:49]OFD Sender: Processing packet 188213 [packets to send 1062, broken 1061] [11:39:49]ProducePacketName [11:39:49]name=ofd_packets/00188213 [11:39:49]OFD Sender: To server: pG, [11:39:49]CommunicateWithHost lk.salyk.kg:30040 [11:39:49]ConnectInit lk.salyk.kg [11:39:49]Write to MH i2c: 01 00 00 6C 4B B7 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: 01 07 00 6C 4B 00 00 00 00 00 84 0C 4E [11:39:49]RasterBufferAndPrint [11:39:49]line [11:39:49]line [11:39:49]line [11:39:49]line [11:39:49]line [11:39:49]written 0, free lines is 3207 [11:39:49]MH_Cut [11:39:49]Write to MH i2c: D1 01 00 73 4B 01 90 [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: D1 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: D1 01 00 [11:39:49]MH_I2C_Read... [11:39:49]Read from MH i2c: D1 01 00 73 4B 00 8F [11:39:49]Write to MH i2c: 01 00 00 74 4B BF [11:39:49]Write i2c OK [11:39:49]MH_I2C_Read... [11:39:50]*** Cut start [11:39:50]*** Partial cut [11:39:50]*** CUTSNS_PIN = 1 [11:39:50]*** CUTSNS_PIN = 0 [11:39:50]*** Brake cut motor [11:39:51]Read from MH i2c: 01 [11:39:51]MH_I2C_Read... [11:39:51]*** Stop cut motor [11:39:51]*** Cut end [11:39:51]Read from MH i2c: 01 07 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: 01 07 00 74 4B 00 00 00 00 00 FF 0F D4 [11:39:51]process_action close_receipt done [11:39:51]requested_data is exist [11:39:51]produce_requested_data [11:39:51]requested_item fm.sn is exist - process it [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 11 00 00 [11:39:51]Write to MH i2c: E2 08 00 75 4B 80 11 00 00 00 00 00 00 3A [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 17 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 17 00 75 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [11:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:39:51]wFMCommunicate OK [11:39:51]requested_item fd.num is exist - process it [11:39:51]SAM_PROTO_GetFieldsCounters [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 13 00 00 [11:39:51]Write to MH i2c: E2 08 00 76 4B 80 13 00 00 00 00 00 00 3D [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 62 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 62 00 76 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 FE [11:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F2 00 00 00 5E 04 04 00 F2 00 00 00 57 04 04 00 F3 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:39:51]wFMCommunicate OK [11:39:51]SAM_PROTO_GetFieldsCounters done [11:39:51]requested_item shift.num is exist - process it [11:39:51]requested_item shift.opened is exist - process it [11:39:51]req_shift_opened [11:39:51]FM_GetShiftState [11:39:51]SAM_PROTO_GetShiftState [11:39:51]wFMCommunicate request_size=4 [11:39:51]MH_SAM_APDU [11:39:51]CAPDU: 80 13 01 00 [11:39:51]Write to MH i2c: E2 08 00 77 4B 80 13 01 00 00 00 00 00 3F [11:39:51]Write i2c OK [11:39:51]MH_I2C_Read... [11:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:39:51]Read from MH i2c: E2 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 0E 00 [11:39:51]MH_I2C_Read... [11:39:51]Read from MH i2c: E2 0E 00 77 4B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 34 [11:39:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:39:51]wFMCommunicate OK [11:39:51]SAM_PROTO_GetShiftState done [11:39:51]FM_GetShiftState done [11:39:51]req_shift_opened done [11:39:51]requested_item shift.open_date is exist - process it [11:39:51]req_shift_open_date [11:39:51]req_shift_open_date done [11:39:51]produce_requested_data done [11:39:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188213,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:39:51]process_action_free close_receipt [11:39:51]json_value_free [11:39:51]json_value_free done [11:39:51]process_json_proto returns [11:39:51]Send response to host [11:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188213,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:39:51]free response buf [11:39:51]execute_script done [11:39:51]execute_script returns [11:39:51]free content buf [11:39:51]Sock 8.Close socket [11:39:51]Sock 8.Thread stoped [11:40:25]accept exits with 9 [11:40:25]New connection [11:40:25]New thread 3067198820 created [11:40:25]Thread 3067055460 joined [11:40:25]Waiting for new connection... [11:40:25] Sock 9.Parse request [11:40:25]Sock 9.Check first char [11:40:25]Sock 9.First char is OK [11:40:25]request: POST /json_proto HTTP/1.0 [11:40:25]Method: POST [11:40:25]URL: /json_proto [11:40:25]Method is POST - this is cgi request [11:40:25]url: /json_proto [11:40:25]query_string will be loaded in cgi processing [11:40:25]execute_cgi json_proto POST (null) [11:40:25]execute_cgi path=json_proto method=POST [11:40:25]POST find Content-Length [11:40:25]Host: 172.17.42.131:8080 [11:40:25]Content-Length: 800 [11:40:25]Content-Type: application/json [11:40:25] [11:40:25]POST finish read [11:40:25]Found Content-Length = 800 [11:40:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908545", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:25]execute_script... [11:40: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)210268", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908545", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:40:25]POST & json_proto [11:40:25]process_json_proto [11:40:25]json parsed OK: [11:40:25]protocol is kg_v1.0 [11:40:25]action value=close_receipt [11:40:25]process_action close_receipt [11:40:25]cmd_close_receipt [11:40:25]MH_GetDate [11:40:25]Write to MH i2c: F0 00 00 78 4B B2 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: F0 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: F0 09 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: F0 09 00 78 4B 00 2C 8F 17 67 A0 18 CA 66 DC [11:40:25]GetLastDocTimeStamp 1729597190 [11:40:25]current date 1729597228 [11:40:25]FM_GetShiftState [11:40:25]SAM_PROTO_GetShiftState [11:40:25]wFMCommunicate request_size=4 [11:40:25]MH_SAM_APDU [11:40:25]CAPDU: 80 13 01 00 [11:40:25]Write to MH i2c: E2 08 00 79 4B 80 13 01 00 00 00 00 00 41 [11:40:25]Write i2c OK [11:40:25]MH_I2C_Read... [11:40:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:25]Read from MH i2c: E2 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0E 00 [11:40:25]MH_I2C_Read... [11:40:25]Read from MH i2c: E2 0E 00 79 4B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [11:40:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:40:25]wFMCommunicate OK [11:40:25]SAM_PROTO_GetShiftState done [11:40:25]FM_GetShiftState done [11:40:25]opened in 1729556094 [11:40:25]opened+sec_in_day 1729642494 [11:40:25]quantity*price = 0 [11:40:25]sum+1 = 1 [11:40:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 243 22.10.2024 11:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3908545 ФМ: 0000000000965340 ФД: 188214 ФПД: 122592858078822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188214&fm=122592858078822&tin=02508201610067®Number=0000000000100030&sum=0 [11:40:26]StoreToDocumentArchive [11:40:26]shift 461 fd 188214 [11:40:26]save to /storage/0461/doc_00188214 [11:40:26]save last doc name /storage/0461/doc_00188214 to /storage/kkm_last_doc_name [11:40:26]save OK [11:40:26]Clear old archive folders... [11:40:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:40:26]tlvbuf is 01BE0100 [11:40:26]SAM_PROTO_ClearQueue [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 09 00 00 [11:40:26]Write to MH i2c: E2 08 00 86 4B 80 09 00 00 00 00 00 00 43 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 86 4B 00 90 00 45 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]SAM_PROTO_ClearQueue done [11:40:26]KKMCreateOFDPacket [11:40:26]OFDProtocolAddRootSTLVToBuf [11:40:26]FM_MakeSignedData [11:40:26]FM_MakeSignedData [11:40:26]SAM_PROTO_SignData [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 0D 01 02 [11:40:26]Write to MH i2c: E2 08 00 87 4B 80 0D 01 02 00 00 00 00 4B [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 87 4B 00 90 00 46 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]wFMCommunicate request_size=255 [11:40:26]MH_SAM_APDU [11:40: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 2C 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DF 02 00 35 04 06 00 6F [11:40:26]Write to MH i2c: E2 02 01 88 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 2C 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DF 02 00 35 04 06 00 6F 00 00 F0 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 88 4B 00 90 00 47 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]wFMCommunicate request_size=10 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 0D 02 02 05 7F 5F C1 FE 66 [11:40:26]Write to MH i2c: E2 0D 00 89 4B 80 0D 02 02 05 00 7F 5F C1 FE 66 00 00 5B [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 03 00 89 4B 00 90 00 48 [11:40:26]RAPDU: 90 00 [11:40:26]wFMCommunicate OK [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 0D 03 02 [11:40:26]Write to MH i2c: E2 08 00 8A 4B 80 0D 03 02 00 00 00 00 50 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:40:26]Read from MH i2c: E2 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 0B 00 [11:40:26]MH_I2C_Read... [11:40:26]Read from MH i2c: E2 0B 00 8A 4B 00 81 8C 4B 93 FC F1 4C 8B 90 00 00 [11:40:26]RAPDU: 81 8C 4B 93 FC F1 4C 8B 90 00 [11:40:26]wFMCommunicate OK [11:40:26]SAM_PROTO_SignData done [11:40:26]FM_MakeSignedData done [11:40:26]CreateOFDProtocolMessage [11:40:26]wFMCommunicate request_size=4 [11:40:26]MH_SAM_APDU [11:40:26]CAPDU: 80 11 00 00 [11:40:26]Write to MH i2c: E2 08 00 8B 4B 80 11 00 00 00 00 00 00 50 [11:40:26]Write i2c OK [11:40:26]MH_I2C_Read... [11:40:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:27]Read from MH i2c: E2 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 17 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: E2 17 00 8B 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [11:40:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:27]wFMCommunicate OK [11:40:27]CreateOFDProtocolMessage done [11:40:27]OFDSenderStorePacket 188214 [11:40:27]StoreOFDPacket docnum=188214 [11:40:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 A5 07 01 AD D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 2C 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DF 02 00 35 04 06 00 6F 7F 5F C1 FE 66 81 8C 4B 93 FC F1 4C 8B [11:40:27]CheckFolder [11:40:27]dirname=/storage/ofd_packets [11:40:27]CheckFolder done [11:40:27]ProducePacketName [11:40:27]name=ofd_packets/00188214 [11:40:27]NVStorageSaveData ofd_packets/00188214 [11:40:27]File name is /storage/ofd_packets/00188214 [11:40:27]Write 301 bytes [11:40:27]NVStorageSaveData done [11:40:27]OFDSenderStorePacket done [11:40:27]KKMCreateOFDPacket done [11:40:27]NVStorageSaveData kkm_last_timestamp [11:40:27]File name is /storage/kkm_last_timestamp [11:40:27]Write 4 bytes [11:40:27]NVStorageSaveData done [11:40:27]ExternCall_PrintAddStr [11:40:27]wPrintStart [11:40:27]Write to MH i2c: 01 00 00 8C 4B D7 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 8C 4B 00 00 00 00 00 FF 0F EC [11:40:27]RasterBufferAndPrint [11:40:27]line Счет N : (1)210268 [11:40:27]line ИНН: 02508201610067 [11:40:27]line Контрольно-Кассовый Чек [11:40:27]line ПРОДАЖА [11:40:27]line ТРК (МРК, ГНК) : 42 [11:40:27]line Товар: 2710124130 [11:40:27]line Аи-92-К-3 [11:40:27]line 10.000 * 0.00 [11:40:27]line = 0.00 [11:40:27]line НДС 12% НСП 1% [11:40:27]line > о реализуемом товаре [11:40:27]line ИТОГО: 0.00 [11:40:27]line НСП 1% : 0.00 [11:40:27]line НДС 12% : 0.00 [11:40:27]line Наличными: 0.00 [11:40:27]line Безнал.: 0.00 [11:40:27]line Место: АЗС № 86 "Партнер Нефть" [11:40:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:40:27]line СНО: Общий режим [11:40:27]line Чек 243 22.10.2024 11:40 [11:40:27]line Смена: 461 ФФД: 1.0 [11:40:27]line ЗНМ: 0300000155 [11:40:27]line РНМ: 0000000000100030 [11:40:27]line Версия ККМ: 001 [11:40:27]line Талоны: Топливные Талоны [11:40:27]line 3908545 [11:40:27]line ФМ: 0000000000965340 [11:40:27]line ФД: 188214 [11:40:27]line ФПД: 122592858078822 [11:40:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188214&fm=122592858078822&tin=02508201610067®Number=0000000000100030&sum=0 [11:40:27]written 0, free lines is 4095 [11:40:27]Write to MH i2c: 01 00 00 B6 4B 01 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: 01 07 00 B6 4B 00 00 00 00 00 87 0C 9B [11:40:27]RasterBufferAndPrint [11:40:27]line [11:40:27]line [11:40:27]line [11:40:27]line [11:40:27]line [11:40:27]written 0, free lines is 3211 [11:40:27]MH_Cut [11:40:27]Write to MH i2c: D1 01 00 BD 4B 01 DA [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: D1 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: D1 01 00 [11:40:27]MH_I2C_Read... [11:40:27]Read from MH i2c: D1 01 00 BD 4B 00 D9 [11:40:27]Write to MH i2c: 01 00 00 BE 4B 09 [11:40:27]Write i2c OK [11:40:27]MH_I2C_Read... [11:40:28]*** Cut start [11:40:28]*** Partial cut [11:40:28]*** CUTSNS_PIN = 1 [11:40:28]*** CUTSNS_PIN = 0 [11:40:28]*** Brake cut motor [11:40:29]Read from MH i2c: 01 [11:40:29]MH_I2C_Read... [11:40:29]*** Stop cut motor [11:40:29]*** Cut end [11:40:29]Read from MH i2c: 01 07 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: 01 07 00 BE 4B 00 00 00 00 00 FF 0F 1E [11:40:29]process_action close_receipt done [11:40:29]requested_data is exist [11:40:29]produce_requested_data [11:40:29]requested_item fm.sn is exist - process it [11:40:29]wFMCommunicate request_size=4 [11:40:29]MH_SAM_APDU [11:40:29]CAPDU: 80 11 00 00 [11:40:29]Write to MH i2c: E2 08 00 BF 4B 80 11 00 00 00 00 00 00 84 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:40:29]Read from MH i2c: E2 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 17 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 17 00 BF 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [11:40:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:40:29]wFMCommunicate OK [11:40:29]requested_item fd.num is exist - process it [11:40:29]SAM_PROTO_GetFieldsCounters [11:40:29]wFMCommunicate request_size=4 [11:40:29]MH_SAM_APDU [11:40:29]CAPDU: 80 13 00 00 [11:40:29]Write to MH i2c: E2 08 00 C0 4B 80 13 00 00 00 00 00 00 87 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:40:29]Read from MH i2c: E2 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 62 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 62 00 C0 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 4C [11:40:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F3 00 00 00 5E 04 04 00 F3 00 00 00 57 04 04 00 F4 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:40:29]wFMCommunicate OK [11:40:29]SAM_PROTO_GetFieldsCounters done [11:40:29]requested_item shift.num is exist - process it [11:40:29]requested_item shift.opened is exist - process it [11:40:29]req_shift_opened [11:40:29]FM_GetShiftState [11:40:29]SAM_PROTO_GetShiftState [11:40:29]wFMCommunicate request_size=4 [11:40:29]MH_SAM_APDU [11:40:29]CAPDU: 80 13 01 00 [11:40:29]Write to MH i2c: E2 08 00 C1 4B 80 13 01 00 00 00 00 00 89 [11:40:29]Write i2c OK [11:40:29]MH_I2C_Read... [11:40:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:40:29]Read from MH i2c: E2 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 0E 00 [11:40:29]MH_I2C_Read... [11:40:29]Read from MH i2c: E2 0E 00 C1 4B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7E [11:40:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:40:29]wFMCommunicate OK [11:40:29]SAM_PROTO_GetShiftState done [11:40:29]FM_GetShiftState done [11:40:29]req_shift_opened done [11:40:29]requested_item shift.open_date is exist - process it [11:40:29]req_shift_open_date [11:40:29]req_shift_open_date done [11:40:29]produce_requested_data done [11:40:29]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188214,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:40:29]process_action_free close_receipt [11:40:29]json_value_free [11:40:29]json_value_free done [11:40:29]process_json_proto returns [11:40:29]Send response to host [11:40:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188214,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:40:29]free response buf [11:40:29]execute_script done [11:40:29]execute_script returns [11:40:29]free content buf [11:40:29]Sock 9.Close socket [11:40:29]Sock 9.Thread stoped [11:41:30]accept exits with 8 [11:41:30]New connection [11:41:30]New thread 3067055460 created [11:41:30]Thread 3067198820 joined [11:41:30]Waiting for new connection... [11:41:30] Sock 8.Parse request [11:41:30]Sock 8.Check first char [11:41:30]Sock 8.First char is OK [11:41:30]request: POST /json_proto HTTP/1.0 [11:41:30]Method: POST [11:41:30]URL: /json_proto [11:41:30]Method is POST - this is cgi request [11:41:30]url: /json_proto [11:41:30]query_string will be loaded in cgi processing [11:41:30]execute_cgi json_proto POST (null) [11:41:30]execute_cgi path=json_proto method=POST [11:41:30]POST find Content-Length [11:41:30]Host: 172.17.42.131:8080 [11:41:30]Content-Length: 800 [11:41:30]Content-Type: application/json [11:41:30] [11:41:30]POST finish read [11:41:30]Found Content-Length = 800 [11:41:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913698", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:30]execute_script... [11:41: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)210269", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3913698", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:41:30]POST & json_proto [11:41:30]process_json_proto [11:41:30]json parsed OK: [11:41:30]protocol is kg_v1.0 [11:41:30]action value=close_receipt [11:41:30]process_action close_receipt [11:41:30]cmd_close_receipt [11:41:30]MH_GetDate [11:41:30]Write to MH i2c: F0 00 00 C2 4B FC [11:41:30]Write i2c OK [11:41:30]MH_I2C_Read... [11:41:30]Read from MH i2c: F0 [11:41:30]MH_I2C_Read... [11:41:30]Read from MH i2c: F0 09 00 [11:41:30]MH_I2C_Read... [11:41:30]Read from MH i2c: F0 09 00 C2 4B 00 6D 8F 17 67 A0 18 CA 66 67 [11:41:30]GetLastDocTimeStamp 1729597228 [11:41:30]current date 1729597293 [11:41:30]FM_GetShiftState [11:41:30]SAM_PROTO_GetShiftState [11:41:30]wFMCommunicate request_size=4 [11:41:30]MH_SAM_APDU [11:41:30]CAPDU: 80 13 01 00 [11:41:30]Write to MH i2c: E2 08 00 C3 4B 80 13 01 00 00 00 00 00 8B [11:41:30]Write i2c OK [11:41:30]MH_I2C_Read... [11:41:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:30]Read from MH i2c: E2 [11:41:30]MH_I2C_Read... [11:41:30]Read from MH i2c: E2 0E 00 [11:41:30]MH_I2C_Read... [11:41:30]Read from MH i2c: E2 0E 00 C3 4B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 80 [11:41:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:41:30]wFMCommunicate OK [11:41:30]SAM_PROTO_GetShiftState done [11:41:30]FM_GetShiftState done [11:41:30]opened in 1729556094 [11:41:30]opened+sec_in_day 1729642494 [11:41:30]quantity*price = 0 [11:41:30]sum+1 = 1 [11:41:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 244 22.10.2024 11:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3913698 ФМ: 0000000000965340 ФД: 188215 ФПД: 212496828916480 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114133&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188215&fm=212496828916480&tin=02508201610067®Number=0000000000100030&sum=0 [11:41:31]StoreToDocumentArchive [11:41:31]shift 461 fd 188215 [11:41:31]save to /storage/0461/doc_00188215 [11:41:31]save last doc name /storage/0461/doc_00188215 to /storage/kkm_last_doc_name [11:41:31]save OK [11:41:31]Clear old archive folders... [11:41:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:41:31]tlvbuf is B6F94C10 [11:41:31]SAM_PROTO_ClearQueue [11:41:31]wFMCommunicate request_size=4 [11:41:31]MH_SAM_APDU [11:41:31]CAPDU: 80 09 00 00 [11:41:31]Write to MH i2c: E2 08 00 D0 4B 80 09 00 00 00 00 00 00 8D [11:41:31]Write i2c OK [11:41:31]MH_I2C_Read... [11:41:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:41:31]Read from MH i2c: E2 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: E2 03 00 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: E2 03 00 D0 4B 00 90 00 8F [11:41:31]RAPDU: 90 00 [11:41:31]wFMCommunicate OK [11:41:31]SAM_PROTO_ClearQueue done [11:41:31]KKMCreateOFDPacket [11:41:31]OFDProtocolAddRootSTLVToBuf [11:41:31]FM_MakeSignedData [11:41:31]FM_MakeSignedData [11:41:31]SAM_PROTO_SignData [11:41:31]wFMCommunicate request_size=4 [11:41:31]MH_SAM_APDU [11:41:31]CAPDU: 80 0D 01 02 [11:41:31]Write to MH i2c: E2 08 00 D1 4B 80 0D 01 02 00 00 00 00 95 [11:41:31]Write i2c OK [11:41:31]MH_I2C_Read... [11:41:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:41:31]Read from MH i2c: E2 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: E2 03 00 [11:41:31]MH_I2C_Read... [11:41:31]Read from MH i2c: E2 03 00 D1 4B 00 90 00 90 [11:41:31]RAPDU: 90 00 [11:41:31]wFMCommunicate OK [11:41:31]wFMCommunicate request_size=255 [11:41:31]MH_SAM_APDU [11:41: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DF 02 00 35 04 06 00 C1 [11:41:31]Write to MH i2c: E2 02 01 D2 4B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DF 02 00 35 04 06 00 C1 00 00 CF [11:41:31]Write i2c OK [11:41:31]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 D2 4B 00 90 00 91 [11:41:32]RAPDU: 90 00 [11:41:32]wFMCommunicate OK [11:41:32]wFMCommunicate request_size=10 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 0D 02 02 05 43 C6 00 E3 00 [11:41:32]Write to MH i2c: E2 0D 00 D3 4B 80 0D 02 02 05 00 43 C6 00 E3 00 00 00 8E [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 03 00 D3 4B 00 90 00 92 [11:41:32]RAPDU: 90 00 [11:41:32]wFMCommunicate OK [11:41:32]wFMCommunicate request_size=4 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 0D 03 02 [11:41:32]Write to MH i2c: E2 08 00 D4 4B 80 0D 03 02 00 00 00 00 9A [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 0B 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 0B 00 D4 4B 00 F9 CB E5 EB 65 14 8E 7E 90 00 B4 [11:41:32]RAPDU: F9 CB E5 EB 65 14 8E 7E 90 00 [11:41:32]wFMCommunicate OK [11:41:32]SAM_PROTO_SignData done [11:41:32]FM_MakeSignedData done [11:41:32]CreateOFDProtocolMessage [11:41:32]wFMCommunicate request_size=4 [11:41:32]MH_SAM_APDU [11:41:32]CAPDU: 80 11 00 00 [11:41:32]Write to MH i2c: E2 08 00 D5 4B 80 11 00 00 00 00 00 00 9A [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:32]Read from MH i2c: E2 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 17 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: E2 17 00 D5 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [11:41:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:32]wFMCommunicate OK [11:41:32]CreateOFDProtocolMessage done [11:41:32]OFDSenderStorePacket 188215 [11:41:32]StoreOFDPacket docnum=188215 [11:41:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 B5 07 01 A1 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DF 02 00 35 04 06 00 C1 43 C6 00 E3 00 F9 CB E5 EB 65 14 8E 7E [11:41:32]CheckFolder [11:41:32]dirname=/storage/ofd_packets [11:41:32]CheckFolder done [11:41:32]ProducePacketName [11:41:32]name=ofd_packets/00188215 [11:41:32]NVStorageSaveData ofd_packets/00188215 [11:41:32]File name is /storage/ofd_packets/00188215 [11:41:32]Write 301 bytes [11:41:32]NVStorageSaveData done [11:41:32]OFDSenderStorePacket done [11:41:32]KKMCreateOFDPacket done [11:41:32]NVStorageSaveData kkm_last_timestamp [11:41:32]File name is /storage/kkm_last_timestamp [11:41:32]Write 4 bytes [11:41:32]NVStorageSaveData done [11:41:32]ExternCall_PrintAddStr [11:41:32]wPrintStart [11:41:32]Write to MH i2c: 01 00 00 D6 4B 21 [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: 01 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: 01 07 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: 01 07 00 D6 4B 00 00 00 00 00 FF 0F 36 [11:41:32]RasterBufferAndPrint [11:41:32]line Счет N : (1)210269 [11:41:32]line ИНН: 02508201610067 [11:41:32]line Контрольно-Кассовый Чек [11:41:32]line ПРОДАЖА [11:41:32]line ТРК (МРК, ГНК) : 42 [11:41:32]line Товар: 2710124130 [11:41:32]line Аи-92-К-3 [11:41:32]line 10.000 * 0.00 [11:41:32]line = 0.00 [11:41:32]line НДС 12% НСП 1% [11:41:32]line > о реализуемом товаре [11:41:32]line ИТОГО: 0.00 [11:41:32]line НСП 1% : 0.00 [11:41:32]line НДС 12% : 0.00 [11:41:32]line Наличными: 0.00 [11:41:32]line Безнал.: 0.00 [11:41:32]line Место: АЗС № 86 "Партнер Нефть" [11:41:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:41:32]line СНО: Общий режим [11:41:32]line Чек 244 22.10.2024 11:41 [11:41:32]line Смена: 461 ФФД: 1.0 [11:41:32]line ЗНМ: 0300000155 [11:41:32]line РНМ: 0000000000100030 [11:41:32]line Версия ККМ: 001 [11:41:32]line Талоны: Топливные Талоны [11:41:32]line 3913698 [11:41:32]line ФМ: 0000000000965340 [11:41:32]line ФД: 188215 [11:41:32]line ФПД: 212496828916480 [11:41:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114133&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188215&fm=212496828916480&tin=02508201610067®Number=0000000000100030&sum=0 [11:41:32]written 0, free lines is 4095 [11:41:32]Write to MH i2c: 01 00 00 00 4C 4C [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: 01 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: 01 07 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: 01 07 00 00 4C 00 00 00 00 00 87 0C E6 [11:41:32]RasterBufferAndPrint [11:41:32]line [11:41:32]line [11:41:32]line [11:41:32]line [11:41:32]line [11:41:32]written 0, free lines is 3211 [11:41:32]MH_Cut [11:41:32]Write to MH i2c: D1 01 00 07 4C 01 25 [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: D1 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: D1 01 00 [11:41:32]MH_I2C_Read... [11:41:32]Read from MH i2c: D1 01 00 07 4C 00 24 [11:41:32]Write to MH i2c: 01 00 00 08 4C 54 [11:41:32]Write i2c OK [11:41:32]MH_I2C_Read... [11:41:33]*** Cut start [11:41:33]*** Partial cut [11:41:33]*** CUTSNS_PIN = 1 [11:41:33]*** CUTSNS_PIN = 0 [11:41:34]*** Brake cut motor [11:41:34]Read from MH i2c: 01 [11:41:34]MH_I2C_Read... [11:41:34]*** Stop cut motor [11:41:34]*** Cut end [11:41:34]Read from MH i2c: 01 07 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: 01 07 00 08 4C 00 00 00 00 00 FF 0F 69 [11:41:34]process_action close_receipt done [11:41:34]requested_data is exist [11:41:34]produce_requested_data [11:41:34]requested_item fm.sn is exist - process it [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 11 00 00 [11:41:34]Write to MH i2c: E2 08 00 09 4C 80 11 00 00 00 00 00 00 CF [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 17 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 17 00 09 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [11:41:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:41:34]wFMCommunicate OK [11:41:34]requested_item fd.num is exist - process it [11:41:34]SAM_PROTO_GetFieldsCounters [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 13 00 00 [11:41:34]Write to MH i2c: E2 08 00 0A 4C 80 13 00 00 00 00 00 00 D2 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 62 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 62 00 0A 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 9B [11:41:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F4 00 00 00 5E 04 04 00 F4 00 00 00 57 04 04 00 F5 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_GetFieldsCounters done [11:41:34]requested_item shift.num is exist - process it [11:41:34]requested_item shift.opened is exist - process it [11:41:34]req_shift_opened [11:41:34]FM_GetShiftState [11:41:34]SAM_PROTO_GetShiftState [11:41:34]wFMCommunicate request_size=4 [11:41:34]MH_SAM_APDU [11:41:34]CAPDU: 80 13 01 00 [11:41:34]Write to MH i2c: E2 08 00 0B 4C 80 13 01 00 00 00 00 00 D4 [11:41:34]Write i2c OK [11:41:34]MH_I2C_Read... [11:41:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:41:34]Read from MH i2c: E2 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0E 00 [11:41:34]MH_I2C_Read... [11:41:34]Read from MH i2c: E2 0E 00 0B 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C9 [11:41:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:41:34]wFMCommunicate OK [11:41:34]SAM_PROTO_GetShiftState done [11:41:34]FM_GetShiftState done [11:41:34]req_shift_opened done [11:41:34]requested_item shift.open_date is exist - process it [11:41:34]req_shift_open_date [11:41:34]req_shift_open_date done [11:41:34]produce_requested_data done [11:41:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188215,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:41:34]process_action_free close_receipt [11:41:34]json_value_free [11:41:34]json_value_free done [11:41:34]process_json_proto returns [11:41:34]Send response to host [11:41:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188215,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:41:34]free response buf [11:41:34]execute_script done [11:41:34]execute_script returns [11:41:34]free content buf [11:41:34]Sock 8.Close socket [11:41:34]Sock 8.Thread stoped [11:42:02]ConnectInit Can't connect to host [11:42:02]CommunicateWithHost connect error [11:42:02]CommunicateWithHost err = -1 [11:42:02]OFD Sender: Server communicate error [11:42:02]OFD Sender: Processing packet 188213 [packets to send 1064, broken 1061] [11:42:02]ProducePacketName [11:42:02]name=ofd_packets/00188213 [11:42:02]OFD Sender: To server: pG, [11:42:02]CommunicateWithHost lk.salyk.kg:30040 [11:42:02]ConnectInit lk.salyk.kg [11:42:02]Connected sock=8 [11:42:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 DF 47 04 01 03 2A 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6F 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6F 57 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 00 00 00 F4 03 04 00 06 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DF 02 00 35 04 06 00 69 52 3F BD A9 E4 07 E0 87 55 45 6F BF 0B [11:42:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 ED 47 00 34 F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 DF 02 00 F4 03 04 00 79 39 17 67 B6 04 01 00 00 16 91 2C 5F 0D A6 60 45 [11:42:03]CommunicateWithHost err = 0 [11:42:03]CheckOFDResponse [11:42:03]1017 (14) - 77093643461234 [11:42:03]1041 (16) - 0000000000965340 [11:42:03]1040 (4) - 188213 [11:42:03]1012 (4) - 22.10.2024 05:34 [11:42:03]1206 (1) - 0 [11:42:03]OFD Sender: Remove packet 188213 [11:42:03]ProducePacketName [11:42:03]name=ofd_packets/00188213 [11:42:03]NVStorageDeleteData [11:42:03]OFD Sender: Processing packet 188214 [packets to send 1063, broken 1061] [11:42:03]ProducePacketName [11:42:03]name=ofd_packets/00188214 [11:42:03]OFD Sender: To server: pG, [11:42:03]CommunicateWithHost lk.salyk.kg:30040 [11:42:03]ConnectInit lk.salyk.kg [11:42:03]Connected sock=8 [11:42:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 57 A5 07 01 AD D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 00 00 00 F4 03 04 00 2C 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DF 02 00 35 04 06 00 6F 7F 5F C1 FE 66 81 8C 4B 93 FC F1 4C 8B [11:42:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EF 5C 47 00 00 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 DF 02 00 F4 03 04 00 7A 39 17 67 B6 04 01 00 00 10 2D 74 D4 0B 7D 96 3A [11:42:04]CommunicateWithHost err = 0 [11:42:04]CheckOFDResponse [11:42:04]1017 (14) - 77093643461234 [11:42:04]1041 (16) - 0000000000965340 [11:42:04]1040 (4) - 188214 [11:42:04]1012 (4) - 22.10.2024 05:34 [11:42:04]1206 (1) - 0 [11:42:04]OFD Sender: Remove packet 188214 [11:42:04]ProducePacketName [11:42:04]name=ofd_packets/00188214 [11:42:04]NVStorageDeleteData [11:42:04]OFD Sender: Processing packet 188215 [packets to send 1062, broken 1061] [11:42:04]ProducePacketName [11:42:04]name=ofd_packets/00188215 [11:42:04]OFD Sender: To server: pG, [11:42:04]CommunicateWithHost lk.salyk.kg:30040 [11:42:04]ConnectInit lk.salyk.kg [11:42:05]Connected sock=10 [11:42:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A5 B5 07 01 A1 2B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F4 00 00 00 F4 03 04 00 6D 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 DF 02 00 35 04 06 00 C1 43 C6 00 E3 00 F9 CB E5 EB 65 14 8E 7E [11:42:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BD A8 47 00 94 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 39 36 35 33 34 30 10 04 04 00 37 DF 02 00 F4 03 04 00 7C 39 17 67 B6 04 01 00 00 99 A3 ED 29 89 6B BF 6D [11:42:05]CommunicateWithHost err = 0 [11:42:05]CheckOFDResponse [11:42:05]1017 (14) - 77093643461234 [11:42:05]1041 (16) - 0000000000965340 [11:42:05]1040 (4) - 188215 [11:42:05]1012 (4) - 22.10.2024 05:34 [11:42:05]1206 (1) - 0 [11:42:05]OFD Sender: Remove packet 188215 [11:42:05]ProducePacketName [11:42:05]name=ofd_packets/00188215 [11:42:05]NVStorageDeleteData [11:42:06]OFD Sender: No OFD packet to send [11:42:11]OFD Sender: No OFD packet to send [11:42:16]OFD Sender: No OFD packet to send [11:42:19]accept exits with 9 [11:42:19]New connection [11:42:19]New thread 3067198820 created [11:42:19]Thread 3067055460 joined [11:42:19]Waiting for new connection... [11:42:19] Sock 9.Parse request [11:42:19]Sock 9.Check first char [11:42:19]Sock 9.First char is OK [11:42:19]request: POST /json_proto HTTP/1.0 [11:42:19]Method: POST [11:42:19]URL: /json_proto [11:42:19]Method is POST - this is cgi request [11:42:19]url: /json_proto [11:42:19]query_string will be loaded in cgi processing [11:42:19]execute_cgi json_proto POST (null) [11:42:19]execute_cgi path=json_proto method=POST [11:42:19]POST find Content-Length [11:42:19]Host: 172.17.42.131:8080 [11:42:19]Content-Length: 810 [11:42:19]Content-Type: application/json [11:42:19] [11:42:19]POST finish read [11:42:19]Found Content-Length = 810 [11:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:19]execute_script... [11:42: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)210265", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 123.060, "sum" : 9500.23, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9500.23 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:19]POST & json_proto [11:42:19]process_json_proto [11:42:19]json parsed OK: [11:42:19]protocol is kg_v1.0 [11:42:19]action value=close_receipt [11:42:19]process_action close_receipt [11:42:19]cmd_close_receipt [11:42:19]MH_GetDate [11:42:19]Write to MH i2c: F0 00 00 0C 4C 47 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: F0 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: F0 09 00 [11:42:19]MH_I2C_Read... [11:42:19]Read from MH i2c: F0 09 00 0C 4C 00 9F 8F 17 67 A0 18 CA 66 E4 [11:42:19]GetLastDocTimeStamp 1729597293 [11:42:19]current date 1729597343 [11:42:19]FM_GetShiftState [11:42:19]SAM_PROTO_GetShiftState [11:42:19]wFMCommunicate request_size=4 [11:42:19]MH_SAM_APDU [11:42:19]CAPDU: 80 13 01 00 [11:42:19]Write to MH i2c: E2 08 00 0D 4C 80 13 01 00 00 00 00 00 D6 [11:42:19]Write i2c OK [11:42:19]MH_I2C_Read... [11:42:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:20]Read from MH i2c: E2 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 0E 00 [11:42:20]MH_I2C_Read... [11:42:20]Read from MH i2c: E2 0E 00 0D 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CB [11:42:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:42:20]wFMCommunicate OK [11:42:20]SAM_PROTO_GetShiftState done [11:42:20]FM_GetShiftState done [11:42:20]opened in 1729556094 [11:42:20]opened+sec_in_day 1729642494 [11:42:20]quantity*price = 950023 [11:42:20]sum+1 = 950024 [11:42:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9500.23 НСП 1% : 84.07 НДС 12% : 1008.87 Наличными: 0.00 Безнал.: 9500.23 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 245 22.10.2024 11:42 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188216 ФПД: 59702744043197 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114223&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188216&fm=59702744043197&tin=02508201610067®Number=0000000000100030&sum=950023 [11:42:21]StoreToDocumentArchive [11:42:21]shift 461 fd 188216 [11:42:21]save to /storage/0461/doc_00188216 [11:42:21]save last doc name /storage/0461/doc_00188216 to /storage/kkm_last_doc_name [11:42:21]save OK [11:42:21]Clear old archive folders... [11:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:42:21]tlvbuf is 01CE4500 [11:42:21]SAM_PROTO_ClearQueue [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 09 00 00 [11:42:21]Write to MH i2c: E2 08 00 1A 4C 80 09 00 00 00 00 00 00 D8 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 1A 4C 00 90 00 DA [11:42:21]RAPDU: 90 00 [11:42:21]wFMCommunicate OK [11:42:21]SAM_PROTO_ClearQueue done [11:42:21]KKMCreateOFDPacket [11:42:21]OFDProtocolAddRootSTLVToBuf [11:42:21]FM_MakeSignedData [11:42:21]FM_MakeSignedData [11:42:21]SAM_PROTO_SignData [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 0D 01 02 [11:42:21]Write to MH i2c: E2 08 00 1B 4C 80 0D 01 02 00 00 00 00 E0 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 1B 4C 00 90 00 DB [11:42:21]RAPDU: 90 00 [11:42:21]wFMCommunicate OK [11:42:21]wFMCommunicate request_size=255 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9F 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DF 02 [11:42:21]Write to MH i2c: E2 02 01 1C 4C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9F 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DF 02 00 00 13 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 1C 4C 00 90 00 DC [11:42:21]RAPDU: 90 00 [11:42:21]wFMCommunicate OK [11:42:21]wFMCommunicate request_size=16 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 36 4C A0 D9 CE BD [11:42:21]Write to MH i2c: E2 13 00 1D 4C 80 0D 02 02 0B 00 00 35 04 06 00 36 4C A0 D9 CE BD 00 00 BE [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 03 00 1D 4C 00 90 00 DD [11:42:21]RAPDU: 90 00 [11:42:21]wFMCommunicate OK [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 0D 03 02 [11:42:21]Write to MH i2c: E2 08 00 1E 4C 80 0D 03 02 00 00 00 00 E5 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:21]OFD Sender: No OFD packet to send [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 0B 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 0B 00 1E 4C 00 73 B9 6F 5A 43 63 CF 23 90 00 73 [11:42:21]RAPDU: 73 B9 6F 5A 43 63 CF 23 90 00 [11:42:21]wFMCommunicate OK [11:42:21]SAM_PROTO_SignData done [11:42:21]FM_MakeSignedData done [11:42:21]CreateOFDProtocolMessage [11:42:21]wFMCommunicate request_size=4 [11:42:21]MH_SAM_APDU [11:42:21]CAPDU: 80 11 00 00 [11:42:21]Write to MH i2c: E2 08 00 1F 4C 80 11 00 00 00 00 00 00 E5 [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:21]Read from MH i2c: E2 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: E2 17 00 1F 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [11:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:42:21]wFMCommunicate OK [11:42:21]CreateOFDProtocolMessage done [11:42:21]OFDSenderStorePacket 188216 [11:42:21]StoreOFDPacket docnum=188216 [11:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B8 A9 0D 01 89 16 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9F 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DF 02 00 35 04 06 00 36 4C A0 D9 CE BD 73 B9 6F 5A 43 63 CF 23 [11:42:21]CheckFolder [11:42:21]dirname=/storage/ofd_packets [11:42:21]CheckFolder done [11:42:21]ProducePacketName [11:42:21]name=ofd_packets/00188216 [11:42:21]NVStorageSaveData ofd_packets/00188216 [11:42:21]File name is /storage/ofd_packets/00188216 [11:42:21]Write 307 bytes [11:42:21]NVStorageSaveData done [11:42:21]OFDSenderStorePacket done [11:42:21]KKMCreateOFDPacket done [11:42:21]NVStorageSaveData kkm_last_timestamp [11:42:21]File name is /storage/kkm_last_timestamp [11:42:21]Write 4 bytes [11:42:21]NVStorageSaveData done [11:42:21]ExternCall_PrintAddStr [11:42:21]wPrintStart [11:42:21]Write to MH i2c: 01 00 00 20 4C 6C [11:42:21]Write i2c OK [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 [11:42:21]MH_I2C_Read... [11:42:21]Read from MH i2c: 01 07 00 20 4C 00 00 00 00 00 FF 0F 81 [11:42:21]RasterBufferAndPrint [11:42:21]line Счет N : (1)210265 [11:42:21]line ИНН: 02508201610067 [11:42:21]line Контрольно-Кассовый Чек [11:42:21]line ПРОДАЖА [11:42:21]line ТРК (МРК, ГНК) : 11 [11:42:21]line Товар: 2710194210 [11:42:21]line D-ENERGY ДТ-К-5 [11:42:21]line 123.060 * 77.20 [11:42:21]line = 9500.23 [11:42:21]line НДС 12% НСП 1% [11:42:21]line > о реализуемом товаре [11:42:21]line ИТОГО: 9500.23 [11:42:21]line НСП 1% : 84.07 [11:42:21]line НДС 12% : 1008.87 [11:42:21]line Наличными: 0.00 [11:42:21]line Безнал.: 9500.23 [11:42:21]line Место: АЗС № 86 "Партнер Нефть" [11:42:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:42:21]line СНО: Общий режим [11:42:21]line Чек 245 22.10.2024 11:42 [11:42:21]line Смена: 461 ФФД: 1.0 [11:42:21]line ЗНМ: 0300000155 [11:42:21]line РНМ: 0000000000100030 [11:42:21]line Версия ККМ: 001 [11:42:21]line Платежная система: O! деньги [11:42:21]line ФМ: 0000000000965340 [11:42:21]line ФД: 188216 [11:42:21]line ФПД: 59702744043197 [11:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114223&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188216&fm=59702744043197&tin=02508201610067®Number=0000000000100030&sum=950023 [11:42:21]written 0, free lines is 4095 [11:42:21]OFD Sender: Processing packet 188216 [packets to send 1062, broken 1061] [11:42:21]ProducePacketName [11:42:21]name=ofd_packets/00188216 [11:42:21]OFD Sender: To server: pG, [11:42:21]CommunicateWithHost lk.salyk.kg:30040 [11:42:21]ConnectInit lk.salyk.kg [11:42:22]Write to MH i2c: 01 00 00 4A 4C 96 [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: 01 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: 01 07 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: 01 07 00 4A 4C 00 00 00 00 00 84 0C 2D [11:42:22]RasterBufferAndPrint [11:42:22]line [11:42:22]line [11:42:22]line [11:42:22]line [11:42:22]line [11:42:22]written 0, free lines is 3207 [11:42:22]MH_Cut [11:42:22]Write to MH i2c: D1 01 00 51 4C 01 6F [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: D1 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: D1 01 00 [11:42:22]MH_I2C_Read... [11:42:22]Read from MH i2c: D1 01 00 51 4C 00 6E [11:42:22]Write to MH i2c: 01 00 00 52 4C 9E [11:42:22]Write i2c OK [11:42:22]MH_I2C_Read... [11:42:22]Connected sock=10 [11:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B8 A9 0D 01 89 16 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E0 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 07 7F 0E 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 07 7F 0E 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 20 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 17 8A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 07 7F 0E 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 00 00 00 F4 03 04 00 9F 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DF 02 00 35 04 06 00 36 4C A0 D9 CE BD 73 B9 6F 5A 43 63 CF 23 [11:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 39 47 00 C2 C3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 DF 02 00 F4 03 04 00 8C 39 17 67 B6 04 01 00 00 92 F6 75 16 81 34 A7 BE [11:42:22]CommunicateWithHost err = 0 [11:42:22]CheckOFDResponse [11:42:22]1017 (14) - 77093643461234 [11:42:22]1041 (16) - 0000000000965340 [11:42:22]1040 (4) - 188216 [11:42:22]1012 (4) - 22.10.2024 05:35 [11:42:22]1206 (1) - 0 [11:42:22]OFD Sender: Remove packet 188216 [11:42:22]ProducePacketName [11:42:22]name=ofd_packets/00188216 [11:42:22]NVStorageDeleteData [11:42:23]OFD Sender: No OFD packet to send [11:42:23]*** Cut start [11:42:23]*** Partial cut [11:42:23]*** CUTSNS_PIN = 1 [11:42:23]*** CUTSNS_PIN = 0 [11:42:23]*** Brake cut motor [11:42:23]Read from MH i2c: 01 [11:42:23]MH_I2C_Read... [11:42:23]*** Stop cut motor [11:42:23]Read from MH i2c: 01 07 00 [11:42:23]MH_I2C_Read... [11:42:23]*** Cut end [11:42:23]Read from MH i2c: 01 07 00 52 4C 00 00 00 00 00 FF 0F B3 [11:42:23]process_action close_receipt done [11:42:23]requested_data is exist [11:42:23]produce_requested_data [11:42:23]requested_item fm.sn is exist - process it [11:42:23]wFMCommunicate request_size=4 [11:42:23]MH_SAM_APDU [11:42:23]CAPDU: 80 11 00 00 [11:42:23]Write to MH i2c: E2 08 00 53 4C 80 11 00 00 00 00 00 00 19 [11:42:23]Write i2c OK [11:42:23]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 17 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 17 00 53 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [11:42:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:42:24]wFMCommunicate OK [11:42:24]requested_item fd.num is exist - process it [11:42:24]SAM_PROTO_GetFieldsCounters [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 13 00 00 [11:42:24]Write to MH i2c: E2 08 00 54 4C 80 13 00 00 00 00 00 00 1C [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 62 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 62 00 54 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 E9 [11:42:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F5 00 00 00 5E 04 04 00 F5 00 00 00 57 04 04 00 F6 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:24]wFMCommunicate OK [11:42:24]SAM_PROTO_GetFieldsCounters done [11:42:24]requested_item shift.num is exist - process it [11:42:24]requested_item shift.opened is exist - process it [11:42:24]req_shift_opened [11:42:24]FM_GetShiftState [11:42:24]SAM_PROTO_GetShiftState [11:42:24]wFMCommunicate request_size=4 [11:42:24]MH_SAM_APDU [11:42:24]CAPDU: 80 13 01 00 [11:42:24]Write to MH i2c: E2 08 00 55 4C 80 13 01 00 00 00 00 00 1E [11:42:24]Write i2c OK [11:42:24]MH_I2C_Read... [11:42:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:24]Read from MH i2c: E2 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 0E 00 [11:42:24]MH_I2C_Read... [11:42:24]Read from MH i2c: E2 0E 00 55 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 13 [11:42:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:42:24]wFMCommunicate OK [11:42:24]SAM_PROTO_GetShiftState done [11:42:24]FM_GetShiftState done [11:42:24]req_shift_opened done [11:42:24]requested_item shift.open_date is exist - process it [11:42:24]req_shift_open_date [11:42:24]req_shift_open_date done [11:42:24]produce_requested_data done [11:42:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188216,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:42:24]process_action_free close_receipt [11:42:24]json_value_free [11:42:24]json_value_free done [11:42:24]process_json_proto returns [11:42:24]Send response to host [11:42:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188216,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:42:24]free response buf [11:42:24]execute_script done [11:42:24]execute_script returns [11:42:24]free content buf [11:42:24]Sock 9.Close socket [11:42:24]Sock 9.Thread stoped [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:38]accept exits with 8 [11:42:38]New connection [11:42:38]New thread 3067055460 created [11:42:38]Thread 3067198820 joined [11:42:38]Waiting for new connection... [11:42:38] Sock 8.Parse request [11:42:38]Sock 8.Check first char [11:42:38]Sock 8.First char is OK [11:42:38]request: POST /json_proto HTTP/1.0 [11:42:38]Method: POST [11:42:38]URL: /json_proto [11:42:38]Method is POST - this is cgi request [11:42:38]url: /json_proto [11:42:38]query_string will be loaded in cgi processing [11:42:38]execute_cgi json_proto POST (null) [11:42:38]execute_cgi path=json_proto method=POST [11:42:38]POST find Content-Length [11:42:38]Host: 172.17.42.131:8080 [11:42:38]Content-Length: 800 [11:42:38]Content-Type: application/json [11:42:38] [11:42:38]POST finish read [11:42:38]Found Content-Length = 800 [11:42:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908547", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:38]execute_script... [11:42: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)210271", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3908547", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:42:38]POST & json_proto [11:42:38]process_json_proto [11:42:38]json parsed OK: [11:42:38]protocol is kg_v1.0 [11:42:38]action value=close_receipt [11:42:38]process_action close_receipt [11:42:38]cmd_close_receipt [11:42:38]MH_GetDate [11:42:38]Write to MH i2c: F0 00 00 56 4C 91 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: F0 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: F0 09 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: F0 09 00 56 4C 00 B2 8F 17 67 A0 18 CA 66 41 [11:42:38]GetLastDocTimeStamp 1729597343 [11:42:38]current date 1729597362 [11:42:38]FM_GetShiftState [11:42:38]SAM_PROTO_GetShiftState [11:42:38]wFMCommunicate request_size=4 [11:42:38]MH_SAM_APDU [11:42:38]CAPDU: 80 13 01 00 [11:42:38]Write to MH i2c: E2 08 00 57 4C 80 13 01 00 00 00 00 00 20 [11:42:38]Write i2c OK [11:42:38]MH_I2C_Read... [11:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:38]Read from MH i2c: E2 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0E 00 [11:42:38]MH_I2C_Read... [11:42:38]Read from MH i2c: E2 0E 00 57 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [11:42:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:42:38]wFMCommunicate OK [11:42:38]SAM_PROTO_GetShiftState done [11:42:38]FM_GetShiftState done [11:42:38]opened in 1729556094 [11:42:38]opened+sec_in_day 1729642494 [11:42:38]quantity*price = 0 [11:42:38]sum+1 = 1 [11:42:38]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 246 22.10.2024 11:42 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3908547 ФМ: 0000000000965340 ФД: 188217 ФПД: 140884476844568 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114242&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188217&fm=140884476844568&tin=02508201610067®Number=0000000000100030&sum=0 [11:42:40]StoreToDocumentArchive [11:42:40]shift 461 fd 188217 [11:42:40]save to /storage/0461/doc_00188217 [11:42:40]save last doc name /storage/0461/doc_00188217 to /storage/kkm_last_doc_name [11:42:40]save OK [11:42:40]Clear old archive folders... [11:42:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:42:40]tlvbuf is 01CAA2F0 [11:42:40]SAM_PROTO_ClearQueue [11:42:40]wFMCommunicate request_size=4 [11:42:40]MH_SAM_APDU [11:42:40]CAPDU: 80 09 00 00 [11:42:40]Write to MH i2c: E2 08 00 64 4C 80 09 00 00 00 00 00 00 22 [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 64 4C 00 90 00 24 [11:42:40]RAPDU: 90 00 [11:42:40]wFMCommunicate OK [11:42:40]SAM_PROTO_ClearQueue done [11:42:40]KKMCreateOFDPacket [11:42:40]OFDProtocolAddRootSTLVToBuf [11:42:40]FM_MakeSignedData [11:42:40]FM_MakeSignedData [11:42:40]SAM_PROTO_SignData [11:42:40]wFMCommunicate request_size=4 [11:42:40]MH_SAM_APDU [11:42:40]CAPDU: 80 0D 01 02 [11:42:40]Write to MH i2c: E2 08 00 65 4C 80 0D 01 02 00 00 00 00 2A [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 65 4C 00 90 00 25 [11:42:40]RAPDU: 90 00 [11:42:40]wFMCommunicate OK [11:42:40]wFMCommunicate request_size=255 [11:42:40]MH_SAM_APDU [11:42: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B2 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DF 02 00 35 04 06 00 80 [11:42:40]Write to MH i2c: E2 02 01 66 4C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B2 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DF 02 00 35 04 06 00 80 00 00 6C [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 66 4C 00 90 00 26 [11:42:40]RAPDU: 90 00 [11:42:40]wFMCommunicate OK [11:42:40]wFMCommunicate request_size=10 [11:42:40]MH_SAM_APDU [11:42:40]CAPDU: 80 0D 02 02 05 22 39 32 5A 18 [11:42:40]Write to MH i2c: E2 0D 00 67 4C 80 0D 02 02 05 00 22 39 32 5A 18 00 00 36 [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 03 00 67 4C 00 90 00 27 [11:42:40]RAPDU: 90 00 [11:42:40]wFMCommunicate OK [11:42:40]wFMCommunicate request_size=4 [11:42:40]MH_SAM_APDU [11:42:40]CAPDU: 80 0D 03 02 [11:42:40]Write to MH i2c: E2 08 00 68 4C 80 0D 03 02 00 00 00 00 2F [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 0B 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 0B 00 68 4C 00 D9 92 4C B7 C1 65 08 3A 90 00 06 [11:42:40]RAPDU: D9 92 4C B7 C1 65 08 3A 90 00 [11:42:40]wFMCommunicate OK [11:42:40]SAM_PROTO_SignData done [11:42:40]FM_MakeSignedData done [11:42:40]CreateOFDProtocolMessage [11:42:40]wFMCommunicate request_size=4 [11:42:40]MH_SAM_APDU [11:42:40]CAPDU: 80 11 00 00 [11:42:40]Write to MH i2c: E2 08 00 69 4C 80 11 00 00 00 00 00 00 2F [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:40]Read from MH i2c: E2 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 17 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: E2 17 00 69 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [11:42:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:42:40]wFMCommunicate OK [11:42:40]CreateOFDProtocolMessage done [11:42:40]OFDSenderStorePacket 188217 [11:42:40]StoreOFDPacket docnum=188217 [11:42:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0F 5E 07 01 2D 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B2 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DF 02 00 35 04 06 00 80 22 39 32 5A 18 D9 92 4C B7 C1 65 08 3A [11:42:40]CheckFolder [11:42:40]dirname=/storage/ofd_packets [11:42:40]CheckFolder done [11:42:40]ProducePacketName [11:42:40]name=ofd_packets/00188217 [11:42:40]NVStorageSaveData ofd_packets/00188217 [11:42:40]File name is /storage/ofd_packets/00188217 [11:42:40]Write 301 bytes [11:42:40]NVStorageSaveData done [11:42:40]OFDSenderStorePacket done [11:42:40]KKMCreateOFDPacket done [11:42:40]NVStorageSaveData kkm_last_timestamp [11:42:40]File name is /storage/kkm_last_timestamp [11:42:40]Write 4 bytes [11:42:40]NVStorageSaveData done [11:42:40]ExternCall_PrintAddStr [11:42:40]wPrintStart [11:42:40]Write to MH i2c: 01 00 00 6A 4C B6 [11:42:40]Write i2c OK [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: 01 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: 01 07 00 [11:42:40]MH_I2C_Read... [11:42:40]Read from MH i2c: 01 07 00 6A 4C 00 00 00 00 00 FF 0F CB [11:42:40]RasterBufferAndPrint [11:42:40]line Счет N : (1)210271 [11:42:40]line ИНН: 02508201610067 [11:42:40]line Контрольно-Кассовый Чек [11:42:40]line ПРОДАЖА [11:42:40]line ТРК (МРК, ГНК) : 42 [11:42:40]line Товар: 2710124130 [11:42:40]line Аи-92-К-3 [11:42:40]line 10.000 * 0.00 [11:42:40]line = 0.00 [11:42:40]line НДС 12% НСП 1% [11:42:40]line > о реализуемом товаре [11:42:40]line ИТОГО: 0.00 [11:42:40]line НСП 1% : 0.00 [11:42:40]line НДС 12% : 0.00 [11:42:40]line Наличными: 0.00 [11:42:40]line Безнал.: 0.00 [11:42:40]line Место: АЗС № 86 "Партнер Нефть" [11:42:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:42:40]line СНО: Общий режим [11:42:40]line Чек 246 22.10.2024 11:42 [11:42:40]line Смена: 461 ФФД: 1.0 [11:42:40]line ЗНМ: 0300000155 [11:42:40]line РНМ: 0000000000100030 [11:42:40]line Версия ККМ: 001 [11:42:40]line Талоны: Топливные Талоны [11:42:40]line 3908547 [11:42:40]line ФМ: 0000000000965340 [11:42:40]line ФД: 188217 [11:42:40]line ФПД: 140884476844568 [11:42:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114242&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188217&fm=140884476844568&tin=02508201610067®Number=0000000000100030&sum=0 [11:42:40]written 0, free lines is 4095 [11:42:40]OFD Sender: Processing packet 188217 [packets to send 1062, broken 1061] [11:42:40]ProducePacketName [11:42:40]name=ofd_packets/00188217 [11:42:40]OFD Sender: To server: pG, [11:42:40]CommunicateWithHost lk.salyk.kg:30040 [11:42:40]ConnectInit lk.salyk.kg [11:42:40]Connected sock=9 [11:42:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0F 5E 07 01 2D 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 00 00 00 F4 03 04 00 B2 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DF 02 00 35 04 06 00 80 22 39 32 5A 18 D9 92 4C B7 C1 65 08 3A [11:42:41]Write to MH i2c: 01 00 00 94 4C E0 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 07 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: 01 07 00 94 4C 00 00 00 00 00 92 0C 85 [11:42:41]RasterBufferAndPrint [11:42:41]line [11:42:41]line [11:42:41]line [11:42:41]line [11:42:41]line [11:42:41]written 0, free lines is 3222 [11:42:41]MH_Cut [11:42:41]Write to MH i2c: D1 01 00 9B 4C 01 B9 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: D1 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: D1 01 00 [11:42:41]MH_I2C_Read... [11:42:41]Read from MH i2c: D1 01 00 9B 4C 00 B8 [11:42:41]Write to MH i2c: 01 00 00 9C 4C E8 [11:42:41]Write i2c OK [11:42:41]MH_I2C_Read... [11:42:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1E 2F 47 00 08 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 DF 02 00 F4 03 04 00 9F 39 17 67 B6 04 01 00 00 F7 44 6E BA 78 26 B5 1D [11:42:41]CommunicateWithHost err = 0 [11:42:41]CheckOFDResponse [11:42:41]1017 (14) - 77093643461234 [11:42:41]1041 (16) - 0000000000965340 [11:42:41]1040 (4) - 188217 [11:42:41]1012 (4) - 22.10.2024 05:35 [11:42:41]1206 (1) - 0 [11:42:41]OFD Sender: Remove packet 188217 [11:42:41]ProducePacketName [11:42:41]name=ofd_packets/00188217 [11:42:41]NVStorageDeleteData [11:42:42]OFD Sender: No OFD packet to send [11:42:42]*** Cut start [11:42:42]*** Partial cut [11:42:42]*** CUTSNS_PIN = 1 [11:42:42]*** CUTSNS_PIN = 0 [11:42:42]*** Brake cut motor [11:42:42]Read from MH i2c: 01 [11:42:42]MH_I2C_Read... [11:42:42]*** Stop cut motor [11:42:42]*** Cut end [11:42:42]Read from MH i2c: 01 07 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: 01 07 00 9C 4C 00 00 00 00 00 FF 0F FD [11:42:42]process_action close_receipt done [11:42:42]requested_data is exist [11:42:42]produce_requested_data [11:42:42]requested_item fm.sn is exist - process it [11:42:42]wFMCommunicate request_size=4 [11:42:42]MH_SAM_APDU [11:42:42]CAPDU: 80 11 00 00 [11:42:42]Write to MH i2c: E2 08 00 9D 4C 80 11 00 00 00 00 00 00 63 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:42]Read from MH i2c: E2 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 17 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 17 00 9D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [11:42:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:42:42]wFMCommunicate OK [11:42:42]requested_item fd.num is exist - process it [11:42:42]SAM_PROTO_GetFieldsCounters [11:42:42]wFMCommunicate request_size=4 [11:42:42]MH_SAM_APDU [11:42:42]CAPDU: 80 13 00 00 [11:42:42]Write to MH i2c: E2 08 00 9E 4C 80 13 00 00 00 00 00 00 66 [11:42:42]Write i2c OK [11:42:42]MH_I2C_Read... [11:42:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:42:42]Read from MH i2c: E2 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 62 00 [11:42:42]MH_I2C_Read... [11:42:42]Read from MH i2c: E2 62 00 9E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [11:42:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F6 00 00 00 5E 04 04 00 F6 00 00 00 57 04 04 00 F7 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:42:42]wFMCommunicate OK [11:42:42]SAM_PROTO_GetFieldsCounters done [11:42:42]requested_item shift.num is exist - process it [11:42:42]requested_item shift.opened is exist - process it [11:42:42]req_shift_opened [11:42:42]FM_GetShiftState [11:42:42]SAM_PROTO_GetShiftState [11:42:42]wFMCommunicate request_size=4 [11:42:42]MH_SAM_APDU [11:42:42]CAPDU: 80 13 01 00 [11:42:42]Write to MH i2c: E2 08 00 9F 4C 80 13 01 00 00 00 00 00 68 [11:42:43]Write i2c OK [11:42:43]MH_I2C_Read... [11:42:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:43]Read from MH i2c: E2 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 0E 00 [11:42:43]MH_I2C_Read... [11:42:43]Read from MH i2c: E2 0E 00 9F 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5D [11:42:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:42:43]wFMCommunicate OK [11:42:43]SAM_PROTO_GetShiftState done [11:42:43]FM_GetShiftState done [11:42:43]req_shift_opened done [11:42:43]requested_item shift.open_date is exist - process it [11:42:43]req_shift_open_date [11:42:43]req_shift_open_date done [11:42:43]produce_requested_data done [11:42:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188217,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:42:43]process_action_free close_receipt [11:42:43]json_value_free [11:42:43]json_value_free done [11:42:43]process_json_proto returns [11:42:43]Send response to host [11:42:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188217,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:42:43]free response buf [11:42:43]execute_script done [11:42:43]execute_script returns [11:42:43]free content buf [11:42:43]Sock 8.Close socket [11:42:43]Sock 8.Thread stoped [11:42:47]OFD Sender: No OFD packet to send [11:42:52]OFD Sender: No OFD packet to send [11:42:57]accept exits with 10 [11:42:57]New connection [11:42:57]New thread 3067198820 created [11:42:57]Thread 3067055460 joined [11:42:57]Waiting for new connection... [11:42:57] Sock 10.Parse request [11:42:57]Sock 10.Check first char [11:42:57]Sock 10.First char is OK [11:42:57]request: POST /json_proto HTTP/1.0 [11:42:57]Method: POST [11:42:57]URL: /json_proto [11:42:57]Method is POST - this is cgi request [11:42:57]url: /json_proto [11:42:57]query_string will be loaded in cgi processing [11:42:57]execute_cgi json_proto POST (null) [11:42:57]execute_cgi path=json_proto method=POST [11:42:57]POST find Content-Length [11:42:57]Host: 172.17.42.131:8080 [11:42:57]Content-Length: 679 [11:42:57]Content-Type: application/json [11:42:57] [11:42:57]POST finish read [11:42:57]Found Content-Length = 679 [11:42:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:42:57]execute_script... [11:42: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)210272", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:42:57]POST & json_proto [11:42:57]process_json_proto [11:42:57]json parsed OK: [11:42:57]protocol is kg_v1.0 [11:42:57]action value=close_receipt [11:42:57]process_action close_receipt [11:42:57]cmd_close_receipt [11:42:57]MH_GetDate [11:42:57]Write to MH i2c: F0 00 00 A0 4C DB [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: F0 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: F0 09 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: F0 09 00 A0 4C 00 C4 8F 17 67 A0 18 CA 66 9D [11:42:57]GetLastDocTimeStamp 1729597362 [11:42:57]current date 1729597380 [11:42:57]FM_GetShiftState [11:42:57]SAM_PROTO_GetShiftState [11:42:57]wFMCommunicate request_size=4 [11:42:57]MH_SAM_APDU [11:42:57]CAPDU: 80 13 01 00 [11:42:57]Write to MH i2c: E2 08 00 A1 4C 80 13 01 00 00 00 00 00 6A [11:42:57]Write i2c OK [11:42:57]MH_I2C_Read... [11:42:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:42:57]Read from MH i2c: E2 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 0E 00 [11:42:57]MH_I2C_Read... [11:42:57]Read from MH i2c: E2 0E 00 A1 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5F [11:42:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:42:57]wFMCommunicate OK [11:42:57]SAM_PROTO_GetShiftState done [11:42:57]FM_GetShiftState done [11:42:57]opened in 1729556094 [11:42:57]opened+sec_in_day 1729642494 [11:42:57]quantity*price = 200025 [11:42:57]sum+1 = 200026 [11:42:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 247 22.10.2024 11:43 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188218 ФПД: 2085604960159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114300&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188218&fm=2085604960159&tin=02508201610067®Number=0000000000100030&sum=200000 [11:42:58]StoreToDocumentArchive [11:42:58]shift 461 fd 188218 [11:42:58]save to /storage/0461/doc_00188218 [11:42:58]save last doc name /storage/0461/doc_00188218 to /storage/kkm_last_doc_name [11:42:58]save OK [11:42:58]Clear old archive folders... [11:42:58]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:42:58]tlvbuf is 01BADA80 [11:42:58]SAM_PROTO_ClearQueue [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 09 00 00 [11:42:58]Write to MH i2c: E2 08 00 AE 4C 80 09 00 00 00 00 00 00 6C [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 AE 4C 00 90 00 6E [11:42:58]RAPDU: 90 00 [11:42:58]wFMCommunicate OK [11:42:58]SAM_PROTO_ClearQueue done [11:42:58]KKMCreateOFDPacket [11:42:58]OFDProtocolAddRootSTLVToBuf [11:42:58]FM_MakeSignedData [11:42:58]FM_MakeSignedData [11:42:58]SAM_PROTO_SignData [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 0D 01 02 [11:42:58]Write to MH i2c: E2 08 00 AF 4C 80 0D 01 02 00 00 00 00 74 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 AF 4C 00 90 00 6F [11:42:58]RAPDU: 90 00 [11:42:58]wFMCommunicate OK [11:42:58]wFMCommunicate request_size=255 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F7 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DF 02 00 35 04 06 00 01 E5 97 BE [11:42:58]Write to MH i2c: E2 02 01 B0 4C 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F7 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DF 02 00 35 04 06 00 01 E5 97 BE 00 00 B9 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 B0 4C 00 90 00 70 [11:42:58]RAPDU: 90 00 [11:42:58]wFMCommunicate OK [11:42:58]wFMCommunicate request_size=7 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 0D 02 02 02 27 9F [11:42:58]Write to MH i2c: E2 0A 00 B1 4C 80 0D 02 02 02 00 27 9F 00 00 41 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 03 00 B1 4C 00 90 00 71 [11:42:58]RAPDU: 90 00 [11:42:58]wFMCommunicate OK [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 0D 03 02 [11:42:58]Write to MH i2c: E2 08 00 B2 4C 80 0D 03 02 00 00 00 00 79 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0B 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 0B 00 B2 4C 00 23 75 1E DB AC 05 7D FF 90 00 38 [11:42:58]RAPDU: 23 75 1E DB AC 05 7D FF 90 00 [11:42:58]wFMCommunicate OK [11:42:58]SAM_PROTO_SignData done [11:42:58]FM_MakeSignedData done [11:42:58]CreateOFDProtocolMessage [11:42:58]wFMCommunicate request_size=4 [11:42:58]MH_SAM_APDU [11:42:58]CAPDU: 80 11 00 00 [11:42:58]Write to MH i2c: E2 08 00 B3 4C 80 11 00 00 00 00 00 00 79 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:42:58]Read from MH i2c: E2 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 17 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: E2 17 00 B3 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C7 [11:42:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:42:58]wFMCommunicate OK [11:42:58]CreateOFDProtocolMessage done [11:42:58]OFDSenderStorePacket 188218 [11:42:58]StoreOFDPacket docnum=188218 [11:42:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C9 13 04 01 99 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F7 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DF 02 00 35 04 06 00 01 E5 97 BE 27 9F 23 75 1E DB AC 05 7D FF [11:42:58]CheckFolder [11:42:58]dirname=/storage/ofd_packets [11:42:58]CheckFolder done [11:42:58]ProducePacketName [11:42:58]name=ofd_packets/00188218 [11:42:58]NVStorageSaveData ofd_packets/00188218 [11:42:58]File name is /storage/ofd_packets/00188218 [11:42:58]Write 298 bytes [11:42:58]NVStorageSaveData done [11:42:58]OFDSenderStorePacket done [11:42:58]KKMCreateOFDPacket done [11:42:58]NVStorageSaveData kkm_last_timestamp [11:42:58]File name is /storage/kkm_last_timestamp [11:42:58]Write 4 bytes [11:42:58]NVStorageSaveData done [11:42:58]ExternCall_PrintAddStr [11:42:58]wPrintStart [11:42:58]Write to MH i2c: 01 00 00 B4 4C 00 [11:42:58]Write i2c OK [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 [11:42:58]MH_I2C_Read... [11:42:58]Read from MH i2c: 01 07 00 B4 4C 00 00 00 00 00 FF 0F 15 [11:42:58]RasterBufferAndPrint [11:42:58]line Счет N : (1)210272 [11:42:58]line ИНН: 02508201610067 [11:42:58]line Контрольно-Кассовый Чек [11:42:58]line ПРОДАЖА [11:42:58]line ТРК (МРК, ГНК) : 51 [11:42:58]line Товар: 2710194210 [11:42:58]line ДТ-К-5 [11:42:58]line 26.250 * 76.20 [11:42:58]line = 2000.25 [11:42:58]line НДС 12% НСП 1% [11:42:58]line > о реализуемом товаре [11:42:58]line ОКРУГЛЕНИЕ: -0.25 [11:42:58]line ИТОГО: 2000.00 [11:42:58]line Внесено: 2000.00 [11:42:58]line СДАЧА: 0.00 [11:42:58]line НСП 1% : 17.70 [11:42:58]line НДС 12% : 212.42 [11:42:58]line Наличными: 2000.00 [11:42:58]line Безнал.: 0.00 [11:42:58]line Место: АЗС № 86 "Партнер Нефть" [11:42:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:42:58]line СНО: Общий режим [11:42:58]line Чек 247 22.10.2024 11:43 [11:42:58]line Смена: 461 ФФД: 1.0 [11:42:58]line ЗНМ: 0300000155 [11:42:58]line РНМ: 0000000000100030 [11:42:58]line Версия ККМ: 001 [11:42:58]line ФМ: 0000000000965340 [11:42:58]line ФД: 188218 [11:42:58]line ФПД: 2085604960159 [11:42:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114300&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188218&fm=2085604960159&tin=02508201610067®Number=0000000000100030&sum=200000 [11:42:58]written 0, free lines is 4095 [11:42:58]OFD Sender: Processing packet 188218 [packets to send 1062, broken 1061] [11:42:58]ProducePacketName [11:42:58]name=ofd_packets/00188218 [11:42:58]OFD Sender: To server: pG, [11:42:58]CommunicateWithHost lk.salyk.kg:30040 [11:42:58]ConnectInit lk.salyk.kg [11:42:59]Connected sock=9 [11:42:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C9 13 04 01 99 5C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F7 00 00 00 F4 03 04 00 C4 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DF 02 00 35 04 06 00 01 E5 97 BE 27 9F 23 75 1E DB AC 05 7D FF [11:42:59]Write to MH i2c: 01 00 00 DF 4C 2B [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 07 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: 01 07 00 DF 4C 00 00 00 00 00 6D 0C AB [11:42:59]RasterBufferAndPrint [11:42:59]line [11:42:59]line [11:42:59]line [11:42:59]line [11:42:59]line [11:42:59]written 0, free lines is 3184 [11:42:59]MH_Cut [11:42:59]Write to MH i2c: D1 01 00 E6 4C 01 04 [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: D1 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: D1 01 00 [11:42:59]MH_I2C_Read... [11:42:59]Read from MH i2c: D1 01 00 E6 4C 00 03 [11:42:59]Write to MH i2c: 01 00 00 E7 4C 33 [11:42:59]Write i2c OK [11:42:59]MH_I2C_Read... [11:42:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 3C 47 00 8D 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A DF 02 00 F4 03 04 00 B1 39 17 67 B6 04 01 00 00 3D 86 94 4E B5 FE 46 4F [11:42:59]CommunicateWithHost err = 0 [11:42:59]CheckOFDResponse [11:42:59]1017 (14) - 77093643461234 [11:42:59]1041 (16) - 0000000000965340 [11:42:59]1040 (4) - 188218 [11:42:59]1012 (4) - 22.10.2024 05:35 [11:42:59]1206 (1) - 0 [11:42:59]OFD Sender: Remove packet 188218 [11:42:59]ProducePacketName [11:42:59]name=ofd_packets/00188218 [11:42:59]NVStorageDeleteData [11:43:00]OFD Sender: No OFD packet to send [11:43:00]*** Cut start [11:43:00]*** Partial cut [11:43:00]*** CUTSNS_PIN = 1 [11:43:00]*** CUTSNS_PIN = 0 [11:43:00]*** Brake cut motor [11:43:01]Read from MH i2c: 01 [11:43:01]MH_I2C_Read... [11:43:01]*** Stop cut motor [11:43:01]*** Cut end [11:43:01]Read from MH i2c: 01 07 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: 01 07 00 E7 4C 00 00 00 00 00 FF 0F 48 [11:43:01]process_action close_receipt done [11:43:01]requested_data is exist [11:43:01]produce_requested_data [11:43:01]requested_item fm.sn is exist - process it [11:43:01]wFMCommunicate request_size=4 [11:43:01]MH_SAM_APDU [11:43:01]CAPDU: 80 11 00 00 [11:43:01]Write to MH i2c: E2 08 00 E8 4C 80 11 00 00 00 00 00 00 AE [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:01]Read from MH i2c: E2 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 17 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 17 00 E8 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [11:43:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:01]wFMCommunicate OK [11:43:01]requested_item fd.num is exist - process it [11:43:01]SAM_PROTO_GetFieldsCounters [11:43:01]wFMCommunicate request_size=4 [11:43:01]MH_SAM_APDU [11:43:01]CAPDU: 80 13 00 00 [11:43:01]Write to MH i2c: E2 08 00 E9 4C 80 13 00 00 00 00 00 00 B1 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:01]Read from MH i2c: E2 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 62 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 62 00 E9 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [11:43:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F7 00 00 00 5E 04 04 00 F7 00 00 00 57 04 04 00 F8 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:01]wFMCommunicate OK [11:43:01]SAM_PROTO_GetFieldsCounters done [11:43:01]requested_item shift.num is exist - process it [11:43:01]requested_item shift.opened is exist - process it [11:43:01]req_shift_opened [11:43:01]FM_GetShiftState [11:43:01]SAM_PROTO_GetShiftState [11:43:01]wFMCommunicate request_size=4 [11:43:01]MH_SAM_APDU [11:43:01]CAPDU: 80 13 01 00 [11:43:01]Write to MH i2c: E2 08 00 EA 4C 80 13 01 00 00 00 00 00 B3 [11:43:01]Write i2c OK [11:43:01]MH_I2C_Read... [11:43:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:01]Read from MH i2c: E2 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 0E 00 [11:43:01]MH_I2C_Read... [11:43:01]Read from MH i2c: E2 0E 00 EA 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A8 [11:43:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:43:01]wFMCommunicate OK [11:43:01]SAM_PROTO_GetShiftState done [11:43:01]FM_GetShiftState done [11:43:01]req_shift_opened done [11:43:01]requested_item shift.open_date is exist - process it [11:43:01]req_shift_open_date [11:43:01]req_shift_open_date done [11:43:01]produce_requested_data done [11:43:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188218,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:43:01]process_action_free close_receipt [11:43:01]json_value_free [11:43:01]json_value_free done [11:43:01]process_json_proto returns [11:43:01]Send response to host [11:43:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188218,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:43:01]free response buf [11:43:01]execute_script done [11:43:01]execute_script returns [11:43:01]free content buf [11:43:01]Sock 10.Close socket [11:43:01]Sock 10.Thread stoped [11:43:05]OFD Sender: No OFD packet to send [11:43:08]accept exits with 8 [11:43:08]New connection [11:43:08]New thread 3067055460 created [11:43:08]Thread 3067198820 joined [11:43:08]Waiting for new connection... [11:43:08] Sock 8.Parse request [11:43:08]Sock 8.Check first char [11:43:08]Sock 8.First char is OK [11:43:08]request: POST /json_proto HTTP/1.0 [11:43:08]Method: POST [11:43:08]URL: /json_proto [11:43:08]Method is POST - this is cgi request [11:43:08]url: /json_proto [11:43:08]query_string will be loaded in cgi processing [11:43:08]execute_cgi json_proto POST (null) [11:43:08]execute_cgi path=json_proto method=POST [11:43:08]POST find Content-Length [11:43:08]Host: 172.17.42.131:8080 [11:43:08]Content-Length: 688 [11:43:08]Content-Type: application/json [11:43:08] [11:43:08]POST finish read [11:43:08]Found Content-Length = 688 [11:43:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:08]execute_script... [11:43: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)210270", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:08]POST & json_proto [11:43:08]process_json_proto [11:43:08]json parsed OK: [11:43:08]protocol is kg_v1.0 [11:43:08]action value=close_receipt [11:43:08]process_action close_receipt [11:43:08]cmd_close_receipt [11:43:08]MH_GetDate [11:43:08]Write to MH i2c: F0 00 00 EB 4C 26 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: F0 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: F0 09 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: F0 09 00 EB 4C 00 CF 8F 17 67 A0 18 CA 66 F3 [11:43:08]GetLastDocTimeStamp 1729597380 [11:43:08]current date 1729597391 [11:43:08]FM_GetShiftState [11:43:08]SAM_PROTO_GetShiftState [11:43:08]wFMCommunicate request_size=4 [11:43:08]MH_SAM_APDU [11:43:08]CAPDU: 80 13 01 00 [11:43:08]Write to MH i2c: E2 08 00 EC 4C 80 13 01 00 00 00 00 00 B5 [11:43:08]Write i2c OK [11:43:08]MH_I2C_Read... [11:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:08]Read from MH i2c: E2 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 0E 00 [11:43:08]MH_I2C_Read... [11:43:08]Read from MH i2c: E2 0E 00 EC 4C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AA [11:43:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:43:08]wFMCommunicate OK [11:43:08]SAM_PROTO_GetShiftState done [11:43:08]FM_GetShiftState done [11:43:08]opened in 1729556094 [11:43:08]opened+sec_in_day 1729642494 [11:43:08]quantity*price = 250050 [11:43:08]sum+1 = 250052 [11:43:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 248 22.10.2024 11:43 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188219 ФПД: 112606979729797 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114311&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188219&fm=112606979729797&tin=02508201610067®Number=0000000000100030&sum=250000 [11:43:09]StoreToDocumentArchive [11:43:09]shift 461 fd 188219 [11:43:09]save to /storage/0461/doc_00188219 [11:43:09]save last doc name /storage/0461/doc_00188219 to /storage/kkm_last_doc_name [11:43:09]save OK [11:43:09]Clear old archive folders... [11:43:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:43:09]tlvbuf is 01BB4220 [11:43:09]SAM_PROTO_ClearQueue [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 09 00 00 [11:43:09]Write to MH i2c: E2 08 00 F9 4C 80 09 00 00 00 00 00 00 B7 [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 03 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 03 00 F9 4C 00 90 00 B9 [11:43:09]RAPDU: 90 00 [11:43:09]wFMCommunicate OK [11:43:09]SAM_PROTO_ClearQueue done [11:43:09]KKMCreateOFDPacket [11:43:09]OFDProtocolAddRootSTLVToBuf [11:43:09]FM_MakeSignedData [11:43:09]FM_MakeSignedData [11:43:09]SAM_PROTO_SignData [11:43:09]wFMCommunicate request_size=4 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 0D 01 02 [11:43:09]Write to MH i2c: E2 08 00 FA 4C 80 0D 01 02 00 00 00 00 BF [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:09]Read from MH i2c: E2 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 03 00 [11:43:09]MH_I2C_Read... [11:43:09]Read from MH i2c: E2 03 00 FA 4C 00 90 00 BA [11:43:09]RAPDU: 90 00 [11:43:09]wFMCommunicate OK [11:43:09]wFMCommunicate request_size=255 [11:43:09]MH_SAM_APDU [11:43:09]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 CF 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DF 02 [11:43:09]Write to MH i2c: E2 02 01 FB 4C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 CF 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DF 02 00 00 6C [11:43:09]Write i2c OK [11:43:09]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 FB 4C 00 90 00 BB [11:43:10]RAPDU: 90 00 [11:43:10]wFMCommunicate OK [11:43:10]wFMCommunicate request_size=16 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 66 6A 5B 06 A9 85 [11:43:10]Write to MH i2c: E2 13 00 FC 4C 80 0D 02 02 0B 00 00 35 04 06 00 66 6A 5B 06 A9 85 00 00 76 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 03 00 FC 4C 00 90 00 BC [11:43:10]RAPDU: 90 00 [11:43:10]wFMCommunicate OK [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 0D 03 02 [11:43:10]Write to MH i2c: E2 08 00 FD 4C 80 0D 03 02 00 00 00 00 C4 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]OFD Sender: No OFD packet to send [11:43:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0B 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 0B 00 FD 4C 00 C5 79 E2 25 5E 1C A7 6C 90 00 97 [11:43:10]RAPDU: C5 79 E2 25 5E 1C A7 6C 90 00 [11:43:10]wFMCommunicate OK [11:43:10]SAM_PROTO_SignData done [11:43:10]FM_MakeSignedData done [11:43:10]CreateOFDProtocolMessage [11:43:10]wFMCommunicate request_size=4 [11:43:10]MH_SAM_APDU [11:43:10]CAPDU: 80 11 00 00 [11:43:10]Write to MH i2c: E2 08 00 FE 4C 80 11 00 00 00 00 00 00 C4 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:10]Read from MH i2c: E2 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 17 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: E2 17 00 FE 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [11:43:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:10]wFMCommunicate OK [11:43:10]CreateOFDProtocolMessage done [11:43:10]OFDSenderStorePacket 188219 [11:43:10]StoreOFDPacket docnum=188219 [11:43:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 C7 0D 01 FB 83 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 CF 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DF 02 00 35 04 06 00 66 6A 5B 06 A9 85 C5 79 E2 25 5E 1C A7 6C [11:43:10]CheckFolder [11:43:10]dirname=/storage/ofd_packets [11:43:10]CheckFolder done [11:43:10]ProducePacketName [11:43:10]name=ofd_packets/00188219 [11:43:10]NVStorageSaveData ofd_packets/00188219 [11:43:10]File name is /storage/ofd_packets/00188219 [11:43:10]Write 307 bytes [11:43:10]NVStorageSaveData done [11:43:10]OFDSenderStorePacket done [11:43:10]KKMCreateOFDPacket done [11:43:10]NVStorageSaveData kkm_last_timestamp [11:43:10]File name is /storage/kkm_last_timestamp [11:43:10]Write 4 bytes [11:43:10]NVStorageSaveData done [11:43:10]ExternCall_PrintAddStr [11:43:10]wPrintStart [11:43:10]Write to MH i2c: 01 00 00 FF 4C 4B [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 07 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 07 00 FF 4C 00 00 00 00 00 FF 0F 60 [11:43:10]RasterBufferAndPrint [11:43:10]line Счет N : (1)210270 [11:43:10]line ИНН: 02508201610067 [11:43:10]line Контрольно-Кассовый Чек [11:43:10]line ПРОДАЖА [11:43:10]line ТРК (МРК, ГНК) : 21 [11:43:10]line Товар: 2710194210 [11:43:10]line D-ENERGY ДТ-К-5 [11:43:10]line 32.390 * 77.20 [11:43:10]line = 2500.51 [11:43:10]line НДС 12% НСП 1% [11:43:10]line > о реализуемом товаре [11:43:10]line ОКРУГЛЕНИЕ: -0.51 [11:43:10]line ИТОГО: 2500.00 [11:43:10]line Внесено: 2500.00 [11:43:10]line СДАЧА: 0.00 [11:43:10]line НСП 1% : 22.13 [11:43:10]line НДС 12% : 265.54 [11:43:10]line Наличными: 2500.00 [11:43:10]line Безнал.: 0.00 [11:43:10]line Место: АЗС № 86 "Партнер Нефть" [11:43:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:43:10]line СНО: Общий режим [11:43:10]line Чек 248 22.10.2024 11:43 [11:43:10]line Смена: 461 ФФД: 1.0 [11:43:10]line ЗНМ: 0300000155 [11:43:10]line РНМ: 0000000000100030 [11:43:10]line Версия ККМ: 001 [11:43:10]line ФМ: 0000000000965340 [11:43:10]line ФД: 188219 [11:43:10]line ФПД: 112606979729797 [11:43:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114311&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188219&fm=112606979729797&tin=02508201610067®Number=0000000000100030&sum=250000 [11:43:10]written 0, free lines is 4095 [11:43:10]OFD Sender: Processing packet 188219 [packets to send 1062, broken 1061] [11:43:10]ProducePacketName [11:43:10]name=ofd_packets/00188219 [11:43:10]OFD Sender: To server: pG, [11:43:10]CommunicateWithHost lk.salyk.kg:30040 [11:43:10]ConnectInit lk.salyk.kg [11:43:10]Connected sock=10 [11:43:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E6 C7 0D 01 FB 83 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F8 00 00 00 F4 03 04 00 CF 8F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DF 02 00 35 04 06 00 66 6A 5B 06 A9 85 C5 79 E2 25 5E 1C A7 6C [11:43:10]Write to MH i2c: 01 00 00 2A 4D 77 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 07 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: 01 07 00 2A 4D 00 00 00 00 00 7D 0C 07 [11:43:10]RasterBufferAndPrint [11:43:10]line [11:43:10]line [11:43:10]line [11:43:10]line [11:43:10]line [11:43:10]written 0, free lines is 3203 [11:43:10]MH_Cut [11:43:10]Write to MH i2c: D1 01 00 31 4D 01 50 [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: D1 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: D1 01 00 [11:43:10]MH_I2C_Read... [11:43:10]Read from MH i2c: D1 01 00 31 4D 00 4F [11:43:10]Write to MH i2c: 01 00 00 32 4D 7F [11:43:10]Write i2c OK [11:43:10]MH_I2C_Read... [11:43:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CF E6 47 00 50 CE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B DF 02 00 F4 03 04 00 BD 39 17 67 B6 04 01 00 00 9E 31 10 F9 E5 69 D5 DA [11:43:10]CommunicateWithHost err = 0 [11:43:10]CheckOFDResponse [11:43:10]1017 (14) - 77093643461234 [11:43:10]1041 (16) - 0000000000965340 [11:43:10]1040 (4) - 188219 [11:43:10]1012 (4) - 22.10.2024 05:35 [11:43:10]1206 (1) - 0 [11:43:10]OFD Sender: Remove packet 188219 [11:43:10]ProducePacketName [11:43:10]name=ofd_packets/00188219 [11:43:10]NVStorageDeleteData [11:43:11]OFD Sender: No OFD packet to send [11:43:11]*** Cut start [11:43:11]*** Partial cut [11:43:11]*** CUTSNS_PIN = 1 [11:43:11]*** CUTSNS_PIN = 0 [11:43:12]*** Brake cut motor [11:43:12]Read from MH i2c: 01 [11:43:12]MH_I2C_Read... [11:43:12]*** Stop cut motor [11:43:12]*** Cut end [11:43:12]Read from MH i2c: 01 07 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: 01 07 00 32 4D 00 00 00 00 00 FF 0F 94 [11:43:12]process_action close_receipt done [11:43:12]requested_data is exist [11:43:12]produce_requested_data [11:43:12]requested_item fm.sn is exist - process it [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 11 00 00 [11:43:12]Write to MH i2c: E2 08 00 33 4D 80 11 00 00 00 00 00 00 FA [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 17 00 33 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [11:43:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:43:12]wFMCommunicate OK [11:43:12]requested_item fd.num is exist - process it [11:43:12]SAM_PROTO_GetFieldsCounters [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 13 00 00 [11:43:12]Write to MH i2c: E2 08 00 34 4D 80 13 00 00 00 00 00 00 FD [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 62 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 62 00 34 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 D6 [11:43:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F8 00 00 00 5E 04 04 00 F8 00 00 00 57 04 04 00 F9 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_GetFieldsCounters done [11:43:12]requested_item shift.num is exist - process it [11:43:12]requested_item shift.opened is exist - process it [11:43:12]req_shift_opened [11:43:12]FM_GetShiftState [11:43:12]SAM_PROTO_GetShiftState [11:43:12]wFMCommunicate request_size=4 [11:43:12]MH_SAM_APDU [11:43:12]CAPDU: 80 13 01 00 [11:43:12]Write to MH i2c: E2 08 00 35 4D 80 13 01 00 00 00 00 00 FF [11:43:12]Write i2c OK [11:43:12]MH_I2C_Read... [11:43:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:12]Read from MH i2c: E2 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0E 00 [11:43:12]MH_I2C_Read... [11:43:12]Read from MH i2c: E2 0E 00 35 4D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F4 [11:43:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:43:12]wFMCommunicate OK [11:43:12]SAM_PROTO_GetShiftState done [11:43:12]FM_GetShiftState done [11:43:12]req_shift_opened done [11:43:12]requested_item shift.open_date is exist - process it [11:43:12]req_shift_open_date [11:43:12]req_shift_open_date done [11:43:12]produce_requested_data done [11:43:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188219,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:43:12]process_action_free close_receipt [11:43:12]json_value_free [11:43:12]json_value_free done [11:43:12]process_json_proto returns [11:43:12]Send response to host [11:43:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188219,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:43:12]free response buf [11:43:12]execute_script done [11:43:12]execute_script returns [11:43:12]free content buf [11:43:12]Sock 8.Close socket [11:43:12]Sock 8.Thread stoped [11:43:16]OFD Sender: No OFD packet to send [11:43:21]OFD Sender: No OFD packet to send [11:43:26]OFD Sender: No OFD packet to send [11:43:31]OFD Sender: No OFD packet to send [11:43:36]OFD Sender: No OFD packet to send [11:43:41]OFD Sender: No OFD packet to send [11:43:46]OFD Sender: No OFD packet to send [11:43:51]OFD Sender: No OFD packet to send [11:43:56]OFD Sender: No OFD packet to send [11:44:01]OFD Sender: No OFD packet to send [11:44:06]OFD Sender: No OFD packet to send [11:44:11]OFD Sender: No OFD packet to send [11:44:16]OFD Sender: No OFD packet to send [11:44:21]OFD Sender: No OFD packet to send [11:44:26]OFD Sender: No OFD packet to send [11:44:31]OFD Sender: No OFD packet to send [11:44:36]OFD Sender: No OFD packet to send [11:44:41]OFD Sender: No OFD packet to send [11:44:46]OFD Sender: No OFD packet to send [11:44:51]OFD Sender: No OFD packet to send [11:44:56]OFD Sender: No OFD packet to send [11:45:01]OFD Sender: No OFD packet to send [11:45:06]OFD Sender: No OFD packet to send [11:45:11]OFD Sender: No OFD packet to send [11:45:16]OFD Sender: No OFD packet to send [11:45:22]OFD Sender: No OFD packet to send [11:45:27]OFD Sender: No OFD packet to send [11:45:32]OFD Sender: No OFD packet to send [11:45:37]OFD Sender: No OFD packet to send [11:45:42]OFD Sender: No OFD packet to send [11:45:47]OFD Sender: No OFD packet to send [11:45:52]OFD Sender: No OFD packet to send [11:45:57]OFD Sender: No OFD packet to send [11:46:02]OFD Sender: No OFD packet to send [11:46:07]OFD Sender: No OFD packet to send [11:46:12]OFD Sender: No OFD packet to send [11:46:17]OFD Sender: No OFD packet to send [11:46:21]accept exits with 9 [11:46:21]New connection [11:46:21]New thread 3067198820 created [11:46:21]Thread 3067055460 joined [11:46:21]Waiting for new connection... [11:46:21] Sock 9.Parse request [11:46:21]Sock 9.Check first char [11:46:21]Sock 9.First char is OK [11:46:21]request: POST /json_proto HTTP/1.0 [11:46:21]Method: POST [11:46:21]URL: /json_proto [11:46:21]Method is POST - this is cgi request [11:46:21]url: /json_proto [11:46:21]query_string will be loaded in cgi processing [11:46:21]execute_cgi json_proto POST (null) [11:46:21]execute_cgi path=json_proto method=POST [11:46:21]POST find Content-Length [11:46:21]Host: 172.17.42.131:8080 [11:46:21]Content-Length: 683 [11:46:21]Content-Type: application/json [11:46:21] [11:46:21]POST finish read [11:46:21]Found Content-Length = 683 [11:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:46:21]execute_script... [11:46: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)210274", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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:46:21]POST & json_proto [11:46:21]process_json_proto [11:46:21]json parsed OK: [11:46:21]protocol is kg_v1.0 [11:46:21]action value=close_receipt [11:46:21]process_action close_receipt [11:46:21]cmd_close_receipt [11:46:21]MH_GetDate [11:46:21]Write to MH i2c: F0 00 00 36 4D 72 [11:46:21]Write i2c OK [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: F0 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: F0 09 00 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: F0 09 00 36 4D 00 91 90 17 67 A0 18 CA 66 02 [11:46:21]GetLastDocTimeStamp 1729597391 [11:46:21]current date 1729597585 [11:46:21]FM_GetShiftState [11:46:21]SAM_PROTO_GetShiftState [11:46:21]wFMCommunicate request_size=4 [11:46:21]MH_SAM_APDU [11:46:21]CAPDU: 80 13 01 00 [11:46:21]Write to MH i2c: E2 08 00 37 4D 80 13 01 00 00 00 00 00 01 [11:46:21]Write i2c OK [11:46:21]MH_I2C_Read... [11:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:21]Read from MH i2c: E2 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 0E 00 [11:46:21]MH_I2C_Read... [11:46:21]Read from MH i2c: E2 0E 00 37 4D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F6 [11:46:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:46:21]wFMCommunicate OK [11:46:21]SAM_PROTO_GetShiftState done [11:46:21]FM_GetShiftState done [11:46:21]opened in 1729556094 [11:46:21]opened+sec_in_day 1729642494 [11:46:21]quantity*price = 50025 [11:46:21]sum+1 = 50027 [11:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 249 22.10.2024 11:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188220 ФПД: 99062197544040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188220&fm=99062197544040&tin=02508201610067®Number=0000000000100030&sum=50000 [11:46:23]StoreToDocumentArchive [11:46:23]shift 461 fd 188220 [11:46:23]save to /storage/0461/doc_00188220 [11:46:23]save last doc name /storage/0461/doc_00188220 to /storage/kkm_last_doc_name [11:46:23]save OK [11:46:23]Clear old archive folders... [11:46:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:46:23]tlvbuf is 01B92240 [11:46:23]SAM_PROTO_ClearQueue [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 09 00 00 [11:46:23]Write to MH i2c: E2 08 00 44 4D 80 09 00 00 00 00 00 00 03 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 44 4D 00 90 00 05 [11:46:23]RAPDU: 90 00 [11:46:23]wFMCommunicate OK [11:46:23]SAM_PROTO_ClearQueue done [11:46:23]KKMCreateOFDPacket [11:46:23]OFDProtocolAddRootSTLVToBuf [11:46:23]FM_MakeSignedData [11:46:23]FM_MakeSignedData [11:46:23]SAM_PROTO_SignData [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 0D 01 02 [11:46:23]Write to MH i2c: E2 08 00 45 4D 80 0D 01 02 00 00 00 00 0B [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 45 4D 00 90 00 06 [11:46:23]RAPDU: 90 00 [11:46:23]wFMCommunicate OK [11:46:23]wFMCommunicate request_size=255 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 F9 00 00 00 F4 03 04 00 91 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DF 02 [11:46:23]Write to MH i2c: E2 02 01 46 4D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 F9 00 00 00 F4 03 04 00 91 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DF 02 00 00 9B [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 46 4D 00 90 00 07 [11:46:23]RAPDU: 90 00 [11:46:23]wFMCommunicate OK [11:46:23]wFMCommunicate request_size=16 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5A 18 B7 18 64 68 [11:46:23]Write to MH i2c: E2 13 00 47 4D 80 0D 02 02 0B 00 00 35 04 06 00 5A 18 B7 18 64 68 00 00 70 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 03 00 47 4D 00 90 00 08 [11:46:23]RAPDU: 90 00 [11:46:23]wFMCommunicate OK [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 0D 03 02 [11:46:23]Write to MH i2c: E2 08 00 48 4D 80 0D 03 02 00 00 00 00 10 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0B 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 0B 00 48 4D 00 96 87 1F ED 11 BC 19 EA 90 00 0A [11:46:23]RAPDU: 96 87 1F ED 11 BC 19 EA 90 00 [11:46:23]wFMCommunicate OK [11:46:23]SAM_PROTO_SignData done [11:46:23]FM_MakeSignedData done [11:46:23]CreateOFDProtocolMessage [11:46:23]wFMCommunicate request_size=4 [11:46:23]MH_SAM_APDU [11:46:23]CAPDU: 80 11 00 00 [11:46:23]Write to MH i2c: E2 08 00 49 4D 80 11 00 00 00 00 00 00 10 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:23]Read from MH i2c: E2 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 17 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: E2 17 00 49 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [11:46:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:23]wFMCommunicate OK [11:46:23]CreateOFDProtocolMessage done [11:46:23]OFDSenderStorePacket 188220 [11:46:23]StoreOFDPacket docnum=188220 [11:46:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 30 8B 0D 01 C7 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 F9 00 00 00 F4 03 04 00 91 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DF 02 00 35 04 06 00 5A 18 B7 18 64 68 96 87 1F ED 11 BC 19 EA [11:46:23]CheckFolder [11:46:23]dirname=/storage/ofd_packets [11:46:23]CheckFolder done [11:46:23]ProducePacketName [11:46:23]name=ofd_packets/00188220 [11:46:23]NVStorageSaveData ofd_packets/00188220 [11:46:23]File name is /storage/ofd_packets/00188220 [11:46:23]Write 307 bytes [11:46:23]NVStorageSaveData done [11:46:23]OFDSenderStorePacket done [11:46:23]KKMCreateOFDPacket done [11:46:23]NVStorageSaveData kkm_last_timestamp [11:46:23]File name is /storage/kkm_last_timestamp [11:46:23]Write 4 bytes [11:46:23]NVStorageSaveData done [11:46:23]ExternCall_PrintAddStr [11:46:23]wPrintStart [11:46:23]Write to MH i2c: 01 00 00 4A 4D 97 [11:46:23]Write i2c OK [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 07 00 [11:46:23]MH_I2C_Read... [11:46:23]Read from MH i2c: 01 07 00 4A 4D 00 00 00 00 00 FF 0F AC [11:46:23]RasterBufferAndPrint [11:46:23]line Счет N : (1)210274 [11:46:23]line ИНН: 02508201610067 [11:46:23]line Контрольно-Кассовый Чек [11:46:23]line ПРОДАЖА [11:46:23]line ТРК (МРК, ГНК) : 21 [11:46:23]line Товар: 2710194210 [11:46:23]line D-ENERGY ДТ-К-5 [11:46:23]line 6.480 * 77.20 [11:46:23]line = 500.26 [11:46:23]line НДС 12% НСП 1% [11:46:23]line > о реализуемом товаре [11:46:23]line ОКРУГЛЕНИЕ: -0.26 [11:46:23]line ИТОГО: 500.00 [11:46:23]line Внесено: 500.00 [11:46:23]line СДАЧА: 0.00 [11:46:23]line НСП 1% : 4.43 [11:46:23]line НДС 12% : 53.12 [11:46:23]line Наличными: 500.00 [11:46:23]line Безнал.: 0.00 [11:46:23]line Место: АЗС № 86 "Партнер Нефть" [11:46:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:46:23]line СНО: Общий режим [11:46:23]line Чек 249 22.10.2024 11:46 [11:46:23]line Смена: 461 ФФД: 1.0 [11:46:23]line ЗНМ: 0300000155 [11:46:23]line РНМ: 0000000000100030 [11:46:23]line Версия ККМ: 001 [11:46:23]line ФМ: 0000000000965340 [11:46:23]line ФД: 188220 [11:46:23]line ФПД: 99062197544040 [11:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188220&fm=99062197544040&tin=02508201610067®Number=0000000000100030&sum=50000 [11:46:23]written 0, free lines is 4095 [11:46:23]OFD Sender: Processing packet 188220 [packets to send 1062, broken 1061] [11:46:23]ProducePacketName [11:46:23]name=ofd_packets/00188220 [11:46:23]OFD Sender: To server: pG, [11:46:23]CommunicateWithHost lk.salyk.kg:30040 [11:46:23]ConnectInit lk.salyk.kg [11:46:24]Connected sock=11 [11:46:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 30 8B 0D 01 C7 08 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 F9 00 00 00 F4 03 04 00 91 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C DF 02 00 35 04 06 00 5A 18 B7 18 64 68 96 87 1F ED 11 BC 19 EA [11:46:24]Write to MH i2c: 01 00 00 75 4D C2 [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: 01 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: 01 07 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: 01 07 00 75 4D 00 00 00 00 00 68 0C 3D [11:46:24]RasterBufferAndPrint [11:46:24]line [11:46:24]line [11:46:24]line [11:46:24]line [11:46:24]line [11:46:24]written 0, free lines is 3179 [11:46:24]MH_Cut [11:46:24]Write to MH i2c: D1 01 00 7C 4D 01 9B [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: D1 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: D1 01 00 [11:46:24]MH_I2C_Read... [11:46:24]Read from MH i2c: D1 01 00 7C 4D 00 9A [11:46:24]Write to MH i2c: 01 00 00 7D 4D CA [11:46:24]Write i2c OK [11:46:24]MH_I2C_Read... [11:46:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 4B 47 00 15 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 39 36 35 33 34 30 10 04 04 00 3C DF 02 00 F4 03 04 00 7E 3A 17 67 B6 04 01 00 00 69 19 BC 07 90 76 58 C9 [11:46:24]CommunicateWithHost err = 0 [11:46:24]CheckOFDResponse [11:46:24]1017 (14) - 77093643461234 [11:46:24]1041 (16) - 0000000000965340 [11:46:24]1040 (4) - 188220 [11:46:24]1012 (4) - 22.10.2024 05:39 [11:46:24]1206 (1) - 0 [11:46:24]OFD Sender: Remove packet 188220 [11:46:24]ProducePacketName [11:46:24]name=ofd_packets/00188220 [11:46:24]NVStorageDeleteData [11:46:24]OFD Sender: No OFD packet to send [11:46:25]*** Cut start [11:46:25]*** Partial cut [11:46:25]*** CUTSNS_PIN = 1 [11:46:25]*** CUTSNS_PIN = 0 [11:46:25]*** Brake cut motor [11:46:25]Read from MH i2c: 01 [11:46:25]MH_I2C_Read... [11:46:25]*** Stop cut motor [11:46:25]*** Cut end [11:46:25]Read from MH i2c: 01 07 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: 01 07 00 7D 4D 00 00 00 00 00 FF 0F DF [11:46:25]process_action close_receipt done [11:46:25]requested_data is exist [11:46:25]produce_requested_data [11:46:25]requested_item fm.sn is exist - process it [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 11 00 00 [11:46:25]Write to MH i2c: E2 08 00 7E 4D 80 11 00 00 00 00 00 00 45 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:25]Read from MH i2c: E2 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 17 00 [11:46:25]MH_I2C_Read... [11:46:25]Read from MH i2c: E2 17 00 7E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [11:46:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:25]wFMCommunicate OK [11:46:25]requested_item fd.num is exist - process it [11:46:25]SAM_PROTO_GetFieldsCounters [11:46:25]wFMCommunicate request_size=4 [11:46:25]MH_SAM_APDU [11:46:25]CAPDU: 80 13 00 00 [11:46:25]Write to MH i2c: E2 08 00 7F 4D 80 13 00 00 00 00 00 00 48 [11:46:25]Write i2c OK [11:46:25]MH_I2C_Read... [11:46:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:26]Read from MH i2c: E2 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 62 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 62 00 7F 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [11:46:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F9 00 00 00 5E 04 04 00 F9 00 00 00 57 04 04 00 FA 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:26]wFMCommunicate OK [11:46:26]SAM_PROTO_GetFieldsCounters done [11:46:26]requested_item shift.num is exist - process it [11:46:26]requested_item shift.opened is exist - process it [11:46:26]req_shift_opened [11:46:26]FM_GetShiftState [11:46:26]SAM_PROTO_GetShiftState [11:46:26]wFMCommunicate request_size=4 [11:46:26]MH_SAM_APDU [11:46:26]CAPDU: 80 13 01 00 [11:46:26]Write to MH i2c: E2 08 00 80 4D 80 13 01 00 00 00 00 00 4A [11:46:26]Write i2c OK [11:46:26]MH_I2C_Read... [11:46:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:26]Read from MH i2c: E2 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 0E 00 [11:46:26]MH_I2C_Read... [11:46:26]Read from MH i2c: E2 0E 00 80 4D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3F [11:46:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:46:26]wFMCommunicate OK [11:46:26]SAM_PROTO_GetShiftState done [11:46:26]FM_GetShiftState done [11:46:26]req_shift_opened done [11:46:26]requested_item shift.open_date is exist - process it [11:46:26]req_shift_open_date [11:46:26]req_shift_open_date done [11:46:26]produce_requested_data done [11:46:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188220,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:46:26]process_action_free close_receipt [11:46:26]json_value_free [11:46:26]json_value_free done [11:46:26]process_json_proto returns [11:46:26]Send response to host [11:46:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188220,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:46:26]free response buf [11:46:26]execute_script done [11:46:26]execute_script returns [11:46:26]free content buf [11:46:26]Sock 9.Close socket [11:46:26]Sock 9.Thread stoped [11:46:29]OFD Sender: No OFD packet to send [11:46:34]OFD Sender: No OFD packet to send [11:46:39]OFD Sender: No OFD packet to send [11:46:45]OFD Sender: No OFD packet to send [11:46:50]OFD Sender: No OFD packet to send [11:46:51]accept exits with 8 [11:46:51]New connection [11:46:51]New thread 3067055460 created [11:46:51]Thread 3067198820 joined [11:46:51]Waiting for new connection... [11:46:51] Sock 8.Parse request [11:46:51]Sock 8.Check first char [11:46:51]Sock 8.First char is OK [11:46:51]request: POST /json_proto HTTP/1.0 [11:46:51]Method: POST [11:46:51]URL: /json_proto [11:46:51]Method is POST - this is cgi request [11:46:51]url: /json_proto [11:46:51]query_string will be loaded in cgi processing [11:46:51]execute_cgi json_proto POST (null) [11:46:51]execute_cgi path=json_proto method=POST [11:46:51]POST find Content-Length [11:46:51]Host: 172.17.42.131:8080 [11:46:51]Content-Length: 679 [11:46:51]Content-Type: application/json [11:46:51] [11:46:51]POST finish read [11:46:51]Found Content-Length = 679 [11:46:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:46:51]execute_script... [11:46: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)210273", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:46:51]POST & json_proto [11:46:51]process_json_proto [11:46:51]json parsed OK: [11:46:51]protocol is kg_v1.0 [11:46:51]action value=close_receipt [11:46:51]process_action close_receipt [11:46:51]cmd_close_receipt [11:46:51]MH_GetDate [11:46:51]Write to MH i2c: F0 00 00 81 4D BD [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: F0 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: F0 09 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: F0 09 00 81 4D 00 AE 90 17 67 A0 18 CA 66 6A [11:46:51]GetLastDocTimeStamp 1729597585 [11:46:51]current date 1729597614 [11:46:51]FM_GetShiftState [11:46:51]SAM_PROTO_GetShiftState [11:46:51]wFMCommunicate request_size=4 [11:46:51]MH_SAM_APDU [11:46:51]CAPDU: 80 13 01 00 [11:46:51]Write to MH i2c: E2 08 00 82 4D 80 13 01 00 00 00 00 00 4C [11:46:51]Write i2c OK [11:46:51]MH_I2C_Read... [11:46:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:51]Read from MH i2c: E2 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 0E 00 [11:46:51]MH_I2C_Read... [11:46:51]Read from MH i2c: E2 0E 00 82 4D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 41 [11:46:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:46:51]wFMCommunicate OK [11:46:51]SAM_PROTO_GetShiftState done [11:46:51]FM_GetShiftState done [11:46:51]opened in 1729556094 [11:46:51]opened+sec_in_day 1729642494 [11:46:51]quantity*price = 200025 [11:46:51]sum+1 = 200026 [11:46:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 250 22.10.2024 11:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188221 ФПД: 68421385355065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188221&fm=68421385355065&tin=02508201610067®Number=0000000000100030&sum=200000 [11:46:52]StoreToDocumentArchive [11:46:52]shift 461 fd 188221 [11:46:52]save to /storage/0461/doc_00188221 [11:46:52]save last doc name /storage/0461/doc_00188221 to /storage/kkm_last_doc_name [11:46:52]save OK [11:46:52]Clear old archive folders... [11:46:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:46:52]tlvbuf is 01CE4940 [11:46:52]SAM_PROTO_ClearQueue [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 09 00 00 [11:46:52]Write to MH i2c: E2 08 00 8F 4D 80 09 00 00 00 00 00 00 4E [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 8F 4D 00 90 00 50 [11:46:52]RAPDU: 90 00 [11:46:52]wFMCommunicate OK [11:46:52]SAM_PROTO_ClearQueue done [11:46:52]KKMCreateOFDPacket [11:46:52]OFDProtocolAddRootSTLVToBuf [11:46:52]FM_MakeSignedData [11:46:52]FM_MakeSignedData [11:46:52]SAM_PROTO_SignData [11:46:52]wFMCommunicate request_size=4 [11:46:52]MH_SAM_APDU [11:46:52]CAPDU: 80 0D 01 02 [11:46:52]Write to MH i2c: E2 08 00 90 4D 80 0D 01 02 00 00 00 00 56 [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:46:52]Read from MH i2c: E2 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 [11:46:52]MH_I2C_Read... [11:46:52]Read from MH i2c: E2 03 00 90 4D 00 90 00 51 [11:46:52]RAPDU: 90 00 [11:46:52]wFMCommunicate OK [11:46:52]wFMCommunicate request_size=255 [11:46:52]MH_SAM_APDU [11:46: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 32 31 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 FA 00 00 00 F4 03 04 00 AE 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DF 02 00 35 04 06 00 3E 3A 98 5E [11:46:52]Write to MH i2c: E2 02 01 91 4D 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 AE 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DF 02 00 35 04 06 00 3E 3A 98 5E 00 00 BF [11:46:52]Write i2c OK [11:46:52]MH_I2C_Read... [11:46:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:53]Read from MH i2c: E2 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 03 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 03 00 91 4D 00 90 00 52 [11:46:53]RAPDU: 90 00 [11:46:53]wFMCommunicate OK [11:46:53]wFMCommunicate request_size=7 [11:46:53]MH_SAM_APDU [11:46:53]CAPDU: 80 0D 02 02 02 7F 39 [11:46:53]Write to MH i2c: E2 0A 00 92 4D 80 0D 02 02 02 00 7F 39 00 00 15 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:46:53]Read from MH i2c: E2 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 03 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 03 00 92 4D 00 90 00 53 [11:46:53]RAPDU: 90 00 [11:46:53]wFMCommunicate OK [11:46:53]wFMCommunicate request_size=4 [11:46:53]MH_SAM_APDU [11:46:53]CAPDU: 80 0D 03 02 [11:46:53]Write to MH i2c: E2 08 00 93 4D 80 0D 03 02 00 00 00 00 5B [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:46:53]Read from MH i2c: E2 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 0B 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 0B 00 93 4D 00 A5 8E FA F6 B1 9D 74 0C 90 00 4D [11:46:53]RAPDU: A5 8E FA F6 B1 9D 74 0C 90 00 [11:46:53]wFMCommunicate OK [11:46:53]SAM_PROTO_SignData done [11:46:53]FM_MakeSignedData done [11:46:53]CreateOFDProtocolMessage [11:46:53]wFMCommunicate request_size=4 [11:46:53]MH_SAM_APDU [11:46:53]CAPDU: 80 11 00 00 [11:46:53]Write to MH i2c: E2 08 00 94 4D 80 11 00 00 00 00 00 00 5B [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:53]Read from MH i2c: E2 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 17 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: E2 17 00 94 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [11:46:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:53]wFMCommunicate OK [11:46:53]CreateOFDProtocolMessage done [11:46:53]OFDSenderStorePacket 188221 [11:46:53]StoreOFDPacket docnum=188221 [11:46:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 46 5A 04 01 E5 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 AE 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DF 02 00 35 04 06 00 3E 3A 98 5E 7F 39 A5 8E FA F6 B1 9D 74 0C [11:46:53]CheckFolder [11:46:53]dirname=/storage/ofd_packets [11:46:53]CheckFolder done [11:46:53]ProducePacketName [11:46:53]name=ofd_packets/00188221 [11:46:53]NVStorageSaveData ofd_packets/00188221 [11:46:53]File name is /storage/ofd_packets/00188221 [11:46:53]Write 298 bytes [11:46:53]NVStorageSaveData done [11:46:53]OFDSenderStorePacket done [11:46:53]KKMCreateOFDPacket done [11:46:53]NVStorageSaveData kkm_last_timestamp [11:46:53]File name is /storage/kkm_last_timestamp [11:46:53]Write 4 bytes [11:46:53]NVStorageSaveData done [11:46:53]ExternCall_PrintAddStr [11:46:53]wPrintStart [11:46:53]Write to MH i2c: 01 00 00 95 4D E2 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 07 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 07 00 95 4D 00 00 00 00 00 FF 0F F7 [11:46:53]RasterBufferAndPrint [11:46:53]line Счет N : (1)210273 [11:46:53]line ИНН: 02508201610067 [11:46:53]line Контрольно-Кассовый Чек [11:46:53]line ПРОДАЖА [11:46:53]line ТРК (МРК, ГНК) : 51 [11:46:53]line Товар: 2710194210 [11:46:53]line ДТ-К-5 [11:46:53]line 26.250 * 76.20 [11:46:53]line = 2000.25 [11:46:53]line НДС 12% НСП 1% [11:46:53]line > о реализуемом товаре [11:46:53]line ОКРУГЛЕНИЕ: -0.25 [11:46:53]line ИТОГО: 2000.00 [11:46:53]line Внесено: 2000.00 [11:46:53]line СДАЧА: 0.00 [11:46:53]line НСП 1% : 17.70 [11:46:53]line НДС 12% : 212.42 [11:46:53]line Наличными: 2000.00 [11:46:53]line Безнал.: 0.00 [11:46:53]line Место: АЗС № 86 "Партнер Нефть" [11:46:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:46:53]line СНО: Общий режим [11:46:53]line Чек 250 22.10.2024 11:46 [11:46:53]line Смена: 461 ФФД: 1.0 [11:46:53]line ЗНМ: 0300000155 [11:46:53]line РНМ: 0000000000100030 [11:46:53]line Версия ККМ: 001 [11:46:53]line ФМ: 0000000000965340 [11:46:53]line ФД: 188221 [11:46:53]line ФПД: 68421385355065 [11:46:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114654&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188221&fm=68421385355065&tin=02508201610067®Number=0000000000100030&sum=200000 [11:46:53]written 0, free lines is 4095 [11:46:53]OFD Sender: Processing packet 188221 [packets to send 1062, broken 1061] [11:46:53]ProducePacketName [11:46:53]name=ofd_packets/00188221 [11:46:53]OFD Sender: To server: pG, [11:46:53]CommunicateWithHost lk.salyk.kg:30040 [11:46:53]ConnectInit lk.salyk.kg [11:46:53]Write to MH i2c: 01 00 00 C0 4D 0D [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 07 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: 01 07 00 C0 4D 00 00 00 00 00 6C 0C 8C [11:46:53]RasterBufferAndPrint [11:46:53]line [11:46:53]line [11:46:53]line [11:46:53]line [11:46:53]line [11:46:53]written 0, free lines is 3184 [11:46:53]Connected sock=9 [11:46:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 46 5A 04 01 E5 88 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 FA 00 00 00 F4 03 04 00 AE 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DF 02 00 35 04 06 00 3E 3A 98 5E 7F 39 A5 8E FA F6 B1 9D 74 0C [11:46:53]MH_Cut [11:46:53]Write to MH i2c: D1 01 00 C7 4D 01 E6 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: D1 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: D1 01 00 [11:46:53]MH_I2C_Read... [11:46:53]Read from MH i2c: D1 01 00 C7 4D 00 E5 [11:46:53]Write to MH i2c: 01 00 00 C8 4D 15 [11:46:53]Write i2c OK [11:46:53]MH_I2C_Read... [11:46:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C6 1C 47 00 02 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D DF 02 00 F4 03 04 00 9C 3A 17 67 B6 04 01 00 00 B0 24 4A 2A B6 F2 D0 80 [11:46:53]CommunicateWithHost err = 0 [11:46:53]CheckOFDResponse [11:46:53]1017 (14) - 77093643461234 [11:46:53]1041 (16) - 0000000000965340 [11:46:53]1040 (4) - 188221 [11:46:53]1012 (4) - 22.10.2024 05:39 [11:46:53]1206 (1) - 0 [11:46:53]OFD Sender: Remove packet 188221 [11:46:53]ProducePacketName [11:46:53]name=ofd_packets/00188221 [11:46:53]NVStorageDeleteData [11:46:54]OFD Sender: No OFD packet to send [11:46:54]*** Cut start [11:46:54]*** Partial cut [11:46:54]*** CUTSNS_PIN = 1 [11:46:54]*** CUTSNS_PIN = 0 [11:46:55]*** Brake cut motor [11:46:55]Read from MH i2c: 01 [11:46:55]MH_I2C_Read... [11:46:55]*** Stop cut motor [11:46:55]*** Cut end [11:46:55]Read from MH i2c: 01 07 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: 01 07 00 C8 4D 00 00 00 00 00 FF 0F 2A [11:46:55]process_action close_receipt done [11:46:55]requested_data is exist [11:46:55]produce_requested_data [11:46:55]requested_item fm.sn is exist - process it [11:46:55]wFMCommunicate request_size=4 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 11 00 00 [11:46:55]Write to MH i2c: E2 08 00 C9 4D 80 11 00 00 00 00 00 00 90 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:46:55]Read from MH i2c: E2 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 17 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 17 00 C9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [11:46:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:46:55]wFMCommunicate OK [11:46:55]requested_item fd.num is exist - process it [11:46:55]SAM_PROTO_GetFieldsCounters [11:46:55]wFMCommunicate request_size=4 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 13 00 00 [11:46:55]Write to MH i2c: E2 08 00 CA 4D 80 13 00 00 00 00 00 00 93 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:46:55]Read from MH i2c: E2 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 62 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 62 00 CA 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [11:46:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FA 00 00 00 5E 04 04 00 FA 00 00 00 57 04 04 00 FB 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:46:55]wFMCommunicate OK [11:46:55]SAM_PROTO_GetFieldsCounters done [11:46:55]requested_item shift.num is exist - process it [11:46:55]requested_item shift.opened is exist - process it [11:46:55]req_shift_opened [11:46:55]FM_GetShiftState [11:46:55]SAM_PROTO_GetShiftState [11:46:55]wFMCommunicate request_size=4 [11:46:55]MH_SAM_APDU [11:46:55]CAPDU: 80 13 01 00 [11:46:55]Write to MH i2c: E2 08 00 CB 4D 80 13 01 00 00 00 00 00 95 [11:46:55]Write i2c OK [11:46:55]MH_I2C_Read... [11:46:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:46:55]Read from MH i2c: E2 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 0E 00 [11:46:55]MH_I2C_Read... [11:46:55]Read from MH i2c: E2 0E 00 CB 4D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8A [11:46:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:46:55]wFMCommunicate OK [11:46:55]SAM_PROTO_GetShiftState done [11:46:55]FM_GetShiftState done [11:46:55]req_shift_opened done [11:46:55]requested_item shift.open_date is exist - process it [11:46:55]req_shift_open_date [11:46:55]req_shift_open_date done [11:46:55]produce_requested_data done [11:46:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188221,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:46:55]process_action_free close_receipt [11:46:55]json_value_free [11:46:55]json_value_free done [11:46:55]process_json_proto returns [11:46:55]Send response to host [11:46:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188221,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:46:55]free response buf [11:46:55]execute_script done [11:46:55]execute_script returns [11:46:55]free content buf [11:46:55]Sock 8.Close socket [11:46:55]Sock 8.Thread stoped [11:46:59]OFD Sender: No OFD packet to send [11:47:04]OFD Sender: No OFD packet to send [11:47:09]OFD Sender: No OFD packet to send [11:47:14]OFD Sender: No OFD packet to send [11:47:19]OFD Sender: No OFD packet to send [11:47:24]OFD Sender: No OFD packet to send [11:47:29]OFD Sender: No OFD packet to send [11:47:34]OFD Sender: No OFD packet to send [11:47:35]accept exits with 10 [11:47:35]New connection [11:47:35]New thread 3067198820 created [11:47:35]Thread 3067055460 joined [11:47:35]Waiting for new connection... [11:47:35] Sock 10.Parse request [11:47:35]Sock 10.Check first char [11:47:35]Sock 10.First char is OK [11:47:35]request: POST /json_proto HTTP/1.0 [11:47:35]Method: POST [11:47:35]URL: /json_proto [11:47:35]Method is POST - this is cgi request [11:47:35]url: /json_proto [11:47:35]query_string will be loaded in cgi processing [11:47:35]execute_cgi json_proto POST (null) [11:47:35]execute_cgi path=json_proto method=POST [11:47:35]POST find Content-Length [11:47:35]Host: 172.17.42.131:8080 [11:47:35]Content-Length: 792 [11:47:35]Content-Type: application/json [11:47:35] [11:47:35]POST finish read [11:47:35]Found Content-Length = 792 [11:47:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 32.890, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:35]execute_script... [11:47:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210275", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 32.890, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:47:35]POST & json_proto [11:47:35]process_json_proto [11:47:35]json parsed OK: [11:47:35]protocol is kg_v1.0 [11:47:35]action value=close_receipt [11:47:35]process_action close_receipt [11:47:35]cmd_close_receipt [11:47:35]MH_GetDate [11:47:35]Write to MH i2c: F0 00 00 CC 4D 08 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: F0 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: F0 09 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: F0 09 00 CC 4D 00 DA 90 17 67 A0 18 CA 66 E1 [11:47:35]GetLastDocTimeStamp 1729597614 [11:47:35]current date 1729597658 [11:47:35]FM_GetShiftState [11:47:35]SAM_PROTO_GetShiftState [11:47:35]wFMCommunicate request_size=4 [11:47:35]MH_SAM_APDU [11:47:35]CAPDU: 80 13 01 00 [11:47:35]Write to MH i2c: E2 08 00 CD 4D 80 13 01 00 00 00 00 00 97 [11:47:35]Write i2c OK [11:47:35]MH_I2C_Read... [11:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:35]Read from MH i2c: E2 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 0E 00 [11:47:35]MH_I2C_Read... [11:47:35]Read from MH i2c: E2 0E 00 CD 4D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8C [11:47:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:47:35]wFMCommunicate OK [11:47:35]SAM_PROTO_GetShiftState done [11:47:35]FM_GetShiftState done [11:47:35]opened in 1729556094 [11:47:35]opened+sec_in_day 1729642494 [11:47:35]quantity*price = 0 [11:47:35]sum+1 = 1 [11:47:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 251 22.10.2024 11:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 188222 ФПД: 47383670664638 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114738&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188222&fm=47383670664638&tin=02508201610067®Number=0000000000100030&sum=0 [11:47:36]StoreToDocumentArchive [11:47:36]shift 461 fd 188222 [11:47:36]save to /storage/0461/doc_00188222 [11:47:36]save last doc name /storage/0461/doc_00188222 to /storage/kkm_last_doc_name [11:47:36]save OK [11:47:36]Clear old archive folders... [11:47:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:47:36]tlvbuf is 01D00B70 [11:47:36]SAM_PROTO_ClearQueue [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 09 00 00 [11:47:36]Write to MH i2c: E2 08 00 DA 4D 80 09 00 00 00 00 00 00 99 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 DA 4D 00 90 00 9B [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]SAM_PROTO_ClearQueue done [11:47:36]KKMCreateOFDPacket [11:47:36]OFDProtocolAddRootSTLVToBuf [11:47:36]FM_MakeSignedData [11:47:36]FM_MakeSignedData [11:47:36]SAM_PROTO_SignData [11:47:36]wFMCommunicate request_size=4 [11:47:36]MH_SAM_APDU [11:47:36]CAPDU: 80 0D 01 02 [11:47:36]Write to MH i2c: E2 08 00 DB 4D 80 0D 01 02 00 00 00 00 A1 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:47:36]Read from MH i2c: E2 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 [11:47:36]MH_I2C_Read... [11:47:36]Read from MH i2c: E2 03 00 DB 4D 00 90 00 9C [11:47:36]RAPDU: 90 00 [11:47:36]wFMCommunicate OK [11:47:36]wFMCommunicate request_size=255 [11:47:36]MH_SAM_APDU [11:47: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 33 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DA 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DF 02 00 35 04 06 00 2B [11:47:36]Write to MH i2c: E2 02 01 DC 4D 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DA 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DF 02 00 35 04 06 00 2B 00 00 84 [11:47:36]Write i2c OK [11:47:36]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 DC 4D 00 90 00 9D [11:47:37]RAPDU: 90 00 [11:47:37]wFMCommunicate OK [11:47:37]wFMCommunicate request_size=10 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 0D 02 02 05 18 5E DB AD BE [11:47:37]Write to MH i2c: E2 0D 00 DD 4D 80 0D 02 02 05 00 18 5E DB AD BE 00 00 6A [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 03 00 DD 4D 00 90 00 9E [11:47:37]RAPDU: 90 00 [11:47:37]wFMCommunicate OK [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 0D 03 02 [11:47:37]Write to MH i2c: E2 08 00 DE 4D 80 0D 03 02 00 00 00 00 A6 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0B 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 0B 00 DE 4D 00 B2 BE CD F8 26 1C 3A 31 90 00 89 [11:47:37]RAPDU: B2 BE CD F8 26 1C 3A 31 90 00 [11:47:37]wFMCommunicate OK [11:47:37]SAM_PROTO_SignData done [11:47:37]FM_MakeSignedData done [11:47:37]CreateOFDProtocolMessage [11:47:37]wFMCommunicate request_size=4 [11:47:37]MH_SAM_APDU [11:47:37]CAPDU: 80 11 00 00 [11:47:37]Write to MH i2c: E2 08 00 DF 4D 80 11 00 00 00 00 00 00 A6 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:37]Read from MH i2c: E2 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: E2 17 00 DF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [11:47:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:47:37]wFMCommunicate OK [11:47:37]CreateOFDProtocolMessage done [11:47:37]OFDSenderStorePacket 188222 [11:47:37]StoreOFDPacket docnum=188222 [11:47:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 32 07 01 3E CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DA 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DF 02 00 35 04 06 00 2B 18 5E DB AD BE B2 BE CD F8 26 1C 3A 31 [11:47:37]CheckFolder [11:47:37]dirname=/storage/ofd_packets [11:47:37]CheckFolder done [11:47:37]ProducePacketName [11:47:37]name=ofd_packets/00188222 [11:47:37]NVStorageSaveData ofd_packets/00188222 [11:47:37]File name is /storage/ofd_packets/00188222 [11:47:37]Write 301 bytes [11:47:37]NVStorageSaveData done [11:47:37]OFDSenderStorePacket done [11:47:37]KKMCreateOFDPacket done [11:47:37]NVStorageSaveData kkm_last_timestamp [11:47:37]File name is /storage/kkm_last_timestamp [11:47:37]Write 4 bytes [11:47:37]NVStorageSaveData done [11:47:37]ExternCall_PrintAddStr [11:47:37]wPrintStart [11:47:37]Write to MH i2c: 01 00 00 E0 4D 2D [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 E0 4D 00 00 00 00 00 FF 0F 42 [11:47:37]RasterBufferAndPrint [11:47:37]line Счет N : (1)210275 [11:47:37]line ИНН: 02508201610067 [11:47:37]line Контрольно-Кассовый Чек [11:47:37]line ПРОДАЖА [11:47:37]line ТРК (МРК, ГНК) : 12 [11:47:37]line Товар: 2710124130 [11:47:37]line Аи-92-К-3 [11:47:37]line 32.890 * 0.00 [11:47:37]line = 0.00 [11:47:37]line НДС 12% НСП 1% [11:47:37]line > о реализуемом товаре [11:47:37]line ИТОГО: 0.00 [11:47:37]line НСП 1% : 0.00 [11:47:37]line НДС 12% : 0.00 [11:47:37]line Наличными: 0.00 [11:47:37]line Безнал.: 0.00 [11:47:37]line Место: АЗС № 86 "Партнер Нефть" [11:47:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:47:37]line СНО: Общий режим [11:47:37]line Чек 251 22.10.2024 11:47 [11:47:37]line Смена: 461 ФФД: 1.0 [11:47:37]line ЗНМ: 0300000155 [11:47:37]line РНМ: 0000000000100030 [11:47:37]line Версия ККМ: 001 [11:47:37]line Талоны: Топливная Карта [11:47:37]line 02633 [11:47:37]line ФМ: 0000000000965340 [11:47:37]line ФД: 188222 [11:47:37]line ФПД: 47383670664638 [11:47:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114738&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188222&fm=47383670664638&tin=02508201610067®Number=0000000000100030&sum=0 [11:47:37]written 0, free lines is 4095 [11:47:37]OFD Sender: Processing packet 188222 [packets to send 1062, broken 1061] [11:47:37]ProducePacketName [11:47:37]name=ofd_packets/00188222 [11:47:37]OFD Sender: To server: pG, [11:47:37]CommunicateWithHost lk.salyk.kg:30040 [11:47:37]ConnectInit lk.salyk.kg [11:47:37]Connected sock=8 [11:47:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BD 32 07 01 3E CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7A 80 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FB 00 00 00 F4 03 04 00 DA 90 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DF 02 00 35 04 06 00 2B 18 5E DB AD BE B2 BE CD F8 26 1C 3A 31 [11:47:37]Write to MH i2c: 01 00 00 0A 4E 58 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: 01 07 00 0A 4E 00 00 00 00 00 8C 0C F7 [11:47:37]RasterBufferAndPrint [11:47:37]line [11:47:37]line [11:47:37]line [11:47:37]line [11:47:37]line [11:47:37]written 0, free lines is 3217 [11:47:37]MH_Cut [11:47:37]Write to MH i2c: D1 01 00 11 4E 01 31 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 01 00 [11:47:37]MH_I2C_Read... [11:47:37]Read from MH i2c: D1 01 00 11 4E 00 30 [11:47:37]Write to MH i2c: 01 00 00 12 4E 60 [11:47:37]Write i2c OK [11:47:37]MH_I2C_Read... [11:47:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 40 47 00 83 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E DF 02 00 F4 03 04 00 C8 3A 17 67 B6 04 01 00 00 08 9B 8F 23 43 67 4F 7C [11:47:37]CommunicateWithHost err = 0 [11:47:37]CheckOFDResponse [11:47:37]1017 (14) - 77093643461234 [11:47:37]1041 (16) - 0000000000965340 [11:47:37]1040 (4) - 188222 [11:47:37]1012 (4) - 22.10.2024 05:40 [11:47:37]1206 (1) - 0 [11:47:37]OFD Sender: Remove packet 188222 [11:47:37]ProducePacketName [11:47:37]name=ofd_packets/00188222 [11:47:37]NVStorageDeleteData [11:47:38]OFD Sender: No OFD packet to send [11:47:38]*** Cut start [11:47:38]*** Partial cut [11:47:38]*** CUTSNS_PIN = 1 [11:47:38]*** CUTSNS_PIN = 0 [11:47:39]*** Brake cut motor [11:47:39]Read from MH i2c: 01 [11:47:39]MH_I2C_Read... [11:47:39]*** Stop cut motor [11:47:39]*** Cut end [11:47:39]Read from MH i2c: 01 07 00 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: 01 07 00 12 4E 00 00 00 00 00 FF 0F 75 [11:47:39]process_action close_receipt done [11:47:39]requested_data is exist [11:47:39]produce_requested_data [11:47:39]requested_item fm.sn is exist - process it [11:47:39]wFMCommunicate request_size=4 [11:47:39]MH_SAM_APDU [11:47:39]CAPDU: 80 11 00 00 [11:47:39]Write to MH i2c: E2 08 00 13 4E 80 11 00 00 00 00 00 00 DB [11:47:39]Write i2c OK [11:47:39]MH_I2C_Read... [11:47:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:47:39]Read from MH i2c: E2 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: E2 17 00 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: E2 17 00 13 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [11:47:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:47:39]wFMCommunicate OK [11:47:39]requested_item fd.num is exist - process it [11:47:39]SAM_PROTO_GetFieldsCounters [11:47:39]wFMCommunicate request_size=4 [11:47:39]MH_SAM_APDU [11:47:39]CAPDU: 80 13 00 00 [11:47:39]Write to MH i2c: E2 08 00 14 4E 80 13 00 00 00 00 00 00 DE [11:47:39]Write i2c OK [11:47:39]MH_I2C_Read... [11:47:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:47:39]Read from MH i2c: E2 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: E2 62 00 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: E2 62 00 14 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [11:47:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FB 00 00 00 5E 04 04 00 FB 00 00 00 57 04 04 00 FC 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:47:39]wFMCommunicate OK [11:47:39]SAM_PROTO_GetFieldsCounters done [11:47:39]requested_item shift.num is exist - process it [11:47:39]requested_item shift.opened is exist - process it [11:47:39]req_shift_opened [11:47:39]FM_GetShiftState [11:47:39]SAM_PROTO_GetShiftState [11:47:39]wFMCommunicate request_size=4 [11:47:39]MH_SAM_APDU [11:47:39]CAPDU: 80 13 01 00 [11:47:39]Write to MH i2c: E2 08 00 15 4E 80 13 01 00 00 00 00 00 E0 [11:47:39]Write i2c OK [11:47:39]MH_I2C_Read... [11:47:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:47:39]Read from MH i2c: E2 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: E2 0E 00 [11:47:39]MH_I2C_Read... [11:47:39]Read from MH i2c: E2 0E 00 15 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D5 [11:47:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:47:39]wFMCommunicate OK [11:47:39]SAM_PROTO_GetShiftState done [11:47:39]FM_GetShiftState done [11:47:39]req_shift_opened done [11:47:39]requested_item shift.open_date is exist - process it [11:47:39]req_shift_open_date [11:47:39]req_shift_open_date done [11:47:39]produce_requested_data done [11:47:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188222,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:47:39]process_action_free close_receipt [11:47:39]json_value_free [11:47:39]json_value_free done [11:47:39]process_json_proto returns [11:47:39]Send response to host [11:47:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188222,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:47:39]free response buf [11:47:39]execute_script done [11:47:39]execute_script returns [11:47:39]free content buf [11:47:39]Sock 10.Close socket [11:47:39]Sock 10.Thread stoped [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:50]accept exits with 9 [11:48:50]New connection [11:48:50]New thread 3067055460 created [11:48:50]Thread 3067198820 joined [11:48:50]Waiting for new connection... [11:48:50] Sock 9.Parse request [11:48:50]Sock 9.Check first char [11:48:50]Sock 9.First char is OK [11:48:50]request: POST /json_proto HTTP/1.0 [11:48:50]Method: POST [11:48:50]URL: /json_proto [11:48:50]Method is POST - this is cgi request [11:48:50]url: /json_proto [11:48:50]query_string will be loaded in cgi processing [11:48:50]execute_cgi json_proto POST (null) [11:48:50]execute_cgi path=json_proto method=POST [11:48:50]POST find Content-Length [11:48:50]Host: 172.17.42.131:8080 [11:48:50]Content-Length: 688 [11:48:50]Content-Type: application/json [11:48:50] [11:48:50]POST finish read [11:48:50]Found Content-Length = 688 [11:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:50]execute_script... [11:48:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210277", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 23.320, "sum" : 1800.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:48:50]POST & json_proto [11:48:50]process_json_proto [11:48:50]json parsed OK: [11:48:50]protocol is kg_v1.0 [11:48:50]action value=close_receipt [11:48:50]process_action close_receipt [11:48:50]cmd_close_receipt [11:48:50]MH_GetDate [11:48:50]Write to MH i2c: F0 00 00 16 4E 53 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: F0 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: F0 09 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: F0 09 00 16 4E 00 26 91 17 67 A0 18 CA 66 79 [11:48:50]GetLastDocTimeStamp 1729597658 [11:48:50]current date 1729597734 [11:48:50]FM_GetShiftState [11:48:50]SAM_PROTO_GetShiftState [11:48:50]wFMCommunicate request_size=4 [11:48:50]MH_SAM_APDU [11:48:50]CAPDU: 80 13 01 00 [11:48:50]Write to MH i2c: E2 08 00 17 4E 80 13 01 00 00 00 00 00 E2 [11:48:50]Write i2c OK [11:48:50]MH_I2C_Read... [11:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:50]Read from MH i2c: E2 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 0E 00 [11:48:50]MH_I2C_Read... [11:48:50]Read from MH i2c: E2 0E 00 17 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D7 [11:48:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:48:50]wFMCommunicate OK [11:48:50]SAM_PROTO_GetShiftState done [11:48:50]FM_GetShiftState done [11:48:50]opened in 1729556094 [11:48:50]opened+sec_in_day 1729642494 [11:48:50]quantity*price = 180030 [11:48:50]sum+1 = 180031 [11:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 252 22.10.2024 11:48 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188223 ФПД: 166482653273577 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114854&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188223&fm=166482653273577&tin=02508201610067®Number=0000000000100030&sum=180000 [11:48:51]StoreToDocumentArchive [11:48:51]shift 461 fd 188223 [11:48:51]save to /storage/0461/doc_00188223 [11:48:51]save last doc name /storage/0461/doc_00188223 to /storage/kkm_last_doc_name [11:48:51]save OK [11:48:51]Clear old archive folders... [11:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:48:51]tlvbuf is 01CDEE70 [11:48:51]SAM_PROTO_ClearQueue [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 09 00 00 [11:48:51]Write to MH i2c: E2 08 00 24 4E 80 09 00 00 00 00 00 00 E4 [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:48:51]Read from MH i2c: E2 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 03 00 [11:48:51]MH_I2C_Read... [11:48:51]Read from MH i2c: E2 03 00 24 4E 00 90 00 E6 [11:48:51]RAPDU: 90 00 [11:48:51]wFMCommunicate OK [11:48:51]SAM_PROTO_ClearQueue done [11:48:51]KKMCreateOFDPacket [11:48:51]OFDProtocolAddRootSTLVToBuf [11:48:51]FM_MakeSignedData [11:48:51]FM_MakeSignedData [11:48:51]SAM_PROTO_SignData [11:48:51]wFMCommunicate request_size=4 [11:48:51]MH_SAM_APDU [11:48:51]CAPDU: 80 0D 01 02 [11:48:51]Write to MH i2c: E2 08 00 25 4E 80 0D 01 02 00 00 00 00 EC [11:48:51]Write i2c OK [11:48:51]MH_I2C_Read... [11:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [11:48:52]RAPDU: 90 00 [11:48:52]wFMCommunicate OK [11:48:52]wFMCommunicate request_size=255 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 26 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DF 02 [11:48:52]Write to MH i2c: E2 02 01 26 4E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 26 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DF 02 00 00 37 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [11:48:52]RAPDU: 90 00 [11:48:52]wFMCommunicate OK [11:48:52]wFMCommunicate request_size=16 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 97 6A 43 68 DD E9 [11:48:52]Write to MH i2c: E2 13 00 27 4E 80 0D 02 02 0B 00 00 35 04 06 00 97 6A 43 68 DD E9 00 00 B6 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 03 00 27 4E 00 90 00 E9 [11:48:52]RAPDU: 90 00 [11:48:52]wFMCommunicate OK [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 0D 03 02 [11:48:52]Write to MH i2c: E2 08 00 28 4E 80 0D 03 02 00 00 00 00 F1 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0B 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 0B 00 28 4E 00 D0 0F A4 D6 93 3D 36 76 90 00 C7 [11:48:52]RAPDU: D0 0F A4 D6 93 3D 36 76 90 00 [11:48:52]wFMCommunicate OK [11:48:52]SAM_PROTO_SignData done [11:48:52]FM_MakeSignedData done [11:48:52]CreateOFDProtocolMessage [11:48:52]wFMCommunicate request_size=4 [11:48:52]MH_SAM_APDU [11:48:52]CAPDU: 80 11 00 00 [11:48:52]Write to MH i2c: E2 08 00 29 4E 80 11 00 00 00 00 00 00 F1 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:52]Read from MH i2c: E2 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 17 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: E2 17 00 29 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [11:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:48:52]wFMCommunicate OK [11:48:52]CreateOFDProtocolMessage done [11:48:52]OFDSenderStorePacket 188223 [11:48:52]StoreOFDPacket docnum=188223 [11:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1F 9B 0D 01 FD AE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 26 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DF 02 00 35 04 06 00 97 6A 43 68 DD E9 D0 0F A4 D6 93 3D 36 76 [11:48:52]CheckFolder [11:48:52]dirname=/storage/ofd_packets [11:48:52]CheckFolder done [11:48:52]ProducePacketName [11:48:52]name=ofd_packets/00188223 [11:48:52]NVStorageSaveData ofd_packets/00188223 [11:48:52]File name is /storage/ofd_packets/00188223 [11:48:52]Write 307 bytes [11:48:52]NVStorageSaveData done [11:48:52]OFDSenderStorePacket done [11:48:52]KKMCreateOFDPacket done [11:48:52]NVStorageSaveData kkm_last_timestamp [11:48:52]File name is /storage/kkm_last_timestamp [11:48:52]Write 4 bytes [11:48:52]NVStorageSaveData done [11:48:52]ExternCall_PrintAddStr [11:48:52]wPrintStart [11:48:52]Write to MH i2c: 01 00 00 2A 4E 78 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 2A 4E 00 00 00 00 00 FF 0F 8D [11:48:52]RasterBufferAndPrint [11:48:52]line Счет N : (1)210277 [11:48:52]line ИНН: 02508201610067 [11:48:52]line Контрольно-Кассовый Чек [11:48:52]line ПРОДАЖА [11:48:52]line ТРК (МРК, ГНК) : 31 [11:48:52]line Товар: 2710194210 [11:48:52]line D-ENERGY ДТ-К-5 [11:48:52]line 23.320 * 77.20 [11:48:52]line = 1800.30 [11:48:52]line НДС 12% НСП 1% [11:48:52]line > о реализуемом товаре [11:48:52]line ОКРУГЛЕНИЕ: -0.30 [11:48:52]line ИТОГО: 1800.00 [11:48:52]line Внесено: 1800.00 [11:48:52]line СДАЧА: 0.00 [11:48:52]line НСП 1% : 15.93 [11:48:52]line НДС 12% : 191.18 [11:48:52]line Наличными: 1800.00 [11:48:52]line Безнал.: 0.00 [11:48:52]line Место: АЗС № 86 "Партнер Нефть" [11:48:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:48:52]line СНО: Общий режим [11:48:52]line Чек 252 22.10.2024 11:48 [11:48:52]line Смена: 461 ФФД: 1.0 [11:48:52]line ЗНМ: 0300000155 [11:48:52]line РНМ: 0000000000100030 [11:48:52]line Версия ККМ: 001 [11:48:52]line ФМ: 0000000000965340 [11:48:52]line ФД: 188223 [11:48:52]line ФПД: 166482653273577 [11:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114854&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188223&fm=166482653273577&tin=02508201610067®Number=0000000000100030&sum=180000 [11:48:52]written 0, free lines is 4095 [11:48:52]OFD Sender: Processing packet 188223 [packets to send 1062, broken 1061] [11:48:52]ProducePacketName [11:48:52]name=ofd_packets/00188223 [11:48:52]OFD Sender: To server: pG, [11:48:52]CommunicateWithHost lk.salyk.kg:30040 [11:48:52]ConnectInit lk.salyk.kg [11:48:52]Connected sock=10 [11:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1F 9B 0D 01 FD AE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 18 5B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3E 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 00 00 00 F4 03 04 00 26 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DF 02 00 35 04 06 00 97 6A 43 68 DD E9 D0 0F A4 D6 93 3D 36 76 [11:48:52]Write to MH i2c: 01 00 00 55 4E A3 [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: 01 07 00 55 4E 00 00 00 00 00 6F 0C 25 [11:48:52]RasterBufferAndPrint [11:48:52]line [11:48:52]line [11:48:52]line [11:48:52]line [11:48:52]line [11:48:52]written 0, free lines is 3186 [11:48:52]MH_Cut [11:48:52]Write to MH i2c: D1 01 00 5C 4E 01 7C [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: D1 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: D1 01 00 [11:48:52]MH_I2C_Read... [11:48:52]Read from MH i2c: D1 01 00 5C 4E 00 7B [11:48:52]Write to MH i2c: 01 00 00 5D 4E AB [11:48:52]Write i2c OK [11:48:52]MH_I2C_Read... [11:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 14 73 47 00 7E F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F DF 02 00 F4 03 04 00 13 3B 17 67 B6 04 01 00 00 61 7B 3B 99 3F 9C A7 D0 [11:48:53]CommunicateWithHost err = 0 [11:48:53]CheckOFDResponse [11:48:53]1017 (14) - 77093643461234 [11:48:53]1041 (16) - 0000000000965340 [11:48:53]1040 (4) - 188223 [11:48:53]1012 (4) - 22.10.2024 05:41 [11:48:53]1206 (1) - 0 [11:48:53]OFD Sender: Remove packet 188223 [11:48:53]ProducePacketName [11:48:53]name=ofd_packets/00188223 [11:48:53]NVStorageDeleteData [11:48:53]OFD Sender: No OFD packet to send [11:48:54]*** Cut start [11:48:54]*** Partial cut [11:48:54]*** CUTSNS_PIN = 1 [11:48:54]*** CUTSNS_PIN = 0 [11:48:54]*** Brake cut motor [11:48:54]Read from MH i2c: 01 [11:48:54]MH_I2C_Read... [11:48:54]*** Stop cut motor [11:48:54]*** Cut end [11:48:54]Read from MH i2c: 01 07 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: 01 07 00 5D 4E 00 00 00 00 00 FF 0F C0 [11:48:54]process_action close_receipt done [11:48:54]requested_data is exist [11:48:54]produce_requested_data [11:48:54]requested_item fm.sn is exist - process it [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 11 00 00 [11:48:54]Write to MH i2c: E2 08 00 5E 4E 80 11 00 00 00 00 00 00 26 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 17 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 17 00 5E 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [11:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:48:54]wFMCommunicate OK [11:48:54]requested_item fd.num is exist - process it [11:48:54]SAM_PROTO_GetFieldsCounters [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 00 00 [11:48:54]Write to MH i2c: E2 08 00 5F 4E 80 13 00 00 00 00 00 00 29 [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 62 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 62 00 5F 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 12 [11:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FC 00 00 00 5E 04 04 00 FC 00 00 00 57 04 04 00 FD 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetFieldsCounters done [11:48:54]requested_item shift.num is exist - process it [11:48:54]requested_item shift.opened is exist - process it [11:48:54]req_shift_opened [11:48:54]FM_GetShiftState [11:48:54]SAM_PROTO_GetShiftState [11:48:54]wFMCommunicate request_size=4 [11:48:54]MH_SAM_APDU [11:48:54]CAPDU: 80 13 01 00 [11:48:54]Write to MH i2c: E2 08 00 60 4E 80 13 01 00 00 00 00 00 2B [11:48:54]Write i2c OK [11:48:54]MH_I2C_Read... [11:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:48:54]Read from MH i2c: E2 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 [11:48:54]MH_I2C_Read... [11:48:54]Read from MH i2c: E2 0E 00 60 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 20 [11:48:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:48:54]wFMCommunicate OK [11:48:54]SAM_PROTO_GetShiftState done [11:48:54]FM_GetShiftState done [11:48:54]req_shift_opened done [11:48:54]requested_item shift.open_date is exist - process it [11:48:54]req_shift_open_date [11:48:54]req_shift_open_date done [11:48:55]produce_requested_data done [11:48:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188223,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:48:55]process_action_free close_receipt [11:48:55]json_value_free [11:48:55]json_value_free done [11:48:55]process_json_proto returns [11:48:55]Send response to host [11:48:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188223,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:48:55]free response buf [11:48:55]execute_script done [11:48:55]execute_script returns [11:48:55]free content buf [11:48:55]Sock 9.Close socket [11:48:55]Sock 9.Thread stoped [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]accept exits with 8 [11:49:48]New connection [11:49:48]New thread 3067198820 created [11:49:48]Thread 3067055460 joined [11:49:48]Waiting for new connection... [11:49:48] Sock 8.Parse request [11:49:48]Sock 8.Check first char [11:49:48]Sock 8.First char is OK [11:49:48]request: POST /json_proto HTTP/1.0 [11:49:48]Method: POST [11:49:48]URL: /json_proto [11:49:48]Method is POST - this is cgi request [11:49:48]url: /json_proto [11:49:48]query_string will be loaded in cgi processing [11:49:48]execute_cgi json_proto POST (null) [11:49:48]execute_cgi path=json_proto method=POST [11:49:48]POST find Content-Length [11:49:48]Host: 172.17.42.131:8080 [11:49:48]Content-Length: 775 [11:49:48]Content-Type: application/json [11:49:48] [11:49:48]POST finish read [11:49:48]Found Content-Length = 775 [11:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:48]execute_script... [11:49: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)210276", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 5000.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:49:48]POST & json_proto [11:49:48]process_json_proto [11:49:48]json parsed OK: [11:49:48]protocol is kg_v1.0 [11:49:48]action value=close_receipt [11:49:48]process_action close_receipt [11:49:48]cmd_close_receipt [11:49:48]MH_GetDate [11:49:48]Write to MH i2c: F0 00 00 61 4E 9E [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: F0 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: F0 09 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: F0 09 00 61 4E 00 60 91 17 67 A0 18 CA 66 FE [11:49:48]GetLastDocTimeStamp 1729597734 [11:49:48]current date 1729597792 [11:49:48]FM_GetShiftState [11:49:48]SAM_PROTO_GetShiftState [11:49:48]wFMCommunicate request_size=4 [11:49:48]MH_SAM_APDU [11:49:48]CAPDU: 80 13 01 00 [11:49:48]Write to MH i2c: E2 08 00 62 4E 80 13 01 00 00 00 00 00 2D [11:49:48]Write i2c OK [11:49:48]MH_I2C_Read... [11:49:48]OFD Sender: No OFD packet to send [11:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:48]Read from MH i2c: E2 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0E 00 [11:49:48]MH_I2C_Read... [11:49:48]Read from MH i2c: E2 0E 00 62 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 22 [11:49:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:49:48]wFMCommunicate OK [11:49:48]SAM_PROTO_GetShiftState done [11:49:48]FM_GetShiftState done [11:49:48]opened in 1729556094 [11:49:48]opened+sec_in_day 1729642494 [11:49:48]quantity*price = 500024 [11:49:48]sum+1 = 500025 [11:49:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 5000.24 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 0.00 Безнал.: 5000.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 253 22.10.2024 11:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188224 ФПД: 214703906466878 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114952&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188224&fm=214703906466878&tin=02508201610067®Number=0000000000100030&sum=500024 [11:49:50]StoreToDocumentArchive [11:49:50]shift 461 fd 188224 [11:49:50]save to /storage/0461/doc_00188224 [11:49:50]save last doc name /storage/0461/doc_00188224 to /storage/kkm_last_doc_name [11:49:50]save OK [11:49:50]Clear old archive folders... [11:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:49:50]tlvbuf is 01CC4C50 [11:49:50]SAM_PROTO_ClearQueue [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 09 00 00 [11:49:50]Write to MH i2c: E2 08 00 6F 4E 80 09 00 00 00 00 00 00 2F [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 6F 4E 00 90 00 31 [11:49:50]RAPDU: 90 00 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_ClearQueue done [11:49:50]KKMCreateOFDPacket [11:49:50]OFDProtocolAddRootSTLVToBuf [11:49:50]FM_MakeSignedData [11:49:50]FM_MakeSignedData [11:49:50]SAM_PROTO_SignData [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 0D 01 02 [11:49:50]Write to MH i2c: E2 08 00 70 4E 80 0D 01 02 00 00 00 00 37 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 70 4E 00 90 00 32 [11:49:50]RAPDU: 90 00 [11:49:50]wFMCommunicate OK [11:49:50]wFMCommunicate request_size=255 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DF 02 [11:49:50]Write to MH i2c: E2 02 01 71 4E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DF 02 00 00 87 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 71 4E 00 90 00 33 [11:49:50]RAPDU: 90 00 [11:49:50]wFMCommunicate OK [11:49:50]wFMCommunicate request_size=16 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C3 45 A6 13 AC 3E [11:49:50]Write to MH i2c: E2 13 00 72 4E 80 0D 02 02 0B 00 00 35 04 06 00 C3 45 A6 13 AC 3E 00 00 3A [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 03 00 72 4E 00 90 00 34 [11:49:50]RAPDU: 90 00 [11:49:50]wFMCommunicate OK [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 0D 03 02 [11:49:50]Write to MH i2c: E2 08 00 73 4E 80 0D 03 02 00 00 00 00 3C [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0B 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 0B 00 73 4E 00 AF 04 BD 94 7A 8B 68 65 90 00 13 [11:49:50]RAPDU: AF 04 BD 94 7A 8B 68 65 90 00 [11:49:50]wFMCommunicate OK [11:49:50]SAM_PROTO_SignData done [11:49:50]FM_MakeSignedData done [11:49:50]CreateOFDProtocolMessage [11:49:50]wFMCommunicate request_size=4 [11:49:50]MH_SAM_APDU [11:49:50]CAPDU: 80 11 00 00 [11:49:50]Write to MH i2c: E2 08 00 74 4E 80 11 00 00 00 00 00 00 3C [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:50]Read from MH i2c: E2 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: E2 17 00 74 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [11:49:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:49:50]wFMCommunicate OK [11:49:50]CreateOFDProtocolMessage done [11:49:50]OFDSenderStorePacket 188224 [11:49:50]StoreOFDPacket docnum=188224 [11:49:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FD 4A 0D 01 E6 36 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DF 02 00 35 04 06 00 C3 45 A6 13 AC 3E AF 04 BD 94 7A 8B 68 65 [11:49:50]CheckFolder [11:49:50]dirname=/storage/ofd_packets [11:49:50]CheckFolder done [11:49:50]ProducePacketName [11:49:50]name=ofd_packets/00188224 [11:49:50]NVStorageSaveData ofd_packets/00188224 [11:49:50]File name is /storage/ofd_packets/00188224 [11:49:50]Write 307 bytes [11:49:50]NVStorageSaveData done [11:49:50]OFDSenderStorePacket done [11:49:50]KKMCreateOFDPacket done [11:49:50]NVStorageSaveData kkm_last_timestamp [11:49:50]File name is /storage/kkm_last_timestamp [11:49:50]Write 4 bytes [11:49:50]NVStorageSaveData done [11:49:50]ExternCall_PrintAddStr [11:49:50]wPrintStart [11:49:50]Write to MH i2c: 01 00 00 75 4E C3 [11:49:50]Write i2c OK [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 [11:49:50]MH_I2C_Read... [11:49:50]Read from MH i2c: 01 07 00 75 4E 00 00 00 00 00 FF 0F D8 [11:49:50]RasterBufferAndPrint [11:49:50]line Счет N : (1)210276 [11:49:50]line ИНН: 02508201610067 [11:49:50]line Контрольно-Кассовый Чек [11:49:50]line ПРОДАЖА [11:49:50]line ТРК (МРК, ГНК) : 41 [11:49:50]line Товар: 2710194210 [11:49:50]line D-ENERGY ДТ-К-5 [11:49:50]line 64.770 * 77.20 [11:49:50]line = 5000.24 [11:49:50]line НДС 12% НСП 1% [11:49:50]line > о реализуемом товаре [11:49:50]line ИТОГО: 5000.24 [11:49:50]line НСП 1% : 44.25 [11:49:50]line НДС 12% : 531.00 [11:49:50]line Наличными: 0.00 [11:49:50]line Безнал.: 5000.24 [11:49:50]line Место: АЗС № 86 "Партнер Нефть" [11:49:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:49:50]line СНО: Общий режим [11:49:50]line Чек 253 22.10.2024 11:49 [11:49:50]line Смена: 461 ФФД: 1.0 [11:49:50]line ЗНМ: 0300000155 [11:49:50]line РНМ: 0000000000100030 [11:49:50]line Версия ККМ: 001 [11:49:50]line Платежная система: Mbank [11:49:50]line ФМ: 0000000000965340 [11:49:50]line ФД: 188224 [11:49:50]line ФПД: 214703906466878 [11:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T114952&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188224&fm=214703906466878&tin=02508201610067®Number=0000000000100030&sum=500024 [11:49:50]written 0, free lines is 4095 [11:49:50]OFD Sender: Processing packet 188224 [packets to send 1062, broken 1061] [11:49:50]ProducePacketName [11:49:50]name=ofd_packets/00188224 [11:49:50]OFD Sender: To server: pG, [11:49:50]CommunicateWithHost lk.salyk.kg:30040 [11:49:50]ConnectInit lk.salyk.kg [11:49:50]Connected sock=9 [11:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FD 4A 0D 01 E6 36 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 38 A1 07 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 00 00 00 F4 03 04 00 60 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DF 02 00 35 04 06 00 C3 45 A6 13 AC 3E AF 04 BD 94 7A 8B 68 65 [11:49:51]Write to MH i2c: 01 00 00 9E 4E EC [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: 01 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: 01 07 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: 01 07 00 9E 4E 00 00 00 00 00 A8 0C A7 [11:49:51]RasterBufferAndPrint [11:49:51]line [11:49:51]line [11:49:51]line [11:49:51]line [11:49:51]line [11:49:51]written 0, free lines is 3243 [11:49:51]MH_Cut [11:49:51]Write to MH i2c: D1 01 00 A5 4E 01 C5 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: D1 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: D1 01 00 [11:49:51]MH_I2C_Read... [11:49:51]Read from MH i2c: D1 01 00 A5 4E 00 C4 [11:49:51]Write to MH i2c: 01 00 00 A6 4E F4 [11:49:51]Write i2c OK [11:49:51]MH_I2C_Read... [11:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AD 5F 47 00 04 07 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 DF 02 00 F4 03 04 00 4D 3B 17 67 B6 04 01 00 00 C7 3B CC AD DA 8E D7 8B [11:49:51]CommunicateWithHost err = 0 [11:49:51]CheckOFDResponse [11:49:51]1017 (14) - 77093643461234 [11:49:51]1041 (16) - 0000000000965340 [11:49:51]1040 (4) - 188224 [11:49:51]1012 (4) - 22.10.2024 05:42 [11:49:51]1206 (1) - 0 [11:49:51]OFD Sender: Remove packet 188224 [11:49:51]ProducePacketName [11:49:51]name=ofd_packets/00188224 [11:49:51]NVStorageDeleteData [11:49:51]OFD Sender: No OFD packet to send [11:49:52]*** Cut start [11:49:52]*** Partial cut [11:49:52]*** CUTSNS_PIN = 1 [11:49:52]*** CUTSNS_PIN = 0 [11:49:52]*** Brake cut motor [11:49:52]Read from MH i2c: 01 [11:49:52]MH_I2C_Read... [11:49:52]*** Stop cut motor [11:49:52]*** Cut end [11:49:52]Read from MH i2c: 01 07 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: 01 07 00 A6 4E 00 00 00 00 00 FF 0F 09 [11:49:52]process_action close_receipt done [11:49:52]requested_data is exist [11:49:52]produce_requested_data [11:49:52]requested_item fm.sn is exist - process it [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 11 00 00 [11:49:52]Write to MH i2c: E2 08 00 A7 4E 80 11 00 00 00 00 00 00 6F [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:49:52]Read from MH i2c: E2 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 17 00 [11:49:52]MH_I2C_Read... [11:49:52]Read from MH i2c: E2 17 00 A7 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [11:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:49:52]wFMCommunicate OK [11:49:52]requested_item fd.num is exist - process it [11:49:52]SAM_PROTO_GetFieldsCounters [11:49:52]wFMCommunicate request_size=4 [11:49:52]MH_SAM_APDU [11:49:52]CAPDU: 80 13 00 00 [11:49:52]Write to MH i2c: E2 08 00 A8 4E 80 13 00 00 00 00 00 00 72 [11:49:52]Write i2c OK [11:49:52]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 62 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 62 00 A8 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 5F [11:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FD 00 00 00 5E 04 04 00 FD 00 00 00 57 04 04 00 FE 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:49:53]wFMCommunicate OK [11:49:53]SAM_PROTO_GetFieldsCounters done [11:49:53]requested_item shift.num is exist - process it [11:49:53]requested_item shift.opened is exist - process it [11:49:53]req_shift_opened [11:49:53]FM_GetShiftState [11:49:53]SAM_PROTO_GetShiftState [11:49:53]wFMCommunicate request_size=4 [11:49:53]MH_SAM_APDU [11:49:53]CAPDU: 80 13 01 00 [11:49:53]Write to MH i2c: E2 08 00 A9 4E 80 13 01 00 00 00 00 00 74 [11:49:53]Write i2c OK [11:49:53]MH_I2C_Read... [11:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:49:53]Read from MH i2c: E2 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 0E 00 [11:49:53]MH_I2C_Read... [11:49:53]Read from MH i2c: E2 0E 00 A9 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 69 [11:49:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:49:53]wFMCommunicate OK [11:49:53]SAM_PROTO_GetShiftState done [11:49:53]FM_GetShiftState done [11:49:53]req_shift_opened done [11:49:53]requested_item shift.open_date is exist - process it [11:49:53]req_shift_open_date [11:49:53]req_shift_open_date done [11:49:53]produce_requested_data done [11:49:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188224,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:49:53]process_action_free close_receipt [11:49:53]json_value_free [11:49:53]json_value_free done [11:49:53]process_json_proto returns [11:49:53]Send response to host [11:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188224,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:49:53]free response buf [11:49:53]execute_script done [11:49:53]execute_script returns [11:49:53]free content buf [11:49:53]Sock 8.Close socket [11:49:53]Sock 8.Thread stoped [11:49:56]OFD Sender: No OFD packet to send [11:50:01]OFD Sender: No OFD packet to send [11:50:06]OFD Sender: No OFD packet to send [11:50:11]OFD Sender: No OFD packet to send [11:50:16]OFD Sender: No OFD packet to send [11:50:19]accept exits with 10 [11:50:19]New connection [11:50:19]New thread 3067055460 created [11:50:19]Thread 3067198820 joined [11:50:19]Waiting for new connection... [11:50:19] Sock 10.Parse request [11:50:19]Sock 10.Check first char [11:50:19]Sock 10.First char is OK [11:50:19]request: POST /json_proto HTTP/1.0 [11:50:19]Method: POST [11:50:19]URL: /json_proto [11:50:19]Method is POST - this is cgi request [11:50:19]url: /json_proto [11:50:19]query_string will be loaded in cgi processing [11:50:19]execute_cgi json_proto POST (null) [11:50:19]execute_cgi path=json_proto method=POST [11:50:19]POST find Content-Length [11:50:19]Host: 172.17.42.131:8080 [11:50:19]Content-Length: 682 [11:50:19]Content-Type: application/json [11:50:19] [11:50:19]POST finish read [11:50:19]Found Content-Length = 682 [11:50:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [11:50:19]execute_script... [11:50:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210278", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [11:50:19]POST & json_proto [11:50:19]process_json_proto [11:50:19]json parsed OK: [11:50:19]protocol is kg_v1.0 [11:50:19]action value=close_receipt [11:50:19]process_action close_receipt [11:50:19]cmd_close_receipt [11:50:19]MH_GetDate [11:50:19]Write to MH i2c: F0 00 00 AA 4E E7 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: F0 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: F0 09 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: F0 09 00 AA 4E 00 7E 91 17 67 A0 18 CA 66 65 [11:50:19]GetLastDocTimeStamp 1729597792 [11:50:19]current date 1729597822 [11:50:19]FM_GetShiftState [11:50:19]SAM_PROTO_GetShiftState [11:50:19]wFMCommunicate request_size=4 [11:50:19]MH_SAM_APDU [11:50:19]CAPDU: 80 13 01 00 [11:50:19]Write to MH i2c: E2 08 00 AB 4E 80 13 01 00 00 00 00 00 76 [11:50:19]Write i2c OK [11:50:19]MH_I2C_Read... [11:50:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:19]Read from MH i2c: E2 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0E 00 [11:50:19]MH_I2C_Read... [11:50:19]Read from MH i2c: E2 0E 00 AB 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6B [11:50:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:50:19]wFMCommunicate OK [11:50:19]SAM_PROTO_GetShiftState done [11:50:19]FM_GetShiftState done [11:50:19]opened in 1729556094 [11:50:19]opened+sec_in_day 1729642494 [11:50:19]quantity*price = 200043 [11:50:19]sum+1 = 200044 [11:50:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 254 22.10.2024 11:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188225 ФПД: 94836607167018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188225&fm=94836607167018&tin=02508201610067®Number=0000000000100030&sum=200000 [11:50:20]StoreToDocumentArchive [11:50:20]shift 461 fd 188225 [11:50:20]save to /storage/0461/doc_00188225 [11:50:20]save last doc name /storage/0461/doc_00188225 to /storage/kkm_last_doc_name [11:50:20]save OK [11:50:20]Clear old archive folders... [11:50:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:50:20]tlvbuf is 01CDC6D0 [11:50:20]SAM_PROTO_ClearQueue [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 09 00 00 [11:50:20]Write to MH i2c: E2 08 00 B8 4E 80 09 00 00 00 00 00 00 78 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 B8 4E 00 90 00 7A [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]SAM_PROTO_ClearQueue done [11:50:20]KKMCreateOFDPacket [11:50:20]OFDProtocolAddRootSTLVToBuf [11:50:20]FM_MakeSignedData [11:50:20]FM_MakeSignedData [11:50:20]SAM_PROTO_SignData [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 01 02 [11:50:20]Write to MH i2c: E2 08 00 B9 4E 80 0D 01 02 00 00 00 00 80 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 B9 4E 00 90 00 7B [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]wFMCommunicate request_size=255 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FE 00 00 00 F4 03 04 00 7E 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DF 02 00 35 04 06 00 56 [11:50:20]Write to MH i2c: E2 02 01 BA 4E 80 0D 02 02 FA 00 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 FE 00 00 00 F4 03 04 00 7E 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DF 02 00 35 04 06 00 56 00 00 6C [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 BA 4E 00 90 00 7C [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]wFMCommunicate request_size=10 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 02 02 05 40 DE 48 2A 2A [11:50:20]Write to MH i2c: E2 0D 00 BB 4E 80 0D 02 02 05 00 40 DE 48 2A 2A 00 00 47 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 03 00 BB 4E 00 90 00 7D [11:50:20]RAPDU: 90 00 [11:50:20]wFMCommunicate OK [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 0D 03 02 [11:50:20]Write to MH i2c: E2 08 00 BC 4E 80 0D 03 02 00 00 00 00 85 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:50:20]Read from MH i2c: E2 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 0B 00 [11:50:20]MH_I2C_Read... [11:50:20]Read from MH i2c: E2 0B 00 BC 4E 00 E7 D1 4F E9 5F 88 4C 54 90 00 FD [11:50:20]RAPDU: E7 D1 4F E9 5F 88 4C 54 90 00 [11:50:20]wFMCommunicate OK [11:50:20]SAM_PROTO_SignData done [11:50:20]FM_MakeSignedData done [11:50:20]CreateOFDProtocolMessage [11:50:20]wFMCommunicate request_size=4 [11:50:20]MH_SAM_APDU [11:50:20]CAPDU: 80 11 00 00 [11:50:20]Write to MH i2c: E2 08 00 BD 4E 80 11 00 00 00 00 00 00 85 [11:50:20]Write i2c OK [11:50:20]MH_I2C_Read... [11:50:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:21]Read from MH i2c: E2 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 17 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: E2 17 00 BD 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [11:50:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:50:21]wFMCommunicate OK [11:50:21]CreateOFDProtocolMessage done [11:50:21]OFDSenderStorePacket 188225 [11:50:21]StoreOFDPacket docnum=188225 [11:50:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 01 C0 07 01 D7 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 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 FE 00 00 00 F4 03 04 00 7E 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DF 02 00 35 04 06 00 56 40 DE 48 2A 2A E7 D1 4F E9 5F 88 4C 54 [11:50:21]CheckFolder [11:50:21]dirname=/storage/ofd_packets [11:50:21]CheckFolder done [11:50:21]ProducePacketName [11:50:21]name=ofd_packets/00188225 [11:50:21]NVStorageSaveData ofd_packets/00188225 [11:50:21]File name is /storage/ofd_packets/00188225 [11:50:21]Write 301 bytes [11:50:21]NVStorageSaveData done [11:50:21]OFDSenderStorePacket done [11:50:21]KKMCreateOFDPacket done [11:50:21]NVStorageSaveData kkm_last_timestamp [11:50:21]File name is /storage/kkm_last_timestamp [11:50:21]Write 4 bytes [11:50:21]NVStorageSaveData done [11:50:21]ExternCall_PrintAddStr [11:50:21]wPrintStart [11:50:21]Write to MH i2c: 01 00 00 BE 4E 0C [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 BE 4E 00 00 00 00 00 FF 0F 21 [11:50:21]RasterBufferAndPrint [11:50:21]line Счет N : (1)210278 [11:50:21]line ИНН: 02508201610067 [11:50:21]line Контрольно-Кассовый Чек [11:50:21]line ПРОДАЖА [11:50:21]line ТРК (МРК, ГНК) : 13 [11:50:21]line Товар: 2710124500 [11:50:21]line Аи-95-К-3 [11:50:21]line 26.960 * 74.20 [11:50:21]line = 2000.43 [11:50:21]line НДС 12% НСП 1% [11:50:21]line > о реализуемом товаре [11:50:21]line ОКРУГЛЕНИЕ: -0.43 [11:50:21]line ИТОГО: 2000.00 [11:50:21]line Внесено: 2000.00 [11:50:21]line СДАЧА: 0.00 [11:50:21]line НСП 1% : 17.70 [11:50:21]line НДС 12% : 212.43 [11:50:21]line Наличными: 2000.00 [11:50:21]line Безнал.: 0.00 [11:50:21]line Место: АЗС № 86 "Партнер Нефть" [11:50:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:50:21]line СНО: Общий режим [11:50:21]line Чек 254 22.10.2024 11:50 [11:50:21]line Смена: 461 ФФД: 1.0 [11:50:21]line ЗНМ: 0300000155 [11:50:21]line РНМ: 0000000000100030 [11:50:21]line Версия ККМ: 001 [11:50:21]line ФМ: 0000000000965340 [11:50:21]line ФД: 188225 [11:50:21]line ФПД: 94836607167018 [11:50:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188225&fm=94836607167018&tin=02508201610067®Number=0000000000100030&sum=200000 [11:50:21]written 0, free lines is 4095 [11:50:21]OFD Sender: Processing packet 188225 [packets to send 1062, broken 1061] [11:50:21]ProducePacketName [11:50:21]name=ofd_packets/00188225 [11:50:21]OFD Sender: To server: pG, [11:50:21]CommunicateWithHost lk.salyk.kg:30040 [11:50:21]ConnectInit lk.salyk.kg [11:50:21]Connected sock=9 [11:50:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 01 C0 07 01 D7 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 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 FE 00 00 00 F4 03 04 00 7E 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DF 02 00 35 04 06 00 56 40 DE 48 2A 2A E7 D1 4F E9 5F 88 4C 54 [11:50:21]Write to MH i2c: 01 00 00 E9 4E 37 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: 01 07 00 E9 4E 00 00 00 00 00 75 0C BF [11:50:21]RasterBufferAndPrint [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]line [11:50:21]written 0, free lines is 3193 [11:50:21]MH_Cut [11:50:21]Write to MH i2c: D1 01 00 F0 4E 01 10 [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 01 00 [11:50:21]MH_I2C_Read... [11:50:21]Read from MH i2c: D1 01 00 F0 4E 00 0F [11:50:21]Write to MH i2c: 01 00 00 F1 4E 3F [11:50:21]Write i2c OK [11:50:21]MH_I2C_Read... [11:50:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 66 47 00 7D 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 DF 02 00 F4 03 04 00 6B 3B 17 67 B6 04 01 00 00 EA D9 D0 A0 70 18 9F 55 [11:50:21]CommunicateWithHost err = 0 [11:50:21]CheckOFDResponse [11:50:21]1017 (14) - 77093643461234 [11:50:21]1041 (16) - 0000000000965340 [11:50:21]1040 (4) - 188225 [11:50:21]1012 (4) - 22.10.2024 05:43 [11:50:21]1206 (1) - 0 [11:50:21]OFD Sender: Remove packet 188225 [11:50:21]ProducePacketName [11:50:21]name=ofd_packets/00188225 [11:50:21]NVStorageDeleteData [11:50:22]OFD Sender: No OFD packet to send [11:50:22]*** Cut start [11:50:22]*** Partial cut [11:50:22]*** CUTSNS_PIN = 1 [11:50:22]*** CUTSNS_PIN = 0 [11:50:22]*** Brake cut motor [11:50:23]Read from MH i2c: 01 [11:50:23]MH_I2C_Read... [11:50:23]*** Stop cut motor [11:50:23]*** Cut end [11:50:23]Read from MH i2c: 01 07 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: 01 07 00 F1 4E 00 00 00 00 00 FF 0F 54 [11:50:23]process_action close_receipt done [11:50:23]requested_data is exist [11:50:23]produce_requested_data [11:50:23]requested_item fm.sn is exist - process it [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 11 00 00 [11:50:23]Write to MH i2c: E2 08 00 F2 4E 80 11 00 00 00 00 00 00 BA [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 17 00 F2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [11:50:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:50:23]wFMCommunicate OK [11:50:23]requested_item fd.num is exist - process it [11:50:23]SAM_PROTO_GetFieldsCounters [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 13 00 00 [11:50:23]Write to MH i2c: E2 08 00 F3 4E 80 13 00 00 00 00 00 00 BD [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 62 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 62 00 F3 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 AE [11:50:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FE 00 00 00 5E 04 04 00 FE 00 00 00 57 04 04 00 FF 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_GetFieldsCounters done [11:50:23]requested_item shift.num is exist - process it [11:50:23]requested_item shift.opened is exist - process it [11:50:23]req_shift_opened [11:50:23]FM_GetShiftState [11:50:23]SAM_PROTO_GetShiftState [11:50:23]wFMCommunicate request_size=4 [11:50:23]MH_SAM_APDU [11:50:23]CAPDU: 80 13 01 00 [11:50:23]Write to MH i2c: E2 08 00 F4 4E 80 13 01 00 00 00 00 00 BF [11:50:23]Write i2c OK [11:50:23]MH_I2C_Read... [11:50:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:50:23]Read from MH i2c: E2 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0E 00 [11:50:23]MH_I2C_Read... [11:50:23]Read from MH i2c: E2 0E 00 F4 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B4 [11:50:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:50:23]wFMCommunicate OK [11:50:23]SAM_PROTO_GetShiftState done [11:50:23]FM_GetShiftState done [11:50:23]req_shift_opened done [11:50:23]requested_item shift.open_date is exist - process it [11:50:23]req_shift_open_date [11:50:23]req_shift_open_date done [11:50:23]produce_requested_data done [11:50:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188225,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:50:23]process_action_free close_receipt [11:50:23]json_value_free [11:50:23]json_value_free done [11:50:23]process_json_proto returns [11:50:23]Send response to host [11:50:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188225,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:50:23]free response buf [11:50:23]execute_script done [11:50:23]execute_script returns [11:50:23]free content buf [11:50:23]Sock 10.Close socket [11:50:23]Sock 10.Thread stoped [11:50:27]OFD Sender: No OFD packet to send [11:50:32]OFD Sender: No OFD packet to send [11:50:37]OFD Sender: No OFD packet to send [11:50:42]OFD Sender: No OFD packet to send [11:50:47]OFD Sender: No OFD packet to send [11:50:52]OFD Sender: No OFD packet to send [11:50:57]OFD Sender: No OFD packet to send [11:51:02]OFD Sender: No OFD packet to send [11:51:07]OFD Sender: No OFD packet to send [11:51:12]OFD Sender: No OFD packet to send [11:51:17]OFD Sender: No OFD packet to send [11:51:22]OFD Sender: No OFD packet to send [11:51:27]OFD Sender: No OFD packet to send [11:51:32]OFD Sender: No OFD packet to send [11:51:37]OFD Sender: No OFD packet to send [11:51:42]OFD Sender: No OFD packet to send [11:51:47]OFD Sender: No OFD packet to send [11:51:52]OFD Sender: No OFD packet to send [11:51:57]OFD Sender: No OFD packet to send [11:52:02]OFD Sender: No OFD packet to send [11:52:07]OFD Sender: No OFD packet to send [11:52:12]accept exits with 8 [11:52:12]New connection [11:52:12]New thread 3067198820 created [11:52:12]Thread 3067055460 joined [11:52:12]Waiting for new connection... [11:52:12] Sock 8.Parse request [11:52:12]Sock 8.Check first char [11:52:12]Sock 8.First char is OK [11:52:12]request: POST /json_proto HTTP/1.0 [11:52:12]Method: POST [11:52:12]URL: /json_proto [11:52:12]Method is POST - this is cgi request [11:52:12]url: /json_proto [11:52:12]query_string will be loaded in cgi processing [11:52:12]execute_cgi json_proto POST (null) [11:52:12]execute_cgi path=json_proto method=POST [11:52:12]POST find Content-Length [11:52:12]Host: 172.17.42.131:8080 [11:52:12]Content-Length: 688 [11:52:12]Content-Type: application/json [11:52:12] [11:52:12]POST finish read [11:52:12]Found Content-Length = 688 [11:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:52:12]execute_script... [11: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)210280", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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:52:12]POST & json_proto [11:52:12]process_json_proto [11:52:12]json parsed OK: [11:52:12]protocol is kg_v1.0 [11:52:12]action value=close_receipt [11:52:12]process_action close_receipt [11:52:12]cmd_close_receipt [11:52:12]MH_GetDate [11:52:12]Write to MH i2c: F0 00 00 F5 4E 32 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: F0 09 00 F5 4E 00 EF 91 17 67 A0 18 CA 66 21 [11:52:12]GetLastDocTimeStamp 1729597822 [11:52:12]current date 1729597935 [11:52:12]FM_GetShiftState [11:52:12]SAM_PROTO_GetShiftState [11:52:12]wFMCommunicate request_size=4 [11:52:12]MH_SAM_APDU [11:52:12]CAPDU: 80 13 01 00 [11:52:12]Write to MH i2c: E2 08 00 F6 4E 80 13 01 00 00 00 00 00 C1 [11:52:12]Write i2c OK [11:52:12]MH_I2C_Read... [11:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:12]Read from MH i2c: E2 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 [11:52:12]MH_I2C_Read... [11:52:12]Read from MH i2c: E2 0E 00 F6 4E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B6 [11:52:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:52:12]wFMCommunicate OK [11:52:12]SAM_PROTO_GetShiftState done [11:52:12]FM_GetShiftState done [11:52:12]opened in 1729556094 [11:52:12]opened+sec_in_day 1729642494 [11:52:12]quantity*price = 100051 [11:52:12]sum+1 = 100052 [11: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 255 22.10.2024 11:52 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188226 ФПД: 135067949188546 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188226&fm=135067949188546&tin=02508201610067®Number=0000000000100030&sum=100000 [11:52:13]StoreToDocumentArchive [11:52:13]shift 461 fd 188226 [11:52:13]save to /storage/0461/doc_00188226 [11:52:13]save last doc name /storage/0461/doc_00188226 to /storage/kkm_last_doc_name [11:52:13]save OK [11:52:13]Clear old archive folders... [11:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:52:13]tlvbuf is 01C34910 [11:52:13]SAM_PROTO_ClearQueue [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 09 00 00 [11:52:13]Write to MH i2c: E2 08 00 03 4F 80 09 00 00 00 00 00 00 C4 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 03 4F 00 90 00 C6 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_ClearQueue done [11:52:13]KKMCreateOFDPacket [11:52:13]OFDProtocolAddRootSTLVToBuf [11:52:13]FM_MakeSignedData [11:52:13]FM_MakeSignedData [11:52:13]SAM_PROTO_SignData [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 01 02 [11:52:13]Write to MH i2c: E2 08 00 04 4F 80 0D 01 02 00 00 00 00 CC [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 04 4F 00 90 00 C7 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=255 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 FF 00 00 00 F4 03 04 00 EF 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DF 02 [11:52:13]Write to MH i2c: E2 02 01 05 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 FF 00 00 00 F4 03 04 00 EF 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DF 02 00 00 17 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 05 4F 00 90 00 C8 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=16 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7A D7 F5 21 C5 C2 [11:52:13]Write to MH i2c: E2 13 00 06 4F 80 0D 02 02 0B 00 00 35 04 06 00 7A D7 F5 21 C5 C2 00 00 12 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 03 00 06 4F 00 90 00 C9 [11:52:13]RAPDU: 90 00 [11:52:13]wFMCommunicate OK [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 0D 03 02 [11:52:13]Write to MH i2c: E2 08 00 07 4F 80 0D 03 02 00 00 00 00 D1 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 0B 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 0B 00 07 4F 00 DB 58 6A 5B CC 58 EF 76 90 00 53 [11:52:13]RAPDU: DB 58 6A 5B CC 58 EF 76 90 00 [11:52:13]wFMCommunicate OK [11:52:13]SAM_PROTO_SignData done [11:52:13]FM_MakeSignedData done [11:52:13]CreateOFDProtocolMessage [11:52:13]wFMCommunicate request_size=4 [11:52:13]MH_SAM_APDU [11:52:13]CAPDU: 80 11 00 00 [11:52:13]Write to MH i2c: E2 08 00 08 4F 80 11 00 00 00 00 00 00 D1 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:13]Read from MH i2c: E2 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 17 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: E2 17 00 08 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [11:52:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:52:13]wFMCommunicate OK [11:52:13]CreateOFDProtocolMessage done [11:52:13]OFDSenderStorePacket 188226 [11:52:13]StoreOFDPacket docnum=188226 [11:52:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A8 31 0D 01 B2 CC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 FF 00 00 00 F4 03 04 00 EF 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DF 02 00 35 04 06 00 7A D7 F5 21 C5 C2 DB 58 6A 5B CC 58 EF 76 [11:52:13]CheckFolder [11:52:13]dirname=/storage/ofd_packets [11:52:13]CheckFolder done [11:52:13]ProducePacketName [11:52:13]name=ofd_packets/00188226 [11:52:13]NVStorageSaveData ofd_packets/00188226 [11:52:13]File name is /storage/ofd_packets/00188226 [11:52:13]Write 307 bytes [11:52:13]NVStorageSaveData done [11:52:13]OFDSenderStorePacket done [11:52:13]KKMCreateOFDPacket done [11:52:13]NVStorageSaveData kkm_last_timestamp [11:52:13]File name is /storage/kkm_last_timestamp [11:52:13]Write 4 bytes [11:52:13]NVStorageSaveData done [11:52:13]ExternCall_PrintAddStr [11:52:13]wPrintStart [11:52:13]Write to MH i2c: 01 00 00 09 4F 58 [11:52:13]Write i2c OK [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 07 00 [11:52:13]MH_I2C_Read... [11:52:13]Read from MH i2c: 01 07 00 09 4F 00 00 00 00 00 FF 0F 6D [11:52:13]RasterBufferAndPrint [11:52:13]line Счет N : (1)210280 [11:52:13]line ИНН: 02508201610067 [11:52:13]line Контрольно-Кассовый Чек [11:52:13]line ПРОДАЖА [11:52:13]line ТРК (МРК, ГНК) : 41 [11:52:13]line Товар: 2710194210 [11:52:13]line D-ENERGY ДТ-К-5 [11:52:13]line 12.960 * 77.20 [11:52:13]line = 1000.51 [11:52:13]line НДС 12% НСП 1% [11:52:13]line > о реализуемом товаре [11:52:13]line ОКРУГЛЕНИЕ: -0.51 [11:52:13]line ИТОГО: 1000.00 [11:52:13]line Внесено: 1000.00 [11:52:13]line СДАЧА: 0.00 [11:52:13]line НСП 1% : 8.85 [11:52:13]line НДС 12% : 106.25 [11:52:13]line Наличными: 1000.00 [11:52:13]line Безнал.: 0.00 [11:52:13]line Место: АЗС № 86 "Партнер Нефть" [11:52:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:52:13]line СНО: Общий режим [11:52:13]line Чек 255 22.10.2024 11:52 [11:52:13]line Смена: 461 ФФД: 1.0 [11:52:13]line ЗНМ: 0300000155 [11:52:13]line РНМ: 0000000000100030 [11:52:13]line Версия ККМ: 001 [11:52:13]line ФМ: 0000000000965340 [11:52:13]line ФД: 188226 [11:52:13]line ФПД: 135067949188546 [11:52:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115215&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188226&fm=135067949188546&tin=02508201610067®Number=0000000000100030&sum=100000 [11:52:13]written 0, free lines is 4095 [11:52:13]OFD Sender: Processing packet 188226 [packets to send 1062, broken 1061] [11:52:13]ProducePacketName [11:52:13]name=ofd_packets/00188226 [11:52:13]OFD Sender: To server: pG, [11:52:13]CommunicateWithHost lk.salyk.kg:30040 [11:52:13]ConnectInit lk.salyk.kg [11:52:14]Connected sock=10 [11:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A8 31 0D 01 B2 CC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 FF 00 00 00 F4 03 04 00 EF 91 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DF 02 00 35 04 06 00 7A D7 F5 21 C5 C2 DB 58 6A 5B CC 58 EF 76 [11:52:14]Write to MH i2c: 01 00 00 34 4F 83 [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: 01 07 00 34 4F 00 00 00 00 00 74 0C 0A [11:52:14]RasterBufferAndPrint [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]line [11:52:14]written 0, free lines is 3192 [11:52:14]MH_Cut [11:52:14]Write to MH i2c: D1 01 00 3B 4F 01 5C [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 01 00 [11:52:14]MH_I2C_Read... [11:52:14]Read from MH i2c: D1 01 00 3B 4F 00 5B [11:52:14]Write to MH i2c: 01 00 00 3C 4F 8B [11:52:14]Write i2c OK [11:52:14]MH_I2C_Read... [11:52:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2F AA 47 00 6C BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 DF 02 00 F4 03 04 00 DC 3B 17 67 B6 04 01 00 00 EB 05 4B 05 6F A2 54 46 [11:52:14]CommunicateWithHost err = 0 [11:52:14]CheckOFDResponse [11:52:14]1017 (14) - 77093643461234 [11:52:14]1041 (16) - 0000000000965340 [11:52:14]1040 (4) - 188226 [11:52:14]1012 (4) - 22.10.2024 05:45 [11:52:14]1206 (1) - 0 [11:52:14]OFD Sender: Remove packet 188226 [11:52:14]ProducePacketName [11:52:14]name=ofd_packets/00188226 [11:52:14]NVStorageDeleteData [11:52:14]OFD Sender: No OFD packet to send [11:52:15]*** Cut start [11:52:15]*** Partial cut [11:52:15]*** CUTSNS_PIN = 1 [11:52:15]*** CUTSNS_PIN = 0 [11:52:15]*** Brake cut motor [11:52:16]Read from MH i2c: 01 [11:52:16]MH_I2C_Read... [11:52:16]*** Stop cut motor [11:52:16]*** Cut end [11:52:16]Read from MH i2c: 01 07 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: 01 07 00 3C 4F 00 00 00 00 00 FF 0F A0 [11:52:16]process_action close_receipt done [11:52:16]requested_data is exist [11:52:16]produce_requested_data [11:52:16]requested_item fm.sn is exist - process it [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 11 00 00 [11:52:16]Write to MH i2c: E2 08 00 3D 4F 80 11 00 00 00 00 00 00 06 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 17 00 3D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [11:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:52:16]wFMCommunicate OK [11:52:16]requested_item fd.num is exist - process it [11:52:16]SAM_PROTO_GetFieldsCounters [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 00 00 [11:52:16]Write to MH i2c: E2 08 00 3E 4F 80 13 00 00 00 00 00 00 09 [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 62 00 3E 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 FF [11:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FF 00 00 00 5E 04 04 00 FF 00 00 00 57 04 04 00 00 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetFieldsCounters done [11:52:16]requested_item shift.num is exist - process it [11:52:16]requested_item shift.opened is exist - process it [11:52:16]req_shift_opened [11:52:16]FM_GetShiftState [11:52:16]SAM_PROTO_GetShiftState [11:52:16]wFMCommunicate request_size=4 [11:52:16]MH_SAM_APDU [11:52:16]CAPDU: 80 13 01 00 [11:52:16]Write to MH i2c: E2 08 00 3F 4F 80 13 01 00 00 00 00 00 0B [11:52:16]Write i2c OK [11:52:16]MH_I2C_Read... [11:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:52:16]Read from MH i2c: E2 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 [11:52:16]MH_I2C_Read... [11:52:16]Read from MH i2c: E2 0E 00 3F 4F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 00 [11:52:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:52:16]wFMCommunicate OK [11:52:16]SAM_PROTO_GetShiftState done [11:52:16]FM_GetShiftState done [11:52:16]req_shift_opened done [11:52:16]requested_item shift.open_date is exist - process it [11:52:16]req_shift_open_date [11:52:16]req_shift_open_date done [11:52:16]produce_requested_data done [11:52:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188226,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:52:16]process_action_free close_receipt [11:52:16]json_value_free [11:52:16]json_value_free done [11:52:16]process_json_proto returns [11:52:16]Send response to host [11:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188226,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:52:16]free response buf [11:52:16]execute_script done [11:52:16]execute_script returns [11:52:16]free content buf [11:52:16]Sock 8.Close socket [11:52:16]Sock 8.Thread stoped [11:52:20]OFD Sender: No OFD packet to send [11:52:25]OFD Sender: No OFD packet to send [11:52:30]OFD Sender: No OFD packet to send [11:52:35]OFD Sender: No OFD packet to send [11:52:40]OFD Sender: No OFD packet to send [11:52:45]OFD Sender: No OFD packet to send [11:52:50]OFD Sender: No OFD packet to send [11:52:55]OFD Sender: No OFD packet to send [11:53:00]OFD Sender: No OFD packet to send [11:53:05]OFD Sender: No OFD packet to send [11:53:10]OFD Sender: No OFD packet to send [11:53:11]accept exits with 9 [11:53:11]New connection [11:53:11]New thread 3067055460 created [11:53:11]Thread 3067198820 joined [11:53:11]Waiting for new connection... [11:53:11] Sock 9.Parse request [11:53:11]Sock 9.Check first char [11:53:11]Sock 9.First char is OK [11:53:11]request: POST /json_proto HTTP/1.0 [11:53:11]Method: POST [11:53:11]URL: /json_proto [11:53:11]Method is POST - this is cgi request [11:53:11]url: /json_proto [11:53:11]query_string will be loaded in cgi processing [11:53:11]execute_cgi json_proto POST (null) [11:53:11]execute_cgi path=json_proto method=POST [11:53:11]POST find Content-Length [11:53:11]Host: 172.17.42.131:8080 [11:53:11]Content-Length: 679 [11:53:11]Content-Type: application/json [11:53:11] [11:53:11]POST finish read [11:53:11]Found Content-Length = 679 [11:53:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:11]execute_script... [11:53: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)210279", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:11]POST & json_proto [11:53:11]process_json_proto [11:53:11]json parsed OK: [11:53:11]protocol is kg_v1.0 [11:53:11]action value=close_receipt [11:53:11]process_action close_receipt [11:53:11]cmd_close_receipt [11:53:11]MH_GetDate [11:53:11]Write to MH i2c: F0 00 00 40 4F 7E [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: F0 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: F0 09 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: F0 09 00 40 4F 00 2A 92 17 67 A0 18 CA 66 A9 [11:53:11]GetLastDocTimeStamp 1729597935 [11:53:11]current date 1729597994 [11:53:11]FM_GetShiftState [11:53:11]SAM_PROTO_GetShiftState [11:53:11]wFMCommunicate request_size=4 [11:53:11]MH_SAM_APDU [11:53:11]CAPDU: 80 13 01 00 [11:53:11]Write to MH i2c: E2 08 00 41 4F 80 13 01 00 00 00 00 00 0D [11:53:11]Write i2c OK [11:53:11]MH_I2C_Read... [11:53:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:11]Read from MH i2c: E2 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: E2 0E 00 [11:53:11]MH_I2C_Read... [11:53:11]Read from MH i2c: E2 0E 00 41 4F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 02 [11:53:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:53:11]wFMCommunicate OK [11:53:11]SAM_PROTO_GetShiftState done [11:53:11]FM_GetShiftState done [11:53:11]opened in 1729556094 [11:53:11]opened+sec_in_day 1729642494 [11:53:11]quantity*price = 350062 [11:53:11]sum+1 = 350064 [11:53:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 256 22.10.2024 11:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188227 ФПД: 222955581779627 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188227&fm=222955581779627&tin=02508201610067®Number=0000000000100030&sum=350000 [11:53:12]StoreToDocumentArchive [11:53:12]shift 461 fd 188227 [11:53:12]save to /storage/0461/doc_00188227 [11:53:12]save last doc name /storage/0461/doc_00188227 to /storage/kkm_last_doc_name [11:53:12]save OK [11:53:12]Clear old archive folders... [11:53:12]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:53:12]tlvbuf is 01CDEDF0 [11:53:12]SAM_PROTO_ClearQueue [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 09 00 00 [11:53:12]Write to MH i2c: E2 08 00 4E 4F 80 09 00 00 00 00 00 00 0F [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 4E 4F 00 90 00 11 [11:53:12]RAPDU: 90 00 [11:53:12]wFMCommunicate OK [11:53:12]SAM_PROTO_ClearQueue done [11:53:12]KKMCreateOFDPacket [11:53:12]OFDProtocolAddRootSTLVToBuf [11:53:12]FM_MakeSignedData [11:53:12]FM_MakeSignedData [11:53:12]SAM_PROTO_SignData [11:53:12]wFMCommunicate request_size=4 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 0D 01 02 [11:53:12]Write to MH i2c: E2 08 00 4F 4F 80 0D 01 02 00 00 00 00 17 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:12]Read from MH i2c: E2 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 [11:53:12]MH_I2C_Read... [11:53:12]Read from MH i2c: E2 03 00 4F 4F 00 90 00 12 [11:53:12]RAPDU: 90 00 [11:53:12]wFMCommunicate OK [11:53:12]wFMCommunicate request_size=255 [11:53:12]MH_SAM_APDU [11:53:12]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 2A 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DF 02 00 35 04 06 00 CA C6 E4 40 [11:53:12]Write to MH i2c: E2 02 01 50 4F 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 2A 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DF 02 00 35 04 06 00 CA C6 E4 40 00 00 14 [11:53:12]Write i2c OK [11:53:12]MH_I2C_Read... [11:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:13]Read from MH i2c: E2 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 03 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 03 00 50 4F 00 90 00 13 [11:53:13]RAPDU: 90 00 [11:53:13]wFMCommunicate OK [11:53:13]wFMCommunicate request_size=7 [11:53:13]MH_SAM_APDU [11:53:13]CAPDU: 80 0D 02 02 02 AE AB [11:53:13]Write to MH i2c: E2 0A 00 51 4F 80 0D 02 02 02 00 AE AB 00 00 77 [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:13]Read from MH i2c: E2 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 03 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 03 00 51 4F 00 90 00 14 [11:53:13]RAPDU: 90 00 [11:53:13]wFMCommunicate OK [11:53:13]wFMCommunicate request_size=4 [11:53:13]MH_SAM_APDU [11:53:13]CAPDU: 80 0D 03 02 [11:53:13]Write to MH i2c: E2 08 00 52 4F 80 0D 03 02 00 00 00 00 1C [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:13]Read from MH i2c: E2 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 0B 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 0B 00 52 4F 00 92 34 1E 76 F0 CF B1 11 90 00 F8 [11:53:13]RAPDU: 92 34 1E 76 F0 CF B1 11 90 00 [11:53:13]wFMCommunicate OK [11:53:13]SAM_PROTO_SignData done [11:53:13]FM_MakeSignedData done [11:53:13]CreateOFDProtocolMessage [11:53:13]wFMCommunicate request_size=4 [11:53:13]MH_SAM_APDU [11:53:13]CAPDU: 80 11 00 00 [11:53:13]Write to MH i2c: E2 08 00 53 4F 80 11 00 00 00 00 00 00 1C [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:13]Read from MH i2c: E2 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 17 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: E2 17 00 53 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [11:53:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:53:13]wFMCommunicate OK [11:53:13]CreateOFDProtocolMessage done [11:53:13]OFDSenderStorePacket 188227 [11:53:13]StoreOFDPacket docnum=188227 [11:53:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F2 72 04 01 7D 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 2A 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DF 02 00 35 04 06 00 CA C6 E4 40 AE AB 92 34 1E 76 F0 CF B1 11 [11:53:13]CheckFolder [11:53:13]dirname=/storage/ofd_packets [11:53:13]CheckFolder done [11:53:13]ProducePacketName [11:53:13]name=ofd_packets/00188227 [11:53:13]NVStorageSaveData ofd_packets/00188227 [11:53:13]File name is /storage/ofd_packets/00188227 [11:53:13]Write 298 bytes [11:53:13]NVStorageSaveData done [11:53:13]OFDSenderStorePacket done [11:53:13]KKMCreateOFDPacket done [11:53:13]NVStorageSaveData kkm_last_timestamp [11:53:13]File name is /storage/kkm_last_timestamp [11:53:13]Write 4 bytes [11:53:13]NVStorageSaveData done [11:53:13]ExternCall_PrintAddStr [11:53:13]wPrintStart [11:53:13]Write to MH i2c: 01 00 00 54 4F A3 [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 54 4F 00 00 00 00 00 FF 0F B8 [11:53:13]RasterBufferAndPrint [11:53:13]line Счет N : (1)210279 [11:53:13]line ИНН: 02508201610067 [11:53:13]line Контрольно-Кассовый Чек [11:53:13]line ПРОДАЖА [11:53:13]line ТРК (МРК, ГНК) : 51 [11:53:13]line Товар: 2710194210 [11:53:13]line ДТ-К-5 [11:53:13]line 45.940 * 76.20 [11:53:13]line = 3500.63 [11:53:13]line НДС 12% НСП 1% [11:53:13]line > о реализуемом товаре [11:53:13]line ОКРУГЛЕНИЕ: -0.63 [11:53:13]line ИТОГО: 3500.00 [11:53:13]line Внесено: 3500.00 [11:53:13]line СДАЧА: 0.00 [11:53:13]line НСП 1% : 30.98 [11:53:13]line НДС 12% : 371.75 [11:53:13]line Наличными: 3500.00 [11:53:13]line Безнал.: 0.00 [11:53:13]line Место: АЗС № 86 "Партнер Нефть" [11:53:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:53:13]line СНО: Общий режим [11:53:13]line Чек 256 22.10.2024 11:53 [11:53:13]line Смена: 461 ФФД: 1.0 [11:53:13]line ЗНМ: 0300000155 [11:53:13]line РНМ: 0000000000100030 [11:53:13]line Версия ККМ: 001 [11:53:13]line ФМ: 0000000000965340 [11:53:13]line ФД: 188227 [11:53:13]line ФПД: 222955581779627 [11:53:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115314&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188227&fm=222955581779627&tin=02508201610067®Number=0000000000100030&sum=350000 [11:53:13]written 0, free lines is 4095 [11:53:13]OFD Sender: Processing packet 188227 [packets to send 1062, broken 1061] [11:53:13]ProducePacketName [11:53:13]name=ofd_packets/00188227 [11:53:13]OFD Sender: To server: pG, [11:53:13]CommunicateWithHost lk.salyk.kg:30040 [11:53:13]ConnectInit lk.salyk.kg [11:53:13]Connected sock=10 [11:53:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F2 72 04 01 7D 7C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 01 00 00 F4 03 04 00 2A 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DF 02 00 35 04 06 00 CA C6 E4 40 AE AB 92 34 1E 76 F0 CF B1 11 [11:53:13]Write to MH i2c: 01 00 00 7F 4F CE [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: 01 07 00 7F 4F 00 00 00 00 00 74 0C 55 [11:53:13]RasterBufferAndPrint [11:53:13]line [11:53:13]line [11:53:13]line [11:53:13]line [11:53:13]line [11:53:13]written 0, free lines is 3191 [11:53:13]MH_Cut [11:53:13]Write to MH i2c: D1 01 00 86 4F 01 A7 [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: D1 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: D1 01 00 [11:53:13]MH_I2C_Read... [11:53:13]Read from MH i2c: D1 01 00 86 4F 00 A6 [11:53:13]Write to MH i2c: 01 00 00 87 4F D6 [11:53:13]Write i2c OK [11:53:13]MH_I2C_Read... [11:53:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3F 79 47 00 9E 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 DF 02 00 F4 03 04 00 18 3C 17 67 B6 04 01 00 00 BD D3 12 7C 39 C8 DE E2 [11:53:14]CommunicateWithHost err = 0 [11:53:14]CheckOFDResponse [11:53:14]1017 (14) - 77093643461234 [11:53:14]1041 (16) - 0000000000965340 [11:53:14]1040 (4) - 188227 [11:53:14]1012 (4) - 22.10.2024 05:46 [11:53:14]1206 (1) - 0 [11:53:14]OFD Sender: Remove packet 188227 [11:53:14]ProducePacketName [11:53:14]name=ofd_packets/00188227 [11:53:14]NVStorageDeleteData [11:53:14]OFD Sender: No OFD packet to send [11:53:15]*** Cut start [11:53:15]*** Partial cut [11:53:15]*** CUTSNS_PIN = 1 [11:53:15]*** CUTSNS_PIN = 0 [11:53:15]*** Brake cut motor [11:53:15]Read from MH i2c: 01 [11:53:15]MH_I2C_Read... [11:53:15]*** Stop cut motor [11:53:15]*** Cut end [11:53:15]Read from MH i2c: 01 07 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: 01 07 00 87 4F 00 00 00 00 00 FF 0F EB [11:53:15]process_action close_receipt done [11:53:15]requested_data is exist [11:53:15]produce_requested_data [11:53:15]requested_item fm.sn is exist - process it [11:53:15]wFMCommunicate request_size=4 [11:53:15]MH_SAM_APDU [11:53:15]CAPDU: 80 11 00 00 [11:53:15]Write to MH i2c: E2 08 00 88 4F 80 11 00 00 00 00 00 00 51 [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:15]Read from MH i2c: E2 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 17 00 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 17 00 88 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [11:53:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:53:15]wFMCommunicate OK [11:53:15]requested_item fd.num is exist - process it [11:53:15]SAM_PROTO_GetFieldsCounters [11:53:15]wFMCommunicate request_size=4 [11:53:15]MH_SAM_APDU [11:53:15]CAPDU: 80 13 00 00 [11:53:15]Write to MH i2c: E2 08 00 89 4F 80 13 00 00 00 00 00 00 54 [11:53:15]Write i2c OK [11:53:15]MH_I2C_Read... [11:53:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:15]Read from MH i2c: E2 [11:53:15]MH_I2C_Read... [11:53:15]Read from MH i2c: E2 62 00 [11:53:15]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 62 00 89 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 50 [11:53:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 00 01 00 00 5E 04 04 00 00 01 00 00 57 04 04 00 01 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_GetFieldsCounters done [11:53:16]requested_item shift.num is exist - process it [11:53:16]requested_item shift.opened is exist - process it [11:53:16]req_shift_opened [11:53:16]FM_GetShiftState [11:53:16]SAM_PROTO_GetShiftState [11:53:16]wFMCommunicate request_size=4 [11:53:16]MH_SAM_APDU [11:53:16]CAPDU: 80 13 01 00 [11:53:16]Write to MH i2c: E2 08 00 8A 4F 80 13 01 00 00 00 00 00 56 [11:53:16]Write i2c OK [11:53:16]MH_I2C_Read... [11:53:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:16]Read from MH i2c: E2 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0E 00 [11:53:16]MH_I2C_Read... [11:53:16]Read from MH i2c: E2 0E 00 8A 4F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [11:53:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:53:16]wFMCommunicate OK [11:53:16]SAM_PROTO_GetShiftState done [11:53:16]FM_GetShiftState done [11:53:16]req_shift_opened done [11:53:16]requested_item shift.open_date is exist - process it [11:53:16]req_shift_open_date [11:53:16]req_shift_open_date done [11:53:16]produce_requested_data done [11:53:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188227,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:53:16]process_action_free close_receipt [11:53:16]json_value_free [11:53:16]json_value_free done [11:53:16]process_json_proto returns [11:53:16]Send response to host [11:53:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188227,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:53:16]free response buf [11:53:16]execute_script done [11:53:16]execute_script returns [11:53:16]free content buf [11:53:16]Sock 9.Close socket [11:53:16]Sock 9.Thread stoped [11:53:19]OFD Sender: No OFD packet to send [11:53:22]accept exits with 8 [11:53:22]New connection [11:53:22]New thread 3067198820 created [11:53:22]Thread 3067055460 joined [11:53:22]Waiting for new connection... [11:53:22] Sock 8.Parse request [11:53:22]Sock 8.Check first char [11:53:22]Sock 8.First char is OK [11:53:22]request: POST /json_proto HTTP/1.0 [11:53:22]Method: POST [11:53:22]URL: /json_proto [11:53:22]Method is POST - this is cgi request [11:53:22]url: /json_proto [11:53:22]query_string will be loaded in cgi processing [11:53:22]execute_cgi json_proto POST (null) [11:53:22]execute_cgi path=json_proto method=POST [11:53:22]POST find Content-Length [11:53:22]Host: 172.17.42.131:8080 [11:53:22]Content-Length: 677 [11:53:22]Content-Type: application/json [11:53:22] [11:53:22]POST finish read [11:53:22]Found Content-Length = 677 [11:53:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:22]execute_script... [11:53: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)210281", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:22]POST & json_proto [11:53:22]process_json_proto [11:53:22]json parsed OK: [11:53:22]protocol is kg_v1.0 [11:53:22]action value=close_receipt [11:53:22]process_action close_receipt [11:53:22]cmd_close_receipt [11:53:22]MH_GetDate [11:53:22]Write to MH i2c: F0 00 00 8B 4F C9 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: F0 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: F0 09 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: F0 09 00 8B 4F 00 36 92 17 67 A0 18 CA 66 00 [11:53:22]GetLastDocTimeStamp 1729597994 [11:53:22]current date 1729598006 [11:53:22]FM_GetShiftState [11:53:22]SAM_PROTO_GetShiftState [11:53:22]wFMCommunicate request_size=4 [11:53:22]MH_SAM_APDU [11:53:22]CAPDU: 80 13 01 00 [11:53:22]Write to MH i2c: E2 08 00 8C 4F 80 13 01 00 00 00 00 00 58 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 0E 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 0E 00 8C 4F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4D [11:53:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:53:22]wFMCommunicate OK [11:53:22]SAM_PROTO_GetShiftState done [11:53:22]FM_GetShiftState done [11:53:22]opened in 1729556094 [11:53:22]opened+sec_in_day 1729642494 [11:53:22]quantity*price = 50041 [11:53:22]sum+1 = 50042 [11:53:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 257 22.10.2024 11:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188228 ФПД: 204070576310649 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188228&fm=204070576310649&tin=02508201610067®Number=0000000000100030&sum=50000 [11:53:23]StoreToDocumentArchive [11:53:23]shift 461 fd 188228 [11:53:23]save to /storage/0461/doc_00188228 [11:53:23]save last doc name /storage/0461/doc_00188228 to /storage/kkm_last_doc_name [11:53:23]save OK [11:53:23]Clear old archive folders... [11:53:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:53:24]tlvbuf is 01C25090 [11:53:24]SAM_PROTO_ClearQueue [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 09 00 00 [11:53:24]Write to MH i2c: E2 08 00 99 4F 80 09 00 00 00 00 00 00 5A [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 99 4F 00 90 00 5C [11:53:24]RAPDU: 90 00 [11:53:24]wFMCommunicate OK [11:53:24]SAM_PROTO_ClearQueue done [11:53:24]KKMCreateOFDPacket [11:53:24]OFDProtocolAddRootSTLVToBuf [11:53:24]FM_MakeSignedData [11:53:24]FM_MakeSignedData [11:53:24]SAM_PROTO_SignData [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 0D 01 02 [11:53:24]Write to MH i2c: E2 08 00 9A 4F 80 0D 01 02 00 00 00 00 62 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 9A 4F 00 90 00 5D [11:53:24]RAPDU: 90 00 [11:53:24]wFMCommunicate OK [11:53:24]wFMCommunicate request_size=255 [11:53:24]MH_SAM_APDU [11:53: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DF 02 00 35 04 06 00 B9 [11:53:24]Write to MH i2c: E2 02 01 9B 4F 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DF 02 00 35 04 06 00 B9 00 00 C9 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 9B 4F 00 90 00 5E [11:53:24]RAPDU: 90 00 [11:53:24]wFMCommunicate OK [11:53:24]wFMCommunicate request_size=10 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 0D 02 02 05 99 E2 35 C9 79 [11:53:24]Write to MH i2c: E2 0D 00 9C 4F 80 0D 02 02 05 00 99 E2 35 C9 79 00 00 61 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 03 00 9C 4F 00 90 00 5F [11:53:24]RAPDU: 90 00 [11:53:24]wFMCommunicate OK [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 0D 03 02 [11:53:24]Write to MH i2c: E2 08 00 9D 4F 80 0D 03 02 00 00 00 00 67 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 0B 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 0B 00 9D 4F 00 41 BB 0B DC 1E AC E1 57 90 00 4D [11:53:24]RAPDU: 41 BB 0B DC 1E AC E1 57 90 00 [11:53:24]wFMCommunicate OK [11:53:24]SAM_PROTO_SignData done [11:53:24]FM_MakeSignedData done [11:53:24]CreateOFDProtocolMessage [11:53:24]wFMCommunicate request_size=4 [11:53:24]MH_SAM_APDU [11:53:24]CAPDU: 80 11 00 00 [11:53:24]Write to MH i2c: E2 08 00 9E 4F 80 11 00 00 00 00 00 00 67 [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:24]Read from MH i2c: E2 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 17 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: E2 17 00 9E 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [11:53:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:53:24]wFMCommunicate OK [11:53:24]CreateOFDProtocolMessage done [11:53:24]OFDSenderStorePacket 188228 [11:53:24]StoreOFDPacket docnum=188228 [11:53:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3F C4 07 01 0C BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DF 02 00 35 04 06 00 B9 99 E2 35 C9 79 41 BB 0B DC 1E AC E1 57 [11:53:24]CheckFolder [11:53:24]dirname=/storage/ofd_packets [11:53:24]CheckFolder done [11:53:24]ProducePacketName [11:53:24]name=ofd_packets/00188228 [11:53:24]NVStorageSaveData ofd_packets/00188228 [11:53:24]File name is /storage/ofd_packets/00188228 [11:53:24]Write 301 bytes [11:53:24]NVStorageSaveData done [11:53:24]OFDSenderStorePacket done [11:53:24]KKMCreateOFDPacket done [11:53:24]NVStorageSaveData kkm_last_timestamp [11:53:24]File name is /storage/kkm_last_timestamp [11:53:24]Write 4 bytes [11:53:24]NVStorageSaveData done [11:53:24]ExternCall_PrintAddStr [11:53:24]wPrintStart [11:53:24]Write to MH i2c: 01 00 00 9F 4F EE [11:53:24]Write i2c OK [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 07 00 [11:53:24]MH_I2C_Read... [11:53:24]Read from MH i2c: 01 07 00 9F 4F 00 00 00 00 00 FF 0F 03 [11:53:24]RasterBufferAndPrint [11:53:24]line Счет N : (1)210281 [11:53:24]line ИНН: 02508201610067 [11:53:24]line Контрольно-Кассовый Чек [11:53:24]line ПРОДАЖА [11:53:24]line ТРК (МРК, ГНК) : 12 [11:53:24]line Товар: 2710124130 [11:53:24]line Аи-92-К-3 [11:53:24]line 7.480 * 66.90 [11:53:24]line = 500.41 [11:53:24]line НДС 12% НСП 1% [11:53:24]line > о реализуемом товаре [11:53:24]line ОКРУГЛЕНИЕ: -0.41 [11:53:24]line ИТОГО: 500.00 [11:53:24]line Внесено: 500.00 [11:53:24]line СДАЧА: 0.00 [11:53:24]line НСП 1% : 4.43 [11:53:24]line НДС 12% : 53.14 [11:53:24]line Наличными: 500.00 [11:53:24]line Безнал.: 0.00 [11:53:24]line Место: АЗС № 86 "Партнер Нефть" [11:53:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:53:24]line СНО: Общий режим [11:53:24]line Чек 257 22.10.2024 11:53 [11:53:24]line Смена: 461 ФФД: 1.0 [11:53:24]line ЗНМ: 0300000155 [11:53:24]line РНМ: 0000000000100030 [11:53:24]line Версия ККМ: 001 [11:53:24]line ФМ: 0000000000965340 [11:53:24]line ФД: 188228 [11:53:24]line ФПД: 204070576310649 [11:53:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115326&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188228&fm=204070576310649&tin=02508201610067®Number=0000000000100030&sum=50000 [11:53:24]written 0, free lines is 4095 [11:53:24]OFD Sender: Processing packet 188228 [packets to send 1062, broken 1061] [11:53:24]ProducePacketName [11:53:24]name=ofd_packets/00188228 [11:53:24]OFD Sender: To server: pG, [11:53:24]CommunicateWithHost lk.salyk.kg:30040 [11:53:24]ConnectInit lk.salyk.kg [11:53:25]Write to MH i2c: 01 00 00 CA 4F 19 [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: 01 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: 01 07 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: 01 07 00 CA 4F 00 00 00 00 00 75 0C A1 [11:53:25]RasterBufferAndPrint [11:53:25]line [11:53:25]line [11:53:25]line [11:53:25]line [11:53:25]line [11:53:25]written 0, free lines is 3193 [11:53:25]Connected sock=10 [11:53:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3F C4 07 01 0C BB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 01 00 00 F4 03 04 00 36 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 DF 02 00 35 04 06 00 B9 99 E2 35 C9 79 41 BB 0B DC 1E AC E1 57 [11:53:25]MH_Cut [11:53:25]Write to MH i2c: D1 01 00 D1 4F 01 F2 [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: D1 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: D1 01 00 [11:53:25]MH_I2C_Read... [11:53:25]Read from MH i2c: D1 01 00 D1 4F 00 F1 [11:53:25]Write to MH i2c: 01 00 00 D2 4F 21 [11:53:25]Write i2c OK [11:53:25]MH_I2C_Read... [11:53:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A9 7F 47 00 A6 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 39 36 35 33 34 30 10 04 04 00 44 DF 02 00 F4 03 04 00 23 3C 17 67 B6 04 01 00 00 4D 28 EB E3 26 5C BE EF [11:53:25]CommunicateWithHost err = 0 [11:53:25]CheckOFDResponse [11:53:25]1017 (14) - 77093643461234 [11:53:25]1041 (16) - 0000000000965340 [11:53:25]1040 (4) - 188228 [11:53:25]1012 (4) - 22.10.2024 05:46 [11:53:25]1206 (1) - 0 [11:53:25]OFD Sender: Remove packet 188228 [11:53:25]ProducePacketName [11:53:25]name=ofd_packets/00188228 [11:53:25]NVStorageDeleteData [11:53:25]OFD Sender: No OFD packet to send [11:53:26]*** Cut start [11:53:26]*** Partial cut [11:53:26]*** CUTSNS_PIN = 1 [11:53:26]*** CUTSNS_PIN = 0 [11:53:26]*** Brake cut motor [11:53:26]Read from MH i2c: 01 [11:53:26]MH_I2C_Read... [11:53:26]*** Stop cut motor [11:53:26]*** Cut end [11:53:26]Read from MH i2c: 01 07 00 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: 01 07 00 D2 4F 00 00 00 00 00 FF 0F 36 [11:53:26]process_action close_receipt done [11:53:26]requested_data is exist [11:53:26]produce_requested_data [11:53:26]requested_item fm.sn is exist - process it [11:53:26]wFMCommunicate request_size=4 [11:53:26]MH_SAM_APDU [11:53:26]CAPDU: 80 11 00 00 [11:53:26]Write to MH i2c: E2 08 00 D3 4F 80 11 00 00 00 00 00 00 9C [11:53:26]Write i2c OK [11:53:26]MH_I2C_Read... [11:53:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:26]Read from MH i2c: E2 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: E2 17 00 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: E2 17 00 D3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EA [11:53:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:53:26]wFMCommunicate OK [11:53:26]requested_item fd.num is exist - process it [11:53:26]SAM_PROTO_GetFieldsCounters [11:53:26]wFMCommunicate request_size=4 [11:53:26]MH_SAM_APDU [11:53:26]CAPDU: 80 13 00 00 [11:53:26]Write to MH i2c: E2 08 00 D4 4F 80 13 00 00 00 00 00 00 9F [11:53:26]Write i2c OK [11:53:26]MH_I2C_Read... [11:53:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:26]Read from MH i2c: E2 [11:53:26]MH_I2C_Read... [11:53:26]Read from MH i2c: E2 62 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 62 00 D4 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [11:53:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 01 01 00 00 5E 04 04 00 01 01 00 00 57 04 04 00 02 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:53:27]wFMCommunicate OK [11:53:27]SAM_PROTO_GetFieldsCounters done [11:53:27]requested_item shift.num is exist - process it [11:53:27]requested_item shift.opened is exist - process it [11:53:27]req_shift_opened [11:53:27]FM_GetShiftState [11:53:27]SAM_PROTO_GetShiftState [11:53:27]wFMCommunicate request_size=4 [11:53:27]MH_SAM_APDU [11:53:27]CAPDU: 80 13 01 00 [11:53:27]Write to MH i2c: E2 08 00 D5 4F 80 13 01 00 00 00 00 00 A1 [11:53:27]Write i2c OK [11:53:27]MH_I2C_Read... [11:53:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:27]Read from MH i2c: E2 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 0E 00 [11:53:27]MH_I2C_Read... [11:53:27]Read from MH i2c: E2 0E 00 D5 4F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 96 [11:53:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:53:27]wFMCommunicate OK [11:53:27]SAM_PROTO_GetShiftState done [11:53:27]FM_GetShiftState done [11:53:27]req_shift_opened done [11:53:27]requested_item shift.open_date is exist - process it [11:53:27]req_shift_open_date [11:53:27]req_shift_open_date done [11:53:27]produce_requested_data done [11:53:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188228,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:53:27]process_action_free close_receipt [11:53:27]json_value_free [11:53:27]json_value_free done [11:53:27]process_json_proto returns [11:53:27]Send response to host [11:53:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188228,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:53:27]free response buf [11:53:27]execute_script done [11:53:27]execute_script returns [11:53:27]free content buf [11:53:27]Sock 8.Close socket [11:53:27]Sock 8.Thread stoped [11:53:30]OFD Sender: No OFD packet to send [11:53:36]OFD Sender: No OFD packet to send [11:53:41]OFD Sender: No OFD packet to send [11:53:46]OFD Sender: No OFD packet to send [11:53:51]OFD Sender: No OFD packet to send [11:53:56]OFD Sender: No OFD packet to send [11:54:01]OFD Sender: No OFD packet to send [11:54:06]OFD Sender: No OFD packet to send [11:54:11]OFD Sender: No OFD packet to send [11:54:16]OFD Sender: No OFD packet to send [11:54:21]accept exits with 9 [11:54:21]New connection [11:54:21]New thread 3067055460 created [11:54:21]Thread 3067198820 joined [11:54:21]Waiting for new connection... [11:54:21] Sock 9.Parse request [11:54:21]Sock 9.Check first char [11:54:21]Sock 9.First char is OK [11:54:21]request: POST /json_proto HTTP/1.0 [11:54:21]Method: POST [11:54:21]URL: /json_proto [11:54:21]Method is POST - this is cgi request [11:54:21]url: /json_proto [11:54:21]query_string will be loaded in cgi processing [11:54:21]execute_cgi json_proto POST (null) [11:54:21]execute_cgi path=json_proto method=POST [11:54:21]POST find Content-Length [11:54:21]Host: 172.17.42.131:8080 [11:54:21]Content-Length: 684 [11:54:21]Content-Type: application/json [11:54:21] [11:54:21]POST finish read [11:54:21]Found Content-Length = 684 [11:54:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.310, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:21]execute_script... [11:54: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)210282", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.310, "sum" : 950.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 950.00, "total" : 950.00, "payments": [ { "type": 0, "sum" : 950.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:21]POST & json_proto [11:54:21]process_json_proto [11:54:21]json parsed OK: [11:54:21]protocol is kg_v1.0 [11:54:21]action value=close_receipt [11:54:21]process_action close_receipt [11:54:21]cmd_close_receipt [11:54:21]MH_GetDate [11:54:21]Write to MH i2c: F0 00 00 D6 4F 14 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: F0 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: F0 09 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: F0 09 00 D6 4F 00 70 92 17 67 A0 18 CA 66 85 [11:54:21]GetLastDocTimeStamp 1729598006 [11:54:21]current date 1729598064 [11:54:21]FM_GetShiftState [11:54:21]SAM_PROTO_GetShiftState [11:54:21]wFMCommunicate request_size=4 [11:54:21]MH_SAM_APDU [11:54:21]CAPDU: 80 13 01 00 [11:54:21]Write to MH i2c: E2 08 00 D7 4F 80 13 01 00 00 00 00 00 A3 [11:54:21]Write i2c OK [11:54:21]MH_I2C_Read... [11:54:21]OFD Sender: No OFD packet to send [11:54:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:21]Read from MH i2c: E2 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: E2 0E 00 [11:54:21]MH_I2C_Read... [11:54:21]Read from MH i2c: E2 0E 00 D7 4F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 98 [11:54:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:54:21]wFMCommunicate OK [11:54:21]SAM_PROTO_GetShiftState done [11:54:21]FM_GetShiftState done [11:54:21]opened in 1729556094 [11:54:21]opened+sec_in_day 1729642494 [11:54:21]quantity*price = 95033 [11:54:21]sum+1 = 95034 [11:54:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 950.00 Внесено: 950.00 СДАЧА: 0.00 НСП 1% : 8.41 НДС 12% : 100.92 Наличными: 950.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 258 22.10.2024 11:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188229 ФПД: 185863601443419 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188229&fm=185863601443419&tin=02508201610067®Number=0000000000100030&sum=95000 [11:54:22]StoreToDocumentArchive [11:54:22]shift 461 fd 188229 [11:54:22]save to /storage/0461/doc_00188229 [11:54:22]save last doc name /storage/0461/doc_00188229 to /storage/kkm_last_doc_name [11:54:22]save OK [11:54:22]Clear old archive folders... [11:54:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [11:54:22]tlvbuf is 01CDEF10 [11:54:22]SAM_PROTO_ClearQueue [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 09 00 00 [11:54:22]Write to MH i2c: E2 08 00 E4 4F 80 09 00 00 00 00 00 00 A5 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 E4 4F 00 90 00 A7 [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_ClearQueue done [11:54:22]KKMCreateOFDPacket [11:54:22]OFDProtocolAddRootSTLVToBuf [11:54:22]FM_MakeSignedData [11:54:22]FM_MakeSignedData [11:54:22]SAM_PROTO_SignData [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 0D 01 02 [11:54:22]Write to MH i2c: E2 08 00 E5 4F 80 0D 01 02 00 00 00 00 AD [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 E5 4F 00 90 00 A8 [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]wFMCommunicate request_size=255 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DF 02 [11:54:22]Write to MH i2c: E2 02 01 E6 4F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DF 02 00 00 CF [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 E6 4F 00 90 00 A9 [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]wFMCommunicate request_size=16 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A9 0A BD F0 D2 5B [11:54:22]Write to MH i2c: E2 13 00 E7 4F 80 0D 02 02 0B 00 00 35 04 06 00 A9 0A BD F0 D2 5B 00 00 92 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [11:54:22]RAPDU: 90 00 [11:54:22]wFMCommunicate OK [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 0D 03 02 [11:54:22]Write to MH i2c: E2 08 00 E8 4F 80 0D 03 02 00 00 00 00 B2 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 0B 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 0B 00 E8 4F 00 AE B2 83 23 AB 28 DD 3E 90 00 A7 [11:54:22]RAPDU: AE B2 83 23 AB 28 DD 3E 90 00 [11:54:22]wFMCommunicate OK [11:54:22]SAM_PROTO_SignData done [11:54:22]FM_MakeSignedData done [11:54:22]CreateOFDProtocolMessage [11:54:22]wFMCommunicate request_size=4 [11:54:22]MH_SAM_APDU [11:54:22]CAPDU: 80 11 00 00 [11:54:22]Write to MH i2c: E2 08 00 E9 4F 80 11 00 00 00 00 00 00 B2 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:22]Read from MH i2c: E2 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 17 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: E2 17 00 E9 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 00 [11:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:54:22]wFMCommunicate OK [11:54:22]CreateOFDProtocolMessage done [11:54:22]OFDSenderStorePacket 188229 [11:54:22]StoreOFDPacket docnum=188229 [11:54:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5A DE 0D 01 A5 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DF 02 00 35 04 06 00 A9 0A BD F0 D2 5B AE B2 83 23 AB 28 DD 3E [11:54:22]CheckFolder [11:54:22]dirname=/storage/ofd_packets [11:54:22]CheckFolder done [11:54:22]ProducePacketName [11:54:22]name=ofd_packets/00188229 [11:54:22]NVStorageSaveData ofd_packets/00188229 [11:54:22]File name is /storage/ofd_packets/00188229 [11:54:22]Write 307 bytes [11:54:22]NVStorageSaveData done [11:54:22]OFDSenderStorePacket done [11:54:22]KKMCreateOFDPacket done [11:54:22]NVStorageSaveData kkm_last_timestamp [11:54:22]File name is /storage/kkm_last_timestamp [11:54:22]Write 4 bytes [11:54:22]NVStorageSaveData done [11:54:22]ExternCall_PrintAddStr [11:54:22]wPrintStart [11:54:22]Write to MH i2c: 01 00 00 EA 4F 39 [11:54:22]Write i2c OK [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: 01 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: 01 07 00 [11:54:22]MH_I2C_Read... [11:54:22]Read from MH i2c: 01 07 00 EA 4F 00 00 00 00 00 FF 0F 4E [11:54:22]RasterBufferAndPrint [11:54:22]line Счет N : (1)210282 [11:54:22]line ИНН: 02508201610067 [11:54:22]line Контрольно-Кассовый Чек [11:54:22]line ПРОДАЖА [11:54:22]line ТРК (МРК, ГНК) : 31 [11:54:22]line Товар: 2710194210 [11:54:22]line D-ENERGY ДТ-К-5 [11:54:22]line 12.310 * 77.20 [11:54:22]line = 950.33 [11:54:22]line НДС 12% НСП 1% [11:54:22]line > о реализуемом товаре [11:54:22]line ОКРУГЛЕНИЕ: -0.33 [11:54:22]line ИТОГО: 950.00 [11:54:22]line Внесено: 950.00 [11:54:22]line СДАЧА: 0.00 [11:54:22]line НСП 1% : 8.41 [11:54:22]line НДС 12% : 100.92 [11:54:22]line Наличными: 950.00 [11:54:22]line Безнал.: 0.00 [11:54:22]line Место: АЗС № 86 "Партнер Нефть" [11:54:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:54:22]line СНО: Общий режим [11:54:22]line Чек 258 22.10.2024 11:54 [11:54:22]line Смена: 461 ФФД: 1.0 [11:54:22]line ЗНМ: 0300000155 [11:54:22]line РНМ: 0000000000100030 [11:54:22]line Версия ККМ: 001 [11:54:22]line ФМ: 0000000000965340 [11:54:22]line ФД: 188229 [11:54:22]line ФПД: 185863601443419 [11:54:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188229&fm=185863601443419&tin=02508201610067®Number=0000000000100030&sum=95000 [11:54:23]OFD Sender: Processing packet 188229 [packets to send 1062, broken 1061] [11:54:23]ProducePacketName [11:54:23]name=ofd_packets/00188229 [11:54:23]OFD Sender: To server: pG, [11:54:23]CommunicateWithHost lk.salyk.kg:30040 [11:54:23]ConnectInit lk.salyk.kg [11:54:23]written 0, free lines is 4095 [11:54:23]Connected sock=10 [11:54:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5A DE 0D 01 A5 87 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 16 30 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 39 73 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 18 73 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 27 00 00 00 00 07 04 06 00 18 73 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 01 00 00 F4 03 04 00 70 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 DF 02 00 35 04 06 00 A9 0A BD F0 D2 5B AE B2 83 23 AB 28 DD 3E [11:54:23]Write to MH i2c: 01 00 00 15 50 65 [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: 01 07 00 15 50 00 00 00 00 00 70 0C E8 [11:54:23]RasterBufferAndPrint [11:54:23]line [11:54:23]line [11:54:23]line [11:54:23]line [11:54:23]line [11:54:23]written 0, free lines is 3186 [11:54:23]MH_Cut [11:54:23]Write to MH i2c: D1 01 00 1C 50 01 3E [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: D1 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: D1 01 00 [11:54:23]MH_I2C_Read... [11:54:23]Read from MH i2c: D1 01 00 1C 50 00 3D [11:54:23]Write to MH i2c: 01 00 00 1D 50 6D [11:54:23]Write i2c OK [11:54:23]MH_I2C_Read... [11:54:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 29 47 00 F3 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 39 36 35 33 34 30 10 04 04 00 45 DF 02 00 F4 03 04 00 5E 3C 17 67 B6 04 01 00 00 AB 59 9F FE F2 9E 79 9D [11:54:23]CommunicateWithHost err = 0 [11:54:23]CheckOFDResponse [11:54:23]1017 (14) - 77093643461234 [11:54:23]1041 (16) - 0000000000965340 [11:54:23]1040 (4) - 188229 [11:54:23]1012 (4) - 22.10.2024 05:47 [11:54:23]1206 (1) - 0 [11:54:23]OFD Sender: Remove packet 188229 [11:54:23]ProducePacketName [11:54:23]name=ofd_packets/00188229 [11:54:23]NVStorageDeleteData [11:54:24]OFD Sender: No OFD packet to send [11:54:24]*** Cut start [11:54:24]*** Partial cut [11:54:24]*** CUTSNS_PIN = 1 [11:54:24]*** CUTSNS_PIN = 0 [11:54:25]*** Brake cut motor [11:54:25]Read from MH i2c: 01 [11:54:25]MH_I2C_Read... [11:54:25]*** Stop cut motor [11:54:25]*** Cut end [11:54:25]Read from MH i2c: 01 07 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: 01 07 00 1D 50 00 00 00 00 00 FF 0F 82 [11:54:25]process_action close_receipt done [11:54:25]requested_data is exist [11:54:25]produce_requested_data [11:54:25]requested_item fm.sn is exist - process it [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 11 00 00 [11:54:25]Write to MH i2c: E2 08 00 1E 50 80 11 00 00 00 00 00 00 E8 [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 17 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 17 00 1E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [11:54:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:54:25]wFMCommunicate OK [11:54:25]requested_item fd.num is exist - process it [11:54:25]SAM_PROTO_GetFieldsCounters [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 13 00 00 [11:54:25]Write to MH i2c: E2 08 00 1F 50 80 13 00 00 00 00 00 00 EB [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 62 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 62 00 1F 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [11:54:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 02 01 00 00 5E 04 04 00 02 01 00 00 57 04 04 00 03 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:54:25]wFMCommunicate OK [11:54:25]SAM_PROTO_GetFieldsCounters done [11:54:25]requested_item shift.num is exist - process it [11:54:25]requested_item shift.opened is exist - process it [11:54:25]req_shift_opened [11:54:25]FM_GetShiftState [11:54:25]SAM_PROTO_GetShiftState [11:54:25]wFMCommunicate request_size=4 [11:54:25]MH_SAM_APDU [11:54:25]CAPDU: 80 13 01 00 [11:54:25]Write to MH i2c: E2 08 00 20 50 80 13 01 00 00 00 00 00 ED [11:54:25]Write i2c OK [11:54:25]MH_I2C_Read... [11:54:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:25]Read from MH i2c: E2 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 0E 00 [11:54:25]MH_I2C_Read... [11:54:25]Read from MH i2c: E2 0E 00 20 50 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E2 [11:54:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:54:25]wFMCommunicate OK [11:54:25]SAM_PROTO_GetShiftState done [11:54:25]FM_GetShiftState done [11:54:25]req_shift_opened done [11:54:25]requested_item shift.open_date is exist - process it [11:54:25]req_shift_open_date [11:54:25]req_shift_open_date done [11:54:25]produce_requested_data done [11:54:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188229,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:54:25]process_action_free close_receipt [11:54:25]json_value_free [11:54:25]json_value_free done [11:54:25]process_json_proto returns [11:54:25]Send response to host [11:54:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188229,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:54:25]free response buf [11:54:25]execute_script done [11:54:25]execute_script returns [11:54:25]free content buf [11:54:25]Sock 9.Close socket [11:54:25]Sock 9.Thread stoped [11:54:29]OFD Sender: No OFD packet to send [11:54:34]OFD Sender: No OFD packet to send [11:54:39]OFD Sender: No OFD packet to send [11:54:44]OFD Sender: No OFD packet to send [11:54:49]OFD Sender: No OFD packet to send [11:54:54]OFD Sender: No OFD packet to send [11:54:59]OFD Sender: No OFD packet to send [11:54:59]accept exits with 8 [11:54:59]New connection [11:54:59]New thread 3067198820 created [11:54:59]Thread 3067055460 joined [11:54:59]Waiting for new connection... [11:54:59] Sock 8.Parse request [11:54:59]Sock 8.Check first char [11:54:59]Sock 8.First char is OK [11:54:59]request: POST /json_proto HTTP/1.0 [11:54:59]Method: POST [11:54:59]URL: /json_proto [11:54:59]Method is POST - this is cgi request [11:54:59]url: /json_proto [11:54:59]query_string will be loaded in cgi processing [11:54:59]execute_cgi json_proto POST (null) [11:54:59]execute_cgi path=json_proto method=POST [11:54:59]POST find Content-Length [11:54:59]Host: 172.17.42.131:8080 [11:54:59]Content-Length: 682 [11:54:59]Content-Type: application/json [11:54:59] [11:54:59]POST finish read [11:54:59]Found Content-Length = 682 [11:54:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:59]execute_script... [11:54: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)210284", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:54:59]POST & json_proto [11:54:59]process_json_proto [11:54:59]json parsed OK: [11:54:59]protocol is kg_v1.0 [11:54:59]action value=close_receipt [11:54:59]process_action close_receipt [11:54:59]cmd_close_receipt [11:54:59]MH_GetDate [11:54:59]Write to MH i2c: F0 00 00 21 50 60 [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: F0 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: F0 09 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: F0 09 00 21 50 00 96 92 17 67 A0 18 CA 66 F7 [11:54:59]GetLastDocTimeStamp 1729598064 [11:54:59]current date 1729598102 [11:54:59]FM_GetShiftState [11:54:59]SAM_PROTO_GetShiftState [11:54:59]wFMCommunicate request_size=4 [11:54:59]MH_SAM_APDU [11:54:59]CAPDU: 80 13 01 00 [11:54:59]Write to MH i2c: E2 08 00 22 50 80 13 01 00 00 00 00 00 EF [11:54:59]Write i2c OK [11:54:59]MH_I2C_Read... [11:54:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:54:59]Read from MH i2c: E2 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 0E 00 [11:54:59]MH_I2C_Read... [11:54:59]Read from MH i2c: E2 0E 00 22 50 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E4 [11:54:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:54:59]wFMCommunicate OK [11:54:59]SAM_PROTO_GetShiftState done [11:54:59]FM_GetShiftState done [11:54:59]opened in 1729556094 [11:54:59]opened+sec_in_day 1729642494 [11:54:59]quantity*price = 150032 [11:54:59]sum+1 = 150033 [11:54:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 259 22.10.2024 11:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188230 ФПД: 250666949887791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188230&fm=250666949887791&tin=02508201610067®Number=0000000000100030&sum=150000 [11:55:00]StoreToDocumentArchive [11:55:00]shift 461 fd 188230 [11:55:00]save to /storage/0461/doc_00188230 [11:55:00]save last doc name /storage/0461/doc_00188230 to /storage/kkm_last_doc_name [11:55:00]save OK [11:55:00]Clear old archive folders... [11:55:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:00]tlvbuf is 01BD6B50 [11:55:00]SAM_PROTO_ClearQueue [11:55:00]wFMCommunicate request_size=4 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 09 00 00 [11:55:00]Write to MH i2c: E2 08 00 2F 50 80 09 00 00 00 00 00 00 F1 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 2F 50 00 90 00 F3 [11:55:00]RAPDU: 90 00 [11:55:00]wFMCommunicate OK [11:55:00]SAM_PROTO_ClearQueue done [11:55:00]KKMCreateOFDPacket [11:55:00]OFDProtocolAddRootSTLVToBuf [11:55:00]FM_MakeSignedData [11:55:00]FM_MakeSignedData [11:55:00]SAM_PROTO_SignData [11:55:00]wFMCommunicate request_size=4 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 0D 01 02 [11:55:00]Write to MH i2c: E2 08 00 30 50 80 0D 01 02 00 00 00 00 F9 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:00]Read from MH i2c: E2 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 [11:55:00]MH_I2C_Read... [11:55:00]Read from MH i2c: E2 03 00 30 50 00 90 00 F4 [11:55:00]RAPDU: 90 00 [11:55:00]wFMCommunicate OK [11:55:00]wFMCommunicate request_size=255 [11:55:00]MH_SAM_APDU [11:55:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DF 02 00 35 04 06 00 E3 [11:55:00]Write to MH i2c: E2 02 01 31 50 80 0D 02 02 FA 00 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DF 02 00 35 04 06 00 E3 00 00 51 [11:55:00]Write i2c OK [11:55:00]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 31 50 00 90 00 F5 [11:55:01]RAPDU: 90 00 [11:55:01]wFMCommunicate OK [11:55:01]wFMCommunicate request_size=10 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 0D 02 02 05 FA F2 81 47 2F [11:55:01]Write to MH i2c: E2 0D 00 32 50 80 0D 02 02 05 00 FA F2 81 47 2F 00 00 E9 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 03 00 32 50 00 90 00 F6 [11:55:01]RAPDU: 90 00 [11:55:01]wFMCommunicate OK [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 0D 03 02 [11:55:01]Write to MH i2c: E2 08 00 33 50 80 0D 03 02 00 00 00 00 FE [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 0B 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 0B 00 33 50 00 24 DC 91 A6 87 C4 E8 BE 90 00 27 [11:55:01]RAPDU: 24 DC 91 A6 87 C4 E8 BE 90 00 [11:55:01]wFMCommunicate OK [11:55:01]SAM_PROTO_SignData done [11:55:01]FM_MakeSignedData done [11:55:01]CreateOFDProtocolMessage [11:55:01]wFMCommunicate request_size=4 [11:55:01]MH_SAM_APDU [11:55:01]CAPDU: 80 11 00 00 [11:55:01]Write to MH i2c: E2 08 00 34 50 80 11 00 00 00 00 00 00 FE [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:01]Read from MH i2c: E2 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 17 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: E2 17 00 34 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [11:55:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:55:01]wFMCommunicate OK [11:55:01]CreateOFDProtocolMessage done [11:55:01]OFDSenderStorePacket 188230 [11:55:01]StoreOFDPacket docnum=188230 [11:55:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 71 16 07 01 9B 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DF 02 00 35 04 06 00 E3 FA F2 81 47 2F 24 DC 91 A6 87 C4 E8 BE [11:55:01]CheckFolder [11:55:01]dirname=/storage/ofd_packets [11:55:01]CheckFolder done [11:55:01]ProducePacketName [11:55:01]name=ofd_packets/00188230 [11:55:01]NVStorageSaveData ofd_packets/00188230 [11:55:01]File name is /storage/ofd_packets/00188230 [11:55:01]Write 301 bytes [11:55:01]NVStorageSaveData done [11:55:01]OFDSenderStorePacket done [11:55:01]KKMCreateOFDPacket done [11:55:01]NVStorageSaveData kkm_last_timestamp [11:55:01]File name is /storage/kkm_last_timestamp [11:55:01]Write 4 bytes [11:55:01]NVStorageSaveData done [11:55:01]ExternCall_PrintAddStr [11:55:01]wPrintStart [11:55:01]Write to MH i2c: 01 00 00 35 50 85 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 07 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 07 00 35 50 00 00 00 00 00 FF 0F 9A [11:55:01]RasterBufferAndPrint [11:55:01]line Счет N : (1)210284 [11:55:01]line ИНН: 02508201610067 [11:55:01]line Контрольно-Кассовый Чек [11:55:01]line ПРОДАЖА [11:55:01]line ТРК (МРК, ГНК) : 23 [11:55:01]line Товар: 2710124500 [11:55:01]line Аи-95-К-3 [11:55:01]line 20.220 * 74.20 [11:55:01]line = 1500.32 [11:55:01]line НДС 12% НСП 1% [11:55:01]line > о реализуемом товаре [11:55:01]line ОКРУГЛЕНИЕ: -0.32 [11:55:01]line ИТОГО: 1500.00 [11:55:01]line Внесено: 1500.00 [11:55:01]line СДАЧА: 0.00 [11:55:01]line НСП 1% : 13.28 [11:55:01]line НДС 12% : 159.33 [11:55:01]line Наличными: 1500.00 [11:55:01]line Безнал.: 0.00 [11:55:01]line Место: АЗС № 86 "Партнер Нефть" [11:55:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:55:01]line СНО: Общий режим [11:55:01]line Чек 259 22.10.2024 11:55 [11:55:01]line Смена: 461 ФФД: 1.0 [11:55:01]line ЗНМ: 0300000155 [11:55:01]line РНМ: 0000000000100030 [11:55:01]line Версия ККМ: 001 [11:55:01]line ФМ: 0000000000965340 [11:55:01]line ФД: 188230 [11:55:01]line ФПД: 250666949887791 [11:55:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115502&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188230&fm=250666949887791&tin=02508201610067®Number=0000000000100030&sum=150000 [11:55:01]written 0, free lines is 4095 [11:55:01]OFD Sender: Processing packet 188230 [packets to send 1062, broken 1061] [11:55:01]ProducePacketName [11:55:01]name=ofd_packets/00188230 [11:55:01]OFD Sender: To server: pG, [11:55:01]CommunicateWithHost lk.salyk.kg:30040 [11:55:01]ConnectInit lk.salyk.kg [11:55:01]Write to MH i2c: 01 00 00 60 50 B0 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 07 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: 01 07 00 60 50 00 00 00 00 00 73 0C 36 [11:55:01]RasterBufferAndPrint [11:55:01]line [11:55:01]line [11:55:01]line [11:55:01]line [11:55:01]line [11:55:01]written 0, free lines is 3190 [11:55:01]MH_Cut [11:55:01]Write to MH i2c: D1 01 00 67 50 01 89 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: D1 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: D1 01 00 [11:55:01]MH_I2C_Read... [11:55:01]Read from MH i2c: D1 01 00 67 50 00 88 [11:55:01]Write to MH i2c: 01 00 00 68 50 B8 [11:55:01]Write i2c OK [11:55:01]MH_I2C_Read... [11:55:02]*** Cut start [11:55:02]*** Partial cut [11:55:02]*** CUTSNS_PIN = 1 [11:55:03]*** CUTSNS_PIN = 0 [11:55:03]*** Brake cut motor [11:55:03]Read from MH i2c: 01 [11:55:03]MH_I2C_Read... [11:55:03]*** Stop cut motor [11:55:03]*** Cut end [11:55:03]Read from MH i2c: 01 07 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: 01 07 00 68 50 00 00 00 00 00 FF 0F CD [11:55:03]process_action close_receipt done [11:55:03]requested_data is exist [11:55:03]produce_requested_data [11:55:03]requested_item fm.sn is exist - process it [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 11 00 00 [11:55:03]Write to MH i2c: E2 08 00 69 50 80 11 00 00 00 00 00 00 33 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 17 00 69 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 81 [11:55:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:55:03]wFMCommunicate OK [11:55:03]requested_item fd.num is exist - process it [11:55:03]SAM_PROTO_GetFieldsCounters [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 13 00 00 [11:55:03]Write to MH i2c: E2 08 00 6A 50 80 13 00 00 00 00 00 00 36 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 62 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 62 00 6A 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [11:55:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 03 01 00 00 5E 04 04 00 03 01 00 00 57 04 04 00 04 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_GetFieldsCounters done [11:55:03]requested_item shift.num is exist - process it [11:55:03]requested_item shift.opened is exist - process it [11:55:03]req_shift_opened [11:55:03]FM_GetShiftState [11:55:03]SAM_PROTO_GetShiftState [11:55:03]wFMCommunicate request_size=4 [11:55:03]MH_SAM_APDU [11:55:03]CAPDU: 80 13 01 00 [11:55:03]Write to MH i2c: E2 08 00 6B 50 80 13 01 00 00 00 00 00 38 [11:55:03]Write i2c OK [11:55:03]MH_I2C_Read... [11:55:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:03]Read from MH i2c: E2 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0E 00 [11:55:03]MH_I2C_Read... [11:55:03]Read from MH i2c: E2 0E 00 6B 50 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2D [11:55:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:55:03]wFMCommunicate OK [11:55:03]SAM_PROTO_GetShiftState done [11:55:03]FM_GetShiftState done [11:55:03]req_shift_opened done [11:55:03]requested_item shift.open_date is exist - process it [11:55:03]req_shift_open_date [11:55:03]req_shift_open_date done [11:55:03]produce_requested_data done [11:55:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188230,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:55:03]process_action_free close_receipt [11:55:03]json_value_free [11:55:03]json_value_free done [11:55:03]process_json_proto returns [11:55:03]Send response to host [11:55:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188230,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:55:03]free response buf [11:55:03]execute_script done [11:55:03]execute_script returns [11:55:03]free content buf [11:55:03]Sock 8.Close socket [11:55:03]Sock 8.Thread stoped [11:55:43]accept exits with 9 [11:55:43]New connection [11:55:43]New thread 3067055460 created [11:55:43]Thread 3067198820 joined [11:55:43]Waiting for new connection... [11:55:43] Sock 9.Parse request [11:55:43]Sock 9.Check first char [11:55:43]Sock 9.First char is OK [11:55:43]request: POST /json_proto HTTP/1.0 [11:55:43]Method: POST [11:55:43]URL: /json_proto [11:55:43]Method is POST - this is cgi request [11:55:43]url: /json_proto [11:55:43]query_string will be loaded in cgi processing [11:55:43]execute_cgi json_proto POST (null) [11:55:43]execute_cgi path=json_proto method=POST [11:55:43]POST find Content-Length [11:55:43]Host: 172.17.42.131:8080 [11:55:43]Content-Length: 792 [11:55:43]Content-Type: application/json [11:55:43] [11:55:43]POST finish read [11:55:43]Found Content-Length = 792 [11:55:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 44.850, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:43]execute_script... [11:55: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)210283", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 44.850, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:55:43]POST & json_proto [11:55:43]process_json_proto [11:55:43]json parsed OK: [11:55:43]protocol is kg_v1.0 [11:55:43]action value=close_receipt [11:55:43]process_action close_receipt [11:55:43]cmd_close_receipt [11:55:43]MH_GetDate [11:55:43]Write to MH i2c: F0 00 00 6C 50 AB [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: F0 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: F0 09 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: F0 09 00 6C 50 00 C2 92 17 67 A0 18 CA 66 6E [11:55:43]GetLastDocTimeStamp 1729598102 [11:55:43]current date 1729598146 [11:55:43]FM_GetShiftState [11:55:43]SAM_PROTO_GetShiftState [11:55:43]wFMCommunicate request_size=4 [11:55:43]MH_SAM_APDU [11:55:43]CAPDU: 80 13 01 00 [11:55:43]Write to MH i2c: E2 08 00 6D 50 80 13 01 00 00 00 00 00 3A [11:55:43]Write i2c OK [11:55:43]MH_I2C_Read... [11:55:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:43]Read from MH i2c: E2 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 0E 00 [11:55:43]MH_I2C_Read... [11:55:43]Read from MH i2c: E2 0E 00 6D 50 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2F [11:55:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:55:43]wFMCommunicate OK [11:55:43]SAM_PROTO_GetShiftState done [11:55:43]FM_GetShiftState done [11:55:43]opened in 1729556094 [11:55:43]opened+sec_in_day 1729642494 [11:55:43]quantity*price = 0 [11:55:43]sum+1 = 1 [11:55:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 260 22.10.2024 11:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 188231 ФПД: 72429763895258 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188231&fm=72429763895258&tin=02508201610067®Number=0000000000100030&sum=0 [11:55:44]StoreToDocumentArchive [11:55:44]shift 461 fd 188231 [11:55:44]save to /storage/0461/doc_00188231 [11:55:44]save last doc name /storage/0461/doc_00188231 to /storage/kkm_last_doc_name [11:55:44]save OK [11:55:44]Clear old archive folders... [11:55:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:55:44]tlvbuf is 01B996A0 [11:55:44]SAM_PROTO_ClearQueue [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 09 00 00 [11:55:44]Write to MH i2c: E2 08 00 7A 50 80 09 00 00 00 00 00 00 3C [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 7A 50 00 90 00 3E [11:55:44]RAPDU: 90 00 [11:55:44]wFMCommunicate OK [11:55:44]SAM_PROTO_ClearQueue done [11:55:44]KKMCreateOFDPacket [11:55:44]OFDProtocolAddRootSTLVToBuf [11:55:44]FM_MakeSignedData [11:55:44]FM_MakeSignedData [11:55:44]SAM_PROTO_SignData [11:55:44]wFMCommunicate request_size=4 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 0D 01 02 [11:55:44]Write to MH i2c: E2 08 00 7B 50 80 0D 01 02 00 00 00 00 44 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:55:44]Read from MH i2c: E2 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 [11:55:44]MH_I2C_Read... [11:55:44]Read from MH i2c: E2 03 00 7B 50 00 90 00 3F [11:55:44]RAPDU: 90 00 [11:55:44]wFMCommunicate OK [11:55:44]wFMCommunicate request_size=255 [11:55:44]MH_SAM_APDU [11:55:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C2 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DF 02 00 35 04 06 00 41 [11:55:44]Write to MH i2c: E2 02 01 7C 50 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C2 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DF 02 00 35 04 06 00 41 00 00 21 [11:55:44]Write i2c OK [11:55:44]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 7C 50 00 90 00 40 [11:55:45]RAPDU: 90 00 [11:55:45]wFMCommunicate OK [11:55:45]wFMCommunicate request_size=10 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 0D 02 02 05 DF DE 59 1F DA [11:55:45]Write to MH i2c: E2 0D 00 7D 50 80 0D 02 02 05 00 DF DE 59 1F DA 00 00 60 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 03 00 7D 50 00 90 00 41 [11:55:45]RAPDU: 90 00 [11:55:45]wFMCommunicate OK [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 0D 03 02 [11:55:45]Write to MH i2c: E2 08 00 7E 50 80 0D 03 02 00 00 00 00 49 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 0B 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 0B 00 7E 50 00 F0 09 1B CB D4 8D 3C 9C 90 00 62 [11:55:45]RAPDU: F0 09 1B CB D4 8D 3C 9C 90 00 [11:55:45]wFMCommunicate OK [11:55:45]SAM_PROTO_SignData done [11:55:45]FM_MakeSignedData done [11:55:45]CreateOFDProtocolMessage [11:55:45]wFMCommunicate request_size=4 [11:55:45]MH_SAM_APDU [11:55:45]CAPDU: 80 11 00 00 [11:55:45]Write to MH i2c: E2 08 00 7F 50 80 11 00 00 00 00 00 00 49 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:45]Read from MH i2c: E2 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 17 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: E2 17 00 7F 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [11:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:55:45]wFMCommunicate OK [11:55:45]CreateOFDProtocolMessage done [11:55:45]OFDSenderStorePacket 188231 [11:55:45]StoreOFDPacket docnum=188231 [11:55:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 27 8A 07 01 57 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C2 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DF 02 00 35 04 06 00 41 DF DE 59 1F DA F0 09 1B CB D4 8D 3C 9C [11:55:45]CheckFolder [11:55:45]dirname=/storage/ofd_packets [11:55:45]CheckFolder done [11:55:45]ProducePacketName [11:55:45]name=ofd_packets/00188231 [11:55:45]NVStorageSaveData ofd_packets/00188231 [11:55:45]File name is /storage/ofd_packets/00188231 [11:55:45]Write 301 bytes [11:55:45]NVStorageSaveData done [11:55:45]OFDSenderStorePacket done [11:55:45]KKMCreateOFDPacket done [11:55:45]NVStorageSaveData kkm_last_timestamp [11:55:45]File name is /storage/kkm_last_timestamp [11:55:45]Write 4 bytes [11:55:45]NVStorageSaveData done [11:55:45]ExternCall_PrintAddStr [11:55:45]wPrintStart [11:55:45]Write to MH i2c: 01 00 00 80 50 D0 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 07 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 07 00 80 50 00 00 00 00 00 FF 0F E5 [11:55:45]RasterBufferAndPrint [11:55:45]line Счет N : (1)210283 [11:55:45]line ИНН: 02508201610067 [11:55:45]line Контрольно-Кассовый Чек [11:55:45]line ПРОДАЖА [11:55:45]line ТРК (МРК, ГНК) : 42 [11:55:45]line Товар: 2710124130 [11:55:45]line Аи-92-К-3 [11:55:45]line 44.850 * 0.00 [11:55:45]line = 0.00 [11:55:45]line НДС 12% НСП 1% [11:55:45]line > о реализуемом товаре [11:55:45]line ИТОГО: 0.00 [11:55:45]line НСП 1% : 0.00 [11:55:45]line НДС 12% : 0.00 [11:55:45]line Наличными: 0.00 [11:55:45]line Безнал.: 0.00 [11:55:45]line Место: АЗС № 86 "Партнер Нефть" [11:55:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:55:45]line СНО: Общий режим [11:55:45]line Чек 260 22.10.2024 11:55 [11:55:45]line Смена: 461 ФФД: 1.0 [11:55:45]line ЗНМ: 0300000155 [11:55:45]line РНМ: 0000000000100030 [11:55:45]line Версия ККМ: 001 [11:55:45]line Талоны: Топливная Карта [11:55:45]line 02633 [11:55:45]line ФМ: 0000000000965340 [11:55:45]line ФД: 188231 [11:55:45]line ФПД: 72429763895258 [11:55:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188231&fm=72429763895258&tin=02508201610067®Number=0000000000100030&sum=0 [11:55:45]written 0, free lines is 4095 [11:55:45]Write to MH i2c: 01 00 00 AA 50 FA [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 07 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: 01 07 00 AA 50 00 00 00 00 00 8E 0C 9B [11:55:45]RasterBufferAndPrint [11:55:45]line [11:55:45]line [11:55:45]line [11:55:45]line [11:55:45]line [11:55:45]written 0, free lines is 3218 [11:55:45]MH_Cut [11:55:45]Write to MH i2c: D1 01 00 B1 50 01 D3 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: D1 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: D1 01 00 [11:55:45]MH_I2C_Read... [11:55:45]Read from MH i2c: D1 01 00 B1 50 00 D2 [11:55:45]Write to MH i2c: 01 00 00 B2 50 02 [11:55:45]Write i2c OK [11:55:45]MH_I2C_Read... [11:55:46]*** Cut start [11:55:46]*** Partial cut [11:55:46]*** CUTSNS_PIN = 1 [11:55:46]*** CUTSNS_PIN = 0 [11:55:47]*** Brake cut motor [11:55:47]Read from MH i2c: 01 [11:55:47]MH_I2C_Read... [11:55:47]*** Stop cut motor [11:55:47]*** Cut end [11:55:47]Read from MH i2c: 01 07 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: 01 07 00 B2 50 00 00 00 00 00 FF 0F 17 [11:55:47]process_action close_receipt done [11:55:47]requested_data is exist [11:55:47]produce_requested_data [11:55:47]requested_item fm.sn is exist - process it [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 11 00 00 [11:55:47]Write to MH i2c: E2 08 00 B3 50 80 11 00 00 00 00 00 00 7D [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 17 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 17 00 B3 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [11:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:55:47]wFMCommunicate OK [11:55:47]requested_item fd.num is exist - process it [11:55:47]SAM_PROTO_GetFieldsCounters [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 13 00 00 [11:55:47]Write to MH i2c: E2 08 00 B4 50 80 13 00 00 00 00 00 00 80 [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 62 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 62 00 B4 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [11:55:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 04 01 00 00 5E 04 04 00 04 01 00 00 57 04 04 00 05 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:55:47]wFMCommunicate OK [11:55:47]SAM_PROTO_GetFieldsCounters done [11:55:47]requested_item shift.num is exist - process it [11:55:47]requested_item shift.opened is exist - process it [11:55:47]req_shift_opened [11:55:47]FM_GetShiftState [11:55:47]SAM_PROTO_GetShiftState [11:55:47]wFMCommunicate request_size=4 [11:55:47]MH_SAM_APDU [11:55:47]CAPDU: 80 13 01 00 [11:55:47]Write to MH i2c: E2 08 00 B5 50 80 13 01 00 00 00 00 00 82 [11:55:47]Write i2c OK [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 [11:55:47]MH_I2C_Read... [11:55:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:55:47]Read from MH i2c: E2 0E 00 [11:55:47]MH_I2C_Read... [11:55:47]Read from MH i2c: E2 0E 00 B5 50 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 77 [11:55:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:55:47]wFMCommunicate OK [11:55:47]SAM_PROTO_GetShiftState done [11:55:47]FM_GetShiftState done [11:55:47]req_shift_opened done [11:55:47]requested_item shift.open_date is exist - process it [11:55:47]req_shift_open_date [11:55:47]req_shift_open_date done [11:55:47]produce_requested_data done [11:55:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188231,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:55:47]process_action_free close_receipt [11:55:47]json_value_free [11:55:47]json_value_free done [11:55:47]process_json_proto returns [11:55:47]Send response to host [11:55:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188231,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:55:47]free response buf [11:55:47]execute_script done [11:55:47]execute_script returns [11:55:47]free content buf [11:55:47]Sock 9.Close socket [11:55:47]Sock 9.Thread stoped [11:56:44]accept exits with 8 [11:56:44]New connection [11:56:44]New thread 3067198820 created [11:56:44]Thread 3067055460 joined [11:56:44]Waiting for new connection... [11:56:44] Sock 8.Parse request [11:56:44]Sock 8.Check first char [11:56:44]Sock 8.First char is OK [11:56:44]request: POST /json_proto HTTP/1.0 [11:56:44]Method: POST [11:56:44]URL: /json_proto [11:56:44]Method is POST - this is cgi request [11:56:44]url: /json_proto [11:56:44]query_string will be loaded in cgi processing [11:56:44]execute_cgi json_proto POST (null) [11:56:44]execute_cgi path=json_proto method=POST [11:56:44]POST find Content-Length [11:56:44]Host: 172.17.42.131:8080 [11:56:44]Content-Length: 674 [11:56:44]Content-Type: application/json [11:56:44] [11:56:44]POST finish read [11:56:44]Found Content-Length = 674 [11:56:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:44]execute_script... [11:56: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)210286", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 7.880, "sum" : 600.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:56:44]POST & json_proto [11:56:44]process_json_proto [11:56:44]json parsed OK: [11:56:44]protocol is kg_v1.0 [11:56:44]action value=close_receipt [11:56:44]process_action close_receipt [11:56:44]cmd_close_receipt [11:56:44]MH_GetDate [11:56:44]Write to MH i2c: F0 00 00 B6 50 F5 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: F0 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: F0 09 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: F0 09 00 B6 50 00 FF 92 17 67 A0 18 CA 66 F5 [11:56:44]GetLastDocTimeStamp 1729598146 [11:56:44]current date 1729598207 [11:56:44]FM_GetShiftState [11:56:44]SAM_PROTO_GetShiftState [11:56:44]wFMCommunicate request_size=4 [11:56:44]MH_SAM_APDU [11:56:44]CAPDU: 80 13 01 00 [11:56:44]Write to MH i2c: E2 08 00 B7 50 80 13 01 00 00 00 00 00 84 [11:56:44]Write i2c OK [11:56:44]MH_I2C_Read... [11:56:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:44]Read from MH i2c: E2 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 [11:56:44]MH_I2C_Read... [11:56:44]Read from MH i2c: E2 0E 00 B7 50 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 79 [11:56:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:56:44]wFMCommunicate OK [11:56:44]SAM_PROTO_GetShiftState done [11:56:44]FM_GetShiftState done [11:56:44]opened in 1729556094 [11:56:44]opened+sec_in_day 1729642494 [11:56:44]quantity*price = 60045 [11:56:44]sum+1 = 60047 [11:56:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.77 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 261 22.10.2024 11:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188232 ФПД: 205406344356874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188232&fm=205406344356874&tin=02508201610067®Number=0000000000100030&sum=60000 [11:56:45]StoreToDocumentArchive [11:56:45]shift 461 fd 188232 [11:56:45]save to /storage/0461/doc_00188232 [11:56:45]save last doc name /storage/0461/doc_00188232 to /storage/kkm_last_doc_name [11:56:45]save OK [11:56:45]Clear old archive folders... [11:56:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:56:45]tlvbuf is 01D141D0 [11:56:45]SAM_PROTO_ClearQueue [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 09 00 00 [11:56:45]Write to MH i2c: E2 08 00 C4 50 80 09 00 00 00 00 00 00 86 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 C4 50 00 90 00 88 [11:56:45]RAPDU: 90 00 [11:56:45]wFMCommunicate OK [11:56:45]SAM_PROTO_ClearQueue done [11:56:45]KKMCreateOFDPacket [11:56:45]OFDProtocolAddRootSTLVToBuf [11:56:45]FM_MakeSignedData [11:56:45]FM_MakeSignedData [11:56:45]SAM_PROTO_SignData [11:56:45]wFMCommunicate request_size=4 [11:56:45]MH_SAM_APDU [11:56:45]CAPDU: 80 0D 01 02 [11:56:45]Write to MH i2c: E2 08 00 C5 50 80 0D 01 02 00 00 00 00 8E [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:56:45]Read from MH i2c: E2 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 [11:56:45]MH_I2C_Read... [11:56:45]Read from MH i2c: E2 03 00 C5 50 00 90 00 89 [11:56:45]RAPDU: 90 00 [11:56:45]wFMCommunicate OK [11:56:45]wFMCommunicate request_size=255 [11:56:45]MH_SAM_APDU [11:56: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 FF 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DF 02 00 35 04 06 00 BA D0 E4 30 [11:56:45]Write to MH i2c: E2 02 01 C6 50 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 FF 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DF 02 00 35 04 06 00 BA D0 E4 30 00 00 64 [11:56:45]Write i2c OK [11:56:45]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 03 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 03 00 C6 50 00 90 00 8A [11:56:46]RAPDU: 90 00 [11:56:46]wFMCommunicate OK [11:56:46]wFMCommunicate request_size=7 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 0D 02 02 02 A4 0A [11:56:46]Write to MH i2c: E2 0A 00 C7 50 80 0D 02 02 02 00 A4 0A 00 00 43 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 03 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 03 00 C7 50 00 90 00 8B [11:56:46]RAPDU: 90 00 [11:56:46]wFMCommunicate OK [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 0D 03 02 [11:56:46]Write to MH i2c: E2 08 00 C8 50 80 0D 03 02 00 00 00 00 93 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 0B 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 0B 00 C8 50 00 73 18 30 EF AD BA C2 94 90 00 FB [11:56:46]RAPDU: 73 18 30 EF AD BA C2 94 90 00 [11:56:46]wFMCommunicate OK [11:56:46]SAM_PROTO_SignData done [11:56:46]FM_MakeSignedData done [11:56:46]CreateOFDProtocolMessage [11:56:46]wFMCommunicate request_size=4 [11:56:46]MH_SAM_APDU [11:56:46]CAPDU: 80 11 00 00 [11:56:46]Write to MH i2c: E2 08 00 C9 50 80 11 00 00 00 00 00 00 93 [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:46]Read from MH i2c: E2 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 17 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: E2 17 00 C9 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [11:56:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:56:46]wFMCommunicate OK [11:56:46]CreateOFDProtocolMessage done [11:56:46]OFDSenderStorePacket 188232 [11:56:46]StoreOFDPacket docnum=188232 [11:56:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CE F9 04 01 A1 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 FF 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DF 02 00 35 04 06 00 BA D0 E4 30 A4 0A 73 18 30 EF AD BA C2 94 [11:56:46]CheckFolder [11:56:46]dirname=/storage/ofd_packets [11:56:46]CheckFolder done [11:56:46]ProducePacketName [11:56:46]name=ofd_packets/00188232 [11:56:46]NVStorageSaveData ofd_packets/00188232 [11:56:46]File name is /storage/ofd_packets/00188232 [11:56:46]Write 298 bytes [11:56:46]NVStorageSaveData done [11:56:46]OFDSenderStorePacket done [11:56:46]KKMCreateOFDPacket done [11:56:46]NVStorageSaveData kkm_last_timestamp [11:56:46]File name is /storage/kkm_last_timestamp [11:56:46]Write 4 bytes [11:56:46]NVStorageSaveData done [11:56:46]ExternCall_PrintAddStr [11:56:46]wPrintStart [11:56:46]Write to MH i2c: 01 00 00 CA 50 1A [11:56:46]Write i2c OK [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 07 00 [11:56:46]MH_I2C_Read... [11:56:46]Read from MH i2c: 01 07 00 CA 50 00 00 00 00 00 FF 0F 2F [11:56:46]RasterBufferAndPrint [11:56:46]line Счет N : (1)210286 [11:56:46]line ИНН: 02508201610067 [11:56:46]line Контрольно-Кассовый Чек [11:56:46]line ПРОДАЖА [11:56:46]line ТРК (МРК, ГНК) : 51 [11:56:46]line Товар: 2710194210 [11:56:46]line ДТ-К-5 [11:56:46]line 7.880 * 76.20 [11:56:46]line = 600.46 [11:56:46]line НДС 12% НСП 1% [11:56:46]line > о реализуемом товаре [11:56:46]line ОКРУГЛЕНИЕ: -0.46 [11:56:46]line ИТОГО: 600.00 [11:56:46]line Внесено: 600.00 [11:56:46]line СДАЧА: 0.00 [11:56:46]line НСП 1% : 5.31 [11:56:46]line НДС 12% : 63.77 [11:56:46]line Наличными: 600.00 [11:56:46]line Безнал.: 0.00 [11:56:46]line Место: АЗС № 86 "Партнер Нефть" [11:56:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:56:46]line СНО: Общий режим [11:56:46]line Чек 261 22.10.2024 11:56 [11:56:46]line Смена: 461 ФФД: 1.0 [11:56:46]line ЗНМ: 0300000155 [11:56:46]line РНМ: 0000000000100030 [11:56:46]line Версия ККМ: 001 [11:56:46]line ФМ: 0000000000965340 [11:56:46]line ФД: 188232 [11:56:46]line ФПД: 205406344356874 [11:56:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188232&fm=205406344356874&tin=02508201610067®Number=0000000000100030&sum=60000 [11:56:46]written 0, free lines is 4095 [11:56:47]Write to MH i2c: 01 00 00 F5 50 45 [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: 01 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: 01 07 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: 01 07 00 F5 50 00 00 00 00 00 6D 0C C5 [11:56:47]RasterBufferAndPrint [11:56:47]line [11:56:47]line [11:56:47]line [11:56:47]line [11:56:47]line [11:56:47]written 0, free lines is 3183 [11:56:47]MH_Cut [11:56:47]Write to MH i2c: D1 01 00 FC 50 01 1E [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: D1 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: D1 01 00 [11:56:47]MH_I2C_Read... [11:56:47]Read from MH i2c: D1 01 00 FC 50 00 1D [11:56:47]Write to MH i2c: 01 00 00 FD 50 4D [11:56:47]Write i2c OK [11:56:47]MH_I2C_Read... [11:56:48]*** Cut start [11:56:48]*** Partial cut [11:56:48]*** CUTSNS_PIN = 1 [11:56:48]*** CUTSNS_PIN = 0 [11:56:48]*** Brake cut motor [11:56:48]Read from MH i2c: 01 [11:56:48]MH_I2C_Read... [11:56:48]*** Stop cut motor [11:56:48]*** Cut end [11:56:48]Read from MH i2c: 01 07 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: 01 07 00 FD 50 00 00 00 00 00 FF 0F 62 [11:56:48]process_action close_receipt done [11:56:48]requested_data is exist [11:56:48]produce_requested_data [11:56:48]requested_item fm.sn is exist - process it [11:56:48]wFMCommunicate request_size=4 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 11 00 00 [11:56:48]Write to MH i2c: E2 08 00 FE 50 80 11 00 00 00 00 00 00 C8 [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:56:48]Read from MH i2c: E2 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 17 00 [11:56:48]MH_I2C_Read... [11:56:48]Read from MH i2c: E2 17 00 FE 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [11:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:56:48]wFMCommunicate OK [11:56:48]requested_item fd.num is exist - process it [11:56:48]SAM_PROTO_GetFieldsCounters [11:56:48]wFMCommunicate request_size=4 [11:56:48]MH_SAM_APDU [11:56:48]CAPDU: 80 13 00 00 [11:56:48]Write to MH i2c: E2 08 00 FF 50 80 13 00 00 00 00 00 00 CB [11:56:48]Write i2c OK [11:56:48]MH_I2C_Read... [11:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:56:49]Read from MH i2c: E2 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: E2 62 00 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: E2 62 00 FF 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [11:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 05 01 00 00 5E 04 04 00 05 01 00 00 57 04 04 00 06 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:56:49]wFMCommunicate OK [11:56:49]SAM_PROTO_GetFieldsCounters done [11:56:49]requested_item shift.num is exist - process it [11:56:49]requested_item shift.opened is exist - process it [11:56:49]req_shift_opened [11:56:49]FM_GetShiftState [11:56:49]SAM_PROTO_GetShiftState [11:56:49]wFMCommunicate request_size=4 [11:56:49]MH_SAM_APDU [11:56:49]CAPDU: 80 13 01 00 [11:56:49]Write to MH i2c: E2 08 00 00 51 80 13 01 00 00 00 00 00 CE [11:56:49]Write i2c OK [11:56:49]MH_I2C_Read... [11:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:56:49]Read from MH i2c: E2 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: E2 0E 00 [11:56:49]MH_I2C_Read... [11:56:49]Read from MH i2c: E2 0E 00 00 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C3 [11:56:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:56:49]wFMCommunicate OK [11:56:49]SAM_PROTO_GetShiftState done [11:56:49]FM_GetShiftState done [11:56:49]req_shift_opened done [11:56:49]requested_item shift.open_date is exist - process it [11:56:49]req_shift_open_date [11:56:49]req_shift_open_date done [11:56:49]produce_requested_data done [11:56:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188232,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:56:49]process_action_free close_receipt [11:56:49]json_value_free [11:56:49]json_value_free done [11:56:49]process_json_proto returns [11:56:49]Send response to host [11:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188232,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:56:49]free response buf [11:56:49]execute_script done [11:56:49]execute_script returns [11:56:49]free content buf [11:56:49]Sock 8.Close socket [11:56:49]Sock 8.Thread stoped [11:57:03]accept exits with 9 [11:57:03]New connection [11:57:03]New thread 3067055460 created [11:57:03]Thread 3067198820 joined [11:57:03]Waiting for new connection... [11:57:03] Sock 9.Parse request [11:57:03]Sock 9.Check first char [11:57:03]Sock 9.First char is OK [11:57:03]request: POST /json_proto HTTP/1.0 [11:57:03]Method: POST [11:57:03]URL: /json_proto [11:57:03]Method is POST - this is cgi request [11:57:03]url: /json_proto [11:57:03]query_string will be loaded in cgi processing [11:57:03]execute_cgi json_proto POST (null) [11:57:03]execute_cgi path=json_proto method=POST [11:57:03]POST find Content-Length [11:57:03]Host: 172.17.42.131:8080 [11:57:03]Content-Length: 754 [11:57:03]Content-Type: application/json [11:57:03] [11:57:03]POST finish read [11:57:03]Found Content-Length = 754 [11:57:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118626", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:03]execute_script... [11:57: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)210285", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30118626", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:03]POST & json_proto [11:57:03]process_json_proto [11:57:03]json parsed OK: [11:57:03]protocol is kg_v1.0 [11:57:03]action value=close_receipt [11:57:03]process_action close_receipt [11:57:03]cmd_close_receipt [11:57:03]MH_GetDate [11:57:03]Write to MH i2c: F0 00 00 01 51 41 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: F0 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: F0 09 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: F0 09 00 01 51 00 13 93 17 67 A0 18 CA 66 56 [11:57:03]GetLastDocTimeStamp 1729598207 [11:57:03]current date 1729598227 [11:57:03]FM_GetShiftState [11:57:03]SAM_PROTO_GetShiftState [11:57:03]wFMCommunicate request_size=4 [11:57:03]MH_SAM_APDU [11:57:03]CAPDU: 80 13 01 00 [11:57:03]Write to MH i2c: E2 08 00 02 51 80 13 01 00 00 00 00 00 D0 [11:57:03]Write i2c OK [11:57:03]MH_I2C_Read... [11:57:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:03]Read from MH i2c: E2 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0E 00 [11:57:03]MH_I2C_Read... [11:57:03]Read from MH i2c: E2 0E 00 02 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C5 [11:57:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:57:03]wFMCommunicate OK [11:57:03]SAM_PROTO_GetShiftState done [11:57:03]FM_GetShiftState done [11:57:03]opened in 1729556094 [11:57:03]opened+sec_in_day 1729642494 [11:57:03]quantity*price = 0 [11:57:03]sum+1 = 1 [11:57:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 262 22.10.2024 11:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30118626 ФМ: 0000000000965340 ФД: 188233 ФПД: 242029442465202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188233&fm=242029442465202&tin=02508201610067®Number=0000000000100030&sum=0 [11:57:04]StoreToDocumentArchive [11:57:04]shift 461 fd 188233 [11:57:04]save to /storage/0461/doc_00188233 [11:57:04]save last doc name /storage/0461/doc_00188233 to /storage/kkm_last_doc_name [11:57:04]save OK [11:57:04]Clear old archive folders... [11:57:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:04]tlvbuf is 01D14170 [11:57:04]SAM_PROTO_ClearQueue [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 09 00 00 [11:57:04]Write to MH i2c: E2 08 00 0F 51 80 09 00 00 00 00 00 00 D2 [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 0F 51 00 90 00 D4 [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]SAM_PROTO_ClearQueue done [11:57:04]KKMCreateOFDPacket [11:57:04]OFDProtocolAddRootSTLVToBuf [11:57:04]FM_MakeSignedData [11:57:04]FM_MakeSignedData [11:57:04]SAM_PROTO_SignData [11:57:04]wFMCommunicate request_size=4 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 01 02 [11:57:04]Write to MH i2c: E2 08 00 10 51 80 0D 01 02 00 00 00 00 DA [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:04]Read from MH i2c: E2 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 [11:57:04]MH_I2C_Read... [11:57:04]Read from MH i2c: E2 03 00 10 51 00 90 00 D5 [11:57:04]RAPDU: 90 00 [11:57:04]wFMCommunicate OK [11:57:04]wFMCommunicate request_size=255 [11:57:04]MH_SAM_APDU [11:57:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 13 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DF 02 00 35 04 06 00 DC [11:57:04]Write to MH i2c: E2 02 01 11 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 13 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DF 02 00 35 04 06 00 DC 00 00 6C [11:57:04]Write i2c OK [11:57:04]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 11 51 00 90 00 D6 [11:57:05]RAPDU: 90 00 [11:57:05]wFMCommunicate OK [11:57:05]wFMCommunicate request_size=10 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 0D 02 02 05 1F DE F1 7D B2 [11:57:05]Write to MH i2c: E2 0D 00 12 51 80 0D 02 02 05 00 1F DE F1 7D B2 00 00 04 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 03 00 12 51 00 90 00 D7 [11:57:05]RAPDU: 90 00 [11:57:05]wFMCommunicate OK [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 0D 03 02 [11:57:05]Write to MH i2c: E2 08 00 13 51 80 0D 03 02 00 00 00 00 DF [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0B 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 0B 00 13 51 00 61 55 59 2C 5A 5B F0 D6 90 00 96 [11:57:05]RAPDU: 61 55 59 2C 5A 5B F0 D6 90 00 [11:57:05]wFMCommunicate OK [11:57:05]SAM_PROTO_SignData done [11:57:05]FM_MakeSignedData done [11:57:05]CreateOFDProtocolMessage [11:57:05]wFMCommunicate request_size=4 [11:57:05]MH_SAM_APDU [11:57:05]CAPDU: 80 11 00 00 [11:57:05]Write to MH i2c: E2 08 00 14 51 80 11 00 00 00 00 00 00 DF [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:05]Read from MH i2c: E2 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: E2 17 00 14 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [11:57:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:57:05]wFMCommunicate OK [11:57:05]CreateOFDProtocolMessage done [11:57:05]OFDSenderStorePacket 188233 [11:57:05]StoreOFDPacket docnum=188233 [11:57:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 0A 07 01 C2 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 13 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DF 02 00 35 04 06 00 DC 1F DE F1 7D B2 61 55 59 2C 5A 5B F0 D6 [11:57:05]CheckFolder [11:57:05]dirname=/storage/ofd_packets [11:57:05]CheckFolder done [11:57:05]ProducePacketName [11:57:05]name=ofd_packets/00188233 [11:57:05]NVStorageSaveData ofd_packets/00188233 [11:57:05]File name is /storage/ofd_packets/00188233 [11:57:05]Write 301 bytes [11:57:05]NVStorageSaveData done [11:57:05]OFDSenderStorePacket done [11:57:05]KKMCreateOFDPacket done [11:57:05]NVStorageSaveData kkm_last_timestamp [11:57:05]File name is /storage/kkm_last_timestamp [11:57:05]Write 4 bytes [11:57:05]NVStorageSaveData done [11:57:05]ExternCall_PrintAddStr [11:57:05]wPrintStart [11:57:05]Write to MH i2c: 01 00 00 15 51 66 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 15 51 00 00 00 00 00 FF 0F 7B [11:57:05]RasterBufferAndPrint [11:57:05]line Счет N : (1)210285 [11:57:05]line ИНН: 02508201610067 [11:57:05]line Контрольно-Кассовый Чек [11:57:05]line ПРОДАЖА [11:57:05]line ТРК (МРК, ГНК) : 32 [11:57:05]line Товар: 2710124130 [11:57:05]line Аи-92-К-3 [11:57:05]line 30.000 * 0.00 [11:57:05]line = 0.00 [11:57:05]line НДС 12% НСП 1% [11:57:05]line > о реализуемом товаре [11:57:05]line ИТОГО: 0.00 [11:57:05]line НСП 1% : 0.00 [11:57:05]line НДС 12% : 0.00 [11:57:05]line Наличными: 0.00 [11:57:05]line Безнал.: 0.00 [11:57:05]line Место: АЗС № 86 "Партнер Нефть" [11:57:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:57:05]line СНО: Общий режим [11:57:05]line Чек 262 22.10.2024 11:57 [11:57:05]line Смена: 461 ФФД: 1.0 [11:57:05]line ЗНМ: 0300000155 [11:57:05]line РНМ: 0000000000100030 [11:57:05]line Версия ККМ: 001 [11:57:05]line Талоны: ТК ГПНА Online [11:57:05]line 30118626 [11:57:05]line ФМ: 0000000000965340 [11:57:05]line ФД: 188233 [11:57:05]line ФПД: 242029442465202 [11:57:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188233&fm=242029442465202&tin=02508201610067®Number=0000000000100030&sum=0 [11:57:05]written 0, free lines is 4095 [11:57:05]Write to MH i2c: 01 00 00 3F 51 90 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: 01 07 00 3F 51 00 00 00 00 00 88 0C 2B [11:57:05]RasterBufferAndPrint [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]line [11:57:05]written 0, free lines is 3212 [11:57:05]MH_Cut [11:57:05]Write to MH i2c: D1 01 00 46 51 01 69 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 01 00 [11:57:05]MH_I2C_Read... [11:57:05]Read from MH i2c: D1 01 00 46 51 00 68 [11:57:05]Write to MH i2c: 01 00 00 47 51 98 [11:57:05]Write i2c OK [11:57:05]MH_I2C_Read... [11:57:06]*** Cut start [11:57:06]*** Partial cut [11:57:06]*** CUTSNS_PIN = 1 [11:57:07]*** CUTSNS_PIN = 0 [11:57:07]*** Brake cut motor [11:57:07]Read from MH i2c: 01 [11:57:07]MH_I2C_Read... [11:57:07]*** Stop cut motor [11:57:07]*** Cut end [11:57:07]Read from MH i2c: 01 07 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: 01 07 00 47 51 00 00 00 00 00 FF 0F AD [11:57:07]process_action close_receipt done [11:57:07]requested_data is exist [11:57:07]produce_requested_data [11:57:07]requested_item fm.sn is exist - process it [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 11 00 00 [11:57:07]Write to MH i2c: E2 08 00 48 51 80 11 00 00 00 00 00 00 13 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 17 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 17 00 48 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [11:57:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:57:07]wFMCommunicate OK [11:57:07]requested_item fd.num is exist - process it [11:57:07]SAM_PROTO_GetFieldsCounters [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 13 00 00 [11:57:07]Write to MH i2c: E2 08 00 49 51 80 13 00 00 00 00 00 00 16 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 62 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 62 00 49 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [11:57:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 06 01 00 00 5E 04 04 00 06 01 00 00 57 04 04 00 07 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:07]wFMCommunicate OK [11:57:07]SAM_PROTO_GetFieldsCounters done [11:57:07]requested_item shift.num is exist - process it [11:57:07]requested_item shift.opened is exist - process it [11:57:07]req_shift_opened [11:57:07]FM_GetShiftState [11:57:07]SAM_PROTO_GetShiftState [11:57:07]wFMCommunicate request_size=4 [11:57:07]MH_SAM_APDU [11:57:07]CAPDU: 80 13 01 00 [11:57:07]Write to MH i2c: E2 08 00 4A 51 80 13 01 00 00 00 00 00 18 [11:57:07]Write i2c OK [11:57:07]MH_I2C_Read... [11:57:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:07]Read from MH i2c: E2 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 0E 00 [11:57:07]MH_I2C_Read... [11:57:07]Read from MH i2c: E2 0E 00 4A 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0D [11:57:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:57:07]wFMCommunicate OK [11:57:07]SAM_PROTO_GetShiftState done [11:57:07]FM_GetShiftState done [11:57:07]req_shift_opened done [11:57:07]requested_item shift.open_date is exist - process it [11:57:07]req_shift_open_date [11:57:07]req_shift_open_date done [11:57:07]produce_requested_data done [11:57:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188233,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:57:07]process_action_free close_receipt [11:57:07]json_value_free [11:57:07]json_value_free done [11:57:07]process_json_proto returns [11:57:07]Send response to host [11:57:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188233,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:57:07]free response buf [11:57:07]execute_script done [11:57:07]execute_script returns [11:57:07]free content buf [11:57:07]Sock 9.Close socket [11:57:07]Sock 9.Thread stoped [11:57:13]ConnectInit Can't connect to host [11:57:13]CommunicateWithHost connect error [11:57:13]CommunicateWithHost err = -1 [11:57:13]OFD Sender: Server communicate error [11:57:13]OFD Sender: Processing packet 188230 [packets to send 1065, broken 1061] [11:57:13]ProducePacketName [11:57:13]name=ofd_packets/00188230 [11:57:13]OFD Sender: To server: pG, [11:57:13]CommunicateWithHost lk.salyk.kg:30040 [11:57:13]ConnectInit lk.salyk.kg [11:57:14]Connected sock=9 [11:57:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 71 16 07 01 9B 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 01 00 00 F4 03 04 00 96 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 DF 02 00 35 04 06 00 E3 FA F2 81 47 2F 24 DC 91 A6 87 C4 E8 BE [11:57:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 00 47 00 7E 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 39 36 35 33 34 30 10 04 04 00 46 DF 02 00 F4 03 04 00 08 3D 17 67 B6 04 01 00 00 11 D4 D1 74 6E 4A 50 BB [11:57:14]CommunicateWithHost err = 0 [11:57:14]CheckOFDResponse [11:57:14]1017 (14) - 77093643461234 [11:57:14]1041 (16) - 0000000000965340 [11:57:14]1040 (4) - 188230 [11:57:14]1012 (4) - 22.10.2024 05:50 [11:57:14]1206 (1) - 0 [11:57:14]OFD Sender: Remove packet 188230 [11:57:14]ProducePacketName [11:57:14]name=ofd_packets/00188230 [11:57:14]NVStorageDeleteData [11:57:15]OFD Sender: Processing packet 188231 [packets to send 1064, broken 1061] [11:57:15]ProducePacketName [11:57:15]name=ofd_packets/00188231 [11:57:15]OFD Sender: To server: pG, [11:57:15]CommunicateWithHost lk.salyk.kg:30040 [11:57:15]ConnectInit lk.salyk.kg [11:57:15]Connected sock=9 [11:57:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 27 8A 07 01 57 7F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 01 00 00 F4 03 04 00 C2 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 DF 02 00 35 04 06 00 41 DF DE 59 1F DA F0 09 1B CB D4 8D 3C 9C [11:57:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 3C 47 00 CB 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 39 36 35 33 34 30 10 04 04 00 47 DF 02 00 F4 03 04 00 09 3D 17 67 B6 04 01 00 00 60 23 38 D3 69 A7 86 35 [11:57:15]CommunicateWithHost err = 0 [11:57:15]CheckOFDResponse [11:57:15]1017 (14) - 77093643461234 [11:57:15]1041 (16) - 0000000000965340 [11:57:15]1040 (4) - 188231 [11:57:15]1012 (4) - 22.10.2024 05:50 [11:57:15]1206 (1) - 0 [11:57:15]OFD Sender: Remove packet 188231 [11:57:15]ProducePacketName [11:57:15]name=ofd_packets/00188231 [11:57:15]NVStorageDeleteData [11:57:16]OFD Sender: Processing packet 188232 [packets to send 1063, broken 1061] [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00188232 [11:57:16]OFD Sender: To server: pG, [11:57:16]CommunicateWithHost lk.salyk.kg:30040 [11:57:16]ConnectInit lk.salyk.kg [11:57:16]Connected sock=9 [11:57:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CE F9 04 01 A1 15 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 C8 1E 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 8E EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 01 00 00 F4 03 04 00 FF 92 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DF 02 00 35 04 06 00 BA D0 E4 30 A4 0A 73 18 30 EF AD BA C2 94 [11:57:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 39 47 00 1C 51 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 DF 02 00 F4 03 04 00 0B 3D 17 67 B6 04 01 00 00 87 61 43 17 38 9A 67 F3 [11:57:16]CommunicateWithHost err = 0 [11:57:16]CheckOFDResponse [11:57:16]1017 (14) - 77093643461234 [11:57:16]1041 (16) - 0000000000965340 [11:57:16]1040 (4) - 188232 [11:57:16]1012 (4) - 22.10.2024 05:50 [11:57:16]1206 (1) - 0 [11:57:16]OFD Sender: Remove packet 188232 [11:57:16]ProducePacketName [11:57:16]name=ofd_packets/00188232 [11:57:16]NVStorageDeleteData [11:57:17]OFD Sender: Processing packet 188233 [packets to send 1062, broken 1061] [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00188233 [11:57:17]OFD Sender: To server: pG, [11:57:17]CommunicateWithHost lk.salyk.kg:30040 [11:57:17]ConnectInit lk.salyk.kg [11:57:17]Connected sock=9 [11:57:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2A 0A 07 01 C2 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 01 00 00 F4 03 04 00 13 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 DF 02 00 35 04 06 00 DC 1F DE F1 7D B2 61 55 59 2C 5A 5B F0 D6 [11:57:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 CB 47 00 CC 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 39 36 35 33 34 30 10 04 04 00 49 DF 02 00 F4 03 04 00 0C 3D 17 67 B6 04 01 00 00 F8 E0 B4 A4 A0 89 DA 2D [11:57:17]CommunicateWithHost err = 0 [11:57:17]CheckOFDResponse [11:57:17]1017 (14) - 77093643461234 [11:57:17]1041 (16) - 0000000000965340 [11:57:17]1040 (4) - 188233 [11:57:17]1012 (4) - 22.10.2024 05:50 [11:57:17]1206 (1) - 0 [11:57:17]OFD Sender: Remove packet 188233 [11:57:17]ProducePacketName [11:57:17]name=ofd_packets/00188233 [11:57:17]NVStorageDeleteData [11:57:18]OFD Sender: No OFD packet to send [11:57:23]OFD Sender: No OFD packet to send [11:57:28]OFD Sender: No OFD packet to send [11:57:33]OFD Sender: No OFD packet to send [11:57:38]OFD Sender: No OFD packet to send [11:57:43]OFD Sender: No OFD packet to send [11:57:48]OFD Sender: No OFD packet to send [11:57:49]accept exits with 8 [11:57:49]New connection [11:57:49]New thread 3067198820 created [11:57:49]Thread 3067055460 joined [11:57:49]Waiting for new connection... [11:57:49] Sock 8.Parse request [11:57:49]Sock 8.Check first char [11:57:49]Sock 8.First char is OK [11:57:49]request: POST /json_proto HTTP/1.0 [11:57:49]Method: POST [11:57:49]URL: /json_proto [11:57:49]Method is POST - this is cgi request [11:57:49]url: /json_proto [11:57:49]query_string will be loaded in cgi processing [11:57:49]execute_cgi json_proto POST (null) [11:57:49]execute_cgi path=json_proto method=POST [11:57:49]POST find Content-Length [11:57:49]Host: 172.17.42.131:8080 [11:57:49]Content-Length: 679 [11:57:49]Content-Type: application/json [11:57:49] [11:57:49]POST finish read [11:57:49]Found Content-Length = 679 [11:57:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.020, "sum" : 871.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 871.00, "payments": [ { "type": 0, "sum" : 871.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:49]execute_script... [11:57: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)210287", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.020, "sum" : 871.04, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 871.00, "payments": [ { "type": 0, "sum" : 871.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:57:49]POST & json_proto [11:57:49]process_json_proto [11:57:49]json parsed OK: [11:57:49]protocol is kg_v1.0 [11:57:49]action value=close_receipt [11:57:49]process_action close_receipt [11:57:49]cmd_close_receipt [11:57:49]MH_GetDate [11:57:49]Write to MH i2c: F0 00 00 4B 51 8B [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: F0 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: F0 09 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: F0 09 00 4B 51 00 40 93 17 67 A0 18 CA 66 CD [11:57:49]GetLastDocTimeStamp 1729598227 [11:57:49]current date 1729598272 [11:57:49]FM_GetShiftState [11:57:49]SAM_PROTO_GetShiftState [11:57:49]wFMCommunicate request_size=4 [11:57:49]MH_SAM_APDU [11:57:49]CAPDU: 80 13 01 00 [11:57:49]Write to MH i2c: E2 08 00 4C 51 80 13 01 00 00 00 00 00 1A [11:57:49]Write i2c OK [11:57:49]MH_I2C_Read... [11:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:49]Read from MH i2c: E2 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 0E 00 [11:57:49]MH_I2C_Read... [11:57:49]Read from MH i2c: E2 0E 00 4C 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0F [11:57:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:57:49]wFMCommunicate OK [11:57:49]SAM_PROTO_GetShiftState done [11:57:49]FM_GetShiftState done [11:57:49]opened in 1729556094 [11:57:49]opened+sec_in_day 1729642494 [11:57:49]quantity*price = 87103 [11:57:49]sum+1 = 87105 [11:57:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.04 ИТОГО: 871.00 Внесено: 1000.00 СДАЧА: 129.00 НСП 1% : 7.71 НДС 12% : 92.50 Наличными: 871.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 263 22.10.2024 11:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188234 ФПД: 267869475341109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188234&fm=267869475341109&tin=02508201610067®Number=0000000000100030&sum=87100 [11:57:50]StoreToDocumentArchive [11:57:50]shift 461 fd 188234 [11:57:50]save to /storage/0461/doc_00188234 [11:57:50]save last doc name /storage/0461/doc_00188234 to /storage/kkm_last_doc_name [11:57:50]save OK [11:57:50]Clear old archive folders... [11:57:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [11:57:50]tlvbuf is 01B92250 [11:57:50]SAM_PROTO_ClearQueue [11:57:50]wFMCommunicate request_size=4 [11:57:50]MH_SAM_APDU [11:57:50]CAPDU: 80 09 00 00 [11:57:50]Write to MH i2c: E2 08 00 59 51 80 09 00 00 00 00 00 00 1C [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:57:50]Read from MH i2c: E2 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 59 51 00 90 00 1E [11:57:50]RAPDU: 90 00 [11:57:50]wFMCommunicate OK [11:57:50]SAM_PROTO_ClearQueue done [11:57:50]KKMCreateOFDPacket [11:57:50]OFDProtocolAddRootSTLVToBuf [11:57:50]FM_MakeSignedData [11:57:50]FM_MakeSignedData [11:57:50]SAM_PROTO_SignData [11:57:50]wFMCommunicate request_size=4 [11:57:50]MH_SAM_APDU [11:57:50]CAPDU: 80 0D 01 02 [11:57:50]Write to MH i2c: E2 08 00 5A 51 80 0D 01 02 00 00 00 00 24 [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:57:50]Read from MH i2c: E2 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 5A 51 00 90 00 1F [11:57:50]RAPDU: 90 00 [11:57:50]wFMCommunicate OK [11:57:50]wFMCommunicate request_size=255 [11:57:50]MH_SAM_APDU [11:57: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 33 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 40 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DF 02 00 35 04 06 00 F3 [11:57:50]Write to MH i2c: E2 02 01 5B 51 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 40 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DF 02 00 35 04 06 00 F3 00 00 A4 [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:50]Read from MH i2c: E2 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 5B 51 00 90 00 20 [11:57:50]RAPDU: 90 00 [11:57:50]wFMCommunicate OK [11:57:50]wFMCommunicate request_size=10 [11:57:50]MH_SAM_APDU [11:57:50]CAPDU: 80 0D 02 02 05 A0 38 EC 83 35 [11:57:50]Write to MH i2c: E2 0D 00 5C 51 80 0D 02 02 05 00 A0 38 EC 83 35 00 00 AD [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:57:50]Read from MH i2c: E2 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 03 00 5C 51 00 90 00 21 [11:57:50]RAPDU: 90 00 [11:57:50]wFMCommunicate OK [11:57:50]wFMCommunicate request_size=4 [11:57:50]MH_SAM_APDU [11:57:50]CAPDU: 80 0D 03 02 [11:57:50]Write to MH i2c: E2 08 00 5D 51 80 0D 03 02 00 00 00 00 29 [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:57:50]Read from MH i2c: E2 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 0B 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 0B 00 5D 51 00 6B A4 31 5E 9A 9F 56 29 90 00 80 [11:57:50]RAPDU: 6B A4 31 5E 9A 9F 56 29 90 00 [11:57:50]wFMCommunicate OK [11:57:50]SAM_PROTO_SignData done [11:57:50]FM_MakeSignedData done [11:57:50]CreateOFDProtocolMessage [11:57:50]wFMCommunicate request_size=4 [11:57:50]MH_SAM_APDU [11:57:50]CAPDU: 80 11 00 00 [11:57:50]Write to MH i2c: E2 08 00 5E 51 80 11 00 00 00 00 00 00 29 [11:57:50]Write i2c OK [11:57:50]MH_I2C_Read... [11:57:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:50]Read from MH i2c: E2 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 17 00 [11:57:50]MH_I2C_Read... [11:57:50]Read from MH i2c: E2 17 00 5E 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [11:57:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:57:50]wFMCommunicate OK [11:57:50]CreateOFDProtocolMessage done [11:57:50]OFDSenderStorePacket 188234 [11:57:50]StoreOFDPacket docnum=188234 [11:57:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CB 48 07 01 23 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 40 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DF 02 00 35 04 06 00 F3 A0 38 EC 83 35 6B A4 31 5E 9A 9F 56 29 [11:57:50]CheckFolder [11:57:50]dirname=/storage/ofd_packets [11:57:50]CheckFolder done [11:57:50]ProducePacketName [11:57:50]name=ofd_packets/00188234 [11:57:50]NVStorageSaveData ofd_packets/00188234 [11:57:50]File name is /storage/ofd_packets/00188234 [11:57:50]Write 301 bytes [11:57:50]NVStorageSaveData done [11:57:50]OFDSenderStorePacket done [11:57:50]KKMCreateOFDPacket done [11:57:50]NVStorageSaveData kkm_last_timestamp [11:57:50]File name is /storage/kkm_last_timestamp [11:57:50]Write 4 bytes [11:57:50]NVStorageSaveData done [11:57:51]ExternCall_PrintAddStr [11:57:51]wPrintStart [11:57:51]Write to MH i2c: 01 00 00 5F 51 B0 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 07 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 07 00 5F 51 00 00 00 00 00 FF 0F C5 [11:57:51]RasterBufferAndPrint [11:57:51]line Счет N : (1)210287 [11:57:51]line ИНН: 02508201610067 [11:57:51]line Контрольно-Кассовый Чек [11:57:51]line ПРОДАЖА [11:57:51]line ТРК (МРК, ГНК) : 42 [11:57:51]line Товар: 2710124130 [11:57:51]line Аи-92-К-3 [11:57:51]line 13.020 * 66.90 [11:57:51]line = 871.04 [11:57:51]line НДС 12% НСП 1% [11:57:51]line > о реализуемом товаре [11:57:51]line ОКРУГЛЕНИЕ: -0.04 [11:57:51]line ИТОГО: 871.00 [11:57:51]line Внесено: 1000.00 [11:57:51]line СДАЧА: 129.00 [11:57:51]line НСП 1% : 7.71 [11:57:51]line НДС 12% : 92.50 [11:57:51]line Наличными: 871.00 [11:57:51]line Безнал.: 0.00 [11:57:51]line Место: АЗС № 86 "Партнер Нефть" [11:57:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:57:51]line СНО: Общий режим [11:57:51]line Чек 263 22.10.2024 11:57 [11:57:51]line Смена: 461 ФФД: 1.0 [11:57:51]line ЗНМ: 0300000155 [11:57:51]line РНМ: 0000000000100030 [11:57:51]line Версия ККМ: 001 [11:57:51]line ФМ: 0000000000965340 [11:57:51]line ФД: 188234 [11:57:51]line ФПД: 267869475341109 [11:57:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115752&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188234&fm=267869475341109&tin=02508201610067®Number=0000000000100030&sum=87100 [11:57:51]written 0, free lines is 4095 [11:57:51]OFD Sender: Processing packet 188234 [packets to send 1062, broken 1061] [11:57:51]ProducePacketName [11:57:51]name=ofd_packets/00188234 [11:57:51]OFD Sender: To server: pG, [11:57:51]CommunicateWithHost lk.salyk.kg:30040 [11:57:51]ConnectInit lk.salyk.kg [11:57:51]Connected sock=10 [11:57:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CB 48 07 01 23 90 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 DC 32 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 40 54 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3C 54 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 22 24 00 00 00 00 07 04 06 00 3C 54 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 01 00 00 F4 03 04 00 40 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DF 02 00 35 04 06 00 F3 A0 38 EC 83 35 6B A4 31 5E 9A 9F 56 29 [11:57:51]Write to MH i2c: 01 00 00 8A 51 DB [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 07 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: 01 07 00 8A 51 00 00 00 00 00 73 0C 61 [11:57:51]RasterBufferAndPrint [11:57:51]line [11:57:51]line [11:57:51]line [11:57:51]line [11:57:51]line [11:57:51]written 0, free lines is 3188 [11:57:51]MH_Cut [11:57:51]Write to MH i2c: D1 01 00 91 51 01 B4 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: D1 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: D1 01 00 [11:57:51]MH_I2C_Read... [11:57:51]Read from MH i2c: D1 01 00 91 51 00 B3 [11:57:51]Write to MH i2c: 01 00 00 92 51 E3 [11:57:51]Write i2c OK [11:57:51]MH_I2C_Read... [11:57:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 44 EA 47 00 BD 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A DF 02 00 F4 03 04 00 2D 3D 17 67 B6 04 01 00 00 D3 A1 2C DD E2 2A 68 ED [11:57:51]CommunicateWithHost err = 0 [11:57:51]CheckOFDResponse [11:57:51]1017 (14) - 77093643461234 [11:57:51]1041 (16) - 0000000000965340 [11:57:51]1040 (4) - 188234 [11:57:51]1012 (4) - 22.10.2024 05:50 [11:57:51]1206 (1) - 0 [11:57:51]OFD Sender: Remove packet 188234 [11:57:51]ProducePacketName [11:57:51]name=ofd_packets/00188234 [11:57:51]NVStorageDeleteData [11:57:52]OFD Sender: No OFD packet to send [11:57:52]*** Cut start [11:57:52]*** Partial cut [11:57:52]*** CUTSNS_PIN = 1 [11:57:52]*** CUTSNS_PIN = 0 [11:57:52]*** Brake cut motor [11:57:53]Read from MH i2c: 01 [11:57:53]MH_I2C_Read... [11:57:53]*** Stop cut motor [11:57:53]*** Cut end [11:57:53]Read from MH i2c: 01 07 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: 01 07 00 92 51 00 00 00 00 00 FF 0F F8 [11:57:53]process_action close_receipt done [11:57:53]requested_data is exist [11:57:53]produce_requested_data [11:57:53]requested_item fm.sn is exist - process it [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 11 00 00 [11:57:53]Write to MH i2c: E2 08 00 93 51 80 11 00 00 00 00 00 00 5E [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 17 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 17 00 93 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [11:57:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:57:53]wFMCommunicate OK [11:57:53]requested_item fd.num is exist - process it [11:57:53]SAM_PROTO_GetFieldsCounters [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 13 00 00 [11:57:53]Write to MH i2c: E2 08 00 94 51 80 13 00 00 00 00 00 00 61 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 62 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 62 00 94 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [11:57:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 07 01 00 00 5E 04 04 00 07 01 00 00 57 04 04 00 08 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:57:53]wFMCommunicate OK [11:57:53]SAM_PROTO_GetFieldsCounters done [11:57:53]requested_item shift.num is exist - process it [11:57:53]requested_item shift.opened is exist - process it [11:57:53]req_shift_opened [11:57:53]FM_GetShiftState [11:57:53]SAM_PROTO_GetShiftState [11:57:53]wFMCommunicate request_size=4 [11:57:53]MH_SAM_APDU [11:57:53]CAPDU: 80 13 01 00 [11:57:53]Write to MH i2c: E2 08 00 95 51 80 13 01 00 00 00 00 00 63 [11:57:53]Write i2c OK [11:57:53]MH_I2C_Read... [11:57:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:57:53]Read from MH i2c: E2 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 0E 00 [11:57:53]MH_I2C_Read... [11:57:53]Read from MH i2c: E2 0E 00 95 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 58 [11:57:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:57:53]wFMCommunicate OK [11:57:53]SAM_PROTO_GetShiftState done [11:57:53]FM_GetShiftState done [11:57:53]req_shift_opened done [11:57:53]requested_item shift.open_date is exist - process it [11:57:53]req_shift_open_date [11:57:53]req_shift_open_date done [11:57:53]produce_requested_data done [11:57:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188234,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:57:53]process_action_free close_receipt [11:57:53]json_value_free [11:57:53]json_value_free done [11:57:53]process_json_proto returns [11:57:53]Send response to host [11:57:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188234,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:57:53]free response buf [11:57:53]execute_script done [11:57:53]execute_script returns [11:57:53]free content buf [11:57:53]Sock 8.Close socket [11:57:53]Sock 8.Thread stoped [11:57:57]OFD Sender: No OFD packet to send [11:58:02]OFD Sender: No OFD packet to send [11:58:07]OFD Sender: No OFD packet to send [11:58:12]OFD Sender: No OFD packet to send [11:58:17]OFD Sender: No OFD packet to send [11:58:22]OFD Sender: No OFD packet to send [11:58:27]OFD Sender: No OFD packet to send [11:58:32]OFD Sender: No OFD packet to send [11:58:37]OFD Sender: No OFD packet to send [11:58:42]OFD Sender: No OFD packet to send [11:58:47]OFD Sender: No OFD packet to send [11:58:52]OFD Sender: No OFD packet to send [11:58:57]OFD Sender: No OFD packet to send [11:59:02]OFD Sender: No OFD packet to send [11:59:07]OFD Sender: No OFD packet to send [11:59:12]OFD Sender: No OFD packet to send [11:59:17]OFD Sender: No OFD packet to send [11:59:22]OFD Sender: No OFD packet to send [11:59:27]OFD Sender: No OFD packet to send [11:59:32]OFD Sender: No OFD packet to send [11:59:33]accept exits with 9 [11:59:33]New connection [11:59:33]New thread 3067055460 created [11:59:33]Thread 3067198820 joined [11:59:33]Waiting for new connection... [11:59:33] Sock 9.Parse request [11:59:33]Sock 9.Check first char [11:59:33]Sock 9.First char is OK [11:59:33]request: POST /json_proto HTTP/1.0 [11:59:33]Method: POST [11:59:33]URL: /json_proto [11:59:33]Method is POST - this is cgi request [11:59:33]url: /json_proto [11:59:33]query_string will be loaded in cgi processing [11:59:33]execute_cgi json_proto POST (null) [11:59:33]execute_cgi path=json_proto method=POST [11:59:33]POST find Content-Length [11:59:33]Host: 172.17.42.131:8080 [11:59:33]Content-Length: 679 [11:59:33]Content-Type: application/json [11:59:33] [11:59:33]POST finish read [11:59:33]Found Content-Length = 679 [11:59:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:59:33]execute_script... [11:59: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)210288", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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:59:33]POST & json_proto [11:59:33]process_json_proto [11:59:33]json parsed OK: [11:59:33]protocol is kg_v1.0 [11:59:33]action value=close_receipt [11:59:33]process_action close_receipt [11:59:33]cmd_close_receipt [11:59:33]MH_GetDate [11:59:33]Write to MH i2c: F0 00 00 96 51 D6 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: F0 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: F0 09 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: F0 09 00 96 51 00 A8 93 17 67 A0 18 CA 66 80 [11:59:33]GetLastDocTimeStamp 1729598272 [11:59:33]current date 1729598376 [11:59:33]FM_GetShiftState [11:59:33]SAM_PROTO_GetShiftState [11:59:33]wFMCommunicate request_size=4 [11:59:33]MH_SAM_APDU [11:59:33]CAPDU: 80 13 01 00 [11:59:33]Write to MH i2c: E2 08 00 97 51 80 13 01 00 00 00 00 00 65 [11:59:33]Write i2c OK [11:59:33]MH_I2C_Read... [11:59:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:33]Read from MH i2c: E2 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 [11:59:33]MH_I2C_Read... [11:59:33]Read from MH i2c: E2 0E 00 97 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5A [11:59:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:59:33]wFMCommunicate OK [11:59:33]SAM_PROTO_GetShiftState done [11:59:33]FM_GetShiftState done [11:59:33]opened in 1729556094 [11:59:33]opened+sec_in_day 1729642494 [11:59:33]quantity*price = 200025 [11:59:33]sum+1 = 200026 [11:59:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 264 22.10.2024 11:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188235 ФПД: 255622909893621 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188235&fm=255622909893621&tin=02508201610067®Number=0000000000100030&sum=200000 [11:59:34]StoreToDocumentArchive [11:59:34]shift 461 fd 188235 [11:59:34]save to /storage/0461/doc_00188235 [11:59:34]save last doc name /storage/0461/doc_00188235 to /storage/kkm_last_doc_name [11:59:34]save OK [11:59:34]Clear old archive folders... [11:59:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [11:59:34]tlvbuf is 01D3DB30 [11:59:34]SAM_PROTO_ClearQueue [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 09 00 00 [11:59:34]Write to MH i2c: E2 08 00 A4 51 80 09 00 00 00 00 00 00 67 [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 A4 51 00 90 00 69 [11:59:34]RAPDU: 90 00 [11:59:34]wFMCommunicate OK [11:59:34]SAM_PROTO_ClearQueue done [11:59:34]KKMCreateOFDPacket [11:59:34]OFDProtocolAddRootSTLVToBuf [11:59:34]FM_MakeSignedData [11:59:34]FM_MakeSignedData [11:59:34]SAM_PROTO_SignData [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 0D 01 02 [11:59:34]Write to MH i2c: E2 08 00 A5 51 80 0D 01 02 00 00 00 00 6F [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 A5 51 00 90 00 6A [11:59:34]RAPDU: 90 00 [11:59:34]wFMCommunicate OK [11:59:34]wFMCommunicate request_size=255 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 08 01 00 00 F4 03 04 00 A8 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DF 02 00 35 04 06 00 E8 7C D8 BD [11:59:34]Write to MH i2c: E2 02 01 A6 51 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 08 01 00 00 F4 03 04 00 A8 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DF 02 00 35 04 06 00 E8 7C D8 BD 00 00 7D [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 A6 51 00 90 00 6B [11:59:34]RAPDU: 90 00 [11:59:34]wFMCommunicate OK [11:59:34]wFMCommunicate request_size=7 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 0D 02 02 02 9B F5 [11:59:34]Write to MH i2c: E2 0A 00 A7 51 80 0D 02 02 02 00 9B F5 00 00 06 [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 03 00 A7 51 00 90 00 6C [11:59:34]RAPDU: 90 00 [11:59:34]wFMCommunicate OK [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 0D 03 02 [11:59:34]Write to MH i2c: E2 08 00 A8 51 80 0D 03 02 00 00 00 00 74 [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 0B 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 0B 00 A8 51 00 A1 32 85 CF 65 58 E6 AB 90 00 EA [11:59:34]RAPDU: A1 32 85 CF 65 58 E6 AB 90 00 [11:59:34]wFMCommunicate OK [11:59:34]SAM_PROTO_SignData done [11:59:34]FM_MakeSignedData done [11:59:34]CreateOFDProtocolMessage [11:59:34]wFMCommunicate request_size=4 [11:59:34]MH_SAM_APDU [11:59:34]CAPDU: 80 11 00 00 [11:59:34]Write to MH i2c: E2 08 00 A9 51 80 11 00 00 00 00 00 00 74 [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:34]Read from MH i2c: E2 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 17 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: E2 17 00 A9 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [11:59:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:59:34]wFMCommunicate OK [11:59:34]CreateOFDProtocolMessage done [11:59:34]OFDSenderStorePacket 188235 [11:59:34]StoreOFDPacket docnum=188235 [11:59:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C5 91 04 01 39 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 08 01 00 00 F4 03 04 00 A8 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DF 02 00 35 04 06 00 E8 7C D8 BD 9B F5 A1 32 85 CF 65 58 E6 AB [11:59:34]CheckFolder [11:59:34]dirname=/storage/ofd_packets [11:59:34]CheckFolder done [11:59:34]ProducePacketName [11:59:34]name=ofd_packets/00188235 [11:59:34]NVStorageSaveData ofd_packets/00188235 [11:59:34]File name is /storage/ofd_packets/00188235 [11:59:34]Write 298 bytes [11:59:34]NVStorageSaveData done [11:59:34]OFDSenderStorePacket done [11:59:34]KKMCreateOFDPacket done [11:59:34]NVStorageSaveData kkm_last_timestamp [11:59:34]File name is /storage/kkm_last_timestamp [11:59:34]Write 4 bytes [11:59:34]NVStorageSaveData done [11:59:34]ExternCall_PrintAddStr [11:59:34]wPrintStart [11:59:34]Write to MH i2c: 01 00 00 AA 51 FB [11:59:34]Write i2c OK [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 07 00 [11:59:34]MH_I2C_Read... [11:59:34]Read from MH i2c: 01 07 00 AA 51 00 00 00 00 00 FF 0F 10 [11:59:34]RasterBufferAndPrint [11:59:34]line Счет N : (1)210288 [11:59:34]line ИНН: 02508201610067 [11:59:34]line Контрольно-Кассовый Чек [11:59:34]line ПРОДАЖА [11:59:34]line ТРК (МРК, ГНК) : 51 [11:59:34]line Товар: 2710194210 [11:59:34]line ДТ-К-5 [11:59:34]line 26.250 * 76.20 [11:59:34]line = 2000.25 [11:59:34]line НДС 12% НСП 1% [11:59:34]line > о реализуемом товаре [11:59:34]line ОКРУГЛЕНИЕ: -0.25 [11:59:34]line ИТОГО: 2000.00 [11:59:34]line Внесено: 2000.00 [11:59:34]line СДАЧА: 0.00 [11:59:34]line НСП 1% : 17.70 [11:59:34]line НДС 12% : 212.42 [11:59:34]line Наличными: 2000.00 [11:59:34]line Безнал.: 0.00 [11:59:34]line Место: АЗС № 86 "Партнер Нефть" [11:59:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [11:59:34]line СНО: Общий режим [11:59:34]line Чек 264 22.10.2024 11:59 [11:59:34]line Смена: 461 ФФД: 1.0 [11:59:34]line ЗНМ: 0300000155 [11:59:34]line РНМ: 0000000000100030 [11:59:34]line Версия ККМ: 001 [11:59:34]line ФМ: 0000000000965340 [11:59:34]line ФД: 188235 [11:59:34]line ФПД: 255622909893621 [11:59:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T115936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188235&fm=255622909893621&tin=02508201610067®Number=0000000000100030&sum=200000 [11:59:34]written 0, free lines is 4095 [11:59:34]OFD Sender: Processing packet 188235 [packets to send 1062, broken 1061] [11:59:34]ProducePacketName [11:59:34]name=ofd_packets/00188235 [11:59:35]OFD Sender: To server: pG, [11:59:35]CommunicateWithHost lk.salyk.kg:30040 [11:59:35]ConnectInit lk.salyk.kg [11:59:35]Connected sock=10 [11:59:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C5 91 04 01 39 F8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 08 01 00 00 F4 03 04 00 A8 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DF 02 00 35 04 06 00 E8 7C D8 BD 9B F5 A1 32 85 CF 65 58 E6 AB [11:59:35]Write to MH i2c: 01 00 00 D5 51 26 [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: 01 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: 01 07 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: 01 07 00 D5 51 00 00 00 00 00 73 0C AC [11:59:35]RasterBufferAndPrint [11:59:35]line [11:59:35]line [11:59:35]line [11:59:35]line [11:59:35]line [11:59:35]written 0, free lines is 3189 [11:59:35]MH_Cut [11:59:35]Write to MH i2c: D1 01 00 DC 51 01 FF [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: D1 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: D1 01 00 [11:59:35]MH_I2C_Read... [11:59:35]Read from MH i2c: D1 01 00 DC 51 00 FE [11:59:35]Write to MH i2c: 01 00 00 DD 51 2E [11:59:35]Write i2c OK [11:59:35]MH_I2C_Read... [11:59:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 73 9C 47 00 B9 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B DF 02 00 F4 03 04 00 95 3D 17 67 B6 04 01 00 00 82 18 B9 91 B3 3A B4 8F [11:59:35]CommunicateWithHost err = 0 [11:59:35]CheckOFDResponse [11:59:35]1017 (14) - 77093643461234 [11:59:35]1041 (16) - 0000000000965340 [11:59:35]1040 (4) - 188235 [11:59:35]1012 (4) - 22.10.2024 05:52 [11:59:35]1206 (1) - 0 [11:59:35]OFD Sender: Remove packet 188235 [11:59:35]ProducePacketName [11:59:35]name=ofd_packets/00188235 [11:59:35]NVStorageDeleteData [11:59:36]OFD Sender: No OFD packet to send [11:59:36]*** Cut start [11:59:36]*** Partial cut [11:59:36]*** CUTSNS_PIN = 1 [11:59:36]*** CUTSNS_PIN = 0 [11:59:36]*** Brake cut motor [11:59:37]Read from MH i2c: 01 [11:59:37]MH_I2C_Read... [11:59:37]*** Stop cut motor [11:59:37]*** Cut end [11:59:37]Read from MH i2c: 01 07 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: 01 07 00 DD 51 00 00 00 00 00 FF 0F 43 [11:59:37]process_action close_receipt done [11:59:37]requested_data is exist [11:59:37]produce_requested_data [11:59:37]requested_item fm.sn is exist - process it [11:59:37]wFMCommunicate request_size=4 [11:59:37]MH_SAM_APDU [11:59:37]CAPDU: 80 11 00 00 [11:59:37]Write to MH i2c: E2 08 00 DE 51 80 11 00 00 00 00 00 00 A9 [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 17 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 17 00 DE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [11:59:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [11:59:37]wFMCommunicate OK [11:59:37]requested_item fd.num is exist - process it [11:59:37]SAM_PROTO_GetFieldsCounters [11:59:37]wFMCommunicate request_size=4 [11:59:37]MH_SAM_APDU [11:59:37]CAPDU: 80 13 00 00 [11:59:37]Write to MH i2c: E2 08 00 DF 51 80 13 00 00 00 00 00 00 AC [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 62 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 62 00 DF 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [11:59:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 08 01 00 00 5E 04 04 00 08 01 00 00 57 04 04 00 09 01 00 00 19 04 04 00 00 00 00 00 90 00 [11:59:37]wFMCommunicate OK [11:59:37]SAM_PROTO_GetFieldsCounters done [11:59:37]requested_item shift.num is exist - process it [11:59:37]requested_item shift.opened is exist - process it [11:59:37]req_shift_opened [11:59:37]FM_GetShiftState [11:59:37]SAM_PROTO_GetShiftState [11:59:37]wFMCommunicate request_size=4 [11:59:37]MH_SAM_APDU [11:59:37]CAPDU: 80 13 01 00 [11:59:37]Write to MH i2c: E2 08 00 E0 51 80 13 01 00 00 00 00 00 AE [11:59:37]Write i2c OK [11:59:37]MH_I2C_Read... [11:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:59:37]Read from MH i2c: E2 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 0E 00 [11:59:37]MH_I2C_Read... [11:59:37]Read from MH i2c: E2 0E 00 E0 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A3 [11:59:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [11:59:37]wFMCommunicate OK [11:59:37]SAM_PROTO_GetShiftState done [11:59:37]FM_GetShiftState done [11:59:37]req_shift_opened done [11:59:37]requested_item shift.open_date is exist - process it [11:59:37]req_shift_open_date [11:59:37]req_shift_open_date done [11:59:37]produce_requested_data done [11:59:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188235,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [11:59:37]process_action_free close_receipt [11:59:37]json_value_free [11:59:37]json_value_free done [11:59:37]process_json_proto returns [11:59:37]Send response to host [11:59:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188235,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [11:59:37]free response buf [11:59:37]execute_script done [11:59:37]execute_script returns [11:59:37]free content buf [11:59:37]Sock 9.Close socket [11:59:37]Sock 9.Thread stoped [11:59:41]OFD Sender: No OFD packet to send [11:59:46]OFD Sender: No OFD packet to send [11:59:51]OFD Sender: No OFD packet to send [11:59:56]OFD Sender: No OFD packet to send [12:00:01]OFD Sender: No OFD packet to send [12:00:06]OFD Sender: No OFD packet to send [12:00:11]OFD Sender: No OFD packet to send [12:00:16]OFD Sender: No OFD packet to send [12:00:21]OFD Sender: No OFD packet to send [12:00:26]OFD Sender: No OFD packet to send [12:00:31]OFD Sender: No OFD packet to send [12:00:31]accept exits with 8 [12:00:31]New connection [12:00:31]New thread 3067198820 created [12:00:31]Thread 3067055460 joined [12:00:31]Waiting for new connection... [12:00:31] Sock 8.Parse request [12:00:31]Sock 8.Check first char [12:00:31]Sock 8.First char is OK [12:00:31]request: POST /json_proto HTTP/1.0 [12:00:31]Method: POST [12:00:31]URL: /json_proto [12:00:31]Method is POST - this is cgi request [12:00:31]url: /json_proto [12:00:31]query_string will be loaded in cgi processing [12:00:31]execute_cgi json_proto POST (null) [12:00:31]execute_cgi path=json_proto method=POST [12:00:31]POST find Content-Length [12:00:31]Host: 172.17.42.131:8080 [12:00:31]Content-Length: 682 [12:00:31]Content-Type: application/json [12:00:31] [12:00:31]POST finish read [12:00:31]Found Content-Length = 682 [12:00:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [12:00:31]execute_script... [12:00: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)210290", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 16.180, "sum" : 1200.56, "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" ] } } [12:00:31]POST & json_proto [12:00:31]process_json_proto [12:00:31]json parsed OK: [12:00:31]protocol is kg_v1.0 [12:00:31]action value=close_receipt [12:00:31]process_action close_receipt [12:00:31]cmd_close_receipt [12:00:31]MH_GetDate [12:00:31]Write to MH i2c: F0 00 00 E1 51 21 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: F0 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: F0 09 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: F0 09 00 E1 51 00 E3 93 17 67 A0 18 CA 66 06 [12:00:31]GetLastDocTimeStamp 1729598376 [12:00:31]current date 1729598435 [12:00:31]FM_GetShiftState [12:00:31]SAM_PROTO_GetShiftState [12:00:31]wFMCommunicate request_size=4 [12:00:31]MH_SAM_APDU [12:00:31]CAPDU: 80 13 01 00 [12:00:31]Write to MH i2c: E2 08 00 E2 51 80 13 01 00 00 00 00 00 B0 [12:00:31]Write i2c OK [12:00:31]MH_I2C_Read... [12:00:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:31]Read from MH i2c: E2 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0E 00 [12:00:31]MH_I2C_Read... [12:00:31]Read from MH i2c: E2 0E 00 E2 51 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A5 [12:00:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:00:31]wFMCommunicate OK [12:00:31]SAM_PROTO_GetShiftState done [12:00:31]FM_GetShiftState done [12:00:31]opened in 1729556094 [12:00:31]opened+sec_in_day 1729642494 [12:00:31]quantity*price = 120055 [12:00:31]sum+1 = 120057 [12:00:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.49 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 265 22.10.2024 12:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188236 ФПД: 61682889890642 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120035&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188236&fm=61682889890642&tin=02508201610067®Number=0000000000100030&sum=120000 [12:00:32]StoreToDocumentArchive [12:00:32]shift 461 fd 188236 [12:00:32]save to /storage/0461/doc_00188236 [12:00:32]save last doc name /storage/0461/doc_00188236 to /storage/kkm_last_doc_name [12:00:32]save OK [12:00:32]Clear old archive folders... [12:00:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:00:32]tlvbuf is 01BD6A30 [12:00:32]SAM_PROTO_ClearQueue [12:00:32]wFMCommunicate request_size=4 [12:00:32]MH_SAM_APDU [12:00:32]CAPDU: 80 09 00 00 [12:00:32]Write to MH i2c: E2 08 00 EF 51 80 09 00 00 00 00 00 00 B2 [12:00:32]Write i2c OK [12:00:32]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 EF 51 00 90 00 B4 [12:00:33]RAPDU: 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_ClearQueue done [12:00:33]KKMCreateOFDPacket [12:00:33]OFDProtocolAddRootSTLVToBuf [12:00:33]FM_MakeSignedData [12:00:33]FM_MakeSignedData [12:00:33]SAM_PROTO_SignData [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 0D 01 02 [12:00:33]Write to MH i2c: E2 08 00 F0 51 80 0D 01 02 00 00 00 00 BA [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 F0 51 00 90 00 B5 [12:00:33]RAPDU: 90 00 [12:00:33]wFMCommunicate OK [12:00:33]wFMCommunicate request_size=255 [12:00:33]MH_SAM_APDU [12:00: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 09 01 00 00 F4 03 04 00 E3 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DF 02 00 35 04 06 00 38 [12:00:33]Write to MH i2c: E2 02 01 F1 51 80 0D 02 02 FA 00 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 09 01 00 00 F4 03 04 00 E3 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DF 02 00 35 04 06 00 38 00 00 87 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 F1 51 00 90 00 B6 [12:00:33]RAPDU: 90 00 [12:00:33]wFMCommunicate OK [12:00:33]wFMCommunicate request_size=10 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 0D 02 02 05 19 AA BD 9B 52 [12:00:33]Write to MH i2c: E2 0D 00 F2 51 80 0D 02 02 05 00 19 AA BD 9B 52 00 00 34 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 03 00 F2 51 00 90 00 B7 [12:00:33]RAPDU: 90 00 [12:00:33]wFMCommunicate OK [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 0D 03 02 [12:00:33]Write to MH i2c: E2 08 00 F3 51 80 0D 03 02 00 00 00 00 BF [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0B 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 0B 00 F3 51 00 50 13 AB F8 54 DE C7 88 90 00 47 [12:00:33]RAPDU: 50 13 AB F8 54 DE C7 88 90 00 [12:00:33]wFMCommunicate OK [12:00:33]SAM_PROTO_SignData done [12:00:33]FM_MakeSignedData done [12:00:33]CreateOFDProtocolMessage [12:00:33]wFMCommunicate request_size=4 [12:00:33]MH_SAM_APDU [12:00:33]CAPDU: 80 11 00 00 [12:00:33]Write to MH i2c: E2 08 00 F4 51 80 11 00 00 00 00 00 00 BF [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:33]Read from MH i2c: E2 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 17 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: E2 17 00 F4 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [12:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:00:33]wFMCommunicate OK [12:00:33]CreateOFDProtocolMessage done [12:00:33]OFDSenderStorePacket 188236 [12:00:33]StoreOFDPacket docnum=188236 [12:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 11 07 01 DF FF 5A 03 01 00 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 09 01 00 00 F4 03 04 00 E3 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DF 02 00 35 04 06 00 38 19 AA BD 9B 52 50 13 AB F8 54 DE C7 88 [12:00:33]CheckFolder [12:00:33]dirname=/storage/ofd_packets [12:00:33]CheckFolder done [12:00:33]ProducePacketName [12:00:33]name=ofd_packets/00188236 [12:00:33]NVStorageSaveData ofd_packets/00188236 [12:00:33]File name is /storage/ofd_packets/00188236 [12:00:33]Write 301 bytes [12:00:33]NVStorageSaveData done [12:00:33]OFDSenderStorePacket done [12:00:33]KKMCreateOFDPacket done [12:00:33]NVStorageSaveData kkm_last_timestamp [12:00:33]File name is /storage/kkm_last_timestamp [12:00:33]Write 4 bytes [12:00:33]NVStorageSaveData done [12:00:33]ExternCall_PrintAddStr [12:00:33]wPrintStart [12:00:33]Write to MH i2c: 01 00 00 F5 51 46 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 F5 51 00 00 00 00 00 FF 0F 5B [12:00:33]RasterBufferAndPrint [12:00:33]line Счет N : (1)210290 [12:00:33]line ИНН: 02508201610067 [12:00:33]line Контрольно-Кассовый Чек [12:00:33]line ПРОДАЖА [12:00:33]line ТРК (МРК, ГНК) : 23 [12:00:33]line Товар: 2710124500 [12:00:33]line Аи-95-К-3 [12:00:33]line 16.180 * 74.20 [12:00:33]line = 1200.56 [12:00:33]line НДС 12% НСП 1% [12:00:33]line > о реализуемом товаре [12:00:33]line ОКРУГЛЕНИЕ: -0.56 [12:00:33]line ИТОГО: 1200.00 [12:00:33]line Внесено: 1200.00 [12:00:33]line СДАЧА: 0.00 [12:00:33]line НСП 1% : 10.62 [12:00:33]line НДС 12% : 127.49 [12:00:33]line Наличными: 1200.00 [12:00:33]line Безнал.: 0.00 [12:00:33]line Место: АЗС № 86 "Партнер Нефть" [12:00:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:00:33]line СНО: Общий режим [12:00:33]line Чек 265 22.10.2024 12:00 [12:00:33]line Смена: 461 ФФД: 1.0 [12:00:33]line ЗНМ: 0300000155 [12:00:33]line РНМ: 0000000000100030 [12:00:33]line Версия ККМ: 001 [12:00:33]line ФМ: 0000000000965340 [12:00:33]line ФД: 188236 [12:00:33]line ФПД: 61682889890642 [12:00:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120035&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188236&fm=61682889890642&tin=02508201610067®Number=0000000000100030&sum=120000 [12:00:33]written 0, free lines is 4095 [12:00:33]OFD Sender: Processing packet 188236 [packets to send 1062, broken 1061] [12:00:33]ProducePacketName [12:00:33]name=ofd_packets/00188236 [12:00:33]OFD Sender: To server: pG, [12:00:33]CommunicateWithHost lk.salyk.kg:30040 [12:00:33]ConnectInit lk.salyk.kg [12:00:33]Write to MH i2c: 01 00 00 20 52 72 [12:00:33]Write i2c OK [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 [12:00:33]MH_I2C_Read... [12:00:33]Read from MH i2c: 01 07 00 20 52 00 00 00 00 00 72 0C F7 [12:00:33]RasterBufferAndPrint [12:00:33]line [12:00:33]line [12:00:33]line [12:00:33]line [12:00:33]line [12:00:33]written 0, free lines is 3188 [12:00:34]MH_Cut [12:00:34]Write to MH i2c: D1 01 00 27 52 01 4B [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: D1 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: D1 01 00 [12:00:34]MH_I2C_Read... [12:00:34]Read from MH i2c: D1 01 00 27 52 00 4A [12:00:34]Write to MH i2c: 01 00 00 28 52 7A [12:00:34]Write i2c OK [12:00:34]MH_I2C_Read... [12:00:34]Connected sock=10 [12:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 11 07 01 DF FF 5A 03 01 00 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 34 3F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F8 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 CD 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 09 01 00 00 F4 03 04 00 E3 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DF 02 00 35 04 06 00 38 19 AA BD 9B 52 50 13 AB F8 54 DE C7 88 [12:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C7 A0 47 00 53 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C DF 02 00 F4 03 04 00 D0 3D 17 67 B6 04 01 00 00 FB 0A 3C 58 D0 47 45 32 [12:00:34]CommunicateWithHost err = 0 [12:00:34]CheckOFDResponse [12:00:34]1017 (14) - 77093643461234 [12:00:34]1041 (16) - 0000000000965340 [12:00:34]1040 (4) - 188236 [12:00:34]1012 (4) - 22.10.2024 05:53 [12:00:34]1206 (1) - 0 [12:00:34]OFD Sender: Remove packet 188236 [12:00:34]ProducePacketName [12:00:34]name=ofd_packets/00188236 [12:00:34]NVStorageDeleteData [12:00:34]OFD Sender: No OFD packet to send [12:00:35]*** Cut start [12:00:35]*** Partial cut [12:00:35]*** CUTSNS_PIN = 1 [12:00:35]*** CUTSNS_PIN = 0 [12:00:35]*** Brake cut motor [12:00:35]Read from MH i2c: 01 [12:00:35]MH_I2C_Read... [12:00:35]*** Stop cut motor [12:00:35]*** Cut end [12:00:35]Read from MH i2c: 01 07 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: 01 07 00 28 52 00 00 00 00 00 FF 0F 8F [12:00:35]process_action close_receipt done [12:00:35]requested_data is exist [12:00:35]produce_requested_data [12:00:35]requested_item fm.sn is exist - process it [12:00:35]wFMCommunicate request_size=4 [12:00:35]MH_SAM_APDU [12:00:35]CAPDU: 80 11 00 00 [12:00:35]Write to MH i2c: E2 08 00 29 52 80 11 00 00 00 00 00 00 F5 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:00:35]Read from MH i2c: E2 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 17 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 17 00 29 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [12:00:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:00:35]wFMCommunicate OK [12:00:35]requested_item fd.num is exist - process it [12:00:35]SAM_PROTO_GetFieldsCounters [12:00:35]wFMCommunicate request_size=4 [12:00:35]MH_SAM_APDU [12:00:35]CAPDU: 80 13 00 00 [12:00:35]Write to MH i2c: E2 08 00 2A 52 80 13 00 00 00 00 00 00 F8 [12:00:35]Write i2c OK [12:00:35]MH_I2C_Read... [12:00:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:00:35]Read from MH i2c: E2 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 62 00 [12:00:35]MH_I2C_Read... [12:00:35]Read from MH i2c: E2 62 00 2A 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [12:00:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 09 01 00 00 5E 04 04 00 09 01 00 00 57 04 04 00 0A 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:00:35]wFMCommunicate OK [12:00:35]SAM_PROTO_GetFieldsCounters done [12:00:35]requested_item shift.num is exist - process it [12:00:35]requested_item shift.opened is exist - process it [12:00:35]req_shift_opened [12:00:35]FM_GetShiftState [12:00:35]SAM_PROTO_GetShiftState [12:00:35]wFMCommunicate request_size=4 [12:00:36]MH_SAM_APDU [12:00:36]CAPDU: 80 13 01 00 [12:00:36]Write to MH i2c: E2 08 00 2B 52 80 13 01 00 00 00 00 00 FA [12:00:36]Write i2c OK [12:00:36]MH_I2C_Read... [12:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:00:36]Read from MH i2c: E2 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 [12:00:36]MH_I2C_Read... [12:00:36]Read from MH i2c: E2 0E 00 2B 52 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EF [12:00:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:00:36]wFMCommunicate OK [12:00:36]SAM_PROTO_GetShiftState done [12:00:36]FM_GetShiftState done [12:00:36]req_shift_opened done [12:00:36]requested_item shift.open_date is exist - process it [12:00:36]req_shift_open_date [12:00:36]req_shift_open_date done [12:00:36]produce_requested_data done [12:00:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188236,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:00:36]process_action_free close_receipt [12:00:36]json_value_free [12:00:36]json_value_free done [12:00:36]process_json_proto returns [12:00:36]Send response to host [12:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188236,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:00:36]free response buf [12:00:36]execute_script done [12:00:36]execute_script returns [12:00:36]free content buf [12:00:36]Sock 8.Close socket [12:00:36]Sock 8.Thread stoped [12:00:39]OFD Sender: No OFD packet to send [12:00:45]OFD Sender: No OFD packet to send [12:00:50]OFD Sender: No OFD packet to send [12:00:55]OFD Sender: No OFD packet to send [12:01:00]OFD Sender: No OFD packet to send [12:01:00]accept exits with 9 [12:01:00]New connection [12:01:00]New thread 3067055460 created [12:01:00]Thread 3067198820 joined [12:01:00]Waiting for new connection... [12:01:00] Sock 9.Parse request [12:01:00]Sock 9.Check first char [12:01:00]Sock 9.First char is OK [12:01:00]request: POST /json_proto HTTP/1.0 [12:01:00]Method: POST [12:01:00]URL: /json_proto [12:01:00]Method is POST - this is cgi request [12:01:00]url: /json_proto [12:01:00]query_string will be loaded in cgi processing [12:01:00]execute_cgi json_proto POST (null) [12:01:00]execute_cgi path=json_proto method=POST [12:01:00]POST find Content-Length [12:01:00]Host: 172.17.42.131:8080 [12:01:00]Content-Length: 688 [12:01:00]Content-Type: application/json [12:01:00] [12:01:00]POST finish read [12:01:00]Found Content-Length = 688 [12:01:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:01:00]execute_script... [12:01:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210289", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:01:00]POST & json_proto [12:01:00]process_json_proto [12:01:00]json parsed OK: [12:01:00]protocol is kg_v1.0 [12:01:00]action value=close_receipt [12:01:00]process_action close_receipt [12:01:00]cmd_close_receipt [12:01:00]MH_GetDate [12:01:00]Write to MH i2c: F0 00 00 2C 52 6D [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: F0 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: F0 09 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: F0 09 00 2C 52 00 FF 93 17 67 A0 18 CA 66 6E [12:01:00]GetLastDocTimeStamp 1729598435 [12:01:00]current date 1729598463 [12:01:00]FM_GetShiftState [12:01:00]SAM_PROTO_GetShiftState [12:01:00]wFMCommunicate request_size=4 [12:01:00]MH_SAM_APDU [12:01:00]CAPDU: 80 13 01 00 [12:01:00]Write to MH i2c: E2 08 00 2D 52 80 13 01 00 00 00 00 00 FC [12:01:00]Write i2c OK [12:01:00]MH_I2C_Read... [12:01:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:00]Read from MH i2c: E2 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0E 00 [12:01:00]MH_I2C_Read... [12:01:00]Read from MH i2c: E2 0E 00 2D 52 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F1 [12:01:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:01:00]wFMCommunicate OK [12:01:00]SAM_PROTO_GetShiftState done [12:01:00]FM_GetShiftState done [12:01:00]opened in 1729556094 [12:01:00]opened+sec_in_day 1729642494 [12:01:00]quantity*price = 200025 [12:01:00]sum+1 = 200026 [12:01:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 266 22.10.2024 12:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188237 ФПД: 70158275079752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188237&fm=70158275079752&tin=02508201610067®Number=0000000000100030&sum=200000 [12:01:01]StoreToDocumentArchive [12:01:01]shift 461 fd 188237 [12:01:01]save to /storage/0461/doc_00188237 [12:01:01]save last doc name /storage/0461/doc_00188237 to /storage/kkm_last_doc_name [12:01:01]save OK [12:01:01]Clear old archive folders... [12:01:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:01:01]tlvbuf is 01D671A0 [12:01:01]SAM_PROTO_ClearQueue [12:01:01]wFMCommunicate request_size=4 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 09 00 00 [12:01:01]Write to MH i2c: E2 08 00 3A 52 80 09 00 00 00 00 00 00 FE [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:01]Read from MH i2c: E2 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 03 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 03 00 3A 52 00 90 00 00 [12:01:01]RAPDU: 90 00 [12:01:01]wFMCommunicate OK [12:01:01]SAM_PROTO_ClearQueue done [12:01:01]KKMCreateOFDPacket [12:01:01]OFDProtocolAddRootSTLVToBuf [12:01:01]FM_MakeSignedData [12:01:01]FM_MakeSignedData [12:01:01]SAM_PROTO_SignData [12:01:01]wFMCommunicate request_size=4 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 0D 01 02 [12:01:01]Write to MH i2c: E2 08 00 3B 52 80 0D 01 02 00 00 00 00 06 [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:01]Read from MH i2c: E2 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 03 00 [12:01:01]MH_I2C_Read... [12:01:01]Read from MH i2c: E2 03 00 3B 52 00 90 00 01 [12:01:01]RAPDU: 90 00 [12:01:01]wFMCommunicate OK [12:01:01]wFMCommunicate request_size=255 [12:01:01]MH_SAM_APDU [12:01:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0A 01 00 00 F4 03 04 00 FF 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DF 02 [12:01:01]Write to MH i2c: E2 02 01 3C 52 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0A 01 00 00 F4 03 04 00 FF 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DF 02 00 00 BE [12:01:01]Write i2c OK [12:01:01]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 3C 52 00 90 00 02 [12:01:02]RAPDU: 90 00 [12:01:02]wFMCommunicate OK [12:01:02]wFMCommunicate request_size=16 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3F CE FF 10 6E 48 [12:01:02]Write to MH i2c: E2 13 00 3D 52 80 0D 02 02 0B 00 00 35 04 06 00 3F CE FF 10 6E 48 00 00 30 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 03 00 3D 52 00 90 00 03 [12:01:02]RAPDU: 90 00 [12:01:02]wFMCommunicate OK [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 0D 03 02 [12:01:02]Write to MH i2c: E2 08 00 3E 52 80 0D 03 02 00 00 00 00 0B [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 0B 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 0B 00 3E 52 00 DA 7C 08 7A 6F 7F 62 8A 90 00 BE [12:01:02]RAPDU: DA 7C 08 7A 6F 7F 62 8A 90 00 [12:01:02]wFMCommunicate OK [12:01:02]SAM_PROTO_SignData done [12:01:02]FM_MakeSignedData done [12:01:02]CreateOFDProtocolMessage [12:01:02]wFMCommunicate request_size=4 [12:01:02]MH_SAM_APDU [12:01:02]CAPDU: 80 11 00 00 [12:01:02]Write to MH i2c: E2 08 00 3F 52 80 11 00 00 00 00 00 00 0B [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:02]Read from MH i2c: E2 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 17 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: E2 17 00 3F 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [12:01:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:01:02]wFMCommunicate OK [12:01:02]CreateOFDProtocolMessage done [12:01:02]OFDSenderStorePacket 188237 [12:01:02]StoreOFDPacket docnum=188237 [12:01:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C1 0E 0D 01 65 BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0A 01 00 00 F4 03 04 00 FF 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DF 02 00 35 04 06 00 3F CE FF 10 6E 48 DA 7C 08 7A 6F 7F 62 8A [12:01:02]CheckFolder [12:01:02]dirname=/storage/ofd_packets [12:01:02]CheckFolder done [12:01:02]ProducePacketName [12:01:02]name=ofd_packets/00188237 [12:01:02]NVStorageSaveData ofd_packets/00188237 [12:01:02]File name is /storage/ofd_packets/00188237 [12:01:02]Write 307 bytes [12:01:02]NVStorageSaveData done [12:01:02]OFDSenderStorePacket done [12:01:02]KKMCreateOFDPacket done [12:01:02]NVStorageSaveData kkm_last_timestamp [12:01:02]File name is /storage/kkm_last_timestamp [12:01:02]Write 4 bytes [12:01:02]NVStorageSaveData done [12:01:02]ExternCall_PrintAddStr [12:01:02]wPrintStart [12:01:02]Write to MH i2c: 01 00 00 40 52 92 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 07 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 07 00 40 52 00 00 00 00 00 FF 0F A7 [12:01:02]RasterBufferAndPrint [12:01:02]line Счет N : (1)210289 [12:01:02]line ИНН: 02508201610067 [12:01:02]line Контрольно-Кассовый Чек [12:01:02]line ПРОДАЖА [12:01:02]line ТРК (МРК, ГНК) : 11 [12:01:02]line Товар: 2710194210 [12:01:02]line D-ENERGY ДТ-К-5 [12:01:02]line 25.910 * 77.20 [12:01:02]line = 2000.25 [12:01:02]line НДС 12% НСП 1% [12:01:02]line > о реализуемом товаре [12:01:02]line ОКРУГЛЕНИЕ: -0.25 [12:01:02]line ИТОГО: 2000.00 [12:01:02]line Внесено: 2000.00 [12:01:02]line СДАЧА: 0.00 [12:01:02]line НСП 1% : 17.70 [12:01:02]line НДС 12% : 212.42 [12:01:02]line Наличными: 2000.00 [12:01:02]line Безнал.: 0.00 [12:01:02]line Место: АЗС № 86 "Партнер Нефть" [12:01:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:01:02]line СНО: Общий режим [12:01:02]line Чек 266 22.10.2024 12:01 [12:01:02]line Смена: 461 ФФД: 1.0 [12:01:02]line ЗНМ: 0300000155 [12:01:02]line РНМ: 0000000000100030 [12:01:02]line Версия ККМ: 001 [12:01:02]line ФМ: 0000000000965340 [12:01:02]line ФД: 188237 [12:01:02]line ФПД: 70158275079752 [12:01:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120103&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188237&fm=70158275079752&tin=02508201610067®Number=0000000000100030&sum=200000 [12:01:02]written 0, free lines is 4095 [12:01:02]OFD Sender: Processing packet 188237 [packets to send 1062, broken 1061] [12:01:02]ProducePacketName [12:01:02]name=ofd_packets/00188237 [12:01:02]OFD Sender: To server: pG, [12:01:02]CommunicateWithHost lk.salyk.kg:30040 [12:01:02]ConnectInit lk.salyk.kg [12:01:02]Connected sock=10 [12:01:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C1 0E 0D 01 65 BC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0A 01 00 00 F4 03 04 00 FF 93 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DF 02 00 35 04 06 00 3F CE FF 10 6E 48 DA 7C 08 7A 6F 7F 62 8A [12:01:02]Write to MH i2c: 01 00 00 6B 52 BD [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 07 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: 01 07 00 6B 52 00 00 00 00 00 74 0C 44 [12:01:02]RasterBufferAndPrint [12:01:02]line [12:01:02]line [12:01:02]line [12:01:02]line [12:01:02]line [12:01:02]written 0, free lines is 3190 [12:01:02]MH_Cut [12:01:02]Write to MH i2c: D1 01 00 72 52 01 96 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: D1 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: D1 01 00 [12:01:02]MH_I2C_Read... [12:01:02]Read from MH i2c: D1 01 00 72 52 00 95 [12:01:02]Write to MH i2c: 01 00 00 73 52 C5 [12:01:02]Write i2c OK [12:01:02]MH_I2C_Read... [12:01:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 42 47 00 E6 E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D DF 02 00 F4 03 04 00 ED 3D 17 67 B6 04 01 00 00 07 70 43 86 07 E9 34 31 [12:01:03]CommunicateWithHost err = 0 [12:01:03]CheckOFDResponse [12:01:03]1017 (14) - 77093643461234 [12:01:03]1041 (16) - 0000000000965340 [12:01:03]1040 (4) - 188237 [12:01:03]1012 (4) - 22.10.2024 05:53 [12:01:03]1206 (1) - 0 [12:01:03]OFD Sender: Remove packet 188237 [12:01:03]ProducePacketName [12:01:03]name=ofd_packets/00188237 [12:01:03]NVStorageDeleteData [12:01:03]OFD Sender: No OFD packet to send [12:01:03]*** Cut start [12:01:03]*** Partial cut [12:01:03]*** CUTSNS_PIN = 1 [12:01:03]*** CUTSNS_PIN = 0 [12:01:04]*** Brake cut motor [12:01:04]Read from MH i2c: 01 [12:01:04]MH_I2C_Read... [12:01:04]*** Stop cut motor [12:01:04]*** Cut end [12:01:04]Read from MH i2c: 01 07 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: 01 07 00 73 52 00 00 00 00 00 FF 0F DA [12:01:04]process_action close_receipt done [12:01:04]requested_data is exist [12:01:04]produce_requested_data [12:01:04]requested_item fm.sn is exist - process it [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 11 00 00 [12:01:04]Write to MH i2c: E2 08 00 74 52 80 11 00 00 00 00 00 00 40 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 17 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 17 00 74 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [12:01:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:01:04]wFMCommunicate OK [12:01:04]requested_item fd.num is exist - process it [12:01:04]SAM_PROTO_GetFieldsCounters [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 13 00 00 [12:01:04]Write to MH i2c: E2 08 00 75 52 80 13 00 00 00 00 00 00 43 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 62 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 62 00 75 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [12:01:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0A 01 00 00 5E 04 04 00 0A 01 00 00 57 04 04 00 0B 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:04]wFMCommunicate OK [12:01:04]SAM_PROTO_GetFieldsCounters done [12:01:04]requested_item shift.num is exist - process it [12:01:04]requested_item shift.opened is exist - process it [12:01:04]req_shift_opened [12:01:04]FM_GetShiftState [12:01:04]SAM_PROTO_GetShiftState [12:01:04]wFMCommunicate request_size=4 [12:01:04]MH_SAM_APDU [12:01:04]CAPDU: 80 13 01 00 [12:01:04]Write to MH i2c: E2 08 00 76 52 80 13 01 00 00 00 00 00 45 [12:01:04]Write i2c OK [12:01:04]MH_I2C_Read... [12:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:04]Read from MH i2c: E2 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0E 00 [12:01:04]MH_I2C_Read... [12:01:04]Read from MH i2c: E2 0E 00 76 52 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [12:01:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:01:04]wFMCommunicate OK [12:01:04]SAM_PROTO_GetShiftState done [12:01:04]FM_GetShiftState done [12:01:04]req_shift_opened done [12:01:04]requested_item shift.open_date is exist - process it [12:01:04]req_shift_open_date [12:01:04]req_shift_open_date done [12:01:04]produce_requested_data done [12:01:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188237,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:01:04]process_action_free close_receipt [12:01:04]json_value_free [12:01:04]json_value_free done [12:01:04]process_json_proto returns [12:01:04]Send response to host [12:01:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188237,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:01:04]free response buf [12:01:04]execute_script done [12:01:04]execute_script returns [12:01:04]free content buf [12:01:04]Sock 9.Close socket [12:01:04]Sock 9.Thread stoped [12:01:08]OFD Sender: No OFD packet to send [12:01:13]OFD Sender: No OFD packet to send [12:01:18]OFD Sender: No OFD packet to send [12:01:23]OFD Sender: No OFD packet to send [12:01:28]OFD Sender: No OFD packet to send [12:01:33]accept exits with 8 [12:01:33]New connection [12:01:33]New thread 3067198820 created [12:01:33]Thread 3067055460 joined [12:01:33]Waiting for new connection... [12:01:33] Sock 8.Parse request [12:01:33]Sock 8.Check first char [12:01:33]Sock 8.First char is OK [12:01:33]request: POST /json_proto HTTP/1.0 [12:01:33]Method: POST [12:01:33]URL: /json_proto [12:01:33]Method is POST - this is cgi request [12:01:33]url: /json_proto [12:01:33]query_string will be loaded in cgi processing [12:01:33]execute_cgi json_proto POST (null) [12:01:33]execute_cgi path=json_proto method=POST [12:01:33]POST find Content-Length [12:01:33]Host: 172.17.42.131:8080 [12:01:33]Content-Length: 764 [12:01:33]Content-Type: application/json [12:01:33] [12:01:33]POST finish read [12:01:33]Found Content-Length = 764 [12:01:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.160, "sum" : 850.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 850.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:33]execute_script... [12:01: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)210291", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 11.160, "sum" : 850.39, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 850.39 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:01:33]POST & json_proto [12:01:33]process_json_proto [12:01:33]json parsed OK: [12:01:33]protocol is kg_v1.0 [12:01:33]action value=close_receipt [12:01:33]process_action close_receipt [12:01:33]cmd_close_receipt [12:01:33]MH_GetDate [12:01:33]Write to MH i2c: F0 00 00 77 52 B8 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: F0 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: F0 09 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: F0 09 00 77 52 00 20 94 17 67 A0 18 CA 66 DB [12:01:33]GetLastDocTimeStamp 1729598463 [12:01:33]current date 1729598496 [12:01:33]FM_GetShiftState [12:01:33]SAM_PROTO_GetShiftState [12:01:33]wFMCommunicate request_size=4 [12:01:33]MH_SAM_APDU [12:01:33]CAPDU: 80 13 01 00 [12:01:33]Write to MH i2c: E2 08 00 78 52 80 13 01 00 00 00 00 00 47 [12:01:33]Write i2c OK [12:01:33]MH_I2C_Read... [12:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:33]Read from MH i2c: E2 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 [12:01:33]MH_I2C_Read... [12:01:33]Read from MH i2c: E2 0E 00 78 52 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3C [12:01:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:01:33]wFMCommunicate OK [12:01:33]SAM_PROTO_GetShiftState done [12:01:33]FM_GetShiftState done [12:01:33]opened in 1729556094 [12:01:33]opened+sec_in_day 1729642494 [12:01:33]quantity*price = 85039 [12:01:33]sum+1 = 85040 [12:01:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 850.39 НСП 1% : 7.53 НДС 12% : 90.31 Наличными: 0.00 Безнал.: 850.39 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 267 22.10.2024 12:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188238 ФПД: 214139290665972 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120136&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188238&fm=214139290665972&tin=02508201610067®Number=0000000000100030&sum=85039 [12:01:34]StoreToDocumentArchive [12:01:34]shift 461 fd 188238 [12:01:34]save to /storage/0461/doc_00188238 [12:01:34]save last doc name /storage/0461/doc_00188238 to /storage/kkm_last_doc_name [12:01:34]save OK [12:01:34]Clear old archive folders... [12:01:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:01:34]tlvbuf is 01BB1E00 [12:01:34]SAM_PROTO_ClearQueue [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 09 00 00 [12:01:34]Write to MH i2c: E2 08 00 85 52 80 09 00 00 00 00 00 00 49 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 85 52 00 90 00 4B [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_ClearQueue done [12:01:34]KKMCreateOFDPacket [12:01:34]OFDProtocolAddRootSTLVToBuf [12:01:34]FM_MakeSignedData [12:01:34]FM_MakeSignedData [12:01:34]SAM_PROTO_SignData [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 01 02 [12:01:34]Write to MH i2c: E2 08 00 86 52 80 0D 01 02 00 00 00 00 51 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 86 52 00 90 00 4C [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]wFMCommunicate request_size=255 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 20 94 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DF 02 00 35 04 06 00 C2 C2 30 5A [12:01:34]Write to MH i2c: E2 02 01 87 52 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 20 94 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DF 02 00 35 04 06 00 C2 C2 30 5A 00 00 52 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 87 52 00 90 00 4D [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]wFMCommunicate request_size=7 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 02 02 02 43 F4 [12:01:34]Write to MH i2c: E2 0A 00 88 52 80 0D 02 02 02 00 43 F4 00 00 8F [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 03 00 88 52 00 90 00 4E [12:01:34]RAPDU: 90 00 [12:01:34]wFMCommunicate OK [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 0D 03 02 [12:01:34]Write to MH i2c: E2 08 00 89 52 80 0D 03 02 00 00 00 00 56 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:01:34]Read from MH i2c: E2 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0B 00 [12:01:34]MH_I2C_Read... [12:01:34]Read from MH i2c: E2 0B 00 89 52 00 FA C2 9F 23 83 EC B3 09 90 00 00 [12:01:34]RAPDU: FA C2 9F 23 83 EC B3 09 90 00 [12:01:34]wFMCommunicate OK [12:01:34]SAM_PROTO_SignData done [12:01:34]FM_MakeSignedData done [12:01:34]CreateOFDProtocolMessage [12:01:34]wFMCommunicate request_size=4 [12:01:34]MH_SAM_APDU [12:01:34]CAPDU: 80 11 00 00 [12:01:34]Write to MH i2c: E2 08 00 8A 52 80 11 00 00 00 00 00 00 56 [12:01:34]Write i2c OK [12:01:34]MH_I2C_Read... [12:01:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:35]Read from MH i2c: E2 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 17 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: E2 17 00 8A 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [12:01:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:01:35]wFMCommunicate OK [12:01:35]CreateOFDProtocolMessage done [12:01:35]OFDSenderStorePacket 188238 [12:01:35]StoreOFDPacket docnum=188238 [12:01:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 14 2A 04 01 64 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 20 94 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DF 02 00 35 04 06 00 C2 C2 30 5A 43 F4 FA C2 9F 23 83 EC B3 09 [12:01:35]CheckFolder [12:01:35]dirname=/storage/ofd_packets [12:01:35]CheckFolder done [12:01:35]ProducePacketName [12:01:35]name=ofd_packets/00188238 [12:01:35]NVStorageSaveData ofd_packets/00188238 [12:01:35]File name is /storage/ofd_packets/00188238 [12:01:35]Write 298 bytes [12:01:35]NVStorageSaveData done [12:01:35]OFDSenderStorePacket done [12:01:35]KKMCreateOFDPacket done [12:01:35]NVStorageSaveData kkm_last_timestamp [12:01:35]File name is /storage/kkm_last_timestamp [12:01:35]Write 4 bytes [12:01:35]NVStorageSaveData done [12:01:35]ExternCall_PrintAddStr [12:01:35]wPrintStart [12:01:35]Write to MH i2c: 01 00 00 8B 52 DD [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 8B 52 00 00 00 00 00 FF 0F F2 [12:01:35]RasterBufferAndPrint [12:01:35]line Счет N : (1)210291 [12:01:35]line ИНН: 02508201610067 [12:01:35]line Контрольно-Кассовый Чек [12:01:35]line ПРОДАЖА [12:01:35]line ТРК (МРК, ГНК) : 51 [12:01:35]line Товар: 2710194210 [12:01:35]line ДТ-К-5 [12:01:35]line 11.160 * 76.20 [12:01:35]line = 850.39 [12:01:35]line НДС 12% НСП 1% [12:01:35]line > о реализуемом товаре [12:01:35]line ИТОГО: 850.39 [12:01:35]line НСП 1% : 7.53 [12:01:35]line НДС 12% : 90.31 [12:01:35]line Наличными: 0.00 [12:01:35]line Безнал.: 850.39 [12:01:35]line Место: АЗС № 86 "Партнер Нефть" [12:01:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:01:35]line СНО: Общий режим [12:01:35]line Чек 267 22.10.2024 12:01 [12:01:35]line Смена: 461 ФФД: 1.0 [12:01:35]line ЗНМ: 0300000155 [12:01:35]line РНМ: 0000000000100030 [12:01:35]line Версия ККМ: 001 [12:01:35]line Платежная система: Mbank [12:01:35]line ФМ: 0000000000965340 [12:01:35]line ФД: 188238 [12:01:35]line ФПД: 214139290665972 [12:01:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120136&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188238&fm=214139290665972&tin=02508201610067®Number=0000000000100030&sum=85039 [12:01:35]OFD Sender: Processing packet 188238 [packets to send 1062, broken 1061] [12:01:35]ProducePacketName [12:01:35]name=ofd_packets/00188238 [12:01:35]OFD Sender: To server: pG, [12:01:35]CommunicateWithHost lk.salyk.kg:30040 [12:01:35]ConnectInit lk.salyk.kg [12:01:35]written 0, free lines is 4095 [12:01:35]Connected sock=11 [12:01:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 14 2A 04 01 64 D9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 98 2B 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2F 4C 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2F 4C 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F1 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 23 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 2F 4C 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 01 00 00 F4 03 04 00 20 94 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E DF 02 00 35 04 06 00 C2 C2 30 5A 43 F4 FA C2 9F 23 83 EC B3 09 [12:01:35]Write to MH i2c: 01 00 00 B4 52 06 [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: 01 07 00 B4 52 00 00 00 00 00 A4 0C BD [12:01:35]RasterBufferAndPrint [12:01:35]line [12:01:35]line [12:01:35]line [12:01:35]line [12:01:35]line [12:01:35]written 0, free lines is 3239 [12:01:35]MH_Cut [12:01:35]Write to MH i2c: D1 01 00 BB 52 01 DF [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: D1 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: D1 01 00 [12:01:35]MH_I2C_Read... [12:01:35]Read from MH i2c: D1 01 00 BB 52 00 DE [12:01:35]Write to MH i2c: 01 00 00 BC 52 0E [12:01:35]Write i2c OK [12:01:35]MH_I2C_Read... [12:01:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 63 34 47 00 51 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 39 36 35 33 34 30 10 04 04 00 4E DF 02 00 F4 03 04 00 0E 3E 17 67 B6 04 01 00 00 04 AB 8C 21 46 3F 5E F9 [12:01:36]CommunicateWithHost err = 0 [12:01:36]CheckOFDResponse [12:01:36]1017 (14) - 77093643461234 [12:01:36]1041 (16) - 0000000000965340 [12:01:36]1040 (4) - 188238 [12:01:36]1012 (4) - 22.10.2024 05:54 [12:01:36]1206 (1) - 0 [12:01:36]OFD Sender: Remove packet 188238 [12:01:36]ProducePacketName [12:01:36]name=ofd_packets/00188238 [12:01:36]NVStorageDeleteData [12:01:36]OFD Sender: No OFD packet to send [12:01:36]*** Cut start [12:01:36]*** Partial cut [12:01:36]*** CUTSNS_PIN = 1 [12:01:36]*** CUTSNS_PIN = 0 [12:01:37]*** Brake cut motor [12:01:37]Read from MH i2c: 01 [12:01:37]MH_I2C_Read... [12:01:37]*** Stop cut motor [12:01:37]*** Cut end [12:01:37]Read from MH i2c: 01 07 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: 01 07 00 BC 52 00 00 00 00 00 FF 0F 23 [12:01:37]process_action close_receipt done [12:01:37]requested_data is exist [12:01:37]produce_requested_data [12:01:37]requested_item fm.sn is exist - process it [12:01:37]wFMCommunicate request_size=4 [12:01:37]MH_SAM_APDU [12:01:37]CAPDU: 80 11 00 00 [12:01:37]Write to MH i2c: E2 08 00 BD 52 80 11 00 00 00 00 00 00 89 [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:01:37]Read from MH i2c: E2 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 17 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 17 00 BD 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [12:01:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:01:37]wFMCommunicate OK [12:01:37]requested_item fd.num is exist - process it [12:01:37]SAM_PROTO_GetFieldsCounters [12:01:37]wFMCommunicate request_size=4 [12:01:37]MH_SAM_APDU [12:01:37]CAPDU: 80 13 00 00 [12:01:37]Write to MH i2c: E2 08 00 BE 52 80 13 00 00 00 00 00 00 8C [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:01:37]Read from MH i2c: E2 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 62 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 62 00 BE 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [12:01:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0B 01 00 00 5E 04 04 00 0B 01 00 00 57 04 04 00 0C 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:01:37]wFMCommunicate OK [12:01:37]SAM_PROTO_GetFieldsCounters done [12:01:37]requested_item shift.num is exist - process it [12:01:37]requested_item shift.opened is exist - process it [12:01:37]req_shift_opened [12:01:37]FM_GetShiftState [12:01:37]SAM_PROTO_GetShiftState [12:01:37]wFMCommunicate request_size=4 [12:01:37]MH_SAM_APDU [12:01:37]CAPDU: 80 13 01 00 [12:01:37]Write to MH i2c: E2 08 00 BF 52 80 13 01 00 00 00 00 00 8E [12:01:37]Write i2c OK [12:01:37]MH_I2C_Read... [12:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:01:37]Read from MH i2c: E2 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 0E 00 [12:01:37]MH_I2C_Read... [12:01:37]Read from MH i2c: E2 0E 00 BF 52 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [12:01:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:01:37]wFMCommunicate OK [12:01:37]SAM_PROTO_GetShiftState done [12:01:37]FM_GetShiftState done [12:01:37]req_shift_opened done [12:01:37]requested_item shift.open_date is exist - process it [12:01:37]req_shift_open_date [12:01:37]req_shift_open_date done [12:01:37]produce_requested_data done [12:01:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188238,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:01:37]process_action_free close_receipt [12:01:37]json_value_free [12:01:37]json_value_free done [12:01:37]process_json_proto returns [12:01:37]Send response to host [12:01:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188238,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:01:37]free response buf [12:01:37]execute_script done [12:01:37]execute_script returns [12:01:37]free content buf [12:01:37]Sock 8.Close socket [12:01:37]Sock 8.Thread stoped [12:01:41]OFD Sender: No OFD packet to send [12:01:46]OFD Sender: No OFD packet to send [12:01:51]OFD Sender: No OFD packet to send [12:01:56]OFD Sender: No OFD packet to send [12:02:01]OFD Sender: No OFD packet to send [12:02:06]OFD Sender: No OFD packet to send [12:02:11]OFD Sender: No OFD packet to send [12:02:16]OFD Sender: No OFD packet to send [12:02:21]OFD Sender: No OFD packet to send [12:02:26]OFD Sender: No OFD packet to send [12:02:31]OFD Sender: No OFD packet to send [12:02:36]OFD Sender: No OFD packet to send [12:02:41]OFD Sender: No OFD packet to send [12:02:46]OFD Sender: No OFD packet to send [12:02:51]OFD Sender: No OFD packet to send [12:02:57]OFD Sender: No OFD packet to send [12:03:02]OFD Sender: No OFD packet to send [12:03:07]OFD Sender: No OFD packet to send [12:03:12]OFD Sender: No OFD packet to send [12:03:17]OFD Sender: No OFD packet to send [12:03:22]OFD Sender: No OFD packet to send [12:03:27]OFD Sender: No OFD packet to send [12:03:32]OFD Sender: No OFD packet to send [12:03:37]OFD Sender: No OFD packet to send [12:03:42]OFD Sender: No OFD packet to send [12:03:47]OFD Sender: No OFD packet to send [12:03:52]OFD Sender: No OFD packet to send [12:03:57]OFD Sender: No OFD packet to send [12:04:02]OFD Sender: No OFD packet to send [12:04:07]OFD Sender: No OFD packet to send [12:04:12]OFD Sender: No OFD packet to send [12:04:17]OFD Sender: No OFD packet to send [12:04:22]OFD Sender: No OFD packet to send [12:04:27]OFD Sender: No OFD packet to send [12:04:32]OFD Sender: No OFD packet to send [12:04:37]OFD Sender: No OFD packet to send [12:04:42]OFD Sender: No OFD packet to send [12:04:47]OFD Sender: No OFD packet to send [12:04:52]OFD Sender: No OFD packet to send [12:04:57]OFD Sender: No OFD packet to send [12:05:02]OFD Sender: No OFD packet to send [12:05:07]OFD Sender: No OFD packet to send [12:05:12]OFD Sender: No OFD packet to send [12:05:17]OFD Sender: No OFD packet to send [12:05:22]OFD Sender: No OFD packet to send [12:05:27]OFD Sender: No OFD packet to send [12:05:32]OFD Sender: No OFD packet to send [12:05:37]OFD Sender: No OFD packet to send [12:05:42]OFD Sender: No OFD packet to send [12:05:47]OFD Sender: No OFD packet to send [12:05:52]OFD Sender: No OFD packet to send [12:05:57]OFD Sender: No OFD packet to send [12:06:02]OFD Sender: No OFD packet to send [12:06:07]OFD Sender: No OFD packet to send [12:06:12]OFD Sender: No OFD packet to send [12:06:17]OFD Sender: No OFD packet to send [12:06:22]OFD Sender: No OFD packet to send [12:06:27]OFD Sender: No OFD packet to send [12:06:32]OFD Sender: No OFD packet to send [12:06:38]OFD Sender: No OFD packet to send [12:06:43]OFD Sender: No OFD packet to send [12:06:48]OFD Sender: No OFD packet to send [12:06:53]OFD Sender: No OFD packet to send [12:06:58]OFD Sender: No OFD packet to send [12:07:03]OFD Sender: No OFD packet to send [12:07:08]OFD Sender: No OFD packet to send [12:07:10]accept exits with 9 [12:07:10]New connection [12:07:10]New thread 3067055460 created [12:07:10]Thread 3067198820 joined [12:07:10]Waiting for new connection... [12:07:10] Sock 9.Parse request [12:07:10]Sock 9.Check first char [12:07:10]Sock 9.First char is OK [12:07:10]request: POST /json_proto HTTP/1.0 [12:07:10]Method: POST [12:07:10]URL: /json_proto [12:07:10]Method is POST - this is cgi request [12:07:10]url: /json_proto [12:07:10]query_string will be loaded in cgi processing [12:07:10]execute_cgi json_proto POST (null) [12:07:10]execute_cgi path=json_proto method=POST [12:07:10]POST find Content-Length [12:07:10]Host: 172.17.42.131:8080 [12:07:10]Content-Length: 688 [12:07:10]Content-Type: application/json [12:07:10] [12:07:10]POST finish read [12:07:10]Found Content-Length = 688 [12:07:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:07:10]execute_script... [12:07:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210292", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:07:10]POST & json_proto [12:07:10]process_json_proto [12:07:10]json parsed OK: [12:07:10]protocol is kg_v1.0 [12:07:10]action value=close_receipt [12:07:10]process_action close_receipt [12:07:10]cmd_close_receipt [12:07:10]MH_GetDate [12:07:10]Write to MH i2c: F0 00 00 C0 52 01 [12:07:10]Write i2c OK [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: F0 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: F0 09 00 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: F0 09 00 C0 52 00 72 95 17 67 A0 18 CA 66 77 [12:07:10]GetLastDocTimeStamp 1729598496 [12:07:10]current date 1729598834 [12:07:10]FM_GetShiftState [12:07:10]SAM_PROTO_GetShiftState [12:07:10]wFMCommunicate request_size=4 [12:07:10]MH_SAM_APDU [12:07:10]CAPDU: 80 13 01 00 [12:07:10]Write to MH i2c: E2 08 00 C1 52 80 13 01 00 00 00 00 00 90 [12:07:10]Write i2c OK [12:07:10]MH_I2C_Read... [12:07:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:10]Read from MH i2c: E2 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 0E 00 [12:07:10]MH_I2C_Read... [12:07:10]Read from MH i2c: E2 0E 00 C1 52 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [12:07:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:07:10]wFMCommunicate OK [12:07:10]SAM_PROTO_GetShiftState done [12:07:10]FM_GetShiftState done [12:07:10]opened in 1729556094 [12:07:10]opened+sec_in_day 1729642494 [12:07:10]quantity*price = 200025 [12:07:10]sum+1 = 200026 [12:07:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 268 22.10.2024 12:07 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188239 ФПД: 65668468333315 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120714&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188239&fm=65668468333315&tin=02508201610067®Number=0000000000100030&sum=200000 [12:07:11]StoreToDocumentArchive [12:07:11]shift 461 fd 188239 [12:07:11]save to /storage/0461/doc_00188239 [12:07:11]save last doc name /storage/0461/doc_00188239 to /storage/kkm_last_doc_name [12:07:11]save OK [12:07:11]Clear old archive folders... [12:07:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:07:11]tlvbuf is 01BD2980 [12:07:11]SAM_PROTO_ClearQueue [12:07:11]wFMCommunicate request_size=4 [12:07:11]MH_SAM_APDU [12:07:11]CAPDU: 80 09 00 00 [12:07:11]Write to MH i2c: E2 08 00 CE 52 80 09 00 00 00 00 00 00 92 [12:07:11]Write i2c OK [12:07:11]MH_I2C_Read... [12:07:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:11]Read from MH i2c: E2 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: E2 03 00 [12:07:11]MH_I2C_Read... [12:07:11]Read from MH i2c: E2 03 00 CE 52 00 90 00 94 [12:07:11]RAPDU: 90 00 [12:07:11]wFMCommunicate OK [12:07:11]SAM_PROTO_ClearQueue done [12:07:11]KKMCreateOFDPacket [12:07:11]OFDProtocolAddRootSTLVToBuf [12:07:11]FM_MakeSignedData [12:07:11]FM_MakeSignedData [12:07:11]SAM_PROTO_SignData [12:07:11]wFMCommunicate request_size=4 [12:07:11]MH_SAM_APDU [12:07:11]CAPDU: 80 0D 01 02 [12:07:11]Write to MH i2c: E2 08 00 CF 52 80 0D 01 02 00 00 00 00 9A [12:07:11]Write i2c OK [12:07:11]MH_I2C_Read... [12:07:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 CF 52 00 90 00 95 [12:07:12]RAPDU: 90 00 [12:07:12]wFMCommunicate OK [12:07:12]wFMCommunicate request_size=255 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0C 01 00 00 F4 03 04 00 72 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DF 02 [12:07:12]Write to MH i2c: E2 02 01 D0 52 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0C 01 00 00 F4 03 04 00 72 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DF 02 00 00 CB [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 D0 52 00 90 00 96 [12:07:12]RAPDU: 90 00 [12:07:12]wFMCommunicate OK [12:07:12]wFMCommunicate request_size=16 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3B B9 A1 BA 5B 03 [12:07:12]Write to MH i2c: E2 13 00 D1 52 80 0D 02 02 0B 00 00 35 04 06 00 3B B9 A1 BA 5B 03 00 00 9F [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 03 00 D1 52 00 90 00 97 [12:07:12]RAPDU: 90 00 [12:07:12]wFMCommunicate OK [12:07:12]wFMCommunicate request_size=4 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 0D 03 02 [12:07:12]Write to MH i2c: E2 08 00 D2 52 80 0D 03 02 00 00 00 00 9F [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 0B 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 0B 00 D2 52 00 C7 E5 22 0B F7 07 08 4F 90 00 CE [12:07:12]RAPDU: C7 E5 22 0B F7 07 08 4F 90 00 [12:07:12]wFMCommunicate OK [12:07:12]SAM_PROTO_SignData done [12:07:12]FM_MakeSignedData done [12:07:12]CreateOFDProtocolMessage [12:07:12]wFMCommunicate request_size=4 [12:07:12]MH_SAM_APDU [12:07:12]CAPDU: 80 11 00 00 [12:07:12]Write to MH i2c: E2 08 00 D3 52 80 11 00 00 00 00 00 00 9F [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:12]Read from MH i2c: E2 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 17 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: E2 17 00 D3 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [12:07:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:07:12]wFMCommunicate OK [12:07:12]CreateOFDProtocolMessage done [12:07:12]OFDSenderStorePacket 188239 [12:07:12]StoreOFDPacket docnum=188239 [12:07:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4E 9F 0D 01 BE 72 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0C 01 00 00 F4 03 04 00 72 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DF 02 00 35 04 06 00 3B B9 A1 BA 5B 03 C7 E5 22 0B F7 07 08 4F [12:07:12]CheckFolder [12:07:12]dirname=/storage/ofd_packets [12:07:12]CheckFolder done [12:07:12]ProducePacketName [12:07:12]name=ofd_packets/00188239 [12:07:12]NVStorageSaveData ofd_packets/00188239 [12:07:12]File name is /storage/ofd_packets/00188239 [12:07:12]Write 307 bytes [12:07:12]NVStorageSaveData done [12:07:12]OFDSenderStorePacket done [12:07:12]KKMCreateOFDPacket done [12:07:12]NVStorageSaveData kkm_last_timestamp [12:07:12]File name is /storage/kkm_last_timestamp [12:07:12]Write 4 bytes [12:07:12]NVStorageSaveData done [12:07:12]ExternCall_PrintAddStr [12:07:12]wPrintStart [12:07:12]Write to MH i2c: 01 00 00 D4 52 26 [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: 01 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: 01 07 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: 01 07 00 D4 52 00 00 00 00 00 FF 0F 3B [12:07:12]RasterBufferAndPrint [12:07:12]line Счет N : (1)210292 [12:07:12]line ИНН: 02508201610067 [12:07:12]line Контрольно-Кассовый Чек [12:07:12]line ПРОДАЖА [12:07:12]line ТРК (МРК, ГНК) : 21 [12:07:12]line Товар: 2710194210 [12:07:12]line D-ENERGY ДТ-К-5 [12:07:12]line 25.910 * 77.20 [12:07:12]line = 2000.25 [12:07:12]line НДС 12% НСП 1% [12:07:12]line > о реализуемом товаре [12:07:12]line ОКРУГЛЕНИЕ: -0.25 [12:07:12]line ИТОГО: 2000.00 [12:07:12]line Внесено: 2000.00 [12:07:12]line СДАЧА: 0.00 [12:07:12]line НСП 1% : 17.70 [12:07:12]line НДС 12% : 212.42 [12:07:12]line Наличными: 2000.00 [12:07:12]line Безнал.: 0.00 [12:07:12]line Место: АЗС № 86 "Партнер Нефть" [12:07:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:07:12]line СНО: Общий режим [12:07:12]line Чек 268 22.10.2024 12:07 [12:07:12]line Смена: 461 ФФД: 1.0 [12:07:12]line ЗНМ: 0300000155 [12:07:12]line РНМ: 0000000000100030 [12:07:12]line Версия ККМ: 001 [12:07:12]line ФМ: 0000000000965340 [12:07:12]line ФД: 188239 [12:07:12]line ФПД: 65668468333315 [12:07:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120714&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188239&fm=65668468333315&tin=02508201610067®Number=0000000000100030&sum=200000 [12:07:12]written 0, free lines is 4095 [12:07:12]OFD Sender: Processing packet 188239 [packets to send 1062, broken 1061] [12:07:12]ProducePacketName [12:07:12]name=ofd_packets/00188239 [12:07:12]OFD Sender: To server: pG, [12:07:12]CommunicateWithHost lk.salyk.kg:30040 [12:07:12]ConnectInit lk.salyk.kg [12:07:12]Connected sock=10 [12:07:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4E 9F 0D 01 BE 72 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 0C 01 00 00 F4 03 04 00 72 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F DF 02 00 35 04 06 00 3B B9 A1 BA 5B 03 C7 E5 22 0B F7 07 08 4F [12:07:12]Write to MH i2c: 01 00 00 FF 52 51 [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: 01 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: 01 07 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: 01 07 00 FF 52 00 00 00 00 00 6F 0C D3 [12:07:12]RasterBufferAndPrint [12:07:12]line [12:07:12]line [12:07:12]line [12:07:12]line [12:07:12]line [12:07:12]written 0, free lines is 3186 [12:07:12]MH_Cut [12:07:12]Write to MH i2c: D1 01 00 06 53 01 2B [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: D1 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: D1 01 00 [12:07:12]MH_I2C_Read... [12:07:12]Read from MH i2c: D1 01 00 06 53 00 2A [12:07:12]Write to MH i2c: 01 00 00 07 53 5A [12:07:12]Write i2c OK [12:07:12]MH_I2C_Read... [12:07:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F0 B5 47 00 1E 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 39 36 35 33 34 30 10 04 04 00 4F DF 02 00 F4 03 04 00 5F 3F 17 67 B6 04 01 00 00 76 98 80 86 19 3D B6 9F [12:07:13]CommunicateWithHost err = 0 [12:07:13]CheckOFDResponse [12:07:13]1017 (14) - 77093643461234 [12:07:13]1041 (16) - 0000000000965340 [12:07:13]1040 (4) - 188239 [12:07:13]1012 (4) - 22.10.2024 05:59 [12:07:13]1206 (1) - 0 [12:07:13]OFD Sender: Remove packet 188239 [12:07:13]ProducePacketName [12:07:13]name=ofd_packets/00188239 [12:07:13]NVStorageDeleteData [12:07:13]OFD Sender: No OFD packet to send [12:07:14]*** Cut start [12:07:14]*** Partial cut [12:07:14]*** CUTSNS_PIN = 1 [12:07:14]*** CUTSNS_PIN = 0 [12:07:14]*** Brake cut motor [12:07:14]Read from MH i2c: 01 [12:07:14]MH_I2C_Read... [12:07:14]*** Stop cut motor [12:07:14]*** Cut end [12:07:14]Read from MH i2c: 01 07 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: 01 07 00 07 53 00 00 00 00 00 FF 0F 6F [12:07:14]process_action close_receipt done [12:07:14]requested_data is exist [12:07:14]produce_requested_data [12:07:14]requested_item fm.sn is exist - process it [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 11 00 00 [12:07:14]Write to MH i2c: E2 08 00 08 53 80 11 00 00 00 00 00 00 D5 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 17 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 17 00 08 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [12:07:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:07:14]wFMCommunicate OK [12:07:14]requested_item fd.num is exist - process it [12:07:14]SAM_PROTO_GetFieldsCounters [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 13 00 00 [12:07:14]Write to MH i2c: E2 08 00 09 53 80 13 00 00 00 00 00 00 D8 [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:14]Read from MH i2c: E2 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 62 00 [12:07:14]MH_I2C_Read... [12:07:14]Read from MH i2c: E2 62 00 09 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [12:07:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0C 01 00 00 5E 04 04 00 0C 01 00 00 57 04 04 00 0D 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:07:14]wFMCommunicate OK [12:07:14]SAM_PROTO_GetFieldsCounters done [12:07:14]requested_item shift.num is exist - process it [12:07:14]requested_item shift.opened is exist - process it [12:07:14]req_shift_opened [12:07:14]FM_GetShiftState [12:07:14]SAM_PROTO_GetShiftState [12:07:14]wFMCommunicate request_size=4 [12:07:14]MH_SAM_APDU [12:07:14]CAPDU: 80 13 01 00 [12:07:14]Write to MH i2c: E2 08 00 0A 53 80 13 01 00 00 00 00 00 DA [12:07:14]Write i2c OK [12:07:14]MH_I2C_Read... [12:07:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:15]Read from MH i2c: E2 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0E 00 [12:07:15]MH_I2C_Read... [12:07:15]Read from MH i2c: E2 0E 00 0A 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CF [12:07:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:07:15]wFMCommunicate OK [12:07:15]SAM_PROTO_GetShiftState done [12:07:15]FM_GetShiftState done [12:07:15]req_shift_opened done [12:07:15]requested_item shift.open_date is exist - process it [12:07:15]req_shift_open_date [12:07:15]req_shift_open_date done [12:07:15]produce_requested_data done [12:07:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188239,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:07:15]process_action_free close_receipt [12:07:15]json_value_free [12:07:15]json_value_free done [12:07:15]process_json_proto returns [12:07:15]Send response to host [12:07:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188239,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:07:15]free response buf [12:07:15]execute_script done [12:07:15]execute_script returns [12:07:15]free content buf [12:07:15]Sock 9.Close socket [12:07:15]Sock 9.Thread stoped [12:07:18]OFD Sender: No OFD packet to send [12:07:23]OFD Sender: No OFD packet to send [12:07:28]OFD Sender: No OFD packet to send [12:07:33]OFD Sender: No OFD packet to send [12:07:38]OFD Sender: No OFD packet to send [12:07:43]OFD Sender: No OFD packet to send [12:07:48]OFD Sender: No OFD packet to send [12:07:53]OFD Sender: No OFD packet to send [12:07:58]OFD Sender: No OFD packet to send [12:08:03]OFD Sender: No OFD packet to send [12:08:08]OFD Sender: No OFD packet to send [12:08:13]OFD Sender: No OFD packet to send [12:08:18]OFD Sender: No OFD packet to send [12:08:23]OFD Sender: No OFD packet to send [12:08:28]OFD Sender: No OFD packet to send [12:08:33]OFD Sender: No OFD packet to send [12:08:38]OFD Sender: No OFD packet to send [12:08:44]OFD Sender: No OFD packet to send [12:08:49]OFD Sender: No OFD packet to send [12:08:54]OFD Sender: No OFD packet to send [12:08:59]OFD Sender: No OFD packet to send [12:09:04]OFD Sender: No OFD packet to send [12:09:09]OFD Sender: No OFD packet to send [12:09:11]accept exits with 8 [12:09:11]New connection [12:09:11]New thread 3067198820 created [12:09:11]Thread 3067055460 joined [12:09:11]Waiting for new connection... [12:09:11] Sock 8.Parse request [12:09:11]Sock 8.Check first char [12:09:11]Sock 8.First char is OK [12:09:11]request: POST /json_proto HTTP/1.0 [12:09:11]Method: POST [12:09:11]URL: /json_proto [12:09:11]Method is POST - this is cgi request [12:09:11]url: /json_proto [12:09:11]query_string will be loaded in cgi processing [12:09:11]execute_cgi json_proto POST (null) [12:09:11]execute_cgi path=json_proto method=POST [12:09:11]POST find Content-Length [12:09:11]Host: 172.17.42.131:8080 [12:09:11]Content-Length: 682 [12:09:11]Content-Type: application/json [12:09:11] [12:09:11]POST finish read [12:09:11]Found Content-Length = 682 [12:09:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [12:09:11]execute_script... [12:09: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)210293", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [12:09:11]POST & json_proto [12:09:11]process_json_proto [12:09:11]json parsed OK: [12:09:11]protocol is kg_v1.0 [12:09:11]action value=close_receipt [12:09:11]process_action close_receipt [12:09:11]cmd_close_receipt [12:09:11]MH_GetDate [12:09:11]Write to MH i2c: F0 00 00 0B 53 4D [12:09:11]Write i2c OK [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: F0 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: F0 09 00 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: F0 09 00 0B 53 00 EA 95 17 67 A0 18 CA 66 3B [12:09:11]GetLastDocTimeStamp 1729598834 [12:09:11]current date 1729598954 [12:09:11]FM_GetShiftState [12:09:11]SAM_PROTO_GetShiftState [12:09:11]wFMCommunicate request_size=4 [12:09:11]MH_SAM_APDU [12:09:11]CAPDU: 80 13 01 00 [12:09:11]Write to MH i2c: E2 08 00 0C 53 80 13 01 00 00 00 00 00 DC [12:09:11]Write i2c OK [12:09:11]MH_I2C_Read... [12:09:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:11]Read from MH i2c: E2 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: E2 0E 00 [12:09:11]MH_I2C_Read... [12:09:11]Read from MH i2c: E2 0E 00 0C 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [12:09:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:09:11]wFMCommunicate OK [12:09:11]SAM_PROTO_GetShiftState done [12:09:11]FM_GetShiftState done [12:09:11]opened in 1729556094 [12:09:11]opened+sec_in_day 1729642494 [12:09:11]quantity*price = 200043 [12:09:11]sum+1 = 200044 [12:09:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 269 22.10.2024 12:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188240 ФПД: 104005547009602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120914&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188240&fm=104005547009602&tin=02508201610067®Number=0000000000100030&sum=200000 [12:09:12]StoreToDocumentArchive [12:09:12]shift 461 fd 188240 [12:09:12]save to /storage/0461/doc_00188240 [12:09:12]save last doc name /storage/0461/doc_00188240 to /storage/kkm_last_doc_name [12:09:12]save OK [12:09:12]Clear old archive folders... [12:09:12]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:09:12]tlvbuf is B6DE4900 [12:09:12]SAM_PROTO_ClearQueue [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 09 00 00 [12:09:12]Write to MH i2c: E2 08 00 19 53 80 09 00 00 00 00 00 00 DE [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 19 53 00 90 00 E0 [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]SAM_PROTO_ClearQueue done [12:09:12]KKMCreateOFDPacket [12:09:12]OFDProtocolAddRootSTLVToBuf [12:09:12]FM_MakeSignedData [12:09:12]FM_MakeSignedData [12:09:12]SAM_PROTO_SignData [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 01 02 [12:09:12]Write to MH i2c: E2 08 00 1A 53 80 0D 01 02 00 00 00 00 E6 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 1A 53 00 90 00 E1 [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]wFMCommunicate request_size=255 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 0D 01 00 00 F4 03 04 00 EA 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DF 02 00 35 04 06 00 5E [12:09:12]Write to MH i2c: E2 02 01 1B 53 80 0D 02 02 FA 00 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 0D 01 00 00 F4 03 04 00 EA 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DF 02 00 35 04 06 00 5E 00 00 69 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 1B 53 00 90 00 E2 [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]wFMCommunicate request_size=10 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 02 02 05 97 AD AF 26 42 [12:09:12]Write to MH i2c: E2 0D 00 1C 53 80 0D 02 02 05 00 97 AD AF 26 42 00 00 4E [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 03 00 1C 53 00 90 00 E3 [12:09:12]RAPDU: 90 00 [12:09:12]wFMCommunicate OK [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 0D 03 02 [12:09:12]Write to MH i2c: E2 08 00 1D 53 80 0D 03 02 00 00 00 00 EB [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 0B 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 0B 00 1D 53 00 9B 59 75 67 E5 60 00 C1 90 00 C2 [12:09:12]RAPDU: 9B 59 75 67 E5 60 00 C1 90 00 [12:09:12]wFMCommunicate OK [12:09:12]SAM_PROTO_SignData done [12:09:12]FM_MakeSignedData done [12:09:12]CreateOFDProtocolMessage [12:09:12]wFMCommunicate request_size=4 [12:09:12]MH_SAM_APDU [12:09:12]CAPDU: 80 11 00 00 [12:09:12]Write to MH i2c: E2 08 00 1E 53 80 11 00 00 00 00 00 00 EB [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:12]Read from MH i2c: E2 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 17 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: E2 17 00 1E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [12:09:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:09:12]wFMCommunicate OK [12:09:12]CreateOFDProtocolMessage done [12:09:12]OFDSenderStorePacket 188240 [12:09:12]StoreOFDPacket docnum=188240 [12:09:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB DB 07 01 1C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 01 00 00 F4 03 04 00 EA 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DF 02 00 35 04 06 00 5E 97 AD AF 26 42 9B 59 75 67 E5 60 00 C1 [12:09:12]CheckFolder [12:09:12]dirname=/storage/ofd_packets [12:09:12]CheckFolder done [12:09:12]ProducePacketName [12:09:12]name=ofd_packets/00188240 [12:09:12]NVStorageSaveData ofd_packets/00188240 [12:09:12]File name is /storage/ofd_packets/00188240 [12:09:12]Write 301 bytes [12:09:12]NVStorageSaveData done [12:09:12]OFDSenderStorePacket done [12:09:12]KKMCreateOFDPacket done [12:09:12]NVStorageSaveData kkm_last_timestamp [12:09:12]File name is /storage/kkm_last_timestamp [12:09:12]Write 4 bytes [12:09:12]NVStorageSaveData done [12:09:12]ExternCall_PrintAddStr [12:09:12]wPrintStart [12:09:12]Write to MH i2c: 01 00 00 1F 53 72 [12:09:12]Write i2c OK [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: 01 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: 01 07 00 [12:09:12]MH_I2C_Read... [12:09:12]Read from MH i2c: 01 07 00 1F 53 00 00 00 00 00 FF 0F 87 [12:09:12]RasterBufferAndPrint [12:09:12]line Счет N : (1)210293 [12:09:12]line ИНН: 02508201610067 [12:09:12]line Контрольно-Кассовый Чек [12:09:12]line ПРОДАЖА [12:09:12]line ТРК (МРК, ГНК) : 13 [12:09:12]line Товар: 2710124500 [12:09:12]line Аи-95-К-3 [12:09:12]line 26.960 * 74.20 [12:09:12]line = 2000.43 [12:09:12]line НДС 12% НСП 1% [12:09:12]line > о реализуемом товаре [12:09:12]line ОКРУГЛЕНИЕ: -0.43 [12:09:12]line ИТОГО: 2000.00 [12:09:12]line Внесено: 2000.00 [12:09:12]line СДАЧА: 0.00 [12:09:12]line НСП 1% : 17.70 [12:09:12]line НДС 12% : 212.43 [12:09:12]line Наличными: 2000.00 [12:09:12]line Безнал.: 0.00 [12:09:12]line Место: АЗС № 86 "Партнер Нефть" [12:09:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:09:12]line СНО: Общий режим [12:09:12]line Чек 269 22.10.2024 12:09 [12:09:12]line Смена: 461 ФФД: 1.0 [12:09:12]line ЗНМ: 0300000155 [12:09:13]line РНМ: 0000000000100030 [12:09:13]line Версия ККМ: 001 [12:09:13]line ФМ: 0000000000965340 [12:09:13]line ФД: 188240 [12:09:13]line ФПД: 104005547009602 [12:09:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T120914&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188240&fm=104005547009602&tin=02508201610067®Number=0000000000100030&sum=200000 [12:09:13]OFD Sender: Processing packet 188240 [packets to send 1062, broken 1061] [12:09:13]ProducePacketName [12:09:13]name=ofd_packets/00188240 [12:09:13]OFD Sender: To server: pG, [12:09:13]CommunicateWithHost lk.salyk.kg:30040 [12:09:13]ConnectInit lk.salyk.kg [12:09:13]written 0, free lines is 4095 [12:09:13]Write to MH i2c: 01 00 00 4A 53 9D [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: 01 07 00 4A 53 00 00 00 00 00 6F 0C 1F [12:09:13]RasterBufferAndPrint [12:09:13]line [12:09:13]line [12:09:13]line [12:09:13]line [12:09:13]line [12:09:13]written 0, free lines is 3186 [12:09:13]MH_Cut [12:09:13]Write to MH i2c: D1 01 00 51 53 01 76 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: D1 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: D1 01 00 [12:09:13]MH_I2C_Read... [12:09:13]Read from MH i2c: D1 01 00 51 53 00 75 [12:09:13]Write to MH i2c: 01 00 00 52 53 A5 [12:09:13]Write i2c OK [12:09:13]MH_I2C_Read... [12:09:13]Connected sock=9 [12:09:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AB DB 07 01 1C 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 0D 01 00 00 F4 03 04 00 EA 95 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 DF 02 00 35 04 06 00 5E 97 AD AF 26 42 9B 59 75 67 E5 60 00 C1 [12:09:14]*** Cut start [12:09:14]*** Partial cut [12:09:14]*** CUTSNS_PIN = 1 [12:09:14]*** CUTSNS_PIN = 0 [12:09:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 02 81 47 00 FC 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 39 36 35 33 34 30 10 04 04 00 50 DF 02 00 F4 03 04 00 D9 3F 17 67 B6 04 01 00 00 AA E8 E8 C4 83 CB 64 B1 [12:09:14]CommunicateWithHost err = 0 [12:09:14]CheckOFDResponse [12:09:14]1017 (14) - 77093643461234 [12:09:14]1041 (16) - 0000000000965340 [12:09:14]1040 (4) - 188240 [12:09:14]1012 (4) - 22.10.2024 06:02 [12:09:14]1206 (1) - 0 [12:09:14]OFD Sender: Remove packet 188240 [12:09:14]ProducePacketName [12:09:14]name=ofd_packets/00188240 [12:09:14]NVStorageDeleteData [12:09:14]*** Brake cut motor [12:09:15]OFD Sender: No OFD packet to send [12:09:15]Read from MH i2c: 01 [12:09:15]MH_I2C_Read... [12:09:15]*** Stop cut motor [12:09:15]*** Cut end [12:09:15]Read from MH i2c: 01 07 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: 01 07 00 52 53 00 00 00 00 00 FF 0F BA [12:09:15]process_action close_receipt done [12:09:15]requested_data is exist [12:09:15]produce_requested_data [12:09:15]requested_item fm.sn is exist - process it [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 11 00 00 [12:09:15]Write to MH i2c: E2 08 00 53 53 80 11 00 00 00 00 00 00 20 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 17 00 53 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [12:09:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:09:15]wFMCommunicate OK [12:09:15]requested_item fd.num is exist - process it [12:09:15]SAM_PROTO_GetFieldsCounters [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 00 00 [12:09:15]Write to MH i2c: E2 08 00 54 53 80 13 00 00 00 00 00 00 23 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 62 00 54 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 53 [12:09:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0D 01 00 00 5E 04 04 00 0D 01 00 00 57 04 04 00 0E 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetFieldsCounters done [12:09:15]requested_item shift.num is exist - process it [12:09:15]requested_item shift.opened is exist - process it [12:09:15]req_shift_opened [12:09:15]FM_GetShiftState [12:09:15]SAM_PROTO_GetShiftState [12:09:15]wFMCommunicate request_size=4 [12:09:15]MH_SAM_APDU [12:09:15]CAPDU: 80 13 01 00 [12:09:15]Write to MH i2c: E2 08 00 55 53 80 13 01 00 00 00 00 00 25 [12:09:15]Write i2c OK [12:09:15]MH_I2C_Read... [12:09:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:09:15]Read from MH i2c: E2 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 [12:09:15]MH_I2C_Read... [12:09:15]Read from MH i2c: E2 0E 00 55 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [12:09:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:09:15]wFMCommunicate OK [12:09:15]SAM_PROTO_GetShiftState done [12:09:15]FM_GetShiftState done [12:09:15]req_shift_opened done [12:09:15]requested_item shift.open_date is exist - process it [12:09:15]req_shift_open_date [12:09:15]req_shift_open_date done [12:09:15]produce_requested_data done [12:09:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188240,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:09:15]process_action_free close_receipt [12:09:15]json_value_free [12:09:15]json_value_free done [12:09:15]process_json_proto returns [12:09:15]Send response to host [12:09:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188240,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:09:15]free response buf [12:09:15]execute_script done [12:09:15]execute_script returns [12:09:15]free content buf [12:09:15]Sock 8.Close socket [12:09:15]Sock 8.Thread stoped [12:09:20]OFD Sender: No OFD packet to send [12:09:25]OFD Sender: No OFD packet to send [12:09:30]OFD Sender: No OFD packet to send [12:09:35]OFD Sender: No OFD packet to send [12:09:40]OFD Sender: No OFD packet to send [12:09:45]OFD Sender: No OFD packet to send [12:09:50]OFD Sender: No OFD packet to send [12:09:55]OFD Sender: No OFD packet to send [12:10:00]OFD Sender: No OFD packet to send [12:10:05]OFD Sender: No OFD packet to send [12:10:10]OFD Sender: No OFD packet to send [12:10:15]OFD Sender: No OFD packet to send [12:10:20]OFD Sender: No OFD packet to send [12:10:25]OFD Sender: No OFD packet to send [12:10:30]OFD Sender: No OFD packet to send [12:10:35]OFD Sender: No OFD packet to send [12:10:40]OFD Sender: No OFD packet to send [12:10:45]OFD Sender: No OFD packet to send [12:10:50]OFD Sender: No OFD packet to send [12:10:55]OFD Sender: No OFD packet to send [12:11:00]OFD Sender: No OFD packet to send [12:11:05]OFD Sender: No OFD packet to send [12:11:10]OFD Sender: No OFD packet to send [12:11:15]OFD Sender: No OFD packet to send [12:11:20]OFD Sender: No OFD packet to send [12:11:25]OFD Sender: No OFD packet to send [12:11:30]OFD Sender: No OFD packet to send [12:11:35]OFD Sender: No OFD packet to send [12:11:40]OFD Sender: No OFD packet to send [12:11:45]OFD Sender: No OFD packet to send [12:11:50]OFD Sender: No OFD packet to send [12:11:55]OFD Sender: No OFD packet to send [12:11:56]accept exits with 10 [12:11:56]New connection [12:11:56]New thread 3067055460 created [12:11:56]Thread 3067198820 joined [12:11:56]Waiting for new connection... [12:11:56] Sock 10.Parse request [12:11:56]Sock 10.Check first char [12:11:56]Sock 10.First char is OK [12:11:56]request: POST /json_proto HTTP/1.0 [12:11:56]Method: POST [12:11:56]URL: /json_proto [12:11:56]Method is POST - this is cgi request [12:11:56]url: /json_proto [12:11:56]query_string will be loaded in cgi processing [12:11:56]execute_cgi json_proto POST (null) [12:11:56]execute_cgi path=json_proto method=POST [12:11:56]POST find Content-Length [12:11:56]Host: 172.17.42.131:8080 [12:11:56]Content-Length: 688 [12:11:56]Content-Type: application/json [12:11:56] [12:11:56]POST finish read [12:11:56]Found Content-Length = 688 [12:11:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:56]execute_script... [12:11: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)210294", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 18.140, "sum" : 1400.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:11:56]POST & json_proto [12:11:56]process_json_proto [12:11:56]json parsed OK: [12:11:56]protocol is kg_v1.0 [12:11:56]action value=close_receipt [12:11:56]process_action close_receipt [12:11:56]cmd_close_receipt [12:11:56]MH_GetDate [12:11:56]Write to MH i2c: F0 00 00 56 53 98 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: F0 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: F0 09 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: F0 09 00 56 53 00 90 96 17 67 A0 18 CA 66 2D [12:11:56]GetLastDocTimeStamp 1729598954 [12:11:56]current date 1729599120 [12:11:56]FM_GetShiftState [12:11:56]SAM_PROTO_GetShiftState [12:11:56]wFMCommunicate request_size=4 [12:11:56]MH_SAM_APDU [12:11:56]CAPDU: 80 13 01 00 [12:11:56]Write to MH i2c: E2 08 00 57 53 80 13 01 00 00 00 00 00 27 [12:11:56]Write i2c OK [12:11:56]MH_I2C_Read... [12:11:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:11:56]Read from MH i2c: E2 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 0E 00 [12:11:56]MH_I2C_Read... [12:11:56]Read from MH i2c: E2 0E 00 57 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [12:11:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:11:56]wFMCommunicate OK [12:11:56]SAM_PROTO_GetShiftState done [12:11:56]FM_GetShiftState done [12:11:56]opened in 1729556094 [12:11:56]opened+sec_in_day 1729642494 [12:11:56]quantity*price = 140040 [12:11:56]sum+1 = 140042 [12:11:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.72 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 270 22.10.2024 12:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188241 ФПД: 33421114997794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188241&fm=33421114997794&tin=02508201610067®Number=0000000000100030&sum=140000 [12:11:58]StoreToDocumentArchive [12:11:58]shift 461 fd 188241 [12:11:58]save to /storage/0461/doc_00188241 [12:11:58]save last doc name /storage/0461/doc_00188241 to /storage/kkm_last_doc_name [12:11:58]save OK [12:11:58]Clear old archive folders... [12:11:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:11:58]tlvbuf is 01BE0950 [12:11:58]SAM_PROTO_ClearQueue [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 09 00 00 [12:11:58]Write to MH i2c: E2 08 00 64 53 80 09 00 00 00 00 00 00 29 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 64 53 00 90 00 2B [12:11:58]RAPDU: 90 00 [12:11:58]wFMCommunicate OK [12:11:58]SAM_PROTO_ClearQueue done [12:11:58]KKMCreateOFDPacket [12:11:58]OFDProtocolAddRootSTLVToBuf [12:11:58]FM_MakeSignedData [12:11:58]FM_MakeSignedData [12:11:58]SAM_PROTO_SignData [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 0D 01 02 [12:11:58]Write to MH i2c: E2 08 00 65 53 80 0D 01 02 00 00 00 00 31 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 65 53 00 90 00 2C [12:11:58]RAPDU: 90 00 [12:11:58]wFMCommunicate OK [12:11:58]wFMCommunicate request_size=255 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 90 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DF 02 [12:11:58]Write to MH i2c: E2 02 01 66 53 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 90 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DF 02 00 00 2A [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 66 53 00 90 00 2D [12:11:58]RAPDU: 90 00 [12:11:58]wFMCommunicate OK [12:11:58]wFMCommunicate request_size=16 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1E 65 75 AF FC 22 [12:11:58]Write to MH i2c: E2 13 00 67 53 80 0D 02 02 0B 00 00 35 04 06 00 1E 65 75 AF FC 22 00 00 4E [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 03 00 67 53 00 90 00 2E [12:11:58]RAPDU: 90 00 [12:11:58]wFMCommunicate OK [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 0D 03 02 [12:11:58]Write to MH i2c: E2 08 00 68 53 80 0D 03 02 00 00 00 00 36 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 0B 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 0B 00 68 53 00 A2 81 D6 C0 4B B7 A2 A0 90 00 34 [12:11:58]RAPDU: A2 81 D6 C0 4B B7 A2 A0 90 00 [12:11:58]wFMCommunicate OK [12:11:58]SAM_PROTO_SignData done [12:11:58]FM_MakeSignedData done [12:11:58]CreateOFDProtocolMessage [12:11:58]wFMCommunicate request_size=4 [12:11:58]MH_SAM_APDU [12:11:58]CAPDU: 80 11 00 00 [12:11:58]Write to MH i2c: E2 08 00 69 53 80 11 00 00 00 00 00 00 36 [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:11:58]Read from MH i2c: E2 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: E2 17 00 69 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [12:11:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:11:58]wFMCommunicate OK [12:11:58]CreateOFDProtocolMessage done [12:11:58]OFDSenderStorePacket 188241 [12:11:58]StoreOFDPacket docnum=188241 [12:11:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2B 71 0D 01 42 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 90 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DF 02 00 35 04 06 00 1E 65 75 AF FC 22 A2 81 D6 C0 4B B7 A2 A0 [12:11:58]CheckFolder [12:11:58]dirname=/storage/ofd_packets [12:11:58]CheckFolder done [12:11:58]ProducePacketName [12:11:58]name=ofd_packets/00188241 [12:11:58]NVStorageSaveData ofd_packets/00188241 [12:11:58]File name is /storage/ofd_packets/00188241 [12:11:58]Write 307 bytes [12:11:58]NVStorageSaveData done [12:11:58]OFDSenderStorePacket done [12:11:58]KKMCreateOFDPacket done [12:11:58]NVStorageSaveData kkm_last_timestamp [12:11:58]File name is /storage/kkm_last_timestamp [12:11:58]Write 4 bytes [12:11:58]NVStorageSaveData done [12:11:58]ExternCall_PrintAddStr [12:11:58]wPrintStart [12:11:58]Write to MH i2c: 01 00 00 6A 53 BD [12:11:58]Write i2c OK [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: 01 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: 01 07 00 [12:11:58]MH_I2C_Read... [12:11:58]Read from MH i2c: 01 07 00 6A 53 00 00 00 00 00 FF 0F D2 [12:11:58]RasterBufferAndPrint [12:11:58]line Счет N : (1)210294 [12:11:58]line ИНН: 02508201610067 [12:11:58]line Контрольно-Кассовый Чек [12:11:58]line ПРОДАЖА [12:11:58]line ТРК (МРК, ГНК) : 21 [12:11:58]line Товар: 2710194210 [12:11:58]line D-ENERGY ДТ-К-5 [12:11:58]line 18.140 * 77.20 [12:11:58]line = 1400.41 [12:11:58]line НДС 12% НСП 1% [12:11:58]line > о реализуемом товаре [12:11:58]line ОКРУГЛЕНИЕ: -0.41 [12:11:58]line ИТОГО: 1400.00 [12:11:58]line Внесено: 1400.00 [12:11:58]line СДАЧА: 0.00 [12:11:58]line НСП 1% : 12.39 [12:11:58]line НДС 12% : 148.72 [12:11:58]line Наличными: 1400.00 [12:11:58]line Безнал.: 0.00 [12:11:58]line Место: АЗС № 86 "Партнер Нефть" [12:11:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:11:58]line СНО: Общий режим [12:11:58]line Чек 270 22.10.2024 12:12 [12:11:58]line Смена: 461 ФФД: 1.0 [12:11:58]line ЗНМ: 0300000155 [12:11:58]line РНМ: 0000000000100030 [12:11:58]line Версия ККМ: 001 [12:11:58]line ФМ: 0000000000965340 [12:11:58]line ФД: 188241 [12:11:58]line ФПД: 33421114997794 [12:11:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121200&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188241&fm=33421114997794&tin=02508201610067®Number=0000000000100030&sum=140000 [12:11:58]written 0, free lines is 4095 [12:11:58]OFD Sender: Processing packet 188241 [packets to send 1062, broken 1061] [12:11:58]ProducePacketName [12:11:58]name=ofd_packets/00188241 [12:11:58]OFD Sender: To server: pG, [12:11:58]CommunicateWithHost lk.salyk.kg:30040 [12:11:58]ConnectInit lk.salyk.kg [12:11:59]Connected sock=11 [12:11:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2B 71 0D 01 42 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DC 46 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 09 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 18 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 01 00 00 F4 03 04 00 90 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DF 02 00 35 04 06 00 1E 65 75 AF FC 22 A2 81 D6 C0 4B B7 A2 A0 [12:11:59]Write to MH i2c: 01 00 00 95 53 E8 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: 01 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: 01 07 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: 01 07 00 95 53 00 00 00 00 00 70 0C 6B [12:11:59]RasterBufferAndPrint [12:11:59]line [12:11:59]line [12:11:59]line [12:11:59]line [12:11:59]line [12:11:59]written 0, free lines is 3186 [12:11:59]MH_Cut [12:11:59]Write to MH i2c: D1 01 00 9C 53 01 C1 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: D1 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: D1 01 00 [12:11:59]MH_I2C_Read... [12:11:59]Read from MH i2c: D1 01 00 9C 53 00 C0 [12:11:59]Write to MH i2c: 01 00 00 9D 53 F0 [12:11:59]Write i2c OK [12:11:59]MH_I2C_Read... [12:11:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8E 92 47 00 D2 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 DF 02 00 F4 03 04 00 7D 40 17 67 B6 04 01 00 00 32 B1 E3 48 4C 28 16 56 [12:11:59]CommunicateWithHost err = 0 [12:11:59]CheckOFDResponse [12:11:59]1017 (14) - 77093643461234 [12:11:59]1041 (16) - 0000000000965340 [12:11:59]1040 (4) - 188241 [12:11:59]1012 (4) - 22.10.2024 06:04 [12:11:59]1206 (1) - 0 [12:11:59]OFD Sender: Remove packet 188241 [12:11:59]ProducePacketName [12:11:59]name=ofd_packets/00188241 [12:11:59]NVStorageDeleteData [12:11:59]OFD Sender: No OFD packet to send [12:12:00]*** Cut start [12:12:00]*** Partial cut [12:12:00]*** CUTSNS_PIN = 1 [12:12:00]*** CUTSNS_PIN = 0 [12:12:00]*** Brake cut motor [12:12:00]Read from MH i2c: 01 [12:12:00]MH_I2C_Read... [12:12:00]*** Stop cut motor [12:12:00]*** Cut end [12:12:00]Read from MH i2c: 01 07 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: 01 07 00 9D 53 00 00 00 00 00 FF 0F 05 [12:12:00]process_action close_receipt done [12:12:00]requested_data is exist [12:12:00]produce_requested_data [12:12:00]requested_item fm.sn is exist - process it [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 11 00 00 [12:12:00]Write to MH i2c: E2 08 00 9E 53 80 11 00 00 00 00 00 00 6B [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:12:00]Read from MH i2c: E2 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 17 00 [12:12:00]MH_I2C_Read... [12:12:00]Read from MH i2c: E2 17 00 9E 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [12:12:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:12:00]wFMCommunicate OK [12:12:00]requested_item fd.num is exist - process it [12:12:00]SAM_PROTO_GetFieldsCounters [12:12:00]wFMCommunicate request_size=4 [12:12:00]MH_SAM_APDU [12:12:00]CAPDU: 80 13 00 00 [12:12:00]Write to MH i2c: E2 08 00 9F 53 80 13 00 00 00 00 00 00 6E [12:12:00]Write i2c OK [12:12:00]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 62 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 62 00 9F 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 A2 [12:12:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0E 01 00 00 5E 04 04 00 0E 01 00 00 57 04 04 00 0F 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:12:01]wFMCommunicate OK [12:12:01]SAM_PROTO_GetFieldsCounters done [12:12:01]requested_item shift.num is exist - process it [12:12:01]requested_item shift.opened is exist - process it [12:12:01]req_shift_opened [12:12:01]FM_GetShiftState [12:12:01]SAM_PROTO_GetShiftState [12:12:01]wFMCommunicate request_size=4 [12:12:01]MH_SAM_APDU [12:12:01]CAPDU: 80 13 01 00 [12:12:01]Write to MH i2c: E2 08 00 A0 53 80 13 01 00 00 00 00 00 70 [12:12:01]Write i2c OK [12:12:01]MH_I2C_Read... [12:12:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:12:01]Read from MH i2c: E2 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 0E 00 [12:12:01]MH_I2C_Read... [12:12:01]Read from MH i2c: E2 0E 00 A0 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [12:12:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:12:01]wFMCommunicate OK [12:12:01]SAM_PROTO_GetShiftState done [12:12:01]FM_GetShiftState done [12:12:01]req_shift_opened done [12:12:01]requested_item shift.open_date is exist - process it [12:12:01]req_shift_open_date [12:12:01]req_shift_open_date done [12:12:01]produce_requested_data done [12:12:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188241,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:12:01]process_action_free close_receipt [12:12:01]json_value_free [12:12:01]json_value_free done [12:12:01]process_json_proto returns [12:12:01]Send response to host [12:12:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188241,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:12:01]free response buf [12:12:01]execute_script done [12:12:01]execute_script returns [12:12:01]free content buf [12:12:01]Sock 10.Close socket [12:12:01]Sock 10.Thread stoped [12:12:04]OFD Sender: No OFD packet to send [12:12:09]OFD Sender: No OFD packet to send [12:12:15]OFD Sender: No OFD packet to send [12:12:20]OFD Sender: No OFD packet to send [12:12:25]OFD Sender: No OFD packet to send [12:12:30]OFD Sender: No OFD packet to send [12:12:35]OFD Sender: No OFD packet to send [12:12:40]OFD Sender: No OFD packet to send [12:12:45]OFD Sender: No OFD packet to send [12:12:50]OFD Sender: No OFD packet to send [12:12:55]OFD Sender: No OFD packet to send [12:13:00]OFD Sender: No OFD packet to send [12:13:05]OFD Sender: No OFD packet to send [12:13:10]OFD Sender: No OFD packet to send [12:13:15]OFD Sender: No OFD packet to send [12:13:20]OFD Sender: No OFD packet to send [12:13:25]OFD Sender: No OFD packet to send [12:13:29]accept exits with 8 [12:13:29]New connection [12:13:29]New thread 3067198820 created [12:13:29]Thread 3067055460 joined [12:13:29]Waiting for new connection... [12:13:29] Sock 8.Parse request [12:13:29]Sock 8.Check first char [12:13:29]Sock 8.First char is OK [12:13:29]request: POST /json_proto HTTP/1.0 [12:13:29]Method: POST [12:13:29]URL: /json_proto [12:13:29]Method is POST - this is cgi request [12:13:29]url: /json_proto [12:13:29]query_string will be loaded in cgi processing [12:13:29]execute_cgi json_proto POST (null) [12:13:29]execute_cgi path=json_proto method=POST [12:13:29]POST find Content-Length [12:13:29]Host: 172.17.42.131:8080 [12:13:29]Content-Length: 769 [12:13:29]Content-Type: application/json [12:13:29] [12:13:29]POST finish read [12:13:29]Found Content-Length = 769 [12:13:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:29]execute_script... [12:13: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)210296", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:13:29]POST & json_proto [12:13:29]process_json_proto [12:13:29]json parsed OK: [12:13:29]protocol is kg_v1.0 [12:13:29]action value=close_receipt [12:13:29]process_action close_receipt [12:13:29]cmd_close_receipt [12:13:29]MH_GetDate [12:13:29]Write to MH i2c: F0 00 00 A1 53 E3 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: F0 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: F0 09 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: F0 09 00 A1 53 00 ED 96 17 67 A0 18 CA 66 D5 [12:13:29]GetLastDocTimeStamp 1729599120 [12:13:29]current date 1729599213 [12:13:29]FM_GetShiftState [12:13:29]SAM_PROTO_GetShiftState [12:13:29]wFMCommunicate request_size=4 [12:13:29]MH_SAM_APDU [12:13:29]CAPDU: 80 13 01 00 [12:13:29]Write to MH i2c: E2 08 00 A2 53 80 13 01 00 00 00 00 00 72 [12:13:29]Write i2c OK [12:13:29]MH_I2C_Read... [12:13:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:29]Read from MH i2c: E2 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 0E 00 [12:13:29]MH_I2C_Read... [12:13:29]Read from MH i2c: E2 0E 00 A2 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [12:13:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:13:29]wFMCommunicate OK [12:13:29]SAM_PROTO_GetShiftState done [12:13:29]FM_GetShiftState done [12:13:29]opened in 1729556094 [12:13:29]opened+sec_in_day 1729642494 [12:13:29]quantity*price = 100015 [12:13:29]sum+1 = 100017 [12:13:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 271 22.10.2024 12:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188242 ФПД: 55933868433261 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188242&fm=55933868433261&tin=02508201610067®Number=0000000000100030&sum=100016 [12:13:31]StoreToDocumentArchive [12:13:31]shift 461 fd 188242 [12:13:31]save to /storage/0461/doc_00188242 [12:13:31]save last doc name /storage/0461/doc_00188242 to /storage/kkm_last_doc_name [12:13:31]save OK [12:13:31]Clear old archive folders... [12:13:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:13:31]tlvbuf is 01CE8550 [12:13:31]SAM_PROTO_ClearQueue [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 09 00 00 [12:13:31]Write to MH i2c: E2 08 00 AF 53 80 09 00 00 00 00 00 00 74 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 AF 53 00 90 00 76 [12:13:31]RAPDU: 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_ClearQueue done [12:13:31]KKMCreateOFDPacket [12:13:31]OFDProtocolAddRootSTLVToBuf [12:13:31]FM_MakeSignedData [12:13:31]FM_MakeSignedData [12:13:31]SAM_PROTO_SignData [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 0D 01 02 [12:13:31]Write to MH i2c: E2 08 00 B0 53 80 0D 01 02 00 00 00 00 7C [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 B0 53 00 90 00 77 [12:13:31]RAPDU: 90 00 [12:13:31]wFMCommunicate OK [12:13:31]wFMCommunicate request_size=255 [12:13:31]MH_SAM_APDU [12:13: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 ED 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DF 02 00 35 04 06 00 32 [12:13:31]Write to MH i2c: E2 02 01 B1 53 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 ED 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DF 02 00 35 04 06 00 32 00 00 4D [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 B1 53 00 90 00 78 [12:13:31]RAPDU: 90 00 [12:13:31]wFMCommunicate OK [12:13:31]wFMCommunicate request_size=10 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 0D 02 02 05 DF 1E 5B DF 6D [12:13:31]Write to MH i2c: E2 0D 00 B2 53 80 0D 02 02 05 00 DF 1E 5B DF 6D 00 00 2D [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 03 00 B2 53 00 90 00 79 [12:13:31]RAPDU: 90 00 [12:13:31]wFMCommunicate OK [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 0D 03 02 [12:13:31]Write to MH i2c: E2 08 00 B3 53 80 0D 03 02 00 00 00 00 81 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0B 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 0B 00 B3 53 00 72 EB 18 D7 7C BD 6A 1C 90 00 8D [12:13:31]RAPDU: 72 EB 18 D7 7C BD 6A 1C 90 00 [12:13:31]wFMCommunicate OK [12:13:31]SAM_PROTO_SignData done [12:13:31]FM_MakeSignedData done [12:13:31]CreateOFDProtocolMessage [12:13:31]wFMCommunicate request_size=4 [12:13:31]MH_SAM_APDU [12:13:31]CAPDU: 80 11 00 00 [12:13:31]Write to MH i2c: E2 08 00 B4 53 80 11 00 00 00 00 00 00 81 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:31]Read from MH i2c: E2 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 17 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: E2 17 00 B4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [12:13:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:13:31]wFMCommunicate OK [12:13:31]CreateOFDProtocolMessage done [12:13:31]OFDSenderStorePacket 188242 [12:13:31]StoreOFDPacket docnum=188242 [12:13:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F F4 07 01 05 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 ED 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DF 02 00 35 04 06 00 32 DF 1E 5B DF 6D 72 EB 18 D7 7C BD 6A 1C [12:13:31]CheckFolder [12:13:31]dirname=/storage/ofd_packets [12:13:31]CheckFolder done [12:13:31]ProducePacketName [12:13:31]name=ofd_packets/00188242 [12:13:31]NVStorageSaveData ofd_packets/00188242 [12:13:31]File name is /storage/ofd_packets/00188242 [12:13:31]Write 301 bytes [12:13:31]NVStorageSaveData done [12:13:31]OFDSenderStorePacket done [12:13:31]KKMCreateOFDPacket done [12:13:31]NVStorageSaveData kkm_last_timestamp [12:13:31]File name is /storage/kkm_last_timestamp [12:13:31]Write 4 bytes [12:13:31]NVStorageSaveData done [12:13:31]ExternCall_PrintAddStr [12:13:31]wPrintStart [12:13:31]Write to MH i2c: 01 00 00 B5 53 08 [12:13:31]Write i2c OK [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: 01 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: 01 07 00 [12:13:31]MH_I2C_Read... [12:13:31]Read from MH i2c: 01 07 00 B5 53 00 00 00 00 00 FF 0F 1D [12:13:31]RasterBufferAndPrint [12:13:31]line Счет N : (1)210296 [12:13:31]line ИНН: 02508201610067 [12:13:31]line Контрольно-Кассовый Чек [12:13:31]line ПРОДАЖА [12:13:31]line ТРК (МРК, ГНК) : 32 [12:13:31]line Товар: 2710124130 [12:13:31]line Аи-92-К-3 [12:13:31]line 14.950 * 66.90 [12:13:31]line = 1000.16 [12:13:31]line НДС 12% НСП 1% [12:13:31]line > о реализуемом товаре [12:13:31]line ИТОГО: 1000.16 [12:13:31]line НСП 1% : 8.85 [12:13:31]line НДС 12% : 106.21 [12:13:31]line Наличными: 0.00 [12:13:31]line Безнал.: 1000.16 [12:13:31]line Место: АЗС № 86 "Партнер Нефть" [12:13:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:13:31]line СНО: Общий режим [12:13:31]line Чек 271 22.10.2024 12:13 [12:13:31]line Смена: 461 ФФД: 1.0 [12:13:31]line ЗНМ: 0300000155 [12:13:31]line РНМ: 0000000000100030 [12:13:31]line Версия ККМ: 001 [12:13:31]line Платежная система: Mbank [12:13:31]line ФМ: 0000000000965340 [12:13:31]line ФД: 188242 [12:13:31]line ФПД: 55933868433261 [12:13:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121333&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188242&fm=55933868433261&tin=02508201610067®Number=0000000000100030&sum=100016 [12:13:31]written 0, free lines is 4095 [12:13:31]OFD Sender: Processing packet 188242 [packets to send 1062, broken 1061] [12:13:31]ProducePacketName [12:13:31]name=ofd_packets/00188242 [12:13:31]OFD Sender: To server: pG, [12:13:31]CommunicateWithHost lk.salyk.kg:30040 [12:13:31]ConnectInit lk.salyk.kg [12:13:31]Connected sock=10 [12:13:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F F4 07 01 05 87 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 01 00 00 F4 03 04 00 ED 96 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 DF 02 00 35 04 06 00 32 DF 1E 5B DF 6D 72 EB 18 D7 7C BD 6A 1C [12:13:32]Write to MH i2c: 01 00 00 DE 53 31 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 07 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: 01 07 00 DE 53 00 00 00 00 00 9A 0C DE [12:13:32]RasterBufferAndPrint [12:13:32]line [12:13:32]line [12:13:32]line [12:13:32]line [12:13:32]line [12:13:32]written 0, free lines is 3231 [12:13:32]MH_Cut [12:13:32]Write to MH i2c: D1 01 00 E5 53 01 0A [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: D1 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: D1 01 00 [12:13:32]MH_I2C_Read... [12:13:32]Read from MH i2c: D1 01 00 E5 53 00 09 [12:13:32]Write to MH i2c: 01 00 00 E6 53 39 [12:13:32]Write i2c OK [12:13:32]MH_I2C_Read... [12:13:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 61 47 00 F8 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 39 36 35 33 34 30 10 04 04 00 52 DF 02 00 F4 03 04 00 DA 40 17 67 B6 04 01 00 00 B6 83 70 19 99 6D 74 70 [12:13:32]CommunicateWithHost err = 0 [12:13:32]CheckOFDResponse [12:13:32]1017 (14) - 77093643461234 [12:13:32]1041 (16) - 0000000000965340 [12:13:32]1040 (4) - 188242 [12:13:32]1012 (4) - 22.10.2024 06:06 [12:13:32]1206 (1) - 0 [12:13:32]OFD Sender: Remove packet 188242 [12:13:32]ProducePacketName [12:13:32]name=ofd_packets/00188242 [12:13:32]NVStorageDeleteData [12:13:32]OFD Sender: No OFD packet to send [12:13:33]*** Cut start [12:13:33]*** Partial cut [12:13:33]*** CUTSNS_PIN = 1 [12:13:33]*** CUTSNS_PIN = 0 [12:13:33]*** Brake cut motor [12:13:33]Read from MH i2c: 01 [12:13:33]MH_I2C_Read... [12:13:33]*** Stop cut motor [12:13:33]*** Cut end [12:13:33]Read from MH i2c: 01 07 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: 01 07 00 E6 53 00 00 00 00 00 FF 0F 4E [12:13:33]process_action close_receipt done [12:13:33]requested_data is exist [12:13:33]produce_requested_data [12:13:33]requested_item fm.sn is exist - process it [12:13:33]wFMCommunicate request_size=4 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 11 00 00 [12:13:33]Write to MH i2c: E2 08 00 E7 53 80 11 00 00 00 00 00 00 B4 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:13:33]Read from MH i2c: E2 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 17 00 [12:13:33]MH_I2C_Read... [12:13:33]Read from MH i2c: E2 17 00 E7 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [12:13:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:13:33]wFMCommunicate OK [12:13:33]requested_item fd.num is exist - process it [12:13:33]SAM_PROTO_GetFieldsCounters [12:13:33]wFMCommunicate request_size=4 [12:13:33]MH_SAM_APDU [12:13:33]CAPDU: 80 13 00 00 [12:13:33]Write to MH i2c: E2 08 00 E8 53 80 13 00 00 00 00 00 00 B7 [12:13:33]Write i2c OK [12:13:33]MH_I2C_Read... [12:13:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:13:34]Read from MH i2c: E2 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 62 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 62 00 E8 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 EF [12:13:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0F 01 00 00 5E 04 04 00 0F 01 00 00 57 04 04 00 10 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:13:34]wFMCommunicate OK [12:13:34]SAM_PROTO_GetFieldsCounters done [12:13:34]requested_item shift.num is exist - process it [12:13:34]requested_item shift.opened is exist - process it [12:13:34]req_shift_opened [12:13:34]FM_GetShiftState [12:13:34]SAM_PROTO_GetShiftState [12:13:34]wFMCommunicate request_size=4 [12:13:34]MH_SAM_APDU [12:13:34]CAPDU: 80 13 01 00 [12:13:34]Write to MH i2c: E2 08 00 E9 53 80 13 01 00 00 00 00 00 B9 [12:13:34]Write i2c OK [12:13:34]MH_I2C_Read... [12:13:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:13:34]Read from MH i2c: E2 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 0E 00 [12:13:34]MH_I2C_Read... [12:13:34]Read from MH i2c: E2 0E 00 E9 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AE [12:13:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:13:34]wFMCommunicate OK [12:13:34]SAM_PROTO_GetShiftState done [12:13:34]FM_GetShiftState done [12:13:34]req_shift_opened done [12:13:34]requested_item shift.open_date is exist - process it [12:13:34]req_shift_open_date [12:13:34]req_shift_open_date done [12:13:34]produce_requested_data done [12:13:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188242,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:13:34]process_action_free close_receipt [12:13:34]json_value_free [12:13:34]json_value_free done [12:13:34]process_json_proto returns [12:13:34]Send response to host [12:13:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188242,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:13:34]free response buf [12:13:34]execute_script done [12:13:34]execute_script returns [12:13:34]free content buf [12:13:34]Sock 8.Close socket [12:13:34]Sock 8.Thread stoped [12:13:37]OFD Sender: No OFD packet to send [12:13:42]OFD Sender: No OFD packet to send [12:13:47]OFD Sender: No OFD packet to send [12:13:52]OFD Sender: No OFD packet to send [12:13:57]OFD Sender: No OFD packet to send [12:14:03]OFD Sender: No OFD packet to send [12:14:08]OFD Sender: No OFD packet to send [12:14:13]OFD Sender: No OFD packet to send [12:14:18]OFD Sender: No OFD packet to send [12:14:23]OFD Sender: No OFD packet to send [12:14:28]OFD Sender: No OFD packet to send [12:14:31]accept exits with 9 [12:14:31]New connection [12:14:31]New thread 3067055460 created [12:14:31]Thread 3067198820 joined [12:14:31]Waiting for new connection... [12:14:31] Sock 9.Parse request [12:14:31]Sock 9.Check first char [12:14:31]Sock 9.First char is OK [12:14:31]request: POST /json_proto HTTP/1.0 [12:14:31]Method: POST [12:14:31]URL: /json_proto [12:14:31]Method is POST - this is cgi request [12:14:31]url: /json_proto [12:14:31]query_string will be loaded in cgi processing [12:14:31]execute_cgi json_proto POST (null) [12:14:31]execute_cgi path=json_proto method=POST [12:14:31]POST find Content-Length [12:14:31]Host: 172.17.42.131:8080 [12:14:31]Content-Length: 688 [12:14:31]Content-Type: application/json [12:14:31] [12:14:31]POST finish read [12:14:31]Found Content-Length = 688 [12:14:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:31]execute_script... [12:14: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)210297", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:14:31]POST & json_proto [12:14:31]process_json_proto [12:14:31]json parsed OK: [12:14:31]protocol is kg_v1.0 [12:14:31]action value=close_receipt [12:14:31]process_action close_receipt [12:14:31]cmd_close_receipt [12:14:31]MH_GetDate [12:14:31]Write to MH i2c: F0 00 00 EA 53 2C [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: F0 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: F0 09 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: F0 09 00 EA 53 00 2A 97 17 67 A0 18 CA 66 5C [12:14:31]GetLastDocTimeStamp 1729599213 [12:14:31]current date 1729599274 [12:14:31]FM_GetShiftState [12:14:31]SAM_PROTO_GetShiftState [12:14:31]wFMCommunicate request_size=4 [12:14:31]MH_SAM_APDU [12:14:31]CAPDU: 80 13 01 00 [12:14:31]Write to MH i2c: E2 08 00 EB 53 80 13 01 00 00 00 00 00 BB [12:14:31]Write i2c OK [12:14:31]MH_I2C_Read... [12:14:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:31]Read from MH i2c: E2 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 0E 00 [12:14:31]MH_I2C_Read... [12:14:31]Read from MH i2c: E2 0E 00 EB 53 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B0 [12:14:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:14:31]wFMCommunicate OK [12:14:31]SAM_PROTO_GetShiftState done [12:14:31]FM_GetShiftState done [12:14:31]opened in 1729556094 [12:14:31]opened+sec_in_day 1729642494 [12:14:31]quantity*price = 100051 [12:14:31]sum+1 = 100052 [12:14:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 272 22.10.2024 12:14 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188243 ФПД: 219621102816153 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121434&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188243&fm=219621102816153&tin=02508201610067®Number=0000000000100030&sum=100000 [12:14:32]StoreToDocumentArchive [12:14:32]shift 461 fd 188243 [12:14:32]save to /storage/0461/doc_00188243 [12:14:32]save last doc name /storage/0461/doc_00188243 to /storage/kkm_last_doc_name [12:14:32]save OK [12:14:32]Clear old archive folders... [12:14:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:14:32]tlvbuf is 01BACF40 [12:14:32]SAM_PROTO_ClearQueue [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 09 00 00 [12:14:32]Write to MH i2c: E2 08 00 F8 53 80 09 00 00 00 00 00 00 BD [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 F8 53 00 90 00 BF [12:14:32]RAPDU: 90 00 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_ClearQueue done [12:14:32]KKMCreateOFDPacket [12:14:32]OFDProtocolAddRootSTLVToBuf [12:14:32]FM_MakeSignedData [12:14:32]FM_MakeSignedData [12:14:32]SAM_PROTO_SignData [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 0D 01 02 [12:14:32]Write to MH i2c: E2 08 00 F9 53 80 0D 01 02 00 00 00 00 C5 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 F9 53 00 90 00 C0 [12:14:32]RAPDU: 90 00 [12:14:32]wFMCommunicate OK [12:14:32]wFMCommunicate request_size=255 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2A 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DF 02 [12:14:32]Write to MH i2c: E2 02 01 FA 53 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2A 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DF 02 00 00 74 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 FA 53 00 90 00 C1 [12:14:32]RAPDU: 90 00 [12:14:32]wFMCommunicate OK [12:14:32]wFMCommunicate request_size=16 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C7 BE 85 D1 8B 99 [12:14:32]Write to MH i2c: E2 13 00 FB 53 80 0D 02 02 0B 00 00 35 04 06 00 C7 BE 85 D1 8B 99 00 00 1C [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 03 00 FB 53 00 90 00 C2 [12:14:32]RAPDU: 90 00 [12:14:32]wFMCommunicate OK [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 0D 03 02 [12:14:32]Write to MH i2c: E2 08 00 FC 53 80 0D 03 02 00 00 00 00 CA [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0B 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 0B 00 FC 53 00 A6 14 1E 65 3D 8B 1D 72 90 00 5F [12:14:32]RAPDU: A6 14 1E 65 3D 8B 1D 72 90 00 [12:14:32]wFMCommunicate OK [12:14:32]SAM_PROTO_SignData done [12:14:32]FM_MakeSignedData done [12:14:32]CreateOFDProtocolMessage [12:14:32]wFMCommunicate request_size=4 [12:14:32]MH_SAM_APDU [12:14:32]CAPDU: 80 11 00 00 [12:14:32]Write to MH i2c: E2 08 00 FD 53 80 11 00 00 00 00 00 00 CA [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:32]Read from MH i2c: E2 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 17 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: E2 17 00 FD 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [12:14:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:14:32]wFMCommunicate OK [12:14:32]CreateOFDProtocolMessage done [12:14:32]OFDSenderStorePacket 188243 [12:14:32]StoreOFDPacket docnum=188243 [12:14:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 59 7D 0D 01 B5 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2A 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DF 02 00 35 04 06 00 C7 BE 85 D1 8B 99 A6 14 1E 65 3D 8B 1D 72 [12:14:32]CheckFolder [12:14:32]dirname=/storage/ofd_packets [12:14:32]CheckFolder done [12:14:32]ProducePacketName [12:14:32]name=ofd_packets/00188243 [12:14:32]NVStorageSaveData ofd_packets/00188243 [12:14:32]File name is /storage/ofd_packets/00188243 [12:14:32]Write 307 bytes [12:14:32]NVStorageSaveData done [12:14:32]OFDSenderStorePacket done [12:14:32]KKMCreateOFDPacket done [12:14:32]NVStorageSaveData kkm_last_timestamp [12:14:32]File name is /storage/kkm_last_timestamp [12:14:32]Write 4 bytes [12:14:32]NVStorageSaveData done [12:14:32]ExternCall_PrintAddStr [12:14:32]wPrintStart [12:14:32]Write to MH i2c: 01 00 00 FE 53 51 [12:14:32]Write i2c OK [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 [12:14:32]MH_I2C_Read... [12:14:32]Read from MH i2c: 01 07 00 FE 53 00 00 00 00 00 FF 0F 66 [12:14:32]RasterBufferAndPrint [12:14:32]line Счет N : (1)210297 [12:14:32]line ИНН: 02508201610067 [12:14:32]line Контрольно-Кассовый Чек [12:14:32]line ПРОДАЖА [12:14:32]line ТРК (МРК, ГНК) : 41 [12:14:32]line Товар: 2710194210 [12:14:32]line D-ENERGY ДТ-К-5 [12:14:32]line 12.960 * 77.20 [12:14:32]line = 1000.51 [12:14:32]line НДС 12% НСП 1% [12:14:32]line > о реализуемом товаре [12:14:32]line ОКРУГЛЕНИЕ: -0.51 [12:14:32]line ИТОГО: 1000.00 [12:14:32]line Внесено: 1000.00 [12:14:32]line СДАЧА: 0.00 [12:14:32]line НСП 1% : 8.85 [12:14:32]line НДС 12% : 106.25 [12:14:32]line Наличными: 1000.00 [12:14:32]line Безнал.: 0.00 [12:14:32]line Место: АЗС № 86 "Партнер Нефть" [12:14:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:14:32]line СНО: Общий режим [12:14:32]line Чек 272 22.10.2024 12:14 [12:14:32]line Смена: 461 ФФД: 1.0 [12:14:32]line ЗНМ: 0300000155 [12:14:32]line РНМ: 0000000000100030 [12:14:32]line Версия ККМ: 001 [12:14:32]line ФМ: 0000000000965340 [12:14:32]line ФД: 188243 [12:14:32]line ФПД: 219621102816153 [12:14:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121434&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188243&fm=219621102816153&tin=02508201610067®Number=0000000000100030&sum=100000 [12:14:33]written 0, free lines is 4095 [12:14:33]OFD Sender: Processing packet 188243 [packets to send 1062, broken 1061] [12:14:33]ProducePacketName [12:14:33]name=ofd_packets/00188243 [12:14:33]OFD Sender: To server: pG, [12:14:33]CommunicateWithHost lk.salyk.kg:30040 [12:14:33]ConnectInit lk.salyk.kg [12:14:33]Connected sock=10 [12:14:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 59 7D 0D 01 B5 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 2A 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 DF 02 00 35 04 06 00 C7 BE 85 D1 8B 99 A6 14 1E 65 3D 8B 1D 72 [12:14:33]Write to MH i2c: 01 00 00 29 54 7D [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 07 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: 01 07 00 29 54 00 00 00 00 00 73 0C 03 [12:14:33]RasterBufferAndPrint [12:14:33]line [12:14:33]line [12:14:33]line [12:14:33]line [12:14:33]line [12:14:33]written 0, free lines is 3190 [12:14:33]MH_Cut [12:14:33]Write to MH i2c: D1 01 00 30 54 01 56 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: D1 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: D1 01 00 [12:14:33]MH_I2C_Read... [12:14:33]Read from MH i2c: D1 01 00 30 54 00 55 [12:14:33]Write to MH i2c: 01 00 00 31 54 85 [12:14:33]Write i2c OK [12:14:33]MH_I2C_Read... [12:14:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 C5 47 00 68 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 39 36 35 33 34 30 10 04 04 00 53 DF 02 00 F4 03 04 00 17 41 17 67 B6 04 01 00 00 E8 F5 AE 9D 1B F3 1F 81 [12:14:33]CommunicateWithHost err = 0 [12:14:33]CheckOFDResponse [12:14:33]1017 (14) - 77093643461234 [12:14:33]1041 (16) - 0000000000965340 [12:14:33]1040 (4) - 188243 [12:14:33]1012 (4) - 22.10.2024 06:07 [12:14:33]1206 (1) - 0 [12:14:33]OFD Sender: Remove packet 188243 [12:14:33]ProducePacketName [12:14:33]name=ofd_packets/00188243 [12:14:33]NVStorageDeleteData [12:14:34]OFD Sender: No OFD packet to send [12:14:34]*** Cut start [12:14:34]*** Partial cut [12:14:34]*** CUTSNS_PIN = 1 [12:14:34]*** CUTSNS_PIN = 0 [12:14:34]*** Brake cut motor [12:14:35]Read from MH i2c: 01 [12:14:35]MH_I2C_Read... [12:14:35]*** Stop cut motor [12:14:35]*** Cut end [12:14:35]Read from MH i2c: 01 07 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: 01 07 00 31 54 00 00 00 00 00 FF 0F 9A [12:14:35]process_action close_receipt done [12:14:35]requested_data is exist [12:14:35]produce_requested_data [12:14:35]requested_item fm.sn is exist - process it [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 11 00 00 [12:14:35]Write to MH i2c: E2 08 00 32 54 80 11 00 00 00 00 00 00 00 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 17 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 17 00 32 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [12:14:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:14:35]wFMCommunicate OK [12:14:35]requested_item fd.num is exist - process it [12:14:35]SAM_PROTO_GetFieldsCounters [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 00 00 [12:14:35]Write to MH i2c: E2 08 00 33 54 80 13 00 00 00 00 00 00 03 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 62 00 33 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 3F [12:14:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 10 01 00 00 5E 04 04 00 10 01 00 00 57 04 04 00 11 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetFieldsCounters done [12:14:35]requested_item shift.num is exist - process it [12:14:35]requested_item shift.opened is exist - process it [12:14:35]req_shift_opened [12:14:35]FM_GetShiftState [12:14:35]SAM_PROTO_GetShiftState [12:14:35]wFMCommunicate request_size=4 [12:14:35]MH_SAM_APDU [12:14:35]CAPDU: 80 13 01 00 [12:14:35]Write to MH i2c: E2 08 00 34 54 80 13 01 00 00 00 00 00 05 [12:14:35]Write i2c OK [12:14:35]MH_I2C_Read... [12:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:14:35]Read from MH i2c: E2 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 [12:14:35]MH_I2C_Read... [12:14:35]Read from MH i2c: E2 0E 00 34 54 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FA [12:14:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:14:35]wFMCommunicate OK [12:14:35]SAM_PROTO_GetShiftState done [12:14:35]FM_GetShiftState done [12:14:35]req_shift_opened done [12:14:35]requested_item shift.open_date is exist - process it [12:14:35]req_shift_open_date [12:14:35]req_shift_open_date done [12:14:35]produce_requested_data done [12:14:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188243,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:14:35]process_action_free close_receipt [12:14:35]json_value_free [12:14:35]json_value_free done [12:14:35]process_json_proto returns [12:14:35]Send response to host [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]/dev/ttyS4 opened [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]*** [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725DF (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 5078786+1724520608=1729599394 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 00 00 00 00 FF 0F 19 [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 6E 00 38 00 FF FF 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 A2 97 17 67 A0 18 CA 66 9E [12:16:34]Current date/time: 22.10.2024 12:16 [12:16:34]FM_Init [12:16:34]wFMConnect [12:16:34]MH_SAM_On [12:16:34]Write to MH i2c: E0 00 00 08 00 E7 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_init finished! [12:16:34]*** atr: [12:16:34]*** 0F 3B D5 18 FF 81 91 FE [12:16:34]*** 1F C3 80 73 C8 21 10 0A [12:16:34]*** 00 00 00 00 00 00 00 00 [12:16:34]*** 00 00 00 00 00 00 00 00 [12:16:34]*** 00 00 00 00 00 00 00 00 [12:16:34]*** 00 00 00 00 00 00 00 00 [12:16:34]*** 00 00 00 00 00 00 00 00 [12:16:34]*** 00 00 00 00 00 00 00 00 [12:16:34]Read from MH i2c: E0 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E0 10 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [12:16:34]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [12:16:34]wFMCommunicate request_size=10 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [12:16:34]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 11 00 00 [12:16:34]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [12:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:16:34]wFMCommunicate OK [12:16:34]Detected FM SN is 0000000000965340 [12:16:34]Stored FM SN is 0000000000965340 [12:16:34]wFMCommunicate request_size=9 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 16 00 00 04 28 0B 00 00 [12:16:34]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 28 0B 00 00 00 00 C5 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]FM PIN OK [12:16:34]wFMCommunicate request_size=8 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 14 04 00 03 02 00 01 [12:16:34]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]wFMCommunicate request_size=13 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [12:16:34]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [12:16:34]RAPDU: 90 00 [12:16:34]wFMCommunicate OK [12:16:34]wFMCommunicate request_size=4 [12:16:34]MH_SAM_APDU [12:16:34]CAPDU: 80 11 00 00 [12:16:34]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:34]Read from MH i2c: E2 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [12:16:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:16:34]wFMCommunicate OK [12:16:34]DocumentArchiveInit [12:16:34]Start Httpd... [12:16:34]Httpd thread 3067346276 created [12:16:34]Write to MH i2c: 01 00 00 0F 00 0F [12:16:34]Write i2c OK [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 [12:16:34]MH_I2C_Read... [12:16:34]Read from MH i2c: 01 07 00 0F 00 00 00 00 00 00 FF 0F 24 [12:16:34]MH Int Process started [12:16:34]Allocated Socket 8 [12:16:34]Bind OK [12:16:34]Listen OK [12:16:34]httpd running on port 8080 [12:16:34]Waiting for new connection... [12:16:35]OFD Sender: Processing packet 188244 [packets to send 1062, broken 1061] [12:16:35]ProducePacketName [12:16:35]name=ofd_packets/00188244 [12:16:35]OFD Sender: To server: pG, [12:16:35]CommunicateWithHost lk.salyk.kg:30040 [12:16:35]ConnectInit lk.salyk.kg [12:16:36]Connected sock=6 [12:16:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AE 31 0D 01 FD 6B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 01 00 00 F4 03 04 00 37 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 DF 02 00 35 04 06 00 D1 91 51 B3 55 6B FB 31 75 EF 19 19 8B B8 [12:16:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0C 4F 47 00 85 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 39 36 35 33 34 30 10 04 04 00 54 DF 02 00 F4 03 04 00 90 41 17 67 B6 04 01 00 00 13 D9 03 98 BC 64 75 B4 [12:16:36]CommunicateWithHost err = 0 [12:16:36]CheckOFDResponse [12:16:36]1017 (14) - 77093643461234 [12:16:36]1041 (16) - 0000000000965340 [12:16:36]1040 (4) - 188244 [12:16:36]1012 (4) - 22.10.2024 06:09 [12:16:36]1206 (1) - 0 [12:16:36]OFD Sender: Remove packet 188244 [12:16:36]ProducePacketName [12:16:36]name=ofd_packets/00188244 [12:16:36]NVStorageDeleteData [12:16:36]accept exits with 9 [12:16:36]New connection [12:16:36]New thread 3067059556 created [12:16:36]Waiting for new connection... [12:16:36] Sock 9.Parse request [12:16:36]Sock 9.Check first char [12:16:36]Sock 9.First char is OK [12:16:36]request: POST /json_proto HTTP/1.0 [12:16:36]Method: POST [12:16:36]URL: /json_proto [12:16:36]Method is POST - this is cgi request [12:16:36]url: /json_proto [12:16:36]query_string will be loaded in cgi processing [12:16:36]execute_cgi json_proto POST (null) [12:16:36]execute_cgi path=json_proto method=POST [12:16:36]POST find Content-Length [12:16:36]Host: 172.17.42.131:8080 [12:16:36]Content-Length: 215 [12:16:36]Content-Type: application/json [12:16:36] [12:16:36]POST finish read [12:16:36]Found Content-Length = 215 [12:16:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:36]execute_script... [12:16:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:16:36]POST & json_proto [12:16:36]process_json_proto [12:16:36]json parsed OK: [12:16:36]protocol is kg_v1.0 [12:16:36]action value=get_value [12:16:36]process_action get_value [12:16:36]cmd_get_value [12:16:36]process_action get_value done [12:16:36]requested_data is exist [12:16:36]produce_requested_data [12:16:36]requested_item kkm.sn is exist - process it [12:16:36]requested_item kkm.ver is exist - process it [12:16:36]requested_item fm.sn is exist - process it [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 11 00 00 [12:16:36]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:16:36]Read from MH i2c: E2 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 17 00 [12:16:36]MH_I2C_Read... [12:16:36]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [12:16:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:16:36]wFMCommunicate OK [12:16:36]requested_item fd.num is exist - process it [12:16:36]SAM_PROTO_GetFieldsCounters [12:16:36]wFMCommunicate request_size=4 [12:16:36]MH_SAM_APDU [12:16:36]CAPDU: 80 13 00 00 [12:16:36]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [12:16:36]Write i2c OK [12:16:36]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 62 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [12:16:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 11 01 00 00 5E 04 04 00 11 01 00 00 57 04 04 00 12 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:16:37]wFMCommunicate OK [12:16:37]SAM_PROTO_GetFieldsCounters done [12:16:37]requested_item shift.num is exist - process it [12:16:37]requested_item shift.opened is exist - process it [12:16:37]req_shift_opened [12:16:37]FM_GetShiftState [12:16:37]SAM_PROTO_GetShiftState [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 13 01 00 [12:16:37]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [12:16:37]OFD Sender: No OFD packet to send [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 0E 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [12:16:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:16:37]wFMCommunicate OK [12:16:37]SAM_PROTO_GetShiftState done [12:16:37]FM_GetShiftState done [12:16:37]req_shift_opened done [12:16:37]requested_item shift.open_date is exist - process it [12:16:37]req_shift_open_date [12:16:37]req_shift_open_date done [12:16:37]produce_requested_data done [12:16:37]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188244,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:16:37]process_action_free get_value [12:16:37]json_value_free [12:16:37]json_value_free done [12:16:37]process_json_proto returns [12:16:37]Send response to host [12:16:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188244,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:16:37]free response buf [12:16:37]execute_script done [12:16:37]execute_script returns [12:16:37]free content buf [12:16:37]Sock 9.Close socket [12:16:37]Sock 9.Thread stoped [12:16:37]accept exits with 6 [12:16:37]New connection [12:16:37]New thread 3066916196 created [12:16:37]Thread 3067059556 joined [12:16:37]Waiting for new connection... [12:16:37] Sock 6.Parse request [12:16:37]Sock 6.Check first char [12:16:37]Sock 6.First char is OK [12:16:37]request: POST /json_proto HTTP/1.0 [12:16:37]Method: POST [12:16:37]URL: /json_proto [12:16:37]Method is POST - this is cgi request [12:16:37]url: /json_proto [12:16:37]query_string will be loaded in cgi processing [12:16:37]execute_cgi json_proto POST (null) [12:16:37]execute_cgi path=json_proto method=POST [12:16:37]POST find Content-Length [12:16:37]Host: 172.17.42.131:8080 [12:16:37]Content-Length: 331 [12:16:37]Content-Type: application/json [12:16:37] [12:16:37]POST finish read [12:16:37]Found Content-Length = 331 [12:16:37]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" ] } } [12:16:37]execute_script... [12:16:37]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" ] } } [12:16:37]POST & json_proto [12:16:37]process_json_proto [12:16:37]json parsed OK: [12:16:37]protocol is kg_v1.0 [12:16:37]action value=get_value [12:16:37]process_action get_value [12:16:37]cmd_get_value [12:16:37]process_action get_value done [12:16:37]requested_data is exist [12:16:37]produce_requested_data [12:16:37]requested_item fm.sale.total is exist - process it [12:16:37]SAM_PROTO_GetFMData [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 13 03 00 [12:16:37]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 FD 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 BA DB 02 00 69 04 A4 00 6F 04 04 00 2B DB 02 00 B1 04 05 00 13 17 24 BA 06 70 04 05 00 30 CA EC A0 04 72 04 05 00 E3 4C 37 19 02 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 3A BB EA B6 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 82 00 3E 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 D6 [12:16:37]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 BA DB 02 00 69 04 A4 00 6F 04 04 00 2B DB 02 00 B1 04 05 00 13 17 24 BA 06 70 04 05 00 30 CA EC A0 04 72 04 05 00 E3 4C 37 19 02 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 3A BB EA B6 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 82 00 3E 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [12:16:37]wFMCommunicate OK [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 17 00 00 [12:16:37]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:37]Read from MH i2c: E2 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 FD 00 [12:16:37]MH_I2C_Read... [12:16:37]Read from MH i2c: E2 FD 00 14 00 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 61 [12:16:37]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [12:16:37]wFMCommunicate OK [12:16:37]wFMCommunicate request_size=4 [12:16:37]MH_SAM_APDU [12:16:37]CAPDU: 80 17 00 00 [12:16:37]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [12:16:37]Write i2c OK [12:16:37]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 FD 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [12:16:38]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:38]wFMCommunicate OK [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 17 00 00 [12:16:38]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 FD 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [12:16:38]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:38]wFMCommunicate OK [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 17 00 00 [12:16:38]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [12:16:38]Read from MH i2c: E2 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 E8 00 [12:16:38]MH_I2C_Read... [12:16:38]Read from MH i2c: E2 E8 00 17 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [12:16:38]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:16:38]wFMCommunicate OK [12:16:38]SAM_PROTO_GetFMData done [12:16:38]requested_item fm.sale_refund.total is exist - process it [12:16:38]requested_item fm.buy.total is exist - process it [12:16:38]requested_item shift.sale.total is exist - process it [12:16:38]SAM_PROTO_GetShiftData [12:16:38]wFMCommunicate request_size=4 [12:16:38]MH_SAM_APDU [12:16:38]CAPDU: 80 13 02 00 [12:16:38]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [12:16:38]Write i2c OK [12:16:38]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 FD 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 11 01 00 00 69 04 9E 00 6F 04 04 00 11 01 00 00 B1 04 04 00 74 E2 24 02 70 04 04 00 64 F7 CF 01 72 04 03 00 10 EB 54 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 15 4D 3A 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 AE DB 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 B0 [12:16:39]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 11 01 00 00 69 04 9E 00 6F 04 04 00 11 01 00 00 B1 04 04 00 74 E2 24 02 70 04 04 00 64 F7 CF 01 72 04 03 00 10 EB 54 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 15 4D 3A 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 AE DB 04 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [12:16:39]wFMCommunicate OK [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 17 00 00 [12:16:39]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 FD 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [12:16:39]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:39]wFMCommunicate OK [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 17 00 00 [12:16:39]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:39]Read from MH i2c: E2 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 FD 00 [12:16:39]MH_I2C_Read... [12:16:39]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [12:16:39]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [12:16:39]wFMCommunicate OK [12:16:39]wFMCommunicate request_size=4 [12:16:39]MH_SAM_APDU [12:16:39]CAPDU: 80 17 00 00 [12:16:39]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [12:16:39]Write i2c OK [12:16:39]MH_I2C_Read... [12:16:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 FD 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [12:16:40]RAPDU: 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 90 00 [12:16:40]wFMCommunicate OK [12:16:40]wFMCommunicate request_size=4 [12:16:40]MH_SAM_APDU [12:16:40]CAPDU: 80 17 00 00 [12:16:40]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [12:16:40]Read from MH i2c: E2 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 CE 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [12:16:40]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [12:16:40]wFMCommunicate OK [12:16:40]SAM_PROTO_GetShiftData done [12:16:40]requested_item shift.sale.total_cash is exist - process it [12:16:40]requested_item shift.sale_refund.total is exist - process it [12:16:40]requested_item shift.sale_refund.total_cash is exist - process it [12:16:40]requested_item shift.buy.total is exist - process it [12:16:40]requested_item shift.buy.total_cash is exist - process it [12:16:40]produce_requested_data done [12:16:40]produce_requested_data return {"fm.sale.total":288927311.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":359717.00,"shift.sale.total_cash":304065.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [12:16:40]process_action_free get_value [12:16:40]json_value_free [12:16:40]json_value_free done [12:16:40]process_json_proto returns [12:16:40]Send response to host [12:16:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":288927311.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":359717.00,"shift.sale.total_cash":304065.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [12:16:40]free response buf [12:16:40]execute_script done [12:16:40]execute_script returns [12:16:40]free content buf [12:16:40]Sock 6.Close socket [12:16:40]Sock 6.Thread stoped [12:16:40]accept exits with 9 [12:16:40]New connection [12:16:40]New thread 3067059556 created [12:16:40]Thread 3066916196 joined [12:16:40]Waiting for new connection... [12:16:40] Sock 9.Parse request [12:16:40]Sock 9.Check first char [12:16:40]Sock 9.First char is OK [12:16:40]request: POST /json_proto HTTP/1.0 [12:16:40]Method: POST [12:16:40]URL: /json_proto [12:16:40]Method is POST - this is cgi request [12:16:40]url: /json_proto [12:16:40]query_string will be loaded in cgi processing [12:16:40]execute_cgi json_proto POST (null) [12:16:40]execute_cgi path=json_proto method=POST [12:16:40]POST find Content-Length [12:16:40]Host: 172.17.42.131:8080 [12:16:40]Content-Length: 144 [12:16:40]Content-Type: application/json [12:16:40] [12:16:40]POST finish read [12:16:40]Found Content-Length = 144 [12:16:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:16:40]execute_script... [12:16:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [12:16:40]POST & json_proto [12:16:40]process_json_proto [12:16:40]json parsed OK: [12:16:40]protocol is kg_v1.0 [12:16:40]action value=print_doc [12:16:40]process_action print_doc [12:16:40]ExternCall_PrintAddStr [12:16:40]wPrintStart [12:16:40]Write to MH i2c: 01 00 00 1D 00 1D [12:16:40]Write i2c OK [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 [12:16:40]MH_I2C_Read... [12:16:40]Read from MH i2c: 01 07 00 1D 00 00 00 00 00 00 FF 0F 32 [12:16:40]RasterBufferAndPrint [12:16:40]line Счет N : (1)210295 [12:16:40]line ИНН: 02508201610067 [12:16:40]line Контрольно-Кассовый Чек [12:16:40]line ПРОДАЖА [12:16:40]line ТРК (МРК, ГНК) : 11 [12:16:40]line Товар: 2710194210 [12:16:40]line D-ENERGY ДТ-К-5 [12:16:40]line 38.870 * 77.20 [12:16:40]line = 3000.76 [12:16:40]line НДС 12% НСП 1% [12:16:40]line > о реализуемом товаре [12:16:40]line ОКРУГЛЕНИЕ: -0.76 [12:16:40]line ИТОГО: 3000.00 [12:16:40]line Внесено: 3000.00 [12:16:40]line СДАЧА: 0.00 [12:16:40]line НСП 1% : 26.55 [12:16:40]line НДС 12% : 318.66 [12:16:40]line Наличными: 3000.00 [12:16:40]line Безнал.: 0.00 [12:16:40]line Место: АЗС № 86 "Партнер Нефть" [12:16:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:16:40]line СНО: Общий режим [12:16:40]line Чек 273 22.10.2024 12:14 [12:16:40]line Смена: 461 ФФД: 1.0 [12:16:40]line ЗНМ: 0300000155 [12:16:40]line РНМ: 0000000000100030 [12:16:40]line Версия ККМ: 001 [12:16:40]line ФМ: 0000000000965340 [12:16:40]line ФД: 188244 [12:16:40]line ФПД: 230422071170411 [12:16:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188244&fm=230422071170411&tin=02508201610067®Number=0000000000100030&sum=300000 [12:16:40]written 0, free lines is 4095 [12:16:41]Write to MH i2c: 01 00 00 48 00 48 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 07 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: 01 07 00 48 00 00 00 00 00 00 82 0C DD [12:16:41]RasterBufferAndPrint [12:16:41]line [12:16:41]line [12:16:41]line [12:16:41]line [12:16:41]line [12:16:41]written 0, free lines is 3220 [12:16:41]MH_Cut [12:16:41]Write to MH i2c: D1 01 00 4F 00 01 21 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: D1 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: D1 01 00 [12:16:41]MH_I2C_Read... [12:16:41]Read from MH i2c: D1 01 00 4F 00 00 20 [12:16:41]Write to MH i2c: 01 00 00 50 00 50 [12:16:41]Write i2c OK [12:16:41]MH_I2C_Read... [12:16:42]*** Cut start [12:16:42]*** Partial cut [12:16:42]*** CUTSNS_PIN = 1 [12:16:42]OFD Sender: No OFD packet to send [12:16:42]*** CUTSNS_PIN = 0 [12:16:42]*** Brake cut motor [12:16:42]Read from MH i2c: 01 *** Stop cut motor [12:16:42] [12:16:42]*** Cut end [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: 01 07 00 [12:16:42]MH_I2C_Read... [12:16:42]Read from MH i2c: 01 07 00 50 00 00 00 00 00 00 FF 0F 65 [12:16:42]process_action print_doc done [12:16:42]requested_data is exist [12:16:42]produce_requested_data [12:16:42]produce_requested_data return (null) [12:16:42]process_action_free print_doc [12:16:42]json_value_free [12:16:42]json_value_free done [12:16:42]process_json_proto returns [12:16:42]Send response to host [12:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK"}} [12:16:42]free response buf [12:16:42]execute_script done [12:16:42]execute_script returns [12:16:42]free content buf [12:16:42]Sock 9.Close socket [12:16:42]Sock 9.Thread stoped [12:16:47]OFD Sender: No OFD packet to send [12:16:52]OFD Sender: No OFD packet to send [12:16:57]OFD Sender: No OFD packet to send [12:17:02]OFD Sender: No OFD packet to send [12:17:07]OFD Sender: No OFD packet to send [12:17:12]OFD Sender: No OFD packet to send [12:17:17]OFD Sender: No OFD packet to send [12:17:22]OFD Sender: No OFD packet to send [12:17:27]OFD Sender: No OFD packet to send [12:17:32]OFD Sender: No OFD packet to send [12:17:37]OFD Sender: No OFD packet to send [12:17:42]OFD Sender: No OFD packet to send [12:17:44]accept exits with 6 [12:17:44]New connection [12:17:44]New thread 3066916196 created [12:17:44]Thread 3067059556 joined [12:17:44]Waiting for new connection... [12:17:44] Sock 6.Parse request [12:17:44]Sock 6.Check first char [12:17:44]Sock 6.First char is OK [12:17:44]request: POST /json_proto HTTP/1.0 [12:17:44]Method: POST [12:17:44]URL: /json_proto [12:17:44]Method is POST - this is cgi request [12:17:44]url: /json_proto [12:17:44]query_string will be loaded in cgi processing [12:17:44]execute_cgi json_proto POST (null) [12:17:44]execute_cgi path=json_proto method=POST [12:17:44]POST find Content-Length [12:17:44]Host: 172.17.42.131:8080 [12:17:44]Content-Length: 799 [12:17:44]Content-Type: application/json [12:17:44] [12:17:44]POST finish read [12:17:44]Found Content-Length = 799 [12:17:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 6.780, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949373", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:44]execute_script... [12:17: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)210299", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 6.780, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A3949373", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:17:44]POST & json_proto [12:17:44]process_json_proto [12:17:44]json parsed OK: [12:17:44]protocol is kg_v1.0 [12:17:44]action value=close_receipt [12:17:44]process_action close_receipt [12:17:44]cmd_close_receipt [12:17:44]MH_GetDate [12:17:44]Write to MH i2c: F0 00 00 51 00 40 [12:17:44]Write i2c OK [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: F0 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: F0 09 00 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: F0 09 00 51 00 00 E9 97 17 67 A0 18 CA 66 2F [12:17:44]GetLastDocTimeStamp 1729599287 [12:17:44]current date 1729599465 [12:17:44]FM_GetShiftState [12:17:44]SAM_PROTO_GetShiftState [12:17:44]wFMCommunicate request_size=4 [12:17:44]MH_SAM_APDU [12:17:44]CAPDU: 80 13 01 00 [12:17:44]Write to MH i2c: E2 08 00 52 00 80 13 01 00 00 00 00 00 CF [12:17:44]Write i2c OK [12:17:44]MH_I2C_Read... [12:17:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:44]Read from MH i2c: E2 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: E2 0E 00 [12:17:44]MH_I2C_Read... [12:17:44]Read from MH i2c: E2 0E 00 52 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C4 [12:17:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:17:44]wFMCommunicate OK [12:17:44]SAM_PROTO_GetShiftState done [12:17:44]FM_GetShiftState done [12:17:44]opened in 1729556094 [12:17:44]opened+sec_in_day 1729642494 [12:17:44]quantity*price = 0 [12:17:44]sum+1 = 1 [12:17:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 274 22.10.2024 12:17 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 3949373 ФМ: 0000000000965340 ФД: 188245 ФПД: 247534511172985 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188245&fm=247534511172985&tin=02508201610067®Number=0000000000100030&sum=0 [12:17:45]StoreToDocumentArchive [12:17:45]shift 461 fd 188245 [12:17:45]save to /storage/0461/doc_00188245 [12:17:45]save last doc name /storage/0461/doc_00188245 to /storage/kkm_last_doc_name [12:17:45]save OK [12:17:45]Clear old archive folders... [12:17:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:17:45]tlvbuf is 01DF0370 [12:17:45]SAM_PROTO_ClearQueue [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 09 00 00 [12:17:45]Write to MH i2c: E2 08 00 5F 00 80 09 00 00 00 00 00 00 D1 [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:17:45]Read from MH i2c: E2 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 03 00 [12:17:45]MH_I2C_Read... [12:17:45]Read from MH i2c: E2 03 00 5F 00 00 90 00 D3 [12:17:45]RAPDU: 90 00 [12:17:45]wFMCommunicate OK [12:17:45]SAM_PROTO_ClearQueue done [12:17:45]KKMCreateOFDPacket [12:17:45]OFDProtocolAddRootSTLVToBuf [12:17:45]FM_MakeSignedData [12:17:45]FM_MakeSignedData [12:17:45]SAM_PROTO_SignData [12:17:45]wFMCommunicate request_size=4 [12:17:45]MH_SAM_APDU [12:17:45]CAPDU: 80 0D 01 02 [12:17:45]Write to MH i2c: E2 08 00 60 00 80 0D 01 02 00 00 00 00 D9 [12:17:45]Write i2c OK [12:17:45]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 60 00 00 90 00 D4 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=255 [12:17:46]MH_SAM_APDU [12:17: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 33 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DF 02 00 35 04 06 00 E1 [12:17:46]Write to MH i2c: E2 02 01 61 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DF 02 00 35 04 06 00 E1 00 00 53 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 61 00 00 90 00 D5 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=10 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 02 02 05 21 9E 9B AD 79 [12:17:46]Write to MH i2c: E2 0D 00 62 00 80 0D 02 02 05 00 21 9E 9B AD 79 00 00 66 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 03 00 62 00 00 90 00 D6 [12:17:46]RAPDU: 90 00 [12:17:46]wFMCommunicate OK [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 0D 03 02 [12:17:46]Write to MH i2c: E2 08 00 63 00 80 0D 03 02 00 00 00 00 DE [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0B 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 0B 00 63 00 00 53 68 54 82 A0 8B D4 84 90 00 F3 [12:17:46]RAPDU: 53 68 54 82 A0 8B D4 84 90 00 [12:17:46]wFMCommunicate OK [12:17:46]SAM_PROTO_SignData done [12:17:46]FM_MakeSignedData done [12:17:46]CreateOFDProtocolMessage [12:17:46]wFMCommunicate request_size=4 [12:17:46]MH_SAM_APDU [12:17:46]CAPDU: 80 11 00 00 [12:17:46]Write to MH i2c: E2 08 00 64 00 80 11 00 00 00 00 00 00 DE [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:46]Read from MH i2c: E2 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 17 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: E2 17 00 64 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [12:17:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:17:46]wFMCommunicate OK [12:17:46]CreateOFDProtocolMessage done [12:17:46]OFDSenderStorePacket 188245 [12:17:46]StoreOFDPacket docnum=188245 [12:17:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F BF 07 01 09 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DF 02 00 35 04 06 00 E1 21 9E 9B AD 79 53 68 54 82 A0 8B D4 84 [12:17:46]CheckFolder [12:17:46]dirname=/storage/ofd_packets [12:17:46]CheckFolder done [12:17:46]ProducePacketName [12:17:46]name=ofd_packets/00188245 [12:17:46]NVStorageSaveData ofd_packets/00188245 [12:17:46]File name is /storage/ofd_packets/00188245 [12:17:46]Write 301 bytes [12:17:46]NVStorageSaveData done [12:17:46]OFDSenderStorePacket done [12:17:46]KKMCreateOFDPacket done [12:17:46]NVStorageSaveData kkm_last_timestamp [12:17:46]File name is /storage/kkm_last_timestamp [12:17:46]Write 4 bytes [12:17:46]NVStorageSaveData done [12:17:46]ExternCall_PrintAddStr [12:17:46]wPrintStart [12:17:46]Write to MH i2c: 01 00 00 65 00 65 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 07 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 07 00 65 00 00 00 00 00 00 FF 0F 7A [12:17:46]RasterBufferAndPrint [12:17:46]line Счет N : (1)210299 [12:17:46]line ИНН: 02508201610067 [12:17:46]line Контрольно-Кассовый Чек [12:17:46]line ПРОДАЖА [12:17:46]line ТРК (МРК, ГНК) : 22 [12:17:46]line Товар: 2710124130 [12:17:46]line Аи-92-К-3 [12:17:46]line 6.780 * 0.00 [12:17:46]line = 0.00 [12:17:46]line НДС 12% НСП 1% [12:17:46]line > о реализуемом товаре [12:17:46]line ИТОГО: 0.00 [12:17:46]line НСП 1% : 0.00 [12:17:46]line НДС 12% : 0.00 [12:17:46]line Наличными: 0.00 [12:17:46]line Безнал.: 0.00 [12:17:46]line Место: АЗС № 86 "Партнер Нефть" [12:17:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:17:46]line СНО: Общий режим [12:17:46]line Чек 274 22.10.2024 12:17 [12:17:46]line Смена: 461 ФФД: 1.0 [12:17:46]line ЗНМ: 0300000155 [12:17:46]line РНМ: 0000000000100030 [12:17:46]line Версия ККМ: 001 [12:17:46]line Талоны: Топливные Талоны [12:17:46]line 3949373 [12:17:46]line ФМ: 0000000000965340 [12:17:46]line ФД: 188245 [12:17:46]line ФПД: 247534511172985 [12:17:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121745&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188245&fm=247534511172985&tin=02508201610067®Number=0000000000100030&sum=0 [12:17:46]written 0, free lines is 4095 [12:17:46]OFD Sender: Processing packet 188245 [packets to send 1062, broken 1061] [12:17:46]ProducePacketName [12:17:46]name=ofd_packets/00188245 [12:17:46]OFD Sender: To server: pG, [12:17:46]CommunicateWithHost lk.salyk.kg:30040 [12:17:46]ConnectInit lk.salyk.kg [12:17:46]Connected sock=10 [12:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9F BF 07 01 09 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 7C 1A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 01 00 00 F4 03 04 00 E9 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DF 02 00 35 04 06 00 E1 21 9E 9B AD 79 53 68 54 82 A0 8B D4 84 [12:17:46]Write to MH i2c: 01 00 00 8F 00 8F [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 07 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 84 0C 26 [12:17:46]RasterBufferAndPrint [12:17:46]line [12:17:46]line [12:17:46]line [12:17:46]line [12:17:46]line [12:17:46]written 0, free lines is 3207 [12:17:46]MH_Cut [12:17:46]Write to MH i2c: D1 01 00 96 00 01 68 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: D1 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: D1 01 00 [12:17:46]MH_I2C_Read... [12:17:46]Read from MH i2c: D1 01 00 96 00 00 67 [12:17:46]Write to MH i2c: 01 00 00 97 00 97 [12:17:46]Write i2c OK [12:17:46]MH_I2C_Read... [12:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA 4B 47 00 48 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 DF 02 00 F4 03 04 00 D6 41 17 67 B6 04 01 00 00 D1 A8 5B 0C D3 DE AE 95 [12:17:47]CommunicateWithHost err = 0 [12:17:47]CheckOFDResponse [12:17:47]1017 (14) - 77093643461234 [12:17:47]1041 (16) - 0000000000965340 [12:17:47]1040 (4) - 188245 [12:17:47]1012 (4) - 22.10.2024 06:10 [12:17:47]1206 (1) - 0 [12:17:47]OFD Sender: Remove packet 188245 [12:17:47]ProducePacketName [12:17:47]name=ofd_packets/00188245 [12:17:47]NVStorageDeleteData [12:17:47]OFD Sender: No OFD packet to send [12:17:48]*** Cut start [12:17:48]*** Partial cut [12:17:48]*** CUTSNS_PIN = 1 [12:17:48]*** CUTSNS_PIN = 0 [12:17:48]*** Brake cut motor [12:17:48]Read from MH i2c: 01 [12:17:48]MH_I2C_Read... [12:17:48]*** Stop cut motor [12:17:48]*** Cut end [12:17:48]Read from MH i2c: 01 07 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: 01 07 00 97 00 00 00 00 00 00 FF 0F AC [12:17:48]process_action close_receipt done [12:17:48]requested_data is exist [12:17:48]produce_requested_data [12:17:48]requested_item fm.sn is exist - process it [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 11 00 00 [12:17:48]Write to MH i2c: E2 08 00 98 00 80 11 00 00 00 00 00 00 12 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 17 00 98 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [12:17:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:17:48]wFMCommunicate OK [12:17:48]requested_item fd.num is exist - process it [12:17:48]SAM_PROTO_GetFieldsCounters [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 13 00 00 [12:17:48]Write to MH i2c: E2 08 00 99 00 80 13 00 00 00 00 00 00 15 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 62 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 62 00 99 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [12:17:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 01 00 00 5E 04 04 00 12 01 00 00 57 04 04 00 13 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_GetFieldsCounters done [12:17:48]requested_item shift.num is exist - process it [12:17:48]requested_item shift.opened is exist - process it [12:17:48]req_shift_opened [12:17:48]FM_GetShiftState [12:17:48]SAM_PROTO_GetShiftState [12:17:48]wFMCommunicate request_size=4 [12:17:48]MH_SAM_APDU [12:17:48]CAPDU: 80 13 01 00 [12:17:48]Write to MH i2c: E2 08 00 9A 00 80 13 01 00 00 00 00 00 17 [12:17:48]Write i2c OK [12:17:48]MH_I2C_Read... [12:17:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:17:48]Read from MH i2c: E2 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0E 00 [12:17:48]MH_I2C_Read... [12:17:48]Read from MH i2c: E2 0E 00 9A 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0C [12:17:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:17:48]wFMCommunicate OK [12:17:48]SAM_PROTO_GetShiftState done [12:17:48]FM_GetShiftState done [12:17:48]req_shift_opened done [12:17:48]requested_item shift.open_date is exist - process it [12:17:48]req_shift_open_date [12:17:48]req_shift_open_date done [12:17:48]produce_requested_data done [12:17:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188245,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:17:48]process_action_free close_receipt [12:17:48]json_value_free [12:17:48]json_value_free done [12:17:48]process_json_proto returns [12:17:48]Send response to host [12:17:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188245,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:17:48]free response buf [12:17:48]execute_script done [12:17:48]execute_script returns [12:17:48]free content buf [12:17:48]Sock 6.Close socket [12:17:48]Sock 6.Thread stoped [12:17:52]OFD Sender: No OFD packet to send [12:17:57]OFD Sender: No OFD packet to send [12:18:02]OFD Sender: No OFD packet to send [12:18:04]accept exits with 9 [12:18:04]New connection [12:18:04]New thread 3067059556 created [12:18:04]Thread 3066916196 joined [12:18:04]Waiting for new connection... [12:18:04] Sock 9.Parse request [12:18:04]Sock 9.Check first char [12:18:04]Sock 9.First char is OK [12:18:04]request: POST /json_proto HTTP/1.0 [12:18:04]Method: POST [12:18:04]URL: /json_proto [12:18:04]Method is POST - this is cgi request [12:18:04]url: /json_proto [12:18:04]query_string will be loaded in cgi processing [12:18:04]execute_cgi json_proto POST (null) [12:18:04]execute_cgi path=json_proto method=POST [12:18:04]POST find Content-Length [12:18:04]Host: 172.17.42.131:8080 [12:18:04]Content-Length: 688 [12:18:04]Content-Type: application/json [12:18:04] [12:18:04]POST finish read [12:18:04]Found Content-Length = 688 [12:18:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:18:04]execute_script... [12:18: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)210298", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:18:04]POST & json_proto [12:18:04]process_json_proto [12:18:04]json parsed OK: [12:18:04]protocol is kg_v1.0 [12:18:04]action value=close_receipt [12:18:04]process_action close_receipt [12:18:04]cmd_close_receipt [12:18:04]MH_GetDate [12:18:04]Write to MH i2c: F0 00 00 9B 00 8A [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: F0 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: F0 09 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: F0 09 00 9B 00 00 FD 97 17 67 A0 18 CA 66 8D [12:18:04]GetLastDocTimeStamp 1729599465 [12:18:04]current date 1729599485 [12:18:04]FM_GetShiftState [12:18:04]SAM_PROTO_GetShiftState [12:18:04]wFMCommunicate request_size=4 [12:18:04]MH_SAM_APDU [12:18:04]CAPDU: 80 13 01 00 [12:18:04]Write to MH i2c: E2 08 00 9C 00 80 13 01 00 00 00 00 00 19 [12:18:04]Write i2c OK [12:18:04]MH_I2C_Read... [12:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:04]Read from MH i2c: E2 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0E 00 [12:18:04]MH_I2C_Read... [12:18:04]Read from MH i2c: E2 0E 00 9C 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0E [12:18:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:18:04]wFMCommunicate OK [12:18:04]SAM_PROTO_GetShiftState done [12:18:04]FM_GetShiftState done [12:18:04]opened in 1729556094 [12:18:04]opened+sec_in_day 1729642494 [12:18:04]quantity*price = 200025 [12:18:04]sum+1 = 200026 [12:18:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 275 22.10.2024 12:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188246 ФПД: 231048282570903 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121805&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188246&fm=231048282570903&tin=02508201610067®Number=0000000000100030&sum=200000 [12:18:05]StoreToDocumentArchive [12:18:05]shift 461 fd 188246 [12:18:05]save to /storage/0461/doc_00188246 [12:18:05]save last doc name /storage/0461/doc_00188246 to /storage/kkm_last_doc_name [12:18:05]save OK [12:18:05]Clear old archive folders... [12:18:05]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:18:05]tlvbuf is 01E54950 [12:18:05]SAM_PROTO_ClearQueue [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 09 00 00 [12:18:05]Write to MH i2c: E2 08 00 A9 00 80 09 00 00 00 00 00 00 1B [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 A9 00 00 90 00 1D [12:18:05]RAPDU: 90 00 [12:18:05]wFMCommunicate OK [12:18:05]SAM_PROTO_ClearQueue done [12:18:05]KKMCreateOFDPacket [12:18:05]OFDProtocolAddRootSTLVToBuf [12:18:05]FM_MakeSignedData [12:18:05]FM_MakeSignedData [12:18:05]SAM_PROTO_SignData [12:18:05]wFMCommunicate request_size=4 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 0D 01 02 [12:18:05]Write to MH i2c: E2 08 00 AA 00 80 0D 01 02 00 00 00 00 23 [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:05]Read from MH i2c: E2 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 [12:18:05]MH_I2C_Read... [12:18:05]Read from MH i2c: E2 03 00 AA 00 00 90 00 1E [12:18:05]RAPDU: 90 00 [12:18:05]wFMCommunicate OK [12:18:05]wFMCommunicate request_size=255 [12:18:05]MH_SAM_APDU [12:18:05]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 01 00 00 F4 03 04 00 FD 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DF 02 [12:18:05]Write to MH i2c: E2 02 01 AB 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 01 00 00 F4 03 04 00 FD 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DF 02 00 00 EF [12:18:05]Write i2c OK [12:18:05]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 03 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 03 00 AB 00 00 90 00 1F [12:18:06]RAPDU: 90 00 [12:18:06]wFMCommunicate OK [12:18:06]wFMCommunicate request_size=16 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D2 23 1E CF 00 97 [12:18:06]Write to MH i2c: E2 13 00 AC 00 80 0D 02 02 0B 00 00 35 04 06 00 D2 23 1E CF 00 97 00 00 F4 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 03 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 03 00 AC 00 00 90 00 20 [12:18:06]RAPDU: 90 00 [12:18:06]wFMCommunicate OK [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 0D 03 02 [12:18:06]Write to MH i2c: E2 08 00 AD 00 80 0D 03 02 00 00 00 00 28 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 0B 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 0B 00 AD 00 00 0B F7 BE C3 4D 6F 86 66 90 00 54 [12:18:06]RAPDU: 0B F7 BE C3 4D 6F 86 66 90 00 [12:18:06]wFMCommunicate OK [12:18:06]SAM_PROTO_SignData done [12:18:06]FM_MakeSignedData done [12:18:06]CreateOFDProtocolMessage [12:18:06]wFMCommunicate request_size=4 [12:18:06]MH_SAM_APDU [12:18:06]CAPDU: 80 11 00 00 [12:18:06]Write to MH i2c: E2 08 00 AE 00 80 11 00 00 00 00 00 00 28 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:06]Read from MH i2c: E2 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 17 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: E2 17 00 AE 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [12:18:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:18:06]wFMCommunicate OK [12:18:06]CreateOFDProtocolMessage done [12:18:06]OFDSenderStorePacket 188246 [12:18:06]StoreOFDPacket docnum=188246 [12:18:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C5 8D 0D 01 5B E4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 01 00 00 F4 03 04 00 FD 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DF 02 00 35 04 06 00 D2 23 1E CF 00 97 0B F7 BE C3 4D 6F 86 66 [12:18:06]CheckFolder [12:18:06]dirname=/storage/ofd_packets [12:18:06]CheckFolder done [12:18:06]ProducePacketName [12:18:06]name=ofd_packets/00188246 [12:18:06]NVStorageSaveData ofd_packets/00188246 [12:18:06]File name is /storage/ofd_packets/00188246 [12:18:06]Write 307 bytes [12:18:06]NVStorageSaveData done [12:18:06]OFDSenderStorePacket done [12:18:06]KKMCreateOFDPacket done [12:18:06]NVStorageSaveData kkm_last_timestamp [12:18:06]File name is /storage/kkm_last_timestamp [12:18:06]Write 4 bytes [12:18:06]NVStorageSaveData done [12:18:06]ExternCall_PrintAddStr [12:18:06]wPrintStart [12:18:06]Write to MH i2c: 01 00 00 AF 00 AF [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [12:18:06]RasterBufferAndPrint [12:18:06]line Счет N : (1)210298 [12:18:06]line ИНН: 02508201610067 [12:18:06]line Контрольно-Кассовый Чек [12:18:06]line ПРОДАЖА [12:18:06]line ТРК (МРК, ГНК) : 41 [12:18:06]line Товар: 2710194210 [12:18:06]line D-ENERGY ДТ-К-5 [12:18:06]line 25.910 * 77.20 [12:18:06]line = 2000.25 [12:18:06]line НДС 12% НСП 1% [12:18:06]line > о реализуемом товаре [12:18:06]line ОКРУГЛЕНИЕ: -0.25 [12:18:06]line ИТОГО: 2000.00 [12:18:06]line Внесено: 2000.00 [12:18:06]line СДАЧА: 0.00 [12:18:06]line НСП 1% : 17.70 [12:18:06]line НДС 12% : 212.42 [12:18:06]line Наличными: 2000.00 [12:18:06]line Безнал.: 0.00 [12:18:06]line Место: АЗС № 86 "Партнер Нефть" [12:18:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:18:06]line СНО: Общий режим [12:18:06]line Чек 275 22.10.2024 12:18 [12:18:06]line Смена: 461 ФФД: 1.0 [12:18:06]line ЗНМ: 0300000155 [12:18:06]line РНМ: 0000000000100030 [12:18:06]line Версия ККМ: 001 [12:18:06]line ФМ: 0000000000965340 [12:18:06]line ФД: 188246 [12:18:06]line ФПД: 231048282570903 [12:18:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121805&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188246&fm=231048282570903&tin=02508201610067®Number=0000000000100030&sum=200000 [12:18:06]written 0, free lines is 4095 [12:18:06]OFD Sender: Processing packet 188246 [packets to send 1062, broken 1061] [12:18:06]ProducePacketName [12:18:06]name=ofd_packets/00188246 [12:18:06]OFD Sender: To server: pG, [12:18:06]CommunicateWithHost lk.salyk.kg:30040 [12:18:06]ConnectInit lk.salyk.kg [12:18:06]Connected sock=10 [12:18:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C5 8D 0D 01 5B E4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 13 01 00 00 F4 03 04 00 FD 97 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 56 DF 02 00 35 04 06 00 D2 23 1E CF 00 97 0B F7 BE C3 4D 6F 86 66 [12:18:06]Write to MH i2c: 01 00 00 DA 00 DA [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 73 0C 60 [12:18:06]RasterBufferAndPrint [12:18:06]line [12:18:06]line [12:18:06]line [12:18:06]line [12:18:06]line [12:18:06]written 0, free lines is 3190 [12:18:06]MH_Cut [12:18:06]Write to MH i2c: D1 01 00 E1 00 01 B3 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: D1 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: D1 01 00 [12:18:06]MH_I2C_Read... [12:18:06]Read from MH i2c: D1 01 00 E1 00 00 B2 [12:18:06]Write to MH i2c: 01 00 00 E2 00 E2 [12:18:06]Write i2c OK [12:18:06]MH_I2C_Read... [12:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8C 7D 47 00 44 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 39 36 35 33 34 30 10 04 04 00 56 DF 02 00 F4 03 04 00 EA 41 17 67 B6 04 01 00 00 02 25 F9 FA DF DE 72 16 [12:18:07]CommunicateWithHost err = 0 [12:18:07]CheckOFDResponse [12:18:07]1017 (14) - 77093643461234 [12:18:07]1041 (16) - 0000000000965340 [12:18:07]1040 (4) - 188246 [12:18:07]1012 (4) - 22.10.2024 06:10 [12:18:07]1206 (1) - 0 [12:18:07]OFD Sender: Remove packet 188246 [12:18:07]ProducePacketName [12:18:07]name=ofd_packets/00188246 [12:18:07]NVStorageDeleteData [12:18:07]OFD Sender: No OFD packet to send [12:18:08]*** Cut start [12:18:08]*** Partial cut [12:18:08]*** CUTSNS_PIN = 1 [12:18:08]*** CUTSNS_PIN = 0 [12:18:08]*** Brake cut motor [12:18:08]Read from MH i2c: 01 [12:18:08]MH_I2C_Read... [12:18:08]*** Stop cut motor [12:18:08]*** Cut end [12:18:08]Read from MH i2c: 01 07 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: 01 07 00 E2 00 00 00 00 00 00 FF 0F F7 [12:18:08]process_action close_receipt done [12:18:08]requested_data is exist [12:18:08]produce_requested_data [12:18:08]requested_item fm.sn is exist - process it [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 11 00 00 [12:18:08]Write to MH i2c: E2 08 00 E3 00 80 11 00 00 00 00 00 00 5D [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 17 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 17 00 E3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AB [12:18:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:18:08]wFMCommunicate OK [12:18:08]requested_item fd.num is exist - process it [12:18:08]SAM_PROTO_GetFieldsCounters [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 13 00 00 [12:18:08]Write to MH i2c: E2 08 00 E4 00 80 13 00 00 00 00 00 00 60 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 62 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 62 00 E4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [12:18:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 01 00 00 5E 04 04 00 13 01 00 00 57 04 04 00 14 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:08]wFMCommunicate OK [12:18:08]SAM_PROTO_GetFieldsCounters done [12:18:08]requested_item shift.num is exist - process it [12:18:08]requested_item shift.opened is exist - process it [12:18:08]req_shift_opened [12:18:08]FM_GetShiftState [12:18:08]SAM_PROTO_GetShiftState [12:18:08]wFMCommunicate request_size=4 [12:18:08]MH_SAM_APDU [12:18:08]CAPDU: 80 13 01 00 [12:18:08]Write to MH i2c: E2 08 00 E5 00 80 13 01 00 00 00 00 00 62 [12:18:08]Write i2c OK [12:18:08]MH_I2C_Read... [12:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:08]Read from MH i2c: E2 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 0E 00 [12:18:08]MH_I2C_Read... [12:18:08]Read from MH i2c: E2 0E 00 E5 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 57 [12:18:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:18:08]wFMCommunicate OK [12:18:08]SAM_PROTO_GetShiftState done [12:18:08]FM_GetShiftState done [12:18:08]req_shift_opened done [12:18:08]requested_item shift.open_date is exist - process it [12:18:08]req_shift_open_date [12:18:08]req_shift_open_date done [12:18:08]produce_requested_data done [12:18:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188246,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:18:08]process_action_free close_receipt [12:18:08]json_value_free [12:18:08]json_value_free done [12:18:08]process_json_proto returns [12:18:08]Send response to host [12:18:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188246,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:18:08]free response buf [12:18:08]execute_script done [12:18:08]execute_script returns [12:18:08]free content buf [12:18:08]Sock 9.Close socket [12:18:08]Sock 9.Thread stoped [12:18:12]OFD Sender: No OFD packet to send [12:18:17]OFD Sender: No OFD packet to send [12:18:22]OFD Sender: No OFD packet to send [12:18:27]OFD Sender: No OFD packet to send [12:18:32]OFD Sender: No OFD packet to send [12:18:33]accept exits with 7 [12:18:33]New connection [12:18:33]New thread 3066916196 created [12:18:33]Thread 3067059556 joined [12:18:33]Waiting for new connection... [12:18:33] Sock 7.Parse request [12:18:33]Sock 7.Check first char [12:18:33]Sock 7.First char is OK [12:18:33]request: POST /json_proto HTTP/1.0 [12:18:33]Method: POST [12:18:33]URL: /json_proto [12:18:33]Method is POST - this is cgi request [12:18:33]url: /json_proto [12:18:33]query_string will be loaded in cgi processing [12:18:33]execute_cgi json_proto POST (null) [12:18:33]execute_cgi path=json_proto method=POST [12:18:33]POST find Content-Length [12:18:33]Host: 172.17.42.131:8080 [12:18:33]Content-Length: 677 [12:18:33]Content-Type: application/json [12:18:33] [12:18:33]POST finish read [12:18:33]Found Content-Length = 677 [12:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210300", "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" : 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" ] } } [12:18:33]execute_script... [12:18: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)210300", "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" : 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" ] } } [12:18:33]POST & json_proto [12:18:33]process_json_proto [12:18:33]json parsed OK: [12:18:33]protocol is kg_v1.0 [12:18:33]action value=close_receipt [12:18:33]process_action close_receipt [12:18:33]cmd_close_receipt [12:18:33]MH_GetDate [12:18:33]Write to MH i2c: F0 00 00 E6 00 D5 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: F0 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: F0 09 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: F0 09 00 E6 00 00 1A 98 17 67 A0 18 CA 66 F6 [12:18:33]GetLastDocTimeStamp 1729599485 [12:18:33]current date 1729599514 [12:18:33]FM_GetShiftState [12:18:33]SAM_PROTO_GetShiftState [12:18:33]wFMCommunicate request_size=4 [12:18:33]MH_SAM_APDU [12:18:33]CAPDU: 80 13 01 00 [12:18:33]Write to MH i2c: E2 08 00 E7 00 80 13 01 00 00 00 00 00 64 [12:18:33]Write i2c OK [12:18:33]MH_I2C_Read... [12:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:33]Read from MH i2c: E2 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 0E 00 [12:18:33]MH_I2C_Read... [12:18:33]Read from MH i2c: E2 0E 00 E7 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 59 [12:18:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:18:33]wFMCommunicate OK [12:18:33]SAM_PROTO_GetShiftState done [12:18:33]FM_GetShiftState done [12:18:33]opened in 1729556094 [12:18:33]opened+sec_in_day 1729642494 [12:18:33]quantity*price = 50010 [12:18:33]sum+1 = 50012 [12:18:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 276 22.10.2024 12:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188247 ФПД: 251807376712485 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121834&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188247&fm=251807376712485&tin=02508201610067®Number=0000000000100030&sum=50000 [12:18:34]StoreToDocumentArchive [12:18:34]shift 461 fd 188247 [12:18:34]save to /storage/0461/doc_00188247 [12:18:34]save last doc name /storage/0461/doc_00188247 to /storage/kkm_last_doc_name [12:18:34]save OK [12:18:34]Clear old archive folders... [12:18:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:18:34]tlvbuf is 01E56290 [12:18:34]SAM_PROTO_ClearQueue [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 09 00 00 [12:18:34]Write to MH i2c: E2 08 00 F4 00 80 09 00 00 00 00 00 00 66 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 F4 00 00 90 00 68 [12:18:34]RAPDU: 90 00 [12:18:34]wFMCommunicate OK [12:18:34]SAM_PROTO_ClearQueue done [12:18:34]KKMCreateOFDPacket [12:18:34]OFDProtocolAddRootSTLVToBuf [12:18:34]FM_MakeSignedData [12:18:34]FM_MakeSignedData [12:18:34]SAM_PROTO_SignData [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 0D 01 02 [12:18:34]Write to MH i2c: E2 08 00 F5 00 80 0D 01 02 00 00 00 00 6E [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 F5 00 00 90 00 69 [12:18:34]RAPDU: 90 00 [12:18:34]wFMCommunicate OK [12:18:34]wFMCommunicate request_size=255 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 14 01 00 00 F4 03 04 00 1A 98 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DF 02 00 35 04 06 00 E5 [12:18:34]Write to MH i2c: E2 02 01 F6 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 14 01 00 00 F4 03 04 00 1A 98 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DF 02 00 35 04 06 00 E5 00 00 E9 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 F6 00 00 90 00 6A [12:18:34]RAPDU: 90 00 [12:18:34]wFMCommunicate OK [12:18:34]wFMCommunicate request_size=10 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 0D 02 02 05 04 79 3D A3 25 [12:18:34]Write to MH i2c: E2 0D 00 F7 00 80 0D 02 02 05 00 04 79 3D A3 25 00 00 FD [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 03 00 F7 00 00 90 00 6B [12:18:34]RAPDU: 90 00 [12:18:34]wFMCommunicate OK [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 0D 03 02 [12:18:34]Write to MH i2c: E2 08 00 F8 00 80 0D 03 02 00 00 00 00 73 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 0B 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 0B 00 F8 00 00 7B 31 2A 9F 8B DA 14 42 90 00 A4 [12:18:34]RAPDU: 7B 31 2A 9F 8B DA 14 42 90 00 [12:18:34]wFMCommunicate OK [12:18:34]SAM_PROTO_SignData done [12:18:34]FM_MakeSignedData done [12:18:34]CreateOFDProtocolMessage [12:18:34]wFMCommunicate request_size=4 [12:18:34]MH_SAM_APDU [12:18:34]CAPDU: 80 11 00 00 [12:18:34]Write to MH i2c: E2 08 00 F9 00 80 11 00 00 00 00 00 00 73 [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:34]Read from MH i2c: E2 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 17 00 [12:18:34]MH_I2C_Read... [12:18:34]Read from MH i2c: E2 17 00 F9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [12:18:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:18:34]wFMCommunicate OK [12:18:34]CreateOFDProtocolMessage done [12:18:34]OFDSenderStorePacket 188247 [12:18:34]StoreOFDPacket docnum=188247 [12:18:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 DB 07 01 AB 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 01 00 00 F4 03 04 00 1A 98 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DF 02 00 35 04 06 00 E5 04 79 3D A3 25 7B 31 2A 9F 8B DA 14 42 [12:18:34]CheckFolder [12:18:34]dirname=/storage/ofd_packets [12:18:34]CheckFolder done [12:18:34]ProducePacketName [12:18:34]name=ofd_packets/00188247 [12:18:34]NVStorageSaveData ofd_packets/00188247 [12:18:34]File name is /storage/ofd_packets/00188247 [12:18:34]Write 301 bytes [12:18:34]NVStorageSaveData done [12:18:34]OFDSenderStorePacket done [12:18:34]KKMCreateOFDPacket done [12:18:34]NVStorageSaveData kkm_last_timestamp [12:18:34]File name is /storage/kkm_last_timestamp [12:18:34]Write 4 bytes [12:18:34]NVStorageSaveData done [12:18:34]ExternCall_PrintAddStr [12:18:34]wPrintStart [12:18:34]Write to MH i2c: 01 00 00 FA 00 FA [12:18:34]Write i2c OK [12:18:34]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [12:18:35]RasterBufferAndPrint [12:18:35]line Счет N : (1)210300 [12:18:35]line ИНН: 02508201610067 [12:18:35]line Контрольно-Кассовый Чек [12:18:35]line ПРОДАЖА [12:18:35]line ТРК (МРК, ГНК) : 33 [12:18:35]line Товар: 2710124500 [12:18:35]line Аи-95-К-3 [12:18:35]line 6.740 * 74.20 [12:18:35]line = 500.11 [12:18:35]line НДС 12% НСП 1% [12:18:35]line > о реализуемом товаре [12:18:35]line ОКРУГЛЕНИЕ: -0.11 [12:18:35]line ИТОГО: 500.00 [12:18:35]line Внесено: 500.00 [12:18:35]line СДАЧА: 0.00 [12:18:35]line НСП 1% : 4.43 [12:18:35]line НДС 12% : 53.11 [12:18:35]line Наличными: 500.00 [12:18:35]line Безнал.: 0.00 [12:18:35]line Место: АЗС № 86 "Партнер Нефть" [12:18:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:18:35]line СНО: Общий режим [12:18:35]line Чек 276 22.10.2024 12:18 [12:18:35]line Смена: 461 ФФД: 1.0 [12:18:35]line ЗНМ: 0300000155 [12:18:35]line РНМ: 0000000000100030 [12:18:35]line Версия ККМ: 001 [12:18:35]line ФМ: 0000000000965340 [12:18:35]line ФД: 188247 [12:18:35]line ФПД: 251807376712485 [12:18:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T121834&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188247&fm=251807376712485&tin=02508201610067®Number=0000000000100030&sum=50000 [12:18:35]written 0, free lines is 4095 [12:18:35]OFD Sender: Processing packet 188247 [packets to send 1062, broken 1061] [12:18:35]ProducePacketName [12:18:35]name=ofd_packets/00188247 [12:18:35]OFD Sender: To server: pG, [12:18:35]CommunicateWithHost lk.salyk.kg:30040 [12:18:35]ConnectInit lk.salyk.kg [12:18:35]Connected sock=10 [12:18:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 25 DB 07 01 AB 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 14 01 00 00 F4 03 04 00 1A 98 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DF 02 00 35 04 06 00 E5 04 79 3D A3 25 7B 31 2A 9F 8B DA 14 42 [12:18:35]Write to MH i2c: 01 00 00 25 01 26 [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 6E 0C A7 [12:18:35]RasterBufferAndPrint [12:18:35]line [12:18:35]line [12:18:35]line [12:18:35]line [12:18:35]line [12:18:35]written 0, free lines is 3184 [12:18:35]MH_Cut [12:18:35]Write to MH i2c: D1 01 00 2C 01 01 FF [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: D1 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: D1 01 00 [12:18:35]MH_I2C_Read... [12:18:35]Read from MH i2c: D1 01 00 2C 01 00 FE [12:18:35]Write to MH i2c: 01 00 00 2D 01 2E [12:18:35]Write i2c OK [12:18:35]MH_I2C_Read... [12:18:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E C7 47 00 5F E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 DF 02 00 F4 03 04 00 07 42 17 67 B6 04 01 00 00 E4 8D D5 19 F0 92 F2 FF [12:18:35]CommunicateWithHost err = 0 [12:18:35]CheckOFDResponse [12:18:35]1017 (14) - 77093643461234 [12:18:35]1041 (16) - 0000000000965340 [12:18:35]1040 (4) - 188247 [12:18:35]1012 (4) - 22.10.2024 06:11 [12:18:35]1206 (1) - 0 [12:18:35]OFD Sender: Remove packet 188247 [12:18:35]ProducePacketName [12:18:35]name=ofd_packets/00188247 [12:18:35]NVStorageDeleteData [12:18:36]OFD Sender: No OFD packet to send [12:18:36]*** Cut start [12:18:36]*** Partial cut [12:18:36]*** CUTSNS_PIN = 1 [12:18:36]*** CUTSNS_PIN = 0 [12:18:36]*** Brake cut motor [12:18:37]Read from MH i2c: 01 [12:18:37]MH_I2C_Read... [12:18:37]*** Stop cut motor [12:18:37]*** Cut end [12:18:37]Read from MH i2c: 01 07 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: 01 07 00 2D 01 00 00 00 00 00 FF 0F 43 [12:18:37]process_action close_receipt done [12:18:37]requested_data is exist [12:18:37]produce_requested_data [12:18:37]requested_item fm.sn is exist - process it [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 11 00 00 [12:18:37]Write to MH i2c: E2 08 00 2E 01 80 11 00 00 00 00 00 00 A9 [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 17 00 2E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [12:18:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:18:37]wFMCommunicate OK [12:18:37]requested_item fd.num is exist - process it [12:18:37]SAM_PROTO_GetFieldsCounters [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 13 00 00 [12:18:37]Write to MH i2c: E2 08 00 2F 01 80 13 00 00 00 00 00 00 AC [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 62 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 62 00 2F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [12:18:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 14 01 00 00 5E 04 04 00 14 01 00 00 57 04 04 00 15 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_GetFieldsCounters done [12:18:37]requested_item shift.num is exist - process it [12:18:37]requested_item shift.opened is exist - process it [12:18:37]req_shift_opened [12:18:37]FM_GetShiftState [12:18:37]SAM_PROTO_GetShiftState [12:18:37]wFMCommunicate request_size=4 [12:18:37]MH_SAM_APDU [12:18:37]CAPDU: 80 13 01 00 [12:18:37]Write to MH i2c: E2 08 00 30 01 80 13 01 00 00 00 00 00 AE [12:18:37]Write i2c OK [12:18:37]MH_I2C_Read... [12:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:18:37]Read from MH i2c: E2 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0E 00 [12:18:37]MH_I2C_Read... [12:18:37]Read from MH i2c: E2 0E 00 30 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A3 [12:18:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:18:37]wFMCommunicate OK [12:18:37]SAM_PROTO_GetShiftState done [12:18:37]FM_GetShiftState done [12:18:37]req_shift_opened done [12:18:37]requested_item shift.open_date is exist - process it [12:18:37]req_shift_open_date [12:18:37]req_shift_open_date done [12:18:37]produce_requested_data done [12:18:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188247,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:18:37]process_action_free close_receipt [12:18:37]json_value_free [12:18:37]json_value_free done [12:18:37]process_json_proto returns [12:18:37]Send response to host [12:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188247,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:18:37]free response buf [12:18:37]execute_script done [12:18:37]execute_script returns [12:18:37]free content buf [12:18:37]Sock 7.Close socket [12:18:37]Sock 7.Thread stoped [12:18:41]OFD Sender: No OFD packet to send [12:18:46]OFD Sender: No OFD packet to send [12:18:51]OFD Sender: No OFD packet to send [12:18:56]OFD Sender: No OFD packet to send [12:19:01]OFD Sender: No OFD packet to send [12:19:06]OFD Sender: No OFD packet to send [12:19:11]OFD Sender: No OFD packet to send [12:19:16]OFD Sender: No OFD packet to send [12:19:21]OFD Sender: No OFD packet to send [12:19:26]OFD Sender: No OFD packet to send [12:19:31]OFD Sender: No OFD packet to send [12:19:36]OFD Sender: No OFD packet to send [12:19:41]OFD Sender: No OFD packet to send [12:19:46]OFD Sender: No OFD packet to send [12:19:51]OFD Sender: No OFD packet to send [12:19:56]OFD Sender: No OFD packet to send [12:20:01]OFD Sender: No OFD packet to send [12:20:06]OFD Sender: No OFD packet to send [12:20:11]OFD Sender: No OFD packet to send [12:20:16]OFD Sender: No OFD packet to send [12:20:21]OFD Sender: No OFD packet to send [12:20:26]OFD Sender: No OFD packet to send [12:20:31]OFD Sender: No OFD packet to send [12:20:36]OFD Sender: No OFD packet to send [12:20:41]OFD Sender: No OFD packet to send [12:20:46]OFD Sender: No OFD packet to send [12:20:51]OFD Sender: No OFD packet to send [12:20:56]OFD Sender: No OFD packet to send [12:21:01]OFD Sender: No OFD packet to send [12:21:06]OFD Sender: No OFD packet to send [12:21:11]OFD Sender: No OFD packet to send [12:21:16]OFD Sender: No OFD packet to send [12:21:21]OFD Sender: No OFD packet to send [12:21:26]OFD Sender: No OFD packet to send [12:21:31]OFD Sender: No OFD packet to send [12:21:36]OFD Sender: No OFD packet to send [12:21:41]OFD Sender: No OFD packet to send [12:21:46]OFD Sender: No OFD packet to send [12:21:51]OFD Sender: No OFD packet to send [12:21:57]OFD Sender: No OFD packet to send [12:22:02]OFD Sender: No OFD packet to send [12:22:07]OFD Sender: No OFD packet to send [12:22:12]OFD Sender: No OFD packet to send [12:22:17]OFD Sender: No OFD packet to send [12:22:22]OFD Sender: No OFD packet to send [12:22:27]OFD Sender: No OFD packet to send [12:22:32]OFD Sender: No OFD packet to send [12:22:37]OFD Sender: No OFD packet to send [12:22:42]OFD Sender: No OFD packet to send [12:22:43]accept exits with 9 [12:22:43]New connection [12:22:43]New thread 3067059556 created [12:22:43]Thread 3066916196 joined [12:22:43]Waiting for new connection... [12:22:43] Sock 9.Parse request [12:22:43]Sock 9.Check first char [12:22:43]Sock 9.First char is OK [12:22:43]request: POST /json_proto HTTP/1.0 [12:22:43]Method: POST [12:22:43]URL: /json_proto [12:22:43]Method is POST - this is cgi request [12:22:43]url: /json_proto [12:22:43]query_string will be loaded in cgi processing [12:22:43]execute_cgi json_proto POST (null) [12:22:43]execute_cgi path=json_proto method=POST [12:22:43]POST find Content-Length [12:22:43]Host: 172.17.42.131:8080 [12:22:43]Content-Length: 769 [12:22:43]Content-Type: application/json [12:22:43] [12:22:43]POST finish read [12:22:43]Found Content-Length = 769 [12:22:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:43]execute_script... [12:22: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)210301", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:22:43]POST & json_proto [12:22:43]process_json_proto [12:22:43]json parsed OK: [12:22:43]protocol is kg_v1.0 [12:22:43]action value=close_receipt [12:22:43]process_action close_receipt [12:22:43]cmd_close_receipt [12:22:43]MH_GetDate [12:22:43]Write to MH i2c: F0 00 00 31 01 21 [12:22:43]Write i2c OK [12:22:43]MH_I2C_Read... [12:22:43]Read from MH i2c: F0 [12:22:43]MH_I2C_Read... [12:22:43]Read from MH i2c: F0 09 00 [12:22:43]MH_I2C_Read... [12:22:43]Read from MH i2c: F0 09 00 31 01 00 14 99 17 67 A0 18 CA 66 3D [12:22:43]GetLastDocTimeStamp 1729599514 [12:22:43]current date 1729599764 [12:22:43]FM_GetShiftState [12:22:43]SAM_PROTO_GetShiftState [12:22:43]wFMCommunicate request_size=4 [12:22:43]MH_SAM_APDU [12:22:43]CAPDU: 80 13 01 00 [12:22:43]Write to MH i2c: E2 08 00 32 01 80 13 01 00 00 00 00 00 B0 [12:22:43]Write i2c OK [12:22:43]MH_I2C_Read... [12:22:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:43]Read from MH i2c: E2 [12:22:43]MH_I2C_Read... [12:22:43]Read from MH i2c: E2 0E 00 [12:22:43]MH_I2C_Read... [12:22:43]Read from MH i2c: E2 0E 00 32 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A5 [12:22:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:22:43]wFMCommunicate OK [12:22:43]SAM_PROTO_GetShiftState done [12:22:43]FM_GetShiftState done [12:22:43]opened in 1729556094 [12:22:43]opened+sec_in_day 1729642494 [12:22:43]quantity*price = 100015 [12:22:43]sum+1 = 100017 [12:22:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 277 22.10.2024 12:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188248 ФПД: 184986162139033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188248&fm=184986162139033&tin=02508201610067®Number=0000000000100030&sum=100016 [12:22:44]StoreToDocumentArchive [12:22:44]shift 461 fd 188248 [12:22:44]save to /storage/0461/doc_00188248 [12:22:44]save last doc name /storage/0461/doc_00188248 to /storage/kkm_last_doc_name [12:22:44]save OK [12:22:44]Clear old archive folders... [12:22:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:44]tlvbuf is 01E54920 [12:22:44]SAM_PROTO_ClearQueue [12:22:44]wFMCommunicate request_size=4 [12:22:44]MH_SAM_APDU [12:22:44]CAPDU: 80 09 00 00 [12:22:44]Write to MH i2c: E2 08 00 3F 01 80 09 00 00 00 00 00 00 B2 [12:22:44]Write i2c OK [12:22:44]MH_I2C_Read... [12:22:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:44]Read from MH i2c: E2 [12:22:44]MH_I2C_Read... [12:22:44]Read from MH i2c: E2 03 00 [12:22:44]MH_I2C_Read... [12:22:44]Read from MH i2c: E2 03 00 3F 01 00 90 00 B4 [12:22:44]RAPDU: 90 00 [12:22:44]wFMCommunicate OK [12:22:44]SAM_PROTO_ClearQueue done [12:22:44]KKMCreateOFDPacket [12:22:44]OFDProtocolAddRootSTLVToBuf [12:22:44]FM_MakeSignedData [12:22:44]FM_MakeSignedData [12:22:44]SAM_PROTO_SignData [12:22:44]wFMCommunicate request_size=4 [12:22:44]MH_SAM_APDU [12:22:44]CAPDU: 80 0D 01 02 [12:22:44]Write to MH i2c: E2 08 00 40 01 80 0D 01 02 00 00 00 00 BA [12:22:44]Write i2c OK [12:22:44]MH_I2C_Read... [12:22:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:44]Read from MH i2c: E2 [12:22:44]MH_I2C_Read... [12:22:44]Read from MH i2c: E2 03 00 [12:22:44]MH_I2C_Read... [12:22:44]Read from MH i2c: E2 03 00 40 01 00 90 00 B5 [12:22:44]RAPDU: 90 00 [12:22:44]wFMCommunicate OK [12:22:44]wFMCommunicate request_size=255 [12:22:44]MH_SAM_APDU [12:22:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 14 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DF 02 00 35 04 06 00 A8 [12:22:44]Write to MH i2c: E2 02 01 41 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 14 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DF 02 00 35 04 06 00 A8 00 00 37 [12:22:44]Write i2c OK [12:22:44]MH_I2C_Read... [12:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:45]Read from MH i2c: E2 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 03 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 03 00 41 01 00 90 00 B6 [12:22:45]RAPDU: 90 00 [12:22:45]wFMCommunicate OK [12:22:45]wFMCommunicate request_size=10 [12:22:45]MH_SAM_APDU [12:22:45]CAPDU: 80 0D 02 02 05 3E 72 7B 8F 99 [12:22:45]Write to MH i2c: E2 0D 00 42 01 80 0D 02 02 05 00 3E 72 7B 8F 99 00 00 1A [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:45]Read from MH i2c: E2 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 03 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 03 00 42 01 00 90 00 B7 [12:22:45]RAPDU: 90 00 [12:22:45]wFMCommunicate OK [12:22:45]wFMCommunicate request_size=4 [12:22:45]MH_SAM_APDU [12:22:45]CAPDU: 80 0D 03 02 [12:22:45]Write to MH i2c: E2 08 00 43 01 80 0D 03 02 00 00 00 00 BF [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:45]Read from MH i2c: E2 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 0B 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 0B 00 43 01 00 09 47 D8 27 AF C9 EA 8D 90 00 FE [12:22:45]RAPDU: 09 47 D8 27 AF C9 EA 8D 90 00 [12:22:45]wFMCommunicate OK [12:22:45]SAM_PROTO_SignData done [12:22:45]FM_MakeSignedData done [12:22:45]CreateOFDProtocolMessage [12:22:45]wFMCommunicate request_size=4 [12:22:45]MH_SAM_APDU [12:22:45]CAPDU: 80 11 00 00 [12:22:45]Write to MH i2c: E2 08 00 44 01 80 11 00 00 00 00 00 00 BF [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:45]Read from MH i2c: E2 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 17 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: E2 17 00 44 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [12:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:22:45]wFMCommunicate OK [12:22:45]CreateOFDProtocolMessage done [12:22:45]OFDSenderStorePacket 188248 [12:22:45]StoreOFDPacket docnum=188248 [12:22:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 70 21 07 01 68 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 14 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DF 02 00 35 04 06 00 A8 3E 72 7B 8F 99 09 47 D8 27 AF C9 EA 8D [12:22:45]CheckFolder [12:22:45]dirname=/storage/ofd_packets [12:22:45]CheckFolder done [12:22:45]ProducePacketName [12:22:45]name=ofd_packets/00188248 [12:22:45]NVStorageSaveData ofd_packets/00188248 [12:22:45]File name is /storage/ofd_packets/00188248 [12:22:45]Write 301 bytes [12:22:45]NVStorageSaveData done [12:22:45]OFDSenderStorePacket done [12:22:45]KKMCreateOFDPacket done [12:22:45]NVStorageSaveData kkm_last_timestamp [12:22:45]File name is /storage/kkm_last_timestamp [12:22:45]Write 4 bytes [12:22:45]NVStorageSaveData done [12:22:45]ExternCall_PrintAddStr [12:22:45]wPrintStart [12:22:45]Write to MH i2c: 01 00 00 45 01 46 [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: 01 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: 01 07 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [12:22:45]RasterBufferAndPrint [12:22:45]line Счет N : (1)210301 [12:22:45]line ИНН: 02508201610067 [12:22:45]line Контрольно-Кассовый Чек [12:22:45]line ПРОДАЖА [12:22:45]line ТРК (МРК, ГНК) : 42 [12:22:45]line Товар: 2710124130 [12:22:45]line Аи-92-К-3 [12:22:45]line 14.950 * 66.90 [12:22:45]line = 1000.16 [12:22:45]line НДС 12% НСП 1% [12:22:45]line > о реализуемом товаре [12:22:45]line ИТОГО: 1000.16 [12:22:45]line НСП 1% : 8.85 [12:22:45]line НДС 12% : 106.21 [12:22:45]line Наличными: 0.00 [12:22:45]line Безнал.: 1000.16 [12:22:45]line Место: АЗС № 86 "Партнер Нефть" [12:22:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:22:45]line СНО: Общий режим [12:22:45]line Чек 277 22.10.2024 12:22 [12:22:45]line Смена: 461 ФФД: 1.0 [12:22:45]line ЗНМ: 0300000155 [12:22:45]line РНМ: 0000000000100030 [12:22:45]line Версия ККМ: 001 [12:22:45]line Платежная система: Mbank [12:22:45]line ФМ: 0000000000965340 [12:22:45]line ФД: 188248 [12:22:45]line ФПД: 184986162139033 [12:22:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188248&fm=184986162139033&tin=02508201610067®Number=0000000000100030&sum=100016 [12:22:45]written 0, free lines is 4095 [12:22:45]OFD Sender: Processing packet 188248 [packets to send 1062, broken 1061] [12:22:45]ProducePacketName [12:22:45]name=ofd_packets/00188248 [12:22:45]OFD Sender: To server: pG, [12:22:45]CommunicateWithHost lk.salyk.kg:30040 [12:22:45]ConnectInit lk.salyk.kg [12:22:45]Connected sock=10 [12:22:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 70 21 07 01 68 EC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 01 00 00 F4 03 04 00 14 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DF 02 00 35 04 06 00 A8 3E 72 7B 8F 99 09 47 D8 27 AF C9 EA 8D [12:22:45]Write to MH i2c: 01 00 00 6E 01 6F [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: 01 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: 01 07 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: 01 07 00 6E 01 00 00 00 00 00 9F 0C 21 [12:22:45]RasterBufferAndPrint [12:22:45]line [12:22:45]line [12:22:45]line [12:22:45]line [12:22:45]line [12:22:45]written 0, free lines is 3234 [12:22:45]MH_Cut [12:22:45]Write to MH i2c: D1 01 00 75 01 01 48 [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: D1 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: D1 01 00 [12:22:45]MH_I2C_Read... [12:22:45]Read from MH i2c: D1 01 00 75 01 00 47 [12:22:45]Write to MH i2c: 01 00 00 76 01 77 [12:22:45]Write i2c OK [12:22:45]MH_I2C_Read... [12:22:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E 41 47 00 45 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 DF 02 00 F4 03 04 00 01 43 17 67 B6 04 01 00 00 B6 C7 06 15 AD 19 79 E8 [12:22:46]CommunicateWithHost err = 0 [12:22:46]CheckOFDResponse [12:22:46]1017 (14) - 77093643461234 [12:22:46]1041 (16) - 0000000000965340 [12:22:46]1040 (4) - 188248 [12:22:46]1012 (4) - 22.10.2024 06:15 [12:22:46]1206 (1) - 0 [12:22:46]OFD Sender: Remove packet 188248 [12:22:46]ProducePacketName [12:22:46]name=ofd_packets/00188248 [12:22:46]NVStorageDeleteData [12:22:46]OFD Sender: No OFD packet to send [12:22:46]*** Cut start [12:22:46]*** Partial cut [12:22:46]*** CUTSNS_PIN = 1 [12:22:46]*** CUTSNS_PIN = 0 [12:22:47]*** Brake cut motor [12:22:47]Read from MH i2c: 01 [12:22:47]MH_I2C_Read... [12:22:47]*** Stop cut motor [12:22:47]*** Cut end [12:22:47]Read from MH i2c: 01 07 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: 01 07 00 76 01 00 00 00 00 00 FF 0F 8C [12:22:47]process_action close_receipt done [12:22:47]requested_data is exist [12:22:47]produce_requested_data [12:22:47]requested_item fm.sn is exist - process it [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 11 00 00 [12:22:47]Write to MH i2c: E2 08 00 77 01 80 11 00 00 00 00 00 00 F2 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 17 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 17 00 77 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [12:22:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:22:47]wFMCommunicate OK [12:22:47]requested_item fd.num is exist - process it [12:22:47]SAM_PROTO_GetFieldsCounters [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 13 00 00 [12:22:47]Write to MH i2c: E2 08 00 78 01 80 13 00 00 00 00 00 00 F5 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 62 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 62 00 78 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [12:22:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 15 01 00 00 5E 04 04 00 15 01 00 00 57 04 04 00 16 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:22:47]wFMCommunicate OK [12:22:47]SAM_PROTO_GetFieldsCounters done [12:22:47]requested_item shift.num is exist - process it [12:22:47]requested_item shift.opened is exist - process it [12:22:47]req_shift_opened [12:22:47]FM_GetShiftState [12:22:47]SAM_PROTO_GetShiftState [12:22:47]wFMCommunicate request_size=4 [12:22:47]MH_SAM_APDU [12:22:47]CAPDU: 80 13 01 00 [12:22:47]Write to MH i2c: E2 08 00 79 01 80 13 01 00 00 00 00 00 F7 [12:22:47]Write i2c OK [12:22:47]MH_I2C_Read... [12:22:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:47]Read from MH i2c: E2 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 0E 00 [12:22:47]MH_I2C_Read... [12:22:47]Read from MH i2c: E2 0E 00 79 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EC [12:22:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:22:47]wFMCommunicate OK [12:22:47]SAM_PROTO_GetShiftState done [12:22:47]FM_GetShiftState done [12:22:47]req_shift_opened done [12:22:47]requested_item shift.open_date is exist - process it [12:22:47]req_shift_open_date [12:22:47]req_shift_open_date done [12:22:47]produce_requested_data done [12:22:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188248,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:22:47]process_action_free close_receipt [12:22:47]json_value_free [12:22:47]json_value_free done [12:22:47]process_json_proto returns [12:22:47]Send response to host [12:22:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188248,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:22:47]free response buf [12:22:47]execute_script done [12:22:47]execute_script returns [12:22:47]free content buf [12:22:47]Sock 9.Close socket [12:22:47]Sock 9.Thread stoped [12:22:51]OFD Sender: No OFD packet to send [12:22:56]OFD Sender: No OFD packet to send [12:23:01]OFD Sender: No OFD packet to send [12:23:06]OFD Sender: No OFD packet to send [12:23:11]OFD Sender: No OFD packet to send [12:23:16]OFD Sender: No OFD packet to send [12:23:21]OFD Sender: No OFD packet to send [12:23:26]OFD Sender: No OFD packet to send [12:23:31]OFD Sender: No OFD packet to send [12:23:36]OFD Sender: No OFD packet to send [12:23:41]OFD Sender: No OFD packet to send [12:23:46]OFD Sender: No OFD packet to send [12:23:51]OFD Sender: No OFD packet to send [12:23:56]OFD Sender: No OFD packet to send [12:24:01]accept exits with 7 [12:24:01]New connection [12:24:01]New thread 3066916196 created [12:24:01]Thread 3067059556 joined [12:24:01]Waiting for new connection... [12:24:01] Sock 7.Parse request [12:24:01]Sock 7.Check first char [12:24:01]Sock 7.First char is OK [12:24:01]request: POST /json_proto HTTP/1.0 [12:24:01]Method: POST [12:24:01]URL: /json_proto [12:24:01]Method is POST - this is cgi request [12:24:01]url: /json_proto [12:24:01]query_string will be loaded in cgi processing [12:24:01]execute_cgi json_proto POST (null) [12:24:01]execute_cgi path=json_proto method=POST [12:24:01]POST find Content-Length [12:24:01]Host: 172.17.42.131:8080 [12:24:01]Content-Length: 679 [12:24:01]Content-Type: application/json [12:24:01] [12:24:01]POST finish read [12:24:01]Found Content-Length = 679 [12:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]execute_script... [12:24: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)210303", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 18.380, "sum" : 1400.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1400.00, "total" : 1400.00, "payments": [ { "type": 0, "sum" : 1400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:24:01]POST & json_proto [12:24:01]process_json_proto [12:24:01]json parsed OK: [12:24:01]protocol is kg_v1.0 [12:24:01]action value=close_receipt [12:24:01]process_action close_receipt [12:24:01]cmd_close_receipt [12:24:01]MH_GetDate [12:24:01]Write to MH i2c: F0 00 00 7A 01 6A [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: F0 09 00 7A 01 00 62 99 17 67 A0 18 CA 66 D4 [12:24:01]GetLastDocTimeStamp 1729599764 [12:24:01]current date 1729599842 [12:24:01]FM_GetShiftState [12:24:01]SAM_PROTO_GetShiftState [12:24:01]wFMCommunicate request_size=4 [12:24:01]MH_SAM_APDU [12:24:01]CAPDU: 80 13 01 00 [12:24:01]Write to MH i2c: E2 08 00 7B 01 80 13 01 00 00 00 00 00 F9 [12:24:01]Write i2c OK [12:24:01]MH_I2C_Read... [12:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:01]Read from MH i2c: E2 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0E 00 [12:24:01]MH_I2C_Read... [12:24:01]Read from MH i2c: E2 0E 00 7B 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EE [12:24:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:24:01]wFMCommunicate OK [12:24:01]SAM_PROTO_GetShiftState done [12:24:01]FM_GetShiftState done [12:24:01]opened in 1729556094 [12:24:01]opened+sec_in_day 1729642494 [12:24:01]quantity*price = 140055 [12:24:01]sum+1 = 140057 [12:24:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 1400.00 Внесено: 1400.00 СДАЧА: 0.00 НСП 1% : 12.39 НДС 12% : 148.73 Наличными: 1400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 278 22.10.2024 12:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188249 ФПД: 68086813311906 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188249&fm=68086813311906&tin=02508201610067®Number=0000000000100030&sum=140000 [12:24:02]StoreToDocumentArchive [12:24:02]shift 461 fd 188249 [12:24:02]save to /storage/0461/doc_00188249 [12:24:02]save last doc name /storage/0461/doc_00188249 to /storage/kkm_last_doc_name [12:24:02]save OK [12:24:02]Clear old archive folders... [12:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:24:02]tlvbuf is 01DEF280 [12:24:02]SAM_PROTO_ClearQueue [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 09 00 00 [12:24:02]Write to MH i2c: E2 08 00 88 01 80 09 00 00 00 00 00 00 FB [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 88 01 00 90 00 FD [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_ClearQueue done [12:24:02]KKMCreateOFDPacket [12:24:02]OFDProtocolAddRootSTLVToBuf [12:24:02]FM_MakeSignedData [12:24:02]FM_MakeSignedData [12:24:02]SAM_PROTO_SignData [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 01 02 [12:24:02]Write to MH i2c: E2 08 00 89 01 80 0D 01 02 00 00 00 00 03 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 89 01 00 90 00 FE [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=255 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 62 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DF 02 00 35 04 06 00 3D EC B2 52 [12:24:02]Write to MH i2c: E2 02 01 8A 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 62 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DF 02 00 35 04 06 00 3D EC B2 52 00 00 72 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 8A 01 00 90 00 FF [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=7 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 02 02 02 43 A2 [12:24:02]Write to MH i2c: E2 0A 00 8B 01 80 0D 02 02 02 00 43 A2 00 00 EF [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 03 00 8B 01 00 90 00 00 [12:24:02]RAPDU: 90 00 [12:24:02]wFMCommunicate OK [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 0D 03 02 [12:24:02]Write to MH i2c: E2 08 00 8C 01 80 0D 03 02 00 00 00 00 08 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0B 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 0B 00 8C 01 00 19 A4 AC AB 84 9C CE F2 90 00 FD [12:24:02]RAPDU: 19 A4 AC AB 84 9C CE F2 90 00 [12:24:02]wFMCommunicate OK [12:24:02]SAM_PROTO_SignData done [12:24:02]FM_MakeSignedData done [12:24:02]CreateOFDProtocolMessage [12:24:02]wFMCommunicate request_size=4 [12:24:02]MH_SAM_APDU [12:24:02]CAPDU: 80 11 00 00 [12:24:02]Write to MH i2c: E2 08 00 8D 01 80 11 00 00 00 00 00 00 08 [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:02]Read from MH i2c: E2 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: E2 17 00 8D 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [12:24:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:24:02]wFMCommunicate OK [12:24:02]CreateOFDProtocolMessage done [12:24:02]OFDSenderStorePacket 188249 [12:24:02]StoreOFDPacket docnum=188249 [12:24:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1D 8A 04 01 15 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 62 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DF 02 00 35 04 06 00 3D EC B2 52 43 A2 19 A4 AC AB 84 9C CE F2 [12:24:02]CheckFolder [12:24:02]dirname=/storage/ofd_packets [12:24:02]CheckFolder done [12:24:02]ProducePacketName [12:24:02]name=ofd_packets/00188249 [12:24:02]NVStorageSaveData ofd_packets/00188249 [12:24:02]File name is /storage/ofd_packets/00188249 [12:24:02]Write 298 bytes [12:24:02]NVStorageSaveData done [12:24:02]OFDSenderStorePacket done [12:24:02]KKMCreateOFDPacket done [12:24:02]NVStorageSaveData kkm_last_timestamp [12:24:02]File name is /storage/kkm_last_timestamp [12:24:02]Write 4 bytes [12:24:02]NVStorageSaveData done [12:24:02]ExternCall_PrintAddStr [12:24:02]wPrintStart [12:24:02]Write to MH i2c: 01 00 00 8E 01 8F [12:24:02]Write i2c OK [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 [12:24:02]MH_I2C_Read... [12:24:02]Read from MH i2c: 01 07 00 8E 01 00 00 00 00 00 FF 0F A4 [12:24:02]RasterBufferAndPrint [12:24:02]line Счет N : (1)210303 [12:24:02]line ИНН: 02508201610067 [12:24:02]line Контрольно-Кассовый Чек [12:24:02]line ПРОДАЖА [12:24:02]line ТРК (МРК, ГНК) : 61 [12:24:02]line Товар: 2710194210 [12:24:02]line ДТ-К-5 [12:24:02]line 18.380 * 76.20 [12:24:02]line = 1400.56 [12:24:02]line НДС 12% НСП 1% [12:24:02]line > о реализуемом товаре [12:24:02]line ОКРУГЛЕНИЕ: -0.56 [12:24:02]line ИТОГО: 1400.00 [12:24:02]line Внесено: 1400.00 [12:24:02]line СДАЧА: 0.00 [12:24:02]line НСП 1% : 12.39 [12:24:02]line НДС 12% : 148.73 [12:24:02]line Наличными: 1400.00 [12:24:02]line Безнал.: 0.00 [12:24:02]line Место: АЗС № 86 "Партнер Нефть" [12:24:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:24:02]line СНО: Общий режим [12:24:02]line Чек 278 22.10.2024 12:24 [12:24:02]line Смена: 461 ФФД: 1.0 [12:24:02]line ЗНМ: 0300000155 [12:24:02]line РНМ: 0000000000100030 [12:24:02]line Версия ККМ: 001 [12:24:02]line ФМ: 0000000000965340 [12:24:02]line ФД: 188249 [12:24:02]line ФПД: 68086813311906 [12:24:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122402&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188249&fm=68086813311906&tin=02508201610067®Number=0000000000100030&sum=140000 [12:24:02]written 0, free lines is 4095 [12:24:02]OFD Sender: Processing packet 188249 [packets to send 1062, broken 1061] [12:24:02]ProducePacketName [12:24:02]name=ofd_packets/00188249 [12:24:02]OFD Sender: To server: pG, [12:24:02]CommunicateWithHost lk.salyk.kg:30040 [12:24:02]ConnectInit lk.salyk.kg [12:24:03]Write to MH i2c: 01 00 00 B9 01 BA [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: 01 07 00 B9 01 00 00 00 00 00 68 0C 35 [12:24:03]RasterBufferAndPrint [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]line [12:24:03]written 0, free lines is 3179 [12:24:03]MH_Cut [12:24:03]Write to MH i2c: D1 01 00 C0 01 01 93 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 01 00 [12:24:03]MH_I2C_Read... [12:24:03]Read from MH i2c: D1 01 00 C0 01 00 92 [12:24:03]Write to MH i2c: 01 00 00 C1 01 C2 [12:24:03]Write i2c OK [12:24:03]MH_I2C_Read... [12:24:03]Connected sock=10 [12:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1D 8A 04 01 15 82 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CC 47 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 18 23 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 22 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 3A 00 00 00 00 07 04 06 00 E0 22 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 01 00 00 F4 03 04 00 62 99 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 DF 02 00 35 04 06 00 3D EC B2 52 43 A2 19 A4 AC AB 84 9C CE F2 [12:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A8 AC 47 00 E3 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 39 36 35 33 34 30 10 04 04 00 59 DF 02 00 F4 03 04 00 4F 43 17 67 B6 04 01 00 00 0D A9 3A 96 A2 9D 1A E2 [12:24:03]CommunicateWithHost err = 0 [12:24:03]CheckOFDResponse [12:24:03]1017 (14) - 77093643461234 [12:24:03]1041 (16) - 0000000000965340 [12:24:03]1040 (4) - 188249 [12:24:03]1012 (4) - 22.10.2024 06:16 [12:24:03]1206 (1) - 0 [12:24:03]OFD Sender: Remove packet 188249 [12:24:03]ProducePacketName [12:24:03]name=ofd_packets/00188249 [12:24:03]NVStorageDeleteData [12:24:04]OFD Sender: No OFD packet to send [12:24:04]*** Cut start [12:24:04]*** Partial cut [12:24:04]*** CUTSNS_PIN = 1 [12:24:04]*** CUTSNS_PIN = 0 [12:24:04]*** Brake cut motor [12:24:05]Read from MH i2c: 01 [12:24:05]MH_I2C_Read... [12:24:05]*** Stop cut motor [12:24:05]*** Cut end [12:24:05]Read from MH i2c: 01 07 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: 01 07 00 C1 01 00 00 00 00 00 FF 0F D7 [12:24:05]process_action close_receipt done [12:24:05]requested_data is exist [12:24:05]produce_requested_data [12:24:05]requested_item fm.sn is exist - process it [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 11 00 00 [12:24:05]Write to MH i2c: E2 08 00 C2 01 80 11 00 00 00 00 00 00 3D [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 17 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 17 00 C2 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [12:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:24:05]wFMCommunicate OK [12:24:05]requested_item fd.num is exist - process it [12:24:05]SAM_PROTO_GetFieldsCounters [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 13 00 00 [12:24:05]Write to MH i2c: E2 08 00 C3 01 80 13 00 00 00 00 00 00 40 [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 62 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 62 00 C3 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [12:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 16 01 00 00 5E 04 04 00 16 01 00 00 57 04 04 00 17 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:24:05]wFMCommunicate OK [12:24:05]SAM_PROTO_GetFieldsCounters done [12:24:05]requested_item shift.num is exist - process it [12:24:05]requested_item shift.opened is exist - process it [12:24:05]req_shift_opened [12:24:05]FM_GetShiftState [12:24:05]SAM_PROTO_GetShiftState [12:24:05]wFMCommunicate request_size=4 [12:24:05]MH_SAM_APDU [12:24:05]CAPDU: 80 13 01 00 [12:24:05]Write to MH i2c: E2 08 00 C4 01 80 13 01 00 00 00 00 00 42 [12:24:05]Write i2c OK [12:24:05]MH_I2C_Read... [12:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:24:05]Read from MH i2c: E2 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 0E 00 [12:24:05]MH_I2C_Read... [12:24:05]Read from MH i2c: E2 0E 00 C4 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 37 [12:24:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:24:05]wFMCommunicate OK [12:24:05]SAM_PROTO_GetShiftState done [12:24:05]FM_GetShiftState done [12:24:05]req_shift_opened done [12:24:05]requested_item shift.open_date is exist - process it [12:24:05]req_shift_open_date [12:24:05]req_shift_open_date done [12:24:05]produce_requested_data done [12:24:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188249,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:24:05]process_action_free close_receipt [12:24:05]json_value_free [12:24:05]json_value_free done [12:24:05]process_json_proto returns [12:24:05]Send response to host [12:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188249,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:24:05]free response buf [12:24:05]execute_script done [12:24:05]execute_script returns [12:24:05]free content buf [12:24:05]Sock 7.Close socket [12:24:05]Sock 7.Thread stoped [12:24:09]OFD Sender: No OFD packet to send [12:24:14]OFD Sender: No OFD packet to send [12:24:19]OFD Sender: No OFD packet to send [12:24:24]OFD Sender: No OFD packet to send [12:24:29]OFD Sender: No OFD packet to send [12:24:34]OFD Sender: No OFD packet to send [12:24:39]OFD Sender: No OFD packet to send [12:24:44]OFD Sender: No OFD packet to send [12:24:49]OFD Sender: No OFD packet to send [12:24:54]OFD Sender: No OFD packet to send [12:24:59]OFD Sender: No OFD packet to send [12:25:04]OFD Sender: No OFD packet to send [12:25:09]OFD Sender: No OFD packet to send [12:25:14]OFD Sender: No OFD packet to send [12:25:19]OFD Sender: No OFD packet to send [12:25:24]OFD Sender: No OFD packet to send [12:25:29]OFD Sender: No OFD packet to send [12:25:34]OFD Sender: No OFD packet to send [12:25:39]OFD Sender: No OFD packet to send [12:25:44]OFD Sender: No OFD packet to send [12:25:49]OFD Sender: No OFD packet to send [12:25:54]OFD Sender: No OFD packet to send [12:25:59]OFD Sender: No OFD packet to send [12:26:04]OFD Sender: No OFD packet to send [12:26:09]OFD Sender: No OFD packet to send [12:26:14]OFD Sender: No OFD packet to send [12:26:19]OFD Sender: No OFD packet to send [12:26:24]OFD Sender: No OFD packet to send [12:26:29]OFD Sender: No OFD packet to send [12:26:34]OFD Sender: No OFD packet to send [12:26:39]accept exits with 9 [12:26:39]New connection [12:26:39]New thread 3067059556 created [12:26:39]Thread 3066916196 joined [12:26:39]Waiting for new connection... [12:26:39] Sock 9.Parse request [12:26:39]Sock 9.Check first char [12:26:39]Sock 9.First char is OK [12:26:39]request: POST /json_proto HTTP/1.0 [12:26:39]Method: POST [12:26:39]URL: /json_proto [12:26:39]Method is POST - this is cgi request [12:26:39]url: /json_proto [12:26:39]query_string will be loaded in cgi processing [12:26:39]execute_cgi json_proto POST (null) [12:26:39]execute_cgi path=json_proto method=POST [12:26:39]POST find Content-Length [12:26:39]Host: 172.17.42.131:8080 [12:26:39]Content-Length: 688 [12:26:39]Content-Type: application/json [12:26:39] [12:26:39]POST finish read [12:26:39]Found Content-Length = 688 [12:26:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:39]execute_script... [12:26: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)210306", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:26:39]POST & json_proto [12:26:39]process_json_proto [12:26:39]json parsed OK: [12:26:39]protocol is kg_v1.0 [12:26:39]action value=close_receipt [12:26:39]process_action close_receipt [12:26:39]cmd_close_receipt [12:26:39]MH_GetDate [12:26:39]Write to MH i2c: F0 00 00 C5 01 B5 [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: F0 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: F0 09 00 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: F0 09 00 C5 01 00 00 9A 17 67 A0 18 CA 66 BE [12:26:39]GetLastDocTimeStamp 1729599842 [12:26:39]current date 1729600000 [12:26:39]FM_GetShiftState [12:26:39]SAM_PROTO_GetShiftState [12:26:39]wFMCommunicate request_size=4 [12:26:39]MH_SAM_APDU [12:26:39]CAPDU: 80 13 01 00 [12:26:39]Write to MH i2c: E2 08 00 C6 01 80 13 01 00 00 00 00 00 44 [12:26:39]Write i2c OK [12:26:39]MH_I2C_Read... [12:26:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:39]Read from MH i2c: E2 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: E2 0E 00 [12:26:39]MH_I2C_Read... [12:26:39]Read from MH i2c: E2 0E 00 C6 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 39 [12:26:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:26:39]wFMCommunicate OK [12:26:39]SAM_PROTO_GetShiftState done [12:26:39]FM_GetShiftState done [12:26:39]opened in 1729556094 [12:26:39]opened+sec_in_day 1729642494 [12:26:39]quantity*price = 100051 [12:26:39]sum+1 = 100052 [12:26:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 279 22.10.2024 12:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188250 ФПД: 113610630224855 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122640&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188250&fm=113610630224855&tin=02508201610067®Number=0000000000100030&sum=100000 [12:26:40]StoreToDocumentArchive [12:26:40]shift 461 fd 188250 [12:26:40]save to /storage/0461/doc_00188250 [12:26:40]save last doc name /storage/0461/doc_00188250 to /storage/kkm_last_doc_name [12:26:40]save OK [12:26:40]Clear old archive folders... [12:26:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:26:40]tlvbuf is 01DF0BB0 [12:26:40]SAM_PROTO_ClearQueue [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 09 00 00 [12:26:40]Write to MH i2c: E2 08 00 D3 01 80 09 00 00 00 00 00 00 46 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 D3 01 00 90 00 48 [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]SAM_PROTO_ClearQueue done [12:26:40]KKMCreateOFDPacket [12:26:40]OFDProtocolAddRootSTLVToBuf [12:26:40]FM_MakeSignedData [12:26:40]FM_MakeSignedData [12:26:40]SAM_PROTO_SignData [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 01 02 [12:26:40]Write to MH i2c: E2 08 00 D4 01 80 0D 01 02 00 00 00 00 4E [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 D4 01 00 90 00 49 [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]wFMCommunicate request_size=255 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 01 00 00 F4 03 04 00 00 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DF 02 [12:26:40]Write to MH i2c: E2 02 01 D5 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 01 00 00 F4 03 04 00 00 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DF 02 00 00 E4 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 D5 01 00 90 00 4A [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]wFMCommunicate request_size=16 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 67 54 09 41 DB D7 [12:26:40]Write to MH i2c: E2 13 00 D6 01 80 0D 02 02 0B 00 00 35 04 06 00 67 54 09 41 DB D7 00 00 5D [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:40]Read from MH i2c: E2 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 [12:26:40]MH_I2C_Read... [12:26:40]Read from MH i2c: E2 03 00 D6 01 00 90 00 4B [12:26:40]RAPDU: 90 00 [12:26:40]wFMCommunicate OK [12:26:40]wFMCommunicate request_size=4 [12:26:40]MH_SAM_APDU [12:26:40]CAPDU: 80 0D 03 02 [12:26:40]Write to MH i2c: E2 08 00 D7 01 80 0D 03 02 00 00 00 00 53 [12:26:40]Write i2c OK [12:26:40]MH_I2C_Read... [12:26:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:41]Read from MH i2c: E2 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: E2 0B 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: E2 0B 00 D7 01 00 23 9E 12 25 8D E5 EE EC 90 00 98 [12:26:41]RAPDU: 23 9E 12 25 8D E5 EE EC 90 00 [12:26:41]wFMCommunicate OK [12:26:41]SAM_PROTO_SignData done [12:26:41]FM_MakeSignedData done [12:26:41]CreateOFDProtocolMessage [12:26:41]wFMCommunicate request_size=4 [12:26:41]MH_SAM_APDU [12:26:41]CAPDU: 80 11 00 00 [12:26:41]Write to MH i2c: E2 08 00 D8 01 80 11 00 00 00 00 00 00 53 [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:41]Read from MH i2c: E2 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: E2 17 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: E2 17 00 D8 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [12:26:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:26:41]wFMCommunicate OK [12:26:41]CreateOFDProtocolMessage done [12:26:41]OFDSenderStorePacket 188250 [12:26:41]StoreOFDPacket docnum=188250 [12:26:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 90 00 0D 01 2A B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 01 00 00 F4 03 04 00 00 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DF 02 00 35 04 06 00 67 54 09 41 DB D7 23 9E 12 25 8D E5 EE EC [12:26:41]CheckFolder [12:26:41]dirname=/storage/ofd_packets [12:26:41]CheckFolder done [12:26:41]ProducePacketName [12:26:41]name=ofd_packets/00188250 [12:26:41]NVStorageSaveData ofd_packets/00188250 [12:26:41]File name is /storage/ofd_packets/00188250 [12:26:41]Write 307 bytes [12:26:41]NVStorageSaveData done [12:26:41]OFDSenderStorePacket done [12:26:41]KKMCreateOFDPacket done [12:26:41]NVStorageSaveData kkm_last_timestamp [12:26:41]File name is /storage/kkm_last_timestamp [12:26:41]Write 4 bytes [12:26:41]NVStorageSaveData done [12:26:41]ExternCall_PrintAddStr [12:26:41]wPrintStart [12:26:41]Write to MH i2c: 01 00 00 D9 01 DA [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 07 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [12:26:41]RasterBufferAndPrint [12:26:41]line Счет N : (1)210306 [12:26:41]line ИНН: 02508201610067 [12:26:41]line Контрольно-Кассовый Чек [12:26:41]line ПРОДАЖА [12:26:41]line ТРК (МРК, ГНК) : 41 [12:26:41]line Товар: 2710194210 [12:26:41]line D-ENERGY ДТ-К-5 [12:26:41]line 12.960 * 77.20 [12:26:41]line = 1000.51 [12:26:41]line НДС 12% НСП 1% [12:26:41]line > о реализуемом товаре [12:26:41]line ОКРУГЛЕНИЕ: -0.51 [12:26:41]line ИТОГО: 1000.00 [12:26:41]line Внесено: 1000.00 [12:26:41]line СДАЧА: 0.00 [12:26:41]line НСП 1% : 8.85 [12:26:41]line НДС 12% : 106.25 [12:26:41]line Наличными: 1000.00 [12:26:41]line Безнал.: 0.00 [12:26:41]line Место: АЗС № 86 "Партнер Нефть" [12:26:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:26:41]line СНО: Общий режим [12:26:41]line Чек 279 22.10.2024 12:26 [12:26:41]line Смена: 461 ФФД: 1.0 [12:26:41]line ЗНМ: 0300000155 [12:26:41]line РНМ: 0000000000100030 [12:26:41]line Версия ККМ: 001 [12:26:41]line ФМ: 0000000000965340 [12:26:41]line ФД: 188250 [12:26:41]line ФПД: 113610630224855 [12:26:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122640&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188250&fm=113610630224855&tin=02508201610067®Number=0000000000100030&sum=100000 [12:26:41]OFD Sender: Processing packet 188250 [packets to send 1062, broken 1061] [12:26:41]ProducePacketName [12:26:41]name=ofd_packets/00188250 [12:26:41]OFD Sender: To server: pG, [12:26:41]CommunicateWithHost lk.salyk.kg:30040 [12:26:41]ConnectInit lk.salyk.kg [12:26:41]written 0, free lines is 4095 [12:26:41]Connected sock=7 [12:26:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 90 00 0D 01 2A B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 17 01 00 00 F4 03 04 00 00 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DF 02 00 35 04 06 00 67 54 09 41 DB D7 23 9E 12 25 8D E5 EE EC [12:26:41]Write to MH i2c: 01 00 00 04 02 06 [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 07 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: 01 07 00 04 02 00 00 00 00 00 71 0C 8A [12:26:41]RasterBufferAndPrint [12:26:41]line [12:26:41]line [12:26:41]line [12:26:41]line [12:26:41]line [12:26:41]written 0, free lines is 3187 [12:26:41]MH_Cut [12:26:41]Write to MH i2c: D1 01 00 0B 02 01 DF [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: D1 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: D1 01 00 [12:26:41]MH_I2C_Read... [12:26:41]Read from MH i2c: D1 01 00 0B 02 00 DE [12:26:41]Write to MH i2c: 01 00 00 0C 02 0E [12:26:41]Write i2c OK [12:26:41]MH_I2C_Read... [12:26:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 F6 47 00 EB 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A DF 02 00 F4 03 04 00 ED 43 17 67 B6 04 01 00 00 B7 77 A7 EF D5 0D C3 31 [12:26:41]CommunicateWithHost err = 0 [12:26:41]CheckOFDResponse [12:26:41]1017 (14) - 77093643461234 [12:26:41]1041 (16) - 0000000000965340 [12:26:41]1040 (4) - 188250 [12:26:41]1012 (4) - 22.10.2024 06:19 [12:26:41]1206 (1) - 0 [12:26:41]OFD Sender: Remove packet 188250 [12:26:41]ProducePacketName [12:26:41]name=ofd_packets/00188250 [12:26:41]NVStorageDeleteData [12:26:42]OFD Sender: No OFD packet to send [12:26:42]*** Cut start [12:26:42]*** Partial cut [12:26:42]*** CUTSNS_PIN = 1 [12:26:42]*** CUTSNS_PIN = 0 [12:26:43]*** Brake cut motor [12:26:43]Read from MH i2c: 01 [12:26:43]MH_I2C_Read... [12:26:43]*** Stop cut motor [12:26:43]*** Cut end [12:26:43]Read from MH i2c: 01 07 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: 01 07 00 0C 02 00 00 00 00 00 FF 0F 23 [12:26:43]process_action close_receipt done [12:26:43]requested_data is exist [12:26:43]produce_requested_data [12:26:43]requested_item fm.sn is exist - process it [12:26:43]wFMCommunicate request_size=4 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 11 00 00 [12:26:43]Write to MH i2c: E2 08 00 0D 02 80 11 00 00 00 00 00 00 89 [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 17 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 17 00 0D 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [12:26:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:26:43]wFMCommunicate OK [12:26:43]requested_item fd.num is exist - process it [12:26:43]SAM_PROTO_GetFieldsCounters [12:26:43]wFMCommunicate request_size=4 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 13 00 00 [12:26:43]Write to MH i2c: E2 08 00 0E 02 80 13 00 00 00 00 00 00 8C [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 62 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 62 00 0E 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 E4 [12:26:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 17 01 00 00 5E 04 04 00 17 01 00 00 57 04 04 00 18 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:43]wFMCommunicate OK [12:26:43]SAM_PROTO_GetFieldsCounters done [12:26:43]requested_item shift.num is exist - process it [12:26:43]requested_item shift.opened is exist - process it [12:26:43]req_shift_opened [12:26:43]FM_GetShiftState [12:26:43]SAM_PROTO_GetShiftState [12:26:43]wFMCommunicate request_size=4 [12:26:43]MH_SAM_APDU [12:26:43]CAPDU: 80 13 01 00 [12:26:43]Write to MH i2c: E2 08 00 0F 02 80 13 01 00 00 00 00 00 8E [12:26:43]Write i2c OK [12:26:43]MH_I2C_Read... [12:26:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:43]Read from MH i2c: E2 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 0E 00 [12:26:43]MH_I2C_Read... [12:26:43]Read from MH i2c: E2 0E 00 0F 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [12:26:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:26:43]wFMCommunicate OK [12:26:43]SAM_PROTO_GetShiftState done [12:26:43]FM_GetShiftState done [12:26:43]req_shift_opened done [12:26:43]requested_item shift.open_date is exist - process it [12:26:43]req_shift_open_date [12:26:43]req_shift_open_date done [12:26:43]produce_requested_data done [12:26:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188250,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:26:43]process_action_free close_receipt [12:26:43]json_value_free [12:26:43]json_value_free done [12:26:43]process_json_proto returns [12:26:43]Send response to host [12:26:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188250,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:26:43]free response buf [12:26:43]execute_script done [12:26:43]execute_script returns [12:26:43]free content buf [12:26:43]Sock 9.Close socket [12:26:43]Sock 9.Thread stoped [12:26:47]OFD Sender: No OFD packet to send [12:26:47]accept exits with 10 [12:26:47]New connection [12:26:47]New thread 3066916196 created [12:26:47]Thread 3067059556 joined [12:26:47]Waiting for new connection... [12:26:47] Sock 10.Parse request [12:26:47]Sock 10.Check first char [12:26:47]Sock 10.First char is OK [12:26:47]request: POST /json_proto HTTP/1.0 [12:26:47]Method: POST [12:26:47]URL: /json_proto [12:26:47]Method is POST - this is cgi request [12:26:47]url: /json_proto [12:26:47]query_string will be loaded in cgi processing [12:26:47]execute_cgi json_proto POST (null) [12:26:47]execute_cgi path=json_proto method=POST [12:26:47]POST find Content-Length [12:26:47]Host: 172.17.42.131:8080 [12:26:47]Content-Length: 688 [12:26:47]Content-Type: application/json [12:26:47] [12:26:47]POST finish read [12:26:47]Found Content-Length = 688 [12:26:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [12:26:47]execute_script... [12:26: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)210305", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [12:26:47]POST & json_proto [12:26:47]process_json_proto [12:26:47]json parsed OK: [12:26:47]protocol is kg_v1.0 [12:26:47]action value=close_receipt [12:26:47]process_action close_receipt [12:26:47]cmd_close_receipt [12:26:47]MH_GetDate [12:26:47]Write to MH i2c: F0 00 00 10 02 01 [12:26:47]Write i2c OK [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 09 00 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: F0 09 00 10 02 00 08 9A 17 67 A0 18 CA 66 12 [12:26:47]GetLastDocTimeStamp 1729600000 [12:26:47]current date 1729600008 [12:26:47]FM_GetShiftState [12:26:47]SAM_PROTO_GetShiftState [12:26:47]wFMCommunicate request_size=4 [12:26:47]MH_SAM_APDU [12:26:47]CAPDU: 80 13 01 00 [12:26:47]Write to MH i2c: E2 08 00 11 02 80 13 01 00 00 00 00 00 90 [12:26:47]Write i2c OK [12:26:47]MH_I2C_Read... [12:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:47]Read from MH i2c: E2 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: E2 0E 00 [12:26:47]MH_I2C_Read... [12:26:47]Read from MH i2c: E2 0E 00 11 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [12:26:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:26:47]wFMCommunicate OK [12:26:47]SAM_PROTO_GetShiftState done [12:26:47]FM_GetShiftState done [12:26:47]opened in 1729556094 [12:26:47]opened+sec_in_day 1729642494 [12:26:47]quantity*price = 150076 [12:26:47]sum+1 = 150078 [12:26:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 280 22.10.2024 12:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188251 ФПД: 81935672171075 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188251&fm=81935672171075&tin=02508201610067®Number=0000000000100030&sum=150000 [12:26:48]StoreToDocumentArchive [12:26:48]shift 461 fd 188251 [12:26:48]save to /storage/0461/doc_00188251 [12:26:48]save last doc name /storage/0461/doc_00188251 to /storage/kkm_last_doc_name [12:26:48]save OK [12:26:48]Clear old archive folders... [12:26:48]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:26:48]tlvbuf is 01E0BBC0 [12:26:48]SAM_PROTO_ClearQueue [12:26:48]wFMCommunicate request_size=4 [12:26:48]MH_SAM_APDU [12:26:48]CAPDU: 80 09 00 00 [12:26:48]Write to MH i2c: E2 08 00 1E 02 80 09 00 00 00 00 00 00 92 [12:26:48]Write i2c OK [12:26:48]MH_I2C_Read... [12:26:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:26:48]Read from MH i2c: E2 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 1E 02 00 90 00 94 [12:26:48]RAPDU: 90 00 [12:26:48]wFMCommunicate OK [12:26:48]SAM_PROTO_ClearQueue done [12:26:48]KKMCreateOFDPacket [12:26:48]OFDProtocolAddRootSTLVToBuf [12:26:48]FM_MakeSignedData [12:26:48]FM_MakeSignedData [12:26:48]SAM_PROTO_SignData [12:26:48]wFMCommunicate request_size=4 [12:26:48]MH_SAM_APDU [12:26:48]CAPDU: 80 0D 01 02 [12:26:48]Write to MH i2c: E2 08 00 1F 02 80 0D 01 02 00 00 00 00 9A [12:26:48]Write i2c OK [12:26:48]MH_I2C_Read... [12:26:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:26:48]Read from MH i2c: E2 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 [12:26:48]MH_I2C_Read... [12:26:48]Read from MH i2c: E2 03 00 1F 02 00 90 00 95 [12:26:48]RAPDU: 90 00 [12:26:48]wFMCommunicate OK [12:26:48]wFMCommunicate request_size=255 [12:26:48]MH_SAM_APDU [12:26:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 18 01 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DF 02 [12:26:48]Write to MH i2c: E2 02 01 20 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 18 01 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DF 02 00 00 8C [12:26:48]Write i2c OK [12:26:48]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 20 02 00 90 00 96 [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=16 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4A 85 22 A2 5A 43 [12:26:49]Write to MH i2c: E2 13 00 21 02 80 0D 02 02 0B 00 00 35 04 06 00 4A 85 22 A2 5A 43 00 00 22 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 03 00 21 02 00 90 00 97 [12:26:49]RAPDU: 90 00 [12:26:49]wFMCommunicate OK [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 0D 03 02 [12:26:49]Write to MH i2c: E2 08 00 22 02 80 0D 03 02 00 00 00 00 9F [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 0B 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 0B 00 22 02 00 EA D6 8F EC 0D 2D F4 A3 90 00 AC [12:26:49]RAPDU: EA D6 8F EC 0D 2D F4 A3 90 00 [12:26:49]wFMCommunicate OK [12:26:49]SAM_PROTO_SignData done [12:26:49]FM_MakeSignedData done [12:26:49]CreateOFDProtocolMessage [12:26:49]wFMCommunicate request_size=4 [12:26:49]MH_SAM_APDU [12:26:49]CAPDU: 80 11 00 00 [12:26:49]Write to MH i2c: E2 08 00 23 02 80 11 00 00 00 00 00 00 9F [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:49]Read from MH i2c: E2 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 17 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: E2 17 00 23 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [12:26:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:26:49]wFMCommunicate OK [12:26:49]CreateOFDProtocolMessage done [12:26:49]OFDSenderStorePacket 188251 [12:26:49]StoreOFDPacket docnum=188251 [12:26:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 78 35 0D 01 D9 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 18 01 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DF 02 00 35 04 06 00 4A 85 22 A2 5A 43 EA D6 8F EC 0D 2D F4 A3 [12:26:49]CheckFolder [12:26:49]dirname=/storage/ofd_packets [12:26:49]CheckFolder done [12:26:49]ProducePacketName [12:26:49]name=ofd_packets/00188251 [12:26:49]NVStorageSaveData ofd_packets/00188251 [12:26:49]File name is /storage/ofd_packets/00188251 [12:26:49]Write 307 bytes [12:26:49]NVStorageSaveData done [12:26:49]OFDSenderStorePacket done [12:26:49]KKMCreateOFDPacket done [12:26:49]NVStorageSaveData kkm_last_timestamp [12:26:49]File name is /storage/kkm_last_timestamp [12:26:49]Write 4 bytes [12:26:49]NVStorageSaveData done [12:26:49]ExternCall_PrintAddStr [12:26:49]wPrintStart [12:26:49]Write to MH i2c: 01 00 00 24 02 26 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [12:26:49]RasterBufferAndPrint [12:26:49]line Счет N : (1)210305 [12:26:49]line ИНН: 02508201610067 [12:26:49]line Контрольно-Кассовый Чек [12:26:49]line ПРОДАЖА [12:26:49]line ТРК (МРК, ГНК) : 21 [12:26:49]line Товар: 2710194210 [12:26:49]line D-ENERGY ДТ-К-5 [12:26:49]line 19.440 * 77.20 [12:26:49]line = 1500.77 [12:26:49]line НДС 12% НСП 1% [12:26:49]line > о реализуемом товаре [12:26:49]line ОКРУГЛЕНИЕ: -0.77 [12:26:49]line ИТОГО: 1500.00 [12:26:49]line Внесено: 1500.00 [12:26:49]line СДАЧА: 0.00 [12:26:49]line НСП 1% : 13.28 [12:26:49]line НДС 12% : 159.37 [12:26:49]line Наличными: 1500.00 [12:26:49]line Безнал.: 0.00 [12:26:49]line Место: АЗС № 86 "Партнер Нефть" [12:26:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:26:49]line СНО: Общий режим [12:26:49]line Чек 280 22.10.2024 12:26 [12:26:49]line Смена: 461 ФФД: 1.0 [12:26:49]line ЗНМ: 0300000155 [12:26:49]line РНМ: 0000000000100030 [12:26:49]line Версия ККМ: 001 [12:26:49]line ФМ: 0000000000965340 [12:26:49]line ФД: 188251 [12:26:49]line ФПД: 81935672171075 [12:26:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122648&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188251&fm=81935672171075&tin=02508201610067®Number=0000000000100030&sum=150000 [12:26:49]written 0, free lines is 4095 [12:26:49]OFD Sender: Processing packet 188251 [packets to send 1062, broken 1061] [12:26:49]ProducePacketName [12:26:49]name=ofd_packets/00188251 [12:26:49]OFD Sender: To server: pG, [12:26:49]CommunicateWithHost lk.salyk.kg:30040 [12:26:49]ConnectInit lk.salyk.kg [12:26:49]Write to MH i2c: 01 00 00 4F 02 51 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: 01 07 00 4F 02 00 00 00 00 00 69 0C CD [12:26:49]RasterBufferAndPrint [12:26:49]line [12:26:49]line [12:26:49]line [12:26:49]line [12:26:49]line [12:26:49]written 0, free lines is 3183 [12:26:49]MH_Cut [12:26:49]Write to MH i2c: D1 01 00 56 02 01 2A [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: D1 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: D1 01 00 [12:26:49]MH_I2C_Read... [12:26:49]Read from MH i2c: D1 01 00 56 02 00 29 [12:26:49]Write to MH i2c: 01 00 00 57 02 59 [12:26:49]Write i2c OK [12:26:49]MH_I2C_Read... [12:26:49]Connected sock=9 [12:26:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 78 35 0D 01 D9 8C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 18 01 00 00 F4 03 04 00 08 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DF 02 00 35 04 06 00 4A 85 22 A2 5A 43 EA D6 8F EC 0D 2D F4 A3 [12:26:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 3C 47 00 35 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B DF 02 00 F4 03 04 00 F6 43 17 67 B6 04 01 00 00 BF 70 84 3A 1A D5 17 77 [12:26:50]CommunicateWithHost err = 0 [12:26:50]CheckOFDResponse [12:26:50]1017 (14) - 77093643461234 [12:26:50]1041 (16) - 0000000000965340 [12:26:50]1040 (4) - 188251 [12:26:50]1012 (4) - 22.10.2024 06:19 [12:26:50]1206 (1) - 0 [12:26:50]OFD Sender: Remove packet 188251 [12:26:50]ProducePacketName [12:26:50]name=ofd_packets/00188251 [12:26:50]NVStorageDeleteData [12:26:50]OFD Sender: No OFD packet to send [12:26:50]*** Cut start [12:26:50]*** Partial cut [12:26:50]*** CUTSNS_PIN = 1 [12:26:51]*** CUTSNS_PIN = 0 [12:26:51]*** Brake cut motor [12:26:51]Read from MH i2c: 01 [12:26:51]MH_I2C_Read... [12:26:51]*** Stop cut motor [12:26:51]*** Cut end [12:26:51]Read from MH i2c: 01 07 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: 01 07 00 57 02 00 00 00 00 00 FF 0F 6E [12:26:51]process_action close_receipt done [12:26:51]requested_data is exist [12:26:51]produce_requested_data [12:26:51]requested_item fm.sn is exist - process it [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 11 00 00 [12:26:51]Write to MH i2c: E2 08 00 58 02 80 11 00 00 00 00 00 00 D4 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 17 00 58 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [12:26:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:26:51]wFMCommunicate OK [12:26:51]requested_item fd.num is exist - process it [12:26:51]SAM_PROTO_GetFieldsCounters [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 00 00 [12:26:51]Write to MH i2c: E2 08 00 59 02 80 13 00 00 00 00 00 00 D7 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 62 00 59 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 33 [12:26:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 18 01 00 00 5E 04 04 00 18 01 00 00 57 04 04 00 19 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetFieldsCounters done [12:26:51]requested_item shift.num is exist - process it [12:26:51]requested_item shift.opened is exist - process it [12:26:51]req_shift_opened [12:26:51]FM_GetShiftState [12:26:51]SAM_PROTO_GetShiftState [12:26:51]wFMCommunicate request_size=4 [12:26:51]MH_SAM_APDU [12:26:51]CAPDU: 80 13 01 00 [12:26:51]Write to MH i2c: E2 08 00 5A 02 80 13 01 00 00 00 00 00 D9 [12:26:51]Write i2c OK [12:26:51]MH_I2C_Read... [12:26:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:26:51]Read from MH i2c: E2 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0E 00 [12:26:51]MH_I2C_Read... [12:26:51]Read from MH i2c: E2 0E 00 5A 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [12:26:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:26:51]wFMCommunicate OK [12:26:51]SAM_PROTO_GetShiftState done [12:26:51]FM_GetShiftState done [12:26:51]req_shift_opened done [12:26:51]requested_item shift.open_date is exist - process it [12:26:51]req_shift_open_date [12:26:51]req_shift_open_date done [12:26:51]produce_requested_data done [12:26:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188251,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:26:51]process_action_free close_receipt [12:26:51]json_value_free [12:26:51]json_value_free done [12:26:51]process_json_proto returns [12:26:51]Send response to host [12:26:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188251,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:26:51]free response buf [12:26:51]execute_script done [12:26:51]execute_script returns [12:26:51]free content buf [12:26:51]Sock 10.Close socket [12:26:51]Sock 10.Thread stoped [12:26:55]OFD Sender: No OFD packet to send [12:27:00]OFD Sender: No OFD packet to send [12:27:05]OFD Sender: No OFD packet to send [12:27:10]OFD Sender: No OFD packet to send [12:27:15]OFD Sender: No OFD packet to send [12:27:20]OFD Sender: No OFD packet to send [12:27:26]OFD Sender: No OFD packet to send [12:27:31]OFD Sender: No OFD packet to send [12:27:36]OFD Sender: No OFD packet to send [12:27:40]accept exits with 7 [12:27:40]New connection [12:27:40]New thread 3067059556 created [12:27:40]Thread 3066916196 joined [12:27:40]Waiting for new connection... [12:27:40] Sock 7.Parse request [12:27:40]Sock 7.Check first char [12:27:40]Sock 7.First char is OK [12:27:40]request: POST /json_proto HTTP/1.0 [12:27:40]Method: POST [12:27:40]URL: /json_proto [12:27:40]Method is POST - this is cgi request [12:27:40]url: /json_proto [12:27:40]query_string will be loaded in cgi processing [12:27:40]execute_cgi json_proto POST (null) [12:27:40]execute_cgi path=json_proto method=POST [12:27:40]POST find Content-Length [12:27:40]Host: 172.17.42.131:8080 [12:27:40]Content-Length: 801 [12:27:40]Content-Type: application/json [12:27:40] [12:27:40]POST finish read [12:27:40]Found Content-Length = 801 [12:27:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:40]execute_script... [12:27: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)210304", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:27:40]POST & json_proto [12:27:40]process_json_proto [12:27:40]json parsed OK: [12:27:40]protocol is kg_v1.0 [12:27:40]action value=close_receipt [12:27:40]process_action close_receipt [12:27:40]cmd_close_receipt [12:27:40]MH_GetDate [12:27:40]Write to MH i2c: F0 00 00 5B 02 4C [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: F0 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: F0 09 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: F0 09 00 5B 02 00 3D 9A 17 67 A0 18 CA 66 92 [12:27:40]GetLastDocTimeStamp 1729600008 [12:27:40]current date 1729600061 [12:27:40]FM_GetShiftState [12:27:40]SAM_PROTO_GetShiftState [12:27:40]wFMCommunicate request_size=4 [12:27:40]MH_SAM_APDU [12:27:40]CAPDU: 80 13 01 00 [12:27:40]Write to MH i2c: E2 08 00 5C 02 80 13 01 00 00 00 00 00 DB [12:27:40]Write i2c OK [12:27:40]MH_I2C_Read... [12:27:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:40]Read from MH i2c: E2 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 0E 00 [12:27:40]MH_I2C_Read... [12:27:40]Read from MH i2c: E2 0E 00 5C 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [12:27:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:27:40]wFMCommunicate OK [12:27:40]SAM_PROTO_GetShiftState done [12:27:40]FM_GetShiftState done [12:27:40]opened in 1729556094 [12:27:40]opened+sec_in_day 1729642494 [12:27:40]quantity*price = 900074 [12:27:40]sum+1 = 900075 [12:27:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 281 22.10.2024 12:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188252 ФПД: 84228309995109 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122741&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188252&fm=84228309995109&tin=02508201610067®Number=0000000000100030&sum=900074 [12:27:41]StoreToDocumentArchive [12:27:41]shift 461 fd 188252 [12:27:41]save to /storage/0461/doc_00188252 [12:27:41]save last doc name /storage/0461/doc_00188252 to /storage/kkm_last_doc_name [12:27:41]save OK [12:27:41]Clear old archive folders... [12:27:41]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:27:41]tlvbuf is 01E491B0 [12:27:41]SAM_PROTO_ClearQueue [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 09 00 00 [12:27:41]Write to MH i2c: E2 08 00 69 02 80 09 00 00 00 00 00 00 DD [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 69 02 00 90 00 DF [12:27:41]RAPDU: 90 00 [12:27:41]wFMCommunicate OK [12:27:41]SAM_PROTO_ClearQueue done [12:27:41]KKMCreateOFDPacket [12:27:41]OFDProtocolAddRootSTLVToBuf [12:27:41]FM_MakeSignedData [12:27:41]FM_MakeSignedData [12:27:41]SAM_PROTO_SignData [12:27:41]wFMCommunicate request_size=4 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 0D 01 02 [12:27:41]Write to MH i2c: E2 08 00 6A 02 80 0D 01 02 00 00 00 00 E5 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:27:41]Read from MH i2c: E2 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 [12:27:41]MH_I2C_Read... [12:27:41]Read from MH i2c: E2 03 00 6A 02 00 90 00 E0 [12:27:41]RAPDU: 90 00 [12:27:41]wFMCommunicate OK [12:27:41]wFMCommunicate request_size=255 [12:27:41]MH_SAM_APDU [12:27:41]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3D 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DF 02 00 35 04 06 00 4C 9A EE 7F [12:27:41]Write to MH i2c: E2 02 01 6B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3D 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DF 02 00 35 04 06 00 4C 9A EE 7F 00 00 33 [12:27:41]Write i2c OK [12:27:41]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 03 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 03 00 6B 02 00 90 00 E1 [12:27:42]RAPDU: 90 00 [12:27:42]wFMCommunicate OK [12:27:42]wFMCommunicate request_size=7 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 0D 02 02 02 4E 65 [12:27:42]Write to MH i2c: E2 0A 00 6C 02 80 0D 02 02 02 00 4E 65 00 00 9F [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 03 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 03 00 6C 02 00 90 00 E2 [12:27:42]RAPDU: 90 00 [12:27:42]wFMCommunicate OK [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 0D 03 02 [12:27:42]Write to MH i2c: E2 08 00 6D 02 80 0D 03 02 00 00 00 00 EA [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 0B 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 0B 00 6D 02 00 3D D4 DD 3F A0 57 EF 25 90 00 23 [12:27:42]RAPDU: 3D D4 DD 3F A0 57 EF 25 90 00 [12:27:42]wFMCommunicate OK [12:27:42]SAM_PROTO_SignData done [12:27:42]FM_MakeSignedData done [12:27:42]CreateOFDProtocolMessage [12:27:42]wFMCommunicate request_size=4 [12:27:42]MH_SAM_APDU [12:27:42]CAPDU: 80 11 00 00 [12:27:42]Write to MH i2c: E2 08 00 6E 02 80 11 00 00 00 00 00 00 EA [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:42]Read from MH i2c: E2 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 17 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: E2 17 00 6E 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [12:27:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:27:42]wFMCommunicate OK [12:27:42]CreateOFDProtocolMessage done [12:27:42]OFDSenderStorePacket 188252 [12:27:42]StoreOFDPacket docnum=188252 [12:27:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 08 82 04 01 15 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3D 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DF 02 00 35 04 06 00 4C 9A EE 7F 4E 65 3D D4 DD 3F A0 57 EF 25 [12:27:42]CheckFolder [12:27:42]dirname=/storage/ofd_packets [12:27:42]CheckFolder done [12:27:42]ProducePacketName [12:27:42]name=ofd_packets/00188252 [12:27:42]NVStorageSaveData ofd_packets/00188252 [12:27:42]File name is /storage/ofd_packets/00188252 [12:27:42]Write 298 bytes [12:27:42]NVStorageSaveData done [12:27:42]OFDSenderStorePacket done [12:27:42]KKMCreateOFDPacket done [12:27:42]NVStorageSaveData kkm_last_timestamp [12:27:42]File name is /storage/kkm_last_timestamp [12:27:42]Write 4 bytes [12:27:42]NVStorageSaveData done [12:27:42]ExternCall_PrintAddStr [12:27:42]wPrintStart [12:27:42]Write to MH i2c: 01 00 00 6F 02 71 [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 07 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [12:27:42]RasterBufferAndPrint [12:27:42]line Счет N : (1)210304 [12:27:42]line ИНН: 02508201610067 [12:27:42]line Контрольно-Кассовый Чек [12:27:42]line ПРОДАЖА [12:27:42]line ТРК (МРК, ГНК) : 51 [12:27:42]line Товар: 2710194210 [12:27:42]line ДТ-К-5 [12:27:42]line 118.120 * 76.20 [12:27:42]line = 9000.74 [12:27:42]line НДС 12% НСП 1% [12:27:42]line > о реализуемом товаре [12:27:42]line ИТОГО: 9000.74 [12:27:42]line НСП 1% : 79.65 [12:27:42]line НДС 12% : 955.83 [12:27:42]line Наличными: 0.00 [12:27:42]line Безнал.: 9000.74 [12:27:42]line Место: АЗС № 86 "Партнер Нефть" [12:27:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:27:42]line СНО: Общий режим [12:27:42]line Чек 281 22.10.2024 12:27 [12:27:42]line Смена: 461 ФФД: 1.0 [12:27:42]line ЗНМ: 0300000155 [12:27:42]line РНМ: 0000000000100030 [12:27:42]line Версия ККМ: 001 [12:27:42]line Платежная система: O! деньги [12:27:42]line ФМ: 0000000000965340 [12:27:42]line ФД: 188252 [12:27:42]line ФПД: 84228309995109 [12:27:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122741&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188252&fm=84228309995109&tin=02508201610067®Number=0000000000100030&sum=900074 [12:27:42]written 0, free lines is 4095 [12:27:42]OFD Sender: Processing packet 188252 [packets to send 1062, broken 1061] [12:27:42]ProducePacketName [12:27:42]name=ofd_packets/00188252 [12:27:42]OFD Sender: To server: pG, [12:27:42]CommunicateWithHost lk.salyk.kg:30040 [12:27:42]ConnectInit lk.salyk.kg [12:27:42]Connected sock=10 [12:27:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 08 82 04 01 15 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 01 00 00 F4 03 04 00 3D 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C DF 02 00 35 04 06 00 4C 9A EE 7F 4E 65 3D D4 DD 3F A0 57 EF 25 [12:27:42]Write to MH i2c: 01 00 00 99 02 9B [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 07 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: 01 07 00 99 02 00 00 00 00 00 89 0C 37 [12:27:42]RasterBufferAndPrint [12:27:42]line [12:27:42]line [12:27:42]line [12:27:42]line [12:27:42]line [12:27:42]written 0, free lines is 3212 [12:27:42]MH_Cut [12:27:42]Write to MH i2c: D1 01 00 A0 02 01 74 [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: D1 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: D1 01 00 [12:27:42]MH_I2C_Read... [12:27:42]Read from MH i2c: D1 01 00 A0 02 00 73 [12:27:42]Write to MH i2c: 01 00 00 A1 02 A3 [12:27:42]Write i2c OK [12:27:42]MH_I2C_Read... [12:27:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 8C 47 00 CD 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 39 36 35 33 34 30 10 04 04 00 5C DF 02 00 F4 03 04 00 2A 44 17 67 B6 04 01 00 00 6C B7 60 43 05 74 68 69 [12:27:43]CommunicateWithHost err = 0 [12:27:43]CheckOFDResponse [12:27:43]1017 (14) - 77093643461234 [12:27:43]1041 (16) - 0000000000965340 [12:27:43]1040 (4) - 188252 [12:27:43]1012 (4) - 22.10.2024 06:20 [12:27:43]1206 (1) - 0 [12:27:43]OFD Sender: Remove packet 188252 [12:27:43]ProducePacketName [12:27:43]name=ofd_packets/00188252 [12:27:43]NVStorageDeleteData [12:27:43]OFD Sender: No OFD packet to send [12:27:43]*** Cut start [12:27:43]*** Partial cut [12:27:43]*** CUTSNS_PIN = 1 [12:27:44]*** CUTSNS_PIN = 0 [12:27:44]*** Brake cut motor [12:27:44]Read from MH i2c: 01 [12:27:44]MH_I2C_Read... [12:27:44]*** Stop cut motor [12:27:44]*** Cut end [12:27:44]Read from MH i2c: 01 07 00 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: 01 07 00 A1 02 00 00 00 00 00 FF 0F B8 [12:27:44]process_action close_receipt done [12:27:44]requested_data is exist [12:27:44]produce_requested_data [12:27:44]requested_item fm.sn is exist - process it [12:27:44]wFMCommunicate request_size=4 [12:27:44]MH_SAM_APDU [12:27:44]CAPDU: 80 11 00 00 [12:27:44]Write to MH i2c: E2 08 00 A2 02 80 11 00 00 00 00 00 00 1E [12:27:44]Write i2c OK [12:27:44]MH_I2C_Read... [12:27:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:27:44]Read from MH i2c: E2 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: E2 17 00 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: E2 17 00 A2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [12:27:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:27:44]wFMCommunicate OK [12:27:44]requested_item fd.num is exist - process it [12:27:44]SAM_PROTO_GetFieldsCounters [12:27:44]wFMCommunicate request_size=4 [12:27:44]MH_SAM_APDU [12:27:44]CAPDU: 80 13 00 00 [12:27:44]Write to MH i2c: E2 08 00 A3 02 80 13 00 00 00 00 00 00 21 [12:27:44]Write i2c OK [12:27:44]MH_I2C_Read... [12:27:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:27:44]Read from MH i2c: E2 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: E2 62 00 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: E2 62 00 A3 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 81 [12:27:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 19 01 00 00 5E 04 04 00 19 01 00 00 57 04 04 00 1A 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:27:44]wFMCommunicate OK [12:27:44]SAM_PROTO_GetFieldsCounters done [12:27:44]requested_item shift.num is exist - process it [12:27:44]requested_item shift.opened is exist - process it [12:27:44]req_shift_opened [12:27:44]FM_GetShiftState [12:27:44]SAM_PROTO_GetShiftState [12:27:44]wFMCommunicate request_size=4 [12:27:44]MH_SAM_APDU [12:27:44]CAPDU: 80 13 01 00 [12:27:44]Write to MH i2c: E2 08 00 A4 02 80 13 01 00 00 00 00 00 23 [12:27:44]Write i2c OK [12:27:44]MH_I2C_Read... [12:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:27:44]Read from MH i2c: E2 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: E2 0E 00 [12:27:44]MH_I2C_Read... [12:27:44]Read from MH i2c: E2 0E 00 A4 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 18 [12:27:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:27:44]wFMCommunicate OK [12:27:44]SAM_PROTO_GetShiftState done [12:27:44]FM_GetShiftState done [12:27:44]req_shift_opened done [12:27:44]requested_item shift.open_date is exist - process it [12:27:44]req_shift_open_date [12:27:44]req_shift_open_date done [12:27:44]produce_requested_data done [12:27:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188252,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:27:44]process_action_free close_receipt [12:27:44]json_value_free [12:27:44]json_value_free done [12:27:44]process_json_proto returns [12:27:44]Send response to host [12:27:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188252,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:27:44]free response buf [12:27:44]execute_script done [12:27:44]execute_script returns [12:27:44]free content buf [12:27:44]Sock 7.Close socket [12:27:44]Sock 7.Thread stoped [12:27:48]OFD Sender: No OFD packet to send [12:27:53]OFD Sender: No OFD packet to send [12:27:58]OFD Sender: No OFD packet to send [12:28:03]OFD Sender: No OFD packet to send [12:28:08]OFD Sender: No OFD packet to send [12:28:13]OFD Sender: No OFD packet to send [12:28:18]OFD Sender: No OFD packet to send [12:28:23]OFD Sender: No OFD packet to send [12:28:28]OFD Sender: No OFD packet to send [12:28:33]OFD Sender: No OFD packet to send [12:28:38]OFD Sender: No OFD packet to send [12:28:43]OFD Sender: No OFD packet to send [12:28:48]OFD Sender: No OFD packet to send [12:28:53]OFD Sender: No OFD packet to send [12:28:58]OFD Sender: No OFD packet to send [12:29:03]OFD Sender: No OFD packet to send [12:29:08]OFD Sender: No OFD packet to send [12:29:13]OFD Sender: No OFD packet to send [12:29:19]OFD Sender: No OFD packet to send [12:29:24]OFD Sender: No OFD packet to send [12:29:29]OFD Sender: No OFD packet to send [12:29:34]OFD Sender: No OFD packet to send [12:29:39]OFD Sender: No OFD packet to send [12:29:43]accept exits with 9 [12:29:43]New connection [12:29:43]New thread 3066916196 created [12:29:43]Thread 3067059556 joined [12:29:43]Waiting for new connection... [12:29:43] Sock 9.Parse request [12:29:43]Sock 9.Check first char [12:29:43]Sock 9.First char is OK [12:29:43]request: POST /json_proto HTTP/1.0 [12:29:43]Method: POST [12:29:43]URL: /json_proto [12:29:43]Method is POST - this is cgi request [12:29:43]url: /json_proto [12:29:43]query_string will be loaded in cgi processing [12:29:43]execute_cgi json_proto POST (null) [12:29:43]execute_cgi path=json_proto method=POST [12:29:43]POST find Content-Length [12:29:43]Host: 172.17.42.131:8080 [12:29:43]Content-Length: 688 [12:29:43]Content-Type: application/json [12:29:43] [12:29:43]POST finish read [12:29:43]Found Content-Length = 688 [12:29:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:29:43]execute_script... [12: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)210308", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [12:29:43]POST & json_proto [12:29:43]process_json_proto [12:29:43]json parsed OK: [12:29:43]protocol is kg_v1.0 [12:29:43]action value=close_receipt [12:29:43]process_action close_receipt [12:29:43]cmd_close_receipt [12:29:43]MH_GetDate [12:29:43]Write to MH i2c: F0 00 00 A5 02 96 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: F0 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: F0 09 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: F0 09 00 A5 02 00 B8 9A 17 67 A0 18 CA 66 57 [12:29:43]GetLastDocTimeStamp 1729600061 [12:29:43]current date 1729600184 [12:29:43]FM_GetShiftState [12:29:43]SAM_PROTO_GetShiftState [12:29:43]wFMCommunicate request_size=4 [12:29:43]MH_SAM_APDU [12:29:43]CAPDU: 80 13 01 00 [12:29:43]Write to MH i2c: E2 08 00 A6 02 80 13 01 00 00 00 00 00 25 [12:29:43]Write i2c OK [12:29:43]MH_I2C_Read... [12:29:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:43]Read from MH i2c: E2 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 0E 00 [12:29:43]MH_I2C_Read... [12:29:43]Read from MH i2c: E2 0E 00 A6 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [12:29:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:29:43]wFMCommunicate OK [12:29:43]SAM_PROTO_GetShiftState done [12:29:43]FM_GetShiftState done [12:29:43]opened in 1729556094 [12:29:43]opened+sec_in_day 1729642494 [12:29:43]quantity*price = 200025 [12:29:43]sum+1 = 200026 [12:29:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 282 22.10.2024 12:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188253 ФПД: 267489026275828 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122944&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188253&fm=267489026275828&tin=02508201610067®Number=0000000000100030&sum=200000 [12:29:44]StoreToDocumentArchive [12:29:44]shift 461 fd 188253 [12:29:44]save to /storage/0461/doc_00188253 [12:29:44]save last doc name /storage/0461/doc_00188253 to /storage/kkm_last_doc_name [12:29:44]save OK [12:29:44]Clear old archive folders... [12:29:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:29:44]tlvbuf is 01E428F0 [12:29:44]SAM_PROTO_ClearQueue [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 09 00 00 [12:29:44]Write to MH i2c: E2 08 00 B3 02 80 09 00 00 00 00 00 00 27 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 B3 02 00 90 00 29 [12:29:44]RAPDU: 90 00 [12:29:44]wFMCommunicate OK [12:29:44]SAM_PROTO_ClearQueue done [12:29:44]KKMCreateOFDPacket [12:29:44]OFDProtocolAddRootSTLVToBuf [12:29:44]FM_MakeSignedData [12:29:44]FM_MakeSignedData [12:29:44]SAM_PROTO_SignData [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 0D 01 02 [12:29:44]Write to MH i2c: E2 08 00 B4 02 80 0D 01 02 00 00 00 00 2F [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 B4 02 00 90 00 2A [12:29:44]RAPDU: 90 00 [12:29:44]wFMCommunicate OK [12:29:44]wFMCommunicate request_size=255 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 1A 01 00 00 F4 03 04 00 B8 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DF 02 [12:29:44]Write to MH i2c: E2 02 01 B5 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 1A 01 00 00 F4 03 04 00 B8 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DF 02 00 00 C7 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 B5 02 00 90 00 2B [12:29:44]RAPDU: 90 00 [12:29:44]wFMCommunicate OK [12:29:44]wFMCommunicate request_size=16 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F3 47 A4 64 79 F4 [12:29:44]Write to MH i2c: E2 13 00 B6 02 80 0D 02 02 0B 00 00 35 04 06 00 F3 47 A4 64 79 F4 00 00 36 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 03 00 B6 02 00 90 00 2C [12:29:44]RAPDU: 90 00 [12:29:44]wFMCommunicate OK [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 0D 03 02 [12:29:44]Write to MH i2c: E2 08 00 B7 02 80 0D 03 02 00 00 00 00 34 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 0B 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 0B 00 B7 02 00 0B E6 B5 E1 60 47 F9 42 90 00 9E [12:29:44]RAPDU: 0B E6 B5 E1 60 47 F9 42 90 00 [12:29:44]wFMCommunicate OK [12:29:44]SAM_PROTO_SignData done [12:29:44]FM_MakeSignedData done [12:29:44]CreateOFDProtocolMessage [12:29:44]wFMCommunicate request_size=4 [12:29:44]MH_SAM_APDU [12:29:44]CAPDU: 80 11 00 00 [12:29:44]Write to MH i2c: E2 08 00 B8 02 80 11 00 00 00 00 00 00 34 [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:44]Read from MH i2c: E2 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 17 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: E2 17 00 B8 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [12:29:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:29:44]wFMCommunicate OK [12:29:44]CreateOFDProtocolMessage done [12:29:44]OFDSenderStorePacket 188253 [12:29:44]StoreOFDPacket docnum=188253 [12:29:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 66 B7 0D 01 A0 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 1A 01 00 00 F4 03 04 00 B8 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DF 02 00 35 04 06 00 F3 47 A4 64 79 F4 0B E6 B5 E1 60 47 F9 42 [12:29:44]CheckFolder [12:29:44]dirname=/storage/ofd_packets [12:29:44]CheckFolder done [12:29:44]ProducePacketName [12:29:44]name=ofd_packets/00188253 [12:29:44]NVStorageSaveData ofd_packets/00188253 [12:29:44]File name is /storage/ofd_packets/00188253 [12:29:44]Write 307 bytes [12:29:44]NVStorageSaveData done [12:29:44]OFDSenderStorePacket done [12:29:44]KKMCreateOFDPacket done [12:29:44]NVStorageSaveData kkm_last_timestamp [12:29:44]File name is /storage/kkm_last_timestamp [12:29:44]Write 4 bytes [12:29:44]NVStorageSaveData done [12:29:44]ExternCall_PrintAddStr [12:29:44]wPrintStart [12:29:44]Write to MH i2c: 01 00 00 B9 02 BB [12:29:44]Write i2c OK [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: 01 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: 01 07 00 [12:29:44]MH_I2C_Read... [12:29:44]Read from MH i2c: 01 07 00 B9 02 00 00 00 00 00 FF 0F D0 [12:29:44]RasterBufferAndPrint [12:29:44]line Счет N : (1)210308 [12:29:44]line ИНН: 02508201610067 [12:29:44]line Контрольно-Кассовый Чек [12:29:44]line ПРОДАЖА [12:29:44]line ТРК (МРК, ГНК) : 41 [12:29:44]line Товар: 2710194210 [12:29:44]line D-ENERGY ДТ-К-5 [12:29:44]line 25.910 * 77.20 [12:29:44]line = 2000.25 [12:29:44]line НДС 12% НСП 1% [12:29:44]line > о реализуемом товаре [12:29:44]line ОКРУГЛЕНИЕ: -0.25 [12:29:44]line ИТОГО: 2000.00 [12:29:44]line Внесено: 2000.00 [12:29:44]line СДАЧА: 0.00 [12:29:44]line НСП 1% : 17.70 [12:29:44]line НДС 12% : 212.42 [12:29:44]line Наличными: 2000.00 [12:29:44]line Безнал.: 0.00 [12:29:44]line Место: АЗС № 86 "Партнер Нефть" [12:29:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:29:44]line СНО: Общий режим [12:29:44]line Чек 282 22.10.2024 12:29 [12:29:44]line Смена: 461 ФФД: 1.0 [12:29:44]line ЗНМ: 0300000155 [12:29:44]line РНМ: 0000000000100030 [12:29:44]line Версия ККМ: 001 [12:29:44]line ФМ: 0000000000965340 [12:29:44]line ФД: 188253 [12:29:44]line ФПД: 267489026275828 [12:29:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T122944&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188253&fm=267489026275828&tin=02508201610067®Number=0000000000100030&sum=200000 [12:29:44]written 0, free lines is 4095 [12:29:44]OFD Sender: Processing packet 188253 [packets to send 1062, broken 1061] [12:29:44]ProducePacketName [12:29:44]name=ofd_packets/00188253 [12:29:44]OFD Sender: To server: pG, [12:29:44]CommunicateWithHost lk.salyk.kg:30040 [12:29:44]ConnectInit lk.salyk.kg [12:29:45]Write to MH i2c: 01 00 00 E4 02 E6 [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: 01 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: 01 07 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 73 0C 6C [12:29:45]RasterBufferAndPrint [12:29:45]line [12:29:45]line [12:29:45]line [12:29:45]line [12:29:45]line [12:29:45]written 0, free lines is 3189 [12:29:45]MH_Cut [12:29:45]Write to MH i2c: D1 01 00 EB 02 01 BF [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: D1 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: D1 01 00 [12:29:45]MH_I2C_Read... [12:29:45]Read from MH i2c: D1 01 00 EB 02 00 BE [12:29:45]Write to MH i2c: 01 00 00 EC 02 EE [12:29:45]Write i2c OK [12:29:45]MH_I2C_Read... [12:29:45]Connected sock=10 [12:29:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 66 B7 0D 01 A0 0F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 1A 01 00 00 F4 03 04 00 B8 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D DF 02 00 35 04 06 00 F3 47 A4 64 79 F4 0B E6 B5 E1 60 47 F9 42 [12:29:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9F 8A 47 00 15 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 39 36 35 33 34 30 10 04 04 00 5D DF 02 00 F4 03 04 00 A5 44 17 67 B6 04 01 00 00 E6 FC FC 9B 76 C2 AE 07 [12:29:45]CommunicateWithHost err = 0 [12:29:45]CheckOFDResponse [12:29:45]1017 (14) - 77093643461234 [12:29:45]1041 (16) - 0000000000965340 [12:29:45]1040 (4) - 188253 [12:29:45]1012 (4) - 22.10.2024 06:22 [12:29:45]1206 (1) - 0 [12:29:45]OFD Sender: Remove packet 188253 [12:29:45]ProducePacketName [12:29:45]name=ofd_packets/00188253 [12:29:45]NVStorageDeleteData [12:29:46]OFD Sender: No OFD packet to send [12:29:46]*** Cut start [12:29:46]*** Partial cut [12:29:46]*** CUTSNS_PIN = 1 [12:29:46]*** CUTSNS_PIN = 0 [12:29:46]*** Brake cut motor [12:29:47]Read from MH i2c: 01 [12:29:47]MH_I2C_Read... [12:29:47]*** Stop cut motor [12:29:47]*** Cut end [12:29:47]Read from MH i2c: 01 07 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: 01 07 00 EC 02 00 00 00 00 00 FF 0F 03 [12:29:47]process_action close_receipt done [12:29:47]requested_data is exist [12:29:47]produce_requested_data [12:29:47]requested_item fm.sn is exist - process it [12:29:47]wFMCommunicate request_size=4 [12:29:47]MH_SAM_APDU [12:29:47]CAPDU: 80 11 00 00 [12:29:47]Write to MH i2c: E2 08 00 ED 02 80 11 00 00 00 00 00 00 69 [12:29:47]Write i2c OK [12:29:47]MH_I2C_Read... [12:29:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:29:47]Read from MH i2c: E2 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 17 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 17 00 ED 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [12:29:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:29:47]wFMCommunicate OK [12:29:47]requested_item fd.num is exist - process it [12:29:47]SAM_PROTO_GetFieldsCounters [12:29:47]wFMCommunicate request_size=4 [12:29:47]MH_SAM_APDU [12:29:47]CAPDU: 80 13 00 00 [12:29:47]Write to MH i2c: E2 08 00 EE 02 80 13 00 00 00 00 00 00 6C [12:29:47]Write i2c OK [12:29:47]MH_I2C_Read... [12:29:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:29:47]Read from MH i2c: E2 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 62 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 62 00 EE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 D0 [12:29:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1A 01 00 00 5E 04 04 00 1A 01 00 00 57 04 04 00 1B 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:29:47]wFMCommunicate OK [12:29:47]SAM_PROTO_GetFieldsCounters done [12:29:47]requested_item shift.num is exist - process it [12:29:47]requested_item shift.opened is exist - process it [12:29:47]req_shift_opened [12:29:47]FM_GetShiftState [12:29:47]SAM_PROTO_GetShiftState [12:29:47]wFMCommunicate request_size=4 [12:29:47]MH_SAM_APDU [12:29:47]CAPDU: 80 13 01 00 [12:29:47]Write to MH i2c: E2 08 00 EF 02 80 13 01 00 00 00 00 00 6E [12:29:47]Write i2c OK [12:29:47]MH_I2C_Read... [12:29:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:29:47]Read from MH i2c: E2 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 0E 00 [12:29:47]MH_I2C_Read... [12:29:47]Read from MH i2c: E2 0E 00 EF 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 63 [12:29:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:29:47]wFMCommunicate OK [12:29:47]SAM_PROTO_GetShiftState done [12:29:47]FM_GetShiftState done [12:29:47]req_shift_opened done [12:29:47]requested_item shift.open_date is exist - process it [12:29:47]req_shift_open_date [12:29:47]req_shift_open_date done [12:29:47]produce_requested_data done [12:29:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188253,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:29:47]process_action_free close_receipt [12:29:47]json_value_free [12:29:47]json_value_free done [12:29:47]process_json_proto returns [12:29:47]Send response to host [12:29:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188253,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:29:47]free response buf [12:29:47]execute_script done [12:29:47]execute_script returns [12:29:47]free content buf [12:29:47]Sock 9.Close socket [12:29:47]Sock 9.Thread stoped [12:29:51]OFD Sender: No OFD packet to send [12:29:56]OFD Sender: No OFD packet to send [12:30:01]OFD Sender: No OFD packet to send [12:30:06]OFD Sender: No OFD packet to send [12:30:11]OFD Sender: No OFD packet to send [12:30:16]OFD Sender: No OFD packet to send [12:30:21]OFD Sender: No OFD packet to send [12:30:26]OFD Sender: No OFD packet to send [12:30:29]accept exits with 7 [12:30:29]New connection [12:30:29]New thread 3067059556 created [12:30:29]Thread 3066916196 joined [12:30:29]Waiting for new connection... [12:30:29] Sock 7.Parse request [12:30:29]Sock 7.Check first char [12:30:29]Sock 7.First char is OK [12:30:29]request: POST /json_proto HTTP/1.0 [12:30:29]Method: POST [12:30:29]URL: /json_proto [12:30:29]Method is POST - this is cgi request [12:30:29]url: /json_proto [12:30:29]query_string will be loaded in cgi processing [12:30:29]execute_cgi json_proto POST (null) [12:30:29]execute_cgi path=json_proto method=POST [12:30:29]POST find Content-Length [12:30:29]Host: 172.17.42.131:8080 [12:30:29]Content-Length: 679 [12:30:29]Content-Type: application/json [12:30:29] [12:30:29]POST finish read [12:30:29]Found Content-Length = 679 [12:30:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:29]execute_script... [12:30: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)210307", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 91.870, "sum" : 7000.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 7000.00, "total" : 7000.00, "payments": [ { "type": 0, "sum" : 7000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:29]POST & json_proto [12:30:29]process_json_proto [12:30:29]json parsed OK: [12:30:29]protocol is kg_v1.0 [12:30:29]action value=close_receipt [12:30:29]process_action close_receipt [12:30:29]cmd_close_receipt [12:30:29]MH_GetDate [12:30:29]Write to MH i2c: F0 00 00 F0 02 E1 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: F0 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: F0 09 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: F0 09 00 F0 02 00 E6 9A 17 67 A0 18 CA 66 D0 [12:30:29]GetLastDocTimeStamp 1729600184 [12:30:29]current date 1729600230 [12:30:29]FM_GetShiftState [12:30:29]SAM_PROTO_GetShiftState [12:30:29]wFMCommunicate request_size=4 [12:30:29]MH_SAM_APDU [12:30:29]CAPDU: 80 13 01 00 [12:30:29]Write to MH i2c: E2 08 00 F1 02 80 13 01 00 00 00 00 00 70 [12:30:29]Write i2c OK [12:30:29]MH_I2C_Read... [12:30:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:29]Read from MH i2c: E2 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0E 00 [12:30:29]MH_I2C_Read... [12:30:29]Read from MH i2c: E2 0E 00 F1 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [12:30:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:30:29]wFMCommunicate OK [12:30:29]SAM_PROTO_GetShiftState done [12:30:29]FM_GetShiftState done [12:30:29]opened in 1729556094 [12:30:29]opened+sec_in_day 1729642494 [12:30:29]quantity*price = 700049 [12:30:29]sum+1 = 700050 [12:30:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 7000.00 Внесено: 7000.00 СДАЧА: 0.00 НСП 1% : 61.95 НДС 12% : 743.41 Наличными: 7000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 283 22.10.2024 12:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188254 ФПД: 6270978115705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188254&fm=6270978115705&tin=02508201610067®Number=0000000000100030&sum=700000 [12:30:31]StoreToDocumentArchive [12:30:31]shift 461 fd 188254 [12:30:31]save to /storage/0461/doc_00188254 [12:30:31]save last doc name /storage/0461/doc_00188254 to /storage/kkm_last_doc_name [12:30:31]save OK [12:30:31]Clear old archive folders... [12:30:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:30:31]tlvbuf is 01E4B320 [12:30:31]SAM_PROTO_ClearQueue [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 09 00 00 [12:30:31]Write to MH i2c: E2 08 00 FE 02 80 09 00 00 00 00 00 00 72 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 FE 02 00 90 00 74 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]SAM_PROTO_ClearQueue done [12:30:31]KKMCreateOFDPacket [12:30:31]OFDProtocolAddRootSTLVToBuf [12:30:31]FM_MakeSignedData [12:30:31]FM_MakeSignedData [12:30:31]SAM_PROTO_SignData [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 01 02 [12:30:31]Write to MH i2c: E2 08 00 FF 02 80 0D 01 02 00 00 00 00 7A [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 FF 02 00 90 00 75 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=255 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 E6 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DF 02 00 35 04 06 00 05 B4 13 6C [12:30:31]Write to MH i2c: E2 02 01 00 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 E6 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DF 02 00 35 04 06 00 05 B4 13 6C 00 00 8F [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 00 03 00 90 00 77 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=7 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 02 02 02 48 79 [12:30:31]Write to MH i2c: E2 0A 00 01 03 80 0D 02 02 02 00 48 79 00 00 43 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 03 00 01 03 00 90 00 78 [12:30:31]RAPDU: 90 00 [12:30:31]wFMCommunicate OK [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 0D 03 02 [12:30:31]Write to MH i2c: E2 08 00 02 03 80 0D 03 02 00 00 00 00 80 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 0B 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 0B 00 02 03 00 23 14 86 CC F1 04 9B 6E 90 00 08 [12:30:31]RAPDU: 23 14 86 CC F1 04 9B 6E 90 00 [12:30:31]wFMCommunicate OK [12:30:31]SAM_PROTO_SignData done [12:30:31]FM_MakeSignedData done [12:30:31]CreateOFDProtocolMessage [12:30:31]wFMCommunicate request_size=4 [12:30:31]MH_SAM_APDU [12:30:31]CAPDU: 80 11 00 00 [12:30:31]Write to MH i2c: E2 08 00 03 03 80 11 00 00 00 00 00 00 80 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]OFD Sender: No OFD packet to send [12:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:31]Read from MH i2c: E2 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 17 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: E2 17 00 03 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [12:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:30:31]wFMCommunicate OK [12:30:31]CreateOFDProtocolMessage done [12:30:31]OFDSenderStorePacket 188254 [12:30:31]StoreOFDPacket docnum=188254 [12:30:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 36 E9 04 01 66 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 E6 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DF 02 00 35 04 06 00 05 B4 13 6C 48 79 23 14 86 CC F1 04 9B 6E [12:30:31]CheckFolder [12:30:31]dirname=/storage/ofd_packets [12:30:31]CheckFolder done [12:30:31]ProducePacketName [12:30:31]name=ofd_packets/00188254 [12:30:31]NVStorageSaveData ofd_packets/00188254 [12:30:31]File name is /storage/ofd_packets/00188254 [12:30:31]Write 298 bytes [12:30:31]NVStorageSaveData done [12:30:31]OFDSenderStorePacket done [12:30:31]KKMCreateOFDPacket done [12:30:31]NVStorageSaveData kkm_last_timestamp [12:30:31]File name is /storage/kkm_last_timestamp [12:30:31]Write 4 bytes [12:30:31]NVStorageSaveData done [12:30:31]ExternCall_PrintAddStr [12:30:31]wPrintStart [12:30:31]Write to MH i2c: 01 00 00 04 03 07 [12:30:31]Write i2c OK [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: 01 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: 01 07 00 [12:30:31]MH_I2C_Read... [12:30:31]Read from MH i2c: 01 07 00 04 03 00 00 00 00 00 FF 0F 1C [12:30:31]RasterBufferAndPrint [12:30:31]line Счет N : (1)210307 [12:30:31]line ИНН: 02508201610067 [12:30:31]line Контрольно-Кассовый Чек [12:30:31]line ПРОДАЖА [12:30:31]line ТРК (МРК, ГНК) : 51 [12:30:31]line Товар: 2710194210 [12:30:31]line ДТ-К-5 [12:30:31]line 91.870 * 76.20 [12:30:31]line = 7000.49 [12:30:31]line НДС 12% НСП 1% [12:30:31]line > о реализуемом товаре [12:30:31]line ОКРУГЛЕНИЕ: -0.49 [12:30:31]line ИТОГО: 7000.00 [12:30:31]line Внесено: 7000.00 [12:30:31]line СДАЧА: 0.00 [12:30:31]line НСП 1% : 61.95 [12:30:31]line НДС 12% : 743.41 [12:30:31]line Наличными: 7000.00 [12:30:31]line Безнал.: 0.00 [12:30:31]line Место: АЗС № 86 "Партнер Нефть" [12:30:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:30:31]line СНО: Общий режим [12:30:31]line Чек 283 22.10.2024 12:30 [12:30:31]line Смена: 461 ФФД: 1.0 [12:30:31]line ЗНМ: 0300000155 [12:30:31]line РНМ: 0000000000100030 [12:30:31]line Версия ККМ: 001 [12:30:31]line ФМ: 0000000000965340 [12:30:31]line ФД: 188254 [12:30:31]line ФПД: 6270978115705 [12:30:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123030&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188254&fm=6270978115705&tin=02508201610067®Number=0000000000100030&sum=700000 [12:30:31]OFD Sender: Processing packet 188254 [packets to send 1062, broken 1061] [12:30:31]ProducePacketName [12:30:31]name=ofd_packets/00188254 [12:30:31]OFD Sender: To server: pG, [12:30:31]CommunicateWithHost lk.salyk.kg:30040 [12:30:31]ConnectInit lk.salyk.kg [12:30:31]written 0, free lines is 4095 [12:30:32]Connected sock=10 [12:30:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 36 E9 04 01 66 A8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 DE 66 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 91 AE 0A 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 AE 0A 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 33 18 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 65 22 01 00 00 00 07 04 06 00 60 AE 0A 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 01 00 00 F4 03 04 00 E6 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E DF 02 00 35 04 06 00 05 B4 13 6C 48 79 23 14 86 CC F1 04 9B 6E [12:30:32]Write to MH i2c: 01 00 00 2F 03 32 [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: 01 07 00 2F 03 00 00 00 00 00 6D 0C B2 [12:30:32]RasterBufferAndPrint [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]line [12:30:32]written 0, free lines is 3184 [12:30:32]MH_Cut [12:30:32]Write to MH i2c: D1 01 00 36 03 01 0B [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 01 00 [12:30:32]MH_I2C_Read... [12:30:32]Read from MH i2c: D1 01 00 36 03 00 0A [12:30:32]Write to MH i2c: 01 00 00 37 03 3A [12:30:32]Write i2c OK [12:30:32]MH_I2C_Read... [12:30:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D1 C7 47 00 EA 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 39 36 35 33 34 30 10 04 04 00 5E DF 02 00 F4 03 04 00 D4 44 17 67 B6 04 01 00 00 91 C5 B0 27 EA 29 3D AD [12:30:32]CommunicateWithHost err = 0 [12:30:32]CheckOFDResponse [12:30:32]1017 (14) - 77093643461234 [12:30:32]1041 (16) - 0000000000965340 [12:30:32]1040 (4) - 188254 [12:30:32]1012 (4) - 22.10.2024 06:23 [12:30:32]1206 (1) - 0 [12:30:32]OFD Sender: Remove packet 188254 [12:30:32]ProducePacketName [12:30:32]name=ofd_packets/00188254 [12:30:32]NVStorageDeleteData [12:30:33]OFD Sender: No OFD packet to send [12:30:33]*** Cut start [12:30:33]*** Partial cut [12:30:33]*** CUTSNS_PIN = 1 [12:30:33]*** CUTSNS_PIN = 0 [12:30:33]*** Brake cut motor [12:30:34]Read from MH i2c: 01 [12:30:34]MH_I2C_Read... [12:30:34]*** Stop cut motor [12:30:34]*** Cut end [12:30:34]Read from MH i2c: 01 07 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: 01 07 00 37 03 00 00 00 00 00 FF 0F 4F [12:30:34]process_action close_receipt done [12:30:34]requested_data is exist [12:30:34]produce_requested_data [12:30:34]requested_item fm.sn is exist - process it [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 11 00 00 [12:30:34]Write to MH i2c: E2 08 00 38 03 80 11 00 00 00 00 00 00 B5 [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 17 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 17 00 38 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [12:30:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:30:34]wFMCommunicate OK [12:30:34]requested_item fd.num is exist - process it [12:30:34]SAM_PROTO_GetFieldsCounters [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 13 00 00 [12:30:34]Write to MH i2c: E2 08 00 39 03 80 13 00 00 00 00 00 00 B8 [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 62 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 62 00 39 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [12:30:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1B 01 00 00 5E 04 04 00 1B 01 00 00 57 04 04 00 1C 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:34]wFMCommunicate OK [12:30:34]SAM_PROTO_GetFieldsCounters done [12:30:34]requested_item shift.num is exist - process it [12:30:34]requested_item shift.opened is exist - process it [12:30:34]req_shift_opened [12:30:34]FM_GetShiftState [12:30:34]SAM_PROTO_GetShiftState [12:30:34]wFMCommunicate request_size=4 [12:30:34]MH_SAM_APDU [12:30:34]CAPDU: 80 13 01 00 [12:30:34]Write to MH i2c: E2 08 00 3A 03 80 13 01 00 00 00 00 00 BA [12:30:34]Write i2c OK [12:30:34]MH_I2C_Read... [12:30:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:34]Read from MH i2c: E2 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 0E 00 [12:30:34]MH_I2C_Read... [12:30:34]Read from MH i2c: E2 0E 00 3A 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AF [12:30:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:30:34]wFMCommunicate OK [12:30:34]SAM_PROTO_GetShiftState done [12:30:34]FM_GetShiftState done [12:30:34]req_shift_opened done [12:30:34]requested_item shift.open_date is exist - process it [12:30:34]req_shift_open_date [12:30:34]req_shift_open_date done [12:30:34]produce_requested_data done [12:30:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188254,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:30:34]process_action_free close_receipt [12:30:34]json_value_free [12:30:34]json_value_free done [12:30:34]process_json_proto returns [12:30:34]Send response to host [12:30:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188254,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:30:34]free response buf [12:30:34]execute_script done [12:30:34]execute_script returns [12:30:34]free content buf [12:30:34]Sock 7.Close socket [12:30:34]Sock 7.Thread stoped [12:30:35]accept exits with 9 [12:30:35]New connection [12:30:35]New thread 3066916196 created [12:30:35]Thread 3067059556 joined [12:30:35]Waiting for new connection... [12:30:35] Sock 9.Parse request [12:30:35]Sock 9.Check first char [12:30:35]Sock 9.First char is OK [12:30:35]request: POST /json_proto HTTP/1.0 [12:30:35]Method: POST [12:30:35]URL: /json_proto [12:30:35]Method is POST - this is cgi request [12:30:35]url: /json_proto [12:30:35]query_string will be loaded in cgi processing [12:30:35]execute_cgi json_proto POST (null) [12:30:35]execute_cgi path=json_proto method=POST [12:30:35]POST find Content-Length [12:30:35]Host: 172.17.42.131:8080 [12:30:35]Content-Length: 769 [12:30:35]Content-Type: application/json [12:30:35] [12:30:35]POST finish read [12:30:35]Found Content-Length = 769 [12:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:35]execute_script... [12:30:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210309", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:30:35]POST & json_proto [12:30:35]process_json_proto [12:30:35]json parsed OK: [12:30:35]protocol is kg_v1.0 [12:30:35]action value=close_receipt [12:30:35]process_action close_receipt [12:30:35]cmd_close_receipt [12:30:35]MH_GetDate [12:30:35]Write to MH i2c: F0 00 00 3B 03 2D [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: F0 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: F0 09 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: F0 09 00 3B 03 00 EC 9A 17 67 A0 18 CA 66 22 [12:30:35]GetLastDocTimeStamp 1729600230 [12:30:35]current date 1729600236 [12:30:35]FM_GetShiftState [12:30:35]SAM_PROTO_GetShiftState [12:30:35]wFMCommunicate request_size=4 [12:30:35]MH_SAM_APDU [12:30:35]CAPDU: 80 13 01 00 [12:30:35]Write to MH i2c: E2 08 00 3C 03 80 13 01 00 00 00 00 00 BC [12:30:35]Write i2c OK [12:30:35]MH_I2C_Read... [12:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:35]Read from MH i2c: E2 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0E 00 [12:30:35]MH_I2C_Read... [12:30:35]Read from MH i2c: E2 0E 00 3C 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [12:30:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:30:35]wFMCommunicate OK [12:30:35]SAM_PROTO_GetShiftState done [12:30:35]FM_GetShiftState done [12:30:35]opened in 1729556094 [12:30:35]opened+sec_in_day 1729642494 [12:30:35]quantity*price = 100021 [12:30:35]sum+1 = 100023 [12:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 284 22.10.2024 12:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188255 ФПД: 160133437178727 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188255&fm=160133437178727&tin=02508201610067®Number=0000000000100030&sum=100022 [12:30:37]StoreToDocumentArchive [12:30:37]shift 461 fd 188255 [12:30:37]save to /storage/0461/doc_00188255 [12:30:37]save last doc name /storage/0461/doc_00188255 to /storage/kkm_last_doc_name [12:30:37]save OK [12:30:37]Clear old archive folders... [12:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:30:37]tlvbuf is 01E34180 [12:30:37]SAM_PROTO_ClearQueue [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 09 00 00 [12:30:37]Write to MH i2c: E2 08 00 49 03 80 09 00 00 00 00 00 00 BE [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 49 03 00 90 00 C0 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]SAM_PROTO_ClearQueue done [12:30:37]KKMCreateOFDPacket [12:30:37]OFDProtocolAddRootSTLVToBuf [12:30:37]FM_MakeSignedData [12:30:37]FM_MakeSignedData [12:30:37]SAM_PROTO_SignData [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 01 02 [12:30:37]Write to MH i2c: E2 08 00 4A 03 80 0D 01 02 00 00 00 00 C6 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 4A 03 00 90 00 C1 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=255 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EC 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DF 02 00 35 04 06 00 91 [12:30:37]Write to MH i2c: E2 02 01 4B 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EC 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DF 02 00 35 04 06 00 91 00 00 42 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 4B 03 00 90 00 C2 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=10 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 02 02 05 A3 F8 A3 C3 67 [12:30:37]Write to MH i2c: E2 0D 00 4C 03 80 0D 02 02 05 00 A3 F8 A3 C3 67 00 00 3B [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 03 00 4C 03 00 90 00 C3 [12:30:37]RAPDU: 90 00 [12:30:37]wFMCommunicate OK [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 0D 03 02 [12:30:37]Write to MH i2c: E2 08 00 4D 03 80 0D 03 02 00 00 00 00 CB [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 0B 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 0B 00 4D 03 00 68 C7 CA 86 8B A3 9E E7 90 00 FE [12:30:37]RAPDU: 68 C7 CA 86 8B A3 9E E7 90 00 [12:30:37]wFMCommunicate OK [12:30:37]SAM_PROTO_SignData done [12:30:37]FM_MakeSignedData done [12:30:37]CreateOFDProtocolMessage [12:30:37]wFMCommunicate request_size=4 [12:30:37]MH_SAM_APDU [12:30:37]CAPDU: 80 11 00 00 [12:30:37]Write to MH i2c: E2 08 00 4E 03 80 11 00 00 00 00 00 00 CB [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:37]Read from MH i2c: E2 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 17 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: E2 17 00 4E 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [12:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:30:37]wFMCommunicate OK [12:30:37]CreateOFDProtocolMessage done [12:30:37]OFDSenderStorePacket 188255 [12:30:37]StoreOFDPacket docnum=188255 [12:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 4D 07 01 A9 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EC 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DF 02 00 35 04 06 00 91 A3 F8 A3 C3 67 68 C7 CA 86 8B A3 9E E7 [12:30:37]CheckFolder [12:30:37]dirname=/storage/ofd_packets [12:30:37]CheckFolder done [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00188255 [12:30:37]NVStorageSaveData ofd_packets/00188255 [12:30:37]File name is /storage/ofd_packets/00188255 [12:30:37]Write 301 bytes [12:30:37]NVStorageSaveData done [12:30:37]OFDSenderStorePacket done [12:30:37]KKMCreateOFDPacket done [12:30:37]NVStorageSaveData kkm_last_timestamp [12:30:37]File name is /storage/kkm_last_timestamp [12:30:37]Write 4 bytes [12:30:37]NVStorageSaveData done [12:30:37]ExternCall_PrintAddStr [12:30:37]wPrintStart [12:30:37]Write to MH i2c: 01 00 00 4F 03 52 [12:30:37]Write i2c OK [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 07 00 [12:30:37]MH_I2C_Read... [12:30:37]Read from MH i2c: 01 07 00 4F 03 00 00 00 00 00 FF 0F 67 [12:30:37]RasterBufferAndPrint [12:30:37]line Счет N : (1)210309 [12:30:37]line ИНН: 02508201610067 [12:30:37]line Контрольно-Кассовый Чек [12:30:37]line ПРОДАЖА [12:30:37]line ТРК (МРК, ГНК) : 13 [12:30:37]line Товар: 2710124500 [12:30:37]line Аи-95-К-3 [12:30:37]line 13.480 * 74.20 [12:30:37]line = 1000.22 [12:30:37]line НДС 12% НСП 1% [12:30:37]line > о реализуемом товаре [12:30:37]line ИТОГО: 1000.22 [12:30:37]line НСП 1% : 8.85 [12:30:37]line НДС 12% : 106.22 [12:30:37]line Наличными: 0.00 [12:30:37]line Безнал.: 1000.22 [12:30:37]line Место: АЗС № 86 "Партнер Нефть" [12:30:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:30:37]line СНО: Общий режим [12:30:37]line Чек 284 22.10.2024 12:30 [12:30:37]line Смена: 461 ФФД: 1.0 [12:30:37]line ЗНМ: 0300000155 [12:30:37]line РНМ: 0000000000100030 [12:30:37]line Версия ККМ: 001 [12:30:37]line Платежная система: Mbank [12:30:37]line ФМ: 0000000000965340 [12:30:37]line ФД: 188255 [12:30:37]line ФПД: 160133437178727 [12:30:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123036&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188255&fm=160133437178727&tin=02508201610067®Number=0000000000100030&sum=100022 [12:30:37]written 0, free lines is 4095 [12:30:37]OFD Sender: Processing packet 188255 [packets to send 1062, broken 1061] [12:30:37]ProducePacketName [12:30:37]name=ofd_packets/00188255 [12:30:37]OFD Sender: To server: pG, [12:30:37]CommunicateWithHost lk.salyk.kg:30040 [12:30:37]ConnectInit lk.salyk.kg [12:30:37]Connected sock=10 [12:30:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A1 4D 07 01 A9 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 01 00 00 F4 03 04 00 EC 9A 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F DF 02 00 35 04 06 00 91 A3 F8 A3 C3 67 68 C7 CA 86 8B A3 9E E7 [12:30:38]Write to MH i2c: 01 00 00 78 03 7B [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: 01 07 00 78 03 00 00 00 00 00 A7 0C 35 [12:30:38]RasterBufferAndPrint [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]line [12:30:38]written 0, free lines is 3246 [12:30:38]MH_Cut [12:30:38]Write to MH i2c: D1 01 00 7F 03 01 54 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 01 00 [12:30:38]MH_I2C_Read... [12:30:38]Read from MH i2c: D1 01 00 7F 03 00 53 [12:30:38]Write to MH i2c: 01 00 00 80 03 83 [12:30:38]Write i2c OK [12:30:38]MH_I2C_Read... [12:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 93 15 47 00 0A 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 39 36 35 33 34 30 10 04 04 00 5F DF 02 00 F4 03 04 00 DA 44 17 67 B6 04 01 00 00 AB 17 1B 23 F7 64 66 BD [12:30:38]CommunicateWithHost err = 0 [12:30:38]CheckOFDResponse [12:30:38]1017 (14) - 77093643461234 [12:30:38]1041 (16) - 0000000000965340 [12:30:38]1040 (4) - 188255 [12:30:38]1012 (4) - 22.10.2024 06:23 [12:30:38]1206 (1) - 0 [12:30:38]OFD Sender: Remove packet 188255 [12:30:38]ProducePacketName [12:30:38]name=ofd_packets/00188255 [12:30:38]NVStorageDeleteData [12:30:38]OFD Sender: No OFD packet to send [12:30:39]*** Cut start [12:30:39]*** Partial cut [12:30:39]*** CUTSNS_PIN = 1 [12:30:39]*** CUTSNS_PIN = 0 [12:30:39]*** Brake cut motor [12:30:39]Read from MH i2c: 01 [12:30:39]MH_I2C_Read... [12:30:39]*** Stop cut motor [12:30:39]*** Cut end [12:30:39]Read from MH i2c: 01 07 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: 01 07 00 80 03 00 00 00 00 00 FF 0F 98 [12:30:39]process_action close_receipt done [12:30:39]requested_data is exist [12:30:39]produce_requested_data [12:30:39]requested_item fm.sn is exist - process it [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 11 00 00 [12:30:39]Write to MH i2c: E2 08 00 81 03 80 11 00 00 00 00 00 00 FE [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:30:39]Read from MH i2c: E2 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 [12:30:39]MH_I2C_Read... [12:30:39]Read from MH i2c: E2 17 00 81 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4C [12:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:30:39]wFMCommunicate OK [12:30:39]requested_item fd.num is exist - process it [12:30:39]SAM_PROTO_GetFieldsCounters [12:30:39]wFMCommunicate request_size=4 [12:30:39]MH_SAM_APDU [12:30:39]CAPDU: 80 13 00 00 [12:30:39]Write to MH i2c: E2 08 00 82 03 80 13 00 00 00 00 00 00 01 [12:30:39]Write i2c OK [12:30:39]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 62 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 62 00 82 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 6D [12:30:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1C 01 00 00 5E 04 04 00 1C 01 00 00 57 04 04 00 1D 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_GetFieldsCounters done [12:30:40]requested_item shift.num is exist - process it [12:30:40]requested_item shift.opened is exist - process it [12:30:40]req_shift_opened [12:30:40]FM_GetShiftState [12:30:40]SAM_PROTO_GetShiftState [12:30:40]wFMCommunicate request_size=4 [12:30:40]MH_SAM_APDU [12:30:40]CAPDU: 80 13 01 00 [12:30:40]Write to MH i2c: E2 08 00 83 03 80 13 01 00 00 00 00 00 03 [12:30:40]Write i2c OK [12:30:40]MH_I2C_Read... [12:30:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:30:40]Read from MH i2c: E2 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0E 00 [12:30:40]MH_I2C_Read... [12:30:40]Read from MH i2c: E2 0E 00 83 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F8 [12:30:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:30:40]wFMCommunicate OK [12:30:40]SAM_PROTO_GetShiftState done [12:30:40]FM_GetShiftState done [12:30:40]req_shift_opened done [12:30:40]requested_item shift.open_date is exist - process it [12:30:40]req_shift_open_date [12:30:40]req_shift_open_date done [12:30:40]produce_requested_data done [12:30:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188255,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:30:40]process_action_free close_receipt [12:30:40]json_value_free [12:30:40]json_value_free done [12:30:40]process_json_proto returns [12:30:40]Send response to host [12:30:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188255,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:30:40]free response buf [12:30:40]execute_script done [12:30:40]execute_script returns [12:30:40]free content buf [12:30:40]Sock 9.Close socket [12:30:40]Sock 9.Thread stoped [12:30:43]OFD Sender: No OFD packet to send [12:30:48]OFD Sender: No OFD packet to send [12:30:53]OFD Sender: No OFD packet to send [12:30:59]OFD Sender: No OFD packet to send [12:31:04]OFD Sender: No OFD packet to send [12:31:09]OFD Sender: No OFD packet to send [12:31:14]OFD Sender: No OFD packet to send [12:31:19]OFD Sender: No OFD packet to send [12:31:24]OFD Sender: No OFD packet to send [12:31:29]OFD Sender: No OFD packet to send [12:31:34]OFD Sender: No OFD packet to send [12:31:39]OFD Sender: No OFD packet to send [12:31:44]OFD Sender: No OFD packet to send [12:31:49]OFD Sender: No OFD packet to send [12:31:54]OFD Sender: No OFD packet to send [12:31:59]OFD Sender: No OFD packet to send [12:32:04]OFD Sender: No OFD packet to send [12:32:09]OFD Sender: No OFD packet to send [12:32:14]OFD Sender: No OFD packet to send [12:32:19]OFD Sender: No OFD packet to send [12:32:24]OFD Sender: No OFD packet to send [12:32:29]OFD Sender: No OFD packet to send [12:32:34]OFD Sender: No OFD packet to send [12:32:39]OFD Sender: No OFD packet to send [12:32:44]OFD Sender: No OFD packet to send [12:32:49]OFD Sender: No OFD packet to send [12:32:54]OFD Sender: No OFD packet to send [12:32:59]OFD Sender: No OFD packet to send [12:33:04]OFD Sender: No OFD packet to send [12:33:09]OFD Sender: No OFD packet to send [12:33:14]OFD Sender: No OFD packet to send [12:33:14]accept exits with 7 [12:33:14]New connection [12:33:14]New thread 3067059556 created [12:33:14]Thread 3066916196 joined [12:33:14]Waiting for new connection... [12:33:14] Sock 7.Parse request [12:33:14]Sock 7.Check first char [12:33:14]Sock 7.First char is OK [12:33:14]request: POST /json_proto HTTP/1.0 [12:33:14]Method: POST [12:33:14]URL: /json_proto [12:33:14]Method is POST - this is cgi request [12:33:14]url: /json_proto [12:33:14]query_string will be loaded in cgi processing [12:33:14]execute_cgi json_proto POST (null) [12:33:14]execute_cgi path=json_proto method=POST [12:33:14]POST find Content-Length [12:33:14]Host: 172.17.42.131:8080 [12:33:14]Content-Length: 677 [12:33:14]Content-Type: application/json [12:33:14] [12:33:14]POST finish read [12:33:14]Found Content-Length = 677 [12:33:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:14]execute_script... [12:33: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)210310", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.250, "sum" : 150.53, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 150.00, "total" : 150.00, "payments": [ { "type": 0, "sum" : 150.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:14]POST & json_proto [12:33:14]process_json_proto [12:33:14]json parsed OK: [12:33:14]protocol is kg_v1.0 [12:33:14]action value=close_receipt [12:33:14]process_action close_receipt [12:33:14]cmd_close_receipt [12:33:14]MH_GetDate [12:33:14]Write to MH i2c: F0 00 00 84 03 76 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: F0 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: F0 09 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: F0 09 00 84 03 00 8B 9B 17 67 A0 18 CA 66 0B [12:33:14]GetLastDocTimeStamp 1729600236 [12:33:14]current date 1729600395 [12:33:14]FM_GetShiftState [12:33:14]SAM_PROTO_GetShiftState [12:33:14]wFMCommunicate request_size=4 [12:33:14]MH_SAM_APDU [12:33:14]CAPDU: 80 13 01 00 [12:33:14]Write to MH i2c: E2 08 00 85 03 80 13 01 00 00 00 00 00 05 [12:33:14]Write i2c OK [12:33:14]MH_I2C_Read... [12:33:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:14]Read from MH i2c: E2 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 0E 00 [12:33:14]MH_I2C_Read... [12:33:14]Read from MH i2c: E2 0E 00 85 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FA [12:33:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:33:14]wFMCommunicate OK [12:33:14]SAM_PROTO_GetShiftState done [12:33:14]FM_GetShiftState done [12:33:14]opened in 1729556094 [12:33:14]opened+sec_in_day 1729642494 [12:33:14]quantity*price = 15052 [12:33:14]sum+1 = 15054 [12:33:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.53 ИТОГО: 150.00 Внесено: 150.00 СДАЧА: 0.00 НСП 1% : 1.33 НДС 12% : 15.98 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 285 22.10.2024 12:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188256 ФПД: 184456487562533 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188256&fm=184456487562533&tin=02508201610067®Number=0000000000100030&sum=15000 [12:33:16]StoreToDocumentArchive [12:33:16]shift 461 fd 188256 [12:33:16]save to /storage/0461/doc_00188256 [12:33:16]save last doc name /storage/0461/doc_00188256 to /storage/kkm_last_doc_name [12:33:16]save OK [12:33:16]Clear old archive folders... [12:33:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:33:16]tlvbuf is 01DF1900 [12:33:16]SAM_PROTO_ClearQueue [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 09 00 00 [12:33:16]Write to MH i2c: E2 08 00 92 03 80 09 00 00 00 00 00 00 07 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 92 03 00 90 00 09 [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]SAM_PROTO_ClearQueue done [12:33:16]KKMCreateOFDPacket [12:33:16]OFDProtocolAddRootSTLVToBuf [12:33:16]FM_MakeSignedData [12:33:16]FM_MakeSignedData [12:33:16]SAM_PROTO_SignData [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 01 02 [12:33:16]Write to MH i2c: E2 08 00 93 03 80 0D 01 02 00 00 00 00 0F [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 93 03 00 90 00 0A [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=255 [12:33:16]MH_SAM_APDU [12:33: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 33 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 8C 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DF 02 00 35 04 06 00 A7 [12:33:16]Write to MH i2c: E2 02 01 94 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 33 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 8C 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DF 02 00 35 04 06 00 A7 00 00 F8 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 94 03 00 90 00 0B [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=10 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 02 02 05 C3 1F 6A ED 25 [12:33:16]Write to MH i2c: E2 0D 00 95 03 80 0D 02 02 05 00 C3 1F 6A ED 25 00 00 7A [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 03 00 95 03 00 90 00 0C [12:33:16]RAPDU: 90 00 [12:33:16]wFMCommunicate OK [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 0D 03 02 [12:33:16]Write to MH i2c: E2 08 00 96 03 80 0D 03 02 00 00 00 00 14 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 0B 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 0B 00 96 03 00 88 B4 A5 91 19 06 A7 95 90 00 E2 [12:33:16]RAPDU: 88 B4 A5 91 19 06 A7 95 90 00 [12:33:16]wFMCommunicate OK [12:33:16]SAM_PROTO_SignData done [12:33:16]FM_MakeSignedData done [12:33:16]CreateOFDProtocolMessage [12:33:16]wFMCommunicate request_size=4 [12:33:16]MH_SAM_APDU [12:33:16]CAPDU: 80 11 00 00 [12:33:16]Write to MH i2c: E2 08 00 97 03 80 11 00 00 00 00 00 00 14 [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:16]Read from MH i2c: E2 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 17 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: E2 17 00 97 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [12:33:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:33:16]wFMCommunicate OK [12:33:16]CreateOFDProtocolMessage done [12:33:16]OFDSenderStorePacket 188256 [12:33:16]StoreOFDPacket docnum=188256 [12:33:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 27 2F 07 01 0F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 8C 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DF 02 00 35 04 06 00 A7 C3 1F 6A ED 25 88 B4 A5 91 19 06 A7 95 [12:33:16]CheckFolder [12:33:16]dirname=/storage/ofd_packets [12:33:16]CheckFolder done [12:33:16]ProducePacketName [12:33:16]name=ofd_packets/00188256 [12:33:16]NVStorageSaveData ofd_packets/00188256 [12:33:16]File name is /storage/ofd_packets/00188256 [12:33:16]Write 301 bytes [12:33:16]NVStorageSaveData done [12:33:16]OFDSenderStorePacket done [12:33:16]KKMCreateOFDPacket done [12:33:16]NVStorageSaveData kkm_last_timestamp [12:33:16]File name is /storage/kkm_last_timestamp [12:33:16]Write 4 bytes [12:33:16]NVStorageSaveData done [12:33:16]ExternCall_PrintAddStr [12:33:16]wPrintStart [12:33:16]Write to MH i2c: 01 00 00 98 03 9B [12:33:16]Write i2c OK [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 [12:33:16]MH_I2C_Read... [12:33:16]Read from MH i2c: 01 07 00 98 03 00 00 00 00 00 FF 0F B0 [12:33:16]RasterBufferAndPrint [12:33:16]line Счет N : (1)210310 [12:33:16]line ИНН: 02508201610067 [12:33:16]line Контрольно-Кассовый Чек [12:33:16]line ПРОДАЖА [12:33:16]line ТРК (МРК, ГНК) : 12 [12:33:16]line Товар: 2710124130 [12:33:16]line Аи-92-К-3 [12:33:16]line 2.250 * 66.90 [12:33:16]line = 150.53 [12:33:16]line НДС 12% НСП 1% [12:33:16]line > о реализуемом товаре [12:33:16]line ОКРУГЛЕНИЕ: -0.53 [12:33:16]line ИТОГО: 150.00 [12:33:16]line Внесено: 150.00 [12:33:16]line СДАЧА: 0.00 [12:33:16]line НСП 1% : 1.33 [12:33:16]line НДС 12% : 15.98 [12:33:16]line Наличными: 150.00 [12:33:16]line Безнал.: 0.00 [12:33:16]line Место: АЗС № 86 "Партнер Нефть" [12:33:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:33:16]line СНО: Общий режим [12:33:16]line Чек 285 22.10.2024 12:33 [12:33:16]line Смена: 461 ФФД: 1.0 [12:33:16]line ЗНМ: 0300000155 [12:33:16]line РНМ: 0000000000100030 [12:33:16]line Версия ККМ: 001 [12:33:16]line ФМ: 0000000000965340 [12:33:16]line ФД: 188256 [12:33:16]line ФПД: 184456487562533 [12:33:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123316&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188256&fm=184456487562533&tin=02508201610067®Number=0000000000100030&sum=15000 [12:33:16]OFD Sender: Processing packet 188256 [packets to send 1062, broken 1061] [12:33:16]ProducePacketName [12:33:16]name=ofd_packets/00188256 [12:33:16]OFD Sender: To server: pG, [12:33:16]CommunicateWithHost lk.salyk.kg:30040 [12:33:16]ConnectInit lk.salyk.kg [12:33:16]written 0, free lines is 4095 [12:33:16]Connected sock=9 [12:33:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 27 2F 07 01 0F FD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CA 08 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CD 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E 06 00 00 00 00 07 04 06 00 98 3A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 01 00 00 F4 03 04 00 8C 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 DF 02 00 35 04 06 00 A7 C3 1F 6A ED 25 88 B4 A5 91 19 06 A7 95 [12:33:17]Write to MH i2c: 01 00 00 C3 03 C6 [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: 01 07 00 C3 03 00 00 00 00 00 70 0C 49 [12:33:17]RasterBufferAndPrint [12:33:17]line [12:33:17]line [12:33:17]line [12:33:17]line [12:33:17]line [12:33:17]written 0, free lines is 3186 [12:33:17]MH_Cut [12:33:17]Write to MH i2c: D1 01 00 CA 03 01 9F [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: D1 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: D1 01 00 [12:33:17]MH_I2C_Read... [12:33:17]Read from MH i2c: D1 01 00 CA 03 00 9E [12:33:17]Write to MH i2c: 01 00 00 CB 03 CE [12:33:17]Write i2c OK [12:33:17]MH_I2C_Read... [12:33:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 81 47 00 56 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 39 36 35 33 34 30 10 04 04 00 60 DF 02 00 F4 03 04 00 79 45 17 67 B6 04 01 00 00 74 2B EF A0 87 1F E1 7B [12:33:17]CommunicateWithHost err = 0 [12:33:17]CheckOFDResponse [12:33:17]1017 (14) - 77093643461234 [12:33:17]1041 (16) - 0000000000965340 [12:33:17]1040 (4) - 188256 [12:33:17]1012 (4) - 22.10.2024 06:26 [12:33:17]1206 (1) - 0 [12:33:17]OFD Sender: Remove packet 188256 [12:33:17]ProducePacketName [12:33:17]name=ofd_packets/00188256 [12:33:17]NVStorageDeleteData [12:33:17]OFD Sender: No OFD packet to send [12:33:18]*** Cut start [12:33:18]*** Partial cut [12:33:18]*** CUTSNS_PIN = 1 [12:33:18]*** CUTSNS_PIN = 0 [12:33:18]*** Brake cut motor [12:33:18]Read from MH i2c: 01 [12:33:18]MH_I2C_Read... [12:33:18]*** Stop cut motor [12:33:18]*** Cut end [12:33:18]Read from MH i2c: 01 07 00 [12:33:18]MH_I2C_Read... [12:33:18]Read from MH i2c: 01 07 00 CB 03 00 00 00 00 00 FF 0F E3 [12:33:18]process_action close_receipt done [12:33:18]requested_data is exist [12:33:18]produce_requested_data [12:33:18]requested_item fm.sn is exist - process it [12:33:18]wFMCommunicate request_size=4 [12:33:18]MH_SAM_APDU [12:33:18]CAPDU: 80 11 00 00 [12:33:18]Write to MH i2c: E2 08 00 CC 03 80 11 00 00 00 00 00 00 49 [12:33:18]Write i2c OK [12:33:18]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 17 00 CC 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [12:33:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:33:19]wFMCommunicate OK [12:33:19]requested_item fd.num is exist - process it [12:33:19]SAM_PROTO_GetFieldsCounters [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 00 00 [12:33:19]Write to MH i2c: E2 08 00 CD 03 80 13 00 00 00 00 00 00 4C [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 62 00 CD 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [12:33:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1D 01 00 00 5E 04 04 00 1D 01 00 00 57 04 04 00 1E 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetFieldsCounters done [12:33:19]requested_item shift.num is exist - process it [12:33:19]requested_item shift.opened is exist - process it [12:33:19]req_shift_opened [12:33:19]FM_GetShiftState [12:33:19]SAM_PROTO_GetShiftState [12:33:19]wFMCommunicate request_size=4 [12:33:19]MH_SAM_APDU [12:33:19]CAPDU: 80 13 01 00 [12:33:19]Write to MH i2c: E2 08 00 CE 03 80 13 01 00 00 00 00 00 4E [12:33:19]Write i2c OK [12:33:19]MH_I2C_Read... [12:33:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:19]Read from MH i2c: E2 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 [12:33:19]MH_I2C_Read... [12:33:19]Read from MH i2c: E2 0E 00 CE 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 43 [12:33:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:33:19]wFMCommunicate OK [12:33:19]SAM_PROTO_GetShiftState done [12:33:19]FM_GetShiftState done [12:33:19]req_shift_opened done [12:33:19]requested_item shift.open_date is exist - process it [12:33:19]req_shift_open_date [12:33:19]req_shift_open_date done [12:33:19]produce_requested_data done [12:33:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188256,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:33:19]process_action_free close_receipt [12:33:19]json_value_free [12:33:19]json_value_free done [12:33:19]process_json_proto returns [12:33:19]Send response to host [12:33:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188256,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:33:19]free response buf [12:33:19]execute_script done [12:33:19]execute_script returns [12:33:19]free content buf [12:33:19]Sock 7.Close socket [12:33:19]Sock 7.Thread stoped [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:32]OFD Sender: No OFD packet to send [12:33:37]OFD Sender: No OFD packet to send [12:33:42]OFD Sender: No OFD packet to send [12:33:47]OFD Sender: No OFD packet to send [12:33:52]OFD Sender: No OFD packet to send [12:33:58]OFD Sender: No OFD packet to send [12:34:03]OFD Sender: No OFD packet to send [12:34:08]OFD Sender: No OFD packet to send [12:34:13]OFD Sender: No OFD packet to send [12:34:18]OFD Sender: No OFD packet to send [12:34:23]OFD Sender: No OFD packet to send [12:34:28]OFD Sender: No OFD packet to send [12:34:33]OFD Sender: No OFD packet to send [12:34:38]OFD Sender: No OFD packet to send [12:34:43]OFD Sender: No OFD packet to send [12:34:48]OFD Sender: No OFD packet to send [12:34:53]OFD Sender: No OFD packet to send [12:34:53]accept exits with 10 [12:34:53]New connection [12:34:53]New thread 3066916196 created [12:34:53]Thread 3067059556 joined [12:34:53]Waiting for new connection... [12:34:53] Sock 10.Parse request [12:34:53]Sock 10.Check first char [12:34:53]Sock 10.First char is OK [12:34:53]request: POST /json_proto HTTP/1.0 [12:34:53]Method: POST [12:34:53]URL: /json_proto [12:34:53]Method is POST - this is cgi request [12:34:53]url: /json_proto [12:34:53]query_string will be loaded in cgi processing [12:34:53]execute_cgi json_proto POST (null) [12:34:53]execute_cgi path=json_proto method=POST [12:34:53]POST find Content-Length [12:34:53]Host: 172.17.42.131:8080 [12:34:53]Content-Length: 682 [12:34:53]Content-Type: application/json [12:34:53] [12:34:53]POST finish read [12:34:53]Found Content-Length = 682 [12:34:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:53]execute_script... [12:34: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)210312", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:34:53]POST & json_proto [12:34:53]process_json_proto [12:34:53]json parsed OK: [12:34:53]protocol is kg_v1.0 [12:34:53]action value=close_receipt [12:34:53]process_action close_receipt [12:34:53]cmd_close_receipt [12:34:53]MH_GetDate [12:34:53]Write to MH i2c: F0 00 00 CF 03 C1 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 09 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: F0 09 00 CF 03 00 EE 9B 17 67 A0 18 CA 66 B9 [12:34:53]GetLastDocTimeStamp 1729600396 [12:34:53]current date 1729600494 [12:34:53]FM_GetShiftState [12:34:53]SAM_PROTO_GetShiftState [12:34:53]wFMCommunicate request_size=4 [12:34:53]MH_SAM_APDU [12:34:53]CAPDU: 80 13 01 00 [12:34:53]Write to MH i2c: E2 08 00 D0 03 80 13 01 00 00 00 00 00 50 [12:34:53]Write i2c OK [12:34:53]MH_I2C_Read... [12:34:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:53]Read from MH i2c: E2 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 [12:34:53]MH_I2C_Read... [12:34:53]Read from MH i2c: E2 0E 00 D0 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 45 [12:34:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:34:53]wFMCommunicate OK [12:34:53]SAM_PROTO_GetShiftState done [12:34:53]FM_GetShiftState done [12:34:53]opened in 1729556094 [12:34:53]opened+sec_in_day 1729642494 [12:34:53]quantity*price = 100015 [12:34:53]sum+1 = 100017 [12:34:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 286 22.10.2024 12:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188257 ФПД: 212150268304575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188257&fm=212150268304575&tin=02508201610067®Number=0000000000100030&sum=100000 [12:34:54]StoreToDocumentArchive [12:34:54]shift 461 fd 188257 [12:34:54]save to /storage/0461/doc_00188257 [12:34:54]save last doc name /storage/0461/doc_00188257 to /storage/kkm_last_doc_name [12:34:54]save OK [12:34:54]Clear old archive folders... [12:34:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:34:54]tlvbuf is 01E37820 [12:34:54]SAM_PROTO_ClearQueue [12:34:54]wFMCommunicate request_size=4 [12:34:54]MH_SAM_APDU [12:34:54]CAPDU: 80 09 00 00 [12:34:54]Write to MH i2c: E2 08 00 DD 03 80 09 00 00 00 00 00 00 52 [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:34:54]Read from MH i2c: E2 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 DD 03 00 90 00 54 [12:34:54]RAPDU: 90 00 [12:34:54]wFMCommunicate OK [12:34:54]SAM_PROTO_ClearQueue done [12:34:54]KKMCreateOFDPacket [12:34:54]OFDProtocolAddRootSTLVToBuf [12:34:54]FM_MakeSignedData [12:34:54]FM_MakeSignedData [12:34:54]SAM_PROTO_SignData [12:34:54]wFMCommunicate request_size=4 [12:34:54]MH_SAM_APDU [12:34:54]CAPDU: 80 0D 01 02 [12:34:54]Write to MH i2c: E2 08 00 DE 03 80 0D 01 02 00 00 00 00 5A [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:34:54]Read from MH i2c: E2 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 [12:34:54]MH_I2C_Read... [12:34:54]Read from MH i2c: E2 03 00 DE 03 00 90 00 55 [12:34:54]RAPDU: 90 00 [12:34:54]wFMCommunicate OK [12:34:54]wFMCommunicate request_size=255 [12:34:54]MH_SAM_APDU [12:34:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EE 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DF 02 00 35 04 06 00 C0 [12:34:54]Write to MH i2c: E2 02 01 DF 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EE 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DF 02 00 35 04 06 00 C0 00 00 BD [12:34:54]Write i2c OK [12:34:54]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 DF 03 00 90 00 56 [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=10 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 02 02 05 F3 15 61 9C BF [12:34:55]Write to MH i2c: E2 0D 00 E0 03 80 0D 02 02 05 00 F3 15 61 9C BF 00 00 2B [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 03 00 E0 03 00 90 00 57 [12:34:55]RAPDU: 90 00 [12:34:55]wFMCommunicate OK [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 0D 03 02 [12:34:55]Write to MH i2c: E2 08 00 E1 03 80 0D 03 02 00 00 00 00 5F [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 0B 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 0B 00 E1 03 00 7E F6 57 33 0C 21 77 1E 90 00 20 [12:34:55]RAPDU: 7E F6 57 33 0C 21 77 1E 90 00 [12:34:55]wFMCommunicate OK [12:34:55]SAM_PROTO_SignData done [12:34:55]FM_MakeSignedData done [12:34:55]CreateOFDProtocolMessage [12:34:55]wFMCommunicate request_size=4 [12:34:55]MH_SAM_APDU [12:34:55]CAPDU: 80 11 00 00 [12:34:55]Write to MH i2c: E2 08 00 E2 03 80 11 00 00 00 00 00 00 5F [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:55]Read from MH i2c: E2 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: E2 17 00 E2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [12:34:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:34:55]wFMCommunicate OK [12:34:55]CreateOFDProtocolMessage done [12:34:55]OFDSenderStorePacket 188257 [12:34:55]StoreOFDPacket docnum=188257 [12:34:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 74 07 01 A9 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EE 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DF 02 00 35 04 06 00 C0 F3 15 61 9C BF 7E F6 57 33 0C 21 77 1E [12:34:55]CheckFolder [12:34:55]dirname=/storage/ofd_packets [12:34:55]CheckFolder done [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00188257 [12:34:55]NVStorageSaveData ofd_packets/00188257 [12:34:55]File name is /storage/ofd_packets/00188257 [12:34:55]Write 301 bytes [12:34:55]NVStorageSaveData done [12:34:55]OFDSenderStorePacket done [12:34:55]KKMCreateOFDPacket done [12:34:55]NVStorageSaveData kkm_last_timestamp [12:34:55]File name is /storage/kkm_last_timestamp [12:34:55]Write 4 bytes [12:34:55]NVStorageSaveData done [12:34:55]ExternCall_PrintAddStr [12:34:55]wPrintStart [12:34:55]Write to MH i2c: 01 00 00 E3 03 E6 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 E3 03 00 00 00 00 00 FF 0F FB [12:34:55]RasterBufferAndPrint [12:34:55]line Счет N : (1)210312 [12:34:55]line ИНН: 02508201610067 [12:34:55]line Контрольно-Кассовый Чек [12:34:55]line ПРОДАЖА [12:34:55]line ТРК (МРК, ГНК) : 32 [12:34:55]line Товар: 2710124130 [12:34:55]line Аи-92-К-3 [12:34:55]line 14.950 * 66.90 [12:34:55]line = 1000.16 [12:34:55]line НДС 12% НСП 1% [12:34:55]line > о реализуемом товаре [12:34:55]line ОКРУГЛЕНИЕ: -0.16 [12:34:55]line ИТОГО: 1000.00 [12:34:55]line Внесено: 1000.00 [12:34:55]line СДАЧА: 0.00 [12:34:55]line НСП 1% : 8.85 [12:34:55]line НДС 12% : 106.21 [12:34:55]line Наличными: 1000.00 [12:34:55]line Безнал.: 0.00 [12:34:55]line Место: АЗС № 86 "Партнер Нефть" [12:34:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:34:55]line СНО: Общий режим [12:34:55]line Чек 286 22.10.2024 12:34 [12:34:55]line Смена: 461 ФФД: 1.0 [12:34:55]line ЗНМ: 0300000155 [12:34:55]line РНМ: 0000000000100030 [12:34:55]line Версия ККМ: 001 [12:34:55]line ФМ: 0000000000965340 [12:34:55]line ФД: 188257 [12:34:55]line ФПД: 212150268304575 [12:34:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123454&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188257&fm=212150268304575&tin=02508201610067®Number=0000000000100030&sum=100000 [12:34:55]OFD Sender: Processing packet 188257 [packets to send 1062, broken 1061] [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00188257 [12:34:55]OFD Sender: To server: pG, [12:34:55]CommunicateWithHost lk.salyk.kg:30040 [12:34:55]ConnectInit lk.salyk.kg [12:34:55]written 0, free lines is 4095 [12:34:55]Connected sock=11 [12:34:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 07 74 07 01 A9 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 01 00 00 F4 03 04 00 EE 9B 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DF 02 00 35 04 06 00 C0 F3 15 61 9C BF 7E F6 57 33 0C 21 77 1E [12:34:55]Write to MH i2c: 01 00 00 0E 04 12 [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: 01 07 00 0E 04 00 00 00 00 00 72 0C 97 [12:34:55]RasterBufferAndPrint [12:34:55]line [12:34:55]line [12:34:55]line [12:34:55]line [12:34:55]line [12:34:55]written 0, free lines is 3187 [12:34:55]MH_Cut [12:34:55]Write to MH i2c: D1 01 00 15 04 01 EB [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: D1 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: D1 01 00 [12:34:55]MH_I2C_Read... [12:34:55]Read from MH i2c: D1 01 00 15 04 00 EA [12:34:55]Write to MH i2c: 01 00 00 16 04 1A [12:34:55]Write i2c OK [12:34:55]MH_I2C_Read... [12:34:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 66 8F 47 00 72 8F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 DF 02 00 F4 03 04 00 DB 45 17 67 B6 04 01 00 00 F8 08 85 AE CC D4 2D 2C [12:34:55]CommunicateWithHost err = 0 [12:34:55]CheckOFDResponse [12:34:55]1017 (14) - 77093643461234 [12:34:55]1041 (16) - 0000000000965340 [12:34:55]1040 (4) - 188257 [12:34:55]1012 (4) - 22.10.2024 06:27 [12:34:55]1206 (1) - 0 [12:34:55]OFD Sender: Remove packet 188257 [12:34:55]ProducePacketName [12:34:55]name=ofd_packets/00188257 [12:34:55]NVStorageDeleteData [12:34:56]OFD Sender: No OFD packet to send [12:34:56]*** Cut start [12:34:56]*** Partial cut [12:34:56]*** CUTSNS_PIN = 1 [12:34:56]*** CUTSNS_PIN = 0 [12:34:57]*** Brake cut motor [12:34:57]Read from MH i2c: 01 [12:34:57]MH_I2C_Read... [12:34:57]*** Stop cut motor [12:34:57]*** Cut end [12:34:57]Read from MH i2c: 01 07 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: 01 07 00 16 04 00 00 00 00 00 FF 0F 2F [12:34:57]process_action close_receipt done [12:34:57]requested_data is exist [12:34:57]produce_requested_data [12:34:57]requested_item fm.sn is exist - process it [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 11 00 00 [12:34:57]Write to MH i2c: E2 08 00 17 04 80 11 00 00 00 00 00 00 95 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 17 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 17 00 17 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E3 [12:34:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:34:57]wFMCommunicate OK [12:34:57]requested_item fd.num is exist - process it [12:34:57]SAM_PROTO_GetFieldsCounters [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 13 00 00 [12:34:57]Write to MH i2c: E2 08 00 18 04 80 13 00 00 00 00 00 00 98 [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 62 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 62 00 18 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 0C [12:34:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1E 01 00 00 5E 04 04 00 1E 01 00 00 57 04 04 00 1F 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:34:57]wFMCommunicate OK [12:34:57]SAM_PROTO_GetFieldsCounters done [12:34:57]requested_item shift.num is exist - process it [12:34:57]requested_item shift.opened is exist - process it [12:34:57]req_shift_opened [12:34:57]FM_GetShiftState [12:34:57]SAM_PROTO_GetShiftState [12:34:57]wFMCommunicate request_size=4 [12:34:57]MH_SAM_APDU [12:34:57]CAPDU: 80 13 01 00 [12:34:57]Write to MH i2c: E2 08 00 19 04 80 13 01 00 00 00 00 00 9A [12:34:57]Write i2c OK [12:34:57]MH_I2C_Read... [12:34:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:34:57]Read from MH i2c: E2 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 0E 00 [12:34:57]MH_I2C_Read... [12:34:57]Read from MH i2c: E2 0E 00 19 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8F [12:34:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:34:57]wFMCommunicate OK [12:34:57]SAM_PROTO_GetShiftState done [12:34:57]FM_GetShiftState done [12:34:57]req_shift_opened done [12:34:57]requested_item shift.open_date is exist - process it [12:34:57]req_shift_open_date [12:34:57]req_shift_open_date done [12:34:57]produce_requested_data done [12:34:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188257,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:34:57]process_action_free close_receipt [12:34:57]json_value_free [12:34:57]json_value_free done [12:34:57]process_json_proto returns [12:34:57]Send response to host [12:34:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188257,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:34:57]free response buf [12:34:57]execute_script done [12:34:57]execute_script returns [12:34:57]free content buf [12:34:57]Sock 10.Close socket [12:34:57]Sock 10.Thread stoped [12:35:01]OFD Sender: No OFD packet to send [12:35:06]OFD Sender: No OFD packet to send [12:35:11]OFD Sender: No OFD packet to send [12:35:16]OFD Sender: No OFD packet to send [12:35:21]OFD Sender: No OFD packet to send [12:35:26]OFD Sender: No OFD packet to send [12:35:31]OFD Sender: No OFD packet to send [12:35:36]OFD Sender: No OFD packet to send [12:35:41]OFD Sender: No OFD packet to send [12:35:46]OFD Sender: No OFD packet to send [12:35:51]OFD Sender: No OFD packet to send [12:35:56]OFD Sender: No OFD packet to send [12:36:01]OFD Sender: No OFD packet to send [12:36:06]OFD Sender: No OFD packet to send [12:36:11]OFD Sender: No OFD packet to send [12:36:16]OFD Sender: No OFD packet to send [12:36:21]OFD Sender: No OFD packet to send [12:36:26]OFD Sender: No OFD packet to send [12:36:27]accept exits with 7 [12:36:27]New connection [12:36:27]New thread 3067059556 created [12:36:27]Thread 3066916196 joined [12:36:27]Waiting for new connection... [12:36:27] Sock 7.Parse request [12:36:27]Sock 7.Check first char [12:36:27]Sock 7.First char is OK [12:36:27]request: POST /json_proto HTTP/1.0 [12:36:27]Method: POST [12:36:27]URL: /json_proto [12:36:27]Method is POST - this is cgi request [12:36:27]url: /json_proto [12:36:27]query_string will be loaded in cgi processing [12:36:27]execute_cgi json_proto POST (null) [12:36:27]execute_cgi path=json_proto method=POST [12:36:27]POST find Content-Length [12:36:27]Host: 172.17.42.131:8080 [12:36:27]Content-Length: 688 [12:36:27]Content-Type: application/json [12:36:27] [12:36:27]POST finish read [12:36:27]Found Content-Length = 688 [12:36:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 46.850, "sum" : 3616.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3800.00, "total" : 3616.00, "payments": [ { "type": 0, "sum" : 3616.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:27]execute_script... [12:36: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)210311", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 46.850, "sum" : 3616.82, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3800.00, "total" : 3616.00, "payments": [ { "type": 0, "sum" : 3616.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:36:27]POST & json_proto [12:36:27]process_json_proto [12:36:27]json parsed OK: [12:36:27]protocol is kg_v1.0 [12:36:27]action value=close_receipt [12:36:27]process_action close_receipt [12:36:27]cmd_close_receipt [12:36:27]MH_GetDate [12:36:27]Write to MH i2c: F0 00 00 1A 04 0D [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: F0 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: F0 09 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: F0 09 00 1A 04 00 4C 9C 17 67 A0 18 CA 66 64 [12:36:27]GetLastDocTimeStamp 1729600494 [12:36:27]current date 1729600588 [12:36:27]FM_GetShiftState [12:36:27]SAM_PROTO_GetShiftState [12:36:27]wFMCommunicate request_size=4 [12:36:27]MH_SAM_APDU [12:36:27]CAPDU: 80 13 01 00 [12:36:27]Write to MH i2c: E2 08 00 1B 04 80 13 01 00 00 00 00 00 9C [12:36:27]Write i2c OK [12:36:27]MH_I2C_Read... [12:36:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:27]Read from MH i2c: E2 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 [12:36:27]MH_I2C_Read... [12:36:27]Read from MH i2c: E2 0E 00 1B 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [12:36:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:36:27]wFMCommunicate OK [12:36:27]SAM_PROTO_GetShiftState done [12:36:27]FM_GetShiftState done [12:36:27]opened in 1729556094 [12:36:27]opened+sec_in_day 1729642494 [12:36:27]quantity*price = 361682 [12:36:27]sum+1 = 361683 [12:36:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.82 ИТОГО: 3616.00 Внесено: 3800.00 СДАЧА: 184.00 НСП 1% : 32.01 НДС 12% : 384.09 Наличными: 3616.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 287 22.10.2024 12:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188258 ФПД: 37101772937562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188258&fm=37101772937562&tin=02508201610067®Number=0000000000100030&sum=361600 [12:36:28]StoreToDocumentArchive [12:36:28]shift 461 fd 188258 [12:36:28]save to /storage/0461/doc_00188258 [12:36:28]save last doc name /storage/0461/doc_00188258 to /storage/kkm_last_doc_name [12:36:28]save OK [12:36:28]Clear old archive folders... [12:36:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:36:28]tlvbuf is 01DEEA60 [12:36:28]SAM_PROTO_ClearQueue [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 09 00 00 [12:36:28]Write to MH i2c: E2 08 00 28 04 80 09 00 00 00 00 00 00 9E [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:36:28]Read from MH i2c: E2 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 [12:36:28]MH_I2C_Read... [12:36:28]Read from MH i2c: E2 03 00 28 04 00 90 00 A0 [12:36:28]RAPDU: 90 00 [12:36:28]wFMCommunicate OK [12:36:28]SAM_PROTO_ClearQueue done [12:36:28]KKMCreateOFDPacket [12:36:28]OFDProtocolAddRootSTLVToBuf [12:36:28]FM_MakeSignedData [12:36:28]FM_MakeSignedData [12:36:28]SAM_PROTO_SignData [12:36:28]wFMCommunicate request_size=4 [12:36:28]MH_SAM_APDU [12:36:28]CAPDU: 80 0D 01 02 [12:36:28]Write to MH i2c: E2 08 00 29 04 80 0D 01 02 00 00 00 00 A6 [12:36:28]Write i2c OK [12:36:28]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 29 04 00 90 00 A1 [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]wFMCommunicate request_size=255 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D2 84 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 96 00 00 00 00 07 04 06 00 80 84 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 4C 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DF 02 [12:36:29]Write to MH i2c: E2 02 01 2A 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D2 84 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 96 00 00 00 00 07 04 06 00 80 84 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 4C 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DF 02 00 00 50 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 2A 04 00 90 00 A2 [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]wFMCommunicate request_size=16 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 21 BE 6D FF 19 5A [12:36:29]Write to MH i2c: E2 13 00 2B 04 80 0D 02 02 0B 00 00 35 04 06 00 21 BE 6D FF 19 5A 00 00 BC [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 03 00 2B 04 00 90 00 A3 [12:36:29]RAPDU: 90 00 [12:36:29]wFMCommunicate OK [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 0D 03 02 [12:36:29]Write to MH i2c: E2 08 00 2C 04 80 0D 03 02 00 00 00 00 AB [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 0B 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 0B 00 2C 04 00 E8 81 70 0C 72 BB AF D6 90 00 43 [12:36:29]RAPDU: E8 81 70 0C 72 BB AF D6 90 00 [12:36:29]wFMCommunicate OK [12:36:29]SAM_PROTO_SignData done [12:36:29]FM_MakeSignedData done [12:36:29]CreateOFDProtocolMessage [12:36:29]wFMCommunicate request_size=4 [12:36:29]MH_SAM_APDU [12:36:29]CAPDU: 80 11 00 00 [12:36:29]Write to MH i2c: E2 08 00 2D 04 80 11 00 00 00 00 00 00 AB [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:29]Read from MH i2c: E2 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 17 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: E2 17 00 2D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [12:36:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:36:29]wFMCommunicate OK [12:36:29]CreateOFDProtocolMessage done [12:36:29]OFDSenderStorePacket 188258 [12:36:29]StoreOFDPacket docnum=188258 [12:36:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 89 62 0D 01 52 A7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D2 84 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 96 00 00 00 00 07 04 06 00 80 84 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 4C 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DF 02 00 35 04 06 00 21 BE 6D FF 19 5A E8 81 70 0C 72 BB AF D6 [12:36:29]CheckFolder [12:36:29]dirname=/storage/ofd_packets [12:36:29]CheckFolder done [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00188258 [12:36:29]NVStorageSaveData ofd_packets/00188258 [12:36:29]File name is /storage/ofd_packets/00188258 [12:36:29]Write 307 bytes [12:36:29]NVStorageSaveData done [12:36:29]OFDSenderStorePacket done [12:36:29]KKMCreateOFDPacket done [12:36:29]NVStorageSaveData kkm_last_timestamp [12:36:29]File name is /storage/kkm_last_timestamp [12:36:29]Write 4 bytes [12:36:29]NVStorageSaveData done [12:36:29]ExternCall_PrintAddStr [12:36:29]wPrintStart [12:36:29]Write to MH i2c: 01 00 00 2E 04 32 [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 2E 04 00 00 00 00 00 FF 0F 47 [12:36:29]RasterBufferAndPrint [12:36:29]line Счет N : (1)210311 [12:36:29]line ИНН: 02508201610067 [12:36:29]line Контрольно-Кассовый Чек [12:36:29]line ПРОДАЖА [12:36:29]line ТРК (МРК, ГНК) : 21 [12:36:29]line Товар: 2710194210 [12:36:29]line D-ENERGY ДТ-К-5 [12:36:29]line 46.850 * 77.20 [12:36:29]line = 3616.82 [12:36:29]line НДС 12% НСП 1% [12:36:29]line > о реализуемом товаре [12:36:29]line ОКРУГЛЕНИЕ: -0.82 [12:36:29]line ИТОГО: 3616.00 [12:36:29]line Внесено: 3800.00 [12:36:29]line СДАЧА: 184.00 [12:36:29]line НСП 1% : 32.01 [12:36:29]line НДС 12% : 384.09 [12:36:29]line Наличными: 3616.00 [12:36:29]line Безнал.: 0.00 [12:36:29]line Место: АЗС № 86 "Партнер Нефть" [12:36:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:36:29]line СНО: Общий режим [12:36:29]line Чек 287 22.10.2024 12:36 [12:36:29]line Смена: 461 ФФД: 1.0 [12:36:29]line ЗНМ: 0300000155 [12:36:29]line РНМ: 0000000000100030 [12:36:29]line Версия ККМ: 001 [12:36:29]line ФМ: 0000000000965340 [12:36:29]line ФД: 188258 [12:36:29]line ФПД: 37101772937562 [12:36:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123628&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188258&fm=37101772937562&tin=02508201610067®Number=0000000000100030&sum=361600 [12:36:29]written 0, free lines is 4095 [12:36:29]OFD Sender: Processing packet 188258 [packets to send 1062, broken 1061] [12:36:29]ProducePacketName [12:36:29]name=ofd_packets/00188258 [12:36:29]OFD Sender: To server: pG, [12:36:29]CommunicateWithHost lk.salyk.kg:30040 [12:36:29]ConnectInit lk.salyk.kg [12:36:29]Connected sock=10 [12:36:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 89 62 0D 01 52 A7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 B7 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D2 84 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 84 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 81 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 09 96 00 00 00 00 07 04 06 00 80 84 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 01 00 00 F4 03 04 00 4C 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DF 02 00 35 04 06 00 21 BE 6D FF 19 5A E8 81 70 0C 72 BB AF D6 [12:36:29]Write to MH i2c: 01 00 00 59 04 5D [12:36:29]Write i2c OK [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 [12:36:29]MH_I2C_Read... [12:36:29]Read from MH i2c: 01 07 00 59 04 00 00 00 00 00 74 0C E4 [12:36:29]RasterBufferAndPrint [12:36:29]line [12:36:29]line [12:36:29]line [12:36:29]line [12:36:29]line [12:36:29]written 0, free lines is 3191 [12:36:30]MH_Cut [12:36:30]Write to MH i2c: D1 01 00 60 04 01 36 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 01 00 [12:36:30]MH_I2C_Read... [12:36:30]Read from MH i2c: D1 01 00 60 04 00 35 [12:36:30]Write to MH i2c: 01 00 00 61 04 65 [12:36:30]Write i2c OK [12:36:30]MH_I2C_Read... [12:36:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 88 47 00 A1 2D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 DF 02 00 F4 03 04 00 3A 46 17 67 B6 04 01 00 00 94 74 39 F6 BF D2 F0 8F [12:36:30]CommunicateWithHost err = 0 [12:36:30]CheckOFDResponse [12:36:30]1017 (14) - 77093643461234 [12:36:30]1041 (16) - 0000000000965340 [12:36:30]1040 (4) - 188258 [12:36:30]1012 (4) - 22.10.2024 06:29 [12:36:30]1206 (1) - 0 [12:36:30]OFD Sender: Remove packet 188258 [12:36:30]ProducePacketName [12:36:30]name=ofd_packets/00188258 [12:36:30]NVStorageDeleteData [12:36:30]OFD Sender: No OFD packet to send [12:36:31]*** Cut start [12:36:31]*** Partial cut [12:36:31]*** CUTSNS_PIN = 1 [12:36:31]*** CUTSNS_PIN = 0 [12:36:31]*** Brake cut motor [12:36:31]Read from MH i2c: 01 [12:36:31]MH_I2C_Read... [12:36:31]*** Stop cut motor [12:36:31]*** Cut end [12:36:31]Read from MH i2c: 01 07 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: 01 07 00 61 04 00 00 00 00 00 FF 0F 7A [12:36:31]process_action close_receipt done [12:36:31]requested_data is exist [12:36:31]produce_requested_data [12:36:31]requested_item fm.sn is exist - process it [12:36:31]wFMCommunicate request_size=4 [12:36:31]MH_SAM_APDU [12:36:31]CAPDU: 80 11 00 00 [12:36:31]Write to MH i2c: E2 08 00 62 04 80 11 00 00 00 00 00 00 E0 [12:36:31]Write i2c OK [12:36:31]MH_I2C_Read... [12:36:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:36:31]Read from MH i2c: E2 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 17 00 [12:36:31]MH_I2C_Read... [12:36:31]Read from MH i2c: E2 17 00 62 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2E [12:36:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:36:31]wFMCommunicate OK [12:36:31]requested_item fd.num is exist - process it [12:36:31]SAM_PROTO_GetFieldsCounters [12:36:31]wFMCommunicate request_size=4 [12:36:31]MH_SAM_APDU [12:36:31]CAPDU: 80 13 00 00 [12:36:31]Write to MH i2c: E2 08 00 63 04 80 13 00 00 00 00 00 00 E3 [12:36:31]Write i2c OK [12:36:31]MH_I2C_Read... [12:36:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:36:32]Read from MH i2c: E2 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 62 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 62 00 63 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 5B [12:36:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1F 01 00 00 5E 04 04 00 1F 01 00 00 57 04 04 00 20 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:36:32]wFMCommunicate OK [12:36:32]SAM_PROTO_GetFieldsCounters done [12:36:32]requested_item shift.num is exist - process it [12:36:32]requested_item shift.opened is exist - process it [12:36:32]req_shift_opened [12:36:32]FM_GetShiftState [12:36:32]SAM_PROTO_GetShiftState [12:36:32]wFMCommunicate request_size=4 [12:36:32]MH_SAM_APDU [12:36:32]CAPDU: 80 13 01 00 [12:36:32]Write to MH i2c: E2 08 00 64 04 80 13 01 00 00 00 00 00 E5 [12:36:32]Write i2c OK [12:36:32]MH_I2C_Read... [12:36:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:36:32]Read from MH i2c: E2 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 0E 00 [12:36:32]MH_I2C_Read... [12:36:32]Read from MH i2c: E2 0E 00 64 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DA [12:36:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:36:32]wFMCommunicate OK [12:36:32]SAM_PROTO_GetShiftState done [12:36:32]FM_GetShiftState done [12:36:32]req_shift_opened done [12:36:32]requested_item shift.open_date is exist - process it [12:36:32]req_shift_open_date [12:36:32]req_shift_open_date done [12:36:32]produce_requested_data done [12:36:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188258,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:36:32]process_action_free close_receipt [12:36:32]json_value_free [12:36:32]json_value_free done [12:36:32]process_json_proto returns [12:36:32]Send response to host [12:36:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188258,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:36:32]free response buf [12:36:32]execute_script done [12:36:32]execute_script returns [12:36:32]free content buf [12:36:32]Sock 7.Close socket [12:36:32]Sock 7.Thread stoped [12:36:35]OFD Sender: No OFD packet to send [12:36:40]OFD Sender: No OFD packet to send [12:36:45]OFD Sender: No OFD packet to send [12:36:50]OFD Sender: No OFD packet to send [12:36:55]OFD Sender: No OFD packet to send [12:37:00]OFD Sender: No OFD packet to send [12:37:05]OFD Sender: No OFD packet to send [12:37:10]OFD Sender: No OFD packet to send [12:37:15]OFD Sender: No OFD packet to send [12:37:20]OFD Sender: No OFD packet to send [12:37:25]OFD Sender: No OFD packet to send [12:37:30]OFD Sender: No OFD packet to send [12:37:35]OFD Sender: No OFD packet to send [12:37:41]OFD Sender: No OFD packet to send [12:37:46]OFD Sender: No OFD packet to send [12:37:51]OFD Sender: No OFD packet to send [12:37:56]OFD Sender: No OFD packet to send [12:38:01]OFD Sender: No OFD packet to send [12:38:06]OFD Sender: No OFD packet to send [12:38:11]OFD Sender: No OFD packet to send [12:38:16]OFD Sender: No OFD packet to send [12:38:21]OFD Sender: No OFD packet to send [12:38:26]OFD Sender: No OFD packet to send [12:38:29]accept exits with 9 [12:38:29]New connection [12:38:29]New thread 3066916196 created [12:38:29]Thread 3067059556 joined [12:38:29]Waiting for new connection... [12:38:29] Sock 9.Parse request [12:38:29]Sock 9.Check first char [12:38:29]Sock 9.First char is OK [12:38:29]request: POST /json_proto HTTP/1.0 [12:38:29]Method: POST [12:38:29]URL: /json_proto [12:38:29]Method is POST - this is cgi request [12:38:29]url: /json_proto [12:38:29]query_string will be loaded in cgi processing [12:38:29]execute_cgi json_proto POST (null) [12:38:29]execute_cgi path=json_proto method=POST [12:38:29]POST find Content-Length [12:38:29]Host: 172.17.42.131:8080 [12:38:29]Content-Length: 767 [12:38:29]Content-Type: application/json [12:38:29] [12:38:29]POST finish read [12:38:29]Found Content-Length = 767 [12:38:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:29]execute_script... [12:38: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)210313", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 9000.74 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:29]POST & json_proto [12:38:29]process_json_proto [12:38:29]json parsed OK: [12:38:29]protocol is kg_v1.0 [12:38:29]action value=close_receipt [12:38:29]process_action close_receipt [12:38:29]cmd_close_receipt [12:38:29]MH_GetDate [12:38:29]Write to MH i2c: F0 00 00 65 04 58 [12:38:29]Write i2c OK [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: F0 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: F0 09 00 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: F0 09 00 65 04 00 C6 9C 17 67 A0 18 CA 66 29 [12:38:29]GetLastDocTimeStamp 1729600588 [12:38:29]current date 1729600710 [12:38:29]FM_GetShiftState [12:38:29]SAM_PROTO_GetShiftState [12:38:29]wFMCommunicate request_size=4 [12:38:29]MH_SAM_APDU [12:38:29]CAPDU: 80 13 01 00 [12:38:29]Write to MH i2c: E2 08 00 66 04 80 13 01 00 00 00 00 00 E7 [12:38:29]Write i2c OK [12:38:29]MH_I2C_Read... [12:38:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:29]Read from MH i2c: E2 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: E2 0E 00 [12:38:29]MH_I2C_Read... [12:38:29]Read from MH i2c: E2 0E 00 66 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DC [12:38:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:38:29]wFMCommunicate OK [12:38:29]SAM_PROTO_GetShiftState done [12:38:29]FM_GetShiftState done [12:38:29]opened in 1729556094 [12:38:29]opened+sec_in_day 1729642494 [12:38:29]quantity*price = 900074 [12:38:29]sum+1 = 900075 [12:38:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.74 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.74 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 288 22.10.2024 12:38 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188259 ФПД: 273058472284504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123830&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188259&fm=273058472284504&tin=02508201610067®Number=0000000000100030&sum=900074 [12:38:30]StoreToDocumentArchive [12:38:30]shift 461 fd 188259 [12:38:30]save to /storage/0461/doc_00188259 [12:38:30]save last doc name /storage/0461/doc_00188259 to /storage/kkm_last_doc_name [12:38:30]save OK [12:38:30]Clear old archive folders... [12:38:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:38:30]tlvbuf is 01DFC680 [12:38:30]SAM_PROTO_ClearQueue [12:38:30]wFMCommunicate request_size=4 [12:38:30]MH_SAM_APDU [12:38:30]CAPDU: 80 09 00 00 [12:38:30]Write to MH i2c: E2 08 00 73 04 80 09 00 00 00 00 00 00 E9 [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 73 04 00 90 00 EB [12:38:30]RAPDU: 90 00 [12:38:30]wFMCommunicate OK [12:38:30]SAM_PROTO_ClearQueue done [12:38:30]KKMCreateOFDPacket [12:38:30]OFDProtocolAddRootSTLVToBuf [12:38:30]FM_MakeSignedData [12:38:30]FM_MakeSignedData [12:38:30]SAM_PROTO_SignData [12:38:30]wFMCommunicate request_size=4 [12:38:30]MH_SAM_APDU [12:38:30]CAPDU: 80 0D 01 02 [12:38:30]Write to MH i2c: E2 08 00 74 04 80 0D 01 02 00 00 00 00 F1 [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:30]Read from MH i2c: E2 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 [12:38:30]MH_I2C_Read... [12:38:30]Read from MH i2c: E2 03 00 74 04 00 90 00 EC [12:38:30]RAPDU: 90 00 [12:38:30]wFMCommunicate OK [12:38:30]wFMCommunicate request_size=255 [12:38:30]MH_SAM_APDU [12:38: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C6 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DF 02 00 35 04 06 00 F8 58 61 3E [12:38:30]Write to MH i2c: E2 02 01 75 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C6 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DF 02 00 35 04 06 00 F8 58 61 3E 00 00 74 [12:38:30]Write i2c OK [12:38:30]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 75 04 00 90 00 ED [12:38:31]RAPDU: 90 00 [12:38:31]wFMCommunicate OK [12:38:31]wFMCommunicate request_size=7 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 0D 02 02 02 51 58 [12:38:31]Write to MH i2c: E2 0A 00 76 04 80 0D 02 02 02 00 51 58 00 00 A1 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 03 00 76 04 00 90 00 EE [12:38:31]RAPDU: 90 00 [12:38:31]wFMCommunicate OK [12:38:31]wFMCommunicate request_size=4 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 0D 03 02 [12:38:31]Write to MH i2c: E2 08 00 77 04 80 0D 03 02 00 00 00 00 F6 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 0B 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 0B 00 77 04 00 EE 43 B7 69 8F 0A 91 64 90 00 D6 [12:38:31]RAPDU: EE 43 B7 69 8F 0A 91 64 90 00 [12:38:31]wFMCommunicate OK [12:38:31]SAM_PROTO_SignData done [12:38:31]FM_MakeSignedData done [12:38:31]CreateOFDProtocolMessage [12:38:31]wFMCommunicate request_size=4 [12:38:31]MH_SAM_APDU [12:38:31]CAPDU: 80 11 00 00 [12:38:31]Write to MH i2c: E2 08 00 78 04 80 11 00 00 00 00 00 00 F6 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:31]Read from MH i2c: E2 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 17 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: E2 17 00 78 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [12:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:38:31]wFMCommunicate OK [12:38:31]CreateOFDProtocolMessage done [12:38:31]OFDSenderStorePacket 188259 [12:38:31]StoreOFDPacket docnum=188259 [12:38:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F4 0F 04 01 CE A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C6 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DF 02 00 35 04 06 00 F8 58 61 3E 51 58 EE 43 B7 69 8F 0A 91 64 [12:38:31]CheckFolder [12:38:31]dirname=/storage/ofd_packets [12:38:31]CheckFolder done [12:38:31]ProducePacketName [12:38:31]name=ofd_packets/00188259 [12:38:31]NVStorageSaveData ofd_packets/00188259 [12:38:31]File name is /storage/ofd_packets/00188259 [12:38:31]Write 298 bytes [12:38:31]NVStorageSaveData done [12:38:31]OFDSenderStorePacket done [12:38:31]KKMCreateOFDPacket done [12:38:31]NVStorageSaveData kkm_last_timestamp [12:38:31]File name is /storage/kkm_last_timestamp [12:38:31]Write 4 bytes [12:38:31]NVStorageSaveData done [12:38:31]ExternCall_PrintAddStr [12:38:31]wPrintStart [12:38:31]Write to MH i2c: 01 00 00 79 04 7D [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 07 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 07 00 79 04 00 00 00 00 00 FF 0F 92 [12:38:31]RasterBufferAndPrint [12:38:31]line Счет N : (1)210313 [12:38:31]line ИНН: 02508201610067 [12:38:31]line Контрольно-Кассовый Чек [12:38:31]line ПРОДАЖА [12:38:31]line ТРК (МРК, ГНК) : 51 [12:38:31]line Товар: 2710194210 [12:38:31]line ДТ-К-5 [12:38:31]line 118.120 * 76.20 [12:38:31]line = 9000.74 [12:38:31]line НДС 12% НСП 1% [12:38:31]line > о реализуемом товаре [12:38:31]line ИТОГО: 9000.74 [12:38:31]line НСП 1% : 79.65 [12:38:31]line НДС 12% : 955.83 [12:38:31]line Наличными: 0.00 [12:38:31]line Безнал.: 9000.74 [12:38:31]line Место: АЗС № 86 "Партнер Нефть" [12:38:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:38:31]line СНО: Общий режим [12:38:31]line Чек 288 22.10.2024 12:38 [12:38:31]line Смена: 461 ФФД: 1.0 [12:38:31]line ЗНМ: 0300000155 [12:38:31]line РНМ: 0000000000100030 [12:38:31]line Версия ККМ: 001 [12:38:31]line Платежная система: Mbank [12:38:31]line ФМ: 0000000000965340 [12:38:31]line ФД: 188259 [12:38:31]line ФПД: 273058472284504 [12:38:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123830&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188259&fm=273058472284504&tin=02508201610067®Number=0000000000100030&sum=900074 [12:38:31]written 0, free lines is 4095 [12:38:31]OFD Sender: Processing packet 188259 [packets to send 1062, broken 1061] [12:38:31]ProducePacketName [12:38:31]name=ofd_packets/00188259 [12:38:31]OFD Sender: To server: pG, [12:38:31]CommunicateWithHost lk.salyk.kg:30040 [12:38:31]ConnectInit lk.salyk.kg [12:38:31]Connected sock=10 [12:38:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 F4 0F 04 01 CE A4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EA BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EA BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 01 00 00 F4 03 04 00 C6 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DF 02 00 35 04 06 00 F8 58 61 3E 51 58 EE 43 B7 69 8F 0A 91 64 [12:38:31]Write to MH i2c: 01 00 00 A2 04 A6 [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 07 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: 01 07 00 A2 04 00 00 00 00 00 A9 0C 62 [12:38:31]RasterBufferAndPrint [12:38:31]line [12:38:31]line [12:38:31]line [12:38:31]line [12:38:31]line [12:38:31]written 0, free lines is 3245 [12:38:31]MH_Cut [12:38:31]Write to MH i2c: D1 01 00 A9 04 01 7F [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: D1 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: D1 01 00 [12:38:31]MH_I2C_Read... [12:38:31]Read from MH i2c: D1 01 00 A9 04 00 7E [12:38:31]Write to MH i2c: 01 00 00 AA 04 AE [12:38:31]Write i2c OK [12:38:31]MH_I2C_Read... [12:38:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 45 47 00 1F FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 DF 02 00 F4 03 04 00 B3 46 17 67 B6 04 01 00 00 A3 83 9D 6E 8F B9 E5 D9 [12:38:31]CommunicateWithHost err = 0 [12:38:31]CheckOFDResponse [12:38:31]1017 (14) - 77093643461234 [12:38:31]1041 (16) - 0000000000965340 [12:38:31]1040 (4) - 188259 [12:38:31]1012 (4) - 22.10.2024 06:31 [12:38:31]1206 (1) - 0 [12:38:31]OFD Sender: Remove packet 188259 [12:38:31]ProducePacketName [12:38:31]name=ofd_packets/00188259 [12:38:31]NVStorageDeleteData [12:38:32]OFD Sender: No OFD packet to send [12:38:32]*** Cut start [12:38:32]*** Partial cut [12:38:32]*** CUTSNS_PIN = 1 [12:38:32]*** CUTSNS_PIN = 0 [12:38:33]*** Brake cut motor [12:38:33]Read from MH i2c: 01 [12:38:33]MH_I2C_Read... [12:38:33]*** Stop cut motor [12:38:33]*** Cut end [12:38:33]Read from MH i2c: 01 07 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: 01 07 00 AA 04 00 00 00 00 00 FF 0F C3 [12:38:33]process_action close_receipt done [12:38:33]requested_data is exist [12:38:33]produce_requested_data [12:38:33]requested_item fm.sn is exist - process it [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 11 00 00 [12:38:33]Write to MH i2c: E2 08 00 AB 04 80 11 00 00 00 00 00 00 29 [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 17 00 AB 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [12:38:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:38:33]wFMCommunicate OK [12:38:33]requested_item fd.num is exist - process it [12:38:33]SAM_PROTO_GetFieldsCounters [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 13 00 00 [12:38:33]Write to MH i2c: E2 08 00 AC 04 80 13 00 00 00 00 00 00 2C [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 62 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 62 00 AC 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [12:38:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 20 01 00 00 5E 04 04 00 20 01 00 00 57 04 04 00 21 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:33]wFMCommunicate OK [12:38:33]SAM_PROTO_GetFieldsCounters done [12:38:33]requested_item shift.num is exist - process it [12:38:33]requested_item shift.opened is exist - process it [12:38:33]req_shift_opened [12:38:33]FM_GetShiftState [12:38:33]SAM_PROTO_GetShiftState [12:38:33]wFMCommunicate request_size=4 [12:38:33]MH_SAM_APDU [12:38:33]CAPDU: 80 13 01 00 [12:38:33]Write to MH i2c: E2 08 00 AD 04 80 13 01 00 00 00 00 00 2E [12:38:33]Write i2c OK [12:38:33]MH_I2C_Read... [12:38:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:33]Read from MH i2c: E2 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 0E 00 [12:38:33]MH_I2C_Read... [12:38:33]Read from MH i2c: E2 0E 00 AD 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 23 [12:38:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:38:33]wFMCommunicate OK [12:38:33]SAM_PROTO_GetShiftState done [12:38:33]FM_GetShiftState done [12:38:33]req_shift_opened done [12:38:33]requested_item shift.open_date is exist - process it [12:38:33]req_shift_open_date [12:38:33]req_shift_open_date done [12:38:33]produce_requested_data done [12:38:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188259,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:38:33]process_action_free close_receipt [12:38:33]json_value_free [12:38:33]json_value_free done [12:38:33]process_json_proto returns [12:38:33]Send response to host [12:38:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188259,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:38:33]free response buf [12:38:33]execute_script done [12:38:33]execute_script returns [12:38:33]free content buf [12:38:33]Sock 9.Close socket [12:38:33]Sock 9.Thread stoped [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:46]accept exits with 7 [12:38:46]New connection [12:38:46]New thread 3067059556 created [12:38:46]Thread 3066916196 joined [12:38:46]Waiting for new connection... [12:38:46] Sock 7.Parse request [12:38:46]Sock 7.Check first char [12:38:46]Sock 7.First char is OK [12:38:46]request: POST /json_proto HTTP/1.0 [12:38:46]Method: POST [12:38:46]URL: /json_proto [12:38:46]Method is POST - this is cgi request [12:38:46]url: /json_proto [12:38:46]query_string will be loaded in cgi processing [12:38:46]execute_cgi json_proto POST (null) [12:38:46]execute_cgi path=json_proto method=POST [12:38:46]POST find Content-Length [12:38:46]Host: 172.17.42.131:8080 [12:38:46]Content-Length: 766 [12:38:46]Content-Type: application/json [12:38:46] [12:38:46]POST finish read [12:38:46]Found Content-Length = 766 [12:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 6000.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:46]execute_script... [12:38:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 6000.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:38:46]POST & json_proto [12:38:46]process_json_proto [12:38:46]json parsed OK: [12:38:46]protocol is kg_v1.0 [12:38:46]action value=close_receipt [12:38:46]process_action close_receipt [12:38:46]cmd_close_receipt [12:38:46]MH_GetDate [12:38:46]Write to MH i2c: F0 00 00 AE 04 A1 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: F0 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: F0 09 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: F0 09 00 AE 04 00 D7 9C 17 67 A0 18 CA 66 83 [12:38:46]GetLastDocTimeStamp 1729600710 [12:38:46]current date 1729600727 [12:38:46]FM_GetShiftState [12:38:46]SAM_PROTO_GetShiftState [12:38:46]wFMCommunicate request_size=4 [12:38:46]MH_SAM_APDU [12:38:46]CAPDU: 80 13 01 00 [12:38:46]Write to MH i2c: E2 08 00 AF 04 80 13 01 00 00 00 00 00 30 [12:38:46]Write i2c OK [12:38:46]MH_I2C_Read... [12:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:46]Read from MH i2c: E2 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 0E 00 [12:38:46]MH_I2C_Read... [12:38:46]Read from MH i2c: E2 0E 00 AF 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 25 [12:38:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:38:46]wFMCommunicate OK [12:38:46]SAM_PROTO_GetShiftState done [12:38:46]FM_GetShiftState done [12:38:46]opened in 1729556094 [12:38:46]opened+sec_in_day 1729642494 [12:38:46]quantity*price = 600075 [12:38:46]sum+1 = 600076 [12:38:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 6000.75 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 0.00 Безнал.: 6000.75 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 289 22.10.2024 12:38 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188260 ФПД: 104669588787219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188260&fm=104669588787219&tin=02508201610067®Number=0000000000100030&sum=600075 [12:38:47]StoreToDocumentArchive [12:38:47]shift 461 fd 188260 [12:38:47]save to /storage/0461/doc_00188260 [12:38:47]save last doc name /storage/0461/doc_00188260 to /storage/kkm_last_doc_name [12:38:47]save OK [12:38:47]Clear old archive folders... [12:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [12:38:47]tlvbuf is 01DFE000 [12:38:47]SAM_PROTO_ClearQueue [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 09 00 00 [12:38:47]Write to MH i2c: E2 08 00 BC 04 80 09 00 00 00 00 00 00 32 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 BC 04 00 90 00 34 [12:38:47]RAPDU: 90 00 [12:38:47]wFMCommunicate OK [12:38:47]SAM_PROTO_ClearQueue done [12:38:47]KKMCreateOFDPacket [12:38:47]OFDProtocolAddRootSTLVToBuf [12:38:47]FM_MakeSignedData [12:38:47]FM_MakeSignedData [12:38:47]SAM_PROTO_SignData [12:38:47]wFMCommunicate request_size=4 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 0D 01 02 [12:38:47]Write to MH i2c: E2 08 00 BD 04 80 0D 01 02 00 00 00 00 3A [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:38:47]Read from MH i2c: E2 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 [12:38:47]MH_I2C_Read... [12:38:47]Read from MH i2c: E2 03 00 BD 04 00 90 00 35 [12:38:47]RAPDU: 90 00 [12:38:47]wFMCommunicate OK [12:38:47]wFMCommunicate request_size=255 [12:38:47]MH_SAM_APDU [12:38:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D7 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DF 02 00 35 04 06 00 5F 32 49 A8 [12:38:47]Write to MH i2c: E2 02 01 BE 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D7 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DF 02 00 35 04 06 00 5F 32 49 A8 00 00 43 [12:38:47]Write i2c OK [12:38:47]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 03 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 03 00 BE 04 00 90 00 36 [12:38:48]RAPDU: 90 00 [12:38:48]wFMCommunicate OK [12:38:48]wFMCommunicate request_size=7 [12:38:48]MH_SAM_APDU [12:38:48]CAPDU: 80 0D 02 02 02 90 13 [12:38:48]Write to MH i2c: E2 0A 00 BF 04 80 0D 02 02 02 00 90 13 00 00 E4 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 03 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 03 00 BF 04 00 90 00 37 [12:38:48]RAPDU: 90 00 [12:38:48]wFMCommunicate OK [12:38:48]wFMCommunicate request_size=4 [12:38:48]MH_SAM_APDU [12:38:48]CAPDU: 80 0D 03 02 [12:38:48]Write to MH i2c: E2 08 00 C0 04 80 0D 03 02 00 00 00 00 3F [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 0B 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 0B 00 C0 04 00 59 CE F5 76 19 97 13 FD 90 00 92 [12:38:48]RAPDU: 59 CE F5 76 19 97 13 FD 90 00 [12:38:48]wFMCommunicate OK [12:38:48]SAM_PROTO_SignData done [12:38:48]FM_MakeSignedData done [12:38:48]CreateOFDProtocolMessage [12:38:48]wFMCommunicate request_size=4 [12:38:48]MH_SAM_APDU [12:38:48]CAPDU: 80 11 00 00 [12:38:48]Write to MH i2c: E2 08 00 C1 04 80 11 00 00 00 00 00 00 3F [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:48]Read from MH i2c: E2 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 17 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: E2 17 00 C1 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [12:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:38:48]wFMCommunicate OK [12:38:48]CreateOFDProtocolMessage done [12:38:48]OFDSenderStorePacket 188260 [12:38:48]StoreOFDPacket docnum=188260 [12:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 00 1A 04 01 B4 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D7 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DF 02 00 35 04 06 00 5F 32 49 A8 90 13 59 CE F5 76 19 97 13 FD [12:38:48]CheckFolder [12:38:48]dirname=/storage/ofd_packets [12:38:48]CheckFolder done [12:38:48]ProducePacketName [12:38:48]name=ofd_packets/00188260 [12:38:48]NVStorageSaveData ofd_packets/00188260 [12:38:48]File name is /storage/ofd_packets/00188260 [12:38:48]Write 298 bytes [12:38:48]NVStorageSaveData done [12:38:48]OFDSenderStorePacket done [12:38:48]KKMCreateOFDPacket done [12:38:48]NVStorageSaveData kkm_last_timestamp [12:38:48]File name is /storage/kkm_last_timestamp [12:38:48]Write 4 bytes [12:38:48]NVStorageSaveData done [12:38:48]ExternCall_PrintAddStr [12:38:48]wPrintStart [12:38:48]Write to MH i2c: 01 00 00 C2 04 C6 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 C2 04 00 00 00 00 00 FF 0F DB [12:38:48]RasterBufferAndPrint [12:38:48]line Счет N : (1)210314 [12:38:48]line ИНН: 02508201610067 [12:38:48]line Контрольно-Кассовый Чек [12:38:48]line ПРОДАЖА [12:38:48]line ТРК (МРК, ГНК) : 61 [12:38:48]line Товар: 2710194210 [12:38:48]line ДТ-К-5 [12:38:48]line 78.750 * 76.20 [12:38:48]line = 6000.75 [12:38:48]line НДС 12% НСП 1% [12:38:48]line > о реализуемом товаре [12:38:48]line ИТОГО: 6000.75 [12:38:48]line НСП 1% : 53.10 [12:38:48]line НДС 12% : 637.25 [12:38:48]line Наличными: 0.00 [12:38:48]line Безнал.: 6000.75 [12:38:48]line Место: АЗС № 86 "Партнер Нефть" [12:38:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:38:48]line СНО: Общий режим [12:38:48]line Чек 289 22.10.2024 12:38 [12:38:48]line Смена: 461 ФФД: 1.0 [12:38:48]line ЗНМ: 0300000155 [12:38:48]line РНМ: 0000000000100030 [12:38:48]line Версия ККМ: 001 [12:38:48]line Платежная система: Mbank [12:38:48]line ФМ: 0000000000965340 [12:38:48]line ФД: 188260 [12:38:48]line ФПД: 104669588787219 [12:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188260&fm=104669588787219&tin=02508201610067®Number=0000000000100030&sum=600075 [12:38:48]written 0, free lines is 4095 [12:38:48]OFD Sender: Processing packet 188260 [packets to send 1062, broken 1061] [12:38:48]ProducePacketName [12:38:48]name=ofd_packets/00188260 [12:38:48]OFD Sender: To server: pG, [12:38:48]CommunicateWithHost lk.salyk.kg:30040 [12:38:48]ConnectInit lk.salyk.kg [12:38:48]Connected sock=10 [12:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 00 1A 04 01 B4 E4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0B 28 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0B 28 09 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 01 00 00 F4 03 04 00 D7 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 DF 02 00 35 04 06 00 5F 32 49 A8 90 13 59 CE F5 76 19 97 13 FD [12:38:48]Write to MH i2c: 01 00 00 EB 04 EF [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: 01 07 00 EB 04 00 00 00 00 00 A1 0C A3 [12:38:48]RasterBufferAndPrint [12:38:48]line [12:38:48]line [12:38:48]line [12:38:48]line [12:38:48]line [12:38:48]written 0, free lines is 3237 [12:38:48]MH_Cut [12:38:48]Write to MH i2c: D1 01 00 F2 04 01 C8 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: D1 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: D1 01 00 [12:38:48]MH_I2C_Read... [12:38:48]Read from MH i2c: D1 01 00 F2 04 00 C7 [12:38:48]Write to MH i2c: 01 00 00 F3 04 F7 [12:38:48]Write i2c OK [12:38:48]MH_I2C_Read... [12:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 5E 47 00 E5 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 39 36 35 33 34 30 10 04 04 00 64 DF 02 00 F4 03 04 00 C4 46 17 67 B6 04 01 00 00 77 B3 27 F6 BB 16 5B BA [12:38:48]CommunicateWithHost err = 0 [12:38:48]CheckOFDResponse [12:38:48]1017 (14) - 77093643461234 [12:38:48]1041 (16) - 0000000000965340 [12:38:48]1040 (4) - 188260 [12:38:48]1012 (4) - 22.10.2024 06:31 [12:38:48]1206 (1) - 0 [12:38:48]OFD Sender: Remove packet 188260 [12:38:48]ProducePacketName [12:38:48]name=ofd_packets/00188260 [12:38:48]NVStorageDeleteData [12:38:49]OFD Sender: No OFD packet to send [12:38:49]*** Cut start [12:38:49]*** Partial cut [12:38:49]*** CUTSNS_PIN = 1 [12:38:49]*** CUTSNS_PIN = 0 [12:38:50]*** Brake cut motor [12:38:50]Read from MH i2c: 01 [12:38:50]MH_I2C_Read... [12:38:50]*** Stop cut motor [12:38:50]*** Cut end [12:38:50]Read from MH i2c: 01 07 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: 01 07 00 F3 04 00 00 00 00 00 FF 0F 0C [12:38:50]process_action close_receipt done [12:38:50]requested_data is exist [12:38:50]produce_requested_data [12:38:50]requested_item fm.sn is exist - process it [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 11 00 00 [12:38:50]Write to MH i2c: E2 08 00 F4 04 80 11 00 00 00 00 00 00 72 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 17 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 17 00 F4 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [12:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:38:50]wFMCommunicate OK [12:38:50]requested_item fd.num is exist - process it [12:38:50]SAM_PROTO_GetFieldsCounters [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 00 00 [12:38:50]Write to MH i2c: E2 08 00 F5 04 80 13 00 00 00 00 00 00 75 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 62 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 62 00 F5 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 F5 [12:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 21 01 00 00 5E 04 04 00 21 01 00 00 57 04 04 00 22 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetFieldsCounters done [12:38:50]requested_item shift.num is exist - process it [12:38:50]requested_item shift.opened is exist - process it [12:38:50]req_shift_opened [12:38:50]FM_GetShiftState [12:38:50]SAM_PROTO_GetShiftState [12:38:50]wFMCommunicate request_size=4 [12:38:50]MH_SAM_APDU [12:38:50]CAPDU: 80 13 01 00 [12:38:50]Write to MH i2c: E2 08 00 F6 04 80 13 01 00 00 00 00 00 77 [12:38:50]Write i2c OK [12:38:50]MH_I2C_Read... [12:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:38:50]Read from MH i2c: E2 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 [12:38:50]MH_I2C_Read... [12:38:50]Read from MH i2c: E2 0E 00 F6 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6C [12:38:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:38:50]wFMCommunicate OK [12:38:50]SAM_PROTO_GetShiftState done [12:38:50]FM_GetShiftState done [12:38:50]req_shift_opened done [12:38:50]requested_item shift.open_date is exist - process it [12:38:50]req_shift_open_date [12:38:50]req_shift_open_date done [12:38:50]produce_requested_data done [12:38:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188260,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:38:50]process_action_free close_receipt [12:38:50]json_value_free [12:38:50]json_value_free done [12:38:50]process_json_proto returns [12:38:50]Send response to host [12:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188260,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:38:50]free response buf [12:38:50]execute_script done [12:38:50]execute_script returns [12:38:50]free content buf [12:38:50]Sock 7.Close socket [12:38:50]Sock 7.Thread stoped [12:38:54]OFD Sender: No OFD packet to send [12:38:59]OFD Sender: No OFD packet to send [12:39:04]OFD Sender: No OFD packet to send [12:39:09]OFD Sender: No OFD packet to send [12:39:14]OFD Sender: No OFD packet to send [12:39:19]OFD Sender: No OFD packet to send [12:39:23]accept exits with 9 [12:39:23]New connection [12:39:23]New thread 3066916196 created [12:39:23]Thread 3067059556 joined [12:39:23]Waiting for new connection... [12:39:23] Sock 9.Parse request [12:39:23]Sock 9.Check first char [12:39:23]Sock 9.First char is OK [12:39:23]request: POST /json_proto HTTP/1.0 [12:39:23]Method: POST [12:39:23]URL: /json_proto [12:39:23]Method is POST - this is cgi request [12:39:23]url: /json_proto [12:39:23]query_string will be loaded in cgi processing [12:39:23]execute_cgi json_proto POST (null) [12:39:23]execute_cgi path=json_proto method=POST [12:39:23]POST find Content-Length [12:39:23]Host: 172.17.42.131:8080 [12:39:23]Content-Length: 677 [12:39:23]Content-Type: application/json [12:39:23] [12:39:23]POST finish read [12:39:23]Found Content-Length = 677 [12:39:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:23]execute_script... [12: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)210315", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:39:23]POST & json_proto [12:39:23]process_json_proto [12:39:23]json parsed OK: [12:39:23]protocol is kg_v1.0 [12:39:23]action value=close_receipt [12:39:23]process_action close_receipt [12:39:23]cmd_close_receipt [12:39:23]MH_GetDate [12:39:23]Write to MH i2c: F0 00 00 F7 04 EA [12:39:23]Write i2c OK [12:39:23]MH_I2C_Read... [12:39:23]Read from MH i2c: F0 [12:39:23]MH_I2C_Read... [12:39:23]Read from MH i2c: F0 09 00 [12:39:23]MH_I2C_Read... [12:39:23]Read from MH i2c: F0 09 00 F7 04 00 FC 9C 17 67 A0 18 CA 66 F1 [12:39:23]GetLastDocTimeStamp 1729600727 [12:39:23]current date 1729600764 [12:39:23]FM_GetShiftState [12:39:23]SAM_PROTO_GetShiftState [12:39:23]wFMCommunicate request_size=4 [12:39:23]MH_SAM_APDU [12:39:23]CAPDU: 80 13 01 00 [12:39:23]Write to MH i2c: E2 08 00 F8 04 80 13 01 00 00 00 00 00 79 [12:39:23]Write i2c OK [12:39:23]MH_I2C_Read... [12:39:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:23]Read from MH i2c: E2 [12:39:23]MH_I2C_Read... [12:39:23]Read from MH i2c: E2 0E 00 [12:39:23]MH_I2C_Read... [12:39:23]Read from MH i2c: E2 0E 00 F8 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6E [12:39:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:39:23]wFMCommunicate OK [12:39:23]SAM_PROTO_GetShiftState done [12:39:23]FM_GetShiftState done [12:39:23]opened in 1729556094 [12:39:23]opened+sec_in_day 1729642494 [12:39:23]quantity*price = 40006 [12:39:23]sum+1 = 40007 [12:39:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 290 22.10.2024 12:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188261 ФПД: 170419728519394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123924&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188261&fm=170419728519394&tin=02508201610067®Number=0000000000100030&sum=40000 [12:39:24]StoreToDocumentArchive [12:39:24]shift 461 fd 188261 [12:39:24]save to /storage/0461/doc_00188261 [12:39:24]save last doc name /storage/0461/doc_00188261 to /storage/kkm_last_doc_name [12:39:24]save OK [12:39:24]Clear old archive folders... [12:39:24]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:39:24]tlvbuf is 01E368E0 [12:39:24]SAM_PROTO_ClearQueue [12:39:24]wFMCommunicate request_size=4 [12:39:24]MH_SAM_APDU [12:39:24]CAPDU: 80 09 00 00 [12:39:24]Write to MH i2c: E2 08 00 05 05 80 09 00 00 00 00 00 00 7C [12:39:24]Write i2c OK [12:39:24]MH_I2C_Read... [12:39:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:39:24]Read from MH i2c: E2 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: E2 03 00 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: E2 03 00 05 05 00 90 00 7E [12:39:24]RAPDU: 90 00 [12:39:24]wFMCommunicate OK [12:39:24]SAM_PROTO_ClearQueue done [12:39:24]KKMCreateOFDPacket [12:39:24]OFDProtocolAddRootSTLVToBuf [12:39:24]FM_MakeSignedData [12:39:24]FM_MakeSignedData [12:39:24]SAM_PROTO_SignData [12:39:24]wFMCommunicate request_size=4 [12:39:24]MH_SAM_APDU [12:39:24]CAPDU: 80 0D 01 02 [12:39:24]Write to MH i2c: E2 08 00 06 05 80 0D 01 02 00 00 00 00 84 [12:39:24]Write i2c OK [12:39:24]MH_I2C_Read... [12:39:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:39:24]Read from MH i2c: E2 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: E2 03 00 [12:39:24]MH_I2C_Read... [12:39:24]Read from MH i2c: E2 03 00 06 05 00 90 00 7F [12:39:24]RAPDU: 90 00 [12:39:24]wFMCommunicate OK [12:39:24]wFMCommunicate request_size=255 [12:39:24]MH_SAM_APDU [12:39: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DF 02 00 35 04 06 00 9A [12:39:24]Write to MH i2c: E2 02 01 07 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DF 02 00 35 04 06 00 9A 00 00 AD [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 07 05 00 90 00 80 [12:39:25]RAPDU: 90 00 [12:39:25]wFMCommunicate OK [12:39:25]wFMCommunicate request_size=10 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 0D 02 02 05 FE EF 61 90 E2 [12:39:25]Write to MH i2c: E2 0D 00 08 05 80 0D 02 02 05 00 FE EF 61 90 E2 00 00 51 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 03 00 08 05 00 90 00 81 [12:39:25]RAPDU: 90 00 [12:39:25]wFMCommunicate OK [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 0D 03 02 [12:39:25]Write to MH i2c: E2 08 00 09 05 80 0D 03 02 00 00 00 00 89 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 0B 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 0B 00 09 05 00 95 E2 15 90 6F 53 DA 06 90 00 48 [12:39:25]RAPDU: 95 E2 15 90 6F 53 DA 06 90 00 [12:39:25]wFMCommunicate OK [12:39:25]SAM_PROTO_SignData done [12:39:25]FM_MakeSignedData done [12:39:25]CreateOFDProtocolMessage [12:39:25]wFMCommunicate request_size=4 [12:39:25]MH_SAM_APDU [12:39:25]CAPDU: 80 11 00 00 [12:39:25]Write to MH i2c: E2 08 00 0A 05 80 11 00 00 00 00 00 00 89 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:25]Read from MH i2c: E2 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 17 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: E2 17 00 0A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [12:39:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:39:25]wFMCommunicate OK [12:39:25]CreateOFDProtocolMessage done [12:39:25]OFDSenderStorePacket 188261 [12:39:25]StoreOFDPacket docnum=188261 [12:39:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 57 07 01 25 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DF 02 00 35 04 06 00 9A FE EF 61 90 E2 95 E2 15 90 6F 53 DA 06 [12:39:25]CheckFolder [12:39:25]dirname=/storage/ofd_packets [12:39:25]CheckFolder done [12:39:25]ProducePacketName [12:39:25]name=ofd_packets/00188261 [12:39:25]NVStorageSaveData ofd_packets/00188261 [12:39:25]File name is /storage/ofd_packets/00188261 [12:39:25]Write 301 bytes [12:39:25]NVStorageSaveData done [12:39:25]OFDSenderStorePacket done [12:39:25]KKMCreateOFDPacket done [12:39:25]NVStorageSaveData kkm_last_timestamp [12:39:25]File name is /storage/kkm_last_timestamp [12:39:25]Write 4 bytes [12:39:25]NVStorageSaveData done [12:39:25]ExternCall_PrintAddStr [12:39:25]wPrintStart [12:39:25]Write to MH i2c: 01 00 00 0B 05 10 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 07 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 07 00 0B 05 00 00 00 00 00 FF 0F 25 [12:39:25]RasterBufferAndPrint [12:39:25]line Счет N : (1)210315 [12:39:25]line ИНН: 02508201610067 [12:39:25]line Контрольно-Кассовый Чек [12:39:25]line ПРОДАЖА [12:39:25]line ТРК (МРК, ГНК) : 42 [12:39:25]line Товар: 2710124130 [12:39:25]line Аи-92-К-3 [12:39:25]line 5.980 * 66.90 [12:39:25]line = 400.06 [12:39:25]line НДС 12% НСП 1% [12:39:25]line > о реализуемом товаре [12:39:25]line ОКРУГЛЕНИЕ: -0.06 [12:39:25]line ИТОГО: 400.00 [12:39:25]line Внесено: 400.00 [12:39:25]line СДАЧА: 0.00 [12:39:25]line НСП 1% : 3.54 [12:39:25]line НДС 12% : 42.48 [12:39:25]line Наличными: 400.00 [12:39:25]line Безнал.: 0.00 [12:39:25]line Место: АЗС № 86 "Партнер Нефть" [12:39:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:39:25]line СНО: Общий режим [12:39:25]line Чек 290 22.10.2024 12:39 [12:39:25]line Смена: 461 ФФД: 1.0 [12:39:25]line ЗНМ: 0300000155 [12:39:25]line РНМ: 0000000000100030 [12:39:25]line Версия ККМ: 001 [12:39:25]line ФМ: 0000000000965340 [12:39:25]line ФД: 188261 [12:39:25]line ФПД: 170419728519394 [12:39:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T123924&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188261&fm=170419728519394&tin=02508201610067®Number=0000000000100030&sum=40000 [12:39:25]written 0, free lines is 4095 [12:39:25]OFD Sender: Processing packet 188261 [packets to send 1062, broken 1061] [12:39:25]ProducePacketName [12:39:25]name=ofd_packets/00188261 [12:39:25]OFD Sender: To server: pG, [12:39:25]CommunicateWithHost lk.salyk.kg:30040 [12:39:25]ConnectInit lk.salyk.kg [12:39:25]Connected sock=10 [12:39:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 57 07 01 25 7D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 01 00 00 F4 03 04 00 FC 9C 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DF 02 00 35 04 06 00 9A FE EF 61 90 E2 95 E2 15 90 6F 53 DA 06 [12:39:25]Write to MH i2c: 01 00 00 36 05 3B [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 07 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: 01 07 00 36 05 00 00 00 00 00 71 0C BF [12:39:25]RasterBufferAndPrint [12:39:25]line [12:39:25]line [12:39:25]line [12:39:25]line [12:39:25]line [12:39:25]written 0, free lines is 3187 [12:39:25]MH_Cut [12:39:25]Write to MH i2c: D1 01 00 3D 05 01 14 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: D1 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: D1 01 00 [12:39:25]MH_I2C_Read... [12:39:25]Read from MH i2c: D1 01 00 3D 05 00 13 [12:39:25]Write to MH i2c: 01 00 00 3E 05 43 [12:39:25]Write i2c OK [12:39:25]MH_I2C_Read... [12:39:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E4 7A 47 00 7F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 DF 02 00 F4 03 04 00 EA 46 17 67 B6 04 01 00 00 71 DF 0E 62 37 F8 9E 60 [12:39:26]CommunicateWithHost err = 0 [12:39:26]CheckOFDResponse [12:39:26]1017 (14) - 77093643461234 [12:39:26]1041 (16) - 0000000000965340 [12:39:26]1040 (4) - 188261 [12:39:26]1012 (4) - 22.10.2024 06:32 [12:39:26]1206 (1) - 0 [12:39:26]OFD Sender: Remove packet 188261 [12:39:26]ProducePacketName [12:39:26]name=ofd_packets/00188261 [12:39:26]NVStorageDeleteData [12:39:26]OFD Sender: No OFD packet to send [12:39:27]*** Cut start [12:39:27]*** Partial cut [12:39:27]*** CUTSNS_PIN = 1 [12:39:27]*** CUTSNS_PIN = 0 [12:39:27]*** Brake cut motor [12:39:27]Read from MH i2c: 01 [12:39:27]MH_I2C_Read... [12:39:27]*** Stop cut motor [12:39:27]*** Cut end [12:39:27]Read from MH i2c: 01 07 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: 01 07 00 3E 05 00 00 00 00 00 FF 0F 58 [12:39:27]process_action close_receipt done [12:39:27]requested_data is exist [12:39:27]produce_requested_data [12:39:27]requested_item fm.sn is exist - process it [12:39:27]wFMCommunicate request_size=4 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 11 00 00 [12:39:27]Write to MH i2c: E2 08 00 3F 05 80 11 00 00 00 00 00 00 BE [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 17 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 17 00 3F 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [12:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:39:27]wFMCommunicate OK [12:39:27]requested_item fd.num is exist - process it [12:39:27]SAM_PROTO_GetFieldsCounters [12:39:27]wFMCommunicate request_size=4 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 13 00 00 [12:39:27]Write to MH i2c: E2 08 00 40 05 80 13 00 00 00 00 00 00 C1 [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 62 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 62 00 40 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 45 [12:39:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 22 01 00 00 5E 04 04 00 22 01 00 00 57 04 04 00 23 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:39:27]wFMCommunicate OK [12:39:27]SAM_PROTO_GetFieldsCounters done [12:39:27]requested_item shift.num is exist - process it [12:39:27]requested_item shift.opened is exist - process it [12:39:27]req_shift_opened [12:39:27]FM_GetShiftState [12:39:27]SAM_PROTO_GetShiftState [12:39:27]wFMCommunicate request_size=4 [12:39:27]MH_SAM_APDU [12:39:27]CAPDU: 80 13 01 00 [12:39:27]Write to MH i2c: E2 08 00 41 05 80 13 01 00 00 00 00 00 C3 [12:39:27]Write i2c OK [12:39:27]MH_I2C_Read... [12:39:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:39:27]Read from MH i2c: E2 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 0E 00 [12:39:27]MH_I2C_Read... [12:39:27]Read from MH i2c: E2 0E 00 41 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B8 [12:39:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:39:27]wFMCommunicate OK [12:39:27]SAM_PROTO_GetShiftState done [12:39:27]FM_GetShiftState done [12:39:27]req_shift_opened done [12:39:27]requested_item shift.open_date is exist - process it [12:39:27]req_shift_open_date [12:39:27]req_shift_open_date done [12:39:27]produce_requested_data done [12:39:27]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188261,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:39:27]process_action_free close_receipt [12:39:27]json_value_free [12:39:27]json_value_free done [12:39:27]process_json_proto returns [12:39:27]Send response to host [12:39:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188261,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:39:27]free response buf [12:39:27]execute_script done [12:39:27]execute_script returns [12:39:27]free content buf [12:39:27]Sock 9.Close socket [12:39:27]Sock 9.Thread stoped [12:39:31]OFD Sender: No OFD packet to send [12:39:36]OFD Sender: No OFD packet to send [12:39:41]OFD Sender: No OFD packet to send [12:39:46]OFD Sender: No OFD packet to send [12:39:51]OFD Sender: No OFD packet to send [12:39:56]OFD Sender: No OFD packet to send [12:40:01]OFD Sender: No OFD packet to send [12:40:06]OFD Sender: No OFD packet to send [12:40:11]OFD Sender: No OFD packet to send [12:40:16]OFD Sender: No OFD packet to send [12:40:21]OFD Sender: No OFD packet to send [12:40:26]OFD Sender: No OFD packet to send [12:40:31]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:39]accept exits with 7 [12:40:39]New connection [12:40:39]New thread 3067059556 created [12:40:39]Thread 3066916196 joined [12:40:39]Waiting for new connection... [12:40:39] Sock 7.Parse request [12:40:39]Sock 7.Check first char [12:40:39]Sock 7.First char is OK [12:40:39]request: POST /json_proto HTTP/1.0 [12:40:39]Method: POST [12:40:39]URL: /json_proto [12:40:39]Method is POST - this is cgi request [12:40:39]url: /json_proto [12:40:39]query_string will be loaded in cgi processing [12:40:39]execute_cgi json_proto POST (null) [12:40:39]execute_cgi path=json_proto method=POST [12:40:39]POST find Content-Length [12:40:39]Host: 172.17.42.131:8080 [12:40:39]Content-Length: 683 [12:40:39]Content-Type: application/json [12:40:39] [12:40:39]POST finish read [12:40:39]Found Content-Length = 683 [12:40:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:39]execute_script... [12:40: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)210316", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:39]POST & json_proto [12:40:39]process_json_proto [12:40:39]json parsed OK: [12:40:39]protocol is kg_v1.0 [12:40:39]action value=close_receipt [12:40:39]process_action close_receipt [12:40:39]cmd_close_receipt [12:40:39]MH_GetDate [12:40:39]Write to MH i2c: F0 00 00 42 05 36 [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 09 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: F0 09 00 42 05 00 48 9D 17 67 A0 18 CA 66 8A [12:40:39]GetLastDocTimeStamp 1729600764 [12:40:39]current date 1729600840 [12:40:39]FM_GetShiftState [12:40:39]SAM_PROTO_GetShiftState [12:40:39]wFMCommunicate request_size=4 [12:40:39]MH_SAM_APDU [12:40:39]CAPDU: 80 13 01 00 [12:40:39]Write to MH i2c: E2 08 00 43 05 80 13 01 00 00 00 00 00 C5 [12:40:39]Write i2c OK [12:40:39]MH_I2C_Read... [12:40:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:39]Read from MH i2c: E2 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: E2 0E 00 [12:40:39]MH_I2C_Read... [12:40:39]Read from MH i2c: E2 0E 00 43 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BA [12:40:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:40:39]wFMCommunicate OK [12:40:39]SAM_PROTO_GetShiftState done [12:40:39]FM_GetShiftState done [12:40:39]opened in 1729556094 [12:40:39]opened+sec_in_day 1729642494 [12:40:39]quantity*price = 60061 [12:40:39]sum+1 = 60063 [12:40:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 291 22.10.2024 12:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188262 ФПД: 98548308019827 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124040&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188262&fm=98548308019827&tin=02508201610067®Number=0000000000100030&sum=60000 [12:40:40]StoreToDocumentArchive [12:40:40]shift 461 fd 188262 [12:40:40]save to /storage/0461/doc_00188262 [12:40:40]save last doc name /storage/0461/doc_00188262 to /storage/kkm_last_doc_name [12:40:40]save OK [12:40:40]Clear old archive folders... [12:40:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:40:40]tlvbuf is 01DF28F0 [12:40:40]SAM_PROTO_ClearQueue [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 09 00 00 [12:40:40]Write to MH i2c: E2 08 00 50 05 80 09 00 00 00 00 00 00 C7 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 50 05 00 90 00 C9 [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_ClearQueue done [12:40:40]KKMCreateOFDPacket [12:40:40]OFDProtocolAddRootSTLVToBuf [12:40:40]FM_MakeSignedData [12:40:40]FM_MakeSignedData [12:40:40]SAM_PROTO_SignData [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 01 02 [12:40:40]Write to MH i2c: E2 08 00 51 05 80 0D 01 02 00 00 00 00 CF [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 51 05 00 90 00 CA [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]wFMCommunicate request_size=255 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 23 01 00 00 F4 03 04 00 48 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DF 02 [12:40:40]Write to MH i2c: E2 02 01 52 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 23 01 00 00 F4 03 04 00 48 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DF 02 00 00 E1 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 52 05 00 90 00 CB [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]wFMCommunicate request_size=16 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 59 A1 10 E4 8A 73 [12:40:40]Write to MH i2c: E2 13 00 53 05 80 0D 02 02 0B 00 00 35 04 06 00 59 A1 10 E4 8A 73 00 00 12 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 03 00 53 05 00 90 00 CC [12:40:40]RAPDU: 90 00 [12:40:40]wFMCommunicate OK [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 0D 03 02 [12:40:40]Write to MH i2c: E2 08 00 54 05 80 0D 03 02 00 00 00 00 D4 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:40]Read from MH i2c: E2 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 0B 00 [12:40:40]MH_I2C_Read... [12:40:40]Read from MH i2c: E2 0B 00 54 05 00 8B 8D D6 B9 7E 9E 67 77 90 00 76 [12:40:40]RAPDU: 8B 8D D6 B9 7E 9E 67 77 90 00 [12:40:40]wFMCommunicate OK [12:40:40]SAM_PROTO_SignData done [12:40:40]FM_MakeSignedData done [12:40:40]CreateOFDProtocolMessage [12:40:40]wFMCommunicate request_size=4 [12:40:40]MH_SAM_APDU [12:40:40]CAPDU: 80 11 00 00 [12:40:40]Write to MH i2c: E2 08 00 55 05 80 11 00 00 00 00 00 00 D4 [12:40:40]Write i2c OK [12:40:40]MH_I2C_Read... [12:40:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:41]Read from MH i2c: E2 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 17 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: E2 17 00 55 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [12:40:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:40:41]wFMCommunicate OK [12:40:41]CreateOFDProtocolMessage done [12:40:41]OFDSenderStorePacket 188262 [12:40:41]StoreOFDPacket docnum=188262 [12:40:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3E EC 0D 01 11 F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 23 01 00 00 F4 03 04 00 48 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DF 02 00 35 04 06 00 59 A1 10 E4 8A 73 8B 8D D6 B9 7E 9E 67 77 [12:40:41]CheckFolder [12:40:41]dirname=/storage/ofd_packets [12:40:41]CheckFolder done [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00188262 [12:40:41]NVStorageSaveData ofd_packets/00188262 [12:40:41]File name is /storage/ofd_packets/00188262 [12:40:41]Write 307 bytes [12:40:41]NVStorageSaveData done [12:40:41]OFDSenderStorePacket done [12:40:41]KKMCreateOFDPacket done [12:40:41]NVStorageSaveData kkm_last_timestamp [12:40:41]File name is /storage/kkm_last_timestamp [12:40:41]Write 4 bytes [12:40:41]NVStorageSaveData done [12:40:41]ExternCall_PrintAddStr [12:40:41]wPrintStart [12:40:41]Write to MH i2c: 01 00 00 56 05 5B [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 56 05 00 00 00 00 00 FF 0F 70 [12:40:41]RasterBufferAndPrint [12:40:41]line Счет N : (1)210316 [12:40:41]line ИНН: 02508201610067 [12:40:41]line Контрольно-Кассовый Чек [12:40:41]line ПРОДАЖА [12:40:41]line ТРК (МРК, ГНК) : 11 [12:40:41]line Товар: 2710194210 [12:40:41]line D-ENERGY ДТ-К-5 [12:40:41]line 7.780 * 77.20 [12:40:41]line = 600.62 [12:40:41]line НДС 12% НСП 1% [12:40:41]line > о реализуемом товаре [12:40:41]line ОКРУГЛЕНИЕ: -0.62 [12:40:41]line ИТОГО: 600.00 [12:40:41]line Внесено: 600.00 [12:40:41]line СДАЧА: 0.00 [12:40:41]line НСП 1% : 5.31 [12:40:41]line НДС 12% : 63.78 [12:40:41]line Наличными: 600.00 [12:40:41]line Безнал.: 0.00 [12:40:41]line Место: АЗС № 86 "Партнер Нефть" [12:40:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:40:41]line СНО: Общий режим [12:40:41]line Чек 291 22.10.2024 12:40 [12:40:41]line Смена: 461 ФФД: 1.0 [12:40:41]line ЗНМ: 0300000155 [12:40:41]line РНМ: 0000000000100030 [12:40:41]line Версия ККМ: 001 [12:40:41]line ФМ: 0000000000965340 [12:40:41]line ФД: 188262 [12:40:41]line ФПД: 98548308019827 [12:40:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124040&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188262&fm=98548308019827&tin=02508201610067®Number=0000000000100030&sum=60000 [12:40:41]written 0, free lines is 4095 [12:40:41]OFD Sender: Processing packet 188262 [packets to send 1062, broken 1061] [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00188262 [12:40:41]OFD Sender: To server: pG, [12:40:41]CommunicateWithHost lk.salyk.kg:30040 [12:40:41]ConnectInit lk.salyk.kg [12:40:41]Connected sock=9 [12:40:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3E EC 0D 01 11 F3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 23 01 00 00 F4 03 04 00 48 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DF 02 00 35 04 06 00 59 A1 10 E4 8A 73 8B 8D D6 B9 7E 9E 67 77 [12:40:41]Write to MH i2c: 01 00 00 81 05 86 [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: 01 07 00 81 05 00 00 00 00 00 6D 0C 06 [12:40:41]RasterBufferAndPrint [12:40:41]line [12:40:41]line [12:40:41]line [12:40:41]line [12:40:41]line [12:40:41]written 0, free lines is 3185 [12:40:41]MH_Cut [12:40:41]Write to MH i2c: D1 01 00 88 05 01 5F [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: D1 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: D1 01 00 [12:40:41]MH_I2C_Read... [12:40:41]Read from MH i2c: D1 01 00 88 05 00 5E [12:40:41]Write to MH i2c: 01 00 00 89 05 8E [12:40:41]Write i2c OK [12:40:41]MH_I2C_Read... [12:40:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E4 E0 47 00 CE DA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 DF 02 00 F4 03 04 00 35 47 17 67 B6 04 01 00 00 C5 F8 0C 0F 11 1F CC FC [12:40:41]CommunicateWithHost err = 0 [12:40:41]CheckOFDResponse [12:40:41]1017 (14) - 77093643461234 [12:40:41]1041 (16) - 0000000000965340 [12:40:41]1040 (4) - 188262 [12:40:41]1012 (4) - 22.10.2024 06:33 [12:40:41]1206 (1) - 0 [12:40:41]OFD Sender: Remove packet 188262 [12:40:41]ProducePacketName [12:40:41]name=ofd_packets/00188262 [12:40:41]NVStorageDeleteData [12:40:42]OFD Sender: No OFD packet to send [12:40:42]*** Cut start [12:40:42]*** Partial cut [12:40:42]*** CUTSNS_PIN = 1 [12:40:42]*** CUTSNS_PIN = 0 [12:40:42]*** Brake cut motor [12:40:43]Read from MH i2c: 01 [12:40:43]MH_I2C_Read... [12:40:43]*** Stop cut motor [12:40:43]*** Cut end [12:40:43]Read from MH i2c: 01 07 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: 01 07 00 89 05 00 00 00 00 00 FF 0F A3 [12:40:43]process_action close_receipt done [12:40:43]requested_data is exist [12:40:43]produce_requested_data [12:40:43]requested_item fm.sn is exist - process it [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 11 00 00 [12:40:43]Write to MH i2c: E2 08 00 8A 05 80 11 00 00 00 00 00 00 09 [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 17 00 8A 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [12:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:40:43]wFMCommunicate OK [12:40:43]requested_item fd.num is exist - process it [12:40:43]SAM_PROTO_GetFieldsCounters [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 00 00 [12:40:43]Write to MH i2c: E2 08 00 8B 05 80 13 00 00 00 00 00 00 0C [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 62 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 62 00 8B 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [12:40:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 23 01 00 00 5E 04 04 00 23 01 00 00 57 04 04 00 24 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetFieldsCounters done [12:40:43]requested_item shift.num is exist - process it [12:40:43]requested_item shift.opened is exist - process it [12:40:43]req_shift_opened [12:40:43]FM_GetShiftState [12:40:43]SAM_PROTO_GetShiftState [12:40:43]wFMCommunicate request_size=4 [12:40:43]MH_SAM_APDU [12:40:43]CAPDU: 80 13 01 00 [12:40:43]Write to MH i2c: E2 08 00 8C 05 80 13 01 00 00 00 00 00 0E [12:40:43]Write i2c OK [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 [12:40:43]MH_I2C_Read... [12:40:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:43]Read from MH i2c: E2 0E 00 [12:40:43]MH_I2C_Read... [12:40:43]Read from MH i2c: E2 0E 00 8C 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 03 [12:40:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:40:43]wFMCommunicate OK [12:40:43]SAM_PROTO_GetShiftState done [12:40:43]FM_GetShiftState done [12:40:43]req_shift_opened done [12:40:43]requested_item shift.open_date is exist - process it [12:40:43]req_shift_open_date [12:40:43]req_shift_open_date done [12:40:43]produce_requested_data done [12:40:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188262,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:40:43]process_action_free close_receipt [12:40:43]json_value_free [12:40:43]json_value_free done [12:40:43]process_json_proto returns [12:40:43]Send response to host [12:40:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188262,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:40:43]free response buf [12:40:43]execute_script done [12:40:43]execute_script returns [12:40:43]free content buf [12:40:43]Sock 7.Close socket [12:40:43]Sock 7.Thread stoped [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:52]accept exits with 10 [12:40:52]New connection [12:40:52]New thread 3066916196 created [12:40:52]Thread 3067059556 joined [12:40:52]Waiting for new connection... [12:40:52] Sock 10.Parse request [12:40:52]Sock 10.Check first char [12:40:52]Sock 10.First char is OK [12:40:52]request: POST /json_proto HTTP/1.0 [12:40:52]Method: POST [12:40:52]URL: /json_proto [12:40:52]Method is POST - this is cgi request [12:40:52]url: /json_proto [12:40:52]query_string will be loaded in cgi processing [12:40:52]execute_cgi json_proto POST (null) [12:40:52]execute_cgi path=json_proto method=POST [12:40:52]POST find Content-Length [12:40:52]Host: 172.17.42.131:8080 [12:40:52]Content-Length: 677 [12:40:52]Content-Type: application/json [12:40:52] [12:40:52]POST finish read [12:40:52]Found Content-Length = 677 [12:40:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:52]execute_script... [12:40: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)210317", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:40:52]POST & json_proto [12:40:52]process_json_proto [12:40:52]json parsed OK: [12:40:52]protocol is kg_v1.0 [12:40:52]action value=close_receipt [12:40:52]process_action close_receipt [12:40:52]cmd_close_receipt [12:40:52]MH_GetDate [12:40:52]Write to MH i2c: F0 00 00 8D 05 81 [12:40:52]Write i2c OK [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: F0 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: F0 09 00 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: F0 09 00 8D 05 00 55 9D 17 67 A0 18 CA 66 E2 [12:40:52]GetLastDocTimeStamp 1729600840 [12:40:52]current date 1729600853 [12:40:52]FM_GetShiftState [12:40:52]SAM_PROTO_GetShiftState [12:40:52]wFMCommunicate request_size=4 [12:40:52]MH_SAM_APDU [12:40:52]CAPDU: 80 13 01 00 [12:40:52]Write to MH i2c: E2 08 00 8E 05 80 13 01 00 00 00 00 00 10 [12:40:52]Write i2c OK [12:40:52]MH_I2C_Read... [12:40:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:52]Read from MH i2c: E2 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 0E 00 [12:40:52]MH_I2C_Read... [12:40:52]Read from MH i2c: E2 0E 00 8E 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 05 [12:40:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:40:52]wFMCommunicate OK [12:40:52]SAM_PROTO_GetShiftState done [12:40:52]FM_GetShiftState done [12:40:52]opened in 1729556094 [12:40:52]opened+sec_in_day 1729642494 [12:40:52]quantity*price = 20003 [12:40:52]sum+1 = 20004 [12:40:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 292 22.10.2024 12:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188263 ФПД: 181994871748808 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124053&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188263&fm=181994871748808&tin=02508201610067®Number=0000000000100030&sum=20000 [12:40:53]StoreToDocumentArchive [12:40:53]shift 461 fd 188263 [12:40:53]save to /storage/0461/doc_00188263 [12:40:53]save last doc name /storage/0461/doc_00188263 to /storage/kkm_last_doc_name [12:40:53]save OK [12:40:53]Clear old archive folders... [12:40:53]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:40:53]tlvbuf is 01DFE130 [12:40:53]SAM_PROTO_ClearQueue [12:40:53]wFMCommunicate request_size=4 [12:40:53]MH_SAM_APDU [12:40:53]CAPDU: 80 09 00 00 [12:40:53]Write to MH i2c: E2 08 00 9B 05 80 09 00 00 00 00 00 00 12 [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:40:53]Read from MH i2c: E2 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 9B 05 00 90 00 14 [12:40:53]RAPDU: 90 00 [12:40:53]wFMCommunicate OK [12:40:53]SAM_PROTO_ClearQueue done [12:40:53]KKMCreateOFDPacket [12:40:53]OFDProtocolAddRootSTLVToBuf [12:40:53]FM_MakeSignedData [12:40:53]FM_MakeSignedData [12:40:53]SAM_PROTO_SignData [12:40:53]wFMCommunicate request_size=4 [12:40:53]MH_SAM_APDU [12:40:53]CAPDU: 80 0D 01 02 [12:40:53]Write to MH i2c: E2 08 00 9C 05 80 0D 01 02 00 00 00 00 1A [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:40:53]Read from MH i2c: E2 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 9C 05 00 90 00 15 [12:40:53]RAPDU: 90 00 [12:40:53]wFMCommunicate OK [12:40:53]wFMCommunicate request_size=255 [12:40:53]MH_SAM_APDU [12:40: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 55 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DF 02 00 35 04 06 00 A5 [12:40:53]Write to MH i2c: E2 02 01 9D 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 55 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DF 02 00 35 04 06 00 A5 00 00 9F [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:53]Read from MH i2c: E2 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 9D 05 00 90 00 16 [12:40:53]RAPDU: 90 00 [12:40:53]wFMCommunicate OK [12:40:53]wFMCommunicate request_size=10 [12:40:53]MH_SAM_APDU [12:40:53]CAPDU: 80 0D 02 02 05 85 FB AE 78 C8 [12:40:53]Write to MH i2c: E2 0D 00 9E 05 80 0D 02 02 05 00 85 FB AE 78 C8 00 00 95 [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:40:53]Read from MH i2c: E2 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 03 00 9E 05 00 90 00 17 [12:40:53]RAPDU: 90 00 [12:40:53]wFMCommunicate OK [12:40:53]wFMCommunicate request_size=4 [12:40:53]MH_SAM_APDU [12:40:53]CAPDU: 80 0D 03 02 [12:40:53]Write to MH i2c: E2 08 00 9F 05 80 0D 03 02 00 00 00 00 1F [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:40:53]Read from MH i2c: E2 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 0B 00 [12:40:53]MH_I2C_Read... [12:40:53]Read from MH i2c: E2 0B 00 9F 05 00 A8 CE 42 1E 7B 6D 6C 0F 90 00 59 [12:40:53]RAPDU: A8 CE 42 1E 7B 6D 6C 0F 90 00 [12:40:53]wFMCommunicate OK [12:40:53]SAM_PROTO_SignData done [12:40:53]FM_MakeSignedData done [12:40:53]CreateOFDProtocolMessage [12:40:53]wFMCommunicate request_size=4 [12:40:53]MH_SAM_APDU [12:40:53]CAPDU: 80 11 00 00 [12:40:53]Write to MH i2c: E2 08 00 A0 05 80 11 00 00 00 00 00 00 1F [12:40:53]Write i2c OK [12:40:53]MH_I2C_Read... [12:40:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:54]Read from MH i2c: E2 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: E2 17 00 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: E2 17 00 A0 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [12:40:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:40:54]wFMCommunicate OK [12:40:54]CreateOFDProtocolMessage done [12:40:54]OFDSenderStorePacket 188263 [12:40:54]StoreOFDPacket docnum=188263 [12:40:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BE 13 07 01 69 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 55 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DF 02 00 35 04 06 00 A5 85 FB AE 78 C8 A8 CE 42 1E 7B 6D 6C 0F [12:40:54]CheckFolder [12:40:54]dirname=/storage/ofd_packets [12:40:54]CheckFolder done [12:40:54]ProducePacketName [12:40:54]name=ofd_packets/00188263 [12:40:54]NVStorageSaveData ofd_packets/00188263 [12:40:54]File name is /storage/ofd_packets/00188263 [12:40:54]Write 301 bytes [12:40:54]NVStorageSaveData done [12:40:54]OFDSenderStorePacket done [12:40:54]KKMCreateOFDPacket done [12:40:54]NVStorageSaveData kkm_last_timestamp [12:40:54]File name is /storage/kkm_last_timestamp [12:40:54]Write 4 bytes [12:40:54]NVStorageSaveData done [12:40:54]ExternCall_PrintAddStr [12:40:54]wPrintStart [12:40:54]Write to MH i2c: 01 00 00 A1 05 A6 [12:40:54]Write i2c OK [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: 01 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: 01 07 00 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: 01 07 00 A1 05 00 00 00 00 00 FF 0F BB [12:40:54]RasterBufferAndPrint [12:40:54]line Счет N : (1)210317 [12:40:54]line ИНН: 02508201610067 [12:40:54]line Контрольно-Кассовый Чек [12:40:54]line ПРОДАЖА [12:40:54]line ТРК (МРК, ГНК) : 22 [12:40:54]line Товар: 2710124130 [12:40:54]line Аи-92-К-3 [12:40:54]line 2.990 * 66.90 [12:40:54]line = 200.03 [12:40:54]line НДС 12% НСП 1% [12:40:54]line > о реализуемом товаре [12:40:54]line ОКРУГЛЕНИЕ: -0.03 [12:40:54]line ИТОГО: 200.00 [12:40:54]line Внесено: 200.00 [12:40:54]line СДАЧА: 0.00 [12:40:54]line НСП 1% : 1.77 [12:40:54]line НДС 12% : 21.24 [12:40:54]line Наличными: 200.00 [12:40:54]line Безнал.: 0.00 [12:40:54]line Место: АЗС № 86 "Партнер Нефть" [12:40:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:40:54]line СНО: Общий режим [12:40:54]line Чек 292 22.10.2024 12:40 [12:40:54]line Смена: 461 ФФД: 1.0 [12:40:54]line ЗНМ: 0300000155 [12:40:54]line РНМ: 0000000000100030 [12:40:54]line Версия ККМ: 001 [12:40:54]line ФМ: 0000000000965340 [12:40:54]line ФД: 188263 [12:40:54]line ФПД: 181994871748808 [12:40:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124053&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188263&fm=181994871748808&tin=02508201610067®Number=0000000000100030&sum=20000 [12:40:54]written 0, free lines is 4095 [12:40:54]OFD Sender: Processing packet 188263 [packets to send 1062, broken 1061] [12:40:54]ProducePacketName [12:40:54]name=ofd_packets/00188263 [12:40:54]OFD Sender: To server: pG, [12:40:54]CommunicateWithHost lk.salyk.kg:30040 [12:40:54]ConnectInit lk.salyk.kg [12:40:54]Connected sock=9 [12:40:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BE 13 07 01 69 1A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 01 00 00 F4 03 04 00 55 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DF 02 00 35 04 06 00 A5 85 FB AE 78 C8 A8 CE 42 1E 7B 6D 6C 0F [12:40:54]Write to MH i2c: 01 00 00 CC 05 D1 [12:40:54]Write i2c OK [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: 01 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: 01 07 00 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: 01 07 00 CC 05 00 00 00 00 00 71 0C 55 [12:40:54]RasterBufferAndPrint [12:40:54]line [12:40:54]line [12:40:54]line [12:40:54]line [12:40:54]line [12:40:54]written 0, free lines is 3189 [12:40:54]MH_Cut [12:40:54]Write to MH i2c: D1 01 00 D3 05 01 AA [12:40:54]Write i2c OK [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: D1 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: D1 01 00 [12:40:54]MH_I2C_Read... [12:40:54]Read from MH i2c: D1 01 00 D3 05 00 A9 [12:40:54]Write to MH i2c: 01 00 00 D4 05 D9 [12:40:54]Write i2c OK [12:40:54]MH_I2C_Read... [12:40:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD 60 47 00 64 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 DF 02 00 F4 03 04 00 42 47 17 67 B6 04 01 00 00 30 CA 58 2D A9 3A 6A 61 [12:40:54]CommunicateWithHost err = 0 [12:40:54]CheckOFDResponse [12:40:54]1017 (14) - 77093643461234 [12:40:54]1041 (16) - 0000000000965340 [12:40:54]1040 (4) - 188263 [12:40:54]1012 (4) - 22.10.2024 06:33 [12:40:54]1206 (1) - 0 [12:40:54]OFD Sender: Remove packet 188263 [12:40:54]ProducePacketName [12:40:54]name=ofd_packets/00188263 [12:40:54]NVStorageDeleteData [12:40:55]OFD Sender: No OFD packet to send [12:40:55]*** Cut start [12:40:55]*** Partial cut [12:40:55]*** CUTSNS_PIN = 1 [12:40:55]*** CUTSNS_PIN = 0 [12:40:55]*** Brake cut motor [12:40:56]Read from MH i2c: 01 [12:40:56]MH_I2C_Read... [12:40:56]*** Stop cut motor [12:40:56]*** Cut end [12:40:56]Read from MH i2c: 01 07 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: 01 07 00 D4 05 00 00 00 00 00 FF 0F EE [12:40:56]process_action close_receipt done [12:40:56]requested_data is exist [12:40:56]produce_requested_data [12:40:56]requested_item fm.sn is exist - process it [12:40:56]wFMCommunicate request_size=4 [12:40:56]MH_SAM_APDU [12:40:56]CAPDU: 80 11 00 00 [12:40:56]Write to MH i2c: E2 08 00 D5 05 80 11 00 00 00 00 00 00 54 [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:40:56]Read from MH i2c: E2 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 17 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 17 00 D5 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [12:40:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:40:56]wFMCommunicate OK [12:40:56]requested_item fd.num is exist - process it [12:40:56]SAM_PROTO_GetFieldsCounters [12:40:56]wFMCommunicate request_size=4 [12:40:56]MH_SAM_APDU [12:40:56]CAPDU: 80 13 00 00 [12:40:56]Write to MH i2c: E2 08 00 D6 05 80 13 00 00 00 00 00 00 57 [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:40:56]Read from MH i2c: E2 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 62 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 62 00 D6 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [12:40:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 24 01 00 00 5E 04 04 00 24 01 00 00 57 04 04 00 25 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:40:56]wFMCommunicate OK [12:40:56]SAM_PROTO_GetFieldsCounters done [12:40:56]requested_item shift.num is exist - process it [12:40:56]requested_item shift.opened is exist - process it [12:40:56]req_shift_opened [12:40:56]FM_GetShiftState [12:40:56]SAM_PROTO_GetShiftState [12:40:56]wFMCommunicate request_size=4 [12:40:56]MH_SAM_APDU [12:40:56]CAPDU: 80 13 01 00 [12:40:56]Write to MH i2c: E2 08 00 D7 05 80 13 01 00 00 00 00 00 59 [12:40:56]Write i2c OK [12:40:56]MH_I2C_Read... [12:40:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:40:56]Read from MH i2c: E2 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 0E 00 [12:40:56]MH_I2C_Read... [12:40:56]Read from MH i2c: E2 0E 00 D7 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4E [12:40:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:40:56]wFMCommunicate OK [12:40:56]SAM_PROTO_GetShiftState done [12:40:56]FM_GetShiftState done [12:40:56]req_shift_opened done [12:40:56]requested_item shift.open_date is exist - process it [12:40:56]req_shift_open_date [12:40:56]req_shift_open_date done [12:40:56]produce_requested_data done [12:40:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188263,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:40:56]process_action_free close_receipt [12:40:56]json_value_free [12:40:56]json_value_free done [12:40:56]process_json_proto returns [12:40:56]Send response to host [12:40:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188263,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:40:56]free response buf [12:40:56]execute_script done [12:40:56]execute_script returns [12:40:56]free content buf [12:40:56]Sock 10.Close socket [12:40:56]Sock 10.Thread stoped [12:41:00]OFD Sender: No OFD packet to send [12:41:05]OFD Sender: No OFD packet to send [12:41:10]OFD Sender: No OFD packet to send [12:41:15]OFD Sender: No OFD packet to send [12:41:20]OFD Sender: No OFD packet to send [12:41:25]OFD Sender: No OFD packet to send [12:41:30]OFD Sender: No OFD packet to send [12:41:35]OFD Sender: No OFD packet to send [12:41:40]OFD Sender: No OFD packet to send [12:41:45]OFD Sender: No OFD packet to send [12:41:50]OFD Sender: No OFD packet to send [12:41:55]OFD Sender: No OFD packet to send [12:42:00]OFD Sender: No OFD packet to send [12:42:05]OFD Sender: No OFD packet to send [12:42:10]OFD Sender: No OFD packet to send [12:42:15]OFD Sender: No OFD packet to send [12:42:20]OFD Sender: No OFD packet to send [12:42:25]OFD Sender: No OFD packet to send [12:42:30]OFD Sender: No OFD packet to send [12:42:35]OFD Sender: No OFD packet to send [12:42:40]OFD Sender: No OFD packet to send [12:42:45]OFD Sender: No OFD packet to send [12:42:50]OFD Sender: No OFD packet to send [12:42:55]OFD Sender: No OFD packet to send [12:43:00]OFD Sender: No OFD packet to send [12:43:04]accept exits with 7 [12:43:04]New connection [12:43:04]New thread 3067059556 created [12:43:04]Thread 3066916196 joined [12:43:04]Waiting for new connection... [12:43:04] Sock 7.Parse request [12:43:04]Sock 7.Check first char [12:43:04]Sock 7.First char is OK [12:43:04]request: POST /json_proto HTTP/1.0 [12:43:04]Method: POST [12:43:04]URL: /json_proto [12:43:04]Method is POST - this is cgi request [12:43:04]url: /json_proto [12:43:04]query_string will be loaded in cgi processing [12:43:04]execute_cgi json_proto POST (null) [12:43:04]execute_cgi path=json_proto method=POST [12:43:04]POST find Content-Length [12:43:04]Host: 172.17.42.131:8080 [12:43:04]Content-Length: 769 [12:43:04]Content-Type: application/json [12:43:04] [12:43:04]POST finish read [12:43:04]Found Content-Length = 769 [12:43:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:04]execute_script... [12:43: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)210318", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:04]POST & json_proto [12:43:04]process_json_proto [12:43:04]json parsed OK: [12:43:04]protocol is kg_v1.0 [12:43:04]action value=close_receipt [12:43:04]process_action close_receipt [12:43:04]cmd_close_receipt [12:43:04]MH_GetDate [12:43:04]Write to MH i2c: F0 00 00 D8 05 CC [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: F0 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: F0 09 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: F0 09 00 D8 05 00 D9 9D 17 67 A0 18 CA 66 B1 [12:43:04]GetLastDocTimeStamp 1729600853 [12:43:04]current date 1729600985 [12:43:04]FM_GetShiftState [12:43:04]SAM_PROTO_GetShiftState [12:43:04]wFMCommunicate request_size=4 [12:43:04]MH_SAM_APDU [12:43:04]CAPDU: 80 13 01 00 [12:43:04]Write to MH i2c: E2 08 00 D9 05 80 13 01 00 00 00 00 00 5B [12:43:04]Write i2c OK [12:43:04]MH_I2C_Read... [12:43:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:04]Read from MH i2c: E2 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 [12:43:04]MH_I2C_Read... [12:43:04]Read from MH i2c: E2 0E 00 D9 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 50 [12:43:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:43:04]wFMCommunicate OK [12:43:04]SAM_PROTO_GetShiftState done [12:43:04]FM_GetShiftState done [12:43:04]opened in 1729556094 [12:43:04]opened+sec_in_day 1729642494 [12:43:04]quantity*price = 150056 [12:43:04]sum+1 = 150058 [12:43:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 293 22.10.2024 12:43 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188264 ФПД: 253482519074259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124305&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188264&fm=253482519074259&tin=02508201610067®Number=0000000000100030&sum=150057 [12:43:05]StoreToDocumentArchive [12:43:05]shift 461 fd 188264 [12:43:05]save to /storage/0461/doc_00188264 [12:43:05]save last doc name /storage/0461/doc_00188264 to /storage/kkm_last_doc_name [12:43:05]save OK [12:43:05]Clear old archive folders... [12:43:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:43:05]tlvbuf is 01E42FE0 [12:43:05]SAM_PROTO_ClearQueue [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 09 00 00 [12:43:05]Write to MH i2c: E2 08 00 E6 05 80 09 00 00 00 00 00 00 5D [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 E6 05 00 90 00 5F [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]SAM_PROTO_ClearQueue done [12:43:05]KKMCreateOFDPacket [12:43:05]OFDProtocolAddRootSTLVToBuf [12:43:05]FM_MakeSignedData [12:43:05]FM_MakeSignedData [12:43:05]SAM_PROTO_SignData [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 01 02 [12:43:05]Write to MH i2c: E2 08 00 E7 05 80 0D 01 02 00 00 00 00 65 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 E7 05 00 90 00 60 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=255 [12:43:05]MH_SAM_APDU [12:43: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D9 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DF 02 00 35 04 06 00 E6 [12:43:05]Write to MH i2c: E2 02 01 E8 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D9 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DF 02 00 35 04 06 00 E6 00 00 AC [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]OFD Sender: No OFD packet to send [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 E8 05 00 90 00 61 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=10 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 02 02 05 8A 7F 81 95 D3 [12:43:05]Write to MH i2c: E2 0D 00 E9 05 80 0D 02 02 05 00 8A 7F 81 95 D3 00 00 64 [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:05]Read from MH i2c: E2 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 [12:43:05]MH_I2C_Read... [12:43:05]Read from MH i2c: E2 03 00 E9 05 00 90 00 62 [12:43:05]RAPDU: 90 00 [12:43:05]wFMCommunicate OK [12:43:05]wFMCommunicate request_size=4 [12:43:05]MH_SAM_APDU [12:43:05]CAPDU: 80 0D 03 02 [12:43:05]Write to MH i2c: E2 08 00 EA 05 80 0D 03 02 00 00 00 00 6A [12:43:05]Write i2c OK [12:43:05]MH_I2C_Read... [12:43:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:06]Read from MH i2c: E2 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 0B 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 0B 00 EA 05 00 E1 F1 9C 07 72 01 F6 FF 90 00 48 [12:43:06]RAPDU: E1 F1 9C 07 72 01 F6 FF 90 00 [12:43:06]wFMCommunicate OK [12:43:06]SAM_PROTO_SignData done [12:43:06]FM_MakeSignedData done [12:43:06]CreateOFDProtocolMessage [12:43:06]wFMCommunicate request_size=4 [12:43:06]MH_SAM_APDU [12:43:06]CAPDU: 80 11 00 00 [12:43:06]Write to MH i2c: E2 08 00 EB 05 80 11 00 00 00 00 00 00 6A [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:06]Read from MH i2c: E2 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 17 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: E2 17 00 EB 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [12:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:43:06]wFMCommunicate OK [12:43:06]CreateOFDProtocolMessage done [12:43:06]OFDSenderStorePacket 188264 [12:43:06]StoreOFDPacket docnum=188264 [12:43:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 C7 07 01 2D 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D9 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DF 02 00 35 04 06 00 E6 8A 7F 81 95 D3 E1 F1 9C 07 72 01 F6 FF [12:43:06]CheckFolder [12:43:06]dirname=/storage/ofd_packets [12:43:06]CheckFolder done [12:43:06]ProducePacketName [12:43:06]name=ofd_packets/00188264 [12:43:06]NVStorageSaveData ofd_packets/00188264 [12:43:06]File name is /storage/ofd_packets/00188264 [12:43:06]Write 301 bytes [12:43:06]NVStorageSaveData done [12:43:06]OFDSenderStorePacket done [12:43:06]KKMCreateOFDPacket done [12:43:06]NVStorageSaveData kkm_last_timestamp [12:43:06]File name is /storage/kkm_last_timestamp [12:43:06]Write 4 bytes [12:43:06]NVStorageSaveData done [12:43:06]ExternCall_PrintAddStr [12:43:06]wPrintStart [12:43:06]Write to MH i2c: 01 00 00 EC 05 F1 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 EC 05 00 00 00 00 00 FF 0F 06 [12:43:06]RasterBufferAndPrint [12:43:06]line Счет N : (1)210318 [12:43:06]line ИНН: 02508201610067 [12:43:06]line Контрольно-Кассовый Чек [12:43:06]line ПРОДАЖА [12:43:06]line ТРК (МРК, ГНК) : 42 [12:43:06]line Товар: 2710124130 [12:43:06]line Аи-92-К-3 [12:43:06]line 22.430 * 66.90 [12:43:06]line = 1500.57 [12:43:06]line НДС 12% НСП 1% [12:43:06]line > о реализуемом товаре [12:43:06]line ИТОГО: 1500.57 [12:43:06]line НСП 1% : 13.28 [12:43:06]line НДС 12% : 159.35 [12:43:06]line Наличными: 0.00 [12:43:06]line Безнал.: 1500.57 [12:43:06]line Место: АЗС № 86 "Партнер Нефть" [12:43:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:43:06]line СНО: Общий режим [12:43:06]line Чек 293 22.10.2024 12:43 [12:43:06]line Смена: 461 ФФД: 1.0 [12:43:06]line ЗНМ: 0300000155 [12:43:06]line РНМ: 0000000000100030 [12:43:06]line Версия ККМ: 001 [12:43:06]line Платежная система: Mbank [12:43:06]line ФМ: 0000000000965340 [12:43:06]line ФД: 188264 [12:43:06]line ФПД: 253482519074259 [12:43:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124305&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188264&fm=253482519074259&tin=02508201610067®Number=0000000000100030&sum=150057 [12:43:06]written 0, free lines is 4095 [12:43:06]OFD Sender: Processing packet 188264 [packets to send 1062, broken 1061] [12:43:06]ProducePacketName [12:43:06]name=ofd_packets/00188264 [12:43:06]OFD Sender: To server: pG, [12:43:06]CommunicateWithHost lk.salyk.kg:30040 [12:43:06]ConnectInit lk.salyk.kg [12:43:06]Connected sock=9 [12:43:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 C7 07 01 2D 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 01 00 00 F4 03 04 00 D9 9D 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 DF 02 00 35 04 06 00 E6 8A 7F 81 95 D3 E1 F1 9C 07 72 01 F6 FF [12:43:06]Write to MH i2c: 01 00 00 15 06 1B [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: 01 07 00 15 06 00 00 00 00 00 A1 0C CF [12:43:06]RasterBufferAndPrint [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]line [12:43:06]written 0, free lines is 3236 [12:43:06]MH_Cut [12:43:06]Write to MH i2c: D1 01 00 1C 06 01 F4 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 01 00 [12:43:06]MH_I2C_Read... [12:43:06]Read from MH i2c: D1 01 00 1C 06 00 F3 [12:43:06]Write to MH i2c: 01 00 00 1D 06 23 [12:43:06]Write i2c OK [12:43:06]MH_I2C_Read... [12:43:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B0 6A 47 00 14 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 39 36 35 33 34 30 10 04 04 00 68 DF 02 00 F4 03 04 00 C6 47 17 67 B6 04 01 00 00 06 7E FA B9 5D D1 30 DC [12:43:06]CommunicateWithHost err = 0 [12:43:06]CheckOFDResponse [12:43:06]1017 (14) - 77093643461234 [12:43:06]1041 (16) - 0000000000965340 [12:43:06]1040 (4) - 188264 [12:43:06]1012 (4) - 22.10.2024 06:35 [12:43:06]1206 (1) - 0 [12:43:06]OFD Sender: Remove packet 188264 [12:43:06]ProducePacketName [12:43:06]name=ofd_packets/00188264 [12:43:06]NVStorageDeleteData [12:43:07]OFD Sender: No OFD packet to send [12:43:07]*** Cut start [12:43:07]*** Partial cut [12:43:07]*** CUTSNS_PIN = 1 [12:43:07]*** CUTSNS_PIN = 0 [12:43:07]*** Brake cut motor [12:43:08]Read from MH i2c: 01 [12:43:08]MH_I2C_Read... [12:43:08]*** Stop cut motor [12:43:08]*** Cut end [12:43:08]Read from MH i2c: 01 07 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: 01 07 00 1D 06 00 00 00 00 00 FF 0F 38 [12:43:08]process_action close_receipt done [12:43:08]requested_data is exist [12:43:08]produce_requested_data [12:43:08]requested_item fm.sn is exist - process it [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 11 00 00 [12:43:08]Write to MH i2c: E2 08 00 1E 06 80 11 00 00 00 00 00 00 9E [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 17 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 17 00 1E 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [12:43:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:43:08]wFMCommunicate OK [12:43:08]requested_item fd.num is exist - process it [12:43:08]SAM_PROTO_GetFieldsCounters [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 00 00 [12:43:08]Write to MH i2c: E2 08 00 1F 06 80 13 00 00 00 00 00 00 A1 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 62 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 62 00 1F 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [12:43:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 25 01 00 00 5E 04 04 00 25 01 00 00 57 04 04 00 26 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetFieldsCounters done [12:43:08]requested_item shift.num is exist - process it [12:43:08]requested_item shift.opened is exist - process it [12:43:08]req_shift_opened [12:43:08]FM_GetShiftState [12:43:08]SAM_PROTO_GetShiftState [12:43:08]wFMCommunicate request_size=4 [12:43:08]MH_SAM_APDU [12:43:08]CAPDU: 80 13 01 00 [12:43:08]Write to MH i2c: E2 08 00 20 06 80 13 01 00 00 00 00 00 A3 [12:43:08]Write i2c OK [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 [12:43:08]MH_I2C_Read... [12:43:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:08]Read from MH i2c: E2 0E 00 [12:43:08]MH_I2C_Read... [12:43:08]Read from MH i2c: E2 0E 00 20 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 98 [12:43:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:43:08]wFMCommunicate OK [12:43:08]SAM_PROTO_GetShiftState done [12:43:08]FM_GetShiftState done [12:43:08]req_shift_opened done [12:43:08]requested_item shift.open_date is exist - process it [12:43:08]req_shift_open_date [12:43:08]req_shift_open_date done [12:43:08]produce_requested_data done [12:43:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188264,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:43:08]process_action_free close_receipt [12:43:08]json_value_free [12:43:08]json_value_free done [12:43:08]process_json_proto returns [12:43:08]Send response to host [12:43:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188264,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:43:08]free response buf [12:43:08]execute_script done [12:43:08]execute_script returns [12:43:08]free content buf [12:43:08]Sock 7.Close socket [12:43:08]Sock 7.Thread stoped [12:43:12]OFD Sender: No OFD packet to send [12:43:17]OFD Sender: No OFD packet to send [12:43:22]OFD Sender: No OFD packet to send [12:43:27]OFD Sender: No OFD packet to send [12:43:32]OFD Sender: No OFD packet to send [12:43:37]OFD Sender: No OFD packet to send [12:43:42]OFD Sender: No OFD packet to send [12:43:47]OFD Sender: No OFD packet to send [12:43:52]OFD Sender: No OFD packet to send [12:43:57]OFD Sender: No OFD packet to send [12:44:02]OFD Sender: No OFD packet to send [12:44:07]OFD Sender: No OFD packet to send [12:44:12]OFD Sender: No OFD packet to send [12:44:17]OFD Sender: No OFD packet to send [12:44:22]OFD Sender: No OFD packet to send [12:44:27]OFD Sender: No OFD packet to send [12:44:32]OFD Sender: No OFD packet to send [12:44:36]accept exits with 10 [12:44:36]New connection [12:44:36]New thread 3066916196 created [12:44:36]Thread 3067059556 joined [12:44:36]Waiting for new connection... [12:44:36] Sock 10.Parse request [12:44:36]Sock 10.Check first char [12:44:36]Sock 10.First char is OK [12:44:36]request: POST /json_proto HTTP/1.0 [12:44:36]Method: POST [12:44:36]URL: /json_proto [12:44:36]Method is POST - this is cgi request [12:44:36]url: /json_proto [12:44:36]query_string will be loaded in cgi processing [12:44:36]execute_cgi json_proto POST (null) [12:44:36]execute_cgi path=json_proto method=POST [12:44:36]POST find Content-Length [12:44:36]Host: 172.17.42.131:8080 [12:44:36]Content-Length: 682 [12:44:36]Content-Type: application/json [12:44:36] [12:44:36]POST finish read [12:44:36]Found Content-Length = 682 [12:44:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210319", "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" : 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" ] } } [12:44:36]execute_script... [12: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)210319", "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" : 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" ] } } [12:44:36]POST & json_proto [12:44:36]process_json_proto [12:44:36]json parsed OK: [12:44:36]protocol is kg_v1.0 [12:44:36]action value=close_receipt [12:44:36]process_action close_receipt [12:44:36]cmd_close_receipt [12:44:36]MH_GetDate [12:44:36]Write to MH i2c: F0 00 00 21 06 16 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: F0 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: F0 09 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: F0 09 00 21 06 00 35 9E 17 67 A0 18 CA 66 58 [12:44:36]GetLastDocTimeStamp 1729600985 [12:44:36]current date 1729601077 [12:44:36]FM_GetShiftState [12:44:36]SAM_PROTO_GetShiftState [12:44:36]wFMCommunicate request_size=4 [12:44:36]MH_SAM_APDU [12:44:36]CAPDU: 80 13 01 00 [12:44:36]Write to MH i2c: E2 08 00 22 06 80 13 01 00 00 00 00 00 A5 [12:44:36]Write i2c OK [12:44:36]MH_I2C_Read... [12:44:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:36]Read from MH i2c: E2 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0E 00 [12:44:36]MH_I2C_Read... [12:44:36]Read from MH i2c: E2 0E 00 22 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9A [12:44:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:44:36]wFMCommunicate OK [12:44:36]SAM_PROTO_GetShiftState done [12:44:36]FM_GetShiftState done [12:44:36]opened in 1729556094 [12:44:36]opened+sec_in_day 1729642494 [12:44:36]quantity*price = 200043 [12:44:36]sum+1 = 200044 [12:44:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 294 22.10.2024 12:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188265 ФПД: 271048761713735 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124437&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188265&fm=271048761713735&tin=02508201610067®Number=0000000000100030&sum=200000 [12:44:37]StoreToDocumentArchive [12:44:37]shift 461 fd 188265 [12:44:37]save to /storage/0461/doc_00188265 [12:44:37]save last doc name /storage/0461/doc_00188265 to /storage/kkm_last_doc_name [12:44:37]save OK [12:44:37]Clear old archive folders... [12:44:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:44:37]tlvbuf is 01E442A0 [12:44:37]SAM_PROTO_ClearQueue [12:44:37]wFMCommunicate request_size=4 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 09 00 00 [12:44:37]Write to MH i2c: E2 08 00 2F 06 80 09 00 00 00 00 00 00 A7 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 2F 06 00 90 00 A9 [12:44:37]RAPDU: 90 00 [12:44:37]wFMCommunicate OK [12:44:37]SAM_PROTO_ClearQueue done [12:44:37]KKMCreateOFDPacket [12:44:37]OFDProtocolAddRootSTLVToBuf [12:44:37]FM_MakeSignedData [12:44:37]FM_MakeSignedData [12:44:37]SAM_PROTO_SignData [12:44:37]wFMCommunicate request_size=4 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 0D 01 02 [12:44:37]Write to MH i2c: E2 08 00 30 06 80 0D 01 02 00 00 00 00 AF [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 30 06 00 90 00 AA [12:44:37]RAPDU: 90 00 [12:44:37]wFMCommunicate OK [12:44:37]wFMCommunicate request_size=255 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 26 01 00 00 F4 03 04 00 35 9E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DF 02 00 35 04 06 00 F6 [12:44:37]Write to MH i2c: E2 02 01 31 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 26 01 00 00 F4 03 04 00 35 9E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DF 02 00 35 04 06 00 F6 00 00 50 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]OFD Sender: No OFD packet to send [12:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 31 06 00 90 00 AB [12:44:37]RAPDU: 90 00 [12:44:37]wFMCommunicate OK [12:44:37]wFMCommunicate request_size=10 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 0D 02 02 05 84 75 28 A4 47 [12:44:37]Write to MH i2c: E2 0D 00 32 06 80 0D 02 02 05 00 84 75 28 A4 47 00 00 C8 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 03 00 32 06 00 90 00 AC [12:44:37]RAPDU: 90 00 [12:44:37]wFMCommunicate OK [12:44:37]wFMCommunicate request_size=4 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 0D 03 02 [12:44:37]Write to MH i2c: E2 08 00 33 06 80 0D 03 02 00 00 00 00 B4 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:44:37]Read from MH i2c: E2 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 0B 00 [12:44:37]MH_I2C_Read... [12:44:37]Read from MH i2c: E2 0B 00 33 06 00 4D D9 84 C3 6B 11 80 36 90 00 54 [12:44:37]RAPDU: 4D D9 84 C3 6B 11 80 36 90 00 [12:44:37]wFMCommunicate OK [12:44:37]SAM_PROTO_SignData done [12:44:37]FM_MakeSignedData done [12:44:37]CreateOFDProtocolMessage [12:44:37]wFMCommunicate request_size=4 [12:44:37]MH_SAM_APDU [12:44:37]CAPDU: 80 11 00 00 [12:44:37]Write to MH i2c: E2 08 00 34 06 80 11 00 00 00 00 00 00 B4 [12:44:37]Write i2c OK [12:44:37]MH_I2C_Read... [12:44:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:38]Read from MH i2c: E2 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 17 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: E2 17 00 34 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [12:44:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:44:38]wFMCommunicate OK [12:44:38]CreateOFDProtocolMessage done [12:44:38]OFDSenderStorePacket 188265 [12:44:38]StoreOFDPacket docnum=188265 [12:44:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 4D 07 01 EF 06 5A 03 01 00 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 26 01 00 00 F4 03 04 00 35 9E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DF 02 00 35 04 06 00 F6 84 75 28 A4 47 4D D9 84 C3 6B 11 80 36 [12:44:38]CheckFolder [12:44:38]dirname=/storage/ofd_packets [12:44:38]CheckFolder done [12:44:38]ProducePacketName [12:44:38]name=ofd_packets/00188265 [12:44:38]NVStorageSaveData ofd_packets/00188265 [12:44:38]File name is /storage/ofd_packets/00188265 [12:44:38]Write 301 bytes [12:44:38]NVStorageSaveData done [12:44:38]OFDSenderStorePacket done [12:44:38]KKMCreateOFDPacket done [12:44:38]NVStorageSaveData kkm_last_timestamp [12:44:38]File name is /storage/kkm_last_timestamp [12:44:38]Write 4 bytes [12:44:38]NVStorageSaveData done [12:44:38]ExternCall_PrintAddStr [12:44:38]wPrintStart [12:44:38]Write to MH i2c: 01 00 00 35 06 3B [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 35 06 00 00 00 00 00 FF 0F 50 [12:44:38]RasterBufferAndPrint [12:44:38]line Счет N : (1)210319 [12:44:38]line ИНН: 02508201610067 [12:44:38]line Контрольно-Кассовый Чек [12:44:38]line ПРОДАЖА [12:44:38]line ТРК (МРК, ГНК) : 33 [12:44:38]line Товар: 2710124500 [12:44:38]line Аи-95-К-3 [12:44:38]line 26.960 * 74.20 [12:44:38]line = 2000.43 [12:44:38]line НДС 12% НСП 1% [12:44:38]line > о реализуемом товаре [12:44:38]line ОКРУГЛЕНИЕ: -0.43 [12:44:38]line ИТОГО: 2000.00 [12:44:38]line Внесено: 2000.00 [12:44:38]line СДАЧА: 0.00 [12:44:38]line НСП 1% : 17.70 [12:44:38]line НДС 12% : 212.43 [12:44:38]line Наличными: 2000.00 [12:44:38]line Безнал.: 0.00 [12:44:38]line Место: АЗС № 86 "Партнер Нефть" [12:44:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:44:38]line СНО: Общий режим [12:44:38]line Чек 294 22.10.2024 12:44 [12:44:38]line Смена: 461 ФФД: 1.0 [12:44:38]line ЗНМ: 0300000155 [12:44:38]line РНМ: 0000000000100030 [12:44:38]line Версия ККМ: 001 [12:44:38]line ФМ: 0000000000965340 [12:44:38]line ФД: 188265 [12:44:38]line ФПД: 271048761713735 [12:44:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124437&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188265&fm=271048761713735&tin=02508201610067®Number=0000000000100030&sum=200000 [12:44:38]written 0, free lines is 4095 [12:44:38]OFD Sender: Processing packet 188265 [packets to send 1062, broken 1061] [12:44:38]ProducePacketName [12:44:38]name=ofd_packets/00188265 [12:44:38]OFD Sender: To server: pG, [12:44:38]CommunicateWithHost lk.salyk.kg:30040 [12:44:38]ConnectInit lk.salyk.kg [12:44:38]Connected sock=9 [12:44:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 32 4D 07 01 EF 06 5A 03 01 00 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 26 01 00 00 F4 03 04 00 35 9E 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DF 02 00 35 04 06 00 F6 84 75 28 A4 47 4D D9 84 C3 6B 11 80 36 [12:44:38]Write to MH i2c: 01 00 00 60 06 66 [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: 01 07 00 60 06 00 00 00 00 00 72 0C EB [12:44:38]RasterBufferAndPrint [12:44:38]line [12:44:38]line [12:44:38]line [12:44:38]line [12:44:38]line [12:44:38]written 0, free lines is 3188 [12:44:38]MH_Cut [12:44:38]Write to MH i2c: D1 01 00 67 06 01 3F [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: D1 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: D1 01 00 [12:44:38]MH_I2C_Read... [12:44:38]Read from MH i2c: D1 01 00 67 06 00 3E [12:44:38]Write to MH i2c: 01 00 00 68 06 6E [12:44:38]Write i2c OK [12:44:38]MH_I2C_Read... [12:44:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 C7 47 00 89 4C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 DF 02 00 F4 03 04 00 22 48 17 67 B6 04 01 00 00 A3 2A A5 4C 8A 8F 50 F0 [12:44:38]CommunicateWithHost err = 0 [12:44:38]CheckOFDResponse [12:44:38]1017 (14) - 77093643461234 [12:44:38]1041 (16) - 0000000000965340 [12:44:38]1040 (4) - 188265 [12:44:38]1012 (4) - 22.10.2024 06:37 [12:44:38]1206 (1) - 0 [12:44:38]OFD Sender: Remove packet 188265 [12:44:38]ProducePacketName [12:44:38]name=ofd_packets/00188265 [12:44:38]NVStorageDeleteData [12:44:39]OFD Sender: No OFD packet to send [12:44:39]*** Cut start [12:44:39]*** Partial cut [12:44:39]*** CUTSNS_PIN = 1 [12:44:39]*** CUTSNS_PIN = 0 [12:44:39]*** Brake cut motor [12:44:40]Read from MH i2c: 01 [12:44:40]MH_I2C_Read... [12:44:40]*** Stop cut motor [12:44:40]*** Cut end [12:44:40]Read from MH i2c: 01 07 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: 01 07 00 68 06 00 00 00 00 00 FF 0F 83 [12:44:40]process_action close_receipt done [12:44:40]requested_data is exist [12:44:40]produce_requested_data [12:44:40]requested_item fm.sn is exist - process it [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 11 00 00 [12:44:40]Write to MH i2c: E2 08 00 69 06 80 11 00 00 00 00 00 00 E9 [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:44:40]Read from MH i2c: E2 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 17 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 17 00 69 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [12:44:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:44:40]wFMCommunicate OK [12:44:40]requested_item fd.num is exist - process it [12:44:40]SAM_PROTO_GetFieldsCounters [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 13 00 00 [12:44:40]Write to MH i2c: E2 08 00 6A 06 80 13 00 00 00 00 00 00 EC [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:44:40]Read from MH i2c: E2 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 62 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 62 00 6A 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [12:44:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 26 01 00 00 5E 04 04 00 26 01 00 00 57 04 04 00 27 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:44:40]wFMCommunicate OK [12:44:40]SAM_PROTO_GetFieldsCounters done [12:44:40]requested_item shift.num is exist - process it [12:44:40]requested_item shift.opened is exist - process it [12:44:40]req_shift_opened [12:44:40]FM_GetShiftState [12:44:40]SAM_PROTO_GetShiftState [12:44:40]wFMCommunicate request_size=4 [12:44:40]MH_SAM_APDU [12:44:40]CAPDU: 80 13 01 00 [12:44:40]Write to MH i2c: E2 08 00 6B 06 80 13 01 00 00 00 00 00 EE [12:44:40]Write i2c OK [12:44:40]MH_I2C_Read... [12:44:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:44:40]Read from MH i2c: E2 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 0E 00 [12:44:40]MH_I2C_Read... [12:44:40]Read from MH i2c: E2 0E 00 6B 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E3 [12:44:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:44:40]wFMCommunicate OK [12:44:40]SAM_PROTO_GetShiftState done [12:44:40]FM_GetShiftState done [12:44:40]req_shift_opened done [12:44:40]requested_item shift.open_date is exist - process it [12:44:40]req_shift_open_date [12:44:40]req_shift_open_date done [12:44:40]produce_requested_data done [12:44:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188265,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:44:40]process_action_free close_receipt [12:44:40]json_value_free [12:44:40]json_value_free done [12:44:40]process_json_proto returns [12:44:40]Send response to host [12:44:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188265,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:44:40]free response buf [12:44:40]execute_script done [12:44:40]execute_script returns [12:44:40]free content buf [12:44:40]Sock 10.Close socket [12:44:40]Sock 10.Thread stoped [12:44:44]OFD Sender: No OFD packet to send [12:44:49]OFD Sender: No OFD packet to send [12:44:54]OFD Sender: No OFD packet to send [12:44:59]OFD Sender: No OFD packet to send [12:45:04]OFD Sender: No OFD packet to send [12:45:09]OFD Sender: No OFD packet to send [12:45:14]OFD Sender: No OFD packet to send [12:45:19]OFD Sender: No OFD packet to send [12:45:24]OFD Sender: No OFD packet to send [12:45:29]OFD Sender: No OFD packet to send [12:45:34]OFD Sender: No OFD packet to send [12:45:39]OFD Sender: No OFD packet to send [12:45:44]OFD Sender: No OFD packet to send [12:45:49]OFD Sender: No OFD packet to send [12:45:54]OFD Sender: No OFD packet to send [12:45:59]OFD Sender: No OFD packet to send [12:46:04]OFD Sender: No OFD packet to send [12:46:09]OFD Sender: No OFD packet to send [12:46:14]OFD Sender: No OFD packet to send [12:46:19]OFD Sender: No OFD packet to send [12:46:24]OFD Sender: No OFD packet to send [12:46:29]OFD Sender: No OFD packet to send [12:46:34]OFD Sender: No OFD packet to send [12:46:39]OFD Sender: No OFD packet to send [12:46:44]OFD Sender: No OFD packet to send [12:46:49]OFD Sender: No OFD packet to send [12:46:54]OFD Sender: No OFD packet to send [12:46:59]OFD Sender: No OFD packet to send [12:47:04]OFD Sender: No OFD packet to send [12:47:09]OFD Sender: No OFD packet to send [12:47:15]OFD Sender: No OFD packet to send [12:47:20]OFD Sender: No OFD packet to send [12:47:25]OFD Sender: No OFD packet to send [12:47:30]OFD Sender: No OFD packet to send [12:47:35]OFD Sender: No OFD packet to send [12:47:40]OFD Sender: No OFD packet to send [12:47:45]OFD Sender: No OFD packet to send [12:47:50]OFD Sender: No OFD packet to send [12:47:55]OFD Sender: No OFD packet to send [12:48:00]OFD Sender: No OFD packet to send [12:48:05]OFD Sender: No OFD packet to send [12:48:10]OFD Sender: No OFD packet to send [12:48:15]OFD Sender: No OFD packet to send [12:48:20]OFD Sender: No OFD packet to send [12:48:25]OFD Sender: No OFD packet to send [12:48:30]OFD Sender: No OFD packet to send [12:48:35]OFD Sender: No OFD packet to send [12:48:40]OFD Sender: No OFD packet to send [12:48:45]OFD Sender: No OFD packet to send [12:48:50]OFD Sender: No OFD packet to send [12:48:50]accept exits with 7 [12:48:50]New connection [12:48:50]New thread 3067059556 created [12:48:50]Thread 3066916196 joined [12:48:50]Waiting for new connection... [12:48:50] Sock 7.Parse request [12:48:50]Sock 7.Check first char [12:48:50]Sock 7.First char is OK [12:48:50]request: POST /json_proto HTTP/1.0 [12:48:50]Method: POST [12:48:50]URL: /json_proto [12:48:50]Method is POST - this is cgi request [12:48:50]url: /json_proto [12:48:50]query_string will be loaded in cgi processing [12:48:50]execute_cgi json_proto POST (null) [12:48:50]execute_cgi path=json_proto method=POST [12:48:50]POST find Content-Length [12:48:50]Host: 172.17.42.131:8080 [12:48:50]Content-Length: 677 [12:48:50]Content-Type: application/json [12:48:50] [12:48:50]POST finish read [12:48:50]Found Content-Length = 677 [12:48:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:50]execute_script... [12:48:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210320", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.240, "sum" : 350.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 350.00, "total" : 350.00, "payments": [ { "type": 0, "sum" : 350.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:48:50]POST & json_proto [12:48:50]process_json_proto [12:48:50]json parsed OK: [12:48:50]protocol is kg_v1.0 [12:48:50]action value=close_receipt [12:48:50]process_action close_receipt [12:48:50]cmd_close_receipt [12:48:50]MH_GetDate [12:48:50]Write to MH i2c: F0 00 00 6C 06 61 [12:48:50]Write i2c OK [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: F0 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: F0 09 00 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: F0 09 00 6C 06 00 33 9F 17 67 A0 18 CA 66 A2 [12:48:50]GetLastDocTimeStamp 1729601077 [12:48:50]current date 1729601331 [12:48:50]FM_GetShiftState [12:48:50]SAM_PROTO_GetShiftState [12:48:50]wFMCommunicate request_size=4 [12:48:50]MH_SAM_APDU [12:48:50]CAPDU: 80 13 01 00 [12:48:50]Write to MH i2c: E2 08 00 6D 06 80 13 01 00 00 00 00 00 F0 [12:48:50]Write i2c OK [12:48:50]MH_I2C_Read... [12:48:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:50]Read from MH i2c: E2 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: E2 0E 00 [12:48:50]MH_I2C_Read... [12:48:50]Read from MH i2c: E2 0E 00 6D 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E5 [12:48:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:48:50]wFMCommunicate OK [12:48:50]SAM_PROTO_GetShiftState done [12:48:50]FM_GetShiftState done [12:48:50]opened in 1729556094 [12:48:50]opened+sec_in_day 1729642494 [12:48:50]quantity*price = 35055 [12:48:50]sum+1 = 35057 [12:48:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 350.00 Внесено: 350.00 СДАЧА: 0.00 НСП 1% : 3.10 НДС 12% : 37.23 Наличными: 350.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 295 22.10.2024 12:48 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188266 ФПД: 133172331587678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188266&fm=133172331587678&tin=02508201610067®Number=0000000000100030&sum=35000 [12:48:51]StoreToDocumentArchive [12:48:51]shift 461 fd 188266 [12:48:51]save to /storage/0461/doc_00188266 [12:48:51]save last doc name /storage/0461/doc_00188266 to /storage/kkm_last_doc_name [12:48:51]save OK [12:48:51]Clear old archive folders... [12:48:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:48:51]tlvbuf is B6EF4BB0 [12:48:51]SAM_PROTO_ClearQueue [12:48:51]wFMCommunicate request_size=4 [12:48:51]MH_SAM_APDU [12:48:51]CAPDU: 80 09 00 00 [12:48:51]Write to MH i2c: E2 08 00 7A 06 80 09 00 00 00 00 00 00 F2 [12:48:51]Write i2c OK [12:48:51]MH_I2C_Read... [12:48:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:48:51]Read from MH i2c: E2 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: E2 03 00 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: E2 03 00 7A 06 00 90 00 F4 [12:48:51]RAPDU: 90 00 [12:48:51]wFMCommunicate OK [12:48:51]SAM_PROTO_ClearQueue done [12:48:51]KKMCreateOFDPacket [12:48:51]OFDProtocolAddRootSTLVToBuf [12:48:51]FM_MakeSignedData [12:48:51]FM_MakeSignedData [12:48:51]SAM_PROTO_SignData [12:48:51]wFMCommunicate request_size=4 [12:48:51]MH_SAM_APDU [12:48:51]CAPDU: 80 0D 01 02 [12:48:51]Write to MH i2c: E2 08 00 7B 06 80 0D 01 02 00 00 00 00 FA [12:48:51]Write i2c OK [12:48:51]MH_I2C_Read... [12:48:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:48:51]Read from MH i2c: E2 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: E2 03 00 [12:48:51]MH_I2C_Read... [12:48:51]Read from MH i2c: E2 03 00 7B 06 00 90 00 F5 [12:48:51]RAPDU: 90 00 [12:48:51]wFMCommunicate OK [12:48:51]wFMCommunicate request_size=255 [12:48:51]MH_SAM_APDU [12:48:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 33 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DF 02 00 35 04 06 00 79 [12:48:51]Write to MH i2c: E2 02 01 7C 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 33 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DF 02 00 35 04 06 00 79 00 00 82 [12:48:51]Write i2c OK [12:48:51]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 7C 06 00 90 00 F6 [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=10 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 02 02 05 1E 99 84 A8 5E [12:48:52]Write to MH i2c: E2 0D 00 7D 06 80 0D 02 02 05 00 1E 99 84 A8 5E 00 00 48 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 03 00 7D 06 00 90 00 F7 [12:48:52]RAPDU: 90 00 [12:48:52]wFMCommunicate OK [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 0D 03 02 [12:48:52]Write to MH i2c: E2 08 00 7E 06 80 0D 03 02 00 00 00 00 FF [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0B 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 0B 00 7E 06 00 DE 94 7C C8 2C 0C CD 18 90 00 D3 [12:48:52]RAPDU: DE 94 7C C8 2C 0C CD 18 90 00 [12:48:52]wFMCommunicate OK [12:48:52]SAM_PROTO_SignData done [12:48:52]FM_MakeSignedData done [12:48:52]CreateOFDProtocolMessage [12:48:52]wFMCommunicate request_size=4 [12:48:52]MH_SAM_APDU [12:48:52]CAPDU: 80 11 00 00 [12:48:52]Write to MH i2c: E2 08 00 7F 06 80 11 00 00 00 00 00 00 FF [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:52]Read from MH i2c: E2 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 17 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: E2 17 00 7F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [12:48:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:48:52]wFMCommunicate OK [12:48:52]CreateOFDProtocolMessage done [12:48:52]OFDSenderStorePacket 188266 [12:48:52]StoreOFDPacket docnum=188266 [12:48:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 92 07 01 70 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 33 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DF 02 00 35 04 06 00 79 1E 99 84 A8 5E DE 94 7C C8 2C 0C CD 18 [12:48:52]CheckFolder [12:48:52]dirname=/storage/ofd_packets [12:48:52]CheckFolder done [12:48:52]ProducePacketName [12:48:52]name=ofd_packets/00188266 [12:48:52]NVStorageSaveData ofd_packets/00188266 [12:48:52]File name is /storage/ofd_packets/00188266 [12:48:52]Write 301 bytes [12:48:52]NVStorageSaveData done [12:48:52]OFDSenderStorePacket done [12:48:52]KKMCreateOFDPacket done [12:48:52]NVStorageSaveData kkm_last_timestamp [12:48:52]File name is /storage/kkm_last_timestamp [12:48:52]Write 4 bytes [12:48:52]NVStorageSaveData done [12:48:52]ExternCall_PrintAddStr [12:48:52]wPrintStart [12:48:52]Write to MH i2c: 01 00 00 80 06 86 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 80 06 00 00 00 00 00 FF 0F 9B [12:48:52]RasterBufferAndPrint [12:48:52]line Счет N : (1)210320 [12:48:52]line ИНН: 02508201610067 [12:48:52]line Контрольно-Кассовый Чек [12:48:52]line ПРОДАЖА [12:48:52]line ТРК (МРК, ГНК) : 32 [12:48:52]line Товар: 2710124130 [12:48:52]line Аи-92-К-3 [12:48:52]line 5.240 * 66.90 [12:48:52]line = 350.56 [12:48:52]line НДС 12% НСП 1% [12:48:52]line > о реализуемом товаре [12:48:52]line ОКРУГЛЕНИЕ: -0.56 [12:48:52]line ИТОГО: 350.00 [12:48:52]line Внесено: 350.00 [12:48:52]line СДАЧА: 0.00 [12:48:52]line НСП 1% : 3.10 [12:48:52]line НДС 12% : 37.23 [12:48:52]line Наличными: 350.00 [12:48:52]line Безнал.: 0.00 [12:48:52]line Место: АЗС № 86 "Партнер Нефть" [12:48:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:48:52]line СНО: Общий режим [12:48:52]line Чек 295 22.10.2024 12:48 [12:48:52]line Смена: 461 ФФД: 1.0 [12:48:52]line ЗНМ: 0300000155 [12:48:52]line РНМ: 0000000000100030 [12:48:52]line Версия ККМ: 001 [12:48:52]line ФМ: 0000000000965340 [12:48:52]line ФД: 188266 [12:48:52]line ФПД: 133172331587678 [12:48:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T124851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188266&fm=133172331587678&tin=02508201610067®Number=0000000000100030&sum=35000 [12:48:52]written 0, free lines is 4095 [12:48:52]OFD Sender: Processing packet 188266 [packets to send 1062, broken 1061] [12:48:52]ProducePacketName [12:48:52]name=ofd_packets/00188266 [12:48:52]OFD Sender: To server: pG, [12:48:52]CommunicateWithHost lk.salyk.kg:30040 [12:48:52]ConnectInit lk.salyk.kg [12:48:52]Connected sock=10 [12:48:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 95 92 07 01 70 AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 78 14 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 88 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 88 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 36 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8B 0E 00 00 00 00 07 04 06 00 B8 88 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 01 00 00 F4 03 04 00 33 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DF 02 00 35 04 06 00 79 1E 99 84 A8 5E DE 94 7C C8 2C 0C CD 18 [12:48:52]Write to MH i2c: 01 00 00 AB 06 B1 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: 01 07 00 AB 06 00 00 00 00 00 70 0C 34 [12:48:52]RasterBufferAndPrint [12:48:52]line [12:48:52]line [12:48:52]line [12:48:52]line [12:48:52]line [12:48:52]written 0, free lines is 3186 [12:48:52]MH_Cut [12:48:52]Write to MH i2c: D1 01 00 B2 06 01 8A [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: D1 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: D1 01 00 [12:48:52]MH_I2C_Read... [12:48:52]Read from MH i2c: D1 01 00 B2 06 00 89 [12:48:52]Write to MH i2c: 01 00 00 B3 06 B9 [12:48:52]Write i2c OK [12:48:52]MH_I2C_Read... [12:48:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 81 83 47 00 90 EC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A DF 02 00 F4 03 04 00 20 49 17 67 B6 04 01 00 00 57 AE 77 3F 42 6E 99 0F [12:48:53]CommunicateWithHost err = 0 [12:48:53]CheckOFDResponse [12:48:53]1017 (14) - 77093643461234 [12:48:53]1041 (16) - 0000000000965340 [12:48:53]1040 (4) - 188266 [12:48:53]1012 (4) - 22.10.2024 06:41 [12:48:53]1206 (1) - 0 [12:48:53]OFD Sender: Remove packet 188266 [12:48:53]ProducePacketName [12:48:53]name=ofd_packets/00188266 [12:48:53]NVStorageDeleteData [12:48:53]OFD Sender: No OFD packet to send [12:48:53]*** Cut start [12:48:53]*** Partial cut [12:48:53]*** CUTSNS_PIN = 1 [12:48:54]*** CUTSNS_PIN = 0 [12:48:54]*** Brake cut motor [12:48:54]Read from MH i2c: 01 [12:48:54]MH_I2C_Read... [12:48:54]*** Stop cut motor [12:48:54]*** Cut end [12:48:54]Read from MH i2c: 01 07 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: 01 07 00 B3 06 00 00 00 00 00 FF 0F CE [12:48:54]process_action close_receipt done [12:48:54]requested_data is exist [12:48:54]produce_requested_data [12:48:54]requested_item fm.sn is exist - process it [12:48:54]wFMCommunicate request_size=4 [12:48:54]MH_SAM_APDU [12:48:54]CAPDU: 80 11 00 00 [12:48:54]Write to MH i2c: E2 08 00 B4 06 80 11 00 00 00 00 00 00 34 [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:48:54]Read from MH i2c: E2 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: E2 17 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: E2 17 00 B4 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [12:48:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:48:54]wFMCommunicate OK [12:48:54]requested_item fd.num is exist - process it [12:48:54]SAM_PROTO_GetFieldsCounters [12:48:54]wFMCommunicate request_size=4 [12:48:54]MH_SAM_APDU [12:48:54]CAPDU: 80 13 00 00 [12:48:54]Write to MH i2c: E2 08 00 B5 06 80 13 00 00 00 00 00 00 37 [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:48:54]Read from MH i2c: E2 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: E2 62 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: E2 62 00 B5 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [12:48:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 27 01 00 00 5E 04 04 00 27 01 00 00 57 04 04 00 28 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:48:54]wFMCommunicate OK [12:48:54]SAM_PROTO_GetFieldsCounters done [12:48:54]requested_item shift.num is exist - process it [12:48:54]requested_item shift.opened is exist - process it [12:48:54]req_shift_opened [12:48:54]FM_GetShiftState [12:48:54]SAM_PROTO_GetShiftState [12:48:54]wFMCommunicate request_size=4 [12:48:54]MH_SAM_APDU [12:48:54]CAPDU: 80 13 01 00 [12:48:54]Write to MH i2c: E2 08 00 B6 06 80 13 01 00 00 00 00 00 39 [12:48:54]Write i2c OK [12:48:54]MH_I2C_Read... [12:48:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:48:54]Read from MH i2c: E2 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: E2 0E 00 [12:48:54]MH_I2C_Read... [12:48:54]Read from MH i2c: E2 0E 00 B6 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2E [12:48:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:48:54]wFMCommunicate OK [12:48:54]SAM_PROTO_GetShiftState done [12:48:54]FM_GetShiftState done [12:48:54]req_shift_opened done [12:48:54]requested_item shift.open_date is exist - process it [12:48:54]req_shift_open_date [12:48:54]req_shift_open_date done [12:48:54]produce_requested_data done [12:48:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188266,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:48:54]process_action_free close_receipt [12:48:54]json_value_free [12:48:54]json_value_free done [12:48:54]process_json_proto returns [12:48:54]Send response to host [12:48:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188266,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:48:54]free response buf [12:48:54]execute_script done [12:48:54]execute_script returns [12:48:54]free content buf [12:48:54]Sock 7.Close socket [12:48:54]Sock 7.Thread stoped [12:48:58]OFD Sender: No OFD packet to send [12:49:03]OFD Sender: No OFD packet to send [12:49:08]OFD Sender: No OFD packet to send [12:49:13]OFD Sender: No OFD packet to send [12:49:18]OFD Sender: No OFD packet to send [12:49:23]OFD Sender: No OFD packet to send [12:49:28]OFD Sender: No OFD packet to send [12:49:33]OFD Sender: No OFD packet to send [12:49:38]OFD Sender: No OFD packet to send [12:49:43]OFD Sender: No OFD packet to send [12:49:48]OFD Sender: No OFD packet to send [12:49:53]OFD Sender: No OFD packet to send [12:49:58]OFD Sender: No OFD packet to send [12:50:03]OFD Sender: No OFD packet to send [12:50:08]OFD Sender: No OFD packet to send [12:50:13]OFD Sender: No OFD packet to send [12:50:18]OFD Sender: No OFD packet to send [12:50:23]OFD Sender: No OFD packet to send [12:50:28]OFD Sender: No OFD packet to send [12:50:33]OFD Sender: No OFD packet to send [12:50:39]OFD Sender: No OFD packet to send [12:50:44]OFD Sender: No OFD packet to send [12:50:49]OFD Sender: No OFD packet to send [12:50:54]OFD Sender: No OFD packet to send [12:50:59]OFD Sender: No OFD packet to send [12:51:04]OFD Sender: No OFD packet to send [12:51:09]OFD Sender: No OFD packet to send [12:51:14]OFD Sender: No OFD packet to send [12:51:19]OFD Sender: No OFD packet to send [12:51:24]OFD Sender: No OFD packet to send [12:51:29]OFD Sender: No OFD packet to send [12:51:34]OFD Sender: No OFD packet to send [12:51:39]OFD Sender: No OFD packet to send [12:51:44]OFD Sender: No OFD packet to send [12:51:49]OFD Sender: No OFD packet to send [12:51:54]OFD Sender: No OFD packet to send [12:51:56]accept exits with 9 [12:51:56]New connection [12:51:56]New thread 3066916196 created [12:51:56]Thread 3067059556 joined [12:51:56]Waiting for new connection... [12:51:56] Sock 9.Parse request [12:51:56]Sock 9.Check first char [12:51:56]Sock 9.First char is OK [12:51:56]request: POST /json_proto HTTP/1.0 [12:51:56]Method: POST [12:51:56]URL: /json_proto [12:51:56]Method is POST - this is cgi request [12:51:56]url: /json_proto [12:51:56]query_string will be loaded in cgi processing [12:51:56]execute_cgi json_proto POST (null) [12:51:56]execute_cgi path=json_proto method=POST [12:51:56]POST find Content-Length [12:51:56]Host: 172.17.42.131:8080 [12:51:56]Content-Length: 688 [12:51:56]Content-Type: application/json [12:51:56] [12:51:56]POST finish read [12:51:56]Found Content-Length = 688 [12:51:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [12:51:56]execute_script... [12:51: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)210321", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 15.550, "sum" : 1200.46, "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" ] } } [12:51:56]POST & json_proto [12:51:56]process_json_proto [12:51:56]json parsed OK: [12:51:56]protocol is kg_v1.0 [12:51:56]action value=close_receipt [12:51:56]process_action close_receipt [12:51:56]cmd_close_receipt [12:51:56]MH_GetDate [12:51:56]Write to MH i2c: F0 00 00 B7 06 AC [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: F0 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: F0 09 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: F0 09 00 B7 06 00 ED 9F 17 67 A0 18 CA 66 A7 [12:51:56]GetLastDocTimeStamp 1729601331 [12:51:56]current date 1729601517 [12:51:56]FM_GetShiftState [12:51:56]SAM_PROTO_GetShiftState [12:51:56]wFMCommunicate request_size=4 [12:51:56]MH_SAM_APDU [12:51:56]CAPDU: 80 13 01 00 [12:51:56]Write to MH i2c: E2 08 00 B8 06 80 13 01 00 00 00 00 00 3B [12:51:56]Write i2c OK [12:51:56]MH_I2C_Read... [12:51:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:56]Read from MH i2c: E2 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: E2 0E 00 [12:51:56]MH_I2C_Read... [12:51:56]Read from MH i2c: E2 0E 00 B8 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 30 [12:51:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:51:56]wFMCommunicate OK [12:51:56]SAM_PROTO_GetShiftState done [12:51:56]FM_GetShiftState done [12:51:56]opened in 1729556094 [12:51:56]opened+sec_in_day 1729642494 [12:51:56]quantity*price = 120046 [12:51:56]sum+1 = 120047 [12:51:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.48 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 296 22.10.2024 12:51 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188267 ФПД: 157311492560609 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188267&fm=157311492560609&tin=02508201610067®Number=0000000000100030&sum=120000 [12:51:58]StoreToDocumentArchive [12:51:58]shift 461 fd 188267 [12:51:58]save to /storage/0461/doc_00188267 [12:51:58]save last doc name /storage/0461/doc_00188267 to /storage/kkm_last_doc_name [12:51:58]save OK [12:51:58]Clear old archive folders... [12:51:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:51:58]tlvbuf is 01DED980 [12:51:58]SAM_PROTO_ClearQueue [12:51:58]wFMCommunicate request_size=4 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 09 00 00 [12:51:58]Write to MH i2c: E2 08 00 C5 06 80 09 00 00 00 00 00 00 3D [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 C5 06 00 90 00 3F [12:51:58]RAPDU: 90 00 [12:51:58]wFMCommunicate OK [12:51:58]SAM_PROTO_ClearQueue done [12:51:58]KKMCreateOFDPacket [12:51:58]OFDProtocolAddRootSTLVToBuf [12:51:58]FM_MakeSignedData [12:51:58]FM_MakeSignedData [12:51:58]SAM_PROTO_SignData [12:51:58]wFMCommunicate request_size=4 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 0D 01 02 [12:51:58]Write to MH i2c: E2 08 00 C6 06 80 0D 01 02 00 00 00 00 45 [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 C6 06 00 90 00 40 [12:51:58]RAPDU: 90 00 [12:51:58]wFMCommunicate OK [12:51:58]wFMCommunicate request_size=255 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 28 01 00 00 F4 03 04 00 EE 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DF 02 [12:51:58]Write to MH i2c: E2 02 01 C7 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 28 01 00 00 F4 03 04 00 EE 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DF 02 00 00 62 [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 C7 06 00 90 00 41 [12:51:58]RAPDU: 90 00 [12:51:58]wFMCommunicate OK [12:51:58]wFMCommunicate request_size=16 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8F 12 EF A2 16 E1 [12:51:58]Write to MH i2c: E2 13 00 C8 06 80 0D 02 02 0B 00 00 35 04 06 00 8F 12 EF A2 16 E1 00 00 C6 [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 03 00 C8 06 00 90 00 42 [12:51:58]RAPDU: 90 00 [12:51:58]wFMCommunicate OK [12:51:58]wFMCommunicate request_size=4 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 0D 03 02 [12:51:58]Write to MH i2c: E2 08 00 C9 06 80 0D 03 02 00 00 00 00 4A [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 0B 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 0B 00 C9 06 00 1C A5 B0 EF C6 1B 69 96 90 00 8B [12:51:58]RAPDU: 1C A5 B0 EF C6 1B 69 96 90 00 [12:51:58]wFMCommunicate OK [12:51:58]SAM_PROTO_SignData done [12:51:58]FM_MakeSignedData done [12:51:58]CreateOFDProtocolMessage [12:51:58]wFMCommunicate request_size=4 [12:51:58]MH_SAM_APDU [12:51:58]CAPDU: 80 11 00 00 [12:51:58]Write to MH i2c: E2 08 00 CA 06 80 11 00 00 00 00 00 00 4A [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:58]Read from MH i2c: E2 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 17 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: E2 17 00 CA 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [12:51:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:51:58]wFMCommunicate OK [12:51:58]CreateOFDProtocolMessage done [12:51:58]OFDSenderStorePacket 188267 [12:51:58]StoreOFDPacket docnum=188267 [12:51:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4E 71 0D 01 9C EB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 28 01 00 00 F4 03 04 00 EE 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DF 02 00 35 04 06 00 8F 12 EF A2 16 E1 1C A5 B0 EF C6 1B 69 96 [12:51:58]CheckFolder [12:51:58]dirname=/storage/ofd_packets [12:51:58]CheckFolder done [12:51:58]ProducePacketName [12:51:58]name=ofd_packets/00188267 [12:51:58]NVStorageSaveData ofd_packets/00188267 [12:51:58]File name is /storage/ofd_packets/00188267 [12:51:58]Write 307 bytes [12:51:58]NVStorageSaveData done [12:51:58]OFDSenderStorePacket done [12:51:58]KKMCreateOFDPacket done [12:51:58]NVStorageSaveData kkm_last_timestamp [12:51:58]File name is /storage/kkm_last_timestamp [12:51:58]Write 4 bytes [12:51:58]NVStorageSaveData done [12:51:58]ExternCall_PrintAddStr [12:51:58]wPrintStart [12:51:58]Write to MH i2c: 01 00 00 CB 06 D1 [12:51:58]Write i2c OK [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 07 00 [12:51:58]MH_I2C_Read... [12:51:58]Read from MH i2c: 01 07 00 CB 06 00 00 00 00 00 FF 0F E6 [12:51:58]RasterBufferAndPrint [12:51:58]line Счет N : (1)210321 [12:51:58]line ИНН: 02508201610067 [12:51:58]line Контрольно-Кассовый Чек [12:51:58]line ПРОДАЖА [12:51:58]line ТРК (МРК, ГНК) : 41 [12:51:58]line Товар: 2710194210 [12:51:58]line D-ENERGY ДТ-К-5 [12:51:58]line 15.550 * 77.20 [12:51:58]line = 1200.46 [12:51:58]line НДС 12% НСП 1% [12:51:58]line > о реализуемом товаре [12:51:58]line ОКРУГЛЕНИЕ: -0.46 [12:51:58]line ИТОГО: 1200.00 [12:51:58]line Внесено: 1200.00 [12:51:58]line СДАЧА: 0.00 [12:51:58]line НСП 1% : 10.62 [12:51:58]line НДС 12% : 127.48 [12:51:58]line Наличными: 1200.00 [12:51:58]line Безнал.: 0.00 [12:51:58]line Место: АЗС № 86 "Партнер Нефть" [12:51:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:51:58]line СНО: Общий режим [12:51:58]line Чек 296 22.10.2024 12:51 [12:51:58]line Смена: 461 ФФД: 1.0 [12:51:58]line ЗНМ: 0300000155 [12:51:58]line РНМ: 0000000000100030 [12:51:58]line Версия ККМ: 001 [12:51:58]line ФМ: 0000000000965340 [12:51:58]line ФД: 188267 [12:51:58]line ФПД: 157311492560609 [12:51:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188267&fm=157311492560609&tin=02508201610067®Number=0000000000100030&sum=120000 [12:51:58]written 0, free lines is 4095 [12:51:58]OFD Sender: Processing packet 188267 [packets to send 1062, broken 1061] [12:51:58]ProducePacketName [12:51:58]name=ofd_packets/00188267 [12:51:58]OFD Sender: To server: pG, [12:51:58]CommunicateWithHost lk.salyk.kg:30040 [12:51:58]ConnectInit lk.salyk.kg [12:51:58]Connected sock=10 [12:51:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4E 71 0D 01 9C EB 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BE 3C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EE 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 CC 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 28 01 00 00 F4 03 04 00 EE 9F 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B DF 02 00 35 04 06 00 8F 12 EF A2 16 E1 1C A5 B0 EF C6 1B 69 96 [12:51:59]Write to MH i2c: 01 00 00 F6 06 FC [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: 01 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: 01 07 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: 01 07 00 F6 06 00 00 00 00 00 77 0C 86 [12:51:59]RasterBufferAndPrint [12:51:59]line [12:51:59]line [12:51:59]line [12:51:59]line [12:51:59]line [12:51:59]written 0, free lines is 3194 [12:51:59]MH_Cut [12:51:59]Write to MH i2c: D1 01 00 FD 06 01 D5 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: D1 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: D1 01 00 [12:51:59]MH_I2C_Read... [12:51:59]Read from MH i2c: D1 01 00 FD 06 00 D4 [12:51:59]Write to MH i2c: 01 00 00 FE 06 04 [12:51:59]Write i2c OK [12:51:59]MH_I2C_Read... [12:51:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 0D 47 00 7D 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 39 36 35 33 34 30 10 04 04 00 6B DF 02 00 F4 03 04 00 DB 49 17 67 B6 04 01 00 00 64 3A 55 2C 81 55 A7 9D [12:51:59]CommunicateWithHost err = 0 [12:51:59]CheckOFDResponse [12:51:59]1017 (14) - 77093643461234 [12:51:59]1041 (16) - 0000000000965340 [12:51:59]1040 (4) - 188267 [12:51:59]1012 (4) - 22.10.2024 06:44 [12:51:59]1206 (1) - 0 [12:51:59]OFD Sender: Remove packet 188267 [12:51:59]ProducePacketName [12:51:59]name=ofd_packets/00188267 [12:51:59]NVStorageDeleteData [12:51:59]OFD Sender: No OFD packet to send [12:52:00]*** Cut start [12:52:00]*** Partial cut [12:52:00]*** CUTSNS_PIN = 1 [12:52:00]*** CUTSNS_PIN = 0 [12:52:00]*** Brake cut motor [12:52:00]Read from MH i2c: 01 [12:52:00]MH_I2C_Read... [12:52:00]*** Stop cut motor [12:52:00]*** Cut end [12:52:00]Read from MH i2c: 01 07 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: 01 07 00 FE 06 00 00 00 00 00 FF 0F 19 [12:52:00]process_action close_receipt done [12:52:00]requested_data is exist [12:52:00]produce_requested_data [12:52:00]requested_item fm.sn is exist - process it [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 11 00 00 [12:52:00]Write to MH i2c: E2 08 00 FF 06 80 11 00 00 00 00 00 00 7F [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:52:00]Read from MH i2c: E2 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 17 00 [12:52:00]MH_I2C_Read... [12:52:00]Read from MH i2c: E2 17 00 FF 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [12:52:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:52:00]wFMCommunicate OK [12:52:00]requested_item fd.num is exist - process it [12:52:00]SAM_PROTO_GetFieldsCounters [12:52:00]wFMCommunicate request_size=4 [12:52:00]MH_SAM_APDU [12:52:00]CAPDU: 80 13 00 00 [12:52:00]Write to MH i2c: E2 08 00 00 07 80 13 00 00 00 00 00 00 83 [12:52:00]Write i2c OK [12:52:00]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 62 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 62 00 00 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 1F [12:52:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 28 01 00 00 5E 04 04 00 28 01 00 00 57 04 04 00 29 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:52:01]wFMCommunicate OK [12:52:01]SAM_PROTO_GetFieldsCounters done [12:52:01]requested_item shift.num is exist - process it [12:52:01]requested_item shift.opened is exist - process it [12:52:01]req_shift_opened [12:52:01]FM_GetShiftState [12:52:01]SAM_PROTO_GetShiftState [12:52:01]wFMCommunicate request_size=4 [12:52:01]MH_SAM_APDU [12:52:01]CAPDU: 80 13 01 00 [12:52:01]Write to MH i2c: E2 08 00 01 07 80 13 01 00 00 00 00 00 85 [12:52:01]Write i2c OK [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 [12:52:01]MH_I2C_Read... [12:52:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:52:01]Read from MH i2c: E2 0E 00 [12:52:01]MH_I2C_Read... [12:52:01]Read from MH i2c: E2 0E 00 01 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7A [12:52:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:52:01]wFMCommunicate OK [12:52:01]SAM_PROTO_GetShiftState done [12:52:01]FM_GetShiftState done [12:52:01]req_shift_opened done [12:52:01]requested_item shift.open_date is exist - process it [12:52:01]req_shift_open_date [12:52:01]req_shift_open_date done [12:52:01]produce_requested_data done [12:52:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188267,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:52:01]process_action_free close_receipt [12:52:01]json_value_free [12:52:01]json_value_free done [12:52:01]process_json_proto returns [12:52:01]Send response to host [12:52:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188267,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:52:01]free response buf [12:52:01]execute_script done [12:52:01]execute_script returns [12:52:01]free content buf [12:52:01]Sock 9.Close socket [12:52:01]Sock 9.Thread stoped [12:52:04]OFD Sender: No OFD packet to send [12:52:09]OFD Sender: No OFD packet to send [12:52:15]OFD Sender: No OFD packet to send [12:52:20]OFD Sender: No OFD packet to send [12:52:25]OFD Sender: No OFD packet to send [12:52:30]OFD Sender: No OFD packet to send [12:52:35]OFD Sender: No OFD packet to send [12:52:40]OFD Sender: No OFD packet to send [12:52:45]OFD Sender: No OFD packet to send [12:52:50]OFD Sender: No OFD packet to send [12:52:55]OFD Sender: No OFD packet to send [12:53:00]OFD Sender: No OFD packet to send [12:53:05]OFD Sender: No OFD packet to send [12:53:10]OFD Sender: No OFD packet to send [12:53:15]OFD Sender: No OFD packet to send [12:53:20]OFD Sender: No OFD packet to send [12:53:25]OFD Sender: No OFD packet to send [12:53:30]OFD Sender: No OFD packet to send [12:53:35]OFD Sender: No OFD packet to send [12:53:40]OFD Sender: No OFD packet to send [12:53:45]OFD Sender: No OFD packet to send [12:53:50]OFD Sender: No OFD packet to send [12:53:55]OFD Sender: No OFD packet to send [12:54:00]OFD Sender: No OFD packet to send [12:54:05]OFD Sender: No OFD packet to send [12:54:10]OFD Sender: No OFD packet to send [12:54:15]OFD Sender: No OFD packet to send [12:54:20]OFD Sender: No OFD packet to send [12:54:25]OFD Sender: No OFD packet to send [12:54:30]OFD Sender: No OFD packet to send [12:54:35]OFD Sender: No OFD packet to send [12:54:40]OFD Sender: No OFD packet to send [12:54:45]OFD Sender: No OFD packet to send [12:54:50]OFD Sender: No OFD packet to send [12:54:55]OFD Sender: No OFD packet to send [12:55:00]OFD Sender: No OFD packet to send [12:55:05]OFD Sender: No OFD packet to send [12:55:10]OFD Sender: No OFD packet to send [12:55:15]OFD Sender: No OFD packet to send [12:55:20]OFD Sender: No OFD packet to send [12:55:25]OFD Sender: No OFD packet to send [12:55:30]OFD Sender: No OFD packet to send [12:55:35]OFD Sender: No OFD packet to send [12:55:40]OFD Sender: No OFD packet to send [12:55:45]OFD Sender: No OFD packet to send [12:55:50]OFD Sender: No OFD packet to send [12:55:55]OFD Sender: No OFD packet to send [12:56:01]OFD Sender: No OFD packet to send [12:56:06]OFD Sender: No OFD packet to send [12:56:11]OFD Sender: No OFD packet to send [12:56:16]OFD Sender: No OFD packet to send [12:56:21]OFD Sender: No OFD packet to send [12:56:26]OFD Sender: No OFD packet to send [12:56:31]OFD Sender: No OFD packet to send [12:56:36]OFD Sender: No OFD packet to send [12:56:41]OFD Sender: No OFD packet to send [12:56:46]OFD Sender: No OFD packet to send [12:56:46]accept exits with 7 [12:56:46]New connection [12:56:46]New thread 3067059556 created [12:56:46]Thread 3066916196 joined [12:56:46]Waiting for new connection... [12:56:46] Sock 7.Parse request [12:56:46]Sock 7.Check first char [12:56:46]Sock 7.First char is OK [12:56:46]request: POST /json_proto HTTP/1.0 [12:56:46]Method: POST [12:56:46]URL: /json_proto [12:56:46]Method is POST - this is cgi request [12:56:46]url: /json_proto [12:56:46]query_string will be loaded in cgi processing [12:56:46]execute_cgi json_proto POST (null) [12:56:46]execute_cgi path=json_proto method=POST [12:56:46]POST find Content-Length [12:56:46]Host: 172.17.42.131:8080 [12:56:46]Content-Length: 688 [12:56:46]Content-Type: application/json [12:56:46] [12:56:46]POST finish read [12:56:46]Found Content-Length = 688 [12:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:46]execute_script... [12:56:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210322", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:56:46]POST & json_proto [12:56:46]process_json_proto [12:56:46]json parsed OK: [12:56:46]protocol is kg_v1.0 [12:56:46]action value=close_receipt [12:56:46]process_action close_receipt [12:56:46]cmd_close_receipt [12:56:46]MH_GetDate [12:56:46]Write to MH i2c: F0 00 00 02 07 F8 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: F0 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: F0 09 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: F0 09 00 02 07 00 0F A1 17 67 A0 18 CA 66 17 [12:56:46]GetLastDocTimeStamp 1729601518 [12:56:46]current date 1729601807 [12:56:46]FM_GetShiftState [12:56:46]SAM_PROTO_GetShiftState [12:56:46]wFMCommunicate request_size=4 [12:56:46]MH_SAM_APDU [12:56:46]CAPDU: 80 13 01 00 [12:56:46]Write to MH i2c: E2 08 00 03 07 80 13 01 00 00 00 00 00 87 [12:56:46]Write i2c OK [12:56:46]MH_I2C_Read... [12:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:46]Read from MH i2c: E2 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 0E 00 [12:56:46]MH_I2C_Read... [12:56:46]Read from MH i2c: E2 0E 00 03 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7C [12:56:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:56:46]wFMCommunicate OK [12:56:46]SAM_PROTO_GetShiftState done [12:56:46]FM_GetShiftState done [12:56:46]opened in 1729556094 [12:56:46]opened+sec_in_day 1729642494 [12:56:46]quantity*price = 100051 [12:56:46]sum+1 = 100052 [12:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 297 22.10.2024 12:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188268 ФПД: 103637111397250 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188268&fm=103637111397250&tin=02508201610067®Number=0000000000100030&sum=100000 [12:56:47]StoreToDocumentArchive [12:56:47]shift 461 fd 188268 [12:56:47]save to /storage/0461/doc_00188268 [12:56:47]save last doc name /storage/0461/doc_00188268 to /storage/kkm_last_doc_name [12:56:47]save OK [12:56:47]Clear old archive folders... [12:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [12:56:47]tlvbuf is 01E2C290 [12:56:47]SAM_PROTO_ClearQueue [12:56:47]wFMCommunicate request_size=4 [12:56:47]MH_SAM_APDU [12:56:47]CAPDU: 80 09 00 00 [12:56:47]Write to MH i2c: E2 08 00 10 07 80 09 00 00 00 00 00 00 89 [12:56:47]Write i2c OK [12:56:47]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 10 07 00 90 00 8B [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]SAM_PROTO_ClearQueue done [12:56:48]KKMCreateOFDPacket [12:56:48]OFDProtocolAddRootSTLVToBuf [12:56:48]FM_MakeSignedData [12:56:48]FM_MakeSignedData [12:56:48]SAM_PROTO_SignData [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 01 02 [12:56:48]Write to MH i2c: E2 08 00 11 07 80 0D 01 02 00 00 00 00 91 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 11 07 00 90 00 8C [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]wFMCommunicate request_size=255 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0F A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DF 02 [12:56:48]Write to MH i2c: E2 02 01 12 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0F A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DF 02 00 00 61 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 12 07 00 90 00 8D [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]wFMCommunicate request_size=16 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5E 41 E5 35 DB 82 [12:56:48]Write to MH i2c: E2 13 00 13 07 80 0D 02 02 0B 00 00 35 04 06 00 5E 41 E5 35 DB 82 00 00 FF [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 03 00 13 07 00 90 00 8E [12:56:48]RAPDU: 90 00 [12:56:48]wFMCommunicate OK [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 0D 03 02 [12:56:48]Write to MH i2c: E2 08 00 14 07 80 0D 03 02 00 00 00 00 96 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 0B 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 0B 00 14 07 00 41 CE 07 78 A8 F2 17 C2 90 00 98 [12:56:48]RAPDU: 41 CE 07 78 A8 F2 17 C2 90 00 [12:56:48]wFMCommunicate OK [12:56:48]SAM_PROTO_SignData done [12:56:48]FM_MakeSignedData done [12:56:48]CreateOFDProtocolMessage [12:56:48]wFMCommunicate request_size=4 [12:56:48]MH_SAM_APDU [12:56:48]CAPDU: 80 11 00 00 [12:56:48]Write to MH i2c: E2 08 00 15 07 80 11 00 00 00 00 00 00 96 [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:48]Read from MH i2c: E2 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: E2 17 00 15 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [12:56:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:48]wFMCommunicate OK [12:56:48]CreateOFDProtocolMessage done [12:56:48]OFDSenderStorePacket 188268 [12:56:48]StoreOFDPacket docnum=188268 [12:56:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FE 80 0D 01 6D 71 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0F A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DF 02 00 35 04 06 00 5E 41 E5 35 DB 82 41 CE 07 78 A8 F2 17 C2 [12:56:48]CheckFolder [12:56:48]dirname=/storage/ofd_packets [12:56:48]CheckFolder done [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00188268 [12:56:48]NVStorageSaveData ofd_packets/00188268 [12:56:48]File name is /storage/ofd_packets/00188268 [12:56:48]Write 307 bytes [12:56:48]NVStorageSaveData done [12:56:48]OFDSenderStorePacket done [12:56:48]KKMCreateOFDPacket done [12:56:48]NVStorageSaveData kkm_last_timestamp [12:56:48]File name is /storage/kkm_last_timestamp [12:56:48]Write 4 bytes [12:56:48]NVStorageSaveData done [12:56:48]ExternCall_PrintAddStr [12:56:48]wPrintStart [12:56:48]Write to MH i2c: 01 00 00 16 07 1D [12:56:48]Write i2c OK [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 [12:56:48]MH_I2C_Read... [12:56:48]Read from MH i2c: 01 07 00 16 07 00 00 00 00 00 FF 0F 32 [12:56:48]RasterBufferAndPrint [12:56:48]line Счет N : (1)210322 [12:56:48]line ИНН: 02508201610067 [12:56:48]line Контрольно-Кассовый Чек [12:56:48]line ПРОДАЖА [12:56:48]line ТРК (МРК, ГНК) : 41 [12:56:48]line Товар: 2710194210 [12:56:48]line D-ENERGY ДТ-К-5 [12:56:48]line 12.960 * 77.20 [12:56:48]line = 1000.51 [12:56:48]line НДС 12% НСП 1% [12:56:48]line > о реализуемом товаре [12:56:48]line ОКРУГЛЕНИЕ: -0.51 [12:56:48]line ИТОГО: 1000.00 [12:56:48]line Внесено: 1000.00 [12:56:48]line СДАЧА: 0.00 [12:56:48]line НСП 1% : 8.85 [12:56:48]line НДС 12% : 106.25 [12:56:48]line Наличными: 1000.00 [12:56:48]line Безнал.: 0.00 [12:56:48]line Место: АЗС № 86 "Партнер Нефть" [12:56:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [12:56:48]line СНО: Общий режим [12:56:48]line Чек 297 22.10.2024 12:56 [12:56:48]line Смена: 461 ФФД: 1.0 [12:56:48]line ЗНМ: 0300000155 [12:56:48]line РНМ: 0000000000100030 [12:56:48]line Версия ККМ: 001 [12:56:48]line ФМ: 0000000000965340 [12:56:48]line ФД: 188268 [12:56:48]line ФПД: 103637111397250 [12:56:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T125647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188268&fm=103637111397250&tin=02508201610067®Number=0000000000100030&sum=100000 [12:56:48]OFD Sender: Processing packet 188268 [packets to send 1062, broken 1061] [12:56:48]ProducePacketName [12:56:48]name=ofd_packets/00188268 [12:56:48]OFD Sender: To server: pG, [12:56:48]CommunicateWithHost lk.salyk.kg:30040 [12:56:48]ConnectInit lk.salyk.kg [12:56:48]written 0, free lines is 4095 [12:56:48]Connected sock=10 [12:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FE 80 0D 01 6D 71 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 01 00 00 F4 03 04 00 0F A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C DF 02 00 35 04 06 00 5E 41 E5 35 DB 82 41 CE 07 78 A8 F2 17 C2 [12:56:49]Write to MH i2c: 01 00 00 41 07 48 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: 01 07 00 41 07 00 00 00 00 00 72 0C CD [12:56:49]RasterBufferAndPrint [12:56:49]line [12:56:49]line [12:56:49]line [12:56:49]line [12:56:49]line [12:56:49]written 0, free lines is 3188 [12:56:49]MH_Cut [12:56:49]Write to MH i2c: D1 01 00 48 07 01 21 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: D1 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: D1 01 00 [12:56:49]MH_I2C_Read... [12:56:49]Read from MH i2c: D1 01 00 48 07 00 20 [12:56:49]Write to MH i2c: 01 00 00 49 07 50 [12:56:49]Write i2c OK [12:56:49]MH_I2C_Read... [12:56:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 16 47 00 33 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 39 36 35 33 34 30 10 04 04 00 6C DF 02 00 F4 03 04 00 FD 4A 17 67 B6 04 01 00 00 91 64 3A 9F 47 97 E3 A7 [12:56:49]CommunicateWithHost err = 0 [12:56:49]CheckOFDResponse [12:56:49]1017 (14) - 77093643461234 [12:56:49]1041 (16) - 0000000000965340 [12:56:49]1040 (4) - 188268 [12:56:49]1012 (4) - 22.10.2024 06:49 [12:56:49]1206 (1) - 0 [12:56:49]OFD Sender: Remove packet 188268 [12:56:49]ProducePacketName [12:56:49]name=ofd_packets/00188268 [12:56:49]NVStorageDeleteData [12:56:49]OFD Sender: No OFD packet to send [12:56:50]*** Cut start [12:56:50]*** Partial cut [12:56:50]*** CUTSNS_PIN = 1 [12:56:50]*** CUTSNS_PIN = 0 [12:56:50]*** Brake cut motor [12:56:50]Read from MH i2c: 01 [12:56:50]MH_I2C_Read... [12:56:50]*** Stop cut motor [12:56:50]*** Cut end [12:56:50]Read from MH i2c: 01 07 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: 01 07 00 49 07 00 00 00 00 00 FF 0F 65 [12:56:50]process_action close_receipt done [12:56:50]requested_data is exist [12:56:50]produce_requested_data [12:56:50]requested_item fm.sn is exist - process it [12:56:50]wFMCommunicate request_size=4 [12:56:50]MH_SAM_APDU [12:56:50]CAPDU: 80 11 00 00 [12:56:50]Write to MH i2c: E2 08 00 4A 07 80 11 00 00 00 00 00 00 CB [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:56:50]Read from MH i2c: E2 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: E2 17 00 [12:56:50]MH_I2C_Read... [12:56:50]Read from MH i2c: E2 17 00 4A 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [12:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [12:56:50]wFMCommunicate OK [12:56:50]requested_item fd.num is exist - process it [12:56:50]SAM_PROTO_GetFieldsCounters [12:56:50]wFMCommunicate request_size=4 [12:56:50]MH_SAM_APDU [12:56:50]CAPDU: 80 13 00 00 [12:56:50]Write to MH i2c: E2 08 00 4B 07 80 13 00 00 00 00 00 00 CE [12:56:50]Write i2c OK [12:56:50]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 62 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 62 00 4B 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 6E [12:56:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 29 01 00 00 5E 04 04 00 29 01 00 00 57 04 04 00 2A 01 00 00 19 04 04 00 00 00 00 00 90 00 [12:56:51]wFMCommunicate OK [12:56:51]SAM_PROTO_GetFieldsCounters done [12:56:51]requested_item shift.num is exist - process it [12:56:51]requested_item shift.opened is exist - process it [12:56:51]req_shift_opened [12:56:51]FM_GetShiftState [12:56:51]SAM_PROTO_GetShiftState [12:56:51]wFMCommunicate request_size=4 [12:56:51]MH_SAM_APDU [12:56:51]CAPDU: 80 13 01 00 [12:56:51]Write to MH i2c: E2 08 00 4C 07 80 13 01 00 00 00 00 00 D0 [12:56:51]Write i2c OK [12:56:51]MH_I2C_Read... [12:56:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:56:51]Read from MH i2c: E2 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 0E 00 [12:56:51]MH_I2C_Read... [12:56:51]Read from MH i2c: E2 0E 00 4C 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C5 [12:56:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [12:56:51]wFMCommunicate OK [12:56:51]SAM_PROTO_GetShiftState done [12:56:51]FM_GetShiftState done [12:56:51]req_shift_opened done [12:56:51]requested_item shift.open_date is exist - process it [12:56:51]req_shift_open_date [12:56:51]req_shift_open_date done [12:56:51]produce_requested_data done [12:56:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188268,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [12:56:51]process_action_free close_receipt [12:56:51]json_value_free [12:56:51]json_value_free done [12:56:51]process_json_proto returns [12:56:51]Send response to host [12:56:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188268,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [12:56:51]free response buf [12:56:51]execute_script done [12:56:51]execute_script returns [12:56:51]free content buf [12:56:51]Sock 7.Close socket [12:56:51]Sock 7.Thread stoped [12:56:54]OFD Sender: No OFD packet to send [12:56:59]OFD Sender: No OFD packet to send [12:57:04]OFD Sender: No OFD packet to send [12:57:09]OFD Sender: No OFD packet to send [12:57:14]OFD Sender: No OFD packet to send [12:57:19]OFD Sender: No OFD packet to send [12:57:24]OFD Sender: No OFD packet to send [12:57:29]OFD Sender: No OFD packet to send [12:57:34]OFD Sender: No OFD packet to send [12:57:39]OFD Sender: No OFD packet to send [12:57:44]OFD Sender: No OFD packet to send [12:57:49]OFD Sender: No OFD packet to send [12:57:54]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:25]OFD Sender: No OFD packet to send [12:58:30]OFD Sender: No OFD packet to send [12:58:35]OFD Sender: No OFD packet to send [12:58:40]OFD Sender: No OFD packet to send [12:58:45]OFD Sender: No OFD packet to send [12:58:50]OFD Sender: No OFD packet to send [12:58:55]OFD Sender: No OFD packet to send [12:59:00]OFD Sender: No OFD packet to send [12:59:05]OFD Sender: No OFD packet to send [12:59:10]OFD Sender: No OFD packet to send [12:59:15]OFD Sender: No OFD packet to send [12:59:20]OFD Sender: No OFD packet to send [12:59:25]OFD Sender: No OFD packet to send [12:59:30]OFD Sender: No OFD packet to send [12:59:35]OFD Sender: No OFD packet to send [12:59:40]OFD Sender: No OFD packet to send [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:32]accept exits with 9 [13:00:32]New connection [13:00:32]New thread 3066916196 created [13:00:32]Thread 3067059556 joined [13:00:32]Waiting for new connection... [13:00:32] Sock 9.Parse request [13:00:32]Sock 9.Check first char [13:00:32]Sock 9.First char is OK [13:00:32]request: POST /json_proto HTTP/1.0 [13:00:32]Method: POST [13:00:32]URL: /json_proto [13:00:32]Method is POST - this is cgi request [13:00:32]url: /json_proto [13:00:32]query_string will be loaded in cgi processing [13:00:32]execute_cgi json_proto POST (null) [13:00:32]execute_cgi path=json_proto method=POST [13:00:32]POST find Content-Length [13:00:32]Host: 172.17.42.131:8080 [13:00:32]Content-Length: 792 [13:00:32]Content-Type: application/json [13:00:32] [13:00:32]POST finish read [13:00:32]Found Content-Length = 792 [13:00:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 22.260, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:32]execute_script... [13:00: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)210324", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 22.260, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:00:32]POST & json_proto [13:00:32]process_json_proto [13:00:32]json parsed OK: [13:00:32]protocol is kg_v1.0 [13:00:32]action value=close_receipt [13:00:32]process_action close_receipt [13:00:32]cmd_close_receipt [13:00:32]MH_GetDate [13:00:32]Write to MH i2c: F0 00 00 4D 07 43 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: F0 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: F0 09 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: F0 09 00 4D 07 00 F1 A1 17 67 A0 18 CA 66 44 [13:00:32]GetLastDocTimeStamp 1729601807 [13:00:32]current date 1729602033 [13:00:32]FM_GetShiftState [13:00:32]SAM_PROTO_GetShiftState [13:00:32]wFMCommunicate request_size=4 [13:00:32]MH_SAM_APDU [13:00:32]CAPDU: 80 13 01 00 [13:00:32]Write to MH i2c: E2 08 00 4E 07 80 13 01 00 00 00 00 00 D2 [13:00:32]Write i2c OK [13:00:32]MH_I2C_Read... [13:00:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:32]Read from MH i2c: E2 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 0E 00 [13:00:32]MH_I2C_Read... [13:00:32]Read from MH i2c: E2 0E 00 4E 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C7 [13:00:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:00:32]wFMCommunicate OK [13:00:32]SAM_PROTO_GetShiftState done [13:00:32]FM_GetShiftState done [13:00:32]opened in 1729556094 [13:00:32]opened+sec_in_day 1729642494 [13:00:32]quantity*price = 0 [13:00:32]sum+1 = 1 [13:00:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 298 22.10.2024 13:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 188269 ФПД: 88444591352594 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130033&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188269&fm=88444591352594&tin=02508201610067®Number=0000000000100030&sum=0 [13:00:33]StoreToDocumentArchive [13:00:33]shift 461 fd 188269 [13:00:33]save to /storage/0461/doc_00188269 [13:00:33]save last doc name /storage/0461/doc_00188269 to /storage/kkm_last_doc_name [13:00:33]save OK [13:00:33]Clear old archive folders... [13:00:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:00:33]tlvbuf is 01DF17E0 [13:00:33]SAM_PROTO_ClearQueue [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 09 00 00 [13:00:33]Write to MH i2c: E2 08 00 5B 07 80 09 00 00 00 00 00 00 D4 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 5B 07 00 90 00 D6 [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_ClearQueue done [13:00:33]KKMCreateOFDPacket [13:00:33]OFDProtocolAddRootSTLVToBuf [13:00:33]FM_MakeSignedData [13:00:33]FM_MakeSignedData [13:00:33]SAM_PROTO_SignData [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 01 02 [13:00:33]Write to MH i2c: E2 08 00 5C 07 80 0D 01 02 00 00 00 00 DC [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 5C 07 00 90 00 D7 [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=255 [13:00:33]MH_SAM_APDU [13:00: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 33 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 F1 A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DF 02 00 35 04 06 00 50 [13:00:33]Write to MH i2c: E2 02 01 5D 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 F1 A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DF 02 00 35 04 06 00 50 00 00 BB [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 5D 07 00 90 00 D8 [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=10 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 02 02 05 70 9C 73 2B 12 [13:00:33]Write to MH i2c: E2 0D 00 5E 07 80 0D 02 02 05 00 70 9C 73 2B 12 00 00 A5 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 03 00 5E 07 00 90 00 D9 [13:00:33]RAPDU: 90 00 [13:00:33]wFMCommunicate OK [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 0D 03 02 [13:00:33]Write to MH i2c: E2 08 00 5F 07 80 0D 03 02 00 00 00 00 E1 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0B 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 0B 00 5F 07 00 7F 71 44 8E 5B CB F9 A3 90 00 66 [13:00:33]RAPDU: 7F 71 44 8E 5B CB F9 A3 90 00 [13:00:33]wFMCommunicate OK [13:00:33]SAM_PROTO_SignData done [13:00:33]FM_MakeSignedData done [13:00:33]CreateOFDProtocolMessage [13:00:33]wFMCommunicate request_size=4 [13:00:33]MH_SAM_APDU [13:00:33]CAPDU: 80 11 00 00 [13:00:33]Write to MH i2c: E2 08 00 60 07 80 11 00 00 00 00 00 00 E1 [13:00:33]Write i2c OK [13:00:33]MH_I2C_Read... [13:00:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:33]Read from MH i2c: E2 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 17 00 [13:00:33]MH_I2C_Read... [13:00:33]Read from MH i2c: E2 17 00 60 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [13:00:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:00:33]wFMCommunicate OK [13:00:33]CreateOFDProtocolMessage done [13:00:33]OFDSenderStorePacket 188269 [13:00:33]StoreOFDPacket docnum=188269 [13:00:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C D4 07 01 DA 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 F1 A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DF 02 00 35 04 06 00 50 70 9C 73 2B 12 7F 71 44 8E 5B CB F9 A3 [13:00:33]CheckFolder [13:00:33]dirname=/storage/ofd_packets [13:00:33]CheckFolder done [13:00:33]ProducePacketName [13:00:33]name=ofd_packets/00188269 [13:00:33]NVStorageSaveData ofd_packets/00188269 [13:00:33]File name is /storage/ofd_packets/00188269 [13:00:33]Write 301 bytes [13:00:33]NVStorageSaveData done [13:00:33]OFDSenderStorePacket done [13:00:33]KKMCreateOFDPacket done [13:00:33]NVStorageSaveData kkm_last_timestamp [13:00:33]File name is /storage/kkm_last_timestamp [13:00:33]Write 4 bytes [13:00:33]NVStorageSaveData done [13:00:34]ExternCall_PrintAddStr [13:00:34]wPrintStart [13:00:34]Write to MH i2c: 01 00 00 61 07 68 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 61 07 00 00 00 00 00 FF 0F 7D [13:00:34]RasterBufferAndPrint [13:00:34]line Счет N : (1)210324 [13:00:34]line ИНН: 02508201610067 [13:00:34]line Контрольно-Кассовый Чек [13:00:34]line ПРОДАЖА [13:00:34]line ТРК (МРК, ГНК) : 32 [13:00:34]line Товар: 2710124130 [13:00:34]line Аи-92-К-3 [13:00:34]line 22.260 * 0.00 [13:00:34]line = 0.00 [13:00:34]line НДС 12% НСП 1% [13:00:34]line > о реализуемом товаре [13:00:34]line ИТОГО: 0.00 [13:00:34]line НСП 1% : 0.00 [13:00:34]line НДС 12% : 0.00 [13:00:34]line Наличными: 0.00 [13:00:34]line Безнал.: 0.00 [13:00:34]line Место: АЗС № 86 "Партнер Нефть" [13:00:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:00:34]line СНО: Общий режим [13:00:34]line Чек 298 22.10.2024 13:00 [13:00:34]line Смена: 461 ФФД: 1.0 [13:00:34]line ЗНМ: 0300000155 [13:00:34]line РНМ: 0000000000100030 [13:00:34]line Версия ККМ: 001 [13:00:34]line Талоны: Топливная Карта [13:00:34]line 02633 [13:00:34]line ФМ: 0000000000965340 [13:00:34]line ФД: 188269 [13:00:34]line ФПД: 88444591352594 [13:00:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130033&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188269&fm=88444591352594&tin=02508201610067®Number=0000000000100030&sum=0 [13:00:34]written 0, free lines is 4095 [13:00:34]OFD Sender: Processing packet 188269 [packets to send 1062, broken 1061] [13:00:34]ProducePacketName [13:00:34]name=ofd_packets/00188269 [13:00:34]OFD Sender: To server: pG, [13:00:34]CommunicateWithHost lk.salyk.kg:30040 [13:00:34]ConnectInit lk.salyk.kg [13:00:34]Connected sock=10 [13:00:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1C D4 07 01 DA 37 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F4 56 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 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 01 00 00 F4 03 04 00 F1 A1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DF 02 00 35 04 06 00 50 70 9C 73 2B 12 7F 71 44 8E 5B CB F9 A3 [13:00:34]Write to MH i2c: 01 00 00 8B 07 92 [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: 01 07 00 8B 07 00 00 00 00 00 92 0C 37 [13:00:34]RasterBufferAndPrint [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]line [13:00:34]written 0, free lines is 3222 [13:00:34]MH_Cut [13:00:34]Write to MH i2c: D1 01 00 92 07 01 6B [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 01 00 [13:00:34]MH_I2C_Read... [13:00:34]Read from MH i2c: D1 01 00 92 07 00 6A [13:00:34]Write to MH i2c: 01 00 00 93 07 9A [13:00:34]Write i2c OK [13:00:34]MH_I2C_Read... [13:00:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 D8 47 00 3B C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D DF 02 00 F4 03 04 00 DE 4B 17 67 B6 04 01 00 00 0A 0D BC 09 17 85 AA B4 [13:00:34]CommunicateWithHost err = 0 [13:00:34]CheckOFDResponse [13:00:34]1017 (14) - 77093643461234 [13:00:34]1041 (16) - 0000000000965340 [13:00:34]1040 (4) - 188269 [13:00:34]1012 (4) - 22.10.2024 06:53 [13:00:34]1206 (1) - 0 [13:00:34]OFD Sender: Remove packet 188269 [13:00:34]ProducePacketName [13:00:34]name=ofd_packets/00188269 [13:00:34]NVStorageDeleteData [13:00:35]OFD Sender: No OFD packet to send [13:00:35]*** Cut start [13:00:35]*** Partial cut [13:00:35]*** CUTSNS_PIN = 1 [13:00:35]*** CUTSNS_PIN = 0 [13:00:35]*** Brake cut motor [13:00:36]Read from MH i2c: 01 [13:00:36]MH_I2C_Read... [13:00:36]*** Stop cut motor [13:00:36]*** Cut end [13:00:36]Read from MH i2c: 01 07 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: 01 07 00 93 07 00 00 00 00 00 FF 0F AF [13:00:36]process_action close_receipt done [13:00:36]requested_data is exist [13:00:36]produce_requested_data [13:00:36]requested_item fm.sn is exist - process it [13:00:36]wFMCommunicate request_size=4 [13:00:36]MH_SAM_APDU [13:00:36]CAPDU: 80 11 00 00 [13:00:36]Write to MH i2c: E2 08 00 94 07 80 11 00 00 00 00 00 00 15 [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 17 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 17 00 94 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [13:00:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:00:36]wFMCommunicate OK [13:00:36]requested_item fd.num is exist - process it [13:00:36]SAM_PROTO_GetFieldsCounters [13:00:36]wFMCommunicate request_size=4 [13:00:36]MH_SAM_APDU [13:00:36]CAPDU: 80 13 00 00 [13:00:36]Write to MH i2c: E2 08 00 95 07 80 13 00 00 00 00 00 00 18 [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 62 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 62 00 95 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 BC [13:00:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2A 01 00 00 5E 04 04 00 2A 01 00 00 57 04 04 00 2B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:00:36]wFMCommunicate OK [13:00:36]SAM_PROTO_GetFieldsCounters done [13:00:36]requested_item shift.num is exist - process it [13:00:36]requested_item shift.opened is exist - process it [13:00:36]req_shift_opened [13:00:36]FM_GetShiftState [13:00:36]SAM_PROTO_GetShiftState [13:00:36]wFMCommunicate request_size=4 [13:00:36]MH_SAM_APDU [13:00:36]CAPDU: 80 13 01 00 [13:00:36]Write to MH i2c: E2 08 00 96 07 80 13 01 00 00 00 00 00 1A [13:00:36]Write i2c OK [13:00:36]MH_I2C_Read... [13:00:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:00:36]Read from MH i2c: E2 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 0E 00 [13:00:36]MH_I2C_Read... [13:00:36]Read from MH i2c: E2 0E 00 96 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0F [13:00:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:00:36]wFMCommunicate OK [13:00:36]SAM_PROTO_GetShiftState done [13:00:36]FM_GetShiftState done [13:00:36]req_shift_opened done [13:00:36]requested_item shift.open_date is exist - process it [13:00:36]req_shift_open_date [13:00:36]req_shift_open_date done [13:00:36]produce_requested_data done [13:00:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188269,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:00:36]process_action_free close_receipt [13:00:36]json_value_free [13:00:36]json_value_free done [13:00:36]process_json_proto returns [13:00:36]Send response to host [13:00:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188269,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:00:36]free response buf [13:00:36]execute_script done [13:00:36]execute_script returns [13:00:36]free content buf [13:00:36]Sock 9.Close socket [13:00:36]Sock 9.Thread stoped [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:05]OFD Sender: No OFD packet to send [13:01:10]OFD Sender: No OFD packet to send [13:01:11]accept exits with 7 [13:01:11]New connection [13:01:11]New thread 3067059556 created [13:01:11]Thread 3066916196 joined [13:01:11]Waiting for new connection... [13:01:11] Sock 7.Parse request [13:01:11]Sock 7.Check first char [13:01:11]Sock 7.First char is OK [13:01:11]request: POST /json_proto HTTP/1.0 [13:01:11]Method: POST [13:01:11]URL: /json_proto [13:01:11]Method is POST - this is cgi request [13:01:11]url: /json_proto [13:01:11]query_string will be loaded in cgi processing [13:01:11]execute_cgi json_proto POST (null) [13:01:11]execute_cgi path=json_proto method=POST [13:01:11]POST find Content-Length [13:01:11]Host: 172.17.42.131:8080 [13:01:11]Content-Length: 688 [13:01:11]Content-Type: application/json [13:01:11] [13:01:11]POST finish read [13:01:11]Found Content-Length = 688 [13:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:11]execute_script... [13:01: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)210323", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:11]POST & json_proto [13:01:11]process_json_proto [13:01:11]json parsed OK: [13:01:11]protocol is kg_v1.0 [13:01:11]action value=close_receipt [13:01:11]process_action close_receipt [13:01:11]cmd_close_receipt [13:01:11]MH_GetDate [13:01:11]Write to MH i2c: F0 00 00 97 07 8D [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: F0 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: F0 09 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: F0 09 00 97 07 00 18 A2 17 67 A0 18 CA 66 B6 [13:01:11]GetLastDocTimeStamp 1729602033 [13:01:11]current date 1729602072 [13:01:11]FM_GetShiftState [13:01:11]SAM_PROTO_GetShiftState [13:01:11]wFMCommunicate request_size=4 [13:01:11]MH_SAM_APDU [13:01:11]CAPDU: 80 13 01 00 [13:01:11]Write to MH i2c: E2 08 00 98 07 80 13 01 00 00 00 00 00 1C [13:01:11]Write i2c OK [13:01:11]MH_I2C_Read... [13:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:11]Read from MH i2c: E2 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0E 00 [13:01:11]MH_I2C_Read... [13:01:11]Read from MH i2c: E2 0E 00 98 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 11 [13:01:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:01:11]wFMCommunicate OK [13:01:11]SAM_PROTO_GetShiftState done [13:01:11]FM_GetShiftState done [13:01:11]opened in 1729556094 [13:01:11]opened+sec_in_day 1729642494 [13:01:11]quantity*price = 300076 [13:01:11]sum+1 = 300077 [13:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 299 22.10.2024 13:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188270 ФПД: 175460661118764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188270&fm=175460661118764&tin=02508201610067®Number=0000000000100030&sum=300000 [13:01:12]StoreToDocumentArchive [13:01:12]shift 461 fd 188270 [13:01:12]save to /storage/0461/doc_00188270 [13:01:12]save last doc name /storage/0461/doc_00188270 to /storage/kkm_last_doc_name [13:01:12]save OK [13:01:12]Clear old archive folders... [13:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:01:12]tlvbuf is 01DD2A50 [13:01:12]SAM_PROTO_ClearQueue [13:01:12]wFMCommunicate request_size=4 [13:01:12]MH_SAM_APDU [13:01:12]CAPDU: 80 09 00 00 [13:01:12]Write to MH i2c: E2 08 00 A5 07 80 09 00 00 00 00 00 00 1E [13:01:12]Write i2c OK [13:01:12]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 A5 07 00 90 00 20 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]SAM_PROTO_ClearQueue done [13:01:13]KKMCreateOFDPacket [13:01:13]OFDProtocolAddRootSTLVToBuf [13:01:13]FM_MakeSignedData [13:01:13]FM_MakeSignedData [13:01:13]SAM_PROTO_SignData [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 01 02 [13:01:13]Write to MH i2c: E2 08 00 A6 07 80 0D 01 02 00 00 00 00 26 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 A6 07 00 90 00 21 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]wFMCommunicate request_size=255 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 18 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DF 02 [13:01:13]Write to MH i2c: E2 02 01 A7 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 18 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DF 02 00 00 E6 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 A7 07 00 90 00 22 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]wFMCommunicate request_size=16 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9F 94 9E 60 C7 2C [13:01:13]Write to MH i2c: E2 13 00 A8 07 80 0D 02 02 0B 00 00 35 04 06 00 9F 94 9E 60 C7 2C 00 00 A2 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 03 00 A8 07 00 90 00 23 [13:01:13]RAPDU: 90 00 [13:01:13]wFMCommunicate OK [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 0D 03 02 [13:01:13]Write to MH i2c: E2 08 00 A9 07 80 0D 03 02 00 00 00 00 2B [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 0B 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 0B 00 A9 07 00 91 CE 82 AA E8 D0 4C 07 90 00 C2 [13:01:13]RAPDU: 91 CE 82 AA E8 D0 4C 07 90 00 [13:01:13]wFMCommunicate OK [13:01:13]SAM_PROTO_SignData done [13:01:13]FM_MakeSignedData done [13:01:13]CreateOFDProtocolMessage [13:01:13]wFMCommunicate request_size=4 [13:01:13]MH_SAM_APDU [13:01:13]CAPDU: 80 11 00 00 [13:01:13]Write to MH i2c: E2 08 00 AA 07 80 11 00 00 00 00 00 00 2B [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:13]Read from MH i2c: E2 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 17 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: E2 17 00 AA 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [13:01:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:01:13]wFMCommunicate OK [13:01:13]CreateOFDProtocolMessage done [13:01:13]OFDSenderStorePacket 188270 [13:01:13]StoreOFDPacket docnum=188270 [13:01:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E5 0B 0D 01 79 75 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 18 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DF 02 00 35 04 06 00 9F 94 9E 60 C7 2C 91 CE 82 AA E8 D0 4C 07 [13:01:13]CheckFolder [13:01:13]dirname=/storage/ofd_packets [13:01:13]CheckFolder done [13:01:13]ProducePacketName [13:01:13]name=ofd_packets/00188270 [13:01:13]NVStorageSaveData ofd_packets/00188270 [13:01:13]File name is /storage/ofd_packets/00188270 [13:01:13]Write 307 bytes [13:01:13]NVStorageSaveData done [13:01:13]OFDSenderStorePacket done [13:01:13]KKMCreateOFDPacket done [13:01:13]NVStorageSaveData kkm_last_timestamp [13:01:13]File name is /storage/kkm_last_timestamp [13:01:13]Write 4 bytes [13:01:13]NVStorageSaveData done [13:01:13]ExternCall_PrintAddStr [13:01:13]wPrintStart [13:01:13]Write to MH i2c: 01 00 00 AB 07 B2 [13:01:13]Write i2c OK [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 07 00 [13:01:13]MH_I2C_Read... [13:01:13]Read from MH i2c: 01 07 00 AB 07 00 00 00 00 00 FF 0F C7 [13:01:13]RasterBufferAndPrint [13:01:13]line Счет N : (1)210323 [13:01:13]line ИНН: 02508201610067 [13:01:13]line Контрольно-Кассовый Чек [13:01:13]line ПРОДАЖА [13:01:13]line ТРК (МРК, ГНК) : 21 [13:01:13]line Товар: 2710194210 [13:01:13]line D-ENERGY ДТ-К-5 [13:01:13]line 38.870 * 77.20 [13:01:13]line = 3000.76 [13:01:13]line НДС 12% НСП 1% [13:01:13]line > о реализуемом товаре [13:01:13]line ОКРУГЛЕНИЕ: -0.76 [13:01:13]line ИТОГО: 3000.00 [13:01:13]line Внесено: 3000.00 [13:01:13]line СДАЧА: 0.00 [13:01:13]line НСП 1% : 26.55 [13:01:13]line НДС 12% : 318.66 [13:01:13]line Наличными: 3000.00 [13:01:13]line Безнал.: 0.00 [13:01:13]line Место: АЗС № 86 "Партнер Нефть" [13:01:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:01:13]line СНО: Общий режим [13:01:13]line Чек 299 22.10.2024 13:01 [13:01:13]line Смена: 461 ФФД: 1.0 [13:01:13]line ЗНМ: 0300000155 [13:01:13]line РНМ: 0000000000100030 [13:01:13]line Версия ККМ: 001 [13:01:13]line ФМ: 0000000000965340 [13:01:13]line ФД: 188270 [13:01:13]line ФПД: 175460661118764 [13:01:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188270&fm=175460661118764&tin=02508201610067®Number=0000000000100030&sum=300000 [13:01:13]written 0, free lines is 4095 [13:01:13]OFD Sender: Processing packet 188270 [packets to send 1062, broken 1061] [13:01:13]ProducePacketName [13:01:13]name=ofd_packets/00188270 [13:01:13]OFD Sender: To server: pG, [13:01:13]CommunicateWithHost lk.salyk.kg:30040 [13:01:13]ConnectInit lk.salyk.kg [13:01:13]Connected sock=10 [13:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E5 0B 0D 01 79 75 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 01 00 00 F4 03 04 00 18 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DF 02 00 35 04 06 00 9F 94 9E 60 C7 2C 91 CE 82 AA E8 D0 4C 07 [13:01:13]Write to MH i2c: 01 00 00 D6 07 DD [13:01:14]Write i2c OK [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: 01 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: 01 07 00 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: 01 07 00 D6 07 00 00 00 00 00 6F 0C 5F [13:01:14]RasterBufferAndPrint [13:01:14]line [13:01:14]line [13:01:14]line [13:01:14]line [13:01:14]line [13:01:14]written 0, free lines is 3186 [13:01:14]MH_Cut [13:01:14]Write to MH i2c: D1 01 00 DD 07 01 B6 [13:01:14]Write i2c OK [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: D1 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: D1 01 00 [13:01:14]MH_I2C_Read... [13:01:14]Read from MH i2c: D1 01 00 DD 07 00 B5 [13:01:14]Write to MH i2c: 01 00 00 DE 07 E5 [13:01:14]Write i2c OK [13:01:14]MH_I2C_Read... [13:01:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 69 E6 47 00 DE CC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E DF 02 00 F4 03 04 00 06 4C 17 67 B6 04 01 00 00 18 6C BA 51 FA 0C 27 11 [13:01:14]CommunicateWithHost err = 0 [13:01:14]CheckOFDResponse [13:01:14]1017 (14) - 77093643461234 [13:01:14]1041 (16) - 0000000000965340 [13:01:14]1040 (4) - 188270 [13:01:14]1012 (4) - 22.10.2024 06:53 [13:01:14]1206 (1) - 0 [13:01:14]OFD Sender: Remove packet 188270 [13:01:14]ProducePacketName [13:01:14]name=ofd_packets/00188270 [13:01:14]NVStorageDeleteData [13:01:14]OFD Sender: No OFD packet to send [13:01:15]*** Cut start [13:01:15]*** Partial cut [13:01:15]*** CUTSNS_PIN = 1 [13:01:15]*** CUTSNS_PIN = 0 [13:01:15]*** Brake cut motor [13:01:15]Read from MH i2c: 01 [13:01:15]MH_I2C_Read... [13:01:15]*** Stop cut motor [13:01:15]*** Cut end [13:01:15]Read from MH i2c: 01 07 00 [13:01:15]MH_I2C_Read... [13:01:15]Read from MH i2c: 01 07 00 DE 07 00 00 00 00 00 FF 0F FA [13:01:15]process_action close_receipt done [13:01:15]requested_data is exist [13:01:15]produce_requested_data [13:01:15]requested_item fm.sn is exist - process it [13:01:15]wFMCommunicate request_size=4 [13:01:15]MH_SAM_APDU [13:01:15]CAPDU: 80 11 00 00 [13:01:15]Write to MH i2c: E2 08 00 DF 07 80 11 00 00 00 00 00 00 60 [13:01:15]Write i2c OK [13:01:15]MH_I2C_Read... [13:01:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:15]Read from MH i2c: E2 [13:01:15]MH_I2C_Read... [13:01:15]Read from MH i2c: E2 17 00 [13:01:15]MH_I2C_Read... [13:01:15]Read from MH i2c: E2 17 00 DF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [13:01:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:01:15]wFMCommunicate OK [13:01:15]requested_item fd.num is exist - process it [13:01:15]SAM_PROTO_GetFieldsCounters [13:01:15]wFMCommunicate request_size=4 [13:01:15]MH_SAM_APDU [13:01:15]CAPDU: 80 13 00 00 [13:01:15]Write to MH i2c: E2 08 00 E0 07 80 13 00 00 00 00 00 00 63 [13:01:15]Write i2c OK [13:01:15]MH_I2C_Read... [13:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:15]Read from MH i2c: E2 [13:01:15]MH_I2C_Read... [13:01:15]Read from MH i2c: E2 62 00 [13:01:15]MH_I2C_Read... [13:01:15]Read from MH i2c: E2 62 00 E0 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 0B [13:01:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2B 01 00 00 5E 04 04 00 2B 01 00 00 57 04 04 00 2C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:01:15]wFMCommunicate OK [13:01:15]SAM_PROTO_GetFieldsCounters done [13:01:15]requested_item shift.num is exist - process it [13:01:15]requested_item shift.opened is exist - process it [13:01:15]req_shift_opened [13:01:15]FM_GetShiftState [13:01:15]SAM_PROTO_GetShiftState [13:01:15]wFMCommunicate request_size=4 [13:01:15]MH_SAM_APDU [13:01:15]CAPDU: 80 13 01 00 [13:01:15]Write to MH i2c: E2 08 00 E1 07 80 13 01 00 00 00 00 00 65 [13:01:16]Write i2c OK [13:01:16]MH_I2C_Read... [13:01:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:16]Read from MH i2c: E2 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 0E 00 [13:01:16]MH_I2C_Read... [13:01:16]Read from MH i2c: E2 0E 00 E1 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5A [13:01:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:01:16]wFMCommunicate OK [13:01:16]SAM_PROTO_GetShiftState done [13:01:16]FM_GetShiftState done [13:01:16]req_shift_opened done [13:01:16]requested_item shift.open_date is exist - process it [13:01:16]req_shift_open_date [13:01:16]req_shift_open_date done [13:01:16]produce_requested_data done [13:01:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188270,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:01:16]process_action_free close_receipt [13:01:16]json_value_free [13:01:16]json_value_free done [13:01:16]process_json_proto returns [13:01:16]Send response to host [13:01:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188270,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:01:16]free response buf [13:01:16]execute_script done [13:01:16]execute_script returns [13:01:16]free content buf [13:01:16]Sock 7.Close socket [13:01:16]Sock 7.Thread stoped [13:01:19]OFD Sender: No OFD packet to send [13:01:24]OFD Sender: No OFD packet to send [13:01:29]OFD Sender: No OFD packet to send [13:01:34]OFD Sender: No OFD packet to send [13:01:39]OFD Sender: No OFD packet to send [13:01:44]OFD Sender: No OFD packet to send [13:01:49]OFD Sender: No OFD packet to send [13:01:54]OFD Sender: No OFD packet to send [13:01:59]OFD Sender: No OFD packet to send [13:02:04]OFD Sender: No OFD packet to send [13:02:09]OFD Sender: No OFD packet to send [13:02:14]OFD Sender: No OFD packet to send [13:02:20]OFD Sender: No OFD packet to send [13:02:25]OFD Sender: No OFD packet to send [13:02:30]OFD Sender: No OFD packet to send [13:02:35]OFD Sender: No OFD packet to send [13:02:40]OFD Sender: No OFD packet to send [13:02:45]OFD Sender: No OFD packet to send [13:02:50]OFD Sender: No OFD packet to send [13:02:55]OFD Sender: No OFD packet to send [13:03:00]OFD Sender: No OFD packet to send [13:03:04]accept exits with 9 [13:03:04]New connection [13:03:04]New thread 3066916196 created [13:03:04]Thread 3067059556 joined [13:03:04]Waiting for new connection... [13:03:04] Sock 9.Parse request [13:03:04]Sock 9.Check first char [13:03:04]Sock 9.First char is OK [13:03:04]request: POST /json_proto HTTP/1.0 [13:03:04]Method: POST [13:03:04]URL: /json_proto [13:03:04]Method is POST - this is cgi request [13:03:04]url: /json_proto [13:03:04]query_string will be loaded in cgi processing [13:03:04]execute_cgi json_proto POST (null) [13:03:04]execute_cgi path=json_proto method=POST [13:03:04]POST find Content-Length [13:03:04]Host: 172.17.42.131:8080 [13:03:04]Content-Length: 766 [13:03:04]Content-Type: application/json [13:03:04] [13:03:04]POST finish read [13:03:04]Found Content-Length = 766 [13:03:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 450.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:04]execute_script... [13:03: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)210326", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 6.730, "sum" : 450.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 450.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:04]POST & json_proto [13:03:04]process_json_proto [13:03:04]json parsed OK: [13:03:04]protocol is kg_v1.0 [13:03:04]action value=close_receipt [13:03:04]process_action close_receipt [13:03:04]cmd_close_receipt [13:03:04]MH_GetDate [13:03:04]Write to MH i2c: F0 00 00 E2 07 D8 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: F0 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: F0 09 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: F0 09 00 E2 07 00 89 A2 17 67 A0 18 CA 66 72 [13:03:04]GetLastDocTimeStamp 1729602072 [13:03:04]current date 1729602185 [13:03:04]FM_GetShiftState [13:03:04]SAM_PROTO_GetShiftState [13:03:04]wFMCommunicate request_size=4 [13:03:04]MH_SAM_APDU [13:03:04]CAPDU: 80 13 01 00 [13:03:04]Write to MH i2c: E2 08 00 E3 07 80 13 01 00 00 00 00 00 67 [13:03:04]Write i2c OK [13:03:04]MH_I2C_Read... [13:03:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:04]Read from MH i2c: E2 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 0E 00 [13:03:04]MH_I2C_Read... [13:03:04]Read from MH i2c: E2 0E 00 E3 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5C [13:03:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:03:04]wFMCommunicate OK [13:03:04]SAM_PROTO_GetShiftState done [13:03:04]FM_GetShiftState done [13:03:04]opened in 1729556094 [13:03:04]opened+sec_in_day 1729642494 [13:03:04]quantity*price = 45023 [13:03:04]sum+1 = 45025 [13:03:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 450.24 НСП 1% : 3.98 НДС 12% : 47.81 Наличными: 0.00 Безнал.: 450.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 300 22.10.2024 13:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188271 ФПД: 252378769245105 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130305&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188271&fm=252378769245105&tin=02508201610067®Number=0000000000100030&sum=45024 [13:03:05]StoreToDocumentArchive [13:03:05]shift 461 fd 188271 [13:03:05]save to /storage/0461/doc_00188271 [13:03:05]save last doc name /storage/0461/doc_00188271 to /storage/kkm_last_doc_name [13:03:05]save OK [13:03:05]Clear old archive folders... [13:03:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:05]tlvbuf is B6EC2230 [13:03:05]SAM_PROTO_ClearQueue [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 09 00 00 [13:03:05]Write to MH i2c: E2 08 00 F0 07 80 09 00 00 00 00 00 00 69 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:05]Read from MH i2c: E2 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 03 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 03 00 F0 07 00 90 00 6B [13:03:05]RAPDU: 90 00 [13:03:05]wFMCommunicate OK [13:03:05]SAM_PROTO_ClearQueue done [13:03:05]KKMCreateOFDPacket [13:03:05]OFDProtocolAddRootSTLVToBuf [13:03:05]FM_MakeSignedData [13:03:05]FM_MakeSignedData [13:03:05]SAM_PROTO_SignData [13:03:05]wFMCommunicate request_size=4 [13:03:05]MH_SAM_APDU [13:03:05]CAPDU: 80 0D 01 02 [13:03:05]Write to MH i2c: E2 08 00 F1 07 80 0D 01 02 00 00 00 00 71 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:05]Read from MH i2c: E2 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 03 00 [13:03:05]MH_I2C_Read... [13:03:05]Read from MH i2c: E2 03 00 F1 07 00 90 00 6C [13:03:05]RAPDU: 90 00 [13:03:05]wFMCommunicate OK [13:03:05]wFMCommunicate request_size=255 [13:03:05]MH_SAM_APDU [13:03: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 33 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 89 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DF 02 00 35 04 06 00 E5 [13:03:05]Write to MH i2c: E2 02 01 F2 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 89 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DF 02 00 35 04 06 00 E5 00 00 D3 [13:03:05]Write i2c OK [13:03:05]MH_I2C_Read... [13:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:06]Read from MH i2c: E2 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 03 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 03 00 F2 07 00 90 00 6D [13:03:06]RAPDU: 90 00 [13:03:06]wFMCommunicate OK [13:03:06]wFMCommunicate request_size=10 [13:03:06]MH_SAM_APDU [13:03:06]CAPDU: 80 0D 02 02 05 89 82 E3 C3 B1 [13:03:06]Write to MH i2c: E2 0D 00 F3 07 80 0D 02 02 05 00 89 82 E3 C3 B1 00 00 E0 [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:06]Read from MH i2c: E2 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 03 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 03 00 F3 07 00 90 00 6E [13:03:06]RAPDU: 90 00 [13:03:06]wFMCommunicate OK [13:03:06]wFMCommunicate request_size=4 [13:03:06]MH_SAM_APDU [13:03:06]CAPDU: 80 0D 03 02 [13:03:06]Write to MH i2c: E2 08 00 F4 07 80 0D 03 02 00 00 00 00 76 [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:06]Read from MH i2c: E2 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 0B 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 0B 00 F4 07 00 54 4D 8F 9F 1B 49 79 4E 90 00 71 [13:03:06]RAPDU: 54 4D 8F 9F 1B 49 79 4E 90 00 [13:03:06]wFMCommunicate OK [13:03:06]SAM_PROTO_SignData done [13:03:06]FM_MakeSignedData done [13:03:06]CreateOFDProtocolMessage [13:03:06]wFMCommunicate request_size=4 [13:03:06]MH_SAM_APDU [13:03:06]CAPDU: 80 11 00 00 [13:03:06]Write to MH i2c: E2 08 00 F5 07 80 11 00 00 00 00 00 00 76 [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:06]Read from MH i2c: E2 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 17 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: E2 17 00 F5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [13:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:06]wFMCommunicate OK [13:03:06]CreateOFDProtocolMessage done [13:03:06]OFDSenderStorePacket 188271 [13:03:06]StoreOFDPacket docnum=188271 [13:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 9B 07 01 B0 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 33 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 89 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DF 02 00 35 04 06 00 E5 89 82 E3 C3 B1 54 4D 8F 9F 1B 49 79 4E [13:03:06]CheckFolder [13:03:06]dirname=/storage/ofd_packets [13:03:06]CheckFolder done [13:03:06]ProducePacketName [13:03:06]name=ofd_packets/00188271 [13:03:06]NVStorageSaveData ofd_packets/00188271 [13:03:06]File name is /storage/ofd_packets/00188271 [13:03:06]Write 301 bytes [13:03:06]NVStorageSaveData done [13:03:06]OFDSenderStorePacket done [13:03:06]KKMCreateOFDPacket done [13:03:06]NVStorageSaveData kkm_last_timestamp [13:03:06]File name is /storage/kkm_last_timestamp [13:03:06]Write 4 bytes [13:03:06]NVStorageSaveData done [13:03:06]ExternCall_PrintAddStr [13:03:06]wPrintStart [13:03:06]Write to MH i2c: 01 00 00 F6 07 FD [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: 01 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: 01 07 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 FF 0F 12 [13:03:06]RasterBufferAndPrint [13:03:06]line Счет N : (1)210326 [13:03:06]line ИНН: 02508201610067 [13:03:06]line Контрольно-Кассовый Чек [13:03:06]line ПРОДАЖА [13:03:06]line ТРК (МРК, ГНК) : 12 [13:03:06]line Товар: 2710124130 [13:03:06]line Аи-92-К-3 [13:03:06]line 6.730 * 66.90 [13:03:06]line = 450.24 [13:03:06]line НДС 12% НСП 1% [13:03:06]line > о реализуемом товаре [13:03:06]line ИТОГО: 450.24 [13:03:06]line НСП 1% : 3.98 [13:03:06]line НДС 12% : 47.81 [13:03:06]line Наличными: 0.00 [13:03:06]line Безнал.: 450.24 [13:03:06]line Место: АЗС № 86 "Партнер Нефть" [13:03:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:03:06]line СНО: Общий режим [13:03:06]line Чек 300 22.10.2024 13:03 [13:03:06]line Смена: 461 ФФД: 1.0 [13:03:06]line ЗНМ: 0300000155 [13:03:06]line РНМ: 0000000000100030 [13:03:06]line Версия ККМ: 001 [13:03:06]line Платежная система: Mbank [13:03:06]line ФМ: 0000000000965340 [13:03:06]line ФД: 188271 [13:03:06]line ФПД: 252378769245105 [13:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130305&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188271&fm=252378769245105&tin=02508201610067®Number=0000000000100030&sum=45024 [13:03:06]written 0, free lines is 4095 [13:03:06]OFD Sender: Processing packet 188271 [packets to send 1062, broken 1061] [13:03:06]ProducePacketName [13:03:06]name=ofd_packets/00188271 [13:03:06]OFD Sender: To server: pG, [13:03:06]CommunicateWithHost lk.salyk.kg:30040 [13:03:06]ConnectInit lk.salyk.kg [13:03:06]Connected sock=10 [13:03:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B2 9B 07 01 B0 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 33 FF 03 08 00 03 4A 1A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 E0 AF 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 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 00 00 00 00 00 00 39 04 06 00 E0 AF 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 01 00 00 F4 03 04 00 89 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F DF 02 00 35 04 06 00 E5 89 82 E3 C3 B1 54 4D 8F 9F 1B 49 79 4E [13:03:06]Write to MH i2c: 01 00 00 1F 08 27 [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: 01 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: 01 07 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: 01 07 00 1F 08 00 00 00 00 00 98 0C D2 [13:03:06]RasterBufferAndPrint [13:03:06]line [13:03:06]line [13:03:06]line [13:03:06]line [13:03:06]line [13:03:06]written 0, free lines is 3227 [13:03:06]MH_Cut [13:03:06]Write to MH i2c: D1 01 00 26 08 01 00 [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: D1 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: D1 01 00 [13:03:06]MH_I2C_Read... [13:03:06]Read from MH i2c: D1 01 00 26 08 00 FF [13:03:06]Write to MH i2c: 01 00 00 27 08 2F [13:03:06]Write i2c OK [13:03:06]MH_I2C_Read... [13:03:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A6 49 47 00 51 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 39 36 35 33 34 30 10 04 04 00 6F DF 02 00 F4 03 04 00 76 4C 17 67 B6 04 01 00 00 CC AC 24 9D E3 CC DB 68 [13:03:06]CommunicateWithHost err = 0 [13:03:06]CheckOFDResponse [13:03:06]1017 (14) - 77093643461234 [13:03:06]1041 (16) - 0000000000965340 [13:03:06]1040 (4) - 188271 [13:03:06]1012 (4) - 22.10.2024 06:55 [13:03:06]1206 (1) - 0 [13:03:06]OFD Sender: Remove packet 188271 [13:03:06]ProducePacketName [13:03:06]name=ofd_packets/00188271 [13:03:06]NVStorageDeleteData [13:03:07]OFD Sender: No OFD packet to send [13:03:07]*** Cut start [13:03:07]*** Partial cut [13:03:07]*** CUTSNS_PIN = 1 [13:03:07]*** CUTSNS_PIN = 0 [13:03:08]*** Brake cut motor [13:03:08]Read from MH i2c: 01 [13:03:08]MH_I2C_Read... [13:03:08]*** Stop cut motor [13:03:08]*** Cut end [13:03:08]Read from MH i2c: 01 07 00 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: 01 07 00 27 08 00 00 00 00 00 FF 0F 44 [13:03:08]process_action close_receipt done [13:03:08]requested_data is exist [13:03:08]produce_requested_data [13:03:08]requested_item fm.sn is exist - process it [13:03:08]wFMCommunicate request_size=4 [13:03:08]MH_SAM_APDU [13:03:08]CAPDU: 80 11 00 00 [13:03:08]Write to MH i2c: E2 08 00 28 08 80 11 00 00 00 00 00 00 AA [13:03:08]Write i2c OK [13:03:08]MH_I2C_Read... [13:03:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:08]Read from MH i2c: E2 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 17 00 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 17 00 28 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [13:03:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:08]wFMCommunicate OK [13:03:08]requested_item fd.num is exist - process it [13:03:08]SAM_PROTO_GetFieldsCounters [13:03:08]wFMCommunicate request_size=4 [13:03:08]MH_SAM_APDU [13:03:08]CAPDU: 80 13 00 00 [13:03:08]Write to MH i2c: E2 08 00 29 08 80 13 00 00 00 00 00 00 AD [13:03:08]Write i2c OK [13:03:08]MH_I2C_Read... [13:03:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:08]Read from MH i2c: E2 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 62 00 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 62 00 29 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 59 [13:03:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2C 01 00 00 5E 04 04 00 2C 01 00 00 57 04 04 00 2D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:08]wFMCommunicate OK [13:03:08]SAM_PROTO_GetFieldsCounters done [13:03:08]requested_item shift.num is exist - process it [13:03:08]requested_item shift.opened is exist - process it [13:03:08]req_shift_opened [13:03:08]FM_GetShiftState [13:03:08]SAM_PROTO_GetShiftState [13:03:08]wFMCommunicate request_size=4 [13:03:08]MH_SAM_APDU [13:03:08]CAPDU: 80 13 01 00 [13:03:08]Write to MH i2c: E2 08 00 2A 08 80 13 01 00 00 00 00 00 AF [13:03:08]Write i2c OK [13:03:08]MH_I2C_Read... [13:03:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:08]Read from MH i2c: E2 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 0E 00 [13:03:08]MH_I2C_Read... [13:03:08]Read from MH i2c: E2 0E 00 2A 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A4 [13:03:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:03:08]wFMCommunicate OK [13:03:08]SAM_PROTO_GetShiftState done [13:03:08]FM_GetShiftState done [13:03:08]req_shift_opened done [13:03:08]requested_item shift.open_date is exist - process it [13:03:08]req_shift_open_date [13:03:08]req_shift_open_date done [13:03:08]produce_requested_data done [13:03:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188271,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:03:08]process_action_free close_receipt [13:03:08]json_value_free [13:03:08]json_value_free done [13:03:08]process_json_proto returns [13:03:08]Send response to host [13:03:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188271,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:03:08]free response buf [13:03:08]execute_script done [13:03:08]execute_script returns [13:03:08]free content buf [13:03:08]Sock 9.Close socket [13:03:08]Sock 9.Thread stoped [13:03:09]accept exits with 7 [13:03:09]New connection [13:03:09]New thread 3067059556 created [13:03:09]Thread 3066916196 joined [13:03:09]Waiting for new connection... [13:03:09] Sock 7.Parse request [13:03:09]Sock 7.Check first char [13:03:09]Sock 7.First char is OK [13:03:09]request: POST /json_proto HTTP/1.0 [13:03:09]Method: POST [13:03:09]URL: /json_proto [13:03:09]Method is POST - this is cgi request [13:03:09]url: /json_proto [13:03:09]query_string will be loaded in cgi processing [13:03:09]execute_cgi json_proto POST (null) [13:03:09]execute_cgi path=json_proto method=POST [13:03:09]POST find Content-Length [13:03:09]Host: 172.17.42.131:8080 [13:03:09]Content-Length: 679 [13:03:09]Content-Type: application/json [13:03:09] [13:03:09]POST finish read [13:03:09]Found Content-Length = 679 [13:03:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:03:09]execute_script... [13:03:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210325", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:03:09]POST & json_proto [13:03:09]process_json_proto [13:03:09]json parsed OK: [13:03:09]protocol is kg_v1.0 [13:03:09]action value=close_receipt [13:03:09]process_action close_receipt [13:03:09]cmd_close_receipt [13:03:09]MH_GetDate [13:03:09]Write to MH i2c: F0 00 00 2B 08 22 [13:03:09]Write i2c OK [13:03:09]MH_I2C_Read... [13:03:09]Read from MH i2c: F0 [13:03:09]MH_I2C_Read... [13:03:09]Read from MH i2c: F0 09 00 [13:03:09]MH_I2C_Read... [13:03:09]Read from MH i2c: F0 09 00 2B 08 00 8E A2 17 67 A0 18 CA 66 C1 [13:03:09]GetLastDocTimeStamp 1729602185 [13:03:09]current date 1729602190 [13:03:09]FM_GetShiftState [13:03:09]SAM_PROTO_GetShiftState [13:03:09]wFMCommunicate request_size=4 [13:03:09]MH_SAM_APDU [13:03:09]CAPDU: 80 13 01 00 [13:03:09]Write to MH i2c: E2 08 00 2C 08 80 13 01 00 00 00 00 00 B1 [13:03:09]Write i2c OK [13:03:09]MH_I2C_Read... [13:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:09]Read from MH i2c: E2 [13:03:09]MH_I2C_Read... [13:03:09]Read from MH i2c: E2 0E 00 [13:03:09]MH_I2C_Read... [13:03:09]Read from MH i2c: E2 0E 00 2C 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A6 [13:03:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:03:09]wFMCommunicate OK [13:03:09]SAM_PROTO_GetShiftState done [13:03:09]FM_GetShiftState done [13:03:09]opened in 1729556094 [13:03:09]opened+sec_in_day 1729642494 [13:03:09]quantity*price = 100050 [13:03:09]sum+1 = 100052 [13:03:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 301 22.10.2024 13:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188272 ФПД: 166523195131070 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188272&fm=166523195131070&tin=02508201610067®Number=0000000000100030&sum=100000 [13:03:10]StoreToDocumentArchive [13:03:10]shift 461 fd 188272 [13:03:10]save to /storage/0461/doc_00188272 [13:03:10]save last doc name /storage/0461/doc_00188272 to /storage/kkm_last_doc_name [13:03:10]save OK [13:03:10]Clear old archive folders... [13:03:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:03:10]tlvbuf is 01E58B50 [13:03:10]SAM_PROTO_ClearQueue [13:03:10]wFMCommunicate request_size=4 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 09 00 00 [13:03:10]Write to MH i2c: E2 08 00 39 08 80 09 00 00 00 00 00 00 B3 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 39 08 00 90 00 B5 [13:03:10]RAPDU: 90 00 [13:03:10]wFMCommunicate OK [13:03:10]SAM_PROTO_ClearQueue done [13:03:10]KKMCreateOFDPacket [13:03:10]OFDProtocolAddRootSTLVToBuf [13:03:10]FM_MakeSignedData [13:03:10]FM_MakeSignedData [13:03:10]SAM_PROTO_SignData [13:03:10]wFMCommunicate request_size=4 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 0D 01 02 [13:03:10]Write to MH i2c: E2 08 00 3A 08 80 0D 01 02 00 00 00 00 BB [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:10]Read from MH i2c: E2 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 [13:03:10]MH_I2C_Read... [13:03:10]Read from MH i2c: E2 03 00 3A 08 00 90 00 B6 [13:03:10]RAPDU: 90 00 [13:03:10]wFMCommunicate OK [13:03:10]wFMCommunicate request_size=255 [13:03:10]MH_SAM_APDU [13:03:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 2D 01 00 00 F4 03 04 00 8E A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DF 02 00 35 04 06 00 97 73 B3 E4 [13:03:10]Write to MH i2c: E2 02 01 3B 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 32 31 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 2D 01 00 00 F4 03 04 00 8E A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DF 02 00 35 04 06 00 97 73 B3 E4 00 00 C2 [13:03:10]Write i2c OK [13:03:10]MH_I2C_Read... [13:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:11]Read from MH i2c: E2 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 03 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 03 00 3B 08 00 90 00 B7 [13:03:11]RAPDU: 90 00 [13:03:11]wFMCommunicate OK [13:03:11]wFMCommunicate request_size=7 [13:03:11]MH_SAM_APDU [13:03:11]CAPDU: 80 0D 02 02 02 84 BE [13:03:11]Write to MH i2c: E2 0A 00 3C 08 80 0D 02 02 02 00 84 BE 00 00 04 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:11]Read from MH i2c: E2 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 03 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 03 00 3C 08 00 90 00 B8 [13:03:11]RAPDU: 90 00 [13:03:11]wFMCommunicate OK [13:03:11]wFMCommunicate request_size=4 [13:03:11]MH_SAM_APDU [13:03:11]CAPDU: 80 0D 03 02 [13:03:11]Write to MH i2c: E2 08 00 3D 08 80 0D 03 02 00 00 00 00 C0 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:11]Read from MH i2c: E2 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 0B 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 0B 00 3D 08 00 E3 E2 AE 78 43 8C FB 1F 90 00 95 [13:03:11]RAPDU: E3 E2 AE 78 43 8C FB 1F 90 00 [13:03:11]wFMCommunicate OK [13:03:11]SAM_PROTO_SignData done [13:03:11]FM_MakeSignedData done [13:03:11]CreateOFDProtocolMessage [13:03:11]wFMCommunicate request_size=4 [13:03:11]MH_SAM_APDU [13:03:11]CAPDU: 80 11 00 00 [13:03:11]Write to MH i2c: E2 08 00 3E 08 80 11 00 00 00 00 00 00 C0 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:11]Read from MH i2c: E2 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 17 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: E2 17 00 3E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [13:03:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:11]wFMCommunicate OK [13:03:11]CreateOFDProtocolMessage done [13:03:11]OFDSenderStorePacket 188272 [13:03:11]StoreOFDPacket docnum=188272 [13:03:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 24 26 04 01 5F 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 32 31 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 2D 01 00 00 F4 03 04 00 8E A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DF 02 00 35 04 06 00 97 73 B3 E4 84 BE E3 E2 AE 78 43 8C FB 1F [13:03:11]CheckFolder [13:03:11]dirname=/storage/ofd_packets [13:03:11]CheckFolder done [13:03:11]ProducePacketName [13:03:11]name=ofd_packets/00188272 [13:03:11]NVStorageSaveData ofd_packets/00188272 [13:03:11]File name is /storage/ofd_packets/00188272 [13:03:11]Write 298 bytes [13:03:11]NVStorageSaveData done [13:03:11]OFDSenderStorePacket done [13:03:11]KKMCreateOFDPacket done [13:03:11]NVStorageSaveData kkm_last_timestamp [13:03:11]File name is /storage/kkm_last_timestamp [13:03:11]Write 4 bytes [13:03:11]NVStorageSaveData done [13:03:11]ExternCall_PrintAddStr [13:03:11]wPrintStart [13:03:11]Write to MH i2c: 01 00 00 3F 08 47 [13:03:11]Write i2c OK [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: 01 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: 01 07 00 [13:03:11]MH_I2C_Read... [13:03:11]Read from MH i2c: 01 07 00 3F 08 00 00 00 00 00 FF 0F 5C [13:03:11]RasterBufferAndPrint [13:03:11]line Счет N : (1)210325 [13:03:11]line ИНН: 02508201610067 [13:03:11]line Контрольно-Кассовый Чек [13:03:11]line ПРОДАЖА [13:03:11]line ТРК (МРК, ГНК) : 51 [13:03:11]line Товар: 2710194210 [13:03:11]line ДТ-К-5 [13:03:11]line 13.130 * 76.20 [13:03:11]line = 1000.51 [13:03:11]line НДС 12% НСП 1% [13:03:11]line > о реализуемом товаре [13:03:11]line ОКРУГЛЕНИЕ: -0.51 [13:03:11]line ИТОГО: 1000.00 [13:03:11]line Внесено: 1000.00 [13:03:11]line СДАЧА: 0.00 [13:03:11]line НСП 1% : 8.85 [13:03:11]line НДС 12% : 106.25 [13:03:11]line Наличными: 1000.00 [13:03:11]line Безнал.: 0.00 [13:03:11]line Место: АЗС № 86 "Партнер Нефть" [13:03:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:03:11]line СНО: Общий режим [13:03:11]line Чек 301 22.10.2024 13:03 [13:03:11]line Смена: 461 ФФД: 1.0 [13:03:11]line ЗНМ: 0300000155 [13:03:11]line РНМ: 0000000000100030 [13:03:11]line Версия ККМ: 001 [13:03:11]line ФМ: 0000000000965340 [13:03:11]line ФД: 188272 [13:03:11]line ФПД: 166523195131070 [13:03:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188272&fm=166523195131070&tin=02508201610067®Number=0000000000100030&sum=100000 [13:03:11]OFD Sender: Processing packet 188272 [packets to send 1062, broken 1061] [13:03:11]ProducePacketName [13:03:11]name=ofd_packets/00188272 [13:03:11]OFD Sender: To server: pG, [13:03:11]CommunicateWithHost lk.salyk.kg:30040 [13:03:11]ConnectInit lk.salyk.kg [13:03:11]written 0, free lines is 4095 [13:03:12]Connected sock=10 [13:03:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 24 26 04 01 5F 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 32 31 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 2D 01 00 00 F4 03 04 00 8E A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 DF 02 00 35 04 06 00 97 73 B3 E4 84 BE E3 E2 AE 78 43 8C FB 1F [13:03:12]Write to MH i2c: 01 00 00 6A 08 72 [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 07 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 75 0C FA [13:03:12]RasterBufferAndPrint [13:03:12]line [13:03:12]line [13:03:12]line [13:03:12]line [13:03:12]line [13:03:12]written 0, free lines is 3193 [13:03:12]MH_Cut [13:03:12]Write to MH i2c: D1 01 00 71 08 01 4B [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: D1 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: D1 01 00 [13:03:12]MH_I2C_Read... [13:03:12]Read from MH i2c: D1 01 00 71 08 00 4A [13:03:12]Write to MH i2c: 01 00 00 72 08 7A [13:03:12]Write i2c OK [13:03:12]MH_I2C_Read... [13:03:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CF 92 47 00 86 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 39 36 35 33 34 30 10 04 04 00 70 DF 02 00 F4 03 04 00 7C 4C 17 67 B6 04 01 00 00 3B 7A 9F E0 06 CE C5 18 [13:03:12]CommunicateWithHost err = 0 [13:03:12]CheckOFDResponse [13:03:12]1017 (14) - 77093643461234 [13:03:12]1041 (16) - 0000000000965340 [13:03:12]1040 (4) - 188272 [13:03:12]1012 (4) - 22.10.2024 06:55 [13:03:12]1206 (1) - 0 [13:03:12]OFD Sender: Remove packet 188272 [13:03:12]ProducePacketName [13:03:12]name=ofd_packets/00188272 [13:03:12]NVStorageDeleteData [13:03:12]OFD Sender: No OFD packet to send [13:03:13]*** Cut start [13:03:13]*** Partial cut [13:03:13]*** CUTSNS_PIN = 1 [13:03:13]*** CUTSNS_PIN = 0 [13:03:13]*** Brake cut motor [13:03:13]Read from MH i2c: 01 [13:03:13]MH_I2C_Read... [13:03:13]*** Stop cut motor [13:03:13]*** Cut end [13:03:13]Read from MH i2c: 01 07 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: 01 07 00 72 08 00 00 00 00 00 FF 0F 8F [13:03:13]process_action close_receipt done [13:03:13]requested_data is exist [13:03:13]produce_requested_data [13:03:13]requested_item fm.sn is exist - process it [13:03:13]wFMCommunicate request_size=4 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 11 00 00 [13:03:13]Write to MH i2c: E2 08 00 73 08 80 11 00 00 00 00 00 00 F5 [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:13]Read from MH i2c: E2 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 17 00 [13:03:13]MH_I2C_Read... [13:03:13]Read from MH i2c: E2 17 00 73 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [13:03:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:13]wFMCommunicate OK [13:03:13]requested_item fd.num is exist - process it [13:03:13]SAM_PROTO_GetFieldsCounters [13:03:13]wFMCommunicate request_size=4 [13:03:13]MH_SAM_APDU [13:03:13]CAPDU: 80 13 00 00 [13:03:13]Write to MH i2c: E2 08 00 74 08 80 13 00 00 00 00 00 00 F8 [13:03:13]Write i2c OK [13:03:13]MH_I2C_Read... [13:03:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:14]Read from MH i2c: E2 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: E2 62 00 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: E2 62 00 74 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 A8 [13:03:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2D 01 00 00 5E 04 04 00 2D 01 00 00 57 04 04 00 2E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:14]wFMCommunicate OK [13:03:14]SAM_PROTO_GetFieldsCounters done [13:03:14]requested_item shift.num is exist - process it [13:03:14]requested_item shift.opened is exist - process it [13:03:14]req_shift_opened [13:03:14]FM_GetShiftState [13:03:14]SAM_PROTO_GetShiftState [13:03:14]wFMCommunicate request_size=4 [13:03:14]MH_SAM_APDU [13:03:14]CAPDU: 80 13 01 00 [13:03:14]Write to MH i2c: E2 08 00 75 08 80 13 01 00 00 00 00 00 FA [13:03:14]Write i2c OK [13:03:14]MH_I2C_Read... [13:03:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:14]Read from MH i2c: E2 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: E2 0E 00 [13:03:14]MH_I2C_Read... [13:03:14]Read from MH i2c: E2 0E 00 75 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EF [13:03:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:03:14]wFMCommunicate OK [13:03:14]SAM_PROTO_GetShiftState done [13:03:14]FM_GetShiftState done [13:03:14]req_shift_opened done [13:03:14]requested_item shift.open_date is exist - process it [13:03:14]req_shift_open_date [13:03:14]req_shift_open_date done [13:03:14]produce_requested_data done [13:03:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188272,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:03:14]process_action_free close_receipt [13:03:14]json_value_free [13:03:14]json_value_free done [13:03:14]process_json_proto returns [13:03:14]Send response to host [13:03:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188272,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:03:14]free response buf [13:03:14]execute_script done [13:03:14]execute_script returns [13:03:14]free content buf [13:03:14]Sock 7.Close socket [13:03:14]Sock 7.Thread stoped [13:03:18]OFD Sender: No OFD packet to send [13:03:23]OFD Sender: No OFD packet to send [13:03:28]OFD Sender: No OFD packet to send [13:03:33]OFD Sender: No OFD packet to send [13:03:38]OFD Sender: No OFD packet to send [13:03:43]OFD Sender: No OFD packet to send [13:03:48]OFD Sender: No OFD packet to send [13:03:50]accept exits with 9 [13:03:50]New connection [13:03:50]New thread 3066916196 created [13:03:50]Thread 3067059556 joined [13:03:50]Waiting for new connection... [13:03:50] Sock 9.Parse request [13:03:50]Sock 9.Check first char [13:03:50]Sock 9.First char is OK [13:03:50]request: POST /json_proto HTTP/1.0 [13:03:50]Method: POST [13:03:50]URL: /json_proto [13:03:50]Method is POST - this is cgi request [13:03:50]url: /json_proto [13:03:50]query_string will be loaded in cgi processing [13:03:50]execute_cgi json_proto POST (null) [13:03:50]execute_cgi path=json_proto method=POST [13:03:50]POST find Content-Length [13:03:50]Host: 172.17.42.131:8080 [13:03:50]Content-Length: 678 [13:03:50]Content-Type: application/json [13:03:50] [13:03:50]POST finish read [13:03:50]Found Content-Length = 678 [13:03:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:50]execute_script... [13:03: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)210327", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:03:50]POST & json_proto [13:03:50]process_json_proto [13:03:50]json parsed OK: [13:03:50]protocol is kg_v1.0 [13:03:50]action value=close_receipt [13:03:50]process_action close_receipt [13:03:50]cmd_close_receipt [13:03:50]MH_GetDate [13:03:50]Write to MH i2c: F0 00 00 76 08 6D [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: F0 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: F0 09 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: F0 09 00 76 08 00 B7 A2 17 67 A0 18 CA 66 35 [13:03:50]GetLastDocTimeStamp 1729602190 [13:03:50]current date 1729602231 [13:03:50]FM_GetShiftState [13:03:50]SAM_PROTO_GetShiftState [13:03:50]wFMCommunicate request_size=4 [13:03:50]MH_SAM_APDU [13:03:50]CAPDU: 80 13 01 00 [13:03:50]Write to MH i2c: E2 08 00 77 08 80 13 01 00 00 00 00 00 FC [13:03:50]Write i2c OK [13:03:50]MH_I2C_Read... [13:03:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:50]Read from MH i2c: E2 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 0E 00 [13:03:50]MH_I2C_Read... [13:03:50]Read from MH i2c: E2 0E 00 77 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F1 [13:03:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:03:50]wFMCommunicate OK [13:03:50]SAM_PROTO_GetShiftState done [13:03:50]FM_GetShiftState done [13:03:50]opened in 1729556094 [13:03:50]opened+sec_in_day 1729642494 [13:03:50]quantity*price = 75061 [13:03:50]sum+1 = 75063 [13:03:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 302 22.10.2024 13:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188273 ФПД: 44711851752143 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130351&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188273&fm=44711851752143&tin=02508201610067®Number=0000000000100030&sum=75000 [13:03:51]StoreToDocumentArchive [13:03:51]shift 461 fd 188273 [13:03:51]save to /storage/0461/doc_00188273 [13:03:51]save last doc name /storage/0461/doc_00188273 to /storage/kkm_last_doc_name [13:03:51]save OK [13:03:51]Clear old archive folders... [13:03:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:03:51]tlvbuf is 01E59B00 [13:03:51]SAM_PROTO_ClearQueue [13:03:51]wFMCommunicate request_size=4 [13:03:51]MH_SAM_APDU [13:03:51]CAPDU: 80 09 00 00 [13:03:51]Write to MH i2c: E2 08 00 84 08 80 09 00 00 00 00 00 00 FE [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:03:51]Read from MH i2c: E2 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 84 08 00 90 00 00 [13:03:51]RAPDU: 90 00 [13:03:51]wFMCommunicate OK [13:03:51]SAM_PROTO_ClearQueue done [13:03:51]KKMCreateOFDPacket [13:03:51]OFDProtocolAddRootSTLVToBuf [13:03:51]FM_MakeSignedData [13:03:51]FM_MakeSignedData [13:03:51]SAM_PROTO_SignData [13:03:51]wFMCommunicate request_size=4 [13:03:51]MH_SAM_APDU [13:03:51]CAPDU: 80 0D 01 02 [13:03:51]Write to MH i2c: E2 08 00 85 08 80 0D 01 02 00 00 00 00 06 [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:03:51]Read from MH i2c: E2 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 [13:03:51]MH_I2C_Read... [13:03:51]Read from MH i2c: E2 03 00 85 08 00 90 00 01 [13:03:51]RAPDU: 90 00 [13:03:51]wFMCommunicate OK [13:03:51]wFMCommunicate request_size=255 [13:03:51]MH_SAM_APDU [13:03:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 2E 01 00 00 F4 03 04 00 B7 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DF 02 00 35 04 06 00 28 [13:03:51]Write to MH i2c: E2 02 01 86 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 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 2E 01 00 00 F4 03 04 00 B7 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DF 02 00 35 04 06 00 28 00 00 EF [13:03:51]Write i2c OK [13:03:51]MH_I2C_Read... [13:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:52]Read from MH i2c: E2 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 03 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 03 00 86 08 00 90 00 02 [13:03:52]RAPDU: 90 00 [13:03:52]wFMCommunicate OK [13:03:52]wFMCommunicate request_size=10 [13:03:52]MH_SAM_APDU [13:03:52]CAPDU: 80 0D 02 02 05 AA 4A 0A 7A CF [13:03:52]Write to MH i2c: E2 0D 00 87 08 80 0D 02 02 05 00 AA 4A 0A 7A CF 00 00 5A [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:03:52]Read from MH i2c: E2 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 03 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 03 00 87 08 00 90 00 03 [13:03:52]RAPDU: 90 00 [13:03:52]wFMCommunicate OK [13:03:52]wFMCommunicate request_size=4 [13:03:52]MH_SAM_APDU [13:03:52]CAPDU: 80 0D 03 02 [13:03:52]Write to MH i2c: E2 08 00 88 08 80 0D 03 02 00 00 00 00 0B [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:03:52]Read from MH i2c: E2 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 0B 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 0B 00 88 08 00 6D 0F 1C 6D 49 77 21 E0 90 00 D2 [13:03:52]RAPDU: 6D 0F 1C 6D 49 77 21 E0 90 00 [13:03:52]wFMCommunicate OK [13:03:52]SAM_PROTO_SignData done [13:03:52]FM_MakeSignedData done [13:03:52]CreateOFDProtocolMessage [13:03:52]wFMCommunicate request_size=4 [13:03:52]MH_SAM_APDU [13:03:52]CAPDU: 80 11 00 00 [13:03:52]Write to MH i2c: E2 08 00 89 08 80 11 00 00 00 00 00 00 0B [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:52]Read from MH i2c: E2 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 17 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: E2 17 00 89 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [13:03:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:52]wFMCommunicate OK [13:03:52]CreateOFDProtocolMessage done [13:03:52]OFDSenderStorePacket 188273 [13:03:52]StoreOFDPacket docnum=188273 [13:03:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 3F 07 01 7E C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 2E 01 00 00 F4 03 04 00 B7 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DF 02 00 35 04 06 00 28 AA 4A 0A 7A CF 6D 0F 1C 6D 49 77 21 E0 [13:03:52]CheckFolder [13:03:52]dirname=/storage/ofd_packets [13:03:52]CheckFolder done [13:03:52]ProducePacketName [13:03:52]name=ofd_packets/00188273 [13:03:52]NVStorageSaveData ofd_packets/00188273 [13:03:52]File name is /storage/ofd_packets/00188273 [13:03:52]Write 301 bytes [13:03:52]NVStorageSaveData done [13:03:52]OFDSenderStorePacket done [13:03:52]KKMCreateOFDPacket done [13:03:52]NVStorageSaveData kkm_last_timestamp [13:03:52]File name is /storage/kkm_last_timestamp [13:03:52]Write 4 bytes [13:03:52]NVStorageSaveData done [13:03:52]ExternCall_PrintAddStr [13:03:52]wPrintStart [13:03:52]Write to MH i2c: 01 00 00 8A 08 92 [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 8A 08 00 00 00 00 00 FF 0F A7 [13:03:52]RasterBufferAndPrint [13:03:52]line Счет N : (1)210327 [13:03:52]line ИНН: 02508201610067 [13:03:52]line Контрольно-Кассовый Чек [13:03:52]line ПРОДАЖА [13:03:52]line ТРК (МРК, ГНК) : 42 [13:03:52]line Товар: 2710124130 [13:03:52]line Аи-92-К-3 [13:03:52]line 11.220 * 66.90 [13:03:52]line = 750.62 [13:03:52]line НДС 12% НСП 1% [13:03:52]line > о реализуемом товаре [13:03:52]line ОКРУГЛЕНИЕ: -0.62 [13:03:52]line ИТОГО: 750.00 [13:03:52]line Внесено: 750.00 [13:03:52]line СДАЧА: 0.00 [13:03:52]line НСП 1% : 6.64 [13:03:52]line НДС 12% : 79.71 [13:03:52]line Наличными: 750.00 [13:03:52]line Безнал.: 0.00 [13:03:52]line Место: АЗС № 86 "Партнер Нефть" [13:03:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:03:52]line СНО: Общий режим [13:03:52]line Чек 302 22.10.2024 13:03 [13:03:52]line Смена: 461 ФФД: 1.0 [13:03:52]line ЗНМ: 0300000155 [13:03:52]line РНМ: 0000000000100030 [13:03:52]line Версия ККМ: 001 [13:03:52]line ФМ: 0000000000965340 [13:03:52]line ФД: 188273 [13:03:52]line ФПД: 44711851752143 [13:03:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130351&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188273&fm=44711851752143&tin=02508201610067®Number=0000000000100030&sum=75000 [13:03:52]written 0, free lines is 4095 [13:03:52]OFD Sender: Processing packet 188273 [packets to send 1062, broken 1061] [13:03:52]ProducePacketName [13:03:52]name=ofd_packets/00188273 [13:03:52]OFD Sender: To server: pG, [13:03:52]CommunicateWithHost lk.salyk.kg:30040 [13:03:52]ConnectInit lk.salyk.kg [13:03:52]Connected sock=10 [13:03:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7F 3F 07 01 7E C7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 2E 01 00 00 F4 03 04 00 B7 A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DF 02 00 35 04 06 00 28 AA 4A 0A 7A CF 6D 0F 1C 6D 49 77 21 E0 [13:03:52]Write to MH i2c: 01 00 00 B5 08 BD [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 72 0C 42 [13:03:52]RasterBufferAndPrint [13:03:52]line [13:03:52]line [13:03:52]line [13:03:52]line [13:03:52]line [13:03:52]written 0, free lines is 3188 [13:03:52]MH_Cut [13:03:52]Write to MH i2c: D1 01 00 BC 08 01 96 [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: D1 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: D1 01 00 [13:03:52]MH_I2C_Read... [13:03:52]Read from MH i2c: D1 01 00 BC 08 00 95 [13:03:52]Write to MH i2c: 01 00 00 BD 08 C5 [13:03:52]Write i2c OK [13:03:52]MH_I2C_Read... [13:03:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 98 27 47 00 58 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 DF 02 00 F4 03 04 00 A4 4C 17 67 B6 04 01 00 00 FD 9C C6 C7 75 14 93 CD [13:03:52]CommunicateWithHost err = 0 [13:03:52]CheckOFDResponse [13:03:52]1017 (14) - 77093643461234 [13:03:52]1041 (16) - 0000000000965340 [13:03:52]1040 (4) - 188273 [13:03:52]1012 (4) - 22.10.2024 06:56 [13:03:52]1206 (1) - 0 [13:03:52]OFD Sender: Remove packet 188273 [13:03:52]ProducePacketName [13:03:52]name=ofd_packets/00188273 [13:03:52]NVStorageDeleteData [13:03:53]OFD Sender: No OFD packet to send [13:03:53]*** Cut start [13:03:53]*** Partial cut [13:03:53]*** CUTSNS_PIN = 1 [13:03:53]*** CUTSNS_PIN = 0 [13:03:54]*** Brake cut motor [13:03:54]Read from MH i2c: 01 [13:03:54]MH_I2C_Read... [13:03:54]*** Stop cut motor [13:03:54]*** Cut end [13:03:54]Read from MH i2c: 01 07 00 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: 01 07 00 BD 08 00 00 00 00 00 FF 0F DA [13:03:54]process_action close_receipt done [13:03:54]requested_data is exist [13:03:54]produce_requested_data [13:03:54]requested_item fm.sn is exist - process it [13:03:54]wFMCommunicate request_size=4 [13:03:54]MH_SAM_APDU [13:03:54]CAPDU: 80 11 00 00 [13:03:54]Write to MH i2c: E2 08 00 BE 08 80 11 00 00 00 00 00 00 40 [13:03:54]Write i2c OK [13:03:54]MH_I2C_Read... [13:03:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:03:54]Read from MH i2c: E2 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 17 00 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 17 00 BE 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [13:03:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:03:54]wFMCommunicate OK [13:03:54]requested_item fd.num is exist - process it [13:03:54]SAM_PROTO_GetFieldsCounters [13:03:54]wFMCommunicate request_size=4 [13:03:54]MH_SAM_APDU [13:03:54]CAPDU: 80 13 00 00 [13:03:54]Write to MH i2c: E2 08 00 BF 08 80 13 00 00 00 00 00 00 43 [13:03:54]Write i2c OK [13:03:54]MH_I2C_Read... [13:03:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:03:54]Read from MH i2c: E2 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 62 00 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 62 00 BF 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [13:03:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2E 01 00 00 5E 04 04 00 2E 01 00 00 57 04 04 00 2F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:03:54]wFMCommunicate OK [13:03:54]SAM_PROTO_GetFieldsCounters done [13:03:54]requested_item shift.num is exist - process it [13:03:54]requested_item shift.opened is exist - process it [13:03:54]req_shift_opened [13:03:54]FM_GetShiftState [13:03:54]SAM_PROTO_GetShiftState [13:03:54]wFMCommunicate request_size=4 [13:03:54]MH_SAM_APDU [13:03:54]CAPDU: 80 13 01 00 [13:03:54]Write to MH i2c: E2 08 00 C0 08 80 13 01 00 00 00 00 00 45 [13:03:54]Write i2c OK [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 [13:03:54]MH_I2C_Read... [13:03:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:03:54]Read from MH i2c: E2 0E 00 [13:03:54]MH_I2C_Read... [13:03:54]Read from MH i2c: E2 0E 00 C0 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [13:03:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:03:54]wFMCommunicate OK [13:03:54]SAM_PROTO_GetShiftState done [13:03:54]FM_GetShiftState done [13:03:54]req_shift_opened done [13:03:54]requested_item shift.open_date is exist - process it [13:03:54]req_shift_open_date [13:03:54]req_shift_open_date done [13:03:54]produce_requested_data done [13:03:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188273,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:03:54]process_action_free close_receipt [13:03:54]json_value_free [13:03:54]json_value_free done [13:03:54]process_json_proto returns [13:03:54]Send response to host [13:03:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188273,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:03:54]free response buf [13:03:54]execute_script done [13:03:54]execute_script returns [13:03:54]free content buf [13:03:54]Sock 9.Close socket [13:03:54]Sock 9.Thread stoped [13:03:58]OFD Sender: No OFD packet to send [13:04:03]OFD Sender: No OFD packet to send [13:04:08]OFD Sender: No OFD packet to send [13:04:13]OFD Sender: No OFD packet to send [13:04:18]OFD Sender: No OFD packet to send [13:04:23]OFD Sender: No OFD packet to send [13:04:28]OFD Sender: No OFD packet to send [13:04:33]OFD Sender: No OFD packet to send [13:04:38]OFD Sender: No OFD packet to send [13:04:43]OFD Sender: No OFD packet to send [13:04:48]OFD Sender: No OFD packet to send [13:04:53]OFD Sender: No OFD packet to send [13:04:58]OFD Sender: No OFD packet to send [13:05:02]accept exits with 7 [13:05:02]New connection [13:05:02]New thread 3067059556 created [13:05:02]Thread 3066916196 joined [13:05:02]Waiting for new connection... [13:05:02] Sock 7.Parse request [13:05:02]Sock 7.Check first char [13:05:02]Sock 7.First char is OK [13:05:02]request: POST /json_proto HTTP/1.0 [13:05:02]Method: POST [13:05:02]URL: /json_proto [13:05:02]Method is POST - this is cgi request [13:05:02]url: /json_proto [13:05:02]query_string will be loaded in cgi processing [13:05:02]execute_cgi json_proto POST (null) [13:05:02]execute_cgi path=json_proto method=POST [13:05:02]POST find Content-Length [13:05:02]Host: 172.17.42.131:8080 [13:05:02]Content-Length: 682 [13:05:02]Content-Type: application/json [13:05:02] [13:05:02]POST finish read [13:05:02]Found Content-Length = 682 [13:05:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:02]execute_script... [13:05: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)210328", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:05:02]POST & json_proto [13:05:02]process_json_proto [13:05:02]json parsed OK: [13:05:02]protocol is kg_v1.0 [13:05:02]action value=close_receipt [13:05:02]process_action close_receipt [13:05:02]cmd_close_receipt [13:05:02]MH_GetDate [13:05:02]Write to MH i2c: F0 00 00 C1 08 B8 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: F0 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: F0 09 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: F0 09 00 C1 08 00 FF A2 17 67 A0 18 CA 66 C8 [13:05:02]GetLastDocTimeStamp 1729602231 [13:05:02]current date 1729602303 [13:05:02]FM_GetShiftState [13:05:02]SAM_PROTO_GetShiftState [13:05:02]wFMCommunicate request_size=4 [13:05:02]MH_SAM_APDU [13:05:02]CAPDU: 80 13 01 00 [13:05:02]Write to MH i2c: E2 08 00 C2 08 80 13 01 00 00 00 00 00 47 [13:05:02]Write i2c OK [13:05:02]MH_I2C_Read... [13:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:02]Read from MH i2c: E2 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 [13:05:02]MH_I2C_Read... [13:05:02]Read from MH i2c: E2 0E 00 C2 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3C [13:05:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:05:02]wFMCommunicate OK [13:05:02]SAM_PROTO_GetShiftState done [13:05:02]FM_GetShiftState done [13:05:02]opened in 1729556094 [13:05:02]opened+sec_in_day 1729642494 [13:05:02]quantity*price = 100015 [13:05:02]sum+1 = 100017 [13:05:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 303 22.10.2024 13:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188274 ФПД: 199873848401181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188274&fm=199873848401181&tin=02508201610067®Number=0000000000100030&sum=100000 [13:05:03]StoreToDocumentArchive [13:05:03]shift 461 fd 188274 [13:05:03]save to /storage/0461/doc_00188274 [13:05:03]save last doc name /storage/0461/doc_00188274 to /storage/kkm_last_doc_name [13:05:03]save OK [13:05:03]Clear old archive folders... [13:05:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:05:03]tlvbuf is 01DD2AE0 [13:05:03]SAM_PROTO_ClearQueue [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 09 00 00 [13:05:03]Write to MH i2c: E2 08 00 CF 08 80 09 00 00 00 00 00 00 49 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 CF 08 00 90 00 4B [13:05:03]RAPDU: 90 00 [13:05:03]wFMCommunicate OK [13:05:03]SAM_PROTO_ClearQueue done [13:05:03]KKMCreateOFDPacket [13:05:03]OFDProtocolAddRootSTLVToBuf [13:05:03]FM_MakeSignedData [13:05:03]FM_MakeSignedData [13:05:03]SAM_PROTO_SignData [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 0D 01 02 [13:05:03]Write to MH i2c: E2 08 00 D0 08 80 0D 01 02 00 00 00 00 51 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 D0 08 00 90 00 4C [13:05:03]RAPDU: 90 00 [13:05:03]wFMCommunicate OK [13:05:03]wFMCommunicate request_size=255 [13:05:03]MH_SAM_APDU [13:05: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FF A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DF 02 00 35 04 06 00 B5 [13:05:03]Write to MH i2c: E2 02 01 D1 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FF A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DF 02 00 35 04 06 00 B5 00 00 E3 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 D1 08 00 90 00 4D [13:05:03]RAPDU: 90 00 [13:05:03]wFMCommunicate OK [13:05:03]wFMCommunicate request_size=10 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 0D 02 02 05 C8 C1 BB DD 1D [13:05:03]Write to MH i2c: E2 0D 00 D2 08 80 0D 02 02 05 00 C8 C1 BB DD 1D 00 00 9C [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 03 00 D2 08 00 90 00 4E [13:05:03]RAPDU: 90 00 [13:05:03]wFMCommunicate OK [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 0D 03 02 [13:05:03]Write to MH i2c: E2 08 00 D3 08 80 0D 03 02 00 00 00 00 56 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:05:03]OFD Sender: No OFD packet to send [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 0B 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 0B 00 D3 08 00 CA B7 76 1B 10 5D C4 E5 90 00 7F [13:05:03]RAPDU: CA B7 76 1B 10 5D C4 E5 90 00 [13:05:03]wFMCommunicate OK [13:05:03]SAM_PROTO_SignData done [13:05:03]FM_MakeSignedData done [13:05:03]CreateOFDProtocolMessage [13:05:03]wFMCommunicate request_size=4 [13:05:03]MH_SAM_APDU [13:05:03]CAPDU: 80 11 00 00 [13:05:03]Write to MH i2c: E2 08 00 D4 08 80 11 00 00 00 00 00 00 56 [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:03]Read from MH i2c: E2 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 17 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: E2 17 00 D4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [13:05:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:05:03]wFMCommunicate OK [13:05:03]CreateOFDProtocolMessage done [13:05:03]OFDSenderStorePacket 188274 [13:05:03]StoreOFDPacket docnum=188274 [13:05:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB C2 07 01 6E 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FF A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DF 02 00 35 04 06 00 B5 C8 C1 BB DD 1D CA B7 76 1B 10 5D C4 E5 [13:05:03]CheckFolder [13:05:03]dirname=/storage/ofd_packets [13:05:03]CheckFolder done [13:05:03]ProducePacketName [13:05:03]name=ofd_packets/00188274 [13:05:03]NVStorageSaveData ofd_packets/00188274 [13:05:03]File name is /storage/ofd_packets/00188274 [13:05:03]Write 301 bytes [13:05:03]NVStorageSaveData done [13:05:03]OFDSenderStorePacket done [13:05:03]KKMCreateOFDPacket done [13:05:03]NVStorageSaveData kkm_last_timestamp [13:05:03]File name is /storage/kkm_last_timestamp [13:05:03]Write 4 bytes [13:05:03]NVStorageSaveData done [13:05:03]ExternCall_PrintAddStr [13:05:03]wPrintStart [13:05:03]Write to MH i2c: 01 00 00 D5 08 DD [13:05:03]Write i2c OK [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 [13:05:03]MH_I2C_Read... [13:05:03]Read from MH i2c: 01 07 00 D5 08 00 00 00 00 00 FF 0F F2 [13:05:03]RasterBufferAndPrint [13:05:03]line Счет N : (1)210328 [13:05:03]line ИНН: 02508201610067 [13:05:03]line Контрольно-Кассовый Чек [13:05:03]line ПРОДАЖА [13:05:03]line ТРК (МРК, ГНК) : 32 [13:05:03]line Товар: 2710124130 [13:05:03]line Аи-92-К-3 [13:05:03]line 14.950 * 66.90 [13:05:03]line = 1000.16 [13:05:03]line НДС 12% НСП 1% [13:05:03]line > о реализуемом товаре [13:05:03]line ОКРУГЛЕНИЕ: -0.16 [13:05:03]line ИТОГО: 1000.00 [13:05:03]line Внесено: 1000.00 [13:05:03]line СДАЧА: 0.00 [13:05:03]line НСП 1% : 8.85 [13:05:03]line НДС 12% : 106.21 [13:05:03]line Наличными: 1000.00 [13:05:03]line Безнал.: 0.00 [13:05:03]line Место: АЗС № 86 "Партнер Нефть" [13:05:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:05:03]line СНО: Общий режим [13:05:03]line Чек 303 22.10.2024 13:05 [13:05:03]line Смена: 461 ФФД: 1.0 [13:05:03]line ЗНМ: 0300000155 [13:05:03]line РНМ: 0000000000100030 [13:05:03]line Версия ККМ: 001 [13:05:03]line ФМ: 0000000000965340 [13:05:03]line ФД: 188274 [13:05:03]line ФПД: 199873848401181 [13:05:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188274&fm=199873848401181&tin=02508201610067®Number=0000000000100030&sum=100000 [13:05:03]written 0, free lines is 4095 [13:05:03]OFD Sender: Processing packet 188274 [packets to send 1062, broken 1061] [13:05:03]ProducePacketName [13:05:03]name=ofd_packets/00188274 [13:05:03]OFD Sender: To server: pG, [13:05:03]CommunicateWithHost lk.salyk.kg:30040 [13:05:03]ConnectInit lk.salyk.kg [13:05:04]Connected sock=10 [13:05:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EB C2 07 01 6E 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 01 00 00 F4 03 04 00 FF A2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 DF 02 00 35 04 06 00 B5 C8 C1 BB DD 1D CA B7 76 1B 10 5D C4 E5 [13:05:04]Write to MH i2c: 01 00 00 00 09 09 [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: 01 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: 01 07 00 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 6C 0C 88 [13:05:04]RasterBufferAndPrint [13:05:04]line [13:05:04]line [13:05:04]line [13:05:04]line [13:05:04]line [13:05:04]written 0, free lines is 3184 [13:05:04]MH_Cut [13:05:04]Write to MH i2c: D1 01 00 07 09 01 E2 [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: D1 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: D1 01 00 [13:05:04]MH_I2C_Read... [13:05:04]Read from MH i2c: D1 01 00 07 09 00 E1 [13:05:04]Write to MH i2c: 01 00 00 08 09 11 [13:05:04]Write i2c OK [13:05:04]MH_I2C_Read... [13:05:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EE BF 47 00 4C 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 39 36 35 33 34 30 10 04 04 00 72 DF 02 00 F4 03 04 00 EC 4C 17 67 B6 04 01 00 00 EC 3B E7 AA 7E 45 EB C2 [13:05:04]CommunicateWithHost err = 0 [13:05:04]CheckOFDResponse [13:05:04]1017 (14) - 77093643461234 [13:05:04]1041 (16) - 0000000000965340 [13:05:04]1040 (4) - 188274 [13:05:04]1012 (4) - 22.10.2024 06:57 [13:05:04]1206 (1) - 0 [13:05:04]OFD Sender: Remove packet 188274 [13:05:04]ProducePacketName [13:05:04]name=ofd_packets/00188274 [13:05:04]NVStorageDeleteData [13:05:05]OFD Sender: No OFD packet to send [13:05:05]*** Cut start [13:05:05]*** Partial cut [13:05:05]*** CUTSNS_PIN = 1 [13:05:05]*** CUTSNS_PIN = 0 [13:05:05]*** Brake cut motor [13:05:06]Read from MH i2c: 01 [13:05:06]MH_I2C_Read... [13:05:06]*** Stop cut motor [13:05:06]*** Cut end [13:05:06]Read from MH i2c: 01 07 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: 01 07 00 08 09 00 00 00 00 00 FF 0F 26 [13:05:06]process_action close_receipt done [13:05:06]requested_data is exist [13:05:06]produce_requested_data [13:05:06]requested_item fm.sn is exist - process it [13:05:06]wFMCommunicate request_size=4 [13:05:06]MH_SAM_APDU [13:05:06]CAPDU: 80 11 00 00 [13:05:06]Write to MH i2c: E2 08 00 09 09 80 11 00 00 00 00 00 00 8C [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:05:06]Read from MH i2c: E2 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: E2 17 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: E2 17 00 09 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [13:05:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:05:06]wFMCommunicate OK [13:05:06]requested_item fd.num is exist - process it [13:05:06]SAM_PROTO_GetFieldsCounters [13:05:06]wFMCommunicate request_size=4 [13:05:06]MH_SAM_APDU [13:05:06]CAPDU: 80 13 00 00 [13:05:06]Write to MH i2c: E2 08 00 0A 09 80 13 00 00 00 00 00 00 8F [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:05:06]Read from MH i2c: E2 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: E2 62 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: E2 62 00 0A 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [13:05:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2F 01 00 00 5E 04 04 00 2F 01 00 00 57 04 04 00 30 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:05:06]wFMCommunicate OK [13:05:06]SAM_PROTO_GetFieldsCounters done [13:05:06]requested_item shift.num is exist - process it [13:05:06]requested_item shift.opened is exist - process it [13:05:06]req_shift_opened [13:05:06]FM_GetShiftState [13:05:06]SAM_PROTO_GetShiftState [13:05:06]wFMCommunicate request_size=4 [13:05:06]MH_SAM_APDU [13:05:06]CAPDU: 80 13 01 00 [13:05:06]Write to MH i2c: E2 08 00 0B 09 80 13 01 00 00 00 00 00 91 [13:05:06]Write i2c OK [13:05:06]MH_I2C_Read... [13:05:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:05:06]Read from MH i2c: E2 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: E2 0E 00 [13:05:06]MH_I2C_Read... [13:05:06]Read from MH i2c: E2 0E 00 0B 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 86 [13:05:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:05:06]wFMCommunicate OK [13:05:06]SAM_PROTO_GetShiftState done [13:05:06]FM_GetShiftState done [13:05:06]req_shift_opened done [13:05:06]requested_item shift.open_date is exist - process it [13:05:06]req_shift_open_date [13:05:06]req_shift_open_date done [13:05:06]produce_requested_data done [13:05:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188274,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:05:06]process_action_free close_receipt [13:05:06]json_value_free [13:05:06]json_value_free done [13:05:06]process_json_proto returns [13:05:06]Send response to host [13:05:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188274,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:05:06]free response buf [13:05:06]execute_script done [13:05:06]execute_script returns [13:05:06]free content buf [13:05:06]Sock 7.Close socket [13:05:06]Sock 7.Thread stoped [13:05:10]OFD Sender: No OFD packet to send [13:05:15]OFD Sender: No OFD packet to send [13:05:20]OFD Sender: No OFD packet to send [13:05:25]OFD Sender: No OFD packet to send [13:05:30]OFD Sender: No OFD packet to send [13:05:35]OFD Sender: No OFD packet to send [13:05:40]OFD Sender: No OFD packet to send [13:05:45]OFD Sender: No OFD packet to send [13:05:50]OFD Sender: No OFD packet to send [13:05:55]OFD Sender: No OFD packet to send [13:06:00]OFD Sender: No OFD packet to send [13:06:05]OFD Sender: No OFD packet to send [13:06:10]OFD Sender: No OFD packet to send [13:06:15]OFD Sender: No OFD packet to send [13:06:20]OFD Sender: No OFD packet to send [13:06:25]OFD Sender: No OFD packet to send [13:06:30]OFD Sender: No OFD packet to send [13:06:35]OFD Sender: No OFD packet to send [13:06:40]OFD Sender: No OFD packet to send [13:06:45]OFD Sender: No OFD packet to send [13:06:50]OFD Sender: No OFD packet to send [13:06:55]OFD Sender: No OFD packet to send [13:06:55]accept exits with 9 [13:06:55]New connection [13:06:55]New thread 3066916196 created [13:06:55]Thread 3067059556 joined [13:06:55]Waiting for new connection... [13:06:55] Sock 9.Parse request [13:06:55]Sock 9.Check first char [13:06:55]Sock 9.First char is OK [13:06:55]request: POST /json_proto HTTP/1.0 [13:06:55]Method: POST [13:06:55]URL: /json_proto [13:06:55]Method is POST - this is cgi request [13:06:55]url: /json_proto [13:06:55]query_string will be loaded in cgi processing [13:06:55]execute_cgi json_proto POST (null) [13:06:55]execute_cgi path=json_proto method=POST [13:06:55]POST find Content-Length [13:06:55]Host: 172.17.42.131:8080 [13:06:55]Content-Length: 677 [13:06:55]Content-Type: application/json [13:06:55] [13:06:55]POST finish read [13:06:55]Found Content-Length = 677 [13:06:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:55]execute_script... [13:06: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)210329", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:06:55]POST & json_proto [13:06:55]process_json_proto [13:06:55]json parsed OK: [13:06:55]protocol is kg_v1.0 [13:06:55]action value=close_receipt [13:06:55]process_action close_receipt [13:06:55]cmd_close_receipt [13:06:55]MH_GetDate [13:06:55]Write to MH i2c: F0 00 00 0C 09 04 [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: F0 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: F0 09 00 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: F0 09 00 0C 09 00 70 A3 17 67 A0 18 CA 66 86 [13:06:55]GetLastDocTimeStamp 1729602303 [13:06:55]current date 1729602416 [13:06:55]FM_GetShiftState [13:06:55]SAM_PROTO_GetShiftState [13:06:55]wFMCommunicate request_size=4 [13:06:55]MH_SAM_APDU [13:06:55]CAPDU: 80 13 01 00 [13:06:55]Write to MH i2c: E2 08 00 0D 09 80 13 01 00 00 00 00 00 93 [13:06:55]Write i2c OK [13:06:55]MH_I2C_Read... [13:06:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:55]Read from MH i2c: E2 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 0E 00 [13:06:55]MH_I2C_Read... [13:06:55]Read from MH i2c: E2 0E 00 0D 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 88 [13:06:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:06:55]wFMCommunicate OK [13:06:55]SAM_PROTO_GetShiftState done [13:06:55]FM_GetShiftState done [13:06:55]opened in 1729556094 [13:06:55]opened+sec_in_day 1729642494 [13:06:55]quantity*price = 40006 [13:06:55]sum+1 = 40007 [13:06:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 304 22.10.2024 13:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188275 ФПД: 99399524208061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188275&fm=99399524208061&tin=02508201610067®Number=0000000000100030&sum=40000 [13:06:56]StoreToDocumentArchive [13:06:56]shift 461 fd 188275 [13:06:56]save to /storage/0461/doc_00188275 [13:06:56]save last doc name /storage/0461/doc_00188275 to /storage/kkm_last_doc_name [13:06:56]save OK [13:06:56]Clear old archive folders... [13:06:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:06:56]tlvbuf is 01DFA0C0 [13:06:56]SAM_PROTO_ClearQueue [13:06:56]wFMCommunicate request_size=4 [13:06:56]MH_SAM_APDU [13:06:56]CAPDU: 80 09 00 00 [13:06:56]Write to MH i2c: E2 08 00 1A 09 80 09 00 00 00 00 00 00 95 [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:06:56]Read from MH i2c: E2 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 03 00 [13:06:56]MH_I2C_Read... [13:06:56]Read from MH i2c: E2 03 00 1A 09 00 90 00 97 [13:06:56]RAPDU: 90 00 [13:06:56]wFMCommunicate OK [13:06:56]SAM_PROTO_ClearQueue done [13:06:56]KKMCreateOFDPacket [13:06:56]OFDProtocolAddRootSTLVToBuf [13:06:56]FM_MakeSignedData [13:06:56]FM_MakeSignedData [13:06:56]SAM_PROTO_SignData [13:06:56]wFMCommunicate request_size=4 [13:06:56]MH_SAM_APDU [13:06:56]CAPDU: 80 0D 01 02 [13:06:56]Write to MH i2c: E2 08 00 1B 09 80 0D 01 02 00 00 00 00 9D [13:06:56]Write i2c OK [13:06:56]MH_I2C_Read... [13:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:06:57]Read from MH i2c: E2 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 03 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 03 00 1B 09 00 90 00 98 [13:06:57]RAPDU: 90 00 [13:06:57]wFMCommunicate OK [13:06:57]wFMCommunicate request_size=255 [13:06:57]MH_SAM_APDU [13:06: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 70 A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DF 02 00 35 04 06 00 5A [13:06:57]Write to MH i2c: E2 02 01 1C 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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 70 A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DF 02 00 35 04 06 00 5A 00 00 1D [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:57]Read from MH i2c: E2 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 03 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 03 00 1C 09 00 90 00 99 [13:06:57]RAPDU: 90 00 [13:06:57]wFMCommunicate OK [13:06:57]wFMCommunicate request_size=10 [13:06:57]MH_SAM_APDU [13:06:57]CAPDU: 80 0D 02 02 05 67 41 54 CD BD [13:06:57]Write to MH i2c: E2 0D 00 1D 09 80 0D 02 02 05 00 67 41 54 CD BD 00 00 30 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:06:57]Read from MH i2c: E2 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 03 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 03 00 1D 09 00 90 00 9A [13:06:57]RAPDU: 90 00 [13:06:57]wFMCommunicate OK [13:06:57]wFMCommunicate request_size=4 [13:06:57]MH_SAM_APDU [13:06:57]CAPDU: 80 0D 03 02 [13:06:57]Write to MH i2c: E2 08 00 1E 09 80 0D 03 02 00 00 00 00 A2 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:06:57]Read from MH i2c: E2 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 0B 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 0B 00 1E 09 00 CC 69 0F 19 BC 16 FF 86 90 00 57 [13:06:57]RAPDU: CC 69 0F 19 BC 16 FF 86 90 00 [13:06:57]wFMCommunicate OK [13:06:57]SAM_PROTO_SignData done [13:06:57]FM_MakeSignedData done [13:06:57]CreateOFDProtocolMessage [13:06:57]wFMCommunicate request_size=4 [13:06:57]MH_SAM_APDU [13:06:57]CAPDU: 80 11 00 00 [13:06:57]Write to MH i2c: E2 08 00 1F 09 80 11 00 00 00 00 00 00 A2 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:57]Read from MH i2c: E2 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 17 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: E2 17 00 1F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [13:06:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:06:57]wFMCommunicate OK [13:06:57]CreateOFDProtocolMessage done [13:06:57]OFDSenderStorePacket 188275 [13:06:57]StoreOFDPacket docnum=188275 [13:06:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 03 83 07 01 6C 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 70 A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DF 02 00 35 04 06 00 5A 67 41 54 CD BD CC 69 0F 19 BC 16 FF 86 [13:06:57]CheckFolder [13:06:57]dirname=/storage/ofd_packets [13:06:57]CheckFolder done [13:06:57]ProducePacketName [13:06:57]name=ofd_packets/00188275 [13:06:57]NVStorageSaveData ofd_packets/00188275 [13:06:57]File name is /storage/ofd_packets/00188275 [13:06:57]Write 301 bytes [13:06:57]NVStorageSaveData done [13:06:57]OFDSenderStorePacket done [13:06:57]KKMCreateOFDPacket done [13:06:57]NVStorageSaveData kkm_last_timestamp [13:06:57]File name is /storage/kkm_last_timestamp [13:06:57]Write 4 bytes [13:06:57]NVStorageSaveData done [13:06:57]ExternCall_PrintAddStr [13:06:57]wPrintStart [13:06:57]Write to MH i2c: 01 00 00 20 09 29 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 07 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 07 00 20 09 00 00 00 00 00 FF 0F 3E [13:06:57]RasterBufferAndPrint [13:06:57]line Счет N : (1)210329 [13:06:57]line ИНН: 02508201610067 [13:06:57]line Контрольно-Кассовый Чек [13:06:57]line ПРОДАЖА [13:06:57]line ТРК (МРК, ГНК) : 22 [13:06:57]line Товар: 2710124130 [13:06:57]line Аи-92-К-3 [13:06:57]line 5.980 * 66.90 [13:06:57]line = 400.06 [13:06:57]line НДС 12% НСП 1% [13:06:57]line > о реализуемом товаре [13:06:57]line ОКРУГЛЕНИЕ: -0.06 [13:06:57]line ИТОГО: 400.00 [13:06:57]line Внесено: 400.00 [13:06:57]line СДАЧА: 0.00 [13:06:57]line НСП 1% : 3.54 [13:06:57]line НДС 12% : 42.48 [13:06:57]line Наличными: 400.00 [13:06:57]line Безнал.: 0.00 [13:06:57]line Место: АЗС № 86 "Партнер Нефть" [13:06:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:06:57]line СНО: Общий режим [13:06:57]line Чек 304 22.10.2024 13:06 [13:06:57]line Смена: 461 ФФД: 1.0 [13:06:57]line ЗНМ: 0300000155 [13:06:57]line РНМ: 0000000000100030 [13:06:57]line Версия ККМ: 001 [13:06:57]line ФМ: 0000000000965340 [13:06:57]line ФД: 188275 [13:06:57]line ФПД: 99399524208061 [13:06:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188275&fm=99399524208061&tin=02508201610067®Number=0000000000100030&sum=40000 [13:06:57]written 0, free lines is 4095 [13:06:57]OFD Sender: Processing packet 188275 [packets to send 1062, broken 1061] [13:06:57]ProducePacketName [13:06:57]name=ofd_packets/00188275 [13:06:57]OFD Sender: To server: pG, [13:06:57]CommunicateWithHost lk.salyk.kg:30040 [13:06:57]ConnectInit lk.salyk.kg [13:06:57]Write to MH i2c: 01 00 00 4B 09 54 [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 07 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 72 0C D9 [13:06:57]RasterBufferAndPrint [13:06:57]line [13:06:57]line [13:06:57]line [13:06:57]line [13:06:57]line [13:06:57]written 0, free lines is 3187 [13:06:57]MH_Cut [13:06:57]Write to MH i2c: D1 01 00 52 09 01 2D [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: D1 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: D1 01 00 [13:06:57]MH_I2C_Read... [13:06:57]Read from MH i2c: D1 01 00 52 09 00 2C [13:06:57]Write to MH i2c: 01 00 00 53 09 5C [13:06:57]Write i2c OK [13:06:57]MH_I2C_Read... [13:06:59]*** Cut start [13:06:59]*** Partial cut [13:06:59]*** CUTSNS_PIN = 1 [13:06:59]*** CUTSNS_PIN = 0 [13:06:59]*** Brake cut motor [13:06:59]Read from MH i2c: 01 [13:06:59]MH_I2C_Read... [13:06:59]*** Stop cut motor [13:06:59]*** Cut end [13:06:59]Read from MH i2c: 01 07 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: 01 07 00 53 09 00 00 00 00 00 FF 0F 71 [13:06:59]process_action close_receipt done [13:06:59]requested_data is exist [13:06:59]produce_requested_data [13:06:59]requested_item fm.sn is exist - process it [13:06:59]wFMCommunicate request_size=4 [13:06:59]MH_SAM_APDU [13:06:59]CAPDU: 80 11 00 00 [13:06:59]Write to MH i2c: E2 08 00 54 09 80 11 00 00 00 00 00 00 D7 [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:06:59]Read from MH i2c: E2 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: E2 17 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: E2 17 00 54 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [13:06:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:06:59]wFMCommunicate OK [13:06:59]requested_item fd.num is exist - process it [13:06:59]SAM_PROTO_GetFieldsCounters [13:06:59]wFMCommunicate request_size=4 [13:06:59]MH_SAM_APDU [13:06:59]CAPDU: 80 13 00 00 [13:06:59]Write to MH i2c: E2 08 00 55 09 80 13 00 00 00 00 00 00 DA [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:06:59]Read from MH i2c: E2 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: E2 62 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: E2 62 00 55 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [13:06:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 30 01 00 00 5E 04 04 00 30 01 00 00 57 04 04 00 31 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:06:59]wFMCommunicate OK [13:06:59]SAM_PROTO_GetFieldsCounters done [13:06:59]requested_item shift.num is exist - process it [13:06:59]requested_item shift.opened is exist - process it [13:06:59]req_shift_opened [13:06:59]FM_GetShiftState [13:06:59]SAM_PROTO_GetShiftState [13:06:59]wFMCommunicate request_size=4 [13:06:59]MH_SAM_APDU [13:06:59]CAPDU: 80 13 01 00 [13:06:59]Write to MH i2c: E2 08 00 56 09 80 13 01 00 00 00 00 00 DC [13:06:59]Write i2c OK [13:06:59]MH_I2C_Read... [13:06:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:06:59]Read from MH i2c: E2 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: E2 0E 00 [13:06:59]MH_I2C_Read... [13:06:59]Read from MH i2c: E2 0E 00 56 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [13:06:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:06:59]wFMCommunicate OK [13:06:59]SAM_PROTO_GetShiftState done [13:06:59]FM_GetShiftState done [13:06:59]req_shift_opened done [13:06:59]requested_item shift.open_date is exist - process it [13:06:59]req_shift_open_date [13:06:59]req_shift_open_date done [13:06:59]produce_requested_data done [13:06:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188275,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:06:59]process_action_free close_receipt [13:06:59]json_value_free [13:06:59]json_value_free done [13:06:59]process_json_proto returns [13:06:59]Send response to host [13:06:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188275,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:06:59]free response buf [13:06:59]execute_script done [13:06:59]execute_script returns [13:06:59]free content buf [13:06:59]Sock 9.Close socket [13:06:59]Sock 9.Thread stoped [13:08:28]accept exits with 7 [13:08:28]New connection [13:08:28]New thread 3067059556 created [13:08:28]Thread 3066916196 joined [13:08:28]Waiting for new connection... [13:08:28] Sock 7.Parse request [13:08:28]Sock 7.Check first char [13:08:28]Sock 7.First char is OK [13:08:28]request: POST /json_proto HTTP/1.0 [13:08:28]Method: POST [13:08:28]URL: /json_proto [13:08:28]Method is POST - this is cgi request [13:08:28]url: /json_proto [13:08:28]query_string will be loaded in cgi processing [13:08:28]execute_cgi json_proto POST (null) [13:08:28]execute_cgi path=json_proto method=POST [13:08:28]POST find Content-Length [13:08:28]Host: 172.17.42.131:8080 [13:08:28]Content-Length: 688 [13:08:28]Content-Type: application/json [13:08:28] [13:08:28]POST finish read [13:08:28]Found Content-Length = 688 [13:08:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:28]execute_script... [13:08: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)210330", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:08:28]POST & json_proto [13:08:28]process_json_proto [13:08:28]json parsed OK: [13:08:28]protocol is kg_v1.0 [13:08:28]action value=close_receipt [13:08:28]process_action close_receipt [13:08:28]cmd_close_receipt [13:08:28]MH_GetDate [13:08:28]Write to MH i2c: F0 00 00 57 09 4F [13:08:28]Write i2c OK [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: F0 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: F0 09 00 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: F0 09 00 57 09 00 CD A3 17 67 A0 18 CA 66 2E [13:08:28]GetLastDocTimeStamp 1729602416 [13:08:28]current date 1729602509 [13:08:28]FM_GetShiftState [13:08:28]SAM_PROTO_GetShiftState [13:08:28]wFMCommunicate request_size=4 [13:08:28]MH_SAM_APDU [13:08:28]CAPDU: 80 13 01 00 [13:08:28]Write to MH i2c: E2 08 00 58 09 80 13 01 00 00 00 00 00 DE [13:08:28]Write i2c OK [13:08:28]MH_I2C_Read... [13:08:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:28]Read from MH i2c: E2 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: E2 0E 00 [13:08:28]MH_I2C_Read... [13:08:28]Read from MH i2c: E2 0E 00 58 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D3 [13:08:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:08:28]wFMCommunicate OK [13:08:28]SAM_PROTO_GetShiftState done [13:08:28]FM_GetShiftState done [13:08:28]opened in 1729556094 [13:08:28]opened+sec_in_day 1729642494 [13:08:28]quantity*price = 400050 [13:08:28]sum+1 = 400051 [13:08:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 305 22.10.2024 13:08 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188276 ФПД: 33860098500112 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130829&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188276&fm=33860098500112&tin=02508201610067®Number=0000000000100030&sum=400000 [13:08:29]StoreToDocumentArchive [13:08:29]shift 461 fd 188276 [13:08:29]save to /storage/0461/doc_00188276 [13:08:29]save last doc name /storage/0461/doc_00188276 to /storage/kkm_last_doc_name [13:08:29]save OK [13:08:29]Clear old archive folders... [13:08:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:08:29]tlvbuf is 01E60DA0 [13:08:29]SAM_PROTO_ClearQueue [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 09 00 00 [13:08:29]Write to MH i2c: E2 08 00 65 09 80 09 00 00 00 00 00 00 E0 [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 65 09 00 90 00 E2 [13:08:29]RAPDU: 90 00 [13:08:29]wFMCommunicate OK [13:08:29]SAM_PROTO_ClearQueue done [13:08:29]KKMCreateOFDPacket [13:08:29]OFDProtocolAddRootSTLVToBuf [13:08:29]FM_MakeSignedData [13:08:29]FM_MakeSignedData [13:08:29]SAM_PROTO_SignData [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 0D 01 02 [13:08:29]Write to MH i2c: E2 08 00 66 09 80 0D 01 02 00 00 00 00 E8 [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 66 09 00 90 00 E3 [13:08:29]RAPDU: 90 00 [13:08:29]wFMCommunicate OK [13:08:29]wFMCommunicate request_size=255 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CD A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DF 02 [13:08:29]Write to MH i2c: E2 02 01 67 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CD A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DF 02 00 00 AD [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 67 09 00 90 00 E4 [13:08:29]RAPDU: 90 00 [13:08:29]wFMCommunicate OK [13:08:29]wFMCommunicate request_size=16 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1E CB AB 24 A6 10 [13:08:29]Write to MH i2c: E2 13 00 68 09 80 0D 02 02 0B 00 00 35 04 06 00 1E CB AB 24 A6 10 00 00 AE [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 03 00 68 09 00 90 00 E5 [13:08:29]RAPDU: 90 00 [13:08:29]wFMCommunicate OK [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 0D 03 02 [13:08:29]Write to MH i2c: E2 08 00 69 09 80 0D 03 02 00 00 00 00 ED [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:08:29]Read from MH i2c: E2 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 0B 00 [13:08:29]MH_I2C_Read... [13:08:29]Read from MH i2c: E2 0B 00 69 09 00 E9 CD 7F 79 65 24 58 58 90 00 D5 [13:08:29]RAPDU: E9 CD 7F 79 65 24 58 58 90 00 [13:08:29]wFMCommunicate OK [13:08:29]SAM_PROTO_SignData done [13:08:29]FM_MakeSignedData done [13:08:29]CreateOFDProtocolMessage [13:08:29]wFMCommunicate request_size=4 [13:08:29]MH_SAM_APDU [13:08:29]CAPDU: 80 11 00 00 [13:08:29]Write to MH i2c: E2 08 00 6A 09 80 11 00 00 00 00 00 00 ED [13:08:29]Write i2c OK [13:08:29]MH_I2C_Read... [13:08:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:30]Read from MH i2c: E2 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 17 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: E2 17 00 6A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [13:08:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:08:30]wFMCommunicate OK [13:08:30]CreateOFDProtocolMessage done [13:08:30]OFDSenderStorePacket 188276 [13:08:30]StoreOFDPacket docnum=188276 [13:08:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DD 4D 0D 01 79 7B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CD A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DF 02 00 35 04 06 00 1E CB AB 24 A6 10 E9 CD 7F 79 65 24 58 58 [13:08:30]CheckFolder [13:08:30]dirname=/storage/ofd_packets [13:08:30]CheckFolder done [13:08:30]ProducePacketName [13:08:30]name=ofd_packets/00188276 [13:08:30]NVStorageSaveData ofd_packets/00188276 [13:08:30]File name is /storage/ofd_packets/00188276 [13:08:30]Write 307 bytes [13:08:30]NVStorageSaveData done [13:08:30]OFDSenderStorePacket done [13:08:30]KKMCreateOFDPacket done [13:08:30]NVStorageSaveData kkm_last_timestamp [13:08:30]File name is /storage/kkm_last_timestamp [13:08:30]Write 4 bytes [13:08:30]NVStorageSaveData done [13:08:30]ExternCall_PrintAddStr [13:08:30]wPrintStart [13:08:30]Write to MH i2c: 01 00 00 6B 09 74 [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 07 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 07 00 6B 09 00 00 00 00 00 FF 0F 89 [13:08:30]RasterBufferAndPrint [13:08:30]line Счет N : (1)210330 [13:08:30]line ИНН: 02508201610067 [13:08:30]line Контрольно-Кассовый Чек [13:08:30]line ПРОДАЖА [13:08:30]line ТРК (МРК, ГНК) : 41 [13:08:30]line Товар: 2710194210 [13:08:30]line D-ENERGY ДТ-К-5 [13:08:30]line 51.820 * 77.20 [13:08:30]line = 4000.50 [13:08:30]line НДС 12% НСП 1% [13:08:30]line > о реализуемом товаре [13:08:30]line ОКРУГЛЕНИЕ: -0.50 [13:08:30]line ИТОГО: 4000.00 [13:08:30]line Внесено: 4000.00 [13:08:30]line СДАЧА: 0.00 [13:08:30]line НСП 1% : 35.40 [13:08:30]line НДС 12% : 424.83 [13:08:30]line Наличными: 4000.00 [13:08:30]line Безнал.: 0.00 [13:08:30]line Место: АЗС № 86 "Партнер Нефть" [13:08:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:08:30]line СНО: Общий режим [13:08:30]line Чек 305 22.10.2024 13:08 [13:08:30]line Смена: 461 ФФД: 1.0 [13:08:30]line ЗНМ: 0300000155 [13:08:30]line РНМ: 0000000000100030 [13:08:30]line Версия ККМ: 001 [13:08:30]line ФМ: 0000000000965340 [13:08:30]line ФД: 188276 [13:08:30]line ФПД: 33860098500112 [13:08:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130829&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188276&fm=33860098500112&tin=02508201610067®Number=0000000000100030&sum=400000 [13:08:30]written 0, free lines is 4095 [13:08:30]Write to MH i2c: 01 00 00 96 09 9F [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 07 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 6F 0C 21 [13:08:30]RasterBufferAndPrint [13:08:30]line [13:08:30]line [13:08:30]line [13:08:30]line [13:08:30]line [13:08:30]written 0, free lines is 3185 [13:08:30]MH_Cut [13:08:30]Write to MH i2c: D1 01 00 9D 09 01 78 [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: D1 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: D1 01 00 [13:08:30]MH_I2C_Read... [13:08:30]Read from MH i2c: D1 01 00 9D 09 00 77 [13:08:30]Write to MH i2c: 01 00 00 9E 09 A7 [13:08:30]Write i2c OK [13:08:30]MH_I2C_Read... [13:08:31]*** Cut start [13:08:31]*** Partial cut [13:08:31]*** CUTSNS_PIN = 1 [13:08:32]*** CUTSNS_PIN = 0 [13:08:32]*** Brake cut motor [13:08:32]Read from MH i2c: 01 [13:08:32]MH_I2C_Read... [13:08:32]*** Stop cut motor [13:08:32]*** Cut end [13:08:32]Read from MH i2c: 01 07 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: 01 07 00 9E 09 00 00 00 00 00 FF 0F BC [13:08:32]process_action close_receipt done [13:08:32]requested_data is exist [13:08:32]produce_requested_data [13:08:32]requested_item fm.sn is exist - process it [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 11 00 00 [13:08:32]Write to MH i2c: E2 08 00 9F 09 80 11 00 00 00 00 00 00 22 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 17 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 17 00 9F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 70 [13:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:08:32]wFMCommunicate OK [13:08:32]requested_item fd.num is exist - process it [13:08:32]SAM_PROTO_GetFieldsCounters [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 13 00 00 [13:08:32]Write to MH i2c: E2 08 00 A0 09 80 13 00 00 00 00 00 00 25 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 62 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 62 00 A0 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 E5 [13:08:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 31 01 00 00 5E 04 04 00 31 01 00 00 57 04 04 00 32 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:08:32]wFMCommunicate OK [13:08:32]SAM_PROTO_GetFieldsCounters done [13:08:32]requested_item shift.num is exist - process it [13:08:32]requested_item shift.opened is exist - process it [13:08:32]req_shift_opened [13:08:32]FM_GetShiftState [13:08:32]SAM_PROTO_GetShiftState [13:08:32]wFMCommunicate request_size=4 [13:08:32]MH_SAM_APDU [13:08:32]CAPDU: 80 13 01 00 [13:08:32]Write to MH i2c: E2 08 00 A1 09 80 13 01 00 00 00 00 00 27 [13:08:32]Write i2c OK [13:08:32]MH_I2C_Read... [13:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:08:32]Read from MH i2c: E2 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 0E 00 [13:08:32]MH_I2C_Read... [13:08:32]Read from MH i2c: E2 0E 00 A1 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [13:08:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:08:32]wFMCommunicate OK [13:08:32]SAM_PROTO_GetShiftState done [13:08:32]FM_GetShiftState done [13:08:32]req_shift_opened done [13:08:32]requested_item shift.open_date is exist - process it [13:08:32]req_shift_open_date [13:08:32]req_shift_open_date done [13:08:32]produce_requested_data done [13:08:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188276,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:08:32]process_action_free close_receipt [13:08:32]json_value_free [13:08:32]json_value_free done [13:08:32]process_json_proto returns [13:08:32]Send response to host [13:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188276,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:08:32]free response buf [13:08:32]execute_script done [13:08:32]execute_script returns [13:08:32]free content buf [13:08:32]Sock 7.Close socket [13:08:32]Sock 7.Thread stoped [13:09:07]ConnectInit Can't connect to host [13:09:07]CommunicateWithHost connect error [13:09:07]CommunicateWithHost err = -1 [13:09:07]OFD Sender: Server communicate error [13:09:07]OFD Sender: Processing packet 188275 [packets to send 1063, broken 1061] [13:09:07]ProducePacketName [13:09:07]name=ofd_packets/00188275 [13:09:07]OFD Sender: To server: pG, [13:09:07]CommunicateWithHost lk.salyk.kg:30040 [13:09:07]ConnectInit lk.salyk.kg [13:09:07]Connected sock=7 [13:09:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 03 83 07 01 6C 91 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 01 00 00 F4 03 04 00 70 A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DF 02 00 35 04 06 00 5A 67 41 54 CD BD CC 69 0F 19 BC 16 FF 86 [13:09:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 6F 47 00 28 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 DF 02 00 F4 03 04 00 DF 4D 17 67 B6 04 01 00 00 96 AF 6A 76 F9 93 10 38 [13:09:08]CommunicateWithHost err = 0 [13:09:08]CheckOFDResponse [13:09:08]1017 (14) - 77093643461234 [13:09:08]1041 (16) - 0000000000965340 [13:09:08]1040 (4) - 188275 [13:09:08]1012 (4) - 22.10.2024 07:01 [13:09:08]1206 (1) - 0 [13:09:08]OFD Sender: Remove packet 188275 [13:09:08]ProducePacketName [13:09:08]name=ofd_packets/00188275 [13:09:08]NVStorageDeleteData [13:09:08]OFD Sender: Processing packet 188276 [packets to send 1062, broken 1061] [13:09:08]ProducePacketName [13:09:08]name=ofd_packets/00188276 [13:09:08]OFD Sender: To server: pG, [13:09:08]CommunicateWithHost lk.salyk.kg:30040 [13:09:08]ConnectInit lk.salyk.kg [13:09:08]Connected sock=7 [13:09:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 DD 4D 0D 01 79 7B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 01 00 00 F4 03 04 00 CD A3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DF 02 00 35 04 06 00 1E CB AB 24 A6 10 E9 CD 7F 79 65 24 58 58 [13:09:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 94 72 47 00 27 DE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 DF 02 00 F4 03 04 00 E1 4D 17 67 B6 04 01 00 00 08 C4 08 15 7A DD B8 3D [13:09:09]CommunicateWithHost err = 0 [13:09:09]CheckOFDResponse [13:09:09]1017 (14) - 77093643461234 [13:09:09]1041 (16) - 0000000000965340 [13:09:09]1040 (4) - 188276 [13:09:09]1012 (4) - 22.10.2024 07:01 [13:09:09]1206 (1) - 0 [13:09:09]OFD Sender: Remove packet 188276 [13:09:09]ProducePacketName [13:09:09]name=ofd_packets/00188276 [13:09:09]NVStorageDeleteData [13:09:09]OFD Sender: No OFD packet to send [13:09:14]OFD Sender: No OFD packet to send [13:09:19]OFD Sender: No OFD packet to send [13:09:24]OFD Sender: No OFD packet to send [13:09:29]OFD Sender: No OFD packet to send [13:09:33]accept exits with 9 [13:09:33]New connection [13:09:33]New thread 3066916196 created [13:09:33]Thread 3067059556 joined [13:09:33]Waiting for new connection... [13:09:33] Sock 9.Parse request [13:09:33]Sock 9.Check first char [13:09:33]Sock 9.First char is OK [13:09:33]request: POST /json_proto HTTP/1.0 [13:09:33]Method: POST [13:09:33]URL: /json_proto [13:09:33]Method is POST - this is cgi request [13:09:33]url: /json_proto [13:09:33]query_string will be loaded in cgi processing [13:09:33]execute_cgi json_proto POST (null) [13:09:33]execute_cgi path=json_proto method=POST [13:09:33]POST find Content-Length [13:09:33]Host: 172.17.42.131:8080 [13:09:33]Content-Length: 684 [13:09:33]Content-Type: application/json [13:09:33] [13:09:33]POST finish read [13:09:33]Found Content-Length = 684 [13:09:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:33]execute_script... [13:09: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)210331", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:09:33]POST & json_proto [13:09:33]process_json_proto [13:09:33]json parsed OK: [13:09:33]protocol is kg_v1.0 [13:09:33]action value=close_receipt [13:09:33]process_action close_receipt [13:09:33]cmd_close_receipt [13:09:33]MH_GetDate [13:09:33]Write to MH i2c: F0 00 00 A2 09 9A [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: F0 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: F0 09 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: F0 09 00 A2 09 00 0E A4 17 67 A0 18 CA 66 BB [13:09:33]GetLastDocTimeStamp 1729602509 [13:09:33]current date 1729602574 [13:09:33]FM_GetShiftState [13:09:33]SAM_PROTO_GetShiftState [13:09:33]wFMCommunicate request_size=4 [13:09:33]MH_SAM_APDU [13:09:33]CAPDU: 80 13 01 00 [13:09:33]Write to MH i2c: E2 08 00 A3 09 80 13 01 00 00 00 00 00 29 [13:09:33]Write i2c OK [13:09:33]MH_I2C_Read... [13:09:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:33]Read from MH i2c: E2 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 0E 00 [13:09:33]MH_I2C_Read... [13:09:33]Read from MH i2c: E2 0E 00 A3 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1E [13:09:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:09:33]wFMCommunicate OK [13:09:33]SAM_PROTO_GetShiftState done [13:09:33]FM_GetShiftState done [13:09:33]opened in 1729556094 [13:09:33]opened+sec_in_day 1729642494 [13:09:33]quantity*price = 80056 [13:09:33]sum+1 = 80057 [13:09:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 306 22.10.2024 13:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188277 ФПД: 218033412323937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130934&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188277&fm=218033412323937&tin=02508201610067®Number=0000000000100030&sum=80000 [13:09:34]StoreToDocumentArchive [13:09:34]shift 461 fd 188277 [13:09:34]save to /storage/0461/doc_00188277 [13:09:34]save last doc name /storage/0461/doc_00188277 to /storage/kkm_last_doc_name [13:09:34]save OK [13:09:34]Clear old archive folders... [13:09:34]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:09:34]tlvbuf is 01DFA200 [13:09:34]SAM_PROTO_ClearQueue [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 09 00 00 [13:09:34]Write to MH i2c: E2 08 00 B0 09 80 09 00 00 00 00 00 00 2B [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 B0 09 00 90 00 2D [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]SAM_PROTO_ClearQueue done [13:09:34]KKMCreateOFDPacket [13:09:34]OFDProtocolAddRootSTLVToBuf [13:09:34]FM_MakeSignedData [13:09:34]FM_MakeSignedData [13:09:34]SAM_PROTO_SignData [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 01 02 [13:09:34]Write to MH i2c: E2 08 00 B1 09 80 0D 01 02 00 00 00 00 33 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 B1 09 00 90 00 2E [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]wFMCommunicate request_size=255 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 0E A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DF 02 [13:09:34]Write to MH i2c: E2 02 01 B2 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 0E A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DF 02 00 00 A4 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 B2 09 00 90 00 2F [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]wFMCommunicate request_size=16 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C6 4C DC 17 3A 61 [13:09:34]Write to MH i2c: E2 13 00 B3 09 80 0D 02 02 0B 00 00 35 04 06 00 C6 4C DC 17 3A 61 00 00 2B [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]OFD Sender: No OFD packet to send [13:09:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 03 00 B3 09 00 90 00 30 [13:09:34]RAPDU: 90 00 [13:09:34]wFMCommunicate OK [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 0D 03 02 [13:09:34]Write to MH i2c: E2 08 00 B4 09 80 0D 03 02 00 00 00 00 38 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 0B 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 0B 00 B4 09 00 33 84 2A C5 2F 81 9A 82 90 00 AB [13:09:34]RAPDU: 33 84 2A C5 2F 81 9A 82 90 00 [13:09:34]wFMCommunicate OK [13:09:34]SAM_PROTO_SignData done [13:09:34]FM_MakeSignedData done [13:09:34]CreateOFDProtocolMessage [13:09:34]wFMCommunicate request_size=4 [13:09:34]MH_SAM_APDU [13:09:34]CAPDU: 80 11 00 00 [13:09:34]Write to MH i2c: E2 08 00 B5 09 80 11 00 00 00 00 00 00 38 [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:34]Read from MH i2c: E2 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 17 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: E2 17 00 B5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [13:09:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:09:34]wFMCommunicate OK [13:09:34]CreateOFDProtocolMessage done [13:09:34]OFDSenderStorePacket 188277 [13:09:34]StoreOFDPacket docnum=188277 [13:09:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1A 01 0D 01 26 12 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 0E A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DF 02 00 35 04 06 00 C6 4C DC 17 3A 61 33 84 2A C5 2F 81 9A 82 [13:09:34]CheckFolder [13:09:34]dirname=/storage/ofd_packets [13:09:34]CheckFolder done [13:09:34]ProducePacketName [13:09:34]name=ofd_packets/00188277 [13:09:34]NVStorageSaveData ofd_packets/00188277 [13:09:34]File name is /storage/ofd_packets/00188277 [13:09:34]Write 307 bytes [13:09:34]NVStorageSaveData done [13:09:34]OFDSenderStorePacket done [13:09:34]KKMCreateOFDPacket done [13:09:34]NVStorageSaveData kkm_last_timestamp [13:09:34]File name is /storage/kkm_last_timestamp [13:09:34]Write 4 bytes [13:09:34]NVStorageSaveData done [13:09:34]ExternCall_PrintAddStr [13:09:34]wPrintStart [13:09:34]Write to MH i2c: 01 00 00 B6 09 BF [13:09:34]Write i2c OK [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: 01 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: 01 07 00 [13:09:34]MH_I2C_Read... [13:09:34]Read from MH i2c: 01 07 00 B6 09 00 00 00 00 00 FF 0F D4 [13:09:34]RasterBufferAndPrint [13:09:34]line Счет N : (1)210331 [13:09:34]line ИНН: 02508201610067 [13:09:34]line Контрольно-Кассовый Чек [13:09:34]line ПРОДАЖА [13:09:34]line ТРК (МРК, ГНК) : 11 [13:09:34]line Товар: 2710194210 [13:09:34]line D-ENERGY ДТ-К-5 [13:09:34]line 10.370 * 77.20 [13:09:34]line = 800.56 [13:09:34]line НДС 12% НСП 1% [13:09:34]line > о реализуемом товаре [13:09:34]line ОКРУГЛЕНИЕ: -0.56 [13:09:34]line ИТОГО: 800.00 [13:09:34]line Внесено: 800.00 [13:09:34]line СДАЧА: 0.00 [13:09:34]line НСП 1% : 7.08 [13:09:34]line НДС 12% : 85.01 [13:09:34]line Наличными: 800.00 [13:09:34]line Безнал.: 0.00 [13:09:34]line Место: АЗС № 86 "Партнер Нефть" [13:09:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:09:34]line СНО: Общий режим [13:09:34]line Чек 306 22.10.2024 13:09 [13:09:34]line Смена: 461 ФФД: 1.0 [13:09:34]line ЗНМ: 0300000155 [13:09:34]line РНМ: 0000000000100030 [13:09:34]line Версия ККМ: 001 [13:09:34]line ФМ: 0000000000965340 [13:09:34]line ФД: 188277 [13:09:34]line ФПД: 218033412323937 [13:09:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T130934&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188277&fm=218033412323937&tin=02508201610067®Number=0000000000100030&sum=80000 [13:09:34]written 0, free lines is 4095 [13:09:35]OFD Sender: Processing packet 188277 [packets to send 1062, broken 1061] [13:09:35]ProducePacketName [13:09:35]name=ofd_packets/00188277 [13:09:35]OFD Sender: To server: pG, [13:09:35]CommunicateWithHost lk.salyk.kg:30040 [13:09:35]ConnectInit lk.salyk.kg [13:09:35]Connected sock=7 [13:09:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1A 01 0D 01 26 12 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 01 00 00 F4 03 04 00 0E A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DF 02 00 35 04 06 00 C6 4C DC 17 3A 61 33 84 2A C5 2F 81 9A 82 [13:09:35]Write to MH i2c: 01 00 00 E1 09 EA [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 07 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: 01 07 00 E1 09 00 00 00 00 00 6C 0C 69 [13:09:35]RasterBufferAndPrint [13:09:35]line [13:09:35]line [13:09:35]line [13:09:35]line [13:09:35]line [13:09:35]written 0, free lines is 3183 [13:09:35]MH_Cut [13:09:35]Write to MH i2c: D1 01 00 E8 09 01 C3 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: D1 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: D1 01 00 [13:09:35]MH_I2C_Read... [13:09:35]Read from MH i2c: D1 01 00 E8 09 00 C2 [13:09:35]Write to MH i2c: 01 00 00 E9 09 F2 [13:09:35]Write i2c OK [13:09:35]MH_I2C_Read... [13:09:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7B 86 47 00 15 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 DF 02 00 F4 03 04 00 FB 4D 17 67 B6 04 01 00 00 25 51 04 11 1E A5 B4 42 [13:09:35]CommunicateWithHost err = 0 [13:09:35]CheckOFDResponse [13:09:35]1017 (14) - 77093643461234 [13:09:35]1041 (16) - 0000000000965340 [13:09:35]1040 (4) - 188277 [13:09:35]1012 (4) - 22.10.2024 07:02 [13:09:35]1206 (1) - 0 [13:09:35]OFD Sender: Remove packet 188277 [13:09:35]ProducePacketName [13:09:35]name=ofd_packets/00188277 [13:09:35]NVStorageDeleteData [13:09:36]OFD Sender: No OFD packet to send [13:09:36]*** Cut start [13:09:36]*** Partial cut [13:09:36]*** CUTSNS_PIN = 1 [13:09:36]*** CUTSNS_PIN = 0 [13:09:36]*** Brake cut motor [13:09:37]Read from MH i2c: 01 [13:09:37]MH_I2C_Read... [13:09:37]*** Stop cut motor [13:09:37]*** Cut end [13:09:37]Read from MH i2c: 01 07 00 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: 01 07 00 E9 09 00 00 00 00 00 FF 0F 07 [13:09:37]process_action close_receipt done [13:09:37]requested_data is exist [13:09:37]produce_requested_data [13:09:37]requested_item fm.sn is exist - process it [13:09:37]wFMCommunicate request_size=4 [13:09:37]MH_SAM_APDU [13:09:37]CAPDU: 80 11 00 00 [13:09:37]Write to MH i2c: E2 08 00 EA 09 80 11 00 00 00 00 00 00 6D [13:09:37]Write i2c OK [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 [13:09:37]MH_I2C_Read... [13:09:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:09:37]Read from MH i2c: E2 17 00 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 17 00 EA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BB [13:09:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:09:37]wFMCommunicate OK [13:09:37]requested_item fd.num is exist - process it [13:09:37]SAM_PROTO_GetFieldsCounters [13:09:37]wFMCommunicate request_size=4 [13:09:37]MH_SAM_APDU [13:09:37]CAPDU: 80 13 00 00 [13:09:37]Write to MH i2c: E2 08 00 EB 09 80 13 00 00 00 00 00 00 70 [13:09:37]Write i2c OK [13:09:37]MH_I2C_Read... [13:09:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:09:37]Read from MH i2c: E2 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 62 00 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 62 00 EB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 34 [13:09:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 32 01 00 00 5E 04 04 00 32 01 00 00 57 04 04 00 33 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:09:37]wFMCommunicate OK [13:09:37]SAM_PROTO_GetFieldsCounters done [13:09:37]requested_item shift.num is exist - process it [13:09:37]requested_item shift.opened is exist - process it [13:09:37]req_shift_opened [13:09:37]FM_GetShiftState [13:09:37]SAM_PROTO_GetShiftState [13:09:37]wFMCommunicate request_size=4 [13:09:37]MH_SAM_APDU [13:09:37]CAPDU: 80 13 01 00 [13:09:37]Write to MH i2c: E2 08 00 EC 09 80 13 01 00 00 00 00 00 72 [13:09:37]Write i2c OK [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 [13:09:37]MH_I2C_Read... [13:09:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:09:37]Read from MH i2c: E2 0E 00 [13:09:37]MH_I2C_Read... [13:09:37]Read from MH i2c: E2 0E 00 EC 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [13:09:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:09:37]wFMCommunicate OK [13:09:37]SAM_PROTO_GetShiftState done [13:09:37]FM_GetShiftState done [13:09:37]req_shift_opened done [13:09:37]requested_item shift.open_date is exist - process it [13:09:37]req_shift_open_date [13:09:37]req_shift_open_date done [13:09:37]produce_requested_data done [13:09:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188277,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:09:37]process_action_free close_receipt [13:09:37]json_value_free [13:09:37]json_value_free done [13:09:37]process_json_proto returns [13:09:37]Send response to host [13:09:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188277,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:09:37]free response buf [13:09:37]execute_script done [13:09:37]execute_script returns [13:09:37]free content buf [13:09:37]Sock 9.Close socket [13:09:37]Sock 9.Thread stoped [13:09:41]OFD Sender: No OFD packet to send [13:09:46]OFD Sender: No OFD packet to send [13:09:51]OFD Sender: No OFD packet to send [13:09:56]OFD Sender: No OFD packet to send [13:10:01]OFD Sender: No OFD packet to send [13:10:04]accept exits with 10 [13:10:04]New connection [13:10:04]New thread 3067059556 created [13:10:04]Thread 3066916196 joined [13:10:04]Waiting for new connection... [13:10:04] Sock 10.Parse request [13:10:04]Sock 10.Check first char [13:10:04]Sock 10.First char is OK [13:10:04]request: POST /json_proto HTTP/1.0 [13:10:04]Method: POST [13:10:04]URL: /json_proto [13:10:04]Method is POST - this is cgi request [13:10:04]url: /json_proto [13:10:04]query_string will be loaded in cgi processing [13:10:04]execute_cgi json_proto POST (null) [13:10:04]execute_cgi path=json_proto method=POST [13:10:04]POST find Content-Length [13:10:04]Host: 172.17.42.131:8080 [13:10:04]Content-Length: 682 [13:10:04]Content-Type: application/json [13:10:04] [13:10:04]POST finish read [13:10:04]Found Content-Length = 682 [13:10:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:04]execute_script... [13:10: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)210333", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:04]POST & json_proto [13:10:04]process_json_proto [13:10:04]json parsed OK: [13:10:04]protocol is kg_v1.0 [13:10:04]action value=close_receipt [13:10:04]process_action close_receipt [13:10:04]cmd_close_receipt [13:10:04]MH_GetDate [13:10:04]Write to MH i2c: F0 00 00 ED 09 E5 [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: F0 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: F0 09 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: F0 09 00 ED 09 00 2D A4 17 67 A0 18 CA 66 25 [13:10:04]GetLastDocTimeStamp 1729602574 [13:10:04]current date 1729602605 [13:10:04]FM_GetShiftState [13:10:04]SAM_PROTO_GetShiftState [13:10:04]wFMCommunicate request_size=4 [13:10:04]MH_SAM_APDU [13:10:04]CAPDU: 80 13 01 00 [13:10:04]Write to MH i2c: E2 08 00 EE 09 80 13 01 00 00 00 00 00 74 [13:10:04]Write i2c OK [13:10:04]MH_I2C_Read... [13:10:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:04]Read from MH i2c: E2 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 0E 00 [13:10:04]MH_I2C_Read... [13:10:04]Read from MH i2c: E2 0E 00 EE 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 69 [13:10:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:10:04]wFMCommunicate OK [13:10:04]SAM_PROTO_GetShiftState done [13:10:04]FM_GetShiftState done [13:10:04]opened in 1729556094 [13:10:04]opened+sec_in_day 1729642494 [13:10:04]quantity*price = 100015 [13:10:04]sum+1 = 100017 [13:10:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 307 22.10.2024 13:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188278 ФПД: 37966766551222 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188278&fm=37966766551222&tin=02508201610067®Number=0000000000100030&sum=100000 [13:10:05]StoreToDocumentArchive [13:10:05]shift 461 fd 188278 [13:10:05]save to /storage/0461/doc_00188278 [13:10:05]save last doc name /storage/0461/doc_00188278 to /storage/kkm_last_doc_name [13:10:05]save OK [13:10:05]Clear old archive folders... [13:10:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:05]tlvbuf is 01E06490 [13:10:05]SAM_PROTO_ClearQueue [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 09 00 00 [13:10:05]Write to MH i2c: E2 08 00 FB 09 80 09 00 00 00 00 00 00 76 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 FB 09 00 90 00 78 [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]SAM_PROTO_ClearQueue done [13:10:05]KKMCreateOFDPacket [13:10:05]OFDProtocolAddRootSTLVToBuf [13:10:05]FM_MakeSignedData [13:10:05]FM_MakeSignedData [13:10:05]SAM_PROTO_SignData [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 0D 01 02 [13:10:05]Write to MH i2c: E2 08 00 FC 09 80 0D 01 02 00 00 00 00 7E [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 FC 09 00 90 00 79 [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]wFMCommunicate request_size=255 [13:10:05]MH_SAM_APDU [13:10: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2D A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DF 02 00 35 04 06 00 22 [13:10:05]Write to MH i2c: E2 02 01 FD 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2D A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DF 02 00 35 04 06 00 22 00 00 B5 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 FD 09 00 90 00 7A [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]wFMCommunicate request_size=10 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 0D 02 02 05 87 D3 A2 30 B6 [13:10:05]Write to MH i2c: E2 0D 00 FE 09 80 0D 02 02 05 00 87 D3 A2 30 B6 00 00 6D [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 03 00 FE 09 00 90 00 7B [13:10:05]RAPDU: 90 00 [13:10:05]wFMCommunicate OK [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 0D 03 02 [13:10:05]Write to MH i2c: E2 08 00 FF 09 80 0D 03 02 00 00 00 00 83 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:05]Read from MH i2c: E2 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 0B 00 [13:10:05]MH_I2C_Read... [13:10:05]Read from MH i2c: E2 0B 00 FF 09 00 CB AC EA 5B 12 93 35 8B 90 00 A5 [13:10:05]RAPDU: CB AC EA 5B 12 93 35 8B 90 00 [13:10:05]wFMCommunicate OK [13:10:05]SAM_PROTO_SignData done [13:10:05]FM_MakeSignedData done [13:10:05]CreateOFDProtocolMessage [13:10:05]wFMCommunicate request_size=4 [13:10:05]MH_SAM_APDU [13:10:05]CAPDU: 80 11 00 00 [13:10:05]Write to MH i2c: E2 08 00 00 0A 80 11 00 00 00 00 00 00 84 [13:10:05]Write i2c OK [13:10:05]MH_I2C_Read... [13:10:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:06]Read from MH i2c: E2 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 17 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: E2 17 00 00 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [13:10:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:10:06]wFMCommunicate OK [13:10:06]CreateOFDProtocolMessage done [13:10:06]OFDSenderStorePacket 188278 [13:10:06]StoreOFDPacket docnum=188278 [13:10:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 30 92 07 01 08 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2D A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DF 02 00 35 04 06 00 22 87 D3 A2 30 B6 CB AC EA 5B 12 93 35 8B [13:10:06]CheckFolder [13:10:06]dirname=/storage/ofd_packets [13:10:06]CheckFolder done [13:10:06]ProducePacketName [13:10:06]name=ofd_packets/00188278 [13:10:06]NVStorageSaveData ofd_packets/00188278 [13:10:06]File name is /storage/ofd_packets/00188278 [13:10:06]Write 301 bytes [13:10:06]NVStorageSaveData done [13:10:06]OFDSenderStorePacket done [13:10:06]KKMCreateOFDPacket done [13:10:06]NVStorageSaveData kkm_last_timestamp [13:10:06]File name is /storage/kkm_last_timestamp [13:10:06]Write 4 bytes [13:10:06]NVStorageSaveData done [13:10:06]ExternCall_PrintAddStr [13:10:06]wPrintStart [13:10:06]Write to MH i2c: 01 00 00 01 0A 0B [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 01 0A 00 00 00 00 00 FF 0F 20 [13:10:06]RasterBufferAndPrint [13:10:06]line Счет N : (1)210333 [13:10:06]line ИНН: 02508201610067 [13:10:06]line Контрольно-Кассовый Чек [13:10:06]line ПРОДАЖА [13:10:06]line ТРК (МРК, ГНК) : 32 [13:10:06]line Товар: 2710124130 [13:10:06]line Аи-92-К-3 [13:10:06]line 14.950 * 66.90 [13:10:06]line = 1000.16 [13:10:06]line НДС 12% НСП 1% [13:10:06]line > о реализуемом товаре [13:10:06]line ОКРУГЛЕНИЕ: -0.16 [13:10:06]line ИТОГО: 1000.00 [13:10:06]line Внесено: 1000.00 [13:10:06]line СДАЧА: 0.00 [13:10:06]line НСП 1% : 8.85 [13:10:06]line НДС 12% : 106.21 [13:10:06]line Наличными: 1000.00 [13:10:06]line Безнал.: 0.00 [13:10:06]line Место: АЗС № 86 "Партнер Нефть" [13:10:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:10:06]line СНО: Общий режим [13:10:06]line Чек 307 22.10.2024 13:10 [13:10:06]line Смена: 461 ФФД: 1.0 [13:10:06]line ЗНМ: 0300000155 [13:10:06]line РНМ: 0000000000100030 [13:10:06]line Версия ККМ: 001 [13:10:06]line ФМ: 0000000000965340 [13:10:06]line ФД: 188278 [13:10:06]line ФПД: 37966766551222 [13:10:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131005&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188278&fm=37966766551222&tin=02508201610067®Number=0000000000100030&sum=100000 [13:10:06]written 0, free lines is 4095 [13:10:06]OFD Sender: Processing packet 188278 [packets to send 1062, broken 1061] [13:10:06]ProducePacketName [13:10:06]name=ofd_packets/00188278 [13:10:06]OFD Sender: To server: pG, [13:10:06]CommunicateWithHost lk.salyk.kg:30040 [13:10:06]ConnectInit lk.salyk.kg [13:10:06]Connected sock=9 [13:10:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 30 92 07 01 08 34 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 01 00 00 F4 03 04 00 2D A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DF 02 00 35 04 06 00 22 87 D3 A2 30 B6 CB AC EA 5B 12 93 35 8B [13:10:06]Write to MH i2c: 01 00 00 2C 0A 36 [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: 01 07 00 2C 0A 00 00 00 00 00 71 0C BA [13:10:06]RasterBufferAndPrint [13:10:06]line [13:10:06]line [13:10:06]line [13:10:06]line [13:10:06]line [13:10:06]written 0, free lines is 3187 [13:10:06]MH_Cut [13:10:06]Write to MH i2c: D1 01 00 33 0A 01 0F [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: D1 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: D1 01 00 [13:10:06]MH_I2C_Read... [13:10:06]Read from MH i2c: D1 01 00 33 0A 00 0E [13:10:06]Write to MH i2c: 01 00 00 34 0A 3E [13:10:06]Write i2c OK [13:10:06]MH_I2C_Read... [13:10:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E4 76 47 00 01 27 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 DF 02 00 F4 03 04 00 1A 4E 17 67 B6 04 01 00 00 0C 90 C0 68 59 EF C2 DE [13:10:06]CommunicateWithHost err = 0 [13:10:06]CheckOFDResponse [13:10:06]1017 (14) - 77093643461234 [13:10:06]1041 (16) - 0000000000965340 [13:10:06]1040 (4) - 188278 [13:10:06]1012 (4) - 22.10.2024 07:02 [13:10:06]1206 (1) - 0 [13:10:06]OFD Sender: Remove packet 188278 [13:10:06]ProducePacketName [13:10:06]name=ofd_packets/00188278 [13:10:06]NVStorageDeleteData [13:10:07]OFD Sender: No OFD packet to send [13:10:07]*** Cut start [13:10:07]*** Partial cut [13:10:07]*** CUTSNS_PIN = 1 [13:10:07]*** CUTSNS_PIN = 0 [13:10:07]*** Brake cut motor [13:10:08]Read from MH i2c: 01 [13:10:08]MH_I2C_Read... [13:10:08]*** Stop cut motor [13:10:08]*** Cut end [13:10:08]Read from MH i2c: 01 07 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: 01 07 00 34 0A 00 00 00 00 00 FF 0F 53 [13:10:08]process_action close_receipt done [13:10:08]requested_data is exist [13:10:08]produce_requested_data [13:10:08]requested_item fm.sn is exist - process it [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 11 00 00 [13:10:08]Write to MH i2c: E2 08 00 35 0A 80 11 00 00 00 00 00 00 B9 [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 17 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 17 00 35 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [13:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:10:08]wFMCommunicate OK [13:10:08]requested_item fd.num is exist - process it [13:10:08]SAM_PROTO_GetFieldsCounters [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 13 00 00 [13:10:08]Write to MH i2c: E2 08 00 36 0A 80 13 00 00 00 00 00 00 BC [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 62 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 62 00 36 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [13:10:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 33 01 00 00 5E 04 04 00 33 01 00 00 57 04 04 00 34 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_GetFieldsCounters done [13:10:08]requested_item shift.num is exist - process it [13:10:08]requested_item shift.opened is exist - process it [13:10:08]req_shift_opened [13:10:08]FM_GetShiftState [13:10:08]SAM_PROTO_GetShiftState [13:10:08]wFMCommunicate request_size=4 [13:10:08]MH_SAM_APDU [13:10:08]CAPDU: 80 13 01 00 [13:10:08]Write to MH i2c: E2 08 00 37 0A 80 13 01 00 00 00 00 00 BE [13:10:08]Write i2c OK [13:10:08]MH_I2C_Read... [13:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:08]Read from MH i2c: E2 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0E 00 [13:10:08]MH_I2C_Read... [13:10:08]Read from MH i2c: E2 0E 00 37 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B3 [13:10:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:10:08]wFMCommunicate OK [13:10:08]SAM_PROTO_GetShiftState done [13:10:08]FM_GetShiftState done [13:10:08]req_shift_opened done [13:10:08]requested_item shift.open_date is exist - process it [13:10:08]req_shift_open_date [13:10:08]req_shift_open_date done [13:10:08]produce_requested_data done [13:10:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188278,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:10:08]process_action_free close_receipt [13:10:08]json_value_free [13:10:08]json_value_free done [13:10:08]process_json_proto returns [13:10:08]Send response to host [13:10:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188278,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:10:08]free response buf [13:10:08]execute_script done [13:10:08]execute_script returns [13:10:08]free content buf [13:10:08]Sock 10.Close socket [13:10:08]Sock 10.Thread stoped [13:10:12]OFD Sender: No OFD packet to send [13:10:14]accept exits with 7 [13:10:14]New connection [13:10:14]New thread 3066916196 created [13:10:14]Thread 3067059556 joined [13:10:14]Waiting for new connection... [13:10:14] Sock 7.Parse request [13:10:14]Sock 7.Check first char [13:10:14]Sock 7.First char is OK [13:10:14]request: POST /json_proto HTTP/1.0 [13:10:14]Method: POST [13:10:14]URL: /json_proto [13:10:14]Method is POST - this is cgi request [13:10:14]url: /json_proto [13:10:14]query_string will be loaded in cgi processing [13:10:14]execute_cgi json_proto POST (null) [13:10:14]execute_cgi path=json_proto method=POST [13:10:14]POST find Content-Length [13:10:14]Host: 172.17.42.131:8080 [13:10:14]Content-Length: 677 [13:10:14]Content-Type: application/json [13:10:14] [13:10:14]POST finish read [13:10:14]Found Content-Length = 677 [13:10:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:14]execute_script... [13:10: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)210332", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:10:14]POST & json_proto [13:10:14]process_json_proto [13:10:14]json parsed OK: [13:10:14]protocol is kg_v1.0 [13:10:14]action value=close_receipt [13:10:14]process_action close_receipt [13:10:14]cmd_close_receipt [13:10:14]MH_GetDate [13:10:14]Write to MH i2c: F0 00 00 38 0A 31 [13:10:14]Write i2c OK [13:10:14]MH_I2C_Read... [13:10:14]Read from MH i2c: F0 [13:10:14]MH_I2C_Read... [13:10:14]Read from MH i2c: F0 09 00 [13:10:14]MH_I2C_Read... [13:10:14]Read from MH i2c: F0 09 00 38 0A 00 37 A4 17 67 A0 18 CA 66 7B [13:10:14]GetLastDocTimeStamp 1729602605 [13:10:14]current date 1729602615 [13:10:14]FM_GetShiftState [13:10:14]SAM_PROTO_GetShiftState [13:10:14]wFMCommunicate request_size=4 [13:10:14]MH_SAM_APDU [13:10:14]CAPDU: 80 13 01 00 [13:10:14]Write to MH i2c: E2 08 00 39 0A 80 13 01 00 00 00 00 00 C0 [13:10:14]Write i2c OK [13:10:14]MH_I2C_Read... [13:10:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:14]Read from MH i2c: E2 [13:10:14]MH_I2C_Read... [13:10:14]Read from MH i2c: E2 0E 00 [13:10:14]MH_I2C_Read... [13:10:14]Read from MH i2c: E2 0E 00 39 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B5 [13:10:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:10:14]wFMCommunicate OK [13:10:14]SAM_PROTO_GetShiftState done [13:10:14]FM_GetShiftState done [13:10:14]opened in 1729556094 [13:10:14]opened+sec_in_day 1729642494 [13:10:14]quantity*price = 50041 [13:10:14]sum+1 = 50042 [13:10:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 308 22.10.2024 13:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188279 ФПД: 4035840233468 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188279&fm=4035840233468&tin=02508201610067®Number=0000000000100030&sum=50000 [13:10:15]StoreToDocumentArchive [13:10:15]shift 461 fd 188279 [13:10:15]save to /storage/0461/doc_00188279 [13:10:15]save last doc name /storage/0461/doc_00188279 to /storage/kkm_last_doc_name [13:10:15]save OK [13:10:15]Clear old archive folders... [13:10:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:10:15]tlvbuf is 01E3F480 [13:10:15]SAM_PROTO_ClearQueue [13:10:15]wFMCommunicate request_size=4 [13:10:15]MH_SAM_APDU [13:10:15]CAPDU: 80 09 00 00 [13:10:15]Write to MH i2c: E2 08 00 46 0A 80 09 00 00 00 00 00 00 C2 [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 46 0A 00 90 00 C4 [13:10:15]RAPDU: 90 00 [13:10:15]wFMCommunicate OK [13:10:15]SAM_PROTO_ClearQueue done [13:10:15]KKMCreateOFDPacket [13:10:15]OFDProtocolAddRootSTLVToBuf [13:10:15]FM_MakeSignedData [13:10:15]FM_MakeSignedData [13:10:15]SAM_PROTO_SignData [13:10:15]wFMCommunicate request_size=4 [13:10:15]MH_SAM_APDU [13:10:15]CAPDU: 80 0D 01 02 [13:10:15]Write to MH i2c: E2 08 00 47 0A 80 0D 01 02 00 00 00 00 CA [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 47 0A 00 90 00 C5 [13:10:15]RAPDU: 90 00 [13:10:15]wFMCommunicate OK [13:10:15]wFMCommunicate request_size=255 [13:10:15]MH_SAM_APDU [13:10: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 37 A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DF 02 00 35 04 06 00 03 [13:10:15]Write to MH i2c: E2 02 01 48 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 37 A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DF 02 00 35 04 06 00 03 00 00 F4 [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 48 0A 00 90 00 C6 [13:10:15]RAPDU: 90 00 [13:10:15]wFMCommunicate OK [13:10:15]wFMCommunicate request_size=10 [13:10:15]MH_SAM_APDU [13:10:15]CAPDU: 80 0D 02 02 05 AB AA D2 CF FC [13:10:15]Write to MH i2c: E2 0D 00 49 0A 80 0D 02 02 05 00 AB AA D2 CF FC 00 00 C9 [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 03 00 49 0A 00 90 00 C7 [13:10:15]RAPDU: 90 00 [13:10:15]wFMCommunicate OK [13:10:15]wFMCommunicate request_size=4 [13:10:15]MH_SAM_APDU [13:10:15]CAPDU: 80 0D 03 02 [13:10:15]Write to MH i2c: E2 08 00 4A 0A 80 0D 03 02 00 00 00 00 CF [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 0B 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 0B 00 4A 0A 00 3C C2 FC 2E AA 97 BE 50 90 00 47 [13:10:15]RAPDU: 3C C2 FC 2E AA 97 BE 50 90 00 [13:10:15]wFMCommunicate OK [13:10:15]SAM_PROTO_SignData done [13:10:15]FM_MakeSignedData done [13:10:15]CreateOFDProtocolMessage [13:10:15]wFMCommunicate request_size=4 [13:10:15]MH_SAM_APDU [13:10:15]CAPDU: 80 11 00 00 [13:10:15]Write to MH i2c: E2 08 00 4B 0A 80 11 00 00 00 00 00 00 CF [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:15]Read from MH i2c: E2 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 17 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: E2 17 00 4B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [13:10:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:10:15]wFMCommunicate OK [13:10:15]CreateOFDProtocolMessage done [13:10:15]OFDSenderStorePacket 188279 [13:10:15]StoreOFDPacket docnum=188279 [13:10:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 5B 07 01 1D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 37 A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DF 02 00 35 04 06 00 03 AB AA D2 CF FC 3C C2 FC 2E AA 97 BE 50 [13:10:15]CheckFolder [13:10:15]dirname=/storage/ofd_packets [13:10:15]CheckFolder done [13:10:15]ProducePacketName [13:10:15]name=ofd_packets/00188279 [13:10:15]NVStorageSaveData ofd_packets/00188279 [13:10:15]File name is /storage/ofd_packets/00188279 [13:10:15]Write 301 bytes [13:10:15]NVStorageSaveData done [13:10:15]OFDSenderStorePacket done [13:10:15]KKMCreateOFDPacket done [13:10:15]NVStorageSaveData kkm_last_timestamp [13:10:15]File name is /storage/kkm_last_timestamp [13:10:15]Write 4 bytes [13:10:15]NVStorageSaveData done [13:10:15]ExternCall_PrintAddStr [13:10:15]wPrintStart [13:10:15]Write to MH i2c: 01 00 00 4C 0A 56 [13:10:15]Write i2c OK [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 [13:10:15]MH_I2C_Read... [13:10:15]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 FF 0F 6B [13:10:15]RasterBufferAndPrint [13:10:15]line Счет N : (1)210332 [13:10:15]line ИНН: 02508201610067 [13:10:15]line Контрольно-Кассовый Чек [13:10:15]line ПРОДАЖА [13:10:15]line ТРК (МРК, ГНК) : 22 [13:10:15]line Товар: 2710124130 [13:10:15]line Аи-92-К-3 [13:10:15]line 7.480 * 66.90 [13:10:15]line = 500.41 [13:10:15]line НДС 12% НСП 1% [13:10:15]line > о реализуемом товаре [13:10:15]line ОКРУГЛЕНИЕ: -0.41 [13:10:15]line ИТОГО: 500.00 [13:10:15]line Внесено: 500.00 [13:10:15]line СДАЧА: 0.00 [13:10:15]line НСП 1% : 4.43 [13:10:15]line НДС 12% : 53.14 [13:10:15]line Наличными: 500.00 [13:10:15]line Безнал.: 0.00 [13:10:15]line Место: АЗС № 86 "Партнер Нефть" [13:10:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:10:15]line СНО: Общий режим [13:10:15]line Чек 308 22.10.2024 13:10 [13:10:15]line Смена: 461 ФФД: 1.0 [13:10:15]line ЗНМ: 0300000155 [13:10:15]line РНМ: 0000000000100030 [13:10:15]line Версия ККМ: 001 [13:10:15]line ФМ: 0000000000965340 [13:10:15]line ФД: 188279 [13:10:15]line ФПД: 4035840233468 [13:10:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131015&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188279&fm=4035840233468&tin=02508201610067®Number=0000000000100030&sum=50000 [13:10:15]written 0, free lines is 4095 [13:10:15]OFD Sender: Processing packet 188279 [packets to send 1062, broken 1061] [13:10:15]ProducePacketName [13:10:15]name=ofd_packets/00188279 [13:10:15]OFD Sender: To server: pG, [13:10:15]CommunicateWithHost lk.salyk.kg:30040 [13:10:15]ConnectInit lk.salyk.kg [13:10:16]Connected sock=10 [13:10:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 56 5B 07 01 1D 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 01 00 00 F4 03 04 00 37 A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 DF 02 00 35 04 06 00 03 AB AA D2 CF FC 3C C2 FC 2E AA 97 BE 50 [13:10:16]Write to MH i2c: 01 00 00 77 0A 81 [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: 01 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: 01 07 00 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: 01 07 00 77 0A 00 00 00 00 00 70 0C 04 [13:10:16]RasterBufferAndPrint [13:10:16]line [13:10:16]line [13:10:16]line [13:10:16]line [13:10:16]line [13:10:16]written 0, free lines is 3187 [13:10:16]MH_Cut [13:10:16]Write to MH i2c: D1 01 00 7E 0A 01 5A [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: D1 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: D1 01 00 [13:10:16]MH_I2C_Read... [13:10:16]Read from MH i2c: D1 01 00 7E 0A 00 59 [13:10:16]Write to MH i2c: 01 00 00 7F 0A 89 [13:10:16]Write i2c OK [13:10:16]MH_I2C_Read... [13:10:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 60 47 00 3F 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 39 36 35 33 34 30 10 04 04 00 77 DF 02 00 F4 03 04 00 24 4E 17 67 B6 04 01 00 00 4B A4 1D 47 FE C7 8B DA [13:10:16]CommunicateWithHost err = 0 [13:10:16]CheckOFDResponse [13:10:16]1017 (14) - 77093643461234 [13:10:16]1041 (16) - 0000000000965340 [13:10:16]1040 (4) - 188279 [13:10:16]1012 (4) - 22.10.2024 07:03 [13:10:16]1206 (1) - 0 [13:10:16]OFD Sender: Remove packet 188279 [13:10:16]ProducePacketName [13:10:16]name=ofd_packets/00188279 [13:10:16]NVStorageDeleteData [13:10:17]OFD Sender: No OFD packet to send [13:10:17]*** Cut start [13:10:17]*** Partial cut [13:10:17]*** CUTSNS_PIN = 1 [13:10:17]*** CUTSNS_PIN = 0 [13:10:17]*** Brake cut motor [13:10:18]Read from MH i2c: 01 [13:10:18]MH_I2C_Read... [13:10:18]*** Stop cut motor [13:10:18]*** Cut end [13:10:18]Read from MH i2c: 01 07 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: 01 07 00 7F 0A 00 00 00 00 00 FF 0F 9E [13:10:18]process_action close_receipt done [13:10:18]requested_data is exist [13:10:18]produce_requested_data [13:10:18]requested_item fm.sn is exist - process it [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 11 00 00 [13:10:18]Write to MH i2c: E2 08 00 80 0A 80 11 00 00 00 00 00 00 04 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 17 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 17 00 80 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 52 [13:10:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:10:18]wFMCommunicate OK [13:10:18]requested_item fd.num is exist - process it [13:10:18]SAM_PROTO_GetFieldsCounters [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 13 00 00 [13:10:18]Write to MH i2c: E2 08 00 81 0A 80 13 00 00 00 00 00 00 07 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 62 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 62 00 81 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 D3 [13:10:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 34 01 00 00 5E 04 04 00 34 01 00 00 57 04 04 00 35 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:10:18]wFMCommunicate OK [13:10:18]SAM_PROTO_GetFieldsCounters done [13:10:18]requested_item shift.num is exist - process it [13:10:18]requested_item shift.opened is exist - process it [13:10:18]req_shift_opened [13:10:18]FM_GetShiftState [13:10:18]SAM_PROTO_GetShiftState [13:10:18]wFMCommunicate request_size=4 [13:10:18]MH_SAM_APDU [13:10:18]CAPDU: 80 13 01 00 [13:10:18]Write to MH i2c: E2 08 00 82 0A 80 13 01 00 00 00 00 00 09 [13:10:18]Write i2c OK [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 [13:10:18]MH_I2C_Read... [13:10:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:10:18]Read from MH i2c: E2 0E 00 [13:10:18]MH_I2C_Read... [13:10:18]Read from MH i2c: E2 0E 00 82 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FE [13:10:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:10:18]wFMCommunicate OK [13:10:18]SAM_PROTO_GetShiftState done [13:10:18]FM_GetShiftState done [13:10:18]req_shift_opened done [13:10:18]requested_item shift.open_date is exist - process it [13:10:18]req_shift_open_date [13:10:18]req_shift_open_date done [13:10:18]produce_requested_data done [13:10:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188279,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:10:18]process_action_free close_receipt [13:10:18]json_value_free [13:10:18]json_value_free done [13:10:18]process_json_proto returns [13:10:18]Send response to host [13:10:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188279,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:10:18]free response buf [13:10:18]execute_script done [13:10:18]execute_script returns [13:10:18]free content buf [13:10:18]Sock 7.Close socket [13:10:18]Sock 7.Thread stoped [13:10:22]OFD Sender: No OFD packet to send [13:10:27]OFD Sender: No OFD packet to send [13:10:32]OFD Sender: No OFD packet to send [13:10:37]OFD Sender: No OFD packet to send [13:10:42]OFD Sender: No OFD packet to send [13:10:47]OFD Sender: No OFD packet to send [13:10:52]OFD Sender: No OFD packet to send [13:10:57]OFD Sender: No OFD packet to send [13:11:02]OFD Sender: No OFD packet to send [13:11:07]OFD Sender: No OFD packet to send [13:11:12]OFD Sender: No OFD packet to send [13:11:17]OFD Sender: No OFD packet to send [13:11:22]OFD Sender: No OFD packet to send [13:11:27]OFD Sender: No OFD packet to send [13:11:32]OFD Sender: No OFD packet to send [13:11:37]OFD Sender: No OFD packet to send [13:11:42]OFD Sender: No OFD packet to send [13:11:47]OFD Sender: No OFD packet to send [13:11:52]OFD Sender: No OFD packet to send [13:11:57]OFD Sender: No OFD packet to send [13:12:02]OFD Sender: No OFD packet to send [13:12:07]OFD Sender: No OFD packet to send [13:12:12]OFD Sender: No OFD packet to send [13:12:17]OFD Sender: No OFD packet to send [13:12:22]OFD Sender: No OFD packet to send [13:12:27]OFD Sender: No OFD packet to send [13:12:32]OFD Sender: No OFD packet to send [13:12:37]OFD Sender: No OFD packet to send [13:12:42]OFD Sender: No OFD packet to send [13:12:47]OFD Sender: No OFD packet to send [13:12:52]OFD Sender: No OFD packet to send [13:12:57]accept exits with 9 [13:12:57]New connection [13:12:57]New thread 3067059556 created [13:12:57]Thread 3066916196 joined [13:12:57]Waiting for new connection... [13:12:57] Sock 9.Parse request [13:12:57]Sock 9.Check first char [13:12:57]Sock 9.First char is OK [13:12:57]request: POST /json_proto HTTP/1.0 [13:12:57]Method: POST [13:12:57]URL: /json_proto [13:12:57]Method is POST - this is cgi request [13:12:57]url: /json_proto [13:12:57]query_string will be loaded in cgi processing [13:12:57]execute_cgi json_proto POST (null) [13:12:57]execute_cgi path=json_proto method=POST [13:12:57]POST find Content-Length [13:12:57]Host: 172.17.42.131:8080 [13:12:57]Content-Length: 682 [13:12:57]Content-Type: application/json [13:12:57] [13:12:57]POST finish read [13:12:57]Found Content-Length = 682 [13:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:57]execute_script... [13:12: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)210334", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:12:57]POST & json_proto [13:12:57]process_json_proto [13:12:57]json parsed OK: [13:12:57]protocol is kg_v1.0 [13:12:57]action value=close_receipt [13:12:57]process_action close_receipt [13:12:57]cmd_close_receipt [13:12:57]MH_GetDate [13:12:57]Write to MH i2c: F0 00 00 83 0A 7C [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: F0 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: F0 09 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: F0 09 00 83 0A 00 DA A4 17 67 A0 18 CA 66 69 [13:12:57]GetLastDocTimeStamp 1729602615 [13:12:57]current date 1729602778 [13:12:57]FM_GetShiftState [13:12:57]SAM_PROTO_GetShiftState [13:12:57]wFMCommunicate request_size=4 [13:12:57]MH_SAM_APDU [13:12:57]CAPDU: 80 13 01 00 [13:12:57]Write to MH i2c: E2 08 00 84 0A 80 13 01 00 00 00 00 00 0B [13:12:57]Write i2c OK [13:12:57]MH_I2C_Read... [13:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:12:57]Read from MH i2c: E2 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 0E 00 [13:12:57]MH_I2C_Read... [13:12:57]Read from MH i2c: E2 0E 00 84 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 00 [13:12:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:12:57]wFMCommunicate OK [13:12:57]SAM_PROTO_GetShiftState done [13:12:57]FM_GetShiftState done [13:12:57]opened in 1729556094 [13:12:57]opened+sec_in_day 1729642494 [13:12:57]quantity*price = 100015 [13:12:57]sum+1 = 100017 [13:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 309 22.10.2024 13:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188280 ФПД: 73285626042010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188280&fm=73285626042010&tin=02508201610067®Number=0000000000100030&sum=100000 [13:12:58]StoreToDocumentArchive [13:12:58]shift 461 fd 188280 [13:12:58]save to /storage/0461/doc_00188280 [13:12:58]save last doc name /storage/0461/doc_00188280 to /storage/kkm_last_doc_name [13:12:58]save OK [13:12:58]Clear old archive folders... [13:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:12:58]tlvbuf is 01E33230 [13:12:58]SAM_PROTO_ClearQueue [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 09 00 00 [13:12:58]Write to MH i2c: E2 08 00 91 0A 80 09 00 00 00 00 00 00 0D [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 03 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 03 00 91 0A 00 90 00 0F [13:12:58]RAPDU: 90 00 [13:12:58]wFMCommunicate OK [13:12:58]SAM_PROTO_ClearQueue done [13:12:58]KKMCreateOFDPacket [13:12:58]OFDProtocolAddRootSTLVToBuf [13:12:58]FM_MakeSignedData [13:12:58]FM_MakeSignedData [13:12:58]SAM_PROTO_SignData [13:12:58]wFMCommunicate request_size=4 [13:12:58]MH_SAM_APDU [13:12:58]CAPDU: 80 0D 01 02 [13:12:58]Write to MH i2c: E2 08 00 92 0A 80 0D 01 02 00 00 00 00 15 [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:12:58]Read from MH i2c: E2 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 03 00 [13:12:58]MH_I2C_Read... [13:12:58]Read from MH i2c: E2 03 00 92 0A 00 90 00 10 [13:12:58]RAPDU: 90 00 [13:12:58]wFMCommunicate OK [13:12:58]wFMCommunicate request_size=255 [13:12:58]MH_SAM_APDU [13:12: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 DA A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DF 02 00 35 04 06 00 42 [13:12:58]Write to MH i2c: E2 02 01 93 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 DA A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DF 02 00 35 04 06 00 42 00 00 1D [13:12:58]Write i2c OK [13:12:58]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 03 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 03 00 93 0A 00 90 00 11 [13:12:59]RAPDU: 90 00 [13:12:59]wFMCommunicate OK [13:12:59]wFMCommunicate request_size=10 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 0D 02 02 05 A7 23 B5 16 9A [13:12:59]Write to MH i2c: E2 0D 00 94 0A 80 0D 02 02 05 00 A7 23 B5 16 9A 00 00 51 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 03 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 03 00 94 0A 00 90 00 12 [13:12:59]RAPDU: 90 00 [13:12:59]wFMCommunicate OK [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 0D 03 02 [13:12:59]Write to MH i2c: E2 08 00 95 0A 80 0D 03 02 00 00 00 00 1A [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0B 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 0B 00 95 0A 00 69 49 D9 67 00 B8 6E E9 90 00 1C [13:12:59]RAPDU: 69 49 D9 67 00 B8 6E E9 90 00 [13:12:59]wFMCommunicate OK [13:12:59]SAM_PROTO_SignData done [13:12:59]FM_MakeSignedData done [13:12:59]CreateOFDProtocolMessage [13:12:59]wFMCommunicate request_size=4 [13:12:59]MH_SAM_APDU [13:12:59]CAPDU: 80 11 00 00 [13:12:59]Write to MH i2c: E2 08 00 96 0A 80 11 00 00 00 00 00 00 1A [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:12:59]Read from MH i2c: E2 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 17 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: E2 17 00 96 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [13:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:12:59]wFMCommunicate OK [13:12:59]CreateOFDProtocolMessage done [13:12:59]OFDSenderStorePacket 188280 [13:12:59]StoreOFDPacket docnum=188280 [13:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D C3 07 01 F1 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 DA A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DF 02 00 35 04 06 00 42 A7 23 B5 16 9A 69 49 D9 67 00 B8 6E E9 [13:12:59]CheckFolder [13:12:59]dirname=/storage/ofd_packets [13:12:59]CheckFolder done [13:12:59]ProducePacketName [13:12:59]name=ofd_packets/00188280 [13:12:59]NVStorageSaveData ofd_packets/00188280 [13:12:59]File name is /storage/ofd_packets/00188280 [13:12:59]Write 301 bytes [13:12:59]NVStorageSaveData done [13:12:59]OFDSenderStorePacket done [13:12:59]KKMCreateOFDPacket done [13:12:59]NVStorageSaveData kkm_last_timestamp [13:12:59]File name is /storage/kkm_last_timestamp [13:12:59]Write 4 bytes [13:12:59]NVStorageSaveData done [13:12:59]ExternCall_PrintAddStr [13:12:59]wPrintStart [13:12:59]Write to MH i2c: 01 00 00 97 0A A1 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 07 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 FF 0F B6 [13:12:59]RasterBufferAndPrint [13:12:59]line Счет N : (1)210334 [13:12:59]line ИНН: 02508201610067 [13:12:59]line Контрольно-Кассовый Чек [13:12:59]line ПРОДАЖА [13:12:59]line ТРК (МРК, ГНК) : 22 [13:12:59]line Товар: 2710124130 [13:12:59]line Аи-92-К-3 [13:12:59]line 14.950 * 66.90 [13:12:59]line = 1000.16 [13:12:59]line НДС 12% НСП 1% [13:12:59]line > о реализуемом товаре [13:12:59]line ОКРУГЛЕНИЕ: -0.16 [13:12:59]line ИТОГО: 1000.00 [13:12:59]line Внесено: 1000.00 [13:12:59]line СДАЧА: 0.00 [13:12:59]line НСП 1% : 8.85 [13:12:59]line НДС 12% : 106.21 [13:12:59]line Наличными: 1000.00 [13:12:59]line Безнал.: 0.00 [13:12:59]line Место: АЗС № 86 "Партнер Нефть" [13:12:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:12:59]line СНО: Общий режим [13:12:59]line Чек 309 22.10.2024 13:12 [13:12:59]line Смена: 461 ФФД: 1.0 [13:12:59]line ЗНМ: 0300000155 [13:12:59]line РНМ: 0000000000100030 [13:12:59]line Версия ККМ: 001 [13:12:59]line ФМ: 0000000000965340 [13:12:59]line ФД: 188280 [13:12:59]line ФПД: 73285626042010 [13:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188280&fm=73285626042010&tin=02508201610067®Number=0000000000100030&sum=100000 [13:12:59]written 0, free lines is 4095 [13:12:59]OFD Sender: Processing packet 188280 [packets to send 1062, broken 1061] [13:12:59]ProducePacketName [13:12:59]name=ofd_packets/00188280 [13:12:59]OFD Sender: To server: pG, [13:12:59]CommunicateWithHost lk.salyk.kg:30040 [13:12:59]ConnectInit lk.salyk.kg [13:12:59]Connected sock=11 [13:12:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D C3 07 01 F1 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 01 00 00 F4 03 04 00 DA A4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DF 02 00 35 04 06 00 42 A7 23 B5 16 9A 69 49 D9 67 00 B8 6E E9 [13:12:59]Write to MH i2c: 01 00 00 C2 0A CC [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 07 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: 01 07 00 C2 0A 00 00 00 00 00 73 0C 52 [13:12:59]RasterBufferAndPrint [13:12:59]line [13:12:59]line [13:12:59]line [13:12:59]line [13:12:59]line [13:12:59]written 0, free lines is 3190 [13:12:59]MH_Cut [13:12:59]Write to MH i2c: D1 01 00 C9 0A 01 A5 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: D1 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: D1 01 00 [13:12:59]MH_I2C_Read... [13:12:59]Read from MH i2c: D1 01 00 C9 0A 00 A4 [13:12:59]Write to MH i2c: 01 00 00 CA 0A D4 [13:12:59]Write i2c OK [13:12:59]MH_I2C_Read... [13:12:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 92 D2 47 00 24 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 DF 02 00 F4 03 04 00 C7 4E 17 67 B6 04 01 00 00 58 34 E3 3A E5 CF F5 AE [13:12:59]CommunicateWithHost err = 0 [13:12:59]CheckOFDResponse [13:12:59]1017 (14) - 77093643461234 [13:12:59]1041 (16) - 0000000000965340 [13:12:59]1040 (4) - 188280 [13:12:59]1012 (4) - 22.10.2024 07:05 [13:12:59]1206 (1) - 0 [13:12:59]OFD Sender: Remove packet 188280 [13:12:59]ProducePacketName [13:12:59]name=ofd_packets/00188280 [13:12:59]NVStorageDeleteData [13:13:00]OFD Sender: No OFD packet to send [13:13:00]*** Cut start [13:13:00]*** Partial cut [13:13:00]*** CUTSNS_PIN = 1 [13:13:00]*** CUTSNS_PIN = 0 [13:13:01]*** Brake cut motor [13:13:01]Read from MH i2c: 01 [13:13:01]MH_I2C_Read... [13:13:01]*** Stop cut motor [13:13:01]*** Cut end [13:13:01]Read from MH i2c: 01 07 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: 01 07 00 CA 0A 00 00 00 00 00 FF 0F E9 [13:13:01]process_action close_receipt done [13:13:01]requested_data is exist [13:13:01]produce_requested_data [13:13:01]requested_item fm.sn is exist - process it [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 11 00 00 [13:13:01]Write to MH i2c: E2 08 00 CB 0A 80 11 00 00 00 00 00 00 4F [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 17 00 CB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9D [13:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:01]wFMCommunicate OK [13:13:01]requested_item fd.num is exist - process it [13:13:01]SAM_PROTO_GetFieldsCounters [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 13 00 00 [13:13:01]Write to MH i2c: E2 08 00 CC 0A 80 13 00 00 00 00 00 00 52 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 62 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 62 00 CC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 22 [13:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 35 01 00 00 5E 04 04 00 35 01 00 00 57 04 04 00 36 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_GetFieldsCounters done [13:13:01]requested_item shift.num is exist - process it [13:13:01]requested_item shift.opened is exist - process it [13:13:01]req_shift_opened [13:13:01]FM_GetShiftState [13:13:01]SAM_PROTO_GetShiftState [13:13:01]wFMCommunicate request_size=4 [13:13:01]MH_SAM_APDU [13:13:01]CAPDU: 80 13 01 00 [13:13:01]Write to MH i2c: E2 08 00 CD 0A 80 13 01 00 00 00 00 00 54 [13:13:01]Write i2c OK [13:13:01]MH_I2C_Read... [13:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:01]Read from MH i2c: E2 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0E 00 [13:13:01]MH_I2C_Read... [13:13:01]Read from MH i2c: E2 0E 00 CD 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [13:13:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:13:01]wFMCommunicate OK [13:13:01]SAM_PROTO_GetShiftState done [13:13:01]FM_GetShiftState done [13:13:01]req_shift_opened done [13:13:01]requested_item shift.open_date is exist - process it [13:13:01]req_shift_open_date [13:13:01]req_shift_open_date done [13:13:01]produce_requested_data done [13:13:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188280,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:13:01]process_action_free close_receipt [13:13:01]json_value_free [13:13:01]json_value_free done [13:13:01]process_json_proto returns [13:13:01]Send response to host [13:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188280,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:13:01]free response buf [13:13:01]execute_script done [13:13:01]execute_script returns [13:13:01]free content buf [13:13:01]Sock 9.Close socket [13:13:01]Sock 9.Thread stoped [13:13:05]OFD Sender: No OFD packet to send [13:13:10]OFD Sender: No OFD packet to send [13:13:15]OFD Sender: No OFD packet to send [13:13:20]OFD Sender: No OFD packet to send [13:13:25]OFD Sender: No OFD packet to send [13:13:30]OFD Sender: No OFD packet to send [13:13:35]OFD Sender: No OFD packet to send [13:13:40]OFD Sender: No OFD packet to send [13:13:45]OFD Sender: No OFD packet to send [13:13:46]accept exits with 7 [13:13:46]New connection [13:13:46]New thread 3066916196 created [13:13:46]Thread 3067059556 joined [13:13:46]Waiting for new connection... [13:13:46] Sock 7.Parse request [13:13:46]Sock 7.Check first char [13:13:46]Sock 7.First char is OK [13:13:46]request: POST /json_proto HTTP/1.0 [13:13:46]Method: POST [13:13:46]URL: /json_proto [13:13:46]Method is POST - this is cgi request [13:13:46]url: /json_proto [13:13:46]query_string will be loaded in cgi processing [13:13:46]execute_cgi json_proto POST (null) [13:13:46]execute_cgi path=json_proto method=POST [13:13:46]POST find Content-Length [13:13:46]Host: 172.17.42.131:8080 [13:13:46]Content-Length: 688 [13:13:46]Content-Type: application/json [13:13:46] [13:13:46]POST finish read [13:13:46]Found Content-Length = 688 [13:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [13:13:46]execute_script... [13:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210335", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [13:13:46]POST & json_proto [13:13:46]process_json_proto [13:13:46]json parsed OK: [13:13:46]protocol is kg_v1.0 [13:13:46]action value=close_receipt [13:13:46]process_action close_receipt [13:13:46]cmd_close_receipt [13:13:46]MH_GetDate [13:13:46]Write to MH i2c: F0 00 00 CE 0A C7 [13:13:46]Write i2c OK [13:13:46]MH_I2C_Read... [13:13:46]Read from MH i2c: F0 [13:13:46]MH_I2C_Read... [13:13:46]Read from MH i2c: F0 09 00 [13:13:46]MH_I2C_Read... [13:13:46]Read from MH i2c: F0 09 00 CE 0A 00 0B A5 17 67 A0 18 CA 66 E6 [13:13:46]GetLastDocTimeStamp 1729602778 [13:13:46]current date 1729602827 [13:13:46]FM_GetShiftState [13:13:46]SAM_PROTO_GetShiftState [13:13:46]wFMCommunicate request_size=4 [13:13:46]MH_SAM_APDU [13:13:46]CAPDU: 80 13 01 00 [13:13:46]Write to MH i2c: E2 08 00 CF 0A 80 13 01 00 00 00 00 00 56 [13:13:46]Write i2c OK [13:13:46]MH_I2C_Read... [13:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:46]Read from MH i2c: E2 [13:13:46]MH_I2C_Read... [13:13:46]Read from MH i2c: E2 0E 00 [13:13:46]MH_I2C_Read... [13:13:46]Read from MH i2c: E2 0E 00 CF 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [13:13:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:13:46]wFMCommunicate OK [13:13:46]SAM_PROTO_GetShiftState done [13:13:46]FM_GetShiftState done [13:13:46]opened in 1729556094 [13:13:46]opened+sec_in_day 1729642494 [13:13:46]quantity*price = 200025 [13:13:46]sum+1 = 200026 [13:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 310 22.10.2024 13:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188281 ФПД: 205106067673227 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131347&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188281&fm=205106067673227&tin=02508201610067®Number=0000000000100030&sum=200000 [13:13:47]StoreToDocumentArchive [13:13:47]shift 461 fd 188281 [13:13:47]save to /storage/0461/doc_00188281 [13:13:47]save last doc name /storage/0461/doc_00188281 to /storage/kkm_last_doc_name [13:13:47]save OK [13:13:47]Clear old archive folders... [13:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:13:47]tlvbuf is 01E3B830 [13:13:47]SAM_PROTO_ClearQueue [13:13:47]wFMCommunicate request_size=4 [13:13:47]MH_SAM_APDU [13:13:47]CAPDU: 80 09 00 00 [13:13:47]Write to MH i2c: E2 08 00 DC 0A 80 09 00 00 00 00 00 00 58 [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:13:47]Read from MH i2c: E2 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 DC 0A 00 90 00 5A [13:13:47]RAPDU: 90 00 [13:13:47]wFMCommunicate OK [13:13:47]SAM_PROTO_ClearQueue done [13:13:47]KKMCreateOFDPacket [13:13:47]OFDProtocolAddRootSTLVToBuf [13:13:47]FM_MakeSignedData [13:13:47]FM_MakeSignedData [13:13:47]SAM_PROTO_SignData [13:13:47]wFMCommunicate request_size=4 [13:13:47]MH_SAM_APDU [13:13:47]CAPDU: 80 0D 01 02 [13:13:47]Write to MH i2c: E2 08 00 DD 0A 80 0D 01 02 00 00 00 00 60 [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:13:47]Read from MH i2c: E2 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 DD 0A 00 90 00 5B [13:13:47]RAPDU: 90 00 [13:13:47]wFMCommunicate OK [13:13:47]wFMCommunicate request_size=255 [13:13:47]MH_SAM_APDU [13:13:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 36 01 00 00 F4 03 04 00 0B A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DF 02 [13:13:47]Write to MH i2c: E2 02 01 DE 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 36 01 00 00 F4 03 04 00 0B A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DF 02 00 00 8E [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:47]Read from MH i2c: E2 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 DE 0A 00 90 00 5C [13:13:47]RAPDU: 90 00 [13:13:47]wFMCommunicate OK [13:13:47]wFMCommunicate request_size=16 [13:13:47]MH_SAM_APDU [13:13:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BA 8A FA 4E 10 8B [13:13:47]Write to MH i2c: E2 13 00 DF 0A 80 0D 02 02 0B 00 00 35 04 06 00 BA 8A FA 4E 10 8B 00 00 DF [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:13:47]Read from MH i2c: E2 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 03 00 DF 0A 00 90 00 5D [13:13:47]RAPDU: 90 00 [13:13:47]wFMCommunicate OK [13:13:47]wFMCommunicate request_size=4 [13:13:47]MH_SAM_APDU [13:13:47]CAPDU: 80 0D 03 02 [13:13:47]Write to MH i2c: E2 08 00 E0 0A 80 0D 03 02 00 00 00 00 65 [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:13:47]Read from MH i2c: E2 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 0B 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 0B 00 E0 0A 00 22 8A 63 CA 44 F4 36 F7 90 00 A4 [13:13:47]RAPDU: 22 8A 63 CA 44 F4 36 F7 90 00 [13:13:47]wFMCommunicate OK [13:13:47]SAM_PROTO_SignData done [13:13:47]FM_MakeSignedData done [13:13:47]CreateOFDProtocolMessage [13:13:47]wFMCommunicate request_size=4 [13:13:47]MH_SAM_APDU [13:13:47]CAPDU: 80 11 00 00 [13:13:47]Write to MH i2c: E2 08 00 E1 0A 80 11 00 00 00 00 00 00 65 [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:47]Read from MH i2c: E2 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 17 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: E2 17 00 E1 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [13:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:47]wFMCommunicate OK [13:13:47]CreateOFDProtocolMessage done [13:13:47]OFDSenderStorePacket 188281 [13:13:47]StoreOFDPacket docnum=188281 [13:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 3A 0D 01 36 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 36 01 00 00 F4 03 04 00 0B A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DF 02 00 35 04 06 00 BA 8A FA 4E 10 8B 22 8A 63 CA 44 F4 36 F7 [13:13:47]CheckFolder [13:13:47]dirname=/storage/ofd_packets [13:13:47]CheckFolder done [13:13:47]ProducePacketName [13:13:47]name=ofd_packets/00188281 [13:13:47]NVStorageSaveData ofd_packets/00188281 [13:13:47]File name is /storage/ofd_packets/00188281 [13:13:47]Write 307 bytes [13:13:47]NVStorageSaveData done [13:13:47]OFDSenderStorePacket done [13:13:47]KKMCreateOFDPacket done [13:13:47]NVStorageSaveData kkm_last_timestamp [13:13:47]File name is /storage/kkm_last_timestamp [13:13:47]Write 4 bytes [13:13:47]NVStorageSaveData done [13:13:47]ExternCall_PrintAddStr [13:13:47]wPrintStart [13:13:47]Write to MH i2c: 01 00 00 E2 0A EC [13:13:47]Write i2c OK [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: 01 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: 01 07 00 [13:13:47]MH_I2C_Read... [13:13:47]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 FF 0F 01 [13:13:47]RasterBufferAndPrint [13:13:47]line Счет N : (1)210335 [13:13:47]line ИНН: 02508201610067 [13:13:47]line Контрольно-Кассовый Чек [13:13:47]line ПРОДАЖА [13:13:47]line ТРК (МРК, ГНК) : 41 [13:13:47]line Товар: 2710194210 [13:13:47]line D-ENERGY ДТ-К-5 [13:13:47]line 25.910 * 77.20 [13:13:47]line = 2000.25 [13:13:47]line НДС 12% НСП 1% [13:13:47]line > о реализуемом товаре [13:13:47]line ОКРУГЛЕНИЕ: -0.25 [13:13:47]line ИТОГО: 2000.00 [13:13:47]line Внесено: 2000.00 [13:13:47]line СДАЧА: 0.00 [13:13:47]line НСП 1% : 17.70 [13:13:47]line НДС 12% : 212.42 [13:13:47]line Наличными: 2000.00 [13:13:47]line Безнал.: 0.00 [13:13:47]line Место: АЗС № 86 "Партнер Нефть" [13:13:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:13:47]line СНО: Общий режим [13:13:47]line Чек 310 22.10.2024 13:13 [13:13:47]line Смена: 461 ФФД: 1.0 [13:13:47]line ЗНМ: 0300000155 [13:13:47]line РНМ: 0000000000100030 [13:13:47]line Версия ККМ: 001 [13:13:47]line ФМ: 0000000000965340 [13:13:47]line ФД: 188281 [13:13:47]line ФПД: 205106067673227 [13:13:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131347&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188281&fm=205106067673227&tin=02508201610067®Number=0000000000100030&sum=200000 [13:13:47]written 0, free lines is 4095 [13:13:48]OFD Sender: Processing packet 188281 [packets to send 1062, broken 1061] [13:13:48]ProducePacketName [13:13:48]name=ofd_packets/00188281 [13:13:48]OFD Sender: To server: pG, [13:13:48]CommunicateWithHost lk.salyk.kg:30040 [13:13:48]ConnectInit lk.salyk.kg [13:13:48]Connected sock=10 [13:13:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 3A 0D 01 36 EF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 36 01 00 00 F4 03 04 00 0B A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 DF 02 00 35 04 06 00 BA 8A FA 4E 10 8B 22 8A 63 CA 44 F4 36 F7 [13:13:48]Write to MH i2c: 01 00 00 0D 0B 18 [13:13:48]Write i2c OK [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: 01 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: 01 07 00 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: 01 07 00 0D 0B 00 00 00 00 00 73 0C 9E [13:13:48]RasterBufferAndPrint [13:13:48]line [13:13:48]line [13:13:48]line [13:13:48]line [13:13:48]line [13:13:48]written 0, free lines is 3190 [13:13:48]MH_Cut [13:13:48]Write to MH i2c: D1 01 00 14 0B 01 F1 [13:13:48]Write i2c OK [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: D1 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: D1 01 00 [13:13:48]MH_I2C_Read... [13:13:48]Read from MH i2c: D1 01 00 14 0B 00 F0 [13:13:48]Write to MH i2c: 01 00 00 15 0B 20 [13:13:48]Write i2c OK [13:13:48]MH_I2C_Read... [13:13:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 73 FC 47 00 61 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 39 36 35 33 34 30 10 04 04 00 79 DF 02 00 F4 03 04 00 F8 4E 17 67 B6 04 01 00 00 C8 25 68 D0 D8 B1 C8 C4 [13:13:48]CommunicateWithHost err = 0 [13:13:48]CheckOFDResponse [13:13:48]1017 (14) - 77093643461234 [13:13:48]1041 (16) - 0000000000965340 [13:13:48]1040 (4) - 188281 [13:13:48]1012 (4) - 22.10.2024 07:06 [13:13:48]1206 (1) - 0 [13:13:48]OFD Sender: Remove packet 188281 [13:13:48]ProducePacketName [13:13:48]name=ofd_packets/00188281 [13:13:48]NVStorageDeleteData [13:13:49]OFD Sender: No OFD packet to send [13:13:49]*** Cut start [13:13:49]*** Partial cut [13:13:49]*** CUTSNS_PIN = 1 [13:13:49]*** CUTSNS_PIN = 0 [13:13:49]*** Brake cut motor [13:13:50]Read from MH i2c: 01 [13:13:50]MH_I2C_Read... [13:13:50]*** Stop cut motor [13:13:50]*** Cut end [13:13:50]Read from MH i2c: 01 07 00 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: 01 07 00 15 0B 00 00 00 00 00 FF 0F 35 [13:13:50]process_action close_receipt done [13:13:50]requested_data is exist [13:13:50]produce_requested_data [13:13:50]requested_item fm.sn is exist - process it [13:13:50]wFMCommunicate request_size=4 [13:13:50]MH_SAM_APDU [13:13:50]CAPDU: 80 11 00 00 [13:13:50]Write to MH i2c: E2 08 00 16 0B 80 11 00 00 00 00 00 00 9B [13:13:50]Write i2c OK [13:13:50]MH_I2C_Read... [13:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:13:50]Read from MH i2c: E2 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 17 00 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 17 00 16 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [13:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:13:50]wFMCommunicate OK [13:13:50]requested_item fd.num is exist - process it [13:13:50]SAM_PROTO_GetFieldsCounters [13:13:50]wFMCommunicate request_size=4 [13:13:50]MH_SAM_APDU [13:13:50]CAPDU: 80 13 00 00 [13:13:50]Write to MH i2c: E2 08 00 17 0B 80 13 00 00 00 00 00 00 9E [13:13:50]Write i2c OK [13:13:50]MH_I2C_Read... [13:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:13:50]Read from MH i2c: E2 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 62 00 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 62 00 17 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 72 [13:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 36 01 00 00 5E 04 04 00 36 01 00 00 57 04 04 00 37 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:13:50]wFMCommunicate OK [13:13:50]SAM_PROTO_GetFieldsCounters done [13:13:50]requested_item shift.num is exist - process it [13:13:50]requested_item shift.opened is exist - process it [13:13:50]req_shift_opened [13:13:50]FM_GetShiftState [13:13:50]SAM_PROTO_GetShiftState [13:13:50]wFMCommunicate request_size=4 [13:13:50]MH_SAM_APDU [13:13:50]CAPDU: 80 13 01 00 [13:13:50]Write to MH i2c: E2 08 00 18 0B 80 13 01 00 00 00 00 00 A0 [13:13:50]Write i2c OK [13:13:50]MH_I2C_Read... [13:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:13:50]Read from MH i2c: E2 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 0E 00 [13:13:50]MH_I2C_Read... [13:13:50]Read from MH i2c: E2 0E 00 18 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 95 [13:13:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:13:50]wFMCommunicate OK [13:13:50]SAM_PROTO_GetShiftState done [13:13:50]FM_GetShiftState done [13:13:50]req_shift_opened done [13:13:50]requested_item shift.open_date is exist - process it [13:13:50]req_shift_open_date [13:13:50]req_shift_open_date done [13:13:50]produce_requested_data done [13:13:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188281,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:13:50]process_action_free close_receipt [13:13:50]json_value_free [13:13:50]json_value_free done [13:13:50]process_json_proto returns [13:13:50]Send response to host [13:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188281,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:13:50]free response buf [13:13:50]execute_script done [13:13:50]execute_script returns [13:13:50]free content buf [13:13:50]Sock 7.Close socket [13:13:50]Sock 7.Thread stoped [13:13:54]OFD Sender: No OFD packet to send [13:13:59]OFD Sender: No OFD packet to send [13:14:04]OFD Sender: No OFD packet to send [13:14:09]OFD Sender: No OFD packet to send [13:14:14]OFD Sender: No OFD packet to send [13:14:19]OFD Sender: No OFD packet to send [13:14:24]OFD Sender: No OFD packet to send [13:14:29]OFD Sender: No OFD packet to send [13:14:34]OFD Sender: No OFD packet to send [13:14:39]OFD Sender: No OFD packet to send [13:14:44]OFD Sender: No OFD packet to send [13:14:49]OFD Sender: No OFD packet to send [13:14:54]OFD Sender: No OFD packet to send [13:14:59]OFD Sender: No OFD packet to send [13:15:04]OFD Sender: No OFD packet to send [13:15:09]OFD Sender: No OFD packet to send [13:15:14]OFD Sender: No OFD packet to send [13:15:19]OFD Sender: No OFD packet to send [13:15:24]OFD Sender: No OFD packet to send [13:15:29]OFD Sender: No OFD packet to send [13:15:34]OFD Sender: No OFD packet to send [13:15:39]OFD Sender: No OFD packet to send [13:15:44]OFD Sender: No OFD packet to send [13:15:49]OFD Sender: No OFD packet to send [13:15:54]OFD Sender: No OFD packet to send [13:15:59]OFD Sender: No OFD packet to send [13:16:04]OFD Sender: No OFD packet to send [13:16:06]accept exits with 9 [13:16:06]New connection [13:16:06]New thread 3067059556 created [13:16:06]Thread 3066916196 joined [13:16:06]Waiting for new connection... [13:16:06] Sock 9.Parse request [13:16:06]Sock 9.Check first char [13:16:06]Sock 9.First char is OK [13:16:06]request: POST /json_proto HTTP/1.0 [13:16:06]Method: POST [13:16:06]URL: /json_proto [13:16:06]Method is POST - this is cgi request [13:16:06]url: /json_proto [13:16:06]query_string will be loaded in cgi processing [13:16:06]execute_cgi json_proto POST (null) [13:16:06]execute_cgi path=json_proto method=POST [13:16:06]POST find Content-Length [13:16:06]Host: 172.17.42.131:8080 [13:16:06]Content-Length: 682 [13:16:06]Content-Type: application/json [13:16:06] [13:16:06]POST finish read [13:16:06]Found Content-Length = 682 [13:16:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210336", "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" : 47.950, "sum" : 3557.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4452.00, "total" : 3557.00, "payments": [ { "type": 0, "sum" : 3557.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:06]execute_script... [13:16: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)210336", "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" : 47.950, "sum" : 3557.89, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4452.00, "total" : 3557.00, "payments": [ { "type": 0, "sum" : 3557.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:16:06]POST & json_proto [13:16:06]process_json_proto [13:16:06]json parsed OK: [13:16:06]protocol is kg_v1.0 [13:16:06]action value=close_receipt [13:16:06]process_action close_receipt [13:16:06]cmd_close_receipt [13:16:06]MH_GetDate [13:16:06]Write to MH i2c: F0 00 00 19 0B 13 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: F0 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: F0 09 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: F0 09 00 19 0B 00 97 A5 17 67 A0 18 CA 66 BE [13:16:06]GetLastDocTimeStamp 1729602827 [13:16:06]current date 1729602967 [13:16:06]FM_GetShiftState [13:16:06]SAM_PROTO_GetShiftState [13:16:06]wFMCommunicate request_size=4 [13:16:06]MH_SAM_APDU [13:16:06]CAPDU: 80 13 01 00 [13:16:06]Write to MH i2c: E2 08 00 1A 0B 80 13 01 00 00 00 00 00 A2 [13:16:06]Write i2c OK [13:16:06]MH_I2C_Read... [13:16:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:06]Read from MH i2c: E2 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0E 00 [13:16:06]MH_I2C_Read... [13:16:06]Read from MH i2c: E2 0E 00 1A 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 97 [13:16:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:16:06]wFMCommunicate OK [13:16:06]SAM_PROTO_GetShiftState done [13:16:06]FM_GetShiftState done [13:16:06]opened in 1729556094 [13:16:06]opened+sec_in_day 1729642494 [13:16:06]quantity*price = 355789 [13:16:06]sum+1 = 355790 [13:16:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.89 ИТОГО: 3557.00 Внесено: 4452.00 СДАЧА: 895.00 НСП 1% : 31.49 НДС 12% : 377.83 Наличными: 3557.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 311 22.10.2024 13:16 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188282 ФПД: 106177331647040 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188282&fm=106177331647040&tin=02508201610067®Number=0000000000100030&sum=355700 [13:16:07]StoreToDocumentArchive [13:16:07]shift 461 fd 188282 [13:16:07]save to /storage/0461/doc_00188282 [13:16:07]save last doc name /storage/0461/doc_00188282 to /storage/kkm_last_doc_name [13:16:07]save OK [13:16:07]Clear old archive folders... [13:16:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:16:07]tlvbuf is 01E5B140 [13:16:07]SAM_PROTO_ClearQueue [13:16:07]wFMCommunicate request_size=4 [13:16:07]MH_SAM_APDU [13:16:07]CAPDU: 80 09 00 00 [13:16:07]Write to MH i2c: E2 08 00 27 0B 80 09 00 00 00 00 00 00 A4 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:16:07]Read from MH i2c: E2 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 27 0B 00 90 00 A6 [13:16:07]RAPDU: 90 00 [13:16:07]wFMCommunicate OK [13:16:07]SAM_PROTO_ClearQueue done [13:16:07]KKMCreateOFDPacket [13:16:07]OFDProtocolAddRootSTLVToBuf [13:16:07]FM_MakeSignedData [13:16:07]FM_MakeSignedData [13:16:07]SAM_PROTO_SignData [13:16:07]wFMCommunicate request_size=4 [13:16:07]MH_SAM_APDU [13:16:07]CAPDU: 80 0D 01 02 [13:16:07]Write to MH i2c: E2 08 00 28 0B 80 0D 01 02 00 00 00 00 AC [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:16:07]Read from MH i2c: E2 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 [13:16:07]MH_I2C_Read... [13:16:07]Read from MH i2c: E2 03 00 28 0B 00 90 00 A7 [13:16:07]RAPDU: 90 00 [13:16:07]wFMCommunicate OK [13:16:07]wFMCommunicate request_size=255 [13:16:07]MH_SAM_APDU [13:16: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 4E BB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CD 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 93 00 00 00 00 07 04 06 00 74 6D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 97 A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DF 02 00 35 04 06 00 60 [13:16:07]Write to MH i2c: E2 02 01 29 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 4E BB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CD 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 93 00 00 00 00 07 04 06 00 74 6D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 97 A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DF 02 00 35 04 06 00 60 00 00 C8 [13:16:07]Write i2c OK [13:16:07]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 29 0B 00 90 00 A8 [13:16:08]RAPDU: 90 00 [13:16:08]wFMCommunicate OK [13:16:08]wFMCommunicate request_size=10 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 0D 02 02 05 91 56 22 D2 40 [13:16:08]Write to MH i2c: E2 0D 00 2A 0B 80 0D 02 02 05 00 91 56 22 D2 40 00 00 D4 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 03 00 2A 0B 00 90 00 A9 [13:16:08]RAPDU: 90 00 [13:16:08]wFMCommunicate OK [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 0D 03 02 [13:16:08]Write to MH i2c: E2 08 00 2B 0B 80 0D 03 02 00 00 00 00 B1 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0B 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 0B 00 2B 0B 00 84 35 7F B3 9F FB 90 41 90 00 08 [13:16:08]RAPDU: 84 35 7F B3 9F FB 90 41 90 00 [13:16:08]wFMCommunicate OK [13:16:08]SAM_PROTO_SignData done [13:16:08]FM_MakeSignedData done [13:16:08]CreateOFDProtocolMessage [13:16:08]wFMCommunicate request_size=4 [13:16:08]MH_SAM_APDU [13:16:08]CAPDU: 80 11 00 00 [13:16:08]Write to MH i2c: E2 08 00 2C 0B 80 11 00 00 00 00 00 00 B1 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:08]Read from MH i2c: E2 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 17 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: E2 17 00 2C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [13:16:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:16:08]wFMCommunicate OK [13:16:08]CreateOFDProtocolMessage done [13:16:08]OFDSenderStorePacket 188282 [13:16:08]StoreOFDPacket docnum=188282 [13:16:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D5 87 07 01 D1 C6 5A 03 01 00 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 4E BB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CD 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 93 00 00 00 00 07 04 06 00 74 6D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 97 A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DF 02 00 35 04 06 00 60 91 56 22 D2 40 84 35 7F B3 9F FB 90 41 [13:16:08]CheckFolder [13:16:08]dirname=/storage/ofd_packets [13:16:08]CheckFolder done [13:16:08]ProducePacketName [13:16:08]name=ofd_packets/00188282 [13:16:08]NVStorageSaveData ofd_packets/00188282 [13:16:08]File name is /storage/ofd_packets/00188282 [13:16:08]Write 301 bytes [13:16:08]NVStorageSaveData done [13:16:08]OFDSenderStorePacket done [13:16:08]KKMCreateOFDPacket done [13:16:08]NVStorageSaveData kkm_last_timestamp [13:16:08]File name is /storage/kkm_last_timestamp [13:16:08]Write 4 bytes [13:16:08]NVStorageSaveData done [13:16:08]ExternCall_PrintAddStr [13:16:08]wPrintStart [13:16:08]Write to MH i2c: 01 00 00 2D 0B 38 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 2D 0B 00 00 00 00 00 FF 0F 4D [13:16:08]RasterBufferAndPrint [13:16:08]line Счет N : (1)210336 [13:16:08]line ИНН: 02508201610067 [13:16:08]line Контрольно-Кассовый Чек [13:16:08]line ПРОДАЖА [13:16:08]line ТРК (МРК, ГНК) : 33 [13:16:08]line Товар: 2710124500 [13:16:08]line Аи-95-К-3 [13:16:08]line 47.950 * 74.20 [13:16:08]line = 3557.89 [13:16:08]line НДС 12% НСП 1% [13:16:08]line > о реализуемом товаре [13:16:08]line ОКРУГЛЕНИЕ: -0.89 [13:16:08]line ИТОГО: 3557.00 [13:16:08]line Внесено: 4452.00 [13:16:08]line СДАЧА: 895.00 [13:16:08]line НСП 1% : 31.49 [13:16:08]line НДС 12% : 377.83 [13:16:08]line Наличными: 3557.00 [13:16:08]line Безнал.: 0.00 [13:16:08]line Место: АЗС № 86 "Партнер Нефть" [13:16:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:16:08]line СНО: Общий режим [13:16:08]line Чек 311 22.10.2024 13:16 [13:16:08]line Смена: 461 ФФД: 1.0 [13:16:08]line ЗНМ: 0300000155 [13:16:08]line РНМ: 0000000000100030 [13:16:08]line Версия ККМ: 001 [13:16:08]line ФМ: 0000000000965340 [13:16:08]line ФД: 188282 [13:16:08]line ФПД: 106177331647040 [13:16:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T131607&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188282&fm=106177331647040&tin=02508201610067®Number=0000000000100030&sum=355700 [13:16:08]written 0, free lines is 4095 [13:16:08]OFD Sender: Processing packet 188282 [packets to send 1062, broken 1061] [13:16:08]ProducePacketName [13:16:08]name=ofd_packets/00188282 [13:16:08]OFD Sender: To server: pG, [13:16:08]CommunicateWithHost lk.salyk.kg:30040 [13:16:08]ConnectInit lk.salyk.kg [13:16:08]Connected sock=10 [13:16:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D5 87 07 01 D1 C6 5A 03 01 00 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 4E BB 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 CD 6D 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 6D 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4D 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 93 00 00 00 00 07 04 06 00 74 6D 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 01 00 00 F4 03 04 00 97 A5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A DF 02 00 35 04 06 00 60 91 56 22 D2 40 84 35 7F B3 9F FB 90 41 [13:16:08]Write to MH i2c: 01 00 00 58 0B 63 [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: 01 07 00 58 0B 00 00 00 00 00 70 0C E6 [13:16:08]RasterBufferAndPrint [13:16:08]line [13:16:08]line [13:16:08]line [13:16:08]line [13:16:08]line [13:16:08]written 0, free lines is 3186 [13:16:08]MH_Cut [13:16:08]Write to MH i2c: D1 01 00 5F 0B 01 3C [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: D1 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: D1 01 00 [13:16:08]MH_I2C_Read... [13:16:08]Read from MH i2c: D1 01 00 5F 0B 00 3B [13:16:08]Write to MH i2c: 01 00 00 60 0B 6B [13:16:08]Write i2c OK [13:16:08]MH_I2C_Read... [13:16:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 05 47 00 DB 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 39 36 35 33 34 30 10 04 04 00 7A DF 02 00 F4 03 04 00 84 4F 17 67 B6 04 01 00 00 4D F6 55 6D C5 5F 4A 60 [13:16:08]CommunicateWithHost err = 0 [13:16:08]CheckOFDResponse [13:16:08]1017 (14) - 77093643461234 [13:16:08]1041 (16) - 0000000000965340 [13:16:08]1040 (4) - 188282 [13:16:08]1012 (4) - 22.10.2024 07:08 [13:16:08]1206 (1) - 0 [13:16:08]OFD Sender: Remove packet 188282 [13:16:08]ProducePacketName [13:16:08]name=ofd_packets/00188282 [13:16:08]NVStorageDeleteData [13:16:09]OFD Sender: No OFD packet to send [13:16:09]*** Cut start [13:16:09]*** Partial cut [13:16:09]*** CUTSNS_PIN = 1 [13:16:09]*** CUTSNS_PIN = 0 [13:16:10]*** Brake cut motor [13:16:10]Read from MH i2c: 01 [13:16:10]MH_I2C_Read... [13:16:10]*** Stop cut motor [13:16:10]*** Cut end [13:16:10]Read from MH i2c: 01 07 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: 01 07 00 60 0B 00 00 00 00 00 FF 0F 80 [13:16:10]process_action close_receipt done [13:16:10]requested_data is exist [13:16:10]produce_requested_data [13:16:10]requested_item fm.sn is exist - process it [13:16:10]wFMCommunicate request_size=4 [13:16:10]MH_SAM_APDU [13:16:10]CAPDU: 80 11 00 00 [13:16:10]Write to MH i2c: E2 08 00 61 0B 80 11 00 00 00 00 00 00 E6 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:16:10]Read from MH i2c: E2 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 17 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 17 00 61 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [13:16:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:16:10]wFMCommunicate OK [13:16:10]requested_item fd.num is exist - process it [13:16:10]SAM_PROTO_GetFieldsCounters [13:16:10]wFMCommunicate request_size=4 [13:16:10]MH_SAM_APDU [13:16:10]CAPDU: 80 13 00 00 [13:16:10]Write to MH i2c: E2 08 00 62 0B 80 13 00 00 00 00 00 00 E9 [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:16:10]Read from MH i2c: E2 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 62 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 62 00 62 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 C1 [13:16:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:16:10]wFMCommunicate OK [13:16:10]SAM_PROTO_GetFieldsCounters done [13:16:10]requested_item shift.num is exist - process it [13:16:10]requested_item shift.opened is exist - process it [13:16:10]req_shift_opened [13:16:10]FM_GetShiftState [13:16:10]SAM_PROTO_GetShiftState [13:16:10]wFMCommunicate request_size=4 [13:16:10]MH_SAM_APDU [13:16:10]CAPDU: 80 13 01 00 [13:16:10]Write to MH i2c: E2 08 00 63 0B 80 13 01 00 00 00 00 00 EB [13:16:10]Write i2c OK [13:16:10]MH_I2C_Read... [13:16:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:16:10]Read from MH i2c: E2 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 0E 00 [13:16:10]MH_I2C_Read... [13:16:10]Read from MH i2c: E2 0E 00 63 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E0 [13:16:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:16:10]wFMCommunicate OK [13:16:10]SAM_PROTO_GetShiftState done [13:16:10]FM_GetShiftState done [13:16:10]req_shift_opened done [13:16:10]requested_item shift.open_date is exist - process it [13:16:10]req_shift_open_date [13:16:10]req_shift_open_date done [13:16:10]produce_requested_data done [13:16:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188282,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:16:10]process_action_free close_receipt [13:16:10]json_value_free [13:16:10]json_value_free done [13:16:10]process_json_proto returns [13:16:10]Send response to host [13:19:47]ConnectInit Can't connect to host [13:19:50]OFD Sender: No OFD packet to send [13:19:55]OFD Sender: No OFD packet to send [13:20:00]OFD Sender: No OFD packet to send [13:20:05]OFD Sender: No OFD packet to send [13:20:05]accept exits with 9 [13:20:05]New connection [13:20:05]New thread 3067305316 created [13:20:05]Waiting for new connection... [13:20:05] Sock 9.Parse request [13:20:05]Sock 9.Check first char [13:20:05]Sock 9.First char is OK [13:20:05]request: POST /json_proto HTTP/1.0 [13:20:05]Method: POST [13:20:05]URL: /json_proto [13:20:05]Method is POST - this is cgi request [13:20:05]url: /json_proto [13:20:05]query_string will be loaded in cgi processing [13:20:05]execute_cgi json_proto POST (null) [13:20:05]execute_cgi path=json_proto method=POST [13:20:05]POST find Content-Length [13:20:05]Host: 172.17.42.131:8080 [13:20:05]Content-Length: 215 [13:20:05]Content-Type: application/json [13:20:05] [13:20:05]POST finish read [13:20:05]Found Content-Length = 215 [13:20:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:05]execute_script... [13:20:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:05]POST & json_proto [13:20:05]process_json_proto [13:20:05]json parsed OK: [13:20:05]protocol is kg_v1.0 [13:20:05]action value=get_value [13:20:05]process_action get_value [13:20:05]cmd_get_value [13:20:05]process_action get_value done [13:20:05]requested_data is exist [13:20:05]produce_requested_data [13:20:05]requested_item kkm.sn is exist - process it [13:20:05]requested_item kkm.ver is exist - process it [13:20:05]requested_item fm.sn is exist - process it [13:20:05]wFMCommunicate request_size=4 [13:20:05]MH_SAM_APDU [13:20:05]CAPDU: 80 11 00 00 [13:20:05]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [13:20:05]Write i2c OK [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 [13:20:05]MH_I2C_Read... [13:20:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:05]Read from MH i2c: E2 17 00 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [13:20:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:20:05]wFMCommunicate OK [13:20:05]requested_item fd.num is exist - process it [13:20:05]SAM_PROTO_GetFieldsCounters [13:20:05]wFMCommunicate request_size=4 [13:20:05]MH_SAM_APDU [13:20:05]CAPDU: 80 13 00 00 [13:20:05]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [13:20:05]Write i2c OK [13:20:05]MH_I2C_Read... [13:20:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:05]Read from MH i2c: E2 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 62 00 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [13:20:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 37 01 00 00 5E 04 04 00 37 01 00 00 57 04 04 00 38 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:05]wFMCommunicate OK [13:20:05]SAM_PROTO_GetFieldsCounters done [13:20:05]requested_item shift.num is exist - process it [13:20:05]requested_item shift.opened is exist - process it [13:20:05]req_shift_opened [13:20:05]FM_GetShiftState [13:20:05]SAM_PROTO_GetShiftState [13:20:05]wFMCommunicate request_size=4 [13:20:05]MH_SAM_APDU [13:20:05]CAPDU: 80 13 01 00 [13:20:05]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [13:20:05]Write i2c OK [13:20:05]MH_I2C_Read... [13:20:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:05]Read from MH i2c: E2 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 0E 00 [13:20:05]MH_I2C_Read... [13:20:05]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [13:20:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:20:05]wFMCommunicate OK [13:20:05]SAM_PROTO_GetShiftState done [13:20:05]FM_GetShiftState done [13:20:05]req_shift_opened done [13:20:05]requested_item shift.open_date is exist - process it [13:20:05]req_shift_open_date [13:20:05]req_shift_open_date done [13:20:05]produce_requested_data done [13:20:05]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188282,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:20:05]process_action_free get_value [13:20:05]json_value_free [13:20:05]json_value_free done [13:20:05]process_json_proto returns [13:20:05]Send response to host [13:20:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188282,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:20:05]free response buf [13:20:05]execute_script done [13:20:05]execute_script returns [13:20:05]free content buf [13:20:05]Sock 9.Close socket [13:20:05]Sock 9.Thread stoped [13:20:05]accept exits with 10 [13:20:05]New connection [13:20:05]New thread 3067161956 created [13:20:05]Thread 3067305316 joined [13:20:05]Waiting for new connection... [13:20:05] Sock 10.Parse request [13:20:05]Sock 10.Check first char [13:20:05]Sock 10.First char is OK [13:20:05]request: POST /json_proto HTTP/1.0 [13:20:05]Method: POST [13:20:05]URL: /json_proto [13:20:05]Method is POST - this is cgi request [13:20:05]url: /json_proto [13:20:05]query_string will be loaded in cgi processing [13:20:05]execute_cgi json_proto POST (null) [13:20:05]execute_cgi path=json_proto method=POST [13:20:05]POST find Content-Length [13:20:05]Host: 172.17.42.131:8080 [13:20:05]Content-Length: 331 [13:20:05]Content-Type: application/json [13:20:05] [13:20:05]POST finish read [13:20:05]Found Content-Length = 331 [13:20: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" ] } } [13:20:05]execute_script... [13:20: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" ] } } [13:20:05]POST & json_proto [13:20:05]process_json_proto [13:20:05]json parsed OK: [13:20:05]protocol is kg_v1.0 [13:20:05]action value=get_value [13:20:05]process_action get_value [13:20:05]cmd_get_value [13:20:05]process_action get_value done [13:20:05]requested_data is exist [13:20:05]produce_requested_data [13:20:05]requested_item fm.sale.total is exist - process it [13:20:05]SAM_PROTO_GetFMData [13:20:05]wFMCommunicate request_size=4 [13:20:05]MH_SAM_APDU [13:20:05]CAPDU: 80 13 03 00 [13:20:05]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [13:20:05]Write i2c OK [13:20:05]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 FD 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 E0 DB 02 00 69 04 A4 00 6F 04 04 00 51 DB 02 00 B1 04 05 00 6D 4A 93 BA 06 70 04 05 00 3C 56 31 A1 04 72 04 05 00 31 F4 61 19 02 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 CC 8A F6 B6 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 73 FC 3E 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 76 [13:20:06]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E0 DB 02 00 69 04 A4 00 6F 04 04 00 51 DB 02 00 B1 04 05 00 6D 4A 93 BA 06 70 04 05 00 3C 56 31 A1 04 72 04 05 00 31 F4 61 19 02 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 CC 8A F6 B6 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 73 FC 3E 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [13:20:06]wFMCommunicate OK [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 17 00 00 [13:20:06]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 FD 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 FD 00 14 00 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 61 [13:20:06]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [13:20:06]wFMCommunicate OK [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 17 00 00 [13:20:06]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:20:06]Read from MH i2c: E2 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 FD 00 [13:20:06]MH_I2C_Read... [13:20:06]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [13:20:06]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:20:06]wFMCommunicate OK [13:20:06]wFMCommunicate request_size=4 [13:20:06]MH_SAM_APDU [13:20:06]CAPDU: 80 17 00 00 [13:20:06]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [13:20:06]Write i2c OK [13:20:06]MH_I2C_Read... [13:20:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:20:07]Read from MH i2c: E2 [13:20:07]MH_I2C_Read... [13:20:07]Read from MH i2c: E2 FD 00 [13:20:07]MH_I2C_Read... [13:20:07]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [13:20:07]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:20:07]wFMCommunicate OK [13:20:07]wFMCommunicate request_size=4 [13:20:07]MH_SAM_APDU [13:20:07]CAPDU: 80 17 00 00 [13:20:07]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [13:20:07]Write i2c OK [13:20:07]MH_I2C_Read... [13:20:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [13:20:07]Read from MH i2c: E2 [13:20:07]MH_I2C_Read... [13:20:07]Read from MH i2c: E2 E8 00 [13:20:07]MH_I2C_Read... [13:20:07]Read from MH i2c: E2 E8 00 17 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [13:20:07]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:20:07]wFMCommunicate OK [13:20:07]SAM_PROTO_GetFMData done [13:20:07]requested_item fm.sale_refund.total is exist - process it [13:20:07]requested_item fm.buy.total is exist - process it [13:20:07]requested_item shift.sale.total is exist - process it [13:20:07]SAM_PROTO_GetShiftData [13:20:07]wFMCommunicate request_size=4 [13:20:07]MH_SAM_APDU [13:20:07]CAPDU: 80 13 02 00 [13:20:07]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [13:20:07]Write i2c OK [13:20:07]MH_I2C_Read... [13:20:07]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [13:20:07]Read from MH i2c: E2 [13:20:07]MH_I2C_Read... [13:20:07]Read from MH i2c: E2 FD 00 [13:20:07]MH_I2C_Read... [13:20:07]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 37 01 00 00 69 04 9E 00 6F 04 04 00 37 01 00 00 B1 04 04 00 CE 15 94 02 70 04 04 00 70 83 14 02 72 04 03 00 5E 92 7F 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 A7 1C 46 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 9F D7 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 52 [13:20:07]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 37 01 00 00 69 04 9E 00 6F 04 04 00 37 01 00 00 B1 04 04 00 CE 15 94 02 70 04 04 00 70 83 14 02 72 04 03 00 5E 92 7F 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 A7 1C 46 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 9F D7 05 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [13:20:07]wFMCommunicate OK [13:20:07]wFMCommunicate request_size=4 [13:20:07]MH_SAM_APDU [13:20:07]CAPDU: 80 17 00 00 [13:20:07]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [13:20:07]Write i2c OK [13:20:07]MH_I2C_Read... [13:20:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:20:08]Read from MH i2c: E2 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 FD 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [13:20:08]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:20:08]wFMCommunicate OK [13:20:08]wFMCommunicate request_size=4 [13:20:08]MH_SAM_APDU [13:20:08]CAPDU: 80 17 00 00 [13:20:08]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:20:08]Read from MH i2c: E2 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 FD 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [13:20:08]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [13:20:08]wFMCommunicate OK [13:20:08]wFMCommunicate request_size=4 [13:20:08]MH_SAM_APDU [13:20:08]CAPDU: 80 17 00 00 [13:20:08]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [13:20:08]Read from MH i2c: E2 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 FD 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [13:20:08]RAPDU: 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 90 00 [13:20:08]wFMCommunicate OK [13:20:08]wFMCommunicate request_size=4 [13:20:08]MH_SAM_APDU [13:20:08]CAPDU: 80 17 00 00 [13:20:08]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [13:20:08]Write i2c OK [13:20:08]MH_I2C_Read... [13:20:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [13:20:08]Read from MH i2c: E2 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 CE 00 [13:20:08]MH_I2C_Read... [13:20:08]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [13:20:08]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [13:20:08]wFMCommunicate OK [13:20:08]SAM_PROTO_GetShiftData done [13:20:08]requested_item shift.sale.total_cash is exist - process it [13:20:08]requested_item shift.sale_refund.total is exist - process it [13:20:08]requested_item shift.sale_refund.total_cash is exist - process it [13:20:08]requested_item shift.buy.total is exist - process it [13:20:08]requested_item shift.buy.total_cash is exist - process it [13:20:08]produce_requested_data done [13:20:08]produce_requested_data return {"fm.sale.total":289000187.97,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":432593.42,"shift.sale.total_cash":348988.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [13:20:08]process_action_free get_value [13:20:08]json_value_free [13:20:08]json_value_free done [13:20:08]process_json_proto returns [13:20:08]Send response to host [13:20:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289000187.97,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":432593.42,"shift.sale.total_cash":348988.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [13:20:08]free response buf [13:20:08]execute_script done [13:20:08]execute_script returns [13:20:08]free content buf [13:20:08]Sock 10.Close socket [13:20:08]Sock 10.Thread stoped [13:20:10]OFD Sender: No OFD packet to send [13:20:15]OFD Sender: No OFD packet to send [13:20:20]OFD Sender: No OFD packet to send [13:20:25]OFD Sender: No OFD packet to send [13:20:28]accept exits with 9 [13:20:28]New connection [13:20:28]New thread 3067305316 created [13:20:28]Thread 3067161956 joined [13:20:28]Waiting for new connection... [13:20:28] Sock 9.Parse request [13:20:28]Sock 9.Check first char [13:20:28]Sock 9.First char is OK [13:20:28]request: POST /json_proto HTTP/1.0 [13:20:28]Method: POST [13:20:28]URL: /json_proto [13:20:28]Method is POST - this is cgi request [13:20:28]url: /json_proto [13:20:28]query_string will be loaded in cgi processing [13:20:28]execute_cgi json_proto POST (null) [13:20:28]execute_cgi path=json_proto method=POST [13:20:28]POST find Content-Length [13:20:28]Host: 172.17.42.131:8080 [13:20:28]Content-Length: 683 [13:20:28]Content-Type: application/json [13:20:28] [13:20:28]POST finish read [13:20:28]Found Content-Length = 683 [13:20:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124100", "name": "D-ENERGY \u0414\u0422-\u041A-1", "price" : 77.20, "quantity" : 8.550, "sum" : 660.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:28]execute_script... [13:20: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)210338", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710124100", "name": "D-ENERGY \u0414\u0422-\u041A-1", "price" : 77.20, "quantity" : 8.550, "sum" : 660.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 660.00, "total" : 660.00, "payments": [ { "type": 0, "sum" : 660.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:28]POST & json_proto [13:20:28]process_json_proto [13:20:28]json parsed OK: [13:20:28]protocol is kg_v1.0 [13:20:28]action value=close_receipt [13:20:28]process_action close_receipt [13:20:28]cmd_close_receipt [13:20:28]MH_GetDate [13:20:28]Write to MH i2c: F0 00 00 1D 00 0C [13:20:28]Write i2c OK [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: F0 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: F0 09 00 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: F0 09 00 1D 00 00 9D A6 17 67 A0 18 CA 66 BE [13:20:28]GetLastDocTimeStamp 97 [13:20:28]current date 1729603229 [13:20:28]FM_GetShiftState [13:20:28]SAM_PROTO_GetShiftState [13:20:28]wFMCommunicate request_size=4 [13:20:28]MH_SAM_APDU [13:20:28]CAPDU: 80 13 01 00 [13:20:28]Write to MH i2c: E2 08 00 1E 00 80 13 01 00 00 00 00 00 9B [13:20:28]Write i2c OK [13:20:28]MH_I2C_Read... [13:20:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:28]Read from MH i2c: E2 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: E2 0E 00 [13:20:28]MH_I2C_Read... [13:20:28]Read from MH i2c: E2 0E 00 1E 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 90 [13:20:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:20:28]wFMCommunicate OK [13:20:28]SAM_PROTO_GetShiftState done [13:20:28]FM_GetShiftState done [13:20:28]opened in 1729556094 [13:20:28]opened+sec_in_day 1729642494 [13:20:28]quantity*price = 66006 [13:20:28]sum+1 = 66007 [13:20:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 660.00 Внесено: 660.00 СДАЧА: 0.00 НСП 1% : 5.84 НДС 12% : 70.09 Наличными: 660.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 312 22.10.2024 13:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188283 ФПД: 137614150552792 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188283&fm=137614150552792&tin=02508201610067®Number=0000000000100030&sum=66000 [13:20:29]StoreToDocumentArchive [13:20:29]shift 461 fd 188283 [13:20:29]save to /storage/0461/doc_00188283 [13:20:29]save last doc name /storage/0461/doc_00188283 to /storage/kkm_last_doc_name [13:20:29]save OK [13:20:29]Clear old archive folders... [13:20:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:20:29]tlvbuf is 01451AE0 [13:20:29]SAM_PROTO_ClearQueue [13:20:29]wFMCommunicate request_size=4 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 09 00 00 [13:20:29]Write to MH i2c: E2 08 00 2B 00 80 09 00 00 00 00 00 00 9D [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 2B 00 00 90 00 9F [13:20:29]RAPDU: 90 00 [13:20:29]wFMCommunicate OK [13:20:29]SAM_PROTO_ClearQueue done [13:20:29]KKMCreateOFDPacket [13:20:29]OFDProtocolAddRootSTLVToBuf [13:20:29]FM_MakeSignedData [13:20:29]FM_MakeSignedData [13:20:29]SAM_PROTO_SignData [13:20:29]wFMCommunicate request_size=4 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 0D 01 02 [13:20:29]Write to MH i2c: E2 08 00 2C 00 80 0D 01 02 00 00 00 00 A5 [13:20:29]Write i2c OK [13:20:29]MH_I2C_Read... [13:20:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:29]Read from MH i2c: E2 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 [13:20:29]MH_I2C_Read... [13:20:29]Read from MH i2c: E2 03 00 2C 00 00 90 00 A0 [13:20:29]RAPDU: 90 00 [13:20:29]wFMCommunicate OK [13:20:29]wFMCommunicate request_size=255 [13:20:29]MH_SAM_APDU [13:20:29]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D6 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9D A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DF 02 [13:20:29]Write to MH i2c: E2 02 01 2D 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D6 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9D A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DF 02 00 00 46 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 2D 00 00 90 00 A1 [13:20:30]RAPDU: 90 00 [13:20:30]wFMCommunicate OK [13:20:30]wFMCommunicate request_size=16 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7D 28 CA 8F 4C D8 [13:20:30]Write to MH i2c: E2 13 00 2E 00 80 0D 02 02 0B 00 00 35 04 06 00 7D 28 CA 8F 4C D8 00 00 1F [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 03 00 2E 00 00 90 00 A2 [13:20:30]RAPDU: 90 00 [13:20:30]wFMCommunicate OK [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 0D 03 02 [13:20:30]Write to MH i2c: E2 08 00 2F 00 80 0D 03 02 00 00 00 00 AA [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 0B 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 0B 00 2F 00 00 25 52 9B DB 32 E6 F6 96 90 00 3C [13:20:30]RAPDU: 25 52 9B DB 32 E6 F6 96 90 00 [13:20:30]wFMCommunicate OK [13:20:30]SAM_PROTO_SignData done [13:20:30]FM_MakeSignedData done [13:20:30]CreateOFDProtocolMessage [13:20:30]wFMCommunicate request_size=4 [13:20:30]MH_SAM_APDU [13:20:30]CAPDU: 80 11 00 00 [13:20:30]Write to MH i2c: E2 08 00 30 00 80 11 00 00 00 00 00 00 AA [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]OFD Sender: No OFD packet to send [13:20:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:30]Read from MH i2c: E2 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 17 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: E2 17 00 30 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [13:20:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:20:30]wFMCommunicate OK [13:20:30]CreateOFDProtocolMessage done [13:20:30]OFDSenderStorePacket 188283 [13:20:30]StoreOFDPacket docnum=188283 [13:20:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AF 4E 0D 01 00 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D6 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9D A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DF 02 00 35 04 06 00 7D 28 CA 8F 4C D8 25 52 9B DB 32 E6 F6 96 [13:20:30]CheckFolder [13:20:30]dirname=/storage/ofd_packets [13:20:30]CheckFolder done [13:20:30]ProducePacketName [13:20:30]name=ofd_packets/00188283 [13:20:30]NVStorageSaveData ofd_packets/00188283 [13:20:30]File name is /storage/ofd_packets/00188283 [13:20:30]Write 307 bytes [13:20:30]NVStorageSaveData done [13:20:30]OFDSenderStorePacket done [13:20:30]KKMCreateOFDPacket done [13:20:30]NVStorageSaveData kkm_last_timestamp [13:20:30]File name is /storage/kkm_last_timestamp [13:20:30]Write 4 bytes [13:20:30]NVStorageSaveData done [13:20:30]ExternCall_PrintAddStr [13:20:30]wPrintStart [13:20:30]Write to MH i2c: 01 00 00 31 00 31 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 31 00 00 00 00 00 00 FF 0F 46 [13:20:30]RasterBufferAndPrint [13:20:30]line Счет N : (1)210338 [13:20:30]line ИНН: 02508201610067 [13:20:30]line Контрольно-Кассовый Чек [13:20:30]line ПРОДАЖА [13:20:30]line ТРК (МРК, ГНК) : 11 [13:20:30]line Товар: 2710124100 [13:20:30]line D-ENERGY ДТ-К-1 [13:20:30]line 8.550 * 77.20 [13:20:30]line = 660.06 [13:20:30]line НДС 12% НСП 1% [13:20:30]line > о реализуемом товаре [13:20:30]line ОКРУГЛЕНИЕ: -0.06 [13:20:30]line ИТОГО: 660.00 [13:20:30]line Внесено: 660.00 [13:20:30]line СДАЧА: 0.00 [13:20:30]line НСП 1% : 5.84 [13:20:30]line НДС 12% : 70.09 [13:20:30]line Наличными: 660.00 [13:20:30]line Безнал.: 0.00 [13:20:30]line Место: АЗС № 86 "Партнер Нефть" [13:20:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:20:30]line СНО: Общий режим [13:20:30]line Чек 312 22.10.2024 13:20 [13:20:30]line Смена: 461 ФФД: 1.0 [13:20:30]line ЗНМ: 0300000155 [13:20:30]line РНМ: 0000000000100030 [13:20:30]line Версия ККМ: 001 [13:20:30]line ФМ: 0000000000965340 [13:20:30]line ФД: 188283 [13:20:30]line ФПД: 137614150552792 [13:20:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188283&fm=137614150552792&tin=02508201610067®Number=0000000000100030&sum=66000 [13:20:30]written 0, free lines is 4095 [13:20:30]OFD Sender: Processing packet 188283 [packets to send 1062, broken 1061] [13:20:30]ProducePacketName [13:20:30]name=ofd_packets/00188283 [13:20:30]OFD Sender: To server: pG, [13:20:30]CommunicateWithHost lk.salyk.kg:30040 [13:20:30]ConnectInit lk.salyk.kg [13:20:30]Write to MH i2c: 01 00 00 5C 00 5C [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: 01 07 00 5C 00 00 00 00 00 00 6A 0C D9 [13:20:30]RasterBufferAndPrint [13:20:30]line [13:20:30]line [13:20:30]line [13:20:30]line [13:20:30]line [13:20:30]written 0, free lines is 3180 [13:20:30]MH_Cut [13:20:30]Write to MH i2c: D1 01 00 63 00 01 35 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: D1 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: D1 01 00 [13:20:30]MH_I2C_Read... [13:20:30]Read from MH i2c: D1 01 00 63 00 00 34 [13:20:30]Write to MH i2c: 01 00 00 64 00 64 [13:20:30]Write i2c OK [13:20:30]MH_I2C_Read... [13:20:31]Connected sock=10 [13:20:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AF 4E 0D 01 00 02 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 31 FF 03 08 00 03 66 21 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 D6 01 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 01 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 48 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 1B 00 00 00 00 07 04 06 00 D0 01 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 01 00 00 F4 03 04 00 9D A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B DF 02 00 35 04 06 00 7D 28 CA 8F 4C D8 25 52 9B DB 32 E6 F6 96 [13:20:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F1 CC 47 00 86 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 39 36 35 33 34 30 10 04 04 00 7B DF 02 00 F4 03 04 00 8B 50 17 67 B6 04 01 00 00 00 54 F8 60 0E 00 F0 6C [13:20:31]CommunicateWithHost err = 0 [13:20:31]CheckOFDResponse [13:20:31]1017 (14) - 77093643461234 [13:20:31]1041 (16) - 0000000000965340 [13:20:31]1040 (4) - 188283 [13:20:31]1012 (4) - 22.10.2024 07:13 [13:20:31]1206 (1) - 0 [13:20:31]OFD Sender: Remove packet 188283 [13:20:31]ProducePacketName [13:20:31]name=ofd_packets/00188283 [13:20:31]NVStorageDeleteData [13:20:31]OFD Sender: No OFD packet to send [13:20:32]*** Cut start [13:20:32]*** Partial cut [13:20:32]*** CUTSNS_PIN = 1 [13:20:32]*** CUTSNS_PIN = 0 [13:20:32]*** Brake cut motor [13:20:32]Read from MH i2c: 01 [13:20:32]MH_I2C_Read... [13:20:32]*** Stop cut motor [13:20:32]*** Cut end [13:20:32]Read from MH i2c: 01 07 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: 01 07 00 64 00 00 00 00 00 00 FF 0F 79 [13:20:32]process_action close_receipt done [13:20:32]requested_data is exist [13:20:32]produce_requested_data [13:20:32]requested_item fm.sn is exist - process it [13:20:32]wFMCommunicate request_size=4 [13:20:32]MH_SAM_APDU [13:20:32]CAPDU: 80 11 00 00 [13:20:32]Write to MH i2c: E2 08 00 65 00 80 11 00 00 00 00 00 00 DF [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:32]Read from MH i2c: E2 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 17 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 17 00 65 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [13:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:20:32]wFMCommunicate OK [13:20:32]requested_item fd.num is exist - process it [13:20:32]SAM_PROTO_GetFieldsCounters [13:20:32]wFMCommunicate request_size=4 [13:20:32]MH_SAM_APDU [13:20:32]CAPDU: 80 13 00 00 [13:20:32]Write to MH i2c: E2 08 00 66 00 80 13 00 00 00 00 00 00 E2 [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:32]Read from MH i2c: E2 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 62 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 62 00 66 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 BE [13:20:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 38 01 00 00 5E 04 04 00 38 01 00 00 57 04 04 00 39 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:32]wFMCommunicate OK [13:20:32]SAM_PROTO_GetFieldsCounters done [13:20:32]requested_item shift.num is exist - process it [13:20:32]requested_item shift.opened is exist - process it [13:20:32]req_shift_opened [13:20:32]FM_GetShiftState [13:20:32]SAM_PROTO_GetShiftState [13:20:32]wFMCommunicate request_size=4 [13:20:32]MH_SAM_APDU [13:20:32]CAPDU: 80 13 01 00 [13:20:32]Write to MH i2c: E2 08 00 67 00 80 13 01 00 00 00 00 00 E4 [13:20:32]Write i2c OK [13:20:32]MH_I2C_Read... [13:20:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:32]Read from MH i2c: E2 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 0E 00 [13:20:32]MH_I2C_Read... [13:20:32]Read from MH i2c: E2 0E 00 67 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D9 [13:20:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:20:32]wFMCommunicate OK [13:20:32]SAM_PROTO_GetShiftState done [13:20:32]FM_GetShiftState done [13:20:32]req_shift_opened done [13:20:32]requested_item shift.open_date is exist - process it [13:20:32]req_shift_open_date [13:20:32]req_shift_open_date done [13:20:32]produce_requested_data done [13:20:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188283,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:20:32]process_action_free close_receipt [13:20:32]json_value_free [13:20:32]json_value_free done [13:20:32]process_json_proto returns [13:20:32]Send response to host [13:20:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188283,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:20:32]free response buf [13:20:32]execute_script done [13:20:32]execute_script returns [13:20:32]free content buf [13:20:32]Sock 9.Close socket [13:20:32]Sock 9.Thread stoped [13:20:33]accept exits with 7 [13:20:33]New connection [13:20:33]New thread 3067161956 created [13:20:33]Thread 3067305316 joined [13:20:33]Waiting for new connection... [13:20:33] Sock 7.Parse request [13:20:33]Sock 7.Check first char [13:20:33]Sock 7.First char is OK [13:20:33]request: POST /json_proto HTTP/1.0 [13:20:33]Method: POST [13:20:33]URL: /json_proto [13:20:33]Method is POST - this is cgi request [13:20:33]url: /json_proto [13:20:33]query_string will be loaded in cgi processing [13:20:33]execute_cgi json_proto POST (null) [13:20:33]execute_cgi path=json_proto method=POST [13:20:33]POST find Content-Length [13:20:33]Host: 172.17.42.131:8080 [13:20:33]Content-Length: 682 [13:20:33]Content-Type: application/json [13:20:33] [13:20:33]POST finish read [13:20:33]Found Content-Length = 682 [13:20:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124100", "name": "\u0410\u0438-92-\u041A-1", "price" : 66.90, "quantity" : 29.850, "sum" : 1996.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1996.00, "total" : 1996.00, "payments": [ { "type": 0, "sum" : 1996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:33]execute_script... [13:20: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)210337", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124100", "name": "\u0410\u0438-92-\u041A-1", "price" : 66.90, "quantity" : 29.850, "sum" : 1996.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1996.00, "total" : 1996.00, "payments": [ { "type": 0, "sum" : 1996.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:20:33]POST & json_proto [13:20:33]process_json_proto [13:20:33]json parsed OK: [13:20:33]protocol is kg_v1.0 [13:20:33]action value=close_receipt [13:20:33]process_action close_receipt [13:20:33]cmd_close_receipt [13:20:33]MH_GetDate [13:20:33]Write to MH i2c: F0 00 00 68 00 57 [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: F0 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: F0 09 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: F0 09 00 68 00 00 A2 A6 17 67 A0 18 CA 66 0E [13:20:33]GetLastDocTimeStamp 1729603229 [13:20:33]current date 1729603234 [13:20:33]FM_GetShiftState [13:20:33]SAM_PROTO_GetShiftState [13:20:33]wFMCommunicate request_size=4 [13:20:33]MH_SAM_APDU [13:20:33]CAPDU: 80 13 01 00 [13:20:33]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [13:20:33]Write i2c OK [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 [13:20:33]MH_I2C_Read... [13:20:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:33]Read from MH i2c: E2 0E 00 [13:20:33]MH_I2C_Read... [13:20:33]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [13:20:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:20:33]wFMCommunicate OK [13:20:33]SAM_PROTO_GetShiftState done [13:20:33]FM_GetShiftState done [13:20:33]opened in 1729556094 [13:20:33]opened+sec_in_day 1729642494 [13:20:33]quantity*price = 199696 [13:20:33]sum+1 = 199698 [13:20:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 1996.00 Внесено: 1996.00 СДАЧА: 0.00 НСП 1% : 17.67 НДС 12% : 212.07 Наличными: 1996.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 313 22.10.2024 13:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188284 ФПД: 226360922342185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132034&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188284&fm=226360922342185&tin=02508201610067®Number=0000000000100030&sum=199600 [13:20:35]StoreToDocumentArchive [13:20:35]shift 461 fd 188284 [13:20:35]save to /storage/0461/doc_00188284 [13:20:35]save last doc name /storage/0461/doc_00188284 to /storage/kkm_last_doc_name [13:20:35]save OK [13:20:35]Clear old archive folders... [13:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:20:35]tlvbuf is 0146AB00 [13:20:35]SAM_PROTO_ClearQueue [13:20:35]wFMCommunicate request_size=4 [13:20:35]MH_SAM_APDU [13:20:35]CAPDU: 80 09 00 00 [13:20:35]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [13:20:35]RAPDU: 90 00 [13:20:35]wFMCommunicate OK [13:20:35]SAM_PROTO_ClearQueue done [13:20:35]KKMCreateOFDPacket [13:20:35]OFDProtocolAddRootSTLVToBuf [13:20:35]FM_MakeSignedData [13:20:35]FM_MakeSignedData [13:20:35]SAM_PROTO_SignData [13:20:35]wFMCommunicate request_size=4 [13:20:35]MH_SAM_APDU [13:20:35]CAPDU: 80 0D 01 02 [13:20:35]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [13:20:35]RAPDU: 90 00 [13:20:35]wFMCommunicate OK [13:20:35]wFMCommunicate request_size=255 [13:20:35]MH_SAM_APDU [13:20: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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 9A 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 52 00 00 00 00 07 04 06 00 B0 0B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A2 A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DF 02 00 35 04 06 00 CD [13:20:35]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 9A 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 52 00 00 00 00 07 04 06 00 B0 0B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A2 A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DF 02 00 35 04 06 00 CD 00 00 CD [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [13:20:35]RAPDU: 90 00 [13:20:35]wFMCommunicate OK [13:20:35]wFMCommunicate request_size=10 [13:20:35]MH_SAM_APDU [13:20:35]CAPDU: 80 0D 02 02 05 DF C2 5E 03 29 [13:20:35]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 DF C2 5E 03 29 00 00 28 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [13:20:35]RAPDU: 90 00 [13:20:35]wFMCommunicate OK [13:20:35]wFMCommunicate request_size=4 [13:20:35]MH_SAM_APDU [13:20:35]CAPDU: 80 0D 03 02 [13:20:35]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 0B 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 0B 00 7A 00 00 91 7B 12 95 BE CF 37 88 90 00 F5 [13:20:35]RAPDU: 91 7B 12 95 BE CF 37 88 90 00 [13:20:35]wFMCommunicate OK [13:20:35]SAM_PROTO_SignData done [13:20:35]FM_MakeSignedData done [13:20:35]CreateOFDProtocolMessage [13:20:35]wFMCommunicate request_size=4 [13:20:35]MH_SAM_APDU [13:20:35]CAPDU: 80 11 00 00 [13:20:35]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:35]Read from MH i2c: E2 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 17 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [13:20:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:20:35]wFMCommunicate OK [13:20:35]CreateOFDProtocolMessage done [13:20:35]OFDSenderStorePacket 188284 [13:20:35]StoreOFDPacket docnum=188284 [13:20:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 70 F5 07 01 A1 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 9A 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 52 00 00 00 00 07 04 06 00 B0 0B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A2 A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DF 02 00 35 04 06 00 CD DF C2 5E 03 29 91 7B 12 95 BE CF 37 88 [13:20:35]CheckFolder [13:20:35]dirname=/storage/ofd_packets [13:20:35]CheckFolder done [13:20:35]ProducePacketName [13:20:35]name=ofd_packets/00188284 [13:20:35]NVStorageSaveData ofd_packets/00188284 [13:20:35]File name is /storage/ofd_packets/00188284 [13:20:35]Write 301 bytes [13:20:35]NVStorageSaveData done [13:20:35]OFDSenderStorePacket done [13:20:35]KKMCreateOFDPacket done [13:20:35]NVStorageSaveData kkm_last_timestamp [13:20:35]File name is /storage/kkm_last_timestamp [13:20:35]Write 4 bytes [13:20:35]NVStorageSaveData done [13:20:35]ExternCall_PrintAddStr [13:20:35]wPrintStart [13:20:35]Write to MH i2c: 01 00 00 7C 00 7C [13:20:35]Write i2c OK [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: 01 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: 01 07 00 [13:20:35]MH_I2C_Read... [13:20:35]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [13:20:35]RasterBufferAndPrint [13:20:35]line Счет N : (1)210337 [13:20:35]line ИНН: 02508201610067 [13:20:35]line Контрольно-Кассовый Чек [13:20:35]line ПРОДАЖА [13:20:35]line ТРК (МРК, ГНК) : 42 [13:20:35]line Товар: 2710124100 [13:20:35]line Аи-92-К-1 [13:20:35]line 29.850 * 66.90 [13:20:35]line = 1996.97 [13:20:35]line НДС 12% НСП 1% [13:20:35]line > о реализуемом товаре [13:20:35]line ОКРУГЛЕНИЕ: -0.97 [13:20:35]line ИТОГО: 1996.00 [13:20:35]line Внесено: 1996.00 [13:20:35]line СДАЧА: 0.00 [13:20:35]line НСП 1% : 17.67 [13:20:35]line НДС 12% : 212.07 [13:20:35]line Наличными: 1996.00 [13:20:35]line Безнал.: 0.00 [13:20:35]line Место: АЗС № 86 "Партнер Нефть" [13:20:35]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:20:35]line СНО: Общий режим [13:20:35]line Чек 313 22.10.2024 13:20 [13:20:35]line Смена: 461 ФФД: 1.0 [13:20:35]line ЗНМ: 0300000155 [13:20:35]line РНМ: 0000000000100030 [13:20:35]line Версия ККМ: 001 [13:20:35]line ФМ: 0000000000965340 [13:20:35]line ФД: 188284 [13:20:35]line ФПД: 226360922342185 [13:20:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132034&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188284&fm=226360922342185&tin=02508201610067®Number=0000000000100030&sum=199600 [13:20:35]OFD Sender: Processing packet 188284 [packets to send 1062, broken 1061] [13:20:35]ProducePacketName [13:20:35]name=ofd_packets/00188284 [13:20:35]OFD Sender: To server: pG, [13:20:35]CommunicateWithHost lk.salyk.kg:30040 [13:20:35]ConnectInit lk.salyk.kg [13:20:35]written 0, free lines is 4095 [13:20:36]Connected sock=10 [13:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 70 F5 07 01 A1 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 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 31 FF 03 08 00 03 9A 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 11 0C 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E7 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D7 52 00 00 00 00 07 04 06 00 B0 0B 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 01 00 00 F4 03 04 00 A2 A6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C DF 02 00 35 04 06 00 CD DF C2 5E 03 29 91 7B 12 95 BE CF 37 88 [13:20:36]Write to MH i2c: 01 00 00 A7 00 A7 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: 01 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: 01 07 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 75 0C 2F [13:20:36]RasterBufferAndPrint [13:20:36]line [13:20:36]line [13:20:36]line [13:20:36]line [13:20:36]line [13:20:36]written 0, free lines is 3192 [13:20:36]MH_Cut [13:20:36]Write to MH i2c: D1 01 00 AE 00 01 80 [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: D1 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: D1 01 00 [13:20:36]MH_I2C_Read... [13:20:36]Read from MH i2c: D1 01 00 AE 00 00 7F [13:20:36]Write to MH i2c: 01 00 00 AF 00 AF [13:20:36]Write i2c OK [13:20:36]MH_I2C_Read... [13:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 75 47 00 EB 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 39 36 35 33 34 30 10 04 04 00 7C DF 02 00 F4 03 04 00 90 50 17 67 B6 04 01 00 00 21 88 EB D7 17 55 E2 DF [13:20:36]CommunicateWithHost err = 0 [13:20:36]CheckOFDResponse [13:20:36]1017 (14) - 77093643461234 [13:20:36]1041 (16) - 0000000000965340 [13:20:36]1040 (4) - 188284 [13:20:36]1012 (4) - 22.10.2024 07:13 [13:20:36]1206 (1) - 0 [13:20:36]OFD Sender: Remove packet 188284 [13:20:36]ProducePacketName [13:20:36]name=ofd_packets/00188284 [13:20:36]NVStorageDeleteData [13:20:36]OFD Sender: No OFD packet to send [13:20:37]*** Cut start [13:20:37]*** Partial cut [13:20:37]*** CUTSNS_PIN = 1 [13:20:37]*** CUTSNS_PIN = 0 [13:20:37]*** Brake cut motor [13:20:37]Read from MH i2c: 01 [13:20:37]*** Stop cut motor [13:20:37]MH_I2C_Read... [13:20:37]*** Cut end [13:20:37]Read from MH i2c: 01 07 00 [13:20:37]MH_I2C_Read... [13:20:37]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [13:20:37]process_action close_receipt done [13:20:37]requested_data is exist [13:20:37]produce_requested_data [13:20:37]requested_item fm.sn is exist - process it [13:20:37]wFMCommunicate request_size=4 [13:20:37]MH_SAM_APDU [13:20:37]CAPDU: 80 11 00 00 [13:20:37]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [13:20:37]Write i2c OK [13:20:37]MH_I2C_Read... [13:20:38]Read from MH i2c: *** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:20:38]E2 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 17 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [13:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:20:38]wFMCommunicate OK [13:20:38]requested_item fd.num is exist - process it [13:20:38]SAM_PROTO_GetFieldsCounters [13:20:38]wFMCommunicate request_size=4 [13:20:38]MH_SAM_APDU [13:20:38]CAPDU: 80 13 00 00 [13:20:38]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:20:38]Read from MH i2c: E2 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 62 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [13:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 01 00 00 5E 04 04 00 39 01 00 00 57 04 04 00 3A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:20:38]wFMCommunicate OK [13:20:38]SAM_PROTO_GetFieldsCounters done [13:20:38]requested_item shift.num is exist - process it [13:20:38]requested_item shift.opened is exist - process it [13:20:38]req_shift_opened [13:20:38]FM_GetShiftState [13:20:38]SAM_PROTO_GetShiftState [13:20:38]wFMCommunicate request_size=4 [13:20:38]MH_SAM_APDU [13:20:38]CAPDU: 80 13 01 00 [13:20:38]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [13:20:38]Write i2c OK [13:20:38]MH_I2C_Read... [13:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:20:38]Read from MH i2c: E2 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 0E 00 [13:20:38]MH_I2C_Read... [13:20:38]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [13:20:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:20:38]wFMCommunicate OK [13:20:38]SAM_PROTO_GetShiftState done [13:20:38]FM_GetShiftState done [13:20:38]req_shift_opened done [13:20:38]requested_item shift.open_date is exist - process it [13:20:38]req_shift_open_date [13:20:38]req_shift_open_date done [13:20:38]produce_requested_data done [13:20:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188284,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:20:38]process_action_free close_receipt [13:20:38]json_value_free [13:20:38]json_value_free done [13:20:38]process_json_proto returns [13:20:38]Send response to host [13:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188284,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:20:38]free response buf [13:20:38]execute_script done [13:20:38]execute_script returns [13:20:38]free content buf [13:20:38]Sock 7.Close socket [13:20:38]Sock 7.Thread stoped [13:20:41]OFD Sender: No OFD packet to send [13:20:46]OFD Sender: No OFD packet to send [13:20:51]OFD Sender: No OFD packet to send [13:20:57]OFD Sender: No OFD packet to send [13:21:02]OFD Sender: No OFD packet to send [13:21:07]OFD Sender: No OFD packet to send [13:21:12]OFD Sender: No OFD packet to send [13:21:17]OFD Sender: No OFD packet to send [13:21:22]OFD Sender: No OFD packet to send [13:21:27]OFD Sender: No OFD packet to send [13:21:32]OFD Sender: No OFD packet to send [13:21:37]OFD Sender: No OFD packet to send [13:21:42]OFD Sender: No OFD packet to send [13:21:47]OFD Sender: No OFD packet to send [13:21:52]OFD Sender: No OFD packet to send [13:21:57]OFD Sender: No OFD packet to send [13:22:02]OFD Sender: No OFD packet to send [13:22:07]OFD Sender: No OFD packet to send [13:22:12]OFD Sender: No OFD packet to send [13:22:17]OFD Sender: No OFD packet to send [13:22:22]OFD Sender: No OFD packet to send [13:22:27]OFD Sender: No OFD packet to send [13:22:32]OFD Sender: No OFD packet to send [13:22:37]OFD Sender: No OFD packet to send [13:22:42]OFD Sender: No OFD packet to send [13:22:47]OFD Sender: No OFD packet to send [13:22:52]OFD Sender: No OFD packet to send [13:22:57]OFD Sender: No OFD packet to send [13:23:02]OFD Sender: No OFD packet to send [13:23:07]OFD Sender: No OFD packet to send [13:23:12]OFD Sender: No OFD packet to send [13:23:17]OFD Sender: No OFD packet to send [13:23:20]accept exits with 9 [13:23:20]New connection [13:23:20]New thread 3067305316 created [13:23:20]Thread 3067161956 joined [13:23:20]Waiting for new connection... [13:23:20] Sock 9.Parse request [13:23:20]Sock 9.Check first char [13:23:20]Sock 9.First char is OK [13:23:20]request: POST /json_proto HTTP/1.0 [13:23:20]Method: POST [13:23:20]URL: /json_proto [13:23:20]Method is POST - this is cgi request [13:23:20]url: /json_proto [13:23:20]query_string will be loaded in cgi processing [13:23:20]execute_cgi json_proto POST (null) [13:23:20]execute_cgi path=json_proto method=POST [13:23:20]POST find Content-Length [13:23:20]Host: 172.17.42.131:8080 [13:23:20]Content-Length: 683 [13:23:20]Content-Type: application/json [13:23:20] [13:23:20]POST finish read [13:23:20]Found Content-Length = 683 [13:23:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 4.410, "sum" : 340.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:20]execute_script... [13:23:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210341", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 4.410, "sum" : 340.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 340.00, "total" : 340.00, "payments": [ { "type": 0, "sum" : 340.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:20]POST & json_proto [13:23:20]process_json_proto [13:23:20]json parsed OK: [13:23:20]protocol is kg_v1.0 [13:23:20]action value=close_receipt [13:23:20]process_action close_receipt [13:23:20]cmd_close_receipt [13:23:20]MH_GetDate [13:23:20]Write to MH i2c: F0 00 00 B3 00 A2 [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: F0 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: F0 09 00 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: F0 09 00 B3 00 00 49 A7 17 67 A0 18 CA 66 01 [13:23:20]GetLastDocTimeStamp 1729603234 [13:23:20]current date 1729603401 [13:23:20]FM_GetShiftState [13:23:20]SAM_PROTO_GetShiftState [13:23:20]wFMCommunicate request_size=4 [13:23:20]MH_SAM_APDU [13:23:20]CAPDU: 80 13 01 00 [13:23:20]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [13:23:20]Write i2c OK [13:23:20]MH_I2C_Read... [13:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:20]Read from MH i2c: E2 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: E2 0E 00 [13:23:20]MH_I2C_Read... [13:23:20]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [13:23:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:23:20]wFMCommunicate OK [13:23:20]SAM_PROTO_GetShiftState done [13:23:20]FM_GetShiftState done [13:23:20]opened in 1729556094 [13:23:20]opened+sec_in_day 1729642494 [13:23:20]quantity*price = 34045 [13:23:20]sum+1 = 34046 [13:23:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 340.00 Внесено: 340.00 СДАЧА: 0.00 НСП 1% : 3.01 НДС 12% : 36.15 Наличными: 340.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 314 22.10.2024 13:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188285 ФПД: 204208541228860 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188285&fm=204208541228860&tin=02508201610067®Number=0000000000100030&sum=34000 [13:23:21]StoreToDocumentArchive [13:23:21]shift 461 fd 188285 [13:23:21]save to /storage/0461/doc_00188285 [13:23:21]save last doc name /storage/0461/doc_00188285 to /storage/kkm_last_doc_name [13:23:21]save OK [13:23:21]Clear old archive folders... [13:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:23:21]tlvbuf is 014424C0 [13:23:21]SAM_PROTO_ClearQueue [13:23:21]wFMCommunicate request_size=4 [13:23:21]MH_SAM_APDU [13:23:21]CAPDU: 80 09 00 00 [13:23:21]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [13:23:21]Write i2c OK [13:23:21]MH_I2C_Read... [13:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:21]Read from MH i2c: E2 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: E2 03 00 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [13:23:21]RAPDU: 90 00 [13:23:21]wFMCommunicate OK [13:23:21]SAM_PROTO_ClearQueue done [13:23:21]KKMCreateOFDPacket [13:23:21]OFDProtocolAddRootSTLVToBuf [13:23:21]FM_MakeSignedData [13:23:21]FM_MakeSignedData [13:23:21]SAM_PROTO_SignData [13:23:21]wFMCommunicate request_size=4 [13:23:21]MH_SAM_APDU [13:23:21]CAPDU: 80 0D 01 02 [13:23:21]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [13:23:21]Write i2c OK [13:23:21]MH_I2C_Read... [13:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:21]Read from MH i2c: E2 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: E2 03 00 [13:23:21]MH_I2C_Read... [13:23:21]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [13:23:21]RAPDU: 90 00 [13:23:21]wFMCommunicate OK [13:23:21]wFMCommunicate request_size=255 [13:23:21]MH_SAM_APDU [13:23:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 49 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DF 02 [13:23:21]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 49 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DF 02 00 00 A0 [13:23:21]Write i2c OK [13:23:21]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [13:23:22]RAPDU: 90 00 [13:23:22]wFMCommunicate OK [13:23:22]wFMCommunicate request_size=16 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B9 BA 01 8F 5F 3C [13:23:22]Write to MH i2c: E2 13 00 C4 00 80 0D 02 02 0B 00 00 35 04 06 00 B9 BA 01 8F 5F 3C 00 00 31 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [13:23:22]RAPDU: 90 00 [13:23:22]wFMCommunicate OK [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 0D 03 02 [13:23:22]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 0B 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 0B 00 C5 00 00 2E 12 C9 3F DE 1C D6 18 90 00 71 [13:23:22]RAPDU: 2E 12 C9 3F DE 1C D6 18 90 00 [13:23:22]wFMCommunicate OK [13:23:22]SAM_PROTO_SignData done [13:23:22]FM_MakeSignedData done [13:23:22]CreateOFDProtocolMessage [13:23:22]wFMCommunicate request_size=4 [13:23:22]MH_SAM_APDU [13:23:22]CAPDU: 80 11 00 00 [13:23:22]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:22]Read from MH i2c: E2 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 17 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [13:23:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:23:22]wFMCommunicate OK [13:23:22]CreateOFDProtocolMessage done [13:23:22]OFDSenderStorePacket 188285 [13:23:22]StoreOFDPacket docnum=188285 [13:23:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D1 53 0D 01 FE B0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 49 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DF 02 00 35 04 06 00 B9 BA 01 8F 5F 3C 2E 12 C9 3F DE 1C D6 18 [13:23:22]CheckFolder [13:23:22]dirname=/storage/ofd_packets [13:23:22]CheckFolder done [13:23:22]ProducePacketName [13:23:22]name=ofd_packets/00188285 [13:23:22]NVStorageSaveData ofd_packets/00188285 [13:23:22]File name is /storage/ofd_packets/00188285 [13:23:22]Write 307 bytes [13:23:22]NVStorageSaveData done [13:23:22]OFDSenderStorePacket done [13:23:22]KKMCreateOFDPacket done [13:23:22]NVStorageSaveData kkm_last_timestamp [13:23:22]File name is /storage/kkm_last_timestamp [13:23:22]Write 4 bytes [13:23:22]NVStorageSaveData done [13:23:22]ExternCall_PrintAddStr [13:23:22]wPrintStart [13:23:22]Write to MH i2c: 01 00 00 C7 00 C7 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 07 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [13:23:22]RasterBufferAndPrint [13:23:22]line Счет N : (1)210341 [13:23:22]line ИНН: 02508201610067 [13:23:22]line Контрольно-Кассовый Чек [13:23:22]line ПРОДАЖА [13:23:22]line ТРК (МРК, ГНК) : 11 [13:23:22]line Товар: 2710194210 [13:23:22]line D-ENERGY ДТ-К-5 [13:23:22]line 4.410 * 77.20 [13:23:22]line = 340.45 [13:23:22]line НДС 12% НСП 1% [13:23:22]line > о реализуемом товаре [13:23:22]line ОКРУГЛЕНИЕ: -0.45 [13:23:22]line ИТОГО: 340.00 [13:23:22]line Внесено: 340.00 [13:23:22]line СДАЧА: 0.00 [13:23:22]line НСП 1% : 3.01 [13:23:22]line НДС 12% : 36.15 [13:23:22]line Наличными: 340.00 [13:23:22]line Безнал.: 0.00 [13:23:22]line Место: АЗС № 86 "Партнер Нефть" [13:23:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:23:22]line СНО: Общий режим [13:23:22]line Чек 314 22.10.2024 13:23 [13:23:22]line Смена: 461 ФФД: 1.0 [13:23:22]line ЗНМ: 0300000155 [13:23:22]line РНМ: 0000000000100030 [13:23:22]line Версия ККМ: 001 [13:23:22]line ФМ: 0000000000965340 [13:23:22]line ФД: 188285 [13:23:22]line ФПД: 204208541228860 [13:23:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188285&fm=204208541228860&tin=02508201610067®Number=0000000000100030&sum=34000 [13:23:22]written 0, free lines is 4095 [13:23:22]OFD Sender: Processing packet 188285 [packets to send 1062, broken 1061] [13:23:22]ProducePacketName [13:23:22]name=ofd_packets/00188285 [13:23:22]OFD Sender: To server: pG, [13:23:22]CommunicateWithHost lk.salyk.kg:30040 [13:23:22]ConnectInit lk.salyk.kg [13:23:22]Connected sock=10 [13:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D1 53 0D 01 FE B0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3A 11 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 FD 84 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2D 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 0E 00 00 00 00 07 04 06 00 D0 84 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 01 00 00 F4 03 04 00 49 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DF 02 00 35 04 06 00 B9 BA 01 8F 5F 3C 2E 12 C9 3F DE 1C D6 18 [13:23:22]Write to MH i2c: 01 00 00 F2 00 F2 [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 07 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 64 0C 69 [13:23:22]RasterBufferAndPrint [13:23:22]line [13:23:22]line [13:23:22]line [13:23:22]line [13:23:22]line [13:23:22]written 0, free lines is 3176 [13:23:22]MH_Cut [13:23:22]Write to MH i2c: D1 01 00 F9 00 01 CB [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: D1 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: D1 01 00 [13:23:22]MH_I2C_Read... [13:23:22]Read from MH i2c: D1 01 00 F9 00 00 CA [13:23:22]Write to MH i2c: 01 00 00 FA 00 FA [13:23:22]Write i2c OK [13:23:22]MH_I2C_Read... [13:23:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 90 F7 47 00 94 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D DF 02 00 F4 03 04 00 36 51 17 67 B6 04 01 00 00 18 F6 3F 42 8B 1C 22 4E [13:23:23]CommunicateWithHost err = 0 [13:23:23]CheckOFDResponse [13:23:23]1017 (14) - 77093643461234 [13:23:23]1041 (16) - 0000000000965340 [13:23:23]1040 (4) - 188285 [13:23:23]1012 (4) - 22.10.2024 07:16 [13:23:23]1206 (1) - 0 [13:23:23]OFD Sender: Remove packet 188285 [13:23:23]ProducePacketName [13:23:23]name=ofd_packets/00188285 [13:23:23]NVStorageDeleteData [13:23:23]OFD Sender: No OFD packet to send [13:23:24]*** Cut start [13:23:24]*** Partial cut [13:23:24]*** CUTSNS_PIN = 1 [13:23:24]*** CUTSNS_PIN = 0 [13:23:24]*** Brake cut motor [13:23:24]Read from MH i2c: 01 [13:23:24]MH_I2C_Read... [13:23:24]*** Stop cut motor [13:23:24]*** Cut end [13:23:24]Read from MH i2c: 01 07 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [13:23:24]process_action close_receipt done [13:23:24]requested_data is exist [13:23:24]produce_requested_data [13:23:24]requested_item fm.sn is exist - process it [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 11 00 00 [13:23:24]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 17 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [13:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:23:24]wFMCommunicate OK [13:23:24]requested_item fd.num is exist - process it [13:23:24]SAM_PROTO_GetFieldsCounters [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 13 00 00 [13:23:24]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 62 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [13:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3A 01 00 00 5E 04 04 00 3A 01 00 00 57 04 04 00 3B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_GetFieldsCounters done [13:23:24]requested_item shift.num is exist - process it [13:23:24]requested_item shift.opened is exist - process it [13:23:24]req_shift_opened [13:23:24]FM_GetShiftState [13:23:24]SAM_PROTO_GetShiftState [13:23:24]wFMCommunicate request_size=4 [13:23:24]MH_SAM_APDU [13:23:24]CAPDU: 80 13 01 00 [13:23:24]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [13:23:24]Write i2c OK [13:23:24]MH_I2C_Read... [13:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:24]Read from MH i2c: E2 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 [13:23:24]MH_I2C_Read... [13:23:24]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6F [13:23:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:23:24]wFMCommunicate OK [13:23:24]SAM_PROTO_GetShiftState done [13:23:24]FM_GetShiftState done [13:23:24]req_shift_opened done [13:23:24]requested_item shift.open_date is exist - process it [13:23:24]req_shift_open_date [13:23:24]req_shift_open_date done [13:23:24]produce_requested_data done [13:23:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188285,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:23:24]process_action_free close_receipt [13:23:24]json_value_free [13:23:24]json_value_free done [13:23:24]process_json_proto returns [13:23:24]Send response to host [13:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188285,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:23:24]free response buf [13:23:24]execute_script done [13:23:24]execute_script returns [13:23:24]free content buf [13:23:24]Sock 9.Close socket [13:23:24]Sock 9.Thread stoped [13:23:28]OFD Sender: No OFD packet to send [13:23:33]OFD Sender: No OFD packet to send [13:23:38]OFD Sender: No OFD packet to send [13:23:38]accept exits with 7 [13:23:38]New connection [13:23:38]New thread 3067161956 created [13:23:38]Thread 3067305316 joined [13:23:38]Waiting for new connection... [13:23:38] Sock 7.Parse request [13:23:38]Sock 7.Check first char [13:23:38]Sock 7.First char is OK [13:23:38]request: POST /json_proto HTTP/1.0 [13:23:38]Method: POST [13:23:38]URL: /json_proto [13:23:38]Method is POST - this is cgi request [13:23:38]url: /json_proto [13:23:38]query_string will be loaded in cgi processing [13:23:38]execute_cgi json_proto POST (null) [13:23:38]execute_cgi path=json_proto method=POST [13:23:38]POST find Content-Length [13:23:38]Host: 172.17.42.131:8080 [13:23:38]Content-Length: 688 [13:23:38]Content-Type: application/json [13:23:38] [13:23:38]POST finish read [13:23:38]Found Content-Length = 688 [13:23:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:38]execute_script... [13:23: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)210339", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:38]POST & json_proto [13:23:38]process_json_proto [13:23:38]json parsed OK: [13:23:38]protocol is kg_v1.0 [13:23:38]action value=close_receipt [13:23:38]process_action close_receipt [13:23:38]cmd_close_receipt [13:23:38]MH_GetDate [13:23:38]Write to MH i2c: F0 00 00 FE 00 ED [13:23:38]Write i2c OK [13:23:38]MH_I2C_Read... [13:23:38]Read from MH i2c: F0 [13:23:38]MH_I2C_Read... [13:23:38]Read from MH i2c: F0 09 00 [13:23:38]MH_I2C_Read... [13:23:38]Read from MH i2c: F0 09 00 FE 00 00 5B A7 17 67 A0 18 CA 66 5E [13:23:38]GetLastDocTimeStamp 1729603401 [13:23:38]current date 1729603419 [13:23:38]FM_GetShiftState [13:23:38]SAM_PROTO_GetShiftState [13:23:38]wFMCommunicate request_size=4 [13:23:38]MH_SAM_APDU [13:23:38]CAPDU: 80 13 01 00 [13:23:38]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [13:23:38]Write i2c OK [13:23:38]MH_I2C_Read... [13:23:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:38]Read from MH i2c: E2 [13:23:38]MH_I2C_Read... [13:23:38]Read from MH i2c: E2 0E 00 [13:23:38]MH_I2C_Read... [13:23:38]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [13:23:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:23:38]wFMCommunicate OK [13:23:38]SAM_PROTO_GetShiftState done [13:23:38]FM_GetShiftState done [13:23:38]opened in 1729556094 [13:23:38]opened+sec_in_day 1729642494 [13:23:38]quantity*price = 300076 [13:23:38]sum+1 = 300077 [13:23:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 315 22.10.2024 13:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188286 ФПД: 159305757112813 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132339&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188286&fm=159305757112813&tin=02508201610067®Number=0000000000100030&sum=300000 [13:23:39]StoreToDocumentArchive [13:23:39]shift 461 fd 188286 [13:23:39]save to /storage/0461/doc_00188286 [13:23:39]save last doc name /storage/0461/doc_00188286 to /storage/kkm_last_doc_name [13:23:39]save OK [13:23:39]Clear old archive folders... [13:23:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:23:39]tlvbuf is B6F30830 [13:23:39]SAM_PROTO_ClearQueue [13:23:39]wFMCommunicate request_size=4 [13:23:39]MH_SAM_APDU [13:23:39]CAPDU: 80 09 00 00 [13:23:39]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [13:23:39]Write i2c OK [13:23:39]MH_I2C_Read... [13:23:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:39]Read from MH i2c: E2 [13:23:39]MH_I2C_Read... [13:23:39]Read from MH i2c: E2 03 00 [13:23:39]MH_I2C_Read... [13:23:39]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [13:23:39]RAPDU: 90 00 [13:23:39]wFMCommunicate OK [13:23:39]SAM_PROTO_ClearQueue done [13:23:39]KKMCreateOFDPacket [13:23:39]OFDProtocolAddRootSTLVToBuf [13:23:39]FM_MakeSignedData [13:23:39]FM_MakeSignedData [13:23:39]SAM_PROTO_SignData [13:23:39]wFMCommunicate request_size=4 [13:23:39]MH_SAM_APDU [13:23:39]CAPDU: 80 0D 01 02 [13:23:39]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [13:23:39]Write i2c OK [13:23:39]MH_I2C_Read... [13:23:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:39]Read from MH i2c: E2 [13:23:39]MH_I2C_Read... [13:23:39]Read from MH i2c: E2 03 00 [13:23:39]MH_I2C_Read... [13:23:39]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [13:23:39]RAPDU: 90 00 [13:23:39]wFMCommunicate OK [13:23:39]wFMCommunicate request_size=255 [13:23:39]MH_SAM_APDU [13:23:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 5B A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DF 02 [13:23:39]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 5B A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DF 02 00 00 AF [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:40]Read from MH i2c: E2 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 03 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [13:23:40]RAPDU: 90 00 [13:23:40]wFMCommunicate OK [13:23:40]wFMCommunicate request_size=16 [13:23:40]MH_SAM_APDU [13:23:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 90 E3 43 10 39 ED [13:23:40]Write to MH i2c: E2 13 00 0F 01 80 0D 02 02 0B 00 00 35 04 06 00 90 E3 43 10 39 ED 00 00 CB [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:40]Read from MH i2c: E2 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 03 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [13:23:40]RAPDU: 90 00 [13:23:40]wFMCommunicate OK [13:23:40]wFMCommunicate request_size=4 [13:23:40]MH_SAM_APDU [13:23:40]CAPDU: 80 0D 03 02 [13:23:40]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:40]Read from MH i2c: E2 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 0B 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 0B 00 10 01 00 9C CE A5 70 CA 88 6C 9C 90 00 66 [13:23:40]RAPDU: 9C CE A5 70 CA 88 6C 9C 90 00 [13:23:40]wFMCommunicate OK [13:23:40]SAM_PROTO_SignData done [13:23:40]FM_MakeSignedData done [13:23:40]CreateOFDProtocolMessage [13:23:40]wFMCommunicate request_size=4 [13:23:40]MH_SAM_APDU [13:23:40]CAPDU: 80 11 00 00 [13:23:40]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:40]Read from MH i2c: E2 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 17 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [13:23:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:23:40]wFMCommunicate OK [13:23:40]CreateOFDProtocolMessage done [13:23:40]OFDSenderStorePacket 188286 [13:23:40]StoreOFDPacket docnum=188286 [13:23:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B3 0B 0D 01 15 74 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 5B A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DF 02 00 35 04 06 00 90 E3 43 10 39 ED 9C CE A5 70 CA 88 6C 9C [13:23:40]CheckFolder [13:23:40]dirname=/storage/ofd_packets [13:23:40]CheckFolder done [13:23:40]ProducePacketName [13:23:40]name=ofd_packets/00188286 [13:23:40]NVStorageSaveData ofd_packets/00188286 [13:23:40]File name is /storage/ofd_packets/00188286 [13:23:40]Write 307 bytes [13:23:40]NVStorageSaveData done [13:23:40]OFDSenderStorePacket done [13:23:40]KKMCreateOFDPacket done [13:23:40]NVStorageSaveData kkm_last_timestamp [13:23:40]File name is /storage/kkm_last_timestamp [13:23:40]Write 4 bytes [13:23:40]NVStorageSaveData done [13:23:40]ExternCall_PrintAddStr [13:23:40]wPrintStart [13:23:40]Write to MH i2c: 01 00 00 12 01 13 [13:23:40]Write i2c OK [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: 01 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: 01 07 00 [13:23:40]MH_I2C_Read... [13:23:40]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [13:23:40]RasterBufferAndPrint [13:23:40]line Счет N : (1)210339 [13:23:40]line ИНН: 02508201610067 [13:23:40]line Контрольно-Кассовый Чек [13:23:40]line ПРОДАЖА [13:23:40]line ТРК (МРК, ГНК) : 31 [13:23:40]line Товар: 2710194210 [13:23:40]line D-ENERGY ДТ-К-5 [13:23:40]line 38.870 * 77.20 [13:23:40]line = 3000.76 [13:23:40]line НДС 12% НСП 1% [13:23:40]line > о реализуемом товаре [13:23:40]line ОКРУГЛЕНИЕ: -0.76 [13:23:40]line ИТОГО: 3000.00 [13:23:40]line Внесено: 3000.00 [13:23:40]line СДАЧА: 0.00 [13:23:40]line НСП 1% : 26.55 [13:23:40]line НДС 12% : 318.66 [13:23:40]line Наличными: 3000.00 [13:23:40]line Безнал.: 0.00 [13:23:40]line Место: АЗС № 86 "Партнер Нефть" [13:23:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:23:40]line СНО: Общий режим [13:23:40]line Чек 315 22.10.2024 13:23 [13:23:40]line Смена: 461 ФФД: 1.0 [13:23:40]line ЗНМ: 0300000155 [13:23:40]line РНМ: 0000000000100030 [13:23:40]line Версия ККМ: 001 [13:23:40]line ФМ: 0000000000965340 [13:23:40]line ФД: 188286 [13:23:40]line ФПД: 159305757112813 [13:23:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132339&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188286&fm=159305757112813&tin=02508201610067®Number=0000000000100030&sum=300000 [13:23:40]OFD Sender: Processing packet 188286 [packets to send 1062, broken 1061] [13:23:40]ProducePacketName [13:23:40]name=ofd_packets/00188286 [13:23:40]OFD Sender: To server: pG, [13:23:40]CommunicateWithHost lk.salyk.kg:30040 [13:23:40]ConnectInit lk.salyk.kg [13:23:40]written 0, free lines is 4095 [13:23:41]Connected sock=10 [13:23:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B3 0B 0D 01 15 74 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 01 00 00 F4 03 04 00 5B A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E DF 02 00 35 04 06 00 90 E3 43 10 39 ED 9C CE A5 70 CA 88 6C 9C [13:23:41]Write to MH i2c: 01 00 00 3D 01 3E [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: 01 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: 01 07 00 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: 01 07 00 3D 01 00 00 00 00 00 6A 0C BB [13:23:41]RasterBufferAndPrint [13:23:41]line [13:23:41]line [13:23:41]line [13:23:41]line [13:23:41]line [13:23:41]written 0, free lines is 3181 [13:23:41]MH_Cut [13:23:41]Write to MH i2c: D1 01 00 44 01 01 17 [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: D1 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: D1 01 00 [13:23:41]MH_I2C_Read... [13:23:41]Read from MH i2c: D1 01 00 44 01 00 16 [13:23:41]Write to MH i2c: 01 00 00 45 01 46 [13:23:41]Write i2c OK [13:23:41]MH_I2C_Read... [13:23:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BB EA 47 00 AD 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 39 36 35 33 34 30 10 04 04 00 7E DF 02 00 F4 03 04 00 49 51 17 67 B6 04 01 00 00 32 90 E6 3F 00 73 5F 4B [13:23:41]CommunicateWithHost err = 0 [13:23:41]CheckOFDResponse [13:23:41]1017 (14) - 77093643461234 [13:23:41]1041 (16) - 0000000000965340 [13:23:41]1040 (4) - 188286 [13:23:41]1012 (4) - 22.10.2024 07:16 [13:23:41]1206 (1) - 0 [13:23:41]OFD Sender: Remove packet 188286 [13:23:41]ProducePacketName [13:23:41]name=ofd_packets/00188286 [13:23:41]NVStorageDeleteData [13:23:41]OFD Sender: No OFD packet to send [13:23:42]*** Cut start [13:23:42]*** Partial cut [13:23:42]*** CUTSNS_PIN = 1 [13:23:42]*** CUTSNS_PIN = 0 [13:23:42]*** Brake cut motor [13:23:43]Read from MH i2c: 01 [13:23:43]MH_I2C_Read... [13:23:43]*** Stop cut motor [13:23:43]*** Cut end [13:23:43]Read from MH i2c: 01 07 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: 01 07 00 45 01 00 00 00 00 00 FF 0F 5B [13:23:43]process_action close_receipt done [13:23:43]requested_data is exist [13:23:43]produce_requested_data [13:23:43]requested_item fm.sn is exist - process it [13:23:43]wFMCommunicate request_size=4 [13:23:43]MH_SAM_APDU [13:23:43]CAPDU: 80 11 00 00 [13:23:43]Write to MH i2c: E2 08 00 46 01 80 11 00 00 00 00 00 00 C1 [13:23:43]Write i2c OK [13:23:43]MH_I2C_Read... [13:23:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:43]Read from MH i2c: E2 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 17 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 17 00 46 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [13:23:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:23:43]wFMCommunicate OK [13:23:43]requested_item fd.num is exist - process it [13:23:43]SAM_PROTO_GetFieldsCounters [13:23:43]wFMCommunicate request_size=4 [13:23:43]MH_SAM_APDU [13:23:43]CAPDU: 80 13 00 00 [13:23:43]Write to MH i2c: E2 08 00 47 01 80 13 00 00 00 00 00 00 C4 [13:23:43]Write i2c OK [13:23:43]MH_I2C_Read... [13:23:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:43]Read from MH i2c: E2 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 62 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 62 00 47 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 AC [13:23:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3B 01 00 00 5E 04 04 00 3B 01 00 00 57 04 04 00 3C 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:23:43]wFMCommunicate OK [13:23:43]SAM_PROTO_GetFieldsCounters done [13:23:43]requested_item shift.num is exist - process it [13:23:43]requested_item shift.opened is exist - process it [13:23:43]req_shift_opened [13:23:43]FM_GetShiftState [13:23:43]SAM_PROTO_GetShiftState [13:23:43]wFMCommunicate request_size=4 [13:23:43]MH_SAM_APDU [13:23:43]CAPDU: 80 13 01 00 [13:23:43]Write to MH i2c: E2 08 00 48 01 80 13 01 00 00 00 00 00 C6 [13:23:43]Write i2c OK [13:23:43]MH_I2C_Read... [13:23:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:43]Read from MH i2c: E2 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 0E 00 [13:23:43]MH_I2C_Read... [13:23:43]Read from MH i2c: E2 0E 00 48 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [13:23:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:23:43]wFMCommunicate OK [13:23:43]SAM_PROTO_GetShiftState done [13:23:43]FM_GetShiftState done [13:23:43]req_shift_opened done [13:23:43]requested_item shift.open_date is exist - process it [13:23:43]req_shift_open_date [13:23:43]req_shift_open_date done [13:23:43]produce_requested_data done [13:23:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188286,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:23:43]process_action_free close_receipt [13:23:43]json_value_free [13:23:43]json_value_free done [13:23:43]process_json_proto returns [13:23:43]Send response to host [13:23:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188286,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:23:43]free response buf [13:23:43]execute_script done [13:23:43]execute_script returns [13:23:43]free content buf [13:23:43]Sock 7.Close socket [13:23:43]Sock 7.Thread stoped [13:23:46]OFD Sender: No OFD packet to send [13:23:51]OFD Sender: No OFD packet to send [13:23:56]OFD Sender: No OFD packet to send [13:24:02]OFD Sender: No OFD packet to send [13:24:07]OFD Sender: No OFD packet to send [13:24:12]OFD Sender: No OFD packet to send [13:24:12]accept exits with 9 [13:24:12]New connection [13:24:12]New thread 3067305316 created [13:24:12]Thread 3067161956 joined [13:24:12]Waiting for new connection... [13:24:12] Sock 9.Parse request [13:24:12]Sock 9.Check first char [13:24:12]Sock 9.First char is OK [13:24:12]request: POST /json_proto HTTP/1.0 [13:24:12]Method: POST [13:24:12]URL: /json_proto [13:24:12]Method is POST - this is cgi request [13:24:12]url: /json_proto [13:24:12]query_string will be loaded in cgi processing [13:24:12]execute_cgi json_proto POST (null) [13:24:12]execute_cgi path=json_proto method=POST [13:24:12]POST find Content-Length [13:24:12]Host: 172.17.42.131:8080 [13:24:12]Content-Length: 754 [13:24:12]Content-Type: application/json [13:24:12] [13:24:12]POST finish read [13:24:12]Found Content-Length = 754 [13:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210342", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126900", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:12]execute_script... [13:24: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)210342", "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" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30126900", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:24:12]POST & json_proto [13:24:12]process_json_proto [13:24:12]json parsed OK: [13:24:12]protocol is kg_v1.0 [13:24:12]action value=close_receipt [13:24:12]process_action close_receipt [13:24:12]cmd_close_receipt [13:24:12]MH_GetDate [13:24:12]Write to MH i2c: F0 00 00 49 01 39 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: F0 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: F0 09 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: F0 09 00 49 01 00 7D A7 17 67 A0 18 CA 66 CC [13:24:12]GetLastDocTimeStamp 1729603419 [13:24:12]current date 1729603453 [13:24:12]FM_GetShiftState [13:24:12]SAM_PROTO_GetShiftState [13:24:12]wFMCommunicate request_size=4 [13:24:12]MH_SAM_APDU [13:24:12]CAPDU: 80 13 01 00 [13:24:12]Write to MH i2c: E2 08 00 4A 01 80 13 01 00 00 00 00 00 C8 [13:24:12]Write i2c OK [13:24:12]MH_I2C_Read... [13:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:12]Read from MH i2c: E2 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 0E 00 [13:24:12]MH_I2C_Read... [13:24:12]Read from MH i2c: E2 0E 00 4A 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BD [13:24:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:24:12]wFMCommunicate OK [13:24:12]SAM_PROTO_GetShiftState done [13:24:12]FM_GetShiftState done [13:24:12]opened in 1729556094 [13:24:12]opened+sec_in_day 1729642494 [13:24:12]quantity*price = 0 [13:24:12]sum+1 = 1 [13:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 316 22.10.2024 13:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30126900 ФМ: 0000000000965340 ФД: 188287 ФПД: 185215449050526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188287&fm=185215449050526&tin=02508201610067®Number=0000000000100030&sum=0 [13:24:13]StoreToDocumentArchive [13:24:13]shift 461 fd 188287 [13:24:13]save to /storage/0461/doc_00188287 [13:24:13]save last doc name /storage/0461/doc_00188287 to /storage/kkm_last_doc_name [13:24:13]save OK [13:24:13]Clear old archive folders... [13:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:24:13]tlvbuf is 01440A80 [13:24:13]SAM_PROTO_ClearQueue [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 09 00 00 [13:24:13]Write to MH i2c: E2 08 00 57 01 80 09 00 00 00 00 00 00 CA [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]SAM_PROTO_ClearQueue done [13:24:13]KKMCreateOFDPacket [13:24:13]OFDProtocolAddRootSTLVToBuf [13:24:13]FM_MakeSignedData [13:24:13]FM_MakeSignedData [13:24:13]SAM_PROTO_SignData [13:24:13]wFMCommunicate request_size=4 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 01 02 [13:24:13]Write to MH i2c: E2 08 00 58 01 80 0D 01 02 00 00 00 00 D2 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:24:13]Read from MH i2c: E2 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 [13:24:13]MH_I2C_Read... [13:24:13]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [13:24:13]RAPDU: 90 00 [13:24:13]wFMCommunicate OK [13:24:13]wFMCommunicate request_size=255 [13:24:13]MH_SAM_APDU [13:24:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 7D A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DF 02 00 35 04 06 00 A8 [13:24:13]Write to MH i2c: E2 02 01 59 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 7D A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DF 02 00 35 04 06 00 A8 00 00 E7 [13:24:13]Write i2c OK [13:24:13]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 03 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [13:24:14]RAPDU: 90 00 [13:24:14]wFMCommunicate OK [13:24:14]wFMCommunicate request_size=10 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 0D 02 02 05 73 D5 0C 2D 9E [13:24:14]Write to MH i2c: E2 0D 00 5A 01 80 0D 02 02 05 00 73 D5 0C 2D 9E 00 00 FE [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 03 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 03 00 5A 01 00 90 00 CF [13:24:14]RAPDU: 90 00 [13:24:14]wFMCommunicate OK [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 0D 03 02 [13:24:14]Write to MH i2c: E2 08 00 5B 01 80 0D 03 02 00 00 00 00 D7 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0B 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 0B 00 5B 01 00 26 63 F5 2A 95 9E 35 BD 90 00 A5 [13:24:14]RAPDU: 26 63 F5 2A 95 9E 35 BD 90 00 [13:24:14]wFMCommunicate OK [13:24:14]SAM_PROTO_SignData done [13:24:14]FM_MakeSignedData done [13:24:14]CreateOFDProtocolMessage [13:24:14]wFMCommunicate request_size=4 [13:24:14]MH_SAM_APDU [13:24:14]CAPDU: 80 11 00 00 [13:24:14]Write to MH i2c: E2 08 00 5C 01 80 11 00 00 00 00 00 00 D7 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:14]Read from MH i2c: E2 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 17 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: E2 17 00 5C 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 25 [13:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:14]wFMCommunicate OK [13:24:14]CreateOFDProtocolMessage done [13:24:14]OFDSenderStorePacket 188287 [13:24:14]StoreOFDPacket docnum=188287 [13:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B 61 07 01 B7 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 7D A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DF 02 00 35 04 06 00 A8 73 D5 0C 2D 9E 26 63 F5 2A 95 9E 35 BD [13:24:14]CheckFolder [13:24:14]dirname=/storage/ofd_packets [13:24:14]CheckFolder done [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00188287 [13:24:14]NVStorageSaveData ofd_packets/00188287 [13:24:14]File name is /storage/ofd_packets/00188287 [13:24:14]Write 301 bytes [13:24:14]NVStorageSaveData done [13:24:14]OFDSenderStorePacket done [13:24:14]KKMCreateOFDPacket done [13:24:14]NVStorageSaveData kkm_last_timestamp [13:24:14]File name is /storage/kkm_last_timestamp [13:24:14]Write 4 bytes [13:24:14]NVStorageSaveData done [13:24:14]ExternCall_PrintAddStr [13:24:14]wPrintStart [13:24:14]Write to MH i2c: 01 00 00 5D 01 5E [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 5D 01 00 00 00 00 00 FF 0F 73 [13:24:14]RasterBufferAndPrint [13:24:14]line Счет N : (1)210342 [13:24:14]line ИНН: 02508201610067 [13:24:14]line Контрольно-Кассовый Чек [13:24:14]line ПРОДАЖА [13:24:14]line ТРК (МРК, ГНК) : 43 [13:24:14]line Товар: 2710124500 [13:24:14]line Аи-95-К-3 [13:24:14]line 20.000 * 0.00 [13:24:14]line = 0.00 [13:24:14]line НДС 12% НСП 1% [13:24:14]line > о реализуемом товаре [13:24:14]line ИТОГО: 0.00 [13:24:14]line НСП 1% : 0.00 [13:24:14]line НДС 12% : 0.00 [13:24:14]line Наличными: 0.00 [13:24:14]line Безнал.: 0.00 [13:24:14]line Место: АЗС № 86 "Партнер Нефть" [13:24:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:24:14]line СНО: Общий режим [13:24:14]line Чек 316 22.10.2024 13:24 [13:24:14]line Смена: 461 ФФД: 1.0 [13:24:14]line ЗНМ: 0300000155 [13:24:14]line РНМ: 0000000000100030 [13:24:14]line Версия ККМ: 001 [13:24:14]line Талоны: ТК ГПНА Online [13:24:14]line 30126900 [13:24:14]line ФМ: 0000000000965340 [13:24:14]line ФД: 188287 [13:24:14]line ФПД: 185215449050526 [13:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188287&fm=185215449050526&tin=02508201610067®Number=0000000000100030&sum=0 [13:24:14]written 0, free lines is 4095 [13:24:14]OFD Sender: Processing packet 188287 [packets to send 1062, broken 1061] [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00188287 [13:24:14]OFD Sender: To server: pG, [13:24:14]CommunicateWithHost lk.salyk.kg:30040 [13:24:14]ConnectInit lk.salyk.kg [13:24:14]Connected sock=10 [13:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B 61 07 01 B7 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3C 01 00 00 F4 03 04 00 7D A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DF 02 00 35 04 06 00 A8 73 D5 0C 2D 9E 26 63 F5 2A 95 9E 35 BD [13:24:14]Write to MH i2c: 01 00 00 87 01 88 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 87 0C 22 [13:24:14]RasterBufferAndPrint [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]line [13:24:14]written 0, free lines is 3211 [13:24:14]MH_Cut [13:24:14]Write to MH i2c: D1 01 00 8E 01 01 61 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 01 00 [13:24:14]MH_I2C_Read... [13:24:14]Read from MH i2c: D1 01 00 8E 01 00 60 [13:24:14]Write to MH i2c: 01 00 00 8F 01 90 [13:24:14]Write i2c OK [13:24:14]MH_I2C_Read... [13:24:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3C 2A 47 00 59 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F DF 02 00 F4 03 04 00 6A 51 17 67 B6 04 01 00 00 57 AA 20 49 8B DF AB 65 [13:24:14]CommunicateWithHost err = 0 [13:24:14]CheckOFDResponse [13:24:14]1017 (14) - 77093643461234 [13:24:14]1041 (16) - 0000000000965340 [13:24:14]1040 (4) - 188287 [13:24:14]1012 (4) - 22.10.2024 07:16 [13:24:14]1206 (1) - 0 [13:24:14]OFD Sender: Remove packet 188287 [13:24:14]ProducePacketName [13:24:14]name=ofd_packets/00188287 [13:24:14]NVStorageDeleteData [13:24:15]OFD Sender: No OFD packet to send [13:24:15]*** Cut start [13:24:15]*** Partial cut [13:24:15]*** CUTSNS_PIN = 1 [13:24:15]*** CUTSNS_PIN = 0 [13:24:16]*** Brake cut motor [13:24:16]Read from MH i2c: 01 [13:24:16]MH_I2C_Read... [13:24:16]*** Stop cut motor [13:24:16]*** Cut end [13:24:16]Read from MH i2c: 01 07 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [13:24:16]process_action close_receipt done [13:24:16]requested_data is exist [13:24:16]produce_requested_data [13:24:16]requested_item fm.sn is exist - process it [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 11 00 00 [13:24:16]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 17 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [13:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:24:16]wFMCommunicate OK [13:24:16]requested_item fd.num is exist - process it [13:24:16]SAM_PROTO_GetFieldsCounters [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 13 00 00 [13:24:16]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 62 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 FA [13:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3C 01 00 00 5E 04 04 00 3C 01 00 00 57 04 04 00 3D 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_GetFieldsCounters done [13:24:16]requested_item shift.num is exist - process it [13:24:16]requested_item shift.opened is exist - process it [13:24:16]req_shift_opened [13:24:16]FM_GetShiftState [13:24:16]SAM_PROTO_GetShiftState [13:24:16]wFMCommunicate request_size=4 [13:24:16]MH_SAM_APDU [13:24:16]CAPDU: 80 13 01 00 [13:24:16]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [13:24:16]Write i2c OK [13:24:16]MH_I2C_Read... [13:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:24:16]Read from MH i2c: E2 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 [13:24:16]MH_I2C_Read... [13:24:16]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 05 [13:24:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:24:16]wFMCommunicate OK [13:24:16]SAM_PROTO_GetShiftState done [13:24:16]FM_GetShiftState done [13:24:16]req_shift_opened done [13:24:16]requested_item shift.open_date is exist - process it [13:24:16]req_shift_open_date [13:24:16]req_shift_open_date done [13:24:16]produce_requested_data done [13:24:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188287,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:24:16]process_action_free close_receipt [13:24:16]json_value_free [13:24:16]json_value_free done [13:24:16]process_json_proto returns [13:24:16]Send response to host [13:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188287,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:24:16]free response buf [13:24:16]execute_script done [13:24:16]execute_script returns [13:24:16]free content buf [13:24:16]Sock 9.Close socket [13:24:16]Sock 9.Thread stoped [13:24:20]OFD Sender: No OFD packet to send [13:24:25]OFD Sender: No OFD packet to send [13:24:30]OFD Sender: No OFD packet to send [13:24:35]OFD Sender: No OFD packet to send [13:24:40]OFD Sender: No OFD packet to send [13:24:45]OFD Sender: No OFD packet to send [13:24:50]OFD Sender: No OFD packet to send [13:24:55]OFD Sender: No OFD packet to send [13:25:00]OFD Sender: No OFD packet to send [13:25:05]OFD Sender: No OFD packet to send [13:25:10]OFD Sender: No OFD packet to send [13:25:15]OFD Sender: No OFD packet to send [13:25:20]OFD Sender: No OFD packet to send [13:25:25]OFD Sender: No OFD packet to send [13:25:26]accept exits with 7 [13:25:26]New connection [13:25:26]New thread 3067161956 created [13:25:26]Thread 3067305316 joined [13:25:26]Waiting for new connection... [13:25:26] Sock 7.Parse request [13:25:26]Sock 7.Check first char [13:25:26]Sock 7.First char is OK [13:25:26]request: POST /json_proto HTTP/1.0 [13:25:26]Method: POST [13:25:26]URL: /json_proto [13:25:26]Method is POST - this is cgi request [13:25:26]url: /json_proto [13:25:26]query_string will be loaded in cgi processing [13:25:26]execute_cgi json_proto POST (null) [13:25:26]execute_cgi path=json_proto method=POST [13:25:26]POST find Content-Length [13:25:26]Host: 172.17.42.131:8080 [13:25:26]Content-Length: 679 [13:25:26]Content-Type: application/json [13:25:26] [13:25:26]POST finish read [13:25:26]Found Content-Length = 679 [13:25:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:25:26]execute_script... [13:25: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)210343", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:25:26]POST & json_proto [13:25:26]process_json_proto [13:25:26]json parsed OK: [13:25:26]protocol is kg_v1.0 [13:25:26]action value=close_receipt [13:25:26]process_action close_receipt [13:25:26]cmd_close_receipt [13:25:26]MH_GetDate [13:25:26]Write to MH i2c: F0 00 00 93 01 83 [13:25:26]Write i2c OK [13:25:26]MH_I2C_Read... [13:25:26]Read from MH i2c: F0 [13:25:26]MH_I2C_Read... [13:25:26]Read from MH i2c: F0 09 00 [13:25:26]MH_I2C_Read... [13:25:26]Read from MH i2c: F0 09 00 93 01 00 C7 A7 17 67 A0 18 CA 66 60 [13:25:26]GetLastDocTimeStamp 1729603453 [13:25:26]current date 1729603527 [13:25:26]FM_GetShiftState [13:25:26]SAM_PROTO_GetShiftState [13:25:26]wFMCommunicate request_size=4 [13:25:26]MH_SAM_APDU [13:25:26]CAPDU: 80 13 01 00 [13:25:26]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [13:25:26]Write i2c OK [13:25:26]MH_I2C_Read... [13:25:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:26]Read from MH i2c: E2 [13:25:26]MH_I2C_Read... [13:25:26]Read from MH i2c: E2 0E 00 [13:25:26]MH_I2C_Read... [13:25:26]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 07 [13:25:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:25:26]wFMCommunicate OK [13:25:26]SAM_PROTO_GetShiftState done [13:25:26]FM_GetShiftState done [13:25:26]opened in 1729556094 [13:25:26]opened+sec_in_day 1729642494 [13:25:26]quantity*price = 200025 [13:25:26]sum+1 = 200026 [13:25:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 317 22.10.2024 13:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188288 ФПД: 100355772387937 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132527&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188288&fm=100355772387937&tin=02508201610067®Number=0000000000100030&sum=200000 [13:25:27]StoreToDocumentArchive [13:25:27]shift 461 fd 188288 [13:25:27]save to /storage/0461/doc_00188288 [13:25:27]save last doc name /storage/0461/doc_00188288 to /storage/kkm_last_doc_name [13:25:27]save OK [13:25:27]Clear old archive folders... [13:25:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:25:27]tlvbuf is 01493CE0 [13:25:27]SAM_PROTO_ClearQueue [13:25:27]wFMCommunicate request_size=4 [13:25:27]MH_SAM_APDU [13:25:27]CAPDU: 80 09 00 00 [13:25:27]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [13:25:27]Write i2c OK [13:25:27]MH_I2C_Read... [13:25:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:25:27]Read from MH i2c: E2 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 03 00 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [13:25:27]RAPDU: 90 00 [13:25:27]wFMCommunicate OK [13:25:27]SAM_PROTO_ClearQueue done [13:25:27]KKMCreateOFDPacket [13:25:27]OFDProtocolAddRootSTLVToBuf [13:25:27]FM_MakeSignedData [13:25:27]FM_MakeSignedData [13:25:27]SAM_PROTO_SignData [13:25:27]wFMCommunicate request_size=4 [13:25:27]MH_SAM_APDU [13:25:27]CAPDU: 80 0D 01 02 [13:25:27]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [13:25:27]Write i2c OK [13:25:27]MH_I2C_Read... [13:25:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:25:27]Read from MH i2c: E2 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 03 00 [13:25:27]MH_I2C_Read... [13:25:27]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [13:25:27]RAPDU: 90 00 [13:25:27]wFMCommunicate OK [13:25:27]wFMCommunicate request_size=255 [13:25:27]MH_SAM_APDU [13:25:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 01 00 00 F4 03 04 00 C7 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DF 02 00 35 04 06 00 5B 45 E6 2A [13:25:27]Write to MH i2c: E2 02 01 A3 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 32 31 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 3D 01 00 00 F4 03 04 00 C7 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DF 02 00 35 04 06 00 5B 45 E6 2A 00 00 7E [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [13:25:28]RAPDU: 90 00 [13:25:28]wFMCommunicate OK [13:25:28]wFMCommunicate request_size=7 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 0D 02 02 02 12 61 [13:25:28]Write to MH i2c: E2 0A 00 A4 01 80 0D 02 02 02 00 12 61 00 00 96 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [13:25:28]RAPDU: 90 00 [13:25:28]wFMCommunicate OK [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 0D 03 02 [13:25:28]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 0B 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 0B 00 A5 01 00 51 FF 40 40 64 56 C7 5A 90 00 CD [13:25:28]RAPDU: 51 FF 40 40 64 56 C7 5A 90 00 [13:25:28]wFMCommunicate OK [13:25:28]SAM_PROTO_SignData done [13:25:28]FM_MakeSignedData done [13:25:28]CreateOFDProtocolMessage [13:25:28]wFMCommunicate request_size=4 [13:25:28]MH_SAM_APDU [13:25:28]CAPDU: 80 11 00 00 [13:25:28]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:28]Read from MH i2c: E2 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 17 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [13:25:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:28]wFMCommunicate OK [13:25:28]CreateOFDProtocolMessage done [13:25:28]OFDSenderStorePacket 188288 [13:25:28]StoreOFDPacket docnum=188288 [13:25:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 24 0E 04 01 5A EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 01 00 00 F4 03 04 00 C7 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DF 02 00 35 04 06 00 5B 45 E6 2A 12 61 51 FF 40 40 64 56 C7 5A [13:25:28]CheckFolder [13:25:28]dirname=/storage/ofd_packets [13:25:28]CheckFolder done [13:25:28]ProducePacketName [13:25:28]name=ofd_packets/00188288 [13:25:28]NVStorageSaveData ofd_packets/00188288 [13:25:28]File name is /storage/ofd_packets/00188288 [13:25:28]Write 298 bytes [13:25:28]NVStorageSaveData done [13:25:28]OFDSenderStorePacket done [13:25:28]KKMCreateOFDPacket done [13:25:28]NVStorageSaveData kkm_last_timestamp [13:25:28]File name is /storage/kkm_last_timestamp [13:25:28]Write 4 bytes [13:25:28]NVStorageSaveData done [13:25:28]ExternCall_PrintAddStr [13:25:28]wPrintStart [13:25:28]Write to MH i2c: 01 00 00 A7 01 A8 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 07 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [13:25:28]RasterBufferAndPrint [13:25:28]line Счет N : (1)210343 [13:25:28]line ИНН: 02508201610067 [13:25:28]line Контрольно-Кассовый Чек [13:25:28]line ПРОДАЖА [13:25:28]line ТРК (МРК, ГНК) : 51 [13:25:28]line Товар: 2710194210 [13:25:28]line ДТ-К-5 [13:25:28]line 26.250 * 76.20 [13:25:28]line = 2000.25 [13:25:28]line НДС 12% НСП 1% [13:25:28]line > о реализуемом товаре [13:25:28]line ОКРУГЛЕНИЕ: -0.25 [13:25:28]line ИТОГО: 2000.00 [13:25:28]line Внесено: 2000.00 [13:25:28]line СДАЧА: 0.00 [13:25:28]line НСП 1% : 17.70 [13:25:28]line НДС 12% : 212.42 [13:25:28]line Наличными: 2000.00 [13:25:28]line Безнал.: 0.00 [13:25:28]line Место: АЗС № 86 "Партнер Нефть" [13:25:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:25:28]line СНО: Общий режим [13:25:28]line Чек 317 22.10.2024 13:25 [13:25:28]line Смена: 461 ФФД: 1.0 [13:25:28]line ЗНМ: 0300000155 [13:25:28]line РНМ: 0000000000100030 [13:25:28]line Версия ККМ: 001 [13:25:28]line ФМ: 0000000000965340 [13:25:28]line ФД: 188288 [13:25:28]line ФПД: 100355772387937 [13:25:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132527&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188288&fm=100355772387937&tin=02508201610067®Number=0000000000100030&sum=200000 [13:25:28]written 0, free lines is 4095 [13:25:28]OFD Sender: Processing packet 188288 [packets to send 1062, broken 1061] [13:25:28]ProducePacketName [13:25:28]name=ofd_packets/00188288 [13:25:28]OFD Sender: To server: pG, [13:25:28]CommunicateWithHost lk.salyk.kg:30040 [13:25:28]ConnectInit lk.salyk.kg [13:25:28]Connected sock=10 [13:25:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 24 0E 04 01 5A EC 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3D 01 00 00 F4 03 04 00 C7 A7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DF 02 00 35 04 06 00 5B 45 E6 2A 12 61 51 FF 40 40 64 56 C7 5A [13:25:28]Write to MH i2c: 01 00 00 D2 01 D3 [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 07 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: 01 07 00 D2 01 00 00 00 00 00 68 0C 4E [13:25:28]RasterBufferAndPrint [13:25:28]line [13:25:28]line [13:25:28]line [13:25:28]line [13:25:28]line [13:25:28]written 0, free lines is 3180 [13:25:28]MH_Cut [13:25:28]Write to MH i2c: D1 01 00 D9 01 01 AC [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: D1 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: D1 01 00 [13:25:28]MH_I2C_Read... [13:25:28]Read from MH i2c: D1 01 00 D9 01 00 AB [13:25:28]Write to MH i2c: 01 00 00 DA 01 DB [13:25:28]Write i2c OK [13:25:28]MH_I2C_Read... [13:25:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 89 95 47 00 04 CA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 DF 02 00 F4 03 04 00 B4 51 17 67 B6 04 01 00 00 B2 EC BA 3E 4D E1 6F E1 [13:25:29]CommunicateWithHost err = 0 [13:25:29]CheckOFDResponse [13:25:29]1017 (14) - 77093643461234 [13:25:29]1041 (16) - 0000000000965340 [13:25:29]1040 (4) - 188288 [13:25:29]1012 (4) - 22.10.2024 07:18 [13:25:29]1206 (1) - 0 [13:25:29]OFD Sender: Remove packet 188288 [13:25:29]ProducePacketName [13:25:29]name=ofd_packets/00188288 [13:25:29]NVStorageDeleteData [13:25:29]OFD Sender: No OFD packet to send [13:25:30]*** Cut start [13:25:30]*** Partial cut [13:25:30]*** CUTSNS_PIN = 1 [13:25:30]*** CUTSNS_PIN = 0 [13:25:30]*** Brake cut motor [13:25:30]Read from MH i2c: 01 [13:25:30]MH_I2C_Read... [13:25:30]*** Stop cut motor [13:25:30]*** Cut end [13:25:30]Read from MH i2c: 01 07 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: 01 07 00 DA 01 00 00 00 00 00 FF 0F F0 [13:25:30]process_action close_receipt done [13:25:30]requested_data is exist [13:25:30]produce_requested_data [13:25:30]requested_item fm.sn is exist - process it [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 11 00 00 [13:25:30]Write to MH i2c: E2 08 00 DB 01 80 11 00 00 00 00 00 00 56 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 17 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 17 00 DB 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A4 [13:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:25:30]wFMCommunicate OK [13:25:30]requested_item fd.num is exist - process it [13:25:30]SAM_PROTO_GetFieldsCounters [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 13 00 00 [13:25:30]Write to MH i2c: E2 08 00 DC 01 80 13 00 00 00 00 00 00 59 [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 62 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 62 00 DC 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 49 [13:25:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3D 01 00 00 5E 04 04 00 3D 01 00 00 57 04 04 00 3E 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:25:30]wFMCommunicate OK [13:25:30]SAM_PROTO_GetFieldsCounters done [13:25:30]requested_item shift.num is exist - process it [13:25:30]requested_item shift.opened is exist - process it [13:25:30]req_shift_opened [13:25:30]FM_GetShiftState [13:25:30]SAM_PROTO_GetShiftState [13:25:30]wFMCommunicate request_size=4 [13:25:30]MH_SAM_APDU [13:25:30]CAPDU: 80 13 01 00 [13:25:30]Write to MH i2c: E2 08 00 DD 01 80 13 01 00 00 00 00 00 5B [13:25:30]Write i2c OK [13:25:30]MH_I2C_Read... [13:25:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:25:30]Read from MH i2c: E2 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 0E 00 [13:25:30]MH_I2C_Read... [13:25:30]Read from MH i2c: E2 0E 00 DD 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 50 [13:25:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:25:30]wFMCommunicate OK [13:25:30]SAM_PROTO_GetShiftState done [13:25:30]FM_GetShiftState done [13:25:30]req_shift_opened done [13:25:30]requested_item shift.open_date is exist - process it [13:25:30]req_shift_open_date [13:25:30]req_shift_open_date done [13:25:30]produce_requested_data done [13:25:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188288,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:25:30]process_action_free close_receipt [13:25:30]json_value_free [13:25:30]json_value_free done [13:25:30]process_json_proto returns [13:25:30]Send response to host [13:25:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188288,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:25:30]free response buf [13:25:30]execute_script done [13:25:30]execute_script returns [13:25:30]free content buf [13:25:30]Sock 7.Close socket [13:25:30]Sock 7.Thread stoped [13:25:34]OFD Sender: No OFD packet to send [13:25:39]OFD Sender: No OFD packet to send [13:25:44]OFD Sender: No OFD packet to send [13:25:49]OFD Sender: No OFD packet to send [13:25:54]OFD Sender: No OFD packet to send [13:25:59]OFD Sender: No OFD packet to send [13:26:04]OFD Sender: No OFD packet to send [13:26:09]OFD Sender: No OFD packet to send [13:26:14]OFD Sender: No OFD packet to send [13:26:19]OFD Sender: No OFD packet to send [13:26:24]OFD Sender: No OFD packet to send [13:26:29]OFD Sender: No OFD packet to send [13:26:34]OFD Sender: No OFD packet to send [13:26:39]OFD Sender: No OFD packet to send [13:26:45]OFD Sender: No OFD packet to send [13:26:50]OFD Sender: No OFD packet to send [13:26:55]OFD Sender: No OFD packet to send [13:27:00]OFD Sender: No OFD packet to send [13:27:05]OFD Sender: No OFD packet to send [13:27:10]OFD Sender: No OFD packet to send [13:27:15]OFD Sender: No OFD packet to send [13:27:20]OFD Sender: No OFD packet to send [13:27:25]OFD Sender: No OFD packet to send [13:27:29]accept exits with 9 [13:27:29]New connection [13:27:29]New thread 3067305316 created [13:27:29]Thread 3067161956 joined [13:27:29]Waiting for new connection... [13:27:29] Sock 9.Parse request [13:27:29]Sock 9.Check first char [13:27:29]Sock 9.First char is OK [13:27:29]request: POST /json_proto HTTP/1.0 [13:27:29]Method: POST [13:27:29]URL: /json_proto [13:27:29]Method is POST - this is cgi request [13:27:29]url: /json_proto [13:27:29]query_string will be loaded in cgi processing [13:27:29]execute_cgi json_proto POST (null) [13:27:29]execute_cgi path=json_proto method=POST [13:27:29]POST find Content-Length [13:27:29]Host: 172.17.42.131:8080 [13:27:29]Content-Length: 682 [13:27:29]Content-Type: application/json [13:27:29] [13:27:29]POST finish read [13:27:29]Found Content-Length = 682 [13:27:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:29]execute_script... [13:27: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)210344", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:27:29]POST & json_proto [13:27:29]process_json_proto [13:27:29]json parsed OK: [13:27:29]protocol is kg_v1.0 [13:27:29]action value=close_receipt [13:27:29]process_action close_receipt [13:27:29]cmd_close_receipt [13:27:29]MH_GetDate [13:27:29]Write to MH i2c: F0 00 00 DE 01 CE [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 09 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: F0 09 00 DE 01 00 42 A8 17 67 A0 18 CA 66 27 [13:27:29]GetLastDocTimeStamp 1729603527 [13:27:29]current date 1729603650 [13:27:29]FM_GetShiftState [13:27:29]SAM_PROTO_GetShiftState [13:27:29]wFMCommunicate request_size=4 [13:27:29]MH_SAM_APDU [13:27:29]CAPDU: 80 13 01 00 [13:27:29]Write to MH i2c: E2 08 00 DF 01 80 13 01 00 00 00 00 00 5D [13:27:29]Write i2c OK [13:27:29]MH_I2C_Read... [13:27:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:29]Read from MH i2c: E2 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: E2 0E 00 [13:27:29]MH_I2C_Read... [13:27:29]Read from MH i2c: E2 0E 00 DF 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 52 [13:27:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:27:29]wFMCommunicate OK [13:27:29]SAM_PROTO_GetShiftState done [13:27:29]FM_GetShiftState done [13:27:29]opened in 1729556094 [13:27:29]opened+sec_in_day 1729642494 [13:27:29]quantity*price = 300046 [13:27:29]sum+1 = 300048 [13:27:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 318 22.10.2024 13:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188289 ФПД: 224509993090000 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188289&fm=224509993090000&tin=02508201610067®Number=0000000000100030&sum=300000 [13:27:31]StoreToDocumentArchive [13:27:31]shift 461 fd 188289 [13:27:31]save to /storage/0461/doc_00188289 [13:27:31]save last doc name /storage/0461/doc_00188289 to /storage/kkm_last_doc_name [13:27:31]save OK [13:27:31]Clear old archive folders... [13:27:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:27:31]tlvbuf is 0143DC20 [13:27:31]SAM_PROTO_ClearQueue [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 09 00 00 [13:27:31]Write to MH i2c: E2 08 00 EC 01 80 09 00 00 00 00 00 00 5F [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]SAM_PROTO_ClearQueue done [13:27:31]KKMCreateOFDPacket [13:27:31]OFDProtocolAddRootSTLVToBuf [13:27:31]FM_MakeSignedData [13:27:31]FM_MakeSignedData [13:27:31]SAM_PROTO_SignData [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 01 02 [13:27:31]Write to MH i2c: E2 08 00 ED 01 80 0D 01 02 00 00 00 00 67 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]wFMCommunicate request_size=255 [13:27:31]MH_SAM_APDU [13:27: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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 42 A8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DF 02 00 35 04 06 00 CC [13:27:31]Write to MH i2c: E2 02 01 EE 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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 42 A8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DF 02 00 35 04 06 00 CC 00 00 06 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]wFMCommunicate request_size=10 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 02 02 05 30 CE 62 FB D0 [13:27:31]Write to MH i2c: E2 0D 00 EF 01 80 0D 02 02 05 00 30 CE 62 FB D0 00 00 9F [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 03 00 EF 01 00 90 00 64 [13:27:31]RAPDU: 90 00 [13:27:31]wFMCommunicate OK [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 0D 03 02 [13:27:31]Write to MH i2c: E2 08 00 F0 01 80 0D 03 02 00 00 00 00 6C [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0B 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 0B 00 F0 01 00 ED 61 2B 33 86 03 4C DB 90 00 C9 [13:27:31]RAPDU: ED 61 2B 33 86 03 4C DB 90 00 [13:27:31]wFMCommunicate OK [13:27:31]SAM_PROTO_SignData done [13:27:31]FM_MakeSignedData done [13:27:31]CreateOFDProtocolMessage [13:27:31]wFMCommunicate request_size=4 [13:27:31]MH_SAM_APDU [13:27:31]CAPDU: 80 11 00 00 [13:27:31]Write to MH i2c: E2 08 00 F1 01 80 11 00 00 00 00 00 00 6C [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:31]Read from MH i2c: E2 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: E2 17 00 F1 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [13:27:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:27:31]wFMCommunicate OK [13:27:31]CreateOFDProtocolMessage done [13:27:31]OFDSenderStorePacket 188289 [13:27:31]StoreOFDPacket docnum=188289 [13:27:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 66 07 01 E0 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 42 A8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DF 02 00 35 04 06 00 CC 30 CE 62 FB D0 ED 61 2B 33 86 03 4C DB [13:27:31]CheckFolder [13:27:31]dirname=/storage/ofd_packets [13:27:31]CheckFolder done [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00188289 [13:27:31]NVStorageSaveData ofd_packets/00188289 [13:27:31]File name is /storage/ofd_packets/00188289 [13:27:31]Write 301 bytes [13:27:31]NVStorageSaveData done [13:27:31]OFDSenderStorePacket done [13:27:31]KKMCreateOFDPacket done [13:27:31]NVStorageSaveData kkm_last_timestamp [13:27:31]File name is /storage/kkm_last_timestamp [13:27:31]Write 4 bytes [13:27:31]NVStorageSaveData done [13:27:31]ExternCall_PrintAddStr [13:27:31]wPrintStart [13:27:31]Write to MH i2c: 01 00 00 F2 01 F3 [13:27:31]Write i2c OK [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 [13:27:31]MH_I2C_Read... [13:27:31]Read from MH i2c: 01 07 00 F2 01 00 00 00 00 00 FF 0F 08 [13:27:31]RasterBufferAndPrint [13:27:31]line Счет N : (1)210344 [13:27:31]line ИНН: 02508201610067 [13:27:31]line Контрольно-Кассовый Чек [13:27:31]line ПРОДАЖА [13:27:31]line ТРК (МРК, ГНК) : 32 [13:27:31]line Товар: 2710124130 [13:27:31]line Аи-92-К-3 [13:27:31]line 44.850 * 66.90 [13:27:31]line = 3000.47 [13:27:31]line НДС 12% НСП 1% [13:27:31]line > о реализуемом товаре [13:27:31]line ОКРУГЛЕНИЕ: -0.47 [13:27:31]line ИТОГО: 3000.00 [13:27:31]line Внесено: 3000.00 [13:27:31]line СДАЧА: 0.00 [13:27:31]line НСП 1% : 26.55 [13:27:31]line НДС 12% : 318.63 [13:27:31]line Наличными: 3000.00 [13:27:31]line Безнал.: 0.00 [13:27:31]line Место: АЗС № 86 "Партнер Нефть" [13:27:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:27:31]line СНО: Общий режим [13:27:31]line Чек 318 22.10.2024 13:27 [13:27:31]line Смена: 461 ФФД: 1.0 [13:27:31]line ЗНМ: 0300000155 [13:27:31]line РНМ: 0000000000100030 [13:27:31]line Версия ККМ: 001 [13:27:31]line ФМ: 0000000000965340 [13:27:31]line ФД: 188289 [13:27:31]line ФПД: 224509993090000 [13:27:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T132730&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188289&fm=224509993090000&tin=02508201610067®Number=0000000000100030&sum=300000 [13:27:31]written 0, free lines is 4095 [13:27:31]OFD Sender: Processing packet 188289 [packets to send 1062, broken 1061] [13:27:31]ProducePacketName [13:27:31]name=ofd_packets/00188289 [13:27:31]OFD Sender: To server: pG, [13:27:31]CommunicateWithHost lk.salyk.kg:30040 [13:27:31]ConnectInit lk.salyk.kg [13:27:32]Connected sock=10 [13:27:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 66 07 01 E0 98 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3E 01 00 00 F4 03 04 00 42 A8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DF 02 00 35 04 06 00 CC 30 CE 62 FB D0 ED 61 2B 33 86 03 4C DB [13:27:32]Write to MH i2c: 01 00 00 1D 02 1F [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 07 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: 01 07 00 1D 02 00 00 00 00 00 6C 0C 9E [13:27:32]RasterBufferAndPrint [13:27:32]line [13:27:32]line [13:27:32]line [13:27:32]line [13:27:32]line [13:27:32]written 0, free lines is 3183 [13:27:32]MH_Cut [13:27:32]Write to MH i2c: D1 01 00 24 02 01 F8 [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: D1 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: D1 01 00 [13:27:32]MH_I2C_Read... [13:27:32]Read from MH i2c: D1 01 00 24 02 00 F7 [13:27:32]Write to MH i2c: 01 00 00 25 02 27 [13:27:32]Write i2c OK [13:27:32]MH_I2C_Read... [13:27:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 B1 47 00 01 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 DF 02 00 F4 03 04 00 30 52 17 67 B6 04 01 00 00 0B 35 C3 4A C0 24 E7 9A [13:27:32]CommunicateWithHost err = 0 [13:27:32]CheckOFDResponse [13:27:32]1017 (14) - 77093643461234 [13:27:32]1041 (16) - 0000000000965340 [13:27:32]1040 (4) - 188289 [13:27:32]1012 (4) - 22.10.2024 07:20 [13:27:32]1206 (1) - 0 [13:27:32]OFD Sender: Remove packet 188289 [13:27:32]ProducePacketName [13:27:32]name=ofd_packets/00188289 [13:27:32]NVStorageDeleteData [13:27:32]OFD Sender: No OFD packet to send [13:27:33]*** Cut start [13:27:33]*** Partial cut [13:27:33]*** CUTSNS_PIN = 1 [13:27:33]*** CUTSNS_PIN = 0 [13:27:33]*** Brake cut motor [13:27:33]Read from MH i2c: 01 [13:27:33]MH_I2C_Read... [13:27:33]*** Stop cut motor [13:27:33]*** Cut end [13:27:33]Read from MH i2c: 01 07 00 [13:27:33]MH_I2C_Read... [13:27:33]Read from MH i2c: 01 07 00 25 02 00 00 00 00 00 FF 0F 3C [13:27:33]process_action close_receipt done [13:27:33]requested_data is exist [13:27:33]produce_requested_data [13:27:33]requested_item fm.sn is exist - process it [13:27:33]wFMCommunicate request_size=4 [13:27:33]MH_SAM_APDU [13:27:33]CAPDU: 80 11 00 00 [13:27:33]Write to MH i2c: E2 08 00 26 02 80 11 00 00 00 00 00 00 A2 [13:27:33]Write i2c OK [13:27:33]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 17 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 17 00 26 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F0 [13:27:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:27:34]wFMCommunicate OK [13:27:34]requested_item fd.num is exist - process it [13:27:34]SAM_PROTO_GetFieldsCounters [13:27:34]wFMCommunicate request_size=4 [13:27:34]MH_SAM_APDU [13:27:34]CAPDU: 80 13 00 00 [13:27:34]Write to MH i2c: E2 08 00 27 02 80 13 00 00 00 00 00 00 A5 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 62 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 62 00 27 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 99 [13:27:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3E 01 00 00 5E 04 04 00 3E 01 00 00 57 04 04 00 3F 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:27:34]wFMCommunicate OK [13:27:34]SAM_PROTO_GetFieldsCounters done [13:27:34]requested_item shift.num is exist - process it [13:27:34]requested_item shift.opened is exist - process it [13:27:34]req_shift_opened [13:27:34]FM_GetShiftState [13:27:34]SAM_PROTO_GetShiftState [13:27:34]wFMCommunicate request_size=4 [13:27:34]MH_SAM_APDU [13:27:34]CAPDU: 80 13 01 00 [13:27:34]Write to MH i2c: E2 08 00 28 02 80 13 01 00 00 00 00 00 A7 [13:27:34]Write i2c OK [13:27:34]MH_I2C_Read... [13:27:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:27:34]Read from MH i2c: E2 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 0E 00 [13:27:34]MH_I2C_Read... [13:27:34]Read from MH i2c: E2 0E 00 28 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9C [13:27:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:27:34]wFMCommunicate OK [13:27:34]SAM_PROTO_GetShiftState done [13:27:34]FM_GetShiftState done [13:27:34]req_shift_opened done [13:27:34]requested_item shift.open_date is exist - process it [13:27:34]req_shift_open_date [13:27:34]req_shift_open_date done [13:27:34]produce_requested_data done [13:27:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188289,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:27:34]process_action_free close_receipt [13:27:34]json_value_free [13:27:34]json_value_free done [13:27:34]process_json_proto returns [13:27:34]Send response to host [13:27:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188289,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:27:34]free response buf [13:27:34]execute_script done [13:27:34]execute_script returns [13:27:34]free content buf [13:27:34]Sock 9.Close socket [13:27:34]Sock 9.Thread stoped [13:27:37]OFD Sender: No OFD packet to send [13:27:42]OFD Sender: No OFD packet to send [13:27:47]OFD Sender: No OFD packet to send [13:27:52]OFD Sender: No OFD packet to send [13:27:57]OFD Sender: No OFD packet to send [13:28:02]OFD Sender: No OFD packet to send [13:28:08]OFD Sender: No OFD packet to send [13:28:13]OFD Sender: No OFD packet to send [13:28:18]OFD Sender: No OFD packet to send [13:28:23]OFD Sender: No OFD packet to send [13:28:28]OFD Sender: No OFD packet to send [13:28:33]OFD Sender: No OFD packet to send [13:28:38]OFD Sender: No OFD packet to send [13:28:43]OFD Sender: No OFD packet to send [13:28:48]OFD Sender: No OFD packet to send [13:28:53]OFD Sender: No OFD packet to send [13:28:58]OFD Sender: No OFD packet to send [13:29:03]OFD Sender: No OFD packet to send [13:29:08]OFD Sender: No OFD packet to send [13:29:13]OFD Sender: No OFD packet to send [13:29:18]OFD Sender: No OFD packet to send [13:29:23]OFD Sender: No OFD packet to send [13:29:28]OFD Sender: No OFD packet to send [13:29:33]OFD Sender: No OFD packet to send [13:29:38]OFD Sender: No OFD packet to send [13:29:43]OFD Sender: No OFD packet to send [13:29:48]OFD Sender: No OFD packet to send [13:29:53]OFD Sender: No OFD packet to send [13:29:58]OFD Sender: No OFD packet to send [13:30:03]OFD Sender: No OFD packet to send [13:30:08]OFD Sender: No OFD packet to send [13:30:13]OFD Sender: No OFD packet to send [13:30:18]OFD Sender: No OFD packet to send [13:30:23]OFD Sender: No OFD packet to send [13:30:28]OFD Sender: No OFD packet to send [13:30:33]OFD Sender: No OFD packet to send [13:30:38]OFD Sender: No OFD packet to send [13:30:43]OFD Sender: No OFD packet to send [13:30:48]OFD Sender: No OFD packet to send [13:30:53]OFD Sender: No OFD packet to send [13:30:58]OFD Sender: No OFD packet to send [13:31:03]OFD Sender: No OFD packet to send [13:31:04]accept exits with 7 [13:31:04]New connection [13:31:04]New thread 3067161956 created [13:31:04]Thread 3067305316 joined [13:31:04]Waiting for new connection... [13:31:04] Sock 7.Parse request [13:31:04]Sock 7.Check first char [13:31:04]Sock 7.First char is OK [13:31:04]request: POST /json_proto HTTP/1.0 [13:31:04]Method: POST [13:31:04]URL: /json_proto [13:31:04]Method is POST - this is cgi request [13:31:04]url: /json_proto [13:31:04]query_string will be loaded in cgi processing [13:31:04]execute_cgi json_proto POST (null) [13:31:04]execute_cgi path=json_proto method=POST [13:31:04]POST find Content-Length [13:31:04]Host: 172.17.42.131:8080 [13:31:04]Content-Length: 679 [13:31:04]Content-Type: application/json [13:31:04] [13:31:04]POST finish read [13:31:04]Found Content-Length = 679 [13:31:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:31:04]execute_script... [13:31: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)210345", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [13:31:04]POST & json_proto [13:31:04]process_json_proto [13:31:04]json parsed OK: [13:31:04]protocol is kg_v1.0 [13:31:04]action value=close_receipt [13:31:04]process_action close_receipt [13:31:04]cmd_close_receipt [13:31:04]MH_GetDate [13:31:04]Write to MH i2c: F0 00 00 29 02 1A [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: F0 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: F0 09 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: F0 09 00 29 02 00 19 A9 17 67 A0 18 CA 66 4B [13:31:04]GetLastDocTimeStamp 1729603650 [13:31:04]current date 1729603865 [13:31:04]FM_GetShiftState [13:31:04]SAM_PROTO_GetShiftState [13:31:04]wFMCommunicate request_size=4 [13:31:04]MH_SAM_APDU [13:31:04]CAPDU: 80 13 01 00 [13:31:04]Write to MH i2c: E2 08 00 2A 02 80 13 01 00 00 00 00 00 A9 [13:31:04]Write i2c OK [13:31:04]MH_I2C_Read... [13:31:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:04]Read from MH i2c: E2 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 0E 00 [13:31:04]MH_I2C_Read... [13:31:04]Read from MH i2c: E2 0E 00 2A 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9E [13:31:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:31:04]wFMCommunicate OK [13:31:04]SAM_PROTO_GetShiftState done [13:31:04]FM_GetShiftState done [13:31:04]opened in 1729556094 [13:31:04]opened+sec_in_day 1729642494 [13:31:04]quantity*price = 120015 [13:31:04]sum+1 = 120016 [13:31:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.15 ИТОГО: 1200.00 Внесено: 1200.00 СДАЧА: 0.00 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 1200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 319 22.10.2024 13:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188290 ФПД: 254086452285884 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133105&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188290&fm=254086452285884&tin=02508201610067®Number=0000000000100030&sum=120000 [13:31:05]StoreToDocumentArchive [13:31:05]shift 461 fd 188290 [13:31:05]save to /storage/0461/doc_00188290 [13:31:05]save last doc name /storage/0461/doc_00188290 to /storage/kkm_last_doc_name [13:31:05]save OK [13:31:05]Clear old archive folders... [13:31:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [13:31:05]tlvbuf is 0148BFC0 [13:31:05]SAM_PROTO_ClearQueue [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 09 00 00 [13:31:05]Write to MH i2c: E2 08 00 37 02 80 09 00 00 00 00 00 00 AB [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [13:31:05]RAPDU: 90 00 [13:31:05]wFMCommunicate OK [13:31:05]SAM_PROTO_ClearQueue done [13:31:05]KKMCreateOFDPacket [13:31:05]OFDProtocolAddRootSTLVToBuf [13:31:05]FM_MakeSignedData [13:31:05]FM_MakeSignedData [13:31:05]SAM_PROTO_SignData [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 0D 01 02 [13:31:05]Write to MH i2c: E2 08 00 38 02 80 0D 01 02 00 00 00 00 B3 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [13:31:05]RAPDU: 90 00 [13:31:05]wFMCommunicate OK [13:31:05]wFMCommunicate request_size=255 [13:31:05]MH_SAM_APDU [13:31: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 32 31 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 3F 01 00 00 F4 03 04 00 19 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DF 02 00 35 04 06 00 E7 17 1C BB [13:31:05]Write to MH i2c: E2 02 01 39 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 32 31 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 3F 01 00 00 F4 03 04 00 19 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DF 02 00 35 04 06 00 E7 17 1C BB 00 00 12 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [13:31:05]RAPDU: 90 00 [13:31:05]wFMCommunicate OK [13:31:05]wFMCommunicate request_size=7 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 0D 02 02 02 11 BC [13:31:05]Write to MH i2c: E2 0A 00 3A 02 80 0D 02 02 02 00 11 BC 00 00 87 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 03 00 3A 02 00 90 00 B0 [13:31:05]RAPDU: 90 00 [13:31:05]wFMCommunicate OK [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 0D 03 02 [13:31:05]Write to MH i2c: E2 08 00 3B 02 80 0D 03 02 00 00 00 00 B8 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 0B 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 0B 00 3B 02 00 D4 98 8A 6E 55 18 15 28 90 00 C7 [13:31:05]RAPDU: D4 98 8A 6E 55 18 15 28 90 00 [13:31:05]wFMCommunicate OK [13:31:05]SAM_PROTO_SignData done [13:31:05]FM_MakeSignedData done [13:31:05]CreateOFDProtocolMessage [13:31:05]wFMCommunicate request_size=4 [13:31:05]MH_SAM_APDU [13:31:05]CAPDU: 80 11 00 00 [13:31:05]Write to MH i2c: E2 08 00 3C 02 80 11 00 00 00 00 00 00 B8 [13:31:05]Write i2c OK [13:31:05]MH_I2C_Read... [13:31:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:05]Read from MH i2c: E2 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 17 00 [13:31:05]MH_I2C_Read... [13:31:05]Read from MH i2c: E2 17 00 3C 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [13:31:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:31:05]wFMCommunicate OK [13:31:05]CreateOFDProtocolMessage done [13:31:05]OFDSenderStorePacket 188290 [13:31:05]StoreOFDPacket docnum=188290 [13:31:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6B C3 04 01 7B 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3F 01 00 00 F4 03 04 00 19 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DF 02 00 35 04 06 00 E7 17 1C BB 11 BC D4 98 8A 6E 55 18 15 28 [13:31:05]CheckFolder [13:31:05]dirname=/storage/ofd_packets [13:31:05]CheckFolder done [13:31:05]ProducePacketName [13:31:05]name=ofd_packets/00188290 [13:31:05]NVStorageSaveData ofd_packets/00188290 [13:31:05]File name is /storage/ofd_packets/00188290 [13:31:05]Write 298 bytes [13:31:05]NVStorageSaveData done [13:31:05]OFDSenderStorePacket done [13:31:05]KKMCreateOFDPacket done [13:31:05]NVStorageSaveData kkm_last_timestamp [13:31:05]File name is /storage/kkm_last_timestamp [13:31:05]Write 4 bytes [13:31:05]NVStorageSaveData done [13:31:06]ExternCall_PrintAddStr [13:31:06]wPrintStart [13:31:06]Write to MH i2c: 01 00 00 3D 02 3F [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 07 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 07 00 3D 02 00 00 00 00 00 FF 0F 54 [13:31:06]RasterBufferAndPrint [13:31:06]line Счет N : (1)210345 [13:31:06]line ИНН: 02508201610067 [13:31:06]line Контрольно-Кассовый Чек [13:31:06]line ПРОДАЖА [13:31:06]line ТРК (МРК, ГНК) : 51 [13:31:06]line Товар: 2710194210 [13:31:06]line ДТ-К-5 [13:31:06]line 15.750 * 76.20 [13:31:06]line = 1200.15 [13:31:06]line НДС 12% НСП 1% [13:31:06]line > о реализуемом товаре [13:31:06]line ОКРУГЛЕНИЕ: -0.15 [13:31:06]line ИТОГО: 1200.00 [13:31:06]line Внесено: 1200.00 [13:31:06]line СДАЧА: 0.00 [13:31:06]line НСП 1% : 10.62 [13:31:06]line НДС 12% : 127.45 [13:31:06]line Наличными: 1200.00 [13:31:06]line Безнал.: 0.00 [13:31:06]line Место: АЗС № 86 "Партнер Нефть" [13:31:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:31:06]line СНО: Общий режим [13:31:06]line Чек 319 22.10.2024 13:31 [13:31:06]line Смена: 461 ФФД: 1.0 [13:31:06]line ЗНМ: 0300000155 [13:31:06]line РНМ: 0000000000100030 [13:31:06]line Версия ККМ: 001 [13:31:06]line ФМ: 0000000000965340 [13:31:06]line ФД: 188290 [13:31:06]line ФПД: 254086452285884 [13:31:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133105&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188290&fm=254086452285884&tin=02508201610067®Number=0000000000100030&sum=120000 [13:31:06]written 0, free lines is 4095 [13:31:06]OFD Sender: Processing packet 188290 [packets to send 1062, broken 1061] [13:31:06]ProducePacketName [13:31:06]name=ofd_packets/00188290 [13:31:06]OFD Sender: To server: pG, [13:31:06]CommunicateWithHost lk.salyk.kg:30040 [13:31:06]ConnectInit lk.salyk.kg [13:31:06]Connected sock=10 [13:31:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 6B C3 04 01 7B 66 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 3F 01 00 00 F4 03 04 00 19 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 DF 02 00 35 04 06 00 E7 17 1C BB 11 BC D4 98 8A 6E 55 18 15 28 [13:31:06]Write to MH i2c: 01 00 00 68 02 6A [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 07 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: 01 07 00 68 02 00 00 00 00 00 61 0C DE [13:31:06]RasterBufferAndPrint [13:31:06]line [13:31:06]line [13:31:06]line [13:31:06]line [13:31:06]line [13:31:06]written 0, free lines is 3173 [13:31:06]MH_Cut [13:31:06]Write to MH i2c: D1 01 00 6F 02 01 43 [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: D1 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: D1 01 00 [13:31:06]MH_I2C_Read... [13:31:06]Read from MH i2c: D1 01 00 6F 02 00 42 [13:31:06]Write to MH i2c: 01 00 00 70 02 72 [13:31:06]Write i2c OK [13:31:06]MH_I2C_Read... [13:31:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BE D3 47 00 6C 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 39 36 35 33 34 30 10 04 04 00 82 DF 02 00 F4 03 04 00 06 53 17 67 B6 04 01 00 00 09 42 A9 97 4F BD B3 85 [13:31:06]CommunicateWithHost err = 0 [13:31:06]CheckOFDResponse [13:31:06]1017 (14) - 77093643461234 [13:31:06]1041 (16) - 0000000000965340 [13:31:06]1040 (4) - 188290 [13:31:06]1012 (4) - 22.10.2024 07:23 [13:31:06]1206 (1) - 0 [13:31:06]OFD Sender: Remove packet 188290 [13:31:06]ProducePacketName [13:31:06]name=ofd_packets/00188290 [13:31:06]NVStorageDeleteData [13:31:07]OFD Sender: No OFD packet to send [13:31:07]*** Cut start [13:31:07]*** Partial cut [13:31:07]*** CUTSNS_PIN = 1 [13:31:07]*** CUTSNS_PIN = 0 [13:31:07]*** Brake cut motor [13:31:08]Read from MH i2c: 01 [13:31:08]MH_I2C_Read... [13:31:08]*** Stop cut motor [13:31:08]*** Cut end [13:31:08]Read from MH i2c: 01 07 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: 01 07 00 70 02 00 00 00 00 00 FF 0F 87 [13:31:08]process_action close_receipt done [13:31:08]requested_data is exist [13:31:08]produce_requested_data [13:31:08]requested_item fm.sn is exist - process it [13:31:08]wFMCommunicate request_size=4 [13:31:08]MH_SAM_APDU [13:31:08]CAPDU: 80 11 00 00 [13:31:08]Write to MH i2c: E2 08 00 71 02 80 11 00 00 00 00 00 00 ED [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:31:08]Read from MH i2c: E2 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: E2 17 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: E2 17 00 71 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [13:31:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:31:08]wFMCommunicate OK [13:31:08]requested_item fd.num is exist - process it [13:31:08]SAM_PROTO_GetFieldsCounters [13:31:08]wFMCommunicate request_size=4 [13:31:08]MH_SAM_APDU [13:31:08]CAPDU: 80 13 00 00 [13:31:08]Write to MH i2c: E2 08 00 72 02 80 13 00 00 00 00 00 00 F0 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:31:08]Read from MH i2c: E2 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: E2 62 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: E2 62 00 72 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 E8 [13:31:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 3F 01 00 00 5E 04 04 00 3F 01 00 00 57 04 04 00 40 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:31:08]wFMCommunicate OK [13:31:08]SAM_PROTO_GetFieldsCounters done [13:31:08]requested_item shift.num is exist - process it [13:31:08]requested_item shift.opened is exist - process it [13:31:08]req_shift_opened [13:31:08]FM_GetShiftState [13:31:08]SAM_PROTO_GetShiftState [13:31:08]wFMCommunicate request_size=4 [13:31:08]MH_SAM_APDU [13:31:08]CAPDU: 80 13 01 00 [13:31:08]Write to MH i2c: E2 08 00 73 02 80 13 01 00 00 00 00 00 F2 [13:31:08]Write i2c OK [13:31:08]MH_I2C_Read... [13:31:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:31:08]Read from MH i2c: E2 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: E2 0E 00 [13:31:08]MH_I2C_Read... [13:31:08]Read from MH i2c: E2 0E 00 73 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E7 [13:31:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:31:08]wFMCommunicate OK [13:31:08]SAM_PROTO_GetShiftState done [13:31:08]FM_GetShiftState done [13:31:08]req_shift_opened done [13:31:08]requested_item shift.open_date is exist - process it [13:31:08]req_shift_open_date [13:31:08]req_shift_open_date done [13:31:08]produce_requested_data done [13:31:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188290,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:31:08]process_action_free close_receipt [13:31:08]json_value_free [13:31:08]json_value_free done [13:31:08]process_json_proto returns [13:31:08]Send response to host [13:31:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188290,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:31:08]free response buf [13:31:08]execute_script done [13:31:08]execute_script returns [13:31:08]free content buf [13:31:08]Sock 7.Close socket [13:31:08]Sock 7.Thread stoped [13:31:12]OFD Sender: No OFD packet to send [13:31:17]OFD Sender: No OFD packet to send [13:31:22]OFD Sender: No OFD packet to send [13:31:27]OFD Sender: No OFD packet to send [13:31:32]OFD Sender: No OFD packet to send [13:31:37]OFD Sender: No OFD packet to send [13:31:42]OFD Sender: No OFD packet to send [13:31:47]OFD Sender: No OFD packet to send [13:31:52]OFD Sender: No OFD packet to send [13:31:57]OFD Sender: No OFD packet to send [13:32:02]OFD Sender: No OFD packet to send [13:32:07]OFD Sender: No OFD packet to send [13:32:12]OFD Sender: No OFD packet to send [13:32:17]OFD Sender: No OFD packet to send [13:32:22]OFD Sender: No OFD packet to send [13:32:27]OFD Sender: No OFD packet to send [13:32:32]OFD Sender: No OFD packet to send [13:32:37]OFD Sender: No OFD packet to send [13:32:42]OFD Sender: No OFD packet to send [13:32:47]OFD Sender: No OFD packet to send [13:32:52]OFD Sender: No OFD packet to send [13:32:57]OFD Sender: No OFD packet to send [13:33:02]OFD Sender: No OFD packet to send [13:33:07]OFD Sender: No OFD packet to send [13:33:07]accept exits with 9 [13:33:07]New connection [13:33:07]New thread 3067305316 created [13:33:07]Thread 3067161956 joined [13:33:07]Waiting for new connection... [13:33:07] Sock 9.Parse request [13:33:07]Sock 9.Check first char [13:33:07]Sock 9.First char is OK [13:33:07]request: POST /json_proto HTTP/1.0 [13:33:07]Method: POST [13:33:07]URL: /json_proto [13:33:07]Method is POST - this is cgi request [13:33:07]url: /json_proto [13:33:07]query_string will be loaded in cgi processing [13:33:07]execute_cgi json_proto POST (null) [13:33:07]execute_cgi path=json_proto method=POST [13:33:07]POST find Content-Length [13:33:07]Host: 172.17.42.131:8080 [13:33:07]Content-Length: 682 [13:33:07]Content-Type: application/json [13:33:07] [13:33:07]POST finish read [13:33:07]Found Content-Length = 682 [13:33:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210346", "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 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:07]execute_script... [13:33:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210346", "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 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:33:07]POST & json_proto [13:33:07]process_json_proto [13:33:07]json parsed OK: [13:33:07]protocol is kg_v1.0 [13:33:07]action value=close_receipt [13:33:07]process_action close_receipt [13:33:07]cmd_close_receipt [13:33:07]MH_GetDate [13:33:07]Write to MH i2c: F0 00 00 74 02 65 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: F0 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: F0 09 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: F0 09 00 74 02 00 94 A9 17 67 A0 18 CA 66 11 [13:33:07]GetLastDocTimeStamp 1729603865 [13:33:07]current date 1729603988 [13:33:07]FM_GetShiftState [13:33:07]SAM_PROTO_GetShiftState [13:33:07]wFMCommunicate request_size=4 [13:33:07]MH_SAM_APDU [13:33:07]CAPDU: 80 13 01 00 [13:33:07]Write to MH i2c: E2 08 00 75 02 80 13 01 00 00 00 00 00 F4 [13:33:07]Write i2c OK [13:33:07]MH_I2C_Read... [13:33:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:07]Read from MH i2c: E2 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 0E 00 [13:33:07]MH_I2C_Read... [13:33:07]Read from MH i2c: E2 0E 00 75 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E9 [13:33:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:33:07]wFMCommunicate OK [13:33:07]SAM_PROTO_GetShiftState done [13:33:07]FM_GetShiftState done [13:33:07]opened in 1729556094 [13:33:07]opened+sec_in_day 1729642494 [13:33:07]quantity*price = 100021 [13:33:07]sum+1 = 100023 [13:33:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 320 22.10.2024 13:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188291 ФПД: 29863001914696 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133308&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188291&fm=29863001914696&tin=02508201610067®Number=0000000000100030&sum=100000 [13:33:08]StoreToDocumentArchive [13:33:08]shift 461 fd 188291 [13:33:08]save to /storage/0461/doc_00188291 [13:33:08]save last doc name /storage/0461/doc_00188291 to /storage/kkm_last_doc_name [13:33:08]save OK [13:33:08]Clear old archive folders... [13:33:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:33:08]tlvbuf is 01493CB0 [13:33:08]SAM_PROTO_ClearQueue [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 09 00 00 [13:33:08]Write to MH i2c: E2 08 00 82 02 80 09 00 00 00 00 00 00 F6 [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:33:08]Read from MH i2c: E2 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 03 00 [13:33:08]MH_I2C_Read... [13:33:08]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [13:33:08]RAPDU: 90 00 [13:33:08]wFMCommunicate OK [13:33:08]SAM_PROTO_ClearQueue done [13:33:08]KKMCreateOFDPacket [13:33:08]OFDProtocolAddRootSTLVToBuf [13:33:08]FM_MakeSignedData [13:33:08]FM_MakeSignedData [13:33:08]SAM_PROTO_SignData [13:33:08]wFMCommunicate request_size=4 [13:33:08]MH_SAM_APDU [13:33:08]CAPDU: 80 0D 01 02 [13:33:08]Write to MH i2c: E2 08 00 83 02 80 0D 01 02 00 00 00 00 FE [13:33:08]Write i2c OK [13:33:08]MH_I2C_Read... [13:33:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:33:09]Read from MH i2c: E2 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 03 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [13:33:09]RAPDU: 90 00 [13:33:09]wFMCommunicate OK [13:33:09]wFMCommunicate request_size=255 [13:33:09]MH_SAM_APDU [13:33:09]CAPDU: 80 0D 02 02 FA 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 01 00 00 F4 03 04 00 94 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DF 02 00 35 04 06 00 1B [13:33:09]Write to MH i2c: E2 02 01 84 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 40 01 00 00 F4 03 04 00 94 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DF 02 00 35 04 06 00 1B 00 00 D7 [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:09]Read from MH i2c: E2 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 03 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [13:33:09]RAPDU: 90 00 [13:33:09]wFMCommunicate OK [13:33:09]wFMCommunicate request_size=10 [13:33:09]MH_SAM_APDU [13:33:09]CAPDU: 80 0D 02 02 05 29 05 9E FD 48 [13:33:09]Write to MH i2c: E2 0D 00 85 02 80 0D 02 02 05 00 29 05 9E FD 48 00 00 1C [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:33:09]Read from MH i2c: E2 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 03 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 03 00 85 02 00 90 00 FB [13:33:09]RAPDU: 90 00 [13:33:09]wFMCommunicate OK [13:33:09]wFMCommunicate request_size=4 [13:33:09]MH_SAM_APDU [13:33:09]CAPDU: 80 0D 03 02 [13:33:09]Write to MH i2c: E2 08 00 86 02 80 0D 03 02 00 00 00 00 03 [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:33:09]Read from MH i2c: E2 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 0B 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 0B 00 86 02 00 E7 00 9A 6F DD 7D BD 27 90 00 32 [13:33:09]RAPDU: E7 00 9A 6F DD 7D BD 27 90 00 [13:33:09]wFMCommunicate OK [13:33:09]SAM_PROTO_SignData done [13:33:09]FM_MakeSignedData done [13:33:09]CreateOFDProtocolMessage [13:33:09]wFMCommunicate request_size=4 [13:33:09]MH_SAM_APDU [13:33:09]CAPDU: 80 11 00 00 [13:33:09]Write to MH i2c: E2 08 00 87 02 80 11 00 00 00 00 00 00 03 [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:09]Read from MH i2c: E2 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 17 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: E2 17 00 87 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [13:33:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:33:09]wFMCommunicate OK [13:33:09]CreateOFDProtocolMessage done [13:33:09]OFDSenderStorePacket 188291 [13:33:09]StoreOFDPacket docnum=188291 [13:33:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 04 07 01 10 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 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 01 00 00 F4 03 04 00 94 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DF 02 00 35 04 06 00 1B 29 05 9E FD 48 E7 00 9A 6F DD 7D BD 27 [13:33:09]CheckFolder [13:33:09]dirname=/storage/ofd_packets [13:33:09]CheckFolder done [13:33:09]ProducePacketName [13:33:09]name=ofd_packets/00188291 [13:33:09]NVStorageSaveData ofd_packets/00188291 [13:33:09]File name is /storage/ofd_packets/00188291 [13:33:09]Write 301 bytes [13:33:09]NVStorageSaveData done [13:33:09]OFDSenderStorePacket done [13:33:09]KKMCreateOFDPacket done [13:33:09]NVStorageSaveData kkm_last_timestamp [13:33:09]File name is /storage/kkm_last_timestamp [13:33:09]Write 4 bytes [13:33:09]NVStorageSaveData done [13:33:09]ExternCall_PrintAddStr [13:33:09]wPrintStart [13:33:09]Write to MH i2c: 01 00 00 88 02 8A [13:33:09]Write i2c OK [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: 01 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: 01 07 00 [13:33:09]MH_I2C_Read... [13:33:09]Read from MH i2c: 01 07 00 88 02 00 00 00 00 00 FF 0F 9F [13:33:09]RasterBufferAndPrint [13:33:09]line Счет N : (1)210346 [13:33:09]line ИНН: 02508201610067 [13:33:09]line Контрольно-Кассовый Чек [13:33:09]line ПРОДАЖА [13:33:09]line ТРК (МРК, ГНК) : 43 [13:33:09]line Товар: 2710124500 [13:33:09]line Аи-95-К-3 [13:33:09]line 13.480 * 74.20 [13:33:09]line = 1000.22 [13:33:09]line НДС 12% НСП 1% [13:33:09]line > о реализуемом товаре [13:33:09]line ОКРУГЛЕНИЕ: -0.22 [13:33:09]line ИТОГО: 1000.00 [13:33:09]line Внесено: 1000.00 [13:33:09]line СДАЧА: 0.00 [13:33:09]line НСП 1% : 8.85 [13:33:09]line НДС 12% : 106.22 [13:33:09]line Наличными: 1000.00 [13:33:09]line Безнал.: 0.00 [13:33:09]line Место: АЗС № 86 "Партнер Нефть" [13:33:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:33:09]line СНО: Общий режим [13:33:09]line Чек 320 22.10.2024 13:33 [13:33:09]line Смена: 461 ФФД: 1.0 [13:33:09]line ЗНМ: 0300000155 [13:33:09]line РНМ: 0000000000100030 [13:33:09]line Версия ККМ: 001 [13:33:09]line ФМ: 0000000000965340 [13:33:09]line ФД: 188291 [13:33:09]line ФПД: 29863001914696 [13:33:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133308&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188291&fm=29863001914696&tin=02508201610067®Number=0000000000100030&sum=100000 [13:33:09]OFD Sender: Processing packet 188291 [packets to send 1062, broken 1061] [13:33:09]ProducePacketName [13:33:09]name=ofd_packets/00188291 [13:33:09]OFD Sender: To server: pG, [13:33:09]CommunicateWithHost lk.salyk.kg:30040 [13:33:09]ConnectInit lk.salyk.kg [13:33:09]written 0, free lines is 4095 [13:33:10]Connected sock=10 [13:33:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 04 07 01 10 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 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 01 00 00 F4 03 04 00 94 A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DF 02 00 35 04 06 00 1B 29 05 9E FD 48 E7 00 9A 6F DD 7D BD 27 [13:33:10]Write to MH i2c: 01 00 00 B3 02 B5 [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: 01 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: 01 07 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: 01 07 00 B3 02 00 00 00 00 00 6F 0C 37 [13:33:10]RasterBufferAndPrint [13:33:10]line [13:33:10]line [13:33:10]line [13:33:10]line [13:33:10]line [13:33:10]written 0, free lines is 3185 [13:33:10]MH_Cut [13:33:10]Write to MH i2c: D1 01 00 BA 02 01 8E [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: D1 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: D1 01 00 [13:33:10]MH_I2C_Read... [13:33:10]Read from MH i2c: D1 01 00 BA 02 00 8D [13:33:10]Write to MH i2c: 01 00 00 BB 02 BD [13:33:10]Write i2c OK [13:33:10]MH_I2C_Read... [13:33:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 CA 47 00 39 37 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 DF 02 00 F4 03 04 00 82 53 17 67 B6 04 01 00 00 B3 2F 30 A9 99 B0 81 67 [13:33:10]CommunicateWithHost err = 0 [13:33:10]CheckOFDResponse [13:33:10]1017 (14) - 77093643461234 [13:33:10]1041 (16) - 0000000000965340 [13:33:10]1040 (4) - 188291 [13:33:10]1012 (4) - 22.10.2024 07:25 [13:33:10]1206 (1) - 0 [13:33:10]OFD Sender: Remove packet 188291 [13:33:10]ProducePacketName [13:33:10]name=ofd_packets/00188291 [13:33:10]NVStorageDeleteData [13:33:10]OFD Sender: No OFD packet to send [13:33:11]*** Cut start [13:33:11]*** Partial cut [13:33:11]*** CUTSNS_PIN = 1 [13:33:11]*** CUTSNS_PIN = 0 [13:33:11]*** Brake cut motor [13:33:12]Read from MH i2c: 01 [13:33:12]MH_I2C_Read... [13:33:12]*** Stop cut motor [13:33:12]*** Cut end [13:33:12]Read from MH i2c: 01 07 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: 01 07 00 BB 02 00 00 00 00 00 FF 0F D2 [13:33:12]process_action close_receipt done [13:33:12]requested_data is exist [13:33:12]produce_requested_data [13:33:12]requested_item fm.sn is exist - process it [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 11 00 00 [13:33:12]Write to MH i2c: E2 08 00 BC 02 80 11 00 00 00 00 00 00 38 [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 17 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 17 00 BC 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [13:33:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:33:12]wFMCommunicate OK [13:33:12]requested_item fd.num is exist - process it [13:33:12]SAM_PROTO_GetFieldsCounters [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 13 00 00 [13:33:12]Write to MH i2c: E2 08 00 BD 02 80 13 00 00 00 00 00 00 3B [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 62 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 62 00 BD 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 37 [13:33:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 40 01 00 00 5E 04 04 00 40 01 00 00 57 04 04 00 41 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:33:12]wFMCommunicate OK [13:33:12]SAM_PROTO_GetFieldsCounters done [13:33:12]requested_item shift.num is exist - process it [13:33:12]requested_item shift.opened is exist - process it [13:33:12]req_shift_opened [13:33:12]FM_GetShiftState [13:33:12]SAM_PROTO_GetShiftState [13:33:12]wFMCommunicate request_size=4 [13:33:12]MH_SAM_APDU [13:33:12]CAPDU: 80 13 01 00 [13:33:12]Write to MH i2c: E2 08 00 BE 02 80 13 01 00 00 00 00 00 3D [13:33:12]Write i2c OK [13:33:12]MH_I2C_Read... [13:33:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:33:12]Read from MH i2c: E2 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 0E 00 [13:33:12]MH_I2C_Read... [13:33:12]Read from MH i2c: E2 0E 00 BE 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 32 [13:33:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:33:12]wFMCommunicate OK [13:33:12]SAM_PROTO_GetShiftState done [13:33:12]FM_GetShiftState done [13:33:12]req_shift_opened done [13:33:12]requested_item shift.open_date is exist - process it [13:33:12]req_shift_open_date [13:33:12]req_shift_open_date done [13:33:12]produce_requested_data done [13:33:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188291,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:33:12]process_action_free close_receipt [13:33:12]json_value_free [13:33:12]json_value_free done [13:33:12]process_json_proto returns [13:33:12]Send response to host [13:33:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188291,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:33:12]free response buf [13:33:12]execute_script done [13:33:12]execute_script returns [13:33:12]free content buf [13:33:12]Sock 9.Close socket [13:33:12]Sock 9.Thread stoped [13:33:15]OFD Sender: No OFD packet to send [13:33:20]OFD Sender: No OFD packet to send [13:33:26]OFD Sender: No OFD packet to send [13:33:31]OFD Sender: No OFD packet to send [13:33:36]OFD Sender: No OFD packet to send [13:33:41]OFD Sender: No OFD packet to send [13:33:46]OFD Sender: No OFD packet to send [13:33:51]OFD Sender: No OFD packet to send [13:33:56]OFD Sender: No OFD packet to send [13:34:01]OFD Sender: No OFD packet to send [13:34:06]OFD Sender: No OFD packet to send [13:34:11]OFD Sender: No OFD packet to send [13:34:16]OFD Sender: No OFD packet to send [13:34:21]OFD Sender: No OFD packet to send [13:34:26]OFD Sender: No OFD packet to send [13:34:31]OFD Sender: No OFD packet to send [13:34:36]OFD Sender: No OFD packet to send [13:34:38]accept exits with 7 [13:34:38]New connection [13:34:38]New thread 3067161956 created [13:34:38]Thread 3067305316 joined [13:34:38]Waiting for new connection... [13:34:38] Sock 7.Parse request [13:34:38]Sock 7.Check first char [13:34:38]Sock 7.First char is OK [13:34:38]request: POST /json_proto HTTP/1.0 [13:34:38]Method: POST [13:34:38]URL: /json_proto [13:34:38]Method is POST - this is cgi request [13:34:38]url: /json_proto [13:34:38]query_string will be loaded in cgi processing [13:34:38]execute_cgi json_proto POST (null) [13:34:38]execute_cgi path=json_proto method=POST [13:34:38]POST find Content-Length [13:34:38]Host: 172.17.42.131:8080 [13:34:38]Content-Length: 682 [13:34:38]Content-Type: application/json [13:34:38] [13:34:38]POST finish read [13:34:38]Found Content-Length = 682 [13:34:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:38]execute_script... [13:34: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)210347", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:38]POST & json_proto [13:34:38]process_json_proto [13:34:38]json parsed OK: [13:34:38]protocol is kg_v1.0 [13:34:38]action value=close_receipt [13:34:38]process_action close_receipt [13:34:38]cmd_close_receipt [13:34:38]MH_GetDate [13:34:38]Write to MH i2c: F0 00 00 BF 02 B0 [13:34:38]Write i2c OK [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: F0 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: F0 09 00 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: F0 09 00 BF 02 00 EF A9 17 67 A0 18 CA 66 B7 [13:34:38]GetLastDocTimeStamp 1729603988 [13:34:38]current date 1729604079 [13:34:38]FM_GetShiftState [13:34:38]SAM_PROTO_GetShiftState [13:34:38]wFMCommunicate request_size=4 [13:34:38]MH_SAM_APDU [13:34:38]CAPDU: 80 13 01 00 [13:34:38]Write to MH i2c: E2 08 00 C0 02 80 13 01 00 00 00 00 00 3F [13:34:38]Write i2c OK [13:34:38]MH_I2C_Read... [13:34:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:38]Read from MH i2c: E2 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: E2 0E 00 [13:34:38]MH_I2C_Read... [13:34:38]Read from MH i2c: E2 0E 00 C0 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 34 [13:34:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:34:38]wFMCommunicate OK [13:34:38]SAM_PROTO_GetShiftState done [13:34:38]FM_GetShiftState done [13:34:38]opened in 1729556094 [13:34:38]opened+sec_in_day 1729642494 [13:34:38]quantity*price = 100015 [13:34:38]sum+1 = 100017 [13:34:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 321 22.10.2024 13:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188292 ФПД: 25341474682936 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188292&fm=25341474682936&tin=02508201610067®Number=0000000000100030&sum=100000 [13:34:40]StoreToDocumentArchive [13:34:40]shift 461 fd 188292 [13:34:40]save to /storage/0461/doc_00188292 [13:34:40]save last doc name /storage/0461/doc_00188292 to /storage/kkm_last_doc_name [13:34:40]save OK [13:34:40]Clear old archive folders... [13:34:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:34:40]tlvbuf is 0143C2A0 [13:34:40]SAM_PROTO_ClearQueue [13:34:40]wFMCommunicate request_size=4 [13:34:40]MH_SAM_APDU [13:34:40]CAPDU: 80 09 00 00 [13:34:40]Write to MH i2c: E2 08 00 CD 02 80 09 00 00 00 00 00 00 41 [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [13:34:40]RAPDU: 90 00 [13:34:40]wFMCommunicate OK [13:34:40]SAM_PROTO_ClearQueue done [13:34:40]KKMCreateOFDPacket [13:34:40]OFDProtocolAddRootSTLVToBuf [13:34:40]FM_MakeSignedData [13:34:40]FM_MakeSignedData [13:34:40]SAM_PROTO_SignData [13:34:40]wFMCommunicate request_size=4 [13:34:40]MH_SAM_APDU [13:34:40]CAPDU: 80 0D 01 02 [13:34:40]Write to MH i2c: E2 08 00 CE 02 80 0D 01 02 00 00 00 00 49 [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [13:34:40]RAPDU: 90 00 [13:34:40]wFMCommunicate OK [13:34:40]wFMCommunicate request_size=255 [13:34:40]MH_SAM_APDU [13:34: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 EF A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DF 02 00 35 04 06 00 17 [13:34:40]Write to MH i2c: E2 02 01 CF 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 EF A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DF 02 00 35 04 06 00 17 00 00 58 [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [13:34:40]RAPDU: 90 00 [13:34:40]wFMCommunicate OK [13:34:40]wFMCommunicate request_size=10 [13:34:40]MH_SAM_APDU [13:34:40]CAPDU: 80 0D 02 02 05 0C 45 98 B8 38 [13:34:40]Write to MH i2c: E2 0D 00 D0 02 80 0D 02 02 05 00 0C 45 98 B8 38 00 00 2F [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 03 00 D0 02 00 90 00 46 [13:34:40]RAPDU: 90 00 [13:34:40]wFMCommunicate OK [13:34:40]wFMCommunicate request_size=4 [13:34:40]MH_SAM_APDU [13:34:40]CAPDU: 80 0D 03 02 [13:34:40]Write to MH i2c: E2 08 00 D1 02 80 0D 03 02 00 00 00 00 4E [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 0B 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 0B 00 D1 02 00 5B 78 F2 C4 A5 C2 02 90 90 00 D1 [13:34:40]RAPDU: 5B 78 F2 C4 A5 C2 02 90 90 00 [13:34:40]wFMCommunicate OK [13:34:40]SAM_PROTO_SignData done [13:34:40]FM_MakeSignedData done [13:34:40]CreateOFDProtocolMessage [13:34:40]wFMCommunicate request_size=4 [13:34:40]MH_SAM_APDU [13:34:40]CAPDU: 80 11 00 00 [13:34:40]Write to MH i2c: E2 08 00 D2 02 80 11 00 00 00 00 00 00 4E [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:40]Read from MH i2c: E2 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 17 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: E2 17 00 D2 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [13:34:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:34:40]wFMCommunicate OK [13:34:40]CreateOFDProtocolMessage done [13:34:40]OFDSenderStorePacket 188292 [13:34:40]StoreOFDPacket docnum=188292 [13:34:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0A 9D 07 01 82 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 EF A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DF 02 00 35 04 06 00 17 0C 45 98 B8 38 5B 78 F2 C4 A5 C2 02 90 [13:34:40]CheckFolder [13:34:40]dirname=/storage/ofd_packets [13:34:40]CheckFolder done [13:34:40]ProducePacketName [13:34:40]name=ofd_packets/00188292 [13:34:40]NVStorageSaveData ofd_packets/00188292 [13:34:40]File name is /storage/ofd_packets/00188292 [13:34:40]Write 301 bytes [13:34:40]NVStorageSaveData done [13:34:40]OFDSenderStorePacket done [13:34:40]KKMCreateOFDPacket done [13:34:40]NVStorageSaveData kkm_last_timestamp [13:34:40]File name is /storage/kkm_last_timestamp [13:34:40]Write 4 bytes [13:34:40]NVStorageSaveData done [13:34:40]ExternCall_PrintAddStr [13:34:40]wPrintStart [13:34:40]Write to MH i2c: 01 00 00 D3 02 D5 [13:34:40]Write i2c OK [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: 01 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: 01 07 00 [13:34:40]MH_I2C_Read... [13:34:40]Read from MH i2c: 01 07 00 D3 02 00 00 00 00 00 FF 0F EA [13:34:40]RasterBufferAndPrint [13:34:40]line Счет N : (1)210347 [13:34:40]line ИНН: 02508201610067 [13:34:40]line Контрольно-Кассовый Чек [13:34:40]line ПРОДАЖА [13:34:40]line ТРК (МРК, ГНК) : 12 [13:34:40]line Товар: 2710124130 [13:34:40]line Аи-92-К-3 [13:34:40]line 14.950 * 66.90 [13:34:40]line = 1000.16 [13:34:40]line НДС 12% НСП 1% [13:34:40]line > о реализуемом товаре [13:34:40]line ОКРУГЛЕНИЕ: -0.16 [13:34:40]line ИТОГО: 1000.00 [13:34:40]line Внесено: 1000.00 [13:34:40]line СДАЧА: 0.00 [13:34:40]line НСП 1% : 8.85 [13:34:40]line НДС 12% : 106.21 [13:34:40]line Наличными: 1000.00 [13:34:40]line Безнал.: 0.00 [13:34:40]line Место: АЗС № 86 "Партнер Нефть" [13:34:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:34:40]line СНО: Общий режим [13:34:40]line Чек 321 22.10.2024 13:34 [13:34:40]line Смена: 461 ФФД: 1.0 [13:34:40]line ЗНМ: 0300000155 [13:34:40]line РНМ: 0000000000100030 [13:34:40]line Версия ККМ: 001 [13:34:40]line ФМ: 0000000000965340 [13:34:40]line ФД: 188292 [13:34:40]line ФПД: 25341474682936 [13:34:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T133439&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188292&fm=25341474682936&tin=02508201610067®Number=0000000000100030&sum=100000 [13:34:40]written 0, free lines is 4095 [13:34:40]OFD Sender: Processing packet 188292 [packets to send 1062, broken 1061] [13:34:40]ProducePacketName [13:34:40]name=ofd_packets/00188292 [13:34:40]OFD Sender: To server: pG, [13:34:40]CommunicateWithHost lk.salyk.kg:30040 [13:34:40]ConnectInit lk.salyk.kg [13:34:40]Connected sock=10 [13:34:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0A 9D 07 01 82 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 41 01 00 00 F4 03 04 00 EF A9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 DF 02 00 35 04 06 00 17 0C 45 98 B8 38 5B 78 F2 C4 A5 C2 02 90 [13:34:41]Write to MH i2c: 01 00 00 FE 02 00 [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: 01 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: 01 07 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: 01 07 00 FE 02 00 00 00 00 00 6E 0C 81 [13:34:41]RasterBufferAndPrint [13:34:41]line [13:34:41]line [13:34:41]line [13:34:41]line [13:34:41]line [13:34:41]written 0, free lines is 3184 [13:34:41]MH_Cut [13:34:41]Write to MH i2c: D1 01 00 05 03 01 DA [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: D1 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: D1 01 00 [13:34:41]MH_I2C_Read... [13:34:41]Read from MH i2c: D1 01 00 05 03 00 D9 [13:34:41]Write to MH i2c: 01 00 00 06 03 09 [13:34:41]Write i2c OK [13:34:41]MH_I2C_Read... [13:34:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C5 54 47 00 62 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 39 36 35 33 34 30 10 04 04 00 84 DF 02 00 F4 03 04 00 DC 53 17 67 B6 04 01 00 00 48 76 C1 5D 96 4E 5C 3E [13:34:41]CommunicateWithHost err = 0 [13:34:41]CheckOFDResponse [13:34:41]1017 (14) - 77093643461234 [13:34:41]1041 (16) - 0000000000965340 [13:34:41]1040 (4) - 188292 [13:34:41]1012 (4) - 22.10.2024 07:27 [13:34:41]1206 (1) - 0 [13:34:41]OFD Sender: Remove packet 188292 [13:34:41]ProducePacketName [13:34:41]name=ofd_packets/00188292 [13:34:41]NVStorageDeleteData [13:34:41]OFD Sender: No OFD packet to send [13:34:42]*** Cut start [13:34:42]*** Partial cut [13:34:42]*** CUTSNS_PIN = 1 [13:34:42]*** CUTSNS_PIN = 0 [13:34:42]*** Brake cut motor [13:34:42]Read from MH i2c: 01 [13:34:42]MH_I2C_Read... [13:34:42]*** Stop cut motor [13:34:42]*** Cut end [13:34:42]Read from MH i2c: 01 07 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: 01 07 00 06 03 00 00 00 00 00 FF 0F 1E [13:34:42]process_action close_receipt done [13:34:42]requested_data is exist [13:34:42]produce_requested_data [13:34:42]requested_item fm.sn is exist - process it [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 11 00 00 [13:34:42]Write to MH i2c: E2 08 00 07 03 80 11 00 00 00 00 00 00 84 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:42]Read from MH i2c: E2 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 17 00 [13:34:42]MH_I2C_Read... [13:34:42]Read from MH i2c: E2 17 00 07 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [13:34:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:34:42]wFMCommunicate OK [13:34:42]requested_item fd.num is exist - process it [13:34:42]SAM_PROTO_GetFieldsCounters [13:34:42]wFMCommunicate request_size=4 [13:34:42]MH_SAM_APDU [13:34:42]CAPDU: 80 13 00 00 [13:34:42]Write to MH i2c: E2 08 00 08 03 80 13 00 00 00 00 00 00 87 [13:34:42]Write i2c OK [13:34:42]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 62 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 62 00 08 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 87 [13:34:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 41 01 00 00 5E 04 04 00 41 01 00 00 57 04 04 00 42 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:34:43]wFMCommunicate OK [13:34:43]SAM_PROTO_GetFieldsCounters done [13:34:43]requested_item shift.num is exist - process it [13:34:43]requested_item shift.opened is exist - process it [13:34:43]req_shift_opened [13:34:43]FM_GetShiftState [13:34:43]SAM_PROTO_GetShiftState [13:34:43]wFMCommunicate request_size=4 [13:34:43]MH_SAM_APDU [13:34:43]CAPDU: 80 13 01 00 [13:34:43]Write to MH i2c: E2 08 00 09 03 80 13 01 00 00 00 00 00 89 [13:34:43]Write i2c OK [13:34:43]MH_I2C_Read... [13:34:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:43]Read from MH i2c: E2 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 0E 00 [13:34:43]MH_I2C_Read... [13:34:43]Read from MH i2c: E2 0E 00 09 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7E [13:34:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:34:43]wFMCommunicate OK [13:34:43]SAM_PROTO_GetShiftState done [13:34:43]FM_GetShiftState done [13:34:43]req_shift_opened done [13:34:43]requested_item shift.open_date is exist - process it [13:34:43]req_shift_open_date [13:34:43]req_shift_open_date done [13:34:43]produce_requested_data done [13:34:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188292,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:34:43]process_action_free close_receipt [13:34:43]json_value_free [13:34:43]json_value_free done [13:34:43]process_json_proto returns [13:34:43]Send response to host [13:34:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188292,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:34:43]free response buf [13:34:43]execute_script done [13:34:43]execute_script returns [13:34:43]free content buf [13:34:43]Sock 7.Close socket [13:34:43]Sock 7.Thread stoped [13:34:46]OFD Sender: No OFD packet to send [13:34:51]OFD Sender: No OFD packet to send [13:34:56]OFD Sender: No OFD packet to send [13:35:01]OFD Sender: No OFD packet to send [13:35:06]OFD Sender: No OFD packet to send [13:35:11]OFD Sender: No OFD packet to send [13:35:16]OFD Sender: No OFD packet to send [13:35:22]OFD Sender: No OFD packet to send [13:35:27]OFD Sender: No OFD packet to send [13:35:32]OFD Sender: No OFD packet to send [13:35:37]OFD Sender: No OFD packet to send [13:35:42]OFD Sender: No OFD packet to send [13:35:47]OFD Sender: No OFD packet to send [13:35:52]OFD Sender: No OFD packet to send [13:35:57]OFD Sender: No OFD packet to send [13:36:02]OFD Sender: No OFD packet to send [13:36:07]OFD Sender: No OFD packet to send [13:36:12]OFD Sender: No OFD packet to send [13:36:17]OFD Sender: No OFD packet to send [13:36:22]OFD Sender: No OFD packet to send [13:36:27]OFD Sender: No OFD packet to send [13:36:32]OFD Sender: No OFD packet to send [13:36:37]OFD Sender: No OFD packet to send [13:36:42]OFD Sender: No OFD packet to send [13:36:47]OFD Sender: No OFD packet to send [13:36:52]OFD Sender: No OFD packet to send [13:36:57]OFD Sender: No OFD packet to send [13:37:02]OFD Sender: No OFD packet to send [13:37:07]OFD Sender: No OFD packet to send [13:37:12]OFD Sender: No OFD packet to send [13:37:17]OFD Sender: No OFD packet to send [13:37:22]OFD Sender: No OFD packet to send [13:37:27]OFD Sender: No OFD packet to send [13:37:32]OFD Sender: No OFD packet to send [13:37:37]OFD Sender: No OFD packet to send [13:37:42]OFD Sender: No OFD packet to send [13:37:47]OFD Sender: No OFD packet to send [13:37:52]OFD Sender: No OFD packet to send [13:37:57]OFD Sender: No OFD packet to send [13:38:02]OFD Sender: No OFD packet to send [13:38:07]OFD Sender: No OFD packet to send [13:38:12]OFD Sender: No OFD packet to send [13:38:17]OFD Sender: No OFD packet to send [13:38:22]OFD Sender: No OFD packet to send [13:38:27]OFD Sender: No OFD packet to send [13:38:32]OFD Sender: No OFD packet to send [13:38:37]OFD Sender: No OFD packet to send [13:38:42]OFD Sender: No OFD packet to send [13:38:47]OFD Sender: No OFD packet to send [13:38:52]OFD Sender: No OFD packet to send [13:38:57]OFD Sender: No OFD packet to send [13:39:02]OFD Sender: No OFD packet to send [13:39:08]OFD Sender: No OFD packet to send [13:39:13]OFD Sender: No OFD packet to send [13:39:18]OFD Sender: No OFD packet to send [13:39:23]OFD Sender: No OFD packet to send [13:39:28]OFD Sender: No OFD packet to send [13:39:33]OFD Sender: No OFD packet to send [13:39:38]OFD Sender: No OFD packet to send [13:39:43]OFD Sender: No OFD packet to send [13:39:48]OFD Sender: No OFD packet to send [13:39:53]OFD Sender: No OFD packet to send [13:39:58]OFD Sender: No OFD packet to send [13:40:03]OFD Sender: No OFD packet to send [13:40:08]OFD Sender: No OFD packet to send [13:40:13]OFD Sender: No OFD packet to send [13:40:18]OFD Sender: No OFD packet to send [13:40:23]OFD Sender: No OFD packet to send [13:40:28]OFD Sender: No OFD packet to send [13:40:33]OFD Sender: No OFD packet to send [13:40:38]OFD Sender: No OFD packet to send [13:40:43]OFD Sender: No OFD packet to send [13:40:48]OFD Sender: No OFD packet to send [13:40:53]OFD Sender: No OFD packet to send [13:40:58]OFD Sender: No OFD packet to send [13:41:03]OFD Sender: No OFD packet to send [13:41:08]OFD Sender: No OFD packet to send [13:41:13]OFD Sender: No OFD packet to send [13:41:18]OFD Sender: No OFD packet to send [13:41:23]OFD Sender: No OFD packet to send [13:41:28]OFD Sender: No OFD packet to send [13:41:33]OFD Sender: No OFD packet to send [13:41:38]OFD Sender: No OFD packet to send [13:41:43]OFD Sender: No OFD packet to send [13:41:48]OFD Sender: No OFD packet to send [13:41:53]OFD Sender: No OFD packet to send [13:41:58]OFD Sender: No OFD packet to send [13:42:03]OFD Sender: No OFD packet to send [13:42:08]OFD Sender: No OFD packet to send [13:42:13]OFD Sender: No OFD packet to send [13:42:18]OFD Sender: No OFD packet to send [13:42:23]OFD Sender: No OFD packet to send [13:42:28]OFD Sender: No OFD packet to send [13:42:33]OFD Sender: No OFD packet to send [13:42:38]OFD Sender: No OFD packet to send [13:42:43]OFD Sender: No OFD packet to send [13:42:48]OFD Sender: No OFD packet to send [13:42:53]OFD Sender: No OFD packet to send [13:42:59]OFD Sender: No OFD packet to send [13:43:04]OFD Sender: No OFD packet to send [13:43:09]OFD Sender: No OFD packet to send [13:43:14]OFD Sender: No OFD packet to send [13:43:19]OFD Sender: No OFD packet to send [13:43:24]OFD Sender: No OFD packet to send [13:43:29]OFD Sender: No OFD packet to send [13:43:34]OFD Sender: No OFD packet to send [13:43:39]OFD Sender: No OFD packet to send [13:43:44]OFD Sender: No OFD packet to send [13:43:49]OFD Sender: No OFD packet to send [13:43:54]OFD Sender: No OFD packet to send [13:43:59]OFD Sender: No OFD packet to send [13:43:59]accept exits with 9 [13:43:59]New connection [13:43:59]New thread 3067305316 created [13:43:59]Thread 3067161956 joined [13:43:59]Waiting for new connection... [13:43:59] Sock 9.Parse request [13:43:59]Sock 9.Check first char [13:43:59]Sock 9.First char is OK [13:43:59]request: POST /json_proto HTTP/1.0 [13:43:59]Method: POST [13:43:59]URL: /json_proto [13:43:59]Method is POST - this is cgi request [13:43:59]url: /json_proto [13:43:59]query_string will be loaded in cgi processing [13:43:59]execute_cgi json_proto POST (null) [13:43:59]execute_cgi path=json_proto method=POST [13:43:59]POST find Content-Length [13:43:59]Host: 172.17.42.131:8080 [13:43:59]Content-Length: 688 [13:43:59]Content-Type: application/json [13:43:59] [13:43:59]POST finish read [13:43:59]Found Content-Length = 688 [13:43:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:59]execute_script... [13:43: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)210348", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:43:59]POST & json_proto [13:43:59]process_json_proto [13:43:59]json parsed OK: [13:43:59]protocol is kg_v1.0 [13:43:59]action value=close_receipt [13:43:59]process_action close_receipt [13:43:59]cmd_close_receipt [13:43:59]MH_GetDate [13:43:59]Write to MH i2c: F0 00 00 0A 03 FC [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: F0 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: F0 09 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: F0 09 00 0A 03 00 20 AC 17 67 A0 18 CA 66 37 [13:43:59]GetLastDocTimeStamp 1729604079 [13:43:59]current date 1729604640 [13:43:59]FM_GetShiftState [13:43:59]SAM_PROTO_GetShiftState [13:43:59]wFMCommunicate request_size=4 [13:43:59]MH_SAM_APDU [13:43:59]CAPDU: 80 13 01 00 [13:43:59]Write to MH i2c: E2 08 00 0B 03 80 13 01 00 00 00 00 00 8B [13:43:59]Write i2c OK [13:43:59]MH_I2C_Read... [13:43:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:43:59]Read from MH i2c: E2 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 0E 00 [13:43:59]MH_I2C_Read... [13:43:59]Read from MH i2c: E2 0E 00 0B 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 80 [13:43:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:43:59]wFMCommunicate OK [13:43:59]SAM_PROTO_GetShiftState done [13:43:59]FM_GetShiftState done [13:43:59]opened in 1729556094 [13:43:59]opened+sec_in_day 1729642494 [13:43:59]quantity*price = 250050 [13:43:59]sum+1 = 250052 [13:43:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 322 22.10.2024 13:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188293 ФПД: 189100734978018 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134400&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188293&fm=189100734978018&tin=02508201610067®Number=0000000000100030&sum=250000 [13:44:00]StoreToDocumentArchive [13:44:00]shift 461 fd 188293 [13:44:00]save to /storage/0461/doc_00188293 [13:44:00]save last doc name /storage/0461/doc_00188293 to /storage/kkm_last_doc_name [13:44:00]save OK [13:44:00]Clear old archive folders... [13:44:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:44:00]tlvbuf is 0148AA20 [13:44:00]SAM_PROTO_ClearQueue [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 09 00 00 [13:44:00]Write to MH i2c: E2 08 00 18 03 80 09 00 00 00 00 00 00 8D [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [13:44:00]RAPDU: 90 00 [13:44:00]wFMCommunicate OK [13:44:00]SAM_PROTO_ClearQueue done [13:44:00]KKMCreateOFDPacket [13:44:00]OFDProtocolAddRootSTLVToBuf [13:44:00]FM_MakeSignedData [13:44:00]FM_MakeSignedData [13:44:00]SAM_PROTO_SignData [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 0D 01 02 [13:44:00]Write to MH i2c: E2 08 00 19 03 80 0D 01 02 00 00 00 00 95 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [13:44:00]RAPDU: 90 00 [13:44:00]wFMCommunicate OK [13:44:00]wFMCommunicate request_size=255 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 20 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DF 02 [13:44:00]Write to MH i2c: E2 02 01 1A 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 20 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DF 02 00 00 45 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [13:44:00]RAPDU: 90 00 [13:44:00]wFMCommunicate OK [13:44:00]wFMCommunicate request_size=16 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 AB FC 72 22 97 E2 [13:44:00]Write to MH i2c: E2 13 00 1B 03 80 0D 02 02 0B 00 00 35 04 06 00 AB FC 72 22 97 E2 00 00 A1 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 03 00 1B 03 00 90 00 92 [13:44:00]RAPDU: 90 00 [13:44:00]wFMCommunicate OK [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 0D 03 02 [13:44:00]Write to MH i2c: E2 08 00 1C 03 80 0D 03 02 00 00 00 00 9A [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 0B 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 0B 00 1C 03 00 C3 BE 59 7E 24 F1 E7 60 90 00 4F [13:44:00]RAPDU: C3 BE 59 7E 24 F1 E7 60 90 00 [13:44:00]wFMCommunicate OK [13:44:00]SAM_PROTO_SignData done [13:44:00]FM_MakeSignedData done [13:44:00]CreateOFDProtocolMessage [13:44:00]wFMCommunicate request_size=4 [13:44:00]MH_SAM_APDU [13:44:00]CAPDU: 80 11 00 00 [13:44:00]Write to MH i2c: E2 08 00 1D 03 80 11 00 00 00 00 00 00 9A [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:00]Read from MH i2c: E2 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 17 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: E2 17 00 1D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [13:44:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:00]wFMCommunicate OK [13:44:00]CreateOFDProtocolMessage done [13:44:00]OFDSenderStorePacket 188293 [13:44:00]StoreOFDPacket docnum=188293 [13:44:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5C 5C 0D 01 DC E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 20 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DF 02 00 35 04 06 00 AB FC 72 22 97 E2 C3 BE 59 7E 24 F1 E7 60 [13:44:00]CheckFolder [13:44:00]dirname=/storage/ofd_packets [13:44:00]CheckFolder done [13:44:00]ProducePacketName [13:44:00]name=ofd_packets/00188293 [13:44:00]NVStorageSaveData ofd_packets/00188293 [13:44:00]File name is /storage/ofd_packets/00188293 [13:44:00]Write 307 bytes [13:44:00]NVStorageSaveData done [13:44:00]OFDSenderStorePacket done [13:44:00]KKMCreateOFDPacket done [13:44:00]NVStorageSaveData kkm_last_timestamp [13:44:00]File name is /storage/kkm_last_timestamp [13:44:00]Write 4 bytes [13:44:00]NVStorageSaveData done [13:44:00]ExternCall_PrintAddStr [13:44:00]wPrintStart [13:44:00]Write to MH i2c: 01 00 00 1E 03 21 [13:44:00]Write i2c OK [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 [13:44:00]MH_I2C_Read... [13:44:00]Read from MH i2c: 01 07 00 1E 03 00 00 00 00 00 FF 0F 36 [13:44:00]RasterBufferAndPrint [13:44:00]line Счет N : (1)210348 [13:44:00]line ИНН: 02508201610067 [13:44:00]line Контрольно-Кассовый Чек [13:44:00]line ПРОДАЖА [13:44:00]line ТРК (МРК, ГНК) : 11 [13:44:00]line Товар: 2710194210 [13:44:00]line D-ENERGY ДТ-К-5 [13:44:00]line 32.390 * 77.20 [13:44:00]line = 2500.51 [13:44:00]line НДС 12% НСП 1% [13:44:00]line > о реализуемом товаре [13:44:00]line ОКРУГЛЕНИЕ: -0.51 [13:44:00]line ИТОГО: 2500.00 [13:44:00]line Внесено: 2500.00 [13:44:00]line СДАЧА: 0.00 [13:44:00]line НСП 1% : 22.13 [13:44:00]line НДС 12% : 265.54 [13:44:00]line Наличными: 2500.00 [13:44:00]line Безнал.: 0.00 [13:44:00]line Место: АЗС № 86 "Партнер Нефть" [13:44:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:44:00]line СНО: Общий режим [13:44:00]line Чек 322 22.10.2024 13:44 [13:44:00]line Смена: 461 ФФД: 1.0 [13:44:00]line ЗНМ: 0300000155 [13:44:00]line РНМ: 0000000000100030 [13:44:00]line Версия ККМ: 001 [13:44:00]line ФМ: 0000000000965340 [13:44:00]line ФД: 188293 [13:44:00]line ФПД: 189100734978018 [13:44:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134400&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188293&fm=189100734978018&tin=02508201610067®Number=0000000000100030&sum=250000 [13:44:01]OFD Sender: Processing packet 188293 [packets to send 1062, broken 1061] [13:44:01]ProducePacketName [13:44:01]name=ofd_packets/00188293 [13:44:01]OFD Sender: To server: pG, [13:44:01]CommunicateWithHost lk.salyk.kg:30040 [13:44:01]ConnectInit lk.salyk.kg [13:44:01]written 0, free lines is 4095 [13:44:01]Connected sock=10 [13:44:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5C 5C 0D 01 DC E3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 01 00 00 F4 03 04 00 20 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DF 02 00 35 04 06 00 AB FC 72 22 97 E2 C3 BE 59 7E 24 F1 E7 60 [13:44:01]Write to MH i2c: 01 00 00 49 03 4C [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: 01 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: 01 07 00 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: 01 07 00 49 03 00 00 00 00 00 66 0C C5 [13:44:01]RasterBufferAndPrint [13:44:01]line [13:44:01]line [13:44:01]line [13:44:01]line [13:44:01]line [13:44:01]written 0, free lines is 3176 [13:44:01]MH_Cut [13:44:01]Write to MH i2c: D1 01 00 50 03 01 25 [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: D1 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: D1 01 00 [13:44:01]MH_I2C_Read... [13:44:01]Read from MH i2c: D1 01 00 50 03 00 24 [13:44:01]Write to MH i2c: 01 00 00 51 03 54 [13:44:01]Write i2c OK [13:44:01]MH_I2C_Read... [13:44:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0B 9A 47 00 05 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 DF 02 00 F4 03 04 00 0D 56 17 67 B6 04 01 00 00 82 66 50 02 28 75 5E 12 [13:44:02]CommunicateWithHost err = 0 [13:44:02]CheckOFDResponse [13:44:02]1017 (14) - 77093643461234 [13:44:02]1041 (16) - 0000000000965340 [13:44:02]1040 (4) - 188293 [13:44:02]1012 (4) - 22.10.2024 07:36 [13:44:02]1206 (1) - 0 [13:44:02]OFD Sender: Remove packet 188293 [13:44:02]ProducePacketName [13:44:02]name=ofd_packets/00188293 [13:44:02]NVStorageDeleteData [13:44:02]OFD Sender: No OFD packet to send [13:44:02]*** Cut start [13:44:02]*** Partial cut [13:44:02]*** CUTSNS_PIN = 1 [13:44:03]*** CUTSNS_PIN = 0 [13:44:03]*** Brake cut motor [13:44:03]Read from MH i2c: 01 [13:44:03]MH_I2C_Read... [13:44:03]*** Stop cut motor [13:44:03]*** Cut end [13:44:03]Read from MH i2c: 01 07 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: 01 07 00 51 03 00 00 00 00 00 FF 0F 69 [13:44:03]process_action close_receipt done [13:44:03]requested_data is exist [13:44:03]produce_requested_data [13:44:03]requested_item fm.sn is exist - process it [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 11 00 00 [13:44:03]Write to MH i2c: E2 08 00 52 03 80 11 00 00 00 00 00 00 CF [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 17 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 17 00 52 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [13:44:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:03]wFMCommunicate OK [13:44:03]requested_item fd.num is exist - process it [13:44:03]SAM_PROTO_GetFieldsCounters [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 13 00 00 [13:44:03]Write to MH i2c: E2 08 00 53 03 80 13 00 00 00 00 00 00 D2 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 62 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 62 00 53 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 D6 [13:44:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 42 01 00 00 5E 04 04 00 42 01 00 00 57 04 04 00 43 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:03]wFMCommunicate OK [13:44:03]SAM_PROTO_GetFieldsCounters done [13:44:03]requested_item shift.num is exist - process it [13:44:03]requested_item shift.opened is exist - process it [13:44:03]req_shift_opened [13:44:03]FM_GetShiftState [13:44:03]SAM_PROTO_GetShiftState [13:44:03]wFMCommunicate request_size=4 [13:44:03]MH_SAM_APDU [13:44:03]CAPDU: 80 13 01 00 [13:44:03]Write to MH i2c: E2 08 00 54 03 80 13 01 00 00 00 00 00 D4 [13:44:03]Write i2c OK [13:44:03]MH_I2C_Read... [13:44:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:03]Read from MH i2c: E2 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 0E 00 [13:44:03]MH_I2C_Read... [13:44:03]Read from MH i2c: E2 0E 00 54 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C9 [13:44:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:44:03]wFMCommunicate OK [13:44:03]SAM_PROTO_GetShiftState done [13:44:03]FM_GetShiftState done [13:44:03]req_shift_opened done [13:44:03]requested_item shift.open_date is exist - process it [13:44:03]req_shift_open_date [13:44:03]req_shift_open_date done [13:44:03]produce_requested_data done [13:44:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188293,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:44:03]process_action_free close_receipt [13:44:03]json_value_free [13:44:03]json_value_free done [13:44:03]process_json_proto returns [13:44:03]Send response to host [13:44:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188293,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:44:03]free response buf [13:44:03]execute_script done [13:44:03]execute_script returns [13:44:03]free content buf [13:44:03]Sock 9.Close socket [13:44:03]Sock 9.Thread stoped [13:44:07]OFD Sender: No OFD packet to send [13:44:12]OFD Sender: No OFD packet to send [13:44:17]OFD Sender: No OFD packet to send [13:44:22]OFD Sender: No OFD packet to send [13:44:27]OFD Sender: No OFD packet to send [13:44:32]OFD Sender: No OFD packet to send [13:44:37]OFD Sender: No OFD packet to send [13:44:42]OFD Sender: No OFD packet to send [13:44:44]accept exits with 7 [13:44:44]New connection [13:44:44]New thread 3067161956 created [13:44:44]Thread 3067305316 joined [13:44:44]Waiting for new connection... [13:44:44] Sock 7.Parse request [13:44:44]Sock 7.Check first char [13:44:44]Sock 7.First char is OK [13:44:44]request: POST /json_proto HTTP/1.0 [13:44:44]Method: POST [13:44:44]URL: /json_proto [13:44:44]Method is POST - this is cgi request [13:44:44]url: /json_proto [13:44:44]query_string will be loaded in cgi processing [13:44:44]execute_cgi json_proto POST (null) [13:44:44]execute_cgi path=json_proto method=POST [13:44:44]POST find Content-Length [13:44:44]Host: 172.17.42.131:8080 [13:44:44]Content-Length: 688 [13:44:44]Content-Type: application/json [13:44:44] [13:44:44]POST finish read [13:44:44]Found Content-Length = 688 [13:44:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:44]execute_script... [13:44: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)210349", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:44:44]POST & json_proto [13:44:44]process_json_proto [13:44:44]json parsed OK: [13:44:44]protocol is kg_v1.0 [13:44:44]action value=close_receipt [13:44:44]process_action close_receipt [13:44:44]cmd_close_receipt [13:44:44]MH_GetDate [13:44:44]Write to MH i2c: F0 00 00 55 03 47 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: F0 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: F0 09 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: F0 09 00 55 03 00 4D AC 17 67 A0 18 CA 66 AF [13:44:44]GetLastDocTimeStamp 1729604640 [13:44:44]current date 1729604685 [13:44:44]FM_GetShiftState [13:44:44]SAM_PROTO_GetShiftState [13:44:44]wFMCommunicate request_size=4 [13:44:44]MH_SAM_APDU [13:44:44]CAPDU: 80 13 01 00 [13:44:44]Write to MH i2c: E2 08 00 56 03 80 13 01 00 00 00 00 00 D6 [13:44:44]Write i2c OK [13:44:44]MH_I2C_Read... [13:44:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:44]Read from MH i2c: E2 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0E 00 [13:44:44]MH_I2C_Read... [13:44:44]Read from MH i2c: E2 0E 00 56 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CB [13:44:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:44:44]wFMCommunicate OK [13:44:44]SAM_PROTO_GetShiftState done [13:44:44]FM_GetShiftState done [13:44:44]opened in 1729556094 [13:44:44]opened+sec_in_day 1729642494 [13:44:44]quantity*price = 300076 [13:44:44]sum+1 = 300077 [13:44:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 323 22.10.2024 13:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188294 ФПД: 28163051432978 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134445&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188294&fm=28163051432978&tin=02508201610067®Number=0000000000100030&sum=300000 [13:44:45]StoreToDocumentArchive [13:44:45]shift 461 fd 188294 [13:44:45]save to /storage/0461/doc_00188294 [13:44:45]save last doc name /storage/0461/doc_00188294 to /storage/kkm_last_doc_name [13:44:45]save OK [13:44:45]Clear old archive folders... [13:44:45]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:44:45]tlvbuf is 0148C360 [13:44:45]SAM_PROTO_ClearQueue [13:44:45]wFMCommunicate request_size=4 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 09 00 00 [13:44:45]Write to MH i2c: E2 08 00 63 03 80 09 00 00 00 00 00 00 D8 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 03 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [13:44:45]RAPDU: 90 00 [13:44:45]wFMCommunicate OK [13:44:45]SAM_PROTO_ClearQueue done [13:44:45]KKMCreateOFDPacket [13:44:45]OFDProtocolAddRootSTLVToBuf [13:44:45]FM_MakeSignedData [13:44:45]FM_MakeSignedData [13:44:45]SAM_PROTO_SignData [13:44:45]wFMCommunicate request_size=4 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 0D 01 02 [13:44:45]Write to MH i2c: E2 08 00 64 03 80 0D 01 02 00 00 00 00 E0 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 03 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [13:44:45]RAPDU: 90 00 [13:44:45]wFMCommunicate OK [13:44:45]wFMCommunicate request_size=255 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4D AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DF 02 [13:44:45]Write to MH i2c: E2 02 01 65 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4D AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DF 02 00 00 0F [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:45]Read from MH i2c: E2 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 03 00 [13:44:45]MH_I2C_Read... [13:44:45]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [13:44:45]RAPDU: 90 00 [13:44:45]wFMCommunicate OK [13:44:45]wFMCommunicate request_size=16 [13:44:45]MH_SAM_APDU [13:44:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 19 9D 38 AD 2C 12 [13:44:45]Write to MH i2c: E2 13 00 66 03 80 0D 02 02 0B 00 00 35 04 06 00 19 9D 38 AD 2C 12 00 00 11 [13:44:45]Write i2c OK [13:44:45]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 03 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 03 00 66 03 00 90 00 DD [13:44:46]RAPDU: 90 00 [13:44:46]wFMCommunicate OK [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 0D 03 02 [13:44:46]Write to MH i2c: E2 08 00 67 03 80 0D 03 02 00 00 00 00 E5 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 0B 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 0B 00 67 03 00 34 8D E2 D3 F9 8C A2 11 90 00 94 [13:44:46]RAPDU: 34 8D E2 D3 F9 8C A2 11 90 00 [13:44:46]wFMCommunicate OK [13:44:46]SAM_PROTO_SignData done [13:44:46]FM_MakeSignedData done [13:44:46]CreateOFDProtocolMessage [13:44:46]wFMCommunicate request_size=4 [13:44:46]MH_SAM_APDU [13:44:46]CAPDU: 80 11 00 00 [13:44:46]Write to MH i2c: E2 08 00 68 03 80 11 00 00 00 00 00 00 E5 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:46]Read from MH i2c: E2 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: E2 17 00 68 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [13:44:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:46]wFMCommunicate OK [13:44:46]CreateOFDProtocolMessage done [13:44:46]OFDSenderStorePacket 188294 [13:44:46]StoreOFDPacket docnum=188294 [13:44:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9C F5 0D 01 00 B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4D AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DF 02 00 35 04 06 00 19 9D 38 AD 2C 12 34 8D E2 D3 F9 8C A2 11 [13:44:46]CheckFolder [13:44:46]dirname=/storage/ofd_packets [13:44:46]CheckFolder done [13:44:46]ProducePacketName [13:44:46]name=ofd_packets/00188294 [13:44:46]NVStorageSaveData ofd_packets/00188294 [13:44:46]File name is /storage/ofd_packets/00188294 [13:44:46]Write 307 bytes [13:44:46]NVStorageSaveData done [13:44:46]OFDSenderStorePacket done [13:44:46]KKMCreateOFDPacket done [13:44:46]NVStorageSaveData kkm_last_timestamp [13:44:46]File name is /storage/kkm_last_timestamp [13:44:46]Write 4 bytes [13:44:46]NVStorageSaveData done [13:44:46]ExternCall_PrintAddStr [13:44:46]wPrintStart [13:44:46]Write to MH i2c: 01 00 00 69 03 6C [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 69 03 00 00 00 00 00 FF 0F 81 [13:44:46]RasterBufferAndPrint [13:44:46]line Счет N : (1)210349 [13:44:46]line ИНН: 02508201610067 [13:44:46]line Контрольно-Кассовый Чек [13:44:46]line ПРОДАЖА [13:44:46]line ТРК (МРК, ГНК) : 41 [13:44:46]line Товар: 2710194210 [13:44:46]line D-ENERGY ДТ-К-5 [13:44:46]line 38.870 * 77.20 [13:44:46]line = 3000.76 [13:44:46]line НДС 12% НСП 1% [13:44:46]line > о реализуемом товаре [13:44:46]line ОКРУГЛЕНИЕ: -0.76 [13:44:46]line ИТОГО: 3000.00 [13:44:46]line Внесено: 3000.00 [13:44:46]line СДАЧА: 0.00 [13:44:46]line НСП 1% : 26.55 [13:44:46]line НДС 12% : 318.66 [13:44:46]line Наличными: 3000.00 [13:44:46]line Безнал.: 0.00 [13:44:46]line Место: АЗС № 86 "Партнер Нефть" [13:44:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:44:46]line СНО: Общий режим [13:44:46]line Чек 323 22.10.2024 13:44 [13:44:46]line Смена: 461 ФФД: 1.0 [13:44:46]line ЗНМ: 0300000155 [13:44:46]line РНМ: 0000000000100030 [13:44:46]line Версия ККМ: 001 [13:44:46]line ФМ: 0000000000965340 [13:44:46]line ФД: 188294 [13:44:46]line ФПД: 28163051432978 [13:44:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134445&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188294&fm=28163051432978&tin=02508201610067®Number=0000000000100030&sum=300000 [13:44:46]OFD Sender: Processing packet 188294 [packets to send 1062, broken 1061] [13:44:46]ProducePacketName [13:44:46]name=ofd_packets/00188294 [13:44:46]OFD Sender: To server: pG, [13:44:46]CommunicateWithHost lk.salyk.kg:30040 [13:44:46]ConnectInit lk.salyk.kg [13:44:46]written 0, free lines is 4095 [13:44:46]Connected sock=10 [13:44:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 9C F5 0D 01 00 B7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 43 01 00 00 F4 03 04 00 4D AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 DF 02 00 35 04 06 00 19 9D 38 AD 2C 12 34 8D E2 D3 F9 8C A2 11 [13:44:46]Write to MH i2c: 01 00 00 94 03 97 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: 01 07 00 94 03 00 00 00 00 00 70 0C 1A [13:44:46]RasterBufferAndPrint [13:44:46]line [13:44:46]line [13:44:46]line [13:44:46]line [13:44:46]line [13:44:46]written 0, free lines is 3186 [13:44:46]MH_Cut [13:44:46]Write to MH i2c: D1 01 00 9B 03 01 70 [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: D1 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: D1 01 00 [13:44:46]MH_I2C_Read... [13:44:46]Read from MH i2c: D1 01 00 9B 03 00 6F [13:44:46]Write to MH i2c: 01 00 00 9C 03 9F [13:44:46]Write i2c OK [13:44:46]MH_I2C_Read... [13:44:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3E 28 47 00 1A 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 39 36 35 33 34 30 10 04 04 00 86 DF 02 00 F4 03 04 00 3A 56 17 67 B6 04 01 00 00 91 23 DE 74 05 BA FF 9F [13:44:46]CommunicateWithHost err = 0 [13:44:46]CheckOFDResponse [13:44:46]1017 (14) - 77093643461234 [13:44:46]1041 (16) - 0000000000965340 [13:44:46]1040 (4) - 188294 [13:44:46]1012 (4) - 22.10.2024 07:37 [13:44:46]1206 (1) - 0 [13:44:46]OFD Sender: Remove packet 188294 [13:44:46]ProducePacketName [13:44:46]name=ofd_packets/00188294 [13:44:46]NVStorageDeleteData [13:44:47]OFD Sender: No OFD packet to send [13:44:47]*** Cut start [13:44:47]*** Partial cut [13:44:47]*** CUTSNS_PIN = 1 [13:44:47]*** CUTSNS_PIN = 0 [13:44:48]*** Brake cut motor [13:44:48]Read from MH i2c: 01 [13:44:48]MH_I2C_Read... [13:44:48]*** Stop cut motor [13:44:48]*** Cut end [13:44:48]Read from MH i2c: 01 07 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: 01 07 00 9C 03 00 00 00 00 00 FF 0F B4 [13:44:48]process_action close_receipt done [13:44:48]requested_data is exist [13:44:48]produce_requested_data [13:44:48]requested_item fm.sn is exist - process it [13:44:48]wFMCommunicate request_size=4 [13:44:48]MH_SAM_APDU [13:44:48]CAPDU: 80 11 00 00 [13:44:48]Write to MH i2c: E2 08 00 9D 03 80 11 00 00 00 00 00 00 1A [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:44:48]Read from MH i2c: E2 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 17 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 17 00 9D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [13:44:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:44:48]wFMCommunicate OK [13:44:48]requested_item fd.num is exist - process it [13:44:48]SAM_PROTO_GetFieldsCounters [13:44:48]wFMCommunicate request_size=4 [13:44:48]MH_SAM_APDU [13:44:48]CAPDU: 80 13 00 00 [13:44:48]Write to MH i2c: E2 08 00 9E 03 80 13 00 00 00 00 00 00 1D [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:44:48]Read from MH i2c: E2 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 62 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 62 00 9E 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 25 [13:44:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 43 01 00 00 5E 04 04 00 43 01 00 00 57 04 04 00 44 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:44:48]wFMCommunicate OK [13:44:48]SAM_PROTO_GetFieldsCounters done [13:44:48]requested_item shift.num is exist - process it [13:44:48]requested_item shift.opened is exist - process it [13:44:48]req_shift_opened [13:44:48]FM_GetShiftState [13:44:48]SAM_PROTO_GetShiftState [13:44:48]wFMCommunicate request_size=4 [13:44:48]MH_SAM_APDU [13:44:48]CAPDU: 80 13 01 00 [13:44:48]Write to MH i2c: E2 08 00 9F 03 80 13 01 00 00 00 00 00 1F [13:44:48]Write i2c OK [13:44:48]MH_I2C_Read... [13:44:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:44:48]Read from MH i2c: E2 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 [13:44:48]MH_I2C_Read... [13:44:48]Read from MH i2c: E2 0E 00 9F 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 14 [13:44:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:44:48]wFMCommunicate OK [13:44:48]SAM_PROTO_GetShiftState done [13:44:48]FM_GetShiftState done [13:44:48]req_shift_opened done [13:44:48]requested_item shift.open_date is exist - process it [13:44:48]req_shift_open_date [13:44:48]req_shift_open_date done [13:44:48]produce_requested_data done [13:44:48]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188294,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:44:48]process_action_free close_receipt [13:44:48]json_value_free [13:44:48]json_value_free done [13:44:48]process_json_proto returns [13:44:48]Send response to host [13:44:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188294,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:44:48]free response buf [13:44:48]execute_script done [13:44:48]execute_script returns [13:44:48]free content buf [13:44:48]Sock 7.Close socket [13:44:48]Sock 7.Thread stoped [13:44:52]OFD Sender: No OFD packet to send [13:44:57]OFD Sender: No OFD packet to send [13:45:02]OFD Sender: No OFD packet to send [13:45:07]OFD Sender: No OFD packet to send [13:45:12]OFD Sender: No OFD packet to send [13:45:17]OFD Sender: No OFD packet to send [13:45:22]OFD Sender: No OFD packet to send [13:45:27]OFD Sender: No OFD packet to send [13:45:32]OFD Sender: No OFD packet to send [13:45:37]OFD Sender: No OFD packet to send [13:45:42]OFD Sender: No OFD packet to send [13:45:47]OFD Sender: No OFD packet to send [13:45:52]OFD Sender: No OFD packet to send [13:45:57]OFD Sender: No OFD packet to send [13:46:02]OFD Sender: No OFD packet to send [13:46:07]OFD Sender: No OFD packet to send [13:46:12]OFD Sender: No OFD packet to send [13:46:17]OFD Sender: No OFD packet to send [13:46:22]OFD Sender: No OFD packet to send [13:46:27]OFD Sender: No OFD packet to send [13:46:32]OFD Sender: No OFD packet to send [13:46:37]OFD Sender: No OFD packet to send [13:46:42]OFD Sender: No OFD packet to send [13:46:47]OFD Sender: No OFD packet to send [13:46:52]OFD Sender: No OFD packet to send [13:46:57]OFD Sender: No OFD packet to send [13:47:02]OFD Sender: No OFD packet to send [13:47:07]OFD Sender: No OFD packet to send [13:47:12]OFD Sender: No OFD packet to send [13:47:17]OFD Sender: No OFD packet to send [13:47:22]OFD Sender: No OFD packet to send [13:47:28]OFD Sender: No OFD packet to send [13:47:33]OFD Sender: No OFD packet to send [13:47:34]accept exits with 9 [13:47:34]New connection [13:47:34]New thread 3067305316 created [13:47:34]Thread 3067161956 joined [13:47:34]Waiting for new connection... [13:47:34] Sock 9.Parse request [13:47:34]Sock 9.Check first char [13:47:34]Sock 9.First char is OK [13:47:34]request: POST /json_proto HTTP/1.0 [13:47:34]Method: POST [13:47:34]URL: /json_proto [13:47:34]Method is POST - this is cgi request [13:47:34]url: /json_proto [13:47:34]query_string will be loaded in cgi processing [13:47:34]execute_cgi json_proto POST (null) [13:47:34]execute_cgi path=json_proto method=POST [13:47:34]POST find Content-Length [13:47:34]Host: 172.17.42.131:8080 [13:47:34]Content-Length: 688 [13:47:34]Content-Type: application/json [13:47:34] [13:47:34]POST finish read [13:47:34]Found Content-Length = 688 [13:47:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [13:47:34]execute_script... [13:47: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)210350", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [13:47:34]POST & json_proto [13:47:34]process_json_proto [13:47:34]json parsed OK: [13:47:34]protocol is kg_v1.0 [13:47:34]action value=close_receipt [13:47:34]process_action close_receipt [13:47:34]cmd_close_receipt [13:47:34]MH_GetDate [13:47:34]Write to MH i2c: F0 00 00 A0 03 92 [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: F0 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: F0 09 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: F0 09 00 A0 03 00 F7 AC 17 67 A0 18 CA 66 A4 [13:47:34]GetLastDocTimeStamp 1729604685 [13:47:34]current date 1729604855 [13:47:34]FM_GetShiftState [13:47:34]SAM_PROTO_GetShiftState [13:47:34]wFMCommunicate request_size=4 [13:47:34]MH_SAM_APDU [13:47:34]CAPDU: 80 13 01 00 [13:47:34]Write to MH i2c: E2 08 00 A1 03 80 13 01 00 00 00 00 00 21 [13:47:34]Write i2c OK [13:47:34]MH_I2C_Read... [13:47:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:34]Read from MH i2c: E2 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 0E 00 [13:47:34]MH_I2C_Read... [13:47:34]Read from MH i2c: E2 0E 00 A1 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 16 [13:47:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:47:34]wFMCommunicate OK [13:47:34]SAM_PROTO_GetShiftState done [13:47:34]FM_GetShiftState done [13:47:34]opened in 1729556094 [13:47:34]opened+sec_in_day 1729642494 [13:47:34]quantity*price = 100051 [13:47:34]sum+1 = 100052 [13:47: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 324 22.10.2024 13:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188295 ФПД: 85555128913995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134735&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188295&fm=85555128913995&tin=02508201610067®Number=0000000000100030&sum=100000 [13:47:35]StoreToDocumentArchive [13:47:35]shift 461 fd 188295 [13:47:35]save to /storage/0461/doc_00188295 [13:47:35]save last doc name /storage/0461/doc_00188295 to /storage/kkm_last_doc_name [13:47:35]save OK [13:47:35]Clear old archive folders... [13:47:35]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:47:35]tlvbuf is 0148C600 [13:47:35]SAM_PROTO_ClearQueue [13:47:35]wFMCommunicate request_size=4 [13:47:35]MH_SAM_APDU [13:47:35]CAPDU: 80 09 00 00 [13:47:35]Write to MH i2c: E2 08 00 AE 03 80 09 00 00 00 00 00 00 23 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:47:35]Read from MH i2c: E2 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [13:47:35]RAPDU: 90 00 [13:47:35]wFMCommunicate OK [13:47:35]SAM_PROTO_ClearQueue done [13:47:35]KKMCreateOFDPacket [13:47:35]OFDProtocolAddRootSTLVToBuf [13:47:35]FM_MakeSignedData [13:47:35]FM_MakeSignedData [13:47:35]SAM_PROTO_SignData [13:47:35]wFMCommunicate request_size=4 [13:47:35]MH_SAM_APDU [13:47:35]CAPDU: 80 0D 01 02 [13:47:35]Write to MH i2c: E2 08 00 AF 03 80 0D 01 02 00 00 00 00 2B [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:47:35]Read from MH i2c: E2 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [13:47:35]RAPDU: 90 00 [13:47:35]wFMCommunicate OK [13:47:35]wFMCommunicate request_size=255 [13:47:35]MH_SAM_APDU [13:47:35]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 F7 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DF 02 [13:47:35]Write to MH i2c: E2 02 01 B0 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 F7 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DF 02 00 00 24 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:35]Read from MH i2c: E2 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [13:47:35]RAPDU: 90 00 [13:47:35]wFMCommunicate OK [13:47:35]wFMCommunicate request_size=16 [13:47:35]MH_SAM_APDU [13:47:35]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4D CF DB 11 50 4B [13:47:35]Write to MH i2c: E2 13 00 B1 03 80 0D 02 02 0B 00 00 35 04 06 00 4D CF DB 11 50 4B 00 00 26 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:47:35]Read from MH i2c: E2 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 03 00 B1 03 00 90 00 28 [13:47:35]RAPDU: 90 00 [13:47:35]wFMCommunicate OK [13:47:35]wFMCommunicate request_size=4 [13:47:35]MH_SAM_APDU [13:47:35]CAPDU: 80 0D 03 02 [13:47:35]Write to MH i2c: E2 08 00 B2 03 80 0D 03 02 00 00 00 00 30 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:47:35]Read from MH i2c: E2 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 0B 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 0B 00 B2 03 00 26 AC 7C FE F8 F8 38 27 90 00 CC [13:47:35]RAPDU: 26 AC 7C FE F8 F8 38 27 90 00 [13:47:35]wFMCommunicate OK [13:47:35]SAM_PROTO_SignData done [13:47:35]FM_MakeSignedData done [13:47:35]CreateOFDProtocolMessage [13:47:35]wFMCommunicate request_size=4 [13:47:35]MH_SAM_APDU [13:47:35]CAPDU: 80 11 00 00 [13:47:35]Write to MH i2c: E2 08 00 B3 03 80 11 00 00 00 00 00 00 30 [13:47:35]Write i2c OK [13:47:35]MH_I2C_Read... [13:47:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:35]Read from MH i2c: E2 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 17 00 [13:47:35]MH_I2C_Read... [13:47:35]Read from MH i2c: E2 17 00 B3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [13:47:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:47:35]wFMCommunicate OK [13:47:35]CreateOFDProtocolMessage done [13:47:35]OFDSenderStorePacket 188295 [13:47:35]StoreOFDPacket docnum=188295 [13:47:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5C 1E 0D 01 C5 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 F7 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DF 02 00 35 04 06 00 4D CF DB 11 50 4B 26 AC 7C FE F8 F8 38 27 [13:47:35]CheckFolder [13:47:35]dirname=/storage/ofd_packets [13:47:35]CheckFolder done [13:47:35]ProducePacketName [13:47:35]name=ofd_packets/00188295 [13:47:35]NVStorageSaveData ofd_packets/00188295 [13:47:35]File name is /storage/ofd_packets/00188295 [13:47:35]Write 307 bytes [13:47:35]NVStorageSaveData done [13:47:35]OFDSenderStorePacket done [13:47:35]KKMCreateOFDPacket done [13:47:35]NVStorageSaveData kkm_last_timestamp [13:47:35]File name is /storage/kkm_last_timestamp [13:47:35]Write 4 bytes [13:47:35]NVStorageSaveData done [13:47:36]ExternCall_PrintAddStr [13:47:36]wPrintStart [13:47:36]Write to MH i2c: 01 00 00 B4 03 B7 [13:47:36]Write i2c OK [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: 01 [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: 01 07 00 [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: 01 07 00 B4 03 00 00 00 00 00 FF 0F CC [13:47:36]RasterBufferAndPrint [13:47:36]line Счет N : (1)210350 [13:47:36]line ИНН: 02508201610067 [13:47:36]line Контрольно-Кассовый Чек [13:47:36]line ПРОДАЖА [13:47:36]line ТРК (МРК, ГНК) : 31 [13:47:36]line Товар: 2710194210 [13:47:36]line D-ENERGY ДТ-К-5 [13:47:36]line 12.960 * 77.20 [13:47:36]line = 1000.51 [13:47:36]line НДС 12% НСП 1% [13:47:36]line > о реализуемом товаре [13:47:36]line ОКРУГЛЕНИЕ: -0.51 [13:47:36]line ИТОГО: 1000.00 [13:47:36]line Внесено: 1000.00 [13:47:36]line СДАЧА: 0.00 [13:47:36]line НСП 1% : 8.85 [13:47:36]line НДС 12% : 106.25 [13:47:36]line Наличными: 1000.00 [13:47:36]line Безнал.: 0.00 [13:47:36]line Место: АЗС № 86 "Партнер Нефть" [13:47:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:47:36]line СНО: Общий режим [13:47:36]line Чек 324 22.10.2024 13:47 [13:47:36]line Смена: 461 ФФД: 1.0 [13:47:36]line ЗНМ: 0300000155 [13:47:36]line РНМ: 0000000000100030 [13:47:36]line Версия ККМ: 001 [13:47:36]line ФМ: 0000000000965340 [13:47:36]line ФД: 188295 [13:47:36]line ФПД: 85555128913995 [13:47:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T134735&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188295&fm=85555128913995&tin=02508201610067®Number=0000000000100030&sum=100000 [13:47:36]OFD Sender: Processing packet 188295 [packets to send 1062, broken 1061] [13:47:36]ProducePacketName [13:47:36]name=ofd_packets/00188295 [13:47:36]OFD Sender: To server: pG, [13:47:36]CommunicateWithHost lk.salyk.kg:30040 [13:47:36]ConnectInit lk.salyk.kg [13:47:36]written 0, free lines is 4095 [13:47:36]Connected sock=10 [13:47:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 5C 1E 0D 01 C5 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 01 00 00 F4 03 04 00 F7 AC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 DF 02 00 35 04 06 00 4D CF DB 11 50 4B 26 AC 7C FE F8 F8 38 27 [13:47:36]Write to MH i2c: 01 00 00 DF 03 E2 [13:47:36]Write i2c OK [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: 01 [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: 01 07 00 [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: 01 07 00 DF 03 00 00 00 00 00 65 0C 5A [13:47:36]RasterBufferAndPrint [13:47:36]line [13:47:36]line [13:47:36]line [13:47:36]line [13:47:36]line [13:47:36]written 0, free lines is 3176 [13:47:36]MH_Cut [13:47:36]Write to MH i2c: D1 01 00 E6 03 01 BB [13:47:36]Write i2c OK [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: D1 [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: D1 01 00 [13:47:36]MH_I2C_Read... [13:47:36]Read from MH i2c: D1 01 00 E6 03 00 BA [13:47:36]Write to MH i2c: 01 00 00 E7 03 EA [13:47:36]Write i2c OK [13:47:36]MH_I2C_Read... [13:47:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 A6 47 00 19 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 39 36 35 33 34 30 10 04 04 00 87 DF 02 00 F4 03 04 00 E4 56 17 67 B6 04 01 00 00 12 BC EA CC 56 F5 C0 EF [13:47:36]CommunicateWithHost err = 0 [13:47:36]CheckOFDResponse [13:47:36]1017 (14) - 77093643461234 [13:47:36]1041 (16) - 0000000000965340 [13:47:36]1040 (4) - 188295 [13:47:36]1012 (4) - 22.10.2024 07:40 [13:47:36]1206 (1) - 0 [13:47:36]OFD Sender: Remove packet 188295 [13:47:36]ProducePacketName [13:47:36]name=ofd_packets/00188295 [13:47:36]NVStorageDeleteData [13:47:37]OFD Sender: No OFD packet to send [13:47:37]*** Cut start [13:47:37]*** Partial cut [13:47:37]*** CUTSNS_PIN = 1 [13:47:37]*** CUTSNS_PIN = 0 [13:47:37]*** Brake cut motor [13:47:38]Read from MH i2c: 01 [13:47:38]MH_I2C_Read... [13:47:38]*** Stop cut motor [13:47:38]*** Cut end [13:47:38]Read from MH i2c: 01 07 00 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: 01 07 00 E7 03 00 00 00 00 00 FF 0F FF [13:47:38]process_action close_receipt done [13:47:38]requested_data is exist [13:47:38]produce_requested_data [13:47:38]requested_item fm.sn is exist - process it [13:47:38]wFMCommunicate request_size=4 [13:47:38]MH_SAM_APDU [13:47:38]CAPDU: 80 11 00 00 [13:47:38]Write to MH i2c: E2 08 00 E8 03 80 11 00 00 00 00 00 00 65 [13:47:38]Write i2c OK [13:47:38]MH_I2C_Read... [13:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:47:38]Read from MH i2c: E2 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: E2 17 00 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: E2 17 00 E8 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [13:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:47:38]wFMCommunicate OK [13:47:38]requested_item fd.num is exist - process it [13:47:38]SAM_PROTO_GetFieldsCounters [13:47:38]wFMCommunicate request_size=4 [13:47:38]MH_SAM_APDU [13:47:38]CAPDU: 80 13 00 00 [13:47:38]Write to MH i2c: E2 08 00 E9 03 80 13 00 00 00 00 00 00 68 [13:47:38]Write i2c OK [13:47:38]MH_I2C_Read... [13:47:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:47:38]Read from MH i2c: E2 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: E2 62 00 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: E2 62 00 E9 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 74 [13:47:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 44 01 00 00 5E 04 04 00 44 01 00 00 57 04 04 00 45 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:47:38]wFMCommunicate OK [13:47:38]SAM_PROTO_GetFieldsCounters done [13:47:38]requested_item shift.num is exist - process it [13:47:38]requested_item shift.opened is exist - process it [13:47:38]req_shift_opened [13:47:38]FM_GetShiftState [13:47:38]SAM_PROTO_GetShiftState [13:47:38]wFMCommunicate request_size=4 [13:47:38]MH_SAM_APDU [13:47:38]CAPDU: 80 13 01 00 [13:47:38]Write to MH i2c: E2 08 00 EA 03 80 13 01 00 00 00 00 00 6A [13:47:38]Write i2c OK [13:47:38]MH_I2C_Read... [13:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:47:38]Read from MH i2c: E2 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: E2 0E 00 [13:47:38]MH_I2C_Read... [13:47:38]Read from MH i2c: E2 0E 00 EA 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5F [13:47:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:47:38]wFMCommunicate OK [13:47:38]SAM_PROTO_GetShiftState done [13:47:38]FM_GetShiftState done [13:47:38]req_shift_opened done [13:47:38]requested_item shift.open_date is exist - process it [13:47:38]req_shift_open_date [13:47:38]req_shift_open_date done [13:47:38]produce_requested_data done [13:47:38]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188295,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:47:38]process_action_free close_receipt [13:47:38]json_value_free [13:47:38]json_value_free done [13:47:38]process_json_proto returns [13:47:38]Send response to host [13:47:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188295,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:47:38]free response buf [13:47:38]execute_script done [13:47:38]execute_script returns [13:47:38]free content buf [13:47:38]Sock 9.Close socket [13:47:38]Sock 9.Thread stoped [13:47:42]OFD Sender: No OFD packet to send [13:47:47]OFD Sender: No OFD packet to send [13:47:52]OFD Sender: No OFD packet to send [13:47:57]OFD Sender: No OFD packet to send [13:48:02]OFD Sender: No OFD packet to send [13:48:07]OFD Sender: No OFD packet to send [13:48:12]OFD Sender: No OFD packet to send [13:48:17]OFD Sender: No OFD packet to send [13:48:22]OFD Sender: No OFD packet to send [13:48:27]OFD Sender: No OFD packet to send [13:48:32]OFD Sender: No OFD packet to send [13:48:37]OFD Sender: No OFD packet to send [13:48:42]OFD Sender: No OFD packet to send [13:48:47]OFD Sender: No OFD packet to send [13:48:52]OFD Sender: No OFD packet to send [13:48:57]OFD Sender: No OFD packet to send [13:49:02]OFD Sender: No OFD packet to send [13:49:07]OFD Sender: No OFD packet to send [13:49:12]OFD Sender: No OFD packet to send [13:49:17]OFD Sender: No OFD packet to send [13:49:22]OFD Sender: No OFD packet to send [13:49:27]OFD Sender: No OFD packet to send [13:49:32]OFD Sender: No OFD packet to send [13:49:37]OFD Sender: No OFD packet to send [13:49:42]OFD Sender: No OFD packet to send [13:49:47]OFD Sender: No OFD packet to send [13:49:52]OFD Sender: No OFD packet to send [13:49:57]OFD Sender: No OFD packet to send [13:50:02]OFD Sender: No OFD packet to send [13:50:07]OFD Sender: No OFD packet to send [13:50:12]OFD Sender: No OFD packet to send [13:50:17]OFD Sender: No OFD packet to send [13:50:21]accept exits with 7 [13:50:21]New connection [13:50:21]New thread 3067161956 created [13:50:21]Thread 3067305316 joined [13:50:21]Waiting for new connection... [13:50:21] Sock 7.Parse request [13:50:21]Sock 7.Check first char [13:50:21]Sock 7.First char is OK [13:50:21]request: POST /json_proto HTTP/1.0 [13:50:21]Method: POST [13:50:21]URL: /json_proto [13:50:21]Method is POST - this is cgi request [13:50:21]url: /json_proto [13:50:21]query_string will be loaded in cgi processing [13:50:21]execute_cgi json_proto POST (null) [13:50:21]execute_cgi path=json_proto method=POST [13:50:21]POST find Content-Length [13:50:21]Host: 172.17.42.131:8080 [13:50:21]Content-Length: 792 [13:50:21]Content-Type: application/json [13:50:21] [13:50:21]POST finish read [13:50:21]Found Content-Length = 792 [13:50:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:21]execute_script... [13:50: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)210351", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 29.900, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:50:21]POST & json_proto [13:50:21]process_json_proto [13:50:21]json parsed OK: [13:50:21]protocol is kg_v1.0 [13:50:21]action value=close_receipt [13:50:21]process_action close_receipt [13:50:21]cmd_close_receipt [13:50:21]MH_GetDate [13:50:21]Write to MH i2c: F0 00 00 EB 03 DD [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: F0 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: F0 09 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: F0 09 00 EB 03 00 9E AD 17 67 A0 18 CA 66 97 [13:50:21]GetLastDocTimeStamp 1729604855 [13:50:21]current date 1729605022 [13:50:21]FM_GetShiftState [13:50:21]SAM_PROTO_GetShiftState [13:50:21]wFMCommunicate request_size=4 [13:50:21]MH_SAM_APDU [13:50:21]CAPDU: 80 13 01 00 [13:50:21]Write to MH i2c: E2 08 00 EC 03 80 13 01 00 00 00 00 00 6C [13:50:21]Write i2c OK [13:50:21]MH_I2C_Read... [13:50:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:21]Read from MH i2c: E2 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 0E 00 [13:50:21]MH_I2C_Read... [13:50:21]Read from MH i2c: E2 0E 00 EC 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 61 [13:50:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:50:21]wFMCommunicate OK [13:50:21]SAM_PROTO_GetShiftState done [13:50:21]FM_GetShiftState done [13:50:21]opened in 1729556094 [13:50:21]opened+sec_in_day 1729642494 [13:50:21]quantity*price = 0 [13:50:21]sum+1 = 1 [13:50:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 325 22.10.2024 13:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 188296 ФПД: 170274558193205 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188296&fm=170274558193205&tin=02508201610067®Number=0000000000100030&sum=0 [13:50:22]StoreToDocumentArchive [13:50:22]shift 461 fd 188296 [13:50:22]save to /storage/0461/doc_00188296 [13:50:22]save last doc name /storage/0461/doc_00188296 to /storage/kkm_last_doc_name [13:50:22]save OK [13:50:22]Clear old archive folders... [13:50:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:50:22]tlvbuf is 0143BA50 [13:50:22]SAM_PROTO_ClearQueue [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 09 00 00 [13:50:22]Write to MH i2c: E2 08 00 F9 03 80 09 00 00 00 00 00 00 6E [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [13:50:22]RAPDU: 90 00 [13:50:22]wFMCommunicate OK [13:50:22]SAM_PROTO_ClearQueue done [13:50:22]KKMCreateOFDPacket [13:50:22]OFDProtocolAddRootSTLVToBuf [13:50:22]FM_MakeSignedData [13:50:22]FM_MakeSignedData [13:50:22]SAM_PROTO_SignData [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 0D 01 02 [13:50:22]Write to MH i2c: E2 08 00 FA 03 80 0D 01 02 00 00 00 00 76 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [13:50:22]RAPDU: 90 00 [13:50:22]wFMCommunicate OK [13:50:22]wFMCommunicate request_size=255 [13:50:22]MH_SAM_APDU [13:50: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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 9E AD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DF 02 00 35 04 06 00 9A [13:50:22]Write to MH i2c: E2 02 01 FB 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 9E AD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DF 02 00 35 04 06 00 9A 00 00 84 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [13:50:22]RAPDU: 90 00 [13:50:22]wFMCommunicate OK [13:50:22]wFMCommunicate request_size=10 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 0D 02 02 05 DD 22 8E 2E 35 [13:50:22]Write to MH i2c: E2 0D 00 FC 03 80 0D 02 02 05 00 DD 22 8E 2E 35 00 00 73 [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 03 00 FC 03 00 90 00 73 [13:50:22]RAPDU: 90 00 [13:50:22]wFMCommunicate OK [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 0D 03 02 [13:50:22]Write to MH i2c: E2 08 00 FD 03 80 0D 03 02 00 00 00 00 7B [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 0B 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 0B 00 FD 03 00 D5 13 A8 4D 37 AE 69 A6 90 00 4D [13:50:22]RAPDU: D5 13 A8 4D 37 AE 69 A6 90 00 [13:50:22]wFMCommunicate OK [13:50:22]SAM_PROTO_SignData done [13:50:22]FM_MakeSignedData done [13:50:22]CreateOFDProtocolMessage [13:50:22]wFMCommunicate request_size=4 [13:50:22]MH_SAM_APDU [13:50:22]CAPDU: 80 11 00 00 [13:50:22]Write to MH i2c: E2 08 00 FE 03 80 11 00 00 00 00 00 00 7B [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:22]Read from MH i2c: E2 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 17 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: E2 17 00 FE 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [13:50:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:50:22]wFMCommunicate OK [13:50:22]CreateOFDProtocolMessage done [13:50:22]OFDSenderStorePacket 188296 [13:50:22]StoreOFDPacket docnum=188296 [13:50:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 7E 07 01 D1 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 9E AD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DF 02 00 35 04 06 00 9A DD 22 8E 2E 35 D5 13 A8 4D 37 AE 69 A6 [13:50:22]CheckFolder [13:50:22]dirname=/storage/ofd_packets [13:50:22]CheckFolder done [13:50:22]ProducePacketName [13:50:22]name=ofd_packets/00188296 [13:50:22]NVStorageSaveData ofd_packets/00188296 [13:50:22]File name is /storage/ofd_packets/00188296 [13:50:22]Write 301 bytes [13:50:22]NVStorageSaveData done [13:50:22]OFDSenderStorePacket done [13:50:22]KKMCreateOFDPacket done [13:50:22]NVStorageSaveData kkm_last_timestamp [13:50:22]File name is /storage/kkm_last_timestamp [13:50:22]Write 4 bytes [13:50:22]NVStorageSaveData done [13:50:22]ExternCall_PrintAddStr [13:50:22]wPrintStart [13:50:22]Write to MH i2c: 01 00 00 FF 03 02 [13:50:22]OFD Sender: Processing packet 188296 [packets to send 1062, broken 1061] [13:50:22]ProducePacketName [13:50:22]name=ofd_packets/00188296 [13:50:22]OFD Sender: To server: pG, [13:50:22]CommunicateWithHost lk.salyk.kg:30040 [13:50:22]ConnectInit lk.salyk.kg [13:50:22]Write i2c OK [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 07 00 [13:50:22]MH_I2C_Read... [13:50:22]Read from MH i2c: 01 07 00 FF 03 00 00 00 00 00 FF 0F 17 [13:50:22]RasterBufferAndPrint [13:50:22]line Счет N : (1)210351 [13:50:22]line ИНН: 02508201610067 [13:50:22]line Контрольно-Кассовый Чек [13:50:22]line ПРОДАЖА [13:50:22]line ТРК (МРК, ГНК) : 32 [13:50:22]line Товар: 2710124130 [13:50:22]line Аи-92-К-3 [13:50:22]line 29.900 * 0.00 [13:50:22]line = 0.00 [13:50:22]line НДС 12% НСП 1% [13:50:22]line > о реализуемом товаре [13:50:22]line ИТОГО: 0.00 [13:50:22]line НСП 1% : 0.00 [13:50:22]line НДС 12% : 0.00 [13:50:22]line Наличными: 0.00 [13:50:22]line Безнал.: 0.00 [13:50:22]line Место: АЗС № 86 "Партнер Нефть" [13:50:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:50:22]line СНО: Общий режим [13:50:22]line Чек 325 22.10.2024 13:50 [13:50:22]line Смена: 461 ФФД: 1.0 [13:50:22]line ЗНМ: 0300000155 [13:50:22]line РНМ: 0000000000100030 [13:50:22]line Версия ККМ: 001 [13:50:22]line Талоны: Топливная Карта [13:50:22]line 02633 [13:50:22]line ФМ: 0000000000965340 [13:50:22]line ФД: 188296 [13:50:22]line ФПД: 170274558193205 [13:50:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135022&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188296&fm=170274558193205&tin=02508201610067®Number=0000000000100030&sum=0 [13:50:22]written 0, free lines is 4095 [13:50:23]Connected sock=10 [13:50:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 7E 07 01 D1 3F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 45 01 00 00 F4 03 04 00 9E AD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DF 02 00 35 04 06 00 9A DD 22 8E 2E 35 D5 13 A8 4D 37 AE 69 A6 [13:50:23]Write to MH i2c: 01 00 00 29 04 2D [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 07 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 85 0C C5 [13:50:23]RasterBufferAndPrint [13:50:23]line [13:50:23]line [13:50:23]line [13:50:23]line [13:50:23]line [13:50:23]written 0, free lines is 3208 [13:50:23]MH_Cut [13:50:23]Write to MH i2c: D1 01 00 30 04 01 06 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: D1 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: D1 01 00 [13:50:23]MH_I2C_Read... [13:50:23]Read from MH i2c: D1 01 00 30 04 00 05 [13:50:23]Write to MH i2c: 01 00 00 31 04 35 [13:50:23]Write i2c OK [13:50:23]MH_I2C_Read... [13:50:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 60 9E 47 00 28 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 DF 02 00 F4 03 04 00 8B 57 17 67 B6 04 01 00 00 C2 14 22 1F 99 B0 C0 98 [13:50:23]CommunicateWithHost err = 0 [13:50:23]CheckOFDResponse [13:50:23]1017 (14) - 77093643461234 [13:50:23]1041 (16) - 0000000000965340 [13:50:23]1040 (4) - 188296 [13:50:23]1012 (4) - 22.10.2024 07:43 [13:50:23]1206 (1) - 0 [13:50:23]OFD Sender: Remove packet 188296 [13:50:23]ProducePacketName [13:50:23]name=ofd_packets/00188296 [13:50:23]NVStorageDeleteData [13:50:24]OFD Sender: No OFD packet to send [13:50:24]*** Cut start [13:50:24]*** Partial cut [13:50:24]*** CUTSNS_PIN = 1 [13:50:24]*** CUTSNS_PIN = 0 [13:50:24]*** Brake cut motor [13:50:25]Read from MH i2c: 01 [13:50:25]MH_I2C_Read... [13:50:25]*** Stop cut motor [13:50:25]*** Cut end [13:50:25]Read from MH i2c: 01 07 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [13:50:25]process_action close_receipt done [13:50:25]requested_data is exist [13:50:25]produce_requested_data [13:50:25]requested_item fm.sn is exist - process it [13:50:25]wFMCommunicate request_size=4 [13:50:25]MH_SAM_APDU [13:50:25]CAPDU: 80 11 00 00 [13:50:25]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [13:50:25]Write i2c OK [13:50:25]MH_I2C_Read... [13:50:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:50:25]Read from MH i2c: E2 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 17 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [13:50:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:50:25]wFMCommunicate OK [13:50:25]requested_item fd.num is exist - process it [13:50:25]SAM_PROTO_GetFieldsCounters [13:50:25]wFMCommunicate request_size=4 [13:50:25]MH_SAM_APDU [13:50:25]CAPDU: 80 13 00 00 [13:50:25]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [13:50:25]Write i2c OK [13:50:25]MH_I2C_Read... [13:50:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:50:25]Read from MH i2c: E2 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 62 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 62 00 33 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [13:50:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 45 01 00 00 5E 04 04 00 45 01 00 00 57 04 04 00 46 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:50:25]wFMCommunicate OK [13:50:25]SAM_PROTO_GetFieldsCounters done [13:50:25]requested_item shift.num is exist - process it [13:50:25]requested_item shift.opened is exist - process it [13:50:25]req_shift_opened [13:50:25]FM_GetShiftState [13:50:25]SAM_PROTO_GetShiftState [13:50:25]wFMCommunicate request_size=4 [13:50:25]MH_SAM_APDU [13:50:25]CAPDU: 80 13 01 00 [13:50:25]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [13:50:25]Write i2c OK [13:50:25]MH_I2C_Read... [13:50:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:50:25]Read from MH i2c: E2 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 0E 00 [13:50:25]MH_I2C_Read... [13:50:25]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AA [13:50:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:50:25]wFMCommunicate OK [13:50:25]SAM_PROTO_GetShiftState done [13:50:25]FM_GetShiftState done [13:50:25]req_shift_opened done [13:50:25]requested_item shift.open_date is exist - process it [13:50:25]req_shift_open_date [13:50:25]req_shift_open_date done [13:50:25]produce_requested_data done [13:50:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188296,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:50:25]process_action_free close_receipt [13:50:25]json_value_free [13:50:25]json_value_free done [13:50:25]process_json_proto returns [13:50:25]Send response to host [13:50:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188296,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:50:25]free response buf [13:50:25]execute_script done [13:50:25]execute_script returns [13:50:25]free content buf [13:50:25]Sock 7.Close socket [13:50:25]Sock 7.Thread stoped [13:50:29]OFD Sender: No OFD packet to send [13:50:34]OFD Sender: No OFD packet to send [13:50:39]OFD Sender: No OFD packet to send [13:50:44]OFD Sender: No OFD packet to send [13:50:49]OFD Sender: No OFD packet to send [13:50:54]OFD Sender: No OFD packet to send [13:50:59]OFD Sender: No OFD packet to send [13:51:04]OFD Sender: No OFD packet to send [13:51:09]OFD Sender: No OFD packet to send [13:51:14]OFD Sender: No OFD packet to send [13:51:19]OFD Sender: No OFD packet to send [13:51:24]OFD Sender: No OFD packet to send [13:51:29]OFD Sender: No OFD packet to send [13:51:34]OFD Sender: No OFD packet to send [13:51:39]OFD Sender: No OFD packet to send [13:51:44]OFD Sender: No OFD packet to send [13:51:49]OFD Sender: No OFD packet to send [13:51:54]OFD Sender: No OFD packet to send [13:51:59]OFD Sender: No OFD packet to send [13:52:04]OFD Sender: No OFD packet to send [13:52:09]OFD Sender: No OFD packet to send [13:52:14]OFD Sender: No OFD packet to send [13:52:19]OFD Sender: No OFD packet to send [13:52:24]OFD Sender: No OFD packet to send [13:52:29]OFD Sender: No OFD packet to send [13:52:34]OFD Sender: No OFD packet to send [13:52:39]OFD Sender: No OFD packet to send [13:52:44]OFD Sender: No OFD packet to send [13:52:49]OFD Sender: No OFD packet to send [13:52:54]OFD Sender: No OFD packet to send [13:52:59]OFD Sender: No OFD packet to send [13:53:04]OFD Sender: No OFD packet to send [13:53:09]OFD Sender: No OFD packet to send [13:53:14]OFD Sender: No OFD packet to send [13:53:19]OFD Sender: No OFD packet to send [13:53:24]OFD Sender: No OFD packet to send [13:53:29]OFD Sender: No OFD packet to send [13:53:34]OFD Sender: No OFD packet to send [13:53:39]OFD Sender: No OFD packet to send [13:53:45]OFD Sender: No OFD packet to send [13:53:50]OFD Sender: No OFD packet to send [13:53:55]OFD Sender: No OFD packet to send [13:54:00]OFD Sender: No OFD packet to send [13:54:05]OFD Sender: No OFD packet to send [13:54:10]OFD Sender: No OFD packet to send [13:54:15]OFD Sender: No OFD packet to send [13:54:20]OFD Sender: No OFD packet to send [13:54:25]OFD Sender: No OFD packet to send [13:54:30]OFD Sender: No OFD packet to send [13:54:35]OFD Sender: No OFD packet to send [13:54:40]OFD Sender: No OFD packet to send [13:54:45]OFD Sender: No OFD packet to send [13:54:50]OFD Sender: No OFD packet to send [13:54:55]OFD Sender: No OFD packet to send [13:55:00]OFD Sender: No OFD packet to send [13:55:05]OFD Sender: No OFD packet to send [13:55:10]OFD Sender: No OFD packet to send [13:55:15]OFD Sender: No OFD packet to send [13:55:20]OFD Sender: No OFD packet to send [13:55:25]OFD Sender: No OFD packet to send [13:55:30]OFD Sender: No OFD packet to send [13:55:35]OFD Sender: No OFD packet to send [13:55:40]OFD Sender: No OFD packet to send [13:55:45]OFD Sender: No OFD packet to send [13:55:45]accept exits with 9 [13:55:45]New connection [13:55:45]New thread 3067305316 created [13:55:45]Thread 3067161956 joined [13:55:45]Waiting for new connection... [13:55:45] Sock 9.Parse request [13:55:45]Sock 9.Check first char [13:55:45]Sock 9.First char is OK [13:55:45]request: POST /json_proto HTTP/1.0 [13:55:45]Method: POST [13:55:45]URL: /json_proto [13:55:45]Method is POST - this is cgi request [13:55:45]url: /json_proto [13:55:45]query_string will be loaded in cgi processing [13:55:45]execute_cgi json_proto POST (null) [13:55:45]execute_cgi path=json_proto method=POST [13:55:45]POST find Content-Length [13:55:45]Host: 172.17.42.131:8080 [13:55:45]Content-Length: 682 [13:55:45]Content-Type: application/json [13:55:45] [13:55:45]POST finish read [13:55:45]Found Content-Length = 682 [13:55:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [13:55:45]execute_script... [13: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)210353", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [13:55:45]POST & json_proto [13:55:45]process_json_proto [13:55:45]json parsed OK: [13:55:45]protocol is kg_v1.0 [13:55:45]action value=close_receipt [13:55:45]process_action close_receipt [13:55:45]cmd_close_receipt [13:55:45]MH_GetDate [13:55:45]Write to MH i2c: F0 00 00 35 04 28 [13:55:45]Write i2c OK [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: F0 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: F0 09 00 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: F0 09 00 35 04 00 E2 AE 17 67 A0 18 CA 66 27 [13:55:45]GetLastDocTimeStamp 1729605022 [13:55:45]current date 1729605346 [13:55:45]FM_GetShiftState [13:55:45]SAM_PROTO_GetShiftState [13:55:45]wFMCommunicate request_size=4 [13:55:45]MH_SAM_APDU [13:55:45]CAPDU: 80 13 01 00 [13:55:45]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [13:55:45]Write i2c OK [13:55:45]MH_I2C_Read... [13:55:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:45]Read from MH i2c: E2 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: E2 0E 00 [13:55:45]MH_I2C_Read... [13:55:45]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AC [13:55:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:55:45]wFMCommunicate OK [13:55:45]SAM_PROTO_GetShiftState done [13:55:45]FM_GetShiftState done [13:55:45]opened in 1729556094 [13:55:45]opened+sec_in_day 1729642494 [13:55:45]quantity*price = 150056 [13:55:45]sum+1 = 150058 [13:55:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 326 22.10.2024 13:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188297 ФПД: 114216032887238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188297&fm=114216032887238&tin=02508201610067®Number=0000000000100030&sum=150000 [13:55:46]StoreToDocumentArchive [13:55:46]shift 461 fd 188297 [13:55:46]save to /storage/0461/doc_00188297 [13:55:46]save last doc name /storage/0461/doc_00188297 to /storage/kkm_last_doc_name [13:55:46]save OK [13:55:46]Clear old archive folders... [13:55:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:46]tlvbuf is 0148FDD0 [13:55:46]SAM_PROTO_ClearQueue [13:55:46]wFMCommunicate request_size=4 [13:55:46]MH_SAM_APDU [13:55:46]CAPDU: 80 09 00 00 [13:55:46]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [13:55:46]Write i2c OK [13:55:46]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [13:55:47]RAPDU: 90 00 [13:55:47]wFMCommunicate OK [13:55:47]SAM_PROTO_ClearQueue done [13:55:47]KKMCreateOFDPacket [13:55:47]OFDProtocolAddRootSTLVToBuf [13:55:47]FM_MakeSignedData [13:55:47]FM_MakeSignedData [13:55:47]SAM_PROTO_SignData [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 0D 01 02 [13:55:47]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [13:55:47]RAPDU: 90 00 [13:55:47]wFMCommunicate OK [13:55:47]wFMCommunicate request_size=255 [13:55:47]MH_SAM_APDU [13: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E2 AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DF 02 00 35 04 06 00 67 [13:55:47]Write to MH i2c: E2 02 01 45 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E2 AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DF 02 00 35 04 06 00 67 00 00 71 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [13:55:47]RAPDU: 90 00 [13:55:47]wFMCommunicate OK [13:55:47]wFMCommunicate request_size=10 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 0D 02 02 05 E0 FE 11 61 C6 [13:55:47]Write to MH i2c: E2 0D 00 46 04 80 0D 02 02 05 00 E0 FE 11 61 C6 00 00 E4 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [13:55:47]RAPDU: 90 00 [13:55:47]wFMCommunicate OK [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 0D 03 02 [13:55:47]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 0B 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 0B 00 47 04 00 2F 55 82 6E D0 F2 60 B9 90 00 16 [13:55:47]RAPDU: 2F 55 82 6E D0 F2 60 B9 90 00 [13:55:47]wFMCommunicate OK [13:55:47]SAM_PROTO_SignData done [13:55:47]FM_MakeSignedData done [13:55:47]CreateOFDProtocolMessage [13:55:47]wFMCommunicate request_size=4 [13:55:47]MH_SAM_APDU [13:55:47]CAPDU: 80 11 00 00 [13:55:47]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:47]Read from MH i2c: E2 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 17 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [13:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:47]wFMCommunicate OK [13:55:47]CreateOFDProtocolMessage done [13:55:47]OFDSenderStorePacket 188297 [13:55:47]StoreOFDPacket docnum=188297 [13:55:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 01 F6 07 01 99 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E2 AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DF 02 00 35 04 06 00 67 E0 FE 11 61 C6 2F 55 82 6E D0 F2 60 B9 [13:55:47]CheckFolder [13:55:47]dirname=/storage/ofd_packets [13:55:47]CheckFolder done [13:55:47]ProducePacketName [13:55:47]name=ofd_packets/00188297 [13:55:47]NVStorageSaveData ofd_packets/00188297 [13:55:47]File name is /storage/ofd_packets/00188297 [13:55:47]Write 301 bytes [13:55:47]NVStorageSaveData done [13:55:47]OFDSenderStorePacket done [13:55:47]KKMCreateOFDPacket done [13:55:47]NVStorageSaveData kkm_last_timestamp [13:55:47]File name is /storage/kkm_last_timestamp [13:55:47]Write 4 bytes [13:55:47]NVStorageSaveData done [13:55:47]ExternCall_PrintAddStr [13:55:47]wPrintStart [13:55:47]Write to MH i2c: 01 00 00 49 04 4D [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: 01 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: 01 07 00 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [13:55:47]RasterBufferAndPrint [13:55:47]line Счет N : (1)210353 [13:55:47]line ИНН: 02508201610067 [13:55:47]line Контрольно-Кассовый Чек [13:55:47]line ПРОДАЖА [13:55:47]line ТРК (МРК, ГНК) : 32 [13:55:47]line Товар: 2710124130 [13:55:47]line Аи-92-К-3 [13:55:47]line 22.430 * 66.90 [13:55:47]line = 1500.57 [13:55:47]line НДС 12% НСП 1% [13:55:47]line > о реализуемом товаре [13:55:47]line ОКРУГЛЕНИЕ: -0.57 [13:55:47]line ИТОГО: 1500.00 [13:55:47]line Внесено: 1500.00 [13:55:47]line СДАЧА: 0.00 [13:55:47]line НСП 1% : 13.28 [13:55:47]line НДС 12% : 159.35 [13:55:47]line Наличными: 1500.00 [13:55:47]line Безнал.: 0.00 [13:55:47]line Место: АЗС № 86 "Партнер Нефть" [13:55:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:55:47]line СНО: Общий режим [13:55:47]line Чек 326 22.10.2024 13:55 [13:55:47]line Смена: 461 ФФД: 1.0 [13:55:47]line ЗНМ: 0300000155 [13:55:47]line РНМ: 0000000000100030 [13:55:47]line Версия ККМ: 001 [13:55:47]line ФМ: 0000000000965340 [13:55:47]line ФД: 188297 [13:55:47]line ФПД: 114216032887238 [13:55:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135546&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188297&fm=114216032887238&tin=02508201610067®Number=0000000000100030&sum=150000 [13:55:47]written 0, free lines is 4095 [13:55:47]OFD Sender: Processing packet 188297 [packets to send 1062, broken 1061] [13:55:47]ProducePacketName [13:55:47]name=ofd_packets/00188297 [13:55:47]OFD Sender: To server: pG, [13:55:47]CommunicateWithHost lk.salyk.kg:30040 [13:55:47]ConnectInit lk.salyk.kg [13:55:47]Write to MH i2c: 01 00 00 74 04 78 [13:55:47]Write i2c OK [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: 01 [13:55:47]MH_I2C_Read... [13:55:47]Read from MH i2c: 01 07 00 [13:55:47]MH_I2C_Read... [13:55:48]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 66 0C F1 [13:55:48]RasterBufferAndPrint [13:55:48]line [13:55:48]line [13:55:48]line [13:55:48]line [13:55:48]line [13:55:48]written 0, free lines is 3177 [13:55:48]MH_Cut [13:55:48]Write to MH i2c: D1 01 00 7B 04 01 51 [13:55:48]Write i2c OK [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: D1 [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: D1 01 00 [13:55:48]MH_I2C_Read... [13:55:48]Read from MH i2c: D1 01 00 7B 04 00 50 [13:55:48]Write to MH i2c: 01 00 00 7C 04 80 [13:55:48]Write i2c OK [13:55:48]MH_I2C_Read... [13:55:48]Connected sock=10 [13:55:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 01 F6 07 01 99 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 46 01 00 00 F4 03 04 00 E2 AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DF 02 00 35 04 06 00 67 E0 FE 11 61 C6 2F 55 82 6E D0 F2 60 B9 [13:55:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 75 FA 47 00 E2 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 DF 02 00 F4 03 04 00 D0 58 17 67 B6 04 01 00 00 F0 3C 21 E2 C6 57 37 09 [13:55:48]CommunicateWithHost err = 0 [13:55:48]CheckOFDResponse [13:55:48]1017 (14) - 77093643461234 [13:55:48]1041 (16) - 0000000000965340 [13:55:48]1040 (4) - 188297 [13:55:48]1012 (4) - 22.10.2024 07:48 [13:55:48]1206 (1) - 0 [13:55:48]OFD Sender: Remove packet 188297 [13:55:48]ProducePacketName [13:55:48]name=ofd_packets/00188297 [13:55:48]NVStorageDeleteData [13:55:48]OFD Sender: No OFD packet to send [13:55:49]*** Cut start [13:55:49]*** Partial cut [13:55:49]*** CUTSNS_PIN = 1 [13:55:49]*** CUTSNS_PIN = 0 [13:55:49]*** Brake cut motor [13:55:49]Read from MH i2c: 01 [13:55:49]MH_I2C_Read... [13:55:49]*** Stop cut motor [13:55:49]*** Cut end [13:55:49]Read from MH i2c: 01 07 00 [13:55:49]MH_I2C_Read... [13:55:49]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [13:55:49]process_action close_receipt done [13:55:49]requested_data is exist [13:55:49]produce_requested_data [13:55:49]requested_item fm.sn is exist - process it [13:55:49]wFMCommunicate request_size=4 [13:55:49]MH_SAM_APDU [13:55:49]CAPDU: 80 11 00 00 [13:55:49]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [13:55:49]Write i2c OK [13:55:49]MH_I2C_Read... [13:55:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:49]Read from MH i2c: E2 [13:55:49]MH_I2C_Read... [13:55:49]Read from MH i2c: E2 17 00 [13:55:49]MH_I2C_Read... [13:55:49]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [13:55:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:49]wFMCommunicate OK [13:55:49]requested_item fd.num is exist - process it [13:55:49]SAM_PROTO_GetFieldsCounters [13:55:49]wFMCommunicate request_size=4 [13:55:49]MH_SAM_APDU [13:55:49]CAPDU: 80 13 00 00 [13:55:49]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [13:55:49]Write i2c OK [13:55:49]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 62 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [13:55:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 46 01 00 00 5E 04 04 00 46 01 00 00 57 04 04 00 47 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:50]wFMCommunicate OK [13:55:50]SAM_PROTO_GetFieldsCounters done [13:55:50]requested_item shift.num is exist - process it [13:55:50]requested_item shift.opened is exist - process it [13:55:50]req_shift_opened [13:55:50]FM_GetShiftState [13:55:50]SAM_PROTO_GetShiftState [13:55:50]wFMCommunicate request_size=4 [13:55:50]MH_SAM_APDU [13:55:50]CAPDU: 80 13 01 00 [13:55:50]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [13:55:50]Write i2c OK [13:55:50]MH_I2C_Read... [13:55:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:50]Read from MH i2c: E2 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 0E 00 [13:55:50]MH_I2C_Read... [13:55:50]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F5 [13:55:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:55:50]wFMCommunicate OK [13:55:50]SAM_PROTO_GetShiftState done [13:55:50]FM_GetShiftState done [13:55:50]req_shift_opened done [13:55:50]requested_item shift.open_date is exist - process it [13:55:50]req_shift_open_date [13:55:50]req_shift_open_date done [13:55:50]produce_requested_data done [13:55:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188297,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:55:50]process_action_free close_receipt [13:55:50]json_value_free [13:55:50]json_value_free done [13:55:50]process_json_proto returns [13:55:50]Send response to host [13:55:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188297,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:55:50]free response buf [13:55:50]execute_script done [13:55:50]execute_script returns [13:55:50]free content buf [13:55:50]Sock 9.Close socket [13:55:50]Sock 9.Thread stoped [13:55:53]accept exits with 7 [13:55:53]New connection [13:55:53]New thread 3067161956 created [13:55:53]Thread 3067305316 joined [13:55:53]Waiting for new connection... [13:55:53] Sock 7.Parse request [13:55:53]Sock 7.Check first char [13:55:53]Sock 7.First char is OK [13:55:53]request: POST /json_proto HTTP/1.0 [13:55:53]Method: POST [13:55:53]URL: /json_proto [13:55:53]Method is POST - this is cgi request [13:55:53]url: /json_proto [13:55:53]query_string will be loaded in cgi processing [13:55:53]execute_cgi json_proto POST (null) [13:55:53]execute_cgi path=json_proto method=POST [13:55:53]POST find Content-Length [13:55:53]Host: 172.17.42.131:8080 [13:55:53]Content-Length: 678 [13:55:53]Content-Type: application/json [13:55:53] [13:55:53]POST finish read [13:55:53]Found Content-Length = 678 [13:55:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:53]execute_script... [13:55: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)210354", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:55:53]POST & json_proto [13:55:53]process_json_proto [13:55:53]json parsed OK: [13:55:53]protocol is kg_v1.0 [13:55:53]action value=close_receipt [13:55:53]process_action close_receipt [13:55:53]cmd_close_receipt [13:55:53]MH_GetDate [13:55:53]Write to MH i2c: F0 00 00 80 04 73 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: F0 09 00 80 04 00 EA AE 17 67 A0 18 CA 66 7A [13:55:53]GetLastDocTimeStamp 1729605346 [13:55:53]current date 1729605354 [13:55:53]FM_GetShiftState [13:55:53]SAM_PROTO_GetShiftState [13:55:53]wFMCommunicate request_size=4 [13:55:53]MH_SAM_APDU [13:55:53]CAPDU: 80 13 01 00 [13:55:53]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [13:55:53]Write i2c OK [13:55:53]MH_I2C_Read... [13:55:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:53]Read from MH i2c: E2 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 [13:55:53]MH_I2C_Read... [13:55:53]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F7 [13:55:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:55:53]wFMCommunicate OK [13:55:53]SAM_PROTO_GetShiftState done [13:55:53]FM_GetShiftState done [13:55:53]opened in 1729556094 [13:55:53]opened+sec_in_day 1729642494 [13:55:53]quantity*price = 70044 [13:55:53]sum+1 = 70045 [13:55:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 327 22.10.2024 13:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188298 ФПД: 206984294943503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188298&fm=206984294943503&tin=02508201610067®Number=0000000000100030&sum=70000 [13:55:54]StoreToDocumentArchive [13:55:54]shift 461 fd 188298 [13:55:54]save to /storage/0461/doc_00188298 [13:55:54]save last doc name /storage/0461/doc_00188298 to /storage/kkm_last_doc_name [13:55:54]save OK [13:55:54]Clear old archive folders... [13:55:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:55:54]tlvbuf is 0146C4A0 [13:55:54]SAM_PROTO_ClearQueue [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 09 00 00 [13:55:54]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]SAM_PROTO_ClearQueue done [13:55:54]KKMCreateOFDPacket [13:55:54]OFDProtocolAddRootSTLVToBuf [13:55:54]FM_MakeSignedData [13:55:54]FM_MakeSignedData [13:55:54]SAM_PROTO_SignData [13:55:54]wFMCommunicate request_size=4 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 01 02 [13:55:54]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=255 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 EA AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DF 02 00 35 04 06 00 BC [13:55:54]Write to MH i2c: E2 02 01 90 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 EA AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DF 02 00 35 04 06 00 BC 00 00 E2 [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:54]Read from MH i2c: E2 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 [13:55:54]MH_I2C_Read... [13:55:54]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [13:55:54]RAPDU: 90 00 [13:55:54]wFMCommunicate OK [13:55:54]wFMCommunicate request_size=10 [13:55:54]MH_SAM_APDU [13:55:54]CAPDU: 80 0D 02 02 05 40 49 5F CB 0F [13:55:54]Write to MH i2c: E2 0D 00 91 04 80 0D 02 02 05 00 40 49 5F CB 0F 00 00 DB [13:55:54]Write i2c OK [13:55:54]MH_I2C_Read... [13:55:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [13:55:55]RAPDU: 90 00 [13:55:55]wFMCommunicate OK [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 0D 03 02 [13:55:55]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0B 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 0B 00 92 04 00 A2 4C 04 02 3F F6 ED 02 90 00 2A [13:55:55]RAPDU: A2 4C 04 02 3F F6 ED 02 90 00 [13:55:55]wFMCommunicate OK [13:55:55]SAM_PROTO_SignData done [13:55:55]FM_MakeSignedData done [13:55:55]CreateOFDProtocolMessage [13:55:55]wFMCommunicate request_size=4 [13:55:55]MH_SAM_APDU [13:55:55]CAPDU: 80 11 00 00 [13:55:55]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 [13:55:55]MH_I2C_Read... [13:55:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:55]Read from MH i2c: E2 17 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [13:55:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:55]wFMCommunicate OK [13:55:55]CreateOFDProtocolMessage done [13:55:55]OFDSenderStorePacket 188298 [13:55:55]StoreOFDPacket docnum=188298 [13:55:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A DA 07 01 74 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 EA AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DF 02 00 35 04 06 00 BC 40 49 5F CB 0F A2 4C 04 02 3F F6 ED 02 [13:55:55]CheckFolder [13:55:55]dirname=/storage/ofd_packets [13:55:55]CheckFolder done [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00188298 [13:55:55]NVStorageSaveData ofd_packets/00188298 [13:55:55]File name is /storage/ofd_packets/00188298 [13:55:55]Write 301 bytes [13:55:55]NVStorageSaveData done [13:55:55]OFDSenderStorePacket done [13:55:55]KKMCreateOFDPacket done [13:55:55]NVStorageSaveData kkm_last_timestamp [13:55:55]File name is /storage/kkm_last_timestamp [13:55:55]Write 4 bytes [13:55:55]NVStorageSaveData done [13:55:55]ExternCall_PrintAddStr [13:55:55]wPrintStart [13:55:55]Write to MH i2c: 01 00 00 94 04 98 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [13:55:55]RasterBufferAndPrint [13:55:55]line Счет N : (1)210354 [13:55:55]line ИНН: 02508201610067 [13:55:55]line Контрольно-Кассовый Чек [13:55:55]line ПРОДАЖА [13:55:55]line ТРК (МРК, ГНК) : 12 [13:55:55]line Товар: 2710124130 [13:55:55]line Аи-92-К-3 [13:55:55]line 10.470 * 66.90 [13:55:55]line = 700.44 [13:55:55]line НДС 12% НСП 1% [13:55:55]line > о реализуемом товаре [13:55:55]line ОКРУГЛЕНИЕ: -0.44 [13:55:55]line ИТОГО: 700.00 [13:55:55]line Внесено: 700.00 [13:55:55]line СДАЧА: 0.00 [13:55:55]line НСП 1% : 6.20 [13:55:55]line НДС 12% : 74.38 [13:55:55]line Наличными: 700.00 [13:55:55]line Безнал.: 0.00 [13:55:55]line Место: АЗС № 86 "Партнер Нефть" [13:55:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:55:55]line СНО: Общий режим [13:55:55]line Чек 327 22.10.2024 13:55 [13:55:55]line Смена: 461 ФФД: 1.0 [13:55:55]line ЗНМ: 0300000155 [13:55:55]line РНМ: 0000000000100030 [13:55:55]line Версия ККМ: 001 [13:55:55]line ФМ: 0000000000965340 [13:55:55]line ФД: 188298 [13:55:55]line ФПД: 206984294943503 [13:55:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135554&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188298&fm=206984294943503&tin=02508201610067®Number=0000000000100030&sum=70000 [13:55:55]written 0, free lines is 4095 [13:55:55]OFD Sender: Processing packet 188298 [packets to send 1062, broken 1061] [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00188298 [13:55:55]OFD Sender: To server: pG, [13:55:55]CommunicateWithHost lk.salyk.kg:30040 [13:55:55]ConnectInit lk.salyk.kg [13:55:55]Connected sock=10 [13:55:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6A DA 07 01 74 7C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 47 01 00 00 F4 03 04 00 EA AE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A DF 02 00 35 04 06 00 BC 40 49 5F CB 0F A2 4C 04 02 3F F6 ED 02 [13:55:55]Write to MH i2c: 01 00 00 BF 04 C3 [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 6B 0C 41 [13:55:55]RasterBufferAndPrint [13:55:55]line [13:55:55]line [13:55:55]line [13:55:55]line [13:55:55]line [13:55:55]written 0, free lines is 3184 [13:55:55]MH_Cut [13:55:55]Write to MH i2c: D1 01 00 C6 04 01 9C [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: D1 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: D1 01 00 [13:55:55]MH_I2C_Read... [13:55:55]Read from MH i2c: D1 01 00 C6 04 00 9B [13:55:55]Write to MH i2c: 01 00 00 C7 04 CB [13:55:55]Write i2c OK [13:55:55]MH_I2C_Read... [13:55:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 4A 47 00 89 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 39 36 35 33 34 30 10 04 04 00 8A DF 02 00 F4 03 04 00 D7 58 17 67 B6 04 01 00 00 27 6C 22 F7 C7 49 50 59 [13:55:55]CommunicateWithHost err = 0 [13:55:55]CheckOFDResponse [13:55:55]1017 (14) - 77093643461234 [13:55:55]1041 (16) - 0000000000965340 [13:55:55]1040 (4) - 188298 [13:55:55]1012 (4) - 22.10.2024 07:48 [13:55:55]1206 (1) - 0 [13:55:55]OFD Sender: Remove packet 188298 [13:55:55]ProducePacketName [13:55:55]name=ofd_packets/00188298 [13:55:55]NVStorageDeleteData [13:55:56]OFD Sender: No OFD packet to send [13:55:56]*** Cut start [13:55:56]*** Partial cut [13:55:56]*** CUTSNS_PIN = 1 [13:55:56]*** CUTSNS_PIN = 0 [13:55:57]*** Brake cut motor [13:55:57]Read from MH i2c: 01 [13:55:57]MH_I2C_Read... [13:55:57]*** Stop cut motor [13:55:57]*** Cut end [13:55:57]Read from MH i2c: 01 07 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [13:55:57]process_action close_receipt done [13:55:57]requested_data is exist [13:55:57]produce_requested_data [13:55:57]requested_item fm.sn is exist - process it [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 11 00 00 [13:55:57]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 17 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [13:55:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:55:57]wFMCommunicate OK [13:55:57]requested_item fd.num is exist - process it [13:55:57]SAM_PROTO_GetFieldsCounters [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 00 00 [13:55:57]Write to MH i2c: E2 08 00 C9 04 80 13 00 00 00 00 00 00 49 [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 62 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 62 00 C9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [13:55:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 47 01 00 00 5E 04 04 00 47 01 00 00 57 04 04 00 48 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetFieldsCounters done [13:55:57]requested_item shift.num is exist - process it [13:55:57]requested_item shift.opened is exist - process it [13:55:57]req_shift_opened [13:55:57]FM_GetShiftState [13:55:57]SAM_PROTO_GetShiftState [13:55:57]wFMCommunicate request_size=4 [13:55:57]MH_SAM_APDU [13:55:57]CAPDU: 80 13 01 00 [13:55:57]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [13:55:57]Write i2c OK [13:55:57]MH_I2C_Read... [13:55:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:55:57]Read from MH i2c: E2 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 [13:55:57]MH_I2C_Read... [13:55:57]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 40 [13:55:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:55:57]wFMCommunicate OK [13:55:57]SAM_PROTO_GetShiftState done [13:55:57]FM_GetShiftState done [13:55:57]req_shift_opened done [13:55:57]requested_item shift.open_date is exist - process it [13:55:57]req_shift_open_date [13:55:57]req_shift_open_date done [13:55:57]produce_requested_data done [13:55:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188298,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:55:57]process_action_free close_receipt [13:55:57]json_value_free [13:55:57]json_value_free done [13:55:57]process_json_proto returns [13:55:57]Send response to host [13:55:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188298,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:55:57]free response buf [13:55:57]execute_script done [13:55:57]execute_script returns [13:55:57]free content buf [13:55:57]Sock 7.Close socket [13:55:57]Sock 7.Thread stoped [13:56:01]OFD Sender: No OFD packet to send [13:56:06]OFD Sender: No OFD packet to send [13:56:11]OFD Sender: No OFD packet to send [13:56:16]OFD Sender: No OFD packet to send [13:56:21]OFD Sender: No OFD packet to send [13:56:25]accept exits with 9 [13:56:25]New connection [13:56:25]New thread 3067305316 created [13:56:25]Thread 3067161956 joined [13:56:25]Waiting for new connection... [13:56:25] Sock 9.Parse request [13:56:25]Sock 9.Check first char [13:56:25]Sock 9.First char is OK [13:56:25]request: POST /json_proto HTTP/1.0 [13:56:25]Method: POST [13:56:25]URL: /json_proto [13:56:25]Method is POST - this is cgi request [13:56:25]url: /json_proto [13:56:25]query_string will be loaded in cgi processing [13:56:25]execute_cgi json_proto POST (null) [13:56:25]execute_cgi path=json_proto method=POST [13:56:25]POST find Content-Length [13:56:25]Host: 172.17.42.131:8080 [13:56:25]Content-Length: 688 [13:56:25]Content-Type: application/json [13:56:25] [13:56:25]POST finish read [13:56:25]Found Content-Length = 688 [13:56:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:25]execute_script... [13:56: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)210352", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:56:25]POST & json_proto [13:56:25]process_json_proto [13:56:25]json parsed OK: [13:56:25]protocol is kg_v1.0 [13:56:25]action value=close_receipt [13:56:25]process_action close_receipt [13:56:25]cmd_close_receipt [13:56:25]MH_GetDate [13:56:25]Write to MH i2c: F0 00 00 CB 04 BE [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: F0 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: F0 09 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: F0 09 00 CB 04 00 0A AF 17 67 A0 18 CA 66 E6 [13:56:25]GetLastDocTimeStamp 1729605354 [13:56:25]current date 1729605386 [13:56:25]FM_GetShiftState [13:56:25]SAM_PROTO_GetShiftState [13:56:25]wFMCommunicate request_size=4 [13:56:25]MH_SAM_APDU [13:56:25]CAPDU: 80 13 01 00 [13:56:25]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [13:56:25]Write i2c OK [13:56:25]MH_I2C_Read... [13:56:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:25]Read from MH i2c: E2 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 0E 00 [13:56:25]MH_I2C_Read... [13:56:25]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 42 [13:56:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:56:25]wFMCommunicate OK [13:56:25]SAM_PROTO_GetShiftState done [13:56:25]FM_GetShiftState done [13:56:25]opened in 1729556094 [13:56:25]opened+sec_in_day 1729642494 [13:56:25]quantity*price = 300076 [13:56:25]sum+1 = 300077 [13:56:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 328 22.10.2024 13:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188299 ФПД: 230019470644834 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135626&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188299&fm=230019470644834&tin=02508201610067®Number=0000000000100030&sum=300000 [13:56:26]StoreToDocumentArchive [13:56:26]shift 461 fd 188299 [13:56:26]save to /storage/0461/doc_00188299 [13:56:26]save last doc name /storage/0461/doc_00188299 to /storage/kkm_last_doc_name [13:56:26]save OK [13:56:26]Clear old archive folders... [13:56:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:56:26]tlvbuf is 01475DE0 [13:56:26]SAM_PROTO_ClearQueue [13:56:26]wFMCommunicate request_size=4 [13:56:26]MH_SAM_APDU [13:56:26]CAPDU: 80 09 00 00 [13:56:26]Write to MH i2c: E2 08 00 D9 04 80 09 00 00 00 00 00 00 4F [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:56:26]Read from MH i2c: E2 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: E2 03 00 [13:56:26]MH_I2C_Read... [13:56:26]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [13:56:26]RAPDU: 90 00 [13:56:26]wFMCommunicate OK [13:56:26]SAM_PROTO_ClearQueue done [13:56:26]KKMCreateOFDPacket [13:56:26]OFDProtocolAddRootSTLVToBuf [13:56:26]FM_MakeSignedData [13:56:26]FM_MakeSignedData [13:56:26]SAM_PROTO_SignData [13:56:26]wFMCommunicate request_size=4 [13:56:26]MH_SAM_APDU [13:56:26]CAPDU: 80 0D 01 02 [13:56:26]Write to MH i2c: E2 08 00 DA 04 80 0D 01 02 00 00 00 00 57 [13:56:26]Write i2c OK [13:56:26]MH_I2C_Read... [13:56:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [13:56:27]RAPDU: 90 00 [13:56:27]wFMCommunicate OK [13:56:27]wFMCommunicate request_size=255 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0A AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DF 02 [13:56:27]Write to MH i2c: E2 02 01 DB 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0A AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DF 02 00 00 50 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [13:56:27]RAPDU: 90 00 [13:56:27]wFMCommunicate OK [13:56:27]wFMCommunicate request_size=16 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D1 33 94 D6 D6 62 [13:56:27]Write to MH i2c: E2 13 00 DC 04 80 0D 02 02 0B 00 00 35 04 06 00 D1 33 94 D6 D6 62 00 00 55 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [13:56:27]RAPDU: 90 00 [13:56:27]wFMCommunicate OK [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 0D 03 02 [13:56:27]Write to MH i2c: E2 08 00 DD 04 80 0D 03 02 00 00 00 00 5C [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0B 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 0B 00 DD 04 00 DA CE EA A9 3F 8D 16 8C 90 00 06 [13:56:27]RAPDU: DA CE EA A9 3F 8D 16 8C 90 00 [13:56:27]wFMCommunicate OK [13:56:27]SAM_PROTO_SignData done [13:56:27]FM_MakeSignedData done [13:56:27]CreateOFDProtocolMessage [13:56:27]wFMCommunicate request_size=4 [13:56:27]MH_SAM_APDU [13:56:27]CAPDU: 80 11 00 00 [13:56:27]Write to MH i2c: E2 08 00 DE 04 80 11 00 00 00 00 00 00 5C [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:27]Read from MH i2c: E2 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 17 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: E2 17 00 DE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [13:56:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:56:27]wFMCommunicate OK [13:56:27]CreateOFDProtocolMessage done [13:56:27]OFDSenderStorePacket 188299 [13:56:27]StoreOFDPacket docnum=188299 [13:56:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8C E3 0D 01 08 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0A AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DF 02 00 35 04 06 00 D1 33 94 D6 D6 62 DA CE EA A9 3F 8D 16 8C [13:56:27]CheckFolder [13:56:27]dirname=/storage/ofd_packets [13:56:27]CheckFolder done [13:56:27]ProducePacketName [13:56:27]name=ofd_packets/00188299 [13:56:27]NVStorageSaveData ofd_packets/00188299 [13:56:27]File name is /storage/ofd_packets/00188299 [13:56:27]Write 307 bytes [13:56:27]NVStorageSaveData done [13:56:27]OFDSenderStorePacket done [13:56:27]KKMCreateOFDPacket done [13:56:27]NVStorageSaveData kkm_last_timestamp [13:56:27]File name is /storage/kkm_last_timestamp [13:56:27]Write 4 bytes [13:56:27]NVStorageSaveData done [13:56:27]ExternCall_PrintAddStr [13:56:27]wPrintStart [13:56:27]Write to MH i2c: 01 00 00 DF 04 E3 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [13:56:27]RasterBufferAndPrint [13:56:27]line Счет N : (1)210352 [13:56:27]line ИНН: 02508201610067 [13:56:27]line Контрольно-Кассовый Чек [13:56:27]line ПРОДАЖА [13:56:27]line ТРК (МРК, ГНК) : 21 [13:56:27]line Товар: 2710194210 [13:56:27]line D-ENERGY ДТ-К-5 [13:56:27]line 38.870 * 77.20 [13:56:27]line = 3000.76 [13:56:27]line НДС 12% НСП 1% [13:56:27]line > о реализуемом товаре [13:56:27]line ОКРУГЛЕНИЕ: -0.76 [13:56:27]line ИТОГО: 3000.00 [13:56:27]line Внесено: 3000.00 [13:56:27]line СДАЧА: 0.00 [13:56:27]line НСП 1% : 26.55 [13:56:27]line НДС 12% : 318.66 [13:56:27]line Наличными: 3000.00 [13:56:27]line Безнал.: 0.00 [13:56:27]line Место: АЗС № 86 "Партнер Нефть" [13:56:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:56:27]line СНО: Общий режим [13:56:27]line Чек 328 22.10.2024 13:56 [13:56:27]line Смена: 461 ФФД: 1.0 [13:56:27]line ЗНМ: 0300000155 [13:56:27]line РНМ: 0000000000100030 [13:56:27]line Версия ККМ: 001 [13:56:27]line ФМ: 0000000000965340 [13:56:27]line ФД: 188299 [13:56:27]line ФПД: 230019470644834 [13:56:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135626&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188299&fm=230019470644834&tin=02508201610067®Number=0000000000100030&sum=300000 [13:56:27]OFD Sender: Processing packet 188299 [packets to send 1062, broken 1061] [13:56:27]ProducePacketName [13:56:27]name=ofd_packets/00188299 [13:56:27]OFD Sender: To server: pG, [13:56:27]CommunicateWithHost lk.salyk.kg:30040 [13:56:27]ConnectInit lk.salyk.kg [13:56:27]written 0, free lines is 4095 [13:56:27]Connected sock=10 [13:56:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8C E3 0D 01 08 C8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 01 00 00 F4 03 04 00 0A AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DF 02 00 35 04 06 00 D1 33 94 D6 D6 62 DA CE EA A9 3F 8D 16 8C [13:56:27]Write to MH i2c: 01 00 00 0A 05 0F [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 6C 0C 8E [13:56:27]RasterBufferAndPrint [13:56:27]line [13:56:27]line [13:56:27]line [13:56:27]line [13:56:27]line [13:56:27]written 0, free lines is 3183 [13:56:27]MH_Cut [13:56:27]Write to MH i2c: D1 01 00 11 05 01 E8 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: D1 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: D1 01 00 [13:56:27]MH_I2C_Read... [13:56:27]Read from MH i2c: D1 01 00 11 05 00 E7 [13:56:27]Write to MH i2c: 01 00 00 12 05 17 [13:56:27]Write i2c OK [13:56:27]MH_I2C_Read... [13:56:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B6 0F 47 00 BB F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B DF 02 00 F4 03 04 00 F7 58 17 67 B6 04 01 00 00 C1 36 68 12 27 3B EA B5 [13:56:28]CommunicateWithHost err = 0 [13:56:28]CheckOFDResponse [13:56:28]1017 (14) - 77093643461234 [13:56:28]1041 (16) - 0000000000965340 [13:56:28]1040 (4) - 188299 [13:56:28]1012 (4) - 22.10.2024 07:49 [13:56:28]1206 (1) - 0 [13:56:28]OFD Sender: Remove packet 188299 [13:56:28]ProducePacketName [13:56:28]name=ofd_packets/00188299 [13:56:28]NVStorageDeleteData [13:56:28]OFD Sender: No OFD packet to send [13:56:29]*** Cut start [13:56:29]*** Partial cut [13:56:29]*** CUTSNS_PIN = 1 [13:56:29]*** CUTSNS_PIN = 0 [13:56:29]*** Brake cut motor [13:56:29]Read from MH i2c: 01 [13:56:29]MH_I2C_Read... [13:56:29]*** Stop cut motor [13:56:29]*** Cut end [13:56:29]Read from MH i2c: 01 07 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [13:56:29]process_action close_receipt done [13:56:29]requested_data is exist [13:56:29]produce_requested_data [13:56:29]requested_item fm.sn is exist - process it [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 11 00 00 [13:56:29]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 17 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [13:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:56:29]wFMCommunicate OK [13:56:29]requested_item fd.num is exist - process it [13:56:29]SAM_PROTO_GetFieldsCounters [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 13 00 00 [13:56:29]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:56:29]Read from MH i2c: E2 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 62 00 [13:56:29]MH_I2C_Read... [13:56:29]Read from MH i2c: E2 62 00 14 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [13:56:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 48 01 00 00 5E 04 04 00 48 01 00 00 57 04 04 00 49 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:56:29]wFMCommunicate OK [13:56:29]SAM_PROTO_GetFieldsCounters done [13:56:29]requested_item shift.num is exist - process it [13:56:29]requested_item shift.opened is exist - process it [13:56:29]req_shift_opened [13:56:29]FM_GetShiftState [13:56:29]SAM_PROTO_GetShiftState [13:56:29]wFMCommunicate request_size=4 [13:56:29]MH_SAM_APDU [13:56:29]CAPDU: 80 13 01 00 [13:56:29]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [13:56:29]Write i2c OK [13:56:29]MH_I2C_Read... [13:56:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:56:30]Read from MH i2c: E2 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 0E 00 [13:56:30]MH_I2C_Read... [13:56:30]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8C [13:56:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:56:30]wFMCommunicate OK [13:56:30]SAM_PROTO_GetShiftState done [13:56:30]FM_GetShiftState done [13:56:30]req_shift_opened done [13:56:30]requested_item shift.open_date is exist - process it [13:56:30]req_shift_open_date [13:56:30]req_shift_open_date done [13:56:30]produce_requested_data done [13:56:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188299,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:56:30]process_action_free close_receipt [13:56:30]json_value_free [13:56:30]json_value_free done [13:56:30]process_json_proto returns [13:56:30]Send response to host [13:56:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188299,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:56:30]free response buf [13:56:30]execute_script done [13:56:30]execute_script returns [13:56:30]free content buf [13:56:30]Sock 9.Close socket [13:56:30]Sock 9.Thread stoped [13:56:33]OFD Sender: No OFD packet to send [13:56:38]OFD Sender: No OFD packet to send [13:56:43]OFD Sender: No OFD packet to send [13:56:48]OFD Sender: No OFD packet to send [13:56:53]OFD Sender: No OFD packet to send [13:56:58]OFD Sender: No OFD packet to send [13:57:03]OFD Sender: No OFD packet to send [13:57:08]OFD Sender: No OFD packet to send [13:57:13]OFD Sender: No OFD packet to send [13:57:18]OFD Sender: No OFD packet to send [13:57:23]OFD Sender: No OFD packet to send [13:57:28]OFD Sender: No OFD packet to send [13:57:33]OFD Sender: No OFD packet to send [13:57:38]OFD Sender: No OFD packet to send [13:57:43]OFD Sender: No OFD packet to send [13:57:48]OFD Sender: No OFD packet to send [13:57:53]OFD Sender: No OFD packet to send [13:57:58]OFD Sender: No OFD packet to send [13:58:03]OFD Sender: No OFD packet to send [13:58:07]accept exits with 7 [13:58:07]New connection [13:58:07]New thread 3067161956 created [13:58:07]Thread 3067305316 joined [13:58:07]Waiting for new connection... [13:58:07] Sock 7.Parse request [13:58:07]Sock 7.Check first char [13:58:07]Sock 7.First char is OK [13:58:07]request: POST /json_proto HTTP/1.0 [13:58:07]Method: POST [13:58:07]URL: /json_proto [13:58:07]Method is POST - this is cgi request [13:58:07]url: /json_proto [13:58:07]query_string will be loaded in cgi processing [13:58:07]execute_cgi json_proto POST (null) [13:58:07]execute_cgi path=json_proto method=POST [13:58:07]POST find Content-Length [13:58:07]Host: 172.17.42.131:8080 [13:58:07]Content-Length: 678 [13:58:07]Content-Type: application/json [13:58:07] [13:58:07]POST finish read [13:58:07]Found Content-Length = 678 [13:58:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:07]execute_script... [13:58: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)210355", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:58:07]POST & json_proto [13:58:07]process_json_proto [13:58:07]json parsed OK: [13:58:07]protocol is kg_v1.0 [13:58:07]action value=close_receipt [13:58:07]process_action close_receipt [13:58:07]cmd_close_receipt [13:58:07]MH_GetDate [13:58:07]Write to MH i2c: F0 00 00 16 05 0A [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 09 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: F0 09 00 16 05 00 70 AF 17 67 A0 18 CA 66 98 [13:58:07]GetLastDocTimeStamp 1729605386 [13:58:07]current date 1729605488 [13:58:07]FM_GetShiftState [13:58:07]SAM_PROTO_GetShiftState [13:58:07]wFMCommunicate request_size=4 [13:58:07]MH_SAM_APDU [13:58:07]CAPDU: 80 13 01 00 [13:58:07]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [13:58:07]Write i2c OK [13:58:07]MH_I2C_Read... [13:58:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:07]Read from MH i2c: E2 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0E 00 [13:58:07]MH_I2C_Read... [13:58:07]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8E [13:58:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:58:07]wFMCommunicate OK [13:58:07]SAM_PROTO_GetShiftState done [13:58:07]FM_GetShiftState done [13:58:07]opened in 1729556094 [13:58:07]opened+sec_in_day 1729642494 [13:58:07]quantity*price = 70044 [13:58:07]sum+1 = 70045 [13:58:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 329 22.10.2024 13:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188300 ФПД: 204133516271168 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188300&fm=204133516271168&tin=02508201610067®Number=0000000000100030&sum=70000 [13:58:08]StoreToDocumentArchive [13:58:08]shift 461 fd 188300 [13:58:08]save to /storage/0461/doc_00188300 [13:58:08]save last doc name /storage/0461/doc_00188300 to /storage/kkm_last_doc_name [13:58:08]save OK [13:58:08]Clear old archive folders... [13:58:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:58:08]tlvbuf is 0148B570 [13:58:08]SAM_PROTO_ClearQueue [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 09 00 00 [13:58:08]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]SAM_PROTO_ClearQueue done [13:58:08]KKMCreateOFDPacket [13:58:08]OFDProtocolAddRootSTLVToBuf [13:58:08]FM_MakeSignedData [13:58:08]FM_MakeSignedData [13:58:08]SAM_PROTO_SignData [13:58:08]wFMCommunicate request_size=4 [13:58:08]MH_SAM_APDU [13:58:08]CAPDU: 80 0D 01 02 [13:58:08]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:58:08]Read from MH i2c: E2 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 [13:58:08]MH_I2C_Read... [13:58:08]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [13:58:08]RAPDU: 90 00 [13:58:08]wFMCommunicate OK [13:58:08]wFMCommunicate request_size=255 [13:58:08]MH_SAM_APDU [13:58: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 70 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DF 02 00 35 04 06 00 B9 [13:58:08]Write to MH i2c: E2 02 01 26 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 70 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DF 02 00 35 04 06 00 B9 00 00 01 [13:58:08]Write i2c OK [13:58:08]MH_I2C_Read... [13:58:09]OFD Sender: No OFD packet to send [13:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]wFMCommunicate request_size=10 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 02 02 05 A8 89 B9 5E 40 [13:58:09]Write to MH i2c: E2 0D 00 27 05 80 0D 02 02 05 00 A8 89 B9 5E 40 00 00 38 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [13:58:09]RAPDU: 90 00 [13:58:09]wFMCommunicate OK [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 0D 03 02 [13:58:09]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0B 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 0B 00 28 05 00 4F C1 63 E5 64 DC 42 EF 90 00 72 [13:58:09]RAPDU: 4F C1 63 E5 64 DC 42 EF 90 00 [13:58:09]wFMCommunicate OK [13:58:09]SAM_PROTO_SignData done [13:58:09]FM_MakeSignedData done [13:58:09]CreateOFDProtocolMessage [13:58:09]wFMCommunicate request_size=4 [13:58:09]MH_SAM_APDU [13:58:09]CAPDU: 80 11 00 00 [13:58:09]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:09]Read from MH i2c: E2 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [13:58:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:58:09]wFMCommunicate OK [13:58:09]CreateOFDProtocolMessage done [13:58:09]OFDSenderStorePacket 188300 [13:58:09]StoreOFDPacket docnum=188300 [13:58:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E E4 07 01 E1 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 70 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DF 02 00 35 04 06 00 B9 A8 89 B9 5E 40 4F C1 63 E5 64 DC 42 EF [13:58:09]CheckFolder [13:58:09]dirname=/storage/ofd_packets [13:58:09]CheckFolder done [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00188300 [13:58:09]NVStorageSaveData ofd_packets/00188300 [13:58:09]File name is /storage/ofd_packets/00188300 [13:58:09]Write 301 bytes [13:58:09]NVStorageSaveData done [13:58:09]OFDSenderStorePacket done [13:58:09]KKMCreateOFDPacket done [13:58:09]NVStorageSaveData kkm_last_timestamp [13:58:09]File name is /storage/kkm_last_timestamp [13:58:09]Write 4 bytes [13:58:09]NVStorageSaveData done [13:58:09]ExternCall_PrintAddStr [13:58:09]wPrintStart [13:58:09]Write to MH i2c: 01 00 00 2A 05 2F [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [13:58:09]RasterBufferAndPrint [13:58:09]line Счет N : (1)210355 [13:58:09]line ИНН: 02508201610067 [13:58:09]line Контрольно-Кассовый Чек [13:58:09]line ПРОДАЖА [13:58:09]line ТРК (МРК, ГНК) : 42 [13:58:09]line Товар: 2710124130 [13:58:09]line Аи-92-К-3 [13:58:09]line 10.470 * 66.90 [13:58:09]line = 700.44 [13:58:09]line НДС 12% НСП 1% [13:58:09]line > о реализуемом товаре [13:58:09]line ОКРУГЛЕНИЕ: -0.44 [13:58:09]line ИТОГО: 700.00 [13:58:09]line Внесено: 700.00 [13:58:09]line СДАЧА: 0.00 [13:58:09]line НСП 1% : 6.20 [13:58:09]line НДС 12% : 74.38 [13:58:09]line Наличными: 700.00 [13:58:09]line Безнал.: 0.00 [13:58:09]line Место: АЗС № 86 "Партнер Нефть" [13:58:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:58:09]line СНО: Общий режим [13:58:09]line Чек 329 22.10.2024 13:58 [13:58:09]line Смена: 461 ФФД: 1.0 [13:58:09]line ЗНМ: 0300000155 [13:58:09]line РНМ: 0000000000100030 [13:58:09]line Версия ККМ: 001 [13:58:09]line ФМ: 0000000000965340 [13:58:09]line ФД: 188300 [13:58:09]line ФПД: 204133516271168 [13:58:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135808&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188300&fm=204133516271168&tin=02508201610067®Number=0000000000100030&sum=70000 [13:58:09]written 0, free lines is 4095 [13:58:09]OFD Sender: Processing packet 188300 [packets to send 1062, broken 1061] [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00188300 [13:58:09]OFD Sender: To server: pG, [13:58:09]CommunicateWithHost lk.salyk.kg:30040 [13:58:09]ConnectInit lk.salyk.kg [13:58:09]Connected sock=10 [13:58:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E E4 07 01 E1 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 49 01 00 00 F4 03 04 00 70 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DF 02 00 35 04 06 00 B9 A8 89 B9 5E 40 4F C1 63 E5 64 DC 42 EF [13:58:09]Write to MH i2c: 01 00 00 55 05 5A [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 65 0C D2 [13:58:09]RasterBufferAndPrint [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]line [13:58:09]written 0, free lines is 3176 [13:58:09]MH_Cut [13:58:09]Write to MH i2c: D1 01 00 5C 05 01 33 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 01 00 [13:58:09]MH_I2C_Read... [13:58:09]Read from MH i2c: D1 01 00 5C 05 00 32 [13:58:09]Write to MH i2c: 01 00 00 5D 05 62 [13:58:09]Write i2c OK [13:58:09]MH_I2C_Read... [13:58:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 49 F6 47 00 53 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C DF 02 00 F4 03 04 00 5D 59 17 67 B6 04 01 00 00 69 BF 87 88 BF 82 8B 54 [13:58:09]CommunicateWithHost err = 0 [13:58:09]CheckOFDResponse [13:58:09]1017 (14) - 77093643461234 [13:58:09]1041 (16) - 0000000000965340 [13:58:09]1040 (4) - 188300 [13:58:09]1012 (4) - 22.10.2024 07:50 [13:58:09]1206 (1) - 0 [13:58:09]OFD Sender: Remove packet 188300 [13:58:09]ProducePacketName [13:58:09]name=ofd_packets/00188300 [13:58:09]NVStorageDeleteData [13:58:10]OFD Sender: No OFD packet to send [13:58:10]*** Cut start [13:58:10]*** Partial cut [13:58:10]*** CUTSNS_PIN = 1 [13:58:10]*** CUTSNS_PIN = 0 [13:58:11]*** Brake cut motor [13:58:11]Read from MH i2c: 01 [13:58:11]MH_I2C_Read... [13:58:11]*** Stop cut motor [13:58:11]*** Cut end [13:58:11]Read from MH i2c: 01 07 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [13:58:11]process_action close_receipt done [13:58:11]requested_data is exist [13:58:11]produce_requested_data [13:58:11]requested_item fm.sn is exist - process it [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 11 00 00 [13:58:11]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [13:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:58:11]wFMCommunicate OK [13:58:11]requested_item fd.num is exist - process it [13:58:11]SAM_PROTO_GetFieldsCounters [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 00 00 [13:58:11]Write to MH i2c: E2 08 00 5F 05 80 13 00 00 00 00 00 00 E0 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 62 00 5F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [13:58:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 49 01 00 00 5E 04 04 00 49 01 00 00 57 04 04 00 4A 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetFieldsCounters done [13:58:11]requested_item shift.num is exist - process it [13:58:11]requested_item shift.opened is exist - process it [13:58:11]req_shift_opened [13:58:11]FM_GetShiftState [13:58:11]SAM_PROTO_GetShiftState [13:58:11]wFMCommunicate request_size=4 [13:58:11]MH_SAM_APDU [13:58:11]CAPDU: 80 13 01 00 [13:58:11]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [13:58:11]Write i2c OK [13:58:11]MH_I2C_Read... [13:58:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:58:11]Read from MH i2c: E2 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 [13:58:11]MH_I2C_Read... [13:58:11]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D7 [13:58:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:58:11]wFMCommunicate OK [13:58:11]SAM_PROTO_GetShiftState done [13:58:11]FM_GetShiftState done [13:58:11]req_shift_opened done [13:58:11]requested_item shift.open_date is exist - process it [13:58:11]req_shift_open_date [13:58:11]req_shift_open_date done [13:58:11]produce_requested_data done [13:58:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188300,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:58:11]process_action_free close_receipt [13:58:11]json_value_free [13:58:11]json_value_free done [13:58:11]process_json_proto returns [13:58:11]Send response to host [13:58:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188300,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:58:11]free response buf [13:58:11]execute_script done [13:58:11]execute_script returns [13:58:11]free content buf [13:58:11]Sock 7.Close socket [13:58:11]Sock 7.Thread stoped [13:58:15]OFD Sender: No OFD packet to send [13:58:20]OFD Sender: No OFD packet to send [13:58:25]OFD Sender: No OFD packet to send [13:58:30]OFD Sender: No OFD packet to send [13:58:35]OFD Sender: No OFD packet to send [13:58:40]OFD Sender: No OFD packet to send [13:58:45]OFD Sender: No OFD packet to send [13:58:50]OFD Sender: No OFD packet to send [13:58:55]OFD Sender: No OFD packet to send [13:59:00]OFD Sender: No OFD packet to send [13:59:05]OFD Sender: No OFD packet to send [13:59:10]OFD Sender: No OFD packet to send [13:59:15]OFD Sender: No OFD packet to send [13:59:20]accept exits with 9 [13:59:20]New connection [13:59:20]New thread 3067305316 created [13:59:20]Thread 3067161956 joined [13:59:20]Waiting for new connection... [13:59:20] Sock 9.Parse request [13:59:20]Sock 9.Check first char [13:59:20]Sock 9.First char is OK [13:59:20]request: POST /json_proto HTTP/1.0 [13:59:20]Method: POST [13:59:20]URL: /json_proto [13:59:20]Method is POST - this is cgi request [13:59:20]url: /json_proto [13:59:20]query_string will be loaded in cgi processing [13:59:20]execute_cgi json_proto POST (null) [13:59:20]execute_cgi path=json_proto method=POST [13:59:20]POST find Content-Length [13:59:20]Host: 172.17.42.131:8080 [13:59:20]Content-Length: 688 [13:59:20]Content-Type: application/json [13:59:20] [13:59:20]POST finish read [13:59:20]Found Content-Length = 688 [13:59:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [13:59:20]execute_script... [13:59:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210356", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [13:59:20]POST & json_proto [13:59:20]process_json_proto [13:59:20]json parsed OK: [13:59:20]protocol is kg_v1.0 [13:59:20]action value=close_receipt [13:59:20]process_action close_receipt [13:59:20]cmd_close_receipt [13:59:20]MH_GetDate [13:59:20]Write to MH i2c: F0 00 00 61 05 55 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: F0 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: F0 09 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: F0 09 00 61 05 00 B9 AF 17 67 A0 18 CA 66 2C [13:59:20]GetLastDocTimeStamp 1729605488 [13:59:20]current date 1729605561 [13:59:20]FM_GetShiftState [13:59:20]SAM_PROTO_GetShiftState [13:59:20]wFMCommunicate request_size=4 [13:59:20]MH_SAM_APDU [13:59:20]CAPDU: 80 13 01 00 [13:59:20]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [13:59:20]Write i2c OK [13:59:20]MH_I2C_Read... [13:59:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:20]Read from MH i2c: E2 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0E 00 [13:59:20]MH_I2C_Read... [13:59:20]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D9 [13:59:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:59:20]wFMCommunicate OK [13:59:20]SAM_PROTO_GetShiftState done [13:59:20]FM_GetShiftState done [13:59:20]opened in 1729556094 [13:59:20]opened+sec_in_day 1729642494 [13:59:20]quantity*price = 100051 [13:59:20]sum+1 = 100052 [13:59:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 330 22.10.2024 13:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188301 ФПД: 100224009490752 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135921&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188301&fm=100224009490752&tin=02508201610067®Number=0000000000100030&sum=100000 [13:59:21]StoreToDocumentArchive [13:59:21]shift 461 fd 188301 [13:59:21]save to /storage/0461/doc_00188301 [13:59:21]save last doc name /storage/0461/doc_00188301 to /storage/kkm_last_doc_name [13:59:21]save OK [13:59:21]Clear old archive folders... [13:59:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [13:59:21]tlvbuf is 0143DFE0 [13:59:21]SAM_PROTO_ClearQueue [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 09 00 00 [13:59:21]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:21]SAM_PROTO_ClearQueue done [13:59:21]KKMCreateOFDPacket [13:59:21]OFDProtocolAddRootSTLVToBuf [13:59:21]FM_MakeSignedData [13:59:21]FM_MakeSignedData [13:59:21]SAM_PROTO_SignData [13:59:21]wFMCommunicate request_size=4 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 0D 01 02 [13:59:21]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:21]wFMCommunicate request_size=255 [13:59:21]MH_SAM_APDU [13:59:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4A 01 00 00 F4 03 04 00 B9 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DF 02 [13:59:21]Write to MH i2c: E2 02 01 71 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4A 01 00 00 F4 03 04 00 B9 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DF 02 00 00 B8 [13:59:21]Write i2c OK [13:59:21]MH_I2C_Read... [13:59:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:21]Read from MH i2c: E2 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 [13:59:21]MH_I2C_Read... [13:59:21]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [13:59:21]RAPDU: 90 00 [13:59:21]wFMCommunicate OK [13:59:22]wFMCommunicate request_size=16 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5B 27 38 7B D1 40 [13:59:22]Write to MH i2c: E2 13 00 72 05 80 0D 02 02 0B 00 00 35 04 06 00 5B 27 38 7B D1 40 00 00 8C [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 03 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [13:59:22]RAPDU: 90 00 [13:59:22]wFMCommunicate OK [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 0D 03 02 [13:59:22]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0B 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 0B 00 73 05 00 FD 7B 23 22 5B F9 74 0D 90 00 86 [13:59:22]RAPDU: FD 7B 23 22 5B F9 74 0D 90 00 [13:59:22]wFMCommunicate OK [13:59:22]SAM_PROTO_SignData done [13:59:22]FM_MakeSignedData done [13:59:22]CreateOFDProtocolMessage [13:59:22]wFMCommunicate request_size=4 [13:59:22]MH_SAM_APDU [13:59:22]CAPDU: 80 11 00 00 [13:59:22]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:22]Read from MH i2c: E2 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 17 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [13:59:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:59:22]wFMCommunicate OK [13:59:22]CreateOFDProtocolMessage done [13:59:22]OFDSenderStorePacket 188301 [13:59:22]StoreOFDPacket docnum=188301 [13:59:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 41 09 0D 01 A6 45 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4A 01 00 00 F4 03 04 00 B9 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DF 02 00 35 04 06 00 5B 27 38 7B D1 40 FD 7B 23 22 5B F9 74 0D [13:59:22]CheckFolder [13:59:22]dirname=/storage/ofd_packets [13:59:22]CheckFolder done [13:59:22]ProducePacketName [13:59:22]name=ofd_packets/00188301 [13:59:22]NVStorageSaveData ofd_packets/00188301 [13:59:22]File name is /storage/ofd_packets/00188301 [13:59:22]Write 307 bytes [13:59:22]NVStorageSaveData done [13:59:22]OFDSenderStorePacket done [13:59:22]KKMCreateOFDPacket done [13:59:22]NVStorageSaveData kkm_last_timestamp [13:59:22]File name is /storage/kkm_last_timestamp [13:59:22]Write 4 bytes [13:59:22]NVStorageSaveData done [13:59:22]ExternCall_PrintAddStr [13:59:22]wPrintStart [13:59:22]Write to MH i2c: 01 00 00 75 05 7A [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [13:59:22]RasterBufferAndPrint [13:59:22]line Счет N : (1)210356 [13:59:22]line ИНН: 02508201610067 [13:59:22]line Контрольно-Кассовый Чек [13:59:22]line ПРОДАЖА [13:59:22]line ТРК (МРК, ГНК) : 21 [13:59:22]line Товар: 2710194210 [13:59:22]line D-ENERGY ДТ-К-5 [13:59:22]line 12.960 * 77.20 [13:59:22]line = 1000.51 [13:59:22]line НДС 12% НСП 1% [13:59:22]line > о реализуемом товаре [13:59:22]line ОКРУГЛЕНИЕ: -0.51 [13:59:22]line ИТОГО: 1000.00 [13:59:22]line Внесено: 1000.00 [13:59:22]line СДАЧА: 0.00 [13:59:22]line НСП 1% : 8.85 [13:59:22]line НДС 12% : 106.25 [13:59:22]line Наличными: 1000.00 [13:59:22]line Безнал.: 0.00 [13:59:22]line Место: АЗС № 86 "Партнер Нефть" [13:59:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [13:59:22]line СНО: Общий режим [13:59:22]line Чек 330 22.10.2024 13:59 [13:59:22]line Смена: 461 ФФД: 1.0 [13:59:22]line ЗНМ: 0300000155 [13:59:22]line РНМ: 0000000000100030 [13:59:22]line Версия ККМ: 001 [13:59:22]line ФМ: 0000000000965340 [13:59:22]line ФД: 188301 [13:59:22]line ФПД: 100224009490752 [13:59:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T135921&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188301&fm=100224009490752&tin=02508201610067®Number=0000000000100030&sum=100000 [13:59:22]written 0, free lines is 4095 [13:59:22]OFD Sender: Processing packet 188301 [packets to send 1062, broken 1061] [13:59:22]ProducePacketName [13:59:22]name=ofd_packets/00188301 [13:59:22]OFD Sender: To server: pG, [13:59:22]CommunicateWithHost lk.salyk.kg:30040 [13:59:22]ConnectInit lk.salyk.kg [13:59:22]Write to MH i2c: 01 00 00 A0 05 A5 [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 65 0C 1D [13:59:22]RasterBufferAndPrint [13:59:22]line [13:59:22]line [13:59:22]line [13:59:22]line [13:59:22]line [13:59:22]written 0, free lines is 3176 [13:59:22]MH_Cut [13:59:22]Write to MH i2c: D1 01 00 A7 05 01 7E [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: D1 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: D1 01 00 [13:59:22]MH_I2C_Read... [13:59:22]Read from MH i2c: D1 01 00 A7 05 00 7D [13:59:22]Write to MH i2c: 01 00 00 A8 05 AD [13:59:22]Write i2c OK [13:59:22]MH_I2C_Read... [13:59:22]Connected sock=10 [13:59:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 41 09 0D 01 A6 45 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 4A 01 00 00 F4 03 04 00 B9 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D DF 02 00 35 04 06 00 5B 27 38 7B D1 40 FD 7B 23 22 5B F9 74 0D [13:59:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C4 EB 47 00 E4 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 39 36 35 33 34 30 10 04 04 00 8D DF 02 00 F4 03 04 00 A6 59 17 67 B6 04 01 00 00 C1 92 7A 52 26 56 64 E9 [13:59:23]CommunicateWithHost err = 0 [13:59:23]CheckOFDResponse [13:59:23]1017 (14) - 77093643461234 [13:59:23]1041 (16) - 0000000000965340 [13:59:23]1040 (4) - 188301 [13:59:23]1012 (4) - 22.10.2024 07:52 [13:59:23]1206 (1) - 0 [13:59:23]OFD Sender: Remove packet 188301 [13:59:23]ProducePacketName [13:59:23]name=ofd_packets/00188301 [13:59:23]NVStorageDeleteData [13:59:23]OFD Sender: No OFD packet to send [13:59:23]*** Cut start [13:59:23]*** Partial cut [13:59:23]*** CUTSNS_PIN = 1 [13:59:23]*** CUTSNS_PIN = 0 [13:59:24]*** Brake cut motor [13:59:24]Read from MH i2c: 01 [13:59:24]MH_I2C_Read... [13:59:24]*** Stop cut motor [13:59:24]*** Cut end [13:59:24]Read from MH i2c: 01 07 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [13:59:24]process_action close_receipt done [13:59:24]requested_data is exist [13:59:24]produce_requested_data [13:59:24]requested_item fm.sn is exist - process it [13:59:24]wFMCommunicate request_size=4 [13:59:24]MH_SAM_APDU [13:59:24]CAPDU: 80 11 00 00 [13:59:24]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:59:24]Read from MH i2c: E2 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 17 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [13:59:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [13:59:24]wFMCommunicate OK [13:59:24]requested_item fd.num is exist - process it [13:59:24]SAM_PROTO_GetFieldsCounters [13:59:24]wFMCommunicate request_size=4 [13:59:24]MH_SAM_APDU [13:59:24]CAPDU: 80 13 00 00 [13:59:24]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:59:24]Read from MH i2c: E2 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 62 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 62 00 AA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [13:59:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4A 01 00 00 5E 04 04 00 4A 01 00 00 57 04 04 00 4B 01 00 00 19 04 04 00 00 00 00 00 90 00 [13:59:24]wFMCommunicate OK [13:59:24]SAM_PROTO_GetFieldsCounters done [13:59:24]requested_item shift.num is exist - process it [13:59:24]requested_item shift.opened is exist - process it [13:59:24]req_shift_opened [13:59:24]FM_GetShiftState [13:59:24]SAM_PROTO_GetShiftState [13:59:24]wFMCommunicate request_size=4 [13:59:24]MH_SAM_APDU [13:59:24]CAPDU: 80 13 01 00 [13:59:24]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [13:59:24]Write i2c OK [13:59:24]MH_I2C_Read... [13:59:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:59:24]Read from MH i2c: E2 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 0E 00 [13:59:24]MH_I2C_Read... [13:59:24]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 22 [13:59:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [13:59:24]wFMCommunicate OK [13:59:24]SAM_PROTO_GetShiftState done [13:59:24]FM_GetShiftState done [13:59:24]req_shift_opened done [13:59:24]requested_item shift.open_date is exist - process it [13:59:24]req_shift_open_date [13:59:24]req_shift_open_date done [13:59:24]produce_requested_data done [13:59:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188301,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [13:59:24]process_action_free close_receipt [13:59:24]json_value_free [13:59:24]json_value_free done [13:59:24]process_json_proto returns [13:59:24]Send response to host [13:59:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188301,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [13:59:24]free response buf [13:59:24]execute_script done [13:59:24]execute_script returns [13:59:24]free content buf [13:59:24]Sock 9.Close socket [13:59:24]Sock 9.Thread stoped [13:59:28]OFD Sender: No OFD packet to send [13:59:33]OFD Sender: No OFD packet to send [13:59:38]OFD Sender: No OFD packet to send [13:59:43]OFD Sender: No OFD packet to send [13:59:48]OFD Sender: No OFD packet to send [13:59:53]OFD Sender: No OFD packet to send [13:59:58]OFD Sender: No OFD packet to send [14:00:03]OFD Sender: No OFD packet to send [14:00:08]OFD Sender: No OFD packet to send [14:00:13]OFD Sender: No OFD packet to send [14:00:18]OFD Sender: No OFD packet to send [14:00:23]OFD Sender: No OFD packet to send [14:00:23]accept exits with 7 [14:00:23]New connection [14:00:23]New thread 3067161956 created [14:00:23]Thread 3067305316 joined [14:00:23]Waiting for new connection... [14:00:23] Sock 7.Parse request [14:00:23]Sock 7.Check first char [14:00:23]Sock 7.First char is OK [14:00:23]request: POST /json_proto HTTP/1.0 [14:00:23]Method: POST [14:00:23]URL: /json_proto [14:00:23]Method is POST - this is cgi request [14:00:23]url: /json_proto [14:00:23]query_string will be loaded in cgi processing [14:00:23]execute_cgi json_proto POST (null) [14:00:23]execute_cgi path=json_proto method=POST [14:00:23]POST find Content-Length [14:00:23]Host: 172.17.42.131:8080 [14:00:23]Content-Length: 679 [14:00:23]Content-Type: application/json [14:00:23] [14:00:23]POST finish read [14:00:23]Found Content-Length = 679 [14:00:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [14:00:23]execute_script... [14: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)210357", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [14:00:23]POST & json_proto [14:00:23]process_json_proto [14:00:23]json parsed OK: [14:00:23]protocol is kg_v1.0 [14:00:23]action value=close_receipt [14:00:23]process_action close_receipt [14:00:23]cmd_close_receipt [14:00:23]MH_GetDate [14:00:23]Write to MH i2c: F0 00 00 AC 05 A0 [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: F0 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: F0 09 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: F0 09 00 AC 05 00 F8 AF 17 67 A0 18 CA 66 B6 [14:00:23]GetLastDocTimeStamp 1729605561 [14:00:23]current date 1729605624 [14:00:23]FM_GetShiftState [14:00:23]SAM_PROTO_GetShiftState [14:00:23]wFMCommunicate request_size=4 [14:00:23]MH_SAM_APDU [14:00:23]CAPDU: 80 13 01 00 [14:00:23]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [14:00:23]Write i2c OK [14:00:23]MH_I2C_Read... [14:00:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:23]Read from MH i2c: E2 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 0E 00 [14:00:23]MH_I2C_Read... [14:00:23]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [14:00:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:00:23]wFMCommunicate OK [14:00:23]SAM_PROTO_GetShiftState done [14:00:23]FM_GetShiftState done [14:00:23]opened in 1729556094 [14:00:23]opened+sec_in_day 1729642494 [14:00:23]quantity*price = 200025 [14:00:23]sum+1 = 200026 [14:00:23]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 331 22.10.2024 14:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188302 ФПД: 164060117357505 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188302&fm=164060117357505&tin=02508201610067®Number=0000000000100030&sum=200000 [14:00:24]StoreToDocumentArchive [14:00:24]shift 461 fd 188302 [14:00:24]save to /storage/0461/doc_00188302 [14:00:24]save last doc name /storage/0461/doc_00188302 to /storage/kkm_last_doc_name [14:00:24]save OK [14:00:24]Clear old archive folders... [14:00:24]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:00:24]tlvbuf is 0147E6B0 [14:00:24]SAM_PROTO_ClearQueue [14:00:24]wFMCommunicate request_size=4 [14:00:24]MH_SAM_APDU [14:00:24]CAPDU: 80 09 00 00 [14:00:24]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [14:00:24]Write i2c OK [14:00:24]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [14:00:25]RAPDU: 90 00 [14:00:25]wFMCommunicate OK [14:00:25]SAM_PROTO_ClearQueue done [14:00:25]KKMCreateOFDPacket [14:00:25]OFDProtocolAddRootSTLVToBuf [14:00:25]FM_MakeSignedData [14:00:25]FM_MakeSignedData [14:00:25]SAM_PROTO_SignData [14:00:25]wFMCommunicate request_size=4 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 0D 01 02 [14:00:25]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [14:00:25]RAPDU: 90 00 [14:00:25]wFMCommunicate OK [14:00:25]wFMCommunicate request_size=255 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4B 01 00 00 F4 03 04 00 F8 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DF 02 00 35 04 06 00 95 36 39 04 [14:00:25]Write to MH i2c: E2 02 01 BC 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 32 31 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 4B 01 00 00 F4 03 04 00 F8 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DF 02 00 35 04 06 00 95 36 39 04 00 00 48 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [14:00:25]RAPDU: 90 00 [14:00:25]wFMCommunicate OK [14:00:25]wFMCommunicate request_size=7 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 0D 02 02 02 53 C1 [14:00:25]Write to MH i2c: E2 0A 00 BD 05 80 0D 02 02 02 00 53 C1 00 00 54 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [14:00:25]RAPDU: 90 00 [14:00:25]wFMCommunicate OK [14:00:25]wFMCommunicate request_size=4 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 0D 03 02 [14:00:25]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 0B 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 0B 00 BE 05 00 10 BD 80 A6 A5 A8 27 F1 90 00 97 [14:00:25]RAPDU: 10 BD 80 A6 A5 A8 27 F1 90 00 [14:00:25]wFMCommunicate OK [14:00:25]SAM_PROTO_SignData done [14:00:25]FM_MakeSignedData done [14:00:25]CreateOFDProtocolMessage [14:00:25]wFMCommunicate request_size=4 [14:00:25]MH_SAM_APDU [14:00:25]CAPDU: 80 11 00 00 [14:00:25]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:25]Read from MH i2c: E2 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 17 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [14:00:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:25]wFMCommunicate OK [14:00:25]CreateOFDProtocolMessage done [14:00:25]OFDSenderStorePacket 188302 [14:00:25]StoreOFDPacket docnum=188302 [14:00:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D6 E1 04 01 CD 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4B 01 00 00 F4 03 04 00 F8 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DF 02 00 35 04 06 00 95 36 39 04 53 C1 10 BD 80 A6 A5 A8 27 F1 [14:00:25]CheckFolder [14:00:25]dirname=/storage/ofd_packets [14:00:25]CheckFolder done [14:00:25]ProducePacketName [14:00:25]name=ofd_packets/00188302 [14:00:25]NVStorageSaveData ofd_packets/00188302 [14:00:25]File name is /storage/ofd_packets/00188302 [14:00:25]Write 298 bytes [14:00:25]NVStorageSaveData done [14:00:25]OFDSenderStorePacket done [14:00:25]KKMCreateOFDPacket done [14:00:25]NVStorageSaveData kkm_last_timestamp [14:00:25]File name is /storage/kkm_last_timestamp [14:00:25]Write 4 bytes [14:00:25]NVStorageSaveData done [14:00:25]ExternCall_PrintAddStr [14:00:25]wPrintStart [14:00:25]Write to MH i2c: 01 00 00 C0 05 C5 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: 01 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: 01 07 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [14:00:25]RasterBufferAndPrint [14:00:25]line Счет N : (1)210357 [14:00:25]line ИНН: 02508201610067 [14:00:25]line Контрольно-Кассовый Чек [14:00:25]line ПРОДАЖА [14:00:25]line ТРК (МРК, ГНК) : 51 [14:00:25]line Товар: 2710194210 [14:00:25]line ДТ-К-5 [14:00:25]line 26.250 * 76.20 [14:00:25]line = 2000.25 [14:00:25]line НДС 12% НСП 1% [14:00:25]line > о реализуемом товаре [14:00:25]line ОКРУГЛЕНИЕ: -0.25 [14:00:25]line ИТОГО: 2000.00 [14:00:25]line Внесено: 2000.00 [14:00:25]line СДАЧА: 0.00 [14:00:25]line НСП 1% : 17.70 [14:00:25]line НДС 12% : 212.42 [14:00:25]line Наличными: 2000.00 [14:00:25]line Безнал.: 0.00 [14:00:25]line Место: АЗС № 86 "Партнер Нефть" [14:00:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:00:25]line СНО: Общий режим [14:00:25]line Чек 331 22.10.2024 14:00 [14:00:25]line Смена: 461 ФФД: 1.0 [14:00:25]line ЗНМ: 0300000155 [14:00:25]line РНМ: 0000000000100030 [14:00:25]line Версия ККМ: 001 [14:00:25]line ФМ: 0000000000965340 [14:00:25]line ФД: 188302 [14:00:25]line ФПД: 164060117357505 [14:00:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140024&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188302&fm=164060117357505&tin=02508201610067®Number=0000000000100030&sum=200000 [14:00:25]written 0, free lines is 4095 [14:00:25]OFD Sender: Processing packet 188302 [packets to send 1062, broken 1061] [14:00:25]ProducePacketName [14:00:25]name=ofd_packets/00188302 [14:00:25]OFD Sender: To server: pG, [14:00:25]CommunicateWithHost lk.salyk.kg:30040 [14:00:25]ConnectInit lk.salyk.kg [14:00:25]Connected sock=11 [14:00:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D6 E1 04 01 CD 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 4B 01 00 00 F4 03 04 00 F8 AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E DF 02 00 35 04 06 00 95 36 39 04 53 C1 10 BD 80 A6 A5 A8 27 F1 [14:00:25]Write to MH i2c: 01 00 00 EB 05 F0 [14:00:25]Write i2c OK [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: 01 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: 01 07 00 [14:00:25]MH_I2C_Read... [14:00:25]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 66 0C 69 [14:00:25]RasterBufferAndPrint [14:00:25]line [14:00:25]line [14:00:25]line [14:00:25]line [14:00:25]line [14:00:25]written 0, free lines is 3177 [14:00:26]MH_Cut [14:00:26]Write to MH i2c: D1 01 00 F2 05 01 C9 [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: D1 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: D1 01 00 [14:00:26]MH_I2C_Read... [14:00:26]Read from MH i2c: D1 01 00 F2 05 00 C8 [14:00:26]Write to MH i2c: 01 00 00 F3 05 F8 [14:00:26]Write i2c OK [14:00:26]MH_I2C_Read... [14:00:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 99 8F 47 00 62 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 39 36 35 33 34 30 10 04 04 00 8E DF 02 00 F4 03 04 00 E5 59 17 67 B6 04 01 00 00 5F 7F 81 AE DC 90 E3 87 [14:00:26]CommunicateWithHost err = 0 [14:00:26]CheckOFDResponse [14:00:26]1017 (14) - 77093643461234 [14:00:26]1041 (16) - 0000000000965340 [14:00:26]1040 (4) - 188302 [14:00:26]1012 (4) - 22.10.2024 07:53 [14:00:26]1206 (1) - 0 [14:00:26]OFD Sender: Remove packet 188302 [14:00:26]ProducePacketName [14:00:26]name=ofd_packets/00188302 [14:00:26]NVStorageDeleteData [14:00:26]OFD Sender: No OFD packet to send [14:00:27]*** Cut start [14:00:27]*** Partial cut [14:00:27]*** CUTSNS_PIN = 1 [14:00:27]*** CUTSNS_PIN = 0 [14:00:27]*** Brake cut motor [14:00:27]Read from MH i2c: 01 [14:00:27]MH_I2C_Read... [14:00:27]*** Stop cut motor [14:00:27]*** Cut end [14:00:27]Read from MH i2c: 01 07 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [14:00:27]process_action close_receipt done [14:00:27]requested_data is exist [14:00:27]produce_requested_data [14:00:27]requested_item fm.sn is exist - process it [14:00:27]wFMCommunicate request_size=4 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 11 00 00 [14:00:27]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 17 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [14:00:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:27]wFMCommunicate OK [14:00:27]requested_item fd.num is exist - process it [14:00:27]SAM_PROTO_GetFieldsCounters [14:00:27]wFMCommunicate request_size=4 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 13 00 00 [14:00:27]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:27]Read from MH i2c: E2 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 62 00 [14:00:27]MH_I2C_Read... [14:00:27]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:00:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4B 01 00 00 5E 04 04 00 4B 01 00 00 57 04 04 00 4C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:27]wFMCommunicate OK [14:00:27]SAM_PROTO_GetFieldsCounters done [14:00:27]requested_item shift.num is exist - process it [14:00:27]requested_item shift.opened is exist - process it [14:00:27]req_shift_opened [14:00:27]FM_GetShiftState [14:00:27]SAM_PROTO_GetShiftState [14:00:27]wFMCommunicate request_size=4 [14:00:27]MH_SAM_APDU [14:00:27]CAPDU: 80 13 01 00 [14:00:27]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [14:00:27]Write i2c OK [14:00:27]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 0E 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6D [14:00:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:00:28]wFMCommunicate OK [14:00:28]SAM_PROTO_GetShiftState done [14:00:28]FM_GetShiftState done [14:00:28]req_shift_opened done [14:00:28]requested_item shift.open_date is exist - process it [14:00:28]req_shift_open_date [14:00:28]req_shift_open_date done [14:00:28]produce_requested_data done [14:00:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188302,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:00:28]process_action_free close_receipt [14:00:28]json_value_free [14:00:28]json_value_free done [14:00:28]process_json_proto returns [14:00:28]Send response to host [14:00:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188302,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:00:28]free response buf [14:00:28]execute_script done [14:00:28]execute_script returns [14:00:28]free content buf [14:00:28]Sock 7.Close socket [14:00:28]Sock 7.Thread stoped [14:00:28]accept exits with 9 [14:00:28]New connection [14:00:28]New thread 3067305316 created [14:00:28]Thread 3067161956 joined [14:00:28]Waiting for new connection... [14:00:28] Sock 9.Parse request [14:00:28]Sock 9.Check first char [14:00:28]Sock 9.First char is OK [14:00:28]request: POST /json_proto HTTP/1.0 [14:00:28]Method: POST [14:00:28]URL: /json_proto [14:00:28]Method is POST - this is cgi request [14:00:28]url: /json_proto [14:00:28]query_string will be loaded in cgi processing [14:00:28]execute_cgi json_proto POST (null) [14:00:28]execute_cgi path=json_proto method=POST [14:00:28]POST find Content-Length [14:00:28]Host: 172.17.42.131:8080 [14:00:28]Content-Length: 677 [14:00:28]Content-Type: application/json [14:00:28] [14:00:28]POST finish read [14:00:28]Found Content-Length = 677 [14:00:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:28]execute_script... [14:00: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)210359", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:00:28]POST & json_proto [14:00:28]process_json_proto [14:00:28]json parsed OK: [14:00:28]protocol is kg_v1.0 [14:00:28]action value=close_receipt [14:00:28]process_action close_receipt [14:00:28]cmd_close_receipt [14:00:28]MH_GetDate [14:00:28]Write to MH i2c: F0 00 00 F7 05 EB [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: F0 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: F0 09 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: F0 09 00 F7 05 00 FD AF 17 67 A0 18 CA 66 06 [14:00:28]GetLastDocTimeStamp 1729605624 [14:00:28]current date 1729605629 [14:00:28]FM_GetShiftState [14:00:28]SAM_PROTO_GetShiftState [14:00:28]wFMCommunicate request_size=4 [14:00:28]MH_SAM_APDU [14:00:28]CAPDU: 80 13 01 00 [14:00:28]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [14:00:28]Write i2c OK [14:00:28]MH_I2C_Read... [14:00:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:28]Read from MH i2c: E2 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 0E 00 [14:00:28]MH_I2C_Read... [14:00:28]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6F [14:00:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:00:28]wFMCommunicate OK [14:00:28]SAM_PROTO_GetShiftState done [14:00:28]FM_GetShiftState done [14:00:28]opened in 1729556094 [14:00:28]opened+sec_in_day 1729642494 [14:00:28]quantity*price = 60009 [14:00:28]sum+1 = 60010 [14:00:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 332 22.10.2024 14:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188303 ФПД: 99473410000887 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188303&fm=99473410000887&tin=02508201610067®Number=0000000000100030&sum=60000 [14:00:29]StoreToDocumentArchive [14:00:29]shift 461 fd 188303 [14:00:29]save to /storage/0461/doc_00188303 [14:00:29]save last doc name /storage/0461/doc_00188303 to /storage/kkm_last_doc_name [14:00:29]save OK [14:00:29]Clear old archive folders... [14:00:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:00:29]tlvbuf is 01449CA0 [14:00:29]SAM_PROTO_ClearQueue [14:00:29]wFMCommunicate request_size=4 [14:00:29]MH_SAM_APDU [14:00:29]CAPDU: 80 09 00 00 [14:00:29]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [14:00:29]Write i2c OK [14:00:29]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]SAM_PROTO_ClearQueue done [14:00:30]KKMCreateOFDPacket [14:00:30]OFDProtocolAddRootSTLVToBuf [14:00:30]FM_MakeSignedData [14:00:30]FM_MakeSignedData [14:00:30]SAM_PROTO_SignData [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 01 02 [14:00:30]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=255 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FD AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DF 02 00 35 04 06 00 5A [14:00:30]Write to MH i2c: E2 02 01 07 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FD AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DF 02 00 35 04 06 00 5A 00 00 E4 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=10 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 02 02 05 78 75 44 87 F7 [14:00:30]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 78 75 44 87 F7 00 00 41 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [14:00:30]RAPDU: 90 00 [14:00:30]wFMCommunicate OK [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 0D 03 02 [14:00:30]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 0B 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 0B 00 09 06 00 E1 53 FE 71 F2 BD BE E9 90 00 84 [14:00:30]RAPDU: E1 53 FE 71 F2 BD BE E9 90 00 [14:00:30]wFMCommunicate OK [14:00:30]SAM_PROTO_SignData done [14:00:30]FM_MakeSignedData done [14:00:30]CreateOFDProtocolMessage [14:00:30]wFMCommunicate request_size=4 [14:00:30]MH_SAM_APDU [14:00:30]CAPDU: 80 11 00 00 [14:00:30]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:30]Read from MH i2c: E2 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 17 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [14:00:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:30]wFMCommunicate OK [14:00:30]CreateOFDProtocolMessage done [14:00:30]OFDSenderStorePacket 188303 [14:00:30]StoreOFDPacket docnum=188303 [14:00:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 76 07 01 DC 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FD AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DF 02 00 35 04 06 00 5A 78 75 44 87 F7 E1 53 FE 71 F2 BD BE E9 [14:00:30]CheckFolder [14:00:30]dirname=/storage/ofd_packets [14:00:30]CheckFolder done [14:00:30]ProducePacketName [14:00:30]name=ofd_packets/00188303 [14:00:30]NVStorageSaveData ofd_packets/00188303 [14:00:30]File name is /storage/ofd_packets/00188303 [14:00:30]Write 301 bytes [14:00:30]NVStorageSaveData done [14:00:30]OFDSenderStorePacket done [14:00:30]KKMCreateOFDPacket done [14:00:30]NVStorageSaveData kkm_last_timestamp [14:00:30]File name is /storage/kkm_last_timestamp [14:00:30]Write 4 bytes [14:00:30]NVStorageSaveData done [14:00:30]ExternCall_PrintAddStr [14:00:30]wPrintStart [14:00:30]Write to MH i2c: 01 00 00 0B 06 11 [14:00:30]Write i2c OK [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 07 00 [14:00:30]MH_I2C_Read... [14:00:30]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [14:00:30]RasterBufferAndPrint [14:00:30]line Счет N : (1)210359 [14:00:30]line ИНН: 02508201610067 [14:00:30]line Контрольно-Кассовый Чек [14:00:30]line ПРОДАЖА [14:00:30]line ТРК (МРК, ГНК) : 32 [14:00:30]line Товар: 2710124130 [14:00:30]line Аи-92-К-3 [14:00:30]line 8.970 * 66.90 [14:00:30]line = 600.09 [14:00:30]line НДС 12% НСП 1% [14:00:30]line > о реализуемом товаре [14:00:30]line ОКРУГЛЕНИЕ: -0.09 [14:00:30]line ИТОГО: 600.00 [14:00:30]line Внесено: 600.00 [14:00:30]line СДАЧА: 0.00 [14:00:30]line НСП 1% : 5.31 [14:00:30]line НДС 12% : 63.73 [14:00:30]line Наличными: 600.00 [14:00:30]line Безнал.: 0.00 [14:00:30]line Место: АЗС № 86 "Партнер Нефть" [14:00:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:00:30]line СНО: Общий режим [14:00:30]line Чек 332 22.10.2024 14:00 [14:00:30]line Смена: 461 ФФД: 1.0 [14:00:30]line ЗНМ: 0300000155 [14:00:30]line РНМ: 0000000000100030 [14:00:30]line Версия ККМ: 001 [14:00:30]line ФМ: 0000000000965340 [14:00:30]line ФД: 188303 [14:00:30]line ФПД: 99473410000887 [14:00:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140029&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188303&fm=99473410000887&tin=02508201610067®Number=0000000000100030&sum=60000 [14:00:30]OFD Sender: Processing packet 188303 [packets to send 1062, broken 1061] [14:00:30]ProducePacketName [14:00:30]name=ofd_packets/00188303 [14:00:30]OFD Sender: To server: pG, [14:00:30]CommunicateWithHost lk.salyk.kg:30040 [14:00:30]ConnectInit lk.salyk.kg [14:00:30]written 0, free lines is 4095 [14:00:31]Write to MH i2c: 01 00 00 36 06 3C [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 6A 0C B9 [14:00:31]RasterBufferAndPrint [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]line [14:00:31]written 0, free lines is 3183 [14:00:31]MH_Cut [14:00:31]Write to MH i2c: D1 01 00 3D 06 01 15 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: D1 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: D1 01 00 [14:00:31]MH_I2C_Read... [14:00:31]Read from MH i2c: D1 01 00 3D 06 00 14 [14:00:31]Write to MH i2c: 01 00 00 3E 06 44 [14:00:31]Write i2c OK [14:00:31]MH_I2C_Read... [14:00:32]*** Cut start [14:00:32]*** Partial cut [14:00:32]*** CUTSNS_PIN = 1 [14:00:32]*** CUTSNS_PIN = 0 [14:00:32]*** Brake cut motor [14:00:32]Read from MH i2c: 01 [14:00:32]MH_I2C_Read... [14:00:32]*** Stop cut motor [14:00:32]*** Cut end [14:00:32]Read from MH i2c: 01 07 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 FF 0F 59 [14:00:32]process_action close_receipt done [14:00:32]requested_data is exist [14:00:32]produce_requested_data [14:00:32]requested_item fm.sn is exist - process it [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 11 00 00 [14:00:32]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:00:32]Read from MH i2c: E2 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 17 00 [14:00:32]MH_I2C_Read... [14:00:32]Read from MH i2c: E2 17 00 3F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [14:00:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:00:32]wFMCommunicate OK [14:00:32]requested_item fd.num is exist - process it [14:00:32]SAM_PROTO_GetFieldsCounters [14:00:32]wFMCommunicate request_size=4 [14:00:32]MH_SAM_APDU [14:00:32]CAPDU: 80 13 00 00 [14:00:32]Write to MH i2c: E2 08 00 40 06 80 13 00 00 00 00 00 00 C2 [14:00:32]Write i2c OK [14:00:32]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 62 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 62 00 40 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [14:00:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4C 01 00 00 5E 04 04 00 4C 01 00 00 57 04 04 00 4D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:00:33]wFMCommunicate OK [14:00:33]SAM_PROTO_GetFieldsCounters done [14:00:33]requested_item shift.num is exist - process it [14:00:33]requested_item shift.opened is exist - process it [14:00:33]req_shift_opened [14:00:33]FM_GetShiftState [14:00:33]SAM_PROTO_GetShiftState [14:00:33]wFMCommunicate request_size=4 [14:00:33]MH_SAM_APDU [14:00:33]CAPDU: 80 13 01 00 [14:00:33]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [14:00:33]Write i2c OK [14:00:33]MH_I2C_Read... [14:00:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:00:33]Read from MH i2c: E2 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 0E 00 [14:00:33]MH_I2C_Read... [14:00:33]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B9 [14:00:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:00:33]wFMCommunicate OK [14:00:33]SAM_PROTO_GetShiftState done [14:00:33]FM_GetShiftState done [14:00:33]req_shift_opened done [14:00:33]requested_item shift.open_date is exist - process it [14:00:33]req_shift_open_date [14:00:33]req_shift_open_date done [14:00:33]produce_requested_data done [14:00:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188303,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:00:33]process_action_free close_receipt [14:00:33]json_value_free [14:00:33]json_value_free done [14:00:33]process_json_proto returns [14:00:33]Send response to host [14:00:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188303,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:00:33]free response buf [14:00:33]execute_script done [14:00:33]execute_script returns [14:00:33]free content buf [14:00:33]Sock 9.Close socket [14:00:33]Sock 9.Thread stoped [14:01:21]accept exits with 7 [14:01:21]New connection [14:01:21]New thread 3067161956 created [14:01:21]Thread 3067305316 joined [14:01:21]Waiting for new connection... [14:01:21] Sock 7.Parse request [14:01:21]Sock 7.Check first char [14:01:21]Sock 7.First char is OK [14:01:21]request: POST /json_proto HTTP/1.0 [14:01:21]Method: POST [14:01:21]URL: /json_proto [14:01:21]Method is POST - this is cgi request [14:01:21]url: /json_proto [14:01:21]query_string will be loaded in cgi processing [14:01:21]execute_cgi json_proto POST (null) [14:01:21]execute_cgi path=json_proto method=POST [14:01:21]POST find Content-Length [14:01:21]Host: 172.17.42.131:8080 [14:01:21]Content-Length: 688 [14:01:21]Content-Type: application/json [14:01:21] [14:01:21]POST finish read [14:01:21]Found Content-Length = 688 [14:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:21]execute_script... [14:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210358", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:01:21]POST & json_proto [14:01:21]process_json_proto [14:01:21]json parsed OK: [14:01:21]protocol is kg_v1.0 [14:01:21]action value=close_receipt [14:01:21]process_action close_receipt [14:01:21]cmd_close_receipt [14:01:21]MH_GetDate [14:01:21]Write to MH i2c: F0 00 00 42 06 37 [14:01:21]Write i2c OK [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: F0 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: F0 09 00 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: F0 09 00 42 06 00 32 B0 17 67 A0 18 CA 66 88 [14:01:21]GetLastDocTimeStamp 1729605629 [14:01:21]current date 1729605682 [14:01:21]FM_GetShiftState [14:01:21]SAM_PROTO_GetShiftState [14:01:21]wFMCommunicate request_size=4 [14:01:21]MH_SAM_APDU [14:01:21]CAPDU: 80 13 01 00 [14:01:21]Write to MH i2c: E2 08 00 43 06 80 13 01 00 00 00 00 00 C6 [14:01:21]Write i2c OK [14:01:21]MH_I2C_Read... [14:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:21]Read from MH i2c: E2 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: E2 0E 00 [14:01:21]MH_I2C_Read... [14:01:21]Read from MH i2c: E2 0E 00 43 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [14:01:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:01:21]wFMCommunicate OK [14:01:21]SAM_PROTO_GetShiftState done [14:01:21]FM_GetShiftState done [14:01:21]opened in 1729556094 [14:01:21]opened+sec_in_day 1729642494 [14:01:21]quantity*price = 250050 [14:01:21]sum+1 = 250052 [14:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 333 22.10.2024 14:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188304 ФПД: 17707546953185 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140122&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188304&fm=17707546953185&tin=02508201610067®Number=0000000000100030&sum=250000 [14:01:22]StoreToDocumentArchive [14:01:22]shift 461 fd 188304 [14:01:22]save to /storage/0461/doc_00188304 [14:01:22]save last doc name /storage/0461/doc_00188304 to /storage/kkm_last_doc_name [14:01:22]save OK [14:01:22]Clear old archive folders... [14:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:01:22]tlvbuf is 0143E0F0 [14:01:22]SAM_PROTO_ClearQueue [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 09 00 00 [14:01:22]Write to MH i2c: E2 08 00 50 06 80 09 00 00 00 00 00 00 C8 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]SAM_PROTO_ClearQueue done [14:01:22]KKMCreateOFDPacket [14:01:22]OFDProtocolAddRootSTLVToBuf [14:01:22]FM_MakeSignedData [14:01:22]FM_MakeSignedData [14:01:22]SAM_PROTO_SignData [14:01:22]wFMCommunicate request_size=4 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 0D 01 02 [14:01:22]Write to MH i2c: E2 08 00 51 06 80 0D 01 02 00 00 00 00 D0 [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:01:22]Read from MH i2c: E2 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 [14:01:22]MH_I2C_Read... [14:01:22]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [14:01:22]RAPDU: 90 00 [14:01:22]wFMCommunicate OK [14:01:22]wFMCommunicate request_size=255 [14:01:22]MH_SAM_APDU [14:01:22]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 32 B0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DF 02 [14:01:22]Write to MH i2c: E2 02 01 52 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 32 B0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DF 02 00 00 AC [14:01:22]Write i2c OK [14:01:22]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [14:01:23]RAPDU: 90 00 [14:01:23]wFMCommunicate OK [14:01:23]wFMCommunicate request_size=16 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 10 1A DC 0B C5 E1 [14:01:23]Write to MH i2c: E2 13 00 53 06 80 0D 02 02 0B 00 00 35 04 06 00 10 1A DC 0B C5 E1 00 00 DF [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [14:01:23]RAPDU: 90 00 [14:01:23]wFMCommunicate OK [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 0D 03 02 [14:01:23]Write to MH i2c: E2 08 00 54 06 80 0D 03 02 00 00 00 00 D5 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 0B 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 0B 00 54 06 00 6C E9 09 1C 85 FE 22 A1 90 00 96 [14:01:23]RAPDU: 6C E9 09 1C 85 FE 22 A1 90 00 [14:01:23]wFMCommunicate OK [14:01:23]SAM_PROTO_SignData done [14:01:23]FM_MakeSignedData done [14:01:23]CreateOFDProtocolMessage [14:01:23]wFMCommunicate request_size=4 [14:01:23]MH_SAM_APDU [14:01:23]CAPDU: 80 11 00 00 [14:01:23]Write to MH i2c: E2 08 00 55 06 80 11 00 00 00 00 00 00 D5 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:23]Read from MH i2c: E2 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 17 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: E2 17 00 55 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [14:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:01:23]wFMCommunicate OK [14:01:23]CreateOFDProtocolMessage done [14:01:23]OFDSenderStorePacket 188304 [14:01:23]StoreOFDPacket docnum=188304 [14:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 AB 0D 01 62 AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 32 B0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DF 02 00 35 04 06 00 10 1A DC 0B C5 E1 6C E9 09 1C 85 FE 22 A1 [14:01:23]CheckFolder [14:01:23]dirname=/storage/ofd_packets [14:01:23]CheckFolder done [14:01:23]ProducePacketName [14:01:23]name=ofd_packets/00188304 [14:01:23]NVStorageSaveData ofd_packets/00188304 [14:01:23]File name is /storage/ofd_packets/00188304 [14:01:23]Write 307 bytes [14:01:23]NVStorageSaveData done [14:01:23]OFDSenderStorePacket done [14:01:23]KKMCreateOFDPacket done [14:01:23]NVStorageSaveData kkm_last_timestamp [14:01:23]File name is /storage/kkm_last_timestamp [14:01:23]Write 4 bytes [14:01:23]NVStorageSaveData done [14:01:23]ExternCall_PrintAddStr [14:01:23]wPrintStart [14:01:23]Write to MH i2c: 01 00 00 56 06 5C [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [14:01:23]RasterBufferAndPrint [14:01:23]line Счет N : (1)210358 [14:01:23]line ИНН: 02508201610067 [14:01:23]line Контрольно-Кассовый Чек [14:01:23]line ПРОДАЖА [14:01:23]line ТРК (МРК, ГНК) : 41 [14:01:23]line Товар: 2710194210 [14:01:23]line D-ENERGY ДТ-К-5 [14:01:23]line 32.390 * 77.20 [14:01:23]line = 2500.51 [14:01:23]line НДС 12% НСП 1% [14:01:23]line > о реализуемом товаре [14:01:23]line ОКРУГЛЕНИЕ: -0.51 [14:01:23]line ИТОГО: 2500.00 [14:01:23]line Внесено: 2500.00 [14:01:23]line СДАЧА: 0.00 [14:01:23]line НСП 1% : 22.13 [14:01:23]line НДС 12% : 265.54 [14:01:23]line Наличными: 2500.00 [14:01:23]line Безнал.: 0.00 [14:01:23]line Место: АЗС № 86 "Партнер Нефть" [14:01:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:01:23]line СНО: Общий режим [14:01:23]line Чек 333 22.10.2024 14:01 [14:01:23]line Смена: 461 ФФД: 1.0 [14:01:23]line ЗНМ: 0300000155 [14:01:23]line РНМ: 0000000000100030 [14:01:23]line Версия ККМ: 001 [14:01:23]line ФМ: 0000000000965340 [14:01:23]line ФД: 188304 [14:01:23]line ФПД: 17707546953185 [14:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140122&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188304&fm=17707546953185&tin=02508201610067®Number=0000000000100030&sum=250000 [14:01:23]written 0, free lines is 4095 [14:01:23]Write to MH i2c: 01 00 00 81 06 87 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 6B 0C 05 [14:01:23]RasterBufferAndPrint [14:01:23]line [14:01:23]line [14:01:23]line [14:01:23]line [14:01:23]line [14:01:23]written 0, free lines is 3182 [14:01:23]MH_Cut [14:01:23]Write to MH i2c: D1 01 00 88 06 01 60 [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: D1 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: D1 01 00 [14:01:23]MH_I2C_Read... [14:01:23]Read from MH i2c: D1 01 00 88 06 00 5F [14:01:23]Write to MH i2c: 01 00 00 89 06 8F [14:01:23]Write i2c OK [14:01:23]MH_I2C_Read... [14:01:24]*** Cut start [14:01:24]*** Partial cut [14:01:24]*** CUTSNS_PIN = 1 [14:01:24]*** CUTSNS_PIN = 0 [14:01:25]*** Brake cut motor [14:01:25]Read from MH i2c: 01 [14:01:25]MH_I2C_Read... [14:01:25]*** Stop cut motor [14:01:25]*** Cut end [14:01:25]Read from MH i2c: 01 07 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 FF 0F A4 [14:01:25]process_action close_receipt done [14:01:25]requested_data is exist [14:01:25]produce_requested_data [14:01:25]requested_item fm.sn is exist - process it [14:01:25]wFMCommunicate request_size=4 [14:01:25]MH_SAM_APDU [14:01:25]CAPDU: 80 11 00 00 [14:01:25]Write to MH i2c: E2 08 00 8A 06 80 11 00 00 00 00 00 00 0A [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:01:25]Read from MH i2c: E2 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 17 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 17 00 8A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [14:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:01:25]wFMCommunicate OK [14:01:25]requested_item fd.num is exist - process it [14:01:25]SAM_PROTO_GetFieldsCounters [14:01:25]wFMCommunicate request_size=4 [14:01:25]MH_SAM_APDU [14:01:25]CAPDU: 80 13 00 00 [14:01:25]Write to MH i2c: E2 08 00 8B 06 80 13 00 00 00 00 00 00 0D [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:01:25]Read from MH i2c: E2 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 62 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 62 00 8B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:01:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4D 01 00 00 5E 04 04 00 4D 01 00 00 57 04 04 00 4E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:01:25]wFMCommunicate OK [14:01:25]SAM_PROTO_GetFieldsCounters done [14:01:25]requested_item shift.num is exist - process it [14:01:25]requested_item shift.opened is exist - process it [14:01:25]req_shift_opened [14:01:25]FM_GetShiftState [14:01:25]SAM_PROTO_GetShiftState [14:01:25]wFMCommunicate request_size=4 [14:01:25]MH_SAM_APDU [14:01:25]CAPDU: 80 13 01 00 [14:01:25]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [14:01:25]Write i2c OK [14:01:25]MH_I2C_Read... [14:01:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:01:25]Read from MH i2c: E2 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 0E 00 [14:01:25]MH_I2C_Read... [14:01:25]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 04 [14:01:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:01:25]wFMCommunicate OK [14:01:25]SAM_PROTO_GetShiftState done [14:01:25]FM_GetShiftState done [14:01:25]req_shift_opened done [14:01:25]requested_item shift.open_date is exist - process it [14:01:25]req_shift_open_date [14:01:25]req_shift_open_date done [14:01:25]produce_requested_data done [14:01:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188304,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:01:25]process_action_free close_receipt [14:01:25]json_value_free [14:01:25]json_value_free done [14:01:25]process_json_proto returns [14:01:25]Send response to host [14:01:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188304,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:01:25]free response buf [14:01:25]execute_script done [14:01:25]execute_script returns [14:01:25]free content buf [14:01:25]Sock 7.Close socket [14:01:25]Sock 7.Thread stoped [14:02:43]ConnectInit Can't connect to host [14:02:43]CommunicateWithHost connect error [14:02:43]CommunicateWithHost err = -1 [14:02:43]OFD Sender: Server communicate error [14:02:43]OFD Sender: Processing packet 188303 [packets to send 1063, broken 1061] [14:02:43]ProducePacketName [14:02:43]name=ofd_packets/00188303 [14:02:43]OFD Sender: To server: pG, [14:02:43]CommunicateWithHost lk.salyk.kg:30040 [14:02:43]ConnectInit lk.salyk.kg [14:02:44]Connected sock=7 [14:02:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 76 07 01 DC 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 01 00 00 F4 03 04 00 FD AF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F DF 02 00 35 04 06 00 5A 78 75 44 87 F7 E1 53 FE 71 F2 BD BE E9 [14:02:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 24 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 8F DF 02 00 F4 03 04 00 70 5A 17 67 B6 04 01 00 00 98 F9 43 39 40 01 19 3D [14:02:44]CommunicateWithHost err = 0 [14:02:44]CheckOFDResponse [14:02:44]1017 (14) - 77093643461234 [14:02:44]1041 (16) - 0000000000965340 [14:02:44]1040 (4) - 188303 [14:02:44]1012 (4) - 22.10.2024 07:55 [14:02:44]1206 (1) - 0 [14:02:44]OFD Sender: Remove packet 188303 [14:02:44]ProducePacketName [14:02:44]name=ofd_packets/00188303 [14:02:44]NVStorageDeleteData [14:02:44]OFD Sender: Processing packet 188304 [packets to send 1062, broken 1061] [14:02:44]ProducePacketName [14:02:44]name=ofd_packets/00188304 [14:02:44]OFD Sender: To server: pG, [14:02:44]CommunicateWithHost lk.salyk.kg:30040 [14:02:44]ConnectInit lk.salyk.kg [14:02:45]Connected sock=7 [14:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 64 AB 0D 01 62 AD 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 01 00 00 F4 03 04 00 32 B0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DF 02 00 35 04 06 00 10 1A DC 0B C5 E1 6C E9 09 1C 85 FE 22 A1 [14:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 49 99 47 00 22 F2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 DF 02 00 F4 03 04 00 71 5A 17 67 B6 04 01 00 00 AD A9 48 2E 40 2C 18 F9 [14:02:45]CommunicateWithHost err = 0 [14:02:45]CheckOFDResponse [14:02:45]1017 (14) - 77093643461234 [14:02:45]1041 (16) - 0000000000965340 [14:02:45]1040 (4) - 188304 [14:02:45]1012 (4) - 22.10.2024 07:55 [14:02:45]1206 (1) - 0 [14:02:45]OFD Sender: Remove packet 188304 [14:02:45]ProducePacketName [14:02:45]name=ofd_packets/00188304 [14:02:45]NVStorageDeleteData [14:02:46]OFD Sender: No OFD packet to send [14:02:51]OFD Sender: No OFD packet to send [14:02:56]OFD Sender: No OFD packet to send [14:03:01]OFD Sender: No OFD packet to send [14:03:06]OFD Sender: No OFD packet to send [14:03:11]OFD Sender: No OFD packet to send [14:03:16]OFD Sender: No OFD packet to send [14:03:21]OFD Sender: No OFD packet to send [14:03:26]OFD Sender: No OFD packet to send [14:03:31]OFD Sender: No OFD packet to send [14:03:36]OFD Sender: No OFD packet to send [14:03:41]OFD Sender: No OFD packet to send [14:03:46]OFD Sender: No OFD packet to send [14:03:51]OFD Sender: No OFD packet to send [14:03:56]OFD Sender: No OFD packet to send [14:04:01]OFD Sender: No OFD packet to send [14:04:06]OFD Sender: No OFD packet to send [14:04:11]OFD Sender: No OFD packet to send [14:04:16]OFD Sender: No OFD packet to send [14:04:21]OFD Sender: No OFD packet to send [14:04:26]OFD Sender: No OFD packet to send [14:04:31]OFD Sender: No OFD packet to send [14:04:36]OFD Sender: No OFD packet to send [14:04:41]OFD Sender: No OFD packet to send [14:04:46]OFD Sender: No OFD packet to send [14:04:51]OFD Sender: No OFD packet to send [14:04:56]OFD Sender: No OFD packet to send [14:05:01]OFD Sender: No OFD packet to send [14:05:06]OFD Sender: No OFD packet to send [14:05:11]OFD Sender: No OFD packet to send [14:05:16]OFD Sender: No OFD packet to send [14:05:21]OFD Sender: No OFD packet to send [14:05:26]OFD Sender: No OFD packet to send [14:05:31]OFD Sender: No OFD packet to send [14:05:36]OFD Sender: No OFD packet to send [14:05:41]OFD Sender: No OFD packet to send [14:05:46]OFD Sender: No OFD packet to send [14:05:47]accept exits with 9 [14:05:47]New connection [14:05:47]New thread 3067305316 created [14:05:47]Thread 3067161956 joined [14:05:47]Waiting for new connection... [14:05:47] Sock 9.Parse request [14:05:47]Sock 9.Check first char [14:05:47]Sock 9.First char is OK [14:05:47]request: POST /json_proto HTTP/1.0 [14:05:47]Method: POST [14:05:47]URL: /json_proto [14:05:47]Method is POST - this is cgi request [14:05:47]url: /json_proto [14:05:47]query_string will be loaded in cgi processing [14:05:47]execute_cgi json_proto POST (null) [14:05:47]execute_cgi path=json_proto method=POST [14:05:47]POST find Content-Length [14:05:47]Host: 172.17.42.131:8080 [14:05:47]Content-Length: 679 [14:05:47]Content-Type: application/json [14:05:47] [14:05:47]POST finish read [14:05:47]Found Content-Length = 679 [14:05:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:47]execute_script... [14:05: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)210361", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:05:47]POST & json_proto [14:05:47]process_json_proto [14:05:47]json parsed OK: [14:05:47]protocol is kg_v1.0 [14:05:47]action value=close_receipt [14:05:47]process_action close_receipt [14:05:47]cmd_close_receipt [14:05:47]MH_GetDate [14:05:47]Write to MH i2c: F0 00 00 8D 06 82 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: F0 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: F0 09 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: F0 09 00 8D 06 00 3C B1 17 67 A0 18 CA 66 DE [14:05:47]GetLastDocTimeStamp 1729605682 [14:05:47]current date 1729605948 [14:05:47]FM_GetShiftState [14:05:47]SAM_PROTO_GetShiftState [14:05:47]wFMCommunicate request_size=4 [14:05:47]MH_SAM_APDU [14:05:47]CAPDU: 80 13 01 00 [14:05:47]Write to MH i2c: E2 08 00 8E 06 80 13 01 00 00 00 00 00 11 [14:05:47]Write i2c OK [14:05:47]MH_I2C_Read... [14:05:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:47]Read from MH i2c: E2 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 0E 00 [14:05:47]MH_I2C_Read... [14:05:47]Read from MH i2c: E2 0E 00 8E 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 06 [14:05:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:05:47]wFMCommunicate OK [14:05:47]SAM_PROTO_GetShiftState done [14:05:47]FM_GetShiftState done [14:05:47]opened in 1729556094 [14:05:47]opened+sec_in_day 1729642494 [14:05:47]quantity*price = 150037 [14:05:47]sum+1 = 150039 [14:05:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 334 22.10.2024 14:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188305 ФПД: 265654562132948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188305&fm=265654562132948&tin=02508201610067®Number=0000000000100030&sum=150000 [14:05:49]StoreToDocumentArchive [14:05:49]shift 461 fd 188305 [14:05:49]save to /storage/0461/doc_00188305 [14:05:49]save last doc name /storage/0461/doc_00188305 to /storage/kkm_last_doc_name [14:05:49]save OK [14:05:49]Clear old archive folders... [14:05:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:05:49]tlvbuf is 01483A40 [14:05:49]SAM_PROTO_ClearQueue [14:05:49]wFMCommunicate request_size=4 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 09 00 00 [14:05:49]Write to MH i2c: E2 08 00 9B 06 80 09 00 00 00 00 00 00 13 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [14:05:49]RAPDU: 90 00 [14:05:49]wFMCommunicate OK [14:05:49]SAM_PROTO_ClearQueue done [14:05:49]KKMCreateOFDPacket [14:05:49]OFDProtocolAddRootSTLVToBuf [14:05:49]FM_MakeSignedData [14:05:49]FM_MakeSignedData [14:05:49]SAM_PROTO_SignData [14:05:49]wFMCommunicate request_size=4 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 0D 01 02 [14:05:49]Write to MH i2c: E2 08 00 9C 06 80 0D 01 02 00 00 00 00 1B [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [14:05:49]RAPDU: 90 00 [14:05:49]wFMCommunicate OK [14:05:49]wFMCommunicate request_size=255 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3C B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DF 02 00 35 04 06 00 F1 9C 85 CF [14:05:49]Write to MH i2c: E2 02 01 9D 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 32 31 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 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3C B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DF 02 00 35 04 06 00 F1 9C 85 CF 00 00 D8 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [14:05:49]RAPDU: 90 00 [14:05:49]wFMCommunicate OK [14:05:49]wFMCommunicate request_size=7 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 0D 02 02 02 13 D4 [14:05:49]Write to MH i2c: E2 0A 00 9E 06 80 0D 02 02 02 00 13 D4 00 00 09 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [14:05:49]RAPDU: 90 00 [14:05:49]wFMCommunicate OK [14:05:49]wFMCommunicate request_size=4 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 0D 03 02 [14:05:49]Write to MH i2c: E2 08 00 9F 06 80 0D 03 02 00 00 00 00 20 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 0B 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 0B 00 9F 06 00 9F E5 A6 57 4D 22 7E 99 90 00 28 [14:05:49]RAPDU: 9F E5 A6 57 4D 22 7E 99 90 00 [14:05:49]wFMCommunicate OK [14:05:49]SAM_PROTO_SignData done [14:05:49]FM_MakeSignedData done [14:05:49]CreateOFDProtocolMessage [14:05:49]wFMCommunicate request_size=4 [14:05:49]MH_SAM_APDU [14:05:49]CAPDU: 80 11 00 00 [14:05:49]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:49]Read from MH i2c: E2 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 17 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [14:05:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:49]wFMCommunicate OK [14:05:49]CreateOFDProtocolMessage done [14:05:49]OFDSenderStorePacket 188305 [14:05:49]StoreOFDPacket docnum=188305 [14:05:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 43 EB 04 01 CF E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3C B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DF 02 00 35 04 06 00 F1 9C 85 CF 13 D4 9F E5 A6 57 4D 22 7E 99 [14:05:49]CheckFolder [14:05:49]dirname=/storage/ofd_packets [14:05:49]CheckFolder done [14:05:49]ProducePacketName [14:05:49]name=ofd_packets/00188305 [14:05:49]NVStorageSaveData ofd_packets/00188305 [14:05:49]File name is /storage/ofd_packets/00188305 [14:05:49]Write 298 bytes [14:05:49]NVStorageSaveData done [14:05:49]OFDSenderStorePacket done [14:05:49]KKMCreateOFDPacket done [14:05:49]NVStorageSaveData kkm_last_timestamp [14:05:49]File name is /storage/kkm_last_timestamp [14:05:49]Write 4 bytes [14:05:49]NVStorageSaveData done [14:05:49]ExternCall_PrintAddStr [14:05:49]wPrintStart [14:05:49]Write to MH i2c: 01 00 00 A1 06 A7 [14:05:49]Write i2c OK [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: 01 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: 01 07 00 [14:05:49]MH_I2C_Read... [14:05:49]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 FF 0F BC [14:05:49]RasterBufferAndPrint [14:05:49]line Счет N : (1)210361 [14:05:49]line ИНН: 02508201610067 [14:05:49]line Контрольно-Кассовый Чек [14:05:49]line ПРОДАЖА [14:05:49]line ТРК (МРК, ГНК) : 51 [14:05:49]line Товар: 2710194210 [14:05:49]line ДТ-К-5 [14:05:49]line 19.690 * 76.20 [14:05:49]line = 1500.38 [14:05:49]line НДС 12% НСП 1% [14:05:49]line > о реализуемом товаре [14:05:49]line ОКРУГЛЕНИЕ: -0.38 [14:05:49]line ИТОГО: 1500.00 [14:05:49]line Внесено: 1500.00 [14:05:49]line СДАЧА: 0.00 [14:05:49]line НСП 1% : 13.28 [14:05:49]line НДС 12% : 159.33 [14:05:49]line Наличными: 1500.00 [14:05:49]line Безнал.: 0.00 [14:05:49]line Место: АЗС № 86 "Партнер Нефть" [14:05:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:05:49]line СНО: Общий режим [14:05:49]line Чек 334 22.10.2024 14:05 [14:05:49]line Смена: 461 ФФД: 1.0 [14:05:49]line ЗНМ: 0300000155 [14:05:49]line РНМ: 0000000000100030 [14:05:49]line Версия ККМ: 001 [14:05:49]line ФМ: 0000000000965340 [14:05:49]line ФД: 188305 [14:05:49]line ФПД: 265654562132948 [14:05:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140548&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188305&fm=265654562132948&tin=02508201610067®Number=0000000000100030&sum=150000 [14:05:49]written 0, free lines is 4095 [14:05:49]OFD Sender: Processing packet 188305 [packets to send 1062, broken 1061] [14:05:49]ProducePacketName [14:05:49]name=ofd_packets/00188305 [14:05:49]OFD Sender: To server: pG, [14:05:49]CommunicateWithHost lk.salyk.kg:30040 [14:05:49]ConnectInit lk.salyk.kg [14:05:49]Connected sock=11 [14:05:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 43 EB 04 01 CF E1 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4E 01 00 00 F4 03 04 00 3C B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 DF 02 00 35 04 06 00 F1 9C 85 CF 13 D4 9F E5 A6 57 4D 22 7E 99 [14:05:50]Write to MH i2c: 01 00 00 CC 06 D2 [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: 01 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: 01 07 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 6A 0C 4F [14:05:50]RasterBufferAndPrint [14:05:50]line [14:05:50]line [14:05:50]line [14:05:50]line [14:05:50]line [14:05:50]written 0, free lines is 3181 [14:05:50]MH_Cut [14:05:50]Write to MH i2c: D1 01 00 D3 06 01 AB [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: D1 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: D1 01 00 [14:05:50]MH_I2C_Read... [14:05:50]Read from MH i2c: D1 01 00 D3 06 00 AA [14:05:50]Write to MH i2c: 01 00 00 D4 06 DA [14:05:50]Write i2c OK [14:05:50]MH_I2C_Read... [14:05:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 88 15 47 00 47 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 39 36 35 33 34 30 10 04 04 00 91 DF 02 00 F4 03 04 00 29 5B 17 67 B6 04 01 00 00 A8 5C D4 4A EB 06 6C 18 [14:05:50]CommunicateWithHost err = 0 [14:05:50]CheckOFDResponse [14:05:50]1017 (14) - 77093643461234 [14:05:50]1041 (16) - 0000000000965340 [14:05:50]1040 (4) - 188305 [14:05:50]1012 (4) - 22.10.2024 07:58 [14:05:50]1206 (1) - 0 [14:05:50]OFD Sender: Remove packet 188305 [14:05:50]ProducePacketName [14:05:50]name=ofd_packets/00188305 [14:05:50]NVStorageDeleteData [14:05:50]OFD Sender: No OFD packet to send [14:05:51]*** Cut start [14:05:51]*** Partial cut [14:05:51]*** CUTSNS_PIN = 1 [14:05:51]*** CUTSNS_PIN = 0 [14:05:51]*** Brake cut motor [14:05:51]Read from MH i2c: 01 [14:05:51]MH_I2C_Read... [14:05:51]*** Stop cut motor [14:05:51]*** Cut end [14:05:51]Read from MH i2c: 01 07 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [14:05:51]process_action close_receipt done [14:05:51]requested_data is exist [14:05:51]produce_requested_data [14:05:51]requested_item fm.sn is exist - process it [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 11 00 00 [14:05:51]Write to MH i2c: E2 08 00 D5 06 80 11 00 00 00 00 00 00 55 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:05:51]Read from MH i2c: E2 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 17 00 [14:05:51]MH_I2C_Read... [14:05:51]Read from MH i2c: E2 17 00 D5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [14:05:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:05:51]wFMCommunicate OK [14:05:51]requested_item fd.num is exist - process it [14:05:51]SAM_PROTO_GetFieldsCounters [14:05:51]wFMCommunicate request_size=4 [14:05:51]MH_SAM_APDU [14:05:51]CAPDU: 80 13 00 00 [14:05:51]Write to MH i2c: E2 08 00 D6 06 80 13 00 00 00 00 00 00 58 [14:05:51]Write i2c OK [14:05:51]MH_I2C_Read... [14:05:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:05:52]Read from MH i2c: E2 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 62 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 62 00 D6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [14:05:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4E 01 00 00 5E 04 04 00 4E 01 00 00 57 04 04 00 4F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:05:52]wFMCommunicate OK [14:05:52]SAM_PROTO_GetFieldsCounters done [14:05:52]requested_item shift.num is exist - process it [14:05:52]requested_item shift.opened is exist - process it [14:05:52]req_shift_opened [14:05:52]FM_GetShiftState [14:05:52]SAM_PROTO_GetShiftState [14:05:52]wFMCommunicate request_size=4 [14:05:52]MH_SAM_APDU [14:05:52]CAPDU: 80 13 01 00 [14:05:52]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [14:05:52]Write i2c OK [14:05:52]MH_I2C_Read... [14:05:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:05:52]Read from MH i2c: E2 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 0E 00 [14:05:52]MH_I2C_Read... [14:05:52]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4F [14:05:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:05:52]wFMCommunicate OK [14:05:52]SAM_PROTO_GetShiftState done [14:05:52]FM_GetShiftState done [14:05:52]req_shift_opened done [14:05:52]requested_item shift.open_date is exist - process it [14:05:52]req_shift_open_date [14:05:52]req_shift_open_date done [14:05:52]produce_requested_data done [14:05:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188305,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:05:52]process_action_free close_receipt [14:05:52]json_value_free [14:05:52]json_value_free done [14:05:52]process_json_proto returns [14:05:52]Send response to host [14:05:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188305,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:05:52]free response buf [14:05:52]execute_script done [14:05:52]execute_script returns [14:05:52]free content buf [14:05:52]Sock 9.Close socket [14:05:52]Sock 9.Thread stoped [14:05:55]OFD Sender: No OFD packet to send [14:06:00]OFD Sender: No OFD packet to send [14:06:05]OFD Sender: No OFD packet to send [14:06:08]accept exits with 7 [14:06:08]New connection [14:06:08]New thread 3067161956 created [14:06:08]Thread 3067305316 joined [14:06:08]Waiting for new connection... [14:06:08] Sock 7.Parse request [14:06:08]Sock 7.Check first char [14:06:08]Sock 7.First char is OK [14:06:08]request: POST /json_proto HTTP/1.0 [14:06:08]Method: POST [14:06:08]URL: /json_proto [14:06:08]Method is POST - this is cgi request [14:06:08]url: /json_proto [14:06:08]query_string will be loaded in cgi processing [14:06:08]execute_cgi json_proto POST (null) [14:06:08]execute_cgi path=json_proto method=POST [14:06:08]POST find Content-Length [14:06:08]Host: 172.17.42.131:8080 [14:06:08]Content-Length: 682 [14:06:08]Content-Type: application/json [14:06:08] [14:06:08]POST finish read [14:06:08]Found Content-Length = 682 [14:06:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:08]execute_script... [14:06:08]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210360", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:06:08]POST & json_proto [14:06:08]process_json_proto [14:06:08]json parsed OK: [14:06:08]protocol is kg_v1.0 [14:06:08]action value=close_receipt [14:06:08]process_action close_receipt [14:06:08]cmd_close_receipt [14:06:08]MH_GetDate [14:06:08]Write to MH i2c: F0 00 00 D8 06 CD [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 09 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: F0 09 00 D8 06 00 51 B1 17 67 A0 18 CA 66 3E [14:06:08]GetLastDocTimeStamp 1729605948 [14:06:08]current date 1729605969 [14:06:08]FM_GetShiftState [14:06:08]SAM_PROTO_GetShiftState [14:06:08]wFMCommunicate request_size=4 [14:06:08]MH_SAM_APDU [14:06:08]CAPDU: 80 13 01 00 [14:06:08]Write to MH i2c: E2 08 00 D9 06 80 13 01 00 00 00 00 00 5C [14:06:08]Write i2c OK [14:06:08]MH_I2C_Read... [14:06:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:08]Read from MH i2c: E2 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 0E 00 [14:06:08]MH_I2C_Read... [14:06:08]Read from MH i2c: E2 0E 00 D9 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [14:06:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:06:08]wFMCommunicate OK [14:06:08]SAM_PROTO_GetShiftState done [14:06:08]FM_GetShiftState done [14:06:08]opened in 1729556094 [14:06:08]opened+sec_in_day 1729642494 [14:06:08]quantity*price = 150056 [14:06:08]sum+1 = 150058 [14:06:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 335 22.10.2024 14:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188306 ФПД: 21945702950348 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140609&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188306&fm=21945702950348&tin=02508201610067®Number=0000000000100030&sum=150000 [14:06:09]StoreToDocumentArchive [14:06:09]shift 461 fd 188306 [14:06:09]save to /storage/0461/doc_00188306 [14:06:09]save last doc name /storage/0461/doc_00188306 to /storage/kkm_last_doc_name [14:06:09]save OK [14:06:09]Clear old archive folders... [14:06:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:09]tlvbuf is 0149C170 [14:06:09]SAM_PROTO_ClearQueue [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 09 00 00 [14:06:09]Write to MH i2c: E2 08 00 E6 06 80 09 00 00 00 00 00 00 5E [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]SAM_PROTO_ClearQueue done [14:06:09]KKMCreateOFDPacket [14:06:09]OFDProtocolAddRootSTLVToBuf [14:06:09]FM_MakeSignedData [14:06:09]FM_MakeSignedData [14:06:09]SAM_PROTO_SignData [14:06:09]wFMCommunicate request_size=4 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 01 02 [14:06:09]Write to MH i2c: E2 08 00 E7 06 80 0D 01 02 00 00 00 00 66 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=255 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 51 B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DF 02 00 35 04 06 00 13 [14:06:09]Write to MH i2c: E2 02 01 E8 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 51 B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DF 02 00 35 04 06 00 13 00 00 46 [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:09]Read from MH i2c: E2 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 [14:06:09]MH_I2C_Read... [14:06:09]Read from MH i2c: E2 03 00 E8 06 00 90 00 62 [14:06:09]RAPDU: 90 00 [14:06:09]wFMCommunicate OK [14:06:09]wFMCommunicate request_size=10 [14:06:09]MH_SAM_APDU [14:06:09]CAPDU: 80 0D 02 02 05 F5 A1 D4 25 CC [14:06:09]Write to MH i2c: E2 0D 00 E9 06 80 0D 02 02 05 00 F5 A1 D4 25 CC 00 00 CE [14:06:09]Write i2c OK [14:06:09]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 03 00 E9 06 00 90 00 63 [14:06:10]RAPDU: 90 00 [14:06:10]wFMCommunicate OK [14:06:10]wFMCommunicate request_size=4 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 0D 03 02 [14:06:10]Write to MH i2c: E2 08 00 EA 06 80 0D 03 02 00 00 00 00 6B [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 0B 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 0B 00 EA 06 00 84 D6 E7 19 F8 CA 36 07 90 00 C5 [14:06:10]RAPDU: 84 D6 E7 19 F8 CA 36 07 90 00 [14:06:10]wFMCommunicate OK [14:06:10]SAM_PROTO_SignData done [14:06:10]FM_MakeSignedData done [14:06:10]CreateOFDProtocolMessage [14:06:10]wFMCommunicate request_size=4 [14:06:10]MH_SAM_APDU [14:06:10]CAPDU: 80 11 00 00 [14:06:10]Write to MH i2c: E2 08 00 EB 06 80 11 00 00 00 00 00 00 6B [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:10]Read from MH i2c: E2 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 17 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: E2 17 00 EB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [14:06:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:06:10]wFMCommunicate OK [14:06:10]CreateOFDProtocolMessage done [14:06:10]OFDSenderStorePacket 188306 [14:06:10]StoreOFDPacket docnum=188306 [14:06:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F E2 07 01 80 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 51 B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DF 02 00 35 04 06 00 13 F5 A1 D4 25 CC 84 D6 E7 19 F8 CA 36 07 [14:06:10]CheckFolder [14:06:10]dirname=/storage/ofd_packets [14:06:10]CheckFolder done [14:06:10]ProducePacketName [14:06:10]name=ofd_packets/00188306 [14:06:10]NVStorageSaveData ofd_packets/00188306 [14:06:10]File name is /storage/ofd_packets/00188306 [14:06:10]Write 301 bytes [14:06:10]NVStorageSaveData done [14:06:10]OFDSenderStorePacket done [14:06:10]KKMCreateOFDPacket done [14:06:10]NVStorageSaveData kkm_last_timestamp [14:06:10]File name is /storage/kkm_last_timestamp [14:06:10]Write 4 bytes [14:06:10]NVStorageSaveData done [14:06:10]ExternCall_PrintAddStr [14:06:10]wPrintStart [14:06:10]Write to MH i2c: 01 00 00 EC 06 F2 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 FF 0F 07 [14:06:10]RasterBufferAndPrint [14:06:10]line Счет N : (1)210360 [14:06:10]line ИНН: 02508201610067 [14:06:10]line Контрольно-Кассовый Чек [14:06:10]line ПРОДАЖА [14:06:10]line ТРК (МРК, ГНК) : 12 [14:06:10]line Товар: 2710124130 [14:06:10]line Аи-92-К-3 [14:06:10]line 22.430 * 66.90 [14:06:10]line = 1500.57 [14:06:10]line НДС 12% НСП 1% [14:06:10]line > о реализуемом товаре [14:06:10]line ОКРУГЛЕНИЕ: -0.57 [14:06:10]line ИТОГО: 1500.00 [14:06:10]line Внесено: 1500.00 [14:06:10]line СДАЧА: 0.00 [14:06:10]line НСП 1% : 13.28 [14:06:10]line НДС 12% : 159.35 [14:06:10]line Наличными: 1500.00 [14:06:10]line Безнал.: 0.00 [14:06:10]line Место: АЗС № 86 "Партнер Нефть" [14:06:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:06:10]line СНО: Общий режим [14:06:10]line Чек 335 22.10.2024 14:06 [14:06:10]line Смена: 461 ФФД: 1.0 [14:06:10]line ЗНМ: 0300000155 [14:06:10]line РНМ: 0000000000100030 [14:06:10]line Версия ККМ: 001 [14:06:10]line ФМ: 0000000000965340 [14:06:10]line ФД: 188306 [14:06:10]line ФПД: 21945702950348 [14:06:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140609&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188306&fm=21945702950348&tin=02508201610067®Number=0000000000100030&sum=150000 [14:06:10]written 0, free lines is 4095 [14:06:10]OFD Sender: Processing packet 188306 [packets to send 1062, broken 1061] [14:06:10]ProducePacketName [14:06:10]name=ofd_packets/00188306 [14:06:10]OFD Sender: To server: pG, [14:06:10]CommunicateWithHost lk.salyk.kg:30040 [14:06:10]ConnectInit lk.salyk.kg [14:06:10]Connected sock=10 [14:06:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4F E2 07 01 80 C5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4F 01 00 00 F4 03 04 00 51 B1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DF 02 00 35 04 06 00 13 F5 A1 D4 25 CC 84 D6 E7 19 F8 CA 36 07 [14:06:10]Write to MH i2c: 01 00 00 17 07 1E [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 72 0C A3 [14:06:10]RasterBufferAndPrint [14:06:10]line [14:06:10]line [14:06:10]line [14:06:10]line [14:06:10]line [14:06:10]written 0, free lines is 3188 [14:06:10]MH_Cut [14:06:10]Write to MH i2c: D1 01 00 1E 07 01 F7 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 01 00 [14:06:10]MH_I2C_Read... [14:06:10]Read from MH i2c: D1 01 00 1E 07 00 F6 [14:06:10]Write to MH i2c: 01 00 00 1F 07 26 [14:06:10]Write i2c OK [14:06:10]MH_I2C_Read... [14:06:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4E 85 47 00 70 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 DF 02 00 F4 03 04 00 3E 5B 17 67 B6 04 01 00 00 18 0B 9E 18 08 B0 0A 14 [14:06:10]CommunicateWithHost err = 0 [14:06:10]CheckOFDResponse [14:06:10]1017 (14) - 77093643461234 [14:06:10]1041 (16) - 0000000000965340 [14:06:10]1040 (4) - 188306 [14:06:10]1012 (4) - 22.10.2024 07:58 [14:06:10]1206 (1) - 0 [14:06:10]OFD Sender: Remove packet 188306 [14:06:10]ProducePacketName [14:06:10]name=ofd_packets/00188306 [14:06:10]NVStorageDeleteData [14:06:11]OFD Sender: No OFD packet to send [14:06:11]*** Cut start [14:06:11]*** Partial cut [14:06:11]*** CUTSNS_PIN = 1 [14:06:11]*** CUTSNS_PIN = 0 [14:06:12]*** Brake cut motor [14:06:12]Read from MH i2c: 01 [14:06:12]MH_I2C_Read... [14:06:12]*** Stop cut motor [14:06:12]*** Cut end [14:06:12]Read from MH i2c: 01 07 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [14:06:12]process_action close_receipt done [14:06:12]requested_data is exist [14:06:12]produce_requested_data [14:06:12]requested_item fm.sn is exist - process it [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 11 00 00 [14:06:12]Write to MH i2c: E2 08 00 20 07 80 11 00 00 00 00 00 00 A1 [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 17 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 17 00 20 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [14:06:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:06:12]wFMCommunicate OK [14:06:12]requested_item fd.num is exist - process it [14:06:12]SAM_PROTO_GetFieldsCounters [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 13 00 00 [14:06:12]Write to MH i2c: E2 08 00 21 07 80 13 00 00 00 00 00 00 A4 [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 62 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 62 00 21 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [14:06:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 4F 01 00 00 5E 04 04 00 4F 01 00 00 57 04 04 00 50 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:06:12]wFMCommunicate OK [14:06:12]SAM_PROTO_GetFieldsCounters done [14:06:12]requested_item shift.num is exist - process it [14:06:12]requested_item shift.opened is exist - process it [14:06:12]req_shift_opened [14:06:12]FM_GetShiftState [14:06:12]SAM_PROTO_GetShiftState [14:06:12]wFMCommunicate request_size=4 [14:06:12]MH_SAM_APDU [14:06:12]CAPDU: 80 13 01 00 [14:06:12]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [14:06:12]Write i2c OK [14:06:12]MH_I2C_Read... [14:06:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:12]Read from MH i2c: E2 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 0E 00 [14:06:12]MH_I2C_Read... [14:06:12]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9B [14:06:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:06:12]wFMCommunicate OK [14:06:12]SAM_PROTO_GetShiftState done [14:06:12]FM_GetShiftState done [14:06:12]req_shift_opened done [14:06:12]requested_item shift.open_date is exist - process it [14:06:12]req_shift_open_date [14:06:12]req_shift_open_date done [14:06:12]produce_requested_data done [14:06:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188306,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:06:12]process_action_free close_receipt [14:06:12]json_value_free [14:06:12]json_value_free done [14:06:12]process_json_proto returns [14:06:12]Send response to host [14:06:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188306,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:06:12]free response buf [14:06:12]execute_script done [14:06:12]execute_script returns [14:06:12]free content buf [14:06:12]Sock 7.Close socket [14:06:12]Sock 7.Thread stoped [14:06:16]OFD Sender: No OFD packet to send [14:06:21]OFD Sender: No OFD packet to send [14:06:26]OFD Sender: No OFD packet to send [14:06:31]OFD Sender: No OFD packet to send [14:06:36]OFD Sender: No OFD packet to send [14:06:41]OFD Sender: No OFD packet to send [14:06:46]OFD Sender: No OFD packet to send [14:06:51]OFD Sender: No OFD packet to send [14:06:56]OFD Sender: No OFD packet to send [14:07:01]OFD Sender: No OFD packet to send [14:07:06]OFD Sender: No OFD packet to send [14:07:11]OFD Sender: No OFD packet to send [14:07:16]OFD Sender: No OFD packet to send [14:07:21]OFD Sender: No OFD packet to send [14:07:26]OFD Sender: No OFD packet to send [14:07:31]OFD Sender: No OFD packet to send [14:07:36]OFD Sender: No OFD packet to send [14:07:41]OFD Sender: No OFD packet to send [14:07:46]OFD Sender: No OFD packet to send [14:07:51]OFD Sender: No OFD packet to send [14:07:56]OFD Sender: No OFD packet to send [14:08:01]OFD Sender: No OFD packet to send [14:08:06]OFD Sender: No OFD packet to send [14:08:11]OFD Sender: No OFD packet to send [14:08:17]OFD Sender: No OFD packet to send [14:08:22]OFD Sender: No OFD packet to send [14:08:27]OFD Sender: No OFD packet to send [14:08:32]OFD Sender: No OFD packet to send [14:08:37]OFD Sender: No OFD packet to send [14:08:42]OFD Sender: No OFD packet to send [14:08:47]OFD Sender: No OFD packet to send [14:08:52]OFD Sender: No OFD packet to send [14:08:57]OFD Sender: No OFD packet to send [14:09:02]OFD Sender: No OFD packet to send [14:09:07]OFD Sender: No OFD packet to send [14:09:12]OFD Sender: No OFD packet to send [14:09:17]OFD Sender: No OFD packet to send [14:09:22]OFD Sender: No OFD packet to send [14:09:24]accept exits with 9 [14:09:24]New connection [14:09:24]New thread 3067305316 created [14:09:24]Thread 3067161956 joined [14:09:24]Waiting for new connection... [14:09:24] Sock 9.Parse request [14:09:24]Sock 9.Check first char [14:09:24]Sock 9.First char is OK [14:09:24]request: POST /json_proto HTTP/1.0 [14:09:24]Method: POST [14:09:24]URL: /json_proto [14:09:24]Method is POST - this is cgi request [14:09:24]url: /json_proto [14:09:24]query_string will be loaded in cgi processing [14:09:24]execute_cgi json_proto POST (null) [14:09:24]execute_cgi path=json_proto method=POST [14:09:24]POST find Content-Length [14:09:24]Host: 172.17.42.131:8080 [14:09:24]Content-Length: 677 [14:09:24]Content-Type: application/json [14:09:24] [14:09:24]POST finish read [14:09:24]Found Content-Length = 677 [14:09:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:24]execute_script... [14:09:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210362", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:09:24]POST & json_proto [14:09:24]process_json_proto [14:09:24]json parsed OK: [14:09:24]protocol is kg_v1.0 [14:09:24]action value=close_receipt [14:09:24]process_action close_receipt [14:09:24]cmd_close_receipt [14:09:24]MH_GetDate [14:09:24]Write to MH i2c: F0 00 00 23 07 19 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: F0 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: F0 09 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: F0 09 00 23 07 00 15 B2 17 67 A0 18 CA 66 4F [14:09:24]GetLastDocTimeStamp 1729605969 [14:09:24]current date 1729606165 [14:09:24]FM_GetShiftState [14:09:24]SAM_PROTO_GetShiftState [14:09:24]wFMCommunicate request_size=4 [14:09:24]MH_SAM_APDU [14:09:24]CAPDU: 80 13 01 00 [14:09:24]Write to MH i2c: E2 08 00 24 07 80 13 01 00 00 00 00 00 A8 [14:09:24]Write i2c OK [14:09:24]MH_I2C_Read... [14:09:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:24]Read from MH i2c: E2 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 0E 00 [14:09:24]MH_I2C_Read... [14:09:24]Read from MH i2c: E2 0E 00 24 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [14:09:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:09:24]wFMCommunicate OK [14:09:24]SAM_PROTO_GetShiftState done [14:09:24]FM_GetShiftState done [14:09:24]opened in 1729556094 [14:09:24]opened+sec_in_day 1729642494 [14:09:24]quantity*price = 20003 [14:09:24]sum+1 = 20004 [14:09:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 336 22.10.2024 14:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188307 ФПД: 146433291020734 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140925&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188307&fm=146433291020734&tin=02508201610067®Number=0000000000100030&sum=20000 [14:09:25]StoreToDocumentArchive [14:09:25]shift 461 fd 188307 [14:09:25]save to /storage/0461/doc_00188307 [14:09:25]save last doc name /storage/0461/doc_00188307 to /storage/kkm_last_doc_name [14:09:25]save OK [14:09:25]Clear old archive folders... [14:09:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:09:25]tlvbuf is 0143CFE0 [14:09:25]SAM_PROTO_ClearQueue [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 09 00 00 [14:09:25]Write to MH i2c: E2 08 00 31 07 80 09 00 00 00 00 00 00 AA [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [14:09:25]RAPDU: 90 00 [14:09:25]wFMCommunicate OK [14:09:25]SAM_PROTO_ClearQueue done [14:09:25]KKMCreateOFDPacket [14:09:25]OFDProtocolAddRootSTLVToBuf [14:09:25]FM_MakeSignedData [14:09:25]FM_MakeSignedData [14:09:25]SAM_PROTO_SignData [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 0D 01 02 [14:09:25]Write to MH i2c: E2 08 00 32 07 80 0D 01 02 00 00 00 00 B2 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [14:09:25]RAPDU: 90 00 [14:09:25]wFMCommunicate OK [14:09:25]wFMCommunicate request_size=255 [14:09:25]MH_SAM_APDU [14:09: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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 15 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DF 02 00 35 04 06 00 85 [14:09:25]Write to MH i2c: E2 02 01 33 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 15 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DF 02 00 35 04 06 00 85 00 00 44 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [14:09:25]RAPDU: 90 00 [14:09:25]wFMCommunicate OK [14:09:25]wFMCommunicate request_size=10 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 0D 02 02 05 2E 28 4B 69 BE [14:09:25]Write to MH i2c: E2 0D 00 34 07 80 0D 02 02 05 00 2E 28 4B 69 BE 00 00 87 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [14:09:25]RAPDU: 90 00 [14:09:25]wFMCommunicate OK [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 0D 03 02 [14:09:25]Write to MH i2c: E2 08 00 35 07 80 0D 03 02 00 00 00 00 B7 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 0B 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 0B 00 35 07 00 80 7F 36 CC 00 8A E0 19 90 00 3C [14:09:25]RAPDU: 80 7F 36 CC 00 8A E0 19 90 00 [14:09:25]wFMCommunicate OK [14:09:25]SAM_PROTO_SignData done [14:09:25]FM_MakeSignedData done [14:09:25]CreateOFDProtocolMessage [14:09:25]wFMCommunicate request_size=4 [14:09:25]MH_SAM_APDU [14:09:25]CAPDU: 80 11 00 00 [14:09:25]Write to MH i2c: E2 08 00 36 07 80 11 00 00 00 00 00 00 B7 [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:25]Read from MH i2c: E2 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 17 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: E2 17 00 36 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [14:09:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:09:25]wFMCommunicate OK [14:09:25]CreateOFDProtocolMessage done [14:09:25]OFDSenderStorePacket 188307 [14:09:25]StoreOFDPacket docnum=188307 [14:09:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 E4 07 01 B5 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 15 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DF 02 00 35 04 06 00 85 2E 28 4B 69 BE 80 7F 36 CC 00 8A E0 19 [14:09:25]CheckFolder [14:09:25]dirname=/storage/ofd_packets [14:09:25]CheckFolder done [14:09:25]ProducePacketName [14:09:25]name=ofd_packets/00188307 [14:09:25]NVStorageSaveData ofd_packets/00188307 [14:09:25]File name is /storage/ofd_packets/00188307 [14:09:25]Write 301 bytes [14:09:25]NVStorageSaveData done [14:09:25]OFDSenderStorePacket done [14:09:25]KKMCreateOFDPacket done [14:09:25]NVStorageSaveData kkm_last_timestamp [14:09:25]File name is /storage/kkm_last_timestamp [14:09:25]Write 4 bytes [14:09:25]NVStorageSaveData done [14:09:25]ExternCall_PrintAddStr [14:09:25]wPrintStart [14:09:25]Write to MH i2c: 01 00 00 37 07 3E [14:09:25]Write i2c OK [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: 01 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: 01 07 00 [14:09:25]MH_I2C_Read... [14:09:25]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 FF 0F 53 [14:09:25]RasterBufferAndPrint [14:09:25]line Счет N : (1)210362 [14:09:25]line ИНН: 02508201610067 [14:09:25]line Контрольно-Кассовый Чек [14:09:25]line ПРОДАЖА [14:09:25]line ТРК (МРК, ГНК) : 22 [14:09:25]line Товар: 2710124130 [14:09:25]line Аи-92-К-3 [14:09:25]line 2.990 * 66.90 [14:09:25]line = 200.03 [14:09:25]line НДС 12% НСП 1% [14:09:25]line > о реализуемом товаре [14:09:25]line ОКРУГЛЕНИЕ: -0.03 [14:09:25]line ИТОГО: 200.00 [14:09:25]line Внесено: 200.00 [14:09:25]line СДАЧА: 0.00 [14:09:25]line НСП 1% : 1.77 [14:09:25]line НДС 12% : 21.24 [14:09:25]line Наличными: 200.00 [14:09:25]line Безнал.: 0.00 [14:09:25]line Место: АЗС № 86 "Партнер Нефть" [14:09:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:09:25]line СНО: Общий режим [14:09:25]line Чек 336 22.10.2024 14:09 [14:09:25]line Смена: 461 ФФД: 1.0 [14:09:25]line ЗНМ: 0300000155 [14:09:25]line РНМ: 0000000000100030 [14:09:25]line Версия ККМ: 001 [14:09:25]line ФМ: 0000000000965340 [14:09:25]line ФД: 188307 [14:09:25]line ФПД: 146433291020734 [14:09:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T140925&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188307&fm=146433291020734&tin=02508201610067®Number=0000000000100030&sum=20000 [14:09:25]written 0, free lines is 4095 [14:09:25]OFD Sender: Processing packet 188307 [packets to send 1062, broken 1061] [14:09:25]ProducePacketName [14:09:25]name=ofd_packets/00188307 [14:09:25]OFD Sender: To server: pG, [14:09:25]CommunicateWithHost lk.salyk.kg:30040 [14:09:25]ConnectInit lk.salyk.kg [14:09:26]Connected sock=10 [14:09:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 E4 07 01 B5 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 01 00 00 F4 03 04 00 15 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DF 02 00 35 04 06 00 85 2E 28 4B 69 BE 80 7F 36 CC 00 8A E0 19 [14:09:26]Write to MH i2c: 01 00 00 62 07 69 [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: 01 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: 01 07 00 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 68 0C E4 [14:09:26]RasterBufferAndPrint [14:09:26]line [14:09:26]line [14:09:26]line [14:09:26]line [14:09:26]line [14:09:26]written 0, free lines is 3179 [14:09:26]MH_Cut [14:09:26]Write to MH i2c: D1 01 00 69 07 01 42 [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: D1 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: D1 01 00 [14:09:26]MH_I2C_Read... [14:09:26]Read from MH i2c: D1 01 00 69 07 00 41 [14:09:26]Write to MH i2c: 01 00 00 6A 07 71 [14:09:26]Write i2c OK [14:09:26]MH_I2C_Read... [14:09:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 65 47 00 6D 13 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 DF 02 00 F4 03 04 00 02 5C 17 67 B6 04 01 00 00 72 F6 C3 4E 2E EF A2 FE [14:09:26]CommunicateWithHost err = 0 [14:09:26]CheckOFDResponse [14:09:26]1017 (14) - 77093643461234 [14:09:26]1041 (16) - 0000000000965340 [14:09:26]1040 (4) - 188307 [14:09:26]1012 (4) - 22.10.2024 08:02 [14:09:26]1206 (1) - 0 [14:09:26]OFD Sender: Remove packet 188307 [14:09:26]ProducePacketName [14:09:26]name=ofd_packets/00188307 [14:09:26]NVStorageDeleteData [14:09:26]OFD Sender: No OFD packet to send [14:09:27]*** Cut start [14:09:27]*** Partial cut [14:09:27]*** CUTSNS_PIN = 1 [14:09:27]*** CUTSNS_PIN = 0 [14:09:27]*** Brake cut motor [14:09:28]Read from MH i2c: 01 [14:09:28]MH_I2C_Read... [14:09:28]*** Stop cut motor [14:09:28]*** Cut end [14:09:28]Read from MH i2c: 01 07 00 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [14:09:28]process_action close_receipt done [14:09:28]requested_data is exist [14:09:28]produce_requested_data [14:09:28]requested_item fm.sn is exist - process it [14:09:28]wFMCommunicate request_size=4 [14:09:28]MH_SAM_APDU [14:09:28]CAPDU: 80 11 00 00 [14:09:28]Write to MH i2c: E2 08 00 6B 07 80 11 00 00 00 00 00 00 EC [14:09:28]Write i2c OK [14:09:28]MH_I2C_Read... [14:09:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:09:28]Read from MH i2c: E2 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: E2 17 00 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: E2 17 00 6B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [14:09:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:09:28]wFMCommunicate OK [14:09:28]requested_item fd.num is exist - process it [14:09:28]SAM_PROTO_GetFieldsCounters [14:09:28]wFMCommunicate request_size=4 [14:09:28]MH_SAM_APDU [14:09:28]CAPDU: 80 13 00 00 [14:09:28]Write to MH i2c: E2 08 00 6C 07 80 13 00 00 00 00 00 00 EF [14:09:28]Write i2c OK [14:09:28]MH_I2C_Read... [14:09:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:09:28]Read from MH i2c: E2 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: E2 62 00 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: E2 62 00 6C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [14:09:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 50 01 00 00 5E 04 04 00 50 01 00 00 57 04 04 00 51 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:09:28]wFMCommunicate OK [14:09:28]SAM_PROTO_GetFieldsCounters done [14:09:28]requested_item shift.num is exist - process it [14:09:28]requested_item shift.opened is exist - process it [14:09:28]req_shift_opened [14:09:28]FM_GetShiftState [14:09:28]SAM_PROTO_GetShiftState [14:09:28]wFMCommunicate request_size=4 [14:09:28]MH_SAM_APDU [14:09:28]CAPDU: 80 13 01 00 [14:09:28]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [14:09:28]Write i2c OK [14:09:28]MH_I2C_Read... [14:09:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:09:28]Read from MH i2c: E2 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: E2 0E 00 [14:09:28]MH_I2C_Read... [14:09:28]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E6 [14:09:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:09:28]wFMCommunicate OK [14:09:28]SAM_PROTO_GetShiftState done [14:09:28]FM_GetShiftState done [14:09:28]req_shift_opened done [14:09:28]requested_item shift.open_date is exist - process it [14:09:28]req_shift_open_date [14:09:28]req_shift_open_date done [14:09:28]produce_requested_data done [14:09:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188307,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:09:28]process_action_free close_receipt [14:09:28]json_value_free [14:09:28]json_value_free done [14:09:28]process_json_proto returns [14:09:28]Send response to host [14:09:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188307,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:09:28]free response buf [14:09:28]execute_script done [14:09:28]execute_script returns [14:09:28]free content buf [14:09:28]Sock 9.Close socket [14:09:28]Sock 9.Thread stoped [14:09:31]OFD Sender: No OFD packet to send [14:09:37]OFD Sender: No OFD packet to send [14:09:42]OFD Sender: No OFD packet to send [14:09:47]OFD Sender: No OFD packet to send [14:09:52]OFD Sender: No OFD packet to send [14:09:57]OFD Sender: No OFD packet to send [14:10:02]OFD Sender: No OFD packet to send [14:10:07]OFD Sender: No OFD packet to send [14:10:12]OFD Sender: No OFD packet to send [14:10:17]OFD Sender: No OFD packet to send [14:10:22]OFD Sender: No OFD packet to send [14:10:27]OFD Sender: No OFD packet to send [14:10:32]OFD Sender: No OFD packet to send [14:10:37]OFD Sender: No OFD packet to send [14:10:42]OFD Sender: No OFD packet to send [14:10:47]OFD Sender: No OFD packet to send [14:10:52]OFD Sender: No OFD packet to send [14:10:57]OFD Sender: No OFD packet to send [14:11:00]accept exits with 7 [14:11:00]New connection [14:11:00]New thread 3067161956 created [14:11:00]Thread 3067305316 joined [14:11:00]Waiting for new connection... [14:11:00] Sock 7.Parse request [14:11:00]Sock 7.Check first char [14:11:00]Sock 7.First char is OK [14:11:00]request: POST /json_proto HTTP/1.0 [14:11:00]Method: POST [14:11:00]URL: /json_proto [14:11:00]Method is POST - this is cgi request [14:11:00]url: /json_proto [14:11:00]query_string will be loaded in cgi processing [14:11:00]execute_cgi json_proto POST (null) [14:11:00]execute_cgi path=json_proto method=POST [14:11:00]POST find Content-Length [14:11:00]Host: 172.17.42.131:8080 [14:11:00]Content-Length: 754 [14:11:00]Content-Type: application/json [14:11:00] [14:11:00]POST finish read [14:11:00]Found Content-Length = 754 [14:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:00]execute_script... [14:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210363", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30053393", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:00]POST & json_proto [14:11:00]process_json_proto [14:11:00]json parsed OK: [14:11:00]protocol is kg_v1.0 [14:11:00]action value=close_receipt [14:11:00]process_action close_receipt [14:11:00]cmd_close_receipt [14:11:00]MH_GetDate [14:11:00]Write to MH i2c: F0 00 00 6E 07 64 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: F0 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: F0 09 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: F0 09 00 6E 07 00 75 B2 17 67 A0 18 CA 66 FA [14:11:00]GetLastDocTimeStamp 1729606165 [14:11:00]current date 1729606261 [14:11:00]FM_GetShiftState [14:11:00]SAM_PROTO_GetShiftState [14:11:00]wFMCommunicate request_size=4 [14:11:00]MH_SAM_APDU [14:11:00]CAPDU: 80 13 01 00 [14:11:00]Write to MH i2c: E2 08 00 6F 07 80 13 01 00 00 00 00 00 F3 [14:11:00]Write i2c OK [14:11:00]MH_I2C_Read... [14:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:00]Read from MH i2c: E2 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0E 00 [14:11:00]MH_I2C_Read... [14:11:00]Read from MH i2c: E2 0E 00 6F 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E8 [14:11:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:11:00]wFMCommunicate OK [14:11:00]SAM_PROTO_GetShiftState done [14:11:00]FM_GetShiftState done [14:11:00]opened in 1729556094 [14:11:00]opened+sec_in_day 1729642494 [14:11:00]quantity*price = 0 [14:11:00]sum+1 = 1 [14:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 337 22.10.2024 14:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30053393 ФМ: 0000000000965340 ФД: 188308 ФПД: 226961297749400 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141101&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188308&fm=226961297749400&tin=02508201610067®Number=0000000000100030&sum=0 [14:11:01]StoreToDocumentArchive [14:11:01]shift 461 fd 188308 [14:11:01]save to /storage/0461/doc_00188308 [14:11:01]save last doc name /storage/0461/doc_00188308 to /storage/kkm_last_doc_name [14:11:01]save OK [14:11:01]Clear old archive folders... [14:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:01]tlvbuf is B6EFE730 [14:11:01]SAM_PROTO_ClearQueue [14:11:01]wFMCommunicate request_size=4 [14:11:01]MH_SAM_APDU [14:11:01]CAPDU: 80 09 00 00 [14:11:01]Write to MH i2c: E2 08 00 7C 07 80 09 00 00 00 00 00 00 F5 [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:01]Read from MH i2c: E2 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: E2 03 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [14:11:01]RAPDU: 90 00 [14:11:01]wFMCommunicate OK [14:11:01]SAM_PROTO_ClearQueue done [14:11:01]KKMCreateOFDPacket [14:11:01]OFDProtocolAddRootSTLVToBuf [14:11:01]FM_MakeSignedData [14:11:01]FM_MakeSignedData [14:11:01]SAM_PROTO_SignData [14:11:01]wFMCommunicate request_size=4 [14:11:01]MH_SAM_APDU [14:11:01]CAPDU: 80 0D 01 02 [14:11:01]Write to MH i2c: E2 08 00 7D 07 80 0D 01 02 00 00 00 00 FD [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:01]Read from MH i2c: E2 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: E2 03 00 [14:11:01]MH_I2C_Read... [14:11:01]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [14:11:01]RAPDU: 90 00 [14:11:01]wFMCommunicate OK [14:11:01]wFMCommunicate request_size=255 [14:11:01]MH_SAM_APDU [14:11:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 75 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DF 02 00 35 04 06 00 CE [14:11:01]Write to MH i2c: E2 02 01 7E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 75 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DF 02 00 35 04 06 00 CE 00 00 2A [14:11:01]Write i2c OK [14:11:01]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 03 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [14:11:02]RAPDU: 90 00 [14:11:02]wFMCommunicate OK [14:11:02]wFMCommunicate request_size=10 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 0D 02 02 05 6B 8B 87 B5 98 [14:11:02]Write to MH i2c: E2 0D 00 7F 07 80 0D 02 02 05 00 6B 8B 87 B5 98 00 00 D4 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 03 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [14:11:02]RAPDU: 90 00 [14:11:02]wFMCommunicate OK [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 0D 03 02 [14:11:02]Write to MH i2c: E2 08 00 80 07 80 0D 03 02 00 00 00 00 02 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0B 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 0B 00 80 07 00 F8 4A 02 35 AD F4 AA 00 90 00 C7 [14:11:02]RAPDU: F8 4A 02 35 AD F4 AA 00 90 00 [14:11:02]wFMCommunicate OK [14:11:02]SAM_PROTO_SignData done [14:11:02]FM_MakeSignedData done [14:11:02]CreateOFDProtocolMessage [14:11:02]wFMCommunicate request_size=4 [14:11:02]MH_SAM_APDU [14:11:02]CAPDU: 80 11 00 00 [14:11:02]Write to MH i2c: E2 08 00 81 07 80 11 00 00 00 00 00 00 02 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:02]Read from MH i2c: E2 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: E2 17 00 81 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [14:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:11:02]wFMCommunicate OK [14:11:02]CreateOFDProtocolMessage done [14:11:02]OFDSenderStorePacket 188308 [14:11:02]StoreOFDPacket docnum=188308 [14:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 7F 07 01 97 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 75 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DF 02 00 35 04 06 00 CE 6B 8B 87 B5 98 F8 4A 02 35 AD F4 AA 00 [14:11:02]CheckFolder [14:11:02]dirname=/storage/ofd_packets [14:11:02]CheckFolder done [14:11:02]ProducePacketName [14:11:02]name=ofd_packets/00188308 [14:11:02]NVStorageSaveData ofd_packets/00188308 [14:11:02]File name is /storage/ofd_packets/00188308 [14:11:02]Write 301 bytes [14:11:02]NVStorageSaveData done [14:11:02]OFDSenderStorePacket done [14:11:02]KKMCreateOFDPacket done [14:11:02]NVStorageSaveData kkm_last_timestamp [14:11:02]File name is /storage/kkm_last_timestamp [14:11:02]Write 4 bytes [14:11:02]NVStorageSaveData done [14:11:02]ExternCall_PrintAddStr [14:11:02]wPrintStart [14:11:02]Write to MH i2c: 01 00 00 82 07 89 [14:11:02]Write i2c OK [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 07 00 [14:11:02]MH_I2C_Read... [14:11:02]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 FF 0F 9E [14:11:02]RasterBufferAndPrint [14:11:02]line Счет N : (1)210363 [14:11:02]line ИНН: 02508201610067 [14:11:02]line Контрольно-Кассовый Чек [14:11:02]line ПРОДАЖА [14:11:02]line ТРК (МРК, ГНК) : 42 [14:11:02]line Товар: 2710124130 [14:11:02]line Аи-92-К-3 [14:11:02]line 10.000 * 0.00 [14:11:02]line = 0.00 [14:11:02]line НДС 12% НСП 1% [14:11:02]line > о реализуемом товаре [14:11:02]line ИТОГО: 0.00 [14:11:02]line НСП 1% : 0.00 [14:11:02]line НДС 12% : 0.00 [14:11:02]line Наличными: 0.00 [14:11:02]line Безнал.: 0.00 [14:11:02]line Место: АЗС № 86 "Партнер Нефть" [14:11:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:11:02]line СНО: Общий режим [14:11:02]line Чек 337 22.10.2024 14:11 [14:11:02]line Смена: 461 ФФД: 1.0 [14:11:02]line ЗНМ: 0300000155 [14:11:02]line РНМ: 0000000000100030 [14:11:02]line Версия ККМ: 001 [14:11:02]line Талоны: ТК ГПНА Online [14:11:02]line 30053393 [14:11:02]line ФМ: 0000000000965340 [14:11:02]line ФД: 188308 [14:11:02]line ФПД: 226961297749400 [14:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141101&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188308&fm=226961297749400&tin=02508201610067®Number=0000000000100030&sum=0 [14:11:02]OFD Sender: Processing packet 188308 [packets to send 1062, broken 1061] [14:11:02]ProducePacketName [14:11:02]name=ofd_packets/00188308 [14:11:02]OFD Sender: To server: pG, [14:11:02]CommunicateWithHost lk.salyk.kg:30040 [14:11:02]ConnectInit lk.salyk.kg [14:11:02]written 0, free lines is 4095 [14:11:02]Connected sock=10 [14:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 7F 07 01 97 88 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 01 00 00 F4 03 04 00 75 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 DF 02 00 35 04 06 00 CE 6B 8B 87 B5 98 F8 4A 02 35 AD F4 AA 00 [14:11:03]Write to MH i2c: 01 00 00 AC 07 B3 [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: 01 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: 01 07 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: 01 07 00 AC 07 00 00 00 00 00 88 0C 4E [14:11:03]RasterBufferAndPrint [14:11:03]line [14:11:03]line [14:11:03]line [14:11:03]line [14:11:03]line [14:11:03]written 0, free lines is 3211 [14:11:03]MH_Cut [14:11:03]Write to MH i2c: D1 01 00 B3 07 01 8C [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: D1 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: D1 01 00 [14:11:03]MH_I2C_Read... [14:11:03]Read from MH i2c: D1 01 00 B3 07 00 8B [14:11:03]Write to MH i2c: 01 00 00 B4 07 BB [14:11:03]Write i2c OK [14:11:03]MH_I2C_Read... [14:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BA 6A 47 00 CD 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 39 36 35 33 34 30 10 04 04 00 94 DF 02 00 F4 03 04 00 63 5C 17 67 B6 04 01 00 00 98 E4 C1 39 0A 2B E9 E7 [14:11:03]CommunicateWithHost err = 0 [14:11:03]CheckOFDResponse [14:11:03]1017 (14) - 77093643461234 [14:11:03]1041 (16) - 0000000000965340 [14:11:03]1040 (4) - 188308 [14:11:03]1012 (4) - 22.10.2024 08:03 [14:11:03]1206 (1) - 0 [14:11:03]OFD Sender: Remove packet 188308 [14:11:03]ProducePacketName [14:11:03]name=ofd_packets/00188308 [14:11:03]NVStorageDeleteData [14:11:03]OFD Sender: No OFD packet to send [14:11:04]*** Cut start [14:11:04]*** Partial cut [14:11:04]*** CUTSNS_PIN = 1 [14:11:04]*** CUTSNS_PIN = 0 [14:11:04]*** Brake cut motor [14:11:04]Read from MH i2c: 01 [14:11:04]MH_I2C_Read... [14:11:04]*** Stop cut motor [14:11:04]*** Cut end [14:11:04]Read from MH i2c: 01 07 00 [14:11:04]MH_I2C_Read... [14:11:04]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 FF 0F D0 [14:11:04]process_action close_receipt done [14:11:04]requested_data is exist [14:11:04]produce_requested_data [14:11:04]requested_item fm.sn is exist - process it [14:11:04]wFMCommunicate request_size=4 [14:11:04]MH_SAM_APDU [14:11:04]CAPDU: 80 11 00 00 [14:11:04]Write to MH i2c: E2 08 00 B5 07 80 11 00 00 00 00 00 00 36 [14:11:04]Write i2c OK [14:11:04]MH_I2C_Read... [14:11:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 17 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 17 00 B5 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [14:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:11:05]wFMCommunicate OK [14:11:05]requested_item fd.num is exist - process it [14:11:05]SAM_PROTO_GetFieldsCounters [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 13 00 00 [14:11:05]Write to MH i2c: E2 08 00 B6 07 80 13 00 00 00 00 00 00 39 [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 62 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 62 00 B6 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [14:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 51 01 00 00 5E 04 04 00 51 01 00 00 57 04 04 00 52 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:05]wFMCommunicate OK [14:11:05]SAM_PROTO_GetFieldsCounters done [14:11:05]requested_item shift.num is exist - process it [14:11:05]requested_item shift.opened is exist - process it [14:11:05]req_shift_opened [14:11:05]FM_GetShiftState [14:11:05]SAM_PROTO_GetShiftState [14:11:05]wFMCommunicate request_size=4 [14:11:05]MH_SAM_APDU [14:11:05]CAPDU: 80 13 01 00 [14:11:05]Write to MH i2c: E2 08 00 B7 07 80 13 01 00 00 00 00 00 3B [14:11:05]Write i2c OK [14:11:05]MH_I2C_Read... [14:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:05]Read from MH i2c: E2 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 0E 00 [14:11:05]MH_I2C_Read... [14:11:05]Read from MH i2c: E2 0E 00 B7 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 30 [14:11:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:11:05]wFMCommunicate OK [14:11:05]SAM_PROTO_GetShiftState done [14:11:05]FM_GetShiftState done [14:11:05]req_shift_opened done [14:11:05]requested_item shift.open_date is exist - process it [14:11:05]req_shift_open_date [14:11:05]req_shift_open_date done [14:11:05]produce_requested_data done [14:11:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188308,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:11:05]process_action_free close_receipt [14:11:05]json_value_free [14:11:05]json_value_free done [14:11:05]process_json_proto returns [14:11:05]Send response to host [14:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188308,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:11:05]free response buf [14:11:05]execute_script done [14:11:05]execute_script returns [14:11:05]free content buf [14:11:05]Sock 7.Close socket [14:11:05]Sock 7.Thread stoped [14:11:08]OFD Sender: No OFD packet to send [14:11:13]OFD Sender: No OFD packet to send [14:11:18]OFD Sender: No OFD packet to send [14:11:23]OFD Sender: No OFD packet to send [14:11:27]accept exits with 9 [14:11:27]New connection [14:11:27]New thread 3067305316 created [14:11:27]Thread 3067161956 joined [14:11:27]Waiting for new connection... [14:11:27] Sock 9.Parse request [14:11:27]Sock 9.Check first char [14:11:27]Sock 9.First char is OK [14:11:27]request: POST /json_proto HTTP/1.0 [14:11:27]Method: POST [14:11:27]URL: /json_proto [14:11:27]Method is POST - this is cgi request [14:11:27]url: /json_proto [14:11:27]query_string will be loaded in cgi processing [14:11:27]execute_cgi json_proto POST (null) [14:11:27]execute_cgi path=json_proto method=POST [14:11:27]POST find Content-Length [14:11:27]Host: 172.17.42.131:8080 [14:11:27]Content-Length: 816 [14:11:27]Content-Type: application/json [14:11:27] [14:11:27]POST finish read [14:11:27]Found Content-Length = 816 [14:11:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:27]execute_script... [14:11: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)210364", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:11:27]POST & json_proto [14:11:27]process_json_proto [14:11:27]json parsed OK: [14:11:27]protocol is kg_v1.0 [14:11:27]action value=close_receipt [14:11:27]process_action close_receipt [14:11:27]cmd_close_receipt [14:11:27]MH_GetDate [14:11:27]Write to MH i2c: F0 00 00 B8 07 AE [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: F0 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: F0 09 00 [14:11:27]MH_I2C_Read... [14:11:27]Read from MH i2c: F0 09 00 B8 07 00 91 B2 17 67 A0 18 CA 66 60 [14:11:27]GetLastDocTimeStamp 1729606261 [14:11:27]current date 1729606289 [14:11:27]FM_GetShiftState [14:11:27]SAM_PROTO_GetShiftState [14:11:27]wFMCommunicate request_size=4 [14:11:27]MH_SAM_APDU [14:11:27]CAPDU: 80 13 01 00 [14:11:27]Write to MH i2c: E2 08 00 B9 07 80 13 01 00 00 00 00 00 3D [14:11:27]Write i2c OK [14:11:27]MH_I2C_Read... [14:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:28]Read from MH i2c: E2 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 0E 00 [14:11:28]MH_I2C_Read... [14:11:28]Read from MH i2c: E2 0E 00 B9 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 32 [14:11:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:11:28]wFMCommunicate OK [14:11:28]SAM_PROTO_GetShiftState done [14:11:28]FM_GetShiftState done [14:11:28]opened in 1729556094 [14:11:28]opened+sec_in_day 1729642494 [14:11:28]quantity*price = 50041 [14:11:28]sum+1 = 50042 [14:11:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 338 22.10.2024 14:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188309 ФПД: 78748293095493 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188309&fm=78748293095493&tin=02508201610067®Number=0000000000100030&sum=50041 [14:11:29]StoreToDocumentArchive [14:11:29]shift 461 fd 188309 [14:11:29]save to /storage/0461/doc_00188309 [14:11:29]save last doc name /storage/0461/doc_00188309 to /storage/kkm_last_doc_name [14:11:29]save OK [14:11:29]Clear old archive folders... [14:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:11:29]tlvbuf is B6FAE850 [14:11:29]SAM_PROTO_ClearQueue [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 09 00 00 [14:11:29]Write to MH i2c: E2 08 00 C6 07 80 09 00 00 00 00 00 00 3F [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 C6 07 00 90 00 41 [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]SAM_PROTO_ClearQueue done [14:11:29]KKMCreateOFDPacket [14:11:29]OFDProtocolAddRootSTLVToBuf [14:11:29]FM_MakeSignedData [14:11:29]FM_MakeSignedData [14:11:29]SAM_PROTO_SignData [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 01 02 [14:11:29]Write to MH i2c: E2 08 00 C7 07 80 0D 01 02 00 00 00 00 47 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]wFMCommunicate request_size=255 [14:11:29]MH_SAM_APDU [14:11: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 91 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DF 02 00 35 04 06 00 47 [14:11:29]Write to MH i2c: E2 02 01 C8 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 91 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DF 02 00 35 04 06 00 47 00 00 AB [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]wFMCommunicate request_size=10 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 02 02 05 9F 04 09 60 45 [14:11:29]Write to MH i2c: E2 0D 00 C9 07 80 0D 02 02 05 00 9F 04 09 60 45 00 00 A5 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [14:11:29]RAPDU: 90 00 [14:11:29]wFMCommunicate OK [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 0D 03 02 [14:11:29]Write to MH i2c: E2 08 00 CA 07 80 0D 03 02 00 00 00 00 4C [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 0B 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 0B 00 CA 07 00 FF 9E 66 6A AD D4 0A 9A 90 00 DF [14:11:29]RAPDU: FF 9E 66 6A AD D4 0A 9A 90 00 [14:11:29]wFMCommunicate OK [14:11:29]SAM_PROTO_SignData done [14:11:29]FM_MakeSignedData done [14:11:29]CreateOFDProtocolMessage [14:11:29]wFMCommunicate request_size=4 [14:11:29]MH_SAM_APDU [14:11:29]CAPDU: 80 11 00 00 [14:11:29]Write to MH i2c: E2 08 00 CB 07 80 11 00 00 00 00 00 00 4C [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:29]Read from MH i2c: E2 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 17 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: E2 17 00 CB 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9A [14:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:11:29]wFMCommunicate OK [14:11:29]CreateOFDProtocolMessage done [14:11:29]OFDSenderStorePacket 188309 [14:11:29]StoreOFDPacket docnum=188309 [14:11:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BA 87 07 01 7A AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 91 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DF 02 00 35 04 06 00 47 9F 04 09 60 45 FF 9E 66 6A AD D4 0A 9A [14:11:29]CheckFolder [14:11:29]dirname=/storage/ofd_packets [14:11:29]CheckFolder done [14:11:29]ProducePacketName [14:11:29]name=ofd_packets/00188309 [14:11:29]NVStorageSaveData ofd_packets/00188309 [14:11:29]File name is /storage/ofd_packets/00188309 [14:11:29]Write 301 bytes [14:11:29]NVStorageSaveData done [14:11:29]OFDSenderStorePacket done [14:11:29]KKMCreateOFDPacket done [14:11:29]NVStorageSaveData kkm_last_timestamp [14:11:29]File name is /storage/kkm_last_timestamp [14:11:29]Write 4 bytes [14:11:29]NVStorageSaveData done [14:11:29]ExternCall_PrintAddStr [14:11:29]wPrintStart [14:11:29]Write to MH i2c: 01 00 00 CC 07 D3 [14:11:29]Write i2c OK [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 07 00 [14:11:29]MH_I2C_Read... [14:11:29]Read from MH i2c: 01 07 00 CC 07 00 00 00 00 00 FF 0F E8 [14:11:29]RasterBufferAndPrint [14:11:29]line Счет N : (1)210364 [14:11:29]line ИНН: 02508201610067 [14:11:29]line Контрольно-Кассовый Чек [14:11:29]line ПРОДАЖА [14:11:29]line ТРК (МРК, ГНК) : 12 [14:11:29]line Товар: 2710124130 [14:11:29]line Аи-92-К-3 [14:11:29]line 7.480 * 66.90 [14:11:29]line = 500.41 [14:11:29]line НДС 12% НСП 1% [14:11:29]line > о реализуемом товаре [14:11:29]line ИТОГО: 500.41 [14:11:29]line НСП 1% : 4.43 [14:11:29]line НДС 12% : 53.14 [14:11:29]line Наличными: 0.00 [14:11:29]line Безнал.: 500.41 [14:11:29]line Место: АЗС № 86 "Партнер Нефть" [14:11:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:11:29]line СНО: Общий режим [14:11:29]line Чек 338 22.10.2024 14:11 [14:11:29]line Смена: 461 ФФД: 1.0 [14:11:29]line ЗНМ: 0300000155 [14:11:29]line РНМ: 0000000000100030 [14:11:29]line Версия ККМ: 001 [14:11:29]line Платежная система: Бакай Банк [14:11:29]line ФМ: 0000000000965340 [14:11:29]line ФД: 188309 [14:11:29]line ФПД: 78748293095493 [14:11:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188309&fm=78748293095493&tin=02508201610067®Number=0000000000100030&sum=50041 [14:11:29]written 0, free lines is 4095 [14:11:29]OFD Sender: Processing packet 188309 [packets to send 1062, broken 1061] [14:11:29]ProducePacketName [14:11:29]name=ofd_packets/00188309 [14:11:29]OFD Sender: To server: pG, [14:11:29]CommunicateWithHost lk.salyk.kg:30040 [14:11:29]ConnectInit lk.salyk.kg [14:11:30]Write to MH i2c: 01 00 00 F6 07 FD [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 07 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: 01 07 00 F6 07 00 00 00 00 00 81 0C 91 [14:11:30]RasterBufferAndPrint [14:11:30]line [14:11:30]line [14:11:30]line [14:11:30]line [14:11:30]line [14:11:30]written 0, free lines is 3204 [14:11:30]MH_Cut [14:11:30]Write to MH i2c: D1 01 00 FD 07 01 D6 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: D1 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: D1 01 00 [14:11:30]MH_I2C_Read... [14:11:30]Read from MH i2c: D1 01 00 FD 07 00 D5 [14:11:30]Write to MH i2c: 01 00 00 FE 07 05 [14:11:30]Write i2c OK [14:11:30]MH_I2C_Read... [14:11:30]Connected sock=11 [14:11:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BA 87 07 01 7A AC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 01 00 00 F4 03 04 00 91 B2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 95 DF 02 00 35 04 06 00 47 9F 04 09 60 45 FF 9E 66 6A AD D4 0A 9A [14:11:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 DE 47 00 9E 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 39 36 35 33 34 30 10 04 04 00 95 DF 02 00 F4 03 04 00 7E 5C 17 67 B6 04 01 00 00 69 FA 29 CA 20 EB 31 D7 [14:11:30]CommunicateWithHost err = 0 [14:11:30]CheckOFDResponse [14:11:30]1017 (14) - 77093643461234 [14:11:30]1041 (16) - 0000000000965340 [14:11:30]1040 (4) - 188309 [14:11:30]1012 (4) - 22.10.2024 08:04 [14:11:30]1206 (1) - 0 [14:11:30]OFD Sender: Remove packet 188309 [14:11:30]ProducePacketName [14:11:30]name=ofd_packets/00188309 [14:11:30]NVStorageDeleteData [14:11:31]OFD Sender: No OFD packet to send [14:11:31]*** Cut start [14:11:31]*** Partial cut [14:11:31]*** CUTSNS_PIN = 1 [14:11:31]*** CUTSNS_PIN = 0 [14:11:31]*** Brake cut motor [14:11:31]Read from MH i2c: 01 [14:11:31]MH_I2C_Read... [14:11:31]*** Stop cut motor [14:11:31]*** Cut end [14:11:31]Read from MH i2c: 01 07 00 [14:11:31]MH_I2C_Read... [14:11:31]Read from MH i2c: 01 07 00 FE 07 00 00 00 00 00 FF 0F 1A [14:11:31]process_action close_receipt done [14:11:31]requested_data is exist [14:11:31]produce_requested_data [14:11:31]requested_item fm.sn is exist - process it [14:11:31]wFMCommunicate request_size=4 [14:11:31]MH_SAM_APDU [14:11:31]CAPDU: 80 11 00 00 [14:11:31]Write to MH i2c: E2 08 00 FF 07 80 11 00 00 00 00 00 00 80 [14:11:31]Write i2c OK [14:11:31]MH_I2C_Read... [14:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:11:32]Read from MH i2c: E2 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 17 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 17 00 FF 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [14:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:11:32]wFMCommunicate OK [14:11:32]requested_item fd.num is exist - process it [14:11:32]SAM_PROTO_GetFieldsCounters [14:11:32]wFMCommunicate request_size=4 [14:11:32]MH_SAM_APDU [14:11:32]CAPDU: 80 13 00 00 [14:11:32]Write to MH i2c: E2 08 00 00 08 80 13 00 00 00 00 00 00 84 [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:11:32]Read from MH i2c: E2 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 62 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 62 00 00 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [14:11:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 95 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 52 01 00 00 5E 04 04 00 52 01 00 00 57 04 04 00 53 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:11:32]wFMCommunicate OK [14:11:32]SAM_PROTO_GetFieldsCounters done [14:11:32]requested_item shift.num is exist - process it [14:11:32]requested_item shift.opened is exist - process it [14:11:32]req_shift_opened [14:11:32]FM_GetShiftState [14:11:32]SAM_PROTO_GetShiftState [14:11:32]wFMCommunicate request_size=4 [14:11:32]MH_SAM_APDU [14:11:32]CAPDU: 80 13 01 00 [14:11:32]Write to MH i2c: E2 08 00 01 08 80 13 01 00 00 00 00 00 86 [14:11:32]Write i2c OK [14:11:32]MH_I2C_Read... [14:11:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:11:32]Read from MH i2c: E2 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 0E 00 [14:11:32]MH_I2C_Read... [14:11:32]Read from MH i2c: E2 0E 00 01 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7B [14:11:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:11:32]wFMCommunicate OK [14:11:32]SAM_PROTO_GetShiftState done [14:11:32]FM_GetShiftState done [14:11:32]req_shift_opened done [14:11:32]requested_item shift.open_date is exist - process it [14:11:32]req_shift_open_date [14:11:32]req_shift_open_date done [14:11:32]produce_requested_data done [14:11:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188309,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:11:32]process_action_free close_receipt [14:11:32]json_value_free [14:11:32]json_value_free done [14:11:32]process_json_proto returns [14:11:32]Send response to host [14:11:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188309,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:11:32]free response buf [14:11:32]execute_script done [14:11:32]execute_script returns [14:11:32]free content buf [14:11:32]Sock 9.Close socket [14:11:32]Sock 9.Thread stoped [14:11:36]OFD Sender: No OFD packet to send [14:11:41]OFD Sender: No OFD packet to send [14:11:46]OFD Sender: No OFD packet to send [14:11:51]OFD Sender: No OFD packet to send [14:11:56]OFD Sender: No OFD packet to send [14:12:01]OFD Sender: No OFD packet to send [14:12:06]OFD Sender: No OFD packet to send [14:12:11]OFD Sender: No OFD packet to send [14:12:16]OFD Sender: No OFD packet to send [14:12:21]OFD Sender: No OFD packet to send [14:12:26]OFD Sender: No OFD packet to send [14:12:31]OFD Sender: No OFD packet to send [14:12:36]OFD Sender: No OFD packet to send [14:12:41]OFD Sender: No OFD packet to send [14:12:46]OFD Sender: No OFD packet to send [14:12:51]OFD Sender: No OFD packet to send [14:12:56]OFD Sender: No OFD packet to send [14:13:01]OFD Sender: No OFD packet to send [14:13:06]OFD Sender: No OFD packet to send [14:13:11]OFD Sender: No OFD packet to send [14:13:16]OFD Sender: No OFD packet to send [14:13:21]OFD Sender: No OFD packet to send [14:13:26]OFD Sender: No OFD packet to send [14:13:31]OFD Sender: No OFD packet to send [14:13:36]OFD Sender: No OFD packet to send [14:13:41]OFD Sender: No OFD packet to send [14:13:46]OFD Sender: No OFD packet to send [14:13:51]OFD Sender: No OFD packet to send [14:13:56]OFD Sender: No OFD packet to send [14:13:58]accept exits with 7 [14:13:58]New connection [14:13:58]New thread 3067161956 created [14:13:58]Thread 3067305316 joined [14:13:58]Waiting for new connection... [14:13:58] Sock 7.Parse request [14:13:58]Sock 7.Check first char [14:13:58]Sock 7.First char is OK [14:13:58]request: POST /json_proto HTTP/1.0 [14:13:58]Method: POST [14:13:58]URL: /json_proto [14:13:58]Method is POST - this is cgi request [14:13:58]url: /json_proto [14:13:58]query_string will be loaded in cgi processing [14:13:58]execute_cgi json_proto POST (null) [14:13:58]execute_cgi path=json_proto method=POST [14:13:58]POST find Content-Length [14:13:58]Host: 172.17.42.131:8080 [14:13:58]Content-Length: 688 [14:13:58]Content-Type: application/json [14:13:58] [14:13:58]POST finish read [14:13:58]Found Content-Length = 688 [14:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:13:58]execute_script... [14:13: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)210365", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:13:58]POST & json_proto [14:13:58]process_json_proto [14:13:58]json parsed OK: [14:13:58]protocol is kg_v1.0 [14:13:58]action value=close_receipt [14:13:58]process_action close_receipt [14:13:58]cmd_close_receipt [14:13:58]MH_GetDate [14:13:58]Write to MH i2c: F0 00 00 02 08 F9 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: F0 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: F0 09 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: F0 09 00 02 08 00 27 B3 17 67 A0 18 CA 66 42 [14:13:58]GetLastDocTimeStamp 1729606289 [14:13:58]current date 1729606439 [14:13:58]FM_GetShiftState [14:13:58]SAM_PROTO_GetShiftState [14:13:58]wFMCommunicate request_size=4 [14:13:58]MH_SAM_APDU [14:13:58]CAPDU: 80 13 01 00 [14:13:58]Write to MH i2c: E2 08 00 03 08 80 13 01 00 00 00 00 00 88 [14:13:58]Write i2c OK [14:13:58]MH_I2C_Read... [14:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:13:58]Read from MH i2c: E2 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: E2 0E 00 [14:13:58]MH_I2C_Read... [14:13:58]Read from MH i2c: E2 0E 00 03 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7D [14:13:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:13:58]wFMCommunicate OK [14:13:58]SAM_PROTO_GetShiftState done [14:13:58]FM_GetShiftState done [14:13:58]opened in 1729556094 [14:13:58]opened+sec_in_day 1729642494 [14:13:58]quantity*price = 100051 [14:13:58]sum+1 = 100052 [14:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 339 22.10.2024 14:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188310 ФПД: 3408368217496 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141359&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188310&fm=3408368217496&tin=02508201610067®Number=0000000000100030&sum=100000 [14:13:59]StoreToDocumentArchive [14:13:59]shift 461 fd 188310 [14:13:59]save to /storage/0461/doc_00188310 [14:13:59]save last doc name /storage/0461/doc_00188310 to /storage/kkm_last_doc_name [14:13:59]save OK [14:13:59]Clear old archive folders... [14:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:13:59]tlvbuf is 0143D710 [14:13:59]SAM_PROTO_ClearQueue [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 09 00 00 [14:13:59]Write to MH i2c: E2 08 00 10 08 80 09 00 00 00 00 00 00 8A [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 03 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 03 00 10 08 00 90 00 8C [14:13:59]RAPDU: 90 00 [14:13:59]wFMCommunicate OK [14:13:59]SAM_PROTO_ClearQueue done [14:13:59]KKMCreateOFDPacket [14:13:59]OFDProtocolAddRootSTLVToBuf [14:13:59]FM_MakeSignedData [14:13:59]FM_MakeSignedData [14:13:59]SAM_PROTO_SignData [14:13:59]wFMCommunicate request_size=4 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 0D 01 02 [14:13:59]Write to MH i2c: E2 08 00 11 08 80 0D 01 02 00 00 00 00 92 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:13:59]Read from MH i2c: E2 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 03 00 [14:13:59]MH_I2C_Read... [14:13:59]Read from MH i2c: E2 03 00 11 08 00 90 00 8D [14:13:59]RAPDU: 90 00 [14:13:59]wFMCommunicate OK [14:13:59]wFMCommunicate request_size=255 [14:13:59]MH_SAM_APDU [14:13:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 53 01 00 00 F4 03 04 00 27 B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DF 02 [14:13:59]Write to MH i2c: E2 02 01 12 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 53 01 00 00 F4 03 04 00 27 B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DF 02 00 00 E0 [14:13:59]Write i2c OK [14:13:59]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [14:14:00]RAPDU: 90 00 [14:14:00]wFMCommunicate OK [14:14:00]wFMCommunicate request_size=16 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 03 19 92 93 AD 98 [14:14:00]Write to MH i2c: E2 13 00 13 08 80 0D 02 02 0B 00 00 35 04 06 00 03 19 92 93 AD 98 00 00 70 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [14:14:00]RAPDU: 90 00 [14:14:00]wFMCommunicate OK [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 0D 03 02 [14:14:00]Write to MH i2c: E2 08 00 14 08 80 0D 03 02 00 00 00 00 97 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0B 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 0B 00 14 08 00 7E 2B 98 00 FD 95 23 4E 90 00 DC [14:14:00]RAPDU: 7E 2B 98 00 FD 95 23 4E 90 00 [14:14:00]wFMCommunicate OK [14:14:00]SAM_PROTO_SignData done [14:14:00]FM_MakeSignedData done [14:14:00]CreateOFDProtocolMessage [14:14:00]wFMCommunicate request_size=4 [14:14:00]MH_SAM_APDU [14:14:00]CAPDU: 80 11 00 00 [14:14:00]Write to MH i2c: E2 08 00 15 08 80 11 00 00 00 00 00 00 97 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:00]Read from MH i2c: E2 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 17 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: E2 17 00 15 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [14:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:00]wFMCommunicate OK [14:14:00]CreateOFDProtocolMessage done [14:14:00]OFDSenderStorePacket 188310 [14:14:00]StoreOFDPacket docnum=188310 [14:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 7D 0D 01 66 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 53 01 00 00 F4 03 04 00 27 B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DF 02 00 35 04 06 00 03 19 92 93 AD 98 7E 2B 98 00 FD 95 23 4E [14:14:00]CheckFolder [14:14:00]dirname=/storage/ofd_packets [14:14:00]CheckFolder done [14:14:00]ProducePacketName [14:14:00]name=ofd_packets/00188310 [14:14:00]NVStorageSaveData ofd_packets/00188310 [14:14:00]File name is /storage/ofd_packets/00188310 [14:14:00]Write 307 bytes [14:14:00]NVStorageSaveData done [14:14:00]OFDSenderStorePacket done [14:14:00]KKMCreateOFDPacket done [14:14:00]NVStorageSaveData kkm_last_timestamp [14:14:00]File name is /storage/kkm_last_timestamp [14:14:00]Write 4 bytes [14:14:00]NVStorageSaveData done [14:14:00]ExternCall_PrintAddStr [14:14:00]wPrintStart [14:14:00]Write to MH i2c: 01 00 00 16 08 1E [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 07 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 07 00 16 08 00 00 00 00 00 FF 0F 33 [14:14:00]RasterBufferAndPrint [14:14:00]line Счет N : (1)210365 [14:14:00]line ИНН: 02508201610067 [14:14:00]line Контрольно-Кассовый Чек [14:14:00]line ПРОДАЖА [14:14:00]line ТРК (МРК, ГНК) : 11 [14:14:00]line Товар: 2710194210 [14:14:00]line D-ENERGY ДТ-К-5 [14:14:00]line 12.960 * 77.20 [14:14:00]line = 1000.51 [14:14:00]line НДС 12% НСП 1% [14:14:00]line > о реализуемом товаре [14:14:00]line ОКРУГЛЕНИЕ: -0.51 [14:14:00]line ИТОГО: 1000.00 [14:14:00]line Внесено: 1000.00 [14:14:00]line СДАЧА: 0.00 [14:14:00]line НСП 1% : 8.85 [14:14:00]line НДС 12% : 106.25 [14:14:00]line Наличными: 1000.00 [14:14:00]line Безнал.: 0.00 [14:14:00]line Место: АЗС № 86 "Партнер Нефть" [14:14:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:14:00]line СНО: Общий режим [14:14:00]line Чек 339 22.10.2024 14:13 [14:14:00]line Смена: 461 ФФД: 1.0 [14:14:00]line ЗНМ: 0300000155 [14:14:00]line РНМ: 0000000000100030 [14:14:00]line Версия ККМ: 001 [14:14:00]line ФМ: 0000000000965340 [14:14:00]line ФД: 188310 [14:14:00]line ФПД: 3408368217496 [14:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141359&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188310&fm=3408368217496&tin=02508201610067®Number=0000000000100030&sum=100000 [14:14:00]written 0, free lines is 4095 [14:14:00]OFD Sender: Processing packet 188310 [packets to send 1062, broken 1061] [14:14:00]ProducePacketName [14:14:00]name=ofd_packets/00188310 [14:14:00]OFD Sender: To server: pG, [14:14:00]CommunicateWithHost lk.salyk.kg:30040 [14:14:00]ConnectInit lk.salyk.kg [14:14:00]Connected sock=10 [14:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 24 7D 0D 01 66 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 53 01 00 00 F4 03 04 00 27 B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DF 02 00 35 04 06 00 03 19 92 93 AD 98 7E 2B 98 00 FD 95 23 4E [14:14:00]Write to MH i2c: 01 00 00 41 08 49 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 07 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: 01 07 00 41 08 00 00 00 00 00 6C 0C C8 [14:14:00]RasterBufferAndPrint [14:14:00]line [14:14:00]line [14:14:00]line [14:14:00]line [14:14:00]line [14:14:00]written 0, free lines is 3183 [14:14:00]MH_Cut [14:14:00]Write to MH i2c: D1 01 00 48 08 01 22 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: D1 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: D1 01 00 [14:14:00]MH_I2C_Read... [14:14:00]Read from MH i2c: D1 01 00 48 08 00 21 [14:14:00]Write to MH i2c: 01 00 00 49 08 51 [14:14:00]Write i2c OK [14:14:00]MH_I2C_Read... [14:14:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 42 29 47 00 D4 55 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 96 DF 02 00 F4 03 04 00 14 5D 17 67 B6 04 01 00 00 BE 2B EA 1A 7E B8 02 65 [14:14:01]CommunicateWithHost err = 0 [14:14:01]CheckOFDResponse [14:14:01]1017 (14) - 77093643461234 [14:14:01]1041 (16) - 0000000000965340 [14:14:01]1040 (4) - 188310 [14:14:01]1012 (4) - 22.10.2024 08:06 [14:14:01]1206 (1) - 0 [14:14:01]OFD Sender: Remove packet 188310 [14:14:01]ProducePacketName [14:14:01]name=ofd_packets/00188310 [14:14:01]NVStorageDeleteData [14:14:01]OFD Sender: No OFD packet to send [14:14:01]*** Cut start [14:14:01]*** Partial cut [14:14:01]*** CUTSNS_PIN = 1 [14:14:01]*** CUTSNS_PIN = 0 [14:14:02]*** Brake cut motor [14:14:02]Read from MH i2c: 01 [14:14:02]MH_I2C_Read... [14:14:02]*** Stop cut motor [14:14:02]*** Cut end [14:14:02]Read from MH i2c: 01 07 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: 01 07 00 49 08 00 00 00 00 00 FF 0F 66 [14:14:02]process_action close_receipt done [14:14:02]requested_data is exist [14:14:02]produce_requested_data [14:14:02]requested_item fm.sn is exist - process it [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 11 00 00 [14:14:02]Write to MH i2c: E2 08 00 4A 08 80 11 00 00 00 00 00 00 CC [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 17 00 4A 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [14:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:02]wFMCommunicate OK [14:14:02]requested_item fd.num is exist - process it [14:14:02]SAM_PROTO_GetFieldsCounters [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 13 00 00 [14:14:02]Write to MH i2c: E2 08 00 4B 08 80 13 00 00 00 00 00 00 CF [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 62 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 62 00 4B 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 17 [14:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 96 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 53 01 00 00 5E 04 04 00 53 01 00 00 57 04 04 00 54 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_GetFieldsCounters done [14:14:02]requested_item shift.num is exist - process it [14:14:02]requested_item shift.opened is exist - process it [14:14:02]req_shift_opened [14:14:02]FM_GetShiftState [14:14:02]SAM_PROTO_GetShiftState [14:14:02]wFMCommunicate request_size=4 [14:14:02]MH_SAM_APDU [14:14:02]CAPDU: 80 13 01 00 [14:14:02]Write to MH i2c: E2 08 00 4C 08 80 13 01 00 00 00 00 00 D1 [14:14:02]Write i2c OK [14:14:02]MH_I2C_Read... [14:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:02]Read from MH i2c: E2 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0E 00 [14:14:02]MH_I2C_Read... [14:14:02]Read from MH i2c: E2 0E 00 4C 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C6 [14:14:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:14:02]wFMCommunicate OK [14:14:02]SAM_PROTO_GetShiftState done [14:14:02]FM_GetShiftState done [14:14:02]req_shift_opened done [14:14:02]requested_item shift.open_date is exist - process it [14:14:02]req_shift_open_date [14:14:02]req_shift_open_date done [14:14:02]produce_requested_data done [14:14:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188310,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:14:02]process_action_free close_receipt [14:14:02]json_value_free [14:14:02]json_value_free done [14:14:02]process_json_proto returns [14:14:02]Send response to host [14:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188310,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:14:02]free response buf [14:14:02]execute_script done [14:14:02]execute_script returns [14:14:02]free content buf [14:14:02]Sock 7.Close socket [14:14:02]Sock 7.Thread stoped [14:14:06]OFD Sender: No OFD packet to send [14:14:11]OFD Sender: No OFD packet to send [14:14:16]OFD Sender: No OFD packet to send [14:14:21]accept exits with 9 [14:14:21]New connection [14:14:21]New thread 3067305316 created [14:14:21]Thread 3067161956 joined [14:14:21]Waiting for new connection... [14:14:21] Sock 9.Parse request [14:14:21]Sock 9.Check first char [14:14:21]Sock 9.First char is OK [14:14:21]request: POST /json_proto HTTP/1.0 [14:14:21]Method: POST [14:14:21]URL: /json_proto [14:14:21]Method is POST - this is cgi request [14:14:21]url: /json_proto [14:14:21]query_string will be loaded in cgi processing [14:14:21]execute_cgi json_proto POST (null) [14:14:21]execute_cgi path=json_proto method=POST [14:14:21]POST find Content-Length [14:14:21]Host: 172.17.42.131:8080 [14:14:21]Content-Length: 792 [14:14:21]Content-Type: application/json [14:14:21] [14:14:21]POST finish read [14:14:21]Found Content-Length = 792 [14:14:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:21]execute_script... [14:14: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)210366", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 14.950, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:14:21]POST & json_proto [14:14:21]process_json_proto [14:14:21]json parsed OK: [14:14:21]protocol is kg_v1.0 [14:14:21]action value=close_receipt [14:14:21]process_action close_receipt [14:14:21]cmd_close_receipt [14:14:21]MH_GetDate [14:14:21]Write to MH i2c: F0 00 00 4D 08 44 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: F0 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: F0 09 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: F0 09 00 4D 08 00 3E B3 17 67 A0 18 CA 66 A4 [14:14:21]GetLastDocTimeStamp 1729606439 [14:14:21]current date 1729606462 [14:14:21]FM_GetShiftState [14:14:21]SAM_PROTO_GetShiftState [14:14:21]wFMCommunicate request_size=4 [14:14:21]MH_SAM_APDU [14:14:21]CAPDU: 80 13 01 00 [14:14:21]Write to MH i2c: E2 08 00 4E 08 80 13 01 00 00 00 00 00 D3 [14:14:21]Write i2c OK [14:14:21]MH_I2C_Read... [14:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:21]Read from MH i2c: E2 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 0E 00 [14:14:21]MH_I2C_Read... [14:14:21]Read from MH i2c: E2 0E 00 4E 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [14:14:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:14:21]wFMCommunicate OK [14:14:21]SAM_PROTO_GetShiftState done [14:14:21]FM_GetShiftState done [14:14:21]opened in 1729556094 [14:14:21]opened+sec_in_day 1729642494 [14:14:21]quantity*price = 0 [14:14:21]sum+1 = 1 [14:14:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 340 22.10.2024 14:14 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 188311 ФПД: 258356982947742 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141422&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188311&fm=258356982947742&tin=02508201610067®Number=0000000000100030&sum=0 [14:14:22]StoreToDocumentArchive [14:14:22]shift 461 fd 188311 [14:14:22]save to /storage/0461/doc_00188311 [14:14:22]save last doc name /storage/0461/doc_00188311 to /storage/kkm_last_doc_name [14:14:22]save OK [14:14:22]Clear old archive folders... [14:14:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:14:22]tlvbuf is 01497650 [14:14:22]SAM_PROTO_ClearQueue [14:14:22]wFMCommunicate request_size=4 [14:14:22]MH_SAM_APDU [14:14:22]CAPDU: 80 09 00 00 [14:14:22]Write to MH i2c: E2 08 00 5B 08 80 09 00 00 00 00 00 00 D5 [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:14:22]Read from MH i2c: E2 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 03 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 03 00 5B 08 00 90 00 D7 [14:14:22]RAPDU: 90 00 [14:14:22]wFMCommunicate OK [14:14:22]SAM_PROTO_ClearQueue done [14:14:22]KKMCreateOFDPacket [14:14:22]OFDProtocolAddRootSTLVToBuf [14:14:22]FM_MakeSignedData [14:14:22]FM_MakeSignedData [14:14:22]SAM_PROTO_SignData [14:14:22]wFMCommunicate request_size=4 [14:14:22]MH_SAM_APDU [14:14:22]CAPDU: 80 0D 01 02 [14:14:22]Write to MH i2c: E2 08 00 5C 08 80 0D 01 02 00 00 00 00 DD [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:14:22]Read from MH i2c: E2 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 03 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 03 00 5C 08 00 90 00 D8 [14:14:22]RAPDU: 90 00 [14:14:22]wFMCommunicate OK [14:14:22]wFMCommunicate request_size=255 [14:14:22]MH_SAM_APDU [14:14: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 3E B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DF 02 00 35 04 06 00 EA [14:14:22]Write to MH i2c: E2 02 01 5D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 3E B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DF 02 00 35 04 06 00 EA 00 00 5F [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:22]Read from MH i2c: E2 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 03 00 [14:14:22]MH_I2C_Read... [14:14:22]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [14:14:22]RAPDU: 90 00 [14:14:22]wFMCommunicate OK [14:14:22]wFMCommunicate request_size=10 [14:14:22]MH_SAM_APDU [14:14:22]CAPDU: 80 0D 02 02 05 F9 6C 31 9F 9E [14:14:22]Write to MH i2c: E2 0D 00 5E 08 80 0D 02 02 05 00 F9 6C 31 9F 9E 00 00 BD [14:14:22]Write i2c OK [14:14:22]MH_I2C_Read... [14:14:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 03 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [14:14:23]RAPDU: 90 00 [14:14:23]wFMCommunicate OK [14:14:23]wFMCommunicate request_size=4 [14:14:23]MH_SAM_APDU [14:14:23]CAPDU: 80 0D 03 02 [14:14:23]Write to MH i2c: E2 08 00 5F 08 80 0D 03 02 00 00 00 00 E2 [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 0B 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 0B 00 5F 08 00 53 25 88 9A 45 B2 41 0F 90 00 C4 [14:14:23]RAPDU: 53 25 88 9A 45 B2 41 0F 90 00 [14:14:23]wFMCommunicate OK [14:14:23]SAM_PROTO_SignData done [14:14:23]FM_MakeSignedData done [14:14:23]CreateOFDProtocolMessage [14:14:23]wFMCommunicate request_size=4 [14:14:23]MH_SAM_APDU [14:14:23]CAPDU: 80 11 00 00 [14:14:23]Write to MH i2c: E2 08 00 60 08 80 11 00 00 00 00 00 00 E2 [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:23]Read from MH i2c: E2 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 17 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: E2 17 00 60 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [14:14:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:23]wFMCommunicate OK [14:14:23]CreateOFDProtocolMessage done [14:14:23]OFDSenderStorePacket 188311 [14:14:23]StoreOFDPacket docnum=188311 [14:14:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 24 07 01 61 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 3E B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DF 02 00 35 04 06 00 EA F9 6C 31 9F 9E 53 25 88 9A 45 B2 41 0F [14:14:23]CheckFolder [14:14:23]dirname=/storage/ofd_packets [14:14:23]CheckFolder done [14:14:23]ProducePacketName [14:14:23]name=ofd_packets/00188311 [14:14:23]NVStorageSaveData ofd_packets/00188311 [14:14:23]File name is /storage/ofd_packets/00188311 [14:14:23]Write 301 bytes [14:14:23]NVStorageSaveData done [14:14:23]OFDSenderStorePacket done [14:14:23]KKMCreateOFDPacket done [14:14:23]NVStorageSaveData kkm_last_timestamp [14:14:23]File name is /storage/kkm_last_timestamp [14:14:23]Write 4 bytes [14:14:23]NVStorageSaveData done [14:14:23]ExternCall_PrintAddStr [14:14:23]wPrintStart [14:14:23]Write to MH i2c: 01 00 00 61 08 69 [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 61 08 00 00 00 00 00 FF 0F 7E [14:14:23]RasterBufferAndPrint [14:14:23]line Счет N : (1)210366 [14:14:23]line ИНН: 02508201610067 [14:14:23]line Контрольно-Кассовый Чек [14:14:23]line ПРОДАЖА [14:14:23]line ТРК (МРК, ГНК) : 32 [14:14:23]line Товар: 2710124130 [14:14:23]line Аи-92-К-3 [14:14:23]line 14.950 * 0.00 [14:14:23]line = 0.00 [14:14:23]line НДС 12% НСП 1% [14:14:23]line > о реализуемом товаре [14:14:23]line ИТОГО: 0.00 [14:14:23]line НСП 1% : 0.00 [14:14:23]line НДС 12% : 0.00 [14:14:23]line Наличными: 0.00 [14:14:23]line Безнал.: 0.00 [14:14:23]line Место: АЗС № 86 "Партнер Нефть" [14:14:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:14:23]line СНО: Общий режим [14:14:23]line Чек 340 22.10.2024 14:14 [14:14:23]line Смена: 461 ФФД: 1.0 [14:14:23]line ЗНМ: 0300000155 [14:14:23]line РНМ: 0000000000100030 [14:14:23]line Версия ККМ: 001 [14:14:23]line Талоны: Топливная Карта [14:14:23]line 02633 [14:14:23]line ФМ: 0000000000965340 [14:14:23]line ФД: 188311 [14:14:23]line ФПД: 258356982947742 [14:14:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141422&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188311&fm=258356982947742&tin=02508201610067®Number=0000000000100030&sum=0 [14:14:23]OFD Sender: Processing packet 188311 [packets to send 1062, broken 1061] [14:14:23]ProducePacketName [14:14:23]name=ofd_packets/00188311 [14:14:23]OFD Sender: To server: pG, [14:14:23]CommunicateWithHost lk.salyk.kg:30040 [14:14:23]ConnectInit lk.salyk.kg [14:14:23]written 0, free lines is 4095 [14:14:23]Connected sock=10 [14:14:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BC 24 07 01 61 FC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 54 01 00 00 F4 03 04 00 3E B3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DF 02 00 35 04 06 00 EA F9 6C 31 9F 9E 53 25 88 9A 45 B2 41 0F [14:14:23]Write to MH i2c: 01 00 00 8B 08 93 [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: 01 07 00 8B 08 00 00 00 00 00 8E 0C 34 [14:14:23]RasterBufferAndPrint [14:14:23]line [14:14:23]line [14:14:23]line [14:14:23]line [14:14:23]line [14:14:23]written 0, free lines is 3218 [14:14:23]MH_Cut [14:14:23]Write to MH i2c: D1 01 00 92 08 01 6C [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: D1 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: D1 01 00 [14:14:23]MH_I2C_Read... [14:14:23]Read from MH i2c: D1 01 00 92 08 00 6B [14:14:23]Write to MH i2c: 01 00 00 93 08 9B [14:14:23]Write i2c OK [14:14:23]MH_I2C_Read... [14:14:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EC FA 47 00 24 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 97 DF 02 00 F4 03 04 00 2B 5D 17 67 B6 04 01 00 00 A9 13 E1 9C 58 AE 5C 8D [14:14:24]CommunicateWithHost err = 0 [14:14:24]CheckOFDResponse [14:14:24]1017 (14) - 77093643461234 [14:14:24]1041 (16) - 0000000000965340 [14:14:24]1040 (4) - 188311 [14:14:24]1012 (4) - 22.10.2024 08:07 [14:14:24]1206 (1) - 0 [14:14:24]OFD Sender: Remove packet 188311 [14:14:24]ProducePacketName [14:14:24]name=ofd_packets/00188311 [14:14:24]NVStorageDeleteData [14:14:24]OFD Sender: No OFD packet to send [14:14:25]*** Cut start [14:14:25]*** Partial cut [14:14:25]*** CUTSNS_PIN = 1 [14:14:25]*** CUTSNS_PIN = 0 [14:14:25]*** Brake cut motor [14:14:25]Read from MH i2c: 01 [14:14:25]MH_I2C_Read... [14:14:25]*** Stop cut motor [14:14:25]*** Cut end [14:14:25]Read from MH i2c: 01 07 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: 01 07 00 93 08 00 00 00 00 00 FF 0F B0 [14:14:25]process_action close_receipt done [14:14:25]requested_data is exist [14:14:25]produce_requested_data [14:14:25]requested_item fm.sn is exist - process it [14:14:25]wFMCommunicate request_size=4 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 11 00 00 [14:14:25]Write to MH i2c: E2 08 00 94 08 80 11 00 00 00 00 00 00 16 [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 17 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 17 00 94 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [14:14:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:14:25]wFMCommunicate OK [14:14:25]requested_item fd.num is exist - process it [14:14:25]SAM_PROTO_GetFieldsCounters [14:14:25]wFMCommunicate request_size=4 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 13 00 00 [14:14:25]Write to MH i2c: E2 08 00 95 08 80 13 00 00 00 00 00 00 19 [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 62 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 62 00 95 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:14:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 97 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 54 01 00 00 5E 04 04 00 54 01 00 00 57 04 04 00 55 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:14:25]wFMCommunicate OK [14:14:25]SAM_PROTO_GetFieldsCounters done [14:14:25]requested_item shift.num is exist - process it [14:14:25]requested_item shift.opened is exist - process it [14:14:25]req_shift_opened [14:14:25]FM_GetShiftState [14:14:25]SAM_PROTO_GetShiftState [14:14:25]wFMCommunicate request_size=4 [14:14:25]MH_SAM_APDU [14:14:25]CAPDU: 80 13 01 00 [14:14:25]Write to MH i2c: E2 08 00 96 08 80 13 01 00 00 00 00 00 1B [14:14:25]Write i2c OK [14:14:25]MH_I2C_Read... [14:14:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:14:25]Read from MH i2c: E2 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 0E 00 [14:14:25]MH_I2C_Read... [14:14:25]Read from MH i2c: E2 0E 00 96 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 10 [14:14:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:14:25]wFMCommunicate OK [14:14:25]SAM_PROTO_GetShiftState done [14:14:25]FM_GetShiftState done [14:14:25]req_shift_opened done [14:14:25]requested_item shift.open_date is exist - process it [14:14:25]req_shift_open_date [14:14:25]req_shift_open_date done [14:14:25]produce_requested_data done [14:14:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188311,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:14:25]process_action_free close_receipt [14:14:25]json_value_free [14:14:25]json_value_free done [14:14:25]process_json_proto returns [14:14:25]Send response to host [14:14:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188311,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:14:25]free response buf [14:14:25]execute_script done [14:14:25]execute_script returns [14:14:25]free content buf [14:14:25]Sock 9.Close socket [14:14:25]Sock 9.Thread stoped [14:14:29]OFD Sender: No OFD packet to send [14:14:34]OFD Sender: No OFD packet to send [14:14:39]OFD Sender: No OFD packet to send [14:14:44]OFD Sender: No OFD packet to send [14:14:49]OFD Sender: No OFD packet to send [14:14:54]OFD Sender: No OFD packet to send [14:14:59]OFD Sender: No OFD packet to send [14:15:04]OFD Sender: No OFD packet to send [14:15:09]OFD Sender: No OFD packet to send [14:15:14]OFD Sender: No OFD packet to send [14:15:19]OFD Sender: No OFD packet to send [14:15:24]OFD Sender: No OFD packet to send [14:15:29]OFD Sender: No OFD packet to send [14:15:34]OFD Sender: No OFD packet to send [14:15:39]OFD Sender: No OFD packet to send [14:15:44]OFD Sender: No OFD packet to send [14:15:49]OFD Sender: No OFD packet to send [14:15:54]OFD Sender: No OFD packet to send [14:15:59]OFD Sender: No OFD packet to send [14:16:04]OFD Sender: No OFD packet to send [14:16:10]OFD Sender: No OFD packet to send [14:16:15]OFD Sender: No OFD packet to send [14:16:20]OFD Sender: No OFD packet to send [14:16:25]OFD Sender: No OFD packet to send [14:16:30]OFD Sender: No OFD packet to send [14:16:35]OFD Sender: No OFD packet to send [14:16:40]OFD Sender: No OFD packet to send [14:16:45]OFD Sender: No OFD packet to send [14:16:50]OFD Sender: No OFD packet to send [14:16:55]OFD Sender: No OFD packet to send [14:17:00]OFD Sender: No OFD packet to send [14:17:05]OFD Sender: No OFD packet to send [14:17:10]OFD Sender: No OFD packet to send [14:17:15]OFD Sender: No OFD packet to send [14:17:20]OFD Sender: No OFD packet to send [14:17:25]OFD Sender: No OFD packet to send [14:17:30]OFD Sender: No OFD packet to send [14:17:35]OFD Sender: No OFD packet to send [14:17:40]OFD Sender: No OFD packet to send [14:17:45]OFD Sender: No OFD packet to send [14:17:50]OFD Sender: No OFD packet to send [14:17:55]OFD Sender: No OFD packet to send [14:18:00]accept exits with 7 [14:18:00]New connection [14:18:00]New thread 3067161956 created [14:18:00]Thread 3067305316 joined [14:18:00]Waiting for new connection... [14:18:00] Sock 7.Parse request [14:18:00]Sock 7.Check first char [14:18:00]Sock 7.First char is OK [14:18:00]request: POST /json_proto HTTP/1.0 [14:18:00]Method: POST [14:18:00]URL: /json_proto [14:18:00]Method is POST - this is cgi request [14:18:00]url: /json_proto [14:18:00]query_string will be loaded in cgi processing [14:18:00]execute_cgi json_proto POST (null) [14:18:00]execute_cgi path=json_proto method=POST [14:18:00]POST find Content-Length [14:18:00]Host: 172.17.42.131:8080 [14:18:00]Content-Length: 678 [14:18:00]Content-Type: application/json [14:18:00] [14:18:00]POST finish read [14:18:00]Found Content-Length = 678 [14:18:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210370", "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" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:00]execute_script... [14:18:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210370", "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" : 12.130, "sum" : 900.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 900.00, "total" : 900.00, "payments": [ { "type": 0, "sum" : 900.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:00]POST & json_proto [14:18:00]process_json_proto [14:18:00]json parsed OK: [14:18:00]protocol is kg_v1.0 [14:18:00]action value=close_receipt [14:18:00]process_action close_receipt [14:18:00]cmd_close_receipt [14:18:00]MH_GetDate [14:18:00]Write to MH i2c: F0 00 00 97 08 8E [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: F0 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: F0 09 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: F0 09 00 97 08 00 19 B4 17 67 A0 18 CA 66 CA [14:18:00]GetLastDocTimeStamp 1729606462 [14:18:00]current date 1729606681 [14:18:00]FM_GetShiftState [14:18:00]SAM_PROTO_GetShiftState [14:18:00]wFMCommunicate request_size=4 [14:18:00]MH_SAM_APDU [14:18:00]CAPDU: 80 13 01 00 [14:18:00]Write to MH i2c: E2 08 00 98 08 80 13 01 00 00 00 00 00 1D [14:18:00]Write i2c OK [14:18:00]MH_I2C_Read... [14:18:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:00]Read from MH i2c: E2 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 0E 00 [14:18:00]MH_I2C_Read... [14:18:00]Read from MH i2c: E2 0E 00 98 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 12 [14:18:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:18:00]wFMCommunicate OK [14:18:00]SAM_PROTO_GetShiftState done [14:18:00]FM_GetShiftState done [14:18:00]opened in 1729556094 [14:18:00]opened+sec_in_day 1729642494 [14:18:00]quantity*price = 90004 [14:18:00]sum+1 = 90006 [14:18:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.96 НДС 12% : 95.58 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 341 22.10.2024 14:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188312 ФПД: 252267894343088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141801&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188312&fm=252267894343088&tin=02508201610067®Number=0000000000100030&sum=90000 [14:18:01]StoreToDocumentArchive [14:18:01]shift 461 fd 188312 [14:18:01]save to /storage/0461/doc_00188312 [14:18:01]save last doc name /storage/0461/doc_00188312 to /storage/kkm_last_doc_name [14:18:01]save OK [14:18:01]Clear old archive folders... [14:18:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:18:01]tlvbuf is 014831E0 [14:18:01]SAM_PROTO_ClearQueue [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 09 00 00 [14:18:01]Write to MH i2c: E2 08 00 A5 08 80 09 00 00 00 00 00 00 1F [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 A5 08 00 90 00 21 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_ClearQueue done [14:18:01]KKMCreateOFDPacket [14:18:01]OFDProtocolAddRootSTLVToBuf [14:18:01]FM_MakeSignedData [14:18:01]FM_MakeSignedData [14:18:01]SAM_PROTO_SignData [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 01 02 [14:18:01]Write to MH i2c: E2 08 00 A6 08 80 0D 01 02 00 00 00 00 27 [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 A6 08 00 90 00 22 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]wFMCommunicate request_size=255 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 19 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DF 02 00 35 04 06 00 E5 [14:18:01]Write to MH i2c: E2 02 01 A7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 19 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DF 02 00 35 04 06 00 E5 00 00 FE [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 A7 08 00 90 00 23 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]wFMCommunicate request_size=10 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 02 02 05 6F B2 3B 05 B0 [14:18:01]Write to MH i2c: E2 0D 00 A8 08 80 0D 02 02 05 00 6F B2 3B 05 B0 00 00 45 [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [14:18:01]RAPDU: 90 00 [14:18:01]wFMCommunicate OK [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 0D 03 02 [14:18:01]Write to MH i2c: E2 08 00 A9 08 80 0D 03 02 00 00 00 00 2C [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0B 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 0B 00 A9 08 00 74 B9 D6 28 6E 29 8C FB 90 00 76 [14:18:01]RAPDU: 74 B9 D6 28 6E 29 8C FB 90 00 [14:18:01]wFMCommunicate OK [14:18:01]SAM_PROTO_SignData done [14:18:01]FM_MakeSignedData done [14:18:01]CreateOFDProtocolMessage [14:18:01]wFMCommunicate request_size=4 [14:18:01]MH_SAM_APDU [14:18:01]CAPDU: 80 11 00 00 [14:18:01]Write to MH i2c: E2 08 00 AA 08 80 11 00 00 00 00 00 00 2C [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:01]Read from MH i2c: E2 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 17 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: E2 17 00 AA 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [14:18:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:18:01]wFMCommunicate OK [14:18:01]CreateOFDProtocolMessage done [14:18:01]OFDSenderStorePacket 188312 [14:18:01]StoreOFDPacket docnum=188312 [14:18:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 27 FD 07 01 7D 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 19 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DF 02 00 35 04 06 00 E5 6F B2 3B 05 B0 74 B9 D6 28 6E 29 8C FB [14:18:01]CheckFolder [14:18:01]dirname=/storage/ofd_packets [14:18:01]CheckFolder done [14:18:01]ProducePacketName [14:18:01]name=ofd_packets/00188312 [14:18:01]NVStorageSaveData ofd_packets/00188312 [14:18:01]File name is /storage/ofd_packets/00188312 [14:18:01]Write 301 bytes [14:18:01]NVStorageSaveData done [14:18:01]OFDSenderStorePacket done [14:18:01]KKMCreateOFDPacket done [14:18:01]NVStorageSaveData kkm_last_timestamp [14:18:01]File name is /storage/kkm_last_timestamp [14:18:01]Write 4 bytes [14:18:01]NVStorageSaveData done [14:18:01]ExternCall_PrintAddStr [14:18:01]wPrintStart [14:18:01]Write to MH i2c: 01 00 00 AB 08 B3 [14:18:01]Write i2c OK [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 07 00 [14:18:01]MH_I2C_Read... [14:18:01]Read from MH i2c: 01 07 00 AB 08 00 00 00 00 00 FF 0F C8 [14:18:01]RasterBufferAndPrint [14:18:01]line Счет N : (1)210370 [14:18:01]line ИНН: 02508201610067 [14:18:01]line Контрольно-Кассовый Чек [14:18:01]line ПРОДАЖА [14:18:01]line ТРК (МРК, ГНК) : 33 [14:18:01]line Товар: 2710124500 [14:18:01]line Аи-95-К-3 [14:18:01]line 12.130 * 74.20 [14:18:01]line = 900.05 [14:18:01]line НДС 12% НСП 1% [14:18:01]line > о реализуемом товаре [14:18:01]line ОКРУГЛЕНИЕ: -0.05 [14:18:01]line ИТОГО: 900.00 [14:18:01]line Внесено: 900.00 [14:18:01]line СДАЧА: 0.00 [14:18:01]line НСП 1% : 7.96 [14:18:01]line НДС 12% : 95.58 [14:18:01]line Наличными: 900.00 [14:18:01]line Безнал.: 0.00 [14:18:01]line Место: АЗС № 86 "Партнер Нефть" [14:18:01]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:18:01]line СНО: Общий режим [14:18:01]line Чек 341 22.10.2024 14:18 [14:18:01]line Смена: 461 ФФД: 1.0 [14:18:01]line ЗНМ: 0300000155 [14:18:01]line РНМ: 0000000000100030 [14:18:01]line Версия ККМ: 001 [14:18:01]line ФМ: 0000000000965340 [14:18:01]line ФД: 188312 [14:18:01]line ФПД: 252267894343088 [14:18:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141801&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188312&fm=252267894343088&tin=02508201610067®Number=0000000000100030&sum=90000 [14:18:01]written 0, free lines is 4095 [14:18:01]OFD Sender: Processing packet 188312 [packets to send 1062, broken 1061] [14:18:01]ProducePacketName [14:18:01]name=ofd_packets/00188312 [14:18:01]OFD Sender: To server: pG, [14:18:01]CommunicateWithHost lk.salyk.kg:30040 [14:18:01]ConnectInit lk.salyk.kg [14:18:02]Connected sock=9 [14:18:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 27 FD 07 01 7D 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 62 2F 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 95 5F 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 5F 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 56 25 00 00 00 00 07 04 06 00 90 5F 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 55 01 00 00 F4 03 04 00 19 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 98 DF 02 00 35 04 06 00 E5 6F B2 3B 05 B0 74 B9 D6 28 6E 29 8C FB [14:18:02]Write to MH i2c: 01 00 00 D6 08 DE [14:18:02]Write i2c OK [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: 01 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: 01 07 00 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: 01 07 00 D6 08 00 00 00 00 00 70 0C 61 [14:18:02]RasterBufferAndPrint [14:18:02]line [14:18:02]line [14:18:02]line [14:18:02]line [14:18:02]line [14:18:02]written 0, free lines is 3187 [14:18:02]MH_Cut [14:18:02]Write to MH i2c: D1 01 00 DD 08 01 B7 [14:18:02]Write i2c OK [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: D1 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: D1 01 00 [14:18:02]MH_I2C_Read... [14:18:02]Read from MH i2c: D1 01 00 DD 08 00 B6 [14:18:02]Write to MH i2c: 01 00 00 DE 08 E6 [14:18:02]Write i2c OK [14:18:02]MH_I2C_Read... [14:18:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 94 55 47 00 92 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 39 36 35 33 34 30 10 04 04 00 98 DF 02 00 F4 03 04 00 06 5E 17 67 B6 04 01 00 00 50 64 B3 C6 1F 00 62 F9 [14:18:02]CommunicateWithHost err = 0 [14:18:02]CheckOFDResponse [14:18:02]1017 (14) - 77093643461234 [14:18:02]1041 (16) - 0000000000965340 [14:18:02]1040 (4) - 188312 [14:18:02]1012 (4) - 22.10.2024 08:10 [14:18:02]1206 (1) - 0 [14:18:02]OFD Sender: Remove packet 188312 [14:18:02]ProducePacketName [14:18:02]name=ofd_packets/00188312 [14:18:02]NVStorageDeleteData [14:18:02]OFD Sender: No OFD packet to send [14:18:03]*** Cut start [14:18:03]*** Partial cut [14:18:03]*** CUTSNS_PIN = 1 [14:18:03]*** CUTSNS_PIN = 0 [14:18:03]*** Brake cut motor [14:18:03]Read from MH i2c: 01 [14:18:04]MH_I2C_Read... [14:18:04]*** Stop cut motor [14:18:04]*** Cut end [14:18:04]Read from MH i2c: 01 07 00 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: 01 07 00 DE 08 00 00 00 00 00 FF 0F FB [14:18:04]process_action close_receipt done [14:18:04]requested_data is exist [14:18:04]produce_requested_data [14:18:04]requested_item fm.sn is exist - process it [14:18:04]wFMCommunicate request_size=4 [14:18:04]MH_SAM_APDU [14:18:04]CAPDU: 80 11 00 00 [14:18:04]Write to MH i2c: E2 08 00 DF 08 80 11 00 00 00 00 00 00 61 [14:18:04]Write i2c OK [14:18:04]MH_I2C_Read... [14:18:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:04]Read from MH i2c: E2 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: E2 17 00 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: E2 17 00 DF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [14:18:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:18:04]wFMCommunicate OK [14:18:04]requested_item fd.num is exist - process it [14:18:04]SAM_PROTO_GetFieldsCounters [14:18:04]wFMCommunicate request_size=4 [14:18:04]MH_SAM_APDU [14:18:04]CAPDU: 80 13 00 00 [14:18:04]Write to MH i2c: E2 08 00 E0 08 80 13 00 00 00 00 00 00 64 [14:18:04]Write i2c OK [14:18:04]MH_I2C_Read... [14:18:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:04]Read from MH i2c: E2 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: E2 62 00 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: E2 62 00 E0 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:18:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 98 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 55 01 00 00 5E 04 04 00 55 01 00 00 57 04 04 00 56 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:04]wFMCommunicate OK [14:18:04]SAM_PROTO_GetFieldsCounters done [14:18:04]requested_item shift.num is exist - process it [14:18:04]requested_item shift.opened is exist - process it [14:18:04]req_shift_opened [14:18:04]FM_GetShiftState [14:18:04]SAM_PROTO_GetShiftState [14:18:04]wFMCommunicate request_size=4 [14:18:04]MH_SAM_APDU [14:18:04]CAPDU: 80 13 01 00 [14:18:04]Write to MH i2c: E2 08 00 E1 08 80 13 01 00 00 00 00 00 66 [14:18:04]Write i2c OK [14:18:04]MH_I2C_Read... [14:18:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:04]Read from MH i2c: E2 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: E2 0E 00 [14:18:04]MH_I2C_Read... [14:18:04]Read from MH i2c: E2 0E 00 E1 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5B [14:18:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:18:04]wFMCommunicate OK [14:18:04]SAM_PROTO_GetShiftState done [14:18:04]FM_GetShiftState done [14:18:04]req_shift_opened done [14:18:04]requested_item shift.open_date is exist - process it [14:18:04]req_shift_open_date [14:18:04]req_shift_open_date done [14:18:04]produce_requested_data done [14:18:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188312,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:18:04]process_action_free close_receipt [14:18:04]json_value_free [14:18:04]json_value_free done [14:18:04]process_json_proto returns [14:18:04]Send response to host [14:18:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188312,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:18:04]free response buf [14:18:04]execute_script done [14:18:04]execute_script returns [14:18:04]free content buf [14:18:04]Sock 7.Close socket [14:18:04]Sock 7.Thread stoped [14:18:07]OFD Sender: No OFD packet to send [14:18:12]OFD Sender: No OFD packet to send [14:18:17]OFD Sender: No OFD packet to send [14:18:22]OFD Sender: No OFD packet to send [14:18:27]OFD Sender: No OFD packet to send [14:18:28]accept exits with 10 [14:18:28]New connection [14:18:28]New thread 3067305316 created [14:18:28]Thread 3067161956 joined [14:18:28]Waiting for new connection... [14:18:28] Sock 10.Parse request [14:18:28]Sock 10.Check first char [14:18:28]Sock 10.First char is OK [14:18:28]request: POST /json_proto HTTP/1.0 [14:18:28]Method: POST [14:18:28]URL: /json_proto [14:18:28]Method is POST - this is cgi request [14:18:28]url: /json_proto [14:18:28]query_string will be loaded in cgi processing [14:18:28]execute_cgi json_proto POST (null) [14:18:28]execute_cgi path=json_proto method=POST [14:18:28]POST find Content-Length [14:18:28]Host: 172.17.42.131:8080 [14:18:28]Content-Length: 683 [14:18:28]Content-Type: application/json [14:18:28] [14:18:28]POST finish read [14:18:28]Found Content-Length = 683 [14:18:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:28]execute_script... [14:18: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)210367", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:18:28]POST & json_proto [14:18:28]process_json_proto [14:18:28]json parsed OK: [14:18:28]protocol is kg_v1.0 [14:18:28]action value=close_receipt [14:18:28]process_action close_receipt [14:18:28]cmd_close_receipt [14:18:28]MH_GetDate [14:18:28]Write to MH i2c: F0 00 00 E2 08 D9 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: F0 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: F0 09 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: F0 09 00 E2 08 00 35 B4 17 67 A0 18 CA 66 31 [14:18:28]GetLastDocTimeStamp 1729606681 [14:18:28]current date 1729606709 [14:18:28]FM_GetShiftState [14:18:28]SAM_PROTO_GetShiftState [14:18:28]wFMCommunicate request_size=4 [14:18:28]MH_SAM_APDU [14:18:28]CAPDU: 80 13 01 00 [14:18:28]Write to MH i2c: E2 08 00 E3 08 80 13 01 00 00 00 00 00 68 [14:18:28]Write i2c OK [14:18:28]MH_I2C_Read... [14:18:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:28]Read from MH i2c: E2 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 0E 00 [14:18:28]MH_I2C_Read... [14:18:28]Read from MH i2c: E2 0E 00 E3 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5D [14:18:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:18:28]wFMCommunicate OK [14:18:28]SAM_PROTO_GetShiftState done [14:18:28]FM_GetShiftState done [14:18:28]opened in 1729556094 [14:18:28]opened+sec_in_day 1729642494 [14:18:28]quantity*price = 60061 [14:18:28]sum+1 = 60063 [14:18:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 342 22.10.2024 14:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188313 ФПД: 33950801431544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141829&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188313&fm=33950801431544&tin=02508201610067®Number=0000000000100030&sum=60000 [14:18:29]StoreToDocumentArchive [14:18:29]shift 461 fd 188313 [14:18:29]save to /storage/0461/doc_00188313 [14:18:29]save last doc name /storage/0461/doc_00188313 to /storage/kkm_last_doc_name [14:18:29]save OK [14:18:29]Clear old archive folders... [14:18:29]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:18:29]tlvbuf is 01458270 [14:18:29]SAM_PROTO_ClearQueue [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 09 00 00 [14:18:29]Write to MH i2c: E2 08 00 F0 08 80 09 00 00 00 00 00 00 6A [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:18:29]Read from MH i2c: E2 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 03 00 [14:18:29]MH_I2C_Read... [14:18:29]Read from MH i2c: E2 03 00 F0 08 00 90 00 6C [14:18:29]RAPDU: 90 00 [14:18:29]wFMCommunicate OK [14:18:29]SAM_PROTO_ClearQueue done [14:18:29]KKMCreateOFDPacket [14:18:29]OFDProtocolAddRootSTLVToBuf [14:18:29]FM_MakeSignedData [14:18:29]FM_MakeSignedData [14:18:29]SAM_PROTO_SignData [14:18:29]wFMCommunicate request_size=4 [14:18:29]MH_SAM_APDU [14:18:29]CAPDU: 80 0D 01 02 [14:18:29]Write to MH i2c: E2 08 00 F1 08 80 0D 01 02 00 00 00 00 72 [14:18:29]Write i2c OK [14:18:29]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 03 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 03 00 F1 08 00 90 00 6D [14:18:30]RAPDU: 90 00 [14:18:30]wFMCommunicate OK [14:18:30]wFMCommunicate request_size=255 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 56 01 00 00 F4 03 04 00 35 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DF 02 [14:18:30]Write to MH i2c: E2 02 01 F2 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 56 01 00 00 F4 03 04 00 35 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DF 02 00 00 EE [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 03 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 03 00 F2 08 00 90 00 6E [14:18:30]RAPDU: 90 00 [14:18:30]wFMCommunicate OK [14:18:30]wFMCommunicate request_size=16 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 1E E0 C9 75 8B F8 [14:18:30]Write to MH i2c: E2 13 00 F3 08 80 0D 02 02 0B 00 00 35 04 06 00 1E E0 C9 75 8B F8 00 00 89 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 03 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [14:18:30]RAPDU: 90 00 [14:18:30]wFMCommunicate OK [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 0D 03 02 [14:18:30]Write to MH i2c: E2 08 00 F4 08 80 0D 03 02 00 00 00 00 77 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0B 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 0B 00 F4 08 00 8A 6B BB C3 84 F6 65 1A 90 00 E4 [14:18:30]RAPDU: 8A 6B BB C3 84 F6 65 1A 90 00 [14:18:30]wFMCommunicate OK [14:18:30]SAM_PROTO_SignData done [14:18:30]FM_MakeSignedData done [14:18:30]CreateOFDProtocolMessage [14:18:30]wFMCommunicate request_size=4 [14:18:30]MH_SAM_APDU [14:18:30]CAPDU: 80 11 00 00 [14:18:30]Write to MH i2c: E2 08 00 F5 08 80 11 00 00 00 00 00 00 77 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:30]Read from MH i2c: E2 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: E2 17 00 F5 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [14:18:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:18:30]wFMCommunicate OK [14:18:30]CreateOFDProtocolMessage done [14:18:30]OFDSenderStorePacket 188313 [14:18:30]StoreOFDPacket docnum=188313 [14:18:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7F D3 0D 01 DC 52 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 56 01 00 00 F4 03 04 00 35 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DF 02 00 35 04 06 00 1E E0 C9 75 8B F8 8A 6B BB C3 84 F6 65 1A [14:18:30]CheckFolder [14:18:30]dirname=/storage/ofd_packets [14:18:30]CheckFolder done [14:18:30]ProducePacketName [14:18:30]name=ofd_packets/00188313 [14:18:30]NVStorageSaveData ofd_packets/00188313 [14:18:30]File name is /storage/ofd_packets/00188313 [14:18:30]Write 307 bytes [14:18:30]NVStorageSaveData done [14:18:30]OFDSenderStorePacket done [14:18:30]KKMCreateOFDPacket done [14:18:30]NVStorageSaveData kkm_last_timestamp [14:18:30]File name is /storage/kkm_last_timestamp [14:18:30]Write 4 bytes [14:18:30]NVStorageSaveData done [14:18:30]ExternCall_PrintAddStr [14:18:30]wPrintStart [14:18:30]Write to MH i2c: 01 00 00 F6 08 FE [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 F6 08 00 00 00 00 00 FF 0F 13 [14:18:30]RasterBufferAndPrint [14:18:30]line Счет N : (1)210367 [14:18:30]line ИНН: 02508201610067 [14:18:30]line Контрольно-Кассовый Чек [14:18:30]line ПРОДАЖА [14:18:30]line ТРК (МРК, ГНК) : 11 [14:18:30]line Товар: 2710194210 [14:18:30]line D-ENERGY ДТ-К-5 [14:18:30]line 7.780 * 77.20 [14:18:30]line = 600.62 [14:18:30]line НДС 12% НСП 1% [14:18:30]line > о реализуемом товаре [14:18:30]line ОКРУГЛЕНИЕ: -0.62 [14:18:30]line ИТОГО: 600.00 [14:18:30]line Внесено: 600.00 [14:18:30]line СДАЧА: 0.00 [14:18:30]line НСП 1% : 5.31 [14:18:30]line НДС 12% : 63.78 [14:18:30]line Наличными: 600.00 [14:18:30]line Безнал.: 0.00 [14:18:30]line Место: АЗС № 86 "Партнер Нефть" [14:18:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:18:30]line СНО: Общий режим [14:18:30]line Чек 342 22.10.2024 14:18 [14:18:30]line Смена: 461 ФФД: 1.0 [14:18:30]line ЗНМ: 0300000155 [14:18:30]line РНМ: 0000000000100030 [14:18:30]line Версия ККМ: 001 [14:18:30]line ФМ: 0000000000965340 [14:18:30]line ФД: 188313 [14:18:30]line ФПД: 33950801431544 [14:18:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141829&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188313&fm=33950801431544&tin=02508201610067®Number=0000000000100030&sum=60000 [14:18:30]written 0, free lines is 4095 [14:18:30]OFD Sender: Processing packet 188313 [packets to send 1062, broken 1061] [14:18:30]ProducePacketName [14:18:30]name=ofd_packets/00188313 [14:18:30]OFD Sender: To server: pG, [14:18:30]CommunicateWithHost lk.salyk.kg:30040 [14:18:30]ConnectInit lk.salyk.kg [14:18:30]Connected sock=9 [14:18:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7F D3 0D 01 DC 52 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 56 01 00 00 F4 03 04 00 35 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 99 DF 02 00 35 04 06 00 1E E0 C9 75 8B F8 8A 6B BB C3 84 F6 65 1A [14:18:30]Write to MH i2c: 01 00 00 21 09 2A [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: 01 07 00 21 09 00 00 00 00 00 6A 0C A7 [14:18:30]RasterBufferAndPrint [14:18:30]line [14:18:30]line [14:18:30]line [14:18:30]line [14:18:30]line [14:18:30]written 0, free lines is 3181 [14:18:30]MH_Cut [14:18:30]Write to MH i2c: D1 01 00 28 09 01 03 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: D1 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: D1 01 00 [14:18:30]MH_I2C_Read... [14:18:30]Read from MH i2c: D1 01 00 28 09 00 02 [14:18:30]Write to MH i2c: 01 00 00 29 09 32 [14:18:30]Write i2c OK [14:18:30]MH_I2C_Read... [14:18:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 30 89 47 00 54 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 39 36 35 33 34 30 10 04 04 00 99 DF 02 00 F4 03 04 00 22 5E 17 67 B6 04 01 00 00 24 A2 8C A0 30 E2 06 9F [14:18:31]CommunicateWithHost err = 0 [14:18:31]CheckOFDResponse [14:18:31]1017 (14) - 77093643461234 [14:18:31]1041 (16) - 0000000000965340 [14:18:31]1040 (4) - 188313 [14:18:31]1012 (4) - 22.10.2024 08:11 [14:18:31]1206 (1) - 0 [14:18:31]OFD Sender: Remove packet 188313 [14:18:31]ProducePacketName [14:18:31]name=ofd_packets/00188313 [14:18:31]NVStorageDeleteData [14:18:31]OFD Sender: No OFD packet to send [14:18:32]*** Cut start [14:18:32]*** Partial cut [14:18:32]*** CUTSNS_PIN = 1 [14:18:32]*** CUTSNS_PIN = 0 [14:18:32]*** Brake cut motor [14:18:32]Read from MH i2c: 01 [14:18:32]MH_I2C_Read... [14:18:32]*** Stop cut motor [14:18:32]*** Cut end [14:18:32]Read from MH i2c: 01 07 00 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: 01 07 00 29 09 00 00 00 00 00 FF 0F 47 [14:18:32]process_action close_receipt done [14:18:32]requested_data is exist [14:18:32]produce_requested_data [14:18:32]requested_item fm.sn is exist - process it [14:18:32]wFMCommunicate request_size=4 [14:18:32]MH_SAM_APDU [14:18:32]CAPDU: 80 11 00 00 [14:18:32]Write to MH i2c: E2 08 00 2A 09 80 11 00 00 00 00 00 00 AD [14:18:32]Write i2c OK [14:18:32]MH_I2C_Read... [14:18:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:18:32]Read from MH i2c: E2 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: E2 17 00 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: E2 17 00 2A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [14:18:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:18:32]wFMCommunicate OK [14:18:32]requested_item fd.num is exist - process it [14:18:32]SAM_PROTO_GetFieldsCounters [14:18:32]wFMCommunicate request_size=4 [14:18:32]MH_SAM_APDU [14:18:32]CAPDU: 80 13 00 00 [14:18:32]Write to MH i2c: E2 08 00 2B 09 80 13 00 00 00 00 00 00 B0 [14:18:32]Write i2c OK [14:18:32]MH_I2C_Read... [14:18:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:18:32]Read from MH i2c: E2 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: E2 62 00 [14:18:32]MH_I2C_Read... [14:18:32]Read from MH i2c: E2 62 00 2B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 04 [14:18:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 99 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 56 01 00 00 5E 04 04 00 56 01 00 00 57 04 04 00 57 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:18:32]wFMCommunicate OK [14:18:32]SAM_PROTO_GetFieldsCounters done [14:18:32]requested_item shift.num is exist - process it [14:18:32]requested_item shift.opened is exist - process it [14:18:32]req_shift_opened [14:18:32]FM_GetShiftState [14:18:32]SAM_PROTO_GetShiftState [14:18:32]wFMCommunicate request_size=4 [14:18:32]MH_SAM_APDU [14:18:32]CAPDU: 80 13 01 00 [14:18:32]Write to MH i2c: E2 08 00 2C 09 80 13 01 00 00 00 00 00 B2 [14:18:32]Write i2c OK [14:18:32]MH_I2C_Read... [14:18:33]Read from MH i2c: E2 [14:18:33]MH_I2C_Read... [14:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:18:33]Read from MH i2c: E2 0E 00 [14:18:33]MH_I2C_Read... [14:18:33]Read from MH i2c: E2 0E 00 2C 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A7 [14:18:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:18:33]wFMCommunicate OK [14:18:33]SAM_PROTO_GetShiftState done [14:18:33]FM_GetShiftState done [14:18:33]req_shift_opened done [14:18:33]requested_item shift.open_date is exist - process it [14:18:33]req_shift_open_date [14:18:33]req_shift_open_date done [14:18:33]produce_requested_data done [14:18:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188313,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:18:33]process_action_free close_receipt [14:18:33]json_value_free [14:18:33]json_value_free done [14:18:33]process_json_proto returns [14:18:33]Send response to host [14:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188313,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:18:33]free response buf [14:18:33]execute_script done [14:18:33]execute_script returns [14:18:33]free content buf [14:18:33]Sock 10.Close socket [14:18:33]Sock 10.Thread stoped [14:18:36]OFD Sender: No OFD packet to send [14:18:41]OFD Sender: No OFD packet to send [14:18:46]OFD Sender: No OFD packet to send [14:18:51]OFD Sender: No OFD packet to send [14:18:56]OFD Sender: No OFD packet to send [14:19:01]OFD Sender: No OFD packet to send [14:19:06]OFD Sender: No OFD packet to send [14:19:11]OFD Sender: No OFD packet to send [14:19:16]OFD Sender: No OFD packet to send [14:19:21]OFD Sender: No OFD packet to send [14:19:26]OFD Sender: No OFD packet to send [14:19:27]accept exits with 7 [14:19:27]New connection [14:19:27]New thread 3067161956 created [14:19:27]Thread 3067305316 joined [14:19:27]Waiting for new connection... [14:19:27] Sock 7.Parse request [14:19:27]Sock 7.Check first char [14:19:27]Sock 7.First char is OK [14:19:27]request: POST /json_proto HTTP/1.0 [14:19:27]Method: POST [14:19:27]URL: /json_proto [14:19:27]Method is POST - this is cgi request [14:19:27]url: /json_proto [14:19:27]query_string will be loaded in cgi processing [14:19:27]execute_cgi json_proto POST (null) [14:19:27]execute_cgi path=json_proto method=POST [14:19:27]POST find Content-Length [14:19:27]Host: 172.17.42.131:8080 [14:19:27]Content-Length: 977 [14:19:27]Content-Type: application/json [14:19:27] [14:19:27]POST finish read [14:19:27]Found Content-Length = 977 [14:19:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:27]execute_script... [14:19:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210369", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 59.850, "sum" : 4500.72, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 59.85 \u0441\u043E\u043C", "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:19:27]POST & json_proto [14:19:27]process_json_proto [14:19:27]json parsed OK: [14:19:27]protocol is kg_v1.0 [14:19:27]action value=close_receipt [14:19:27]process_action close_receipt [14:19:27]cmd_close_receipt [14:19:27]MH_GetDate [14:19:27]Write to MH i2c: F0 00 00 2D 09 25 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: F0 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: F0 09 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: F0 09 00 2D 09 00 70 B4 17 67 A0 18 CA 66 B8 [14:19:27]GetLastDocTimeStamp 1729606709 [14:19:27]current date 1729606768 [14:19:27]FM_GetShiftState [14:19:27]SAM_PROTO_GetShiftState [14:19:27]wFMCommunicate request_size=4 [14:19:27]MH_SAM_APDU [14:19:27]CAPDU: 80 13 01 00 [14:19:27]Write to MH i2c: E2 08 00 2E 09 80 13 01 00 00 00 00 00 B4 [14:19:27]Write i2c OK [14:19:27]MH_I2C_Read... [14:19:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:27]Read from MH i2c: E2 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 0E 00 [14:19:27]MH_I2C_Read... [14:19:27]Read from MH i2c: E2 0E 00 2E 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A9 [14:19:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:19:27]wFMCommunicate OK [14:19:27]SAM_PROTO_GetShiftState done [14:19:27]FM_GetShiftState done [14:19:27]opened in 1729556094 [14:19:27]opened+sec_in_day 1729642494 [14:19:27]quantity*price = 450072 [14:19:27]sum+1 = 450073 [14:19:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.72 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.95 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 343 22.10.2024 14:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 59.85 сом ФМ: 0000000000965340 ФД: 188314 ФПД: 151327937357320 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141928&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188314&fm=151327937357320&tin=02508201610067®Number=0000000000100030&sum=450000 [14:19:28]StoreToDocumentArchive [14:19:28]shift 461 fd 188314 [14:19:28]save to /storage/0461/doc_00188314 [14:19:28]save last doc name /storage/0461/doc_00188314 to /storage/kkm_last_doc_name [14:19:28]save OK [14:19:28]Clear old archive folders... [14:19:28]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:19:28]tlvbuf is 01491B40 [14:19:28]SAM_PROTO_ClearQueue [14:19:28]wFMCommunicate request_size=4 [14:19:28]MH_SAM_APDU [14:19:28]CAPDU: 80 09 00 00 [14:19:28]Write to MH i2c: E2 08 00 3B 09 80 09 00 00 00 00 00 00 B6 [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:19:28]Read from MH i2c: E2 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 3B 09 00 90 00 B8 [14:19:28]RAPDU: 90 00 [14:19:28]wFMCommunicate OK [14:19:28]SAM_PROTO_ClearQueue done [14:19:28]KKMCreateOFDPacket [14:19:28]OFDProtocolAddRootSTLVToBuf [14:19:28]FM_MakeSignedData [14:19:28]FM_MakeSignedData [14:19:28]SAM_PROTO_SignData [14:19:28]wFMCommunicate request_size=4 [14:19:28]MH_SAM_APDU [14:19:28]CAPDU: 80 0D 01 02 [14:19:28]Write to MH i2c: E2 08 00 3C 09 80 0D 01 02 00 00 00 00 BE [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:19:28]Read from MH i2c: E2 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 3C 09 00 90 00 B9 [14:19:28]RAPDU: 90 00 [14:19:28]wFMCommunicate OK [14:19:28]wFMCommunicate request_size=255 [14:19:28]MH_SAM_APDU [14:19:28]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 70 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DF 02 00 35 04 06 00 89 A1 C7 F3 [14:19:28]Write to MH i2c: E2 02 01 3D 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 70 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DF 02 00 35 04 06 00 89 A1 C7 F3 00 00 C5 [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:28]Read from MH i2c: E2 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 3D 09 00 90 00 BA [14:19:28]RAPDU: 90 00 [14:19:28]wFMCommunicate OK [14:19:28]wFMCommunicate request_size=7 [14:19:28]MH_SAM_APDU [14:19:28]CAPDU: 80 0D 02 02 02 66 08 [14:19:28]Write to MH i2c: E2 0A 00 3E 09 80 0D 02 02 02 00 66 08 00 00 33 [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:19:28]Read from MH i2c: E2 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [14:19:28]RAPDU: 90 00 [14:19:28]wFMCommunicate OK [14:19:28]wFMCommunicate request_size=4 [14:19:28]MH_SAM_APDU [14:19:28]CAPDU: 80 0D 03 02 [14:19:28]Write to MH i2c: E2 08 00 3F 09 80 0D 03 02 00 00 00 00 C3 [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:19:28]Read from MH i2c: E2 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 0B 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 0B 00 3F 09 00 00 CE 37 F3 A5 0D 8B 42 90 00 3B [14:19:28]RAPDU: 00 CE 37 F3 A5 0D 8B 42 90 00 [14:19:28]wFMCommunicate OK [14:19:28]SAM_PROTO_SignData done [14:19:28]FM_MakeSignedData done [14:19:28]CreateOFDProtocolMessage [14:19:28]wFMCommunicate request_size=4 [14:19:28]MH_SAM_APDU [14:19:28]CAPDU: 80 11 00 00 [14:19:28]Write to MH i2c: E2 08 00 40 09 80 11 00 00 00 00 00 00 C3 [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:28]Read from MH i2c: E2 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 17 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: E2 17 00 40 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [14:19:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:19:28]wFMCommunicate OK [14:19:28]CreateOFDProtocolMessage done [14:19:28]OFDSenderStorePacket 188314 [14:19:28]StoreOFDPacket docnum=188314 [14:19:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 57 CF 04 01 F9 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 70 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DF 02 00 35 04 06 00 89 A1 C7 F3 66 08 00 CE 37 F3 A5 0D 8B 42 [14:19:28]CheckFolder [14:19:28]dirname=/storage/ofd_packets [14:19:28]CheckFolder done [14:19:28]ProducePacketName [14:19:28]name=ofd_packets/00188314 [14:19:28]NVStorageSaveData ofd_packets/00188314 [14:19:28]File name is /storage/ofd_packets/00188314 [14:19:28]Write 298 bytes [14:19:28]NVStorageSaveData done [14:19:28]OFDSenderStorePacket done [14:19:28]KKMCreateOFDPacket done [14:19:28]NVStorageSaveData kkm_last_timestamp [14:19:28]File name is /storage/kkm_last_timestamp [14:19:28]Write 4 bytes [14:19:28]NVStorageSaveData done [14:19:28]ExternCall_PrintAddStr [14:19:28]wPrintStart [14:19:28]Write to MH i2c: 01 00 00 41 09 4A [14:19:28]Write i2c OK [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: 01 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: 01 07 00 [14:19:28]MH_I2C_Read... [14:19:28]Read from MH i2c: 01 07 00 41 09 00 00 00 00 00 FF 0F 5F [14:19:28]RasterBufferAndPrint [14:19:28]line Счет N : (1)210369 [14:19:28]line ИНН: 02508201610067 [14:19:28]line Контрольно-Кассовый Чек [14:19:28]line ПРОДАЖА [14:19:28]line ТРК (МРК, ГНК) : 51 [14:19:28]line Товар: 2710194210 [14:19:28]line ДТ-К-5 [14:19:28]line 59.850 * 75.20 [14:19:28]line = 4500.72 [14:19:28]line НДС 12% НСП 1% [14:19:28]line > о реализуемом товаре [14:19:28]line ОКРУГЛЕНИЕ: -0.72 [14:19:28]line ИТОГО: 4500.00 [14:19:28]line Внесено: 4500.00 [14:19:28]line СДАЧА: 0.00 [14:19:28]line НСП 1% : 39.83 [14:19:28]line НДС 12% : 477.95 [14:19:28]line Наличными: 4500.00 [14:19:28]line Безнал.: 0.00 [14:19:28]line Место: АЗС № 86 "Партнер Нефть" [14:19:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:19:28]line СНО: Общий режим [14:19:28]line Чек 343 22.10.2024 14:19 [14:19:28]line Смена: 461 ФФД: 1.0 [14:19:28]line ЗНМ: 0300000155 [14:19:28]line РНМ: 0000000000100030 [14:19:28]line Версия ККМ: 001 [14:19:28]line [14:19:28]line Дисконтная программа [14:19:28]line ДТ [14:19:28]line номер 86 [14:19:28]line сэкономлено 59.85 сом [14:19:28]line ФМ: 0000000000965340 [14:19:28]line ФД: 188314 [14:19:28]line ФПД: 151327937357320 [14:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T141928&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188314&fm=151327937357320&tin=02508201610067®Number=0000000000100030&sum=450000 [14:19:29]OFD Sender: Processing packet 188314 [packets to send 1062, broken 1061] [14:19:29]ProducePacketName [14:19:29]name=ofd_packets/00188314 [14:19:29]OFD Sender: To server: pG, [14:19:29]CommunicateWithHost lk.salyk.kg:30040 [14:19:29]ConnectInit lk.salyk.kg [14:19:29]written 0, free lines is 4095 [14:19:29]Write to MH i2c: 01 00 00 71 09 7A [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 07 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: 01 07 00 71 09 00 00 00 00 00 F5 0B 81 [14:19:29]RasterBufferAndPrint [14:19:29]line [14:19:29]line [14:19:29]line [14:19:29]line [14:19:29]line [14:19:29]written 0, free lines is 3063 [14:19:29]MH_Cut [14:19:29]Write to MH i2c: D1 01 00 78 09 01 53 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: D1 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: D1 01 00 [14:19:29]MH_I2C_Read... [14:19:29]Read from MH i2c: D1 01 00 78 09 00 52 [14:19:29]Write to MH i2c: 01 00 00 79 09 82 [14:19:29]Write i2c OK [14:19:29]MH_I2C_Read... [14:19:30]*** Cut start [14:19:30]*** Partial cut [14:19:30]*** CUTSNS_PIN = 1 [14:19:30]*** CUTSNS_PIN = 0 [14:19:31]*** Brake cut motor [14:19:31]Read from MH i2c: 01 [14:19:31]MH_I2C_Read... [14:19:31]*** Stop cut motor [14:19:31]*** Cut end [14:19:31]Read from MH i2c: 01 07 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: 01 07 00 79 09 00 00 00 00 00 FF 0F 97 [14:19:31]process_action close_receipt done [14:19:31]requested_data is exist [14:19:31]produce_requested_data [14:19:31]requested_item fm.sn is exist - process it [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 11 00 00 [14:19:31]Write to MH i2c: E2 08 00 7A 09 80 11 00 00 00 00 00 00 FD [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 17 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 17 00 7A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [14:19:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:19:31]wFMCommunicate OK [14:19:31]requested_item fd.num is exist - process it [14:19:31]SAM_PROTO_GetFieldsCounters [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 13 00 00 [14:19:31]Write to MH i2c: E2 08 00 7B 09 80 13 00 00 00 00 00 00 00 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:19:31]Connected sock=10 [14:19:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 57 CF 04 01 F9 13 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 CA E9 00 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 18 DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 57 01 00 00 F4 03 04 00 70 B4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DF 02 00 35 04 06 00 89 A1 C7 F3 66 08 00 CE 37 F3 A5 0D 8B 42 [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 62 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 62 00 7B 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 58 [14:19:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9A DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 57 01 00 00 5E 04 04 00 57 01 00 00 57 04 04 00 58 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:19:31]wFMCommunicate OK [14:19:31]SAM_PROTO_GetFieldsCounters done [14:19:31]requested_item shift.num is exist - process it [14:19:31]requested_item shift.opened is exist - process it [14:19:31]req_shift_opened [14:19:31]FM_GetShiftState [14:19:31]SAM_PROTO_GetShiftState [14:19:31]wFMCommunicate request_size=4 [14:19:31]MH_SAM_APDU [14:19:31]CAPDU: 80 13 01 00 [14:19:31]Write to MH i2c: E2 08 00 7C 09 80 13 01 00 00 00 00 00 02 [14:19:31]Write i2c OK [14:19:31]MH_I2C_Read... [14:19:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:19:31]Read from MH i2c: E2 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 0E 00 [14:19:31]MH_I2C_Read... [14:19:31]Read from MH i2c: E2 0E 00 7C 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F7 [14:19:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:19:31]wFMCommunicate OK [14:19:31]SAM_PROTO_GetShiftState done [14:19:31]FM_GetShiftState done [14:19:31]req_shift_opened done [14:19:31]requested_item shift.open_date is exist - process it [14:19:31]req_shift_open_date [14:19:31]req_shift_open_date done [14:19:31]produce_requested_data done [14:19:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188314,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:19:31]process_action_free close_receipt [14:19:31]json_value_free [14:19:31]json_value_free done [14:19:31]process_json_proto returns [14:19:31]Send response to host [14:19:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188314,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:19:31]free response buf [14:19:31]execute_script done [14:19:31]execute_script returns [14:19:31]free content buf [14:19:31]Sock 7.Close socket [14:19:31]Sock 7.Thread stoped [14:19:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 97 AF 47 00 3A D8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9A DF 02 00 F4 03 04 00 61 5E 17 67 B6 04 01 00 00 9A 74 1A 4D 15 A7 82 F7 [14:19:33]CommunicateWithHost err = 0 [14:19:33]CheckOFDResponse [14:19:33]1017 (14) - 77093643461234 [14:19:33]1041 (16) - 0000000000965340 [14:19:33]1040 (4) - 188314 [14:19:33]1012 (4) - 22.10.2024 08:12 [14:19:33]1206 (1) - 0 [14:19:33]OFD Sender: Remove packet 188314 [14:19:33]ProducePacketName [14:19:33]name=ofd_packets/00188314 [14:19:33]NVStorageDeleteData [14:19:34]OFD Sender: No OFD packet to send [14:19:39]OFD Sender: No OFD packet to send [14:19:44]OFD Sender: No OFD packet to send [14:19:49]OFD Sender: No OFD packet to send [14:19:54]OFD Sender: No OFD packet to send [14:19:59]OFD Sender: No OFD packet to send [14:20:04]OFD Sender: No OFD packet to send [14:20:09]OFD Sender: No OFD packet to send [14:20:14]OFD Sender: No OFD packet to send [14:20:19]OFD Sender: No OFD packet to send [14:20:24]OFD Sender: No OFD packet to send [14:20:29]OFD Sender: No OFD packet to send [14:20:34]OFD Sender: No OFD packet to send [14:20:39]OFD Sender: No OFD packet to send [14:20:44]OFD Sender: No OFD packet to send [14:20:49]OFD Sender: No OFD packet to send [14:20:54]OFD Sender: No OFD packet to send [14:20:59]OFD Sender: No OFD packet to send [14:21:04]OFD Sender: No OFD packet to send [14:21:09]OFD Sender: No OFD packet to send [14:21:14]OFD Sender: No OFD packet to send [14:21:19]OFD Sender: No OFD packet to send [14:21:24]OFD Sender: No OFD packet to send [14:21:29]OFD Sender: No OFD packet to send [14:21:34]OFD Sender: No OFD packet to send [14:21:39]OFD Sender: No OFD packet to send [14:21:44]OFD Sender: No OFD packet to send [14:21:49]OFD Sender: No OFD packet to send [14:21:52]accept exits with 9 [14:21:52]New connection [14:21:52]New thread 3067305316 created [14:21:52]Thread 3067161956 joined [14:21:52]Waiting for new connection... [14:21:52] Sock 9.Parse request [14:21:52]Sock 9.Check first char [14:21:52]Sock 9.First char is OK [14:21:52]request: POST /json_proto HTTP/1.0 [14:21:52]Method: POST [14:21:52]URL: /json_proto [14:21:52]Method is POST - this is cgi request [14:21:52]url: /json_proto [14:21:52]query_string will be loaded in cgi processing [14:21:52]execute_cgi json_proto POST (null) [14:21:52]execute_cgi path=json_proto method=POST [14:21:52]POST find Content-Length [14:21:52]Host: 172.17.42.131:8080 [14:21:52]Content-Length: 679 [14:21:52]Content-Type: application/json [14:21:52] [14:21:52]POST finish read [14:21:52]Found Content-Length = 679 [14:21:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [14:21:52]execute_script... [14:21: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)210371", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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" ] } } [14:21:52]POST & json_proto [14:21:52]process_json_proto [14:21:52]json parsed OK: [14:21:52]protocol is kg_v1.0 [14:21:52]action value=close_receipt [14:21:52]process_action close_receipt [14:21:52]cmd_close_receipt [14:21:52]MH_GetDate [14:21:52]Write to MH i2c: F0 00 00 7D 09 75 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: F0 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: F0 09 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: F0 09 00 7D 09 00 01 B5 17 67 A0 18 CA 66 9A [14:21:52]GetLastDocTimeStamp 1729606768 [14:21:52]current date 1729606913 [14:21:52]FM_GetShiftState [14:21:52]SAM_PROTO_GetShiftState [14:21:52]wFMCommunicate request_size=4 [14:21:52]MH_SAM_APDU [14:21:52]CAPDU: 80 13 01 00 [14:21:52]Write to MH i2c: E2 08 00 7E 09 80 13 01 00 00 00 00 00 04 [14:21:52]Write i2c OK [14:21:52]MH_I2C_Read... [14:21:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:52]Read from MH i2c: E2 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 [14:21:52]MH_I2C_Read... [14:21:52]Read from MH i2c: E2 0E 00 7E 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [14:21:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:21:52]wFMCommunicate OK [14:21:52]SAM_PROTO_GetShiftState done [14:21:52]FM_GetShiftState done [14:21:52]opened in 1729556094 [14:21:52]opened+sec_in_day 1729642494 [14:21:52]quantity*price = 100050 [14:21:52]sum+1 = 100052 [14:21:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 344 22.10.2024 14:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188315 ФПД: 57696697934686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142153&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188315&fm=57696697934686&tin=02508201610067®Number=0000000000100030&sum=100000 [14:21:53]StoreToDocumentArchive [14:21:53]shift 461 fd 188315 [14:21:53]save to /storage/0461/doc_00188315 [14:21:53]save last doc name /storage/0461/doc_00188315 to /storage/kkm_last_doc_name [14:21:53]save OK [14:21:53]Clear old archive folders... [14:21:53]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:21:53]tlvbuf is B6F30C40 [14:21:53]SAM_PROTO_ClearQueue [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 09 00 00 [14:21:53]Write to MH i2c: E2 08 00 8B 09 80 09 00 00 00 00 00 00 06 [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [14:21:53]RAPDU: 90 00 [14:21:53]wFMCommunicate OK [14:21:53]SAM_PROTO_ClearQueue done [14:21:53]KKMCreateOFDPacket [14:21:53]OFDProtocolAddRootSTLVToBuf [14:21:53]FM_MakeSignedData [14:21:53]FM_MakeSignedData [14:21:53]SAM_PROTO_SignData [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 0D 01 02 [14:21:53]Write to MH i2c: E2 08 00 8C 09 80 0D 01 02 00 00 00 00 0E [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [14:21:53]RAPDU: 90 00 [14:21:53]wFMCommunicate OK [14:21:53]wFMCommunicate request_size=255 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 01 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DF 02 00 35 04 06 00 34 79 8F 2F [14:21:53]Write to MH i2c: E2 02 01 8D 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 32 31 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 58 01 00 00 F4 03 04 00 01 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DF 02 00 35 04 06 00 34 79 8F 2F 00 00 BB [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 8D 09 00 90 00 0A [14:21:53]RAPDU: 90 00 [14:21:53]wFMCommunicate OK [14:21:53]wFMCommunicate request_size=7 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 0D 02 02 02 63 5E [14:21:53]Write to MH i2c: E2 0A 00 8E 09 80 0D 02 02 02 00 63 5E 00 00 D6 [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 03 00 8E 09 00 90 00 0B [14:21:53]RAPDU: 90 00 [14:21:53]wFMCommunicate OK [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 0D 03 02 [14:21:53]Write to MH i2c: E2 08 00 8F 09 80 0D 03 02 00 00 00 00 13 [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 0B 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 0B 00 8F 09 00 FB 66 79 BF 14 A0 17 40 90 00 B8 [14:21:53]RAPDU: FB 66 79 BF 14 A0 17 40 90 00 [14:21:53]wFMCommunicate OK [14:21:53]SAM_PROTO_SignData done [14:21:53]FM_MakeSignedData done [14:21:53]CreateOFDProtocolMessage [14:21:53]wFMCommunicate request_size=4 [14:21:53]MH_SAM_APDU [14:21:53]CAPDU: 80 11 00 00 [14:21:53]Write to MH i2c: E2 08 00 90 09 80 11 00 00 00 00 00 00 13 [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:53]Read from MH i2c: E2 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 17 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: E2 17 00 90 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [14:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:21:53]wFMCommunicate OK [14:21:53]CreateOFDProtocolMessage done [14:21:53]OFDSenderStorePacket 188315 [14:21:53]StoreOFDPacket docnum=188315 [14:21:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C8 53 04 01 83 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 01 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DF 02 00 35 04 06 00 34 79 8F 2F 63 5E FB 66 79 BF 14 A0 17 40 [14:21:53]CheckFolder [14:21:53]dirname=/storage/ofd_packets [14:21:53]CheckFolder done [14:21:53]ProducePacketName [14:21:53]name=ofd_packets/00188315 [14:21:53]NVStorageSaveData ofd_packets/00188315 [14:21:53]File name is /storage/ofd_packets/00188315 [14:21:53]Write 298 bytes [14:21:53]NVStorageSaveData done [14:21:53]OFDSenderStorePacket done [14:21:53]KKMCreateOFDPacket done [14:21:53]NVStorageSaveData kkm_last_timestamp [14:21:53]File name is /storage/kkm_last_timestamp [14:21:53]Write 4 bytes [14:21:53]NVStorageSaveData done [14:21:53]ExternCall_PrintAddStr [14:21:53]wPrintStart [14:21:53]Write to MH i2c: 01 00 00 91 09 9A [14:21:53]Write i2c OK [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: 01 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: 01 07 00 [14:21:53]MH_I2C_Read... [14:21:53]Read from MH i2c: 01 07 00 91 09 00 00 00 00 00 FF 0F AF [14:21:53]RasterBufferAndPrint [14:21:53]line Счет N : (1)210371 [14:21:53]line ИНН: 02508201610067 [14:21:53]line Контрольно-Кассовый Чек [14:21:53]line ПРОДАЖА [14:21:53]line ТРК (МРК, ГНК) : 61 [14:21:53]line Товар: 2710194210 [14:21:53]line ДТ-К-5 [14:21:53]line 13.130 * 76.20 [14:21:53]line = 1000.51 [14:21:53]line НДС 12% НСП 1% [14:21:53]line > о реализуемом товаре [14:21:53]line ОКРУГЛЕНИЕ: -0.51 [14:21:53]line ИТОГО: 1000.00 [14:21:53]line Внесено: 1000.00 [14:21:53]line СДАЧА: 0.00 [14:21:53]line НСП 1% : 8.85 [14:21:53]line НДС 12% : 106.25 [14:21:53]line Наличными: 1000.00 [14:21:53]line Безнал.: 0.00 [14:21:53]line Место: АЗС № 86 "Партнер Нефть" [14:21:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:21:53]line СНО: Общий режим [14:21:53]line Чек 344 22.10.2024 14:21 [14:21:53]line Смена: 461 ФФД: 1.0 [14:21:53]line ЗНМ: 0300000155 [14:21:53]line РНМ: 0000000000100030 [14:21:53]line Версия ККМ: 001 [14:21:53]line ФМ: 0000000000965340 [14:21:53]line ФД: 188315 [14:21:53]line ФПД: 57696697934686 [14:21:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142153&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188315&fm=57696697934686&tin=02508201610067®Number=0000000000100030&sum=100000 [14:21:54]OFD Sender: Processing packet 188315 [packets to send 1062, broken 1061] [14:21:54]ProducePacketName [14:21:54]name=ofd_packets/00188315 [14:21:54]OFD Sender: To server: pG, [14:21:54]CommunicateWithHost lk.salyk.kg:30040 [14:21:54]ConnectInit lk.salyk.kg [14:21:54]written 0, free lines is 4095 [14:21:54]Connected sock=11 [14:21:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 C8 53 04 01 83 94 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 58 01 00 00 F4 03 04 00 01 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9B DF 02 00 35 04 06 00 34 79 8F 2F 63 5E FB 66 79 BF 14 A0 17 40 [14:21:54]Write to MH i2c: 01 00 00 BC 09 C5 [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: 01 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: 01 07 00 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: 01 07 00 BC 09 00 00 00 00 00 6B 0C 43 [14:21:54]RasterBufferAndPrint [14:21:54]line [14:21:54]line [14:21:54]line [14:21:54]line [14:21:54]line [14:21:54]written 0, free lines is 3181 [14:21:54]MH_Cut [14:21:54]Write to MH i2c: D1 01 00 C3 09 01 9E [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: D1 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: D1 01 00 [14:21:54]MH_I2C_Read... [14:21:54]Read from MH i2c: D1 01 00 C3 09 00 9D [14:21:54]Write to MH i2c: 01 00 00 C4 09 CD [14:21:54]Write i2c OK [14:21:54]MH_I2C_Read... [14:21:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 78 2C 47 00 09 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 39 36 35 33 34 30 10 04 04 00 9B DF 02 00 F4 03 04 00 EE 5E 17 67 B6 04 01 00 00 26 1B DD B9 35 C7 C3 09 [14:21:54]CommunicateWithHost err = 0 [14:21:54]CheckOFDResponse [14:21:54]1017 (14) - 77093643461234 [14:21:54]1041 (16) - 0000000000965340 [14:21:54]1040 (4) - 188315 [14:21:54]1012 (4) - 22.10.2024 08:14 [14:21:54]1206 (1) - 0 [14:21:54]OFD Sender: Remove packet 188315 [14:21:54]ProducePacketName [14:21:54]name=ofd_packets/00188315 [14:21:54]NVStorageDeleteData [14:21:55]OFD Sender: No OFD packet to send [14:21:55]*** Cut start [14:21:55]*** Partial cut [14:21:55]*** CUTSNS_PIN = 1 [14:21:55]*** CUTSNS_PIN = 0 [14:21:55]*** Brake cut motor [14:21:56]Read from MH i2c: 01 [14:21:56]MH_I2C_Read... [14:21:56]*** Stop cut motor [14:21:56]*** Cut end [14:21:56]Read from MH i2c: 01 07 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: 01 07 00 C4 09 00 00 00 00 00 FF 0F E2 [14:21:56]process_action close_receipt done [14:21:56]requested_data is exist [14:21:56]produce_requested_data [14:21:56]requested_item fm.sn is exist - process it [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 11 00 00 [14:21:56]Write to MH i2c: E2 08 00 C5 09 80 11 00 00 00 00 00 00 48 [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:56]Read from MH i2c: E2 17 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 17 00 C5 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [14:21:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:21:56]wFMCommunicate OK [14:21:56]requested_item fd.num is exist - process it [14:21:56]SAM_PROTO_GetFieldsCounters [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 13 00 00 [14:21:56]Write to MH i2c: E2 08 00 C6 09 80 13 00 00 00 00 00 00 4B [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 62 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 62 00 C6 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [14:21:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9B DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 58 01 00 00 5E 04 04 00 58 01 00 00 57 04 04 00 59 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:21:56]wFMCommunicate OK [14:21:56]SAM_PROTO_GetFieldsCounters done [14:21:56]requested_item shift.num is exist - process it [14:21:56]requested_item shift.opened is exist - process it [14:21:56]req_shift_opened [14:21:56]FM_GetShiftState [14:21:56]SAM_PROTO_GetShiftState [14:21:56]wFMCommunicate request_size=4 [14:21:56]MH_SAM_APDU [14:21:56]CAPDU: 80 13 01 00 [14:21:56]Write to MH i2c: E2 08 00 C7 09 80 13 01 00 00 00 00 00 4D [14:21:56]Write i2c OK [14:21:56]MH_I2C_Read... [14:21:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:56]Read from MH i2c: E2 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 0E 00 [14:21:56]MH_I2C_Read... [14:21:56]Read from MH i2c: E2 0E 00 C7 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 42 [14:21:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:21:56]wFMCommunicate OK [14:21:56]SAM_PROTO_GetShiftState done [14:21:56]FM_GetShiftState done [14:21:56]req_shift_opened done [14:21:56]requested_item shift.open_date is exist - process it [14:21:56]req_shift_open_date [14:21:56]req_shift_open_date done [14:21:56]produce_requested_data done [14:21:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188315,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:21:56]process_action_free close_receipt [14:21:56]json_value_free [14:21:56]json_value_free done [14:21:56]process_json_proto returns [14:21:56]Send response to host [14:21:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188315,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:21:56]free response buf [14:21:56]execute_script done [14:21:56]execute_script returns [14:21:56]free content buf [14:21:56]Sock 9.Close socket [14:21:56]Sock 9.Thread stoped [14:21:57]accept exits with 7 [14:21:57]New connection [14:21:57]New thread 3067161956 created [14:21:57]Thread 3067305316 joined [14:21:57]Waiting for new connection... [14:21:57] Sock 7.Parse request [14:21:57]Sock 7.Check first char [14:21:57]Sock 7.First char is OK [14:21:57]request: POST /json_proto HTTP/1.0 [14:21:57]Method: POST [14:21:57]URL: /json_proto [14:21:57]Method is POST - this is cgi request [14:21:57]url: /json_proto [14:21:57]query_string will be loaded in cgi processing [14:21:57]execute_cgi json_proto POST (null) [14:21:57]execute_cgi path=json_proto method=POST [14:21:57]POST find Content-Length [14:21:57]Host: 172.17.42.131:8080 [14:21:57]Content-Length: 682 [14:21:57]Content-Type: application/json [14:21:57] [14:21:57]POST finish read [14:21:57]Found Content-Length = 682 [14:21:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210372", "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" : 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" ] } } [14:21:57]execute_script... [14:21:57]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210372", "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" : 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" ] } } [14:21:57]POST & json_proto [14:21:57]process_json_proto [14:21:57]json parsed OK: [14:21:57]protocol is kg_v1.0 [14:21:57]action value=close_receipt [14:21:57]process_action close_receipt [14:21:57]cmd_close_receipt [14:21:57]MH_GetDate [14:21:57]Write to MH i2c: F0 00 00 C8 09 C0 [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: F0 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: F0 09 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: F0 09 00 C8 09 00 06 B5 17 67 A0 18 CA 66 EA [14:21:57]GetLastDocTimeStamp 1729606913 [14:21:57]current date 1729606918 [14:21:57]FM_GetShiftState [14:21:57]SAM_PROTO_GetShiftState [14:21:57]wFMCommunicate request_size=4 [14:21:57]MH_SAM_APDU [14:21:57]CAPDU: 80 13 01 00 [14:21:57]Write to MH i2c: E2 08 00 C9 09 80 13 01 00 00 00 00 00 4F [14:21:57]Write i2c OK [14:21:57]MH_I2C_Read... [14:21:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:21:57]Read from MH i2c: E2 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 0E 00 [14:21:57]MH_I2C_Read... [14:21:57]Read from MH i2c: E2 0E 00 C9 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [14:21:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:21:57]wFMCommunicate OK [14:21:57]SAM_PROTO_GetShiftState done [14:21:57]FM_GetShiftState done [14:21:57]opened in 1729556094 [14:21:57]opened+sec_in_day 1729642494 [14:21:57]quantity*price = 200043 [14:21:57]sum+1 = 200044 [14:21:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 345 22.10.2024 14:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188316 ФПД: 57398145246374 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188316&fm=57398145246374&tin=02508201610067®Number=0000000000100030&sum=200000 [14:21:59]StoreToDocumentArchive [14:21:59]shift 461 fd 188316 [14:21:59]save to /storage/0461/doc_00188316 [14:21:59]save last doc name /storage/0461/doc_00188316 to /storage/kkm_last_doc_name [14:21:59]save OK [14:21:59]Clear old archive folders... [14:21:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:21:59]tlvbuf is 01491E50 [14:21:59]SAM_PROTO_ClearQueue [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 09 00 00 [14:21:59]Write to MH i2c: E2 08 00 D6 09 80 09 00 00 00 00 00 00 51 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 D6 09 00 90 00 53 [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_ClearQueue done [14:21:59]KKMCreateOFDPacket [14:21:59]OFDProtocolAddRootSTLVToBuf [14:21:59]FM_MakeSignedData [14:21:59]FM_MakeSignedData [14:21:59]SAM_PROTO_SignData [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 01 02 [14:21:59]Write to MH i2c: E2 08 00 D7 09 80 0D 01 02 00 00 00 00 59 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 D7 09 00 90 00 54 [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=255 [14:21:59]MH_SAM_APDU [14:21: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 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 59 01 00 00 F4 03 04 00 06 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DF 02 00 35 04 06 00 34 [14:21:59]Write to MH i2c: E2 02 01 D8 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 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 59 01 00 00 F4 03 04 00 06 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DF 02 00 35 04 06 00 34 00 00 86 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 D8 09 00 90 00 55 [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=10 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 02 02 05 34 0C 0E E4 A6 [14:21:59]Write to MH i2c: E2 0D 00 D9 09 80 0D 02 02 05 00 34 0C 0E E4 A6 00 00 3E [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 03 00 D9 09 00 90 00 56 [14:21:59]RAPDU: 90 00 [14:21:59]wFMCommunicate OK [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 0D 03 02 [14:21:59]Write to MH i2c: E2 08 00 DA 09 80 0D 03 02 00 00 00 00 5E [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0B 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 0B 00 DA 09 00 2E E5 F4 3D D1 D0 9F 8B 90 00 6E [14:21:59]RAPDU: 2E E5 F4 3D D1 D0 9F 8B 90 00 [14:21:59]wFMCommunicate OK [14:21:59]SAM_PROTO_SignData done [14:21:59]FM_MakeSignedData done [14:21:59]CreateOFDProtocolMessage [14:21:59]wFMCommunicate request_size=4 [14:21:59]MH_SAM_APDU [14:21:59]CAPDU: 80 11 00 00 [14:21:59]Write to MH i2c: E2 08 00 DB 09 80 11 00 00 00 00 00 00 5E [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:21:59]Read from MH i2c: E2 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 17 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: E2 17 00 DB 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [14:21:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:21:59]wFMCommunicate OK [14:21:59]CreateOFDProtocolMessage done [14:21:59]OFDSenderStorePacket 188316 [14:21:59]StoreOFDPacket docnum=188316 [14:21:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 43 07 01 CF 9C 5A 03 01 00 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 59 01 00 00 F4 03 04 00 06 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DF 02 00 35 04 06 00 34 34 0C 0E E4 A6 2E E5 F4 3D D1 D0 9F 8B [14:21:59]CheckFolder [14:21:59]dirname=/storage/ofd_packets [14:21:59]CheckFolder done [14:21:59]ProducePacketName [14:21:59]name=ofd_packets/00188316 [14:21:59]NVStorageSaveData ofd_packets/00188316 [14:21:59]File name is /storage/ofd_packets/00188316 [14:21:59]Write 301 bytes [14:21:59]NVStorageSaveData done [14:21:59]OFDSenderStorePacket done [14:21:59]KKMCreateOFDPacket done [14:21:59]NVStorageSaveData kkm_last_timestamp [14:21:59]File name is /storage/kkm_last_timestamp [14:21:59]Write 4 bytes [14:21:59]NVStorageSaveData done [14:21:59]ExternCall_PrintAddStr [14:21:59]wPrintStart [14:21:59]Write to MH i2c: 01 00 00 DC 09 E5 [14:21:59]Write i2c OK [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 07 00 [14:21:59]MH_I2C_Read... [14:21:59]Read from MH i2c: 01 07 00 DC 09 00 00 00 00 00 FF 0F FA [14:21:59]RasterBufferAndPrint [14:21:59]line Счет N : (1)210372 [14:21:59]line ИНН: 02508201610067 [14:21:59]line Контрольно-Кассовый Чек [14:21:59]line ПРОДАЖА [14:21:59]line ТРК (МРК, ГНК) : 33 [14:21:59]line Товар: 2710124500 [14:21:59]line Аи-95-К-3 [14:21:59]line 26.960 * 74.20 [14:21:59]line = 2000.43 [14:21:59]line НДС 12% НСП 1% [14:21:59]line > о реализуемом товаре [14:21:59]line ОКРУГЛЕНИЕ: -0.43 [14:21:59]line ИТОГО: 2000.00 [14:21:59]line Внесено: 2000.00 [14:21:59]line СДАЧА: 0.00 [14:21:59]line НСП 1% : 17.70 [14:21:59]line НДС 12% : 212.43 [14:21:59]line Наличными: 2000.00 [14:21:59]line Безнал.: 0.00 [14:21:59]line Место: АЗС № 86 "Партнер Нефть" [14:21:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:21:59]line СНО: Общий режим [14:21:59]line Чек 345 22.10.2024 14:21 [14:21:59]line Смена: 461 ФФД: 1.0 [14:21:59]line ЗНМ: 0300000155 [14:21:59]line РНМ: 0000000000100030 [14:21:59]line Версия ККМ: 001 [14:21:59]line ФМ: 0000000000965340 [14:21:59]line ФД: 188316 [14:21:59]line ФПД: 57398145246374 [14:21:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188316&fm=57398145246374&tin=02508201610067®Number=0000000000100030&sum=200000 [14:21:59]written 0, free lines is 4095 [14:21:59]OFD Sender: Processing packet 188316 [packets to send 1062, broken 1061] [14:21:59]ProducePacketName [14:21:59]name=ofd_packets/00188316 [14:21:59]OFD Sender: To server: pG, [14:21:59]CommunicateWithHost lk.salyk.kg:30040 [14:21:59]ConnectInit lk.salyk.kg [14:22:00]Connected sock=10 [14:22:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5F 43 07 01 CF 9C 5A 03 01 00 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 59 01 00 00 F4 03 04 00 06 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DF 02 00 35 04 06 00 34 34 0C 0E E4 A6 2E E5 F4 3D D1 D0 9F 8B [14:22:00]Write to MH i2c: 01 00 00 07 0A 11 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: 01 07 00 07 0A 00 00 00 00 00 6E 0C 92 [14:22:00]RasterBufferAndPrint [14:22:00]line [14:22:00]line [14:22:00]line [14:22:00]line [14:22:00]line [14:22:00]written 0, free lines is 3186 [14:22:00]MH_Cut [14:22:00]Write to MH i2c: D1 01 00 0E 0A 01 EA [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: D1 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: D1 01 00 [14:22:00]MH_I2C_Read... [14:22:00]Read from MH i2c: D1 01 00 0E 0A 00 E9 [14:22:00]Write to MH i2c: 01 00 00 0F 0A 19 [14:22:00]Write i2c OK [14:22:00]MH_I2C_Read... [14:22:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4D 37 47 00 1C 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9C DF 02 00 F4 03 04 00 F4 5E 17 67 B6 04 01 00 00 C7 38 D6 14 BA 73 70 76 [14:22:00]CommunicateWithHost err = 0 [14:22:00]CheckOFDResponse [14:22:00]1017 (14) - 77093643461234 [14:22:00]1041 (16) - 0000000000965340 [14:22:00]1040 (4) - 188316 [14:22:00]1012 (4) - 22.10.2024 08:14 [14:22:00]1206 (1) - 0 [14:22:00]OFD Sender: Remove packet 188316 [14:22:00]ProducePacketName [14:22:00]name=ofd_packets/00188316 [14:22:00]NVStorageDeleteData [14:22:00]OFD Sender: No OFD packet to send [14:22:01]*** Cut start [14:22:01]*** Partial cut [14:22:01]*** CUTSNS_PIN = 1 [14:22:01]*** CUTSNS_PIN = 0 [14:22:01]*** Brake cut motor [14:22:02]Read from MH i2c: 01 [14:22:02]MH_I2C_Read... [14:22:02]*** Stop cut motor [14:22:02]*** Cut end [14:22:02]Read from MH i2c: 01 07 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: 01 07 00 0F 0A 00 00 00 00 00 FF 0F 2E [14:22:02]process_action close_receipt done [14:22:02]requested_data is exist [14:22:02]produce_requested_data [14:22:02]requested_item fm.sn is exist - process it [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 11 00 00 [14:22:02]Write to MH i2c: E2 08 00 10 0A 80 11 00 00 00 00 00 00 94 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 17 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 17 00 10 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [14:22:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:22:02]wFMCommunicate OK [14:22:02]requested_item fd.num is exist - process it [14:22:02]SAM_PROTO_GetFieldsCounters [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 13 00 00 [14:22:02]Write to MH i2c: E2 08 00 11 0A 80 13 00 00 00 00 00 00 97 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 62 00 [14:22:02]MH_I2C_Read... [14:22:02]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 F7 [14:22:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9C DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 59 01 00 00 5E 04 04 00 59 01 00 00 57 04 04 00 5A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_GetFieldsCounters done [14:22:02]requested_item shift.num is exist - process it [14:22:02]requested_item shift.opened is exist - process it [14:22:02]req_shift_opened [14:22:02]FM_GetShiftState [14:22:02]SAM_PROTO_GetShiftState [14:22:02]wFMCommunicate request_size=4 [14:22:02]MH_SAM_APDU [14:22:02]CAPDU: 80 13 01 00 [14:22:02]Write to MH i2c: E2 08 00 12 0A 80 13 01 00 00 00 00 00 99 [14:22:02]Write i2c OK [14:22:02]MH_I2C_Read... [14:22:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:22:02]Read from MH i2c: E2 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0E 00 [14:22:02]MH_I2C_Read... [14:22:02]Read from MH i2c: E2 0E 00 12 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8E [14:22:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:22:02]wFMCommunicate OK [14:22:02]SAM_PROTO_GetShiftState done [14:22:02]FM_GetShiftState done [14:22:02]req_shift_opened done [14:22:02]requested_item shift.open_date is exist - process it [14:22:02]req_shift_open_date [14:22:02]req_shift_open_date done [14:22:02]produce_requested_data done [14:22:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188316,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:22:02]process_action_free close_receipt [14:22:02]json_value_free [14:22:02]json_value_free done [14:22:02]process_json_proto returns [14:22:02]Send response to host [14:22:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188316,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:22:02]free response buf [14:22:02]execute_script done [14:22:02]execute_script returns [14:22:02]free content buf [14:22:02]Sock 7.Close socket [14:22:02]Sock 7.Thread stoped [14:22:05]OFD Sender: No OFD packet to send [14:22:10]OFD Sender: No OFD packet to send [14:22:16]OFD Sender: No OFD packet to send [14:22:21]OFD Sender: No OFD packet to send [14:22:26]OFD Sender: No OFD packet to send [14:22:31]OFD Sender: No OFD packet to send [14:22:36]OFD Sender: No OFD packet to send [14:22:41]OFD Sender: No OFD packet to send [14:22:46]OFD Sender: No OFD packet to send [14:22:51]OFD Sender: No OFD packet to send [14:22:55]int [14:22:55]Write to MH i2c: 01 00 00 13 0A 1D [14:22:55]*** FLAG_PRN_PAP2 set [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 07 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 07 00 13 0A 00 02 00 00 00 FF 0F 34 [14:22:55]state=0 [14:22:55]Cover opened [14:22:55]int [14:22:55]Write to MH i2c: 01 00 00 14 0A 1E [14:22:55]*** FLAG_PRN_PAP2 reset [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 07 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 FF 0F 33 [14:22:55]state=3 [14:22:55]Cover closed [14:22:55]int [14:22:55]Write to MH i2c: 01 00 00 15 0A 1F [14:22:55]*** FLAG_PRN_PAP2 set [14:22:55]Write i2c OK [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 07 00 [14:22:55]MH_I2C_Read... [14:22:55]Read from MH i2c: 01 07 00 15 0A 00 02 00 00 00 FF 0F 36 [14:22:55]state=0 [14:22:55]Cover opened [14:22:56]OFD Sender: No OFD packet to send [14:23:00]Write to MH i2c: 01 00 00 16 0A 20 [14:23:00]Write i2c OK [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: 01 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: 01 07 00 [14:23:00]MH_I2C_Read... [14:23:00]Read from MH i2c: 01 07 00 16 0A 00 02 00 00 00 FF 0F 37 [14:23:00]state=3 [14:23:00]Cover opened [14:23:01]OFD Sender: No OFD packet to send [14:23:04]int [14:23:04]Write to MH i2c: 01 00 00 17 0A 21 [14:23:04]*** FLAG_PRN_PAP2 reset [14:23:04]Write i2c OK [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 [14:23:04]MH_I2C_Read... [14:23:04]Read from MH i2c: 01 07 00 17 0A 00 00 00 00 00 FF 0F 36 [14:23:04]state=3 [14:23:04]Cover closed [14:23:05]int [14:23:05]Write to MH i2c: 01 00 00 18 0A 22 [14:23:05]*** FLAG_PRN_PAP2 set [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 18 0A 00 02 00 00 00 FF 0F 39 [14:23:05]state=0 [14:23:05]Cover opened [14:23:05]int [14:23:05]Write to MH i2c: 01 00 00 19 0A 23 [14:23:05]*** FLAG_PRN_PAP1 set [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 19 0A 00 03 00 00 00 FF 0F 3B [14:23:05]state=3 [14:23:05]No paper [14:23:05]Cover opened [14:23:05]int [14:23:05]Write to MH i2c: 01 00 00 1A 0A 24 [14:23:05]*** FLAG_PRN_PAP2 reset [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 1A 0A 00 01 00 00 00 FF 0F 3A [14:23:05]state=3 [14:23:05]No paper [14:23:05]Cover closed [14:23:05]int [14:23:05]Write to MH i2c: 01 00 00 1B 0A 25 [14:23:05]*** FLAG_PRN_PAP1 reset [14:23:05]Write i2c OK [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 [14:23:05]MH_I2C_Read... [14:23:05]Read from MH i2c: 01 07 00 1B 0A 00 00 00 00 00 FF 0F 3A [14:23:05]state=0 [14:23:06]OFD Sender: No OFD packet to send [14:23:11]OFD Sender: No OFD packet to send [14:23:16]OFD Sender: No OFD packet to send [14:23:21]OFD Sender: No OFD packet to send [14:23:26]OFD Sender: No OFD packet to send [14:23:31]OFD Sender: No OFD packet to send [14:23:36]OFD Sender: No OFD packet to send [14:23:41]OFD Sender: No OFD packet to send [14:23:46]OFD Sender: No OFD packet to send [14:23:50]accept exits with 9 [14:23:50]New connection [14:23:50]New thread 3067305316 created [14:23:50]Thread 3067161956 joined [14:23:50]Waiting for new connection... [14:23:50] Sock 9.Parse request [14:23:50]Sock 9.Check first char [14:23:50]Sock 9.First char is OK [14:23:50]request: POST /json_proto HTTP/1.0 [14:23:50]Method: POST [14:23:50]URL: /json_proto [14:23:50]Method is POST - this is cgi request [14:23:50]url: /json_proto [14:23:50]query_string will be loaded in cgi processing [14:23:50]execute_cgi json_proto POST (null) [14:23:50]execute_cgi path=json_proto method=POST [14:23:50]POST find Content-Length [14:23:50]Host: 172.17.42.131:8080 [14:23:50]Content-Length: 789 [14:23:50]Content-Type: application/json [14:23:50] [14:23:50]POST finish read [14:23:50]Found Content-Length = 789 [14:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:50]execute_script... [14:23: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)210373", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 40.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A53324", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:23:50]POST & json_proto [14:23:50]process_json_proto [14:23:50]json parsed OK: [14:23:50]protocol is kg_v1.0 [14:23:50]action value=close_receipt [14:23:50]process_action close_receipt [14:23:50]cmd_close_receipt [14:23:50]MH_GetDate [14:23:50]Write to MH i2c: F0 00 00 1C 0A 15 [14:23:50]Write i2c OK [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: F0 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: F0 09 00 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: F0 09 00 1C 0A 00 77 B5 17 67 A0 18 CA 66 B0 [14:23:50]GetLastDocTimeStamp 1729606918 [14:23:50]current date 1729607031 [14:23:50]FM_GetShiftState [14:23:50]SAM_PROTO_GetShiftState [14:23:50]wFMCommunicate request_size=4 [14:23:50]MH_SAM_APDU [14:23:50]CAPDU: 80 13 01 00 [14:23:50]Write to MH i2c: E2 08 00 1D 0A 80 13 01 00 00 00 00 00 A4 [14:23:50]Write i2c OK [14:23:50]MH_I2C_Read... [14:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:50]Read from MH i2c: E2 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: E2 0E 00 [14:23:50]MH_I2C_Read... [14:23:50]Read from MH i2c: E2 0E 00 1D 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 99 [14:23:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:23:50]wFMCommunicate OK [14:23:50]SAM_PROTO_GetShiftState done [14:23:50]FM_GetShiftState done [14:23:50]opened in 1729556094 [14:23:50]opened+sec_in_day 1729642494 [14:23:50]quantity*price = 0 [14:23:50]sum+1 = 1 [14:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 346 22.10.2024 14:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 53324 ФМ: 0000000000965340 ФД: 188317 ФПД: 205568961382352 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142352&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188317&fm=205568961382352&tin=02508201610067®Number=0000000000100030&sum=0 [14:23:52]StoreToDocumentArchive [14:23:52]shift 461 fd 188317 [14:23:52]save to /storage/0461/doc_00188317 [14:23:52]save last doc name /storage/0461/doc_00188317 to /storage/kkm_last_doc_name [14:23:52]save OK [14:23:52]Clear old archive folders... [14:23:52]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:23:52]tlvbuf is 014590F0 [14:23:52]SAM_PROTO_ClearQueue [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 09 00 00 [14:23:52]Write to MH i2c: E2 08 00 2A 0A 80 09 00 00 00 00 00 00 A6 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 2A 0A 00 90 00 A8 [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]SAM_PROTO_ClearQueue done [14:23:52]KKMCreateOFDPacket [14:23:52]OFDProtocolAddRootSTLVToBuf [14:23:52]FM_MakeSignedData [14:23:52]FM_MakeSignedData [14:23:52]SAM_PROTO_SignData [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 01 02 [14:23:52]Write to MH i2c: E2 08 00 2B 0A 80 0D 01 02 00 00 00 00 AE [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 2B 0A 00 90 00 A9 [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]wFMCommunicate request_size=255 [14:23:52]MH_SAM_APDU [14:23: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 78 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DF 02 00 35 04 06 00 BA F6 C0 EB [14:23:52]Write to MH i2c: E2 02 01 2C 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 78 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DF 02 00 35 04 06 00 BA F6 C0 EB 00 00 7A [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 2C 0A 00 90 00 AA [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]wFMCommunicate request_size=7 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 02 02 02 87 D0 [14:23:52]Write to MH i2c: E2 0A 00 2D 0A 80 0D 02 02 02 00 87 D0 00 00 0C [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 03 00 2D 0A 00 90 00 AB [14:23:52]RAPDU: 90 00 [14:23:52]wFMCommunicate OK [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 0D 03 02 [14:23:52]Write to MH i2c: E2 08 00 2E 0A 80 0D 03 02 00 00 00 00 B3 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 0B 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 0B 00 2E 0A 00 A4 56 7C 34 9A F0 BF F9 90 00 A0 [14:23:52]RAPDU: A4 56 7C 34 9A F0 BF F9 90 00 [14:23:52]wFMCommunicate OK [14:23:52]SAM_PROTO_SignData done [14:23:52]FM_MakeSignedData done [14:23:52]CreateOFDProtocolMessage [14:23:52]wFMCommunicate request_size=4 [14:23:52]MH_SAM_APDU [14:23:52]CAPDU: 80 11 00 00 [14:23:52]Write to MH i2c: E2 08 00 2F 0A 80 11 00 00 00 00 00 00 B3 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:52]Read from MH i2c: E2 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 17 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: E2 17 00 2F 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [14:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:23:52]wFMCommunicate OK [14:23:52]CreateOFDProtocolMessage done [14:23:52]OFDSenderStorePacket 188317 [14:23:52]StoreOFDPacket docnum=188317 [14:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 FA 3E 04 01 F6 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 78 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DF 02 00 35 04 06 00 BA F6 C0 EB 87 D0 A4 56 7C 34 9A F0 BF F9 [14:23:52]CheckFolder [14:23:52]dirname=/storage/ofd_packets [14:23:52]CheckFolder done [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00188317 [14:23:52]NVStorageSaveData ofd_packets/00188317 [14:23:52]File name is /storage/ofd_packets/00188317 [14:23:52]Write 298 bytes [14:23:52]NVStorageSaveData done [14:23:52]OFDSenderStorePacket done [14:23:52]KKMCreateOFDPacket done [14:23:52]NVStorageSaveData kkm_last_timestamp [14:23:52]File name is /storage/kkm_last_timestamp [14:23:52]Write 4 bytes [14:23:52]NVStorageSaveData done [14:23:52]ExternCall_PrintAddStr [14:23:52]wPrintStart [14:23:52]Write to MH i2c: 01 00 00 30 0A 3A [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: 01 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: 01 07 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: 01 07 00 30 0A 00 00 00 00 00 FF 0F 4F [14:23:52]RasterBufferAndPrint [14:23:52]line Счет N : (1)210373 [14:23:52]line ИНН: 02508201610067 [14:23:52]line Контрольно-Кассовый Чек [14:23:52]line ПРОДАЖА [14:23:52]line ТРК (МРК, ГНК) : 51 [14:23:52]line Товар: 2710194210 [14:23:52]line ДТ-К-5 [14:23:52]line 40.000 * 0.00 [14:23:52]line = 0.00 [14:23:52]line НДС 12% НСП 1% [14:23:52]line > о реализуемом товаре [14:23:52]line ИТОГО: 0.00 [14:23:52]line НСП 1% : 0.00 [14:23:52]line НДС 12% : 0.00 [14:23:52]line Наличными: 0.00 [14:23:52]line Безнал.: 0.00 [14:23:52]line Место: АЗС № 86 "Партнер Нефть" [14:23:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:23:52]line СНО: Общий режим [14:23:52]line Чек 346 22.10.2024 14:23 [14:23:52]line Смена: 461 ФФД: 1.0 [14:23:52]line ЗНМ: 0300000155 [14:23:52]line РНМ: 0000000000100030 [14:23:52]line Версия ККМ: 001 [14:23:52]line Талоны: Топливная Карта [14:23:52]line 53324 [14:23:52]line ФМ: 0000000000965340 [14:23:52]line ФД: 188317 [14:23:52]line ФПД: 205568961382352 [14:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142352&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188317&fm=205568961382352&tin=02508201610067®Number=0000000000100030&sum=0 [14:23:52]written 0, free lines is 4095 [14:23:52]OFD Sender: Processing packet 188317 [packets to send 1062, broken 1061] [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00188317 [14:23:52]OFD Sender: To server: pG, [14:23:52]CommunicateWithHost lk.salyk.kg:30040 [14:23:52]ConnectInit lk.salyk.kg [14:23:52]Connected sock=7 [14:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 FA 3E 04 01 F6 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 40 9C 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 01 00 00 F4 03 04 00 78 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9D DF 02 00 35 04 06 00 BA F6 C0 EB 87 D0 A4 56 7C 34 9A F0 BF F9 [14:23:53]Write to MH i2c: 01 00 00 5A 0A 64 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: 01 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: 01 07 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: 01 07 00 5A 0A 00 00 00 00 00 7B 0C F2 [14:23:53]RasterBufferAndPrint [14:23:53]line [14:23:53]line [14:23:53]line [14:23:53]line [14:23:53]line [14:23:53]written 0, free lines is 3199 [14:23:53]MH_Cut [14:23:53]Write to MH i2c: D1 01 00 61 0A 01 3D [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: D1 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: D1 01 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: D1 01 00 61 0A 00 3C [14:23:53]Write to MH i2c: 01 00 00 62 0A 6C [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 44 47 00 49 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 39 36 35 33 34 30 10 04 04 00 9D DF 02 00 F4 03 04 00 65 5F 17 67 B6 04 01 00 00 B4 49 18 50 6F 4C 83 D6 [14:23:53]CommunicateWithHost err = 0 [14:23:53]CheckOFDResponse [14:23:53]1017 (14) - 77093643461234 [14:23:53]1041 (16) - 0000000000965340 [14:23:53]1040 (4) - 188317 [14:23:53]1012 (4) - 22.10.2024 08:16 [14:23:53]1206 (1) - 0 [14:23:53]OFD Sender: Remove packet 188317 [14:23:53]ProducePacketName [14:23:53]name=ofd_packets/00188317 [14:23:53]NVStorageDeleteData [14:23:53]OFD Sender: No OFD packet to send [14:23:54]*** Cut start [14:23:54]*** Partial cut [14:23:54]*** CUTSNS_PIN = 1 [14:23:54]*** CUTSNS_PIN = 0 [14:23:54]*** Brake cut motor [14:23:54]Read from MH i2c: 01 [14:23:54]MH_I2C_Read... [14:23:54]*** Stop cut motor [14:23:54]*** Cut end [14:23:54]Read from MH i2c: 01 07 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: 01 07 00 62 0A 00 00 00 00 00 FF 0F 81 [14:23:54]process_action close_receipt done [14:23:54]requested_data is exist [14:23:54]produce_requested_data [14:23:54]requested_item fm.sn is exist - process it [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 11 00 00 [14:23:54]Write to MH i2c: E2 08 00 63 0A 80 11 00 00 00 00 00 00 E7 [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:54]Read from MH i2c: E2 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 17 00 [14:23:54]MH_I2C_Read... [14:23:54]Read from MH i2c: E2 17 00 63 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 35 [14:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:23:54]wFMCommunicate OK [14:23:54]requested_item fd.num is exist - process it [14:23:54]SAM_PROTO_GetFieldsCounters [14:23:54]wFMCommunicate request_size=4 [14:23:54]MH_SAM_APDU [14:23:54]CAPDU: 80 13 00 00 [14:23:54]Write to MH i2c: E2 08 00 64 0A 80 13 00 00 00 00 00 00 EA [14:23:54]Write i2c OK [14:23:54]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 62 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 62 00 64 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 4E [14:23:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9D DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5A 01 00 00 5E 04 04 00 5A 01 00 00 57 04 04 00 5B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_GetFieldsCounters done [14:23:55]requested_item shift.num is exist - process it [14:23:55]requested_item shift.opened is exist - process it [14:23:55]req_shift_opened [14:23:55]FM_GetShiftState [14:23:55]SAM_PROTO_GetShiftState [14:23:55]wFMCommunicate request_size=4 [14:23:55]MH_SAM_APDU [14:23:55]CAPDU: 80 13 01 00 [14:23:55]Write to MH i2c: E2 08 00 65 0A 80 13 01 00 00 00 00 00 EC [14:23:55]Write i2c OK [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 [14:23:55]MH_I2C_Read... [14:23:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:55]Read from MH i2c: E2 0E 00 [14:23:55]MH_I2C_Read... [14:23:55]Read from MH i2c: E2 0E 00 65 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E1 [14:23:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:23:55]wFMCommunicate OK [14:23:55]SAM_PROTO_GetShiftState done [14:23:55]FM_GetShiftState done [14:23:55]req_shift_opened done [14:23:55]requested_item shift.open_date is exist - process it [14:23:55]req_shift_open_date [14:23:55]req_shift_open_date done [14:23:55]produce_requested_data done [14:23:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188317,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:23:55]process_action_free close_receipt [14:23:55]json_value_free [14:23:55]json_value_free done [14:23:55]process_json_proto returns [14:23:55]Send response to host [14:23:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188317,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:23:55]free response buf [14:23:55]execute_script done [14:23:55]execute_script returns [14:23:55]free content buf [14:23:55]Sock 9.Close socket [14:23:55]Sock 9.Thread stoped [14:23:58]OFD Sender: No OFD packet to send [14:24:03]OFD Sender: No OFD packet to send [14:24:08]OFD Sender: No OFD packet to send [14:24:13]OFD Sender: No OFD packet to send [14:24:18]OFD Sender: No OFD packet to send [14:24:23]OFD Sender: No OFD packet to send [14:24:26]accept exits with 10 [14:24:26]New connection [14:24:26]New thread 3067161956 created [14:24:26]Thread 3067305316 joined [14:24:26]Waiting for new connection... [14:24:26] Sock 10.Parse request [14:24:26]Sock 10.Check first char [14:24:26]Sock 10.First char is OK [14:24:26]request: POST /json_proto HTTP/1.0 [14:24:26]Method: POST [14:24:26]URL: /json_proto [14:24:26]Method is POST - this is cgi request [14:24:26]url: /json_proto [14:24:26]query_string will be loaded in cgi processing [14:24:26]execute_cgi json_proto POST (null) [14:24:26]execute_cgi path=json_proto method=POST [14:24:26]POST find Content-Length [14:24:26]Host: 172.17.42.131:8080 [14:24:26]Content-Length: 688 [14:24:26]Content-Type: application/json [14:24:26] [14:24:26]POST finish read [14:24:26]Found Content-Length = 688 [14:24:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:24:26]execute_script... [14:24:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210375", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:24:26]POST & json_proto [14:24:26]process_json_proto [14:24:26]json parsed OK: [14:24:26]protocol is kg_v1.0 [14:24:26]action value=close_receipt [14:24:26]process_action close_receipt [14:24:26]cmd_close_receipt [14:24:26]MH_GetDate [14:24:26]Write to MH i2c: F0 00 00 66 0A 5F [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: F0 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: F0 09 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: F0 09 00 66 0A 00 9B B5 17 67 A0 18 CA 66 1E [14:24:26]GetLastDocTimeStamp 1729607032 [14:24:26]current date 1729607067 [14:24:26]FM_GetShiftState [14:24:26]SAM_PROTO_GetShiftState [14:24:26]wFMCommunicate request_size=4 [14:24:26]MH_SAM_APDU [14:24:26]CAPDU: 80 13 01 00 [14:24:26]Write to MH i2c: E2 08 00 67 0A 80 13 01 00 00 00 00 00 EE [14:24:26]Write i2c OK [14:24:26]MH_I2C_Read... [14:24:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:26]Read from MH i2c: E2 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 0E 00 [14:24:26]MH_I2C_Read... [14:24:26]Read from MH i2c: E2 0E 00 67 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E3 [14:24:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:24:26]wFMCommunicate OK [14:24:26]SAM_PROTO_GetShiftState done [14:24:26]FM_GetShiftState done [14:24:26]opened in 1729556094 [14:24:26]opened+sec_in_day 1729642494 [14:24:26]quantity*price = 100051 [14:24:26]sum+1 = 100052 [14:24:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 347 22.10.2024 14:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188318 ФПД: 230669890010423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142427&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188318&fm=230669890010423&tin=02508201610067®Number=0000000000100030&sum=100000 [14:24:27]StoreToDocumentArchive [14:24:27]shift 461 fd 188318 [14:24:27]save to /storage/0461/doc_00188318 [14:24:27]save last doc name /storage/0461/doc_00188318 to /storage/kkm_last_doc_name [14:24:27]save OK [14:24:27]Clear old archive folders... [14:24:27]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:24:27]tlvbuf is 01468BF0 [14:24:27]SAM_PROTO_ClearQueue [14:24:27]wFMCommunicate request_size=4 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 09 00 00 [14:24:27]Write to MH i2c: E2 08 00 74 0A 80 09 00 00 00 00 00 00 F0 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:27]Read from MH i2c: E2 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 [14:24:27]MH_I2C_Read... [14:24:27]Read from MH i2c: E2 03 00 74 0A 00 90 00 F2 [14:24:27]RAPDU: 90 00 [14:24:27]wFMCommunicate OK [14:24:27]SAM_PROTO_ClearQueue done [14:24:27]KKMCreateOFDPacket [14:24:27]OFDProtocolAddRootSTLVToBuf [14:24:27]FM_MakeSignedData [14:24:27]FM_MakeSignedData [14:24:27]SAM_PROTO_SignData [14:24:27]wFMCommunicate request_size=4 [14:24:27]MH_SAM_APDU [14:24:27]CAPDU: 80 0D 01 02 [14:24:27]Write to MH i2c: E2 08 00 75 0A 80 0D 01 02 00 00 00 00 F8 [14:24:27]Write i2c OK [14:24:27]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 03 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 03 00 75 0A 00 90 00 F3 [14:24:28]RAPDU: 90 00 [14:24:28]wFMCommunicate OK [14:24:28]wFMCommunicate request_size=255 [14:24:28]MH_SAM_APDU [14:24:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 01 00 00 F4 03 04 00 9B B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DF 02 [14:24:28]Write to MH i2c: E2 02 01 76 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 01 00 00 F4 03 04 00 9B B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DF 02 00 00 CC [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 03 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 03 00 76 0A 00 90 00 F4 [14:24:28]RAPDU: 90 00 [14:24:28]wFMCommunicate OK [14:24:28]wFMCommunicate request_size=16 [14:24:28]MH_SAM_APDU [14:24:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D1 CB 04 DA BD 37 [14:24:28]Write to MH i2c: E2 13 00 77 0A 80 0D 02 02 0B 00 00 35 04 06 00 D1 CB 04 DA BD 37 00 00 BE [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 03 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 03 00 77 0A 00 90 00 F5 [14:24:28]RAPDU: 90 00 [14:24:28]wFMCommunicate OK [14:24:28]wFMCommunicate request_size=4 [14:24:28]MH_SAM_APDU [14:24:28]CAPDU: 80 0D 03 02 [14:24:28]Write to MH i2c: E2 08 00 78 0A 80 0D 03 02 00 00 00 00 FD [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 0B 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 0B 00 78 0A 00 76 67 90 ED 8E E4 D1 16 90 00 B1 [14:24:28]RAPDU: 76 67 90 ED 8E E4 D1 16 90 00 [14:24:28]wFMCommunicate OK [14:24:28]SAM_PROTO_SignData done [14:24:28]FM_MakeSignedData done [14:24:28]CreateOFDProtocolMessage [14:24:28]wFMCommunicate request_size=4 [14:24:28]MH_SAM_APDU [14:24:28]CAPDU: 80 11 00 00 [14:24:28]Write to MH i2c: E2 08 00 79 0A 80 11 00 00 00 00 00 00 FD [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:28]Read from MH i2c: E2 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 17 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: E2 17 00 79 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4B [14:24:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:24:28]wFMCommunicate OK [14:24:28]CreateOFDProtocolMessage done [14:24:28]OFDSenderStorePacket 188318 [14:24:28]StoreOFDPacket docnum=188318 [14:24:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4B 18 0D 01 E0 50 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 01 00 00 F4 03 04 00 9B B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DF 02 00 35 04 06 00 D1 CB 04 DA BD 37 76 67 90 ED 8E E4 D1 16 [14:24:28]CheckFolder [14:24:28]dirname=/storage/ofd_packets [14:24:28]CheckFolder done [14:24:28]ProducePacketName [14:24:28]name=ofd_packets/00188318 [14:24:28]NVStorageSaveData ofd_packets/00188318 [14:24:28]File name is /storage/ofd_packets/00188318 [14:24:28]Write 307 bytes [14:24:28]NVStorageSaveData done [14:24:28]OFDSenderStorePacket done [14:24:28]KKMCreateOFDPacket done [14:24:28]NVStorageSaveData kkm_last_timestamp [14:24:28]File name is /storage/kkm_last_timestamp [14:24:28]Write 4 bytes [14:24:28]NVStorageSaveData done [14:24:28]ExternCall_PrintAddStr [14:24:28]wPrintStart [14:24:28]Write to MH i2c: 01 00 00 7A 0A 84 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 07 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 07 00 7A 0A 00 00 00 00 00 FF 0F 99 [14:24:28]RasterBufferAndPrint [14:24:28]line Счет N : (1)210375 [14:24:28]line ИНН: 02508201610067 [14:24:28]line Контрольно-Кассовый Чек [14:24:28]line ПРОДАЖА [14:24:28]line ТРК (МРК, ГНК) : 41 [14:24:28]line Товар: 2710194210 [14:24:28]line D-ENERGY ДТ-К-5 [14:24:28]line 12.960 * 77.20 [14:24:28]line = 1000.51 [14:24:28]line НДС 12% НСП 1% [14:24:28]line > о реализуемом товаре [14:24:28]line ОКРУГЛЕНИЕ: -0.51 [14:24:28]line ИТОГО: 1000.00 [14:24:28]line Внесено: 1000.00 [14:24:28]line СДАЧА: 0.00 [14:24:28]line НСП 1% : 8.85 [14:24:28]line НДС 12% : 106.25 [14:24:28]line Наличными: 1000.00 [14:24:28]line Безнал.: 0.00 [14:24:28]line Место: АЗС № 86 "Партнер Нефть" [14:24:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:24:28]line СНО: Общий режим [14:24:28]line Чек 347 22.10.2024 14:24 [14:24:28]line Смена: 461 ФФД: 1.0 [14:24:28]line ЗНМ: 0300000155 [14:24:28]line РНМ: 0000000000100030 [14:24:28]line Версия ККМ: 001 [14:24:28]line ФМ: 0000000000965340 [14:24:28]line ФД: 188318 [14:24:28]line ФПД: 230669890010423 [14:24:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142427&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188318&fm=230669890010423&tin=02508201610067®Number=0000000000100030&sum=100000 [14:24:28]written 0, free lines is 4095 [14:24:28]OFD Sender: Processing packet 188318 [packets to send 1062, broken 1061] [14:24:28]ProducePacketName [14:24:28]name=ofd_packets/00188318 [14:24:28]OFD Sender: To server: pG, [14:24:28]CommunicateWithHost lk.salyk.kg:30040 [14:24:28]ConnectInit lk.salyk.kg [14:24:28]Connected sock=9 [14:24:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4B 18 0D 01 E0 50 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5B 01 00 00 F4 03 04 00 9B B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DF 02 00 35 04 06 00 D1 CB 04 DA BD 37 76 67 90 ED 8E E4 D1 16 [14:24:28]Write to MH i2c: 01 00 00 A5 0A AF [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 07 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: 01 07 00 A5 0A 00 00 00 00 00 72 0C 34 [14:24:28]RasterBufferAndPrint [14:24:28]line [14:24:28]line [14:24:28]line [14:24:28]line [14:24:28]line [14:24:28]written 0, free lines is 3187 [14:24:28]MH_Cut [14:24:28]Write to MH i2c: D1 01 00 AC 0A 01 88 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: D1 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: D1 01 00 [14:24:28]MH_I2C_Read... [14:24:28]Read from MH i2c: D1 01 00 AC 0A 00 87 [14:24:28]Write to MH i2c: 01 00 00 AD 0A B7 [14:24:28]Write i2c OK [14:24:28]MH_I2C_Read... [14:24:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BC 6F 47 00 BA 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9E DF 02 00 F4 03 04 00 88 5F 17 67 B6 04 01 00 00 DB B8 2D E1 4C 3E EA E7 [14:24:29]CommunicateWithHost err = 0 [14:24:29]CheckOFDResponse [14:24:29]1017 (14) - 77093643461234 [14:24:29]1041 (16) - 0000000000965340 [14:24:29]1040 (4) - 188318 [14:24:29]1012 (4) - 22.10.2024 08:17 [14:24:29]1206 (1) - 0 [14:24:29]OFD Sender: Remove packet 188318 [14:24:29]ProducePacketName [14:24:29]name=ofd_packets/00188318 [14:24:29]NVStorageDeleteData [14:24:29]OFD Sender: No OFD packet to send [14:24:30]*** Cut start [14:24:30]*** Partial cut [14:24:30]*** CUTSNS_PIN = 1 [14:24:30]*** CUTSNS_PIN = 0 [14:24:30]*** Brake cut motor [14:24:30]Read from MH i2c: 01 [14:24:30]MH_I2C_Read... [14:24:30]*** Stop cut motor [14:24:30]*** Cut end [14:24:30]Read from MH i2c: 01 07 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: 01 07 00 AD 0A 00 00 00 00 00 FF 0F CC [14:24:30]process_action close_receipt done [14:24:30]requested_data is exist [14:24:30]produce_requested_data [14:24:30]requested_item fm.sn is exist - process it [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 11 00 00 [14:24:30]Write to MH i2c: E2 08 00 AE 0A 80 11 00 00 00 00 00 00 32 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 17 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 17 00 AE 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 80 [14:24:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:24:30]wFMCommunicate OK [14:24:30]requested_item fd.num is exist - process it [14:24:30]SAM_PROTO_GetFieldsCounters [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 13 00 00 [14:24:30]Write to MH i2c: E2 08 00 AF 0A 80 13 00 00 00 00 00 00 35 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:30]Read from MH i2c: E2 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 62 00 [14:24:30]MH_I2C_Read... [14:24:30]Read from MH i2c: E2 62 00 AF 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 9D [14:24:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9E DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5B 01 00 00 5E 04 04 00 5B 01 00 00 57 04 04 00 5C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:24:30]wFMCommunicate OK [14:24:30]SAM_PROTO_GetFieldsCounters done [14:24:30]requested_item shift.num is exist - process it [14:24:30]requested_item shift.opened is exist - process it [14:24:30]req_shift_opened [14:24:30]FM_GetShiftState [14:24:30]SAM_PROTO_GetShiftState [14:24:30]wFMCommunicate request_size=4 [14:24:30]MH_SAM_APDU [14:24:30]CAPDU: 80 13 01 00 [14:24:30]Write to MH i2c: E2 08 00 B0 0A 80 13 01 00 00 00 00 00 37 [14:24:30]Write i2c OK [14:24:30]MH_I2C_Read... [14:24:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:31]Read from MH i2c: E2 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 0E 00 [14:24:31]MH_I2C_Read... [14:24:31]Read from MH i2c: E2 0E 00 B0 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2C [14:24:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:24:31]wFMCommunicate OK [14:24:31]SAM_PROTO_GetShiftState done [14:24:31]FM_GetShiftState done [14:24:31]req_shift_opened done [14:24:31]requested_item shift.open_date is exist - process it [14:24:31]req_shift_open_date [14:24:31]req_shift_open_date done [14:24:31]produce_requested_data done [14:24:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188318,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:24:31]process_action_free close_receipt [14:24:31]json_value_free [14:24:31]json_value_free done [14:24:31]process_json_proto returns [14:24:31]Send response to host [14:24:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188318,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:24:31]free response buf [14:24:31]execute_script done [14:24:31]execute_script returns [14:24:31]free content buf [14:24:31]Sock 10.Close socket [14:24:31]Sock 10.Thread stoped [14:24:34]OFD Sender: No OFD packet to send [14:24:39]OFD Sender: No OFD packet to send [14:24:44]OFD Sender: No OFD packet to send [14:24:49]OFD Sender: No OFD packet to send [14:24:54]OFD Sender: No OFD packet to send [14:24:59]OFD Sender: No OFD packet to send [14:25:04]OFD Sender: No OFD packet to send [14:25:09]OFD Sender: No OFD packet to send [14:25:11]accept exits with 7 [14:25:11]New connection [14:25:11]New thread 3067305316 created [14:25:11]Thread 3067161956 joined [14:25:11]Waiting for new connection... [14:25:11] Sock 7.Parse request [14:25:11]Sock 7.Check first char [14:25:11]Sock 7.First char is OK [14:25:11]request: POST /json_proto HTTP/1.0 [14:25:11]Method: POST [14:25:11]URL: /json_proto [14:25:11]Method is POST - this is cgi request [14:25:11]url: /json_proto [14:25:11]query_string will be loaded in cgi processing [14:25:11]execute_cgi json_proto POST (null) [14:25:11]execute_cgi path=json_proto method=POST [14:25:11]POST find Content-Length [14:25:11]Host: 172.17.42.131:8080 [14:25:11]Content-Length: 688 [14:25:11]Content-Type: application/json [14:25:11] [14:25:11]POST finish read [14:25:11]Found Content-Length = 688 [14:25:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:11]execute_script... [14:25: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)210374", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:25:11]POST & json_proto [14:25:11]process_json_proto [14:25:11]json parsed OK: [14:25:11]protocol is kg_v1.0 [14:25:11]action value=close_receipt [14:25:11]process_action close_receipt [14:25:11]cmd_close_receipt [14:25:11]MH_GetDate [14:25:11]Write to MH i2c: F0 00 00 B1 0A AA [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: F0 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: F0 09 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: F0 09 00 B1 0A 00 C8 B5 17 67 A0 18 CA 66 96 [14:25:11]GetLastDocTimeStamp 1729607067 [14:25:11]current date 1729607112 [14:25:11]FM_GetShiftState [14:25:11]SAM_PROTO_GetShiftState [14:25:11]wFMCommunicate request_size=4 [14:25:11]MH_SAM_APDU [14:25:11]CAPDU: 80 13 01 00 [14:25:11]Write to MH i2c: E2 08 00 B2 0A 80 13 01 00 00 00 00 00 39 [14:25:11]Write i2c OK [14:25:11]MH_I2C_Read... [14:25:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:11]Read from MH i2c: E2 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: E2 0E 00 [14:25:11]MH_I2C_Read... [14:25:11]Read from MH i2c: E2 0E 00 B2 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2E [14:25:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:25:11]wFMCommunicate OK [14:25:11]SAM_PROTO_GetShiftState done [14:25:11]FM_GetShiftState done [14:25:11]opened in 1729556094 [14:25:11]opened+sec_in_day 1729642494 [14:25:11]quantity*price = 350024 [14:25:11]sum+1 = 350026 [14:25:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 348 22.10.2024 14:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188319 ФПД: 146515148795362 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142512&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188319&fm=146515148795362&tin=02508201610067®Number=0000000000100030&sum=350000 [14:25:12]StoreToDocumentArchive [14:25:12]shift 461 fd 188319 [14:25:12]save to /storage/0461/doc_00188319 [14:25:12]save last doc name /storage/0461/doc_00188319 to /storage/kkm_last_doc_name [14:25:12]save OK [14:25:12]Clear old archive folders... [14:25:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:25:12]tlvbuf is 01477D80 [14:25:12]SAM_PROTO_ClearQueue [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 09 00 00 [14:25:12]Write to MH i2c: E2 08 00 BF 0A 80 09 00 00 00 00 00 00 3B [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 BF 0A 00 90 00 3D [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_ClearQueue done [14:25:12]KKMCreateOFDPacket [14:25:12]OFDProtocolAddRootSTLVToBuf [14:25:12]FM_MakeSignedData [14:25:12]FM_MakeSignedData [14:25:12]SAM_PROTO_SignData [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 01 02 [14:25:12]Write to MH i2c: E2 08 00 C0 0A 80 0D 01 02 00 00 00 00 43 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 C0 0A 00 90 00 3E [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=255 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C8 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DF 02 [14:25:12]Write to MH i2c: E2 02 01 C1 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C8 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DF 02 00 00 1E [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 C1 0A 00 90 00 3F [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=16 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 85 41 37 65 ED E2 [14:25:12]Write to MH i2c: E2 13 00 C2 0A 80 0D 02 02 0B 00 00 35 04 06 00 85 41 37 65 ED E2 00 00 CC [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 03 00 C2 0A 00 90 00 40 [14:25:12]RAPDU: 90 00 [14:25:12]wFMCommunicate OK [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 0D 03 02 [14:25:12]Write to MH i2c: E2 08 00 C3 0A 80 0D 03 02 00 00 00 00 48 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0B 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 0B 00 C3 0A 00 6B 9E E1 E1 EC B5 D8 FB 90 00 88 [14:25:12]RAPDU: 6B 9E E1 E1 EC B5 D8 FB 90 00 [14:25:12]wFMCommunicate OK [14:25:12]SAM_PROTO_SignData done [14:25:12]FM_MakeSignedData done [14:25:12]CreateOFDProtocolMessage [14:25:12]wFMCommunicate request_size=4 [14:25:12]MH_SAM_APDU [14:25:12]CAPDU: 80 11 00 00 [14:25:12]Write to MH i2c: E2 08 00 C4 0A 80 11 00 00 00 00 00 00 48 [14:25:12]Write i2c OK [14:25:12]MH_I2C_Read... [14:25:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:12]Read from MH i2c: E2 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 [14:25:12]MH_I2C_Read... [14:25:12]Read from MH i2c: E2 17 00 C4 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [14:25:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:25:12]wFMCommunicate OK [14:25:12]CreateOFDProtocolMessage done [14:25:12]OFDSenderStorePacket 188319 [14:25:12]StoreOFDPacket docnum=188319 [14:25:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 13 57 0D 01 53 FA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C8 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DF 02 00 35 04 06 00 85 41 37 65 ED E2 6B 9E E1 E1 EC B5 D8 FB [14:25:12]CheckFolder [14:25:12]dirname=/storage/ofd_packets [14:25:12]CheckFolder done [14:25:12]ProducePacketName [14:25:12]name=ofd_packets/00188319 [14:25:12]NVStorageSaveData ofd_packets/00188319 [14:25:12]File name is /storage/ofd_packets/00188319 [14:25:12]Write 307 bytes [14:25:12]NVStorageSaveData done [14:25:12]OFDSenderStorePacket done [14:25:12]KKMCreateOFDPacket done [14:25:12]NVStorageSaveData kkm_last_timestamp [14:25:12]File name is /storage/kkm_last_timestamp [14:25:12]Write 4 bytes [14:25:12]NVStorageSaveData done [14:25:13]ExternCall_PrintAddStr [14:25:13]wPrintStart [14:25:13]Write to MH i2c: 01 00 00 C5 0A CF [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 C5 0A 00 00 00 00 00 FF 0F E4 [14:25:13]RasterBufferAndPrint [14:25:13]line Счет N : (1)210374 [14:25:13]line ИНН: 02508201610067 [14:25:13]line Контрольно-Кассовый Чек [14:25:13]line ПРОДАЖА [14:25:13]line ТРК (МРК, ГНК) : 21 [14:25:13]line Товар: 2710194210 [14:25:13]line D-ENERGY ДТ-К-5 [14:25:13]line 45.340 * 77.20 [14:25:13]line = 3500.25 [14:25:13]line НДС 12% НСП 1% [14:25:13]line > о реализуемом товаре [14:25:13]line ОКРУГЛЕНИЕ: -0.25 [14:25:13]line ИТОГО: 3500.00 [14:25:13]line Внесено: 3500.00 [14:25:13]line СДАЧА: 0.00 [14:25:13]line НСП 1% : 30.98 [14:25:13]line НДС 12% : 371.71 [14:25:13]line Наличными: 3500.00 [14:25:13]line Безнал.: 0.00 [14:25:13]line Место: АЗС № 86 "Партнер Нефть" [14:25:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:25:13]line СНО: Общий режим [14:25:13]line Чек 348 22.10.2024 14:25 [14:25:13]line Смена: 461 ФФД: 1.0 [14:25:13]line ЗНМ: 0300000155 [14:25:13]line РНМ: 0000000000100030 [14:25:13]line Версия ККМ: 001 [14:25:13]line ФМ: 0000000000965340 [14:25:13]line ФД: 188319 [14:25:13]line ФПД: 146515148795362 [14:25:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142512&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188319&fm=146515148795362&tin=02508201610067®Number=0000000000100030&sum=350000 [14:25:13]OFD Sender: Processing packet 188319 [packets to send 1062, broken 1061] [14:25:13]ProducePacketName [14:25:13]name=ofd_packets/00188319 [14:25:13]OFD Sender: To server: pG, [14:25:13]CommunicateWithHost lk.salyk.kg:30040 [14:25:13]ConnectInit lk.salyk.kg [14:25:13]written 0, free lines is 4095 [14:25:13]Connected sock=10 [14:25:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 13 57 0D 01 53 FA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5C 01 00 00 F4 03 04 00 C8 B5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DF 02 00 35 04 06 00 85 41 37 65 ED E2 6B 9E E1 E1 EC B5 D8 FB [14:25:13]Write to MH i2c: 01 00 00 F0 0A FA [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: 01 07 00 F0 0A 00 00 00 00 00 66 0C 73 [14:25:13]RasterBufferAndPrint [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]line [14:25:13]written 0, free lines is 3178 [14:25:13]MH_Cut [14:25:13]Write to MH i2c: D1 01 00 F7 0A 01 D3 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 01 00 [14:25:13]MH_I2C_Read... [14:25:13]Read from MH i2c: D1 01 00 F7 0A 00 D2 [14:25:13]Write to MH i2c: 01 00 00 F8 0A 02 [14:25:13]Write i2c OK [14:25:13]MH_I2C_Read... [14:25:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 BA 47 00 30 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 9F DF 02 00 F4 03 04 00 B5 5F 17 67 B6 04 01 00 00 71 60 15 BC B0 D1 A9 79 [14:25:13]CommunicateWithHost err = 0 [14:25:13]CheckOFDResponse [14:25:13]1017 (14) - 77093643461234 [14:25:13]1041 (16) - 0000000000965340 [14:25:13]1040 (4) - 188319 [14:25:13]1012 (4) - 22.10.2024 08:17 [14:25:13]1206 (1) - 0 [14:25:13]OFD Sender: Remove packet 188319 [14:25:13]ProducePacketName [14:25:13]name=ofd_packets/00188319 [14:25:13]NVStorageDeleteData [14:25:14]OFD Sender: No OFD packet to send [14:25:14]*** Cut start [14:25:14]*** Partial cut [14:25:14]*** CUTSNS_PIN = 1 [14:25:14]*** CUTSNS_PIN = 0 [14:25:14]*** Brake cut motor [14:25:15]Read from MH i2c: 01 [14:25:15]MH_I2C_Read... [14:25:15]*** Stop cut motor [14:25:15]*** Cut end [14:25:15]Read from MH i2c: 01 07 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: 01 07 00 F8 0A 00 00 00 00 00 FF 0F 17 [14:25:15]process_action close_receipt done [14:25:15]requested_data is exist [14:25:15]produce_requested_data [14:25:15]requested_item fm.sn is exist - process it [14:25:15]wFMCommunicate request_size=4 [14:25:15]MH_SAM_APDU [14:25:15]CAPDU: 80 11 00 00 [14:25:15]Write to MH i2c: E2 08 00 F9 0A 80 11 00 00 00 00 00 00 7D [14:25:15]Write i2c OK [14:25:15]MH_I2C_Read... [14:25:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:25:15]Read from MH i2c: E2 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 17 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 17 00 F9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CB [14:25:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:25:15]wFMCommunicate OK [14:25:15]requested_item fd.num is exist - process it [14:25:15]SAM_PROTO_GetFieldsCounters [14:25:15]wFMCommunicate request_size=4 [14:25:15]MH_SAM_APDU [14:25:15]CAPDU: 80 13 00 00 [14:25:15]Write to MH i2c: E2 08 00 FA 0A 80 13 00 00 00 00 00 00 80 [14:25:15]Write i2c OK [14:25:15]MH_I2C_Read... [14:25:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:25:15]Read from MH i2c: E2 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 62 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 62 00 FA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 EC [14:25:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 9F DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5C 01 00 00 5E 04 04 00 5C 01 00 00 57 04 04 00 5D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:25:15]wFMCommunicate OK [14:25:15]SAM_PROTO_GetFieldsCounters done [14:25:15]requested_item shift.num is exist - process it [14:25:15]requested_item shift.opened is exist - process it [14:25:15]req_shift_opened [14:25:15]FM_GetShiftState [14:25:15]SAM_PROTO_GetShiftState [14:25:15]wFMCommunicate request_size=4 [14:25:15]MH_SAM_APDU [14:25:15]CAPDU: 80 13 01 00 [14:25:15]Write to MH i2c: E2 08 00 FB 0A 80 13 01 00 00 00 00 00 82 [14:25:15]Write i2c OK [14:25:15]MH_I2C_Read... [14:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:25:15]Read from MH i2c: E2 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 0E 00 [14:25:15]MH_I2C_Read... [14:25:15]Read from MH i2c: E2 0E 00 FB 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 77 [14:25:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:25:15]wFMCommunicate OK [14:25:15]SAM_PROTO_GetShiftState done [14:25:15]FM_GetShiftState done [14:25:15]req_shift_opened done [14:25:15]requested_item shift.open_date is exist - process it [14:25:15]req_shift_open_date [14:25:15]req_shift_open_date done [14:25:15]produce_requested_data done [14:25:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188319,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:25:15]process_action_free close_receipt [14:25:15]json_value_free [14:25:15]json_value_free done [14:25:15]process_json_proto returns [14:25:15]Send response to host [14:25:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188319,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:25:15]free response buf [14:25:15]execute_script done [14:25:15]execute_script returns [14:25:15]free content buf [14:25:15]Sock 7.Close socket [14:25:15]Sock 7.Thread stoped [14:25:19]OFD Sender: No OFD packet to send [14:25:24]OFD Sender: No OFD packet to send [14:25:29]OFD Sender: No OFD packet to send [14:25:34]OFD Sender: No OFD packet to send [14:25:39]OFD Sender: No OFD packet to send [14:25:44]OFD Sender: No OFD packet to send [14:25:49]OFD Sender: No OFD packet to send [14:25:54]OFD Sender: No OFD packet to send [14:25:59]OFD Sender: No OFD packet to send [14:26:04]OFD Sender: No OFD packet to send [14:26:09]OFD Sender: No OFD packet to send [14:26:14]OFD Sender: No OFD packet to send [14:26:19]OFD Sender: No OFD packet to send [14:26:24]OFD Sender: No OFD packet to send [14:26:29]OFD Sender: No OFD packet to send [14:26:34]OFD Sender: No OFD packet to send [14:26:39]OFD Sender: No OFD packet to send [14:26:42]accept exits with 9 [14:26:42]New connection [14:26:42]New thread 3067161956 created [14:26:42]Thread 3067305316 joined [14:26:42]Waiting for new connection... [14:26:42] Sock 9.Parse request [14:26:42]Sock 9.Check first char [14:26:42]Sock 9.First char is OK [14:26:42]request: POST /json_proto HTTP/1.0 [14:26:42]Method: POST [14:26:42]URL: /json_proto [14:26:42]Method is POST - this is cgi request [14:26:42]url: /json_proto [14:26:42]query_string will be loaded in cgi processing [14:26:42]execute_cgi json_proto POST (null) [14:26:42]execute_cgi path=json_proto method=POST [14:26:42]POST find Content-Length [14:26:42]Host: 172.17.42.131:8080 [14:26:42]Content-Length: 688 [14:26:42]Content-Type: application/json [14:26:42] [14:26:42]POST finish read [14:26:42]Found Content-Length = 688 [14:26:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:26:42]execute_script... [14:26: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)210376", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:26:42]POST & json_proto [14:26:42]process_json_proto [14:26:42]json parsed OK: [14:26:42]protocol is kg_v1.0 [14:26:42]action value=close_receipt [14:26:42]process_action close_receipt [14:26:42]cmd_close_receipt [14:26:42]MH_GetDate [14:26:42]Write to MH i2c: F0 00 00 FC 0A F5 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: F0 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: F0 09 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: F0 09 00 FC 0A 00 23 B6 17 67 A0 18 CA 66 3D [14:26:42]GetLastDocTimeStamp 1729607112 [14:26:42]current date 1729607203 [14:26:42]FM_GetShiftState [14:26:42]SAM_PROTO_GetShiftState [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 13 01 00 [14:26:42]Write to MH i2c: E2 08 00 FD 0A 80 13 01 00 00 00 00 00 84 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0E 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0E 00 FD 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 79 [14:26:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:26:42]wFMCommunicate OK [14:26:42]SAM_PROTO_GetShiftState done [14:26:42]FM_GetShiftState done [14:26:42]opened in 1729556094 [14:26:42]opened+sec_in_day 1729642494 [14:26:42]quantity*price = 100051 [14:26:42]sum+1 = 100052 [14:26:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 349 22.10.2024 14:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188320 ФПД: 167038629166072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142643&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188320&fm=167038629166072&tin=02508201610067®Number=0000000000100030&sum=100000 [14:26:43]StoreToDocumentArchive [14:26:43]shift 461 fd 188320 [14:26:43]save to /storage/0461/doc_00188320 [14:26:43]save last doc name /storage/0461/doc_00188320 to /storage/kkm_last_doc_name [14:26:43]save OK [14:26:43]Clear old archive folders... [14:26:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:26:43]tlvbuf is 01423FD0 [14:26:43]SAM_PROTO_ClearQueue [14:26:43]wFMCommunicate request_size=4 [14:26:43]MH_SAM_APDU [14:26:43]CAPDU: 80 09 00 00 [14:26:43]Write to MH i2c: E2 08 00 0A 0B 80 09 00 00 00 00 00 00 87 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 0A 0B 00 90 00 89 [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_ClearQueue done [14:26:44]KKMCreateOFDPacket [14:26:44]OFDProtocolAddRootSTLVToBuf [14:26:44]FM_MakeSignedData [14:26:44]FM_MakeSignedData [14:26:44]SAM_PROTO_SignData [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 01 02 [14:26:44]Write to MH i2c: E2 08 00 0B 0B 80 0D 01 02 00 00 00 00 8F [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 0B 0B 00 90 00 8A [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=255 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5D 01 00 00 F4 03 04 00 23 B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DF 02 [14:26:44]Write to MH i2c: E2 02 01 0C 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5D 01 00 00 F4 03 04 00 23 B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DF 02 00 00 F0 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 0C 0B 00 90 00 8B [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=16 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 97 EB B6 27 BB F8 [14:26:44]Write to MH i2c: E2 13 00 0D 0B 80 0D 02 02 0B 00 00 35 04 06 00 97 EB B6 27 BB F8 00 00 F9 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 03 00 0D 0B 00 90 00 8C [14:26:44]RAPDU: 90 00 [14:26:44]wFMCommunicate OK [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 0D 03 02 [14:26:44]Write to MH i2c: E2 08 00 0E 0B 80 0D 03 02 00 00 00 00 94 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0B 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0B 00 0E 0B 00 0F 4B 95 25 6A 64 91 AF 90 00 B7 [14:26:44]RAPDU: 0F 4B 95 25 6A 64 91 AF 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_SignData done [14:26:44]FM_MakeSignedData done [14:26:44]CreateOFDProtocolMessage [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 11 00 00 [14:26:44]Write to MH i2c: E2 08 00 0F 0B 80 11 00 00 00 00 00 00 94 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 17 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 17 00 0F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [14:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:26:44]wFMCommunicate OK [14:26:44]CreateOFDProtocolMessage done [14:26:44]OFDSenderStorePacket 188320 [14:26:44]StoreOFDPacket docnum=188320 [14:26:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AB 75 0D 01 07 D2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5D 01 00 00 F4 03 04 00 23 B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DF 02 00 35 04 06 00 97 EB B6 27 BB F8 0F 4B 95 25 6A 64 91 AF [14:26:44]CheckFolder [14:26:44]dirname=/storage/ofd_packets [14:26:44]CheckFolder done [14:26:44]ProducePacketName [14:26:44]name=ofd_packets/00188320 [14:26:44]NVStorageSaveData ofd_packets/00188320 [14:26:44]File name is /storage/ofd_packets/00188320 [14:26:44]Write 307 bytes [14:26:44]NVStorageSaveData done [14:26:44]OFDSenderStorePacket done [14:26:44]KKMCreateOFDPacket done [14:26:44]NVStorageSaveData kkm_last_timestamp [14:26:44]File name is /storage/kkm_last_timestamp [14:26:44]Write 4 bytes [14:26:44]NVStorageSaveData done [14:26:44]ExternCall_PrintAddStr [14:26:44]wPrintStart [14:26:44]Write to MH i2c: 01 00 00 10 0B 1B [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 07 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: 01 07 00 10 0B 00 00 00 00 00 FF 0F 30 [14:26:44]RasterBufferAndPrint [14:26:44]line Счет N : (1)210376 [14:26:44]line ИНН: 02508201610067 [14:26:44]line Контрольно-Кассовый Чек [14:26:44]line ПРОДАЖА [14:26:44]line ТРК (МРК, ГНК) : 31 [14:26:44]line Товар: 2710194210 [14:26:44]line D-ENERGY ДТ-К-5 [14:26:44]line 12.960 * 77.20 [14:26:44]line = 1000.51 [14:26:44]line НДС 12% НСП 1% [14:26:44]line > о реализуемом товаре [14:26:44]line ОКРУГЛЕНИЕ: -0.51 [14:26:44]line ИТОГО: 1000.00 [14:26:44]line Внесено: 1000.00 [14:26:44]line СДАЧА: 0.00 [14:26:44]line НСП 1% : 8.85 [14:26:44]line НДС 12% : 106.25 [14:26:44]line Наличными: 1000.00 [14:26:44]line Безнал.: 0.00 [14:26:44]line Место: АЗС № 86 "Партнер Нефть" [14:26:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:26:44]line СНО: Общий режим [14:26:44]line Чек 349 22.10.2024 14:26 [14:26:44]line Смена: 461 ФФД: 1.0 [14:26:44]line ЗНМ: 0300000155 [14:26:44]line РНМ: 0000000000100030 [14:26:44]line Версия ККМ: 001 [14:26:44]line ФМ: 0000000000965340 [14:26:44]line ФД: 188320 [14:26:44]line ФПД: 167038629166072 [14:26:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142643&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188320&fm=167038629166072&tin=02508201610067®Number=0000000000100030&sum=100000 [14:26:44]OFD Sender: Processing packet 188320 [packets to send 1062, broken 1061] [14:26:44]ProducePacketName [14:26:44]name=ofd_packets/00188320 [14:26:44]OFD Sender: To server: pG, [14:26:44]CommunicateWithHost lk.salyk.kg:30040 [14:26:44]ConnectInit lk.salyk.kg [14:26:44]written 0, free lines is 4095 [14:26:45]Connected sock=10 [14:26:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AB 75 0D 01 07 D2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 5D 01 00 00 F4 03 04 00 23 B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DF 02 00 35 04 06 00 97 EB B6 27 BB F8 0F 4B 95 25 6A 64 91 AF [14:26:45]Write to MH i2c: 01 00 00 3B 0B 46 [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: 01 07 00 3B 0B 00 00 00 00 00 68 0C C1 [14:26:45]RasterBufferAndPrint [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]line [14:26:45]written 0, free lines is 3179 [14:26:45]MH_Cut [14:26:45]Write to MH i2c: D1 01 00 42 0B 01 1F [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: D1 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: D1 01 00 [14:26:45]MH_I2C_Read... [14:26:45]Read from MH i2c: D1 01 00 42 0B 00 1E [14:26:45]Write to MH i2c: 01 00 00 43 0B 4E [14:26:45]Write i2c OK [14:26:45]MH_I2C_Read... [14:26:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 95 68 47 00 B0 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A0 DF 02 00 F4 03 04 00 11 60 17 67 B6 04 01 00 00 62 0F 24 1F B3 33 7D 58 [14:26:45]CommunicateWithHost err = 0 [14:26:45]CheckOFDResponse [14:26:45]1017 (14) - 77093643461234 [14:26:45]1041 (16) - 0000000000965340 [14:26:45]1040 (4) - 188320 [14:26:45]1012 (4) - 22.10.2024 08:19 [14:26:45]1206 (1) - 0 [14:26:45]OFD Sender: Remove packet 188320 [14:26:45]ProducePacketName [14:26:45]name=ofd_packets/00188320 [14:26:45]NVStorageDeleteData [14:26:45]OFD Sender: No OFD packet to send [14:26:46]*** Cut start [14:26:46]*** Partial cut [14:26:46]*** CUTSNS_PIN = 1 [14:26:46]*** CUTSNS_PIN = 0 [14:26:46]*** Brake cut motor [14:26:47]Read from MH i2c: 01 [14:26:47]MH_I2C_Read... [14:26:47]*** Stop cut motor [14:26:47]*** Cut end [14:26:47]Read from MH i2c: 01 07 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: 01 07 00 43 0B 00 00 00 00 00 FF 0F 63 [14:26:47]process_action close_receipt done [14:26:47]requested_data is exist [14:26:47]produce_requested_data [14:26:47]requested_item fm.sn is exist - process it [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 11 00 00 [14:26:47]Write to MH i2c: E2 08 00 44 0B 80 11 00 00 00 00 00 00 C9 [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 17 00 44 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 17 [14:26:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:26:47]wFMCommunicate OK [14:26:47]requested_item fd.num is exist - process it [14:26:47]SAM_PROTO_GetFieldsCounters [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 00 00 [14:26:47]Write to MH i2c: E2 08 00 45 0B 80 13 00 00 00 00 00 00 CC [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 62 00 45 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 3C [14:26:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5D 01 00 00 5E 04 04 00 5D 01 00 00 57 04 04 00 5E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetFieldsCounters done [14:26:47]requested_item shift.num is exist - process it [14:26:47]requested_item shift.opened is exist - process it [14:26:47]req_shift_opened [14:26:47]FM_GetShiftState [14:26:47]SAM_PROTO_GetShiftState [14:26:47]wFMCommunicate request_size=4 [14:26:47]MH_SAM_APDU [14:26:47]CAPDU: 80 13 01 00 [14:26:47]Write to MH i2c: E2 08 00 46 0B 80 13 01 00 00 00 00 00 CE [14:26:47]Write i2c OK [14:26:47]MH_I2C_Read... [14:26:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:47]Read from MH i2c: E2 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 [14:26:47]MH_I2C_Read... [14:26:47]Read from MH i2c: E2 0E 00 46 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C3 [14:26:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:26:47]wFMCommunicate OK [14:26:47]SAM_PROTO_GetShiftState done [14:26:47]FM_GetShiftState done [14:26:47]req_shift_opened done [14:26:47]requested_item shift.open_date is exist - process it [14:26:47]req_shift_open_date [14:26:47]req_shift_open_date done [14:26:47]produce_requested_data done [14:26:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188320,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:26:47]process_action_free close_receipt [14:26:47]json_value_free [14:26:47]json_value_free done [14:26:47]process_json_proto returns [14:26:47]Send response to host [14:26:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188320,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:26:47]free response buf [14:26:47]execute_script done [14:26:47]execute_script returns [14:26:47]free content buf [14:26:47]Sock 9.Close socket [14:26:47]Sock 9.Thread stoped [14:26:50]OFD Sender: No OFD packet to send [14:26:56]OFD Sender: No OFD packet to send [14:27:01]OFD Sender: No OFD packet to send [14:27:05]accept exits with 7 [14:27:05]New connection [14:27:05]New thread 3067305316 created [14:27:05]Thread 3067161956 joined [14:27:05]Waiting for new connection... [14:27:05] Sock 7.Parse request [14:27:05]Sock 7.Check first char [14:27:05]Sock 7.First char is OK [14:27:05]request: POST /json_proto HTTP/1.0 [14:27:05]Method: POST [14:27:05]URL: /json_proto [14:27:05]Method is POST - this is cgi request [14:27:05]url: /json_proto [14:27:05]query_string will be loaded in cgi processing [14:27:05]execute_cgi json_proto POST (null) [14:27:05]execute_cgi path=json_proto method=POST [14:27:05]POST find Content-Length [14:27:05]Host: 172.17.42.131:8080 [14:27:05]Content-Length: 684 [14:27:05]Content-Type: application/json [14:27:05] [14:27:05]POST finish read [14:27:05]Found Content-Length = 684 [14:27:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:05]execute_script... [14:27: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)210377", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:27:05]POST & json_proto [14:27:05]process_json_proto [14:27:05]json parsed OK: [14:27:05]protocol is kg_v1.0 [14:27:05]action value=close_receipt [14:27:05]process_action close_receipt [14:27:05]cmd_close_receipt [14:27:05]MH_GetDate [14:27:05]Write to MH i2c: F0 00 00 47 0B 41 [14:27:05]Write i2c OK [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: F0 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: F0 09 00 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: F0 09 00 47 0B 00 3B B6 17 67 A0 18 CA 66 A1 [14:27:05]GetLastDocTimeStamp 1729607203 [14:27:05]current date 1729607227 [14:27:05]FM_GetShiftState [14:27:05]SAM_PROTO_GetShiftState [14:27:05]wFMCommunicate request_size=4 [14:27:05]MH_SAM_APDU [14:27:05]CAPDU: 80 13 01 00 [14:27:05]Write to MH i2c: E2 08 00 48 0B 80 13 01 00 00 00 00 00 D0 [14:27:05]Write i2c OK [14:27:05]MH_I2C_Read... [14:27:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:05]Read from MH i2c: E2 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: E2 0E 00 [14:27:05]MH_I2C_Read... [14:27:05]Read from MH i2c: E2 0E 00 48 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C5 [14:27:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:27:05]wFMCommunicate OK [14:27:05]SAM_PROTO_GetShiftState done [14:27:05]FM_GetShiftState done [14:27:05]opened in 1729556094 [14:27:05]opened+sec_in_day 1729642494 [14:27:05]quantity*price = 80056 [14:27:05]sum+1 = 80057 [14:27:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 350 22.10.2024 14:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188321 ФПД: 139283696128934 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188321&fm=139283696128934&tin=02508201610067®Number=0000000000100030&sum=80000 [14:27:07]StoreToDocumentArchive [14:27:07]shift 461 fd 188321 [14:27:07]save to /storage/0461/doc_00188321 [14:27:07]save last doc name /storage/0461/doc_00188321 to /storage/kkm_last_doc_name [14:27:07]save OK [14:27:07]Clear old archive folders... [14:27:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:27:07]tlvbuf is 01423740 [14:27:07]SAM_PROTO_ClearQueue [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 09 00 00 [14:27:07]Write to MH i2c: E2 08 00 55 0B 80 09 00 00 00 00 00 00 D2 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 55 0B 00 90 00 D4 [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_ClearQueue done [14:27:07]KKMCreateOFDPacket [14:27:07]OFDProtocolAddRootSTLVToBuf [14:27:07]FM_MakeSignedData [14:27:07]FM_MakeSignedData [14:27:07]SAM_PROTO_SignData [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 01 02 [14:27:07]Write to MH i2c: E2 08 00 56 0B 80 0D 01 02 00 00 00 00 DA [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 56 0B 00 90 00 D5 [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=255 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3B B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DF 02 [14:27:07]Write to MH i2c: E2 02 01 57 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3B B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DF 02 00 00 E2 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 57 0B 00 90 00 D6 [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=16 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7E AD 83 3B 13 A6 [14:27:07]Write to MH i2c: E2 13 00 58 0B 80 0D 02 02 0B 00 00 35 04 06 00 7E AD 83 3B 13 A6 00 00 D4 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 03 00 58 0B 00 90 00 D7 [14:27:07]RAPDU: 90 00 [14:27:07]wFMCommunicate OK [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 0D 03 02 [14:27:07]Write to MH i2c: E2 08 00 59 0B 80 0D 03 02 00 00 00 00 DF [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 0B 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 0B 00 59 0B 00 6E 42 8A 81 15 FC F3 16 90 00 B5 [14:27:07]RAPDU: 6E 42 8A 81 15 FC F3 16 90 00 [14:27:07]wFMCommunicate OK [14:27:07]SAM_PROTO_SignData done [14:27:07]FM_MakeSignedData done [14:27:07]CreateOFDProtocolMessage [14:27:07]wFMCommunicate request_size=4 [14:27:07]MH_SAM_APDU [14:27:07]CAPDU: 80 11 00 00 [14:27:07]Write to MH i2c: E2 08 00 5A 0B 80 11 00 00 00 00 00 00 DF [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:07]Read from MH i2c: E2 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 17 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: E2 17 00 5A 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [14:27:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:07]wFMCommunicate OK [14:27:07]CreateOFDProtocolMessage done [14:27:07]OFDSenderStorePacket 188321 [14:27:07]StoreOFDPacket docnum=188321 [14:27:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E0 F2 0D 01 38 EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3B B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DF 02 00 35 04 06 00 7E AD 83 3B 13 A6 6E 42 8A 81 15 FC F3 16 [14:27:07]CheckFolder [14:27:07]dirname=/storage/ofd_packets [14:27:07]CheckFolder done [14:27:07]ProducePacketName [14:27:07]name=ofd_packets/00188321 [14:27:07]NVStorageSaveData ofd_packets/00188321 [14:27:07]File name is /storage/ofd_packets/00188321 [14:27:07]Write 307 bytes [14:27:07]NVStorageSaveData done [14:27:07]OFDSenderStorePacket done [14:27:07]KKMCreateOFDPacket done [14:27:07]NVStorageSaveData kkm_last_timestamp [14:27:07]File name is /storage/kkm_last_timestamp [14:27:07]Write 4 bytes [14:27:07]NVStorageSaveData done [14:27:07]ExternCall_PrintAddStr [14:27:07]wPrintStart [14:27:07]Write to MH i2c: 01 00 00 5B 0B 66 [14:27:07]Write i2c OK [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: 01 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: 01 07 00 [14:27:07]MH_I2C_Read... [14:27:07]Read from MH i2c: 01 07 00 5B 0B 00 00 00 00 00 FF 0F 7B [14:27:07]RasterBufferAndPrint [14:27:07]line Счет N : (1)210377 [14:27:07]line ИНН: 02508201610067 [14:27:07]line Контрольно-Кассовый Чек [14:27:07]line ПРОДАЖА [14:27:07]line ТРК (МРК, ГНК) : 11 [14:27:07]line Товар: 2710194210 [14:27:07]line D-ENERGY ДТ-К-5 [14:27:07]line 10.370 * 77.20 [14:27:07]line = 800.56 [14:27:07]line НДС 12% НСП 1% [14:27:07]line > о реализуемом товаре [14:27:07]line ОКРУГЛЕНИЕ: -0.56 [14:27:07]line ИТОГО: 800.00 [14:27:07]line Внесено: 800.00 [14:27:07]line СДАЧА: 0.00 [14:27:07]line НСП 1% : 7.08 [14:27:07]line НДС 12% : 85.01 [14:27:07]line Наличными: 800.00 [14:27:07]line Безнал.: 0.00 [14:27:07]line Место: АЗС № 86 "Партнер Нефть" [14:27:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:27:07]line СНО: Общий режим [14:27:07]line Чек 350 22.10.2024 14:27 [14:27:07]line Смена: 461 ФФД: 1.0 [14:27:07]line ЗНМ: 0300000155 [14:27:07]line РНМ: 0000000000100030 [14:27:07]line Версия ККМ: 001 [14:27:07]line ФМ: 0000000000965340 [14:27:07]line ФД: 188321 [14:27:07]line ФПД: 139283696128934 [14:27:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142707&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188321&fm=139283696128934&tin=02508201610067®Number=0000000000100030&sum=80000 [14:27:07]written 0, free lines is 4095 [14:27:07]OFD Sender: Processing packet 188321 [packets to send 1062, broken 1061] [14:27:07]ProducePacketName [14:27:07]name=ofd_packets/00188321 [14:27:07]OFD Sender: To server: pG, [14:27:07]CommunicateWithHost lk.salyk.kg:30040 [14:27:07]ConnectInit lk.salyk.kg [14:27:08]Connected sock=10 [14:27:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E0 F2 0D 01 38 EA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5E 01 00 00 F4 03 04 00 3B B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DF 02 00 35 04 06 00 7E AD 83 3B 13 A6 6E 42 8A 81 15 FC F3 16 [14:27:08]Write to MH i2c: 01 00 00 86 0B 91 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: 01 07 00 86 0B 00 00 00 00 00 6D 0C 11 [14:27:08]RasterBufferAndPrint [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]line [14:27:08]written 0, free lines is 3184 [14:27:08]MH_Cut [14:27:08]Write to MH i2c: D1 01 00 8D 0B 01 6A [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 01 00 [14:27:08]MH_I2C_Read... [14:27:08]Read from MH i2c: D1 01 00 8D 0B 00 69 [14:27:08]Write to MH i2c: 01 00 00 8E 0B 99 [14:27:08]Write i2c OK [14:27:08]MH_I2C_Read... [14:27:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 67 53 47 00 FB 3B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A1 DF 02 00 F4 03 04 00 28 60 17 67 B6 04 01 00 00 52 84 94 6A 4D B6 07 C7 [14:27:08]CommunicateWithHost err = 0 [14:27:08]CheckOFDResponse [14:27:08]1017 (14) - 77093643461234 [14:27:08]1041 (16) - 0000000000965340 [14:27:08]1040 (4) - 188321 [14:27:08]1012 (4) - 22.10.2024 08:19 [14:27:08]1206 (1) - 0 [14:27:08]OFD Sender: Remove packet 188321 [14:27:08]ProducePacketName [14:27:08]name=ofd_packets/00188321 [14:27:08]NVStorageDeleteData [14:27:08]OFD Sender: No OFD packet to send [14:27:09]*** Cut start [14:27:09]*** Partial cut [14:27:09]*** CUTSNS_PIN = 1 [14:27:09]*** CUTSNS_PIN = 0 [14:27:09]*** Brake cut motor [14:27:09]Read from MH i2c: 01 [14:27:09]MH_I2C_Read... [14:27:09]*** Stop cut motor [14:27:09]*** Cut end [14:27:09]Read from MH i2c: 01 07 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: 01 07 00 8E 0B 00 00 00 00 00 FF 0F AE [14:27:09]process_action close_receipt done [14:27:09]requested_data is exist [14:27:09]produce_requested_data [14:27:09]requested_item fm.sn is exist - process it [14:27:09]wFMCommunicate request_size=4 [14:27:09]MH_SAM_APDU [14:27:09]CAPDU: 80 11 00 00 [14:27:09]Write to MH i2c: E2 08 00 8F 0B 80 11 00 00 00 00 00 00 14 [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:27:09]Read from MH i2c: E2 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 17 00 [14:27:09]MH_I2C_Read... [14:27:09]Read from MH i2c: E2 17 00 8F 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 62 [14:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:27:09]wFMCommunicate OK [14:27:09]requested_item fd.num is exist - process it [14:27:09]SAM_PROTO_GetFieldsCounters [14:27:09]wFMCommunicate request_size=4 [14:27:09]MH_SAM_APDU [14:27:09]CAPDU: 80 13 00 00 [14:27:09]Write to MH i2c: E2 08 00 90 0B 80 13 00 00 00 00 00 00 17 [14:27:09]Write i2c OK [14:27:09]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 62 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 62 00 90 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 8B [14:27:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5E 01 00 00 5E 04 04 00 5E 01 00 00 57 04 04 00 5F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetFieldsCounters done [14:27:10]requested_item shift.num is exist - process it [14:27:10]requested_item shift.opened is exist - process it [14:27:10]req_shift_opened [14:27:10]FM_GetShiftState [14:27:10]SAM_PROTO_GetShiftState [14:27:10]wFMCommunicate request_size=4 [14:27:10]MH_SAM_APDU [14:27:10]CAPDU: 80 13 01 00 [14:27:10]Write to MH i2c: E2 08 00 91 0B 80 13 01 00 00 00 00 00 19 [14:27:10]Write i2c OK [14:27:10]MH_I2C_Read... [14:27:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:27:10]Read from MH i2c: E2 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 [14:27:10]MH_I2C_Read... [14:27:10]Read from MH i2c: E2 0E 00 91 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0E [14:27:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:27:10]wFMCommunicate OK [14:27:10]SAM_PROTO_GetShiftState done [14:27:10]FM_GetShiftState done [14:27:10]req_shift_opened done [14:27:10]requested_item shift.open_date is exist - process it [14:27:10]req_shift_open_date [14:27:10]req_shift_open_date done [14:27:10]produce_requested_data done [14:27:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188321,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:27:10]process_action_free close_receipt [14:27:10]json_value_free [14:27:10]json_value_free done [14:27:10]process_json_proto returns [14:27:10]Send response to host [14:27:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188321,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:27:10]free response buf [14:27:10]execute_script done [14:27:10]execute_script returns [14:27:10]free content buf [14:27:10]Sock 7.Close socket [14:27:10]Sock 7.Thread stoped [14:27:13]OFD Sender: No OFD packet to send [14:27:18]OFD Sender: No OFD packet to send [14:27:23]OFD Sender: No OFD packet to send [14:27:28]OFD Sender: No OFD packet to send [14:27:33]OFD Sender: No OFD packet to send [14:27:38]OFD Sender: No OFD packet to send [14:27:43]OFD Sender: No OFD packet to send [14:27:49]OFD Sender: No OFD packet to send [14:27:54]OFD Sender: No OFD packet to send [14:27:59]OFD Sender: No OFD packet to send [14:28:04]OFD Sender: No OFD packet to send [14:28:09]OFD Sender: No OFD packet to send [14:28:14]OFD Sender: No OFD packet to send [14:28:19]OFD Sender: No OFD packet to send [14:28:24]OFD Sender: No OFD packet to send [14:28:26]accept exits with 9 [14:28:26]New connection [14:28:26]New thread 3067161956 created [14:28:26]Thread 3067305316 joined [14:28:26]Waiting for new connection... [14:28:26] Sock 9.Parse request [14:28:26]Sock 9.Check first char [14:28:26]Sock 9.First char is OK [14:28:26]request: POST /json_proto HTTP/1.0 [14:28:26]Method: POST [14:28:26]URL: /json_proto [14:28:26]Method is POST - this is cgi request [14:28:26]url: /json_proto [14:28:26]query_string will be loaded in cgi processing [14:28:26]execute_cgi json_proto POST (null) [14:28:26]execute_cgi path=json_proto method=POST [14:28:26]POST find Content-Length [14:28:26]Host: 172.17.42.131:8080 [14:28:26]Content-Length: 677 [14:28:26]Content-Type: application/json [14:28:26] [14:28:26]POST finish read [14:28:26]Found Content-Length = 677 [14:28:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:26]execute_script... [14:28: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)210379", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:26]POST & json_proto [14:28:26]process_json_proto [14:28:26]json parsed OK: [14:28:26]protocol is kg_v1.0 [14:28:26]action value=close_receipt [14:28:26]process_action close_receipt [14:28:26]cmd_close_receipt [14:28:26]MH_GetDate [14:28:26]Write to MH i2c: F0 00 00 92 0B 8C [14:28:26]Write i2c OK [14:28:26]MH_I2C_Read... [14:28:26]Read from MH i2c: F0 [14:28:26]MH_I2C_Read... [14:28:26]Read from MH i2c: F0 09 00 [14:28:26]MH_I2C_Read... [14:28:26]Read from MH i2c: F0 09 00 92 0B 00 8C B6 17 67 A0 18 CA 66 3D [14:28:26]GetLastDocTimeStamp 1729607227 [14:28:26]current date 1729607308 [14:28:26]FM_GetShiftState [14:28:26]SAM_PROTO_GetShiftState [14:28:26]wFMCommunicate request_size=4 [14:28:26]MH_SAM_APDU [14:28:26]CAPDU: 80 13 01 00 [14:28:26]Write to MH i2c: E2 08 00 93 0B 80 13 01 00 00 00 00 00 1B [14:28:26]Write i2c OK [14:28:26]MH_I2C_Read... [14:28:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:27]Read from MH i2c: E2 [14:28:27]MH_I2C_Read... [14:28:27]Read from MH i2c: E2 0E 00 [14:28:27]MH_I2C_Read... [14:28:27]Read from MH i2c: E2 0E 00 93 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 10 [14:28:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:28:27]wFMCommunicate OK [14:28:27]SAM_PROTO_GetShiftState done [14:28:27]FM_GetShiftState done [14:28:27]opened in 1729556094 [14:28:27]opened+sec_in_day 1729642494 [14:28:27]quantity*price = 50041 [14:28:27]sum+1 = 50042 [14:28:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 351 22.10.2024 14:28 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188322 ФПД: 234713286777589 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142828&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188322&fm=234713286777589&tin=02508201610067®Number=0000000000100030&sum=50000 [14:28:28]StoreToDocumentArchive [14:28:28]shift 461 fd 188322 [14:28:28]save to /storage/0461/doc_00188322 [14:28:28]save last doc name /storage/0461/doc_00188322 to /storage/kkm_last_doc_name [14:28:28]save OK [14:28:28]Clear old archive folders... [14:28:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:28]tlvbuf is 01469CB0 [14:28:28]SAM_PROTO_ClearQueue [14:28:28]wFMCommunicate request_size=4 [14:28:28]MH_SAM_APDU [14:28:28]CAPDU: 80 09 00 00 [14:28:28]Write to MH i2c: E2 08 00 A0 0B 80 09 00 00 00 00 00 00 1D [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:28]Read from MH i2c: E2 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 A0 0B 00 90 00 1F [14:28:28]RAPDU: 90 00 [14:28:28]wFMCommunicate OK [14:28:28]SAM_PROTO_ClearQueue done [14:28:28]KKMCreateOFDPacket [14:28:28]OFDProtocolAddRootSTLVToBuf [14:28:28]FM_MakeSignedData [14:28:28]FM_MakeSignedData [14:28:28]SAM_PROTO_SignData [14:28:28]wFMCommunicate request_size=4 [14:28:28]MH_SAM_APDU [14:28:28]CAPDU: 80 0D 01 02 [14:28:28]Write to MH i2c: E2 08 00 A1 0B 80 0D 01 02 00 00 00 00 25 [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:28]Read from MH i2c: E2 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 A1 0B 00 90 00 20 [14:28:28]RAPDU: 90 00 [14:28:28]wFMCommunicate OK [14:28:28]wFMCommunicate request_size=255 [14:28:28]MH_SAM_APDU [14:28:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 8C B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DF 02 00 35 04 06 00 D5 [14:28:28]Write to MH i2c: E2 02 01 A2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 8C B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DF 02 00 35 04 06 00 D5 00 00 DE [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:28]Read from MH i2c: E2 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 A2 0B 00 90 00 21 [14:28:28]RAPDU: 90 00 [14:28:28]wFMCommunicate OK [14:28:28]wFMCommunicate request_size=10 [14:28:28]MH_SAM_APDU [14:28:28]CAPDU: 80 0D 02 02 05 78 72 15 1A F5 [14:28:28]Write to MH i2c: E2 0D 00 A3 0B 80 0D 02 02 05 00 78 72 15 1A F5 00 00 40 [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:28]Read from MH i2c: E2 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 03 00 A3 0B 00 90 00 22 [14:28:28]RAPDU: 90 00 [14:28:28]wFMCommunicate OK [14:28:28]wFMCommunicate request_size=4 [14:28:28]MH_SAM_APDU [14:28:28]CAPDU: 80 0D 03 02 [14:28:28]Write to MH i2c: E2 08 00 A4 0B 80 0D 03 02 00 00 00 00 2A [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:28]Read from MH i2c: E2 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 0B 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 0B 00 A4 0B 00 0B BE EA 71 44 1D 5A 45 90 00 4F [14:28:28]RAPDU: 0B BE EA 71 44 1D 5A 45 90 00 [14:28:28]wFMCommunicate OK [14:28:28]SAM_PROTO_SignData done [14:28:28]FM_MakeSignedData done [14:28:28]CreateOFDProtocolMessage [14:28:28]wFMCommunicate request_size=4 [14:28:28]MH_SAM_APDU [14:28:28]CAPDU: 80 11 00 00 [14:28:28]Write to MH i2c: E2 08 00 A5 0B 80 11 00 00 00 00 00 00 2A [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:28]Read from MH i2c: E2 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 17 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: E2 17 00 A5 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [14:28:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:28:28]wFMCommunicate OK [14:28:28]CreateOFDProtocolMessage done [14:28:28]OFDSenderStorePacket 188322 [14:28:28]StoreOFDPacket docnum=188322 [14:28:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 6C 07 01 2F 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 8C B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DF 02 00 35 04 06 00 D5 78 72 15 1A F5 0B BE EA 71 44 1D 5A 45 [14:28:28]CheckFolder [14:28:28]dirname=/storage/ofd_packets [14:28:28]CheckFolder done [14:28:28]ProducePacketName [14:28:28]name=ofd_packets/00188322 [14:28:28]NVStorageSaveData ofd_packets/00188322 [14:28:28]File name is /storage/ofd_packets/00188322 [14:28:28]Write 301 bytes [14:28:28]NVStorageSaveData done [14:28:28]OFDSenderStorePacket done [14:28:28]KKMCreateOFDPacket done [14:28:28]NVStorageSaveData kkm_last_timestamp [14:28:28]File name is /storage/kkm_last_timestamp [14:28:28]Write 4 bytes [14:28:28]NVStorageSaveData done [14:28:28]ExternCall_PrintAddStr [14:28:28]wPrintStart [14:28:28]Write to MH i2c: 01 00 00 A6 0B B1 [14:28:28]Write i2c OK [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: 01 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: 01 07 00 [14:28:28]MH_I2C_Read... [14:28:28]Read from MH i2c: 01 07 00 A6 0B 00 00 00 00 00 FF 0F C6 [14:28:28]RasterBufferAndPrint [14:28:28]line Счет N : (1)210379 [14:28:28]line ИНН: 02508201610067 [14:28:28]line Контрольно-Кассовый Чек [14:28:28]line ПРОДАЖА [14:28:28]line ТРК (МРК, ГНК) : 32 [14:28:28]line Товар: 2710124130 [14:28:28]line Аи-92-К-3 [14:28:28]line 7.480 * 66.90 [14:28:28]line = 500.41 [14:28:28]line НДС 12% НСП 1% [14:28:28]line > о реализуемом товаре [14:28:28]line ОКРУГЛЕНИЕ: -0.41 [14:28:28]line ИТОГО: 500.00 [14:28:28]line Внесено: 500.00 [14:28:28]line СДАЧА: 0.00 [14:28:28]line НСП 1% : 4.43 [14:28:28]line НДС 12% : 53.14 [14:28:28]line Наличными: 500.00 [14:28:28]line Безнал.: 0.00 [14:28:28]line Место: АЗС № 86 "Партнер Нефть" [14:28:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:28:28]line СНО: Общий режим [14:28:28]line Чек 351 22.10.2024 14:28 [14:28:28]line Смена: 461 ФФД: 1.0 [14:28:28]line ЗНМ: 0300000155 [14:28:28]line РНМ: 0000000000100030 [14:28:28]line Версия ККМ: 001 [14:28:28]line ФМ: 0000000000965340 [14:28:28]line ФД: 188322 [14:28:28]line ФПД: 234713286777589 [14:28:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T142828&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188322&fm=234713286777589&tin=02508201610067®Number=0000000000100030&sum=50000 [14:28:28]written 0, free lines is 4095 [14:28:28]OFD Sender: Processing packet 188322 [packets to send 1062, broken 1061] [14:28:28]ProducePacketName [14:28:28]name=ofd_packets/00188322 [14:28:28]OFD Sender: To server: pG, [14:28:28]CommunicateWithHost lk.salyk.kg:30040 [14:28:28]ConnectInit lk.salyk.kg [14:28:29]Write to MH i2c: 01 00 00 D1 0B DC [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: 01 07 00 D1 0B 00 00 00 00 00 64 0C 53 [14:28:29]RasterBufferAndPrint [14:28:29]line [14:28:29]line [14:28:29]line [14:28:29]line [14:28:29]line [14:28:29]written 0, free lines is 3175 [14:28:29]MH_Cut [14:28:29]Write to MH i2c: D1 01 00 D8 0B 01 B5 [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: D1 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: D1 01 00 [14:28:29]MH_I2C_Read... [14:28:29]Read from MH i2c: D1 01 00 D8 0B 00 B4 [14:28:29]Write to MH i2c: 01 00 00 D9 0B E4 [14:28:29]Write i2c OK [14:28:29]MH_I2C_Read... [14:28:30]*** Cut start [14:28:30]*** Partial cut [14:28:30]*** CUTSNS_PIN = 1 [14:28:30]*** CUTSNS_PIN = 0 [14:28:30]*** Brake cut motor [14:28:30]Read from MH i2c: 01 [14:28:30]MH_I2C_Read... [14:28:30]*** Stop cut motor [14:28:30]*** Cut end [14:28:30]Read from MH i2c: 01 07 00 [14:28:30]MH_I2C_Read... [14:28:30]Read from MH i2c: 01 07 00 D9 0B 00 00 00 00 00 FF 0F F9 [14:28:30]process_action close_receipt done [14:28:30]requested_data is exist [14:28:30]produce_requested_data [14:28:30]requested_item fm.sn is exist - process it [14:28:30]wFMCommunicate request_size=4 [14:28:30]MH_SAM_APDU [14:28:30]CAPDU: 80 11 00 00 [14:28:30]Write to MH i2c: E2 08 00 DA 0B 80 11 00 00 00 00 00 00 5F [14:28:30]Write i2c OK [14:28:30]MH_I2C_Read... [14:28:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:31]Read from MH i2c: E2 [14:28:31]MH_I2C_Read... [14:28:31]Read from MH i2c: E2 17 00 [14:28:31]MH_I2C_Read... [14:28:31]Read from MH i2c: E2 17 00 DA 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [14:28:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:28:31]wFMCommunicate OK [14:28:31]requested_item fd.num is exist - process it [14:28:31]SAM_PROTO_GetFieldsCounters [14:28:31]wFMCommunicate request_size=4 [14:28:31]MH_SAM_APDU [14:28:31]CAPDU: 80 13 00 00 [14:28:31]Write to MH i2c: E2 08 00 DB 0B 80 13 00 00 00 00 00 00 62 [14:28:31]Write i2c OK [14:28:31]MH_I2C_Read... [14:28:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:31]Read from MH i2c: E2 [14:28:31]MH_I2C_Read... [14:28:31]Read from MH i2c: E2 62 00 [14:28:31]MH_I2C_Read... [14:28:31]Read from MH i2c: E2 62 00 DB 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 DA [14:28:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 5F 01 00 00 5E 04 04 00 5F 01 00 00 57 04 04 00 60 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:28:31]wFMCommunicate OK [14:28:31]SAM_PROTO_GetFieldsCounters done [14:28:31]requested_item shift.num is exist - process it [14:28:31]requested_item shift.opened is exist - process it [14:28:31]req_shift_opened [14:28:31]FM_GetShiftState [14:28:31]SAM_PROTO_GetShiftState [14:28:31]wFMCommunicate request_size=4 [14:28:31]MH_SAM_APDU [14:28:31]CAPDU: 80 13 01 00 [14:28:31]Write to MH i2c: E2 08 00 DC 0B 80 13 01 00 00 00 00 00 64 [14:28:31]Write i2c OK [14:28:31]MH_I2C_Read... [14:28:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:31]Read from MH i2c: E2 [14:28:31]MH_I2C_Read... [14:28:31]Read from MH i2c: E2 0E 00 [14:28:31]MH_I2C_Read... [14:28:31]Read from MH i2c: E2 0E 00 DC 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 59 [14:28:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:28:31]wFMCommunicate OK [14:28:31]SAM_PROTO_GetShiftState done [14:28:31]FM_GetShiftState done [14:28:31]req_shift_opened done [14:28:31]requested_item shift.open_date is exist - process it [14:28:31]req_shift_open_date [14:28:31]req_shift_open_date done [14:28:31]produce_requested_data done [14:28:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188322,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:28:31]process_action_free close_receipt [14:28:31]json_value_free [14:28:31]json_value_free done [14:28:31]process_json_proto returns [14:28:31]Send response to host [14:28:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188322,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:28:31]free response buf [14:28:31]execute_script done [14:28:31]execute_script returns [14:28:31]free content buf [14:28:31]Sock 9.Close socket [14:28:31]Sock 9.Thread stoped [14:30:22]accept exits with 7 [14:30:22]New connection [14:30:22]New thread 3067305316 created [14:30:22]Thread 3067161956 joined [14:30:22]Waiting for new connection... [14:30:22] Sock 7.Parse request [14:30:22]Sock 7.Check first char [14:30:22]Sock 7.First char is OK [14:30:22]request: POST /json_proto HTTP/1.0 [14:30:22]Method: POST [14:30:22]URL: /json_proto [14:30:22]Method is POST - this is cgi request [14:30:22]url: /json_proto [14:30:22]query_string will be loaded in cgi processing [14:30:22]execute_cgi json_proto POST (null) [14:30:22]execute_cgi path=json_proto method=POST [14:30:22]POST find Content-Length [14:30:22]Host: 172.17.42.131:8080 [14:30:22]Content-Length: 688 [14:30:22]Content-Type: application/json [14:30:22] [14:30:22]POST finish read [14:30:22]Found Content-Length = 688 [14:30:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 34.980, "sum" : 2700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:22]execute_script... [14:30:22]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 34.980, "sum" : 2700.46, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 2700.00, "payments": [ { "type": 0, "sum" : 2700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:30:22]POST & json_proto [14:30:22]process_json_proto [14:30:22]json parsed OK: [14:30:22]protocol is kg_v1.0 [14:30:22]action value=close_receipt [14:30:22]process_action close_receipt [14:30:22]cmd_close_receipt [14:30:22]MH_GetDate [14:30:22]Write to MH i2c: F0 00 00 DD 0B D7 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: F0 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: F0 09 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: F0 09 00 DD 0B 00 FF B6 17 67 A0 18 CA 66 FB [14:30:22]GetLastDocTimeStamp 1729607308 [14:30:22]current date 1729607423 [14:30:22]FM_GetShiftState [14:30:22]SAM_PROTO_GetShiftState [14:30:22]wFMCommunicate request_size=4 [14:30:22]MH_SAM_APDU [14:30:22]CAPDU: 80 13 01 00 [14:30:22]Write to MH i2c: E2 08 00 DE 0B 80 13 01 00 00 00 00 00 66 [14:30:22]Write i2c OK [14:30:22]MH_I2C_Read... [14:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:22]Read from MH i2c: E2 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 0E 00 [14:30:22]MH_I2C_Read... [14:30:22]Read from MH i2c: E2 0E 00 DE 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5B [14:30:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:30:22]wFMCommunicate OK [14:30:22]SAM_PROTO_GetShiftState done [14:30:22]FM_GetShiftState done [14:30:22]opened in 1729556094 [14:30:22]opened+sec_in_day 1729642494 [14:30:22]quantity*price = 270045 [14:30:22]sum+1 = 270047 [14:30:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.46 ИТОГО: 2700.00 Внесено: 3000.00 СДАЧА: 300.00 НСП 1% : 23.90 НДС 12% : 286.77 Наличными: 2700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 352 22.10.2024 14:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188323 ФПД: 261714298985549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143023&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188323&fm=261714298985549&tin=02508201610067®Number=0000000000100030&sum=270000 [14:30:23]StoreToDocumentArchive [14:30:23]shift 461 fd 188323 [14:30:23]save to /storage/0461/doc_00188323 [14:30:23]save last doc name /storage/0461/doc_00188323 to /storage/kkm_last_doc_name [14:30:23]save OK [14:30:23]Clear old archive folders... [14:30:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:30:23]tlvbuf is 0145DBF0 [14:30:23]SAM_PROTO_ClearQueue [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 09 00 00 [14:30:23]Write to MH i2c: E2 08 00 EB 0B 80 09 00 00 00 00 00 00 68 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]SAM_PROTO_ClearQueue done [14:30:23]KKMCreateOFDPacket [14:30:23]OFDProtocolAddRootSTLVToBuf [14:30:23]FM_MakeSignedData [14:30:23]FM_MakeSignedData [14:30:23]SAM_PROTO_SignData [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 01 02 [14:30:23]Write to MH i2c: E2 08 00 EC 0B 80 0D 01 02 00 00 00 00 70 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]wFMCommunicate request_size=255 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 FF B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DF 02 [14:30:23]Write to MH i2c: E2 02 01 ED 0B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 FF B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DF 02 00 00 BB [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]wFMCommunicate request_size=16 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EE 07 1B D2 DC 4D [14:30:23]Write to MH i2c: E2 13 00 EE 0B 80 0D 02 02 0B 00 00 35 04 06 00 EE 07 1B D2 DC 4D 00 00 D3 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 03 00 EE 0B 00 90 00 6D [14:30:23]RAPDU: 90 00 [14:30:23]wFMCommunicate OK [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 0D 03 02 [14:30:23]Write to MH i2c: E2 08 00 EF 0B 80 0D 03 02 00 00 00 00 75 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 0B 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 0B 00 EF 0B 00 9F 27 FE 17 15 F9 12 05 90 00 76 [14:30:23]RAPDU: 9F 27 FE 17 15 F9 12 05 90 00 [14:30:23]wFMCommunicate OK [14:30:23]SAM_PROTO_SignData done [14:30:23]FM_MakeSignedData done [14:30:23]CreateOFDProtocolMessage [14:30:23]wFMCommunicate request_size=4 [14:30:23]MH_SAM_APDU [14:30:23]CAPDU: 80 11 00 00 [14:30:23]Write to MH i2c: E2 08 00 F0 0B 80 11 00 00 00 00 00 00 75 [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:23]Read from MH i2c: E2 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 17 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: E2 17 00 F0 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [14:30:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:30:23]wFMCommunicate OK [14:30:23]CreateOFDProtocolMessage done [14:30:23]OFDSenderStorePacket 188323 [14:30:23]StoreOFDPacket docnum=188323 [14:30:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C1 A4 0D 01 57 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 FF B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DF 02 00 35 04 06 00 EE 07 1B D2 DC 4D 9F 27 FE 17 15 F9 12 05 [14:30:23]CheckFolder [14:30:23]dirname=/storage/ofd_packets [14:30:23]CheckFolder done [14:30:23]ProducePacketName [14:30:23]name=ofd_packets/00188323 [14:30:23]NVStorageSaveData ofd_packets/00188323 [14:30:23]File name is /storage/ofd_packets/00188323 [14:30:23]Write 307 bytes [14:30:23]NVStorageSaveData done [14:30:23]OFDSenderStorePacket done [14:30:23]KKMCreateOFDPacket done [14:30:23]NVStorageSaveData kkm_last_timestamp [14:30:23]File name is /storage/kkm_last_timestamp [14:30:23]Write 4 bytes [14:30:23]NVStorageSaveData done [14:30:23]ExternCall_PrintAddStr [14:30:23]wPrintStart [14:30:23]Write to MH i2c: 01 00 00 F1 0B FC [14:30:23]Write i2c OK [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: 01 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: 01 07 00 [14:30:23]MH_I2C_Read... [14:30:23]Read from MH i2c: 01 07 00 F1 0B 00 00 00 00 00 FF 0F 11 [14:30:23]RasterBufferAndPrint [14:30:23]line Счет N : (1)210378 [14:30:23]line ИНН: 02508201610067 [14:30:23]line Контрольно-Кассовый Чек [14:30:23]line ПРОДАЖА [14:30:23]line ТРК (МРК, ГНК) : 21 [14:30:23]line Товар: 2710194210 [14:30:23]line D-ENERGY ДТ-К-5 [14:30:23]line 34.980 * 77.20 [14:30:23]line = 2700.46 [14:30:23]line НДС 12% НСП 1% [14:30:23]line > о реализуемом товаре [14:30:23]line ОКРУГЛЕНИЕ: -0.46 [14:30:23]line ИТОГО: 2700.00 [14:30:23]line Внесено: 3000.00 [14:30:23]line СДАЧА: 300.00 [14:30:23]line НСП 1% : 23.90 [14:30:23]line НДС 12% : 286.77 [14:30:23]line Наличными: 2700.00 [14:30:23]line Безнал.: 0.00 [14:30:23]line Место: АЗС № 86 "Партнер Нефть" [14:30:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:30:23]line СНО: Общий режим [14:30:23]line Чек 352 22.10.2024 14:30 [14:30:23]line Смена: 461 ФФД: 1.0 [14:30:23]line ЗНМ: 0300000155 [14:30:23]line РНМ: 0000000000100030 [14:30:23]line Версия ККМ: 001 [14:30:23]line ФМ: 0000000000965340 [14:30:23]line ФД: 188323 [14:30:23]line ФПД: 261714298985549 [14:30:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143023&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188323&fm=261714298985549&tin=02508201610067®Number=0000000000100030&sum=270000 [14:30:23]written 0, free lines is 4095 [14:30:24]Write to MH i2c: 01 00 00 1C 0C 28 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 07 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: 01 07 00 1C 0C 00 00 00 00 00 66 0C A1 [14:30:24]RasterBufferAndPrint [14:30:24]line [14:30:24]line [14:30:24]line [14:30:24]line [14:30:24]line [14:30:24]written 0, free lines is 3177 [14:30:24]MH_Cut [14:30:24]Write to MH i2c: D1 01 00 23 0C 01 01 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: D1 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: D1 01 00 [14:30:24]MH_I2C_Read... [14:30:24]Read from MH i2c: D1 01 00 23 0C 00 00 [14:30:24]Write to MH i2c: 01 00 00 24 0C 30 [14:30:24]Write i2c OK [14:30:24]MH_I2C_Read... [14:30:25]*** Cut start [14:30:25]*** Partial cut [14:30:25]*** CUTSNS_PIN = 1 [14:30:25]*** CUTSNS_PIN = 0 [14:30:25]*** Brake cut motor [14:30:26]Read from MH i2c: 01 [14:30:26]MH_I2C_Read... [14:30:26]*** Stop cut motor [14:30:26]*** Cut end [14:30:26]Read from MH i2c: 01 07 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: 01 07 00 24 0C 00 00 00 00 00 FF 0F 45 [14:30:26]process_action close_receipt done [14:30:26]requested_data is exist [14:30:26]produce_requested_data [14:30:26]requested_item fm.sn is exist - process it [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 11 00 00 [14:30:26]Write to MH i2c: E2 08 00 25 0C 80 11 00 00 00 00 00 00 AB [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 17 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 17 00 25 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F9 [14:30:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:30:26]wFMCommunicate OK [14:30:26]requested_item fd.num is exist - process it [14:30:26]SAM_PROTO_GetFieldsCounters [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 13 00 00 [14:30:26]Write to MH i2c: E2 08 00 26 0C 80 13 00 00 00 00 00 00 AE [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 62 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 62 00 26 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:30:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 60 01 00 00 5E 04 04 00 60 01 00 00 57 04 04 00 61 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:30:26]wFMCommunicate OK [14:30:26]SAM_PROTO_GetFieldsCounters done [14:30:26]requested_item shift.num is exist - process it [14:30:26]requested_item shift.opened is exist - process it [14:30:26]req_shift_opened [14:30:26]FM_GetShiftState [14:30:26]SAM_PROTO_GetShiftState [14:30:26]wFMCommunicate request_size=4 [14:30:26]MH_SAM_APDU [14:30:26]CAPDU: 80 13 01 00 [14:30:26]Write to MH i2c: E2 08 00 27 0C 80 13 01 00 00 00 00 00 B0 [14:30:26]Write i2c OK [14:30:26]MH_I2C_Read... [14:30:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:30:26]Read from MH i2c: E2 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 0E 00 [14:30:26]MH_I2C_Read... [14:30:26]Read from MH i2c: E2 0E 00 27 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A5 [14:30:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:30:26]wFMCommunicate OK [14:30:26]SAM_PROTO_GetShiftState done [14:30:26]FM_GetShiftState done [14:30:26]req_shift_opened done [14:30:26]requested_item shift.open_date is exist - process it [14:30:26]req_shift_open_date [14:30:26]req_shift_open_date done [14:30:26]produce_requested_data done [14:30:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188323,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:30:26]process_action_free close_receipt [14:30:26]json_value_free [14:30:26]json_value_free done [14:30:26]process_json_proto returns [14:30:26]Send response to host [14:30:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188323,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:30:26]free response buf [14:30:26]execute_script done [14:30:26]execute_script returns [14:30:26]free content buf [14:30:26]Sock 7.Close socket [14:30:26]Sock 7.Thread stoped [14:30:43]ConnectInit Can't connect to host [14:30:43]CommunicateWithHost connect error [14:30:43]CommunicateWithHost err = -1 [14:30:43]OFD Sender: Server communicate error [14:30:43]OFD Sender: Processing packet 188322 [packets to send 1063, broken 1061] [14:30:43]ProducePacketName [14:30:43]name=ofd_packets/00188322 [14:30:43]OFD Sender: To server: pG, [14:30:43]CommunicateWithHost lk.salyk.kg:30040 [14:30:43]ConnectInit lk.salyk.kg [14:30:43]Connected sock=7 [14:30:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 6C 07 01 2F 9B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5F 01 00 00 F4 03 04 00 8C B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DF 02 00 35 04 06 00 D5 78 72 15 1A F5 0B BE EA 71 44 1D 5A 45 [14:30:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 80 AA 47 00 FA 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A2 DF 02 00 F4 03 04 00 FF 60 17 67 B6 04 01 00 00 A0 80 8A D7 02 3A DF 1D [14:30:43]CommunicateWithHost err = 0 [14:30:43]CheckOFDResponse [14:30:43]1017 (14) - 77093643461234 [14:30:43]1041 (16) - 0000000000965340 [14:30:43]1040 (4) - 188322 [14:30:43]1012 (4) - 22.10.2024 08:23 [14:30:43]1206 (1) - 0 [14:30:43]OFD Sender: Remove packet 188322 [14:30:43]ProducePacketName [14:30:43]name=ofd_packets/00188322 [14:30:43]NVStorageDeleteData [14:30:44]OFD Sender: Processing packet 188323 [packets to send 1062, broken 1061] [14:30:44]ProducePacketName [14:30:44]name=ofd_packets/00188323 [14:30:44]OFD Sender: To server: pG, [14:30:44]CommunicateWithHost lk.salyk.kg:30040 [14:30:44]ConnectInit lk.salyk.kg [14:30:44]Connected sock=7 [14:30:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C1 A4 0D 01 57 D3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A4 88 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 DE 1E 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 1E 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 56 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 05 70 00 00 00 00 07 04 06 00 B0 1E 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 60 01 00 00 F4 03 04 00 FF B6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A3 DF 02 00 35 04 06 00 EE 07 1B D2 DC 4D 9F 27 FE 17 15 F9 12 05 [14:30:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F 4E 47 00 78 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 39 36 35 33 34 30 10 04 04 00 A3 DF 02 00 F4 03 04 00 00 61 17 67 B6 04 01 00 00 E1 54 0B 04 C8 42 29 41 [14:30:44]CommunicateWithHost err = 0 [14:30:44]CheckOFDResponse [14:30:44]1017 (14) - 77093643461234 [14:30:44]1041 (16) - 0000000000965340 [14:30:44]1040 (4) - 188323 [14:30:44]1012 (4) - 22.10.2024 08:23 [14:30:44]1206 (1) - 0 [14:30:44]OFD Sender: Remove packet 188323 [14:30:44]ProducePacketName [14:30:44]name=ofd_packets/00188323 [14:30:44]NVStorageDeleteData [14:30:45]OFD Sender: No OFD packet to send [14:30:50]OFD Sender: No OFD packet to send [14:30:55]OFD Sender: No OFD packet to send [14:31:00]OFD Sender: No OFD packet to send [14:31:05]OFD Sender: No OFD packet to send [14:31:10]OFD Sender: No OFD packet to send [14:31:15]OFD Sender: No OFD packet to send [14:31:20]OFD Sender: No OFD packet to send [14:31:25]OFD Sender: No OFD packet to send [14:31:30]OFD Sender: No OFD packet to send [14:31:35]OFD Sender: No OFD packet to send [14:31:40]OFD Sender: No OFD packet to send [14:31:45]OFD Sender: No OFD packet to send [14:31:50]OFD Sender: No OFD packet to send [14:31:55]OFD Sender: No OFD packet to send [14:31:56]accept exits with 9 [14:31:56]New connection [14:31:56]New thread 3067161956 created [14:31:56]Thread 3067305316 joined [14:31:56]Waiting for new connection... [14:31:56] Sock 9.Parse request [14:31:56]Sock 9.Check first char [14:31:56]Sock 9.First char is OK [14:31:56]request: POST /json_proto HTTP/1.0 [14:31:56]Method: POST [14:31:56]URL: /json_proto [14:31:56]Method is POST - this is cgi request [14:31:56]url: /json_proto [14:31:56]query_string will be loaded in cgi processing [14:31:56]execute_cgi json_proto POST (null) [14:31:56]execute_cgi path=json_proto method=POST [14:31:56]POST find Content-Length [14:31:56]Host: 172.17.42.131:8080 [14:31:56]Content-Length: 678 [14:31:56]Content-Type: application/json [14:31:56] [14:31:56]POST finish read [14:31:56]Found Content-Length = 678 [14:31:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:56]execute_script... [14: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)210381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:31:56]POST & json_proto [14:31:56]process_json_proto [14:31:56]json parsed OK: [14:31:56]protocol is kg_v1.0 [14:31:56]action value=close_receipt [14:31:56]process_action close_receipt [14:31:56]cmd_close_receipt [14:31:56]MH_GetDate [14:31:56]Write to MH i2c: F0 00 00 28 0C 23 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: F0 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: F0 09 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: F0 09 00 28 0C 00 5D B7 17 67 A0 18 CA 66 A6 [14:31:56]GetLastDocTimeStamp 1729607423 [14:31:56]current date 1729607517 [14:31:56]FM_GetShiftState [14:31:56]SAM_PROTO_GetShiftState [14:31:56]wFMCommunicate request_size=4 [14:31:56]MH_SAM_APDU [14:31:56]CAPDU: 80 13 01 00 [14:31:56]Write to MH i2c: E2 08 00 29 0C 80 13 01 00 00 00 00 00 B2 [14:31:56]Write i2c OK [14:31:56]MH_I2C_Read... [14:31:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:31:56]Read from MH i2c: E2 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 0E 00 [14:31:56]MH_I2C_Read... [14:31:56]Read from MH i2c: E2 0E 00 29 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A7 [14:31:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:31:56]wFMCommunicate OK [14:31:56]SAM_PROTO_GetShiftState done [14:31:56]FM_GetShiftState done [14:31:56]opened in 1729556094 [14:31:56]opened+sec_in_day 1729642494 [14:31:56]quantity*price = 70044 [14:31:56]sum+1 = 70045 [14:31:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 353 22.10.2024 14:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188324 ФПД: 137827869350590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143157&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188324&fm=137827869350590&tin=02508201610067®Number=0000000000100030&sum=70000 [14:31:57]StoreToDocumentArchive [14:31:57]shift 461 fd 188324 [14:31:57]save to /storage/0461/doc_00188324 [14:31:57]save last doc name /storage/0461/doc_00188324 to /storage/kkm_last_doc_name [14:31:57]save OK [14:31:57]Clear old archive folders... [14:31:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:31:57]tlvbuf is 01469CA0 [14:31:57]SAM_PROTO_ClearQueue [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 09 00 00 [14:31:57]Write to MH i2c: E2 08 00 36 0C 80 09 00 00 00 00 00 00 B4 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 36 0C 00 90 00 B6 [14:31:57]RAPDU: 90 00 [14:31:57]wFMCommunicate OK [14:31:57]SAM_PROTO_ClearQueue done [14:31:57]KKMCreateOFDPacket [14:31:57]OFDProtocolAddRootSTLVToBuf [14:31:57]FM_MakeSignedData [14:31:57]FM_MakeSignedData [14:31:57]SAM_PROTO_SignData [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 0D 01 02 [14:31:57]Write to MH i2c: E2 08 00 37 0C 80 0D 01 02 00 00 00 00 BC [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 37 0C 00 90 00 B7 [14:31:57]RAPDU: 90 00 [14:31:57]wFMCommunicate OK [14:31:57]wFMCommunicate request_size=255 [14:31:57]MH_SAM_APDU [14: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 5D B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DF 02 00 35 04 06 00 7D [14:31:57]Write to MH i2c: E2 02 01 38 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 5D B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DF 02 00 35 04 06 00 7D 00 00 03 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 38 0C 00 90 00 B8 [14:31:57]RAPDU: 90 00 [14:31:57]wFMCommunicate OK [14:31:57]wFMCommunicate request_size=10 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 0D 02 02 05 5A 8D 31 5A BE [14:31:57]Write to MH i2c: E2 0D 00 39 0C 80 0D 02 02 05 00 5A 8D 31 5A BE 00 00 F9 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 03 00 39 0C 00 90 00 B9 [14:31:57]RAPDU: 90 00 [14:31:57]wFMCommunicate OK [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 0D 03 02 [14:31:57]Write to MH i2c: E2 08 00 3A 0C 80 0D 03 02 00 00 00 00 C1 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0B 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 0B 00 3A 0C 00 B0 D8 E6 23 7A 02 18 34 90 00 1B [14:31:57]RAPDU: B0 D8 E6 23 7A 02 18 34 90 00 [14:31:57]wFMCommunicate OK [14:31:57]SAM_PROTO_SignData done [14:31:57]FM_MakeSignedData done [14:31:57]CreateOFDProtocolMessage [14:31:57]wFMCommunicate request_size=4 [14:31:57]MH_SAM_APDU [14:31:57]CAPDU: 80 11 00 00 [14:31:57]Write to MH i2c: E2 08 00 3B 0C 80 11 00 00 00 00 00 00 C1 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:31:57]Read from MH i2c: E2 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 17 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: E2 17 00 3B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0F [14:31:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:31:57]wFMCommunicate OK [14:31:57]CreateOFDProtocolMessage done [14:31:57]OFDSenderStorePacket 188324 [14:31:57]StoreOFDPacket docnum=188324 [14:31:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 4C 07 01 86 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 5D B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DF 02 00 35 04 06 00 7D 5A 8D 31 5A BE B0 D8 E6 23 7A 02 18 34 [14:31:57]CheckFolder [14:31:57]dirname=/storage/ofd_packets [14:31:57]CheckFolder done [14:31:57]ProducePacketName [14:31:57]name=ofd_packets/00188324 [14:31:57]NVStorageSaveData ofd_packets/00188324 [14:31:57]File name is /storage/ofd_packets/00188324 [14:31:57]Write 301 bytes [14:31:57]NVStorageSaveData done [14:31:57]OFDSenderStorePacket done [14:31:57]KKMCreateOFDPacket done [14:31:57]NVStorageSaveData kkm_last_timestamp [14:31:57]File name is /storage/kkm_last_timestamp [14:31:57]Write 4 bytes [14:31:57]NVStorageSaveData done [14:31:57]ExternCall_PrintAddStr [14:31:57]wPrintStart [14:31:57]Write to MH i2c: 01 00 00 3C 0C 48 [14:31:57]Write i2c OK [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 [14:31:57]MH_I2C_Read... [14:31:57]Read from MH i2c: 01 07 00 3C 0C 00 00 00 00 00 FF 0F 5D [14:31:57]RasterBufferAndPrint [14:31:57]line Счет N : (1)210381 [14:31:57]line ИНН: 02508201610067 [14:31:57]line Контрольно-Кассовый Чек [14:31:57]line ПРОДАЖА [14:31:57]line ТРК (МРК, ГНК) : 32 [14:31:57]line Товар: 2710124130 [14:31:57]line Аи-92-К-3 [14:31:57]line 10.470 * 66.90 [14:31:57]line = 700.44 [14:31:57]line НДС 12% НСП 1% [14:31:57]line > о реализуемом товаре [14:31:57]line ОКРУГЛЕНИЕ: -0.44 [14:31:57]line ИТОГО: 700.00 [14:31:57]line Внесено: 700.00 [14:31:57]line СДАЧА: 0.00 [14:31:57]line НСП 1% : 6.20 [14:31:57]line НДС 12% : 74.38 [14:31:57]line Наличными: 700.00 [14:31:57]line Безнал.: 0.00 [14:31:57]line Место: АЗС № 86 "Партнер Нефть" [14:31:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:31:57]line СНО: Общий режим [14:31:57]line Чек 353 22.10.2024 14:31 [14:31:57]line Смена: 461 ФФД: 1.0 [14:31:57]line ЗНМ: 0300000155 [14:31:57]line РНМ: 0000000000100030 [14:31:57]line Версия ККМ: 001 [14:31:57]line ФМ: 0000000000965340 [14:31:57]line ФД: 188324 [14:31:57]line ФПД: 137827869350590 [14:31:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143157&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188324&fm=137827869350590&tin=02508201610067®Number=0000000000100030&sum=70000 [14:31:57]written 0, free lines is 4095 [14:31:57]OFD Sender: Processing packet 188324 [packets to send 1062, broken 1061] [14:31:57]ProducePacketName [14:31:57]name=ofd_packets/00188324 [14:31:57]OFD Sender: To server: pG, [14:31:57]CommunicateWithHost lk.salyk.kg:30040 [14:31:57]ConnectInit lk.salyk.kg [14:31:58]Connected sock=10 [14:31:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 5A 4C 07 01 86 B8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 61 01 00 00 F4 03 04 00 5D B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DF 02 00 35 04 06 00 7D 5A 8D 31 5A BE B0 D8 E6 23 7A 02 18 34 [14:31:58]Write to MH i2c: 01 00 00 67 0C 73 [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: 01 07 00 67 0C 00 00 00 00 00 63 0C E9 [14:31:58]RasterBufferAndPrint [14:31:58]line [14:31:58]line [14:31:58]line [14:31:58]line [14:31:58]line [14:31:58]written 0, free lines is 3174 [14:31:58]MH_Cut [14:31:58]Write to MH i2c: D1 01 00 6E 0C 01 4C [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: D1 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: D1 01 00 [14:31:58]MH_I2C_Read... [14:31:58]Read from MH i2c: D1 01 00 6E 0C 00 4B [14:31:58]Write to MH i2c: 01 00 00 6F 0C 7B [14:31:58]Write i2c OK [14:31:58]MH_I2C_Read... [14:31:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 81 16 47 00 CE 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A4 DF 02 00 F4 03 04 00 4A 61 17 67 B6 04 01 00 00 5A 2C D3 38 9E EE 73 80 [14:31:58]CommunicateWithHost err = 0 [14:31:58]CheckOFDResponse [14:31:58]1017 (14) - 77093643461234 [14:31:58]1041 (16) - 0000000000965340 [14:31:58]1040 (4) - 188324 [14:31:58]1012 (4) - 22.10.2024 08:24 [14:31:58]1206 (1) - 0 [14:31:58]OFD Sender: Remove packet 188324 [14:31:58]ProducePacketName [14:31:58]name=ofd_packets/00188324 [14:31:58]NVStorageDeleteData [14:31:59]OFD Sender: No OFD packet to send [14:31:59]*** Cut start [14:31:59]*** Partial cut [14:31:59]*** CUTSNS_PIN = 1 [14:31:59]*** CUTSNS_PIN = 0 [14:31:59]*** Brake cut motor [14:32:00]Read from MH i2c: 01 [14:32:00]MH_I2C_Read... [14:32:00]*** Stop cut motor [14:32:00]*** Cut end [14:32:00]Read from MH i2c: 01 07 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: 01 07 00 6F 0C 00 00 00 00 00 FF 0F 90 [14:32:00]process_action close_receipt done [14:32:00]requested_data is exist [14:32:00]produce_requested_data [14:32:00]requested_item fm.sn is exist - process it [14:32:00]wFMCommunicate request_size=4 [14:32:00]MH_SAM_APDU [14:32:00]CAPDU: 80 11 00 00 [14:32:00]Write to MH i2c: E2 08 00 70 0C 80 11 00 00 00 00 00 00 F6 [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 17 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 17 00 70 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 44 [14:32:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:00]wFMCommunicate OK [14:32:00]requested_item fd.num is exist - process it [14:32:00]SAM_PROTO_GetFieldsCounters [14:32:00]wFMCommunicate request_size=4 [14:32:00]MH_SAM_APDU [14:32:00]CAPDU: 80 13 00 00 [14:32:00]Write to MH i2c: E2 08 00 71 0C 80 13 00 00 00 00 00 00 F9 [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 62 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 62 00 71 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [14:32:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 61 01 00 00 5E 04 04 00 61 01 00 00 57 04 04 00 62 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:00]wFMCommunicate OK [14:32:00]SAM_PROTO_GetFieldsCounters done [14:32:00]requested_item shift.num is exist - process it [14:32:00]requested_item shift.opened is exist - process it [14:32:00]req_shift_opened [14:32:00]FM_GetShiftState [14:32:00]SAM_PROTO_GetShiftState [14:32:00]wFMCommunicate request_size=4 [14:32:00]MH_SAM_APDU [14:32:00]CAPDU: 80 13 01 00 [14:32:00]Write to MH i2c: E2 08 00 72 0C 80 13 01 00 00 00 00 00 FB [14:32:00]Write i2c OK [14:32:00]MH_I2C_Read... [14:32:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:00]Read from MH i2c: E2 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 0E 00 [14:32:00]MH_I2C_Read... [14:32:00]Read from MH i2c: E2 0E 00 72 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F0 [14:32:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:32:00]wFMCommunicate OK [14:32:00]SAM_PROTO_GetShiftState done [14:32:00]FM_GetShiftState done [14:32:00]req_shift_opened done [14:32:00]requested_item shift.open_date is exist - process it [14:32:00]req_shift_open_date [14:32:00]req_shift_open_date done [14:32:00]produce_requested_data done [14:32:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188324,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:32:00]process_action_free close_receipt [14:32:00]json_value_free [14:32:00]json_value_free done [14:32:00]process_json_proto returns [14:32:00]Send response to host [14:32:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188324,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:32:00]free response buf [14:32:00]execute_script done [14:32:00]execute_script returns [14:32:00]free content buf [14:32:00]Sock 9.Close socket [14:32:00]Sock 9.Thread stoped [14:32:04]OFD Sender: No OFD packet to send [14:32:09]OFD Sender: No OFD packet to send [14:32:14]OFD Sender: No OFD packet to send [14:32:19]OFD Sender: No OFD packet to send [14:32:24]OFD Sender: No OFD packet to send [14:32:29]OFD Sender: No OFD packet to send [14:32:31]accept exits with 7 [14:32:31]New connection [14:32:31]New thread 3067305316 created [14:32:31]Thread 3067161956 joined [14:32:31]Waiting for new connection... [14:32:31] Sock 7.Parse request [14:32:31]Sock 7.Check first char [14:32:31]Sock 7.First char is OK [14:32:31]request: POST /json_proto HTTP/1.0 [14:32:31]Method: POST [14:32:31]URL: /json_proto [14:32:31]Method is POST - this is cgi request [14:32:31]url: /json_proto [14:32:31]query_string will be loaded in cgi processing [14:32:31]execute_cgi json_proto POST (null) [14:32:31]execute_cgi path=json_proto method=POST [14:32:31]POST find Content-Length [14:32:31]Host: 172.17.42.131:8080 [14:32:31]Content-Length: 767 [14:32:31]Content-Type: application/json [14:32:31] [14:32:31]POST finish read [14:32:31]Found Content-Length = 767 [14:32:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:31]execute_script... [14:32: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)210382", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 700.44 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:31]POST & json_proto [14:32:31]process_json_proto [14:32:31]json parsed OK: [14:32:31]protocol is kg_v1.0 [14:32:31]action value=close_receipt [14:32:31]process_action close_receipt [14:32:31]cmd_close_receipt [14:32:31]MH_GetDate [14:32:31]Write to MH i2c: F0 00 00 73 0C 6E [14:32:31]Write i2c OK [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: F0 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: F0 09 00 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: F0 09 00 73 0C 00 80 B7 17 67 A0 18 CA 66 14 [14:32:31]GetLastDocTimeStamp 1729607517 [14:32:31]current date 1729607552 [14:32:31]FM_GetShiftState [14:32:31]SAM_PROTO_GetShiftState [14:32:31]wFMCommunicate request_size=4 [14:32:31]MH_SAM_APDU [14:32:31]CAPDU: 80 13 01 00 [14:32:31]Write to MH i2c: E2 08 00 74 0C 80 13 01 00 00 00 00 00 FD [14:32:31]Write i2c OK [14:32:31]MH_I2C_Read... [14:32:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:31]Read from MH i2c: E2 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 0E 00 [14:32:31]MH_I2C_Read... [14:32:31]Read from MH i2c: E2 0E 00 74 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F2 [14:32:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:32:31]wFMCommunicate OK [14:32:31]SAM_PROTO_GetShiftState done [14:32:31]FM_GetShiftState done [14:32:31]opened in 1729556094 [14:32:31]opened+sec_in_day 1729642494 [14:32:31]quantity*price = 70044 [14:32:31]sum+1 = 70045 [14:32:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 354 22.10.2024 14:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188325 ФПД: 136654662224654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143232&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188325&fm=136654662224654&tin=02508201610067®Number=0000000000100030&sum=70044 [14:32:32]StoreToDocumentArchive [14:32:32]shift 461 fd 188325 [14:32:32]save to /storage/0461/doc_00188325 [14:32:32]save last doc name /storage/0461/doc_00188325 to /storage/kkm_last_doc_name [14:32:32]save OK [14:32:32]Clear old archive folders... [14:32:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:32:32]tlvbuf is 0145DBC0 [14:32:32]SAM_PROTO_ClearQueue [14:32:32]wFMCommunicate request_size=4 [14:32:32]MH_SAM_APDU [14:32:32]CAPDU: 80 09 00 00 [14:32:32]Write to MH i2c: E2 08 00 81 0C 80 09 00 00 00 00 00 00 FF [14:32:32]Write i2c OK [14:32:32]MH_I2C_Read... [14:32:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:32]Read from MH i2c: E2 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 03 00 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 03 00 81 0C 00 90 00 01 [14:32:32]RAPDU: 90 00 [14:32:32]wFMCommunicate OK [14:32:32]SAM_PROTO_ClearQueue done [14:32:32]KKMCreateOFDPacket [14:32:32]OFDProtocolAddRootSTLVToBuf [14:32:32]FM_MakeSignedData [14:32:32]FM_MakeSignedData [14:32:32]SAM_PROTO_SignData [14:32:32]wFMCommunicate request_size=4 [14:32:32]MH_SAM_APDU [14:32:32]CAPDU: 80 0D 01 02 [14:32:32]Write to MH i2c: E2 08 00 82 0C 80 0D 01 02 00 00 00 00 07 [14:32:32]Write i2c OK [14:32:32]MH_I2C_Read... [14:32:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:32]Read from MH i2c: E2 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 03 00 [14:32:32]MH_I2C_Read... [14:32:32]Read from MH i2c: E2 03 00 82 0C 00 90 00 02 [14:32:32]RAPDU: 90 00 [14:32:32]wFMCommunicate OK [14:32:32]wFMCommunicate request_size=255 [14:32:32]MH_SAM_APDU [14:32: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 80 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DF 02 00 35 04 06 00 7C [14:32:32]Write to MH i2c: E2 02 01 83 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 80 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DF 02 00 35 04 06 00 7C 00 00 CA [14:32:32]Write i2c OK [14:32:32]MH_I2C_Read... [14:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:33]Read from MH i2c: E2 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 03 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 03 00 83 0C 00 90 00 03 [14:32:33]RAPDU: 90 00 [14:32:33]wFMCommunicate OK [14:32:33]wFMCommunicate request_size=10 [14:32:33]MH_SAM_APDU [14:32:33]CAPDU: 80 0D 02 02 05 49 64 99 4B 0E [14:32:33]Write to MH i2c: E2 0D 00 84 0C 80 0D 02 02 05 00 49 64 99 4B 0E 00 00 B3 [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:33]Read from MH i2c: E2 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 03 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 03 00 84 0C 00 90 00 04 [14:32:33]RAPDU: 90 00 [14:32:33]wFMCommunicate OK [14:32:33]wFMCommunicate request_size=4 [14:32:33]MH_SAM_APDU [14:32:33]CAPDU: 80 0D 03 02 [14:32:33]Write to MH i2c: E2 08 00 85 0C 80 0D 03 02 00 00 00 00 0C [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:33]Read from MH i2c: E2 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 0B 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 0B 00 85 0C 00 EC 7B CF A3 CC 74 85 2D 90 00 D8 [14:32:33]RAPDU: EC 7B CF A3 CC 74 85 2D 90 00 [14:32:33]wFMCommunicate OK [14:32:33]SAM_PROTO_SignData done [14:32:33]FM_MakeSignedData done [14:32:33]CreateOFDProtocolMessage [14:32:33]wFMCommunicate request_size=4 [14:32:33]MH_SAM_APDU [14:32:33]CAPDU: 80 11 00 00 [14:32:33]Write to MH i2c: E2 08 00 86 0C 80 11 00 00 00 00 00 00 0C [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:33]Read from MH i2c: E2 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 17 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: E2 17 00 86 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5A [14:32:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:33]wFMCommunicate OK [14:32:33]CreateOFDProtocolMessage done [14:32:33]OFDSenderStorePacket 188325 [14:32:33]StoreOFDPacket docnum=188325 [14:32:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 93 0B 07 01 71 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 80 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DF 02 00 35 04 06 00 7C 49 64 99 4B 0E EC 7B CF A3 CC 74 85 2D [14:32:33]CheckFolder [14:32:33]dirname=/storage/ofd_packets [14:32:33]CheckFolder done [14:32:33]ProducePacketName [14:32:33]name=ofd_packets/00188325 [14:32:33]NVStorageSaveData ofd_packets/00188325 [14:32:33]File name is /storage/ofd_packets/00188325 [14:32:33]Write 301 bytes [14:32:33]NVStorageSaveData done [14:32:33]OFDSenderStorePacket done [14:32:33]KKMCreateOFDPacket done [14:32:33]NVStorageSaveData kkm_last_timestamp [14:32:33]File name is /storage/kkm_last_timestamp [14:32:33]Write 4 bytes [14:32:33]NVStorageSaveData done [14:32:33]ExternCall_PrintAddStr [14:32:33]wPrintStart [14:32:33]Write to MH i2c: 01 00 00 87 0C 93 [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: 01 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: 01 07 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: 01 07 00 87 0C 00 00 00 00 00 FF 0F A8 [14:32:33]RasterBufferAndPrint [14:32:33]line Счет N : (1)210382 [14:32:33]line ИНН: 02508201610067 [14:32:33]line Контрольно-Кассовый Чек [14:32:33]line ПРОДАЖА [14:32:33]line ТРК (МРК, ГНК) : 12 [14:32:33]line Товар: 2710124130 [14:32:33]line Аи-92-К-3 [14:32:33]line 10.470 * 66.90 [14:32:33]line = 700.44 [14:32:33]line НДС 12% НСП 1% [14:32:33]line > о реализуемом товаре [14:32:33]line ИТОГО: 700.44 [14:32:33]line НСП 1% : 6.20 [14:32:33]line НДС 12% : 74.38 [14:32:33]line Наличными: 0.00 [14:32:33]line Безнал.: 700.44 [14:32:33]line Место: АЗС № 86 "Партнер Нефть" [14:32:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:32:33]line СНО: Общий режим [14:32:33]line Чек 354 22.10.2024 14:32 [14:32:33]line Смена: 461 ФФД: 1.0 [14:32:33]line ЗНМ: 0300000155 [14:32:33]line РНМ: 0000000000100030 [14:32:33]line Версия ККМ: 001 [14:32:33]line Платежная система: Mbank [14:32:33]line ФМ: 0000000000965340 [14:32:33]line ФД: 188325 [14:32:33]line ФПД: 136654662224654 [14:32:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143232&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188325&fm=136654662224654&tin=02508201610067®Number=0000000000100030&sum=70044 [14:32:33]written 0, free lines is 4095 [14:32:33]OFD Sender: Processing packet 188325 [packets to send 1062, broken 1061] [14:32:33]ProducePacketName [14:32:33]name=ofd_packets/00188325 [14:32:33]OFD Sender: To server: pG, [14:32:33]CommunicateWithHost lk.salyk.kg:30040 [14:32:33]ConnectInit lk.salyk.kg [14:32:33]Connected sock=11 [14:32:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 93 0B 07 01 71 DA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 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 00 00 00 00 00 00 39 04 06 00 9C 11 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 01 00 00 F4 03 04 00 80 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A5 DF 02 00 35 04 06 00 7C 49 64 99 4B 0E EC 7B CF A3 CC 74 85 2D [14:32:33]Write to MH i2c: 01 00 00 B0 0C BC [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: 01 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: 01 07 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: 01 07 00 B0 0C 00 00 00 00 00 98 0C 67 [14:32:33]RasterBufferAndPrint [14:32:33]line [14:32:33]line [14:32:33]line [14:32:33]line [14:32:33]line [14:32:33]written 0, free lines is 3227 [14:32:33]MH_Cut [14:32:33]Write to MH i2c: D1 01 00 B7 0C 01 95 [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: D1 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: D1 01 00 [14:32:33]MH_I2C_Read... [14:32:33]Read from MH i2c: D1 01 00 B7 0C 00 94 [14:32:33]Write to MH i2c: 01 00 00 B8 0C C4 [14:32:33]Write i2c OK [14:32:33]MH_I2C_Read... [14:32:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A AD 47 00 EF 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 39 36 35 33 34 30 10 04 04 00 A5 DF 02 00 F4 03 04 00 6D 61 17 67 B6 04 01 00 00 51 97 CB E5 58 D8 66 05 [14:32:33]CommunicateWithHost err = 0 [14:32:33]CheckOFDResponse [14:32:33]1017 (14) - 77093643461234 [14:32:33]1041 (16) - 0000000000965340 [14:32:33]1040 (4) - 188325 [14:32:33]1012 (4) - 22.10.2024 08:25 [14:32:33]1206 (1) - 0 [14:32:33]OFD Sender: Remove packet 188325 [14:32:33]ProducePacketName [14:32:33]name=ofd_packets/00188325 [14:32:33]NVStorageDeleteData [14:32:34]OFD Sender: No OFD packet to send [14:32:34]*** Cut start [14:32:34]*** Partial cut [14:32:34]*** CUTSNS_PIN = 1 [14:32:34]*** CUTSNS_PIN = 0 [14:32:35]*** Brake cut motor [14:32:35]Read from MH i2c: 01 [14:32:35]MH_I2C_Read... [14:32:35]*** Stop cut motor [14:32:35]*** Cut end [14:32:35]Read from MH i2c: 01 07 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: 01 07 00 B8 0C 00 00 00 00 00 FF 0F D9 [14:32:35]process_action close_receipt done [14:32:35]requested_data is exist [14:32:35]produce_requested_data [14:32:35]requested_item fm.sn is exist - process it [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 11 00 00 [14:32:35]Write to MH i2c: E2 08 00 B9 0C 80 11 00 00 00 00 00 00 3F [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 17 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 17 00 B9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [14:32:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:35]wFMCommunicate OK [14:32:35]requested_item fd.num is exist - process it [14:32:35]SAM_PROTO_GetFieldsCounters [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 13 00 00 [14:32:35]Write to MH i2c: E2 08 00 BA 0C 80 13 00 00 00 00 00 00 42 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 62 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 62 00 BA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 C6 [14:32:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 62 01 00 00 5E 04 04 00 62 01 00 00 57 04 04 00 63 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_GetFieldsCounters done [14:32:35]requested_item shift.num is exist - process it [14:32:35]requested_item shift.opened is exist - process it [14:32:35]req_shift_opened [14:32:35]FM_GetShiftState [14:32:35]SAM_PROTO_GetShiftState [14:32:35]wFMCommunicate request_size=4 [14:32:35]MH_SAM_APDU [14:32:35]CAPDU: 80 13 01 00 [14:32:35]Write to MH i2c: E2 08 00 BB 0C 80 13 01 00 00 00 00 00 44 [14:32:35]Write i2c OK [14:32:35]MH_I2C_Read... [14:32:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:35]Read from MH i2c: E2 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0E 00 [14:32:35]MH_I2C_Read... [14:32:35]Read from MH i2c: E2 0E 00 BB 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 39 [14:32:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:32:35]wFMCommunicate OK [14:32:35]SAM_PROTO_GetShiftState done [14:32:35]FM_GetShiftState done [14:32:35]req_shift_opened done [14:32:35]requested_item shift.open_date is exist - process it [14:32:35]req_shift_open_date [14:32:35]req_shift_open_date done [14:32:35]produce_requested_data done [14:32:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188325,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:32:35]process_action_free close_receipt [14:32:35]json_value_free [14:32:35]json_value_free done [14:32:35]process_json_proto returns [14:32:35]Send response to host [14:32:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188325,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:32:35]free response buf [14:32:35]execute_script done [14:32:35]execute_script returns [14:32:35]free content buf [14:32:35]Sock 7.Close socket [14:32:35]Sock 7.Thread stoped [14:32:39]OFD Sender: No OFD packet to send [14:32:44]OFD Sender: No OFD packet to send [14:32:49]OFD Sender: No OFD packet to send [14:32:52]accept exits with 9 [14:32:52]New connection [14:32:52]New thread 3067161956 created [14:32:52]Thread 3067305316 joined [14:32:52]Waiting for new connection... [14:32:52] Sock 9.Parse request [14:32:52]Sock 9.Check first char [14:32:52]Sock 9.First char is OK [14:32:52]request: POST /json_proto HTTP/1.0 [14:32:52]Method: POST [14:32:52]URL: /json_proto [14:32:52]Method is POST - this is cgi request [14:32:52]url: /json_proto [14:32:52]query_string will be loaded in cgi processing [14:32:52]execute_cgi json_proto POST (null) [14:32:52]execute_cgi path=json_proto method=POST [14:32:52]POST find Content-Length [14:32:52]Host: 172.17.42.131:8080 [14:32:52]Content-Length: 688 [14:32:52]Content-Type: application/json [14:32:52] [14:32:52]POST finish read [14:32:52]Found Content-Length = 688 [14:32:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:52]execute_script... [14:32: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)210380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:32:52]POST & json_proto [14:32:52]process_json_proto [14:32:52]json parsed OK: [14:32:52]protocol is kg_v1.0 [14:32:52]action value=close_receipt [14:32:52]process_action close_receipt [14:32:52]cmd_close_receipt [14:32:52]MH_GetDate [14:32:52]Write to MH i2c: F0 00 00 BC 0C B7 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: F0 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: F0 09 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: F0 09 00 BC 0C 00 95 B7 17 67 A0 18 CA 66 72 [14:32:52]GetLastDocTimeStamp 1729607552 [14:32:52]current date 1729607573 [14:32:52]FM_GetShiftState [14:32:52]SAM_PROTO_GetShiftState [14:32:52]wFMCommunicate request_size=4 [14:32:52]MH_SAM_APDU [14:32:52]CAPDU: 80 13 01 00 [14:32:52]Write to MH i2c: E2 08 00 BD 0C 80 13 01 00 00 00 00 00 46 [14:32:52]Write i2c OK [14:32:52]MH_I2C_Read... [14:32:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:52]Read from MH i2c: E2 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 0E 00 [14:32:52]MH_I2C_Read... [14:32:52]Read from MH i2c: E2 0E 00 BD 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3B [14:32:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:32:52]wFMCommunicate OK [14:32:52]SAM_PROTO_GetShiftState done [14:32:52]FM_GetShiftState done [14:32:52]opened in 1729556094 [14:32:52]opened+sec_in_day 1729642494 [14:32:52]quantity*price = 150076 [14:32:52]sum+1 = 150078 [14:32:52]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 355 22.10.2024 14:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188326 ФПД: 243514900935450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143253&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188326&fm=243514900935450&tin=02508201610067®Number=0000000000100030&sum=150000 [14:32:53]StoreToDocumentArchive [14:32:53]shift 461 fd 188326 [14:32:53]save to /storage/0461/doc_00188326 [14:32:53]save last doc name /storage/0461/doc_00188326 to /storage/kkm_last_doc_name [14:32:53]save OK [14:32:53]Clear old archive folders... [14:32:53]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:32:53]tlvbuf is 0145DF70 [14:32:53]SAM_PROTO_ClearQueue [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 09 00 00 [14:32:53]Write to MH i2c: E2 08 00 CA 0C 80 09 00 00 00 00 00 00 48 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 CA 0C 00 90 00 4A [14:32:53]RAPDU: 90 00 [14:32:53]wFMCommunicate OK [14:32:53]SAM_PROTO_ClearQueue done [14:32:53]KKMCreateOFDPacket [14:32:53]OFDProtocolAddRootSTLVToBuf [14:32:53]FM_MakeSignedData [14:32:53]FM_MakeSignedData [14:32:53]SAM_PROTO_SignData [14:32:53]wFMCommunicate request_size=4 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 0D 01 02 [14:32:53]Write to MH i2c: E2 08 00 CB 0C 80 0D 01 02 00 00 00 00 50 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:32:53]Read from MH i2c: E2 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 [14:32:53]MH_I2C_Read... [14:32:53]Read from MH i2c: E2 03 00 CB 0C 00 90 00 4B [14:32:53]RAPDU: 90 00 [14:32:53]wFMCommunicate OK [14:32:53]wFMCommunicate request_size=255 [14:32:53]MH_SAM_APDU [14:32:53]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 01 00 00 F4 03 04 00 95 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DF 02 [14:32:53]Write to MH i2c: E2 02 01 CC 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 01 00 00 F4 03 04 00 95 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DF 02 00 00 82 [14:32:53]Write i2c OK [14:32:53]MH_I2C_Read... [14:32:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:54]Read from MH i2c: E2 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 03 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 03 00 CC 0C 00 90 00 4C [14:32:54]RAPDU: 90 00 [14:32:54]wFMCommunicate OK [14:32:54]wFMCommunicate request_size=16 [14:32:54]MH_SAM_APDU [14:32:54]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 DD 79 BB 2A F3 1A [14:32:54]Write to MH i2c: E2 13 00 CD 0C 80 0D 02 02 0B 00 00 35 04 06 00 DD 79 BB 2A F3 1A 00 00 F0 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:32:54]Read from MH i2c: E2 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 03 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 03 00 CD 0C 00 90 00 4D [14:32:54]RAPDU: 90 00 [14:32:54]wFMCommunicate OK [14:32:54]wFMCommunicate request_size=4 [14:32:54]MH_SAM_APDU [14:32:54]CAPDU: 80 0D 03 02 [14:32:54]Write to MH i2c: E2 08 00 CE 0C 80 0D 03 02 00 00 00 00 55 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:32:54]Read from MH i2c: E2 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 0B 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 0B 00 CE 0C 00 68 05 65 6F 63 24 15 67 90 00 9A [14:32:54]RAPDU: 68 05 65 6F 63 24 15 67 90 00 [14:32:54]wFMCommunicate OK [14:32:54]SAM_PROTO_SignData done [14:32:54]FM_MakeSignedData done [14:32:54]CreateOFDProtocolMessage [14:32:54]wFMCommunicate request_size=4 [14:32:54]MH_SAM_APDU [14:32:54]CAPDU: 80 11 00 00 [14:32:54]Write to MH i2c: E2 08 00 CF 0C 80 11 00 00 00 00 00 00 55 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:54]Read from MH i2c: E2 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 17 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: E2 17 00 CF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [14:32:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:54]wFMCommunicate OK [14:32:54]CreateOFDProtocolMessage done [14:32:54]OFDSenderStorePacket 188326 [14:32:54]StoreOFDPacket docnum=188326 [14:32:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 91 C7 0D 01 EE 56 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 01 00 00 F4 03 04 00 95 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DF 02 00 35 04 06 00 DD 79 BB 2A F3 1A 68 05 65 6F 63 24 15 67 [14:32:54]CheckFolder [14:32:54]dirname=/storage/ofd_packets [14:32:54]CheckFolder done [14:32:54]ProducePacketName [14:32:54]name=ofd_packets/00188326 [14:32:54]NVStorageSaveData ofd_packets/00188326 [14:32:54]File name is /storage/ofd_packets/00188326 [14:32:54]Write 307 bytes [14:32:54]NVStorageSaveData done [14:32:54]OFDSenderStorePacket done [14:32:54]KKMCreateOFDPacket done [14:32:54]NVStorageSaveData kkm_last_timestamp [14:32:54]File name is /storage/kkm_last_timestamp [14:32:54]Write 4 bytes [14:32:54]NVStorageSaveData done [14:32:54]ExternCall_PrintAddStr [14:32:54]wPrintStart [14:32:54]Write to MH i2c: 01 00 00 D0 0C DC [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 D0 0C 00 00 00 00 00 FF 0F F1 [14:32:54]RasterBufferAndPrint [14:32:54]line Счет N : (1)210380 [14:32:54]line ИНН: 02508201610067 [14:32:54]line Контрольно-Кассовый Чек [14:32:54]line ПРОДАЖА [14:32:54]line ТРК (МРК, ГНК) : 41 [14:32:54]line Товар: 2710194210 [14:32:54]line D-ENERGY ДТ-К-5 [14:32:54]line 19.440 * 77.20 [14:32:54]line = 1500.77 [14:32:54]line НДС 12% НСП 1% [14:32:54]line > о реализуемом товаре [14:32:54]line ОКРУГЛЕНИЕ: -0.77 [14:32:54]line ИТОГО: 1500.00 [14:32:54]line Внесено: 1500.00 [14:32:54]line СДАЧА: 0.00 [14:32:54]line НСП 1% : 13.28 [14:32:54]line НДС 12% : 159.37 [14:32:54]line Наличными: 1500.00 [14:32:54]line Безнал.: 0.00 [14:32:54]line Место: АЗС № 86 "Партнер Нефть" [14:32:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:32:54]line СНО: Общий режим [14:32:54]line Чек 355 22.10.2024 14:32 [14:32:54]line Смена: 461 ФФД: 1.0 [14:32:54]line ЗНМ: 0300000155 [14:32:54]line РНМ: 0000000000100030 [14:32:54]line Версия ККМ: 001 [14:32:54]line ФМ: 0000000000965340 [14:32:54]line ФД: 188326 [14:32:54]line ФПД: 243514900935450 [14:32:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143253&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188326&fm=243514900935450&tin=02508201610067®Number=0000000000100030&sum=150000 [14:32:54]written 0, free lines is 4095 [14:32:54]OFD Sender: Processing packet 188326 [packets to send 1062, broken 1061] [14:32:54]ProducePacketName [14:32:54]name=ofd_packets/00188326 [14:32:54]OFD Sender: To server: pG, [14:32:54]CommunicateWithHost lk.salyk.kg:30040 [14:32:54]ConnectInit lk.salyk.kg [14:32:54]Connected sock=10 [14:32:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 91 C7 0D 01 EE 56 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 63 01 00 00 F4 03 04 00 95 B7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DF 02 00 35 04 06 00 DD 79 BB 2A F3 1A 68 05 65 6F 63 24 15 67 [14:32:54]Write to MH i2c: 01 00 00 FB 0C 07 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: 01 07 00 FB 0C 00 00 00 00 00 6E 0C 88 [14:32:54]RasterBufferAndPrint [14:32:54]line [14:32:54]line [14:32:54]line [14:32:54]line [14:32:54]line [14:32:54]written 0, free lines is 3185 [14:32:54]MH_Cut [14:32:54]Write to MH i2c: D1 01 00 02 0D 01 E1 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: D1 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: D1 01 00 [14:32:54]MH_I2C_Read... [14:32:54]Read from MH i2c: D1 01 00 02 0D 00 E0 [14:32:54]Write to MH i2c: 01 00 00 03 0D 10 [14:32:54]Write i2c OK [14:32:54]MH_I2C_Read... [14:32:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE AA 47 00 A0 DB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A6 DF 02 00 F4 03 04 00 82 61 17 67 B6 04 01 00 00 41 29 BC DE E1 E0 65 9A [14:32:54]CommunicateWithHost err = 0 [14:32:54]CheckOFDResponse [14:32:54]1017 (14) - 77093643461234 [14:32:54]1041 (16) - 0000000000965340 [14:32:54]1040 (4) - 188326 [14:32:54]1012 (4) - 22.10.2024 08:25 [14:32:54]1206 (1) - 0 [14:32:54]OFD Sender: Remove packet 188326 [14:32:54]ProducePacketName [14:32:54]name=ofd_packets/00188326 [14:32:54]NVStorageDeleteData [14:32:55]OFD Sender: No OFD packet to send [14:32:55]*** Cut start [14:32:55]*** Partial cut [14:32:55]*** CUTSNS_PIN = 1 [14:32:55]*** CUTSNS_PIN = 0 [14:32:56]*** Brake cut motor [14:32:56]Read from MH i2c: 01 [14:32:56]MH_I2C_Read... [14:32:56]*** Stop cut motor [14:32:56]*** Cut end [14:32:56]Read from MH i2c: 01 07 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: 01 07 00 03 0D 00 00 00 00 00 FF 0F 25 [14:32:56]process_action close_receipt done [14:32:56]requested_data is exist [14:32:56]produce_requested_data [14:32:56]requested_item fm.sn is exist - process it [14:32:56]wFMCommunicate request_size=4 [14:32:56]MH_SAM_APDU [14:32:56]CAPDU: 80 11 00 00 [14:32:56]Write to MH i2c: E2 08 00 04 0D 80 11 00 00 00 00 00 00 8B [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:32:56]Read from MH i2c: E2 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 17 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 17 00 04 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [14:32:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:32:56]wFMCommunicate OK [14:32:56]requested_item fd.num is exist - process it [14:32:56]SAM_PROTO_GetFieldsCounters [14:32:56]wFMCommunicate request_size=4 [14:32:56]MH_SAM_APDU [14:32:56]CAPDU: 80 13 00 00 [14:32:56]Write to MH i2c: E2 08 00 05 0D 80 13 00 00 00 00 00 00 8E [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:32:56]Read from MH i2c: E2 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 62 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 62 00 05 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 16 [14:32:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 63 01 00 00 5E 04 04 00 63 01 00 00 57 04 04 00 64 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:32:56]wFMCommunicate OK [14:32:56]SAM_PROTO_GetFieldsCounters done [14:32:56]requested_item shift.num is exist - process it [14:32:56]requested_item shift.opened is exist - process it [14:32:56]req_shift_opened [14:32:56]FM_GetShiftState [14:32:56]SAM_PROTO_GetShiftState [14:32:56]wFMCommunicate request_size=4 [14:32:56]MH_SAM_APDU [14:32:56]CAPDU: 80 13 01 00 [14:32:56]Write to MH i2c: E2 08 00 06 0D 80 13 01 00 00 00 00 00 90 [14:32:56]Write i2c OK [14:32:56]MH_I2C_Read... [14:32:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:32:56]Read from MH i2c: E2 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 0E 00 [14:32:56]MH_I2C_Read... [14:32:56]Read from MH i2c: E2 0E 00 06 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [14:32:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:32:56]wFMCommunicate OK [14:32:56]SAM_PROTO_GetShiftState done [14:32:56]FM_GetShiftState done [14:32:56]req_shift_opened done [14:32:56]requested_item shift.open_date is exist - process it [14:32:56]req_shift_open_date [14:32:56]req_shift_open_date done [14:32:56]produce_requested_data done [14:32:56]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188326,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:32:56]process_action_free close_receipt [14:32:56]json_value_free [14:32:56]json_value_free done [14:32:56]process_json_proto returns [14:32:56]Send response to host [14:32:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188326,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:32:56]free response buf [14:32:56]execute_script done [14:32:56]execute_script returns [14:32:56]free content buf [14:32:56]Sock 9.Close socket [14:32:56]Sock 9.Thread stoped [14:33:00]OFD Sender: No OFD packet to send [14:33:05]OFD Sender: No OFD packet to send [14:33:10]OFD Sender: No OFD packet to send [14:33:15]OFD Sender: No OFD packet to send [14:33:20]OFD Sender: No OFD packet to send [14:33:25]OFD Sender: No OFD packet to send [14:33:30]OFD Sender: No OFD packet to send [14:33:35]OFD Sender: No OFD packet to send [14:33:40]OFD Sender: No OFD packet to send [14:33:45]OFD Sender: No OFD packet to send [14:33:50]OFD Sender: No OFD packet to send [14:33:55]OFD Sender: No OFD packet to send [14:34:00]OFD Sender: No OFD packet to send [14:34:05]OFD Sender: No OFD packet to send [14:34:10]OFD Sender: No OFD packet to send [14:34:15]OFD Sender: No OFD packet to send [14:34:20]OFD Sender: No OFD packet to send [14:34:25]OFD Sender: No OFD packet to send [14:34:30]OFD Sender: No OFD packet to send [14:34:35]OFD Sender: No OFD packet to send [14:34:40]OFD Sender: No OFD packet to send [14:34:45]OFD Sender: No OFD packet to send [14:34:50]OFD Sender: No OFD packet to send [14:34:55]OFD Sender: No OFD packet to send [14:35:00]OFD Sender: No OFD packet to send [14:35:05]OFD Sender: No OFD packet to send [14:35:10]OFD Sender: No OFD packet to send [14:35:16]OFD Sender: No OFD packet to send [14:35:21]OFD Sender: No OFD packet to send [14:35:26]OFD Sender: No OFD packet to send [14:35:31]OFD Sender: No OFD packet to send [14:35:36]OFD Sender: No OFD packet to send [14:35:41]OFD Sender: No OFD packet to send [14:35:46]OFD Sender: No OFD packet to send [14:35:51]OFD Sender: No OFD packet to send [14:35:56]OFD Sender: No OFD packet to send [14:36:01]OFD Sender: No OFD packet to send [14:36:06]OFD Sender: No OFD packet to send [14:36:11]OFD Sender: No OFD packet to send [14:36:16]OFD Sender: No OFD packet to send [14:36:21]OFD Sender: No OFD packet to send [14:36:26]OFD Sender: No OFD packet to send [14:36:31]OFD Sender: No OFD packet to send [14:36:36]OFD Sender: No OFD packet to send [14:36:41]OFD Sender: No OFD packet to send [14:36:46]OFD Sender: No OFD packet to send [14:36:51]OFD Sender: No OFD packet to send [14:36:56]OFD Sender: No OFD packet to send [14:36:56]accept exits with 7 [14:36:56]New connection [14:36:56]New thread 3067305316 created [14:36:56]Thread 3067161956 joined [14:36:56]Waiting for new connection... [14:36:56] Sock 7.Parse request [14:36:56]Sock 7.Check first char [14:36:56]Sock 7.First char is OK [14:36:56]request: POST /json_proto HTTP/1.0 [14:36:56]Method: POST [14:36:56]URL: /json_proto [14:36:56]Method is POST - this is cgi request [14:36:56]url: /json_proto [14:36:56]query_string will be loaded in cgi processing [14:36:56]execute_cgi json_proto POST (null) [14:36:56]execute_cgi path=json_proto method=POST [14:36:56]POST find Content-Length [14:36:56]Host: 172.17.42.131:8080 [14:36:56]Content-Length: 677 [14:36:56]Content-Type: application/json [14:36:56] [14:36:56]POST finish read [14:36:56]Found Content-Length = 677 [14:36:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:56]execute_script... [14:36: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)210384", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:36:56]POST & json_proto [14:36:56]process_json_proto [14:36:56]json parsed OK: [14:36:56]protocol is kg_v1.0 [14:36:56]action value=close_receipt [14:36:56]process_action close_receipt [14:36:56]cmd_close_receipt [14:36:56]MH_GetDate [14:36:56]Write to MH i2c: F0 00 00 07 0D 03 [14:36:56]Write i2c OK [14:36:56]MH_I2C_Read... [14:36:56]Read from MH i2c: F0 [14:36:56]MH_I2C_Read... [14:36:56]Read from MH i2c: F0 09 00 [14:36:56]MH_I2C_Read... [14:36:56]Read from MH i2c: F0 09 00 07 0D 00 89 B8 17 67 A0 18 CA 66 B3 [14:36:56]GetLastDocTimeStamp 1729607573 [14:36:56]current date 1729607817 [14:36:56]FM_GetShiftState [14:36:56]SAM_PROTO_GetShiftState [14:36:56]wFMCommunicate request_size=4 [14:36:56]MH_SAM_APDU [14:36:56]CAPDU: 80 13 01 00 [14:36:56]Write to MH i2c: E2 08 00 08 0D 80 13 01 00 00 00 00 00 92 [14:36:56]Write i2c OK [14:36:56]MH_I2C_Read... [14:36:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:36:56]Read from MH i2c: E2 [14:36:56]MH_I2C_Read... [14:36:56]Read from MH i2c: E2 0E 00 [14:36:56]MH_I2C_Read... [14:36:56]Read from MH i2c: E2 0E 00 08 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 87 [14:36:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:36:56]wFMCommunicate OK [14:36:56]SAM_PROTO_GetShiftState done [14:36:56]FM_GetShiftState done [14:36:56]opened in 1729556094 [14:36:56]opened+sec_in_day 1729642494 [14:36:56]quantity*price = 30038 [14:36:56]sum+1 = 30039 [14:36:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 356 22.10.2024 14:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188327 ФПД: 68852951457473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188327&fm=68852951457473&tin=02508201610067®Number=0000000000100030&sum=30000 [14:36:57]StoreToDocumentArchive [14:36:57]shift 461 fd 188327 [14:36:57]save to /storage/0461/doc_00188327 [14:36:57]save last doc name /storage/0461/doc_00188327 to /storage/kkm_last_doc_name [14:36:57]save OK [14:36:57]Clear old archive folders... [14:36:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:36:57]tlvbuf is 01442440 [14:36:57]SAM_PROTO_ClearQueue [14:36:57]wFMCommunicate request_size=4 [14:36:57]MH_SAM_APDU [14:36:57]CAPDU: 80 09 00 00 [14:36:57]Write to MH i2c: E2 08 00 15 0D 80 09 00 00 00 00 00 00 94 [14:36:57]Write i2c OK [14:36:57]MH_I2C_Read... [14:36:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:36:57]Read from MH i2c: E2 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 03 00 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 03 00 15 0D 00 90 00 96 [14:36:57]RAPDU: 90 00 [14:36:57]wFMCommunicate OK [14:36:57]SAM_PROTO_ClearQueue done [14:36:57]KKMCreateOFDPacket [14:36:57]OFDProtocolAddRootSTLVToBuf [14:36:57]FM_MakeSignedData [14:36:57]FM_MakeSignedData [14:36:57]SAM_PROTO_SignData [14:36:57]wFMCommunicate request_size=4 [14:36:57]MH_SAM_APDU [14:36:57]CAPDU: 80 0D 01 02 [14:36:57]Write to MH i2c: E2 08 00 16 0D 80 0D 01 02 00 00 00 00 9C [14:36:57]Write i2c OK [14:36:57]MH_I2C_Read... [14:36:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:36:57]Read from MH i2c: E2 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 03 00 [14:36:57]MH_I2C_Read... [14:36:57]Read from MH i2c: E2 03 00 16 0D 00 90 00 97 [14:36:57]RAPDU: 90 00 [14:36:57]wFMCommunicate OK [14:36:57]wFMCommunicate request_size=255 [14:36:57]MH_SAM_APDU [14:36: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 B8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DF 02 00 35 04 06 00 3E [14:36:57]Write to MH i2c: E2 02 01 17 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 B8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DF 02 00 35 04 06 00 3E 00 00 BB [14:36:57]Write i2c OK [14:36:57]MH_I2C_Read... [14:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:58]Read from MH i2c: E2 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 03 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 03 00 17 0D 00 90 00 98 [14:36:58]RAPDU: 90 00 [14:36:58]wFMCommunicate OK [14:36:58]wFMCommunicate request_size=10 [14:36:58]MH_SAM_APDU [14:36:58]CAPDU: 80 0D 02 02 05 9F 13 B6 9E C1 [14:36:58]Write to MH i2c: E2 0D 00 18 0D 80 0D 02 02 05 00 9F 13 B6 9E C1 00 00 70 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:36:58]Read from MH i2c: E2 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 03 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 03 00 18 0D 00 90 00 99 [14:36:58]RAPDU: 90 00 [14:36:58]wFMCommunicate OK [14:36:58]wFMCommunicate request_size=4 [14:36:58]MH_SAM_APDU [14:36:58]CAPDU: 80 0D 03 02 [14:36:58]Write to MH i2c: E2 08 00 19 0D 80 0D 03 02 00 00 00 00 A1 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:36:58]Read from MH i2c: E2 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 0B 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 0B 00 19 0D 00 3C 57 93 B5 81 12 1E 9F 90 00 CD [14:36:58]RAPDU: 3C 57 93 B5 81 12 1E 9F 90 00 [14:36:58]wFMCommunicate OK [14:36:58]SAM_PROTO_SignData done [14:36:58]FM_MakeSignedData done [14:36:58]CreateOFDProtocolMessage [14:36:58]wFMCommunicate request_size=4 [14:36:58]MH_SAM_APDU [14:36:58]CAPDU: 80 11 00 00 [14:36:58]Write to MH i2c: E2 08 00 1A 0D 80 11 00 00 00 00 00 00 A1 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:36:58]Read from MH i2c: E2 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 17 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: E2 17 00 1A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [14:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:36:58]wFMCommunicate OK [14:36:58]CreateOFDProtocolMessage done [14:36:58]OFDSenderStorePacket 188327 [14:36:58]StoreOFDPacket docnum=188327 [14:36:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 14 07 01 4F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 B8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DF 02 00 35 04 06 00 3E 9F 13 B6 9E C1 3C 57 93 B5 81 12 1E 9F [14:36:58]CheckFolder [14:36:58]dirname=/storage/ofd_packets [14:36:58]CheckFolder done [14:36:58]ProducePacketName [14:36:58]name=ofd_packets/00188327 [14:36:58]NVStorageSaveData ofd_packets/00188327 [14:36:58]File name is /storage/ofd_packets/00188327 [14:36:58]Write 301 bytes [14:36:58]NVStorageSaveData done [14:36:58]OFDSenderStorePacket done [14:36:58]KKMCreateOFDPacket done [14:36:58]NVStorageSaveData kkm_last_timestamp [14:36:58]File name is /storage/kkm_last_timestamp [14:36:58]Write 4 bytes [14:36:58]NVStorageSaveData done [14:36:58]ExternCall_PrintAddStr [14:36:58]wPrintStart [14:36:58]Write to MH i2c: 01 00 00 1B 0D 28 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: 01 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: 01 07 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: 01 07 00 1B 0D 00 00 00 00 00 FF 0F 3D [14:36:58]RasterBufferAndPrint [14:36:58]line Счет N : (1)210384 [14:36:58]line ИНН: 02508201610067 [14:36:58]line Контрольно-Кассовый Чек [14:36:58]line ПРОДАЖА [14:36:58]line ТРК (МРК, ГНК) : 22 [14:36:58]line Товар: 2710124130 [14:36:58]line Аи-92-К-3 [14:36:58]line 4.490 * 66.90 [14:36:58]line = 300.38 [14:36:58]line НДС 12% НСП 1% [14:36:58]line > о реализуемом товаре [14:36:58]line ОКРУГЛЕНИЕ: -0.38 [14:36:58]line ИТОГО: 300.00 [14:36:58]line Внесено: 300.00 [14:36:58]line СДАЧА: 0.00 [14:36:58]line НСП 1% : 2.66 [14:36:58]line НДС 12% : 31.90 [14:36:58]line Наличными: 300.00 [14:36:58]line Безнал.: 0.00 [14:36:58]line Место: АЗС № 86 "Партнер Нефть" [14:36:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:36:58]line СНО: Общий режим [14:36:58]line Чек 356 22.10.2024 14:36 [14:36:58]line Смена: 461 ФФД: 1.0 [14:36:58]line ЗНМ: 0300000155 [14:36:58]line РНМ: 0000000000100030 [14:36:58]line Версия ККМ: 001 [14:36:58]line ФМ: 0000000000965340 [14:36:58]line ФД: 188327 [14:36:58]line ФПД: 68852951457473 [14:36:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188327&fm=68852951457473&tin=02508201610067®Number=0000000000100030&sum=30000 [14:36:58]written 0, free lines is 4095 [14:36:58]OFD Sender: Processing packet 188327 [packets to send 1062, broken 1061] [14:36:58]ProducePacketName [14:36:58]name=ofd_packets/00188327 [14:36:58]OFD Sender: To server: pG, [14:36:58]CommunicateWithHost lk.salyk.kg:30040 [14:36:58]ConnectInit lk.salyk.kg [14:36:58]Connected sock=10 [14:36:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C4 14 07 01 4F AA 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 64 01 00 00 F4 03 04 00 89 B8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A7 DF 02 00 35 04 06 00 3E 9F 13 B6 9E C1 3C 57 93 B5 81 12 1E 9F [14:36:58]Write to MH i2c: 01 00 00 46 0D 53 [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: 01 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: 01 07 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: 01 07 00 46 0D 00 00 00 00 00 65 0C CB [14:36:58]RasterBufferAndPrint [14:36:58]line [14:36:58]line [14:36:58]line [14:36:58]line [14:36:58]line [14:36:58]written 0, free lines is 3176 [14:36:58]MH_Cut [14:36:58]Write to MH i2c: D1 01 00 4D 0D 01 2C [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: D1 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: D1 01 00 [14:36:58]MH_I2C_Read... [14:36:58]Read from MH i2c: D1 01 00 4D 0D 00 2B [14:36:58]Write to MH i2c: 01 00 00 4E 0D 5B [14:36:58]Write i2c OK [14:36:58]MH_I2C_Read... [14:36:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 D5 47 00 0E 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 39 36 35 33 34 30 10 04 04 00 A7 DF 02 00 F4 03 04 00 76 62 17 67 B6 04 01 00 00 65 49 39 27 57 96 DA 62 [14:36:59]CommunicateWithHost err = 0 [14:36:59]CheckOFDResponse [14:36:59]1017 (14) - 77093643461234 [14:36:59]1041 (16) - 0000000000965340 [14:36:59]1040 (4) - 188327 [14:36:59]1012 (4) - 22.10.2024 08:29 [14:36:59]1206 (1) - 0 [14:36:59]OFD Sender: Remove packet 188327 [14:36:59]ProducePacketName [14:36:59]name=ofd_packets/00188327 [14:36:59]NVStorageDeleteData [14:36:59]OFD Sender: No OFD packet to send [14:37:00]*** Cut start [14:37:00]*** Partial cut [14:37:00]*** CUTSNS_PIN = 1 [14:37:00]*** CUTSNS_PIN = 0 [14:37:00]*** Brake cut motor [14:37:00]Read from MH i2c: 01 [14:37:00]MH_I2C_Read... [14:37:00]*** Stop cut motor [14:37:00]*** Cut end [14:37:00]Read from MH i2c: 01 07 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: 01 07 00 4E 0D 00 00 00 00 00 FF 0F 70 [14:37:00]process_action close_receipt done [14:37:00]requested_data is exist [14:37:00]produce_requested_data [14:37:00]requested_item fm.sn is exist - process it [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 11 00 00 [14:37:00]Write to MH i2c: E2 08 00 4F 0D 80 11 00 00 00 00 00 00 D6 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 17 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 17 00 4F 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [14:37:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:37:00]wFMCommunicate OK [14:37:00]requested_item fd.num is exist - process it [14:37:00]SAM_PROTO_GetFieldsCounters [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 13 00 00 [14:37:00]Write to MH i2c: E2 08 00 50 0D 80 13 00 00 00 00 00 00 D9 [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 62 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 62 00 50 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 65 [14:37:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 64 01 00 00 5E 04 04 00 64 01 00 00 57 04 04 00 65 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:37:00]wFMCommunicate OK [14:37:00]SAM_PROTO_GetFieldsCounters done [14:37:00]requested_item shift.num is exist - process it [14:37:00]requested_item shift.opened is exist - process it [14:37:00]req_shift_opened [14:37:00]FM_GetShiftState [14:37:00]SAM_PROTO_GetShiftState [14:37:00]wFMCommunicate request_size=4 [14:37:00]MH_SAM_APDU [14:37:00]CAPDU: 80 13 01 00 [14:37:00]Write to MH i2c: E2 08 00 51 0D 80 13 01 00 00 00 00 00 DB [14:37:00]Write i2c OK [14:37:00]MH_I2C_Read... [14:37:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:37:00]Read from MH i2c: E2 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 0E 00 [14:37:00]MH_I2C_Read... [14:37:00]Read from MH i2c: E2 0E 00 51 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [14:37:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:37:00]wFMCommunicate OK [14:37:00]SAM_PROTO_GetShiftState done [14:37:00]FM_GetShiftState done [14:37:00]req_shift_opened done [14:37:00]requested_item shift.open_date is exist - process it [14:37:00]req_shift_open_date [14:37:00]req_shift_open_date done [14:37:00]produce_requested_data done [14:37:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188327,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:37:00]process_action_free close_receipt [14:37:00]json_value_free [14:37:00]json_value_free done [14:37:00]process_json_proto returns [14:37:00]Send response to host [14:37:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188327,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:37:00]free response buf [14:37:00]execute_script done [14:37:00]execute_script returns [14:37:00]free content buf [14:37:00]Sock 7.Close socket [14:37:00]Sock 7.Thread stoped [14:37:04]OFD Sender: No OFD packet to send [14:37:09]OFD Sender: No OFD packet to send [14:37:14]OFD Sender: No OFD packet to send [14:37:19]OFD Sender: No OFD packet to send [14:37:24]OFD Sender: No OFD packet to send [14:37:29]OFD Sender: No OFD packet to send [14:37:34]OFD Sender: No OFD packet to send [14:37:39]OFD Sender: No OFD packet to send [14:37:44]OFD Sender: No OFD packet to send [14:37:49]OFD Sender: No OFD packet to send [14:37:54]OFD Sender: No OFD packet to send [14:37:59]OFD Sender: No OFD packet to send [14:38:04]OFD Sender: No OFD packet to send [14:38:09]OFD Sender: No OFD packet to send [14:38:14]OFD Sender: No OFD packet to send [14:38:19]OFD Sender: No OFD packet to send [14:38:24]OFD Sender: No OFD packet to send [14:38:29]OFD Sender: No OFD packet to send [14:38:34]OFD Sender: No OFD packet to send [14:38:39]OFD Sender: No OFD packet to send [14:38:45]OFD Sender: No OFD packet to send [14:38:50]OFD Sender: No OFD packet to send [14:38:55]OFD Sender: No OFD packet to send [14:39:00]OFD Sender: No OFD packet to send [14:39:05]OFD Sender: No OFD packet to send [14:39:10]OFD Sender: No OFD packet to send [14:39:15]OFD Sender: No OFD packet to send [14:39:20]OFD Sender: No OFD packet to send [14:39:25]OFD Sender: No OFD packet to send [14:39:30]OFD Sender: No OFD packet to send [14:39:35]OFD Sender: No OFD packet to send [14:39:40]OFD Sender: No OFD packet to send [14:39:45]OFD Sender: No OFD packet to send [14:39:45]accept exits with 9 [14:39:45]New connection [14:39:45]New thread 3067161956 created [14:39:45]Thread 3067305316 joined [14:39:45]Waiting for new connection... [14:39:45] Sock 9.Parse request [14:39:45]Sock 9.Check first char [14:39:45]Sock 9.First char is OK [14:39:45]request: POST /json_proto HTTP/1.0 [14:39:45]Method: POST [14:39:45]URL: /json_proto [14:39:45]Method is POST - this is cgi request [14:39:45]url: /json_proto [14:39:45]query_string will be loaded in cgi processing [14:39:45]execute_cgi json_proto POST (null) [14:39:45]execute_cgi path=json_proto method=POST [14:39:45]POST find Content-Length [14:39:45]Host: 172.17.42.131:8080 [14:39:45]Content-Length: 688 [14:39:45]Content-Type: application/json [14:39:45] [14:39:45]POST finish read [14:39:45]Found Content-Length = 688 [14:39:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:45]execute_script... [14:39: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)210383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:45]POST & json_proto [14:39:45]process_json_proto [14:39:45]json parsed OK: [14:39:45]protocol is kg_v1.0 [14:39:45]action value=close_receipt [14:39:45]process_action close_receipt [14:39:45]cmd_close_receipt [14:39:45]MH_GetDate [14:39:45]Write to MH i2c: F0 00 00 52 0D 4E [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: F0 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: F0 09 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: F0 09 00 52 0D 00 33 B9 17 67 A0 18 CA 66 A9 [14:39:45]GetLastDocTimeStamp 1729607817 [14:39:45]current date 1729607987 [14:39:45]FM_GetShiftState [14:39:45]SAM_PROTO_GetShiftState [14:39:45]wFMCommunicate request_size=4 [14:39:45]MH_SAM_APDU [14:39:45]CAPDU: 80 13 01 00 [14:39:45]Write to MH i2c: E2 08 00 53 0D 80 13 01 00 00 00 00 00 DD [14:39:45]Write i2c OK [14:39:45]MH_I2C_Read... [14:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:45]Read from MH i2c: E2 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 0E 00 [14:39:45]MH_I2C_Read... [14:39:45]Read from MH i2c: E2 0E 00 53 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D2 [14:39:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:39:45]wFMCommunicate OK [14:39:45]SAM_PROTO_GetShiftState done [14:39:45]FM_GetShiftState done [14:39:45]opened in 1729556094 [14:39:45]opened+sec_in_day 1729642494 [14:39:45]quantity*price = 300076 [14:39:45]sum+1 = 300077 [14:39:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 357 22.10.2024 14:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188328 ФПД: 269659587994080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143947&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188328&fm=269659587994080&tin=02508201610067®Number=0000000000100030&sum=300000 [14:39:47]StoreToDocumentArchive [14:39:47]shift 461 fd 188328 [14:39:47]save to /storage/0461/doc_00188328 [14:39:47]save last doc name /storage/0461/doc_00188328 to /storage/kkm_last_doc_name [14:39:47]save OK [14:39:47]Clear old archive folders... [14:39:47]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:39:47]tlvbuf is 0145EBF0 [14:39:47]SAM_PROTO_ClearQueue [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 09 00 00 [14:39:47]Write to MH i2c: E2 08 00 60 0D 80 09 00 00 00 00 00 00 DF [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 60 0D 00 90 00 E1 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_ClearQueue done [14:39:47]KKMCreateOFDPacket [14:39:47]OFDProtocolAddRootSTLVToBuf [14:39:47]FM_MakeSignedData [14:39:47]FM_MakeSignedData [14:39:47]SAM_PROTO_SignData [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 01 02 [14:39:47]Write to MH i2c: E2 08 00 61 0D 80 0D 01 02 00 00 00 00 E7 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 61 0D 00 90 00 E2 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]wFMCommunicate request_size=255 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 33 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DF 02 [14:39:47]Write to MH i2c: E2 02 01 62 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 33 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DF 02 00 00 4D [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 62 0D 00 90 00 E3 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]wFMCommunicate request_size=16 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F5 41 03 F3 E1 E0 [14:39:47]Write to MH i2c: E2 13 00 63 0D 80 0D 02 02 0B 00 00 35 04 06 00 F5 41 03 F3 E1 E0 00 00 2C [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 03 00 63 0D 00 90 00 E4 [14:39:47]RAPDU: 90 00 [14:39:47]wFMCommunicate OK [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 0D 03 02 [14:39:47]Write to MH i2c: E2 08 00 64 0D 80 0D 03 02 00 00 00 00 EC [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0B 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 0B 00 64 0D 00 55 E8 14 09 76 1F AF 4F 90 00 DA [14:39:47]RAPDU: 55 E8 14 09 76 1F AF 4F 90 00 [14:39:47]wFMCommunicate OK [14:39:47]SAM_PROTO_SignData done [14:39:47]FM_MakeSignedData done [14:39:47]CreateOFDProtocolMessage [14:39:47]wFMCommunicate request_size=4 [14:39:47]MH_SAM_APDU [14:39:47]CAPDU: 80 11 00 00 [14:39:47]Write to MH i2c: E2 08 00 65 0D 80 11 00 00 00 00 00 00 EC [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:47]Read from MH i2c: E2 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 17 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: E2 17 00 65 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [14:39:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:39:47]wFMCommunicate OK [14:39:47]CreateOFDProtocolMessage done [14:39:47]OFDSenderStorePacket 188328 [14:39:47]StoreOFDPacket docnum=188328 [14:39:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4D EB 0D 01 08 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 33 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DF 02 00 35 04 06 00 F5 41 03 F3 E1 E0 55 E8 14 09 76 1F AF 4F [14:39:47]CheckFolder [14:39:47]dirname=/storage/ofd_packets [14:39:47]CheckFolder done [14:39:47]ProducePacketName [14:39:47]name=ofd_packets/00188328 [14:39:47]NVStorageSaveData ofd_packets/00188328 [14:39:47]File name is /storage/ofd_packets/00188328 [14:39:47]Write 307 bytes [14:39:47]NVStorageSaveData done [14:39:47]OFDSenderStorePacket done [14:39:47]KKMCreateOFDPacket done [14:39:47]NVStorageSaveData kkm_last_timestamp [14:39:47]File name is /storage/kkm_last_timestamp [14:39:47]Write 4 bytes [14:39:47]NVStorageSaveData done [14:39:47]ExternCall_PrintAddStr [14:39:47]wPrintStart [14:39:47]Write to MH i2c: 01 00 00 66 0D 73 [14:39:47]Write i2c OK [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 07 00 [14:39:47]MH_I2C_Read... [14:39:47]Read from MH i2c: 01 07 00 66 0D 00 00 00 00 00 FF 0F 88 [14:39:47]RasterBufferAndPrint [14:39:47]line Счет N : (1)210383 [14:39:47]line ИНН: 02508201610067 [14:39:47]line Контрольно-Кассовый Чек [14:39:47]line ПРОДАЖА [14:39:47]line ТРК (МРК, ГНК) : 41 [14:39:47]line Товар: 2710194210 [14:39:47]line D-ENERGY ДТ-К-5 [14:39:47]line 38.870 * 77.20 [14:39:47]line = 3000.76 [14:39:47]line НДС 12% НСП 1% [14:39:47]line > о реализуемом товаре [14:39:47]line ОКРУГЛЕНИЕ: -0.76 [14:39:47]line ИТОГО: 3000.00 [14:39:47]line Внесено: 3000.00 [14:39:47]line СДАЧА: 0.00 [14:39:47]line НСП 1% : 26.55 [14:39:47]line НДС 12% : 318.66 [14:39:47]line Наличными: 3000.00 [14:39:47]line Безнал.: 0.00 [14:39:47]line Место: АЗС № 86 "Партнер Нефть" [14:39:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:39:47]line СНО: Общий режим [14:39:47]line Чек 357 22.10.2024 14:39 [14:39:47]line Смена: 461 ФФД: 1.0 [14:39:47]line ЗНМ: 0300000155 [14:39:47]line РНМ: 0000000000100030 [14:39:47]line Версия ККМ: 001 [14:39:47]line ФМ: 0000000000965340 [14:39:47]line ФД: 188328 [14:39:47]line ФПД: 269659587994080 [14:39:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143947&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188328&fm=269659587994080&tin=02508201610067®Number=0000000000100030&sum=300000 [14:39:47]written 0, free lines is 4095 [14:39:47]OFD Sender: Processing packet 188328 [packets to send 1062, broken 1061] [14:39:47]ProducePacketName [14:39:47]name=ofd_packets/00188328 [14:39:47]OFD Sender: To server: pG, [14:39:47]CommunicateWithHost lk.salyk.kg:30040 [14:39:47]ConnectInit lk.salyk.kg [14:39:47]Connected sock=10 [14:39:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 4D EB 0D 01 08 F0 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 65 01 00 00 F4 03 04 00 33 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A8 DF 02 00 35 04 06 00 F5 41 03 F3 E1 E0 55 E8 14 09 76 1F AF 4F [14:39:48]Write to MH i2c: 01 00 00 91 0D 9E [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: 01 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: 01 07 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: 01 07 00 91 0D 00 00 00 00 00 6B 0C 1C [14:39:48]RasterBufferAndPrint [14:39:48]line [14:39:48]line [14:39:48]line [14:39:48]line [14:39:48]line [14:39:48]written 0, free lines is 3182 [14:39:48]MH_Cut [14:39:48]Write to MH i2c: D1 01 00 98 0D 01 77 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: D1 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: D1 01 00 [14:39:48]MH_I2C_Read... [14:39:48]Read from MH i2c: D1 01 00 98 0D 00 76 [14:39:48]Write to MH i2c: 01 00 00 99 0D A6 [14:39:48]Write i2c OK [14:39:48]MH_I2C_Read... [14:39:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 C6 47 00 C1 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 39 36 35 33 34 30 10 04 04 00 A8 DF 02 00 F4 03 04 00 20 63 17 67 B6 04 01 00 00 92 E6 72 E7 75 63 D5 0A [14:39:48]CommunicateWithHost err = 0 [14:39:48]CheckOFDResponse [14:39:48]1017 (14) - 77093643461234 [14:39:48]1041 (16) - 0000000000965340 [14:39:48]1040 (4) - 188328 [14:39:48]1012 (4) - 22.10.2024 08:32 [14:39:48]1206 (1) - 0 [14:39:48]OFD Sender: Remove packet 188328 [14:39:48]ProducePacketName [14:39:48]name=ofd_packets/00188328 [14:39:48]NVStorageDeleteData [14:39:48]OFD Sender: No OFD packet to send [14:39:49]*** Cut start [14:39:49]*** Partial cut [14:39:49]*** CUTSNS_PIN = 1 [14:39:49]*** CUTSNS_PIN = 0 [14:39:49]*** Brake cut motor [14:39:49]Read from MH i2c: 01 [14:39:49]MH_I2C_Read... [14:39:49]*** Stop cut motor [14:39:49]*** Cut end [14:39:49]Read from MH i2c: 01 07 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: 01 07 00 99 0D 00 00 00 00 00 FF 0F BB [14:39:49]process_action close_receipt done [14:39:49]requested_data is exist [14:39:49]produce_requested_data [14:39:49]requested_item fm.sn is exist - process it [14:39:49]wFMCommunicate request_size=4 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 11 00 00 [14:39:49]Write to MH i2c: E2 08 00 9A 0D 80 11 00 00 00 00 00 00 21 [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:49]Read from MH i2c: E2 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 17 00 [14:39:49]MH_I2C_Read... [14:39:49]Read from MH i2c: E2 17 00 9A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [14:39:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:39:49]wFMCommunicate OK [14:39:49]requested_item fd.num is exist - process it [14:39:49]SAM_PROTO_GetFieldsCounters [14:39:49]wFMCommunicate request_size=4 [14:39:49]MH_SAM_APDU [14:39:49]CAPDU: 80 13 00 00 [14:39:49]Write to MH i2c: E2 08 00 9B 0D 80 13 00 00 00 00 00 00 24 [14:39:49]Write i2c OK [14:39:49]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 62 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 62 00 9B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 B4 [14:39:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 65 01 00 00 5E 04 04 00 65 01 00 00 57 04 04 00 66 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:50]wFMCommunicate OK [14:39:50]SAM_PROTO_GetFieldsCounters done [14:39:50]requested_item shift.num is exist - process it [14:39:50]requested_item shift.opened is exist - process it [14:39:50]req_shift_opened [14:39:50]FM_GetShiftState [14:39:50]SAM_PROTO_GetShiftState [14:39:50]wFMCommunicate request_size=4 [14:39:50]MH_SAM_APDU [14:39:50]CAPDU: 80 13 01 00 [14:39:50]Write to MH i2c: E2 08 00 9C 0D 80 13 01 00 00 00 00 00 26 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 0E 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 0E 00 9C 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1B [14:39:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:39:50]wFMCommunicate OK [14:39:50]SAM_PROTO_GetShiftState done [14:39:50]FM_GetShiftState done [14:39:50]req_shift_opened done [14:39:50]requested_item shift.open_date is exist - process it [14:39:50]req_shift_open_date [14:39:50]req_shift_open_date done [14:39:50]produce_requested_data done [14:39:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188328,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:39:50]process_action_free close_receipt [14:39:50]json_value_free [14:39:50]json_value_free done [14:39:50]process_json_proto returns [14:39:50]Send response to host [14:39:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188328,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:39:50]free response buf [14:39:50]execute_script done [14:39:50]execute_script returns [14:39:50]free content buf [14:39:50]Sock 9.Close socket [14:39:50]Sock 9.Thread stoped [14:39:50]accept exits with 7 [14:39:50]New connection [14:39:50]New thread 3067305316 created [14:39:50]Thread 3067161956 joined [14:39:50]Waiting for new connection... [14:39:50] Sock 7.Parse request [14:39:50]Sock 7.Check first char [14:39:50]Sock 7.First char is OK [14:39:50]request: POST /json_proto HTTP/1.0 [14:39:50]Method: POST [14:39:50]URL: /json_proto [14:39:50]Method is POST - this is cgi request [14:39:50]url: /json_proto [14:39:50]query_string will be loaded in cgi processing [14:39:50]execute_cgi json_proto POST (null) [14:39:50]execute_cgi path=json_proto method=POST [14:39:50]POST find Content-Length [14:39:50]Host: 172.17.42.131:8080 [14:39:50]Content-Length: 775 [14:39:50]Content-Type: application/json [14:39:50] [14:39:50]POST finish read [14:39:50]Found Content-Length = 775 [14:39:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:50]execute_script... [14:39: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)210385", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.77 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:50]POST & json_proto [14:39:50]process_json_proto [14:39:50]json parsed OK: [14:39:50]protocol is kg_v1.0 [14:39:50]action value=close_receipt [14:39:50]process_action close_receipt [14:39:50]cmd_close_receipt [14:39:50]MH_GetDate [14:39:50]Write to MH i2c: F0 00 00 9D 0D 99 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: F0 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: F0 09 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: F0 09 00 9D 0D 00 37 B9 17 67 A0 18 CA 66 F8 [14:39:50]GetLastDocTimeStamp 1729607987 [14:39:50]current date 1729607991 [14:39:50]FM_GetShiftState [14:39:50]SAM_PROTO_GetShiftState [14:39:50]wFMCommunicate request_size=4 [14:39:50]MH_SAM_APDU [14:39:50]CAPDU: 80 13 01 00 [14:39:50]Write to MH i2c: E2 08 00 9E 0D 80 13 01 00 00 00 00 00 28 [14:39:50]Write i2c OK [14:39:50]MH_I2C_Read... [14:39:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:50]Read from MH i2c: E2 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 0E 00 [14:39:50]MH_I2C_Read... [14:39:50]Read from MH i2c: E2 0E 00 9E 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1D [14:39:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:39:50]wFMCommunicate OK [14:39:50]SAM_PROTO_GetShiftState done [14:39:50]FM_GetShiftState done [14:39:50]opened in 1729556094 [14:39:50]opened+sec_in_day 1729642494 [14:39:50]quantity*price = 150076 [14:39:50]sum+1 = 150078 [14:39:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.77 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 0.00 Безнал.: 1500.77 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 358 22.10.2024 14:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188329 ФПД: 98871885704892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188329&fm=98871885704892&tin=02508201610067®Number=0000000000100030&sum=150077 [14:39:51]StoreToDocumentArchive [14:39:51]shift 461 fd 188329 [14:39:51]save to /storage/0461/doc_00188329 [14:39:51]save last doc name /storage/0461/doc_00188329 to /storage/kkm_last_doc_name [14:39:51]save OK [14:39:51]Clear old archive folders... [14:39:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:39:51]tlvbuf is 014B2700 [14:39:51]SAM_PROTO_ClearQueue [14:39:51]wFMCommunicate request_size=4 [14:39:51]MH_SAM_APDU [14:39:51]CAPDU: 80 09 00 00 [14:39:51]Write to MH i2c: E2 08 00 AB 0D 80 09 00 00 00 00 00 00 2A [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:51]Read from MH i2c: E2 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 03 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 03 00 AB 0D 00 90 00 2C [14:39:51]RAPDU: 90 00 [14:39:51]wFMCommunicate OK [14:39:51]SAM_PROTO_ClearQueue done [14:39:51]KKMCreateOFDPacket [14:39:51]OFDProtocolAddRootSTLVToBuf [14:39:51]FM_MakeSignedData [14:39:51]FM_MakeSignedData [14:39:51]SAM_PROTO_SignData [14:39:51]wFMCommunicate request_size=4 [14:39:51]MH_SAM_APDU [14:39:51]CAPDU: 80 0D 01 02 [14:39:51]Write to MH i2c: E2 08 00 AC 0D 80 0D 01 02 00 00 00 00 32 [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:51]Read from MH i2c: E2 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 03 00 [14:39:51]MH_I2C_Read... [14:39:51]Read from MH i2c: E2 03 00 AC 0D 00 90 00 2D [14:39:51]RAPDU: 90 00 [14:39:51]wFMCommunicate OK [14:39:51]wFMCommunicate request_size=255 [14:39:51]MH_SAM_APDU [14:39:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 37 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DF 02 [14:39:51]Write to MH i2c: E2 02 01 AD 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 37 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DF 02 00 00 AA [14:39:51]Write i2c OK [14:39:51]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 AD 0D 00 90 00 2E [14:39:52]RAPDU: 90 00 [14:39:52]wFMCommunicate OK [14:39:52]wFMCommunicate request_size=16 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 59 EC 67 A0 2E BC [14:39:52]Write to MH i2c: E2 13 00 AE 0D 80 0D 02 02 0B 00 00 35 04 06 00 59 EC 67 A0 2E BC 00 00 C0 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 03 00 AE 0D 00 90 00 2F [14:39:52]RAPDU: 90 00 [14:39:52]wFMCommunicate OK [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 0D 03 02 [14:39:52]Write to MH i2c: E2 08 00 AF 0D 80 0D 03 02 00 00 00 00 37 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0B 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 0B 00 AF 0D 00 29 F6 9D 7C BC FE 76 4F 90 00 EF [14:39:52]RAPDU: 29 F6 9D 7C BC FE 76 4F 90 00 [14:39:52]wFMCommunicate OK [14:39:52]SAM_PROTO_SignData done [14:39:52]FM_MakeSignedData done [14:39:52]CreateOFDProtocolMessage [14:39:52]wFMCommunicate request_size=4 [14:39:52]MH_SAM_APDU [14:39:52]CAPDU: 80 11 00 00 [14:39:52]Write to MH i2c: E2 08 00 B0 0D 80 11 00 00 00 00 00 00 37 [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:52]Read from MH i2c: E2 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 17 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: E2 17 00 B0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [14:39:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:39:52]wFMCommunicate OK [14:39:52]CreateOFDProtocolMessage done [14:39:52]OFDSenderStorePacket 188329 [14:39:52]StoreOFDPacket docnum=188329 [14:39:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C5 17 0D 01 6A 17 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 37 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DF 02 00 35 04 06 00 59 EC 67 A0 2E BC 29 F6 9D 7C BC FE 76 4F [14:39:52]CheckFolder [14:39:52]dirname=/storage/ofd_packets [14:39:52]CheckFolder done [14:39:52]ProducePacketName [14:39:52]name=ofd_packets/00188329 [14:39:52]NVStorageSaveData ofd_packets/00188329 [14:39:52]File name is /storage/ofd_packets/00188329 [14:39:52]Write 307 bytes [14:39:52]NVStorageSaveData done [14:39:52]OFDSenderStorePacket done [14:39:52]KKMCreateOFDPacket done [14:39:52]NVStorageSaveData kkm_last_timestamp [14:39:52]File name is /storage/kkm_last_timestamp [14:39:52]Write 4 bytes [14:39:52]NVStorageSaveData done [14:39:52]ExternCall_PrintAddStr [14:39:52]wPrintStart [14:39:52]Write to MH i2c: 01 00 00 B1 0D BE [14:39:52]Write i2c OK [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 07 00 [14:39:52]MH_I2C_Read... [14:39:52]Read from MH i2c: 01 07 00 B1 0D 00 00 00 00 00 FF 0F D3 [14:39:52]RasterBufferAndPrint [14:39:52]line Счет N : (1)210385 [14:39:52]line ИНН: 02508201610067 [14:39:52]line Контрольно-Кассовый Чек [14:39:52]line ПРОДАЖА [14:39:52]line ТРК (МРК, ГНК) : 31 [14:39:52]line Товар: 2710194210 [14:39:52]line D-ENERGY ДТ-К-5 [14:39:52]line 19.440 * 77.20 [14:39:52]line = 1500.77 [14:39:52]line НДС 12% НСП 1% [14:39:52]line > о реализуемом товаре [14:39:52]line ИТОГО: 1500.77 [14:39:52]line НСП 1% : 13.28 [14:39:52]line НДС 12% : 159.37 [14:39:52]line Наличными: 0.00 [14:39:52]line Безнал.: 1500.77 [14:39:52]line Место: АЗС № 86 "Партнер Нефть" [14:39:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:39:52]line СНО: Общий режим [14:39:52]line Чек 358 22.10.2024 14:39 [14:39:52]line Смена: 461 ФФД: 1.0 [14:39:52]line ЗНМ: 0300000155 [14:39:52]line РНМ: 0000000000100030 [14:39:52]line Версия ККМ: 001 [14:39:52]line Платежная система: Mbank [14:39:52]line ФМ: 0000000000965340 [14:39:52]line ФД: 188329 [14:39:52]line ФПД: 98871885704892 [14:39:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143951&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188329&fm=98871885704892&tin=02508201610067®Number=0000000000100030&sum=150077 [14:39:52]OFD Sender: Processing packet 188329 [packets to send 1062, broken 1061] [14:39:52]ProducePacketName [14:39:52]name=ofd_packets/00188329 [14:39:52]OFD Sender: To server: pG, [14:39:52]CommunicateWithHost lk.salyk.kg:30040 [14:39:52]ConnectInit lk.salyk.kg [14:39:52]written 0, free lines is 4095 [14:39:53]Connected sock=10 [14:39:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C5 17 0D 01 6A 17 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 3D 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 41 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 3D 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 66 01 00 00 F4 03 04 00 37 B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 A9 DF 02 00 35 04 06 00 59 EC 67 A0 2E BC 29 F6 9D 7C BC FE 76 4F [14:39:53]Write to MH i2c: 01 00 00 DA 0D E7 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: 01 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: 01 07 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: 01 07 00 DA 0D 00 00 00 00 00 9D 0C 97 [14:39:53]RasterBufferAndPrint [14:39:53]line [14:39:53]line [14:39:53]line [14:39:53]line [14:39:53]line [14:39:53]written 0, free lines is 3238 [14:39:53]MH_Cut [14:39:53]Write to MH i2c: D1 01 00 E1 0D 01 C0 [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: D1 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: D1 01 00 [14:39:53]MH_I2C_Read... [14:39:53]Read from MH i2c: D1 01 00 E1 0D 00 BF [14:39:53]Write to MH i2c: 01 00 00 E2 0D EF [14:39:53]Write i2c OK [14:39:53]MH_I2C_Read... [14:39:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 15 47 00 08 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 39 36 35 33 34 30 10 04 04 00 A9 DF 02 00 F4 03 04 00 25 63 17 67 B6 04 01 00 00 09 23 4C AA 28 D9 DE 10 [14:39:53]CommunicateWithHost err = 0 [14:39:53]CheckOFDResponse [14:39:53]1017 (14) - 77093643461234 [14:39:53]1041 (16) - 0000000000965340 [14:39:53]1040 (4) - 188329 [14:39:53]1012 (4) - 22.10.2024 08:32 [14:39:53]1206 (1) - 0 [14:39:53]OFD Sender: Remove packet 188329 [14:39:53]ProducePacketName [14:39:53]name=ofd_packets/00188329 [14:39:53]NVStorageDeleteData [14:39:54]OFD Sender: No OFD packet to send [14:39:54]*** Cut start [14:39:54]*** Partial cut [14:39:54]*** CUTSNS_PIN = 1 [14:39:54]*** CUTSNS_PIN = 0 [14:39:54]*** Brake cut motor [14:39:55]Read from MH i2c: 01 [14:39:55]MH_I2C_Read... [14:39:55]*** Stop cut motor [14:39:55]*** Cut end [14:39:55]Read from MH i2c: 01 07 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: 01 07 00 E2 0D 00 00 00 00 00 FF 0F 04 [14:39:55]process_action close_receipt done [14:39:55]requested_data is exist [14:39:55]produce_requested_data [14:39:55]requested_item fm.sn is exist - process it [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 11 00 00 [14:39:55]Write to MH i2c: E2 08 00 E3 0D 80 11 00 00 00 00 00 00 6A [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 17 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 17 00 E3 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B8 [14:39:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:39:55]wFMCommunicate OK [14:39:55]requested_item fd.num is exist - process it [14:39:55]SAM_PROTO_GetFieldsCounters [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 13 00 00 [14:39:55]Write to MH i2c: E2 08 00 E4 0D 80 13 00 00 00 00 00 00 6D [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 62 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 62 00 E4 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 01 [14:39:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 A9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 66 01 00 00 5E 04 04 00 66 01 00 00 57 04 04 00 67 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:39:55]wFMCommunicate OK [14:39:55]SAM_PROTO_GetFieldsCounters done [14:39:55]requested_item shift.num is exist - process it [14:39:55]requested_item shift.opened is exist - process it [14:39:55]req_shift_opened [14:39:55]FM_GetShiftState [14:39:55]SAM_PROTO_GetShiftState [14:39:55]wFMCommunicate request_size=4 [14:39:55]MH_SAM_APDU [14:39:55]CAPDU: 80 13 01 00 [14:39:55]Write to MH i2c: E2 08 00 E5 0D 80 13 01 00 00 00 00 00 6F [14:39:55]Write i2c OK [14:39:55]MH_I2C_Read... [14:39:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:55]Read from MH i2c: E2 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 0E 00 [14:39:55]MH_I2C_Read... [14:39:55]Read from MH i2c: E2 0E 00 E5 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 64 [14:39:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:39:55]wFMCommunicate OK [14:39:55]SAM_PROTO_GetShiftState done [14:39:55]FM_GetShiftState done [14:39:55]req_shift_opened done [14:39:55]requested_item shift.open_date is exist - process it [14:39:55]req_shift_open_date [14:39:55]req_shift_open_date done [14:39:55]produce_requested_data done [14:39:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188329,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:39:55]process_action_free close_receipt [14:39:55]json_value_free [14:39:55]json_value_free done [14:39:55]process_json_proto returns [14:39:55]Send response to host [14:39:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188329,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:39:55]free response buf [14:39:55]execute_script done [14:39:55]execute_script returns [14:39:55]free content buf [14:39:55]Sock 7.Close socket [14:39:55]Sock 7.Thread stoped [14:39:56]accept exits with 9 [14:39:56]New connection [14:39:56]New thread 3067161956 created [14:39:56]Thread 3067305316 joined [14:39:56]Waiting for new connection... [14:39:56] Sock 9.Parse request [14:39:56]Sock 9.Check first char [14:39:56]Sock 9.First char is OK [14:39:56]request: POST /json_proto HTTP/1.0 [14:39:56]Method: POST [14:39:56]URL: /json_proto [14:39:56]Method is POST - this is cgi request [14:39:56]url: /json_proto [14:39:56]query_string will be loaded in cgi processing [14:39:56]execute_cgi json_proto POST (null) [14:39:56]execute_cgi path=json_proto method=POST [14:39:56]POST find Content-Length [14:39:56]Host: 172.17.42.131:8080 [14:39:56]Content-Length: 766 [14:39:56]Content-Type: application/json [14:39:56] [14:39:56]POST finish read [14:39:56]Found Content-Length = 766 [14:39:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:56]execute_script... [14:39:56]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210386", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 300.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:39:56]POST & json_proto [14:39:56]process_json_proto [14:39:56]json parsed OK: [14:39:56]protocol is kg_v1.0 [14:39:56]action value=close_receipt [14:39:56]process_action close_receipt [14:39:56]cmd_close_receipt [14:39:56]MH_GetDate [14:39:56]Write to MH i2c: F0 00 00 E6 0D E2 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: F0 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: F0 09 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: F0 09 00 E6 0D 00 3D B9 17 67 A0 18 CA 66 47 [14:39:56]GetLastDocTimeStamp 1729607991 [14:39:56]current date 1729607997 [14:39:56]FM_GetShiftState [14:39:56]SAM_PROTO_GetShiftState [14:39:56]wFMCommunicate request_size=4 [14:39:56]MH_SAM_APDU [14:39:56]CAPDU: 80 13 01 00 [14:39:56]Write to MH i2c: E2 08 00 E7 0D 80 13 01 00 00 00 00 00 71 [14:39:56]Write i2c OK [14:39:56]MH_I2C_Read... [14:39:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:39:56]Read from MH i2c: E2 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 0E 00 [14:39:56]MH_I2C_Read... [14:39:56]Read from MH i2c: E2 0E 00 E7 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 66 [14:39:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:39:56]wFMCommunicate OK [14:39:56]SAM_PROTO_GetShiftState done [14:39:56]FM_GetShiftState done [14:39:56]opened in 1729556094 [14:39:56]opened+sec_in_day 1729642494 [14:39:56]quantity*price = 30038 [14:39:56]sum+1 = 30039 [14:39:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 300.38 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 0.00 Безнал.: 300.38 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 359 22.10.2024 14:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188330 ФПД: 91808320892006 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188330&fm=91808320892006&tin=02508201610067®Number=0000000000100030&sum=30038 [14:39:57]StoreToDocumentArchive [14:39:57]shift 461 fd 188330 [14:39:57]save to /storage/0461/doc_00188330 [14:39:57]save last doc name /storage/0461/doc_00188330 to /storage/kkm_last_doc_name [14:39:57]save OK [14:39:57]Clear old archive folders... [14:39:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:39:57]tlvbuf is 014CDBC0 [14:39:57]SAM_PROTO_ClearQueue [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 09 00 00 [14:39:57]Write to MH i2c: E2 08 00 F4 0D 80 09 00 00 00 00 00 00 73 [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:39:57]Read from MH i2c: E2 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 03 00 [14:39:57]MH_I2C_Read... [14:39:57]Read from MH i2c: E2 03 00 F4 0D 00 90 00 75 [14:39:57]RAPDU: 90 00 [14:39:57]wFMCommunicate OK [14:39:57]SAM_PROTO_ClearQueue done [14:39:57]KKMCreateOFDPacket [14:39:57]OFDProtocolAddRootSTLVToBuf [14:39:57]FM_MakeSignedData [14:39:57]FM_MakeSignedData [14:39:57]SAM_PROTO_SignData [14:39:57]wFMCommunicate request_size=4 [14:39:57]MH_SAM_APDU [14:39:57]CAPDU: 80 0D 01 02 [14:39:57]Write to MH i2c: E2 08 00 F5 0D 80 0D 01 02 00 00 00 00 7B [14:39:57]Write i2c OK [14:39:57]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 F5 0D 00 90 00 76 [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=255 [14:39:58]MH_SAM_APDU [14:39: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 3D B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DF 02 00 35 04 06 00 53 [14:39:58]Write to MH i2c: E2 02 01 F6 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 3D B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DF 02 00 35 04 06 00 53 00 00 B6 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 F6 0D 00 90 00 77 [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=10 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 02 02 05 7F CA 5A AC 66 [14:39:58]Write to MH i2c: E2 0D 00 F7 0D 80 0D 02 02 05 00 7F CA 5A AC 66 00 00 3D [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 03 00 F7 0D 00 90 00 78 [14:39:58]RAPDU: 90 00 [14:39:58]wFMCommunicate OK [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 0D 03 02 [14:39:58]Write to MH i2c: E2 08 00 F8 0D 80 0D 03 02 00 00 00 00 80 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 0B 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 0B 00 F8 0D 00 75 EF 10 50 E9 58 0E 0A 90 00 9E [14:39:58]RAPDU: 75 EF 10 50 E9 58 0E 0A 90 00 [14:39:58]wFMCommunicate OK [14:39:58]SAM_PROTO_SignData done [14:39:58]FM_MakeSignedData done [14:39:58]CreateOFDProtocolMessage [14:39:58]wFMCommunicate request_size=4 [14:39:58]MH_SAM_APDU [14:39:58]CAPDU: 80 11 00 00 [14:39:58]Write to MH i2c: E2 08 00 F9 0D 80 11 00 00 00 00 00 00 80 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:39:58]Read from MH i2c: E2 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 17 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: E2 17 00 F9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [14:39:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:39:58]wFMCommunicate OK [14:39:58]CreateOFDProtocolMessage done [14:39:58]OFDSenderStorePacket 188330 [14:39:58]StoreOFDPacket docnum=188330 [14:39:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D E5 07 01 FA 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 3D B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DF 02 00 35 04 06 00 53 7F CA 5A AC 66 75 EF 10 50 E9 58 0E 0A [14:39:58]CheckFolder [14:39:58]dirname=/storage/ofd_packets [14:39:58]CheckFolder done [14:39:58]ProducePacketName [14:39:58]name=ofd_packets/00188330 [14:39:58]NVStorageSaveData ofd_packets/00188330 [14:39:58]File name is /storage/ofd_packets/00188330 [14:39:58]Write 301 bytes [14:39:58]NVStorageSaveData done [14:39:58]OFDSenderStorePacket done [14:39:58]KKMCreateOFDPacket done [14:39:58]NVStorageSaveData kkm_last_timestamp [14:39:58]File name is /storage/kkm_last_timestamp [14:39:58]Write 4 bytes [14:39:58]NVStorageSaveData done [14:39:58]ExternCall_PrintAddStr [14:39:58]wPrintStart [14:39:58]Write to MH i2c: 01 00 00 FA 0D 07 [14:39:58]Write i2c OK [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: 01 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: 01 07 00 [14:39:58]MH_I2C_Read... [14:39:58]Read from MH i2c: 01 07 00 FA 0D 00 00 00 00 00 FF 0F 1C [14:39:58]RasterBufferAndPrint [14:39:58]line Счет N : (1)210386 [14:39:58]line ИНН: 02508201610067 [14:39:58]line Контрольно-Кассовый Чек [14:39:58]line ПРОДАЖА [14:39:58]line ТРК (МРК, ГНК) : 22 [14:39:58]line Товар: 2710124130 [14:39:58]line Аи-92-К-3 [14:39:58]line 4.490 * 66.90 [14:39:58]line = 300.38 [14:39:58]line НДС 12% НСП 1% [14:39:58]line > о реализуемом товаре [14:39:58]line ИТОГО: 300.38 [14:39:58]line НСП 1% : 2.66 [14:39:58]line НДС 12% : 31.90 [14:39:58]line Наличными: 0.00 [14:39:58]line Безнал.: 300.38 [14:39:58]line Место: АЗС № 86 "Партнер Нефть" [14:39:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:39:58]line СНО: Общий режим [14:39:58]line Чек 359 22.10.2024 14:39 [14:39:58]line Смена: 461 ФФД: 1.0 [14:39:58]line ЗНМ: 0300000155 [14:39:58]line РНМ: 0000000000100030 [14:39:58]line Версия ККМ: 001 [14:39:58]line Платежная система: Mbank [14:39:58]line ФМ: 0000000000965340 [14:39:58]line ФД: 188330 [14:39:58]line ФПД: 91808320892006 [14:39:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T143957&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188330&fm=91808320892006&tin=02508201610067®Number=0000000000100030&sum=30038 [14:39:59]OFD Sender: Processing packet 188330 [packets to send 1062, broken 1061] [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00188330 [14:39:59]OFD Sender: To server: pG, [14:39:59]CommunicateWithHost lk.salyk.kg:30040 [14:39:59]ConnectInit lk.salyk.kg [14:39:59]written 0, free lines is 4095 [14:39:59]Connected sock=10 [14:39:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4D E5 07 01 FA 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 56 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 56 75 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 01 00 00 F4 03 04 00 3D B9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AA DF 02 00 35 04 06 00 53 7F CA 5A AC 66 75 EF 10 50 E9 58 0E 0A [14:39:59]Write to MH i2c: 01 00 00 23 0E 31 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 07 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: 01 07 00 23 0E 00 00 00 00 00 9B 0C DF [14:39:59]RasterBufferAndPrint [14:39:59]line [14:39:59]line [14:39:59]line [14:39:59]line [14:39:59]line [14:39:59]written 0, free lines is 3239 [14:39:59]MH_Cut [14:39:59]Write to MH i2c: D1 01 00 2A 0E 01 0A [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: D1 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: D1 01 00 [14:39:59]MH_I2C_Read... [14:39:59]Read from MH i2c: D1 01 00 2A 0E 00 09 [14:39:59]Write to MH i2c: 01 00 00 2B 0E 39 [14:39:59]Write i2c OK [14:39:59]MH_I2C_Read... [14:39:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 62 66 47 00 02 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 39 36 35 33 34 30 10 04 04 00 AA DF 02 00 F4 03 04 00 2B 63 17 67 B6 04 01 00 00 AB 56 AB B9 6E C4 F8 37 [14:39:59]CommunicateWithHost err = 0 [14:39:59]CheckOFDResponse [14:39:59]1017 (14) - 77093643461234 [14:39:59]1041 (16) - 0000000000965340 [14:39:59]1040 (4) - 188330 [14:39:59]1012 (4) - 22.10.2024 08:32 [14:39:59]1206 (1) - 0 [14:39:59]OFD Sender: Remove packet 188330 [14:39:59]ProducePacketName [14:39:59]name=ofd_packets/00188330 [14:39:59]NVStorageDeleteData [14:40:00]OFD Sender: No OFD packet to send [14:40:00]*** Cut start [14:40:00]*** Partial cut [14:40:00]*** CUTSNS_PIN = 1 [14:40:00]*** CUTSNS_PIN = 0 [14:40:00]*** Brake cut motor [14:40:01]Read from MH i2c: 01 [14:40:01]MH_I2C_Read... [14:40:01]*** Stop cut motor [14:40:01]*** Cut end [14:40:01]Read from MH i2c: 01 07 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: 01 07 00 2B 0E 00 00 00 00 00 FF 0F 4E [14:40:01]process_action close_receipt done [14:40:01]requested_data is exist [14:40:01]produce_requested_data [14:40:01]requested_item fm.sn is exist - process it [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 11 00 00 [14:40:01]Write to MH i2c: E2 08 00 2C 0E 80 11 00 00 00 00 00 00 B4 [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 17 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 17 00 2C 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [14:40:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:40:01]wFMCommunicate OK [14:40:01]requested_item fd.num is exist - process it [14:40:01]SAM_PROTO_GetFieldsCounters [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 13 00 00 [14:40:01]Write to MH i2c: E2 08 00 2D 0E 80 13 00 00 00 00 00 00 B7 [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 62 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 62 00 2D 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [14:40:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 67 01 00 00 5E 04 04 00 67 01 00 00 57 04 04 00 68 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:40:01]wFMCommunicate OK [14:40:01]SAM_PROTO_GetFieldsCounters done [14:40:01]requested_item shift.num is exist - process it [14:40:01]requested_item shift.opened is exist - process it [14:40:01]req_shift_opened [14:40:01]FM_GetShiftState [14:40:01]SAM_PROTO_GetShiftState [14:40:01]wFMCommunicate request_size=4 [14:40:01]MH_SAM_APDU [14:40:01]CAPDU: 80 13 01 00 [14:40:01]Write to MH i2c: E2 08 00 2E 0E 80 13 01 00 00 00 00 00 B9 [14:40:01]Write i2c OK [14:40:01]MH_I2C_Read... [14:40:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:40:01]Read from MH i2c: E2 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 0E 00 [14:40:01]MH_I2C_Read... [14:40:01]Read from MH i2c: E2 0E 00 2E 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AE [14:40:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:40:01]wFMCommunicate OK [14:40:01]SAM_PROTO_GetShiftState done [14:40:01]FM_GetShiftState done [14:40:01]req_shift_opened done [14:40:01]requested_item shift.open_date is exist - process it [14:40:01]req_shift_open_date [14:40:01]req_shift_open_date done [14:40:01]produce_requested_data done [14:40:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188330,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:40:01]process_action_free close_receipt [14:40:01]json_value_free [14:40:01]json_value_free done [14:40:01]process_json_proto returns [14:40:01]Send response to host [14:40:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188330,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:40:01]free response buf [14:40:01]execute_script done [14:40:01]execute_script returns [14:40:01]free content buf [14:40:01]Sock 9.Close socket [14:40:01]Sock 9.Thread stoped [14:40:05]OFD Sender: No OFD packet to send [14:40:10]OFD Sender: No OFD packet to send [14:40:15]OFD Sender: No OFD packet to send [14:40:20]OFD Sender: No OFD packet to send [14:40:25]OFD Sender: No OFD packet to send [14:40:30]OFD Sender: No OFD packet to send [14:40:35]OFD Sender: No OFD packet to send [14:40:40]OFD Sender: No OFD packet to send [14:40:45]OFD Sender: No OFD packet to send [14:40:50]OFD Sender: No OFD packet to send [14:40:55]OFD Sender: No OFD packet to send [14:41:00]OFD Sender: No OFD packet to send [14:41:05]OFD Sender: No OFD packet to send [14:41:10]OFD Sender: No OFD packet to send [14:41:15]OFD Sender: No OFD packet to send [14:41:20]OFD Sender: No OFD packet to send [14:41:25]OFD Sender: No OFD packet to send [14:41:30]OFD Sender: No OFD packet to send [14:41:35]OFD Sender: No OFD packet to send [14:41:40]OFD Sender: No OFD packet to send [14:41:45]OFD Sender: No OFD packet to send [14:41:50]OFD Sender: No OFD packet to send [14:41:55]OFD Sender: No OFD packet to send [14:42:00]OFD Sender: No OFD packet to send [14:42:05]OFD Sender: No OFD packet to send [14:42:10]OFD Sender: No OFD packet to send [14:42:15]OFD Sender: No OFD packet to send [14:42:20]OFD Sender: No OFD packet to send [14:42:25]OFD Sender: No OFD packet to send [14:42:30]OFD Sender: No OFD packet to send [14:42:35]OFD Sender: No OFD packet to send [14:42:40]OFD Sender: No OFD packet to send [14:42:45]OFD Sender: No OFD packet to send [14:42:50]OFD Sender: No OFD packet to send [14:42:55]OFD Sender: No OFD packet to send [14:43:00]OFD Sender: No OFD packet to send [14:43:05]OFD Sender: No OFD packet to send [14:43:10]OFD Sender: No OFD packet to send [14:43:15]OFD Sender: No OFD packet to send [14:43:21]OFD Sender: No OFD packet to send [14:43:26]OFD Sender: No OFD packet to send [14:43:31]OFD Sender: No OFD packet to send [14:43:36]OFD Sender: No OFD packet to send [14:43:41]OFD Sender: No OFD packet to send [14:43:46]OFD Sender: No OFD packet to send [14:43:51]OFD Sender: No OFD packet to send [14:43:56]OFD Sender: No OFD packet to send [14:44:01]OFD Sender: No OFD packet to send [14:44:06]OFD Sender: No OFD packet to send [14:44:11]OFD Sender: No OFD packet to send [14:44:16]OFD Sender: No OFD packet to send [14:44:21]OFD Sender: No OFD packet to send [14:44:26]OFD Sender: No OFD packet to send [14:44:31]OFD Sender: No OFD packet to send [14:44:36]OFD Sender: No OFD packet to send [14:44:41]OFD Sender: No OFD packet to send [14:44:46]OFD Sender: No OFD packet to send [14:44:51]OFD Sender: No OFD packet to send [14:44:56]OFD Sender: No OFD packet to send [14:45:01]OFD Sender: No OFD packet to send [14:45:06]OFD Sender: No OFD packet to send [14:45:11]OFD Sender: No OFD packet to send [14:45:16]OFD Sender: No OFD packet to send [14:45:21]OFD Sender: No OFD packet to send [14:45:26]OFD Sender: No OFD packet to send [14:45:31]OFD Sender: No OFD packet to send [14:45:36]OFD Sender: No OFD packet to send [14:45:41]OFD Sender: No OFD packet to send [14:45:46]OFD Sender: No OFD packet to send [14:45:51]OFD Sender: No OFD packet to send [14:45:56]OFD Sender: No OFD packet to send [14:46:01]OFD Sender: No OFD packet to send [14:46:06]OFD Sender: No OFD packet to send [14:46:11]OFD Sender: No OFD packet to send [14:46:16]OFD Sender: No OFD packet to send [14:46:21]OFD Sender: No OFD packet to send [14:46:26]OFD Sender: No OFD packet to send [14:46:31]OFD Sender: No OFD packet to send [14:46:36]OFD Sender: No OFD packet to send [14:46:41]OFD Sender: No OFD packet to send [14:46:46]OFD Sender: No OFD packet to send [14:46:51]OFD Sender: No OFD packet to send [14:46:56]OFD Sender: No OFD packet to send [14:47:01]OFD Sender: No OFD packet to send [14:47:07]OFD Sender: No OFD packet to send [14:47:12]OFD Sender: No OFD packet to send [14:47:17]OFD Sender: No OFD packet to send [14:47:22]OFD Sender: No OFD packet to send [14:47:27]OFD Sender: No OFD packet to send [14:47:32]OFD Sender: No OFD packet to send [14:47:37]OFD Sender: No OFD packet to send [14:47:42]OFD Sender: No OFD packet to send [14:47:47]OFD Sender: No OFD packet to send [14:47:52]OFD Sender: No OFD packet to send [14:47:57]OFD Sender: No OFD packet to send [14:48:02]OFD Sender: No OFD packet to send [14:48:07]OFD Sender: No OFD packet to send [14:48:12]OFD Sender: No OFD packet to send [14:48:17]OFD Sender: No OFD packet to send [14:48:22]OFD Sender: No OFD packet to send [14:48:27]OFD Sender: No OFD packet to send [14:48:32]OFD Sender: No OFD packet to send [14:48:37]OFD Sender: No OFD packet to send [14:48:42]OFD Sender: No OFD packet to send [14:48:47]OFD Sender: No OFD packet to send [14:48:52]OFD Sender: No OFD packet to send [14:48:57]OFD Sender: No OFD packet to send [14:49:02]OFD Sender: No OFD packet to send [14:49:07]OFD Sender: No OFD packet to send [14:49:12]OFD Sender: No OFD packet to send [14:49:17]OFD Sender: No OFD packet to send [14:49:21]accept exits with 7 [14:49:21]New connection [14:49:21]New thread 3067305316 created [14:49:21]Thread 3067161956 joined [14:49:21]Waiting for new connection... [14:49:21] Sock 7.Parse request [14:49:21]Sock 7.Check first char [14:49:21]Sock 7.First char is OK [14:49:21]request: POST /json_proto HTTP/1.0 [14:49:21]Method: POST [14:49:21]URL: /json_proto [14:49:21]Method is POST - this is cgi request [14:49:21]url: /json_proto [14:49:21]query_string will be loaded in cgi processing [14:49:21]execute_cgi json_proto POST (null) [14:49:21]execute_cgi path=json_proto method=POST [14:49:21]POST find Content-Length [14:49:21]Host: 172.17.42.131:8080 [14:49:21]Content-Length: 682 [14:49:21]Content-Type: application/json [14:49:21] [14:49:21]POST finish read [14:49:21]Found Content-Length = 682 [14:49:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:21]execute_script... [14:49: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)210387", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:21]POST & json_proto [14:49:21]process_json_proto [14:49:21]json parsed OK: [14:49:21]protocol is kg_v1.0 [14:49:21]action value=close_receipt [14:49:21]process_action close_receipt [14:49:21]cmd_close_receipt [14:49:21]MH_GetDate [14:49:21]Write to MH i2c: F0 00 00 2F 0E 2C [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 09 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: F0 09 00 2F 0E 00 72 BB 17 67 A0 18 CA 66 C8 [14:49:21]GetLastDocTimeStamp 1729607997 [14:49:21]current date 1729608562 [14:49:21]FM_GetShiftState [14:49:21]SAM_PROTO_GetShiftState [14:49:21]wFMCommunicate request_size=4 [14:49:21]MH_SAM_APDU [14:49:21]CAPDU: 80 13 01 00 [14:49:21]Write to MH i2c: E2 08 00 30 0E 80 13 01 00 00 00 00 00 BB [14:49:21]Write i2c OK [14:49:21]MH_I2C_Read... [14:49:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:21]Read from MH i2c: E2 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 0E 00 [14:49:21]MH_I2C_Read... [14:49:21]Read from MH i2c: E2 0E 00 30 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B0 [14:49:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:49:21]wFMCommunicate OK [14:49:21]SAM_PROTO_GetShiftState done [14:49:21]FM_GetShiftState done [14:49:21]opened in 1729556094 [14:49:21]opened+sec_in_day 1729642494 [14:49:21]quantity*price = 100015 [14:49:21]sum+1 = 100017 [14:49:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 360 22.10.2024 14:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188331 ФПД: 188805931216291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144922&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188331&fm=188805931216291&tin=02508201610067®Number=0000000000100030&sum=100000 [14:49:22]StoreToDocumentArchive [14:49:22]shift 461 fd 188331 [14:49:22]save to /storage/0461/doc_00188331 [14:49:22]save last doc name /storage/0461/doc_00188331 to /storage/kkm_last_doc_name [14:49:22]save OK [14:49:22]Clear old archive folders... [14:49:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:49:22]tlvbuf is 01468BF0 [14:49:22]SAM_PROTO_ClearQueue [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 09 00 00 [14:49:22]Write to MH i2c: E2 08 00 3D 0E 80 09 00 00 00 00 00 00 BD [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 3D 0E 00 90 00 BF [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_ClearQueue done [14:49:22]KKMCreateOFDPacket [14:49:22]OFDProtocolAddRootSTLVToBuf [14:49:22]FM_MakeSignedData [14:49:22]FM_MakeSignedData [14:49:22]SAM_PROTO_SignData [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 0D 01 02 [14:49:22]Write to MH i2c: E2 08 00 3E 0E 80 0D 01 02 00 00 00 00 C5 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 3E 0E 00 90 00 C0 [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]wFMCommunicate request_size=255 [14:49:22]MH_SAM_APDU [14:49: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 72 BB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DF 02 00 35 04 06 00 AB [14:49:22]Write to MH i2c: E2 02 01 3F 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 72 BB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DF 02 00 35 04 06 00 AB 00 00 4B [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]OFD Sender: No OFD packet to send [14:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 3F 0E 00 90 00 C1 [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]wFMCommunicate request_size=10 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 0D 02 02 05 B7 CE 76 2D A3 [14:49:22]Write to MH i2c: E2 0D 00 40 0E 80 0D 02 02 05 00 B7 CE 76 2D A3 00 00 9D [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 03 00 40 0E 00 90 00 C2 [14:49:22]RAPDU: 90 00 [14:49:22]wFMCommunicate OK [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 0D 03 02 [14:49:22]Write to MH i2c: E2 08 00 41 0E 80 0D 03 02 00 00 00 00 CA [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0B 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 0B 00 41 0E 00 8D 8F E1 80 0C 0F 6B EA 90 00 B8 [14:49:22]RAPDU: 8D 8F E1 80 0C 0F 6B EA 90 00 [14:49:22]wFMCommunicate OK [14:49:22]SAM_PROTO_SignData done [14:49:22]FM_MakeSignedData done [14:49:22]CreateOFDProtocolMessage [14:49:22]wFMCommunicate request_size=4 [14:49:22]MH_SAM_APDU [14:49:22]CAPDU: 80 11 00 00 [14:49:22]Write to MH i2c: E2 08 00 42 0E 80 11 00 00 00 00 00 00 CA [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:22]Read from MH i2c: E2 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 17 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: E2 17 00 42 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [14:49:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:22]wFMCommunicate OK [14:49:22]CreateOFDProtocolMessage done [14:49:22]OFDSenderStorePacket 188331 [14:49:22]StoreOFDPacket docnum=188331 [14:49:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1B 8A 07 01 E8 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 72 BB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DF 02 00 35 04 06 00 AB B7 CE 76 2D A3 8D 8F E1 80 0C 0F 6B EA [14:49:22]CheckFolder [14:49:22]dirname=/storage/ofd_packets [14:49:22]CheckFolder done [14:49:22]ProducePacketName [14:49:22]name=ofd_packets/00188331 [14:49:22]NVStorageSaveData ofd_packets/00188331 [14:49:22]File name is /storage/ofd_packets/00188331 [14:49:22]Write 301 bytes [14:49:22]NVStorageSaveData done [14:49:22]OFDSenderStorePacket done [14:49:22]KKMCreateOFDPacket done [14:49:22]NVStorageSaveData kkm_last_timestamp [14:49:22]File name is /storage/kkm_last_timestamp [14:49:22]Write 4 bytes [14:49:22]NVStorageSaveData done [14:49:22]ExternCall_PrintAddStr [14:49:22]wPrintStart [14:49:22]Write to MH i2c: 01 00 00 43 0E 51 [14:49:22]Write i2c OK [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: 01 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: 01 07 00 [14:49:22]MH_I2C_Read... [14:49:22]Read from MH i2c: 01 07 00 43 0E 00 00 00 00 00 FF 0F 66 [14:49:22]RasterBufferAndPrint [14:49:22]line Счет N : (1)210387 [14:49:22]line ИНН: 02508201610067 [14:49:22]line Контрольно-Кассовый Чек [14:49:22]line ПРОДАЖА [14:49:22]line ТРК (МРК, ГНК) : 32 [14:49:22]line Товар: 2710124130 [14:49:22]line Аи-92-К-3 [14:49:22]line 14.950 * 66.90 [14:49:22]line = 1000.16 [14:49:22]line НДС 12% НСП 1% [14:49:22]line > о реализуемом товаре [14:49:22]line ОКРУГЛЕНИЕ: -0.16 [14:49:22]line ИТОГО: 1000.00 [14:49:22]line Внесено: 1000.00 [14:49:22]line СДАЧА: 0.00 [14:49:22]line НСП 1% : 8.85 [14:49:22]line НДС 12% : 106.21 [14:49:22]line Наличными: 1000.00 [14:49:22]line Безнал.: 0.00 [14:49:22]line Место: АЗС № 86 "Партнер Нефть" [14:49:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:49:22]line СНО: Общий режим [14:49:22]line Чек 360 22.10.2024 14:49 [14:49:22]line Смена: 461 ФФД: 1.0 [14:49:22]line ЗНМ: 0300000155 [14:49:22]line РНМ: 0000000000100030 [14:49:22]line Версия ККМ: 001 [14:49:22]line ФМ: 0000000000965340 [14:49:22]line ФД: 188331 [14:49:22]line ФПД: 188805931216291 [14:49:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T144922&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188331&fm=188805931216291&tin=02508201610067®Number=0000000000100030&sum=100000 [14:49:22]written 0, free lines is 4095 [14:49:22]OFD Sender: Processing packet 188331 [packets to send 1062, broken 1061] [14:49:22]ProducePacketName [14:49:22]name=ofd_packets/00188331 [14:49:22]OFD Sender: To server: pG, [14:49:22]CommunicateWithHost lk.salyk.kg:30040 [14:49:22]ConnectInit lk.salyk.kg [14:49:23]Connected sock=10 [14:49:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1B 8A 07 01 E8 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 01 00 00 F4 03 04 00 72 BB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DF 02 00 35 04 06 00 AB B7 CE 76 2D A3 8D 8F E1 80 0C 0F 6B EA [14:49:23]Write to MH i2c: 01 00 00 6E 0E 7C [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 07 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: 01 07 00 6E 0E 00 00 00 00 00 5F 0C EE [14:49:23]RasterBufferAndPrint [14:49:23]line [14:49:23]line [14:49:23]line [14:49:23]line [14:49:23]line [14:49:23]written 0, free lines is 3171 [14:49:23]MH_Cut [14:49:23]Write to MH i2c: D1 01 00 75 0E 01 55 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: D1 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: D1 01 00 [14:49:23]MH_I2C_Read... [14:49:23]Read from MH i2c: D1 01 00 75 0E 00 54 [14:49:23]Write to MH i2c: 01 00 00 76 0E 84 [14:49:23]Write i2c OK [14:49:23]MH_I2C_Read... [14:49:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7D AB 47 00 7E 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AB DF 02 00 F4 03 04 00 5F 65 17 67 B6 04 01 00 00 B1 89 D7 89 F0 B8 87 F2 [14:49:23]CommunicateWithHost err = 0 [14:49:23]CheckOFDResponse [14:49:23]1017 (14) - 77093643461234 [14:49:23]1041 (16) - 0000000000965340 [14:49:23]1040 (4) - 188331 [14:49:23]1012 (4) - 22.10.2024 08:42 [14:49:23]1206 (1) - 0 [14:49:23]OFD Sender: Remove packet 188331 [14:49:23]ProducePacketName [14:49:23]name=ofd_packets/00188331 [14:49:23]NVStorageDeleteData [14:49:24]OFD Sender: No OFD packet to send [14:49:24]*** Cut start [14:49:24]*** Partial cut [14:49:24]*** CUTSNS_PIN = 1 [14:49:24]*** CUTSNS_PIN = 0 [14:49:24]*** Brake cut motor [14:49:25]Read from MH i2c: 01 [14:49:25]MH_I2C_Read... [14:49:25]*** Stop cut motor [14:49:25]*** Cut end [14:49:25]Read from MH i2c: 01 07 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: 01 07 00 76 0E 00 00 00 00 00 FF 0F 99 [14:49:25]process_action close_receipt done [14:49:25]requested_data is exist [14:49:25]produce_requested_data [14:49:25]requested_item fm.sn is exist - process it [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 11 00 00 [14:49:25]Write to MH i2c: E2 08 00 77 0E 80 11 00 00 00 00 00 00 FF [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 17 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 17 00 77 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [14:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:49:25]wFMCommunicate OK [14:49:25]requested_item fd.num is exist - process it [14:49:25]SAM_PROTO_GetFieldsCounters [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 13 00 00 [14:49:25]Write to MH i2c: E2 08 00 78 0E 80 13 00 00 00 00 00 00 02 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 62 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 62 00 78 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 9E [14:49:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 68 01 00 00 5E 04 04 00 68 01 00 00 57 04 04 00 69 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:49:25]wFMCommunicate OK [14:49:25]SAM_PROTO_GetFieldsCounters done [14:49:25]requested_item shift.num is exist - process it [14:49:25]requested_item shift.opened is exist - process it [14:49:25]req_shift_opened [14:49:25]FM_GetShiftState [14:49:25]SAM_PROTO_GetShiftState [14:49:25]wFMCommunicate request_size=4 [14:49:25]MH_SAM_APDU [14:49:25]CAPDU: 80 13 01 00 [14:49:25]Write to MH i2c: E2 08 00 79 0E 80 13 01 00 00 00 00 00 04 [14:49:25]Write i2c OK [14:49:25]MH_I2C_Read... [14:49:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:25]Read from MH i2c: E2 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 0E 00 [14:49:25]MH_I2C_Read... [14:49:25]Read from MH i2c: E2 0E 00 79 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [14:49:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:49:25]wFMCommunicate OK [14:49:25]SAM_PROTO_GetShiftState done [14:49:25]FM_GetShiftState done [14:49:25]req_shift_opened done [14:49:25]requested_item shift.open_date is exist - process it [14:49:25]req_shift_open_date [14:49:25]req_shift_open_date done [14:49:25]produce_requested_data done [14:49:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188331,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:49:25]process_action_free close_receipt [14:49:25]json_value_free [14:49:25]json_value_free done [14:49:25]process_json_proto returns [14:49:25]Send response to host [14:49:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188331,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:49:25]free response buf [14:49:25]execute_script done [14:49:25]execute_script returns [14:49:25]free content buf [14:49:25]Sock 7.Close socket [14:49:25]Sock 7.Thread stoped [14:49:29]OFD Sender: No OFD packet to send [14:49:34]OFD Sender: No OFD packet to send [14:49:39]OFD Sender: No OFD packet to send [14:49:44]OFD Sender: No OFD packet to send [14:49:49]OFD Sender: No OFD packet to send [14:49:54]OFD Sender: No OFD packet to send [14:49:59]OFD Sender: No OFD packet to send [14:50:04]OFD Sender: No OFD packet to send [14:50:09]OFD Sender: No OFD packet to send [14:50:14]OFD Sender: No OFD packet to send [14:50:19]OFD Sender: No OFD packet to send [14:50:24]OFD Sender: No OFD packet to send [14:50:29]OFD Sender: No OFD packet to send [14:50:34]OFD Sender: No OFD packet to send [14:50:39]OFD Sender: No OFD packet to send [14:50:44]OFD Sender: No OFD packet to send [14:50:49]OFD Sender: No OFD packet to send [14:50:54]OFD Sender: No OFD packet to send [14:50:59]OFD Sender: No OFD packet to send [14:51:04]OFD Sender: No OFD packet to send [14:51:09]OFD Sender: No OFD packet to send [14:51:14]OFD Sender: No OFD packet to send [14:51:19]OFD Sender: No OFD packet to send [14:51:24]OFD Sender: No OFD packet to send [14:51:29]OFD Sender: No OFD packet to send [14:51:34]OFD Sender: No OFD packet to send [14:51:39]OFD Sender: No OFD packet to send [14:51:44]OFD Sender: No OFD packet to send [14:51:49]OFD Sender: No OFD packet to send [14:51:54]OFD Sender: No OFD packet to send [14:51:59]OFD Sender: No OFD packet to send [14:52:04]OFD Sender: No OFD packet to send [14:52:09]OFD Sender: No OFD packet to send [14:52:14]OFD Sender: No OFD packet to send [14:52:19]OFD Sender: No OFD packet to send [14:52:24]OFD Sender: No OFD packet to send [14:52:26]accept exits with 9 [14:52:26]New connection [14:52:26]New thread 3067161956 created [14:52:26]Thread 3067305316 joined [14:52:26]Waiting for new connection... [14:52:26] Sock 9.Parse request [14:52:26]Sock 9.Check first char [14:52:26]Sock 9.First char is OK [14:52:26]request: POST /json_proto HTTP/1.0 [14:52:26]Method: POST [14:52:26]URL: /json_proto [14:52:26]Method is POST - this is cgi request [14:52:26]url: /json_proto [14:52:26]query_string will be loaded in cgi processing [14:52:26]execute_cgi json_proto POST (null) [14:52:26]execute_cgi path=json_proto method=POST [14:52:26]POST find Content-Length [14:52:26]Host: 172.17.42.131:8080 [14:52:26]Content-Length: 674 [14:52:26]Content-Type: application/json [14:52:26] [14:52:26]POST finish read [14:52:26]Found Content-Length = 674 [14:52:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [14:52:26]execute_script... [14:52: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)210388", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [14:52:26]POST & json_proto [14:52:26]process_json_proto [14:52:26]json parsed OK: [14:52:26]protocol is kg_v1.0 [14:52:26]action value=close_receipt [14:52:26]process_action close_receipt [14:52:26]cmd_close_receipt [14:52:26]MH_GetDate [14:52:26]Write to MH i2c: F0 00 00 7A 0E 77 [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: F0 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: F0 09 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: F0 09 00 7A 0E 00 2B BC 17 67 A0 18 CA 66 CD [14:52:26]GetLastDocTimeStamp 1729608562 [14:52:26]current date 1729608747 [14:52:26]FM_GetShiftState [14:52:26]SAM_PROTO_GetShiftState [14:52:26]wFMCommunicate request_size=4 [14:52:26]MH_SAM_APDU [14:52:26]CAPDU: 80 13 01 00 [14:52:26]Write to MH i2c: E2 08 00 7B 0E 80 13 01 00 00 00 00 00 06 [14:52:26]Write i2c OK [14:52:26]MH_I2C_Read... [14:52:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:26]Read from MH i2c: E2 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: E2 0E 00 [14:52:26]MH_I2C_Read... [14:52:26]Read from MH i2c: E2 0E 00 7B 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FB [14:52:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:52:26]wFMCommunicate OK [14:52:26]SAM_PROTO_GetShiftState done [14:52:26]FM_GetShiftState done [14:52:26]opened in 1729556094 [14:52:26]opened+sec_in_day 1729642494 [14:52:26]quantity*price = 50063 [14:52:26]sum+1 = 50064 [14:52:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.16 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 361 22.10.2024 14:52 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188332 ФПД: 67863056585812 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145227&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188332&fm=67863056585812&tin=02508201610067®Number=0000000000100030&sum=50000 [14:52:27]StoreToDocumentArchive [14:52:27]shift 461 fd 188332 [14:52:27]save to /storage/0461/doc_00188332 [14:52:27]save last doc name /storage/0461/doc_00188332 to /storage/kkm_last_doc_name [14:52:27]save OK [14:52:27]Clear old archive folders... [14:52:27]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:52:27]tlvbuf is 01464D80 [14:52:27]SAM_PROTO_ClearQueue [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 09 00 00 [14:52:27]Write to MH i2c: E2 08 00 88 0E 80 09 00 00 00 00 00 00 08 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 88 0E 00 90 00 0A [14:52:27]RAPDU: 90 00 [14:52:27]wFMCommunicate OK [14:52:27]SAM_PROTO_ClearQueue done [14:52:27]KKMCreateOFDPacket [14:52:27]OFDProtocolAddRootSTLVToBuf [14:52:27]FM_MakeSignedData [14:52:27]FM_MakeSignedData [14:52:27]SAM_PROTO_SignData [14:52:27]wFMCommunicate request_size=4 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 0D 01 02 [14:52:27]Write to MH i2c: E2 08 00 89 0E 80 0D 01 02 00 00 00 00 10 [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:52:27]Read from MH i2c: E2 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 [14:52:27]MH_I2C_Read... [14:52:27]Read from MH i2c: E2 03 00 89 0E 00 90 00 0B [14:52:27]RAPDU: 90 00 [14:52:27]wFMCommunicate OK [14:52:27]wFMCommunicate request_size=255 [14:52:27]MH_SAM_APDU [14:52:27]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 69 01 00 00 F4 03 04 00 2B BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DF 02 00 35 04 06 00 3D B8 99 61 [14:52:27]Write to MH i2c: E2 02 01 8A 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 32 31 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 69 01 00 00 F4 03 04 00 2B BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DF 02 00 35 04 06 00 3D B8 99 61 00 00 1C [14:52:27]Write i2c OK [14:52:27]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 8A 0E 00 90 00 0C [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=7 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 02 02 02 94 54 [14:52:28]Write to MH i2c: E2 0A 00 8B 0E 80 0D 02 02 02 00 94 54 00 00 FF [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 03 00 8B 0E 00 90 00 0D [14:52:28]RAPDU: 90 00 [14:52:28]wFMCommunicate OK [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 0D 03 02 [14:52:28]Write to MH i2c: E2 08 00 8C 0E 80 0D 03 02 00 00 00 00 15 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0B 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 0B 00 8C 0E 00 A6 04 C8 A2 06 00 C2 5C 90 00 4E [14:52:28]RAPDU: A6 04 C8 A2 06 00 C2 5C 90 00 [14:52:28]wFMCommunicate OK [14:52:28]SAM_PROTO_SignData done [14:52:28]FM_MakeSignedData done [14:52:28]CreateOFDProtocolMessage [14:52:28]wFMCommunicate request_size=4 [14:52:28]MH_SAM_APDU [14:52:28]CAPDU: 80 11 00 00 [14:52:28]Write to MH i2c: E2 08 00 8D 0E 80 11 00 00 00 00 00 00 15 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:28]Read from MH i2c: E2 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: E2 17 00 8D 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [14:52:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:52:28]wFMCommunicate OK [14:52:28]CreateOFDProtocolMessage done [14:52:28]OFDSenderStorePacket 188332 [14:52:28]StoreOFDPacket docnum=188332 [14:52:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 42 57 04 01 B9 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 69 01 00 00 F4 03 04 00 2B BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DF 02 00 35 04 06 00 3D B8 99 61 94 54 A6 04 C8 A2 06 00 C2 5C [14:52:28]CheckFolder [14:52:28]dirname=/storage/ofd_packets [14:52:28]CheckFolder done [14:52:28]ProducePacketName [14:52:28]name=ofd_packets/00188332 [14:52:28]NVStorageSaveData ofd_packets/00188332 [14:52:28]File name is /storage/ofd_packets/00188332 [14:52:28]Write 298 bytes [14:52:28]NVStorageSaveData done [14:52:28]OFDSenderStorePacket done [14:52:28]KKMCreateOFDPacket done [14:52:28]NVStorageSaveData kkm_last_timestamp [14:52:28]File name is /storage/kkm_last_timestamp [14:52:28]Write 4 bytes [14:52:28]NVStorageSaveData done [14:52:28]ExternCall_PrintAddStr [14:52:28]wPrintStart [14:52:28]Write to MH i2c: 01 00 00 8E 0E 9C [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 8E 0E 00 00 00 00 00 FF 0F B1 [14:52:28]RasterBufferAndPrint [14:52:28]line Счет N : (1)210388 [14:52:28]line ИНН: 02508201610067 [14:52:28]line Контрольно-Кассовый Чек [14:52:28]line ПРОДАЖА [14:52:28]line ТРК (МРК, ГНК) : 51 [14:52:28]line Товар: 2710194210 [14:52:28]line ДТ-К-5 [14:52:28]line 6.570 * 76.20 [14:52:28]line = 500.63 [14:52:28]line НДС 12% НСП 1% [14:52:28]line > о реализуемом товаре [14:52:28]line ОКРУГЛЕНИЕ: -0.63 [14:52:28]line ИТОГО: 500.00 [14:52:28]line Внесено: 500.00 [14:52:28]line СДАЧА: 0.00 [14:52:28]line НСП 1% : 4.43 [14:52:28]line НДС 12% : 53.16 [14:52:28]line Наличными: 500.00 [14:52:28]line Безнал.: 0.00 [14:52:28]line Место: АЗС № 86 "Партнер Нефть" [14:52:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:52:28]line СНО: Общий режим [14:52:28]line Чек 361 22.10.2024 14:52 [14:52:28]line Смена: 461 ФФД: 1.0 [14:52:28]line ЗНМ: 0300000155 [14:52:28]line РНМ: 0000000000100030 [14:52:28]line Версия ККМ: 001 [14:52:28]line ФМ: 0000000000965340 [14:52:28]line ФД: 188332 [14:52:28]line ФПД: 67863056585812 [14:52:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145227&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188332&fm=67863056585812&tin=02508201610067®Number=0000000000100030&sum=50000 [14:52:28]written 0, free lines is 4095 [14:52:28]OFD Sender: Processing packet 188332 [packets to send 1062, broken 1061] [14:52:28]ProducePacketName [14:52:28]name=ofd_packets/00188332 [14:52:28]OFD Sender: To server: pG, [14:52:28]CommunicateWithHost lk.salyk.kg:30040 [14:52:28]ConnectInit lk.salyk.kg [14:52:28]Connected sock=10 [14:52:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 42 57 04 01 B9 91 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 69 01 00 00 F4 03 04 00 2B BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DF 02 00 35 04 06 00 3D B8 99 61 94 54 A6 04 C8 A2 06 00 C2 5C [14:52:28]Write to MH i2c: 01 00 00 B9 0E C7 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: 01 07 00 B9 0E 00 00 00 00 00 64 0C 3E [14:52:28]RasterBufferAndPrint [14:52:28]line [14:52:28]line [14:52:28]line [14:52:28]line [14:52:28]line [14:52:28]written 0, free lines is 3175 [14:52:28]MH_Cut [14:52:28]Write to MH i2c: D1 01 00 C0 0E 01 A0 [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: D1 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: D1 01 00 [14:52:28]MH_I2C_Read... [14:52:28]Read from MH i2c: D1 01 00 C0 0E 00 9F [14:52:28]Write to MH i2c: 01 00 00 C1 0E CF [14:52:28]Write i2c OK [14:52:28]MH_I2C_Read... [14:52:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 59 47 00 62 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AC DF 02 00 F4 03 04 00 18 66 17 67 B6 04 01 00 00 EE 0B 34 4E C2 95 F5 68 [14:52:29]CommunicateWithHost err = 0 [14:52:29]CheckOFDResponse [14:52:29]1017 (14) - 77093643461234 [14:52:29]1041 (16) - 0000000000965340 [14:52:29]1040 (4) - 188332 [14:52:29]1012 (4) - 22.10.2024 08:45 [14:52:29]1206 (1) - 0 [14:52:29]OFD Sender: Remove packet 188332 [14:52:29]ProducePacketName [14:52:29]name=ofd_packets/00188332 [14:52:29]NVStorageDeleteData [14:52:29]OFD Sender: No OFD packet to send [14:52:29]*** Cut start [14:52:29]*** Partial cut [14:52:29]*** CUTSNS_PIN = 1 [14:52:29]*** CUTSNS_PIN = 0 [14:52:30]*** Brake cut motor [14:52:30]Read from MH i2c: 01 [14:52:30]MH_I2C_Read... [14:52:30]*** Stop cut motor [14:52:30]*** Cut end [14:52:30]Read from MH i2c: 01 07 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: 01 07 00 C1 0E 00 00 00 00 00 FF 0F E4 [14:52:30]process_action close_receipt done [14:52:30]requested_data is exist [14:52:30]produce_requested_data [14:52:30]requested_item fm.sn is exist - process it [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 11 00 00 [14:52:30]Write to MH i2c: E2 08 00 C2 0E 80 11 00 00 00 00 00 00 4A [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 17 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 17 00 C2 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 98 [14:52:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:52:30]wFMCommunicate OK [14:52:30]requested_item fd.num is exist - process it [14:52:30]SAM_PROTO_GetFieldsCounters [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 13 00 00 [14:52:30]Write to MH i2c: E2 08 00 C3 0E 80 13 00 00 00 00 00 00 4D [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 62 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 62 00 C3 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 ED [14:52:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 69 01 00 00 5E 04 04 00 69 01 00 00 57 04 04 00 6A 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_GetFieldsCounters done [14:52:30]requested_item shift.num is exist - process it [14:52:30]requested_item shift.opened is exist - process it [14:52:30]req_shift_opened [14:52:30]FM_GetShiftState [14:52:30]SAM_PROTO_GetShiftState [14:52:30]wFMCommunicate request_size=4 [14:52:30]MH_SAM_APDU [14:52:30]CAPDU: 80 13 01 00 [14:52:30]Write to MH i2c: E2 08 00 C4 0E 80 13 01 00 00 00 00 00 4F [14:52:30]Write i2c OK [14:52:30]MH_I2C_Read... [14:52:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:52:30]Read from MH i2c: E2 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 0E 00 [14:52:30]MH_I2C_Read... [14:52:30]Read from MH i2c: E2 0E 00 C4 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [14:52:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:52:30]wFMCommunicate OK [14:52:30]SAM_PROTO_GetShiftState done [14:52:30]FM_GetShiftState done [14:52:30]req_shift_opened done [14:52:30]requested_item shift.open_date is exist - process it [14:52:30]req_shift_open_date [14:52:30]req_shift_open_date done [14:52:30]produce_requested_data done [14:52:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188332,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:52:30]process_action_free close_receipt [14:52:30]json_value_free [14:52:30]json_value_free done [14:52:30]process_json_proto returns [14:52:30]Send response to host [14:52:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188332,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:52:30]free response buf [14:52:30]execute_script done [14:52:30]execute_script returns [14:52:30]free content buf [14:52:30]Sock 9.Close socket [14:52:30]Sock 9.Thread stoped [14:52:34]OFD Sender: No OFD packet to send [14:52:39]OFD Sender: No OFD packet to send [14:52:44]OFD Sender: No OFD packet to send [14:52:49]OFD Sender: No OFD packet to send [14:52:54]OFD Sender: No OFD packet to send [14:52:59]OFD Sender: No OFD packet to send [14:53:04]OFD Sender: No OFD packet to send [14:53:09]OFD Sender: No OFD packet to send [14:53:14]OFD Sender: No OFD packet to send [14:53:19]OFD Sender: No OFD packet to send [14:53:24]OFD Sender: No OFD packet to send [14:53:29]OFD Sender: No OFD packet to send [14:53:34]OFD Sender: No OFD packet to send [14:53:39]OFD Sender: No OFD packet to send [14:53:44]OFD Sender: No OFD packet to send [14:53:49]OFD Sender: No OFD packet to send [14:53:54]OFD Sender: No OFD packet to send [14:53:59]OFD Sender: No OFD packet to send [14:54:04]OFD Sender: No OFD packet to send [14:54:09]OFD Sender: No OFD packet to send [14:54:14]OFD Sender: No OFD packet to send [14:54:20]OFD Sender: No OFD packet to send [14:54:25]OFD Sender: No OFD packet to send [14:54:30]OFD Sender: No OFD packet to send [14:54:32]accept exits with 7 [14:54:32]New connection [14:54:32]New thread 3067305316 created [14:54:32]Thread 3067161956 joined [14:54:32]Waiting for new connection... [14:54:32] Sock 7.Parse request [14:54:32]Sock 7.Check first char [14:54:32]Sock 7.First char is OK [14:54:32]request: POST /json_proto HTTP/1.0 [14:54:32]Method: POST [14:54:32]URL: /json_proto [14:54:32]Method is POST - this is cgi request [14:54:32]url: /json_proto [14:54:32]query_string will be loaded in cgi processing [14:54:32]execute_cgi json_proto POST (null) [14:54:32]execute_cgi path=json_proto method=POST [14:54:32]POST find Content-Length [14:54:32]Host: 172.17.42.131:8080 [14:54:32]Content-Length: 688 [14:54:32]Content-Type: application/json [14:54:32] [14:54:32]POST finish read [14:54:32]Found Content-Length = 688 [14:54:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [14:54:32]execute_script... [14:54: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)210389", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [14:54:32]POST & json_proto [14:54:32]process_json_proto [14:54:32]json parsed OK: [14:54:32]protocol is kg_v1.0 [14:54:32]action value=close_receipt [14:54:32]process_action close_receipt [14:54:32]cmd_close_receipt [14:54:32]MH_GetDate [14:54:32]Write to MH i2c: F0 00 00 C5 0E C2 [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: F0 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: F0 09 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: F0 09 00 C5 0E 00 A9 BC 17 67 A0 18 CA 66 96 [14:54:32]GetLastDocTimeStamp 1729608747 [14:54:32]current date 1729608873 [14:54:32]FM_GetShiftState [14:54:32]SAM_PROTO_GetShiftState [14:54:32]wFMCommunicate request_size=4 [14:54:32]MH_SAM_APDU [14:54:32]CAPDU: 80 13 01 00 [14:54:32]Write to MH i2c: E2 08 00 C6 0E 80 13 01 00 00 00 00 00 51 [14:54:32]Write i2c OK [14:54:32]MH_I2C_Read... [14:54:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:32]Read from MH i2c: E2 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 0E 00 [14:54:32]MH_I2C_Read... [14:54:32]Read from MH i2c: E2 0E 00 C6 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 46 [14:54:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:54:32]wFMCommunicate OK [14:54:32]SAM_PROTO_GetShiftState done [14:54:32]FM_GetShiftState done [14:54:32]opened in 1729556094 [14:54:32]opened+sec_in_day 1729642494 [14:54:32]quantity*price = 200025 [14:54:32]sum+1 = 200026 [14:54:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 362 22.10.2024 14:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188333 ФПД: 268084595328893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145433&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188333&fm=268084595328893&tin=02508201610067®Number=0000000000100030&sum=200000 [14:54:33]StoreToDocumentArchive [14:54:33]shift 461 fd 188333 [14:54:33]save to /storage/0461/doc_00188333 [14:54:33]save last doc name /storage/0461/doc_00188333 to /storage/kkm_last_doc_name [14:54:33]save OK [14:54:33]Clear old archive folders... [14:54:33]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:54:33]tlvbuf is 01482BE0 [14:54:33]SAM_PROTO_ClearQueue [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 09 00 00 [14:54:33]Write to MH i2c: E2 08 00 D3 0E 80 09 00 00 00 00 00 00 53 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 D3 0E 00 90 00 55 [14:54:33]RAPDU: 90 00 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_ClearQueue done [14:54:33]KKMCreateOFDPacket [14:54:33]OFDProtocolAddRootSTLVToBuf [14:54:33]FM_MakeSignedData [14:54:33]FM_MakeSignedData [14:54:33]SAM_PROTO_SignData [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 0D 01 02 [14:54:33]Write to MH i2c: E2 08 00 D4 0E 80 0D 01 02 00 00 00 00 5B [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 D4 0E 00 90 00 56 [14:54:33]RAPDU: 90 00 [14:54:33]wFMCommunicate OK [14:54:33]wFMCommunicate request_size=255 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 6A 01 00 00 F4 03 04 00 A9 BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DF 02 [14:54:33]Write to MH i2c: E2 02 01 D5 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 6A 01 00 00 F4 03 04 00 A9 BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DF 02 00 00 A6 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 D5 0E 00 90 00 57 [14:54:33]RAPDU: 90 00 [14:54:33]wFMCommunicate OK [14:54:33]wFMCommunicate request_size=16 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F3 D2 4F 13 07 7D [14:54:33]Write to MH i2c: E2 13 00 D6 0E 80 0D 02 02 0B 00 00 35 04 06 00 F3 D2 4F 13 07 7D 00 00 5E [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 03 00 D6 0E 00 90 00 58 [14:54:33]RAPDU: 90 00 [14:54:33]wFMCommunicate OK [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 0D 03 02 [14:54:33]Write to MH i2c: E2 08 00 D7 0E 80 0D 03 02 00 00 00 00 60 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:33]Read from MH i2c: E2 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 0B 00 [14:54:33]MH_I2C_Read... [14:54:33]Read from MH i2c: E2 0B 00 D7 0E 00 2C 59 3D 6F 60 13 B3 03 90 00 BB [14:54:33]RAPDU: 2C 59 3D 6F 60 13 B3 03 90 00 [14:54:33]wFMCommunicate OK [14:54:33]SAM_PROTO_SignData done [14:54:33]FM_MakeSignedData done [14:54:33]CreateOFDProtocolMessage [14:54:33]wFMCommunicate request_size=4 [14:54:33]MH_SAM_APDU [14:54:33]CAPDU: 80 11 00 00 [14:54:33]Write to MH i2c: E2 08 00 D8 0E 80 11 00 00 00 00 00 00 60 [14:54:33]Write i2c OK [14:54:33]MH_I2C_Read... [14:54:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:34]Read from MH i2c: E2 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 17 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: E2 17 00 D8 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [14:54:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:54:34]wFMCommunicate OK [14:54:34]CreateOFDProtocolMessage done [14:54:34]OFDSenderStorePacket 188333 [14:54:34]StoreOFDPacket docnum=188333 [14:54:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 78 D8 0D 01 7D F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 6A 01 00 00 F4 03 04 00 A9 BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DF 02 00 35 04 06 00 F3 D2 4F 13 07 7D 2C 59 3D 6F 60 13 B3 03 [14:54:34]CheckFolder [14:54:34]dirname=/storage/ofd_packets [14:54:34]CheckFolder done [14:54:34]ProducePacketName [14:54:34]name=ofd_packets/00188333 [14:54:34]NVStorageSaveData ofd_packets/00188333 [14:54:34]File name is /storage/ofd_packets/00188333 [14:54:34]Write 307 bytes [14:54:34]NVStorageSaveData done [14:54:34]OFDSenderStorePacket done [14:54:34]KKMCreateOFDPacket done [14:54:34]NVStorageSaveData kkm_last_timestamp [14:54:34]File name is /storage/kkm_last_timestamp [14:54:34]Write 4 bytes [14:54:34]NVStorageSaveData done [14:54:34]ExternCall_PrintAddStr [14:54:34]wPrintStart [14:54:34]Write to MH i2c: 01 00 00 D9 0E E7 [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 07 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 07 00 D9 0E 00 00 00 00 00 FF 0F FC [14:54:34]RasterBufferAndPrint [14:54:34]line Счет N : (1)210389 [14:54:34]line ИНН: 02508201610067 [14:54:34]line Контрольно-Кассовый Чек [14:54:34]line ПРОДАЖА [14:54:34]line ТРК (МРК, ГНК) : 31 [14:54:34]line Товар: 2710194210 [14:54:34]line D-ENERGY ДТ-К-5 [14:54:34]line 25.910 * 77.20 [14:54:34]line = 2000.25 [14:54:34]line НДС 12% НСП 1% [14:54:34]line > о реализуемом товаре [14:54:34]line ОКРУГЛЕНИЕ: -0.25 [14:54:34]line ИТОГО: 2000.00 [14:54:34]line Внесено: 2000.00 [14:54:34]line СДАЧА: 0.00 [14:54:34]line НСП 1% : 17.70 [14:54:34]line НДС 12% : 212.42 [14:54:34]line Наличными: 2000.00 [14:54:34]line Безнал.: 0.00 [14:54:34]line Место: АЗС № 86 "Партнер Нефть" [14:54:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:54:34]line СНО: Общий режим [14:54:34]line Чек 362 22.10.2024 14:54 [14:54:34]line Смена: 461 ФФД: 1.0 [14:54:34]line ЗНМ: 0300000155 [14:54:34]line РНМ: 0000000000100030 [14:54:34]line Версия ККМ: 001 [14:54:34]line ФМ: 0000000000965340 [14:54:34]line ФД: 188333 [14:54:34]line ФПД: 268084595328893 [14:54:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145433&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188333&fm=268084595328893&tin=02508201610067®Number=0000000000100030&sum=200000 [14:54:34]written 0, free lines is 4095 [14:54:34]OFD Sender: Processing packet 188333 [packets to send 1062, broken 1061] [14:54:34]ProducePacketName [14:54:34]name=ofd_packets/00188333 [14:54:34]OFD Sender: To server: pG, [14:54:34]CommunicateWithHost lk.salyk.kg:30040 [14:54:34]ConnectInit lk.salyk.kg [14:54:34]Connected sock=10 [14:54:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 78 D8 0D 01 7D F6 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 6A 01 00 00 F4 03 04 00 A9 BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AD DF 02 00 35 04 06 00 F3 D2 4F 13 07 7D 2C 59 3D 6F 60 13 B3 03 [14:54:34]Write to MH i2c: 01 00 00 04 0F 13 [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 07 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: 01 07 00 04 0F 00 00 00 00 00 64 0C 8A [14:54:34]RasterBufferAndPrint [14:54:34]line [14:54:34]line [14:54:34]line [14:54:34]line [14:54:34]line [14:54:34]written 0, free lines is 3175 [14:54:34]MH_Cut [14:54:34]Write to MH i2c: D1 01 00 0B 0F 01 EC [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: D1 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: D1 01 00 [14:54:34]MH_I2C_Read... [14:54:34]Read from MH i2c: D1 01 00 0B 0F 00 EB [14:54:34]Write to MH i2c: 01 00 00 0C 0F 1B [14:54:34]Write i2c OK [14:54:34]MH_I2C_Read... [14:54:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F7 53 47 00 40 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 39 36 35 33 34 30 10 04 04 00 AD DF 02 00 F4 03 04 00 96 66 17 67 B6 04 01 00 00 D6 60 19 9E 30 03 AD D1 [14:54:34]CommunicateWithHost err = 0 [14:54:34]CheckOFDResponse [14:54:34]1017 (14) - 77093643461234 [14:54:34]1041 (16) - 0000000000965340 [14:54:34]1040 (4) - 188333 [14:54:34]1012 (4) - 22.10.2024 08:47 [14:54:34]1206 (1) - 0 [14:54:34]OFD Sender: Remove packet 188333 [14:54:34]ProducePacketName [14:54:34]name=ofd_packets/00188333 [14:54:34]NVStorageDeleteData [14:54:35]OFD Sender: No OFD packet to send [14:54:35]*** Cut start [14:54:35]*** Partial cut [14:54:35]*** CUTSNS_PIN = 1 [14:54:35]*** CUTSNS_PIN = 0 [14:54:36]*** Brake cut motor [14:54:36]Read from MH i2c: 01 [14:54:36]MH_I2C_Read... [14:54:36]*** Stop cut motor [14:54:36]*** Cut end [14:54:36]Read from MH i2c: 01 07 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: 01 07 00 0C 0F 00 00 00 00 00 FF 0F 30 [14:54:36]process_action close_receipt done [14:54:36]requested_data is exist [14:54:36]produce_requested_data [14:54:36]requested_item fm.sn is exist - process it [14:54:36]wFMCommunicate request_size=4 [14:54:36]MH_SAM_APDU [14:54:36]CAPDU: 80 11 00 00 [14:54:36]Write to MH i2c: E2 08 00 0D 0F 80 11 00 00 00 00 00 00 96 [14:54:36]Write i2c OK [14:54:36]MH_I2C_Read... [14:54:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:36]Read from MH i2c: E2 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 17 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 17 00 0D 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E4 [14:54:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:54:36]wFMCommunicate OK [14:54:36]requested_item fd.num is exist - process it [14:54:36]SAM_PROTO_GetFieldsCounters [14:54:36]wFMCommunicate request_size=4 [14:54:36]MH_SAM_APDU [14:54:36]CAPDU: 80 13 00 00 [14:54:36]Write to MH i2c: E2 08 00 0E 0F 80 13 00 00 00 00 00 00 99 [14:54:36]Write i2c OK [14:54:36]MH_I2C_Read... [14:54:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:36]Read from MH i2c: E2 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 62 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 62 00 0E 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [14:54:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6A 01 00 00 5E 04 04 00 6A 01 00 00 57 04 04 00 6B 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:54:36]wFMCommunicate OK [14:54:36]SAM_PROTO_GetFieldsCounters done [14:54:36]requested_item shift.num is exist - process it [14:54:36]requested_item shift.opened is exist - process it [14:54:36]req_shift_opened [14:54:36]FM_GetShiftState [14:54:36]SAM_PROTO_GetShiftState [14:54:36]wFMCommunicate request_size=4 [14:54:36]MH_SAM_APDU [14:54:36]CAPDU: 80 13 01 00 [14:54:36]Write to MH i2c: E2 08 00 0F 0F 80 13 01 00 00 00 00 00 9B [14:54:36]Write i2c OK [14:54:36]MH_I2C_Read... [14:54:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:36]Read from MH i2c: E2 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 0E 00 [14:54:36]MH_I2C_Read... [14:54:36]Read from MH i2c: E2 0E 00 0F 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 90 [14:54:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:54:36]wFMCommunicate OK [14:54:36]SAM_PROTO_GetShiftState done [14:54:36]FM_GetShiftState done [14:54:36]req_shift_opened done [14:54:36]requested_item shift.open_date is exist - process it [14:54:36]req_shift_open_date [14:54:36]req_shift_open_date done [14:54:36]produce_requested_data done [14:54:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188333,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:54:36]process_action_free close_receipt [14:54:36]json_value_free [14:54:36]json_value_free done [14:54:36]process_json_proto returns [14:54:36]Send response to host [14:54:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188333,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:54:36]free response buf [14:54:36]execute_script done [14:54:36]execute_script returns [14:54:36]free content buf [14:54:36]Sock 7.Close socket [14:54:36]Sock 7.Thread stoped [14:54:40]OFD Sender: No OFD packet to send [14:54:45]OFD Sender: No OFD packet to send [14:54:50]OFD Sender: No OFD packet to send [14:54:55]OFD Sender: No OFD packet to send [14:55:00]OFD Sender: No OFD packet to send [14:55:05]OFD Sender: No OFD packet to send [14:55:10]OFD Sender: No OFD packet to send [14:55:15]OFD Sender: No OFD packet to send [14:55:20]OFD Sender: No OFD packet to send [14:55:25]OFD Sender: No OFD packet to send [14:55:30]OFD Sender: No OFD packet to send [14:55:35]OFD Sender: No OFD packet to send [14:55:40]OFD Sender: No OFD packet to send [14:55:45]OFD Sender: No OFD packet to send [14:55:50]OFD Sender: No OFD packet to send [14:55:55]OFD Sender: No OFD packet to send [14:55:58]accept exits with 9 [14:55:58]New connection [14:55:58]New thread 3067161956 created [14:55:58]Thread 3067305316 joined [14:55:58]Waiting for new connection... [14:55:58] Sock 9.Parse request [14:55:58]Sock 9.Check first char [14:55:58]Sock 9.First char is OK [14:55:58]request: POST /json_proto HTTP/1.0 [14:55:58]Method: POST [14:55:58]URL: /json_proto [14:55:58]Method is POST - this is cgi request [14:55:58]url: /json_proto [14:55:58]query_string will be loaded in cgi processing [14:55:58]execute_cgi json_proto POST (null) [14:55:58]execute_cgi path=json_proto method=POST [14:55:58]POST find Content-Length [14:55:58]Host: 172.17.42.131:8080 [14:55:58]Content-Length: 688 [14:55:58]Content-Type: application/json [14:55:58] [14:55:58]POST finish read [14:55:58]Found Content-Length = 688 [14:55:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:55:58]execute_script... [14:55: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)210391", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [14:55:58]POST & json_proto [14:55:58]process_json_proto [14:55:58]json parsed OK: [14:55:58]protocol is kg_v1.0 [14:55:58]action value=close_receipt [14:55:58]process_action close_receipt [14:55:58]cmd_close_receipt [14:55:58]MH_GetDate [14:55:58]Write to MH i2c: F0 00 00 10 0F 0E [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: F0 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: F0 09 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: F0 09 00 10 0F 00 FF BC 17 67 A0 18 CA 66 38 [14:55:58]GetLastDocTimeStamp 1729608873 [14:55:58]current date 1729608959 [14:55:58]FM_GetShiftState [14:55:58]SAM_PROTO_GetShiftState [14:55:58]wFMCommunicate request_size=4 [14:55:58]MH_SAM_APDU [14:55:58]CAPDU: 80 13 01 00 [14:55:58]Write to MH i2c: E2 08 00 11 0F 80 13 01 00 00 00 00 00 9D [14:55:58]Write i2c OK [14:55:58]MH_I2C_Read... [14:55:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:55:58]Read from MH i2c: E2 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0E 00 [14:55:58]MH_I2C_Read... [14:55:58]Read from MH i2c: E2 0E 00 11 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 92 [14:55:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:55:58]wFMCommunicate OK [14:55:58]SAM_PROTO_GetShiftState done [14:55:58]FM_GetShiftState done [14:55:58]opened in 1729556094 [14:55:58]opened+sec_in_day 1729642494 [14:55:58]quantity*price = 100051 [14:55:58]sum+1 = 100052 [14:55:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 363 22.10.2024 14:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188334 ФПД: 74829084199178 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145559&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188334&fm=74829084199178&tin=02508201610067®Number=0000000000100030&sum=100000 [14:55:59]StoreToDocumentArchive [14:55:59]shift 461 fd 188334 [14:55:59]save to /storage/0461/doc_00188334 [14:55:59]save last doc name /storage/0461/doc_00188334 to /storage/kkm_last_doc_name [14:55:59]save OK [14:55:59]Clear old archive folders... [14:55:59]ProcessDocumentItem done err = 0, tmpTLVsize=257 [14:55:59]tlvbuf is 01477040 [14:55:59]SAM_PROTO_ClearQueue [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 09 00 00 [14:55:59]Write to MH i2c: E2 08 00 1E 0F 80 09 00 00 00 00 00 00 9F [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 03 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 03 00 1E 0F 00 90 00 A1 [14:55:59]RAPDU: 90 00 [14:55:59]wFMCommunicate OK [14:55:59]SAM_PROTO_ClearQueue done [14:55:59]KKMCreateOFDPacket [14:55:59]OFDProtocolAddRootSTLVToBuf [14:55:59]FM_MakeSignedData [14:55:59]FM_MakeSignedData [14:55:59]SAM_PROTO_SignData [14:55:59]wFMCommunicate request_size=4 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 0D 01 02 [14:55:59]Write to MH i2c: E2 08 00 1F 0F 80 0D 01 02 00 00 00 00 A7 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:55:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:55:59]Read from MH i2c: E2 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 03 00 [14:55:59]MH_I2C_Read... [14:55:59]Read from MH i2c: E2 03 00 1F 0F 00 90 00 A2 [14:55:59]RAPDU: 90 00 [14:55:59]wFMCommunicate OK [14:55:59]wFMCommunicate request_size=255 [14:55:59]MH_SAM_APDU [14:55:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 6B 01 00 00 F4 03 04 00 FF BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DF 02 [14:55:59]Write to MH i2c: E2 02 01 20 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 6B 01 00 00 F4 03 04 00 FF BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DF 02 00 00 06 [14:55:59]Write i2c OK [14:55:59]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 20 0F 00 90 00 A3 [14:56:00]RAPDU: 90 00 [14:56:00]wFMCommunicate OK [14:56:00]wFMCommunicate request_size=16 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 44 0E 80 FB 89 0A [14:56:00]Write to MH i2c: E2 13 00 21 0F 80 0D 02 02 0B 00 00 35 04 06 00 44 0E 80 FB 89 0A 00 00 5F [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 03 00 21 0F 00 90 00 A4 [14:56:00]RAPDU: 90 00 [14:56:00]wFMCommunicate OK [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 0D 03 02 [14:56:00]Write to MH i2c: E2 08 00 22 0F 80 0D 03 02 00 00 00 00 AC [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 0B 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 0B 00 22 0F 00 89 FC 91 D2 7E 6B 41 2F 90 00 EE [14:56:00]RAPDU: 89 FC 91 D2 7E 6B 41 2F 90 00 [14:56:00]wFMCommunicate OK [14:56:00]SAM_PROTO_SignData done [14:56:00]FM_MakeSignedData done [14:56:00]CreateOFDProtocolMessage [14:56:00]wFMCommunicate request_size=4 [14:56:00]MH_SAM_APDU [14:56:00]CAPDU: 80 11 00 00 [14:56:00]Write to MH i2c: E2 08 00 23 0F 80 11 00 00 00 00 00 00 AC [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:00]Read from MH i2c: E2 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 17 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: E2 17 00 23 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FA [14:56:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:56:00]wFMCommunicate OK [14:56:00]CreateOFDProtocolMessage done [14:56:00]OFDSenderStorePacket 188334 [14:56:00]StoreOFDPacket docnum=188334 [14:56:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 70 4F 0D 01 C8 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 6B 01 00 00 F4 03 04 00 FF BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DF 02 00 35 04 06 00 44 0E 80 FB 89 0A 89 FC 91 D2 7E 6B 41 2F [14:56:00]CheckFolder [14:56:00]dirname=/storage/ofd_packets [14:56:00]CheckFolder done [14:56:00]ProducePacketName [14:56:00]name=ofd_packets/00188334 [14:56:00]NVStorageSaveData ofd_packets/00188334 [14:56:00]File name is /storage/ofd_packets/00188334 [14:56:00]Write 307 bytes [14:56:00]NVStorageSaveData done [14:56:00]OFDSenderStorePacket done [14:56:00]KKMCreateOFDPacket done [14:56:00]NVStorageSaveData kkm_last_timestamp [14:56:00]File name is /storage/kkm_last_timestamp [14:56:00]Write 4 bytes [14:56:00]NVStorageSaveData done [14:56:00]ExternCall_PrintAddStr [14:56:00]wPrintStart [14:56:00]Write to MH i2c: 01 00 00 24 0F 33 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 07 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 07 00 24 0F 00 00 00 00 00 FF 0F 48 [14:56:00]RasterBufferAndPrint [14:56:00]line Счет N : (1)210391 [14:56:00]line ИНН: 02508201610067 [14:56:00]line Контрольно-Кассовый Чек [14:56:00]line ПРОДАЖА [14:56:00]line ТРК (МРК, ГНК) : 11 [14:56:00]line Товар: 2710194210 [14:56:00]line D-ENERGY ДТ-К-5 [14:56:00]line 12.960 * 77.20 [14:56:00]line = 1000.51 [14:56:00]line НДС 12% НСП 1% [14:56:00]line > о реализуемом товаре [14:56:00]line ОКРУГЛЕНИЕ: -0.51 [14:56:00]line ИТОГО: 1000.00 [14:56:00]line Внесено: 1000.00 [14:56:00]line СДАЧА: 0.00 [14:56:00]line НСП 1% : 8.85 [14:56:00]line НДС 12% : 106.25 [14:56:00]line Наличными: 1000.00 [14:56:00]line Безнал.: 0.00 [14:56:00]line Место: АЗС № 86 "Партнер Нефть" [14:56:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:56:00]line СНО: Общий режим [14:56:00]line Чек 363 22.10.2024 14:55 [14:56:00]line Смена: 461 ФФД: 1.0 [14:56:00]line ЗНМ: 0300000155 [14:56:00]line РНМ: 0000000000100030 [14:56:00]line Версия ККМ: 001 [14:56:00]line ФМ: 0000000000965340 [14:56:00]line ФД: 188334 [14:56:00]line ФПД: 74829084199178 [14:56:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145559&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188334&fm=74829084199178&tin=02508201610067®Number=0000000000100030&sum=100000 [14:56:00]written 0, free lines is 4095 [14:56:00]OFD Sender: Processing packet 188334 [packets to send 1062, broken 1061] [14:56:00]ProducePacketName [14:56:00]name=ofd_packets/00188334 [14:56:00]OFD Sender: To server: pG, [14:56:00]CommunicateWithHost lk.salyk.kg:30040 [14:56:00]ConnectInit lk.salyk.kg [14:56:00]Connected sock=10 [14:56:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 70 4F 0D 01 C8 B2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 6B 01 00 00 F4 03 04 00 FF BC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DF 02 00 35 04 06 00 44 0E 80 FB 89 0A 89 FC 91 D2 7E 6B 41 2F [14:56:00]Write to MH i2c: 01 00 00 4F 0F 5E [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 07 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: 01 07 00 4F 0F 00 00 00 00 00 62 0C D3 [14:56:00]RasterBufferAndPrint [14:56:00]line [14:56:00]line [14:56:00]line [14:56:00]line [14:56:00]line [14:56:00]written 0, free lines is 3174 [14:56:00]MH_Cut [14:56:00]Write to MH i2c: D1 01 00 56 0F 01 37 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: D1 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: D1 01 00 [14:56:00]MH_I2C_Read... [14:56:00]Read from MH i2c: D1 01 00 56 0F 00 36 [14:56:00]Write to MH i2c: 01 00 00 57 0F 66 [14:56:00]Write i2c OK [14:56:00]MH_I2C_Read... [14:56:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 45 93 47 00 40 D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AE DF 02 00 F4 03 04 00 EC 66 17 67 B6 04 01 00 00 DB CD 03 71 FD 22 42 3A [14:56:00]CommunicateWithHost err = 0 [14:56:00]CheckOFDResponse [14:56:00]1017 (14) - 77093643461234 [14:56:00]1041 (16) - 0000000000965340 [14:56:00]1040 (4) - 188334 [14:56:00]1012 (4) - 22.10.2024 08:48 [14:56:00]1206 (1) - 0 [14:56:00]OFD Sender: Remove packet 188334 [14:56:00]ProducePacketName [14:56:00]name=ofd_packets/00188334 [14:56:00]NVStorageDeleteData [14:56:01]OFD Sender: No OFD packet to send [14:56:02]*** Cut start [14:56:02]*** Partial cut [14:56:02]*** CUTSNS_PIN = 1 [14:56:02]*** CUTSNS_PIN = 0 [14:56:02]*** Brake cut motor [14:56:02]Read from MH i2c: 01 [14:56:02]MH_I2C_Read... [14:56:02]*** Stop cut motor [14:56:02]*** Cut end [14:56:02]Read from MH i2c: 01 07 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: 01 07 00 57 0F 00 00 00 00 00 FF 0F 7B [14:56:02]process_action close_receipt done [14:56:02]requested_data is exist [14:56:02]produce_requested_data [14:56:02]requested_item fm.sn is exist - process it [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 11 00 00 [14:56:02]Write to MH i2c: E2 08 00 58 0F 80 11 00 00 00 00 00 00 E1 [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 17 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 17 00 58 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [14:56:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:56:02]wFMCommunicate OK [14:56:02]requested_item fd.num is exist - process it [14:56:02]SAM_PROTO_GetFieldsCounters [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 13 00 00 [14:56:02]Write to MH i2c: E2 08 00 59 0F 80 13 00 00 00 00 00 00 E4 [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 62 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 62 00 59 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [14:56:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6B 01 00 00 5E 04 04 00 6B 01 00 00 57 04 04 00 6C 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:02]wFMCommunicate OK [14:56:02]SAM_PROTO_GetFieldsCounters done [14:56:02]requested_item shift.num is exist - process it [14:56:02]requested_item shift.opened is exist - process it [14:56:02]req_shift_opened [14:56:02]FM_GetShiftState [14:56:02]SAM_PROTO_GetShiftState [14:56:02]wFMCommunicate request_size=4 [14:56:02]MH_SAM_APDU [14:56:02]CAPDU: 80 13 01 00 [14:56:02]Write to MH i2c: E2 08 00 5A 0F 80 13 01 00 00 00 00 00 E6 [14:56:02]Write i2c OK [14:56:02]MH_I2C_Read... [14:56:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:02]Read from MH i2c: E2 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 0E 00 [14:56:02]MH_I2C_Read... [14:56:02]Read from MH i2c: E2 0E 00 5A 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [14:56:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:56:02]wFMCommunicate OK [14:56:02]SAM_PROTO_GetShiftState done [14:56:02]FM_GetShiftState done [14:56:02]req_shift_opened done [14:56:02]requested_item shift.open_date is exist - process it [14:56:02]req_shift_open_date [14:56:02]req_shift_open_date done [14:56:02]produce_requested_data done [14:56:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188334,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:56:02]process_action_free close_receipt [14:56:02]json_value_free [14:56:02]json_value_free done [14:56:02]process_json_proto returns [14:56:02]Send response to host [14:56:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188334,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:56:02]free response buf [14:56:02]execute_script done [14:56:02]execute_script returns [14:56:02]free content buf [14:56:02]Sock 9.Close socket [14:56:02]Sock 9.Thread stoped [14:56:04]accept exits with 7 [14:56:04]New connection [14:56:04]New thread 3067305316 created [14:56:04]Thread 3067161956 joined [14:56:04]Waiting for new connection... [14:56:04] Sock 7.Parse request [14:56:04]Sock 7.Check first char [14:56:04]Sock 7.First char is OK [14:56:04]request: POST /json_proto HTTP/1.0 [14:56:04]Method: POST [14:56:04]URL: /json_proto [14:56:04]Method is POST - this is cgi request [14:56:04]url: /json_proto [14:56:04]query_string will be loaded in cgi processing [14:56:04]execute_cgi json_proto POST (null) [14:56:04]execute_cgi path=json_proto method=POST [14:56:04]POST find Content-Length [14:56:04]Host: 172.17.42.131:8080 [14:56:04]Content-Length: 679 [14:56:04]Content-Type: application/json [14:56:04] [14:56:04]POST finish read [14:56:04]Found Content-Length = 679 [14:56:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [14:56:04]execute_script... [14:56: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)210390", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [14:56:04]POST & json_proto [14:56:04]process_json_proto [14:56:04]json parsed OK: [14:56:04]protocol is kg_v1.0 [14:56:04]action value=close_receipt [14:56:04]process_action close_receipt [14:56:04]cmd_close_receipt [14:56:04]MH_GetDate [14:56:04]Write to MH i2c: F0 00 00 5B 0F 59 [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: F0 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: F0 09 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: F0 09 00 5B 0F 00 05 BD 17 67 A0 18 CA 66 8A [14:56:04]GetLastDocTimeStamp 1729608959 [14:56:04]current date 1729608965 [14:56:04]FM_GetShiftState [14:56:04]SAM_PROTO_GetShiftState [14:56:04]wFMCommunicate request_size=4 [14:56:04]MH_SAM_APDU [14:56:04]CAPDU: 80 13 01 00 [14:56:04]Write to MH i2c: E2 08 00 5C 0F 80 13 01 00 00 00 00 00 E8 [14:56:04]Write i2c OK [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 [14:56:04]MH_I2C_Read... [14:56:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:04]Read from MH i2c: E2 0E 00 [14:56:04]MH_I2C_Read... [14:56:04]Read from MH i2c: E2 0E 00 5C 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [14:56:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:56:04]wFMCommunicate OK [14:56:04]SAM_PROTO_GetShiftState done [14:56:04]FM_GetShiftState done [14:56:04]opened in 1729556094 [14:56:04]opened+sec_in_day 1729642494 [14:56:04]quantity*price = 200025 [14:56:04]sum+1 = 200026 [14:56:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 364 22.10.2024 14:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188335 ФПД: 278218238329679 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188335&fm=278218238329679&tin=02508201610067®Number=0000000000100030&sum=200000 [14:56:05]StoreToDocumentArchive [14:56:05]shift 461 fd 188335 [14:56:05]save to /storage/0461/doc_00188335 [14:56:05]save last doc name /storage/0461/doc_00188335 to /storage/kkm_last_doc_name [14:56:05]save OK [14:56:05]Clear old archive folders... [14:56:05]ProcessDocumentItem done err = 0, tmpTLVsize=248 [14:56:05]tlvbuf is 01441C00 [14:56:05]SAM_PROTO_ClearQueue [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 09 00 00 [14:56:05]Write to MH i2c: E2 08 00 69 0F 80 09 00 00 00 00 00 00 EA [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 69 0F 00 90 00 EC [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]SAM_PROTO_ClearQueue done [14:56:05]KKMCreateOFDPacket [14:56:05]OFDProtocolAddRootSTLVToBuf [14:56:05]FM_MakeSignedData [14:56:05]FM_MakeSignedData [14:56:05]SAM_PROTO_SignData [14:56:05]wFMCommunicate request_size=4 [14:56:05]MH_SAM_APDU [14:56:05]CAPDU: 80 0D 01 02 [14:56:05]Write to MH i2c: E2 08 00 6A 0F 80 0D 01 02 00 00 00 00 F2 [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:56:05]Read from MH i2c: E2 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 [14:56:05]MH_I2C_Read... [14:56:05]Read from MH i2c: E2 03 00 6A 0F 00 90 00 ED [14:56:05]RAPDU: 90 00 [14:56:05]wFMCommunicate OK [14:56:05]wFMCommunicate request_size=255 [14:56:05]MH_SAM_APDU [14:56: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 32 31 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 6C 01 00 00 F4 03 04 00 05 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DF 02 00 35 04 06 00 FD 09 BB 44 [14:56:05]Write to MH i2c: E2 02 01 6B 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 32 31 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 6C 01 00 00 F4 03 04 00 05 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DF 02 00 35 04 06 00 FD 09 BB 44 00 00 5B [14:56:05]Write i2c OK [14:56:05]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 6B 0F 00 90 00 EE [14:56:06]RAPDU: 90 00 [14:56:06]wFMCommunicate OK [14:56:06]wFMCommunicate request_size=7 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 0D 02 02 02 03 4F [14:56:06]Write to MH i2c: E2 0A 00 6C 0F 80 0D 02 02 02 00 03 4F 00 00 4B [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 03 00 6C 0F 00 90 00 EF [14:56:06]RAPDU: 90 00 [14:56:06]wFMCommunicate OK [14:56:06]wFMCommunicate request_size=4 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 0D 03 02 [14:56:06]Write to MH i2c: E2 08 00 6D 0F 80 0D 03 02 00 00 00 00 F7 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 0B 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 0B 00 6D 0F 00 BA 88 91 55 78 00 18 0A 90 00 BA [14:56:06]RAPDU: BA 88 91 55 78 00 18 0A 90 00 [14:56:06]wFMCommunicate OK [14:56:06]SAM_PROTO_SignData done [14:56:06]FM_MakeSignedData done [14:56:06]CreateOFDProtocolMessage [14:56:06]wFMCommunicate request_size=4 [14:56:06]MH_SAM_APDU [14:56:06]CAPDU: 80 11 00 00 [14:56:06]Write to MH i2c: E2 08 00 6E 0F 80 11 00 00 00 00 00 00 F7 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:06]Read from MH i2c: E2 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 17 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: E2 17 00 6E 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 45 [14:56:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:56:06]wFMCommunicate OK [14:56:06]CreateOFDProtocolMessage done [14:56:06]OFDSenderStorePacket 188335 [14:56:06]StoreOFDPacket docnum=188335 [14:56:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 35 DC 04 01 11 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 6C 01 00 00 F4 03 04 00 05 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DF 02 00 35 04 06 00 FD 09 BB 44 03 4F BA 88 91 55 78 00 18 0A [14:56:06]CheckFolder [14:56:06]dirname=/storage/ofd_packets [14:56:06]CheckFolder done [14:56:06]ProducePacketName [14:56:06]name=ofd_packets/00188335 [14:56:06]NVStorageSaveData ofd_packets/00188335 [14:56:06]File name is /storage/ofd_packets/00188335 [14:56:06]Write 298 bytes [14:56:06]NVStorageSaveData done [14:56:06]OFDSenderStorePacket done [14:56:06]KKMCreateOFDPacket done [14:56:06]NVStorageSaveData kkm_last_timestamp [14:56:06]File name is /storage/kkm_last_timestamp [14:56:06]Write 4 bytes [14:56:06]NVStorageSaveData done [14:56:06]ExternCall_PrintAddStr [14:56:06]wPrintStart [14:56:06]Write to MH i2c: 01 00 00 6F 0F 7E [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 6F 0F 00 00 00 00 00 FF 0F 93 [14:56:06]RasterBufferAndPrint [14:56:06]line Счет N : (1)210390 [14:56:06]line ИНН: 02508201610067 [14:56:06]line Контрольно-Кассовый Чек [14:56:06]line ПРОДАЖА [14:56:06]line ТРК (МРК, ГНК) : 51 [14:56:06]line Товар: 2710194210 [14:56:06]line ДТ-К-5 [14:56:06]line 26.250 * 76.20 [14:56:06]line = 2000.25 [14:56:06]line НДС 12% НСП 1% [14:56:06]line > о реализуемом товаре [14:56:06]line ОКРУГЛЕНИЕ: -0.25 [14:56:06]line ИТОГО: 2000.00 [14:56:06]line Внесено: 2000.00 [14:56:06]line СДАЧА: 0.00 [14:56:06]line НСП 1% : 17.70 [14:56:06]line НДС 12% : 212.42 [14:56:06]line Наличными: 2000.00 [14:56:06]line Безнал.: 0.00 [14:56:06]line Место: АЗС № 86 "Партнер Нефть" [14:56:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:56:06]line СНО: Общий режим [14:56:06]line Чек 364 22.10.2024 14:56 [14:56:06]line Смена: 461 ФФД: 1.0 [14:56:06]line ЗНМ: 0300000155 [14:56:06]line РНМ: 0000000000100030 [14:56:06]line Версия ККМ: 001 [14:56:06]line ФМ: 0000000000965340 [14:56:06]line ФД: 188335 [14:56:06]line ФПД: 278218238329679 [14:56:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188335&fm=278218238329679&tin=02508201610067®Number=0000000000100030&sum=200000 [14:56:06]written 0, free lines is 4095 [14:56:06]OFD Sender: Processing packet 188335 [packets to send 1062, broken 1061] [14:56:06]ProducePacketName [14:56:06]name=ofd_packets/00188335 [14:56:06]OFD Sender: To server: pG, [14:56:06]CommunicateWithHost lk.salyk.kg:30040 [14:56:06]ConnectInit lk.salyk.kg [14:56:06]Connected sock=10 [14:56:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 35 DC 04 01 11 D3 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 6C 01 00 00 F4 03 04 00 05 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DF 02 00 35 04 06 00 FD 09 BB 44 03 4F BA 88 91 55 78 00 18 0A [14:56:06]Write to MH i2c: 01 00 00 9A 0F A9 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: 01 07 00 9A 0F 00 00 00 00 00 6A 0C 26 [14:56:06]RasterBufferAndPrint [14:56:06]line [14:56:06]line [14:56:06]line [14:56:06]line [14:56:06]line [14:56:06]written 0, free lines is 3183 [14:56:06]MH_Cut [14:56:06]Write to MH i2c: D1 01 00 A1 0F 01 82 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: D1 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: D1 01 00 [14:56:06]MH_I2C_Read... [14:56:06]Read from MH i2c: D1 01 00 A1 0F 00 81 [14:56:06]Write to MH i2c: 01 00 00 A2 0F B1 [14:56:06]Write i2c OK [14:56:06]MH_I2C_Read... [14:56:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B4 15 47 00 AB 3A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 AF DF 02 00 F4 03 04 00 F3 66 17 67 B6 04 01 00 00 C4 C1 12 7E CF F3 B2 7A [14:56:07]CommunicateWithHost err = 0 [14:56:07]CheckOFDResponse [14:56:07]1017 (14) - 77093643461234 [14:56:07]1041 (16) - 0000000000965340 [14:56:07]1040 (4) - 188335 [14:56:07]1012 (4) - 22.10.2024 08:48 [14:56:07]1206 (1) - 0 [14:56:07]OFD Sender: Remove packet 188335 [14:56:07]ProducePacketName [14:56:07]name=ofd_packets/00188335 [14:56:07]NVStorageDeleteData [14:56:07]OFD Sender: No OFD packet to send [14:56:08]*** Cut start [14:56:08]*** Partial cut [14:56:08]*** CUTSNS_PIN = 1 [14:56:08]*** CUTSNS_PIN = 0 [14:56:08]*** Brake cut motor [14:56:08]Read from MH i2c: 01 [14:56:08]MH_I2C_Read... [14:56:08]*** Stop cut motor [14:56:08]*** Cut end [14:56:08]Read from MH i2c: 01 07 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: 01 07 00 A2 0F 00 00 00 00 00 FF 0F C6 [14:56:08]process_action close_receipt done [14:56:08]requested_data is exist [14:56:08]produce_requested_data [14:56:08]requested_item fm.sn is exist - process it [14:56:08]wFMCommunicate request_size=4 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 11 00 00 [14:56:08]Write to MH i2c: E2 08 00 A3 0F 80 11 00 00 00 00 00 00 2C [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:56:08]Read from MH i2c: E2 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 17 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 17 00 A3 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7A [14:56:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:56:08]wFMCommunicate OK [14:56:08]requested_item fd.num is exist - process it [14:56:08]SAM_PROTO_GetFieldsCounters [14:56:08]wFMCommunicate request_size=4 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 13 00 00 [14:56:08]Write to MH i2c: E2 08 00 A4 0F 80 13 00 00 00 00 00 00 2F [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:56:08]Read from MH i2c: E2 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 62 00 [14:56:08]MH_I2C_Read... [14:56:08]Read from MH i2c: E2 62 00 A4 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 DB [14:56:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 AF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6C 01 00 00 5E 04 04 00 6C 01 00 00 57 04 04 00 6D 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:56:08]wFMCommunicate OK [14:56:08]SAM_PROTO_GetFieldsCounters done [14:56:08]requested_item shift.num is exist - process it [14:56:08]requested_item shift.opened is exist - process it [14:56:08]req_shift_opened [14:56:08]FM_GetShiftState [14:56:08]SAM_PROTO_GetShiftState [14:56:08]wFMCommunicate request_size=4 [14:56:08]MH_SAM_APDU [14:56:08]CAPDU: 80 13 01 00 [14:56:08]Write to MH i2c: E2 08 00 A5 0F 80 13 01 00 00 00 00 00 31 [14:56:08]Write i2c OK [14:56:08]MH_I2C_Read... [14:56:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:56:09]Read from MH i2c: E2 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0E 00 [14:56:09]MH_I2C_Read... [14:56:09]Read from MH i2c: E2 0E 00 A5 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [14:56:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:56:09]wFMCommunicate OK [14:56:09]SAM_PROTO_GetShiftState done [14:56:09]FM_GetShiftState done [14:56:09]req_shift_opened done [14:56:09]requested_item shift.open_date is exist - process it [14:56:09]req_shift_open_date [14:56:09]req_shift_open_date done [14:56:09]produce_requested_data done [14:56:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188335,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:56:09]process_action_free close_receipt [14:56:09]json_value_free [14:56:09]json_value_free done [14:56:09]process_json_proto returns [14:56:09]Send response to host [14:56:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188335,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:56:09]free response buf [14:56:09]execute_script done [14:56:09]execute_script returns [14:56:09]free content buf [14:56:09]Sock 7.Close socket [14:56:09]Sock 7.Thread stoped [14:56:12]OFD Sender: No OFD packet to send [14:56:17]OFD Sender: No OFD packet to send [14:56:22]OFD Sender: No OFD packet to send [14:56:27]OFD Sender: No OFD packet to send [14:56:32]OFD Sender: No OFD packet to send [14:56:37]OFD Sender: No OFD packet to send [14:56:42]OFD Sender: No OFD packet to send [14:56:47]OFD Sender: No OFD packet to send [14:56:52]OFD Sender: No OFD packet to send [14:56:57]OFD Sender: No OFD packet to send [14:57:02]OFD Sender: No OFD packet to send [14:57:07]OFD Sender: No OFD packet to send [14:57:12]OFD Sender: No OFD packet to send [14:57:17]OFD Sender: No OFD packet to send [14:57:23]OFD Sender: No OFD packet to send [14:57:26]accept exits with 9 [14:57:26]New connection [14:57:26]New thread 3067161956 created [14:57:26]Thread 3067305316 joined [14:57:26]Waiting for new connection... [14:57:26] Sock 9.Parse request [14:57:26]Sock 9.Check first char [14:57:26]Sock 9.First char is OK [14:57:26]request: POST /json_proto HTTP/1.0 [14:57:26]Method: POST [14:57:26]URL: /json_proto [14:57:26]Method is POST - this is cgi request [14:57:26]url: /json_proto [14:57:26]query_string will be loaded in cgi processing [14:57:26]execute_cgi json_proto POST (null) [14:57:26]execute_cgi path=json_proto method=POST [14:57:26]POST find Content-Length [14:57:26]Host: 172.17.42.131:8080 [14:57:26]Content-Length: 678 [14:57:26]Content-Type: application/json [14:57:26] [14:57:26]POST finish read [14:57:26]Found Content-Length = 678 [14:57:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:26]execute_script... [14:57: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)210392", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:26]POST & json_proto [14:57:26]process_json_proto [14:57:26]json parsed OK: [14:57:26]protocol is kg_v1.0 [14:57:26]action value=close_receipt [14:57:26]process_action close_receipt [14:57:26]cmd_close_receipt [14:57:26]MH_GetDate [14:57:26]Write to MH i2c: F0 00 00 A6 0F A4 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: F0 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: F0 09 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: F0 09 00 A6 0F 00 57 BD 17 67 A0 18 CA 66 27 [14:57:26]GetLastDocTimeStamp 1729608965 [14:57:26]current date 1729609047 [14:57:26]FM_GetShiftState [14:57:26]SAM_PROTO_GetShiftState [14:57:26]wFMCommunicate request_size=4 [14:57:26]MH_SAM_APDU [14:57:26]CAPDU: 80 13 01 00 [14:57:26]Write to MH i2c: E2 08 00 A7 0F 80 13 01 00 00 00 00 00 33 [14:57:26]Write i2c OK [14:57:26]MH_I2C_Read... [14:57:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:26]Read from MH i2c: E2 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0E 00 [14:57:26]MH_I2C_Read... [14:57:26]Read from MH i2c: E2 0E 00 A7 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 28 [14:57:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:57:26]wFMCommunicate OK [14:57:26]SAM_PROTO_GetShiftState done [14:57:26]FM_GetShiftState done [14:57:26]opened in 1729556094 [14:57:26]opened+sec_in_day 1729642494 [14:57:26]quantity*price = 75016 [14:57:26]sum+1 = 75017 [14:57:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 365 22.10.2024 14:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188336 ФПД: 162283231643709 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188336&fm=162283231643709&tin=02508201610067®Number=0000000000100030&sum=75000 [14:57:27]StoreToDocumentArchive [14:57:27]shift 461 fd 188336 [14:57:27]save to /storage/0461/doc_00188336 [14:57:27]save last doc name /storage/0461/doc_00188336 to /storage/kkm_last_doc_name [14:57:27]save OK [14:57:27]Clear old archive folders... [14:57:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:57:27]tlvbuf is 01476BD0 [14:57:27]SAM_PROTO_ClearQueue [14:57:27]wFMCommunicate request_size=4 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 09 00 00 [14:57:27]Write to MH i2c: E2 08 00 B4 0F 80 09 00 00 00 00 00 00 35 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 03 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 03 00 B4 0F 00 90 00 37 [14:57:27]RAPDU: 90 00 [14:57:27]wFMCommunicate OK [14:57:27]SAM_PROTO_ClearQueue done [14:57:27]KKMCreateOFDPacket [14:57:27]OFDProtocolAddRootSTLVToBuf [14:57:27]FM_MakeSignedData [14:57:27]FM_MakeSignedData [14:57:27]SAM_PROTO_SignData [14:57:27]wFMCommunicate request_size=4 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 0D 01 02 [14:57:27]Write to MH i2c: E2 08 00 B5 0F 80 0D 01 02 00 00 00 00 3D [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 03 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 03 00 B5 0F 00 90 00 38 [14:57:27]RAPDU: 90 00 [14:57:27]wFMCommunicate OK [14:57:27]wFMCommunicate request_size=255 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 6D 01 00 00 F4 03 04 00 57 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DF 02 00 35 04 06 00 93 [14:57:27]Write to MH i2c: E2 02 01 B6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 6D 01 00 00 F4 03 04 00 57 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DF 02 00 35 04 06 00 93 00 00 1D [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:27]Read from MH i2c: E2 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 03 00 [14:57:27]MH_I2C_Read... [14:57:27]Read from MH i2c: E2 03 00 B6 0F 00 90 00 39 [14:57:27]RAPDU: 90 00 [14:57:27]wFMCommunicate OK [14:57:27]wFMCommunicate request_size=10 [14:57:27]MH_SAM_APDU [14:57:27]CAPDU: 80 0D 02 02 05 98 82 60 08 3D [14:57:27]Write to MH i2c: E2 0D 00 B7 0F 80 0D 02 02 05 00 98 82 60 08 3D 00 00 09 [14:57:27]Write i2c OK [14:57:27]MH_I2C_Read... [14:57:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:28]Read from MH i2c: E2 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 03 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 03 00 B7 0F 00 90 00 3A [14:57:28]RAPDU: 90 00 [14:57:28]wFMCommunicate OK [14:57:28]wFMCommunicate request_size=4 [14:57:28]MH_SAM_APDU [14:57:28]CAPDU: 80 0D 03 02 [14:57:28]Write to MH i2c: E2 08 00 B8 0F 80 0D 03 02 00 00 00 00 42 [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:28]Read from MH i2c: E2 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 0B 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 0B 00 B8 0F 00 63 A3 FD 26 CE D6 DF B8 90 00 A7 [14:57:28]RAPDU: 63 A3 FD 26 CE D6 DF B8 90 00 [14:57:28]wFMCommunicate OK [14:57:28]SAM_PROTO_SignData done [14:57:28]FM_MakeSignedData done [14:57:28]CreateOFDProtocolMessage [14:57:28]wFMCommunicate request_size=4 [14:57:28]MH_SAM_APDU [14:57:28]CAPDU: 80 11 00 00 [14:57:28]Write to MH i2c: E2 08 00 B9 0F 80 11 00 00 00 00 00 00 42 [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]OFD Sender: No OFD packet to send [14:57:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:28]Read from MH i2c: E2 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 17 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: E2 17 00 B9 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 90 [14:57:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:28]wFMCommunicate OK [14:57:28]CreateOFDProtocolMessage done [14:57:28]OFDSenderStorePacket 188336 [14:57:28]StoreOFDPacket docnum=188336 [14:57:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2E 8C 07 01 96 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 6D 01 00 00 F4 03 04 00 57 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DF 02 00 35 04 06 00 93 98 82 60 08 3D 63 A3 FD 26 CE D6 DF B8 [14:57:28]CheckFolder [14:57:28]dirname=/storage/ofd_packets [14:57:28]CheckFolder done [14:57:28]ProducePacketName [14:57:28]name=ofd_packets/00188336 [14:57:28]NVStorageSaveData ofd_packets/00188336 [14:57:28]File name is /storage/ofd_packets/00188336 [14:57:28]Write 301 bytes [14:57:28]NVStorageSaveData done [14:57:28]OFDSenderStorePacket done [14:57:28]KKMCreateOFDPacket done [14:57:28]NVStorageSaveData kkm_last_timestamp [14:57:28]File name is /storage/kkm_last_timestamp [14:57:28]Write 4 bytes [14:57:28]NVStorageSaveData done [14:57:28]ExternCall_PrintAddStr [14:57:28]wPrintStart [14:57:28]Write to MH i2c: 01 00 00 BA 0F C9 [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: 01 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: 01 07 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: 01 07 00 BA 0F 00 00 00 00 00 FF 0F DE [14:57:28]RasterBufferAndPrint [14:57:28]line Счет N : (1)210392 [14:57:28]line ИНН: 02508201610067 [14:57:28]line Контрольно-Кассовый Чек [14:57:28]line ПРОДАЖА [14:57:28]line ТРК (МРК, ГНК) : 23 [14:57:28]line Товар: 2710124500 [14:57:28]line Аи-95-К-3 [14:57:28]line 10.110 * 74.20 [14:57:28]line = 750.16 [14:57:28]line НДС 12% НСП 1% [14:57:28]line > о реализуемом товаре [14:57:28]line ОКРУГЛЕНИЕ: -0.16 [14:57:28]line ИТОГО: 750.00 [14:57:28]line Внесено: 750.00 [14:57:28]line СДАЧА: 0.00 [14:57:28]line НСП 1% : 6.64 [14:57:28]line НДС 12% : 79.66 [14:57:28]line Наличными: 750.00 [14:57:28]line Безнал.: 0.00 [14:57:28]line Место: АЗС № 86 "Партнер Нефть" [14:57:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:57:28]line СНО: Общий режим [14:57:28]line Чек 365 22.10.2024 14:57 [14:57:28]line Смена: 461 ФФД: 1.0 [14:57:28]line ЗНМ: 0300000155 [14:57:28]line РНМ: 0000000000100030 [14:57:28]line Версия ККМ: 001 [14:57:28]line ФМ: 0000000000965340 [14:57:28]line ФД: 188336 [14:57:28]line ФПД: 162283231643709 [14:57:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188336&fm=162283231643709&tin=02508201610067®Number=0000000000100030&sum=75000 [14:57:28]written 0, free lines is 4095 [14:57:28]OFD Sender: Processing packet 188336 [packets to send 1062, broken 1061] [14:57:28]ProducePacketName [14:57:28]name=ofd_packets/00188336 [14:57:28]OFD Sender: To server: pG, [14:57:28]CommunicateWithHost lk.salyk.kg:30040 [14:57:28]ConnectInit lk.salyk.kg [14:57:28]Connected sock=10 [14:57:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2E 8C 07 01 96 A0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 6D 01 00 00 F4 03 04 00 57 BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B0 DF 02 00 35 04 06 00 93 98 82 60 08 3D 63 A3 FD 26 CE D6 DF B8 [14:57:28]Write to MH i2c: 01 00 00 E5 0F F4 [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: 01 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: 01 07 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: 01 07 00 E5 0F 00 00 00 00 00 61 0C 68 [14:57:28]RasterBufferAndPrint [14:57:28]line [14:57:28]line [14:57:28]line [14:57:28]line [14:57:28]line [14:57:28]written 0, free lines is 3174 [14:57:28]MH_Cut [14:57:28]Write to MH i2c: D1 01 00 EC 0F 01 CD [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: D1 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: D1 01 00 [14:57:28]MH_I2C_Read... [14:57:28]Read from MH i2c: D1 01 00 EC 0F 00 CC [14:57:28]Write to MH i2c: 01 00 00 ED 0F FC [14:57:28]Write i2c OK [14:57:28]MH_I2C_Read... [14:57:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 04 47 00 62 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 39 36 35 33 34 30 10 04 04 00 B0 DF 02 00 F4 03 04 00 44 67 17 67 B6 04 01 00 00 14 70 9A 30 9C D0 69 66 [14:57:28]CommunicateWithHost err = 0 [14:57:28]CheckOFDResponse [14:57:28]1017 (14) - 77093643461234 [14:57:28]1041 (16) - 0000000000965340 [14:57:28]1040 (4) - 188336 [14:57:28]1012 (4) - 22.10.2024 08:50 [14:57:28]1206 (1) - 0 [14:57:28]OFD Sender: Remove packet 188336 [14:57:28]ProducePacketName [14:57:28]name=ofd_packets/00188336 [14:57:28]NVStorageDeleteData [14:57:29]OFD Sender: No OFD packet to send [14:57:29]*** Cut start [14:57:29]*** Partial cut [14:57:29]*** CUTSNS_PIN = 1 [14:57:29]*** CUTSNS_PIN = 0 [14:57:30]*** Brake cut motor [14:57:30]Read from MH i2c: 01 [14:57:30]MH_I2C_Read... [14:57:30]*** Stop cut motor [14:57:30]*** Cut end [14:57:30]Read from MH i2c: 01 07 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: 01 07 00 ED 0F 00 00 00 00 00 FF 0F 11 [14:57:30]process_action close_receipt done [14:57:30]requested_data is exist [14:57:30]produce_requested_data [14:57:30]requested_item fm.sn is exist - process it [14:57:30]wFMCommunicate request_size=4 [14:57:30]MH_SAM_APDU [14:57:30]CAPDU: 80 11 00 00 [14:57:30]Write to MH i2c: E2 08 00 EE 0F 80 11 00 00 00 00 00 00 77 [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:30]Read from MH i2c: E2 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 17 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 17 00 EE 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C5 [14:57:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:57:30]wFMCommunicate OK [14:57:30]requested_item fd.num is exist - process it [14:57:30]SAM_PROTO_GetFieldsCounters [14:57:30]wFMCommunicate request_size=4 [14:57:30]MH_SAM_APDU [14:57:30]CAPDU: 80 13 00 00 [14:57:30]Write to MH i2c: E2 08 00 EF 0F 80 13 00 00 00 00 00 00 7A [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:30]Read from MH i2c: E2 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 62 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 62 00 EF 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 2A [14:57:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6D 01 00 00 5E 04 04 00 6D 01 00 00 57 04 04 00 6E 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:57:30]wFMCommunicate OK [14:57:30]SAM_PROTO_GetFieldsCounters done [14:57:30]requested_item shift.num is exist - process it [14:57:30]requested_item shift.opened is exist - process it [14:57:30]req_shift_opened [14:57:30]FM_GetShiftState [14:57:30]SAM_PROTO_GetShiftState [14:57:30]wFMCommunicate request_size=4 [14:57:30]MH_SAM_APDU [14:57:30]CAPDU: 80 13 01 00 [14:57:30]Write to MH i2c: E2 08 00 F0 0F 80 13 01 00 00 00 00 00 7C [14:57:30]Write i2c OK [14:57:30]MH_I2C_Read... [14:57:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:30]Read from MH i2c: E2 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 0E 00 [14:57:30]MH_I2C_Read... [14:57:30]Read from MH i2c: E2 0E 00 F0 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [14:57:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:57:30]wFMCommunicate OK [14:57:30]SAM_PROTO_GetShiftState done [14:57:30]FM_GetShiftState done [14:57:30]req_shift_opened done [14:57:30]requested_item shift.open_date is exist - process it [14:57:30]req_shift_open_date [14:57:30]req_shift_open_date done [14:57:30]produce_requested_data done [14:57:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188336,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:57:30]process_action_free close_receipt [14:57:30]json_value_free [14:57:30]json_value_free done [14:57:30]process_json_proto returns [14:57:30]Send response to host [14:57:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188336,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:57:30]free response buf [14:57:30]execute_script done [14:57:30]execute_script returns [14:57:30]free content buf [14:57:30]Sock 9.Close socket [14:57:30]Sock 9.Thread stoped [14:57:34]OFD Sender: No OFD packet to send [14:57:39]OFD Sender: No OFD packet to send [14:57:44]OFD Sender: No OFD packet to send [14:57:49]OFD Sender: No OFD packet to send [14:57:54]OFD Sender: No OFD packet to send [14:57:59]OFD Sender: No OFD packet to send [14:58:04]OFD Sender: No OFD packet to send [14:58:09]OFD Sender: No OFD packet to send [14:58:14]OFD Sender: No OFD packet to send [14:58:19]OFD Sender: No OFD packet to send [14:58:24]OFD Sender: No OFD packet to send [14:58:29]OFD Sender: No OFD packet to send [14:58:34]OFD Sender: No OFD packet to send [14:58:39]OFD Sender: No OFD packet to send [14:58:44]OFD Sender: No OFD packet to send [14:58:49]OFD Sender: No OFD packet to send [14:58:54]OFD Sender: No OFD packet to send [14:58:59]OFD Sender: No OFD packet to send [14:59:04]OFD Sender: No OFD packet to send [14:59:09]OFD Sender: No OFD packet to send [14:59:14]OFD Sender: No OFD packet to send [14:59:19]OFD Sender: No OFD packet to send [14:59:24]OFD Sender: No OFD packet to send [14:59:29]OFD Sender: No OFD packet to send [14:59:34]OFD Sender: No OFD packet to send [14:59:37]accept exits with 7 [14:59:37]New connection [14:59:37]New thread 3067305316 created [14:59:37]Thread 3067161956 joined [14:59:37]Waiting for new connection... [14:59:37] Sock 7.Parse request [14:59:37]Sock 7.Check first char [14:59:37]Sock 7.First char is OK [14:59:37]request: POST /json_proto HTTP/1.0 [14:59:37]Method: POST [14:59:37]URL: /json_proto [14:59:37]Method is POST - this is cgi request [14:59:37]url: /json_proto [14:59:37]query_string will be loaded in cgi processing [14:59:37]execute_cgi json_proto POST (null) [14:59:37]execute_cgi path=json_proto method=POST [14:59:37]POST find Content-Length [14:59:37]Host: 172.17.42.131:8080 [14:59:37]Content-Length: 682 [14:59:37]Content-Type: application/json [14:59:37] [14:59:37]POST finish read [14:59:37]Found Content-Length = 682 [14:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210393", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:37]execute_script... [14:59: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)210393", "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" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:59:37]POST & json_proto [14:59:37]process_json_proto [14:59:37]json parsed OK: [14:59:37]protocol is kg_v1.0 [14:59:37]action value=close_receipt [14:59:37]process_action close_receipt [14:59:37]cmd_close_receipt [14:59:37]MH_GetDate [14:59:37]Write to MH i2c: F0 00 00 F1 0F EF [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 09 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: F0 09 00 F1 0F 00 DA BD 17 67 A0 18 CA 66 F5 [14:59:37]GetLastDocTimeStamp 1729609047 [14:59:37]current date 1729609178 [14:59:37]FM_GetShiftState [14:59:37]SAM_PROTO_GetShiftState [14:59:37]wFMCommunicate request_size=4 [14:59:37]MH_SAM_APDU [14:59:37]CAPDU: 80 13 01 00 [14:59:37]Write to MH i2c: E2 08 00 F2 0F 80 13 01 00 00 00 00 00 7E [14:59:37]Write i2c OK [14:59:37]MH_I2C_Read... [14:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:37]Read from MH i2c: E2 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0E 00 [14:59:37]MH_I2C_Read... [14:59:37]Read from MH i2c: E2 0E 00 F2 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 73 [14:59:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:59:37]wFMCommunicate OK [14:59:37]SAM_PROTO_GetShiftState done [14:59:37]FM_GetShiftState done [14:59:37]opened in 1729556094 [14:59:37]opened+sec_in_day 1729642494 [14:59:37]quantity*price = 150032 [14:59:37]sum+1 = 150033 [14:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 366 22.10.2024 14:59 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188337 ФПД: 110181581196220 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188337&fm=110181581196220&tin=02508201610067®Number=0000000000100030&sum=150000 [14:59:38]StoreToDocumentArchive [14:59:38]shift 461 fd 188337 [14:59:38]save to /storage/0461/doc_00188337 [14:59:38]save last doc name /storage/0461/doc_00188337 to /storage/kkm_last_doc_name [14:59:38]save OK [14:59:38]Clear old archive folders... [14:59:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:59:38]tlvbuf is B6EFE960 [14:59:38]SAM_PROTO_ClearQueue [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 09 00 00 [14:59:38]Write to MH i2c: E2 08 00 FF 0F 80 09 00 00 00 00 00 00 80 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 03 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 03 00 FF 0F 00 90 00 82 [14:59:38]RAPDU: 90 00 [14:59:38]wFMCommunicate OK [14:59:38]SAM_PROTO_ClearQueue done [14:59:38]KKMCreateOFDPacket [14:59:38]OFDProtocolAddRootSTLVToBuf [14:59:38]FM_MakeSignedData [14:59:38]FM_MakeSignedData [14:59:38]SAM_PROTO_SignData [14:59:38]wFMCommunicate request_size=4 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 0D 01 02 [14:59:38]Write to MH i2c: E2 08 00 00 10 80 0D 01 02 00 00 00 00 89 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:59:38]Read from MH i2c: E2 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 03 00 [14:59:38]MH_I2C_Read... [14:59:38]Read from MH i2c: E2 03 00 00 10 00 90 00 84 [14:59:38]RAPDU: 90 00 [14:59:38]wFMCommunicate OK [14:59:38]wFMCommunicate request_size=255 [14:59:38]MH_SAM_APDU [14:59:38]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 DA BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DF 02 00 35 04 06 00 64 [14:59:38]Write to MH i2c: E2 02 01 01 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 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 DA BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DF 02 00 35 04 06 00 64 00 00 A7 [14:59:38]Write i2c OK [14:59:38]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 01 10 00 90 00 85 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=10 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 02 02 05 35 A6 02 0B BC [14:59:39]Write to MH i2c: E2 0D 00 02 10 80 0D 02 02 05 00 35 A6 02 0B BC 00 00 3A [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 03 00 02 10 00 90 00 86 [14:59:39]RAPDU: 90 00 [14:59:39]wFMCommunicate OK [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 0D 03 02 [14:59:39]Write to MH i2c: E2 08 00 03 10 80 0D 03 02 00 00 00 00 8E [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 0B 00 03 10 00 93 24 30 C4 2C E8 E4 2F 90 00 61 [14:59:39]RAPDU: 93 24 30 C4 2C E8 E4 2F 90 00 [14:59:39]wFMCommunicate OK [14:59:39]SAM_PROTO_SignData done [14:59:39]FM_MakeSignedData done [14:59:39]CreateOFDProtocolMessage [14:59:39]wFMCommunicate request_size=4 [14:59:39]MH_SAM_APDU [14:59:39]CAPDU: 80 11 00 00 [14:59:39]Write to MH i2c: E2 08 00 04 10 80 11 00 00 00 00 00 00 8E [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:39]Read from MH i2c: E2 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: E2 17 00 04 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DC [14:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:39]wFMCommunicate OK [14:59:39]CreateOFDProtocolMessage done [14:59:39]OFDSenderStorePacket 188337 [14:59:39]StoreOFDPacket docnum=188337 [14:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D A0 07 01 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 DA BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DF 02 00 35 04 06 00 64 35 A6 02 0B BC 93 24 30 C4 2C E8 E4 2F [14:59:39]CheckFolder [14:59:39]dirname=/storage/ofd_packets [14:59:39]CheckFolder done [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00188337 [14:59:39]NVStorageSaveData ofd_packets/00188337 [14:59:39]File name is /storage/ofd_packets/00188337 [14:59:39]Write 301 bytes [14:59:39]NVStorageSaveData done [14:59:39]OFDSenderStorePacket done [14:59:39]KKMCreateOFDPacket done [14:59:39]NVStorageSaveData kkm_last_timestamp [14:59:39]File name is /storage/kkm_last_timestamp [14:59:39]Write 4 bytes [14:59:39]NVStorageSaveData done [14:59:39]ExternCall_PrintAddStr [14:59:39]wPrintStart [14:59:39]Write to MH i2c: 01 00 00 05 10 15 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 05 10 00 00 00 00 00 FF 0F 2A [14:59:39]RasterBufferAndPrint [14:59:39]line Счет N : (1)210393 [14:59:39]line ИНН: 02508201610067 [14:59:39]line Контрольно-Кассовый Чек [14:59:39]line ПРОДАЖА [14:59:39]line ТРК (МРК, ГНК) : 33 [14:59:39]line Товар: 2710124500 [14:59:39]line Аи-95-К-3 [14:59:39]line 20.220 * 74.20 [14:59:39]line = 1500.32 [14:59:39]line НДС 12% НСП 1% [14:59:39]line > о реализуемом товаре [14:59:39]line ОКРУГЛЕНИЕ: -0.32 [14:59:39]line ИТОГО: 1500.00 [14:59:39]line Внесено: 1500.00 [14:59:39]line СДАЧА: 0.00 [14:59:39]line НСП 1% : 13.28 [14:59:39]line НДС 12% : 159.33 [14:59:39]line Наличными: 1500.00 [14:59:39]line Безнал.: 0.00 [14:59:39]line Место: АЗС № 86 "Партнер Нефть" [14:59:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [14:59:39]line СНО: Общий режим [14:59:39]line Чек 366 22.10.2024 14:59 [14:59:39]line Смена: 461 ФФД: 1.0 [14:59:39]line ЗНМ: 0300000155 [14:59:39]line РНМ: 0000000000100030 [14:59:39]line Версия ККМ: 001 [14:59:39]line ФМ: 0000000000965340 [14:59:39]line ФД: 188337 [14:59:39]line ФПД: 110181581196220 [14:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T145938&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188337&fm=110181581196220&tin=02508201610067®Number=0000000000100030&sum=150000 [14:59:39]written 0, free lines is 4095 [14:59:39]OFD Sender: Processing packet 188337 [packets to send 1062, broken 1061] [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00188337 [14:59:39]OFD Sender: To server: pG, [14:59:39]CommunicateWithHost lk.salyk.kg:30040 [14:59:39]ConnectInit lk.salyk.kg [14:59:39]Connected sock=10 [14:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D A0 07 01 4F 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 01 00 00 F4 03 04 00 DA BD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DF 02 00 35 04 06 00 64 35 A6 02 0B BC 93 24 30 C4 2C E8 E4 2F [14:59:39]Write to MH i2c: 01 00 00 30 10 40 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: 01 07 00 30 10 00 00 00 00 00 64 0C B7 [14:59:39]RasterBufferAndPrint [14:59:39]line [14:59:39]line [14:59:39]line [14:59:39]line [14:59:39]line [14:59:39]written 0, free lines is 3175 [14:59:39]MH_Cut [14:59:39]Write to MH i2c: D1 01 00 37 10 01 19 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: D1 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: D1 01 00 [14:59:39]MH_I2C_Read... [14:59:39]Read from MH i2c: D1 01 00 37 10 00 18 [14:59:39]Write to MH i2c: 01 00 00 38 10 48 [14:59:39]Write i2c OK [14:59:39]MH_I2C_Read... [14:59:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 19 A6 47 00 04 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B1 DF 02 00 F4 03 04 00 C7 67 17 67 B6 04 01 00 00 19 5F 5A 05 AB 19 17 D7 [14:59:39]CommunicateWithHost err = 0 [14:59:39]CheckOFDResponse [14:59:39]1017 (14) - 77093643461234 [14:59:39]1041 (16) - 0000000000965340 [14:59:39]1040 (4) - 188337 [14:59:39]1012 (4) - 22.10.2024 08:52 [14:59:39]1206 (1) - 0 [14:59:39]OFD Sender: Remove packet 188337 [14:59:39]ProducePacketName [14:59:39]name=ofd_packets/00188337 [14:59:39]NVStorageDeleteData [14:59:40]OFD Sender: No OFD packet to send [14:59:41]*** Cut start [14:59:41]*** Partial cut [14:59:41]*** CUTSNS_PIN = 1 [14:59:41]*** CUTSNS_PIN = 0 [14:59:41]*** Brake cut motor [14:59:41]Read from MH i2c: 01 [14:59:41]MH_I2C_Read... [14:59:41]*** Stop cut motor [14:59:41]*** Cut end [14:59:41]Read from MH i2c: 01 07 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: 01 07 00 38 10 00 00 00 00 00 FF 0F 5D [14:59:41]process_action close_receipt done [14:59:41]requested_data is exist [14:59:41]produce_requested_data [14:59:41]requested_item fm.sn is exist - process it [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 11 00 00 [14:59:41]Write to MH i2c: E2 08 00 39 10 80 11 00 00 00 00 00 00 C3 [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 17 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 17 00 39 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [14:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [14:59:41]wFMCommunicate OK [14:59:41]requested_item fd.num is exist - process it [14:59:41]SAM_PROTO_GetFieldsCounters [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 13 00 00 [14:59:41]Write to MH i2c: E2 08 00 3A 10 80 13 00 00 00 00 00 00 C6 [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 62 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 62 00 3A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 7A [14:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6E 01 00 00 5E 04 04 00 6E 01 00 00 57 04 04 00 6F 01 00 00 19 04 04 00 00 00 00 00 90 00 [14:59:41]wFMCommunicate OK [14:59:41]SAM_PROTO_GetFieldsCounters done [14:59:41]requested_item shift.num is exist - process it [14:59:41]requested_item shift.opened is exist - process it [14:59:41]req_shift_opened [14:59:41]FM_GetShiftState [14:59:41]SAM_PROTO_GetShiftState [14:59:41]wFMCommunicate request_size=4 [14:59:41]MH_SAM_APDU [14:59:41]CAPDU: 80 13 01 00 [14:59:41]Write to MH i2c: E2 08 00 3B 10 80 13 01 00 00 00 00 00 C8 [14:59:41]Write i2c OK [14:59:41]MH_I2C_Read... [14:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:59:41]Read from MH i2c: E2 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 0E 00 [14:59:41]MH_I2C_Read... [14:59:41]Read from MH i2c: E2 0E 00 3B 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BD [14:59:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [14:59:41]wFMCommunicate OK [14:59:41]SAM_PROTO_GetShiftState done [14:59:41]FM_GetShiftState done [14:59:41]req_shift_opened done [14:59:41]requested_item shift.open_date is exist - process it [14:59:41]req_shift_open_date [14:59:41]req_shift_open_date done [14:59:41]produce_requested_data done [14:59:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188337,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [14:59:41]process_action_free close_receipt [14:59:41]json_value_free [14:59:41]json_value_free done [14:59:41]process_json_proto returns [14:59:41]Send response to host [14:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188337,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [14:59:41]free response buf [14:59:41]execute_script done [14:59:41]execute_script returns [14:59:41]free content buf [14:59:41]Sock 7.Close socket [14:59:41]Sock 7.Thread stoped [14:59:45]OFD Sender: No OFD packet to send [14:59:50]OFD Sender: No OFD packet to send [14:59:55]OFD Sender: No OFD packet to send [15:00:00]OFD Sender: No OFD packet to send [15:00:05]OFD Sender: No OFD packet to send [15:00:10]OFD Sender: No OFD packet to send [15:00:15]OFD Sender: No OFD packet to send [15:00:20]OFD Sender: No OFD packet to send [15:00:25]OFD Sender: No OFD packet to send [15:00:30]OFD Sender: No OFD packet to send [15:00:35]OFD Sender: No OFD packet to send [15:00:40]OFD Sender: No OFD packet to send [15:00:45]OFD Sender: No OFD packet to send [15:00:50]OFD Sender: No OFD packet to send [15:00:55]OFD Sender: No OFD packet to send [15:01:00]OFD Sender: No OFD packet to send [15:01:05]OFD Sender: No OFD packet to send [15:01:10]OFD Sender: No OFD packet to send [15:01:15]OFD Sender: No OFD packet to send [15:01:20]OFD Sender: No OFD packet to send [15:01:25]OFD Sender: No OFD packet to send [15:01:30]OFD Sender: No OFD packet to send [15:01:35]OFD Sender: No OFD packet to send [15:01:40]OFD Sender: No OFD packet to send [15:01:46]OFD Sender: No OFD packet to send [15:01:51]OFD Sender: No OFD packet to send [15:01:56]OFD Sender: No OFD packet to send [15:02:01]OFD Sender: No OFD packet to send [15:02:06]OFD Sender: No OFD packet to send [15:02:11]OFD Sender: No OFD packet to send [15:02:16]OFD Sender: No OFD packet to send [15:02:21]OFD Sender: No OFD packet to send [15:02:26]OFD Sender: No OFD packet to send [15:02:31]OFD Sender: No OFD packet to send [15:02:36]OFD Sender: No OFD packet to send [15:02:41]OFD Sender: No OFD packet to send [15:02:46]OFD Sender: No OFD packet to send [15:02:51]OFD Sender: No OFD packet to send [15:02:56]OFD Sender: No OFD packet to send [15:03:01]OFD Sender: No OFD packet to send [15:03:06]OFD Sender: No OFD packet to send [15:03:11]OFD Sender: No OFD packet to send [15:03:16]OFD Sender: No OFD packet to send [15:03:21]OFD Sender: No OFD packet to send [15:03:26]OFD Sender: No OFD packet to send [15:03:31]OFD Sender: No OFD packet to send [15:03:36]OFD Sender: No OFD packet to send [15:03:41]OFD Sender: No OFD packet to send [15:03:46]OFD Sender: No OFD packet to send [15:03:51]OFD Sender: No OFD packet to send [15:03:56]OFD Sender: No OFD packet to send [15:04:01]OFD Sender: No OFD packet to send [15:04:06]OFD Sender: No OFD packet to send [15:04:11]OFD Sender: No OFD packet to send [15:04:16]OFD Sender: No OFD packet to send [15:04:21]OFD Sender: No OFD packet to send [15:04:26]OFD Sender: No OFD packet to send [15:04:31]OFD Sender: No OFD packet to send [15:04:36]OFD Sender: No OFD packet to send [15:04:37]accept exits with 9 [15:04:37]New connection [15:04:37]New thread 3067161956 created [15:04:37]Thread 3067305316 joined [15:04:37]Waiting for new connection... [15:04:37] Sock 9.Parse request [15:04:37]Sock 9.Check first char [15:04:37]Sock 9.First char is OK [15:04:37]request: POST /json_proto HTTP/1.0 [15:04:37]Method: POST [15:04:37]URL: /json_proto [15:04:37]Method is POST - this is cgi request [15:04:37]url: /json_proto [15:04:37]query_string will be loaded in cgi processing [15:04:37]execute_cgi json_proto POST (null) [15:04:37]execute_cgi path=json_proto method=POST [15:04:37]POST find Content-Length [15:04:37]Host: 172.17.42.131:8080 [15:04:37]Content-Length: 977 [15:04:37]Content-Type: application/json [15:04:37] [15:04:37]POST finish read [15:04:37]Found Content-Length = 977 [15:04:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 86.440, "sum" : 6500.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 86.44 \u0441\u043E\u043C", "deposit" : 6500.00, "total" : 6500.00, "payments": [ { "type": 0, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:37]execute_script... [15: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)210395", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 75.20, "quantity" : 86.440, "sum" : 6500.29, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u000A\u0414\u0438\u0441\u043A\u043E\u043D\u0442\u043D\u0430\u044F \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0430\u000A\u0414\u0422\u000A\u043D\u043E\u043C\u0435\u0440 86\u000A\u0441\u044D\u043A\u043E\u043D\u043E\u043C\u043B\u0435\u043D\u043E 86.44 \u0441\u043E\u043C", "deposit" : 6500.00, "total" : 6500.00, "payments": [ { "type": 0, "sum" : 6500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:04:37]POST & json_proto [15:04:37]process_json_proto [15:04:37]json parsed OK: [15:04:37]protocol is kg_v1.0 [15:04:37]action value=close_receipt [15:04:37]process_action close_receipt [15:04:37]cmd_close_receipt [15:04:37]MH_GetDate [15:04:37]Write to MH i2c: F0 00 00 3C 10 3B [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: F0 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: F0 09 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: F0 09 00 3C 10 00 06 BF 17 67 A0 18 CA 66 6F [15:04:37]GetLastDocTimeStamp 1729609178 [15:04:37]current date 1729609478 [15:04:37]FM_GetShiftState [15:04:37]SAM_PROTO_GetShiftState [15:04:37]wFMCommunicate request_size=4 [15:04:37]MH_SAM_APDU [15:04:37]CAPDU: 80 13 01 00 [15:04:37]Write to MH i2c: E2 08 00 3D 10 80 13 01 00 00 00 00 00 CA [15:04:37]Write i2c OK [15:04:37]MH_I2C_Read... [15:04:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:37]Read from MH i2c: E2 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 0E 00 [15:04:37]MH_I2C_Read... [15:04:37]Read from MH i2c: E2 0E 00 3D 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BF [15:04:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:04:37]wFMCommunicate OK [15:04:37]SAM_PROTO_GetShiftState done [15:04:37]FM_GetShiftState done [15:04:37]opened in 1729556094 [15:04:37]opened+sec_in_day 1729642494 [15:04:37]quantity*price = 650028 [15:04:37]sum+1 = 650030 [15:04:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.29 ИТОГО: 6500.00 Внесено: 6500.00 СДАЧА: 0.00 НСП 1% : 57.52 НДС 12% : 690.30 Наличными: 6500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 367 22.10.2024 15:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Дисконтная программа ДТ номер 86 сэкономлено 86.44 сом ФМ: 0000000000965340 ФД: 188338 ФПД: 153631317140259 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188338&fm=153631317140259&tin=02508201610067®Number=0000000000100030&sum=650000 [15:04:38]StoreToDocumentArchive [15:04:38]shift 461 fd 188338 [15:04:38]save to /storage/0461/doc_00188338 [15:04:38]save last doc name /storage/0461/doc_00188338 to /storage/kkm_last_doc_name [15:04:38]save OK [15:04:38]Clear old archive folders... [15:04:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:04:38]tlvbuf is 01423030 [15:04:38]SAM_PROTO_ClearQueue [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 09 00 00 [15:04:38]Write to MH i2c: E2 08 00 4A 10 80 09 00 00 00 00 00 00 CC [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 4A 10 00 90 00 CE [15:04:38]RAPDU: 90 00 [15:04:38]wFMCommunicate OK [15:04:38]SAM_PROTO_ClearQueue done [15:04:38]KKMCreateOFDPacket [15:04:38]OFDProtocolAddRootSTLVToBuf [15:04:38]FM_MakeSignedData [15:04:38]FM_MakeSignedData [15:04:38]SAM_PROTO_SignData [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 0D 01 02 [15:04:38]Write to MH i2c: E2 08 00 4B 10 80 0D 01 02 00 00 00 00 D4 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 4B 10 00 90 00 CF [15:04:38]RAPDU: 90 00 [15:04:38]wFMCommunicate OK [15:04:38]wFMCommunicate request_size=255 [15:04:38]MH_SAM_APDU [15: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 51 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2D EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 06 BF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DF 02 00 35 04 06 00 8B BA 14 15 [15:04:38]Write to MH i2c: E2 02 01 4C 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 51 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2D EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 06 BF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DF 02 00 35 04 06 00 8B BA 14 15 00 00 7B [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 4C 10 00 90 00 D0 [15:04:38]RAPDU: 90 00 [15:04:38]wFMCommunicate OK [15:04:38]wFMCommunicate request_size=7 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 0D 02 02 02 A3 23 [15:04:38]Write to MH i2c: E2 0A 00 4D 10 80 0D 02 02 02 00 A3 23 00 00 A1 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 03 00 4D 10 00 90 00 D1 [15:04:38]RAPDU: 90 00 [15:04:38]wFMCommunicate OK [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 0D 03 02 [15:04:38]Write to MH i2c: E2 08 00 4E 10 80 0D 03 02 00 00 00 00 D9 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 0B 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 0B 00 4E 10 00 91 2E 67 2E 19 03 1D 7C 90 00 E3 [15:04:38]RAPDU: 91 2E 67 2E 19 03 1D 7C 90 00 [15:04:38]wFMCommunicate OK [15:04:38]SAM_PROTO_SignData done [15:04:38]FM_MakeSignedData done [15:04:38]CreateOFDProtocolMessage [15:04:38]wFMCommunicate request_size=4 [15:04:38]MH_SAM_APDU [15:04:38]CAPDU: 80 11 00 00 [15:04:38]Write to MH i2c: E2 08 00 4F 10 80 11 00 00 00 00 00 00 D9 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:38]Read from MH i2c: E2 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 17 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: E2 17 00 4F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [15:04:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:04:38]wFMCommunicate OK [15:04:38]CreateOFDProtocolMessage done [15:04:38]OFDSenderStorePacket 188338 [15:04:38]StoreOFDPacket docnum=188338 [15:04:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 EA 03 04 01 39 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 51 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2D EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 06 BF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DF 02 00 35 04 06 00 8B BA 14 15 A3 23 91 2E 67 2E 19 03 1D 7C [15:04:38]CheckFolder [15:04:38]dirname=/storage/ofd_packets [15:04:38]CheckFolder done [15:04:38]ProducePacketName [15:04:38]name=ofd_packets/00188338 [15:04:38]NVStorageSaveData ofd_packets/00188338 [15:04:38]File name is /storage/ofd_packets/00188338 [15:04:38]Write 298 bytes [15:04:38]NVStorageSaveData done [15:04:38]OFDSenderStorePacket done [15:04:38]KKMCreateOFDPacket done [15:04:38]NVStorageSaveData kkm_last_timestamp [15:04:38]File name is /storage/kkm_last_timestamp [15:04:38]Write 4 bytes [15:04:38]NVStorageSaveData done [15:04:38]ExternCall_PrintAddStr [15:04:38]wPrintStart [15:04:38]Write to MH i2c: 01 00 00 50 10 60 [15:04:38]Write i2c OK [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: 01 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: 01 07 00 [15:04:38]MH_I2C_Read... [15:04:38]Read from MH i2c: 01 07 00 50 10 00 00 00 00 00 FF 0F 75 [15:04:38]RasterBufferAndPrint [15:04:38]line Счет N : (1)210395 [15:04:38]line ИНН: 02508201610067 [15:04:38]line Контрольно-Кассовый Чек [15:04:38]line ПРОДАЖА [15:04:38]line ТРК (МРК, ГНК) : 51 [15:04:38]line Товар: 2710194210 [15:04:38]line ДТ-К-5 [15:04:38]line 86.440 * 75.20 [15:04:38]line = 6500.29 [15:04:38]line НДС 12% НСП 1% [15:04:38]line > о реализуемом товаре [15:04:38]line ОКРУГЛЕНИЕ: -0.29 [15:04:38]line ИТОГО: 6500.00 [15:04:38]line Внесено: 6500.00 [15:04:38]line СДАЧА: 0.00 [15:04:38]line НСП 1% : 57.52 [15:04:38]line НДС 12% : 690.30 [15:04:38]line Наличными: 6500.00 [15:04:38]line Безнал.: 0.00 [15:04:38]line Место: АЗС № 86 "Партнер Нефть" [15:04:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:04:38]line СНО: Общий режим [15:04:38]line Чек 367 22.10.2024 15:04 [15:04:38]line Смена: 461 ФФД: 1.0 [15:04:38]line ЗНМ: 0300000155 [15:04:38]line РНМ: 0000000000100030 [15:04:38]line Версия ККМ: 001 [15:04:38]line [15:04:38]line Дисконтная программа [15:04:38]line ДТ [15:04:38]line номер 86 [15:04:38]line сэкономлено 86.44 сом [15:04:38]line ФМ: 0000000000965340 [15:04:38]line ФД: 188338 [15:04:38]line ФПД: 153631317140259 [15:04:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150438&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188338&fm=153631317140259&tin=02508201610067®Number=0000000000100030&sum=650000 [15:04:39]written 0, free lines is 4095 [15:04:39]OFD Sender: Processing packet 188338 [packets to send 1062, broken 1061] [15:04:39]ProducePacketName [15:04:39]name=ofd_packets/00188338 [15:04:39]OFD Sender: To server: pG, [15:04:39]CommunicateWithHost lk.salyk.kg:30040 [15:04:39]ConnectInit lk.salyk.kg [15:04:39]Connected sock=10 [15:04:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 EA 03 04 01 39 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A8 51 01 00 00 00 00 37 04 06 00 60 1D 00 00 00 00 13 04 06 00 2D EB 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 EB 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 78 16 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A6 0D 01 00 00 00 07 04 06 00 10 EB 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6F 01 00 00 F4 03 04 00 06 BF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B2 DF 02 00 35 04 06 00 8B BA 14 15 A3 23 91 2E 67 2E 19 03 1D 7C [15:04:39]Write to MH i2c: 01 00 00 80 10 90 [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: 01 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: 01 07 00 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: 01 07 00 80 10 00 00 00 00 00 E9 0B 8B [15:04:39]RasterBufferAndPrint [15:04:39]line [15:04:39]line [15:04:39]line [15:04:39]line [15:04:39]line [15:04:39]written 0, free lines is 3052 [15:04:39]MH_Cut [15:04:39]Write to MH i2c: D1 01 00 87 10 01 69 [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: D1 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: D1 01 00 [15:04:39]MH_I2C_Read... [15:04:39]Read from MH i2c: D1 01 00 87 10 00 68 [15:04:39]Write to MH i2c: 01 00 00 88 10 98 [15:04:39]Write i2c OK [15:04:39]MH_I2C_Read... [15:04:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4C E4 47 00 3C 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 39 36 35 33 34 30 10 04 04 00 B2 DF 02 00 F4 03 04 00 F3 68 17 67 B6 04 01 00 00 D7 CF 73 20 CE 8E 28 98 [15:04:39]CommunicateWithHost err = 0 [15:04:39]CheckOFDResponse [15:04:39]1017 (14) - 77093643461234 [15:04:39]1041 (16) - 0000000000965340 [15:04:39]1040 (4) - 188338 [15:04:39]1012 (4) - 22.10.2024 08:57 [15:04:39]1206 (1) - 0 [15:04:39]OFD Sender: Remove packet 188338 [15:04:39]ProducePacketName [15:04:39]name=ofd_packets/00188338 [15:04:39]NVStorageDeleteData [15:04:40]OFD Sender: No OFD packet to send [15:04:41]*** Cut start [15:04:41]*** Partial cut [15:04:41]*** CUTSNS_PIN = 1 [15:04:41]*** CUTSNS_PIN = 0 [15:04:41]*** Brake cut motor [15:04:41]Read from MH i2c: 01 [15:04:41]MH_I2C_Read... [15:04:41]*** Stop cut motor [15:04:41]*** Cut end [15:04:41]Read from MH i2c: 01 07 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: 01 07 00 88 10 00 00 00 00 00 FF 0F AD [15:04:41]process_action close_receipt done [15:04:41]requested_data is exist [15:04:41]produce_requested_data [15:04:41]requested_item fm.sn is exist - process it [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 11 00 00 [15:04:41]Write to MH i2c: E2 08 00 89 10 80 11 00 00 00 00 00 00 13 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 17 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 17 00 89 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [15:04:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:04:41]wFMCommunicate OK [15:04:41]requested_item fd.num is exist - process it [15:04:41]SAM_PROTO_GetFieldsCounters [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 13 00 00 [15:04:41]Write to MH i2c: E2 08 00 8A 10 80 13 00 00 00 00 00 00 16 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 62 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 62 00 8A 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [15:04:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 6F 01 00 00 5E 04 04 00 6F 01 00 00 57 04 04 00 70 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_GetFieldsCounters done [15:04:41]requested_item shift.num is exist - process it [15:04:41]requested_item shift.opened is exist - process it [15:04:41]req_shift_opened [15:04:41]FM_GetShiftState [15:04:41]SAM_PROTO_GetShiftState [15:04:41]wFMCommunicate request_size=4 [15:04:41]MH_SAM_APDU [15:04:41]CAPDU: 80 13 01 00 [15:04:41]Write to MH i2c: E2 08 00 8B 10 80 13 01 00 00 00 00 00 18 [15:04:41]Write i2c OK [15:04:41]MH_I2C_Read... [15:04:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:04:41]Read from MH i2c: E2 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0E 00 [15:04:41]MH_I2C_Read... [15:04:41]Read from MH i2c: E2 0E 00 8B 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0D [15:04:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:04:41]wFMCommunicate OK [15:04:41]SAM_PROTO_GetShiftState done [15:04:41]FM_GetShiftState done [15:04:41]req_shift_opened done [15:04:41]requested_item shift.open_date is exist - process it [15:04:41]req_shift_open_date [15:04:41]req_shift_open_date done [15:04:41]produce_requested_data done [15:04:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188338,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:04:41]process_action_free close_receipt [15:04:41]json_value_free [15:04:41]json_value_free done [15:04:41]process_json_proto returns [15:04:41]Send response to host [15:04:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188338,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:04:41]free response buf [15:04:41]execute_script done [15:04:41]execute_script returns [15:04:41]free content buf [15:04:41]Sock 9.Close socket [15:04:41]Sock 9.Thread stoped [15:04:45]OFD Sender: No OFD packet to send [15:04:50]OFD Sender: No OFD packet to send [15:04:55]OFD Sender: No OFD packet to send [15:05:00]OFD Sender: No OFD packet to send [15:05:05]OFD Sender: No OFD packet to send [15:05:10]OFD Sender: No OFD packet to send [15:05:15]OFD Sender: No OFD packet to send [15:05:20]OFD Sender: No OFD packet to send [15:05:25]OFD Sender: No OFD packet to send [15:05:30]OFD Sender: No OFD packet to send [15:05:35]OFD Sender: No OFD packet to send [15:05:40]OFD Sender: No OFD packet to send [15:05:45]OFD Sender: No OFD packet to send [15:05:50]OFD Sender: No OFD packet to send [15:05:55]OFD Sender: No OFD packet to send [15:06:00]OFD Sender: No OFD packet to send [15:06:05]OFD Sender: No OFD packet to send [15:06:10]OFD Sender: No OFD packet to send [15:06:15]OFD Sender: No OFD packet to send [15:06:20]OFD Sender: No OFD packet to send [15:06:25]OFD Sender: No OFD packet to send [15:06:30]OFD Sender: No OFD packet to send [15:06:35]OFD Sender: No OFD packet to send [15:06:40]OFD Sender: No OFD packet to send [15:06:45]OFD Sender: No OFD packet to send [15:06:50]OFD Sender: No OFD packet to send [15:06:55]OFD Sender: No OFD packet to send [15:07:00]OFD Sender: No OFD packet to send [15:07:06]OFD Sender: No OFD packet to send [15:07:11]OFD Sender: No OFD packet to send [15:07:16]OFD Sender: No OFD packet to send [15:07:21]OFD Sender: No OFD packet to send [15:07:26]OFD Sender: No OFD packet to send [15:07:31]OFD Sender: No OFD packet to send [15:07:36]OFD Sender: No OFD packet to send [15:07:41]OFD Sender: No OFD packet to send [15:07:46]OFD Sender: No OFD packet to send [15:07:51]OFD Sender: No OFD packet to send [15:07:56]OFD Sender: No OFD packet to send [15:08:01]OFD Sender: No OFD packet to send [15:08:06]OFD Sender: No OFD packet to send [15:08:11]OFD Sender: No OFD packet to send [15:08:16]OFD Sender: No OFD packet to send [15:08:21]OFD Sender: No OFD packet to send [15:08:26]OFD Sender: No OFD packet to send [15:08:31]OFD Sender: No OFD packet to send [15:08:36]OFD Sender: No OFD packet to send [15:08:41]OFD Sender: No OFD packet to send [15:08:46]OFD Sender: No OFD packet to send [15:08:51]OFD Sender: No OFD packet to send [15:08:56]OFD Sender: No OFD packet to send [15:09:01]OFD Sender: No OFD packet to send [15:09:06]OFD Sender: No OFD packet to send [15:09:11]OFD Sender: No OFD packet to send [15:09:16]OFD Sender: No OFD packet to send [15:09:21]OFD Sender: No OFD packet to send [15:09:26]OFD Sender: No OFD packet to send [15:09:31]OFD Sender: No OFD packet to send [15:09:36]OFD Sender: No OFD packet to send [15:09:41]OFD Sender: No OFD packet to send [15:09:46]accept exits with 7 [15:09:46]New connection [15:09:46]New thread 3067305316 created [15:09:46]Thread 3067161956 joined [15:09:46]Waiting for new connection... [15:09:46] Sock 7.Parse request [15:09:46]Sock 7.Check first char [15:09:46]Sock 7.First char is OK [15:09:46]request: POST /json_proto HTTP/1.0 [15:09:46]Method: POST [15:09:46]URL: /json_proto [15:09:46]Method is POST - this is cgi request [15:09:46]url: /json_proto [15:09:46]query_string will be loaded in cgi processing [15:09:46]execute_cgi json_proto POST (null) [15:09:46]execute_cgi path=json_proto method=POST [15:09:46]POST find Content-Length [15:09:46]Host: 172.17.42.131:8080 [15:09:46]Content-Length: 679 [15:09:46]Content-Type: application/json [15:09:46] [15:09:46]POST finish read [15:09:46]Found Content-Length = 679 [15:09:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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" ] } } [15:09:46]execute_script... [15:09:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210396", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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" ] } } [15:09:46]POST & json_proto [15:09:46]process_json_proto [15:09:46]json parsed OK: [15:09:46]protocol is kg_v1.0 [15:09:46]action value=close_receipt [15:09:46]process_action close_receipt [15:09:46]cmd_close_receipt [15:09:46]MH_GetDate [15:09:46]Write to MH i2c: F0 00 00 8C 10 8B [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: F0 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: F0 09 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: F0 09 00 8C 10 00 3B C0 17 67 A0 18 CA 66 F5 [15:09:46]GetLastDocTimeStamp 1729609478 [15:09:46]current date 1729609787 [15:09:46]FM_GetShiftState [15:09:46]SAM_PROTO_GetShiftState [15:09:46]wFMCommunicate request_size=4 [15:09:46]MH_SAM_APDU [15:09:46]CAPDU: 80 13 01 00 [15:09:46]Write to MH i2c: E2 08 00 8D 10 80 13 01 00 00 00 00 00 1A [15:09:46]Write i2c OK [15:09:46]MH_I2C_Read... [15:09:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:46]Read from MH i2c: E2 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 0E 00 [15:09:46]MH_I2C_Read... [15:09:46]Read from MH i2c: E2 0E 00 8D 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0F [15:09:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:09:46]wFMCommunicate OK [15:09:46]SAM_PROTO_GetShiftState done [15:09:46]FM_GetShiftState done [15:09:46]opened in 1729556094 [15:09:46]opened+sec_in_day 1729642494 [15:09:46]quantity*price = 150037 [15:09:46]sum+1 = 150039 [15:09:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 368 22.10.2024 15:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188339 ФПД: 100940985581463 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150947&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188339&fm=100940985581463&tin=02508201610067®Number=0000000000100030&sum=150000 [15:09:47]StoreToDocumentArchive [15:09:47]shift 461 fd 188339 [15:09:47]save to /storage/0461/doc_00188339 [15:09:47]save last doc name /storage/0461/doc_00188339 to /storage/kkm_last_doc_name [15:09:47]save OK [15:09:47]Clear old archive folders... [15:09:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:09:47]tlvbuf is 0146A260 [15:09:47]SAM_PROTO_ClearQueue [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 09 00 00 [15:09:47]Write to MH i2c: E2 08 00 9A 10 80 09 00 00 00 00 00 00 1C [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 9A 10 00 90 00 1E [15:09:47]RAPDU: 90 00 [15:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_ClearQueue done [15:09:47]KKMCreateOFDPacket [15:09:47]OFDProtocolAddRootSTLVToBuf [15:09:47]FM_MakeSignedData [15:09:47]FM_MakeSignedData [15:09:47]SAM_PROTO_SignData [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 0D 01 02 [15:09:47]Write to MH i2c: E2 08 00 9B 10 80 0D 01 02 00 00 00 00 24 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 9B 10 00 90 00 1F [15:09:47]RAPDU: 90 00 [15:09:47]wFMCommunicate OK [15:09:47]wFMCommunicate request_size=255 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 3B C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DF 02 00 35 04 06 00 5B CE 27 96 [15:09:47]Write to MH i2c: E2 02 01 9C 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 3B C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DF 02 00 35 04 06 00 5B CE 27 96 00 00 38 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 9C 10 00 90 00 20 [15:09:47]RAPDU: 90 00 [15:09:47]wFMCommunicate OK [15:09:47]wFMCommunicate request_size=7 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 0D 02 02 02 BF 97 [15:09:47]Write to MH i2c: E2 0A 00 9D 10 80 0D 02 02 02 00 BF 97 00 00 81 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 03 00 9D 10 00 90 00 21 [15:09:47]RAPDU: 90 00 [15:09:47]wFMCommunicate OK [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 0D 03 02 [15:09:47]Write to MH i2c: E2 08 00 9E 10 80 0D 03 02 00 00 00 00 29 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0B 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 0B 00 9E 10 00 DA 5C 38 FF 11 92 AA A1 90 00 85 [15:09:47]RAPDU: DA 5C 38 FF 11 92 AA A1 90 00 [15:09:47]wFMCommunicate OK [15:09:47]SAM_PROTO_SignData done [15:09:47]FM_MakeSignedData done [15:09:47]CreateOFDProtocolMessage [15:09:47]wFMCommunicate request_size=4 [15:09:47]MH_SAM_APDU [15:09:47]CAPDU: 80 11 00 00 [15:09:47]Write to MH i2c: E2 08 00 9F 10 80 11 00 00 00 00 00 00 29 [15:09:47]Write i2c OK [15:09:47]MH_I2C_Read... [15:09:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:47]Read from MH i2c: E2 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 17 00 [15:09:47]MH_I2C_Read... [15:09:47]Read from MH i2c: E2 17 00 9F 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [15:09:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:09:47]wFMCommunicate OK [15:09:47]CreateOFDProtocolMessage done [15:09:47]OFDSenderStorePacket 188339 [15:09:47]StoreOFDPacket docnum=188339 [15:09:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 48 79 04 01 C7 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 3B C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DF 02 00 35 04 06 00 5B CE 27 96 BF 97 DA 5C 38 FF 11 92 AA A1 [15:09:47]CheckFolder [15:09:47]dirname=/storage/ofd_packets [15:09:47]CheckFolder done [15:09:47]ProducePacketName [15:09:47]name=ofd_packets/00188339 [15:09:47]NVStorageSaveData ofd_packets/00188339 [15:09:47]File name is /storage/ofd_packets/00188339 [15:09:47]Write 298 bytes [15:09:47]NVStorageSaveData done [15:09:47]OFDSenderStorePacket done [15:09:47]KKMCreateOFDPacket done [15:09:47]NVStorageSaveData kkm_last_timestamp [15:09:47]File name is /storage/kkm_last_timestamp [15:09:47]Write 4 bytes [15:09:47]NVStorageSaveData done [15:09:48]ExternCall_PrintAddStr [15:09:48]wPrintStart [15:09:48]Write to MH i2c: 01 00 00 A0 10 B0 [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: 01 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: 01 07 00 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: 01 07 00 A0 10 00 00 00 00 00 FF 0F C5 [15:09:48]RasterBufferAndPrint [15:09:48]line Счет N : (1)210396 [15:09:48]line ИНН: 02508201610067 [15:09:48]line Контрольно-Кассовый Чек [15:09:48]line ПРОДАЖА [15:09:48]line ТРК (МРК, ГНК) : 51 [15:09:48]line Товар: 2710194210 [15:09:48]line ДТ-К-5 [15:09:48]line 19.690 * 76.20 [15:09:48]line = 1500.38 [15:09:48]line НДС 12% НСП 1% [15:09:48]line > о реализуемом товаре [15:09:48]line ОКРУГЛЕНИЕ: -0.38 [15:09:48]line ИТОГО: 1500.00 [15:09:48]line Внесено: 1500.00 [15:09:48]line СДАЧА: 0.00 [15:09:48]line НСП 1% : 13.28 [15:09:48]line НДС 12% : 159.33 [15:09:48]line Наличными: 1500.00 [15:09:48]line Безнал.: 0.00 [15:09:48]line Место: АЗС № 86 "Партнер Нефть" [15:09:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:09:48]line СНО: Общий режим [15:09:48]line Чек 368 22.10.2024 15:09 [15:09:48]line Смена: 461 ФФД: 1.0 [15:09:48]line ЗНМ: 0300000155 [15:09:48]line РНМ: 0000000000100030 [15:09:48]line Версия ККМ: 001 [15:09:48]line ФМ: 0000000000965340 [15:09:48]line ФД: 188339 [15:09:48]line ФПД: 100940985581463 [15:09:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T150947&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188339&fm=100940985581463&tin=02508201610067®Number=0000000000100030&sum=150000 [15:09:48]OFD Sender: Processing packet 188339 [packets to send 1062, broken 1061] [15:09:48]ProducePacketName [15:09:48]name=ofd_packets/00188339 [15:09:48]OFD Sender: To server: pG, [15:09:48]CommunicateWithHost lk.salyk.kg:30040 [15:09:48]ConnectInit lk.salyk.kg [15:09:48]written 0, free lines is 4095 [15:09:48]Connected sock=10 [15:09:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 48 79 04 01 C7 E8 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 01 00 00 F4 03 04 00 3B C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B3 DF 02 00 35 04 06 00 5B CE 27 96 BF 97 DA 5C 38 FF 11 92 AA A1 [15:09:48]Write to MH i2c: 01 00 00 CB 10 DB [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: 01 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: 01 07 00 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: 01 07 00 CB 10 00 00 00 00 00 61 0C 4F [15:09:48]RasterBufferAndPrint [15:09:48]line [15:09:48]line [15:09:48]line [15:09:48]line [15:09:48]line [15:09:48]written 0, free lines is 3173 [15:09:48]MH_Cut [15:09:48]Write to MH i2c: D1 01 00 D2 10 01 B4 [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: D1 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: D1 01 00 [15:09:48]MH_I2C_Read... [15:09:48]Read from MH i2c: D1 01 00 D2 10 00 B3 [15:09:48]Write to MH i2c: 01 00 00 D3 10 E3 [15:09:48]Write i2c OK [15:09:48]MH_I2C_Read... [15:09:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 D6 47 00 B9 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 39 36 35 33 34 30 10 04 04 00 B3 DF 02 00 F4 03 04 00 28 6A 17 67 B6 04 01 00 00 EF 39 0F E8 75 31 56 72 [15:09:48]CommunicateWithHost err = 0 [15:09:48]CheckOFDResponse [15:09:48]1017 (14) - 77093643461234 [15:09:48]1041 (16) - 0000000000965340 [15:09:48]1040 (4) - 188339 [15:09:48]1012 (4) - 22.10.2024 09:02 [15:09:48]1206 (1) - 0 [15:09:48]OFD Sender: Remove packet 188339 [15:09:48]ProducePacketName [15:09:48]name=ofd_packets/00188339 [15:09:48]NVStorageDeleteData [15:09:49]OFD Sender: No OFD packet to send [15:09:50]*** Cut start [15:09:50]*** Partial cut [15:09:50]*** CUTSNS_PIN = 1 [15:09:50]*** CUTSNS_PIN = 0 [15:09:50]*** Brake cut motor [15:09:50]Read from MH i2c: 01 [15:09:50]MH_I2C_Read... [15:09:50]*** Stop cut motor [15:09:50]*** Cut end [15:09:50]Read from MH i2c: 01 07 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: 01 07 00 D3 10 00 00 00 00 00 FF 0F F8 [15:09:50]process_action close_receipt done [15:09:50]requested_data is exist [15:09:50]produce_requested_data [15:09:50]requested_item fm.sn is exist - process it [15:09:50]wFMCommunicate request_size=4 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 11 00 00 [15:09:50]Write to MH i2c: E2 08 00 D4 10 80 11 00 00 00 00 00 00 5E [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 17 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 17 00 D4 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [15:09:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:09:50]wFMCommunicate OK [15:09:50]requested_item fd.num is exist - process it [15:09:50]SAM_PROTO_GetFieldsCounters [15:09:50]wFMCommunicate request_size=4 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 13 00 00 [15:09:50]Write to MH i2c: E2 08 00 D5 10 80 13 00 00 00 00 00 00 61 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 62 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 62 00 D5 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 1D [15:09:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 70 01 00 00 5E 04 04 00 70 01 00 00 57 04 04 00 71 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:09:50]wFMCommunicate OK [15:09:50]SAM_PROTO_GetFieldsCounters done [15:09:50]requested_item shift.num is exist - process it [15:09:50]requested_item shift.opened is exist - process it [15:09:50]req_shift_opened [15:09:50]FM_GetShiftState [15:09:50]SAM_PROTO_GetShiftState [15:09:50]wFMCommunicate request_size=4 [15:09:50]MH_SAM_APDU [15:09:50]CAPDU: 80 13 01 00 [15:09:50]Write to MH i2c: E2 08 00 D6 10 80 13 01 00 00 00 00 00 63 [15:09:50]Write i2c OK [15:09:50]MH_I2C_Read... [15:09:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:09:50]Read from MH i2c: E2 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 0E 00 [15:09:50]MH_I2C_Read... [15:09:50]Read from MH i2c: E2 0E 00 D6 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 58 [15:09:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:09:50]wFMCommunicate OK [15:09:50]SAM_PROTO_GetShiftState done [15:09:50]FM_GetShiftState done [15:09:50]req_shift_opened done [15:09:50]requested_item shift.open_date is exist - process it [15:09:50]req_shift_open_date [15:09:50]req_shift_open_date done [15:09:50]produce_requested_data done [15:09:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188339,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:09:50]process_action_free close_receipt [15:09:50]json_value_free [15:09:50]json_value_free done [15:09:50]process_json_proto returns [15:09:50]Send response to host [15:09:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188339,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:09:50]free response buf [15:09:50]execute_script done [15:09:50]execute_script returns [15:09:50]free content buf [15:09:50]Sock 7.Close socket [15:09:50]Sock 7.Thread stoped [15:09:54]OFD Sender: No OFD packet to send [15:09:59]OFD Sender: No OFD packet to send [15:10:04]OFD Sender: No OFD packet to send [15:10:09]OFD Sender: No OFD packet to send [15:10:14]OFD Sender: No OFD packet to send [15:10:19]OFD Sender: No OFD packet to send [15:10:24]OFD Sender: No OFD packet to send [15:10:29]OFD Sender: No OFD packet to send [15:10:34]OFD Sender: No OFD packet to send [15:10:39]OFD Sender: No OFD packet to send [15:10:44]OFD Sender: No OFD packet to send [15:10:49]OFD Sender: No OFD packet to send [15:10:54]OFD Sender: No OFD packet to send [15:10:59]OFD Sender: No OFD packet to send [15:11:04]OFD Sender: No OFD packet to send [15:11:09]OFD Sender: No OFD packet to send [15:11:14]OFD Sender: No OFD packet to send [15:11:19]OFD Sender: No OFD packet to send [15:11:24]OFD Sender: No OFD packet to send [15:11:29]OFD Sender: No OFD packet to send [15:11:34]OFD Sender: No OFD packet to send [15:11:35]accept exits with 9 [15:11:35]New connection [15:11:35]New thread 3067161956 created [15:11:35]Thread 3067305316 joined [15:11:35]Waiting for new connection... [15:11:35] Sock 9.Parse request [15:11:35]Sock 9.Check first char [15:11:35]Sock 9.First char is OK [15:11:35]request: POST /json_proto HTTP/1.0 [15:11:35]Method: POST [15:11:35]URL: /json_proto [15:11:35]Method is POST - this is cgi request [15:11:35]url: /json_proto [15:11:35]query_string will be loaded in cgi processing [15:11:35]execute_cgi json_proto POST (null) [15:11:35]execute_cgi path=json_proto method=POST [15:11:35]POST find Content-Length [15:11:35]Host: 172.17.42.131:8080 [15:11:35]Content-Length: 792 [15:11:35]Content-Type: application/json [15:11:35] [15:11:35]POST finish read [15:11:35]Found Content-Length = 792 [15:11:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 11.150, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:35]execute_script... [15:11:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 11.150, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u0430\u044F \u041A\u0430\u0440\u0442\u0430\u000A02633", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:11:35]POST & json_proto [15:11:35]process_json_proto [15:11:35]json parsed OK: [15:11:35]protocol is kg_v1.0 [15:11:35]action value=close_receipt [15:11:35]process_action close_receipt [15:11:35]cmd_close_receipt [15:11:35]MH_GetDate [15:11:35]Write to MH i2c: F0 00 00 D7 10 D6 [15:11:35]Write i2c OK [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: F0 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: F0 09 00 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: F0 09 00 D7 10 00 A9 C0 17 67 A0 18 CA 66 AE [15:11:35]GetLastDocTimeStamp 1729609787 [15:11:35]current date 1729609897 [15:11:35]FM_GetShiftState [15:11:35]SAM_PROTO_GetShiftState [15:11:35]wFMCommunicate request_size=4 [15:11:35]MH_SAM_APDU [15:11:35]CAPDU: 80 13 01 00 [15:11:35]Write to MH i2c: E2 08 00 D8 10 80 13 01 00 00 00 00 00 65 [15:11:35]Write i2c OK [15:11:35]MH_I2C_Read... [15:11:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:35]Read from MH i2c: E2 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: E2 0E 00 [15:11:35]MH_I2C_Read... [15:11:35]Read from MH i2c: E2 0E 00 D8 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5A [15:11:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:11:35]wFMCommunicate OK [15:11:35]SAM_PROTO_GetShiftState done [15:11:35]FM_GetShiftState done [15:11:35]opened in 1729556094 [15:11:35]opened+sec_in_day 1729642494 [15:11:35]quantity*price = 0 [15:11:35]sum+1 = 1 [15:11:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 369 22.10.2024 15:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливная Карта 02633 ФМ: 0000000000965340 ФД: 188340 ФПД: 163655794719874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151137&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188340&fm=163655794719874&tin=02508201610067®Number=0000000000100030&sum=0 [15:11:37]StoreToDocumentArchive [15:11:37]shift 461 fd 188340 [15:11:37]save to /storage/0461/doc_00188340 [15:11:37]save last doc name /storage/0461/doc_00188340 to /storage/kkm_last_doc_name [15:11:37]save OK [15:11:37]Clear old archive folders... [15:11:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:11:37]tlvbuf is 01442230 [15:11:37]SAM_PROTO_ClearQueue [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 09 00 00 [15:11:37]Write to MH i2c: E2 08 00 E5 10 80 09 00 00 00 00 00 00 67 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 E5 10 00 90 00 69 [15:11:37]RAPDU: 90 00 [15:11:37]wFMCommunicate OK [15:11:37]SAM_PROTO_ClearQueue done [15:11:37]KKMCreateOFDPacket [15:11:37]OFDProtocolAddRootSTLVToBuf [15:11:37]FM_MakeSignedData [15:11:37]FM_MakeSignedData [15:11:37]SAM_PROTO_SignData [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 0D 01 02 [15:11:37]Write to MH i2c: E2 08 00 E6 10 80 0D 01 02 00 00 00 00 6F [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 E6 10 00 90 00 6A [15:11:37]RAPDU: 90 00 [15:11:37]wFMCommunicate OK [15:11:37]wFMCommunicate request_size=255 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 A9 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DF 02 00 35 04 06 00 94 [15:11:37]Write to MH i2c: E2 02 01 E7 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 33 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 A9 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DF 02 00 35 04 06 00 94 00 00 66 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 E7 10 00 90 00 6B [15:11:37]RAPDU: 90 00 [15:11:37]wFMCommunicate OK [15:11:37]wFMCommunicate request_size=10 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 0D 02 02 05 D8 15 82 7C 82 [15:11:37]Write to MH i2c: E2 0D 00 E8 10 80 0D 02 02 05 00 D8 15 82 7C 82 00 00 E9 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 03 00 E8 10 00 90 00 6C [15:11:37]RAPDU: 90 00 [15:11:37]wFMCommunicate OK [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 0D 03 02 [15:11:37]Write to MH i2c: E2 08 00 E9 10 80 0D 03 02 00 00 00 00 74 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 0B 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 0B 00 E9 10 00 5E 69 F9 D7 FF 9B ED 86 90 00 19 [15:11:37]RAPDU: 5E 69 F9 D7 FF 9B ED 86 90 00 [15:11:37]wFMCommunicate OK [15:11:37]SAM_PROTO_SignData done [15:11:37]FM_MakeSignedData done [15:11:37]CreateOFDProtocolMessage [15:11:37]wFMCommunicate request_size=4 [15:11:37]MH_SAM_APDU [15:11:37]CAPDU: 80 11 00 00 [15:11:37]Write to MH i2c: E2 08 00 EA 10 80 11 00 00 00 00 00 00 74 [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:37]Read from MH i2c: E2 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 17 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: E2 17 00 EA 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [15:11:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:11:37]wFMCommunicate OK [15:11:37]CreateOFDProtocolMessage done [15:11:37]OFDSenderStorePacket 188340 [15:11:37]StoreOFDPacket docnum=188340 [15:11:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 3A 07 01 13 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 33 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 A9 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DF 02 00 35 04 06 00 94 D8 15 82 7C 82 5E 69 F9 D7 FF 9B ED 86 [15:11:37]CheckFolder [15:11:37]dirname=/storage/ofd_packets [15:11:37]CheckFolder done [15:11:37]ProducePacketName [15:11:37]name=ofd_packets/00188340 [15:11:37]NVStorageSaveData ofd_packets/00188340 [15:11:37]File name is /storage/ofd_packets/00188340 [15:11:37]Write 301 bytes [15:11:37]NVStorageSaveData done [15:11:37]OFDSenderStorePacket done [15:11:37]KKMCreateOFDPacket done [15:11:37]NVStorageSaveData kkm_last_timestamp [15:11:37]File name is /storage/kkm_last_timestamp [15:11:37]Write 4 bytes [15:11:37]NVStorageSaveData done [15:11:37]ExternCall_PrintAddStr [15:11:37]wPrintStart [15:11:37]Write to MH i2c: 01 00 00 EB 10 FB [15:11:37]Write i2c OK [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 07 00 [15:11:37]MH_I2C_Read... [15:11:37]Read from MH i2c: 01 07 00 EB 10 00 00 00 00 00 FF 0F 10 [15:11:37]RasterBufferAndPrint [15:11:37]line Счет N : (1)210397 [15:11:37]line ИНН: 02508201610067 [15:11:37]line Контрольно-Кассовый Чек [15:11:37]line ПРОДАЖА [15:11:37]line ТРК (МРК, ГНК) : 32 [15:11:37]line Товар: 2710124130 [15:11:37]line Аи-92-К-3 [15:11:37]line 11.150 * 0.00 [15:11:37]line = 0.00 [15:11:37]line НДС 12% НСП 1% [15:11:37]line > о реализуемом товаре [15:11:37]line ИТОГО: 0.00 [15:11:37]line НСП 1% : 0.00 [15:11:37]line НДС 12% : 0.00 [15:11:37]line Наличными: 0.00 [15:11:37]line Безнал.: 0.00 [15:11:37]line Место: АЗС № 86 "Партнер Нефть" [15:11:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:11:37]line СНО: Общий режим [15:11:37]line Чек 369 22.10.2024 15:11 [15:11:37]line Смена: 461 ФФД: 1.0 [15:11:37]line ЗНМ: 0300000155 [15:11:37]line РНМ: 0000000000100030 [15:11:37]line Версия ККМ: 001 [15:11:37]line Талоны: Топливная Карта [15:11:37]line 02633 [15:11:37]line ФМ: 0000000000965340 [15:11:37]line ФД: 188340 [15:11:37]line ФПД: 163655794719874 [15:11:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151137&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188340&fm=163655794719874&tin=02508201610067®Number=0000000000100030&sum=0 [15:11:37]written 0, free lines is 4095 [15:11:37]OFD Sender: Processing packet 188340 [packets to send 1062, broken 1061] [15:11:37]ProducePacketName [15:11:37]name=ofd_packets/00188340 [15:11:37]OFD Sender: To server: pG, [15:11:37]CommunicateWithHost lk.salyk.kg:30040 [15:11:37]ConnectInit lk.salyk.kg [15:11:38]Connected sock=10 [15:11:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F7 3A 07 01 13 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 33 FF 03 08 00 03 8E 2B 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 01 00 00 F4 03 04 00 A9 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B4 DF 02 00 35 04 06 00 94 D8 15 82 7C 82 5E 69 F9 D7 FF 9B ED 86 [15:11:38]Write to MH i2c: 01 00 00 15 11 26 [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 07 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: 01 07 00 15 11 00 00 00 00 00 79 0C B2 [15:11:38]RasterBufferAndPrint [15:11:38]line [15:11:38]line [15:11:38]line [15:11:38]line [15:11:38]line [15:11:38]written 0, free lines is 3198 [15:11:38]MH_Cut [15:11:38]Write to MH i2c: D1 01 00 1C 11 01 FF [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: D1 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: D1 01 00 [15:11:38]MH_I2C_Read... [15:11:38]Read from MH i2c: D1 01 00 1C 11 00 FE [15:11:38]Write to MH i2c: 01 00 00 1D 11 2E [15:11:38]Write i2c OK [15:11:38]MH_I2C_Read... [15:11:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F4 DD 47 00 1D 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 39 36 35 33 34 30 10 04 04 00 B4 DF 02 00 F4 03 04 00 96 6A 17 67 B6 04 01 00 00 7F DE 7D 6B B1 2C 59 D3 [15:11:38]CommunicateWithHost err = 0 [15:11:38]CheckOFDResponse [15:11:38]1017 (14) - 77093643461234 [15:11:38]1041 (16) - 0000000000965340 [15:11:38]1040 (4) - 188340 [15:11:38]1012 (4) - 22.10.2024 09:04 [15:11:38]1206 (1) - 0 [15:11:38]OFD Sender: Remove packet 188340 [15:11:38]ProducePacketName [15:11:38]name=ofd_packets/00188340 [15:11:38]NVStorageDeleteData [15:11:38]OFD Sender: No OFD packet to send [15:11:39]*** Cut start [15:11:39]*** Partial cut [15:11:39]*** CUTSNS_PIN = 1 [15:11:39]*** CUTSNS_PIN = 0 [15:11:39]*** Brake cut motor [15:11:39]Read from MH i2c: 01 [15:11:39]MH_I2C_Read... [15:11:39]*** Stop cut motor [15:11:39]*** Cut end [15:11:39]Read from MH i2c: 01 07 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: 01 07 00 1D 11 00 00 00 00 00 FF 0F 43 [15:11:39]process_action close_receipt done [15:11:39]requested_data is exist [15:11:39]produce_requested_data [15:11:39]requested_item fm.sn is exist - process it [15:11:39]wFMCommunicate request_size=4 [15:11:39]MH_SAM_APDU [15:11:39]CAPDU: 80 11 00 00 [15:11:39]Write to MH i2c: E2 08 00 1E 11 80 11 00 00 00 00 00 00 A9 [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:11:39]Read from MH i2c: E2 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 17 00 [15:11:39]MH_I2C_Read... [15:11:39]Read from MH i2c: E2 17 00 1E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F7 [15:11:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:11:39]wFMCommunicate OK [15:11:39]requested_item fd.num is exist - process it [15:11:39]SAM_PROTO_GetFieldsCounters [15:11:39]wFMCommunicate request_size=4 [15:11:39]MH_SAM_APDU [15:11:39]CAPDU: 80 13 00 00 [15:11:39]Write to MH i2c: E2 08 00 1F 11 80 13 00 00 00 00 00 00 AC [15:11:39]Write i2c OK [15:11:39]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 62 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 62 00 1F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [15:11:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 71 01 00 00 5E 04 04 00 71 01 00 00 57 04 04 00 72 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetFieldsCounters done [15:11:40]requested_item shift.num is exist - process it [15:11:40]requested_item shift.opened is exist - process it [15:11:40]req_shift_opened [15:11:40]FM_GetShiftState [15:11:40]SAM_PROTO_GetShiftState [15:11:40]wFMCommunicate request_size=4 [15:11:40]MH_SAM_APDU [15:11:40]CAPDU: 80 13 01 00 [15:11:40]Write to MH i2c: E2 08 00 20 11 80 13 01 00 00 00 00 00 AE [15:11:40]Write i2c OK [15:11:40]MH_I2C_Read... [15:11:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:11:40]Read from MH i2c: E2 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 [15:11:40]MH_I2C_Read... [15:11:40]Read from MH i2c: E2 0E 00 20 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A3 [15:11:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:11:40]wFMCommunicate OK [15:11:40]SAM_PROTO_GetShiftState done [15:11:40]FM_GetShiftState done [15:11:40]req_shift_opened done [15:11:40]requested_item shift.open_date is exist - process it [15:11:40]req_shift_open_date [15:11:40]req_shift_open_date done [15:11:40]produce_requested_data done [15:11:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188340,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:11:40]process_action_free close_receipt [15:11:40]json_value_free [15:11:40]json_value_free done [15:11:40]process_json_proto returns [15:11:40]Send response to host [15:11:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188340,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:11:40]free response buf [15:11:40]execute_script done [15:11:40]execute_script returns [15:11:40]free content buf [15:11:40]Sock 9.Close socket [15:11:40]Sock 9.Thread stoped [15:11:43]OFD Sender: No OFD packet to send [15:11:48]OFD Sender: No OFD packet to send [15:11:53]OFD Sender: No OFD packet to send [15:11:58]OFD Sender: No OFD packet to send [15:12:03]OFD Sender: No OFD packet to send [15:12:08]OFD Sender: No OFD packet to send [15:12:14]OFD Sender: No OFD packet to send [15:12:19]OFD Sender: No OFD packet to send [15:12:22]accept exits with 7 [15:12:22]New connection [15:12:22]New thread 3067305316 created [15:12:22]Thread 3067161956 joined [15:12:22]Waiting for new connection... [15:12:22] Sock 7.Parse request [15:12:22]Sock 7.Check first char [15:12:22]Sock 7.First char is OK [15:12:22]request: POST /json_proto HTTP/1.0 [15:12:22]Method: POST [15:12:22]URL: /json_proto [15:12:22]Method is POST - this is cgi request [15:12:22]url: /json_proto [15:12:22]query_string will be loaded in cgi processing [15:12:22]execute_cgi json_proto POST (null) [15:12:22]execute_cgi path=json_proto method=POST [15:12:22]POST find Content-Length [15:12:22]Host: 172.17.42.131:8080 [15:12:22]Content-Length: 678 [15:12:22]Content-Type: application/json [15:12:22] [15:12:22]POST finish read [15:12:22]Found Content-Length = 678 [15:12:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.290, "sum" : 755.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 755.00, "total" : 755.00, "payments": [ { "type": 0, "sum" : 755.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:22]execute_script... [15:12: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)210398", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.290, "sum" : 755.30, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 755.00, "total" : 755.00, "payments": [ { "type": 0, "sum" : 755.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:12:22]POST & json_proto [15:12:22]process_json_proto [15:12:22]json parsed OK: [15:12:22]protocol is kg_v1.0 [15:12:22]action value=close_receipt [15:12:22]process_action close_receipt [15:12:22]cmd_close_receipt [15:12:22]MH_GetDate [15:12:22]Write to MH i2c: F0 00 00 21 11 21 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: F0 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: F0 09 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: F0 09 00 21 11 00 D7 C0 17 67 A0 18 CA 66 27 [15:12:22]GetLastDocTimeStamp 1729609897 [15:12:22]current date 1729609943 [15:12:22]FM_GetShiftState [15:12:22]SAM_PROTO_GetShiftState [15:12:22]wFMCommunicate request_size=4 [15:12:22]MH_SAM_APDU [15:12:22]CAPDU: 80 13 01 00 [15:12:22]Write to MH i2c: E2 08 00 22 11 80 13 01 00 00 00 00 00 B0 [15:12:22]Write i2c OK [15:12:22]MH_I2C_Read... [15:12:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:22]Read from MH i2c: E2 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 0E 00 [15:12:22]MH_I2C_Read... [15:12:22]Read from MH i2c: E2 0E 00 22 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A5 [15:12:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:12:22]wFMCommunicate OK [15:12:22]SAM_PROTO_GetShiftState done [15:12:22]FM_GetShiftState done [15:12:22]opened in 1729556094 [15:12:22]opened+sec_in_day 1729642494 [15:12:22]quantity*price = 75530 [15:12:22]sum+1 = 75531 [15:12:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.30 ИТОГО: 755.00 Внесено: 755.00 СДАЧА: 0.00 НСП 1% : 6.68 НДС 12% : 80.21 Наличными: 755.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 370 22.10.2024 15:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188341 ФПД: 151013373115768 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151223&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188341&fm=151013373115768&tin=02508201610067®Number=0000000000100030&sum=75500 [15:12:23]StoreToDocumentArchive [15:12:23]shift 461 fd 188341 [15:12:23]save to /storage/0461/doc_00188341 [15:12:23]save last doc name /storage/0461/doc_00188341 to /storage/kkm_last_doc_name [15:12:23]save OK [15:12:23]Clear old archive folders... [15:12:23]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:12:23]tlvbuf is B6F30460 [15:12:23]SAM_PROTO_ClearQueue [15:12:23]wFMCommunicate request_size=4 [15:12:23]MH_SAM_APDU [15:12:23]CAPDU: 80 09 00 00 [15:12:23]Write to MH i2c: E2 08 00 2F 11 80 09 00 00 00 00 00 00 B2 [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 2F 11 00 90 00 B4 [15:12:23]RAPDU: 90 00 [15:12:23]wFMCommunicate OK [15:12:23]SAM_PROTO_ClearQueue done [15:12:23]KKMCreateOFDPacket [15:12:23]OFDProtocolAddRootSTLVToBuf [15:12:23]FM_MakeSignedData [15:12:23]FM_MakeSignedData [15:12:23]SAM_PROTO_SignData [15:12:23]wFMCommunicate request_size=4 [15:12:23]MH_SAM_APDU [15:12:23]CAPDU: 80 0D 01 02 [15:12:23]Write to MH i2c: E2 08 00 30 11 80 0D 01 02 00 00 00 00 BA [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 30 11 00 90 00 B5 [15:12:23]RAPDU: 90 00 [15:12:23]wFMCommunicate OK [15:12:23]wFMCommunicate request_size=255 [15:12:23]MH_SAM_APDU [15:12: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 33 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 27 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 D7 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DF 02 00 35 04 06 00 89 [15:12:23]Write to MH i2c: E2 02 01 31 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 33 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 27 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 D7 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DF 02 00 35 04 06 00 89 00 00 09 [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 31 11 00 90 00 B6 [15:12:23]RAPDU: 90 00 [15:12:23]wFMCommunicate OK [15:12:23]wFMCommunicate request_size=10 [15:12:23]MH_SAM_APDU [15:12:23]CAPDU: 80 0D 02 02 05 58 8A 75 FD 78 [15:12:23]Write to MH i2c: E2 0D 00 32 11 80 0D 02 02 05 00 58 8A 75 FD 78 00 00 93 [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 03 00 32 11 00 90 00 B7 [15:12:23]RAPDU: 90 00 [15:12:23]wFMCommunicate OK [15:12:23]wFMCommunicate request_size=4 [15:12:23]MH_SAM_APDU [15:12:23]CAPDU: 80 0D 03 02 [15:12:23]Write to MH i2c: E2 08 00 33 11 80 0D 03 02 00 00 00 00 BF [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 0B 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 0B 00 33 11 00 B3 93 16 56 92 36 23 93 90 00 F0 [15:12:23]RAPDU: B3 93 16 56 92 36 23 93 90 00 [15:12:23]wFMCommunicate OK [15:12:23]SAM_PROTO_SignData done [15:12:23]FM_MakeSignedData done [15:12:23]CreateOFDProtocolMessage [15:12:23]wFMCommunicate request_size=4 [15:12:23]MH_SAM_APDU [15:12:23]CAPDU: 80 11 00 00 [15:12:23]Write to MH i2c: E2 08 00 34 11 80 11 00 00 00 00 00 00 BF [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:23]Read from MH i2c: E2 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 17 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: E2 17 00 34 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [15:12:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:12:23]wFMCommunicate OK [15:12:23]CreateOFDProtocolMessage done [15:12:23]OFDSenderStorePacket 188341 [15:12:23]StoreOFDPacket docnum=188341 [15:12:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 04 07 01 0E 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 27 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 D7 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DF 02 00 35 04 06 00 89 58 8A 75 FD 78 B3 93 16 56 92 36 23 93 [15:12:23]CheckFolder [15:12:23]dirname=/storage/ofd_packets [15:12:23]CheckFolder done [15:12:23]ProducePacketName [15:12:23]name=ofd_packets/00188341 [15:12:23]NVStorageSaveData ofd_packets/00188341 [15:12:23]File name is /storage/ofd_packets/00188341 [15:12:23]Write 301 bytes [15:12:23]NVStorageSaveData done [15:12:23]OFDSenderStorePacket done [15:12:23]KKMCreateOFDPacket done [15:12:23]NVStorageSaveData kkm_last_timestamp [15:12:23]File name is /storage/kkm_last_timestamp [15:12:23]Write 4 bytes [15:12:23]NVStorageSaveData done [15:12:23]ExternCall_PrintAddStr [15:12:23]wPrintStart [15:12:23]Write to MH i2c: 01 00 00 35 11 46 [15:12:23]Write i2c OK [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 07 00 [15:12:23]MH_I2C_Read... [15:12:23]Read from MH i2c: 01 07 00 35 11 00 00 00 00 00 FF 0F 5B [15:12:23]RasterBufferAndPrint [15:12:23]line Счет N : (1)210398 [15:12:23]line ИНН: 02508201610067 [15:12:23]line Контрольно-Кассовый Чек [15:12:23]line ПРОДАЖА [15:12:23]line ТРК (МРК, ГНК) : 32 [15:12:23]line Товар: 2710124130 [15:12:23]line Аи-92-К-3 [15:12:24]line 11.290 * 66.90 [15:12:24]line = 755.30 [15:12:24]line НДС 12% НСП 1% [15:12:24]line > о реализуемом товаре [15:12:24]line ОКРУГЛЕНИЕ: -0.30 [15:12:24]line ИТОГО: 755.00 [15:12:24]line Внесено: 755.00 [15:12:24]line СДАЧА: 0.00 [15:12:24]line НСП 1% : 6.68 [15:12:24]line НДС 12% : 80.21 [15:12:24]line Наличными: 755.00 [15:12:24]line Безнал.: 0.00 [15:12:24]line Место: АЗС № 86 "Партнер Нефть" [15:12:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:12:24]line СНО: Общий режим [15:12:24]line Чек 370 22.10.2024 15:12 [15:12:24]line Смена: 461 ФФД: 1.0 [15:12:24]line ЗНМ: 0300000155 [15:12:24]line РНМ: 0000000000100030 [15:12:24]line Версия ККМ: 001 [15:12:24]line ФМ: 0000000000965340 [15:12:24]line ФД: 188341 [15:12:24]line ФПД: 151013373115768 [15:12:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151223&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188341&fm=151013373115768&tin=02508201610067®Number=0000000000100030&sum=75500 [15:12:24]OFD Sender: Processing packet 188341 [packets to send 1062, broken 1061] [15:12:24]ProducePacketName [15:12:24]name=ofd_packets/00188341 [15:12:24]OFD Sender: To server: pG, [15:12:24]CommunicateWithHost lk.salyk.kg:30040 [15:12:24]ConnectInit lk.salyk.kg [15:12:24]written 0, free lines is 4095 [15:12:24]Connected sock=10 [15:12:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 12 04 07 01 0E 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1A 2C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0A 27 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 26 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 1F 00 00 00 00 07 04 06 00 EC 26 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 01 00 00 F4 03 04 00 D7 C0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DF 02 00 35 04 06 00 89 58 8A 75 FD 78 B3 93 16 56 92 36 23 93 [15:12:24]Write to MH i2c: 01 00 00 60 11 71 [15:12:24]Write i2c OK [15:12:24]MH_I2C_Read... [15:12:24]Read from MH i2c: 01 [15:12:24]MH_I2C_Read... [15:12:24]Read from MH i2c: 01 07 00 [15:12:24]MH_I2C_Read... [15:12:24]Read from MH i2c: 01 07 00 60 11 00 00 00 00 00 62 0C E6 [15:12:24]RasterBufferAndPrint [15:12:24]line [15:12:24]line [15:12:24]line [15:12:24]line [15:12:24]line [15:12:24]written 0, free lines is 3174 [15:12:24]MH_Cut [15:12:24]Write to MH i2c: D1 01 00 67 11 01 4A [15:12:24]Write i2c OK [15:12:24]MH_I2C_Read... [15:12:24]Read from MH i2c: D1 [15:12:24]MH_I2C_Read... [15:12:24]Read from MH i2c: D1 01 00 [15:12:24]MH_I2C_Read... [15:12:24]Read from MH i2c: D1 01 00 67 11 00 49 [15:12:24]Write to MH i2c: 01 00 00 68 11 79 [15:12:24]Write i2c OK [15:12:24]MH_I2C_Read... [15:12:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 E5 47 00 06 B8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B5 DF 02 00 F4 03 04 00 C4 6A 17 67 B6 04 01 00 00 5F 54 C2 99 E1 41 FA D4 [15:12:24]CommunicateWithHost err = 0 [15:12:24]CheckOFDResponse [15:12:24]1017 (14) - 77093643461234 [15:12:24]1041 (16) - 0000000000965340 [15:12:24]1040 (4) - 188341 [15:12:24]1012 (4) - 22.10.2024 09:05 [15:12:24]1206 (1) - 0 [15:12:24]OFD Sender: Remove packet 188341 [15:12:24]ProducePacketName [15:12:24]name=ofd_packets/00188341 [15:12:24]NVStorageDeleteData [15:12:25]OFD Sender: No OFD packet to send [15:12:25]*** Cut start [15:12:25]*** Partial cut [15:12:25]*** CUTSNS_PIN = 1 [15:12:26]*** CUTSNS_PIN = 0 [15:12:26]*** Brake cut motor [15:12:26]Read from MH i2c: 01 [15:12:26]MH_I2C_Read... [15:12:26]*** Stop cut motor [15:12:26]*** Cut end [15:12:26]Read from MH i2c: 01 07 00 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: 01 07 00 68 11 00 00 00 00 00 FF 0F 8E [15:12:26]process_action close_receipt done [15:12:26]requested_data is exist [15:12:26]produce_requested_data [15:12:26]requested_item fm.sn is exist - process it [15:12:26]wFMCommunicate request_size=4 [15:12:26]MH_SAM_APDU [15:12:26]CAPDU: 80 11 00 00 [15:12:26]Write to MH i2c: E2 08 00 69 11 80 11 00 00 00 00 00 00 F4 [15:12:26]Write i2c OK [15:12:26]MH_I2C_Read... [15:12:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:12:26]Read from MH i2c: E2 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: E2 17 00 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: E2 17 00 69 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [15:12:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:12:26]wFMCommunicate OK [15:12:26]requested_item fd.num is exist - process it [15:12:26]SAM_PROTO_GetFieldsCounters [15:12:26]wFMCommunicate request_size=4 [15:12:26]MH_SAM_APDU [15:12:26]CAPDU: 80 13 00 00 [15:12:26]Write to MH i2c: E2 08 00 6A 11 80 13 00 00 00 00 00 00 F7 [15:12:26]Write i2c OK [15:12:26]MH_I2C_Read... [15:12:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:12:26]Read from MH i2c: E2 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: E2 62 00 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: E2 62 00 6A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [15:12:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 72 01 00 00 5E 04 04 00 72 01 00 00 57 04 04 00 73 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:12:26]wFMCommunicate OK [15:12:26]SAM_PROTO_GetFieldsCounters done [15:12:26]requested_item shift.num is exist - process it [15:12:26]requested_item shift.opened is exist - process it [15:12:26]req_shift_opened [15:12:26]FM_GetShiftState [15:12:26]SAM_PROTO_GetShiftState [15:12:26]wFMCommunicate request_size=4 [15:12:26]MH_SAM_APDU [15:12:26]CAPDU: 80 13 01 00 [15:12:26]Write to MH i2c: E2 08 00 6B 11 80 13 01 00 00 00 00 00 F9 [15:12:26]Write i2c OK [15:12:26]MH_I2C_Read... [15:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:12:26]Read from MH i2c: E2 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: E2 0E 00 [15:12:26]MH_I2C_Read... [15:12:26]Read from MH i2c: E2 0E 00 6B 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EE [15:12:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:12:26]wFMCommunicate OK [15:12:26]SAM_PROTO_GetShiftState done [15:12:26]FM_GetShiftState done [15:12:26]req_shift_opened done [15:12:26]requested_item shift.open_date is exist - process it [15:12:26]req_shift_open_date [15:12:26]req_shift_open_date done [15:12:26]produce_requested_data done [15:12:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188341,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:12:26]process_action_free close_receipt [15:12:26]json_value_free [15:12:26]json_value_free done [15:12:26]process_json_proto returns [15:12:26]Send response to host [15:12:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188341,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:12:26]free response buf [15:12:26]execute_script done [15:12:26]execute_script returns [15:12:26]free content buf [15:12:26]Sock 7.Close socket [15:12:26]Sock 7.Thread stoped [15:12:30]OFD Sender: No OFD packet to send [15:12:35]OFD Sender: No OFD packet to send [15:12:40]OFD Sender: No OFD packet to send [15:12:45]OFD Sender: No OFD packet to send [15:12:50]OFD Sender: No OFD packet to send [15:12:55]OFD Sender: No OFD packet to send [15:13:00]OFD Sender: No OFD packet to send [15:13:05]OFD Sender: No OFD packet to send [15:13:10]OFD Sender: No OFD packet to send [15:13:15]OFD Sender: No OFD packet to send [15:13:20]OFD Sender: No OFD packet to send [15:13:25]OFD Sender: No OFD packet to send [15:13:30]OFD Sender: No OFD packet to send [15:13:35]OFD Sender: No OFD packet to send [15:13:40]OFD Sender: No OFD packet to send [15:13:45]OFD Sender: No OFD packet to send [15:13:50]OFD Sender: No OFD packet to send [15:13:55]OFD Sender: No OFD packet to send [15:14:00]OFD Sender: No OFD packet to send [15:14:05]OFD Sender: No OFD packet to send [15:14:10]OFD Sender: No OFD packet to send [15:14:15]OFD Sender: No OFD packet to send [15:14:20]OFD Sender: No OFD packet to send [15:14:25]OFD Sender: No OFD packet to send [15:14:30]OFD Sender: No OFD packet to send [15:14:35]OFD Sender: No OFD packet to send [15:14:40]OFD Sender: No OFD packet to send [15:14:46]OFD Sender: No OFD packet to send [15:14:51]OFD Sender: No OFD packet to send [15:14:56]OFD Sender: No OFD packet to send [15:15:01]OFD Sender: No OFD packet to send [15:15:06]OFD Sender: No OFD packet to send [15:15:11]OFD Sender: No OFD packet to send [15:15:13]accept exits with 9 [15:15:13]New connection [15:15:13]New thread 3067161956 created [15:15:13]Thread 3067305316 joined [15:15:13]Waiting for new connection... [15:15:13] Sock 9.Parse request [15:15:13]Sock 9.Check first char [15:15:13]Sock 9.First char is OK [15:15:13]request: POST /json_proto HTTP/1.0 [15:15:13]Method: POST [15:15:13]URL: /json_proto [15:15:13]Method is POST - this is cgi request [15:15:13]url: /json_proto [15:15:13]query_string will be loaded in cgi processing [15:15:13]execute_cgi json_proto POST (null) [15:15:13]execute_cgi path=json_proto method=POST [15:15:13]POST find Content-Length [15:15:13]Host: 172.17.42.131:8080 [15:15:13]Content-Length: 688 [15:15:13]Content-Type: application/json [15:15:13] [15:15:13]POST finish read [15:15:13]Found Content-Length = 688 [15:15:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:13]execute_script... [15:15: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)210399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 45.340, "sum" : 3500.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:13]POST & json_proto [15:15:13]process_json_proto [15:15:13]json parsed OK: [15:15:13]protocol is kg_v1.0 [15:15:13]action value=close_receipt [15:15:13]process_action close_receipt [15:15:13]cmd_close_receipt [15:15:13]MH_GetDate [15:15:13]Write to MH i2c: F0 00 00 6C 11 6C [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: F0 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: F0 09 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: F0 09 00 6C 11 00 82 C1 17 67 A0 18 CA 66 1E [15:15:13]GetLastDocTimeStamp 1729609943 [15:15:13]current date 1729610114 [15:15:13]FM_GetShiftState [15:15:13]SAM_PROTO_GetShiftState [15:15:13]wFMCommunicate request_size=4 [15:15:13]MH_SAM_APDU [15:15:13]CAPDU: 80 13 01 00 [15:15:13]Write to MH i2c: E2 08 00 6D 11 80 13 01 00 00 00 00 00 FB [15:15:13]Write i2c OK [15:15:13]MH_I2C_Read... [15:15:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:13]Read from MH i2c: E2 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0E 00 [15:15:13]MH_I2C_Read... [15:15:13]Read from MH i2c: E2 0E 00 6D 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F0 [15:15:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:15:13]wFMCommunicate OK [15:15:13]SAM_PROTO_GetShiftState done [15:15:13]FM_GetShiftState done [15:15:13]opened in 1729556094 [15:15:13]opened+sec_in_day 1729642494 [15:15:13]quantity*price = 350024 [15:15:13]sum+1 = 350026 [15:15:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.71 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 371 22.10.2024 15:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188342 ФПД: 123493917567399 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188342&fm=123493917567399&tin=02508201610067®Number=0000000000100030&sum=350000 [15:15:14]StoreToDocumentArchive [15:15:14]shift 461 fd 188342 [15:15:14]save to /storage/0461/doc_00188342 [15:15:14]save last doc name /storage/0461/doc_00188342 to /storage/kkm_last_doc_name [15:15:14]save OK [15:15:14]Clear old archive folders... [15:15:14]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:15:14]tlvbuf is 014419D0 [15:15:14]SAM_PROTO_ClearQueue [15:15:14]wFMCommunicate request_size=4 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 09 00 00 [15:15:14]Write to MH i2c: E2 08 00 7A 11 80 09 00 00 00 00 00 00 FD [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:14]Read from MH i2c: E2 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 03 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 03 00 7A 11 00 90 00 FF [15:15:14]RAPDU: 90 00 [15:15:14]wFMCommunicate OK [15:15:14]SAM_PROTO_ClearQueue done [15:15:14]KKMCreateOFDPacket [15:15:14]OFDProtocolAddRootSTLVToBuf [15:15:14]FM_MakeSignedData [15:15:14]FM_MakeSignedData [15:15:14]SAM_PROTO_SignData [15:15:14]wFMCommunicate request_size=4 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 0D 01 02 [15:15:14]Write to MH i2c: E2 08 00 7B 11 80 0D 01 02 00 00 00 00 05 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:14]Read from MH i2c: E2 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 03 00 [15:15:14]MH_I2C_Read... [15:15:14]Read from MH i2c: E2 03 00 7B 11 00 90 00 00 [15:15:14]RAPDU: 90 00 [15:15:14]wFMCommunicate OK [15:15:14]wFMCommunicate request_size=255 [15:15:14]MH_SAM_APDU [15:15:14]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 82 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DF 02 [15:15:14]Write to MH i2c: E2 02 01 7C 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 82 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DF 02 00 00 D4 [15:15:14]Write i2c OK [15:15:14]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 7C 11 00 90 00 01 [15:15:15]RAPDU: 90 00 [15:15:15]wFMCommunicate OK [15:15:15]wFMCommunicate request_size=16 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 70 51 2B 16 A9 A7 [15:15:15]Write to MH i2c: E2 13 00 7D 11 80 0D 02 02 0B 00 00 35 04 06 00 70 51 2B 16 A9 A7 00 00 AF [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 03 00 7D 11 00 90 00 02 [15:15:15]RAPDU: 90 00 [15:15:15]wFMCommunicate OK [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 0D 03 02 [15:15:15]Write to MH i2c: E2 08 00 7E 11 80 0D 03 02 00 00 00 00 0A [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0B 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 0B 00 7E 11 00 DA 68 88 2D 51 64 25 8F 90 00 6B [15:15:15]RAPDU: DA 68 88 2D 51 64 25 8F 90 00 [15:15:15]wFMCommunicate OK [15:15:15]SAM_PROTO_SignData done [15:15:15]FM_MakeSignedData done [15:15:15]CreateOFDProtocolMessage [15:15:15]wFMCommunicate request_size=4 [15:15:15]MH_SAM_APDU [15:15:15]CAPDU: 80 11 00 00 [15:15:15]Write to MH i2c: E2 08 00 7F 11 80 11 00 00 00 00 00 00 0A [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:15]Read from MH i2c: E2 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 17 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: E2 17 00 7F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [15:15:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:15]wFMCommunicate OK [15:15:15]CreateOFDProtocolMessage done [15:15:15]OFDSenderStorePacket 188342 [15:15:15]StoreOFDPacket docnum=188342 [15:15:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 21 0D 01 B7 3C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 82 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DF 02 00 35 04 06 00 70 51 2B 16 A9 A7 DA 68 88 2D 51 64 25 8F [15:15:15]CheckFolder [15:15:15]dirname=/storage/ofd_packets [15:15:15]CheckFolder done [15:15:15]ProducePacketName [15:15:15]name=ofd_packets/00188342 [15:15:15]NVStorageSaveData ofd_packets/00188342 [15:15:15]File name is /storage/ofd_packets/00188342 [15:15:15]Write 307 bytes [15:15:15]NVStorageSaveData done [15:15:15]OFDSenderStorePacket done [15:15:15]KKMCreateOFDPacket done [15:15:15]NVStorageSaveData kkm_last_timestamp [15:15:15]File name is /storage/kkm_last_timestamp [15:15:15]Write 4 bytes [15:15:15]NVStorageSaveData done [15:15:15]ExternCall_PrintAddStr [15:15:15]wPrintStart [15:15:15]Write to MH i2c: 01 00 00 80 11 91 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 07 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 07 00 80 11 00 00 00 00 00 FF 0F A6 [15:15:15]RasterBufferAndPrint [15:15:15]line Счет N : (1)210399 [15:15:15]line ИНН: 02508201610067 [15:15:15]line Контрольно-Кассовый Чек [15:15:15]line ПРОДАЖА [15:15:15]line ТРК (МРК, ГНК) : 11 [15:15:15]line Товар: 2710194210 [15:15:15]line D-ENERGY ДТ-К-5 [15:15:15]line 45.340 * 77.20 [15:15:15]line = 3500.25 [15:15:15]line НДС 12% НСП 1% [15:15:15]line > о реализуемом товаре [15:15:15]line ОКРУГЛЕНИЕ: -0.25 [15:15:15]line ИТОГО: 3500.00 [15:15:15]line Внесено: 3500.00 [15:15:15]line СДАЧА: 0.00 [15:15:15]line НСП 1% : 30.98 [15:15:15]line НДС 12% : 371.71 [15:15:15]line Наличными: 3500.00 [15:15:15]line Безнал.: 0.00 [15:15:15]line Место: АЗС № 86 "Партнер Нефть" [15:15:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:15:15]line СНО: Общий режим [15:15:15]line Чек 371 22.10.2024 15:15 [15:15:15]line Смена: 461 ФФД: 1.0 [15:15:15]line ЗНМ: 0300000155 [15:15:15]line РНМ: 0000000000100030 [15:15:15]line Версия ККМ: 001 [15:15:15]line ФМ: 0000000000965340 [15:15:15]line ФД: 188342 [15:15:15]line ФПД: 123493917567399 [15:15:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151514&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188342&fm=123493917567399&tin=02508201610067®Number=0000000000100030&sum=350000 [15:15:15]written 0, free lines is 4095 [15:15:15]OFD Sender: Processing packet 188342 [packets to send 1062, broken 1061] [15:15:15]ProducePacketName [15:15:15]name=ofd_packets/00188342 [15:15:15]OFD Sender: To server: pG, [15:15:15]CommunicateWithHost lk.salyk.kg:30040 [15:15:15]ConnectInit lk.salyk.kg [15:15:15]Connected sock=10 [15:15:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 21 0D 01 B7 3C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 1C B1 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 49 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 33 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 01 00 00 F4 03 04 00 82 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DF 02 00 35 04 06 00 70 51 2B 16 A9 A7 DA 68 88 2D 51 64 25 8F [15:15:15]Write to MH i2c: 01 00 00 AB 11 BC [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 07 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: 01 07 00 AB 11 00 00 00 00 00 62 0C 31 [15:15:15]RasterBufferAndPrint [15:15:15]line [15:15:15]line [15:15:15]line [15:15:15]line [15:15:15]line [15:15:15]written 0, free lines is 3174 [15:15:15]MH_Cut [15:15:15]Write to MH i2c: D1 01 00 B2 11 01 95 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: D1 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: D1 01 00 [15:15:15]MH_I2C_Read... [15:15:15]Read from MH i2c: D1 01 00 B2 11 00 94 [15:15:15]Write to MH i2c: 01 00 00 B3 11 C4 [15:15:15]Write i2c OK [15:15:15]MH_I2C_Read... [15:15:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 43 03 47 00 4A 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B6 DF 02 00 F4 03 04 00 70 6B 17 67 B6 04 01 00 00 01 66 6E 83 C6 B8 12 76 [15:15:16]CommunicateWithHost err = 0 [15:15:16]CheckOFDResponse [15:15:16]1017 (14) - 77093643461234 [15:15:16]1041 (16) - 0000000000965340 [15:15:16]1040 (4) - 188342 [15:15:16]1012 (4) - 22.10.2024 09:08 [15:15:16]1206 (1) - 0 [15:15:16]OFD Sender: Remove packet 188342 [15:15:16]ProducePacketName [15:15:16]name=ofd_packets/00188342 [15:15:16]NVStorageDeleteData [15:15:16]OFD Sender: No OFD packet to send [15:15:17]*** Cut start [15:15:17]*** Partial cut [15:15:17]*** CUTSNS_PIN = 1 [15:15:17]*** CUTSNS_PIN = 0 [15:15:17]*** Brake cut motor [15:15:17]Read from MH i2c: 01 [15:15:17]MH_I2C_Read... [15:15:17]*** Stop cut motor [15:15:17]*** Cut end [15:15:17]Read from MH i2c: 01 07 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: 01 07 00 B3 11 00 00 00 00 00 FF 0F D9 [15:15:17]process_action close_receipt done [15:15:17]requested_data is exist [15:15:17]produce_requested_data [15:15:17]requested_item fm.sn is exist - process it [15:15:17]wFMCommunicate request_size=4 [15:15:17]MH_SAM_APDU [15:15:17]CAPDU: 80 11 00 00 [15:15:17]Write to MH i2c: E2 08 00 B4 11 80 11 00 00 00 00 00 00 3F [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:17]Read from MH i2c: E2 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 17 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 17 00 B4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [15:15:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:17]wFMCommunicate OK [15:15:17]requested_item fd.num is exist - process it [15:15:17]SAM_PROTO_GetFieldsCounters [15:15:17]wFMCommunicate request_size=4 [15:15:17]MH_SAM_APDU [15:15:17]CAPDU: 80 13 00 00 [15:15:17]Write to MH i2c: E2 08 00 B5 11 80 13 00 00 00 00 00 00 42 [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:17]Read from MH i2c: E2 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 62 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 62 00 B5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [15:15:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 73 01 00 00 5E 04 04 00 73 01 00 00 57 04 04 00 74 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:17]wFMCommunicate OK [15:15:17]SAM_PROTO_GetFieldsCounters done [15:15:17]requested_item shift.num is exist - process it [15:15:17]requested_item shift.opened is exist - process it [15:15:17]req_shift_opened [15:15:17]FM_GetShiftState [15:15:17]SAM_PROTO_GetShiftState [15:15:17]wFMCommunicate request_size=4 [15:15:17]MH_SAM_APDU [15:15:17]CAPDU: 80 13 01 00 [15:15:17]Write to MH i2c: E2 08 00 B6 11 80 13 01 00 00 00 00 00 44 [15:15:17]Write i2c OK [15:15:17]MH_I2C_Read... [15:15:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:17]Read from MH i2c: E2 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 0E 00 [15:15:17]MH_I2C_Read... [15:15:17]Read from MH i2c: E2 0E 00 B6 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 39 [15:15:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:15:17]wFMCommunicate OK [15:15:17]SAM_PROTO_GetShiftState done [15:15:17]FM_GetShiftState done [15:15:17]req_shift_opened done [15:15:17]requested_item shift.open_date is exist - process it [15:15:17]req_shift_open_date [15:15:17]req_shift_open_date done [15:15:17]produce_requested_data done [15:15:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188342,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:15:17]process_action_free close_receipt [15:15:17]json_value_free [15:15:17]json_value_free done [15:15:17]process_json_proto returns [15:15:17]Send response to host [15:15:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188342,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:15:17]free response buf [15:15:17]execute_script done [15:15:17]execute_script returns [15:15:17]free content buf [15:15:17]Sock 9.Close socket [15:15:17]Sock 9.Thread stoped [15:15:21]OFD Sender: No OFD packet to send [15:15:26]OFD Sender: No OFD packet to send [15:15:31]accept exits with 7 [15:15:31]New connection [15:15:31]New thread 3067305316 created [15:15:31]Thread 3067161956 joined [15:15:31]Waiting for new connection... [15:15:31] Sock 7.Parse request [15:15:31]Sock 7.Check first char [15:15:31]Sock 7.First char is OK [15:15:31]request: POST /json_proto HTTP/1.0 [15:15:31]Method: POST [15:15:31]URL: /json_proto [15:15:31]Method is POST - this is cgi request [15:15:31]url: /json_proto [15:15:31]query_string will be loaded in cgi processing [15:15:31]execute_cgi json_proto POST (null) [15:15:31]execute_cgi path=json_proto method=POST [15:15:31]POST find Content-Length [15:15:31]Host: 172.17.42.131:8080 [15:15:31]Content-Length: 769 [15:15:31]Content-Type: application/json [15:15:31] [15:15:31]POST finish read [15:15:31]Found Content-Length = 769 [15:15:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:31]execute_script... [15:15: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)210400", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:15:31]POST & json_proto [15:15:31]process_json_proto [15:15:31]json parsed OK: [15:15:31]protocol is kg_v1.0 [15:15:31]action value=close_receipt [15:15:31]process_action close_receipt [15:15:31]cmd_close_receipt [15:15:31]MH_GetDate [15:15:31]Write to MH i2c: F0 00 00 B7 11 B7 [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: F0 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: F0 09 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: F0 09 00 B7 11 00 94 C1 17 67 A0 18 CA 66 7B [15:15:31]GetLastDocTimeStamp 1729610114 [15:15:31]current date 1729610132 [15:15:31]FM_GetShiftState [15:15:31]SAM_PROTO_GetShiftState [15:15:31]wFMCommunicate request_size=4 [15:15:31]MH_SAM_APDU [15:15:31]CAPDU: 80 13 01 00 [15:15:31]Write to MH i2c: E2 08 00 B8 11 80 13 01 00 00 00 00 00 46 [15:15:31]Write i2c OK [15:15:31]MH_I2C_Read... [15:15:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:31]Read from MH i2c: E2 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 0E 00 [15:15:31]MH_I2C_Read... [15:15:31]Read from MH i2c: E2 0E 00 B8 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3B [15:15:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:15:31]wFMCommunicate OK [15:15:31]SAM_PROTO_GetShiftState done [15:15:31]FM_GetShiftState done [15:15:31]opened in 1729556094 [15:15:31]opened+sec_in_day 1729642494 [15:15:31]quantity*price = 100015 [15:15:31]sum+1 = 100017 [15:15:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 372 22.10.2024 15:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188343 ФПД: 63743842603404 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188343&fm=63743842603404&tin=02508201610067®Number=0000000000100030&sum=100016 [15:15:32]StoreToDocumentArchive [15:15:32]shift 461 fd 188343 [15:15:32]save to /storage/0461/doc_00188343 [15:15:32]save last doc name /storage/0461/doc_00188343 to /storage/kkm_last_doc_name [15:15:32]save OK [15:15:32]Clear old archive folders... [15:15:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:15:32]tlvbuf is 0145D800 [15:15:32]SAM_PROTO_ClearQueue [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 09 00 00 [15:15:32]Write to MH i2c: E2 08 00 C5 11 80 09 00 00 00 00 00 00 48 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 C5 11 00 90 00 4A [15:15:32]RAPDU: 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_ClearQueue done [15:15:32]KKMCreateOFDPacket [15:15:32]OFDProtocolAddRootSTLVToBuf [15:15:32]FM_MakeSignedData [15:15:32]FM_MakeSignedData [15:15:32]SAM_PROTO_SignData [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 0D 01 02 [15:15:32]Write to MH i2c: E2 08 00 C6 11 80 0D 01 02 00 00 00 00 50 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 C6 11 00 90 00 4B [15:15:32]RAPDU: 90 00 [15:15:32]wFMCommunicate OK [15:15:32]wFMCommunicate request_size=255 [15:15:32]MH_SAM_APDU [15:15: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 94 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DF 02 00 35 04 06 00 39 [15:15:32]Write to MH i2c: E2 02 01 C7 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 94 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DF 02 00 35 04 06 00 39 00 00 C4 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 C7 11 00 90 00 4C [15:15:32]RAPDU: 90 00 [15:15:32]wFMCommunicate OK [15:15:32]wFMCommunicate request_size=10 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 0D 02 02 05 F9 85 18 51 8C [15:15:32]Write to MH i2c: E2 0D 00 C8 11 80 0D 02 02 05 00 F9 85 18 51 8C 00 00 D0 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 03 00 C8 11 00 90 00 4D [15:15:32]RAPDU: 90 00 [15:15:32]wFMCommunicate OK [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 0D 03 02 [15:15:32]Write to MH i2c: E2 08 00 C9 11 80 0D 03 02 00 00 00 00 55 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0B 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 0B 00 C9 11 00 51 CE 16 FD 2F C7 F0 4C 90 00 BA [15:15:32]RAPDU: 51 CE 16 FD 2F C7 F0 4C 90 00 [15:15:32]wFMCommunicate OK [15:15:32]SAM_PROTO_SignData done [15:15:32]FM_MakeSignedData done [15:15:32]CreateOFDProtocolMessage [15:15:32]wFMCommunicate request_size=4 [15:15:32]MH_SAM_APDU [15:15:32]CAPDU: 80 11 00 00 [15:15:32]Write to MH i2c: E2 08 00 CA 11 80 11 00 00 00 00 00 00 55 [15:15:32]Write i2c OK [15:15:32]MH_I2C_Read... [15:15:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:32]Read from MH i2c: E2 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 17 00 [15:15:32]MH_I2C_Read... [15:15:32]Read from MH i2c: E2 17 00 CA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [15:15:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:33]wFMCommunicate OK [15:15:33]CreateOFDProtocolMessage done [15:15:33]OFDSenderStorePacket 188343 [15:15:33]StoreOFDPacket docnum=188343 [15:15:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 F3 07 01 14 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 94 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DF 02 00 35 04 06 00 39 F9 85 18 51 8C 51 CE 16 FD 2F C7 F0 4C [15:15:33]CheckFolder [15:15:33]dirname=/storage/ofd_packets [15:15:33]CheckFolder done [15:15:33]ProducePacketName [15:15:33]name=ofd_packets/00188343 [15:15:33]NVStorageSaveData ofd_packets/00188343 [15:15:33]File name is /storage/ofd_packets/00188343 [15:15:33]Write 301 bytes [15:15:33]NVStorageSaveData done [15:15:33]OFDSenderStorePacket done [15:15:33]KKMCreateOFDPacket done [15:15:33]NVStorageSaveData kkm_last_timestamp [15:15:33]File name is /storage/kkm_last_timestamp [15:15:33]Write 4 bytes [15:15:33]NVStorageSaveData done [15:15:33]ExternCall_PrintAddStr [15:15:33]wPrintStart [15:15:33]Write to MH i2c: 01 00 00 CB 11 DC [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 CB 11 00 00 00 00 00 FF 0F F1 [15:15:33]RasterBufferAndPrint [15:15:33]line Счет N : (1)210400 [15:15:33]line ИНН: 02508201610067 [15:15:33]line Контрольно-Кассовый Чек [15:15:33]line ПРОДАЖА [15:15:33]line ТРК (МРК, ГНК) : 22 [15:15:33]line Товар: 2710124130 [15:15:33]line Аи-92-К-3 [15:15:33]line 14.950 * 66.90 [15:15:33]line = 1000.16 [15:15:33]line НДС 12% НСП 1% [15:15:33]line > о реализуемом товаре [15:15:33]line ИТОГО: 1000.16 [15:15:33]line НСП 1% : 8.85 [15:15:33]line НДС 12% : 106.21 [15:15:33]line Наличными: 0.00 [15:15:33]line Безнал.: 1000.16 [15:15:33]line Место: АЗС № 86 "Партнер Нефть" [15:15:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:15:33]line СНО: Общий режим [15:15:33]line Чек 372 22.10.2024 15:15 [15:15:33]line Смена: 461 ФФД: 1.0 [15:15:33]line ЗНМ: 0300000155 [15:15:33]line РНМ: 0000000000100030 [15:15:33]line Версия ККМ: 001 [15:15:33]line Платежная система: Mbank [15:15:33]line ФМ: 0000000000965340 [15:15:33]line ФД: 188343 [15:15:33]line ФПД: 63743842603404 [15:15:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151532&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188343&fm=63743842603404&tin=02508201610067®Number=0000000000100030&sum=100016 [15:15:33]written 0, free lines is 4095 [15:15:33]OFD Sender: Processing packet 188343 [packets to send 1062, broken 1061] [15:15:33]ProducePacketName [15:15:33]name=ofd_packets/00188343 [15:15:33]OFD Sender: To server: pG, [15:15:33]CommunicateWithHost lk.salyk.kg:30040 [15:15:33]ConnectInit lk.salyk.kg [15:15:33]Write to MH i2c: 01 00 00 F4 11 05 [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: 01 07 00 F4 11 00 00 00 00 00 92 0C AA [15:15:33]RasterBufferAndPrint [15:15:33]line [15:15:33]line [15:15:33]line [15:15:33]line [15:15:33]line [15:15:33]written 0, free lines is 3221 [15:15:33]MH_Cut [15:15:33]Write to MH i2c: D1 01 00 FB 11 01 DE [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: D1 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: D1 01 00 [15:15:33]MH_I2C_Read... [15:15:33]Read from MH i2c: D1 01 00 FB 11 00 DD [15:15:33]Write to MH i2c: 01 00 00 FC 11 0D [15:15:33]Write i2c OK [15:15:33]MH_I2C_Read... [15:15:34]*** Cut start [15:15:34]*** Partial cut [15:15:34]*** CUTSNS_PIN = 1 [15:15:34]*** CUTSNS_PIN = 0 [15:15:34]*** Brake cut motor [15:15:35]Read from MH i2c: 01 [15:15:35]MH_I2C_Read... [15:15:35]*** Stop cut motor [15:15:35]*** Cut end [15:15:35]Read from MH i2c: 01 07 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: 01 07 00 FC 11 00 00 00 00 00 FF 0F 22 [15:15:35]process_action close_receipt done [15:15:35]requested_data is exist [15:15:35]produce_requested_data [15:15:35]requested_item fm.sn is exist - process it [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 11 00 00 [15:15:35]Write to MH i2c: E2 08 00 FD 11 80 11 00 00 00 00 00 00 88 [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 17 00 FD 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [15:15:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:35]wFMCommunicate OK [15:15:35]requested_item fd.num is exist - process it [15:15:35]SAM_PROTO_GetFieldsCounters [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 00 00 [15:15:35]Write to MH i2c: E2 08 00 FE 11 80 13 00 00 00 00 00 00 8B [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 62 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 62 00 FE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 57 [15:15:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 74 01 00 00 5E 04 04 00 74 01 00 00 57 04 04 00 75 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetFieldsCounters done [15:15:35]requested_item shift.num is exist - process it [15:15:35]requested_item shift.opened is exist - process it [15:15:35]req_shift_opened [15:15:35]FM_GetShiftState [15:15:35]SAM_PROTO_GetShiftState [15:15:35]wFMCommunicate request_size=4 [15:15:35]MH_SAM_APDU [15:15:35]CAPDU: 80 13 01 00 [15:15:35]Write to MH i2c: E2 08 00 FF 11 80 13 01 00 00 00 00 00 8D [15:15:35]Write i2c OK [15:15:35]MH_I2C_Read... [15:15:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:35]Read from MH i2c: E2 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 [15:15:35]MH_I2C_Read... [15:15:35]Read from MH i2c: E2 0E 00 FF 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 82 [15:15:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:15:35]wFMCommunicate OK [15:15:35]SAM_PROTO_GetShiftState done [15:15:35]FM_GetShiftState done [15:15:35]req_shift_opened done [15:15:35]requested_item shift.open_date is exist - process it [15:15:35]req_shift_open_date [15:15:35]req_shift_open_date done [15:15:35]produce_requested_data done [15:15:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188343,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:15:35]process_action_free close_receipt [15:15:35]json_value_free [15:15:35]json_value_free done [15:15:35]process_json_proto returns [15:15:35]Send response to host [15:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188343,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:15:35]free response buf [15:15:35]execute_script done [15:15:35]execute_script returns [15:15:35]free content buf [15:15:35]Sock 7.Close socket [15:15:35]Sock 7.Thread stoped [15:15:53]accept exits with 9 [15:15:53]New connection [15:15:53]New thread 3067161956 created [15:15:53]Thread 3067305316 joined [15:15:53]Waiting for new connection... [15:15:53] Sock 9.Parse request [15:15:53]Sock 9.Check first char [15:15:53]Sock 9.First char is OK [15:15:53]request: POST /json_proto HTTP/1.0 [15:15:53]Method: POST [15:15:53]URL: /json_proto [15:15:53]Method is POST - this is cgi request [15:15:53]url: /json_proto [15:15:53]query_string will be loaded in cgi processing [15:15:53]execute_cgi json_proto POST (null) [15:15:53]execute_cgi path=json_proto method=POST [15:15:53]POST find Content-Length [15:15:53]Host: 172.17.42.131:8080 [15:15:53]Content-Length: 683 [15:15:53]Content-Type: application/json [15:15:53] [15:15:53]POST finish read [15:15:53]Found Content-Length = 683 [15:15:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "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" ] } } [15:15:53]execute_script... [15:15: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)210401", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.780, "sum" : 600.62, "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" ] } } [15:15:53]POST & json_proto [15:15:53]process_json_proto [15:15:53]json parsed OK: [15:15:53]protocol is kg_v1.0 [15:15:53]action value=close_receipt [15:15:53]process_action close_receipt [15:15:53]cmd_close_receipt [15:15:53]MH_GetDate [15:15:53]Write to MH i2c: F0 00 00 00 12 01 [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: F0 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: F0 09 00 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: F0 09 00 00 12 00 AB C1 17 67 A0 18 CA 66 DC [15:15:53]GetLastDocTimeStamp 1729610132 [15:15:53]current date 1729610155 [15:15:53]FM_GetShiftState [15:15:53]SAM_PROTO_GetShiftState [15:15:53]wFMCommunicate request_size=4 [15:15:53]MH_SAM_APDU [15:15:53]CAPDU: 80 13 01 00 [15:15:53]Write to MH i2c: E2 08 00 01 12 80 13 01 00 00 00 00 00 90 [15:15:53]Write i2c OK [15:15:53]MH_I2C_Read... [15:15:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:53]Read from MH i2c: E2 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: E2 0E 00 [15:15:53]MH_I2C_Read... [15:15:53]Read from MH i2c: E2 0E 00 01 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [15:15:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:15:53]wFMCommunicate OK [15:15:53]SAM_PROTO_GetShiftState done [15:15:53]FM_GetShiftState done [15:15:53]opened in 1729556094 [15:15:53]opened+sec_in_day 1729642494 [15:15:53]quantity*price = 60061 [15:15:53]sum+1 = 60063 [15:15:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.78 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 373 22.10.2024 15:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188344 ФПД: 159962736044983 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151555&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188344&fm=159962736044983&tin=02508201610067®Number=0000000000100030&sum=60000 [15:15:54]StoreToDocumentArchive [15:15:54]shift 461 fd 188344 [15:15:54]save to /storage/0461/doc_00188344 [15:15:54]save last doc name /storage/0461/doc_00188344 to /storage/kkm_last_doc_name [15:15:54]save OK [15:15:54]Clear old archive folders... [15:15:54]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:15:54]tlvbuf is B6FAB5A0 [15:15:54]SAM_PROTO_ClearQueue [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 09 00 00 [15:15:54]Write to MH i2c: E2 08 00 0E 12 80 09 00 00 00 00 00 00 92 [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:15:54]Read from MH i2c: E2 03 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 0E 12 00 90 00 94 [15:15:54]RAPDU: 90 00 [15:15:54]wFMCommunicate OK [15:15:54]SAM_PROTO_ClearQueue done [15:15:54]KKMCreateOFDPacket [15:15:54]OFDProtocolAddRootSTLVToBuf [15:15:54]FM_MakeSignedData [15:15:54]FM_MakeSignedData [15:15:54]SAM_PROTO_SignData [15:15:54]wFMCommunicate request_size=4 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 0D 01 02 [15:15:54]Write to MH i2c: E2 08 00 0F 12 80 0D 01 02 00 00 00 00 9A [15:15:54]Write i2c OK [15:15:54]MH_I2C_Read... [15:15:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:15:54]Read from MH i2c: E2 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 [15:15:54]MH_I2C_Read... [15:15:54]Read from MH i2c: E2 03 00 0F 12 00 90 00 95 [15:15:54]RAPDU: 90 00 [15:15:54]wFMCommunicate OK [15:15:54]wFMCommunicate request_size=255 [15:15:54]MH_SAM_APDU [15:15:54]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 75 01 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DF 02 [15:15:54]Write to MH i2c: E2 02 01 10 12 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 75 01 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DF 02 00 00 D7 [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:55]Read from MH i2c: E2 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 03 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 03 00 10 12 00 90 00 96 [15:15:55]RAPDU: 90 00 [15:15:55]wFMCommunicate OK [15:15:55]wFMCommunicate request_size=16 [15:15:55]MH_SAM_APDU [15:15:55]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 91 7C 3A 0F 2B B7 [15:15:55]Write to MH i2c: E2 13 00 11 12 80 0D 02 02 0B 00 00 35 04 06 00 91 7C 3A 0F 2B B7 00 00 2A [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:15:55]Read from MH i2c: E2 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 03 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 03 00 11 12 00 90 00 97 [15:15:55]RAPDU: 90 00 [15:15:55]wFMCommunicate OK [15:15:55]wFMCommunicate request_size=4 [15:15:55]MH_SAM_APDU [15:15:55]CAPDU: 80 0D 03 02 [15:15:55]Write to MH i2c: E2 08 00 12 12 80 0D 03 02 00 00 00 00 9F [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:15:55]Read from MH i2c: E2 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 0B 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 0B 00 12 12 00 FB 81 9F 38 51 B8 6E BF 90 00 29 [15:15:55]RAPDU: FB 81 9F 38 51 B8 6E BF 90 00 [15:15:55]wFMCommunicate OK [15:15:55]SAM_PROTO_SignData done [15:15:55]FM_MakeSignedData done [15:15:55]CreateOFDProtocolMessage [15:15:55]wFMCommunicate request_size=4 [15:15:55]MH_SAM_APDU [15:15:55]CAPDU: 80 11 00 00 [15:15:55]Write to MH i2c: E2 08 00 13 12 80 11 00 00 00 00 00 00 9F [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:55]Read from MH i2c: E2 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 17 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: E2 17 00 13 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [15:15:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:55]wFMCommunicate OK [15:15:55]CreateOFDProtocolMessage done [15:15:55]OFDSenderStorePacket 188344 [15:15:55]StoreOFDPacket docnum=188344 [15:15:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2D BB 0D 01 2E 3C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 75 01 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DF 02 00 35 04 06 00 91 7C 3A 0F 2B B7 FB 81 9F 38 51 B8 6E BF [15:15:55]CheckFolder [15:15:55]dirname=/storage/ofd_packets [15:15:55]CheckFolder done [15:15:55]ProducePacketName [15:15:55]name=ofd_packets/00188344 [15:15:55]NVStorageSaveData ofd_packets/00188344 [15:15:55]File name is /storage/ofd_packets/00188344 [15:15:55]Write 307 bytes [15:15:55]NVStorageSaveData done [15:15:55]OFDSenderStorePacket done [15:15:55]KKMCreateOFDPacket done [15:15:55]NVStorageSaveData kkm_last_timestamp [15:15:55]File name is /storage/kkm_last_timestamp [15:15:55]Write 4 bytes [15:15:55]NVStorageSaveData done [15:15:55]ExternCall_PrintAddStr [15:15:55]wPrintStart [15:15:55]Write to MH i2c: 01 00 00 14 12 26 [15:15:55]Write i2c OK [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: 01 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: 01 07 00 [15:15:55]MH_I2C_Read... [15:15:55]Read from MH i2c: 01 07 00 14 12 00 00 00 00 00 FF 0F 3B [15:15:55]RasterBufferAndPrint [15:15:55]line Счет N : (1)210401 [15:15:55]line ИНН: 02508201610067 [15:15:55]line Контрольно-Кассовый Чек [15:15:55]line ПРОДАЖА [15:15:55]line ТРК (МРК, ГНК) : 31 [15:15:55]line Товар: 2710194210 [15:15:55]line D-ENERGY ДТ-К-5 [15:15:55]line 7.780 * 77.20 [15:15:55]line = 600.62 [15:15:55]line НДС 12% НСП 1% [15:15:55]line > о реализуемом товаре [15:15:55]line ОКРУГЛЕНИЕ: -0.62 [15:15:55]line ИТОГО: 600.00 [15:15:55]line Внесено: 600.00 [15:15:55]line СДАЧА: 0.00 [15:15:55]line НСП 1% : 5.31 [15:15:55]line НДС 12% : 63.78 [15:15:55]line Наличными: 600.00 [15:15:55]line Безнал.: 0.00 [15:15:55]line Место: АЗС № 86 "Партнер Нефть" [15:15:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:15:55]line СНО: Общий режим [15:15:55]line Чек 373 22.10.2024 15:15 [15:15:55]line Смена: 461 ФФД: 1.0 [15:15:55]line ЗНМ: 0300000155 [15:15:55]line РНМ: 0000000000100030 [15:15:55]line Версия ККМ: 001 [15:15:55]line ФМ: 0000000000965340 [15:15:55]line ФД: 188344 [15:15:55]line ФПД: 159962736044983 [15:15:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151555&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188344&fm=159962736044983&tin=02508201610067®Number=0000000000100030&sum=60000 [15:15:55]written 0, free lines is 4095 [15:15:56]Write to MH i2c: 01 00 00 3F 12 51 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: 01 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: 01 07 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: 01 07 00 3F 12 00 00 00 00 00 61 0C C5 [15:15:56]RasterBufferAndPrint [15:15:56]line [15:15:56]line [15:15:56]line [15:15:56]line [15:15:56]line [15:15:56]written 0, free lines is 3172 [15:15:56]MH_Cut [15:15:56]Write to MH i2c: D1 01 00 46 12 01 2A [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: D1 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: D1 01 00 [15:15:56]MH_I2C_Read... [15:15:56]Read from MH i2c: D1 01 00 46 12 00 29 [15:15:56]Write to MH i2c: 01 00 00 47 12 59 [15:15:56]Write i2c OK [15:15:56]MH_I2C_Read... [15:15:57]*** Cut start [15:15:57]*** Partial cut [15:15:57]*** CUTSNS_PIN = 1 [15:15:57]*** CUTSNS_PIN = 0 [15:15:57]*** Brake cut motor [15:15:58]Read from MH i2c: 01 [15:15:58]MH_I2C_Read... [15:15:58]*** Stop cut motor [15:15:58]*** Cut end [15:15:58]Read from MH i2c: 01 07 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: 01 07 00 47 12 00 00 00 00 00 FF 0F 6E [15:15:58]process_action close_receipt done [15:15:58]requested_data is exist [15:15:58]produce_requested_data [15:15:58]requested_item fm.sn is exist - process it [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 11 00 00 [15:15:58]Write to MH i2c: E2 08 00 48 12 80 11 00 00 00 00 00 00 D4 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 17 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 17 00 48 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [15:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:15:58]wFMCommunicate OK [15:15:58]requested_item fd.num is exist - process it [15:15:58]SAM_PROTO_GetFieldsCounters [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 13 00 00 [15:15:58]Write to MH i2c: E2 08 00 49 12 80 13 00 00 00 00 00 00 D7 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 62 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 62 00 49 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 A7 [15:15:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 75 01 00 00 5E 04 04 00 75 01 00 00 57 04 04 00 76 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:15:58]wFMCommunicate OK [15:15:58]SAM_PROTO_GetFieldsCounters done [15:15:58]requested_item shift.num is exist - process it [15:15:58]requested_item shift.opened is exist - process it [15:15:58]req_shift_opened [15:15:58]FM_GetShiftState [15:15:58]SAM_PROTO_GetShiftState [15:15:58]wFMCommunicate request_size=4 [15:15:58]MH_SAM_APDU [15:15:58]CAPDU: 80 13 01 00 [15:15:58]Write to MH i2c: E2 08 00 4A 12 80 13 01 00 00 00 00 00 D9 [15:15:58]Write i2c OK [15:15:58]MH_I2C_Read... [15:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:15:58]Read from MH i2c: E2 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 0E 00 [15:15:58]MH_I2C_Read... [15:15:58]Read from MH i2c: E2 0E 00 4A 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [15:15:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:15:58]wFMCommunicate OK [15:15:58]SAM_PROTO_GetShiftState done [15:15:58]FM_GetShiftState done [15:15:58]req_shift_opened done [15:15:58]requested_item shift.open_date is exist - process it [15:15:58]req_shift_open_date [15:15:58]req_shift_open_date done [15:15:58]produce_requested_data done [15:15:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188344,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:15:58]process_action_free close_receipt [15:15:58]json_value_free [15:15:58]json_value_free done [15:15:58]process_json_proto returns [15:15:58]Send response to host [15:15:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188344,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:15:58]free response buf [15:15:58]execute_script done [15:15:58]execute_script returns [15:15:58]free content buf [15:15:58]Sock 9.Close socket [15:15:58]Sock 9.Thread stoped [15:17:08]accept exits with 7 [15:17:08]New connection [15:17:08]New thread 3067305316 created [15:17:08]Thread 3067161956 joined [15:17:08]Waiting for new connection... [15:17:08] Sock 7.Parse request [15:17:08]Sock 7.Check first char [15:17:08]Sock 7.First char is OK [15:17:08]request: POST /json_proto HTTP/1.0 [15:17:08]Method: POST [15:17:08]URL: /json_proto [15:17:08]Method is POST - this is cgi request [15:17:08]url: /json_proto [15:17:08]query_string will be loaded in cgi processing [15:17:08]execute_cgi json_proto POST (null) [15:17:08]execute_cgi path=json_proto method=POST [15:17:08]POST find Content-Length [15:17:08]Host: 172.17.42.131:8080 [15:17:08]Content-Length: 677 [15:17:08]Content-Type: application/json [15:17:08] [15:17:08]POST finish read [15:17:08]Found Content-Length = 677 [15:17:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:08]execute_script... [15:17: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)210402", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:17:08]POST & json_proto [15:17:08]process_json_proto [15:17:08]json parsed OK: [15:17:08]protocol is kg_v1.0 [15:17:08]action value=close_receipt [15:17:08]process_action close_receipt [15:17:08]cmd_close_receipt [15:17:08]MH_GetDate [15:17:08]Write to MH i2c: F0 00 00 4B 12 4C [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: F0 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: F0 09 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: F0 09 00 4B 12 00 F6 C1 17 67 A0 18 CA 66 72 [15:17:08]GetLastDocTimeStamp 1729610155 [15:17:08]current date 1729610230 [15:17:08]FM_GetShiftState [15:17:08]SAM_PROTO_GetShiftState [15:17:08]wFMCommunicate request_size=4 [15:17:08]MH_SAM_APDU [15:17:08]CAPDU: 80 13 01 00 [15:17:08]Write to MH i2c: E2 08 00 4C 12 80 13 01 00 00 00 00 00 DB [15:17:08]Write i2c OK [15:17:08]MH_I2C_Read... [15:17:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:08]Read from MH i2c: E2 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0E 00 [15:17:08]MH_I2C_Read... [15:17:08]Read from MH i2c: E2 0E 00 4C 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [15:17:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:17:08]wFMCommunicate OK [15:17:08]SAM_PROTO_GetShiftState done [15:17:08]FM_GetShiftState done [15:17:08]opened in 1729556094 [15:17:08]opened+sec_in_day 1729642494 [15:17:08]quantity*price = 60009 [15:17:08]sum+1 = 60010 [15:17:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 374 22.10.2024 15:17 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188345 ФПД: 183023865917443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188345&fm=183023865917443&tin=02508201610067®Number=0000000000100030&sum=60000 [15:17:09]StoreToDocumentArchive [15:17:09]shift 461 fd 188345 [15:17:09]save to /storage/0461/doc_00188345 [15:17:09]save last doc name /storage/0461/doc_00188345 to /storage/kkm_last_doc_name [15:17:09]save OK [15:17:09]Clear old archive folders... [15:17:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:17:09]tlvbuf is 01474DD0 [15:17:09]SAM_PROTO_ClearQueue [15:17:09]wFMCommunicate request_size=4 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 09 00 00 [15:17:09]Write to MH i2c: E2 08 00 59 12 80 09 00 00 00 00 00 00 DD [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 59 12 00 90 00 DF [15:17:09]RAPDU: 90 00 [15:17:09]wFMCommunicate OK [15:17:09]SAM_PROTO_ClearQueue done [15:17:09]KKMCreateOFDPacket [15:17:09]OFDProtocolAddRootSTLVToBuf [15:17:09]FM_MakeSignedData [15:17:09]FM_MakeSignedData [15:17:09]SAM_PROTO_SignData [15:17:09]wFMCommunicate request_size=4 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 0D 01 02 [15:17:09]Write to MH i2c: E2 08 00 5A 12 80 0D 01 02 00 00 00 00 E5 [15:17:09]Write i2c OK [15:17:09]MH_I2C_Read... [15:17:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:17:09]Read from MH i2c: E2 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 [15:17:09]MH_I2C_Read... [15:17:09]Read from MH i2c: E2 03 00 5A 12 00 90 00 E0 [15:17:09]RAPDU: 90 00 [15:17:09]wFMCommunicate OK [15:17:09]wFMCommunicate request_size=255 [15:17:09]MH_SAM_APDU [15:17:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 F6 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DF 02 00 35 04 06 00 A6 [15:17:10]Write to MH i2c: E2 02 01 5B 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 F6 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DF 02 00 35 04 06 00 A6 00 00 EF [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 5B 12 00 90 00 E1 [15:17:10]RAPDU: 90 00 [15:17:10]wFMCommunicate OK [15:17:10]wFMCommunicate request_size=10 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 0D 02 02 05 75 90 83 70 03 [15:17:10]Write to MH i2c: E2 0D 00 5C 12 80 0D 02 02 05 00 75 90 83 70 03 00 00 ED [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 03 00 5C 12 00 90 00 E2 [15:17:10]RAPDU: 90 00 [15:17:10]wFMCommunicate OK [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 0D 03 02 [15:17:10]Write to MH i2c: E2 08 00 5D 12 80 0D 03 02 00 00 00 00 EA [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 0B 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 0B 00 5D 12 00 BC 04 84 33 BB 4B 77 F4 90 00 D3 [15:17:10]RAPDU: BC 04 84 33 BB 4B 77 F4 90 00 [15:17:10]wFMCommunicate OK [15:17:10]SAM_PROTO_SignData done [15:17:10]FM_MakeSignedData done [15:17:10]CreateOFDProtocolMessage [15:17:10]wFMCommunicate request_size=4 [15:17:10]MH_SAM_APDU [15:17:10]CAPDU: 80 11 00 00 [15:17:10]Write to MH i2c: E2 08 00 5E 12 80 11 00 00 00 00 00 00 EA [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:10]Read from MH i2c: E2 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 17 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: E2 17 00 5E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [15:17:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:10]wFMCommunicate OK [15:17:10]CreateOFDProtocolMessage done [15:17:10]OFDSenderStorePacket 188345 [15:17:10]StoreOFDPacket docnum=188345 [15:17:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 C6 07 01 C3 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 F6 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DF 02 00 35 04 06 00 A6 75 90 83 70 03 BC 04 84 33 BB 4B 77 F4 [15:17:10]CheckFolder [15:17:10]dirname=/storage/ofd_packets [15:17:10]CheckFolder done [15:17:10]ProducePacketName [15:17:10]name=ofd_packets/00188345 [15:17:10]NVStorageSaveData ofd_packets/00188345 [15:17:10]File name is /storage/ofd_packets/00188345 [15:17:10]Write 301 bytes [15:17:10]NVStorageSaveData done [15:17:10]OFDSenderStorePacket done [15:17:10]KKMCreateOFDPacket done [15:17:10]NVStorageSaveData kkm_last_timestamp [15:17:10]File name is /storage/kkm_last_timestamp [15:17:10]Write 4 bytes [15:17:10]NVStorageSaveData done [15:17:10]ExternCall_PrintAddStr [15:17:10]wPrintStart [15:17:10]Write to MH i2c: 01 00 00 5F 12 71 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 5F 12 00 00 00 00 00 FF 0F 86 [15:17:10]RasterBufferAndPrint [15:17:10]line Счет N : (1)210402 [15:17:10]line ИНН: 02508201610067 [15:17:10]line Контрольно-Кассовый Чек [15:17:10]line ПРОДАЖА [15:17:10]line ТРК (МРК, ГНК) : 42 [15:17:10]line Товар: 2710124130 [15:17:10]line Аи-92-К-3 [15:17:10]line 8.970 * 66.90 [15:17:10]line = 600.09 [15:17:10]line НДС 12% НСП 1% [15:17:10]line > о реализуемом товаре [15:17:10]line ОКРУГЛЕНИЕ: -0.09 [15:17:10]line ИТОГО: 600.00 [15:17:10]line Внесено: 600.00 [15:17:10]line СДАЧА: 0.00 [15:17:10]line НСП 1% : 5.31 [15:17:10]line НДС 12% : 63.73 [15:17:10]line Наличными: 600.00 [15:17:10]line Безнал.: 0.00 [15:17:10]line Место: АЗС № 86 "Партнер Нефть" [15:17:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:17:10]line СНО: Общий режим [15:17:10]line Чек 374 22.10.2024 15:17 [15:17:10]line Смена: 461 ФФД: 1.0 [15:17:10]line ЗНМ: 0300000155 [15:17:10]line РНМ: 0000000000100030 [15:17:10]line Версия ККМ: 001 [15:17:10]line ФМ: 0000000000965340 [15:17:10]line ФД: 188345 [15:17:10]line ФПД: 183023865917443 [15:17:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T151710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188345&fm=183023865917443&tin=02508201610067®Number=0000000000100030&sum=60000 [15:17:10]written 0, free lines is 4095 [15:17:10]Write to MH i2c: 01 00 00 8A 12 9C [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: 01 07 00 8A 12 00 00 00 00 00 62 0C 11 [15:17:10]RasterBufferAndPrint [15:17:10]line [15:17:10]line [15:17:10]line [15:17:10]line [15:17:10]line [15:17:10]written 0, free lines is 3174 [15:17:10]MH_Cut [15:17:10]Write to MH i2c: D1 01 00 91 12 01 75 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: D1 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: D1 01 00 [15:17:10]MH_I2C_Read... [15:17:10]Read from MH i2c: D1 01 00 91 12 00 74 [15:17:10]Write to MH i2c: 01 00 00 92 12 A4 [15:17:10]Write i2c OK [15:17:10]MH_I2C_Read... [15:17:12]*** Cut start [15:17:12]*** Partial cut [15:17:12]*** CUTSNS_PIN = 1 [15:17:12]*** CUTSNS_PIN = 0 [15:17:12]*** Brake cut motor [15:17:12]Read from MH i2c: 01 [15:17:12]MH_I2C_Read... [15:17:12]*** Stop cut motor [15:17:12]Read from MH i2c: 01 07 00 [15:17:12]MH_I2C_Read... [15:17:12]*** Cut end [15:17:12]Read from MH i2c: 01 07 00 92 12 00 00 00 00 00 FF 0F B9 [15:17:12]process_action close_receipt done [15:17:12]requested_data is exist [15:17:12]produce_requested_data [15:17:12]requested_item fm.sn is exist - process it [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 11 00 00 [15:17:12]Write to MH i2c: E2 08 00 93 12 80 11 00 00 00 00 00 00 1F [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 17 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 17 00 93 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [15:17:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:17:12]wFMCommunicate OK [15:17:12]requested_item fd.num is exist - process it [15:17:12]SAM_PROTO_GetFieldsCounters [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 13 00 00 [15:17:12]Write to MH i2c: E2 08 00 94 12 80 13 00 00 00 00 00 00 22 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 62 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 62 00 94 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 F6 [15:17:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 B9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 76 01 00 00 5E 04 04 00 76 01 00 00 57 04 04 00 77 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_GetFieldsCounters done [15:17:12]requested_item shift.num is exist - process it [15:17:12]requested_item shift.opened is exist - process it [15:17:12]req_shift_opened [15:17:12]FM_GetShiftState [15:17:12]SAM_PROTO_GetShiftState [15:17:12]wFMCommunicate request_size=4 [15:17:12]MH_SAM_APDU [15:17:12]CAPDU: 80 13 01 00 [15:17:12]Write to MH i2c: E2 08 00 95 12 80 13 01 00 00 00 00 00 24 [15:17:12]Write i2c OK [15:17:12]MH_I2C_Read... [15:17:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:17:12]Read from MH i2c: E2 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 [15:17:12]MH_I2C_Read... [15:17:12]Read from MH i2c: E2 0E 00 95 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 19 [15:17:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:17:12]wFMCommunicate OK [15:17:12]SAM_PROTO_GetShiftState done [15:17:12]FM_GetShiftState done [15:17:12]req_shift_opened done [15:17:12]requested_item shift.open_date is exist - process it [15:17:12]req_shift_open_date [15:17:12]req_shift_open_date done [15:17:12]produce_requested_data done [15:17:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188345,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:17:12]process_action_free close_receipt [15:17:12]json_value_free [15:17:12]json_value_free done [15:17:12]process_json_proto returns [15:17:12]Send response to host [15:17:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188345,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:17:12]free response buf [15:17:12]execute_script done [15:17:12]execute_script returns [15:17:12]free content buf [15:17:12]Sock 7.Close socket [15:17:12]Sock 7.Thread stoped [15:17:44]ConnectInit Can't connect to host [15:17:44]CommunicateWithHost connect error [15:17:44]CommunicateWithHost err = -1 [15:17:44]OFD Sender: Server communicate error [15:17:44]OFD Sender: Processing packet 188343 [packets to send 1064, broken 1061] [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00188343 [15:17:44]OFD Sender: To server: pG, [15:17:44]CommunicateWithHost lk.salyk.kg:30040 [15:17:44]ConnectInit lk.salyk.kg [15:17:44]Connected sock=7 [15:17:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 F3 07 01 14 41 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 01 00 00 F4 03 04 00 94 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B7 DF 02 00 35 04 06 00 39 F9 85 18 51 8C 51 CE 16 FD 2F C7 F0 4C [15:17:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F 9F 47 00 A1 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 39 36 35 33 34 30 10 04 04 00 B7 DF 02 00 F4 03 04 00 04 6C 17 67 B6 04 01 00 00 05 1A 79 F1 D1 FB EF 30 [15:17:44]CommunicateWithHost err = 0 [15:17:44]CheckOFDResponse [15:17:44]1017 (14) - 77093643461234 [15:17:44]1041 (16) - 0000000000965340 [15:17:44]1040 (4) - 188343 [15:17:44]1012 (4) - 22.10.2024 09:10 [15:17:44]1206 (1) - 0 [15:17:44]OFD Sender: Remove packet 188343 [15:17:44]ProducePacketName [15:17:44]name=ofd_packets/00188343 [15:17:44]NVStorageDeleteData [15:17:45]OFD Sender: Processing packet 188344 [packets to send 1063, broken 1061] [15:17:45]ProducePacketName [15:17:45]name=ofd_packets/00188344 [15:17:45]OFD Sender: To server: pG, [15:17:45]CommunicateWithHost lk.salyk.kg:30040 [15:17:45]ConnectInit lk.salyk.kg [15:17:45]Connected sock=7 [15:17:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2D BB 0D 01 2E 3C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 9E 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 EA 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 75 01 00 00 F4 03 04 00 AB C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DF 02 00 35 04 06 00 91 7C 3A 0F 2B B7 FB 81 9F 38 51 B8 6E BF [15:17:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BE 0D 47 00 44 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B8 DF 02 00 F4 03 04 00 05 6C 17 67 B6 04 01 00 00 06 24 55 65 F9 73 22 B9 [15:17:45]CommunicateWithHost err = 0 [15:17:45]CheckOFDResponse [15:17:45]1017 (14) - 77093643461234 [15:17:45]1041 (16) - 0000000000965340 [15:17:45]1040 (4) - 188344 [15:17:45]1012 (4) - 22.10.2024 09:10 [15:17:45]1206 (1) - 0 [15:17:45]OFD Sender: Remove packet 188344 [15:17:45]ProducePacketName [15:17:45]name=ofd_packets/00188344 [15:17:45]NVStorageDeleteData [15:17:46]OFD Sender: Processing packet 188345 [packets to send 1062, broken 1061] [15:17:46]ProducePacketName [15:17:46]name=ofd_packets/00188345 [15:17:46]OFD Sender: To server: pG, [15:17:46]CommunicateWithHost lk.salyk.kg:30040 [15:17:46]ConnectInit lk.salyk.kg [15:17:46]Connected sock=7 [15:17:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C8 C6 07 01 C3 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 76 01 00 00 F4 03 04 00 F6 C1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DF 02 00 35 04 06 00 A6 75 90 83 70 03 BC 04 84 33 BB 4B 77 F4 [15:17:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 E6 47 00 A7 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 B9 DF 02 00 F4 03 04 00 07 6C 17 67 B6 04 01 00 00 62 9C 00 30 BC 2D B4 06 [15:17:47]CommunicateWithHost err = 0 [15:17:47]CheckOFDResponse [15:17:47]1017 (14) - 77093643461234 [15:17:47]1041 (16) - 0000000000965340 [15:17:47]1040 (4) - 188345 [15:17:47]1012 (4) - 22.10.2024 09:10 [15:17:47]1206 (1) - 0 [15:17:47]OFD Sender: Remove packet 188345 [15:17:47]ProducePacketName [15:17:47]name=ofd_packets/00188345 [15:17:47]NVStorageDeleteData [15:17:47]OFD Sender: No OFD packet to send [15:17:52]OFD Sender: No OFD packet to send [15:17:57]OFD Sender: No OFD packet to send [15:18:02]OFD Sender: No OFD packet to send [15:18:07]OFD Sender: No OFD packet to send [15:18:12]OFD Sender: No OFD packet to send [15:18:17]OFD Sender: No OFD packet to send [15:18:22]OFD Sender: No OFD packet to send [15:18:27]OFD Sender: No OFD packet to send [15:18:32]OFD Sender: No OFD packet to send [15:18:37]OFD Sender: No OFD packet to send [15:18:42]OFD Sender: No OFD packet to send [15:18:47]OFD Sender: No OFD packet to send [15:18:53]OFD Sender: No OFD packet to send [15:18:58]OFD Sender: No OFD packet to send [15:19:03]OFD Sender: No OFD packet to send [15:19:08]OFD Sender: No OFD packet to send [15:19:13]OFD Sender: No OFD packet to send [15:19:18]OFD Sender: No OFD packet to send [15:19:23]OFD Sender: No OFD packet to send [15:19:28]OFD Sender: No OFD packet to send [15:19:33]OFD Sender: No OFD packet to send [15:19:38]OFD Sender: No OFD packet to send [15:19:43]OFD Sender: No OFD packet to send [15:19:48]OFD Sender: No OFD packet to send [15:19:53]OFD Sender: No OFD packet to send [15:19:58]OFD Sender: No OFD packet to send [15:20:03]OFD Sender: No OFD packet to send [15:20:08]OFD Sender: No OFD packet to send [15:20:13]OFD Sender: No OFD packet to send [15:20:18]OFD Sender: No OFD packet to send [15:20:23]OFD Sender: No OFD packet to send [15:20:28]OFD Sender: No OFD packet to send [15:20:33]OFD Sender: No OFD packet to send [15:20:36]accept exits with 9 [15:20:36]New connection [15:20:36]New thread 3067161956 created [15:20:36]Thread 3067305316 joined [15:20:36]Waiting for new connection... [15:20:36] Sock 9.Parse request [15:20:36]Sock 9.Check first char [15:20:36]Sock 9.First char is OK [15:20:36]request: POST /json_proto HTTP/1.0 [15:20:36]Method: POST [15:20:36]URL: /json_proto [15:20:36]Method is POST - this is cgi request [15:20:36]url: /json_proto [15:20:36]query_string will be loaded in cgi processing [15:20:36]execute_cgi json_proto POST (null) [15:20:36]execute_cgi path=json_proto method=POST [15:20:36]POST find Content-Length [15:20:36]Host: 172.17.42.131:8080 [15:20:36]Content-Length: 819 [15:20:36]Content-Type: application/json [15:20:36] [15:20:36]POST finish read [15:20:36]Found Content-Length = 819 [15:20:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:36]execute_script... [15:20: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)210403", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:20:36]POST & json_proto [15:20:36]process_json_proto [15:20:36]json parsed OK: [15:20:36]protocol is kg_v1.0 [15:20:36]action value=close_receipt [15:20:36]process_action close_receipt [15:20:36]cmd_close_receipt [15:20:36]MH_GetDate [15:20:36]Write to MH i2c: F0 00 00 96 12 97 [15:20:36]Write i2c OK [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: F0 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: F0 09 00 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: F0 09 00 96 12 00 C5 C2 17 67 A0 18 CA 66 8D [15:20:36]GetLastDocTimeStamp 1729610230 [15:20:36]current date 1729610437 [15:20:36]FM_GetShiftState [15:20:36]SAM_PROTO_GetShiftState [15:20:36]wFMCommunicate request_size=4 [15:20:36]MH_SAM_APDU [15:20:36]CAPDU: 80 13 01 00 [15:20:36]Write to MH i2c: E2 08 00 97 12 80 13 01 00 00 00 00 00 26 [15:20:36]Write i2c OK [15:20:36]MH_I2C_Read... [15:20:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:36]Read from MH i2c: E2 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: E2 0E 00 [15:20:36]MH_I2C_Read... [15:20:36]Read from MH i2c: E2 0E 00 97 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1B [15:20:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:20:36]wFMCommunicate OK [15:20:36]SAM_PROTO_GetShiftState done [15:20:36]FM_GetShiftState done [15:20:36]opened in 1729556094 [15:20:36]opened+sec_in_day 1729642494 [15:20:36]quantity*price = 150056 [15:20:36]sum+1 = 150058 [15:20:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 375 22.10.2024 15:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188346 ФПД: 254871092081088 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188346&fm=254871092081088&tin=02508201610067®Number=0000000000100030&sum=150057 [15:20:37]StoreToDocumentArchive [15:20:37]shift 461 fd 188346 [15:20:37]save to /storage/0461/doc_00188346 [15:20:37]save last doc name /storage/0461/doc_00188346 to /storage/kkm_last_doc_name [15:20:37]save OK [15:20:37]Clear old archive folders... [15:20:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:20:37]tlvbuf is 014419D0 [15:20:37]SAM_PROTO_ClearQueue [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 09 00 00 [15:20:37]Write to MH i2c: E2 08 00 A4 12 80 09 00 00 00 00 00 00 28 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 A4 12 00 90 00 2A [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_ClearQueue done [15:20:37]KKMCreateOFDPacket [15:20:37]OFDProtocolAddRootSTLVToBuf [15:20:37]FM_MakeSignedData [15:20:37]FM_MakeSignedData [15:20:37]SAM_PROTO_SignData [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 01 02 [15:20:37]Write to MH i2c: E2 08 00 A5 12 80 0D 01 02 00 00 00 00 30 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 A5 12 00 90 00 2B [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]wFMCommunicate request_size=255 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 C5 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DF 02 00 35 04 06 00 E7 [15:20:37]Write to MH i2c: E2 02 01 A6 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 C5 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DF 02 00 35 04 06 00 E7 00 00 2D [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 A6 12 00 90 00 2C [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]wFMCommunicate request_size=10 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 02 02 05 CD CC E8 31 C0 [15:20:37]Write to MH i2c: E2 0D 00 A7 12 80 0D 02 02 05 00 CD CC E8 31 C0 00 00 AF [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 03 00 A7 12 00 90 00 2D [15:20:37]RAPDU: 90 00 [15:20:37]wFMCommunicate OK [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 0D 03 02 [15:20:37]Write to MH i2c: E2 08 00 A8 12 80 0D 03 02 00 00 00 00 35 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0B 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 0B 00 A8 12 00 F6 08 07 66 01 5B 44 D5 90 00 16 [15:20:37]RAPDU: F6 08 07 66 01 5B 44 D5 90 00 [15:20:37]wFMCommunicate OK [15:20:37]SAM_PROTO_SignData done [15:20:37]FM_MakeSignedData done [15:20:37]CreateOFDProtocolMessage [15:20:37]wFMCommunicate request_size=4 [15:20:37]MH_SAM_APDU [15:20:37]CAPDU: 80 11 00 00 [15:20:37]Write to MH i2c: E2 08 00 A9 12 80 11 00 00 00 00 00 00 35 [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:37]Read from MH i2c: E2 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 17 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: E2 17 00 A9 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [15:20:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:20:37]wFMCommunicate OK [15:20:37]CreateOFDProtocolMessage done [15:20:37]OFDSenderStorePacket 188346 [15:20:37]StoreOFDPacket docnum=188346 [15:20:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 97 07 01 F7 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 C5 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DF 02 00 35 04 06 00 E7 CD CC E8 31 C0 F6 08 07 66 01 5B 44 D5 [15:20:37]CheckFolder [15:20:37]dirname=/storage/ofd_packets [15:20:37]CheckFolder done [15:20:37]ProducePacketName [15:20:37]name=ofd_packets/00188346 [15:20:37]NVStorageSaveData ofd_packets/00188346 [15:20:37]File name is /storage/ofd_packets/00188346 [15:20:37]Write 301 bytes [15:20:37]NVStorageSaveData done [15:20:37]OFDSenderStorePacket done [15:20:37]KKMCreateOFDPacket done [15:20:37]NVStorageSaveData kkm_last_timestamp [15:20:37]File name is /storage/kkm_last_timestamp [15:20:37]Write 4 bytes [15:20:37]NVStorageSaveData done [15:20:37]ExternCall_PrintAddStr [15:20:37]wPrintStart [15:20:37]Write to MH i2c: 01 00 00 AA 12 BC [15:20:37]Write i2c OK [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 07 00 [15:20:37]MH_I2C_Read... [15:20:37]Read from MH i2c: 01 07 00 AA 12 00 00 00 00 00 FF 0F D1 [15:20:37]RasterBufferAndPrint [15:20:37]line Счет N : (1)210403 [15:20:37]line ИНН: 02508201610067 [15:20:37]line Контрольно-Кассовый Чек [15:20:37]line ПРОДАЖА [15:20:37]line ТРК (МРК, ГНК) : 32 [15:20:37]line Товар: 2710124130 [15:20:37]line Аи-92-К-3 [15:20:37]line 22.430 * 66.90 [15:20:37]line = 1500.57 [15:20:37]line НДС 12% НСП 1% [15:20:37]line > о реализуемом товаре [15:20:37]line ИТОГО: 1500.57 [15:20:37]line НСП 1% : 13.28 [15:20:37]line НДС 12% : 159.35 [15:20:37]line Наличными: 0.00 [15:20:37]line Безнал.: 1500.57 [15:20:37]line Место: АЗС № 86 "Партнер Нефть" [15:20:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:20:37]line СНО: Общий режим [15:20:37]line Чек 375 22.10.2024 15:20 [15:20:37]line Смена: 461 ФФД: 1.0 [15:20:37]line ЗНМ: 0300000155 [15:20:37]line РНМ: 0000000000100030 [15:20:37]line Версия ККМ: 001 [15:20:37]line Платежная система: Бакай Банк [15:20:37]line ФМ: 0000000000965340 [15:20:37]line ФД: 188346 [15:20:37]line ФПД: 254871092081088 [15:20:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152037&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188346&fm=254871092081088&tin=02508201610067®Number=0000000000100030&sum=150057 [15:20:37]written 0, free lines is 4095 [15:20:37]OFD Sender: Processing packet 188346 [packets to send 1062, broken 1061] [15:20:37]ProducePacketName [15:20:37]name=ofd_packets/00188346 [15:20:37]OFD Sender: To server: pG, [15:20:37]CommunicateWithHost lk.salyk.kg:30040 [15:20:37]ConnectInit lk.salyk.kg [15:20:38]Connected sock=7 [15:20:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 42 97 07 01 F7 6B 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 77 01 00 00 F4 03 04 00 C5 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DF 02 00 35 04 06 00 E7 CD CC E8 31 C0 F6 08 07 66 01 5B 44 D5 [15:20:38]Write to MH i2c: 01 00 00 D4 12 E6 [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 07 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: 01 07 00 D4 12 00 00 00 00 00 86 0C 7F [15:20:38]RasterBufferAndPrint [15:20:38]line [15:20:38]line [15:20:38]line [15:20:38]line [15:20:38]line [15:20:38]written 0, free lines is 3210 [15:20:38]MH_Cut [15:20:38]Write to MH i2c: D1 01 00 DB 12 01 BF [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: D1 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: D1 01 00 [15:20:38]MH_I2C_Read... [15:20:38]Read from MH i2c: D1 01 00 DB 12 00 BE [15:20:38]Write to MH i2c: 01 00 00 DC 12 EE [15:20:38]Write i2c OK [15:20:38]MH_I2C_Read... [15:20:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5D 05 47 00 45 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BA DF 02 00 F4 03 04 00 B2 6C 17 67 B6 04 01 00 00 37 A4 64 A5 AC 64 50 A0 [15:20:38]CommunicateWithHost err = 0 [15:20:38]CheckOFDResponse [15:20:38]1017 (14) - 77093643461234 [15:20:38]1041 (16) - 0000000000965340 [15:20:38]1040 (4) - 188346 [15:20:38]1012 (4) - 22.10.2024 09:13 [15:20:38]1206 (1) - 0 [15:20:38]OFD Sender: Remove packet 188346 [15:20:38]ProducePacketName [15:20:38]name=ofd_packets/00188346 [15:20:38]NVStorageDeleteData [15:20:39]OFD Sender: No OFD packet to send [15:20:39]*** Cut start [15:20:39]*** Partial cut [15:20:39]*** CUTSNS_PIN = 1 [15:20:39]*** CUTSNS_PIN = 0 [15:20:39]*** Brake cut motor [15:20:40]Read from MH i2c: 01 [15:20:40]MH_I2C_Read... [15:20:40]*** Stop cut motor [15:20:40]*** Cut end [15:20:40]Read from MH i2c: 01 07 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: 01 07 00 DC 12 00 00 00 00 00 FF 0F 03 [15:20:40]process_action close_receipt done [15:20:40]requested_data is exist [15:20:40]produce_requested_data [15:20:40]requested_item fm.sn is exist - process it [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 11 00 00 [15:20:40]Write to MH i2c: E2 08 00 DD 12 80 11 00 00 00 00 00 00 69 [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 17 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 17 00 DD 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [15:20:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:20:40]wFMCommunicate OK [15:20:40]requested_item fd.num is exist - process it [15:20:40]SAM_PROTO_GetFieldsCounters [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 13 00 00 [15:20:40]Write to MH i2c: E2 08 00 DE 12 80 13 00 00 00 00 00 00 6C [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 62 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 62 00 DE 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 44 [15:20:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 77 01 00 00 5E 04 04 00 77 01 00 00 57 04 04 00 78 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:20:40]wFMCommunicate OK [15:20:40]SAM_PROTO_GetFieldsCounters done [15:20:40]requested_item shift.num is exist - process it [15:20:40]requested_item shift.opened is exist - process it [15:20:40]req_shift_opened [15:20:40]FM_GetShiftState [15:20:40]SAM_PROTO_GetShiftState [15:20:40]wFMCommunicate request_size=4 [15:20:40]MH_SAM_APDU [15:20:40]CAPDU: 80 13 01 00 [15:20:40]Write to MH i2c: E2 08 00 DF 12 80 13 01 00 00 00 00 00 6E [15:20:40]Write i2c OK [15:20:40]MH_I2C_Read... [15:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:20:40]Read from MH i2c: E2 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 0E 00 [15:20:40]MH_I2C_Read... [15:20:40]Read from MH i2c: E2 0E 00 DF 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 63 [15:20:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:20:40]wFMCommunicate OK [15:20:40]SAM_PROTO_GetShiftState done [15:20:40]FM_GetShiftState done [15:20:40]req_shift_opened done [15:20:40]requested_item shift.open_date is exist - process it [15:20:40]req_shift_open_date [15:20:40]req_shift_open_date done [15:20:40]produce_requested_data done [15:20:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188346,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:20:40]process_action_free close_receipt [15:20:40]json_value_free [15:20:40]json_value_free done [15:20:40]process_json_proto returns [15:20:40]Send response to host [15:20:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188346,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:20:40]free response buf [15:20:40]execute_script done [15:20:40]execute_script returns [15:20:40]free content buf [15:20:40]Sock 9.Close socket [15:20:40]Sock 9.Thread stoped [15:20:44]OFD Sender: No OFD packet to send [15:20:49]OFD Sender: No OFD packet to send [15:20:54]OFD Sender: No OFD packet to send [15:20:59]OFD Sender: No OFD packet to send [15:21:04]OFD Sender: No OFD packet to send [15:21:09]OFD Sender: No OFD packet to send [15:21:14]OFD Sender: No OFD packet to send [15:21:19]OFD Sender: No OFD packet to send [15:21:19]accept exits with 10 [15:21:19]New connection [15:21:19]New thread 3067305316 created [15:21:19]Thread 3067161956 joined [15:21:19]Waiting for new connection... [15:21:19] Sock 10.Parse request [15:21:19]Sock 10.Check first char [15:21:19]Sock 10.First char is OK [15:21:19]request: POST /json_proto HTTP/1.0 [15:21:19]Method: POST [15:21:19]URL: /json_proto [15:21:19]Method is POST - this is cgi request [15:21:19]url: /json_proto [15:21:19]query_string will be loaded in cgi processing [15:21:19]execute_cgi json_proto POST (null) [15:21:19]execute_cgi path=json_proto method=POST [15:21:19]POST find Content-Length [15:21:19]Host: 172.17.42.131:8080 [15:21:19]Content-Length: 678 [15:21:19]Content-Type: application/json [15:21:19] [15:21:19]POST finish read [15:21:19]Found Content-Length = 678 [15:21:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210404", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:19]execute_script... [15:21: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)210404", "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" : 10.110, "sum" : 750.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:21:19]POST & json_proto [15:21:19]process_json_proto [15:21:19]json parsed OK: [15:21:19]protocol is kg_v1.0 [15:21:19]action value=close_receipt [15:21:19]process_action close_receipt [15:21:19]cmd_close_receipt [15:21:19]MH_GetDate [15:21:19]Write to MH i2c: F0 00 00 E0 12 E1 [15:21:19]Write i2c OK [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: F0 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: F0 09 00 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: F0 09 00 E0 12 00 F0 C2 17 67 A0 18 CA 66 02 [15:21:19]GetLastDocTimeStamp 1729610437 [15:21:19]current date 1729610480 [15:21:19]FM_GetShiftState [15:21:19]SAM_PROTO_GetShiftState [15:21:19]wFMCommunicate request_size=4 [15:21:19]MH_SAM_APDU [15:21:19]CAPDU: 80 13 01 00 [15:21:19]Write to MH i2c: E2 08 00 E1 12 80 13 01 00 00 00 00 00 70 [15:21:19]Write i2c OK [15:21:19]MH_I2C_Read... [15:21:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:19]Read from MH i2c: E2 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 0E 00 [15:21:19]MH_I2C_Read... [15:21:19]Read from MH i2c: E2 0E 00 E1 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [15:21:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:21:19]wFMCommunicate OK [15:21:19]SAM_PROTO_GetShiftState done [15:21:19]FM_GetShiftState done [15:21:19]opened in 1729556094 [15:21:19]opened+sec_in_day 1729642494 [15:21:19]quantity*price = 75016 [15:21:19]sum+1 = 75017 [15:21:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.66 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 376 22.10.2024 15:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188347 ФПД: 53186096313793 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152120&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188347&fm=53186096313793&tin=02508201610067®Number=0000000000100030&sum=75000 [15:21:20]StoreToDocumentArchive [15:21:20]shift 461 fd 188347 [15:21:20]save to /storage/0461/doc_00188347 [15:21:20]save last doc name /storage/0461/doc_00188347 to /storage/kkm_last_doc_name [15:21:20]save OK [15:21:20]Clear old archive folders... [15:21:20]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:21:20]tlvbuf is 01452780 [15:21:20]SAM_PROTO_ClearQueue [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 09 00 00 [15:21:20]Write to MH i2c: E2 08 00 EE 12 80 09 00 00 00 00 00 00 72 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 EE 12 00 90 00 74 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]SAM_PROTO_ClearQueue done [15:21:20]KKMCreateOFDPacket [15:21:20]OFDProtocolAddRootSTLVToBuf [15:21:20]FM_MakeSignedData [15:21:20]FM_MakeSignedData [15:21:20]SAM_PROTO_SignData [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 01 02 [15:21:20]Write to MH i2c: E2 08 00 EF 12 80 0D 01 02 00 00 00 00 7A [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 EF 12 00 90 00 75 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]wFMCommunicate request_size=255 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 78 01 00 00 F4 03 04 00 F0 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DF 02 00 35 04 06 00 30 [15:21:20]Write to MH i2c: E2 02 01 F0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 78 01 00 00 F4 03 04 00 F0 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DF 02 00 35 04 06 00 30 00 00 AB [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 F0 12 00 90 00 76 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]wFMCommunicate request_size=10 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 02 02 05 5F 5A 60 B5 C1 [15:21:20]Write to MH i2c: E2 0D 00 F1 12 80 0D 02 02 05 00 5F 5A 60 B5 C1 00 00 16 [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:21:20]Read from MH i2c: E2 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 [15:21:20]MH_I2C_Read... [15:21:20]Read from MH i2c: E2 03 00 F1 12 00 90 00 77 [15:21:20]RAPDU: 90 00 [15:21:20]wFMCommunicate OK [15:21:20]wFMCommunicate request_size=4 [15:21:20]MH_SAM_APDU [15:21:20]CAPDU: 80 0D 03 02 [15:21:20]Write to MH i2c: E2 08 00 F2 12 80 0D 03 02 00 00 00 00 7F [15:21:20]Write i2c OK [15:21:20]MH_I2C_Read... [15:21:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:21:21]Read from MH i2c: E2 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: E2 0B 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: E2 0B 00 F2 12 00 F2 AE B9 F3 5D 96 81 85 90 00 C5 [15:21:21]RAPDU: F2 AE B9 F3 5D 96 81 85 90 00 [15:21:21]wFMCommunicate OK [15:21:21]SAM_PROTO_SignData done [15:21:21]FM_MakeSignedData done [15:21:21]CreateOFDProtocolMessage [15:21:21]wFMCommunicate request_size=4 [15:21:21]MH_SAM_APDU [15:21:21]CAPDU: 80 11 00 00 [15:21:21]Write to MH i2c: E2 08 00 F3 12 80 11 00 00 00 00 00 00 7F [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:21]Read from MH i2c: E2 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: E2 17 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: E2 17 00 F3 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CD [15:21:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:21]wFMCommunicate OK [15:21:21]CreateOFDProtocolMessage done [15:21:21]OFDSenderStorePacket 188347 [15:21:21]StoreOFDPacket docnum=188347 [15:21:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 41 07 01 8F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 78 01 00 00 F4 03 04 00 F0 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DF 02 00 35 04 06 00 30 5F 5A 60 B5 C1 F2 AE B9 F3 5D 96 81 85 [15:21:21]CheckFolder [15:21:21]dirname=/storage/ofd_packets [15:21:21]CheckFolder done [15:21:21]ProducePacketName [15:21:21]name=ofd_packets/00188347 [15:21:21]NVStorageSaveData ofd_packets/00188347 [15:21:21]File name is /storage/ofd_packets/00188347 [15:21:21]Write 301 bytes [15:21:21]NVStorageSaveData done [15:21:21]OFDSenderStorePacket done [15:21:21]KKMCreateOFDPacket done [15:21:21]NVStorageSaveData kkm_last_timestamp [15:21:21]File name is /storage/kkm_last_timestamp [15:21:21]Write 4 bytes [15:21:21]NVStorageSaveData done [15:21:21]ExternCall_PrintAddStr [15:21:21]wPrintStart [15:21:21]Write to MH i2c: 01 00 00 F4 12 06 [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 07 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 07 00 F4 12 00 00 00 00 00 FF 0F 1B [15:21:21]RasterBufferAndPrint [15:21:21]line Счет N : (1)210404 [15:21:21]line ИНН: 02508201610067 [15:21:21]line Контрольно-Кассовый Чек [15:21:21]line ПРОДАЖА [15:21:21]line ТРК (МРК, ГНК) : 43 [15:21:21]line Товар: 2710124500 [15:21:21]line Аи-95-К-3 [15:21:21]line 10.110 * 74.20 [15:21:21]line = 750.16 [15:21:21]line НДС 12% НСП 1% [15:21:21]line > о реализуемом товаре [15:21:21]line ОКРУГЛЕНИЕ: -0.16 [15:21:21]line ИТОГО: 750.00 [15:21:21]line Внесено: 750.00 [15:21:21]line СДАЧА: 0.00 [15:21:21]line НСП 1% : 6.64 [15:21:21]line НДС 12% : 79.66 [15:21:21]line Наличными: 750.00 [15:21:21]line Безнал.: 0.00 [15:21:21]line Место: АЗС № 86 "Партнер Нефть" [15:21:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:21:21]line СНО: Общий режим [15:21:21]line Чек 376 22.10.2024 15:21 [15:21:21]line Смена: 461 ФФД: 1.0 [15:21:21]line ЗНМ: 0300000155 [15:21:21]line РНМ: 0000000000100030 [15:21:21]line Версия ККМ: 001 [15:21:21]line ФМ: 0000000000965340 [15:21:21]line ФД: 188347 [15:21:21]line ФПД: 53186096313793 [15:21:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152120&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188347&fm=53186096313793&tin=02508201610067®Number=0000000000100030&sum=75000 [15:21:21]OFD Sender: Processing packet 188347 [packets to send 1062, broken 1061] [15:21:21]ProducePacketName [15:21:21]name=ofd_packets/00188347 [15:21:21]OFD Sender: To server: pG, [15:21:21]CommunicateWithHost lk.salyk.kg:30040 [15:21:21]ConnectInit lk.salyk.kg [15:21:21]written 0, free lines is 4095 [15:21:21]Connected sock=9 [15:21:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1A 41 07 01 8F 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7E 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 08 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1E 1F 00 00 00 00 07 04 06 00 F8 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 78 01 00 00 F4 03 04 00 F0 C2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DF 02 00 35 04 06 00 30 5F 5A 60 B5 C1 F2 AE B9 F3 5D 96 81 85 [15:21:21]Write to MH i2c: 01 00 00 1F 13 32 [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 07 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: 01 07 00 1F 13 00 00 00 00 00 6D 0C B2 [15:21:21]RasterBufferAndPrint [15:21:21]line [15:21:21]line [15:21:21]line [15:21:21]line [15:21:21]line [15:21:21]written 0, free lines is 3184 [15:21:21]MH_Cut [15:21:21]Write to MH i2c: D1 01 00 26 13 01 0B [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: D1 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: D1 01 00 [15:21:21]MH_I2C_Read... [15:21:21]Read from MH i2c: D1 01 00 26 13 00 0A [15:21:21]Write to MH i2c: 01 00 00 27 13 3A [15:21:21]Write i2c OK [15:21:21]MH_I2C_Read... [15:21:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F5 49 47 00 73 9B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BB DF 02 00 F4 03 04 00 DD 6C 17 67 B6 04 01 00 00 C3 86 DF 75 63 19 CA B1 [15:21:21]CommunicateWithHost err = 0 [15:21:21]CheckOFDResponse [15:21:21]1017 (14) - 77093643461234 [15:21:21]1041 (16) - 0000000000965340 [15:21:21]1040 (4) - 188347 [15:21:21]1012 (4) - 22.10.2024 09:14 [15:21:21]1206 (1) - 0 [15:21:21]OFD Sender: Remove packet 188347 [15:21:21]ProducePacketName [15:21:21]name=ofd_packets/00188347 [15:21:21]NVStorageDeleteData [15:21:22]OFD Sender: No OFD packet to send [15:21:23]*** Cut start [15:21:23]*** Partial cut [15:21:23]*** CUTSNS_PIN = 1 [15:21:23]*** CUTSNS_PIN = 0 [15:21:23]*** Brake cut motor [15:21:23]Read from MH i2c: 01 [15:21:23]MH_I2C_Read... [15:21:23]*** Stop cut motor [15:21:23]*** Cut end [15:21:23]Read from MH i2c: 01 07 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: 01 07 00 27 13 00 00 00 00 00 FF 0F 4F [15:21:23]process_action close_receipt done [15:21:23]requested_data is exist [15:21:23]produce_requested_data [15:21:23]requested_item fm.sn is exist - process it [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 11 00 00 [15:21:23]Write to MH i2c: E2 08 00 28 13 80 11 00 00 00 00 00 00 B5 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 17 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 17 00 28 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [15:21:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:21:23]wFMCommunicate OK [15:21:23]requested_item fd.num is exist - process it [15:21:23]SAM_PROTO_GetFieldsCounters [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 13 00 00 [15:21:23]Write to MH i2c: E2 08 00 29 13 80 13 00 00 00 00 00 00 B8 [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 62 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 62 00 29 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 94 [15:21:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 78 01 00 00 5E 04 04 00 78 01 00 00 57 04 04 00 79 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_GetFieldsCounters done [15:21:23]requested_item shift.num is exist - process it [15:21:23]requested_item shift.opened is exist - process it [15:21:23]req_shift_opened [15:21:23]FM_GetShiftState [15:21:23]SAM_PROTO_GetShiftState [15:21:23]wFMCommunicate request_size=4 [15:21:23]MH_SAM_APDU [15:21:23]CAPDU: 80 13 01 00 [15:21:23]Write to MH i2c: E2 08 00 2A 13 80 13 01 00 00 00 00 00 BA [15:21:23]Write i2c OK [15:21:23]MH_I2C_Read... [15:21:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:21:23]Read from MH i2c: E2 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 [15:21:23]MH_I2C_Read... [15:21:23]Read from MH i2c: E2 0E 00 2A 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AF [15:21:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:21:23]wFMCommunicate OK [15:21:23]SAM_PROTO_GetShiftState done [15:21:23]FM_GetShiftState done [15:21:23]req_shift_opened done [15:21:23]requested_item shift.open_date is exist - process it [15:21:23]req_shift_open_date [15:21:23]req_shift_open_date done [15:21:23]produce_requested_data done [15:21:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188347,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:21:23]process_action_free close_receipt [15:21:23]json_value_free [15:21:23]json_value_free done [15:21:23]process_json_proto returns [15:21:23]Send response to host [15:21:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188347,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:21:23]free response buf [15:21:23]execute_script done [15:21:23]execute_script returns [15:21:23]free content buf [15:21:23]Sock 10.Close socket [15:21:23]Sock 10.Thread stoped [15:21:27]OFD Sender: No OFD packet to send [15:21:32]OFD Sender: No OFD packet to send [15:21:37]OFD Sender: No OFD packet to send [15:21:42]OFD Sender: No OFD packet to send [15:21:47]OFD Sender: No OFD packet to send [15:21:52]OFD Sender: No OFD packet to send [15:21:57]OFD Sender: No OFD packet to send [15:22:02]OFD Sender: No OFD packet to send [15:22:07]OFD Sender: No OFD packet to send [15:22:12]OFD Sender: No OFD packet to send [15:22:17]OFD Sender: No OFD packet to send [15:22:22]OFD Sender: No OFD packet to send [15:22:27]OFD Sender: No OFD packet to send [15:22:32]OFD Sender: No OFD packet to send [15:22:37]OFD Sender: No OFD packet to send [15:22:42]OFD Sender: No OFD packet to send [15:22:47]OFD Sender: No OFD packet to send [15:22:52]OFD Sender: No OFD packet to send [15:22:57]OFD Sender: No OFD packet to send [15:23:02]OFD Sender: No OFD packet to send [15:23:07]OFD Sender: No OFD packet to send [15:23:12]OFD Sender: No OFD packet to send [15:23:18]OFD Sender: No OFD packet to send [15:23:23]OFD Sender: No OFD packet to send [15:23:28]OFD Sender: No OFD packet to send [15:23:33]OFD Sender: No OFD packet to send [15:23:38]OFD Sender: No OFD packet to send [15:23:43]OFD Sender: No OFD packet to send [15:23:48]OFD Sender: No OFD packet to send [15:23:53]OFD Sender: No OFD packet to send [15:23:58]OFD Sender: No OFD packet to send [15:24:03]OFD Sender: No OFD packet to send [15:24:08]OFD Sender: No OFD packet to send [15:24:13]OFD Sender: No OFD packet to send [15:24:18]OFD Sender: No OFD packet to send [15:24:23]OFD Sender: No OFD packet to send [15:24:28]OFD Sender: No OFD packet to send [15:24:33]OFD Sender: No OFD packet to send [15:24:38]OFD Sender: No OFD packet to send [15:24:43]OFD Sender: No OFD packet to send [15:24:48]OFD Sender: No OFD packet to send [15:24:53]OFD Sender: No OFD packet to send [15:24:58]OFD Sender: No OFD packet to send [15:25:03]OFD Sender: No OFD packet to send [15:25:08]OFD Sender: No OFD packet to send [15:25:13]OFD Sender: No OFD packet to send [15:25:15]accept exits with 7 [15:25:15]New connection [15:25:15]New thread 3067161956 created [15:25:15]Thread 3067305316 joined [15:25:15]Waiting for new connection... [15:25:15] Sock 7.Parse request [15:25:15]Sock 7.Check first char [15:25:15]Sock 7.First char is OK [15:25:15]request: POST /json_proto HTTP/1.0 [15:25:15]Method: POST [15:25:15]URL: /json_proto [15:25:15]Method is POST - this is cgi request [15:25:15]url: /json_proto [15:25:15]query_string will be loaded in cgi processing [15:25:15]execute_cgi json_proto POST (null) [15:25:15]execute_cgi path=json_proto method=POST [15:25:15]POST find Content-Length [15:25:15]Host: 172.17.42.131:8080 [15:25:15]Content-Length: 688 [15:25:15]Content-Type: application/json [15:25:15] [15:25:15]POST finish read [15:25:15]Found Content-Length = 688 [15:25:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:25:15]execute_script... [15:25: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)210405", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:25:15]POST & json_proto [15:25:15]process_json_proto [15:25:15]json parsed OK: [15:25:15]protocol is kg_v1.0 [15:25:15]action value=close_receipt [15:25:15]process_action close_receipt [15:25:15]cmd_close_receipt [15:25:15]MH_GetDate [15:25:15]Write to MH i2c: F0 00 00 2B 13 2D [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: F0 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: F0 09 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: F0 09 00 2B 13 00 DC C3 17 67 A0 18 CA 66 3B [15:25:15]GetLastDocTimeStamp 1729610480 [15:25:15]current date 1729610716 [15:25:15]FM_GetShiftState [15:25:15]SAM_PROTO_GetShiftState [15:25:15]wFMCommunicate request_size=4 [15:25:15]MH_SAM_APDU [15:25:15]CAPDU: 80 13 01 00 [15:25:15]Write to MH i2c: E2 08 00 2C 13 80 13 01 00 00 00 00 00 BC [15:25:15]Write i2c OK [15:25:15]MH_I2C_Read... [15:25:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:15]Read from MH i2c: E2 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 0E 00 [15:25:15]MH_I2C_Read... [15:25:15]Read from MH i2c: E2 0E 00 2C 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [15:25:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:25:15]wFMCommunicate OK [15:25:15]SAM_PROTO_GetShiftState done [15:25:15]FM_GetShiftState done [15:25:15]opened in 1729556094 [15:25:15]opened+sec_in_day 1729642494 [15:25:15]quantity*price = 150076 [15:25:15]sum+1 = 150078 [15:25:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 377 22.10.2024 15:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188348 ФПД: 214339157786305 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152516&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188348&fm=214339157786305&tin=02508201610067®Number=0000000000100030&sum=150000 [15:25:16]StoreToDocumentArchive [15:25:16]shift 461 fd 188348 [15:25:16]save to /storage/0461/doc_00188348 [15:25:16]save last doc name /storage/0461/doc_00188348 to /storage/kkm_last_doc_name [15:25:16]save OK [15:25:16]Clear old archive folders... [15:25:16]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:25:16]tlvbuf is 01422F80 [15:25:16]SAM_PROTO_ClearQueue [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 09 00 00 [15:25:16]Write to MH i2c: E2 08 00 39 13 80 09 00 00 00 00 00 00 BE [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 03 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 03 00 39 13 00 90 00 C0 [15:25:16]RAPDU: 90 00 [15:25:16]wFMCommunicate OK [15:25:16]SAM_PROTO_ClearQueue done [15:25:16]KKMCreateOFDPacket [15:25:16]OFDProtocolAddRootSTLVToBuf [15:25:16]FM_MakeSignedData [15:25:16]FM_MakeSignedData [15:25:16]SAM_PROTO_SignData [15:25:16]wFMCommunicate request_size=4 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 0D 01 02 [15:25:16]Write to MH i2c: E2 08 00 3A 13 80 0D 01 02 00 00 00 00 C6 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:25:16]Read from MH i2c: E2 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 03 00 [15:25:16]MH_I2C_Read... [15:25:16]Read from MH i2c: E2 03 00 3A 13 00 90 00 C1 [15:25:16]RAPDU: 90 00 [15:25:16]wFMCommunicate OK [15:25:16]wFMCommunicate request_size=255 [15:25:16]MH_SAM_APDU [15:25:16]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 79 01 00 00 F4 03 04 00 DC C3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DF 02 [15:25:16]Write to MH i2c: E2 02 01 3B 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 79 01 00 00 F4 03 04 00 DC C3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DF 02 00 00 77 [15:25:16]Write i2c OK [15:25:16]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 3B 13 00 90 00 C2 [15:25:17]RAPDU: 90 00 [15:25:17]wFMCommunicate OK [15:25:17]wFMCommunicate request_size=16 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 F0 B9 5C 7E C1 [15:25:17]Write to MH i2c: E2 13 00 3C 13 80 0D 02 02 0B 00 00 35 04 06 00 C2 F0 B9 5C 7E C1 00 00 24 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 03 00 3C 13 00 90 00 C3 [15:25:17]RAPDU: 90 00 [15:25:17]wFMCommunicate OK [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 0D 03 02 [15:25:17]Write to MH i2c: E2 08 00 3D 13 80 0D 03 02 00 00 00 00 CB [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 0B 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 0B 00 3D 13 00 3A A9 F1 D0 4D D3 B2 6A 90 00 AC [15:25:17]RAPDU: 3A A9 F1 D0 4D D3 B2 6A 90 00 [15:25:17]wFMCommunicate OK [15:25:17]SAM_PROTO_SignData done [15:25:17]FM_MakeSignedData done [15:25:17]CreateOFDProtocolMessage [15:25:17]wFMCommunicate request_size=4 [15:25:17]MH_SAM_APDU [15:25:17]CAPDU: 80 11 00 00 [15:25:17]Write to MH i2c: E2 08 00 3E 13 80 11 00 00 00 00 00 00 CB [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:17]Read from MH i2c: E2 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 17 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: E2 17 00 3E 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [15:25:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:25:17]wFMCommunicate OK [15:25:17]CreateOFDProtocolMessage done [15:25:17]OFDSenderStorePacket 188348 [15:25:17]StoreOFDPacket docnum=188348 [15:25:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E5 19 0D 01 72 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 79 01 00 00 F4 03 04 00 DC C3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DF 02 00 35 04 06 00 C2 F0 B9 5C 7E C1 3A A9 F1 D0 4D D3 B2 6A [15:25:17]CheckFolder [15:25:17]dirname=/storage/ofd_packets [15:25:17]CheckFolder done [15:25:17]ProducePacketName [15:25:17]name=ofd_packets/00188348 [15:25:17]NVStorageSaveData ofd_packets/00188348 [15:25:17]File name is /storage/ofd_packets/00188348 [15:25:17]Write 307 bytes [15:25:17]NVStorageSaveData done [15:25:17]OFDSenderStorePacket done [15:25:17]KKMCreateOFDPacket done [15:25:17]NVStorageSaveData kkm_last_timestamp [15:25:17]File name is /storage/kkm_last_timestamp [15:25:17]Write 4 bytes [15:25:17]NVStorageSaveData done [15:25:17]ExternCall_PrintAddStr [15:25:17]wPrintStart [15:25:17]Write to MH i2c: 01 00 00 3F 13 52 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 07 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 07 00 3F 13 00 00 00 00 00 FF 0F 67 [15:25:17]RasterBufferAndPrint [15:25:17]line Счет N : (1)210405 [15:25:17]line ИНН: 02508201610067 [15:25:17]line Контрольно-Кассовый Чек [15:25:17]line ПРОДАЖА [15:25:17]line ТРК (МРК, ГНК) : 31 [15:25:17]line Товар: 2710194210 [15:25:17]line D-ENERGY ДТ-К-5 [15:25:17]line 19.440 * 77.20 [15:25:17]line = 1500.77 [15:25:17]line НДС 12% НСП 1% [15:25:17]line > о реализуемом товаре [15:25:17]line ОКРУГЛЕНИЕ: -0.77 [15:25:17]line ИТОГО: 1500.00 [15:25:17]line Внесено: 1500.00 [15:25:17]line СДАЧА: 0.00 [15:25:17]line НСП 1% : 13.28 [15:25:17]line НДС 12% : 159.37 [15:25:17]line Наличными: 1500.00 [15:25:17]line Безнал.: 0.00 [15:25:17]line Место: АЗС № 86 "Партнер Нефть" [15:25:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:25:17]line СНО: Общий режим [15:25:17]line Чек 377 22.10.2024 15:25 [15:25:17]line Смена: 461 ФФД: 1.0 [15:25:17]line ЗНМ: 0300000155 [15:25:17]line РНМ: 0000000000100030 [15:25:17]line Версия ККМ: 001 [15:25:17]line ФМ: 0000000000965340 [15:25:17]line ФД: 188348 [15:25:17]line ФПД: 214339157786305 [15:25:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152516&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188348&fm=214339157786305&tin=02508201610067®Number=0000000000100030&sum=150000 [15:25:17]written 0, free lines is 4095 [15:25:17]OFD Sender: Processing packet 188348 [packets to send 1062, broken 1061] [15:25:17]ProducePacketName [15:25:17]name=ofd_packets/00188348 [15:25:17]OFD Sender: To server: pG, [15:25:17]CommunicateWithHost lk.salyk.kg:30040 [15:25:17]ConnectInit lk.salyk.kg [15:25:17]Connected sock=10 [15:25:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 E5 19 0D 01 72 92 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 79 01 00 00 F4 03 04 00 DC C3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DF 02 00 35 04 06 00 C2 F0 B9 5C 7E C1 3A A9 F1 D0 4D D3 B2 6A [15:25:17]Write to MH i2c: 01 00 00 6A 13 7D [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 07 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: 01 07 00 6A 13 00 00 00 00 00 6A 0C FA [15:25:17]RasterBufferAndPrint [15:25:17]line [15:25:17]line [15:25:17]line [15:25:17]line [15:25:17]line [15:25:17]written 0, free lines is 3181 [15:25:17]MH_Cut [15:25:17]Write to MH i2c: D1 01 00 71 13 01 56 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: D1 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: D1 01 00 [15:25:17]MH_I2C_Read... [15:25:17]Read from MH i2c: D1 01 00 71 13 00 55 [15:25:17]Write to MH i2c: 01 00 00 72 13 85 [15:25:17]Write i2c OK [15:25:17]MH_I2C_Read... [15:25:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 52 47 00 3B 85 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BC DF 02 00 F4 03 04 00 C9 6D 17 67 B6 04 01 00 00 C8 60 2F 38 37 16 F9 C4 [15:25:17]CommunicateWithHost err = 0 [15:25:17]CheckOFDResponse [15:25:17]1017 (14) - 77093643461234 [15:25:17]1041 (16) - 0000000000965340 [15:25:17]1040 (4) - 188348 [15:25:17]1012 (4) - 22.10.2024 09:18 [15:25:17]1206 (1) - 0 [15:25:17]OFD Sender: Remove packet 188348 [15:25:17]ProducePacketName [15:25:17]name=ofd_packets/00188348 [15:25:17]NVStorageDeleteData [15:25:18]OFD Sender: No OFD packet to send [15:25:19]*** Cut start [15:25:19]*** Partial cut [15:25:19]*** CUTSNS_PIN = 1 [15:25:19]*** CUTSNS_PIN = 0 [15:25:19]*** Brake cut motor [15:25:19]Read from MH i2c: 01 [15:25:19]MH_I2C_Read... [15:25:19]*** Stop cut motor [15:25:19]*** Cut end [15:25:19]Read from MH i2c: 01 07 00 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: 01 07 00 72 13 00 00 00 00 00 FF 0F 9A [15:25:19]process_action close_receipt done [15:25:19]requested_data is exist [15:25:19]produce_requested_data [15:25:19]requested_item fm.sn is exist - process it [15:25:19]wFMCommunicate request_size=4 [15:25:19]MH_SAM_APDU [15:25:19]CAPDU: 80 11 00 00 [15:25:19]Write to MH i2c: E2 08 00 73 13 80 11 00 00 00 00 00 00 00 [15:25:19]Write i2c OK [15:25:19]MH_I2C_Read... [15:25:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:25:19]Read from MH i2c: E2 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: E2 17 00 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: E2 17 00 73 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [15:25:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:25:19]wFMCommunicate OK [15:25:19]requested_item fd.num is exist - process it [15:25:19]SAM_PROTO_GetFieldsCounters [15:25:19]wFMCommunicate request_size=4 [15:25:19]MH_SAM_APDU [15:25:19]CAPDU: 80 13 00 00 [15:25:19]Write to MH i2c: E2 08 00 74 13 80 13 00 00 00 00 00 00 03 [15:25:19]Write i2c OK [15:25:19]MH_I2C_Read... [15:25:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:25:19]Read from MH i2c: E2 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: E2 62 00 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: E2 62 00 74 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [15:25:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 79 01 00 00 5E 04 04 00 79 01 00 00 57 04 04 00 7A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:25:19]wFMCommunicate OK [15:25:19]SAM_PROTO_GetFieldsCounters done [15:25:19]requested_item shift.num is exist - process it [15:25:19]requested_item shift.opened is exist - process it [15:25:19]req_shift_opened [15:25:19]FM_GetShiftState [15:25:19]SAM_PROTO_GetShiftState [15:25:19]wFMCommunicate request_size=4 [15:25:19]MH_SAM_APDU [15:25:19]CAPDU: 80 13 01 00 [15:25:19]Write to MH i2c: E2 08 00 75 13 80 13 01 00 00 00 00 00 05 [15:25:19]Write i2c OK [15:25:19]MH_I2C_Read... [15:25:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:25:19]Read from MH i2c: E2 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: E2 0E 00 [15:25:19]MH_I2C_Read... [15:25:19]Read from MH i2c: E2 0E 00 75 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FA [15:25:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:25:19]wFMCommunicate OK [15:25:19]SAM_PROTO_GetShiftState done [15:25:19]FM_GetShiftState done [15:25:19]req_shift_opened done [15:25:19]requested_item shift.open_date is exist - process it [15:25:19]req_shift_open_date [15:25:19]req_shift_open_date done [15:25:19]produce_requested_data done [15:25:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188348,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:25:19]process_action_free close_receipt [15:25:19]json_value_free [15:25:19]json_value_free done [15:25:19]process_json_proto returns [15:25:19]Send response to host [15:25:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188348,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:25:19]free response buf [15:25:19]execute_script done [15:25:19]execute_script returns [15:25:19]free content buf [15:25:19]Sock 7.Close socket [15:25:19]Sock 7.Thread stoped [15:25:23]OFD Sender: No OFD packet to send [15:25:28]OFD Sender: No OFD packet to send [15:25:33]OFD Sender: No OFD packet to send [15:25:38]OFD Sender: No OFD packet to send [15:25:43]OFD Sender: No OFD packet to send [15:25:48]OFD Sender: No OFD packet to send [15:25:53]OFD Sender: No OFD packet to send [15:25:58]OFD Sender: No OFD packet to send [15:26:03]OFD Sender: No OFD packet to send [15:26:08]OFD Sender: No OFD packet to send [15:26:13]OFD Sender: No OFD packet to send [15:26:18]OFD Sender: No OFD packet to send [15:26:23]OFD Sender: No OFD packet to send [15:26:28]OFD Sender: No OFD packet to send [15:26:33]OFD Sender: No OFD packet to send [15:26:38]OFD Sender: No OFD packet to send [15:26:43]OFD Sender: No OFD packet to send [15:26:48]OFD Sender: No OFD packet to send [15:26:53]OFD Sender: No OFD packet to send [15:26:58]OFD Sender: No OFD packet to send [15:27:03]OFD Sender: No OFD packet to send [15:27:08]OFD Sender: No OFD packet to send [15:27:14]OFD Sender: No OFD packet to send [15:27:19]OFD Sender: No OFD packet to send [15:27:24]OFD Sender: No OFD packet to send [15:27:29]OFD Sender: No OFD packet to send [15:27:34]OFD Sender: No OFD packet to send [15:27:39]OFD Sender: No OFD packet to send [15:27:44]OFD Sender: No OFD packet to send [15:27:49]OFD Sender: No OFD packet to send [15:27:54]OFD Sender: No OFD packet to send [15:27:59]OFD Sender: No OFD packet to send [15:28:04]OFD Sender: No OFD packet to send [15:28:09]OFD Sender: No OFD packet to send [15:28:14]OFD Sender: No OFD packet to send [15:28:19]OFD Sender: No OFD packet to send [15:28:24]OFD Sender: No OFD packet to send [15:28:29]OFD Sender: No OFD packet to send [15:28:34]OFD Sender: No OFD packet to send [15:28:39]OFD Sender: No OFD packet to send [15:28:44]OFD Sender: No OFD packet to send [15:28:49]OFD Sender: No OFD packet to send [15:28:54]OFD Sender: No OFD packet to send [15:28:59]OFD Sender: No OFD packet to send [15:29:04]OFD Sender: No OFD packet to send [15:29:09]OFD Sender: No OFD packet to send [15:29:14]OFD Sender: No OFD packet to send [15:29:19]OFD Sender: No OFD packet to send [15:29:24]OFD Sender: No OFD packet to send [15:29:29]OFD Sender: No OFD packet to send [15:29:34]OFD Sender: No OFD packet to send [15:29:34]accept exits with 9 [15:29:34]New connection [15:29:34]New thread 3067305316 created [15:29:34]Thread 3067161956 joined [15:29:34]Waiting for new connection... [15:29:34] Sock 9.Parse request [15:29:34]Sock 9.Check first char [15:29:34]Sock 9.First char is OK [15:29:34]request: POST /json_proto HTTP/1.0 [15:29:34]Method: POST [15:29:34]URL: /json_proto [15:29:34]Method is POST - this is cgi request [15:29:34]url: /json_proto [15:29:34]query_string will be loaded in cgi processing [15:29:34]execute_cgi json_proto POST (null) [15:29:34]execute_cgi path=json_proto method=POST [15:29:34]POST find Content-Length [15:29:34]Host: 172.17.42.131:8080 [15:29:34]Content-Length: 683 [15:29:34]Content-Type: application/json [15:29:34] [15:29:34]POST finish read [15:29:34]Found Content-Length = 683 [15:29:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [15:29:34]execute_script... [15:29: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)210406", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [15:29:34]POST & json_proto [15:29:34]process_json_proto [15:29:34]json parsed OK: [15:29:34]protocol is kg_v1.0 [15:29:34]action value=close_receipt [15:29:34]process_action close_receipt [15:29:34]cmd_close_receipt [15:29:34]MH_GetDate [15:29:34]Write to MH i2c: F0 00 00 76 13 78 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: F0 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: F0 09 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: F0 09 00 76 13 00 E0 C4 17 67 A0 18 CA 66 8B [15:29:34]GetLastDocTimeStamp 1729610716 [15:29:34]current date 1729610976 [15:29:34]FM_GetShiftState [15:29:34]SAM_PROTO_GetShiftState [15:29:34]wFMCommunicate request_size=4 [15:29:34]MH_SAM_APDU [15:29:34]CAPDU: 80 13 01 00 [15:29:34]Write to MH i2c: E2 08 00 77 13 80 13 01 00 00 00 00 00 07 [15:29:34]Write i2c OK [15:29:34]MH_I2C_Read... [15:29:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:34]Read from MH i2c: E2 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0E 00 [15:29:34]MH_I2C_Read... [15:29:34]Read from MH i2c: E2 0E 00 77 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FC [15:29:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:29:34]wFMCommunicate OK [15:29:34]SAM_PROTO_GetShiftState done [15:29:34]FM_GetShiftState done [15:29:34]opened in 1729556094 [15:29:34]opened+sec_in_day 1729642494 [15:29:34]quantity*price = 70020 [15:29:34]sum+1 = 70021 [15:29:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 378 22.10.2024 15:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188349 ФПД: 272637880531460 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188349&fm=272637880531460&tin=02508201610067®Number=0000000000100030&sum=70000 [15:29:36]StoreToDocumentArchive [15:29:36]shift 461 fd 188349 [15:29:36]save to /storage/0461/doc_00188349 [15:29:36]save last doc name /storage/0461/doc_00188349 to /storage/kkm_last_doc_name [15:29:36]save OK [15:29:36]Clear old archive folders... [15:29:36]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:29:36]tlvbuf is 01497BE0 [15:29:36]SAM_PROTO_ClearQueue [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 09 00 00 [15:29:36]Write to MH i2c: E2 08 00 84 13 80 09 00 00 00 00 00 00 09 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 84 13 00 90 00 0B [15:29:36]RAPDU: 90 00 [15:29:36]wFMCommunicate OK [15:29:36]SAM_PROTO_ClearQueue done [15:29:36]KKMCreateOFDPacket [15:29:36]OFDProtocolAddRootSTLVToBuf [15:29:36]FM_MakeSignedData [15:29:36]FM_MakeSignedData [15:29:36]SAM_PROTO_SignData [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 0D 01 02 [15:29:36]Write to MH i2c: E2 08 00 85 13 80 0D 01 02 00 00 00 00 11 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 85 13 00 90 00 0C [15:29:36]RAPDU: 90 00 [15:29:36]wFMCommunicate OK [15:29:36]wFMCommunicate request_size=255 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 7A 01 00 00 F4 03 04 00 E0 C4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DF 02 [15:29:36]Write to MH i2c: E2 02 01 86 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 7A 01 00 00 F4 03 04 00 E0 C4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DF 02 00 00 9D [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 86 13 00 90 00 0D [15:29:36]RAPDU: 90 00 [15:29:36]wFMCommunicate OK [15:29:36]wFMCommunicate request_size=16 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F7 F6 74 05 7A 04 [15:29:36]Write to MH i2c: E2 13 00 87 13 80 0D 02 02 0B 00 00 35 04 06 00 F7 F6 74 05 7A 04 00 00 4D [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 03 00 87 13 00 90 00 0E [15:29:36]RAPDU: 90 00 [15:29:36]wFMCommunicate OK [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 0D 03 02 [15:29:36]Write to MH i2c: E2 08 00 88 13 80 0D 03 02 00 00 00 00 16 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 0B 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 0B 00 88 13 00 C7 58 98 56 A6 C6 CA 95 90 00 EF [15:29:36]RAPDU: C7 58 98 56 A6 C6 CA 95 90 00 [15:29:36]wFMCommunicate OK [15:29:36]SAM_PROTO_SignData done [15:29:36]FM_MakeSignedData done [15:29:36]CreateOFDProtocolMessage [15:29:36]wFMCommunicate request_size=4 [15:29:36]MH_SAM_APDU [15:29:36]CAPDU: 80 11 00 00 [15:29:36]Write to MH i2c: E2 08 00 89 13 80 11 00 00 00 00 00 00 16 [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:36]Read from MH i2c: E2 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 17 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: E2 17 00 89 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [15:29:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:29:36]wFMCommunicate OK [15:29:36]CreateOFDProtocolMessage done [15:29:36]OFDSenderStorePacket 188349 [15:29:36]StoreOFDPacket docnum=188349 [15:29:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2F 68 0D 01 40 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 7A 01 00 00 F4 03 04 00 E0 C4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DF 02 00 35 04 06 00 F7 F6 74 05 7A 04 C7 58 98 56 A6 C6 CA 95 [15:29:36]CheckFolder [15:29:36]dirname=/storage/ofd_packets [15:29:36]CheckFolder done [15:29:36]ProducePacketName [15:29:36]name=ofd_packets/00188349 [15:29:36]NVStorageSaveData ofd_packets/00188349 [15:29:36]File name is /storage/ofd_packets/00188349 [15:29:36]Write 307 bytes [15:29:36]NVStorageSaveData done [15:29:36]OFDSenderStorePacket done [15:29:36]KKMCreateOFDPacket done [15:29:36]NVStorageSaveData kkm_last_timestamp [15:29:36]File name is /storage/kkm_last_timestamp [15:29:36]Write 4 bytes [15:29:36]NVStorageSaveData done [15:29:36]ExternCall_PrintAddStr [15:29:36]wPrintStart [15:29:36]Write to MH i2c: 01 00 00 8A 13 9D [15:29:36]Write i2c OK [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 [15:29:36]MH_I2C_Read... [15:29:36]Read from MH i2c: 01 07 00 8A 13 00 00 00 00 00 FF 0F B2 [15:29:36]RasterBufferAndPrint [15:29:36]line Счет N : (1)210406 [15:29:36]line ИНН: 02508201610067 [15:29:36]line Контрольно-Кассовый Чек [15:29:36]line ПРОДАЖА [15:29:36]line ТРК (МРК, ГНК) : 31 [15:29:36]line Товар: 2710194210 [15:29:36]line D-ENERGY ДТ-К-5 [15:29:36]line 9.070 * 77.20 [15:29:36]line = 700.20 [15:29:36]line НДС 12% НСП 1% [15:29:36]line > о реализуемом товаре [15:29:36]line ОКРУГЛЕНИЕ: -0.20 [15:29:36]line ИТОГО: 700.00 [15:29:36]line Внесено: 700.00 [15:29:36]line СДАЧА: 0.00 [15:29:36]line НСП 1% : 6.20 [15:29:36]line НДС 12% : 74.36 [15:29:36]line Наличными: 700.00 [15:29:36]line Безнал.: 0.00 [15:29:36]line Место: АЗС № 86 "Партнер Нефть" [15:29:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:29:36]line СНО: Общий режим [15:29:36]line Чек 378 22.10.2024 15:29 [15:29:36]line Смена: 461 ФФД: 1.0 [15:29:36]line ЗНМ: 0300000155 [15:29:36]line РНМ: 0000000000100030 [15:29:36]line Версия ККМ: 001 [15:29:36]line ФМ: 0000000000965340 [15:29:36]line ФД: 188349 [15:29:36]line ФПД: 272637880531460 [15:29:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T152936&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188349&fm=272637880531460&tin=02508201610067®Number=0000000000100030&sum=70000 [15:29:36]written 0, free lines is 4095 [15:29:36]OFD Sender: Processing packet 188349 [packets to send 1062, broken 1061] [15:29:36]ProducePacketName [15:29:36]name=ofd_packets/00188349 [15:29:36]OFD Sender: To server: pG, [15:29:36]CommunicateWithHost lk.salyk.kg:30040 [15:29:36]ConnectInit lk.salyk.kg [15:29:37]Connected sock=10 [15:29:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 2F 68 0D 01 40 9F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 7A 01 00 00 F4 03 04 00 E0 C4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BD DF 02 00 35 04 06 00 F7 F6 74 05 7A 04 C7 58 98 56 A6 C6 CA 95 [15:29:37]Write to MH i2c: 01 00 00 B5 13 C8 [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 07 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: 01 07 00 B5 13 00 00 00 00 00 63 0C 3E [15:29:37]RasterBufferAndPrint [15:29:37]line [15:29:37]line [15:29:37]line [15:29:37]line [15:29:37]line [15:29:37]written 0, free lines is 3176 [15:29:37]MH_Cut [15:29:37]Write to MH i2c: D1 01 00 BC 13 01 A1 [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: D1 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: D1 01 00 [15:29:37]MH_I2C_Read... [15:29:37]Read from MH i2c: D1 01 00 BC 13 00 A0 [15:29:37]Write to MH i2c: 01 00 00 BD 13 D0 [15:29:37]Write i2c OK [15:29:37]MH_I2C_Read... [15:29:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9C 92 47 00 C1 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 39 36 35 33 34 30 10 04 04 00 BD DF 02 00 F4 03 04 00 CD 6E 17 67 B6 04 01 00 00 F6 F6 DB 0A AF C8 B8 C1 [15:29:37]CommunicateWithHost err = 0 [15:29:37]CheckOFDResponse [15:29:37]1017 (14) - 77093643461234 [15:29:37]1041 (16) - 0000000000965340 [15:29:37]1040 (4) - 188349 [15:29:37]1012 (4) - 22.10.2024 09:22 [15:29:37]1206 (1) - 0 [15:29:37]OFD Sender: Remove packet 188349 [15:29:37]ProducePacketName [15:29:37]name=ofd_packets/00188349 [15:29:37]NVStorageDeleteData [15:29:37]OFD Sender: No OFD packet to send [15:29:38]*** Cut start [15:29:38]*** Partial cut [15:29:38]*** CUTSNS_PIN = 1 [15:29:38]*** CUTSNS_PIN = 0 [15:29:38]*** Brake cut motor [15:29:38]Read from MH i2c: 01 [15:29:38]MH_I2C_Read... [15:29:38]*** Stop cut motor [15:29:38]*** Cut end [15:29:38]Read from MH i2c: 01 07 00 [15:29:38]MH_I2C_Read... [15:29:38]Read from MH i2c: 01 07 00 BD 13 00 00 00 00 00 FF 0F E5 [15:29:38]process_action close_receipt done [15:29:38]requested_data is exist [15:29:39]produce_requested_data [15:29:39]requested_item fm.sn is exist - process it [15:29:39]wFMCommunicate request_size=4 [15:29:39]MH_SAM_APDU [15:29:39]CAPDU: 80 11 00 00 [15:29:39]Write to MH i2c: E2 08 00 BE 13 80 11 00 00 00 00 00 00 4B [15:29:39]Write i2c OK [15:29:39]MH_I2C_Read... [15:29:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:29:39]Read from MH i2c: E2 [15:29:39]MH_I2C_Read... [15:29:39]Read from MH i2c: E2 17 00 [15:29:39]MH_I2C_Read... [15:29:39]Read from MH i2c: E2 17 00 BE 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [15:29:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:29:39]wFMCommunicate OK [15:29:39]requested_item fd.num is exist - process it [15:29:39]SAM_PROTO_GetFieldsCounters [15:29:39]wFMCommunicate request_size=4 [15:29:39]MH_SAM_APDU [15:29:39]CAPDU: 80 13 00 00 [15:29:39]Write to MH i2c: E2 08 00 BF 13 80 13 00 00 00 00 00 00 4E [15:29:39]Write i2c OK [15:29:39]MH_I2C_Read... [15:29:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:29:39]Read from MH i2c: E2 [15:29:39]MH_I2C_Read... [15:29:39]Read from MH i2c: E2 62 00 [15:29:39]MH_I2C_Read... [15:29:39]Read from MH i2c: E2 62 00 BF 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 32 [15:29:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7A 01 00 00 5E 04 04 00 7A 01 00 00 57 04 04 00 7B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:29:39]wFMCommunicate OK [15:29:39]SAM_PROTO_GetFieldsCounters done [15:29:39]requested_item shift.num is exist - process it [15:29:39]requested_item shift.opened is exist - process it [15:29:39]req_shift_opened [15:29:39]FM_GetShiftState [15:29:39]SAM_PROTO_GetShiftState [15:29:39]wFMCommunicate request_size=4 [15:29:39]MH_SAM_APDU [15:29:39]CAPDU: 80 13 01 00 [15:29:39]Write to MH i2c: E2 08 00 C0 13 80 13 01 00 00 00 00 00 50 [15:29:39]Write i2c OK [15:29:39]MH_I2C_Read... [15:29:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:29:39]Read from MH i2c: E2 [15:29:39]MH_I2C_Read... [15:29:39]Read from MH i2c: E2 0E 00 [15:29:39]MH_I2C_Read... [15:29:39]Read from MH i2c: E2 0E 00 C0 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 45 [15:29:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:29:39]wFMCommunicate OK [15:29:39]SAM_PROTO_GetShiftState done [15:29:39]FM_GetShiftState done [15:29:39]req_shift_opened done [15:29:39]requested_item shift.open_date is exist - process it [15:29:39]req_shift_open_date [15:29:39]req_shift_open_date done [15:29:39]produce_requested_data done [15:29:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188349,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:29:39]process_action_free close_receipt [15:29:39]json_value_free [15:29:39]json_value_free done [15:29:39]process_json_proto returns [15:29:39]Send response to host [15:29:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188349,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:29:39]free response buf [15:29:39]execute_script done [15:29:39]execute_script returns [15:29:39]free content buf [15:29:39]Sock 9.Close socket [15:29:39]Sock 9.Thread stoped [15:29:42]OFD Sender: No OFD packet to send [15:29:47]OFD Sender: No OFD packet to send [15:29:52]OFD Sender: No OFD packet to send [15:29:57]OFD Sender: No OFD packet to send [15:30:02]OFD Sender: No OFD packet to send [15:30:08]OFD Sender: No OFD packet to send [15:30:13]OFD Sender: No OFD packet to send [15:30:18]OFD Sender: No OFD packet to send [15:30:23]OFD Sender: No OFD packet to send [15:30:28]OFD Sender: No OFD packet to send [15:30:33]OFD Sender: No OFD packet to send [15:30:38]OFD Sender: No OFD packet to send [15:30:43]OFD Sender: No OFD packet to send [15:30:48]OFD Sender: No OFD packet to send [15:30:50]accept exits with 7 [15:30:50]New connection [15:30:50]New thread 3067161956 created [15:30:50] Sock 7.Parse request [15:30:50]Thread 3067305316 joined [15:30:50]Sock 7.Check first char [15:30:50]Waiting for new connection... [15:30:50]Sock 7.First char is OK [15:30:50]request: POST /json_proto HTTP/1.0 [15:30:50]Method: POST [15:30:50]URL: /json_proto [15:30:50]Method is POST - this is cgi request [15:30:50]url: /json_proto [15:30:50]query_string will be loaded in cgi processing [15:30:50]execute_cgi json_proto POST (null) [15:30:50]execute_cgi path=json_proto method=POST [15:30:50]POST find Content-Length [15:30:50]Host: 172.17.42.131:8080 [15:30:50]Content-Length: 682 [15:30:50]Content-Type: application/json [15:30:50] [15:30:50]POST finish read [15:30:50]Found Content-Length = 682 [15:30:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 41.860, "sum" : 2800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:50]execute_script... [15:30:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210407", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 41.860, "sum" : 2800.43, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 2800.00, "payments": [ { "type": 0, "sum" : 2800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:50]POST & json_proto [15:30:50]process_json_proto [15:30:50]json parsed OK: [15:30:50]protocol is kg_v1.0 [15:30:50]action value=close_receipt [15:30:50]process_action close_receipt [15:30:50]cmd_close_receipt [15:30:50]MH_GetDate [15:30:50]Write to MH i2c: F0 00 00 C1 13 C3 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: F0 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: F0 09 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: F0 09 00 C1 13 00 2B C5 17 67 A0 18 CA 66 22 [15:30:50]GetLastDocTimeStamp 1729610976 [15:30:50]current date 1729611051 [15:30:50]FM_GetShiftState [15:30:50]SAM_PROTO_GetShiftState [15:30:50]wFMCommunicate request_size=4 [15:30:50]MH_SAM_APDU [15:30:50]CAPDU: 80 13 01 00 [15:30:50]Write to MH i2c: E2 08 00 C2 13 80 13 01 00 00 00 00 00 52 [15:30:50]Write i2c OK [15:30:50]MH_I2C_Read... [15:30:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:50]Read from MH i2c: E2 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 0E 00 [15:30:50]MH_I2C_Read... [15:30:50]Read from MH i2c: E2 0E 00 C2 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 47 [15:30:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:30:50]wFMCommunicate OK [15:30:50]SAM_PROTO_GetShiftState done [15:30:50]FM_GetShiftState done [15:30:50]opened in 1729556094 [15:30:50]opened+sec_in_day 1729642494 [15:30:50]quantity*price = 280043 [15:30:50]sum+1 = 280044 [15:30:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2800.00 Внесено: 4000.00 СДАЧА: 1200.00 НСП 1% : 24.78 НДС 12% : 297.39 Наличными: 2800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 379 22.10.2024 15:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188350 ФПД: 212345847701595 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153051&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188350&fm=212345847701595&tin=02508201610067®Number=0000000000100030&sum=280000 [15:30:51]StoreToDocumentArchive [15:30:51]shift 461 fd 188350 [15:30:51]save to /storage/0461/doc_00188350 [15:30:51]save last doc name /storage/0461/doc_00188350 to /storage/kkm_last_doc_name [15:30:51]save OK [15:30:51]Clear old archive folders... [15:30:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:51]tlvbuf is 01497F80 [15:30:51]SAM_PROTO_ClearQueue [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 09 00 00 [15:30:51]Write to MH i2c: E2 08 00 CF 13 80 09 00 00 00 00 00 00 54 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 CF 13 00 90 00 56 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]SAM_PROTO_ClearQueue done [15:30:51]KKMCreateOFDPacket [15:30:51]OFDProtocolAddRootSTLVToBuf [15:30:51]FM_MakeSignedData [15:30:51]FM_MakeSignedData [15:30:51]SAM_PROTO_SignData [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 01 02 [15:30:51]Write to MH i2c: E2 08 00 D0 13 80 0D 01 02 00 00 00 00 5C [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 D0 13 00 90 00 57 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=255 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 2B C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DF 02 00 35 04 06 00 C1 [15:30:51]Write to MH i2c: E2 02 01 D1 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 2B C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DF 02 00 35 04 06 00 C1 00 00 61 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 D1 13 00 90 00 58 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=10 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 02 02 05 20 9E D2 60 5B [15:30:51]Write to MH i2c: E2 0D 00 D2 13 80 0D 02 02 05 00 20 9E D2 60 5B 00 00 B4 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 03 00 D2 13 00 90 00 59 [15:30:51]RAPDU: 90 00 [15:30:51]wFMCommunicate OK [15:30:51]wFMCommunicate request_size=4 [15:30:51]MH_SAM_APDU [15:30:51]CAPDU: 80 0D 03 02 [15:30:51]Write to MH i2c: E2 08 00 D3 13 80 0D 03 02 00 00 00 00 61 [15:30:51]Write i2c OK [15:30:51]MH_I2C_Read... [15:30:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:51]Read from MH i2c: E2 [15:30:51]MH_I2C_Read... [15:30:51]Read from MH i2c: E2 0B 00 [15:30:51]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 0B 00 D3 13 00 43 13 AD 02 95 8B 67 30 90 00 1E [15:30:52]RAPDU: 43 13 AD 02 95 8B 67 30 90 00 [15:30:52]wFMCommunicate OK [15:30:52]SAM_PROTO_SignData done [15:30:52]FM_MakeSignedData done [15:30:52]CreateOFDProtocolMessage [15:30:52]wFMCommunicate request_size=4 [15:30:52]MH_SAM_APDU [15:30:52]CAPDU: 80 11 00 00 [15:30:52]Write to MH i2c: E2 08 00 D4 13 80 11 00 00 00 00 00 00 61 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:52]Read from MH i2c: E2 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 17 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: E2 17 00 D4 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AF [15:30:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:30:52]wFMCommunicate OK [15:30:52]CreateOFDProtocolMessage done [15:30:52]OFDSenderStorePacket 188350 [15:30:52]StoreOFDPacket docnum=188350 [15:30:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F EA 07 01 82 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 33 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 2B C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DF 02 00 35 04 06 00 C1 20 9E D2 60 5B 43 13 AD 02 95 8B 67 30 [15:30:52]CheckFolder [15:30:52]dirname=/storage/ofd_packets [15:30:52]CheckFolder done [15:30:52]ProducePacketName [15:30:52]name=ofd_packets/00188350 [15:30:52]NVStorageSaveData ofd_packets/00188350 [15:30:52]File name is /storage/ofd_packets/00188350 [15:30:52]Write 301 bytes [15:30:52]NVStorageSaveData done [15:30:52]OFDSenderStorePacket done [15:30:52]KKMCreateOFDPacket done [15:30:52]NVStorageSaveData kkm_last_timestamp [15:30:52]File name is /storage/kkm_last_timestamp [15:30:52]Write 4 bytes [15:30:52]NVStorageSaveData done [15:30:52]ExternCall_PrintAddStr [15:30:52]wPrintStart [15:30:52]Write to MH i2c: 01 00 00 D5 13 E8 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 D5 13 00 00 00 00 00 FF 0F FD [15:30:52]RasterBufferAndPrint [15:30:52]line Счет N : (1)210407 [15:30:52]line ИНН: 02508201610067 [15:30:52]line Контрольно-Кассовый Чек [15:30:52]line ПРОДАЖА [15:30:52]line ТРК (МРК, ГНК) : 42 [15:30:52]line Товар: 2710124130 [15:30:52]line Аи-92-К-3 [15:30:52]line 41.860 * 66.90 [15:30:52]line = 2800.43 [15:30:52]line НДС 12% НСП 1% [15:30:52]line > о реализуемом товаре [15:30:52]line ОКРУГЛЕНИЕ: -0.43 [15:30:52]line ИТОГО: 2800.00 [15:30:52]line Внесено: 4000.00 [15:30:52]line СДАЧА: 1200.00 [15:30:52]line НСП 1% : 24.78 [15:30:52]line НДС 12% : 297.39 [15:30:52]line Наличными: 2800.00 [15:30:52]line Безнал.: 0.00 [15:30:52]line Место: АЗС № 86 "Партнер Нефть" [15:30:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:30:52]line СНО: Общий режим [15:30:52]line Чек 379 22.10.2024 15:30 [15:30:52]line Смена: 461 ФФД: 1.0 [15:30:52]line ЗНМ: 0300000155 [15:30:52]line РНМ: 0000000000100030 [15:30:52]line Версия ККМ: 001 [15:30:52]line ФМ: 0000000000965340 [15:30:52]line ФД: 188350 [15:30:52]line ФПД: 212345847701595 [15:30:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153051&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188350&fm=212345847701595&tin=02508201610067®Number=0000000000100030&sum=280000 [15:30:52]written 0, free lines is 4095 [15:30:52]OFD Sender: Processing packet 188350 [packets to send 1062, broken 1061] [15:30:52]ProducePacketName [15:30:52]name=ofd_packets/00188350 [15:30:52]OFD Sender: To server: pG, [15:30:52]CommunicateWithHost lk.salyk.kg:30040 [15:30:52]ConnectInit lk.salyk.kg [15:30:52]Connected sock=9 [15:30:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F EA 07 01 82 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 33 FF 03 08 00 03 84 A3 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 EB 45 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 45 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AE 09 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2B 74 00 00 00 00 07 04 06 00 C0 45 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7B 01 00 00 F4 03 04 00 2B C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DF 02 00 35 04 06 00 C1 20 9E D2 60 5B 43 13 AD 02 95 8B 67 30 [15:30:52]Write to MH i2c: 01 00 00 00 14 14 [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: 01 07 00 00 14 00 00 00 00 00 6A 0C 91 [15:30:52]RasterBufferAndPrint [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]line [15:30:52]written 0, free lines is 3181 [15:30:52]MH_Cut [15:30:52]Write to MH i2c: D1 01 00 07 14 01 ED [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 01 00 [15:30:52]MH_I2C_Read... [15:30:52]Read from MH i2c: D1 01 00 07 14 00 EC [15:30:52]Write to MH i2c: 01 00 00 08 14 1C [15:30:52]Write i2c OK [15:30:52]MH_I2C_Read... [15:30:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 9F 47 00 D6 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BE DF 02 00 F4 03 04 00 18 6F 17 67 B6 04 01 00 00 7F 1A 14 00 A9 39 96 28 [15:30:52]CommunicateWithHost err = 0 [15:30:52]CheckOFDResponse [15:30:52]1017 (14) - 77093643461234 [15:30:52]1041 (16) - 0000000000965340 [15:30:52]1040 (4) - 188350 [15:30:52]1012 (4) - 22.10.2024 09:23 [15:30:52]1206 (1) - 0 [15:30:52]OFD Sender: Remove packet 188350 [15:30:52]ProducePacketName [15:30:52]name=ofd_packets/00188350 [15:30:52]NVStorageDeleteData [15:30:53]OFD Sender: No OFD packet to send [15:30:53]*** Cut start [15:30:53]*** Partial cut [15:30:53]*** CUTSNS_PIN = 1 [15:30:53]*** CUTSNS_PIN = 0 [15:30:54]*** Brake cut motor [15:30:54]Read from MH i2c: 01 [15:30:54]MH_I2C_Read... [15:30:54]*** Stop cut motor [15:30:54]*** Cut end [15:30:54]Read from MH i2c: 01 07 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: 01 07 00 08 14 00 00 00 00 00 FF 0F 31 [15:30:54]process_action close_receipt done [15:30:54]requested_data is exist [15:30:54]produce_requested_data [15:30:54]requested_item fm.sn is exist - process it [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 11 00 00 [15:30:54]Write to MH i2c: E2 08 00 09 14 80 11 00 00 00 00 00 00 97 [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 17 00 09 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [15:30:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:30:54]wFMCommunicate OK [15:30:54]requested_item fd.num is exist - process it [15:30:54]SAM_PROTO_GetFieldsCounters [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 13 00 00 [15:30:54]Write to MH i2c: E2 08 00 0A 14 80 13 00 00 00 00 00 00 9A [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 62 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 62 00 0A 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 82 [15:30:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7B 01 00 00 5E 04 04 00 7B 01 00 00 57 04 04 00 7C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:54]wFMCommunicate OK [15:30:54]SAM_PROTO_GetFieldsCounters done [15:30:54]requested_item shift.num is exist - process it [15:30:54]requested_item shift.opened is exist - process it [15:30:54]req_shift_opened [15:30:54]FM_GetShiftState [15:30:54]SAM_PROTO_GetShiftState [15:30:54]wFMCommunicate request_size=4 [15:30:54]MH_SAM_APDU [15:30:54]CAPDU: 80 13 01 00 [15:30:54]Write to MH i2c: E2 08 00 0B 14 80 13 01 00 00 00 00 00 9C [15:30:54]Write i2c OK [15:30:54]MH_I2C_Read... [15:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:54]Read from MH i2c: E2 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 0E 00 [15:30:54]MH_I2C_Read... [15:30:54]Read from MH i2c: E2 0E 00 0B 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 91 [15:30:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:30:54]wFMCommunicate OK [15:30:54]SAM_PROTO_GetShiftState done [15:30:54]FM_GetShiftState done [15:30:54]req_shift_opened done [15:30:54]requested_item shift.open_date is exist - process it [15:30:54]req_shift_open_date [15:30:54]req_shift_open_date done [15:30:54]produce_requested_data done [15:30:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188350,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:30:54]process_action_free close_receipt [15:30:54]json_value_free [15:30:54]json_value_free done [15:30:54]process_json_proto returns [15:30:54]Send response to host [15:30:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188350,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:30:54]free response buf [15:30:54]execute_script done [15:30:54]execute_script returns [15:30:54]free content buf [15:30:54]Sock 7.Close socket [15:30:54]Sock 7.Thread stoped [15:30:55]accept exits with 10 [15:30:55]New connection [15:30:55]New thread 3067305316 created [15:30:55]Thread 3067161956 joined [15:30:55]Waiting for new connection... [15:30:55] Sock 10.Parse request [15:30:55]Sock 10.Check first char [15:30:55]Sock 10.First char is OK [15:30:55]request: POST /json_proto HTTP/1.0 [15:30:55]Method: POST [15:30:55]URL: /json_proto [15:30:55]Method is POST - this is cgi request [15:30:55]url: /json_proto [15:30:55]query_string will be loaded in cgi processing [15:30:55]execute_cgi json_proto POST (null) [15:30:55]execute_cgi path=json_proto method=POST [15:30:55]POST find Content-Length [15:30:55]Host: 172.17.42.131:8080 [15:30:55]Content-Length: 682 [15:30:55]Content-Type: application/json [15:30:55] [15:30:55]POST finish read [15:30:55]Found Content-Length = 682 [15:30:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:55]execute_script... [15:30: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)210408", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:30:55]POST & json_proto [15:30:55]process_json_proto [15:30:55]json parsed OK: [15:30:55]protocol is kg_v1.0 [15:30:55]action value=close_receipt [15:30:55]process_action close_receipt [15:30:55]cmd_close_receipt [15:30:55]MH_GetDate [15:30:55]Write to MH i2c: F0 00 00 0C 14 0F [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: F0 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: F0 09 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: F0 09 00 0C 14 00 30 C5 17 67 A0 18 CA 66 73 [15:30:55]GetLastDocTimeStamp 1729611051 [15:30:55]current date 1729611056 [15:30:55]FM_GetShiftState [15:30:55]SAM_PROTO_GetShiftState [15:30:55]wFMCommunicate request_size=4 [15:30:55]MH_SAM_APDU [15:30:55]CAPDU: 80 13 01 00 [15:30:55]Write to MH i2c: E2 08 00 0D 14 80 13 01 00 00 00 00 00 9E [15:30:55]Write i2c OK [15:30:55]MH_I2C_Read... [15:30:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:55]Read from MH i2c: E2 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: E2 0E 00 [15:30:55]MH_I2C_Read... [15:30:55]Read from MH i2c: E2 0E 00 0D 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 93 [15:30:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:30:55]wFMCommunicate OK [15:30:55]SAM_PROTO_GetShiftState done [15:30:55]FM_GetShiftState done [15:30:55]opened in 1729556094 [15:30:55]opened+sec_in_day 1729642494 [15:30:55]quantity*price = 100015 [15:30:55]sum+1 = 100017 [15:30:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 380 22.10.2024 15:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188351 ФПД: 104117090320447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153056&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188351&fm=104117090320447&tin=02508201610067®Number=0000000000100030&sum=100000 [15:30:56]StoreToDocumentArchive [15:30:56]shift 461 fd 188351 [15:30:56]save to /storage/0461/doc_00188351 [15:30:56]save last doc name /storage/0461/doc_00188351 to /storage/kkm_last_doc_name [15:30:56]save OK [15:30:56]Clear old archive folders... [15:30:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:30:56]tlvbuf is B6F30B90 [15:30:56]SAM_PROTO_ClearQueue [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 09 00 00 [15:30:56]Write to MH i2c: E2 08 00 1A 14 80 09 00 00 00 00 00 00 A0 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 03 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 03 00 1A 14 00 90 00 A2 [15:30:56]RAPDU: 90 00 [15:30:56]wFMCommunicate OK [15:30:56]SAM_PROTO_ClearQueue done [15:30:56]KKMCreateOFDPacket [15:30:56]OFDProtocolAddRootSTLVToBuf [15:30:56]FM_MakeSignedData [15:30:56]FM_MakeSignedData [15:30:56]SAM_PROTO_SignData [15:30:56]wFMCommunicate request_size=4 [15:30:56]MH_SAM_APDU [15:30:56]CAPDU: 80 0D 01 02 [15:30:56]Write to MH i2c: E2 08 00 1B 14 80 0D 01 02 00 00 00 00 A8 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:30:56]Read from MH i2c: E2 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 03 00 [15:30:56]MH_I2C_Read... [15:30:56]Read from MH i2c: E2 03 00 1B 14 00 90 00 A3 [15:30:56]RAPDU: 90 00 [15:30:56]wFMCommunicate OK [15:30:56]wFMCommunicate request_size=255 [15:30:56]MH_SAM_APDU [15:30: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 30 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DF 02 00 35 04 06 00 5E [15:30:56]Write to MH i2c: E2 02 01 1C 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 30 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DF 02 00 35 04 06 00 5E 00 00 D1 [15:30:56]Write i2c OK [15:30:56]MH_I2C_Read... [15:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:57]Read from MH i2c: E2 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 03 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 03 00 1C 14 00 90 00 A4 [15:30:57]RAPDU: 90 00 [15:30:57]wFMCommunicate OK [15:30:57]wFMCommunicate request_size=10 [15:30:57]MH_SAM_APDU [15:30:57]CAPDU: 80 0D 02 02 05 B1 A6 2F 00 3F [15:30:57]Write to MH i2c: E2 0D 00 1D 14 80 0D 02 02 05 00 B1 A6 2F 00 3F 00 00 7A [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:30:57]Read from MH i2c: E2 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 03 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 03 00 1D 14 00 90 00 A5 [15:30:57]RAPDU: 90 00 [15:30:57]wFMCommunicate OK [15:30:57]wFMCommunicate request_size=4 [15:30:57]MH_SAM_APDU [15:30:57]CAPDU: 80 0D 03 02 [15:30:57]Write to MH i2c: E2 08 00 1E 14 80 0D 03 02 00 00 00 00 AD [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:30:57]Read from MH i2c: E2 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 0B 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 0B 00 1E 14 00 EB 37 CE 0E 80 E4 AE 1A 90 00 D8 [15:30:57]RAPDU: EB 37 CE 0E 80 E4 AE 1A 90 00 [15:30:57]wFMCommunicate OK [15:30:57]SAM_PROTO_SignData done [15:30:57]FM_MakeSignedData done [15:30:57]CreateOFDProtocolMessage [15:30:57]wFMCommunicate request_size=4 [15:30:57]MH_SAM_APDU [15:30:57]CAPDU: 80 11 00 00 [15:30:57]Write to MH i2c: E2 08 00 1F 14 80 11 00 00 00 00 00 00 AD [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:57]Read from MH i2c: E2 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 17 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: E2 17 00 1F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FB [15:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:30:57]wFMCommunicate OK [15:30:57]CreateOFDProtocolMessage done [15:30:57]OFDSenderStorePacket 188351 [15:30:57]StoreOFDPacket docnum=188351 [15:30:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AF 86 07 01 4C 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 30 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DF 02 00 35 04 06 00 5E B1 A6 2F 00 3F EB 37 CE 0E 80 E4 AE 1A [15:30:57]CheckFolder [15:30:57]dirname=/storage/ofd_packets [15:30:57]CheckFolder done [15:30:57]ProducePacketName [15:30:57]name=ofd_packets/00188351 [15:30:57]NVStorageSaveData ofd_packets/00188351 [15:30:57]File name is /storage/ofd_packets/00188351 [15:30:57]Write 301 bytes [15:30:57]NVStorageSaveData done [15:30:57]OFDSenderStorePacket done [15:30:57]KKMCreateOFDPacket done [15:30:57]NVStorageSaveData kkm_last_timestamp [15:30:57]File name is /storage/kkm_last_timestamp [15:30:57]Write 4 bytes [15:30:57]NVStorageSaveData done [15:30:57]ExternCall_PrintAddStr [15:30:57]wPrintStart [15:30:57]Write to MH i2c: 01 00 00 20 14 34 [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: 01 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: 01 07 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: 01 07 00 20 14 00 00 00 00 00 FF 0F 49 [15:30:57]RasterBufferAndPrint [15:30:57]line Счет N : (1)210408 [15:30:57]line ИНН: 02508201610067 [15:30:57]line Контрольно-Кассовый Чек [15:30:57]line ПРОДАЖА [15:30:57]line ТРК (МРК, ГНК) : 12 [15:30:57]line Товар: 2710124130 [15:30:57]line Аи-92-К-3 [15:30:57]line 14.950 * 66.90 [15:30:57]line = 1000.16 [15:30:57]line НДС 12% НСП 1% [15:30:57]line > о реализуемом товаре [15:30:57]line ОКРУГЛЕНИЕ: -0.16 [15:30:57]line ИТОГО: 1000.00 [15:30:57]line Внесено: 1000.00 [15:30:57]line СДАЧА: 0.00 [15:30:57]line НСП 1% : 8.85 [15:30:57]line НДС 12% : 106.21 [15:30:57]line Наличными: 1000.00 [15:30:57]line Безнал.: 0.00 [15:30:57]line Место: АЗС № 86 "Партнер Нефть" [15:30:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:30:57]line СНО: Общий режим [15:30:57]line Чек 380 22.10.2024 15:30 [15:30:57]line Смена: 461 ФФД: 1.0 [15:30:57]line ЗНМ: 0300000155 [15:30:57]line РНМ: 0000000000100030 [15:30:57]line Версия ККМ: 001 [15:30:57]line ФМ: 0000000000965340 [15:30:57]line ФД: 188351 [15:30:57]line ФПД: 104117090320447 [15:30:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153056&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188351&fm=104117090320447&tin=02508201610067®Number=0000000000100030&sum=100000 [15:30:57]OFD Sender: Processing packet 188351 [packets to send 1062, broken 1061] [15:30:57]ProducePacketName [15:30:57]name=ofd_packets/00188351 [15:30:57]OFD Sender: To server: pG, [15:30:57]CommunicateWithHost lk.salyk.kg:30040 [15:30:57]ConnectInit lk.salyk.kg [15:30:57]written 0, free lines is 4095 [15:30:57]Write to MH i2c: 01 00 00 4B 14 5F [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: 01 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: 01 07 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: 01 07 00 4B 14 00 00 00 00 00 6B 0C DD [15:30:57]RasterBufferAndPrint [15:30:57]line [15:30:57]line [15:30:57]line [15:30:57]line [15:30:57]line [15:30:57]written 0, free lines is 3185 [15:30:57]MH_Cut [15:30:57]Write to MH i2c: D1 01 00 52 14 01 38 [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: D1 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: D1 01 00 [15:30:57]MH_I2C_Read... [15:30:57]Read from MH i2c: D1 01 00 52 14 00 37 [15:30:57]Write to MH i2c: 01 00 00 53 14 67 [15:30:57]Write i2c OK [15:30:57]MH_I2C_Read... [15:30:57]Connected sock=9 [15:30:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 AF 86 07 01 4C 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 01 00 00 F4 03 04 00 30 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 BF DF 02 00 35 04 06 00 5E B1 A6 2F 00 3F EB 37 CE 0E 80 E4 AE 1A [15:30:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 64 7B 47 00 26 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 39 36 35 33 34 30 10 04 04 00 BF DF 02 00 F4 03 04 00 1E 6F 17 67 B6 04 01 00 00 13 9B 26 4C 67 B7 3C 28 [15:30:58]CommunicateWithHost err = 0 [15:30:58]CheckOFDResponse [15:30:58]1017 (14) - 77093643461234 [15:30:58]1041 (16) - 0000000000965340 [15:30:58]1040 (4) - 188351 [15:30:58]1012 (4) - 22.10.2024 09:23 [15:30:58]1206 (1) - 0 [15:30:58]OFD Sender: Remove packet 188351 [15:30:58]ProducePacketName [15:30:58]name=ofd_packets/00188351 [15:30:58]NVStorageDeleteData [15:30:58]OFD Sender: No OFD packet to send [15:30:59]*** Cut start [15:30:59]*** Partial cut [15:30:59]*** CUTSNS_PIN = 1 [15:30:59]*** CUTSNS_PIN = 0 [15:30:59]*** Brake cut motor [15:30:59]Read from MH i2c: 01 [15:30:59]MH_I2C_Read... [15:30:59]*** Stop cut motor [15:30:59]*** Cut end [15:30:59]Read from MH i2c: 01 07 00 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: 01 07 00 53 14 00 00 00 00 00 FF 0F 7C [15:30:59]process_action close_receipt done [15:30:59]requested_data is exist [15:30:59]produce_requested_data [15:30:59]requested_item fm.sn is exist - process it [15:30:59]wFMCommunicate request_size=4 [15:30:59]MH_SAM_APDU [15:30:59]CAPDU: 80 11 00 00 [15:30:59]Write to MH i2c: E2 08 00 54 14 80 11 00 00 00 00 00 00 E2 [15:30:59]Write i2c OK [15:30:59]MH_I2C_Read... [15:30:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:30:59]Read from MH i2c: E2 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: E2 17 00 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: E2 17 00 54 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [15:30:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:30:59]wFMCommunicate OK [15:30:59]requested_item fd.num is exist - process it [15:30:59]SAM_PROTO_GetFieldsCounters [15:30:59]wFMCommunicate request_size=4 [15:30:59]MH_SAM_APDU [15:30:59]CAPDU: 80 13 00 00 [15:30:59]Write to MH i2c: E2 08 00 55 14 80 13 00 00 00 00 00 00 E5 [15:30:59]Write i2c OK [15:30:59]MH_I2C_Read... [15:30:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:30:59]Read from MH i2c: E2 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: E2 62 00 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: E2 62 00 55 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 D1 [15:30:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 BF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7C 01 00 00 5E 04 04 00 7C 01 00 00 57 04 04 00 7D 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:30:59]wFMCommunicate OK [15:30:59]SAM_PROTO_GetFieldsCounters done [15:30:59]requested_item shift.num is exist - process it [15:30:59]requested_item shift.opened is exist - process it [15:30:59]req_shift_opened [15:30:59]FM_GetShiftState [15:30:59]SAM_PROTO_GetShiftState [15:30:59]wFMCommunicate request_size=4 [15:30:59]MH_SAM_APDU [15:30:59]CAPDU: 80 13 01 00 [15:30:59]Write to MH i2c: E2 08 00 56 14 80 13 01 00 00 00 00 00 E7 [15:30:59]Write i2c OK [15:30:59]MH_I2C_Read... [15:30:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:30:59]Read from MH i2c: E2 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: E2 0E 00 [15:30:59]MH_I2C_Read... [15:30:59]Read from MH i2c: E2 0E 00 56 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DC [15:30:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:30:59]wFMCommunicate OK [15:30:59]SAM_PROTO_GetShiftState done [15:30:59]FM_GetShiftState done [15:30:59]req_shift_opened done [15:30:59]requested_item shift.open_date is exist - process it [15:30:59]req_shift_open_date [15:30:59]req_shift_open_date done [15:30:59]produce_requested_data done [15:30:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188351,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:30:59]process_action_free close_receipt [15:30:59]json_value_free [15:30:59]json_value_free done [15:30:59]process_json_proto returns [15:30:59]Send response to host [15:30:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188351,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:30:59]free response buf [15:30:59]execute_script done [15:30:59]execute_script returns [15:30:59]free content buf [15:30:59]Sock 10.Close socket [15:30:59]Sock 10.Thread stoped [15:31:04]OFD Sender: No OFD packet to send [15:31:09]OFD Sender: No OFD packet to send [15:31:14]OFD Sender: No OFD packet to send [15:31:19]OFD Sender: No OFD packet to send [15:31:24]OFD Sender: No OFD packet to send [15:31:29]OFD Sender: No OFD packet to send [15:31:34]OFD Sender: No OFD packet to send [15:31:39]OFD Sender: No OFD packet to send [15:31:44]OFD Sender: No OFD packet to send [15:31:49]OFD Sender: No OFD packet to send [15:31:54]OFD Sender: No OFD packet to send [15:31:59]OFD Sender: No OFD packet to send [15:32:04]OFD Sender: No OFD packet to send [15:32:09]OFD Sender: No OFD packet to send [15:32:14]OFD Sender: No OFD packet to send [15:32:19]OFD Sender: No OFD packet to send [15:32:24]OFD Sender: No OFD packet to send [15:32:29]OFD Sender: No OFD packet to send [15:32:34]OFD Sender: No OFD packet to send [15:32:39]OFD Sender: No OFD packet to send [15:32:44]OFD Sender: No OFD packet to send [15:32:49]OFD Sender: No OFD packet to send [15:32:54]OFD Sender: No OFD packet to send [15:32:59]OFD Sender: No OFD packet to send [15:33:04]OFD Sender: No OFD packet to send [15:33:09]accept exits with 7 [15:33:09]New connection [15:33:09]New thread 3067161956 created [15:33:09]Thread 3067305316 joined [15:33:09]Waiting for new connection... [15:33:09] Sock 7.Parse request [15:33:09]Sock 7.Check first char [15:33:09]Sock 7.First char is OK [15:33:09]request: POST /json_proto HTTP/1.0 [15:33:09]Method: POST [15:33:09]URL: /json_proto [15:33:09]Method is POST - this is cgi request [15:33:09]url: /json_proto [15:33:09]query_string will be loaded in cgi processing [15:33:09]execute_cgi json_proto POST (null) [15:33:09]execute_cgi path=json_proto method=POST [15:33:09]POST find Content-Length [15:33:09]Host: 172.17.42.131:8080 [15:33:09]Content-Length: 682 [15:33:09]Content-Type: application/json [15:33:09] [15:33:09]POST finish read [15:33:09]Found Content-Length = 682 [15:33:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:09]execute_script... [15:33:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210409", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 17.530, "sum" : 1300.73, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:09]POST & json_proto [15:33:09]process_json_proto [15:33:09]json parsed OK: [15:33:09]protocol is kg_v1.0 [15:33:09]action value=close_receipt [15:33:09]process_action close_receipt [15:33:09]cmd_close_receipt [15:33:09]MH_GetDate [15:33:09]Write to MH i2c: F0 00 00 57 14 5A [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: F0 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: F0 09 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: F0 09 00 57 14 00 B6 C5 17 67 A0 18 CA 66 44 [15:33:09]GetLastDocTimeStamp 1729611056 [15:33:09]current date 1729611190 [15:33:09]FM_GetShiftState [15:33:09]SAM_PROTO_GetShiftState [15:33:09]wFMCommunicate request_size=4 [15:33:09]MH_SAM_APDU [15:33:09]CAPDU: 80 13 01 00 [15:33:09]Write to MH i2c: E2 08 00 58 14 80 13 01 00 00 00 00 00 E9 [15:33:09]Write i2c OK [15:33:09]MH_I2C_Read... [15:33:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:09]Read from MH i2c: E2 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 0E 00 [15:33:09]MH_I2C_Read... [15:33:09]Read from MH i2c: E2 0E 00 58 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DE [15:33:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:33:09]wFMCommunicate OK [15:33:09]SAM_PROTO_GetShiftState done [15:33:09]FM_GetShiftState done [15:33:09]opened in 1729556094 [15:33:09]opened+sec_in_day 1729642494 [15:33:09]quantity*price = 130072 [15:33:09]sum+1 = 130074 [15:33:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.73 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.13 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 381 22.10.2024 15:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188352 ФПД: 271234921645840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188352&fm=271234921645840&tin=02508201610067®Number=0000000000100030&sum=130000 [15:33:10]StoreToDocumentArchive [15:33:10]shift 461 fd 188352 [15:33:10]save to /storage/0461/doc_00188352 [15:33:10]save last doc name /storage/0461/doc_00188352 to /storage/kkm_last_doc_name [15:33:10]save OK [15:33:10]Clear old archive folders... [15:33:10]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:10]tlvbuf is 01441B30 [15:33:10]SAM_PROTO_ClearQueue [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 09 00 00 [15:33:10]Write to MH i2c: E2 08 00 65 14 80 09 00 00 00 00 00 00 EB [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 65 14 00 90 00 ED [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]SAM_PROTO_ClearQueue done [15:33:10]KKMCreateOFDPacket [15:33:10]OFDProtocolAddRootSTLVToBuf [15:33:10]FM_MakeSignedData [15:33:10]FM_MakeSignedData [15:33:10]SAM_PROTO_SignData [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 0D 01 02 [15:33:10]Write to MH i2c: E2 08 00 66 14 80 0D 01 02 00 00 00 00 F3 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 66 14 00 90 00 EE [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=255 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 B6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DF 02 00 35 04 06 00 F6 [15:33:10]Write to MH i2c: E2 02 01 67 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 B6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DF 02 00 35 04 06 00 F6 00 00 F2 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 67 14 00 90 00 EF [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=10 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 0D 02 02 05 AF CD 27 C7 10 [15:33:10]Write to MH i2c: E2 0D 00 68 14 80 0D 02 02 05 00 AF CD 27 C7 10 00 00 7A [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 [15:33:10]MH_I2C_Read... [15:33:10]Read from MH i2c: E2 03 00 68 14 00 90 00 F0 [15:33:10]RAPDU: 90 00 [15:33:10]wFMCommunicate OK [15:33:10]wFMCommunicate request_size=4 [15:33:10]MH_SAM_APDU [15:33:10]CAPDU: 80 0D 03 02 [15:33:10]Write to MH i2c: E2 08 00 69 14 80 0D 03 02 00 00 00 00 F8 [15:33:10]Write i2c OK [15:33:10]MH_I2C_Read... [15:33:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:10]Read from MH i2c: E2 [15:33:10]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0B 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 0B 00 69 14 00 2E 0D 54 D0 6B C4 97 F8 90 00 16 [15:33:11]RAPDU: 2E 0D 54 D0 6B C4 97 F8 90 00 [15:33:11]wFMCommunicate OK [15:33:11]SAM_PROTO_SignData done [15:33:11]FM_MakeSignedData done [15:33:11]CreateOFDProtocolMessage [15:33:11]wFMCommunicate request_size=4 [15:33:11]MH_SAM_APDU [15:33:11]CAPDU: 80 11 00 00 [15:33:11]Write to MH i2c: E2 08 00 6A 14 80 11 00 00 00 00 00 00 F8 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:11]Read from MH i2c: E2 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 17 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: E2 17 00 6A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 46 [15:33:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:11]wFMCommunicate OK [15:33:11]CreateOFDProtocolMessage done [15:33:11]OFDSenderStorePacket 188352 [15:33:11]StoreOFDPacket docnum=188352 [15:33:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 EF 07 01 16 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 B6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DF 02 00 35 04 06 00 F6 AF CD 27 C7 10 2E 0D 54 D0 6B C4 97 F8 [15:33:11]CheckFolder [15:33:11]dirname=/storage/ofd_packets [15:33:11]CheckFolder done [15:33:11]ProducePacketName [15:33:11]name=ofd_packets/00188352 [15:33:11]NVStorageSaveData ofd_packets/00188352 [15:33:11]File name is /storage/ofd_packets/00188352 [15:33:11]Write 301 bytes [15:33:11]NVStorageSaveData done [15:33:11]OFDSenderStorePacket done [15:33:11]KKMCreateOFDPacket done [15:33:11]NVStorageSaveData kkm_last_timestamp [15:33:11]File name is /storage/kkm_last_timestamp [15:33:11]Write 4 bytes [15:33:11]NVStorageSaveData done [15:33:11]ExternCall_PrintAddStr [15:33:11]wPrintStart [15:33:11]Write to MH i2c: 01 00 00 6B 14 7F [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 6B 14 00 00 00 00 00 FF 0F 94 [15:33:11]RasterBufferAndPrint [15:33:11]line Счет N : (1)210409 [15:33:11]line ИНН: 02508201610067 [15:33:11]line Контрольно-Кассовый Чек [15:33:11]line ПРОДАЖА [15:33:11]line ТРК (МРК, ГНК) : 23 [15:33:11]line Товар: 2710124500 [15:33:11]line Аи-95-К-3 [15:33:11]line 17.530 * 74.20 [15:33:11]line = 1300.73 [15:33:11]line НДС 12% НСП 1% [15:33:11]line > о реализуемом товаре [15:33:11]line ОКРУГЛЕНИЕ: -0.73 [15:33:11]line ИТОГО: 1300.00 [15:33:11]line Внесено: 1300.00 [15:33:11]line СДАЧА: 0.00 [15:33:11]line НСП 1% : 11.51 [15:33:11]line НДС 12% : 138.13 [15:33:11]line Наличными: 1300.00 [15:33:11]line Безнал.: 0.00 [15:33:11]line Место: АЗС № 86 "Партнер Нефть" [15:33:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:33:11]line СНО: Общий режим [15:33:11]line Чек 381 22.10.2024 15:33 [15:33:11]line Смена: 461 ФФД: 1.0 [15:33:11]line ЗНМ: 0300000155 [15:33:11]line РНМ: 0000000000100030 [15:33:11]line Версия ККМ: 001 [15:33:11]line ФМ: 0000000000965340 [15:33:11]line ФД: 188352 [15:33:11]line ФПД: 271234921645840 [15:33:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153310&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188352&fm=271234921645840&tin=02508201610067®Number=0000000000100030&sum=130000 [15:33:11]written 0, free lines is 4095 [15:33:11]OFD Sender: Processing packet 188352 [packets to send 1062, broken 1061] [15:33:11]ProducePacketName [15:33:11]name=ofd_packets/00188352 [15:33:11]OFD Sender: To server: pG, [15:33:11]CommunicateWithHost lk.salyk.kg:30040 [15:33:11]ConnectInit lk.salyk.kg [15:33:11]Connected sock=9 [15:33:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 EF 07 01 16 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 7A 44 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 19 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F5 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 01 00 00 F4 03 04 00 B6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C0 DF 02 00 35 04 06 00 F6 AF CD 27 C7 10 2E 0D 54 D0 6B C4 97 F8 [15:33:11]Write to MH i2c: 01 00 00 96 14 AA [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: 01 07 00 96 14 00 00 00 00 00 69 0C 26 [15:33:11]RasterBufferAndPrint [15:33:11]line [15:33:11]line [15:33:11]line [15:33:11]line [15:33:11]line [15:33:11]written 0, free lines is 3181 [15:33:11]MH_Cut [15:33:11]Write to MH i2c: D1 01 00 9D 14 01 83 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: D1 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: D1 01 00 [15:33:11]MH_I2C_Read... [15:33:11]Read from MH i2c: D1 01 00 9D 14 00 82 [15:33:11]Write to MH i2c: 01 00 00 9E 14 B2 [15:33:11]Write i2c OK [15:33:11]MH_I2C_Read... [15:33:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 80 47 00 D2 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 39 36 35 33 34 30 10 04 04 00 C0 DF 02 00 F4 03 04 00 A3 6F 17 67 B6 04 01 00 00 C0 E1 F3 07 AF 8A 20 E2 [15:33:11]CommunicateWithHost err = 0 [15:33:11]CheckOFDResponse [15:33:11]1017 (14) - 77093643461234 [15:33:11]1041 (16) - 0000000000965340 [15:33:11]1040 (4) - 188352 [15:33:11]1012 (4) - 22.10.2024 09:25 [15:33:11]1206 (1) - 0 [15:33:11]OFD Sender: Remove packet 188352 [15:33:11]ProducePacketName [15:33:11]name=ofd_packets/00188352 [15:33:11]NVStorageDeleteData [15:33:12]OFD Sender: No OFD packet to send [15:33:12]*** Cut start [15:33:12]*** Partial cut [15:33:12]*** CUTSNS_PIN = 1 [15:33:12]*** CUTSNS_PIN = 0 [15:33:13]*** Brake cut motor [15:33:13]Read from MH i2c: 01 [15:33:13]MH_I2C_Read... [15:33:13]*** Stop cut motor [15:33:13]*** Cut end [15:33:13]Read from MH i2c: 01 07 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: 01 07 00 9E 14 00 00 00 00 00 FF 0F C7 [15:33:13]process_action close_receipt done [15:33:13]requested_data is exist [15:33:13]produce_requested_data [15:33:13]requested_item fm.sn is exist - process it [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 11 00 00 [15:33:13]Write to MH i2c: E2 08 00 9F 14 80 11 00 00 00 00 00 00 2D [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 17 00 9F 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [15:33:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:13]wFMCommunicate OK [15:33:13]requested_item fd.num is exist - process it [15:33:13]SAM_PROTO_GetFieldsCounters [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 13 00 00 [15:33:13]Write to MH i2c: E2 08 00 A0 14 80 13 00 00 00 00 00 00 30 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 62 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 62 00 A0 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 20 [15:33:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7D 01 00 00 5E 04 04 00 7D 01 00 00 57 04 04 00 7E 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_GetFieldsCounters done [15:33:13]requested_item shift.num is exist - process it [15:33:13]requested_item shift.opened is exist - process it [15:33:13]req_shift_opened [15:33:13]FM_GetShiftState [15:33:13]SAM_PROTO_GetShiftState [15:33:13]wFMCommunicate request_size=4 [15:33:13]MH_SAM_APDU [15:33:13]CAPDU: 80 13 01 00 [15:33:13]Write to MH i2c: E2 08 00 A1 14 80 13 01 00 00 00 00 00 32 [15:33:13]Write i2c OK [15:33:13]MH_I2C_Read... [15:33:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:13]Read from MH i2c: E2 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0E 00 [15:33:13]MH_I2C_Read... [15:33:13]Read from MH i2c: E2 0E 00 A1 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 27 [15:33:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:33:13]wFMCommunicate OK [15:33:13]SAM_PROTO_GetShiftState done [15:33:13]FM_GetShiftState done [15:33:13]req_shift_opened done [15:33:13]requested_item shift.open_date is exist - process it [15:33:13]req_shift_open_date [15:33:13]req_shift_open_date done [15:33:13]produce_requested_data done [15:33:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188352,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:33:13]process_action_free close_receipt [15:33:13]json_value_free [15:33:13]json_value_free done [15:33:13]process_json_proto returns [15:33:13]Send response to host [15:33:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188352,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:33:13]free response buf [15:33:13]execute_script done [15:33:13]execute_script returns [15:33:13]free content buf [15:33:13]Sock 7.Close socket [15:33:13]Sock 7.Thread stoped [15:33:17]OFD Sender: No OFD packet to send [15:33:22]OFD Sender: No OFD packet to send [15:33:27]OFD Sender: No OFD packet to send [15:33:32]OFD Sender: No OFD packet to send [15:33:37]OFD Sender: No OFD packet to send [15:33:41]accept exits with 10 [15:33:41]New connection [15:33:41]New thread 3067305316 created [15:33:41]Thread 3067161956 joined [15:33:41]Waiting for new connection... [15:33:41] Sock 10.Parse request [15:33:41]Sock 10.Check first char [15:33:41]Sock 10.First char is OK [15:33:41]request: POST /json_proto HTTP/1.0 [15:33:41]Method: POST [15:33:41]URL: /json_proto [15:33:41]Method is POST - this is cgi request [15:33:41]url: /json_proto [15:33:41]query_string will be loaded in cgi processing [15:33:41]execute_cgi json_proto POST (null) [15:33:41]execute_cgi path=json_proto method=POST [15:33:41]POST find Content-Length [15:33:41]Host: 172.17.42.131:8080 [15:33:41]Content-Length: 678 [15:33:41]Content-Type: application/json [15:33:41] [15:33:41]POST finish read [15:33:41]Found Content-Length = 678 [15:33:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:41]execute_script... [15:33: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)210412", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:33:41]POST & json_proto [15:33:41]process_json_proto [15:33:41]json parsed OK: [15:33:41]protocol is kg_v1.0 [15:33:41]action value=close_receipt [15:33:41]process_action close_receipt [15:33:41]cmd_close_receipt [15:33:41]MH_GetDate [15:33:41]Write to MH i2c: F0 00 00 A2 14 A5 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: F0 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: F0 09 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: F0 09 00 A2 14 00 D6 C5 17 67 A0 18 CA 66 AF [15:33:41]GetLastDocTimeStamp 1729611190 [15:33:41]current date 1729611222 [15:33:41]FM_GetShiftState [15:33:41]SAM_PROTO_GetShiftState [15:33:41]wFMCommunicate request_size=4 [15:33:41]MH_SAM_APDU [15:33:41]CAPDU: 80 13 01 00 [15:33:41]Write to MH i2c: E2 08 00 A3 14 80 13 01 00 00 00 00 00 34 [15:33:41]Write i2c OK [15:33:41]MH_I2C_Read... [15:33:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:41]Read from MH i2c: E2 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 0E 00 [15:33:41]MH_I2C_Read... [15:33:41]Read from MH i2c: E2 0E 00 A3 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 29 [15:33:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:33:41]wFMCommunicate OK [15:33:41]SAM_PROTO_GetShiftState done [15:33:41]FM_GetShiftState done [15:33:41]opened in 1729556094 [15:33:41]opened+sec_in_day 1729642494 [15:33:41]quantity*price = 80012 [15:33:41]sum+1 = 80013 [15:33:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 382 22.10.2024 15:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188353 ФПД: 144531886403705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153342&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188353&fm=144531886403705&tin=02508201610067®Number=0000000000100030&sum=80000 [15:33:42]StoreToDocumentArchive [15:33:42]shift 461 fd 188353 [15:33:42]save to /storage/0461/doc_00188353 [15:33:42]save last doc name /storage/0461/doc_00188353 to /storage/kkm_last_doc_name [15:33:42]save OK [15:33:42]Clear old archive folders... [15:33:42]OFD Sender: No OFD packet to send [15:33:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:33:42]tlvbuf is B6EFEB40 [15:33:42]SAM_PROTO_ClearQueue [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 09 00 00 [15:33:42]Write to MH i2c: E2 08 00 B0 14 80 09 00 00 00 00 00 00 36 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 B0 14 00 90 00 38 [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]SAM_PROTO_ClearQueue done [15:33:42]KKMCreateOFDPacket [15:33:42]OFDProtocolAddRootSTLVToBuf [15:33:42]FM_MakeSignedData [15:33:42]FM_MakeSignedData [15:33:42]SAM_PROTO_SignData [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 01 02 [15:33:42]Write to MH i2c: E2 08 00 B1 14 80 0D 01 02 00 00 00 00 3E [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 B1 14 00 90 00 39 [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]wFMCommunicate request_size=255 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 D6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DF 02 00 35 04 06 00 83 [15:33:42]Write to MH i2c: E2 02 01 B2 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 D6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DF 02 00 35 04 06 00 83 00 00 28 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 B2 14 00 90 00 3A [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]wFMCommunicate request_size=10 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 02 02 05 73 73 BF 70 79 [15:33:42]Write to MH i2c: E2 0D 00 B3 14 80 0D 02 02 05 00 73 73 BF 70 79 00 00 D9 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 03 00 B3 14 00 90 00 3B [15:33:42]RAPDU: 90 00 [15:33:42]wFMCommunicate OK [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 0D 03 02 [15:33:42]Write to MH i2c: E2 08 00 B4 14 80 0D 03 02 00 00 00 00 43 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0B 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 0B 00 B4 14 00 61 B2 92 91 78 FC E1 79 90 00 48 [15:33:42]RAPDU: 61 B2 92 91 78 FC E1 79 90 00 [15:33:42]wFMCommunicate OK [15:33:42]SAM_PROTO_SignData done [15:33:42]FM_MakeSignedData done [15:33:42]CreateOFDProtocolMessage [15:33:42]wFMCommunicate request_size=4 [15:33:42]MH_SAM_APDU [15:33:42]CAPDU: 80 11 00 00 [15:33:42]Write to MH i2c: E2 08 00 B5 14 80 11 00 00 00 00 00 00 43 [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:42]Read from MH i2c: E2 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 17 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: E2 17 00 B5 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [15:33:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:42]wFMCommunicate OK [15:33:42]CreateOFDProtocolMessage done [15:33:42]OFDSenderStorePacket 188353 [15:33:42]StoreOFDPacket docnum=188353 [15:33:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A 74 07 01 62 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 D6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DF 02 00 35 04 06 00 83 73 73 BF 70 79 61 B2 92 91 78 FC E1 79 [15:33:42]CheckFolder [15:33:42]dirname=/storage/ofd_packets [15:33:42]CheckFolder done [15:33:42]ProducePacketName [15:33:42]name=ofd_packets/00188353 [15:33:42]NVStorageSaveData ofd_packets/00188353 [15:33:42]File name is /storage/ofd_packets/00188353 [15:33:42]Write 301 bytes [15:33:42]NVStorageSaveData done [15:33:42]OFDSenderStorePacket done [15:33:42]KKMCreateOFDPacket done [15:33:42]NVStorageSaveData kkm_last_timestamp [15:33:42]File name is /storage/kkm_last_timestamp [15:33:42]Write 4 bytes [15:33:42]NVStorageSaveData done [15:33:42]ExternCall_PrintAddStr [15:33:42]wPrintStart [15:33:42]Write to MH i2c: 01 00 00 B6 14 CA [15:33:42]Write i2c OK [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: 01 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: 01 07 00 [15:33:42]MH_I2C_Read... [15:33:42]Read from MH i2c: 01 07 00 B6 14 00 00 00 00 00 FF 0F DF [15:33:42]RasterBufferAndPrint [15:33:42]line Счет N : (1)210412 [15:33:42]line ИНН: 02508201610067 [15:33:42]line Контрольно-Кассовый Чек [15:33:42]line ПРОДАЖА [15:33:42]line ТРК (МРК, ГНК) : 32 [15:33:42]line Товар: 2710124130 [15:33:42]line Аи-92-К-3 [15:33:42]line 11.960 * 66.90 [15:33:42]line = 800.12 [15:33:42]line НДС 12% НСП 1% [15:33:42]line > о реализуемом товаре [15:33:42]line ОКРУГЛЕНИЕ: -0.12 [15:33:42]line ИТОГО: 800.00 [15:33:42]line Внесено: 800.00 [15:33:42]line СДАЧА: 0.00 [15:33:42]line НСП 1% : 7.08 [15:33:42]line НДС 12% : 84.97 [15:33:42]line Наличными: 800.00 [15:33:42]line Безнал.: 0.00 [15:33:42]line Место: АЗС № 86 "Партнер Нефть" [15:33:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:33:42]line СНО: Общий режим [15:33:42]line Чек 382 22.10.2024 15:33 [15:33:42]line Смена: 461 ФФД: 1.0 [15:33:42]line ЗНМ: 0300000155 [15:33:42]line РНМ: 0000000000100030 [15:33:42]line Версия ККМ: 001 [15:33:42]line ФМ: 0000000000965340 [15:33:42]line ФД: 188353 [15:33:42]line ФПД: 144531886403705 [15:33:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153342&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188353&fm=144531886403705&tin=02508201610067®Number=0000000000100030&sum=80000 [15:33:42]OFD Sender: Processing packet 188353 [packets to send 1062, broken 1061] [15:33:42]ProducePacketName [15:33:42]name=ofd_packets/00188353 [15:33:42]OFD Sender: To server: pG, [15:33:42]CommunicateWithHost lk.salyk.kg:30040 [15:33:42]ConnectInit lk.salyk.kg [15:33:42]written 0, free lines is 4095 [15:33:43]Connected sock=11 [15:33:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8A 74 07 01 62 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7E 01 00 00 F4 03 04 00 D6 C5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C1 DF 02 00 35 04 06 00 83 73 73 BF 70 79 61 B2 92 91 78 FC E1 79 [15:33:43]Write to MH i2c: 01 00 00 E1 14 F5 [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: 01 07 00 E1 14 00 00 00 00 00 6A 0C 72 [15:33:43]RasterBufferAndPrint [15:33:43]line [15:33:43]line [15:33:43]line [15:33:43]line [15:33:43]line [15:33:43]written 0, free lines is 3181 [15:33:43]MH_Cut [15:33:43]Write to MH i2c: D1 01 00 E8 14 01 CE [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: D1 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: D1 01 00 [15:33:43]MH_I2C_Read... [15:33:43]Read from MH i2c: D1 01 00 E8 14 00 CD [15:33:43]Write to MH i2c: 01 00 00 E9 14 FD [15:33:43]Write i2c OK [15:33:43]MH_I2C_Read... [15:33:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D5 71 47 00 C1 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 39 36 35 33 34 30 10 04 04 00 C1 DF 02 00 F4 03 04 00 C3 6F 17 67 B6 04 01 00 00 79 86 B8 1B 65 48 2B AC [15:33:43]CommunicateWithHost err = 0 [15:33:43]CheckOFDResponse [15:33:43]1017 (14) - 77093643461234 [15:33:43]1041 (16) - 0000000000965340 [15:33:43]1040 (4) - 188353 [15:33:43]1012 (4) - 22.10.2024 09:26 [15:33:43]1206 (1) - 0 [15:33:43]OFD Sender: Remove packet 188353 [15:33:43]ProducePacketName [15:33:43]name=ofd_packets/00188353 [15:33:43]NVStorageDeleteData [15:33:44]OFD Sender: No OFD packet to send [15:33:44]*** Cut start [15:33:44]*** Partial cut [15:33:44]*** CUTSNS_PIN = 1 [15:33:44]*** CUTSNS_PIN = 0 [15:33:44]*** Brake cut motor [15:33:45]Read from MH i2c: 01 [15:33:45]MH_I2C_Read... [15:33:45]*** Stop cut motor [15:33:45]*** Cut end [15:33:45]Read from MH i2c: 01 07 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: 01 07 00 E9 14 00 00 00 00 00 FF 0F 12 [15:33:45]process_action close_receipt done [15:33:45]requested_data is exist [15:33:45]produce_requested_data [15:33:45]requested_item fm.sn is exist - process it [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 11 00 00 [15:33:45]Write to MH i2c: E2 08 00 EA 14 80 11 00 00 00 00 00 00 78 [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 17 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 17 00 EA 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [15:33:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:33:45]wFMCommunicate OK [15:33:45]requested_item fd.num is exist - process it [15:33:45]SAM_PROTO_GetFieldsCounters [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 13 00 00 [15:33:45]Write to MH i2c: E2 08 00 EB 14 80 13 00 00 00 00 00 00 7B [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 62 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 62 00 EB 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 6F [15:33:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7E 01 00 00 5E 04 04 00 7E 01 00 00 57 04 04 00 7F 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:33:45]wFMCommunicate OK [15:33:45]SAM_PROTO_GetFieldsCounters done [15:33:45]requested_item shift.num is exist - process it [15:33:45]requested_item shift.opened is exist - process it [15:33:45]req_shift_opened [15:33:45]FM_GetShiftState [15:33:45]SAM_PROTO_GetShiftState [15:33:45]wFMCommunicate request_size=4 [15:33:45]MH_SAM_APDU [15:33:45]CAPDU: 80 13 01 00 [15:33:45]Write to MH i2c: E2 08 00 EC 14 80 13 01 00 00 00 00 00 7D [15:33:45]Write i2c OK [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 [15:33:45]MH_I2C_Read... [15:33:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:33:45]Read from MH i2c: E2 0E 00 [15:33:45]MH_I2C_Read... [15:33:45]Read from MH i2c: E2 0E 00 EC 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [15:33:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:33:45]wFMCommunicate OK [15:33:45]SAM_PROTO_GetShiftState done [15:33:45]FM_GetShiftState done [15:33:45]req_shift_opened done [15:33:45]requested_item shift.open_date is exist - process it [15:33:45]req_shift_open_date [15:33:45]req_shift_open_date done [15:33:45]produce_requested_data done [15:33:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188353,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:33:45]process_action_free close_receipt [15:33:45]json_value_free [15:33:45]json_value_free done [15:33:45]process_json_proto returns [15:33:45]Send response to host [15:33:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188353,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:33:45]free response buf [15:33:45]execute_script done [15:33:45]execute_script returns [15:33:45]free content buf [15:33:45]Sock 10.Close socket [15:33:45]Sock 10.Thread stoped [15:33:49]OFD Sender: No OFD packet to send [15:33:54]OFD Sender: No OFD packet to send [15:33:59]OFD Sender: No OFD packet to send [15:34:04]OFD Sender: No OFD packet to send [15:34:09]OFD Sender: No OFD packet to send [15:34:14]OFD Sender: No OFD packet to send [15:34:19]OFD Sender: No OFD packet to send [15:34:22]accept exits with 7 [15:34:22]New connection [15:34:22]New thread 3067161956 created [15:34:22]Thread 3067305316 joined [15:34:22]Waiting for new connection... [15:34:22] Sock 7.Parse request [15:34:22]Sock 7.Check first char [15:34:22]Sock 7.First char is OK [15:34:22]request: POST /json_proto HTTP/1.0 [15:34:22]Method: POST [15:34:22]URL: /json_proto [15:34:22]Method is POST - this is cgi request [15:34:22]url: /json_proto [15:34:22]query_string will be loaded in cgi processing [15:34:22]execute_cgi json_proto POST (null) [15:34:22]execute_cgi path=json_proto method=POST [15:34:22]POST find Content-Length [15:34:22]Host: 172.17.42.131:8080 [15:34:22]Content-Length: 688 [15:34:22]Content-Type: application/json [15:34:22] [15:34:22]POST finish read [15:34:22]Found Content-Length = 688 [15:34:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [15:34:22]execute_script... [15:34: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)210410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [15:34:22]POST & json_proto [15:34:22]process_json_proto [15:34:22]json parsed OK: [15:34:22]protocol is kg_v1.0 [15:34:22]action value=close_receipt [15:34:22]process_action close_receipt [15:34:22]cmd_close_receipt [15:34:22]MH_GetDate [15:34:22]Write to MH i2c: F0 00 00 ED 14 F0 [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: F0 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: F0 09 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: F0 09 00 ED 14 00 FF C5 17 67 A0 18 CA 66 23 [15:34:22]GetLastDocTimeStamp 1729611222 [15:34:22]current date 1729611263 [15:34:22]FM_GetShiftState [15:34:22]SAM_PROTO_GetShiftState [15:34:22]wFMCommunicate request_size=4 [15:34:22]MH_SAM_APDU [15:34:22]CAPDU: 80 13 01 00 [15:34:22]Write to MH i2c: E2 08 00 EE 14 80 13 01 00 00 00 00 00 7F [15:34:22]Write i2c OK [15:34:22]MH_I2C_Read... [15:34:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:22]Read from MH i2c: E2 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0E 00 [15:34:22]MH_I2C_Read... [15:34:22]Read from MH i2c: E2 0E 00 EE 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 74 [15:34:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:34:22]wFMCommunicate OK [15:34:22]SAM_PROTO_GetShiftState done [15:34:22]FM_GetShiftState done [15:34:22]opened in 1729556094 [15:34:22]opened+sec_in_day 1729642494 [15:34:22]quantity*price = 200025 [15:34:22]sum+1 = 200026 [15:34:22]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 383 22.10.2024 15:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188354 ФПД: 44797479189678 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188354&fm=44797479189678&tin=02508201610067®Number=0000000000100030&sum=200000 [15:34:23]StoreToDocumentArchive [15:34:23]shift 461 fd 188354 [15:34:23]save to /storage/0461/doc_00188354 [15:34:23]save last doc name /storage/0461/doc_00188354 to /storage/kkm_last_doc_name [15:34:23]save OK [15:34:23]Clear old archive folders... [15:34:23]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:34:23]tlvbuf is 01497860 [15:34:23]SAM_PROTO_ClearQueue [15:34:23]wFMCommunicate request_size=4 [15:34:23]MH_SAM_APDU [15:34:23]CAPDU: 80 09 00 00 [15:34:23]Write to MH i2c: E2 08 00 FB 14 80 09 00 00 00 00 00 00 81 [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:34:23]Read from MH i2c: E2 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 03 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 03 00 FB 14 00 90 00 83 [15:34:23]RAPDU: 90 00 [15:34:23]wFMCommunicate OK [15:34:23]SAM_PROTO_ClearQueue done [15:34:23]KKMCreateOFDPacket [15:34:23]OFDProtocolAddRootSTLVToBuf [15:34:23]FM_MakeSignedData [15:34:23]FM_MakeSignedData [15:34:23]SAM_PROTO_SignData [15:34:23]wFMCommunicate request_size=4 [15:34:23]MH_SAM_APDU [15:34:23]CAPDU: 80 0D 01 02 [15:34:23]Write to MH i2c: E2 08 00 FC 14 80 0D 01 02 00 00 00 00 89 [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:34:23]Read from MH i2c: E2 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 03 00 [15:34:23]MH_I2C_Read... [15:34:23]Read from MH i2c: E2 03 00 FC 14 00 90 00 84 [15:34:23]RAPDU: 90 00 [15:34:23]wFMCommunicate OK [15:34:23]wFMCommunicate request_size=255 [15:34:23]MH_SAM_APDU [15:34:23]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 00 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DF 02 [15:34:23]Write to MH i2c: E2 02 01 FD 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 00 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DF 02 00 00 5F [15:34:23]Write i2c OK [15:34:23]MH_I2C_Read... [15:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:24]Read from MH i2c: E2 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 03 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 03 00 FD 14 00 90 00 85 [15:34:24]RAPDU: 90 00 [15:34:24]wFMCommunicate OK [15:34:24]wFMCommunicate request_size=16 [15:34:24]MH_SAM_APDU [15:34:24]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 28 BE 39 D5 7C AE [15:34:24]Write to MH i2c: E2 13 00 FE 14 80 0D 02 02 0B 00 00 35 04 06 00 28 BE 39 D5 7C AE 00 00 FF [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:34:24]Read from MH i2c: E2 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 03 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 03 00 FE 14 00 90 00 86 [15:34:24]RAPDU: 90 00 [15:34:24]wFMCommunicate OK [15:34:24]wFMCommunicate request_size=4 [15:34:24]MH_SAM_APDU [15:34:24]CAPDU: 80 0D 03 02 [15:34:24]Write to MH i2c: E2 08 00 FF 14 80 0D 03 02 00 00 00 00 8E [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:34:24]Read from MH i2c: E2 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 0B 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 0B 00 FF 14 00 26 CD 79 A3 B4 AA 25 BD 90 00 DE [15:34:24]RAPDU: 26 CD 79 A3 B4 AA 25 BD 90 00 [15:34:24]wFMCommunicate OK [15:34:24]SAM_PROTO_SignData done [15:34:24]FM_MakeSignedData done [15:34:24]CreateOFDProtocolMessage [15:34:24]wFMCommunicate request_size=4 [15:34:24]MH_SAM_APDU [15:34:24]CAPDU: 80 11 00 00 [15:34:24]Write to MH i2c: E2 08 00 00 15 80 11 00 00 00 00 00 00 8F [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]OFD Sender: No OFD packet to send [15:34:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:24]Read from MH i2c: E2 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 17 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: E2 17 00 00 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [15:34:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:34:24]wFMCommunicate OK [15:34:24]CreateOFDProtocolMessage done [15:34:24]OFDSenderStorePacket 188354 [15:34:24]StoreOFDPacket docnum=188354 [15:34:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D3 6D 0D 01 39 95 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 00 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DF 02 00 35 04 06 00 28 BE 39 D5 7C AE 26 CD 79 A3 B4 AA 25 BD [15:34:24]CheckFolder [15:34:24]dirname=/storage/ofd_packets [15:34:24]CheckFolder done [15:34:24]ProducePacketName [15:34:24]name=ofd_packets/00188354 [15:34:24]NVStorageSaveData ofd_packets/00188354 [15:34:24]File name is /storage/ofd_packets/00188354 [15:34:24]Write 307 bytes [15:34:24]NVStorageSaveData done [15:34:24]OFDSenderStorePacket done [15:34:24]KKMCreateOFDPacket done [15:34:24]NVStorageSaveData kkm_last_timestamp [15:34:24]File name is /storage/kkm_last_timestamp [15:34:24]Write 4 bytes [15:34:24]NVStorageSaveData done [15:34:24]ExternCall_PrintAddStr [15:34:24]wPrintStart [15:34:24]Write to MH i2c: 01 00 00 01 15 16 [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: 01 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: 01 07 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: 01 07 00 01 15 00 00 00 00 00 FF 0F 2B [15:34:24]RasterBufferAndPrint [15:34:24]line Счет N : (1)210410 [15:34:24]line ИНН: 02508201610067 [15:34:24]line Контрольно-Кассовый Чек [15:34:24]line ПРОДАЖА [15:34:24]line ТРК (МРК, ГНК) : 11 [15:34:24]line Товар: 2710194210 [15:34:24]line D-ENERGY ДТ-К-5 [15:34:24]line 25.910 * 77.20 [15:34:24]line = 2000.25 [15:34:24]line НДС 12% НСП 1% [15:34:24]line > о реализуемом товаре [15:34:24]line ОКРУГЛЕНИЕ: -0.25 [15:34:24]line ИТОГО: 2000.00 [15:34:24]line Внесено: 2000.00 [15:34:24]line СДАЧА: 0.00 [15:34:24]line НСП 1% : 17.70 [15:34:24]line НДС 12% : 212.42 [15:34:24]line Наличными: 2000.00 [15:34:24]line Безнал.: 0.00 [15:34:24]line Место: АЗС № 86 "Партнер Нефть" [15:34:24]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:34:24]line СНО: Общий режим [15:34:24]line Чек 383 22.10.2024 15:34 [15:34:24]line Смена: 461 ФФД: 1.0 [15:34:24]line ЗНМ: 0300000155 [15:34:24]line РНМ: 0000000000100030 [15:34:24]line Версия ККМ: 001 [15:34:24]line ФМ: 0000000000965340 [15:34:24]line ФД: 188354 [15:34:24]line ФПД: 44797479189678 [15:34:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153424&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188354&fm=44797479189678&tin=02508201610067®Number=0000000000100030&sum=200000 [15:34:24]written 0, free lines is 4095 [15:34:24]OFD Sender: Processing packet 188354 [packets to send 1062, broken 1061] [15:34:24]ProducePacketName [15:34:24]name=ofd_packets/00188354 [15:34:24]OFD Sender: To server: pG, [15:34:24]CommunicateWithHost lk.salyk.kg:30040 [15:34:24]ConnectInit lk.salyk.kg [15:34:24]Connected sock=10 [15:34:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D3 6D 0D 01 39 95 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 7F 01 00 00 F4 03 04 00 00 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DF 02 00 35 04 06 00 28 BE 39 D5 7C AE 26 CD 79 A3 B4 AA 25 BD [15:34:24]Write to MH i2c: 01 00 00 2C 15 41 [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: 01 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: 01 07 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: 01 07 00 2C 15 00 00 00 00 00 69 0C BD [15:34:24]RasterBufferAndPrint [15:34:24]line [15:34:24]line [15:34:24]line [15:34:24]line [15:34:24]line [15:34:24]written 0, free lines is 3181 [15:34:24]MH_Cut [15:34:24]Write to MH i2c: D1 01 00 33 15 01 1A [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: D1 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: D1 01 00 [15:34:24]MH_I2C_Read... [15:34:24]Read from MH i2c: D1 01 00 33 15 00 19 [15:34:24]Write to MH i2c: 01 00 00 34 15 49 [15:34:24]Write i2c OK [15:34:24]MH_I2C_Read... [15:34:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 F2 47 00 A9 A2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C2 DF 02 00 F4 03 04 00 EC 6F 17 67 B6 04 01 00 00 F0 40 45 08 0A 49 D0 53 [15:34:25]CommunicateWithHost err = 0 [15:34:25]CheckOFDResponse [15:34:25]1017 (14) - 77093643461234 [15:34:25]1041 (16) - 0000000000965340 [15:34:25]1040 (4) - 188354 [15:34:25]1012 (4) - 22.10.2024 09:27 [15:34:25]1206 (1) - 0 [15:34:25]OFD Sender: Remove packet 188354 [15:34:25]ProducePacketName [15:34:25]name=ofd_packets/00188354 [15:34:25]NVStorageDeleteData [15:34:25]OFD Sender: No OFD packet to send [15:34:26]*** Cut start [15:34:26]*** Partial cut [15:34:26]*** CUTSNS_PIN = 1 [15:34:26]*** CUTSNS_PIN = 0 [15:34:26]*** Brake cut motor [15:34:26]Read from MH i2c: 01 [15:34:26]MH_I2C_Read... [15:34:26]*** Stop cut motor [15:34:26]*** Cut end [15:34:26]Read from MH i2c: 01 07 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: 01 07 00 34 15 00 00 00 00 00 FF 0F 5E [15:34:26]process_action close_receipt done [15:34:26]requested_data is exist [15:34:26]produce_requested_data [15:34:26]requested_item fm.sn is exist - process it [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 11 00 00 [15:34:26]Write to MH i2c: E2 08 00 35 15 80 11 00 00 00 00 00 00 C4 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 17 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 17 00 35 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [15:34:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:34:26]wFMCommunicate OK [15:34:26]requested_item fd.num is exist - process it [15:34:26]SAM_PROTO_GetFieldsCounters [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 13 00 00 [15:34:26]Write to MH i2c: E2 08 00 36 15 80 13 00 00 00 00 00 00 C7 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 62 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 62 00 36 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [15:34:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 7F 01 00 00 5E 04 04 00 7F 01 00 00 57 04 04 00 80 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_GetFieldsCounters done [15:34:26]requested_item shift.num is exist - process it [15:34:26]requested_item shift.opened is exist - process it [15:34:26]req_shift_opened [15:34:26]FM_GetShiftState [15:34:26]SAM_PROTO_GetShiftState [15:34:26]wFMCommunicate request_size=4 [15:34:26]MH_SAM_APDU [15:34:26]CAPDU: 80 13 01 00 [15:34:26]Write to MH i2c: E2 08 00 37 15 80 13 01 00 00 00 00 00 C9 [15:34:26]Write i2c OK [15:34:26]MH_I2C_Read... [15:34:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:34:26]Read from MH i2c: E2 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 0E 00 [15:34:26]MH_I2C_Read... [15:34:26]Read from MH i2c: E2 0E 00 37 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [15:34:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:34:26]wFMCommunicate OK [15:34:26]SAM_PROTO_GetShiftState done [15:34:26]FM_GetShiftState done [15:34:26]req_shift_opened done [15:34:26]requested_item shift.open_date is exist - process it [15:34:26]req_shift_open_date [15:34:26]req_shift_open_date done [15:34:26]produce_requested_data done [15:34:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188354,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:34:26]process_action_free close_receipt [15:34:26]json_value_free [15:34:26]json_value_free done [15:34:26]process_json_proto returns [15:34:26]Send response to host [15:34:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188354,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:34:26]free response buf [15:34:26]execute_script done [15:34:26]execute_script returns [15:34:26]free content buf [15:34:26]Sock 7.Close socket [15:34:26]Sock 7.Thread stoped [15:34:30]OFD Sender: No OFD packet to send [15:34:35]OFD Sender: No OFD packet to send [15:34:40]OFD Sender: No OFD packet to send [15:34:45]OFD Sender: No OFD packet to send [15:34:50]OFD Sender: No OFD packet to send [15:34:55]OFD Sender: No OFD packet to send [15:35:00]OFD Sender: No OFD packet to send [15:35:05]OFD Sender: No OFD packet to send [15:35:10]OFD Sender: No OFD packet to send [15:35:15]OFD Sender: No OFD packet to send [15:35:20]OFD Sender: No OFD packet to send [15:35:25]OFD Sender: No OFD packet to send [15:35:30]OFD Sender: No OFD packet to send [15:35:35]OFD Sender: No OFD packet to send [15:35:40]OFD Sender: No OFD packet to send [15:35:45]OFD Sender: No OFD packet to send [15:35:50]OFD Sender: No OFD packet to send [15:35:55]OFD Sender: No OFD packet to send [15:36:00]OFD Sender: No OFD packet to send [15:36:05]OFD Sender: No OFD packet to send [15:36:11]OFD Sender: No OFD packet to send [15:36:16]OFD Sender: No OFD packet to send [15:36:21]OFD Sender: No OFD packet to send [15:36:26]OFD Sender: No OFD packet to send [15:36:31]OFD Sender: No OFD packet to send [15:36:36]OFD Sender: No OFD packet to send [15:36:41]OFD Sender: No OFD packet to send [15:36:46]OFD Sender: No OFD packet to send [15:36:48]accept exits with 9 [15:36:48]New connection [15:36:48]New thread 3067305316 created [15:36:48] Sock 9.Parse request [15:36:48]Thread 3067161956 joined [15:36:48]Sock 9.Check first char [15:36:48]Waiting for new connection... [15:36:48]Sock 9.First char is OK [15:36:48]request: POST /json_proto HTTP/1.0 [15:36:48]Method: POST [15:36:48]URL: /json_proto [15:36:48]Method is POST - this is cgi request [15:36:48]url: /json_proto [15:36:48]query_string will be loaded in cgi processing [15:36:48]execute_cgi json_proto POST (null) [15:36:48]execute_cgi path=json_proto method=POST [15:36:48]POST find Content-Length [15:36:48]Host: 172.17.42.131:8080 [15:36:48]Content-Length: 801 [15:36:48]Content-Type: application/json [15:36:48] [15:36:48]POST finish read [15:36:48]Found Content-Length = 801 [15:36:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:48]execute_script... [15:36: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)210411", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:36:48]POST & json_proto [15:36:48]process_json_proto [15:36:48]json parsed OK: [15:36:48]protocol is kg_v1.0 [15:36:48]action value=close_receipt [15:36:48]process_action close_receipt [15:36:48]cmd_close_receipt [15:36:48]MH_GetDate [15:36:48]Write to MH i2c: F0 00 00 38 15 3C [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 09 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: F0 09 00 38 15 00 91 C6 17 67 A0 18 CA 66 02 [15:36:48]GetLastDocTimeStamp 1729611264 [15:36:48]current date 1729611409 [15:36:48]FM_GetShiftState [15:36:48]SAM_PROTO_GetShiftState [15:36:48]wFMCommunicate request_size=4 [15:36:48]MH_SAM_APDU [15:36:48]CAPDU: 80 13 01 00 [15:36:48]Write to MH i2c: E2 08 00 39 15 80 13 01 00 00 00 00 00 CB [15:36:48]Write i2c OK [15:36:48]MH_I2C_Read... [15:36:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:48]Read from MH i2c: E2 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 [15:36:48]MH_I2C_Read... [15:36:48]Read from MH i2c: E2 0E 00 39 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C0 [15:36:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:36:48]wFMCommunicate OK [15:36:48]SAM_PROTO_GetShiftState done [15:36:48]FM_GetShiftState done [15:36:48]opened in 1729556094 [15:36:48]opened+sec_in_day 1729642494 [15:36:48]quantity*price = 990066 [15:36:48]sum+1 = 990068 [15:36:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.67 НСП 1% : 87.62 НДС 12% : 1051.40 Наличными: 0.00 Безнал.: 9900.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 384 22.10.2024 15:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188355 ФПД: 12786526680434 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153649&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188355&fm=12786526680434&tin=02508201610067®Number=0000000000100030&sum=990067 [15:36:49]StoreToDocumentArchive [15:36:49]shift 461 fd 188355 [15:36:49]save to /storage/0461/doc_00188355 [15:36:49]save last doc name /storage/0461/doc_00188355 to /storage/kkm_last_doc_name [15:36:49]save OK [15:36:49]Clear old archive folders... [15:36:49]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:36:49]tlvbuf is 01452AF0 [15:36:49]SAM_PROTO_ClearQueue [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 09 00 00 [15:36:49]Write to MH i2c: E2 08 00 46 15 80 09 00 00 00 00 00 00 CD [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 46 15 00 90 00 CF [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_ClearQueue done [15:36:49]KKMCreateOFDPacket [15:36:49]OFDProtocolAddRootSTLVToBuf [15:36:49]FM_MakeSignedData [15:36:49]FM_MakeSignedData [15:36:49]SAM_PROTO_SignData [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 01 02 [15:36:49]Write to MH i2c: E2 08 00 47 15 80 0D 01 02 00 00 00 00 D5 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 47 15 00 90 00 D0 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=255 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 91 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DF 02 00 35 04 06 00 0B A1 18 61 [15:36:49]Write to MH i2c: E2 02 01 48 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 91 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DF 02 00 35 04 06 00 0B A1 18 61 00 00 EE [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 48 15 00 90 00 D1 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=7 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 02 02 02 75 72 [15:36:49]Write to MH i2c: E2 0A 00 49 15 80 0D 02 02 02 00 75 72 00 00 C3 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 03 00 49 15 00 90 00 D2 [15:36:49]RAPDU: 90 00 [15:36:49]wFMCommunicate OK [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 0D 03 02 [15:36:49]Write to MH i2c: E2 08 00 4A 15 80 0D 03 02 00 00 00 00 DA [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0B 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 0B 00 4A 15 00 39 80 FA B2 CD 32 DC BD 90 00 D8 [15:36:49]RAPDU: 39 80 FA B2 CD 32 DC BD 90 00 [15:36:49]wFMCommunicate OK [15:36:49]SAM_PROTO_SignData done [15:36:49]FM_MakeSignedData done [15:36:49]CreateOFDProtocolMessage [15:36:49]wFMCommunicate request_size=4 [15:36:49]MH_SAM_APDU [15:36:49]CAPDU: 80 11 00 00 [15:36:49]Write to MH i2c: E2 08 00 4B 15 80 11 00 00 00 00 00 00 DA [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:49]Read from MH i2c: E2 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 17 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: E2 17 00 4B 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [15:36:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:36:49]wFMCommunicate OK [15:36:49]CreateOFDProtocolMessage done [15:36:49]OFDSenderStorePacket 188355 [15:36:49]StoreOFDPacket docnum=188355 [15:36:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 FA 6B 04 01 7E AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 91 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DF 02 00 35 04 06 00 0B A1 18 61 75 72 39 80 FA B2 CD 32 DC BD [15:36:49]CheckFolder [15:36:49]dirname=/storage/ofd_packets [15:36:49]CheckFolder done [15:36:49]ProducePacketName [15:36:49]name=ofd_packets/00188355 [15:36:49]NVStorageSaveData ofd_packets/00188355 [15:36:49]File name is /storage/ofd_packets/00188355 [15:36:49]Write 298 bytes [15:36:49]NVStorageSaveData done [15:36:49]OFDSenderStorePacket done [15:36:49]KKMCreateOFDPacket done [15:36:49]NVStorageSaveData kkm_last_timestamp [15:36:49]File name is /storage/kkm_last_timestamp [15:36:49]Write 4 bytes [15:36:49]NVStorageSaveData done [15:36:49]ExternCall_PrintAddStr [15:36:49]wPrintStart [15:36:49]Write to MH i2c: 01 00 00 4C 15 61 [15:36:49]Write i2c OK [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: 01 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: 01 07 00 [15:36:49]MH_I2C_Read... [15:36:49]Read from MH i2c: 01 07 00 4C 15 00 00 00 00 00 FF 0F 76 [15:36:49]RasterBufferAndPrint [15:36:49]line Счет N : (1)210411 [15:36:49]line ИНН: 02508201610067 [15:36:49]line Контрольно-Кассовый Чек [15:36:49]line ПРОДАЖА [15:36:49]line ТРК (МРК, ГНК) : 51 [15:36:49]line Товар: 2710194210 [15:36:49]line ДТ-К-5 [15:36:49]line 129.930 * 76.20 [15:36:49]line = 9900.67 [15:36:49]line НДС 12% НСП 1% [15:36:49]line > о реализуемом товаре [15:36:49]line ИТОГО: 9900.67 [15:36:49]line НСП 1% : 87.62 [15:36:49]line НДС 12% : 1051.40 [15:36:49]line Наличными: 0.00 [15:36:49]line Безнал.: 9900.67 [15:36:49]line Место: АЗС № 86 "Партнер Нефть" [15:36:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:36:49]line СНО: Общий режим [15:36:49]line Чек 384 22.10.2024 15:36 [15:36:49]line Смена: 461 ФФД: 1.0 [15:36:49]line ЗНМ: 0300000155 [15:36:49]line РНМ: 0000000000100030 [15:36:49]line Версия ККМ: 001 [15:36:49]line Платежная система: O! деньги [15:36:49]line ФМ: 0000000000965340 [15:36:49]line ФД: 188355 [15:36:49]line ФПД: 12786526680434 [15:36:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T153649&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188355&fm=12786526680434&tin=02508201610067®Number=0000000000100030&sum=990067 [15:36:49]written 0, free lines is 4095 [15:36:49]OFD Sender: Processing packet 188355 [packets to send 1062, broken 1061] [15:36:49]ProducePacketName [15:36:49]name=ofd_packets/00188355 [15:36:49]OFD Sender: To server: pG, [15:36:49]CommunicateWithHost lk.salyk.kg:30040 [15:36:49]ConnectInit lk.salyk.kg [15:36:50]Connected sock=10 [15:36:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 FA 6B 04 01 7E AF 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 80 01 00 00 F4 03 04 00 91 C6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C3 DF 02 00 35 04 06 00 0B A1 18 61 75 72 39 80 FA B2 CD 32 DC BD [15:36:50]Write to MH i2c: 01 00 00 76 15 8B [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: 01 07 00 76 15 00 00 00 00 00 7D 0C 1B [15:36:50]RasterBufferAndPrint [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]line [15:36:50]written 0, free lines is 3200 [15:36:50]MH_Cut [15:36:50]Write to MH i2c: D1 01 00 7D 15 01 64 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 01 00 [15:36:50]MH_I2C_Read... [15:36:50]Read from MH i2c: D1 01 00 7D 15 00 63 [15:36:50]Write to MH i2c: 01 00 00 7E 15 93 [15:36:50]Write i2c OK [15:36:50]MH_I2C_Read... [15:36:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 E3 47 00 B0 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 39 36 35 33 34 30 10 04 04 00 C3 DF 02 00 F4 03 04 00 7E 70 17 67 B6 04 01 00 00 94 76 B5 95 53 07 61 6D [15:36:50]CommunicateWithHost err = 0 [15:36:50]CheckOFDResponse [15:36:50]1017 (14) - 77093643461234 [15:36:50]1041 (16) - 0000000000965340 [15:36:50]1040 (4) - 188355 [15:36:50]1012 (4) - 22.10.2024 09:29 [15:36:50]1206 (1) - 0 [15:36:50]OFD Sender: Remove packet 188355 [15:36:50]ProducePacketName [15:36:50]name=ofd_packets/00188355 [15:36:50]NVStorageDeleteData [15:36:51]OFD Sender: No OFD packet to send [15:36:51]*** Cut start [15:36:51]*** Partial cut [15:36:51]*** CUTSNS_PIN = 1 [15:36:51]*** CUTSNS_PIN = 0 [15:36:51]*** Brake cut motor [15:36:52]Read from MH i2c: 01 [15:36:52]MH_I2C_Read... [15:36:52]*** Stop cut motor [15:36:52]*** Cut end [15:36:52]Read from MH i2c: 01 07 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: 01 07 00 7E 15 00 00 00 00 00 FF 0F A8 [15:36:52]process_action close_receipt done [15:36:52]requested_data is exist [15:36:52]produce_requested_data [15:36:52]requested_item fm.sn is exist - process it [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 11 00 00 [15:36:52]Write to MH i2c: E2 08 00 7F 15 80 11 00 00 00 00 00 00 0E [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 17 00 7F 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5C [15:36:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:36:52]wFMCommunicate OK [15:36:52]requested_item fd.num is exist - process it [15:36:52]SAM_PROTO_GetFieldsCounters [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 00 00 [15:36:52]Write to MH i2c: E2 08 00 80 15 80 13 00 00 00 00 00 00 11 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 62 00 80 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 0D [15:36:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 80 01 00 00 5E 04 04 00 80 01 00 00 57 04 04 00 81 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetFieldsCounters done [15:36:52]requested_item shift.num is exist - process it [15:36:52]requested_item shift.opened is exist - process it [15:36:52]req_shift_opened [15:36:52]FM_GetShiftState [15:36:52]SAM_PROTO_GetShiftState [15:36:52]wFMCommunicate request_size=4 [15:36:52]MH_SAM_APDU [15:36:52]CAPDU: 80 13 01 00 [15:36:52]Write to MH i2c: E2 08 00 81 15 80 13 01 00 00 00 00 00 13 [15:36:52]Write i2c OK [15:36:52]MH_I2C_Read... [15:36:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:36:52]Read from MH i2c: E2 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 [15:36:52]MH_I2C_Read... [15:36:52]Read from MH i2c: E2 0E 00 81 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 08 [15:36:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:36:52]wFMCommunicate OK [15:36:52]SAM_PROTO_GetShiftState done [15:36:52]FM_GetShiftState done [15:36:52]req_shift_opened done [15:36:52]requested_item shift.open_date is exist - process it [15:36:52]req_shift_open_date [15:36:52]req_shift_open_date done [15:36:52]produce_requested_data done [15:36:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188355,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:36:52]process_action_free close_receipt [15:36:52]json_value_free [15:36:52]json_value_free done [15:36:52]process_json_proto returns [15:36:52]Send response to host [15:36:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188355,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:36:52]free response buf [15:36:52]execute_script done [15:36:52]execute_script returns [15:36:52]free content buf [15:36:52]Sock 9.Close socket [15:36:52]Sock 9.Thread stoped [15:36:56]OFD Sender: No OFD packet to send [15:37:01]OFD Sender: No OFD packet to send [15:37:06]OFD Sender: No OFD packet to send [15:37:11]OFD Sender: No OFD packet to send [15:37:16]OFD Sender: No OFD packet to send [15:37:21]OFD Sender: No OFD packet to send [15:37:26]OFD Sender: No OFD packet to send [15:37:31]OFD Sender: No OFD packet to send [15:37:36]OFD Sender: No OFD packet to send [15:37:41]OFD Sender: No OFD packet to send [15:37:46]OFD Sender: No OFD packet to send [15:37:51]OFD Sender: No OFD packet to send [15:37:56]OFD Sender: No OFD packet to send [15:38:01]OFD Sender: No OFD packet to send [15:38:06]OFD Sender: No OFD packet to send [15:38:11]OFD Sender: No OFD packet to send [15:38:16]OFD Sender: No OFD packet to send [15:38:21]OFD Sender: No OFD packet to send [15:38:26]OFD Sender: No OFD packet to send [15:38:31]OFD Sender: No OFD packet to send [15:38:36]OFD Sender: No OFD packet to send [15:38:41]OFD Sender: No OFD packet to send [15:38:46]OFD Sender: No OFD packet to send [15:38:51]OFD Sender: No OFD packet to send [15:38:56]OFD Sender: No OFD packet to send [15:39:01]OFD Sender: No OFD packet to send [15:39:06]OFD Sender: No OFD packet to send [15:39:11]OFD Sender: No OFD packet to send [15:39:16]OFD Sender: No OFD packet to send [15:39:21]OFD Sender: No OFD packet to send [15:39:26]OFD Sender: No OFD packet to send [15:39:31]OFD Sender: No OFD packet to send [15:39:36]OFD Sender: No OFD packet to send [15:39:41]OFD Sender: No OFD packet to send [15:39:46]OFD Sender: No OFD packet to send [15:39:51]OFD Sender: No OFD packet to send [15:39:56]OFD Sender: No OFD packet to send [15:40:01]OFD Sender: No OFD packet to send [15:40:06]OFD Sender: No OFD packet to send [15:40:11]OFD Sender: No OFD packet to send [15:40:16]OFD Sender: No OFD packet to send [15:40:21]OFD Sender: No OFD packet to send [15:40:26]OFD Sender: No OFD packet to send [15:40:32]OFD Sender: No OFD packet to send [15:40:37]OFD Sender: No OFD packet to send [15:40:42]OFD Sender: No OFD packet to send [15:40:47]OFD Sender: No OFD packet to send [15:40:52]OFD Sender: No OFD packet to send [15:40:57]OFD Sender: No OFD packet to send [15:41:02]OFD Sender: No OFD packet to send [15:41:07]OFD Sender: No OFD packet to send [15:41:11]accept exits with 7 [15:41:11]New connection [15:41:11]New thread 3067161956 created [15:41:11]Thread 3067305316 joined [15:41:11]Waiting for new connection... [15:41:11] Sock 7.Parse request [15:41:11]Sock 7.Check first char [15:41:11]Sock 7.First char is OK [15:41:11]request: POST /json_proto HTTP/1.0 [15:41:11]Method: POST [15:41:11]URL: /json_proto [15:41:11]Method is POST - this is cgi request [15:41:11]url: /json_proto [15:41:11]query_string will be loaded in cgi processing [15:41:11]execute_cgi json_proto POST (null) [15:41:11]execute_cgi path=json_proto method=POST [15:41:11]POST find Content-Length [15:41:11]Host: 172.17.42.131:8080 [15:41:11]Content-Length: 688 [15:41:11]Content-Type: application/json [15:41:11] [15:41:11]POST finish read [15:41:11]Found Content-Length = 688 [15:41:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:41:11]execute_script... [15:41: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)210415", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [15:41:11]POST & json_proto [15:41:11]process_json_proto [15:41:11]json parsed OK: [15:41:11]protocol is kg_v1.0 [15:41:11]action value=close_receipt [15:41:11]process_action close_receipt [15:41:11]cmd_close_receipt [15:41:11]MH_GetDate [15:41:11]Write to MH i2c: F0 00 00 82 15 86 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 09 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: F0 09 00 82 15 00 98 C7 17 67 A0 18 CA 66 54 [15:41:11]GetLastDocTimeStamp 1729611409 [15:41:11]current date 1729611672 [15:41:11]FM_GetShiftState [15:41:11]SAM_PROTO_GetShiftState [15:41:11]wFMCommunicate request_size=4 [15:41:11]MH_SAM_APDU [15:41:11]CAPDU: 80 13 01 00 [15:41:11]Write to MH i2c: E2 08 00 83 15 80 13 01 00 00 00 00 00 15 [15:41:11]Write i2c OK [15:41:11]MH_I2C_Read... [15:41:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:11]Read from MH i2c: E2 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 [15:41:11]MH_I2C_Read... [15:41:11]Read from MH i2c: E2 0E 00 83 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0A [15:41:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:41:11]wFMCommunicate OK [15:41:11]SAM_PROTO_GetShiftState done [15:41:11]FM_GetShiftState done [15:41:11]opened in 1729556094 [15:41:11]opened+sec_in_day 1729642494 [15:41:11]quantity*price = 150076 [15:41:11]sum+1 = 150078 [15:41:11]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 385 22.10.2024 15:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188356 ФПД: 24499491322144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188356&fm=24499491322144&tin=02508201610067®Number=0000000000100030&sum=150000 [15:41:12]StoreToDocumentArchive [15:41:12]shift 461 fd 188356 [15:41:12]save to /storage/0461/doc_00188356 [15:41:12]save last doc name /storage/0461/doc_00188356 to /storage/kkm_last_doc_name [15:41:12]save OK [15:41:12]Clear old archive folders... [15:41:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:41:12]tlvbuf is 01497E60 [15:41:12]SAM_PROTO_ClearQueue [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 09 00 00 [15:41:12]Write to MH i2c: E2 08 00 90 15 80 09 00 00 00 00 00 00 17 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 90 15 00 90 00 19 [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]SAM_PROTO_ClearQueue done [15:41:12]KKMCreateOFDPacket [15:41:12]OFDProtocolAddRootSTLVToBuf [15:41:12]FM_MakeSignedData [15:41:12]FM_MakeSignedData [15:41:12]SAM_PROTO_SignData [15:41:12]wFMCommunicate request_size=4 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 01 02 [15:41:12]Write to MH i2c: E2 08 00 91 15 80 0D 01 02 00 00 00 00 1F [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:41:12]Read from MH i2c: E2 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 [15:41:12]MH_I2C_Read... [15:41:12]Read from MH i2c: E2 03 00 91 15 00 90 00 1A [15:41:12]RAPDU: 90 00 [15:41:12]wFMCommunicate OK [15:41:12]wFMCommunicate request_size=255 [15:41:12]MH_SAM_APDU [15:41:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 81 01 00 00 F4 03 04 00 98 C7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DF 02 [15:41:12]Write to MH i2c: E2 02 01 92 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 81 01 00 00 F4 03 04 00 98 C7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DF 02 00 00 A0 [15:41:12]Write i2c OK [15:41:12]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 03 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 03 00 92 15 00 90 00 1B [15:41:13]RAPDU: 90 00 [15:41:13]wFMCommunicate OK [15:41:13]wFMCommunicate request_size=16 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 16 48 3B 7A 39 20 [15:41:13]Write to MH i2c: E2 13 00 93 15 80 0D 02 02 0B 00 00 35 04 06 00 16 48 3B 7A 39 20 00 00 E3 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 03 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 03 00 93 15 00 90 00 1C [15:41:13]RAPDU: 90 00 [15:41:13]wFMCommunicate OK [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 0D 03 02 [15:41:13]Write to MH i2c: E2 08 00 94 15 80 0D 03 02 00 00 00 00 24 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0B 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 0B 00 94 15 00 D9 60 3D DE 74 C0 14 E6 90 00 A7 [15:41:13]RAPDU: D9 60 3D DE 74 C0 14 E6 90 00 [15:41:13]wFMCommunicate OK [15:41:13]SAM_PROTO_SignData done [15:41:13]FM_MakeSignedData done [15:41:13]CreateOFDProtocolMessage [15:41:13]wFMCommunicate request_size=4 [15:41:13]MH_SAM_APDU [15:41:13]CAPDU: 80 11 00 00 [15:41:13]Write to MH i2c: E2 08 00 95 15 80 11 00 00 00 00 00 00 24 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:13]Read from MH i2c: E2 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 17 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: E2 17 00 95 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [15:41:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:41:13]wFMCommunicate OK [15:41:13]CreateOFDProtocolMessage done [15:41:13]OFDSenderStorePacket 188356 [15:41:13]StoreOFDPacket docnum=188356 [15:41:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F5 55 0D 01 69 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 81 01 00 00 F4 03 04 00 98 C7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DF 02 00 35 04 06 00 16 48 3B 7A 39 20 D9 60 3D DE 74 C0 14 E6 [15:41:13]CheckFolder [15:41:13]dirname=/storage/ofd_packets [15:41:13]CheckFolder done [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00188356 [15:41:13]NVStorageSaveData ofd_packets/00188356 [15:41:13]File name is /storage/ofd_packets/00188356 [15:41:13]Write 307 bytes [15:41:13]NVStorageSaveData done [15:41:13]OFDSenderStorePacket done [15:41:13]KKMCreateOFDPacket done [15:41:13]NVStorageSaveData kkm_last_timestamp [15:41:13]File name is /storage/kkm_last_timestamp [15:41:13]Write 4 bytes [15:41:13]NVStorageSaveData done [15:41:13]ExternCall_PrintAddStr [15:41:13]wPrintStart [15:41:13]Write to MH i2c: 01 00 00 96 15 AB [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 96 15 00 00 00 00 00 FF 0F C0 [15:41:13]RasterBufferAndPrint [15:41:13]line Счет N : (1)210415 [15:41:13]line ИНН: 02508201610067 [15:41:13]line Контрольно-Кассовый Чек [15:41:13]line ПРОДАЖА [15:41:13]line ТРК (МРК, ГНК) : 11 [15:41:13]line Товар: 2710194210 [15:41:13]line D-ENERGY ДТ-К-5 [15:41:13]line 19.440 * 77.20 [15:41:13]line = 1500.77 [15:41:13]line НДС 12% НСП 1% [15:41:13]line > о реализуемом товаре [15:41:13]line ОКРУГЛЕНИЕ: -0.77 [15:41:13]line ИТОГО: 1500.00 [15:41:13]line Внесено: 1500.00 [15:41:13]line СДАЧА: 0.00 [15:41:13]line НСП 1% : 13.28 [15:41:13]line НДС 12% : 159.37 [15:41:13]line Наличными: 1500.00 [15:41:13]line Безнал.: 0.00 [15:41:13]line Место: АЗС № 86 "Партнер Нефть" [15:41:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:41:13]line СНО: Общий режим [15:41:13]line Чек 385 22.10.2024 15:41 [15:41:13]line Смена: 461 ФФД: 1.0 [15:41:13]line ЗНМ: 0300000155 [15:41:13]line РНМ: 0000000000100030 [15:41:13]line Версия ККМ: 001 [15:41:13]line ФМ: 0000000000965340 [15:41:13]line ФД: 188356 [15:41:13]line ФПД: 24499491322144 [15:41:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154112&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188356&fm=24499491322144&tin=02508201610067®Number=0000000000100030&sum=150000 [15:41:13]written 0, free lines is 4095 [15:41:13]OFD Sender: Processing packet 188356 [packets to send 1062, broken 1061] [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00188356 [15:41:13]OFD Sender: To server: pG, [15:41:13]CommunicateWithHost lk.salyk.kg:30040 [15:41:13]ConnectInit lk.salyk.kg [15:41:13]Connected sock=10 [15:41:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F5 55 0D 01 69 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 81 01 00 00 F4 03 04 00 98 C7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DF 02 00 35 04 06 00 16 48 3B 7A 39 20 D9 60 3D DE 74 C0 14 E6 [15:41:13]Write to MH i2c: 01 00 00 C1 15 D6 [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: 01 07 00 C1 15 00 00 00 00 00 64 0C 4D [15:41:13]RasterBufferAndPrint [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]line [15:41:13]written 0, free lines is 3177 [15:41:13]MH_Cut [15:41:13]Write to MH i2c: D1 01 00 C8 15 01 AF [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: D1 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: D1 01 00 [15:41:13]MH_I2C_Read... [15:41:13]Read from MH i2c: D1 01 00 C8 15 00 AE [15:41:13]Write to MH i2c: 01 00 00 C9 15 DE [15:41:13]Write i2c OK [15:41:13]MH_I2C_Read... [15:41:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 73 65 47 00 24 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C4 DF 02 00 F4 03 04 00 85 71 17 67 B6 04 01 00 00 86 41 5D C4 5D E8 C1 6F [15:41:13]CommunicateWithHost err = 0 [15:41:13]CheckOFDResponse [15:41:13]1017 (14) - 77093643461234 [15:41:13]1041 (16) - 0000000000965340 [15:41:13]1040 (4) - 188356 [15:41:13]1012 (4) - 22.10.2024 09:33 [15:41:13]1206 (1) - 0 [15:41:13]OFD Sender: Remove packet 188356 [15:41:13]ProducePacketName [15:41:13]name=ofd_packets/00188356 [15:41:13]NVStorageDeleteData [15:41:14]OFD Sender: No OFD packet to send [15:41:14]*** Cut start [15:41:14]*** Partial cut [15:41:14]*** CUTSNS_PIN = 1 [15:41:14]*** CUTSNS_PIN = 0 [15:41:15]*** Brake cut motor [15:41:15]Read from MH i2c: 01 [15:41:15]MH_I2C_Read... [15:41:15]*** Stop cut motor [15:41:15]*** Cut end [15:41:15]Read from MH i2c: 01 07 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: 01 07 00 C9 15 00 00 00 00 00 FF 0F F3 [15:41:15]process_action close_receipt done [15:41:15]requested_data is exist [15:41:15]produce_requested_data [15:41:15]requested_item fm.sn is exist - process it [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 11 00 00 [15:41:15]Write to MH i2c: E2 08 00 CA 15 80 11 00 00 00 00 00 00 59 [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 17 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 17 00 CA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [15:41:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:41:15]wFMCommunicate OK [15:41:15]requested_item fd.num is exist - process it [15:41:15]SAM_PROTO_GetFieldsCounters [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 13 00 00 [15:41:15]Write to MH i2c: E2 08 00 CB 15 80 13 00 00 00 00 00 00 5C [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 62 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 62 00 CB 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 5C [15:41:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 81 01 00 00 5E 04 04 00 81 01 00 00 57 04 04 00 82 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:41:15]wFMCommunicate OK [15:41:15]SAM_PROTO_GetFieldsCounters done [15:41:15]requested_item shift.num is exist - process it [15:41:15]requested_item shift.opened is exist - process it [15:41:15]req_shift_opened [15:41:15]FM_GetShiftState [15:41:15]SAM_PROTO_GetShiftState [15:41:15]wFMCommunicate request_size=4 [15:41:15]MH_SAM_APDU [15:41:15]CAPDU: 80 13 01 00 [15:41:15]Write to MH i2c: E2 08 00 CC 15 80 13 01 00 00 00 00 00 5E [15:41:15]Write i2c OK [15:41:15]MH_I2C_Read... [15:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:41:15]Read from MH i2c: E2 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 0E 00 [15:41:15]MH_I2C_Read... [15:41:15]Read from MH i2c: E2 0E 00 CC 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 53 [15:41:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:41:15]wFMCommunicate OK [15:41:15]SAM_PROTO_GetShiftState done [15:41:15]FM_GetShiftState done [15:41:15]req_shift_opened done [15:41:15]requested_item shift.open_date is exist - process it [15:41:15]req_shift_open_date [15:41:15]req_shift_open_date done [15:41:15]produce_requested_data done [15:41:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188356,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:41:15]process_action_free close_receipt [15:41:15]json_value_free [15:41:15]json_value_free done [15:41:15]process_json_proto returns [15:41:15]Send response to host [15:41:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188356,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:41:15]free response buf [15:41:15]execute_script done [15:41:15]execute_script returns [15:41:15]free content buf [15:41:15]Sock 7.Close socket [15:41:15]Sock 7.Thread stoped [15:41:19]OFD Sender: No OFD packet to send [15:41:24]OFD Sender: No OFD packet to send [15:41:29]OFD Sender: No OFD packet to send [15:41:34]OFD Sender: No OFD packet to send [15:41:39]OFD Sender: No OFD packet to send [15:41:44]OFD Sender: No OFD packet to send [15:41:49]OFD Sender: No OFD packet to send [15:41:54]OFD Sender: No OFD packet to send [15:41:59]OFD Sender: No OFD packet to send [15:42:04]OFD Sender: No OFD packet to send [15:42:09]OFD Sender: No OFD packet to send [15:42:14]OFD Sender: No OFD packet to send [15:42:19]OFD Sender: No OFD packet to send [15:42:24]OFD Sender: No OFD packet to send [15:42:29]OFD Sender: No OFD packet to send [15:42:34]OFD Sender: No OFD packet to send [15:42:39]OFD Sender: No OFD packet to send [15:42:44]OFD Sender: No OFD packet to send [15:42:49]OFD Sender: No OFD packet to send [15:42:54]OFD Sender: No OFD packet to send [15:42:59]OFD Sender: No OFD packet to send [15:43:04]OFD Sender: No OFD packet to send [15:43:09]OFD Sender: No OFD packet to send [15:43:15]OFD Sender: No OFD packet to send [15:43:20]OFD Sender: No OFD packet to send [15:43:25]OFD Sender: No OFD packet to send [15:43:30]OFD Sender: No OFD packet to send [15:43:35]OFD Sender: No OFD packet to send [15:43:40]OFD Sender: No OFD packet to send [15:43:43]accept exits with 9 [15:43:43]New connection [15:43:43]New thread 3067305316 created [15:43:43]Thread 3067161956 joined [15:43:43]Waiting for new connection... [15:43:43] Sock 9.Parse request [15:43:43]Sock 9.Check first char [15:43:43]Sock 9.First char is OK [15:43:43]request: POST /json_proto HTTP/1.0 [15:43:43]Method: POST [15:43:43]URL: /json_proto [15:43:43]Method is POST - this is cgi request [15:43:43]url: /json_proto [15:43:43]query_string will be loaded in cgi processing [15:43:43]execute_cgi json_proto POST (null) [15:43:43]execute_cgi path=json_proto method=POST [15:43:43]POST find Content-Length [15:43:43]Host: 172.17.42.131:8080 [15:43:43]Content-Length: 772 [15:43:43]Content-Type: application/json [15:43:43] [15:43:43]POST finish read [15:43:43]Found Content-Length = 772 [15:43:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.190, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:43]execute_script... [15:43:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210416", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 5.190, "sum" : 400.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: Mbank", "payments": [ { "type": 1, "sum" : 400.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:43:43]POST & json_proto [15:43:43]process_json_proto [15:43:43]json parsed OK: [15:43:43]protocol is kg_v1.0 [15:43:43]action value=close_receipt [15:43:43]process_action close_receipt [15:43:43]cmd_close_receipt [15:43:43]MH_GetDate [15:43:43]Write to MH i2c: F0 00 00 CD 15 D1 [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: F0 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: F0 09 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: F0 09 00 CD 15 00 30 C8 17 67 A0 18 CA 66 38 [15:43:43]GetLastDocTimeStamp 1729611672 [15:43:43]current date 1729611824 [15:43:43]FM_GetShiftState [15:43:43]SAM_PROTO_GetShiftState [15:43:43]wFMCommunicate request_size=4 [15:43:43]MH_SAM_APDU [15:43:43]CAPDU: 80 13 01 00 [15:43:43]Write to MH i2c: E2 08 00 CE 15 80 13 01 00 00 00 00 00 60 [15:43:43]Write i2c OK [15:43:43]MH_I2C_Read... [15:43:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:43]Read from MH i2c: E2 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 0E 00 [15:43:43]MH_I2C_Read... [15:43:43]Read from MH i2c: E2 0E 00 CE 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 55 [15:43:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:43:43]wFMCommunicate OK [15:43:43]SAM_PROTO_GetShiftState done [15:43:43]FM_GetShiftState done [15:43:43]opened in 1729556094 [15:43:43]opened+sec_in_day 1729642494 [15:43:43]quantity*price = 40066 [15:43:43]sum+1 = 40068 [15:43:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.67 НСП 1% : 3.55 НДС 12% : 42.55 Наличными: 0.00 Безнал.: 400.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 386 22.10.2024 15:43 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188357 ФПД: 264982381149707 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154344&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188357&fm=264982381149707&tin=02508201610067®Number=0000000000100030&sum=40067 [15:43:44]StoreToDocumentArchive [15:43:44]shift 461 fd 188357 [15:43:44]save to /storage/0461/doc_00188357 [15:43:44]save last doc name /storage/0461/doc_00188357 to /storage/kkm_last_doc_name [15:43:44]save OK [15:43:44]Clear old archive folders... [15:43:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:43:44]tlvbuf is 014529F0 [15:43:44]SAM_PROTO_ClearQueue [15:43:44]wFMCommunicate request_size=4 [15:43:44]MH_SAM_APDU [15:43:44]CAPDU: 80 09 00 00 [15:43:44]Write to MH i2c: E2 08 00 DB 15 80 09 00 00 00 00 00 00 62 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:43:44]Read from MH i2c: E2 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: E2 03 00 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: E2 03 00 DB 15 00 90 00 64 [15:43:44]RAPDU: 90 00 [15:43:44]wFMCommunicate OK [15:43:44]SAM_PROTO_ClearQueue done [15:43:44]KKMCreateOFDPacket [15:43:44]OFDProtocolAddRootSTLVToBuf [15:43:44]FM_MakeSignedData [15:43:44]FM_MakeSignedData [15:43:44]SAM_PROTO_SignData [15:43:44]wFMCommunicate request_size=4 [15:43:44]MH_SAM_APDU [15:43:44]CAPDU: 80 0D 01 02 [15:43:44]Write to MH i2c: E2 08 00 DC 15 80 0D 01 02 00 00 00 00 6A [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:43:44]Read from MH i2c: E2 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: E2 03 00 [15:43:44]MH_I2C_Read... [15:43:44]Read from MH i2c: E2 03 00 DC 15 00 90 00 65 [15:43:44]RAPDU: 90 00 [15:43:44]wFMCommunicate OK [15:43:44]wFMCommunicate request_size=255 [15:43:44]MH_SAM_APDU [15:43:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 30 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DF 02 [15:43:44]Write to MH i2c: E2 02 01 DD 15 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 30 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DF 02 00 00 62 [15:43:44]Write i2c OK [15:43:44]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 DD 15 00 90 00 66 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=16 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F1 00 04 B3 3E 0B [15:43:45]Write to MH i2c: E2 13 00 DE 15 80 0D 02 02 0B 00 00 35 04 06 00 F1 00 04 B3 3E 0B 00 00 B3 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 03 00 DE 15 00 90 00 67 [15:43:45]RAPDU: 90 00 [15:43:45]wFMCommunicate OK [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 0D 03 02 [15:43:45]Write to MH i2c: E2 08 00 DF 15 80 0D 03 02 00 00 00 00 6F [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0B 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 0B 00 DF 15 00 98 11 0A D8 95 E4 70 A0 90 00 84 [15:43:45]RAPDU: 98 11 0A D8 95 E4 70 A0 90 00 [15:43:45]wFMCommunicate OK [15:43:45]SAM_PROTO_SignData done [15:43:45]FM_MakeSignedData done [15:43:45]CreateOFDProtocolMessage [15:43:45]wFMCommunicate request_size=4 [15:43:45]MH_SAM_APDU [15:43:45]CAPDU: 80 11 00 00 [15:43:45]Write to MH i2c: E2 08 00 E0 15 80 11 00 00 00 00 00 00 6F [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:45]OFD Sender: No OFD packet to send [15:43:45]Read from MH i2c: E2 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: E2 17 00 E0 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [15:43:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:43:45]wFMCommunicate OK [15:43:45]CreateOFDProtocolMessage done [15:43:45]OFDSenderStorePacket 188357 [15:43:45]StoreOFDPacket docnum=188357 [15:43:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8A 9D 0D 01 55 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 30 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DF 02 00 35 04 06 00 F1 00 04 B3 3E 0B 98 11 0A D8 95 E4 70 A0 [15:43:45]CheckFolder [15:43:45]dirname=/storage/ofd_packets [15:43:45]CheckFolder done [15:43:45]ProducePacketName [15:43:45]name=ofd_packets/00188357 [15:43:45]NVStorageSaveData ofd_packets/00188357 [15:43:45]File name is /storage/ofd_packets/00188357 [15:43:45]Write 307 bytes [15:43:45]NVStorageSaveData done [15:43:45]OFDSenderStorePacket done [15:43:45]KKMCreateOFDPacket done [15:43:45]NVStorageSaveData kkm_last_timestamp [15:43:45]File name is /storage/kkm_last_timestamp [15:43:45]Write 4 bytes [15:43:45]NVStorageSaveData done [15:43:45]ExternCall_PrintAddStr [15:43:45]wPrintStart [15:43:45]Write to MH i2c: 01 00 00 E1 15 F6 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 E1 15 00 00 00 00 00 FF 0F 0B [15:43:45]RasterBufferAndPrint [15:43:45]line Счет N : (1)210416 [15:43:45]line ИНН: 02508201610067 [15:43:45]line Контрольно-Кассовый Чек [15:43:45]line ПРОДАЖА [15:43:45]line ТРК (МРК, ГНК) : 31 [15:43:45]line Товар: 2710194210 [15:43:45]line D-ENERGY ДТ-К-5 [15:43:45]line 5.190 * 77.20 [15:43:45]line = 400.67 [15:43:45]line НДС 12% НСП 1% [15:43:45]line > о реализуемом товаре [15:43:45]line ИТОГО: 400.67 [15:43:45]line НСП 1% : 3.55 [15:43:45]line НДС 12% : 42.55 [15:43:45]line Наличными: 0.00 [15:43:45]line Безнал.: 400.67 [15:43:45]line Место: АЗС № 86 "Партнер Нефть" [15:43:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:43:45]line СНО: Общий режим [15:43:45]line Чек 386 22.10.2024 15:43 [15:43:45]line Смена: 461 ФФД: 1.0 [15:43:45]line ЗНМ: 0300000155 [15:43:45]line РНМ: 0000000000100030 [15:43:45]line Версия ККМ: 001 [15:43:45]line Платежная система: Mbank [15:43:45]line ФМ: 0000000000965340 [15:43:45]line ФД: 188357 [15:43:45]line ФПД: 264982381149707 [15:43:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154344&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188357&fm=264982381149707&tin=02508201610067®Number=0000000000100030&sum=40067 [15:43:45]written 0, free lines is 4095 [15:43:45]OFD Sender: Processing packet 188357 [packets to send 1062, broken 1061] [15:43:45]ProducePacketName [15:43:45]name=ofd_packets/00188357 [15:43:45]OFD Sender: To server: pG, [15:43:45]CommunicateWithHost lk.salyk.kg:30040 [15:43:45]ConnectInit lk.salyk.kg [15:43:45]Connected sock=10 [15:43:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8A 9D 0D 01 55 2E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 46 14 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 83 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 83 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 63 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9F 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 83 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 01 00 00 F4 03 04 00 30 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DF 02 00 35 04 06 00 F1 00 04 B3 3E 0B 98 11 0A D8 95 E4 70 A0 [15:43:45]Write to MH i2c: 01 00 00 0A 16 20 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: 01 07 00 0A 16 00 00 00 00 00 96 0C C9 [15:43:45]RasterBufferAndPrint [15:43:45]line [15:43:45]line [15:43:45]line [15:43:45]line [15:43:45]line [15:43:45]written 0, free lines is 3227 [15:43:45]MH_Cut [15:43:45]Write to MH i2c: D1 01 00 11 16 01 F9 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: D1 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: D1 01 00 [15:43:45]MH_I2C_Read... [15:43:45]Read from MH i2c: D1 01 00 11 16 00 F8 [15:43:45]Write to MH i2c: 01 00 00 12 16 28 [15:43:45]Write i2c OK [15:43:45]MH_I2C_Read... [15:43:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BD C8 47 00 6F 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C5 DF 02 00 F4 03 04 00 1D 72 17 67 B6 04 01 00 00 8A A2 03 64 A7 1A F8 79 [15:43:45]CommunicateWithHost err = 0 [15:43:45]CheckOFDResponse [15:43:45]1017 (14) - 77093643461234 [15:43:45]1041 (16) - 0000000000965340 [15:43:45]1040 (4) - 188357 [15:43:45]1012 (4) - 22.10.2024 09:36 [15:43:45]1206 (1) - 0 [15:43:45]OFD Sender: Remove packet 188357 [15:43:45]ProducePacketName [15:43:45]name=ofd_packets/00188357 [15:43:45]NVStorageDeleteData [15:43:46]OFD Sender: No OFD packet to send [15:43:46]*** Cut start [15:43:46]*** Partial cut [15:43:46]*** CUTSNS_PIN = 1 [15:43:46]*** CUTSNS_PIN = 0 [15:43:47]*** Brake cut motor [15:43:47]Read from MH i2c: 01 [15:43:47]MH_I2C_Read... [15:43:47]*** Stop cut motor [15:43:47]*** Cut end [15:43:47]Read from MH i2c: 01 07 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: 01 07 00 12 16 00 00 00 00 00 FF 0F 3D [15:43:47]process_action close_receipt done [15:43:47]requested_data is exist [15:43:47]produce_requested_data [15:43:47]requested_item fm.sn is exist - process it [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 11 00 00 [15:43:47]Write to MH i2c: E2 08 00 13 16 80 11 00 00 00 00 00 00 A3 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 17 00 13 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [15:43:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:43:47]wFMCommunicate OK [15:43:47]requested_item fd.num is exist - process it [15:43:47]SAM_PROTO_GetFieldsCounters [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 13 00 00 [15:43:47]Write to MH i2c: E2 08 00 14 16 80 13 00 00 00 00 00 00 A6 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 62 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 62 00 14 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 AA [15:43:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 82 01 00 00 5E 04 04 00 82 01 00 00 57 04 04 00 83 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_GetFieldsCounters done [15:43:47]requested_item shift.num is exist - process it [15:43:47]requested_item shift.opened is exist - process it [15:43:47]req_shift_opened [15:43:47]FM_GetShiftState [15:43:47]SAM_PROTO_GetShiftState [15:43:47]wFMCommunicate request_size=4 [15:43:47]MH_SAM_APDU [15:43:47]CAPDU: 80 13 01 00 [15:43:47]Write to MH i2c: E2 08 00 15 16 80 13 01 00 00 00 00 00 A8 [15:43:47]Write i2c OK [15:43:47]MH_I2C_Read... [15:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:43:47]Read from MH i2c: E2 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0E 00 [15:43:47]MH_I2C_Read... [15:43:47]Read from MH i2c: E2 0E 00 15 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [15:43:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:43:47]wFMCommunicate OK [15:43:47]SAM_PROTO_GetShiftState done [15:43:47]FM_GetShiftState done [15:43:47]req_shift_opened done [15:43:47]requested_item shift.open_date is exist - process it [15:43:47]req_shift_open_date [15:43:47]req_shift_open_date done [15:43:47]produce_requested_data done [15:43:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188357,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:43:47]process_action_free close_receipt [15:43:47]json_value_free [15:43:47]json_value_free done [15:43:47]process_json_proto returns [15:43:47]Send response to host [15:43:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188357,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:43:47]free response buf [15:43:47]execute_script done [15:43:47]execute_script returns [15:43:47]free content buf [15:43:47]Sock 9.Close socket [15:43:47]Sock 9.Thread stoped [15:43:51]OFD Sender: No OFD packet to send [15:43:56]OFD Sender: No OFD packet to send [15:44:01]OFD Sender: No OFD packet to send [15:44:06]OFD Sender: No OFD packet to send [15:44:11]OFD Sender: No OFD packet to send [15:44:16]OFD Sender: No OFD packet to send [15:44:21]OFD Sender: No OFD packet to send [15:44:26]OFD Sender: No OFD packet to send [15:44:30]accept exits with 7 [15:44:30]New connection [15:44:30]New thread 3067161956 created [15:44:30]Thread 3067305316 joined [15:44:30]Waiting for new connection... [15:44:30] Sock 7.Parse request [15:44:30]Sock 7.Check first char [15:44:30]Sock 7.First char is OK [15:44:30]request: POST /json_proto HTTP/1.0 [15:44:30]Method: POST [15:44:30]URL: /json_proto [15:44:30]Method is POST - this is cgi request [15:44:30]url: /json_proto [15:44:30]query_string will be loaded in cgi processing [15:44:30]execute_cgi json_proto POST (null) [15:44:30]execute_cgi path=json_proto method=POST [15:44:30]POST find Content-Length [15:44:30]Host: 172.17.42.131:8080 [15:44:30]Content-Length: 810 [15:44:30]Content-Type: application/json [15:44:30] [15:44:30]POST finish read [15:44:30]Found Content-Length = 810 [15:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 116.590, "sum" : 9000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:30]execute_script... [15:44: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)210413", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 116.590, "sum" : 9000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 9000.75 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:44:30]POST & json_proto [15:44:30]process_json_proto [15:44:30]json parsed OK: [15:44:30]protocol is kg_v1.0 [15:44:30]action value=close_receipt [15:44:30]process_action close_receipt [15:44:30]cmd_close_receipt [15:44:30]MH_GetDate [15:44:30]Write to MH i2c: F0 00 00 16 16 1B [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: F0 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: F0 09 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: F0 09 00 16 16 00 5F C8 17 67 A0 18 CA 66 B1 [15:44:30]GetLastDocTimeStamp 1729611824 [15:44:30]current date 1729611871 [15:44:30]FM_GetShiftState [15:44:30]SAM_PROTO_GetShiftState [15:44:30]wFMCommunicate request_size=4 [15:44:30]MH_SAM_APDU [15:44:30]CAPDU: 80 13 01 00 [15:44:30]Write to MH i2c: E2 08 00 17 16 80 13 01 00 00 00 00 00 AA [15:44:30]Write i2c OK [15:44:30]MH_I2C_Read... [15:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:30]Read from MH i2c: E2 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 0E 00 [15:44:30]MH_I2C_Read... [15:44:30]Read from MH i2c: E2 0E 00 17 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9F [15:44:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:44:30]wFMCommunicate OK [15:44:30]SAM_PROTO_GetShiftState done [15:44:30]FM_GetShiftState done [15:44:30]opened in 1729556094 [15:44:30]opened+sec_in_day 1729642494 [15:44:30]quantity*price = 900074 [15:44:30]sum+1 = 900076 [15:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9000.75 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 0.00 Безнал.: 9000.75 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 387 22.10.2024 15:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188358 ФПД: 224611429757270 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154431&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188358&fm=224611429757270&tin=02508201610067®Number=0000000000100030&sum=900075 [15:44:31]StoreToDocumentArchive [15:44:31]shift 461 fd 188358 [15:44:31]save to /storage/0461/doc_00188358 [15:44:31]save last doc name /storage/0461/doc_00188358 to /storage/kkm_last_doc_name [15:44:31]save OK [15:44:31]Clear old archive folders... [15:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:44:31]tlvbuf is B6EFE600 [15:44:31]SAM_PROTO_ClearQueue [15:44:31]wFMCommunicate request_size=4 [15:44:31]MH_SAM_APDU [15:44:31]CAPDU: 80 09 00 00 [15:44:31]Write to MH i2c: E2 08 00 24 16 80 09 00 00 00 00 00 00 AC [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 24 16 00 90 00 AE [15:44:31]RAPDU: 90 00 [15:44:31]wFMCommunicate OK [15:44:31]SAM_PROTO_ClearQueue done [15:44:31]KKMCreateOFDPacket [15:44:31]OFDProtocolAddRootSTLVToBuf [15:44:31]FM_MakeSignedData [15:44:31]FM_MakeSignedData [15:44:31]SAM_PROTO_SignData [15:44:31]wFMCommunicate request_size=4 [15:44:31]MH_SAM_APDU [15:44:31]CAPDU: 80 0D 01 02 [15:44:31]Write to MH i2c: E2 08 00 25 16 80 0D 01 02 00 00 00 00 B4 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 25 16 00 90 00 AF [15:44:31]RAPDU: 90 00 [15:44:31]wFMCommunicate OK [15:44:31]wFMCommunicate request_size=255 [15:44:31]MH_SAM_APDU [15:44:31]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5F C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DF 02 [15:44:31]Write to MH i2c: E2 02 01 26 16 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5F C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DF 02 00 00 73 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 26 16 00 90 00 B0 [15:44:31]RAPDU: 90 00 [15:44:31]wFMCommunicate OK [15:44:31]wFMCommunicate request_size=16 [15:44:31]MH_SAM_APDU [15:44:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 CC 48 6C 7B B1 56 [15:44:31]Write to MH i2c: E2 13 00 27 16 80 0D 02 02 0B 00 00 35 04 06 00 CC 48 6C 7B B1 56 00 00 0E [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 03 00 27 16 00 90 00 B1 [15:44:31]RAPDU: 90 00 [15:44:31]wFMCommunicate OK [15:44:31]wFMCommunicate request_size=4 [15:44:31]MH_SAM_APDU [15:44:31]CAPDU: 80 0D 03 02 [15:44:31]Write to MH i2c: E2 08 00 28 16 80 0D 03 02 00 00 00 00 B9 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:44:31]OFD Sender: No OFD packet to send [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 0B 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 0B 00 28 16 00 8F 4D 19 C1 5B 15 5A 9E 90 00 D8 [15:44:31]RAPDU: 8F 4D 19 C1 5B 15 5A 9E 90 00 [15:44:31]wFMCommunicate OK [15:44:31]SAM_PROTO_SignData done [15:44:31]FM_MakeSignedData done [15:44:31]CreateOFDProtocolMessage [15:44:31]wFMCommunicate request_size=4 [15:44:31]MH_SAM_APDU [15:44:31]CAPDU: 80 11 00 00 [15:44:31]Write to MH i2c: E2 08 00 29 16 80 11 00 00 00 00 00 00 B9 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:31]Read from MH i2c: E2 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 17 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: E2 17 00 29 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 07 [15:44:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:44:31]wFMCommunicate OK [15:44:31]CreateOFDProtocolMessage done [15:44:31]OFDSenderStorePacket 188358 [15:44:31]StoreOFDPacket docnum=188358 [15:44:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3B AD 0D 01 64 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5F C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DF 02 00 35 04 06 00 CC 48 6C 7B B1 56 8F 4D 19 C1 5B 15 5A 9E [15:44:31]CheckFolder [15:44:31]dirname=/storage/ofd_packets [15:44:31]CheckFolder done [15:44:31]ProducePacketName [15:44:31]name=ofd_packets/00188358 [15:44:31]NVStorageSaveData ofd_packets/00188358 [15:44:31]File name is /storage/ofd_packets/00188358 [15:44:31]Write 307 bytes [15:44:31]NVStorageSaveData done [15:44:31]OFDSenderStorePacket done [15:44:31]KKMCreateOFDPacket done [15:44:31]NVStorageSaveData kkm_last_timestamp [15:44:31]File name is /storage/kkm_last_timestamp [15:44:31]Write 4 bytes [15:44:31]NVStorageSaveData done [15:44:31]ExternCall_PrintAddStr [15:44:31]wPrintStart [15:44:31]Write to MH i2c: 01 00 00 2A 16 40 [15:44:31]Write i2c OK [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 07 00 [15:44:31]MH_I2C_Read... [15:44:31]Read from MH i2c: 01 07 00 2A 16 00 00 00 00 00 FF 0F 55 [15:44:31]RasterBufferAndPrint [15:44:31]line Счет N : (1)210413 [15:44:31]line ИНН: 02508201610067 [15:44:31]line Контрольно-Кассовый Чек [15:44:31]line ПРОДАЖА [15:44:31]line ТРК (МРК, ГНК) : 41 [15:44:31]line Товар: 2710194210 [15:44:31]line D-ENERGY ДТ-К-5 [15:44:31]line 116.590 * 77.20 [15:44:31]line = 9000.75 [15:44:31]line НДС 12% НСП 1% [15:44:31]line > о реализуемом товаре [15:44:31]line ИТОГО: 9000.75 [15:44:31]line НСП 1% : 79.65 [15:44:31]line НДС 12% : 955.83 [15:44:31]line Наличными: 0.00 [15:44:31]line Безнал.: 9000.75 [15:44:31]line Место: АЗС № 86 "Партнер Нефть" [15:44:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:44:31]line СНО: Общий режим [15:44:31]line Чек 387 22.10.2024 15:44 [15:44:31]line Смена: 461 ФФД: 1.0 [15:44:31]line ЗНМ: 0300000155 [15:44:31]line РНМ: 0000000000100030 [15:44:31]line Версия ККМ: 001 [15:44:31]line Платежная система: O! деньги [15:44:31]line ФМ: 0000000000965340 [15:44:31]line ФД: 188358 [15:44:31]line ФПД: 224611429757270 [15:44:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154431&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188358&fm=224611429757270&tin=02508201610067®Number=0000000000100030&sum=900075 [15:44:31]written 0, free lines is 4095 [15:44:31]OFD Sender: Processing packet 188358 [packets to send 1062, broken 1061] [15:44:31]ProducePacketName [15:44:31]name=ofd_packets/00188358 [15:44:31]OFD Sender: To server: pG, [15:44:31]CommunicateWithHost lk.salyk.kg:30040 [15:44:31]ConnectInit lk.salyk.kg [15:44:32]Connected sock=10 [15:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3B AD 0D 01 64 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E C7 01 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 EB BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EB BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EB BB 0D 00 00 00 1F 04 02 00 01 00 12 04 04 00 83 01 00 00 F4 03 04 00 5F C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DF 02 00 35 04 06 00 CC 48 6C 7B B1 56 8F 4D 19 C1 5B 15 5A 9E [15:44:32]Write to MH i2c: 01 00 00 54 16 6A [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: 01 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: 01 07 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: 01 07 00 54 16 00 00 00 00 00 82 0C FF [15:44:32]RasterBufferAndPrint [15:44:32]line [15:44:32]line [15:44:32]line [15:44:32]line [15:44:32]line [15:44:32]written 0, free lines is 3206 [15:44:32]MH_Cut [15:44:32]Write to MH i2c: D1 01 00 5B 16 01 43 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: D1 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: D1 01 00 [15:44:32]MH_I2C_Read... [15:44:32]Read from MH i2c: D1 01 00 5B 16 00 42 [15:44:32]Write to MH i2c: 01 00 00 5C 16 72 [15:44:32]Write i2c OK [15:44:32]MH_I2C_Read... [15:44:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E 05 47 00 44 DF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C6 DF 02 00 F4 03 04 00 4C 72 17 67 B6 04 01 00 00 27 7E AF 61 A1 94 8D 51 [15:44:32]CommunicateWithHost err = 0 [15:44:32]CheckOFDResponse [15:44:32]1017 (14) - 77093643461234 [15:44:32]1041 (16) - 0000000000965340 [15:44:32]1040 (4) - 188358 [15:44:32]1012 (4) - 22.10.2024 09:37 [15:44:32]1206 (1) - 0 [15:44:32]OFD Sender: Remove packet 188358 [15:44:32]ProducePacketName [15:44:32]name=ofd_packets/00188358 [15:44:32]NVStorageDeleteData [15:44:33]OFD Sender: No OFD packet to send [15:44:33]*** Cut start [15:44:33]*** Partial cut [15:44:33]*** CUTSNS_PIN = 1 [15:44:33]*** CUTSNS_PIN = 0 [15:44:33]*** Brake cut motor [15:44:34]Read from MH i2c: 01 [15:44:34]MH_I2C_Read... [15:44:34]*** Stop cut motor [15:44:34]*** Cut end [15:44:34]Read from MH i2c: 01 07 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: 01 07 00 5C 16 00 00 00 00 00 FF 0F 87 [15:44:34]process_action close_receipt done [15:44:34]requested_data is exist [15:44:34]produce_requested_data [15:44:34]requested_item fm.sn is exist - process it [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 11 00 00 [15:44:34]Write to MH i2c: E2 08 00 5D 16 80 11 00 00 00 00 00 00 ED [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 17 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 17 00 5D 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3B [15:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:44:34]wFMCommunicate OK [15:44:34]requested_item fd.num is exist - process it [15:44:34]SAM_PROTO_GetFieldsCounters [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 13 00 00 [15:44:34]Write to MH i2c: E2 08 00 5E 16 80 13 00 00 00 00 00 00 F0 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 62 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 62 00 5E 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [15:44:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 83 01 00 00 5E 04 04 00 83 01 00 00 57 04 04 00 84 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_GetFieldsCounters done [15:44:34]requested_item shift.num is exist - process it [15:44:34]requested_item shift.opened is exist - process it [15:44:34]req_shift_opened [15:44:34]FM_GetShiftState [15:44:34]SAM_PROTO_GetShiftState [15:44:34]wFMCommunicate request_size=4 [15:44:34]MH_SAM_APDU [15:44:34]CAPDU: 80 13 01 00 [15:44:34]Write to MH i2c: E2 08 00 5F 16 80 13 01 00 00 00 00 00 F2 [15:44:34]Write i2c OK [15:44:34]MH_I2C_Read... [15:44:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:44:34]Read from MH i2c: E2 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 0E 00 [15:44:34]MH_I2C_Read... [15:44:34]Read from MH i2c: E2 0E 00 5F 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E7 [15:44:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:44:34]wFMCommunicate OK [15:44:34]SAM_PROTO_GetShiftState done [15:44:34]FM_GetShiftState done [15:44:34]req_shift_opened done [15:44:34]requested_item shift.open_date is exist - process it [15:44:34]req_shift_open_date [15:44:34]req_shift_open_date done [15:44:34]produce_requested_data done [15:44:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188358,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:44:34]process_action_free close_receipt [15:44:34]json_value_free [15:44:34]json_value_free done [15:44:34]process_json_proto returns [15:44:34]Send response to host [15:44:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188358,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:44:34]free response buf [15:44:34]execute_script done [15:44:34]execute_script returns [15:44:34]free content buf [15:44:34]Sock 7.Close socket [15:44:34]Sock 7.Thread stoped [15:44:38]OFD Sender: No OFD packet to send [15:44:43]OFD Sender: No OFD packet to send [15:44:48]OFD Sender: No OFD packet to send [15:44:53]OFD Sender: No OFD packet to send [15:44:58]OFD Sender: No OFD packet to send [15:45:03]OFD Sender: No OFD packet to send [15:45:08]OFD Sender: No OFD packet to send [15:45:13]OFD Sender: No OFD packet to send [15:45:18]OFD Sender: No OFD packet to send [15:45:23]OFD Sender: No OFD packet to send [15:45:28]OFD Sender: No OFD packet to send [15:45:33]OFD Sender: No OFD packet to send [15:45:38]OFD Sender: No OFD packet to send [15:45:43]OFD Sender: No OFD packet to send [15:45:48]OFD Sender: No OFD packet to send [15:45:53]OFD Sender: No OFD packet to send [15:45:58]OFD Sender: No OFD packet to send [15:46:03]OFD Sender: No OFD packet to send [15:46:08]OFD Sender: No OFD packet to send [15:46:13]OFD Sender: No OFD packet to send [15:46:14]accept exits with 9 [15:46:14]New connection [15:46:14]New thread 3067305316 created [15:46:14]Thread 3067161956 joined [15:46:14]Waiting for new connection... [15:46:14] Sock 9.Parse request [15:46:14]Sock 9.Check first char [15:46:14]Sock 9.First char is OK [15:46:14]request: POST /json_proto HTTP/1.0 [15:46:14]Method: POST [15:46:14]URL: /json_proto [15:46:14]Method is POST - this is cgi request [15:46:14]url: /json_proto [15:46:14]query_string will be loaded in cgi processing [15:46:14]execute_cgi json_proto POST (null) [15:46:14]execute_cgi path=json_proto method=POST [15:46:14]POST find Content-Length [15:46:14]Host: 172.17.42.131:8080 [15:46:14]Content-Length: 677 [15:46:14]Content-Type: application/json [15:46:14] [15:46:14]POST finish read [15:46:14]Found Content-Length = 677 [15:46:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:14]execute_script... [15:46: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)210419", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:46:14]POST & json_proto [15:46:14]process_json_proto [15:46:14]json parsed OK: [15:46:14]protocol is kg_v1.0 [15:46:14]action value=close_receipt [15:46:14]process_action close_receipt [15:46:14]cmd_close_receipt [15:46:14]MH_GetDate [15:46:14]Write to MH i2c: F0 00 00 60 16 65 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: F0 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: F0 09 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: F0 09 00 60 16 00 C8 C8 17 67 A0 18 CA 66 64 [15:46:14]GetLastDocTimeStamp 1729611871 [15:46:14]current date 1729611976 [15:46:14]FM_GetShiftState [15:46:14]SAM_PROTO_GetShiftState [15:46:14]wFMCommunicate request_size=4 [15:46:14]MH_SAM_APDU [15:46:14]CAPDU: 80 13 01 00 [15:46:14]Write to MH i2c: E2 08 00 61 16 80 13 01 00 00 00 00 00 F4 [15:46:14]Write i2c OK [15:46:14]MH_I2C_Read... [15:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:14]Read from MH i2c: E2 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 0E 00 [15:46:14]MH_I2C_Read... [15:46:14]Read from MH i2c: E2 0E 00 61 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E9 [15:46:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:46:14]wFMCommunicate OK [15:46:14]SAM_PROTO_GetShiftState done [15:46:14]FM_GetShiftState done [15:46:14]opened in 1729556094 [15:46:14]opened+sec_in_day 1729642494 [15:46:14]quantity*price = 50041 [15:46:14]sum+1 = 50042 [15:46:14]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 388 22.10.2024 15:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188359 ФПД: 21011492887161 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188359&fm=21011492887161&tin=02508201610067®Number=0000000000100030&sum=50000 [15:46:15]StoreToDocumentArchive [15:46:15]shift 461 fd 188359 [15:46:15]save to /storage/0461/doc_00188359 [15:46:15]save last doc name /storage/0461/doc_00188359 to /storage/kkm_last_doc_name [15:46:15]save OK [15:46:15]Clear old archive folders... [15:46:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:15]tlvbuf is 01480740 [15:46:15]SAM_PROTO_ClearQueue [15:46:15]wFMCommunicate request_size=4 [15:46:15]MH_SAM_APDU [15:46:15]CAPDU: 80 09 00 00 [15:46:15]Write to MH i2c: E2 08 00 6E 16 80 09 00 00 00 00 00 00 F6 [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:15]Read from MH i2c: E2 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 6E 16 00 90 00 F8 [15:46:15]RAPDU: 90 00 [15:46:15]wFMCommunicate OK [15:46:15]SAM_PROTO_ClearQueue done [15:46:15]KKMCreateOFDPacket [15:46:15]OFDProtocolAddRootSTLVToBuf [15:46:15]FM_MakeSignedData [15:46:15]FM_MakeSignedData [15:46:15]SAM_PROTO_SignData [15:46:15]wFMCommunicate request_size=4 [15:46:15]MH_SAM_APDU [15:46:15]CAPDU: 80 0D 01 02 [15:46:15]Write to MH i2c: E2 08 00 6F 16 80 0D 01 02 00 00 00 00 FE [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:15]Read from MH i2c: E2 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 [15:46:15]MH_I2C_Read... [15:46:15]Read from MH i2c: E2 03 00 6F 16 00 90 00 F9 [15:46:15]RAPDU: 90 00 [15:46:15]wFMCommunicate OK [15:46:15]wFMCommunicate request_size=255 [15:46:15]MH_SAM_APDU [15:46: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 C8 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DF 02 00 35 04 06 00 13 [15:46:15]Write to MH i2c: E2 02 01 70 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 C8 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DF 02 00 35 04 06 00 13 00 00 8D [15:46:15]Write i2c OK [15:46:15]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 03 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 03 00 70 16 00 90 00 FA [15:46:16]RAPDU: 90 00 [15:46:16]wFMCommunicate OK [15:46:16]wFMCommunicate request_size=10 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 0D 02 02 05 1C 1E 91 DA 79 [15:46:16]Write to MH i2c: E2 0D 00 71 16 80 0D 02 02 05 00 1C 1E 91 DA 79 00 00 29 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 03 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 03 00 71 16 00 90 00 FB [15:46:16]RAPDU: 90 00 [15:46:16]wFMCommunicate OK [15:46:16]wFMCommunicate request_size=4 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 0D 03 02 [15:46:16]Write to MH i2c: E2 08 00 72 16 80 0D 03 02 00 00 00 00 03 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 0B 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 0B 00 72 16 00 07 B5 45 D8 DE 34 F6 76 90 00 5B [15:46:16]RAPDU: 07 B5 45 D8 DE 34 F6 76 90 00 [15:46:16]wFMCommunicate OK [15:46:16]SAM_PROTO_SignData done [15:46:16]FM_MakeSignedData done [15:46:16]CreateOFDProtocolMessage [15:46:16]wFMCommunicate request_size=4 [15:46:16]MH_SAM_APDU [15:46:16]CAPDU: 80 11 00 00 [15:46:16]Write to MH i2c: E2 08 00 73 16 80 11 00 00 00 00 00 00 03 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:16]Read from MH i2c: E2 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 17 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: E2 17 00 73 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [15:46:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:16]wFMCommunicate OK [15:46:16]CreateOFDProtocolMessage done [15:46:16]OFDSenderStorePacket 188359 [15:46:16]StoreOFDPacket docnum=188359 [15:46:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C 1F 07 01 74 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 C8 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DF 02 00 35 04 06 00 13 1C 1E 91 DA 79 07 B5 45 D8 DE 34 F6 76 [15:46:16]CheckFolder [15:46:16]dirname=/storage/ofd_packets [15:46:16]CheckFolder done [15:46:16]ProducePacketName [15:46:16]name=ofd_packets/00188359 [15:46:16]NVStorageSaveData ofd_packets/00188359 [15:46:16]File name is /storage/ofd_packets/00188359 [15:46:16]Write 301 bytes [15:46:16]NVStorageSaveData done [15:46:16]OFDSenderStorePacket done [15:46:16]KKMCreateOFDPacket done [15:46:16]NVStorageSaveData kkm_last_timestamp [15:46:16]File name is /storage/kkm_last_timestamp [15:46:16]Write 4 bytes [15:46:16]NVStorageSaveData done [15:46:16]ExternCall_PrintAddStr [15:46:16]wPrintStart [15:46:16]Write to MH i2c: 01 00 00 74 16 8A [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 74 16 00 00 00 00 00 FF 0F 9F [15:46:16]RasterBufferAndPrint [15:46:16]line Счет N : (1)210419 [15:46:16]line ИНН: 02508201610067 [15:46:16]line Контрольно-Кассовый Чек [15:46:16]line ПРОДАЖА [15:46:16]line ТРК (МРК, ГНК) : 12 [15:46:16]line Товар: 2710124130 [15:46:16]line Аи-92-К-3 [15:46:16]line 7.480 * 66.90 [15:46:16]line = 500.41 [15:46:16]line НДС 12% НСП 1% [15:46:16]line > о реализуемом товаре [15:46:16]line ОКРУГЛЕНИЕ: -0.41 [15:46:16]line ИТОГО: 500.00 [15:46:16]line Внесено: 500.00 [15:46:16]line СДАЧА: 0.00 [15:46:16]line НСП 1% : 4.43 [15:46:16]line НДС 12% : 53.14 [15:46:16]line Наличными: 500.00 [15:46:16]line Безнал.: 0.00 [15:46:16]line Место: АЗС № 86 "Партнер Нефть" [15:46:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:46:16]line СНО: Общий режим [15:46:16]line Чек 388 22.10.2024 15:46 [15:46:16]line Смена: 461 ФФД: 1.0 [15:46:16]line ЗНМ: 0300000155 [15:46:16]line РНМ: 0000000000100030 [15:46:16]line Версия ККМ: 001 [15:46:16]line ФМ: 0000000000965340 [15:46:16]line ФД: 188359 [15:46:16]line ФПД: 21011492887161 [15:46:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154616&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188359&fm=21011492887161&tin=02508201610067®Number=0000000000100030&sum=50000 [15:46:16]written 0, free lines is 4095 [15:46:16]OFD Sender: Processing packet 188359 [packets to send 1062, broken 1061] [15:46:16]ProducePacketName [15:46:16]name=ofd_packets/00188359 [15:46:16]OFD Sender: To server: pG, [15:46:16]CommunicateWithHost lk.salyk.kg:30040 [15:46:16]ConnectInit lk.salyk.kg [15:46:16]Connected sock=10 [15:46:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3C 1F 07 01 74 ED 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 84 01 00 00 F4 03 04 00 C8 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DF 02 00 35 04 06 00 13 1C 1E 91 DA 79 07 B5 45 D8 DE 34 F6 76 [15:46:16]Write to MH i2c: 01 00 00 9F 16 B5 [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: 01 07 00 9F 16 00 00 00 00 00 65 0C 2D [15:46:16]RasterBufferAndPrint [15:46:16]line [15:46:16]line [15:46:16]line [15:46:16]line [15:46:16]line [15:46:16]written 0, free lines is 3176 [15:46:16]MH_Cut [15:46:16]Write to MH i2c: D1 01 00 A6 16 01 8E [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: D1 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: D1 01 00 [15:46:16]MH_I2C_Read... [15:46:16]Read from MH i2c: D1 01 00 A6 16 00 8D [15:46:16]Write to MH i2c: 01 00 00 A7 16 BD [15:46:16]Write i2c OK [15:46:16]MH_I2C_Read... [15:46:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1B 98 47 00 76 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C7 DF 02 00 F4 03 04 00 B5 72 17 67 B6 04 01 00 00 59 34 27 FC 97 D2 06 3E [15:46:17]CommunicateWithHost err = 0 [15:46:17]CheckOFDResponse [15:46:17]1017 (14) - 77093643461234 [15:46:17]1041 (16) - 0000000000965340 [15:46:17]1040 (4) - 188359 [15:46:17]1012 (4) - 22.10.2024 09:39 [15:46:17]1206 (1) - 0 [15:46:17]OFD Sender: Remove packet 188359 [15:46:17]ProducePacketName [15:46:17]name=ofd_packets/00188359 [15:46:17]NVStorageDeleteData [15:46:17]OFD Sender: No OFD packet to send [15:46:18]*** Cut start [15:46:18]*** Partial cut [15:46:18]*** CUTSNS_PIN = 1 [15:46:18]*** CUTSNS_PIN = 0 [15:46:18]*** Brake cut motor [15:46:18]Read from MH i2c: 01 [15:46:18]MH_I2C_Read... [15:46:18]*** Stop cut motor [15:46:18]*** Cut end [15:46:18]Read from MH i2c: 01 07 00 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: 01 07 00 A7 16 00 00 00 00 00 FF 0F D2 [15:46:18]process_action close_receipt done [15:46:18]requested_data is exist [15:46:18]produce_requested_data [15:46:18]requested_item fm.sn is exist - process it [15:46:18]wFMCommunicate request_size=4 [15:46:18]MH_SAM_APDU [15:46:18]CAPDU: 80 11 00 00 [15:46:18]Write to MH i2c: E2 08 00 A8 16 80 11 00 00 00 00 00 00 38 [15:46:18]Write i2c OK [15:46:18]MH_I2C_Read... [15:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:18]Read from MH i2c: E2 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: E2 17 00 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: E2 17 00 A8 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 86 [15:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:18]wFMCommunicate OK [15:46:18]requested_item fd.num is exist - process it [15:46:18]SAM_PROTO_GetFieldsCounters [15:46:18]wFMCommunicate request_size=4 [15:46:18]MH_SAM_APDU [15:46:18]CAPDU: 80 13 00 00 [15:46:18]Write to MH i2c: E2 08 00 A9 16 80 13 00 00 00 00 00 00 3B [15:46:18]Write i2c OK [15:46:18]MH_I2C_Read... [15:46:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:18]Read from MH i2c: E2 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: E2 62 00 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: E2 62 00 A9 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [15:46:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 84 01 00 00 5E 04 04 00 84 01 00 00 57 04 04 00 85 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:18]wFMCommunicate OK [15:46:18]SAM_PROTO_GetFieldsCounters done [15:46:18]requested_item shift.num is exist - process it [15:46:18]requested_item shift.opened is exist - process it [15:46:18]req_shift_opened [15:46:18]FM_GetShiftState [15:46:18]SAM_PROTO_GetShiftState [15:46:18]wFMCommunicate request_size=4 [15:46:18]MH_SAM_APDU [15:46:18]CAPDU: 80 13 01 00 [15:46:18]Write to MH i2c: E2 08 00 AA 16 80 13 01 00 00 00 00 00 3D [15:46:18]Write i2c OK [15:46:18]MH_I2C_Read... [15:46:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:18]Read from MH i2c: E2 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: E2 0E 00 [15:46:18]MH_I2C_Read... [15:46:18]Read from MH i2c: E2 0E 00 AA 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 32 [15:46:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:46:18]wFMCommunicate OK [15:46:18]SAM_PROTO_GetShiftState done [15:46:18]FM_GetShiftState done [15:46:18]req_shift_opened done [15:46:18]requested_item shift.open_date is exist - process it [15:46:18]req_shift_open_date [15:46:18]req_shift_open_date done [15:46:18]produce_requested_data done [15:46:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188359,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:46:18]process_action_free close_receipt [15:46:18]json_value_free [15:46:18]json_value_free done [15:46:18]process_json_proto returns [15:46:18]Send response to host [15:46:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188359,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:46:18]free response buf [15:46:18]execute_script done [15:46:18]execute_script returns [15:46:18]free content buf [15:46:18]Sock 9.Close socket [15:46:18]Sock 9.Thread stoped [15:46:22]OFD Sender: No OFD packet to send [15:46:27]OFD Sender: No OFD packet to send [15:46:32]OFD Sender: No OFD packet to send [15:46:37]OFD Sender: No OFD packet to send [15:46:40]accept exits with 7 [15:46:40]New connection [15:46:40]New thread 3067161956 created [15:46:40]Thread 3067305316 joined [15:46:40]Waiting for new connection... [15:46:40] Sock 7.Parse request [15:46:40]Sock 7.Check first char [15:46:40]Sock 7.First char is OK [15:46:40]request: POST /json_proto HTTP/1.0 [15:46:40]Method: POST [15:46:40]URL: /json_proto [15:46:40]Method is POST - this is cgi request [15:46:40]url: /json_proto [15:46:40]query_string will be loaded in cgi processing [15:46:40]execute_cgi json_proto POST (null) [15:46:40]execute_cgi path=json_proto method=POST [15:46:40]POST find Content-Length [15:46:40]Host: 172.17.42.131:8080 [15:46:40]Content-Length: 677 [15:46:40]Content-Type: application/json [15:46:40] [15:46:40]POST finish read [15:46:40]Found Content-Length = 677 [15:46:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [15:46:40]execute_script... [15:46: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)210417", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [15:46:40]POST & json_proto [15:46:40]process_json_proto [15:46:40]json parsed OK: [15:46:40]protocol is kg_v1.0 [15:46:40]action value=close_receipt [15:46:40]process_action close_receipt [15:46:40]cmd_close_receipt [15:46:40]MH_GetDate [15:46:40]Write to MH i2c: F0 00 00 AB 16 B0 [15:46:40]Write i2c OK [15:46:40]MH_I2C_Read... [15:46:40]Read from MH i2c: F0 [15:46:40]MH_I2C_Read... [15:46:40]Read from MH i2c: F0 09 00 [15:46:40]MH_I2C_Read... [15:46:40]Read from MH i2c: F0 09 00 AB 16 00 E1 C8 17 67 A0 18 CA 66 C8 [15:46:40]GetLastDocTimeStamp 1729611976 [15:46:40]current date 1729612001 [15:46:40]FM_GetShiftState [15:46:40]SAM_PROTO_GetShiftState [15:46:40]wFMCommunicate request_size=4 [15:46:40]MH_SAM_APDU [15:46:40]CAPDU: 80 13 01 00 [15:46:40]Write to MH i2c: E2 08 00 AC 16 80 13 01 00 00 00 00 00 3F [15:46:40]Write i2c OK [15:46:40]MH_I2C_Read... [15:46:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:40]Read from MH i2c: E2 [15:46:40]MH_I2C_Read... [15:46:40]Read from MH i2c: E2 0E 00 [15:46:40]MH_I2C_Read... [15:46:40]Read from MH i2c: E2 0E 00 AC 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 34 [15:46:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:46:40]wFMCommunicate OK [15:46:40]SAM_PROTO_GetShiftState done [15:46:40]FM_GetShiftState done [15:46:40]opened in 1729556094 [15:46:40]opened+sec_in_day 1729642494 [15:46:40]quantity*price = 50010 [15:46:40]sum+1 = 50012 [15:46:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 389 22.10.2024 15:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188360 ФПД: 237982427338312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154641&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188360&fm=237982427338312&tin=02508201610067®Number=0000000000100030&sum=50000 [15:46:41]StoreToDocumentArchive [15:46:41]shift 461 fd 188360 [15:46:41]save to /storage/0461/doc_00188360 [15:46:41]save last doc name /storage/0461/doc_00188360 to /storage/kkm_last_doc_name [15:46:41]save OK [15:46:41]Clear old archive folders... [15:46:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:46:41]tlvbuf is 0143EAB0 [15:46:41]SAM_PROTO_ClearQueue [15:46:41]wFMCommunicate request_size=4 [15:46:41]MH_SAM_APDU [15:46:41]CAPDU: 80 09 00 00 [15:46:41]Write to MH i2c: E2 08 00 B9 16 80 09 00 00 00 00 00 00 41 [15:46:41]Write i2c OK [15:46:41]MH_I2C_Read... [15:46:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:46:41]Read from MH i2c: E2 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 03 00 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 03 00 B9 16 00 90 00 43 [15:46:41]RAPDU: 90 00 [15:46:41]wFMCommunicate OK [15:46:41]SAM_PROTO_ClearQueue done [15:46:41]KKMCreateOFDPacket [15:46:41]OFDProtocolAddRootSTLVToBuf [15:46:41]FM_MakeSignedData [15:46:41]FM_MakeSignedData [15:46:41]SAM_PROTO_SignData [15:46:41]wFMCommunicate request_size=4 [15:46:41]MH_SAM_APDU [15:46:41]CAPDU: 80 0D 01 02 [15:46:41]Write to MH i2c: E2 08 00 BA 16 80 0D 01 02 00 00 00 00 49 [15:46:41]Write i2c OK [15:46:41]MH_I2C_Read... [15:46:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:46:41]Read from MH i2c: E2 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 03 00 [15:46:41]MH_I2C_Read... [15:46:41]Read from MH i2c: E2 03 00 BA 16 00 90 00 44 [15:46:41]RAPDU: 90 00 [15:46:41]wFMCommunicate OK [15:46:41]wFMCommunicate request_size=255 [15:46:41]MH_SAM_APDU [15:46: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 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 85 01 00 00 F4 03 04 00 E1 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DF 02 00 35 04 06 00 D8 [15:46:41]Write to MH i2c: E2 02 01 BB 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 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 85 01 00 00 F4 03 04 00 E1 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DF 02 00 35 04 06 00 D8 00 00 90 [15:46:41]Write i2c OK [15:46:41]MH_I2C_Read... [15:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:42]Read from MH i2c: E2 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 03 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 03 00 BB 16 00 90 00 45 [15:46:42]RAPDU: 90 00 [15:46:42]wFMCommunicate OK [15:46:42]wFMCommunicate request_size=10 [15:46:42]MH_SAM_APDU [15:46:42]CAPDU: 80 0D 02 02 05 71 9A 0B 56 48 [15:46:42]Write to MH i2c: E2 0D 00 BC 16 80 0D 02 02 05 00 71 9A 0B 56 48 00 00 0A [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:46:42]Read from MH i2c: E2 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 03 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 03 00 BC 16 00 90 00 46 [15:46:42]RAPDU: 90 00 [15:46:42]wFMCommunicate OK [15:46:42]wFMCommunicate request_size=4 [15:46:42]MH_SAM_APDU [15:46:42]CAPDU: 80 0D 03 02 [15:46:42]Write to MH i2c: E2 08 00 BD 16 80 0D 03 02 00 00 00 00 4E [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:46:42]Read from MH i2c: E2 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 0B 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 0B 00 BD 16 00 A4 A4 9D 2D F3 1A 76 AB 90 00 8F [15:46:42]RAPDU: A4 A4 9D 2D F3 1A 76 AB 90 00 [15:46:42]wFMCommunicate OK [15:46:42]SAM_PROTO_SignData done [15:46:42]FM_MakeSignedData done [15:46:42]CreateOFDProtocolMessage [15:46:42]wFMCommunicate request_size=4 [15:46:42]MH_SAM_APDU [15:46:42]CAPDU: 80 11 00 00 [15:46:42]Write to MH i2c: E2 08 00 BE 16 80 11 00 00 00 00 00 00 4E [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:42]Read from MH i2c: E2 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 17 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: E2 17 00 BE 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [15:46:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:42]wFMCommunicate OK [15:46:42]CreateOFDProtocolMessage done [15:46:42]OFDSenderStorePacket 188360 [15:46:42]StoreOFDPacket docnum=188360 [15:46:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 08 07 01 48 D2 5A 03 01 00 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 85 01 00 00 F4 03 04 00 E1 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DF 02 00 35 04 06 00 D8 71 9A 0B 56 48 A4 A4 9D 2D F3 1A 76 AB [15:46:42]CheckFolder [15:46:42]dirname=/storage/ofd_packets [15:46:42]CheckFolder done [15:46:42]ProducePacketName [15:46:42]name=ofd_packets/00188360 [15:46:42]NVStorageSaveData ofd_packets/00188360 [15:46:42]File name is /storage/ofd_packets/00188360 [15:46:42]Write 301 bytes [15:46:42]NVStorageSaveData done [15:46:42]OFDSenderStorePacket done [15:46:42]KKMCreateOFDPacket done [15:46:42]NVStorageSaveData kkm_last_timestamp [15:46:42]File name is /storage/kkm_last_timestamp [15:46:42]Write 4 bytes [15:46:42]NVStorageSaveData done [15:46:42]ExternCall_PrintAddStr [15:46:42]wPrintStart [15:46:42]Write to MH i2c: 01 00 00 BF 16 D5 [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: 01 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: 01 07 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: 01 07 00 BF 16 00 00 00 00 00 FF 0F EA [15:46:42]RasterBufferAndPrint [15:46:42]line Счет N : (1)210417 [15:46:42]line ИНН: 02508201610067 [15:46:42]line Контрольно-Кассовый Чек [15:46:42]line ПРОДАЖА [15:46:42]line ТРК (МРК, ГНК) : 23 [15:46:42]line Товар: 2710124500 [15:46:42]line Аи-95-К-3 [15:46:42]line 6.740 * 74.20 [15:46:42]line = 500.11 [15:46:42]line НДС 12% НСП 1% [15:46:42]line > о реализуемом товаре [15:46:42]line ОКРУГЛЕНИЕ: -0.11 [15:46:42]line ИТОГО: 500.00 [15:46:42]line Внесено: 500.00 [15:46:42]line СДАЧА: 0.00 [15:46:42]line НСП 1% : 4.43 [15:46:42]line НДС 12% : 53.11 [15:46:42]line Наличными: 500.00 [15:46:42]line Безнал.: 0.00 [15:46:42]line Место: АЗС № 86 "Партнер Нефть" [15:46:42]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:46:42]line СНО: Общий режим [15:46:42]line Чек 389 22.10.2024 15:46 [15:46:42]line Смена: 461 ФФД: 1.0 [15:46:42]line ЗНМ: 0300000155 [15:46:42]line РНМ: 0000000000100030 [15:46:42]line Версия ККМ: 001 [15:46:42]line ФМ: 0000000000965340 [15:46:42]line ФД: 188360 [15:46:42]line ФПД: 237982427338312 [15:46:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154641&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188360&fm=237982427338312&tin=02508201610067®Number=0000000000100030&sum=50000 [15:46:42]written 0, free lines is 4095 [15:46:42]OFD Sender: Processing packet 188360 [packets to send 1062, broken 1061] [15:46:42]ProducePacketName [15:46:42]name=ofd_packets/00188360 [15:46:42]OFD Sender: To server: pG, [15:46:42]CommunicateWithHost lk.salyk.kg:30040 [15:46:42]ConnectInit lk.salyk.kg [15:46:42]Connected sock=10 [15:46:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 4B 08 07 01 48 D2 5A 03 01 00 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 85 01 00 00 F4 03 04 00 E1 C8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DF 02 00 35 04 06 00 D8 71 9A 0B 56 48 A4 A4 9D 2D F3 1A 76 AB [15:46:42]Write to MH i2c: 01 00 00 EA 16 00 [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: 01 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: 01 07 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: 01 07 00 EA 16 00 00 00 00 00 6B 0C 7E [15:46:42]RasterBufferAndPrint [15:46:42]line [15:46:42]line [15:46:42]line [15:46:42]line [15:46:42]line [15:46:42]written 0, free lines is 3183 [15:46:42]MH_Cut [15:46:42]Write to MH i2c: D1 01 00 F1 16 01 D9 [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: D1 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: D1 01 00 [15:46:42]MH_I2C_Read... [15:46:42]Read from MH i2c: D1 01 00 F1 16 00 D8 [15:46:42]Write to MH i2c: 01 00 00 F2 16 08 [15:46:42]Write i2c OK [15:46:42]MH_I2C_Read... [15:46:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A2 39 47 00 64 89 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C8 DF 02 00 F4 03 04 00 CE 72 17 67 B6 04 01 00 00 0D FB 6F F8 EE 20 CC 96 [15:46:42]CommunicateWithHost err = 0 [15:46:42]CheckOFDResponse [15:46:42]1017 (14) - 77093643461234 [15:46:42]1041 (16) - 0000000000965340 [15:46:42]1040 (4) - 188360 [15:46:42]1012 (4) - 22.10.2024 09:39 [15:46:42]1206 (1) - 0 [15:46:42]OFD Sender: Remove packet 188360 [15:46:42]ProducePacketName [15:46:42]name=ofd_packets/00188360 [15:46:42]NVStorageDeleteData [15:46:43]OFD Sender: No OFD packet to send [15:46:43]*** Cut start [15:46:43]*** Partial cut [15:46:43]*** CUTSNS_PIN = 1 [15:46:43]*** CUTSNS_PIN = 0 [15:46:44]*** Brake cut motor [15:46:44]Read from MH i2c: 01 [15:46:44]MH_I2C_Read... [15:46:44]*** Stop cut motor [15:46:44]*** Cut end [15:46:44]Read from MH i2c: 01 07 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: 01 07 00 F2 16 00 00 00 00 00 FF 0F 1D [15:46:44]process_action close_receipt done [15:46:44]requested_data is exist [15:46:44]produce_requested_data [15:46:44]requested_item fm.sn is exist - process it [15:46:44]wFMCommunicate request_size=4 [15:46:44]MH_SAM_APDU [15:46:44]CAPDU: 80 11 00 00 [15:46:44]Write to MH i2c: E2 08 00 F3 16 80 11 00 00 00 00 00 00 83 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 17 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 17 00 F3 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [15:46:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:46:44]wFMCommunicate OK [15:46:44]requested_item fd.num is exist - process it [15:46:44]SAM_PROTO_GetFieldsCounters [15:46:44]wFMCommunicate request_size=4 [15:46:44]MH_SAM_APDU [15:46:44]CAPDU: 80 13 00 00 [15:46:44]Write to MH i2c: E2 08 00 F4 16 80 13 00 00 00 00 00 00 86 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 62 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 62 00 F4 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [15:46:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 85 01 00 00 5E 04 04 00 85 01 00 00 57 04 04 00 86 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:46:44]wFMCommunicate OK [15:46:44]SAM_PROTO_GetFieldsCounters done [15:46:44]requested_item shift.num is exist - process it [15:46:44]requested_item shift.opened is exist - process it [15:46:44]req_shift_opened [15:46:44]FM_GetShiftState [15:46:44]SAM_PROTO_GetShiftState [15:46:44]wFMCommunicate request_size=4 [15:46:44]MH_SAM_APDU [15:46:44]CAPDU: 80 13 01 00 [15:46:44]Write to MH i2c: E2 08 00 F5 16 80 13 01 00 00 00 00 00 88 [15:46:44]Write i2c OK [15:46:44]MH_I2C_Read... [15:46:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:46:44]Read from MH i2c: E2 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 0E 00 [15:46:44]MH_I2C_Read... [15:46:44]Read from MH i2c: E2 0E 00 F5 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7D [15:46:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:46:44]wFMCommunicate OK [15:46:44]SAM_PROTO_GetShiftState done [15:46:44]FM_GetShiftState done [15:46:44]req_shift_opened done [15:46:44]requested_item shift.open_date is exist - process it [15:46:44]req_shift_open_date [15:46:44]req_shift_open_date done [15:46:44]produce_requested_data done [15:46:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188360,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:46:44]process_action_free close_receipt [15:46:44]json_value_free [15:46:44]json_value_free done [15:46:44]process_json_proto returns [15:46:44]Send response to host [15:46:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188360,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:46:44]free response buf [15:46:44]execute_script done [15:46:44]execute_script returns [15:46:44]free content buf [15:46:44]Sock 7.Close socket [15:46:44]Sock 7.Thread stoped [15:46:48]OFD Sender: No OFD packet to send [15:46:53]OFD Sender: No OFD packet to send [15:46:58]OFD Sender: No OFD packet to send [15:47:03]OFD Sender: No OFD packet to send [15:47:08]OFD Sender: No OFD packet to send [15:47:13]OFD Sender: No OFD packet to send [15:47:18]OFD Sender: No OFD packet to send [15:47:23]OFD Sender: No OFD packet to send [15:47:28]OFD Sender: No OFD packet to send [15:47:33]OFD Sender: No OFD packet to send [15:47:38]OFD Sender: No OFD packet to send [15:47:38]accept exits with 9 [15:47:38]New connection [15:47:38]New thread 3067305316 created [15:47:38]Thread 3067161956 joined [15:47:38]Waiting for new connection... [15:47:38] Sock 9.Parse request [15:47:38]Sock 9.Check first char [15:47:38]Sock 9.First char is OK [15:47:38]request: POST /json_proto HTTP/1.0 [15:47:38]Method: POST [15:47:38]URL: /json_proto [15:47:38]Method is POST - this is cgi request [15:47:38]url: /json_proto [15:47:38]query_string will be loaded in cgi processing [15:47:38]execute_cgi json_proto POST (null) [15:47:38]execute_cgi path=json_proto method=POST [15:47:38]POST find Content-Length [15:47:38]Host: 172.17.42.131:8080 [15:47:38]Content-Length: 688 [15:47:38]Content-Type: application/json [15:47:38] [15:47:38]POST finish read [15:47:38]Found Content-Length = 688 [15:47:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [15:47:38]execute_script... [15:47: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)210420", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [15:47:38]POST & json_proto [15:47:38]process_json_proto [15:47:38]json parsed OK: [15:47:38]protocol is kg_v1.0 [15:47:38]action value=close_receipt [15:47:38]process_action close_receipt [15:47:38]cmd_close_receipt [15:47:38]MH_GetDate [15:47:38]Write to MH i2c: F0 00 00 F6 16 FB [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: F0 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: F0 09 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: F0 09 00 F6 16 00 1C C9 17 67 A0 18 CA 66 4F [15:47:38]GetLastDocTimeStamp 1729612001 [15:47:38]current date 1729612060 [15:47:38]FM_GetShiftState [15:47:38]SAM_PROTO_GetShiftState [15:47:38]wFMCommunicate request_size=4 [15:47:38]MH_SAM_APDU [15:47:38]CAPDU: 80 13 01 00 [15:47:38]Write to MH i2c: E2 08 00 F7 16 80 13 01 00 00 00 00 00 8A [15:47:38]Write i2c OK [15:47:38]MH_I2C_Read... [15:47:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:38]Read from MH i2c: E2 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0E 00 [15:47:38]MH_I2C_Read... [15:47:38]Read from MH i2c: E2 0E 00 F7 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7F [15:47:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:47:38]wFMCommunicate OK [15:47:38]SAM_PROTO_GetShiftState done [15:47:38]FM_GetShiftState done [15:47:38]opened in 1729556094 [15:47:38]opened+sec_in_day 1729642494 [15:47:38]quantity*price = 100051 [15:47:38]sum+1 = 100052 [15:47:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 390 22.10.2024 15:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188361 ФПД: 151967105753615 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154740&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188361&fm=151967105753615&tin=02508201610067®Number=0000000000100030&sum=100000 [15:47:40]StoreToDocumentArchive [15:47:40]shift 461 fd 188361 [15:47:40]save to /storage/0461/doc_00188361 [15:47:40]save last doc name /storage/0461/doc_00188361 to /storage/kkm_last_doc_name [15:47:40]save OK [15:47:40]Clear old archive folders... [15:47:40]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:47:40]tlvbuf is B6FAE320 [15:47:40]SAM_PROTO_ClearQueue [15:47:40]wFMCommunicate request_size=4 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 09 00 00 [15:47:40]Write to MH i2c: E2 08 00 04 17 80 09 00 00 00 00 00 00 8D [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 04 17 00 90 00 8F [15:47:40]RAPDU: 90 00 [15:47:40]wFMCommunicate OK [15:47:40]SAM_PROTO_ClearQueue done [15:47:40]KKMCreateOFDPacket [15:47:40]OFDProtocolAddRootSTLVToBuf [15:47:40]FM_MakeSignedData [15:47:40]FM_MakeSignedData [15:47:40]SAM_PROTO_SignData [15:47:40]wFMCommunicate request_size=4 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 0D 01 02 [15:47:40]Write to MH i2c: E2 08 00 05 17 80 0D 01 02 00 00 00 00 95 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 05 17 00 90 00 90 [15:47:40]RAPDU: 90 00 [15:47:40]wFMCommunicate OK [15:47:40]wFMCommunicate request_size=255 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 86 01 00 00 F4 03 04 00 1C C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DF 02 [15:47:40]Write to MH i2c: E2 02 01 06 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 86 01 00 00 F4 03 04 00 1C C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DF 02 00 00 54 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 06 17 00 90 00 91 [15:47:40]RAPDU: 90 00 [15:47:40]wFMCommunicate OK [15:47:40]wFMCommunicate request_size=16 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8A 36 99 5B 22 0F [15:47:40]Write to MH i2c: E2 13 00 07 17 80 0D 02 02 0B 00 00 35 04 06 00 8A 36 99 5B 22 0F 00 00 D2 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 03 00 07 17 00 90 00 92 [15:47:40]RAPDU: 90 00 [15:47:40]wFMCommunicate OK [15:47:40]wFMCommunicate request_size=4 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 0D 03 02 [15:47:40]Write to MH i2c: E2 08 00 08 17 80 0D 03 02 00 00 00 00 9A [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 0B 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 0B 00 08 17 00 47 B3 F3 E3 72 BB 75 F5 90 00 02 [15:47:40]RAPDU: 47 B3 F3 E3 72 BB 75 F5 90 00 [15:47:40]wFMCommunicate OK [15:47:40]SAM_PROTO_SignData done [15:47:40]FM_MakeSignedData done [15:47:40]CreateOFDProtocolMessage [15:47:40]wFMCommunicate request_size=4 [15:47:40]MH_SAM_APDU [15:47:40]CAPDU: 80 11 00 00 [15:47:40]Write to MH i2c: E2 08 00 09 17 80 11 00 00 00 00 00 00 9A [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:40]Read from MH i2c: E2 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 17 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: E2 17 00 09 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [15:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:40]wFMCommunicate OK [15:47:40]CreateOFDProtocolMessage done [15:47:40]OFDSenderStorePacket 188361 [15:47:40]StoreOFDPacket docnum=188361 [15:47:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F6 1B 0D 01 D0 AF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 86 01 00 00 F4 03 04 00 1C C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DF 02 00 35 04 06 00 8A 36 99 5B 22 0F 47 B3 F3 E3 72 BB 75 F5 [15:47:40]CheckFolder [15:47:40]dirname=/storage/ofd_packets [15:47:40]CheckFolder done [15:47:40]ProducePacketName [15:47:40]name=ofd_packets/00188361 [15:47:40]NVStorageSaveData ofd_packets/00188361 [15:47:40]File name is /storage/ofd_packets/00188361 [15:47:40]Write 307 bytes [15:47:40]NVStorageSaveData done [15:47:40]OFDSenderStorePacket done [15:47:40]KKMCreateOFDPacket done [15:47:40]NVStorageSaveData kkm_last_timestamp [15:47:40]File name is /storage/kkm_last_timestamp [15:47:40]Write 4 bytes [15:47:40]NVStorageSaveData done [15:47:40]ExternCall_PrintAddStr [15:47:40]wPrintStart [15:47:40]Write to MH i2c: 01 00 00 0A 17 21 [15:47:40]Write i2c OK [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 07 00 [15:47:40]MH_I2C_Read... [15:47:40]Read from MH i2c: 01 07 00 0A 17 00 00 00 00 00 FF 0F 36 [15:47:40]RasterBufferAndPrint [15:47:40]line Счет N : (1)210420 [15:47:40]line ИНН: 02508201610067 [15:47:40]line Контрольно-Кассовый Чек [15:47:40]line ПРОДАЖА [15:47:40]line ТРК (МРК, ГНК) : 31 [15:47:40]line Товар: 2710194210 [15:47:40]line D-ENERGY ДТ-К-5 [15:47:40]line 12.960 * 77.20 [15:47:40]line = 1000.51 [15:47:40]line НДС 12% НСП 1% [15:47:40]line > о реализуемом товаре [15:47:40]line ОКРУГЛЕНИЕ: -0.51 [15:47:40]line ИТОГО: 1000.00 [15:47:40]line Внесено: 1000.00 [15:47:40]line СДАЧА: 0.00 [15:47:40]line НСП 1% : 8.85 [15:47:40]line НДС 12% : 106.25 [15:47:40]line Наличными: 1000.00 [15:47:40]line Безнал.: 0.00 [15:47:40]line Место: АЗС № 86 "Партнер Нефть" [15:47:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:47:40]line СНО: Общий режим [15:47:40]line Чек 390 22.10.2024 15:47 [15:47:40]line Смена: 461 ФФД: 1.0 [15:47:40]line ЗНМ: 0300000155 [15:47:40]line РНМ: 0000000000100030 [15:47:40]line Версия ККМ: 001 [15:47:40]line ФМ: 0000000000965340 [15:47:40]line ФД: 188361 [15:47:40]line ФПД: 151967105753615 [15:47:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154740&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188361&fm=151967105753615&tin=02508201610067®Number=0000000000100030&sum=100000 [15:47:40]OFD Sender: Processing packet 188361 [packets to send 1062, broken 1061] [15:47:40]ProducePacketName [15:47:40]name=ofd_packets/00188361 [15:47:40]OFD Sender: To server: pG, [15:47:40]CommunicateWithHost lk.salyk.kg:30040 [15:47:40]ConnectInit lk.salyk.kg [15:47:40]written 0, free lines is 4095 [15:47:40]Connected sock=11 [15:47:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F6 1B 0D 01 D0 AF 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 86 01 00 00 F4 03 04 00 1C C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 C9 DF 02 00 35 04 06 00 8A 36 99 5B 22 0F 47 B3 F3 E3 72 BB 75 F5 [15:47:41]Write to MH i2c: 01 00 00 35 17 4C [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: 01 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: 01 07 00 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: 01 07 00 35 17 00 00 00 00 00 65 0C C4 [15:47:41]RasterBufferAndPrint [15:47:41]line [15:47:41]line [15:47:41]line [15:47:41]line [15:47:41]line [15:47:41]written 0, free lines is 3176 [15:47:41]MH_Cut [15:47:41]Write to MH i2c: D1 01 00 3C 17 01 25 [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: D1 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: D1 01 00 [15:47:41]MH_I2C_Read... [15:47:41]Read from MH i2c: D1 01 00 3C 17 00 24 [15:47:41]Write to MH i2c: 01 00 00 3D 17 54 [15:47:41]Write i2c OK [15:47:41]MH_I2C_Read... [15:47:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8B 9B 47 00 5C 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 39 36 35 33 34 30 10 04 04 00 C9 DF 02 00 F4 03 04 00 09 73 17 67 B6 04 01 00 00 E2 00 4F 1B D5 69 51 DF [15:47:41]CommunicateWithHost err = 0 [15:47:41]CheckOFDResponse [15:47:41]1017 (14) - 77093643461234 [15:47:41]1041 (16) - 0000000000965340 [15:47:41]1040 (4) - 188361 [15:47:41]1012 (4) - 22.10.2024 09:40 [15:47:41]1206 (1) - 0 [15:47:41]OFD Sender: Remove packet 188361 [15:47:41]ProducePacketName [15:47:41]name=ofd_packets/00188361 [15:47:41]NVStorageDeleteData [15:47:41]OFD Sender: No OFD packet to send [15:47:42]*** Cut start [15:47:42]*** Partial cut [15:47:42]*** CUTSNS_PIN = 1 [15:47:42]*** CUTSNS_PIN = 0 [15:47:42]*** Brake cut motor [15:47:42]Read from MH i2c: 01 [15:47:42]MH_I2C_Read... [15:47:42]*** Stop cut motor [15:47:42]*** Cut end [15:47:42]Read from MH i2c: 01 07 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: 01 07 00 3D 17 00 00 00 00 00 FF 0F 69 [15:47:42]process_action close_receipt done [15:47:42]requested_data is exist [15:47:42]produce_requested_data [15:47:42]requested_item fm.sn is exist - process it [15:47:42]wFMCommunicate request_size=4 [15:47:42]MH_SAM_APDU [15:47:42]CAPDU: 80 11 00 00 [15:47:42]Write to MH i2c: E2 08 00 3E 17 80 11 00 00 00 00 00 00 CF [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:42]Read from MH i2c: E2 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 17 00 [15:47:42]MH_I2C_Read... [15:47:42]Read from MH i2c: E2 17 00 3E 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1D [15:47:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:42]wFMCommunicate OK [15:47:42]requested_item fd.num is exist - process it [15:47:42]SAM_PROTO_GetFieldsCounters [15:47:42]wFMCommunicate request_size=4 [15:47:42]MH_SAM_APDU [15:47:42]CAPDU: 80 13 00 00 [15:47:42]Write to MH i2c: E2 08 00 3F 17 80 13 00 00 00 00 00 00 D2 [15:47:42]Write i2c OK [15:47:42]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 62 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 62 00 3F 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [15:47:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 C9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 86 01 00 00 5E 04 04 00 86 01 00 00 57 04 04 00 87 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:43]wFMCommunicate OK [15:47:43]SAM_PROTO_GetFieldsCounters done [15:47:43]requested_item shift.num is exist - process it [15:47:43]requested_item shift.opened is exist - process it [15:47:43]req_shift_opened [15:47:43]FM_GetShiftState [15:47:43]SAM_PROTO_GetShiftState [15:47:43]wFMCommunicate request_size=4 [15:47:43]MH_SAM_APDU [15:47:43]CAPDU: 80 13 01 00 [15:47:43]Write to MH i2c: E2 08 00 40 17 80 13 01 00 00 00 00 00 D4 [15:47:43]Write i2c OK [15:47:43]MH_I2C_Read... [15:47:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:43]Read from MH i2c: E2 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 0E 00 [15:47:43]MH_I2C_Read... [15:47:43]Read from MH i2c: E2 0E 00 40 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C9 [15:47:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:47:43]wFMCommunicate OK [15:47:43]SAM_PROTO_GetShiftState done [15:47:43]FM_GetShiftState done [15:47:43]req_shift_opened done [15:47:43]requested_item shift.open_date is exist - process it [15:47:43]req_shift_open_date [15:47:43]req_shift_open_date done [15:47:43]produce_requested_data done [15:47:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188361,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:47:43]process_action_free close_receipt [15:47:43]json_value_free [15:47:43]json_value_free done [15:47:43]process_json_proto returns [15:47:43]Send response to host [15:47:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188361,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:47:43]free response buf [15:47:43]execute_script done [15:47:43]execute_script returns [15:47:43]free content buf [15:47:43]Sock 9.Close socket [15:47:43]Sock 9.Thread stoped [15:47:46]OFD Sender: No OFD packet to send [15:47:50]accept exits with 7 [15:47:50]New connection [15:47:50]New thread 3067161956 created [15:47:50]Thread 3067305316 joined [15:47:50]Waiting for new connection... [15:47:50] Sock 7.Parse request [15:47:50]Sock 7.Check first char [15:47:50]Sock 7.First char is OK [15:47:50]request: POST /json_proto HTTP/1.0 [15:47:50]Method: POST [15:47:50]URL: /json_proto [15:47:50]Method is POST - this is cgi request [15:47:50]url: /json_proto [15:47:50]query_string will be loaded in cgi processing [15:47:50]execute_cgi json_proto POST (null) [15:47:50]execute_cgi path=json_proto method=POST [15:47:50]POST find Content-Length [15:47:50]Host: 172.17.42.131:8080 [15:47:50]Content-Length: 688 [15:47:50]Content-Type: application/json [15:47:50] [15:47:50]POST finish read [15:47:50]Found Content-Length = 688 [15:47:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:50]execute_script... [15:47: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)210418", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:47:50]POST & json_proto [15:47:50]process_json_proto [15:47:50]json parsed OK: [15:47:50]protocol is kg_v1.0 [15:47:50]action value=close_receipt [15:47:50]process_action close_receipt [15:47:50]cmd_close_receipt [15:47:50]MH_GetDate [15:47:50]Write to MH i2c: F0 00 00 41 17 47 [15:47:50]Write i2c OK [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: F0 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: F0 09 00 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: F0 09 00 41 17 00 27 C9 17 67 A0 18 CA 66 A6 [15:47:50]GetLastDocTimeStamp 1729612060 [15:47:50]current date 1729612071 [15:47:50]FM_GetShiftState [15:47:50]SAM_PROTO_GetShiftState [15:47:50]wFMCommunicate request_size=4 [15:47:50]MH_SAM_APDU [15:47:50]CAPDU: 80 13 01 00 [15:47:50]Write to MH i2c: E2 08 00 42 17 80 13 01 00 00 00 00 00 D6 [15:47:50]Write i2c OK [15:47:50]MH_I2C_Read... [15:47:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:50]Read from MH i2c: E2 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: E2 0E 00 [15:47:50]MH_I2C_Read... [15:47:50]Read from MH i2c: E2 0E 00 42 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CB [15:47:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:47:50]wFMCommunicate OK [15:47:50]SAM_PROTO_GetShiftState done [15:47:50]FM_GetShiftState done [15:47:50]opened in 1729556094 [15:47:50]opened+sec_in_day 1729642494 [15:47:50]quantity*price = 500024 [15:47:50]sum+1 = 500025 [15:47:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 391 22.10.2024 15:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188362 ФПД: 231642200565448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154751&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188362&fm=231642200565448&tin=02508201610067®Number=0000000000100030&sum=500000 [15:47:51]StoreToDocumentArchive [15:47:51]shift 461 fd 188362 [15:47:51]save to /storage/0461/doc_00188362 [15:47:51]save last doc name /storage/0461/doc_00188362 to /storage/kkm_last_doc_name [15:47:51]save OK [15:47:51]Clear old archive folders... [15:47:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:47:51]tlvbuf is 014977C0 [15:47:51]SAM_PROTO_ClearQueue [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 09 00 00 [15:47:51]Write to MH i2c: E2 08 00 4F 17 80 09 00 00 00 00 00 00 D8 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 4F 17 00 90 00 DA [15:47:51]RAPDU: 90 00 [15:47:51]wFMCommunicate OK [15:47:51]SAM_PROTO_ClearQueue done [15:47:51]KKMCreateOFDPacket [15:47:51]OFDProtocolAddRootSTLVToBuf [15:47:51]FM_MakeSignedData [15:47:51]FM_MakeSignedData [15:47:51]SAM_PROTO_SignData [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 0D 01 02 [15:47:51]Write to MH i2c: E2 08 00 50 17 80 0D 01 02 00 00 00 00 E0 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 50 17 00 90 00 DB [15:47:51]RAPDU: 90 00 [15:47:51]wFMCommunicate OK [15:47:51]wFMCommunicate request_size=255 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 27 C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DF 02 [15:47:51]Write to MH i2c: E2 02 01 51 17 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 27 C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DF 02 00 00 14 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:51]OFD Sender: No OFD packet to send [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 51 17 00 90 00 DC [15:47:51]RAPDU: 90 00 [15:47:51]wFMCommunicate OK [15:47:51]wFMCommunicate request_size=16 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D2 AD 67 14 66 C8 [15:47:51]Write to MH i2c: E2 13 00 52 17 80 0D 02 02 0B 00 00 35 04 06 00 D2 AD 67 14 66 C8 00 00 60 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:47:51]Read from MH i2c: E2 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 [15:47:51]MH_I2C_Read... [15:47:51]Read from MH i2c: E2 03 00 52 17 00 90 00 DD [15:47:51]RAPDU: 90 00 [15:47:51]wFMCommunicate OK [15:47:51]wFMCommunicate request_size=4 [15:47:51]MH_SAM_APDU [15:47:51]CAPDU: 80 0D 03 02 [15:47:51]Write to MH i2c: E2 08 00 53 17 80 0D 03 02 00 00 00 00 E5 [15:47:51]Write i2c OK [15:47:51]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0B 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 0B 00 53 17 00 74 87 97 64 B6 1B 14 51 90 00 12 [15:47:52]RAPDU: 74 87 97 64 B6 1B 14 51 90 00 [15:47:52]wFMCommunicate OK [15:47:52]SAM_PROTO_SignData done [15:47:52]FM_MakeSignedData done [15:47:52]CreateOFDProtocolMessage [15:47:52]wFMCommunicate request_size=4 [15:47:52]MH_SAM_APDU [15:47:52]CAPDU: 80 11 00 00 [15:47:52]Write to MH i2c: E2 08 00 54 17 80 11 00 00 00 00 00 00 E5 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:52]Read from MH i2c: E2 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 17 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: E2 17 00 54 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 33 [15:47:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:52]wFMCommunicate OK [15:47:52]CreateOFDProtocolMessage done [15:47:52]OFDSenderStorePacket 188362 [15:47:52]StoreOFDPacket docnum=188362 [15:47:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 52 4A 0D 01 96 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 27 C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DF 02 00 35 04 06 00 D2 AD 67 14 66 C8 74 87 97 64 B6 1B 14 51 [15:47:52]CheckFolder [15:47:52]dirname=/storage/ofd_packets [15:47:52]CheckFolder done [15:47:52]ProducePacketName [15:47:52]name=ofd_packets/00188362 [15:47:52]NVStorageSaveData ofd_packets/00188362 [15:47:52]File name is /storage/ofd_packets/00188362 [15:47:52]Write 307 bytes [15:47:52]NVStorageSaveData done [15:47:52]OFDSenderStorePacket done [15:47:52]KKMCreateOFDPacket done [15:47:52]NVStorageSaveData kkm_last_timestamp [15:47:52]File name is /storage/kkm_last_timestamp [15:47:52]Write 4 bytes [15:47:52]NVStorageSaveData done [15:47:52]ExternCall_PrintAddStr [15:47:52]wPrintStart [15:47:52]Write to MH i2c: 01 00 00 55 17 6C [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 07 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 07 00 55 17 00 00 00 00 00 FF 0F 81 [15:47:52]RasterBufferAndPrint [15:47:52]line Счет N : (1)210418 [15:47:52]line ИНН: 02508201610067 [15:47:52]line Контрольно-Кассовый Чек [15:47:52]line ПРОДАЖА [15:47:52]line ТРК (МРК, ГНК) : 41 [15:47:52]line Товар: 2710194210 [15:47:52]line D-ENERGY ДТ-К-5 [15:47:52]line 64.770 * 77.20 [15:47:52]line = 5000.24 [15:47:52]line НДС 12% НСП 1% [15:47:52]line > о реализуемом товаре [15:47:52]line ОКРУГЛЕНИЕ: -0.24 [15:47:52]line ИТОГО: 5000.00 [15:47:52]line Внесено: 5000.00 [15:47:52]line СДАЧА: 0.00 [15:47:52]line НСП 1% : 44.25 [15:47:52]line НДС 12% : 531.00 [15:47:52]line Наличными: 5000.00 [15:47:52]line Безнал.: 0.00 [15:47:52]line Место: АЗС № 86 "Партнер Нефть" [15:47:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:47:52]line СНО: Общий режим [15:47:52]line Чек 391 22.10.2024 15:47 [15:47:52]line Смена: 461 ФФД: 1.0 [15:47:52]line ЗНМ: 0300000155 [15:47:52]line РНМ: 0000000000100030 [15:47:52]line Версия ККМ: 001 [15:47:52]line ФМ: 0000000000965340 [15:47:52]line ФД: 188362 [15:47:52]line ФПД: 231642200565448 [15:47:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154751&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188362&fm=231642200565448&tin=02508201610067®Number=0000000000100030&sum=500000 [15:47:52]written 0, free lines is 4095 [15:47:52]OFD Sender: Processing packet 188362 [packets to send 1062, broken 1061] [15:47:52]ProducePacketName [15:47:52]name=ofd_packets/00188362 [15:47:52]OFD Sender: To server: pG, [15:47:52]CommunicateWithHost lk.salyk.kg:30040 [15:47:52]ConnectInit lk.salyk.kg [15:47:52]Connected sock=10 [15:47:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 52 4A 0D 01 96 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 87 01 00 00 F4 03 04 00 27 C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DF 02 00 35 04 06 00 D2 AD 67 14 66 C8 74 87 97 64 B6 1B 14 51 [15:47:52]Write to MH i2c: 01 00 00 80 17 97 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 07 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: 01 07 00 80 17 00 00 00 00 00 71 0C 1B [15:47:52]RasterBufferAndPrint [15:47:52]line [15:47:52]line [15:47:52]line [15:47:52]line [15:47:52]line [15:47:52]written 0, free lines is 3188 [15:47:52]MH_Cut [15:47:52]Write to MH i2c: D1 01 00 87 17 01 70 [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: D1 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: D1 01 00 [15:47:52]MH_I2C_Read... [15:47:52]Read from MH i2c: D1 01 00 87 17 00 6F [15:47:52]Write to MH i2c: 01 00 00 88 17 9F [15:47:52]Write i2c OK [15:47:52]MH_I2C_Read... [15:47:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 84 73 47 00 83 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CA DF 02 00 F4 03 04 00 14 73 17 67 B6 04 01 00 00 19 64 46 3D E6 6A 50 FC [15:47:52]CommunicateWithHost err = 0 [15:47:52]CheckOFDResponse [15:47:52]1017 (14) - 77093643461234 [15:47:52]1041 (16) - 0000000000965340 [15:47:52]1040 (4) - 188362 [15:47:52]1012 (4) - 22.10.2024 09:40 [15:47:52]1206 (1) - 0 [15:47:52]OFD Sender: Remove packet 188362 [15:47:52]ProducePacketName [15:47:52]name=ofd_packets/00188362 [15:47:52]NVStorageDeleteData [15:47:53]OFD Sender: No OFD packet to send [15:47:53]*** Cut start [15:47:53]*** Partial cut [15:47:53]*** CUTSNS_PIN = 1 [15:47:53]*** CUTSNS_PIN = 0 [15:47:54]*** Brake cut motor [15:47:54]Read from MH i2c: 01 [15:47:54]MH_I2C_Read... [15:47:54]*** Stop cut motor [15:47:54]*** Cut end [15:47:54]Read from MH i2c: 01 07 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: 01 07 00 88 17 00 00 00 00 00 FF 0F B4 [15:47:54]process_action close_receipt done [15:47:54]requested_data is exist [15:47:54]produce_requested_data [15:47:54]requested_item fm.sn is exist - process it [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 11 00 00 [15:47:54]Write to MH i2c: E2 08 00 89 17 80 11 00 00 00 00 00 00 1A [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 17 00 89 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 68 [15:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:47:54]wFMCommunicate OK [15:47:54]requested_item fd.num is exist - process it [15:47:54]SAM_PROTO_GetFieldsCounters [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 13 00 00 [15:47:54]Write to MH i2c: E2 08 00 8A 17 80 13 00 00 00 00 00 00 1D [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 62 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 62 00 8A 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [15:47:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 87 01 00 00 5E 04 04 00 87 01 00 00 57 04 04 00 88 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_GetFieldsCounters done [15:47:54]requested_item shift.num is exist - process it [15:47:54]requested_item shift.opened is exist - process it [15:47:54]req_shift_opened [15:47:54]FM_GetShiftState [15:47:54]SAM_PROTO_GetShiftState [15:47:54]wFMCommunicate request_size=4 [15:47:54]MH_SAM_APDU [15:47:54]CAPDU: 80 13 01 00 [15:47:54]Write to MH i2c: E2 08 00 8B 17 80 13 01 00 00 00 00 00 1F [15:47:54]Write i2c OK [15:47:54]MH_I2C_Read... [15:47:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:47:54]Read from MH i2c: E2 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0E 00 [15:47:54]MH_I2C_Read... [15:47:54]Read from MH i2c: E2 0E 00 8B 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 14 [15:47:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:47:54]wFMCommunicate OK [15:47:54]SAM_PROTO_GetShiftState done [15:47:54]FM_GetShiftState done [15:47:54]req_shift_opened done [15:47:54]requested_item shift.open_date is exist - process it [15:47:54]req_shift_open_date [15:47:54]req_shift_open_date done [15:47:54]produce_requested_data done [15:47:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188362,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:47:54]process_action_free close_receipt [15:47:54]json_value_free [15:47:54]json_value_free done [15:47:54]process_json_proto returns [15:47:54]Send response to host [15:47:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188362,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:47:54]free response buf [15:47:54]execute_script done [15:47:54]execute_script returns [15:47:54]free content buf [15:47:54]Sock 7.Close socket [15:47:54]Sock 7.Thread stoped [15:47:58]OFD Sender: No OFD packet to send [15:48:03]OFD Sender: No OFD packet to send [15:48:08]OFD Sender: No OFD packet to send [15:48:13]OFD Sender: No OFD packet to send [15:48:18]OFD Sender: No OFD packet to send [15:48:23]OFD Sender: No OFD packet to send [15:48:28]OFD Sender: No OFD packet to send [15:48:33]OFD Sender: No OFD packet to send [15:48:38]OFD Sender: No OFD packet to send [15:48:43]OFD Sender: No OFD packet to send [15:48:48]OFD Sender: No OFD packet to send [15:48:53]OFD Sender: No OFD packet to send [15:48:58]OFD Sender: No OFD packet to send [15:49:03]OFD Sender: No OFD packet to send [15:49:08]OFD Sender: No OFD packet to send [15:49:13]OFD Sender: No OFD packet to send [15:49:18]OFD Sender: No OFD packet to send [15:49:23]OFD Sender: No OFD packet to send [15:49:28]OFD Sender: No OFD packet to send [15:49:33]accept exits with 9 [15:49:33]New connection [15:49:33]New thread 3067305316 created [15:49:33]Thread 3067161956 joined [15:49:33]Waiting for new connection... [15:49:33] Sock 9.Parse request [15:49:33]Sock 9.Check first char [15:49:33]Sock 9.First char is OK [15:49:33]request: POST /json_proto HTTP/1.0 [15:49:33]Method: POST [15:49:33]URL: /json_proto [15:49:33]Method is POST - this is cgi request [15:49:33]url: /json_proto [15:49:33]query_string will be loaded in cgi processing [15:49:33]execute_cgi json_proto POST (null) [15:49:33]execute_cgi path=json_proto method=POST [15:49:33]POST find Content-Length [15:49:33]Host: 172.17.42.131:8080 [15:49:33]Content-Length: 674 [15:49:33]Content-Type: application/json [15:49:33] [15:49:33]POST finish read [15:49:33]Found Content-Length = 674 [15:49:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:33]execute_script... [15:49: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)210421", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 9.850, "sum" : 750.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 750.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:49:33]POST & json_proto [15:49:33]process_json_proto [15:49:33]json parsed OK: [15:49:33]protocol is kg_v1.0 [15:49:33]action value=close_receipt [15:49:33]process_action close_receipt [15:49:33]cmd_close_receipt [15:49:33]MH_GetDate [15:49:33]Write to MH i2c: F0 00 00 8C 17 92 [15:49:33]Write i2c OK [15:49:33]MH_I2C_Read... [15:49:33]Read from MH i2c: F0 [15:49:33]MH_I2C_Read... [15:49:33]Read from MH i2c: F0 09 00 [15:49:33]MH_I2C_Read... [15:49:33]Read from MH i2c: F0 09 00 8C 17 00 8E C9 17 67 A0 18 CA 66 58 [15:49:33]GetLastDocTimeStamp 1729612071 [15:49:33]current date 1729612174 [15:49:33]FM_GetShiftState [15:49:33]SAM_PROTO_GetShiftState [15:49:33]wFMCommunicate request_size=4 [15:49:33]MH_SAM_APDU [15:49:33]CAPDU: 80 13 01 00 [15:49:33]Write to MH i2c: E2 08 00 8D 17 80 13 01 00 00 00 00 00 21 [15:49:33]Write i2c OK [15:49:33]MH_I2C_Read... [15:49:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:33]Read from MH i2c: E2 [15:49:33]MH_I2C_Read... [15:49:33]Read from MH i2c: E2 0E 00 [15:49:33]MH_I2C_Read... [15:49:33]Read from MH i2c: E2 0E 00 8D 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 16 [15:49:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:49:33]wFMCommunicate OK [15:49:33]SAM_PROTO_GetShiftState done [15:49:33]FM_GetShiftState done [15:49:33]opened in 1729556094 [15:49:33]opened+sec_in_day 1729642494 [15:49:33]quantity*price = 75057 [15:49:33]sum+1 = 75058 [15:49:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 750.00 Внесено: 750.00 СДАЧА: 0.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 392 22.10.2024 15:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188363 ФПД: 274817609928073 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154934&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188363&fm=274817609928073&tin=02508201610067®Number=0000000000100030&sum=75000 [15:49:34]StoreToDocumentArchive [15:49:34]shift 461 fd 188363 [15:49:34]save to /storage/0461/doc_00188363 [15:49:34]save last doc name /storage/0461/doc_00188363 to /storage/kkm_last_doc_name [15:49:34]save OK [15:49:34]Clear old archive folders... [15:49:34]ProcessDocumentItem done err = 0, tmpTLVsize=248 [15:49:34]tlvbuf is 0146A220 [15:49:34]SAM_PROTO_ClearQueue [15:49:34]wFMCommunicate request_size=4 [15:49:34]MH_SAM_APDU [15:49:34]CAPDU: 80 09 00 00 [15:49:34]Write to MH i2c: E2 08 00 9A 17 80 09 00 00 00 00 00 00 23 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:49:34]Read from MH i2c: E2 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 9A 17 00 90 00 25 [15:49:34]RAPDU: 90 00 [15:49:34]wFMCommunicate OK [15:49:34]SAM_PROTO_ClearQueue done [15:49:34]KKMCreateOFDPacket [15:49:34]OFDProtocolAddRootSTLVToBuf [15:49:34]FM_MakeSignedData [15:49:34]FM_MakeSignedData [15:49:34]SAM_PROTO_SignData [15:49:34]wFMCommunicate request_size=4 [15:49:34]MH_SAM_APDU [15:49:34]CAPDU: 80 0D 01 02 [15:49:34]Write to MH i2c: E2 08 00 9B 17 80 0D 01 02 00 00 00 00 2B [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:49:34]Read from MH i2c: E2 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 9B 17 00 90 00 26 [15:49:34]RAPDU: 90 00 [15:49:34]wFMCommunicate OK [15:49:34]wFMCommunicate request_size=255 [15:49:34]MH_SAM_APDU [15:49:34]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 88 01 00 00 F4 03 04 00 8E C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DF 02 00 35 04 06 00 F9 F1 F6 04 [15:49:34]Write to MH i2c: E2 02 01 9C 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 88 01 00 00 F4 03 04 00 8E C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DF 02 00 35 04 06 00 F9 F1 F6 04 00 00 18 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:34]Read from MH i2c: E2 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 9C 17 00 90 00 27 [15:49:34]RAPDU: 90 00 [15:49:34]wFMCommunicate OK [15:49:34]wFMCommunicate request_size=7 [15:49:34]MH_SAM_APDU [15:49:34]CAPDU: 80 0D 02 02 02 8D 89 [15:49:34]Write to MH i2c: E2 0A 00 9D 17 80 0D 02 02 02 00 8D 89 00 00 48 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:49:34]Read from MH i2c: E2 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 03 00 9D 17 00 90 00 28 [15:49:34]RAPDU: 90 00 [15:49:34]wFMCommunicate OK [15:49:34]wFMCommunicate request_size=4 [15:49:34]MH_SAM_APDU [15:49:34]CAPDU: 80 0D 03 02 [15:49:34]Write to MH i2c: E2 08 00 9E 17 80 0D 03 02 00 00 00 00 30 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:49:34]Read from MH i2c: E2 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 0B 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 0B 00 9E 17 00 94 C9 7E 92 20 0B 3F F9 90 00 01 [15:49:34]RAPDU: 94 C9 7E 92 20 0B 3F F9 90 00 [15:49:34]wFMCommunicate OK [15:49:34]SAM_PROTO_SignData done [15:49:34]FM_MakeSignedData done [15:49:34]CreateOFDProtocolMessage [15:49:34]wFMCommunicate request_size=4 [15:49:34]MH_SAM_APDU [15:49:34]CAPDU: 80 11 00 00 [15:49:34]Write to MH i2c: E2 08 00 9F 17 80 11 00 00 00 00 00 00 30 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:34]Read from MH i2c: E2 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 17 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: E2 17 00 9F 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7E [15:49:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:49:34]wFMCommunicate OK [15:49:34]CreateOFDProtocolMessage done [15:49:34]OFDSenderStorePacket 188363 [15:49:34]StoreOFDPacket docnum=188363 [15:49:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 92 C0 04 01 17 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 88 01 00 00 F4 03 04 00 8E C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DF 02 00 35 04 06 00 F9 F1 F6 04 8D 89 94 C9 7E 92 20 0B 3F F9 [15:49:34]CheckFolder [15:49:34]dirname=/storage/ofd_packets [15:49:34]CheckFolder done [15:49:34]ProducePacketName [15:49:34]name=ofd_packets/00188363 [15:49:34]NVStorageSaveData ofd_packets/00188363 [15:49:34]File name is /storage/ofd_packets/00188363 [15:49:34]Write 298 bytes [15:49:34]NVStorageSaveData done [15:49:34]OFDSenderStorePacket done [15:49:34]KKMCreateOFDPacket done [15:49:34]NVStorageSaveData kkm_last_timestamp [15:49:34]File name is /storage/kkm_last_timestamp [15:49:34]Write 4 bytes [15:49:34]NVStorageSaveData done [15:49:34]ExternCall_PrintAddStr [15:49:34]wPrintStart [15:49:34]Write to MH i2c: 01 00 00 A0 17 B7 [15:49:34]Write i2c OK [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 07 00 [15:49:34]MH_I2C_Read... [15:49:34]Read from MH i2c: 01 07 00 A0 17 00 00 00 00 00 FF 0F CC [15:49:34]RasterBufferAndPrint [15:49:34]line Счет N : (1)210421 [15:49:34]line ИНН: 02508201610067 [15:49:34]line Контрольно-Кассовый Чек [15:49:34]line ПРОДАЖА [15:49:34]line ТРК (МРК, ГНК) : 51 [15:49:34]line Товар: 2710194210 [15:49:34]line ДТ-К-5 [15:49:34]line 9.850 * 76.20 [15:49:34]line = 750.57 [15:49:34]line НДС 12% НСП 1% [15:49:34]line > о реализуемом товаре [15:49:34]line ОКРУГЛЕНИЕ: -0.57 [15:49:34]line ИТОГО: 750.00 [15:49:34]line Внесено: 750.00 [15:49:34]line СДАЧА: 0.00 [15:49:34]line НСП 1% : 6.64 [15:49:34]line НДС 12% : 79.71 [15:49:34]line Наличными: 750.00 [15:49:34]line Безнал.: 0.00 [15:49:34]line Место: АЗС № 86 "Партнер Нефть" [15:49:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:49:34]line СНО: Общий режим [15:49:34]line Чек 392 22.10.2024 15:49 [15:49:34]line Смена: 461 ФФД: 1.0 [15:49:34]line ЗНМ: 0300000155 [15:49:34]line РНМ: 0000000000100030 [15:49:34]line Версия ККМ: 001 [15:49:34]line ФМ: 0000000000965340 [15:49:34]line ФД: 188363 [15:49:34]line ФПД: 274817609928073 [15:49:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T154934&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188363&fm=274817609928073&tin=02508201610067®Number=0000000000100030&sum=75000 [15:49:34]written 0, free lines is 4095 [15:49:34]OFD Sender: Processing packet 188363 [packets to send 1062, broken 1061] [15:49:34]ProducePacketName [15:49:34]name=ofd_packets/00188363 [15:49:34]OFD Sender: To server: pG, [15:49:34]CommunicateWithHost lk.salyk.kg:30040 [15:49:34]ConnectInit lk.salyk.kg [15:49:35]Connected sock=10 [15:49:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 92 C0 04 01 17 78 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 7A 26 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 31 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 88 01 00 00 F4 03 04 00 8E C9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CB DF 02 00 35 04 06 00 F9 F1 F6 04 8D 89 94 C9 7E 92 20 0B 3F F9 [15:49:35]Write to MH i2c: 01 00 00 CB 17 E2 [15:49:35]Write i2c OK [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: 01 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: 01 07 00 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: 01 07 00 CB 17 00 00 00 00 00 6C 0C 61 [15:49:35]RasterBufferAndPrint [15:49:35]line [15:49:35]line [15:49:35]line [15:49:35]line [15:49:35]line [15:49:35]written 0, free lines is 3183 [15:49:35]MH_Cut [15:49:35]Write to MH i2c: D1 01 00 D2 17 01 BB [15:49:35]Write i2c OK [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: D1 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: D1 01 00 [15:49:35]MH_I2C_Read... [15:49:35]Read from MH i2c: D1 01 00 D2 17 00 BA [15:49:35]Write to MH i2c: 01 00 00 D3 17 EA [15:49:35]Write i2c OK [15:49:35]MH_I2C_Read... [15:49:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B1 64 47 00 E8 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 39 36 35 33 34 30 10 04 04 00 CB DF 02 00 F4 03 04 00 7B 73 17 67 B6 04 01 00 00 ED 45 A3 03 E9 7B E3 F0 [15:49:35]CommunicateWithHost err = 0 [15:49:35]CheckOFDResponse [15:49:35]1017 (14) - 77093643461234 [15:49:35]1041 (16) - 0000000000965340 [15:49:35]1040 (4) - 188363 [15:49:35]1012 (4) - 22.10.2024 09:42 [15:49:35]1206 (1) - 0 [15:49:35]OFD Sender: Remove packet 188363 [15:49:35]ProducePacketName [15:49:35]name=ofd_packets/00188363 [15:49:35]NVStorageDeleteData [15:49:35]OFD Sender: No OFD packet to send [15:49:36]*** Cut start [15:49:36]*** Partial cut [15:49:36]*** CUTSNS_PIN = 1 [15:49:36]*** CUTSNS_PIN = 0 [15:49:36]*** Brake cut motor [15:49:37]Read from MH i2c: 01 [15:49:37]MH_I2C_Read... [15:49:37]*** Stop cut motor [15:49:37]*** Cut end [15:49:37]Read from MH i2c: 01 07 00 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: 01 07 00 D3 17 00 00 00 00 00 FF 0F FF [15:49:37]process_action close_receipt done [15:49:37]requested_data is exist [15:49:37]produce_requested_data [15:49:37]requested_item fm.sn is exist - process it [15:49:37]wFMCommunicate request_size=4 [15:49:37]MH_SAM_APDU [15:49:37]CAPDU: 80 11 00 00 [15:49:37]Write to MH i2c: E2 08 00 D4 17 80 11 00 00 00 00 00 00 65 [15:49:37]Write i2c OK [15:49:37]MH_I2C_Read... [15:49:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:49:37]Read from MH i2c: E2 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 17 00 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 17 00 D4 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B3 [15:49:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:49:37]wFMCommunicate OK [15:49:37]requested_item fd.num is exist - process it [15:49:37]SAM_PROTO_GetFieldsCounters [15:49:37]wFMCommunicate request_size=4 [15:49:37]MH_SAM_APDU [15:49:37]CAPDU: 80 13 00 00 [15:49:37]Write to MH i2c: E2 08 00 D5 17 80 13 00 00 00 00 00 00 68 [15:49:37]Write i2c OK [15:49:37]MH_I2C_Read... [15:49:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:49:37]Read from MH i2c: E2 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 62 00 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 62 00 D5 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 84 [15:49:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 88 01 00 00 5E 04 04 00 88 01 00 00 57 04 04 00 89 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:49:37]wFMCommunicate OK [15:49:37]SAM_PROTO_GetFieldsCounters done [15:49:37]requested_item shift.num is exist - process it [15:49:37]requested_item shift.opened is exist - process it [15:49:37]req_shift_opened [15:49:37]FM_GetShiftState [15:49:37]SAM_PROTO_GetShiftState [15:49:37]wFMCommunicate request_size=4 [15:49:37]MH_SAM_APDU [15:49:37]CAPDU: 80 13 01 00 [15:49:37]Write to MH i2c: E2 08 00 D6 17 80 13 01 00 00 00 00 00 6A [15:49:37]Write i2c OK [15:49:37]MH_I2C_Read... [15:49:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:49:37]Read from MH i2c: E2 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 0E 00 [15:49:37]MH_I2C_Read... [15:49:37]Read from MH i2c: E2 0E 00 D6 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5F [15:49:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:49:37]wFMCommunicate OK [15:49:37]SAM_PROTO_GetShiftState done [15:49:37]FM_GetShiftState done [15:49:37]req_shift_opened done [15:49:37]requested_item shift.open_date is exist - process it [15:49:37]req_shift_open_date [15:49:37]req_shift_open_date done [15:49:37]produce_requested_data done [15:49:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188363,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:49:37]process_action_free close_receipt [15:49:37]json_value_free [15:49:37]json_value_free done [15:49:37]process_json_proto returns [15:49:37]Send response to host [15:49:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188363,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:49:37]free response buf [15:49:37]execute_script done [15:49:37]execute_script returns [15:49:37]free content buf [15:49:37]Sock 9.Close socket [15:49:37]Sock 9.Thread stoped [15:49:41]OFD Sender: No OFD packet to send [15:49:46]OFD Sender: No OFD packet to send [15:49:51]OFD Sender: No OFD packet to send [15:49:56]OFD Sender: No OFD packet to send [15:50:01]OFD Sender: No OFD packet to send [15:50:06]OFD Sender: No OFD packet to send [15:50:11]OFD Sender: No OFD packet to send [15:50:16]OFD Sender: No OFD packet to send [15:50:21]OFD Sender: No OFD packet to send [15:50:26]OFD Sender: No OFD packet to send [15:50:31]OFD Sender: No OFD packet to send [15:50:36]OFD Sender: No OFD packet to send [15:50:41]OFD Sender: No OFD packet to send [15:50:46]OFD Sender: No OFD packet to send [15:50:51]OFD Sender: No OFD packet to send [15:50:56]OFD Sender: No OFD packet to send [15:51:01]OFD Sender: No OFD packet to send [15:51:06]OFD Sender: No OFD packet to send [15:51:11]OFD Sender: No OFD packet to send [15:51:16]OFD Sender: No OFD packet to send [15:51:21]OFD Sender: No OFD packet to send [15:51:26]OFD Sender: No OFD packet to send [15:51:31]OFD Sender: No OFD packet to send [15:51:36]OFD Sender: No OFD packet to send [15:51:41]OFD Sender: No OFD packet to send [15:51:46]OFD Sender: No OFD packet to send [15:51:51]OFD Sender: No OFD packet to send [15:51:56]OFD Sender: No OFD packet to send [15:52:01]OFD Sender: No OFD packet to send [15:52:06]OFD Sender: No OFD packet to send [15:52:11]OFD Sender: No OFD packet to send [15:52:16]OFD Sender: No OFD packet to send [15:52:21]OFD Sender: No OFD packet to send [15:52:26]OFD Sender: No OFD packet to send [15:52:31]OFD Sender: No OFD packet to send [15:52:36]OFD Sender: No OFD packet to send [15:52:41]OFD Sender: No OFD packet to send [15:52:46]OFD Sender: No OFD packet to send [15:52:51]OFD Sender: No OFD packet to send [15:52:56]OFD Sender: No OFD packet to send [15:53:01]OFD Sender: No OFD packet to send [15:53:06]OFD Sender: No OFD packet to send [15:53:11]OFD Sender: No OFD packet to send [15:53:16]OFD Sender: No OFD packet to send [15:53:21]OFD Sender: No OFD packet to send [15:53:27]OFD Sender: No OFD packet to send [15:53:32]OFD Sender: No OFD packet to send [15:53:37]OFD Sender: No OFD packet to send [15:53:42]OFD Sender: No OFD packet to send [15:53:47]OFD Sender: No OFD packet to send [15:53:52]OFD Sender: No OFD packet to send [15:53:57]OFD Sender: No OFD packet to send [15:54:02]OFD Sender: No OFD packet to send [15:54:07]OFD Sender: No OFD packet to send [15:54:12]OFD Sender: No OFD packet to send [15:54:17]OFD Sender: No OFD packet to send [15:54:22]OFD Sender: No OFD packet to send [15:54:27]OFD Sender: No OFD packet to send [15:54:32]OFD Sender: No OFD packet to send [15:54:37]OFD Sender: No OFD packet to send [15:54:42]OFD Sender: No OFD packet to send [15:54:46]accept exits with 7 [15:54:46]New connection [15:54:46]New thread 3067161956 created [15:54:46]Thread 3067305316 joined [15:54:46]Waiting for new connection... [15:54:46] Sock 7.Parse request [15:54:46]Sock 7.Check first char [15:54:46]Sock 7.First char is OK [15:54:46]request: POST /json_proto HTTP/1.0 [15:54:46]Method: POST [15:54:46]URL: /json_proto [15:54:46]Method is POST - this is cgi request [15:54:46]url: /json_proto [15:54:46]query_string will be loaded in cgi processing [15:54:46]execute_cgi json_proto POST (null) [15:54:46]execute_cgi path=json_proto method=POST [15:54:46]POST find Content-Length [15:54:46]Host: 172.17.42.131:8080 [15:54:46]Content-Length: 677 [15:54:46]Content-Type: application/json [15:54:46] [15:54:46]POST finish read [15:54:46]Found Content-Length = 677 [15:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:46]execute_script... [15:54:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210423", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:54:46]POST & json_proto [15:54:46]process_json_proto [15:54:46]json parsed OK: [15:54:46]protocol is kg_v1.0 [15:54:46]action value=close_receipt [15:54:46]process_action close_receipt [15:54:46]cmd_close_receipt [15:54:46]MH_GetDate [15:54:46]Write to MH i2c: F0 00 00 D7 17 DD [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: F0 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: F0 09 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: F0 09 00 D7 17 00 C7 CA 17 67 A0 18 CA 66 DD [15:54:46]GetLastDocTimeStamp 1729612174 [15:54:46]current date 1729612487 [15:54:46]FM_GetShiftState [15:54:46]SAM_PROTO_GetShiftState [15:54:46]wFMCommunicate request_size=4 [15:54:46]MH_SAM_APDU [15:54:46]CAPDU: 80 13 01 00 [15:54:46]Write to MH i2c: E2 08 00 D8 17 80 13 01 00 00 00 00 00 6C [15:54:46]Write i2c OK [15:54:46]MH_I2C_Read... [15:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:46]Read from MH i2c: E2 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 [15:54:46]MH_I2C_Read... [15:54:46]Read from MH i2c: E2 0E 00 D8 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 61 [15:54:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:54:46]wFMCommunicate OK [15:54:46]SAM_PROTO_GetShiftState done [15:54:46]FM_GetShiftState done [15:54:46]opened in 1729556094 [15:54:46]opened+sec_in_day 1729642494 [15:54:46]quantity*price = 30038 [15:54:46]sum+1 = 30039 [15:54:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 393 22.10.2024 15:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188364 ФПД: 136617396312726 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188364&fm=136617396312726&tin=02508201610067®Number=0000000000100030&sum=30000 [15:54:47]StoreToDocumentArchive [15:54:47]shift 461 fd 188364 [15:54:47]save to /storage/0461/doc_00188364 [15:54:47]save last doc name /storage/0461/doc_00188364 to /storage/kkm_last_doc_name [15:54:47]save OK [15:54:47]Clear old archive folders... [15:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:54:47]tlvbuf is 01469AB0 [15:54:47]SAM_PROTO_ClearQueue [15:54:47]wFMCommunicate request_size=4 [15:54:47]MH_SAM_APDU [15:54:47]CAPDU: 80 09 00 00 [15:54:47]Write to MH i2c: E2 08 00 E5 17 80 09 00 00 00 00 00 00 6E [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:54:47]Read from MH i2c: E2 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 E5 17 00 90 00 70 [15:54:47]RAPDU: 90 00 [15:54:47]wFMCommunicate OK [15:54:47]SAM_PROTO_ClearQueue done [15:54:47]KKMCreateOFDPacket [15:54:47]OFDProtocolAddRootSTLVToBuf [15:54:47]FM_MakeSignedData [15:54:47]FM_MakeSignedData [15:54:47]SAM_PROTO_SignData [15:54:47]wFMCommunicate request_size=4 [15:54:47]MH_SAM_APDU [15:54:47]CAPDU: 80 0D 01 02 [15:54:47]Write to MH i2c: E2 08 00 E6 17 80 0D 01 02 00 00 00 00 76 [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:54:47]OFD Sender: No OFD packet to send [15:54:47]Read from MH i2c: E2 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 E6 17 00 90 00 71 [15:54:47]RAPDU: 90 00 [15:54:47]wFMCommunicate OK [15:54:47]wFMCommunicate request_size=255 [15:54:47]MH_SAM_APDU [15:54: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 C7 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DF 02 00 35 04 06 00 7C [15:54:47]Write to MH i2c: E2 02 01 E7 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 C7 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DF 02 00 35 04 06 00 7C 00 00 6D [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:47]Read from MH i2c: E2 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 E7 17 00 90 00 72 [15:54:47]RAPDU: 90 00 [15:54:47]wFMCommunicate OK [15:54:47]wFMCommunicate request_size=10 [15:54:47]MH_SAM_APDU [15:54:47]CAPDU: 80 0D 02 02 05 40 B7 60 9A 96 [15:54:47]Write to MH i2c: E2 0D 00 E8 17 80 0D 02 02 05 00 40 B7 60 9A 96 00 00 0A [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:54:47]Read from MH i2c: E2 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 03 00 E8 17 00 90 00 73 [15:54:47]RAPDU: 90 00 [15:54:47]wFMCommunicate OK [15:54:47]wFMCommunicate request_size=4 [15:54:47]MH_SAM_APDU [15:54:47]CAPDU: 80 0D 03 02 [15:54:47]Write to MH i2c: E2 08 00 E9 17 80 0D 03 02 00 00 00 00 7B [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:54:47]Read from MH i2c: E2 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 0B 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 0B 00 E9 17 00 31 3B 24 BF 20 28 BB 01 90 00 CF [15:54:47]RAPDU: 31 3B 24 BF 20 28 BB 01 90 00 [15:54:47]wFMCommunicate OK [15:54:47]SAM_PROTO_SignData done [15:54:47]FM_MakeSignedData done [15:54:47]CreateOFDProtocolMessage [15:54:47]wFMCommunicate request_size=4 [15:54:47]MH_SAM_APDU [15:54:47]CAPDU: 80 11 00 00 [15:54:47]Write to MH i2c: E2 08 00 EA 17 80 11 00 00 00 00 00 00 7B [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:47]Read from MH i2c: E2 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 17 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: E2 17 00 EA 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C9 [15:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:54:47]wFMCommunicate OK [15:54:47]CreateOFDProtocolMessage done [15:54:47]OFDSenderStorePacket 188364 [15:54:47]StoreOFDPacket docnum=188364 [15:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 6D 07 01 8E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 C7 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DF 02 00 35 04 06 00 7C 40 B7 60 9A 96 31 3B 24 BF 20 28 BB 01 [15:54:47]CheckFolder [15:54:47]dirname=/storage/ofd_packets [15:54:47]CheckFolder done [15:54:47]ProducePacketName [15:54:47]name=ofd_packets/00188364 [15:54:47]NVStorageSaveData ofd_packets/00188364 [15:54:47]File name is /storage/ofd_packets/00188364 [15:54:47]Write 301 bytes [15:54:47]NVStorageSaveData done [15:54:47]OFDSenderStorePacket done [15:54:47]KKMCreateOFDPacket done [15:54:47]NVStorageSaveData kkm_last_timestamp [15:54:47]File name is /storage/kkm_last_timestamp [15:54:47]Write 4 bytes [15:54:47]NVStorageSaveData done [15:54:47]ExternCall_PrintAddStr [15:54:47]wPrintStart [15:54:47]Write to MH i2c: 01 00 00 EB 17 02 [15:54:47]Write i2c OK [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: 01 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: 01 07 00 [15:54:47]MH_I2C_Read... [15:54:47]Read from MH i2c: 01 07 00 EB 17 00 00 00 00 00 FF 0F 17 [15:54:47]RasterBufferAndPrint [15:54:47]line Счет N : (1)210423 [15:54:47]line ИНН: 02508201610067 [15:54:47]line Контрольно-Кассовый Чек [15:54:47]line ПРОДАЖА [15:54:47]line ТРК (МРК, ГНК) : 42 [15:54:47]line Товар: 2710124130 [15:54:47]line Аи-92-К-3 [15:54:47]line 4.490 * 66.90 [15:54:47]line = 300.38 [15:54:47]line НДС 12% НСП 1% [15:54:47]line > о реализуемом товаре [15:54:47]line ОКРУГЛЕНИЕ: -0.38 [15:54:47]line ИТОГО: 300.00 [15:54:47]line Внесено: 300.00 [15:54:47]line СДАЧА: 0.00 [15:54:47]line НСП 1% : 2.66 [15:54:47]line НДС 12% : 31.90 [15:54:47]line Наличными: 300.00 [15:54:47]line Безнал.: 0.00 [15:54:47]line Место: АЗС № 86 "Партнер Нефть" [15:54:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:54:47]line СНО: Общий режим [15:54:47]line Чек 393 22.10.2024 15:54 [15:54:47]line Смена: 461 ФФД: 1.0 [15:54:47]line ЗНМ: 0300000155 [15:54:47]line РНМ: 0000000000100030 [15:54:47]line Версия ККМ: 001 [15:54:47]line ФМ: 0000000000965340 [15:54:47]line ФД: 188364 [15:54:47]line ФПД: 136617396312726 [15:54:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188364&fm=136617396312726&tin=02508201610067®Number=0000000000100030&sum=30000 [15:54:47]written 0, free lines is 4095 [15:54:47]OFD Sender: Processing packet 188364 [packets to send 1062, broken 1061] [15:54:47]ProducePacketName [15:54:47]name=ofd_packets/00188364 [15:54:47]OFD Sender: To server: pG, [15:54:47]CommunicateWithHost lk.salyk.kg:30040 [15:54:47]ConnectInit lk.salyk.kg [15:54:48]Connected sock=9 [15:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 24 6D 07 01 8E 99 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 01 00 00 F4 03 04 00 C7 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CC DF 02 00 35 04 06 00 7C 40 B7 60 9A 96 31 3B 24 BF 20 28 BB 01 [15:54:48]Write to MH i2c: 01 00 00 16 18 2E [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 07 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: 01 07 00 16 18 00 00 00 00 00 64 0C A5 [15:54:48]RasterBufferAndPrint [15:54:48]line [15:54:48]line [15:54:48]line [15:54:48]line [15:54:48]line [15:54:48]written 0, free lines is 3176 [15:54:48]MH_Cut [15:54:48]Write to MH i2c: D1 01 00 1D 18 01 07 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: D1 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: D1 01 00 [15:54:48]MH_I2C_Read... [15:54:48]Read from MH i2c: D1 01 00 1D 18 00 06 [15:54:48]Write to MH i2c: 01 00 00 1E 18 36 [15:54:48]Write i2c OK [15:54:48]MH_I2C_Read... [15:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 59 16 47 00 1A 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 39 36 35 33 34 30 10 04 04 00 CC DF 02 00 F4 03 04 00 B4 74 17 67 B6 04 01 00 00 73 DD E7 EB 50 F9 68 80 [15:54:48]CommunicateWithHost err = 0 [15:54:48]CheckOFDResponse [15:54:48]1017 (14) - 77093643461234 [15:54:48]1041 (16) - 0000000000965340 [15:54:48]1040 (4) - 188364 [15:54:48]1012 (4) - 22.10.2024 09:47 [15:54:48]1206 (1) - 0 [15:54:48]OFD Sender: Remove packet 188364 [15:54:48]ProducePacketName [15:54:48]name=ofd_packets/00188364 [15:54:48]NVStorageDeleteData [15:54:49]OFD Sender: No OFD packet to send [15:54:49]*** Cut start [15:54:49]*** Partial cut [15:54:49]*** CUTSNS_PIN = 1 [15:54:49]*** CUTSNS_PIN = 0 [15:54:49]*** Brake cut motor [15:54:50]Read from MH i2c: 01 [15:54:50]MH_I2C_Read... [15:54:50]*** Stop cut motor [15:54:50]*** Cut end [15:54:50]Read from MH i2c: 01 07 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: 01 07 00 1E 18 00 00 00 00 00 FF 0F 4B [15:54:50]process_action close_receipt done [15:54:50]requested_data is exist [15:54:50]produce_requested_data [15:54:50]requested_item fm.sn is exist - process it [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 11 00 00 [15:54:50]Write to MH i2c: E2 08 00 1F 18 80 11 00 00 00 00 00 00 B1 [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:54:50]Read from MH i2c: E2 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 17 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 17 00 1F 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [15:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:54:50]wFMCommunicate OK [15:54:50]requested_item fd.num is exist - process it [15:54:50]SAM_PROTO_GetFieldsCounters [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 13 00 00 [15:54:50]Write to MH i2c: E2 08 00 20 18 80 13 00 00 00 00 00 00 B4 [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:54:50]Read from MH i2c: E2 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 62 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 62 00 20 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 D4 [15:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 89 01 00 00 5E 04 04 00 89 01 00 00 57 04 04 00 8A 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:54:50]wFMCommunicate OK [15:54:50]SAM_PROTO_GetFieldsCounters done [15:54:50]requested_item shift.num is exist - process it [15:54:50]requested_item shift.opened is exist - process it [15:54:50]req_shift_opened [15:54:50]FM_GetShiftState [15:54:50]SAM_PROTO_GetShiftState [15:54:50]wFMCommunicate request_size=4 [15:54:50]MH_SAM_APDU [15:54:50]CAPDU: 80 13 01 00 [15:54:50]Write to MH i2c: E2 08 00 21 18 80 13 01 00 00 00 00 00 B6 [15:54:50]Write i2c OK [15:54:50]MH_I2C_Read... [15:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:54:50]Read from MH i2c: E2 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 0E 00 [15:54:50]MH_I2C_Read... [15:54:50]Read from MH i2c: E2 0E 00 21 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AB [15:54:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:54:50]wFMCommunicate OK [15:54:50]SAM_PROTO_GetShiftState done [15:54:50]FM_GetShiftState done [15:54:50]req_shift_opened done [15:54:50]requested_item shift.open_date is exist - process it [15:54:50]req_shift_open_date [15:54:50]req_shift_open_date done [15:54:50]produce_requested_data done [15:54:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188364,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:54:50]process_action_free close_receipt [15:54:50]json_value_free [15:54:50]json_value_free done [15:54:50]process_json_proto returns [15:54:50]Send response to host [15:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188364,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:54:50]free response buf [15:54:50]execute_script done [15:54:50]execute_script returns [15:54:50]free content buf [15:54:50]Sock 7.Close socket [15:54:50]Sock 7.Thread stoped [15:54:54]OFD Sender: No OFD packet to send [15:54:59]OFD Sender: No OFD packet to send [15:55:04]OFD Sender: No OFD packet to send [15:55:09]OFD Sender: No OFD packet to send [15:55:14]OFD Sender: No OFD packet to send [15:55:19]OFD Sender: No OFD packet to send [15:55:24]OFD Sender: No OFD packet to send [15:55:29]OFD Sender: No OFD packet to send [15:55:31]accept exits with 10 [15:55:31]New connection [15:55:31]New thread 3067305316 created [15:55:31]Thread 3067161956 joined [15:55:31]Waiting for new connection... [15:55:31] Sock 10.Parse request [15:55:31]Sock 10.Check first char [15:55:31]Sock 10.First char is OK [15:55:31]request: POST /json_proto HTTP/1.0 [15:55:31]Method: POST [15:55:31]URL: /json_proto [15:55:31]Method is POST - this is cgi request [15:55:31]url: /json_proto [15:55:31]query_string will be loaded in cgi processing [15:55:31]execute_cgi json_proto POST (null) [15:55:31]execute_cgi path=json_proto method=POST [15:55:31]POST find Content-Length [15:55:31]Host: 172.17.42.131:8080 [15:55:31]Content-Length: 688 [15:55:31]Content-Type: application/json [15:55:31] [15:55:31]POST finish read [15:55:31]Found Content-Length = 688 [15:55:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [15:55:31]execute_script... [15:55: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)210422", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [15:55:31]POST & json_proto [15:55:31]process_json_proto [15:55:31]json parsed OK: [15:55:31]protocol is kg_v1.0 [15:55:31]action value=close_receipt [15:55:31]process_action close_receipt [15:55:31]cmd_close_receipt [15:55:31]MH_GetDate [15:55:31]Write to MH i2c: F0 00 00 22 18 29 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: F0 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: F0 09 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: F0 09 00 22 18 00 F5 CA 17 67 A0 18 CA 66 57 [15:55:31]GetLastDocTimeStamp 1729612487 [15:55:31]current date 1729612533 [15:55:31]FM_GetShiftState [15:55:31]SAM_PROTO_GetShiftState [15:55:31]wFMCommunicate request_size=4 [15:55:31]MH_SAM_APDU [15:55:31]CAPDU: 80 13 01 00 [15:55:31]Write to MH i2c: E2 08 00 23 18 80 13 01 00 00 00 00 00 B8 [15:55:31]Write i2c OK [15:55:31]MH_I2C_Read... [15:55:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:31]Read from MH i2c: E2 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 0E 00 [15:55:31]MH_I2C_Read... [15:55:31]Read from MH i2c: E2 0E 00 23 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AD [15:55:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:55:31]wFMCommunicate OK [15:55:31]SAM_PROTO_GetShiftState done [15:55:31]FM_GetShiftState done [15:55:31]opened in 1729556094 [15:55:31]opened+sec_in_day 1729642494 [15:55:31]quantity*price = 200025 [15:55:31]sum+1 = 200026 [15:55:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 394 22.10.2024 15:55 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188365 ФПД: 130871884271504 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155533&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188365&fm=130871884271504&tin=02508201610067®Number=0000000000100030&sum=200000 [15:55:32]StoreToDocumentArchive [15:55:32]shift 461 fd 188365 [15:55:32]save to /storage/0461/doc_00188365 [15:55:32]save last doc name /storage/0461/doc_00188365 to /storage/kkm_last_doc_name [15:55:32]save OK [15:55:32]Clear old archive folders... [15:55:32]ProcessDocumentItem done err = 0, tmpTLVsize=257 [15:55:32]tlvbuf is 0146A250 [15:55:32]SAM_PROTO_ClearQueue [15:55:32]wFMCommunicate request_size=4 [15:55:32]MH_SAM_APDU [15:55:32]CAPDU: 80 09 00 00 [15:55:32]Write to MH i2c: E2 08 00 30 18 80 09 00 00 00 00 00 00 BA [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:55:32]Read from MH i2c: E2 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: E2 03 00 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: E2 03 00 30 18 00 90 00 BC [15:55:32]RAPDU: 90 00 [15:55:32]wFMCommunicate OK [15:55:32]SAM_PROTO_ClearQueue done [15:55:32]KKMCreateOFDPacket [15:55:32]OFDProtocolAddRootSTLVToBuf [15:55:32]FM_MakeSignedData [15:55:32]FM_MakeSignedData [15:55:32]SAM_PROTO_SignData [15:55:32]wFMCommunicate request_size=4 [15:55:32]MH_SAM_APDU [15:55:32]CAPDU: 80 0D 01 02 [15:55:32]Write to MH i2c: E2 08 00 31 18 80 0D 01 02 00 00 00 00 C2 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:55:32]Read from MH i2c: E2 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: E2 03 00 [15:55:32]MH_I2C_Read... [15:55:32]Read from MH i2c: E2 03 00 31 18 00 90 00 BD [15:55:32]RAPDU: 90 00 [15:55:32]wFMCommunicate OK [15:55:32]wFMCommunicate request_size=255 [15:55:32]MH_SAM_APDU [15:55:32]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8A 01 00 00 F4 03 04 00 F5 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DF 02 [15:55:32]Write to MH i2c: E2 02 01 32 18 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8A 01 00 00 F4 03 04 00 F5 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DF 02 00 00 A7 [15:55:32]Write i2c OK [15:55:32]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 03 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 03 00 32 18 00 90 00 BE [15:55:33]RAPDU: 90 00 [15:55:33]wFMCommunicate OK [15:55:33]wFMCommunicate request_size=16 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 77 06 FC 2C 4F 90 [15:55:33]Write to MH i2c: E2 13 00 33 18 80 0D 02 02 0B 00 00 35 04 06 00 77 06 FC 2C 4F 90 00 00 9E [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 03 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 03 00 33 18 00 90 00 BF [15:55:33]RAPDU: 90 00 [15:55:33]wFMCommunicate OK [15:55:33]wFMCommunicate request_size=4 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 0D 03 02 [15:55:33]Write to MH i2c: E2 08 00 34 18 80 0D 03 02 00 00 00 00 C7 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 0B 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 0B 00 34 18 00 6C 94 3E 18 4E 1C DF 46 90 00 AD [15:55:33]RAPDU: 6C 94 3E 18 4E 1C DF 46 90 00 [15:55:33]wFMCommunicate OK [15:55:33]SAM_PROTO_SignData done [15:55:33]FM_MakeSignedData done [15:55:33]CreateOFDProtocolMessage [15:55:33]wFMCommunicate request_size=4 [15:55:33]MH_SAM_APDU [15:55:33]CAPDU: 80 11 00 00 [15:55:33]Write to MH i2c: E2 08 00 35 18 80 11 00 00 00 00 00 00 C7 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:33]Read from MH i2c: E2 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 17 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: E2 17 00 35 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 15 [15:55:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:55:33]wFMCommunicate OK [15:55:33]CreateOFDProtocolMessage done [15:55:33]OFDSenderStorePacket 188365 [15:55:33]StoreOFDPacket docnum=188365 [15:55:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 30 F0 0D 01 5A 1B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8A 01 00 00 F4 03 04 00 F5 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DF 02 00 35 04 06 00 77 06 FC 2C 4F 90 6C 94 3E 18 4E 1C DF 46 [15:55:33]CheckFolder [15:55:33]dirname=/storage/ofd_packets [15:55:33]CheckFolder done [15:55:33]ProducePacketName [15:55:33]name=ofd_packets/00188365 [15:55:33]NVStorageSaveData ofd_packets/00188365 [15:55:33]File name is /storage/ofd_packets/00188365 [15:55:33]Write 307 bytes [15:55:33]NVStorageSaveData done [15:55:33]OFDSenderStorePacket done [15:55:33]KKMCreateOFDPacket done [15:55:33]NVStorageSaveData kkm_last_timestamp [15:55:33]File name is /storage/kkm_last_timestamp [15:55:33]Write 4 bytes [15:55:33]NVStorageSaveData done [15:55:33]ExternCall_PrintAddStr [15:55:33]wPrintStart [15:55:33]Write to MH i2c: 01 00 00 36 18 4E [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 07 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 07 00 36 18 00 00 00 00 00 FF 0F 63 [15:55:33]RasterBufferAndPrint [15:55:33]line Счет N : (1)210422 [15:55:33]line ИНН: 02508201610067 [15:55:33]line Контрольно-Кассовый Чек [15:55:33]line ПРОДАЖА [15:55:33]line ТРК (МРК, ГНК) : 21 [15:55:33]line Товар: 2710194210 [15:55:33]line D-ENERGY ДТ-К-5 [15:55:33]line 25.910 * 77.20 [15:55:33]line = 2000.25 [15:55:33]line НДС 12% НСП 1% [15:55:33]line > о реализуемом товаре [15:55:33]line ОКРУГЛЕНИЕ: -0.25 [15:55:33]line ИТОГО: 2000.00 [15:55:33]line Внесено: 2000.00 [15:55:33]line СДАЧА: 0.00 [15:55:33]line НСП 1% : 17.70 [15:55:33]line НДС 12% : 212.42 [15:55:33]line Наличными: 2000.00 [15:55:33]line Безнал.: 0.00 [15:55:33]line Место: АЗС № 86 "Партнер Нефть" [15:55:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:55:33]line СНО: Общий режим [15:55:33]line Чек 394 22.10.2024 15:55 [15:55:33]line Смена: 461 ФФД: 1.0 [15:55:33]line ЗНМ: 0300000155 [15:55:33]line РНМ: 0000000000100030 [15:55:33]line Версия ККМ: 001 [15:55:33]line ФМ: 0000000000965340 [15:55:33]line ФД: 188365 [15:55:33]line ФПД: 130871884271504 [15:55:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155533&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188365&fm=130871884271504&tin=02508201610067®Number=0000000000100030&sum=200000 [15:55:33]written 0, free lines is 4095 [15:55:33]OFD Sender: Processing packet 188365 [packets to send 1062, broken 1061] [15:55:33]ProducePacketName [15:55:33]name=ofd_packets/00188365 [15:55:33]OFD Sender: To server: pG, [15:55:33]CommunicateWithHost lk.salyk.kg:30040 [15:55:33]ConnectInit lk.salyk.kg [15:55:33]Connected sock=9 [15:55:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 30 F0 0D 01 5A 1B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 8A 01 00 00 F4 03 04 00 F5 CA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DF 02 00 35 04 06 00 77 06 FC 2C 4F 90 6C 94 3E 18 4E 1C DF 46 [15:55:33]Write to MH i2c: 01 00 00 61 18 79 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 07 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: 01 07 00 61 18 00 00 00 00 00 6B 0C F7 [15:55:33]RasterBufferAndPrint [15:55:33]line [15:55:33]line [15:55:33]line [15:55:33]line [15:55:33]line [15:55:33]written 0, free lines is 3183 [15:55:33]MH_Cut [15:55:33]Write to MH i2c: D1 01 00 68 18 01 52 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: D1 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: D1 01 00 [15:55:33]MH_I2C_Read... [15:55:33]Read from MH i2c: D1 01 00 68 18 00 51 [15:55:33]Write to MH i2c: 01 00 00 69 18 81 [15:55:33]Write i2c OK [15:55:33]MH_I2C_Read... [15:55:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C8 F9 47 00 93 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CD DF 02 00 F4 03 04 00 E2 74 17 67 B6 04 01 00 00 25 C4 93 33 A7 5F 65 DB [15:55:34]CommunicateWithHost err = 0 [15:55:34]CheckOFDResponse [15:55:34]1017 (14) - 77093643461234 [15:55:34]1041 (16) - 0000000000965340 [15:55:34]1040 (4) - 188365 [15:55:34]1012 (4) - 22.10.2024 09:48 [15:55:34]1206 (1) - 0 [15:55:34]OFD Sender: Remove packet 188365 [15:55:34]ProducePacketName [15:55:34]name=ofd_packets/00188365 [15:55:34]NVStorageDeleteData [15:55:34]OFD Sender: No OFD packet to send [15:55:35]*** Cut start [15:55:35]*** Partial cut [15:55:35]*** CUTSNS_PIN = 1 [15:55:35]*** CUTSNS_PIN = 0 [15:55:35]*** Brake cut motor [15:55:35]Read from MH i2c: 01 [15:55:35]MH_I2C_Read... [15:55:35]*** Stop cut motor [15:55:35]*** Cut end [15:55:35]Read from MH i2c: 01 07 00 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: 01 07 00 69 18 00 00 00 00 00 FF 0F 96 [15:55:35]process_action close_receipt done [15:55:35]requested_data is exist [15:55:35]produce_requested_data [15:55:35]requested_item fm.sn is exist - process it [15:55:35]wFMCommunicate request_size=4 [15:55:35]MH_SAM_APDU [15:55:35]CAPDU: 80 11 00 00 [15:55:35]Write to MH i2c: E2 08 00 6A 18 80 11 00 00 00 00 00 00 FC [15:55:35]Write i2c OK [15:55:35]MH_I2C_Read... [15:55:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:55:35]Read from MH i2c: E2 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: E2 17 00 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: E2 17 00 6A 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [15:55:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:55:35]wFMCommunicate OK [15:55:35]requested_item fd.num is exist - process it [15:55:35]SAM_PROTO_GetFieldsCounters [15:55:35]wFMCommunicate request_size=4 [15:55:35]MH_SAM_APDU [15:55:35]CAPDU: 80 13 00 00 [15:55:35]Write to MH i2c: E2 08 00 6B 18 80 13 00 00 00 00 00 00 FF [15:55:35]Write i2c OK [15:55:35]MH_I2C_Read... [15:55:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:55:35]Read from MH i2c: E2 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: E2 62 00 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: E2 62 00 6B 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 23 [15:55:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8A 01 00 00 5E 04 04 00 8A 01 00 00 57 04 04 00 8B 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:55:35]wFMCommunicate OK [15:55:35]SAM_PROTO_GetFieldsCounters done [15:55:35]requested_item shift.num is exist - process it [15:55:35]requested_item shift.opened is exist - process it [15:55:35]req_shift_opened [15:55:35]FM_GetShiftState [15:55:35]SAM_PROTO_GetShiftState [15:55:35]wFMCommunicate request_size=4 [15:55:35]MH_SAM_APDU [15:55:35]CAPDU: 80 13 01 00 [15:55:35]Write to MH i2c: E2 08 00 6C 18 80 13 01 00 00 00 00 00 01 [15:55:35]Write i2c OK [15:55:35]MH_I2C_Read... [15:55:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:55:35]Read from MH i2c: E2 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: E2 0E 00 [15:55:35]MH_I2C_Read... [15:55:35]Read from MH i2c: E2 0E 00 6C 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F6 [15:55:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:55:35]wFMCommunicate OK [15:55:35]SAM_PROTO_GetShiftState done [15:55:35]FM_GetShiftState done [15:55:35]req_shift_opened done [15:55:36]requested_item shift.open_date is exist - process it [15:55:36]req_shift_open_date [15:55:36]req_shift_open_date done [15:55:36]produce_requested_data done [15:55:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188365,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:55:36]process_action_free close_receipt [15:55:36]json_value_free [15:55:36]json_value_free done [15:55:36]process_json_proto returns [15:55:36]Send response to host [15:55:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188365,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:55:36]free response buf [15:55:36]execute_script done [15:55:36]execute_script returns [15:55:36]free content buf [15:55:36]Sock 10.Close socket [15:55:36]Sock 10.Thread stoped [15:55:39]OFD Sender: No OFD packet to send [15:55:44]OFD Sender: No OFD packet to send [15:55:49]OFD Sender: No OFD packet to send [15:55:54]OFD Sender: No OFD packet to send [15:55:59]OFD Sender: No OFD packet to send [15:56:04]OFD Sender: No OFD packet to send [15:56:09]OFD Sender: No OFD packet to send [15:56:14]OFD Sender: No OFD packet to send [15:56:19]OFD Sender: No OFD packet to send [15:56:24]OFD Sender: No OFD packet to send [15:56:29]OFD Sender: No OFD packet to send [15:56:34]OFD Sender: No OFD packet to send [15:56:39]OFD Sender: No OFD packet to send [15:56:44]OFD Sender: No OFD packet to send [15:56:49]OFD Sender: No OFD packet to send [15:56:54]OFD Sender: No OFD packet to send [15:56:59]OFD Sender: No OFD packet to send [15:57:05]OFD Sender: No OFD packet to send [15:57:10]OFD Sender: No OFD packet to send [15:57:15]OFD Sender: No OFD packet to send [15:57:20]OFD Sender: No OFD packet to send [15:57:25]OFD Sender: No OFD packet to send [15:57:30]OFD Sender: No OFD packet to send [15:57:35]OFD Sender: No OFD packet to send [15:57:40]OFD Sender: No OFD packet to send [15:57:45]OFD Sender: No OFD packet to send [15:57:50]OFD Sender: No OFD packet to send [15:57:55]OFD Sender: No OFD packet to send [15:58:00]OFD Sender: No OFD packet to send [15:58:05]OFD Sender: No OFD packet to send [15:58:10]OFD Sender: No OFD packet to send [15:58:15]OFD Sender: No OFD packet to send [15:58:20]OFD Sender: No OFD packet to send [15:58:25]OFD Sender: No OFD packet to send [15:58:30]OFD Sender: No OFD packet to send [15:58:35]OFD Sender: No OFD packet to send [15:58:40]OFD Sender: No OFD packet to send [15:58:45]OFD Sender: No OFD packet to send [15:58:49]accept exits with 7 [15:58:49]New connection [15:58:49]New thread 3067161956 created [15:58:49]Thread 3067305316 joined [15:58:49]Waiting for new connection... [15:58:49] Sock 7.Parse request [15:58:49]Sock 7.Check first char [15:58:49]Sock 7.First char is OK [15:58:49]request: POST /json_proto HTTP/1.0 [15:58:49]Method: POST [15:58:49]URL: /json_proto [15:58:49]Method is POST - this is cgi request [15:58:49]url: /json_proto [15:58:49]query_string will be loaded in cgi processing [15:58:49]execute_cgi json_proto POST (null) [15:58:49]execute_cgi path=json_proto method=POST [15:58:49]POST find Content-Length [15:58:49]Host: 172.17.42.131:8080 [15:58:49]Content-Length: 800 [15:58:49]Content-Type: application/json [15:58:49] [15:58:49]POST finish read [15:58:49]Found Content-Length = 800 [15:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4219080", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:49]execute_script... [15:58: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)210424", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4219080", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:58:49]POST & json_proto [15:58:49]process_json_proto [15:58:49]json parsed OK: [15:58:49]protocol is kg_v1.0 [15:58:49]action value=close_receipt [15:58:49]process_action close_receipt [15:58:49]cmd_close_receipt [15:58:49]MH_GetDate [15:58:49]Write to MH i2c: F0 00 00 6D 18 74 [15:58:49]Write i2c OK [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: F0 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: F0 09 00 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: F0 09 00 6D 18 00 BB CB 17 67 A0 18 CA 66 69 [15:58:49]GetLastDocTimeStamp 1729612533 [15:58:49]current date 1729612731 [15:58:49]FM_GetShiftState [15:58:49]SAM_PROTO_GetShiftState [15:58:49]wFMCommunicate request_size=4 [15:58:49]MH_SAM_APDU [15:58:49]CAPDU: 80 13 01 00 [15:58:49]Write to MH i2c: E2 08 00 6E 18 80 13 01 00 00 00 00 00 03 [15:58:49]Write i2c OK [15:58:49]MH_I2C_Read... [15:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:49]Read from MH i2c: E2 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 0E 00 [15:58:49]MH_I2C_Read... [15:58:49]Read from MH i2c: E2 0E 00 6E 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F8 [15:58:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:58:49]wFMCommunicate OK [15:58:49]SAM_PROTO_GetShiftState done [15:58:49]FM_GetShiftState done [15:58:49]opened in 1729556094 [15:58:49]opened+sec_in_day 1729642494 [15:58:49]quantity*price = 0 [15:58:49]sum+1 = 1 [15:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 395 22.10.2024 15:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4219080 ФМ: 0000000000965340 ФД: 188366 ФПД: 49038285942746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188366&fm=49038285942746&tin=02508201610067®Number=0000000000100030&sum=0 [15:58:51]StoreToDocumentArchive [15:58:51]shift 461 fd 188366 [15:58:51]save to /storage/0461/doc_00188366 [15:58:51]save last doc name /storage/0461/doc_00188366 to /storage/kkm_last_doc_name [15:58:51]save OK [15:58:51]Clear old archive folders... [15:58:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [15:58:51]tlvbuf is 014B7330 [15:58:51]SAM_PROTO_ClearQueue [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 09 00 00 [15:58:51]Write to MH i2c: E2 08 00 7B 18 80 09 00 00 00 00 00 00 05 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 7B 18 00 90 00 07 [15:58:51]RAPDU: 90 00 [15:58:51]wFMCommunicate OK [15:58:51]SAM_PROTO_ClearQueue done [15:58:51]KKMCreateOFDPacket [15:58:51]OFDProtocolAddRootSTLVToBuf [15:58:51]FM_MakeSignedData [15:58:51]FM_MakeSignedData [15:58:51]SAM_PROTO_SignData [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 0D 01 02 [15:58:51]Write to MH i2c: E2 08 00 7C 18 80 0D 01 02 00 00 00 00 0D [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 7C 18 00 90 00 08 [15:58:51]RAPDU: 90 00 [15:58:51]wFMCommunicate OK [15:58:51]wFMCommunicate request_size=255 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 BB CB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DF 02 00 35 04 06 00 2C [15:58:51]Write to MH i2c: E2 02 01 7D 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 BB CB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DF 02 00 35 04 06 00 2C 00 00 6B [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 7D 18 00 90 00 09 [15:58:51]RAPDU: 90 00 [15:58:51]wFMCommunicate OK [15:58:51]wFMCommunicate request_size=10 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 0D 02 02 05 99 9D 9D 2F DA [15:58:51]Write to MH i2c: E2 0D 00 7E 18 80 0D 02 02 05 00 99 9D 9D 2F DA 00 00 F6 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 03 00 7E 18 00 90 00 0A [15:58:51]RAPDU: 90 00 [15:58:51]wFMCommunicate OK [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 0D 03 02 [15:58:51]Write to MH i2c: E2 08 00 7F 18 80 0D 03 02 00 00 00 00 12 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 0B 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 0B 00 7F 18 00 8C 17 05 10 72 1D 04 90 90 00 EE [15:58:51]RAPDU: 8C 17 05 10 72 1D 04 90 90 00 [15:58:51]wFMCommunicate OK [15:58:51]SAM_PROTO_SignData done [15:58:51]FM_MakeSignedData done [15:58:51]CreateOFDProtocolMessage [15:58:51]wFMCommunicate request_size=4 [15:58:51]MH_SAM_APDU [15:58:51]CAPDU: 80 11 00 00 [15:58:51]Write to MH i2c: E2 08 00 80 18 80 11 00 00 00 00 00 00 12 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:51]Read from MH i2c: E2 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 17 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: E2 17 00 80 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 60 [15:58:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:58:51]wFMCommunicate OK [15:58:51]CreateOFDProtocolMessage done [15:58:51]OFDSenderStorePacket 188366 [15:58:51]StoreOFDPacket docnum=188366 [15:58:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E 18 07 01 F2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 BB CB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DF 02 00 35 04 06 00 2C 99 9D 9D 2F DA 8C 17 05 10 72 1D 04 90 [15:58:51]CheckFolder [15:58:51]dirname=/storage/ofd_packets [15:58:51]CheckFolder done [15:58:51]ProducePacketName [15:58:51]name=ofd_packets/00188366 [15:58:51]NVStorageSaveData ofd_packets/00188366 [15:58:51]File name is /storage/ofd_packets/00188366 [15:58:51]Write 301 bytes [15:58:51]NVStorageSaveData done [15:58:51]OFDSenderStorePacket done [15:58:51]KKMCreateOFDPacket done [15:58:51]NVStorageSaveData kkm_last_timestamp [15:58:51]File name is /storage/kkm_last_timestamp [15:58:51]Write 4 bytes [15:58:51]NVStorageSaveData done [15:58:51]ExternCall_PrintAddStr [15:58:51]wPrintStart [15:58:51]Write to MH i2c: 01 00 00 81 18 99 [15:58:51]Write i2c OK [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: 01 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: 01 07 00 [15:58:51]MH_I2C_Read... [15:58:51]Read from MH i2c: 01 07 00 81 18 00 00 00 00 00 FF 0F AE [15:58:51]RasterBufferAndPrint [15:58:51]line Счет N : (1)210424 [15:58:51]line ИНН: 02508201610067 [15:58:51]line Контрольно-Кассовый Чек [15:58:51]line ПРОДАЖА [15:58:51]line ТРК (МРК, ГНК) : 12 [15:58:51]line Товар: 2710124130 [15:58:51]line Аи-92-К-3 [15:58:51]line 10.000 * 0.00 [15:58:51]line = 0.00 [15:58:51]line НДС 12% НСП 1% [15:58:51]line > о реализуемом товаре [15:58:51]line ИТОГО: 0.00 [15:58:51]line НСП 1% : 0.00 [15:58:51]line НДС 12% : 0.00 [15:58:51]line Наличными: 0.00 [15:58:51]line Безнал.: 0.00 [15:58:51]line Место: АЗС № 86 "Партнер Нефть" [15:58:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [15:58:51]line СНО: Общий режим [15:58:51]line Чек 395 22.10.2024 15:58 [15:58:51]line Смена: 461 ФФД: 1.0 [15:58:51]line ЗНМ: 0300000155 [15:58:51]line РНМ: 0000000000100030 [15:58:51]line Версия ККМ: 001 [15:58:51]line Талоны: Топливные Талоны [15:58:51]line 4219080 [15:58:51]line ФМ: 0000000000965340 [15:58:51]line ФД: 188366 [15:58:51]line ФПД: 49038285942746 [15:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T155851&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188366&fm=49038285942746&tin=02508201610067®Number=0000000000100030&sum=0 [15:58:51]written 0, free lines is 4095 [15:58:51]OFD Sender: Processing packet 188366 [packets to send 1062, broken 1061] [15:58:51]ProducePacketName [15:58:51]name=ofd_packets/00188366 [15:58:51]OFD Sender: To server: pG, [15:58:51]CommunicateWithHost lk.salyk.kg:30040 [15:58:51]ConnectInit lk.salyk.kg [15:58:51]Connected sock=10 [15:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9E 18 07 01 F2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 01 00 00 F4 03 04 00 BB CB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DF 02 00 35 04 06 00 2C 99 9D 9D 2F DA 8C 17 05 10 72 1D 04 90 [15:58:52]Write to MH i2c: 01 00 00 AB 18 C3 [15:58:52]Write i2c OK [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: 01 [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: 01 07 00 [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: 01 07 00 AB 18 00 00 00 00 00 7C 0C 52 [15:58:52]RasterBufferAndPrint [15:58:52]line [15:58:52]line [15:58:52]line [15:58:52]line [15:58:52]line [15:58:52]written 0, free lines is 3200 [15:58:52]MH_Cut [15:58:52]Write to MH i2c: D1 01 00 B2 18 01 9C [15:58:52]Write i2c OK [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: D1 [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: D1 01 00 [15:58:52]MH_I2C_Read... [15:58:52]Read from MH i2c: D1 01 00 B2 18 00 9B [15:58:52]Write to MH i2c: 01 00 00 B3 18 CB [15:58:52]Write i2c OK [15:58:52]MH_I2C_Read... [15:58:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 40 47 00 58 61 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CE DF 02 00 F4 03 04 00 A8 75 17 67 B6 04 01 00 00 7D 7B EE 81 81 E5 59 05 [15:58:52]CommunicateWithHost err = 0 [15:58:52]CheckOFDResponse [15:58:52]1017 (14) - 77093643461234 [15:58:52]1041 (16) - 0000000000965340 [15:58:52]1040 (4) - 188366 [15:58:52]1012 (4) - 22.10.2024 09:51 [15:58:52]1206 (1) - 0 [15:58:52]OFD Sender: Remove packet 188366 [15:58:52]ProducePacketName [15:58:52]name=ofd_packets/00188366 [15:58:52]NVStorageDeleteData [15:58:52]OFD Sender: No OFD packet to send [15:58:53]*** Cut start [15:58:53]*** Partial cut [15:58:53]*** CUTSNS_PIN = 1 [15:58:53]*** CUTSNS_PIN = 0 [15:58:53]*** Brake cut motor [15:58:53]Read from MH i2c: 01 [15:58:53]MH_I2C_Read... [15:58:53]*** Stop cut motor [15:58:53]*** Cut end [15:58:53]Read from MH i2c: 01 07 00 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 FF 0F E0 [15:58:53]process_action close_receipt done [15:58:53]requested_data is exist [15:58:53]produce_requested_data [15:58:53]requested_item fm.sn is exist - process it [15:58:53]wFMCommunicate request_size=4 [15:58:53]MH_SAM_APDU [15:58:53]CAPDU: 80 11 00 00 [15:58:53]Write to MH i2c: E2 08 00 B4 18 80 11 00 00 00 00 00 00 46 [15:58:53]Write i2c OK [15:58:53]MH_I2C_Read... [15:58:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:58:53]Read from MH i2c: E2 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: E2 17 00 [15:58:53]MH_I2C_Read... [15:58:53]Read from MH i2c: E2 17 00 B4 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [15:58:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [15:58:53]wFMCommunicate OK [15:58:53]requested_item fd.num is exist - process it [15:58:53]SAM_PROTO_GetFieldsCounters [15:58:53]wFMCommunicate request_size=4 [15:58:53]MH_SAM_APDU [15:58:53]CAPDU: 80 13 00 00 [15:58:53]Write to MH i2c: E2 08 00 B5 18 80 13 00 00 00 00 00 00 49 [15:58:53]Write i2c OK [15:58:53]MH_I2C_Read... [15:58:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:58:54]Read from MH i2c: E2 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: E2 62 00 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: E2 62 00 B5 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 71 [15:58:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8B 01 00 00 5E 04 04 00 8B 01 00 00 57 04 04 00 8C 01 00 00 19 04 04 00 00 00 00 00 90 00 [15:58:54]wFMCommunicate OK [15:58:54]SAM_PROTO_GetFieldsCounters done [15:58:54]requested_item shift.num is exist - process it [15:58:54]requested_item shift.opened is exist - process it [15:58:54]req_shift_opened [15:58:54]FM_GetShiftState [15:58:54]SAM_PROTO_GetShiftState [15:58:54]wFMCommunicate request_size=4 [15:58:54]MH_SAM_APDU [15:58:54]CAPDU: 80 13 01 00 [15:58:54]Write to MH i2c: E2 08 00 B6 18 80 13 01 00 00 00 00 00 4B [15:58:54]Write i2c OK [15:58:54]MH_I2C_Read... [15:58:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:58:54]Read from MH i2c: E2 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: E2 0E 00 [15:58:54]MH_I2C_Read... [15:58:54]Read from MH i2c: E2 0E 00 B6 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 40 [15:58:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [15:58:54]wFMCommunicate OK [15:58:54]SAM_PROTO_GetShiftState done [15:58:54]FM_GetShiftState done [15:58:54]req_shift_opened done [15:58:54]requested_item shift.open_date is exist - process it [15:58:54]req_shift_open_date [15:58:54]req_shift_open_date done [15:58:54]produce_requested_data done [15:58:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188366,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [15:58:54]process_action_free close_receipt [15:58:54]json_value_free [15:58:54]json_value_free done [15:58:54]process_json_proto returns [15:58:54]Send response to host [15:58:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188366,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [15:58:54]free response buf [15:58:54]execute_script done [15:58:54]execute_script returns [15:58:54]free content buf [15:58:54]Sock 7.Close socket [15:58:54]Sock 7.Thread stoped [15:58:57]OFD Sender: No OFD packet to send [15:59:02]OFD Sender: No OFD packet to send [15:59:07]OFD Sender: No OFD packet to send [15:59:12]OFD Sender: No OFD packet to send [15:59:17]OFD Sender: No OFD packet to send [15:59:22]OFD Sender: No OFD packet to send [15:59:27]OFD Sender: No OFD packet to send [15:59:32]OFD Sender: No OFD packet to send [15:59:37]OFD Sender: No OFD packet to send [15:59:42]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:53]OFD Sender: No OFD packet to send [15:59:58]OFD Sender: No OFD packet to send [16:00:03]OFD Sender: No OFD packet to send [16:00:05]accept exits with 9 [16:00:05]New connection [16:00:05]New thread 3067305316 created [16:00:05]Thread 3067161956 joined [16:00:05]Waiting for new connection... [16:00:05] Sock 9.Parse request [16:00:05]Sock 9.Check first char [16:00:05]Sock 9.First char is OK [16:00:05]request: POST /json_proto HTTP/1.0 [16:00:05]Method: POST [16:00:05]URL: /json_proto [16:00:05]Method is POST - this is cgi request [16:00:05]url: /json_proto [16:00:05]query_string will be loaded in cgi processing [16:00:05]execute_cgi json_proto POST (null) [16:00:05]execute_cgi path=json_proto method=POST [16:00:05]POST find Content-Length [16:00:05]Host: 172.17.42.131:8080 [16:00:05]Content-Length: 800 [16:00:05]Content-Type: application/json [16:00:05] [16:00:05]POST finish read [16:00:05]Found Content-Length = 800 [16:00:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4219081", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:05]execute_script... [16:00: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)210425", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4219081", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:05]POST & json_proto [16:00:05]process_json_proto [16:00:05]json parsed OK: [16:00:05]protocol is kg_v1.0 [16:00:05]action value=close_receipt [16:00:05]process_action close_receipt [16:00:05]cmd_close_receipt [16:00:05]MH_GetDate [16:00:05]Write to MH i2c: F0 00 00 B7 18 BE [16:00:05]Write i2c OK [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: F0 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: F0 09 00 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: F0 09 00 B7 18 00 06 CC 17 67 A0 18 CA 66 FF [16:00:05]GetLastDocTimeStamp 1729612731 [16:00:05]current date 1729612806 [16:00:05]FM_GetShiftState [16:00:05]SAM_PROTO_GetShiftState [16:00:05]wFMCommunicate request_size=4 [16:00:05]MH_SAM_APDU [16:00:05]CAPDU: 80 13 01 00 [16:00:05]Write to MH i2c: E2 08 00 B8 18 80 13 01 00 00 00 00 00 4D [16:00:05]Write i2c OK [16:00:05]MH_I2C_Read... [16:00:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:05]Read from MH i2c: E2 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: E2 0E 00 [16:00:05]MH_I2C_Read... [16:00:05]Read from MH i2c: E2 0E 00 B8 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 42 [16:00:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:00:05]wFMCommunicate OK [16:00:05]SAM_PROTO_GetShiftState done [16:00:05]FM_GetShiftState done [16:00:05]opened in 1729556094 [16:00:05]opened+sec_in_day 1729642494 [16:00:05]quantity*price = 0 [16:00:05]sum+1 = 1 [16:00:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 396 22.10.2024 16:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4219081 ФМ: 0000000000965340 ФД: 188367 ФПД: 191926979318483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188367&fm=191926979318483&tin=02508201610067®Number=0000000000100030&sum=0 [16:00:06]StoreToDocumentArchive [16:00:06]shift 461 fd 188367 [16:00:06]save to /storage/0461/doc_00188367 [16:00:06]save last doc name /storage/0461/doc_00188367 to /storage/kkm_last_doc_name [16:00:06]save OK [16:00:06]Clear old archive folders... [16:00:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:06]tlvbuf is 014AA000 [16:00:06]SAM_PROTO_ClearQueue [16:00:06]wFMCommunicate request_size=4 [16:00:06]MH_SAM_APDU [16:00:06]CAPDU: 80 09 00 00 [16:00:06]Write to MH i2c: E2 08 00 C5 18 80 09 00 00 00 00 00 00 4F [16:00:06]Write i2c OK [16:00:06]MH_I2C_Read... [16:00:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:06]Read from MH i2c: E2 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 03 00 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 03 00 C5 18 00 90 00 51 [16:00:06]RAPDU: 90 00 [16:00:06]wFMCommunicate OK [16:00:06]SAM_PROTO_ClearQueue done [16:00:06]KKMCreateOFDPacket [16:00:06]OFDProtocolAddRootSTLVToBuf [16:00:06]FM_MakeSignedData [16:00:06]FM_MakeSignedData [16:00:06]SAM_PROTO_SignData [16:00:06]wFMCommunicate request_size=4 [16:00:06]MH_SAM_APDU [16:00:06]CAPDU: 80 0D 01 02 [16:00:06]Write to MH i2c: E2 08 00 C6 18 80 0D 01 02 00 00 00 00 57 [16:00:06]Write i2c OK [16:00:06]MH_I2C_Read... [16:00:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:06]Read from MH i2c: E2 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 03 00 [16:00:06]MH_I2C_Read... [16:00:06]Read from MH i2c: E2 03 00 C6 18 00 90 00 52 [16:00:06]RAPDU: 90 00 [16:00:06]wFMCommunicate OK [16:00:06]wFMCommunicate request_size=255 [16:00:06]MH_SAM_APDU [16:00:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 06 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DF 02 00 35 04 06 00 AE [16:00:06]Write to MH i2c: E2 02 01 C7 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 06 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DF 02 00 35 04 06 00 AE 00 00 85 [16:00:06]Write i2c OK [16:00:06]MH_I2C_Read... [16:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:07]Read from MH i2c: E2 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 03 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 03 00 C7 18 00 90 00 53 [16:00:07]RAPDU: 90 00 [16:00:07]wFMCommunicate OK [16:00:07]wFMCommunicate request_size=10 [16:00:07]MH_SAM_APDU [16:00:07]CAPDU: 80 0D 02 02 05 8E 7B 6C D2 D3 [16:00:07]Write to MH i2c: E2 0D 00 C8 18 80 0D 02 02 05 00 8E 7B 6C D2 D3 00 00 7E [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:07]Read from MH i2c: E2 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 03 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 03 00 C8 18 00 90 00 54 [16:00:07]RAPDU: 90 00 [16:00:07]wFMCommunicate OK [16:00:07]wFMCommunicate request_size=4 [16:00:07]MH_SAM_APDU [16:00:07]CAPDU: 80 0D 03 02 [16:00:07]Write to MH i2c: E2 08 00 C9 18 80 0D 03 02 00 00 00 00 5C [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:07]Read from MH i2c: E2 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 0B 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 0B 00 C9 18 00 F2 58 A2 C6 99 36 D9 FD 90 00 B4 [16:00:07]RAPDU: F2 58 A2 C6 99 36 D9 FD 90 00 [16:00:07]wFMCommunicate OK [16:00:07]SAM_PROTO_SignData done [16:00:07]FM_MakeSignedData done [16:00:07]CreateOFDProtocolMessage [16:00:07]wFMCommunicate request_size=4 [16:00:07]MH_SAM_APDU [16:00:07]CAPDU: 80 11 00 00 [16:00:07]Write to MH i2c: E2 08 00 CA 18 80 11 00 00 00 00 00 00 5C [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:07]Read from MH i2c: E2 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 17 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: E2 17 00 CA 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [16:00:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:00:07]wFMCommunicate OK [16:00:07]CreateOFDProtocolMessage done [16:00:07]OFDSenderStorePacket 188367 [16:00:07]StoreOFDPacket docnum=188367 [16:00:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 84 07 01 E9 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 06 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DF 02 00 35 04 06 00 AE 8E 7B 6C D2 D3 F2 58 A2 C6 99 36 D9 FD [16:00:07]CheckFolder [16:00:07]dirname=/storage/ofd_packets [16:00:07]CheckFolder done [16:00:07]ProducePacketName [16:00:07]name=ofd_packets/00188367 [16:00:07]NVStorageSaveData ofd_packets/00188367 [16:00:07]File name is /storage/ofd_packets/00188367 [16:00:07]Write 301 bytes [16:00:07]NVStorageSaveData done [16:00:07]OFDSenderStorePacket done [16:00:07]KKMCreateOFDPacket done [16:00:07]NVStorageSaveData kkm_last_timestamp [16:00:07]File name is /storage/kkm_last_timestamp [16:00:07]Write 4 bytes [16:00:07]NVStorageSaveData done [16:00:07]ExternCall_PrintAddStr [16:00:07]wPrintStart [16:00:07]Write to MH i2c: 01 00 00 CB 18 E3 [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: 01 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: 01 07 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: 01 07 00 CB 18 00 00 00 00 00 FF 0F F8 [16:00:07]RasterBufferAndPrint [16:00:07]line Счет N : (1)210425 [16:00:07]line ИНН: 02508201610067 [16:00:07]line Контрольно-Кассовый Чек [16:00:07]line ПРОДАЖА [16:00:07]line ТРК (МРК, ГНК) : 12 [16:00:07]line Товар: 2710124130 [16:00:07]line Аи-92-К-3 [16:00:07]line 10.000 * 0.00 [16:00:07]line = 0.00 [16:00:07]line НДС 12% НСП 1% [16:00:07]line > о реализуемом товаре [16:00:07]line ИТОГО: 0.00 [16:00:07]line НСП 1% : 0.00 [16:00:07]line НДС 12% : 0.00 [16:00:07]line Наличными: 0.00 [16:00:07]line Безнал.: 0.00 [16:00:07]line Место: АЗС № 86 "Партнер Нефть" [16:00:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:00:07]line СНО: Общий режим [16:00:07]line Чек 396 22.10.2024 16:00 [16:00:07]line Смена: 461 ФФД: 1.0 [16:00:07]line ЗНМ: 0300000155 [16:00:07]line РНМ: 0000000000100030 [16:00:07]line Версия ККМ: 001 [16:00:07]line Талоны: Топливные Талоны [16:00:07]line 4219081 [16:00:07]line ФМ: 0000000000965340 [16:00:07]line ФД: 188367 [16:00:07]line ФПД: 191926979318483 [16:00:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188367&fm=191926979318483&tin=02508201610067®Number=0000000000100030&sum=0 [16:00:07]written 0, free lines is 4095 [16:00:07]OFD Sender: Processing packet 188367 [packets to send 1062, broken 1061] [16:00:07]ProducePacketName [16:00:07]name=ofd_packets/00188367 [16:00:07]OFD Sender: To server: pG, [16:00:07]CommunicateWithHost lk.salyk.kg:30040 [16:00:07]ConnectInit lk.salyk.kg [16:00:07]Connected sock=10 [16:00:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 84 07 01 E9 28 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8C 01 00 00 F4 03 04 00 06 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 CF DF 02 00 35 04 06 00 AE 8E 7B 6C D2 D3 F2 58 A2 C6 99 36 D9 FD [16:00:07]Write to MH i2c: 01 00 00 F5 18 0D [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: 01 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: 01 07 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: 01 07 00 F5 18 00 00 00 00 00 84 0C A4 [16:00:07]RasterBufferAndPrint [16:00:07]line [16:00:07]line [16:00:07]line [16:00:07]line [16:00:07]line [16:00:07]written 0, free lines is 3208 [16:00:07]MH_Cut [16:00:07]Write to MH i2c: D1 01 00 FC 18 01 E6 [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: D1 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: D1 01 00 [16:00:07]MH_I2C_Read... [16:00:07]Read from MH i2c: D1 01 00 FC 18 00 E5 [16:00:07]Write to MH i2c: 01 00 00 FD 18 15 [16:00:07]Write i2c OK [16:00:07]MH_I2C_Read... [16:00:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 BE 47 00 BA 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 39 36 35 33 34 30 10 04 04 00 CF DF 02 00 F4 03 04 00 F3 75 17 67 B6 04 01 00 00 95 06 BF 3B BF 41 92 0D [16:00:07]CommunicateWithHost err = 0 [16:00:07]CheckOFDResponse [16:00:07]1017 (14) - 77093643461234 [16:00:07]1041 (16) - 0000000000965340 [16:00:07]1040 (4) - 188367 [16:00:07]1012 (4) - 22.10.2024 09:52 [16:00:07]1206 (1) - 0 [16:00:07]OFD Sender: Remove packet 188367 [16:00:07]ProducePacketName [16:00:07]name=ofd_packets/00188367 [16:00:07]NVStorageDeleteData [16:00:08]OFD Sender: No OFD packet to send [16:00:08]*** Cut start [16:00:08]*** Partial cut [16:00:08]*** CUTSNS_PIN = 1 [16:00:08]*** CUTSNS_PIN = 0 [16:00:09]*** Brake cut motor [16:00:09]Read from MH i2c: 01 [16:00:09]MH_I2C_Read... [16:00:09]*** Stop cut motor [16:00:09]*** Cut end [16:00:09]Read from MH i2c: 01 07 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: 01 07 00 FD 18 00 00 00 00 00 FF 0F 2A [16:00:09]process_action close_receipt done [16:00:09]requested_data is exist [16:00:09]produce_requested_data [16:00:09]requested_item fm.sn is exist - process it [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 11 00 00 [16:00:09]Write to MH i2c: E2 08 00 FE 18 80 11 00 00 00 00 00 00 90 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 17 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 17 00 FE 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [16:00:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:00:09]wFMCommunicate OK [16:00:09]requested_item fd.num is exist - process it [16:00:09]SAM_PROTO_GetFieldsCounters [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 13 00 00 [16:00:09]Write to MH i2c: E2 08 00 FF 18 80 13 00 00 00 00 00 00 93 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 62 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 62 00 FF 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 BF [16:00:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 CF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8C 01 00 00 5E 04 04 00 8C 01 00 00 57 04 04 00 8D 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:09]wFMCommunicate OK [16:00:09]SAM_PROTO_GetFieldsCounters done [16:00:09]requested_item shift.num is exist - process it [16:00:09]requested_item shift.opened is exist - process it [16:00:09]req_shift_opened [16:00:09]FM_GetShiftState [16:00:09]SAM_PROTO_GetShiftState [16:00:09]wFMCommunicate request_size=4 [16:00:09]MH_SAM_APDU [16:00:09]CAPDU: 80 13 01 00 [16:00:09]Write to MH i2c: E2 08 00 00 19 80 13 01 00 00 00 00 00 96 [16:00:09]Write i2c OK [16:00:09]MH_I2C_Read... [16:00:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:09]Read from MH i2c: E2 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 0E 00 [16:00:09]MH_I2C_Read... [16:00:09]Read from MH i2c: E2 0E 00 00 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8B [16:00:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:00:09]wFMCommunicate OK [16:00:09]SAM_PROTO_GetShiftState done [16:00:09]FM_GetShiftState done [16:00:09]req_shift_opened done [16:00:09]requested_item shift.open_date is exist - process it [16:00:09]req_shift_open_date [16:00:09]req_shift_open_date done [16:00:09]produce_requested_data done [16:00:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188367,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [16:00:09]process_action_free close_receipt [16:00:09]json_value_free [16:00:09]json_value_free done [16:00:09]process_json_proto returns [16:00:09]Send response to host [16:00:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188367,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [16:00:09]free response buf [16:00:09]execute_script done [16:00:09]execute_script returns [16:00:09]free content buf [16:00:09]Sock 9.Close socket [16:00:09]Sock 9.Thread stoped [16:00:13]OFD Sender: No OFD packet to send [16:00:18]OFD Sender: No OFD packet to send [16:00:23]OFD Sender: No OFD packet to send [16:00:28]OFD Sender: No OFD packet to send [16:00:33]OFD Sender: No OFD packet to send [16:00:38]OFD Sender: No OFD packet to send [16:00:43]OFD Sender: No OFD packet to send [16:00:45]accept exits with 7 [16:00:45]New connection [16:00:45]New thread 3067161956 created [16:00:45]Thread 3067305316 joined [16:00:45]Waiting for new connection... [16:00:45] Sock 7.Parse request [16:00:45]Sock 7.Check first char [16:00:45]Sock 7.First char is OK [16:00:45]request: POST /json_proto HTTP/1.0 [16:00:45]Method: POST [16:00:45]URL: /json_proto [16:00:45]Method is POST - this is cgi request [16:00:45]url: /json_proto [16:00:45]query_string will be loaded in cgi processing [16:00:45]execute_cgi json_proto POST (null) [16:00:45]execute_cgi path=json_proto method=POST [16:00:45]POST find Content-Length [16:00:45]Host: 172.17.42.131:8080 [16:00:45]Content-Length: 682 [16:00:45]Content-Type: application/json [16:00:45] [16:00:45]POST finish read [16:00:45]Found Content-Length = 682 [16:00:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210426", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]execute_script... [16:00:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210426", "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" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:45]POST & json_proto [16:00:45]process_json_proto [16:00:45]json parsed OK: [16:00:45]protocol is kg_v1.0 [16:00:45]action value=close_receipt [16:00:45]process_action close_receipt [16:00:45]cmd_close_receipt [16:00:45]MH_GetDate [16:00:45]Write to MH i2c: F0 00 00 01 19 09 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: F0 09 00 01 19 00 2E CC 17 67 A0 18 CA 66 72 [16:00:45]GetLastDocTimeStamp 1729612806 [16:00:45]current date 1729612846 [16:00:45]FM_GetShiftState [16:00:45]SAM_PROTO_GetShiftState [16:00:45]wFMCommunicate request_size=4 [16:00:45]MH_SAM_APDU [16:00:45]CAPDU: 80 13 01 00 [16:00:45]Write to MH i2c: E2 08 00 02 19 80 13 01 00 00 00 00 00 98 [16:00:45]Write i2c OK [16:00:45]MH_I2C_Read... [16:00:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:45]Read from MH i2c: E2 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 [16:00:45]MH_I2C_Read... [16:00:45]Read from MH i2c: E2 0E 00 02 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8D [16:00:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:00:45]wFMCommunicate OK [16:00:45]SAM_PROTO_GetShiftState done [16:00:45]FM_GetShiftState done [16:00:45]opened in 1729556094 [16:00:45]opened+sec_in_day 1729642494 [16:00:45]quantity*price = 250054 [16:00:45]sum+1 = 250055 [16:00:45]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 397 22.10.2024 16:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188368 ФПД: 254904276788706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188368&fm=254904276788706&tin=02508201610067®Number=0000000000100030&sum=250000 [16:00:46]StoreToDocumentArchive [16:00:46]shift 461 fd 188368 [16:00:46]save to /storage/0461/doc_00188368 [16:00:46]save last doc name /storage/0461/doc_00188368 to /storage/kkm_last_doc_name [16:00:46]save OK [16:00:46]Clear old archive folders... [16:00:46]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:46]tlvbuf is B6FAEAF0 [16:00:46]SAM_PROTO_ClearQueue [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 09 00 00 [16:00:46]Write to MH i2c: E2 08 00 0F 19 80 09 00 00 00 00 00 00 9A [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 0F 19 00 90 00 9C [16:00:46]RAPDU: 90 00 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_ClearQueue done [16:00:46]KKMCreateOFDPacket [16:00:46]OFDProtocolAddRootSTLVToBuf [16:00:46]FM_MakeSignedData [16:00:46]FM_MakeSignedData [16:00:46]SAM_PROTO_SignData [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 0D 01 02 [16:00:46]Write to MH i2c: E2 08 00 10 19 80 0D 01 02 00 00 00 00 A2 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 10 19 00 90 00 9D [16:00:46]RAPDU: 90 00 [16:00:46]wFMCommunicate OK [16:00:46]wFMCommunicate request_size=255 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 2E CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DF 02 00 35 04 06 00 E7 [16:00:46]Write to MH i2c: E2 02 01 11 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 2E CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DF 02 00 35 04 06 00 E7 00 00 6C [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 11 19 00 90 00 9E [16:00:46]RAPDU: 90 00 [16:00:46]wFMCommunicate OK [16:00:46]wFMCommunicate request_size=10 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 0D 02 02 05 D5 86 DE A5 E2 [16:00:46]Write to MH i2c: E2 0D 00 12 19 80 0D 02 02 05 00 D5 86 DE A5 E2 00 00 6F [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 03 00 12 19 00 90 00 9F [16:00:46]RAPDU: 90 00 [16:00:46]wFMCommunicate OK [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 0D 03 02 [16:00:46]Write to MH i2c: E2 08 00 13 19 80 0D 03 02 00 00 00 00 A7 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 0B 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 0B 00 13 19 00 50 FF C7 A1 BD 7F 75 47 90 00 57 [16:00:46]RAPDU: 50 FF C7 A1 BD 7F 75 47 90 00 [16:00:46]wFMCommunicate OK [16:00:46]SAM_PROTO_SignData done [16:00:46]FM_MakeSignedData done [16:00:46]CreateOFDProtocolMessage [16:00:46]wFMCommunicate request_size=4 [16:00:46]MH_SAM_APDU [16:00:46]CAPDU: 80 11 00 00 [16:00:46]Write to MH i2c: E2 08 00 14 19 80 11 00 00 00 00 00 00 A7 [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:46]Read from MH i2c: E2 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 17 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: E2 17 00 14 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [16:00:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:00:46]wFMCommunicate OK [16:00:46]CreateOFDProtocolMessage done [16:00:46]OFDSenderStorePacket 188368 [16:00:46]StoreOFDPacket docnum=188368 [16:00:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 0C 07 01 16 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 2E CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DF 02 00 35 04 06 00 E7 D5 86 DE A5 E2 50 FF C7 A1 BD 7F 75 47 [16:00:46]CheckFolder [16:00:46]dirname=/storage/ofd_packets [16:00:46]CheckFolder done [16:00:46]ProducePacketName [16:00:46]name=ofd_packets/00188368 [16:00:46]NVStorageSaveData ofd_packets/00188368 [16:00:46]File name is /storage/ofd_packets/00188368 [16:00:46]Write 301 bytes [16:00:46]NVStorageSaveData done [16:00:46]OFDSenderStorePacket done [16:00:46]KKMCreateOFDPacket done [16:00:46]NVStorageSaveData kkm_last_timestamp [16:00:46]File name is /storage/kkm_last_timestamp [16:00:46]Write 4 bytes [16:00:46]NVStorageSaveData done [16:00:46]ExternCall_PrintAddStr [16:00:46]wPrintStart [16:00:46]Write to MH i2c: 01 00 00 15 19 2E [16:00:46]Write i2c OK [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 07 00 [16:00:46]MH_I2C_Read... [16:00:46]Read from MH i2c: 01 07 00 15 19 00 00 00 00 00 FF 0F 43 [16:00:46]RasterBufferAndPrint [16:00:46]line Счет N : (1)210426 [16:00:46]line ИНН: 02508201610067 [16:00:46]line Контрольно-Кассовый Чек [16:00:46]line ПРОДАЖА [16:00:46]line ТРК (МРК, ГНК) : 43 [16:00:46]line Товар: 2710124500 [16:00:46]line Аи-95-К-3 [16:00:46]line 33.700 * 74.20 [16:00:46]line = 2500.54 [16:00:46]line НДС 12% НСП 1% [16:00:46]line > о реализуемом товаре [16:00:46]line ОКРУГЛЕНИЕ: -0.54 [16:00:46]line ИТОГО: 2500.00 [16:00:46]line Внесено: 2500.00 [16:00:46]line СДАЧА: 0.00 [16:00:46]line НСП 1% : 22.13 [16:00:46]line НДС 12% : 265.54 [16:00:46]line Наличными: 2500.00 [16:00:46]line Безнал.: 0.00 [16:00:46]line Место: АЗС № 86 "Партнер Нефть" [16:00:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:00:46]line СНО: Общий режим [16:00:46]line Чек 397 22.10.2024 16:00 [16:00:46]line Смена: 461 ФФД: 1.0 [16:00:46]line ЗНМ: 0300000155 [16:00:46]line РНМ: 0000000000100030 [16:00:46]line Версия ККМ: 001 [16:00:46]line ФМ: 0000000000965340 [16:00:46]line ФД: 188368 [16:00:46]line ФПД: 254904276788706 [16:00:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160046&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188368&fm=254904276788706&tin=02508201610067®Number=0000000000100030&sum=250000 [16:00:46]written 0, free lines is 4095 [16:00:46]OFD Sender: Processing packet 188368 [packets to send 1062, broken 1061] [16:00:46]ProducePacketName [16:00:46]name=ofd_packets/00188368 [16:00:46]OFD Sender: To server: pG, [16:00:46]CommunicateWithHost lk.salyk.kg:30040 [16:00:46]ConnectInit lk.salyk.kg [16:00:47]Connected sock=10 [16:00:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 0C 07 01 16 8F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 01 00 00 F4 03 04 00 2E CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D0 DF 02 00 35 04 06 00 E7 D5 86 DE A5 E2 50 FF C7 A1 BD 7F 75 47 [16:00:47]Write to MH i2c: 01 00 00 40 19 59 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: 01 07 00 40 19 00 00 00 00 00 76 0C E2 [16:00:47]RasterBufferAndPrint [16:00:47]line [16:00:47]line [16:00:47]line [16:00:47]line [16:00:47]line [16:00:47]written 0, free lines is 3193 [16:00:47]MH_Cut [16:00:47]Write to MH i2c: D1 01 00 47 19 01 32 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: D1 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: D1 01 00 [16:00:47]MH_I2C_Read... [16:00:47]Read from MH i2c: D1 01 00 47 19 00 31 [16:00:47]Write to MH i2c: 01 00 00 48 19 61 [16:00:47]Write i2c OK [16:00:47]MH_I2C_Read... [16:00:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 55 38 47 00 7F 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 39 36 35 33 34 30 10 04 04 00 D0 DF 02 00 F4 03 04 00 1B 76 17 67 B6 04 01 00 00 59 04 EB 89 EB 9A 42 9C [16:00:47]CommunicateWithHost err = 0 [16:00:47]CheckOFDResponse [16:00:47]1017 (14) - 77093643461234 [16:00:47]1041 (16) - 0000000000965340 [16:00:47]1040 (4) - 188368 [16:00:47]1012 (4) - 22.10.2024 09:53 [16:00:47]1206 (1) - 0 [16:00:47]OFD Sender: Remove packet 188368 [16:00:47]ProducePacketName [16:00:47]name=ofd_packets/00188368 [16:00:47]NVStorageDeleteData [16:00:48]OFD Sender: No OFD packet to send [16:00:48]*** Cut start [16:00:48]*** Partial cut [16:00:48]*** CUTSNS_PIN = 1 [16:00:48]*** CUTSNS_PIN = 0 [16:00:48]*** Brake cut motor [16:00:49]Read from MH i2c: 01 [16:00:49]MH_I2C_Read... [16:00:49]*** Stop cut motor [16:00:49]*** Cut end [16:00:49]Read from MH i2c: 01 07 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: 01 07 00 48 19 00 00 00 00 00 FF 0F 76 [16:00:49]process_action close_receipt done [16:00:49]requested_data is exist [16:00:49]produce_requested_data [16:00:49]requested_item fm.sn is exist - process it [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 11 00 00 [16:00:49]Write to MH i2c: E2 08 00 49 19 80 11 00 00 00 00 00 00 DC [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 17 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 17 00 49 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2A [16:00:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:00:49]wFMCommunicate OK [16:00:49]requested_item fd.num is exist - process it [16:00:49]SAM_PROTO_GetFieldsCounters [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 13 00 00 [16:00:49]Write to MH i2c: E2 08 00 4A 19 80 13 00 00 00 00 00 00 DF [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 62 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 62 00 4A 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 0F [16:00:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D0 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8D 01 00 00 5E 04 04 00 8D 01 00 00 57 04 04 00 8E 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:49]wFMCommunicate OK [16:00:49]SAM_PROTO_GetFieldsCounters done [16:00:49]requested_item shift.num is exist - process it [16:00:49]requested_item shift.opened is exist - process it [16:00:49]req_shift_opened [16:00:49]FM_GetShiftState [16:00:49]SAM_PROTO_GetShiftState [16:00:49]wFMCommunicate request_size=4 [16:00:49]MH_SAM_APDU [16:00:49]CAPDU: 80 13 01 00 [16:00:49]Write to MH i2c: E2 08 00 4B 19 80 13 01 00 00 00 00 00 E1 [16:00:49]Write i2c OK [16:00:49]MH_I2C_Read... [16:00:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:49]Read from MH i2c: E2 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0E 00 [16:00:49]MH_I2C_Read... [16:00:49]Read from MH i2c: E2 0E 00 4B 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D6 [16:00:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:00:49]wFMCommunicate OK [16:00:49]SAM_PROTO_GetShiftState done [16:00:49]FM_GetShiftState done [16:00:49]req_shift_opened done [16:00:49]requested_item shift.open_date is exist - process it [16:00:49]req_shift_open_date [16:00:49]req_shift_open_date done [16:00:49]produce_requested_data done [16:00:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188368,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [16:00:49]process_action_free close_receipt [16:00:49]json_value_free [16:00:49]json_value_free done [16:00:49]process_json_proto returns [16:00:49]Send response to host [16:00:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188368,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [16:00:49]free response buf [16:00:49]execute_script done [16:00:49]execute_script returns [16:00:49]free content buf [16:00:49]Sock 7.Close socket [16:00:49]Sock 7.Thread stoped [16:00:53]OFD Sender: No OFD packet to send [16:00:53]accept exits with 9 [16:00:53]New connection [16:00:53]New thread 3067305316 created [16:00:53]Thread 3067161956 joined [16:00:53]Waiting for new connection... [16:00:53] Sock 9.Parse request [16:00:53]Sock 9.Check first char [16:00:53]Sock 9.First char is OK [16:00:53]request: POST /json_proto HTTP/1.0 [16:00:53]Method: POST [16:00:53]URL: /json_proto [16:00:53]Method is POST - this is cgi request [16:00:53]url: /json_proto [16:00:53]query_string will be loaded in cgi processing [16:00:53]execute_cgi json_proto POST (null) [16:00:53]execute_cgi path=json_proto method=POST [16:00:53]POST find Content-Length [16:00:53]Host: 172.17.42.131:8080 [16:00:53]Content-Length: 682 [16:00:53]Content-Type: application/json [16:00:53] [16:00:53]POST finish read [16:00:53]Found Content-Length = 682 [16:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210427", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:53]execute_script... [16:00: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)210427", "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" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:00:53]POST & json_proto [16:00:53]process_json_proto [16:00:53]json parsed OK: [16:00:53]protocol is kg_v1.0 [16:00:53]action value=close_receipt [16:00:53]process_action close_receipt [16:00:53]cmd_close_receipt [16:00:53]MH_GetDate [16:00:53]Write to MH i2c: F0 00 00 4C 19 54 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 09 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: F0 09 00 4C 19 00 36 CC 17 67 A0 18 CA 66 C5 [16:00:53]GetLastDocTimeStamp 1729612846 [16:00:53]current date 1729612854 [16:00:53]FM_GetShiftState [16:00:53]SAM_PROTO_GetShiftState [16:00:53]wFMCommunicate request_size=4 [16:00:53]MH_SAM_APDU [16:00:53]CAPDU: 80 13 01 00 [16:00:53]Write to MH i2c: E2 08 00 4D 19 80 13 01 00 00 00 00 00 E3 [16:00:53]Write i2c OK [16:00:53]MH_I2C_Read... [16:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:53]Read from MH i2c: E2 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 [16:00:53]MH_I2C_Read... [16:00:53]Read from MH i2c: E2 0E 00 4D 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D8 [16:00:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:00:53]wFMCommunicate OK [16:00:53]SAM_PROTO_GetShiftState done [16:00:53]FM_GetShiftState done [16:00:53]opened in 1729556094 [16:00:53]opened+sec_in_day 1729642494 [16:00:53]quantity*price = 250054 [16:00:53]sum+1 = 250055 [16:00:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 398 22.10.2024 16:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188369 ФПД: 12207787623071 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160055&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188369&fm=12207787623071&tin=02508201610067®Number=0000000000100030&sum=250000 [16:00:54]StoreToDocumentArchive [16:00:54]shift 461 fd 188369 [16:00:54]save to /storage/0461/doc_00188369 [16:00:54]save last doc name /storage/0461/doc_00188369 to /storage/kkm_last_doc_name [16:00:54]save OK [16:00:54]Clear old archive folders... [16:00:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:00:54]tlvbuf is 01497AF0 [16:00:54]SAM_PROTO_ClearQueue [16:00:54]wFMCommunicate request_size=4 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 09 00 00 [16:00:54]Write to MH i2c: E2 08 00 5A 19 80 09 00 00 00 00 00 00 E5 [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 5A 19 00 90 00 E7 [16:00:54]RAPDU: 90 00 [16:00:54]wFMCommunicate OK [16:00:54]SAM_PROTO_ClearQueue done [16:00:54]KKMCreateOFDPacket [16:00:54]OFDProtocolAddRootSTLVToBuf [16:00:54]FM_MakeSignedData [16:00:54]FM_MakeSignedData [16:00:54]SAM_PROTO_SignData [16:00:54]wFMCommunicate request_size=4 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 0D 01 02 [16:00:54]Write to MH i2c: E2 08 00 5B 19 80 0D 01 02 00 00 00 00 ED [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:00:54]Read from MH i2c: E2 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 [16:00:54]MH_I2C_Read... [16:00:54]Read from MH i2c: E2 03 00 5B 19 00 90 00 E8 [16:00:54]RAPDU: 90 00 [16:00:54]wFMCommunicate OK [16:00:54]wFMCommunicate request_size=255 [16:00:54]MH_SAM_APDU [16:00:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 37 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DF 02 00 35 04 06 00 0B [16:00:54]Write to MH i2c: E2 02 01 5C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 37 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DF 02 00 35 04 06 00 0B 00 00 E6 [16:00:54]Write i2c OK [16:00:54]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 5C 19 00 90 00 E9 [16:00:55]RAPDU: 90 00 [16:00:55]wFMCommunicate OK [16:00:55]wFMCommunicate request_size=10 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 0D 02 02 05 1A 58 D8 42 9F [16:00:55]Write to MH i2c: E2 0D 00 5D 19 80 0D 02 02 05 00 1A 58 D8 42 9F 00 00 25 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 03 00 5D 19 00 90 00 EA [16:00:55]RAPDU: 90 00 [16:00:55]wFMCommunicate OK [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 0D 03 02 [16:00:55]Write to MH i2c: E2 08 00 5E 19 80 0D 03 02 00 00 00 00 F2 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 0B 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 0B 00 5E 19 00 5F 6E CE 44 A2 0A CD E0 90 00 2B [16:00:55]RAPDU: 5F 6E CE 44 A2 0A CD E0 90 00 [16:00:55]wFMCommunicate OK [16:00:55]SAM_PROTO_SignData done [16:00:55]FM_MakeSignedData done [16:00:55]CreateOFDProtocolMessage [16:00:55]wFMCommunicate request_size=4 [16:00:55]MH_SAM_APDU [16:00:55]CAPDU: 80 11 00 00 [16:00:55]Write to MH i2c: E2 08 00 5F 19 80 11 00 00 00 00 00 00 F2 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:55]Read from MH i2c: E2 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 17 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: E2 17 00 5F 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [16:00:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:00:55]wFMCommunicate OK [16:00:55]CreateOFDProtocolMessage done [16:00:55]OFDSenderStorePacket 188369 [16:00:55]StoreOFDPacket docnum=188369 [16:00:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 4F 07 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 37 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DF 02 00 35 04 06 00 0B 1A 58 D8 42 9F 5F 6E CE 44 A2 0A CD E0 [16:00:55]CheckFolder [16:00:55]dirname=/storage/ofd_packets [16:00:55]CheckFolder done [16:00:55]ProducePacketName [16:00:55]name=ofd_packets/00188369 [16:00:55]NVStorageSaveData ofd_packets/00188369 [16:00:55]File name is /storage/ofd_packets/00188369 [16:00:55]Write 301 bytes [16:00:55]NVStorageSaveData done [16:00:55]OFDSenderStorePacket done [16:00:55]KKMCreateOFDPacket done [16:00:55]NVStorageSaveData kkm_last_timestamp [16:00:55]File name is /storage/kkm_last_timestamp [16:00:55]Write 4 bytes [16:00:55]NVStorageSaveData done [16:00:55]ExternCall_PrintAddStr [16:00:55]wPrintStart [16:00:55]Write to MH i2c: 01 00 00 60 19 79 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 60 19 00 00 00 00 00 FF 0F 8E [16:00:55]RasterBufferAndPrint [16:00:55]line Счет N : (1)210427 [16:00:55]line ИНН: 02508201610067 [16:00:55]line Контрольно-Кассовый Чек [16:00:55]line ПРОДАЖА [16:00:55]line ТРК (МРК, ГНК) : 33 [16:00:55]line Товар: 2710124500 [16:00:55]line Аи-95-К-3 [16:00:55]line 33.700 * 74.20 [16:00:55]line = 2500.54 [16:00:55]line НДС 12% НСП 1% [16:00:55]line > о реализуемом товаре [16:00:55]line ОКРУГЛЕНИЕ: -0.54 [16:00:55]line ИТОГО: 2500.00 [16:00:55]line Внесено: 2500.00 [16:00:55]line СДАЧА: 0.00 [16:00:55]line НСП 1% : 22.13 [16:00:55]line НДС 12% : 265.54 [16:00:55]line Наличными: 2500.00 [16:00:55]line Безнал.: 0.00 [16:00:55]line Место: АЗС № 86 "Партнер Нефть" [16:00:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:00:55]line СНО: Общий режим [16:00:55]line Чек 398 22.10.2024 16:00 [16:00:55]line Смена: 461 ФФД: 1.0 [16:00:55]line ЗНМ: 0300000155 [16:00:55]line РНМ: 0000000000100030 [16:00:55]line Версия ККМ: 001 [16:00:55]line ФМ: 0000000000965340 [16:00:55]line ФД: 188369 [16:00:55]line ФПД: 12207787623071 [16:00:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160055&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188369&fm=12207787623071&tin=02508201610067®Number=0000000000100030&sum=250000 [16:00:55]written 0, free lines is 4095 [16:00:55]OFD Sender: Processing packet 188369 [packets to send 1062, broken 1061] [16:00:55]ProducePacketName [16:00:55]name=ofd_packets/00188369 [16:00:55]OFD Sender: To server: pG, [16:00:55]CommunicateWithHost lk.salyk.kg:30040 [16:00:55]ConnectInit lk.salyk.kg [16:00:55]Connected sock=10 [16:00:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 48 4F 07 01 6C 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 01 00 00 F4 03 04 00 37 CC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DF 02 00 35 04 06 00 0B 1A 58 D8 42 9F 5F 6E CE 44 A2 0A CD E0 [16:00:55]Write to MH i2c: 01 00 00 8B 19 A4 [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: 01 07 00 8B 19 00 00 00 00 00 6E 0C 25 [16:00:55]RasterBufferAndPrint [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]line [16:00:55]written 0, free lines is 3186 [16:00:55]MH_Cut [16:00:55]Write to MH i2c: D1 01 00 92 19 01 7D [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 01 00 [16:00:55]MH_I2C_Read... [16:00:55]Read from MH i2c: D1 01 00 92 19 00 7C [16:00:55]Write to MH i2c: 01 00 00 93 19 AC [16:00:55]Write i2c OK [16:00:55]MH_I2C_Read... [16:00:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 22 47 00 3F 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D1 DF 02 00 F4 03 04 00 24 76 17 67 B6 04 01 00 00 A1 4E DE F8 32 8F A7 12 [16:00:56]CommunicateWithHost err = 0 [16:00:56]CheckOFDResponse [16:00:56]1017 (14) - 77093643461234 [16:00:56]1041 (16) - 0000000000965340 [16:00:56]1040 (4) - 188369 [16:00:56]1012 (4) - 22.10.2024 09:53 [16:00:56]1206 (1) - 0 [16:00:56]OFD Sender: Remove packet 188369 [16:00:56]ProducePacketName [16:00:56]name=ofd_packets/00188369 [16:00:56]NVStorageDeleteData [16:00:56]OFD Sender: No OFD packet to send [16:00:57]*** Cut start [16:00:57]*** Partial cut [16:00:57]*** CUTSNS_PIN = 1 [16:00:57]*** CUTSNS_PIN = 0 [16:00:57]*** Brake cut motor [16:00:57]Read from MH i2c: 01 [16:00:57]MH_I2C_Read... [16:00:57]*** Stop cut motor [16:00:57]*** Cut end [16:00:57]Read from MH i2c: 01 07 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: 01 07 00 93 19 00 00 00 00 00 FF 0F C1 [16:00:57]process_action close_receipt done [16:00:57]requested_data is exist [16:00:57]produce_requested_data [16:00:57]requested_item fm.sn is exist - process it [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 11 00 00 [16:00:57]Write to MH i2c: E2 08 00 94 19 80 11 00 00 00 00 00 00 27 [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 17 00 94 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [16:00:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:00:57]wFMCommunicate OK [16:00:57]requested_item fd.num is exist - process it [16:00:57]SAM_PROTO_GetFieldsCounters [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 13 00 00 [16:00:57]Write to MH i2c: E2 08 00 95 19 80 13 00 00 00 00 00 00 2A [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 62 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 62 00 95 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 5E [16:00:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8E 01 00 00 5E 04 04 00 8E 01 00 00 57 04 04 00 8F 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_GetFieldsCounters done [16:00:57]requested_item shift.num is exist - process it [16:00:57]requested_item shift.opened is exist - process it [16:00:57]req_shift_opened [16:00:57]FM_GetShiftState [16:00:57]SAM_PROTO_GetShiftState [16:00:57]wFMCommunicate request_size=4 [16:00:57]MH_SAM_APDU [16:00:57]CAPDU: 80 13 01 00 [16:00:57]Write to MH i2c: E2 08 00 96 19 80 13 01 00 00 00 00 00 2C [16:00:57]Write i2c OK [16:00:57]MH_I2C_Read... [16:00:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:00:57]Read from MH i2c: E2 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0E 00 [16:00:57]MH_I2C_Read... [16:00:57]Read from MH i2c: E2 0E 00 96 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 21 [16:00:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:00:57]wFMCommunicate OK [16:00:57]SAM_PROTO_GetShiftState done [16:00:57]FM_GetShiftState done [16:00:57]req_shift_opened done [16:00:57]requested_item shift.open_date is exist - process it [16:00:57]req_shift_open_date [16:00:57]req_shift_open_date done [16:00:57]produce_requested_data done [16:00:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188369,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [16:00:57]process_action_free close_receipt [16:00:57]json_value_free [16:00:57]json_value_free done [16:00:57]process_json_proto returns [16:00:57]Send response to host [16:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188369,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [16:00:57]free response buf [16:00:57]execute_script done [16:00:57]execute_script returns [16:00:57]free content buf [16:00:57]Sock 9.Close socket [16:00:57]Sock 9.Thread stoped [16:01:01]OFD Sender: No OFD packet to send [16:01:06]OFD Sender: No OFD packet to send [16:01:11]OFD Sender: No OFD packet to send [16:01:16]OFD Sender: No OFD packet to send [16:01:21]OFD Sender: No OFD packet to send [16:01:26]OFD Sender: No OFD packet to send [16:01:31]OFD Sender: No OFD packet to send [16:01:36]OFD Sender: No OFD packet to send [16:01:41]OFD Sender: No OFD packet to send [16:01:46]OFD Sender: No OFD packet to send [16:01:51]OFD Sender: No OFD packet to send [16:01:56]OFD Sender: No OFD packet to send [16:02:01]OFD Sender: No OFD packet to send [16:02:06]OFD Sender: No OFD packet to send [16:02:11]OFD Sender: No OFD packet to send [16:02:16]OFD Sender: No OFD packet to send [16:02:22]OFD Sender: No OFD packet to send [16:02:27]OFD Sender: No OFD packet to send [16:02:32]OFD Sender: No OFD packet to send [16:02:37]OFD Sender: No OFD packet to send [16:02:42]OFD Sender: No OFD packet to send [16:02:47]OFD Sender: No OFD packet to send [16:02:52]OFD Sender: No OFD packet to send [16:02:57]OFD Sender: No OFD packet to send [16:03:02]OFD Sender: No OFD packet to send [16:03:07]OFD Sender: No OFD packet to send [16:03:12]OFD Sender: No OFD packet to send [16:03:17]OFD Sender: No OFD packet to send [16:03:22]OFD Sender: No OFD packet to send [16:03:27]OFD Sender: No OFD packet to send [16:03:32]OFD Sender: No OFD packet to send [16:03:37]OFD Sender: No OFD packet to send [16:03:42]OFD Sender: No OFD packet to send [16:03:47]OFD Sender: No OFD packet to send [16:03:52]OFD Sender: No OFD packet to send [16:03:57]OFD Sender: No OFD packet to send [16:04:02]OFD Sender: No OFD packet to send [16:04:07]OFD Sender: No OFD packet to send [16:04:12]OFD Sender: No OFD packet to send [16:04:17]OFD Sender: No OFD packet to send [16:04:22]OFD Sender: No OFD packet to send [16:04:27]OFD Sender: No OFD packet to send [16:04:32]OFD Sender: No OFD packet to send [16:04:37]OFD Sender: No OFD packet to send [16:04:42]OFD Sender: No OFD packet to send [16:04:47]OFD Sender: No OFD packet to send [16:04:52]OFD Sender: No OFD packet to send [16:04:57]OFD Sender: No OFD packet to send [16:05:02]OFD Sender: No OFD packet to send [16:05:07]OFD Sender: No OFD packet to send [16:05:12]OFD Sender: No OFD packet to send [16:05:17]OFD Sender: No OFD packet to send [16:05:22]OFD Sender: No OFD packet to send [16:05:27]accept exits with 7 [16:05:27]New connection [16:05:27]New thread 3067161956 created [16:05:27]Thread 3067305316 joined [16:05:27]Waiting for new connection... [16:05:27] Sock 7.Parse request [16:05:27]Sock 7.Check first char [16:05:27]Sock 7.First char is OK [16:05:27]request: POST /json_proto HTTP/1.0 [16:05:27]Method: POST [16:05:27]URL: /json_proto [16:05:27]Method is POST - this is cgi request [16:05:27]url: /json_proto [16:05:27]query_string will be loaded in cgi processing [16:05:27]execute_cgi json_proto POST (null) [16:05:27]execute_cgi path=json_proto method=POST [16:05:27]POST find Content-Length [16:05:27]Host: 172.17.42.131:8080 [16:05:27]Content-Length: 688 [16:05:27]Content-Type: application/json [16:05:27] [16:05:27]POST finish read [16:05:27]Found Content-Length = 688 [16:05:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:27]execute_script... [16:05: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)210428", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:05:27]POST & json_proto [16:05:27]process_json_proto [16:05:27]json parsed OK: [16:05:27]protocol is kg_v1.0 [16:05:27]action value=close_receipt [16:05:27]process_action close_receipt [16:05:27]cmd_close_receipt [16:05:27]MH_GetDate [16:05:27]Write to MH i2c: F0 00 00 97 19 9F [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: F0 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: F0 09 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: F0 09 00 97 19 00 48 CD 17 67 A0 18 CA 66 23 [16:05:27]GetLastDocTimeStamp 1729612855 [16:05:27]current date 1729613128 [16:05:27]FM_GetShiftState [16:05:27]SAM_PROTO_GetShiftState [16:05:27]wFMCommunicate request_size=4 [16:05:27]MH_SAM_APDU [16:05:27]CAPDU: 80 13 01 00 [16:05:27]Write to MH i2c: E2 08 00 98 19 80 13 01 00 00 00 00 00 2E [16:05:27]Write i2c OK [16:05:27]MH_I2C_Read... [16:05:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:27]Read from MH i2c: E2 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0E 00 [16:05:27]MH_I2C_Read... [16:05:27]Read from MH i2c: E2 0E 00 98 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 23 [16:05:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:05:27]wFMCommunicate OK [16:05:27]SAM_PROTO_GetShiftState done [16:05:27]FM_GetShiftState done [16:05:27]opened in 1729556094 [16:05:27]opened+sec_in_day 1729642494 [16:05:27]quantity*price = 100051 [16:05:27]sum+1 = 100052 [16:05:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 399 22.10.2024 16:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188370 ФПД: 40134152277309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160528&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188370&fm=40134152277309&tin=02508201610067®Number=0000000000100030&sum=100000 [16:05:28]StoreToDocumentArchive [16:05:28]shift 461 fd 188370 [16:05:28]save to /storage/0461/doc_00188370 [16:05:28]save last doc name /storage/0461/doc_00188370 to /storage/kkm_last_doc_name [16:05:28]save OK [16:05:28]Clear old archive folders... [16:05:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:05:28]tlvbuf is 01472BB0 [16:05:28]SAM_PROTO_ClearQueue [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 09 00 00 [16:05:28]Write to MH i2c: E2 08 00 A5 19 80 09 00 00 00 00 00 00 30 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 A5 19 00 90 00 32 [16:05:28]RAPDU: 90 00 [16:05:28]wFMCommunicate OK [16:05:28]SAM_PROTO_ClearQueue done [16:05:28]KKMCreateOFDPacket [16:05:28]OFDProtocolAddRootSTLVToBuf [16:05:28]FM_MakeSignedData [16:05:28]FM_MakeSignedData [16:05:28]SAM_PROTO_SignData [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 0D 01 02 [16:05:28]Write to MH i2c: E2 08 00 A6 19 80 0D 01 02 00 00 00 00 38 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 A6 19 00 90 00 33 [16:05:28]RAPDU: 90 00 [16:05:28]wFMCommunicate OK [16:05:28]wFMCommunicate request_size=255 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 48 CD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DF 02 [16:05:28]Write to MH i2c: E2 02 01 A7 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 48 CD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DF 02 00 00 39 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 A7 19 00 90 00 34 [16:05:28]RAPDU: 90 00 [16:05:28]wFMCommunicate OK [16:05:28]wFMCommunicate request_size=16 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 24 80 75 E3 CD 3D [16:05:28]Write to MH i2c: E2 13 00 A8 19 80 0D 02 02 0B 00 00 35 04 06 00 24 80 75 E3 CD 3D 00 00 96 [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 03 00 A8 19 00 90 00 35 [16:05:28]RAPDU: 90 00 [16:05:28]wFMCommunicate OK [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 0D 03 02 [16:05:28]Write to MH i2c: E2 08 00 A9 19 80 0D 03 02 00 00 00 00 3D [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:05:28]Read from MH i2c: E2 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 0B 00 [16:05:28]MH_I2C_Read... [16:05:28]Read from MH i2c: E2 0B 00 A9 19 00 E6 26 2B 41 19 BA C2 0B 90 00 56 [16:05:28]RAPDU: E6 26 2B 41 19 BA C2 0B 90 00 [16:05:28]wFMCommunicate OK [16:05:28]SAM_PROTO_SignData done [16:05:28]FM_MakeSignedData done [16:05:28]CreateOFDProtocolMessage [16:05:28]wFMCommunicate request_size=4 [16:05:28]MH_SAM_APDU [16:05:28]CAPDU: 80 11 00 00 [16:05:28]Write to MH i2c: E2 08 00 AA 19 80 11 00 00 00 00 00 00 3D [16:05:28]Write i2c OK [16:05:28]MH_I2C_Read... [16:05:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:29]Read from MH i2c: E2 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: E2 17 00 AA 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [16:05:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:05:29]wFMCommunicate OK [16:05:29]CreateOFDProtocolMessage done [16:05:29]OFDSenderStorePacket 188370 [16:05:29]StoreOFDPacket docnum=188370 [16:05:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FB 64 0D 01 A9 70 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 48 CD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DF 02 00 35 04 06 00 24 80 75 E3 CD 3D E6 26 2B 41 19 BA C2 0B [16:05:29]CheckFolder [16:05:29]dirname=/storage/ofd_packets [16:05:29]CheckFolder done [16:05:29]ProducePacketName [16:05:29]name=ofd_packets/00188370 [16:05:29]NVStorageSaveData ofd_packets/00188370 [16:05:29]File name is /storage/ofd_packets/00188370 [16:05:29]Write 307 bytes [16:05:29]NVStorageSaveData done [16:05:29]OFDSenderStorePacket done [16:05:29]KKMCreateOFDPacket done [16:05:29]NVStorageSaveData kkm_last_timestamp [16:05:29]File name is /storage/kkm_last_timestamp [16:05:29]Write 4 bytes [16:05:29]NVStorageSaveData done [16:05:29]ExternCall_PrintAddStr [16:05:29]wPrintStart [16:05:29]Write to MH i2c: 01 00 00 AB 19 C4 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 AB 19 00 00 00 00 00 FF 0F D9 [16:05:29]RasterBufferAndPrint [16:05:29]line Счет N : (1)210428 [16:05:29]line ИНН: 02508201610067 [16:05:29]line Контрольно-Кассовый Чек [16:05:29]line ПРОДАЖА [16:05:29]line ТРК (МРК, ГНК) : 11 [16:05:29]line Товар: 2710194210 [16:05:29]line D-ENERGY ДТ-К-5 [16:05:29]line 12.960 * 77.20 [16:05:29]line = 1000.51 [16:05:29]line НДС 12% НСП 1% [16:05:29]line > о реализуемом товаре [16:05:29]line ОКРУГЛЕНИЕ: -0.51 [16:05:29]line ИТОГО: 1000.00 [16:05:29]line Внесено: 1000.00 [16:05:29]line СДАЧА: 0.00 [16:05:29]line НСП 1% : 8.85 [16:05:29]line НДС 12% : 106.25 [16:05:29]line Наличными: 1000.00 [16:05:29]line Безнал.: 0.00 [16:05:29]line Место: АЗС № 86 "Партнер Нефть" [16:05:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [16:05:29]line СНО: Общий режим [16:05:29]line Чек 399 22.10.2024 16:05 [16:05:29]line Смена: 461 ФФД: 1.0 [16:05:29]line ЗНМ: 0300000155 [16:05:29]line РНМ: 0000000000100030 [16:05:29]line Версия ККМ: 001 [16:05:29]line ФМ: 0000000000965340 [16:05:29]line ФД: 188370 [16:05:29]line ФПД: 40134152277309 [16:05:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T160528&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188370&fm=40134152277309&tin=02508201610067®Number=0000000000100030&sum=100000 [16:05:29]written 0, free lines is 4095 [16:05:29]OFD Sender: Processing packet 188370 [packets to send 1062, broken 1061] [16:05:29]ProducePacketName [16:05:29]name=ofd_packets/00188370 [16:05:29]OFD Sender: To server: pG, [16:05:29]CommunicateWithHost lk.salyk.kg:30040 [16:05:29]ConnectInit lk.salyk.kg [16:05:29]Connected sock=10 [16:05:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FB 64 0D 01 A9 70 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 8F 01 00 00 F4 03 04 00 48 CD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DF 02 00 35 04 06 00 24 80 75 E3 CD 3D E6 26 2B 41 19 BA C2 0B [16:05:29]Write to MH i2c: 01 00 00 D6 19 EF [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: 01 07 00 D6 19 00 00 00 00 00 62 0C 64 [16:05:29]RasterBufferAndPrint [16:05:29]line [16:05:29]line [16:05:29]line [16:05:29]line [16:05:29]line [16:05:29]written 0, free lines is 3176 [16:05:29]MH_Cut [16:05:29]Write to MH i2c: D1 01 00 DD 19 01 C8 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: D1 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: D1 01 00 [16:05:29]MH_I2C_Read... [16:05:29]Read from MH i2c: D1 01 00 DD 19 00 C7 [16:05:29]Write to MH i2c: 01 00 00 DE 19 F7 [16:05:29]Write i2c OK [16:05:29]MH_I2C_Read... [16:05:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2E 45 47 00 5E 96 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 D2 DF 02 00 F4 03 04 00 35 77 17 67 B6 04 01 00 00 0B CD A9 1A EB 2E 72 5A [16:05:29]CommunicateWithHost err = 0 [16:05:29]CheckOFDResponse [16:05:29]1017 (14) - 77093643461234 [16:05:29]1041 (16) - 0000000000965340 [16:05:29]1040 (4) - 188370 [16:05:29]1012 (4) - 22.10.2024 09:58 [16:05:29]1206 (1) - 0 [16:05:29]OFD Sender: Remove packet 188370 [16:05:29]ProducePacketName [16:05:29]name=ofd_packets/00188370 [16:05:29]NVStorageDeleteData [16:05:30]OFD Sender: No OFD packet to send [16:05:30]*** Cut start [16:05:30]*** Partial cut [16:05:30]*** CUTSNS_PIN = 1 [16:05:30]*** CUTSNS_PIN = 0 [16:05:31]*** Brake cut motor [16:05:31]Read from MH i2c: 01 [16:05:31]MH_I2C_Read... [16:05:31]*** Stop cut motor [16:05:31]*** Cut end [16:05:31]Read from MH i2c: 01 07 00 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: 01 07 00 DE 19 00 00 00 00 00 FF 0F 0C [16:05:31]process_action close_receipt done [16:05:31]requested_data is exist [16:05:31]produce_requested_data [16:05:31]requested_item fm.sn is exist - process it [16:05:31]wFMCommunicate request_size=4 [16:05:31]MH_SAM_APDU [16:05:31]CAPDU: 80 11 00 00 [16:05:31]Write to MH i2c: E2 08 00 DF 19 80 11 00 00 00 00 00 00 72 [16:05:31]Write i2c OK [16:05:31]MH_I2C_Read... [16:05:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:05:31]Read from MH i2c: E2 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 17 00 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 17 00 DF 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [16:05:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [16:05:31]wFMCommunicate OK [16:05:31]requested_item fd.num is exist - process it [16:05:31]SAM_PROTO_GetFieldsCounters [16:05:31]wFMCommunicate request_size=4 [16:05:31]MH_SAM_APDU [16:05:31]CAPDU: 80 13 00 00 [16:05:31]Write to MH i2c: E2 08 00 E0 19 80 13 00 00 00 00 00 00 75 [16:05:31]Write i2c OK [16:05:31]MH_I2C_Read... [16:05:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:05:31]Read from MH i2c: E2 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 62 00 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 62 00 E0 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 AD [16:05:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 D2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 8F 01 00 00 5E 04 04 00 8F 01 00 00 57 04 04 00 90 01 00 00 19 04 04 00 00 00 00 00 90 00 [16:05:31]wFMCommunicate OK [16:05:31]SAM_PROTO_GetFieldsCounters done [16:05:31]requested_item shift.num is exist - process it [16:05:31]requested_item shift.opened is exist - process it [16:05:31]req_shift_opened [16:05:31]FM_GetShiftState [16:05:31]SAM_PROTO_GetShiftState [16:05:31]wFMCommunicate request_size=4 [16:05:31]MH_SAM_APDU [16:05:31]CAPDU: 80 13 01 00 [16:05:31]Write to MH i2c: E2 08 00 E1 19 80 13 01 00 00 00 00 00 77 [16:05:31]Write i2c OK [16:05:31]MH_I2C_Read... [16:05:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:05:31]Read from MH i2c: E2 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 0E 00 [16:05:31]MH_I2C_Read... [16:05:31]Read from MH i2c: E2 0E 00 E1 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6C [16:05:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [16:05:31]wFMCommunicate OK [16:05:31]SAM_PROTO_GetShiftState done [16:05:31]FM_GetShiftState done [16:05:31]req_shift_opened done [16:05:31]requested_item shift.open_date is exist - process it [16:05:31]req_shift_open_date [16:05:31]req_shift_open_date done [16:05:31]produce_requested_data done [16:05:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188370,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [16:05:31]process_action_free close_receipt [16:05:31]json_value_free [16:05:31]json_value_free done [16:05:31]process_json_proto returns [16:05:31]Send response to host [16:05:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188370,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [16:05:31]free response buf [16:05:31]execute_script done [16:05:31]execute_script returns [16:05:31]free content buf [16:05:31]Sock 7.Close socket [16:05:31]Sock 7.Thread stoped [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05:45]OFD Sender: No OFD packet to send [16:05:50]OFD Sender: No OFD packet to send [16:05:55]OFD Sender: No OFD packet to send [16:06:00]OFD Sender: No OFD packet to send [16:06:05]OFD Sender: No OFD packet to send [16:06:10]OFD Sender: No OFD packet to send [16:06:15]OFD Sender: No OFD packet to send [16:06:20]OFD Sender: No OFD packet to send [16:06:25]OFD Sender: No OFD packet to send [16:06:30]OFD Sender: No OFD packet to send [16:06:35]OFD Sender: No OFD packet to send [16:06:40]OFD Sender: No OFD packet to send [16:06:45]OFD Sender: No OFD packet to send [16:06:50]OFD Sender: No OFD packet to send [16:06:55]OFD Sender: No OFD packet to send [16:07:00]OFD Sender: No OFD packet to send [16:07:05]OFD Sender: No OFD packet to send [16:07:10]OFD Sender: No OFD packet to send [16:07:15]OFD Sender: No OFD packet to send [16:07:20]OFD Sender: No OFD packet to send [17:10:49]ConnectInit Can't connect to host [17:10:53]OFD Sender: No OFD packet to send [17:10:58]OFD Sender: No OFD packet to send [17:11:03]OFD Sender: No OFD packet to send [17:11:08]OFD Sender: No OFD packet to send [17:11:13]OFD Sender: No OFD packet to send [17:11:18]OFD Sender: No OFD packet to send [17:11:23]OFD Sender: No OFD packet to send [17:11:28]OFD Sender: No OFD packet to send [17:11:33]OFD Sender: No OFD packet to send [17:11:38]OFD Sender: No OFD packet to send [17:11:43]OFD Sender: No OFD packet to send [17:11:48]OFD Sender: No OFD packet to send [17:11:53]OFD Sender: No OFD packet to send [17:11:58]OFD Sender: No OFD packet to send [17:12:03]OFD Sender: No OFD packet to send [17:12:08]OFD Sender: No OFD packet to send [17:12:13]OFD Sender: No OFD packet to send [17:12:18]OFD Sender: No OFD packet to send [17:12:23]OFD Sender: No OFD packet to send [17:12:26]accept exits with 9 [17:12:26]New connection [17:12:26]New thread 3066613092 created [17:12:26]Thread 3066756452 joined [17:12:26]Waiting for new connection... [17:12:26] Sock 9.Parse request [17:12:26]Sock 9.Check first char [17:12:26]Sock 9.First char is OK [17:12:26]request: POST /json_proto HTTP/1.0 [17:12:26]Method: POST [17:12:26]URL: /json_proto [17:12:26]Method is POST - this is cgi request [17:12:26]url: /json_proto [17:12:26]query_string will be loaded in cgi processing [17:12:26]execute_cgi json_proto POST (null) [17:12:26]execute_cgi path=json_proto method=POST [17:12:26]POST find Content-Length [17:12:26]Host: 172.17.42.131:8080 [17:12:26]Content-Length: 682 [17:12:26]Content-Type: application/json [17:12:26] [17:12:26]POST finish read [17:12:26]Found Content-Length = 682 [17:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 32.460, "sum" : 2171.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2171.00, "payments": [ { "type": 0, "sum" : 2171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:26]execute_script... [17:12:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210461", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 32.460, "sum" : 2171.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 2171.00, "payments": [ { "type": 0, "sum" : 2171.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:12:26]POST & json_proto [17:12:26]process_json_proto [17:12:26]json parsed OK: [17:12:26]protocol is kg_v1.0 [17:12:26]action value=close_receipt [17:12:26]process_action close_receipt [17:12:26]cmd_close_receipt [17:12:26]MH_GetDate [17:12:26]Write to MH i2c: F0 00 00 68 00 57 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: F0 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: F0 09 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: F0 09 00 68 00 00 FB DC 17 67 A0 18 CA 66 9D [17:12:26]GetLastDocTimeStamp 1729616990 [17:12:26]current date 1729617147 [17:12:26]FM_GetShiftState [17:12:26]SAM_PROTO_GetShiftState [17:12:26]wFMCommunicate request_size=4 [17:12:26]MH_SAM_APDU [17:12:26]CAPDU: 80 13 01 00 [17:12:26]Write to MH i2c: E2 08 00 69 00 80 13 01 00 00 00 00 00 E6 [17:12:26]Write i2c OK [17:12:26]MH_I2C_Read... [17:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:26]Read from MH i2c: E2 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 0E 00 [17:12:26]MH_I2C_Read... [17:12:26]Read from MH i2c: E2 0E 00 69 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [17:12:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:12:26]wFMCommunicate OK [17:12:26]SAM_PROTO_GetShiftState done [17:12:26]FM_GetShiftState done [17:12:26]opened in 1729556094 [17:12:26]opened+sec_in_day 1729642494 [17:12:26]quantity*price = 217157 [17:12:26]sum+1 = 217158 [17:12:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 2171.00 Внесено: 5000.00 СДАЧА: 2829.00 НСП 1% : 19.22 НДС 12% : 230.61 Наличными: 2171.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 430 22.10.2024 17:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188401 ФПД: 277334260249309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171227&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188401&fm=277334260249309&tin=02508201610067®Number=0000000000100030&sum=217100 [17:12:27]StoreToDocumentArchive [17:12:27]shift 461 fd 188401 [17:12:27]save to /storage/0461/doc_00188401 [17:12:27]save last doc name /storage/0461/doc_00188401 to /storage/kkm_last_doc_name [17:12:27]save OK [17:12:27]Clear old archive folders... [17:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:12:27]tlvbuf is 009076A0 [17:12:27]SAM_PROTO_ClearQueue [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 09 00 00 [17:12:27]Write to MH i2c: E2 08 00 76 00 80 09 00 00 00 00 00 00 E8 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 76 00 00 90 00 EA [17:12:27]RAPDU: 90 00 [17:12:27]wFMCommunicate OK [17:12:27]SAM_PROTO_ClearQueue done [17:12:27]KKMCreateOFDPacket [17:12:27]OFDProtocolAddRootSTLVToBuf [17:12:27]FM_MakeSignedData [17:12:27]FM_MakeSignedData [17:12:27]SAM_PROTO_SignData [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 0D 01 02 [17:12:27]Write to MH i2c: E2 08 00 77 00 80 0D 01 02 00 00 00 00 F0 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 77 00 00 90 00 EB [17:12:27]RAPDU: 90 00 [17:12:27]wFMCommunicate OK [17:12:27]wFMCommunicate request_size=255 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 7E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 5A 00 00 00 00 07 04 06 00 0C 50 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 FB DC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DF 02 00 35 04 06 00 FC [17:12:27]Write to MH i2c: E2 02 01 78 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 7E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 5A 00 00 00 00 07 04 06 00 0C 50 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 FB DC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DF 02 00 35 04 06 00 FC 00 00 52 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 78 00 00 90 00 EC [17:12:27]RAPDU: 90 00 [17:12:27]wFMCommunicate OK [17:12:27]wFMCommunicate request_size=10 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 0D 02 02 05 3B EA 10 F2 DD [17:12:27]Write to MH i2c: E2 0D 00 79 00 80 0D 02 02 05 00 3B EA 10 F2 DD 00 00 01 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 03 00 79 00 00 90 00 ED [17:12:27]RAPDU: 90 00 [17:12:27]wFMCommunicate OK [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 0D 03 02 [17:12:27]Write to MH i2c: E2 08 00 7A 00 80 0D 03 02 00 00 00 00 F5 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 0B 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 0B 00 7A 00 00 8B 79 37 1E AB E9 1C 5A 90 00 59 [17:12:27]RAPDU: 8B 79 37 1E AB E9 1C 5A 90 00 [17:12:27]wFMCommunicate OK [17:12:27]SAM_PROTO_SignData done [17:12:27]FM_MakeSignedData done [17:12:27]CreateOFDProtocolMessage [17:12:27]wFMCommunicate request_size=4 [17:12:27]MH_SAM_APDU [17:12:27]CAPDU: 80 11 00 00 [17:12:27]Write to MH i2c: E2 08 00 7B 00 80 11 00 00 00 00 00 00 F5 [17:12:27]Write i2c OK [17:12:27]MH_I2C_Read... [17:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:27]Read from MH i2c: E2 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 17 00 [17:12:27]MH_I2C_Read... [17:12:27]Read from MH i2c: E2 17 00 7B 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [17:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:27]wFMCommunicate OK [17:12:27]CreateOFDProtocolMessage done [17:12:27]OFDSenderStorePacket 188401 [17:12:27]StoreOFDPacket docnum=188401 [17:12:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D CC 07 01 7D 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 7E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 5A 00 00 00 00 07 04 06 00 0C 50 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 FB DC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DF 02 00 35 04 06 00 FC 3B EA 10 F2 DD 8B 79 37 1E AB E9 1C 5A [17:12:27]CheckFolder [17:12:27]dirname=/storage/ofd_packets [17:12:27]CheckFolder done [17:12:27]ProducePacketName [17:12:27]name=ofd_packets/00188401 [17:12:27]NVStorageSaveData ofd_packets/00188401 [17:12:27]File name is /storage/ofd_packets/00188401 [17:12:27]Write 301 bytes [17:12:27]NVStorageSaveData done [17:12:27]OFDSenderStorePacket done [17:12:27]KKMCreateOFDPacket done [17:12:27]NVStorageSaveData kkm_last_timestamp [17:12:27]File name is /storage/kkm_last_timestamp [17:12:27]Write 4 bytes [17:12:27]NVStorageSaveData done [17:12:28]ExternCall_PrintAddStr [17:12:28]wPrintStart [17:12:28]Write to MH i2c: 01 00 00 7C 00 7C [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 7C 00 00 00 00 00 00 FF 0F 91 [17:12:28]RasterBufferAndPrint [17:12:28]line Счет N : (1)210461 [17:12:28]line ИНН: 02508201610067 [17:12:28]line Контрольно-Кассовый Чек [17:12:28]line ПРОДАЖА [17:12:28]line ТРК (МРК, ГНК) : 32 [17:12:28]line Товар: 2710124130 [17:12:28]line Аи-92-К-3 [17:12:28]line 32.460 * 66.90 [17:12:28]line = 2171.57 [17:12:28]line НДС 12% НСП 1% [17:12:28]line > о реализуемом товаре [17:12:28]line ОКРУГЛЕНИЕ: -0.57 [17:12:28]line ИТОГО: 2171.00 [17:12:28]line Внесено: 5000.00 [17:12:28]line СДАЧА: 2829.00 [17:12:28]line НСП 1% : 19.22 [17:12:28]line НДС 12% : 230.61 [17:12:28]line Наличными: 2171.00 [17:12:28]line Безнал.: 0.00 [17:12:28]line Место: АЗС № 86 "Партнер Нефть" [17:12:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:12:28]line СНО: Общий режим [17:12:28]line Чек 430 22.10.2024 17:12 [17:12:28]line Смена: 461 ФФД: 1.0 [17:12:28]line ЗНМ: 0300000155 [17:12:28]line РНМ: 0000000000100030 [17:12:28]line Версия ККМ: 001 [17:12:28]line ФМ: 0000000000965340 [17:12:28]line ФД: 188401 [17:12:28]line ФПД: 277334260249309 [17:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171227&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188401&fm=277334260249309&tin=02508201610067®Number=0000000000100030&sum=217100 [17:12:28]written 0, free lines is 4095 [17:12:28]OFD Sender: Processing packet 188401 [packets to send 1062, broken 1061] [17:12:28]ProducePacketName [17:12:28]name=ofd_packets/00188401 [17:12:28]OFD Sender: To server: pG, [17:12:28]CommunicateWithHost lk.salyk.kg:30040 [17:12:28]ConnectInit lk.salyk.kg [17:12:28]Connected sock=7 [17:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 0D CC 07 01 7D 3E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 7E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 45 50 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 50 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 82 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 5A 00 00 00 00 07 04 06 00 0C 50 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AE 01 00 00 F4 03 04 00 FB DC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DF 02 00 35 04 06 00 FC 3B EA 10 F2 DD 8B 79 37 1E AB E9 1C 5A [17:12:28]Write to MH i2c: 01 00 00 A7 00 A7 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: 01 07 00 A7 00 00 00 00 00 00 5F 0C 19 [17:12:28]RasterBufferAndPrint [17:12:28]line [17:12:28]line [17:12:28]line [17:12:28]line [17:12:28]line [17:12:28]written 0, free lines is 3170 [17:12:28]MH_Cut [17:12:28]Write to MH i2c: D1 01 00 AE 00 01 80 [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: D1 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: D1 01 00 [17:12:28]MH_I2C_Read... [17:12:28]Read from MH i2c: D1 01 00 AE 00 00 7F [17:12:28]Write to MH i2c: 01 00 00 AF 00 AF [17:12:28]Write i2c OK [17:12:28]MH_I2C_Read... [17:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 74 C7 47 00 E3 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F1 DF 02 00 F4 03 04 00 E8 86 17 67 B6 04 01 00 00 F9 03 71 28 B3 A5 CF C1 [17:12:28]CommunicateWithHost err = 0 [17:12:28]CheckOFDResponse [17:12:28]1017 (14) - 77093643461234 [17:12:28]1041 (16) - 0000000000965340 [17:12:28]1040 (4) - 188401 [17:12:28]1012 (4) - 22.10.2024 11:05 [17:12:28]1206 (1) - 0 [17:12:28]OFD Sender: Remove packet 188401 [17:12:28]ProducePacketName [17:12:28]name=ofd_packets/00188401 [17:12:28]NVStorageDeleteData [17:12:29]OFD Sender: No OFD packet to send [17:12:29]*** Cut start [17:12:29]*** Partial cut [17:12:29]*** CUTSNS_PIN = 1 [17:12:29]*** CUTSNS_PIN = 0 [17:12:30]*** Brake cut motor [17:12:30]Read from MH i2c: 01 [17:12:30]MH_I2C_Read... [17:12:30]*** Stop cut motor [17:12:30]*** Cut end [17:12:30]Read from MH i2c: 01 07 00 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: 01 07 00 AF 00 00 00 00 00 00 FF 0F C4 [17:12:30]process_action close_receipt done [17:12:30]requested_data is exist [17:12:30]produce_requested_data [17:12:30]requested_item fm.sn is exist - process it [17:12:30]wFMCommunicate request_size=4 [17:12:30]MH_SAM_APDU [17:12:30]CAPDU: 80 11 00 00 [17:12:30]Write to MH i2c: E2 08 00 B0 00 80 11 00 00 00 00 00 00 2A [17:12:30]Write i2c OK [17:12:30]MH_I2C_Read... [17:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:30]Read from MH i2c: E2 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: E2 17 00 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: E2 17 00 B0 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [17:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:30]wFMCommunicate OK [17:12:30]requested_item fd.num is exist - process it [17:12:30]SAM_PROTO_GetFieldsCounters [17:12:30]wFMCommunicate request_size=4 [17:12:30]MH_SAM_APDU [17:12:30]CAPDU: 80 13 00 00 [17:12:30]Write to MH i2c: E2 08 00 B1 00 80 13 00 00 00 00 00 00 2D [17:12:30]Write i2c OK [17:12:30]MH_I2C_Read... [17:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:30]Read from MH i2c: E2 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: E2 62 00 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: E2 62 00 B1 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [17:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F1 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AE 01 00 00 5E 04 04 00 AE 01 00 00 57 04 04 00 AF 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:30]wFMCommunicate OK [17:12:30]SAM_PROTO_GetFieldsCounters done [17:12:30]requested_item shift.num is exist - process it [17:12:30]requested_item shift.opened is exist - process it [17:12:30]req_shift_opened [17:12:30]FM_GetShiftState [17:12:30]SAM_PROTO_GetShiftState [17:12:30]wFMCommunicate request_size=4 [17:12:30]MH_SAM_APDU [17:12:30]CAPDU: 80 13 01 00 [17:12:30]Write to MH i2c: E2 08 00 B2 00 80 13 01 00 00 00 00 00 2F [17:12:30]Write i2c OK [17:12:30]MH_I2C_Read... [17:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:30]Read from MH i2c: E2 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: E2 0E 00 [17:12:30]MH_I2C_Read... [17:12:30]Read from MH i2c: E2 0E 00 B2 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [17:12:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:12:30]wFMCommunicate OK [17:12:30]SAM_PROTO_GetShiftState done [17:12:30]FM_GetShiftState done [17:12:30]req_shift_opened done [17:12:30]requested_item shift.open_date is exist - process it [17:12:30]req_shift_open_date [17:12:30]req_shift_open_date done [17:12:30]produce_requested_data done [17:12:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188401,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:12:30]process_action_free close_receipt [17:12:30]json_value_free [17:12:30]json_value_free done [17:12:30]process_json_proto returns [17:12:30]Send response to host [17:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188401,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:12:30]free response buf [17:12:30]execute_script done [17:12:30]execute_script returns [17:12:30]free content buf [17:12:30]Sock 9.Close socket [17:12:30]Sock 9.Thread stoped [17:12:34]OFD Sender: No OFD packet to send [17:12:39]OFD Sender: No OFD packet to send [17:12:43]accept exits with 10 [17:12:43]New connection [17:12:43]New thread 3066756452 created [17:12:43]Thread 3066613092 joined [17:12:43]Waiting for new connection... [17:12:43] Sock 10.Parse request [17:12:43]Sock 10.Check first char [17:12:43]Sock 10.First char is OK [17:12:43]request: POST /json_proto HTTP/1.0 [17:12:43]Method: POST [17:12:43]URL: /json_proto [17:12:43]Method is POST - this is cgi request [17:12:43]url: /json_proto [17:12:43]query_string will be loaded in cgi processing [17:12:43]execute_cgi json_proto POST (null) [17:12:43]execute_cgi path=json_proto method=POST [17:12:43]POST find Content-Length [17:12:43]Host: 172.17.42.131:8080 [17:12:43]Content-Length: 688 [17:12:43]Content-Type: application/json [17:12:43] [17:12:43]POST finish read [17:12:43]Found Content-Length = 688 [17:12:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:12:43]execute_script... [17:12:43]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210462", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:12:43]POST & json_proto [17:12:43]process_json_proto [17:12:43]json parsed OK: [17:12:43]protocol is kg_v1.0 [17:12:43]action value=close_receipt [17:12:43]process_action close_receipt [17:12:43]cmd_close_receipt [17:12:43]MH_GetDate [17:12:43]Write to MH i2c: F0 00 00 B3 00 A2 [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: F0 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: F0 09 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: F0 09 00 B3 00 00 0C DD 17 67 A0 18 CA 66 FA [17:12:43]GetLastDocTimeStamp 1729617147 [17:12:43]current date 1729617164 [17:12:43]FM_GetShiftState [17:12:43]SAM_PROTO_GetShiftState [17:12:43]wFMCommunicate request_size=4 [17:12:43]MH_SAM_APDU [17:12:43]CAPDU: 80 13 01 00 [17:12:43]Write to MH i2c: E2 08 00 B4 00 80 13 01 00 00 00 00 00 31 [17:12:43]Write i2c OK [17:12:43]MH_I2C_Read... [17:12:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:43]Read from MH i2c: E2 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 0E 00 [17:12:43]MH_I2C_Read... [17:12:43]Read from MH i2c: E2 0E 00 B4 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [17:12:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:12:43]wFMCommunicate OK [17:12:43]SAM_PROTO_GetShiftState done [17:12:43]FM_GetShiftState done [17:12:43]opened in 1729556094 [17:12:43]opened+sec_in_day 1729642494 [17:12:43]quantity*price = 100051 [17:12:43]sum+1 = 100052 [17:12:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 431 22.10.2024 17:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188402 ФПД: 212053405920077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188402&fm=212053405920077&tin=02508201610067®Number=0000000000100030&sum=100000 [17:12:44]StoreToDocumentArchive [17:12:44]shift 461 fd 188402 [17:12:44]save to /storage/0461/doc_00188402 [17:12:44]save last doc name /storage/0461/doc_00188402 to /storage/kkm_last_doc_name [17:12:44]save OK [17:12:44]Clear old archive folders... [17:12:44]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:12:44]tlvbuf is 00941FF0 [17:12:44]SAM_PROTO_ClearQueue [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 09 00 00 [17:12:44]Write to MH i2c: E2 08 00 C1 00 80 09 00 00 00 00 00 00 33 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 C1 00 00 90 00 35 [17:12:44]RAPDU: 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_ClearQueue done [17:12:44]KKMCreateOFDPacket [17:12:44]OFDProtocolAddRootSTLVToBuf [17:12:44]FM_MakeSignedData [17:12:44]FM_MakeSignedData [17:12:44]SAM_PROTO_SignData [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 0D 01 02 [17:12:44]Write to MH i2c: E2 08 00 C2 00 80 0D 01 02 00 00 00 00 3B [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 C2 00 00 90 00 36 [17:12:44]RAPDU: 90 00 [17:12:44]wFMCommunicate OK [17:12:44]wFMCommunicate request_size=255 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AF 01 00 00 F4 03 04 00 0C DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DF 02 [17:12:44]Write to MH i2c: E2 02 01 C3 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AF 01 00 00 F4 03 04 00 0C DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DF 02 00 00 50 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 C3 00 00 90 00 37 [17:12:44]RAPDU: 90 00 [17:12:44]wFMCommunicate OK [17:12:44]wFMCommunicate request_size=16 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C0 DC 87 EE EB 4D [17:12:44]Write to MH i2c: E2 13 00 C4 00 80 0D 02 02 0B 00 00 35 04 06 00 C0 DC 87 EE EB 4D 00 00 DC [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 03 00 C4 00 00 90 00 38 [17:12:44]RAPDU: 90 00 [17:12:44]wFMCommunicate OK [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 0D 03 02 [17:12:44]Write to MH i2c: E2 08 00 C5 00 80 0D 03 02 00 00 00 00 40 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0B 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 0B 00 C5 00 00 6B 21 50 E9 94 ED E6 70 90 00 DD [17:12:44]RAPDU: 6B 21 50 E9 94 ED E6 70 90 00 [17:12:44]wFMCommunicate OK [17:12:44]SAM_PROTO_SignData done [17:12:44]FM_MakeSignedData done [17:12:44]CreateOFDProtocolMessage [17:12:44]wFMCommunicate request_size=4 [17:12:44]MH_SAM_APDU [17:12:44]CAPDU: 80 11 00 00 [17:12:44]Write to MH i2c: E2 08 00 C6 00 80 11 00 00 00 00 00 00 40 [17:12:44]Write i2c OK [17:12:44]MH_I2C_Read... [17:12:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:44]Read from MH i2c: E2 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 17 00 [17:12:44]MH_I2C_Read... [17:12:44]Read from MH i2c: E2 17 00 C6 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [17:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:44]wFMCommunicate OK [17:12:44]CreateOFDProtocolMessage done [17:12:44]OFDSenderStorePacket 188402 [17:12:44]StoreOFDPacket docnum=188402 [17:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F8 D6 0D 01 39 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AF 01 00 00 F4 03 04 00 0C DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DF 02 00 35 04 06 00 C0 DC 87 EE EB 4D 6B 21 50 E9 94 ED E6 70 [17:12:44]CheckFolder [17:12:44]dirname=/storage/ofd_packets [17:12:44]CheckFolder done [17:12:44]ProducePacketName [17:12:44]name=ofd_packets/00188402 [17:12:44]NVStorageSaveData ofd_packets/00188402 [17:12:44]File name is /storage/ofd_packets/00188402 [17:12:44]Write 307 bytes [17:12:44]NVStorageSaveData done [17:12:44]OFDSenderStorePacket done [17:12:44]KKMCreateOFDPacket done [17:12:44]NVStorageSaveData kkm_last_timestamp [17:12:44]File name is /storage/kkm_last_timestamp [17:12:44]Write 4 bytes [17:12:44]NVStorageSaveData done [17:12:45]ExternCall_PrintAddStr [17:12:45]wPrintStart [17:12:45]Write to MH i2c: 01 00 00 C7 00 C7 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 07 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 07 00 C7 00 00 00 00 00 00 FF 0F DC [17:12:45]RasterBufferAndPrint [17:12:45]line Счет N : (1)210462 [17:12:45]line ИНН: 02508201610067 [17:12:45]line Контрольно-Кассовый Чек [17:12:45]line ПРОДАЖА [17:12:45]line ТРК (МРК, ГНК) : 11 [17:12:45]line Товар: 2710194210 [17:12:45]line D-ENERGY ДТ-К-5 [17:12:45]line 12.960 * 77.20 [17:12:45]line = 1000.51 [17:12:45]line НДС 12% НСП 1% [17:12:45]line > о реализуемом товаре [17:12:45]line ОКРУГЛЕНИЕ: -0.51 [17:12:45]line ИТОГО: 1000.00 [17:12:45]line Внесено: 1000.00 [17:12:45]line СДАЧА: 0.00 [17:12:45]line НСП 1% : 8.85 [17:12:45]line НДС 12% : 106.25 [17:12:45]line Наличными: 1000.00 [17:12:45]line Безнал.: 0.00 [17:12:45]line Место: АЗС № 86 "Партнер Нефть" [17:12:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:12:45]line СНО: Общий режим [17:12:45]line Чек 431 22.10.2024 17:12 [17:12:45]line Смена: 461 ФФД: 1.0 [17:12:45]line ЗНМ: 0300000155 [17:12:45]line РНМ: 0000000000100030 [17:12:45]line Версия ККМ: 001 [17:12:45]line ФМ: 0000000000965340 [17:12:45]line ФД: 188402 [17:12:45]line ФПД: 212053405920077 [17:12:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188402&fm=212053405920077&tin=02508201610067®Number=0000000000100030&sum=100000 [17:12:45]OFD Sender: Processing packet 188402 [packets to send 1062, broken 1061] [17:12:45]ProducePacketName [17:12:45]name=ofd_packets/00188402 [17:12:45]OFD Sender: To server: pG, [17:12:45]CommunicateWithHost lk.salyk.kg:30040 [17:12:45]ConnectInit lk.salyk.kg [17:12:45]written 0, free lines is 4095 [17:12:45]Connected sock=9 [17:12:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F8 D6 0D 01 39 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 AF 01 00 00 F4 03 04 00 0C DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DF 02 00 35 04 06 00 C0 DC 87 EE EB 4D 6B 21 50 E9 94 ED E6 70 [17:12:45]Write to MH i2c: 01 00 00 F2 00 F2 [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 07 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: 01 07 00 F2 00 00 00 00 00 00 63 0C 68 [17:12:45]RasterBufferAndPrint [17:12:45]line [17:12:45]line [17:12:45]line [17:12:45]line [17:12:45]line [17:12:45]written 0, free lines is 3175 [17:12:45]MH_Cut [17:12:45]Write to MH i2c: D1 01 00 F9 00 01 CB [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: D1 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: D1 01 00 [17:12:45]MH_I2C_Read... [17:12:45]Read from MH i2c: D1 01 00 F9 00 00 CA [17:12:45]Write to MH i2c: 01 00 00 FA 00 FA [17:12:45]Write i2c OK [17:12:45]MH_I2C_Read... [17:12:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6E F5 47 00 06 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F2 DF 02 00 F4 03 04 00 F8 86 17 67 B6 04 01 00 00 EB 37 99 6E 60 FA CA 86 [17:12:45]CommunicateWithHost err = 0 [17:12:45]CheckOFDResponse [17:12:45]1017 (14) - 77093643461234 [17:12:45]1041 (16) - 0000000000965340 [17:12:45]1040 (4) - 188402 [17:12:45]1012 (4) - 22.10.2024 11:05 [17:12:45]1206 (1) - 0 [17:12:45]OFD Sender: Remove packet 188402 [17:12:45]ProducePacketName [17:12:45]name=ofd_packets/00188402 [17:12:45]NVStorageDeleteData [17:12:46]OFD Sender: No OFD packet to send [17:12:46]*** Cut start [17:12:46]*** Partial cut [17:12:46]*** CUTSNS_PIN = 1 [17:12:46]*** CUTSNS_PIN = 0 [17:12:47]*** Brake cut motor [17:12:47]Read from MH i2c: 01 [17:12:47]MH_I2C_Read... [17:12:47]*** Stop cut motor [17:12:47]*** Cut end [17:12:47]Read from MH i2c: 01 07 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: 01 07 00 FA 00 00 00 00 00 00 FF 0F 0F [17:12:47]process_action close_receipt done [17:12:47]requested_data is exist [17:12:47]produce_requested_data [17:12:47]requested_item fm.sn is exist - process it [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 11 00 00 [17:12:47]Write to MH i2c: E2 08 00 FB 00 80 11 00 00 00 00 00 00 75 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 17 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 17 00 FB 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C3 [17:12:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:12:47]wFMCommunicate OK [17:12:47]requested_item fd.num is exist - process it [17:12:47]SAM_PROTO_GetFieldsCounters [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 13 00 00 [17:12:47]Write to MH i2c: E2 08 00 FC 00 80 13 00 00 00 00 00 00 78 [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 62 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 62 00 FC 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [17:12:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F2 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 AF 01 00 00 5E 04 04 00 AF 01 00 00 57 04 04 00 B0 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_GetFieldsCounters done [17:12:47]requested_item shift.num is exist - process it [17:12:47]requested_item shift.opened is exist - process it [17:12:47]req_shift_opened [17:12:47]FM_GetShiftState [17:12:47]SAM_PROTO_GetShiftState [17:12:47]wFMCommunicate request_size=4 [17:12:47]MH_SAM_APDU [17:12:47]CAPDU: 80 13 01 00 [17:12:47]Write to MH i2c: E2 08 00 FD 00 80 13 01 00 00 00 00 00 7A [17:12:47]Write i2c OK [17:12:47]MH_I2C_Read... [17:12:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:12:47]Read from MH i2c: E2 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0E 00 [17:12:47]MH_I2C_Read... [17:12:47]Read from MH i2c: E2 0E 00 FD 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6F [17:12:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:12:47]wFMCommunicate OK [17:12:47]SAM_PROTO_GetShiftState done [17:12:47]FM_GetShiftState done [17:12:47]req_shift_opened done [17:12:47]requested_item shift.open_date is exist - process it [17:12:47]req_shift_open_date [17:12:47]req_shift_open_date done [17:12:47]produce_requested_data done [17:12:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188402,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:12:47]process_action_free close_receipt [17:12:47]json_value_free [17:12:47]json_value_free done [17:12:47]process_json_proto returns [17:12:47]Send response to host [17:12:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188402,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:12:47]free response buf [17:12:47]execute_script done [17:12:47]execute_script returns [17:12:47]free content buf [17:12:47]Sock 10.Close socket [17:12:47]Sock 10.Thread stoped [17:12:51]OFD Sender: No OFD packet to send [17:12:56]OFD Sender: No OFD packet to send [17:13:01]OFD Sender: No OFD packet to send [17:13:06]OFD Sender: No OFD packet to send [17:13:11]OFD Sender: No OFD packet to send [17:13:16]OFD Sender: No OFD packet to send [17:13:21]OFD Sender: No OFD packet to send [17:13:26]OFD Sender: No OFD packet to send [17:13:31]OFD Sender: No OFD packet to send [17:13:36]OFD Sender: No OFD packet to send [17:13:41]OFD Sender: No OFD packet to send [17:13:46]OFD Sender: No OFD packet to send [17:13:51]OFD Sender: No OFD packet to send [17:13:56]OFD Sender: No OFD packet to send [17:14:01]OFD Sender: No OFD packet to send [17:14:06]OFD Sender: No OFD packet to send [17:14:11]OFD Sender: No OFD packet to send [17:14:16]OFD Sender: No OFD packet to send [17:14:21]OFD Sender: No OFD packet to send [17:14:26]OFD Sender: No OFD packet to send [17:14:31]OFD Sender: No OFD packet to send [17:14:36]OFD Sender: No OFD packet to send [17:14:41]OFD Sender: No OFD packet to send [17:14:46]OFD Sender: No OFD packet to send [17:14:51]OFD Sender: No OFD packet to send [17:14:56]OFD Sender: No OFD packet to send [17:15:01]OFD Sender: No OFD packet to send [17:15:06]OFD Sender: No OFD packet to send [17:15:11]OFD Sender: No OFD packet to send [17:15:16]OFD Sender: No OFD packet to send [17:15:21]OFD Sender: No OFD packet to send [17:15:26]OFD Sender: No OFD packet to send [17:15:31]OFD Sender: No OFD packet to send [17:15:36]OFD Sender: No OFD packet to send [17:15:41]OFD Sender: No OFD packet to send [17:15:46]OFD Sender: No OFD packet to send [17:15:52]OFD Sender: No OFD packet to send [17:15:57]OFD Sender: No OFD packet to send [17:15:58]accept exits with 7 [17:15:58]New connection [17:15:58]New thread 3066613092 created [17:15:58]Thread 3066756452 joined [17:15:58]Waiting for new connection... [17:15:58] Sock 7.Parse request [17:15:58]Sock 7.Check first char [17:15:58]Sock 7.First char is OK [17:15:58]request: POST /json_proto HTTP/1.0 [17:15:58]Method: POST [17:15:58]URL: /json_proto [17:15:58]Method is POST - this is cgi request [17:15:58]url: /json_proto [17:15:58]query_string will be loaded in cgi processing [17:15:58]execute_cgi json_proto POST (null) [17:15:58]execute_cgi path=json_proto method=POST [17:15:58]POST find Content-Length [17:15:58]Host: 172.17.42.131:8080 [17:15:58]Content-Length: 754 [17:15:58]Content-Type: application/json [17:15:58] [17:15:58]POST finish read [17:15:58]Found Content-Length = 754 [17:15:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120341", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:58]execute_script... [17:15: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)210463", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 30.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30120341", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:15:58]POST & json_proto [17:15:58]process_json_proto [17:15:58]json parsed OK: [17:15:58]protocol is kg_v1.0 [17:15:58]action value=close_receipt [17:15:58]process_action close_receipt [17:15:58]cmd_close_receipt [17:15:58]MH_GetDate [17:15:58]Write to MH i2c: F0 00 00 FE 00 ED [17:15:58]Write i2c OK [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: F0 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: F0 09 00 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: F0 09 00 FE 00 00 CF DD 17 67 A0 18 CA 66 08 [17:15:58]GetLastDocTimeStamp 1729617164 [17:15:58]current date 1729617359 [17:15:58]FM_GetShiftState [17:15:58]SAM_PROTO_GetShiftState [17:15:58]wFMCommunicate request_size=4 [17:15:58]MH_SAM_APDU [17:15:58]CAPDU: 80 13 01 00 [17:15:58]Write to MH i2c: E2 08 00 FF 00 80 13 01 00 00 00 00 00 7C [17:15:58]Write i2c OK [17:15:58]MH_I2C_Read... [17:15:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:58]Read from MH i2c: E2 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: E2 0E 00 [17:15:58]MH_I2C_Read... [17:15:58]Read from MH i2c: E2 0E 00 FF 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 71 [17:15:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:15:58]wFMCommunicate OK [17:15:58]SAM_PROTO_GetShiftState done [17:15:58]FM_GetShiftState done [17:15:58]opened in 1729556094 [17:15:58]opened+sec_in_day 1729642494 [17:15:58]quantity*price = 0 [17:15:58]sum+1 = 1 [17:15:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 432 22.10.2024 17:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30120341 ФМ: 0000000000965340 ФД: 188403 ФПД: 194592996587587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171559&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188403&fm=194592996587587&tin=02508201610067®Number=0000000000100030&sum=0 [17:15:59]StoreToDocumentArchive [17:15:59]shift 461 fd 188403 [17:15:59]save to /storage/0461/doc_00188403 [17:15:59]save last doc name /storage/0461/doc_00188403 to /storage/kkm_last_doc_name [17:15:59]save OK [17:15:59]Clear old archive folders... [17:15:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:15:59]tlvbuf is 0094ECE0 [17:15:59]SAM_PROTO_ClearQueue [17:15:59]wFMCommunicate request_size=4 [17:15:59]MH_SAM_APDU [17:15:59]CAPDU: 80 09 00 00 [17:15:59]Write to MH i2c: E2 08 00 0C 01 80 09 00 00 00 00 00 00 7F [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 0C 01 00 90 00 81 [17:15:59]RAPDU: 90 00 [17:15:59]wFMCommunicate OK [17:15:59]SAM_PROTO_ClearQueue done [17:15:59]KKMCreateOFDPacket [17:15:59]OFDProtocolAddRootSTLVToBuf [17:15:59]FM_MakeSignedData [17:15:59]FM_MakeSignedData [17:15:59]SAM_PROTO_SignData [17:15:59]wFMCommunicate request_size=4 [17:15:59]MH_SAM_APDU [17:15:59]CAPDU: 80 0D 01 02 [17:15:59]Write to MH i2c: E2 08 00 0D 01 80 0D 01 02 00 00 00 00 87 [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 0D 01 00 90 00 82 [17:15:59]RAPDU: 90 00 [17:15:59]wFMCommunicate OK [17:15:59]wFMCommunicate request_size=255 [17:15:59]MH_SAM_APDU [17:15: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 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 CF DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DF 02 00 35 04 06 00 B0 [17:15:59]Write to MH i2c: E2 02 01 0E 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 CF DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DF 02 00 35 04 06 00 B0 00 00 47 [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 0E 01 00 90 00 83 [17:15:59]RAPDU: 90 00 [17:15:59]wFMCommunicate OK [17:15:59]wFMCommunicate request_size=10 [17:15:59]MH_SAM_APDU [17:15:59]CAPDU: 80 0D 02 02 05 FB 36 6F F8 43 [17:15:59]Write to MH i2c: E2 0D 00 0F 01 80 0D 02 02 05 00 FB 36 6F F8 43 00 00 6F [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:15:59]Read from MH i2c: E2 03 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 03 00 0F 01 00 90 00 84 [17:15:59]RAPDU: 90 00 [17:15:59]wFMCommunicate OK [17:15:59]wFMCommunicate request_size=4 [17:15:59]MH_SAM_APDU [17:15:59]CAPDU: 80 0D 03 02 [17:15:59]Write to MH i2c: E2 08 00 10 01 80 0D 03 02 00 00 00 00 8C [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 0B 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 0B 00 10 01 00 8F 84 6B 59 18 1F 16 DE 90 00 8F [17:15:59]RAPDU: 8F 84 6B 59 18 1F 16 DE 90 00 [17:15:59]wFMCommunicate OK [17:15:59]SAM_PROTO_SignData done [17:15:59]FM_MakeSignedData done [17:15:59]CreateOFDProtocolMessage [17:15:59]wFMCommunicate request_size=4 [17:15:59]MH_SAM_APDU [17:15:59]CAPDU: 80 11 00 00 [17:15:59]Write to MH i2c: E2 08 00 11 01 80 11 00 00 00 00 00 00 8C [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:59]Read from MH i2c: E2 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 17 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: E2 17 00 11 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [17:15:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:15:59]wFMCommunicate OK [17:15:59]CreateOFDProtocolMessage done [17:15:59]OFDSenderStorePacket 188403 [17:15:59]StoreOFDPacket docnum=188403 [17:15:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 B0 07 01 D2 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 CF DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DF 02 00 35 04 06 00 B0 FB 36 6F F8 43 8F 84 6B 59 18 1F 16 DE [17:15:59]CheckFolder [17:15:59]dirname=/storage/ofd_packets [17:15:59]CheckFolder done [17:15:59]ProducePacketName [17:15:59]name=ofd_packets/00188403 [17:15:59]NVStorageSaveData ofd_packets/00188403 [17:15:59]File name is /storage/ofd_packets/00188403 [17:15:59]Write 301 bytes [17:15:59]NVStorageSaveData done [17:15:59]OFDSenderStorePacket done [17:15:59]KKMCreateOFDPacket done [17:15:59]NVStorageSaveData kkm_last_timestamp [17:15:59]File name is /storage/kkm_last_timestamp [17:15:59]Write 4 bytes [17:15:59]NVStorageSaveData done [17:15:59]ExternCall_PrintAddStr [17:15:59]wPrintStart [17:15:59]Write to MH i2c: 01 00 00 12 01 13 [17:15:59]Write i2c OK [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: 01 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: 01 07 00 [17:15:59]MH_I2C_Read... [17:15:59]Read from MH i2c: 01 07 00 12 01 00 00 00 00 00 FF 0F 28 [17:15:59]RasterBufferAndPrint [17:15:59]line Счет N : (1)210463 [17:15:59]line ИНН: 02508201610067 [17:15:59]line Контрольно-Кассовый Чек [17:15:59]line ПРОДАЖА [17:15:59]line ТРК (МРК, ГНК) : 22 [17:15:59]line Товар: 2710124130 [17:15:59]line Аи-92-К-3 [17:15:59]line 30.000 * 0.00 [17:15:59]line = 0.00 [17:15:59]line НДС 12% НСП 1% [17:15:59]line > о реализуемом товаре [17:15:59]line ИТОГО: 0.00 [17:15:59]line НСП 1% : 0.00 [17:15:59]line НДС 12% : 0.00 [17:15:59]line Наличными: 0.00 [17:15:59]line Безнал.: 0.00 [17:15:59]line Место: АЗС № 86 "Партнер Нефть" [17:15:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:15:59]line СНО: Общий режим [17:15:59]line Чек 432 22.10.2024 17:15 [17:15:59]line Смена: 461 ФФД: 1.0 [17:15:59]line ЗНМ: 0300000155 [17:15:59]line РНМ: 0000000000100030 [17:15:59]line Версия ККМ: 001 [17:15:59]line Талоны: ТК ГПНА Online [17:15:59]line 30120341 [17:15:59]line ФМ: 0000000000965340 [17:15:59]line ФД: 188403 [17:15:59]line ФПД: 194592996587587 [17:15:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T171559&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188403&fm=194592996587587&tin=02508201610067®Number=0000000000100030&sum=0 [17:15:59]written 0, free lines is 4095 [17:16:00]OFD Sender: Processing packet 188403 [packets to send 1062, broken 1061] [17:16:00]ProducePacketName [17:16:00]name=ofd_packets/00188403 [17:16:00]OFD Sender: To server: pG, [17:16:00]CommunicateWithHost lk.salyk.kg:30040 [17:16:00]ConnectInit lk.salyk.kg [17:16:00]Connected sock=10 [17:16:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 B0 07 01 D2 74 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 30 75 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 01 00 00 F4 03 04 00 CF DD 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DF 02 00 35 04 06 00 B0 FB 36 6F F8 43 8F 84 6B 59 18 1F 16 DE [17:16:00]Write to MH i2c: 01 00 00 3C 01 3D [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: 01 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: 01 07 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: 01 07 00 3C 01 00 00 00 00 00 6D 0C BD [17:16:00]RasterBufferAndPrint [17:16:00]line [17:16:00]line [17:16:00]line [17:16:00]line [17:16:00]line [17:16:00]written 0, free lines is 3186 [17:16:00]MH_Cut [17:16:00]Write to MH i2c: D1 01 00 43 01 01 16 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: D1 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: D1 01 00 [17:16:00]MH_I2C_Read... [17:16:00]Read from MH i2c: D1 01 00 43 01 00 15 [17:16:00]Write to MH i2c: 01 00 00 44 01 45 [17:16:00]Write i2c OK [17:16:00]MH_I2C_Read... [17:16:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC BF 47 00 3A 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F3 DF 02 00 F4 03 04 00 BB 87 17 67 B6 04 01 00 00 F1 80 AA 0D 8C 19 77 FD [17:16:00]CommunicateWithHost err = 0 [17:16:00]CheckOFDResponse [17:16:00]1017 (14) - 77093643461234 [17:16:00]1041 (16) - 0000000000965340 [17:16:00]1040 (4) - 188403 [17:16:00]1012 (4) - 22.10.2024 11:08 [17:16:00]1206 (1) - 0 [17:16:00]OFD Sender: Remove packet 188403 [17:16:00]ProducePacketName [17:16:00]name=ofd_packets/00188403 [17:16:00]NVStorageDeleteData [17:16:01]OFD Sender: No OFD packet to send [17:16:01]*** Cut start [17:16:01]*** Partial cut [17:16:01]*** CUTSNS_PIN = 1 [17:16:01]*** CUTSNS_PIN = 0 [17:16:01]*** Brake cut motor [17:16:02]Read from MH i2c: 01 [17:16:02]MH_I2C_Read... [17:16:02]*** Stop cut motor [17:16:02]*** Cut end [17:16:02]Read from MH i2c: 01 07 00 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: 01 07 00 44 01 00 00 00 00 00 FF 0F 5A [17:16:02]process_action close_receipt done [17:16:02]requested_data is exist [17:16:02]produce_requested_data [17:16:02]requested_item fm.sn is exist - process it [17:16:02]wFMCommunicate request_size=4 [17:16:02]MH_SAM_APDU [17:16:02]CAPDU: 80 11 00 00 [17:16:02]Write to MH i2c: E2 08 00 45 01 80 11 00 00 00 00 00 00 C0 [17:16:02]Write i2c OK [17:16:02]MH_I2C_Read... [17:16:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:02]Read from MH i2c: E2 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: E2 17 00 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: E2 17 00 45 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [17:16:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:16:02]wFMCommunicate OK [17:16:02]requested_item fd.num is exist - process it [17:16:02]SAM_PROTO_GetFieldsCounters [17:16:02]wFMCommunicate request_size=4 [17:16:02]MH_SAM_APDU [17:16:02]CAPDU: 80 13 00 00 [17:16:02]Write to MH i2c: E2 08 00 46 01 80 13 00 00 00 00 00 00 C3 [17:16:02]Write i2c OK [17:16:02]MH_I2C_Read... [17:16:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:02]Read from MH i2c: E2 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: E2 62 00 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: E2 62 00 46 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 7F [17:16:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F3 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B0 01 00 00 5E 04 04 00 B0 01 00 00 57 04 04 00 B1 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:16:02]wFMCommunicate OK [17:16:02]SAM_PROTO_GetFieldsCounters done [17:16:02]requested_item shift.num is exist - process it [17:16:02]requested_item shift.opened is exist - process it [17:16:02]req_shift_opened [17:16:02]FM_GetShiftState [17:16:02]SAM_PROTO_GetShiftState [17:16:02]wFMCommunicate request_size=4 [17:16:02]MH_SAM_APDU [17:16:02]CAPDU: 80 13 01 00 [17:16:02]Write to MH i2c: E2 08 00 47 01 80 13 01 00 00 00 00 00 C5 [17:16:02]Write i2c OK [17:16:02]MH_I2C_Read... [17:16:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:02]Read from MH i2c: E2 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: E2 0E 00 [17:16:02]MH_I2C_Read... [17:16:02]Read from MH i2c: E2 0E 00 47 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BA [17:16:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:16:02]wFMCommunicate OK [17:16:02]SAM_PROTO_GetShiftState done [17:16:02]FM_GetShiftState done [17:16:02]req_shift_opened done [17:16:02]requested_item shift.open_date is exist - process it [17:16:02]req_shift_open_date [17:16:02]req_shift_open_date done [17:16:02]produce_requested_data done [17:16:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188403,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:16:02]process_action_free close_receipt [17:16:02]json_value_free [17:16:02]json_value_free done [17:16:02]process_json_proto returns [17:16:02]Send response to host [17:16:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188403,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:16:02]free response buf [17:16:02]execute_script done [17:16:02]execute_script returns [17:16:02]free content buf [17:16:02]Sock 7.Close socket [17:16:02]Sock 7.Thread stoped [17:16:06]OFD Sender: No OFD packet to send [17:16:11]OFD Sender: No OFD packet to send [17:16:16]OFD Sender: No OFD packet to send [17:16:21]OFD Sender: No OFD packet to send [17:16:26]OFD Sender: No OFD packet to send [17:16:31]OFD Sender: No OFD packet to send [17:16:36]OFD Sender: No OFD packet to send [17:16:41]OFD Sender: No OFD packet to send [17:16:46]OFD Sender: No OFD packet to send [17:16:51]OFD Sender: No OFD packet to send [17:16:56]OFD Sender: No OFD packet to send [17:17:01]OFD Sender: No OFD packet to send [17:17:06]OFD Sender: No OFD packet to send [17:17:11]OFD Sender: No OFD packet to send [17:17:16]OFD Sender: No OFD packet to send [17:17:21]OFD Sender: No OFD packet to send [17:17:26]OFD Sender: No OFD packet to send [17:17:31]OFD Sender: No OFD packet to send [17:17:36]OFD Sender: No OFD packet to send [17:17:41]OFD Sender: No OFD packet to send [17:17:46]OFD Sender: No OFD packet to send [17:17:51]OFD Sender: No OFD packet to send [17:17:56]OFD Sender: No OFD packet to send [17:18:01]OFD Sender: No OFD packet to send [17:18:06]OFD Sender: No OFD packet to send [17:18:11]OFD Sender: No OFD packet to send [17:18:16]OFD Sender: No OFD packet to send [17:18:21]OFD Sender: No OFD packet to send [17:18:26]OFD Sender: No OFD packet to send [17:18:31]OFD Sender: No OFD packet to send [17:18:36]OFD Sender: No OFD packet to send [17:18:41]OFD Sender: No OFD packet to send [17:18:46]OFD Sender: No OFD packet to send [17:18:51]OFD Sender: No OFD packet to send [17:18:56]OFD Sender: No OFD packet to send [17:19:01]OFD Sender: No OFD packet to send [17:19:06]OFD Sender: No OFD packet to send [17:19:11]OFD Sender: No OFD packet to send [17:19:17]OFD Sender: No OFD packet to send [17:19:22]OFD Sender: No OFD packet to send [17:19:27]OFD Sender: No OFD packet to send [17:19:32]OFD Sender: No OFD packet to send [17:19:37]OFD Sender: No OFD packet to send [17:19:42]OFD Sender: No OFD packet to send [17:19:47]OFD Sender: No OFD packet to send [17:19:52]OFD Sender: No OFD packet to send [17:19:57]OFD Sender: No OFD packet to send [17:20:02]OFD Sender: No OFD packet to send [17:20:07]OFD Sender: No OFD packet to send [17:20:12]OFD Sender: No OFD packet to send [17:20:17]OFD Sender: No OFD packet to send [17:20:22]OFD Sender: No OFD packet to send [17:20:27]OFD Sender: No OFD packet to send [17:20:32]OFD Sender: No OFD packet to send [17:20:37]OFD Sender: No OFD packet to send [17:20:42]OFD Sender: No OFD packet to send [17:20:47]OFD Sender: No OFD packet to send [17:20:52]OFD Sender: No OFD packet to send [17:20:57]OFD Sender: No OFD packet to send [17:21:02]OFD Sender: No OFD packet to send [17:21:07]OFD Sender: No OFD packet to send [17:21:12]OFD Sender: No OFD packet to send [17:21:17]OFD Sender: No OFD packet to send [17:21:22]OFD Sender: No OFD packet to send [17:21:27]OFD Sender: No OFD packet to send [17:21:32]OFD Sender: No OFD packet to send [17:21:37]OFD Sender: No OFD packet to send [17:21:42]OFD Sender: No OFD packet to send [17:21:47]OFD Sender: No OFD packet to send [17:21:49]accept exits with 9 [17:21:49]New connection [17:21:49]New thread 3066756452 created [17:21:49]Thread 3066613092 joined [17:21:49]Waiting for new connection... [17:21:49] Sock 9.Parse request [17:21:49]Sock 9.Check first char [17:21:49]Sock 9.First char is OK [17:21:49]request: POST /json_proto HTTP/1.0 [17:21:49]Method: POST [17:21:49]URL: /json_proto [17:21:49]Method is POST - this is cgi request [17:21:49]url: /json_proto [17:21:49]query_string will be loaded in cgi processing [17:21:49]execute_cgi json_proto POST (null) [17:21:49]execute_cgi path=json_proto method=POST [17:21:49]POST find Content-Length [17:21:49]Host: 172.17.42.131:8080 [17:21:49]Content-Length: 682 [17:21:49]Content-Type: application/json [17:21:49] [17:21:49]POST finish read [17:21:49]Found Content-Length = 682 [17:21:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210464", "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" : 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" ] } } [17:21:49]execute_script... [17:21: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)210464", "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" : 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" ] } } [17:21:49]POST & json_proto [17:21:49]process_json_proto [17:21:49]json parsed OK: [17:21:49]protocol is kg_v1.0 [17:21:49]action value=close_receipt [17:21:49]process_action close_receipt [17:21:49]cmd_close_receipt [17:21:49]MH_GetDate [17:21:49]Write to MH i2c: F0 00 00 48 01 38 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: F0 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: F0 09 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: F0 09 00 48 01 00 2E DF 17 67 A0 18 CA 66 B4 [17:21:49]GetLastDocTimeStamp 1729617359 [17:21:49]current date 1729617710 [17:21:49]FM_GetShiftState [17:21:49]SAM_PROTO_GetShiftState [17:21:49]wFMCommunicate request_size=4 [17:21:49]MH_SAM_APDU [17:21:49]CAPDU: 80 13 01 00 [17:21:49]Write to MH i2c: E2 08 00 49 01 80 13 01 00 00 00 00 00 C7 [17:21:49]Write i2c OK [17:21:49]MH_I2C_Read... [17:21:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:49]Read from MH i2c: E2 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 0E 00 [17:21:49]MH_I2C_Read... [17:21:49]Read from MH i2c: E2 0E 00 49 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BC [17:21:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:21:49]wFMCommunicate OK [17:21:49]SAM_PROTO_GetShiftState done [17:21:49]FM_GetShiftState done [17:21:49]opened in 1729556094 [17:21:49]opened+sec_in_day 1729642494 [17:21:49]quantity*price = 200043 [17:21:49]sum+1 = 200044 [17:21:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 433 22.10.2024 17:21 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188404 ФПД: 144949376047398 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188404&fm=144949376047398&tin=02508201610067®Number=0000000000100030&sum=200000 [17:21:50]StoreToDocumentArchive [17:21:50]shift 461 fd 188404 [17:21:50]save to /storage/0461/doc_00188404 [17:21:50]save last doc name /storage/0461/doc_00188404 to /storage/kkm_last_doc_name [17:21:50]save OK [17:21:50]Clear old archive folders... [17:21:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:21:50]tlvbuf is 0094ED30 [17:21:50]SAM_PROTO_ClearQueue [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 09 00 00 [17:21:50]Write to MH i2c: E2 08 00 56 01 80 09 00 00 00 00 00 00 C9 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 03 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 03 00 56 01 00 90 00 CB [17:21:50]RAPDU: 90 00 [17:21:50]wFMCommunicate OK [17:21:50]SAM_PROTO_ClearQueue done [17:21:50]KKMCreateOFDPacket [17:21:50]OFDProtocolAddRootSTLVToBuf [17:21:50]FM_MakeSignedData [17:21:50]FM_MakeSignedData [17:21:50]SAM_PROTO_SignData [17:21:50]wFMCommunicate request_size=4 [17:21:50]MH_SAM_APDU [17:21:50]CAPDU: 80 0D 01 02 [17:21:50]Write to MH i2c: E2 08 00 57 01 80 0D 01 02 00 00 00 00 D1 [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:21:50]Read from MH i2c: E2 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 03 00 [17:21:50]MH_I2C_Read... [17:21:50]Read from MH i2c: E2 03 00 57 01 00 90 00 CC [17:21:50]RAPDU: 90 00 [17:21:50]wFMCommunicate OK [17:21:50]wFMCommunicate request_size=255 [17:21:50]MH_SAM_APDU [17:21: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 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 B1 01 00 00 F4 03 04 00 2E DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DF 02 00 35 04 06 00 83 [17:21:50]Write to MH i2c: E2 02 01 58 01 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B1 01 00 00 F4 03 04 00 2E DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DF 02 00 35 04 06 00 83 00 00 4F [17:21:50]Write i2c OK [17:21:50]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 58 01 00 90 00 CD [17:21:51]RAPDU: 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=10 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 0D 02 02 05 D4 A8 11 D9 26 [17:21:51]Write to MH i2c: E2 0D 00 59 01 80 0D 02 02 05 00 D4 A8 11 D9 26 00 00 6A [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 03 00 59 01 00 90 00 CE [17:21:51]RAPDU: 90 00 [17:21:51]wFMCommunicate OK [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 0D 03 02 [17:21:51]Write to MH i2c: E2 08 00 5A 01 80 0D 03 02 00 00 00 00 D6 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0B 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 0B 00 5A 01 00 E4 F6 F6 B7 F1 59 F6 1F 90 00 BD [17:21:51]RAPDU: E4 F6 F6 B7 F1 59 F6 1F 90 00 [17:21:51]wFMCommunicate OK [17:21:51]SAM_PROTO_SignData done [17:21:51]FM_MakeSignedData done [17:21:51]CreateOFDProtocolMessage [17:21:51]wFMCommunicate request_size=4 [17:21:51]MH_SAM_APDU [17:21:51]CAPDU: 80 11 00 00 [17:21:51]Write to MH i2c: E2 08 00 5B 01 80 11 00 00 00 00 00 00 D6 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:51]Read from MH i2c: E2 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: E2 17 00 5B 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [17:21:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:51]wFMCommunicate OK [17:21:51]CreateOFDProtocolMessage done [17:21:51]OFDSenderStorePacket 188404 [17:21:51]StoreOFDPacket docnum=188404 [17:21:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A2 1D 07 01 6F 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 B1 01 00 00 F4 03 04 00 2E DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DF 02 00 35 04 06 00 83 D4 A8 11 D9 26 E4 F6 F6 B7 F1 59 F6 1F [17:21:51]CheckFolder [17:21:51]dirname=/storage/ofd_packets [17:21:51]CheckFolder done [17:21:51]ProducePacketName [17:21:51]name=ofd_packets/00188404 [17:21:51]NVStorageSaveData ofd_packets/00188404 [17:21:51]File name is /storage/ofd_packets/00188404 [17:21:51]Write 301 bytes [17:21:51]NVStorageSaveData done [17:21:51]OFDSenderStorePacket done [17:21:51]KKMCreateOFDPacket done [17:21:51]NVStorageSaveData kkm_last_timestamp [17:21:51]File name is /storage/kkm_last_timestamp [17:21:51]Write 4 bytes [17:21:51]NVStorageSaveData done [17:21:51]ExternCall_PrintAddStr [17:21:51]wPrintStart [17:21:51]Write to MH i2c: 01 00 00 5C 01 5D [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 5C 01 00 00 00 00 00 FF 0F 72 [17:21:51]RasterBufferAndPrint [17:21:51]line Счет N : (1)210464 [17:21:51]line ИНН: 02508201610067 [17:21:51]line Контрольно-Кассовый Чек [17:21:51]line ПРОДАЖА [17:21:51]line ТРК (МРК, ГНК) : 33 [17:21:51]line Товар: 2710124500 [17:21:51]line Аи-95-К-3 [17:21:51]line 26.960 * 74.20 [17:21:51]line = 2000.43 [17:21:51]line НДС 12% НСП 1% [17:21:51]line > о реализуемом товаре [17:21:51]line ОКРУГЛЕНИЕ: -0.43 [17:21:51]line ИТОГО: 2000.00 [17:21:51]line Внесено: 2000.00 [17:21:51]line СДАЧА: 0.00 [17:21:51]line НСП 1% : 17.70 [17:21:51]line НДС 12% : 212.43 [17:21:51]line Наличными: 2000.00 [17:21:51]line Безнал.: 0.00 [17:21:51]line Место: АЗС № 86 "Партнер Нефть" [17:21:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:21:51]line СНО: Общий режим [17:21:51]line Чек 433 22.10.2024 17:21 [17:21:51]line Смена: 461 ФФД: 1.0 [17:21:51]line ЗНМ: 0300000155 [17:21:51]line РНМ: 0000000000100030 [17:21:51]line Версия ККМ: 001 [17:21:51]line ФМ: 0000000000965340 [17:21:51]line ФД: 188404 [17:21:51]line ФПД: 144949376047398 [17:21:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172150&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188404&fm=144949376047398&tin=02508201610067®Number=0000000000100030&sum=200000 [17:21:51]written 0, free lines is 4095 [17:21:51]OFD Sender: Processing packet 188404 [packets to send 1062, broken 1061] [17:21:51]ProducePacketName [17:21:51]name=ofd_packets/00188404 [17:21:51]OFD Sender: To server: pG, [17:21:51]CommunicateWithHost lk.salyk.kg:30040 [17:21:51]ConnectInit lk.salyk.kg [17:21:51]Connected sock=10 [17:21:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A2 1D 07 01 6F 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 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 B1 01 00 00 F4 03 04 00 2E DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F4 DF 02 00 35 04 06 00 83 D4 A8 11 D9 26 E4 F6 F6 B7 F1 59 F6 1F [17:21:51]Write to MH i2c: 01 00 00 87 01 88 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: 01 07 00 87 01 00 00 00 00 00 5A 0C F5 [17:21:51]RasterBufferAndPrint [17:21:51]line [17:21:51]line [17:21:51]line [17:21:51]line [17:21:51]line [17:21:51]written 0, free lines is 3165 [17:21:51]MH_Cut [17:21:51]Write to MH i2c: D1 01 00 8E 01 01 61 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: D1 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: D1 01 00 [17:21:51]MH_I2C_Read... [17:21:51]Read from MH i2c: D1 01 00 8E 01 00 60 [17:21:51]Write to MH i2c: 01 00 00 8F 01 90 [17:21:51]Write i2c OK [17:21:51]MH_I2C_Read... [17:21:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 18 76 47 00 96 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 39 36 35 33 34 30 10 04 04 00 F4 DF 02 00 F4 03 04 00 1B 89 17 67 B6 04 01 00 00 9D EE 04 DB A7 F0 37 29 [17:21:52]CommunicateWithHost err = 0 [17:21:52]CheckOFDResponse [17:21:52]1017 (14) - 77093643461234 [17:21:52]1041 (16) - 0000000000965340 [17:21:52]1040 (4) - 188404 [17:21:52]1012 (4) - 22.10.2024 11:14 [17:21:52]1206 (1) - 0 [17:21:52]OFD Sender: Remove packet 188404 [17:21:52]ProducePacketName [17:21:52]name=ofd_packets/00188404 [17:21:52]NVStorageDeleteData [17:21:52]OFD Sender: No OFD packet to send [17:21:53]*** Cut start [17:21:53]*** Partial cut [17:21:53]*** CUTSNS_PIN = 1 [17:21:53]*** CUTSNS_PIN = 0 [17:21:53]*** Brake cut motor [17:21:53]Read from MH i2c: 01 [17:21:53]MH_I2C_Read... [17:21:53]*** Stop cut motor [17:21:53]*** Cut end [17:21:53]Read from MH i2c: 01 07 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: 01 07 00 8F 01 00 00 00 00 00 FF 0F A5 [17:21:53]process_action close_receipt done [17:21:53]requested_data is exist [17:21:53]produce_requested_data [17:21:53]requested_item fm.sn is exist - process it [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 11 00 00 [17:21:53]Write to MH i2c: E2 08 00 90 01 80 11 00 00 00 00 00 00 0B [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 17 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 17 00 90 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 59 [17:21:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:21:53]wFMCommunicate OK [17:21:53]requested_item fd.num is exist - process it [17:21:53]SAM_PROTO_GetFieldsCounters [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 13 00 00 [17:21:53]Write to MH i2c: E2 08 00 91 01 80 13 00 00 00 00 00 00 0E [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 62 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 62 00 91 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 CE [17:21:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F4 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B1 01 00 00 5E 04 04 00 B1 01 00 00 57 04 04 00 B2 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:21:53]wFMCommunicate OK [17:21:53]SAM_PROTO_GetFieldsCounters done [17:21:53]requested_item shift.num is exist - process it [17:21:53]requested_item shift.opened is exist - process it [17:21:53]req_shift_opened [17:21:53]FM_GetShiftState [17:21:53]SAM_PROTO_GetShiftState [17:21:53]wFMCommunicate request_size=4 [17:21:53]MH_SAM_APDU [17:21:53]CAPDU: 80 13 01 00 [17:21:53]Write to MH i2c: E2 08 00 92 01 80 13 01 00 00 00 00 00 10 [17:21:53]Write i2c OK [17:21:53]MH_I2C_Read... [17:21:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:21:53]Read from MH i2c: E2 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 0E 00 [17:21:53]MH_I2C_Read... [17:21:53]Read from MH i2c: E2 0E 00 92 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 05 [17:21:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:21:53]wFMCommunicate OK [17:21:53]SAM_PROTO_GetShiftState done [17:21:53]FM_GetShiftState done [17:21:53]req_shift_opened done [17:21:53]requested_item shift.open_date is exist - process it [17:21:53]req_shift_open_date [17:21:53]req_shift_open_date done [17:21:53]produce_requested_data done [17:21:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188404,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:21:53]process_action_free close_receipt [17:21:53]json_value_free [17:21:53]json_value_free done [17:21:53]process_json_proto returns [17:21:53]Send response to host [17:21:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188404,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:21:53]free response buf [17:21:53]execute_script done [17:21:53]execute_script returns [17:21:53]free content buf [17:21:53]Sock 9.Close socket [17:21:53]Sock 9.Thread stoped [17:21:57]OFD Sender: No OFD packet to send [17:22:02]OFD Sender: No OFD packet to send [17:22:07]OFD Sender: No OFD packet to send [17:22:12]OFD Sender: No OFD packet to send [17:22:17]OFD Sender: No OFD packet to send [17:22:22]OFD Sender: No OFD packet to send [17:22:27]OFD Sender: No OFD packet to send [17:22:32]OFD Sender: No OFD packet to send [17:22:37]OFD Sender: No OFD packet to send [17:22:42]OFD Sender: No OFD packet to send [17:22:47]OFD Sender: No OFD packet to send [17:22:52]OFD Sender: No OFD packet to send [17:22:57]OFD Sender: No OFD packet to send [17:23:02]OFD Sender: No OFD packet to send [17:23:07]OFD Sender: No OFD packet to send [17:23:08]accept exits with 7 [17:23:08]New connection [17:23:08]New thread 3066613092 created [17:23:08]Thread 3066756452 joined [17:23:08]Waiting for new connection... [17:23:08] Sock 7.Parse request [17:23:08]Sock 7.Check first char [17:23:08]Sock 7.First char is OK [17:23:08]request: POST /json_proto HTTP/1.0 [17:23:08]Method: POST [17:23:08]URL: /json_proto [17:23:08]Method is POST - this is cgi request [17:23:08]url: /json_proto [17:23:08]query_string will be loaded in cgi processing [17:23:08]execute_cgi json_proto POST (null) [17:23:08]execute_cgi path=json_proto method=POST [17:23:08]POST find Content-Length [17:23:08]Host: 172.17.42.131:8080 [17:23:08]Content-Length: 754 [17:23:08]Content-Type: application/json [17:23:08] [17:23:08]POST finish read [17:23:08]Found Content-Length = 754 [17:23:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086153", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:08]execute_script... [17:23: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)210465", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30086153", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:23:08]POST & json_proto [17:23:08]process_json_proto [17:23:08]json parsed OK: [17:23:08]protocol is kg_v1.0 [17:23:08]action value=close_receipt [17:23:08]process_action close_receipt [17:23:08]cmd_close_receipt [17:23:08]MH_GetDate [17:23:08]Write to MH i2c: F0 00 00 93 01 83 [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: F0 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: F0 09 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: F0 09 00 93 01 00 7D DF 17 67 A0 18 CA 66 4E [17:23:08]GetLastDocTimeStamp 1729617710 [17:23:08]current date 1729617789 [17:23:08]FM_GetShiftState [17:23:08]SAM_PROTO_GetShiftState [17:23:08]wFMCommunicate request_size=4 [17:23:08]MH_SAM_APDU [17:23:08]CAPDU: 80 13 01 00 [17:23:08]Write to MH i2c: E2 08 00 94 01 80 13 01 00 00 00 00 00 12 [17:23:08]Write i2c OK [17:23:08]MH_I2C_Read... [17:23:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:08]Read from MH i2c: E2 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 0E 00 [17:23:08]MH_I2C_Read... [17:23:08]Read from MH i2c: E2 0E 00 94 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 07 [17:23:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:23:08]wFMCommunicate OK [17:23:08]SAM_PROTO_GetShiftState done [17:23:08]FM_GetShiftState done [17:23:08]opened in 1729556094 [17:23:08]opened+sec_in_day 1729642494 [17:23:08]quantity*price = 0 [17:23:08]sum+1 = 1 [17:23:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 434 22.10.2024 17:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30086153 ФМ: 0000000000965340 ФД: 188405 ФПД: 229282251303904 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172309&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188405&fm=229282251303904&tin=02508201610067®Number=0000000000100030&sum=0 [17:23:09]StoreToDocumentArchive [17:23:09]shift 461 fd 188405 [17:23:09]save to /storage/0461/doc_00188405 [17:23:09]save last doc name /storage/0461/doc_00188405 to /storage/kkm_last_doc_name [17:23:09]save OK [17:23:09]Clear old archive folders... [17:23:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:23:09]tlvbuf is 00941680 [17:23:09]SAM_PROTO_ClearQueue [17:23:09]wFMCommunicate request_size=4 [17:23:09]MH_SAM_APDU [17:23:09]CAPDU: 80 09 00 00 [17:23:09]Write to MH i2c: E2 08 00 A1 01 80 09 00 00 00 00 00 00 14 [17:23:09]Write i2c OK [17:23:09]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 A1 01 00 90 00 16 [17:23:10]RAPDU: 90 00 [17:23:10]wFMCommunicate OK [17:23:10]SAM_PROTO_ClearQueue done [17:23:10]KKMCreateOFDPacket [17:23:10]OFDProtocolAddRootSTLVToBuf [17:23:10]FM_MakeSignedData [17:23:10]FM_MakeSignedData [17:23:10]SAM_PROTO_SignData [17:23:10]wFMCommunicate request_size=4 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 0D 01 02 [17:23:10]Write to MH i2c: E2 08 00 A2 01 80 0D 01 02 00 00 00 00 1C [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 A2 01 00 90 00 17 [17:23:10]RAPDU: 90 00 [17:23:10]wFMCommunicate OK [17:23:10]wFMCommunicate request_size=255 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 7D DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DF 02 00 35 04 06 00 D0 [17:23:10]Write to MH i2c: E2 02 01 A3 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 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 7D DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DF 02 00 35 04 06 00 D0 00 00 79 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 A3 01 00 90 00 18 [17:23:10]RAPDU: 90 00 [17:23:10]wFMCommunicate OK [17:23:10]wFMCommunicate request_size=10 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 0D 02 02 05 87 EF 24 6B E0 [17:23:10]Write to MH i2c: E2 0D 00 A4 01 80 0D 02 02 05 00 87 EF 24 6B E0 00 00 0E [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 03 00 A4 01 00 90 00 19 [17:23:10]RAPDU: 90 00 [17:23:10]wFMCommunicate OK [17:23:10]wFMCommunicate request_size=4 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 0D 03 02 [17:23:10]Write to MH i2c: E2 08 00 A5 01 80 0D 03 02 00 00 00 00 21 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 0B 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 0B 00 A5 01 00 3A 58 C1 65 45 7C 1A 3B 90 00 F0 [17:23:10]RAPDU: 3A 58 C1 65 45 7C 1A 3B 90 00 [17:23:10]wFMCommunicate OK [17:23:10]SAM_PROTO_SignData done [17:23:10]FM_MakeSignedData done [17:23:10]CreateOFDProtocolMessage [17:23:10]wFMCommunicate request_size=4 [17:23:10]MH_SAM_APDU [17:23:10]CAPDU: 80 11 00 00 [17:23:10]Write to MH i2c: E2 08 00 A6 01 80 11 00 00 00 00 00 00 21 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:10]Read from MH i2c: E2 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 17 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: E2 17 00 A6 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [17:23:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:23:10]wFMCommunicate OK [17:23:10]CreateOFDProtocolMessage done [17:23:10]OFDSenderStorePacket 188405 [17:23:10]StoreOFDPacket docnum=188405 [17:23:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD 0C 07 01 9D 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 7D DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DF 02 00 35 04 06 00 D0 87 EF 24 6B E0 3A 58 C1 65 45 7C 1A 3B [17:23:10]CheckFolder [17:23:10]dirname=/storage/ofd_packets [17:23:10]CheckFolder done [17:23:10]ProducePacketName [17:23:10]name=ofd_packets/00188405 [17:23:10]NVStorageSaveData ofd_packets/00188405 [17:23:10]File name is /storage/ofd_packets/00188405 [17:23:10]Write 301 bytes [17:23:10]NVStorageSaveData done [17:23:10]OFDSenderStorePacket done [17:23:10]KKMCreateOFDPacket done [17:23:10]NVStorageSaveData kkm_last_timestamp [17:23:10]File name is /storage/kkm_last_timestamp [17:23:10]Write 4 bytes [17:23:10]NVStorageSaveData done [17:23:10]ExternCall_PrintAddStr [17:23:10]wPrintStart [17:23:10]Write to MH i2c: 01 00 00 A7 01 A8 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: 01 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: 01 07 00 [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: 01 07 00 A7 01 00 00 00 00 00 FF 0F BD [17:23:10]RasterBufferAndPrint [17:23:10]line Счет N : (1)210465 [17:23:10]line ИНН: 02508201610067 [17:23:10]line Контрольно-Кассовый Чек [17:23:10]line ПРОДАЖА [17:23:10]line ТРК (МРК, ГНК) : 12 [17:23:10]line Товар: 2710124130 [17:23:10]line Аи-92-К-3 [17:23:10]line 20.000 * 0.00 [17:23:10]line = 0.00 [17:23:10]line НДС 12% НСП 1% [17:23:10]line > о реализуемом товаре [17:23:10]line ИТОГО: 0.00 [17:23:10]line НСП 1% : 0.00 [17:23:10]line НДС 12% : 0.00 [17:23:10]line Наличными: 0.00 [17:23:10]line Безнал.: 0.00 [17:23:10]line Место: АЗС № 86 "Партнер Нефть" [17:23:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:23:10]line СНО: Общий режим [17:23:10]line Чек 434 22.10.2024 17:23 [17:23:10]line Смена: 461 ФФД: 1.0 [17:23:10]line ЗНМ: 0300000155 [17:23:10]line РНМ: 0000000000100030 [17:23:10]line Версия ККМ: 001 [17:23:10]line Талоны: ТК ГПНА Online [17:23:10]line 30086153 [17:23:10]line ФМ: 0000000000965340 [17:23:10]line ФД: 188405 [17:23:10]line ФПД: 229282251303904 [17:23:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172309&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188405&fm=229282251303904&tin=02508201610067®Number=0000000000100030&sum=0 [17:23:10]written 0, free lines is 4095 [17:23:10]OFD Sender: Processing packet 188405 [packets to send 1062, broken 1061] [17:23:10]ProducePacketName [17:23:10]name=ofd_packets/00188405 [17:23:10]OFD Sender: To server: pG, [17:23:10]CommunicateWithHost lk.salyk.kg:30040 [17:23:10]ConnectInit lk.salyk.kg [17:23:10]Connected sock=9 [17:23:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD 0C 07 01 9D 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B2 01 00 00 F4 03 04 00 7D DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DF 02 00 35 04 06 00 D0 87 EF 24 6B E0 3A 58 C1 65 45 7C 1A 3B [17:23:10]Write to MH i2c: 01 00 00 D1 01 D2 [17:23:10]Write i2c OK [17:23:10]MH_I2C_Read... [17:23:10]Read from MH i2c: 01 [17:23:10]MH_I2C_Read... [17:23:11]Read from MH i2c: 01 07 00 [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: 01 07 00 D1 01 00 00 00 00 00 75 0C 5A [17:23:11]RasterBufferAndPrint [17:23:11]line [17:23:11]line [17:23:11]line [17:23:11]line [17:23:11]line [17:23:11]written 0, free lines is 3194 [17:23:11]MH_Cut [17:23:11]Write to MH i2c: D1 01 00 D8 01 01 AB [17:23:11]Write i2c OK [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: D1 [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: D1 01 00 [17:23:11]MH_I2C_Read... [17:23:11]Read from MH i2c: D1 01 00 D8 01 00 AA [17:23:11]Write to MH i2c: 01 00 00 D9 01 DA [17:23:11]Write i2c OK [17:23:11]MH_I2C_Read... [17:23:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 B6 47 00 22 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F5 DF 02 00 F4 03 04 00 6A 89 17 67 B6 04 01 00 00 64 B6 8D 39 3A 38 91 82 [17:23:11]CommunicateWithHost err = 0 [17:23:11]CheckOFDResponse [17:23:11]1017 (14) - 77093643461234 [17:23:11]1041 (16) - 0000000000965340 [17:23:11]1040 (4) - 188405 [17:23:11]1012 (4) - 22.10.2024 11:15 [17:23:11]1206 (1) - 0 [17:23:11]OFD Sender: Remove packet 188405 [17:23:11]ProducePacketName [17:23:11]name=ofd_packets/00188405 [17:23:11]NVStorageDeleteData [17:23:11]OFD Sender: No OFD packet to send [17:23:12]*** Cut start [17:23:12]*** Partial cut [17:23:12]*** CUTSNS_PIN = 1 [17:23:12]*** CUTSNS_PIN = 0 [17:23:12]*** Brake cut motor [17:23:12]Read from MH i2c: 01 [17:23:12]MH_I2C_Read... [17:23:12]*** Stop cut motor [17:23:12]*** Cut end [17:23:12]Read from MH i2c: 01 07 00 [17:23:12]MH_I2C_Read... [17:23:12]Read from MH i2c: 01 07 00 D9 01 00 00 00 00 00 FF 0F EF [17:23:12]process_action close_receipt done [17:23:12]requested_data is exist [17:23:12]produce_requested_data [17:23:12]requested_item fm.sn is exist - process it [17:23:12]wFMCommunicate request_size=4 [17:23:12]MH_SAM_APDU [17:23:12]CAPDU: 80 11 00 00 [17:23:12]Write to MH i2c: E2 08 00 DA 01 80 11 00 00 00 00 00 00 55 [17:23:12]Write i2c OK [17:23:12]MH_I2C_Read... [17:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:23:12]Read from MH i2c: E2 [17:23:12]MH_I2C_Read... [17:23:12]Read from MH i2c: E2 17 00 [17:23:12]MH_I2C_Read... [17:23:12]Read from MH i2c: E2 17 00 DA 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [17:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:23:12]wFMCommunicate OK [17:23:12]requested_item fd.num is exist - process it [17:23:12]SAM_PROTO_GetFieldsCounters [17:23:12]wFMCommunicate request_size=4 [17:23:12]MH_SAM_APDU [17:23:12]CAPDU: 80 13 00 00 [17:23:12]Write to MH i2c: E2 08 00 DB 01 80 13 00 00 00 00 00 00 58 [17:23:12]Write i2c OK [17:23:12]MH_I2C_Read... [17:23:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:23:13]Read from MH i2c: E2 [17:23:13]MH_I2C_Read... [17:23:13]Read from MH i2c: E2 62 00 [17:23:13]MH_I2C_Read... [17:23:13]Read from MH i2c: E2 62 00 DB 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [17:23:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F5 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B2 01 00 00 5E 04 04 00 B2 01 00 00 57 04 04 00 B3 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:23:13]wFMCommunicate OK [17:23:13]SAM_PROTO_GetFieldsCounters done [17:23:13]requested_item shift.num is exist - process it [17:23:13]requested_item shift.opened is exist - process it [17:23:13]req_shift_opened [17:23:13]FM_GetShiftState [17:23:13]SAM_PROTO_GetShiftState [17:23:13]wFMCommunicate request_size=4 [17:23:13]MH_SAM_APDU [17:23:13]CAPDU: 80 13 01 00 [17:23:13]Write to MH i2c: E2 08 00 DC 01 80 13 01 00 00 00 00 00 5A [17:23:13]Write i2c OK [17:23:13]MH_I2C_Read... [17:23:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:23:13]Read from MH i2c: E2 [17:23:13]MH_I2C_Read... [17:23:13]Read from MH i2c: E2 0E 00 [17:23:13]MH_I2C_Read... [17:23:13]Read from MH i2c: E2 0E 00 DC 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4F [17:23:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:23:13]wFMCommunicate OK [17:23:13]SAM_PROTO_GetShiftState done [17:23:13]FM_GetShiftState done [17:23:13]req_shift_opened done [17:23:13]requested_item shift.open_date is exist - process it [17:23:13]req_shift_open_date [17:23:13]req_shift_open_date done [17:23:13]produce_requested_data done [17:23:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188405,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:23:13]process_action_free close_receipt [17:23:13]json_value_free [17:23:13]json_value_free done [17:23:13]process_json_proto returns [17:23:13]Send response to host [17:23:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188405,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:23:13]free response buf [17:23:13]execute_script done [17:23:13]execute_script returns [17:23:13]free content buf [17:23:13]Sock 7.Close socket [17:23:13]Sock 7.Thread stoped [17:23:16]OFD Sender: No OFD packet to send [17:23:21]OFD Sender: No OFD packet to send [17:23:26]OFD Sender: No OFD packet to send [17:23:31]OFD Sender: No OFD packet to send [17:23:36]OFD Sender: No OFD packet to send [17:23:41]OFD Sender: No OFD packet to send [17:23:46]OFD Sender: No OFD packet to send [17:23:51]OFD Sender: No OFD packet to send [17:23:56]OFD Sender: No OFD packet to send [17:24:01]OFD Sender: No OFD packet to send [17:24:06]OFD Sender: No OFD packet to send [17:24:11]OFD Sender: No OFD packet to send [17:24:12]accept exits with 10 [17:24:12]New connection [17:24:12]New thread 3066756452 created [17:24:12]Thread 3066613092 joined [17:24:12]Waiting for new connection... [17:24:12] Sock 10.Parse request [17:24:12]Sock 10.Check first char [17:24:12]Sock 10.First char is OK [17:24:12]request: POST /json_proto HTTP/1.0 [17:24:12]Method: POST [17:24:12]URL: /json_proto [17:24:12]Method is POST - this is cgi request [17:24:12]url: /json_proto [17:24:12]query_string will be loaded in cgi processing [17:24:12]execute_cgi json_proto POST (null) [17:24:12]execute_cgi path=json_proto method=POST [17:24:12]POST find Content-Length [17:24:12]Host: 172.17.42.131:8080 [17:24:12]Content-Length: 682 [17:24:12]Content-Type: application/json [17:24:12] [17:24:12]POST finish read [17:24:12]Found Content-Length = 682 [17:24:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:12]execute_script... [17:24: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)210466", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1300.00, "total" : 1300.00, "payments": [ { "type": 0, "sum" : 1300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:12]POST & json_proto [17:24:12]process_json_proto [17:24:12]json parsed OK: [17:24:12]protocol is kg_v1.0 [17:24:12]action value=close_receipt [17:24:12]process_action close_receipt [17:24:12]cmd_close_receipt [17:24:12]MH_GetDate [17:24:12]Write to MH i2c: F0 00 00 DD 01 CD [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: F0 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: F0 09 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: F0 09 00 DD 01 00 BD DF 17 67 A0 18 CA 66 D8 [17:24:12]GetLastDocTimeStamp 1729617789 [17:24:12]current date 1729617853 [17:24:12]FM_GetShiftState [17:24:12]SAM_PROTO_GetShiftState [17:24:12]wFMCommunicate request_size=4 [17:24:12]MH_SAM_APDU [17:24:12]CAPDU: 80 13 01 00 [17:24:12]Write to MH i2c: E2 08 00 DE 01 80 13 01 00 00 00 00 00 5C [17:24:12]Write i2c OK [17:24:12]MH_I2C_Read... [17:24:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:12]Read from MH i2c: E2 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0E 00 [17:24:12]MH_I2C_Read... [17:24:12]Read from MH i2c: E2 0E 00 DE 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [17:24:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:24:12]wFMCommunicate OK [17:24:12]SAM_PROTO_GetShiftState done [17:24:12]FM_GetShiftState done [17:24:12]opened in 1729556094 [17:24:12]opened+sec_in_day 1729642494 [17:24:12]quantity*price = 130053 [17:24:12]sum+1 = 130055 [17:24:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 435 22.10.2024 17:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188406 ФПД: 63275195506663 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188406&fm=63275195506663&tin=02508201610067®Number=0000000000100030&sum=130000 [17:24:13]StoreToDocumentArchive [17:24:13]shift 461 fd 188406 [17:24:13]save to /storage/0461/doc_00188406 [17:24:13]save last doc name /storage/0461/doc_00188406 to /storage/kkm_last_doc_name [17:24:13]save OK [17:24:13]Clear old archive folders... [17:24:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:24:13]tlvbuf is 00943050 [17:24:13]SAM_PROTO_ClearQueue [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 09 00 00 [17:24:13]Write to MH i2c: E2 08 00 EB 01 80 09 00 00 00 00 00 00 5E [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 03 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 03 00 EB 01 00 90 00 60 [17:24:13]RAPDU: 90 00 [17:24:13]wFMCommunicate OK [17:24:13]SAM_PROTO_ClearQueue done [17:24:13]KKMCreateOFDPacket [17:24:13]OFDProtocolAddRootSTLVToBuf [17:24:13]FM_MakeSignedData [17:24:13]FM_MakeSignedData [17:24:13]SAM_PROTO_SignData [17:24:13]wFMCommunicate request_size=4 [17:24:13]MH_SAM_APDU [17:24:13]CAPDU: 80 0D 01 02 [17:24:13]Write to MH i2c: E2 08 00 EC 01 80 0D 01 02 00 00 00 00 66 [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:13]Read from MH i2c: E2 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 03 00 [17:24:13]MH_I2C_Read... [17:24:13]Read from MH i2c: E2 03 00 EC 01 00 90 00 61 [17:24:13]RAPDU: 90 00 [17:24:13]wFMCommunicate OK [17:24:13]wFMCommunicate request_size=255 [17:24:13]MH_SAM_APDU [17:24: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 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 BD DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DF 02 00 35 04 06 00 39 [17:24:13]Write to MH i2c: E2 02 01 ED 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 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 BD DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DF 02 00 35 04 06 00 39 00 00 BD [17:24:13]Write i2c OK [17:24:13]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 ED 01 00 90 00 62 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=10 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 02 02 05 8C 67 8D 1F E7 [17:24:14]Write to MH i2c: E2 0D 00 EE 01 80 0D 02 02 05 00 8C 67 8D 1F E7 00 00 F9 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 03 00 EE 01 00 90 00 63 [17:24:14]RAPDU: 90 00 [17:24:14]wFMCommunicate OK [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 0D 03 02 [17:24:14]Write to MH i2c: E2 08 00 EF 01 80 0D 03 02 00 00 00 00 6B [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0B 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 0B 00 EF 01 00 54 95 10 60 0A 77 B9 C9 90 00 C8 [17:24:14]RAPDU: 54 95 10 60 0A 77 B9 C9 90 00 [17:24:14]wFMCommunicate OK [17:24:14]SAM_PROTO_SignData done [17:24:14]FM_MakeSignedData done [17:24:14]CreateOFDProtocolMessage [17:24:14]wFMCommunicate request_size=4 [17:24:14]MH_SAM_APDU [17:24:14]CAPDU: 80 11 00 00 [17:24:14]Write to MH i2c: E2 08 00 F0 01 80 11 00 00 00 00 00 00 6B [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:14]Read from MH i2c: E2 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: E2 17 00 F0 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [17:24:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:14]wFMCommunicate OK [17:24:14]CreateOFDProtocolMessage done [17:24:14]OFDSenderStorePacket 188406 [17:24:14]StoreOFDPacket docnum=188406 [17:24:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 85 07 01 6C 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 BD DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DF 02 00 35 04 06 00 39 8C 67 8D 1F E7 54 95 10 60 0A 77 B9 C9 [17:24:14]CheckFolder [17:24:14]dirname=/storage/ofd_packets [17:24:14]CheckFolder done [17:24:14]ProducePacketName [17:24:14]name=ofd_packets/00188406 [17:24:14]NVStorageSaveData ofd_packets/00188406 [17:24:14]File name is /storage/ofd_packets/00188406 [17:24:14]Write 301 bytes [17:24:14]NVStorageSaveData done [17:24:14]OFDSenderStorePacket done [17:24:14]KKMCreateOFDPacket done [17:24:14]NVStorageSaveData kkm_last_timestamp [17:24:14]File name is /storage/kkm_last_timestamp [17:24:14]Write 4 bytes [17:24:14]NVStorageSaveData done [17:24:14]ExternCall_PrintAddStr [17:24:14]wPrintStart [17:24:14]Write to MH i2c: 01 00 00 F1 01 F2 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 F1 01 00 00 00 00 00 FF 0F 07 [17:24:14]RasterBufferAndPrint [17:24:14]line Счет N : (1)210466 [17:24:14]line ИНН: 02508201610067 [17:24:14]line Контрольно-Кассовый Чек [17:24:14]line ПРОДАЖА [17:24:14]line ТРК (МРК, ГНК) : 42 [17:24:14]line Товар: 2710124130 [17:24:14]line Аи-92-К-3 [17:24:14]line 19.440 * 66.90 [17:24:14]line = 1300.54 [17:24:14]line НДС 12% НСП 1% [17:24:14]line > о реализуемом товаре [17:24:14]line ОКРУГЛЕНИЕ: -0.54 [17:24:14]line ИТОГО: 1300.00 [17:24:14]line Внесено: 1300.00 [17:24:14]line СДАЧА: 0.00 [17:24:14]line НСП 1% : 11.51 [17:24:14]line НДС 12% : 138.11 [17:24:14]line Наличными: 1300.00 [17:24:14]line Безнал.: 0.00 [17:24:14]line Место: АЗС № 86 "Партнер Нефть" [17:24:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:24:14]line СНО: Общий режим [17:24:14]line Чек 435 22.10.2024 17:24 [17:24:14]line Смена: 461 ФФД: 1.0 [17:24:14]line ЗНМ: 0300000155 [17:24:14]line РНМ: 0000000000100030 [17:24:14]line Версия ККМ: 001 [17:24:14]line ФМ: 0000000000965340 [17:24:14]line ФД: 188406 [17:24:14]line ФПД: 63275195506663 [17:24:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188406&fm=63275195506663&tin=02508201610067®Number=0000000000100030&sum=130000 [17:24:14]written 0, free lines is 4095 [17:24:14]OFD Sender: Processing packet 188406 [packets to send 1062, broken 1061] [17:24:14]ProducePacketName [17:24:14]name=ofd_packets/00188406 [17:24:14]OFD Sender: To server: pG, [17:24:14]CommunicateWithHost lk.salyk.kg:30040 [17:24:14]ConnectInit lk.salyk.kg [17:24:14]Connected sock=9 [17:24:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 99 85 07 01 6C 77 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 FB 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 D0 FB 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B3 01 00 00 F4 03 04 00 BD DF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F6 DF 02 00 35 04 06 00 39 8C 67 8D 1F E7 54 95 10 60 0A 77 B9 C9 [17:24:14]Write to MH i2c: 01 00 00 1C 02 1E [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: 01 07 00 1C 02 00 00 00 00 00 5C 0C 8D [17:24:14]RasterBufferAndPrint [17:24:14]line [17:24:14]line [17:24:14]line [17:24:14]line [17:24:14]line [17:24:14]written 0, free lines is 3167 [17:24:14]MH_Cut [17:24:14]Write to MH i2c: D1 01 00 23 02 01 F7 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: D1 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: D1 01 00 [17:24:14]MH_I2C_Read... [17:24:14]Read from MH i2c: D1 01 00 23 02 00 F6 [17:24:14]Write to MH i2c: 01 00 00 24 02 26 [17:24:14]Write i2c OK [17:24:14]MH_I2C_Read... [17:24:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 72 10 47 00 C2 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 39 36 35 33 34 30 10 04 04 00 F6 DF 02 00 F4 03 04 00 AA 89 17 67 B6 04 01 00 00 65 10 FC BE 54 0A E1 C3 [17:24:15]CommunicateWithHost err = 0 [17:24:15]CheckOFDResponse [17:24:15]1017 (14) - 77093643461234 [17:24:15]1041 (16) - 0000000000965340 [17:24:15]1040 (4) - 188406 [17:24:15]1012 (4) - 22.10.2024 11:16 [17:24:15]1206 (1) - 0 [17:24:15]OFD Sender: Remove packet 188406 [17:24:15]ProducePacketName [17:24:15]name=ofd_packets/00188406 [17:24:15]NVStorageDeleteData [17:24:15]OFD Sender: No OFD packet to send [17:24:16]*** Cut start [17:24:16]*** Partial cut [17:24:16]*** CUTSNS_PIN = 1 [17:24:16]*** CUTSNS_PIN = 0 [17:24:16]*** Brake cut motor [17:24:16]Read from MH i2c: 01 [17:24:16]MH_I2C_Read... [17:24:16]*** Stop cut motor [17:24:16]*** Cut end [17:24:16]Read from MH i2c: 01 07 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: 01 07 00 24 02 00 00 00 00 00 FF 0F 3B [17:24:16]process_action close_receipt done [17:24:16]requested_data is exist [17:24:16]produce_requested_data [17:24:16]requested_item fm.sn is exist - process it [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 11 00 00 [17:24:16]Write to MH i2c: E2 08 00 25 02 80 11 00 00 00 00 00 00 A1 [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:16]Read from MH i2c: E2 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 17 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 17 00 25 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [17:24:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:24:16]wFMCommunicate OK [17:24:16]requested_item fd.num is exist - process it [17:24:16]SAM_PROTO_GetFieldsCounters [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 13 00 00 [17:24:16]Write to MH i2c: E2 08 00 26 02 80 13 00 00 00 00 00 00 A4 [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:16]Read from MH i2c: E2 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 62 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 62 00 26 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [17:24:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F6 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B3 01 00 00 5E 04 04 00 B3 01 00 00 57 04 04 00 B4 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:24:16]wFMCommunicate OK [17:24:16]SAM_PROTO_GetFieldsCounters done [17:24:16]requested_item shift.num is exist - process it [17:24:16]requested_item shift.opened is exist - process it [17:24:16]req_shift_opened [17:24:16]FM_GetShiftState [17:24:16]SAM_PROTO_GetShiftState [17:24:16]wFMCommunicate request_size=4 [17:24:16]MH_SAM_APDU [17:24:16]CAPDU: 80 13 01 00 [17:24:16]Write to MH i2c: E2 08 00 27 02 80 13 01 00 00 00 00 00 A6 [17:24:16]Write i2c OK [17:24:16]MH_I2C_Read... [17:24:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:16]Read from MH i2c: E2 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 0E 00 [17:24:16]MH_I2C_Read... [17:24:16]Read from MH i2c: E2 0E 00 27 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9B [17:24:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:24:16]wFMCommunicate OK [17:24:16]SAM_PROTO_GetShiftState done [17:24:16]FM_GetShiftState done [17:24:16]req_shift_opened done [17:24:16]requested_item shift.open_date is exist - process it [17:24:16]req_shift_open_date [17:24:16]req_shift_open_date done [17:24:16]produce_requested_data done [17:24:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188406,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:24:16]process_action_free close_receipt [17:24:16]json_value_free [17:24:16]json_value_free done [17:24:16]process_json_proto returns [17:24:16]Send response to host [17:24:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188406,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:24:16]free response buf [17:24:16]execute_script done [17:24:16]execute_script returns [17:24:16]free content buf [17:24:16]Sock 10.Close socket [17:24:16]Sock 10.Thread stoped [17:24:20]OFD Sender: No OFD packet to send [17:24:25]OFD Sender: No OFD packet to send [17:24:30]OFD Sender: No OFD packet to send [17:24:35]OFD Sender: No OFD packet to send [17:24:40]OFD Sender: No OFD packet to send [17:24:45]OFD Sender: No OFD packet to send [17:24:50]OFD Sender: No OFD packet to send [17:24:55]OFD Sender: No OFD packet to send [17:25:00]OFD Sender: No OFD packet to send [17:25:05]OFD Sender: No OFD packet to send [17:25:10]OFD Sender: No OFD packet to send [17:25:15]OFD Sender: No OFD packet to send [17:25:20]OFD Sender: No OFD packet to send [17:25:25]OFD Sender: No OFD packet to send [17:25:30]OFD Sender: No OFD packet to send [17:25:35]OFD Sender: No OFD packet to send [17:25:40]OFD Sender: No OFD packet to send [17:25:45]OFD Sender: No OFD packet to send [17:25:51]OFD Sender: No OFD packet to send [17:25:56]OFD Sender: No OFD packet to send [17:26:01]OFD Sender: No OFD packet to send [17:26:06]OFD Sender: No OFD packet to send [17:26:11]OFD Sender: No OFD packet to send [17:26:16]OFD Sender: No OFD packet to send [17:26:16]accept exits with 7 [17:26:16]New connection [17:26:16]New thread 3066613092 created [17:26:16]Thread 3066756452 joined [17:26:16]Waiting for new connection... [17:26:16] Sock 7.Parse request [17:26:16]Sock 7.Check first char [17:26:16]Sock 7.First char is OK [17:26:16]request: POST /json_proto HTTP/1.0 [17:26:16]Method: POST [17:26:16]URL: /json_proto [17:26:16]Method is POST - this is cgi request [17:26:16]url: /json_proto [17:26:16]query_string will be loaded in cgi processing [17:26:16]execute_cgi json_proto POST (null) [17:26:16]execute_cgi path=json_proto method=POST [17:26:16]POST find Content-Length [17:26:16]Host: 172.17.42.131:8080 [17:26:16]Content-Length: 677 [17:26:16]Content-Type: application/json [17:26:16] [17:26:16]POST finish read [17:26:16]Found Content-Length = 677 [17:26:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:16]execute_script... [17:26:16]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210467", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:16]POST & json_proto [17:26:16]process_json_proto [17:26:16]json parsed OK: [17:26:16]protocol is kg_v1.0 [17:26:16]action value=close_receipt [17:26:16]process_action close_receipt [17:26:16]cmd_close_receipt [17:26:16]MH_GetDate [17:26:16]Write to MH i2c: F0 00 00 28 02 19 [17:26:16]Write i2c OK [17:26:16]MH_I2C_Read... [17:26:16]Read from MH i2c: F0 [17:26:16]MH_I2C_Read... [17:26:16]Read from MH i2c: F0 09 00 [17:26:16]MH_I2C_Read... [17:26:16]Read from MH i2c: F0 09 00 28 02 00 39 E0 17 67 A0 18 CA 66 A1 [17:26:16]GetLastDocTimeStamp 1729617853 [17:26:16]current date 1729617977 [17:26:16]FM_GetShiftState [17:26:16]SAM_PROTO_GetShiftState [17:26:16]wFMCommunicate request_size=4 [17:26:16]MH_SAM_APDU [17:26:16]CAPDU: 80 13 01 00 [17:26:16]Write to MH i2c: E2 08 00 29 02 80 13 01 00 00 00 00 00 A8 [17:26:16]Write i2c OK [17:26:16]MH_I2C_Read... [17:26:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:16]Read from MH i2c: E2 [17:26:16]MH_I2C_Read... [17:26:16]Read from MH i2c: E2 0E 00 [17:26:16]MH_I2C_Read... [17:26:16]Read from MH i2c: E2 0E 00 29 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [17:26:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:26:16]wFMCommunicate OK [17:26:16]SAM_PROTO_GetShiftState done [17:26:16]FM_GetShiftState done [17:26:16]opened in 1729556094 [17:26:16]opened+sec_in_day 1729642494 [17:26:16]quantity*price = 50041 [17:26:16]sum+1 = 50042 [17:26:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 436 22.10.2024 17:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188407 ФПД: 127290074455393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188407&fm=127290074455393&tin=02508201610067®Number=0000000000100030&sum=50000 [17:26:18]StoreToDocumentArchive [17:26:18]shift 461 fd 188407 [17:26:18]save to /storage/0461/doc_00188407 [17:26:18]save last doc name /storage/0461/doc_00188407 to /storage/kkm_last_doc_name [17:26:18]save OK [17:26:18]Clear old archive folders... [17:26:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:18]tlvbuf is 009425C0 [17:26:18]SAM_PROTO_ClearQueue [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 09 00 00 [17:26:18]Write to MH i2c: E2 08 00 36 02 80 09 00 00 00 00 00 00 AA [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 36 02 00 90 00 AC [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]SAM_PROTO_ClearQueue done [17:26:18]KKMCreateOFDPacket [17:26:18]OFDProtocolAddRootSTLVToBuf [17:26:18]FM_MakeSignedData [17:26:18]FM_MakeSignedData [17:26:18]SAM_PROTO_SignData [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 0D 01 02 [17:26:18]Write to MH i2c: E2 08 00 37 02 80 0D 01 02 00 00 00 00 B2 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 37 02 00 90 00 AD [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]wFMCommunicate request_size=255 [17:26:18]MH_SAM_APDU [17:26: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 39 E0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DF 02 00 35 04 06 00 73 [17:26:18]Write to MH i2c: E2 02 01 38 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 39 E0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DF 02 00 35 04 06 00 73 00 00 8A [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 38 02 00 90 00 AE [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]wFMCommunicate request_size=10 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 0D 02 02 05 C5 07 AB DD 61 [17:26:18]Write to MH i2c: E2 0D 00 39 02 80 0D 02 02 05 00 C5 07 AB DD 61 00 00 74 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 03 00 39 02 00 90 00 AF [17:26:18]RAPDU: 90 00 [17:26:18]wFMCommunicate OK [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 0D 03 02 [17:26:18]Write to MH i2c: E2 08 00 3A 02 80 0D 03 02 00 00 00 00 B7 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 0B 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 0B 00 3A 02 00 E4 68 A1 01 C1 83 2C 30 90 00 46 [17:26:18]RAPDU: E4 68 A1 01 C1 83 2C 30 90 00 [17:26:18]wFMCommunicate OK [17:26:18]SAM_PROTO_SignData done [17:26:18]FM_MakeSignedData done [17:26:18]CreateOFDProtocolMessage [17:26:18]wFMCommunicate request_size=4 [17:26:18]MH_SAM_APDU [17:26:18]CAPDU: 80 11 00 00 [17:26:18]Write to MH i2c: E2 08 00 3B 02 80 11 00 00 00 00 00 00 B7 [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:18]Read from MH i2c: E2 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 17 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: E2 17 00 3B 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [17:26:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:26:18]wFMCommunicate OK [17:26:18]CreateOFDProtocolMessage done [17:26:18]OFDSenderStorePacket 188407 [17:26:18]StoreOFDPacket docnum=188407 [17:26:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A D0 07 01 88 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 39 E0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DF 02 00 35 04 06 00 73 C5 07 AB DD 61 E4 68 A1 01 C1 83 2C 30 [17:26:18]CheckFolder [17:26:18]dirname=/storage/ofd_packets [17:26:18]CheckFolder done [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00188407 [17:26:18]NVStorageSaveData ofd_packets/00188407 [17:26:18]File name is /storage/ofd_packets/00188407 [17:26:18]Write 301 bytes [17:26:18]NVStorageSaveData done [17:26:18]OFDSenderStorePacket done [17:26:18]KKMCreateOFDPacket done [17:26:18]NVStorageSaveData kkm_last_timestamp [17:26:18]File name is /storage/kkm_last_timestamp [17:26:18]Write 4 bytes [17:26:18]NVStorageSaveData done [17:26:18]ExternCall_PrintAddStr [17:26:18]wPrintStart [17:26:18]Write to MH i2c: 01 00 00 3C 02 3E [17:26:18]Write i2c OK [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 [17:26:18]MH_I2C_Read... [17:26:18]Read from MH i2c: 01 07 00 3C 02 00 00 00 00 00 FF 0F 53 [17:26:18]RasterBufferAndPrint [17:26:18]line Счет N : (1)210467 [17:26:18]line ИНН: 02508201610067 [17:26:18]line Контрольно-Кассовый Чек [17:26:18]line ПРОДАЖА [17:26:18]line ТРК (МРК, ГНК) : 42 [17:26:18]line Товар: 2710124130 [17:26:18]line Аи-92-К-3 [17:26:18]line 7.480 * 66.90 [17:26:18]line = 500.41 [17:26:18]line НДС 12% НСП 1% [17:26:18]line > о реализуемом товаре [17:26:18]line ОКРУГЛЕНИЕ: -0.41 [17:26:18]line ИТОГО: 500.00 [17:26:18]line Внесено: 500.00 [17:26:18]line СДАЧА: 0.00 [17:26:18]line НСП 1% : 4.43 [17:26:18]line НДС 12% : 53.14 [17:26:18]line Наличными: 500.00 [17:26:18]line Безнал.: 0.00 [17:26:18]line Место: АЗС № 86 "Партнер Нефть" [17:26:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:26:18]line СНО: Общий режим [17:26:18]line Чек 436 22.10.2024 17:26 [17:26:18]line Смена: 461 ФФД: 1.0 [17:26:18]line ЗНМ: 0300000155 [17:26:18]line РНМ: 0000000000100030 [17:26:18]line Версия ККМ: 001 [17:26:18]line ФМ: 0000000000965340 [17:26:18]line ФД: 188407 [17:26:18]line ФПД: 127290074455393 [17:26:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188407&fm=127290074455393&tin=02508201610067®Number=0000000000100030&sum=50000 [17:26:18]written 0, free lines is 4095 [17:26:18]OFD Sender: Processing packet 188407 [packets to send 1062, broken 1061] [17:26:18]ProducePacketName [17:26:18]name=ofd_packets/00188407 [17:26:18]OFD Sender: To server: pG, [17:26:18]CommunicateWithHost lk.salyk.kg:30040 [17:26:18]ConnectInit lk.salyk.kg [17:26:19]Connected sock=10 [17:26:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 9A D0 07 01 88 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 01 00 00 F4 03 04 00 39 E0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DF 02 00 35 04 06 00 73 C5 07 AB DD 61 E4 68 A1 01 C1 83 2C 30 [17:26:19]Write to MH i2c: 01 00 00 67 02 69 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 07 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: 01 07 00 67 02 00 00 00 00 00 5A 0C D6 [17:26:19]RasterBufferAndPrint [17:26:19]line [17:26:19]line [17:26:19]line [17:26:19]line [17:26:19]line [17:26:19]written 0, free lines is 3165 [17:26:19]MH_Cut [17:26:19]Write to MH i2c: D1 01 00 6E 02 01 42 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: D1 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: D1 01 00 [17:26:19]MH_I2C_Read... [17:26:19]Read from MH i2c: D1 01 00 6E 02 00 41 [17:26:19]Write to MH i2c: 01 00 00 6F 02 71 [17:26:19]Write i2c OK [17:26:19]MH_I2C_Read... [17:26:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 9E 47 00 5F 25 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F7 DF 02 00 F4 03 04 00 26 8A 17 67 B6 04 01 00 00 32 AB 79 B7 86 46 23 33 [17:26:19]CommunicateWithHost err = 0 [17:26:19]CheckOFDResponse [17:26:19]1017 (14) - 77093643461234 [17:26:19]1041 (16) - 0000000000965340 [17:26:19]1040 (4) - 188407 [17:26:19]1012 (4) - 22.10.2024 11:19 [17:26:19]1206 (1) - 0 [17:26:19]OFD Sender: Remove packet 188407 [17:26:19]ProducePacketName [17:26:19]name=ofd_packets/00188407 [17:26:19]NVStorageDeleteData [17:26:19]OFD Sender: No OFD packet to send [17:26:20]*** Cut start [17:26:20]*** Partial cut [17:26:20]*** CUTSNS_PIN = 1 [17:26:20]*** CUTSNS_PIN = 0 [17:26:20]*** Brake cut motor [17:26:20]Read from MH i2c: 01 [17:26:20]MH_I2C_Read... [17:26:20]*** Stop cut motor [17:26:20]*** Cut end [17:26:20]Read from MH i2c: 01 07 00 [17:26:20]MH_I2C_Read... [17:26:20]Read from MH i2c: 01 07 00 6F 02 00 00 00 00 00 FF 0F 86 [17:26:20]process_action close_receipt done [17:26:20]requested_data is exist [17:26:20]produce_requested_data [17:26:20]requested_item fm.sn is exist - process it [17:26:20]wFMCommunicate request_size=4 [17:26:20]MH_SAM_APDU [17:26:20]CAPDU: 80 11 00 00 [17:26:20]Write to MH i2c: E2 08 00 70 02 80 11 00 00 00 00 00 00 EC [17:26:20]Write i2c OK [17:26:20]MH_I2C_Read... [17:26:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:21]Read from MH i2c: E2 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 17 00 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 17 00 70 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [17:26:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:26:21]wFMCommunicate OK [17:26:21]requested_item fd.num is exist - process it [17:26:21]SAM_PROTO_GetFieldsCounters [17:26:21]wFMCommunicate request_size=4 [17:26:21]MH_SAM_APDU [17:26:21]CAPDU: 80 13 00 00 [17:26:21]Write to MH i2c: E2 08 00 71 02 80 13 00 00 00 00 00 00 EF [17:26:21]Write i2c OK [17:26:21]MH_I2C_Read... [17:26:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:21]Read from MH i2c: E2 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 62 00 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 62 00 71 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [17:26:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F7 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B4 01 00 00 5E 04 04 00 B4 01 00 00 57 04 04 00 B5 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:26:21]wFMCommunicate OK [17:26:21]SAM_PROTO_GetFieldsCounters done [17:26:21]requested_item shift.num is exist - process it [17:26:21]requested_item shift.opened is exist - process it [17:26:21]req_shift_opened [17:26:21]FM_GetShiftState [17:26:21]SAM_PROTO_GetShiftState [17:26:21]wFMCommunicate request_size=4 [17:26:21]MH_SAM_APDU [17:26:21]CAPDU: 80 13 01 00 [17:26:21]Write to MH i2c: E2 08 00 72 02 80 13 01 00 00 00 00 00 F1 [17:26:21]Write i2c OK [17:26:21]MH_I2C_Read... [17:26:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:21]Read from MH i2c: E2 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 0E 00 [17:26:21]MH_I2C_Read... [17:26:21]Read from MH i2c: E2 0E 00 72 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E6 [17:26:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:26:21]wFMCommunicate OK [17:26:21]SAM_PROTO_GetShiftState done [17:26:21]FM_GetShiftState done [17:26:21]req_shift_opened done [17:26:21]requested_item shift.open_date is exist - process it [17:26:21]req_shift_open_date [17:26:21]req_shift_open_date done [17:26:21]produce_requested_data done [17:26:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188407,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:26:21]process_action_free close_receipt [17:26:21]json_value_free [17:26:21]json_value_free done [17:26:21]process_json_proto returns [17:26:21]Send response to host [17:26:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188407,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:26:21]free response buf [17:26:21]execute_script done [17:26:21]execute_script returns [17:26:21]free content buf [17:26:21]Sock 7.Close socket [17:26:21]Sock 7.Thread stoped [17:26:25]OFD Sender: No OFD packet to send [17:26:30]OFD Sender: No OFD packet to send [17:26:35]OFD Sender: No OFD packet to send [17:26:40]OFD Sender: No OFD packet to send [17:26:45]OFD Sender: No OFD packet to send [17:26:50]OFD Sender: No OFD packet to send [17:26:55]OFD Sender: No OFD packet to send [17:27:00]OFD Sender: No OFD packet to send [17:27:05]OFD Sender: No OFD packet to send [17:27:10]OFD Sender: No OFD packet to send [17:27:15]OFD Sender: No OFD packet to send [17:27:20]OFD Sender: No OFD packet to send [17:27:25]OFD Sender: No OFD packet to send [17:27:30]OFD Sender: No OFD packet to send [17:27:35]OFD Sender: No OFD packet to send [17:27:40]OFD Sender: No OFD packet to send [17:27:45]OFD Sender: No OFD packet to send [17:27:50]OFD Sender: No OFD packet to send [17:27:55]OFD Sender: No OFD packet to send [17:28:00]OFD Sender: No OFD packet to send [17:28:05]OFD Sender: No OFD packet to send [17:28:10]OFD Sender: No OFD packet to send [17:28:15]OFD Sender: No OFD packet to send [17:28:20]OFD Sender: No OFD packet to send [17:28:25]OFD Sender: No OFD packet to send [17:28:30]OFD Sender: No OFD packet to send [17:28:35]OFD Sender: No OFD packet to send [17:28:40]OFD Sender: No OFD packet to send [17:28:45]OFD Sender: No OFD packet to send [17:28:50]OFD Sender: No OFD packet to send [17:28:55]OFD Sender: No OFD packet to send [17:29:00]OFD Sender: No OFD packet to send [17:29:05]OFD Sender: No OFD packet to send [17:29:10]OFD Sender: No OFD packet to send [17:29:15]OFD Sender: No OFD packet to send [17:29:20]OFD Sender: No OFD packet to send [17:29:25]OFD Sender: No OFD packet to send [17:29:30]OFD Sender: No OFD packet to send [17:29:35]OFD Sender: No OFD packet to send [17:29:40]OFD Sender: No OFD packet to send [17:29:45]OFD Sender: No OFD packet to send [17:29:48]accept exits with 9 [17:29:48]New connection [17:29:48]New thread 3066756452 created [17:29:48]Thread 3066613092 joined [17:29:48]Waiting for new connection... [17:29:48] Sock 9.Parse request [17:29:48]Sock 9.Check first char [17:29:48]Sock 9.First char is OK [17:29:48]request: POST /json_proto HTTP/1.0 [17:29:48]Method: POST [17:29:48]URL: /json_proto [17:29:48]Method is POST - this is cgi request [17:29:48]url: /json_proto [17:29:48]query_string will be loaded in cgi processing [17:29:48]execute_cgi json_proto POST (null) [17:29:48]execute_cgi path=json_proto method=POST [17:29:48]POST find Content-Length [17:29:48]Host: 172.17.42.131:8080 [17:29:48]Content-Length: 688 [17:29:48]Content-Type: application/json [17:29:48] [17:29:48]POST finish read [17:29:48]Found Content-Length = 688 [17:29:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [17:29:48]execute_script... [17:29:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210469", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [17:29:48]POST & json_proto [17:29:48]process_json_proto [17:29:48]json parsed OK: [17:29:48]protocol is kg_v1.0 [17:29:48]action value=close_receipt [17:29:48]process_action close_receipt [17:29:48]cmd_close_receipt [17:29:48]MH_GetDate [17:29:48]Write to MH i2c: F0 00 00 73 02 64 [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: F0 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: F0 09 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: F0 09 00 73 02 00 0D E1 17 67 A0 18 CA 66 C1 [17:29:48]GetLastDocTimeStamp 1729617977 [17:29:48]current date 1729618189 [17:29:48]FM_GetShiftState [17:29:48]SAM_PROTO_GetShiftState [17:29:48]wFMCommunicate request_size=4 [17:29:48]MH_SAM_APDU [17:29:48]CAPDU: 80 13 01 00 [17:29:48]Write to MH i2c: E2 08 00 74 02 80 13 01 00 00 00 00 00 F3 [17:29:48]Write i2c OK [17:29:48]MH_I2C_Read... [17:29:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:48]Read from MH i2c: E2 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 0E 00 [17:29:48]MH_I2C_Read... [17:29:48]Read from MH i2c: E2 0E 00 74 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E8 [17:29:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:29:48]wFMCommunicate OK [17:29:48]SAM_PROTO_GetShiftState done [17:29:48]FM_GetShiftState done [17:29:48]opened in 1729556094 [17:29:48]opened+sec_in_day 1729642494 [17:29:48]quantity*price = 150076 [17:29:48]sum+1 = 150078 [17:29:48]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 437 22.10.2024 17:29 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188408 ФПД: 75444845235930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188408&fm=75444845235930&tin=02508201610067®Number=0000000000100030&sum=150000 [17:29:49]StoreToDocumentArchive [17:29:49]shift 461 fd 188408 [17:29:49]save to /storage/0461/doc_00188408 [17:29:49]save last doc name /storage/0461/doc_00188408 to /storage/kkm_last_doc_name [17:29:49]save OK [17:29:49]Clear old archive folders... [17:29:49]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:29:49]tlvbuf is 0092B100 [17:29:49]SAM_PROTO_ClearQueue [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 09 00 00 [17:29:49]Write to MH i2c: E2 08 00 81 02 80 09 00 00 00 00 00 00 F5 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 81 02 00 90 00 F7 [17:29:49]RAPDU: 90 00 [17:29:49]wFMCommunicate OK [17:29:49]SAM_PROTO_ClearQueue done [17:29:49]KKMCreateOFDPacket [17:29:49]OFDProtocolAddRootSTLVToBuf [17:29:49]FM_MakeSignedData [17:29:49]FM_MakeSignedData [17:29:49]SAM_PROTO_SignData [17:29:49]wFMCommunicate request_size=4 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 0D 01 02 [17:29:49]Write to MH i2c: E2 08 00 82 02 80 0D 01 02 00 00 00 00 FD [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:29:49]Read from MH i2c: E2 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 [17:29:49]MH_I2C_Read... [17:29:49]Read from MH i2c: E2 03 00 82 02 00 90 00 F8 [17:29:49]RAPDU: 90 00 [17:29:49]wFMCommunicate OK [17:29:49]wFMCommunicate request_size=255 [17:29:49]MH_SAM_APDU [17:29:49]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B5 01 00 00 F4 03 04 00 0D E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DF 02 [17:29:49]Write to MH i2c: E2 02 01 83 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B5 01 00 00 F4 03 04 00 0D E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DF 02 00 00 75 [17:29:49]Write i2c OK [17:29:49]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 03 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 03 00 83 02 00 90 00 F9 [17:29:50]RAPDU: 90 00 [17:29:50]wFMCommunicate OK [17:29:50]wFMCommunicate request_size=16 [17:29:50]MH_SAM_APDU [17:29:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 44 9D DF 33 4E DA [17:29:50]Write to MH i2c: E2 13 00 84 02 80 0D 02 02 0B 00 00 35 04 06 00 44 9D DF 33 4E DA 00 00 70 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 03 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 03 00 84 02 00 90 00 FA [17:29:50]RAPDU: 90 00 [17:29:50]wFMCommunicate OK [17:29:50]wFMCommunicate request_size=4 [17:29:50]MH_SAM_APDU [17:29:50]CAPDU: 80 0D 03 02 [17:29:50]Write to MH i2c: E2 08 00 85 02 80 0D 03 02 00 00 00 00 02 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 0B 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 0B 00 85 02 00 F8 22 6B FB AD BE 1F 7B 90 00 88 [17:29:50]RAPDU: F8 22 6B FB AD BE 1F 7B 90 00 [17:29:50]wFMCommunicate OK [17:29:50]SAM_PROTO_SignData done [17:29:50]FM_MakeSignedData done [17:29:50]CreateOFDProtocolMessage [17:29:50]wFMCommunicate request_size=4 [17:29:50]MH_SAM_APDU [17:29:50]CAPDU: 80 11 00 00 [17:29:50]Write to MH i2c: E2 08 00 86 02 80 11 00 00 00 00 00 00 02 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:50]Read from MH i2c: E2 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 17 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: E2 17 00 86 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [17:29:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:29:50]wFMCommunicate OK [17:29:50]CreateOFDProtocolMessage done [17:29:50]OFDSenderStorePacket 188408 [17:29:50]StoreOFDPacket docnum=188408 [17:29:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 03 DD 0D 01 63 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B5 01 00 00 F4 03 04 00 0D E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DF 02 00 35 04 06 00 44 9D DF 33 4E DA F8 22 6B FB AD BE 1F 7B [17:29:50]CheckFolder [17:29:50]dirname=/storage/ofd_packets [17:29:50]CheckFolder done [17:29:50]ProducePacketName [17:29:50]name=ofd_packets/00188408 [17:29:50]NVStorageSaveData ofd_packets/00188408 [17:29:50]File name is /storage/ofd_packets/00188408 [17:29:50]Write 307 bytes [17:29:50]NVStorageSaveData done [17:29:50]OFDSenderStorePacket done [17:29:50]KKMCreateOFDPacket done [17:29:50]NVStorageSaveData kkm_last_timestamp [17:29:50]File name is /storage/kkm_last_timestamp [17:29:50]Write 4 bytes [17:29:50]NVStorageSaveData done [17:29:50]ExternCall_PrintAddStr [17:29:50]wPrintStart [17:29:50]Write to MH i2c: 01 00 00 87 02 89 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 87 02 00 00 00 00 00 FF 0F 9E [17:29:50]RasterBufferAndPrint [17:29:50]line Счет N : (1)210469 [17:29:50]line ИНН: 02508201610067 [17:29:50]line Контрольно-Кассовый Чек [17:29:50]line ПРОДАЖА [17:29:50]line ТРК (МРК, ГНК) : 41 [17:29:50]line Товар: 2710194210 [17:29:50]line D-ENERGY ДТ-К-5 [17:29:50]line 19.440 * 77.20 [17:29:50]line = 1500.77 [17:29:50]line НДС 12% НСП 1% [17:29:50]line > о реализуемом товаре [17:29:50]line ОКРУГЛЕНИЕ: -0.77 [17:29:50]line ИТОГО: 1500.00 [17:29:50]line Внесено: 1500.00 [17:29:50]line СДАЧА: 0.00 [17:29:50]line НСП 1% : 13.28 [17:29:50]line НДС 12% : 159.37 [17:29:50]line Наличными: 1500.00 [17:29:50]line Безнал.: 0.00 [17:29:50]line Место: АЗС № 86 "Партнер Нефть" [17:29:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:29:50]line СНО: Общий режим [17:29:50]line Чек 437 22.10.2024 17:29 [17:29:50]line Смена: 461 ФФД: 1.0 [17:29:50]line ЗНМ: 0300000155 [17:29:50]line РНМ: 0000000000100030 [17:29:50]line Версия ККМ: 001 [17:29:50]line ФМ: 0000000000965340 [17:29:50]line ФД: 188408 [17:29:50]line ФПД: 75444845235930 [17:29:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T172949&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188408&fm=75444845235930&tin=02508201610067®Number=0000000000100030&sum=150000 [17:29:50]OFD Sender: Processing packet 188408 [packets to send 1062, broken 1061] [17:29:50]ProducePacketName [17:29:50]name=ofd_packets/00188408 [17:29:50]OFD Sender: To server: pG, [17:29:50]CommunicateWithHost lk.salyk.kg:30040 [17:29:50]ConnectInit lk.salyk.kg [17:29:50]written 0, free lines is 4095 [17:29:50]Connected sock=10 [17:29:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 03 DD 0D 01 63 C7 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 B5 01 00 00 F4 03 04 00 0D E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DF 02 00 35 04 06 00 44 9D DF 33 4E DA F8 22 6B FB AD BE 1F 7B [17:29:50]Write to MH i2c: 01 00 00 B2 02 B4 [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: 01 07 00 B2 02 00 00 00 00 00 60 0C 27 [17:29:50]RasterBufferAndPrint [17:29:50]line [17:29:50]line [17:29:50]line [17:29:50]line [17:29:50]line [17:29:50]written 0, free lines is 3171 [17:29:50]MH_Cut [17:29:50]Write to MH i2c: D1 01 00 B9 02 01 8D [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: D1 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: D1 01 00 [17:29:50]MH_I2C_Read... [17:29:50]Read from MH i2c: D1 01 00 B9 02 00 8C [17:29:50]Write to MH i2c: 01 00 00 BA 02 BC [17:29:50]Write i2c OK [17:29:50]MH_I2C_Read... [17:29:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 77 94 47 00 62 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F8 DF 02 00 F4 03 04 00 FA 8A 17 67 B6 04 01 00 00 10 E8 DE 45 C6 C6 A2 AE [17:29:50]CommunicateWithHost err = 0 [17:29:50]CheckOFDResponse [17:29:50]1017 (14) - 77093643461234 [17:29:50]1041 (16) - 0000000000965340 [17:29:50]1040 (4) - 188408 [17:29:50]1012 (4) - 22.10.2024 11:22 [17:29:50]1206 (1) - 0 [17:29:50]OFD Sender: Remove packet 188408 [17:29:50]ProducePacketName [17:29:50]name=ofd_packets/00188408 [17:29:50]NVStorageDeleteData [17:29:51]OFD Sender: No OFD packet to send [17:29:51]*** Cut start [17:29:51]*** Partial cut [17:29:51]*** CUTSNS_PIN = 1 [17:29:52]*** CUTSNS_PIN = 0 [17:29:52]*** Brake cut motor [17:29:52]Read from MH i2c: 01 [17:29:52]MH_I2C_Read... [17:29:52]*** Stop cut motor [17:29:52]*** Cut end [17:29:52]Read from MH i2c: 01 07 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: 01 07 00 BA 02 00 00 00 00 00 FF 0F D1 [17:29:52]process_action close_receipt done [17:29:52]requested_data is exist [17:29:52]produce_requested_data [17:29:52]requested_item fm.sn is exist - process it [17:29:52]wFMCommunicate request_size=4 [17:29:52]MH_SAM_APDU [17:29:52]CAPDU: 80 11 00 00 [17:29:52]Write to MH i2c: E2 08 00 BB 02 80 11 00 00 00 00 00 00 37 [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:29:52]Read from MH i2c: E2 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 17 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 17 00 BB 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [17:29:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:29:52]wFMCommunicate OK [17:29:52]requested_item fd.num is exist - process it [17:29:52]SAM_PROTO_GetFieldsCounters [17:29:52]wFMCommunicate request_size=4 [17:29:52]MH_SAM_APDU [17:29:52]CAPDU: 80 13 00 00 [17:29:52]Write to MH i2c: E2 08 00 BC 02 80 13 00 00 00 00 00 00 3A [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:29:52]Read from MH i2c: E2 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 62 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 62 00 BC 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [17:29:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F8 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B5 01 00 00 5E 04 04 00 B5 01 00 00 57 04 04 00 B6 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:29:52]wFMCommunicate OK [17:29:52]SAM_PROTO_GetFieldsCounters done [17:29:52]requested_item shift.num is exist - process it [17:29:52]requested_item shift.opened is exist - process it [17:29:52]req_shift_opened [17:29:52]FM_GetShiftState [17:29:52]SAM_PROTO_GetShiftState [17:29:52]wFMCommunicate request_size=4 [17:29:52]MH_SAM_APDU [17:29:52]CAPDU: 80 13 01 00 [17:29:52]Write to MH i2c: E2 08 00 BD 02 80 13 01 00 00 00 00 00 3C [17:29:52]Write i2c OK [17:29:52]MH_I2C_Read... [17:29:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:29:52]Read from MH i2c: E2 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 0E 00 [17:29:52]MH_I2C_Read... [17:29:52]Read from MH i2c: E2 0E 00 BD 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 31 [17:29:52]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:29:52]wFMCommunicate OK [17:29:52]SAM_PROTO_GetShiftState done [17:29:52]FM_GetShiftState done [17:29:52]req_shift_opened done [17:29:52]requested_item shift.open_date is exist - process it [17:29:52]req_shift_open_date [17:29:52]req_shift_open_date done [17:29:52]produce_requested_data done [17:29:52]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188408,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:29:52]process_action_free close_receipt [17:29:52]json_value_free [17:29:52]json_value_free done [17:29:52]process_json_proto returns [17:29:52]Send response to host [17:29:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188408,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:29:52]free response buf [17:29:52]execute_script done [17:29:52]execute_script returns [17:29:52]free content buf [17:29:52]Sock 9.Close socket [17:29:52]Sock 9.Thread stoped [17:29:56]OFD Sender: No OFD packet to send [17:30:01]OFD Sender: No OFD packet to send [17:30:06]OFD Sender: No OFD packet to send [17:30:11]OFD Sender: No OFD packet to send [17:30:16]OFD Sender: No OFD packet to send [17:30:18]accept exits with 7 [17:30:18]New connection [17:30:18]New thread 3066613092 created [17:30:18]Thread 3066756452 joined [17:30:18]Waiting for new connection... [17:30:18] Sock 7.Parse request [17:30:18]Sock 7.Check first char [17:30:18]Sock 7.First char is OK [17:30:18]request: POST /json_proto HTTP/1.0 [17:30:18]Method: POST [17:30:18]URL: /json_proto [17:30:18]Method is POST - this is cgi request [17:30:18]url: /json_proto [17:30:18]query_string will be loaded in cgi processing [17:30:18]execute_cgi json_proto POST (null) [17:30:18]execute_cgi path=json_proto method=POST [17:30:18]POST find Content-Length [17:30:18]Host: 172.17.42.131:8080 [17:30:18]Content-Length: 688 [17:30:18]Content-Type: application/json [17:30:18] [17:30:18]POST finish read [17:30:18]Found Content-Length = 688 [17:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 46.130, "sum" : 3561.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3561.00, "payments": [ { "type": 0, "sum" : 3561.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:18]execute_script... [17:30: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)210468", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 46.130, "sum" : 3561.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 3561.00, "payments": [ { "type": 0, "sum" : 3561.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:30:18]POST & json_proto [17:30:18]process_json_proto [17:30:18]json parsed OK: [17:30:18]protocol is kg_v1.0 [17:30:18]action value=close_receipt [17:30:18]process_action close_receipt [17:30:18]cmd_close_receipt [17:30:18]MH_GetDate [17:30:18]Write to MH i2c: F0 00 00 BE 02 AF [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: F0 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: F0 09 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: F0 09 00 BE 02 00 2B E1 17 67 A0 18 CA 66 2A [17:30:18]GetLastDocTimeStamp 1729618189 [17:30:18]current date 1729618219 [17:30:18]FM_GetShiftState [17:30:18]SAM_PROTO_GetShiftState [17:30:18]wFMCommunicate request_size=4 [17:30:18]MH_SAM_APDU [17:30:18]CAPDU: 80 13 01 00 [17:30:18]Write to MH i2c: E2 08 00 BF 02 80 13 01 00 00 00 00 00 3E [17:30:18]Write i2c OK [17:30:18]MH_I2C_Read... [17:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:18]Read from MH i2c: E2 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 0E 00 [17:30:18]MH_I2C_Read... [17:30:18]Read from MH i2c: E2 0E 00 BF 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 33 [17:30:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:30:18]wFMCommunicate OK [17:30:18]SAM_PROTO_GetShiftState done [17:30:18]FM_GetShiftState done [17:30:18]opened in 1729556094 [17:30:18]opened+sec_in_day 1729642494 [17:30:18]quantity*price = 356123 [17:30:18]sum+1 = 356125 [17:30:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 3561.00 Внесено: 4000.00 СДАЧА: 439.00 НСП 1% : 31.51 НДС 12% : 378.18 Наличными: 3561.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 438 22.10.2024 17:30 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188409 ФПД: 141713843086413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173019&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188409&fm=141713843086413&tin=02508201610067®Number=0000000000100030&sum=356100 [17:30:19]StoreToDocumentArchive [17:30:19]shift 461 fd 188409 [17:30:19]save to /storage/0461/doc_00188409 [17:30:19]save last doc name /storage/0461/doc_00188409 to /storage/kkm_last_doc_name [17:30:19]save OK [17:30:19]Clear old archive folders... [17:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:30:19]tlvbuf is 008FAC60 [17:30:19]SAM_PROTO_ClearQueue [17:30:19]wFMCommunicate request_size=4 [17:30:19]MH_SAM_APDU [17:30:19]CAPDU: 80 09 00 00 [17:30:19]Write to MH i2c: E2 08 00 CC 02 80 09 00 00 00 00 00 00 40 [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:30:19]Read from MH i2c: E2 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 CC 02 00 90 00 42 [17:30:19]RAPDU: 90 00 [17:30:19]wFMCommunicate OK [17:30:19]SAM_PROTO_ClearQueue done [17:30:19]KKMCreateOFDPacket [17:30:19]OFDProtocolAddRootSTLVToBuf [17:30:19]FM_MakeSignedData [17:30:19]FM_MakeSignedData [17:30:19]SAM_PROTO_SignData [17:30:19]wFMCommunicate request_size=4 [17:30:19]MH_SAM_APDU [17:30:19]CAPDU: 80 0D 01 02 [17:30:19]Write to MH i2c: E2 08 00 CD 02 80 0D 01 02 00 00 00 00 48 [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:30:19]Read from MH i2c: E2 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 CD 02 00 90 00 43 [17:30:19]RAPDU: 90 00 [17:30:19]wFMCommunicate OK [17:30:19]wFMCommunicate request_size=255 [17:30:19]MH_SAM_APDU [17:30:19]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 B4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 93 00 00 00 00 07 04 06 00 04 6F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 2B E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DF 02 [17:30:19]Write to MH i2c: E2 02 01 CE 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 B4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 93 00 00 00 00 07 04 06 00 04 6F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 2B E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DF 02 00 00 00 [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:19]Read from MH i2c: E2 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 CE 02 00 90 00 44 [17:30:19]RAPDU: 90 00 [17:30:19]wFMCommunicate OK [17:30:19]wFMCommunicate request_size=16 [17:30:19]MH_SAM_APDU [17:30:19]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 80 E3 53 46 E4 4D [17:30:19]Write to MH i2c: E2 13 00 CF 02 80 0D 02 02 0B 00 00 35 04 06 00 80 E3 53 46 E4 4D 00 00 CD [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:30:19]Read from MH i2c: E2 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 03 00 CF 02 00 90 00 45 [17:30:19]RAPDU: 90 00 [17:30:19]wFMCommunicate OK [17:30:19]wFMCommunicate request_size=4 [17:30:19]MH_SAM_APDU [17:30:19]CAPDU: 80 0D 03 02 [17:30:19]Write to MH i2c: E2 08 00 D0 02 80 0D 03 02 00 00 00 00 4D [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:30:19]Read from MH i2c: E2 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 0B 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 0B 00 D0 02 00 3E 49 7A 87 79 C7 DE 85 90 00 79 [17:30:19]RAPDU: 3E 49 7A 87 79 C7 DE 85 90 00 [17:30:19]wFMCommunicate OK [17:30:19]SAM_PROTO_SignData done [17:30:19]FM_MakeSignedData done [17:30:19]CreateOFDProtocolMessage [17:30:19]wFMCommunicate request_size=4 [17:30:19]MH_SAM_APDU [17:30:19]CAPDU: 80 11 00 00 [17:30:19]Write to MH i2c: E2 08 00 D1 02 80 11 00 00 00 00 00 00 4D [17:30:19]Write i2c OK [17:30:19]MH_I2C_Read... [17:30:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:19]Read from MH i2c: E2 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 17 00 [17:30:19]MH_I2C_Read... [17:30:19]Read from MH i2c: E2 17 00 D1 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [17:30:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:30:19]wFMCommunicate OK [17:30:19]CreateOFDProtocolMessage done [17:30:19]OFDSenderStorePacket 188409 [17:30:19]StoreOFDPacket docnum=188409 [17:30:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 20 7A 0D 01 67 DA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 B4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 93 00 00 00 00 07 04 06 00 04 6F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 2B E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DF 02 00 35 04 06 00 80 E3 53 46 E4 4D 3E 49 7A 87 79 C7 DE 85 [17:30:19]CheckFolder [17:30:19]dirname=/storage/ofd_packets [17:30:19]CheckFolder done [17:30:19]ProducePacketName [17:30:19]name=ofd_packets/00188409 [17:30:19]NVStorageSaveData ofd_packets/00188409 [17:30:19]File name is /storage/ofd_packets/00188409 [17:30:19]Write 307 bytes [17:30:19]NVStorageSaveData done [17:30:19]OFDSenderStorePacket done [17:30:19]KKMCreateOFDPacket done [17:30:19]NVStorageSaveData kkm_last_timestamp [17:30:19]File name is /storage/kkm_last_timestamp [17:30:19]Write 4 bytes [17:30:19]NVStorageSaveData done [17:30:20]ExternCall_PrintAddStr [17:30:20]wPrintStart [17:30:20]Write to MH i2c: 01 00 00 D2 02 D4 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 D2 02 00 00 00 00 00 FF 0F E9 [17:30:20]RasterBufferAndPrint [17:30:20]line Счет N : (1)210468 [17:30:20]line ИНН: 02508201610067 [17:30:20]line Контрольно-Кассовый Чек [17:30:20]line ПРОДАЖА [17:30:20]line ТРК (МРК, ГНК) : 21 [17:30:20]line Товар: 2710194210 [17:30:20]line D-ENERGY ДТ-К-5 [17:30:20]line 46.130 * 77.20 [17:30:20]line = 3561.24 [17:30:20]line НДС 12% НСП 1% [17:30:20]line > о реализуемом товаре [17:30:20]line ОКРУГЛЕНИЕ: -0.24 [17:30:20]line ИТОГО: 3561.00 [17:30:20]line Внесено: 4000.00 [17:30:20]line СДАЧА: 439.00 [17:30:20]line НСП 1% : 31.51 [17:30:20]line НДС 12% : 378.18 [17:30:20]line Наличными: 3561.00 [17:30:20]line Безнал.: 0.00 [17:30:20]line Место: АЗС № 86 "Партнер Нефть" [17:30:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:30:20]line СНО: Общий режим [17:30:20]line Чек 438 22.10.2024 17:30 [17:30:20]line Смена: 461 ФФД: 1.0 [17:30:20]line ЗНМ: 0300000155 [17:30:20]line РНМ: 0000000000100030 [17:30:20]line Версия ККМ: 001 [17:30:20]line ФМ: 0000000000965340 [17:30:20]line ФД: 188409 [17:30:20]line ФПД: 141713843086413 [17:30:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173019&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188409&fm=141713843086413&tin=02508201610067®Number=0000000000100030&sum=356100 [17:30:20]written 0, free lines is 4095 [17:30:20]OFD Sender: Processing packet 188409 [packets to send 1062, broken 1061] [17:30:20]ProducePacketName [17:30:20]name=ofd_packets/00188409 [17:30:20]OFD Sender: To server: pG, [17:30:20]CommunicateWithHost lk.salyk.kg:30040 [17:30:20]ConnectInit lk.salyk.kg [17:30:20]Connected sock=9 [17:30:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 20 7A 0D 01 67 DA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 32 B4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C 6F 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 6F 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 93 00 00 00 00 07 04 06 00 04 6F 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 01 00 00 F4 03 04 00 2B E1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DF 02 00 35 04 06 00 80 E3 53 46 E4 4D 3E 49 7A 87 79 C7 DE 85 [17:30:20]Write to MH i2c: 01 00 00 FD 02 FF [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: 01 07 00 FD 02 00 00 00 00 00 61 0C 73 [17:30:20]RasterBufferAndPrint [17:30:20]line [17:30:20]line [17:30:20]line [17:30:20]line [17:30:20]line [17:30:20]written 0, free lines is 3173 [17:30:20]MH_Cut [17:30:20]Write to MH i2c: D1 01 00 04 03 01 D9 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: D1 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: D1 01 00 [17:30:20]MH_I2C_Read... [17:30:20]Read from MH i2c: D1 01 00 04 03 00 D8 [17:30:20]Write to MH i2c: 01 00 00 05 03 08 [17:30:20]Write i2c OK [17:30:20]MH_I2C_Read... [17:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9B 4B 47 00 1C 20 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 F9 DF 02 00 F4 03 04 00 17 8B 17 67 B6 04 01 00 00 79 D2 23 11 47 20 44 C2 [17:30:20]CommunicateWithHost err = 0 [17:30:20]CheckOFDResponse [17:30:20]1017 (14) - 77093643461234 [17:30:20]1041 (16) - 0000000000965340 [17:30:20]1040 (4) - 188409 [17:30:20]1012 (4) - 22.10.2024 11:23 [17:30:20]1206 (1) - 0 [17:30:20]OFD Sender: Remove packet 188409 [17:30:20]ProducePacketName [17:30:20]name=ofd_packets/00188409 [17:30:20]NVStorageDeleteData [17:30:21]OFD Sender: No OFD packet to send [17:30:21]*** Cut start [17:30:21]*** Partial cut [17:30:21]*** CUTSNS_PIN = 1 [17:30:21]*** CUTSNS_PIN = 0 [17:30:22]*** Brake cut motor [17:30:22]Read from MH i2c: 01 [17:30:22]MH_I2C_Read... [17:30:22]*** Stop cut motor [17:30:22]*** Cut end [17:30:22]Read from MH i2c: 01 07 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: 01 07 00 05 03 00 00 00 00 00 FF 0F 1D [17:30:22]process_action close_receipt done [17:30:22]requested_data is exist [17:30:22]produce_requested_data [17:30:22]requested_item fm.sn is exist - process it [17:30:22]wFMCommunicate request_size=4 [17:30:22]MH_SAM_APDU [17:30:22]CAPDU: 80 11 00 00 [17:30:22]Write to MH i2c: E2 08 00 06 03 80 11 00 00 00 00 00 00 83 [17:30:22]Write i2c OK [17:30:22]MH_I2C_Read... [17:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:30:22]Read from MH i2c: E2 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 17 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 17 00 06 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [17:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:30:22]wFMCommunicate OK [17:30:22]requested_item fd.num is exist - process it [17:30:22]SAM_PROTO_GetFieldsCounters [17:30:22]wFMCommunicate request_size=4 [17:30:22]MH_SAM_APDU [17:30:22]CAPDU: 80 13 00 00 [17:30:22]Write to MH i2c: E2 08 00 07 03 80 13 00 00 00 00 00 00 86 [17:30:22]Write i2c OK [17:30:22]MH_I2C_Read... [17:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:30:22]Read from MH i2c: E2 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 62 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 62 00 07 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [17:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 F9 DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B6 01 00 00 5E 04 04 00 B6 01 00 00 57 04 04 00 B7 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:30:22]wFMCommunicate OK [17:30:22]SAM_PROTO_GetFieldsCounters done [17:30:22]requested_item shift.num is exist - process it [17:30:22]requested_item shift.opened is exist - process it [17:30:22]req_shift_opened [17:30:22]FM_GetShiftState [17:30:22]SAM_PROTO_GetShiftState [17:30:22]wFMCommunicate request_size=4 [17:30:22]MH_SAM_APDU [17:30:22]CAPDU: 80 13 01 00 [17:30:22]Write to MH i2c: E2 08 00 08 03 80 13 01 00 00 00 00 00 88 [17:30:22]Write i2c OK [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 [17:30:22]MH_I2C_Read... [17:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:30:22]Read from MH i2c: E2 0E 00 [17:30:22]MH_I2C_Read... [17:30:22]Read from MH i2c: E2 0E 00 08 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7D [17:30:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:30:22]wFMCommunicate OK [17:30:22]SAM_PROTO_GetShiftState done [17:30:22]FM_GetShiftState done [17:30:22]req_shift_opened done [17:30:22]requested_item shift.open_date is exist - process it [17:30:22]req_shift_open_date [17:30:22]req_shift_open_date done [17:30:22]produce_requested_data done [17:30:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188409,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:30:22]process_action_free close_receipt [17:30:22]json_value_free [17:30:22]json_value_free done [17:30:22]process_json_proto returns [17:30:22]Send response to host [17:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188409,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:30:22]free response buf [17:30:22]execute_script done [17:30:22]execute_script returns [17:30:22]free content buf [17:30:22]Sock 7.Close socket [17:30:22]Sock 7.Thread stoped [17:30:26]OFD Sender: No OFD packet to send [17:30:31]OFD Sender: No OFD packet to send [17:30:36]OFD Sender: No OFD packet to send [17:30:41]OFD Sender: No OFD packet to send [17:30:46]OFD Sender: No OFD packet to send [17:30:51]OFD Sender: No OFD packet to send [17:30:56]OFD Sender: No OFD packet to send [17:31:01]OFD Sender: No OFD packet to send [17:31:06]OFD Sender: No OFD packet to send [17:31:11]OFD Sender: No OFD packet to send [17:31:16]OFD Sender: No OFD packet to send [17:31:21]OFD Sender: No OFD packet to send [17:31:26]OFD Sender: No OFD packet to send [17:31:31]OFD Sender: No OFD packet to send [17:31:36]OFD Sender: No OFD packet to send [17:31:41]OFD Sender: No OFD packet to send [17:31:46]OFD Sender: No OFD packet to send [17:31:51]OFD Sender: No OFD packet to send [17:31:56]OFD Sender: No OFD packet to send [17:32:01]OFD Sender: No OFD packet to send [17:32:06]OFD Sender: No OFD packet to send [17:32:11]OFD Sender: No OFD packet to send [17:32:16]OFD Sender: No OFD packet to send [17:32:21]OFD Sender: No OFD packet to send [17:32:26]OFD Sender: No OFD packet to send [17:32:31]OFD Sender: No OFD packet to send [17:32:36]OFD Sender: No OFD packet to send [17:32:41]OFD Sender: No OFD packet to send [17:32:46]OFD Sender: No OFD packet to send [17:32:51]OFD Sender: No OFD packet to send [17:32:56]OFD Sender: No OFD packet to send [17:33:01]OFD Sender: No OFD packet to send [17:33:06]OFD Sender: No OFD packet to send [17:33:11]OFD Sender: No OFD packet to send [17:33:16]OFD Sender: No OFD packet to send [17:33:22]OFD Sender: No OFD packet to send [17:33:27]OFD Sender: No OFD packet to send [17:33:32]OFD Sender: No OFD packet to send [17:33:37]OFD Sender: No OFD packet to send [17:33:42]OFD Sender: No OFD packet to send [17:33:47]OFD Sender: No OFD packet to send [17:33:52]OFD Sender: No OFD packet to send [17:33:57]OFD Sender: No OFD packet to send [17:34:02]OFD Sender: No OFD packet to send [17:34:07]OFD Sender: No OFD packet to send [17:34:10]accept exits with 10 [17:34:10]New connection [17:34:10]New thread 3066756452 created [17:34:10]Thread 3066613092 joined [17:34:10]Waiting for new connection... [17:34:10] Sock 10.Parse request [17:34:10]Sock 10.Check first char [17:34:10]Sock 10.First char is OK [17:34:10]request: POST /json_proto HTTP/1.0 [17:34:10]Method: POST [17:34:10]URL: /json_proto [17:34:10]Method is POST - this is cgi request [17:34:10]url: /json_proto [17:34:10]query_string will be loaded in cgi processing [17:34:10]execute_cgi json_proto POST (null) [17:34:10]execute_cgi path=json_proto method=POST [17:34:10]POST find Content-Length [17:34:10]Host: 172.17.42.131:8080 [17:34:10]Content-Length: 688 [17:34:10]Content-Type: application/json [17:34:10] [17:34:10]POST finish read [17:34:10]Found Content-Length = 688 [17:34:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:34:10]execute_script... [17:34:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [17:34:10]POST & json_proto [17:34:10]process_json_proto [17:34:10]json parsed OK: [17:34:10]protocol is kg_v1.0 [17:34:10]action value=close_receipt [17:34:10]process_action close_receipt [17:34:10]cmd_close_receipt [17:34:10]MH_GetDate [17:34:10]Write to MH i2c: F0 00 00 09 03 FB [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: F0 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: F0 09 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: F0 09 00 09 03 00 13 E2 17 67 A0 18 CA 66 5F [17:34:10]GetLastDocTimeStamp 1729618219 [17:34:10]current date 1729618451 [17:34:10]FM_GetShiftState [17:34:10]SAM_PROTO_GetShiftState [17:34:10]wFMCommunicate request_size=4 [17:34:10]MH_SAM_APDU [17:34:10]CAPDU: 80 13 01 00 [17:34:10]Write to MH i2c: E2 08 00 0A 03 80 13 01 00 00 00 00 00 8A [17:34:10]Write i2c OK [17:34:10]MH_I2C_Read... [17:34:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:10]Read from MH i2c: E2 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 [17:34:10]MH_I2C_Read... [17:34:10]Read from MH i2c: E2 0E 00 0A 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7F [17:34:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:34:10]wFMCommunicate OK [17:34:10]SAM_PROTO_GetShiftState done [17:34:10]FM_GetShiftState done [17:34:10]opened in 1729556094 [17:34:10]opened+sec_in_day 1729642494 [17:34:10]quantity*price = 100051 [17:34:10]sum+1 = 100052 [17:34:10]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 439 22.10.2024 17:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188410 ФПД: 16097324295509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188410&fm=16097324295509&tin=02508201610067®Number=0000000000100030&sum=100000 [17:34:12]StoreToDocumentArchive [17:34:12]shift 461 fd 188410 [17:34:12]save to /storage/0461/doc_00188410 [17:34:12]save last doc name /storage/0461/doc_00188410 to /storage/kkm_last_doc_name [17:34:12]save OK [17:34:12]Clear old archive folders... [17:34:12]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:34:12]tlvbuf is 00933350 [17:34:12]SAM_PROTO_ClearQueue [17:34:12]wFMCommunicate request_size=4 [17:34:12]MH_SAM_APDU [17:34:12]CAPDU: 80 09 00 00 [17:34:12]Write to MH i2c: E2 08 00 17 03 80 09 00 00 00 00 00 00 8C [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:34:12]Read from MH i2c: E2 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 17 03 00 90 00 8E [17:34:12]RAPDU: 90 00 [17:34:12]wFMCommunicate OK [17:34:12]SAM_PROTO_ClearQueue done [17:34:12]KKMCreateOFDPacket [17:34:12]OFDProtocolAddRootSTLVToBuf [17:34:12]FM_MakeSignedData [17:34:12]FM_MakeSignedData [17:34:12]SAM_PROTO_SignData [17:34:12]wFMCommunicate request_size=4 [17:34:12]MH_SAM_APDU [17:34:12]CAPDU: 80 0D 01 02 [17:34:12]Write to MH i2c: E2 08 00 18 03 80 0D 01 02 00 00 00 00 94 [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:34:12]Read from MH i2c: E2 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 18 03 00 90 00 8F [17:34:12]RAPDU: 90 00 [17:34:12]wFMCommunicate OK [17:34:12]wFMCommunicate request_size=255 [17:34:12]MH_SAM_APDU [17:34:12]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 01 00 00 F4 03 04 00 13 E2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DF 02 [17:34:12]Write to MH i2c: E2 02 01 19 03 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 01 00 00 F4 03 04 00 13 E2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DF 02 00 00 C5 [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]OFD Sender: No OFD packet to send [17:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:12]Read from MH i2c: E2 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 19 03 00 90 00 90 [17:34:12]RAPDU: 90 00 [17:34:12]wFMCommunicate OK [17:34:12]wFMCommunicate request_size=16 [17:34:12]MH_SAM_APDU [17:34:12]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0E A3 F3 4B E5 55 [17:34:12]Write to MH i2c: E2 13 00 1A 03 80 0D 02 02 0B 00 00 35 04 06 00 0E A3 F3 4B E5 55 00 00 15 [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:34:12]Read from MH i2c: E2 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 03 00 1A 03 00 90 00 91 [17:34:12]RAPDU: 90 00 [17:34:12]wFMCommunicate OK [17:34:12]wFMCommunicate request_size=4 [17:34:12]MH_SAM_APDU [17:34:12]CAPDU: 80 0D 03 02 [17:34:12]Write to MH i2c: E2 08 00 1B 03 80 0D 03 02 00 00 00 00 99 [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:34:12]Read from MH i2c: E2 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 0B 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 0B 00 1B 03 00 0A A7 7C F5 A0 8E 04 DC 90 00 CA [17:34:12]RAPDU: 0A A7 7C F5 A0 8E 04 DC 90 00 [17:34:12]wFMCommunicate OK [17:34:12]SAM_PROTO_SignData done [17:34:12]FM_MakeSignedData done [17:34:12]CreateOFDProtocolMessage [17:34:12]wFMCommunicate request_size=4 [17:34:12]MH_SAM_APDU [17:34:12]CAPDU: 80 11 00 00 [17:34:12]Write to MH i2c: E2 08 00 1C 03 80 11 00 00 00 00 00 00 99 [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:12]Read from MH i2c: E2 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 17 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: E2 17 00 1C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [17:34:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:34:12]wFMCommunicate OK [17:34:12]CreateOFDProtocolMessage done [17:34:12]OFDSenderStorePacket 188410 [17:34:12]StoreOFDPacket docnum=188410 [17:34:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B0 2A 0D 01 33 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 01 00 00 F4 03 04 00 13 E2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DF 02 00 35 04 06 00 0E A3 F3 4B E5 55 0A A7 7C F5 A0 8E 04 DC [17:34:12]CheckFolder [17:34:12]dirname=/storage/ofd_packets [17:34:12]CheckFolder done [17:34:12]ProducePacketName [17:34:12]name=ofd_packets/00188410 [17:34:12]NVStorageSaveData ofd_packets/00188410 [17:34:12]File name is /storage/ofd_packets/00188410 [17:34:12]Write 307 bytes [17:34:12]NVStorageSaveData done [17:34:12]OFDSenderStorePacket done [17:34:12]KKMCreateOFDPacket done [17:34:12]NVStorageSaveData kkm_last_timestamp [17:34:12]File name is /storage/kkm_last_timestamp [17:34:12]Write 4 bytes [17:34:12]NVStorageSaveData done [17:34:12]ExternCall_PrintAddStr [17:34:12]wPrintStart [17:34:12]Write to MH i2c: 01 00 00 1D 03 20 [17:34:12]Write i2c OK [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: 01 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: 01 07 00 [17:34:12]MH_I2C_Read... [17:34:12]Read from MH i2c: 01 07 00 1D 03 00 00 00 00 00 FF 0F 35 [17:34:12]RasterBufferAndPrint [17:34:12]line Счет N : (1)210470 [17:34:12]line ИНН: 02508201610067 [17:34:12]line Контрольно-Кассовый Чек [17:34:12]line ПРОДАЖА [17:34:12]line ТРК (МРК, ГНК) : 41 [17:34:12]line Товар: 2710194210 [17:34:12]line D-ENERGY ДТ-К-5 [17:34:12]line 12.960 * 77.20 [17:34:12]line = 1000.51 [17:34:12]line НДС 12% НСП 1% [17:34:12]line > о реализуемом товаре [17:34:12]line ОКРУГЛЕНИЕ: -0.51 [17:34:12]line ИТОГО: 1000.00 [17:34:12]line Внесено: 1000.00 [17:34:12]line СДАЧА: 0.00 [17:34:12]line НСП 1% : 8.85 [17:34:12]line НДС 12% : 106.25 [17:34:12]line Наличными: 1000.00 [17:34:12]line Безнал.: 0.00 [17:34:12]line Место: АЗС № 86 "Партнер Нефть" [17:34:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:34:12]line СНО: Общий режим [17:34:12]line Чек 439 22.10.2024 17:34 [17:34:12]line Смена: 461 ФФД: 1.0 [17:34:12]line ЗНМ: 0300000155 [17:34:12]line РНМ: 0000000000100030 [17:34:12]line Версия ККМ: 001 [17:34:12]line ФМ: 0000000000965340 [17:34:12]line ФД: 188410 [17:34:12]line ФПД: 16097324295509 [17:34:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173411&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188410&fm=16097324295509&tin=02508201610067®Number=0000000000100030&sum=100000 [17:34:12]written 0, free lines is 4095 [17:34:12]OFD Sender: Processing packet 188410 [packets to send 1062, broken 1061] [17:34:12]ProducePacketName [17:34:12]name=ofd_packets/00188410 [17:34:12]OFD Sender: To server: pG, [17:34:12]CommunicateWithHost lk.salyk.kg:30040 [17:34:12]ConnectInit lk.salyk.kg [17:34:12]Connected sock=9 [17:34:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B0 2A 0D 01 33 F8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 01 00 00 F4 03 04 00 13 E2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FA DF 02 00 35 04 06 00 0E A3 F3 4B E5 55 0A A7 7C F5 A0 8E 04 DC [17:34:13]Write to MH i2c: 01 00 00 48 03 4B [17:34:13]Write i2c OK [17:34:13]MH_I2C_Read... [17:34:13]Read from MH i2c: 01 [17:34:13]MH_I2C_Read... [17:34:13]Read from MH i2c: 01 07 00 [17:34:13]MH_I2C_Read... [17:34:13]Read from MH i2c: 01 07 00 48 03 00 00 00 00 00 60 0C BE [17:34:13]RasterBufferAndPrint [17:34:13]line [17:34:13]line [17:34:13]line [17:34:13]line [17:34:13]line [17:34:13]written 0, free lines is 3171 [17:34:13]MH_Cut [17:34:13]Write to MH i2c: D1 01 00 4F 03 01 24 [17:34:13]Write i2c OK [17:34:13]MH_I2C_Read... [17:34:13]Read from MH i2c: D1 [17:34:13]MH_I2C_Read... [17:34:13]Read from MH i2c: D1 01 00 [17:34:13]MH_I2C_Read... [17:34:13]Read from MH i2c: D1 01 00 4F 03 00 23 [17:34:13]Write to MH i2c: 01 00 00 50 03 53 [17:34:13]Write i2c OK [17:34:13]MH_I2C_Read... [17:34:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A FF 47 00 6E 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 39 36 35 33 34 30 10 04 04 00 FA DF 02 00 F4 03 04 00 00 8C 17 67 B6 04 01 00 00 92 1A 40 5C D2 58 39 64 [17:34:13]CommunicateWithHost err = 0 [17:34:13]CheckOFDResponse [17:34:13]1017 (14) - 77093643461234 [17:34:13]1041 (16) - 0000000000965340 [17:34:13]1040 (4) - 188410 [17:34:13]1012 (4) - 22.10.2024 11:26 [17:34:13]1206 (1) - 0 [17:34:13]OFD Sender: Remove packet 188410 [17:34:13]ProducePacketName [17:34:13]name=ofd_packets/00188410 [17:34:13]NVStorageDeleteData [17:34:13]OFD Sender: No OFD packet to send [17:34:14]*** Cut start [17:34:14]*** Partial cut [17:34:14]*** CUTSNS_PIN = 1 [17:34:14]*** CUTSNS_PIN = 0 [17:34:14]*** Brake cut motor [17:34:14]Read from MH i2c: 01 [17:34:14]MH_I2C_Read... [17:34:14]*** Stop cut motor [17:34:15]*** Cut end [17:34:15]Read from MH i2c: 01 07 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: 01 07 00 50 03 00 00 00 00 00 FF 0F 68 [17:34:15]process_action close_receipt done [17:34:15]requested_data is exist [17:34:15]produce_requested_data [17:34:15]requested_item fm.sn is exist - process it [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 11 00 00 [17:34:15]Write to MH i2c: E2 08 00 51 03 80 11 00 00 00 00 00 00 CE [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 17 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 17 00 51 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [17:34:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:34:15]wFMCommunicate OK [17:34:15]requested_item fd.num is exist - process it [17:34:15]SAM_PROTO_GetFieldsCounters [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 13 00 00 [17:34:15]Write to MH i2c: E2 08 00 52 03 80 13 00 00 00 00 00 00 D1 [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 62 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 62 00 52 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [17:34:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FA DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B7 01 00 00 5E 04 04 00 B7 01 00 00 57 04 04 00 B8 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:34:15]wFMCommunicate OK [17:34:15]SAM_PROTO_GetFieldsCounters done [17:34:15]requested_item shift.num is exist - process it [17:34:15]requested_item shift.opened is exist - process it [17:34:15]req_shift_opened [17:34:15]FM_GetShiftState [17:34:15]SAM_PROTO_GetShiftState [17:34:15]wFMCommunicate request_size=4 [17:34:15]MH_SAM_APDU [17:34:15]CAPDU: 80 13 01 00 [17:34:15]Write to MH i2c: E2 08 00 53 03 80 13 01 00 00 00 00 00 D3 [17:34:15]Write i2c OK [17:34:15]MH_I2C_Read... [17:34:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:34:15]Read from MH i2c: E2 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 0E 00 [17:34:15]MH_I2C_Read... [17:34:15]Read from MH i2c: E2 0E 00 53 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [17:34:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:34:15]wFMCommunicate OK [17:34:15]SAM_PROTO_GetShiftState done [17:34:15]FM_GetShiftState done [17:34:15]req_shift_opened done [17:34:15]requested_item shift.open_date is exist - process it [17:34:15]req_shift_open_date [17:34:15]req_shift_open_date done [17:34:15]produce_requested_data done [17:34:15]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188410,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:34:15]process_action_free close_receipt [17:34:15]json_value_free [17:34:15]json_value_free done [17:34:15]process_json_proto returns [17:34:15]Send response to host [17:34:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188410,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:34:15]free response buf [17:34:15]execute_script done [17:34:15]execute_script returns [17:34:15]free content buf [17:34:15]Sock 10.Close socket [17:34:15]Sock 10.Thread stoped [17:34:18]OFD Sender: No OFD packet to send [17:34:23]OFD Sender: No OFD packet to send [17:34:28]OFD Sender: No OFD packet to send [17:34:33]OFD Sender: No OFD packet to send [17:34:38]OFD Sender: No OFD packet to send [17:34:43]OFD Sender: No OFD packet to send [17:34:48]OFD Sender: No OFD packet to send [17:34:54]OFD Sender: No OFD packet to send [17:34:59]OFD Sender: No OFD packet to send [17:35:04]OFD Sender: No OFD packet to send [17:35:09]OFD Sender: No OFD packet to send [17:35:14]OFD Sender: No OFD packet to send [17:35:19]OFD Sender: No OFD packet to send [17:35:24]OFD Sender: No OFD packet to send [17:35:29]OFD Sender: No OFD packet to send [17:35:34]OFD Sender: No OFD packet to send [17:35:39]OFD Sender: No OFD packet to send [17:35:44]OFD Sender: No OFD packet to send [17:35:49]OFD Sender: No OFD packet to send [17:35:54]OFD Sender: No OFD packet to send [17:35:59]OFD Sender: No OFD packet to send [17:36:04]OFD Sender: No OFD packet to send [17:36:09]OFD Sender: No OFD packet to send [17:36:14]OFD Sender: No OFD packet to send [17:36:19]OFD Sender: No OFD packet to send [17:36:24]OFD Sender: No OFD packet to send [17:36:29]OFD Sender: No OFD packet to send [17:36:34]OFD Sender: No OFD packet to send [17:36:39]OFD Sender: No OFD packet to send [17:36:44]OFD Sender: No OFD packet to send [17:36:49]OFD Sender: No OFD packet to send [17:36:54]OFD Sender: No OFD packet to send [17:36:59]OFD Sender: No OFD packet to send [17:37:04]OFD Sender: No OFD packet to send [17:37:09]OFD Sender: No OFD packet to send [17:37:14]OFD Sender: No OFD packet to send [17:37:19]OFD Sender: No OFD packet to send [17:37:24]OFD Sender: No OFD packet to send [17:37:29]OFD Sender: No OFD packet to send [17:37:34]OFD Sender: No OFD packet to send [17:37:39]OFD Sender: No OFD packet to send [17:37:44]OFD Sender: No OFD packet to send [17:37:49]OFD Sender: No OFD packet to send [17:37:54]OFD Sender: No OFD packet to send [17:37:59]OFD Sender: No OFD packet to send [17:38:04]OFD Sender: No OFD packet to send [17:38:09]OFD Sender: No OFD packet to send [17:38:14]OFD Sender: No OFD packet to send [17:38:19]OFD Sender: No OFD packet to send [17:38:24]OFD Sender: No OFD packet to send [17:38:29]OFD Sender: No OFD packet to send [17:38:35]OFD Sender: No OFD packet to send [17:38:40]OFD Sender: No OFD packet to send [17:38:45]OFD Sender: No OFD packet to send [17:38:50]OFD Sender: No OFD packet to send [17:38:55]OFD Sender: No OFD packet to send [17:39:00]OFD Sender: No OFD packet to send [17:39:05]OFD Sender: No OFD packet to send [17:39:10]OFD Sender: No OFD packet to send [17:39:15]OFD Sender: No OFD packet to send [17:39:20]OFD Sender: No OFD packet to send [17:39:25]OFD Sender: No OFD packet to send [17:39:30]OFD Sender: No OFD packet to send [17:39:31]accept exits with 7 [17:39:31]New connection [17:39:31]New thread 3066613092 created [17:39:31]Thread 3066756452 joined [17:39:31]Waiting for new connection... [17:39:31] Sock 7.Parse request [17:39:31]Sock 7.Check first char [17:39:31]Sock 7.First char is OK [17:39:31]request: POST /json_proto HTTP/1.0 [17:39:31]Method: POST [17:39:31]URL: /json_proto [17:39:31]Method is POST - this is cgi request [17:39:31]url: /json_proto [17:39:31]query_string will be loaded in cgi processing [17:39:31]execute_cgi json_proto POST (null) [17:39:31]execute_cgi path=json_proto method=POST [17:39:31]POST find Content-Length [17:39:31]Host: 172.17.42.131:8080 [17:39:31]Content-Length: 677 [17:39:31]Content-Type: application/json [17:39:31] [17:39:31]POST finish read [17:39:31]Found Content-Length = 677 [17:39:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [17:39:31]execute_script... [17:39: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)210474", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 9.440, "sum" : 700.45, "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" ] } } [17:39:31]POST & json_proto [17:39:31]process_json_proto [17:39:31]json parsed OK: [17:39:31]protocol is kg_v1.0 [17:39:31]action value=close_receipt [17:39:31]process_action close_receipt [17:39:31]cmd_close_receipt [17:39:31]MH_GetDate [17:39:31]Write to MH i2c: F0 00 00 54 03 46 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: F0 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: F0 09 00 [17:39:31]MH_I2C_Read... [17:39:31]Read from MH i2c: F0 09 00 54 03 00 54 E3 17 67 A0 18 CA 66 EC [17:39:31]GetLastDocTimeStamp 1729618451 [17:39:31]current date 1729618772 [17:39:31]FM_GetShiftState [17:39:31]SAM_PROTO_GetShiftState [17:39:31]wFMCommunicate request_size=4 [17:39:31]MH_SAM_APDU [17:39:31]CAPDU: 80 13 01 00 [17:39:31]Write to MH i2c: E2 08 00 55 03 80 13 01 00 00 00 00 00 D5 [17:39:31]Write i2c OK [17:39:31]MH_I2C_Read... [17:39:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:32]Read from MH i2c: E2 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 [17:39:32]MH_I2C_Read... [17:39:32]Read from MH i2c: E2 0E 00 55 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CA [17:39:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:39:32]wFMCommunicate OK [17:39:32]SAM_PROTO_GetShiftState done [17:39:32]FM_GetShiftState done [17:39:32]opened in 1729556094 [17:39:32]opened+sec_in_day 1729642494 [17:39:32]quantity*price = 70044 [17:39:32]sum+1 = 70046 [17:39:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 440 22.10.2024 17:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188411 ФПД: 158965662705626 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188411&fm=158965662705626&tin=02508201610067®Number=0000000000100030&sum=70000 [17:39:33]StoreToDocumentArchive [17:39:33]shift 461 fd 188411 [17:39:33]save to /storage/0461/doc_00188411 [17:39:33]save last doc name /storage/0461/doc_00188411 to /storage/kkm_last_doc_name [17:39:33]save OK [17:39:33]Clear old archive folders... [17:39:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:39:33]tlvbuf is 0094BBE0 [17:39:33]SAM_PROTO_ClearQueue [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 09 00 00 [17:39:33]Write to MH i2c: E2 08 00 62 03 80 09 00 00 00 00 00 00 D7 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 62 03 00 90 00 D9 [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_ClearQueue done [17:39:33]KKMCreateOFDPacket [17:39:33]OFDProtocolAddRootSTLVToBuf [17:39:33]FM_MakeSignedData [17:39:33]FM_MakeSignedData [17:39:33]SAM_PROTO_SignData [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 01 02 [17:39:33]Write to MH i2c: E2 08 00 63 03 80 0D 01 02 00 00 00 00 DF [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 63 03 00 90 00 DA [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=255 [17:39:33]MH_SAM_APDU [17:39: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B8 01 00 00 F4 03 04 00 54 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DF 02 00 35 04 06 00 90 [17:39:33]Write to MH i2c: E2 02 01 64 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B8 01 00 00 F4 03 04 00 54 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DF 02 00 35 04 06 00 90 00 00 E1 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 64 03 00 90 00 DB [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=10 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 02 02 05 94 13 DB 67 DA [17:39:33]Write to MH i2c: E2 0D 00 65 03 80 0D 02 02 05 00 94 13 DB 67 DA 00 00 AF [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 03 00 65 03 00 90 00 DC [17:39:33]RAPDU: 90 00 [17:39:33]wFMCommunicate OK [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 0D 03 02 [17:39:33]Write to MH i2c: E2 08 00 66 03 80 0D 03 02 00 00 00 00 E4 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0B 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 0B 00 66 03 00 BB F9 66 E5 91 1A 65 EA 90 00 DE [17:39:33]RAPDU: BB F9 66 E5 91 1A 65 EA 90 00 [17:39:33]wFMCommunicate OK [17:39:33]SAM_PROTO_SignData done [17:39:33]FM_MakeSignedData done [17:39:33]CreateOFDProtocolMessage [17:39:33]wFMCommunicate request_size=4 [17:39:33]MH_SAM_APDU [17:39:33]CAPDU: 80 11 00 00 [17:39:33]Write to MH i2c: E2 08 00 67 03 80 11 00 00 00 00 00 00 E4 [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:33]Read from MH i2c: E2 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 17 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: E2 17 00 67 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [17:39:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:33]wFMCommunicate OK [17:39:33]CreateOFDProtocolMessage done [17:39:33]OFDSenderStorePacket 188411 [17:39:33]StoreOFDPacket docnum=188411 [17:39:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 69 07 01 C6 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B8 01 00 00 F4 03 04 00 54 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DF 02 00 35 04 06 00 90 94 13 DB 67 DA BB F9 66 E5 91 1A 65 EA [17:39:33]CheckFolder [17:39:33]dirname=/storage/ofd_packets [17:39:33]CheckFolder done [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00188411 [17:39:33]NVStorageSaveData ofd_packets/00188411 [17:39:33]File name is /storage/ofd_packets/00188411 [17:39:33]Write 301 bytes [17:39:33]NVStorageSaveData done [17:39:33]OFDSenderStorePacket done [17:39:33]KKMCreateOFDPacket done [17:39:33]NVStorageSaveData kkm_last_timestamp [17:39:33]File name is /storage/kkm_last_timestamp [17:39:33]Write 4 bytes [17:39:33]NVStorageSaveData done [17:39:33]ExternCall_PrintAddStr [17:39:33]wPrintStart [17:39:33]Write to MH i2c: 01 00 00 68 03 6B [17:39:33]Write i2c OK [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 [17:39:33]MH_I2C_Read... [17:39:33]Read from MH i2c: 01 07 00 68 03 00 00 00 00 00 FF 0F 80 [17:39:33]RasterBufferAndPrint [17:39:33]line Счет N : (1)210474 [17:39:33]line ИНН: 02508201610067 [17:39:33]line Контрольно-Кассовый Чек [17:39:33]line ПРОДАЖА [17:39:33]line ТРК (МРК, ГНК) : 23 [17:39:33]line Товар: 2710124500 [17:39:33]line Аи-95-К-3 [17:39:33]line 9.440 * 74.20 [17:39:33]line = 700.45 [17:39:33]line НДС 12% НСП 1% [17:39:33]line > о реализуемом товаре [17:39:33]line ОКРУГЛЕНИЕ: -0.45 [17:39:33]line ИТОГО: 700.00 [17:39:33]line Внесено: 700.00 [17:39:33]line СДАЧА: 0.00 [17:39:33]line НСП 1% : 6.20 [17:39:33]line НДС 12% : 74.38 [17:39:33]line Наличными: 700.00 [17:39:33]line Безнал.: 0.00 [17:39:33]line Место: АЗС № 86 "Партнер Нефть" [17:39:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:39:33]line СНО: Общий режим [17:39:33]line Чек 440 22.10.2024 17:39 [17:39:33]line Смена: 461 ФФД: 1.0 [17:39:33]line ЗНМ: 0300000155 [17:39:33]line РНМ: 0000000000100030 [17:39:33]line Версия ККМ: 001 [17:39:33]line ФМ: 0000000000965340 [17:39:33]line ФД: 188411 [17:39:33]line ФПД: 158965662705626 [17:39:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173932&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188411&fm=158965662705626&tin=02508201610067®Number=0000000000100030&sum=70000 [17:39:33]written 0, free lines is 4095 [17:39:33]OFD Sender: Processing packet 188411 [packets to send 1062, broken 1061] [17:39:33]ProducePacketName [17:39:33]name=ofd_packets/00188411 [17:39:33]OFD Sender: To server: pG, [17:39:33]CommunicateWithHost lk.salyk.kg:30040 [17:39:33]ConnectInit lk.salyk.kg [17:39:33]Connected sock=9 [17:39:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 49 69 07 01 C6 B6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 E0 24 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 9D 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 B8 01 00 00 F4 03 04 00 54 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DF 02 00 35 04 06 00 90 94 13 DB 67 DA BB F9 66 E5 91 1A 65 EA [17:39:34]Write to MH i2c: 01 00 00 93 03 96 [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: 01 07 00 93 03 00 00 00 00 00 58 0C 01 [17:39:34]RasterBufferAndPrint [17:39:34]line [17:39:34]line [17:39:34]line [17:39:34]line [17:39:34]line [17:39:34]written 0, free lines is 3164 [17:39:34]MH_Cut [17:39:34]Write to MH i2c: D1 01 00 9A 03 01 6F [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: D1 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: D1 01 00 [17:39:34]MH_I2C_Read... [17:39:34]Read from MH i2c: D1 01 00 9A 03 00 6E [17:39:34]Write to MH i2c: 01 00 00 9B 03 9E [17:39:34]Write i2c OK [17:39:34]MH_I2C_Read... [17:39:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AA 13 47 00 E2 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FB DF 02 00 F4 03 04 00 41 8D 17 67 B6 04 01 00 00 CC 91 53 F8 F1 28 63 FC [17:39:34]CommunicateWithHost err = 0 [17:39:34]CheckOFDResponse [17:39:34]1017 (14) - 77093643461234 [17:39:34]1041 (16) - 0000000000965340 [17:39:34]1040 (4) - 188411 [17:39:34]1012 (4) - 22.10.2024 11:32 [17:39:34]1206 (1) - 0 [17:39:34]OFD Sender: Remove packet 188411 [17:39:34]ProducePacketName [17:39:34]name=ofd_packets/00188411 [17:39:34]NVStorageDeleteData [17:39:34]OFD Sender: No OFD packet to send [17:39:35]*** Cut start [17:39:35]*** Partial cut [17:39:35]*** CUTSNS_PIN = 1 [17:39:35]*** CUTSNS_PIN = 0 [17:39:35]*** Brake cut motor [17:39:36]Read from MH i2c: 01 [17:39:36]MH_I2C_Read... [17:39:36]*** Stop cut motor [17:39:36]*** Cut end [17:39:36]Read from MH i2c: 01 07 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: 01 07 00 9B 03 00 00 00 00 00 FF 0F B3 [17:39:36]process_action close_receipt done [17:39:36]requested_data is exist [17:39:36]produce_requested_data [17:39:36]requested_item fm.sn is exist - process it [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 11 00 00 [17:39:36]Write to MH i2c: E2 08 00 9C 03 80 11 00 00 00 00 00 00 19 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 17 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 17 00 9C 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [17:39:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:36]wFMCommunicate OK [17:39:36]requested_item fd.num is exist - process it [17:39:36]SAM_PROTO_GetFieldsCounters [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 00 00 [17:39:36]Write to MH i2c: E2 08 00 9D 03 80 13 00 00 00 00 00 00 1C [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 62 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 62 00 9D 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [17:39:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FB DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B8 01 00 00 5E 04 04 00 B8 01 00 00 57 04 04 00 B9 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetFieldsCounters done [17:39:36]requested_item shift.num is exist - process it [17:39:36]requested_item shift.opened is exist - process it [17:39:36]req_shift_opened [17:39:36]FM_GetShiftState [17:39:36]SAM_PROTO_GetShiftState [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 01 00 [17:39:36]Write to MH i2c: E2 08 00 9E 03 80 13 01 00 00 00 00 00 1E [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 9E 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 13 [17:39:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]req_shift_opened done [17:39:36]requested_item shift.open_date is exist - process it [17:39:36]req_shift_open_date [17:39:36]req_shift_open_date done [17:39:36]produce_requested_data done [17:39:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188411,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:39:36]process_action_free close_receipt [17:39:36]json_value_free [17:39:36]json_value_free done [17:39:36]process_json_proto returns [17:39:36]Send response to host [17:39:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188411,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:39:36]free response buf [17:39:36]execute_script done [17:39:36]execute_script returns [17:39:36]free content buf [17:39:36]Sock 7.Close socket [17:39:36]Sock 7.Thread stoped [17:39:36]accept exits with 10 [17:39:36]New connection [17:39:36]New thread 3066756452 created [17:39:36]Thread 3066613092 joined [17:39:36]Waiting for new connection... [17:39:36] Sock 10.Parse request [17:39:36]Sock 10.Check first char [17:39:36]Sock 10.First char is OK [17:39:36]request: POST /json_proto HTTP/1.0 [17:39:36]Method: POST [17:39:36]URL: /json_proto [17:39:36]Method is POST - this is cgi request [17:39:36]url: /json_proto [17:39:36]query_string will be loaded in cgi processing [17:39:36]execute_cgi json_proto POST (null) [17:39:36]execute_cgi path=json_proto method=POST [17:39:36]POST find Content-Length [17:39:36]Host: 172.17.42.131:8080 [17:39:36]Content-Length: 679 [17:39:36]Content-Type: application/json [17:39:36] [17:39:36]POST finish read [17:39:36]Found Content-Length = 679 [17:39:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [17:39:36]execute_script... [17:39:36]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210472", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [17:39:36]POST & json_proto [17:39:36]process_json_proto [17:39:36]json parsed OK: [17:39:36]protocol is kg_v1.0 [17:39:36]action value=close_receipt [17:39:36]process_action close_receipt [17:39:36]cmd_close_receipt [17:39:36]MH_GetDate [17:39:36]Write to MH i2c: F0 00 00 9F 03 91 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: F0 09 00 9F 03 00 59 E3 17 67 A0 18 CA 66 3C [17:39:36]GetLastDocTimeStamp 1729618772 [17:39:36]current date 1729618777 [17:39:36]FM_GetShiftState [17:39:36]SAM_PROTO_GetShiftState [17:39:36]wFMCommunicate request_size=4 [17:39:36]MH_SAM_APDU [17:39:36]CAPDU: 80 13 01 00 [17:39:36]Write to MH i2c: E2 08 00 A0 03 80 13 01 00 00 00 00 00 20 [17:39:36]Write i2c OK [17:39:36]MH_I2C_Read... [17:39:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:36]Read from MH i2c: E2 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 [17:39:36]MH_I2C_Read... [17:39:36]Read from MH i2c: E2 0E 00 A0 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [17:39:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:39:36]wFMCommunicate OK [17:39:36]SAM_PROTO_GetShiftState done [17:39:36]FM_GetShiftState done [17:39:36]opened in 1729556094 [17:39:36]opened+sec_in_day 1729642494 [17:39:36]quantity*price = 100050 [17:39:36]sum+1 = 100052 [17:39:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 441 22.10.2024 17:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188412 ФПД: 168967200240890 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188412&fm=168967200240890&tin=02508201610067®Number=0000000000100030&sum=100000 [17:39:38]StoreToDocumentArchive [17:39:38]shift 461 fd 188412 [17:39:38]save to /storage/0461/doc_00188412 [17:39:38]save last doc name /storage/0461/doc_00188412 to /storage/kkm_last_doc_name [17:39:38]save OK [17:39:38]Clear old archive folders... [17:39:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:39:38]tlvbuf is 00939620 [17:39:38]SAM_PROTO_ClearQueue [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 09 00 00 [17:39:38]Write to MH i2c: E2 08 00 AD 03 80 09 00 00 00 00 00 00 22 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 AD 03 00 90 00 24 [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]SAM_PROTO_ClearQueue done [17:39:38]KKMCreateOFDPacket [17:39:38]OFDProtocolAddRootSTLVToBuf [17:39:38]FM_MakeSignedData [17:39:38]FM_MakeSignedData [17:39:38]SAM_PROTO_SignData [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 0D 01 02 [17:39:38]Write to MH i2c: E2 08 00 AE 03 80 0D 01 02 00 00 00 00 2A [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 AE 03 00 90 00 25 [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]wFMCommunicate request_size=255 [17:39:38]MH_SAM_APDU [17:39: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 32 31 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 B9 01 00 00 F4 03 04 00 59 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DF 02 00 35 04 06 00 99 AC BD F2 [17:39:38]Write to MH i2c: E2 02 01 AF 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 32 31 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 B9 01 00 00 F4 03 04 00 59 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DF 02 00 35 04 06 00 99 AC BD F2 00 00 A8 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 AF 03 00 90 00 26 [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]wFMCommunicate request_size=7 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 0D 02 02 02 F4 FA [17:39:38]Write to MH i2c: E2 0A 00 B0 03 80 0D 02 02 02 00 F4 FA 00 00 1F [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 03 00 B0 03 00 90 00 27 [17:39:38]RAPDU: 90 00 [17:39:38]wFMCommunicate OK [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 0D 03 02 [17:39:38]Write to MH i2c: E2 08 00 B1 03 80 0D 03 02 00 00 00 00 2F [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 0B 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 0B 00 B1 03 00 0E 1C 11 B2 0A 7E DD EC 90 00 6E [17:39:38]RAPDU: 0E 1C 11 B2 0A 7E DD EC 90 00 [17:39:38]wFMCommunicate OK [17:39:38]SAM_PROTO_SignData done [17:39:38]FM_MakeSignedData done [17:39:38]CreateOFDProtocolMessage [17:39:38]wFMCommunicate request_size=4 [17:39:38]MH_SAM_APDU [17:39:38]CAPDU: 80 11 00 00 [17:39:38]Write to MH i2c: E2 08 00 B2 03 80 11 00 00 00 00 00 00 2F [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:38]Read from MH i2c: E2 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 17 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: E2 17 00 B2 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [17:39:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:38]wFMCommunicate OK [17:39:38]CreateOFDProtocolMessage done [17:39:38]OFDSenderStorePacket 188412 [17:39:38]StoreOFDPacket docnum=188412 [17:39:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CB DB 04 01 70 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 B9 01 00 00 F4 03 04 00 59 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DF 02 00 35 04 06 00 99 AC BD F2 F4 FA 0E 1C 11 B2 0A 7E DD EC [17:39:38]CheckFolder [17:39:38]dirname=/storage/ofd_packets [17:39:38]CheckFolder done [17:39:38]ProducePacketName [17:39:38]name=ofd_packets/00188412 [17:39:38]NVStorageSaveData ofd_packets/00188412 [17:39:38]File name is /storage/ofd_packets/00188412 [17:39:38]Write 298 bytes [17:39:38]NVStorageSaveData done [17:39:38]OFDSenderStorePacket done [17:39:38]KKMCreateOFDPacket done [17:39:38]NVStorageSaveData kkm_last_timestamp [17:39:38]File name is /storage/kkm_last_timestamp [17:39:38]Write 4 bytes [17:39:38]NVStorageSaveData done [17:39:38]ExternCall_PrintAddStr [17:39:38]wPrintStart [17:39:38]Write to MH i2c: 01 00 00 B3 03 B6 [17:39:38]Write i2c OK [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 [17:39:38]MH_I2C_Read... [17:39:38]Read from MH i2c: 01 07 00 B3 03 00 00 00 00 00 FF 0F CB [17:39:38]RasterBufferAndPrint [17:39:38]line Счет N : (1)210472 [17:39:38]line ИНН: 02508201610067 [17:39:38]line Контрольно-Кассовый Чек [17:39:38]line ПРОДАЖА [17:39:38]line ТРК (МРК, ГНК) : 51 [17:39:38]line Товар: 2710194210 [17:39:38]line ДТ-К-5 [17:39:38]line 13.130 * 76.20 [17:39:38]line = 1000.51 [17:39:38]line НДС 12% НСП 1% [17:39:38]line > о реализуемом товаре [17:39:38]line ОКРУГЛЕНИЕ: -0.51 [17:39:38]line ИТОГО: 1000.00 [17:39:38]line Внесено: 1000.00 [17:39:38]line СДАЧА: 0.00 [17:39:38]line НСП 1% : 8.85 [17:39:38]line НДС 12% : 106.25 [17:39:38]line Наличными: 1000.00 [17:39:38]line Безнал.: 0.00 [17:39:38]line Место: АЗС № 86 "Партнер Нефть" [17:39:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:39:38]line СНО: Общий режим [17:39:38]line Чек 441 22.10.2024 17:39 [17:39:38]line Смена: 461 ФФД: 1.0 [17:39:38]line ЗНМ: 0300000155 [17:39:38]line РНМ: 0000000000100030 [17:39:38]line Версия ККМ: 001 [17:39:38]line ФМ: 0000000000965340 [17:39:38]line ФД: 188412 [17:39:38]line ФПД: 168967200240890 [17:39:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173937&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188412&fm=168967200240890&tin=02508201610067®Number=0000000000100030&sum=100000 [17:39:38]OFD Sender: Processing packet 188412 [packets to send 1062, broken 1061] [17:39:38]ProducePacketName [17:39:38]name=ofd_packets/00188412 [17:39:38]OFD Sender: To server: pG, [17:39:38]CommunicateWithHost lk.salyk.kg:30040 [17:39:38]ConnectInit lk.salyk.kg [17:39:38]written 0, free lines is 4095 [17:39:39]Connected sock=9 [17:39:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 CB DB 04 01 70 EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 B9 01 00 00 F4 03 04 00 59 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DF 02 00 35 04 06 00 99 AC BD F2 F4 FA 0E 1C 11 B2 0A 7E DD EC [17:39:39]Write to MH i2c: 01 00 00 DE 03 E1 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: 01 07 00 DE 03 00 00 00 00 00 5F 0C 53 [17:39:39]RasterBufferAndPrint [17:39:39]line [17:39:39]line [17:39:39]line [17:39:39]line [17:39:39]line [17:39:39]written 0, free lines is 3175 [17:39:39]MH_Cut [17:39:39]Write to MH i2c: D1 01 00 E5 03 01 BA [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: D1 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: D1 01 00 [17:39:39]MH_I2C_Read... [17:39:39]Read from MH i2c: D1 01 00 E5 03 00 B9 [17:39:39]Write to MH i2c: 01 00 00 E6 03 E9 [17:39:39]Write i2c OK [17:39:39]MH_I2C_Read... [17:39:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D4 B5 47 00 7E 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FC DF 02 00 F4 03 04 00 46 8D 17 67 B6 04 01 00 00 0A 89 3B F0 5C 71 93 F6 [17:39:39]CommunicateWithHost err = 0 [17:39:39]CheckOFDResponse [17:39:39]1017 (14) - 77093643461234 [17:39:39]1041 (16) - 0000000000965340 [17:39:39]1040 (4) - 188412 [17:39:39]1012 (4) - 22.10.2024 11:32 [17:39:39]1206 (1) - 0 [17:39:39]OFD Sender: Remove packet 188412 [17:39:39]ProducePacketName [17:39:39]name=ofd_packets/00188412 [17:39:39]NVStorageDeleteData [17:39:40]OFD Sender: No OFD packet to send [17:39:40]*** Cut start [17:39:40]*** Partial cut [17:39:40]*** CUTSNS_PIN = 1 [17:39:40]*** CUTSNS_PIN = 0 [17:39:40]*** Brake cut motor [17:39:41]Read from MH i2c: 01 [17:39:41]MH_I2C_Read... [17:39:41]*** Stop cut motor [17:39:41]*** Cut end [17:39:41]Read from MH i2c: 01 07 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: 01 07 00 E6 03 00 00 00 00 00 FF 0F FE [17:39:41]process_action close_receipt done [17:39:41]requested_data is exist [17:39:41]produce_requested_data [17:39:41]requested_item fm.sn is exist - process it [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 11 00 00 [17:39:41]Write to MH i2c: E2 08 00 E7 03 80 11 00 00 00 00 00 00 64 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 17 00 E7 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [17:39:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:41]wFMCommunicate OK [17:39:41]requested_item fd.num is exist - process it [17:39:41]SAM_PROTO_GetFieldsCounters [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 00 00 [17:39:41]Write to MH i2c: E2 08 00 E8 03 80 13 00 00 00 00 00 00 67 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 62 00 E8 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [17:39:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FC DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 B9 01 00 00 5E 04 04 00 B9 01 00 00 57 04 04 00 BA 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetFieldsCounters done [17:39:41]requested_item shift.num is exist - process it [17:39:41]requested_item shift.opened is exist - process it [17:39:41]req_shift_opened [17:39:41]FM_GetShiftState [17:39:41]SAM_PROTO_GetShiftState [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 01 00 [17:39:41]Write to MH i2c: E2 08 00 E9 03 80 13 01 00 00 00 00 00 69 [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 E9 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5E [17:39:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetShiftState done [17:39:41]FM_GetShiftState done [17:39:41]req_shift_opened done [17:39:41]requested_item shift.open_date is exist - process it [17:39:41]req_shift_open_date [17:39:41]req_shift_open_date done [17:39:41]produce_requested_data done [17:39:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188412,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:39:41]process_action_free close_receipt [17:39:41]json_value_free [17:39:41]json_value_free done [17:39:41]process_json_proto returns [17:39:41]Send response to host [17:39:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188412,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:39:41]free response buf [17:39:41]execute_script done [17:39:41]execute_script returns [17:39:41]free content buf [17:39:41]Sock 10.Close socket [17:39:41]Sock 10.Thread stoped [17:39:41]accept exits with 7 [17:39:41]New connection [17:39:41]New thread 3066613092 created [17:39:41]Thread 3066756452 joined [17:39:41]Waiting for new connection... [17:39:41] Sock 7.Parse request [17:39:41]Sock 7.Check first char [17:39:41]Sock 7.First char is OK [17:39:41]request: POST /json_proto HTTP/1.0 [17:39:41]Method: POST [17:39:41]URL: /json_proto [17:39:41]Method is POST - this is cgi request [17:39:41]url: /json_proto [17:39:41]query_string will be loaded in cgi processing [17:39:41]execute_cgi json_proto POST (null) [17:39:41]execute_cgi path=json_proto method=POST [17:39:41]POST find Content-Length [17:39:41]Host: 172.17.42.131:8080 [17:39:41]Content-Length: 679 [17:39:41]Content-Type: application/json [17:39:41] [17:39:41]POST finish read [17:39:41]Found Content-Length = 679 [17:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:41]execute_script... [17:39: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)210471", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "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 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:39:41]POST & json_proto [17:39:41]process_json_proto [17:39:41]json parsed OK: [17:39:41]protocol is kg_v1.0 [17:39:41]action value=close_receipt [17:39:41]process_action close_receipt [17:39:41]cmd_close_receipt [17:39:41]MH_GetDate [17:39:41]Write to MH i2c: F0 00 00 EA 03 DC [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: F0 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: F0 09 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: F0 09 00 EA 03 00 5E E3 17 67 A0 18 CA 66 8C [17:39:41]GetLastDocTimeStamp 1729618777 [17:39:41]current date 1729618782 [17:39:41]FM_GetShiftState [17:39:41]SAM_PROTO_GetShiftState [17:39:41]wFMCommunicate request_size=4 [17:39:41]MH_SAM_APDU [17:39:41]CAPDU: 80 13 01 00 [17:39:41]Write to MH i2c: E2 08 00 EB 03 80 13 01 00 00 00 00 00 6B [17:39:41]Write i2c OK [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 [17:39:41]MH_I2C_Read... [17:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:41]Read from MH i2c: E2 0E 00 [17:39:41]MH_I2C_Read... [17:39:41]Read from MH i2c: E2 0E 00 EB 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 60 [17:39:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:39:41]wFMCommunicate OK [17:39:41]SAM_PROTO_GetShiftState done [17:39:41]FM_GetShiftState done [17:39:41]opened in 1729556094 [17:39:41]opened+sec_in_day 1729642494 [17:39:41]quantity*price = 300075 [17:39:41]sum+1 = 300077 [17:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 442 22.10.2024 17:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188413 ФПД: 126127134854033 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188413&fm=126127134854033&tin=02508201610067®Number=0000000000100030&sum=300000 [17:39:42]StoreToDocumentArchive [17:39:42]shift 461 fd 188413 [17:39:42]save to /storage/0461/doc_00188413 [17:39:42]save last doc name /storage/0461/doc_00188413 to /storage/kkm_last_doc_name [17:39:42]save OK [17:39:42]Clear old archive folders... [17:39:43]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:39:43]tlvbuf is 00967A10 [17:39:43]SAM_PROTO_ClearQueue [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 09 00 00 [17:39:43]Write to MH i2c: E2 08 00 F8 03 80 09 00 00 00 00 00 00 6D [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 F8 03 00 90 00 6F [17:39:43]RAPDU: 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_ClearQueue done [17:39:43]KKMCreateOFDPacket [17:39:43]OFDProtocolAddRootSTLVToBuf [17:39:43]FM_MakeSignedData [17:39:43]FM_MakeSignedData [17:39:43]SAM_PROTO_SignData [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 0D 01 02 [17:39:43]Write to MH i2c: E2 08 00 F9 03 80 0D 01 02 00 00 00 00 75 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 F9 03 00 90 00 70 [17:39:43]RAPDU: 90 00 [17:39:43]wFMCommunicate OK [17:39:43]wFMCommunicate request_size=255 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 5E E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DF 02 00 35 04 06 00 72 B6 43 11 [17:39:43]Write to MH i2c: E2 02 01 FA 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 32 31 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 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 5E E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DF 02 00 35 04 06 00 72 B6 43 11 00 00 B9 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 FA 03 00 90 00 71 [17:39:43]RAPDU: 90 00 [17:39:43]wFMCommunicate OK [17:39:43]wFMCommunicate request_size=7 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 0D 02 02 02 CB 91 [17:39:43]Write to MH i2c: E2 0A 00 FB 03 80 0D 02 02 02 00 CB 91 00 00 D8 [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:39:43]Read from MH i2c: E2 03 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 03 00 FB 03 00 90 00 72 [17:39:43]RAPDU: 90 00 [17:39:43]wFMCommunicate OK [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 0D 03 02 [17:39:43]Write to MH i2c: E2 08 00 FC 03 80 0D 03 02 00 00 00 00 7A [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0B 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 0B 00 FC 03 00 91 9D 4F 95 4D 3A 01 0D 90 00 22 [17:39:43]RAPDU: 91 9D 4F 95 4D 3A 01 0D 90 00 [17:39:43]wFMCommunicate OK [17:39:43]SAM_PROTO_SignData done [17:39:43]FM_MakeSignedData done [17:39:43]CreateOFDProtocolMessage [17:39:43]wFMCommunicate request_size=4 [17:39:43]MH_SAM_APDU [17:39:43]CAPDU: 80 11 00 00 [17:39:43]Write to MH i2c: E2 08 00 FD 03 80 11 00 00 00 00 00 00 7A [17:39:43]Write i2c OK [17:39:43]MH_I2C_Read... [17:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:43]Read from MH i2c: E2 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 [17:39:43]MH_I2C_Read... [17:39:43]Read from MH i2c: E2 17 00 FD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [17:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:43]wFMCommunicate OK [17:39:43]CreateOFDProtocolMessage done [17:39:43]OFDSenderStorePacket 188413 [17:39:43]StoreOFDPacket docnum=188413 [17:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 47 67 04 01 F4 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 5E E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DF 02 00 35 04 06 00 72 B6 43 11 CB 91 91 9D 4F 95 4D 3A 01 0D [17:39:43]CheckFolder [17:39:43]dirname=/storage/ofd_packets [17:39:43]CheckFolder done [17:39:43]ProducePacketName [17:39:43]name=ofd_packets/00188413 [17:39:43]NVStorageSaveData ofd_packets/00188413 [17:39:43]File name is /storage/ofd_packets/00188413 [17:39:43]Write 298 bytes [17:39:43]NVStorageSaveData done [17:39:43]OFDSenderStorePacket done [17:39:43]KKMCreateOFDPacket done [17:39:43]NVStorageSaveData kkm_last_timestamp [17:39:43]File name is /storage/kkm_last_timestamp [17:39:43]Write 4 bytes [17:39:43]NVStorageSaveData done [17:39:44]ExternCall_PrintAddStr [17:39:44]wPrintStart [17:39:44]Write to MH i2c: 01 00 00 FE 03 01 [17:39:44]Write i2c OK [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: 01 [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: 01 07 00 [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: 01 07 00 FE 03 00 00 00 00 00 FF 0F 16 [17:39:44]RasterBufferAndPrint [17:39:44]line Счет N : (1)210471 [17:39:44]line ИНН: 02508201610067 [17:39:44]line Контрольно-Кассовый Чек [17:39:44]line ПРОДАЖА [17:39:44]line ТРК (МРК, ГНК) : 61 [17:39:44]line Товар: 2710194210 [17:39:44]line ДТ-К-5 [17:39:44]line 39.380 * 76.20 [17:39:44]line = 3000.76 [17:39:44]line НДС 12% НСП 1% [17:39:44]line > о реализуемом товаре [17:39:44]line ОКРУГЛЕНИЕ: -0.76 [17:39:44]line ИТОГО: 3000.00 [17:39:44]line Внесено: 3000.00 [17:39:44]line СДАЧА: 0.00 [17:39:44]line НСП 1% : 26.55 [17:39:44]line НДС 12% : 318.66 [17:39:44]line Наличными: 3000.00 [17:39:44]line Безнал.: 0.00 [17:39:44]line Место: АЗС № 86 "Партнер Нефть" [17:39:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:39:44]line СНО: Общий режим [17:39:44]line Чек 442 22.10.2024 17:39 [17:39:44]line Смена: 461 ФФД: 1.0 [17:39:44]line ЗНМ: 0300000155 [17:39:44]line РНМ: 0000000000100030 [17:39:44]line Версия ККМ: 001 [17:39:44]line ФМ: 0000000000965340 [17:39:44]line ФД: 188413 [17:39:44]line ФПД: 126127134854033 [17:39:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T173942&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188413&fm=126127134854033&tin=02508201610067®Number=0000000000100030&sum=300000 [17:39:44]written 0, free lines is 4095 [17:39:44]OFD Sender: Processing packet 188413 [packets to send 1062, broken 1061] [17:39:44]ProducePacketName [17:39:44]name=ofd_packets/00188413 [17:39:44]OFD Sender: To server: pG, [17:39:44]CommunicateWithHost lk.salyk.kg:30040 [17:39:44]ConnectInit lk.salyk.kg [17:39:44]Connected sock=10 [17:39:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 47 67 04 01 F4 77 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BA 01 00 00 F4 03 04 00 5E E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DF 02 00 35 04 06 00 72 B6 43 11 CB 91 91 9D 4F 95 4D 3A 01 0D [17:39:44]Write to MH i2c: 01 00 00 29 04 2D [17:39:44]Write i2c OK [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: 01 [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: 01 07 00 [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: 01 07 00 29 04 00 00 00 00 00 6C 0C AC [17:39:44]RasterBufferAndPrint [17:39:44]line [17:39:44]line [17:39:44]line [17:39:44]line [17:39:44]line [17:39:44]written 0, free lines is 3189 [17:39:44]MH_Cut [17:39:44]Write to MH i2c: D1 01 00 30 04 01 06 [17:39:44]Write i2c OK [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: D1 [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: D1 01 00 [17:39:44]MH_I2C_Read... [17:39:44]Read from MH i2c: D1 01 00 30 04 00 05 [17:39:44]Write to MH i2c: 01 00 00 31 04 35 [17:39:44]Write i2c OK [17:39:44]MH_I2C_Read... [17:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 75 7B 47 00 B2 56 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FD DF 02 00 F4 03 04 00 4C 8D 17 67 B6 04 01 00 00 C9 F3 04 7B 56 30 DE 7F [17:39:44]CommunicateWithHost err = 0 [17:39:44]CheckOFDResponse [17:39:44]1017 (14) - 77093643461234 [17:39:44]1041 (16) - 0000000000965340 [17:39:44]1040 (4) - 188413 [17:39:44]1012 (4) - 22.10.2024 11:32 [17:39:44]1206 (1) - 0 [17:39:44]OFD Sender: Remove packet 188413 [17:39:44]ProducePacketName [17:39:44]name=ofd_packets/00188413 [17:39:44]NVStorageDeleteData [17:39:45]OFD Sender: No OFD packet to send [17:39:45]*** Cut start [17:39:45]*** Partial cut [17:39:45]*** CUTSNS_PIN = 1 [17:39:45]*** CUTSNS_PIN = 0 [17:39:45]*** Brake cut motor [17:39:46]Read from MH i2c: 01 [17:39:46]MH_I2C_Read... [17:39:46]*** Stop cut motor [17:39:46]*** Cut end [17:39:46]Read from MH i2c: 01 07 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: 01 07 00 31 04 00 00 00 00 00 FF 0F 4A [17:39:46]process_action close_receipt done [17:39:46]requested_data is exist [17:39:46]produce_requested_data [17:39:46]requested_item fm.sn is exist - process it [17:39:46]wFMCommunicate request_size=4 [17:39:46]MH_SAM_APDU [17:39:46]CAPDU: 80 11 00 00 [17:39:46]Write to MH i2c: E2 08 00 32 04 80 11 00 00 00 00 00 00 B0 [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:39:46]Read from MH i2c: E2 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 17 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 17 00 32 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [17:39:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:39:46]wFMCommunicate OK [17:39:46]requested_item fd.num is exist - process it [17:39:46]SAM_PROTO_GetFieldsCounters [17:39:46]wFMCommunicate request_size=4 [17:39:46]MH_SAM_APDU [17:39:46]CAPDU: 80 13 00 00 [17:39:46]Write to MH i2c: E2 08 00 33 04 80 13 00 00 00 00 00 00 B3 [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:39:46]Read from MH i2c: E2 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 62 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 62 00 33 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 97 [17:39:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FD DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BA 01 00 00 5E 04 04 00 BA 01 00 00 57 04 04 00 BB 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:39:46]wFMCommunicate OK [17:39:46]SAM_PROTO_GetFieldsCounters done [17:39:46]requested_item shift.num is exist - process it [17:39:46]requested_item shift.opened is exist - process it [17:39:46]req_shift_opened [17:39:46]FM_GetShiftState [17:39:46]SAM_PROTO_GetShiftState [17:39:46]wFMCommunicate request_size=4 [17:39:46]MH_SAM_APDU [17:39:46]CAPDU: 80 13 01 00 [17:39:46]Write to MH i2c: E2 08 00 34 04 80 13 01 00 00 00 00 00 B5 [17:39:46]Write i2c OK [17:39:46]MH_I2C_Read... [17:39:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:39:46]Read from MH i2c: E2 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 0E 00 [17:39:46]MH_I2C_Read... [17:39:46]Read from MH i2c: E2 0E 00 34 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AA [17:39:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:39:46]wFMCommunicate OK [17:39:46]SAM_PROTO_GetShiftState done [17:39:46]FM_GetShiftState done [17:39:46]req_shift_opened done [17:39:46]requested_item shift.open_date is exist - process it [17:39:46]req_shift_open_date [17:39:46]req_shift_open_date done [17:39:46]produce_requested_data done [17:39:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188413,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:39:46]process_action_free close_receipt [17:39:46]json_value_free [17:39:46]json_value_free done [17:39:46]process_json_proto returns [17:39:46]Send response to host [17:39:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188413,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:39:46]free response buf [17:39:46]execute_script done [17:39:46]execute_script returns [17:39:46]free content buf [17:39:46]Sock 7.Close socket [17:39:46]Sock 7.Thread stoped [17:39:50]OFD Sender: No OFD packet to send [17:39:55]OFD Sender: No OFD packet to send [17:40:00]OFD Sender: No OFD packet to send [17:40:05]OFD Sender: No OFD packet to send [17:40:10]OFD Sender: No OFD packet to send [17:40:15]OFD Sender: No OFD packet to send [17:40:19]accept exits with 9 [17:40:19]New connection [17:40:19]New thread 3066756452 created [17:40:19]Thread 3066613092 joined [17:40:19]Waiting for new connection... [17:40:19] Sock 9.Parse request [17:40:19]Sock 9.Check first char [17:40:19]Sock 9.First char is OK [17:40:19]request: POST /json_proto HTTP/1.0 [17:40:19]Method: POST [17:40:19]URL: /json_proto [17:40:19]Method is POST - this is cgi request [17:40:19]url: /json_proto [17:40:19]query_string will be loaded in cgi processing [17:40:19]execute_cgi json_proto POST (null) [17:40:19]execute_cgi path=json_proto method=POST [17:40:19]POST find Content-Length [17:40:19]Host: 172.17.42.131:8080 [17:40:19]Content-Length: 688 [17:40:19]Content-Type: application/json [17:40:19] [17:40:19]POST finish read [17:40:19]Found Content-Length = 688 [17:40:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:19]execute_script... [17:40:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210473", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:40:19]POST & json_proto [17:40:19]process_json_proto [17:40:19]json parsed OK: [17:40:19]protocol is kg_v1.0 [17:40:19]action value=close_receipt [17:40:19]process_action close_receipt [17:40:19]cmd_close_receipt [17:40:19]MH_GetDate [17:40:19]Write to MH i2c: F0 00 00 35 04 28 [17:40:19]Write i2c OK [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: F0 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: F0 09 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: F0 09 00 35 04 00 84 E3 17 67 A0 18 CA 66 FE [17:40:19]GetLastDocTimeStamp 1729618782 [17:40:19]current date 1729618820 [17:40:19]FM_GetShiftState [17:40:19]SAM_PROTO_GetShiftState [17:40:19]wFMCommunicate request_size=4 [17:40:19]MH_SAM_APDU [17:40:19]CAPDU: 80 13 01 00 [17:40:19]Write to MH i2c: E2 08 00 36 04 80 13 01 00 00 00 00 00 B7 [17:40:19]Write i2c OK [17:40:19]MH_I2C_Read... [17:40:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:19]Read from MH i2c: E2 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 0E 00 [17:40:19]MH_I2C_Read... [17:40:19]Read from MH i2c: E2 0E 00 36 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AC [17:40:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:40:19]wFMCommunicate OK [17:40:19]SAM_PROTO_GetShiftState done [17:40:19]FM_GetShiftState done [17:40:19]opened in 1729556094 [17:40:19]opened+sec_in_day 1729642494 [17:40:19]quantity*price = 300076 [17:40:19]sum+1 = 300077 [17:40:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 443 22.10.2024 17:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188414 ФПД: 42564889048704 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188414&fm=42564889048704&tin=02508201610067®Number=0000000000100030&sum=300000 [17:40:20]StoreToDocumentArchive [17:40:20]shift 461 fd 188414 [17:40:20]save to /storage/0461/doc_00188414 [17:40:20]save last doc name /storage/0461/doc_00188414 to /storage/kkm_last_doc_name [17:40:20]save OK [17:40:20]Clear old archive folders... [17:40:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [17:40:20]tlvbuf is 00939640 [17:40:20]SAM_PROTO_ClearQueue [17:40:20]wFMCommunicate request_size=4 [17:40:20]MH_SAM_APDU [17:40:20]CAPDU: 80 09 00 00 [17:40:20]Write to MH i2c: E2 08 00 43 04 80 09 00 00 00 00 00 00 B9 [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:40:20]Read from MH i2c: E2 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 43 04 00 90 00 BB [17:40:20]RAPDU: 90 00 [17:40:20]wFMCommunicate OK [17:40:20]SAM_PROTO_ClearQueue done [17:40:20]KKMCreateOFDPacket [17:40:20]OFDProtocolAddRootSTLVToBuf [17:40:20]FM_MakeSignedData [17:40:20]FM_MakeSignedData [17:40:20]SAM_PROTO_SignData [17:40:20]wFMCommunicate request_size=4 [17:40:20]MH_SAM_APDU [17:40:20]CAPDU: 80 0D 01 02 [17:40:20]Write to MH i2c: E2 08 00 44 04 80 0D 01 02 00 00 00 00 C1 [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:40:20]Read from MH i2c: E2 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 44 04 00 90 00 BC [17:40:20]RAPDU: 90 00 [17:40:20]wFMCommunicate OK [17:40:20]wFMCommunicate request_size=255 [17:40:20]MH_SAM_APDU [17:40:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 84 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DF 02 [17:40:20]Write to MH i2c: E2 02 01 45 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 84 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DF 02 00 00 4E [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:20]Read from MH i2c: E2 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 [17:40:20]MH_I2C_Read... [17:40:20]Read from MH i2c: E2 03 00 45 04 00 90 00 BD [17:40:20]RAPDU: 90 00 [17:40:20]wFMCommunicate OK [17:40:20]wFMCommunicate request_size=16 [17:40:20]MH_SAM_APDU [17:40:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 26 B6 69 17 76 80 [17:40:20]Write to MH i2c: E2 13 00 46 04 80 0D 02 02 0B 00 00 35 04 06 00 26 B6 69 17 76 80 00 00 6B [17:40:20]Write i2c OK [17:40:20]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 03 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 03 00 46 04 00 90 00 BE [17:40:21]RAPDU: 90 00 [17:40:21]wFMCommunicate OK [17:40:21]wFMCommunicate request_size=4 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 0D 03 02 [17:40:21]Write to MH i2c: E2 08 00 47 04 80 0D 03 02 00 00 00 00 C6 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0B 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 0B 00 47 04 00 2D BF 09 30 62 8A B1 A0 90 00 29 [17:40:21]RAPDU: 2D BF 09 30 62 8A B1 A0 90 00 [17:40:21]wFMCommunicate OK [17:40:21]SAM_PROTO_SignData done [17:40:21]FM_MakeSignedData done [17:40:21]CreateOFDProtocolMessage [17:40:21]wFMCommunicate request_size=4 [17:40:21]MH_SAM_APDU [17:40:21]CAPDU: 80 11 00 00 [17:40:21]Write to MH i2c: E2 08 00 48 04 80 11 00 00 00 00 00 00 C6 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:21]Read from MH i2c: E2 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 17 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: E2 17 00 48 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [17:40:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:40:21]wFMCommunicate OK [17:40:21]CreateOFDProtocolMessage done [17:40:21]OFDSenderStorePacket 188414 [17:40:21]StoreOFDPacket docnum=188414 [17:40:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 00 E2 0D 01 4B CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 84 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DF 02 00 35 04 06 00 26 B6 69 17 76 80 2D BF 09 30 62 8A B1 A0 [17:40:21]CheckFolder [17:40:21]dirname=/storage/ofd_packets [17:40:21]CheckFolder done [17:40:21]ProducePacketName [17:40:21]name=ofd_packets/00188414 [17:40:21]NVStorageSaveData ofd_packets/00188414 [17:40:21]File name is /storage/ofd_packets/00188414 [17:40:21]Write 307 bytes [17:40:21]NVStorageSaveData done [17:40:21]OFDSenderStorePacket done [17:40:21]KKMCreateOFDPacket done [17:40:21]NVStorageSaveData kkm_last_timestamp [17:40:21]File name is /storage/kkm_last_timestamp [17:40:21]Write 4 bytes [17:40:21]NVStorageSaveData done [17:40:21]ExternCall_PrintAddStr [17:40:21]wPrintStart [17:40:21]Write to MH i2c: 01 00 00 49 04 4D [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 07 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 07 00 49 04 00 00 00 00 00 FF 0F 62 [17:40:21]RasterBufferAndPrint [17:40:21]line Счет N : (1)210473 [17:40:21]line ИНН: 02508201610067 [17:40:21]line Контрольно-Кассовый Чек [17:40:21]line ПРОДАЖА [17:40:21]line ТРК (МРК, ГНК) : 11 [17:40:21]line Товар: 2710194210 [17:40:21]line D-ENERGY ДТ-К-5 [17:40:21]line 38.870 * 77.20 [17:40:21]line = 3000.76 [17:40:21]line НДС 12% НСП 1% [17:40:21]line > о реализуемом товаре [17:40:21]line ОКРУГЛЕНИЕ: -0.76 [17:40:21]line ИТОГО: 3000.00 [17:40:21]line Внесено: 3000.00 [17:40:21]line СДАЧА: 0.00 [17:40:21]line НСП 1% : 26.55 [17:40:21]line НДС 12% : 318.66 [17:40:21]line Наличными: 3000.00 [17:40:21]line Безнал.: 0.00 [17:40:21]line Место: АЗС № 86 "Партнер Нефть" [17:40:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:40:21]line СНО: Общий режим [17:40:21]line Чек 443 22.10.2024 17:40 [17:40:21]line Смена: 461 ФФД: 1.0 [17:40:21]line ЗНМ: 0300000155 [17:40:21]line РНМ: 0000000000100030 [17:40:21]line Версия ККМ: 001 [17:40:21]line ФМ: 0000000000965340 [17:40:21]line ФД: 188414 [17:40:21]line ФПД: 42564889048704 [17:40:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174020&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188414&fm=42564889048704&tin=02508201610067®Number=0000000000100030&sum=300000 [17:40:21]written 0, free lines is 4095 [17:40:21]OFD Sender: Processing packet 188414 [packets to send 1062, broken 1061] [17:40:21]ProducePacketName [17:40:21]name=ofd_packets/00188414 [17:40:21]OFD Sender: To server: pG, [17:40:21]CommunicateWithHost lk.salyk.kg:30040 [17:40:21]ConnectInit lk.salyk.kg [17:40:21]Connected sock=10 [17:40:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 00 E2 0D 01 4B CA 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BB 01 00 00 F4 03 04 00 84 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DF 02 00 35 04 06 00 26 B6 69 17 76 80 2D BF 09 30 62 8A B1 A0 [17:40:21]Write to MH i2c: 01 00 00 74 04 78 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 07 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: 01 07 00 74 04 00 00 00 00 00 66 0C F1 [17:40:21]RasterBufferAndPrint [17:40:21]line [17:40:21]line [17:40:21]line [17:40:21]line [17:40:21]line [17:40:21]written 0, free lines is 3179 [17:40:21]MH_Cut [17:40:21]Write to MH i2c: D1 01 00 7B 04 01 51 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: D1 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: D1 01 00 [17:40:21]MH_I2C_Read... [17:40:21]Read from MH i2c: D1 01 00 7B 04 00 50 [17:40:21]Write to MH i2c: 01 00 00 7C 04 80 [17:40:21]Write i2c OK [17:40:21]MH_I2C_Read... [17:40:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE D6 47 00 EE BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FE DF 02 00 F4 03 04 00 71 8D 17 67 B6 04 01 00 00 3D 43 FF 59 A7 AD 67 3B [17:40:21]CommunicateWithHost err = 0 [17:40:21]CheckOFDResponse [17:40:21]1017 (14) - 77093643461234 [17:40:21]1041 (16) - 0000000000965340 [17:40:21]1040 (4) - 188414 [17:40:21]1012 (4) - 22.10.2024 11:33 [17:40:21]1206 (1) - 0 [17:40:21]OFD Sender: Remove packet 188414 [17:40:21]ProducePacketName [17:40:21]name=ofd_packets/00188414 [17:40:21]NVStorageDeleteData [17:40:22]OFD Sender: No OFD packet to send [17:40:22]*** Cut start [17:40:22]*** Partial cut [17:40:22]*** CUTSNS_PIN = 1 [17:40:22]*** CUTSNS_PIN = 0 [17:40:23]*** Brake cut motor [17:40:23]Read from MH i2c: 01 [17:40:23]MH_I2C_Read... [17:40:23]*** Stop cut motor [17:40:23]*** Cut end [17:40:23]Read from MH i2c: 01 07 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: 01 07 00 7C 04 00 00 00 00 00 FF 0F 95 [17:40:23]process_action close_receipt done [17:40:23]requested_data is exist [17:40:23]produce_requested_data [17:40:23]requested_item fm.sn is exist - process it [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 11 00 00 [17:40:23]Write to MH i2c: E2 08 00 7D 04 80 11 00 00 00 00 00 00 FB [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 17 00 7D 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [17:40:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:40:23]wFMCommunicate OK [17:40:23]requested_item fd.num is exist - process it [17:40:23]SAM_PROTO_GetFieldsCounters [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 13 00 00 [17:40:23]Write to MH i2c: E2 08 00 7E 04 80 13 00 00 00 00 00 00 FE [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 62 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 62 00 7E 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 E6 [17:40:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FE DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BB 01 00 00 5E 04 04 00 BB 01 00 00 57 04 04 00 BC 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_GetFieldsCounters done [17:40:23]requested_item shift.num is exist - process it [17:40:23]requested_item shift.opened is exist - process it [17:40:23]req_shift_opened [17:40:23]FM_GetShiftState [17:40:23]SAM_PROTO_GetShiftState [17:40:23]wFMCommunicate request_size=4 [17:40:23]MH_SAM_APDU [17:40:23]CAPDU: 80 13 01 00 [17:40:23]Write to MH i2c: E2 08 00 7F 04 80 13 01 00 00 00 00 00 00 [17:40:23]Write i2c OK [17:40:23]MH_I2C_Read... [17:40:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:40:23]Read from MH i2c: E2 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0E 00 [17:40:23]MH_I2C_Read... [17:40:23]Read from MH i2c: E2 0E 00 7F 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F5 [17:40:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:40:23]wFMCommunicate OK [17:40:23]SAM_PROTO_GetShiftState done [17:40:23]FM_GetShiftState done [17:40:23]req_shift_opened done [17:40:23]requested_item shift.open_date is exist - process it [17:40:23]req_shift_open_date [17:40:23]req_shift_open_date done [17:40:23]produce_requested_data done [17:40:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188414,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:40:23]process_action_free close_receipt [17:40:23]json_value_free [17:40:23]json_value_free done [17:40:23]process_json_proto returns [17:40:23]Send response to host [17:40:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188414,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:40:23]free response buf [17:40:23]execute_script done [17:40:23]execute_script returns [17:40:23]free content buf [17:40:23]Sock 9.Close socket [17:40:23]Sock 9.Thread stoped [17:40:27]OFD Sender: No OFD packet to send [17:40:32]OFD Sender: No OFD packet to send [17:40:37]OFD Sender: No OFD packet to send [17:40:42]OFD Sender: No OFD packet to send [17:40:47]OFD Sender: No OFD packet to send [17:40:52]OFD Sender: No OFD packet to send [17:40:57]OFD Sender: No OFD packet to send [17:41:02]OFD Sender: No OFD packet to send [17:41:07]OFD Sender: No OFD packet to send [17:41:12]OFD Sender: No OFD packet to send [17:41:17]OFD Sender: No OFD packet to send [17:41:22]OFD Sender: No OFD packet to send [17:41:27]OFD Sender: No OFD packet to send [17:41:32]OFD Sender: No OFD packet to send [17:41:37]OFD Sender: No OFD packet to send [17:41:42]OFD Sender: No OFD packet to send [17:41:47]OFD Sender: No OFD packet to send [17:41:51]accept exits with 7 [17:41:51]New connection [17:41:51]New thread 3066613092 created [17:41:51]Thread 3066756452 joined [17:41:51]Waiting for new connection... [17:41:51] Sock 7.Parse request [17:41:51]Sock 7.Check first char [17:41:51]Sock 7.First char is OK [17:41:51]request: POST /json_proto HTTP/1.0 [17:41:51]Method: POST [17:41:51]URL: /json_proto [17:41:51]Method is POST - this is cgi request [17:41:51]url: /json_proto [17:41:51]query_string will be loaded in cgi processing [17:41:51]execute_cgi json_proto POST (null) [17:41:51]execute_cgi path=json_proto method=POST [17:41:51]POST find Content-Length [17:41:51]Host: 172.17.42.131:8080 [17:41:51]Content-Length: 677 [17:41:51]Content-Type: application/json [17:41:51] [17:41:51]POST finish read [17:41:51]Found Content-Length = 677 [17:41:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:51]execute_script... [17:41: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)210475", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:41:51]POST & json_proto [17:41:51]process_json_proto [17:41:51]json parsed OK: [17:41:51]protocol is kg_v1.0 [17:41:51]action value=close_receipt [17:41:51]process_action close_receipt [17:41:51]cmd_close_receipt [17:41:51]MH_GetDate [17:41:51]Write to MH i2c: F0 00 00 80 04 73 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: F0 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: F0 09 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: F0 09 00 80 04 00 E0 E3 17 67 A0 18 CA 66 A5 [17:41:51]GetLastDocTimeStamp 1729618820 [17:41:51]current date 1729618912 [17:41:51]FM_GetShiftState [17:41:51]SAM_PROTO_GetShiftState [17:41:51]wFMCommunicate request_size=4 [17:41:51]MH_SAM_APDU [17:41:51]CAPDU: 80 13 01 00 [17:41:51]Write to MH i2c: E2 08 00 81 04 80 13 01 00 00 00 00 00 02 [17:41:51]Write i2c OK [17:41:51]MH_I2C_Read... [17:41:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:51]Read from MH i2c: E2 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 [17:41:51]MH_I2C_Read... [17:41:51]Read from MH i2c: E2 0E 00 81 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F7 [17:41:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:41:51]wFMCommunicate OK [17:41:51]SAM_PROTO_GetShiftState done [17:41:51]FM_GetShiftState done [17:41:51]opened in 1729556094 [17:41:51]opened+sec_in_day 1729642494 [17:41:51]quantity*price = 50041 [17:41:51]sum+1 = 50042 [17:41:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 444 22.10.2024 17:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188415 ФПД: 38831118149879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188415&fm=38831118149879&tin=02508201610067®Number=0000000000100030&sum=50000 [17:41:52]StoreToDocumentArchive [17:41:52]shift 461 fd 188415 [17:41:52]save to /storage/0461/doc_00188415 [17:41:52]save last doc name /storage/0461/doc_00188415 to /storage/kkm_last_doc_name [17:41:52]save OK [17:41:52]Clear old archive folders... [17:41:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:41:52]tlvbuf is 0094A800 [17:41:52]SAM_PROTO_ClearQueue [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 09 00 00 [17:41:52]Write to MH i2c: E2 08 00 8E 04 80 09 00 00 00 00 00 00 04 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 8E 04 00 90 00 06 [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]SAM_PROTO_ClearQueue done [17:41:52]KKMCreateOFDPacket [17:41:52]OFDProtocolAddRootSTLVToBuf [17:41:52]FM_MakeSignedData [17:41:52]FM_MakeSignedData [17:41:52]SAM_PROTO_SignData [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 01 02 [17:41:52]Write to MH i2c: E2 08 00 8F 04 80 0D 01 02 00 00 00 00 0C [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 8F 04 00 90 00 07 [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]wFMCommunicate request_size=255 [17:41:52]MH_SAM_APDU [17:41: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 E0 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DF 02 00 35 04 06 00 23 [17:41:52]Write to MH i2c: E2 02 01 90 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 E0 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DF 02 00 35 04 06 00 23 00 00 4E [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 90 04 00 90 00 08 [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]wFMCommunicate request_size=10 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 02 02 05 51 13 00 E8 F7 [17:41:52]Write to MH i2c: E2 0D 00 91 04 80 0D 02 02 05 00 51 13 00 E8 F7 00 00 5C [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:41:52]OFD Sender: No OFD packet to send [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 03 00 91 04 00 90 00 09 [17:41:52]RAPDU: 90 00 [17:41:52]wFMCommunicate OK [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 0D 03 02 [17:41:52]Write to MH i2c: E2 08 00 92 04 80 0D 03 02 00 00 00 00 11 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 0B 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 0B 00 92 04 00 96 13 3E F2 FB 55 B9 65 90 00 59 [17:41:52]RAPDU: 96 13 3E F2 FB 55 B9 65 90 00 [17:41:52]wFMCommunicate OK [17:41:52]SAM_PROTO_SignData done [17:41:52]FM_MakeSignedData done [17:41:52]CreateOFDProtocolMessage [17:41:52]wFMCommunicate request_size=4 [17:41:52]MH_SAM_APDU [17:41:52]CAPDU: 80 11 00 00 [17:41:52]Write to MH i2c: E2 08 00 93 04 80 11 00 00 00 00 00 00 11 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:52]Read from MH i2c: E2 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 17 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: E2 17 00 93 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [17:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:41:52]wFMCommunicate OK [17:41:52]CreateOFDProtocolMessage done [17:41:52]OFDSenderStorePacket 188415 [17:41:52]StoreOFDPacket docnum=188415 [17:41:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 50 34 07 01 E0 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 E0 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DF 02 00 35 04 06 00 23 51 13 00 E8 F7 96 13 3E F2 FB 55 B9 65 [17:41:52]CheckFolder [17:41:52]dirname=/storage/ofd_packets [17:41:52]CheckFolder done [17:41:52]ProducePacketName [17:41:52]name=ofd_packets/00188415 [17:41:52]NVStorageSaveData ofd_packets/00188415 [17:41:52]File name is /storage/ofd_packets/00188415 [17:41:52]Write 301 bytes [17:41:52]NVStorageSaveData done [17:41:52]OFDSenderStorePacket done [17:41:52]KKMCreateOFDPacket done [17:41:52]NVStorageSaveData kkm_last_timestamp [17:41:52]File name is /storage/kkm_last_timestamp [17:41:52]Write 4 bytes [17:41:52]NVStorageSaveData done [17:41:52]ExternCall_PrintAddStr [17:41:52]wPrintStart [17:41:52]Write to MH i2c: 01 00 00 94 04 98 [17:41:52]Write i2c OK [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: 01 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: 01 07 00 [17:41:52]MH_I2C_Read... [17:41:52]Read from MH i2c: 01 07 00 94 04 00 00 00 00 00 FF 0F AD [17:41:52]RasterBufferAndPrint [17:41:52]line Счет N : (1)210475 [17:41:52]line ИНН: 02508201610067 [17:41:52]line Контрольно-Кассовый Чек [17:41:52]line ПРОДАЖА [17:41:52]line ТРК (МРК, ГНК) : 32 [17:41:52]line Товар: 2710124130 [17:41:52]line Аи-92-К-3 [17:41:52]line 7.480 * 66.90 [17:41:52]line = 500.41 [17:41:52]line НДС 12% НСП 1% [17:41:52]line > о реализуемом товаре [17:41:52]line ОКРУГЛЕНИЕ: -0.41 [17:41:52]line ИТОГО: 500.00 [17:41:52]line Внесено: 500.00 [17:41:52]line СДАЧА: 0.00 [17:41:52]line НСП 1% : 4.43 [17:41:52]line НДС 12% : 53.14 [17:41:52]line Наличными: 500.00 [17:41:52]line Безнал.: 0.00 [17:41:52]line Место: АЗС № 86 "Партнер Нефть" [17:41:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:41:52]line СНО: Общий режим [17:41:52]line Чек 444 22.10.2024 17:41 [17:41:52]line Смена: 461 ФФД: 1.0 [17:41:52]line ЗНМ: 0300000155 [17:41:52]line РНМ: 0000000000100030 [17:41:52]line Версия ККМ: 001 [17:41:52]line ФМ: 0000000000965340 [17:41:52]line ФД: 188415 [17:41:52]line ФПД: 38831118149879 [17:41:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188415&fm=38831118149879&tin=02508201610067®Number=0000000000100030&sum=50000 [17:41:52]written 0, free lines is 4095 [17:41:53]OFD Sender: Processing packet 188415 [packets to send 1062, broken 1061] [17:41:53]ProducePacketName [17:41:53]name=ofd_packets/00188415 [17:41:53]OFD Sender: To server: pG, [17:41:53]CommunicateWithHost lk.salyk.kg:30040 [17:41:53]ConnectInit lk.salyk.kg [17:41:53]Connected sock=9 [17:41:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 50 34 07 01 E0 E7 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BC 01 00 00 F4 03 04 00 E0 E3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DF 02 00 35 04 06 00 23 51 13 00 E8 F7 96 13 3E F2 FB 55 B9 65 [17:41:53]Write to MH i2c: 01 00 00 BF 04 C3 [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: 01 07 00 BF 04 00 00 00 00 00 60 0C 36 [17:41:53]RasterBufferAndPrint [17:41:53]line [17:41:53]line [17:41:53]line [17:41:53]line [17:41:53]line [17:41:53]written 0, free lines is 3172 [17:41:53]MH_Cut [17:41:53]Write to MH i2c: D1 01 00 C6 04 01 9C [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: D1 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: D1 01 00 [17:41:53]MH_I2C_Read... [17:41:53]Read from MH i2c: D1 01 00 C6 04 00 9B [17:41:53]Write to MH i2c: 01 00 00 C7 04 CB [17:41:53]Write i2c OK [17:41:53]MH_I2C_Read... [17:41:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 32 FF 47 00 87 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 FF DF 02 00 F4 03 04 00 CC 8D 17 67 B6 04 01 00 00 47 DF 2D 03 F5 2E 5D 20 [17:41:53]CommunicateWithHost err = 0 [17:41:53]CheckOFDResponse [17:41:53]1017 (14) - 77093643461234 [17:41:53]1041 (16) - 0000000000965340 [17:41:53]1040 (4) - 188415 [17:41:53]1012 (4) - 22.10.2024 11:34 [17:41:53]1206 (1) - 0 [17:41:53]OFD Sender: Remove packet 188415 [17:41:53]ProducePacketName [17:41:53]name=ofd_packets/00188415 [17:41:53]NVStorageDeleteData [17:41:54]OFD Sender: No OFD packet to send [17:41:54]*** Cut start [17:41:54]*** Partial cut [17:41:54]*** CUTSNS_PIN = 1 [17:41:54]*** CUTSNS_PIN = 0 [17:41:54]*** Brake cut motor [17:41:55]Read from MH i2c: 01 [17:41:55]MH_I2C_Read... [17:41:55]*** Stop cut motor [17:41:55]*** Cut end [17:41:55]Read from MH i2c: 01 07 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: 01 07 00 C7 04 00 00 00 00 00 FF 0F E0 [17:41:55]process_action close_receipt done [17:41:55]requested_data is exist [17:41:55]produce_requested_data [17:41:55]requested_item fm.sn is exist - process it [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 11 00 00 [17:41:55]Write to MH i2c: E2 08 00 C8 04 80 11 00 00 00 00 00 00 46 [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 17 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 17 00 C8 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 94 [17:41:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:41:55]wFMCommunicate OK [17:41:55]requested_item fd.num is exist - process it [17:41:55]SAM_PROTO_GetFieldsCounters [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 13 00 00 [17:41:55]Write to MH i2c: E2 08 00 C9 04 80 13 00 00 00 00 00 00 49 [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 62 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 62 00 C9 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 35 [17:41:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 FF DF 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BC 01 00 00 5E 04 04 00 BC 01 00 00 57 04 04 00 BD 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:41:55]wFMCommunicate OK [17:41:55]SAM_PROTO_GetFieldsCounters done [17:41:55]requested_item shift.num is exist - process it [17:41:55]requested_item shift.opened is exist - process it [17:41:55]req_shift_opened [17:41:55]FM_GetShiftState [17:41:55]SAM_PROTO_GetShiftState [17:41:55]wFMCommunicate request_size=4 [17:41:55]MH_SAM_APDU [17:41:55]CAPDU: 80 13 01 00 [17:41:55]Write to MH i2c: E2 08 00 CA 04 80 13 01 00 00 00 00 00 4B [17:41:55]Write i2c OK [17:41:55]MH_I2C_Read... [17:41:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:41:55]Read from MH i2c: E2 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 0E 00 [17:41:55]MH_I2C_Read... [17:41:55]Read from MH i2c: E2 0E 00 CA 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 40 [17:41:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:41:55]wFMCommunicate OK [17:41:55]SAM_PROTO_GetShiftState done [17:41:55]FM_GetShiftState done [17:41:55]req_shift_opened done [17:41:55]requested_item shift.open_date is exist - process it [17:41:55]req_shift_open_date [17:41:55]req_shift_open_date done [17:41:55]produce_requested_data done [17:41:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188415,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:41:55]process_action_free close_receipt [17:41:55]json_value_free [17:41:55]json_value_free done [17:41:55]process_json_proto returns [17:41:55]Send response to host [17:41:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188415,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:41:55]free response buf [17:41:55]execute_script done [17:41:55]execute_script returns [17:41:55]free content buf [17:41:55]Sock 7.Close socket [17:41:55]Sock 7.Thread stoped [17:41:59]OFD Sender: No OFD packet to send [17:42:04]OFD Sender: No OFD packet to send [17:42:09]OFD Sender: No OFD packet to send [17:42:14]OFD Sender: No OFD packet to send [17:42:19]OFD Sender: No OFD packet to send [17:42:24]OFD Sender: No OFD packet to send [17:42:29]OFD Sender: No OFD packet to send [17:42:34]OFD Sender: No OFD packet to send [17:42:39]OFD Sender: No OFD packet to send [17:42:44]OFD Sender: No OFD packet to send [17:42:49]OFD Sender: No OFD packet to send [17:42:54]OFD Sender: No OFD packet to send [17:42:59]OFD Sender: No OFD packet to send [17:43:04]OFD Sender: No OFD packet to send [17:43:09]OFD Sender: No OFD packet to send [17:43:14]OFD Sender: No OFD packet to send [17:43:19]OFD Sender: No OFD packet to send [17:43:21]accept exits with 10 [17:43:21]New connection [17:43:21]New thread 3066756452 created [17:43:21]Thread 3066613092 joined [17:43:21]Waiting for new connection... [17:43:21] Sock 10.Parse request [17:43:21]Sock 10.Check first char [17:43:21]Sock 10.First char is OK [17:43:21]request: POST /json_proto HTTP/1.0 [17:43:21]Method: POST [17:43:21]URL: /json_proto [17:43:21]Method is POST - this is cgi request [17:43:21]url: /json_proto [17:43:21]query_string will be loaded in cgi processing [17:43:21]execute_cgi json_proto POST (null) [17:43:21]execute_cgi path=json_proto method=POST [17:43:21]POST find Content-Length [17:43:21]Host: 172.17.42.131:8080 [17:43:21]Content-Length: 677 [17:43:21]Content-Type: application/json [17:43:21] [17:43:21]POST finish read [17:43:21]Found Content-Length = 677 [17:43:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:21]execute_script... [17: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)210476", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.890, "sum" : 260.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 260.00, "total" : 260.00, "payments": [ { "type": 0, "sum" : 260.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:43:21]POST & json_proto [17:43:21]process_json_proto [17:43:21]json parsed OK: [17:43:21]protocol is kg_v1.0 [17:43:21]action value=close_receipt [17:43:21]process_action close_receipt [17:43:21]cmd_close_receipt [17:43:21]MH_GetDate [17:43:21]Write to MH i2c: F0 00 00 CB 04 BE [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: F0 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: F0 09 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: F0 09 00 CB 04 00 3A E4 17 67 A0 18 CA 66 4B [17:43:21]GetLastDocTimeStamp 1729618912 [17:43:21]current date 1729619002 [17:43:21]FM_GetShiftState [17:43:21]SAM_PROTO_GetShiftState [17:43:21]wFMCommunicate request_size=4 [17:43:21]MH_SAM_APDU [17:43:21]CAPDU: 80 13 01 00 [17:43:21]Write to MH i2c: E2 08 00 CC 04 80 13 01 00 00 00 00 00 4D [17:43:21]Write i2c OK [17:43:21]MH_I2C_Read... [17:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:21]Read from MH i2c: E2 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 0E 00 [17:43:21]MH_I2C_Read... [17:43:21]Read from MH i2c: E2 0E 00 CC 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 42 [17:43:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:43:21]wFMCommunicate OK [17:43:21]SAM_PROTO_GetShiftState done [17:43:21]FM_GetShiftState done [17:43:21]opened in 1729556094 [17:43:21]opened+sec_in_day 1729642494 [17:43:21]quantity*price = 26024 [17:43:21]sum+1 = 26025 [17:43:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 260.00 Внесено: 260.00 СДАЧА: 0.00 НСП 1% : 2.30 НДС 12% : 27.64 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 445 22.10.2024 17:43 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188416 ФПД: 206278692525195 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174322&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188416&fm=206278692525195&tin=02508201610067®Number=0000000000100030&sum=26000 [17:43:22]StoreToDocumentArchive [17:43:22]shift 461 fd 188416 [17:43:22]save to /storage/0461/doc_00188416 [17:43:22]save last doc name /storage/0461/doc_00188416 to /storage/kkm_last_doc_name [17:43:22]save OK [17:43:22]Clear old archive folders... [17:43:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:43:22]tlvbuf is 00925670 [17:43:22]SAM_PROTO_ClearQueue [17:43:22]wFMCommunicate request_size=4 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 09 00 00 [17:43:22]Write to MH i2c: E2 08 00 D9 04 80 09 00 00 00 00 00 00 4F [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 D9 04 00 90 00 51 [17:43:22]RAPDU: 90 00 [17:43:22]wFMCommunicate OK [17:43:22]SAM_PROTO_ClearQueue done [17:43:22]KKMCreateOFDPacket [17:43:22]OFDProtocolAddRootSTLVToBuf [17:43:22]FM_MakeSignedData [17:43:22]FM_MakeSignedData [17:43:22]SAM_PROTO_SignData [17:43:22]wFMCommunicate request_size=4 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 0D 01 02 [17:43:22]Write to MH i2c: E2 08 00 DA 04 80 0D 01 02 00 00 00 00 57 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 DA 04 00 90 00 52 [17:43:22]RAPDU: 90 00 [17:43:22]wFMCommunicate OK [17:43:22]wFMCommunicate request_size=255 [17:43:22]MH_SAM_APDU [17:43: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 33 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 3A E4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E0 02 00 35 04 06 00 BB [17:43:22]Write to MH i2c: E2 02 01 DB 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 33 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 3A E4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E0 02 00 35 04 06 00 BB 00 00 3A [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 DB 04 00 90 00 53 [17:43:22]RAPDU: 90 00 [17:43:22]wFMCommunicate OK [17:43:22]wFMCommunicate request_size=10 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 0D 02 02 05 9C 00 31 54 8B [17:43:22]Write to MH i2c: E2 0D 00 DC 04 80 0D 02 02 05 00 9C 00 31 54 8B 00 00 10 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 03 00 DC 04 00 90 00 54 [17:43:22]RAPDU: 90 00 [17:43:22]wFMCommunicate OK [17:43:22]wFMCommunicate request_size=4 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 0D 03 02 [17:43:22]Write to MH i2c: E2 08 00 DD 04 80 0D 03 02 00 00 00 00 5C [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 0B 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 0B 00 DD 04 00 A6 18 20 BC 5F C8 2C 36 90 00 80 [17:43:22]RAPDU: A6 18 20 BC 5F C8 2C 36 90 00 [17:43:22]wFMCommunicate OK [17:43:22]SAM_PROTO_SignData done [17:43:22]FM_MakeSignedData done [17:43:22]CreateOFDProtocolMessage [17:43:22]wFMCommunicate request_size=4 [17:43:22]MH_SAM_APDU [17:43:22]CAPDU: 80 11 00 00 [17:43:22]Write to MH i2c: E2 08 00 DE 04 80 11 00 00 00 00 00 00 5C [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:22]Read from MH i2c: E2 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 17 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: E2 17 00 DE 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [17:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:43:22]wFMCommunicate OK [17:43:22]CreateOFDProtocolMessage done [17:43:22]OFDSenderStorePacket 188416 [17:43:22]StoreOFDPacket docnum=188416 [17:43:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 79 07 01 7D E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 3A E4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E0 02 00 35 04 06 00 BB 9C 00 31 54 8B A6 18 20 BC 5F C8 2C 36 [17:43:22]CheckFolder [17:43:22]dirname=/storage/ofd_packets [17:43:22]CheckFolder done [17:43:22]ProducePacketName [17:43:22]name=ofd_packets/00188416 [17:43:22]NVStorageSaveData ofd_packets/00188416 [17:43:22]File name is /storage/ofd_packets/00188416 [17:43:22]Write 301 bytes [17:43:22]NVStorageSaveData done [17:43:22]OFDSenderStorePacket done [17:43:22]KKMCreateOFDPacket done [17:43:22]NVStorageSaveData kkm_last_timestamp [17:43:22]File name is /storage/kkm_last_timestamp [17:43:22]Write 4 bytes [17:43:22]NVStorageSaveData done [17:43:22]ExternCall_PrintAddStr [17:43:22]wPrintStart [17:43:22]Write to MH i2c: 01 00 00 DF 04 E3 [17:43:22]Write i2c OK [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: 01 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: 01 07 00 [17:43:22]MH_I2C_Read... [17:43:22]Read from MH i2c: 01 07 00 DF 04 00 00 00 00 00 FF 0F F8 [17:43:22]RasterBufferAndPrint [17:43:22]line Счет N : (1)210476 [17:43:22]line ИНН: 02508201610067 [17:43:22]line Контрольно-Кассовый Чек [17:43:22]line ПРОДАЖА [17:43:22]line ТРК (МРК, ГНК) : 22 [17:43:22]line Товар: 2710124130 [17:43:22]line Аи-92-К-3 [17:43:22]line 3.890 * 66.90 [17:43:22]line = 260.24 [17:43:22]line НДС 12% НСП 1% [17:43:22]line > о реализуемом товаре [17:43:22]line ОКРУГЛЕНИЕ: -0.24 [17:43:22]line ИТОГО: 260.00 [17:43:22]line Внесено: 260.00 [17:43:22]line СДАЧА: 0.00 [17:43:22]line НСП 1% : 2.30 [17:43:22]line НДС 12% : 27.64 [17:43:22]line Наличными: 260.00 [17:43:22]line Безнал.: 0.00 [17:43:22]line Место: АЗС № 86 "Партнер Нефть" [17:43:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:43:22]line СНО: Общий режим [17:43:22]line Чек 445 22.10.2024 17:43 [17:43:22]line Смена: 461 ФФД: 1.0 [17:43:22]line ЗНМ: 0300000155 [17:43:22]line РНМ: 0000000000100030 [17:43:22]line Версия ККМ: 001 [17:43:22]line ФМ: 0000000000965340 [17:43:22]line ФД: 188416 [17:43:22]line ФПД: 206278692525195 [17:43:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T174322&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188416&fm=206278692525195&tin=02508201610067®Number=0000000000100030&sum=26000 [17:43:22]written 0, free lines is 4095 [17:43:23]OFD Sender: Processing packet 188416 [packets to send 1062, broken 1061] [17:43:23]ProducePacketName [17:43:23]name=ofd_packets/00188416 [17:43:23]OFD Sender: To server: pG, [17:43:23]CommunicateWithHost lk.salyk.kg:30040 [17:43:23]ConnectInit lk.salyk.kg [17:43:23]Connected sock=9 [17:43:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 35 79 07 01 7D E1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 0F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 65 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 0A 00 00 00 00 07 04 06 00 90 65 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BD 01 00 00 F4 03 04 00 3A E4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E0 02 00 35 04 06 00 BB 9C 00 31 54 8B A6 18 20 BC 5F C8 2C 36 [17:43:23]Write to MH i2c: 01 00 00 0A 05 0F [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 07 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: 01 07 00 0A 05 00 00 00 00 00 65 0C 87 [17:43:23]RasterBufferAndPrint [17:43:23]line [17:43:23]line [17:43:23]line [17:43:23]line [17:43:23]line [17:43:23]written 0, free lines is 3177 [17:43:23]MH_Cut [17:43:23]Write to MH i2c: D1 01 00 11 05 01 E8 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: D1 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: D1 01 00 [17:43:23]MH_I2C_Read... [17:43:23]Read from MH i2c: D1 01 00 11 05 00 E7 [17:43:23]Write to MH i2c: 01 00 00 12 05 17 [17:43:23]Write i2c OK [17:43:23]MH_I2C_Read... [17:43:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 24 02 47 00 C9 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 00 E0 02 00 F4 03 04 00 27 8E 17 67 B6 04 01 00 00 FC 12 B1 BE C9 82 AA 98 [17:43:23]CommunicateWithHost err = 0 [17:43:23]CheckOFDResponse [17:43:23]1017 (14) - 77093643461234 [17:43:23]1041 (16) - 0000000000965340 [17:43:23]1040 (4) - 188416 [17:43:23]1012 (4) - 22.10.2024 11:36 [17:43:23]1206 (1) - 0 [17:43:23]OFD Sender: Remove packet 188416 [17:43:23]ProducePacketName [17:43:23]name=ofd_packets/00188416 [17:43:23]NVStorageDeleteData [17:43:24]OFD Sender: No OFD packet to send [17:43:24]*** Cut start [17:43:24]*** Partial cut [17:43:24]*** CUTSNS_PIN = 1 [17:43:24]*** CUTSNS_PIN = 0 [17:43:24]*** Brake cut motor [17:43:25]Read from MH i2c: 01 [17:43:25]MH_I2C_Read... [17:43:25]*** Stop cut motor [17:43:25]*** Cut end [17:43:25]Read from MH i2c: 01 07 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: 01 07 00 12 05 00 00 00 00 00 FF 0F 2C [17:43:25]process_action close_receipt done [17:43:25]requested_data is exist [17:43:25]produce_requested_data [17:43:25]requested_item fm.sn is exist - process it [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 11 00 00 [17:43:25]Write to MH i2c: E2 08 00 13 05 80 11 00 00 00 00 00 00 92 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 17 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 17 00 13 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E0 [17:43:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:43:25]wFMCommunicate OK [17:43:25]requested_item fd.num is exist - process it [17:43:25]SAM_PROTO_GetFieldsCounters [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 13 00 00 [17:43:25]Write to MH i2c: E2 08 00 14 05 80 13 00 00 00 00 00 00 95 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 62 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 62 00 14 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 86 [17:43:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 00 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BD 01 00 00 5E 04 04 00 BD 01 00 00 57 04 04 00 BE 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:43:25]wFMCommunicate OK [17:43:25]SAM_PROTO_GetFieldsCounters done [17:43:25]requested_item shift.num is exist - process it [17:43:25]requested_item shift.opened is exist - process it [17:43:25]req_shift_opened [17:43:25]FM_GetShiftState [17:43:25]SAM_PROTO_GetShiftState [17:43:25]wFMCommunicate request_size=4 [17:43:25]MH_SAM_APDU [17:43:25]CAPDU: 80 13 01 00 [17:43:25]Write to MH i2c: E2 08 00 15 05 80 13 01 00 00 00 00 00 97 [17:43:25]Write i2c OK [17:43:25]MH_I2C_Read... [17:43:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:43:25]Read from MH i2c: E2 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 0E 00 [17:43:25]MH_I2C_Read... [17:43:25]Read from MH i2c: E2 0E 00 15 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8C [17:43:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:43:25]wFMCommunicate OK [17:43:25]SAM_PROTO_GetShiftState done [17:43:25]FM_GetShiftState done [17:43:25]req_shift_opened done [17:43:25]requested_item shift.open_date is exist - process it [17:43:25]req_shift_open_date [17:43:25]req_shift_open_date done [17:43:25]produce_requested_data done [17:43:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188416,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:43:25]process_action_free close_receipt [17:43:25]json_value_free [17:43:25]json_value_free done [17:43:25]process_json_proto returns [17:43:25]Send response to host [17:43:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188416,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:43:25]free response buf [17:43:25]execute_script done [17:43:25]execute_script returns [17:43:25]free content buf [17:43:25]Sock 10.Close socket [17:43:25]Sock 10.Thread stoped [17:43:29]OFD Sender: No OFD packet to send [17:43:34]OFD Sender: No OFD packet to send [17:43:39]OFD Sender: No OFD packet to send [17:43:44]OFD Sender: No OFD packet to send [17:43:49]OFD Sender: No OFD packet to send [17:43:54]OFD Sender: No OFD packet to send [17:43:59]OFD Sender: No OFD packet to send [17:44:04]OFD Sender: No OFD packet to send [17:44:09]OFD Sender: No OFD packet to send [17:44:14]OFD Sender: No OFD packet to send [17:44:19]OFD Sender: No OFD packet to send [17:44:24]OFD Sender: No OFD packet to send [17:44:29]OFD Sender: No OFD packet to send [17:44:34]OFD Sender: No OFD packet to send [17:44:39]OFD Sender: No OFD packet to send [17:44:44]OFD Sender: No OFD packet to send [17:44:49]OFD Sender: No OFD packet to send [17:44:54]OFD Sender: No OFD packet to send [17:44:59]OFD Sender: No OFD packet to send [17:45:04]OFD Sender: No OFD packet to send [17:45:09]OFD Sender: No OFD packet to send [17:45:14]OFD Sender: No OFD packet to send [17:45:19]OFD Sender: No OFD packet to send [17:45:24]OFD Sender: No OFD packet to send [17:45:29]OFD Sender: No OFD packet to send [17:45:34]OFD Sender: No OFD packet to send [17:45:39]OFD Sender: No OFD packet to send [17:45:44]OFD Sender: No OFD packet to send [17:45:49]OFD Sender: No OFD packet to send [17:45:54]OFD Sender: No OFD packet to send [17:45:59]OFD Sender: No OFD packet to send [17:46:04]OFD Sender: No OFD packet to send [17:46:10]OFD Sender: No OFD packet to send [17:46:15]OFD Sender: No OFD packet to send [17:46:20]OFD Sender: No OFD packet to send [17:46:25]OFD Sender: No OFD packet to send [17:46:30]OFD Sender: No OFD packet to send [17:46:35]OFD Sender: No OFD packet to send [17:46:40]OFD Sender: No OFD packet to send [17:46:45]OFD Sender: No OFD packet to send [17:46:50]OFD Sender: No OFD packet to send [17:46:55]OFD Sender: No OFD packet to send [17:47:00]OFD Sender: No OFD packet to send [17:47:05]OFD Sender: No OFD packet to send [17:47:10]OFD Sender: No OFD packet to send [17:47:15]OFD Sender: No OFD packet to send [17:47:20]OFD Sender: No OFD packet to send [17:47:25]OFD Sender: No OFD packet to send [17:47:30]OFD Sender: No OFD packet to send [17:47:35]OFD Sender: No OFD packet to send [17:47:40]OFD Sender: No OFD packet to send [17:47:45]OFD Sender: No OFD packet to send [17:47:50]OFD Sender: No OFD packet to send [17:47:55]OFD Sender: No OFD packet to send [17:48:00]OFD Sender: No OFD packet to send [17:48:05]OFD Sender: No OFD packet to send [17:48:10]OFD Sender: No OFD packet to send [17:48:15]OFD Sender: No OFD packet to send [17:48:20]OFD Sender: No OFD packet to send [17:48:25]OFD Sender: No OFD packet to send [17:48:30]OFD Sender: No OFD packet to send [17:48:35]OFD Sender: No OFD packet to send [17:48:40]OFD Sender: No OFD packet to send [17:48:45]OFD Sender: No OFD packet to send [17:48:50]OFD Sender: No OFD packet to send [17:48:55]OFD Sender: No OFD packet to send [17:49:00]OFD Sender: No OFD packet to send [17:49:05]OFD Sender: No OFD packet to send [17:49:10]OFD Sender: No OFD packet to send [17:49:15]OFD Sender: No OFD packet to send [17:49:20]OFD Sender: No OFD packet to send [17:49:25]OFD Sender: No OFD packet to send [17:49:30]OFD Sender: No OFD packet to send [17:49:35]OFD Sender: No OFD packet to send [17:49:40]OFD Sender: No OFD packet to send [17:49:45]OFD Sender: No OFD packet to send [17:49:50]OFD Sender: No OFD packet to send [17:49:56]OFD Sender: No OFD packet to send [17:50:01]OFD Sender: No OFD packet to send [17:50:06]OFD Sender: No OFD packet to send [17:50:11]OFD Sender: No OFD packet to send [17:50:16]OFD Sender: No OFD packet to send [17:50:21]OFD Sender: No OFD packet to send [17:50:26]OFD Sender: No OFD packet to send [17:50:31]OFD Sender: No OFD packet to send [17:50:36]OFD Sender: No OFD packet to send [17:50:41]OFD Sender: No OFD packet to send [17:50:46]OFD Sender: No OFD packet to send [17:50:51]OFD Sender: No OFD packet to send [17:50:56]OFD Sender: No OFD packet to send [17:51:01]OFD Sender: No OFD packet to send [17:51:01]accept exits with 7 [17:51:01]New connection [17:51:01]New thread 3066613092 created [17:51:01]Thread 3066756452 joined [17:51:01]Waiting for new connection... [17:51:01] Sock 7.Parse request [17:51:01]Sock 7.Check first char [17:51:01]Sock 7.First char is OK [17:51:01]request: POST /json_proto HTTP/1.0 [17:51:01]Method: POST [17:51:01]URL: /json_proto [17:51:01]Method is POST - this is cgi request [17:51:01]url: /json_proto [17:51:01]query_string will be loaded in cgi processing [17:51:01]execute_cgi json_proto POST (null) [17:51:01]execute_cgi path=json_proto method=POST [17:51:01]POST find Content-Length [17:51:01]Host: 172.17.42.131:8080 [17:51:01]Content-Length: 677 [17:51:01]Content-Type: application/json [17:51:01] [17:51:01]POST finish read [17:51:01]Found Content-Length = 677 [17:51:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:01]execute_script... [17:51: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)210478", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 4.490, "sum" : 300.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 300.00, "total" : 300.00, "payments": [ { "type": 0, "sum" : 300.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:51:01]POST & json_proto [17:51:01]process_json_proto [17:51:01]json parsed OK: [17:51:01]protocol is kg_v1.0 [17:51:01]action value=close_receipt [17:51:01]process_action close_receipt [17:51:01]cmd_close_receipt [17:51:01]MH_GetDate [17:51:01]Write to MH i2c: F0 00 00 16 05 0A [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: F0 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: F0 09 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: F0 09 00 16 05 00 06 E6 17 67 A0 18 CA 66 65 [17:51:01]GetLastDocTimeStamp 1729619002 [17:51:01]current date 1729619462 [17:51:01]FM_GetShiftState [17:51:01]SAM_PROTO_GetShiftState [17:51:01]wFMCommunicate request_size=4 [17:51:01]MH_SAM_APDU [17:51:01]CAPDU: 80 13 01 00 [17:51:01]Write to MH i2c: E2 08 00 17 05 80 13 01 00 00 00 00 00 99 [17:51:01]Write i2c OK [17:51:01]MH_I2C_Read... [17:51:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:01]Read from MH i2c: E2 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 0E 00 [17:51:01]MH_I2C_Read... [17:51:01]Read from MH i2c: E2 0E 00 17 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8E [17:51:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:51:01]wFMCommunicate OK [17:51:01]SAM_PROTO_GetShiftState done [17:51:01]FM_GetShiftState done [17:51:01]opened in 1729556094 [17:51:01]opened+sec_in_day 1729642494 [17:51:01]quantity*price = 30038 [17:51:01]sum+1 = 30039 [17:51:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 300.00 Внесено: 300.00 СДАЧА: 0.00 НСП 1% : 2.66 НДС 12% : 31.90 Наличными: 300.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 446 22.10.2024 17:51 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188417 ФПД: 162898355072035 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175102&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188417&fm=162898355072035&tin=02508201610067®Number=0000000000100030&sum=30000 [17:51:02]StoreToDocumentArchive [17:51:02]shift 461 fd 188417 [17:51:02]save to /storage/0461/doc_00188417 [17:51:02]save last doc name /storage/0461/doc_00188417 to /storage/kkm_last_doc_name [17:51:02]save OK [17:51:02]Clear old archive folders... [17:51:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:51:02]tlvbuf is 00939AC0 [17:51:02]SAM_PROTO_ClearQueue [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 09 00 00 [17:51:02]Write to MH i2c: E2 08 00 24 05 80 09 00 00 00 00 00 00 9B [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 03 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 03 00 24 05 00 90 00 9D [17:51:02]RAPDU: 90 00 [17:51:02]wFMCommunicate OK [17:51:02]SAM_PROTO_ClearQueue done [17:51:02]KKMCreateOFDPacket [17:51:02]OFDProtocolAddRootSTLVToBuf [17:51:02]FM_MakeSignedData [17:51:02]FM_MakeSignedData [17:51:02]SAM_PROTO_SignData [17:51:02]wFMCommunicate request_size=4 [17:51:02]MH_SAM_APDU [17:51:02]CAPDU: 80 0D 01 02 [17:51:02]Write to MH i2c: E2 08 00 25 05 80 0D 01 02 00 00 00 00 A3 [17:51:02]Write i2c OK [17:51:02]MH_I2C_Read... [17:51:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:02]Read from MH i2c: E2 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 03 00 [17:51:02]MH_I2C_Read... [17:51:02]Read from MH i2c: E2 03 00 25 05 00 90 00 9E [17:51:02]RAPDU: 90 00 [17:51:02]wFMCommunicate OK [17:51:02]wFMCommunicate request_size=255 [17:51:02]MH_SAM_APDU [17:51: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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 06 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E0 02 00 35 04 06 00 94 [17:51:02]Write to MH i2c: E2 02 01 26 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 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 06 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E0 02 00 35 04 06 00 94 00 00 78 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 26 05 00 90 00 9F [17:51:03]RAPDU: 90 00 [17:51:03]wFMCommunicate OK [17:51:03]wFMCommunicate request_size=10 [17:51:03]MH_SAM_APDU [17:51:03]CAPDU: 80 0D 02 02 05 27 BA 96 AC 23 [17:51:03]Write to MH i2c: E2 0D 00 27 05 80 0D 02 02 05 00 27 BA 96 AC 23 00 00 F6 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 03 00 27 05 00 90 00 A0 [17:51:03]RAPDU: 90 00 [17:51:03]wFMCommunicate OK [17:51:03]wFMCommunicate request_size=4 [17:51:03]MH_SAM_APDU [17:51:03]CAPDU: 80 0D 03 02 [17:51:03]Write to MH i2c: E2 08 00 28 05 80 0D 03 02 00 00 00 00 A8 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 0B 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 0B 00 28 05 00 D5 83 58 63 EA C5 5C 05 90 00 CC [17:51:03]RAPDU: D5 83 58 63 EA C5 5C 05 90 00 [17:51:03]wFMCommunicate OK [17:51:03]SAM_PROTO_SignData done [17:51:03]FM_MakeSignedData done [17:51:03]CreateOFDProtocolMessage [17:51:03]wFMCommunicate request_size=4 [17:51:03]MH_SAM_APDU [17:51:03]CAPDU: 80 11 00 00 [17:51:03]Write to MH i2c: E2 08 00 29 05 80 11 00 00 00 00 00 00 A8 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:03]Read from MH i2c: E2 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 17 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: E2 17 00 29 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [17:51:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:03]wFMCommunicate OK [17:51:03]CreateOFDProtocolMessage done [17:51:03]OFDSenderStorePacket 188417 [17:51:03]StoreOFDPacket docnum=188417 [17:51:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 47 07 01 C6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 06 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E0 02 00 35 04 06 00 94 27 BA 96 AC 23 D5 83 58 63 EA C5 5C 05 [17:51:03]CheckFolder [17:51:03]dirname=/storage/ofd_packets [17:51:03]CheckFolder done [17:51:03]ProducePacketName [17:51:03]name=ofd_packets/00188417 [17:51:03]NVStorageSaveData ofd_packets/00188417 [17:51:03]File name is /storage/ofd_packets/00188417 [17:51:03]Write 301 bytes [17:51:03]NVStorageSaveData done [17:51:03]OFDSenderStorePacket done [17:51:03]KKMCreateOFDPacket done [17:51:03]NVStorageSaveData kkm_last_timestamp [17:51:03]File name is /storage/kkm_last_timestamp [17:51:03]Write 4 bytes [17:51:03]NVStorageSaveData done [17:51:03]ExternCall_PrintAddStr [17:51:03]wPrintStart [17:51:03]Write to MH i2c: 01 00 00 2A 05 2F [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 2A 05 00 00 00 00 00 FF 0F 44 [17:51:03]RasterBufferAndPrint [17:51:03]line Счет N : (1)210478 [17:51:03]line ИНН: 02508201610067 [17:51:03]line Контрольно-Кассовый Чек [17:51:03]line ПРОДАЖА [17:51:03]line ТРК (МРК, ГНК) : 22 [17:51:03]line Товар: 2710124130 [17:51:03]line Аи-92-К-3 [17:51:03]line 4.490 * 66.90 [17:51:03]line = 300.38 [17:51:03]line НДС 12% НСП 1% [17:51:03]line > о реализуемом товаре [17:51:03]line ОКРУГЛЕНИЕ: -0.38 [17:51:03]line ИТОГО: 300.00 [17:51:03]line Внесено: 300.00 [17:51:03]line СДАЧА: 0.00 [17:51:03]line НСП 1% : 2.66 [17:51:03]line НДС 12% : 31.90 [17:51:03]line Наличными: 300.00 [17:51:03]line Безнал.: 0.00 [17:51:03]line Место: АЗС № 86 "Партнер Нефть" [17:51:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:51:03]line СНО: Общий режим [17:51:03]line Чек 446 22.10.2024 17:51 [17:51:03]line Смена: 461 ФФД: 1.0 [17:51:03]line ЗНМ: 0300000155 [17:51:03]line РНМ: 0000000000100030 [17:51:03]line Версия ККМ: 001 [17:51:03]line ФМ: 0000000000965340 [17:51:03]line ФД: 188417 [17:51:03]line ФПД: 162898355072035 [17:51:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175102&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188417&fm=162898355072035&tin=02508201610067®Number=0000000000100030&sum=30000 [17:51:03]written 0, free lines is 4095 [17:51:03]OFD Sender: Processing packet 188417 [packets to send 1062, broken 1061] [17:51:03]ProducePacketName [17:51:03]name=ofd_packets/00188417 [17:51:03]OFD Sender: To server: pG, [17:51:03]CommunicateWithHost lk.salyk.kg:30040 [17:51:03]ConnectInit lk.salyk.kg [17:51:03]Connected sock=10 [17:51:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 47 07 01 C6 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 8A 11 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 56 75 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 75 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 0A 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 76 0C 00 00 00 00 07 04 06 00 30 75 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 BE 01 00 00 F4 03 04 00 06 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E0 02 00 35 04 06 00 94 27 BA 96 AC 23 D5 83 58 63 EA C5 5C 05 [17:51:03]Write to MH i2c: 01 00 00 55 05 5A [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: 01 07 00 55 05 00 00 00 00 00 6B 0C D8 [17:51:03]RasterBufferAndPrint [17:51:03]line [17:51:03]line [17:51:03]line [17:51:03]line [17:51:03]line [17:51:03]written 0, free lines is 3183 [17:51:03]MH_Cut [17:51:03]Write to MH i2c: D1 01 00 5C 05 01 33 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: D1 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: D1 01 00 [17:51:03]MH_I2C_Read... [17:51:03]Read from MH i2c: D1 01 00 5C 05 00 32 [17:51:03]Write to MH i2c: 01 00 00 5D 05 62 [17:51:03]Write i2c OK [17:51:03]MH_I2C_Read... [17:51:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 16 87 47 00 4F 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 01 E0 02 00 F4 03 04 00 F3 8F 17 67 B6 04 01 00 00 FC 45 87 5B CD 66 C4 A8 [17:51:04]CommunicateWithHost err = 0 [17:51:04]CheckOFDResponse [17:51:04]1017 (14) - 77093643461234 [17:51:04]1041 (16) - 0000000000965340 [17:51:04]1040 (4) - 188417 [17:51:04]1012 (4) - 22.10.2024 11:43 [17:51:04]1206 (1) - 0 [17:51:04]OFD Sender: Remove packet 188417 [17:51:04]ProducePacketName [17:51:04]name=ofd_packets/00188417 [17:51:04]NVStorageDeleteData [17:51:04]OFD Sender: No OFD packet to send [17:51:05]*** Cut start [17:51:05]*** Partial cut [17:51:05]*** CUTSNS_PIN = 1 [17:51:05]*** CUTSNS_PIN = 0 [17:51:05]*** Brake cut motor [17:51:05]Read from MH i2c: 01 [17:51:05]MH_I2C_Read... [17:51:05]*** Stop cut motor [17:51:05]*** Cut end [17:51:05]Read from MH i2c: 01 07 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: 01 07 00 5D 05 00 00 00 00 00 FF 0F 77 [17:51:05]process_action close_receipt done [17:51:05]requested_data is exist [17:51:05]produce_requested_data [17:51:05]requested_item fm.sn is exist - process it [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 11 00 00 [17:51:05]Write to MH i2c: E2 08 00 5E 05 80 11 00 00 00 00 00 00 DD [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 17 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 17 00 5E 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [17:51:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:05]wFMCommunicate OK [17:51:05]requested_item fd.num is exist - process it [17:51:05]SAM_PROTO_GetFieldsCounters [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 13 00 00 [17:51:05]Write to MH i2c: E2 08 00 5F 05 80 13 00 00 00 00 00 00 E0 [17:51:05]Write i2c OK [17:51:05]MH_I2C_Read... [17:51:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:05]Read from MH i2c: E2 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 62 00 [17:51:05]MH_I2C_Read... [17:51:05]Read from MH i2c: E2 62 00 5F 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 D5 [17:51:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 01 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BE 01 00 00 5E 04 04 00 BE 01 00 00 57 04 04 00 BF 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:05]wFMCommunicate OK [17:51:05]SAM_PROTO_GetFieldsCounters done [17:51:05]requested_item shift.num is exist - process it [17:51:05]requested_item shift.opened is exist - process it [17:51:05]req_shift_opened [17:51:05]FM_GetShiftState [17:51:05]SAM_PROTO_GetShiftState [17:51:05]wFMCommunicate request_size=4 [17:51:05]MH_SAM_APDU [17:51:05]CAPDU: 80 13 01 00 [17:51:05]Write to MH i2c: E2 08 00 60 05 80 13 01 00 00 00 00 00 E2 [17:51:06]Write i2c OK [17:51:06]MH_I2C_Read... [17:51:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:06]Read from MH i2c: E2 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0E 00 [17:51:06]MH_I2C_Read... [17:51:06]Read from MH i2c: E2 0E 00 60 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D7 [17:51:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:51:06]wFMCommunicate OK [17:51:06]SAM_PROTO_GetShiftState done [17:51:06]FM_GetShiftState done [17:51:06]req_shift_opened done [17:51:06]requested_item shift.open_date is exist - process it [17:51:06]req_shift_open_date [17:51:06]req_shift_open_date done [17:51:06]produce_requested_data done [17:51:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188417,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:51:06]process_action_free close_receipt [17:51:06]json_value_free [17:51:06]json_value_free done [17:51:06]process_json_proto returns [17:51:06]Send response to host [17:51:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188417,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:51:06]free response buf [17:51:06]execute_script done [17:51:06]execute_script returns [17:51:06]free content buf [17:51:06]Sock 7.Close socket [17:51:06]Sock 7.Thread stoped [17:51:09]OFD Sender: No OFD packet to send [17:51:14]OFD Sender: No OFD packet to send [17:51:19]OFD Sender: No OFD packet to send [17:51:24]OFD Sender: No OFD packet to send [17:51:29]OFD Sender: No OFD packet to send [17:51:34]OFD Sender: No OFD packet to send [17:51:39]OFD Sender: No OFD packet to send [17:51:44]OFD Sender: No OFD packet to send [17:51:49]OFD Sender: No OFD packet to send [17:51:50]accept exits with 9 [17:51:50]New connection [17:51:50]New thread 3066756452 created [17:51:50]Thread 3066613092 joined [17:51:50]Waiting for new connection... [17:51:50] Sock 9.Parse request [17:51:50]Sock 9.Check first char [17:51:50]Sock 9.First char is OK [17:51:50]request: POST /json_proto HTTP/1.0 [17:51:50]Method: POST [17:51:50]URL: /json_proto [17:51:50]Method is POST - this is cgi request [17:51:50]url: /json_proto [17:51:50]query_string will be loaded in cgi processing [17:51:50]execute_cgi json_proto POST (null) [17:51:50]execute_cgi path=json_proto method=POST [17:51:50]POST find Content-Length [17:51:50]Host: 172.17.42.131:8080 [17:51:50]Content-Length: 679 [17:51:50]Content-Type: application/json [17:51:50] [17:51:50]POST finish read [17:51:50]Found Content-Length = 679 [17:51:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [17:51:50]execute_script... [17:51: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)210477", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [17:51:50]POST & json_proto [17:51:50]process_json_proto [17:51:50]json parsed OK: [17:51:50]protocol is kg_v1.0 [17:51:50]action value=close_receipt [17:51:50]process_action close_receipt [17:51:50]cmd_close_receipt [17:51:50]MH_GetDate [17:51:50]Write to MH i2c: F0 00 00 61 05 55 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 09 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: F0 09 00 61 05 00 37 E6 17 67 A0 18 CA 66 E1 [17:51:50]GetLastDocTimeStamp 1729619462 [17:51:50]current date 1729619511 [17:51:50]FM_GetShiftState [17:51:50]SAM_PROTO_GetShiftState [17:51:50]wFMCommunicate request_size=4 [17:51:50]MH_SAM_APDU [17:51:50]CAPDU: 80 13 01 00 [17:51:50]Write to MH i2c: E2 08 00 62 05 80 13 01 00 00 00 00 00 E4 [17:51:50]Write i2c OK [17:51:50]MH_I2C_Read... [17:51:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:50]Read from MH i2c: E2 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0E 00 [17:51:50]MH_I2C_Read... [17:51:50]Read from MH i2c: E2 0E 00 62 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D9 [17:51:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:51:50]wFMCommunicate OK [17:51:50]SAM_PROTO_GetShiftState done [17:51:50]FM_GetShiftState done [17:51:50]opened in 1729556094 [17:51:50]opened+sec_in_day 1729642494 [17:51:50]quantity*price = 200025 [17:51:50]sum+1 = 200026 [17:51:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 447 22.10.2024 17:51 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188418 ФПД: 112539252841743 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188418&fm=112539252841743&tin=02508201610067®Number=0000000000100030&sum=200000 [17:51:51]StoreToDocumentArchive [17:51:51]shift 461 fd 188418 [17:51:51]save to /storage/0461/doc_00188418 [17:51:51]save last doc name /storage/0461/doc_00188418 to /storage/kkm_last_doc_name [17:51:51]save OK [17:51:51]Clear old archive folders... [17:51:51]ProcessDocumentItem done err = 0, tmpTLVsize=248 [17:51:51]tlvbuf is 00921AB0 [17:51:51]SAM_PROTO_ClearQueue [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 09 00 00 [17:51:51]Write to MH i2c: E2 08 00 6F 05 80 09 00 00 00 00 00 00 E6 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 6F 05 00 90 00 E8 [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_ClearQueue done [17:51:51]KKMCreateOFDPacket [17:51:51]OFDProtocolAddRootSTLVToBuf [17:51:51]FM_MakeSignedData [17:51:51]FM_MakeSignedData [17:51:51]SAM_PROTO_SignData [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 01 02 [17:51:51]Write to MH i2c: E2 08 00 70 05 80 0D 01 02 00 00 00 00 EE [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 70 05 00 90 00 E9 [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=255 [17:51:51]MH_SAM_APDU [17:51: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 32 31 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 BF 01 00 00 F4 03 04 00 37 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E0 02 00 35 04 06 00 66 5A 96 30 [17:51:51]Write to MH i2c: E2 02 01 71 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 32 31 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 BF 01 00 00 F4 03 04 00 37 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E0 02 00 35 04 06 00 66 5A 96 30 00 00 DA [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 71 05 00 90 00 EA [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=7 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 02 02 02 5D 0F [17:51:51]Write to MH i2c: E2 0A 00 72 05 80 0D 02 02 02 00 5D 0F 00 00 61 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 03 00 72 05 00 90 00 EB [17:51:51]RAPDU: 90 00 [17:51:51]wFMCommunicate OK [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 0D 03 02 [17:51:51]Write to MH i2c: E2 08 00 73 05 80 0D 03 02 00 00 00 00 F3 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 0B 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 0B 00 73 05 00 2A 99 9C 83 D4 78 02 AB 90 00 CF [17:51:51]RAPDU: 2A 99 9C 83 D4 78 02 AB 90 00 [17:51:51]wFMCommunicate OK [17:51:51]SAM_PROTO_SignData done [17:51:51]FM_MakeSignedData done [17:51:51]CreateOFDProtocolMessage [17:51:51]wFMCommunicate request_size=4 [17:51:51]MH_SAM_APDU [17:51:51]CAPDU: 80 11 00 00 [17:51:51]Write to MH i2c: E2 08 00 74 05 80 11 00 00 00 00 00 00 F3 [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:51]Read from MH i2c: E2 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 17 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: E2 17 00 74 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [17:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:51]wFMCommunicate OK [17:51:51]CreateOFDProtocolMessage done [17:51:51]OFDSenderStorePacket 188418 [17:51:51]StoreOFDPacket docnum=188418 [17:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 14 2A 04 01 27 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BF 01 00 00 F4 03 04 00 37 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E0 02 00 35 04 06 00 66 5A 96 30 5D 0F 2A 99 9C 83 D4 78 02 AB [17:51:51]CheckFolder [17:51:51]dirname=/storage/ofd_packets [17:51:51]CheckFolder done [17:51:51]ProducePacketName [17:51:51]name=ofd_packets/00188418 [17:51:51]NVStorageSaveData ofd_packets/00188418 [17:51:51]File name is /storage/ofd_packets/00188418 [17:51:51]Write 298 bytes [17:51:51]NVStorageSaveData done [17:51:51]OFDSenderStorePacket done [17:51:51]KKMCreateOFDPacket done [17:51:51]NVStorageSaveData kkm_last_timestamp [17:51:51]File name is /storage/kkm_last_timestamp [17:51:51]Write 4 bytes [17:51:51]NVStorageSaveData done [17:51:51]ExternCall_PrintAddStr [17:51:51]wPrintStart [17:51:51]Write to MH i2c: 01 00 00 75 05 7A [17:51:51]Write i2c OK [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 [17:51:51]MH_I2C_Read... [17:51:51]Read from MH i2c: 01 07 00 75 05 00 00 00 00 00 FF 0F 8F [17:51:51]RasterBufferAndPrint [17:51:51]line Счет N : (1)210477 [17:51:51]line ИНН: 02508201610067 [17:51:51]line Контрольно-Кассовый Чек [17:51:51]line ПРОДАЖА [17:51:51]line ТРК (МРК, ГНК) : 51 [17:51:51]line Товар: 2710194210 [17:51:51]line ДТ-К-5 [17:51:51]line 26.250 * 76.20 [17:51:51]line = 2000.25 [17:51:51]line НДС 12% НСП 1% [17:51:51]line > о реализуемом товаре [17:51:51]line ОКРУГЛЕНИЕ: -0.25 [17:51:51]line ИТОГО: 2000.00 [17:51:51]line Внесено: 2000.00 [17:51:51]line СДАЧА: 0.00 [17:51:51]line НСП 1% : 17.70 [17:51:51]line НДС 12% : 212.42 [17:51:51]line Наличными: 2000.00 [17:51:51]line Безнал.: 0.00 [17:51:51]line Место: АЗС № 86 "Партнер Нефть" [17:51:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:51:51]line СНО: Общий режим [17:51:51]line Чек 447 22.10.2024 17:51 [17:51:51]line Смена: 461 ФФД: 1.0 [17:51:51]line ЗНМ: 0300000155 [17:51:51]line РНМ: 0000000000100030 [17:51:51]line Версия ККМ: 001 [17:51:51]line ФМ: 0000000000965340 [17:51:51]line ФД: 188418 [17:51:51]line ФПД: 112539252841743 [17:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188418&fm=112539252841743&tin=02508201610067®Number=0000000000100030&sum=200000 [17:51:51]written 0, free lines is 4095 [17:51:52]OFD Sender: Processing packet 188418 [packets to send 1062, broken 1061] [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00188418 [17:51:52]OFD Sender: To server: pG, [17:51:52]CommunicateWithHost lk.salyk.kg:30040 [17:51:52]ConnectInit lk.salyk.kg [17:51:52]Connected sock=10 [17:51:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 14 2A 04 01 27 9C 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 BF 01 00 00 F4 03 04 00 37 E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 02 E0 02 00 35 04 06 00 66 5A 96 30 5D 0F 2A 99 9C 83 D4 78 02 AB [17:51:52]Write to MH i2c: 01 00 00 A0 05 A5 [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: 01 07 00 A0 05 00 00 00 00 00 5F 0C 17 [17:51:52]RasterBufferAndPrint [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]line [17:51:52]written 0, free lines is 3170 [17:51:52]MH_Cut [17:51:52]Write to MH i2c: D1 01 00 A7 05 01 7E [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 01 00 [17:51:52]MH_I2C_Read... [17:51:52]Read from MH i2c: D1 01 00 A7 05 00 7D [17:51:52]Write to MH i2c: 01 00 00 A8 05 AD [17:51:52]Write i2c OK [17:51:52]MH_I2C_Read... [17:51:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 AD 47 00 F2 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 39 36 35 33 34 30 10 04 04 00 02 E0 02 00 F4 03 04 00 23 90 17 67 B6 04 01 00 00 1C CA 7A EB 4A 99 81 18 [17:51:52]CommunicateWithHost err = 0 [17:51:52]CheckOFDResponse [17:51:52]1017 (14) - 77093643461234 [17:51:52]1041 (16) - 0000000000965340 [17:51:52]1040 (4) - 188418 [17:51:52]1012 (4) - 22.10.2024 11:44 [17:51:52]1206 (1) - 0 [17:51:52]OFD Sender: Remove packet 188418 [17:51:52]ProducePacketName [17:51:52]name=ofd_packets/00188418 [17:51:52]NVStorageDeleteData [17:51:53]OFD Sender: No OFD packet to send [17:51:53]*** Cut start [17:51:53]*** Partial cut [17:51:53]*** CUTSNS_PIN = 1 [17:51:53]*** CUTSNS_PIN = 0 [17:51:53]*** Brake cut motor [17:51:54]Read from MH i2c: 01 [17:51:54]MH_I2C_Read... [17:51:54]*** Stop cut motor [17:51:54]*** Cut end [17:51:54]Read from MH i2c: 01 07 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: 01 07 00 A8 05 00 00 00 00 00 FF 0F C2 [17:51:54]process_action close_receipt done [17:51:54]requested_data is exist [17:51:54]produce_requested_data [17:51:54]requested_item fm.sn is exist - process it [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 11 00 00 [17:51:54]Write to MH i2c: E2 08 00 A9 05 80 11 00 00 00 00 00 00 28 [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 17 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 17 00 A9 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 76 [17:51:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:51:54]wFMCommunicate OK [17:51:54]requested_item fd.num is exist - process it [17:51:54]SAM_PROTO_GetFieldsCounters [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 13 00 00 [17:51:54]Write to MH i2c: E2 08 00 AA 05 80 13 00 00 00 00 00 00 2B [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 62 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 62 00 AA 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 24 [17:51:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 02 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 BF 01 00 00 5E 04 04 00 BF 01 00 00 57 04 04 00 C0 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:51:54]wFMCommunicate OK [17:51:54]SAM_PROTO_GetFieldsCounters done [17:51:54]requested_item shift.num is exist - process it [17:51:54]requested_item shift.opened is exist - process it [17:51:54]req_shift_opened [17:51:54]FM_GetShiftState [17:51:54]SAM_PROTO_GetShiftState [17:51:54]wFMCommunicate request_size=4 [17:51:54]MH_SAM_APDU [17:51:54]CAPDU: 80 13 01 00 [17:51:54]Write to MH i2c: E2 08 00 AB 05 80 13 01 00 00 00 00 00 2D [17:51:54]Write i2c OK [17:51:54]MH_I2C_Read... [17:51:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:51:54]Read from MH i2c: E2 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 0E 00 [17:51:54]MH_I2C_Read... [17:51:54]Read from MH i2c: E2 0E 00 AB 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 22 [17:51:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:51:54]wFMCommunicate OK [17:51:54]SAM_PROTO_GetShiftState done [17:51:54]FM_GetShiftState done [17:51:54]req_shift_opened done [17:51:54]requested_item shift.open_date is exist - process it [17:51:54]req_shift_open_date [17:51:54]req_shift_open_date done [17:51:54]produce_requested_data done [17:51:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188418,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:51:54]process_action_free close_receipt [17:51:54]json_value_free [17:51:54]json_value_free done [17:51:54]process_json_proto returns [17:51:54]Send response to host [17:51:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188418,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:51:54]free response buf [17:51:54]execute_script done [17:51:54]execute_script returns [17:51:54]free content buf [17:51:54]Sock 9.Close socket [17:51:54]Sock 9.Thread stoped [17:51:58]OFD Sender: No OFD packet to send [17:52:03]OFD Sender: No OFD packet to send [17:52:08]OFD Sender: No OFD packet to send [17:52:13]OFD Sender: No OFD packet to send [17:52:18]OFD Sender: No OFD packet to send [17:52:23]OFD Sender: No OFD packet to send [17:52:28]OFD Sender: No OFD packet to send [17:52:33]OFD Sender: No OFD packet to send [17:52:38]OFD Sender: No OFD packet to send [17:52:43]OFD Sender: No OFD packet to send [17:52:48]OFD Sender: No OFD packet to send [17:52:53]OFD Sender: No OFD packet to send [17:52:58]OFD Sender: No OFD packet to send [17:53:03]OFD Sender: No OFD packet to send [17:53:08]OFD Sender: No OFD packet to send [17:53:13]OFD Sender: No OFD packet to send [17:53:17]accept exits with 7 [17:53:17]New connection [17:53:17]New thread 3066613092 created [17:53:17]Thread 3066756452 joined [17:53:17]Waiting for new connection... [17:53:17] Sock 7.Parse request [17:53:17]Sock 7.Check first char [17:53:17]Sock 7.First char is OK [17:53:17]request: POST /json_proto HTTP/1.0 [17:53:17]Method: POST [17:53:17]URL: /json_proto [17:53:17]Method is POST - this is cgi request [17:53:17]url: /json_proto [17:53:17]query_string will be loaded in cgi processing [17:53:17]execute_cgi json_proto POST (null) [17:53:17]execute_cgi path=json_proto method=POST [17:53:17]POST find Content-Length [17:53:17]Host: 172.17.42.131:8080 [17:53:17]Content-Length: 682 [17:53:17]Content-Type: application/json [17:53:17] [17:53:17]POST finish read [17:53:17]Found Content-Length = 682 [17:53:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:17]execute_script... [17:53: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)210479", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:53:17]POST & json_proto [17:53:17]process_json_proto [17:53:17]json parsed OK: [17:53:17]protocol is kg_v1.0 [17:53:17]action value=close_receipt [17:53:17]process_action close_receipt [17:53:17]cmd_close_receipt [17:53:17]MH_GetDate [17:53:17]Write to MH i2c: F0 00 00 AC 05 A0 [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 09 00 [17:53:17]MH_I2C_Read... [17:53:17]Read from MH i2c: F0 09 00 AC 05 00 8E E6 17 67 A0 18 CA 66 83 [17:53:17]GetLastDocTimeStamp 1729619511 [17:53:17]current date 1729619598 [17:53:17]FM_GetShiftState [17:53:17]SAM_PROTO_GetShiftState [17:53:17]wFMCommunicate request_size=4 [17:53:17]MH_SAM_APDU [17:53:17]CAPDU: 80 13 01 00 [17:53:17]Write to MH i2c: E2 08 00 AD 05 80 13 01 00 00 00 00 00 2F [17:53:17]Write i2c OK [17:53:17]MH_I2C_Read... [17:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:18]Read from MH i2c: E2 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 0E 00 [17:53:18]MH_I2C_Read... [17:53:18]Read from MH i2c: E2 0E 00 AD 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [17:53:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:53:18]wFMCommunicate OK [17:53:18]SAM_PROTO_GetShiftState done [17:53:18]FM_GetShiftState done [17:53:18]opened in 1729556094 [17:53:18]opened+sec_in_day 1729642494 [17:53:18]quantity*price = 100015 [17:53:18]sum+1 = 100017 [17:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 448 22.10.2024 17:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188419 ФПД: 61730648254987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188419&fm=61730648254987&tin=02508201610067®Number=0000000000100030&sum=100000 [17:53:19]StoreToDocumentArchive [17:53:19]shift 461 fd 188419 [17:53:19]save to /storage/0461/doc_00188419 [17:53:19]save last doc name /storage/0461/doc_00188419 to /storage/kkm_last_doc_name [17:53:19]save OK [17:53:19]Clear old archive folders... [17:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:53:19]tlvbuf is 00939AE0 [17:53:19]SAM_PROTO_ClearQueue [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 09 00 00 [17:53:19]Write to MH i2c: E2 08 00 BA 05 80 09 00 00 00 00 00 00 31 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 BA 05 00 90 00 33 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]SAM_PROTO_ClearQueue done [17:53:19]KKMCreateOFDPacket [17:53:19]OFDProtocolAddRootSTLVToBuf [17:53:19]FM_MakeSignedData [17:53:19]FM_MakeSignedData [17:53:19]SAM_PROTO_SignData [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 01 02 [17:53:19]Write to MH i2c: E2 08 00 BB 05 80 0D 01 02 00 00 00 00 39 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 BB 05 00 90 00 34 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=255 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 8F E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E0 02 00 35 04 06 00 38 [17:53:19]Write to MH i2c: E2 02 01 BC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 8F E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E0 02 00 35 04 06 00 38 00 00 45 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 BC 05 00 90 00 35 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=10 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 02 02 05 24 C9 5C 6A 0B [17:53:19]Write to MH i2c: E2 0D 00 BD 05 80 0D 02 02 05 00 24 C9 5C 6A 0B 00 00 04 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 03 00 BD 05 00 90 00 36 [17:53:19]RAPDU: 90 00 [17:53:19]wFMCommunicate OK [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 0D 03 02 [17:53:19]Write to MH i2c: E2 08 00 BE 05 80 0D 03 02 00 00 00 00 3E [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0B 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 0B 00 BE 05 00 8F 46 C4 54 B6 07 2E 99 90 00 B0 [17:53:19]RAPDU: 8F 46 C4 54 B6 07 2E 99 90 00 [17:53:19]wFMCommunicate OK [17:53:19]SAM_PROTO_SignData done [17:53:19]FM_MakeSignedData done [17:53:19]CreateOFDProtocolMessage [17:53:19]wFMCommunicate request_size=4 [17:53:19]MH_SAM_APDU [17:53:19]CAPDU: 80 11 00 00 [17:53:19]Write to MH i2c: E2 08 00 BF 05 80 11 00 00 00 00 00 00 3E [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:19]Read from MH i2c: E2 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 17 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: E2 17 00 BF 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [17:53:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:53:19]wFMCommunicate OK [17:53:19]CreateOFDProtocolMessage done [17:53:19]OFDSenderStorePacket 188419 [17:53:19]StoreOFDPacket docnum=188419 [17:53:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 70 07 01 96 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 8F E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E0 02 00 35 04 06 00 38 24 C9 5C 6A 0B 8F 46 C4 54 B6 07 2E 99 [17:53:19]CheckFolder [17:53:19]dirname=/storage/ofd_packets [17:53:19]CheckFolder done [17:53:19]ProducePacketName [17:53:19]name=ofd_packets/00188419 [17:53:19]NVStorageSaveData ofd_packets/00188419 [17:53:19]File name is /storage/ofd_packets/00188419 [17:53:19]Write 301 bytes [17:53:19]NVStorageSaveData done [17:53:19]OFDSenderStorePacket done [17:53:19]KKMCreateOFDPacket done [17:53:19]NVStorageSaveData kkm_last_timestamp [17:53:19]File name is /storage/kkm_last_timestamp [17:53:19]Write 4 bytes [17:53:19]NVStorageSaveData done [17:53:19]ExternCall_PrintAddStr [17:53:19]wPrintStart [17:53:19]Write to MH i2c: 01 00 00 C0 05 C5 [17:53:19]Write i2c OK [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 [17:53:19]MH_I2C_Read... [17:53:19]Read from MH i2c: 01 07 00 C0 05 00 00 00 00 00 FF 0F DA [17:53:19]RasterBufferAndPrint [17:53:19]line Счет N : (1)210479 [17:53:19]line ИНН: 02508201610067 [17:53:19]line Контрольно-Кассовый Чек [17:53:19]line ПРОДАЖА [17:53:19]line ТРК (МРК, ГНК) : 32 [17:53:19]line Товар: 2710124130 [17:53:19]line Аи-92-К-3 [17:53:19]line 14.950 * 66.90 [17:53:19]line = 1000.16 [17:53:19]line НДС 12% НСП 1% [17:53:19]line > о реализуемом товаре [17:53:19]line ОКРУГЛЕНИЕ: -0.16 [17:53:19]line ИТОГО: 1000.00 [17:53:19]line Внесено: 1000.00 [17:53:19]line СДАЧА: 0.00 [17:53:19]line НСП 1% : 8.85 [17:53:19]line НДС 12% : 106.21 [17:53:19]line Наличными: 1000.00 [17:53:19]line Безнал.: 0.00 [17:53:19]line Место: АЗС № 86 "Партнер Нефть" [17:53:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [17:53:19]line СНО: Общий режим [17:53:19]line Чек 448 22.10.2024 17:53 [17:53:19]line Смена: 461 ФФД: 1.0 [17:53:19]line ЗНМ: 0300000155 [17:53:19]line РНМ: 0000000000100030 [17:53:19]line Версия ККМ: 001 [17:53:19]line ФМ: 0000000000965340 [17:53:19]line ФД: 188419 [17:53:19]line ФПД: 61730648254987 [17:53:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T175319&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188419&fm=61730648254987&tin=02508201610067®Number=0000000000100030&sum=100000 [17:53:19]written 0, free lines is 4095 [17:53:19]OFD Sender: Processing packet 188419 [packets to send 1062, broken 1061] [17:53:19]ProducePacketName [17:53:19]name=ofd_packets/00188419 [17:53:19]OFD Sender: To server: pG, [17:53:19]CommunicateWithHost lk.salyk.kg:30040 [17:53:19]ConnectInit lk.salyk.kg [17:53:20]Connected sock=9 [17:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE 70 07 01 96 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C0 01 00 00 F4 03 04 00 8F E6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 03 E0 02 00 35 04 06 00 38 24 C9 5C 6A 0B 8F 46 C4 54 B6 07 2E 99 [17:53:20]Write to MH i2c: 01 00 00 EB 05 F0 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 07 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: 01 07 00 EB 05 00 00 00 00 00 5F 0C 62 [17:53:20]RasterBufferAndPrint [17:53:20]line [17:53:20]line [17:53:20]line [17:53:20]line [17:53:20]line [17:53:20]written 0, free lines is 3170 [17:53:20]MH_Cut [17:53:20]Write to MH i2c: D1 01 00 F2 05 01 C9 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: D1 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: D1 01 00 [17:53:20]MH_I2C_Read... [17:53:20]Read from MH i2c: D1 01 00 F2 05 00 C8 [17:53:20]Write to MH i2c: 01 00 00 F3 05 F8 [17:53:20]Write i2c OK [17:53:20]MH_I2C_Read... [17:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 66 62 47 00 E1 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 39 36 35 33 34 30 10 04 04 00 03 E0 02 00 F4 03 04 00 7B 90 17 67 B6 04 01 00 00 87 63 F8 C2 97 8C CB 0B [17:53:20]CommunicateWithHost err = 0 [17:53:20]CheckOFDResponse [17:53:20]1017 (14) - 77093643461234 [17:53:20]1041 (16) - 0000000000965340 [17:53:20]1040 (4) - 188419 [17:53:20]1012 (4) - 22.10.2024 11:46 [17:53:20]1206 (1) - 0 [17:53:20]OFD Sender: Remove packet 188419 [17:53:20]ProducePacketName [17:53:20]name=ofd_packets/00188419 [17:53:20]NVStorageDeleteData [17:53:20]OFD Sender: No OFD packet to send [17:53:21]*** Cut start [17:53:21]*** Partial cut [17:53:21]*** CUTSNS_PIN = 1 [17:53:21]*** CUTSNS_PIN = 0 [17:53:21]*** Brake cut motor [17:53:22]Read from MH i2c: 01 [17:53:22]MH_I2C_Read... [17:53:22]*** Stop cut motor [17:53:22]*** Cut end [17:53:22]Read from MH i2c: 01 07 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: 01 07 00 F3 05 00 00 00 00 00 FF 0F 0D [17:53:22]process_action close_receipt done [17:53:22]requested_data is exist [17:53:22]produce_requested_data [17:53:22]requested_item fm.sn is exist - process it [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 11 00 00 [17:53:22]Write to MH i2c: E2 08 00 F4 05 80 11 00 00 00 00 00 00 73 [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 17 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 17 00 F4 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [17:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [17:53:22]wFMCommunicate OK [17:53:22]requested_item fd.num is exist - process it [17:53:22]SAM_PROTO_GetFieldsCounters [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 13 00 00 [17:53:22]Write to MH i2c: E2 08 00 F5 05 80 13 00 00 00 00 00 00 76 [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 62 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 62 00 F5 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 73 [17:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 03 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C0 01 00 00 5E 04 04 00 C0 01 00 00 57 04 04 00 C1 01 00 00 19 04 04 00 00 00 00 00 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_GetFieldsCounters done [17:53:22]requested_item shift.num is exist - process it [17:53:22]requested_item shift.opened is exist - process it [17:53:22]req_shift_opened [17:53:22]FM_GetShiftState [17:53:22]SAM_PROTO_GetShiftState [17:53:22]wFMCommunicate request_size=4 [17:53:22]MH_SAM_APDU [17:53:22]CAPDU: 80 13 01 00 [17:53:22]Write to MH i2c: E2 08 00 F6 05 80 13 01 00 00 00 00 00 78 [17:53:22]Write i2c OK [17:53:22]MH_I2C_Read... [17:53:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:53:22]Read from MH i2c: E2 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 0E 00 [17:53:22]MH_I2C_Read... [17:53:22]Read from MH i2c: E2 0E 00 F6 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6D [17:53:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [17:53:22]wFMCommunicate OK [17:53:22]SAM_PROTO_GetShiftState done [17:53:22]FM_GetShiftState done [17:53:22]req_shift_opened done [17:53:22]requested_item shift.open_date is exist - process it [17:53:22]req_shift_open_date [17:53:22]req_shift_open_date done [17:53:22]produce_requested_data done [17:53:22]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188419,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [17:53:22]process_action_free close_receipt [17:53:22]json_value_free [17:53:22]json_value_free done [17:53:22]process_json_proto returns [17:53:22]Send response to host [17:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188419,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [17:53:22]free response buf [17:53:22]execute_script done [17:53:22]execute_script returns [17:53:22]free content buf [17:53:22]Sock 7.Close socket [17:53:22]Sock 7.Thread stoped [17:53:25]OFD Sender: No OFD packet to send [17:53:30]OFD Sender: No OFD packet to send [17:53:35]OFD Sender: No OFD packet to send [17:53:40]OFD Sender: No OFD packet to send [17:53:46]OFD Sender: No OFD packet to send [17:53:51]OFD Sender: No OFD packet to send [17:53:56]OFD Sender: No OFD packet to send [17:54:01]OFD Sender: No OFD packet to send [17:54:06]OFD Sender: No OFD packet to send [17:54:11]OFD Sender: No OFD packet to send [17:54:16]OFD Sender: No OFD packet to send [17:54:21]OFD Sender: No OFD packet to send [17:54:26]OFD Sender: No OFD packet to send [17:54:31]OFD Sender: No OFD packet to send [17:54:36]OFD Sender: No OFD packet to send [17:54:41]OFD Sender: No OFD packet to send [17:54:46]OFD Sender: No OFD packet to send [17:54:51]OFD Sender: No OFD packet to send [17:54:56]OFD Sender: No OFD packet to send [17:55:01]OFD Sender: No OFD packet to send [17:55:06]OFD Sender: No OFD packet to send [17:55:11]OFD Sender: No OFD packet to send [17:55:16]OFD Sender: No OFD packet to send [17:55:21]OFD Sender: No OFD packet to send [17:55:26]OFD Sender: No OFD packet to send [17:55:31]OFD Sender: No OFD packet to send [17:55:36]OFD Sender: No OFD packet to send [17:55:41]OFD Sender: No OFD packet to send [17:55:46]OFD Sender: No OFD packet to send [17:55:51]OFD Sender: No OFD packet to send [17:55:56]OFD Sender: No OFD packet to send [17:56:01]OFD Sender: No OFD packet to send [17:56:06]OFD Sender: No OFD packet to send [17:56:11]OFD Sender: No OFD packet to send [17:56:16]OFD Sender: No OFD packet to send [17:56:21]OFD Sender: No OFD packet to send [17:56:26]OFD Sender: No OFD packet to send [17:56:31]OFD Sender: No OFD packet to send [17:56:36]OFD Sender: No OFD packet to send [17:56:41]OFD Sender: No OFD packet to send [17:56:46]OFD Sender: No OFD packet to send [17:56:51]OFD Sender: No OFD packet to send [17:56:56]OFD Sender: No OFD packet to send [17:57:01]OFD Sender: No OFD packet to send [17:57:06]OFD Sender: No OFD packet to send [17:57:11]OFD Sender: No OFD packet to send [17:57:16]OFD Sender: No OFD packet to send [17:57:21]OFD Sender: No OFD packet to send [17:57:26]OFD Sender: No OFD packet to send [17:57:32]OFD Sender: No OFD packet to send [17:57:37]OFD Sender: No OFD packet to send [17:57:42]OFD Sender: No OFD packet to send [17:57:47]OFD Sender: No OFD packet to send [17:57:52]OFD Sender: No OFD packet to send [17:57:57]OFD Sender: No OFD packet to send [17:58:02]OFD Sender: No OFD packet to send [17:58:07]OFD Sender: No OFD packet to send [17:58:12]OFD Sender: No OFD packet to send [17:58:17]OFD Sender: No OFD packet to send [17:58:22]OFD Sender: No OFD packet to send [17:58:27]OFD Sender: No OFD packet to send [17:58:32]OFD Sender: No OFD packet to send [17:58:37]OFD Sender: No OFD packet to send [17:58:42]OFD Sender: No OFD packet to send [17:58:47]OFD Sender: No OFD packet to send [17:58:52]OFD Sender: No OFD packet to send [17:58:57]OFD Sender: No OFD packet to send [17:59:02]OFD Sender: No OFD packet to send [17:59:07]OFD Sender: No OFD packet to send [17:59:12]OFD Sender: No OFD packet to send [17:59:17]OFD Sender: No OFD packet to send [17:59:22]OFD Sender: No OFD packet to send [17:59:27]OFD Sender: No OFD packet to send [17:59:32]OFD Sender: No OFD packet to send [17:59:37]OFD Sender: No OFD packet to send [17:59:42]OFD Sender: No OFD packet to send [17:59:47]OFD Sender: No OFD packet to send [17:59:52]OFD Sender: No OFD packet to send [17:59:57]OFD Sender: No OFD packet to send [18:00:02]OFD Sender: No OFD packet to send [18:00:07]OFD Sender: No OFD packet to send [18:00:12]OFD Sender: No OFD packet to send [18:00:17]OFD Sender: No OFD packet to send [18:00:22]OFD Sender: No OFD packet to send [18:00:27]OFD Sender: No OFD packet to send [18:00:32]OFD Sender: No OFD packet to send [18:00:37]OFD Sender: No OFD packet to send [18:00:42]OFD Sender: No OFD packet to send [18:00:47]OFD Sender: No OFD packet to send [18:00:52]OFD Sender: No OFD packet to send [18:00:57]OFD Sender: No OFD packet to send [18:01:02]OFD Sender: No OFD packet to send [18:01:07]OFD Sender: No OFD packet to send [18:01:12]OFD Sender: No OFD packet to send [18:01:18]OFD Sender: No OFD packet to send [18:01:23]OFD Sender: No OFD packet to send [18:01:28]OFD Sender: No OFD packet to send [18:01:33]OFD Sender: No OFD packet to send [18:01:38]OFD Sender: No OFD packet to send [18:01:43]OFD Sender: No OFD packet to send [18:01:48]OFD Sender: No OFD packet to send [18:01:53]OFD Sender: No OFD packet to send [18:01:58]OFD Sender: No OFD packet to send [18:02:03]OFD Sender: No OFD packet to send [18:02:08]OFD Sender: No OFD packet to send [18:02:13]OFD Sender: No OFD packet to send [18:02:18]OFD Sender: No OFD packet to send [18:02:23]OFD Sender: No OFD packet to send [18:02:28]OFD Sender: No OFD packet to send [18:02:33]OFD Sender: No OFD packet to send [18:02:38]OFD Sender: No OFD packet to send [18:02:43]OFD Sender: No OFD packet to send [18:02:48]OFD Sender: No OFD packet to send [18:02:53]OFD Sender: No OFD packet to send [18:02:58]OFD Sender: No OFD packet to send [18:03:03]OFD Sender: No OFD packet to send [18:03:08]OFD Sender: No OFD packet to send [18:03:13]OFD Sender: No OFD packet to send [18:03:18]OFD Sender: No OFD packet to send [18:03:23]OFD Sender: No OFD packet to send [18:03:28]OFD Sender: No OFD packet to send [18:03:33]OFD Sender: No OFD packet to send [18:03:38]OFD Sender: No OFD packet to send [18:03:43]OFD Sender: No OFD packet to send [18:03:48]OFD Sender: No OFD packet to send [18:03:53]OFD Sender: No OFD packet to send [18:03:58]OFD Sender: No OFD packet to send [18:04:03]OFD Sender: No OFD packet to send [18:04:08]OFD Sender: No OFD packet to send [18:04:13]OFD Sender: No OFD packet to send [18:04:18]OFD Sender: No OFD packet to send [18:04:23]OFD Sender: No OFD packet to send [18:04:28]OFD Sender: No OFD packet to send [18:04:33]OFD Sender: No OFD packet to send [18:04:38]OFD Sender: No OFD packet to send [18:04:43]OFD Sender: No OFD packet to send [18:04:48]OFD Sender: No OFD packet to send [18:04:51]accept exits with 10 [18:04:51]New connection [18:04:51]New thread 3066756452 created [18:04:51]Thread 3066613092 joined [18:04:51]Waiting for new connection... [18:04:51] Sock 10.Parse request [18:04:51]Sock 10.Check first char [18:04:51]Sock 10.First char is OK [18:04:51]request: POST /json_proto HTTP/1.0 [18:04:51]Method: POST [18:04:51]URL: /json_proto [18:04:51]Method is POST - this is cgi request [18:04:51]url: /json_proto [18:04:51]query_string will be loaded in cgi processing [18:04:51]execute_cgi json_proto POST (null) [18:04:51]execute_cgi path=json_proto method=POST [18:04:51]POST find Content-Length [18:04:51]Host: 172.17.42.131:8080 [18:04:51]Content-Length: 677 [18:04:51]Content-Type: application/json [18:04:51] [18:04:51]POST finish read [18:04:51]Found Content-Length = 677 [18:04:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:51]execute_script... [18:04: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)210480", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:04:51]POST & json_proto [18:04:51]process_json_proto [18:04:51]json parsed OK: [18:04:51]protocol is kg_v1.0 [18:04:51]action value=close_receipt [18:04:51]process_action close_receipt [18:04:51]cmd_close_receipt [18:04:51]MH_GetDate [18:04:51]Write to MH i2c: F0 00 00 F7 05 EB [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: F0 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: F0 09 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: F0 09 00 F7 05 00 44 E9 17 67 A0 18 CA 66 87 [18:04:51]GetLastDocTimeStamp 1729619599 [18:04:51]current date 1729620292 [18:04:51]FM_GetShiftState [18:04:51]SAM_PROTO_GetShiftState [18:04:51]wFMCommunicate request_size=4 [18:04:51]MH_SAM_APDU [18:04:51]CAPDU: 80 13 01 00 [18:04:51]Write to MH i2c: E2 08 00 F8 05 80 13 01 00 00 00 00 00 7A [18:04:51]Write i2c OK [18:04:51]MH_I2C_Read... [18:04:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:51]Read from MH i2c: E2 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0E 00 [18:04:51]MH_I2C_Read... [18:04:51]Read from MH i2c: E2 0E 00 F8 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6F [18:04:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:04:51]wFMCommunicate OK [18:04:51]SAM_PROTO_GetShiftState done [18:04:51]FM_GetShiftState done [18:04:51]opened in 1729556094 [18:04:51]opened+sec_in_day 1729642494 [18:04:51]quantity*price = 50041 [18:04:51]sum+1 = 50042 [18:04:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 449 22.10.2024 18:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188420 ФПД: 234190161762870 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180452&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188420&fm=234190161762870&tin=02508201610067®Number=0000000000100030&sum=50000 [18:04:52]StoreToDocumentArchive [18:04:52]shift 461 fd 188420 [18:04:52]save to /storage/0461/doc_00188420 [18:04:52]save last doc name /storage/0461/doc_00188420 to /storage/kkm_last_doc_name [18:04:52]save OK [18:04:52]Clear old archive folders... [18:04:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:04:52]tlvbuf is 00925A70 [18:04:52]SAM_PROTO_ClearQueue [18:04:52]wFMCommunicate request_size=4 [18:04:52]MH_SAM_APDU [18:04:52]CAPDU: 80 09 00 00 [18:04:52]Write to MH i2c: E2 08 00 05 06 80 09 00 00 00 00 00 00 7D [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:04:52]Read from MH i2c: E2 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: E2 03 00 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: E2 03 00 05 06 00 90 00 7F [18:04:52]RAPDU: 90 00 [18:04:52]wFMCommunicate OK [18:04:52]SAM_PROTO_ClearQueue done [18:04:52]KKMCreateOFDPacket [18:04:52]OFDProtocolAddRootSTLVToBuf [18:04:52]FM_MakeSignedData [18:04:52]FM_MakeSignedData [18:04:52]SAM_PROTO_SignData [18:04:52]wFMCommunicate request_size=4 [18:04:52]MH_SAM_APDU [18:04:52]CAPDU: 80 0D 01 02 [18:04:52]Write to MH i2c: E2 08 00 06 06 80 0D 01 02 00 00 00 00 85 [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:04:52]Read from MH i2c: E2 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: E2 03 00 [18:04:52]MH_I2C_Read... [18:04:52]Read from MH i2c: E2 03 00 06 06 00 90 00 80 [18:04:52]RAPDU: 90 00 [18:04:52]wFMCommunicate OK [18:04:52]wFMCommunicate request_size=255 [18:04:52]MH_SAM_APDU [18:04: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 44 E9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E0 02 00 35 04 06 00 D4 [18:04:52]Write to MH i2c: E2 02 01 07 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 44 E9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E0 02 00 35 04 06 00 D4 00 00 ED [18:04:52]Write i2c OK [18:04:52]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 03 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 03 00 07 06 00 90 00 81 [18:04:53]RAPDU: 90 00 [18:04:53]wFMCommunicate OK [18:04:53]wFMCommunicate request_size=10 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 0D 02 02 05 FE A5 66 DA 36 [18:04:53]Write to MH i2c: E2 0D 00 08 06 80 0D 02 02 05 00 FE A5 66 DA 36 00 00 AB [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 03 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 03 00 08 06 00 90 00 82 [18:04:53]RAPDU: 90 00 [18:04:53]wFMCommunicate OK [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 0D 03 02 [18:04:53]Write to MH i2c: E2 08 00 09 06 80 0D 03 02 00 00 00 00 8A [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 0B 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 0B 00 09 06 00 DE 24 58 B4 56 5F 02 FC 90 00 4C [18:04:53]RAPDU: DE 24 58 B4 56 5F 02 FC 90 00 [18:04:53]wFMCommunicate OK [18:04:53]SAM_PROTO_SignData done [18:04:53]FM_MakeSignedData done [18:04:53]CreateOFDProtocolMessage [18:04:53]wFMCommunicate request_size=4 [18:04:53]MH_SAM_APDU [18:04:53]CAPDU: 80 11 00 00 [18:04:53]Write to MH i2c: E2 08 00 0A 06 80 11 00 00 00 00 00 00 8A [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:53]Read from MH i2c: E2 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: E2 17 00 0A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [18:04:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:04:53]wFMCommunicate OK [18:04:53]CreateOFDProtocolMessage done [18:04:53]OFDSenderStorePacket 188420 [18:04:53]StoreOFDPacket docnum=188420 [18:04:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD 61 07 01 B3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 44 E9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E0 02 00 35 04 06 00 D4 FE A5 66 DA 36 DE 24 58 B4 56 5F 02 FC [18:04:53]CheckFolder [18:04:53]dirname=/storage/ofd_packets [18:04:53]CheckFolder done [18:04:53]ProducePacketName [18:04:53]name=ofd_packets/00188420 [18:04:53]NVStorageSaveData ofd_packets/00188420 [18:04:53]File name is /storage/ofd_packets/00188420 [18:04:53]Write 301 bytes [18:04:53]NVStorageSaveData done [18:04:53]OFDSenderStorePacket done [18:04:53]KKMCreateOFDPacket done [18:04:53]NVStorageSaveData kkm_last_timestamp [18:04:53]File name is /storage/kkm_last_timestamp [18:04:53]Write 4 bytes [18:04:53]NVStorageSaveData done [18:04:53]ExternCall_PrintAddStr [18:04:53]wPrintStart [18:04:53]Write to MH i2c: 01 00 00 0B 06 11 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 0B 06 00 00 00 00 00 FF 0F 26 [18:04:53]RasterBufferAndPrint [18:04:53]line Счет N : (1)210480 [18:04:53]line ИНН: 02508201610067 [18:04:53]line Контрольно-Кассовый Чек [18:04:53]line ПРОДАЖА [18:04:53]line ТРК (МРК, ГНК) : 42 [18:04:53]line Товар: 2710124130 [18:04:53]line Аи-92-К-3 [18:04:53]line 7.480 * 66.90 [18:04:53]line = 500.41 [18:04:53]line НДС 12% НСП 1% [18:04:53]line > о реализуемом товаре [18:04:53]line ОКРУГЛЕНИЕ: -0.41 [18:04:53]line ИТОГО: 500.00 [18:04:53]line Внесено: 500.00 [18:04:53]line СДАЧА: 0.00 [18:04:53]line НСП 1% : 4.43 [18:04:53]line НДС 12% : 53.14 [18:04:53]line Наличными: 500.00 [18:04:53]line Безнал.: 0.00 [18:04:53]line Место: АЗС № 86 "Партнер Нефть" [18:04:53]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:04:53]line СНО: Общий режим [18:04:53]line Чек 449 22.10.2024 18:04 [18:04:53]line Смена: 461 ФФД: 1.0 [18:04:53]line ЗНМ: 0300000155 [18:04:53]line РНМ: 0000000000100030 [18:04:53]line Версия ККМ: 001 [18:04:53]line ФМ: 0000000000965340 [18:04:53]line ФД: 188420 [18:04:53]line ФПД: 234190161762870 [18:04:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180452&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188420&fm=234190161762870&tin=02508201610067®Number=0000000000100030&sum=50000 [18:04:53]written 0, free lines is 4095 [18:04:53]OFD Sender: Processing packet 188420 [packets to send 1062, broken 1061] [18:04:53]ProducePacketName [18:04:53]name=ofd_packets/00188420 [18:04:53]OFD Sender: To server: pG, [18:04:53]CommunicateWithHost lk.salyk.kg:30040 [18:04:53]ConnectInit lk.salyk.kg [18:04:53]Connected sock=9 [18:04:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD 61 07 01 B3 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C1 01 00 00 F4 03 04 00 44 E9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 04 E0 02 00 35 04 06 00 D4 FE A5 66 DA 36 DE 24 58 B4 56 5F 02 FC [18:04:53]Write to MH i2c: 01 00 00 36 06 3C [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: 01 07 00 36 06 00 00 00 00 00 5D 0C AC [18:04:53]RasterBufferAndPrint [18:04:53]line [18:04:53]line [18:04:53]line [18:04:53]line [18:04:53]line [18:04:53]written 0, free lines is 3168 [18:04:53]MH_Cut [18:04:53]Write to MH i2c: D1 01 00 3D 06 01 15 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: D1 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: D1 01 00 [18:04:53]MH_I2C_Read... [18:04:53]Read from MH i2c: D1 01 00 3D 06 00 14 [18:04:53]Write to MH i2c: 01 00 00 3E 06 44 [18:04:53]Write i2c OK [18:04:53]MH_I2C_Read... [18:04:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 40 EE 47 00 18 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 39 36 35 33 34 30 10 04 04 00 04 E0 02 00 F4 03 04 00 31 93 17 67 B6 04 01 00 00 08 E4 3E 08 33 5D 20 77 [18:04:54]CommunicateWithHost err = 0 [18:04:54]CheckOFDResponse [18:04:54]1017 (14) - 77093643461234 [18:04:54]1041 (16) - 0000000000965340 [18:04:54]1040 (4) - 188420 [18:04:54]1012 (4) - 22.10.2024 11:57 [18:04:54]1206 (1) - 0 [18:04:54]OFD Sender: Remove packet 188420 [18:04:54]ProducePacketName [18:04:54]name=ofd_packets/00188420 [18:04:54]NVStorageDeleteData [18:04:54]OFD Sender: No OFD packet to send [18:04:54]*** Cut start [18:04:54]*** Partial cut [18:04:54]*** CUTSNS_PIN = 1 [18:04:54]*** CUTSNS_PIN = 0 [18:04:55]*** Brake cut motor [18:04:55]Read from MH i2c: 01 [18:04:55]MH_I2C_Read... [18:04:55]*** Stop cut motor [18:04:55]*** Cut end [18:04:55]Read from MH i2c: 01 07 00 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: 01 07 00 3E 06 00 00 00 00 00 FF 0F 59 [18:04:55]process_action close_receipt done [18:04:55]requested_data is exist [18:04:55]produce_requested_data [18:04:55]requested_item fm.sn is exist - process it [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 11 00 00 [18:04:55]Write to MH i2c: E2 08 00 3F 06 80 11 00 00 00 00 00 00 BF [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:04:55]Read from MH i2c: E2 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 17 00 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 17 00 3F 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [18:04:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:04:55]wFMCommunicate OK [18:04:55]requested_item fd.num is exist - process it [18:04:55]SAM_PROTO_GetFieldsCounters [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 13 00 00 [18:04:55]Write to MH i2c: E2 08 00 40 06 80 13 00 00 00 00 00 00 C2 [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:04:55]Read from MH i2c: E2 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 62 00 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 62 00 40 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 C3 [18:04:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 04 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C1 01 00 00 5E 04 04 00 C1 01 00 00 57 04 04 00 C2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:04:55]wFMCommunicate OK [18:04:55]SAM_PROTO_GetFieldsCounters done [18:04:55]requested_item shift.num is exist - process it [18:04:55]requested_item shift.opened is exist - process it [18:04:55]req_shift_opened [18:04:55]FM_GetShiftState [18:04:55]SAM_PROTO_GetShiftState [18:04:55]wFMCommunicate request_size=4 [18:04:55]MH_SAM_APDU [18:04:55]CAPDU: 80 13 01 00 [18:04:55]Write to MH i2c: E2 08 00 41 06 80 13 01 00 00 00 00 00 C4 [18:04:55]Write i2c OK [18:04:55]MH_I2C_Read... [18:04:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:04:55]Read from MH i2c: E2 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 0E 00 [18:04:55]MH_I2C_Read... [18:04:55]Read from MH i2c: E2 0E 00 41 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B9 [18:04:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:04:55]wFMCommunicate OK [18:04:55]SAM_PROTO_GetShiftState done [18:04:55]FM_GetShiftState done [18:04:55]req_shift_opened done [18:04:55]requested_item shift.open_date is exist - process it [18:04:55]req_shift_open_date [18:04:55]req_shift_open_date done [18:04:55]produce_requested_data done [18:04:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188420,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:04:55]process_action_free close_receipt [18:04:55]json_value_free [18:04:55]json_value_free done [18:04:55]process_json_proto returns [18:04:55]Send response to host [18:04:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188420,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:04:55]free response buf [18:04:55]execute_script done [18:04:55]execute_script returns [18:04:55]free content buf [18:04:55]Sock 10.Close socket [18:04:55]Sock 10.Thread stoped [18:04:59]OFD Sender: No OFD packet to send [18:05:04]OFD Sender: No OFD packet to send [18:05:09]OFD Sender: No OFD packet to send [18:05:14]OFD Sender: No OFD packet to send [18:05:19]OFD Sender: No OFD packet to send [18:05:24]OFD Sender: No OFD packet to send [18:05:29]OFD Sender: No OFD packet to send [18:05:34]OFD Sender: No OFD packet to send [18:05:39]OFD Sender: No OFD packet to send [18:05:44]OFD Sender: No OFD packet to send [18:05:49]OFD Sender: No OFD packet to send [18:05:54]OFD Sender: No OFD packet to send [18:05:59]OFD Sender: No OFD packet to send [18:06:04]OFD Sender: No OFD packet to send [18:06:09]OFD Sender: No OFD packet to send [18:06:14]OFD Sender: No OFD packet to send [18:06:19]OFD Sender: No OFD packet to send [18:06:24]OFD Sender: No OFD packet to send [18:06:29]OFD Sender: No OFD packet to send [18:06:35]OFD Sender: No OFD packet to send [18:06:40]OFD Sender: No OFD packet to send [18:06:45]OFD Sender: No OFD packet to send [18:06:50]OFD Sender: No OFD packet to send [18:06:55]OFD Sender: No OFD packet to send [18:07:00]OFD Sender: No OFD packet to send [18:07:05]OFD Sender: No OFD packet to send [18:07:10]OFD Sender: No OFD packet to send [18:07:15]OFD Sender: No OFD packet to send [18:07:20]OFD Sender: No OFD packet to send [18:07:25]OFD Sender: No OFD packet to send [18:07:30]OFD Sender: No OFD packet to send [18:07:35]OFD Sender: No OFD packet to send [18:07:40]OFD Sender: No OFD packet to send [18:07:45]OFD Sender: No OFD packet to send [18:07:50]OFD Sender: No OFD packet to send [18:07:55]OFD Sender: No OFD packet to send [18:08:00]OFD Sender: No OFD packet to send [18:08:05]OFD Sender: No OFD packet to send [18:08:10]OFD Sender: No OFD packet to send [18:08:15]OFD Sender: No OFD packet to send [18:08:20]OFD Sender: No OFD packet to send [18:08:25]OFD Sender: No OFD packet to send [18:08:30]OFD Sender: No OFD packet to send [18:08:30]accept exits with 7 [18:08:30]New connection [18:08:30]New thread 3066613092 created [18:08:30]Thread 3066756452 joined [18:08:30]Waiting for new connection... [18:08:30] Sock 7.Parse request [18:08:30]Sock 7.Check first char [18:08:30]Sock 7.First char is OK [18:08:30]request: POST /json_proto HTTP/1.0 [18:08:30]Method: POST [18:08:30]URL: /json_proto [18:08:30]Method is POST - this is cgi request [18:08:30]url: /json_proto [18:08:30]query_string will be loaded in cgi processing [18:08:30]execute_cgi json_proto POST (null) [18:08:30]execute_cgi path=json_proto method=POST [18:08:30]POST find Content-Length [18:08:30]Host: 172.17.42.131:8080 [18:08:30]Content-Length: 679 [18:08:30]Content-Type: application/json [18:08:30] [18:08:30]POST finish read [18:08:30]Found Content-Length = 679 [18:08:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:30]execute_script... [18:08:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210481", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.220, "sum" : 750.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 750.00, "payments": [ { "type": 0, "sum" : 750.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:08:30]POST & json_proto [18:08:30]process_json_proto [18:08:30]json parsed OK: [18:08:30]protocol is kg_v1.0 [18:08:30]action value=close_receipt [18:08:30]process_action close_receipt [18:08:30]cmd_close_receipt [18:08:30]MH_GetDate [18:08:30]Write to MH i2c: F0 00 00 42 06 37 [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: F0 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: F0 09 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: F0 09 00 42 06 00 1F EA 17 67 A0 18 CA 66 AF [18:08:30]GetLastDocTimeStamp 1729620292 [18:08:30]current date 1729620511 [18:08:30]FM_GetShiftState [18:08:30]SAM_PROTO_GetShiftState [18:08:30]wFMCommunicate request_size=4 [18:08:30]MH_SAM_APDU [18:08:30]CAPDU: 80 13 01 00 [18:08:30]Write to MH i2c: E2 08 00 43 06 80 13 01 00 00 00 00 00 C6 [18:08:30]Write i2c OK [18:08:30]MH_I2C_Read... [18:08:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:30]Read from MH i2c: E2 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 0E 00 [18:08:30]MH_I2C_Read... [18:08:30]Read from MH i2c: E2 0E 00 43 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [18:08:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:08:30]wFMCommunicate OK [18:08:30]SAM_PROTO_GetShiftState done [18:08:30]FM_GetShiftState done [18:08:30]opened in 1729556094 [18:08:30]opened+sec_in_day 1729642494 [18:08:30]quantity*price = 75061 [18:08:30]sum+1 = 75063 [18:08:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 750.00 Внесено: 1000.00 СДАЧА: 250.00 НСП 1% : 6.64 НДС 12% : 79.71 Наличными: 750.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 450 22.10.2024 18:08 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188421 ФПД: 234904950432921 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180831&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188421&fm=234904950432921&tin=02508201610067®Number=0000000000100030&sum=75000 [18:08:31]StoreToDocumentArchive [18:08:31]shift 461 fd 188421 [18:08:31]save to /storage/0461/doc_00188421 [18:08:31]save last doc name /storage/0461/doc_00188421 to /storage/kkm_last_doc_name [18:08:31]save OK [18:08:31]Clear old archive folders... [18:08:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:08:31]tlvbuf is 00939AE0 [18:08:31]SAM_PROTO_ClearQueue [18:08:31]wFMCommunicate request_size=4 [18:08:31]MH_SAM_APDU [18:08:31]CAPDU: 80 09 00 00 [18:08:31]Write to MH i2c: E2 08 00 50 06 80 09 00 00 00 00 00 00 C8 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:08:31]Read from MH i2c: E2 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 50 06 00 90 00 CA [18:08:31]RAPDU: 90 00 [18:08:31]wFMCommunicate OK [18:08:31]SAM_PROTO_ClearQueue done [18:08:31]KKMCreateOFDPacket [18:08:31]OFDProtocolAddRootSTLVToBuf [18:08:31]FM_MakeSignedData [18:08:31]FM_MakeSignedData [18:08:31]SAM_PROTO_SignData [18:08:31]wFMCommunicate request_size=4 [18:08:31]MH_SAM_APDU [18:08:31]CAPDU: 80 0D 01 02 [18:08:31]Write to MH i2c: E2 08 00 51 06 80 0D 01 02 00 00 00 00 D0 [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:08:31]Read from MH i2c: E2 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 [18:08:31]MH_I2C_Read... [18:08:31]Read from MH i2c: E2 03 00 51 06 00 90 00 CB [18:08:31]RAPDU: 90 00 [18:08:31]wFMCommunicate OK [18:08:31]wFMCommunicate request_size=255 [18:08:31]MH_SAM_APDU [18:08: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 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 C2 01 00 00 F4 03 04 00 1F EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E0 02 00 35 04 06 00 D5 [18:08:31]Write to MH i2c: E2 02 01 52 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 C2 01 00 00 F4 03 04 00 1F EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E0 02 00 35 04 06 00 D5 00 00 3F [18:08:31]Write i2c OK [18:08:31]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 52 06 00 90 00 CC [18:08:32]RAPDU: 90 00 [18:08:32]wFMCommunicate OK [18:08:32]wFMCommunicate request_size=10 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 0D 02 02 05 A5 12 20 64 99 [18:08:32]Write to MH i2c: E2 0D 00 53 06 80 0D 02 02 05 00 A5 12 20 64 99 00 00 B1 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 03 00 53 06 00 90 00 CD [18:08:32]RAPDU: 90 00 [18:08:32]wFMCommunicate OK [18:08:32]wFMCommunicate request_size=4 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 0D 03 02 [18:08:32]Write to MH i2c: E2 08 00 54 06 80 0D 03 02 00 00 00 00 D5 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0B 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 0B 00 54 06 00 91 3C E6 7E 0E 03 3F E5 90 00 3C [18:08:32]RAPDU: 91 3C E6 7E 0E 03 3F E5 90 00 [18:08:32]wFMCommunicate OK [18:08:32]SAM_PROTO_SignData done [18:08:32]FM_MakeSignedData done [18:08:32]CreateOFDProtocolMessage [18:08:32]wFMCommunicate request_size=4 [18:08:32]MH_SAM_APDU [18:08:32]CAPDU: 80 11 00 00 [18:08:32]Write to MH i2c: E2 08 00 55 06 80 11 00 00 00 00 00 00 D5 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:32]Read from MH i2c: E2 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 17 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: E2 17 00 55 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [18:08:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:08:32]wFMCommunicate OK [18:08:32]CreateOFDProtocolMessage done [18:08:32]OFDSenderStorePacket 188421 [18:08:32]StoreOFDPacket docnum=188421 [18:08:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 8B 07 01 A7 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 C2 01 00 00 F4 03 04 00 1F EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E0 02 00 35 04 06 00 D5 A5 12 20 64 99 91 3C E6 7E 0E 03 3F E5 [18:08:32]CheckFolder [18:08:32]dirname=/storage/ofd_packets [18:08:32]CheckFolder done [18:08:32]ProducePacketName [18:08:32]name=ofd_packets/00188421 [18:08:32]NVStorageSaveData ofd_packets/00188421 [18:08:32]File name is /storage/ofd_packets/00188421 [18:08:32]Write 301 bytes [18:08:32]NVStorageSaveData done [18:08:32]OFDSenderStorePacket done [18:08:32]KKMCreateOFDPacket done [18:08:32]NVStorageSaveData kkm_last_timestamp [18:08:32]File name is /storage/kkm_last_timestamp [18:08:32]Write 4 bytes [18:08:32]NVStorageSaveData done [18:08:32]ExternCall_PrintAddStr [18:08:32]wPrintStart [18:08:32]Write to MH i2c: 01 00 00 56 06 5C [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 07 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 07 00 56 06 00 00 00 00 00 FF 0F 71 [18:08:32]RasterBufferAndPrint [18:08:32]line Счет N : (1)210481 [18:08:32]line ИНН: 02508201610067 [18:08:32]line Контрольно-Кассовый Чек [18:08:32]line ПРОДАЖА [18:08:32]line ТРК (МРК, ГНК) : 12 [18:08:32]line Товар: 2710124130 [18:08:32]line Аи-92-К-3 [18:08:32]line 11.220 * 66.90 [18:08:32]line = 750.62 [18:08:32]line НДС 12% НСП 1% [18:08:32]line > о реализуемом товаре [18:08:32]line ОКРУГЛЕНИЕ: -0.62 [18:08:32]line ИТОГО: 750.00 [18:08:32]line Внесено: 1000.00 [18:08:32]line СДАЧА: 250.00 [18:08:32]line НСП 1% : 6.64 [18:08:32]line НДС 12% : 79.71 [18:08:32]line Наличными: 750.00 [18:08:32]line Безнал.: 0.00 [18:08:32]line Место: АЗС № 86 "Партнер Нефть" [18:08:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:08:32]line СНО: Общий режим [18:08:32]line Чек 450 22.10.2024 18:08 [18:08:32]line Смена: 461 ФФД: 1.0 [18:08:32]line ЗНМ: 0300000155 [18:08:32]line РНМ: 0000000000100030 [18:08:32]line Версия ККМ: 001 [18:08:32]line ФМ: 0000000000965340 [18:08:32]line ФД: 188421 [18:08:32]line ФПД: 234904950432921 [18:08:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T180831&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188421&fm=234904950432921&tin=02508201610067®Number=0000000000100030&sum=75000 [18:08:32]written 0, free lines is 4095 [18:08:32]OFD Sender: Processing packet 188421 [packets to send 1062, broken 1061] [18:08:32]ProducePacketName [18:08:32]name=ofd_packets/00188421 [18:08:32]OFD Sender: To server: pG, [18:08:32]CommunicateWithHost lk.salyk.kg:30040 [18:08:32]ConnectInit lk.salyk.kg [18:08:32]Connected sock=10 [18:08:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 8B 07 01 A7 84 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 D4 2B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 36 25 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 24 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 23 1F 00 00 00 00 07 04 06 00 F8 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 C2 01 00 00 F4 03 04 00 1F EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E0 02 00 35 04 06 00 D5 A5 12 20 64 99 91 3C E6 7E 0E 03 3F E5 [18:08:32]Write to MH i2c: 01 00 00 81 06 87 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 07 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: 01 07 00 81 06 00 00 00 00 00 5F 0C F9 [18:08:32]RasterBufferAndPrint [18:08:32]line [18:08:32]line [18:08:32]line [18:08:32]line [18:08:32]line [18:08:32]written 0, free lines is 3170 [18:08:32]MH_Cut [18:08:32]Write to MH i2c: D1 01 00 88 06 01 60 [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: D1 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: D1 01 00 [18:08:32]MH_I2C_Read... [18:08:32]Read from MH i2c: D1 01 00 88 06 00 5F [18:08:32]Write to MH i2c: 01 00 00 89 06 8F [18:08:32]Write i2c OK [18:08:32]MH_I2C_Read... [18:08:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 95 47 00 C0 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 05 E0 02 00 F4 03 04 00 0C 94 17 67 B6 04 01 00 00 B0 E5 13 30 C8 56 B9 C8 [18:08:33]CommunicateWithHost err = 0 [18:08:33]CheckOFDResponse [18:08:33]1017 (14) - 77093643461234 [18:08:33]1041 (16) - 0000000000965340 [18:08:33]1040 (4) - 188421 [18:08:33]1012 (4) - 22.10.2024 12:01 [18:08:33]1206 (1) - 0 [18:08:33]OFD Sender: Remove packet 188421 [18:08:33]ProducePacketName [18:08:33]name=ofd_packets/00188421 [18:08:33]NVStorageDeleteData [18:08:33]OFD Sender: No OFD packet to send [18:08:34]*** Cut start [18:08:34]*** Partial cut [18:08:34]*** CUTSNS_PIN = 1 [18:08:34]*** CUTSNS_PIN = 0 [18:08:34]*** Brake cut motor [18:08:34]Read from MH i2c: 01 [18:08:34]MH_I2C_Read... [18:08:34]*** Stop cut motor [18:08:34]*** Cut end [18:08:34]Read from MH i2c: 01 07 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: 01 07 00 89 06 00 00 00 00 00 FF 0F A4 [18:08:34]process_action close_receipt done [18:08:34]requested_data is exist [18:08:34]produce_requested_data [18:08:34]requested_item fm.sn is exist - process it [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 11 00 00 [18:08:34]Write to MH i2c: E2 08 00 8A 06 80 11 00 00 00 00 00 00 0A [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 17 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 17 00 8A 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [18:08:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:08:34]wFMCommunicate OK [18:08:34]requested_item fd.num is exist - process it [18:08:34]SAM_PROTO_GetFieldsCounters [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 13 00 00 [18:08:34]Write to MH i2c: E2 08 00 8B 06 80 13 00 00 00 00 00 00 0D [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:08:34]Read from MH i2c: E2 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 62 00 [18:08:34]MH_I2C_Read... [18:08:34]Read from MH i2c: E2 62 00 8B 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 12 [18:08:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 05 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C2 01 00 00 5E 04 04 00 C2 01 00 00 57 04 04 00 C3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:08:34]wFMCommunicate OK [18:08:34]SAM_PROTO_GetFieldsCounters done [18:08:34]requested_item shift.num is exist - process it [18:08:34]requested_item shift.opened is exist - process it [18:08:34]req_shift_opened [18:08:34]FM_GetShiftState [18:08:34]SAM_PROTO_GetShiftState [18:08:34]wFMCommunicate request_size=4 [18:08:34]MH_SAM_APDU [18:08:34]CAPDU: 80 13 01 00 [18:08:34]Write to MH i2c: E2 08 00 8C 06 80 13 01 00 00 00 00 00 0F [18:08:34]Write i2c OK [18:08:34]MH_I2C_Read... [18:08:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:08:35]Read from MH i2c: E2 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 0E 00 [18:08:35]MH_I2C_Read... [18:08:35]Read from MH i2c: E2 0E 00 8C 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 04 [18:08:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:08:35]wFMCommunicate OK [18:08:35]SAM_PROTO_GetShiftState done [18:08:35]FM_GetShiftState done [18:08:35]req_shift_opened done [18:08:35]requested_item shift.open_date is exist - process it [18:08:35]req_shift_open_date [18:08:35]req_shift_open_date done [18:08:35]produce_requested_data done [18:08:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188421,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:08:35]process_action_free close_receipt [18:08:35]json_value_free [18:08:35]json_value_free done [18:08:35]process_json_proto returns [18:08:35]Send response to host [18:08:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188421,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:08:35]free response buf [18:08:35]execute_script done [18:08:35]execute_script returns [18:08:35]free content buf [18:08:35]Sock 7.Close socket [18:08:35]Sock 7.Thread stoped [18:08:38]OFD Sender: No OFD packet to send [18:08:43]OFD Sender: No OFD packet to send [18:08:48]OFD Sender: No OFD packet to send [18:08:53]OFD Sender: No OFD packet to send [18:08:58]OFD Sender: No OFD packet to send [18:09:03]OFD Sender: No OFD packet to send [18:09:08]OFD Sender: No OFD packet to send [18:09:13]OFD Sender: No OFD packet to send [18:09:18]OFD Sender: No OFD packet to send [18:09:23]OFD Sender: No OFD packet to send [18:09:28]OFD Sender: No OFD packet to send [18:09:33]OFD Sender: No OFD packet to send [18:09:38]OFD Sender: No OFD packet to send [18:09:43]OFD Sender: No OFD packet to send [18:09:48]OFD Sender: No OFD packet to send [18:09:53]OFD Sender: No OFD packet to send [18:09:58]OFD Sender: No OFD packet to send [18:10:03]OFD Sender: No OFD packet to send [18:10:09]OFD Sender: No OFD packet to send [18:10:14]OFD Sender: No OFD packet to send [18:10:19]OFD Sender: No OFD packet to send [18:10:24]OFD Sender: No OFD packet to send [18:10:29]OFD Sender: No OFD packet to send [18:10:34]OFD Sender: No OFD packet to send [18:10:39]OFD Sender: No OFD packet to send [18:10:44]OFD Sender: No OFD packet to send [18:10:49]OFD Sender: No OFD packet to send [18:10:54]OFD Sender: No OFD packet to send [18:10:59]OFD Sender: No OFD packet to send [18:11:04]OFD Sender: No OFD packet to send [18:11:09]OFD Sender: No OFD packet to send [18:11:14]OFD Sender: No OFD packet to send [18:11:19]OFD Sender: No OFD packet to send [18:11:24]OFD Sender: No OFD packet to send [18:11:29]OFD Sender: No OFD packet to send [18:11:34]OFD Sender: No OFD packet to send [18:11:39]OFD Sender: No OFD packet to send [18:11:41]accept exits with 9 [18:11:41]New connection [18:11:41]New thread 3066756452 created [18:11:41]Thread 3066613092 joined [18:11:41]Waiting for new connection... [18:11:41] Sock 9.Parse request [18:11:41]Sock 9.Check first char [18:11:41]Sock 9.First char is OK [18:11:41]request: POST /json_proto HTTP/1.0 [18:11:41]Method: POST [18:11:41]URL: /json_proto [18:11:41]Method is POST - this is cgi request [18:11:41]url: /json_proto [18:11:41]query_string will be loaded in cgi processing [18:11:41]execute_cgi json_proto POST (null) [18:11:41]execute_cgi path=json_proto method=POST [18:11:41]POST find Content-Length [18:11:41]Host: 172.17.42.131:8080 [18:11:41]Content-Length: 678 [18:11:41]Content-Type: application/json [18:11:41] [18:11:41]POST finish read [18:11:41]Found Content-Length = 678 [18:11:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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" ] } } [18:11:41]execute_script... [18:11:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210482", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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" ] } } [18:11:41]POST & json_proto [18:11:41]process_json_proto [18:11:41]json parsed OK: [18:11:41]protocol is kg_v1.0 [18:11:41]action value=close_receipt [18:11:41]process_action close_receipt [18:11:41]cmd_close_receipt [18:11:41]MH_GetDate [18:11:41]Write to MH i2c: F0 00 00 8D 06 82 [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: F0 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: F0 09 00 [18:11:41]MH_I2C_Read... [18:11:41]Read from MH i2c: F0 09 00 8D 06 00 DF EA 17 67 A0 18 CA 66 BA [18:11:41]GetLastDocTimeStamp 1729620511 [18:11:41]current date 1729620703 [18:11:41]FM_GetShiftState [18:11:41]SAM_PROTO_GetShiftState [18:11:41]wFMCommunicate request_size=4 [18:11:41]MH_SAM_APDU [18:11:41]CAPDU: 80 13 01 00 [18:11:41]Write to MH i2c: E2 08 00 8E 06 80 13 01 00 00 00 00 00 11 [18:11:41]Write i2c OK [18:11:41]MH_I2C_Read... [18:11:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:42]Read from MH i2c: E2 [18:11:42]MH_I2C_Read... [18:11:42]Read from MH i2c: E2 0E 00 [18:11:42]MH_I2C_Read... [18:11:42]Read from MH i2c: E2 0E 00 8E 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 06 [18:11:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:11:42]wFMCommunicate OK [18:11:42]SAM_PROTO_GetShiftState done [18:11:42]FM_GetShiftState done [18:11:42]opened in 1729556094 [18:11:42]opened+sec_in_day 1729642494 [18:11:42]quantity*price = 90047 [18:11:42]sum+1 = 90048 [18:11:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 451 22.10.2024 18:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188422 ФПД: 41552498009104 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188422&fm=41552498009104&tin=02508201610067®Number=0000000000100030&sum=90000 [18:11:43]StoreToDocumentArchive [18:11:43]shift 461 fd 188422 [18:11:43]save to /storage/0461/doc_00188422 [18:11:43]save last doc name /storage/0461/doc_00188422 to /storage/kkm_last_doc_name [18:11:43]save OK [18:11:43]Clear old archive folders... [18:11:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:11:43]tlvbuf is 00925B00 [18:11:43]SAM_PROTO_ClearQueue [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 09 00 00 [18:11:43]Write to MH i2c: E2 08 00 9B 06 80 09 00 00 00 00 00 00 13 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 9B 06 00 90 00 15 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]SAM_PROTO_ClearQueue done [18:11:43]KKMCreateOFDPacket [18:11:43]OFDProtocolAddRootSTLVToBuf [18:11:43]FM_MakeSignedData [18:11:43]FM_MakeSignedData [18:11:43]SAM_PROTO_SignData [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 01 02 [18:11:43]Write to MH i2c: E2 08 00 9C 06 80 0D 01 02 00 00 00 00 1B [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 9C 06 00 90 00 16 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]wFMCommunicate request_size=255 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 C3 01 00 00 F4 03 04 00 DF EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E0 02 00 35 04 06 00 25 [18:11:43]Write to MH i2c: E2 02 01 9D 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 C3 01 00 00 F4 03 04 00 DF EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E0 02 00 35 04 06 00 25 00 00 91 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 9D 06 00 90 00 17 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]wFMCommunicate request_size=10 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 02 02 05 CA B1 E2 24 10 [18:11:43]Write to MH i2c: E2 0D 00 9E 06 80 0D 02 02 05 00 CA B1 E2 24 10 00 00 B9 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 03 00 9E 06 00 90 00 18 [18:11:43]RAPDU: 90 00 [18:11:43]wFMCommunicate OK [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 0D 03 02 [18:11:43]Write to MH i2c: E2 08 00 9F 06 80 0D 03 02 00 00 00 00 20 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 0B 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 0B 00 9F 06 00 B0 77 DD 88 40 88 97 1B 90 00 27 [18:11:43]RAPDU: B0 77 DD 88 40 88 97 1B 90 00 [18:11:43]wFMCommunicate OK [18:11:43]SAM_PROTO_SignData done [18:11:43]FM_MakeSignedData done [18:11:43]CreateOFDProtocolMessage [18:11:43]wFMCommunicate request_size=4 [18:11:43]MH_SAM_APDU [18:11:43]CAPDU: 80 11 00 00 [18:11:43]Write to MH i2c: E2 08 00 A0 06 80 11 00 00 00 00 00 00 20 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:43]Read from MH i2c: E2 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 17 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: E2 17 00 A0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [18:11:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:43]wFMCommunicate OK [18:11:43]CreateOFDProtocolMessage done [18:11:43]OFDSenderStorePacket 188422 [18:11:43]StoreOFDPacket docnum=188422 [18:11:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D8 3D 07 01 D9 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 C3 01 00 00 F4 03 04 00 DF EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E0 02 00 35 04 06 00 25 CA B1 E2 24 10 B0 77 DD 88 40 88 97 1B [18:11:43]CheckFolder [18:11:43]dirname=/storage/ofd_packets [18:11:43]CheckFolder done [18:11:43]ProducePacketName [18:11:43]name=ofd_packets/00188422 [18:11:43]NVStorageSaveData ofd_packets/00188422 [18:11:43]File name is /storage/ofd_packets/00188422 [18:11:43]Write 301 bytes [18:11:43]NVStorageSaveData done [18:11:43]OFDSenderStorePacket done [18:11:43]KKMCreateOFDPacket done [18:11:43]NVStorageSaveData kkm_last_timestamp [18:11:43]File name is /storage/kkm_last_timestamp [18:11:43]Write 4 bytes [18:11:43]NVStorageSaveData done [18:11:43]ExternCall_PrintAddStr [18:11:43]wPrintStart [18:11:43]Write to MH i2c: 01 00 00 A1 06 A7 [18:11:43]Write i2c OK [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: 01 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: 01 07 00 [18:11:43]MH_I2C_Read... [18:11:43]Read from MH i2c: 01 07 00 A1 06 00 00 00 00 00 FF 0F BC [18:11:43]RasterBufferAndPrint [18:11:43]line Счет N : (1)210482 [18:11:43]line ИНН: 02508201610067 [18:11:43]line Контрольно-Кассовый Чек [18:11:43]line ПРОДАЖА [18:11:43]line ТРК (МРК, ГНК) : 22 [18:11:43]line Товар: 2710124130 [18:11:43]line Аи-92-К-3 [18:11:43]line 13.460 * 66.90 [18:11:43]line = 900.47 [18:11:43]line НДС 12% НСП 1% [18:11:43]line > о реализуемом товаре [18:11:43]line ОКРУГЛЕНИЕ: -0.47 [18:11:43]line ИТОГО: 900.00 [18:11:43]line Внесено: 900.00 [18:11:43]line СДАЧА: 0.00 [18:11:43]line НСП 1% : 7.97 [18:11:43]line НДС 12% : 95.62 [18:11:43]line Наличными: 900.00 [18:11:43]line Безнал.: 0.00 [18:11:43]line Место: АЗС № 86 "Партнер Нефть" [18:11:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:11:43]line СНО: Общий режим [18:11:43]line Чек 451 22.10.2024 18:11 [18:11:43]line Смена: 461 ФФД: 1.0 [18:11:43]line ЗНМ: 0300000155 [18:11:43]line РНМ: 0000000000100030 [18:11:43]line Версия ККМ: 001 [18:11:43]line ФМ: 0000000000965340 [18:11:43]line ФД: 188422 [18:11:43]line ФПД: 41552498009104 [18:11:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181143&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188422&fm=41552498009104&tin=02508201610067®Number=0000000000100030&sum=90000 [18:11:43]written 0, free lines is 4095 [18:11:43]OFD Sender: Processing packet 188422 [packets to send 1062, broken 1061] [18:11:43]ProducePacketName [18:11:43]name=ofd_packets/00188422 [18:11:43]OFD Sender: To server: pG, [18:11:43]CommunicateWithHost lk.salyk.kg:30040 [18:11:43]ConnectInit lk.salyk.kg [18:11:44]Write to MH i2c: 01 00 00 CC 06 D2 [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: 01 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: 01 07 00 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: 01 07 00 CC 06 00 00 00 00 00 60 0C 45 [18:11:44]RasterBufferAndPrint [18:11:44]line [18:11:44]line [18:11:44]line [18:11:44]line [18:11:44]line [18:11:44]written 0, free lines is 3170 [18:11:44]MH_Cut [18:11:44]Write to MH i2c: D1 01 00 D3 06 01 AB [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: D1 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: D1 01 00 [18:11:44]MH_I2C_Read... [18:11:44]Read from MH i2c: D1 01 00 D3 06 00 AA [18:11:44]Write to MH i2c: 01 00 00 D4 06 DA [18:11:44]Write i2c OK [18:11:44]MH_I2C_Read... [18:11:45]*** Cut start [18:11:45]*** Partial cut [18:11:45]*** CUTSNS_PIN = 1 [18:11:45]*** CUTSNS_PIN = 0 [18:11:45]*** Brake cut motor [18:11:46]Read from MH i2c: 01 [18:11:46]MH_I2C_Read... [18:11:46]*** Stop cut motor [18:11:46]*** Cut end [18:11:46]Read from MH i2c: 01 07 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: 01 07 00 D4 06 00 00 00 00 00 FF 0F EF [18:11:46]process_action close_receipt done [18:11:46]requested_data is exist [18:11:46]produce_requested_data [18:11:46]requested_item fm.sn is exist - process it [18:11:46]wFMCommunicate request_size=4 [18:11:46]MH_SAM_APDU [18:11:46]CAPDU: 80 11 00 00 [18:11:46]Write to MH i2c: E2 08 00 D5 06 80 11 00 00 00 00 00 00 55 [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:11:46]Read from MH i2c: E2 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 17 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 17 00 D5 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [18:11:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:11:46]wFMCommunicate OK [18:11:46]requested_item fd.num is exist - process it [18:11:46]SAM_PROTO_GetFieldsCounters [18:11:46]wFMCommunicate request_size=4 [18:11:46]MH_SAM_APDU [18:11:46]CAPDU: 80 13 00 00 [18:11:46]Write to MH i2c: E2 08 00 D6 06 80 13 00 00 00 00 00 00 58 [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:11:46]Read from MH i2c: E2 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 62 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 62 00 D6 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 61 [18:11:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 06 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C3 01 00 00 5E 04 04 00 C3 01 00 00 57 04 04 00 C4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:11:46]wFMCommunicate OK [18:11:46]SAM_PROTO_GetFieldsCounters done [18:11:46]requested_item shift.num is exist - process it [18:11:46]requested_item shift.opened is exist - process it [18:11:46]req_shift_opened [18:11:46]FM_GetShiftState [18:11:46]SAM_PROTO_GetShiftState [18:11:46]wFMCommunicate request_size=4 [18:11:46]MH_SAM_APDU [18:11:46]CAPDU: 80 13 01 00 [18:11:46]Write to MH i2c: E2 08 00 D7 06 80 13 01 00 00 00 00 00 5A [18:11:46]Write i2c OK [18:11:46]MH_I2C_Read... [18:11:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:11:46]Read from MH i2c: E2 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 0E 00 [18:11:46]MH_I2C_Read... [18:11:46]Read from MH i2c: E2 0E 00 D7 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4F [18:11:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:11:46]wFMCommunicate OK [18:11:46]SAM_PROTO_GetShiftState done [18:11:46]FM_GetShiftState done [18:11:46]req_shift_opened done [18:11:46]requested_item shift.open_date is exist - process it [18:11:46]req_shift_open_date [18:11:46]req_shift_open_date done [18:11:46]produce_requested_data done [18:11:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188422,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:11:46]process_action_free close_receipt [18:11:46]json_value_free [18:11:46]json_value_free done [18:11:46]process_json_proto returns [18:11:46]Send response to host [18:11:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188422,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:11:46]free response buf [18:11:46]execute_script done [18:11:46]execute_script returns [18:11:46]free content buf [18:11:46]Sock 9.Close socket [18:11:46]Sock 9.Thread stoped [18:12:49]accept exits with 7 [18:12:49]New connection [18:12:49]New thread 3066613092 created [18:12:49]Thread 3066756452 joined [18:12:49]Waiting for new connection... [18:12:49] Sock 7.Parse request [18:12:49]Sock 7.Check first char [18:12:49]Sock 7.First char is OK [18:12:49]request: POST /json_proto HTTP/1.0 [18:12:49]Method: POST [18:12:49]URL: /json_proto [18:12:49]Method is POST - this is cgi request [18:12:49]url: /json_proto [18:12:49]query_string will be loaded in cgi processing [18:12:49]execute_cgi json_proto POST (null) [18:12:49]execute_cgi path=json_proto method=POST [18:12:49]POST find Content-Length [18:12:49]Host: 172.17.42.131:8080 [18:12:49]Content-Length: 677 [18:12:49]Content-Type: application/json [18:12:49] [18:12:49]POST finish read [18:12:49]Found Content-Length = 677 [18:12:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210483", "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" : 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" ] } } [18:12:49]execute_script... [18: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)210483", "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" : 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" ] } } [18:12:49]POST & json_proto [18:12:49]process_json_proto [18:12:49]json parsed OK: [18:12:49]protocol is kg_v1.0 [18:12:49]action value=close_receipt [18:12:49]process_action close_receipt [18:12:49]cmd_close_receipt [18:12:49]MH_GetDate [18:12:49]Write to MH i2c: F0 00 00 D8 06 CD [18:12:49]Write i2c OK [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: F0 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: F0 09 00 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: F0 09 00 D8 06 00 22 EB 17 67 A0 18 CA 66 49 [18:12:49]GetLastDocTimeStamp 1729620703 [18:12:49]current date 1729620770 [18:12:49]FM_GetShiftState [18:12:49]SAM_PROTO_GetShiftState [18:12:49]wFMCommunicate request_size=4 [18:12:49]MH_SAM_APDU [18:12:49]CAPDU: 80 13 01 00 [18:12:49]Write to MH i2c: E2 08 00 D9 06 80 13 01 00 00 00 00 00 5C [18:12:49]Write i2c OK [18:12:49]MH_I2C_Read... [18:12:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:49]Read from MH i2c: E2 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: E2 0E 00 [18:12:49]MH_I2C_Read... [18:12:49]Read from MH i2c: E2 0E 00 D9 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [18:12:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:12:49]wFMCommunicate OK [18:12:49]SAM_PROTO_GetShiftState done [18:12:49]FM_GetShiftState done [18:12:49]opened in 1729556094 [18:12:49]opened+sec_in_day 1729642494 [18:12:49]quantity*price = 50010 [18:12:49]sum+1 = 50012 [18:12: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 452 22.10.2024 18:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188423 ФПД: 218662566090364 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188423&fm=218662566090364&tin=02508201610067®Number=0000000000100030&sum=50000 [18:12:50]StoreToDocumentArchive [18:12:50]shift 461 fd 188423 [18:12:50]save to /storage/0461/doc_00188423 [18:12:50]save last doc name /storage/0461/doc_00188423 to /storage/kkm_last_doc_name [18:12:50]save OK [18:12:50]Clear old archive folders... [18:12:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:12:50]tlvbuf is B6E91BE0 [18:12:50]SAM_PROTO_ClearQueue [18:12:50]wFMCommunicate request_size=4 [18:12:50]MH_SAM_APDU [18:12:50]CAPDU: 80 09 00 00 [18:12:50]Write to MH i2c: E2 08 00 E6 06 80 09 00 00 00 00 00 00 5E [18:12:50]Write i2c OK [18:12:50]MH_I2C_Read... [18:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:50]Read from MH i2c: E2 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 03 00 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 03 00 E6 06 00 90 00 60 [18:12:50]RAPDU: 90 00 [18:12:50]wFMCommunicate OK [18:12:50]SAM_PROTO_ClearQueue done [18:12:50]KKMCreateOFDPacket [18:12:50]OFDProtocolAddRootSTLVToBuf [18:12:50]FM_MakeSignedData [18:12:50]FM_MakeSignedData [18:12:50]SAM_PROTO_SignData [18:12:50]wFMCommunicate request_size=4 [18:12:50]MH_SAM_APDU [18:12:50]CAPDU: 80 0D 01 02 [18:12:50]Write to MH i2c: E2 08 00 E7 06 80 0D 01 02 00 00 00 00 66 [18:12:50]Write i2c OK [18:12:50]MH_I2C_Read... [18:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:50]Read from MH i2c: E2 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 03 00 [18:12:50]MH_I2C_Read... [18:12:50]Read from MH i2c: E2 03 00 E7 06 00 90 00 61 [18:12:50]RAPDU: 90 00 [18:12:50]wFMCommunicate OK [18:12:50]wFMCommunicate request_size=255 [18:12:50]MH_SAM_APDU [18: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 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 C4 01 00 00 F4 03 04 00 22 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E0 02 00 35 04 06 00 C6 [18:12:50]Write to MH i2c: E2 02 01 E8 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 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 C4 01 00 00 F4 03 04 00 22 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E0 02 00 35 04 06 00 C6 00 00 7E [18:12:50]Write i2c OK [18:12:50]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 03 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 03 00 E8 06 00 90 00 62 [18:12:51]RAPDU: 90 00 [18:12:51]wFMCommunicate OK [18:12:51]wFMCommunicate request_size=10 [18:12:51]MH_SAM_APDU [18:12:51]CAPDU: 80 0D 02 02 05 DF 58 93 D6 7C [18:12:51]Write to MH i2c: E2 0D 00 E9 06 80 0D 02 02 05 00 DF 58 93 D6 7C 00 00 8F [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 03 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 03 00 E9 06 00 90 00 63 [18:12:51]RAPDU: 90 00 [18:12:51]wFMCommunicate OK [18:12:51]wFMCommunicate request_size=4 [18:12:51]MH_SAM_APDU [18:12:51]CAPDU: 80 0D 03 02 [18:12:51]Write to MH i2c: E2 08 00 EA 06 80 0D 03 02 00 00 00 00 6B [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 0B 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 0B 00 EA 06 00 20 B4 F5 CF 81 08 09 5D 90 00 F3 [18:12:51]RAPDU: 20 B4 F5 CF 81 08 09 5D 90 00 [18:12:51]wFMCommunicate OK [18:12:51]SAM_PROTO_SignData done [18:12:51]FM_MakeSignedData done [18:12:51]CreateOFDProtocolMessage [18:12:51]wFMCommunicate request_size=4 [18:12:51]MH_SAM_APDU [18:12:51]CAPDU: 80 11 00 00 [18:12:51]Write to MH i2c: E2 08 00 EB 06 80 11 00 00 00 00 00 00 6B [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:51]Read from MH i2c: E2 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 17 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: E2 17 00 EB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [18:12:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:12:51]wFMCommunicate OK [18:12:51]CreateOFDProtocolMessage done [18:12:51]OFDSenderStorePacket 188423 [18:12:51]StoreOFDPacket docnum=188423 [18:12:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 14 07 01 EC A3 5A 03 01 00 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 C4 01 00 00 F4 03 04 00 22 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E0 02 00 35 04 06 00 C6 DF 58 93 D6 7C 20 B4 F5 CF 81 08 09 5D [18:12:51]CheckFolder [18:12:51]dirname=/storage/ofd_packets [18:12:51]CheckFolder done [18:12:51]ProducePacketName [18:12:51]name=ofd_packets/00188423 [18:12:51]NVStorageSaveData ofd_packets/00188423 [18:12:51]File name is /storage/ofd_packets/00188423 [18:12:51]Write 301 bytes [18:12:51]NVStorageSaveData done [18:12:51]OFDSenderStorePacket done [18:12:51]KKMCreateOFDPacket done [18:12:51]NVStorageSaveData kkm_last_timestamp [18:12:51]File name is /storage/kkm_last_timestamp [18:12:51]Write 4 bytes [18:12:51]NVStorageSaveData done [18:12:51]ExternCall_PrintAddStr [18:12:51]wPrintStart [18:12:51]Write to MH i2c: 01 00 00 EC 06 F2 [18:12:51]Write i2c OK [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: 01 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: 01 07 00 [18:12:51]MH_I2C_Read... [18:12:51]Read from MH i2c: 01 07 00 EC 06 00 00 00 00 00 FF 0F 07 [18:12:51]RasterBufferAndPrint [18:12:51]line Счет N : (1)210483 [18:12:51]line ИНН: 02508201610067 [18:12:51]line Контрольно-Кассовый Чек [18:12:51]line ПРОДАЖА [18:12:51]line ТРК (МРК, ГНК) : 33 [18:12:51]line Товар: 2710124500 [18:12:51]line Аи-95-К-3 [18:12:51]line 6.740 * 74.20 [18:12:51]line = 500.11 [18:12:51]line НДС 12% НСП 1% [18:12:51]line > о реализуемом товаре [18:12:51]line ОКРУГЛЕНИЕ: -0.11 [18:12:51]line ИТОГО: 500.00 [18:12:51]line Внесено: 500.00 [18:12:51]line СДАЧА: 0.00 [18:12:51]line НСП 1% : 4.43 [18:12:51]line НДС 12% : 53.11 [18:12:51]line Наличными: 500.00 [18:12:51]line Безнал.: 0.00 [18:12:51]line Место: АЗС № 86 "Партнер Нефть" [18:12:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:12:51]line СНО: Общий режим [18:12:51]line Чек 452 22.10.2024 18:12 [18:12:51]line Смена: 461 ФФД: 1.0 [18:12:51]line ЗНМ: 0300000155 [18:12:51]line РНМ: 0000000000100030 [18:12:51]line Версия ККМ: 001 [18:12:51]line ФМ: 0000000000965340 [18:12:51]line ФД: 188423 [18:12:51]line ФПД: 218662566090364 [18:12:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181250&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188423&fm=218662566090364&tin=02508201610067®Number=0000000000100030&sum=50000 [18:12:51]written 0, free lines is 4095 [18:12:52]Write to MH i2c: 01 00 00 17 07 1E [18:12:52]Write i2c OK [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: 01 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: 01 07 00 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: 01 07 00 17 07 00 00 00 00 00 5C 0C 8D [18:12:52]RasterBufferAndPrint [18:12:52]line [18:12:52]line [18:12:52]line [18:12:52]line [18:12:52]line [18:12:52]written 0, free lines is 3167 [18:12:52]MH_Cut [18:12:52]Write to MH i2c: D1 01 00 1E 07 01 F7 [18:12:52]Write i2c OK [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: D1 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: D1 01 00 [18:12:52]MH_I2C_Read... [18:12:52]Read from MH i2c: D1 01 00 1E 07 00 F6 [18:12:52]Write to MH i2c: 01 00 00 1F 07 26 [18:12:52]Write i2c OK [18:12:52]MH_I2C_Read... [18:12:53]*** Cut start [18:12:53]*** Partial cut [18:12:53]*** CUTSNS_PIN = 1 [18:12:53]*** CUTSNS_PIN = 0 [18:12:53]*** Brake cut motor [18:12:53]Read from MH i2c: 01 [18:12:53]MH_I2C_Read... [18:12:53]*** Stop cut motor [18:12:53]*** Cut end [18:12:53]Read from MH i2c: 01 07 00 [18:12:53]MH_I2C_Read... [18:12:53]Read from MH i2c: 01 07 00 1F 07 00 00 00 00 00 FF 0F 3B [18:12:53]process_action close_receipt done [18:12:53]requested_data is exist [18:12:53]produce_requested_data [18:12:53]requested_item fm.sn is exist - process it [18:12:53]wFMCommunicate request_size=4 [18:12:53]MH_SAM_APDU [18:12:53]CAPDU: 80 11 00 00 [18:12:53]Write to MH i2c: E2 08 00 20 07 80 11 00 00 00 00 00 00 A1 [18:12:53]Write i2c OK [18:12:53]MH_I2C_Read... [18:12:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:54]Read from MH i2c: E2 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: E2 17 00 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: E2 17 00 20 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [18:12:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:12:54]wFMCommunicate OK [18:12:54]requested_item fd.num is exist - process it [18:12:54]SAM_PROTO_GetFieldsCounters [18:12:54]wFMCommunicate request_size=4 [18:12:54]MH_SAM_APDU [18:12:54]CAPDU: 80 13 00 00 [18:12:54]Write to MH i2c: E2 08 00 21 07 80 13 00 00 00 00 00 00 A4 [18:12:54]Write i2c OK [18:12:54]MH_I2C_Read... [18:12:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:54]Read from MH i2c: E2 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: E2 62 00 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: E2 62 00 21 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 B1 [18:12:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 07 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C4 01 00 00 5E 04 04 00 C4 01 00 00 57 04 04 00 C5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:12:54]wFMCommunicate OK [18:12:54]SAM_PROTO_GetFieldsCounters done [18:12:54]requested_item shift.num is exist - process it [18:12:54]requested_item shift.opened is exist - process it [18:12:54]req_shift_opened [18:12:54]FM_GetShiftState [18:12:54]SAM_PROTO_GetShiftState [18:12:54]wFMCommunicate request_size=4 [18:12:54]MH_SAM_APDU [18:12:54]CAPDU: 80 13 01 00 [18:12:54]Write to MH i2c: E2 08 00 22 07 80 13 01 00 00 00 00 00 A6 [18:12:54]Write i2c OK [18:12:54]MH_I2C_Read... [18:12:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:54]Read from MH i2c: E2 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: E2 0E 00 [18:12:54]MH_I2C_Read... [18:12:54]Read from MH i2c: E2 0E 00 22 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9B [18:12:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:12:54]wFMCommunicate OK [18:12:54]SAM_PROTO_GetShiftState done [18:12:54]FM_GetShiftState done [18:12:54]req_shift_opened done [18:12:54]requested_item shift.open_date is exist - process it [18:12:54]req_shift_open_date [18:12:54]req_shift_open_date done [18:12:54]produce_requested_data done [18:12:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188423,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:12:54]process_action_free close_receipt [18:12:54]json_value_free [18:12:54]json_value_free done [18:12:54]process_json_proto returns [18:12:54]Send response to host [18:12:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188423,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:12:54]free response buf [18:12:54]execute_script done [18:12:54]execute_script returns [18:12:54]free content buf [18:12:54]Sock 7.Close socket [18:12:54]Sock 7.Thread stoped [18:13:46]accept exits with 9 [18:13:46]New connection [18:13:46]New thread 3066756452 created [18:13:46]Thread 3066613092 joined [18:13:46]Waiting for new connection... [18:13:46] Sock 9.Parse request [18:13:46]Sock 9.Check first char [18:13:46]Sock 9.First char is OK [18:13:46]request: POST /json_proto HTTP/1.0 [18:13:46]Method: POST [18:13:46]URL: /json_proto [18:13:46]Method is POST - this is cgi request [18:13:46]url: /json_proto [18:13:46]query_string will be loaded in cgi processing [18:13:46]execute_cgi json_proto POST (null) [18:13:46]execute_cgi path=json_proto method=POST [18:13:46]POST find Content-Length [18:13:46]Host: 172.17.42.131:8080 [18:13:46]Content-Length: 677 [18:13:46]Content-Type: application/json [18:13:46] [18:13:46]POST finish read [18:13:46]Found Content-Length = 677 [18:13:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:46]execute_script... [18:13:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210484", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:46]POST & json_proto [18:13:46]process_json_proto [18:13:46]json parsed OK: [18:13:46]protocol is kg_v1.0 [18:13:46]action value=close_receipt [18:13:46]process_action close_receipt [18:13:46]cmd_close_receipt [18:13:46]MH_GetDate [18:13:46]Write to MH i2c: F0 00 00 23 07 19 [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: F0 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: F0 09 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: F0 09 00 23 07 00 5B EB 17 67 A0 18 CA 66 CE [18:13:46]GetLastDocTimeStamp 1729620770 [18:13:46]current date 1729620827 [18:13:46]FM_GetShiftState [18:13:46]SAM_PROTO_GetShiftState [18:13:46]wFMCommunicate request_size=4 [18:13:46]MH_SAM_APDU [18:13:46]CAPDU: 80 13 01 00 [18:13:46]Write to MH i2c: E2 08 00 24 07 80 13 01 00 00 00 00 00 A8 [18:13:46]Write i2c OK [18:13:46]MH_I2C_Read... [18:13:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:46]Read from MH i2c: E2 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 0E 00 [18:13:46]MH_I2C_Read... [18:13:46]Read from MH i2c: E2 0E 00 24 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [18:13:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:13:46]wFMCommunicate OK [18:13:46]SAM_PROTO_GetShiftState done [18:13:46]FM_GetShiftState done [18:13:46]opened in 1729556094 [18:13:46]opened+sec_in_day 1729642494 [18:13:46]quantity*price = 50041 [18:13:46]sum+1 = 50042 [18:13:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 453 22.10.2024 18:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188424 ФПД: 64835682576230 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181347&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188424&fm=64835682576230&tin=02508201610067®Number=0000000000100030&sum=50000 [18:13:47]StoreToDocumentArchive [18:13:47]shift 461 fd 188424 [18:13:47]save to /storage/0461/doc_00188424 [18:13:47]save last doc name /storage/0461/doc_00188424 to /storage/kkm_last_doc_name [18:13:47]save OK [18:13:47]Clear old archive folders... [18:13:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:47]tlvbuf is 008FF1F0 [18:13:47]SAM_PROTO_ClearQueue [18:13:47]wFMCommunicate request_size=4 [18:13:47]MH_SAM_APDU [18:13:47]CAPDU: 80 09 00 00 [18:13:47]Write to MH i2c: E2 08 00 31 07 80 09 00 00 00 00 00 00 AA [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:47]Read from MH i2c: E2 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 31 07 00 90 00 AC [18:13:47]RAPDU: 90 00 [18:13:47]wFMCommunicate OK [18:13:47]SAM_PROTO_ClearQueue done [18:13:47]KKMCreateOFDPacket [18:13:47]OFDProtocolAddRootSTLVToBuf [18:13:47]FM_MakeSignedData [18:13:47]FM_MakeSignedData [18:13:47]SAM_PROTO_SignData [18:13:47]wFMCommunicate request_size=4 [18:13:47]MH_SAM_APDU [18:13:47]CAPDU: 80 0D 01 02 [18:13:47]Write to MH i2c: E2 08 00 32 07 80 0D 01 02 00 00 00 00 B2 [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:47]Read from MH i2c: E2 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 32 07 00 90 00 AD [18:13:47]RAPDU: 90 00 [18:13:47]wFMCommunicate OK [18:13:47]wFMCommunicate request_size=255 [18:13:47]MH_SAM_APDU [18:13: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 5B EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E0 02 00 35 04 06 00 3A [18:13:47]Write to MH i2c: E2 02 01 33 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 5B EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E0 02 00 35 04 06 00 3A 00 00 A1 [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:47]Read from MH i2c: E2 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 33 07 00 90 00 AE [18:13:47]RAPDU: 90 00 [18:13:47]wFMCommunicate OK [18:13:47]wFMCommunicate request_size=10 [18:13:47]MH_SAM_APDU [18:13:47]CAPDU: 80 0D 02 02 05 F7 BB D4 27 66 [18:13:47]Write to MH i2c: E2 0D 00 34 07 80 0D 02 02 05 00 F7 BB D4 27 66 00 00 D2 [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:47]Read from MH i2c: E2 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 03 00 34 07 00 90 00 AF [18:13:47]RAPDU: 90 00 [18:13:47]wFMCommunicate OK [18:13:47]wFMCommunicate request_size=4 [18:13:47]MH_SAM_APDU [18:13:47]CAPDU: 80 0D 03 02 [18:13:47]Write to MH i2c: E2 08 00 35 07 80 0D 03 02 00 00 00 00 B7 [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:47]Read from MH i2c: E2 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 0B 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 0B 00 35 07 00 6C B1 FD F8 5C BC C8 5E 90 00 08 [18:13:47]RAPDU: 6C B1 FD F8 5C BC C8 5E 90 00 [18:13:47]wFMCommunicate OK [18:13:47]SAM_PROTO_SignData done [18:13:47]FM_MakeSignedData done [18:13:47]CreateOFDProtocolMessage [18:13:47]wFMCommunicate request_size=4 [18:13:47]MH_SAM_APDU [18:13:47]CAPDU: 80 11 00 00 [18:13:47]Write to MH i2c: E2 08 00 36 07 80 11 00 00 00 00 00 00 B7 [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:47]Read from MH i2c: E2 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 17 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: E2 17 00 36 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [18:13:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:13:47]wFMCommunicate OK [18:13:47]CreateOFDProtocolMessage done [18:13:47]OFDSenderStorePacket 188424 [18:13:47]StoreOFDPacket docnum=188424 [18:13:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 25 07 01 30 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 5B EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E0 02 00 35 04 06 00 3A F7 BB D4 27 66 6C B1 FD F8 5C BC C8 5E [18:13:47]CheckFolder [18:13:47]dirname=/storage/ofd_packets [18:13:47]CheckFolder done [18:13:47]ProducePacketName [18:13:47]name=ofd_packets/00188424 [18:13:47]NVStorageSaveData ofd_packets/00188424 [18:13:47]File name is /storage/ofd_packets/00188424 [18:13:47]Write 301 bytes [18:13:47]NVStorageSaveData done [18:13:47]OFDSenderStorePacket done [18:13:47]KKMCreateOFDPacket done [18:13:47]NVStorageSaveData kkm_last_timestamp [18:13:47]File name is /storage/kkm_last_timestamp [18:13:47]Write 4 bytes [18:13:47]NVStorageSaveData done [18:13:47]ExternCall_PrintAddStr [18:13:47]wPrintStart [18:13:47]Write to MH i2c: 01 00 00 37 07 3E [18:13:47]Write i2c OK [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: 01 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: 01 07 00 [18:13:47]MH_I2C_Read... [18:13:47]Read from MH i2c: 01 07 00 37 07 00 00 00 00 00 FF 0F 53 [18:13:47]RasterBufferAndPrint [18:13:47]line Счет N : (1)210484 [18:13:47]line ИНН: 02508201610067 [18:13:47]line Контрольно-Кассовый Чек [18:13:47]line ПРОДАЖА [18:13:47]line ТРК (МРК, ГНК) : 12 [18:13:47]line Товар: 2710124130 [18:13:47]line Аи-92-К-3 [18:13:47]line 7.480 * 66.90 [18:13:47]line = 500.41 [18:13:47]line НДС 12% НСП 1% [18:13:47]line > о реализуемом товаре [18:13:47]line ОКРУГЛЕНИЕ: -0.41 [18:13:47]line ИТОГО: 500.00 [18:13:47]line Внесено: 500.00 [18:13:47]line СДАЧА: 0.00 [18:13:47]line НСП 1% : 4.43 [18:13:47]line НДС 12% : 53.14 [18:13:47]line Наличными: 500.00 [18:13:47]line Безнал.: 0.00 [18:13:47]line Место: АЗС № 86 "Партнер Нефть" [18:13:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:13:47]line СНО: Общий режим [18:13:47]line Чек 453 22.10.2024 18:13 [18:13:47]line Смена: 461 ФФД: 1.0 [18:13:47]line ЗНМ: 0300000155 [18:13:47]line РНМ: 0000000000100030 [18:13:47]line Версия ККМ: 001 [18:13:47]line ФМ: 0000000000965340 [18:13:47]line ФД: 188424 [18:13:47]line ФПД: 64835682576230 [18:13:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181347&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188424&fm=64835682576230&tin=02508201610067®Number=0000000000100030&sum=50000 [18:13:48]written 0, free lines is 4095 [18:13:48]Write to MH i2c: 01 00 00 62 07 69 [18:13:48]Write i2c OK [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: 01 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: 01 07 00 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: 01 07 00 62 07 00 00 00 00 00 5F 0C DB [18:13:48]RasterBufferAndPrint [18:13:48]line [18:13:48]line [18:13:48]line [18:13:48]line [18:13:48]line [18:13:48]written 0, free lines is 3170 [18:13:48]MH_Cut [18:13:48]Write to MH i2c: D1 01 00 69 07 01 42 [18:13:48]Write i2c OK [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: D1 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: D1 01 00 [18:13:48]MH_I2C_Read... [18:13:48]Read from MH i2c: D1 01 00 69 07 00 41 [18:13:48]Write to MH i2c: 01 00 00 6A 07 71 [18:13:48]Write i2c OK [18:13:48]MH_I2C_Read... [18:13:49]*** Cut start [18:13:49]*** Partial cut [18:13:49]*** CUTSNS_PIN = 1 [18:13:50]*** CUTSNS_PIN = 0 [18:13:50]*** Brake cut motor [18:13:50]Read from MH i2c: 01 [18:13:50]MH_I2C_Read... [18:13:50]*** Stop cut motor [18:13:50]*** Cut end [18:13:50]Read from MH i2c: 01 07 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: 01 07 00 6A 07 00 00 00 00 00 FF 0F 86 [18:13:50]process_action close_receipt done [18:13:50]requested_data is exist [18:13:50]produce_requested_data [18:13:50]requested_item fm.sn is exist - process it [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 11 00 00 [18:13:50]Write to MH i2c: E2 08 00 6B 07 80 11 00 00 00 00 00 00 EC [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 17 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 17 00 6B 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [18:13:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:13:50]wFMCommunicate OK [18:13:50]requested_item fd.num is exist - process it [18:13:50]SAM_PROTO_GetFieldsCounters [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 13 00 00 [18:13:50]Write to MH i2c: E2 08 00 6C 07 80 13 00 00 00 00 00 00 EF [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 62 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 62 00 6C 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 00 [18:13:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 08 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C5 01 00 00 5E 04 04 00 C5 01 00 00 57 04 04 00 C6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:13:50]wFMCommunicate OK [18:13:50]SAM_PROTO_GetFieldsCounters done [18:13:50]requested_item shift.num is exist - process it [18:13:50]requested_item shift.opened is exist - process it [18:13:50]req_shift_opened [18:13:50]FM_GetShiftState [18:13:50]SAM_PROTO_GetShiftState [18:13:50]wFMCommunicate request_size=4 [18:13:50]MH_SAM_APDU [18:13:50]CAPDU: 80 13 01 00 [18:13:50]Write to MH i2c: E2 08 00 6D 07 80 13 01 00 00 00 00 00 F1 [18:13:50]Write i2c OK [18:13:50]MH_I2C_Read... [18:13:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:50]Read from MH i2c: E2 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 0E 00 [18:13:50]MH_I2C_Read... [18:13:50]Read from MH i2c: E2 0E 00 6D 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E6 [18:13:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:13:50]wFMCommunicate OK [18:13:50]SAM_PROTO_GetShiftState done [18:13:50]FM_GetShiftState done [18:13:50]req_shift_opened done [18:13:50]requested_item shift.open_date is exist - process it [18:13:50]req_shift_open_date [18:13:50]req_shift_open_date done [18:13:50]produce_requested_data done [18:13:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188424,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:13:50]process_action_free close_receipt [18:13:50]json_value_free [18:13:50]json_value_free done [18:13:50]process_json_proto returns [18:13:50]Send response to host [18:13:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188424,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:13:50]free response buf [18:13:50]execute_script done [18:13:50]execute_script returns [18:13:50]free content buf [18:13:50]Sock 9.Close socket [18:13:50]Sock 9.Thread stoped [18:13:55]ConnectInit Can't connect to host [18:13:55]CommunicateWithHost connect error [18:13:55]CommunicateWithHost err = -1 [18:13:55]OFD Sender: Server communicate error [18:13:55]OFD Sender: Processing packet 188422 [packets to send 1064, broken 1061] [18:13:55]ProducePacketName [18:13:55]name=ofd_packets/00188422 [18:13:55]OFD Sender: To server: pG, [18:13:55]CommunicateWithHost lk.salyk.kg:30040 [18:13:55]ConnectInit lk.salyk.kg [18:13:56]Connected sock=9 [18:13:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D8 3D 07 01 D9 D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 C3 01 00 00 F4 03 04 00 DF EA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E0 02 00 35 04 06 00 25 CA B1 E2 24 10 B0 77 DD 88 40 88 97 1B [18:13:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2B 20 47 00 30 C1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 06 E0 02 00 F4 03 04 00 4F 95 17 67 B6 04 01 00 00 CA F8 94 35 66 8B 87 6C [18:13:56]CommunicateWithHost err = 0 [18:13:56]CheckOFDResponse [18:13:56]1017 (14) - 77093643461234 [18:13:56]1041 (16) - 0000000000965340 [18:13:56]1040 (4) - 188422 [18:13:56]1012 (4) - 22.10.2024 12:06 [18:13:56]1206 (1) - 0 [18:13:56]OFD Sender: Remove packet 188422 [18:13:56]ProducePacketName [18:13:56]name=ofd_packets/00188422 [18:13:56]NVStorageDeleteData [18:13:57]OFD Sender: Processing packet 188423 [packets to send 1063, broken 1061] [18:13:57]ProducePacketName [18:13:57]name=ofd_packets/00188423 [18:13:57]OFD Sender: To server: pG, [18:13:57]CommunicateWithHost lk.salyk.kg:30040 [18:13:57]ConnectInit lk.salyk.kg [18:13:57]Connected sock=9 [18:13:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 19 14 07 01 EC A3 5A 03 01 00 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 C4 01 00 00 F4 03 04 00 22 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E0 02 00 35 04 06 00 C6 DF 58 93 D6 7C 20 B4 F5 CF 81 08 09 5D [18:13:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE CA 47 00 1D DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 07 E0 02 00 F4 03 04 00 50 95 17 67 B6 04 01 00 00 42 27 02 D9 C8 09 9A E5 [18:13:57]CommunicateWithHost err = 0 [18:13:57]CheckOFDResponse [18:13:57]1017 (14) - 77093643461234 [18:13:57]1041 (16) - 0000000000965340 [18:13:57]1040 (4) - 188423 [18:13:57]1012 (4) - 22.10.2024 12:06 [18:13:57]1206 (1) - 0 [18:13:57]OFD Sender: Remove packet 188423 [18:13:57]ProducePacketName [18:13:57]name=ofd_packets/00188423 [18:13:57]NVStorageDeleteData [18:13:58]OFD Sender: Processing packet 188424 [packets to send 1062, broken 1061] [18:13:58]ProducePacketName [18:13:58]name=ofd_packets/00188424 [18:13:58]OFD Sender: To server: pG, [18:13:58]CommunicateWithHost lk.salyk.kg:30040 [18:13:58]ConnectInit lk.salyk.kg [18:13:58]Connected sock=10 [18:13:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E8 25 07 01 30 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C5 01 00 00 F4 03 04 00 5B EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E0 02 00 35 04 06 00 3A F7 BB D4 27 66 6C B1 FD F8 5C BC C8 5E [18:13:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 D3 47 00 B1 1C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 08 E0 02 00 F4 03 04 00 52 95 17 67 B6 04 01 00 00 F7 E3 5F 1F 01 E8 D0 47 [18:13:58]CommunicateWithHost err = 0 [18:13:58]CheckOFDResponse [18:13:58]1017 (14) - 77093643461234 [18:13:58]1041 (16) - 0000000000965340 [18:13:58]1040 (4) - 188424 [18:13:58]1012 (4) - 22.10.2024 12:06 [18:13:58]1206 (1) - 0 [18:13:58]OFD Sender: Remove packet 188424 [18:13:58]ProducePacketName [18:13:58]name=ofd_packets/00188424 [18:13:58]NVStorageDeleteData [18:13:59]OFD Sender: No OFD packet to send [18:14:04]OFD Sender: No OFD packet to send [18:14:09]OFD Sender: No OFD packet to send [18:14:14]OFD Sender: No OFD packet to send [18:14:19]OFD Sender: No OFD packet to send [18:14:24]OFD Sender: No OFD packet to send [18:14:29]OFD Sender: No OFD packet to send [18:14:34]OFD Sender: No OFD packet to send [18:14:39]OFD Sender: No OFD packet to send [18:14:44]OFD Sender: No OFD packet to send [18:14:49]OFD Sender: No OFD packet to send [18:14:54]OFD Sender: No OFD packet to send [18:14:59]OFD Sender: No OFD packet to send [18:15:04]OFD Sender: No OFD packet to send [18:15:09]OFD Sender: No OFD packet to send [18:15:14]OFD Sender: No OFD packet to send [18:15:19]OFD Sender: No OFD packet to send [18:15:24]OFD Sender: No OFD packet to send [18:15:29]OFD Sender: No OFD packet to send [18:15:34]OFD Sender: No OFD packet to send [18:15:39]OFD Sender: No OFD packet to send [18:15:44]OFD Sender: No OFD packet to send [18:15:49]OFD Sender: No OFD packet to send [18:15:54]OFD Sender: No OFD packet to send [18:15:59]OFD Sender: No OFD packet to send [18:16:04]OFD Sender: No OFD packet to send [18:16:09]OFD Sender: No OFD packet to send [18:16:14]OFD Sender: No OFD packet to send [18:16:15]accept exits with 7 [18:16:15]New connection [18:16:15]New thread 3066613092 created [18:16:15]Thread 3066756452 joined [18:16:15]Waiting for new connection... [18:16:15] Sock 7.Parse request [18:16:15]Sock 7.Check first char [18:16:15]Sock 7.First char is OK [18:16:15]request: POST /json_proto HTTP/1.0 [18:16:15]Method: POST [18:16:15]URL: /json_proto [18:16:15]Method is POST - this is cgi request [18:16:15]url: /json_proto [18:16:15]query_string will be loaded in cgi processing [18:16:15]execute_cgi json_proto POST (null) [18:16:15]execute_cgi path=json_proto method=POST [18:16:15]POST find Content-Length [18:16:15]Host: 172.17.42.131:8080 [18:16:15]Content-Length: 682 [18:16:15]Content-Type: application/json [18:16:15] [18:16:15]POST finish read [18:16:15]Found Content-Length = 682 [18:16:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [18:16:15]execute_script... [18:16: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)210485", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [18:16:15]POST & json_proto [18:16:15]process_json_proto [18:16:15]json parsed OK: [18:16:15]protocol is kg_v1.0 [18:16:15]action value=close_receipt [18:16:15]process_action close_receipt [18:16:15]cmd_close_receipt [18:16:15]MH_GetDate [18:16:15]Write to MH i2c: F0 00 00 6E 07 64 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: F0 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: F0 09 00 [18:16:15]MH_I2C_Read... [18:16:15]Read from MH i2c: F0 09 00 6E 07 00 F1 EB 17 67 A0 18 CA 66 AF [18:16:15]GetLastDocTimeStamp 1729620827 [18:16:15]current date 1729620977 [18:16:15]FM_GetShiftState [18:16:15]SAM_PROTO_GetShiftState [18:16:15]wFMCommunicate request_size=4 [18:16:15]MH_SAM_APDU [18:16:15]CAPDU: 80 13 01 00 [18:16:15]Write to MH i2c: E2 08 00 6F 07 80 13 01 00 00 00 00 00 F3 [18:16:15]Write i2c OK [18:16:15]MH_I2C_Read... [18:16:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:16]Read from MH i2c: E2 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 0E 00 [18:16:16]MH_I2C_Read... [18:16:16]Read from MH i2c: E2 0E 00 6F 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E8 [18:16:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:16:16]wFMCommunicate OK [18:16:16]SAM_PROTO_GetShiftState done [18:16:16]FM_GetShiftState done [18:16:16]opened in 1729556094 [18:16:16]opened+sec_in_day 1729642494 [18:16:16]quantity*price = 150056 [18:16:16]sum+1 = 150058 [18:16:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 454 22.10.2024 18:16 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188425 ФПД: 147557488854852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188425&fm=147557488854852&tin=02508201610067®Number=0000000000100030&sum=150000 [18:16:17]StoreToDocumentArchive [18:16:17]shift 461 fd 188425 [18:16:17]save to /storage/0461/doc_00188425 [18:16:17]save last doc name /storage/0461/doc_00188425 to /storage/kkm_last_doc_name [18:16:17]save OK [18:16:17]Clear old archive folders... [18:16:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:16:17]tlvbuf is 009255C0 [18:16:17]SAM_PROTO_ClearQueue [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 09 00 00 [18:16:17]Write to MH i2c: E2 08 00 7C 07 80 09 00 00 00 00 00 00 F5 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 7C 07 00 90 00 F7 [18:16:17]RAPDU: 90 00 [18:16:17]wFMCommunicate OK [18:16:17]SAM_PROTO_ClearQueue done [18:16:17]KKMCreateOFDPacket [18:16:17]OFDProtocolAddRootSTLVToBuf [18:16:17]FM_MakeSignedData [18:16:17]FM_MakeSignedData [18:16:17]SAM_PROTO_SignData [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 0D 01 02 [18:16:17]Write to MH i2c: E2 08 00 7D 07 80 0D 01 02 00 00 00 00 FD [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 7D 07 00 90 00 F8 [18:16:17]RAPDU: 90 00 [18:16:17]wFMCommunicate OK [18:16:17]wFMCommunicate request_size=255 [18:16:17]MH_SAM_APDU [18:16: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 F1 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E0 02 00 35 04 06 00 86 [18:16:17]Write to MH i2c: E2 02 01 7E 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 F1 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E0 02 00 35 04 06 00 86 00 00 19 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 7E 07 00 90 00 F9 [18:16:17]RAPDU: 90 00 [18:16:17]wFMCommunicate OK [18:16:17]wFMCommunicate request_size=10 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 0D 02 02 05 33 E7 B5 07 44 [18:16:17]Write to MH i2c: E2 0D 00 7F 07 80 0D 02 02 05 00 33 E7 B5 07 44 00 00 24 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 03 00 7F 07 00 90 00 FA [18:16:17]RAPDU: 90 00 [18:16:17]wFMCommunicate OK [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 0D 03 02 [18:16:17]Write to MH i2c: E2 08 00 80 07 80 0D 03 02 00 00 00 00 02 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 0B 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 0B 00 80 07 00 58 B6 AC EF 3F FC C1 60 90 00 08 [18:16:17]RAPDU: 58 B6 AC EF 3F FC C1 60 90 00 [18:16:17]wFMCommunicate OK [18:16:17]SAM_PROTO_SignData done [18:16:17]FM_MakeSignedData done [18:16:17]CreateOFDProtocolMessage [18:16:17]wFMCommunicate request_size=4 [18:16:17]MH_SAM_APDU [18:16:17]CAPDU: 80 11 00 00 [18:16:17]Write to MH i2c: E2 08 00 81 07 80 11 00 00 00 00 00 00 02 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:17]Read from MH i2c: E2 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 17 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: E2 17 00 81 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [18:16:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:16:17]wFMCommunicate OK [18:16:17]CreateOFDProtocolMessage done [18:16:17]OFDSenderStorePacket 188425 [18:16:17]StoreOFDPacket docnum=188425 [18:16:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 6E 07 01 7F 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 F1 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E0 02 00 35 04 06 00 86 33 E7 B5 07 44 58 B6 AC EF 3F FC C1 60 [18:16:17]CheckFolder [18:16:17]dirname=/storage/ofd_packets [18:16:17]CheckFolder done [18:16:17]ProducePacketName [18:16:17]name=ofd_packets/00188425 [18:16:17]NVStorageSaveData ofd_packets/00188425 [18:16:17]File name is /storage/ofd_packets/00188425 [18:16:17]Write 301 bytes [18:16:17]NVStorageSaveData done [18:16:17]OFDSenderStorePacket done [18:16:17]KKMCreateOFDPacket done [18:16:17]NVStorageSaveData kkm_last_timestamp [18:16:17]File name is /storage/kkm_last_timestamp [18:16:17]Write 4 bytes [18:16:17]NVStorageSaveData done [18:16:17]ExternCall_PrintAddStr [18:16:17]wPrintStart [18:16:17]Write to MH i2c: 01 00 00 82 07 89 [18:16:17]Write i2c OK [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 07 00 [18:16:17]MH_I2C_Read... [18:16:17]Read from MH i2c: 01 07 00 82 07 00 00 00 00 00 FF 0F 9E [18:16:17]RasterBufferAndPrint [18:16:17]line Счет N : (1)210485 [18:16:17]line ИНН: 02508201610067 [18:16:17]line Контрольно-Кассовый Чек [18:16:17]line ПРОДАЖА [18:16:17]line ТРК (МРК, ГНК) : 12 [18:16:17]line Товар: 2710124130 [18:16:17]line Аи-92-К-3 [18:16:17]line 22.430 * 66.90 [18:16:17]line = 1500.57 [18:16:17]line НДС 12% НСП 1% [18:16:17]line > о реализуемом товаре [18:16:17]line ОКРУГЛЕНИЕ: -0.57 [18:16:17]line ИТОГО: 1500.00 [18:16:17]line Внесено: 1500.00 [18:16:17]line СДАЧА: 0.00 [18:16:17]line НСП 1% : 13.28 [18:16:17]line НДС 12% : 159.35 [18:16:17]line Наличными: 1500.00 [18:16:17]line Безнал.: 0.00 [18:16:17]line Место: АЗС № 86 "Партнер Нефть" [18:16:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:16:17]line СНО: Общий режим [18:16:17]line Чек 454 22.10.2024 18:16 [18:16:17]line Смена: 461 ФФД: 1.0 [18:16:17]line ЗНМ: 0300000155 [18:16:17]line РНМ: 0000000000100030 [18:16:17]line Версия ККМ: 001 [18:16:17]line ФМ: 0000000000965340 [18:16:17]line ФД: 188425 [18:16:17]line ФПД: 147557488854852 [18:16:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181617&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188425&fm=147557488854852&tin=02508201610067®Number=0000000000100030&sum=150000 [18:16:17]written 0, free lines is 4095 [18:16:17]OFD Sender: Processing packet 188425 [packets to send 1062, broken 1061] [18:16:17]ProducePacketName [18:16:17]name=ofd_packets/00188425 [18:16:17]OFD Sender: To server: pG, [18:16:17]CommunicateWithHost lk.salyk.kg:30040 [18:16:17]ConnectInit lk.salyk.kg [18:16:18]Write to MH i2c: 01 00 00 AD 07 B4 [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 07 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: 01 07 00 AD 07 00 00 00 00 00 60 0C 27 [18:16:18]RasterBufferAndPrint [18:16:18]line [18:16:18]line [18:16:18]line [18:16:18]line [18:16:18]line [18:16:18]written 0, free lines is 3171 [18:16:18]Connected sock=10 [18:16:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 74 6E 07 01 7F 2D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C6 01 00 00 F4 03 04 00 F1 EB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 09 E0 02 00 35 04 06 00 86 33 E7 B5 07 44 58 B6 AC EF 3F FC C1 60 [18:16:18]MH_Cut [18:16:18]Write to MH i2c: D1 01 00 B4 07 01 8D [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: D1 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: D1 01 00 [18:16:18]MH_I2C_Read... [18:16:18]Read from MH i2c: D1 01 00 B4 07 00 8C [18:16:18]Write to MH i2c: 01 00 00 B5 07 BC [18:16:18]Write i2c OK [18:16:18]MH_I2C_Read... [18:16:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 53 CB 47 00 3C 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 39 36 35 33 34 30 10 04 04 00 09 E0 02 00 F4 03 04 00 DD 95 17 67 B6 04 01 00 00 B6 6A 3B E2 5F 11 94 05 [18:16:18]CommunicateWithHost err = 0 [18:16:18]CheckOFDResponse [18:16:18]1017 (14) - 77093643461234 [18:16:18]1041 (16) - 0000000000965340 [18:16:18]1040 (4) - 188425 [18:16:18]1012 (4) - 22.10.2024 12:09 [18:16:18]1206 (1) - 0 [18:16:18]OFD Sender: Remove packet 188425 [18:16:18]ProducePacketName [18:16:18]name=ofd_packets/00188425 [18:16:18]NVStorageDeleteData [18:16:19]OFD Sender: No OFD packet to send [18:16:19]*** Cut start [18:16:19]*** Partial cut [18:16:19]*** CUTSNS_PIN = 1 [18:16:19]*** CUTSNS_PIN = 0 [18:16:19]*** Brake cut motor [18:16:20]Read from MH i2c: 01 [18:16:20]MH_I2C_Read... [18:16:20]*** Stop cut motor [18:16:20]*** Cut end [18:16:20]Read from MH i2c: 01 07 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: 01 07 00 B5 07 00 00 00 00 00 FF 0F D1 [18:16:20]process_action close_receipt done [18:16:20]requested_data is exist [18:16:20]produce_requested_data [18:16:20]requested_item fm.sn is exist - process it [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 11 00 00 [18:16:20]Write to MH i2c: E2 08 00 B6 07 80 11 00 00 00 00 00 00 37 [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 17 00 B6 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [18:16:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:16:20]wFMCommunicate OK [18:16:20]requested_item fd.num is exist - process it [18:16:20]SAM_PROTO_GetFieldsCounters [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 13 00 00 [18:16:20]Write to MH i2c: E2 08 00 B7 07 80 13 00 00 00 00 00 00 3A [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 62 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 62 00 B7 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 4F [18:16:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 09 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C6 01 00 00 5E 04 04 00 C6 01 00 00 57 04 04 00 C7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:16:20]wFMCommunicate OK [18:16:20]SAM_PROTO_GetFieldsCounters done [18:16:20]requested_item shift.num is exist - process it [18:16:20]requested_item shift.opened is exist - process it [18:16:20]req_shift_opened [18:16:20]FM_GetShiftState [18:16:20]SAM_PROTO_GetShiftState [18:16:20]wFMCommunicate request_size=4 [18:16:20]MH_SAM_APDU [18:16:20]CAPDU: 80 13 01 00 [18:16:20]Write to MH i2c: E2 08 00 B8 07 80 13 01 00 00 00 00 00 3C [18:16:20]Write i2c OK [18:16:20]MH_I2C_Read... [18:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:16:20]Read from MH i2c: E2 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 0E 00 [18:16:20]MH_I2C_Read... [18:16:20]Read from MH i2c: E2 0E 00 B8 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 31 [18:16:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:16:20]wFMCommunicate OK [18:16:20]SAM_PROTO_GetShiftState done [18:16:20]FM_GetShiftState done [18:16:20]req_shift_opened done [18:16:20]requested_item shift.open_date is exist - process it [18:16:20]req_shift_open_date [18:16:20]req_shift_open_date done [18:16:20]produce_requested_data done [18:16:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188425,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:16:20]process_action_free close_receipt [18:16:20]json_value_free [18:16:20]json_value_free done [18:16:20]process_json_proto returns [18:16:20]Send response to host [18:16:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188425,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:16:20]free response buf [18:16:20]execute_script done [18:16:20]execute_script returns [18:16:20]free content buf [18:16:20]Sock 7.Close socket [18:16:20]Sock 7.Thread stoped [18:16:24]OFD Sender: No OFD packet to send [18:16:29]OFD Sender: No OFD packet to send [18:16:34]OFD Sender: No OFD packet to send [18:16:39]OFD Sender: No OFD packet to send [18:16:44]OFD Sender: No OFD packet to send [18:16:49]OFD Sender: No OFD packet to send [18:16:54]OFD Sender: No OFD packet to send [18:16:59]OFD Sender: No OFD packet to send [18:17:04]OFD Sender: No OFD packet to send [18:17:09]OFD Sender: No OFD packet to send [18:17:14]OFD Sender: No OFD packet to send [18:17:19]OFD Sender: No OFD packet to send [18:17:24]OFD Sender: No OFD packet to send [18:17:29]OFD Sender: No OFD packet to send [18:17:34]OFD Sender: No OFD packet to send [18:17:39]OFD Sender: No OFD packet to send [18:17:44]OFD Sender: No OFD packet to send [18:17:49]OFD Sender: No OFD packet to send [18:17:54]OFD Sender: No OFD packet to send [18:17:59]OFD Sender: No OFD packet to send [18:18:04]OFD Sender: No OFD packet to send [18:18:09]OFD Sender: No OFD packet to send [18:18:14]OFD Sender: No OFD packet to send [18:18:19]OFD Sender: No OFD packet to send [18:18:24]OFD Sender: No OFD packet to send [18:18:29]OFD Sender: No OFD packet to send [18:18:34]OFD Sender: No OFD packet to send [18:18:39]OFD Sender: No OFD packet to send [18:18:41]accept exits with 9 [18:18:41]New connection [18:18:41]New thread 3066756452 created [18:18:41]Thread 3066613092 joined [18:18:41]Waiting for new connection... [18:18:41] Sock 9.Parse request [18:18:41]Sock 9.Check first char [18:18:41]Sock 9.First char is OK [18:18:41]request: POST /json_proto HTTP/1.0 [18:18:41]Method: POST [18:18:41]URL: /json_proto [18:18:41]Method is POST - this is cgi request [18:18:41]url: /json_proto [18:18:41]query_string will be loaded in cgi processing [18:18:41]execute_cgi json_proto POST (null) [18:18:41]execute_cgi path=json_proto method=POST [18:18:41]POST find Content-Length [18:18:41]Host: 172.17.42.131:8080 [18:18:41]Content-Length: 677 [18:18:41]Content-Type: application/json [18:18:41] [18:18:41]POST finish read [18:18:41]Found Content-Length = 677 [18:18:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:41]execute_script... [18:18: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)210486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:41]POST & json_proto [18:18:41]process_json_proto [18:18:41]json parsed OK: [18:18:41]protocol is kg_v1.0 [18:18:41]action value=close_receipt [18:18:41]process_action close_receipt [18:18:41]cmd_close_receipt [18:18:41]MH_GetDate [18:18:41]Write to MH i2c: F0 00 00 B9 07 AF [18:18:41]Write i2c OK [18:18:41]MH_I2C_Read... [18:18:41]Read from MH i2c: F0 [18:18:41]MH_I2C_Read... [18:18:41]Read from MH i2c: F0 09 00 [18:18:41]MH_I2C_Read... [18:18:41]Read from MH i2c: F0 09 00 B9 07 00 83 EC 17 67 A0 18 CA 66 8D [18:18:41]GetLastDocTimeStamp 1729620977 [18:18:41]current date 1729621123 [18:18:41]FM_GetShiftState [18:18:41]SAM_PROTO_GetShiftState [18:18:41]wFMCommunicate request_size=4 [18:18:41]MH_SAM_APDU [18:18:41]CAPDU: 80 13 01 00 [18:18:41]Write to MH i2c: E2 08 00 BA 07 80 13 01 00 00 00 00 00 3E [18:18:41]Write i2c OK [18:18:41]MH_I2C_Read... [18:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:41]Read from MH i2c: E2 [18:18:41]MH_I2C_Read... [18:18:41]Read from MH i2c: E2 0E 00 [18:18:41]MH_I2C_Read... [18:18:41]Read from MH i2c: E2 0E 00 BA 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 33 [18:18:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:18:41]wFMCommunicate OK [18:18:41]SAM_PROTO_GetShiftState done [18:18:41]FM_GetShiftState done [18:18:41]opened in 1729556094 [18:18:41]opened+sec_in_day 1729642494 [18:18:41]quantity*price = 50041 [18:18:41]sum+1 = 50042 [18:18:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 455 22.10.2024 18:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188426 ФПД: 216584876868902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188426&fm=216584876868902&tin=02508201610067®Number=0000000000100030&sum=50000 [18:18:43]StoreToDocumentArchive [18:18:43]shift 461 fd 188426 [18:18:43]save to /storage/0461/doc_00188426 [18:18:43]save last doc name /storage/0461/doc_00188426 to /storage/kkm_last_doc_name [18:18:43]save OK [18:18:43]Clear old archive folders... [18:18:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:43]tlvbuf is 009245A0 [18:18:43]SAM_PROTO_ClearQueue [18:18:43]wFMCommunicate request_size=4 [18:18:43]MH_SAM_APDU [18:18:43]CAPDU: 80 09 00 00 [18:18:43]Write to MH i2c: E2 08 00 C7 07 80 09 00 00 00 00 00 00 40 [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:43]Read from MH i2c: E2 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 C7 07 00 90 00 42 [18:18:43]RAPDU: 90 00 [18:18:43]wFMCommunicate OK [18:18:43]SAM_PROTO_ClearQueue done [18:18:43]KKMCreateOFDPacket [18:18:43]OFDProtocolAddRootSTLVToBuf [18:18:43]FM_MakeSignedData [18:18:43]FM_MakeSignedData [18:18:43]SAM_PROTO_SignData [18:18:43]wFMCommunicate request_size=4 [18:18:43]MH_SAM_APDU [18:18:43]CAPDU: 80 0D 01 02 [18:18:43]Write to MH i2c: E2 08 00 C8 07 80 0D 01 02 00 00 00 00 48 [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:43]Read from MH i2c: E2 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 C8 07 00 90 00 43 [18:18:43]RAPDU: 90 00 [18:18:43]wFMCommunicate OK [18:18:43]wFMCommunicate request_size=255 [18:18:43]MH_SAM_APDU [18:18: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 83 EC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E0 02 00 35 04 06 00 C4 [18:18:43]Write to MH i2c: E2 02 01 C9 07 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 83 EC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E0 02 00 35 04 06 00 C4 00 00 EE [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:43]Read from MH i2c: E2 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 C9 07 00 90 00 44 [18:18:43]RAPDU: 90 00 [18:18:43]wFMCommunicate OK [18:18:43]wFMCommunicate request_size=10 [18:18:43]MH_SAM_APDU [18:18:43]CAPDU: 80 0D 02 02 05 FB 98 A6 45 26 [18:18:43]Write to MH i2c: E2 0D 00 CA 07 80 0D 02 02 05 00 FB 98 A6 45 26 00 00 F9 [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:43]Read from MH i2c: E2 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 03 00 CA 07 00 90 00 45 [18:18:43]RAPDU: 90 00 [18:18:43]wFMCommunicate OK [18:18:43]wFMCommunicate request_size=4 [18:18:43]MH_SAM_APDU [18:18:43]CAPDU: 80 0D 03 02 [18:18:43]Write to MH i2c: E2 08 00 CB 07 80 0D 03 02 00 00 00 00 4D [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:43]Read from MH i2c: E2 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 0B 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 0B 00 CB 07 00 E7 3E 62 43 13 9D FE A4 90 00 6A [18:18:43]RAPDU: E7 3E 62 43 13 9D FE A4 90 00 [18:18:43]wFMCommunicate OK [18:18:43]SAM_PROTO_SignData done [18:18:43]FM_MakeSignedData done [18:18:43]CreateOFDProtocolMessage [18:18:43]wFMCommunicate request_size=4 [18:18:43]MH_SAM_APDU [18:18:43]CAPDU: 80 11 00 00 [18:18:43]Write to MH i2c: E2 08 00 CC 07 80 11 00 00 00 00 00 00 4D [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:43]Read from MH i2c: E2 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 17 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: E2 17 00 CC 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [18:18:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:18:43]wFMCommunicate OK [18:18:43]CreateOFDProtocolMessage done [18:18:43]OFDSenderStorePacket 188426 [18:18:43]StoreOFDPacket docnum=188426 [18:18:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 95 07 01 25 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 83 EC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E0 02 00 35 04 06 00 C4 FB 98 A6 45 26 E7 3E 62 43 13 9D FE A4 [18:18:43]CheckFolder [18:18:43]dirname=/storage/ofd_packets [18:18:43]CheckFolder done [18:18:43]ProducePacketName [18:18:43]name=ofd_packets/00188426 [18:18:43]NVStorageSaveData ofd_packets/00188426 [18:18:43]File name is /storage/ofd_packets/00188426 [18:18:43]Write 301 bytes [18:18:43]NVStorageSaveData done [18:18:43]OFDSenderStorePacket done [18:18:43]KKMCreateOFDPacket done [18:18:43]NVStorageSaveData kkm_last_timestamp [18:18:43]File name is /storage/kkm_last_timestamp [18:18:43]Write 4 bytes [18:18:43]NVStorageSaveData done [18:18:43]ExternCall_PrintAddStr [18:18:43]wPrintStart [18:18:43]Write to MH i2c: 01 00 00 CD 07 D4 [18:18:43]Write i2c OK [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: 01 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: 01 07 00 [18:18:43]MH_I2C_Read... [18:18:43]Read from MH i2c: 01 07 00 CD 07 00 00 00 00 00 FF 0F E9 [18:18:43]RasterBufferAndPrint [18:18:43]line Счет N : (1)210486 [18:18:43]line ИНН: 02508201610067 [18:18:43]line Контрольно-Кассовый Чек [18:18:43]line ПРОДАЖА [18:18:43]line ТРК (МРК, ГНК) : 22 [18:18:43]line Товар: 2710124130 [18:18:43]line Аи-92-К-3 [18:18:43]line 7.480 * 66.90 [18:18:43]line = 500.41 [18:18:43]line НДС 12% НСП 1% [18:18:43]line > о реализуемом товаре [18:18:43]line ОКРУГЛЕНИЕ: -0.41 [18:18:43]line ИТОГО: 500.00 [18:18:43]line Внесено: 500.00 [18:18:43]line СДАЧА: 0.00 [18:18:43]line НСП 1% : 4.43 [18:18:43]line НДС 12% : 53.14 [18:18:43]line Наличными: 500.00 [18:18:43]line Безнал.: 0.00 [18:18:43]line Место: АЗС № 86 "Партнер Нефть" [18:18:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:18:43]line СНО: Общий режим [18:18:43]line Чек 455 22.10.2024 18:18 [18:18:43]line Смена: 461 ФФД: 1.0 [18:18:43]line ЗНМ: 0300000155 [18:18:43]line РНМ: 0000000000100030 [18:18:43]line Версия ККМ: 001 [18:18:43]line ФМ: 0000000000965340 [18:18:43]line ФД: 188426 [18:18:43]line ФПД: 216584876868902 [18:18:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T181843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188426&fm=216584876868902&tin=02508201610067®Number=0000000000100030&sum=50000 [18:18:43]OFD Sender: Processing packet 188426 [packets to send 1062, broken 1061] [18:18:43]ProducePacketName [18:18:43]name=ofd_packets/00188426 [18:18:43]OFD Sender: To server: pG, [18:18:43]CommunicateWithHost lk.salyk.kg:30040 [18:18:43]ConnectInit lk.salyk.kg [18:18:43]written 0, free lines is 4095 [18:18:44]Connected sock=10 [18:18:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 95 07 01 25 D0 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C7 01 00 00 F4 03 04 00 83 EC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E0 02 00 35 04 06 00 C4 FB 98 A6 45 26 E7 3E 62 43 13 9D FE A4 [18:18:44]Write to MH i2c: 01 00 00 F8 07 FF [18:18:44]Write i2c OK [18:18:44]MH_I2C_Read... [18:18:44]Read from MH i2c: 01 [18:18:44]MH_I2C_Read... [18:18:44]Read from MH i2c: 01 07 00 [18:18:44]MH_I2C_Read... [18:18:44]Read from MH i2c: 01 07 00 F8 07 00 00 00 00 00 5F 0C 71 [18:18:44]RasterBufferAndPrint [18:18:44]line [18:18:44]line [18:18:44]line [18:18:44]line [18:18:44]line [18:18:44]written 0, free lines is 3170 [18:18:44]MH_Cut [18:18:44]Write to MH i2c: D1 01 00 FF 07 01 D8 [18:18:44]Write i2c OK [18:18:44]MH_I2C_Read... [18:18:44]Read from MH i2c: D1 [18:18:44]MH_I2C_Read... [18:18:44]Read from MH i2c: D1 01 00 [18:18:44]MH_I2C_Read... [18:18:44]Read from MH i2c: D1 01 00 FF 07 00 D7 [18:18:44]Write to MH i2c: 01 00 00 00 08 08 [18:18:44]Write i2c OK [18:18:44]MH_I2C_Read... [18:18:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 25 60 47 00 F6 EB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0A E0 02 00 F4 03 04 00 6F 96 17 67 B6 04 01 00 00 0D BD 7D 9A 73 DF 45 C3 [18:18:44]CommunicateWithHost err = 0 [18:18:44]CheckOFDResponse [18:18:44]1017 (14) - 77093643461234 [18:18:44]1041 (16) - 0000000000965340 [18:18:44]1040 (4) - 188426 [18:18:44]1012 (4) - 22.10.2024 12:11 [18:18:44]1206 (1) - 0 [18:18:44]OFD Sender: Remove packet 188426 [18:18:44]ProducePacketName [18:18:44]name=ofd_packets/00188426 [18:18:44]NVStorageDeleteData [18:18:45]OFD Sender: No OFD packet to send [18:18:45]*** Cut start [18:18:45]*** Partial cut [18:18:45]*** CUTSNS_PIN = 1 [18:18:45]*** CUTSNS_PIN = 0 [18:18:45]*** Brake cut motor [18:18:46]Read from MH i2c: 01 [18:18:46]MH_I2C_Read... [18:18:46]*** Stop cut motor [18:18:46]*** Cut end [18:18:46]Read from MH i2c: 01 07 00 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: 01 07 00 00 08 00 00 00 00 00 FF 0F 1D [18:18:46]process_action close_receipt done [18:18:46]requested_data is exist [18:18:46]produce_requested_data [18:18:46]requested_item fm.sn is exist - process it [18:18:46]wFMCommunicate request_size=4 [18:18:46]MH_SAM_APDU [18:18:46]CAPDU: 80 11 00 00 [18:18:46]Write to MH i2c: E2 08 00 01 08 80 11 00 00 00 00 00 00 83 [18:18:46]Write i2c OK [18:18:46]MH_I2C_Read... [18:18:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:46]Read from MH i2c: E2 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: E2 17 00 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: E2 17 00 01 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D1 [18:18:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:18:46]wFMCommunicate OK [18:18:46]requested_item fd.num is exist - process it [18:18:46]SAM_PROTO_GetFieldsCounters [18:18:46]wFMCommunicate request_size=4 [18:18:46]MH_SAM_APDU [18:18:46]CAPDU: 80 13 00 00 [18:18:46]Write to MH i2c: E2 08 00 02 08 80 13 00 00 00 00 00 00 86 [18:18:46]Write i2c OK [18:18:46]MH_I2C_Read... [18:18:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:46]Read from MH i2c: E2 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: E2 62 00 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: E2 62 00 02 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 9F [18:18:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C7 01 00 00 5E 04 04 00 C7 01 00 00 57 04 04 00 C8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:18:46]wFMCommunicate OK [18:18:46]SAM_PROTO_GetFieldsCounters done [18:18:46]requested_item shift.num is exist - process it [18:18:46]requested_item shift.opened is exist - process it [18:18:46]req_shift_opened [18:18:46]FM_GetShiftState [18:18:46]SAM_PROTO_GetShiftState [18:18:46]wFMCommunicate request_size=4 [18:18:46]MH_SAM_APDU [18:18:46]CAPDU: 80 13 01 00 [18:18:46]Write to MH i2c: E2 08 00 03 08 80 13 01 00 00 00 00 00 88 [18:18:46]Write i2c OK [18:18:46]MH_I2C_Read... [18:18:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:46]Read from MH i2c: E2 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: E2 0E 00 [18:18:46]MH_I2C_Read... [18:18:46]Read from MH i2c: E2 0E 00 03 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7D [18:18:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:18:46]wFMCommunicate OK [18:18:46]SAM_PROTO_GetShiftState done [18:18:46]FM_GetShiftState done [18:18:46]req_shift_opened done [18:18:46]requested_item shift.open_date is exist - process it [18:18:46]req_shift_open_date [18:18:46]req_shift_open_date done [18:18:46]produce_requested_data done [18:18:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188426,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:18:46]process_action_free close_receipt [18:18:46]json_value_free [18:18:46]json_value_free done [18:18:46]process_json_proto returns [18:18:46]Send response to host [18:18:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188426,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:18:46]free response buf [18:18:46]execute_script done [18:18:46]execute_script returns [18:18:46]free content buf [18:18:46]Sock 9.Close socket [18:18:46]Sock 9.Thread stoped [18:18:50]OFD Sender: No OFD packet to send [18:18:55]OFD Sender: No OFD packet to send [18:19:00]OFD Sender: No OFD packet to send [18:19:05]OFD Sender: No OFD packet to send [18:19:10]OFD Sender: No OFD packet to send [18:19:15]OFD Sender: No OFD packet to send [18:19:20]OFD Sender: No OFD packet to send [18:19:25]OFD Sender: No OFD packet to send [18:19:30]OFD Sender: No OFD packet to send [18:19:35]OFD Sender: No OFD packet to send [18:19:40]OFD Sender: No OFD packet to send [18:19:45]OFD Sender: No OFD packet to send [18:19:50]OFD Sender: No OFD packet to send [18:19:55]OFD Sender: No OFD packet to send [18:20:00]OFD Sender: No OFD packet to send [18:20:05]OFD Sender: No OFD packet to send [18:20:10]OFD Sender: No OFD packet to send [18:20:15]OFD Sender: No OFD packet to send [18:20:20]OFD Sender: No OFD packet to send [18:20:25]OFD Sender: No OFD packet to send [18:20:30]OFD Sender: No OFD packet to send [18:20:35]OFD Sender: No OFD packet to send [18:20:40]OFD Sender: No OFD packet to send [18:20:45]OFD Sender: No OFD packet to send [18:20:50]OFD Sender: No OFD packet to send [18:20:55]OFD Sender: No OFD packet to send [18:21:00]OFD Sender: No OFD packet to send [18:21:05]OFD Sender: No OFD packet to send [18:21:10]OFD Sender: No OFD packet to send [18:21:15]OFD Sender: No OFD packet to send [18:21:20]OFD Sender: No OFD packet to send [18:21:25]OFD Sender: No OFD packet to send [18:21:30]OFD Sender: No OFD packet to send [18:21:35]OFD Sender: No OFD packet to send [18:21:40]OFD Sender: No OFD packet to send [18:21:45]OFD Sender: No OFD packet to send [18:21:50]OFD Sender: No OFD packet to send [18:21:55]OFD Sender: No OFD packet to send [18:22:00]OFD Sender: No OFD packet to send [18:22:05]OFD Sender: No OFD packet to send [18:22:10]OFD Sender: No OFD packet to send [18:22:16]OFD Sender: No OFD packet to send [18:22:21]OFD Sender: No OFD packet to send [18:22:26]OFD Sender: No OFD packet to send [18:22:27]accept exits with 7 [18:22:27]New connection [18:22:27]New thread 3066613092 created [18:22:27]Thread 3066756452 joined [18:22:27]Waiting for new connection... [18:22:27] Sock 7.Parse request [18:22:27]Sock 7.Check first char [18:22:27]Sock 7.First char is OK [18:22:27]request: POST /json_proto HTTP/1.0 [18:22:27]Method: POST [18:22:27]URL: /json_proto [18:22:27]Method is POST - this is cgi request [18:22:27]url: /json_proto [18:22:27]query_string will be loaded in cgi processing [18:22:27]execute_cgi json_proto POST (null) [18:22:27]execute_cgi path=json_proto method=POST [18:22:27]POST find Content-Length [18:22:27]Host: 172.17.42.131:8080 [18:22:27]Content-Length: 682 [18:22:27]Content-Type: application/json [18:22:27] [18:22:27]POST finish read [18:22:27]Found Content-Length = 682 [18:22:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:27]execute_script... [18:22: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)210487", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:27]POST & json_proto [18:22:27]process_json_proto [18:22:27]json parsed OK: [18:22:27]protocol is kg_v1.0 [18:22:27]action value=close_receipt [18:22:27]process_action close_receipt [18:22:27]cmd_close_receipt [18:22:27]MH_GetDate [18:22:27]Write to MH i2c: F0 00 00 04 08 FB [18:22:27]Write i2c OK [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: F0 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: F0 09 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: F0 09 00 04 08 00 64 ED 17 67 A0 18 CA 66 BB [18:22:27]GetLastDocTimeStamp 1729621123 [18:22:27]current date 1729621348 [18:22:27]FM_GetShiftState [18:22:27]SAM_PROTO_GetShiftState [18:22:27]wFMCommunicate request_size=4 [18:22:27]MH_SAM_APDU [18:22:27]CAPDU: 80 13 01 00 [18:22:27]Write to MH i2c: E2 08 00 05 08 80 13 01 00 00 00 00 00 8A [18:22:27]Write i2c OK [18:22:27]MH_I2C_Read... [18:22:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:27]Read from MH i2c: E2 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 0E 00 [18:22:27]MH_I2C_Read... [18:22:27]Read from MH i2c: E2 0E 00 05 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7F [18:22:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:22:27]wFMCommunicate OK [18:22:27]SAM_PROTO_GetShiftState done [18:22:27]FM_GetShiftState done [18:22:27]opened in 1729556094 [18:22:27]opened+sec_in_day 1729642494 [18:22:27]quantity*price = 100015 [18:22:27]sum+1 = 100017 [18:22:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 456 22.10.2024 18:22 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188427 ФПД: 117452299336930 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182228&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188427&fm=117452299336930&tin=02508201610067®Number=0000000000100030&sum=100000 [18:22:28]StoreToDocumentArchive [18:22:28]shift 461 fd 188427 [18:22:28]save to /storage/0461/doc_00188427 [18:22:28]save last doc name /storage/0461/doc_00188427 to /storage/kkm_last_doc_name [18:22:28]save OK [18:22:28]Clear old archive folders... [18:22:28]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:28]tlvbuf is 00947CD0 [18:22:28]SAM_PROTO_ClearQueue [18:22:28]wFMCommunicate request_size=4 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 09 00 00 [18:22:28]Write to MH i2c: E2 08 00 12 08 80 09 00 00 00 00 00 00 8C [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 03 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 03 00 12 08 00 90 00 8E [18:22:28]RAPDU: 90 00 [18:22:28]wFMCommunicate OK [18:22:28]SAM_PROTO_ClearQueue done [18:22:28]KKMCreateOFDPacket [18:22:28]OFDProtocolAddRootSTLVToBuf [18:22:28]FM_MakeSignedData [18:22:28]FM_MakeSignedData [18:22:28]SAM_PROTO_SignData [18:22:28]wFMCommunicate request_size=4 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 0D 01 02 [18:22:28]Write to MH i2c: E2 08 00 13 08 80 0D 01 02 00 00 00 00 94 [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 03 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 03 00 13 08 00 90 00 8F [18:22:28]RAPDU: 90 00 [18:22:28]wFMCommunicate OK [18:22:28]wFMCommunicate request_size=255 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 64 ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E0 02 00 35 04 06 00 6A [18:22:28]Write to MH i2c: E2 02 01 14 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 64 ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E0 02 00 35 04 06 00 6A 00 00 BE [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:28]Read from MH i2c: E2 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 03 00 [18:22:28]MH_I2C_Read... [18:22:28]Read from MH i2c: E2 03 00 14 08 00 90 00 90 [18:22:28]RAPDU: 90 00 [18:22:28]wFMCommunicate OK [18:22:28]wFMCommunicate request_size=10 [18:22:28]MH_SAM_APDU [18:22:28]CAPDU: 80 0D 02 02 05 D2 7E 94 7C E2 [18:22:28]Write to MH i2c: E2 0D 00 15 08 80 0D 02 02 05 00 D2 7E 94 7C E2 00 00 E3 [18:22:28]Write i2c OK [18:22:28]MH_I2C_Read... [18:22:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:29]Read from MH i2c: E2 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 03 00 15 08 00 90 00 91 [18:22:29]RAPDU: 90 00 [18:22:29]wFMCommunicate OK [18:22:29]wFMCommunicate request_size=4 [18:22:29]MH_SAM_APDU [18:22:29]CAPDU: 80 0D 03 02 [18:22:29]Write to MH i2c: E2 08 00 16 08 80 0D 03 02 00 00 00 00 99 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:29]Read from MH i2c: E2 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 0B 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 0B 00 16 08 00 58 05 61 94 31 EA 6A 82 90 00 F3 [18:22:29]RAPDU: 58 05 61 94 31 EA 6A 82 90 00 [18:22:29]wFMCommunicate OK [18:22:29]SAM_PROTO_SignData done [18:22:29]FM_MakeSignedData done [18:22:29]CreateOFDProtocolMessage [18:22:29]wFMCommunicate request_size=4 [18:22:29]MH_SAM_APDU [18:22:29]CAPDU: 80 11 00 00 [18:22:29]Write to MH i2c: E2 08 00 17 08 80 11 00 00 00 00 00 00 99 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:29]Read from MH i2c: E2 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 17 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: E2 17 00 17 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [18:22:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:22:29]wFMCommunicate OK [18:22:29]CreateOFDProtocolMessage done [18:22:29]OFDSenderStorePacket 188427 [18:22:29]StoreOFDPacket docnum=188427 [18:22:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 60 07 01 0D 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 64 ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E0 02 00 35 04 06 00 6A D2 7E 94 7C E2 58 05 61 94 31 EA 6A 82 [18:22:29]CheckFolder [18:22:29]dirname=/storage/ofd_packets [18:22:29]CheckFolder done [18:22:29]ProducePacketName [18:22:29]name=ofd_packets/00188427 [18:22:29]NVStorageSaveData ofd_packets/00188427 [18:22:29]File name is /storage/ofd_packets/00188427 [18:22:29]Write 301 bytes [18:22:29]NVStorageSaveData done [18:22:29]OFDSenderStorePacket done [18:22:29]KKMCreateOFDPacket done [18:22:29]NVStorageSaveData kkm_last_timestamp [18:22:29]File name is /storage/kkm_last_timestamp [18:22:29]Write 4 bytes [18:22:29]NVStorageSaveData done [18:22:29]ExternCall_PrintAddStr [18:22:29]wPrintStart [18:22:29]Write to MH i2c: 01 00 00 18 08 20 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: 01 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: 01 07 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: 01 07 00 18 08 00 00 00 00 00 FF 0F 35 [18:22:29]RasterBufferAndPrint [18:22:29]line Счет N : (1)210487 [18:22:29]line ИНН: 02508201610067 [18:22:29]line Контрольно-Кассовый Чек [18:22:29]line ПРОДАЖА [18:22:29]line ТРК (МРК, ГНК) : 42 [18:22:29]line Товар: 2710124130 [18:22:29]line Аи-92-К-3 [18:22:29]line 14.950 * 66.90 [18:22:29]line = 1000.16 [18:22:29]line НДС 12% НСП 1% [18:22:29]line > о реализуемом товаре [18:22:29]line ОКРУГЛЕНИЕ: -0.16 [18:22:29]line ИТОГО: 1000.00 [18:22:29]line Внесено: 1000.00 [18:22:29]line СДАЧА: 0.00 [18:22:29]line НСП 1% : 8.85 [18:22:29]line НДС 12% : 106.21 [18:22:29]line Наличными: 1000.00 [18:22:29]line Безнал.: 0.00 [18:22:29]line Место: АЗС № 86 "Партнер Нефть" [18:22:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:22:29]line СНО: Общий режим [18:22:29]line Чек 456 22.10.2024 18:22 [18:22:29]line Смена: 461 ФФД: 1.0 [18:22:29]line ЗНМ: 0300000155 [18:22:29]line РНМ: 0000000000100030 [18:22:29]line Версия ККМ: 001 [18:22:29]line ФМ: 0000000000965340 [18:22:29]line ФД: 188427 [18:22:29]line ФПД: 117452299336930 [18:22:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182228&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188427&fm=117452299336930&tin=02508201610067®Number=0000000000100030&sum=100000 [18:22:29]written 0, free lines is 4095 [18:22:29]OFD Sender: Processing packet 188427 [packets to send 1062, broken 1061] [18:22:29]ProducePacketName [18:22:29]name=ofd_packets/00188427 [18:22:29]OFD Sender: To server: pG, [18:22:29]CommunicateWithHost lk.salyk.kg:30040 [18:22:29]ConnectInit lk.salyk.kg [18:22:29]Connected sock=10 [18:22:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D9 60 07 01 0D 79 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 C8 01 00 00 F4 03 04 00 64 ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0B E0 02 00 35 04 06 00 6A D2 7E 94 7C E2 58 05 61 94 31 EA 6A 82 [18:22:29]Write to MH i2c: 01 00 00 43 08 4B [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: 01 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: 01 07 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: 01 07 00 43 08 00 00 00 00 00 61 0C BF [18:22:29]RasterBufferAndPrint [18:22:29]line [18:22:29]line [18:22:29]line [18:22:29]line [18:22:29]line [18:22:29]written 0, free lines is 3174 [18:22:29]MH_Cut [18:22:29]Write to MH i2c: D1 01 00 4A 08 01 24 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: D1 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: D1 01 00 [18:22:29]MH_I2C_Read... [18:22:29]Read from MH i2c: D1 01 00 4A 08 00 23 [18:22:29]Write to MH i2c: 01 00 00 4B 08 53 [18:22:29]Write i2c OK [18:22:29]MH_I2C_Read... [18:22:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 BC 47 00 43 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 39 36 35 33 34 30 10 04 04 00 0B E0 02 00 F4 03 04 00 51 97 17 67 B6 04 01 00 00 0B 46 84 7D 45 CD 6F DC [18:22:29]CommunicateWithHost err = 0 [18:22:29]CheckOFDResponse [18:22:29]1017 (14) - 77093643461234 [18:22:29]1041 (16) - 0000000000965340 [18:22:29]1040 (4) - 188427 [18:22:29]1012 (4) - 22.10.2024 12:15 [18:22:29]1206 (1) - 0 [18:22:29]OFD Sender: Remove packet 188427 [18:22:29]ProducePacketName [18:22:29]name=ofd_packets/00188427 [18:22:29]NVStorageDeleteData [18:22:30]OFD Sender: No OFD packet to send [18:22:30]*** Cut start [18:22:30]*** Partial cut [18:22:30]*** CUTSNS_PIN = 1 [18:22:30]*** CUTSNS_PIN = 0 [18:22:31]*** Brake cut motor [18:22:31]Read from MH i2c: 01 [18:22:31]MH_I2C_Read... [18:22:31]*** Stop cut motor [18:22:31]*** Cut end [18:22:31]Read from MH i2c: 01 07 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: 01 07 00 4B 08 00 00 00 00 00 FF 0F 68 [18:22:31]process_action close_receipt done [18:22:31]requested_data is exist [18:22:31]produce_requested_data [18:22:31]requested_item fm.sn is exist - process it [18:22:31]wFMCommunicate request_size=4 [18:22:31]MH_SAM_APDU [18:22:31]CAPDU: 80 11 00 00 [18:22:31]Write to MH i2c: E2 08 00 4C 08 80 11 00 00 00 00 00 00 CE [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:31]Read from MH i2c: E2 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 17 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 17 00 4C 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [18:22:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:22:31]wFMCommunicate OK [18:22:31]requested_item fd.num is exist - process it [18:22:31]SAM_PROTO_GetFieldsCounters [18:22:31]wFMCommunicate request_size=4 [18:22:31]MH_SAM_APDU [18:22:31]CAPDU: 80 13 00 00 [18:22:31]Write to MH i2c: E2 08 00 4D 08 80 13 00 00 00 00 00 00 D1 [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:22:31]Read from MH i2c: E2 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 62 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 62 00 4D 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 EE [18:22:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C8 01 00 00 5E 04 04 00 C8 01 00 00 57 04 04 00 C9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:22:31]wFMCommunicate OK [18:22:31]SAM_PROTO_GetFieldsCounters done [18:22:31]requested_item shift.num is exist - process it [18:22:31]requested_item shift.opened is exist - process it [18:22:31]req_shift_opened [18:22:31]FM_GetShiftState [18:22:31]SAM_PROTO_GetShiftState [18:22:31]wFMCommunicate request_size=4 [18:22:31]MH_SAM_APDU [18:22:31]CAPDU: 80 13 01 00 [18:22:31]Write to MH i2c: E2 08 00 4E 08 80 13 01 00 00 00 00 00 D3 [18:22:31]Write i2c OK [18:22:31]MH_I2C_Read... [18:22:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:31]Read from MH i2c: E2 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 [18:22:31]MH_I2C_Read... [18:22:31]Read from MH i2c: E2 0E 00 4E 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [18:22:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:22:31]wFMCommunicate OK [18:22:31]SAM_PROTO_GetShiftState done [18:22:31]FM_GetShiftState done [18:22:31]req_shift_opened done [18:22:31]requested_item shift.open_date is exist - process it [18:22:31]req_shift_open_date [18:22:31]req_shift_open_date done [18:22:31]produce_requested_data done [18:22:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188427,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:22:31]process_action_free close_receipt [18:22:31]json_value_free [18:22:31]json_value_free done [18:22:31]process_json_proto returns [18:22:31]Send response to host [18:22:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188427,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:22:31]free response buf [18:22:31]execute_script done [18:22:31]execute_script returns [18:22:31]free content buf [18:22:31]Sock 7.Close socket [18:22:31]Sock 7.Thread stoped [18:22:35]OFD Sender: No OFD packet to send [18:22:40]OFD Sender: No OFD packet to send [18:22:45]OFD Sender: No OFD packet to send [18:22:50]OFD Sender: No OFD packet to send [18:22:55]OFD Sender: No OFD packet to send [18:23:00]OFD Sender: No OFD packet to send [18:23:05]OFD Sender: No OFD packet to send [18:23:10]OFD Sender: No OFD packet to send [18:23:15]OFD Sender: No OFD packet to send [18:23:20]OFD Sender: No OFD packet to send [18:23:25]OFD Sender: No OFD packet to send [18:23:30]OFD Sender: No OFD packet to send [18:23:35]OFD Sender: No OFD packet to send [18:23:40]OFD Sender: No OFD packet to send [18:23:45]OFD Sender: No OFD packet to send [18:23:50]OFD Sender: No OFD packet to send [18:23:55]OFD Sender: No OFD packet to send [18:24:00]OFD Sender: No OFD packet to send [18:24:05]OFD Sender: No OFD packet to send [18:24:10]OFD Sender: No OFD packet to send [18:24:15]OFD Sender: No OFD packet to send [18:24:20]OFD Sender: No OFD packet to send [18:24:25]OFD Sender: No OFD packet to send [18:24:30]OFD Sender: No OFD packet to send [18:24:35]OFD Sender: No OFD packet to send [18:24:40]OFD Sender: No OFD packet to send [18:24:41]accept exits with 9 [18:24:41]New connection [18:24:41]New thread 3066756452 created [18:24:41]Thread 3066613092 joined [18:24:41]Waiting for new connection... [18:24:41] Sock 9.Parse request [18:24:41]Sock 9.Check first char [18:24:41]Sock 9.First char is OK [18:24:41]request: POST /json_proto HTTP/1.0 [18:24:41]Method: POST [18:24:41]URL: /json_proto [18:24:41]Method is POST - this is cgi request [18:24:41]url: /json_proto [18:24:41]query_string will be loaded in cgi processing [18:24:41]execute_cgi json_proto POST (null) [18:24:41]execute_cgi path=json_proto method=POST [18:24:41]POST find Content-Length [18:24:41]Host: 172.17.42.131:8080 [18:24:41]Content-Length: 682 [18:24:41]Content-Type: application/json [18:24:41] [18:24:41]POST finish read [18:24:41]Found Content-Length = 682 [18:24:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:41]execute_script... [18:24: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)210488", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:24:41]POST & json_proto [18:24:41]process_json_proto [18:24:41]json parsed OK: [18:24:41]protocol is kg_v1.0 [18:24:41]action value=close_receipt [18:24:41]process_action close_receipt [18:24:41]cmd_close_receipt [18:24:41]MH_GetDate [18:24:41]Write to MH i2c: F0 00 00 4F 08 46 [18:24:41]Write i2c OK [18:24:41]MH_I2C_Read... [18:24:41]Read from MH i2c: F0 [18:24:41]MH_I2C_Read... [18:24:41]Read from MH i2c: F0 09 00 [18:24:41]MH_I2C_Read... [18:24:41]Read from MH i2c: F0 09 00 4F 08 00 EA ED 17 67 A0 18 CA 66 8C [18:24:41]GetLastDocTimeStamp 1729621348 [18:24:41]current date 1729621482 [18:24:41]FM_GetShiftState [18:24:41]SAM_PROTO_GetShiftState [18:24:41]wFMCommunicate request_size=4 [18:24:41]MH_SAM_APDU [18:24:41]CAPDU: 80 13 01 00 [18:24:41]Write to MH i2c: E2 08 00 50 08 80 13 01 00 00 00 00 00 D5 [18:24:41]Write i2c OK [18:24:41]MH_I2C_Read... [18:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:41]Read from MH i2c: E2 [18:24:41]MH_I2C_Read... [18:24:41]Read from MH i2c: E2 0E 00 [18:24:41]MH_I2C_Read... [18:24:41]Read from MH i2c: E2 0E 00 50 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CA [18:24:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:24:41]wFMCommunicate OK [18:24:41]SAM_PROTO_GetShiftState done [18:24:41]FM_GetShiftState done [18:24:41]opened in 1729556094 [18:24:41]opened+sec_in_day 1729642494 [18:24:41]quantity*price = 200031 [18:24:41]sum+1 = 200032 [18:24:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 457 22.10.2024 18:24 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188428 ФПД: 218421237093737 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182442&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188428&fm=218421237093737&tin=02508201610067®Number=0000000000100030&sum=200000 [18:24:42]StoreToDocumentArchive [18:24:42]shift 461 fd 188428 [18:24:42]save to /storage/0461/doc_00188428 [18:24:42]save last doc name /storage/0461/doc_00188428 to /storage/kkm_last_doc_name [18:24:42]save OK [18:24:42]Clear old archive folders... [18:24:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:24:42]tlvbuf is 00930C40 [18:24:42]SAM_PROTO_ClearQueue [18:24:42]wFMCommunicate request_size=4 [18:24:42]MH_SAM_APDU [18:24:42]CAPDU: 80 09 00 00 [18:24:42]Write to MH i2c: E2 08 00 5D 08 80 09 00 00 00 00 00 00 D7 [18:24:42]Write i2c OK [18:24:42]MH_I2C_Read... [18:24:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:24:42]Read from MH i2c: E2 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: E2 03 00 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: E2 03 00 5D 08 00 90 00 D9 [18:24:42]RAPDU: 90 00 [18:24:42]wFMCommunicate OK [18:24:42]SAM_PROTO_ClearQueue done [18:24:42]KKMCreateOFDPacket [18:24:42]OFDProtocolAddRootSTLVToBuf [18:24:42]FM_MakeSignedData [18:24:42]FM_MakeSignedData [18:24:42]SAM_PROTO_SignData [18:24:42]wFMCommunicate request_size=4 [18:24:42]MH_SAM_APDU [18:24:42]CAPDU: 80 0D 01 02 [18:24:42]Write to MH i2c: E2 08 00 5E 08 80 0D 01 02 00 00 00 00 DF [18:24:42]Write i2c OK [18:24:42]MH_I2C_Read... [18:24:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:24:42]Read from MH i2c: E2 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: E2 03 00 [18:24:42]MH_I2C_Read... [18:24:42]Read from MH i2c: E2 03 00 5E 08 00 90 00 DA [18:24:42]RAPDU: 90 00 [18:24:42]wFMCommunicate OK [18:24:42]wFMCommunicate request_size=255 [18:24:42]MH_SAM_APDU [18:24:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 C9 01 00 00 F4 03 04 00 EA ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E0 02 00 35 04 06 00 C6 [18:24:42]Write to MH i2c: E2 02 01 5F 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 C9 01 00 00 F4 03 04 00 EA ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E0 02 00 35 04 06 00 C6 00 00 35 [18:24:42]Write i2c OK [18:24:42]MH_I2C_Read... [18:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:43]Read from MH i2c: E2 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 03 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 03 00 5F 08 00 90 00 DB [18:24:43]RAPDU: 90 00 [18:24:43]wFMCommunicate OK [18:24:43]wFMCommunicate request_size=10 [18:24:43]MH_SAM_APDU [18:24:43]CAPDU: 80 0D 02 02 05 A7 28 3F 95 69 [18:24:43]Write to MH i2c: E2 0D 00 60 08 80 0D 02 02 05 00 A7 28 3F 95 69 00 00 F8 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:24:43]Read from MH i2c: E2 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 03 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 03 00 60 08 00 90 00 DC [18:24:43]RAPDU: 90 00 [18:24:43]wFMCommunicate OK [18:24:43]wFMCommunicate request_size=4 [18:24:43]MH_SAM_APDU [18:24:43]CAPDU: 80 0D 03 02 [18:24:43]Write to MH i2c: E2 08 00 61 08 80 0D 03 02 00 00 00 00 E4 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:24:43]Read from MH i2c: E2 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 0B 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 0B 00 61 08 00 36 FF 28 4B 51 2D ED 26 90 00 1E [18:24:43]RAPDU: 36 FF 28 4B 51 2D ED 26 90 00 [18:24:43]wFMCommunicate OK [18:24:43]SAM_PROTO_SignData done [18:24:43]FM_MakeSignedData done [18:24:43]CreateOFDProtocolMessage [18:24:43]wFMCommunicate request_size=4 [18:24:43]MH_SAM_APDU [18:24:43]CAPDU: 80 11 00 00 [18:24:43]Write to MH i2c: E2 08 00 62 08 80 11 00 00 00 00 00 00 E4 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:43]Read from MH i2c: E2 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 17 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: E2 17 00 62 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [18:24:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:24:43]wFMCommunicate OK [18:24:43]CreateOFDProtocolMessage done [18:24:43]OFDSenderStorePacket 188428 [18:24:43]StoreOFDPacket docnum=188428 [18:24:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 9E 07 01 13 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 C9 01 00 00 F4 03 04 00 EA ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E0 02 00 35 04 06 00 C6 A7 28 3F 95 69 36 FF 28 4B 51 2D ED 26 [18:24:43]CheckFolder [18:24:43]dirname=/storage/ofd_packets [18:24:43]CheckFolder done [18:24:43]ProducePacketName [18:24:43]name=ofd_packets/00188428 [18:24:43]NVStorageSaveData ofd_packets/00188428 [18:24:43]File name is /storage/ofd_packets/00188428 [18:24:43]Write 301 bytes [18:24:43]NVStorageSaveData done [18:24:43]OFDSenderStorePacket done [18:24:43]KKMCreateOFDPacket done [18:24:43]NVStorageSaveData kkm_last_timestamp [18:24:43]File name is /storage/kkm_last_timestamp [18:24:43]Write 4 bytes [18:24:43]NVStorageSaveData done [18:24:43]ExternCall_PrintAddStr [18:24:43]wPrintStart [18:24:43]Write to MH i2c: 01 00 00 63 08 6B [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: 01 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: 01 07 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: 01 07 00 63 08 00 00 00 00 00 FF 0F 80 [18:24:43]RasterBufferAndPrint [18:24:43]line Счет N : (1)210488 [18:24:43]line ИНН: 02508201610067 [18:24:43]line Контрольно-Кассовый Чек [18:24:43]line ПРОДАЖА [18:24:43]line ТРК (МРК, ГНК) : 12 [18:24:43]line Товар: 2710124130 [18:24:43]line Аи-92-К-3 [18:24:43]line 29.900 * 66.90 [18:24:43]line = 2000.31 [18:24:43]line НДС 12% НСП 1% [18:24:43]line > о реализуемом товаре [18:24:43]line ОКРУГЛЕНИЕ: -0.31 [18:24:43]line ИТОГО: 2000.00 [18:24:43]line Внесено: 2000.00 [18:24:43]line СДАЧА: 0.00 [18:24:43]line НСП 1% : 17.70 [18:24:43]line НДС 12% : 212.42 [18:24:43]line Наличными: 2000.00 [18:24:43]line Безнал.: 0.00 [18:24:43]line Место: АЗС № 86 "Партнер Нефть" [18:24:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:24:43]line СНО: Общий режим [18:24:43]line Чек 457 22.10.2024 18:24 [18:24:43]line Смена: 461 ФФД: 1.0 [18:24:43]line ЗНМ: 0300000155 [18:24:43]line РНМ: 0000000000100030 [18:24:43]line Версия ККМ: 001 [18:24:43]line ФМ: 0000000000965340 [18:24:43]line ФД: 188428 [18:24:43]line ФПД: 218421237093737 [18:24:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182442&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188428&fm=218421237093737&tin=02508201610067®Number=0000000000100030&sum=200000 [18:24:43]written 0, free lines is 4095 [18:24:43]OFD Sender: Processing packet 188428 [packets to send 1062, broken 1061] [18:24:43]ProducePacketName [18:24:43]name=ofd_packets/00188428 [18:24:43]OFD Sender: To server: pG, [18:24:43]CommunicateWithHost lk.salyk.kg:30040 [18:24:43]ConnectInit lk.salyk.kg [18:24:43]Connected sock=10 [18:24:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B8 9E 07 01 13 AD 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 C9 01 00 00 F4 03 04 00 EA ED 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E0 02 00 35 04 06 00 C6 A7 28 3F 95 69 36 FF 28 4B 51 2D ED 26 [18:24:43]Write to MH i2c: 01 00 00 8E 08 96 [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: 01 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: 01 07 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: 01 07 00 8E 08 00 00 00 00 00 61 0C 0A [18:24:43]RasterBufferAndPrint [18:24:43]line [18:24:43]line [18:24:43]line [18:24:43]line [18:24:43]line [18:24:43]written 0, free lines is 3173 [18:24:43]MH_Cut [18:24:43]Write to MH i2c: D1 01 00 95 08 01 6F [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: D1 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: D1 01 00 [18:24:43]MH_I2C_Read... [18:24:43]Read from MH i2c: D1 01 00 95 08 00 6E [18:24:43]Write to MH i2c: 01 00 00 96 08 9E [18:24:43]Write i2c OK [18:24:43]MH_I2C_Read... [18:24:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0A 31 47 00 AE 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0C E0 02 00 F4 03 04 00 D7 97 17 67 B6 04 01 00 00 63 5A A4 17 B8 81 01 B4 [18:24:43]CommunicateWithHost err = 0 [18:24:43]CheckOFDResponse [18:24:43]1017 (14) - 77093643461234 [18:24:43]1041 (16) - 0000000000965340 [18:24:43]1040 (4) - 188428 [18:24:43]1012 (4) - 22.10.2024 12:17 [18:24:43]1206 (1) - 0 [18:24:43]OFD Sender: Remove packet 188428 [18:24:43]ProducePacketName [18:24:43]name=ofd_packets/00188428 [18:24:43]NVStorageDeleteData [18:24:44]OFD Sender: No OFD packet to send [18:24:45]*** Cut start [18:24:45]*** Partial cut [18:24:45]*** CUTSNS_PIN = 1 [18:24:45]*** CUTSNS_PIN = 0 [18:24:45]*** Brake cut motor [18:24:45]Read from MH i2c: 01 [18:24:45]MH_I2C_Read... [18:24:45]*** Stop cut motor [18:24:45]*** Cut end [18:24:45]Read from MH i2c: 01 07 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: 01 07 00 96 08 00 00 00 00 00 FF 0F B3 [18:24:45]process_action close_receipt done [18:24:45]requested_data is exist [18:24:45]produce_requested_data [18:24:45]requested_item fm.sn is exist - process it [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 11 00 00 [18:24:45]Write to MH i2c: E2 08 00 97 08 80 11 00 00 00 00 00 00 19 [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 17 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 17 00 97 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [18:24:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:24:45]wFMCommunicate OK [18:24:45]requested_item fd.num is exist - process it [18:24:45]SAM_PROTO_GetFieldsCounters [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 13 00 00 [18:24:45]Write to MH i2c: E2 08 00 98 08 80 13 00 00 00 00 00 00 1C [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 62 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 62 00 98 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 3D [18:24:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 C9 01 00 00 5E 04 04 00 C9 01 00 00 57 04 04 00 CA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:24:45]wFMCommunicate OK [18:24:45]SAM_PROTO_GetFieldsCounters done [18:24:45]requested_item shift.num is exist - process it [18:24:45]requested_item shift.opened is exist - process it [18:24:45]req_shift_opened [18:24:45]FM_GetShiftState [18:24:45]SAM_PROTO_GetShiftState [18:24:45]wFMCommunicate request_size=4 [18:24:45]MH_SAM_APDU [18:24:45]CAPDU: 80 13 01 00 [18:24:45]Write to MH i2c: E2 08 00 99 08 80 13 01 00 00 00 00 00 1E [18:24:45]Write i2c OK [18:24:45]MH_I2C_Read... [18:24:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:24:45]Read from MH i2c: E2 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 0E 00 [18:24:45]MH_I2C_Read... [18:24:45]Read from MH i2c: E2 0E 00 99 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 13 [18:24:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:24:45]wFMCommunicate OK [18:24:45]SAM_PROTO_GetShiftState done [18:24:45]FM_GetShiftState done [18:24:45]req_shift_opened done [18:24:45]requested_item shift.open_date is exist - process it [18:24:45]req_shift_open_date [18:24:45]req_shift_open_date done [18:24:45]produce_requested_data done [18:24:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188428,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:24:45]process_action_free close_receipt [18:24:45]json_value_free [18:24:45]json_value_free done [18:24:45]process_json_proto returns [18:24:45]Send response to host [18:24:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188428,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:24:45]free response buf [18:24:45]execute_script done [18:24:45]execute_script returns [18:24:45]free content buf [18:24:45]Sock 9.Close socket [18:24:45]Sock 9.Thread stoped [18:24:49]OFD Sender: No OFD packet to send [18:24:54]OFD Sender: No OFD packet to send [18:24:59]OFD Sender: No OFD packet to send [18:25:04]OFD Sender: No OFD packet to send [18:25:09]OFD Sender: No OFD packet to send [18:25:14]OFD Sender: No OFD packet to send [18:25:19]OFD Sender: No OFD packet to send [18:25:24]OFD Sender: No OFD packet to send [18:25:29]OFD Sender: No OFD packet to send [18:25:34]OFD Sender: No OFD packet to send [18:25:39]OFD Sender: No OFD packet to send [18:25:44]OFD Sender: No OFD packet to send [18:25:49]OFD Sender: No OFD packet to send [18:25:54]OFD Sender: No OFD packet to send [18:25:57]accept exits with 7 [18:25:57]New connection [18:25:57]New thread 3066613092 created [18:25:57]Thread 3066756452 joined [18:25:57]Waiting for new connection... [18:25:57] Sock 7.Parse request [18:25:57]Sock 7.Check first char [18:25:57]Sock 7.First char is OK [18:25:57]request: POST /json_proto HTTP/1.0 [18:25:57]Method: POST [18:25:57]URL: /json_proto [18:25:57]Method is POST - this is cgi request [18:25:57]url: /json_proto [18:25:57]query_string will be loaded in cgi processing [18:25:57]execute_cgi json_proto POST (null) [18:25:57]execute_cgi path=json_proto method=POST [18:25:57]POST find Content-Length [18:25:57]Host: 172.17.42.131:8080 [18:25:57]Content-Length: 688 [18:25:57]Content-Type: application/json [18:25:57] [18:25:57]POST finish read [18:25:57]Found Content-Length = 688 [18:25:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:25:57]execute_script... [18:25: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)210490", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [18:25:57]POST & json_proto [18:25:57]process_json_proto [18:25:57]json parsed OK: [18:25:57]protocol is kg_v1.0 [18:25:57]action value=close_receipt [18:25:57]process_action close_receipt [18:25:57]cmd_close_receipt [18:25:57]MH_GetDate [18:25:57]Write to MH i2c: F0 00 00 9A 08 91 [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: F0 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: F0 09 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: F0 09 00 9A 08 00 36 EE 17 67 A0 18 CA 66 24 [18:25:57]GetLastDocTimeStamp 1729621482 [18:25:57]current date 1729621558 [18:25:57]FM_GetShiftState [18:25:57]SAM_PROTO_GetShiftState [18:25:57]wFMCommunicate request_size=4 [18:25:57]MH_SAM_APDU [18:25:57]CAPDU: 80 13 01 00 [18:25:57]Write to MH i2c: E2 08 00 9B 08 80 13 01 00 00 00 00 00 20 [18:25:57]Write i2c OK [18:25:57]MH_I2C_Read... [18:25:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:25:57]Read from MH i2c: E2 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 0E 00 [18:25:57]MH_I2C_Read... [18:25:57]Read from MH i2c: E2 0E 00 9B 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [18:25:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:25:57]wFMCommunicate OK [18:25:57]SAM_PROTO_GetShiftState done [18:25:57]FM_GetShiftState done [18:25:57]opened in 1729556094 [18:25:57]opened+sec_in_day 1729642494 [18:25:57]quantity*price = 100051 [18:25:57]sum+1 = 100052 [18:25:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 458 22.10.2024 18:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188429 ФПД: 250907756863760 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182558&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188429&fm=250907756863760&tin=02508201610067®Number=0000000000100030&sum=100000 [18:25:58]StoreToDocumentArchive [18:25:58]shift 461 fd 188429 [18:25:58]save to /storage/0461/doc_00188429 [18:25:58]save last doc name /storage/0461/doc_00188429 to /storage/kkm_last_doc_name [18:25:58]save OK [18:25:58]Clear old archive folders... [18:25:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:25:58]tlvbuf is 00934260 [18:25:58]SAM_PROTO_ClearQueue [18:25:58]wFMCommunicate request_size=4 [18:25:58]MH_SAM_APDU [18:25:58]CAPDU: 80 09 00 00 [18:25:59]Write to MH i2c: E2 08 00 A8 08 80 09 00 00 00 00 00 00 22 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 A8 08 00 90 00 24 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]SAM_PROTO_ClearQueue done [18:25:59]KKMCreateOFDPacket [18:25:59]OFDProtocolAddRootSTLVToBuf [18:25:59]FM_MakeSignedData [18:25:59]FM_MakeSignedData [18:25:59]SAM_PROTO_SignData [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 01 02 [18:25:59]Write to MH i2c: E2 08 00 A9 08 80 0D 01 02 00 00 00 00 2A [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 A9 08 00 90 00 25 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=255 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CA 01 00 00 F4 03 04 00 36 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E0 02 [18:25:59]Write to MH i2c: E2 02 01 AA 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CA 01 00 00 F4 03 04 00 36 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E0 02 00 00 B1 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 AA 08 00 90 00 26 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=16 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 E4 33 03 B8 21 10 [18:25:59]Write to MH i2c: E2 13 00 AB 08 80 0D 02 02 0B 00 00 35 04 06 00 E4 33 03 B8 21 10 00 00 85 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 03 00 AB 08 00 90 00 27 [18:25:59]RAPDU: 90 00 [18:25:59]wFMCommunicate OK [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 0D 03 02 [18:25:59]Write to MH i2c: E2 08 00 AC 08 80 0D 03 02 00 00 00 00 2F [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 0B 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 0B 00 AC 08 00 98 39 72 25 00 01 8F A7 90 00 CF [18:25:59]RAPDU: 98 39 72 25 00 01 8F A7 90 00 [18:25:59]wFMCommunicate OK [18:25:59]SAM_PROTO_SignData done [18:25:59]FM_MakeSignedData done [18:25:59]CreateOFDProtocolMessage [18:25:59]wFMCommunicate request_size=4 [18:25:59]MH_SAM_APDU [18:25:59]CAPDU: 80 11 00 00 [18:25:59]Write to MH i2c: E2 08 00 AD 08 80 11 00 00 00 00 00 00 2F [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:25:59]Read from MH i2c: E2 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 17 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: E2 17 00 AD 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [18:25:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:25:59]wFMCommunicate OK [18:25:59]CreateOFDProtocolMessage done [18:25:59]OFDSenderStorePacket 188429 [18:25:59]StoreOFDPacket docnum=188429 [18:25:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F0 BB 0D 01 AC 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CA 01 00 00 F4 03 04 00 36 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E0 02 00 35 04 06 00 E4 33 03 B8 21 10 98 39 72 25 00 01 8F A7 [18:25:59]CheckFolder [18:25:59]dirname=/storage/ofd_packets [18:25:59]CheckFolder done [18:25:59]ProducePacketName [18:25:59]name=ofd_packets/00188429 [18:25:59]NVStorageSaveData ofd_packets/00188429 [18:25:59]File name is /storage/ofd_packets/00188429 [18:25:59]Write 307 bytes [18:25:59]NVStorageSaveData done [18:25:59]OFDSenderStorePacket done [18:25:59]KKMCreateOFDPacket done [18:25:59]NVStorageSaveData kkm_last_timestamp [18:25:59]File name is /storage/kkm_last_timestamp [18:25:59]Write 4 bytes [18:25:59]NVStorageSaveData done [18:25:59]ExternCall_PrintAddStr [18:25:59]wPrintStart [18:25:59]Write to MH i2c: 01 00 00 AE 08 B6 [18:25:59]Write i2c OK [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: 01 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: 01 07 00 [18:25:59]MH_I2C_Read... [18:25:59]Read from MH i2c: 01 07 00 AE 08 00 00 00 00 00 FF 0F CB [18:25:59]RasterBufferAndPrint [18:25:59]line Счет N : (1)210490 [18:25:59]line ИНН: 02508201610067 [18:25:59]line Контрольно-Кассовый Чек [18:25:59]line ПРОДАЖА [18:25:59]line ТРК (МРК, ГНК) : 31 [18:25:59]line Товар: 2710194210 [18:25:59]line D-ENERGY ДТ-К-5 [18:25:59]line 12.960 * 77.20 [18:25:59]line = 1000.51 [18:25:59]line НДС 12% НСП 1% [18:25:59]line > о реализуемом товаре [18:25:59]line ОКРУГЛЕНИЕ: -0.51 [18:25:59]line ИТОГО: 1000.00 [18:25:59]line Внесено: 1000.00 [18:25:59]line СДАЧА: 0.00 [18:25:59]line НСП 1% : 8.85 [18:25:59]line НДС 12% : 106.25 [18:25:59]line Наличными: 1000.00 [18:25:59]line Безнал.: 0.00 [18:25:59]line Место: АЗС № 86 "Партнер Нефть" [18:25:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:25:59]line СНО: Общий режим [18:25:59]line Чек 458 22.10.2024 18:25 [18:25:59]line Смена: 461 ФФД: 1.0 [18:25:59]line ЗНМ: 0300000155 [18:25:59]line РНМ: 0000000000100030 [18:25:59]line Версия ККМ: 001 [18:25:59]line ФМ: 0000000000965340 [18:25:59]line ФД: 188429 [18:25:59]line ФПД: 250907756863760 [18:25:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182558&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188429&fm=250907756863760&tin=02508201610067®Number=0000000000100030&sum=100000 [18:25:59]written 0, free lines is 4095 [18:25:59]OFD Sender: Processing packet 188429 [packets to send 1062, broken 1061] [18:25:59]ProducePacketName [18:25:59]name=ofd_packets/00188429 [18:25:59]OFD Sender: To server: pG, [18:25:59]CommunicateWithHost lk.salyk.kg:30040 [18:25:59]ConnectInit lk.salyk.kg [18:25:59]Connected sock=10 [18:25:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F0 BB 0D 01 AC 4C 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 CA 01 00 00 F4 03 04 00 36 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0D E0 02 00 35 04 06 00 E4 33 03 B8 21 10 98 39 72 25 00 01 8F A7 [18:26:00]Write to MH i2c: 01 00 00 D9 08 E1 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: 01 07 00 D9 08 00 00 00 00 00 65 0C 59 [18:26:00]RasterBufferAndPrint [18:26:00]line [18:26:00]line [18:26:00]line [18:26:00]line [18:26:00]line [18:26:00]written 0, free lines is 3176 [18:26:00]MH_Cut [18:26:00]Write to MH i2c: D1 01 00 E0 08 01 BA [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: D1 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: D1 01 00 [18:26:00]MH_I2C_Read... [18:26:00]Read from MH i2c: D1 01 00 E0 08 00 B9 [18:26:00]Write to MH i2c: 01 00 00 E1 08 E9 [18:26:00]Write i2c OK [18:26:00]MH_I2C_Read... [18:26:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7F 50 47 00 83 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 39 36 35 33 34 30 10 04 04 00 0D E0 02 00 F4 03 04 00 23 98 17 67 B6 04 01 00 00 3C D7 84 82 07 EE AE 3D [18:26:00]CommunicateWithHost err = 0 [18:26:00]CheckOFDResponse [18:26:00]1017 (14) - 77093643461234 [18:26:00]1041 (16) - 0000000000965340 [18:26:00]1040 (4) - 188429 [18:26:00]1012 (4) - 22.10.2024 12:18 [18:26:00]1206 (1) - 0 [18:26:00]OFD Sender: Remove packet 188429 [18:26:00]ProducePacketName [18:26:00]name=ofd_packets/00188429 [18:26:00]NVStorageDeleteData [18:26:00]OFD Sender: No OFD packet to send [18:26:01]*** Cut start [18:26:01]*** Partial cut [18:26:01]*** CUTSNS_PIN = 1 [18:26:01]*** CUTSNS_PIN = 0 [18:26:01]*** Brake cut motor [18:26:01]Read from MH i2c: 01 [18:26:01]MH_I2C_Read... [18:26:01]*** Stop cut motor [18:26:01]*** Cut end [18:26:01]Read from MH i2c: 01 07 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: 01 07 00 E1 08 00 00 00 00 00 FF 0F FE [18:26:01]process_action close_receipt done [18:26:01]requested_data is exist [18:26:01]produce_requested_data [18:26:01]requested_item fm.sn is exist - process it [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 11 00 00 [18:26:01]Write to MH i2c: E2 08 00 E2 08 80 11 00 00 00 00 00 00 64 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:26:01]Read from MH i2c: E2 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 17 00 [18:26:01]MH_I2C_Read... [18:26:01]Read from MH i2c: E2 17 00 E2 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [18:26:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:26:01]wFMCommunicate OK [18:26:01]requested_item fd.num is exist - process it [18:26:01]SAM_PROTO_GetFieldsCounters [18:26:01]wFMCommunicate request_size=4 [18:26:01]MH_SAM_APDU [18:26:01]CAPDU: 80 13 00 00 [18:26:01]Write to MH i2c: E2 08 00 E3 08 80 13 00 00 00 00 00 00 67 [18:26:01]Write i2c OK [18:26:01]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 62 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 62 00 E3 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 8C [18:26:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CA 01 00 00 5E 04 04 00 CA 01 00 00 57 04 04 00 CB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:26:02]wFMCommunicate OK [18:26:02]SAM_PROTO_GetFieldsCounters done [18:26:02]requested_item shift.num is exist - process it [18:26:02]requested_item shift.opened is exist - process it [18:26:02]req_shift_opened [18:26:02]FM_GetShiftState [18:26:02]SAM_PROTO_GetShiftState [18:26:02]wFMCommunicate request_size=4 [18:26:02]MH_SAM_APDU [18:26:02]CAPDU: 80 13 01 00 [18:26:02]Write to MH i2c: E2 08 00 E4 08 80 13 01 00 00 00 00 00 69 [18:26:02]Write i2c OK [18:26:02]MH_I2C_Read... [18:26:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:26:02]Read from MH i2c: E2 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 0E 00 [18:26:02]MH_I2C_Read... [18:26:02]Read from MH i2c: E2 0E 00 E4 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5E [18:26:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:26:02]wFMCommunicate OK [18:26:02]SAM_PROTO_GetShiftState done [18:26:02]FM_GetShiftState done [18:26:02]req_shift_opened done [18:26:02]requested_item shift.open_date is exist - process it [18:26:02]req_shift_open_date [18:26:02]req_shift_open_date done [18:26:02]produce_requested_data done [18:26:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188429,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:26:02]process_action_free close_receipt [18:26:02]json_value_free [18:26:02]json_value_free done [18:26:02]process_json_proto returns [18:26:02]Send response to host [18:26:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188429,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:26:02]free response buf [18:26:02]execute_script done [18:26:02]execute_script returns [18:26:02]free content buf [18:26:02]Sock 7.Close socket [18:26:02]Sock 7.Thread stoped [18:26:05]OFD Sender: No OFD packet to send [18:26:10]OFD Sender: No OFD packet to send [18:26:15]OFD Sender: No OFD packet to send [18:26:20]OFD Sender: No OFD packet to send [18:26:25]OFD Sender: No OFD packet to send [18:26:30]OFD Sender: No OFD packet to send [18:26:35]OFD Sender: No OFD packet to send [18:26:40]OFD Sender: No OFD packet to send [18:26:45]OFD Sender: No OFD packet to send [18:26:50]OFD Sender: No OFD packet to send [18:26:55]OFD Sender: No OFD packet to send [18:27:01]OFD Sender: No OFD packet to send [18:27:06]OFD Sender: No OFD packet to send [18:27:11]OFD Sender: No OFD packet to send [18:27:16]OFD Sender: No OFD packet to send [18:27:19]accept exits with 9 [18:27:19]New connection [18:27:19]New thread 3066756452 created [18:27:19]Thread 3066613092 joined [18:27:19]Waiting for new connection... [18:27:19] Sock 9.Parse request [18:27:19]Sock 9.Check first char [18:27:19]Sock 9.First char is OK [18:27:19]request: POST /json_proto HTTP/1.0 [18:27:19]Method: POST [18:27:19]URL: /json_proto [18:27:19]Method is POST - this is cgi request [18:27:19]url: /json_proto [18:27:19]query_string will be loaded in cgi processing [18:27:19]execute_cgi json_proto POST (null) [18:27:19]execute_cgi path=json_proto method=POST [18:27:19]POST find Content-Length [18:27:19]Host: 172.17.42.131:8080 [18:27:19]Content-Length: 688 [18:27:19]Content-Type: application/json [18:27:19] [18:27:19]POST finish read [18:27:19]Found Content-Length = 688 [18:27:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:27:19]execute_script... [18:27: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)210489", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:27:19]POST & json_proto [18:27:19]process_json_proto [18:27:19]json parsed OK: [18:27:19]protocol is kg_v1.0 [18:27:19]action value=close_receipt [18:27:19]process_action close_receipt [18:27:19]cmd_close_receipt [18:27:19]MH_GetDate [18:27:19]Write to MH i2c: F0 00 00 E5 08 DC [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: F0 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: F0 09 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: F0 09 00 E5 08 00 89 EE 17 67 A0 18 CA 66 C2 [18:27:19]GetLastDocTimeStamp 1729621558 [18:27:19]current date 1729621641 [18:27:19]FM_GetShiftState [18:27:19]SAM_PROTO_GetShiftState [18:27:19]wFMCommunicate request_size=4 [18:27:19]MH_SAM_APDU [18:27:19]CAPDU: 80 13 01 00 [18:27:19]Write to MH i2c: E2 08 00 E6 08 80 13 01 00 00 00 00 00 6B [18:27:19]Write i2c OK [18:27:19]MH_I2C_Read... [18:27:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:19]Read from MH i2c: E2 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 [18:27:19]MH_I2C_Read... [18:27:19]Read from MH i2c: E2 0E 00 E6 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 60 [18:27:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:27:19]wFMCommunicate OK [18:27:19]SAM_PROTO_GetShiftState done [18:27:19]FM_GetShiftState done [18:27:19]opened in 1729556094 [18:27:19]opened+sec_in_day 1729642494 [18:27:19]quantity*price = 200025 [18:27:19]sum+1 = 200026 [18:27:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 459 22.10.2024 18:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188430 ФПД: 101780604946746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188430&fm=101780604946746&tin=02508201610067®Number=0000000000100030&sum=200000 [18:27:21]StoreToDocumentArchive [18:27:21]shift 461 fd 188430 [18:27:21]save to /storage/0461/doc_00188430 [18:27:21]save last doc name /storage/0461/doc_00188430 to /storage/kkm_last_doc_name [18:27:21]save OK [18:27:21]Clear old archive folders... [18:27:21]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:27:21]tlvbuf is 00940410 [18:27:21]SAM_PROTO_ClearQueue [18:27:21]wFMCommunicate request_size=4 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 09 00 00 [18:27:21]Write to MH i2c: E2 08 00 F3 08 80 09 00 00 00 00 00 00 6D [18:27:21]OFD Sender: No OFD packet to send [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 F3 08 00 90 00 6F [18:27:21]RAPDU: 90 00 [18:27:21]wFMCommunicate OK [18:27:21]SAM_PROTO_ClearQueue done [18:27:21]KKMCreateOFDPacket [18:27:21]OFDProtocolAddRootSTLVToBuf [18:27:21]FM_MakeSignedData [18:27:21]FM_MakeSignedData [18:27:21]SAM_PROTO_SignData [18:27:21]wFMCommunicate request_size=4 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 0D 01 02 [18:27:21]Write to MH i2c: E2 08 00 F4 08 80 0D 01 02 00 00 00 00 75 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 F4 08 00 90 00 70 [18:27:21]RAPDU: 90 00 [18:27:21]wFMCommunicate OK [18:27:21]wFMCommunicate request_size=255 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 CB 01 00 00 F4 03 04 00 89 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E0 02 [18:27:21]Write to MH i2c: E2 02 01 F5 08 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 CB 01 00 00 F4 03 04 00 89 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E0 02 00 00 95 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 F5 08 00 90 00 71 [18:27:21]RAPDU: 90 00 [18:27:21]wFMCommunicate OK [18:27:21]wFMCommunicate request_size=16 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 5C 91 A4 CD 89 3A [18:27:21]Write to MH i2c: E2 13 00 F6 08 80 0D 02 02 0B 00 00 35 04 06 00 5C 91 A4 CD 89 3A 00 00 EE [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 03 00 F6 08 00 90 00 72 [18:27:21]RAPDU: 90 00 [18:27:21]wFMCommunicate OK [18:27:21]wFMCommunicate request_size=4 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 0D 03 02 [18:27:21]Write to MH i2c: E2 08 00 F7 08 80 0D 03 02 00 00 00 00 7A [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 0B 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 0B 00 F7 08 00 7B C5 CD 14 CF 66 46 75 90 00 8C [18:27:21]RAPDU: 7B C5 CD 14 CF 66 46 75 90 00 [18:27:21]wFMCommunicate OK [18:27:21]SAM_PROTO_SignData done [18:27:21]FM_MakeSignedData done [18:27:21]CreateOFDProtocolMessage [18:27:21]wFMCommunicate request_size=4 [18:27:21]MH_SAM_APDU [18:27:21]CAPDU: 80 11 00 00 [18:27:21]Write to MH i2c: E2 08 00 F8 08 80 11 00 00 00 00 00 00 7A [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:21]Read from MH i2c: E2 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 17 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: E2 17 00 F8 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [18:27:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:27:21]wFMCommunicate OK [18:27:21]CreateOFDProtocolMessage done [18:27:21]OFDSenderStorePacket 188430 [18:27:21]StoreOFDPacket docnum=188430 [18:27:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA 81 0D 01 72 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 CB 01 00 00 F4 03 04 00 89 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E0 02 00 35 04 06 00 5C 91 A4 CD 89 3A 7B C5 CD 14 CF 66 46 75 [18:27:21]CheckFolder [18:27:21]dirname=/storage/ofd_packets [18:27:21]CheckFolder done [18:27:21]ProducePacketName [18:27:21]name=ofd_packets/00188430 [18:27:21]NVStorageSaveData ofd_packets/00188430 [18:27:21]File name is /storage/ofd_packets/00188430 [18:27:21]Write 307 bytes [18:27:21]NVStorageSaveData done [18:27:21]OFDSenderStorePacket done [18:27:21]KKMCreateOFDPacket done [18:27:21]NVStorageSaveData kkm_last_timestamp [18:27:21]File name is /storage/kkm_last_timestamp [18:27:21]Write 4 bytes [18:27:21]NVStorageSaveData done [18:27:21]ExternCall_PrintAddStr [18:27:21]wPrintStart [18:27:21]Write to MH i2c: 01 00 00 F9 08 01 [18:27:21]Write i2c OK [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 07 00 [18:27:21]MH_I2C_Read... [18:27:21]Read from MH i2c: 01 07 00 F9 08 00 00 00 00 00 FF 0F 16 [18:27:21]RasterBufferAndPrint [18:27:21]line Счет N : (1)210489 [18:27:21]line ИНН: 02508201610067 [18:27:21]line Контрольно-Кассовый Чек [18:27:21]line ПРОДАЖА [18:27:21]line ТРК (МРК, ГНК) : 21 [18:27:21]line Товар: 2710194210 [18:27:21]line D-ENERGY ДТ-К-5 [18:27:21]line 25.910 * 77.20 [18:27:21]line = 2000.25 [18:27:21]line НДС 12% НСП 1% [18:27:21]line > о реализуемом товаре [18:27:21]line ОКРУГЛЕНИЕ: -0.25 [18:27:21]line ИТОГО: 2000.00 [18:27:21]line Внесено: 2000.00 [18:27:21]line СДАЧА: 0.00 [18:27:21]line НСП 1% : 17.70 [18:27:21]line НДС 12% : 212.42 [18:27:21]line Наличными: 2000.00 [18:27:21]line Безнал.: 0.00 [18:27:21]line Место: АЗС № 86 "Партнер Нефть" [18:27:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:27:21]line СНО: Общий режим [18:27:21]line Чек 459 22.10.2024 18:27 [18:27:21]line Смена: 461 ФФД: 1.0 [18:27:21]line ЗНМ: 0300000155 [18:27:21]line РНМ: 0000000000100030 [18:27:21]line Версия ККМ: 001 [18:27:21]line ФМ: 0000000000965340 [18:27:21]line ФД: 188430 [18:27:21]line ФПД: 101780604946746 [18:27:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182721&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188430&fm=101780604946746&tin=02508201610067®Number=0000000000100030&sum=200000 [18:27:21]written 0, free lines is 4095 [18:27:21]OFD Sender: Processing packet 188430 [packets to send 1062, broken 1061] [18:27:21]ProducePacketName [18:27:21]name=ofd_packets/00188430 [18:27:21]OFD Sender: To server: pG, [18:27:21]CommunicateWithHost lk.salyk.kg:30040 [18:27:21]ConnectInit lk.salyk.kg [18:27:22]Connected sock=10 [18:27:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 CA 81 0D 01 72 20 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 CB 01 00 00 F4 03 04 00 89 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E0 02 00 35 04 06 00 5C 91 A4 CD 89 3A 7B C5 CD 14 CF 66 46 75 [18:27:22]Write to MH i2c: 01 00 00 24 09 2D [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: 01 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: 01 07 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: 01 07 00 24 09 00 00 00 00 00 61 0C A1 [18:27:22]RasterBufferAndPrint [18:27:22]line [18:27:22]line [18:27:22]line [18:27:22]line [18:27:22]line [18:27:22]written 0, free lines is 3173 [18:27:22]MH_Cut [18:27:22]Write to MH i2c: D1 01 00 2B 09 01 06 [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: D1 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: D1 01 00 [18:27:22]MH_I2C_Read... [18:27:22]Read from MH i2c: D1 01 00 2B 09 00 05 [18:27:22]Write to MH i2c: 01 00 00 2C 09 35 [18:27:22]Write i2c OK [18:27:22]MH_I2C_Read... [18:27:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 2D 47 00 67 9C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0E E0 02 00 F4 03 04 00 75 98 17 67 B6 04 01 00 00 95 AC DC 3F 5B E2 9E 86 [18:27:22]CommunicateWithHost err = 0 [18:27:22]CheckOFDResponse [18:27:22]1017 (14) - 77093643461234 [18:27:22]1041 (16) - 0000000000965340 [18:27:22]1040 (4) - 188430 [18:27:22]1012 (4) - 22.10.2024 12:20 [18:27:22]1206 (1) - 0 [18:27:22]OFD Sender: Remove packet 188430 [18:27:22]ProducePacketName [18:27:22]name=ofd_packets/00188430 [18:27:22]NVStorageDeleteData [18:27:22]OFD Sender: No OFD packet to send [18:27:23]*** Cut start [18:27:23]*** Partial cut [18:27:23]*** CUTSNS_PIN = 1 [18:27:23]*** CUTSNS_PIN = 0 [18:27:23]*** Brake cut motor [18:27:23]Read from MH i2c: 01 [18:27:24]MH_I2C_Read... [18:27:24]*** Stop cut motor [18:27:24]*** Cut end [18:27:24]Read from MH i2c: 01 07 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: 01 07 00 2C 09 00 00 00 00 00 FF 0F 4A [18:27:24]process_action close_receipt done [18:27:24]requested_data is exist [18:27:24]produce_requested_data [18:27:24]requested_item fm.sn is exist - process it [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 11 00 00 [18:27:24]Write to MH i2c: E2 08 00 2D 09 80 11 00 00 00 00 00 00 B0 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 17 00 2D 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [18:27:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:27:24]wFMCommunicate OK [18:27:24]requested_item fd.num is exist - process it [18:27:24]SAM_PROTO_GetFieldsCounters [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 13 00 00 [18:27:24]Write to MH i2c: E2 08 00 2E 09 80 13 00 00 00 00 00 00 B3 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 62 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 62 00 2E 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:27:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CB 01 00 00 5E 04 04 00 CB 01 00 00 57 04 04 00 CC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_GetFieldsCounters done [18:27:24]requested_item shift.num is exist - process it [18:27:24]requested_item shift.opened is exist - process it [18:27:24]req_shift_opened [18:27:24]FM_GetShiftState [18:27:24]SAM_PROTO_GetShiftState [18:27:24]wFMCommunicate request_size=4 [18:27:24]MH_SAM_APDU [18:27:24]CAPDU: 80 13 01 00 [18:27:24]Write to MH i2c: E2 08 00 2F 09 80 13 01 00 00 00 00 00 B5 [18:27:24]Write i2c OK [18:27:24]MH_I2C_Read... [18:27:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:27:24]Read from MH i2c: E2 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0E 00 [18:27:24]MH_I2C_Read... [18:27:24]Read from MH i2c: E2 0E 00 2F 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AA [18:27:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:27:24]wFMCommunicate OK [18:27:24]SAM_PROTO_GetShiftState done [18:27:24]FM_GetShiftState done [18:27:24]req_shift_opened done [18:27:24]requested_item shift.open_date is exist - process it [18:27:24]req_shift_open_date [18:27:24]req_shift_open_date done [18:27:24]produce_requested_data done [18:27:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188430,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:27:24]process_action_free close_receipt [18:27:24]json_value_free [18:27:24]json_value_free done [18:27:24]process_json_proto returns [18:27:24]Send response to host [18:27:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188430,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:27:24]free response buf [18:27:24]execute_script done [18:27:24]execute_script returns [18:27:24]free content buf [18:27:24]Sock 9.Close socket [18:27:24]Sock 9.Thread stoped [18:27:28]OFD Sender: No OFD packet to send [18:27:33]OFD Sender: No OFD packet to send [18:27:38]OFD Sender: No OFD packet to send [18:27:43]OFD Sender: No OFD packet to send [18:27:48]OFD Sender: No OFD packet to send [18:27:53]OFD Sender: No OFD packet to send [18:27:58]OFD Sender: No OFD packet to send [18:28:03]OFD Sender: No OFD packet to send [18:28:04]accept exits with 7 [18:28:04]New connection [18:28:04]New thread 3066613092 created [18:28:04]Thread 3066756452 joined [18:28:04]Waiting for new connection... [18:28:04] Sock 7.Parse request [18:28:04]Sock 7.Check first char [18:28:04]Sock 7.First char is OK [18:28:04]request: POST /json_proto HTTP/1.0 [18:28:04]Method: POST [18:28:04]URL: /json_proto [18:28:04]Method is POST - this is cgi request [18:28:04]url: /json_proto [18:28:04]query_string will be loaded in cgi processing [18:28:04]execute_cgi json_proto POST (null) [18:28:04]execute_cgi path=json_proto method=POST [18:28:04]POST find Content-Length [18:28:04]Host: 172.17.42.131:8080 [18:28:04]Content-Length: 682 [18:28:04]Content-Type: application/json [18:28:04] [18:28:04]POST finish read [18:28:04]Found Content-Length = 682 [18:28:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:28:04]execute_script... [18:28: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)210491", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:28:04]POST & json_proto [18:28:04]process_json_proto [18:28:04]json parsed OK: [18:28:04]protocol is kg_v1.0 [18:28:04]action value=close_receipt [18:28:04]process_action close_receipt [18:28:04]cmd_close_receipt [18:28:04]MH_GetDate [18:28:04]Write to MH i2c: F0 00 00 30 09 28 [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: F0 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: F0 09 00 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: F0 09 00 30 09 00 B5 EE 17 67 A0 18 CA 66 3A [18:28:04]GetLastDocTimeStamp 1729621641 [18:28:04]current date 1729621685 [18:28:04]FM_GetShiftState [18:28:04]SAM_PROTO_GetShiftState [18:28:04]wFMCommunicate request_size=4 [18:28:04]MH_SAM_APDU [18:28:04]CAPDU: 80 13 01 00 [18:28:04]Write to MH i2c: E2 08 00 31 09 80 13 01 00 00 00 00 00 B7 [18:28:04]Write i2c OK [18:28:04]MH_I2C_Read... [18:28:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:04]Read from MH i2c: E2 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: E2 0E 00 [18:28:04]MH_I2C_Read... [18:28:04]Read from MH i2c: E2 0E 00 31 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AC [18:28:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:28:04]wFMCommunicate OK [18:28:04]SAM_PROTO_GetShiftState done [18:28:04]FM_GetShiftState done [18:28:04]opened in 1729556094 [18:28:04]opened+sec_in_day 1729642494 [18:28:04]quantity*price = 100021 [18:28:04]sum+1 = 100023 [18:28:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 460 22.10.2024 18:28 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188431 ФПД: 96842634691103 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182805&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188431&fm=96842634691103&tin=02508201610067®Number=0000000000100030&sum=100000 [18:28:05]StoreToDocumentArchive [18:28:05]shift 461 fd 188431 [18:28:05]save to /storage/0461/doc_00188431 [18:28:05]save last doc name /storage/0461/doc_00188431 to /storage/kkm_last_doc_name [18:28:05]save OK [18:28:05]Clear old archive folders... [18:28:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:28:05]tlvbuf is 00934030 [18:28:05]SAM_PROTO_ClearQueue [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 09 00 00 [18:28:05]Write to MH i2c: E2 08 00 3E 09 80 09 00 00 00 00 00 00 B9 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 3E 09 00 90 00 BB [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]SAM_PROTO_ClearQueue done [18:28:05]KKMCreateOFDPacket [18:28:05]OFDProtocolAddRootSTLVToBuf [18:28:05]FM_MakeSignedData [18:28:05]FM_MakeSignedData [18:28:05]SAM_PROTO_SignData [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 01 02 [18:28:05]Write to MH i2c: E2 08 00 3F 09 80 0D 01 02 00 00 00 00 C1 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 3F 09 00 90 00 BC [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]wFMCommunicate request_size=255 [18:28:05]MH_SAM_APDU [18:28: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 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 CC 01 00 00 F4 03 04 00 B5 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E0 02 00 35 04 06 00 58 [18:28:05]Write to MH i2c: E2 02 01 40 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 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 CC 01 00 00 F4 03 04 00 B5 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E0 02 00 35 04 06 00 58 00 00 56 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 40 09 00 90 00 BD [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]wFMCommunicate request_size=10 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 02 02 05 13 EE D7 02 1F [18:28:05]Write to MH i2c: E2 0D 00 41 09 80 0D 02 02 05 00 13 EE D7 02 1F 00 00 C7 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 03 00 41 09 00 90 00 BE [18:28:05]RAPDU: 90 00 [18:28:05]wFMCommunicate OK [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 0D 03 02 [18:28:05]Write to MH i2c: E2 08 00 42 09 80 0D 03 02 00 00 00 00 C6 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0B 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 0B 00 42 09 00 4D A8 3E 2E 13 30 4E 76 90 00 2F [18:28:05]RAPDU: 4D A8 3E 2E 13 30 4E 76 90 00 [18:28:05]wFMCommunicate OK [18:28:05]SAM_PROTO_SignData done [18:28:05]FM_MakeSignedData done [18:28:05]CreateOFDProtocolMessage [18:28:05]wFMCommunicate request_size=4 [18:28:05]MH_SAM_APDU [18:28:05]CAPDU: 80 11 00 00 [18:28:05]Write to MH i2c: E2 08 00 43 09 80 11 00 00 00 00 00 00 C6 [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:05]Read from MH i2c: E2 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 17 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: E2 17 00 43 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [18:28:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:28:05]wFMCommunicate OK [18:28:05]CreateOFDProtocolMessage done [18:28:05]OFDSenderStorePacket 188431 [18:28:05]StoreOFDPacket docnum=188431 [18:28:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BE 32 07 01 C5 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 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 CC 01 00 00 F4 03 04 00 B5 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E0 02 00 35 04 06 00 58 13 EE D7 02 1F 4D A8 3E 2E 13 30 4E 76 [18:28:05]CheckFolder [18:28:05]dirname=/storage/ofd_packets [18:28:05]CheckFolder done [18:28:05]ProducePacketName [18:28:05]name=ofd_packets/00188431 [18:28:05]NVStorageSaveData ofd_packets/00188431 [18:28:05]File name is /storage/ofd_packets/00188431 [18:28:05]Write 301 bytes [18:28:05]NVStorageSaveData done [18:28:05]OFDSenderStorePacket done [18:28:05]KKMCreateOFDPacket done [18:28:05]NVStorageSaveData kkm_last_timestamp [18:28:05]File name is /storage/kkm_last_timestamp [18:28:05]Write 4 bytes [18:28:05]NVStorageSaveData done [18:28:05]ExternCall_PrintAddStr [18:28:05]wPrintStart [18:28:05]Write to MH i2c: 01 00 00 44 09 4D [18:28:05]Write i2c OK [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 [18:28:05]MH_I2C_Read... [18:28:05]Read from MH i2c: 01 07 00 44 09 00 00 00 00 00 FF 0F 62 [18:28:05]RasterBufferAndPrint [18:28:05]line Счет N : (1)210491 [18:28:05]line ИНН: 02508201610067 [18:28:05]line Контрольно-Кассовый Чек [18:28:05]line ПРОДАЖА [18:28:05]line ТРК (МРК, ГНК) : 13 [18:28:05]line Товар: 2710124500 [18:28:05]line Аи-95-К-3 [18:28:05]line 13.480 * 74.20 [18:28:05]line = 1000.22 [18:28:05]line НДС 12% НСП 1% [18:28:05]line > о реализуемом товаре [18:28:05]line ОКРУГЛЕНИЕ: -0.22 [18:28:05]line ИТОГО: 1000.00 [18:28:05]line Внесено: 1000.00 [18:28:05]line СДАЧА: 0.00 [18:28:05]line НСП 1% : 8.85 [18:28:05]line НДС 12% : 106.22 [18:28:05]line Наличными: 1000.00 [18:28:05]line Безнал.: 0.00 [18:28:05]line Место: АЗС № 86 "Партнер Нефть" [18:28:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:28:05]line СНО: Общий режим [18:28:05]line Чек 460 22.10.2024 18:28 [18:28:05]line Смена: 461 ФФД: 1.0 [18:28:05]line ЗНМ: 0300000155 [18:28:05]line РНМ: 0000000000100030 [18:28:05]line Версия ККМ: 001 [18:28:05]line ФМ: 0000000000965340 [18:28:05]line ФД: 188431 [18:28:05]line ФПД: 96842634691103 [18:28:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T182805&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188431&fm=96842634691103&tin=02508201610067®Number=0000000000100030&sum=100000 [18:28:05]written 0, free lines is 4095 [18:28:05]OFD Sender: Processing packet 188431 [packets to send 1062, broken 1061] [18:28:05]ProducePacketName [18:28:05]name=ofd_packets/00188431 [18:28:05]OFD Sender: To server: pG, [18:28:05]CommunicateWithHost lk.salyk.kg:30040 [18:28:05]ConnectInit lk.salyk.kg [18:28:06]Connected sock=10 [18:28:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BE 32 07 01 C5 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 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 CC 01 00 00 F4 03 04 00 B5 EE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 0F E0 02 00 35 04 06 00 58 13 EE D7 02 1F 4D A8 3E 2E 13 30 4E 76 [18:28:06]Write to MH i2c: 01 00 00 6F 09 78 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: 01 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: 01 07 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: 01 07 00 6F 09 00 00 00 00 00 65 0C F0 [18:28:06]RasterBufferAndPrint [18:28:06]line [18:28:06]line [18:28:06]line [18:28:06]line [18:28:06]line [18:28:06]written 0, free lines is 3176 [18:28:06]MH_Cut [18:28:06]Write to MH i2c: D1 01 00 76 09 01 51 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: D1 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: D1 01 00 [18:28:06]MH_I2C_Read... [18:28:06]Read from MH i2c: D1 01 00 76 09 00 50 [18:28:06]Write to MH i2c: 01 00 00 77 09 80 [18:28:06]Write i2c OK [18:28:06]MH_I2C_Read... [18:28:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AE 74 47 00 6B 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 39 36 35 33 34 30 10 04 04 00 0F E0 02 00 F4 03 04 00 A1 98 17 67 B6 04 01 00 00 BF 4F D3 FC BF AC 99 A5 [18:28:06]CommunicateWithHost err = 0 [18:28:06]CheckOFDResponse [18:28:06]1017 (14) - 77093643461234 [18:28:06]1041 (16) - 0000000000965340 [18:28:06]1040 (4) - 188431 [18:28:06]1012 (4) - 22.10.2024 12:20 [18:28:06]1206 (1) - 0 [18:28:06]OFD Sender: Remove packet 188431 [18:28:06]ProducePacketName [18:28:06]name=ofd_packets/00188431 [18:28:06]NVStorageDeleteData [18:28:07]OFD Sender: No OFD packet to send [18:28:07]*** Cut start [18:28:07]*** Partial cut [18:28:07]*** CUTSNS_PIN = 1 [18:28:07]*** CUTSNS_PIN = 0 [18:28:07]*** Brake cut motor [18:28:08]Read from MH i2c: 01 [18:28:08]MH_I2C_Read... [18:28:08]*** Stop cut motor [18:28:08]*** Cut end [18:28:08]Read from MH i2c: 01 07 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: 01 07 00 77 09 00 00 00 00 00 FF 0F 95 [18:28:08]process_action close_receipt done [18:28:08]requested_data is exist [18:28:08]produce_requested_data [18:28:08]requested_item fm.sn is exist - process it [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 11 00 00 [18:28:08]Write to MH i2c: E2 08 00 78 09 80 11 00 00 00 00 00 00 FB [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 17 00 78 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 49 [18:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:28:08]wFMCommunicate OK [18:28:08]requested_item fd.num is exist - process it [18:28:08]SAM_PROTO_GetFieldsCounters [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 00 00 [18:28:08]Write to MH i2c: E2 08 00 79 09 80 13 00 00 00 00 00 00 FE [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 62 00 79 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 2B [18:28:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 0F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CC 01 00 00 5E 04 04 00 CC 01 00 00 57 04 04 00 CD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetFieldsCounters done [18:28:08]requested_item shift.num is exist - process it [18:28:08]requested_item shift.opened is exist - process it [18:28:08]req_shift_opened [18:28:08]FM_GetShiftState [18:28:08]SAM_PROTO_GetShiftState [18:28:08]wFMCommunicate request_size=4 [18:28:08]MH_SAM_APDU [18:28:08]CAPDU: 80 13 01 00 [18:28:08]Write to MH i2c: E2 08 00 7A 09 80 13 01 00 00 00 00 00 00 [18:28:08]Write i2c OK [18:28:08]MH_I2C_Read... [18:28:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:28:08]Read from MH i2c: E2 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 [18:28:08]MH_I2C_Read... [18:28:08]Read from MH i2c: E2 0E 00 7A 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F5 [18:28:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:28:08]wFMCommunicate OK [18:28:08]SAM_PROTO_GetShiftState done [18:28:08]FM_GetShiftState done [18:28:08]req_shift_opened done [18:28:08]requested_item shift.open_date is exist - process it [18:28:08]req_shift_open_date [18:28:08]req_shift_open_date done [18:28:08]produce_requested_data done [18:28:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188431,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:28:08]process_action_free close_receipt [18:28:08]json_value_free [18:28:08]json_value_free done [18:28:08]process_json_proto returns [18:28:08]Send response to host [18:28:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188431,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:28:08]free response buf [18:28:08]execute_script done [18:28:08]execute_script returns [18:28:08]free content buf [18:28:08]Sock 7.Close socket [18:28:08]Sock 7.Thread stoped [18:28:12]OFD Sender: No OFD packet to send [18:28:17]OFD Sender: No OFD packet to send [18:28:22]OFD Sender: No OFD packet to send [18:28:27]OFD Sender: No OFD packet to send [18:28:32]OFD Sender: No OFD packet to send [18:28:37]OFD Sender: No OFD packet to send [18:28:42]OFD Sender: No OFD packet to send [18:28:47]OFD Sender: No OFD packet to send [18:28:52]OFD Sender: No OFD packet to send [18:28:57]OFD Sender: No OFD packet to send [18:29:02]OFD Sender: No OFD packet to send [18:29:07]OFD Sender: No OFD packet to send [18:29:12]OFD Sender: No OFD packet to send [18:29:17]OFD Sender: No OFD packet to send [18:29:22]OFD Sender: No OFD packet to send [18:29:27]OFD Sender: No OFD packet to send [18:29:32]OFD Sender: No OFD packet to send [18:29:37]OFD Sender: No OFD packet to send [18:29:42]OFD Sender: No OFD packet to send [18:29:47]OFD Sender: No OFD packet to send [18:29:52]OFD Sender: No OFD packet to send [18:29:57]OFD Sender: No OFD packet to send [18:30:02]OFD Sender: No OFD packet to send [18:30:07]OFD Sender: No OFD packet to send [18:30:12]OFD Sender: No OFD packet to send [18:30:17]OFD Sender: No OFD packet to send [18:30:22]OFD Sender: No OFD packet to send [18:30:27]OFD Sender: No OFD packet to send [18:30:32]OFD Sender: No OFD packet to send [18:30:37]OFD Sender: No OFD packet to send [18:30:42]OFD Sender: No OFD packet to send [18:30:47]OFD Sender: No OFD packet to send [18:30:52]OFD Sender: No OFD packet to send [18:30:57]OFD Sender: No OFD packet to send [18:31:02]OFD Sender: No OFD packet to send [18:31:07]OFD Sender: No OFD packet to send [18:31:12]OFD Sender: No OFD packet to send [18:31:17]OFD Sender: No OFD packet to send [18:31:22]OFD Sender: No OFD packet to send [18:31:27]OFD Sender: No OFD packet to send [18:31:32]OFD Sender: No OFD packet to send [18:31:38]OFD Sender: No OFD packet to send [18:31:43]OFD Sender: No OFD packet to send [18:31:48]OFD Sender: No OFD packet to send [18:31:53]OFD Sender: No OFD packet to send [18:31:58]OFD Sender: No OFD packet to send [18:32:03]OFD Sender: No OFD packet to send [18:32:08]OFD Sender: No OFD packet to send [18:32:13]OFD Sender: No OFD packet to send [18:32:18]OFD Sender: No OFD packet to send [18:32:23]OFD Sender: No OFD packet to send [18:32:28]OFD Sender: No OFD packet to send [18:32:33]OFD Sender: No OFD packet to send [18:32:38]OFD Sender: No OFD packet to send [18:32:43]OFD Sender: No OFD packet to send [18:32:48]OFD Sender: No OFD packet to send [18:32:53]OFD Sender: No OFD packet to send [18:32:58]OFD Sender: No OFD packet to send [18:33:03]OFD Sender: No OFD packet to send [18:33:08]OFD Sender: No OFD packet to send [18:33:13]OFD Sender: No OFD packet to send [18:33:18]OFD Sender: No OFD packet to send [18:33:23]OFD Sender: No OFD packet to send [18:33:28]OFD Sender: No OFD packet to send [18:33:33]OFD Sender: No OFD packet to send [18:33:38]OFD Sender: No OFD packet to send [18:33:43]OFD Sender: No OFD packet to send [18:33:44]accept exits with 9 [18:33:44]New connection [18:33:44]New thread 3066756452 created [18:33:44]Thread 3066613092 joined [18:33:44]Waiting for new connection... [18:33:44] Sock 9.Parse request [18:33:44]Sock 9.Check first char [18:33:44]Sock 9.First char is OK [18:33:44]request: POST /json_proto HTTP/1.0 [18:33:44]Method: POST [18:33:44]URL: /json_proto [18:33:44]Method is POST - this is cgi request [18:33:44]url: /json_proto [18:33:44]query_string will be loaded in cgi processing [18:33:44]execute_cgi json_proto POST (null) [18:33:44]execute_cgi path=json_proto method=POST [18:33:44]POST find Content-Length [18:33:44]Host: 172.17.42.131:8080 [18:33:44]Content-Length: 767 [18:33:44]Content-Type: application/json [18:33:44] [18:33:44]POST finish read [18:33:44]Found Content-Length = 767 [18:33:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:44]execute_script... [18:33: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)210492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:33:44]POST & json_proto [18:33:44]process_json_proto [18:33:44]json parsed OK: [18:33:44]protocol is kg_v1.0 [18:33:44]action value=close_receipt [18:33:44]process_action close_receipt [18:33:44]cmd_close_receipt [18:33:44]MH_GetDate [18:33:44]Write to MH i2c: F0 00 00 7B 09 73 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: F0 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: F0 09 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: F0 09 00 7B 09 00 09 F0 17 67 A0 18 CA 66 DB [18:33:44]GetLastDocTimeStamp 1729621685 [18:33:44]current date 1729622025 [18:33:44]FM_GetShiftState [18:33:44]SAM_PROTO_GetShiftState [18:33:44]wFMCommunicate request_size=4 [18:33:44]MH_SAM_APDU [18:33:44]CAPDU: 80 13 01 00 [18:33:44]Write to MH i2c: E2 08 00 7C 09 80 13 01 00 00 00 00 00 02 [18:33:44]Write i2c OK [18:33:44]MH_I2C_Read... [18:33:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:44]Read from MH i2c: E2 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0E 00 [18:33:44]MH_I2C_Read... [18:33:44]Read from MH i2c: E2 0E 00 7C 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F7 [18:33:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:33:44]wFMCommunicate OK [18:33:44]SAM_PROTO_GetShiftState done [18:33:44]FM_GetShiftState done [18:33:44]opened in 1729556094 [18:33:44]opened+sec_in_day 1729642494 [18:33:44]quantity*price = 990066 [18:33:44]sum+1 = 990068 [18:33:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.67 НСП 1% : 87.62 НДС 12% : 1051.40 Наличными: 0.00 Безнал.: 9900.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 461 22.10.2024 18:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188432 ФПД: 271446745074062 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188432&fm=271446745074062&tin=02508201610067®Number=0000000000100030&sum=990067 [18:33:45]StoreToDocumentArchive [18:33:45]shift 461 fd 188432 [18:33:45]save to /storage/0461/doc_00188432 [18:33:45]save last doc name /storage/0461/doc_00188432 to /storage/kkm_last_doc_name [18:33:45]save OK [18:33:45]Clear old archive folders... [18:33:45]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:33:45]tlvbuf is B6F25060 [18:33:45]SAM_PROTO_ClearQueue [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 09 00 00 [18:33:45]Write to MH i2c: E2 08 00 89 09 80 09 00 00 00 00 00 00 04 [18:33:45]Write i2c OK [18:33:45]MH_I2C_Read... [18:33:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:33:45]Read from MH i2c: E2 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 03 00 [18:33:45]MH_I2C_Read... [18:33:45]Read from MH i2c: E2 03 00 89 09 00 90 00 06 [18:33:45]RAPDU: 90 00 [18:33:45]wFMCommunicate OK [18:33:45]SAM_PROTO_ClearQueue done [18:33:45]KKMCreateOFDPacket [18:33:45]OFDProtocolAddRootSTLVToBuf [18:33:45]FM_MakeSignedData [18:33:45]FM_MakeSignedData [18:33:45]SAM_PROTO_SignData [18:33:45]wFMCommunicate request_size=4 [18:33:45]MH_SAM_APDU [18:33:45]CAPDU: 80 0D 01 02 [18:33:45]Write to MH i2c: E2 08 00 8A 09 80 0D 01 02 00 00 00 00 0C [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 8A 09 00 90 00 07 [18:33:46]RAPDU: 90 00 [18:33:46]wFMCommunicate OK [18:33:46]wFMCommunicate request_size=255 [18:33:46]MH_SAM_APDU [18:33: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 09 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E0 02 00 35 04 06 00 F6 E1 1E D0 [18:33:46]Write to MH i2c: E2 02 01 8B 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 09 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E0 02 00 35 04 06 00 F6 E1 1E D0 00 00 02 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 8B 09 00 90 00 08 [18:33:46]RAPDU: 90 00 [18:33:46]wFMCommunicate OK [18:33:46]wFMCommunicate request_size=7 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 0D 02 02 02 C9 8E [18:33:46]Write to MH i2c: E2 0A 00 8C 09 80 0D 02 02 02 00 C9 8E 00 00 6A [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 03 00 8C 09 00 90 00 09 [18:33:46]RAPDU: 90 00 [18:33:46]wFMCommunicate OK [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 0D 03 02 [18:33:46]Write to MH i2c: E2 08 00 8D 09 80 0D 03 02 00 00 00 00 11 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 0B 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 0B 00 8D 09 00 88 98 E2 4C C3 6E 91 B5 90 00 D7 [18:33:46]RAPDU: 88 98 E2 4C C3 6E 91 B5 90 00 [18:33:46]wFMCommunicate OK [18:33:46]SAM_PROTO_SignData done [18:33:46]FM_MakeSignedData done [18:33:46]CreateOFDProtocolMessage [18:33:46]wFMCommunicate request_size=4 [18:33:46]MH_SAM_APDU [18:33:46]CAPDU: 80 11 00 00 [18:33:46]Write to MH i2c: E2 08 00 8E 09 80 11 00 00 00 00 00 00 11 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:46]Read from MH i2c: E2 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 17 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: E2 17 00 8E 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [18:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:46]wFMCommunicate OK [18:33:46]CreateOFDProtocolMessage done [18:33:46]OFDSenderStorePacket 188432 [18:33:46]StoreOFDPacket docnum=188432 [18:33:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A8 4D 04 01 8F A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 09 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E0 02 00 35 04 06 00 F6 E1 1E D0 C9 8E 88 98 E2 4C C3 6E 91 B5 [18:33:46]CheckFolder [18:33:46]dirname=/storage/ofd_packets [18:33:46]CheckFolder done [18:33:46]ProducePacketName [18:33:46]name=ofd_packets/00188432 [18:33:46]NVStorageSaveData ofd_packets/00188432 [18:33:46]File name is /storage/ofd_packets/00188432 [18:33:46]Write 298 bytes [18:33:46]NVStorageSaveData done [18:33:46]OFDSenderStorePacket done [18:33:46]KKMCreateOFDPacket done [18:33:46]NVStorageSaveData kkm_last_timestamp [18:33:46]File name is /storage/kkm_last_timestamp [18:33:46]Write 4 bytes [18:33:46]NVStorageSaveData done [18:33:46]ExternCall_PrintAddStr [18:33:46]wPrintStart [18:33:46]Write to MH i2c: 01 00 00 8F 09 98 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 8F 09 00 00 00 00 00 FF 0F AD [18:33:46]RasterBufferAndPrint [18:33:46]line Счет N : (1)210492 [18:33:46]line ИНН: 02508201610067 [18:33:46]line Контрольно-Кассовый Чек [18:33:46]line ПРОДАЖА [18:33:46]line ТРК (МРК, ГНК) : 51 [18:33:46]line Товар: 2710194210 [18:33:46]line ДТ-К-5 [18:33:46]line 129.930 * 76.20 [18:33:46]line = 9900.67 [18:33:46]line НДС 12% НСП 1% [18:33:46]line > о реализуемом товаре [18:33:46]line ИТОГО: 9900.67 [18:33:46]line НСП 1% : 87.62 [18:33:46]line НДС 12% : 1051.40 [18:33:46]line Наличными: 0.00 [18:33:46]line Безнал.: 9900.67 [18:33:46]line Место: АЗС № 86 "Партнер Нефть" [18:33:46]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:33:46]line СНО: Общий режим [18:33:46]line Чек 461 22.10.2024 18:33 [18:33:46]line Смена: 461 ФФД: 1.0 [18:33:46]line ЗНМ: 0300000155 [18:33:46]line РНМ: 0000000000100030 [18:33:46]line Версия ККМ: 001 [18:33:46]line Платежная система: Mbank [18:33:46]line ФМ: 0000000000965340 [18:33:46]line ФД: 188432 [18:33:46]line ФПД: 271446745074062 [18:33:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183345&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188432&fm=271446745074062&tin=02508201610067®Number=0000000000100030&sum=990067 [18:33:46]written 0, free lines is 4095 [18:33:46]OFD Sender: Processing packet 188432 [packets to send 1062, broken 1061] [18:33:46]ProducePacketName [18:33:46]name=ofd_packets/00188432 [18:33:46]OFD Sender: To server: pG, [18:33:46]CommunicateWithHost lk.salyk.kg:30040 [18:33:46]ConnectInit lk.salyk.kg [18:33:46]Connected sock=7 [18:33:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 A8 4D 04 01 8F A2 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 CD 01 00 00 F4 03 04 00 09 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 10 E0 02 00 35 04 06 00 F6 E1 1E D0 C9 8E 88 98 E2 4C C3 6E 91 B5 [18:33:46]Write to MH i2c: 01 00 00 B8 09 C1 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: 01 07 00 B8 09 00 00 00 00 00 95 0C 69 [18:33:46]RasterBufferAndPrint [18:33:46]line [18:33:46]line [18:33:46]line [18:33:46]line [18:33:46]line [18:33:46]written 0, free lines is 3225 [18:33:46]MH_Cut [18:33:46]Write to MH i2c: D1 01 00 BF 09 01 9A [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: D1 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: D1 01 00 [18:33:46]MH_I2C_Read... [18:33:46]Read from MH i2c: D1 01 00 BF 09 00 99 [18:33:46]Write to MH i2c: 01 00 00 C0 09 C9 [18:33:46]Write i2c OK [18:33:46]MH_I2C_Read... [18:33:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 60 7C 47 00 77 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 39 36 35 33 34 30 10 04 04 00 10 E0 02 00 F4 03 04 00 F6 99 17 67 B6 04 01 00 00 A6 0B 30 2F 5D B6 A0 27 [18:33:47]CommunicateWithHost err = 0 [18:33:47]CheckOFDResponse [18:33:47]1017 (14) - 77093643461234 [18:33:47]1041 (16) - 0000000000965340 [18:33:47]1040 (4) - 188432 [18:33:47]1012 (4) - 22.10.2024 12:26 [18:33:47]1206 (1) - 0 [18:33:47]OFD Sender: Remove packet 188432 [18:33:47]ProducePacketName [18:33:47]name=ofd_packets/00188432 [18:33:47]NVStorageDeleteData [18:33:47]OFD Sender: No OFD packet to send [18:33:48]*** Cut start [18:33:48]*** Partial cut [18:33:48]*** CUTSNS_PIN = 1 [18:33:48]*** CUTSNS_PIN = 0 [18:33:48]*** Brake cut motor [18:33:48]Read from MH i2c: 01 [18:33:48]MH_I2C_Read... [18:33:48]*** Stop cut motor [18:33:48]*** Cut end [18:33:48]Read from MH i2c: 01 07 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: 01 07 00 C0 09 00 00 00 00 00 FF 0F DE [18:33:48]process_action close_receipt done [18:33:48]requested_data is exist [18:33:48]produce_requested_data [18:33:48]requested_item fm.sn is exist - process it [18:33:48]wFMCommunicate request_size=4 [18:33:48]MH_SAM_APDU [18:33:48]CAPDU: 80 11 00 00 [18:33:48]Write to MH i2c: E2 08 00 C1 09 80 11 00 00 00 00 00 00 44 [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:33:48]Read from MH i2c: E2 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 17 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 17 00 C1 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [18:33:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:33:48]wFMCommunicate OK [18:33:48]requested_item fd.num is exist - process it [18:33:48]SAM_PROTO_GetFieldsCounters [18:33:48]wFMCommunicate request_size=4 [18:33:48]MH_SAM_APDU [18:33:48]CAPDU: 80 13 00 00 [18:33:48]Write to MH i2c: E2 08 00 C2 09 80 13 00 00 00 00 00 00 47 [18:33:48]Write i2c OK [18:33:48]MH_I2C_Read... [18:33:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:33:48]Read from MH i2c: E2 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 62 00 [18:33:48]MH_I2C_Read... [18:33:48]Read from MH i2c: E2 62 00 C2 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 78 [18:33:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 10 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CD 01 00 00 5E 04 04 00 CD 01 00 00 57 04 04 00 CE 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:33:49]wFMCommunicate OK [18:33:49]SAM_PROTO_GetFieldsCounters done [18:33:49]requested_item shift.num is exist - process it [18:33:49]requested_item shift.opened is exist - process it [18:33:49]req_shift_opened [18:33:49]FM_GetShiftState [18:33:49]SAM_PROTO_GetShiftState [18:33:49]wFMCommunicate request_size=4 [18:33:49]MH_SAM_APDU [18:33:49]CAPDU: 80 13 01 00 [18:33:49]Write to MH i2c: E2 08 00 C3 09 80 13 01 00 00 00 00 00 49 [18:33:49]Write i2c OK [18:33:49]MH_I2C_Read... [18:33:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:33:49]Read from MH i2c: E2 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 0E 00 [18:33:49]MH_I2C_Read... [18:33:49]Read from MH i2c: E2 0E 00 C3 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3E [18:33:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:33:49]wFMCommunicate OK [18:33:49]SAM_PROTO_GetShiftState done [18:33:49]FM_GetShiftState done [18:33:49]req_shift_opened done [18:33:49]requested_item shift.open_date is exist - process it [18:33:49]req_shift_open_date [18:33:49]req_shift_open_date done [18:33:49]produce_requested_data done [18:33:49]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188432,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:33:49]process_action_free close_receipt [18:33:49]json_value_free [18:33:49]json_value_free done [18:33:49]process_json_proto returns [18:33:49]Send response to host [18:33:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188432,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:33:49]free response buf [18:33:49]execute_script done [18:33:49]execute_script returns [18:33:49]free content buf [18:33:49]Sock 9.Close socket [18:33:49]Sock 9.Thread stoped [18:33:52]OFD Sender: No OFD packet to send [18:33:57]OFD Sender: No OFD packet to send [18:34:02]OFD Sender: No OFD packet to send [18:34:07]OFD Sender: No OFD packet to send [18:34:12]OFD Sender: No OFD packet to send [18:34:17]OFD Sender: No OFD packet to send [18:34:22]OFD Sender: No OFD packet to send [18:34:27]OFD Sender: No OFD packet to send [18:34:32]OFD Sender: No OFD packet to send [18:34:37]OFD Sender: No OFD packet to send [18:34:42]OFD Sender: No OFD packet to send [18:34:47]OFD Sender: No OFD packet to send [18:34:52]OFD Sender: No OFD packet to send [18:34:58]OFD Sender: No OFD packet to send [18:35:01]accept exits with 10 [18:35:01]New connection [18:35:01]New thread 3066613092 created [18:35:01]Thread 3066756452 joined [18:35:01]Waiting for new connection... [18:35:01] Sock 10.Parse request [18:35:01]Sock 10.Check first char [18:35:01]Sock 10.First char is OK [18:35:01]request: POST /json_proto HTTP/1.0 [18:35:01]Method: POST [18:35:01]URL: /json_proto [18:35:01]Method is POST - this is cgi request [18:35:01]url: /json_proto [18:35:01]query_string will be loaded in cgi processing [18:35:01]execute_cgi json_proto POST (null) [18:35:01]execute_cgi path=json_proto method=POST [18:35:01]POST find Content-Length [18:35:01]Host: 172.17.42.131:8080 [18:35:01]Content-Length: 688 [18:35:01]Content-Type: application/json [18:35:01] [18:35:01]POST finish read [18:35:01]Found Content-Length = 688 [18:35:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:01]execute_script... [18:35: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)210494", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 38.870, "sum" : 3000.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:35:01]POST & json_proto [18:35:01]process_json_proto [18:35:01]json parsed OK: [18:35:01]protocol is kg_v1.0 [18:35:01]action value=close_receipt [18:35:01]process_action close_receipt [18:35:01]cmd_close_receipt [18:35:01]MH_GetDate [18:35:01]Write to MH i2c: F0 00 00 C4 09 BC [18:35:01]Write i2c OK [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 [18:35:01]MH_I2C_Read... [18:35:01]Read from MH i2c: F0 09 00 [18:35:01]MH_I2C_Read... [18:35:02]Read from MH i2c: F0 09 00 C4 09 00 57 F0 17 67 A0 18 CA 66 72 [18:35:02]GetLastDocTimeStamp 1729622025 [18:35:02]current date 1729622103 [18:35:02]FM_GetShiftState [18:35:02]SAM_PROTO_GetShiftState [18:35:02]wFMCommunicate request_size=4 [18:35:02]MH_SAM_APDU [18:35:02]CAPDU: 80 13 01 00 [18:35:02]Write to MH i2c: E2 08 00 C5 09 80 13 01 00 00 00 00 00 4B [18:35:02]Write i2c OK [18:35:02]MH_I2C_Read... [18:35:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:02]Read from MH i2c: E2 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 0E 00 [18:35:02]MH_I2C_Read... [18:35:02]Read from MH i2c: E2 0E 00 C5 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 40 [18:35:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:35:02]wFMCommunicate OK [18:35:02]SAM_PROTO_GetShiftState done [18:35:02]FM_GetShiftState done [18:35:02]opened in 1729556094 [18:35:02]opened+sec_in_day 1729642494 [18:35:02]quantity*price = 300076 [18:35:02]sum+1 = 300077 [18:35:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 462 22.10.2024 18:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188433 ФПД: 10788238351098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188433&fm=10788238351098&tin=02508201610067®Number=0000000000100030&sum=300000 [18:35:03]StoreToDocumentArchive [18:35:03]shift 461 fd 188433 [18:35:03]save to /storage/0461/doc_00188433 [18:35:03]save last doc name /storage/0461/doc_00188433 to /storage/kkm_last_doc_name [18:35:03]save OK [18:35:03]Clear old archive folders... [18:35:03]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:35:03]tlvbuf is 00929D90 [18:35:03]SAM_PROTO_ClearQueue [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 09 00 00 [18:35:03]Write to MH i2c: E2 08 00 D2 09 80 09 00 00 00 00 00 00 4D [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 D2 09 00 90 00 4F [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_ClearQueue done [18:35:03]KKMCreateOFDPacket [18:35:03]OFDProtocolAddRootSTLVToBuf [18:35:03]FM_MakeSignedData [18:35:03]FM_MakeSignedData [18:35:03]SAM_PROTO_SignData [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 01 02 [18:35:03]Write to MH i2c: E2 08 00 D3 09 80 0D 01 02 00 00 00 00 55 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 D3 09 00 90 00 50 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=255 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 57 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E0 02 [18:35:03]Write to MH i2c: E2 02 01 D4 09 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 57 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E0 02 00 00 E9 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 D4 09 00 90 00 51 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=16 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 09 CF D5 1D 5A FA [18:35:03]Write to MH i2c: E2 13 00 D5 09 80 0D 02 02 0B 00 00 35 04 06 00 09 CF D5 1D 5A FA 00 00 CB [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 03 00 D5 09 00 90 00 52 [18:35:03]RAPDU: 90 00 [18:35:03]wFMCommunicate OK [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 0D 03 02 [18:35:03]Write to MH i2c: E2 08 00 D6 09 80 0D 03 02 00 00 00 00 5A [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0B 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 0B 00 D6 09 00 FC 24 52 F2 1E B5 14 83 90 00 29 [18:35:03]RAPDU: FC 24 52 F2 1E B5 14 83 90 00 [18:35:03]wFMCommunicate OK [18:35:03]SAM_PROTO_SignData done [18:35:03]FM_MakeSignedData done [18:35:03]CreateOFDProtocolMessage [18:35:03]wFMCommunicate request_size=4 [18:35:03]MH_SAM_APDU [18:35:03]CAPDU: 80 11 00 00 [18:35:03]Write to MH i2c: E2 08 00 D7 09 80 11 00 00 00 00 00 00 5A [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:03]Read from MH i2c: E2 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: E2 17 00 D7 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [18:35:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:35:03]wFMCommunicate OK [18:35:03]CreateOFDProtocolMessage done [18:35:03]OFDSenderStorePacket 188433 [18:35:03]StoreOFDPacket docnum=188433 [18:35:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EE 05 0D 01 DE C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 57 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E0 02 00 35 04 06 00 09 CF D5 1D 5A FA FC 24 52 F2 1E B5 14 83 [18:35:03]CheckFolder [18:35:03]dirname=/storage/ofd_packets [18:35:03]CheckFolder done [18:35:03]ProducePacketName [18:35:03]name=ofd_packets/00188433 [18:35:03]NVStorageSaveData ofd_packets/00188433 [18:35:03]File name is /storage/ofd_packets/00188433 [18:35:03]Write 307 bytes [18:35:03]NVStorageSaveData done [18:35:03]OFDSenderStorePacket done [18:35:03]KKMCreateOFDPacket done [18:35:03]NVStorageSaveData kkm_last_timestamp [18:35:03]File name is /storage/kkm_last_timestamp [18:35:03]Write 4 bytes [18:35:03]NVStorageSaveData done [18:35:03]ExternCall_PrintAddStr [18:35:03]wPrintStart [18:35:03]Write to MH i2c: 01 00 00 D8 09 E1 [18:35:03]Write i2c OK [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 [18:35:03]MH_I2C_Read... [18:35:03]Read from MH i2c: 01 07 00 D8 09 00 00 00 00 00 FF 0F F6 [18:35:03]RasterBufferAndPrint [18:35:03]line Счет N : (1)210494 [18:35:03]line ИНН: 02508201610067 [18:35:03]line Контрольно-Кассовый Чек [18:35:03]line ПРОДАЖА [18:35:03]line ТРК (МРК, ГНК) : 41 [18:35:03]line Товар: 2710194210 [18:35:03]line D-ENERGY ДТ-К-5 [18:35:03]line 38.870 * 77.20 [18:35:03]line = 3000.76 [18:35:03]line НДС 12% НСП 1% [18:35:03]line > о реализуемом товаре [18:35:03]line ОКРУГЛЕНИЕ: -0.76 [18:35:03]line ИТОГО: 3000.00 [18:35:03]line Внесено: 3000.00 [18:35:03]line СДАЧА: 0.00 [18:35:03]line НСП 1% : 26.55 [18:35:03]line НДС 12% : 318.66 [18:35:03]line Наличными: 3000.00 [18:35:03]line Безнал.: 0.00 [18:35:03]line Место: АЗС № 86 "Партнер Нефть" [18:35:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:35:03]line СНО: Общий режим [18:35:03]line Чек 462 22.10.2024 18:35 [18:35:03]line Смена: 461 ФФД: 1.0 [18:35:03]line ЗНМ: 0300000155 [18:35:03]line РНМ: 0000000000100030 [18:35:03]line Версия ККМ: 001 [18:35:03]line ФМ: 0000000000965340 [18:35:03]line ФД: 188433 [18:35:03]line ФПД: 10788238351098 [18:35:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188433&fm=10788238351098&tin=02508201610067®Number=0000000000100030&sum=300000 [18:35:04]OFD Sender: Processing packet 188433 [packets to send 1062, broken 1061] [18:35:04]ProducePacketName [18:35:04]name=ofd_packets/00188433 [18:35:04]OFD Sender: To server: pG, [18:35:04]CommunicateWithHost lk.salyk.kg:30040 [18:35:04]ConnectInit lk.salyk.kg [18:35:04]written 0, free lines is 4095 [18:35:04]Connected sock=9 [18:35:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EE 05 0D 01 DE C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D6 97 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 CE 01 00 00 F4 03 04 00 57 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E0 02 00 35 04 06 00 09 CF D5 1D 5A FA FC 24 52 F2 1E B5 14 83 [18:35:04]Write to MH i2c: 01 00 00 03 0A 0D [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 07 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: 01 07 00 03 0A 00 00 00 00 00 6C 0C 8C [18:35:04]RasterBufferAndPrint [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]line [18:35:04]written 0, free lines is 3183 [18:35:04]MH_Cut [18:35:04]Write to MH i2c: D1 01 00 0A 0A 01 E6 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 01 00 [18:35:04]MH_I2C_Read... [18:35:04]Read from MH i2c: D1 01 00 0A 0A 00 E5 [18:35:04]Write to MH i2c: 01 00 00 0B 0A 15 [18:35:04]Write i2c OK [18:35:04]MH_I2C_Read... [18:35:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8B 45 47 00 32 D5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 11 E0 02 00 F4 03 04 00 44 9A 17 67 B6 04 01 00 00 B7 F9 45 12 01 52 C0 10 [18:35:04]CommunicateWithHost err = 0 [18:35:04]CheckOFDResponse [18:35:04]1017 (14) - 77093643461234 [18:35:04]1041 (16) - 0000000000965340 [18:35:04]1040 (4) - 188433 [18:35:04]1012 (4) - 22.10.2024 12:27 [18:35:04]1206 (1) - 0 [18:35:04]OFD Sender: Remove packet 188433 [18:35:04]ProducePacketName [18:35:04]name=ofd_packets/00188433 [18:35:04]NVStorageDeleteData [18:35:05]OFD Sender: No OFD packet to send [18:35:05]*** Cut start [18:35:05]*** Partial cut [18:35:05]*** CUTSNS_PIN = 1 [18:35:05]*** CUTSNS_PIN = 0 [18:35:06]*** Brake cut motor [18:35:06]Read from MH i2c: 01 [18:35:06]MH_I2C_Read... [18:35:06]*** Stop cut motor [18:35:06]*** Cut end [18:35:06]Read from MH i2c: 01 07 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: 01 07 00 0B 0A 00 00 00 00 00 FF 0F 2A [18:35:06]process_action close_receipt done [18:35:06]requested_data is exist [18:35:06]produce_requested_data [18:35:06]requested_item fm.sn is exist - process it [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 11 00 00 [18:35:06]Write to MH i2c: E2 08 00 0C 0A 80 11 00 00 00 00 00 00 90 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 17 00 0C 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DE [18:35:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:35:06]wFMCommunicate OK [18:35:06]requested_item fd.num is exist - process it [18:35:06]SAM_PROTO_GetFieldsCounters [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 00 00 [18:35:06]Write to MH i2c: E2 08 00 0D 0A 80 13 00 00 00 00 00 00 93 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 62 00 0D 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [18:35:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 11 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CE 01 00 00 5E 04 04 00 CE 01 00 00 57 04 04 00 CF 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetFieldsCounters done [18:35:06]requested_item shift.num is exist - process it [18:35:06]requested_item shift.opened is exist - process it [18:35:06]req_shift_opened [18:35:06]FM_GetShiftState [18:35:06]SAM_PROTO_GetShiftState [18:35:06]wFMCommunicate request_size=4 [18:35:06]MH_SAM_APDU [18:35:06]CAPDU: 80 13 01 00 [18:35:06]Write to MH i2c: E2 08 00 0E 0A 80 13 01 00 00 00 00 00 95 [18:35:06]Write i2c OK [18:35:06]MH_I2C_Read... [18:35:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:35:06]Read from MH i2c: E2 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 [18:35:06]MH_I2C_Read... [18:35:06]Read from MH i2c: E2 0E 00 0E 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8A [18:35:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:35:06]wFMCommunicate OK [18:35:06]SAM_PROTO_GetShiftState done [18:35:06]FM_GetShiftState done [18:35:06]req_shift_opened done [18:35:06]requested_item shift.open_date is exist - process it [18:35:06]req_shift_open_date [18:35:06]req_shift_open_date done [18:35:06]produce_requested_data done [18:35:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188433,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:35:06]process_action_free close_receipt [18:35:06]json_value_free [18:35:06]json_value_free done [18:35:06]process_json_proto returns [18:35:06]Send response to host [18:35:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188433,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:35:06]free response buf [18:35:06]execute_script done [18:35:06]execute_script returns [18:35:06]free content buf [18:35:06]Sock 10.Close socket [18:35:06]Sock 10.Thread stoped [18:35:10]OFD Sender: No OFD packet to send [18:35:15]OFD Sender: No OFD packet to send [18:35:20]OFD Sender: No OFD packet to send [18:35:25]OFD Sender: No OFD packet to send [18:35:30]OFD Sender: No OFD packet to send [18:35:35]OFD Sender: No OFD packet to send [18:35:40]OFD Sender: No OFD packet to send [18:35:45]OFD Sender: No OFD packet to send [18:35:50]OFD Sender: No OFD packet to send [18:35:55]OFD Sender: No OFD packet to send [18:36:00]OFD Sender: No OFD packet to send [18:36:02]accept exits with 7 [18:36:02]New connection [18:36:02]New thread 3066756452 created [18:36:02]Thread 3066613092 joined [18:36:02]Waiting for new connection... [18:36:02] Sock 7.Parse request [18:36:02]Sock 7.Check first char [18:36:02]Sock 7.First char is OK [18:36:02]request: POST /json_proto HTTP/1.0 [18:36:02]Method: POST [18:36:02]URL: /json_proto [18:36:02]Method is POST - this is cgi request [18:36:02]url: /json_proto [18:36:02]query_string will be loaded in cgi processing [18:36:02]execute_cgi json_proto POST (null) [18:36:02]execute_cgi path=json_proto method=POST [18:36:02]POST find Content-Length [18:36:02]Host: 172.17.42.131:8080 [18:36:02]Content-Length: 767 [18:36:02]Content-Type: application/json [18:36:02] [18:36:02]POST finish read [18:36:02]Found Content-Length = 767 [18:36:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 106.300, "sum" : 8100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8100.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:02]execute_script... [18:36: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)210493", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 106.300, "sum" : 8100.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 8100.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:02]POST & json_proto [18:36:02]process_json_proto [18:36:02]json parsed OK: [18:36:02]protocol is kg_v1.0 [18:36:02]action value=close_receipt [18:36:02]process_action close_receipt [18:36:02]cmd_close_receipt [18:36:02]MH_GetDate [18:36:02]Write to MH i2c: F0 00 00 0F 0A 08 [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: F0 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: F0 09 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: F0 09 00 0F 0A 00 93 F0 17 67 A0 18 CA 66 FA [18:36:02]GetLastDocTimeStamp 1729622103 [18:36:02]current date 1729622163 [18:36:02]FM_GetShiftState [18:36:02]SAM_PROTO_GetShiftState [18:36:02]wFMCommunicate request_size=4 [18:36:02]MH_SAM_APDU [18:36:02]CAPDU: 80 13 01 00 [18:36:02]Write to MH i2c: E2 08 00 10 0A 80 13 01 00 00 00 00 00 97 [18:36:02]Write i2c OK [18:36:02]MH_I2C_Read... [18:36:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:02]Read from MH i2c: E2 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 0E 00 [18:36:02]MH_I2C_Read... [18:36:02]Read from MH i2c: E2 0E 00 10 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8C [18:36:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:36:02]wFMCommunicate OK [18:36:02]SAM_PROTO_GetShiftState done [18:36:02]FM_GetShiftState done [18:36:02]opened in 1729556094 [18:36:02]opened+sec_in_day 1729642494 [18:36:02]quantity*price = 810006 [18:36:02]sum+1 = 810007 [18:36:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8100.06 НСП 1% : 71.68 НДС 12% : 860.18 Наличными: 0.00 Безнал.: 8100.06 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 463 22.10.2024 18:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188434 ФПД: 172322245930939 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183603&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188434&fm=172322245930939&tin=02508201610067®Number=0000000000100030&sum=810006 [18:36:03]StoreToDocumentArchive [18:36:03]shift 461 fd 188434 [18:36:03]save to /storage/0461/doc_00188434 [18:36:03]save last doc name /storage/0461/doc_00188434 to /storage/kkm_last_doc_name [18:36:03]save OK [18:36:03]Clear old archive folders... [18:36:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:36:03]tlvbuf is 009390B0 [18:36:03]SAM_PROTO_ClearQueue [18:36:03]wFMCommunicate request_size=4 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 09 00 00 [18:36:03]Write to MH i2c: E2 08 00 1D 0A 80 09 00 00 00 00 00 00 99 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 1D 0A 00 90 00 9B [18:36:03]RAPDU: 90 00 [18:36:03]wFMCommunicate OK [18:36:03]SAM_PROTO_ClearQueue done [18:36:03]KKMCreateOFDPacket [18:36:03]OFDProtocolAddRootSTLVToBuf [18:36:03]FM_MakeSignedData [18:36:03]FM_MakeSignedData [18:36:03]SAM_PROTO_SignData [18:36:03]wFMCommunicate request_size=4 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 0D 01 02 [18:36:03]Write to MH i2c: E2 08 00 1E 0A 80 0D 01 02 00 00 00 00 A1 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:03]Read from MH i2c: E2 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 [18:36:03]MH_I2C_Read... [18:36:03]Read from MH i2c: E2 03 00 1E 0A 00 90 00 9C [18:36:03]RAPDU: 90 00 [18:36:03]wFMCommunicate OK [18:36:03]wFMCommunicate request_size=255 [18:36:03]MH_SAM_APDU [18:36:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 93 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E0 02 00 35 04 06 00 9C B9 E6 41 [18:36:03]Write to MH i2c: E2 02 01 1F 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 93 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E0 02 00 35 04 06 00 9C B9 E6 41 00 00 99 [18:36:03]Write i2c OK [18:36:03]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 1F 0A 00 90 00 9D [18:36:04]RAPDU: 90 00 [18:36:04]wFMCommunicate OK [18:36:04]wFMCommunicate request_size=7 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 0D 02 02 02 6F BB [18:36:04]Write to MH i2c: E2 0A 00 20 0A 80 0D 02 02 02 00 6F BB 00 00 D2 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 03 00 20 0A 00 90 00 9E [18:36:04]RAPDU: 90 00 [18:36:04]wFMCommunicate OK [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 0D 03 02 [18:36:04]Write to MH i2c: E2 08 00 21 0A 80 0D 03 02 00 00 00 00 A6 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 0B 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 0B 00 21 0A 00 12 67 05 BF 7B 13 4B 31 90 00 EE [18:36:04]RAPDU: 12 67 05 BF 7B 13 4B 31 90 00 [18:36:04]wFMCommunicate OK [18:36:04]SAM_PROTO_SignData done [18:36:04]FM_MakeSignedData done [18:36:04]CreateOFDProtocolMessage [18:36:04]wFMCommunicate request_size=4 [18:36:04]MH_SAM_APDU [18:36:04]CAPDU: 80 11 00 00 [18:36:04]Write to MH i2c: E2 08 00 22 0A 80 11 00 00 00 00 00 00 A6 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:04]Read from MH i2c: E2 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 17 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: E2 17 00 22 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [18:36:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:36:04]wFMCommunicate OK [18:36:04]CreateOFDProtocolMessage done [18:36:04]OFDSenderStorePacket 188434 [18:36:04]StoreOFDPacket docnum=188434 [18:36:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 3B 2D 04 01 E5 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 93 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E0 02 00 35 04 06 00 9C B9 E6 41 6F BB 12 67 05 BF 7B 13 4B 31 [18:36:04]CheckFolder [18:36:04]dirname=/storage/ofd_packets [18:36:04]CheckFolder done [18:36:04]ProducePacketName [18:36:04]name=ofd_packets/00188434 [18:36:04]NVStorageSaveData ofd_packets/00188434 [18:36:04]File name is /storage/ofd_packets/00188434 [18:36:04]Write 298 bytes [18:36:04]NVStorageSaveData done [18:36:04]OFDSenderStorePacket done [18:36:04]KKMCreateOFDPacket done [18:36:04]NVStorageSaveData kkm_last_timestamp [18:36:04]File name is /storage/kkm_last_timestamp [18:36:04]Write 4 bytes [18:36:04]NVStorageSaveData done [18:36:04]ExternCall_PrintAddStr [18:36:04]wPrintStart [18:36:04]Write to MH i2c: 01 00 00 23 0A 2D [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 23 0A 00 00 00 00 00 FF 0F 42 [18:36:04]RasterBufferAndPrint [18:36:04]line Счет N : (1)210493 [18:36:04]line ИНН: 02508201610067 [18:36:04]line Контрольно-Кассовый Чек [18:36:04]line ПРОДАЖА [18:36:04]line ТРК (МРК, ГНК) : 61 [18:36:04]line Товар: 2710194210 [18:36:04]line ДТ-К-5 [18:36:04]line 106.300 * 76.20 [18:36:04]line = 8100.06 [18:36:04]line НДС 12% НСП 1% [18:36:04]line > о реализуемом товаре [18:36:04]line ИТОГО: 8100.06 [18:36:04]line НСП 1% : 71.68 [18:36:04]line НДС 12% : 860.18 [18:36:04]line Наличными: 0.00 [18:36:04]line Безнал.: 8100.06 [18:36:04]line Место: АЗС № 86 "Партнер Нефть" [18:36:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:36:04]line СНО: Общий режим [18:36:04]line Чек 463 22.10.2024 18:36 [18:36:04]line Смена: 461 ФФД: 1.0 [18:36:04]line ЗНМ: 0300000155 [18:36:04]line РНМ: 0000000000100030 [18:36:04]line Версия ККМ: 001 [18:36:04]line Платежная система: Mbank [18:36:04]line ФМ: 0000000000965340 [18:36:04]line ФД: 188434 [18:36:04]line ФПД: 172322245930939 [18:36:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183603&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188434&fm=172322245930939&tin=02508201610067®Number=0000000000100030&sum=810006 [18:36:04]written 0, free lines is 4095 [18:36:04]OFD Sender: Processing packet 188434 [packets to send 1062, broken 1061] [18:36:04]ProducePacketName [18:36:04]name=ofd_packets/00188434 [18:36:04]OFD Sender: To server: pG, [18:36:04]CommunicateWithHost lk.salyk.kg:30040 [18:36:04]ConnectInit lk.salyk.kg [18:36:04]Write to MH i2c: 01 00 00 4C 0A 56 [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: 01 07 00 4C 0A 00 00 00 00 00 9A 0C 03 [18:36:04]RasterBufferAndPrint [18:36:04]line [18:36:04]line [18:36:04]line [18:36:04]line [18:36:04]line [18:36:04]written 0, free lines is 3229 [18:36:04]MH_Cut [18:36:04]Write to MH i2c: D1 01 00 53 0A 01 2F [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: D1 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: D1 01 00 [18:36:04]MH_I2C_Read... [18:36:04]Read from MH i2c: D1 01 00 53 0A 00 2E [18:36:04]Write to MH i2c: 01 00 00 54 0A 5E [18:36:04]Write i2c OK [18:36:04]MH_I2C_Read... [18:36:05]*** Cut start [18:36:05]*** Partial cut [18:36:05]*** CUTSNS_PIN = 1 [18:36:05]*** CUTSNS_PIN = 0 [18:36:06]*** Brake cut motor [18:36:06]Read from MH i2c: 01 [18:36:06]MH_I2C_Read... [18:36:06]*** Stop cut motor [18:36:06]*** Cut end [18:36:06]Read from MH i2c: 01 07 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: 01 07 00 54 0A 00 00 00 00 00 FF 0F 73 [18:36:06]process_action close_receipt done [18:36:06]requested_data is exist [18:36:06]produce_requested_data [18:36:06]requested_item fm.sn is exist - process it [18:36:06]wFMCommunicate request_size=4 [18:36:06]MH_SAM_APDU [18:36:06]CAPDU: 80 11 00 00 [18:36:06]Write to MH i2c: E2 08 00 55 0A 80 11 00 00 00 00 00 00 D9 [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 17 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 17 00 55 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 27 [18:36:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:36:06]wFMCommunicate OK [18:36:06]requested_item fd.num is exist - process it [18:36:06]SAM_PROTO_GetFieldsCounters [18:36:06]wFMCommunicate request_size=4 [18:36:06]MH_SAM_APDU [18:36:06]CAPDU: 80 13 00 00 [18:36:06]Write to MH i2c: E2 08 00 56 0A 80 13 00 00 00 00 00 00 DC [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 62 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 62 00 56 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 15 [18:36:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 12 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 CF 01 00 00 5E 04 04 00 CF 01 00 00 57 04 04 00 D0 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:06]wFMCommunicate OK [18:36:06]SAM_PROTO_GetFieldsCounters done [18:36:06]requested_item shift.num is exist - process it [18:36:06]requested_item shift.opened is exist - process it [18:36:06]req_shift_opened [18:36:06]FM_GetShiftState [18:36:06]SAM_PROTO_GetShiftState [18:36:06]wFMCommunicate request_size=4 [18:36:06]MH_SAM_APDU [18:36:06]CAPDU: 80 13 01 00 [18:36:06]Write to MH i2c: E2 08 00 57 0A 80 13 01 00 00 00 00 00 DE [18:36:06]Write i2c OK [18:36:06]MH_I2C_Read... [18:36:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:06]Read from MH i2c: E2 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 0E 00 [18:36:06]MH_I2C_Read... [18:36:06]Read from MH i2c: E2 0E 00 57 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D3 [18:36:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:36:06]wFMCommunicate OK [18:36:06]SAM_PROTO_GetShiftState done [18:36:06]FM_GetShiftState done [18:36:06]req_shift_opened done [18:36:06]requested_item shift.open_date is exist - process it [18:36:06]req_shift_open_date [18:36:06]req_shift_open_date done [18:36:06]produce_requested_data done [18:36:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188434,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:36:06]process_action_free close_receipt [18:36:06]json_value_free [18:36:06]json_value_free done [18:36:06]process_json_proto returns [18:36:06]Send response to host [18:36:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188434,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:36:06]free response buf [18:36:06]execute_script done [18:36:06]execute_script returns [18:36:06]free content buf [18:36:06]Sock 7.Close socket [18:36:06]Sock 7.Thread stoped [18:36:53]accept exits with 9 [18:36:53]New connection [18:36:53]New thread 3066613092 created [18:36:53]Thread 3066756452 joined [18:36:53]Waiting for new connection... [18:36:53] Sock 9.Parse request [18:36:53]Sock 9.Check first char [18:36:53]Sock 9.First char is OK [18:36:53]request: POST /json_proto HTTP/1.0 [18:36:53]Method: POST [18:36:53]URL: /json_proto [18:36:53]Method is POST - this is cgi request [18:36:53]url: /json_proto [18:36:53]query_string will be loaded in cgi processing [18:36:53]execute_cgi json_proto POST (null) [18:36:53]execute_cgi path=json_proto method=POST [18:36:53]POST find Content-Length [18:36:53]Host: 172.17.42.131:8080 [18:36:53]Content-Length: 677 [18:36:53]Content-Type: application/json [18:36:53] [18:36:53]POST finish read [18:36:53]Found Content-Length = 677 [18:36:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:53]execute_script... [18:36: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)210495", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:53]POST & json_proto [18:36:53]process_json_proto [18:36:53]json parsed OK: [18:36:53]protocol is kg_v1.0 [18:36:53]action value=close_receipt [18:36:53]process_action close_receipt [18:36:53]cmd_close_receipt [18:36:53]MH_GetDate [18:36:53]Write to MH i2c: F0 00 00 58 0A 51 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: F0 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: F0 09 00 [18:36:53]MH_I2C_Read... [18:36:53]Read from MH i2c: F0 09 00 58 0A 00 C7 F0 17 67 A0 18 CA 66 77 [18:36:53]GetLastDocTimeStamp 1729622163 [18:36:53]current date 1729622215 [18:36:53]FM_GetShiftState [18:36:53]SAM_PROTO_GetShiftState [18:36:53]wFMCommunicate request_size=4 [18:36:53]MH_SAM_APDU [18:36:53]CAPDU: 80 13 01 00 [18:36:53]Write to MH i2c: E2 08 00 59 0A 80 13 01 00 00 00 00 00 E0 [18:36:53]Write i2c OK [18:36:53]MH_I2C_Read... [18:36:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:54]Read from MH i2c: E2 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0E 00 [18:36:54]MH_I2C_Read... [18:36:54]Read from MH i2c: E2 0E 00 59 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D5 [18:36:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:36:54]wFMCommunicate OK [18:36:54]SAM_PROTO_GetShiftState done [18:36:54]FM_GetShiftState done [18:36:54]opened in 1729556094 [18:36:54]opened+sec_in_day 1729642494 [18:36:54]quantity*price = 50041 [18:36:54]sum+1 = 50042 [18:36:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 464 22.10.2024 18:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188435 ФПД: 39896304534534 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183655&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188435&fm=39896304534534&tin=02508201610067®Number=0000000000100030&sum=50000 [18:36:55]StoreToDocumentArchive [18:36:55]shift 461 fd 188435 [18:36:55]save to /storage/0461/doc_00188435 [18:36:55]save last doc name /storage/0461/doc_00188435 to /storage/kkm_last_doc_name [18:36:55]save OK [18:36:55]Clear old archive folders... [18:36:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:36:55]tlvbuf is 00946D20 [18:36:55]SAM_PROTO_ClearQueue [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 09 00 00 [18:36:55]Write to MH i2c: E2 08 00 66 0A 80 09 00 00 00 00 00 00 E2 [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 66 0A 00 90 00 E4 [18:36:55]RAPDU: 90 00 [18:36:55]wFMCommunicate OK [18:36:55]SAM_PROTO_ClearQueue done [18:36:55]KKMCreateOFDPacket [18:36:55]OFDProtocolAddRootSTLVToBuf [18:36:55]FM_MakeSignedData [18:36:55]FM_MakeSignedData [18:36:55]SAM_PROTO_SignData [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 0D 01 02 [18:36:55]Write to MH i2c: E2 08 00 67 0A 80 0D 01 02 00 00 00 00 EA [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 67 0A 00 90 00 E5 [18:36:55]RAPDU: 90 00 [18:36:55]wFMCommunicate OK [18:36:55]wFMCommunicate request_size=255 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 C7 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E0 02 00 35 04 06 00 24 [18:36:55]Write to MH i2c: E2 02 01 68 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 C7 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E0 02 00 35 04 06 00 24 00 00 4A [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 68 0A 00 90 00 E6 [18:36:55]RAPDU: 90 00 [18:36:55]wFMCommunicate OK [18:36:55]wFMCommunicate request_size=10 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 0D 02 02 05 49 15 0F 44 06 [18:36:55]Write to MH i2c: E2 0D 00 69 0A 80 0D 02 02 05 00 49 15 0F 44 06 00 00 AE [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 03 00 69 0A 00 90 00 E7 [18:36:55]RAPDU: 90 00 [18:36:55]wFMCommunicate OK [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 0D 03 02 [18:36:55]Write to MH i2c: E2 08 00 6A 0A 80 0D 03 02 00 00 00 00 EF [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 0B 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 0B 00 6A 0A 00 30 4C EB 45 9D DA D1 FB 90 00 DF [18:36:55]RAPDU: 30 4C EB 45 9D DA D1 FB 90 00 [18:36:55]wFMCommunicate OK [18:36:55]SAM_PROTO_SignData done [18:36:55]FM_MakeSignedData done [18:36:55]CreateOFDProtocolMessage [18:36:55]wFMCommunicate request_size=4 [18:36:55]MH_SAM_APDU [18:36:55]CAPDU: 80 11 00 00 [18:36:55]Write to MH i2c: E2 08 00 6B 0A 80 11 00 00 00 00 00 00 EF [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:55]Read from MH i2c: E2 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 17 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: E2 17 00 6B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3D [18:36:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:36:55]wFMCommunicate OK [18:36:55]CreateOFDProtocolMessage done [18:36:55]OFDSenderStorePacket 188435 [18:36:55]StoreOFDPacket docnum=188435 [18:36:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 61 6F 07 01 CE 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 C7 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E0 02 00 35 04 06 00 24 49 15 0F 44 06 30 4C EB 45 9D DA D1 FB [18:36:55]CheckFolder [18:36:55]dirname=/storage/ofd_packets [18:36:55]CheckFolder done [18:36:55]ProducePacketName [18:36:55]name=ofd_packets/00188435 [18:36:55]NVStorageSaveData ofd_packets/00188435 [18:36:55]File name is /storage/ofd_packets/00188435 [18:36:55]Write 301 bytes [18:36:55]NVStorageSaveData done [18:36:55]OFDSenderStorePacket done [18:36:55]KKMCreateOFDPacket done [18:36:55]NVStorageSaveData kkm_last_timestamp [18:36:55]File name is /storage/kkm_last_timestamp [18:36:55]Write 4 bytes [18:36:55]NVStorageSaveData done [18:36:55]ExternCall_PrintAddStr [18:36:55]wPrintStart [18:36:55]Write to MH i2c: 01 00 00 6C 0A 76 [18:36:55]Write i2c OK [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 07 00 [18:36:55]MH_I2C_Read... [18:36:55]Read from MH i2c: 01 07 00 6C 0A 00 00 00 00 00 FF 0F 8B [18:36:55]RasterBufferAndPrint [18:36:55]line Счет N : (1)210495 [18:36:55]line ИНН: 02508201610067 [18:36:55]line Контрольно-Кассовый Чек [18:36:55]line ПРОДАЖА [18:36:55]line ТРК (МРК, ГНК) : 32 [18:36:55]line Товар: 2710124130 [18:36:55]line Аи-92-К-3 [18:36:55]line 7.480 * 66.90 [18:36:55]line = 500.41 [18:36:55]line НДС 12% НСП 1% [18:36:55]line > о реализуемом товаре [18:36:55]line ОКРУГЛЕНИЕ: -0.41 [18:36:55]line ИТОГО: 500.00 [18:36:55]line Внесено: 500.00 [18:36:55]line СДАЧА: 0.00 [18:36:55]line НСП 1% : 4.43 [18:36:55]line НДС 12% : 53.14 [18:36:55]line Наличными: 500.00 [18:36:55]line Безнал.: 0.00 [18:36:55]line Место: АЗС № 86 "Партнер Нефть" [18:36:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:36:55]line СНО: Общий режим [18:36:55]line Чек 464 22.10.2024 18:36 [18:36:55]line Смена: 461 ФФД: 1.0 [18:36:55]line ЗНМ: 0300000155 [18:36:55]line РНМ: 0000000000100030 [18:36:55]line Версия ККМ: 001 [18:36:55]line ФМ: 0000000000965340 [18:36:55]line ФД: 188435 [18:36:55]line ФПД: 39896304534534 [18:36:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183655&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188435&fm=39896304534534&tin=02508201610067®Number=0000000000100030&sum=50000 [18:36:55]written 0, free lines is 4095 [18:36:56]Write to MH i2c: 01 00 00 97 0A A1 [18:36:56]Write i2c OK [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: 01 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: 01 07 00 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: 01 07 00 97 0A 00 00 00 00 00 64 0C 18 [18:36:56]RasterBufferAndPrint [18:36:56]line [18:36:56]line [18:36:56]line [18:36:56]line [18:36:56]line [18:36:56]written 0, free lines is 3174 [18:36:56]MH_Cut [18:36:56]Write to MH i2c: D1 01 00 9E 0A 01 7A [18:36:56]Write i2c OK [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: D1 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: D1 01 00 [18:36:56]MH_I2C_Read... [18:36:56]Read from MH i2c: D1 01 00 9E 0A 00 79 [18:36:56]Write to MH i2c: 01 00 00 9F 0A A9 [18:36:56]Write i2c OK [18:36:56]MH_I2C_Read... [18:36:57]*** Cut start [18:36:57]*** Partial cut [18:36:57]*** CUTSNS_PIN = 1 [18:36:57]*** CUTSNS_PIN = 0 [18:36:57]*** Brake cut motor [18:36:57]Read from MH i2c: 01 [18:36:57]MH_I2C_Read... [18:36:57]*** Stop cut motor [18:36:57]*** Cut end [18:36:57]Read from MH i2c: 01 07 00 [18:36:57]MH_I2C_Read... [18:36:57]Read from MH i2c: 01 07 00 9F 0A 00 00 00 00 00 FF 0F BE [18:36:57]process_action close_receipt done [18:36:57]requested_data is exist [18:36:57]produce_requested_data [18:36:57]requested_item fm.sn is exist - process it [18:36:57]wFMCommunicate request_size=4 [18:36:57]MH_SAM_APDU [18:36:57]CAPDU: 80 11 00 00 [18:36:57]Write to MH i2c: E2 08 00 A0 0A 80 11 00 00 00 00 00 00 24 [18:36:57]Write i2c OK [18:36:57]MH_I2C_Read... [18:36:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:58]Read from MH i2c: E2 [18:36:58]MH_I2C_Read... [18:36:58]Read from MH i2c: E2 17 00 [18:36:58]MH_I2C_Read... [18:36:58]Read from MH i2c: E2 17 00 A0 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 72 [18:36:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:36:58]wFMCommunicate OK [18:36:58]requested_item fd.num is exist - process it [18:36:58]SAM_PROTO_GetFieldsCounters [18:36:58]wFMCommunicate request_size=4 [18:36:58]MH_SAM_APDU [18:36:58]CAPDU: 80 13 00 00 [18:36:58]Write to MH i2c: E2 08 00 A1 0A 80 13 00 00 00 00 00 00 27 [18:36:58]Write i2c OK [18:36:58]MH_I2C_Read... [18:36:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:36:58]Read from MH i2c: E2 [18:36:58]MH_I2C_Read... [18:36:58]Read from MH i2c: E2 62 00 [18:36:58]MH_I2C_Read... [18:36:58]Read from MH i2c: E2 62 00 A1 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 64 [18:36:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 13 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D0 01 00 00 5E 04 04 00 D0 01 00 00 57 04 04 00 D1 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:36:58]wFMCommunicate OK [18:36:58]SAM_PROTO_GetFieldsCounters done [18:36:58]requested_item shift.num is exist - process it [18:36:58]requested_item shift.opened is exist - process it [18:36:58]req_shift_opened [18:36:58]FM_GetShiftState [18:36:58]SAM_PROTO_GetShiftState [18:36:58]wFMCommunicate request_size=4 [18:36:58]MH_SAM_APDU [18:36:58]CAPDU: 80 13 01 00 [18:36:58]Write to MH i2c: E2 08 00 A2 0A 80 13 01 00 00 00 00 00 29 [18:36:58]Write i2c OK [18:36:58]MH_I2C_Read... [18:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:58]Read from MH i2c: E2 [18:36:58]MH_I2C_Read... [18:36:58]Read from MH i2c: E2 0E 00 [18:36:58]MH_I2C_Read... [18:36:58]Read from MH i2c: E2 0E 00 A2 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1E [18:36:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:36:58]wFMCommunicate OK [18:36:58]SAM_PROTO_GetShiftState done [18:36:58]FM_GetShiftState done [18:36:58]req_shift_opened done [18:36:58]requested_item shift.open_date is exist - process it [18:36:58]req_shift_open_date [18:36:58]req_shift_open_date done [18:36:58]produce_requested_data done [18:36:58]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188435,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:36:58]process_action_free close_receipt [18:36:58]json_value_free [18:36:58]json_value_free done [18:36:58]process_json_proto returns [18:36:58]Send response to host [18:36:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188435,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:36:58]free response buf [18:36:58]execute_script done [18:36:58]execute_script returns [18:36:58]free content buf [18:36:58]Sock 9.Close socket [18:36:58]Sock 9.Thread stoped [18:38:14]ConnectInit Can't connect to host [18:38:14]CommunicateWithHost connect error [18:38:14]CommunicateWithHost err = -1 [18:38:14]OFD Sender: Server communicate error [18:38:15]OFD Sender: Processing packet 188434 [packets to send 1063, broken 1061] [18:38:15]ProducePacketName [18:38:15]name=ofd_packets/00188434 [18:38:15]OFD Sender: To server: pG, [18:38:15]CommunicateWithHost lk.salyk.kg:30040 [18:38:15]ConnectInit lk.salyk.kg [18:38:15]Connected sock=9 [18:38:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 3B 2D 04 01 E5 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 3C 9F 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 5C 0C 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 16 5C 0C 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 1C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 02 50 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 16 5C 0C 00 00 00 1F 04 02 00 01 00 12 04 04 00 CF 01 00 00 F4 03 04 00 93 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E0 02 00 35 04 06 00 9C B9 E6 41 6F BB 12 67 05 BF 7B 13 4B 31 [18:38:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F7 B1 47 00 59 1E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 12 E0 02 00 F4 03 04 00 03 9B 17 67 B6 04 01 00 00 84 D3 1F 39 66 C2 AA 8B [18:38:15]CommunicateWithHost err = 0 [18:38:15]CheckOFDResponse [18:38:15]1017 (14) - 77093643461234 [18:38:15]1041 (16) - 0000000000965340 [18:38:15]1040 (4) - 188434 [18:38:15]1012 (4) - 22.10.2024 12:30 [18:38:15]1206 (1) - 0 [18:38:15]OFD Sender: Remove packet 188434 [18:38:15]ProducePacketName [18:38:15]name=ofd_packets/00188434 [18:38:15]NVStorageDeleteData [18:38:16]OFD Sender: Processing packet 188435 [packets to send 1062, broken 1061] [18:38:16]ProducePacketName [18:38:16]name=ofd_packets/00188435 [18:38:16]OFD Sender: To server: pG, [18:38:16]CommunicateWithHost lk.salyk.kg:30040 [18:38:16]ConnectInit lk.salyk.kg [18:38:17]Connected sock=9 [18:38:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 61 6F 07 01 CE 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D0 01 00 00 F4 03 04 00 C7 F0 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E0 02 00 35 04 06 00 24 49 15 0F 44 06 30 4C EB 45 9D DA D1 FB [18:38:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3B FC 47 00 6B 44 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 13 E0 02 00 F4 03 04 00 04 9B 17 67 B6 04 01 00 00 C0 EE 36 40 29 49 B2 A8 [18:38:17]CommunicateWithHost err = 0 [18:38:17]CheckOFDResponse [18:38:17]1017 (14) - 77093643461234 [18:38:17]1041 (16) - 0000000000965340 [18:38:17]1040 (4) - 188435 [18:38:17]1012 (4) - 22.10.2024 12:31 [18:38:17]1206 (1) - 0 [18:38:17]OFD Sender: Remove packet 188435 [18:38:17]ProducePacketName [18:38:17]name=ofd_packets/00188435 [18:38:17]NVStorageDeleteData [18:38:17]OFD Sender: No OFD packet to send [18:38:22]OFD Sender: No OFD packet to send [18:38:27]OFD Sender: No OFD packet to send [18:38:32]OFD Sender: No OFD packet to send [18:38:38]OFD Sender: No OFD packet to send [18:38:43]OFD Sender: No OFD packet to send [18:38:48]OFD Sender: No OFD packet to send [18:38:53]OFD Sender: No OFD packet to send [18:38:58]OFD Sender: No OFD packet to send [18:39:01]accept exits with 7 [18:39:01]New connection [18:39:01]New thread 3066756452 created [18:39:01]Thread 3066613092 joined [18:39:01]Waiting for new connection... [18:39:01] Sock 7.Parse request [18:39:01]Sock 7.Check first char [18:39:01]Sock 7.First char is OK [18:39:01]request: POST /json_proto HTTP/1.0 [18:39:01]Method: POST [18:39:01]URL: /json_proto [18:39:01]Method is POST - this is cgi request [18:39:01]url: /json_proto [18:39:01]query_string will be loaded in cgi processing [18:39:01]execute_cgi json_proto POST (null) [18:39:01]execute_cgi path=json_proto method=POST [18:39:01]POST find Content-Length [18:39:01]Host: 172.17.42.131:8080 [18:39:01]Content-Length: 688 [18:39:01]Content-Type: application/json [18:39:01] [18:39:01]POST finish read [18:39:01]Found Content-Length = 688 [18:39:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:01]execute_script... [18:39: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)210496", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:39:01]POST & json_proto [18:39:01]process_json_proto [18:39:01]json parsed OK: [18:39:01]protocol is kg_v1.0 [18:39:01]action value=close_receipt [18:39:01]process_action close_receipt [18:39:01]cmd_close_receipt [18:39:01]MH_GetDate [18:39:01]Write to MH i2c: F0 00 00 A3 0A 9C [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: F0 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: F0 09 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: F0 09 00 A3 0A 00 46 F1 17 67 A0 18 CA 66 42 [18:39:01]GetLastDocTimeStamp 1729622215 [18:39:01]current date 1729622342 [18:39:01]FM_GetShiftState [18:39:01]SAM_PROTO_GetShiftState [18:39:01]wFMCommunicate request_size=4 [18:39:01]MH_SAM_APDU [18:39:01]CAPDU: 80 13 01 00 [18:39:01]Write to MH i2c: E2 08 00 A4 0A 80 13 01 00 00 00 00 00 2B [18:39:01]Write i2c OK [18:39:01]MH_I2C_Read... [18:39:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:01]Read from MH i2c: E2 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 0E 00 [18:39:01]MH_I2C_Read... [18:39:01]Read from MH i2c: E2 0E 00 A4 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 20 [18:39:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:39:01]wFMCommunicate OK [18:39:01]SAM_PROTO_GetShiftState done [18:39:01]FM_GetShiftState done [18:39:01]opened in 1729556094 [18:39:01]opened+sec_in_day 1729642494 [18:39:01]quantity*price = 400050 [18:39:01]sum+1 = 400051 [18:39:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 465 22.10.2024 18:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188436 ФПД: 84510496019358 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183902&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188436&fm=84510496019358&tin=02508201610067®Number=0000000000100030&sum=400000 [18:39:02]StoreToDocumentArchive [18:39:02]shift 461 fd 188436 [18:39:02]save to /storage/0461/doc_00188436 [18:39:02]save last doc name /storage/0461/doc_00188436 to /storage/kkm_last_doc_name [18:39:02]save OK [18:39:02]Clear old archive folders... [18:39:02]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:39:02]tlvbuf is B6F259F0 [18:39:02]SAM_PROTO_ClearQueue [18:39:02]wFMCommunicate request_size=4 [18:39:02]MH_SAM_APDU [18:39:02]CAPDU: 80 09 00 00 [18:39:02]Write to MH i2c: E2 08 00 B1 0A 80 09 00 00 00 00 00 00 2D [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:02]Read from MH i2c: E2 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 03 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 03 00 B1 0A 00 90 00 2F [18:39:02]RAPDU: 90 00 [18:39:02]wFMCommunicate OK [18:39:02]SAM_PROTO_ClearQueue done [18:39:02]KKMCreateOFDPacket [18:39:02]OFDProtocolAddRootSTLVToBuf [18:39:02]FM_MakeSignedData [18:39:02]FM_MakeSignedData [18:39:02]SAM_PROTO_SignData [18:39:02]wFMCommunicate request_size=4 [18:39:02]MH_SAM_APDU [18:39:02]CAPDU: 80 0D 01 02 [18:39:02]Write to MH i2c: E2 08 00 B2 0A 80 0D 01 02 00 00 00 00 35 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:02]Read from MH i2c: E2 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 03 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 03 00 B2 0A 00 90 00 30 [18:39:02]RAPDU: 90 00 [18:39:02]wFMCommunicate OK [18:39:02]wFMCommunicate request_size=255 [18:39:02]MH_SAM_APDU [18:39:02]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 46 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E0 02 [18:39:02]Write to MH i2c: E2 02 01 B3 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 46 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E0 02 00 00 02 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:02]Read from MH i2c: E2 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 03 00 [18:39:02]MH_I2C_Read... [18:39:02]Read from MH i2c: E2 03 00 B3 0A 00 90 00 31 [18:39:02]RAPDU: 90 00 [18:39:02]wFMCommunicate OK [18:39:02]wFMCommunicate request_size=16 [18:39:02]MH_SAM_APDU [18:39:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 4C DC A2 18 53 9E [18:39:02]Write to MH i2c: E2 13 00 B4 0A 80 0D 02 02 0B 00 00 35 04 06 00 4C DC A2 18 53 9E 00 00 60 [18:39:02]Write i2c OK [18:39:02]MH_I2C_Read... [18:39:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:03]Read from MH i2c: E2 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 03 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 03 00 B4 0A 00 90 00 32 [18:39:03]RAPDU: 90 00 [18:39:03]wFMCommunicate OK [18:39:03]wFMCommunicate request_size=4 [18:39:03]MH_SAM_APDU [18:39:03]CAPDU: 80 0D 03 02 [18:39:03]Write to MH i2c: E2 08 00 B5 0A 80 0D 03 02 00 00 00 00 3A [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:03]Read from MH i2c: E2 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 0B 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 0B 00 B5 0A 00 79 A9 B9 AB B5 A8 63 D2 90 00 53 [18:39:03]RAPDU: 79 A9 B9 AB B5 A8 63 D2 90 00 [18:39:03]wFMCommunicate OK [18:39:03]SAM_PROTO_SignData done [18:39:03]FM_MakeSignedData done [18:39:03]CreateOFDProtocolMessage [18:39:03]wFMCommunicate request_size=4 [18:39:03]MH_SAM_APDU [18:39:03]CAPDU: 80 11 00 00 [18:39:03]Write to MH i2c: E2 08 00 B6 0A 80 11 00 00 00 00 00 00 3A [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:03]Read from MH i2c: E2 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 17 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: E2 17 00 B6 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [18:39:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:39:03]wFMCommunicate OK [18:39:03]CreateOFDProtocolMessage done [18:39:03]OFDSenderStorePacket 188436 [18:39:03]StoreOFDPacket docnum=188436 [18:39:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A9 9F 0D 01 ED 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 46 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E0 02 00 35 04 06 00 4C DC A2 18 53 9E 79 A9 B9 AB B5 A8 63 D2 [18:39:03]CheckFolder [18:39:03]dirname=/storage/ofd_packets [18:39:03]CheckFolder done [18:39:03]ProducePacketName [18:39:03]name=ofd_packets/00188436 [18:39:03]NVStorageSaveData ofd_packets/00188436 [18:39:03]File name is /storage/ofd_packets/00188436 [18:39:03]Write 307 bytes [18:39:03]NVStorageSaveData done [18:39:03]OFDSenderStorePacket done [18:39:03]KKMCreateOFDPacket done [18:39:03]NVStorageSaveData kkm_last_timestamp [18:39:03]File name is /storage/kkm_last_timestamp [18:39:03]Write 4 bytes [18:39:03]NVStorageSaveData done [18:39:03]ExternCall_PrintAddStr [18:39:03]wPrintStart [18:39:03]Write to MH i2c: 01 00 00 B7 0A C1 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 07 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 07 00 B7 0A 00 00 00 00 00 FF 0F D6 [18:39:03]RasterBufferAndPrint [18:39:03]line Счет N : (1)210496 [18:39:03]line ИНН: 02508201610067 [18:39:03]line Контрольно-Кассовый Чек [18:39:03]line ПРОДАЖА [18:39:03]line ТРК (МРК, ГНК) : 41 [18:39:03]line Товар: 2710194210 [18:39:03]line D-ENERGY ДТ-К-5 [18:39:03]line 51.820 * 77.20 [18:39:03]line = 4000.50 [18:39:03]line НДС 12% НСП 1% [18:39:03]line > о реализуемом товаре [18:39:03]line ОКРУГЛЕНИЕ: -0.50 [18:39:03]line ИТОГО: 4000.00 [18:39:03]line Внесено: 4000.00 [18:39:03]line СДАЧА: 0.00 [18:39:03]line НСП 1% : 35.40 [18:39:03]line НДС 12% : 424.83 [18:39:03]line Наличными: 4000.00 [18:39:03]line Безнал.: 0.00 [18:39:03]line Место: АЗС № 86 "Партнер Нефть" [18:39:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:39:03]line СНО: Общий режим [18:39:03]line Чек 465 22.10.2024 18:39 [18:39:03]line Смена: 461 ФФД: 1.0 [18:39:03]line ЗНМ: 0300000155 [18:39:03]line РНМ: 0000000000100030 [18:39:03]line Версия ККМ: 001 [18:39:03]line ФМ: 0000000000965340 [18:39:03]line ФД: 188436 [18:39:03]line ФПД: 84510496019358 [18:39:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183902&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188436&fm=84510496019358&tin=02508201610067®Number=0000000000100030&sum=400000 [18:39:03]OFD Sender: Processing packet 188436 [packets to send 1062, broken 1061] [18:39:03]ProducePacketName [18:39:03]name=ofd_packets/00188436 [18:39:03]OFD Sender: To server: pG, [18:39:03]CommunicateWithHost lk.salyk.kg:30040 [18:39:03]ConnectInit lk.salyk.kg [18:39:03]written 0, free lines is 4095 [18:39:03]Connected sock=10 [18:39:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 A9 9F 0D 01 ED 25 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 D1 01 00 00 F4 03 04 00 46 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 14 E0 02 00 35 04 06 00 4C DC A2 18 53 9E 79 A9 B9 AB B5 A8 63 D2 [18:39:03]Write to MH i2c: 01 00 00 E2 0A EC [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 07 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: 01 07 00 E2 0A 00 00 00 00 00 6B 0C 6A [18:39:03]RasterBufferAndPrint [18:39:03]line [18:39:03]line [18:39:03]line [18:39:03]line [18:39:03]line [18:39:03]written 0, free lines is 3182 [18:39:03]MH_Cut [18:39:03]Write to MH i2c: D1 01 00 E9 0A 01 C5 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: D1 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: D1 01 00 [18:39:03]MH_I2C_Read... [18:39:03]Read from MH i2c: D1 01 00 E9 0A 00 C4 [18:39:03]Write to MH i2c: 01 00 00 EA 0A F4 [18:39:03]Write i2c OK [18:39:03]MH_I2C_Read... [18:39:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D3 14 47 00 4D 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 39 36 35 33 34 30 10 04 04 00 14 E0 02 00 F4 03 04 00 33 9B 17 67 B6 04 01 00 00 AD 47 91 3F 38 AF 23 BE [18:39:04]CommunicateWithHost err = 0 [18:39:04]CheckOFDResponse [18:39:04]1017 (14) - 77093643461234 [18:39:04]1041 (16) - 0000000000965340 [18:39:04]1040 (4) - 188436 [18:39:04]1012 (4) - 22.10.2024 12:31 [18:39:04]1206 (1) - 0 [18:39:04]OFD Sender: Remove packet 188436 [18:39:04]ProducePacketName [18:39:04]name=ofd_packets/00188436 [18:39:04]NVStorageDeleteData [18:39:04]OFD Sender: No OFD packet to send [18:39:05]*** Cut start [18:39:05]*** Partial cut [18:39:05]*** CUTSNS_PIN = 1 [18:39:05]*** CUTSNS_PIN = 0 [18:39:05]*** Brake cut motor [18:39:05]Read from MH i2c: 01 [18:39:05]MH_I2C_Read... [18:39:05]*** Stop cut motor [18:39:05]*** Cut end [18:39:05]Read from MH i2c: 01 07 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: 01 07 00 EA 0A 00 00 00 00 00 FF 0F 09 [18:39:05]process_action close_receipt done [18:39:05]requested_data is exist [18:39:05]produce_requested_data [18:39:05]requested_item fm.sn is exist - process it [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 11 00 00 [18:39:05]Write to MH i2c: E2 08 00 EB 0A 80 11 00 00 00 00 00 00 6F [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 17 00 EB 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [18:39:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:39:05]wFMCommunicate OK [18:39:05]requested_item fd.num is exist - process it [18:39:05]SAM_PROTO_GetFieldsCounters [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 13 00 00 [18:39:05]Write to MH i2c: E2 08 00 EC 0A 80 13 00 00 00 00 00 00 72 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 62 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 62 00 EC 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 B3 [18:39:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 14 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D1 01 00 00 5E 04 04 00 D1 01 00 00 57 04 04 00 D2 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_GetFieldsCounters done [18:39:05]requested_item shift.num is exist - process it [18:39:05]requested_item shift.opened is exist - process it [18:39:05]req_shift_opened [18:39:05]FM_GetShiftState [18:39:05]SAM_PROTO_GetShiftState [18:39:05]wFMCommunicate request_size=4 [18:39:05]MH_SAM_APDU [18:39:05]CAPDU: 80 13 01 00 [18:39:05]Write to MH i2c: E2 08 00 ED 0A 80 13 01 00 00 00 00 00 74 [18:39:05]Write i2c OK [18:39:05]MH_I2C_Read... [18:39:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:05]Read from MH i2c: E2 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0E 00 [18:39:05]MH_I2C_Read... [18:39:05]Read from MH i2c: E2 0E 00 ED 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 69 [18:39:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:39:05]wFMCommunicate OK [18:39:05]SAM_PROTO_GetShiftState done [18:39:05]FM_GetShiftState done [18:39:05]req_shift_opened done [18:39:05]requested_item shift.open_date is exist - process it [18:39:05]req_shift_open_date [18:39:05]req_shift_open_date done [18:39:05]produce_requested_data done [18:39:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188436,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:39:05]process_action_free close_receipt [18:39:05]json_value_free [18:39:05]json_value_free done [18:39:05]process_json_proto returns [18:39:05]Send response to host [18:39:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188436,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:39:05]free response buf [18:39:05]execute_script done [18:39:05]execute_script returns [18:39:05]free content buf [18:39:05]Sock 7.Close socket [18:39:05]Sock 7.Thread stoped [18:39:09]OFD Sender: No OFD packet to send [18:39:14]OFD Sender: No OFD packet to send [18:39:19]OFD Sender: No OFD packet to send [18:39:24]OFD Sender: No OFD packet to send [18:39:26]accept exits with 9 [18:39:26]New connection [18:39:26]New thread 3066613092 created [18:39:26]Thread 3066756452 joined [18:39:26]Waiting for new connection... [18:39:26] Sock 9.Parse request [18:39:26]Sock 9.Check first char [18:39:26]Sock 9.First char is OK [18:39:26]request: POST /json_proto HTTP/1.0 [18:39:26]Method: POST [18:39:26]URL: /json_proto [18:39:26]Method is POST - this is cgi request [18:39:26]url: /json_proto [18:39:26]query_string will be loaded in cgi processing [18:39:26]execute_cgi json_proto POST (null) [18:39:26]execute_cgi path=json_proto method=POST [18:39:26]POST find Content-Length [18:39:26]Host: 172.17.42.131:8080 [18:39:26]Content-Length: 678 [18:39:26]Content-Type: application/json [18:39:26] [18:39:26]POST finish read [18:39:26]Found Content-Length = 678 [18:39:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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" ] } } [18:39:26]execute_script... [18:39:26]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210497", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 13.460, "sum" : 900.47, "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" ] } } [18:39:26]POST & json_proto [18:39:26]process_json_proto [18:39:26]json parsed OK: [18:39:26]protocol is kg_v1.0 [18:39:26]action value=close_receipt [18:39:26]process_action close_receipt [18:39:26]cmd_close_receipt [18:39:26]MH_GetDate [18:39:26]Write to MH i2c: F0 00 00 EE 0A E7 [18:39:26]Write i2c OK [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: F0 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: F0 09 00 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: F0 09 00 EE 0A 00 5F F1 17 67 A0 18 CA 66 A6 [18:39:26]GetLastDocTimeStamp 1729622342 [18:39:26]current date 1729622367 [18:39:26]FM_GetShiftState [18:39:26]SAM_PROTO_GetShiftState [18:39:26]wFMCommunicate request_size=4 [18:39:26]MH_SAM_APDU [18:39:26]CAPDU: 80 13 01 00 [18:39:26]Write to MH i2c: E2 08 00 EF 0A 80 13 01 00 00 00 00 00 76 [18:39:26]Write i2c OK [18:39:26]MH_I2C_Read... [18:39:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:26]Read from MH i2c: E2 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 0E 00 [18:39:26]MH_I2C_Read... [18:39:26]Read from MH i2c: E2 0E 00 EF 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6B [18:39:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:39:26]wFMCommunicate OK [18:39:26]SAM_PROTO_GetShiftState done [18:39:26]FM_GetShiftState done [18:39:26]opened in 1729556094 [18:39:26]opened+sec_in_day 1729642494 [18:39:26]quantity*price = 90047 [18:39:26]sum+1 = 90048 [18:39:26]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 900.00 Внесено: 900.00 СДАЧА: 0.00 НСП 1% : 7.97 НДС 12% : 95.62 Наличными: 900.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 466 22.10.2024 18:39 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188437 ФПД: 228687166913187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183927&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188437&fm=228687166913187&tin=02508201610067®Number=0000000000100030&sum=90000 [18:39:27]StoreToDocumentArchive [18:39:27]shift 461 fd 188437 [18:39:27]save to /storage/0461/doc_00188437 [18:39:27]save last doc name /storage/0461/doc_00188437 to /storage/kkm_last_doc_name [18:39:27]save OK [18:39:27]Clear old archive folders... [18:39:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:27]tlvbuf is 00944540 [18:39:27]SAM_PROTO_ClearQueue [18:39:27]wFMCommunicate request_size=4 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 09 00 00 [18:39:27]Write to MH i2c: E2 08 00 FC 0A 80 09 00 00 00 00 00 00 78 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 FC 0A 00 90 00 7A [18:39:27]RAPDU: 90 00 [18:39:27]wFMCommunicate OK [18:39:27]SAM_PROTO_ClearQueue done [18:39:27]KKMCreateOFDPacket [18:39:27]OFDProtocolAddRootSTLVToBuf [18:39:27]FM_MakeSignedData [18:39:27]FM_MakeSignedData [18:39:27]SAM_PROTO_SignData [18:39:27]wFMCommunicate request_size=4 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 0D 01 02 [18:39:27]Write to MH i2c: E2 08 00 FD 0A 80 0D 01 02 00 00 00 00 80 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 FD 0A 00 90 00 7B [18:39:27]RAPDU: 90 00 [18:39:27]wFMCommunicate OK [18:39:27]wFMCommunicate request_size=255 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 D2 01 00 00 F4 03 04 00 5F F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E0 02 00 35 04 06 00 CF [18:39:27]Write to MH i2c: E2 02 01 FE 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 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 D2 01 00 00 F4 03 04 00 5F F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E0 02 00 35 04 06 00 CF 00 00 45 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 FE 0A 00 90 00 7C [18:39:27]RAPDU: 90 00 [18:39:27]wFMCommunicate OK [18:39:27]wFMCommunicate request_size=10 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 0D 02 02 05 FD 61 59 3A A3 [18:39:27]Write to MH i2c: E2 0D 00 FF 0A 80 0D 02 02 05 00 FD 61 59 3A A3 00 00 21 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 03 00 FF 0A 00 90 00 7D [18:39:27]RAPDU: 90 00 [18:39:27]wFMCommunicate OK [18:39:27]wFMCommunicate request_size=4 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 0D 03 02 [18:39:27]Write to MH i2c: E2 08 00 00 0B 80 0D 03 02 00 00 00 00 86 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 0B 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 0B 00 00 0B 00 EB 9B B0 65 05 CF 8A 25 90 00 A5 [18:39:27]RAPDU: EB 9B B0 65 05 CF 8A 25 90 00 [18:39:27]wFMCommunicate OK [18:39:27]SAM_PROTO_SignData done [18:39:27]FM_MakeSignedData done [18:39:27]CreateOFDProtocolMessage [18:39:27]wFMCommunicate request_size=4 [18:39:27]MH_SAM_APDU [18:39:27]CAPDU: 80 11 00 00 [18:39:27]Write to MH i2c: E2 08 00 01 0B 80 11 00 00 00 00 00 00 86 [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:27]Read from MH i2c: E2 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 17 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: E2 17 00 01 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D4 [18:39:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:39:27]wFMCommunicate OK [18:39:27]CreateOFDProtocolMessage done [18:39:27]OFDSenderStorePacket 188437 [18:39:27]StoreOFDPacket docnum=188437 [18:39:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E DC 07 01 EA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 D2 01 00 00 F4 03 04 00 5F F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E0 02 00 35 04 06 00 CF FD 61 59 3A A3 EB 9B B0 65 05 CF 8A 25 [18:39:27]CheckFolder [18:39:27]dirname=/storage/ofd_packets [18:39:27]CheckFolder done [18:39:27]ProducePacketName [18:39:27]name=ofd_packets/00188437 [18:39:27]NVStorageSaveData ofd_packets/00188437 [18:39:27]File name is /storage/ofd_packets/00188437 [18:39:27]Write 301 bytes [18:39:27]NVStorageSaveData done [18:39:27]OFDSenderStorePacket done [18:39:27]KKMCreateOFDPacket done [18:39:27]NVStorageSaveData kkm_last_timestamp [18:39:27]File name is /storage/kkm_last_timestamp [18:39:27]Write 4 bytes [18:39:27]NVStorageSaveData done [18:39:27]ExternCall_PrintAddStr [18:39:27]wPrintStart [18:39:27]Write to MH i2c: 01 00 00 02 0B 0D [18:39:27]Write i2c OK [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: 01 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: 01 07 00 [18:39:27]MH_I2C_Read... [18:39:27]Read from MH i2c: 01 07 00 02 0B 00 00 00 00 00 FF 0F 22 [18:39:27]RasterBufferAndPrint [18:39:27]line Счет N : (1)210497 [18:39:27]line ИНН: 02508201610067 [18:39:27]line Контрольно-Кассовый Чек [18:39:27]line ПРОДАЖА [18:39:27]line ТРК (МРК, ГНК) : 32 [18:39:27]line Товар: 2710124130 [18:39:27]line Аи-92-К-3 [18:39:27]line 13.460 * 66.90 [18:39:27]line = 900.47 [18:39:27]line НДС 12% НСП 1% [18:39:27]line > о реализуемом товаре [18:39:27]line ОКРУГЛЕНИЕ: -0.47 [18:39:27]line ИТОГО: 900.00 [18:39:27]line Внесено: 900.00 [18:39:27]line СДАЧА: 0.00 [18:39:27]line НСП 1% : 7.97 [18:39:27]line НДС 12% : 95.62 [18:39:27]line Наличными: 900.00 [18:39:27]line Безнал.: 0.00 [18:39:27]line Место: АЗС № 86 "Партнер Нефть" [18:39:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:39:27]line СНО: Общий режим [18:39:27]line Чек 466 22.10.2024 18:39 [18:39:27]line Смена: 461 ФФД: 1.0 [18:39:27]line ЗНМ: 0300000155 [18:39:27]line РНМ: 0000000000100030 [18:39:27]line Версия ККМ: 001 [18:39:27]line ФМ: 0000000000965340 [18:39:27]line ФД: 188437 [18:39:27]line ФПД: 228687166913187 [18:39:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T183927&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188437&fm=228687166913187&tin=02508201610067®Number=0000000000100030&sum=90000 [18:39:27]written 0, free lines is 4095 [18:39:28]OFD Sender: Processing packet 188437 [packets to send 1062, broken 1061] [18:39:28]ProducePacketName [18:39:28]name=ofd_packets/00188437 [18:39:28]OFD Sender: To server: pG, [18:39:28]CommunicateWithHost lk.salyk.kg:30040 [18:39:28]ConnectInit lk.salyk.kg [18:39:28]Connected sock=10 [18:39:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1E DC 07 01 EA 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 94 34 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BF 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 D2 01 00 00 F4 03 04 00 5F F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E0 02 00 35 04 06 00 CF FD 61 59 3A A3 EB 9B B0 65 05 CF 8A 25 [18:39:28]Write to MH i2c: 01 00 00 2D 0B 38 [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: 01 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: 01 07 00 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: 01 07 00 2D 0B 00 00 00 00 00 62 0C AD [18:39:28]RasterBufferAndPrint [18:39:28]line [18:39:28]line [18:39:28]line [18:39:28]line [18:39:28]line [18:39:28]written 0, free lines is 3174 [18:39:28]MH_Cut [18:39:28]Write to MH i2c: D1 01 00 34 0B 01 11 [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: D1 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: D1 01 00 [18:39:28]MH_I2C_Read... [18:39:28]Read from MH i2c: D1 01 00 34 0B 00 10 [18:39:28]Write to MH i2c: 01 00 00 35 0B 40 [18:39:28]Write i2c OK [18:39:28]MH_I2C_Read... [18:39:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 59 47 00 D1 B1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 15 E0 02 00 F4 03 04 00 4C 9B 17 67 B6 04 01 00 00 97 08 B4 9A 8E 28 DF 9C [18:39:28]CommunicateWithHost err = 0 [18:39:28]CheckOFDResponse [18:39:28]1017 (14) - 77093643461234 [18:39:28]1041 (16) - 0000000000965340 [18:39:28]1040 (4) - 188437 [18:39:28]1012 (4) - 22.10.2024 12:32 [18:39:28]1206 (1) - 0 [18:39:28]OFD Sender: Remove packet 188437 [18:39:28]ProducePacketName [18:39:28]name=ofd_packets/00188437 [18:39:28]NVStorageDeleteData [18:39:29]OFD Sender: No OFD packet to send [18:39:29]*** Cut start [18:39:29]*** Partial cut [18:39:29]*** CUTSNS_PIN = 1 [18:39:29]*** CUTSNS_PIN = 0 [18:39:29]*** Brake cut motor [18:39:30]Read from MH i2c: 01 [18:39:30]MH_I2C_Read... [18:39:30]*** Stop cut motor [18:39:30]*** Cut end [18:39:30]Read from MH i2c: 01 07 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: 01 07 00 35 0B 00 00 00 00 00 FF 0F 55 [18:39:30]process_action close_receipt done [18:39:30]requested_data is exist [18:39:30]produce_requested_data [18:39:30]requested_item fm.sn is exist - process it [18:39:30]wFMCommunicate request_size=4 [18:39:30]MH_SAM_APDU [18:39:30]CAPDU: 80 11 00 00 [18:39:30]Write to MH i2c: E2 08 00 36 0B 80 11 00 00 00 00 00 00 BB [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:30]Read from MH i2c: E2 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: E2 17 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: E2 17 00 36 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 09 [18:39:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:39:30]wFMCommunicate OK [18:39:30]requested_item fd.num is exist - process it [18:39:30]SAM_PROTO_GetFieldsCounters [18:39:30]wFMCommunicate request_size=4 [18:39:30]MH_SAM_APDU [18:39:30]CAPDU: 80 13 00 00 [18:39:30]Write to MH i2c: E2 08 00 37 0B 80 13 00 00 00 00 00 00 BE [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:30]Read from MH i2c: E2 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: E2 62 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: E2 62 00 37 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 03 [18:39:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 15 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D2 01 00 00 5E 04 04 00 D2 01 00 00 57 04 04 00 D3 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:39:30]wFMCommunicate OK [18:39:30]SAM_PROTO_GetFieldsCounters done [18:39:30]requested_item shift.num is exist - process it [18:39:30]requested_item shift.opened is exist - process it [18:39:30]req_shift_opened [18:39:30]FM_GetShiftState [18:39:30]SAM_PROTO_GetShiftState [18:39:30]wFMCommunicate request_size=4 [18:39:30]MH_SAM_APDU [18:39:30]CAPDU: 80 13 01 00 [18:39:30]Write to MH i2c: E2 08 00 38 0B 80 13 01 00 00 00 00 00 C0 [18:39:30]Write i2c OK [18:39:30]MH_I2C_Read... [18:39:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:30]Read from MH i2c: E2 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: E2 0E 00 [18:39:30]MH_I2C_Read... [18:39:30]Read from MH i2c: E2 0E 00 38 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B5 [18:39:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:39:30]wFMCommunicate OK [18:39:30]SAM_PROTO_GetShiftState done [18:39:30]FM_GetShiftState done [18:39:30]req_shift_opened done [18:39:30]requested_item shift.open_date is exist - process it [18:39:30]req_shift_open_date [18:39:30]req_shift_open_date done [18:39:30]produce_requested_data done [18:39:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188437,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:39:30]process_action_free close_receipt [18:39:30]json_value_free [18:39:30]json_value_free done [18:39:30]process_json_proto returns [18:39:30]Send response to host [18:39:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188437,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:39:30]free response buf [18:39:30]execute_script done [18:39:30]execute_script returns [18:39:30]free content buf [18:39:30]Sock 9.Close socket [18:39:30]Sock 9.Thread stoped [18:39:34]OFD Sender: No OFD packet to send [18:39:39]OFD Sender: No OFD packet to send [18:39:44]OFD Sender: No OFD packet to send [18:39:49]OFD Sender: No OFD packet to send [18:39:54]OFD Sender: No OFD packet to send [18:39:59]OFD Sender: No OFD packet to send [18:40:04]OFD Sender: No OFD packet to send [18:40:09]OFD Sender: No OFD packet to send [18:40:14]OFD Sender: No OFD packet to send [18:40:19]OFD Sender: No OFD packet to send [18:40:24]OFD Sender: No OFD packet to send [18:40:29]OFD Sender: No OFD packet to send [18:40:34]OFD Sender: No OFD packet to send [18:40:39]OFD Sender: No OFD packet to send [18:40:41]accept exits with 7 [18:40:41]New connection [18:40:41]New thread 3066756452 created [18:40:41]Thread 3066613092 joined [18:40:41]Waiting for new connection... [18:40:41] Sock 7.Parse request [18:40:41]Sock 7.Check first char [18:40:41]Sock 7.First char is OK [18:40:41]request: POST /json_proto HTTP/1.0 [18:40:41]Method: POST [18:40:41]URL: /json_proto [18:40:41]Method is POST - this is cgi request [18:40:41]url: /json_proto [18:40:41]query_string will be loaded in cgi processing [18:40:41]execute_cgi json_proto POST (null) [18:40:41]execute_cgi path=json_proto method=POST [18:40:41]POST find Content-Length [18:40:41]Host: 172.17.42.131:8080 [18:40:41]Content-Length: 682 [18:40:41]Content-Type: application/json [18:40:41] [18:40:41]POST finish read [18:40:41]Found Content-Length = 682 [18:40:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:40:41]execute_script... [18:40: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)210499", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:40:41]POST & json_proto [18:40:41]process_json_proto [18:40:41]json parsed OK: [18:40:41]protocol is kg_v1.0 [18:40:41]action value=close_receipt [18:40:41]process_action close_receipt [18:40:41]cmd_close_receipt [18:40:41]MH_GetDate [18:40:41]Write to MH i2c: F0 00 00 39 0B 33 [18:40:41]Write i2c OK [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: F0 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: F0 09 00 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: F0 09 00 39 0B 00 AA F1 17 67 A0 18 CA 66 3D [18:40:41]GetLastDocTimeStamp 1729622367 [18:40:41]current date 1729622442 [18:40:41]FM_GetShiftState [18:40:41]SAM_PROTO_GetShiftState [18:40:41]wFMCommunicate request_size=4 [18:40:41]MH_SAM_APDU [18:40:41]CAPDU: 80 13 01 00 [18:40:41]Write to MH i2c: E2 08 00 3A 0B 80 13 01 00 00 00 00 00 C2 [18:40:41]Write i2c OK [18:40:41]MH_I2C_Read... [18:40:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:41]Read from MH i2c: E2 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: E2 0E 00 [18:40:41]MH_I2C_Read... [18:40:41]Read from MH i2c: E2 0E 00 3A 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B7 [18:40:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:40:41]wFMCommunicate OK [18:40:41]SAM_PROTO_GetShiftState done [18:40:41]FM_GetShiftState done [18:40:41]opened in 1729556094 [18:40:41]opened+sec_in_day 1729642494 [18:40:41]quantity*price = 100021 [18:40:41]sum+1 = 100023 [18:40:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 467 22.10.2024 18:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188438 ФПД: 68374956113777 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184042&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188438&fm=68374956113777&tin=02508201610067®Number=0000000000100030&sum=100000 [18:40:42]StoreToDocumentArchive [18:40:42]shift 461 fd 188438 [18:40:42]save to /storage/0461/doc_00188438 [18:40:42]save last doc name /storage/0461/doc_00188438 to /storage/kkm_last_doc_name [18:40:42]save OK [18:40:42]Clear old archive folders... [18:40:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:40:42]tlvbuf is 00940F90 [18:40:42]SAM_PROTO_ClearQueue [18:40:42]wFMCommunicate request_size=4 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 09 00 00 [18:40:42]Write to MH i2c: E2 08 00 47 0B 80 09 00 00 00 00 00 00 C4 [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 47 0B 00 90 00 C6 [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]SAM_PROTO_ClearQueue done [18:40:42]KKMCreateOFDPacket [18:40:42]OFDProtocolAddRootSTLVToBuf [18:40:42]FM_MakeSignedData [18:40:42]FM_MakeSignedData [18:40:42]SAM_PROTO_SignData [18:40:42]wFMCommunicate request_size=4 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 0D 01 02 [18:40:42]Write to MH i2c: E2 08 00 48 0B 80 0D 01 02 00 00 00 00 CC [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 48 0B 00 90 00 C7 [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]wFMCommunicate request_size=255 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 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 D3 01 00 00 F4 03 04 00 AA F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E0 02 00 35 04 06 00 3E [18:40:42]Write to MH i2c: E2 02 01 49 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 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 D3 01 00 00 F4 03 04 00 AA F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E0 02 00 35 04 06 00 3E 00 00 4D [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 49 0B 00 90 00 C8 [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]wFMCommunicate request_size=10 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 0D 02 02 05 2F C8 F8 7F 71 [18:40:42]Write to MH i2c: E2 0D 00 4A 0B 80 0D 02 02 05 00 2F C8 F8 7F 71 00 00 B8 [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:42]Read from MH i2c: E2 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 [18:40:42]MH_I2C_Read... [18:40:42]Read from MH i2c: E2 03 00 4A 0B 00 90 00 C9 [18:40:42]RAPDU: 90 00 [18:40:42]wFMCommunicate OK [18:40:42]wFMCommunicate request_size=4 [18:40:42]MH_SAM_APDU [18:40:42]CAPDU: 80 0D 03 02 [18:40:42]Write to MH i2c: E2 08 00 4B 0B 80 0D 03 02 00 00 00 00 D1 [18:40:42]Write i2c OK [18:40:42]MH_I2C_Read... [18:40:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 0B 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 0B 00 4B 0B 00 0F 95 9F CC BF 30 D2 90 90 00 32 [18:40:43]RAPDU: 0F 95 9F CC BF 30 D2 90 90 00 [18:40:43]wFMCommunicate OK [18:40:43]SAM_PROTO_SignData done [18:40:43]FM_MakeSignedData done [18:40:43]CreateOFDProtocolMessage [18:40:43]wFMCommunicate request_size=4 [18:40:43]MH_SAM_APDU [18:40:43]CAPDU: 80 11 00 00 [18:40:43]Write to MH i2c: E2 08 00 4C 0B 80 11 00 00 00 00 00 00 D1 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:43]Read from MH i2c: E2 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 17 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: E2 17 00 4C 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1F [18:40:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:40:43]wFMCommunicate OK [18:40:43]CreateOFDProtocolMessage done [18:40:43]OFDSenderStorePacket 188438 [18:40:43]StoreOFDPacket docnum=188438 [18:40:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 11 07 01 07 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D3 01 00 00 F4 03 04 00 AA F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E0 02 00 35 04 06 00 3E 2F C8 F8 7F 71 0F 95 9F CC BF 30 D2 90 [18:40:43]CheckFolder [18:40:43]dirname=/storage/ofd_packets [18:40:43]CheckFolder done [18:40:43]ProducePacketName [18:40:43]name=ofd_packets/00188438 [18:40:43]NVStorageSaveData ofd_packets/00188438 [18:40:43]File name is /storage/ofd_packets/00188438 [18:40:43]Write 301 bytes [18:40:43]NVStorageSaveData done [18:40:43]OFDSenderStorePacket done [18:40:43]KKMCreateOFDPacket done [18:40:43]NVStorageSaveData kkm_last_timestamp [18:40:43]File name is /storage/kkm_last_timestamp [18:40:43]Write 4 bytes [18:40:43]NVStorageSaveData done [18:40:43]ExternCall_PrintAddStr [18:40:43]wPrintStart [18:40:43]Write to MH i2c: 01 00 00 4D 0B 58 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 4D 0B 00 00 00 00 00 FF 0F 6D [18:40:43]RasterBufferAndPrint [18:40:43]line Счет N : (1)210499 [18:40:43]line ИНН: 02508201610067 [18:40:43]line Контрольно-Кассовый Чек [18:40:43]line ПРОДАЖА [18:40:43]line ТРК (МРК, ГНК) : 13 [18:40:43]line Товар: 2710124500 [18:40:43]line Аи-95-К-3 [18:40:43]line 13.480 * 74.20 [18:40:43]line = 1000.22 [18:40:43]line НДС 12% НСП 1% [18:40:43]line > о реализуемом товаре [18:40:43]line ОКРУГЛЕНИЕ: -0.22 [18:40:43]line ИТОГО: 1000.00 [18:40:43]line Внесено: 1000.00 [18:40:43]line СДАЧА: 0.00 [18:40:43]line НСП 1% : 8.85 [18:40:43]line НДС 12% : 106.22 [18:40:43]line Наличными: 1000.00 [18:40:43]line Безнал.: 0.00 [18:40:43]line Место: АЗС № 86 "Партнер Нефть" [18:40:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:40:43]line СНО: Общий режим [18:40:43]line Чек 467 22.10.2024 18:40 [18:40:43]line Смена: 461 ФФД: 1.0 [18:40:43]line ЗНМ: 0300000155 [18:40:43]line РНМ: 0000000000100030 [18:40:43]line Версия ККМ: 001 [18:40:43]line ФМ: 0000000000965340 [18:40:43]line ФД: 188438 [18:40:43]line ФПД: 68374956113777 [18:40:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184042&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188438&fm=68374956113777&tin=02508201610067®Number=0000000000100030&sum=100000 [18:40:43]written 0, free lines is 4095 [18:40:43]OFD Sender: Processing packet 188438 [packets to send 1062, broken 1061] [18:40:43]ProducePacketName [18:40:43]name=ofd_packets/00188438 [18:40:43]OFD Sender: To server: pG, [18:40:43]CommunicateWithHost lk.salyk.kg:30040 [18:40:43]ConnectInit lk.salyk.kg [18:40:43]Connected sock=10 [18:40:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 38 11 07 01 07 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D3 01 00 00 F4 03 04 00 AA F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 16 E0 02 00 35 04 06 00 3E 2F C8 F8 7F 71 0F 95 9F CC BF 30 D2 90 [18:40:43]Write to MH i2c: 01 00 00 78 0B 83 [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: 01 07 00 78 0B 00 00 00 00 00 66 0C FC [18:40:43]RasterBufferAndPrint [18:40:43]line [18:40:43]line [18:40:43]line [18:40:43]line [18:40:43]line [18:40:43]written 0, free lines is 3177 [18:40:43]MH_Cut [18:40:43]Write to MH i2c: D1 01 00 7F 0B 01 5C [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: D1 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: D1 01 00 [18:40:43]MH_I2C_Read... [18:40:43]Read from MH i2c: D1 01 00 7F 0B 00 5B [18:40:43]Write to MH i2c: 01 00 00 80 0B 8B [18:40:43]Write i2c OK [18:40:43]MH_I2C_Read... [18:40:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 AD E2 47 00 23 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 39 36 35 33 34 30 10 04 04 00 16 E0 02 00 F4 03 04 00 97 9B 17 67 B6 04 01 00 00 B3 AB EE 5E 96 93 A5 7F [18:40:43]CommunicateWithHost err = 0 [18:40:43]CheckOFDResponse [18:40:43]1017 (14) - 77093643461234 [18:40:43]1041 (16) - 0000000000965340 [18:40:43]1040 (4) - 188438 [18:40:43]1012 (4) - 22.10.2024 12:33 [18:40:43]1206 (1) - 0 [18:40:43]OFD Sender: Remove packet 188438 [18:40:43]ProducePacketName [18:40:43]name=ofd_packets/00188438 [18:40:43]NVStorageDeleteData [18:40:44]OFD Sender: No OFD packet to send [18:40:44]*** Cut start [18:40:44]*** Partial cut [18:40:44]*** CUTSNS_PIN = 1 [18:40:44]*** CUTSNS_PIN = 0 [18:40:45]*** Brake cut motor [18:40:45]Read from MH i2c: 01 [18:40:45]MH_I2C_Read... [18:40:45]*** Stop cut motor [18:40:45]*** Cut end [18:40:45]Read from MH i2c: 01 07 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: 01 07 00 80 0B 00 00 00 00 00 FF 0F A0 [18:40:45]process_action close_receipt done [18:40:45]requested_data is exist [18:40:45]produce_requested_data [18:40:45]requested_item fm.sn is exist - process it [18:40:45]wFMCommunicate request_size=4 [18:40:45]MH_SAM_APDU [18:40:45]CAPDU: 80 11 00 00 [18:40:45]Write to MH i2c: E2 08 00 81 0B 80 11 00 00 00 00 00 00 06 [18:40:45]Write i2c OK [18:40:45]MH_I2C_Read... [18:40:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:45]Read from MH i2c: E2 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 17 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 17 00 81 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 54 [18:40:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:40:45]wFMCommunicate OK [18:40:45]requested_item fd.num is exist - process it [18:40:45]SAM_PROTO_GetFieldsCounters [18:40:45]wFMCommunicate request_size=4 [18:40:45]MH_SAM_APDU [18:40:45]CAPDU: 80 13 00 00 [18:40:45]Write to MH i2c: E2 08 00 82 0B 80 13 00 00 00 00 00 00 09 [18:40:45]Write i2c OK [18:40:45]MH_I2C_Read... [18:40:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:45]Read from MH i2c: E2 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 62 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 62 00 82 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 52 [18:40:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 16 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D3 01 00 00 5E 04 04 00 D3 01 00 00 57 04 04 00 D4 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:40:45]wFMCommunicate OK [18:40:45]SAM_PROTO_GetFieldsCounters done [18:40:45]requested_item shift.num is exist - process it [18:40:45]requested_item shift.opened is exist - process it [18:40:45]req_shift_opened [18:40:45]FM_GetShiftState [18:40:45]SAM_PROTO_GetShiftState [18:40:45]wFMCommunicate request_size=4 [18:40:45]MH_SAM_APDU [18:40:45]CAPDU: 80 13 01 00 [18:40:45]Write to MH i2c: E2 08 00 83 0B 80 13 01 00 00 00 00 00 0B [18:40:45]Write i2c OK [18:40:45]MH_I2C_Read... [18:40:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:45]Read from MH i2c: E2 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 0E 00 [18:40:45]MH_I2C_Read... [18:40:45]Read from MH i2c: E2 0E 00 83 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 00 [18:40:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:40:45]wFMCommunicate OK [18:40:45]SAM_PROTO_GetShiftState done [18:40:45]FM_GetShiftState done [18:40:45]req_shift_opened done [18:40:45]requested_item shift.open_date is exist - process it [18:40:45]req_shift_open_date [18:40:45]req_shift_open_date done [18:40:45]produce_requested_data done [18:40:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188438,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:40:45]process_action_free close_receipt [18:40:45]json_value_free [18:40:45]json_value_free done [18:40:45]process_json_proto returns [18:40:45]Send response to host [18:40:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188438,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:40:45]free response buf [18:40:45]execute_script done [18:40:45]execute_script returns [18:40:45]free content buf [18:40:45]Sock 7.Close socket [18:40:45]Sock 7.Thread stoped [18:40:49]OFD Sender: No OFD packet to send [18:40:54]OFD Sender: No OFD packet to send [18:40:59]OFD Sender: No OFD packet to send [18:41:04]OFD Sender: No OFD packet to send [18:41:09]OFD Sender: No OFD packet to send [18:41:09]accept exits with 9 [18:41:09]New connection [18:41:09]New thread 3066613092 created [18:41:09]Thread 3066756452 joined [18:41:09]Waiting for new connection... [18:41:09] Sock 9.Parse request [18:41:09]Sock 9.Check first char [18:41:09]Sock 9.First char is OK [18:41:09]request: POST /json_proto HTTP/1.0 [18:41:09]Method: POST [18:41:09]URL: /json_proto [18:41:09]Method is POST - this is cgi request [18:41:09]url: /json_proto [18:41:09]query_string will be loaded in cgi processing [18:41:09]execute_cgi json_proto POST (null) [18:41:09]execute_cgi path=json_proto method=POST [18:41:09]POST find Content-Length [18:41:09]Host: 172.17.42.131:8080 [18:41:09]Content-Length: 679 [18:41:09]Content-Type: application/json [18:41:09] [18:41:09]POST finish read [18:41:09]Found Content-Length = 679 [18:41:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:41:09]execute_script... [18:41:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210498", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:41:09]POST & json_proto [18:41:09]process_json_proto [18:41:09]json parsed OK: [18:41:09]protocol is kg_v1.0 [18:41:09]action value=close_receipt [18:41:09]process_action close_receipt [18:41:09]cmd_close_receipt [18:41:09]MH_GetDate [18:41:09]Write to MH i2c: F0 00 00 84 0B 7E [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: F0 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: F0 09 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: F0 09 00 84 0B 00 C7 F1 17 67 A0 18 CA 66 A5 [18:41:09]GetLastDocTimeStamp 1729622442 [18:41:09]current date 1729622471 [18:41:09]FM_GetShiftState [18:41:09]SAM_PROTO_GetShiftState [18:41:09]wFMCommunicate request_size=4 [18:41:09]MH_SAM_APDU [18:41:09]CAPDU: 80 13 01 00 [18:41:09]Write to MH i2c: E2 08 00 85 0B 80 13 01 00 00 00 00 00 0D [18:41:09]Write i2c OK [18:41:09]MH_I2C_Read... [18:41:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:09]Read from MH i2c: E2 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 0E 00 [18:41:09]MH_I2C_Read... [18:41:09]Read from MH i2c: E2 0E 00 85 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 02 [18:41:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:41:09]wFMCommunicate OK [18:41:09]SAM_PROTO_GetShiftState done [18:41:09]FM_GetShiftState done [18:41:09]opened in 1729556094 [18:41:09]opened+sec_in_day 1729642494 [18:41:09]quantity*price = 200025 [18:41:09]sum+1 = 200026 [18:41:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 468 22.10.2024 18:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188439 ФПД: 256094201989176 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188439&fm=256094201989176&tin=02508201610067®Number=0000000000100030&sum=200000 [18:41:11]StoreToDocumentArchive [18:41:11]shift 461 fd 188439 [18:41:11]save to /storage/0461/doc_00188439 [18:41:11]save last doc name /storage/0461/doc_00188439 to /storage/kkm_last_doc_name [18:41:11]save OK [18:41:11]Clear old archive folders... [18:41:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:41:11]tlvbuf is 008FF2C0 [18:41:11]SAM_PROTO_ClearQueue [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 09 00 00 [18:41:11]Write to MH i2c: E2 08 00 92 0B 80 09 00 00 00 00 00 00 0F [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 92 0B 00 90 00 11 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]SAM_PROTO_ClearQueue done [18:41:11]KKMCreateOFDPacket [18:41:11]OFDProtocolAddRootSTLVToBuf [18:41:11]FM_MakeSignedData [18:41:11]FM_MakeSignedData [18:41:11]SAM_PROTO_SignData [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 0D 01 02 [18:41:11]Write to MH i2c: E2 08 00 93 0B 80 0D 01 02 00 00 00 00 17 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 93 0B 00 90 00 12 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]wFMCommunicate request_size=255 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D4 01 00 00 F4 03 04 00 C7 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E0 02 00 35 04 06 00 E8 EA 93 F0 [18:41:11]Write to MH i2c: E2 02 01 94 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 32 31 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 D4 01 00 00 F4 03 04 00 C7 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E0 02 00 35 04 06 00 E8 EA 93 F0 00 00 97 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 94 0B 00 90 00 13 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]wFMCommunicate request_size=7 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 0D 02 02 02 48 38 [18:41:11]Write to MH i2c: E2 0A 00 95 0B 80 0D 02 02 02 00 48 38 00 00 9E [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 03 00 95 0B 00 90 00 14 [18:41:11]RAPDU: 90 00 [18:41:11]wFMCommunicate OK [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 0D 03 02 [18:41:11]Write to MH i2c: E2 08 00 96 0B 80 0D 03 02 00 00 00 00 1C [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 0B 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 0B 00 96 0B 00 E4 22 6A 0B 20 A4 C3 BF 90 00 DE [18:41:11]RAPDU: E4 22 6A 0B 20 A4 C3 BF 90 00 [18:41:11]wFMCommunicate OK [18:41:11]SAM_PROTO_SignData done [18:41:11]FM_MakeSignedData done [18:41:11]CreateOFDProtocolMessage [18:41:11]wFMCommunicate request_size=4 [18:41:11]MH_SAM_APDU [18:41:11]CAPDU: 80 11 00 00 [18:41:11]Write to MH i2c: E2 08 00 97 0B 80 11 00 00 00 00 00 00 1C [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:11]Read from MH i2c: E2 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 17 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: E2 17 00 97 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6A [18:41:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:11]wFMCommunicate OK [18:41:11]CreateOFDProtocolMessage done [18:41:11]OFDSenderStorePacket 188439 [18:41:11]StoreOFDPacket docnum=188439 [18:41:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 99 54 04 01 A0 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D4 01 00 00 F4 03 04 00 C7 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E0 02 00 35 04 06 00 E8 EA 93 F0 48 38 E4 22 6A 0B 20 A4 C3 BF [18:41:11]CheckFolder [18:41:11]dirname=/storage/ofd_packets [18:41:11]CheckFolder done [18:41:11]ProducePacketName [18:41:11]name=ofd_packets/00188439 [18:41:11]NVStorageSaveData ofd_packets/00188439 [18:41:11]File name is /storage/ofd_packets/00188439 [18:41:11]Write 298 bytes [18:41:11]NVStorageSaveData done [18:41:11]OFDSenderStorePacket done [18:41:11]KKMCreateOFDPacket done [18:41:11]NVStorageSaveData kkm_last_timestamp [18:41:11]File name is /storage/kkm_last_timestamp [18:41:11]Write 4 bytes [18:41:11]NVStorageSaveData done [18:41:11]ExternCall_PrintAddStr [18:41:11]wPrintStart [18:41:11]Write to MH i2c: 01 00 00 98 0B A3 [18:41:11]Write i2c OK [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: 01 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: 01 07 00 [18:41:11]MH_I2C_Read... [18:41:11]Read from MH i2c: 01 07 00 98 0B 00 00 00 00 00 FF 0F B8 [18:41:11]RasterBufferAndPrint [18:41:11]line Счет N : (1)210498 [18:41:11]line ИНН: 02508201610067 [18:41:11]line Контрольно-Кассовый Чек [18:41:11]line ПРОДАЖА [18:41:11]line ТРК (МРК, ГНК) : 51 [18:41:11]line Товар: 2710194210 [18:41:11]line ДТ-К-5 [18:41:11]line 26.250 * 76.20 [18:41:11]line = 2000.25 [18:41:11]line НДС 12% НСП 1% [18:41:11]line > о реализуемом товаре [18:41:11]line ОКРУГЛЕНИЕ: -0.25 [18:41:11]line ИТОГО: 2000.00 [18:41:11]line Внесено: 2000.00 [18:41:11]line СДАЧА: 0.00 [18:41:11]line НСП 1% : 17.70 [18:41:11]line НДС 12% : 212.42 [18:41:11]line Наличными: 2000.00 [18:41:11]line Безнал.: 0.00 [18:41:11]line Место: АЗС № 86 "Партнер Нефть" [18:41:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:41:11]line СНО: Общий режим [18:41:11]line Чек 468 22.10.2024 18:41 [18:41:11]line Смена: 461 ФФД: 1.0 [18:41:11]line ЗНМ: 0300000155 [18:41:11]line РНМ: 0000000000100030 [18:41:11]line Версия ККМ: 001 [18:41:11]line ФМ: 0000000000965340 [18:41:11]line ФД: 188439 [18:41:11]line ФПД: 256094201989176 [18:41:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188439&fm=256094201989176&tin=02508201610067®Number=0000000000100030&sum=200000 [18:41:11]OFD Sender: Processing packet 188439 [packets to send 1062, broken 1061] [18:41:11]ProducePacketName [18:41:11]name=ofd_packets/00188439 [18:41:11]OFD Sender: To server: pG, [18:41:11]CommunicateWithHost lk.salyk.kg:30040 [18:41:11]ConnectInit lk.salyk.kg [18:41:11]written 0, free lines is 4095 [18:41:12]Connected sock=10 [18:41:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 99 54 04 01 A0 68 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D4 01 00 00 F4 03 04 00 C7 F1 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 17 E0 02 00 35 04 06 00 E8 EA 93 F0 48 38 E4 22 6A 0B 20 A4 C3 BF [18:41:12]Write to MH i2c: 01 00 00 C3 0B CE [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 07 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: 01 07 00 C3 0B 00 00 00 00 00 6A 0C 4B [18:41:12]RasterBufferAndPrint [18:41:12]line [18:41:12]line [18:41:12]line [18:41:12]line [18:41:12]line [18:41:12]written 0, free lines is 3181 [18:41:12]MH_Cut [18:41:12]Write to MH i2c: D1 01 00 CA 0B 01 A7 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: D1 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: D1 01 00 [18:41:12]MH_I2C_Read... [18:41:12]Read from MH i2c: D1 01 00 CA 0B 00 A6 [18:41:12]Write to MH i2c: 01 00 00 CB 0B D6 [18:41:12]Write i2c OK [18:41:12]MH_I2C_Read... [18:41:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 EE 01 47 00 BC 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 39 36 35 33 34 30 10 04 04 00 17 E0 02 00 F4 03 04 00 B3 9B 17 67 B6 04 01 00 00 03 86 88 0F D4 BE 78 B1 [18:41:12]CommunicateWithHost err = 0 [18:41:12]CheckOFDResponse [18:41:12]1017 (14) - 77093643461234 [18:41:12]1041 (16) - 0000000000965340 [18:41:12]1040 (4) - 188439 [18:41:12]1012 (4) - 22.10.2024 12:33 [18:41:12]1206 (1) - 0 [18:41:12]OFD Sender: Remove packet 188439 [18:41:12]ProducePacketName [18:41:12]name=ofd_packets/00188439 [18:41:12]NVStorageDeleteData [18:41:13]OFD Sender: No OFD packet to send [18:41:13]*** Cut start [18:41:13]*** Partial cut [18:41:13]*** CUTSNS_PIN = 1 [18:41:13]*** CUTSNS_PIN = 0 [18:41:13]*** Brake cut motor [18:41:14]Read from MH i2c: 01 [18:41:14]MH_I2C_Read... [18:41:14]*** Stop cut motor [18:41:14]*** Cut end [18:41:14]Read from MH i2c: 01 07 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: 01 07 00 CB 0B 00 00 00 00 00 FF 0F EB [18:41:14]process_action close_receipt done [18:41:14]requested_data is exist [18:41:14]produce_requested_data [18:41:14]requested_item fm.sn is exist - process it [18:41:14]wFMCommunicate request_size=4 [18:41:14]MH_SAM_APDU [18:41:14]CAPDU: 80 11 00 00 [18:41:14]Write to MH i2c: E2 08 00 CC 0B 80 11 00 00 00 00 00 00 51 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:14]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 17 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 17 00 CC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9F [18:41:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:41:14]wFMCommunicate OK [18:41:14]requested_item fd.num is exist - process it [18:41:14]SAM_PROTO_GetFieldsCounters [18:41:14]wFMCommunicate request_size=4 [18:41:14]MH_SAM_APDU [18:41:14]CAPDU: 80 13 00 00 [18:41:14]Write to MH i2c: E2 08 00 CD 0B 80 13 00 00 00 00 00 00 54 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:14]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 62 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 62 00 CD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 A1 [18:41:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 17 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D4 01 00 00 5E 04 04 00 D4 01 00 00 57 04 04 00 D5 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:41:14]wFMCommunicate OK [18:41:14]SAM_PROTO_GetFieldsCounters done [18:41:14]requested_item shift.num is exist - process it [18:41:14]requested_item shift.opened is exist - process it [18:41:14]req_shift_opened [18:41:14]FM_GetShiftState [18:41:14]SAM_PROTO_GetShiftState [18:41:14]wFMCommunicate request_size=4 [18:41:14]MH_SAM_APDU [18:41:14]CAPDU: 80 13 01 00 [18:41:14]Write to MH i2c: E2 08 00 CE 0B 80 13 01 00 00 00 00 00 56 [18:41:14]Write i2c OK [18:41:14]MH_I2C_Read... [18:41:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:14]Read from MH i2c: E2 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 0E 00 [18:41:14]MH_I2C_Read... [18:41:14]Read from MH i2c: E2 0E 00 CE 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4B [18:41:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:41:14]wFMCommunicate OK [18:41:14]SAM_PROTO_GetShiftState done [18:41:14]FM_GetShiftState done [18:41:14]req_shift_opened done [18:41:14]requested_item shift.open_date is exist - process it [18:41:14]req_shift_open_date [18:41:14]req_shift_open_date done [18:41:14]produce_requested_data done [18:41:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188439,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:41:14]process_action_free close_receipt [18:41:14]json_value_free [18:41:14]json_value_free done [18:41:14]process_json_proto returns [18:41:14]Send response to host [18:41:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188439,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:41:14]free response buf [18:41:14]execute_script done [18:41:14]execute_script returns [18:41:14]free content buf [18:41:14]Sock 9.Close socket [18:41:14]Sock 9.Thread stoped [18:41:18]OFD Sender: No OFD packet to send [18:41:23]OFD Sender: No OFD packet to send [18:41:28]OFD Sender: No OFD packet to send [18:41:33]OFD Sender: No OFD packet to send [18:41:38]OFD Sender: No OFD packet to send [18:41:43]OFD Sender: No OFD packet to send [18:41:48]OFD Sender: No OFD packet to send [18:41:53]OFD Sender: No OFD packet to send [18:41:58]OFD Sender: No OFD packet to send [18:42:03]OFD Sender: No OFD packet to send [18:42:08]OFD Sender: No OFD packet to send [18:42:13]OFD Sender: No OFD packet to send [18:42:18]OFD Sender: No OFD packet to send [18:42:23]OFD Sender: No OFD packet to send [18:42:28]OFD Sender: No OFD packet to send [18:42:33]OFD Sender: No OFD packet to send [18:42:38]OFD Sender: No OFD packet to send [18:42:43]OFD Sender: No OFD packet to send [18:42:48]OFD Sender: No OFD packet to send [18:42:53]OFD Sender: No OFD packet to send [18:42:58]OFD Sender: No OFD packet to send [18:43:03]OFD Sender: No OFD packet to send [18:43:08]OFD Sender: No OFD packet to send [18:43:13]OFD Sender: No OFD packet to send [18:43:18]OFD Sender: No OFD packet to send [18:43:23]OFD Sender: No OFD packet to send [18:43:28]OFD Sender: No OFD packet to send [18:43:33]OFD Sender: No OFD packet to send [18:43:38]OFD Sender: No OFD packet to send [18:43:43]OFD Sender: No OFD packet to send [18:43:48]OFD Sender: No OFD packet to send [18:43:53]OFD Sender: No OFD packet to send [18:43:58]OFD Sender: No OFD packet to send [18:44:03]OFD Sender: No OFD packet to send [18:44:08]OFD Sender: No OFD packet to send [18:44:13]OFD Sender: No OFD packet to send [18:44:18]OFD Sender: No OFD packet to send [18:44:23]OFD Sender: No OFD packet to send [18:44:24]accept exits with 7 [18:44:24]New connection [18:44:24]New thread 3066756452 created [18:44:24]Thread 3066613092 joined [18:44:24]Waiting for new connection... [18:44:24] Sock 7.Parse request [18:44:24]Sock 7.Check first char [18:44:24]Sock 7.First char is OK [18:44:24]request: POST /json_proto HTTP/1.0 [18:44:24]Method: POST [18:44:24]URL: /json_proto [18:44:24]Method is POST - this is cgi request [18:44:24]url: /json_proto [18:44:24]query_string will be loaded in cgi processing [18:44:24]execute_cgi json_proto POST (null) [18:44:24]execute_cgi path=json_proto method=POST [18:44:24]POST find Content-Length [18:44:24]Host: 172.17.42.131:8080 [18:44:24]Content-Length: 682 [18:44:24]Content-Type: application/json [18:44:24] [18:44:24]POST finish read [18:44:24]Found Content-Length = 682 [18:44:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:24]execute_script... [18:44:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210500", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:44:24]POST & json_proto [18:44:24]process_json_proto [18:44:24]json parsed OK: [18:44:24]protocol is kg_v1.0 [18:44:24]action value=close_receipt [18:44:24]process_action close_receipt [18:44:24]cmd_close_receipt [18:44:24]MH_GetDate [18:44:24]Write to MH i2c: F0 00 00 CF 0B C9 [18:44:24]Write i2c OK [18:44:24]MH_I2C_Read... [18:44:24]Read from MH i2c: F0 [18:44:24]MH_I2C_Read... [18:44:24]Read from MH i2c: F0 09 00 [18:44:24]MH_I2C_Read... [18:44:24]Read from MH i2c: F0 09 00 CF 0B 00 89 F2 17 67 A0 18 CA 66 B3 [18:44:24]GetLastDocTimeStamp 1729622471 [18:44:24]current date 1729622665 [18:44:24]FM_GetShiftState [18:44:24]SAM_PROTO_GetShiftState [18:44:24]wFMCommunicate request_size=4 [18:44:24]MH_SAM_APDU [18:44:24]CAPDU: 80 13 01 00 [18:44:24]Write to MH i2c: E2 08 00 D0 0B 80 13 01 00 00 00 00 00 58 [18:44:24]Write i2c OK [18:44:24]MH_I2C_Read... [18:44:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:24]Read from MH i2c: E2 [18:44:24]MH_I2C_Read... [18:44:24]Read from MH i2c: E2 0E 00 [18:44:24]MH_I2C_Read... [18:44:24]Read from MH i2c: E2 0E 00 D0 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4D [18:44:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:44:24]wFMCommunicate OK [18:44:24]SAM_PROTO_GetShiftState done [18:44:24]FM_GetShiftState done [18:44:24]opened in 1729556094 [18:44:24]opened+sec_in_day 1729642494 [18:44:24]quantity*price = 200031 [18:44:24]sum+1 = 200032 [18:44:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 469 22.10.2024 18:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188440 ФПД: 267847145183354 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184425&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188440&fm=267847145183354&tin=02508201610067®Number=0000000000100030&sum=200000 [18:44:25]StoreToDocumentArchive [18:44:25]shift 461 fd 188440 [18:44:25]save to /storage/0461/doc_00188440 [18:44:25]save last doc name /storage/0461/doc_00188440 to /storage/kkm_last_doc_name [18:44:25]save OK [18:44:25]Clear old archive folders... [18:44:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:44:25]tlvbuf is 0093DC60 [18:44:25]SAM_PROTO_ClearQueue [18:44:25]wFMCommunicate request_size=4 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 09 00 00 [18:44:25]Write to MH i2c: E2 08 00 DD 0B 80 09 00 00 00 00 00 00 5A [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 DD 0B 00 90 00 5C [18:44:25]RAPDU: 90 00 [18:44:25]wFMCommunicate OK [18:44:25]SAM_PROTO_ClearQueue done [18:44:25]KKMCreateOFDPacket [18:44:25]OFDProtocolAddRootSTLVToBuf [18:44:25]FM_MakeSignedData [18:44:25]FM_MakeSignedData [18:44:25]SAM_PROTO_SignData [18:44:25]wFMCommunicate request_size=4 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 0D 01 02 [18:44:25]Write to MH i2c: E2 08 00 DE 0B 80 0D 01 02 00 00 00 00 62 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 DE 0B 00 90 00 5D [18:44:25]RAPDU: 90 00 [18:44:25]wFMCommunicate OK [18:44:25]wFMCommunicate request_size=255 [18:44:25]MH_SAM_APDU [18:44: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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 D5 01 00 00 F4 03 04 00 89 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E0 02 00 35 04 06 00 F3 [18:44:25]Write to MH i2c: E2 02 01 DF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 D5 01 00 00 F4 03 04 00 89 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E0 02 00 35 04 06 00 F3 00 00 A1 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 DF 0B 00 90 00 5E [18:44:25]RAPDU: 90 00 [18:44:25]wFMCommunicate OK [18:44:25]wFMCommunicate request_size=10 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 0D 02 02 05 9B 05 F1 58 7A [18:44:25]Write to MH i2c: E2 0D 00 E0 0B 80 0D 02 02 05 00 9B 05 F1 58 7A 00 00 D2 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 03 00 E0 0B 00 90 00 5F [18:44:25]RAPDU: 90 00 [18:44:25]wFMCommunicate OK [18:44:25]wFMCommunicate request_size=4 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 0D 03 02 [18:44:25]Write to MH i2c: E2 08 00 E1 0B 80 0D 03 02 00 00 00 00 67 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 0B 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 0B 00 E1 0B 00 6B 47 9C 19 1E 48 CB 02 90 00 02 [18:44:25]RAPDU: 6B 47 9C 19 1E 48 CB 02 90 00 [18:44:25]wFMCommunicate OK [18:44:25]SAM_PROTO_SignData done [18:44:25]FM_MakeSignedData done [18:44:25]CreateOFDProtocolMessage [18:44:25]wFMCommunicate request_size=4 [18:44:25]MH_SAM_APDU [18:44:25]CAPDU: 80 11 00 00 [18:44:25]Write to MH i2c: E2 08 00 E2 0B 80 11 00 00 00 00 00 00 67 [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:25]Read from MH i2c: E2 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 17 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: E2 17 00 E2 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B5 [18:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:44:25]wFMCommunicate OK [18:44:25]CreateOFDProtocolMessage done [18:44:25]OFDSenderStorePacket 188440 [18:44:25]StoreOFDPacket docnum=188440 [18:44:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 4A 07 01 C6 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 D5 01 00 00 F4 03 04 00 89 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E0 02 00 35 04 06 00 F3 9B 05 F1 58 7A 6B 47 9C 19 1E 48 CB 02 [18:44:25]CheckFolder [18:44:25]dirname=/storage/ofd_packets [18:44:25]CheckFolder done [18:44:25]ProducePacketName [18:44:25]name=ofd_packets/00188440 [18:44:25]NVStorageSaveData ofd_packets/00188440 [18:44:25]File name is /storage/ofd_packets/00188440 [18:44:25]Write 301 bytes [18:44:25]NVStorageSaveData done [18:44:25]OFDSenderStorePacket done [18:44:25]KKMCreateOFDPacket done [18:44:25]NVStorageSaveData kkm_last_timestamp [18:44:25]File name is /storage/kkm_last_timestamp [18:44:25]Write 4 bytes [18:44:25]NVStorageSaveData done [18:44:25]ExternCall_PrintAddStr [18:44:25]wPrintStart [18:44:25]Write to MH i2c: 01 00 00 E3 0B EE [18:44:25]Write i2c OK [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: 01 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: 01 07 00 [18:44:25]MH_I2C_Read... [18:44:25]Read from MH i2c: 01 07 00 E3 0B 00 00 00 00 00 FF 0F 03 [18:44:25]RasterBufferAndPrint [18:44:25]line Счет N : (1)210500 [18:44:25]line ИНН: 02508201610067 [18:44:25]line Контрольно-Кассовый Чек [18:44:25]line ПРОДАЖА [18:44:25]line ТРК (МРК, ГНК) : 32 [18:44:25]line Товар: 2710124130 [18:44:25]line Аи-92-К-3 [18:44:25]line 29.900 * 66.90 [18:44:25]line = 2000.31 [18:44:25]line НДС 12% НСП 1% [18:44:25]line > о реализуемом товаре [18:44:25]line ОКРУГЛЕНИЕ: -0.31 [18:44:25]line ИТОГО: 2000.00 [18:44:25]line Внесено: 2000.00 [18:44:25]line СДАЧА: 0.00 [18:44:25]line НСП 1% : 17.70 [18:44:25]line НДС 12% : 212.42 [18:44:25]line Наличными: 2000.00 [18:44:25]line Безнал.: 0.00 [18:44:25]line Место: АЗС № 86 "Партнер Нефть" [18:44:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:44:25]line СНО: Общий режим [18:44:25]line Чек 469 22.10.2024 18:44 [18:44:25]line Смена: 461 ФФД: 1.0 [18:44:25]line ЗНМ: 0300000155 [18:44:25]line РНМ: 0000000000100030 [18:44:25]line Версия ККМ: 001 [18:44:25]line ФМ: 0000000000965340 [18:44:25]line ФД: 188440 [18:44:25]line ФПД: 267847145183354 [18:44:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184425&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188440&fm=267847145183354&tin=02508201610067®Number=0000000000100030&sum=200000 [18:44:26]OFD Sender: Processing packet 188440 [packets to send 1062, broken 1061] [18:44:26]ProducePacketName [18:44:26]name=ofd_packets/00188440 [18:44:26]OFD Sender: To server: pG, [18:44:26]CommunicateWithHost lk.salyk.kg:30040 [18:44:26]ConnectInit lk.salyk.kg [18:44:26]written 0, free lines is 4095 [18:44:26]Connected sock=10 [18:44:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 59 4A 07 01 C6 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 D5 01 00 00 F4 03 04 00 89 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E0 02 00 35 04 06 00 F3 9B 05 F1 58 7A 6B 47 9C 19 1E 48 CB 02 [18:44:26]Write to MH i2c: 01 00 00 0E 0C 1A [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: 01 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: 01 07 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: 01 07 00 0E 0C 00 00 00 00 00 67 0C 94 [18:44:26]RasterBufferAndPrint [18:44:26]line [18:44:26]line [18:44:26]line [18:44:26]line [18:44:26]line [18:44:26]written 0, free lines is 3178 [18:44:26]MH_Cut [18:44:26]Write to MH i2c: D1 01 00 15 0C 01 F3 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: D1 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: D1 01 00 [18:44:26]MH_I2C_Read... [18:44:26]Read from MH i2c: D1 01 00 15 0C 00 F2 [18:44:26]Write to MH i2c: 01 00 00 16 0C 22 [18:44:26]Write i2c OK [18:44:26]MH_I2C_Read... [18:44:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 05 47 00 7D 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 18 E0 02 00 F4 03 04 00 76 9C 17 67 B6 04 01 00 00 46 04 8A 79 F9 D2 DD 12 [18:44:26]CommunicateWithHost err = 0 [18:44:26]CheckOFDResponse [18:44:26]1017 (14) - 77093643461234 [18:44:26]1041 (16) - 0000000000965340 [18:44:26]1040 (4) - 188440 [18:44:26]1012 (4) - 22.10.2024 12:37 [18:44:26]1206 (1) - 0 [18:44:26]OFD Sender: Remove packet 188440 [18:44:26]ProducePacketName [18:44:26]name=ofd_packets/00188440 [18:44:26]NVStorageDeleteData [18:44:27]OFD Sender: No OFD packet to send [18:44:27]*** Cut start [18:44:27]*** Partial cut [18:44:27]*** CUTSNS_PIN = 1 [18:44:27]*** CUTSNS_PIN = 0 [18:44:28]*** Brake cut motor [18:44:28]Read from MH i2c: 01 [18:44:28]MH_I2C_Read... [18:44:28]*** Stop cut motor [18:44:28]*** Cut end [18:44:28]Read from MH i2c: 01 07 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: 01 07 00 16 0C 00 00 00 00 00 FF 0F 37 [18:44:28]process_action close_receipt done [18:44:28]requested_data is exist [18:44:28]produce_requested_data [18:44:28]requested_item fm.sn is exist - process it [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 11 00 00 [18:44:28]Write to MH i2c: E2 08 00 17 0C 80 11 00 00 00 00 00 00 9D [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 17 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 17 00 17 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [18:44:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:44:28]wFMCommunicate OK [18:44:28]requested_item fd.num is exist - process it [18:44:28]SAM_PROTO_GetFieldsCounters [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 13 00 00 [18:44:28]Write to MH i2c: E2 08 00 18 0C 80 13 00 00 00 00 00 00 A0 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 62 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 62 00 18 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 F1 [18:44:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 18 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D5 01 00 00 5E 04 04 00 D5 01 00 00 57 04 04 00 D6 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:44:28]wFMCommunicate OK [18:44:28]SAM_PROTO_GetFieldsCounters done [18:44:28]requested_item shift.num is exist - process it [18:44:28]requested_item shift.opened is exist - process it [18:44:28]req_shift_opened [18:44:28]FM_GetShiftState [18:44:28]SAM_PROTO_GetShiftState [18:44:28]wFMCommunicate request_size=4 [18:44:28]MH_SAM_APDU [18:44:28]CAPDU: 80 13 01 00 [18:44:28]Write to MH i2c: E2 08 00 19 0C 80 13 01 00 00 00 00 00 A2 [18:44:28]Write i2c OK [18:44:28]MH_I2C_Read... [18:44:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:44:28]Read from MH i2c: E2 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 0E 00 [18:44:28]MH_I2C_Read... [18:44:28]Read from MH i2c: E2 0E 00 19 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 97 [18:44:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:44:28]wFMCommunicate OK [18:44:28]SAM_PROTO_GetShiftState done [18:44:28]FM_GetShiftState done [18:44:28]req_shift_opened done [18:44:28]requested_item shift.open_date is exist - process it [18:44:28]req_shift_open_date [18:44:28]req_shift_open_date done [18:44:28]produce_requested_data done [18:44:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188440,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:44:28]process_action_free close_receipt [18:44:28]json_value_free [18:44:28]json_value_free done [18:44:28]process_json_proto returns [18:44:28]Send response to host [18:44:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188440,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:44:28]free response buf [18:44:28]execute_script done [18:44:28]execute_script returns [18:44:28]free content buf [18:44:28]Sock 7.Close socket [18:44:28]Sock 7.Thread stoped [18:44:32]OFD Sender: No OFD packet to send [18:44:37]OFD Sender: No OFD packet to send [18:44:42]OFD Sender: No OFD packet to send [18:44:47]OFD Sender: No OFD packet to send [18:44:52]OFD Sender: No OFD packet to send [18:44:57]OFD Sender: No OFD packet to send [18:45:02]OFD Sender: No OFD packet to send [18:45:07]OFD Sender: No OFD packet to send [18:45:08]accept exits with 9 [18:45:08]New connection [18:45:08]New thread 3066613092 created [18:45:08]Thread 3066756452 joined [18:45:08]Waiting for new connection... [18:45:08] Sock 9.Parse request [18:45:08]Sock 9.Check first char [18:45:08]Sock 9.First char is OK [18:45:08]request: POST /json_proto HTTP/1.0 [18:45:08]Method: POST [18:45:08]URL: /json_proto [18:45:08]Method is POST - this is cgi request [18:45:08]url: /json_proto [18:45:08]query_string will be loaded in cgi processing [18:45:08]execute_cgi json_proto POST (null) [18:45:08]execute_cgi path=json_proto method=POST [18:45:08]POST find Content-Length [18:45:08]Host: 172.17.42.131:8080 [18:45:08]Content-Length: 769 [18:45:08]Content-Type: application/json [18:45:08] [18:45:08]POST finish read [18:45:08]Found Content-Length = 769 [18:45:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:08]execute_script... [18:45: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)210501", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:08]POST & json_proto [18:45:08]process_json_proto [18:45:08]json parsed OK: [18:45:08]protocol is kg_v1.0 [18:45:08]action value=close_receipt [18:45:08]process_action close_receipt [18:45:08]cmd_close_receipt [18:45:08]MH_GetDate [18:45:08]Write to MH i2c: F0 00 00 1A 0C 15 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: F0 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: F0 09 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: F0 09 00 1A 0C 00 B5 F2 17 67 A0 18 CA 66 2B [18:45:08]GetLastDocTimeStamp 1729622665 [18:45:08]current date 1729622709 [18:45:08]FM_GetShiftState [18:45:08]SAM_PROTO_GetShiftState [18:45:08]wFMCommunicate request_size=4 [18:45:08]MH_SAM_APDU [18:45:08]CAPDU: 80 13 01 00 [18:45:08]Write to MH i2c: E2 08 00 1B 0C 80 13 01 00 00 00 00 00 A4 [18:45:08]Write i2c OK [18:45:08]MH_I2C_Read... [18:45:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:08]Read from MH i2c: E2 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 0E 00 [18:45:08]MH_I2C_Read... [18:45:08]Read from MH i2c: E2 0E 00 1B 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 99 [18:45:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:45:08]wFMCommunicate OK [18:45:08]SAM_PROTO_GetShiftState done [18:45:08]FM_GetShiftState done [18:45:08]opened in 1729556094 [18:45:08]opened+sec_in_day 1729642494 [18:45:08]quantity*price = 100015 [18:45:08]sum+1 = 100017 [18:45:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 470 22.10.2024 18:45 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188441 ФПД: 206213237505697 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184509&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188441&fm=206213237505697&tin=02508201610067®Number=0000000000100030&sum=100016 [18:45:09]StoreToDocumentArchive [18:45:09]shift 461 fd 188441 [18:45:09]save to /storage/0461/doc_00188441 [18:45:09]save last doc name /storage/0461/doc_00188441 to /storage/kkm_last_doc_name [18:45:09]save OK [18:45:09]Clear old archive folders... [18:45:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:09]tlvbuf is 00918660 [18:45:09]SAM_PROTO_ClearQueue [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 09 00 00 [18:45:09]Write to MH i2c: E2 08 00 28 0C 80 09 00 00 00 00 00 00 A6 [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 28 0C 00 90 00 A8 [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]SAM_PROTO_ClearQueue done [18:45:09]KKMCreateOFDPacket [18:45:09]OFDProtocolAddRootSTLVToBuf [18:45:09]FM_MakeSignedData [18:45:09]FM_MakeSignedData [18:45:09]SAM_PROTO_SignData [18:45:09]wFMCommunicate request_size=4 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 01 02 [18:45:09]Write to MH i2c: E2 08 00 29 0C 80 0D 01 02 00 00 00 00 AE [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:09]Read from MH i2c: E2 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 [18:45:09]MH_I2C_Read... [18:45:09]Read from MH i2c: E2 03 00 29 0C 00 90 00 A9 [18:45:09]RAPDU: 90 00 [18:45:09]wFMCommunicate OK [18:45:09]wFMCommunicate request_size=255 [18:45:09]MH_SAM_APDU [18:45:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 B5 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E0 02 00 35 04 06 00 BB [18:45:09]Write to MH i2c: E2 02 01 2A 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 B5 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E0 02 00 35 04 06 00 BB 00 00 BB [18:45:09]Write i2c OK [18:45:09]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 2A 0C 00 90 00 AA [18:45:10]RAPDU: 90 00 [18:45:10]wFMCommunicate OK [18:45:10]wFMCommunicate request_size=10 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 0D 02 02 05 8C C2 C4 FE A1 [18:45:10]Write to MH i2c: E2 0D 00 2B 0C 80 0D 02 02 05 00 8C C2 C4 FE A1 00 00 6C [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 03 00 2B 0C 00 90 00 AB [18:45:10]RAPDU: 90 00 [18:45:10]wFMCommunicate OK [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 0D 03 02 [18:45:10]Write to MH i2c: E2 08 00 2C 0C 80 0D 03 02 00 00 00 00 B3 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 0B 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 0B 00 2C 0C 00 F4 95 92 4B D7 B2 D8 C3 90 00 3E [18:45:10]RAPDU: F4 95 92 4B D7 B2 D8 C3 90 00 [18:45:10]wFMCommunicate OK [18:45:10]SAM_PROTO_SignData done [18:45:10]FM_MakeSignedData done [18:45:10]CreateOFDProtocolMessage [18:45:10]wFMCommunicate request_size=4 [18:45:10]MH_SAM_APDU [18:45:10]CAPDU: 80 11 00 00 [18:45:10]Write to MH i2c: E2 08 00 2D 0C 80 11 00 00 00 00 00 00 B3 [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:10]Read from MH i2c: E2 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 17 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: E2 17 00 2D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 01 [18:45:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:45:10]wFMCommunicate OK [18:45:10]CreateOFDProtocolMessage done [18:45:10]OFDSenderStorePacket 188441 [18:45:10]StoreOFDPacket docnum=188441 [18:45:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 11 07 01 69 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 B5 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E0 02 00 35 04 06 00 BB 8C C2 C4 FE A1 F4 95 92 4B D7 B2 D8 C3 [18:45:10]CheckFolder [18:45:10]dirname=/storage/ofd_packets [18:45:10]CheckFolder done [18:45:10]ProducePacketName [18:45:10]name=ofd_packets/00188441 [18:45:10]NVStorageSaveData ofd_packets/00188441 [18:45:10]File name is /storage/ofd_packets/00188441 [18:45:10]Write 301 bytes [18:45:10]NVStorageSaveData done [18:45:10]OFDSenderStorePacket done [18:45:10]KKMCreateOFDPacket done [18:45:10]NVStorageSaveData kkm_last_timestamp [18:45:10]File name is /storage/kkm_last_timestamp [18:45:10]Write 4 bytes [18:45:10]NVStorageSaveData done [18:45:10]ExternCall_PrintAddStr [18:45:10]wPrintStart [18:45:10]Write to MH i2c: 01 00 00 2E 0C 3A [18:45:10]Write i2c OK [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: 01 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: 01 07 00 [18:45:10]MH_I2C_Read... [18:45:10]Read from MH i2c: 01 07 00 2E 0C 00 00 00 00 00 FF 0F 4F [18:45:10]RasterBufferAndPrint [18:45:10]line Счет N : (1)210501 [18:45:10]line ИНН: 02508201610067 [18:45:10]line Контрольно-Кассовый Чек [18:45:10]line ПРОДАЖА [18:45:10]line ТРК (МРК, ГНК) : 12 [18:45:10]line Товар: 2710124130 [18:45:10]line Аи-92-К-3 [18:45:10]line 14.950 * 66.90 [18:45:10]line = 1000.16 [18:45:10]line НДС 12% НСП 1% [18:45:10]line > о реализуемом товаре [18:45:10]line ИТОГО: 1000.16 [18:45:10]line НСП 1% : 8.85 [18:45:10]line НДС 12% : 106.21 [18:45:10]line Наличными: 0.00 [18:45:10]line Безнал.: 1000.16 [18:45:10]line Место: АЗС № 86 "Партнер Нефть" [18:45:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:45:10]line СНО: Общий режим [18:45:10]line Чек 470 22.10.2024 18:45 [18:45:10]line Смена: 461 ФФД: 1.0 [18:45:10]line ЗНМ: 0300000155 [18:45:10]line РНМ: 0000000000100030 [18:45:10]line Версия ККМ: 001 [18:45:10]line Платежная система: Mbank [18:45:10]line ФМ: 0000000000965340 [18:45:10]line ФД: 188441 [18:45:10]line ФПД: 206213237505697 [18:45:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184509&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188441&fm=206213237505697&tin=02508201610067®Number=0000000000100030&sum=100016 [18:45:10]OFD Sender: Processing packet 188441 [packets to send 1062, broken 1061] [18:45:10]ProducePacketName [18:45:10]name=ofd_packets/00188441 [18:45:10]OFD Sender: To server: pG, [18:45:10]CommunicateWithHost lk.salyk.kg:30040 [18:45:10]ConnectInit lk.salyk.kg [18:45:10]written 0, free lines is 4095 [18:45:10]Connected sock=10 [18:45:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 11 07 01 69 B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 D6 01 00 00 F4 03 04 00 B5 F2 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E0 02 00 35 04 06 00 BB 8C C2 C4 FE A1 F4 95 92 4B D7 B2 D8 C3 [18:45:11]Write to MH i2c: 01 00 00 57 0C 63 [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: 01 07 00 57 0C 00 00 00 00 00 91 0C 07 [18:45:11]RasterBufferAndPrint [18:45:11]line [18:45:11]line [18:45:11]line [18:45:11]line [18:45:11]line [18:45:11]written 0, free lines is 3220 [18:45:11]MH_Cut [18:45:11]Write to MH i2c: D1 01 00 5E 0C 01 3C [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: D1 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: D1 01 00 [18:45:11]MH_I2C_Read... [18:45:11]Read from MH i2c: D1 01 00 5E 0C 00 3B [18:45:11]Write to MH i2c: 01 00 00 5F 0C 6B [18:45:11]Write i2c OK [18:45:11]MH_I2C_Read... [18:45:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D0 74 47 00 31 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 19 E0 02 00 F4 03 04 00 A2 9C 17 67 B6 04 01 00 00 D6 FB 07 43 2B EE 1D DF [18:45:11]CommunicateWithHost err = 0 [18:45:11]CheckOFDResponse [18:45:11]1017 (14) - 77093643461234 [18:45:11]1041 (16) - 0000000000965340 [18:45:11]1040 (4) - 188441 [18:45:11]1012 (4) - 22.10.2024 12:37 [18:45:11]1206 (1) - 0 [18:45:11]OFD Sender: Remove packet 188441 [18:45:11]ProducePacketName [18:45:11]name=ofd_packets/00188441 [18:45:11]NVStorageDeleteData [18:45:11]OFD Sender: No OFD packet to send [18:45:12]*** Cut start [18:45:12]*** Partial cut [18:45:12]*** CUTSNS_PIN = 1 [18:45:12]*** CUTSNS_PIN = 0 [18:45:12]*** Brake cut motor [18:45:12]Read from MH i2c: 01 [18:45:12]MH_I2C_Read... [18:45:12]*** Stop cut motor [18:45:12]*** Cut end [18:45:12]Read from MH i2c: 01 07 00 [18:45:12]MH_I2C_Read... [18:45:12]Read from MH i2c: 01 07 00 5F 0C 00 00 00 00 00 FF 0F 80 [18:45:12]process_action close_receipt done [18:45:12]requested_data is exist [18:45:12]produce_requested_data [18:45:12]requested_item fm.sn is exist - process it [18:45:12]wFMCommunicate request_size=4 [18:45:12]MH_SAM_APDU [18:45:12]CAPDU: 80 11 00 00 [18:45:12]Write to MH i2c: E2 08 00 60 0C 80 11 00 00 00 00 00 00 E6 [18:45:12]Write i2c OK [18:45:12]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 17 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 17 00 60 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [18:45:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:45:13]wFMCommunicate OK [18:45:13]requested_item fd.num is exist - process it [18:45:13]SAM_PROTO_GetFieldsCounters [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 00 00 [18:45:13]Write to MH i2c: E2 08 00 61 0C 80 13 00 00 00 00 00 00 E9 [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 62 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 62 00 61 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 3E [18:45:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 19 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D6 01 00 00 5E 04 04 00 D6 01 00 00 57 04 04 00 D7 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetFieldsCounters done [18:45:13]requested_item shift.num is exist - process it [18:45:13]requested_item shift.opened is exist - process it [18:45:13]req_shift_opened [18:45:13]FM_GetShiftState [18:45:13]SAM_PROTO_GetShiftState [18:45:13]wFMCommunicate request_size=4 [18:45:13]MH_SAM_APDU [18:45:13]CAPDU: 80 13 01 00 [18:45:13]Write to MH i2c: E2 08 00 62 0C 80 13 01 00 00 00 00 00 EB [18:45:13]Write i2c OK [18:45:13]MH_I2C_Read... [18:45:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:13]Read from MH i2c: E2 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 [18:45:13]MH_I2C_Read... [18:45:13]Read from MH i2c: E2 0E 00 62 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E0 [18:45:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:45:13]wFMCommunicate OK [18:45:13]SAM_PROTO_GetShiftState done [18:45:13]FM_GetShiftState done [18:45:13]req_shift_opened done [18:45:13]requested_item shift.open_date is exist - process it [18:45:13]req_shift_open_date [18:45:13]req_shift_open_date done [18:45:13]produce_requested_data done [18:45:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188441,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:45:13]process_action_free close_receipt [18:45:13]json_value_free [18:45:13]json_value_free done [18:45:13]process_json_proto returns [18:45:13]Send response to host [18:45:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188441,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:45:13]free response buf [18:45:13]execute_script done [18:45:13]execute_script returns [18:45:13]free content buf [18:45:13]Sock 9.Close socket [18:45:13]Sock 9.Thread stoped [18:45:16]OFD Sender: No OFD packet to send [18:45:21]OFD Sender: No OFD packet to send [18:45:26]OFD Sender: No OFD packet to send [18:45:31]OFD Sender: No OFD packet to send [18:45:36]OFD Sender: No OFD packet to send [18:45:41]OFD Sender: No OFD packet to send [18:45:46]OFD Sender: No OFD packet to send [18:45:51]OFD Sender: No OFD packet to send [18:45:56]OFD Sender: No OFD packet to send [18:46:01]OFD Sender: No OFD packet to send [18:46:07]OFD Sender: No OFD packet to send [18:46:12]OFD Sender: No OFD packet to send [18:46:17]OFD Sender: No OFD packet to send [18:46:22]OFD Sender: No OFD packet to send [18:46:27]OFD Sender: No OFD packet to send [18:46:32]OFD Sender: No OFD packet to send [18:46:37]OFD Sender: No OFD packet to send [18:46:42]OFD Sender: No OFD packet to send [18:46:47]OFD Sender: No OFD packet to send [18:46:52]OFD Sender: No OFD packet to send [18:46:57]OFD Sender: No OFD packet to send [18:47:02]OFD Sender: No OFD packet to send [18:47:07]OFD Sender: No OFD packet to send [18:47:12]OFD Sender: No OFD packet to send [18:47:17]OFD Sender: No OFD packet to send [18:47:22]OFD Sender: No OFD packet to send [18:47:27]OFD Sender: No OFD packet to send [18:47:32]OFD Sender: No OFD packet to send [18:47:36]accept exits with 7 [18:47:36]New connection [18:47:36]New thread 3066756452 created [18:47:36]Thread 3066613092 joined [18:47:36]Waiting for new connection... [18:47:36] Sock 7.Parse request [18:47:36]Sock 7.Check first char [18:47:36]Sock 7.First char is OK [18:47:36]request: POST /json_proto HTTP/1.0 [18:47:36]Method: POST [18:47:36]URL: /json_proto [18:47:36]Method is POST - this is cgi request [18:47:36]url: /json_proto [18:47:36]query_string will be loaded in cgi processing [18:47:36]execute_cgi json_proto POST (null) [18:47:36]execute_cgi path=json_proto method=POST [18:47:36]POST find Content-Length [18:47:36]Host: 172.17.42.131:8080 [18:47:36]Content-Length: 688 [18:47:36]Content-Type: application/json [18:47:36] [18:47:36]POST finish read [18:47:36]Found Content-Length = 688 [18:47:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:47:36]execute_script... [18:47: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)210502", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [18:47:36]POST & json_proto [18:47:36]process_json_proto [18:47:36]json parsed OK: [18:47:36]protocol is kg_v1.0 [18:47:36]action value=close_receipt [18:47:36]process_action close_receipt [18:47:36]cmd_close_receipt [18:47:36]MH_GetDate [18:47:36]Write to MH i2c: F0 00 00 63 0C 5E [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: F0 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: F0 09 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: F0 09 00 63 0C 00 49 F3 17 67 A0 18 CA 66 09 [18:47:36]GetLastDocTimeStamp 1729622709 [18:47:36]current date 1729622857 [18:47:36]FM_GetShiftState [18:47:36]SAM_PROTO_GetShiftState [18:47:36]wFMCommunicate request_size=4 [18:47:36]MH_SAM_APDU [18:47:36]CAPDU: 80 13 01 00 [18:47:36]Write to MH i2c: E2 08 00 64 0C 80 13 01 00 00 00 00 00 ED [18:47:36]Write i2c OK [18:47:36]MH_I2C_Read... [18:47:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:36]Read from MH i2c: E2 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: E2 0E 00 [18:47:36]MH_I2C_Read... [18:47:36]Read from MH i2c: E2 0E 00 64 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E2 [18:47:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:47:36]wFMCommunicate OK [18:47:36]SAM_PROTO_GetShiftState done [18:47:36]FM_GetShiftState done [18:47:36]opened in 1729556094 [18:47:36]opened+sec_in_day 1729642494 [18:47:36]quantity*price = 200025 [18:47:36]sum+1 = 200026 [18:47:36]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 471 22.10.2024 18:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188442 ФПД: 270066489689526 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188442&fm=270066489689526&tin=02508201610067®Number=0000000000100030&sum=200000 [18:47:37]StoreToDocumentArchive [18:47:37]shift 461 fd 188442 [18:47:37]save to /storage/0461/doc_00188442 [18:47:37]save last doc name /storage/0461/doc_00188442 to /storage/kkm_last_doc_name [18:47:37]save OK [18:47:37]Clear old archive folders... [18:47:37]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:47:37]tlvbuf is B6D78010 [18:47:37]SAM_PROTO_ClearQueue [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 09 00 00 [18:47:37]Write to MH i2c: E2 08 00 71 0C 80 09 00 00 00 00 00 00 EF [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 03 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [18:47:37]RAPDU: 90 00 [18:47:37]wFMCommunicate OK [18:47:37]SAM_PROTO_ClearQueue done [18:47:37]KKMCreateOFDPacket [18:47:37]OFDProtocolAddRootSTLVToBuf [18:47:37]FM_MakeSignedData [18:47:37]FM_MakeSignedData [18:47:37]SAM_PROTO_SignData [18:47:37]wFMCommunicate request_size=4 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 0D 01 02 [18:47:37]Write to MH i2c: E2 08 00 72 0C 80 0D 01 02 00 00 00 00 F7 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:47:37]Read from MH i2c: E2 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 03 00 [18:47:37]MH_I2C_Read... [18:47:37]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [18:47:37]RAPDU: 90 00 [18:47:37]wFMCommunicate OK [18:47:37]wFMCommunicate request_size=255 [18:47:37]MH_SAM_APDU [18:47:37]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 D7 01 00 00 F4 03 04 00 49 F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E0 02 [18:47:37]Write to MH i2c: E2 02 01 73 0C 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 D7 01 00 00 F4 03 04 00 49 F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E0 02 00 00 F4 [18:47:37]Write i2c OK [18:47:37]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 03 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 03 00 73 0C 00 90 00 F3 [18:47:38]RAPDU: 90 00 [18:47:38]wFMCommunicate OK [18:47:38]wFMCommunicate request_size=16 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 F5 9F C1 2F 05 B6 [18:47:38]Write to MH i2c: E2 13 00 74 0C 80 0D 02 02 0B 00 00 35 04 06 00 F5 9F C1 2F 05 B6 00 00 8E [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 03 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [18:47:38]RAPDU: 90 00 [18:47:38]wFMCommunicate OK [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 0D 03 02 [18:47:38]Write to MH i2c: E2 08 00 75 0C 80 0D 03 02 00 00 00 00 FC [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0B 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 0B 00 75 0C 00 34 50 0F 42 14 B9 86 A5 90 00 CA [18:47:38]RAPDU: 34 50 0F 42 14 B9 86 A5 90 00 [18:47:38]wFMCommunicate OK [18:47:38]SAM_PROTO_SignData done [18:47:38]FM_MakeSignedData done [18:47:38]CreateOFDProtocolMessage [18:47:38]wFMCommunicate request_size=4 [18:47:38]MH_SAM_APDU [18:47:38]CAPDU: 80 11 00 00 [18:47:38]Write to MH i2c: E2 08 00 76 0C 80 11 00 00 00 00 00 00 FC [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:38]Read from MH i2c: E2 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 17 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: E2 17 00 76 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [18:47:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:47:38]wFMCommunicate OK [18:47:38]CreateOFDProtocolMessage done [18:47:38]OFDSenderStorePacket 188442 [18:47:38]StoreOFDPacket docnum=188442 [18:47:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C0 F6 0D 01 2C B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 D7 01 00 00 F4 03 04 00 49 F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E0 02 00 35 04 06 00 F5 9F C1 2F 05 B6 34 50 0F 42 14 B9 86 A5 [18:47:38]CheckFolder [18:47:38]dirname=/storage/ofd_packets [18:47:38]CheckFolder done [18:47:38]ProducePacketName [18:47:38]name=ofd_packets/00188442 [18:47:38]NVStorageSaveData ofd_packets/00188442 [18:47:38]File name is /storage/ofd_packets/00188442 [18:47:38]Write 307 bytes [18:47:38]NVStorageSaveData done [18:47:38]OFDSenderStorePacket done [18:47:38]KKMCreateOFDPacket done [18:47:38]NVStorageSaveData kkm_last_timestamp [18:47:38]File name is /storage/kkm_last_timestamp [18:47:38]Write 4 bytes [18:47:38]NVStorageSaveData done [18:47:38]ExternCall_PrintAddStr [18:47:38]wPrintStart [18:47:38]Write to MH i2c: 01 00 00 77 0C 83 [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 07 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 07 00 77 0C 00 00 00 00 00 FF 0F 98 [18:47:38]RasterBufferAndPrint [18:47:38]line Счет N : (1)210502 [18:47:38]line ИНН: 02508201610067 [18:47:38]line Контрольно-Кассовый Чек [18:47:38]line ПРОДАЖА [18:47:38]line ТРК (МРК, ГНК) : 41 [18:47:38]line Товар: 2710194210 [18:47:38]line D-ENERGY ДТ-К-5 [18:47:38]line 25.910 * 77.20 [18:47:38]line = 2000.25 [18:47:38]line НДС 12% НСП 1% [18:47:38]line > о реализуемом товаре [18:47:38]line ОКРУГЛЕНИЕ: -0.25 [18:47:38]line ИТОГО: 2000.00 [18:47:38]line Внесено: 2000.00 [18:47:38]line СДАЧА: 0.00 [18:47:38]line НСП 1% : 17.70 [18:47:38]line НДС 12% : 212.42 [18:47:38]line Наличными: 2000.00 [18:47:38]line Безнал.: 0.00 [18:47:38]line Место: АЗС № 86 "Партнер Нефть" [18:47:38]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:47:38]line СНО: Общий режим [18:47:38]line Чек 471 22.10.2024 18:47 [18:47:38]line Смена: 461 ФФД: 1.0 [18:47:38]line ЗНМ: 0300000155 [18:47:38]line РНМ: 0000000000100030 [18:47:38]line Версия ККМ: 001 [18:47:38]line ФМ: 0000000000965340 [18:47:38]line ФД: 188442 [18:47:38]line ФПД: 270066489689526 [18:47:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T184737&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188442&fm=270066489689526&tin=02508201610067®Number=0000000000100030&sum=200000 [18:47:38]OFD Sender: Processing packet 188442 [packets to send 1062, broken 1061] [18:47:38]ProducePacketName [18:47:38]name=ofd_packets/00188442 [18:47:38]OFD Sender: To server: pG, [18:47:38]CommunicateWithHost lk.salyk.kg:30040 [18:47:38]ConnectInit lk.salyk.kg [18:47:38]written 0, free lines is 4095 [18:47:38]Connected sock=10 [18:47:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C0 F6 0D 01 2C B8 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 D7 01 00 00 F4 03 04 00 49 F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E0 02 00 35 04 06 00 F5 9F C1 2F 05 B6 34 50 0F 42 14 B9 86 A5 [18:47:38]Write to MH i2c: 01 00 00 A2 0C AE [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 07 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: 01 07 00 A2 0C 00 00 00 00 00 6A 0C 2B [18:47:38]RasterBufferAndPrint [18:47:38]line [18:47:38]line [18:47:38]line [18:47:38]line [18:47:38]line [18:47:38]written 0, free lines is 3181 [18:47:38]MH_Cut [18:47:38]Write to MH i2c: D1 01 00 A9 0C 01 87 [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: D1 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: D1 01 00 [18:47:38]MH_I2C_Read... [18:47:38]Read from MH i2c: D1 01 00 A9 0C 00 86 [18:47:38]Write to MH i2c: 01 00 00 AA 0C B6 [18:47:38]Write i2c OK [18:47:38]MH_I2C_Read... [18:47:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C6 7F 47 00 68 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1A E0 02 00 F4 03 04 00 36 9D 17 67 B6 04 01 00 00 5B 42 A1 11 0E AC 93 06 [18:47:38]CommunicateWithHost err = 0 [18:47:38]CheckOFDResponse [18:47:38]1017 (14) - 77093643461234 [18:47:38]1041 (16) - 0000000000965340 [18:47:38]1040 (4) - 188442 [18:47:38]1012 (4) - 22.10.2024 12:40 [18:47:38]1206 (1) - 0 [18:47:38]OFD Sender: Remove packet 188442 [18:47:38]ProducePacketName [18:47:38]name=ofd_packets/00188442 [18:47:38]NVStorageDeleteData [18:47:39]OFD Sender: No OFD packet to send [18:47:39]*** Cut start [18:47:39]*** Partial cut [18:47:39]*** CUTSNS_PIN = 1 [18:47:39]*** CUTSNS_PIN = 0 [18:47:40]*** Brake cut motor [18:47:40]Read from MH i2c: 01 [18:47:40]MH_I2C_Read... [18:47:40]*** Stop cut motor [18:47:40]*** Cut end [18:47:40]Read from MH i2c: 01 07 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: 01 07 00 AA 0C 00 00 00 00 00 FF 0F CB [18:47:40]process_action close_receipt done [18:47:40]requested_data is exist [18:47:40]produce_requested_data [18:47:40]requested_item fm.sn is exist - process it [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 11 00 00 [18:47:40]Write to MH i2c: E2 08 00 AB 0C 80 11 00 00 00 00 00 00 31 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 17 00 AB 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [18:47:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:47:40]wFMCommunicate OK [18:47:40]requested_item fd.num is exist - process it [18:47:40]SAM_PROTO_GetFieldsCounters [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 13 00 00 [18:47:40]Write to MH i2c: E2 08 00 AC 0C 80 13 00 00 00 00 00 00 34 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 62 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 62 00 AC 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 8D [18:47:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D7 01 00 00 5E 04 04 00 D7 01 00 00 57 04 04 00 D8 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_GetFieldsCounters done [18:47:40]requested_item shift.num is exist - process it [18:47:40]requested_item shift.opened is exist - process it [18:47:40]req_shift_opened [18:47:40]FM_GetShiftState [18:47:40]SAM_PROTO_GetShiftState [18:47:40]wFMCommunicate request_size=4 [18:47:40]MH_SAM_APDU [18:47:40]CAPDU: 80 13 01 00 [18:47:40]Write to MH i2c: E2 08 00 AD 0C 80 13 01 00 00 00 00 00 36 [18:47:40]Write i2c OK [18:47:40]MH_I2C_Read... [18:47:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:47:40]Read from MH i2c: E2 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0E 00 [18:47:40]MH_I2C_Read... [18:47:40]Read from MH i2c: E2 0E 00 AD 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2B [18:47:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:47:40]wFMCommunicate OK [18:47:40]SAM_PROTO_GetShiftState done [18:47:40]FM_GetShiftState done [18:47:40]req_shift_opened done [18:47:40]requested_item shift.open_date is exist - process it [18:47:40]req_shift_open_date [18:47:40]req_shift_open_date done [18:47:40]produce_requested_data done [18:47:40]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188442,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:47:40]process_action_free close_receipt [18:47:40]json_value_free [18:47:40]json_value_free done [18:47:40]process_json_proto returns [18:47:40]Send response to host [18:47:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188442,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:47:40]free response buf [18:47:40]execute_script done [18:47:40]execute_script returns [18:47:40]free content buf [18:47:40]Sock 7.Close socket [18:47:40]Sock 7.Thread stoped [18:47:44]OFD Sender: No OFD packet to send [18:47:49]OFD Sender: No OFD packet to send [18:47:54]OFD Sender: No OFD packet to send [18:47:59]OFD Sender: No OFD packet to send [18:48:04]OFD Sender: No OFD packet to send [18:48:09]OFD Sender: No OFD packet to send [18:48:14]OFD Sender: No OFD packet to send [18:48:19]OFD Sender: No OFD packet to send [18:48:24]OFD Sender: No OFD packet to send [18:48:29]OFD Sender: No OFD packet to send [18:48:34]OFD Sender: No OFD packet to send [18:48:39]OFD Sender: No OFD packet to send [18:48:44]OFD Sender: No OFD packet to send [18:48:49]OFD Sender: No OFD packet to send [18:48:54]OFD Sender: No OFD packet to send [18:48:59]OFD Sender: No OFD packet to send [18:49:04]OFD Sender: No OFD packet to send [18:49:09]OFD Sender: No OFD packet to send [18:49:14]OFD Sender: No OFD packet to send [18:49:19]OFD Sender: No OFD packet to send [18:49:24]OFD Sender: No OFD packet to send [18:49:29]OFD Sender: No OFD packet to send [18:49:34]OFD Sender: No OFD packet to send [18:49:39]OFD Sender: No OFD packet to send [18:49:44]OFD Sender: No OFD packet to send [18:49:49]OFD Sender: No OFD packet to send [18:49:54]OFD Sender: No OFD packet to send [18:49:59]OFD Sender: No OFD packet to send [18:50:05]OFD Sender: No OFD packet to send [18:50:05]accept exits with 9 [18:50:05]New connection [18:50:05]New thread 3066613092 created [18:50:05]Thread 3066756452 joined [18:50:05]Waiting for new connection... [18:50:05] Sock 9.Parse request [18:50:05]Sock 9.Check first char [18:50:05]Sock 9.First char is OK [18:50:05]request: POST /json_proto HTTP/1.0 [18:50:05]Method: POST [18:50:05]URL: /json_proto [18:50:05]Method is POST - this is cgi request [18:50:05]url: /json_proto [18:50:05]query_string will be loaded in cgi processing [18:50:05]execute_cgi json_proto POST (null) [18:50:05]execute_cgi path=json_proto method=POST [18:50:05]POST find Content-Length [18:50:05]Host: 172.17.42.131:8080 [18:50:05]Content-Length: 682 [18:50:05]Content-Type: application/json [18:50:05] [18:50:05]POST finish read [18:50:05]Found Content-Length = 682 [18:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:50:05]execute_script... [18:50: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)210503", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [18:50:05]POST & json_proto [18:50:05]process_json_proto [18:50:05]json parsed OK: [18:50:05]protocol is kg_v1.0 [18:50:05]action value=close_receipt [18:50:05]process_action close_receipt [18:50:05]cmd_close_receipt [18:50:05]MH_GetDate [18:50:05]Write to MH i2c: F0 00 00 AE 0C A9 [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: F0 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: F0 09 00 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: F0 09 00 AE 0C 00 DE F3 17 67 A0 18 CA 66 E9 [18:50:05]GetLastDocTimeStamp 1729622857 [18:50:05]current date 1729623006 [18:50:05]FM_GetShiftState [18:50:05]SAM_PROTO_GetShiftState [18:50:05]wFMCommunicate request_size=4 [18:50:05]MH_SAM_APDU [18:50:05]CAPDU: 80 13 01 00 [18:50:05]Write to MH i2c: E2 08 00 AF 0C 80 13 01 00 00 00 00 00 38 [18:50:05]Write i2c OK [18:50:05]MH_I2C_Read... [18:50:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:05]Read from MH i2c: E2 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: E2 0E 00 [18:50:05]MH_I2C_Read... [18:50:05]Read from MH i2c: E2 0E 00 AF 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2D [18:50:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:50:05]wFMCommunicate OK [18:50:05]SAM_PROTO_GetShiftState done [18:50:05]FM_GetShiftState done [18:50:05]opened in 1729556094 [18:50:05]opened+sec_in_day 1729642494 [18:50:05]quantity*price = 100021 [18:50:05]sum+1 = 100023 [18:50: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 472 22.10.2024 18:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188443 ФПД: 70280136255495 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188443&fm=70280136255495&tin=02508201610067®Number=0000000000100030&sum=100000 [18:50:06]StoreToDocumentArchive [18:50:06]shift 461 fd 188443 [18:50:06]save to /storage/0461/doc_00188443 [18:50:06]save last doc name /storage/0461/doc_00188443 to /storage/kkm_last_doc_name [18:50:06]save OK [18:50:06]Clear old archive folders... [18:50:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:50:06]tlvbuf is 0094C110 [18:50:06]SAM_PROTO_ClearQueue [18:50:06]wFMCommunicate request_size=4 [18:50:06]MH_SAM_APDU [18:50:06]CAPDU: 80 09 00 00 [18:50:06]Write to MH i2c: E2 08 00 BC 0C 80 09 00 00 00 00 00 00 3A [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:50:06]Read from MH i2c: E2 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 BC 0C 00 90 00 3C [18:50:06]RAPDU: 90 00 [18:50:06]wFMCommunicate OK [18:50:06]SAM_PROTO_ClearQueue done [18:50:06]KKMCreateOFDPacket [18:50:06]OFDProtocolAddRootSTLVToBuf [18:50:06]FM_MakeSignedData [18:50:06]FM_MakeSignedData [18:50:06]SAM_PROTO_SignData [18:50:06]wFMCommunicate request_size=4 [18:50:06]MH_SAM_APDU [18:50:06]CAPDU: 80 0D 01 02 [18:50:06]Write to MH i2c: E2 08 00 BD 0C 80 0D 01 02 00 00 00 00 42 [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:50:06]Read from MH i2c: E2 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 [18:50:06]MH_I2C_Read... [18:50:06]Read from MH i2c: E2 03 00 BD 0C 00 90 00 3D [18:50:06]RAPDU: 90 00 [18:50:06]wFMCommunicate OK [18:50:06]wFMCommunicate request_size=255 [18:50:06]MH_SAM_APDU [18:50: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 D8 01 00 00 F4 03 04 00 DE F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E0 02 00 35 04 06 00 3F [18:50:06]Write to MH i2c: E2 02 01 BE 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 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 D8 01 00 00 F4 03 04 00 DE F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E0 02 00 35 04 06 00 3F 00 00 04 [18:50:06]Write i2c OK [18:50:06]MH_I2C_Read... [18:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:07]Read from MH i2c: E2 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 03 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 03 00 BE 0C 00 90 00 3E [18:50:07]RAPDU: 90 00 [18:50:07]wFMCommunicate OK [18:50:07]wFMCommunicate request_size=10 [18:50:07]MH_SAM_APDU [18:50:07]CAPDU: 80 0D 02 02 05 EB 5E 8E 68 07 [18:50:07]Write to MH i2c: E2 0D 00 BF 0C 80 0D 02 02 05 00 EB 5E 8E 68 07 00 00 95 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:50:07]Read from MH i2c: E2 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 03 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 03 00 BF 0C 00 90 00 3F [18:50:07]RAPDU: 90 00 [18:50:07]wFMCommunicate OK [18:50:07]wFMCommunicate request_size=4 [18:50:07]MH_SAM_APDU [18:50:07]CAPDU: 80 0D 03 02 [18:50:07]Write to MH i2c: E2 08 00 C0 0C 80 0D 03 02 00 00 00 00 47 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:50:07]Read from MH i2c: E2 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 0B 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 0B 00 C0 0C 00 BE F4 68 0C 62 D0 87 20 90 00 47 [18:50:07]RAPDU: BE F4 68 0C 62 D0 87 20 90 00 [18:50:07]wFMCommunicate OK [18:50:07]SAM_PROTO_SignData done [18:50:07]FM_MakeSignedData done [18:50:07]CreateOFDProtocolMessage [18:50:07]wFMCommunicate request_size=4 [18:50:07]MH_SAM_APDU [18:50:07]CAPDU: 80 11 00 00 [18:50:07]Write to MH i2c: E2 08 00 C1 0C 80 11 00 00 00 00 00 00 47 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:07]Read from MH i2c: E2 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 17 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: E2 17 00 C1 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [18:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:50:07]wFMCommunicate OK [18:50:07]CreateOFDProtocolMessage done [18:50:07]OFDSenderStorePacket 188443 [18:50:07]StoreOFDPacket docnum=188443 [18:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 29 BB 07 01 1A 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 01 00 00 F4 03 04 00 DE F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E0 02 00 35 04 06 00 3F EB 5E 8E 68 07 BE F4 68 0C 62 D0 87 20 [18:50:07]CheckFolder [18:50:07]dirname=/storage/ofd_packets [18:50:07]CheckFolder done [18:50:07]ProducePacketName [18:50:07]name=ofd_packets/00188443 [18:50:07]NVStorageSaveData ofd_packets/00188443 [18:50:07]File name is /storage/ofd_packets/00188443 [18:50:07]Write 301 bytes [18:50:07]NVStorageSaveData done [18:50:07]OFDSenderStorePacket done [18:50:07]KKMCreateOFDPacket done [18:50:07]NVStorageSaveData kkm_last_timestamp [18:50:07]File name is /storage/kkm_last_timestamp [18:50:07]Write 4 bytes [18:50:07]NVStorageSaveData done [18:50:07]ExternCall_PrintAddStr [18:50:07]wPrintStart [18:50:07]Write to MH i2c: 01 00 00 C2 0C CE [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 C2 0C 00 00 00 00 00 FF 0F E3 [18:50:07]RasterBufferAndPrint [18:50:07]line Счет N : (1)210503 [18:50:07]line ИНН: 02508201610067 [18:50:07]line Контрольно-Кассовый Чек [18:50:07]line ПРОДАЖА [18:50:07]line ТРК (МРК, ГНК) : 13 [18:50:07]line Товар: 2710124500 [18:50:07]line Аи-95-К-3 [18:50:07]line 13.480 * 74.20 [18:50:07]line = 1000.22 [18:50:07]line НДС 12% НСП 1% [18:50:07]line > о реализуемом товаре [18:50:07]line ОКРУГЛЕНИЕ: -0.22 [18:50:07]line ИТОГО: 1000.00 [18:50:07]line Внесено: 1000.00 [18:50:07]line СДАЧА: 0.00 [18:50:07]line НСП 1% : 8.85 [18:50:07]line НДС 12% : 106.22 [18:50:07]line Наличными: 1000.00 [18:50:07]line Безнал.: 0.00 [18:50:07]line Место: АЗС № 86 "Партнер Нефть" [18:50:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:50:07]line СНО: Общий режим [18:50:07]line Чек 472 22.10.2024 18:50 [18:50:07]line Смена: 461 ФФД: 1.0 [18:50:07]line ЗНМ: 0300000155 [18:50:07]line РНМ: 0000000000100030 [18:50:07]line Версия ККМ: 001 [18:50:07]line ФМ: 0000000000965340 [18:50:07]line ФД: 188443 [18:50:07]line ФПД: 70280136255495 [18:50:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188443&fm=70280136255495&tin=02508201610067®Number=0000000000100030&sum=100000 [18:50:07]written 0, free lines is 4095 [18:50:07]OFD Sender: Processing packet 188443 [packets to send 1062, broken 1061] [18:50:07]ProducePacketName [18:50:07]name=ofd_packets/00188443 [18:50:07]OFD Sender: To server: pG, [18:50:07]CommunicateWithHost lk.salyk.kg:30040 [18:50:07]ConnectInit lk.salyk.kg [18:50:07]Connected sock=10 [18:50:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 29 BB 07 01 1A 25 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 D8 01 00 00 F4 03 04 00 DE F3 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E0 02 00 35 04 06 00 3F EB 5E 8E 68 07 BE F4 68 0C 62 D0 87 20 [18:50:07]Write to MH i2c: 01 00 00 ED 0C F9 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: 01 07 00 ED 0C 00 00 00 00 00 60 0C 6C [18:50:07]RasterBufferAndPrint [18:50:07]line [18:50:07]line [18:50:07]line [18:50:07]line [18:50:07]line [18:50:07]written 0, free lines is 3171 [18:50:07]MH_Cut [18:50:07]Write to MH i2c: D1 01 00 F4 0C 01 D2 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: D1 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: D1 01 00 [18:50:07]MH_I2C_Read... [18:50:07]Read from MH i2c: D1 01 00 F4 0C 00 D1 [18:50:07]Write to MH i2c: 01 00 00 F5 0C 01 [18:50:07]Write i2c OK [18:50:07]MH_I2C_Read... [18:50:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FC 02 47 00 5B 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1B E0 02 00 F4 03 04 00 CB 9D 17 67 B6 04 01 00 00 04 B4 31 08 07 79 A5 2F [18:50:07]CommunicateWithHost err = 0 [18:50:07]CheckOFDResponse [18:50:07]1017 (14) - 77093643461234 [18:50:07]1041 (16) - 0000000000965340 [18:50:07]1040 (4) - 188443 [18:50:07]1012 (4) - 22.10.2024 12:42 [18:50:07]1206 (1) - 0 [18:50:07]OFD Sender: Remove packet 188443 [18:50:07]ProducePacketName [18:50:07]name=ofd_packets/00188443 [18:50:07]NVStorageDeleteData [18:50:08]OFD Sender: No OFD packet to send [18:50:08]*** Cut start [18:50:08]*** Partial cut [18:50:08]*** CUTSNS_PIN = 1 [18:50:08]*** CUTSNS_PIN = 0 [18:50:09]*** Brake cut motor [18:50:09]Read from MH i2c: 01 [18:50:09]MH_I2C_Read... [18:50:09]*** Stop cut motor [18:50:09]*** Cut end [18:50:09]Read from MH i2c: 01 07 00 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: 01 07 00 F5 0C 00 00 00 00 00 FF 0F 16 [18:50:09]process_action close_receipt done [18:50:09]requested_data is exist [18:50:09]produce_requested_data [18:50:09]requested_item fm.sn is exist - process it [18:50:09]wFMCommunicate request_size=4 [18:50:09]MH_SAM_APDU [18:50:09]CAPDU: 80 11 00 00 [18:50:09]Write to MH i2c: E2 08 00 F6 0C 80 11 00 00 00 00 00 00 7C [18:50:09]Write i2c OK [18:50:09]MH_I2C_Read... [18:50:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:50:09]Read from MH i2c: E2 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: E2 17 00 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: E2 17 00 F6 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CA [18:50:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:50:09]wFMCommunicate OK [18:50:09]requested_item fd.num is exist - process it [18:50:09]SAM_PROTO_GetFieldsCounters [18:50:09]wFMCommunicate request_size=4 [18:50:09]MH_SAM_APDU [18:50:09]CAPDU: 80 13 00 00 [18:50:09]Write to MH i2c: E2 08 00 F7 0C 80 13 00 00 00 00 00 00 7F [18:50:09]Write i2c OK [18:50:09]MH_I2C_Read... [18:50:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:50:09]Read from MH i2c: E2 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: E2 62 00 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: E2 62 00 F7 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 DC [18:50:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D8 01 00 00 5E 04 04 00 D8 01 00 00 57 04 04 00 D9 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:50:09]wFMCommunicate OK [18:50:09]SAM_PROTO_GetFieldsCounters done [18:50:09]requested_item shift.num is exist - process it [18:50:09]requested_item shift.opened is exist - process it [18:50:09]req_shift_opened [18:50:09]FM_GetShiftState [18:50:09]SAM_PROTO_GetShiftState [18:50:09]wFMCommunicate request_size=4 [18:50:09]MH_SAM_APDU [18:50:09]CAPDU: 80 13 01 00 [18:50:09]Write to MH i2c: E2 08 00 F8 0C 80 13 01 00 00 00 00 00 81 [18:50:09]Write i2c OK [18:50:09]MH_I2C_Read... [18:50:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:50:09]Read from MH i2c: E2 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: E2 0E 00 [18:50:09]MH_I2C_Read... [18:50:09]Read from MH i2c: E2 0E 00 F8 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 76 [18:50:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:50:09]wFMCommunicate OK [18:50:09]SAM_PROTO_GetShiftState done [18:50:09]FM_GetShiftState done [18:50:09]req_shift_opened done [18:50:09]requested_item shift.open_date is exist - process it [18:50:09]req_shift_open_date [18:50:09]req_shift_open_date done [18:50:09]produce_requested_data done [18:50:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188443,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:50:09]process_action_free close_receipt [18:50:09]json_value_free [18:50:09]json_value_free done [18:50:09]process_json_proto returns [18:50:09]Send response to host [18:50:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188443,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:50:09]free response buf [18:50:09]execute_script done [18:50:09]execute_script returns [18:50:09]free content buf [18:50:09]Sock 9.Close socket [18:50:09]Sock 9.Thread stoped [18:50:13]OFD Sender: No OFD packet to send [18:50:18]OFD Sender: No OFD packet to send [18:50:23]OFD Sender: No OFD packet to send [18:50:28]OFD Sender: No OFD packet to send [18:50:33]OFD Sender: No OFD packet to send [18:50:38]OFD Sender: No OFD packet to send [18:50:43]OFD Sender: No OFD packet to send [18:50:48]OFD Sender: No OFD packet to send [18:50:53]OFD Sender: No OFD packet to send [18:50:58]OFD Sender: No OFD packet to send [18:51:03]OFD Sender: No OFD packet to send [18:51:08]OFD Sender: No OFD packet to send [18:51:13]OFD Sender: No OFD packet to send [18:51:18]OFD Sender: No OFD packet to send [18:51:23]OFD Sender: No OFD packet to send [18:51:28]OFD Sender: No OFD packet to send [18:51:33]OFD Sender: No OFD packet to send [18:51:38]OFD Sender: No OFD packet to send [18:51:43]OFD Sender: No OFD packet to send [18:51:48]OFD Sender: No OFD packet to send [18:51:53]OFD Sender: No OFD packet to send [18:51:58]OFD Sender: No OFD packet to send [18:52:03]OFD Sender: No OFD packet to send [18:52:08]OFD Sender: No OFD packet to send [18:52:13]OFD Sender: No OFD packet to send [18:52:18]OFD Sender: No OFD packet to send [18:52:24]OFD Sender: No OFD packet to send [18:52:29]OFD Sender: No OFD packet to send [18:52:34]OFD Sender: No OFD packet to send [18:52:39]OFD Sender: No OFD packet to send [18:52:44]OFD Sender: No OFD packet to send [18:52:49]OFD Sender: No OFD packet to send [18:52:54]OFD Sender: No OFD packet to send [18:52:59]OFD Sender: No OFD packet to send [18:53:04]OFD Sender: No OFD packet to send [18:53:09]OFD Sender: No OFD packet to send [18:53:14]OFD Sender: No OFD packet to send [18:53:19]OFD Sender: No OFD packet to send [18:53:19]accept exits with 7 [18:53:19]New connection [18:53:19]New thread 3066756452 created [18:53:19]Thread 3066613092 joined [18:53:19]Waiting for new connection... [18:53:19] Sock 7.Parse request [18:53:19]Sock 7.Check first char [18:53:19]Sock 7.First char is OK [18:53:19]request: POST /json_proto HTTP/1.0 [18:53:19]Method: POST [18:53:19]URL: /json_proto [18:53:19]Method is POST - this is cgi request [18:53:19]url: /json_proto [18:53:19]query_string will be loaded in cgi processing [18:53:19]execute_cgi json_proto POST (null) [18:53:19]execute_cgi path=json_proto method=POST [18:53:19]POST find Content-Length [18:53:19]Host: 172.17.42.131:8080 [18:53:19]Content-Length: 679 [18:53:19]Content-Type: application/json [18:53:19] [18:53:19]POST finish read [18:53:19]Found Content-Length = 679 [18:53:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:53:19]execute_script... [18:53: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)210504", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:53:19]POST & json_proto [18:53:19]process_json_proto [18:53:19]json parsed OK: [18:53:19]protocol is kg_v1.0 [18:53:19]action value=close_receipt [18:53:19]process_action close_receipt [18:53:19]cmd_close_receipt [18:53:19]MH_GetDate [18:53:19]Write to MH i2c: F0 00 00 F9 0C F4 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 09 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: F0 09 00 F9 0C 00 A0 F4 17 67 A0 18 CA 66 F7 [18:53:19]GetLastDocTimeStamp 1729623006 [18:53:19]current date 1729623200 [18:53:19]FM_GetShiftState [18:53:19]SAM_PROTO_GetShiftState [18:53:19]wFMCommunicate request_size=4 [18:53:19]MH_SAM_APDU [18:53:19]CAPDU: 80 13 01 00 [18:53:19]Write to MH i2c: E2 08 00 FA 0C 80 13 01 00 00 00 00 00 83 [18:53:19]Write i2c OK [18:53:19]MH_I2C_Read... [18:53:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:19]Read from MH i2c: E2 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 [18:53:19]MH_I2C_Read... [18:53:19]Read from MH i2c: E2 0E 00 FA 0C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 78 [18:53:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:53:19]wFMCommunicate OK [18:53:19]SAM_PROTO_GetShiftState done [18:53:19]FM_GetShiftState done [18:53:19]opened in 1729556094 [18:53:19]opened+sec_in_day 1729642494 [18:53:19]quantity*price = 200025 [18:53:19]sum+1 = 200026 [18:53:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 473 22.10.2024 18:53 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188444 ФПД: 256929811614506 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185320&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188444&fm=256929811614506&tin=02508201610067®Number=0000000000100030&sum=200000 [18:53:20]StoreToDocumentArchive [18:53:20]shift 461 fd 188444 [18:53:20]save to /storage/0461/doc_00188444 [18:53:20]save last doc name /storage/0461/doc_00188444 to /storage/kkm_last_doc_name [18:53:20]save OK [18:53:20]Clear old archive folders... [18:53:20]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:53:20]tlvbuf is 00934090 [18:53:20]SAM_PROTO_ClearQueue [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 09 00 00 [18:53:20]Write to MH i2c: E2 08 00 07 0D 80 09 00 00 00 00 00 00 86 [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 07 0D 00 90 00 88 [18:53:20]RAPDU: 90 00 [18:53:20]wFMCommunicate OK [18:53:20]SAM_PROTO_ClearQueue done [18:53:20]KKMCreateOFDPacket [18:53:20]OFDProtocolAddRootSTLVToBuf [18:53:20]FM_MakeSignedData [18:53:20]FM_MakeSignedData [18:53:20]SAM_PROTO_SignData [18:53:20]wFMCommunicate request_size=4 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 0D 01 02 [18:53:20]Write to MH i2c: E2 08 00 08 0D 80 0D 01 02 00 00 00 00 8E [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:53:20]Read from MH i2c: E2 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 [18:53:20]MH_I2C_Read... [18:53:20]Read from MH i2c: E2 03 00 08 0D 00 90 00 89 [18:53:20]RAPDU: 90 00 [18:53:20]wFMCommunicate OK [18:53:20]wFMCommunicate request_size=255 [18:53:20]MH_SAM_APDU [18:53:20]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D9 01 00 00 F4 03 04 00 A0 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E0 02 00 35 04 06 00 E9 AD 22 27 [18:53:20]Write to MH i2c: E2 02 01 09 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 32 31 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 D9 01 00 00 F4 03 04 00 A0 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E0 02 00 35 04 06 00 E9 AD 22 27 00 00 7E [18:53:20]Write i2c OK [18:53:20]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 09 0D 00 90 00 8A [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]wFMCommunicate request_size=7 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 02 02 02 4B 2A [18:53:21]Write to MH i2c: E2 0A 00 0A 0D 80 0D 02 02 02 00 4B 2A 00 00 0A [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 03 00 0A 0D 00 90 00 8B [18:53:21]RAPDU: 90 00 [18:53:21]wFMCommunicate OK [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 0D 03 02 [18:53:21]Write to MH i2c: E2 08 00 0B 0D 80 0D 03 02 00 00 00 00 93 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0B 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 0B 00 0B 0D 00 91 2D 84 76 7C FB 8D 33 90 00 83 [18:53:21]RAPDU: 91 2D 84 76 7C FB 8D 33 90 00 [18:53:21]wFMCommunicate OK [18:53:21]SAM_PROTO_SignData done [18:53:21]FM_MakeSignedData done [18:53:21]CreateOFDProtocolMessage [18:53:21]wFMCommunicate request_size=4 [18:53:21]MH_SAM_APDU [18:53:21]CAPDU: 80 11 00 00 [18:53:21]Write to MH i2c: E2 08 00 0C 0D 80 11 00 00 00 00 00 00 93 [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:21]Read from MH i2c: E2 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: E2 17 00 0C 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [18:53:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:53:21]wFMCommunicate OK [18:53:21]CreateOFDProtocolMessage done [18:53:21]OFDSenderStorePacket 188444 [18:53:21]StoreOFDPacket docnum=188444 [18:53:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 28 1F 04 01 C4 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D9 01 00 00 F4 03 04 00 A0 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E0 02 00 35 04 06 00 E9 AD 22 27 4B 2A 91 2D 84 76 7C FB 8D 33 [18:53:21]CheckFolder [18:53:21]dirname=/storage/ofd_packets [18:53:21]CheckFolder done [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00188444 [18:53:21]NVStorageSaveData ofd_packets/00188444 [18:53:21]File name is /storage/ofd_packets/00188444 [18:53:21]Write 298 bytes [18:53:21]NVStorageSaveData done [18:53:21]OFDSenderStorePacket done [18:53:21]KKMCreateOFDPacket done [18:53:21]NVStorageSaveData kkm_last_timestamp [18:53:21]File name is /storage/kkm_last_timestamp [18:53:21]Write 4 bytes [18:53:21]NVStorageSaveData done [18:53:21]ExternCall_PrintAddStr [18:53:21]wPrintStart [18:53:21]Write to MH i2c: 01 00 00 0D 0D 1A [18:53:21]Write i2c OK [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 [18:53:21]MH_I2C_Read... [18:53:21]Read from MH i2c: 01 07 00 0D 0D 00 00 00 00 00 FF 0F 2F [18:53:21]RasterBufferAndPrint [18:53:21]line Счет N : (1)210504 [18:53:21]line ИНН: 02508201610067 [18:53:21]line Контрольно-Кассовый Чек [18:53:21]line ПРОДАЖА [18:53:21]line ТРК (МРК, ГНК) : 51 [18:53:21]line Товар: 2710194210 [18:53:21]line ДТ-К-5 [18:53:21]line 26.250 * 76.20 [18:53:21]line = 2000.25 [18:53:21]line НДС 12% НСП 1% [18:53:21]line > о реализуемом товаре [18:53:21]line ОКРУГЛЕНИЕ: -0.25 [18:53:21]line ИТОГО: 2000.00 [18:53:21]line Внесено: 2000.00 [18:53:21]line СДАЧА: 0.00 [18:53:21]line НСП 1% : 17.70 [18:53:21]line НДС 12% : 212.42 [18:53:21]line Наличными: 2000.00 [18:53:21]line Безнал.: 0.00 [18:53:21]line Место: АЗС № 86 "Партнер Нефть" [18:53:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:53:21]line СНО: Общий режим [18:53:21]line Чек 473 22.10.2024 18:53 [18:53:21]line Смена: 461 ФФД: 1.0 [18:53:21]line ЗНМ: 0300000155 [18:53:21]line РНМ: 0000000000100030 [18:53:21]line Версия ККМ: 001 [18:53:21]line ФМ: 0000000000965340 [18:53:21]line ФД: 188444 [18:53:21]line ФПД: 256929811614506 [18:53:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185320&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188444&fm=256929811614506&tin=02508201610067®Number=0000000000100030&sum=200000 [18:53:21]OFD Sender: Processing packet 188444 [packets to send 1062, broken 1061] [18:53:21]ProducePacketName [18:53:21]name=ofd_packets/00188444 [18:53:21]OFD Sender: To server: pG, [18:53:21]CommunicateWithHost lk.salyk.kg:30040 [18:53:21]ConnectInit lk.salyk.kg [18:53:21]written 0, free lines is 4095 [18:53:21]Connected sock=11 [18:53:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 28 1F 04 01 C4 11 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 D9 01 00 00 F4 03 04 00 A0 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E0 02 00 35 04 06 00 E9 AD 22 27 4B 2A 91 2D 84 76 7C FB 8D 33 [18:53:22]Write to MH i2c: 01 00 00 38 0D 45 [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 07 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: 01 07 00 38 0D 00 00 00 00 00 5F 0C B7 [18:53:22]RasterBufferAndPrint [18:53:22]line [18:53:22]line [18:53:22]line [18:53:22]line [18:53:22]line [18:53:22]written 0, free lines is 3169 [18:53:22]MH_Cut [18:53:22]Write to MH i2c: D1 01 00 3F 0D 01 1E [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: D1 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: D1 01 00 [18:53:22]MH_I2C_Read... [18:53:22]Read from MH i2c: D1 01 00 3F 0D 00 1D [18:53:22]Write to MH i2c: 01 00 00 40 0D 4D [18:53:22]Write i2c OK [18:53:22]MH_I2C_Read... [18:53:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 81 E3 47 00 48 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1C E0 02 00 F4 03 04 00 8D 9E 17 67 B6 04 01 00 00 52 3E C2 F4 E6 03 21 C8 [18:53:22]CommunicateWithHost err = 0 [18:53:22]CheckOFDResponse [18:53:22]1017 (14) - 77093643461234 [18:53:22]1041 (16) - 0000000000965340 [18:53:22]1040 (4) - 188444 [18:53:22]1012 (4) - 22.10.2024 12:46 [18:53:22]1206 (1) - 0 [18:53:22]OFD Sender: Remove packet 188444 [18:53:22]ProducePacketName [18:53:22]name=ofd_packets/00188444 [18:53:22]NVStorageDeleteData [18:53:22]OFD Sender: No OFD packet to send [18:53:23]*** Cut start [18:53:23]*** Partial cut [18:53:23]*** CUTSNS_PIN = 1 [18:53:23]*** CUTSNS_PIN = 0 [18:53:23]*** Brake cut motor [18:53:23]Read from MH i2c: 01 [18:53:23]MH_I2C_Read... [18:53:23]*** Stop cut motor [18:53:23]*** Cut end [18:53:23]Read from MH i2c: 01 07 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: 01 07 00 40 0D 00 00 00 00 00 FF 0F 62 [18:53:23]process_action close_receipt done [18:53:23]requested_data is exist [18:53:23]produce_requested_data [18:53:23]requested_item fm.sn is exist - process it [18:53:23]wFMCommunicate request_size=4 [18:53:23]MH_SAM_APDU [18:53:23]CAPDU: 80 11 00 00 [18:53:23]Write to MH i2c: E2 08 00 41 0D 80 11 00 00 00 00 00 00 C8 [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:53:23]Read from MH i2c: E2 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 17 00 [18:53:23]MH_I2C_Read... [18:53:23]Read from MH i2c: E2 17 00 41 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [18:53:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:53:23]wFMCommunicate OK [18:53:23]requested_item fd.num is exist - process it [18:53:23]SAM_PROTO_GetFieldsCounters [18:53:23]wFMCommunicate request_size=4 [18:53:23]MH_SAM_APDU [18:53:23]CAPDU: 80 13 00 00 [18:53:23]Write to MH i2c: E2 08 00 42 0D 80 13 00 00 00 00 00 00 CB [18:53:23]Write i2c OK [18:53:23]MH_I2C_Read... [18:53:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:53:24]Read from MH i2c: E2 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 62 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 62 00 42 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 2C [18:53:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 D9 01 00 00 5E 04 04 00 D9 01 00 00 57 04 04 00 DA 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:53:24]wFMCommunicate OK [18:53:24]SAM_PROTO_GetFieldsCounters done [18:53:24]requested_item shift.num is exist - process it [18:53:24]requested_item shift.opened is exist - process it [18:53:24]req_shift_opened [18:53:24]FM_GetShiftState [18:53:24]SAM_PROTO_GetShiftState [18:53:24]wFMCommunicate request_size=4 [18:53:24]MH_SAM_APDU [18:53:24]CAPDU: 80 13 01 00 [18:53:24]Write to MH i2c: E2 08 00 43 0D 80 13 01 00 00 00 00 00 CD [18:53:24]Write i2c OK [18:53:24]MH_I2C_Read... [18:53:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:53:24]Read from MH i2c: E2 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 0E 00 [18:53:24]MH_I2C_Read... [18:53:24]Read from MH i2c: E2 0E 00 43 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C2 [18:53:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:53:24]wFMCommunicate OK [18:53:24]SAM_PROTO_GetShiftState done [18:53:24]FM_GetShiftState done [18:53:24]req_shift_opened done [18:53:24]requested_item shift.open_date is exist - process it [18:53:24]req_shift_open_date [18:53:24]req_shift_open_date done [18:53:24]produce_requested_data done [18:53:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188444,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:53:24]process_action_free close_receipt [18:53:24]json_value_free [18:53:24]json_value_free done [18:53:24]process_json_proto returns [18:53:24]Send response to host [18:53:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188444,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:53:24]free response buf [18:53:24]execute_script done [18:53:24]execute_script returns [18:53:24]free content buf [18:53:24]Sock 7.Close socket [18:53:24]Sock 7.Thread stoped [18:53:27]OFD Sender: No OFD packet to send [18:53:32]OFD Sender: No OFD packet to send [18:53:37]OFD Sender: No OFD packet to send [18:53:42]OFD Sender: No OFD packet to send [18:53:47]OFD Sender: No OFD packet to send [18:53:52]OFD Sender: No OFD packet to send [18:53:57]OFD Sender: No OFD packet to send [18:54:02]OFD Sender: No OFD packet to send [18:54:07]accept exits with 9 [18:54:07]New connection [18:54:07]New thread 3066613092 created [18:54:07]Thread 3066756452 joined [18:54:07]Waiting for new connection... [18:54:07] Sock 9.Parse request [18:54:07]Sock 9.Check first char [18:54:07]Sock 9.First char is OK [18:54:07]request: POST /json_proto HTTP/1.0 [18:54:07]Method: POST [18:54:07]URL: /json_proto [18:54:07]Method is POST - this is cgi request [18:54:07]url: /json_proto [18:54:07]query_string will be loaded in cgi processing [18:54:07]execute_cgi json_proto POST (null) [18:54:07]execute_cgi path=json_proto method=POST [18:54:07]POST find Content-Length [18:54:07]Host: 172.17.42.131:8080 [18:54:07]Content-Length: 766 [18:54:07]Content-Type: application/json [18:54:07] [18:54:07]POST finish read [18:54:07]Found Content-Length = 766 [18:54:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:07]execute_script... [18:54: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)210505", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 200.03 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:54:07]POST & json_proto [18:54:07]process_json_proto [18:54:07]json parsed OK: [18:54:07]protocol is kg_v1.0 [18:54:07]action value=close_receipt [18:54:07]process_action close_receipt [18:54:07]cmd_close_receipt [18:54:07]MH_GetDate [18:54:07]Write to MH i2c: F0 00 00 44 0D 40 [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: F0 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: F0 09 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: F0 09 00 44 0D 00 D1 F4 17 67 A0 18 CA 66 74 [18:54:07]GetLastDocTimeStamp 1729623200 [18:54:07]current date 1729623249 [18:54:07]FM_GetShiftState [18:54:07]SAM_PROTO_GetShiftState [18:54:07]wFMCommunicate request_size=4 [18:54:07]MH_SAM_APDU [18:54:07]CAPDU: 80 13 01 00 [18:54:07]Write to MH i2c: E2 08 00 45 0D 80 13 01 00 00 00 00 00 CF [18:54:07]Write i2c OK [18:54:07]MH_I2C_Read... [18:54:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:07]Read from MH i2c: E2 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 0E 00 [18:54:07]MH_I2C_Read... [18:54:07]Read from MH i2c: E2 0E 00 45 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C4 [18:54:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:54:07]wFMCommunicate OK [18:54:07]SAM_PROTO_GetShiftState done [18:54:07]FM_GetShiftState done [18:54:07]opened in 1729556094 [18:54:07]opened+sec_in_day 1729642494 [18:54:07]quantity*price = 20003 [18:54:07]sum+1 = 20004 [18:54:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 200.03 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 0.00 Безнал.: 200.03 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 474 22.10.2024 18:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188445 ФПД: 197180849739269 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188445&fm=197180849739269&tin=02508201610067®Number=0000000000100030&sum=20003 [18:54:09]StoreToDocumentArchive [18:54:09]shift 461 fd 188445 [18:54:09]save to /storage/0461/doc_00188445 [18:54:09]save last doc name /storage/0461/doc_00188445 to /storage/kkm_last_doc_name [18:54:09]save OK [18:54:09]Clear old archive folders... [18:54:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:54:09]tlvbuf is 0095B750 [18:54:09]SAM_PROTO_ClearQueue [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 09 00 00 [18:54:09]Write to MH i2c: E2 08 00 52 0D 80 09 00 00 00 00 00 00 D1 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 52 0D 00 90 00 D3 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]SAM_PROTO_ClearQueue done [18:54:09]KKMCreateOFDPacket [18:54:09]OFDProtocolAddRootSTLVToBuf [18:54:09]FM_MakeSignedData [18:54:09]FM_MakeSignedData [18:54:09]SAM_PROTO_SignData [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 01 02 [18:54:09]Write to MH i2c: E2 08 00 53 0D 80 0D 01 02 00 00 00 00 D9 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 53 0D 00 90 00 D4 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]wFMCommunicate request_size=255 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 D1 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E0 02 00 35 04 06 00 B3 [18:54:09]Write to MH i2c: E2 02 01 54 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 D1 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E0 02 00 35 04 06 00 B3 00 00 B2 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 54 0D 00 90 00 D5 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]wFMCommunicate request_size=10 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 02 02 05 55 BE 81 56 05 [18:54:09]Write to MH i2c: E2 0D 00 55 0D 80 0D 02 02 05 00 55 BE 81 56 05 00 00 D5 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 03 00 55 0D 00 90 00 D6 [18:54:09]RAPDU: 90 00 [18:54:09]wFMCommunicate OK [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 0D 03 02 [18:54:09]Write to MH i2c: E2 08 00 56 0D 80 0D 03 02 00 00 00 00 DE [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 0B 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 0B 00 56 0D 00 60 C0 5D F4 2D 78 5E 09 90 00 5C [18:54:09]RAPDU: 60 C0 5D F4 2D 78 5E 09 90 00 [18:54:09]wFMCommunicate OK [18:54:09]SAM_PROTO_SignData done [18:54:09]FM_MakeSignedData done [18:54:09]CreateOFDProtocolMessage [18:54:09]wFMCommunicate request_size=4 [18:54:09]MH_SAM_APDU [18:54:09]CAPDU: 80 11 00 00 [18:54:09]Write to MH i2c: E2 08 00 57 0D 80 11 00 00 00 00 00 00 DE [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:09]Read from MH i2c: E2 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 17 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: E2 17 00 57 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [18:54:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:54:09]wFMCommunicate OK [18:54:09]CreateOFDProtocolMessage done [18:54:09]OFDSenderStorePacket 188445 [18:54:09]StoreOFDPacket docnum=188445 [18:54:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 95 07 01 F9 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 D1 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E0 02 00 35 04 06 00 B3 55 BE 81 56 05 60 C0 5D F4 2D 78 5E 09 [18:54:09]CheckFolder [18:54:09]dirname=/storage/ofd_packets [18:54:09]CheckFolder done [18:54:09]ProducePacketName [18:54:09]name=ofd_packets/00188445 [18:54:09]NVStorageSaveData ofd_packets/00188445 [18:54:09]File name is /storage/ofd_packets/00188445 [18:54:09]Write 301 bytes [18:54:09]NVStorageSaveData done [18:54:09]OFDSenderStorePacket done [18:54:09]KKMCreateOFDPacket done [18:54:09]NVStorageSaveData kkm_last_timestamp [18:54:09]File name is /storage/kkm_last_timestamp [18:54:09]Write 4 bytes [18:54:09]NVStorageSaveData done [18:54:09]ExternCall_PrintAddStr [18:54:09]wPrintStart [18:54:09]Write to MH i2c: 01 00 00 58 0D 65 [18:54:09]Write i2c OK [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: 01 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: 01 07 00 [18:54:09]MH_I2C_Read... [18:54:09]Read from MH i2c: 01 07 00 58 0D 00 00 00 00 00 FF 0F 7A [18:54:09]RasterBufferAndPrint [18:54:09]line Счет N : (1)210505 [18:54:09]line ИНН: 02508201610067 [18:54:09]line Контрольно-Кассовый Чек [18:54:09]line ПРОДАЖА [18:54:09]line ТРК (МРК, ГНК) : 42 [18:54:09]line Товар: 2710124130 [18:54:09]line Аи-92-К-3 [18:54:09]line 2.990 * 66.90 [18:54:09]line = 200.03 [18:54:09]line НДС 12% НСП 1% [18:54:09]line > о реализуемом товаре [18:54:09]line ИТОГО: 200.03 [18:54:09]line НСП 1% : 1.77 [18:54:09]line НДС 12% : 21.24 [18:54:09]line Наличными: 0.00 [18:54:09]line Безнал.: 200.03 [18:54:09]line Место: АЗС № 86 "Партнер Нефть" [18:54:09]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:54:09]line СНО: Общий режим [18:54:09]line Чек 474 22.10.2024 18:54 [18:54:09]line Смена: 461 ФФД: 1.0 [18:54:09]line ЗНМ: 0300000155 [18:54:09]line РНМ: 0000000000100030 [18:54:09]line Версия ККМ: 001 [18:54:09]line Платежная система: Mbank [18:54:09]line ФМ: 0000000000965340 [18:54:09]line ФД: 188445 [18:54:09]line ФПД: 197180849739269 [18:54:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185409&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188445&fm=197180849739269&tin=02508201610067®Number=0000000000100030&sum=20003 [18:54:09]written 0, free lines is 4095 [18:54:09]OFD Sender: Processing packet 188445 [packets to send 1062, broken 1061] [18:54:09]ProducePacketName [18:54:09]name=ofd_packets/00188445 [18:54:09]OFD Sender: To server: pG, [18:54:09]CommunicateWithHost lk.salyk.kg:30040 [18:54:09]ConnectInit lk.salyk.kg [18:54:09]Connected sock=10 [18:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 26 95 07 01 F9 CF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 23 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 23 4E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DA 01 00 00 F4 03 04 00 D1 F4 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E0 02 00 35 04 06 00 B3 55 BE 81 56 05 60 C0 5D F4 2D 78 5E 09 [18:54:10]Write to MH i2c: 01 00 00 81 0D 8E [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 07 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: 01 07 00 81 0D 00 00 00 00 00 9C 0C 3D [18:54:10]RasterBufferAndPrint [18:54:10]line [18:54:10]line [18:54:10]line [18:54:10]line [18:54:10]line [18:54:10]written 0, free lines is 3232 [18:54:10]MH_Cut [18:54:10]Write to MH i2c: D1 01 00 88 0D 01 67 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: D1 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: D1 01 00 [18:54:10]MH_I2C_Read... [18:54:10]Read from MH i2c: D1 01 00 88 0D 00 66 [18:54:10]Write to MH i2c: 01 00 00 89 0D 96 [18:54:10]Write i2c OK [18:54:10]MH_I2C_Read... [18:54:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 86 B8 47 00 77 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1D E0 02 00 F4 03 04 00 BD 9E 17 67 B6 04 01 00 00 B7 C9 AF 0F 8B 96 56 F9 [18:54:10]CommunicateWithHost err = 0 [18:54:10]CheckOFDResponse [18:54:10]1017 (14) - 77093643461234 [18:54:10]1041 (16) - 0000000000965340 [18:54:10]1040 (4) - 188445 [18:54:10]1012 (4) - 22.10.2024 12:46 [18:54:10]1206 (1) - 0 [18:54:10]OFD Sender: Remove packet 188445 [18:54:10]ProducePacketName [18:54:10]name=ofd_packets/00188445 [18:54:10]NVStorageDeleteData [18:54:10]OFD Sender: No OFD packet to send [18:54:11]*** Cut start [18:54:11]*** Partial cut [18:54:11]*** CUTSNS_PIN = 1 [18:54:11]*** CUTSNS_PIN = 0 [18:54:11]*** Brake cut motor [18:54:11]Read from MH i2c: 01 [18:54:11]MH_I2C_Read... [18:54:11]*** Stop cut motor [18:54:11]*** Cut end [18:54:11]Read from MH i2c: 01 07 00 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: 01 07 00 89 0D 00 00 00 00 00 FF 0F AB [18:54:11]process_action close_receipt done [18:54:11]requested_data is exist [18:54:11]produce_requested_data [18:54:11]requested_item fm.sn is exist - process it [18:54:11]wFMCommunicate request_size=4 [18:54:11]MH_SAM_APDU [18:54:11]CAPDU: 80 11 00 00 [18:54:11]Write to MH i2c: E2 08 00 8A 0D 80 11 00 00 00 00 00 00 11 [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:54:11]Read from MH i2c: E2 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: E2 17 00 [18:54:11]MH_I2C_Read... [18:54:11]Read from MH i2c: E2 17 00 8A 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5F [18:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:54:11]wFMCommunicate OK [18:54:11]requested_item fd.num is exist - process it [18:54:11]SAM_PROTO_GetFieldsCounters [18:54:11]wFMCommunicate request_size=4 [18:54:11]MH_SAM_APDU [18:54:11]CAPDU: 80 13 00 00 [18:54:11]Write to MH i2c: E2 08 00 8B 0D 80 13 00 00 00 00 00 00 14 [18:54:11]Write i2c OK [18:54:11]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 62 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 62 00 8B 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 79 [18:54:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DA 01 00 00 5E 04 04 00 DA 01 00 00 57 04 04 00 DB 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:54:12]wFMCommunicate OK [18:54:12]SAM_PROTO_GetFieldsCounters done [18:54:12]requested_item shift.num is exist - process it [18:54:12]requested_item shift.opened is exist - process it [18:54:12]req_shift_opened [18:54:12]FM_GetShiftState [18:54:12]SAM_PROTO_GetShiftState [18:54:12]wFMCommunicate request_size=4 [18:54:12]MH_SAM_APDU [18:54:12]CAPDU: 80 13 01 00 [18:54:12]Write to MH i2c: E2 08 00 8C 0D 80 13 01 00 00 00 00 00 16 [18:54:12]Write i2c OK [18:54:12]MH_I2C_Read... [18:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:54:12]Read from MH i2c: E2 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 0E 00 [18:54:12]MH_I2C_Read... [18:54:12]Read from MH i2c: E2 0E 00 8C 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0B [18:54:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:54:12]wFMCommunicate OK [18:54:12]SAM_PROTO_GetShiftState done [18:54:12]FM_GetShiftState done [18:54:12]req_shift_opened done [18:54:12]requested_item shift.open_date is exist - process it [18:54:12]req_shift_open_date [18:54:12]req_shift_open_date done [18:54:12]produce_requested_data done [18:54:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188445,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:54:12]process_action_free close_receipt [18:54:12]json_value_free [18:54:12]json_value_free done [18:54:12]process_json_proto returns [18:54:12]Send response to host [18:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188445,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:54:12]free response buf [18:54:12]execute_script done [18:54:12]execute_script returns [18:54:12]free content buf [18:54:12]Sock 9.Close socket [18:54:12]Sock 9.Thread stoped [18:54:15]OFD Sender: No OFD packet to send [18:54:20]OFD Sender: No OFD packet to send [18:54:25]OFD Sender: No OFD packet to send [18:54:30]OFD Sender: No OFD packet to send [18:54:35]OFD Sender: No OFD packet to send [18:54:40]OFD Sender: No OFD packet to send [18:54:45]OFD Sender: No OFD packet to send [18:54:50]OFD Sender: No OFD packet to send [18:54:55]OFD Sender: No OFD packet to send [18:55:01]OFD Sender: No OFD packet to send [18:55:06]OFD Sender: No OFD packet to send [18:55:11]OFD Sender: No OFD packet to send [18:55:16]OFD Sender: No OFD packet to send [18:55:21]OFD Sender: No OFD packet to send [18:55:26]OFD Sender: No OFD packet to send [18:55:31]OFD Sender: No OFD packet to send [18:55:36]OFD Sender: No OFD packet to send [18:55:41]OFD Sender: No OFD packet to send [18:55:46]OFD Sender: No OFD packet to send [18:55:51]OFD Sender: No OFD packet to send [18:55:56]OFD Sender: No OFD packet to send [18:56:01]OFD Sender: No OFD packet to send [18:56:06]OFD Sender: No OFD packet to send [18:56:11]OFD Sender: No OFD packet to send [18:56:16]OFD Sender: No OFD packet to send [18:56:21]OFD Sender: No OFD packet to send [18:56:26]OFD Sender: No OFD packet to send [18:56:31]OFD Sender: No OFD packet to send [18:56:36]OFD Sender: No OFD packet to send [18:56:41]OFD Sender: No OFD packet to send [18:56:46]OFD Sender: No OFD packet to send [18:56:51]OFD Sender: No OFD packet to send [18:56:56]OFD Sender: No OFD packet to send [18:57:01]OFD Sender: No OFD packet to send [18:57:06]OFD Sender: No OFD packet to send [18:57:08]accept exits with 7 [18:57:08]New connection [18:57:08]New thread 3066756452 created [18:57:08]Thread 3066613092 joined [18:57:08]Waiting for new connection... [18:57:08] Sock 7.Parse request [18:57:08]Sock 7.Check first char [18:57:08]Sock 7.First char is OK [18:57:08]request: POST /json_proto HTTP/1.0 [18:57:08]Method: POST [18:57:08]URL: /json_proto [18:57:08]Method is POST - this is cgi request [18:57:08]url: /json_proto [18:57:08]query_string will be loaded in cgi processing [18:57:08]execute_cgi json_proto POST (null) [18:57:08]execute_cgi path=json_proto method=POST [18:57:08]POST find Content-Length [18:57:08]Host: 172.17.42.131:8080 [18:57:08]Content-Length: 688 [18:57:08]Content-Type: application/json [18:57:08] [18:57:08]POST finish read [18:57:08]Found Content-Length = 688 [18:57:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 58.300, "sum" : 4500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:08]execute_script... [18:57: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)210506", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 58.300, "sum" : 4500.76, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:57:08]POST & json_proto [18:57:08]process_json_proto [18:57:08]json parsed OK: [18:57:08]protocol is kg_v1.0 [18:57:08]action value=close_receipt [18:57:08]process_action close_receipt [18:57:08]cmd_close_receipt [18:57:08]MH_GetDate [18:57:08]Write to MH i2c: F0 00 00 8D 0D 89 [18:57:08]Write i2c OK [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 09 00 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: F0 09 00 8D 0D 00 86 F5 17 67 A0 18 CA 66 73 [18:57:08]GetLastDocTimeStamp 1729623249 [18:57:08]current date 1729623430 [18:57:08]FM_GetShiftState [18:57:08]SAM_PROTO_GetShiftState [18:57:08]wFMCommunicate request_size=4 [18:57:08]MH_SAM_APDU [18:57:08]CAPDU: 80 13 01 00 [18:57:08]Write to MH i2c: E2 08 00 8E 0D 80 13 01 00 00 00 00 00 18 [18:57:08]Write i2c OK [18:57:08]MH_I2C_Read... [18:57:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:08]Read from MH i2c: E2 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: E2 0E 00 [18:57:08]MH_I2C_Read... [18:57:08]Read from MH i2c: E2 0E 00 8E 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0D [18:57:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:57:08]wFMCommunicate OK [18:57:08]SAM_PROTO_GetShiftState done [18:57:08]FM_GetShiftState done [18:57:08]opened in 1729556094 [18:57:08]opened+sec_in_day 1729642494 [18:57:08]quantity*price = 450076 [18:57:08]sum+1 = 450077 [18:57:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.96 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 475 22.10.2024 18:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188446 ФПД: 69584495145692 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188446&fm=69584495145692&tin=02508201610067®Number=0000000000100030&sum=450000 [18:57:09]StoreToDocumentArchive [18:57:09]shift 461 fd 188446 [18:57:09]save to /storage/0461/doc_00188446 [18:57:09]save last doc name /storage/0461/doc_00188446 to /storage/kkm_last_doc_name [18:57:09]save OK [18:57:09]Clear old archive folders... [18:57:10]ProcessDocumentItem done err = 0, tmpTLVsize=257 [18:57:10]tlvbuf is 00933F40 [18:57:10]SAM_PROTO_ClearQueue [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 09 00 00 [18:57:10]Write to MH i2c: E2 08 00 9B 0D 80 09 00 00 00 00 00 00 1A [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 9B 0D 00 90 00 1C [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]SAM_PROTO_ClearQueue done [18:57:10]KKMCreateOFDPacket [18:57:10]OFDProtocolAddRootSTLVToBuf [18:57:10]FM_MakeSignedData [18:57:10]FM_MakeSignedData [18:57:10]SAM_PROTO_SignData [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 01 02 [18:57:10]Write to MH i2c: E2 08 00 9C 0D 80 0D 01 02 00 00 00 00 22 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 9C 0D 00 90 00 1D [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=255 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 86 F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E0 02 [18:57:10]Write to MH i2c: E2 02 01 9D 0D 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 86 F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E0 02 00 00 97 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 9D 0D 00 90 00 1E [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=16 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3F 49 67 1D 72 DC [18:57:10]Write to MH i2c: E2 13 00 9E 0D 80 0D 02 02 0B 00 00 35 04 06 00 3F 49 67 1D 72 DC 00 00 D4 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 03 00 9E 0D 00 90 00 1F [18:57:10]RAPDU: 90 00 [18:57:10]wFMCommunicate OK [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 0D 03 02 [18:57:10]Write to MH i2c: E2 08 00 9F 0D 80 0D 03 02 00 00 00 00 27 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 0B 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 0B 00 9F 0D 00 18 F1 DE 06 C7 82 51 49 90 00 F8 [18:57:10]RAPDU: 18 F1 DE 06 C7 82 51 49 90 00 [18:57:10]wFMCommunicate OK [18:57:10]SAM_PROTO_SignData done [18:57:10]FM_MakeSignedData done [18:57:10]CreateOFDProtocolMessage [18:57:10]wFMCommunicate request_size=4 [18:57:10]MH_SAM_APDU [18:57:10]CAPDU: 80 11 00 00 [18:57:10]Write to MH i2c: E2 08 00 A0 0D 80 11 00 00 00 00 00 00 27 [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:10]Read from MH i2c: E2 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 17 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: E2 17 00 A0 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 75 [18:57:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:57:10]wFMCommunicate OK [18:57:10]CreateOFDProtocolMessage done [18:57:10]OFDSenderStorePacket 188446 [18:57:10]StoreOFDPacket docnum=188446 [18:57:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D8 D1 0D 01 A6 8A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 86 F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E0 02 00 35 04 06 00 3F 49 67 1D 72 DC 18 F1 DE 06 C7 82 51 49 [18:57:10]CheckFolder [18:57:10]dirname=/storage/ofd_packets [18:57:10]CheckFolder done [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00188446 [18:57:10]NVStorageSaveData ofd_packets/00188446 [18:57:10]File name is /storage/ofd_packets/00188446 [18:57:10]Write 307 bytes [18:57:10]NVStorageSaveData done [18:57:10]OFDSenderStorePacket done [18:57:10]KKMCreateOFDPacket done [18:57:10]NVStorageSaveData kkm_last_timestamp [18:57:10]File name is /storage/kkm_last_timestamp [18:57:10]Write 4 bytes [18:57:10]NVStorageSaveData done [18:57:10]ExternCall_PrintAddStr [18:57:10]wPrintStart [18:57:10]Write to MH i2c: 01 00 00 A1 0D AE [18:57:10]Write i2c OK [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 [18:57:10]MH_I2C_Read... [18:57:10]Read from MH i2c: 01 07 00 A1 0D 00 00 00 00 00 FF 0F C3 [18:57:10]RasterBufferAndPrint [18:57:10]line Счет N : (1)210506 [18:57:10]line ИНН: 02508201610067 [18:57:10]line Контрольно-Кассовый Чек [18:57:10]line ПРОДАЖА [18:57:10]line ТРК (МРК, ГНК) : 21 [18:57:10]line Товар: 2710194210 [18:57:10]line D-ENERGY ДТ-К-5 [18:57:10]line 58.300 * 77.20 [18:57:10]line = 4500.76 [18:57:10]line НДС 12% НСП 1% [18:57:10]line > о реализуемом товаре [18:57:10]line ОКРУГЛЕНИЕ: -0.76 [18:57:10]line ИТОГО: 4500.00 [18:57:10]line Внесено: 4500.00 [18:57:10]line СДАЧА: 0.00 [18:57:10]line НСП 1% : 39.83 [18:57:10]line НДС 12% : 477.96 [18:57:10]line Наличными: 4500.00 [18:57:10]line Безнал.: 0.00 [18:57:10]line Место: АЗС № 86 "Партнер Нефть" [18:57:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:57:10]line СНО: Общий режим [18:57:10]line Чек 475 22.10.2024 18:57 [18:57:10]line Смена: 461 ФФД: 1.0 [18:57:10]line ЗНМ: 0300000155 [18:57:10]line РНМ: 0000000000100030 [18:57:10]line Версия ККМ: 001 [18:57:10]line ФМ: 0000000000965340 [18:57:10]line ФД: 188446 [18:57:10]line ФПД: 69584495145692 [18:57:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185710&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188446&fm=69584495145692&tin=02508201610067®Number=0000000000100030&sum=450000 [18:57:10]written 0, free lines is 4095 [18:57:10]OFD Sender: Processing packet 188446 [packets to send 1062, broken 1061] [18:57:10]ProducePacketName [18:57:10]name=ofd_packets/00188446 [18:57:10]OFD Sender: To server: pG, [18:57:10]CommunicateWithHost lk.salyk.kg:30040 [18:57:10]ConnectInit lk.salyk.kg [18:57:11]Write to MH i2c: 01 00 00 CC 0D D9 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: 01 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: 01 07 00 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: 01 07 00 CC 0D 00 00 00 00 00 62 0C 4E [18:57:11]RasterBufferAndPrint [18:57:11]line [18:57:11]line [18:57:11]line [18:57:11]line [18:57:11]line [18:57:11]written 0, free lines is 3173 [18:57:11]MH_Cut [18:57:11]Write to MH i2c: D1 01 00 D3 0D 01 B2 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: D1 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: D1 01 00 [18:57:11]MH_I2C_Read... [18:57:11]Read from MH i2c: D1 01 00 D3 0D 00 B1 [18:57:11]Write to MH i2c: 01 00 00 D4 0D E1 [18:57:11]Write i2c OK [18:57:11]MH_I2C_Read... [18:57:12]*** Cut start [18:57:12]*** Partial cut [18:57:12]*** CUTSNS_PIN = 1 [18:57:12]*** CUTSNS_PIN = 0 [18:57:12]*** Brake cut motor [18:57:12]Read from MH i2c: 01 [18:57:12]MH_I2C_Read... [18:57:12]*** Stop cut motor [18:57:12]*** Cut end [18:57:12]Read from MH i2c: 01 07 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: 01 07 00 D4 0D 00 00 00 00 00 FF 0F F6 [18:57:12]process_action close_receipt done [18:57:12]requested_data is exist [18:57:12]produce_requested_data [18:57:12]requested_item fm.sn is exist - process it [18:57:12]wFMCommunicate request_size=4 [18:57:12]MH_SAM_APDU [18:57:12]CAPDU: 80 11 00 00 [18:57:12]Write to MH i2c: E2 08 00 D5 0D 80 11 00 00 00 00 00 00 5C [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:57:12]Read from MH i2c: E2 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 17 00 [18:57:12]MH_I2C_Read... [18:57:12]Read from MH i2c: E2 17 00 D5 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AA [18:57:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:57:12]wFMCommunicate OK [18:57:12]requested_item fd.num is exist - process it [18:57:12]SAM_PROTO_GetFieldsCounters [18:57:12]wFMCommunicate request_size=4 [18:57:12]MH_SAM_APDU [18:57:12]CAPDU: 80 13 00 00 [18:57:12]Write to MH i2c: E2 08 00 D6 0D 80 13 00 00 00 00 00 00 5F [18:57:12]Write i2c OK [18:57:12]MH_I2C_Read... [18:57:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:57:13]Read from MH i2c: E2 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 62 00 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 62 00 D6 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 C8 [18:57:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DB 01 00 00 5E 04 04 00 DB 01 00 00 57 04 04 00 DC 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:57:13]wFMCommunicate OK [18:57:13]SAM_PROTO_GetFieldsCounters done [18:57:13]requested_item shift.num is exist - process it [18:57:13]requested_item shift.opened is exist - process it [18:57:13]req_shift_opened [18:57:13]FM_GetShiftState [18:57:13]SAM_PROTO_GetShiftState [18:57:13]wFMCommunicate request_size=4 [18:57:13]MH_SAM_APDU [18:57:13]CAPDU: 80 13 01 00 [18:57:13]Write to MH i2c: E2 08 00 D7 0D 80 13 01 00 00 00 00 00 61 [18:57:13]Write i2c OK [18:57:13]MH_I2C_Read... [18:57:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:57:13]Read from MH i2c: E2 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 0E 00 [18:57:13]MH_I2C_Read... [18:57:13]Read from MH i2c: E2 0E 00 D7 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 56 [18:57:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:57:13]wFMCommunicate OK [18:57:13]SAM_PROTO_GetShiftState done [18:57:13]FM_GetShiftState done [18:57:13]req_shift_opened done [18:57:13]requested_item shift.open_date is exist - process it [18:57:13]req_shift_open_date [18:57:13]req_shift_open_date done [18:57:13]produce_requested_data done [18:57:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188446,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:57:13]process_action_free close_receipt [18:57:13]json_value_free [18:57:13]json_value_free done [18:57:13]process_json_proto returns [18:57:13]Send response to host [18:57:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188446,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:57:13]free response buf [18:57:13]execute_script done [18:57:13]execute_script returns [18:57:13]free content buf [18:57:13]Sock 7.Close socket [18:57:13]Sock 7.Thread stoped [18:58:53]accept exits with 9 [18:58:53]New connection [18:58:53]New thread 3066613092 created [18:58:53]Thread 3066756452 joined [18:58:53]Waiting for new connection... [18:58:53] Sock 9.Parse request [18:58:53]Sock 9.Check first char [18:58:53]Sock 9.First char is OK [18:58:53]request: POST /json_proto HTTP/1.0 [18:58:53]Method: POST [18:58:53]URL: /json_proto [18:58:53]Method is POST - this is cgi request [18:58:53]url: /json_proto [18:58:53]query_string will be loaded in cgi processing [18:58:53]execute_cgi json_proto POST (null) [18:58:53]execute_cgi path=json_proto method=POST [18:58:53]POST find Content-Length [18:58:53]Host: 172.17.42.131:8080 [18:58:53]Content-Length: 679 [18:58:53]Content-Type: application/json [18:58:53] [18:58:53]POST finish read [18:58:53]Found Content-Length = 679 [18:58:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:58:53]execute_script... [18:58: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)210507", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [18:58:53]POST & json_proto [18:58:53]process_json_proto [18:58:53]json parsed OK: [18:58:53]protocol is kg_v1.0 [18:58:53]action value=close_receipt [18:58:53]process_action close_receipt [18:58:53]cmd_close_receipt [18:58:53]MH_GetDate [18:58:53]Write to MH i2c: F0 00 00 D8 0D D4 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: F0 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: F0 09 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: F0 09 00 D8 0D 00 EE F5 17 67 A0 18 CA 66 26 [18:58:53]GetLastDocTimeStamp 1729623430 [18:58:53]current date 1729623534 [18:58:53]FM_GetShiftState [18:58:53]SAM_PROTO_GetShiftState [18:58:53]wFMCommunicate request_size=4 [18:58:53]MH_SAM_APDU [18:58:53]CAPDU: 80 13 01 00 [18:58:53]Write to MH i2c: E2 08 00 D9 0D 80 13 01 00 00 00 00 00 63 [18:58:53]Write i2c OK [18:58:53]MH_I2C_Read... [18:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:53]Read from MH i2c: E2 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0E 00 [18:58:53]MH_I2C_Read... [18:58:53]Read from MH i2c: E2 0E 00 D9 0D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 58 [18:58:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:58:53]wFMCommunicate OK [18:58:53]SAM_PROTO_GetShiftState done [18:58:53]FM_GetShiftState done [18:58:53]opened in 1729556094 [18:58:53]opened+sec_in_day 1729642494 [18:58:53]quantity*price = 100050 [18:58:53]sum+1 = 100052 [18:58:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 476 22.10.2024 18:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188447 ФПД: 82646778615584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185854&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188447&fm=82646778615584&tin=02508201610067®Number=0000000000100030&sum=100000 [18:58:54]StoreToDocumentArchive [18:58:54]shift 461 fd 188447 [18:58:54]save to /storage/0461/doc_00188447 [18:58:54]save last doc name /storage/0461/doc_00188447 to /storage/kkm_last_doc_name [18:58:54]save OK [18:58:54]Clear old archive folders... [18:58:54]ProcessDocumentItem done err = 0, tmpTLVsize=248 [18:58:54]tlvbuf is 00941110 [18:58:54]SAM_PROTO_ClearQueue [18:58:54]wFMCommunicate request_size=4 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 09 00 00 [18:58:54]Write to MH i2c: E2 08 00 E6 0D 80 09 00 00 00 00 00 00 65 [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:54]Read from MH i2c: E2 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 E6 0D 00 90 00 67 [18:58:54]RAPDU: 90 00 [18:58:54]wFMCommunicate OK [18:58:54]SAM_PROTO_ClearQueue done [18:58:54]KKMCreateOFDPacket [18:58:54]OFDProtocolAddRootSTLVToBuf [18:58:54]FM_MakeSignedData [18:58:54]FM_MakeSignedData [18:58:54]SAM_PROTO_SignData [18:58:54]wFMCommunicate request_size=4 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 0D 01 02 [18:58:54]Write to MH i2c: E2 08 00 E7 0D 80 0D 01 02 00 00 00 00 6D [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:54]Read from MH i2c: E2 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 E7 0D 00 90 00 68 [18:58:54]RAPDU: 90 00 [18:58:54]wFMCommunicate OK [18:58:54]wFMCommunicate request_size=255 [18:58:54]MH_SAM_APDU [18:58: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 32 31 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 DC 01 00 00 F4 03 04 00 EE F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E0 02 00 35 04 06 00 4B 2A B3 E1 [18:58:54]Write to MH i2c: E2 02 01 E8 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 32 31 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 DC 01 00 00 F4 03 04 00 EE F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E0 02 00 35 04 06 00 4B 2A B3 E1 00 00 EE [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:54]Read from MH i2c: E2 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 E8 0D 00 90 00 69 [18:58:54]RAPDU: 90 00 [18:58:54]wFMCommunicate OK [18:58:54]wFMCommunicate request_size=7 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 0D 02 02 02 97 20 [18:58:54]Write to MH i2c: E2 0A 00 E9 0D 80 0D 02 02 02 00 97 20 00 00 2B [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:54]Read from MH i2c: E2 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 [18:58:54]MH_I2C_Read... [18:58:54]Read from MH i2c: E2 03 00 E9 0D 00 90 00 6A [18:58:54]RAPDU: 90 00 [18:58:54]wFMCommunicate OK [18:58:54]wFMCommunicate request_size=4 [18:58:54]MH_SAM_APDU [18:58:54]CAPDU: 80 0D 03 02 [18:58:54]Write to MH i2c: E2 08 00 EA 0D 80 0D 03 02 00 00 00 00 72 [18:58:54]Write i2c OK [18:58:54]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 0B 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 0B 00 EA 0D 00 BC C7 36 9A 85 9B 8F 71 90 00 E6 [18:58:55]RAPDU: BC C7 36 9A 85 9B 8F 71 90 00 [18:58:55]wFMCommunicate OK [18:58:55]SAM_PROTO_SignData done [18:58:55]FM_MakeSignedData done [18:58:55]CreateOFDProtocolMessage [18:58:55]wFMCommunicate request_size=4 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 11 00 00 [18:58:55]Write to MH i2c: E2 08 00 EB 0D 80 11 00 00 00 00 00 00 72 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 17 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 17 00 EB 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C0 [18:58:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:58:55]wFMCommunicate OK [18:58:55]CreateOFDProtocolMessage done [18:58:55]OFDSenderStorePacket 188447 [18:58:55]StoreOFDPacket docnum=188447 [18:58:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 22 8A 04 01 81 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 DC 01 00 00 F4 03 04 00 EE F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E0 02 00 35 04 06 00 4B 2A B3 E1 97 20 BC C7 36 9A 85 9B 8F 71 [18:58:55]CheckFolder [18:58:55]dirname=/storage/ofd_packets [18:58:55]CheckFolder done [18:58:55]ProducePacketName [18:58:55]name=ofd_packets/00188447 [18:58:55]NVStorageSaveData ofd_packets/00188447 [18:58:55]File name is /storage/ofd_packets/00188447 [18:58:55]Write 298 bytes [18:58:55]NVStorageSaveData done [18:58:55]OFDSenderStorePacket done [18:58:55]KKMCreateOFDPacket done [18:58:55]NVStorageSaveData kkm_last_timestamp [18:58:55]File name is /storage/kkm_last_timestamp [18:58:55]Write 4 bytes [18:58:55]NVStorageSaveData done [18:58:55]ExternCall_PrintAddStr [18:58:55]wPrintStart [18:58:55]Write to MH i2c: 01 00 00 EC 0D F9 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 EC 0D 00 00 00 00 00 FF 0F 0E [18:58:55]RasterBufferAndPrint [18:58:55]line Счет N : (1)210507 [18:58:55]line ИНН: 02508201610067 [18:58:55]line Контрольно-Кассовый Чек [18:58:55]line ПРОДАЖА [18:58:55]line ТРК (МРК, ГНК) : 51 [18:58:55]line Товар: 2710194210 [18:58:55]line ДТ-К-5 [18:58:55]line 13.130 * 76.20 [18:58:55]line = 1000.51 [18:58:55]line НДС 12% НСП 1% [18:58:55]line > о реализуемом товаре [18:58:55]line ОКРУГЛЕНИЕ: -0.51 [18:58:55]line ИТОГО: 1000.00 [18:58:55]line Внесено: 1000.00 [18:58:55]line СДАЧА: 0.00 [18:58:55]line НСП 1% : 8.85 [18:58:55]line НДС 12% : 106.25 [18:58:55]line Наличными: 1000.00 [18:58:55]line Безнал.: 0.00 [18:58:55]line Место: АЗС № 86 "Партнер Нефть" [18:58:55]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [18:58:55]line СНО: Общий режим [18:58:55]line Чек 476 22.10.2024 18:58 [18:58:55]line Смена: 461 ФФД: 1.0 [18:58:55]line ЗНМ: 0300000155 [18:58:55]line РНМ: 0000000000100030 [18:58:55]line Версия ККМ: 001 [18:58:55]line ФМ: 0000000000965340 [18:58:55]line ФД: 188447 [18:58:55]line ФПД: 82646778615584 [18:58:55]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T185854&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188447&fm=82646778615584&tin=02508201610067®Number=0000000000100030&sum=100000 [18:58:55]written 0, free lines is 4095 [18:58:55]Write to MH i2c: 01 00 00 17 0E 25 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: 01 07 00 17 0E 00 00 00 00 00 61 0C 99 [18:58:55]RasterBufferAndPrint [18:58:55]line [18:58:55]line [18:58:55]line [18:58:55]line [18:58:55]line [18:58:55]written 0, free lines is 3172 [18:58:55]MH_Cut [18:58:55]Write to MH i2c: D1 01 00 1E 0E 01 FE [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: D1 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: D1 01 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: D1 01 00 1E 0E 00 FD [18:58:55]Write to MH i2c: 01 00 00 1F 0E 2D [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:56]*** Cut start [18:58:56]*** Partial cut [18:58:56]*** CUTSNS_PIN = 1 [18:58:56]*** CUTSNS_PIN = 0 [18:58:57]*** Brake cut motor [18:58:57]Read from MH i2c: 01 [18:58:57]MH_I2C_Read... [18:58:57]*** Stop cut motor [18:58:57]*** Cut end [18:58:57]Read from MH i2c: 01 07 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: 01 07 00 1F 0E 00 00 00 00 00 FF 0F 42 [18:58:57]process_action close_receipt done [18:58:57]requested_data is exist [18:58:57]produce_requested_data [18:58:57]requested_item fm.sn is exist - process it [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 11 00 00 [18:58:57]Write to MH i2c: E2 08 00 20 0E 80 11 00 00 00 00 00 00 A8 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 17 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 17 00 20 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F6 [18:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [18:58:57]wFMCommunicate OK [18:58:57]requested_item fd.num is exist - process it [18:58:57]SAM_PROTO_GetFieldsCounters [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 13 00 00 [18:58:57]Write to MH i2c: E2 08 00 21 0E 80 13 00 00 00 00 00 00 AB [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 62 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 62 00 21 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 18 [18:58:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 1F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DC 01 00 00 5E 04 04 00 DC 01 00 00 57 04 04 00 DD 01 00 00 19 04 04 00 00 00 00 00 90 00 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_GetFieldsCounters done [18:58:57]requested_item shift.num is exist - process it [18:58:57]requested_item shift.opened is exist - process it [18:58:57]req_shift_opened [18:58:57]FM_GetShiftState [18:58:57]SAM_PROTO_GetShiftState [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 13 01 00 [18:58:57]Write to MH i2c: E2 08 00 22 0E 80 13 01 00 00 00 00 00 AD [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0E 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0E 00 22 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A2 [18:58:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_GetShiftState done [18:58:57]FM_GetShiftState done [18:58:57]req_shift_opened done [18:58:57]requested_item shift.open_date is exist - process it [18:58:57]req_shift_open_date [18:58:57]req_shift_open_date done [18:58:57]produce_requested_data done [18:58:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188447,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [18:58:57]process_action_free close_receipt [18:58:57]json_value_free [18:58:57]json_value_free done [18:58:57]process_json_proto returns [18:58:57]Send response to host [18:58:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188447,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [18:58:57]free response buf [18:58:57]execute_script done [18:58:57]execute_script returns [18:58:57]free content buf [18:58:57]Sock 9.Close socket [18:58:57]Sock 9.Thread stoped [18:59:24]ConnectInit Can't connect to host [18:59:24]CommunicateWithHost connect error [18:59:24]CommunicateWithHost err = -1 [18:59:24]OFD Sender: Server communicate error [18:59:24]OFD Sender: Processing packet 188446 [packets to send 1063, broken 1061] [18:59:24]ProducePacketName [18:59:24]name=ofd_packets/00188446 [18:59:24]OFD Sender: To server: pG, [18:59:24]CommunicateWithHost lk.salyk.kg:30040 [18:59:24]ConnectInit lk.salyk.kg [18:59:25]Connected sock=9 [18:59:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 D8 D1 0D 01 A6 8A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 BC E3 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 1C DE 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DB 01 00 00 F4 03 04 00 86 F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1E E0 02 00 35 04 06 00 3F 49 67 1D 72 DC 18 F1 DE 06 C7 82 51 49 [18:59:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4A A6 47 00 43 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 39 36 35 33 34 30 10 04 04 00 1E E0 02 00 F4 03 04 00 F8 9F 17 67 B6 04 01 00 00 7A 4F 19 F1 17 7B 8E 2F [18:59:25]CommunicateWithHost err = 0 [18:59:25]CheckOFDResponse [18:59:25]1017 (14) - 77093643461234 [18:59:25]1041 (16) - 0000000000965340 [18:59:25]1040 (4) - 188446 [18:59:25]1012 (4) - 22.10.2024 12:52 [18:59:25]1206 (1) - 0 [18:59:25]OFD Sender: Remove packet 188446 [18:59:25]ProducePacketName [18:59:25]name=ofd_packets/00188446 [18:59:25]NVStorageDeleteData [18:59:25]OFD Sender: Processing packet 188447 [packets to send 1062, broken 1061] [18:59:25]ProducePacketName [18:59:25]name=ofd_packets/00188447 [18:59:25]OFD Sender: To server: pG, [18:59:25]CommunicateWithHost lk.salyk.kg:30040 [18:59:25]ConnectInit lk.salyk.kg [18:59:26]Connected sock=9 [18:59:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 22 8A 04 01 81 74 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 DC 01 00 00 F4 03 04 00 EE F5 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 1F E0 02 00 35 04 06 00 4B 2A B3 E1 97 20 BC C7 36 9A 85 9B 8F 71 [18:59:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 9C 47 00 F0 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 39 36 35 33 34 30 10 04 04 00 1F E0 02 00 F4 03 04 00 FA 9F 17 67 B6 04 01 00 00 54 1F 52 2F B5 A2 1A E2 [18:59:26]CommunicateWithHost err = 0 [18:59:26]CheckOFDResponse [18:59:26]1017 (14) - 77093643461234 [18:59:26]1041 (16) - 0000000000965340 [18:59:26]1040 (4) - 188447 [18:59:26]1012 (4) - 22.10.2024 12:52 [18:59:26]1206 (1) - 0 [18:59:26]OFD Sender: Remove packet 188447 [18:59:26]ProducePacketName [18:59:26]name=ofd_packets/00188447 [18:59:26]NVStorageDeleteData [18:59:27]OFD Sender: No OFD packet to send [18:59:32]OFD Sender: No OFD packet to send [18:59:37]OFD Sender: No OFD packet to send [18:59:42]OFD Sender: No OFD packet to send [18:59:47]OFD Sender: No OFD packet to send [18:59:52]OFD Sender: No OFD packet to send [18:59:57]OFD Sender: No OFD packet to send [19:00:02]OFD Sender: No OFD packet to send [19:00:07]OFD Sender: No OFD packet to send [19:00:12]OFD Sender: No OFD packet to send [19:00:17]OFD Sender: No OFD packet to send [19:00:22]OFD Sender: No OFD packet to send [19:00:27]OFD Sender: No OFD packet to send [19:00:32]OFD Sender: No OFD packet to send [19:00:37]OFD Sender: No OFD packet to send [19:00:38]accept exits with 7 [19:00:38]New connection [19:00:38]New thread 3066756452 created [19:00:38]Thread 3066613092 joined [19:00:38]Waiting for new connection... [19:00:38] Sock 7.Parse request [19:00:38]Sock 7.Check first char [19:00:38]Sock 7.First char is OK [19:00:38]request: POST /json_proto HTTP/1.0 [19:00:38]Method: POST [19:00:38]URL: /json_proto [19:00:38]Method is POST - this is cgi request [19:00:38]url: /json_proto [19:00:38]query_string will be loaded in cgi processing [19:00:38]execute_cgi json_proto POST (null) [19:00:38]execute_cgi path=json_proto method=POST [19:00:38]POST find Content-Length [19:00:38]Host: 172.17.42.131:8080 [19:00:38]Content-Length: 688 [19:00:38]Content-Type: application/json [19:00:38] [19:00:38]POST finish read [19:00:38]Found Content-Length = 688 [19:00:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [19:00:38]execute_script... [19:00: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)210508", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 19.440, "sum" : 1500.77, "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" ] } } [19:00:38]POST & json_proto [19:00:38]process_json_proto [19:00:38]json parsed OK: [19:00:38]protocol is kg_v1.0 [19:00:38]action value=close_receipt [19:00:38]process_action close_receipt [19:00:38]cmd_close_receipt [19:00:38]MH_GetDate [19:00:38]Write to MH i2c: F0 00 00 23 0E 20 [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: F0 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: F0 09 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: F0 09 00 23 0E 00 57 F6 17 67 A0 18 CA 66 DC [19:00:38]GetLastDocTimeStamp 1729623534 [19:00:38]current date 1729623639 [19:00:38]FM_GetShiftState [19:00:38]SAM_PROTO_GetShiftState [19:00:38]wFMCommunicate request_size=4 [19:00:38]MH_SAM_APDU [19:00:38]CAPDU: 80 13 01 00 [19:00:38]Write to MH i2c: E2 08 00 24 0E 80 13 01 00 00 00 00 00 AF [19:00:38]Write i2c OK [19:00:38]MH_I2C_Read... [19:00:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:38]Read from MH i2c: E2 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 0E 00 [19:00:38]MH_I2C_Read... [19:00:38]Read from MH i2c: E2 0E 00 24 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A4 [19:00:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:00:38]wFMCommunicate OK [19:00:38]SAM_PROTO_GetShiftState done [19:00:38]FM_GetShiftState done [19:00:38]opened in 1729556094 [19:00:38]opened+sec_in_day 1729642494 [19:00:38]quantity*price = 150076 [19:00:38]sum+1 = 150078 [19:00:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.77 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.37 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 477 22.10.2024 19:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188448 ФПД: 213823323052453 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188448&fm=213823323052453&tin=02508201610067®Number=0000000000100030&sum=150000 [19:00:39]StoreToDocumentArchive [19:00:39]shift 461 fd 188448 [19:00:39]save to /storage/0461/doc_00188448 [19:00:39]save last doc name /storage/0461/doc_00188448 to /storage/kkm_last_doc_name [19:00:39]save OK [19:00:39]Clear old archive folders... [19:00:39]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:00:39]tlvbuf is 00933F70 [19:00:39]SAM_PROTO_ClearQueue [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 09 00 00 [19:00:39]Write to MH i2c: E2 08 00 31 0E 80 09 00 00 00 00 00 00 B1 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 31 0E 00 90 00 B3 [19:00:39]RAPDU: 90 00 [19:00:39]wFMCommunicate OK [19:00:39]SAM_PROTO_ClearQueue done [19:00:39]KKMCreateOFDPacket [19:00:39]OFDProtocolAddRootSTLVToBuf [19:00:39]FM_MakeSignedData [19:00:39]FM_MakeSignedData [19:00:39]SAM_PROTO_SignData [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 0D 01 02 [19:00:39]Write to MH i2c: E2 08 00 32 0E 80 0D 01 02 00 00 00 00 B9 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 32 0E 00 90 00 B4 [19:00:39]RAPDU: 90 00 [19:00:39]wFMCommunicate OK [19:00:39]wFMCommunicate request_size=255 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 DD 01 00 00 F4 03 04 00 57 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E0 02 [19:00:39]Write to MH i2c: E2 02 01 33 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 DD 01 00 00 F4 03 04 00 57 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E0 02 00 00 E1 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 33 0E 00 90 00 B5 [19:00:39]RAPDU: 90 00 [19:00:39]wFMCommunicate OK [19:00:39]wFMCommunicate request_size=16 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C2 78 9F 37 19 A5 [19:00:39]Write to MH i2c: E2 13 00 34 0E 80 0D 02 02 0B 00 00 35 04 06 00 C2 78 9F 37 19 A5 00 00 DF [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 03 00 34 0E 00 90 00 B6 [19:00:39]RAPDU: 90 00 [19:00:39]wFMCommunicate OK [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 0D 03 02 [19:00:39]Write to MH i2c: E2 08 00 35 0E 80 0D 03 02 00 00 00 00 BE [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 0B 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 0B 00 35 0E 00 DB C9 D2 5A 70 1B 5E 63 90 00 DB [19:00:39]RAPDU: DB C9 D2 5A 70 1B 5E 63 90 00 [19:00:39]wFMCommunicate OK [19:00:39]SAM_PROTO_SignData done [19:00:39]FM_MakeSignedData done [19:00:39]CreateOFDProtocolMessage [19:00:39]wFMCommunicate request_size=4 [19:00:39]MH_SAM_APDU [19:00:39]CAPDU: 80 11 00 00 [19:00:39]Write to MH i2c: E2 08 00 36 0E 80 11 00 00 00 00 00 00 BE [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:39]Read from MH i2c: E2 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 17 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: E2 17 00 36 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0C [19:00:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:00:39]wFMCommunicate OK [19:00:39]CreateOFDProtocolMessage done [19:00:39]OFDSenderStorePacket 188448 [19:00:39]StoreOFDPacket docnum=188448 [19:00:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 73 BF 0D 01 4C BE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 DD 01 00 00 F4 03 04 00 57 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E0 02 00 35 04 06 00 C2 78 9F 37 19 A5 DB C9 D2 5A 70 1B 5E 63 [19:00:39]CheckFolder [19:00:39]dirname=/storage/ofd_packets [19:00:39]CheckFolder done [19:00:39]ProducePacketName [19:00:39]name=ofd_packets/00188448 [19:00:39]NVStorageSaveData ofd_packets/00188448 [19:00:39]File name is /storage/ofd_packets/00188448 [19:00:39]Write 307 bytes [19:00:39]NVStorageSaveData done [19:00:39]OFDSenderStorePacket done [19:00:39]KKMCreateOFDPacket done [19:00:39]NVStorageSaveData kkm_last_timestamp [19:00:39]File name is /storage/kkm_last_timestamp [19:00:39]Write 4 bytes [19:00:39]NVStorageSaveData done [19:00:39]ExternCall_PrintAddStr [19:00:39]wPrintStart [19:00:39]Write to MH i2c: 01 00 00 37 0E 45 [19:00:39]Write i2c OK [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: 01 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: 01 07 00 [19:00:39]MH_I2C_Read... [19:00:39]Read from MH i2c: 01 07 00 37 0E 00 00 00 00 00 FF 0F 5A [19:00:39]RasterBufferAndPrint [19:00:39]line Счет N : (1)210508 [19:00:39]line ИНН: 02508201610067 [19:00:39]line Контрольно-Кассовый Чек [19:00:39]line ПРОДАЖА [19:00:39]line ТРК (МРК, ГНК) : 41 [19:00:39]line Товар: 2710194210 [19:00:39]line D-ENERGY ДТ-К-5 [19:00:39]line 19.440 * 77.20 [19:00:39]line = 1500.77 [19:00:39]line НДС 12% НСП 1% [19:00:39]line > о реализуемом товаре [19:00:39]line ОКРУГЛЕНИЕ: -0.77 [19:00:39]line ИТОГО: 1500.00 [19:00:39]line Внесено: 1500.00 [19:00:39]line СДАЧА: 0.00 [19:00:39]line НСП 1% : 13.28 [19:00:39]line НДС 12% : 159.37 [19:00:39]line Наличными: 1500.00 [19:00:39]line Безнал.: 0.00 [19:00:39]line Место: АЗС № 86 "Партнер Нефть" [19:00:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:00:39]line СНО: Общий режим [19:00:39]line Чек 477 22.10.2024 19:00 [19:00:39]line Смена: 461 ФФД: 1.0 [19:00:39]line ЗНМ: 0300000155 [19:00:39]line РНМ: 0000000000100030 [19:00:39]line Версия ККМ: 001 [19:00:39]line ФМ: 0000000000965340 [19:00:39]line ФД: 188448 [19:00:39]line ФПД: 213823323052453 [19:00:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188448&fm=213823323052453&tin=02508201610067®Number=0000000000100030&sum=150000 [19:00:39]written 0, free lines is 4095 [19:00:39]OFD Sender: Processing packet 188448 [packets to send 1062, broken 1061] [19:00:39]ProducePacketName [19:00:39]name=ofd_packets/00188448 [19:00:39]OFD Sender: To server: pG, [19:00:39]CommunicateWithHost lk.salyk.kg:30040 [19:00:39]ConnectInit lk.salyk.kg [19:00:40]Connected sock=10 [19:00:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 73 BF 0D 01 4C BE 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 3D 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 41 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 DD 01 00 00 F4 03 04 00 57 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E0 02 00 35 04 06 00 C2 78 9F 37 19 A5 DB C9 D2 5A 70 1B 5E 63 [19:00:40]Write to MH i2c: 01 00 00 62 0E 70 [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: 01 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: 01 07 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: 01 07 00 62 0E 00 00 00 00 00 6E 0C F1 [19:00:40]RasterBufferAndPrint [19:00:40]line [19:00:40]line [19:00:40]line [19:00:40]line [19:00:40]line [19:00:40]written 0, free lines is 3185 [19:00:40]MH_Cut [19:00:40]Write to MH i2c: D1 01 00 69 0E 01 49 [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: D1 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: D1 01 00 [19:00:40]MH_I2C_Read... [19:00:40]Read from MH i2c: D1 01 00 69 0E 00 48 [19:00:40]Write to MH i2c: 01 00 00 6A 0E 78 [19:00:40]Write i2c OK [19:00:40]MH_I2C_Read... [19:00:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8A 74 47 00 0B 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 20 E0 02 00 F4 03 04 00 44 A0 17 67 B6 04 01 00 00 2D 71 6C CD 7D 52 E9 34 [19:00:40]CommunicateWithHost err = 0 [19:00:40]CheckOFDResponse [19:00:40]1017 (14) - 77093643461234 [19:00:40]1041 (16) - 0000000000965340 [19:00:40]1040 (4) - 188448 [19:00:40]1012 (4) - 22.10.2024 12:53 [19:00:40]1206 (1) - 0 [19:00:40]OFD Sender: Remove packet 188448 [19:00:40]ProducePacketName [19:00:40]name=ofd_packets/00188448 [19:00:40]NVStorageDeleteData [19:00:41]OFD Sender: No OFD packet to send [19:00:41]*** Cut start [19:00:41]*** Partial cut [19:00:41]*** CUTSNS_PIN = 1 [19:00:41]*** CUTSNS_PIN = 0 [19:00:41]*** Brake cut motor [19:00:42]Read from MH i2c: 01 [19:00:42]MH_I2C_Read... [19:00:42]*** Stop cut motor [19:00:42]*** Cut end [19:00:42]Read from MH i2c: 01 07 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: 01 07 00 6A 0E 00 00 00 00 00 FF 0F 8D [19:00:42]process_action close_receipt done [19:00:42]requested_data is exist [19:00:42]produce_requested_data [19:00:42]requested_item fm.sn is exist - process it [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 11 00 00 [19:00:42]Write to MH i2c: E2 08 00 6B 0E 80 11 00 00 00 00 00 00 F3 [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 17 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 17 00 6B 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [19:00:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:00:42]wFMCommunicate OK [19:00:42]requested_item fd.num is exist - process it [19:00:42]SAM_PROTO_GetFieldsCounters [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 13 00 00 [19:00:42]Write to MH i2c: E2 08 00 6C 0E 80 13 00 00 00 00 00 00 F6 [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 62 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 62 00 6C 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 67 [19:00:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 20 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DD 01 00 00 5E 04 04 00 DD 01 00 00 57 04 04 00 DE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:00:42]wFMCommunicate OK [19:00:42]SAM_PROTO_GetFieldsCounters done [19:00:42]requested_item shift.num is exist - process it [19:00:42]requested_item shift.opened is exist - process it [19:00:42]req_shift_opened [19:00:42]FM_GetShiftState [19:00:42]SAM_PROTO_GetShiftState [19:00:42]wFMCommunicate request_size=4 [19:00:42]MH_SAM_APDU [19:00:42]CAPDU: 80 13 01 00 [19:00:42]Write to MH i2c: E2 08 00 6D 0E 80 13 01 00 00 00 00 00 F8 [19:00:42]Write i2c OK [19:00:42]MH_I2C_Read... [19:00:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:00:42]Read from MH i2c: E2 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 0E 00 [19:00:42]MH_I2C_Read... [19:00:42]Read from MH i2c: E2 0E 00 6D 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 ED [19:00:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:00:42]wFMCommunicate OK [19:00:42]SAM_PROTO_GetShiftState done [19:00:42]FM_GetShiftState done [19:00:42]req_shift_opened done [19:00:42]requested_item shift.open_date is exist - process it [19:00:42]req_shift_open_date [19:00:42]req_shift_open_date done [19:00:42]produce_requested_data done [19:00:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188448,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:00:42]process_action_free close_receipt [19:00:42]json_value_free [19:00:42]json_value_free done [19:00:42]process_json_proto returns [19:00:42]Send response to host [19:00:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188448,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:00:42]free response buf [19:00:42]execute_script done [19:00:42]execute_script returns [19:00:42]free content buf [19:00:42]Sock 7.Close socket [19:00:42]Sock 7.Thread stoped [19:00:46]OFD Sender: No OFD packet to send [19:00:51]OFD Sender: No OFD packet to send [19:00:56]OFD Sender: No OFD packet to send [19:01:01]OFD Sender: No OFD packet to send [19:01:06]OFD Sender: No OFD packet to send [19:01:11]OFD Sender: No OFD packet to send [19:01:16]OFD Sender: No OFD packet to send [19:01:21]OFD Sender: No OFD packet to send [19:01:21]accept exits with 9 [19:01:21]New connection [19:01:21]New thread 3066613092 created [19:01:21]Thread 3066756452 joined [19:01:21]Waiting for new connection... [19:01:21] Sock 9.Parse request [19:01:21]Sock 9.Check first char [19:01:21]Sock 9.First char is OK [19:01:21]request: POST /json_proto HTTP/1.0 [19:01:21]Method: POST [19:01:21]URL: /json_proto [19:01:21]Method is POST - this is cgi request [19:01:21]url: /json_proto [19:01:21]query_string will be loaded in cgi processing [19:01:21]execute_cgi json_proto POST (null) [19:01:21]execute_cgi path=json_proto method=POST [19:01:21]POST find Content-Length [19:01:21]Host: 172.17.42.131:8080 [19:01:21]Content-Length: 682 [19:01:21]Content-Type: application/json [19:01:21] [19:01:21]POST finish read [19:01:21]Found Content-Length = 682 [19:01:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [19:01:21]execute_script... [19:01:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210509", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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" ] } } [19:01:21]POST & json_proto [19:01:21]process_json_proto [19:01:21]json parsed OK: [19:01:21]protocol is kg_v1.0 [19:01:21]action value=close_receipt [19:01:21]process_action close_receipt [19:01:21]cmd_close_receipt [19:01:21]MH_GetDate [19:01:21]Write to MH i2c: F0 00 00 6E 0E 6B [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: F0 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: F0 09 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: F0 09 00 6E 0E 00 83 F6 17 67 A0 18 CA 66 53 [19:01:21]GetLastDocTimeStamp 1729623639 [19:01:21]current date 1729623683 [19:01:21]FM_GetShiftState [19:01:21]SAM_PROTO_GetShiftState [19:01:21]wFMCommunicate request_size=4 [19:01:21]MH_SAM_APDU [19:01:21]CAPDU: 80 13 01 00 [19:01:21]Write to MH i2c: E2 08 00 6F 0E 80 13 01 00 00 00 00 00 FA [19:01:21]Write i2c OK [19:01:21]MH_I2C_Read... [19:01:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:21]Read from MH i2c: E2 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 0E 00 [19:01:21]MH_I2C_Read... [19:01:21]Read from MH i2c: E2 0E 00 6F 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EF [19:01:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:01:21]wFMCommunicate OK [19:01:21]SAM_PROTO_GetShiftState done [19:01:21]FM_GetShiftState done [19:01:21]opened in 1729556094 [19:01:21]opened+sec_in_day 1729642494 [19:01:21]quantity*price = 200043 [19:01:21]sum+1 = 200044 [19:01:21]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.43 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 478 22.10.2024 19:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188449 ФПД: 189480297261628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190123&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188449&fm=189480297261628&tin=02508201610067®Number=0000000000100030&sum=200000 [19:01:22]StoreToDocumentArchive [19:01:22]shift 461 fd 188449 [19:01:22]save to /storage/0461/doc_00188449 [19:01:22]save last doc name /storage/0461/doc_00188449 to /storage/kkm_last_doc_name [19:01:22]save OK [19:01:22]Clear old archive folders... [19:01:22]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:01:22]tlvbuf is 008E2AA0 [19:01:22]SAM_PROTO_ClearQueue [19:01:22]wFMCommunicate request_size=4 [19:01:22]MH_SAM_APDU [19:01:22]CAPDU: 80 09 00 00 [19:01:22]Write to MH i2c: E2 08 00 7C 0E 80 09 00 00 00 00 00 00 FC [19:01:22]Write i2c OK [19:01:22]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 7C 0E 00 90 00 FE [19:01:23]RAPDU: 90 00 [19:01:23]wFMCommunicate OK [19:01:23]SAM_PROTO_ClearQueue done [19:01:23]KKMCreateOFDPacket [19:01:23]OFDProtocolAddRootSTLVToBuf [19:01:23]FM_MakeSignedData [19:01:23]FM_MakeSignedData [19:01:23]SAM_PROTO_SignData [19:01:23]wFMCommunicate request_size=4 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 0D 01 02 [19:01:23]Write to MH i2c: E2 08 00 7D 0E 80 0D 01 02 00 00 00 00 04 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 7D 0E 00 90 00 FF [19:01:23]RAPDU: 90 00 [19:01:23]wFMCommunicate OK [19:01:23]wFMCommunicate request_size=255 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 50 69 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 6B 0D 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FB 52 00 00 00 00 07 04 06 00 40 0D 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 DE 01 00 00 F4 03 04 00 83 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E0 02 00 35 04 06 00 AC [19:01:23]Write to MH i2c: E2 02 01 7E 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 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 DE 01 00 00 F4 03 04 00 83 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E0 02 00 35 04 06 00 AC 00 00 72 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 7E 0E 00 90 00 00 [19:01:23]RAPDU: 90 00 [19:01:23]wFMCommunicate OK [19:01:23]wFMCommunicate request_size=10 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 0D 02 02 05 54 D1 CF 6A 3C [19:01:23]Write to MH i2c: E2 0D 00 7F 0E 80 0D 02 02 05 00 54 D1 CF 6A 3C 00 00 AB [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 03 00 7F 0E 00 90 00 01 [19:01:23]RAPDU: 90 00 [19:01:23]wFMCommunicate OK [19:01:23]wFMCommunicate request_size=4 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 0D 03 02 [19:01:23]Write to MH i2c: E2 08 00 80 0E 80 0D 03 02 00 00 00 00 09 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 0B 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 0B 00 80 0E 00 A5 C3 17 6D EB C0 0A 35 90 00 E0 [19:01:23]RAPDU: A5 C3 17 6D EB C0 0A 35 90 00 [19:01:23]wFMCommunicate OK [19:01:23]SAM_PROTO_SignData done [19:01:23]FM_MakeSignedData done [19:01:23]CreateOFDProtocolMessage [19:01:23]wFMCommunicate request_size=4 [19:01:23]MH_SAM_APDU [19:01:23]CAPDU: 80 11 00 00 [19:01:23]Write to MH i2c: E2 08 00 81 0E 80 11 00 00 00 00 00 00 09 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:23]Read from MH i2c: E2 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 17 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: E2 17 00 81 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [19:01:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:01:23]wFMCommunicate OK [19:01:23]CreateOFDProtocolMessage done [19:01:23]OFDSenderStorePacket 188449 [19:01:23]StoreOFDPacket docnum=188449 [19:01:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA 90 07 01 36 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DE 01 00 00 F4 03 04 00 83 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E0 02 00 35 04 06 00 AC 54 D1 CF 6A 3C A5 C3 17 6D EB C0 0A 35 [19:01:23]CheckFolder [19:01:23]dirname=/storage/ofd_packets [19:01:23]CheckFolder done [19:01:23]ProducePacketName [19:01:23]name=ofd_packets/00188449 [19:01:23]NVStorageSaveData ofd_packets/00188449 [19:01:23]File name is /storage/ofd_packets/00188449 [19:01:23]Write 301 bytes [19:01:23]NVStorageSaveData done [19:01:23]OFDSenderStorePacket done [19:01:23]KKMCreateOFDPacket done [19:01:23]NVStorageSaveData kkm_last_timestamp [19:01:23]File name is /storage/kkm_last_timestamp [19:01:23]Write 4 bytes [19:01:23]NVStorageSaveData done [19:01:23]ExternCall_PrintAddStr [19:01:23]wPrintStart [19:01:23]Write to MH i2c: 01 00 00 82 0E 90 [19:01:23]Write i2c OK [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: 01 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: 01 07 00 [19:01:23]MH_I2C_Read... [19:01:23]Read from MH i2c: 01 07 00 82 0E 00 00 00 00 00 FF 0F A5 [19:01:23]RasterBufferAndPrint [19:01:23]line Счет N : (1)210509 [19:01:23]line ИНН: 02508201610067 [19:01:23]line Контрольно-Кассовый Чек [19:01:23]line ПРОДАЖА [19:01:23]line ТРК (МРК, ГНК) : 13 [19:01:23]line Товар: 2710124500 [19:01:23]line Аи-95-К-3 [19:01:23]line 26.960 * 74.20 [19:01:23]line = 2000.43 [19:01:23]line НДС 12% НСП 1% [19:01:23]line > о реализуемом товаре [19:01:23]line ОКРУГЛЕНИЕ: -0.43 [19:01:23]line ИТОГО: 2000.00 [19:01:23]line Внесено: 2000.00 [19:01:23]line СДАЧА: 0.00 [19:01:23]line НСП 1% : 17.70 [19:01:23]line НДС 12% : 212.43 [19:01:23]line Наличными: 2000.00 [19:01:23]line Безнал.: 0.00 [19:01:23]line Место: АЗС № 86 "Партнер Нефть" [19:01:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:01:23]line СНО: Общий режим [19:01:23]line Чек 478 22.10.2024 19:01 [19:01:23]line Смена: 461 ФФД: 1.0 [19:01:23]line ЗНМ: 0300000155 [19:01:23]line РНМ: 0000000000100030 [19:01:23]line Версия ККМ: 001 [19:01:23]line ФМ: 0000000000965340 [19:01:23]line ФД: 188449 [19:01:23]line ФПД: 189480297261628 [19:01:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190123&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188449&fm=189480297261628&tin=02508201610067®Number=0000000000100030&sum=200000 [19:01:23]written 0, free lines is 4095 [19:01:23]OFD Sender: Processing packet 188449 [packets to send 1062, broken 1061] [19:01:23]ProducePacketName [19:01:23]name=ofd_packets/00188449 [19:01:23]OFD Sender: To server: pG, [19:01:23]CommunicateWithHost lk.salyk.kg:30040 [19:01:23]ConnectInit lk.salyk.kg [19:01:23]Connected sock=7 [19:01:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DA 90 07 01 36 6E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 DE 01 00 00 F4 03 04 00 83 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E0 02 00 35 04 06 00 AC 54 D1 CF 6A 3C A5 C3 17 6D EB C0 0A 35 [19:01:24]Write to MH i2c: 01 00 00 AD 0E BB [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: 01 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: 01 07 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: 01 07 00 AD 0E 00 00 00 00 00 67 0C 35 [19:01:24]RasterBufferAndPrint [19:01:24]line [19:01:24]line [19:01:24]line [19:01:24]line [19:01:24]line [19:01:24]written 0, free lines is 3178 [19:01:24]MH_Cut [19:01:24]Write to MH i2c: D1 01 00 B4 0E 01 94 [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: D1 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: D1 01 00 [19:01:24]MH_I2C_Read... [19:01:24]Read from MH i2c: D1 01 00 B4 0E 00 93 [19:01:24]Write to MH i2c: 01 00 00 B5 0E C3 [19:01:24]Write i2c OK [19:01:24]MH_I2C_Read... [19:01:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CA 0D 47 00 81 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 21 E0 02 00 F4 03 04 00 6F A0 17 67 B6 04 01 00 00 01 8A 32 E8 B4 FA 8F 65 [19:01:24]CommunicateWithHost err = 0 [19:01:24]CheckOFDResponse [19:01:24]1017 (14) - 77093643461234 [19:01:24]1041 (16) - 0000000000965340 [19:01:24]1040 (4) - 188449 [19:01:24]1012 (4) - 22.10.2024 12:54 [19:01:24]1206 (1) - 0 [19:01:24]OFD Sender: Remove packet 188449 [19:01:24]ProducePacketName [19:01:24]name=ofd_packets/00188449 [19:01:24]NVStorageDeleteData [19:01:24]OFD Sender: No OFD packet to send [19:01:25]*** Cut start [19:01:25]*** Partial cut [19:01:25]*** CUTSNS_PIN = 1 [19:01:25]*** CUTSNS_PIN = 0 [19:01:25]*** Brake cut motor [19:01:25]Read from MH i2c: 01 [19:01:25]MH_I2C_Read... [19:01:25]*** Stop cut motor [19:01:25]*** Cut end [19:01:25]Read from MH i2c: 01 07 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: 01 07 00 B5 0E 00 00 00 00 00 FF 0F D8 [19:01:25]process_action close_receipt done [19:01:25]requested_data is exist [19:01:25]produce_requested_data [19:01:25]requested_item fm.sn is exist - process it [19:01:25]wFMCommunicate request_size=4 [19:01:25]MH_SAM_APDU [19:01:25]CAPDU: 80 11 00 00 [19:01:25]Write to MH i2c: E2 08 00 B6 0E 80 11 00 00 00 00 00 00 3E [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:01:25]Read from MH i2c: E2 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 17 00 [19:01:25]MH_I2C_Read... [19:01:25]Read from MH i2c: E2 17 00 B6 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [19:01:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:01:25]wFMCommunicate OK [19:01:25]requested_item fd.num is exist - process it [19:01:25]SAM_PROTO_GetFieldsCounters [19:01:25]wFMCommunicate request_size=4 [19:01:25]MH_SAM_APDU [19:01:25]CAPDU: 80 13 00 00 [19:01:25]Write to MH i2c: E2 08 00 B7 0E 80 13 00 00 00 00 00 00 41 [19:01:25]Write i2c OK [19:01:25]MH_I2C_Read... [19:01:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:01:26]Read from MH i2c: E2 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 62 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 62 00 B7 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 B6 [19:01:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 21 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DE 01 00 00 5E 04 04 00 DE 01 00 00 57 04 04 00 DF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:01:26]wFMCommunicate OK [19:01:26]SAM_PROTO_GetFieldsCounters done [19:01:26]requested_item shift.num is exist - process it [19:01:26]requested_item shift.opened is exist - process it [19:01:26]req_shift_opened [19:01:26]FM_GetShiftState [19:01:26]SAM_PROTO_GetShiftState [19:01:26]wFMCommunicate request_size=4 [19:01:26]MH_SAM_APDU [19:01:26]CAPDU: 80 13 01 00 [19:01:26]Write to MH i2c: E2 08 00 B8 0E 80 13 01 00 00 00 00 00 43 [19:01:26]Write i2c OK [19:01:26]MH_I2C_Read... [19:01:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:01:26]Read from MH i2c: E2 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 0E 00 [19:01:26]MH_I2C_Read... [19:01:26]Read from MH i2c: E2 0E 00 B8 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [19:01:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:01:26]wFMCommunicate OK [19:01:26]SAM_PROTO_GetShiftState done [19:01:26]FM_GetShiftState done [19:01:26]req_shift_opened done [19:01:26]requested_item shift.open_date is exist - process it [19:01:26]req_shift_open_date [19:01:26]req_shift_open_date done [19:01:26]produce_requested_data done [19:01:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188449,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:01:26]process_action_free close_receipt [19:01:26]json_value_free [19:01:26]json_value_free done [19:01:26]process_json_proto returns [19:01:26]Send response to host [19:01:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188449,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:01:26]free response buf [19:01:26]execute_script done [19:01:26]execute_script returns [19:01:26]free content buf [19:01:26]Sock 9.Close socket [19:01:26]Sock 9.Thread stoped [19:01:29]OFD Sender: No OFD packet to send [19:01:34]OFD Sender: No OFD packet to send [19:01:39]OFD Sender: No OFD packet to send [19:01:44]OFD Sender: No OFD packet to send [19:01:49]OFD Sender: No OFD packet to send [19:01:54]OFD Sender: No OFD packet to send [19:01:59]OFD Sender: No OFD packet to send [19:02:04]OFD Sender: No OFD packet to send [19:02:09]OFD Sender: No OFD packet to send [19:02:14]OFD Sender: No OFD packet to send [19:02:20]OFD Sender: No OFD packet to send [19:02:25]OFD Sender: No OFD packet to send [19:02:30]OFD Sender: No OFD packet to send [19:02:35]OFD Sender: No OFD packet to send [19:02:40]OFD Sender: No OFD packet to send [19:02:45]OFD Sender: No OFD packet to send [19:02:50]OFD Sender: No OFD packet to send [19:02:55]OFD Sender: No OFD packet to send [19:02:56]accept exits with 10 [19:02:56]New connection [19:02:56]New thread 3066756452 created [19:02:56]Thread 3066613092 joined [19:02:56]Waiting for new connection... [19:02:56] Sock 10.Parse request [19:02:56]Sock 10.Check first char [19:02:56]Sock 10.First char is OK [19:02:56]request: POST /json_proto HTTP/1.0 [19:02:56]Method: POST [19:02:56]URL: /json_proto [19:02:56]Method is POST - this is cgi request [19:02:56]url: /json_proto [19:02:56]query_string will be loaded in cgi processing [19:02:56]execute_cgi json_proto POST (null) [19:02:56]execute_cgi path=json_proto method=POST [19:02:56]POST find Content-Length [19:02:56]Host: 172.17.42.131:8080 [19:02:56]Content-Length: 688 [19:02:56]Content-Type: application/json [19:02:56] [19:02:56]POST finish read [19:02:56]Found Content-Length = 688 [19:02:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [19:02:56]execute_script... [19:02: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)210510", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [19:02:56]POST & json_proto [19:02:56]process_json_proto [19:02:56]json parsed OK: [19:02:56]protocol is kg_v1.0 [19:02:56]action value=close_receipt [19:02:56]process_action close_receipt [19:02:56]cmd_close_receipt [19:02:56]MH_GetDate [19:02:56]Write to MH i2c: F0 00 00 B9 0E B6 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: F0 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: F0 09 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: F0 09 00 B9 0E 00 E2 F6 17 67 A0 18 CA 66 FD [19:02:56]GetLastDocTimeStamp 1729623683 [19:02:56]current date 1729623778 [19:02:56]FM_GetShiftState [19:02:56]SAM_PROTO_GetShiftState [19:02:56]wFMCommunicate request_size=4 [19:02:56]MH_SAM_APDU [19:02:56]CAPDU: 80 13 01 00 [19:02:56]Write to MH i2c: E2 08 00 BA 0E 80 13 01 00 00 00 00 00 45 [19:02:56]Write i2c OK [19:02:56]MH_I2C_Read... [19:02:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:56]Read from MH i2c: E2 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 0E 00 [19:02:56]MH_I2C_Read... [19:02:56]Read from MH i2c: E2 0E 00 BA 0E 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [19:02:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:02:56]wFMCommunicate OK [19:02:56]SAM_PROTO_GetShiftState done [19:02:56]FM_GetShiftState done [19:02:56]opened in 1729556094 [19:02:56]opened+sec_in_day 1729642494 [19:02:56]quantity*price = 200025 [19:02:56]sum+1 = 200026 [19:02:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 479 22.10.2024 19:02 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188450 ФПД: 173808732130162 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188450&fm=173808732130162&tin=02508201610067®Number=0000000000100030&sum=200000 [19:02:58]StoreToDocumentArchive [19:02:58]shift 461 fd 188450 [19:02:58]save to /storage/0461/doc_00188450 [19:02:58]save last doc name /storage/0461/doc_00188450 to /storage/kkm_last_doc_name [19:02:58]save OK [19:02:58]Clear old archive folders... [19:02:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:02:58]tlvbuf is 00940600 [19:02:58]SAM_PROTO_ClearQueue [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 09 00 00 [19:02:58]Write to MH i2c: E2 08 00 C7 0E 80 09 00 00 00 00 00 00 47 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 C7 0E 00 90 00 49 [19:02:58]RAPDU: 90 00 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_ClearQueue done [19:02:58]KKMCreateOFDPacket [19:02:58]OFDProtocolAddRootSTLVToBuf [19:02:58]FM_MakeSignedData [19:02:58]FM_MakeSignedData [19:02:58]SAM_PROTO_SignData [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 0D 01 02 [19:02:58]Write to MH i2c: E2 08 00 C8 0E 80 0D 01 02 00 00 00 00 4F [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 C8 0E 00 90 00 4A [19:02:58]RAPDU: 90 00 [19:02:58]wFMCommunicate OK [19:02:58]wFMCommunicate request_size=255 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DF 01 00 00 F4 03 04 00 E2 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E0 02 [19:02:58]Write to MH i2c: E2 02 01 C9 0E 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DF 01 00 00 F4 03 04 00 E2 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E0 02 00 00 F8 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 C9 0E 00 90 00 4B [19:02:58]RAPDU: 90 00 [19:02:58]wFMCommunicate OK [19:02:58]wFMCommunicate request_size=16 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 9E 13 FF BC CB 72 [19:02:58]Write to MH i2c: E2 13 00 CA 0E 80 0D 02 02 0B 00 00 35 04 06 00 9E 13 FF BC CB 72 00 00 50 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 03 00 CA 0E 00 90 00 4C [19:02:58]RAPDU: 90 00 [19:02:58]wFMCommunicate OK [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 0D 03 02 [19:02:58]Write to MH i2c: E2 08 00 CB 0E 80 0D 03 02 00 00 00 00 54 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0B 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 0B 00 CB 0E 00 BF 15 1E 27 48 39 BC 29 90 00 D4 [19:02:58]RAPDU: BF 15 1E 27 48 39 BC 29 90 00 [19:02:58]wFMCommunicate OK [19:02:58]SAM_PROTO_SignData done [19:02:58]FM_MakeSignedData done [19:02:58]CreateOFDProtocolMessage [19:02:58]wFMCommunicate request_size=4 [19:02:58]MH_SAM_APDU [19:02:58]CAPDU: 80 11 00 00 [19:02:58]Write to MH i2c: E2 08 00 CC 0E 80 11 00 00 00 00 00 00 54 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:58]Read from MH i2c: E2 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 17 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: E2 17 00 CC 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [19:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:02:58]wFMCommunicate OK [19:02:58]CreateOFDProtocolMessage done [19:02:58]OFDSenderStorePacket 188450 [19:02:58]StoreOFDPacket docnum=188450 [19:02:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B2 AA 0D 01 C9 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DF 01 00 00 F4 03 04 00 E2 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E0 02 00 35 04 06 00 9E 13 FF BC CB 72 BF 15 1E 27 48 39 BC 29 [19:02:58]CheckFolder [19:02:58]dirname=/storage/ofd_packets [19:02:58]CheckFolder done [19:02:58]ProducePacketName [19:02:58]name=ofd_packets/00188450 [19:02:58]NVStorageSaveData ofd_packets/00188450 [19:02:58]File name is /storage/ofd_packets/00188450 [19:02:58]Write 307 bytes [19:02:58]NVStorageSaveData done [19:02:58]OFDSenderStorePacket done [19:02:58]KKMCreateOFDPacket done [19:02:58]NVStorageSaveData kkm_last_timestamp [19:02:58]File name is /storage/kkm_last_timestamp [19:02:58]Write 4 bytes [19:02:58]NVStorageSaveData done [19:02:58]ExternCall_PrintAddStr [19:02:58]wPrintStart [19:02:58]Write to MH i2c: 01 00 00 CD 0E DB [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 [19:02:58]MH_I2C_Read... [19:02:58]Read from MH i2c: 01 07 00 CD 0E 00 00 00 00 00 FF 0F F0 [19:02:58]RasterBufferAndPrint [19:02:58]line Счет N : (1)210510 [19:02:58]line ИНН: 02508201610067 [19:02:58]line Контрольно-Кассовый Чек [19:02:58]line ПРОДАЖА [19:02:58]line ТРК (МРК, ГНК) : 41 [19:02:58]line Товар: 2710194210 [19:02:58]line D-ENERGY ДТ-К-5 [19:02:58]line 25.910 * 77.20 [19:02:58]line = 2000.25 [19:02:58]line НДС 12% НСП 1% [19:02:58]line > о реализуемом товаре [19:02:58]line ОКРУГЛЕНИЕ: -0.25 [19:02:58]line ИТОГО: 2000.00 [19:02:58]line Внесено: 2000.00 [19:02:58]line СДАЧА: 0.00 [19:02:58]line НСП 1% : 17.70 [19:02:58]line НДС 12% : 212.42 [19:02:58]line Наличными: 2000.00 [19:02:58]line Безнал.: 0.00 [19:02:58]line Место: АЗС № 86 "Партнер Нефть" [19:02:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:02:58]line СНО: Общий режим [19:02:58]line Чек 479 22.10.2024 19:02 [19:02:58]line Смена: 461 ФФД: 1.0 [19:02:58]line ЗНМ: 0300000155 [19:02:58]line РНМ: 0000000000100030 [19:02:58]line Версия ККМ: 001 [19:02:58]line ФМ: 0000000000965340 [19:02:58]line ФД: 188450 [19:02:58]line ФПД: 173808732130162 [19:02:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190258&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188450&fm=173808732130162&tin=02508201610067®Number=0000000000100030&sum=200000 [19:02:58]written 0, free lines is 4095 [19:02:58]OFD Sender: Processing packet 188450 [packets to send 1062, broken 1061] [19:02:58]ProducePacketName [19:02:58]name=ofd_packets/00188450 [19:02:58]OFD Sender: To server: pG, [19:02:58]CommunicateWithHost lk.salyk.kg:30040 [19:02:58]ConnectInit lk.salyk.kg [19:02:59]Connected sock=7 [19:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 B2 AA 0D 01 C9 18 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 DF 01 00 00 F4 03 04 00 E2 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E0 02 00 35 04 06 00 9E 13 FF BC CB 72 BF 15 1E 27 48 39 BC 29 [19:02:59]Write to MH i2c: 01 00 00 F8 0E 06 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: 01 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: 01 07 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: 01 07 00 F8 0E 00 00 00 00 00 64 0C 7D [19:02:59]RasterBufferAndPrint [19:02:59]line [19:02:59]line [19:02:59]line [19:02:59]line [19:02:59]line [19:02:59]written 0, free lines is 3176 [19:02:59]MH_Cut [19:02:59]Write to MH i2c: D1 01 00 FF 0E 01 DF [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: D1 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: D1 01 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: D1 01 00 FF 0E 00 DE [19:02:59]Write to MH i2c: 01 00 00 00 0F 0F [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DC A0 47 00 1E 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 22 E0 02 00 F4 03 04 00 CE A0 17 67 B6 04 01 00 00 43 AE B3 7C 05 45 E3 C2 [19:02:59]CommunicateWithHost err = 0 [19:02:59]CheckOFDResponse [19:02:59]1017 (14) - 77093643461234 [19:02:59]1041 (16) - 0000000000965340 [19:02:59]1040 (4) - 188450 [19:02:59]1012 (4) - 22.10.2024 12:55 [19:02:59]1206 (1) - 0 [19:02:59]OFD Sender: Remove packet 188450 [19:02:59]ProducePacketName [19:02:59]name=ofd_packets/00188450 [19:02:59]NVStorageDeleteData [19:02:59]OFD Sender: No OFD packet to send [19:03:00]*** Cut start [19:03:00]*** Partial cut [19:03:00]*** CUTSNS_PIN = 1 [19:03:00]*** CUTSNS_PIN = 0 [19:03:00]*** Brake cut motor [19:03:00]Read from MH i2c: 01 [19:03:00]MH_I2C_Read... [19:03:00]*** Stop cut motor [19:03:00]*** Cut end [19:03:00]Read from MH i2c: 01 07 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: 01 07 00 00 0F 00 00 00 00 00 FF 0F 24 [19:03:00]process_action close_receipt done [19:03:00]requested_data is exist [19:03:00]produce_requested_data [19:03:00]requested_item fm.sn is exist - process it [19:03:00]wFMCommunicate request_size=4 [19:03:00]MH_SAM_APDU [19:03:00]CAPDU: 80 11 00 00 [19:03:00]Write to MH i2c: E2 08 00 01 0F 80 11 00 00 00 00 00 00 8A [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:01]Read from MH i2c: E2 17 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 17 00 01 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [19:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:01]wFMCommunicate OK [19:03:01]requested_item fd.num is exist - process it [19:03:01]SAM_PROTO_GetFieldsCounters [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 13 00 00 [19:03:01]Write to MH i2c: E2 08 00 02 0F 80 13 00 00 00 00 00 00 8D [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 62 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 62 00 02 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 06 [19:03:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 22 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 DF 01 00 00 5E 04 04 00 DF 01 00 00 57 04 04 00 E0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:01]wFMCommunicate OK [19:03:01]SAM_PROTO_GetFieldsCounters done [19:03:01]requested_item shift.num is exist - process it [19:03:01]requested_item shift.opened is exist - process it [19:03:01]req_shift_opened [19:03:01]FM_GetShiftState [19:03:01]SAM_PROTO_GetShiftState [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 13 01 00 [19:03:01]Write to MH i2c: E2 08 00 03 0F 80 13 01 00 00 00 00 00 8F [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 03 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [19:03:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:03:01]wFMCommunicate OK [19:03:01]SAM_PROTO_GetShiftState done [19:03:01]FM_GetShiftState done [19:03:01]req_shift_opened done [19:03:01]requested_item shift.open_date is exist - process it [19:03:01]req_shift_open_date [19:03:01]req_shift_open_date done [19:03:01]produce_requested_data done [19:03:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188450,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:03:01]process_action_free close_receipt [19:03:01]json_value_free [19:03:01]json_value_free done [19:03:01]process_json_proto returns [19:03:01]Send response to host [19:03:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188450,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:03:01]free response buf [19:03:01]execute_script done [19:03:01]execute_script returns [19:03:01]free content buf [19:03:01]Sock 10.Close socket [19:03:01]Sock 10.Thread stoped [19:03:01]accept exits with 9 [19:03:01]New connection [19:03:01]New thread 3066613092 created [19:03:01]Thread 3066756452 joined [19:03:01]Waiting for new connection... [19:03:01] Sock 9.Parse request [19:03:01]Sock 9.Check first char [19:03:01]Sock 9.First char is OK [19:03:01]request: POST /json_proto HTTP/1.0 [19:03:01]Method: POST [19:03:01]URL: /json_proto [19:03:01]Method is POST - this is cgi request [19:03:01]url: /json_proto [19:03:01]query_string will be loaded in cgi processing [19:03:01]execute_cgi json_proto POST (null) [19:03:01]execute_cgi path=json_proto method=POST [19:03:01]POST find Content-Length [19:03:01]Host: 172.17.42.131:8080 [19:03:01]Content-Length: 682 [19:03:01]Content-Type: application/json [19:03:01] [19:03:01]POST finish read [19:03:01]Found Content-Length = 682 [19:03:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:01]execute_script... [19:03: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)210511", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:03:01]POST & json_proto [19:03:01]process_json_proto [19:03:01]json parsed OK: [19:03:01]protocol is kg_v1.0 [19:03:01]action value=close_receipt [19:03:01]process_action close_receipt [19:03:01]cmd_close_receipt [19:03:01]MH_GetDate [19:03:01]Write to MH i2c: F0 00 00 04 0F 02 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: F0 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: F0 09 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: F0 09 00 04 0F 00 E6 F6 17 67 A0 18 CA 66 4D [19:03:01]GetLastDocTimeStamp 1729623778 [19:03:01]current date 1729623782 [19:03:01]FM_GetShiftState [19:03:01]SAM_PROTO_GetShiftState [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 13 01 00 [19:03:01]Write to MH i2c: E2 08 00 05 0F 80 13 01 00 00 00 00 00 91 [19:03:01]Write i2c OK [19:03:01]MH_I2C_Read... [19:03:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:01]Read from MH i2c: E2 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: E2 0E 00 05 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 86 [19:03:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:03:01]wFMCommunicate OK [19:03:01]SAM_PROTO_GetShiftState done [19:03:01]FM_GetShiftState done [19:03:01]opened in 1729556094 [19:03:01]opened+sec_in_day 1729642494 [19:03:01]quantity*price = 100015 [19:03:01]sum+1 = 100017 [19:03:01]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 480 22.10.2024 19:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188451 ФПД: 195960134975868 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190302&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188451&fm=195960134975868&tin=02508201610067®Number=0000000000100030&sum=100000 [19:03:02]StoreToDocumentArchive [19:03:02]shift 461 fd 188451 [19:03:02]save to /storage/0461/doc_00188451 [19:03:02]save last doc name /storage/0461/doc_00188451 to /storage/kkm_last_doc_name [19:03:02]save OK [19:03:02]Clear old archive folders... [19:03:02]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:03:02]tlvbuf is 00936940 [19:03:02]SAM_PROTO_ClearQueue [19:03:02]wFMCommunicate request_size=4 [19:03:02]MH_SAM_APDU [19:03:02]CAPDU: 80 09 00 00 [19:03:02]Write to MH i2c: E2 08 00 12 0F 80 09 00 00 00 00 00 00 93 [19:03:02]Write i2c OK [19:03:02]MH_I2C_Read... [19:03:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:03:02]Read from MH i2c: E2 [19:03:02]MH_I2C_Read... [19:03:02]Read from MH i2c: E2 03 00 [19:03:02]MH_I2C_Read... [19:03:02]Read from MH i2c: E2 03 00 12 0F 00 90 00 95 [19:03:02]RAPDU: 90 00 [19:03:02]wFMCommunicate OK [19:03:02]SAM_PROTO_ClearQueue done [19:03:02]KKMCreateOFDPacket [19:03:02]OFDProtocolAddRootSTLVToBuf [19:03:02]FM_MakeSignedData [19:03:02]FM_MakeSignedData [19:03:02]SAM_PROTO_SignData [19:03:02]wFMCommunicate request_size=4 [19:03:02]MH_SAM_APDU [19:03:02]CAPDU: 80 0D 01 02 [19:03:02]Write to MH i2c: E2 08 00 13 0F 80 0D 01 02 00 00 00 00 9B [19:03:02]Write i2c OK [19:03:02]MH_I2C_Read... [19:03:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:03:02]Read from MH i2c: E2 [19:03:02]MH_I2C_Read... [19:03:02]Read from MH i2c: E2 03 00 [19:03:02]MH_I2C_Read... [19:03:02]Read from MH i2c: E2 03 00 13 0F 00 90 00 96 [19:03:02]RAPDU: 90 00 [19:03:02]wFMCommunicate OK [19:03:02]wFMCommunicate request_size=255 [19:03:02]MH_SAM_APDU [19:03: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 E6 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E0 02 00 35 04 06 00 B2 [19:03:02]Write to MH i2c: E2 02 01 14 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 E6 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E0 02 00 35 04 06 00 B2 00 00 C8 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 14 0F 00 90 00 97 [19:03:03]RAPDU: 90 00 [19:03:03]wFMCommunicate OK [19:03:03]wFMCommunicate request_size=10 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 0D 02 02 05 39 86 3C 41 7C [19:03:03]Write to MH i2c: E2 0D 00 15 0F 80 0D 02 02 05 00 39 86 3C 41 7C 00 00 60 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 03 00 15 0F 00 90 00 98 [19:03:03]RAPDU: 90 00 [19:03:03]wFMCommunicate OK [19:03:03]wFMCommunicate request_size=4 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 0D 03 02 [19:03:03]Write to MH i2c: E2 08 00 16 0F 80 0D 03 02 00 00 00 00 A0 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 0B 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 0B 00 16 0F 00 51 8B 5D E6 93 32 BF 27 90 00 6B [19:03:03]RAPDU: 51 8B 5D E6 93 32 BF 27 90 00 [19:03:03]wFMCommunicate OK [19:03:03]SAM_PROTO_SignData done [19:03:03]FM_MakeSignedData done [19:03:03]CreateOFDProtocolMessage [19:03:03]wFMCommunicate request_size=4 [19:03:03]MH_SAM_APDU [19:03:03]CAPDU: 80 11 00 00 [19:03:03]Write to MH i2c: E2 08 00 17 0F 80 11 00 00 00 00 00 00 A0 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:03]Read from MH i2c: E2 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 17 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: E2 17 00 17 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [19:03:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:03]wFMCommunicate OK [19:03:03]CreateOFDProtocolMessage done [19:03:03]OFDSenderStorePacket 188451 [19:03:03]StoreOFDPacket docnum=188451 [19:03:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 DE 07 01 1E 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 E6 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E0 02 00 35 04 06 00 B2 39 86 3C 41 7C 51 8B 5D E6 93 32 BF 27 [19:03:03]CheckFolder [19:03:03]dirname=/storage/ofd_packets [19:03:03]CheckFolder done [19:03:03]ProducePacketName [19:03:03]name=ofd_packets/00188451 [19:03:03]NVStorageSaveData ofd_packets/00188451 [19:03:03]File name is /storage/ofd_packets/00188451 [19:03:03]Write 301 bytes [19:03:03]NVStorageSaveData done [19:03:03]OFDSenderStorePacket done [19:03:03]KKMCreateOFDPacket done [19:03:03]NVStorageSaveData kkm_last_timestamp [19:03:03]File name is /storage/kkm_last_timestamp [19:03:03]Write 4 bytes [19:03:03]NVStorageSaveData done [19:03:03]ExternCall_PrintAddStr [19:03:03]wPrintStart [19:03:03]Write to MH i2c: 01 00 00 18 0F 27 [19:03:03]Write i2c OK [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: 01 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: 01 07 00 [19:03:03]MH_I2C_Read... [19:03:03]Read from MH i2c: 01 07 00 18 0F 00 00 00 00 00 FF 0F 3C [19:03:03]RasterBufferAndPrint [19:03:03]line Счет N : (1)210511 [19:03:03]line ИНН: 02508201610067 [19:03:03]line Контрольно-Кассовый Чек [19:03:03]line ПРОДАЖА [19:03:03]line ТРК (МРК, ГНК) : 32 [19:03:03]line Товар: 2710124130 [19:03:03]line Аи-92-К-3 [19:03:03]line 14.950 * 66.90 [19:03:03]line = 1000.16 [19:03:03]line НДС 12% НСП 1% [19:03:03]line > о реализуемом товаре [19:03:03]line ОКРУГЛЕНИЕ: -0.16 [19:03:03]line ИТОГО: 1000.00 [19:03:03]line Внесено: 1000.00 [19:03:03]line СДАЧА: 0.00 [19:03:03]line НСП 1% : 8.85 [19:03:03]line НДС 12% : 106.21 [19:03:03]line Наличными: 1000.00 [19:03:03]line Безнал.: 0.00 [19:03:03]line Место: АЗС № 86 "Партнер Нефть" [19:03:03]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:03:03]line СНО: Общий режим [19:03:03]line Чек 480 22.10.2024 19:03 [19:03:03]line Смена: 461 ФФД: 1.0 [19:03:03]line ЗНМ: 0300000155 [19:03:03]line РНМ: 0000000000100030 [19:03:03]line Версия ККМ: 001 [19:03:03]line ФМ: 0000000000965340 [19:03:03]line ФД: 188451 [19:03:03]line ФПД: 195960134975868 [19:03:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190302&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188451&fm=195960134975868&tin=02508201610067®Number=0000000000100030&sum=100000 [19:03:04]OFD Sender: Processing packet 188451 [packets to send 1062, broken 1061] [19:03:04]ProducePacketName [19:03:04]name=ofd_packets/00188451 [19:03:04]OFD Sender: To server: pG, [19:03:04]CommunicateWithHost lk.salyk.kg:30040 [19:03:04]written 0, free lines is 4095 [19:03:04]ConnectInit lk.salyk.kg [19:03:04]Connected sock=10 [19:03:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D0 DE 07 01 1E 60 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E0 01 00 00 F4 03 04 00 E6 F6 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E0 02 00 35 04 06 00 B2 39 86 3C 41 7C 51 8B 5D E6 93 32 BF 27 [19:03:04]Write to MH i2c: 01 00 00 43 0F 52 [19:03:04]Write i2c OK [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: 01 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: 01 07 00 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: 01 07 00 43 0F 00 00 00 00 00 64 0C C9 [19:03:04]RasterBufferAndPrint [19:03:04]line [19:03:04]line [19:03:04]line [19:03:04]line [19:03:04]line [19:03:04]written 0, free lines is 3180 [19:03:04]MH_Cut [19:03:04]Write to MH i2c: D1 01 00 4A 0F 01 2B [19:03:04]Write i2c OK [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: D1 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: D1 01 00 [19:03:04]MH_I2C_Read... [19:03:04]Read from MH i2c: D1 01 00 4A 0F 00 2A [19:03:04]Write to MH i2c: 01 00 00 4B 0F 5A [19:03:04]Write i2c OK [19:03:04]MH_I2C_Read... [19:03:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E1 73 47 00 F1 0A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 23 E0 02 00 F4 03 04 00 D4 A0 17 67 B6 04 01 00 00 D4 38 FC DF D5 A9 7D 19 [19:03:04]CommunicateWithHost err = 0 [19:03:04]CheckOFDResponse [19:03:04]1017 (14) - 77093643461234 [19:03:04]1041 (16) - 0000000000965340 [19:03:04]1040 (4) - 188451 [19:03:04]1012 (4) - 22.10.2024 12:55 [19:03:04]1206 (1) - 0 [19:03:04]OFD Sender: Remove packet 188451 [19:03:04]ProducePacketName [19:03:04]name=ofd_packets/00188451 [19:03:04]NVStorageDeleteData [19:03:05]OFD Sender: No OFD packet to send [19:03:05]*** Cut start [19:03:05]*** Partial cut [19:03:05]*** CUTSNS_PIN = 1 [19:03:05]*** CUTSNS_PIN = 0 [19:03:06]*** Brake cut motor [19:03:06]Read from MH i2c: 01 [19:03:06]MH_I2C_Read... [19:03:06]*** Stop cut motor [19:03:06]*** Cut end [19:03:06]Read from MH i2c: 01 07 00 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: 01 07 00 4B 0F 00 00 00 00 00 FF 0F 6F [19:03:06]process_action close_receipt done [19:03:06]requested_data is exist [19:03:06]produce_requested_data [19:03:06]requested_item fm.sn is exist - process it [19:03:06]wFMCommunicate request_size=4 [19:03:06]MH_SAM_APDU [19:03:06]CAPDU: 80 11 00 00 [19:03:06]Write to MH i2c: E2 08 00 4C 0F 80 11 00 00 00 00 00 00 D5 [19:03:06]Write i2c OK [19:03:06]MH_I2C_Read... [19:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:03:06]Read from MH i2c: E2 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: E2 17 00 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: E2 17 00 4C 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [19:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:03:06]wFMCommunicate OK [19:03:06]requested_item fd.num is exist - process it [19:03:06]SAM_PROTO_GetFieldsCounters [19:03:06]wFMCommunicate request_size=4 [19:03:06]MH_SAM_APDU [19:03:06]CAPDU: 80 13 00 00 [19:03:06]Write to MH i2c: E2 08 00 4D 0F 80 13 00 00 00 00 00 00 D8 [19:03:06]Write i2c OK [19:03:06]MH_I2C_Read... [19:03:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:03:06]Read from MH i2c: E2 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: E2 62 00 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: E2 62 00 4D 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 55 [19:03:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 23 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E0 01 00 00 5E 04 04 00 E0 01 00 00 57 04 04 00 E1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:03:06]wFMCommunicate OK [19:03:06]SAM_PROTO_GetFieldsCounters done [19:03:06]requested_item shift.num is exist - process it [19:03:06]requested_item shift.opened is exist - process it [19:03:06]req_shift_opened [19:03:06]FM_GetShiftState [19:03:06]SAM_PROTO_GetShiftState [19:03:06]wFMCommunicate request_size=4 [19:03:06]MH_SAM_APDU [19:03:06]CAPDU: 80 13 01 00 [19:03:06]Write to MH i2c: E2 08 00 4E 0F 80 13 01 00 00 00 00 00 DA [19:03:06]Write i2c OK [19:03:06]MH_I2C_Read... [19:03:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:03:06]Read from MH i2c: E2 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: E2 0E 00 [19:03:06]MH_I2C_Read... [19:03:06]Read from MH i2c: E2 0E 00 4E 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CF [19:03:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:03:06]wFMCommunicate OK [19:03:06]SAM_PROTO_GetShiftState done [19:03:06]FM_GetShiftState done [19:03:06]req_shift_opened done [19:03:06]requested_item shift.open_date is exist - process it [19:03:06]req_shift_open_date [19:03:06]req_shift_open_date done [19:03:06]produce_requested_data done [19:03:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188451,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:03:06]process_action_free close_receipt [19:03:06]json_value_free [19:03:06]json_value_free done [19:03:06]process_json_proto returns [19:03:06]Send response to host [19:03:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188451,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:03:06]free response buf [19:03:06]execute_script done [19:03:06]execute_script returns [19:03:06]free content buf [19:03:06]Sock 9.Close socket [19:03:06]Sock 9.Thread stoped [19:03:10]OFD Sender: No OFD packet to send [19:03:15]OFD Sender: No OFD packet to send [19:03:20]OFD Sender: No OFD packet to send [19:03:25]OFD Sender: No OFD packet to send [19:03:30]OFD Sender: No OFD packet to send [19:03:35]OFD Sender: No OFD packet to send [19:03:40]OFD Sender: No OFD packet to send [19:03:45]OFD Sender: No OFD packet to send [19:03:50]OFD Sender: No OFD packet to send [19:03:55]OFD Sender: No OFD packet to send [19:04:00]OFD Sender: No OFD packet to send [19:04:05]OFD Sender: No OFD packet to send [19:04:10]OFD Sender: No OFD packet to send [19:04:15]OFD Sender: No OFD packet to send [19:04:20]OFD Sender: No OFD packet to send [19:04:25]OFD Sender: No OFD packet to send [19:04:30]OFD Sender: No OFD packet to send [19:04:35]OFD Sender: No OFD packet to send [19:04:40]OFD Sender: No OFD packet to send [19:04:45]OFD Sender: No OFD packet to send [19:04:50]OFD Sender: No OFD packet to send [19:04:55]OFD Sender: No OFD packet to send [19:05:00]OFD Sender: No OFD packet to send [19:05:05]OFD Sender: No OFD packet to send [19:05:10]OFD Sender: No OFD packet to send [19:05:13]accept exits with 7 [19:05:13]New connection [19:05:13]New thread 3066756452 created [19:05:13]Thread 3066613092 joined [19:05:13]Waiting for new connection... [19:05:13] Sock 7.Parse request [19:05:13]Sock 7.Check first char [19:05:13]Sock 7.First char is OK [19:05:13]request: POST /json_proto HTTP/1.0 [19:05:13]Method: POST [19:05:13]URL: /json_proto [19:05:13]Method is POST - this is cgi request [19:05:13]url: /json_proto [19:05:13]query_string will be loaded in cgi processing [19:05:13]execute_cgi json_proto POST (null) [19:05:13]execute_cgi path=json_proto method=POST [19:05:13]POST find Content-Length [19:05:13]Host: 172.17.42.131:8080 [19:05:13]Content-Length: 677 [19:05:13]Content-Type: application/json [19:05:13] [19:05:13]POST finish read [19:05:13]Found Content-Length = 677 [19:05:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:13]execute_script... [19:05: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)210512", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:05:13]POST & json_proto [19:05:13]process_json_proto [19:05:13]json parsed OK: [19:05:13]protocol is kg_v1.0 [19:05:13]action value=close_receipt [19:05:13]process_action close_receipt [19:05:13]cmd_close_receipt [19:05:13]MH_GetDate [19:05:13]Write to MH i2c: F0 00 00 4F 0F 4D [19:05:13]Write i2c OK [19:05:13]MH_I2C_Read... [19:05:13]Read from MH i2c: F0 [19:05:13]MH_I2C_Read... [19:05:13]Read from MH i2c: F0 09 00 [19:05:13]MH_I2C_Read... [19:05:13]Read from MH i2c: F0 09 00 4F 0F 00 6B F7 17 67 A0 18 CA 66 1E [19:05:13]GetLastDocTimeStamp 1729623782 [19:05:13]current date 1729623915 [19:05:13]FM_GetShiftState [19:05:13]SAM_PROTO_GetShiftState [19:05:13]wFMCommunicate request_size=4 [19:05:13]MH_SAM_APDU [19:05:13]CAPDU: 80 13 01 00 [19:05:13]Write to MH i2c: E2 08 00 50 0F 80 13 01 00 00 00 00 00 DC [19:05:13]Write i2c OK [19:05:13]MH_I2C_Read... [19:05:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:13]Read from MH i2c: E2 [19:05:13]MH_I2C_Read... [19:05:13]Read from MH i2c: E2 0E 00 [19:05:13]MH_I2C_Read... [19:05:13]Read from MH i2c: E2 0E 00 50 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [19:05:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:05:13]wFMCommunicate OK [19:05:13]SAM_PROTO_GetShiftState done [19:05:13]FM_GetShiftState done [19:05:13]opened in 1729556094 [19:05:13]opened+sec_in_day 1729642494 [19:05:13]quantity*price = 60009 [19:05:13]sum+1 = 60010 [19:05:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 481 22.10.2024 19:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188452 ФПД: 233754626660503 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190515&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188452&fm=233754626660503&tin=02508201610067®Number=0000000000100030&sum=60000 [19:05:15]StoreToDocumentArchive [19:05:15]shift 461 fd 188452 [19:05:15]save to /storage/0461/doc_00188452 [19:05:15]save last doc name /storage/0461/doc_00188452 to /storage/kkm_last_doc_name [19:05:15]save OK [19:05:15]Clear old archive folders... [19:05:15]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:05:15]tlvbuf is 00947DF0 [19:05:15]SAM_PROTO_ClearQueue [19:05:15]wFMCommunicate request_size=4 [19:05:15]MH_SAM_APDU [19:05:15]CAPDU: 80 09 00 00 [19:05:15]Write to MH i2c: E2 08 00 5D 0F 80 09 00 00 00 00 00 00 DE [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:05:15]Read from MH i2c: E2 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 5D 0F 00 90 00 E0 [19:05:15]RAPDU: 90 00 [19:05:15]wFMCommunicate OK [19:05:15]SAM_PROTO_ClearQueue done [19:05:15]KKMCreateOFDPacket [19:05:15]OFDProtocolAddRootSTLVToBuf [19:05:15]FM_MakeSignedData [19:05:15]FM_MakeSignedData [19:05:15]SAM_PROTO_SignData [19:05:15]wFMCommunicate request_size=4 [19:05:15]MH_SAM_APDU [19:05:15]CAPDU: 80 0D 01 02 [19:05:15]Write to MH i2c: E2 08 00 5E 0F 80 0D 01 02 00 00 00 00 E6 [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:05:15]Read from MH i2c: E2 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 5E 0F 00 90 00 E1 [19:05:15]RAPDU: 90 00 [19:05:15]wFMCommunicate OK [19:05:15]wFMCommunicate request_size=255 [19:05:15]MH_SAM_APDU [19:05: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 6B F7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E0 02 00 35 04 06 00 D4 [19:05:15]Write to MH i2c: E2 02 01 5F 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 6B F7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E0 02 00 35 04 06 00 D4 00 00 A0 [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:15]Read from MH i2c: E2 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 5F 0F 00 90 00 E2 [19:05:15]RAPDU: 90 00 [19:05:15]wFMCommunicate OK [19:05:15]wFMCommunicate request_size=10 [19:05:15]MH_SAM_APDU [19:05:15]CAPDU: 80 0D 02 02 05 99 3D 7C 98 97 [19:05:15]Write to MH i2c: E2 0D 00 60 0F 80 0D 02 02 05 00 99 3D 7C 98 97 00 00 74 [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:05:15]Read from MH i2c: E2 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 03 00 60 0F 00 90 00 E3 [19:05:15]RAPDU: 90 00 [19:05:15]wFMCommunicate OK [19:05:15]wFMCommunicate request_size=4 [19:05:15]MH_SAM_APDU [19:05:15]CAPDU: 80 0D 03 02 [19:05:15]Write to MH i2c: E2 08 00 61 0F 80 0D 03 02 00 00 00 00 EB [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:05:15]Read from MH i2c: E2 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 0B 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 0B 00 61 0F 00 57 BC 65 2B 1A EB D1 C9 90 00 2E [19:05:15]RAPDU: 57 BC 65 2B 1A EB D1 C9 90 00 [19:05:15]wFMCommunicate OK [19:05:15]SAM_PROTO_SignData done [19:05:15]FM_MakeSignedData done [19:05:15]CreateOFDProtocolMessage [19:05:15]wFMCommunicate request_size=4 [19:05:15]MH_SAM_APDU [19:05:15]CAPDU: 80 11 00 00 [19:05:15]Write to MH i2c: E2 08 00 62 0F 80 11 00 00 00 00 00 00 EB [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:15]Read from MH i2c: E2 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 17 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: E2 17 00 62 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [19:05:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:05:15]wFMCommunicate OK [19:05:15]CreateOFDProtocolMessage done [19:05:15]OFDSenderStorePacket 188452 [19:05:15]StoreOFDPacket docnum=188452 [19:05:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD F5 07 01 6A 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 6B F7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E0 02 00 35 04 06 00 D4 99 3D 7C 98 97 57 BC 65 2B 1A EB D1 C9 [19:05:15]CheckFolder [19:05:15]dirname=/storage/ofd_packets [19:05:15]CheckFolder done [19:05:15]ProducePacketName [19:05:15]name=ofd_packets/00188452 [19:05:15]NVStorageSaveData ofd_packets/00188452 [19:05:15]File name is /storage/ofd_packets/00188452 [19:05:15]Write 301 bytes [19:05:15]NVStorageSaveData done [19:05:15]OFDSenderStorePacket done [19:05:15]KKMCreateOFDPacket done [19:05:15]NVStorageSaveData kkm_last_timestamp [19:05:15]File name is /storage/kkm_last_timestamp [19:05:15]Write 4 bytes [19:05:15]NVStorageSaveData done [19:05:15]ExternCall_PrintAddStr [19:05:15]wPrintStart [19:05:15]Write to MH i2c: 01 00 00 63 0F 72 [19:05:15]Write i2c OK [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: 01 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: 01 07 00 [19:05:15]MH_I2C_Read... [19:05:15]Read from MH i2c: 01 07 00 63 0F 00 00 00 00 00 FF 0F 87 [19:05:15]RasterBufferAndPrint [19:05:15]line Счет N : (1)210512 [19:05:15]line ИНН: 02508201610067 [19:05:15]line Контрольно-Кассовый Чек [19:05:15]line ПРОДАЖА [19:05:15]line ТРК (МРК, ГНК) : 32 [19:05:15]line Товар: 2710124130 [19:05:15]line Аи-92-К-3 [19:05:15]line 8.970 * 66.90 [19:05:15]line = 600.09 [19:05:15]line НДС 12% НСП 1% [19:05:15]line > о реализуемом товаре [19:05:15]line ОКРУГЛЕНИЕ: -0.09 [19:05:15]line ИТОГО: 600.00 [19:05:15]line Внесено: 600.00 [19:05:15]line СДАЧА: 0.00 [19:05:15]line НСП 1% : 5.31 [19:05:15]line НДС 12% : 63.73 [19:05:15]line Наличными: 600.00 [19:05:15]line Безнал.: 0.00 [19:05:15]line Место: АЗС № 86 "Партнер Нефть" [19:05:15]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:05:15]line СНО: Общий режим [19:05:15]line Чек 481 22.10.2024 19:05 [19:05:15]line Смена: 461 ФФД: 1.0 [19:05:15]line ЗНМ: 0300000155 [19:05:15]line РНМ: 0000000000100030 [19:05:15]line Версия ККМ: 001 [19:05:15]line ФМ: 0000000000965340 [19:05:15]line ФД: 188452 [19:05:15]line ФПД: 233754626660503 [19:05:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190515&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188452&fm=233754626660503&tin=02508201610067®Number=0000000000100030&sum=60000 [19:05:15]written 0, free lines is 4095 [19:05:15]OFD Sender: Processing packet 188452 [packets to send 1062, broken 1061] [19:05:15]ProducePacketName [19:05:15]name=ofd_packets/00188452 [19:05:15]OFD Sender: To server: pG, [19:05:15]CommunicateWithHost lk.salyk.kg:30040 [19:05:15]ConnectInit lk.salyk.kg [19:05:16]Write to MH i2c: 01 00 00 8E 0F 9D [19:05:16]Write i2c OK [19:05:16]MH_I2C_Read... [19:05:16]Read from MH i2c: 01 [19:05:16]MH_I2C_Read... [19:05:16]Read from MH i2c: 01 07 00 [19:05:16]MH_I2C_Read... [19:05:16]Read from MH i2c: 01 07 00 8E 0F 00 00 00 00 00 5E 0C 0E [19:05:16]RasterBufferAndPrint [19:05:16]line [19:05:16]line [19:05:16]line [19:05:16]line [19:05:16]line [19:05:16]written 0, free lines is 3169 [19:05:16]MH_Cut [19:05:16]Write to MH i2c: D1 01 00 95 0F 01 76 [19:05:16]Write i2c OK [19:05:16]MH_I2C_Read... [19:05:16]Read from MH i2c: D1 [19:05:16]MH_I2C_Read... [19:05:16]Read from MH i2c: D1 01 00 [19:05:16]MH_I2C_Read... [19:05:16]Read from MH i2c: D1 01 00 95 0F 00 75 [19:05:16]Write to MH i2c: 01 00 00 96 0F A5 [19:05:16]Write i2c OK [19:05:16]MH_I2C_Read... [19:05:17]*** Cut start [19:05:17]*** Partial cut [19:05:17]*** CUTSNS_PIN = 1 [19:05:17]*** CUTSNS_PIN = 0 [19:05:17]*** Brake cut motor [19:05:17]Read from MH i2c: 01 [19:05:17]MH_I2C_Read... [19:05:17]*** Stop cut motor [19:05:17]*** Cut end [19:05:17]Read from MH i2c: 01 07 00 [19:05:17]MH_I2C_Read... [19:05:17]Read from MH i2c: 01 07 00 96 0F 00 00 00 00 00 FF 0F BA [19:05:17]process_action close_receipt done [19:05:17]requested_data is exist [19:05:17]produce_requested_data [19:05:17]requested_item fm.sn is exist - process it [19:05:17]wFMCommunicate request_size=4 [19:05:17]MH_SAM_APDU [19:05:17]CAPDU: 80 11 00 00 [19:05:17]Write to MH i2c: E2 08 00 97 0F 80 11 00 00 00 00 00 00 20 [19:05:17]Write i2c OK [19:05:17]MH_I2C_Read... [19:05:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:05:17]Read from MH i2c: E2 [19:05:17]MH_I2C_Read... [19:05:17]Read from MH i2c: E2 17 00 [19:05:17]MH_I2C_Read... [19:05:17]Read from MH i2c: E2 17 00 97 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [19:05:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:05:17]wFMCommunicate OK [19:05:17]requested_item fd.num is exist - process it [19:05:17]SAM_PROTO_GetFieldsCounters [19:05:17]wFMCommunicate request_size=4 [19:05:17]MH_SAM_APDU [19:05:17]CAPDU: 80 13 00 00 [19:05:17]Write to MH i2c: E2 08 00 98 0F 80 13 00 00 00 00 00 00 23 [19:05:17]Write i2c OK [19:05:17]MH_I2C_Read... [19:05:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:05:18]Read from MH i2c: E2 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 62 00 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 62 00 98 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [19:05:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 24 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E1 01 00 00 5E 04 04 00 E1 01 00 00 57 04 04 00 E2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:05:18]wFMCommunicate OK [19:05:18]SAM_PROTO_GetFieldsCounters done [19:05:18]requested_item shift.num is exist - process it [19:05:18]requested_item shift.opened is exist - process it [19:05:18]req_shift_opened [19:05:18]FM_GetShiftState [19:05:18]SAM_PROTO_GetShiftState [19:05:18]wFMCommunicate request_size=4 [19:05:18]MH_SAM_APDU [19:05:18]CAPDU: 80 13 01 00 [19:05:18]Write to MH i2c: E2 08 00 99 0F 80 13 01 00 00 00 00 00 25 [19:05:18]Write i2c OK [19:05:18]MH_I2C_Read... [19:05:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:05:18]Read from MH i2c: E2 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 0E 00 [19:05:18]MH_I2C_Read... [19:05:18]Read from MH i2c: E2 0E 00 99 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [19:05:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:05:18]wFMCommunicate OK [19:05:18]SAM_PROTO_GetShiftState done [19:05:18]FM_GetShiftState done [19:05:18]req_shift_opened done [19:05:18]requested_item shift.open_date is exist - process it [19:05:18]req_shift_open_date [19:05:18]req_shift_open_date done [19:05:18]produce_requested_data done [19:05:18]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188452,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:05:18]process_action_free close_receipt [19:05:18]json_value_free [19:05:18]json_value_free done [19:05:18]process_json_proto returns [19:05:18]Send response to host [19:05:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188452,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:05:18]free response buf [19:05:18]execute_script done [19:05:18]execute_script returns [19:05:18]free content buf [19:05:18]Sock 7.Close socket [19:05:18]Sock 7.Thread stoped [19:07:26]ConnectInit Can't connect to host [19:07:26]CommunicateWithHost connect error [19:07:26]CommunicateWithHost err = -1 [19:07:26]OFD Sender: Server communicate error [19:07:31]OFD Sender: Processing packet 188452 [packets to send 1062, broken 1061] [19:07:31]ProducePacketName [19:07:31]name=ofd_packets/00188452 [19:07:31]OFD Sender: To server: pG, [19:07:31]CommunicateWithHost lk.salyk.kg:30040 [19:07:31]ConnectInit lk.salyk.kg [19:07:31]Connected sock=7 [19:07:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD F5 07 01 6A 57 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E1 01 00 00 F4 03 04 00 6B F7 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E0 02 00 35 04 06 00 D4 99 3D 7C 98 97 57 BC 65 2B 1A EB D1 C9 [19:07:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BF F9 47 00 D1 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 24 E0 02 00 F4 03 04 00 DF A1 17 67 B6 04 01 00 00 CA 7F 40 6F 3A 0D 41 B0 [19:07:31]CommunicateWithHost err = 0 [19:07:31]CheckOFDResponse [19:07:31]1017 (14) - 77093643461234 [19:07:31]1041 (16) - 0000000000965340 [19:07:31]1040 (4) - 188452 [19:07:31]1012 (4) - 22.10.2024 13:00 [19:07:31]1206 (1) - 0 [19:07:31]OFD Sender: Remove packet 188452 [19:07:31]ProducePacketName [19:07:31]name=ofd_packets/00188452 [19:07:31]NVStorageDeleteData [19:07:32]OFD Sender: No OFD packet to send [19:07:37]OFD Sender: No OFD packet to send [19:07:42]OFD Sender: No OFD packet to send [19:07:47]OFD Sender: No OFD packet to send [19:07:52]OFD Sender: No OFD packet to send [19:07:57]OFD Sender: No OFD packet to send [19:08:02]OFD Sender: No OFD packet to send [19:08:07]OFD Sender: No OFD packet to send [19:08:12]OFD Sender: No OFD packet to send [19:08:17]OFD Sender: No OFD packet to send [19:08:22]OFD Sender: No OFD packet to send [19:08:27]OFD Sender: No OFD packet to send [19:08:32]OFD Sender: No OFD packet to send [19:08:37]OFD Sender: No OFD packet to send [19:08:42]OFD Sender: No OFD packet to send [19:08:47]OFD Sender: No OFD packet to send [19:08:52]OFD Sender: No OFD packet to send [19:08:57]OFD Sender: No OFD packet to send [19:09:02]OFD Sender: No OFD packet to send [19:09:07]OFD Sender: No OFD packet to send [19:09:12]OFD Sender: No OFD packet to send [19:09:17]OFD Sender: No OFD packet to send [19:09:22]OFD Sender: No OFD packet to send [19:09:27]OFD Sender: No OFD packet to send [19:09:32]OFD Sender: No OFD packet to send [19:09:37]OFD Sender: No OFD packet to send [19:09:39]accept exits with 9 [19:09:39]New connection [19:09:39]New thread 3066613092 created [19:09:39]Thread 3066756452 joined [19:09:39]Waiting for new connection... [19:09:39] Sock 9.Parse request [19:09:39]Sock 9.Check first char [19:09:39]Sock 9.First char is OK [19:09:39]request: POST /json_proto HTTP/1.0 [19:09:39]Method: POST [19:09:39]URL: /json_proto [19:09:39]Method is POST - this is cgi request [19:09:39]url: /json_proto [19:09:39]query_string will be loaded in cgi processing [19:09:39]execute_cgi json_proto POST (null) [19:09:39]execute_cgi path=json_proto method=POST [19:09:39]POST find Content-Length [19:09:39]Host: 172.17.42.131:8080 [19:09:39]Content-Length: 677 [19:09:39]Content-Type: application/json [19:09:39] [19:09:39]POST finish read [19:09:39]Found Content-Length = 677 [19:09:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:39]execute_script... [19:09: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)210514", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:39]POST & json_proto [19:09:39]process_json_proto [19:09:39]json parsed OK: [19:09:39]protocol is kg_v1.0 [19:09:39]action value=close_receipt [19:09:39]process_action close_receipt [19:09:39]cmd_close_receipt [19:09:39]MH_GetDate [19:09:39]Write to MH i2c: F0 00 00 9A 0F 98 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 09 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: F0 09 00 9A 0F 00 74 F8 17 67 A0 18 CA 66 73 [19:09:39]GetLastDocTimeStamp 1729623915 [19:09:39]current date 1729624180 [19:09:39]FM_GetShiftState [19:09:39]SAM_PROTO_GetShiftState [19:09:39]wFMCommunicate request_size=4 [19:09:39]MH_SAM_APDU [19:09:39]CAPDU: 80 13 01 00 [19:09:39]Write to MH i2c: E2 08 00 9B 0F 80 13 01 00 00 00 00 00 27 [19:09:39]Write i2c OK [19:09:39]MH_I2C_Read... [19:09:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:39]Read from MH i2c: E2 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0E 00 [19:09:39]MH_I2C_Read... [19:09:39]Read from MH i2c: E2 0E 00 9B 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [19:09:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:09:39]wFMCommunicate OK [19:09:39]SAM_PROTO_GetShiftState done [19:09:39]FM_GetShiftState done [19:09:39]opened in 1729556094 [19:09:39]opened+sec_in_day 1729642494 [19:09:39]quantity*price = 50041 [19:09:39]sum+1 = 50042 [19:09:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 482 22.10.2024 19:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188453 ФПД: 272058019758633 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188453&fm=272058019758633&tin=02508201610067®Number=0000000000100030&sum=50000 [19:09:40]StoreToDocumentArchive [19:09:40]shift 461 fd 188453 [19:09:40]save to /storage/0461/doc_00188453 [19:09:40]save last doc name /storage/0461/doc_00188453 to /storage/kkm_last_doc_name [19:09:40]save OK [19:09:40]Clear old archive folders... [19:09:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:09:40]tlvbuf is 008FF530 [19:09:40]SAM_PROTO_ClearQueue [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 09 00 00 [19:09:40]Write to MH i2c: E2 08 00 A8 0F 80 09 00 00 00 00 00 00 29 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 A8 0F 00 90 00 2B [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]SAM_PROTO_ClearQueue done [19:09:40]KKMCreateOFDPacket [19:09:40]OFDProtocolAddRootSTLVToBuf [19:09:40]FM_MakeSignedData [19:09:40]FM_MakeSignedData [19:09:40]SAM_PROTO_SignData [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 0D 01 02 [19:09:40]Write to MH i2c: E2 08 00 A9 0F 80 0D 01 02 00 00 00 00 31 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 A9 0F 00 90 00 2C [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=255 [19:09:40]MH_SAM_APDU [19:09: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 74 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E0 02 00 35 04 06 00 F7 [19:09:40]Write to MH i2c: E2 02 01 AA 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 74 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E0 02 00 35 04 06 00 F7 00 00 3D [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 AA 0F 00 90 00 2D [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=10 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 0D 02 02 05 6F 71 A0 42 29 [19:09:40]Write to MH i2c: E2 0D 00 AB 0F 80 0D 02 02 05 00 6F 71 A0 42 29 00 00 29 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 03 00 AB 0F 00 90 00 2E [19:09:40]RAPDU: 90 00 [19:09:40]wFMCommunicate OK [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 0D 03 02 [19:09:40]Write to MH i2c: E2 08 00 AC 0F 80 0D 03 02 00 00 00 00 36 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 0B 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 0B 00 AC 0F 00 C3 29 3A D2 AC 4A 42 3C 90 00 A3 [19:09:40]RAPDU: C3 29 3A D2 AC 4A 42 3C 90 00 [19:09:40]wFMCommunicate OK [19:09:40]SAM_PROTO_SignData done [19:09:40]FM_MakeSignedData done [19:09:40]CreateOFDProtocolMessage [19:09:40]wFMCommunicate request_size=4 [19:09:40]MH_SAM_APDU [19:09:40]CAPDU: 80 11 00 00 [19:09:40]Write to MH i2c: E2 08 00 AD 0F 80 11 00 00 00 00 00 00 36 [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:40]Read from MH i2c: E2 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 17 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: E2 17 00 AD 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [19:09:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:40]wFMCommunicate OK [19:09:40]CreateOFDProtocolMessage done [19:09:40]OFDSenderStorePacket 188453 [19:09:40]StoreOFDPacket docnum=188453 [19:09:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA 8F 07 01 97 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 74 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E0 02 00 35 04 06 00 F7 6F 71 A0 42 29 C3 29 3A D2 AC 4A 42 3C [19:09:40]CheckFolder [19:09:40]dirname=/storage/ofd_packets [19:09:40]CheckFolder done [19:09:40]ProducePacketName [19:09:40]name=ofd_packets/00188453 [19:09:40]NVStorageSaveData ofd_packets/00188453 [19:09:40]File name is /storage/ofd_packets/00188453 [19:09:40]Write 301 bytes [19:09:40]NVStorageSaveData done [19:09:40]OFDSenderStorePacket done [19:09:40]KKMCreateOFDPacket done [19:09:40]NVStorageSaveData kkm_last_timestamp [19:09:40]File name is /storage/kkm_last_timestamp [19:09:40]Write 4 bytes [19:09:40]NVStorageSaveData done [19:09:40]ExternCall_PrintAddStr [19:09:40]wPrintStart [19:09:40]Write to MH i2c: 01 00 00 AE 0F BD [19:09:40]Write i2c OK [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 [19:09:40]MH_I2C_Read... [19:09:40]Read from MH i2c: 01 07 00 AE 0F 00 00 00 00 00 FF 0F D2 [19:09:40]RasterBufferAndPrint [19:09:40]line Счет N : (1)210514 [19:09:40]line ИНН: 02508201610067 [19:09:40]line Контрольно-Кассовый Чек [19:09:40]line ПРОДАЖА [19:09:40]line ТРК (МРК, ГНК) : 12 [19:09:40]line Товар: 2710124130 [19:09:40]line Аи-92-К-3 [19:09:40]line 7.480 * 66.90 [19:09:40]line = 500.41 [19:09:40]line НДС 12% НСП 1% [19:09:40]line > о реализуемом товаре [19:09:40]line ОКРУГЛЕНИЕ: -0.41 [19:09:40]line ИТОГО: 500.00 [19:09:40]line Внесено: 500.00 [19:09:40]line СДАЧА: 0.00 [19:09:40]line НСП 1% : 4.43 [19:09:40]line НДС 12% : 53.14 [19:09:40]line Наличными: 500.00 [19:09:40]line Безнал.: 0.00 [19:09:40]line Место: АЗС № 86 "Партнер Нефть" [19:09:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:09:40]line СНО: Общий режим [19:09:40]line Чек 482 22.10.2024 19:09 [19:09:40]line Смена: 461 ФФД: 1.0 [19:09:40]line ЗНМ: 0300000155 [19:09:40]line РНМ: 0000000000100030 [19:09:40]line Версия ККМ: 001 [19:09:40]line ФМ: 0000000000965340 [19:09:40]line ФД: 188453 [19:09:40]line ФПД: 272058019758633 [19:09:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T190940&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188453&fm=272058019758633&tin=02508201610067®Number=0000000000100030&sum=50000 [19:09:40]written 0, free lines is 4095 [19:09:41]OFD Sender: Processing packet 188453 [packets to send 1062, broken 1061] [19:09:41]ProducePacketName [19:09:41]name=ofd_packets/00188453 [19:09:41]OFD Sender: To server: pG, [19:09:41]CommunicateWithHost lk.salyk.kg:30040 [19:09:41]ConnectInit lk.salyk.kg [19:09:41]Connected sock=10 [19:09:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CA 8F 07 01 97 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E2 01 00 00 F4 03 04 00 74 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E0 02 00 35 04 06 00 F7 6F 71 A0 42 29 C3 29 3A D2 AC 4A 42 3C [19:09:41]Write to MH i2c: 01 00 00 D9 0F E8 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: 01 07 00 D9 0F 00 00 00 00 00 5D 0C 58 [19:09:41]RasterBufferAndPrint [19:09:41]line [19:09:41]line [19:09:41]line [19:09:41]line [19:09:41]line [19:09:41]written 0, free lines is 3168 [19:09:41]MH_Cut [19:09:41]Write to MH i2c: D1 01 00 E0 0F 01 C1 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: D1 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: D1 01 00 [19:09:41]MH_I2C_Read... [19:09:41]Read from MH i2c: D1 01 00 E0 0F 00 C0 [19:09:41]Write to MH i2c: 01 00 00 E1 0F F0 [19:09:41]Write i2c OK [19:09:41]MH_I2C_Read... [19:09:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 DF 47 00 33 9F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 25 E0 02 00 F4 03 04 00 61 A2 17 67 B6 04 01 00 00 E5 4F CF 14 CD F2 62 D1 [19:09:41]CommunicateWithHost err = 0 [19:09:41]CheckOFDResponse [19:09:41]1017 (14) - 77093643461234 [19:09:41]1041 (16) - 0000000000965340 [19:09:41]1040 (4) - 188453 [19:09:41]1012 (4) - 22.10.2024 13:02 [19:09:41]1206 (1) - 0 [19:09:41]OFD Sender: Remove packet 188453 [19:09:41]ProducePacketName [19:09:41]name=ofd_packets/00188453 [19:09:41]NVStorageDeleteData [19:09:42]OFD Sender: No OFD packet to send [19:09:42]*** Cut start [19:09:42]*** Partial cut [19:09:42]*** CUTSNS_PIN = 1 [19:09:42]*** CUTSNS_PIN = 0 [19:09:42]*** Brake cut motor [19:09:43]Read from MH i2c: 01 [19:09:43]MH_I2C_Read... [19:09:43]*** Stop cut motor [19:09:43]*** Cut end [19:09:43]Read from MH i2c: 01 07 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: 01 07 00 E1 0F 00 00 00 00 00 FF 0F 05 [19:09:43]process_action close_receipt done [19:09:43]requested_data is exist [19:09:43]produce_requested_data [19:09:43]requested_item fm.sn is exist - process it [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 11 00 00 [19:09:43]Write to MH i2c: E2 08 00 E2 0F 80 11 00 00 00 00 00 00 6B [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:43]Read from MH i2c: E2 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 17 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 17 00 E2 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [19:09:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:09:43]wFMCommunicate OK [19:09:43]requested_item fd.num is exist - process it [19:09:43]SAM_PROTO_GetFieldsCounters [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 13 00 00 [19:09:43]Write to MH i2c: E2 08 00 E3 0F 80 13 00 00 00 00 00 00 6E [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:09:43]Read from MH i2c: E2 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 62 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 62 00 E3 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [19:09:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 25 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E2 01 00 00 5E 04 04 00 E2 01 00 00 57 04 04 00 E3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:09:43]wFMCommunicate OK [19:09:43]SAM_PROTO_GetFieldsCounters done [19:09:43]requested_item shift.num is exist - process it [19:09:43]requested_item shift.opened is exist - process it [19:09:43]req_shift_opened [19:09:43]FM_GetShiftState [19:09:43]SAM_PROTO_GetShiftState [19:09:43]wFMCommunicate request_size=4 [19:09:43]MH_SAM_APDU [19:09:43]CAPDU: 80 13 01 00 [19:09:43]Write to MH i2c: E2 08 00 E4 0F 80 13 01 00 00 00 00 00 70 [19:09:43]Write i2c OK [19:09:43]MH_I2C_Read... [19:09:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:43]Read from MH i2c: E2 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 0E 00 [19:09:43]MH_I2C_Read... [19:09:43]Read from MH i2c: E2 0E 00 E4 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [19:09:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:09:43]wFMCommunicate OK [19:09:43]SAM_PROTO_GetShiftState done [19:09:43]FM_GetShiftState done [19:09:43]req_shift_opened done [19:09:43]requested_item shift.open_date is exist - process it [19:09:43]req_shift_open_date [19:09:43]req_shift_open_date done [19:09:43]produce_requested_data done [19:09:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188453,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:09:43]process_action_free close_receipt [19:09:43]json_value_free [19:09:43]json_value_free done [19:09:43]process_json_proto returns [19:09:43]Send response to host [19:09:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188453,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:09:43]free response buf [19:09:43]execute_script done [19:09:43]execute_script returns [19:09:43]free content buf [19:09:43]Sock 9.Close socket [19:09:43]Sock 9.Thread stoped [19:09:47]OFD Sender: No OFD packet to send [19:09:52]OFD Sender: No OFD packet to send [19:09:57]OFD Sender: No OFD packet to send [19:10:02]OFD Sender: No OFD packet to send [19:10:07]accept exits with 7 [19:10:07]New connection [19:10:07]New thread 3066756452 created [19:10:07]Thread 3066613092 joined [19:10:07]Waiting for new connection... [19:10:07] Sock 7.Parse request [19:10:07]Sock 7.Check first char [19:10:07]Sock 7.First char is OK [19:10:07]request: POST /json_proto HTTP/1.0 [19:10:07]Method: POST [19:10:07]URL: /json_proto [19:10:07]Method is POST - this is cgi request [19:10:07]url: /json_proto [19:10:07]query_string will be loaded in cgi processing [19:10:07]execute_cgi json_proto POST (null) [19:10:07]execute_cgi path=json_proto method=POST [19:10:07]POST find Content-Length [19:10:07]Host: 172.17.42.131:8080 [19:10:07]Content-Length: 682 [19:10:07]Content-Type: application/json [19:10:07] [19:10:07]POST finish read [19:10:07]Found Content-Length = 682 [19:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:07]execute_script... [19:10: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)210513", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:10:07]POST & json_proto [19:10:07]process_json_proto [19:10:07]json parsed OK: [19:10:07]protocol is kg_v1.0 [19:10:07]action value=close_receipt [19:10:07]process_action close_receipt [19:10:07]cmd_close_receipt [19:10:07]MH_GetDate [19:10:07]Write to MH i2c: F0 00 00 E5 0F E3 [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: F0 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: F0 09 00 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: F0 09 00 E5 0F 00 90 F8 17 67 A0 18 CA 66 DA [19:10:07]GetLastDocTimeStamp 1729624180 [19:10:07]current date 1729624208 [19:10:07]FM_GetShiftState [19:10:07]SAM_PROTO_GetShiftState [19:10:07]wFMCommunicate request_size=4 [19:10:07]MH_SAM_APDU [19:10:07]CAPDU: 80 13 01 00 [19:10:07]Write to MH i2c: E2 08 00 E6 0F 80 13 01 00 00 00 00 00 72 [19:10:07]Write i2c OK [19:10:07]MH_I2C_Read... [19:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:07]Read from MH i2c: E2 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 0E 00 [19:10:07]MH_I2C_Read... [19:10:07]Read from MH i2c: E2 0E 00 E6 0F 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [19:10:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:10:07]wFMCommunicate OK [19:10:07]SAM_PROTO_GetShiftState done [19:10:07]FM_GetShiftState done [19:10:07]opened in 1729556094 [19:10:07]opened+sec_in_day 1729642494 [19:10:07]quantity*price = 300046 [19:10:07]sum+1 = 300048 [19:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 483 22.10.2024 19:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188454 ФПД: 217335046019137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188454&fm=217335046019137&tin=02508201610067®Number=0000000000100030&sum=300000 [19:10:08]StoreToDocumentArchive [19:10:08]shift 461 fd 188454 [19:10:08]save to /storage/0461/doc_00188454 [19:10:08]save last doc name /storage/0461/doc_00188454 to /storage/kkm_last_doc_name [19:10:08]save OK [19:10:08]Clear old archive folders... [19:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:10:08]tlvbuf is 008E2660 [19:10:08]SAM_PROTO_ClearQueue [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 09 00 00 [19:10:08]Write to MH i2c: E2 08 00 F3 0F 80 09 00 00 00 00 00 00 74 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 F3 0F 00 90 00 76 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]SAM_PROTO_ClearQueue done [19:10:08]KKMCreateOFDPacket [19:10:08]OFDProtocolAddRootSTLVToBuf [19:10:08]FM_MakeSignedData [19:10:08]FM_MakeSignedData [19:10:08]SAM_PROTO_SignData [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 01 02 [19:10:08]Write to MH i2c: E2 08 00 F4 0F 80 0D 01 02 00 00 00 00 7C [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 F4 0F 00 90 00 77 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=255 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 90 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E0 02 00 35 04 06 00 C5 [19:10:08]Write to MH i2c: E2 02 01 F5 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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 90 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E0 02 00 35 04 06 00 C5 00 00 FD [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 F5 0F 00 90 00 78 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=10 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 02 02 05 AA 42 37 18 41 [19:10:08]Write to MH i2c: E2 0D 00 F6 0F 80 0D 02 02 05 00 AA 42 37 18 41 00 00 05 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 03 00 F6 0F 00 90 00 79 [19:10:08]RAPDU: 90 00 [19:10:08]wFMCommunicate OK [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 0D 03 02 [19:10:08]Write to MH i2c: E2 08 00 F7 0F 80 0D 03 02 00 00 00 00 81 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 0B 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 0B 00 F7 0F 00 19 4A 46 61 A3 E4 30 22 90 00 65 [19:10:08]RAPDU: 19 4A 46 61 A3 E4 30 22 90 00 [19:10:08]wFMCommunicate OK [19:10:08]SAM_PROTO_SignData done [19:10:08]FM_MakeSignedData done [19:10:08]CreateOFDProtocolMessage [19:10:08]wFMCommunicate request_size=4 [19:10:08]MH_SAM_APDU [19:10:08]CAPDU: 80 11 00 00 [19:10:08]Write to MH i2c: E2 08 00 F8 0F 80 11 00 00 00 00 00 00 81 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:08]Read from MH i2c: E2 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 17 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: E2 17 00 F8 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [19:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:10:08]wFMCommunicate OK [19:10:08]CreateOFDProtocolMessage done [19:10:08]OFDSenderStorePacket 188454 [19:10:08]StoreOFDPacket docnum=188454 [19:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 55 07 01 20 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 90 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E0 02 00 35 04 06 00 C5 AA 42 37 18 41 19 4A 46 61 A3 E4 30 22 [19:10:08]CheckFolder [19:10:08]dirname=/storage/ofd_packets [19:10:08]CheckFolder done [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00188454 [19:10:08]NVStorageSaveData ofd_packets/00188454 [19:10:08]File name is /storage/ofd_packets/00188454 [19:10:08]Write 301 bytes [19:10:08]NVStorageSaveData done [19:10:08]OFDSenderStorePacket done [19:10:08]KKMCreateOFDPacket done [19:10:08]NVStorageSaveData kkm_last_timestamp [19:10:08]File name is /storage/kkm_last_timestamp [19:10:08]Write 4 bytes [19:10:08]NVStorageSaveData done [19:10:08]ExternCall_PrintAddStr [19:10:08]wPrintStart [19:10:08]Write to MH i2c: 01 00 00 F9 0F 08 [19:10:08]Write i2c OK [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 [19:10:08]MH_I2C_Read... [19:10:08]Read from MH i2c: 01 07 00 F9 0F 00 00 00 00 00 FF 0F 1D [19:10:08]RasterBufferAndPrint [19:10:08]line Счет N : (1)210513 [19:10:08]line ИНН: 02508201610067 [19:10:08]line Контрольно-Кассовый Чек [19:10:08]line ПРОДАЖА [19:10:08]line ТРК (МРК, ГНК) : 42 [19:10:08]line Товар: 2710124130 [19:10:08]line Аи-92-К-3 [19:10:08]line 44.850 * 66.90 [19:10:08]line = 3000.47 [19:10:08]line НДС 12% НСП 1% [19:10:08]line > о реализуемом товаре [19:10:08]line ОКРУГЛЕНИЕ: -0.47 [19:10:08]line ИТОГО: 3000.00 [19:10:08]line Внесено: 3000.00 [19:10:08]line СДАЧА: 0.00 [19:10:08]line НСП 1% : 26.55 [19:10:08]line НДС 12% : 318.63 [19:10:08]line Наличными: 3000.00 [19:10:08]line Безнал.: 0.00 [19:10:08]line Место: АЗС № 86 "Партнер Нефть" [19:10:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:10:08]line СНО: Общий режим [19:10:08]line Чек 483 22.10.2024 19:10 [19:10:08]line Смена: 461 ФФД: 1.0 [19:10:08]line ЗНМ: 0300000155 [19:10:08]line РНМ: 0000000000100030 [19:10:08]line Версия ККМ: 001 [19:10:08]line ФМ: 0000000000965340 [19:10:08]line ФД: 188454 [19:10:08]line ФПД: 217335046019137 [19:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188454&fm=217335046019137&tin=02508201610067®Number=0000000000100030&sum=300000 [19:10:08]written 0, free lines is 4095 [19:10:08]OFD Sender: Processing packet 188454 [packets to send 1062, broken 1061] [19:10:08]ProducePacketName [19:10:08]name=ofd_packets/00188454 [19:10:08]OFD Sender: To server: pG, [19:10:08]CommunicateWithHost lk.salyk.kg:30040 [19:10:08]ConnectInit lk.salyk.kg [19:10:09]Connected sock=10 [19:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 55 07 01 20 8D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E3 01 00 00 F4 03 04 00 90 F8 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 26 E0 02 00 35 04 06 00 C5 AA 42 37 18 41 19 4A 46 61 A3 E4 30 22 [19:10:09]Write to MH i2c: 01 00 00 24 10 34 [19:10:09]Write i2c OK [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: 01 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: 01 07 00 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: 01 07 00 24 10 00 00 00 00 00 66 0C AD [19:10:09]RasterBufferAndPrint [19:10:09]line [19:10:09]line [19:10:09]line [19:10:09]line [19:10:09]line [19:10:09]written 0, free lines is 3177 [19:10:09]MH_Cut [19:10:09]Write to MH i2c: D1 01 00 2B 10 01 0D [19:10:09]Write i2c OK [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: D1 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: D1 01 00 [19:10:09]MH_I2C_Read... [19:10:09]Read from MH i2c: D1 01 00 2B 10 00 0C [19:10:09]Write to MH i2c: 01 00 00 2C 10 3C [19:10:09]Write i2c OK [19:10:09]MH_I2C_Read... [19:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 36 47 00 A3 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 39 36 35 33 34 30 10 04 04 00 26 E0 02 00 F4 03 04 00 7D A2 17 67 B6 04 01 00 00 E1 44 36 07 67 26 A1 FC [19:10:09]CommunicateWithHost err = 0 [19:10:09]CheckOFDResponse [19:10:09]1017 (14) - 77093643461234 [19:10:09]1041 (16) - 0000000000965340 [19:10:09]1040 (4) - 188454 [19:10:09]1012 (4) - 22.10.2024 13:02 [19:10:09]1206 (1) - 0 [19:10:09]OFD Sender: Remove packet 188454 [19:10:09]ProducePacketName [19:10:09]name=ofd_packets/00188454 [19:10:09]NVStorageDeleteData [19:10:10]OFD Sender: No OFD packet to send [19:10:10]*** Cut start [19:10:10]*** Partial cut [19:10:10]*** CUTSNS_PIN = 1 [19:10:10]*** CUTSNS_PIN = 0 [19:10:10]*** Brake cut motor [19:10:11]Read from MH i2c: 01 [19:10:11]MH_I2C_Read... [19:10:11]*** Stop cut motor [19:10:11]*** Cut end [19:10:11]Read from MH i2c: 01 07 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: 01 07 00 2C 10 00 00 00 00 00 FF 0F 51 [19:10:11]process_action close_receipt done [19:10:11]requested_data is exist [19:10:11]produce_requested_data [19:10:11]requested_item fm.sn is exist - process it [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 11 00 00 [19:10:11]Write to MH i2c: E2 08 00 2D 10 80 11 00 00 00 00 00 00 B7 [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 17 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 17 00 2D 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [19:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:10:11]wFMCommunicate OK [19:10:11]requested_item fd.num is exist - process it [19:10:11]SAM_PROTO_GetFieldsCounters [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 13 00 00 [19:10:11]Write to MH i2c: E2 08 00 2E 10 80 13 00 00 00 00 00 00 BA [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 62 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 62 00 2E 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 43 [19:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 26 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E3 01 00 00 5E 04 04 00 E3 01 00 00 57 04 04 00 E4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:10:11]wFMCommunicate OK [19:10:11]SAM_PROTO_GetFieldsCounters done [19:10:11]requested_item shift.num is exist - process it [19:10:11]requested_item shift.opened is exist - process it [19:10:11]req_shift_opened [19:10:11]FM_GetShiftState [19:10:11]SAM_PROTO_GetShiftState [19:10:11]wFMCommunicate request_size=4 [19:10:11]MH_SAM_APDU [19:10:11]CAPDU: 80 13 01 00 [19:10:11]Write to MH i2c: E2 08 00 2F 10 80 13 01 00 00 00 00 00 BC [19:10:11]Write i2c OK [19:10:11]MH_I2C_Read... [19:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:11]Read from MH i2c: E2 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 [19:10:11]MH_I2C_Read... [19:10:11]Read from MH i2c: E2 0E 00 2F 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [19:10:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:10:11]wFMCommunicate OK [19:10:11]SAM_PROTO_GetShiftState done [19:10:11]FM_GetShiftState done [19:10:11]req_shift_opened done [19:10:11]requested_item shift.open_date is exist - process it [19:10:11]req_shift_open_date [19:10:11]req_shift_open_date done [19:10:11]produce_requested_data done [19:10:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188454,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:10:11]process_action_free close_receipt [19:10:11]json_value_free [19:10:11]json_value_free done [19:10:11]process_json_proto returns [19:10:11]Send response to host [19:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188454,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:10:11]free response buf [19:10:11]execute_script done [19:10:11]execute_script returns [19:10:11]free content buf [19:10:11]Sock 7.Close socket [19:10:11]Sock 7.Thread stoped [19:10:15]OFD Sender: No OFD packet to send [19:10:20]OFD Sender: No OFD packet to send [19:10:25]OFD Sender: No OFD packet to send [19:10:30]OFD Sender: No OFD packet to send [19:10:35]OFD Sender: No OFD packet to send [19:10:40]OFD Sender: No OFD packet to send [19:10:45]OFD Sender: No OFD packet to send [19:10:50]OFD Sender: No OFD packet to send [19:10:55]OFD Sender: No OFD packet to send [19:11:00]OFD Sender: No OFD packet to send [19:11:05]OFD Sender: No OFD packet to send [19:11:10]OFD Sender: No OFD packet to send [19:11:15]OFD Sender: No OFD packet to send [19:11:20]OFD Sender: No OFD packet to send [19:11:25]OFD Sender: No OFD packet to send [19:11:30]OFD Sender: No OFD packet to send [19:11:35]OFD Sender: No OFD packet to send [19:11:40]OFD Sender: No OFD packet to send [19:11:45]OFD Sender: No OFD packet to send [19:11:50]OFD Sender: No OFD packet to send [19:11:55]OFD Sender: No OFD packet to send [19:12:00]OFD Sender: No OFD packet to send [19:12:05]OFD Sender: No OFD packet to send [19:12:10]OFD Sender: No OFD packet to send [19:12:15]OFD Sender: No OFD packet to send [19:12:20]OFD Sender: No OFD packet to send [19:12:25]OFD Sender: No OFD packet to send [19:12:30]OFD Sender: No OFD packet to send [19:12:35]accept exits with 9 [19:12:35]New connection [19:12:35]New thread 3066613092 created [19:12:35]Thread 3066756452 joined [19:12:35]Waiting for new connection... [19:12:35] Sock 9.Parse request [19:12:35]Sock 9.Check first char [19:12:35]Sock 9.First char is OK [19:12:35]request: POST /json_proto HTTP/1.0 [19:12:35]Method: POST [19:12:35]URL: /json_proto [19:12:35]Method is POST - this is cgi request [19:12:35]url: /json_proto [19:12:35]query_string will be loaded in cgi processing [19:12:35]execute_cgi json_proto POST (null) [19:12:35]execute_cgi path=json_proto method=POST [19:12:35]POST find Content-Length [19:12:35]Host: 172.17.42.131:8080 [19:12:35]Content-Length: 677 [19:12:35]Content-Type: application/json [19:12:35] [19:12:35]POST finish read [19:12:35]Found Content-Length = 677 [19:12:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:35]execute_script... [19:12:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210515", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:12:35]POST & json_proto [19:12:35]process_json_proto [19:12:35]json parsed OK: [19:12:35]protocol is kg_v1.0 [19:12:35]action value=close_receipt [19:12:35]process_action close_receipt [19:12:35]cmd_close_receipt [19:12:35]MH_GetDate [19:12:35]Write to MH i2c: F0 00 00 30 10 2F [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: F0 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: F0 09 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: F0 09 00 30 10 00 24 F9 17 67 A0 18 CA 66 BB [19:12:35]GetLastDocTimeStamp 1729624208 [19:12:35]current date 1729624356 [19:12:35]FM_GetShiftState [19:12:35]SAM_PROTO_GetShiftState [19:12:35]wFMCommunicate request_size=4 [19:12:35]MH_SAM_APDU [19:12:35]CAPDU: 80 13 01 00 [19:12:35]Write to MH i2c: E2 08 00 31 10 80 13 01 00 00 00 00 00 BE [19:12:35]Write i2c OK [19:12:35]MH_I2C_Read... [19:12:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:35]Read from MH i2c: E2 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 0E 00 [19:12:35]MH_I2C_Read... [19:12:35]Read from MH i2c: E2 0E 00 31 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B3 [19:12:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:12:35]wFMCommunicate OK [19:12:35]SAM_PROTO_GetShiftState done [19:12:35]FM_GetShiftState done [19:12:35]opened in 1729556094 [19:12:35]opened+sec_in_day 1729642494 [19:12:35]quantity*price = 50041 [19:12:35]sum+1 = 50042 [19:12:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 484 22.10.2024 19:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188455 ФПД: 2921924422310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188455&fm=2921924422310&tin=02508201610067®Number=0000000000100030&sum=50000 [19:12:36]StoreToDocumentArchive [19:12:36]shift 461 fd 188455 [19:12:36]save to /storage/0461/doc_00188455 [19:12:36]save last doc name /storage/0461/doc_00188455 to /storage/kkm_last_doc_name [19:12:36]save OK [19:12:36]Clear old archive folders... [19:12:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:12:36]tlvbuf is 00947D70 [19:12:36]SAM_PROTO_ClearQueue [19:12:36]wFMCommunicate request_size=4 [19:12:36]MH_SAM_APDU [19:12:36]CAPDU: 80 09 00 00 [19:12:36]Write to MH i2c: E2 08 00 3E 10 80 09 00 00 00 00 00 00 C0 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 3E 10 00 90 00 C2 [19:12:36]RAPDU: 90 00 [19:12:36]wFMCommunicate OK [19:12:36]SAM_PROTO_ClearQueue done [19:12:36]KKMCreateOFDPacket [19:12:36]OFDProtocolAddRootSTLVToBuf [19:12:36]FM_MakeSignedData [19:12:36]FM_MakeSignedData [19:12:36]SAM_PROTO_SignData [19:12:36]wFMCommunicate request_size=4 [19:12:36]MH_SAM_APDU [19:12:36]CAPDU: 80 0D 01 02 [19:12:36]Write to MH i2c: E2 08 00 3F 10 80 0D 01 02 00 00 00 00 C8 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 3F 10 00 90 00 C3 [19:12:36]RAPDU: 90 00 [19:12:36]wFMCommunicate OK [19:12:36]wFMCommunicate request_size=255 [19:12:36]MH_SAM_APDU [19:12: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 24 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E0 02 00 35 04 06 00 02 [19:12:36]Write to MH i2c: E2 02 01 40 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 24 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E0 02 00 35 04 06 00 02 00 00 94 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 40 10 00 90 00 C4 [19:12:36]RAPDU: 90 00 [19:12:36]wFMCommunicate OK [19:12:36]wFMCommunicate request_size=10 [19:12:36]MH_SAM_APDU [19:12:36]CAPDU: 80 0D 02 02 05 A8 50 44 6A A6 [19:12:36]Write to MH i2c: E2 0D 00 41 10 80 0D 02 02 05 00 A8 50 44 6A A6 00 00 21 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 03 00 41 10 00 90 00 C5 [19:12:36]RAPDU: 90 00 [19:12:36]wFMCommunicate OK [19:12:36]wFMCommunicate request_size=4 [19:12:36]MH_SAM_APDU [19:12:36]CAPDU: 80 0D 03 02 [19:12:36]Write to MH i2c: E2 08 00 42 10 80 0D 03 02 00 00 00 00 CD [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 0B 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 0B 00 42 10 00 7B 49 BF D6 1C 88 41 AB 90 00 B7 [19:12:36]RAPDU: 7B 49 BF D6 1C 88 41 AB 90 00 [19:12:36]wFMCommunicate OK [19:12:36]SAM_PROTO_SignData done [19:12:36]FM_MakeSignedData done [19:12:36]CreateOFDProtocolMessage [19:12:36]wFMCommunicate request_size=4 [19:12:36]MH_SAM_APDU [19:12:36]CAPDU: 80 11 00 00 [19:12:36]Write to MH i2c: E2 08 00 43 10 80 11 00 00 00 00 00 00 CD [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:36]Read from MH i2c: E2 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 17 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: E2 17 00 43 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [19:12:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:12:36]wFMCommunicate OK [19:12:36]CreateOFDProtocolMessage done [19:12:36]OFDSenderStorePacket 188455 [19:12:36]StoreOFDPacket docnum=188455 [19:12:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2E CE 07 01 6B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 24 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E0 02 00 35 04 06 00 02 A8 50 44 6A A6 7B 49 BF D6 1C 88 41 AB [19:12:36]CheckFolder [19:12:36]dirname=/storage/ofd_packets [19:12:36]CheckFolder done [19:12:36]ProducePacketName [19:12:36]name=ofd_packets/00188455 [19:12:36]NVStorageSaveData ofd_packets/00188455 [19:12:36]File name is /storage/ofd_packets/00188455 [19:12:36]Write 301 bytes [19:12:36]NVStorageSaveData done [19:12:36]OFDSenderStorePacket done [19:12:36]KKMCreateOFDPacket done [19:12:36]NVStorageSaveData kkm_last_timestamp [19:12:36]File name is /storage/kkm_last_timestamp [19:12:36]Write 4 bytes [19:12:36]NVStorageSaveData done [19:12:36]ExternCall_PrintAddStr [19:12:36]wPrintStart [19:12:36]Write to MH i2c: 01 00 00 44 10 54 [19:12:36]Write i2c OK [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: 01 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: 01 07 00 [19:12:36]MH_I2C_Read... [19:12:36]Read from MH i2c: 01 07 00 44 10 00 00 00 00 00 FF 0F 69 [19:12:36]RasterBufferAndPrint [19:12:36]line Счет N : (1)210515 [19:12:36]line ИНН: 02508201610067 [19:12:36]line Контрольно-Кассовый Чек [19:12:36]line ПРОДАЖА [19:12:36]line ТРК (МРК, ГНК) : 42 [19:12:36]line Товар: 2710124130 [19:12:36]line Аи-92-К-3 [19:12:36]line 7.480 * 66.90 [19:12:36]line = 500.41 [19:12:36]line НДС 12% НСП 1% [19:12:36]line > о реализуемом товаре [19:12:36]line ОКРУГЛЕНИЕ: -0.41 [19:12:36]line ИТОГО: 500.00 [19:12:36]line Внесено: 500.00 [19:12:36]line СДАЧА: 0.00 [19:12:36]line НСП 1% : 4.43 [19:12:36]line НДС 12% : 53.14 [19:12:36]line Наличными: 500.00 [19:12:36]line Безнал.: 0.00 [19:12:36]line Место: АЗС № 86 "Партнер Нефть" [19:12:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:12:36]line СНО: Общий режим [19:12:36]line Чек 484 22.10.2024 19:12 [19:12:36]line Смена: 461 ФФД: 1.0 [19:12:36]line ЗНМ: 0300000155 [19:12:36]line РНМ: 0000000000100030 [19:12:36]line Версия ККМ: 001 [19:12:36]line ФМ: 0000000000965340 [19:12:36]line ФД: 188455 [19:12:36]line ФПД: 2921924422310 [19:12:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191236&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188455&fm=2921924422310&tin=02508201610067®Number=0000000000100030&sum=50000 [19:12:36]written 0, free lines is 4095 [19:12:37]OFD Sender: Processing packet 188455 [packets to send 1062, broken 1061] [19:12:37]ProducePacketName [19:12:37]name=ofd_packets/00188455 [19:12:37]OFD Sender: To server: pG, [19:12:37]CommunicateWithHost lk.salyk.kg:30040 [19:12:37]ConnectInit lk.salyk.kg [19:12:37]Connected sock=10 [19:12:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2E CE 07 01 6B E5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E4 01 00 00 F4 03 04 00 24 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E0 02 00 35 04 06 00 02 A8 50 44 6A A6 7B 49 BF D6 1C 88 41 AB [19:12:37]Write to MH i2c: 01 00 00 6F 10 7F [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: 01 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: 01 07 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: 01 07 00 6F 10 00 00 00 00 00 5D 0C EF [19:12:37]RasterBufferAndPrint [19:12:37]line [19:12:37]line [19:12:37]line [19:12:37]line [19:12:37]line [19:12:37]written 0, free lines is 3168 [19:12:37]MH_Cut [19:12:37]Write to MH i2c: D1 01 00 76 10 01 58 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: D1 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: D1 01 00 [19:12:37]MH_I2C_Read... [19:12:37]Read from MH i2c: D1 01 00 76 10 00 57 [19:12:37]Write to MH i2c: 01 00 00 77 10 87 [19:12:37]Write i2c OK [19:12:37]MH_I2C_Read... [19:12:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 39 47 00 4E 30 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 27 E0 02 00 F4 03 04 00 11 A3 17 67 B6 04 01 00 00 40 B6 95 CB 1A BA E4 F7 [19:12:37]CommunicateWithHost err = 0 [19:12:37]CheckOFDResponse [19:12:37]1017 (14) - 77093643461234 [19:12:37]1041 (16) - 0000000000965340 [19:12:37]1040 (4) - 188455 [19:12:37]1012 (4) - 22.10.2024 13:05 [19:12:37]1206 (1) - 0 [19:12:37]OFD Sender: Remove packet 188455 [19:12:37]ProducePacketName [19:12:37]name=ofd_packets/00188455 [19:12:37]NVStorageDeleteData [19:12:38]OFD Sender: No OFD packet to send [19:12:38]*** Cut start [19:12:38]*** Partial cut [19:12:38]*** CUTSNS_PIN = 1 [19:12:38]*** CUTSNS_PIN = 0 [19:12:38]*** Brake cut motor [19:12:39]Read from MH i2c: 01 [19:12:39]MH_I2C_Read... [19:12:39]*** Stop cut motor [19:12:39]*** Cut end [19:12:39]Read from MH i2c: 01 07 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: 01 07 00 77 10 00 00 00 00 00 FF 0F 9C [19:12:39]process_action close_receipt done [19:12:39]requested_data is exist [19:12:39]produce_requested_data [19:12:39]requested_item fm.sn is exist - process it [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 11 00 00 [19:12:39]Write to MH i2c: E2 08 00 78 10 80 11 00 00 00 00 00 00 02 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 17 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 17 00 78 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [19:12:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:12:39]wFMCommunicate OK [19:12:39]requested_item fd.num is exist - process it [19:12:39]SAM_PROTO_GetFieldsCounters [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 13 00 00 [19:12:39]Write to MH i2c: E2 08 00 79 10 80 13 00 00 00 00 00 00 05 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 62 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 62 00 79 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 92 [19:12:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 27 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E4 01 00 00 5E 04 04 00 E4 01 00 00 57 04 04 00 E5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:12:39]wFMCommunicate OK [19:12:39]SAM_PROTO_GetFieldsCounters done [19:12:39]requested_item shift.num is exist - process it [19:12:39]requested_item shift.opened is exist - process it [19:12:39]req_shift_opened [19:12:39]FM_GetShiftState [19:12:39]SAM_PROTO_GetShiftState [19:12:39]wFMCommunicate request_size=4 [19:12:39]MH_SAM_APDU [19:12:39]CAPDU: 80 13 01 00 [19:12:39]Write to MH i2c: E2 08 00 7A 10 80 13 01 00 00 00 00 00 07 [19:12:39]Write i2c OK [19:12:39]MH_I2C_Read... [19:12:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:12:39]Read from MH i2c: E2 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 0E 00 [19:12:39]MH_I2C_Read... [19:12:39]Read from MH i2c: E2 0E 00 7A 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FC [19:12:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:12:39]wFMCommunicate OK [19:12:39]SAM_PROTO_GetShiftState done [19:12:39]FM_GetShiftState done [19:12:39]req_shift_opened done [19:12:39]requested_item shift.open_date is exist - process it [19:12:39]req_shift_open_date [19:12:39]req_shift_open_date done [19:12:39]produce_requested_data done [19:12:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188455,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:12:39]process_action_free close_receipt [19:12:39]json_value_free [19:12:39]json_value_free done [19:12:39]process_json_proto returns [19:12:39]Send response to host [19:12:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188455,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:12:39]free response buf [19:12:39]execute_script done [19:12:39]execute_script returns [19:12:39]free content buf [19:12:39]Sock 9.Close socket [19:12:39]Sock 9.Thread stoped [19:12:43]OFD Sender: No OFD packet to send [19:12:48]OFD Sender: No OFD packet to send [19:12:53]OFD Sender: No OFD packet to send [19:12:58]OFD Sender: No OFD packet to send [19:13:03]OFD Sender: No OFD packet to send [19:13:08]OFD Sender: No OFD packet to send [19:13:13]OFD Sender: No OFD packet to send [19:13:18]OFD Sender: No OFD packet to send [19:13:23]OFD Sender: No OFD packet to send [19:13:28]OFD Sender: No OFD packet to send [19:13:33]OFD Sender: No OFD packet to send [19:13:38]OFD Sender: No OFD packet to send [19:13:43]OFD Sender: No OFD packet to send [19:13:48]OFD Sender: No OFD packet to send [19:13:53]OFD Sender: No OFD packet to send [19:13:58]OFD Sender: No OFD packet to send [19:14:03]OFD Sender: No OFD packet to send [19:14:08]OFD Sender: No OFD packet to send [19:14:13]OFD Sender: No OFD packet to send [19:14:18]OFD Sender: No OFD packet to send [19:14:23]OFD Sender: No OFD packet to send [19:14:28]OFD Sender: No OFD packet to send [19:14:33]OFD Sender: No OFD packet to send [19:14:38]OFD Sender: No OFD packet to send [19:14:43]OFD Sender: No OFD packet to send [19:14:48]OFD Sender: No OFD packet to send [19:14:53]OFD Sender: No OFD packet to send [19:14:58]OFD Sender: No OFD packet to send [19:15:02]accept exits with 7 [19:15:02]New connection [19:15:02]New thread 3066756452 created [19:15:02]Thread 3066613092 joined [19:15:02]Waiting for new connection... [19:15:02] Sock 7.Parse request [19:15:02]Sock 7.Check first char [19:15:02]Sock 7.First char is OK [19:15:02]request: POST /json_proto HTTP/1.0 [19:15:02]Method: POST [19:15:02]URL: /json_proto [19:15:02]Method is POST - this is cgi request [19:15:02]url: /json_proto [19:15:02]query_string will be loaded in cgi processing [19:15:02]execute_cgi json_proto POST (null) [19:15:02]execute_cgi path=json_proto method=POST [19:15:02]POST find Content-Length [19:15:02]Host: 172.17.42.131:8080 [19:15:02]Content-Length: 679 [19:15:02]Content-Type: application/json [19:15:02] [19:15:02]POST finish read [19:15:02]Found Content-Length = 679 [19:15:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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" ] } } [19:15:02]execute_script... [19:15: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)210516", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "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" ] } } [19:15:02]POST & json_proto [19:15:02]process_json_proto [19:15:02]json parsed OK: [19:15:02]protocol is kg_v1.0 [19:15:02]action value=close_receipt [19:15:02]process_action close_receipt [19:15:02]cmd_close_receipt [19:15:02]MH_GetDate [19:15:02]Write to MH i2c: F0 00 00 7B 10 7A [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 09 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: F0 09 00 7B 10 00 B7 F9 17 67 A0 18 CA 66 99 [19:15:02]GetLastDocTimeStamp 1729624356 [19:15:02]current date 1729624503 [19:15:02]FM_GetShiftState [19:15:02]SAM_PROTO_GetShiftState [19:15:02]wFMCommunicate request_size=4 [19:15:02]MH_SAM_APDU [19:15:02]CAPDU: 80 13 01 00 [19:15:02]Write to MH i2c: E2 08 00 7C 10 80 13 01 00 00 00 00 00 09 [19:15:02]Write i2c OK [19:15:02]MH_I2C_Read... [19:15:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:02]Read from MH i2c: E2 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 [19:15:02]MH_I2C_Read... [19:15:02]Read from MH i2c: E2 0E 00 7C 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FE [19:15:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:15:02]wFMCommunicate OK [19:15:02]SAM_PROTO_GetShiftState done [19:15:02]FM_GetShiftState done [19:15:02]opened in 1729556094 [19:15:02]opened+sec_in_day 1729642494 [19:15:02]quantity*price = 150037 [19:15:02]sum+1 = 150039 [19:15:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.38 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 485 22.10.2024 19:15 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188456 ФПД: 242556036434159 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188456&fm=242556036434159&tin=02508201610067®Number=0000000000100030&sum=150000 [19:15:03]StoreToDocumentArchive [19:15:03]shift 461 fd 188456 [19:15:03]save to /storage/0461/doc_00188456 [19:15:03]save last doc name /storage/0461/doc_00188456 to /storage/kkm_last_doc_name [19:15:03]save OK [19:15:03]Clear old archive folders... [19:15:03]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:15:03]tlvbuf is 008FF510 [19:15:03]SAM_PROTO_ClearQueue [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 09 00 00 [19:15:03]Write to MH i2c: E2 08 00 89 10 80 09 00 00 00 00 00 00 0B [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 89 10 00 90 00 0D [19:15:03]RAPDU: 90 00 [19:15:03]wFMCommunicate OK [19:15:03]SAM_PROTO_ClearQueue done [19:15:03]KKMCreateOFDPacket [19:15:03]OFDProtocolAddRootSTLVToBuf [19:15:03]FM_MakeSignedData [19:15:03]FM_MakeSignedData [19:15:03]SAM_PROTO_SignData [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 0D 01 02 [19:15:03]Write to MH i2c: E2 08 00 8A 10 80 0D 01 02 00 00 00 00 13 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 8A 10 00 90 00 0E [19:15:03]RAPDU: 90 00 [19:15:03]wFMCommunicate OK [19:15:03]wFMCommunicate request_size=255 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 B7 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E0 02 00 35 04 06 00 DC 9A 7A 63 [19:15:03]Write to MH i2c: E2 02 01 8B 10 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 B7 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E0 02 00 35 04 06 00 DC 9A 7A 63 00 00 34 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]OFD Sender: No OFD packet to send [19:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 8B 10 00 90 00 0F [19:15:03]RAPDU: 90 00 [19:15:03]wFMCommunicate OK [19:15:03]wFMCommunicate request_size=7 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 0D 02 02 02 C8 EF [19:15:03]Write to MH i2c: E2 0A 00 8C 10 80 0D 02 02 02 00 C8 EF 00 00 D1 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 03 00 8C 10 00 90 00 10 [19:15:03]RAPDU: 90 00 [19:15:03]wFMCommunicate OK [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 0D 03 02 [19:15:03]Write to MH i2c: E2 08 00 8D 10 80 0D 03 02 00 00 00 00 18 [19:15:03]Write i2c OK [19:15:03]MH_I2C_Read... [19:15:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:15:03]Read from MH i2c: E2 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 0B 00 [19:15:03]MH_I2C_Read... [19:15:03]Read from MH i2c: E2 0B 00 8D 10 00 A1 5B 86 6D E2 9B 0D 78 90 00 0A [19:15:03]RAPDU: A1 5B 86 6D E2 9B 0D 78 90 00 [19:15:03]wFMCommunicate OK [19:15:03]SAM_PROTO_SignData done [19:15:03]FM_MakeSignedData done [19:15:03]CreateOFDProtocolMessage [19:15:03]wFMCommunicate request_size=4 [19:15:03]MH_SAM_APDU [19:15:03]CAPDU: 80 11 00 00 [19:15:03]Write to MH i2c: E2 08 00 8E 10 80 11 00 00 00 00 00 00 18 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:04]Read from MH i2c: E2 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: E2 17 00 8E 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [19:15:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:04]wFMCommunicate OK [19:15:04]CreateOFDProtocolMessage done [19:15:04]OFDSenderStorePacket 188456 [19:15:04]StoreOFDPacket docnum=188456 [19:15:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 96 4C 04 01 6F AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 B7 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E0 02 00 35 04 06 00 DC 9A 7A 63 C8 EF A1 5B 86 6D E2 9B 0D 78 [19:15:04]CheckFolder [19:15:04]dirname=/storage/ofd_packets [19:15:04]CheckFolder done [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00188456 [19:15:04]NVStorageSaveData ofd_packets/00188456 [19:15:04]File name is /storage/ofd_packets/00188456 [19:15:04]Write 298 bytes [19:15:04]NVStorageSaveData done [19:15:04]OFDSenderStorePacket done [19:15:04]KKMCreateOFDPacket done [19:15:04]NVStorageSaveData kkm_last_timestamp [19:15:04]File name is /storage/kkm_last_timestamp [19:15:04]Write 4 bytes [19:15:04]NVStorageSaveData done [19:15:04]ExternCall_PrintAddStr [19:15:04]wPrintStart [19:15:04]Write to MH i2c: 01 00 00 8F 10 9F [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 8F 10 00 00 00 00 00 FF 0F B4 [19:15:04]RasterBufferAndPrint [19:15:04]line Счет N : (1)210516 [19:15:04]line ИНН: 02508201610067 [19:15:04]line Контрольно-Кассовый Чек [19:15:04]line ПРОДАЖА [19:15:04]line ТРК (МРК, ГНК) : 51 [19:15:04]line Товар: 2710194210 [19:15:04]line ДТ-К-5 [19:15:04]line 19.690 * 76.20 [19:15:04]line = 1500.38 [19:15:04]line НДС 12% НСП 1% [19:15:04]line > о реализуемом товаре [19:15:04]line ОКРУГЛЕНИЕ: -0.38 [19:15:04]line ИТОГО: 1500.00 [19:15:04]line Внесено: 1500.00 [19:15:04]line СДАЧА: 0.00 [19:15:04]line НСП 1% : 13.28 [19:15:04]line НДС 12% : 159.33 [19:15:04]line Наличными: 1500.00 [19:15:04]line Безнал.: 0.00 [19:15:04]line Место: АЗС № 86 "Партнер Нефть" [19:15:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:15:04]line СНО: Общий режим [19:15:04]line Чек 485 22.10.2024 19:15 [19:15:04]line Смена: 461 ФФД: 1.0 [19:15:04]line ЗНМ: 0300000155 [19:15:04]line РНМ: 0000000000100030 [19:15:04]line Версия ККМ: 001 [19:15:04]line ФМ: 0000000000965340 [19:15:04]line ФД: 188456 [19:15:04]line ФПД: 242556036434159 [19:15:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191503&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188456&fm=242556036434159&tin=02508201610067®Number=0000000000100030&sum=150000 [19:15:04]written 0, free lines is 4095 [19:15:04]OFD Sender: Processing packet 188456 [packets to send 1062, broken 1061] [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00188456 [19:15:04]OFD Sender: To server: pG, [19:15:04]CommunicateWithHost lk.salyk.kg:30040 [19:15:04]ConnectInit lk.salyk.kg [19:15:04]Connected sock=10 [19:15:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 96 4C 04 01 6F AB 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 EA 4C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 16 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E5 01 00 00 F4 03 04 00 B7 F9 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E0 02 00 35 04 06 00 DC 9A 7A 63 C8 EF A1 5B 86 6D E2 9B 0D 78 [19:15:04]Write to MH i2c: 01 00 00 BA 10 CA [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: 01 07 00 BA 10 00 00 00 00 00 5E 0C 3B [19:15:04]RasterBufferAndPrint [19:15:04]line [19:15:04]line [19:15:04]line [19:15:04]line [19:15:04]line [19:15:04]written 0, free lines is 3168 [19:15:04]MH_Cut [19:15:04]Write to MH i2c: D1 01 00 C1 10 01 A3 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: D1 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: D1 01 00 [19:15:04]MH_I2C_Read... [19:15:04]Read from MH i2c: D1 01 00 C1 10 00 A2 [19:15:04]Write to MH i2c: 01 00 00 C2 10 D2 [19:15:04]Write i2c OK [19:15:04]MH_I2C_Read... [19:15:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 99 CB 47 00 9E FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 28 E0 02 00 F4 03 04 00 A4 A3 17 67 B6 04 01 00 00 19 E1 1C 9F BC E6 DD ED [19:15:04]CommunicateWithHost err = 0 [19:15:04]CheckOFDResponse [19:15:04]1017 (14) - 77093643461234 [19:15:04]1041 (16) - 0000000000965340 [19:15:04]1040 (4) - 188456 [19:15:04]1012 (4) - 22.10.2024 13:07 [19:15:04]1206 (1) - 0 [19:15:04]OFD Sender: Remove packet 188456 [19:15:04]ProducePacketName [19:15:04]name=ofd_packets/00188456 [19:15:04]NVStorageDeleteData [19:15:05]OFD Sender: No OFD packet to send [19:15:05]*** Cut start [19:15:05]*** Partial cut [19:15:05]*** CUTSNS_PIN = 1 [19:15:05]*** CUTSNS_PIN = 0 [19:15:06]*** Brake cut motor [19:15:06]Read from MH i2c: 01 [19:15:06]MH_I2C_Read... [19:15:06]*** Stop cut motor [19:15:06]*** Cut end [19:15:06]Read from MH i2c: 01 07 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: 01 07 00 C2 10 00 00 00 00 00 FF 0F E7 [19:15:06]process_action close_receipt done [19:15:06]requested_data is exist [19:15:06]produce_requested_data [19:15:06]requested_item fm.sn is exist - process it [19:15:06]wFMCommunicate request_size=4 [19:15:06]MH_SAM_APDU [19:15:06]CAPDU: 80 11 00 00 [19:15:06]Write to MH i2c: E2 08 00 C3 10 80 11 00 00 00 00 00 00 4D [19:15:06]Write i2c OK [19:15:06]MH_I2C_Read... [19:15:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:15:06]Read from MH i2c: E2 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 17 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 17 00 C3 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [19:15:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:15:06]wFMCommunicate OK [19:15:06]requested_item fd.num is exist - process it [19:15:06]SAM_PROTO_GetFieldsCounters [19:15:06]wFMCommunicate request_size=4 [19:15:06]MH_SAM_APDU [19:15:06]CAPDU: 80 13 00 00 [19:15:06]Write to MH i2c: E2 08 00 C4 10 80 13 00 00 00 00 00 00 50 [19:15:06]Write i2c OK [19:15:06]MH_I2C_Read... [19:15:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:15:06]Read from MH i2c: E2 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 62 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 62 00 C4 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 E1 [19:15:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 28 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E5 01 00 00 5E 04 04 00 E5 01 00 00 57 04 04 00 E6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:15:06]wFMCommunicate OK [19:15:06]SAM_PROTO_GetFieldsCounters done [19:15:06]requested_item shift.num is exist - process it [19:15:06]requested_item shift.opened is exist - process it [19:15:06]req_shift_opened [19:15:06]FM_GetShiftState [19:15:06]SAM_PROTO_GetShiftState [19:15:06]wFMCommunicate request_size=4 [19:15:06]MH_SAM_APDU [19:15:06]CAPDU: 80 13 01 00 [19:15:06]Write to MH i2c: E2 08 00 C5 10 80 13 01 00 00 00 00 00 52 [19:15:06]Write i2c OK [19:15:06]MH_I2C_Read... [19:15:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:15:06]Read from MH i2c: E2 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 0E 00 [19:15:06]MH_I2C_Read... [19:15:06]Read from MH i2c: E2 0E 00 C5 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 47 [19:15:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:15:06]wFMCommunicate OK [19:15:06]SAM_PROTO_GetShiftState done [19:15:06]FM_GetShiftState done [19:15:06]req_shift_opened done [19:15:06]requested_item shift.open_date is exist - process it [19:15:06]req_shift_open_date [19:15:06]req_shift_open_date done [19:15:06]produce_requested_data done [19:15:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188456,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:15:06]process_action_free close_receipt [19:15:06]json_value_free [19:15:06]json_value_free done [19:15:06]process_json_proto returns [19:15:06]Send response to host [19:15:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188456,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:15:06]free response buf [19:15:06]execute_script done [19:15:06]execute_script returns [19:15:06]free content buf [19:15:06]Sock 7.Close socket [19:15:06]Sock 7.Thread stoped [19:15:10]OFD Sender: No OFD packet to send [19:15:15]OFD Sender: No OFD packet to send [19:15:20]OFD Sender: No OFD packet to send [19:15:25]OFD Sender: No OFD packet to send [19:15:30]OFD Sender: No OFD packet to send [19:15:35]OFD Sender: No OFD packet to send [19:15:40]OFD Sender: No OFD packet to send [19:15:45]OFD Sender: No OFD packet to send [19:15:50]OFD Sender: No OFD packet to send [19:15:55]OFD Sender: No OFD packet to send [19:16:00]OFD Sender: No OFD packet to send [19:16:05]OFD Sender: No OFD packet to send [19:16:10]OFD Sender: No OFD packet to send [19:16:15]OFD Sender: No OFD packet to send [19:16:20]OFD Sender: No OFD packet to send [19:16:25]OFD Sender: No OFD packet to send [19:16:30]OFD Sender: No OFD packet to send [19:16:35]OFD Sender: No OFD packet to send [19:16:40]OFD Sender: No OFD packet to send [19:16:45]OFD Sender: No OFD packet to send [19:16:50]OFD Sender: No OFD packet to send [19:16:55]OFD Sender: No OFD packet to send [19:17:00]OFD Sender: No OFD packet to send [19:17:05]OFD Sender: No OFD packet to send [19:17:10]OFD Sender: No OFD packet to send [19:17:15]OFD Sender: No OFD packet to send [19:17:20]OFD Sender: No OFD packet to send [19:17:25]OFD Sender: No OFD packet to send [19:17:30]OFD Sender: No OFD packet to send [19:17:35]OFD Sender: No OFD packet to send [19:17:40]OFD Sender: No OFD packet to send [19:17:46]OFD Sender: No OFD packet to send [19:17:51]OFD Sender: No OFD packet to send [19:17:56]OFD Sender: No OFD packet to send [19:17:59]accept exits with 9 [19:17:59]New connection [19:17:59]New thread 3066613092 created [19:17:59]Thread 3066756452 joined [19:17:59]Waiting for new connection... [19:17:59] Sock 9.Parse request [19:17:59]Sock 9.Check first char [19:17:59]Sock 9.First char is OK [19:17:59]request: POST /json_proto HTTP/1.0 [19:17:59]Method: POST [19:17:59]URL: /json_proto [19:17:59]Method is POST - this is cgi request [19:17:59]url: /json_proto [19:17:59]query_string will be loaded in cgi processing [19:17:59]execute_cgi json_proto POST (null) [19:17:59]execute_cgi path=json_proto method=POST [19:17:59]POST find Content-Length [19:17:59]Host: 172.17.42.131:8080 [19:17:59]Content-Length: 677 [19:17:59]Content-Type: application/json [19:17:59] [19:17:59]POST finish read [19:17:59]Found Content-Length = 677 [19:17:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:59]execute_script... [19:17: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)210519", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:17:59]POST & json_proto [19:17:59]process_json_proto [19:17:59]json parsed OK: [19:17:59]protocol is kg_v1.0 [19:17:59]action value=close_receipt [19:17:59]process_action close_receipt [19:17:59]cmd_close_receipt [19:17:59]MH_GetDate [19:17:59]Write to MH i2c: F0 00 00 C6 10 C5 [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: F0 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: F0 09 00 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: F0 09 00 C6 10 00 68 FA 17 67 A0 18 CA 66 96 [19:17:59]GetLastDocTimeStamp 1729624503 [19:17:59]current date 1729624680 [19:17:59]FM_GetShiftState [19:17:59]SAM_PROTO_GetShiftState [19:17:59]wFMCommunicate request_size=4 [19:17:59]MH_SAM_APDU [19:17:59]CAPDU: 80 13 01 00 [19:17:59]Write to MH i2c: E2 08 00 C7 10 80 13 01 00 00 00 00 00 54 [19:17:59]Write i2c OK [19:17:59]MH_I2C_Read... [19:17:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:17:59]Read from MH i2c: E2 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 0E 00 [19:17:59]MH_I2C_Read... [19:17:59]Read from MH i2c: E2 0E 00 C7 10 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [19:17:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:17:59]wFMCommunicate OK [19:17:59]SAM_PROTO_GetShiftState done [19:17:59]FM_GetShiftState done [19:17:59]opened in 1729556094 [19:17:59]opened+sec_in_day 1729642494 [19:17:59]quantity*price = 20003 [19:17:59]sum+1 = 20004 [19:17:59]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 486 22.10.2024 19:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188457 ФПД: 135787415041869 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191800&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188457&fm=135787415041869&tin=02508201610067®Number=0000000000100030&sum=20000 [19:18:00]StoreToDocumentArchive [19:18:00]shift 461 fd 188457 [19:18:00]save to /storage/0461/doc_00188457 [19:18:00]save last doc name /storage/0461/doc_00188457 to /storage/kkm_last_doc_name [19:18:00]save OK [19:18:00]Clear old archive folders... [19:18:00]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:00]tlvbuf is 008E2340 [19:18:00]SAM_PROTO_ClearQueue [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 09 00 00 [19:18:00]Write to MH i2c: E2 08 00 D4 10 80 09 00 00 00 00 00 00 56 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 D4 10 00 90 00 58 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_ClearQueue done [19:18:00]KKMCreateOFDPacket [19:18:00]OFDProtocolAddRootSTLVToBuf [19:18:00]FM_MakeSignedData [19:18:00]FM_MakeSignedData [19:18:00]SAM_PROTO_SignData [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 01 02 [19:18:00]Write to MH i2c: E2 08 00 D5 10 80 0D 01 02 00 00 00 00 5E [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 D5 10 00 90 00 59 [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=255 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 68 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E0 02 00 35 04 06 00 7B [19:18:00]Write to MH i2c: E2 02 01 D6 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 68 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E0 02 00 35 04 06 00 7B 00 00 AE [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 D6 10 00 90 00 5A [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=10 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 02 02 05 7F 78 A3 77 4D [19:18:00]Write to MH i2c: E2 0D 00 D7 10 80 0D 02 02 05 00 7F 78 A3 77 4D 00 00 C9 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 03 00 D7 10 00 90 00 5B [19:18:00]RAPDU: 90 00 [19:18:00]wFMCommunicate OK [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 0D 03 02 [19:18:00]Write to MH i2c: E2 08 00 D8 10 80 0D 03 02 00 00 00 00 63 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 0B 00 D8 10 00 03 80 72 CA 49 1A A6 0A 90 00 36 [19:18:00]RAPDU: 03 80 72 CA 49 1A A6 0A 90 00 [19:18:00]wFMCommunicate OK [19:18:00]SAM_PROTO_SignData done [19:18:00]FM_MakeSignedData done [19:18:00]CreateOFDProtocolMessage [19:18:00]wFMCommunicate request_size=4 [19:18:00]MH_SAM_APDU [19:18:00]CAPDU: 80 11 00 00 [19:18:00]Write to MH i2c: E2 08 00 D9 10 80 11 00 00 00 00 00 00 63 [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:00]Read from MH i2c: E2 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: E2 17 00 D9 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [19:18:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:18:00]wFMCommunicate OK [19:18:00]CreateOFDProtocolMessage done [19:18:00]OFDSenderStorePacket 188457 [19:18:00]StoreOFDPacket docnum=188457 [19:18:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 EC 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 68 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E0 02 00 35 04 06 00 7B 7F 78 A3 77 4D 03 80 72 CA 49 1A A6 0A [19:18:00]CheckFolder [19:18:00]dirname=/storage/ofd_packets [19:18:00]CheckFolder done [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00188457 [19:18:00]NVStorageSaveData ofd_packets/00188457 [19:18:00]File name is /storage/ofd_packets/00188457 [19:18:00]Write 301 bytes [19:18:00]NVStorageSaveData done [19:18:00]OFDSenderStorePacket done [19:18:00]KKMCreateOFDPacket done [19:18:00]NVStorageSaveData kkm_last_timestamp [19:18:00]File name is /storage/kkm_last_timestamp [19:18:00]Write 4 bytes [19:18:00]NVStorageSaveData done [19:18:00]ExternCall_PrintAddStr [19:18:00]wPrintStart [19:18:00]Write to MH i2c: 01 00 00 DA 10 EA [19:18:00]Write i2c OK [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 [19:18:00]MH_I2C_Read... [19:18:00]Read from MH i2c: 01 07 00 DA 10 00 00 00 00 00 FF 0F FF [19:18:00]RasterBufferAndPrint [19:18:00]line Счет N : (1)210519 [19:18:00]line ИНН: 02508201610067 [19:18:00]line Контрольно-Кассовый Чек [19:18:00]line ПРОДАЖА [19:18:00]line ТРК (МРК, ГНК) : 22 [19:18:00]line Товар: 2710124130 [19:18:00]line Аи-92-К-3 [19:18:00]line 2.990 * 66.90 [19:18:00]line = 200.03 [19:18:00]line НДС 12% НСП 1% [19:18:00]line > о реализуемом товаре [19:18:00]line ОКРУГЛЕНИЕ: -0.03 [19:18:00]line ИТОГО: 200.00 [19:18:00]line Внесено: 200.00 [19:18:00]line СДАЧА: 0.00 [19:18:00]line НСП 1% : 1.77 [19:18:00]line НДС 12% : 21.24 [19:18:00]line Наличными: 200.00 [19:18:00]line Безнал.: 0.00 [19:18:00]line Место: АЗС № 86 "Партнер Нефть" [19:18:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:18:00]line СНО: Общий режим [19:18:00]line Чек 486 22.10.2024 19:18 [19:18:00]line Смена: 461 ФФД: 1.0 [19:18:00]line ЗНМ: 0300000155 [19:18:00]line РНМ: 0000000000100030 [19:18:00]line Версия ККМ: 001 [19:18:00]line ФМ: 0000000000965340 [19:18:00]line ФД: 188457 [19:18:00]line ФПД: 135787415041869 [19:18:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191800&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188457&fm=135787415041869&tin=02508201610067®Number=0000000000100030&sum=20000 [19:18:00]written 0, free lines is 4095 [19:18:00]OFD Sender: Processing packet 188457 [packets to send 1062, broken 1061] [19:18:00]ProducePacketName [19:18:00]name=ofd_packets/00188457 [19:18:00]OFD Sender: To server: pG, [19:18:00]CommunicateWithHost lk.salyk.kg:30040 [19:18:00]ConnectInit lk.salyk.kg [19:18:01]Connected sock=10 [19:18:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D1 EC 07 01 48 01 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E6 01 00 00 F4 03 04 00 68 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 29 E0 02 00 35 04 06 00 7B 7F 78 A3 77 4D 03 80 72 CA 49 1A A6 0A [19:18:01]Write to MH i2c: 01 00 00 05 11 16 [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: 01 07 00 05 11 00 00 00 00 00 5F 0C 88 [19:18:01]RasterBufferAndPrint [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]line [19:18:01]written 0, free lines is 3170 [19:18:01]MH_Cut [19:18:01]Write to MH i2c: D1 01 00 0C 11 01 EF [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 [19:18:01]MH_I2C_Read... [19:18:01]Read from MH i2c: D1 01 00 0C 11 00 EE [19:18:01]Write to MH i2c: 01 00 00 0D 11 1E [19:18:01]Write i2c OK [19:18:01]MH_I2C_Read... [19:18:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 39 C1 47 00 ED 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 39 36 35 33 34 30 10 04 04 00 29 E0 02 00 F4 03 04 00 55 A4 17 67 B6 04 01 00 00 29 B5 0E 35 10 BF 0D A3 [19:18:01]CommunicateWithHost err = 0 [19:18:01]CheckOFDResponse [19:18:01]1017 (14) - 77093643461234 [19:18:01]1041 (16) - 0000000000965340 [19:18:01]1040 (4) - 188457 [19:18:01]1012 (4) - 22.10.2024 13:10 [19:18:01]1206 (1) - 0 [19:18:01]OFD Sender: Remove packet 188457 [19:18:01]ProducePacketName [19:18:01]name=ofd_packets/00188457 [19:18:01]NVStorageDeleteData [19:18:02]OFD Sender: No OFD packet to send [19:18:02]*** Cut start [19:18:02]*** Partial cut [19:18:02]*** CUTSNS_PIN = 1 [19:18:02]*** CUTSNS_PIN = 0 [19:18:02]*** Brake cut motor [19:18:03]Read from MH i2c: 01 [19:18:03]MH_I2C_Read... [19:18:03]*** Stop cut motor [19:18:03]*** Cut end [19:18:03]Read from MH i2c: 01 07 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: 01 07 00 0D 11 00 00 00 00 00 FF 0F 33 [19:18:03]process_action close_receipt done [19:18:03]requested_data is exist [19:18:03]produce_requested_data [19:18:03]requested_item fm.sn is exist - process it [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 11 00 00 [19:18:03]Write to MH i2c: E2 08 00 0E 11 80 11 00 00 00 00 00 00 99 [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 17 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 17 00 0E 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [19:18:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:18:03]wFMCommunicate OK [19:18:03]requested_item fd.num is exist - process it [19:18:03]SAM_PROTO_GetFieldsCounters [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 13 00 00 [19:18:03]Write to MH i2c: E2 08 00 0F 11 80 13 00 00 00 00 00 00 9C [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 62 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 62 00 0F 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 31 [19:18:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 29 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E6 01 00 00 5E 04 04 00 E6 01 00 00 57 04 04 00 E7 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:03]wFMCommunicate OK [19:18:03]SAM_PROTO_GetFieldsCounters done [19:18:03]requested_item shift.num is exist - process it [19:18:03]requested_item shift.opened is exist - process it [19:18:03]req_shift_opened [19:18:03]FM_GetShiftState [19:18:03]SAM_PROTO_GetShiftState [19:18:03]wFMCommunicate request_size=4 [19:18:03]MH_SAM_APDU [19:18:03]CAPDU: 80 13 01 00 [19:18:03]Write to MH i2c: E2 08 00 10 11 80 13 01 00 00 00 00 00 9E [19:18:03]Write i2c OK [19:18:03]MH_I2C_Read... [19:18:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:03]Read from MH i2c: E2 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 [19:18:03]MH_I2C_Read... [19:18:03]Read from MH i2c: E2 0E 00 10 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 93 [19:18:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:18:03]wFMCommunicate OK [19:18:03]SAM_PROTO_GetShiftState done [19:18:03]FM_GetShiftState done [19:18:03]req_shift_opened done [19:18:03]requested_item shift.open_date is exist - process it [19:18:03]req_shift_open_date [19:18:03]req_shift_open_date done [19:18:03]produce_requested_data done [19:18:03]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188457,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:18:03]process_action_free close_receipt [19:18:03]json_value_free [19:18:03]json_value_free done [19:18:03]process_json_proto returns [19:18:03]Send response to host [19:18:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188457,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:18:03]free response buf [19:18:03]execute_script done [19:18:03]execute_script returns [19:18:03]free content buf [19:18:03]Sock 9.Close socket [19:18:03]Sock 9.Thread stoped [19:18:07]OFD Sender: No OFD packet to send [19:18:08]accept exits with 7 [19:18:08]New connection [19:18:08]New thread 3066756452 created [19:18:08]Thread 3066613092 joined [19:18:08]Waiting for new connection... [19:18:08] Sock 7.Parse request [19:18:08]Sock 7.Check first char [19:18:08]Sock 7.First char is OK [19:18:08]request: POST /json_proto HTTP/1.0 [19:18:08]Method: POST [19:18:08]URL: /json_proto [19:18:08]Method is POST - this is cgi request [19:18:08]url: /json_proto [19:18:08]query_string will be loaded in cgi processing [19:18:08]execute_cgi json_proto POST (null) [19:18:08]execute_cgi path=json_proto method=POST [19:18:08]POST find Content-Length [19:18:08]Host: 172.17.42.131:8080 [19:18:08]Content-Length: 677 [19:18:08]Content-Type: application/json [19:18:08] [19:18:08]POST finish read [19:18:08]Found Content-Length = 677 [19:18:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:08]execute_script... [19:18: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)210518", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:08]POST & json_proto [19:18:08]process_json_proto [19:18:08]json parsed OK: [19:18:08]protocol is kg_v1.0 [19:18:08]action value=close_receipt [19:18:08]process_action close_receipt [19:18:08]cmd_close_receipt [19:18:08]MH_GetDate [19:18:08]Write to MH i2c: F0 00 00 11 11 11 [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: F0 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: F0 09 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: F0 09 00 11 11 00 71 FA 17 67 A0 18 CA 66 EB [19:18:08]GetLastDocTimeStamp 1729624680 [19:18:08]current date 1729624689 [19:18:08]FM_GetShiftState [19:18:08]SAM_PROTO_GetShiftState [19:18:08]wFMCommunicate request_size=4 [19:18:08]MH_SAM_APDU [19:18:08]CAPDU: 80 13 01 00 [19:18:08]Write to MH i2c: E2 08 00 12 11 80 13 01 00 00 00 00 00 A0 [19:18:08]Write i2c OK [19:18:08]MH_I2C_Read... [19:18:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:08]Read from MH i2c: E2 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 0E 00 [19:18:08]MH_I2C_Read... [19:18:08]Read from MH i2c: E2 0E 00 12 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 95 [19:18:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:18:08]wFMCommunicate OK [19:18:08]SAM_PROTO_GetShiftState done [19:18:08]FM_GetShiftState done [19:18:08]opened in 1729556094 [19:18:08]opened+sec_in_day 1729642494 [19:18:08]quantity*price = 20003 [19:18:08]sum+1 = 20004 [19:18:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 487 22.10.2024 19:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188458 ФПД: 252524943274433 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188458&fm=252524943274433&tin=02508201610067®Number=0000000000100030&sum=20000 [19:18:09]StoreToDocumentArchive [19:18:09]shift 461 fd 188458 [19:18:09]save to /storage/0461/doc_00188458 [19:18:09]save last doc name /storage/0461/doc_00188458 to /storage/kkm_last_doc_name [19:18:09]save OK [19:18:09]Clear old archive folders... [19:18:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:09]tlvbuf is 00940A80 [19:18:09]SAM_PROTO_ClearQueue [19:18:09]wFMCommunicate request_size=4 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 09 00 00 [19:18:09]Write to MH i2c: E2 08 00 1F 11 80 09 00 00 00 00 00 00 A2 [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:09]Read from MH i2c: E2 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 03 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 03 00 1F 11 00 90 00 A4 [19:18:09]RAPDU: 90 00 [19:18:09]wFMCommunicate OK [19:18:09]SAM_PROTO_ClearQueue done [19:18:09]KKMCreateOFDPacket [19:18:09]OFDProtocolAddRootSTLVToBuf [19:18:09]FM_MakeSignedData [19:18:09]FM_MakeSignedData [19:18:09]SAM_PROTO_SignData [19:18:09]wFMCommunicate request_size=4 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 0D 01 02 [19:18:09]Write to MH i2c: E2 08 00 20 11 80 0D 01 02 00 00 00 00 AA [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:09]Read from MH i2c: E2 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 03 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 03 00 20 11 00 90 00 A5 [19:18:09]RAPDU: 90 00 [19:18:09]wFMCommunicate OK [19:18:09]wFMCommunicate request_size=255 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 71 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E0 02 00 35 04 06 00 E5 [19:18:09]Write to MH i2c: E2 02 01 21 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 71 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E0 02 00 35 04 06 00 E5 00 00 6F [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:09]Read from MH i2c: E2 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 03 00 [19:18:09]MH_I2C_Read... [19:18:09]Read from MH i2c: E2 03 00 21 11 00 90 00 A6 [19:18:09]RAPDU: 90 00 [19:18:09]wFMCommunicate OK [19:18:09]wFMCommunicate request_size=10 [19:18:09]MH_SAM_APDU [19:18:09]CAPDU: 80 0D 02 02 05 AB 8B 8A 71 C1 [19:18:09]Write to MH i2c: E2 0D 00 22 11 80 0D 02 02 05 00 AB 8B 8A 71 C1 00 00 A9 [19:18:09]Write i2c OK [19:18:09]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 03 00 22 11 00 90 00 A7 [19:18:10]RAPDU: 90 00 [19:18:10]wFMCommunicate OK [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 0D 03 02 [19:18:10]Write to MH i2c: E2 08 00 23 11 80 0D 03 02 00 00 00 00 AF [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0B 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 0B 00 23 11 00 A4 C8 6F 3E CC B7 00 67 90 00 B3 [19:18:10]RAPDU: A4 C8 6F 3E CC B7 00 67 90 00 [19:18:10]wFMCommunicate OK [19:18:10]SAM_PROTO_SignData done [19:18:10]FM_MakeSignedData done [19:18:10]CreateOFDProtocolMessage [19:18:10]wFMCommunicate request_size=4 [19:18:10]MH_SAM_APDU [19:18:10]CAPDU: 80 11 00 00 [19:18:10]Write to MH i2c: E2 08 00 24 11 80 11 00 00 00 00 00 00 AF [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:10]Read from MH i2c: E2 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 17 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: E2 17 00 24 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [19:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:18:10]wFMCommunicate OK [19:18:10]CreateOFDProtocolMessage done [19:18:10]OFDSenderStorePacket 188458 [19:18:10]StoreOFDPacket docnum=188458 [19:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 00 07 01 F0 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 71 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E0 02 00 35 04 06 00 E5 AB 8B 8A 71 C1 A4 C8 6F 3E CC B7 00 67 [19:18:10]CheckFolder [19:18:10]dirname=/storage/ofd_packets [19:18:10]CheckFolder done [19:18:10]ProducePacketName [19:18:10]name=ofd_packets/00188458 [19:18:10]NVStorageSaveData ofd_packets/00188458 [19:18:10]File name is /storage/ofd_packets/00188458 [19:18:10]Write 301 bytes [19:18:10]NVStorageSaveData done [19:18:10]OFDSenderStorePacket done [19:18:10]KKMCreateOFDPacket done [19:18:10]NVStorageSaveData kkm_last_timestamp [19:18:10]File name is /storage/kkm_last_timestamp [19:18:10]Write 4 bytes [19:18:10]NVStorageSaveData done [19:18:10]ExternCall_PrintAddStr [19:18:10]wPrintStart [19:18:10]Write to MH i2c: 01 00 00 25 11 36 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 07 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 07 00 25 11 00 00 00 00 00 FF 0F 4B [19:18:10]RasterBufferAndPrint [19:18:10]line Счет N : (1)210518 [19:18:10]line ИНН: 02508201610067 [19:18:10]line Контрольно-Кассовый Чек [19:18:10]line ПРОДАЖА [19:18:10]line ТРК (МРК, ГНК) : 42 [19:18:10]line Товар: 2710124130 [19:18:10]line Аи-92-К-3 [19:18:10]line 2.990 * 66.90 [19:18:10]line = 200.03 [19:18:10]line НДС 12% НСП 1% [19:18:10]line > о реализуемом товаре [19:18:10]line ОКРУГЛЕНИЕ: -0.03 [19:18:10]line ИТОГО: 200.00 [19:18:10]line Внесено: 200.00 [19:18:10]line СДАЧА: 0.00 [19:18:10]line НСП 1% : 1.77 [19:18:10]line НДС 12% : 21.24 [19:18:10]line Наличными: 200.00 [19:18:10]line Безнал.: 0.00 [19:18:10]line Место: АЗС № 86 "Партнер Нефть" [19:18:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:18:10]line СНО: Общий режим [19:18:10]line Чек 487 22.10.2024 19:18 [19:18:10]line Смена: 461 ФФД: 1.0 [19:18:10]line ЗНМ: 0300000155 [19:18:10]line РНМ: 0000000000100030 [19:18:10]line Версия ККМ: 001 [19:18:10]line ФМ: 0000000000965340 [19:18:10]line ФД: 188458 [19:18:10]line ФПД: 252524943274433 [19:18:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191809&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188458&fm=252524943274433&tin=02508201610067®Number=0000000000100030&sum=20000 [19:18:10]written 0, free lines is 4095 [19:18:10]OFD Sender: Processing packet 188458 [packets to send 1062, broken 1061] [19:18:10]ProducePacketName [19:18:10]name=ofd_packets/00188458 [19:18:10]OFD Sender: To server: pG, [19:18:10]CommunicateWithHost lk.salyk.kg:30040 [19:18:10]ConnectInit lk.salyk.kg [19:18:10]Connected sock=10 [19:18:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 00 07 01 F0 0D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 E7 01 00 00 F4 03 04 00 71 FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2A E0 02 00 35 04 06 00 E5 AB 8B 8A 71 C1 A4 C8 6F 3E CC B7 00 67 [19:18:10]Write to MH i2c: 01 00 00 50 11 61 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 07 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: 01 07 00 50 11 00 00 00 00 00 66 0C DA [19:18:10]RasterBufferAndPrint [19:18:10]line [19:18:10]line [19:18:10]line [19:18:10]line [19:18:10]line [19:18:10]written 0, free lines is 3179 [19:18:10]MH_Cut [19:18:10]Write to MH i2c: D1 01 00 57 11 01 3A [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: D1 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: D1 01 00 [19:18:10]MH_I2C_Read... [19:18:10]Read from MH i2c: D1 01 00 57 11 00 39 [19:18:10]Write to MH i2c: 01 00 00 58 11 69 [19:18:10]Write i2c OK [19:18:10]MH_I2C_Read... [19:18:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A FC 47 00 B9 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 39 36 35 33 34 30 10 04 04 00 2A E0 02 00 F4 03 04 00 5E A4 17 67 B6 04 01 00 00 1F 77 CD 73 12 C4 5F 43 [19:18:10]CommunicateWithHost err = 0 [19:18:10]CheckOFDResponse [19:18:10]1017 (14) - 77093643461234 [19:18:10]1041 (16) - 0000000000965340 [19:18:10]1040 (4) - 188458 [19:18:10]1012 (4) - 22.10.2024 13:10 [19:18:10]1206 (1) - 0 [19:18:10]OFD Sender: Remove packet 188458 [19:18:10]ProducePacketName [19:18:10]name=ofd_packets/00188458 [19:18:10]NVStorageDeleteData [19:18:11]OFD Sender: No OFD packet to send [19:18:11]*** Cut start [19:18:11]*** Partial cut [19:18:11]*** CUTSNS_PIN = 1 [19:18:11]*** CUTSNS_PIN = 0 [19:18:12]*** Brake cut motor [19:18:12]Read from MH i2c: 01 [19:18:12]MH_I2C_Read... [19:18:12]*** Stop cut motor [19:18:12]*** Cut end [19:18:12]Read from MH i2c: 01 07 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: 01 07 00 58 11 00 00 00 00 00 FF 0F 7E [19:18:12]process_action close_receipt done [19:18:12]requested_data is exist [19:18:12]produce_requested_data [19:18:12]requested_item fm.sn is exist - process it [19:18:12]wFMCommunicate request_size=4 [19:18:12]MH_SAM_APDU [19:18:12]CAPDU: 80 11 00 00 [19:18:12]Write to MH i2c: E2 08 00 59 11 80 11 00 00 00 00 00 00 E4 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 17 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 17 00 59 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 32 [19:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:18:12]wFMCommunicate OK [19:18:12]requested_item fd.num is exist - process it [19:18:12]SAM_PROTO_GetFieldsCounters [19:18:12]wFMCommunicate request_size=4 [19:18:12]MH_SAM_APDU [19:18:12]CAPDU: 80 13 00 00 [19:18:12]Write to MH i2c: E2 08 00 5A 11 80 13 00 00 00 00 00 00 E7 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 62 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 62 00 5A 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:18:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E7 01 00 00 5E 04 04 00 E7 01 00 00 57 04 04 00 E8 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:18:12]wFMCommunicate OK [19:18:12]SAM_PROTO_GetFieldsCounters done [19:18:12]requested_item shift.num is exist - process it [19:18:12]requested_item shift.opened is exist - process it [19:18:12]req_shift_opened [19:18:12]FM_GetShiftState [19:18:12]SAM_PROTO_GetShiftState [19:18:12]wFMCommunicate request_size=4 [19:18:12]MH_SAM_APDU [19:18:12]CAPDU: 80 13 01 00 [19:18:12]Write to MH i2c: E2 08 00 5B 11 80 13 01 00 00 00 00 00 E9 [19:18:12]Write i2c OK [19:18:12]MH_I2C_Read... [19:18:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:12]Read from MH i2c: E2 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 0E 00 [19:18:12]MH_I2C_Read... [19:18:12]Read from MH i2c: E2 0E 00 5B 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DE [19:18:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:18:12]wFMCommunicate OK [19:18:12]SAM_PROTO_GetShiftState done [19:18:12]FM_GetShiftState done [19:18:12]req_shift_opened done [19:18:12]requested_item shift.open_date is exist - process it [19:18:12]req_shift_open_date [19:18:12]req_shift_open_date done [19:18:12]produce_requested_data done [19:18:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188458,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:18:12]process_action_free close_receipt [19:18:12]json_value_free [19:18:12]json_value_free done [19:18:12]process_json_proto returns [19:18:12]Send response to host [19:18:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188458,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:18:12]free response buf [19:18:12]execute_script done [19:18:12]execute_script returns [19:18:12]free content buf [19:18:12]Sock 7.Close socket [19:18:12]Sock 7.Thread stoped [19:18:16]OFD Sender: No OFD packet to send [19:18:21]OFD Sender: No OFD packet to send [19:18:26]OFD Sender: No OFD packet to send [19:18:31]OFD Sender: No OFD packet to send [19:18:36]OFD Sender: No OFD packet to send [19:18:41]OFD Sender: No OFD packet to send [19:18:46]OFD Sender: No OFD packet to send [19:18:51]OFD Sender: No OFD packet to send [19:18:56]OFD Sender: No OFD packet to send [19:19:01]OFD Sender: No OFD packet to send [19:19:04]accept exits with 9 [19:19:04]New connection [19:19:04]New thread 3066613092 created [19:19:04]Thread 3066756452 joined [19:19:04]Waiting for new connection... [19:19:04] Sock 9.Parse request [19:19:04]Sock 9.Check first char [19:19:04]Sock 9.First char is OK [19:19:04]request: POST /json_proto HTTP/1.0 [19:19:04]Method: POST [19:19:04]URL: /json_proto [19:19:04]Method is POST - this is cgi request [19:19:04]url: /json_proto [19:19:04]query_string will be loaded in cgi processing [19:19:04]execute_cgi json_proto POST (null) [19:19:04]execute_cgi path=json_proto method=POST [19:19:04]POST find Content-Length [19:19:04]Host: 172.17.42.131:8080 [19:19:04]Content-Length: 679 [19:19:04]Content-Type: application/json [19:19:04] [19:19:04]POST finish read [19:19:04]Found Content-Length = 679 [19:19:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [19:19:04]execute_script... [19:19: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)210517", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [19:19:04]POST & json_proto [19:19:04]process_json_proto [19:19:04]json parsed OK: [19:19:04]protocol is kg_v1.0 [19:19:04]action value=close_receipt [19:19:04]process_action close_receipt [19:19:04]cmd_close_receipt [19:19:04]MH_GetDate [19:19:04]Write to MH i2c: F0 00 00 5C 11 5C [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: F0 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: F0 09 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: F0 09 00 5C 11 00 AA FA 17 67 A0 18 CA 66 6F [19:19:04]GetLastDocTimeStamp 1729624689 [19:19:04]current date 1729624746 [19:19:04]FM_GetShiftState [19:19:04]SAM_PROTO_GetShiftState [19:19:04]wFMCommunicate request_size=4 [19:19:04]MH_SAM_APDU [19:19:04]CAPDU: 80 13 01 00 [19:19:04]Write to MH i2c: E2 08 00 5D 11 80 13 01 00 00 00 00 00 EB [19:19:04]Write i2c OK [19:19:04]MH_I2C_Read... [19:19:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:04]Read from MH i2c: E2 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 0E 00 [19:19:04]MH_I2C_Read... [19:19:04]Read from MH i2c: E2 0E 00 5D 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E0 [19:19:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:19:04]wFMCommunicate OK [19:19:04]SAM_PROTO_GetShiftState done [19:19:04]FM_GetShiftState done [19:19:04]opened in 1729556094 [19:19:04]opened+sec_in_day 1729642494 [19:19:04]quantity*price = 200025 [19:19:04]sum+1 = 200026 [19:19:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 488 22.10.2024 19:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188459 ФПД: 183414404801524 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191906&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188459&fm=183414404801524&tin=02508201610067®Number=0000000000100030&sum=200000 [19:19:06]StoreToDocumentArchive [19:19:06]shift 461 fd 188459 [19:19:06]save to /storage/0461/doc_00188459 [19:19:06]save last doc name /storage/0461/doc_00188459 to /storage/kkm_last_doc_name [19:19:06]save OK [19:19:06]Clear old archive folders... [19:19:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:19:06]tlvbuf is 0095AF80 [19:19:06]SAM_PROTO_ClearQueue [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 09 00 00 [19:19:06]Write to MH i2c: E2 08 00 6A 11 80 09 00 00 00 00 00 00 ED [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 6A 11 00 90 00 EF [19:19:06]RAPDU: 90 00 [19:19:06]wFMCommunicate OK [19:19:06]SAM_PROTO_ClearQueue done [19:19:06]KKMCreateOFDPacket [19:19:06]OFDProtocolAddRootSTLVToBuf [19:19:06]FM_MakeSignedData [19:19:06]FM_MakeSignedData [19:19:06]SAM_PROTO_SignData [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 0D 01 02 [19:19:06]Write to MH i2c: E2 08 00 6B 11 80 0D 01 02 00 00 00 00 F5 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 6B 11 00 90 00 F0 [19:19:06]RAPDU: 90 00 [19:19:06]wFMCommunicate OK [19:19:06]wFMCommunicate request_size=255 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E8 01 00 00 F4 03 04 00 AA FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E0 02 00 35 04 06 00 A6 D0 7E 71 [19:19:06]Write to MH i2c: E2 02 01 6C 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 32 31 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 E8 01 00 00 F4 03 04 00 AA FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E0 02 00 35 04 06 00 A6 D0 7E 71 00 00 99 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 6C 11 00 90 00 F1 [19:19:06]RAPDU: 90 00 [19:19:06]wFMCommunicate OK [19:19:06]wFMCommunicate request_size=7 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 0D 02 02 02 E3 F4 [19:19:06]Write to MH i2c: E2 0A 00 6D 11 80 0D 02 02 02 00 E3 F4 00 00 D3 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 03 00 6D 11 00 90 00 F2 [19:19:06]RAPDU: 90 00 [19:19:06]wFMCommunicate OK [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 0D 03 02 [19:19:06]Write to MH i2c: E2 08 00 6E 11 80 0D 03 02 00 00 00 00 FA [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]OFD Sender: No OFD packet to send [19:19:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 0B 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 0B 00 6E 11 00 BC 03 9E E3 36 63 41 20 90 00 35 [19:19:06]RAPDU: BC 03 9E E3 36 63 41 20 90 00 [19:19:06]wFMCommunicate OK [19:19:06]SAM_PROTO_SignData done [19:19:06]FM_MakeSignedData done [19:19:06]CreateOFDProtocolMessage [19:19:06]wFMCommunicate request_size=4 [19:19:06]MH_SAM_APDU [19:19:06]CAPDU: 80 11 00 00 [19:19:06]Write to MH i2c: E2 08 00 6F 11 80 11 00 00 00 00 00 00 FA [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:06]Read from MH i2c: E2 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 17 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: E2 17 00 6F 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 48 [19:19:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:19:06]wFMCommunicate OK [19:19:06]CreateOFDProtocolMessage done [19:19:06]OFDSenderStorePacket 188459 [19:19:06]StoreOFDPacket docnum=188459 [19:19:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 AC AD 04 01 5D 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E8 01 00 00 F4 03 04 00 AA FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E0 02 00 35 04 06 00 A6 D0 7E 71 E3 F4 BC 03 9E E3 36 63 41 20 [19:19:06]CheckFolder [19:19:06]dirname=/storage/ofd_packets [19:19:06]CheckFolder done [19:19:06]ProducePacketName [19:19:06]name=ofd_packets/00188459 [19:19:06]NVStorageSaveData ofd_packets/00188459 [19:19:06]File name is /storage/ofd_packets/00188459 [19:19:06]Write 298 bytes [19:19:06]NVStorageSaveData done [19:19:06]OFDSenderStorePacket done [19:19:06]KKMCreateOFDPacket done [19:19:06]NVStorageSaveData kkm_last_timestamp [19:19:06]File name is /storage/kkm_last_timestamp [19:19:06]Write 4 bytes [19:19:06]NVStorageSaveData done [19:19:06]ExternCall_PrintAddStr [19:19:06]wPrintStart [19:19:06]Write to MH i2c: 01 00 00 70 11 81 [19:19:06]Write i2c OK [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: 01 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: 01 07 00 [19:19:06]MH_I2C_Read... [19:19:06]Read from MH i2c: 01 07 00 70 11 00 00 00 00 00 FF 0F 96 [19:19:06]RasterBufferAndPrint [19:19:06]line Счет N : (1)210517 [19:19:06]line ИНН: 02508201610067 [19:19:06]line Контрольно-Кассовый Чек [19:19:06]line ПРОДАЖА [19:19:06]line ТРК (МРК, ГНК) : 51 [19:19:06]line Товар: 2710194210 [19:19:06]line ДТ-К-5 [19:19:06]line 26.250 * 76.20 [19:19:06]line = 2000.25 [19:19:06]line НДС 12% НСП 1% [19:19:06]line > о реализуемом товаре [19:19:06]line ОКРУГЛЕНИЕ: -0.25 [19:19:06]line ИТОГО: 2000.00 [19:19:06]line Внесено: 2000.00 [19:19:06]line СДАЧА: 0.00 [19:19:06]line НСП 1% : 17.70 [19:19:06]line НДС 12% : 212.42 [19:19:06]line Наличными: 2000.00 [19:19:06]line Безнал.: 0.00 [19:19:06]line Место: АЗС № 86 "Партнер Нефть" [19:19:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:19:06]line СНО: Общий режим [19:19:06]line Чек 488 22.10.2024 19:19 [19:19:06]line Смена: 461 ФФД: 1.0 [19:19:06]line ЗНМ: 0300000155 [19:19:06]line РНМ: 0000000000100030 [19:19:06]line Версия ККМ: 001 [19:19:06]line ФМ: 0000000000965340 [19:19:06]line ФД: 188459 [19:19:06]line ФПД: 183414404801524 [19:19:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T191906&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188459&fm=183414404801524&tin=02508201610067®Number=0000000000100030&sum=200000 [19:19:06]written 0, free lines is 4095 [19:19:06]OFD Sender: Processing packet 188459 [packets to send 1062, broken 1061] [19:19:06]ProducePacketName [19:19:06]name=ofd_packets/00188459 [19:19:06]OFD Sender: To server: pG, [19:19:06]CommunicateWithHost lk.salyk.kg:30040 [19:19:06]ConnectInit lk.salyk.kg [19:19:06]Connected sock=7 [19:19:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 AC AD 04 01 5D 34 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 E8 01 00 00 F4 03 04 00 AA FA 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E0 02 00 35 04 06 00 A6 D0 7E 71 E3 F4 BC 03 9E E3 36 63 41 20 [19:19:07]Write to MH i2c: 01 00 00 9B 11 AC [19:19:07]Write i2c OK [19:19:07]MH_I2C_Read... [19:19:07]Read from MH i2c: 01 [19:19:07]MH_I2C_Read... [19:19:07]Read from MH i2c: 01 07 00 [19:19:07]MH_I2C_Read... [19:19:07]Read from MH i2c: 01 07 00 9B 11 00 00 00 00 00 62 0C 21 [19:19:07]RasterBufferAndPrint [19:19:07]line [19:19:07]line [19:19:07]line [19:19:07]line [19:19:07]line [19:19:07]written 0, free lines is 3174 [19:19:07]MH_Cut [19:19:07]Write to MH i2c: D1 01 00 A2 11 01 85 [19:19:07]Write i2c OK [19:19:07]MH_I2C_Read... [19:19:07]Read from MH i2c: D1 [19:19:07]MH_I2C_Read... [19:19:07]Read from MH i2c: D1 01 00 [19:19:07]MH_I2C_Read... [19:19:07]Read from MH i2c: D1 01 00 A2 11 00 84 [19:19:07]Write to MH i2c: 01 00 00 A3 11 B4 [19:19:07]Write i2c OK [19:19:07]MH_I2C_Read... [19:19:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 53 47 00 7D 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2B E0 02 00 F4 03 04 00 96 A4 17 67 B6 04 01 00 00 4A AF 0D 58 DB A2 5E 88 [19:19:07]CommunicateWithHost err = 0 [19:19:07]CheckOFDResponse [19:19:07]1017 (14) - 77093643461234 [19:19:07]1041 (16) - 0000000000965340 [19:19:07]1040 (4) - 188459 [19:19:07]1012 (4) - 22.10.2024 13:11 [19:19:07]1206 (1) - 0 [19:19:07]OFD Sender: Remove packet 188459 [19:19:07]ProducePacketName [19:19:07]name=ofd_packets/00188459 [19:19:07]NVStorageDeleteData [19:19:07]OFD Sender: No OFD packet to send [19:19:08]*** Cut start [19:19:08]*** Partial cut [19:19:08]*** CUTSNS_PIN = 1 [19:19:08]*** CUTSNS_PIN = 0 [19:19:08]*** Brake cut motor [19:19:09]Read from MH i2c: 01 [19:19:09]MH_I2C_Read... [19:19:09]*** Stop cut motor [19:19:09]*** Cut end [19:19:09]Read from MH i2c: 01 07 00 [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: 01 07 00 A3 11 00 00 00 00 00 FF 0F C9 [19:19:09]process_action close_receipt done [19:19:09]requested_data is exist [19:19:09]produce_requested_data [19:19:09]requested_item fm.sn is exist - process it [19:19:09]wFMCommunicate request_size=4 [19:19:09]MH_SAM_APDU [19:19:09]CAPDU: 80 11 00 00 [19:19:09]Write to MH i2c: E2 08 00 A4 11 80 11 00 00 00 00 00 00 2F [19:19:09]Write i2c OK [19:19:09]MH_I2C_Read... [19:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:19:09]Read from MH i2c: E2 [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: E2 17 00 [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: E2 17 00 A4 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7D [19:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:19:09]wFMCommunicate OK [19:19:09]requested_item fd.num is exist - process it [19:19:09]SAM_PROTO_GetFieldsCounters [19:19:09]wFMCommunicate request_size=4 [19:19:09]MH_SAM_APDU [19:19:09]CAPDU: 80 13 00 00 [19:19:09]Write to MH i2c: E2 08 00 A5 11 80 13 00 00 00 00 00 00 32 [19:19:09]Write i2c OK [19:19:09]MH_I2C_Read... [19:19:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:19:09]Read from MH i2c: E2 [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: E2 62 00 [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: E2 62 00 A5 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 CF [19:19:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E8 01 00 00 5E 04 04 00 E8 01 00 00 57 04 04 00 E9 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:19:09]wFMCommunicate OK [19:19:09]SAM_PROTO_GetFieldsCounters done [19:19:09]requested_item shift.num is exist - process it [19:19:09]requested_item shift.opened is exist - process it [19:19:09]req_shift_opened [19:19:09]FM_GetShiftState [19:19:09]SAM_PROTO_GetShiftState [19:19:09]wFMCommunicate request_size=4 [19:19:09]MH_SAM_APDU [19:19:09]CAPDU: 80 13 01 00 [19:19:09]Write to MH i2c: E2 08 00 A6 11 80 13 01 00 00 00 00 00 34 [19:19:09]Write i2c OK [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: E2 [19:19:09]MH_I2C_Read... [19:19:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:19:09]Read from MH i2c: E2 0E 00 [19:19:09]MH_I2C_Read... [19:19:09]Read from MH i2c: E2 0E 00 A6 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 29 [19:19:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:19:09]wFMCommunicate OK [19:19:09]SAM_PROTO_GetShiftState done [19:19:09]FM_GetShiftState done [19:19:09]req_shift_opened done [19:19:09]requested_item shift.open_date is exist - process it [19:19:09]req_shift_open_date [19:19:09]req_shift_open_date done [19:19:09]produce_requested_data done [19:19:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188459,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:19:09]process_action_free close_receipt [19:19:09]json_value_free [19:19:09]json_value_free done [19:19:09]process_json_proto returns [19:19:09]Send response to host [19:19:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188459,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:19:09]free response buf [19:19:09]execute_script done [19:19:09]execute_script returns [19:19:09]free content buf [19:19:09]Sock 9.Close socket [19:19:09]Sock 9.Thread stoped [19:19:12]OFD Sender: No OFD packet to send [19:19:17]OFD Sender: No OFD packet to send [19:19:22]OFD Sender: No OFD packet to send [19:19:27]OFD Sender: No OFD packet to send [19:19:32]OFD Sender: No OFD packet to send [19:19:37]OFD Sender: No OFD packet to send [19:19:43]OFD Sender: No OFD packet to send [19:19:48]OFD Sender: No OFD packet to send [19:19:53]OFD Sender: No OFD packet to send [19:19:58]OFD Sender: No OFD packet to send [19:20:03]OFD Sender: No OFD packet to send [19:20:08]OFD Sender: No OFD packet to send [19:20:13]OFD Sender: No OFD packet to send [19:20:18]OFD Sender: No OFD packet to send [19:20:23]OFD Sender: No OFD packet to send [19:20:28]OFD Sender: No OFD packet to send [19:20:33]OFD Sender: No OFD packet to send [19:20:38]OFD Sender: No OFD packet to send [19:20:40]accept exits with 10 [19:20:40]New connection [19:20:40]New thread 3066756452 created [19:20:40]Thread 3066613092 joined [19:20:40]Waiting for new connection... [19:20:40] Sock 10.Parse request [19:20:40]Sock 10.Check first char [19:20:40]Sock 10.First char is OK [19:20:40]request: POST /json_proto HTTP/1.0 [19:20:40]Method: POST [19:20:40]URL: /json_proto [19:20:40]Method is POST - this is cgi request [19:20:40]url: /json_proto [19:20:40]query_string will be loaded in cgi processing [19:20:40]execute_cgi json_proto POST (null) [19:20:40]execute_cgi path=json_proto method=POST [19:20:40]POST find Content-Length [19:20:40]Host: 172.17.42.131:8080 [19:20:40]Content-Length: 769 [19:20:40]Content-Type: application/json [19:20:40] [19:20:40]POST finish read [19:20:40]Found Content-Length = 769 [19:20:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:40]execute_script... [19:20: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)210520", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:40]POST & json_proto [19:20:40]process_json_proto [19:20:40]json parsed OK: [19:20:40]protocol is kg_v1.0 [19:20:40]action value=close_receipt [19:20:40]process_action close_receipt [19:20:40]cmd_close_receipt [19:20:40]MH_GetDate [19:20:40]Write to MH i2c: F0 00 00 A7 11 A7 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: F0 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: F0 09 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: F0 09 00 A7 11 00 09 FB 17 67 A0 18 CA 66 1A [19:20:40]GetLastDocTimeStamp 1729624746 [19:20:40]current date 1729624841 [19:20:40]FM_GetShiftState [19:20:40]SAM_PROTO_GetShiftState [19:20:40]wFMCommunicate request_size=4 [19:20:40]MH_SAM_APDU [19:20:40]CAPDU: 80 13 01 00 [19:20:40]Write to MH i2c: E2 08 00 A8 11 80 13 01 00 00 00 00 00 36 [19:20:40]Write i2c OK [19:20:40]MH_I2C_Read... [19:20:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:40]Read from MH i2c: E2 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 0E 00 [19:20:40]MH_I2C_Read... [19:20:40]Read from MH i2c: E2 0E 00 A8 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2B [19:20:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:20:40]wFMCommunicate OK [19:20:40]SAM_PROTO_GetShiftState done [19:20:40]FM_GetShiftState done [19:20:40]opened in 1729556094 [19:20:40]opened+sec_in_day 1729642494 [19:20:40]quantity*price = 100015 [19:20:40]sum+1 = 100017 [19:20:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 489 22.10.2024 19:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188460 ФПД: 214553775784630 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192041&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188460&fm=214553775784630&tin=02508201610067®Number=0000000000100030&sum=100016 [19:20:41]StoreToDocumentArchive [19:20:41]shift 461 fd 188460 [19:20:41]save to /storage/0461/doc_00188460 [19:20:41]save last doc name /storage/0461/doc_00188460 to /storage/kkm_last_doc_name [19:20:41]save OK [19:20:41]Clear old archive folders... [19:20:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:20:41]tlvbuf is 009413E0 [19:20:41]SAM_PROTO_ClearQueue [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 09 00 00 [19:20:41]Write to MH i2c: E2 08 00 B5 11 80 09 00 00 00 00 00 00 38 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 B5 11 00 90 00 3A [19:20:41]RAPDU: 90 00 [19:20:41]wFMCommunicate OK [19:20:41]SAM_PROTO_ClearQueue done [19:20:41]KKMCreateOFDPacket [19:20:41]OFDProtocolAddRootSTLVToBuf [19:20:41]FM_MakeSignedData [19:20:41]FM_MakeSignedData [19:20:41]SAM_PROTO_SignData [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 0D 01 02 [19:20:41]Write to MH i2c: E2 08 00 B6 11 80 0D 01 02 00 00 00 00 40 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 B6 11 00 90 00 3B [19:20:41]RAPDU: 90 00 [19:20:41]wFMCommunicate OK [19:20:41]wFMCommunicate request_size=255 [19:20:41]MH_SAM_APDU [19:20: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 09 FB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E0 02 00 35 04 06 00 C3 [19:20:41]Write to MH i2c: E2 02 01 B7 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 09 FB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E0 02 00 35 04 06 00 C3 00 00 D8 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 B7 11 00 90 00 3C [19:20:41]RAPDU: 90 00 [19:20:41]wFMCommunicate OK [19:20:41]wFMCommunicate request_size=10 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 0D 02 02 05 22 B1 97 42 B6 [19:20:41]Write to MH i2c: E2 0D 00 B8 11 80 0D 02 02 05 00 22 B1 97 42 B6 00 00 AF [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 03 00 B8 11 00 90 00 3D [19:20:41]RAPDU: 90 00 [19:20:41]wFMCommunicate OK [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 0D 03 02 [19:20:41]Write to MH i2c: E2 08 00 B9 11 80 0D 03 02 00 00 00 00 45 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 0B 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 0B 00 B9 11 00 BB 81 DD 80 33 AE 8C 86 90 00 D2 [19:20:41]RAPDU: BB 81 DD 80 33 AE 8C 86 90 00 [19:20:41]wFMCommunicate OK [19:20:41]SAM_PROTO_SignData done [19:20:41]FM_MakeSignedData done [19:20:41]CreateOFDProtocolMessage [19:20:41]wFMCommunicate request_size=4 [19:20:41]MH_SAM_APDU [19:20:41]CAPDU: 80 11 00 00 [19:20:41]Write to MH i2c: E2 08 00 BA 11 80 11 00 00 00 00 00 00 45 [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:41]Read from MH i2c: E2 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 17 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: E2 17 00 BA 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 93 [19:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:20:41]wFMCommunicate OK [19:20:41]CreateOFDProtocolMessage done [19:20:41]OFDSenderStorePacket 188460 [19:20:41]StoreOFDPacket docnum=188460 [19:20:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 FC 07 01 0A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 09 FB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E0 02 00 35 04 06 00 C3 22 B1 97 42 B6 BB 81 DD 80 33 AE 8C 86 [19:20:41]CheckFolder [19:20:41]dirname=/storage/ofd_packets [19:20:41]CheckFolder done [19:20:41]ProducePacketName [19:20:41]name=ofd_packets/00188460 [19:20:41]NVStorageSaveData ofd_packets/00188460 [19:20:41]File name is /storage/ofd_packets/00188460 [19:20:41]Write 301 bytes [19:20:41]NVStorageSaveData done [19:20:41]OFDSenderStorePacket done [19:20:41]KKMCreateOFDPacket done [19:20:41]NVStorageSaveData kkm_last_timestamp [19:20:41]File name is /storage/kkm_last_timestamp [19:20:41]Write 4 bytes [19:20:41]NVStorageSaveData done [19:20:41]ExternCall_PrintAddStr [19:20:41]wPrintStart [19:20:41]Write to MH i2c: 01 00 00 BB 11 CC [19:20:41]Write i2c OK [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: 01 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: 01 07 00 [19:20:41]MH_I2C_Read... [19:20:41]Read from MH i2c: 01 07 00 BB 11 00 00 00 00 00 FF 0F E1 [19:20:41]RasterBufferAndPrint [19:20:41]line Счет N : (1)210520 [19:20:41]line ИНН: 02508201610067 [19:20:41]line Контрольно-Кассовый Чек [19:20:41]line ПРОДАЖА [19:20:41]line ТРК (МРК, ГНК) : 12 [19:20:41]line Товар: 2710124130 [19:20:41]line Аи-92-К-3 [19:20:41]line 14.950 * 66.90 [19:20:41]line = 1000.16 [19:20:41]line НДС 12% НСП 1% [19:20:41]line > о реализуемом товаре [19:20:41]line ИТОГО: 1000.16 [19:20:41]line НСП 1% : 8.85 [19:20:41]line НДС 12% : 106.21 [19:20:41]line Наличными: 0.00 [19:20:41]line Безнал.: 1000.16 [19:20:41]line Место: АЗС № 86 "Партнер Нефть" [19:20:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:20:41]line СНО: Общий режим [19:20:41]line Чек 489 22.10.2024 19:20 [19:20:41]line Смена: 461 ФФД: 1.0 [19:20:41]line ЗНМ: 0300000155 [19:20:41]line РНМ: 0000000000100030 [19:20:41]line Версия ККМ: 001 [19:20:41]line Платежная система: Mbank [19:20:41]line ФМ: 0000000000965340 [19:20:41]line ФД: 188460 [19:20:41]line ФПД: 214553775784630 [19:20:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192041&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188460&fm=214553775784630&tin=02508201610067®Number=0000000000100030&sum=100016 [19:20:41]written 0, free lines is 4095 [19:20:41]OFD Sender: Processing packet 188460 [packets to send 1062, broken 1061] [19:20:41]ProducePacketName [19:20:41]name=ofd_packets/00188460 [19:20:41]OFD Sender: To server: pG, [19:20:41]CommunicateWithHost lk.salyk.kg:30040 [19:20:41]ConnectInit lk.salyk.kg [19:20:42]Connected sock=7 [19:20:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 02 FC 07 01 0A F2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 E9 01 00 00 F4 03 04 00 09 FB 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E0 02 00 35 04 06 00 C3 22 B1 97 42 B6 BB 81 DD 80 33 AE 8C 86 [19:20:42]Write to MH i2c: 01 00 00 E4 11 F5 [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: 01 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: 01 07 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: 01 07 00 E4 11 00 00 00 00 00 8D 0C 95 [19:20:42]RasterBufferAndPrint [19:20:42]line [19:20:42]line [19:20:42]line [19:20:42]line [19:20:42]line [19:20:42]written 0, free lines is 3218 [19:20:42]MH_Cut [19:20:42]Write to MH i2c: D1 01 00 EB 11 01 CE [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: D1 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: D1 01 00 [19:20:42]MH_I2C_Read... [19:20:42]Read from MH i2c: D1 01 00 EB 11 00 CD [19:20:42]Write to MH i2c: 01 00 00 EC 11 FD [19:20:42]Write i2c OK [19:20:42]MH_I2C_Read... [19:20:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8F FF 47 00 67 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2C E0 02 00 F4 03 04 00 F5 A4 17 67 B6 04 01 00 00 36 D7 C7 EF CA F4 35 36 [19:20:42]CommunicateWithHost err = 0 [19:20:42]CheckOFDResponse [19:20:42]1017 (14) - 77093643461234 [19:20:42]1041 (16) - 0000000000965340 [19:20:42]1040 (4) - 188460 [19:20:42]1012 (4) - 22.10.2024 13:13 [19:20:42]1206 (1) - 0 [19:20:42]OFD Sender: Remove packet 188460 [19:20:42]ProducePacketName [19:20:42]name=ofd_packets/00188460 [19:20:42]NVStorageDeleteData [19:20:42]OFD Sender: No OFD packet to send [19:20:43]*** Cut start [19:20:43]*** Partial cut [19:20:43]*** CUTSNS_PIN = 1 [19:20:43]*** CUTSNS_PIN = 0 [19:20:43]*** Brake cut motor [19:20:44]Read from MH i2c: 01 [19:20:44]MH_I2C_Read... [19:20:44]*** Stop cut motor [19:20:44]*** Cut end [19:20:44]Read from MH i2c: 01 07 00 [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: 01 07 00 EC 11 00 00 00 00 00 FF 0F 12 [19:20:44]process_action close_receipt done [19:20:44]requested_data is exist [19:20:44]produce_requested_data [19:20:44]requested_item fm.sn is exist - process it [19:20:44]wFMCommunicate request_size=4 [19:20:44]MH_SAM_APDU [19:20:44]CAPDU: 80 11 00 00 [19:20:44]Write to MH i2c: E2 08 00 ED 11 80 11 00 00 00 00 00 00 78 [19:20:44]Write i2c OK [19:20:44]MH_I2C_Read... [19:20:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:44]Read from MH i2c: E2 [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: E2 17 00 [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: E2 17 00 ED 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C6 [19:20:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:20:44]wFMCommunicate OK [19:20:44]requested_item fd.num is exist - process it [19:20:44]SAM_PROTO_GetFieldsCounters [19:20:44]wFMCommunicate request_size=4 [19:20:44]MH_SAM_APDU [19:20:44]CAPDU: 80 13 00 00 [19:20:44]Write to MH i2c: E2 08 00 EE 11 80 13 00 00 00 00 00 00 7B [19:20:44]Write i2c OK [19:20:44]MH_I2C_Read... [19:20:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:44]Read from MH i2c: E2 [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: E2 62 00 [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: E2 62 00 EE 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 1C [19:20:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 E9 01 00 00 5E 04 04 00 E9 01 00 00 57 04 04 00 EA 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:20:44]wFMCommunicate OK [19:20:44]SAM_PROTO_GetFieldsCounters done [19:20:44]requested_item shift.num is exist - process it [19:20:44]requested_item shift.opened is exist - process it [19:20:44]req_shift_opened [19:20:44]FM_GetShiftState [19:20:44]SAM_PROTO_GetShiftState [19:20:44]wFMCommunicate request_size=4 [19:20:44]MH_SAM_APDU [19:20:44]CAPDU: 80 13 01 00 [19:20:44]Write to MH i2c: E2 08 00 EF 11 80 13 01 00 00 00 00 00 7D [19:20:44]Write i2c OK [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: E2 [19:20:44]MH_I2C_Read... [19:20:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:44]Read from MH i2c: E2 0E 00 [19:20:44]MH_I2C_Read... [19:20:44]Read from MH i2c: E2 0E 00 EF 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [19:20:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:20:44]wFMCommunicate OK [19:20:44]SAM_PROTO_GetShiftState done [19:20:44]FM_GetShiftState done [19:20:44]req_shift_opened done [19:20:44]requested_item shift.open_date is exist - process it [19:20:44]req_shift_open_date [19:20:44]req_shift_open_date done [19:20:44]produce_requested_data done [19:20:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188460,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:20:44]process_action_free close_receipt [19:20:44]json_value_free [19:20:44]json_value_free done [19:20:44]process_json_proto returns [19:20:44]Send response to host [19:20:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188460,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:20:44]free response buf [19:20:44]execute_script done [19:20:44]execute_script returns [19:20:44]free content buf [19:20:44]Sock 10.Close socket [19:20:44]Sock 10.Thread stoped [19:20:47]OFD Sender: No OFD packet to send [19:20:52]OFD Sender: No OFD packet to send [19:20:57]OFD Sender: No OFD packet to send [19:21:02]OFD Sender: No OFD packet to send [19:21:07]OFD Sender: No OFD packet to send [19:21:13]OFD Sender: No OFD packet to send [19:21:18]OFD Sender: No OFD packet to send [19:21:23]OFD Sender: No OFD packet to send [19:21:28]OFD Sender: No OFD packet to send [19:21:33]OFD Sender: No OFD packet to send [19:21:38]OFD Sender: No OFD packet to send [19:21:43]OFD Sender: No OFD packet to send [19:21:48]OFD Sender: No OFD packet to send [19:21:53]OFD Sender: No OFD packet to send [19:21:58]OFD Sender: No OFD packet to send [19:22:03]OFD Sender: No OFD packet to send [19:22:08]OFD Sender: No OFD packet to send [19:22:13]OFD Sender: No OFD packet to send [19:22:18]OFD Sender: No OFD packet to send [19:22:23]OFD Sender: No OFD packet to send [19:22:28]OFD Sender: No OFD packet to send [19:22:33]OFD Sender: No OFD packet to send [19:22:38]OFD Sender: No OFD packet to send [19:22:43]OFD Sender: No OFD packet to send [19:22:48]OFD Sender: No OFD packet to send [19:22:53]OFD Sender: No OFD packet to send [19:22:58]OFD Sender: No OFD packet to send [19:23:03]OFD Sender: No OFD packet to send [19:23:08]OFD Sender: No OFD packet to send [19:23:13]OFD Sender: No OFD packet to send [19:23:18]OFD Sender: No OFD packet to send [19:23:23]OFD Sender: No OFD packet to send [19:23:28]OFD Sender: No OFD packet to send [19:23:33]OFD Sender: No OFD packet to send [19:23:38]OFD Sender: No OFD packet to send [19:23:43]OFD Sender: No OFD packet to send [19:23:48]OFD Sender: No OFD packet to send [19:23:53]OFD Sender: No OFD packet to send [19:23:58]OFD Sender: No OFD packet to send [19:24:03]OFD Sender: No OFD packet to send [19:24:08]OFD Sender: No OFD packet to send [19:24:13]OFD Sender: No OFD packet to send [19:24:18]OFD Sender: No OFD packet to send [19:24:23]OFD Sender: No OFD packet to send [19:24:28]OFD Sender: No OFD packet to send [19:24:33]OFD Sender: No OFD packet to send [19:24:38]OFD Sender: No OFD packet to send [19:24:43]OFD Sender: No OFD packet to send [19:24:48]OFD Sender: No OFD packet to send [19:24:54]OFD Sender: No OFD packet to send [19:24:59]OFD Sender: No OFD packet to send [19:25:04]OFD Sender: No OFD packet to send [19:25:09]OFD Sender: No OFD packet to send [19:25:14]OFD Sender: No OFD packet to send [19:25:19]OFD Sender: No OFD packet to send [19:25:24]OFD Sender: No OFD packet to send [19:25:29]OFD Sender: No OFD packet to send [19:25:34]OFD Sender: No OFD packet to send [19:25:39]OFD Sender: No OFD packet to send [19:25:44]OFD Sender: No OFD packet to send [19:25:49]OFD Sender: No OFD packet to send [19:25:54]OFD Sender: No OFD packet to send [19:25:59]OFD Sender: No OFD packet to send [19:26:04]OFD Sender: No OFD packet to send [19:26:05]accept exits with 9 [19:26:05]New connection [19:26:05]New thread 3066613092 created [19:26:05]Thread 3066756452 joined [19:26:05]Waiting for new connection... [19:26:05] Sock 9.Parse request [19:26:05]Sock 9.Check first char [19:26:05]Sock 9.First char is OK [19:26:05]request: POST /json_proto HTTP/1.0 [19:26:05]Method: POST [19:26:05]URL: /json_proto [19:26:05]Method is POST - this is cgi request [19:26:05]url: /json_proto [19:26:05]query_string will be loaded in cgi processing [19:26:05]execute_cgi json_proto POST (null) [19:26:05]execute_cgi path=json_proto method=POST [19:26:05]POST find Content-Length [19:26:05]Host: 172.17.42.131:8080 [19:26:05]Content-Length: 679 [19:26:05]Content-Type: application/json [19:26:05] [19:26:05]POST finish read [19:26:05]Found Content-Length = 679 [19:26:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:05]execute_script... [19:26: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)210521", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 32.810, "sum" : 2500.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:26:05]POST & json_proto [19:26:05]process_json_proto [19:26:05]json parsed OK: [19:26:05]protocol is kg_v1.0 [19:26:05]action value=close_receipt [19:26:05]process_action close_receipt [19:26:05]cmd_close_receipt [19:26:05]MH_GetDate [19:26:05]Write to MH i2c: F0 00 00 F0 11 F0 [19:26:05]Write i2c OK [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: F0 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: F0 09 00 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: F0 09 00 F0 11 00 4E FC 17 67 A0 18 CA 66 A9 [19:26:05]GetLastDocTimeStamp 1729624841 [19:26:05]current date 1729625166 [19:26:05]FM_GetShiftState [19:26:05]SAM_PROTO_GetShiftState [19:26:05]wFMCommunicate request_size=4 [19:26:05]MH_SAM_APDU [19:26:05]CAPDU: 80 13 01 00 [19:26:05]Write to MH i2c: E2 08 00 F1 11 80 13 01 00 00 00 00 00 7F [19:26:05]Write i2c OK [19:26:05]MH_I2C_Read... [19:26:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:05]Read from MH i2c: E2 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: E2 0E 00 [19:26:05]MH_I2C_Read... [19:26:05]Read from MH i2c: E2 0E 00 F1 11 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 74 [19:26:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:26:05]wFMCommunicate OK [19:26:05]SAM_PROTO_GetShiftState done [19:26:05]FM_GetShiftState done [19:26:05]opened in 1729556094 [19:26:05]opened+sec_in_day 1729642494 [19:26:05]quantity*price = 250012 [19:26:05]sum+1 = 250013 [19:26:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.50 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 490 22.10.2024 19:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188461 ФПД: 110195400322394 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192606&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188461&fm=110195400322394&tin=02508201610067®Number=0000000000100030&sum=250000 [19:26:06]StoreToDocumentArchive [19:26:06]shift 461 fd 188461 [19:26:06]save to /storage/0461/doc_00188461 [19:26:06]save last doc name /storage/0461/doc_00188461 to /storage/kkm_last_doc_name [19:26:06]save OK [19:26:06]Clear old archive folders... [19:26:06]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:26:06]tlvbuf is 0095AA40 [19:26:06]SAM_PROTO_ClearQueue [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 09 00 00 [19:26:06]Write to MH i2c: E2 08 00 FE 11 80 09 00 00 00 00 00 00 81 [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 FE 11 00 90 00 83 [19:26:06]RAPDU: 90 00 [19:26:06]wFMCommunicate OK [19:26:06]SAM_PROTO_ClearQueue done [19:26:06]KKMCreateOFDPacket [19:26:06]OFDProtocolAddRootSTLVToBuf [19:26:06]FM_MakeSignedData [19:26:06]FM_MakeSignedData [19:26:06]SAM_PROTO_SignData [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 0D 01 02 [19:26:06]Write to MH i2c: E2 08 00 FF 11 80 0D 01 02 00 00 00 00 89 [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 FF 11 00 90 00 84 [19:26:06]RAPDU: 90 00 [19:26:06]wFMCommunicate OK [19:26:06]wFMCommunicate request_size=255 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 4E FC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E0 02 00 35 04 06 00 64 38 DD B1 [19:26:06]Write to MH i2c: E2 02 01 00 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 4E FC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E0 02 00 35 04 06 00 64 38 DD B1 00 00 10 [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 00 12 00 90 00 86 [19:26:06]RAPDU: 90 00 [19:26:06]wFMCommunicate OK [19:26:06]wFMCommunicate request_size=7 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 0D 02 02 02 2D 5A [19:26:06]Write to MH i2c: E2 0A 00 01 12 80 0D 02 02 02 00 2D 5A 00 00 18 [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 03 00 01 12 00 90 00 87 [19:26:06]RAPDU: 90 00 [19:26:06]wFMCommunicate OK [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 0D 03 02 [19:26:06]Write to MH i2c: E2 08 00 02 12 80 0D 03 02 00 00 00 00 8F [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 0B 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 0B 00 02 12 00 10 88 12 95 F6 84 9F A5 90 00 8D [19:26:06]RAPDU: 10 88 12 95 F6 84 9F A5 90 00 [19:26:06]wFMCommunicate OK [19:26:06]SAM_PROTO_SignData done [19:26:06]FM_MakeSignedData done [19:26:06]CreateOFDProtocolMessage [19:26:06]wFMCommunicate request_size=4 [19:26:06]MH_SAM_APDU [19:26:06]CAPDU: 80 11 00 00 [19:26:06]Write to MH i2c: E2 08 00 03 12 80 11 00 00 00 00 00 00 8F [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:06]Read from MH i2c: E2 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 17 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: E2 17 00 03 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [19:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:26:06]wFMCommunicate OK [19:26:06]CreateOFDProtocolMessage done [19:26:06]OFDSenderStorePacket 188461 [19:26:06]StoreOFDPacket docnum=188461 [19:26:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 3B 17 04 01 B9 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 4E FC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E0 02 00 35 04 06 00 64 38 DD B1 2D 5A 10 88 12 95 F6 84 9F A5 [19:26:06]CheckFolder [19:26:06]dirname=/storage/ofd_packets [19:26:06]CheckFolder done [19:26:06]ProducePacketName [19:26:06]name=ofd_packets/00188461 [19:26:06]NVStorageSaveData ofd_packets/00188461 [19:26:06]File name is /storage/ofd_packets/00188461 [19:26:06]Write 298 bytes [19:26:06]NVStorageSaveData done [19:26:06]OFDSenderStorePacket done [19:26:06]KKMCreateOFDPacket done [19:26:06]NVStorageSaveData kkm_last_timestamp [19:26:06]File name is /storage/kkm_last_timestamp [19:26:06]Write 4 bytes [19:26:06]NVStorageSaveData done [19:26:06]ExternCall_PrintAddStr [19:26:06]wPrintStart [19:26:06]Write to MH i2c: 01 00 00 04 12 16 [19:26:06]Write i2c OK [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: 01 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: 01 07 00 [19:26:06]MH_I2C_Read... [19:26:06]Read from MH i2c: 01 07 00 04 12 00 00 00 00 00 FF 0F 2B [19:26:06]RasterBufferAndPrint [19:26:06]line Счет N : (1)210521 [19:26:06]line ИНН: 02508201610067 [19:26:06]line Контрольно-Кассовый Чек [19:26:06]line ПРОДАЖА [19:26:06]line ТРК (МРК, ГНК) : 51 [19:26:06]line Товар: 2710194210 [19:26:06]line ДТ-К-5 [19:26:06]line 32.810 * 76.20 [19:26:06]line = 2500.12 [19:26:06]line НДС 12% НСП 1% [19:26:06]line > о реализуемом товаре [19:26:06]line ОКРУГЛЕНИЕ: -0.12 [19:26:06]line ИТОГО: 2500.00 [19:26:06]line Внесено: 2500.00 [19:26:06]line СДАЧА: 0.00 [19:26:06]line НСП 1% : 22.12 [19:26:06]line НДС 12% : 265.50 [19:26:06]line Наличными: 2500.00 [19:26:06]line Безнал.: 0.00 [19:26:06]line Место: АЗС № 86 "Партнер Нефть" [19:26:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:26:06]line СНО: Общий режим [19:26:06]line Чек 490 22.10.2024 19:26 [19:26:06]line Смена: 461 ФФД: 1.0 [19:26:06]line ЗНМ: 0300000155 [19:26:06]line РНМ: 0000000000100030 [19:26:06]line Версия ККМ: 001 [19:26:06]line ФМ: 0000000000965340 [19:26:06]line ФД: 188461 [19:26:06]line ФПД: 110195400322394 [19:26:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T192606&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188461&fm=110195400322394&tin=02508201610067®Number=0000000000100030&sum=250000 [19:26:07]OFD Sender: Processing packet 188461 [packets to send 1062, broken 1061] [19:26:07]ProducePacketName [19:26:07]name=ofd_packets/00188461 [19:26:07]OFD Sender: To server: pG, [19:26:07]CommunicateWithHost lk.salyk.kg:30040 [19:26:07]ConnectInit lk.salyk.kg [19:26:07]written 0, free lines is 4095 [19:26:07]Connected sock=10 [19:26:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 3B 17 04 01 B9 C4 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 2A 80 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 9C D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B6 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EA 01 00 00 F4 03 04 00 4E FC 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2D E0 02 00 35 04 06 00 64 38 DD B1 2D 5A 10 88 12 95 F6 84 9F A5 [19:26:07]Write to MH i2c: 01 00 00 2F 12 41 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 07 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: 01 07 00 2F 12 00 00 00 00 00 64 0C B8 [19:26:07]RasterBufferAndPrint [19:26:07]line [19:26:07]line [19:26:07]line [19:26:07]line [19:26:07]line [19:26:07]written 0, free lines is 3176 [19:26:07]MH_Cut [19:26:07]Write to MH i2c: D1 01 00 36 12 01 1A [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: D1 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: D1 01 00 [19:26:07]MH_I2C_Read... [19:26:07]Read from MH i2c: D1 01 00 36 12 00 19 [19:26:07]Write to MH i2c: 01 00 00 37 12 49 [19:26:07]Write i2c OK [19:26:07]MH_I2C_Read... [19:26:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 71 47 00 28 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 39 36 35 33 34 30 10 04 04 00 2D E0 02 00 F4 03 04 00 3B A6 17 67 B6 04 01 00 00 39 51 A4 24 21 EC 90 0A [19:26:07]CommunicateWithHost err = 0 [19:26:07]CheckOFDResponse [19:26:07]1017 (14) - 77093643461234 [19:26:07]1041 (16) - 0000000000965340 [19:26:07]1040 (4) - 188461 [19:26:07]1012 (4) - 22.10.2024 13:18 [19:26:07]1206 (1) - 0 [19:26:07]OFD Sender: Remove packet 188461 [19:26:07]ProducePacketName [19:26:07]name=ofd_packets/00188461 [19:26:07]NVStorageDeleteData [19:26:08]OFD Sender: No OFD packet to send [19:26:08]*** Cut start [19:26:08]*** Partial cut [19:26:08]*** CUTSNS_PIN = 1 [19:26:08]*** CUTSNS_PIN = 0 [19:26:09]*** Brake cut motor [19:26:09]Read from MH i2c: 01 [19:26:09]MH_I2C_Read... [19:26:09]*** Stop cut motor [19:26:09]*** Cut end [19:26:09]Read from MH i2c: 01 07 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: 01 07 00 37 12 00 00 00 00 00 FF 0F 5E [19:26:09]process_action close_receipt done [19:26:09]requested_data is exist [19:26:09]produce_requested_data [19:26:09]requested_item fm.sn is exist - process it [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 11 00 00 [19:26:09]Write to MH i2c: E2 08 00 38 12 80 11 00 00 00 00 00 00 C4 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 17 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 17 00 38 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 12 [19:26:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:26:09]wFMCommunicate OK [19:26:09]requested_item fd.num is exist - process it [19:26:09]SAM_PROTO_GetFieldsCounters [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 00 00 [19:26:09]Write to MH i2c: E2 08 00 39 12 80 13 00 00 00 00 00 00 C7 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 62 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 62 00 39 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 6C [19:26:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EA 01 00 00 5E 04 04 00 EA 01 00 00 57 04 04 00 EB 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetFieldsCounters done [19:26:09]requested_item shift.num is exist - process it [19:26:09]requested_item shift.opened is exist - process it [19:26:09]req_shift_opened [19:26:09]FM_GetShiftState [19:26:09]SAM_PROTO_GetShiftState [19:26:09]wFMCommunicate request_size=4 [19:26:09]MH_SAM_APDU [19:26:09]CAPDU: 80 13 01 00 [19:26:09]Write to MH i2c: E2 08 00 3A 12 80 13 01 00 00 00 00 00 C9 [19:26:09]Write i2c OK [19:26:09]MH_I2C_Read... [19:26:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:26:09]Read from MH i2c: E2 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 [19:26:09]MH_I2C_Read... [19:26:09]Read from MH i2c: E2 0E 00 3A 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BE [19:26:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:26:09]wFMCommunicate OK [19:26:09]SAM_PROTO_GetShiftState done [19:26:09]FM_GetShiftState done [19:26:09]req_shift_opened done [19:26:09]requested_item shift.open_date is exist - process it [19:26:09]req_shift_open_date [19:26:09]req_shift_open_date done [19:26:09]produce_requested_data done [19:26:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188461,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:26:09]process_action_free close_receipt [19:26:09]json_value_free [19:26:09]json_value_free done [19:26:09]process_json_proto returns [19:26:09]Send response to host [19:26:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188461,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:26:09]free response buf [19:26:09]execute_script done [19:26:09]execute_script returns [19:26:09]free content buf [19:26:09]Sock 9.Close socket [19:26:09]Sock 9.Thread stoped [19:26:13]OFD Sender: No OFD packet to send [19:26:18]OFD Sender: No OFD packet to send [19:26:23]OFD Sender: No OFD packet to send [19:26:28]OFD Sender: No OFD packet to send [19:26:33]OFD Sender: No OFD packet to send [19:26:38]OFD Sender: No OFD packet to send [19:26:43]OFD Sender: No OFD packet to send [19:26:48]OFD Sender: No OFD packet to send [19:26:53]OFD Sender: No OFD packet to send [19:26:58]OFD Sender: No OFD packet to send [19:27:03]OFD Sender: No OFD packet to send [19:27:08]OFD Sender: No OFD packet to send [19:27:13]OFD Sender: No OFD packet to send [19:27:18]OFD Sender: No OFD packet to send [19:27:23]OFD Sender: No OFD packet to send [19:27:28]OFD Sender: No OFD packet to send [19:27:33]OFD Sender: No OFD packet to send [19:27:38]OFD Sender: No OFD packet to send [19:27:43]OFD Sender: No OFD packet to send [19:27:48]OFD Sender: No OFD packet to send [19:27:53]OFD Sender: No OFD packet to send [19:27:58]OFD Sender: No OFD packet to send [19:28:03]OFD Sender: No OFD packet to send [19:28:08]OFD Sender: No OFD packet to send [19:28:13]OFD Sender: No OFD packet to send [19:28:18]OFD Sender: No OFD packet to send [19:28:23]OFD Sender: No OFD packet to send [19:28:28]OFD Sender: No OFD packet to send [19:28:33]OFD Sender: No OFD packet to send [19:28:38]OFD Sender: No OFD packet to send [19:28:43]OFD Sender: No OFD packet to send [19:28:48]OFD Sender: No OFD packet to send [19:28:53]OFD Sender: No OFD packet to send [19:28:58]OFD Sender: No OFD packet to send [19:29:03]OFD Sender: No OFD packet to send [19:29:08]OFD Sender: No OFD packet to send [19:29:13]OFD Sender: No OFD packet to send [19:29:19]OFD Sender: No OFD packet to send [19:29:24]OFD Sender: No OFD packet to send [19:29:29]OFD Sender: No OFD packet to send [19:29:34]OFD Sender: No OFD packet to send [19:29:39]OFD Sender: No OFD packet to send [19:29:44]OFD Sender: No OFD packet to send [19:29:49]OFD Sender: No OFD packet to send [19:29:54]OFD Sender: No OFD packet to send [19:29:59]OFD Sender: No OFD packet to send [19:30:04]OFD Sender: No OFD packet to send [19:30:09]OFD Sender: No OFD packet to send [19:30:14]OFD Sender: No OFD packet to send [19:30:19]OFD Sender: No OFD packet to send [19:30:24]OFD Sender: No OFD packet to send [19:30:29]OFD Sender: No OFD packet to send [19:30:34]OFD Sender: No OFD packet to send [19:30:39]OFD Sender: No OFD packet to send [19:30:44]OFD Sender: No OFD packet to send [19:30:49]OFD Sender: No OFD packet to send [19:30:54]OFD Sender: No OFD packet to send [19:30:59]OFD Sender: No OFD packet to send [19:31:04]OFD Sender: No OFD packet to send [19:31:09]OFD Sender: No OFD packet to send [19:31:14]OFD Sender: No OFD packet to send [19:31:19]OFD Sender: No OFD packet to send [19:31:24]OFD Sender: No OFD packet to send [19:31:29]OFD Sender: No OFD packet to send [19:31:34]OFD Sender: No OFD packet to send [19:31:39]OFD Sender: No OFD packet to send [19:31:44]OFD Sender: No OFD packet to send [19:31:49]OFD Sender: No OFD packet to send [19:31:54]OFD Sender: No OFD packet to send [19:31:59]OFD Sender: No OFD packet to send [19:32:04]OFD Sender: No OFD packet to send [19:32:09]OFD Sender: No OFD packet to send [19:32:14]OFD Sender: No OFD packet to send [19:32:19]OFD Sender: No OFD packet to send [19:32:24]OFD Sender: No OFD packet to send [19:32:29]OFD Sender: No OFD packet to send [19:32:34]OFD Sender: No OFD packet to send [19:32:39]OFD Sender: No OFD packet to send [19:32:44]OFD Sender: No OFD packet to send [19:32:49]OFD Sender: No OFD packet to send [19:32:54]OFD Sender: No OFD packet to send [19:32:59]OFD Sender: No OFD packet to send [19:33:05]OFD Sender: No OFD packet to send [19:33:10]OFD Sender: No OFD packet to send [19:33:15]OFD Sender: No OFD packet to send [19:33:20]OFD Sender: No OFD packet to send [19:33:25]OFD Sender: No OFD packet to send [19:33:30]OFD Sender: No OFD packet to send [19:33:35]OFD Sender: No OFD packet to send [19:33:40]OFD Sender: No OFD packet to send [19:33:42]accept exits with 7 [19:33:42]New connection [19:33:42]New thread 3066756452 created [19:33:42]Thread 3066613092 joined [19:33:42]Waiting for new connection... [19:33:42] Sock 7.Parse request [19:33:42]Sock 7.Check first char [19:33:42]Sock 7.First char is OK [19:33:42]request: POST /json_proto HTTP/1.0 [19:33:42]Method: POST [19:33:42]URL: /json_proto [19:33:42]Method is POST - this is cgi request [19:33:42]url: /json_proto [19:33:42]query_string will be loaded in cgi processing [19:33:42]execute_cgi json_proto POST (null) [19:33:42]execute_cgi path=json_proto method=POST [19:33:42]POST find Content-Length [19:33:42]Host: 172.17.42.131:8080 [19:33:42]Content-Length: 688 [19:33:42]Content-Type: application/json [19:33:42] [19:33:42]POST finish read [19:33:42]Found Content-Length = 688 [19:33:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [19:33:42]execute_script... [19:33:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210522", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [19:33:42]POST & json_proto [19:33:42]process_json_proto [19:33:42]json parsed OK: [19:33:42]protocol is kg_v1.0 [19:33:42]action value=close_receipt [19:33:42]process_action close_receipt [19:33:42]cmd_close_receipt [19:33:42]MH_GetDate [19:33:42]Write to MH i2c: F0 00 00 3B 12 3C [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: F0 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: F0 09 00 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: F0 09 00 3B 12 00 17 FE 17 67 A0 18 CA 66 C0 [19:33:42]GetLastDocTimeStamp 1729625166 [19:33:42]current date 1729625623 [19:33:42]FM_GetShiftState [19:33:42]SAM_PROTO_GetShiftState [19:33:42]wFMCommunicate request_size=4 [19:33:42]MH_SAM_APDU [19:33:42]CAPDU: 80 13 01 00 [19:33:42]Write to MH i2c: E2 08 00 3C 12 80 13 01 00 00 00 00 00 CB [19:33:42]Write i2c OK [19:33:42]MH_I2C_Read... [19:33:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:42]Read from MH i2c: E2 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 0E 00 [19:33:42]MH_I2C_Read... [19:33:42]Read from MH i2c: E2 0E 00 3C 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C0 [19:33:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:33:42]wFMCommunicate OK [19:33:42]SAM_PROTO_GetShiftState done [19:33:42]FM_GetShiftState done [19:33:42]opened in 1729556094 [19:33:42]opened+sec_in_day 1729642494 [19:33:42]quantity*price = 200025 [19:33:42]sum+1 = 200026 [19:33:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 491 22.10.2024 19:33 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188462 ФПД: 150265788115659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193343&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188462&fm=150265788115659&tin=02508201610067®Number=0000000000100030&sum=200000 [19:33:43]StoreToDocumentArchive [19:33:43]shift 461 fd 188462 [19:33:43]save to /storage/0461/doc_00188462 [19:33:43]save last doc name /storage/0461/doc_00188462 to /storage/kkm_last_doc_name [19:33:43]save OK [19:33:43]Clear old archive folders... [19:33:43]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:33:43]tlvbuf is B6E78390 [19:33:43]SAM_PROTO_ClearQueue [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 09 00 00 [19:33:43]Write to MH i2c: E2 08 00 49 12 80 09 00 00 00 00 00 00 CD [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 49 12 00 90 00 CF [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]SAM_PROTO_ClearQueue done [19:33:43]KKMCreateOFDPacket [19:33:43]OFDProtocolAddRootSTLVToBuf [19:33:43]FM_MakeSignedData [19:33:43]FM_MakeSignedData [19:33:43]SAM_PROTO_SignData [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 01 02 [19:33:43]Write to MH i2c: E2 08 00 4A 12 80 0D 01 02 00 00 00 00 D5 [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 4A 12 00 90 00 D0 [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=255 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EB 01 00 00 F4 03 04 00 17 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E0 02 [19:33:43]Write to MH i2c: E2 02 01 4B 12 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EB 01 00 00 F4 03 04 00 17 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E0 02 00 00 D3 [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 4B 12 00 90 00 D1 [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=16 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 88 AA 7A EC 2A CB [19:33:43]Write to MH i2c: E2 13 00 4C 12 80 0D 02 02 0B 00 00 35 04 06 00 88 AA 7A EC 2A CB 00 00 BA [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 03 00 4C 12 00 90 00 D2 [19:33:43]RAPDU: 90 00 [19:33:43]wFMCommunicate OK [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 0D 03 02 [19:33:43]Write to MH i2c: E2 08 00 4D 12 80 0D 03 02 00 00 00 00 DA [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:33:43]Read from MH i2c: E2 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 0B 00 [19:33:43]MH_I2C_Read... [19:33:43]Read from MH i2c: E2 0B 00 4D 12 00 12 13 8A 78 8B 35 2B 68 90 00 55 [19:33:43]RAPDU: 12 13 8A 78 8B 35 2B 68 90 00 [19:33:43]wFMCommunicate OK [19:33:43]SAM_PROTO_SignData done [19:33:43]FM_MakeSignedData done [19:33:43]CreateOFDProtocolMessage [19:33:43]wFMCommunicate request_size=4 [19:33:43]MH_SAM_APDU [19:33:43]CAPDU: 80 11 00 00 [19:33:43]Write to MH i2c: E2 08 00 4E 12 80 11 00 00 00 00 00 00 DA [19:33:43]Write i2c OK [19:33:43]MH_I2C_Read... [19:33:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:44]Read from MH i2c: E2 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: E2 17 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: E2 17 00 4E 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 28 [19:33:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:33:44]wFMCommunicate OK [19:33:44]CreateOFDProtocolMessage done [19:33:44]OFDSenderStorePacket 188462 [19:33:44]StoreOFDPacket docnum=188462 [19:33:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AF E4 0D 01 3F 91 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EB 01 00 00 F4 03 04 00 17 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E0 02 00 35 04 06 00 88 AA 7A EC 2A CB 12 13 8A 78 8B 35 2B 68 [19:33:44]CheckFolder [19:33:44]dirname=/storage/ofd_packets [19:33:44]CheckFolder done [19:33:44]ProducePacketName [19:33:44]name=ofd_packets/00188462 [19:33:44]NVStorageSaveData ofd_packets/00188462 [19:33:44]File name is /storage/ofd_packets/00188462 [19:33:44]Write 307 bytes [19:33:44]NVStorageSaveData done [19:33:44]OFDSenderStorePacket done [19:33:44]KKMCreateOFDPacket done [19:33:44]NVStorageSaveData kkm_last_timestamp [19:33:44]File name is /storage/kkm_last_timestamp [19:33:44]Write 4 bytes [19:33:44]NVStorageSaveData done [19:33:44]ExternCall_PrintAddStr [19:33:44]wPrintStart [19:33:44]Write to MH i2c: 01 00 00 4F 12 61 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 4F 12 00 00 00 00 00 FF 0F 76 [19:33:44]RasterBufferAndPrint [19:33:44]line Счет N : (1)210522 [19:33:44]line ИНН: 02508201610067 [19:33:44]line Контрольно-Кассовый Чек [19:33:44]line ПРОДАЖА [19:33:44]line ТРК (МРК, ГНК) : 21 [19:33:44]line Товар: 2710194210 [19:33:44]line D-ENERGY ДТ-К-5 [19:33:44]line 25.910 * 77.20 [19:33:44]line = 2000.25 [19:33:44]line НДС 12% НСП 1% [19:33:44]line > о реализуемом товаре [19:33:44]line ОКРУГЛЕНИЕ: -0.25 [19:33:44]line ИТОГО: 2000.00 [19:33:44]line Внесено: 2000.00 [19:33:44]line СДАЧА: 0.00 [19:33:44]line НСП 1% : 17.70 [19:33:44]line НДС 12% : 212.42 [19:33:44]line Наличными: 2000.00 [19:33:44]line Безнал.: 0.00 [19:33:44]line Место: АЗС № 86 "Партнер Нефть" [19:33:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:33:44]line СНО: Общий режим [19:33:44]line Чек 491 22.10.2024 19:33 [19:33:44]line Смена: 461 ФФД: 1.0 [19:33:44]line ЗНМ: 0300000155 [19:33:44]line РНМ: 0000000000100030 [19:33:44]line Версия ККМ: 001 [19:33:44]line ФМ: 0000000000965340 [19:33:44]line ФД: 188462 [19:33:44]line ФПД: 150265788115659 [19:33:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193343&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188462&fm=150265788115659&tin=02508201610067®Number=0000000000100030&sum=200000 [19:33:44]written 0, free lines is 4095 [19:33:44]OFD Sender: Processing packet 188462 [packets to send 1062, broken 1061] [19:33:44]ProducePacketName [19:33:44]name=ofd_packets/00188462 [19:33:44]OFD Sender: To server: pG, [19:33:44]CommunicateWithHost lk.salyk.kg:30040 [19:33:44]ConnectInit lk.salyk.kg [19:33:44]Connected sock=10 [19:33:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 AF E4 0D 01 3F 91 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EB 01 00 00 F4 03 04 00 17 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2E E0 02 00 35 04 06 00 88 AA 7A EC 2A CB 12 13 8A 78 8B 35 2B 68 [19:33:44]Write to MH i2c: 01 00 00 7A 12 8C [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: 01 07 00 7A 12 00 00 00 00 00 5B 0C FA [19:33:44]RasterBufferAndPrint [19:33:44]line [19:33:44]line [19:33:44]line [19:33:44]line [19:33:44]line [19:33:44]written 0, free lines is 3166 [19:33:44]MH_Cut [19:33:44]Write to MH i2c: D1 01 00 81 12 01 65 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: D1 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: D1 01 00 [19:33:44]MH_I2C_Read... [19:33:44]Read from MH i2c: D1 01 00 81 12 00 64 [19:33:44]Write to MH i2c: 01 00 00 82 12 94 [19:33:44]Write i2c OK [19:33:44]MH_I2C_Read... [19:33:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 38 6A 47 00 00 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 39 36 35 33 34 30 10 04 04 00 2E E0 02 00 F4 03 04 00 04 A8 17 67 B6 04 01 00 00 B7 6F 4B 50 D6 7D 93 09 [19:33:44]CommunicateWithHost err = 0 [19:33:44]CheckOFDResponse [19:33:44]1017 (14) - 77093643461234 [19:33:44]1041 (16) - 0000000000965340 [19:33:44]1040 (4) - 188462 [19:33:44]1012 (4) - 22.10.2024 13:26 [19:33:44]1206 (1) - 0 [19:33:44]OFD Sender: Remove packet 188462 [19:33:44]ProducePacketName [19:33:44]name=ofd_packets/00188462 [19:33:44]NVStorageDeleteData [19:33:45]OFD Sender: No OFD packet to send [19:33:45]*** Cut start [19:33:45]*** Partial cut [19:33:45]*** CUTSNS_PIN = 1 [19:33:45]*** CUTSNS_PIN = 0 [19:33:46]*** Brake cut motor [19:33:46]Read from MH i2c: 01 [19:33:46]MH_I2C_Read... [19:33:46]*** Stop cut motor [19:33:46]*** Cut end [19:33:46]Read from MH i2c: 01 07 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: 01 07 00 82 12 00 00 00 00 00 FF 0F A9 [19:33:46]process_action close_receipt done [19:33:46]requested_data is exist [19:33:46]produce_requested_data [19:33:46]requested_item fm.sn is exist - process it [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 11 00 00 [19:33:46]Write to MH i2c: E2 08 00 83 12 80 11 00 00 00 00 00 00 0F [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 17 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 17 00 83 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [19:33:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:33:46]wFMCommunicate OK [19:33:46]requested_item fd.num is exist - process it [19:33:46]SAM_PROTO_GetFieldsCounters [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 13 00 00 [19:33:46]Write to MH i2c: E2 08 00 84 12 80 13 00 00 00 00 00 00 12 [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 62 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 62 00 84 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EB 01 00 00 5E 04 04 00 EB 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 BB [19:33:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EB 01 00 00 5E 04 04 00 EB 01 00 00 57 04 04 00 EC 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:33:46]wFMCommunicate OK [19:33:46]SAM_PROTO_GetFieldsCounters done [19:33:46]requested_item shift.num is exist - process it [19:33:46]requested_item shift.opened is exist - process it [19:33:46]req_shift_opened [19:33:46]FM_GetShiftState [19:33:46]SAM_PROTO_GetShiftState [19:33:46]wFMCommunicate request_size=4 [19:33:46]MH_SAM_APDU [19:33:46]CAPDU: 80 13 01 00 [19:33:46]Write to MH i2c: E2 08 00 85 12 80 13 01 00 00 00 00 00 14 [19:33:46]Write i2c OK [19:33:46]MH_I2C_Read... [19:33:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:33:46]Read from MH i2c: E2 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 0E 00 [19:33:46]MH_I2C_Read... [19:33:46]Read from MH i2c: E2 0E 00 85 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 09 [19:33:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:33:46]wFMCommunicate OK [19:33:46]SAM_PROTO_GetShiftState done [19:33:46]FM_GetShiftState done [19:33:46]req_shift_opened done [19:33:46]requested_item shift.open_date is exist - process it [19:33:46]req_shift_open_date [19:33:46]req_shift_open_date done [19:33:46]produce_requested_data done [19:33:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188462,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:33:46]process_action_free close_receipt [19:33:46]json_value_free [19:33:46]json_value_free done [19:33:46]process_json_proto returns [19:33:46]Send response to host [19:33:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188462,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:33:46]free response buf [19:33:46]execute_script done [19:33:46]execute_script returns [19:33:46]free content buf [19:33:46]Sock 7.Close socket [19:33:46]Sock 7.Thread stoped [19:33:50]OFD Sender: No OFD packet to send [19:33:55]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:02]accept exits with 9 [19:34:02]New connection [19:34:02]New thread 3066613092 created [19:34:02]Thread 3066756452 joined [19:34:02]Waiting for new connection... [19:34:02] Sock 9.Parse request [19:34:02]Sock 9.Check first char [19:34:02]Sock 9.First char is OK [19:34:02]request: POST /json_proto HTTP/1.0 [19:34:02]Method: POST [19:34:02]URL: /json_proto [19:34:02]Method is POST - this is cgi request [19:34:02]url: /json_proto [19:34:02]query_string will be loaded in cgi processing [19:34:02]execute_cgi json_proto POST (null) [19:34:02]execute_cgi path=json_proto method=POST [19:34:02]POST find Content-Length [19:34:02]Host: 172.17.42.131:8080 [19:34:02]Content-Length: 682 [19:34:02]Content-Type: application/json [19:34:02] [19:34:02]POST finish read [19:34:02]Found Content-Length = 682 [19:34:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:02]execute_script... [19:34:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210523", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:34:02]POST & json_proto [19:34:02]process_json_proto [19:34:02]json parsed OK: [19:34:02]protocol is kg_v1.0 [19:34:02]action value=close_receipt [19:34:02]process_action close_receipt [19:34:02]cmd_close_receipt [19:34:02]MH_GetDate [19:34:02]Write to MH i2c: F0 00 00 86 12 87 [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 09 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: F0 09 00 86 12 00 2C FE 17 67 A0 18 CA 66 20 [19:34:02]GetLastDocTimeStamp 1729625623 [19:34:02]current date 1729625644 [19:34:02]FM_GetShiftState [19:34:02]SAM_PROTO_GetShiftState [19:34:02]wFMCommunicate request_size=4 [19:34:02]MH_SAM_APDU [19:34:02]CAPDU: 80 13 01 00 [19:34:02]Write to MH i2c: E2 08 00 87 12 80 13 01 00 00 00 00 00 16 [19:34:02]Write i2c OK [19:34:02]MH_I2C_Read... [19:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:02]Read from MH i2c: E2 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 0E 00 [19:34:02]MH_I2C_Read... [19:34:02]Read from MH i2c: E2 0E 00 87 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0B [19:34:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:34:02]wFMCommunicate OK [19:34:02]SAM_PROTO_GetShiftState done [19:34:02]FM_GetShiftState done [19:34:02]opened in 1729556094 [19:34:02]opened+sec_in_day 1729642494 [19:34:02]quantity*price = 100015 [19:34:02]sum+1 = 100017 [19:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 492 22.10.2024 19:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188463 ФПД: 216047695855661 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193404&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188463&fm=216047695855661&tin=02508201610067®Number=0000000000100030&sum=100000 [19:34:03]StoreToDocumentArchive [19:34:03]shift 461 fd 188463 [19:34:03]save to /storage/0461/doc_00188463 [19:34:03]save last doc name /storage/0461/doc_00188463 to /storage/kkm_last_doc_name [19:34:03]save OK [19:34:03]Clear old archive folders... [19:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:34:03]tlvbuf is 009841B0 [19:34:03]SAM_PROTO_ClearQueue [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 09 00 00 [19:34:03]Write to MH i2c: E2 08 00 94 12 80 09 00 00 00 00 00 00 18 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 94 12 00 90 00 1A [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]SAM_PROTO_ClearQueue done [19:34:03]KKMCreateOFDPacket [19:34:03]OFDProtocolAddRootSTLVToBuf [19:34:03]FM_MakeSignedData [19:34:03]FM_MakeSignedData [19:34:03]SAM_PROTO_SignData [19:34:03]wFMCommunicate request_size=4 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 0D 01 02 [19:34:03]Write to MH i2c: E2 08 00 95 12 80 0D 01 02 00 00 00 00 20 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:34:03]Read from MH i2c: E2 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 [19:34:03]MH_I2C_Read... [19:34:03]Read from MH i2c: E2 03 00 95 12 00 90 00 1B [19:34:03]RAPDU: 90 00 [19:34:03]wFMCommunicate OK [19:34:03]wFMCommunicate request_size=255 [19:34:03]MH_SAM_APDU [19:34:03]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 2C FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E0 02 00 35 04 06 00 C4 [19:34:03]Write to MH i2c: E2 02 01 96 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 2C FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E0 02 00 35 04 06 00 C4 00 00 C5 [19:34:03]Write i2c OK [19:34:03]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 96 12 00 90 00 1C [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=10 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 02 02 05 7E 86 2A 80 2D [19:34:04]Write to MH i2c: E2 0D 00 97 12 80 0D 02 02 05 00 7E 86 2A 80 2D 00 00 08 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 03 00 97 12 00 90 00 1D [19:34:04]RAPDU: 90 00 [19:34:04]wFMCommunicate OK [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 0D 03 02 [19:34:04]Write to MH i2c: E2 08 00 98 12 80 0D 03 02 00 00 00 00 25 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0B 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 0B 00 98 12 00 CD 0C 39 2D 9E 35 FD 55 90 00 8A [19:34:04]RAPDU: CD 0C 39 2D 9E 35 FD 55 90 00 [19:34:04]wFMCommunicate OK [19:34:04]SAM_PROTO_SignData done [19:34:04]FM_MakeSignedData done [19:34:04]CreateOFDProtocolMessage [19:34:04]wFMCommunicate request_size=4 [19:34:04]MH_SAM_APDU [19:34:04]CAPDU: 80 11 00 00 [19:34:04]Write to MH i2c: E2 08 00 99 12 80 11 00 00 00 00 00 00 25 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:04]Read from MH i2c: E2 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: E2 17 00 99 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 73 [19:34:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:34:04]wFMCommunicate OK [19:34:04]CreateOFDProtocolMessage done [19:34:04]OFDSenderStorePacket 188463 [19:34:04]StoreOFDPacket docnum=188463 [19:34:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7D CD 07 01 61 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 2C FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E0 02 00 35 04 06 00 C4 7E 86 2A 80 2D CD 0C 39 2D 9E 35 FD 55 [19:34:04]CheckFolder [19:34:04]dirname=/storage/ofd_packets [19:34:04]CheckFolder done [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00188463 [19:34:04]NVStorageSaveData ofd_packets/00188463 [19:34:04]File name is /storage/ofd_packets/00188463 [19:34:04]Write 301 bytes [19:34:04]NVStorageSaveData done [19:34:04]OFDSenderStorePacket done [19:34:04]KKMCreateOFDPacket done [19:34:04]NVStorageSaveData kkm_last_timestamp [19:34:04]File name is /storage/kkm_last_timestamp [19:34:04]Write 4 bytes [19:34:04]NVStorageSaveData done [19:34:04]ExternCall_PrintAddStr [19:34:04]wPrintStart [19:34:04]Write to MH i2c: 01 00 00 9A 12 AC [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 9A 12 00 00 00 00 00 FF 0F C1 [19:34:04]RasterBufferAndPrint [19:34:04]line Счет N : (1)210523 [19:34:04]line ИНН: 02508201610067 [19:34:04]line Контрольно-Кассовый Чек [19:34:04]line ПРОДАЖА [19:34:04]line ТРК (МРК, ГНК) : 32 [19:34:04]line Товар: 2710124130 [19:34:04]line Аи-92-К-3 [19:34:04]line 14.950 * 66.90 [19:34:04]line = 1000.16 [19:34:04]line НДС 12% НСП 1% [19:34:04]line > о реализуемом товаре [19:34:04]line ОКРУГЛЕНИЕ: -0.16 [19:34:04]line ИТОГО: 1000.00 [19:34:04]line Внесено: 1000.00 [19:34:04]line СДАЧА: 0.00 [19:34:04]line НСП 1% : 8.85 [19:34:04]line НДС 12% : 106.21 [19:34:04]line Наличными: 1000.00 [19:34:04]line Безнал.: 0.00 [19:34:04]line Место: АЗС № 86 "Партнер Нефть" [19:34:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:34:04]line СНО: Общий режим [19:34:04]line Чек 492 22.10.2024 19:34 [19:34:04]line Смена: 461 ФФД: 1.0 [19:34:04]line ЗНМ: 0300000155 [19:34:04]line РНМ: 0000000000100030 [19:34:04]line Версия ККМ: 001 [19:34:04]line ФМ: 0000000000965340 [19:34:04]line ФД: 188463 [19:34:04]line ФПД: 216047695855661 [19:34:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193404&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188463&fm=216047695855661&tin=02508201610067®Number=0000000000100030&sum=100000 [19:34:04]written 0, free lines is 4095 [19:34:04]OFD Sender: Processing packet 188463 [packets to send 1062, broken 1061] [19:34:04]ProducePacketName [19:34:04]name=ofd_packets/00188463 [19:34:04]OFD Sender: To server: pG, [19:34:04]CommunicateWithHost lk.salyk.kg:30040 [19:34:04]ConnectInit lk.salyk.kg [19:34:04]Connected sock=10 [19:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7D CD 07 01 61 24 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 EC 01 00 00 F4 03 04 00 2C FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 2F E0 02 00 35 04 06 00 C4 7E 86 2A 80 2D CD 0C 39 2D 9E 35 FD 55 [19:34:04]Write to MH i2c: 01 00 00 C5 12 D7 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: 01 07 00 C5 12 00 00 00 00 00 61 0C 4B [19:34:04]RasterBufferAndPrint [19:34:04]line [19:34:04]line [19:34:04]line [19:34:04]line [19:34:04]line [19:34:04]written 0, free lines is 3172 [19:34:04]MH_Cut [19:34:04]Write to MH i2c: D1 01 00 CC 12 01 B0 [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: D1 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: D1 01 00 [19:34:04]MH_I2C_Read... [19:34:04]Read from MH i2c: D1 01 00 CC 12 00 AF [19:34:04]Write to MH i2c: 01 00 00 CD 12 DF [19:34:04]Write i2c OK [19:34:04]MH_I2C_Read... [19:34:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B7 52 47 00 24 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 39 36 35 33 34 30 10 04 04 00 2F E0 02 00 F4 03 04 00 18 A8 17 67 B6 04 01 00 00 21 E0 41 60 EB F0 4E 94 [19:34:05]CommunicateWithHost err = 0 [19:34:05]CheckOFDResponse [19:34:05]1017 (14) - 77093643461234 [19:34:05]1041 (16) - 0000000000965340 [19:34:05]1040 (4) - 188463 [19:34:05]1012 (4) - 22.10.2024 13:26 [19:34:05]1206 (1) - 0 [19:34:05]OFD Sender: Remove packet 188463 [19:34:05]ProducePacketName [19:34:05]name=ofd_packets/00188463 [19:34:05]NVStorageDeleteData [19:34:05]OFD Sender: No OFD packet to send [19:34:06]*** Cut start [19:34:06]*** Partial cut [19:34:06]*** CUTSNS_PIN = 1 [19:34:06]*** CUTSNS_PIN = 0 [19:34:06]*** Brake cut motor [19:34:06]Read from MH i2c: 01 [19:34:06]MH_I2C_Read... [19:34:06]*** Stop cut motor [19:34:06]*** Cut end [19:34:06]Read from MH i2c: 01 07 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: 01 07 00 CD 12 00 00 00 00 00 FF 0F F4 [19:34:06]process_action close_receipt done [19:34:06]requested_data is exist [19:34:06]produce_requested_data [19:34:06]requested_item fm.sn is exist - process it [19:34:06]wFMCommunicate request_size=4 [19:34:06]MH_SAM_APDU [19:34:06]CAPDU: 80 11 00 00 [19:34:06]Write to MH i2c: E2 08 00 CE 12 80 11 00 00 00 00 00 00 5A [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:34:06]Read from MH i2c: E2 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 17 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 17 00 CE 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A8 [19:34:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:34:06]wFMCommunicate OK [19:34:06]requested_item fd.num is exist - process it [19:34:06]SAM_PROTO_GetFieldsCounters [19:34:06]wFMCommunicate request_size=4 [19:34:06]MH_SAM_APDU [19:34:06]CAPDU: 80 13 00 00 [19:34:06]Write to MH i2c: E2 08 00 CF 12 80 13 00 00 00 00 00 00 5D [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:34:06]Read from MH i2c: E2 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 62 00 [19:34:06]MH_I2C_Read... [19:34:06]Read from MH i2c: E2 62 00 CF 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EC 01 00 00 5E 04 04 00 EC 01 00 00 57 04 04 00 ED 01 00 00 19 04 04 00 00 00 00 00 90 00 0A [19:34:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 2F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EC 01 00 00 5E 04 04 00 EC 01 00 00 57 04 04 00 ED 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:34:06]wFMCommunicate OK [19:34:06]SAM_PROTO_GetFieldsCounters done [19:34:06]requested_item shift.num is exist - process it [19:34:06]requested_item shift.opened is exist - process it [19:34:06]req_shift_opened [19:34:06]FM_GetShiftState [19:34:06]SAM_PROTO_GetShiftState [19:34:06]wFMCommunicate request_size=4 [19:34:06]MH_SAM_APDU [19:34:06]CAPDU: 80 13 01 00 [19:34:06]Write to MH i2c: E2 08 00 D0 12 80 13 01 00 00 00 00 00 5F [19:34:06]Write i2c OK [19:34:06]MH_I2C_Read... [19:34:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:34:07]Read from MH i2c: E2 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 [19:34:07]MH_I2C_Read... [19:34:07]Read from MH i2c: E2 0E 00 D0 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 54 [19:34:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:34:07]wFMCommunicate OK [19:34:07]SAM_PROTO_GetShiftState done [19:34:07]FM_GetShiftState done [19:34:07]req_shift_opened done [19:34:07]requested_item shift.open_date is exist - process it [19:34:07]req_shift_open_date [19:34:07]req_shift_open_date done [19:34:07]produce_requested_data done [19:34:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188463,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:34:07]process_action_free close_receipt [19:34:07]json_value_free [19:34:07]json_value_free done [19:34:07]process_json_proto returns [19:34:07]Send response to host [19:34:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188463,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:34:07]free response buf [19:34:07]execute_script done [19:34:07]execute_script returns [19:34:07]free content buf [19:34:07]Sock 9.Close socket [19:34:07]Sock 9.Thread stoped [19:34:10]OFD Sender: No OFD packet to send [19:34:15]OFD Sender: No OFD packet to send [19:34:20]OFD Sender: No OFD packet to send [19:34:25]OFD Sender: No OFD packet to send [19:34:30]OFD Sender: No OFD packet to send [19:34:35]OFD Sender: No OFD packet to send [19:34:40]OFD Sender: No OFD packet to send [19:34:45]OFD Sender: No OFD packet to send [19:34:50]OFD Sender: No OFD packet to send [19:34:55]OFD Sender: No OFD packet to send [19:35:00]OFD Sender: No OFD packet to send [19:35:05]OFD Sender: No OFD packet to send [19:35:10]OFD Sender: No OFD packet to send [19:35:15]OFD Sender: No OFD packet to send [19:35:20]OFD Sender: No OFD packet to send [19:35:25]OFD Sender: No OFD packet to send [19:35:31]OFD Sender: No OFD packet to send [19:35:36]OFD Sender: No OFD packet to send [19:35:41]OFD Sender: No OFD packet to send [19:35:43]accept exits with 7 [19:35:43]New connection [19:35:43]New thread 3066756452 created [19:35:43]Thread 3066613092 joined [19:35:43]Waiting for new connection... [19:35:43] Sock 7.Parse request [19:35:43]Sock 7.Check first char [19:35:43]Sock 7.First char is OK [19:35:43]request: POST /json_proto HTTP/1.0 [19:35:43]Method: POST [19:35:43]URL: /json_proto [19:35:43]Method is POST - this is cgi request [19:35:43]url: /json_proto [19:35:43]query_string will be loaded in cgi processing [19:35:43]execute_cgi json_proto POST (null) [19:35:43]execute_cgi path=json_proto method=POST [19:35:43]POST find Content-Length [19:35:43]Host: 172.17.42.131:8080 [19:35:43]Content-Length: 677 [19:35:43]Content-Type: application/json [19:35:43] [19:35:43]POST finish read [19:35:43]Found Content-Length = 677 [19:35:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:43]execute_script... [19:35: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)210524", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:35:43]POST & json_proto [19:35:43]process_json_proto [19:35:43]json parsed OK: [19:35:43]protocol is kg_v1.0 [19:35:43]action value=close_receipt [19:35:43]process_action close_receipt [19:35:43]cmd_close_receipt [19:35:43]MH_GetDate [19:35:43]Write to MH i2c: F0 00 00 D1 12 D2 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: F0 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: F0 09 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: F0 09 00 D1 12 00 90 FE 17 67 A0 18 CA 66 CF [19:35:43]GetLastDocTimeStamp 1729625644 [19:35:43]current date 1729625744 [19:35:43]FM_GetShiftState [19:35:43]SAM_PROTO_GetShiftState [19:35:43]wFMCommunicate request_size=4 [19:35:43]MH_SAM_APDU [19:35:43]CAPDU: 80 13 01 00 [19:35:43]Write to MH i2c: E2 08 00 D2 12 80 13 01 00 00 00 00 00 61 [19:35:43]Write i2c OK [19:35:43]MH_I2C_Read... [19:35:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:43]Read from MH i2c: E2 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 0E 00 [19:35:43]MH_I2C_Read... [19:35:43]Read from MH i2c: E2 0E 00 D2 12 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 56 [19:35:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:35:43]wFMCommunicate OK [19:35:43]SAM_PROTO_GetShiftState done [19:35:43]FM_GetShiftState done [19:35:43]opened in 1729556094 [19:35:43]opened+sec_in_day 1729642494 [19:35:43]quantity*price = 50041 [19:35:43]sum+1 = 50042 [19:35:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 493 22.10.2024 19:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188464 ФПД: 213896468759764 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188464&fm=213896468759764&tin=02508201610067®Number=0000000000100030&sum=50000 [19:35:44]StoreToDocumentArchive [19:35:44]shift 461 fd 188464 [19:35:44]save to /storage/0461/doc_00188464 [19:35:44]save last doc name /storage/0461/doc_00188464 to /storage/kkm_last_doc_name [19:35:44]save OK [19:35:44]Clear old archive folders... [19:35:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:35:44]tlvbuf is 0094BBE0 [19:35:44]SAM_PROTO_ClearQueue [19:35:44]wFMCommunicate request_size=4 [19:35:44]MH_SAM_APDU [19:35:44]CAPDU: 80 09 00 00 [19:35:44]Write to MH i2c: E2 08 00 DF 12 80 09 00 00 00 00 00 00 63 [19:35:44]Write i2c OK [19:35:44]MH_I2C_Read... [19:35:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:35:44]Read from MH i2c: E2 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 03 00 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 03 00 DF 12 00 90 00 65 [19:35:44]RAPDU: 90 00 [19:35:44]wFMCommunicate OK [19:35:44]SAM_PROTO_ClearQueue done [19:35:44]KKMCreateOFDPacket [19:35:44]OFDProtocolAddRootSTLVToBuf [19:35:44]FM_MakeSignedData [19:35:44]FM_MakeSignedData [19:35:44]SAM_PROTO_SignData [19:35:44]wFMCommunicate request_size=4 [19:35:44]MH_SAM_APDU [19:35:44]CAPDU: 80 0D 01 02 [19:35:44]Write to MH i2c: E2 08 00 E0 12 80 0D 01 02 00 00 00 00 6B [19:35:44]Write i2c OK [19:35:44]MH_I2C_Read... [19:35:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:35:44]Read from MH i2c: E2 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 03 00 [19:35:44]MH_I2C_Read... [19:35:44]Read from MH i2c: E2 03 00 E0 12 00 90 00 66 [19:35:44]RAPDU: 90 00 [19:35:44]wFMCommunicate OK [19:35:44]wFMCommunicate request_size=255 [19:35:44]MH_SAM_APDU [19:35:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 90 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E0 02 00 35 04 06 00 C2 [19:35:44]Write to MH i2c: E2 02 01 E1 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 90 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E0 02 00 35 04 06 00 C2 00 00 7A [19:35:44]Write i2c OK [19:35:44]MH_I2C_Read... [19:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:45]Read from MH i2c: E2 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 03 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 03 00 E1 12 00 90 00 67 [19:35:45]RAPDU: 90 00 [19:35:45]wFMCommunicate OK [19:35:45]wFMCommunicate request_size=10 [19:35:45]MH_SAM_APDU [19:35:45]CAPDU: 80 0D 02 02 05 89 A7 0A 04 D4 [19:35:45]Write to MH i2c: E2 0D 00 E2 12 80 0D 02 02 05 00 89 A7 0A 04 D4 00 00 8A [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:35:45]Read from MH i2c: E2 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 03 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 03 00 E2 12 00 90 00 68 [19:35:45]RAPDU: 90 00 [19:35:45]wFMCommunicate OK [19:35:45]wFMCommunicate request_size=4 [19:35:45]MH_SAM_APDU [19:35:45]CAPDU: 80 0D 03 02 [19:35:45]Write to MH i2c: E2 08 00 E3 12 80 0D 03 02 00 00 00 00 70 [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:35:45]Read from MH i2c: E2 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 0B 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 0B 00 E3 12 00 80 A2 FE E9 AF 1E 20 75 90 00 DC [19:35:45]RAPDU: 80 A2 FE E9 AF 1E 20 75 90 00 [19:35:45]wFMCommunicate OK [19:35:45]SAM_PROTO_SignData done [19:35:45]FM_MakeSignedData done [19:35:45]CreateOFDProtocolMessage [19:35:45]wFMCommunicate request_size=4 [19:35:45]MH_SAM_APDU [19:35:45]CAPDU: 80 11 00 00 [19:35:45]Write to MH i2c: E2 08 00 E4 12 80 11 00 00 00 00 00 00 70 [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:45]Read from MH i2c: E2 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 17 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: E2 17 00 E4 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BE [19:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:35:45]wFMCommunicate OK [19:35:45]CreateOFDProtocolMessage done [19:35:45]OFDSenderStorePacket 188464 [19:35:45]StoreOFDPacket docnum=188464 [19:35:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 CD 07 01 B5 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 90 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E0 02 00 35 04 06 00 C2 89 A7 0A 04 D4 80 A2 FE E9 AF 1E 20 75 [19:35:45]CheckFolder [19:35:45]dirname=/storage/ofd_packets [19:35:45]CheckFolder done [19:35:45]ProducePacketName [19:35:45]name=ofd_packets/00188464 [19:35:45]NVStorageSaveData ofd_packets/00188464 [19:35:45]File name is /storage/ofd_packets/00188464 [19:35:45]Write 301 bytes [19:35:45]NVStorageSaveData done [19:35:45]OFDSenderStorePacket done [19:35:45]KKMCreateOFDPacket done [19:35:45]NVStorageSaveData kkm_last_timestamp [19:35:45]File name is /storage/kkm_last_timestamp [19:35:45]Write 4 bytes [19:35:45]NVStorageSaveData done [19:35:45]ExternCall_PrintAddStr [19:35:45]wPrintStart [19:35:45]Write to MH i2c: 01 00 00 E5 12 F7 [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: 01 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: 01 07 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: 01 07 00 E5 12 00 00 00 00 00 FF 0F 0C [19:35:45]RasterBufferAndPrint [19:35:45]line Счет N : (1)210524 [19:35:45]line ИНН: 02508201610067 [19:35:45]line Контрольно-Кассовый Чек [19:35:45]line ПРОДАЖА [19:35:45]line ТРК (МРК, ГНК) : 32 [19:35:45]line Товар: 2710124130 [19:35:45]line Аи-92-К-3 [19:35:45]line 7.480 * 66.90 [19:35:45]line = 500.41 [19:35:45]line НДС 12% НСП 1% [19:35:45]line > о реализуемом товаре [19:35:45]line ОКРУГЛЕНИЕ: -0.41 [19:35:45]line ИТОГО: 500.00 [19:35:45]line Внесено: 500.00 [19:35:45]line СДАЧА: 0.00 [19:35:45]line НСП 1% : 4.43 [19:35:45]line НДС 12% : 53.14 [19:35:45]line Наличными: 500.00 [19:35:45]line Безнал.: 0.00 [19:35:45]line Место: АЗС № 86 "Партнер Нефть" [19:35:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:35:45]line СНО: Общий режим [19:35:45]line Чек 493 22.10.2024 19:35 [19:35:45]line Смена: 461 ФФД: 1.0 [19:35:45]line ЗНМ: 0300000155 [19:35:45]line РНМ: 0000000000100030 [19:35:45]line Версия ККМ: 001 [19:35:45]line ФМ: 0000000000965340 [19:35:45]line ФД: 188464 [19:35:45]line ФПД: 213896468759764 [19:35:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193544&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188464&fm=213896468759764&tin=02508201610067®Number=0000000000100030&sum=50000 [19:35:45]written 0, free lines is 4095 [19:35:45]OFD Sender: Processing packet 188464 [packets to send 1062, broken 1061] [19:35:45]ProducePacketName [19:35:45]name=ofd_packets/00188464 [19:35:45]OFD Sender: To server: pG, [19:35:45]CommunicateWithHost lk.salyk.kg:30040 [19:35:45]ConnectInit lk.salyk.kg [19:35:45]Connected sock=11 [19:35:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 14 CD 07 01 B5 58 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 ED 01 00 00 F4 03 04 00 90 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 30 E0 02 00 35 04 06 00 C2 89 A7 0A 04 D4 80 A2 FE E9 AF 1E 20 75 [19:35:45]Write to MH i2c: 01 00 00 10 13 23 [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: 01 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: 01 07 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: 01 07 00 10 13 00 00 00 00 00 5A 0C 90 [19:35:45]RasterBufferAndPrint [19:35:45]line [19:35:45]line [19:35:45]line [19:35:45]line [19:35:45]line [19:35:45]written 0, free lines is 3165 [19:35:45]MH_Cut [19:35:45]Write to MH i2c: D1 01 00 17 13 01 FC [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: D1 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: D1 01 00 [19:35:45]MH_I2C_Read... [19:35:45]Read from MH i2c: D1 01 00 17 13 00 FB [19:35:45]Write to MH i2c: 01 00 00 18 13 2B [19:35:45]Write i2c OK [19:35:45]MH_I2C_Read... [19:35:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D7 37 47 00 1B 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 39 36 35 33 34 30 10 04 04 00 30 E0 02 00 F4 03 04 00 7D A8 17 67 B6 04 01 00 00 57 DE 50 E2 79 51 13 6E [19:35:45]CommunicateWithHost err = 0 [19:35:45]CheckOFDResponse [19:35:45]1017 (14) - 77093643461234 [19:35:45]1041 (16) - 0000000000965340 [19:35:45]1040 (4) - 188464 [19:35:45]1012 (4) - 22.10.2024 13:28 [19:35:45]1206 (1) - 0 [19:35:45]OFD Sender: Remove packet 188464 [19:35:45]ProducePacketName [19:35:45]name=ofd_packets/00188464 [19:35:45]NVStorageDeleteData [19:35:46]OFD Sender: No OFD packet to send [19:35:46]*** Cut start [19:35:46]*** Partial cut [19:35:46]*** CUTSNS_PIN = 1 [19:35:46]*** CUTSNS_PIN = 0 [19:35:47]*** Brake cut motor [19:35:47]Read from MH i2c: 01 [19:35:47]MH_I2C_Read... [19:35:47]*** Stop cut motor [19:35:47]*** Cut end [19:35:47]Read from MH i2c: 01 07 00 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: 01 07 00 18 13 00 00 00 00 00 FF 0F 40 [19:35:47]process_action close_receipt done [19:35:47]requested_data is exist [19:35:47]produce_requested_data [19:35:47]requested_item fm.sn is exist - process it [19:35:47]wFMCommunicate request_size=4 [19:35:47]MH_SAM_APDU [19:35:47]CAPDU: 80 11 00 00 [19:35:47]Write to MH i2c: E2 08 00 19 13 80 11 00 00 00 00 00 00 A6 [19:35:47]Write i2c OK [19:35:47]MH_I2C_Read... [19:35:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:35:47]Read from MH i2c: E2 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: E2 17 00 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: E2 17 00 19 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F4 [19:35:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:35:47]wFMCommunicate OK [19:35:47]requested_item fd.num is exist - process it [19:35:47]SAM_PROTO_GetFieldsCounters [19:35:47]wFMCommunicate request_size=4 [19:35:47]MH_SAM_APDU [19:35:47]CAPDU: 80 13 00 00 [19:35:47]Write to MH i2c: E2 08 00 1A 13 80 13 00 00 00 00 00 00 A9 [19:35:47]Write i2c OK [19:35:47]MH_I2C_Read... [19:35:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:35:47]Read from MH i2c: E2 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: E2 62 00 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: E2 62 00 1A 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 ED 01 00 00 5E 04 04 00 ED 01 00 00 57 04 04 00 EE 01 00 00 19 04 04 00 00 00 00 00 90 00 5A [19:35:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 30 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 ED 01 00 00 5E 04 04 00 ED 01 00 00 57 04 04 00 EE 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:35:47]wFMCommunicate OK [19:35:47]SAM_PROTO_GetFieldsCounters done [19:35:47]requested_item shift.num is exist - process it [19:35:47]requested_item shift.opened is exist - process it [19:35:47]req_shift_opened [19:35:47]FM_GetShiftState [19:35:47]SAM_PROTO_GetShiftState [19:35:47]wFMCommunicate request_size=4 [19:35:47]MH_SAM_APDU [19:35:47]CAPDU: 80 13 01 00 [19:35:47]Write to MH i2c: E2 08 00 1B 13 80 13 01 00 00 00 00 00 AB [19:35:47]Write i2c OK [19:35:47]MH_I2C_Read... [19:35:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:35:47]Read from MH i2c: E2 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: E2 0E 00 [19:35:47]MH_I2C_Read... [19:35:47]Read from MH i2c: E2 0E 00 1B 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A0 [19:35:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:35:47]wFMCommunicate OK [19:35:47]SAM_PROTO_GetShiftState done [19:35:47]FM_GetShiftState done [19:35:47]req_shift_opened done [19:35:47]requested_item shift.open_date is exist - process it [19:35:47]req_shift_open_date [19:35:47]req_shift_open_date done [19:35:47]produce_requested_data done [19:35:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188464,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:35:47]process_action_free close_receipt [19:35:47]json_value_free [19:35:47]json_value_free done [19:35:47]process_json_proto returns [19:35:47]Send response to host [19:35:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188464,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:35:47]free response buf [19:35:47]execute_script done [19:35:47]execute_script returns [19:35:47]free content buf [19:35:47]Sock 7.Close socket [19:35:47]Sock 7.Thread stoped [19:35:51]OFD Sender: No OFD packet to send [19:35:56]OFD Sender: No OFD packet to send [19:36:01]OFD Sender: No OFD packet to send [19:36:06]OFD Sender: No OFD packet to send [19:36:11]OFD Sender: No OFD packet to send [19:36:16]OFD Sender: No OFD packet to send [19:36:21]OFD Sender: No OFD packet to send [19:36:24]accept exits with 9 [19:36:24]New connection [19:36:24]New thread 3066613092 created [19:36:24]Thread 3066756452 joined [19:36:24]Waiting for new connection... [19:36:24] Sock 9.Parse request [19:36:24]Sock 9.Check first char [19:36:24]Sock 9.First char is OK [19:36:24]request: POST /json_proto HTTP/1.0 [19:36:24]Method: POST [19:36:24]URL: /json_proto [19:36:24]Method is POST - this is cgi request [19:36:24]url: /json_proto [19:36:24]query_string will be loaded in cgi processing [19:36:24]execute_cgi json_proto POST (null) [19:36:24]execute_cgi path=json_proto method=POST [19:36:24]POST find Content-Length [19:36:24]Host: 172.17.42.131:8080 [19:36:24]Content-Length: 677 [19:36:24]Content-Type: application/json [19:36:24] [19:36:24]POST finish read [19:36:24]Found Content-Length = 677 [19:36:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [19:36:24]execute_script... [19:36:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210525", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [19:36:24]POST & json_proto [19:36:24]process_json_proto [19:36:24]json parsed OK: [19:36:24]protocol is kg_v1.0 [19:36:24]action value=close_receipt [19:36:24]process_action close_receipt [19:36:24]cmd_close_receipt [19:36:24]MH_GetDate [19:36:24]Write to MH i2c: F0 00 00 1C 13 1E [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: F0 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: F0 09 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: F0 09 00 1C 13 00 B9 FE 17 67 A0 18 CA 66 44 [19:36:24]GetLastDocTimeStamp 1729625744 [19:36:24]current date 1729625785 [19:36:24]FM_GetShiftState [19:36:24]SAM_PROTO_GetShiftState [19:36:24]wFMCommunicate request_size=4 [19:36:24]MH_SAM_APDU [19:36:24]CAPDU: 80 13 01 00 [19:36:24]Write to MH i2c: E2 08 00 1D 13 80 13 01 00 00 00 00 00 AD [19:36:24]Write i2c OK [19:36:24]MH_I2C_Read... [19:36:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:24]Read from MH i2c: E2 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 0E 00 [19:36:24]MH_I2C_Read... [19:36:24]Read from MH i2c: E2 0E 00 1D 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A2 [19:36:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:36:24]wFMCommunicate OK [19:36:24]SAM_PROTO_GetShiftState done [19:36:24]FM_GetShiftState done [19:36:24]opened in 1729556094 [19:36:24]opened+sec_in_day 1729642494 [19:36:24]quantity*price = 50010 [19:36:24]sum+1 = 50012 [19:36:24]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 494 22.10.2024 19:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188465 ФПД: 248648244599608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188465&fm=248648244599608&tin=02508201610067®Number=0000000000100030&sum=50000 [19:36:25]StoreToDocumentArchive [19:36:25]shift 461 fd 188465 [19:36:25]save to /storage/0461/doc_00188465 [19:36:25]save last doc name /storage/0461/doc_00188465 to /storage/kkm_last_doc_name [19:36:25]save OK [19:36:25]Clear old archive folders... [19:36:25]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:36:25]tlvbuf is 009371D0 [19:36:25]SAM_PROTO_ClearQueue [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 09 00 00 [19:36:25]Write to MH i2c: E2 08 00 2A 13 80 09 00 00 00 00 00 00 AF [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 2A 13 00 90 00 B1 [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]SAM_PROTO_ClearQueue done [19:36:25]KKMCreateOFDPacket [19:36:25]OFDProtocolAddRootSTLVToBuf [19:36:25]FM_MakeSignedData [19:36:25]FM_MakeSignedData [19:36:25]SAM_PROTO_SignData [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 0D 01 02 [19:36:25]Write to MH i2c: E2 08 00 2B 13 80 0D 01 02 00 00 00 00 B7 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 2B 13 00 90 00 B2 [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]wFMCommunicate request_size=255 [19:36:25]MH_SAM_APDU [19:36: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 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 EE 01 00 00 F4 03 04 00 B9 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E0 02 00 35 04 06 00 E2 [19:36:25]Write to MH i2c: E2 02 01 2C 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 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 EE 01 00 00 F4 03 04 00 B9 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E0 02 00 35 04 06 00 E2 00 00 E9 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 2C 13 00 90 00 B3 [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]wFMCommunicate request_size=10 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 0D 02 02 05 24 EE 4B 1B 38 [19:36:25]Write to MH i2c: E2 0D 00 2D 13 80 0D 02 02 05 00 24 EE 4B 1B 38 00 00 74 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 03 00 2D 13 00 90 00 B4 [19:36:25]RAPDU: 90 00 [19:36:25]wFMCommunicate OK [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 0D 03 02 [19:36:25]Write to MH i2c: E2 08 00 2E 13 80 0D 03 02 00 00 00 00 BC [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 0B 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 0B 00 2E 13 00 24 4E 9F BE 62 34 BC 9A 90 00 78 [19:36:25]RAPDU: 24 4E 9F BE 62 34 BC 9A 90 00 [19:36:25]wFMCommunicate OK [19:36:25]SAM_PROTO_SignData done [19:36:25]FM_MakeSignedData done [19:36:25]CreateOFDProtocolMessage [19:36:25]wFMCommunicate request_size=4 [19:36:25]MH_SAM_APDU [19:36:25]CAPDU: 80 11 00 00 [19:36:25]Write to MH i2c: E2 08 00 2F 13 80 11 00 00 00 00 00 00 BC [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:25]Read from MH i2c: E2 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 17 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: E2 17 00 2F 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0A [19:36:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:36:25]wFMCommunicate OK [19:36:25]CreateOFDProtocolMessage done [19:36:25]OFDSenderStorePacket 188465 [19:36:25]StoreOFDPacket docnum=188465 [19:36:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 9B 07 01 0A A1 5A 03 01 00 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 EE 01 00 00 F4 03 04 00 B9 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E0 02 00 35 04 06 00 E2 24 EE 4B 1B 38 24 4E 9F BE 62 34 BC 9A [19:36:25]CheckFolder [19:36:25]dirname=/storage/ofd_packets [19:36:25]CheckFolder done [19:36:25]ProducePacketName [19:36:25]name=ofd_packets/00188465 [19:36:25]NVStorageSaveData ofd_packets/00188465 [19:36:25]File name is /storage/ofd_packets/00188465 [19:36:25]Write 301 bytes [19:36:25]NVStorageSaveData done [19:36:25]OFDSenderStorePacket done [19:36:25]KKMCreateOFDPacket done [19:36:25]NVStorageSaveData kkm_last_timestamp [19:36:25]File name is /storage/kkm_last_timestamp [19:36:25]Write 4 bytes [19:36:25]NVStorageSaveData done [19:36:25]ExternCall_PrintAddStr [19:36:25]wPrintStart [19:36:25]Write to MH i2c: 01 00 00 30 13 43 [19:36:25]Write i2c OK [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 07 00 [19:36:25]MH_I2C_Read... [19:36:25]Read from MH i2c: 01 07 00 30 13 00 00 00 00 00 FF 0F 58 [19:36:25]RasterBufferAndPrint [19:36:25]line Счет N : (1)210525 [19:36:25]line ИНН: 02508201610067 [19:36:25]line Контрольно-Кассовый Чек [19:36:25]line ПРОДАЖА [19:36:25]line ТРК (МРК, ГНК) : 23 [19:36:25]line Товар: 2710124500 [19:36:25]line Аи-95-К-3 [19:36:25]line 6.740 * 74.20 [19:36:25]line = 500.11 [19:36:25]line НДС 12% НСП 1% [19:36:25]line > о реализуемом товаре [19:36:25]line ОКРУГЛЕНИЕ: -0.11 [19:36:25]line ИТОГО: 500.00 [19:36:25]line Внесено: 500.00 [19:36:25]line СДАЧА: 0.00 [19:36:25]line НСП 1% : 4.43 [19:36:25]line НДС 12% : 53.11 [19:36:25]line Наличными: 500.00 [19:36:25]line Безнал.: 0.00 [19:36:25]line Место: АЗС № 86 "Партнер Нефть" [19:36:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:36:25]line СНО: Общий режим [19:36:25]line Чек 494 22.10.2024 19:36 [19:36:25]line Смена: 461 ФФД: 1.0 [19:36:25]line ЗНМ: 0300000155 [19:36:25]line РНМ: 0000000000100030 [19:36:25]line Версия ККМ: 001 [19:36:25]line ФМ: 0000000000965340 [19:36:25]line ФД: 188465 [19:36:25]line ФПД: 248648244599608 [19:36:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193625&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188465&fm=248648244599608&tin=02508201610067®Number=0000000000100030&sum=50000 [19:36:25]written 0, free lines is 4095 [19:36:25]OFD Sender: Processing packet 188465 [packets to send 1062, broken 1061] [19:36:25]ProducePacketName [19:36:25]name=ofd_packets/00188465 [19:36:25]OFD Sender: To server: pG, [19:36:25]CommunicateWithHost lk.salyk.kg:30040 [19:36:25]ConnectInit lk.salyk.kg [19:36:26]Connected sock=7 [19:36:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 9B 07 01 0A A1 5A 03 01 00 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 EE 01 00 00 F4 03 04 00 B9 FE 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 31 E0 02 00 35 04 06 00 E2 24 EE 4B 1B 38 24 4E 9F BE 62 34 BC 9A [19:36:26]Write to MH i2c: 01 00 00 5B 13 6E [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: 01 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: 01 07 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: 01 07 00 5B 13 00 00 00 00 00 5D 0C DE [19:36:26]RasterBufferAndPrint [19:36:26]line [19:36:26]line [19:36:26]line [19:36:26]line [19:36:26]line [19:36:26]written 0, free lines is 3169 [19:36:26]MH_Cut [19:36:26]Write to MH i2c: D1 01 00 62 13 01 47 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: D1 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: D1 01 00 [19:36:26]MH_I2C_Read... [19:36:26]Read from MH i2c: D1 01 00 62 13 00 46 [19:36:26]Write to MH i2c: 01 00 00 63 13 76 [19:36:26]Write i2c OK [19:36:26]MH_I2C_Read... [19:36:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C9 EC 47 00 8E 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 39 36 35 33 34 30 10 04 04 00 31 E0 02 00 F4 03 04 00 A6 A8 17 67 B6 04 01 00 00 51 B4 93 21 ED 5B 92 76 [19:36:26]CommunicateWithHost err = 0 [19:36:26]CheckOFDResponse [19:36:26]1017 (14) - 77093643461234 [19:36:26]1041 (16) - 0000000000965340 [19:36:26]1040 (4) - 188465 [19:36:26]1012 (4) - 22.10.2024 13:29 [19:36:26]1206 (1) - 0 [19:36:26]OFD Sender: Remove packet 188465 [19:36:26]ProducePacketName [19:36:26]name=ofd_packets/00188465 [19:36:26]NVStorageDeleteData [19:36:27]OFD Sender: No OFD packet to send [19:36:27]*** Cut start [19:36:27]*** Partial cut [19:36:27]*** CUTSNS_PIN = 1 [19:36:27]*** CUTSNS_PIN = 0 [19:36:27]*** Brake cut motor [19:36:28]Read from MH i2c: 01 [19:36:28]MH_I2C_Read... [19:36:28]*** Stop cut motor [19:36:28]*** Cut end [19:36:28]Read from MH i2c: 01 07 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: 01 07 00 63 13 00 00 00 00 00 FF 0F 8B [19:36:28]process_action close_receipt done [19:36:28]requested_data is exist [19:36:28]produce_requested_data [19:36:28]requested_item fm.sn is exist - process it [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 11 00 00 [19:36:28]Write to MH i2c: E2 08 00 64 13 80 11 00 00 00 00 00 00 F1 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 17 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 17 00 64 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3F [19:36:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:36:28]wFMCommunicate OK [19:36:28]requested_item fd.num is exist - process it [19:36:28]SAM_PROTO_GetFieldsCounters [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 13 00 00 [19:36:28]Write to MH i2c: E2 08 00 65 13 80 13 00 00 00 00 00 00 F4 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 62 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 62 00 65 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EE 01 00 00 5E 04 04 00 EE 01 00 00 57 04 04 00 EF 01 00 00 19 04 04 00 00 00 00 00 90 00 A9 [19:36:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 31 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EE 01 00 00 5E 04 04 00 EE 01 00 00 57 04 04 00 EF 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_GetFieldsCounters done [19:36:28]requested_item shift.num is exist - process it [19:36:28]requested_item shift.opened is exist - process it [19:36:28]req_shift_opened [19:36:28]FM_GetShiftState [19:36:28]SAM_PROTO_GetShiftState [19:36:28]wFMCommunicate request_size=4 [19:36:28]MH_SAM_APDU [19:36:28]CAPDU: 80 13 01 00 [19:36:28]Write to MH i2c: E2 08 00 66 13 80 13 01 00 00 00 00 00 F6 [19:36:28]Write i2c OK [19:36:28]MH_I2C_Read... [19:36:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:36:28]Read from MH i2c: E2 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0E 00 [19:36:28]MH_I2C_Read... [19:36:28]Read from MH i2c: E2 0E 00 66 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EB [19:36:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:36:28]wFMCommunicate OK [19:36:28]SAM_PROTO_GetShiftState done [19:36:28]FM_GetShiftState done [19:36:28]req_shift_opened done [19:36:28]requested_item shift.open_date is exist - process it [19:36:28]req_shift_open_date [19:36:28]req_shift_open_date done [19:36:28]produce_requested_data done [19:36:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188465,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:36:28]process_action_free close_receipt [19:36:28]json_value_free [19:36:28]json_value_free done [19:36:28]process_json_proto returns [19:36:28]Send response to host [19:36:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188465,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:36:28]free response buf [19:36:28]execute_script done [19:36:28]execute_script returns [19:36:28]free content buf [19:36:28]Sock 9.Close socket [19:36:28]Sock 9.Thread stoped [19:36:32]OFD Sender: No OFD packet to send [19:36:37]OFD Sender: No OFD packet to send [19:36:42]OFD Sender: No OFD packet to send [19:36:47]OFD Sender: No OFD packet to send [19:36:52]OFD Sender: No OFD packet to send [19:36:57]OFD Sender: No OFD packet to send [19:37:02]OFD Sender: No OFD packet to send [19:37:07]OFD Sender: No OFD packet to send [19:37:12]OFD Sender: No OFD packet to send [19:37:17]OFD Sender: No OFD packet to send [19:37:22]OFD Sender: No OFD packet to send [19:37:27]OFD Sender: No OFD packet to send [19:37:32]OFD Sender: No OFD packet to send [19:37:37]OFD Sender: No OFD packet to send [19:37:42]OFD Sender: No OFD packet to send [19:37:47]OFD Sender: No OFD packet to send [19:37:49]accept exits with 10 [19:37:49]New connection [19:37:49]New thread 3066756452 created [19:37:49]Thread 3066613092 joined [19:37:49]Waiting for new connection... [19:37:49] Sock 10.Parse request [19:37:49]Sock 10.Check first char [19:37:49]Sock 10.First char is OK [19:37:49]request: POST /json_proto HTTP/1.0 [19:37:49]Method: POST [19:37:49]URL: /json_proto [19:37:49]Method is POST - this is cgi request [19:37:49]url: /json_proto [19:37:49]query_string will be loaded in cgi processing [19:37:49]execute_cgi json_proto POST (null) [19:37:49]execute_cgi path=json_proto method=POST [19:37:49]POST find Content-Length [19:37:49]Host: 172.17.42.131:8080 [19:37:49]Content-Length: 688 [19:37:49]Content-Type: application/json [19:37:49] [19:37:49]POST finish read [19:37:49]Found Content-Length = 688 [19:37:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [19:37:49]execute_script... [19:37: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)210526", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 25.910, "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" ] } } [19:37:49]POST & json_proto [19:37:49]process_json_proto [19:37:49]json parsed OK: [19:37:49]protocol is kg_v1.0 [19:37:49]action value=close_receipt [19:37:49]process_action close_receipt [19:37:49]cmd_close_receipt [19:37:49]MH_GetDate [19:37:49]Write to MH i2c: F0 00 00 67 13 69 [19:37:49]Write i2c OK [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: F0 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: F0 09 00 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: F0 09 00 67 13 00 0E FF 17 67 A0 18 CA 66 E5 [19:37:49]GetLastDocTimeStamp 1729625785 [19:37:49]current date 1729625870 [19:37:49]FM_GetShiftState [19:37:49]SAM_PROTO_GetShiftState [19:37:49]wFMCommunicate request_size=4 [19:37:49]MH_SAM_APDU [19:37:49]CAPDU: 80 13 01 00 [19:37:49]Write to MH i2c: E2 08 00 68 13 80 13 01 00 00 00 00 00 F8 [19:37:49]Write i2c OK [19:37:49]MH_I2C_Read... [19:37:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:49]Read from MH i2c: E2 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: E2 0E 00 [19:37:49]MH_I2C_Read... [19:37:49]Read from MH i2c: E2 0E 00 68 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 ED [19:37:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:37:49]wFMCommunicate OK [19:37:49]SAM_PROTO_GetShiftState done [19:37:49]FM_GetShiftState done [19:37:49]opened in 1729556094 [19:37:49]opened+sec_in_day 1729642494 [19:37:49]quantity*price = 200025 [19:37:49]sum+1 = 200026 [19:37:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.25 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 495 22.10.2024 19:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188466 ФПД: 208737876903373 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193750&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188466&fm=208737876903373&tin=02508201610067®Number=0000000000100030&sum=200000 [19:37:50]StoreToDocumentArchive [19:37:50]shift 461 fd 188466 [19:37:50]save to /storage/0461/doc_00188466 [19:37:50]save last doc name /storage/0461/doc_00188466 to /storage/kkm_last_doc_name [19:37:50]save OK [19:37:50]Clear old archive folders... [19:37:50]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:37:50]tlvbuf is B6E78E80 [19:37:50]SAM_PROTO_ClearQueue [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 09 00 00 [19:37:50]Write to MH i2c: E2 08 00 75 13 80 09 00 00 00 00 00 00 FA [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 75 13 00 90 00 FC [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]SAM_PROTO_ClearQueue done [19:37:50]KKMCreateOFDPacket [19:37:50]OFDProtocolAddRootSTLVToBuf [19:37:50]FM_MakeSignedData [19:37:50]FM_MakeSignedData [19:37:50]SAM_PROTO_SignData [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 01 02 [19:37:50]Write to MH i2c: E2 08 00 76 13 80 0D 01 02 00 00 00 00 02 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 76 13 00 90 00 FD [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]wFMCommunicate request_size=255 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EF 01 00 00 F4 03 04 00 0E FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E0 02 [19:37:50]Write to MH i2c: E2 02 01 77 13 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EF 01 00 00 F4 03 04 00 0E FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E0 02 00 00 00 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 77 13 00 90 00 FE [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]wFMCommunicate request_size=16 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 BD D8 93 01 05 CD [19:37:50]Write to MH i2c: E2 13 00 78 13 80 0D 02 02 0B 00 00 35 04 06 00 BD D8 93 01 05 CD 00 00 55 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 03 00 78 13 00 90 00 FF [19:37:50]RAPDU: 90 00 [19:37:50]wFMCommunicate OK [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 0D 03 02 [19:37:50]Write to MH i2c: E2 08 00 79 13 80 0D 03 02 00 00 00 00 07 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 0B 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 0B 00 79 13 00 72 C5 FF 25 B0 DA 1B 2C 90 00 34 [19:37:50]RAPDU: 72 C5 FF 25 B0 DA 1B 2C 90 00 [19:37:50]wFMCommunicate OK [19:37:50]SAM_PROTO_SignData done [19:37:50]FM_MakeSignedData done [19:37:50]CreateOFDProtocolMessage [19:37:50]wFMCommunicate request_size=4 [19:37:50]MH_SAM_APDU [19:37:50]CAPDU: 80 11 00 00 [19:37:50]Write to MH i2c: E2 08 00 7A 13 80 11 00 00 00 00 00 00 07 [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:50]Read from MH i2c: E2 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 17 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: E2 17 00 7A 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 55 [19:37:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:50]wFMCommunicate OK [19:37:50]CreateOFDProtocolMessage done [19:37:50]OFDSenderStorePacket 188466 [19:37:50]StoreOFDPacket docnum=188466 [19:37:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8B AC 0D 01 B4 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EF 01 00 00 F4 03 04 00 0E FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E0 02 00 35 04 06 00 BD D8 93 01 05 CD 72 C5 FF 25 B0 DA 1B 2C [19:37:50]CheckFolder [19:37:50]dirname=/storage/ofd_packets [19:37:50]CheckFolder done [19:37:50]ProducePacketName [19:37:50]name=ofd_packets/00188466 [19:37:50]NVStorageSaveData ofd_packets/00188466 [19:37:50]File name is /storage/ofd_packets/00188466 [19:37:50]Write 307 bytes [19:37:50]NVStorageSaveData done [19:37:50]OFDSenderStorePacket done [19:37:50]KKMCreateOFDPacket done [19:37:50]NVStorageSaveData kkm_last_timestamp [19:37:50]File name is /storage/kkm_last_timestamp [19:37:50]Write 4 bytes [19:37:50]NVStorageSaveData done [19:37:50]ExternCall_PrintAddStr [19:37:50]wPrintStart [19:37:50]Write to MH i2c: 01 00 00 7B 13 8E [19:37:50]Write i2c OK [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: 01 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: 01 07 00 [19:37:50]MH_I2C_Read... [19:37:50]Read from MH i2c: 01 07 00 7B 13 00 00 00 00 00 FF 0F A3 [19:37:50]RasterBufferAndPrint [19:37:50]line Счет N : (1)210526 [19:37:50]line ИНН: 02508201610067 [19:37:50]line Контрольно-Кассовый Чек [19:37:50]line ПРОДАЖА [19:37:50]line ТРК (МРК, ГНК) : 41 [19:37:50]line Товар: 2710194210 [19:37:50]line D-ENERGY ДТ-К-5 [19:37:50]line 25.910 * 77.20 [19:37:50]line = 2000.25 [19:37:50]line НДС 12% НСП 1% [19:37:50]line > о реализуемом товаре [19:37:50]line ОКРУГЛЕНИЕ: -0.25 [19:37:50]line ИТОГО: 2000.00 [19:37:50]line Внесено: 2000.00 [19:37:50]line СДАЧА: 0.00 [19:37:50]line НСП 1% : 17.70 [19:37:50]line НДС 12% : 212.42 [19:37:50]line Наличными: 2000.00 [19:37:50]line Безнал.: 0.00 [19:37:50]line Место: АЗС № 86 "Партнер Нефть" [19:37:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:37:50]line СНО: Общий режим [19:37:50]line Чек 495 22.10.2024 19:37 [19:37:50]line Смена: 461 ФФД: 1.0 [19:37:50]line ЗНМ: 0300000155 [19:37:50]line РНМ: 0000000000100030 [19:37:50]line Версия ККМ: 001 [19:37:50]line ФМ: 0000000000965340 [19:37:50]line ФД: 188466 [19:37:50]line ФПД: 208737876903373 [19:37:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T193750&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188466&fm=208737876903373&tin=02508201610067®Number=0000000000100030&sum=200000 [19:37:50]written 0, free lines is 4095 [19:37:50]OFD Sender: Processing packet 188466 [packets to send 1062, broken 1061] [19:37:50]ProducePacketName [19:37:50]name=ofd_packets/00188466 [19:37:50]OFD Sender: To server: pG, [19:37:50]CommunicateWithHost lk.salyk.kg:30040 [19:37:50]ConnectInit lk.salyk.kg [19:37:51]Connected sock=9 [19:37:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 8B AC 0D 01 B4 66 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 36 65 00 00 00 00 00 37 04 06 00 28 1E 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 EF 01 00 00 F4 03 04 00 0E FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E0 02 00 35 04 06 00 BD D8 93 01 05 CD 72 C5 FF 25 B0 DA 1B 2C [19:37:51]Write to MH i2c: 01 00 00 A6 13 B9 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: 01 07 00 A6 13 00 00 00 00 00 67 0C 33 [19:37:51]RasterBufferAndPrint [19:37:51]line [19:37:51]line [19:37:51]line [19:37:51]line [19:37:51]line [19:37:51]written 0, free lines is 3178 [19:37:51]MH_Cut [19:37:51]Write to MH i2c: D1 01 00 AD 13 01 92 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D1 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D1 01 00 [19:37:51]MH_I2C_Read... [19:37:51]Read from MH i2c: D1 01 00 AD 13 00 91 [19:37:51]Write to MH i2c: 01 00 00 AE 13 C1 [19:37:51]Write i2c OK [19:37:51]MH_I2C_Read... [19:37:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 08 BE 47 00 A6 A9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 32 E0 02 00 F4 03 04 00 FA A8 17 67 B6 04 01 00 00 69 F3 6A 0E 05 9C 66 0E [19:37:51]CommunicateWithHost err = 0 [19:37:51]CheckOFDResponse [19:37:51]1017 (14) - 77093643461234 [19:37:51]1041 (16) - 0000000000965340 [19:37:51]1040 (4) - 188466 [19:37:51]1012 (4) - 22.10.2024 13:30 [19:37:51]1206 (1) - 0 [19:37:51]OFD Sender: Remove packet 188466 [19:37:51]ProducePacketName [19:37:51]name=ofd_packets/00188466 [19:37:51]NVStorageDeleteData [19:37:51]OFD Sender: No OFD packet to send [19:37:52]*** Cut start [19:37:52]*** Partial cut [19:37:52]*** CUTSNS_PIN = 1 [19:37:52]*** CUTSNS_PIN = 0 [19:37:52]*** Brake cut motor [19:37:53]Read from MH i2c: 01 [19:37:53]MH_I2C_Read... [19:37:53]*** Stop cut motor [19:37:53]*** Cut end [19:37:53]Read from MH i2c: 01 07 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: 01 07 00 AE 13 00 00 00 00 00 FF 0F D6 [19:37:53]process_action close_receipt done [19:37:53]requested_data is exist [19:37:53]produce_requested_data [19:37:53]requested_item fm.sn is exist - process it [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 11 00 00 [19:37:53]Write to MH i2c: E2 08 00 AF 13 80 11 00 00 00 00 00 00 3C [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 17 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 17 00 AF 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8A [19:37:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:37:53]wFMCommunicate OK [19:37:53]requested_item fd.num is exist - process it [19:37:53]SAM_PROTO_GetFieldsCounters [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 13 00 00 [19:37:53]Write to MH i2c: E2 08 00 B0 13 80 13 00 00 00 00 00 00 3F [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 62 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 62 00 B0 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EF 01 00 00 5E 04 04 00 EF 01 00 00 57 04 04 00 F0 01 00 00 19 04 04 00 00 00 00 00 90 00 F8 [19:37:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 32 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 EF 01 00 00 5E 04 04 00 EF 01 00 00 57 04 04 00 F0 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:37:53]wFMCommunicate OK [19:37:53]SAM_PROTO_GetFieldsCounters done [19:37:53]requested_item shift.num is exist - process it [19:37:53]requested_item shift.opened is exist - process it [19:37:53]req_shift_opened [19:37:53]FM_GetShiftState [19:37:53]SAM_PROTO_GetShiftState [19:37:53]wFMCommunicate request_size=4 [19:37:53]MH_SAM_APDU [19:37:53]CAPDU: 80 13 01 00 [19:37:53]Write to MH i2c: E2 08 00 B1 13 80 13 01 00 00 00 00 00 41 [19:37:53]Write i2c OK [19:37:53]MH_I2C_Read... [19:37:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:37:53]Read from MH i2c: E2 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 0E 00 [19:37:53]MH_I2C_Read... [19:37:53]Read from MH i2c: E2 0E 00 B1 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 36 [19:37:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:37:53]wFMCommunicate OK [19:37:53]SAM_PROTO_GetShiftState done [19:37:53]FM_GetShiftState done [19:37:53]req_shift_opened done [19:37:53]requested_item shift.open_date is exist - process it [19:37:53]req_shift_open_date [19:37:53]req_shift_open_date done [19:37:53]produce_requested_data done [19:37:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188466,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:37:53]process_action_free close_receipt [19:37:53]json_value_free [19:37:53]json_value_free done [19:37:53]process_json_proto returns [19:37:53]Send response to host [19:37:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188466,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:37:53]free response buf [19:37:53]execute_script done [19:37:53]execute_script returns [19:37:53]free content buf [19:37:53]Sock 10.Close socket [19:37:53]Sock 10.Thread stoped [19:37:56]OFD Sender: No OFD packet to send [19:38:01]OFD Sender: No OFD packet to send [19:38:06]OFD Sender: No OFD packet to send [19:38:11]OFD Sender: No OFD packet to send [19:38:17]OFD Sender: No OFD packet to send [19:38:22]OFD Sender: No OFD packet to send [19:38:27]OFD Sender: No OFD packet to send [19:38:32]OFD Sender: No OFD packet to send [19:38:37]OFD Sender: No OFD packet to send [19:38:42]OFD Sender: No OFD packet to send [19:38:47]OFD Sender: No OFD packet to send [19:38:52]OFD Sender: No OFD packet to send [19:38:57]OFD Sender: No OFD packet to send [19:39:02]OFD Sender: No OFD packet to send [19:39:07]OFD Sender: No OFD packet to send [19:39:12]OFD Sender: No OFD packet to send [19:39:17]OFD Sender: No OFD packet to send [19:39:22]OFD Sender: No OFD packet to send [19:39:27]OFD Sender: No OFD packet to send [19:39:32]OFD Sender: No OFD packet to send [19:39:37]OFD Sender: No OFD packet to send [19:39:42]OFD Sender: No OFD packet to send [19:39:47]OFD Sender: No OFD packet to send [19:39:52]OFD Sender: No OFD packet to send [19:39:57]OFD Sender: No OFD packet to send [19:40:02]OFD Sender: No OFD packet to send [19:40:07]OFD Sender: No OFD packet to send [19:40:12]OFD Sender: No OFD packet to send [19:40:17]OFD Sender: No OFD packet to send [19:40:22]OFD Sender: No OFD packet to send [19:40:27]OFD Sender: No OFD packet to send [19:40:32]OFD Sender: No OFD packet to send [19:40:37]OFD Sender: No OFD packet to send [19:40:42]OFD Sender: No OFD packet to send [19:40:47]OFD Sender: No OFD packet to send [19:40:52]OFD Sender: No OFD packet to send [19:40:57]OFD Sender: No OFD packet to send [19:41:02]OFD Sender: No OFD packet to send [19:41:07]OFD Sender: No OFD packet to send [19:41:12]OFD Sender: No OFD packet to send [19:41:17]OFD Sender: No OFD packet to send [19:41:22]OFD Sender: No OFD packet to send [19:41:27]OFD Sender: No OFD packet to send [19:41:32]OFD Sender: No OFD packet to send [19:41:37]OFD Sender: No OFD packet to send [19:41:42]OFD Sender: No OFD packet to send [19:41:47]OFD Sender: No OFD packet to send [19:41:49]accept exits with 7 [19:41:49]New connection [19:41:49]New thread 3066613092 created [19:41:49]Thread 3066756452 joined [19:41:49]Waiting for new connection... [19:41:49] Sock 7.Parse request [19:41:49]Sock 7.Check first char [19:41:49]Sock 7.First char is OK [19:41:49]request: POST /json_proto HTTP/1.0 [19:41:49]Method: POST [19:41:49]URL: /json_proto [19:41:49]Method is POST - this is cgi request [19:41:49]url: /json_proto [19:41:49]query_string will be loaded in cgi processing [19:41:49]execute_cgi json_proto POST (null) [19:41:49]execute_cgi path=json_proto method=POST [19:41:49]POST find Content-Length [19:41:49]Host: 172.17.42.131:8080 [19:41:49]Content-Length: 677 [19:41:49]Content-Type: application/json [19:41:49] [19:41:49]POST finish read [19:41:49]Found Content-Length = 677 [19:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:49]execute_script... [19:41: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)210527", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:41:49]POST & json_proto [19:41:49]process_json_proto [19:41:49]json parsed OK: [19:41:49]protocol is kg_v1.0 [19:41:49]action value=close_receipt [19:41:49]process_action close_receipt [19:41:49]cmd_close_receipt [19:41:49]MH_GetDate [19:41:49]Write to MH i2c: F0 00 00 B2 13 B4 [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: F0 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: F0 09 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: F0 09 00 B2 13 00 FF FF 17 67 A0 18 CA 66 21 [19:41:49]GetLastDocTimeStamp 1729625870 [19:41:49]current date 1729626111 [19:41:49]FM_GetShiftState [19:41:49]SAM_PROTO_GetShiftState [19:41:49]wFMCommunicate request_size=4 [19:41:49]MH_SAM_APDU [19:41:49]CAPDU: 80 13 01 00 [19:41:49]Write to MH i2c: E2 08 00 B3 13 80 13 01 00 00 00 00 00 43 [19:41:49]Write i2c OK [19:41:49]MH_I2C_Read... [19:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:49]Read from MH i2c: E2 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 0E 00 [19:41:49]MH_I2C_Read... [19:41:49]Read from MH i2c: E2 0E 00 B3 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [19:41:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:41:49]wFMCommunicate OK [19:41:49]SAM_PROTO_GetShiftState done [19:41:49]FM_GetShiftState done [19:41:49]opened in 1729556094 [19:41:49]opened+sec_in_day 1729642494 [19:41:49]quantity*price = 50041 [19:41:49]sum+1 = 50042 [19:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 496 22.10.2024 19:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188467 ФПД: 63360202595559 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188467&fm=63360202595559&tin=02508201610067®Number=0000000000100030&sum=50000 [19:41:50]StoreToDocumentArchive [19:41:50]shift 461 fd 188467 [19:41:50]save to /storage/0461/doc_00188467 [19:41:50]save last doc name /storage/0461/doc_00188467 to /storage/kkm_last_doc_name [19:41:50]save OK [19:41:50]Clear old archive folders... [19:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:41:50]tlvbuf is 009841B0 [19:41:50]SAM_PROTO_ClearQueue [19:41:50]wFMCommunicate request_size=4 [19:41:50]MH_SAM_APDU [19:41:50]CAPDU: 80 09 00 00 [19:41:50]Write to MH i2c: E2 08 00 C0 13 80 09 00 00 00 00 00 00 45 [19:41:50]Write i2c OK [19:41:50]MH_I2C_Read... [19:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:41:50]Read from MH i2c: E2 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 C0 13 00 90 00 47 [19:41:50]RAPDU: 90 00 [19:41:50]wFMCommunicate OK [19:41:50]SAM_PROTO_ClearQueue done [19:41:50]KKMCreateOFDPacket [19:41:50]OFDProtocolAddRootSTLVToBuf [19:41:50]FM_MakeSignedData [19:41:50]FM_MakeSignedData [19:41:50]SAM_PROTO_SignData [19:41:50]wFMCommunicate request_size=4 [19:41:50]MH_SAM_APDU [19:41:50]CAPDU: 80 0D 01 02 [19:41:50]Write to MH i2c: E2 08 00 C1 13 80 0D 01 02 00 00 00 00 4D [19:41:50]Write i2c OK [19:41:50]MH_I2C_Read... [19:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:41:50]Read from MH i2c: E2 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 [19:41:50]MH_I2C_Read... [19:41:50]Read from MH i2c: E2 03 00 C1 13 00 90 00 48 [19:41:50]RAPDU: 90 00 [19:41:50]wFMCommunicate OK [19:41:50]wFMCommunicate request_size=255 [19:41:50]MH_SAM_APDU [19:41: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 FF FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E0 02 00 35 04 06 00 39 [19:41:50]Write to MH i2c: E2 02 01 C2 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 FF FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E0 02 00 35 04 06 00 39 00 00 49 [19:41:50]Write i2c OK [19:41:50]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 C2 13 00 90 00 49 [19:41:51]RAPDU: 90 00 [19:41:51]wFMCommunicate OK [19:41:51]wFMCommunicate request_size=10 [19:41:51]MH_SAM_APDU [19:41:51]CAPDU: 80 0D 02 02 05 A0 32 5E 5C E7 [19:41:51]Write to MH i2c: E2 0D 00 C3 13 80 0D 02 02 05 00 A0 32 5E 5C E7 00 00 CD [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 03 00 C3 13 00 90 00 4A [19:41:51]RAPDU: 90 00 [19:41:51]wFMCommunicate OK [19:41:51]wFMCommunicate request_size=4 [19:41:51]MH_SAM_APDU [19:41:51]CAPDU: 80 0D 03 02 [19:41:51]Write to MH i2c: E2 08 00 C4 13 80 0D 03 02 00 00 00 00 52 [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 0B 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 0B 00 C4 13 00 42 71 8E 57 E4 B0 1C 10 90 00 AB [19:41:51]RAPDU: 42 71 8E 57 E4 B0 1C 10 90 00 [19:41:51]wFMCommunicate OK [19:41:51]SAM_PROTO_SignData done [19:41:51]FM_MakeSignedData done [19:41:51]CreateOFDProtocolMessage [19:41:51]wFMCommunicate request_size=4 [19:41:51]MH_SAM_APDU [19:41:51]CAPDU: 80 11 00 00 [19:41:51]Write to MH i2c: E2 08 00 C5 13 80 11 00 00 00 00 00 00 52 [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:51]Read from MH i2c: E2 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 17 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: E2 17 00 C5 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A0 [19:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:41:51]wFMCommunicate OK [19:41:51]CreateOFDProtocolMessage done [19:41:51]OFDSenderStorePacket 188467 [19:41:51]StoreOFDPacket docnum=188467 [19:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 77 07 01 B9 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 FF FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E0 02 00 35 04 06 00 39 A0 32 5E 5C E7 42 71 8E 57 E4 B0 1C 10 [19:41:51]CheckFolder [19:41:51]dirname=/storage/ofd_packets [19:41:51]CheckFolder done [19:41:51]ProducePacketName [19:41:51]name=ofd_packets/00188467 [19:41:51]NVStorageSaveData ofd_packets/00188467 [19:41:51]File name is /storage/ofd_packets/00188467 [19:41:51]Write 301 bytes [19:41:51]NVStorageSaveData done [19:41:51]OFDSenderStorePacket done [19:41:51]KKMCreateOFDPacket done [19:41:51]NVStorageSaveData kkm_last_timestamp [19:41:51]File name is /storage/kkm_last_timestamp [19:41:51]Write 4 bytes [19:41:51]NVStorageSaveData done [19:41:51]ExternCall_PrintAddStr [19:41:51]wPrintStart [19:41:51]Write to MH i2c: 01 00 00 C6 13 D9 [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 07 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 07 00 C6 13 00 00 00 00 00 FF 0F EE [19:41:51]RasterBufferAndPrint [19:41:51]line Счет N : (1)210527 [19:41:51]line ИНН: 02508201610067 [19:41:51]line Контрольно-Кассовый Чек [19:41:51]line ПРОДАЖА [19:41:51]line ТРК (МРК, ГНК) : 42 [19:41:51]line Товар: 2710124130 [19:41:51]line Аи-92-К-3 [19:41:51]line 7.480 * 66.90 [19:41:51]line = 500.41 [19:41:51]line НДС 12% НСП 1% [19:41:51]line > о реализуемом товаре [19:41:51]line ОКРУГЛЕНИЕ: -0.41 [19:41:51]line ИТОГО: 500.00 [19:41:51]line Внесено: 500.00 [19:41:51]line СДАЧА: 0.00 [19:41:51]line НСП 1% : 4.43 [19:41:51]line НДС 12% : 53.14 [19:41:51]line Наличными: 500.00 [19:41:51]line Безнал.: 0.00 [19:41:51]line Место: АЗС № 86 "Партнер Нефть" [19:41:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:41:51]line СНО: Общий режим [19:41:51]line Чек 496 22.10.2024 19:41 [19:41:51]line Смена: 461 ФФД: 1.0 [19:41:51]line ЗНМ: 0300000155 [19:41:51]line РНМ: 0000000000100030 [19:41:51]line Версия ККМ: 001 [19:41:51]line ФМ: 0000000000965340 [19:41:51]line ФД: 188467 [19:41:51]line ФПД: 63360202595559 [19:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194151&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188467&fm=63360202595559&tin=02508201610067®Number=0000000000100030&sum=50000 [19:41:51]written 0, free lines is 4095 [19:41:51]OFD Sender: Processing packet 188467 [packets to send 1062, broken 1061] [19:41:51]ProducePacketName [19:41:51]name=ofd_packets/00188467 [19:41:51]OFD Sender: To server: pG, [19:41:51]CommunicateWithHost lk.salyk.kg:30040 [19:41:51]ConnectInit lk.salyk.kg [19:41:51]Connected sock=10 [19:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BF 77 07 01 B9 F9 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F0 01 00 00 F4 03 04 00 FF FF 17 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E0 02 00 35 04 06 00 39 A0 32 5E 5C E7 42 71 8E 57 E4 B0 1C 10 [19:41:51]Write to MH i2c: 01 00 00 F1 13 04 [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 07 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: 01 07 00 F1 13 00 00 00 00 00 5A 0C 71 [19:41:51]RasterBufferAndPrint [19:41:51]line [19:41:51]line [19:41:51]line [19:41:51]line [19:41:51]line [19:41:51]written 0, free lines is 3167 [19:41:51]MH_Cut [19:41:51]Write to MH i2c: D1 01 00 F8 13 01 DD [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: D1 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: D1 01 00 [19:41:51]MH_I2C_Read... [19:41:51]Read from MH i2c: D1 01 00 F8 13 00 DC [19:41:51]Write to MH i2c: 01 00 00 F9 13 0C [19:41:51]Write i2c OK [19:41:51]MH_I2C_Read... [19:41:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 50 32 47 00 26 A5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 33 E0 02 00 F4 03 04 00 EB A9 17 67 B6 04 01 00 00 F8 38 DA 1C C0 00 2E 4C [19:41:52]CommunicateWithHost err = 0 [19:41:52]CheckOFDResponse [19:41:52]1017 (14) - 77093643461234 [19:41:52]1041 (16) - 0000000000965340 [19:41:52]1040 (4) - 188467 [19:41:52]1012 (4) - 22.10.2024 13:34 [19:41:52]1206 (1) - 0 [19:41:52]OFD Sender: Remove packet 188467 [19:41:52]ProducePacketName [19:41:52]name=ofd_packets/00188467 [19:41:52]NVStorageDeleteData [19:41:52]OFD Sender: No OFD packet to send [19:41:53]*** Cut start [19:41:53]*** Partial cut [19:41:53]*** CUTSNS_PIN = 1 [19:41:53]*** CUTSNS_PIN = 0 [19:41:53]*** Brake cut motor [19:41:53]Read from MH i2c: 01 [19:41:53]MH_I2C_Read... [19:41:53]*** Stop cut motor [19:41:53]*** Cut end [19:41:53]Read from MH i2c: 01 07 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: 01 07 00 F9 13 00 00 00 00 00 FF 0F 21 [19:41:53]process_action close_receipt done [19:41:53]requested_data is exist [19:41:53]produce_requested_data [19:41:53]requested_item fm.sn is exist - process it [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 11 00 00 [19:41:53]Write to MH i2c: E2 08 00 FA 13 80 11 00 00 00 00 00 00 87 [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:41:53]Read from MH i2c: E2 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 17 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 17 00 FA 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D5 [19:41:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:41:53]wFMCommunicate OK [19:41:53]requested_item fd.num is exist - process it [19:41:53]SAM_PROTO_GetFieldsCounters [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 13 00 00 [19:41:53]Write to MH i2c: E2 08 00 FB 13 80 13 00 00 00 00 00 00 8A [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:41:53]Read from MH i2c: E2 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 62 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 62 00 FB 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F0 01 00 00 5E 04 04 00 F0 01 00 00 57 04 04 00 F1 01 00 00 19 04 04 00 00 00 00 00 90 00 47 [19:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 33 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F0 01 00 00 5E 04 04 00 F0 01 00 00 57 04 04 00 F1 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:41:53]wFMCommunicate OK [19:41:53]SAM_PROTO_GetFieldsCounters done [19:41:53]requested_item shift.num is exist - process it [19:41:53]requested_item shift.opened is exist - process it [19:41:53]req_shift_opened [19:41:53]FM_GetShiftState [19:41:53]SAM_PROTO_GetShiftState [19:41:53]wFMCommunicate request_size=4 [19:41:53]MH_SAM_APDU [19:41:53]CAPDU: 80 13 01 00 [19:41:53]Write to MH i2c: E2 08 00 FC 13 80 13 01 00 00 00 00 00 8C [19:41:53]Write i2c OK [19:41:53]MH_I2C_Read... [19:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:41:53]Read from MH i2c: E2 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 0E 00 [19:41:53]MH_I2C_Read... [19:41:53]Read from MH i2c: E2 0E 00 FC 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 81 [19:41:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:41:53]wFMCommunicate OK [19:41:53]SAM_PROTO_GetShiftState done [19:41:53]FM_GetShiftState done [19:41:53]req_shift_opened done [19:41:53]requested_item shift.open_date is exist - process it [19:41:53]req_shift_open_date [19:41:53]req_shift_open_date done [19:41:53]produce_requested_data done [19:41:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188467,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:41:53]process_action_free close_receipt [19:41:53]json_value_free [19:41:53]json_value_free done [19:41:53]process_json_proto returns [19:41:53]Send response to host [19:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188467,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:41:53]free response buf [19:41:53]execute_script done [19:41:53]execute_script returns [19:41:53]free content buf [19:41:53]Sock 7.Close socket [19:41:53]Sock 7.Thread stoped [19:41:57]OFD Sender: No OFD packet to send [19:42:02]OFD Sender: No OFD packet to send [19:42:07]OFD Sender: No OFD packet to send [19:42:12]OFD Sender: No OFD packet to send [19:42:17]OFD Sender: No OFD packet to send [19:42:22]OFD Sender: No OFD packet to send [19:42:27]OFD Sender: No OFD packet to send [19:42:32]OFD Sender: No OFD packet to send [19:42:37]OFD Sender: No OFD packet to send [19:42:42]OFD Sender: No OFD packet to send [19:42:47]OFD Sender: No OFD packet to send [19:42:52]OFD Sender: No OFD packet to send [19:42:57]OFD Sender: No OFD packet to send [19:43:02]OFD Sender: No OFD packet to send [19:43:07]OFD Sender: No OFD packet to send [19:43:12]OFD Sender: No OFD packet to send [19:43:17]OFD Sender: No OFD packet to send [19:43:23]OFD Sender: No OFD packet to send [19:43:28]OFD Sender: No OFD packet to send [19:43:33]OFD Sender: No OFD packet to send [19:43:38]OFD Sender: No OFD packet to send [19:43:43]OFD Sender: No OFD packet to send [19:43:48]OFD Sender: No OFD packet to send [19:43:53]OFD Sender: No OFD packet to send [19:43:58]OFD Sender: No OFD packet to send [19:44:03]OFD Sender: No OFD packet to send [19:44:08]OFD Sender: No OFD packet to send [19:44:13]OFD Sender: No OFD packet to send [19:44:18]OFD Sender: No OFD packet to send [19:44:23]OFD Sender: No OFD packet to send [19:44:28]OFD Sender: No OFD packet to send [19:44:33]OFD Sender: No OFD packet to send [19:44:38]OFD Sender: No OFD packet to send [19:44:43]OFD Sender: No OFD packet to send [19:44:48]OFD Sender: No OFD packet to send [19:44:53]OFD Sender: No OFD packet to send [19:44:58]OFD Sender: No OFD packet to send [19:45:03]OFD Sender: No OFD packet to send [19:45:08]OFD Sender: No OFD packet to send [19:45:13]OFD Sender: No OFD packet to send [19:45:18]OFD Sender: No OFD packet to send [19:45:23]OFD Sender: No OFD packet to send [19:45:28]OFD Sender: No OFD packet to send [19:45:33]OFD Sender: No OFD packet to send [19:45:38]OFD Sender: No OFD packet to send [19:45:43]OFD Sender: No OFD packet to send [19:45:48]OFD Sender: No OFD packet to send [19:45:53]OFD Sender: No OFD packet to send [19:45:58]OFD Sender: No OFD packet to send [19:46:03]OFD Sender: No OFD packet to send [19:46:08]OFD Sender: No OFD packet to send [19:46:13]OFD Sender: No OFD packet to send [19:46:18]OFD Sender: No OFD packet to send [19:46:23]OFD Sender: No OFD packet to send [19:46:28]OFD Sender: No OFD packet to send [19:46:33]OFD Sender: No OFD packet to send [19:46:38]OFD Sender: No OFD packet to send [19:46:43]OFD Sender: No OFD packet to send [19:46:48]OFD Sender: No OFD packet to send [19:46:53]OFD Sender: No OFD packet to send [19:46:58]OFD Sender: No OFD packet to send [19:47:04]OFD Sender: No OFD packet to send [19:47:09]OFD Sender: No OFD packet to send [19:47:14]OFD Sender: No OFD packet to send [19:47:19]OFD Sender: No OFD packet to send [19:47:24]OFD Sender: No OFD packet to send [19:47:29]OFD Sender: No OFD packet to send [19:47:34]OFD Sender: No OFD packet to send [19:47:39]OFD Sender: No OFD packet to send [19:47:44]OFD Sender: No OFD packet to send [19:47:49]OFD Sender: No OFD packet to send [19:47:54]OFD Sender: No OFD packet to send [19:47:59]OFD Sender: No OFD packet to send [19:48:04]OFD Sender: No OFD packet to send [19:48:09]OFD Sender: No OFD packet to send [19:48:14]OFD Sender: No OFD packet to send [19:48:19]OFD Sender: No OFD packet to send [19:48:24]OFD Sender: No OFD packet to send [19:48:29]OFD Sender: No OFD packet to send [19:48:34]OFD Sender: No OFD packet to send [19:48:39]OFD Sender: No OFD packet to send [19:48:44]OFD Sender: No OFD packet to send [19:48:46]accept exits with 9 [19:48:46]New connection [19:48:46]New thread 3066756452 created [19:48:46]Thread 3066613092 joined [19:48:46]Waiting for new connection... [19:48:46] Sock 9.Parse request [19:48:46]Sock 9.Check first char [19:48:46]Sock 9.First char is OK [19:48:46]request: POST /json_proto HTTP/1.0 [19:48:46]Method: POST [19:48:46]URL: /json_proto [19:48:46]Method is POST - this is cgi request [19:48:46]url: /json_proto [19:48:46]query_string will be loaded in cgi processing [19:48:46]execute_cgi json_proto POST (null) [19:48:46]execute_cgi path=json_proto method=POST [19:48:46]POST find Content-Length [19:48:46]Host: 172.17.42.131:8080 [19:48:46]Content-Length: 841 [19:48:46]Content-Type: application/json [19:48:46] [19:48:46]POST finish read [19:48:46]Found Content-Length = 841 [19:48:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210528", "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" : 10.000, "sum" : 742.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 742.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:46]execute_script... [19:48:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210528", "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" : 10.000, "sum" : 742.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0410\u041A\u0411 \u041A\u044B\u0440\u0433\u044B\u0437\u0441\u0442\u0430\u043D", "payments": [ { "type": 1, "sum" : 742.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:46]POST & json_proto [19:48:46]process_json_proto [19:48:46]json parsed OK: [19:48:46]protocol is kg_v1.0 [19:48:46]action value=close_receipt [19:48:46]process_action close_receipt [19:48:46]cmd_close_receipt [19:48:46]MH_GetDate [19:48:46]Write to MH i2c: F0 00 00 FD 13 FF [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 09 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: F0 09 00 FD 13 00 9F 01 18 67 A0 18 CA 66 0F [19:48:46]GetLastDocTimeStamp 1729626111 [19:48:46]current date 1729626527 [19:48:46]FM_GetShiftState [19:48:46]SAM_PROTO_GetShiftState [19:48:46]wFMCommunicate request_size=4 [19:48:46]MH_SAM_APDU [19:48:46]CAPDU: 80 13 01 00 [19:48:46]Write to MH i2c: E2 08 00 FE 13 80 13 01 00 00 00 00 00 8E [19:48:46]Write i2c OK [19:48:46]MH_I2C_Read... [19:48:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:46]Read from MH i2c: E2 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: E2 0E 00 [19:48:46]MH_I2C_Read... [19:48:46]Read from MH i2c: E2 0E 00 FE 13 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [19:48:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:48:46]wFMCommunicate OK [19:48:46]SAM_PROTO_GetShiftState done [19:48:46]FM_GetShiftState done [19:48:46]opened in 1729556094 [19:48:46]opened+sec_in_day 1729642494 [19:48:46]quantity*price = 74200 [19:48:46]sum+1 = 74201 [19:48:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 742.00 НСП 1% : 6.57 НДС 12% : 78.80 Наличными: 0.00 Безнал.: 742.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 497 22.10.2024 19:48 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: АКБ Кыргызстан ФМ: 0000000000965340 ФД: 188468 ФПД: 20022692061065 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188468&fm=20022692061065&tin=02508201610067®Number=0000000000100030&sum=74200 [19:48:47]StoreToDocumentArchive [19:48:47]shift 461 fd 188468 [19:48:47]save to /storage/0461/doc_00188468 [19:48:47]save last doc name /storage/0461/doc_00188468 to /storage/kkm_last_doc_name [19:48:47]save OK [19:48:47]Clear old archive folders... [19:48:47]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:48:47]tlvbuf is 008FC7D0 [19:48:47]SAM_PROTO_ClearQueue [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 09 00 00 [19:48:47]Write to MH i2c: E2 08 00 0B 14 80 09 00 00 00 00 00 00 91 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 0B 14 00 90 00 93 [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]SAM_PROTO_ClearQueue done [19:48:47]KKMCreateOFDPacket [19:48:47]OFDProtocolAddRootSTLVToBuf [19:48:47]FM_MakeSignedData [19:48:47]FM_MakeSignedData [19:48:47]SAM_PROTO_SignData [19:48:47]wFMCommunicate request_size=4 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 01 02 [19:48:47]Write to MH i2c: E2 08 00 0C 14 80 0D 01 02 00 00 00 00 99 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 0C 14 00 90 00 94 [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]wFMCommunicate request_size=255 [19:48:47]MH_SAM_APDU [19:48: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 9F 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E0 02 00 35 04 06 00 12 [19:48:47]Write to MH i2c: E2 02 01 0D 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 9F 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E0 02 00 35 04 06 00 12 00 00 48 [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:47]Read from MH i2c: E2 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 [19:48:47]MH_I2C_Read... [19:48:47]Read from MH i2c: E2 03 00 0D 14 00 90 00 95 [19:48:47]RAPDU: 90 00 [19:48:47]wFMCommunicate OK [19:48:47]wFMCommunicate request_size=10 [19:48:47]MH_SAM_APDU [19:48:47]CAPDU: 80 0D 02 02 05 35 E5 72 9F 89 [19:48:47]Write to MH i2c: E2 0D 00 0E 14 80 0D 02 02 05 00 35 E5 72 9F 89 00 00 5A [19:48:47]Write i2c OK [19:48:47]MH_I2C_Read... [19:48:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 03 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 03 00 0E 14 00 90 00 96 [19:48:48]RAPDU: 90 00 [19:48:48]wFMCommunicate OK [19:48:48]wFMCommunicate request_size=4 [19:48:48]MH_SAM_APDU [19:48:48]CAPDU: 80 0D 03 02 [19:48:48]Write to MH i2c: E2 08 00 0F 14 80 0D 03 02 00 00 00 00 9E [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 0B 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 0B 00 0F 14 00 5F 7E D7 BB 11 2A 6B F8 90 00 AC [19:48:48]RAPDU: 5F 7E D7 BB 11 2A 6B F8 90 00 [19:48:48]wFMCommunicate OK [19:48:48]SAM_PROTO_SignData done [19:48:48]FM_MakeSignedData done [19:48:48]CreateOFDProtocolMessage [19:48:48]wFMCommunicate request_size=4 [19:48:48]MH_SAM_APDU [19:48:48]CAPDU: 80 11 00 00 [19:48:48]Write to MH i2c: E2 08 00 10 14 80 11 00 00 00 00 00 00 9E [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:48]Read from MH i2c: E2 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 17 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: E2 17 00 10 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EC [19:48:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:48:48]wFMCommunicate OK [19:48:48]CreateOFDProtocolMessage done [19:48:48]OFDSenderStorePacket 188468 [19:48:48]StoreOFDPacket docnum=188468 [19:48:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE EA 07 01 71 9C 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 9F 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E0 02 00 35 04 06 00 12 35 E5 72 9F 89 5F 7E D7 BB 11 2A 6B F8 [19:48:48]CheckFolder [19:48:48]dirname=/storage/ofd_packets [19:48:48]CheckFolder done [19:48:48]ProducePacketName [19:48:48]name=ofd_packets/00188468 [19:48:48]NVStorageSaveData ofd_packets/00188468 [19:48:48]File name is /storage/ofd_packets/00188468 [19:48:48]Write 301 bytes [19:48:48]NVStorageSaveData done [19:48:48]OFDSenderStorePacket done [19:48:48]KKMCreateOFDPacket done [19:48:48]NVStorageSaveData kkm_last_timestamp [19:48:48]File name is /storage/kkm_last_timestamp [19:48:48]Write 4 bytes [19:48:48]NVStorageSaveData done [19:48:48]ExternCall_PrintAddStr [19:48:48]wPrintStart [19:48:48]Write to MH i2c: 01 00 00 11 14 25 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 11 14 00 00 00 00 00 FF 0F 3A [19:48:48]RasterBufferAndPrint [19:48:48]line Счет N : (1)210528 [19:48:48]line ИНН: 02508201610067 [19:48:48]line Контрольно-Кассовый Чек [19:48:48]line ПРОДАЖА [19:48:48]line ТРК (МРК, ГНК) : 43 [19:48:48]line Товар: 2710124500 [19:48:48]line Аи-95-К-3 [19:48:48]line 10.000 * 74.20 [19:48:48]line = 742.00 [19:48:48]line НДС 12% НСП 1% [19:48:48]line > о реализуемом товаре [19:48:48]line ИТОГО: 742.00 [19:48:48]line НСП 1% : 6.57 [19:48:48]line НДС 12% : 78.80 [19:48:48]line Наличными: 0.00 [19:48:48]line Безнал.: 742.00 [19:48:48]line Место: АЗС № 86 "Партнер Нефть" [19:48:48]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:48:48]line СНО: Общий режим [19:48:48]line Чек 497 22.10.2024 19:48 [19:48:48]line Смена: 461 ФФД: 1.0 [19:48:48]line ЗНМ: 0300000155 [19:48:48]line РНМ: 0000000000100030 [19:48:48]line Версия ККМ: 001 [19:48:48]line Платежная система: АКБ Кыргызстан [19:48:48]line ФМ: 0000000000965340 [19:48:48]line ФД: 188468 [19:48:48]line ФПД: 20022692061065 [19:48:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194847&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188468&fm=20022692061065&tin=02508201610067®Number=0000000000100030&sum=74200 [19:48:48]OFD Sender: Processing packet 188468 [packets to send 1062, broken 1061] [19:48:48]ProducePacketName [19:48:48]name=ofd_packets/00188468 [19:48:48]OFD Sender: To server: pG, [19:48:48]CommunicateWithHost lk.salyk.kg:30040 [19:48:48]ConnectInit lk.salyk.kg [19:48:48]written 0, free lines is 4095 [19:48:48]Connected sock=10 [19:48:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DE EA 07 01 71 9C 5A 03 01 00 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 10 27 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 D8 21 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 21 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C8 1E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D8 21 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F1 01 00 00 F4 03 04 00 9F 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 34 E0 02 00 35 04 06 00 12 35 E5 72 9F 89 5F 7E D7 BB 11 2A 6B F8 [19:48:48]Write to MH i2c: 01 00 00 3B 14 4F [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: 01 07 00 3B 14 00 00 00 00 00 86 0C E8 [19:48:48]RasterBufferAndPrint [19:48:48]line [19:48:48]line [19:48:48]line [19:48:48]line [19:48:48]line [19:48:48]written 0, free lines is 3208 [19:48:48]MH_Cut [19:48:48]Write to MH i2c: D1 01 00 42 14 01 28 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: D1 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: D1 01 00 [19:48:48]MH_I2C_Read... [19:48:48]Read from MH i2c: D1 01 00 42 14 00 27 [19:48:48]Write to MH i2c: 01 00 00 43 14 57 [19:48:48]Write i2c OK [19:48:48]MH_I2C_Read... [19:48:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C1 81 47 00 46 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 39 36 35 33 34 30 10 04 04 00 34 E0 02 00 F4 03 04 00 8C AB 17 67 B6 04 01 00 00 C9 24 AB 72 F5 C2 31 41 [19:48:49]CommunicateWithHost err = 0 [19:48:49]CheckOFDResponse [19:48:49]1017 (14) - 77093643461234 [19:48:49]1041 (16) - 0000000000965340 [19:48:49]1040 (4) - 188468 [19:48:49]1012 (4) - 22.10.2024 13:41 [19:48:49]1206 (1) - 0 [19:48:49]OFD Sender: Remove packet 188468 [19:48:49]ProducePacketName [19:48:49]name=ofd_packets/00188468 [19:48:49]NVStorageDeleteData [19:48:49]OFD Sender: No OFD packet to send [19:48:50]*** Cut start [19:48:50]*** Partial cut [19:48:50]*** CUTSNS_PIN = 1 [19:48:50]*** CUTSNS_PIN = 0 [19:48:50]*** Brake cut motor [19:48:50]Read from MH i2c: 01 [19:48:50]MH_I2C_Read... [19:48:50]*** Stop cut motor [19:48:50]*** Cut end [19:48:50]Read from MH i2c: 01 07 00 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: 01 07 00 43 14 00 00 00 00 00 FF 0F 6C [19:48:50]process_action close_receipt done [19:48:50]requested_data is exist [19:48:50]produce_requested_data [19:48:50]requested_item fm.sn is exist - process it [19:48:50]wFMCommunicate request_size=4 [19:48:50]MH_SAM_APDU [19:48:50]CAPDU: 80 11 00 00 [19:48:50]Write to MH i2c: E2 08 00 44 14 80 11 00 00 00 00 00 00 D2 [19:48:50]Write i2c OK [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: E2 [19:48:50]MH_I2C_Read... [19:48:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:50]Read from MH i2c: E2 17 00 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: E2 17 00 44 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 20 [19:48:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:48:50]wFMCommunicate OK [19:48:50]requested_item fd.num is exist - process it [19:48:50]SAM_PROTO_GetFieldsCounters [19:48:50]wFMCommunicate request_size=4 [19:48:50]MH_SAM_APDU [19:48:50]CAPDU: 80 13 00 00 [19:48:50]Write to MH i2c: E2 08 00 45 14 80 13 00 00 00 00 00 00 D5 [19:48:50]Write i2c OK [19:48:50]MH_I2C_Read... [19:48:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:48:50]Read from MH i2c: E2 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: E2 62 00 [19:48:50]MH_I2C_Read... [19:48:50]Read from MH i2c: E2 62 00 45 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F1 01 00 00 5E 04 04 00 F1 01 00 00 57 04 04 00 F2 01 00 00 19 04 04 00 00 00 00 00 90 00 96 [19:48:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 34 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F1 01 00 00 5E 04 04 00 F1 01 00 00 57 04 04 00 F2 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:48:50]wFMCommunicate OK [19:48:50]SAM_PROTO_GetFieldsCounters done [19:48:50]requested_item shift.num is exist - process it [19:48:50]requested_item shift.opened is exist - process it [19:48:50]req_shift_opened [19:48:50]FM_GetShiftState [19:48:50]SAM_PROTO_GetShiftState [19:48:50]wFMCommunicate request_size=4 [19:48:50]MH_SAM_APDU [19:48:50]CAPDU: 80 13 01 00 [19:48:50]Write to MH i2c: E2 08 00 46 14 80 13 01 00 00 00 00 00 D7 [19:48:50]Write i2c OK [19:48:50]MH_I2C_Read... [19:48:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:51]Read from MH i2c: E2 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 0E 00 [19:48:51]MH_I2C_Read... [19:48:51]Read from MH i2c: E2 0E 00 46 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CC [19:48:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:48:51]wFMCommunicate OK [19:48:51]SAM_PROTO_GetShiftState done [19:48:51]FM_GetShiftState done [19:48:51]req_shift_opened done [19:48:51]requested_item shift.open_date is exist - process it [19:48:51]req_shift_open_date [19:48:51]req_shift_open_date done [19:48:51]produce_requested_data done [19:48:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188468,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:48:51]process_action_free close_receipt [19:48:51]json_value_free [19:48:51]json_value_free done [19:48:51]process_json_proto returns [19:48:51]Send response to host [19:48:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188468,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:48:51]free response buf [19:48:51]execute_script done [19:48:51]execute_script returns [19:48:51]free content buf [19:48:51]Sock 9.Close socket [19:48:51]Sock 9.Thread stoped [19:48:54]OFD Sender: No OFD packet to send [19:48:56]accept exits with 7 [19:48:56]New connection [19:48:56]New thread 3066613092 created [19:48:56]Thread 3066756452 joined [19:48:56]Waiting for new connection... [19:48:56] Sock 7.Parse request [19:48:56]Sock 7.Check first char [19:48:56]Sock 7.First char is OK [19:48:56]request: POST /json_proto HTTP/1.0 [19:48:56]Method: POST [19:48:56]URL: /json_proto [19:48:56]Method is POST - this is cgi request [19:48:56]url: /json_proto [19:48:56]query_string will be loaded in cgi processing [19:48:56]execute_cgi json_proto POST (null) [19:48:56]execute_cgi path=json_proto method=POST [19:48:56]POST find Content-Length [19:48:56]Host: 172.17.42.131:8080 [19:48:56]Content-Length: 773 [19:48:56]Content-Type: application/json [19:48:56] [19:48:56]POST finish read [19:48:56]Found Content-Length = 773 [19:48:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:56]execute_script... [19:48: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)210529", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 800.56 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:48:56]POST & json_proto [19:48:56]process_json_proto [19:48:56]json parsed OK: [19:48:56]protocol is kg_v1.0 [19:48:56]action value=close_receipt [19:48:56]process_action close_receipt [19:48:56]cmd_close_receipt [19:48:56]MH_GetDate [19:48:56]Write to MH i2c: F0 00 00 47 14 4A [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: F0 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: F0 09 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: F0 09 00 47 14 00 AA 01 18 67 A0 18 CA 66 65 [19:48:56]GetLastDocTimeStamp 1729626527 [19:48:56]current date 1729626538 [19:48:56]FM_GetShiftState [19:48:56]SAM_PROTO_GetShiftState [19:48:56]wFMCommunicate request_size=4 [19:48:56]MH_SAM_APDU [19:48:56]CAPDU: 80 13 01 00 [19:48:56]Write to MH i2c: E2 08 00 48 14 80 13 01 00 00 00 00 00 D9 [19:48:56]Write i2c OK [19:48:56]MH_I2C_Read... [19:48:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:48:56]Read from MH i2c: E2 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 0E 00 [19:48:56]MH_I2C_Read... [19:48:56]Read from MH i2c: E2 0E 00 48 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [19:48:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:48:56]wFMCommunicate OK [19:48:56]SAM_PROTO_GetShiftState done [19:48:56]FM_GetShiftState done [19:48:56]opened in 1729556094 [19:48:56]opened+sec_in_day 1729642494 [19:48:56]quantity*price = 80056 [19:48:56]sum+1 = 80057 [19:48:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.56 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 0.00 Безнал.: 800.56 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 498 22.10.2024 19:48 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188469 ФПД: 138808143938941 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188469&fm=138808143938941&tin=02508201610067®Number=0000000000100030&sum=80056 [19:48:57]StoreToDocumentArchive [19:48:57]shift 461 fd 188469 [19:48:57]save to /storage/0461/doc_00188469 [19:48:57]save last doc name /storage/0461/doc_00188469 to /storage/kkm_last_doc_name [19:48:57]save OK [19:48:57]Clear old archive folders... [19:48:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [19:48:57]tlvbuf is 00955D70 [19:48:57]SAM_PROTO_ClearQueue [19:48:57]wFMCommunicate request_size=4 [19:48:57]MH_SAM_APDU [19:48:57]CAPDU: 80 09 00 00 [19:48:57]Write to MH i2c: E2 08 00 55 14 80 09 00 00 00 00 00 00 DB [19:48:57]Write i2c OK [19:48:57]MH_I2C_Read... [19:48:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 55 14 00 90 00 DD [19:48:58]RAPDU: 90 00 [19:48:58]wFMCommunicate OK [19:48:58]SAM_PROTO_ClearQueue done [19:48:58]KKMCreateOFDPacket [19:48:58]OFDProtocolAddRootSTLVToBuf [19:48:58]FM_MakeSignedData [19:48:58]FM_MakeSignedData [19:48:58]SAM_PROTO_SignData [19:48:58]wFMCommunicate request_size=4 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 0D 01 02 [19:48:58]Write to MH i2c: E2 08 00 56 14 80 0D 01 02 00 00 00 00 E3 [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 56 14 00 90 00 DE [19:48:58]RAPDU: 90 00 [19:48:58]wFMCommunicate OK [19:48:58]wFMCommunicate request_size=255 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 AA 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E0 02 [19:48:58]Write to MH i2c: E2 02 01 57 14 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 AA 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E0 02 00 00 3F [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 57 14 00 90 00 DF [19:48:58]RAPDU: 90 00 [19:48:58]wFMCommunicate OK [19:48:58]wFMCommunicate request_size=16 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 7E 3E CA 1C 85 7D [19:48:58]Write to MH i2c: E2 13 00 58 14 80 0D 02 02 0B 00 00 35 04 06 00 7E 3E CA 1C 85 7D 00 00 DF [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 03 00 58 14 00 90 00 E0 [19:48:58]RAPDU: 90 00 [19:48:58]wFMCommunicate OK [19:48:58]wFMCommunicate request_size=4 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 0D 03 02 [19:48:58]Write to MH i2c: E2 08 00 59 14 80 0D 03 02 00 00 00 00 E8 [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 0B 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 0B 00 59 14 00 B3 72 27 5F CF 41 EF FC 90 00 8F [19:48:58]RAPDU: B3 72 27 5F CF 41 EF FC 90 00 [19:48:58]wFMCommunicate OK [19:48:58]SAM_PROTO_SignData done [19:48:58]FM_MakeSignedData done [19:48:58]CreateOFDProtocolMessage [19:48:58]wFMCommunicate request_size=4 [19:48:58]MH_SAM_APDU [19:48:58]CAPDU: 80 11 00 00 [19:48:58]Write to MH i2c: E2 08 00 5A 14 80 11 00 00 00 00 00 00 E8 [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:48:58]Read from MH i2c: E2 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 17 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: E2 17 00 5A 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 36 [19:48:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:48:58]wFMCommunicate OK [19:48:58]CreateOFDProtocolMessage done [19:48:58]OFDSenderStorePacket 188469 [19:48:58]StoreOFDPacket docnum=188469 [19:48:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 69 36 0D 01 31 71 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 AA 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E0 02 00 35 04 06 00 7E 3E CA 1C 85 7D B3 72 27 5F CF 41 EF FC [19:48:58]CheckFolder [19:48:58]dirname=/storage/ofd_packets [19:48:58]CheckFolder done [19:48:58]ProducePacketName [19:48:58]name=ofd_packets/00188469 [19:48:58]NVStorageSaveData ofd_packets/00188469 [19:48:58]File name is /storage/ofd_packets/00188469 [19:48:58]Write 307 bytes [19:48:58]NVStorageSaveData done [19:48:58]OFDSenderStorePacket done [19:48:58]KKMCreateOFDPacket done [19:48:58]NVStorageSaveData kkm_last_timestamp [19:48:58]File name is /storage/kkm_last_timestamp [19:48:58]Write 4 bytes [19:48:58]NVStorageSaveData done [19:48:58]ExternCall_PrintAddStr [19:48:58]wPrintStart [19:48:58]Write to MH i2c: 01 00 00 5B 14 6F [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 5B 14 00 00 00 00 00 FF 0F 84 [19:48:58]RasterBufferAndPrint [19:48:58]line Счет N : (1)210529 [19:48:58]line ИНН: 02508201610067 [19:48:58]line Контрольно-Кассовый Чек [19:48:58]line ПРОДАЖА [19:48:58]line ТРК (МРК, ГНК) : 31 [19:48:58]line Товар: 2710194210 [19:48:58]line D-ENERGY ДТ-К-5 [19:48:58]line 10.370 * 77.20 [19:48:58]line = 800.56 [19:48:58]line НДС 12% НСП 1% [19:48:58]line > о реализуемом товаре [19:48:58]line ИТОГО: 800.56 [19:48:58]line НСП 1% : 7.08 [19:48:58]line НДС 12% : 85.01 [19:48:58]line Наличными: 0.00 [19:48:58]line Безнал.: 800.56 [19:48:58]line Место: АЗС № 86 "Партнер Нефть" [19:48:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:48:58]line СНО: Общий режим [19:48:58]line Чек 498 22.10.2024 19:48 [19:48:58]line Смена: 461 ФФД: 1.0 [19:48:58]line ЗНМ: 0300000155 [19:48:58]line РНМ: 0000000000100030 [19:48:58]line Версия ККМ: 001 [19:48:58]line Платежная система: Mbank [19:48:58]line ФМ: 0000000000965340 [19:48:58]line ФД: 188469 [19:48:58]line ФПД: 138808143938941 [19:48:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194858&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188469&fm=138808143938941&tin=02508201610067®Number=0000000000100030&sum=80056 [19:48:58]written 0, free lines is 4095 [19:48:58]OFD Sender: Processing packet 188469 [packets to send 1062, broken 1061] [19:48:58]ProducePacketName [19:48:58]name=ofd_packets/00188469 [19:48:58]OFD Sender: To server: pG, [19:48:58]CommunicateWithHost lk.salyk.kg:30040 [19:48:58]ConnectInit lk.salyk.kg [19:48:58]Write to MH i2c: 01 00 00 84 14 98 [19:48:58]Write i2c OK [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 [19:48:58]MH_I2C_Read... [19:48:58]Read from MH i2c: 01 07 00 84 14 00 00 00 00 00 96 0C 41 [19:48:58]RasterBufferAndPrint [19:48:58]line [19:48:58]line [19:48:58]line [19:48:58]line [19:48:58]line [19:48:58]written 0, free lines is 3226 [19:48:59]MH_Cut [19:48:59]Write to MH i2c: D1 01 00 8B 14 01 71 [19:48:59]Write i2c OK [19:48:59]MH_I2C_Read... [19:48:59]Read from MH i2c: D1 [19:48:59]MH_I2C_Read... [19:48:59]Read from MH i2c: D1 01 00 [19:48:59]MH_I2C_Read... [19:48:59]Read from MH i2c: D1 01 00 8B 14 00 70 [19:48:59]Write to MH i2c: 01 00 00 8C 14 A0 [19:48:59]Write i2c OK [19:48:59]MH_I2C_Read... [19:48:59]Connected sock=11 [19:48:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 69 36 0D 01 31 71 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B8 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B8 38 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F2 01 00 00 F4 03 04 00 AA 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E0 02 00 35 04 06 00 7E 3E CA 1C 85 7D B3 72 27 5F CF 41 EF FC [19:48:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5B 27 47 00 E2 98 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 35 E0 02 00 F4 03 04 00 96 AB 17 67 B6 04 01 00 00 5F 27 DE C3 07 42 89 D8 [19:48:59]CommunicateWithHost err = 0 [19:48:59]CheckOFDResponse [19:48:59]1017 (14) - 77093643461234 [19:48:59]1041 (16) - 0000000000965340 [19:48:59]1040 (4) - 188469 [19:48:59]1012 (4) - 22.10.2024 13:41 [19:48:59]1206 (1) - 0 [19:48:59]OFD Sender: Remove packet 188469 [19:48:59]ProducePacketName [19:48:59]name=ofd_packets/00188469 [19:48:59]NVStorageDeleteData [19:48:59]OFD Sender: No OFD packet to send [19:49:00]*** Cut start [19:49:00]*** Partial cut [19:49:00]*** CUTSNS_PIN = 1 [19:49:00]*** CUTSNS_PIN = 0 [19:49:00]*** Brake cut motor [19:49:00]Read from MH i2c: 01 [19:49:00]MH_I2C_Read... [19:49:00]*** Stop cut motor [19:49:00]*** Cut end [19:49:00]Read from MH i2c: 01 07 00 [19:49:00]MH_I2C_Read... [19:49:00]Read from MH i2c: 01 07 00 8C 14 00 00 00 00 00 FF 0F B5 [19:49:00]process_action close_receipt done [19:49:00]requested_data is exist [19:49:00]produce_requested_data [19:49:00]requested_item fm.sn is exist - process it [19:49:00]wFMCommunicate request_size=4 [19:49:00]MH_SAM_APDU [19:49:00]CAPDU: 80 11 00 00 [19:49:00]Write to MH i2c: E2 08 00 8D 14 80 11 00 00 00 00 00 00 1B [19:49:00]Write i2c OK [19:49:00]MH_I2C_Read... [19:49:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:00]Read from MH i2c: E2 [19:49:00]MH_I2C_Read... [19:49:00]Read from MH i2c: E2 17 00 [19:49:00]MH_I2C_Read... [19:49:00]Read from MH i2c: E2 17 00 8D 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [19:49:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:49:00]wFMCommunicate OK [19:49:00]requested_item fd.num is exist - process it [19:49:00]SAM_PROTO_GetFieldsCounters [19:49:00]wFMCommunicate request_size=4 [19:49:00]MH_SAM_APDU [19:49:00]CAPDU: 80 13 00 00 [19:49:00]Write to MH i2c: E2 08 00 8E 14 80 13 00 00 00 00 00 00 1E [19:49:00]Write i2c OK [19:49:00]MH_I2C_Read... [19:49:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:00]Read from MH i2c: E2 [19:49:00]MH_I2C_Read... [19:49:00]Read from MH i2c: E2 62 00 [19:49:00]MH_I2C_Read... [19:49:00]Read from MH i2c: E2 62 00 8E 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F2 01 00 00 5E 04 04 00 F2 01 00 00 57 04 04 00 F3 01 00 00 19 04 04 00 00 00 00 00 90 00 E3 [19:49:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 35 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F2 01 00 00 5E 04 04 00 F2 01 00 00 57 04 04 00 F3 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:01]wFMCommunicate OK [19:49:01]SAM_PROTO_GetFieldsCounters done [19:49:01]requested_item shift.num is exist - process it [19:49:01]requested_item shift.opened is exist - process it [19:49:01]req_shift_opened [19:49:01]FM_GetShiftState [19:49:01]SAM_PROTO_GetShiftState [19:49:01]wFMCommunicate request_size=4 [19:49:01]MH_SAM_APDU [19:49:01]CAPDU: 80 13 01 00 [19:49:01]Write to MH i2c: E2 08 00 8F 14 80 13 01 00 00 00 00 00 20 [19:49:01]Write i2c OK [19:49:01]MH_I2C_Read... [19:49:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:01]Read from MH i2c: E2 [19:49:01]MH_I2C_Read... [19:49:01]Read from MH i2c: E2 0E 00 [19:49:01]MH_I2C_Read... [19:49:01]Read from MH i2c: E2 0E 00 8F 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 15 [19:49:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:49:01]wFMCommunicate OK [19:49:01]SAM_PROTO_GetShiftState done [19:49:01]FM_GetShiftState done [19:49:01]req_shift_opened done [19:49:01]requested_item shift.open_date is exist - process it [19:49:01]req_shift_open_date [19:49:01]req_shift_open_date done [19:49:01]produce_requested_data done [19:49:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188469,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:49:01]process_action_free close_receipt [19:49:01]json_value_free [19:49:01]json_value_free done [19:49:01]process_json_proto returns [19:49:01]Send response to host [19:49:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188469,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:49:01]free response buf [19:49:01]execute_script done [19:49:01]execute_script returns [19:49:01]free content buf [19:49:01]Sock 7.Close socket [19:49:01]Sock 7.Thread stoped [19:49:04]OFD Sender: No OFD packet to send [19:49:10]OFD Sender: No OFD packet to send [19:49:15]OFD Sender: No OFD packet to send [19:49:20]OFD Sender: No OFD packet to send [19:49:25]OFD Sender: No OFD packet to send [19:49:30]OFD Sender: No OFD packet to send [19:49:35]OFD Sender: No OFD packet to send [19:49:39]accept exits with 9 [19:49:39]New connection [19:49:39]New thread 3066756452 created [19:49:39]Thread 3066613092 joined [19:49:39]Waiting for new connection... [19:49:39] Sock 9.Parse request [19:49:39]Sock 9.Check first char [19:49:39]Sock 9.First char is OK [19:49:39]request: POST /json_proto HTTP/1.0 [19:49:39]Method: POST [19:49:39]URL: /json_proto [19:49:39]Method is POST - this is cgi request [19:49:39]url: /json_proto [19:49:39]query_string will be loaded in cgi processing [19:49:39]execute_cgi json_proto POST (null) [19:49:39]execute_cgi path=json_proto method=POST [19:49:39]POST find Content-Length [19:49:39]Host: 172.17.42.131:8080 [19:49:39]Content-Length: 766 [19:49:39]Content-Type: application/json [19:49:39] [19:49:39]POST finish read [19:49:39]Found Content-Length = 766 [19:49:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:39]execute_script... [19:49: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)210530", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:49:39]POST & json_proto [19:49:39]process_json_proto [19:49:39]json parsed OK: [19:49:39]protocol is kg_v1.0 [19:49:39]action value=close_receipt [19:49:39]process_action close_receipt [19:49:39]cmd_close_receipt [19:49:39]MH_GetDate [19:49:39]Write to MH i2c: F0 00 00 90 14 93 [19:49:39]Write i2c OK [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: F0 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: F0 09 00 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: F0 09 00 90 14 00 D5 01 18 67 A0 18 CA 66 D9 [19:49:39]GetLastDocTimeStamp 1729626538 [19:49:39]current date 1729626581 [19:49:39]FM_GetShiftState [19:49:39]SAM_PROTO_GetShiftState [19:49:39]wFMCommunicate request_size=4 [19:49:39]MH_SAM_APDU [19:49:39]CAPDU: 80 13 01 00 [19:49:39]Write to MH i2c: E2 08 00 91 14 80 13 01 00 00 00 00 00 22 [19:49:39]Write i2c OK [19:49:39]MH_I2C_Read... [19:49:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:39]Read from MH i2c: E2 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 0E 00 [19:49:39]MH_I2C_Read... [19:49:39]Read from MH i2c: E2 0E 00 91 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 17 [19:49:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:49:39]wFMCommunicate OK [19:49:39]SAM_PROTO_GetShiftState done [19:49:39]FM_GetShiftState done [19:49:39]opened in 1729556094 [19:49:39]opened+sec_in_day 1729642494 [19:49:39]quantity*price = 40006 [19:49:39]sum+1 = 40007 [19:49:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 499 22.10.2024 19:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188470 ФПД: 198783300434111 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188470&fm=198783300434111&tin=02508201610067®Number=0000000000100030&sum=40006 [19:49:40]StoreToDocumentArchive [19:49:40]shift 461 fd 188470 [19:49:40]save to /storage/0461/doc_00188470 [19:49:40]save last doc name /storage/0461/doc_00188470 to /storage/kkm_last_doc_name [19:49:40]save OK [19:49:40]Clear old archive folders... [19:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:49:41]tlvbuf is 008FC9F0 [19:49:41]SAM_PROTO_ClearQueue [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 09 00 00 [19:49:41]Write to MH i2c: E2 08 00 9E 14 80 09 00 00 00 00 00 00 24 [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 9E 14 00 90 00 26 [19:49:41]RAPDU: 90 00 [19:49:41]wFMCommunicate OK [19:49:41]SAM_PROTO_ClearQueue done [19:49:41]KKMCreateOFDPacket [19:49:41]OFDProtocolAddRootSTLVToBuf [19:49:41]FM_MakeSignedData [19:49:41]FM_MakeSignedData [19:49:41]SAM_PROTO_SignData [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 0D 01 02 [19:49:41]Write to MH i2c: E2 08 00 9F 14 80 0D 01 02 00 00 00 00 2C [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 9F 14 00 90 00 27 [19:49:41]RAPDU: 90 00 [19:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=255 [19:49:41]MH_SAM_APDU [19:49: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 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 D5 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E0 02 00 35 04 06 00 B4 [19:49:41]Write to MH i2c: E2 02 01 A0 14 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 D5 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E0 02 00 35 04 06 00 B4 00 00 5D [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 A0 14 00 90 00 28 [19:49:41]RAPDU: 90 00 [19:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=10 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 0D 02 02 05 CA D8 02 78 BF [19:49:41]Write to MH i2c: E2 0D 00 A1 14 80 0D 02 02 05 00 CA D8 02 78 BF 00 00 14 [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 03 00 A1 14 00 90 00 29 [19:49:41]RAPDU: 90 00 [19:49:41]wFMCommunicate OK [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 0D 03 02 [19:49:41]Write to MH i2c: E2 08 00 A2 14 80 0D 03 02 00 00 00 00 31 [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 0B 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 0B 00 A2 14 00 2D 61 28 97 6C 4F 3F A2 90 00 1B [19:49:41]RAPDU: 2D 61 28 97 6C 4F 3F A2 90 00 [19:49:41]wFMCommunicate OK [19:49:41]SAM_PROTO_SignData done [19:49:41]FM_MakeSignedData done [19:49:41]CreateOFDProtocolMessage [19:49:41]wFMCommunicate request_size=4 [19:49:41]MH_SAM_APDU [19:49:41]CAPDU: 80 11 00 00 [19:49:41]Write to MH i2c: E2 08 00 A3 14 80 11 00 00 00 00 00 00 31 [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:41]Read from MH i2c: E2 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 17 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: E2 17 00 A3 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [19:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:49:41]wFMCommunicate OK [19:49:41]CreateOFDProtocolMessage done [19:49:41]OFDSenderStorePacket 188470 [19:49:41]StoreOFDPacket docnum=188470 [19:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1F 84 07 01 9B 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 D5 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E0 02 00 35 04 06 00 B4 CA D8 02 78 BF 2D 61 28 97 6C 4F 3F A2 [19:49:41]CheckFolder [19:49:41]dirname=/storage/ofd_packets [19:49:41]CheckFolder done [19:49:41]ProducePacketName [19:49:41]name=ofd_packets/00188470 [19:49:41]NVStorageSaveData ofd_packets/00188470 [19:49:41]File name is /storage/ofd_packets/00188470 [19:49:41]Write 301 bytes [19:49:41]NVStorageSaveData done [19:49:41]OFDSenderStorePacket done [19:49:41]KKMCreateOFDPacket done [19:49:41]NVStorageSaveData kkm_last_timestamp [19:49:41]File name is /storage/kkm_last_timestamp [19:49:41]Write 4 bytes [19:49:41]NVStorageSaveData done [19:49:41]ExternCall_PrintAddStr [19:49:41]wPrintStart [19:49:41]Write to MH i2c: 01 00 00 A4 14 B8 [19:49:41]Write i2c OK [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: 01 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: 01 07 00 [19:49:41]MH_I2C_Read... [19:49:41]Read from MH i2c: 01 07 00 A4 14 00 00 00 00 00 FF 0F CD [19:49:41]RasterBufferAndPrint [19:49:41]line Счет N : (1)210530 [19:49:41]line ИНН: 02508201610067 [19:49:41]line Контрольно-Кассовый Чек [19:49:41]line ПРОДАЖА [19:49:41]line ТРК (МРК, ГНК) : 22 [19:49:41]line Товар: 2710124130 [19:49:41]line Аи-92-К-3 [19:49:41]line 5.980 * 66.90 [19:49:41]line = 400.06 [19:49:41]line НДС 12% НСП 1% [19:49:41]line > о реализуемом товаре [19:49:41]line ИТОГО: 400.06 [19:49:41]line НСП 1% : 3.54 [19:49:41]line НДС 12% : 42.48 [19:49:41]line Наличными: 0.00 [19:49:41]line Безнал.: 400.06 [19:49:41]line Место: АЗС № 86 "Партнер Нефть" [19:49:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:49:41]line СНО: Общий режим [19:49:41]line Чек 499 22.10.2024 19:49 [19:49:41]line Смена: 461 ФФД: 1.0 [19:49:41]line ЗНМ: 0300000155 [19:49:41]line РНМ: 0000000000100030 [19:49:41]line Версия ККМ: 001 [19:49:41]line Платежная система: Mbank [19:49:41]line ФМ: 0000000000965340 [19:49:41]line ФД: 188470 [19:49:41]line ФПД: 198783300434111 [19:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T194941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188470&fm=198783300434111&tin=02508201610067®Number=0000000000100030&sum=40006 [19:49:41]written 0, free lines is 4095 [19:49:41]OFD Sender: Processing packet 188470 [packets to send 1062, broken 1061] [19:49:41]ProducePacketName [19:49:41]name=ofd_packets/00188470 [19:49:41]OFD Sender: To server: pG, [19:49:41]CommunicateWithHost lk.salyk.kg:30040 [19:49:41]ConnectInit lk.salyk.kg [19:49:41]Connected sock=10 [19:49:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1F 84 07 01 9B 04 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F3 01 00 00 F4 03 04 00 D5 01 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 36 E0 02 00 35 04 06 00 B4 CA D8 02 78 BF 2D 61 28 97 6C 4F 3F A2 [19:49:42]Write to MH i2c: 01 00 00 CD 14 E1 [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 07 00 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: 01 07 00 CD 14 00 00 00 00 00 98 0C 8C [19:49:42]RasterBufferAndPrint [19:49:42]line [19:49:42]line [19:49:42]line [19:49:42]line [19:49:42]line [19:49:42]written 0, free lines is 3228 [19:49:42]MH_Cut [19:49:42]Write to MH i2c: D1 01 00 D4 14 01 BA [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: D1 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: D1 01 00 [19:49:42]MH_I2C_Read... [19:49:42]Read from MH i2c: D1 01 00 D4 14 00 B9 [19:49:42]Write to MH i2c: 01 00 00 D5 14 E9 [19:49:42]Write i2c OK [19:49:42]MH_I2C_Read... [19:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 7E BF 47 00 92 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 39 36 35 33 34 30 10 04 04 00 36 E0 02 00 F4 03 04 00 C1 AB 17 67 B6 04 01 00 00 92 46 12 B0 38 1C 4E BB [19:49:42]CommunicateWithHost err = 0 [19:49:42]CheckOFDResponse [19:49:42]1017 (14) - 77093643461234 [19:49:42]1041 (16) - 0000000000965340 [19:49:42]1040 (4) - 188470 [19:49:42]1012 (4) - 22.10.2024 13:42 [19:49:42]1206 (1) - 0 [19:49:42]OFD Sender: Remove packet 188470 [19:49:42]ProducePacketName [19:49:42]name=ofd_packets/00188470 [19:49:42]NVStorageDeleteData [19:49:42]OFD Sender: No OFD packet to send [19:49:43]*** Cut start [19:49:43]*** Partial cut [19:49:43]*** CUTSNS_PIN = 1 [19:49:43]*** CUTSNS_PIN = 0 [19:49:43]*** Brake cut motor [19:49:43]Read from MH i2c: 01 [19:49:43]MH_I2C_Read... [19:49:43]*** Stop cut motor [19:49:43]*** Cut end [19:49:43]Read from MH i2c: 01 07 00 [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: 01 07 00 D5 14 00 00 00 00 00 FF 0F FE [19:49:43]process_action close_receipt done [19:49:43]requested_data is exist [19:49:43]produce_requested_data [19:49:43]requested_item fm.sn is exist - process it [19:49:43]wFMCommunicate request_size=4 [19:49:43]MH_SAM_APDU [19:49:43]CAPDU: 80 11 00 00 [19:49:43]Write to MH i2c: E2 08 00 D6 14 80 11 00 00 00 00 00 00 64 [19:49:43]Write i2c OK [19:49:43]MH_I2C_Read... [19:49:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:49:43]Read from MH i2c: E2 [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: E2 17 00 [19:49:43]MH_I2C_Read... [19:49:43]Read from MH i2c: E2 17 00 D6 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [19:49:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:49:43]wFMCommunicate OK [19:49:43]requested_item fd.num is exist - process it [19:49:43]SAM_PROTO_GetFieldsCounters [19:49:43]wFMCommunicate request_size=4 [19:49:43]MH_SAM_APDU [19:49:43]CAPDU: 80 13 00 00 [19:49:43]Write to MH i2c: E2 08 00 D7 14 80 13 00 00 00 00 00 00 67 [19:49:43]Write i2c OK [19:49:43]MH_I2C_Read... [19:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:49:44]Read from MH i2c: E2 [19:49:44]MH_I2C_Read... [19:49:44]Read from MH i2c: E2 62 00 [19:49:44]MH_I2C_Read... [19:49:44]Read from MH i2c: E2 62 00 D7 14 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F3 01 00 00 5E 04 04 00 F3 01 00 00 57 04 04 00 F4 01 00 00 19 04 04 00 00 00 00 00 90 00 30 [19:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 36 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F3 01 00 00 5E 04 04 00 F3 01 00 00 57 04 04 00 F4 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:49:44]wFMCommunicate OK [19:49:44]SAM_PROTO_GetFieldsCounters done [19:49:44]requested_item shift.num is exist - process it [19:49:44]requested_item shift.opened is exist - process it [19:49:44]req_shift_opened [19:49:44]FM_GetShiftState [19:49:44]SAM_PROTO_GetShiftState [19:49:44]wFMCommunicate request_size=4 [19:49:44]MH_SAM_APDU [19:49:44]CAPDU: 80 13 01 00 [19:49:44]Write to MH i2c: E2 08 00 D8 14 80 13 01 00 00 00 00 00 69 [19:49:44]Write i2c OK [19:49:44]MH_I2C_Read... [19:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:49:44]Read from MH i2c: E2 [19:49:44]MH_I2C_Read... [19:49:44]Read from MH i2c: E2 0E 00 [19:49:44]MH_I2C_Read... [19:49:44]Read from MH i2c: E2 0E 00 D8 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5E [19:49:44]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:49:44]wFMCommunicate OK [19:49:44]SAM_PROTO_GetShiftState done [19:49:44]FM_GetShiftState done [19:49:44]req_shift_opened done [19:49:44]requested_item shift.open_date is exist - process it [19:49:44]req_shift_open_date [19:49:44]req_shift_open_date done [19:49:44]produce_requested_data done [19:49:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188470,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:49:44]process_action_free close_receipt [19:49:44]json_value_free [19:49:44]json_value_free done [19:49:44]process_json_proto returns [19:49:44]Send response to host [19:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188470,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:49:44]free response buf [19:49:44]execute_script done [19:49:44]execute_script returns [19:49:44]free content buf [19:49:44]Sock 9.Close socket [19:49:44]Sock 9.Thread stoped [19:49:47]OFD Sender: No OFD packet to send [19:49:52]OFD Sender: No OFD packet to send [19:49:57]OFD Sender: No OFD packet to send [19:50:02]OFD Sender: No OFD packet to send [19:50:07]OFD Sender: No OFD packet to send [19:50:12]OFD Sender: No OFD packet to send [19:50:17]OFD Sender: No OFD packet to send [19:50:22]OFD Sender: No OFD packet to send [19:50:27]OFD Sender: No OFD packet to send [19:50:32]OFD Sender: No OFD packet to send [19:50:38]OFD Sender: No OFD packet to send [19:50:43]OFD Sender: No OFD packet to send [19:50:48]OFD Sender: No OFD packet to send [19:50:53]OFD Sender: No OFD packet to send [19:50:58]OFD Sender: No OFD packet to send [19:51:03]OFD Sender: No OFD packet to send [19:51:08]OFD Sender: No OFD packet to send [19:51:13]OFD Sender: No OFD packet to send [19:51:18]OFD Sender: No OFD packet to send [19:51:23]OFD Sender: No OFD packet to send [19:51:28]OFD Sender: No OFD packet to send [19:51:33]OFD Sender: No OFD packet to send [19:51:38]OFD Sender: No OFD packet to send [19:51:43]OFD Sender: No OFD packet to send [19:51:48]OFD Sender: No OFD packet to send [19:51:53]OFD Sender: No OFD packet to send [19:51:58]OFD Sender: No OFD packet to send [19:52:03]OFD Sender: No OFD packet to send [19:52:08]OFD Sender: No OFD packet to send [19:52:13]OFD Sender: No OFD packet to send [19:52:18]OFD Sender: No OFD packet to send [19:52:23]OFD Sender: No OFD packet to send [19:52:28]OFD Sender: No OFD packet to send [19:52:33]OFD Sender: No OFD packet to send [19:52:38]OFD Sender: No OFD packet to send [19:52:43]OFD Sender: No OFD packet to send [19:52:48]OFD Sender: No OFD packet to send [19:52:53]OFD Sender: No OFD packet to send [19:52:58]OFD Sender: No OFD packet to send [19:53:03]OFD Sender: No OFD packet to send [19:53:08]OFD Sender: No OFD packet to send [19:53:13]OFD Sender: No OFD packet to send [19:53:18]OFD Sender: No OFD packet to send [19:53:23]OFD Sender: No OFD packet to send [19:53:28]OFD Sender: No OFD packet to send [19:53:33]OFD Sender: No OFD packet to send [19:53:38]OFD Sender: No OFD packet to send [19:53:43]OFD Sender: No OFD packet to send [19:53:48]OFD Sender: No OFD packet to send [19:53:53]OFD Sender: No OFD packet to send [19:53:58]OFD Sender: No OFD packet to send [19:54:03]OFD Sender: No OFD packet to send [19:54:08]OFD Sender: No OFD packet to send [19:54:13]OFD Sender: No OFD packet to send [19:54:19]OFD Sender: No OFD packet to send [19:54:24]OFD Sender: No OFD packet to send [19:54:29]OFD Sender: No OFD packet to send [19:54:34]OFD Sender: No OFD packet to send [19:54:39]OFD Sender: No OFD packet to send [19:54:44]OFD Sender: No OFD packet to send [19:54:49]OFD Sender: No OFD packet to send [19:54:54]OFD Sender: No OFD packet to send [19:54:59]OFD Sender: No OFD packet to send [19:55:04]OFD Sender: No OFD packet to send [19:55:09]OFD Sender: No OFD packet to send [19:55:14]OFD Sender: No OFD packet to send [19:55:19]OFD Sender: No OFD packet to send [19:55:24]OFD Sender: No OFD packet to send [19:55:29]OFD Sender: No OFD packet to send [19:55:34]OFD Sender: No OFD packet to send [19:55:39]OFD Sender: No OFD packet to send [19:55:44]OFD Sender: No OFD packet to send [19:55:49]OFD Sender: No OFD packet to send [19:55:54]OFD Sender: No OFD packet to send [19:55:59]OFD Sender: No OFD packet to send [19:56:04]OFD Sender: No OFD packet to send [19:56:09]OFD Sender: No OFD packet to send [19:56:14]OFD Sender: No OFD packet to send [19:56:19]OFD Sender: No OFD packet to send [19:56:24]OFD Sender: No OFD packet to send [19:56:29]OFD Sender: No OFD packet to send [19:56:34]OFD Sender: No OFD packet to send [19:56:39]OFD Sender: No OFD packet to send [19:56:44]OFD Sender: No OFD packet to send [19:56:46]accept exits with 7 [19:56:46]New connection [19:56:46]New thread 3066613092 created [19:56:46]Thread 3066756452 joined [19:56:46]Waiting for new connection... [19:56:46] Sock 7.Parse request [19:56:46]Sock 7.Check first char [19:56:46]Sock 7.First char is OK [19:56:46]request: POST /json_proto HTTP/1.0 [19:56:46]Method: POST [19:56:46]URL: /json_proto [19:56:46]Method is POST - this is cgi request [19:56:46]url: /json_proto [19:56:46]query_string will be loaded in cgi processing [19:56:46]execute_cgi json_proto POST (null) [19:56:46]execute_cgi path=json_proto method=POST [19:56:46]POST find Content-Length [19:56:46]Host: 172.17.42.131:8080 [19:56:46]Content-Length: 679 [19:56:46]Content-Type: application/json [19:56:46] [19:56:46]POST finish read [19:56:46]Found Content-Length = 679 [19:56:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [19:56:46]execute_script... [19:56:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210531", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [19:56:46]POST & json_proto [19:56:46]process_json_proto [19:56:46]json parsed OK: [19:56:46]protocol is kg_v1.0 [19:56:46]action value=close_receipt [19:56:46]process_action close_receipt [19:56:46]cmd_close_receipt [19:56:46]MH_GetDate [19:56:46]Write to MH i2c: F0 00 00 D9 14 DC [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 09 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: F0 09 00 D9 14 00 7F 03 18 67 A0 18 CA 66 CE [19:56:46]GetLastDocTimeStamp 1729626581 [19:56:46]current date 1729627007 [19:56:46]FM_GetShiftState [19:56:46]SAM_PROTO_GetShiftState [19:56:46]wFMCommunicate request_size=4 [19:56:46]MH_SAM_APDU [19:56:46]CAPDU: 80 13 01 00 [19:56:46]Write to MH i2c: E2 08 00 DA 14 80 13 01 00 00 00 00 00 6B [19:56:46]Write i2c OK [19:56:46]MH_I2C_Read... [19:56:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:46]Read from MH i2c: E2 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 [19:56:46]MH_I2C_Read... [19:56:46]Read from MH i2c: E2 0E 00 DA 14 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 60 [19:56:46]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:56:46]wFMCommunicate OK [19:56:46]SAM_PROTO_GetShiftState done [19:56:46]FM_GetShiftState done [19:56:46]opened in 1729556094 [19:56:46]opened+sec_in_day 1729642494 [19:56:46]quantity*price = 100050 [19:56:46]sum+1 = 100052 [19:56:46]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 500 22.10.2024 19:56 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188471 ФПД: 44269796541994 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188471&fm=44269796541994&tin=02508201610067®Number=0000000000100030&sum=100000 [19:56:47]StoreToDocumentArchive [19:56:47]shift 461 fd 188471 [19:56:47]save to /storage/0461/doc_00188471 [19:56:47]save last doc name /storage/0461/doc_00188471 to /storage/kkm_last_doc_name [19:56:47]save OK [19:56:47]Clear old archive folders... [19:56:47]ProcessDocumentItem done err = 0, tmpTLVsize=248 [19:56:47]tlvbuf is 00983F20 [19:56:47]SAM_PROTO_ClearQueue [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 09 00 00 [19:56:47]Write to MH i2c: E2 08 00 E7 14 80 09 00 00 00 00 00 00 6D [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 E7 14 00 90 00 6F [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_ClearQueue done [19:56:47]KKMCreateOFDPacket [19:56:47]OFDProtocolAddRootSTLVToBuf [19:56:47]FM_MakeSignedData [19:56:47]FM_MakeSignedData [19:56:47]SAM_PROTO_SignData [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 01 02 [19:56:47]Write to MH i2c: E2 08 00 E8 14 80 0D 01 02 00 00 00 00 75 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 E8 14 00 90 00 70 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=255 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F4 01 00 00 F4 03 04 00 7F 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E0 02 00 35 04 06 00 28 43 5D 7F [19:56:47]Write to MH i2c: E2 02 01 E9 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 32 31 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 F4 01 00 00 F4 03 04 00 7F 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E0 02 00 35 04 06 00 28 43 5D 7F 00 00 04 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 E9 14 00 90 00 71 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=7 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 02 02 02 46 2A [19:56:47]Write to MH i2c: E2 0A 00 EA 14 80 0D 02 02 02 00 46 2A 00 00 EC [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 03 00 EA 14 00 90 00 72 [19:56:47]RAPDU: 90 00 [19:56:47]wFMCommunicate OK [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 0D 03 02 [19:56:47]Write to MH i2c: E2 08 00 EB 14 80 0D 03 02 00 00 00 00 7A [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0B 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 0B 00 EB 14 00 EF 98 AC 86 F2 C6 F2 8A 90 00 68 [19:56:47]RAPDU: EF 98 AC 86 F2 C6 F2 8A 90 00 [19:56:47]wFMCommunicate OK [19:56:47]SAM_PROTO_SignData done [19:56:47]FM_MakeSignedData done [19:56:47]CreateOFDProtocolMessage [19:56:47]wFMCommunicate request_size=4 [19:56:47]MH_SAM_APDU [19:56:47]CAPDU: 80 11 00 00 [19:56:47]Write to MH i2c: E2 08 00 EC 14 80 11 00 00 00 00 00 00 7A [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:47]Read from MH i2c: E2 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 17 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: E2 17 00 EC 14 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C8 [19:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:56:47]wFMCommunicate OK [19:56:47]CreateOFDProtocolMessage done [19:56:47]OFDSenderStorePacket 188471 [19:56:47]StoreOFDPacket docnum=188471 [19:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 70 FF 04 01 82 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F4 01 00 00 F4 03 04 00 7F 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E0 02 00 35 04 06 00 28 43 5D 7F 46 2A EF 98 AC 86 F2 C6 F2 8A [19:56:47]CheckFolder [19:56:47]dirname=/storage/ofd_packets [19:56:47]CheckFolder done [19:56:47]ProducePacketName [19:56:47]name=ofd_packets/00188471 [19:56:47]NVStorageSaveData ofd_packets/00188471 [19:56:47]File name is /storage/ofd_packets/00188471 [19:56:47]Write 298 bytes [19:56:47]NVStorageSaveData done [19:56:47]OFDSenderStorePacket done [19:56:47]KKMCreateOFDPacket done [19:56:47]NVStorageSaveData kkm_last_timestamp [19:56:47]File name is /storage/kkm_last_timestamp [19:56:47]Write 4 bytes [19:56:47]NVStorageSaveData done [19:56:47]ExternCall_PrintAddStr [19:56:47]wPrintStart [19:56:47]Write to MH i2c: 01 00 00 ED 14 01 [19:56:47]Write i2c OK [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 07 00 [19:56:47]MH_I2C_Read... [19:56:47]Read from MH i2c: 01 07 00 ED 14 00 00 00 00 00 FF 0F 16 [19:56:47]RasterBufferAndPrint [19:56:47]line Счет N : (1)210531 [19:56:47]line ИНН: 02508201610067 [19:56:47]line Контрольно-Кассовый Чек [19:56:47]line ПРОДАЖА [19:56:47]line ТРК (МРК, ГНК) : 51 [19:56:47]line Товар: 2710194210 [19:56:47]line ДТ-К-5 [19:56:47]line 13.130 * 76.20 [19:56:47]line = 1000.51 [19:56:47]line НДС 12% НСП 1% [19:56:47]line > о реализуемом товаре [19:56:47]line ОКРУГЛЕНИЕ: -0.51 [19:56:47]line ИТОГО: 1000.00 [19:56:47]line Внесено: 1000.00 [19:56:47]line СДАЧА: 0.00 [19:56:47]line НСП 1% : 8.85 [19:56:47]line НДС 12% : 106.25 [19:56:47]line Наличными: 1000.00 [19:56:47]line Безнал.: 0.00 [19:56:47]line Место: АЗС № 86 "Партнер Нефть" [19:56:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:56:47]line СНО: Общий режим [19:56:47]line Чек 500 22.10.2024 19:56 [19:56:47]line Смена: 461 ФФД: 1.0 [19:56:47]line ЗНМ: 0300000155 [19:56:47]line РНМ: 0000000000100030 [19:56:47]line Версия ККМ: 001 [19:56:47]line ФМ: 0000000000965340 [19:56:47]line ФД: 188471 [19:56:47]line ФПД: 44269796541994 [19:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195647&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188471&fm=44269796541994&tin=02508201610067®Number=0000000000100030&sum=100000 [19:56:47]written 0, free lines is 4095 [19:56:48]OFD Sender: Processing packet 188471 [packets to send 1062, broken 1061] [19:56:48]ProducePacketName [19:56:48]name=ofd_packets/00188471 [19:56:48]OFD Sender: To server: pG, [19:56:48]CommunicateWithHost lk.salyk.kg:30040 [19:56:48]ConnectInit lk.salyk.kg [19:56:48]Connected sock=10 [19:56:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 70 FF 04 01 82 57 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F4 01 00 00 F4 03 04 00 7F 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 37 E0 02 00 35 04 06 00 28 43 5D 7F 46 2A EF 98 AC 86 F2 C6 F2 8A [19:56:48]Write to MH i2c: 01 00 00 18 15 2D [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 07 00 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: 01 07 00 18 15 00 00 00 00 00 5C 0C 9C [19:56:48]RasterBufferAndPrint [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]line [19:56:48]written 0, free lines is 3167 [19:56:48]MH_Cut [19:56:48]Write to MH i2c: D1 01 00 1F 15 01 06 [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 01 00 [19:56:48]MH_I2C_Read... [19:56:48]Read from MH i2c: D1 01 00 1F 15 00 05 [19:56:48]Write to MH i2c: 01 00 00 20 15 35 [19:56:48]Write i2c OK [19:56:48]MH_I2C_Read... [19:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5C 2F 47 00 BE 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 39 36 35 33 34 30 10 04 04 00 37 E0 02 00 F4 03 04 00 6C AD 17 67 B6 04 01 00 00 BB 6F 23 85 31 2F 03 D2 [19:56:48]CommunicateWithHost err = 0 [19:56:48]CheckOFDResponse [19:56:48]1017 (14) - 77093643461234 [19:56:48]1041 (16) - 0000000000965340 [19:56:48]1040 (4) - 188471 [19:56:48]1012 (4) - 22.10.2024 13:49 [19:56:48]1206 (1) - 0 [19:56:48]OFD Sender: Remove packet 188471 [19:56:48]ProducePacketName [19:56:48]name=ofd_packets/00188471 [19:56:48]NVStorageDeleteData [19:56:49]OFD Sender: No OFD packet to send [19:56:49]*** Cut start [19:56:49]*** Partial cut [19:56:49]*** CUTSNS_PIN = 1 [19:56:49]*** CUTSNS_PIN = 0 [19:56:49]*** Brake cut motor [19:56:50]Read from MH i2c: 01 [19:56:50]MH_I2C_Read... [19:56:50]*** Stop cut motor [19:56:50]*** Cut end [19:56:50]Read from MH i2c: 01 07 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: 01 07 00 20 15 00 00 00 00 00 FF 0F 4A [19:56:50]process_action close_receipt done [19:56:50]requested_data is exist [19:56:50]produce_requested_data [19:56:50]requested_item fm.sn is exist - process it [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 11 00 00 [19:56:50]Write to MH i2c: E2 08 00 21 15 80 11 00 00 00 00 00 00 B0 [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 17 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 17 00 21 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FE [19:56:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:56:50]wFMCommunicate OK [19:56:50]requested_item fd.num is exist - process it [19:56:50]SAM_PROTO_GetFieldsCounters [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 13 00 00 [19:56:50]Write to MH i2c: E2 08 00 22 15 80 13 00 00 00 00 00 00 B3 [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 62 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 62 00 22 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F4 01 00 00 5E 04 04 00 F4 01 00 00 57 04 04 00 F5 01 00 00 19 04 04 00 00 00 00 00 90 00 80 [19:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 37 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F4 01 00 00 5E 04 04 00 F4 01 00 00 57 04 04 00 F5 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:56:50]wFMCommunicate OK [19:56:50]SAM_PROTO_GetFieldsCounters done [19:56:50]requested_item shift.num is exist - process it [19:56:50]requested_item shift.opened is exist - process it [19:56:50]req_shift_opened [19:56:50]FM_GetShiftState [19:56:50]SAM_PROTO_GetShiftState [19:56:50]wFMCommunicate request_size=4 [19:56:50]MH_SAM_APDU [19:56:50]CAPDU: 80 13 01 00 [19:56:50]Write to MH i2c: E2 08 00 23 15 80 13 01 00 00 00 00 00 B5 [19:56:50]Write i2c OK [19:56:50]MH_I2C_Read... [19:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:56:50]Read from MH i2c: E2 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 0E 00 [19:56:50]MH_I2C_Read... [19:56:50]Read from MH i2c: E2 0E 00 23 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AA [19:56:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:56:50]wFMCommunicate OK [19:56:50]SAM_PROTO_GetShiftState done [19:56:50]FM_GetShiftState done [19:56:50]req_shift_opened done [19:56:50]requested_item shift.open_date is exist - process it [19:56:50]req_shift_open_date [19:56:50]req_shift_open_date done [19:56:50]produce_requested_data done [19:56:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188471,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:56:50]process_action_free close_receipt [19:56:50]json_value_free [19:56:50]json_value_free done [19:56:50]process_json_proto returns [19:56:50]Send response to host [19:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188471,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:56:50]free response buf [19:56:50]execute_script done [19:56:50]execute_script returns [19:56:50]free content buf [19:56:50]Sock 7.Close socket [19:56:50]Sock 7.Thread stoped [19:56:54]OFD Sender: No OFD packet to send [19:56:59]OFD Sender: No OFD packet to send [19:57:04]OFD Sender: No OFD packet to send [19:57:09]OFD Sender: No OFD packet to send [19:57:14]OFD Sender: No OFD packet to send [19:57:19]OFD Sender: No OFD packet to send [19:57:24]OFD Sender: No OFD packet to send [19:57:29]OFD Sender: No OFD packet to send [19:57:34]OFD Sender: No OFD packet to send [19:57:39]OFD Sender: No OFD packet to send [19:57:44]OFD Sender: No OFD packet to send [19:57:49]OFD Sender: No OFD packet to send [19:57:54]OFD Sender: No OFD packet to send [19:57:59]OFD Sender: No OFD packet to send [19:58:02]accept exits with 9 [19:58:02]New connection [19:58:02]New thread 3066756452 created [19:58:02]Thread 3066613092 joined [19:58:02]Waiting for new connection... [19:58:02] Sock 9.Parse request [19:58:02]Sock 9.Check first char [19:58:02]Sock 9.First char is OK [19:58:02]request: POST /json_proto HTTP/1.0 [19:58:02]Method: POST [19:58:02]URL: /json_proto [19:58:02]Method is POST - this is cgi request [19:58:02]url: /json_proto [19:58:02]query_string will be loaded in cgi processing [19:58:02]execute_cgi json_proto POST (null) [19:58:02]execute_cgi path=json_proto method=POST [19:58:02]POST find Content-Length [19:58:02]Host: 172.17.42.131:8080 [19:58:02]Content-Length: 769 [19:58:02]Content-Type: application/json [19:58:02] [19:58:02]POST finish read [19:58:02]Found Content-Length = 769 [19:58:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:02]execute_script... [19:58: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)210532", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:58:02]POST & json_proto [19:58:02]process_json_proto [19:58:02]json parsed OK: [19:58:02]protocol is kg_v1.0 [19:58:02]action value=close_receipt [19:58:02]process_action close_receipt [19:58:02]cmd_close_receipt [19:58:02]MH_GetDate [19:58:02]Write to MH i2c: F0 00 00 24 15 28 [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 09 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: F0 09 00 24 15 00 CB 03 18 67 A0 18 CA 66 66 [19:58:02]GetLastDocTimeStamp 1729627007 [19:58:02]current date 1729627083 [19:58:02]FM_GetShiftState [19:58:02]SAM_PROTO_GetShiftState [19:58:02]wFMCommunicate request_size=4 [19:58:02]MH_SAM_APDU [19:58:02]CAPDU: 80 13 01 00 [19:58:02]Write to MH i2c: E2 08 00 25 15 80 13 01 00 00 00 00 00 B7 [19:58:02]Write i2c OK [19:58:02]MH_I2C_Read... [19:58:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:02]Read from MH i2c: E2 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0E 00 [19:58:02]MH_I2C_Read... [19:58:02]Read from MH i2c: E2 0E 00 25 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AC [19:58:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:58:02]wFMCommunicate OK [19:58:02]SAM_PROTO_GetShiftState done [19:58:02]FM_GetShiftState done [19:58:02]opened in 1729556094 [19:58:02]opened+sec_in_day 1729642494 [19:58:02]quantity*price = 150056 [19:58:02]sum+1 = 150058 [19:58:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 501 22.10.2024 19:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188472 ФПД: 61204249804608 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188472&fm=61204249804608&tin=02508201610067®Number=0000000000100030&sum=150057 [19:58:03]StoreToDocumentArchive [19:58:03]shift 461 fd 188472 [19:58:03]save to /storage/0461/doc_00188472 [19:58:03]save last doc name /storage/0461/doc_00188472 to /storage/kkm_last_doc_name [19:58:03]save OK [19:58:03]Clear old archive folders... [19:58:03]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:58:03]tlvbuf is 00997940 [19:58:03]SAM_PROTO_ClearQueue [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 09 00 00 [19:58:03]Write to MH i2c: E2 08 00 32 15 80 09 00 00 00 00 00 00 B9 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 32 15 00 90 00 BB [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]SAM_PROTO_ClearQueue done [19:58:03]KKMCreateOFDPacket [19:58:03]OFDProtocolAddRootSTLVToBuf [19:58:03]FM_MakeSignedData [19:58:03]FM_MakeSignedData [19:58:03]SAM_PROTO_SignData [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 0D 01 02 [19:58:03]Write to MH i2c: E2 08 00 33 15 80 0D 01 02 00 00 00 00 C1 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 33 15 00 90 00 BC [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]wFMCommunicate request_size=255 [19:58:03]MH_SAM_APDU [19:58: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 CB 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E0 02 00 35 04 06 00 37 [19:58:03]Write to MH i2c: E2 02 01 34 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 CB 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E0 02 00 35 04 06 00 37 00 00 53 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 34 15 00 90 00 BD [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]wFMCommunicate request_size=10 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 0D 02 02 05 AA 39 91 7F 40 [19:58:03]Write to MH i2c: E2 0D 00 35 15 80 0D 02 02 05 00 AA 39 91 7F 40 00 00 01 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 03 00 35 15 00 90 00 BE [19:58:03]RAPDU: 90 00 [19:58:03]wFMCommunicate OK [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 0D 03 02 [19:58:03]Write to MH i2c: E2 08 00 36 15 80 0D 03 02 00 00 00 00 C6 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 0B 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 0B 00 36 15 00 22 BD 50 C3 A4 49 36 1D 90 00 F9 [19:58:03]RAPDU: 22 BD 50 C3 A4 49 36 1D 90 00 [19:58:03]wFMCommunicate OK [19:58:03]SAM_PROTO_SignData done [19:58:03]FM_MakeSignedData done [19:58:03]CreateOFDProtocolMessage [19:58:03]wFMCommunicate request_size=4 [19:58:03]MH_SAM_APDU [19:58:03]CAPDU: 80 11 00 00 [19:58:03]Write to MH i2c: E2 08 00 37 15 80 11 00 00 00 00 00 00 C6 [19:58:03]Write i2c OK [19:58:03]MH_I2C_Read... [19:58:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:03]Read from MH i2c: E2 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 17 00 [19:58:03]MH_I2C_Read... [19:58:03]Read from MH i2c: E2 17 00 37 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 14 [19:58:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:58:03]wFMCommunicate OK [19:58:03]CreateOFDProtocolMessage done [19:58:03]OFDSenderStorePacket 188472 [19:58:03]StoreOFDPacket docnum=188472 [19:58:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E1 F4 07 01 A1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 CB 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E0 02 00 35 04 06 00 37 AA 39 91 7F 40 22 BD 50 C3 A4 49 36 1D [19:58:03]CheckFolder [19:58:03]dirname=/storage/ofd_packets [19:58:03]CheckFolder done [19:58:03]ProducePacketName [19:58:03]name=ofd_packets/00188472 [19:58:03]NVStorageSaveData ofd_packets/00188472 [19:58:03]File name is /storage/ofd_packets/00188472 [19:58:03]Write 301 bytes [19:58:03]NVStorageSaveData done [19:58:03]OFDSenderStorePacket done [19:58:03]KKMCreateOFDPacket done [19:58:03]NVStorageSaveData kkm_last_timestamp [19:58:03]File name is /storage/kkm_last_timestamp [19:58:03]Write 4 bytes [19:58:03]NVStorageSaveData done [19:58:03]ExternCall_PrintAddStr [19:58:04]wPrintStart [19:58:04]Write to MH i2c: 01 00 00 38 15 4D [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 38 15 00 00 00 00 00 FF 0F 62 [19:58:04]RasterBufferAndPrint [19:58:04]line Счет N : (1)210532 [19:58:04]line ИНН: 02508201610067 [19:58:04]line Контрольно-Кассовый Чек [19:58:04]line ПРОДАЖА [19:58:04]line ТРК (МРК, ГНК) : 42 [19:58:04]line Товар: 2710124130 [19:58:04]line Аи-92-К-3 [19:58:04]line 22.430 * 66.90 [19:58:04]line = 1500.57 [19:58:04]line НДС 12% НСП 1% [19:58:04]line > о реализуемом товаре [19:58:04]line ИТОГО: 1500.57 [19:58:04]line НСП 1% : 13.28 [19:58:04]line НДС 12% : 159.35 [19:58:04]line Наличными: 0.00 [19:58:04]line Безнал.: 1500.57 [19:58:04]line Место: АЗС № 86 "Партнер Нефть" [19:58:04]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [19:58:04]line СНО: Общий режим [19:58:04]line Чек 501 22.10.2024 19:58 [19:58:04]line Смена: 461 ФФД: 1.0 [19:58:04]line ЗНМ: 0300000155 [19:58:04]line РНМ: 0000000000100030 [19:58:04]line Версия ККМ: 001 [19:58:04]line Платежная система: Mbank [19:58:04]line ФМ: 0000000000965340 [19:58:04]line ФД: 188472 [19:58:04]line ФПД: 61204249804608 [19:58:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T195803&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188472&fm=61204249804608&tin=02508201610067®Number=0000000000100030&sum=150057 [19:58:04]written 0, free lines is 4095 [19:58:04]OFD Sender: Processing packet 188472 [packets to send 1062, broken 1061] [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00188472 [19:58:04]OFD Sender: To server: pG, [19:58:04]CommunicateWithHost lk.salyk.kg:30040 [19:58:04]ConnectInit lk.salyk.kg [19:58:04]Connected sock=10 [19:58:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E1 F4 07 01 A1 06 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 F5 01 00 00 F4 03 04 00 CB 03 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 38 E0 02 00 35 04 06 00 37 AA 39 91 7F 40 22 BD 50 C3 A4 49 36 1D [19:58:04]Write to MH i2c: 01 00 00 61 15 76 [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: 01 07 00 61 15 00 00 00 00 00 94 0C 1D [19:58:04]RasterBufferAndPrint [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]line [19:58:04]written 0, free lines is 3225 [19:58:04]MH_Cut [19:58:04]Write to MH i2c: D1 01 00 68 15 01 4F [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 01 00 [19:58:04]MH_I2C_Read... [19:58:04]Read from MH i2c: D1 01 00 68 15 00 4E [19:58:04]Write to MH i2c: 01 00 00 69 15 7E [19:58:04]Write i2c OK [19:58:04]MH_I2C_Read... [19:58:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F 05 47 00 F3 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 39 36 35 33 34 30 10 04 04 00 38 E0 02 00 F4 03 04 00 B8 AD 17 67 B6 04 01 00 00 45 2B 48 4F 49 A4 1B 41 [19:58:04]CommunicateWithHost err = 0 [19:58:04]CheckOFDResponse [19:58:04]1017 (14) - 77093643461234 [19:58:04]1041 (16) - 0000000000965340 [19:58:04]1040 (4) - 188472 [19:58:04]1012 (4) - 22.10.2024 13:50 [19:58:04]1206 (1) - 0 [19:58:04]OFD Sender: Remove packet 188472 [19:58:04]ProducePacketName [19:58:04]name=ofd_packets/00188472 [19:58:04]NVStorageDeleteData [19:58:05]OFD Sender: No OFD packet to send [19:58:05]*** Cut start [19:58:05]*** Partial cut [19:58:05]*** CUTSNS_PIN = 1 [19:58:05]*** CUTSNS_PIN = 0 [19:58:05]*** Brake cut motor [19:58:06]Read from MH i2c: 01 [19:58:06]MH_I2C_Read... [19:58:06]*** Stop cut motor [19:58:06]*** Cut end [19:58:06]Read from MH i2c: 01 07 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: 01 07 00 69 15 00 00 00 00 00 FF 0F 93 [19:58:06]process_action close_receipt done [19:58:06]requested_data is exist [19:58:06]produce_requested_data [19:58:06]requested_item fm.sn is exist - process it [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 11 00 00 [19:58:06]Write to MH i2c: E2 08 00 6A 15 80 11 00 00 00 00 00 00 F9 [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 17 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 17 00 6A 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [19:58:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [19:58:06]wFMCommunicate OK [19:58:06]requested_item fd.num is exist - process it [19:58:06]SAM_PROTO_GetFieldsCounters [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 13 00 00 [19:58:06]Write to MH i2c: E2 08 00 6B 15 80 13 00 00 00 00 00 00 FC [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 62 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 62 00 6B 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F5 01 00 00 5E 04 04 00 F5 01 00 00 57 04 04 00 F6 01 00 00 19 04 04 00 00 00 00 00 90 00 CD [19:58:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 38 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F5 01 00 00 5E 04 04 00 F5 01 00 00 57 04 04 00 F6 01 00 00 19 04 04 00 00 00 00 00 90 00 [19:58:06]wFMCommunicate OK [19:58:06]SAM_PROTO_GetFieldsCounters done [19:58:06]requested_item shift.num is exist - process it [19:58:06]requested_item shift.opened is exist - process it [19:58:06]req_shift_opened [19:58:06]FM_GetShiftState [19:58:06]SAM_PROTO_GetShiftState [19:58:06]wFMCommunicate request_size=4 [19:58:06]MH_SAM_APDU [19:58:06]CAPDU: 80 13 01 00 [19:58:06]Write to MH i2c: E2 08 00 6C 15 80 13 01 00 00 00 00 00 FE [19:58:06]Write i2c OK [19:58:06]MH_I2C_Read... [19:58:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:58:06]Read from MH i2c: E2 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 0E 00 [19:58:06]MH_I2C_Read... [19:58:06]Read from MH i2c: E2 0E 00 6C 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F3 [19:58:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [19:58:06]wFMCommunicate OK [19:58:06]SAM_PROTO_GetShiftState done [19:58:06]FM_GetShiftState done [19:58:06]req_shift_opened done [19:58:06]requested_item shift.open_date is exist - process it [19:58:06]req_shift_open_date [19:58:06]req_shift_open_date done [19:58:06]produce_requested_data done [19:58:06]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188472,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [19:58:06]process_action_free close_receipt [19:58:06]json_value_free [19:58:06]json_value_free done [19:58:06]process_json_proto returns [19:58:06]Send response to host [19:58:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188472,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [19:58:06]free response buf [19:58:06]execute_script done [19:58:06]execute_script returns [19:58:06]free content buf [19:58:06]Sock 9.Close socket [19:58:06]Sock 9.Thread stoped [19:58:10]OFD Sender: No OFD packet to send [19:58:15]OFD Sender: No OFD packet to send [19:58:20]OFD Sender: No OFD packet to send [19:58:25]OFD Sender: No OFD packet to send [19:58:30]OFD Sender: No OFD packet to send [19:58:35]OFD Sender: No OFD packet to send [19:58:40]OFD Sender: No OFD packet to send [19:58:45]OFD Sender: No OFD packet to send [19:58:50]OFD Sender: No OFD packet to send [19:58:55]OFD Sender: No OFD packet to send [19:59:00]OFD Sender: No OFD packet to send [19:59:05]OFD Sender: No OFD packet to send [19:59:10]OFD Sender: No OFD packet to send [19:59:15]OFD Sender: No OFD packet to send [19:59:20]OFD Sender: No OFD packet to send [19:59:25]OFD Sender: No OFD packet to send [19:59:30]OFD Sender: No OFD packet to send [19:59:35]OFD Sender: No OFD packet to send [19:59:40]OFD Sender: No OFD packet to send [19:59:45]OFD Sender: No OFD packet to send [19:59:50]OFD Sender: No OFD packet to send [19:59:55]OFD Sender: No OFD packet to send [20:00:00]OFD Sender: No OFD packet to send [20:00:05]OFD Sender: No OFD packet to send [20:00:10]OFD Sender: No OFD packet to send [20:00:14]accept exits with 7 [20:00:14]New connection [20:00:14]New thread 3066613092 created [20:00:14]Thread 3066756452 joined [20:00:14]Waiting for new connection... [20:00:14] Sock 7.Parse request [20:00:14]Sock 7.Check first char [20:00:14]Sock 7.First char is OK [20:00:14]request: POST /json_proto HTTP/1.0 [20:00:14]Method: POST [20:00:14]URL: /json_proto [20:00:14]Method is POST - this is cgi request [20:00:14]url: /json_proto [20:00:14]query_string will be loaded in cgi processing [20:00:14]execute_cgi json_proto POST (null) [20:00:14]execute_cgi path=json_proto method=POST [20:00:14]POST find Content-Length [20:00:14]Host: 172.17.42.131:8080 [20:00:14]Content-Length: 797 [20:00:14]Content-Type: application/json [20:00:14] [20:00:14]POST finish read [20:00:14]Found Content-Length = 797 [20:00:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4363533", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:14]execute_script... [20:00: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)210533", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 20.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u043E\u043F\u043B\u0438\u0432\u043D\u044B\u0435 \u0422\u0430\u043B\u043E\u043D\u044B\u000A4363533", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:00:14]POST & json_proto [20:00:14]process_json_proto [20:00:14]json parsed OK: [20:00:14]protocol is kg_v1.0 [20:00:14]action value=close_receipt [20:00:14]process_action close_receipt [20:00:14]cmd_close_receipt [20:00:14]MH_GetDate [20:00:14]Write to MH i2c: F0 00 00 6D 15 71 [20:00:14]Write i2c OK [20:00:14]MH_I2C_Read... [20:00:14]Read from MH i2c: F0 [20:00:14]MH_I2C_Read... [20:00:14]Read from MH i2c: F0 09 00 [20:00:14]MH_I2C_Read... [20:00:14]Read from MH i2c: F0 09 00 6D 15 00 50 04 18 67 A0 18 CA 66 35 [20:00:14]GetLastDocTimeStamp 1729627083 [20:00:14]current date 1729627216 [20:00:14]FM_GetShiftState [20:00:14]SAM_PROTO_GetShiftState [20:00:14]wFMCommunicate request_size=4 [20:00:14]MH_SAM_APDU [20:00:14]CAPDU: 80 13 01 00 [20:00:14]Write to MH i2c: E2 08 00 6E 15 80 13 01 00 00 00 00 00 00 [20:00:14]Write i2c OK [20:00:14]MH_I2C_Read... [20:00:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:15]Read from MH i2c: E2 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 0E 00 [20:00:15]MH_I2C_Read... [20:00:15]Read from MH i2c: E2 0E 00 6E 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F5 [20:00:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:00:15]wFMCommunicate OK [20:00:15]SAM_PROTO_GetShiftState done [20:00:15]FM_GetShiftState done [20:00:15]opened in 1729556094 [20:00:15]opened+sec_in_day 1729642494 [20:00:15]quantity*price = 0 [20:00:15]sum+1 = 1 [20:00:15]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 502 22.10.2024 20:00 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: Топливные Талоны 4363533 ФМ: 0000000000965340 ФД: 188473 ФПД: 236837414407984 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188473&fm=236837414407984&tin=02508201610067®Number=0000000000100030&sum=0 [20:00:16]StoreToDocumentArchive [20:00:16]shift 461 fd 188473 [20:00:16]save to /storage/0461/doc_00188473 [20:00:16]save last doc name /storage/0461/doc_00188473 to /storage/kkm_last_doc_name [20:00:16]save OK [20:00:16]Clear old archive folders... [20:00:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:00:16]tlvbuf is 008FF800 [20:00:16]SAM_PROTO_ClearQueue [20:00:16]wFMCommunicate request_size=4 [20:00:16]MH_SAM_APDU [20:00:16]CAPDU: 80 09 00 00 [20:00:16]Write to MH i2c: E2 08 00 7B 15 80 09 00 00 00 00 00 00 02 [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:00:16]Read from MH i2c: E2 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 7B 15 00 90 00 04 [20:00:16]RAPDU: 90 00 [20:00:16]wFMCommunicate OK [20:00:16]SAM_PROTO_ClearQueue done [20:00:16]KKMCreateOFDPacket [20:00:16]OFDProtocolAddRootSTLVToBuf [20:00:16]FM_MakeSignedData [20:00:16]FM_MakeSignedData [20:00:16]SAM_PROTO_SignData [20:00:16]wFMCommunicate request_size=4 [20:00:16]MH_SAM_APDU [20:00:16]CAPDU: 80 0D 01 02 [20:00:16]Write to MH i2c: E2 08 00 7C 15 80 0D 01 02 00 00 00 00 0A [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:00:16]Read from MH i2c: E2 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 7C 15 00 90 00 05 [20:00:16]RAPDU: 90 00 [20:00:16]wFMCommunicate OK [20:00:16]wFMCommunicate request_size=255 [20:00:16]MH_SAM_APDU [20:00: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 50 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E0 02 00 35 04 06 00 D7 67 01 F4 [20:00:16]Write to MH i2c: E2 02 01 7D 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 50 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E0 02 00 35 04 06 00 D7 67 01 F4 00 00 A1 [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:16]Read from MH i2c: E2 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 7D 15 00 90 00 06 [20:00:16]RAPDU: 90 00 [20:00:16]wFMCommunicate OK [20:00:16]wFMCommunicate request_size=7 [20:00:16]MH_SAM_APDU [20:00:16]CAPDU: 80 0D 02 02 02 8F 30 [20:00:16]Write to MH i2c: E2 0A 00 7E 15 80 0D 02 02 02 00 8F 30 00 00 D0 [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:00:16]Read from MH i2c: E2 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 03 00 7E 15 00 90 00 07 [20:00:16]RAPDU: 90 00 [20:00:16]wFMCommunicate OK [20:00:16]wFMCommunicate request_size=4 [20:00:16]MH_SAM_APDU [20:00:16]CAPDU: 80 0D 03 02 [20:00:16]Write to MH i2c: E2 08 00 7F 15 80 0D 03 02 00 00 00 00 0F [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:00:16]Read from MH i2c: E2 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 0B 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 0B 00 7F 15 00 52 9E 8D D4 98 8E E8 BD 90 00 2C [20:00:16]RAPDU: 52 9E 8D D4 98 8E E8 BD 90 00 [20:00:16]wFMCommunicate OK [20:00:16]SAM_PROTO_SignData done [20:00:16]FM_MakeSignedData done [20:00:16]CreateOFDProtocolMessage [20:00:16]wFMCommunicate request_size=4 [20:00:16]MH_SAM_APDU [20:00:16]CAPDU: 80 11 00 00 [20:00:16]Write to MH i2c: E2 08 00 80 15 80 11 00 00 00 00 00 00 0F [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:16]Read from MH i2c: E2 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 17 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: E2 17 00 80 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5D [20:00:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:00:16]wFMCommunicate OK [20:00:16]CreateOFDProtocolMessage done [20:00:16]OFDSenderStorePacket 188473 [20:00:16]StoreOFDPacket docnum=188473 [20:00:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 70 BE 04 01 6A EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 50 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E0 02 00 35 04 06 00 D7 67 01 F4 8F 30 52 9E 8D D4 98 8E E8 BD [20:00:16]CheckFolder [20:00:16]dirname=/storage/ofd_packets [20:00:16]CheckFolder done [20:00:16]ProducePacketName [20:00:16]name=ofd_packets/00188473 [20:00:16]NVStorageSaveData ofd_packets/00188473 [20:00:16]File name is /storage/ofd_packets/00188473 [20:00:16]Write 298 bytes [20:00:16]NVStorageSaveData done [20:00:16]OFDSenderStorePacket done [20:00:16]KKMCreateOFDPacket done [20:00:16]NVStorageSaveData kkm_last_timestamp [20:00:16]File name is /storage/kkm_last_timestamp [20:00:16]Write 4 bytes [20:00:16]NVStorageSaveData done [20:00:16]ExternCall_PrintAddStr [20:00:16]wPrintStart [20:00:16]Write to MH i2c: 01 00 00 81 15 96 [20:00:16]Write i2c OK [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: 01 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: 01 07 00 [20:00:16]MH_I2C_Read... [20:00:16]Read from MH i2c: 01 07 00 81 15 00 00 00 00 00 FF 0F AB [20:00:16]RasterBufferAndPrint [20:00:16]line Счет N : (1)210533 [20:00:16]line ИНН: 02508201610067 [20:00:16]line Контрольно-Кассовый Чек [20:00:16]line ПРОДАЖА [20:00:16]line ТРК (МРК, ГНК) : 51 [20:00:16]line Товар: 2710194210 [20:00:16]line ДТ-К-5 [20:00:16]line 20.000 * 0.00 [20:00:16]line = 0.00 [20:00:16]line НДС 12% НСП 1% [20:00:16]line > о реализуемом товаре [20:00:16]line ИТОГО: 0.00 [20:00:16]line НСП 1% : 0.00 [20:00:16]line НДС 12% : 0.00 [20:00:16]line Наличными: 0.00 [20:00:16]line Безнал.: 0.00 [20:00:16]line Место: АЗС № 86 "Партнер Нефть" [20:00:16]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:00:16]line СНО: Общий режим [20:00:16]line Чек 502 22.10.2024 20:00 [20:00:16]line Смена: 461 ФФД: 1.0 [20:00:16]line ЗНМ: 0300000155 [20:00:16]line РНМ: 0000000000100030 [20:00:16]line Версия ККМ: 001 [20:00:16]line Талоны: Топливные Талоны [20:00:16]line 4363533 [20:00:16]line ФМ: 0000000000965340 [20:00:16]line ФД: 188473 [20:00:16]line ФПД: 236837414407984 [20:00:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200016&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188473&fm=236837414407984&tin=02508201610067®Number=0000000000100030&sum=0 [20:00:16]written 0, free lines is 4095 [20:00:16]OFD Sender: Processing packet 188473 [packets to send 1062, broken 1061] [20:00:16]ProducePacketName [20:00:16]name=ofd_packets/00188473 [20:00:16]OFD Sender: To server: pG, [20:00:16]CommunicateWithHost lk.salyk.kg:30040 [20:00:16]ConnectInit lk.salyk.kg [20:00:17]Connected sock=9 [20:00:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 70 BE 04 01 6A EA 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 F6 01 00 00 F4 03 04 00 50 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 39 E0 02 00 35 04 06 00 D7 67 01 F4 8F 30 52 9E 8D D4 98 8E E8 BD [20:00:17]Write to MH i2c: 01 00 00 AB 15 C0 [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: 01 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: 01 07 00 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: 01 07 00 AB 15 00 00 00 00 00 81 0C 54 [20:00:17]RasterBufferAndPrint [20:00:17]line [20:00:17]line [20:00:17]line [20:00:17]line [20:00:17]line [20:00:17]written 0, free lines is 3206 [20:00:17]MH_Cut [20:00:17]Write to MH i2c: D1 01 00 B2 15 01 99 [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: D1 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: D1 01 00 [20:00:17]MH_I2C_Read... [20:00:17]Read from MH i2c: D1 01 00 B2 15 00 98 [20:00:17]Write to MH i2c: 01 00 00 B3 15 C8 [20:00:17]Write i2c OK [20:00:17]MH_I2C_Read... [20:00:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 44 47 00 0F 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 39 36 35 33 34 30 10 04 04 00 39 E0 02 00 F4 03 04 00 3C AE 17 67 B6 04 01 00 00 8C C9 F0 2B B7 E6 BA B2 [20:00:17]CommunicateWithHost err = 0 [20:00:17]CheckOFDResponse [20:00:17]1017 (14) - 77093643461234 [20:00:17]1041 (16) - 0000000000965340 [20:00:17]1040 (4) - 188473 [20:00:17]1012 (4) - 22.10.2024 13:53 [20:00:17]1206 (1) - 0 [20:00:17]OFD Sender: Remove packet 188473 [20:00:17]ProducePacketName [20:00:17]name=ofd_packets/00188473 [20:00:17]NVStorageDeleteData [20:00:17]OFD Sender: No OFD packet to send [20:00:18]*** Cut start [20:00:18]*** Partial cut [20:00:18]*** CUTSNS_PIN = 1 [20:00:18]*** CUTSNS_PIN = 0 [20:00:18]*** Brake cut motor [20:00:18]Read from MH i2c: 01 [20:00:18]MH_I2C_Read... [20:00:18]*** Stop cut motor [20:00:18]*** Cut end [20:00:18]Read from MH i2c: 01 07 00 [20:00:18]MH_I2C_Read... [20:00:18]Read from MH i2c: 01 07 00 B3 15 00 00 00 00 00 FF 0F DD [20:00:18]process_action close_receipt done [20:00:18]requested_data is exist [20:00:18]produce_requested_data [20:00:18]requested_item fm.sn is exist - process it [20:00:18]wFMCommunicate request_size=4 [20:00:18]MH_SAM_APDU [20:00:18]CAPDU: 80 11 00 00 [20:00:18]Write to MH i2c: E2 08 00 B4 15 80 11 00 00 00 00 00 00 43 [20:00:18]Write i2c OK [20:00:18]MH_I2C_Read... [20:00:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:00:19]Read from MH i2c: E2 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 17 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 17 00 B4 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [20:00:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:00:19]wFMCommunicate OK [20:00:19]requested_item fd.num is exist - process it [20:00:19]SAM_PROTO_GetFieldsCounters [20:00:19]wFMCommunicate request_size=4 [20:00:19]MH_SAM_APDU [20:00:19]CAPDU: 80 13 00 00 [20:00:19]Write to MH i2c: E2 08 00 B5 15 80 13 00 00 00 00 00 00 46 [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:00:19]Read from MH i2c: E2 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 62 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 62 00 B5 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F6 01 00 00 5E 04 04 00 F6 01 00 00 57 04 04 00 F7 01 00 00 19 04 04 00 00 00 00 00 90 00 1B [20:00:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 39 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F6 01 00 00 5E 04 04 00 F6 01 00 00 57 04 04 00 F7 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:00:19]wFMCommunicate OK [20:00:19]SAM_PROTO_GetFieldsCounters done [20:00:19]requested_item shift.num is exist - process it [20:00:19]requested_item shift.opened is exist - process it [20:00:19]req_shift_opened [20:00:19]FM_GetShiftState [20:00:19]SAM_PROTO_GetShiftState [20:00:19]wFMCommunicate request_size=4 [20:00:19]MH_SAM_APDU [20:00:19]CAPDU: 80 13 01 00 [20:00:19]Write to MH i2c: E2 08 00 B6 15 80 13 01 00 00 00 00 00 48 [20:00:19]Write i2c OK [20:00:19]MH_I2C_Read... [20:00:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:00:19]Read from MH i2c: E2 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 0E 00 [20:00:19]MH_I2C_Read... [20:00:19]Read from MH i2c: E2 0E 00 B6 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3D [20:00:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:00:19]wFMCommunicate OK [20:00:19]SAM_PROTO_GetShiftState done [20:00:19]FM_GetShiftState done [20:00:19]req_shift_opened done [20:00:19]requested_item shift.open_date is exist - process it [20:00:19]req_shift_open_date [20:00:19]req_shift_open_date done [20:00:19]produce_requested_data done [20:00:19]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188473,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:00:19]process_action_free close_receipt [20:00:19]json_value_free [20:00:19]json_value_free done [20:00:19]process_json_proto returns [20:00:19]Send response to host [20:00:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188473,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:00:19]free response buf [20:00:19]execute_script done [20:00:19]execute_script returns [20:00:19]free content buf [20:00:19]Sock 7.Close socket [20:00:19]Sock 7.Thread stoped [20:00:22]OFD Sender: No OFD packet to send [20:00:27]OFD Sender: No OFD packet to send [20:00:33]OFD Sender: No OFD packet to send [20:00:38]OFD Sender: No OFD packet to send [20:00:43]OFD Sender: No OFD packet to send [20:00:48]OFD Sender: No OFD packet to send [20:00:53]OFD Sender: No OFD packet to send [20:00:58]OFD Sender: No OFD packet to send [20:01:03]OFD Sender: No OFD packet to send [20:01:08]OFD Sender: No OFD packet to send [20:01:13]OFD Sender: No OFD packet to send [20:01:18]OFD Sender: No OFD packet to send [20:01:23]OFD Sender: No OFD packet to send [20:01:28]OFD Sender: No OFD packet to send [20:01:33]OFD Sender: No OFD packet to send [20:01:38]OFD Sender: No OFD packet to send [20:01:43]OFD Sender: No OFD packet to send [20:01:48]OFD Sender: No OFD packet to send [20:01:53]OFD Sender: No OFD packet to send [20:01:58]OFD Sender: No OFD packet to send [20:02:03]OFD Sender: No OFD packet to send [20:02:08]OFD Sender: No OFD packet to send [20:02:13]OFD Sender: No OFD packet to send [20:02:18]OFD Sender: No OFD packet to send [20:02:23]OFD Sender: No OFD packet to send [20:02:28]OFD Sender: No OFD packet to send [20:02:33]OFD Sender: No OFD packet to send [20:02:38]OFD Sender: No OFD packet to send [20:02:43]accept exits with 10 [20:02:43]New connection [20:02:43]New thread 3066756452 created [20:02:43]Thread 3066613092 joined [20:02:43]Waiting for new connection... [20:02:43] Sock 10.Parse request [20:02:43]Sock 10.Check first char [20:02:43]Sock 10.First char is OK [20:02:43]request: POST /json_proto HTTP/1.0 [20:02:43]Method: POST [20:02:43]URL: /json_proto [20:02:43]Method is POST - this is cgi request [20:02:43]url: /json_proto [20:02:43]query_string will be loaded in cgi processing [20:02:43]execute_cgi json_proto POST (null) [20:02:43]execute_cgi path=json_proto method=POST [20:02:43]POST find Content-Length [20:02:43]Host: 172.17.42.131:8080 [20:02:43]Content-Length: 769 [20:02:43]Content-Type: application/json [20:02:43] [20:02:43]POST finish read [20:02:43]Found Content-Length = 769 [20:02:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210534", "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" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:43]execute_script... [20:02: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)210534", "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" : 33.700, "sum" : 2500.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:02:43]POST & json_proto [20:02:43]process_json_proto [20:02:43]json parsed OK: [20:02:43]protocol is kg_v1.0 [20:02:43]action value=close_receipt [20:02:43]process_action close_receipt [20:02:43]cmd_close_receipt [20:02:43]MH_GetDate [20:02:43]Write to MH i2c: F0 00 00 B7 15 BB [20:02:43]Write i2c OK [20:02:43]MH_I2C_Read... [20:02:43]Read from MH i2c: F0 [20:02:43]MH_I2C_Read... [20:02:43]Read from MH i2c: F0 09 00 [20:02:43]MH_I2C_Read... [20:02:43]Read from MH i2c: F0 09 00 B7 15 00 E4 04 18 67 A0 18 CA 66 13 [20:02:43]GetLastDocTimeStamp 1729627216 [20:02:43]current date 1729627364 [20:02:43]FM_GetShiftState [20:02:43]SAM_PROTO_GetShiftState [20:02:43]wFMCommunicate request_size=4 [20:02:43]MH_SAM_APDU [20:02:43]CAPDU: 80 13 01 00 [20:02:43]Write to MH i2c: E2 08 00 B8 15 80 13 01 00 00 00 00 00 4A [20:02:43]Write i2c OK [20:02:43]MH_I2C_Read... [20:02:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:43]Read from MH i2c: E2 [20:02:43]MH_I2C_Read... [20:02:43]Read from MH i2c: E2 0E 00 [20:02:43]MH_I2C_Read... [20:02:43]Read from MH i2c: E2 0E 00 B8 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3F [20:02:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:02:43]wFMCommunicate OK [20:02:43]SAM_PROTO_GetShiftState done [20:02:43]FM_GetShiftState done [20:02:43]opened in 1729556094 [20:02:43]opened+sec_in_day 1729642494 [20:02:43]quantity*price = 250054 [20:02:43]sum+1 = 250055 [20:02:43]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.54 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.54 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 503 22.10.2024 20:02 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188474 ФПД: 263596011215728 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188474&fm=263596011215728&tin=02508201610067®Number=0000000000100030&sum=250054 [20:02:44]StoreToDocumentArchive [20:02:44]shift 461 fd 188474 [20:02:44]save to /storage/0461/doc_00188474 [20:02:44]save last doc name /storage/0461/doc_00188474 to /storage/kkm_last_doc_name [20:02:44]save OK [20:02:44]Clear old archive folders... [20:02:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:02:44]tlvbuf is B6E78930 [20:02:44]SAM_PROTO_ClearQueue [20:02:44]wFMCommunicate request_size=4 [20:02:44]MH_SAM_APDU [20:02:44]CAPDU: 80 09 00 00 [20:02:44]Write to MH i2c: E2 08 00 C5 15 80 09 00 00 00 00 00 00 4C [20:02:44]Write i2c OK [20:02:44]MH_I2C_Read... [20:02:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:02:44]Read from MH i2c: E2 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: E2 03 00 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: E2 03 00 C5 15 00 90 00 4E [20:02:44]RAPDU: 90 00 [20:02:44]wFMCommunicate OK [20:02:44]SAM_PROTO_ClearQueue done [20:02:44]KKMCreateOFDPacket [20:02:44]OFDProtocolAddRootSTLVToBuf [20:02:44]FM_MakeSignedData [20:02:44]FM_MakeSignedData [20:02:44]SAM_PROTO_SignData [20:02:44]wFMCommunicate request_size=4 [20:02:44]MH_SAM_APDU [20:02:44]CAPDU: 80 0D 01 02 [20:02:44]Write to MH i2c: E2 08 00 C6 15 80 0D 01 02 00 00 00 00 54 [20:02:44]Write i2c OK [20:02:44]MH_I2C_Read... [20:02:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:02:44]Read from MH i2c: E2 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: E2 03 00 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: E2 03 00 C6 15 00 90 00 4F [20:02:44]RAPDU: 90 00 [20:02:44]wFMCommunicate OK [20:02:44]wFMCommunicate request_size=255 [20:02:44]MH_SAM_APDU [20:02:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 E4 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E0 02 00 35 04 06 00 EF [20:02:44]Write to MH i2c: E2 02 01 C7 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 E4 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E0 02 00 35 04 06 00 EF 00 00 56 [20:02:44]Write i2c OK [20:02:44]MH_I2C_Read... [20:02:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:44]Read from MH i2c: E2 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: E2 03 00 [20:02:44]MH_I2C_Read... [20:02:44]Read from MH i2c: E2 03 00 C7 15 00 90 00 50 [20:02:44]RAPDU: 90 00 [20:02:44]wFMCommunicate OK [20:02:44]wFMCommunicate request_size=10 [20:02:44]MH_SAM_APDU [20:02:44]CAPDU: 80 0D 02 02 05 BD 3A 9C DB 70 [20:02:44]Write to MH i2c: E2 0D 00 C8 15 80 0D 02 02 05 00 BD 3A 9C DB 70 00 00 3F [20:02:44]Write i2c OK [20:02:44]MH_I2C_Read... [20:02:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:02:45]Read from MH i2c: E2 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 03 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 03 00 C8 15 00 90 00 51 [20:02:45]RAPDU: 90 00 [20:02:45]wFMCommunicate OK [20:02:45]wFMCommunicate request_size=4 [20:02:45]MH_SAM_APDU [20:02:45]CAPDU: 80 0D 03 02 [20:02:45]Write to MH i2c: E2 08 00 C9 15 80 0D 03 02 00 00 00 00 59 [20:02:45]Write i2c OK [20:02:45]MH_I2C_Read... [20:02:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:02:45]Read from MH i2c: E2 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 0B 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 0B 00 C9 15 00 69 36 C6 59 74 79 39 7C 90 00 BA [20:02:45]RAPDU: 69 36 C6 59 74 79 39 7C 90 00 [20:02:45]wFMCommunicate OK [20:02:45]SAM_PROTO_SignData done [20:02:45]FM_MakeSignedData done [20:02:45]CreateOFDProtocolMessage [20:02:45]wFMCommunicate request_size=4 [20:02:45]MH_SAM_APDU [20:02:45]CAPDU: 80 11 00 00 [20:02:45]Write to MH i2c: E2 08 00 CA 15 80 11 00 00 00 00 00 00 59 [20:02:45]Write i2c OK [20:02:45]MH_I2C_Read... [20:02:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:45]Read from MH i2c: E2 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 17 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: E2 17 00 CA 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A7 [20:02:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:02:45]wFMCommunicate OK [20:02:45]CreateOFDProtocolMessage done [20:02:45]OFDSenderStorePacket 188474 [20:02:45]StoreOFDPacket docnum=188474 [20:02:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 AA 07 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 E4 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E0 02 00 35 04 06 00 EF BD 3A 9C DB 70 69 36 C6 59 74 79 39 7C [20:02:45]CheckFolder [20:02:45]dirname=/storage/ofd_packets [20:02:45]CheckFolder done [20:02:45]ProducePacketName [20:02:45]name=ofd_packets/00188474 [20:02:45]NVStorageSaveData ofd_packets/00188474 [20:02:45]File name is /storage/ofd_packets/00188474 [20:02:45]Write 301 bytes [20:02:45]NVStorageSaveData done [20:02:45]OFDSenderStorePacket done [20:02:45]KKMCreateOFDPacket done [20:02:45]NVStorageSaveData kkm_last_timestamp [20:02:45]File name is /storage/kkm_last_timestamp [20:02:45]Write 4 bytes [20:02:45]NVStorageSaveData done [20:02:45]ExternCall_PrintAddStr [20:02:45]wPrintStart [20:02:45]Write to MH i2c: 01 00 00 CB 15 E0 [20:02:45]Write i2c OK [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: 01 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: 01 07 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: 01 07 00 CB 15 00 00 00 00 00 FF 0F F5 [20:02:45]RasterBufferAndPrint [20:02:45]line Счет N : (1)210534 [20:02:45]line ИНН: 02508201610067 [20:02:45]line Контрольно-Кассовый Чек [20:02:45]line ПРОДАЖА [20:02:45]line ТРК (МРК, ГНК) : 43 [20:02:45]line Товар: 2710124500 [20:02:45]line Аи-95-К-3 [20:02:45]line 33.700 * 74.20 [20:02:45]line = 2500.54 [20:02:45]line НДС 12% НСП 1% [20:02:45]line > о реализуемом товаре [20:02:45]line ИТОГО: 2500.54 [20:02:45]line НСП 1% : 22.13 [20:02:45]line НДС 12% : 265.54 [20:02:45]line Наличными: 0.00 [20:02:45]line Безнал.: 2500.54 [20:02:45]line Место: АЗС № 86 "Партнер Нефть" [20:02:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:02:45]line СНО: Общий режим [20:02:45]line Чек 503 22.10.2024 20:02 [20:02:45]line Смена: 461 ФФД: 1.0 [20:02:45]line ЗНМ: 0300000155 [20:02:45]line РНМ: 0000000000100030 [20:02:45]line Версия ККМ: 001 [20:02:45]line Платежная система: Mbank [20:02:45]line ФМ: 0000000000965340 [20:02:45]line ФД: 188474 [20:02:45]line ФПД: 263596011215728 [20:02:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200244&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188474&fm=263596011215728&tin=02508201610067®Number=0000000000100030&sum=250054 [20:02:45]written 0, free lines is 4095 [20:02:45]OFD Sender: Processing packet 188474 [packets to send 1062, broken 1061] [20:02:45]ProducePacketName [20:02:45]name=ofd_packets/00188474 [20:02:45]OFD Sender: To server: pG, [20:02:45]CommunicateWithHost lk.salyk.kg:30040 [20:02:45]ConnectInit lk.salyk.kg [20:02:45]Connected sock=9 [20:02:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 76 AA 07 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 F7 01 00 00 F4 03 04 00 E4 04 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3A E0 02 00 35 04 06 00 EF BD 3A 9C DB 70 69 36 C6 59 74 79 39 7C [20:02:45]Write to MH i2c: 01 00 00 F4 15 09 [20:02:45]Write i2c OK [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: 01 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: 01 07 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: 01 07 00 F4 15 00 00 00 00 00 A0 0C BC [20:02:45]RasterBufferAndPrint [20:02:45]line [20:02:45]line [20:02:45]line [20:02:45]line [20:02:45]line [20:02:45]written 0, free lines is 3236 [20:02:45]MH_Cut [20:02:45]Write to MH i2c: D1 01 00 FB 15 01 E2 [20:02:45]Write i2c OK [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: D1 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: D1 01 00 [20:02:45]MH_I2C_Read... [20:02:45]Read from MH i2c: D1 01 00 FB 15 00 E1 [20:02:45]Write to MH i2c: 01 00 00 FC 15 11 [20:02:45]Write i2c OK [20:02:45]MH_I2C_Read... [20:02:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 5B AA 47 00 EF 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 39 36 35 33 34 30 10 04 04 00 3A E0 02 00 F4 03 04 00 D1 AE 17 67 B6 04 01 00 00 D7 04 93 85 1A 79 E8 9D [20:02:45]CommunicateWithHost err = 0 [20:02:45]CheckOFDResponse [20:02:45]1017 (14) - 77093643461234 [20:02:45]1041 (16) - 0000000000965340 [20:02:45]1040 (4) - 188474 [20:02:45]1012 (4) - 22.10.2024 13:55 [20:02:45]1206 (1) - 0 [20:02:45]OFD Sender: Remove packet 188474 [20:02:45]ProducePacketName [20:02:45]name=ofd_packets/00188474 [20:02:45]NVStorageDeleteData [20:02:46]OFD Sender: No OFD packet to send [20:02:46]*** Cut start [20:02:46]*** Partial cut [20:02:46]*** CUTSNS_PIN = 1 [20:02:46]*** CUTSNS_PIN = 0 [20:02:47]*** Brake cut motor [20:02:47]Read from MH i2c: 01 [20:02:47]MH_I2C_Read... [20:02:47]*** Stop cut motor [20:02:47]*** Cut end [20:02:47]Read from MH i2c: 01 07 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: 01 07 00 FC 15 00 00 00 00 00 FF 0F 26 [20:02:47]process_action close_receipt done [20:02:47]requested_data is exist [20:02:47]produce_requested_data [20:02:47]requested_item fm.sn is exist - process it [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 11 00 00 [20:02:47]Write to MH i2c: E2 08 00 FD 15 80 11 00 00 00 00 00 00 8C [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 17 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 17 00 FD 15 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DA [20:02:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:02:47]wFMCommunicate OK [20:02:47]requested_item fd.num is exist - process it [20:02:47]SAM_PROTO_GetFieldsCounters [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 13 00 00 [20:02:47]Write to MH i2c: E2 08 00 FE 15 80 13 00 00 00 00 00 00 8F [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 62 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 62 00 FE 15 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F7 01 00 00 5E 04 04 00 F7 01 00 00 57 04 04 00 F8 01 00 00 19 04 04 00 00 00 00 00 90 00 68 [20:02:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F7 01 00 00 5E 04 04 00 F7 01 00 00 57 04 04 00 F8 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:02:47]wFMCommunicate OK [20:02:47]SAM_PROTO_GetFieldsCounters done [20:02:47]requested_item shift.num is exist - process it [20:02:47]requested_item shift.opened is exist - process it [20:02:47]req_shift_opened [20:02:47]FM_GetShiftState [20:02:47]SAM_PROTO_GetShiftState [20:02:47]wFMCommunicate request_size=4 [20:02:47]MH_SAM_APDU [20:02:47]CAPDU: 80 13 01 00 [20:02:47]Write to MH i2c: E2 08 00 FF 15 80 13 01 00 00 00 00 00 91 [20:02:47]Write i2c OK [20:02:47]MH_I2C_Read... [20:02:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:02:47]Read from MH i2c: E2 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 0E 00 [20:02:47]MH_I2C_Read... [20:02:47]Read from MH i2c: E2 0E 00 FF 15 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 86 [20:02:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:02:47]wFMCommunicate OK [20:02:47]SAM_PROTO_GetShiftState done [20:02:47]FM_GetShiftState done [20:02:47]req_shift_opened done [20:02:47]requested_item shift.open_date is exist - process it [20:02:47]req_shift_open_date [20:02:47]req_shift_open_date done [20:02:47]produce_requested_data done [20:02:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188474,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:02:47]process_action_free close_receipt [20:02:47]json_value_free [20:02:47]json_value_free done [20:02:47]process_json_proto returns [20:02:47]Send response to host [20:02:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188474,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:02:47]free response buf [20:02:47]execute_script done [20:02:47]execute_script returns [20:02:47]free content buf [20:02:47]Sock 10.Close socket [20:02:47]Sock 10.Thread stoped [20:02:51]OFD Sender: No OFD packet to send [20:02:56]OFD Sender: No OFD packet to send [20:03:01]OFD Sender: No OFD packet to send [20:03:06]OFD Sender: No OFD packet to send [20:03:11]OFD Sender: No OFD packet to send [20:03:16]OFD Sender: No OFD packet to send [20:03:21]OFD Sender: No OFD packet to send [20:03:26]OFD Sender: No OFD packet to send [20:03:31]OFD Sender: No OFD packet to send [20:03:36]OFD Sender: No OFD packet to send [20:03:41]OFD Sender: No OFD packet to send [20:03:46]OFD Sender: No OFD packet to send [20:03:51]OFD Sender: No OFD packet to send [20:03:56]OFD Sender: No OFD packet to send [20:04:01]OFD Sender: No OFD packet to send [20:04:06]OFD Sender: No OFD packet to send [20:04:11]OFD Sender: No OFD packet to send [20:04:16]OFD Sender: No OFD packet to send [20:04:21]OFD Sender: No OFD packet to send [20:04:26]OFD Sender: No OFD packet to send [20:04:31]OFD Sender: No OFD packet to send [20:04:36]OFD Sender: No OFD packet to send [20:04:41]OFD Sender: No OFD packet to send [20:04:46]OFD Sender: No OFD packet to send [20:04:51]OFD Sender: No OFD packet to send [20:04:56]OFD Sender: No OFD packet to send [20:05:01]OFD Sender: No OFD packet to send [20:05:06]OFD Sender: No OFD packet to send [20:05:11]OFD Sender: No OFD packet to send [20:05:17]OFD Sender: No OFD packet to send [20:05:22]OFD Sender: No OFD packet to send [20:05:27]OFD Sender: No OFD packet to send [20:05:32]OFD Sender: No OFD packet to send [20:05:37]OFD Sender: No OFD packet to send [20:05:42]OFD Sender: No OFD packet to send [20:05:47]OFD Sender: No OFD packet to send [20:05:52]OFD Sender: No OFD packet to send [20:05:57]OFD Sender: No OFD packet to send [20:06:02]OFD Sender: No OFD packet to send [20:06:07]OFD Sender: No OFD packet to send [20:06:12]OFD Sender: No OFD packet to send [20:06:17]OFD Sender: No OFD packet to send [20:06:22]OFD Sender: No OFD packet to send [20:06:27]OFD Sender: No OFD packet to send [20:06:32]OFD Sender: No OFD packet to send [20:06:37]OFD Sender: No OFD packet to send [20:06:42]OFD Sender: No OFD packet to send [20:06:47]OFD Sender: No OFD packet to send [20:06:52]OFD Sender: No OFD packet to send [20:06:57]OFD Sender: No OFD packet to send [20:07:02]OFD Sender: No OFD packet to send [20:07:07]OFD Sender: No OFD packet to send [20:07:12]OFD Sender: No OFD packet to send [20:07:17]OFD Sender: No OFD packet to send [20:07:22]OFD Sender: No OFD packet to send [20:07:27]OFD Sender: No OFD packet to send [20:07:32]OFD Sender: No OFD packet to send [20:07:37]OFD Sender: No OFD packet to send [20:07:42]OFD Sender: No OFD packet to send [20:07:47]OFD Sender: No OFD packet to send [20:07:52]OFD Sender: No OFD packet to send [20:07:57]OFD Sender: No OFD packet to send [20:08:02]OFD Sender: No OFD packet to send [20:08:07]OFD Sender: No OFD packet to send [20:08:12]OFD Sender: No OFD packet to send [20:08:17]OFD Sender: No OFD packet to send [20:08:22]OFD Sender: No OFD packet to send [20:08:27]OFD Sender: No OFD packet to send [20:08:32]OFD Sender: No OFD packet to send [20:08:37]OFD Sender: No OFD packet to send [20:08:41]accept exits with 7 [20:08:41]New connection [20:08:41]New thread 3066613092 created [20:08:41]Thread 3066756452 joined [20:08:41]Waiting for new connection... [20:08:41] Sock 7.Parse request [20:08:41]Sock 7.Check first char [20:08:41]Sock 7.First char is OK [20:08:41]request: POST /json_proto HTTP/1.0 [20:08:41]Method: POST [20:08:41]URL: /json_proto [20:08:41]Method is POST - this is cgi request [20:08:41]url: /json_proto [20:08:41]query_string will be loaded in cgi processing [20:08:41]execute_cgi json_proto POST (null) [20:08:41]execute_cgi path=json_proto method=POST [20:08:41]POST find Content-Length [20:08:41]Host: 172.17.42.131:8080 [20:08:41]Content-Length: 679 [20:08:41]Content-Type: application/json [20:08:41] [20:08:41]POST finish read [20:08:41]Found Content-Length = 679 [20:08:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [20:08:41]execute_script... [20:08: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)210535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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" ] } } [20:08:41]POST & json_proto [20:08:41]process_json_proto [20:08:41]json parsed OK: [20:08:41]protocol is kg_v1.0 [20:08:41]action value=close_receipt [20:08:41]process_action close_receipt [20:08:41]cmd_close_receipt [20:08:41]MH_GetDate [20:08:41]Write to MH i2c: F0 00 00 00 16 05 [20:08:41]Write i2c OK [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: F0 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: F0 09 00 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: F0 09 00 00 16 00 4B 06 18 67 A0 18 CA 66 C6 [20:08:41]GetLastDocTimeStamp 1729627364 [20:08:41]current date 1729627723 [20:08:41]FM_GetShiftState [20:08:41]SAM_PROTO_GetShiftState [20:08:41]wFMCommunicate request_size=4 [20:08:41]MH_SAM_APDU [20:08:41]CAPDU: 80 13 01 00 [20:08:41]Write to MH i2c: E2 08 00 01 16 80 13 01 00 00 00 00 00 94 [20:08:41]Write i2c OK [20:08:41]MH_I2C_Read... [20:08:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:41]Read from MH i2c: E2 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: E2 0E 00 [20:08:41]MH_I2C_Read... [20:08:41]Read from MH i2c: E2 0E 00 01 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 89 [20:08:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:08:41]wFMCommunicate OK [20:08:41]SAM_PROTO_GetShiftState done [20:08:41]FM_GetShiftState done [20:08:41]opened in 1729556094 [20:08:41]opened+sec_in_day 1729642494 [20:08:41]quantity*price = 100050 [20:08:41]sum+1 = 100052 [20:08:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 504 22.10.2024 20:08 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188475 ФПД: 226431223337344 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188475&fm=226431223337344&tin=02508201610067®Number=0000000000100030&sum=100000 [20:08:42]StoreToDocumentArchive [20:08:42]shift 461 fd 188475 [20:08:42]save to /storage/0461/doc_00188475 [20:08:42]save last doc name /storage/0461/doc_00188475 to /storage/kkm_last_doc_name [20:08:42]save OK [20:08:42]Clear old archive folders... [20:08:42]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:08:42]tlvbuf is 0098D310 [20:08:42]SAM_PROTO_ClearQueue [20:08:42]wFMCommunicate request_size=4 [20:08:42]MH_SAM_APDU [20:08:42]CAPDU: 80 09 00 00 [20:08:42]Write to MH i2c: E2 08 00 0E 16 80 09 00 00 00 00 00 00 96 [20:08:42]Write i2c OK [20:08:42]MH_I2C_Read... [20:08:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:42]Read from MH i2c: E2 [20:08:42]MH_I2C_Read... [20:08:42]Read from MH i2c: E2 03 00 [20:08:42]MH_I2C_Read... [20:08:42]Read from MH i2c: E2 03 00 0E 16 00 90 00 98 [20:08:42]RAPDU: 90 00 [20:08:42]wFMCommunicate OK [20:08:42]SAM_PROTO_ClearQueue done [20:08:42]KKMCreateOFDPacket [20:08:42]OFDProtocolAddRootSTLVToBuf [20:08:42]FM_MakeSignedData [20:08:42]FM_MakeSignedData [20:08:42]SAM_PROTO_SignData [20:08:42]wFMCommunicate request_size=4 [20:08:42]MH_SAM_APDU [20:08:42]CAPDU: 80 0D 01 02 [20:08:42]Write to MH i2c: E2 08 00 0F 16 80 0D 01 02 00 00 00 00 9E [20:08:42]Write i2c OK [20:08:42]MH_I2C_Read... [20:08:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:42]Read from MH i2c: E2 [20:08:42]MH_I2C_Read... [20:08:42]Read from MH i2c: E2 03 00 [20:08:42]MH_I2C_Read... [20:08:42]Read from MH i2c: E2 03 00 0F 16 00 90 00 99 [20:08:42]RAPDU: 90 00 [20:08:42]wFMCommunicate OK [20:08:42]wFMCommunicate request_size=255 [20:08:42]MH_SAM_APDU [20:08:42]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F8 01 00 00 F4 03 04 00 4B 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E0 02 00 35 04 06 00 CD F0 20 A2 [20:08:42]Write to MH i2c: E2 02 01 10 16 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F8 01 00 00 F4 03 04 00 4B 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E0 02 00 35 04 06 00 CD F0 20 A2 00 00 3C [20:08:42]Write i2c OK [20:08:42]MH_I2C_Read... [20:08:42]OFD Sender: No OFD packet to send [20:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 10 16 00 90 00 9A [20:08:43]RAPDU: 90 00 [20:08:43]wFMCommunicate OK [20:08:43]wFMCommunicate request_size=7 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 0D 02 02 02 11 80 [20:08:43]Write to MH i2c: E2 0A 00 11 16 80 0D 02 02 02 00 11 80 00 00 36 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 03 00 11 16 00 90 00 9B [20:08:43]RAPDU: 90 00 [20:08:43]wFMCommunicate OK [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 0D 03 02 [20:08:43]Write to MH i2c: E2 08 00 12 16 80 0D 03 02 00 00 00 00 A3 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 0B 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 0B 00 12 16 00 C9 22 6B 62 5F 93 D5 BF 90 00 E2 [20:08:43]RAPDU: C9 22 6B 62 5F 93 D5 BF 90 00 [20:08:43]wFMCommunicate OK [20:08:43]SAM_PROTO_SignData done [20:08:43]FM_MakeSignedData done [20:08:43]CreateOFDProtocolMessage [20:08:43]wFMCommunicate request_size=4 [20:08:43]MH_SAM_APDU [20:08:43]CAPDU: 80 11 00 00 [20:08:43]Write to MH i2c: E2 08 00 13 16 80 11 00 00 00 00 00 00 A3 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:43]Read from MH i2c: E2 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 17 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: E2 17 00 13 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F1 [20:08:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:43]wFMCommunicate OK [20:08:43]CreateOFDProtocolMessage done [20:08:43]OFDSenderStorePacket 188475 [20:08:43]StoreOFDPacket docnum=188475 [20:08:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1D 8C 04 01 6F 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F8 01 00 00 F4 03 04 00 4B 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E0 02 00 35 04 06 00 CD F0 20 A2 11 80 C9 22 6B 62 5F 93 D5 BF [20:08:43]CheckFolder [20:08:43]dirname=/storage/ofd_packets [20:08:43]CheckFolder done [20:08:43]ProducePacketName [20:08:43]name=ofd_packets/00188475 [20:08:43]NVStorageSaveData ofd_packets/00188475 [20:08:43]File name is /storage/ofd_packets/00188475 [20:08:43]Write 298 bytes [20:08:43]NVStorageSaveData done [20:08:43]OFDSenderStorePacket done [20:08:43]KKMCreateOFDPacket done [20:08:43]NVStorageSaveData kkm_last_timestamp [20:08:43]File name is /storage/kkm_last_timestamp [20:08:43]Write 4 bytes [20:08:43]NVStorageSaveData done [20:08:43]ExternCall_PrintAddStr [20:08:43]wPrintStart [20:08:43]Write to MH i2c: 01 00 00 14 16 2A [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 07 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 07 00 14 16 00 00 00 00 00 FF 0F 3F [20:08:43]RasterBufferAndPrint [20:08:43]line Счет N : (1)210535 [20:08:43]line ИНН: 02508201610067 [20:08:43]line Контрольно-Кассовый Чек [20:08:43]line ПРОДАЖА [20:08:43]line ТРК (МРК, ГНК) : 51 [20:08:43]line Товар: 2710194210 [20:08:43]line ДТ-К-5 [20:08:43]line 13.130 * 76.20 [20:08:43]line = 1000.51 [20:08:43]line НДС 12% НСП 1% [20:08:43]line > о реализуемом товаре [20:08:43]line ОКРУГЛЕНИЕ: -0.51 [20:08:43]line ИТОГО: 1000.00 [20:08:43]line Внесено: 1000.00 [20:08:43]line СДАЧА: 0.00 [20:08:43]line НСП 1% : 8.85 [20:08:43]line НДС 12% : 106.25 [20:08:43]line Наличными: 1000.00 [20:08:43]line Безнал.: 0.00 [20:08:43]line Место: АЗС № 86 "Партнер Нефть" [20:08:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:08:43]line СНО: Общий режим [20:08:43]line Чек 504 22.10.2024 20:08 [20:08:43]line Смена: 461 ФФД: 1.0 [20:08:43]line ЗНМ: 0300000155 [20:08:43]line РНМ: 0000000000100030 [20:08:43]line Версия ККМ: 001 [20:08:43]line ФМ: 0000000000965340 [20:08:43]line ФД: 188475 [20:08:43]line ФПД: 226431223337344 [20:08:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200843&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188475&fm=226431223337344&tin=02508201610067®Number=0000000000100030&sum=100000 [20:08:43]written 0, free lines is 4095 [20:08:43]OFD Sender: Processing packet 188475 [packets to send 1062, broken 1061] [20:08:43]ProducePacketName [20:08:43]name=ofd_packets/00188475 [20:08:43]OFD Sender: To server: pG, [20:08:43]CommunicateWithHost lk.salyk.kg:30040 [20:08:43]ConnectInit lk.salyk.kg [20:08:43]Connected sock=10 [20:08:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 1D 8C 04 01 6F 54 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 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 F8 01 00 00 F4 03 04 00 4B 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E0 02 00 35 04 06 00 CD F0 20 A2 11 80 C9 22 6B 62 5F 93 D5 BF [20:08:43]Write to MH i2c: 01 00 00 3F 16 55 [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 07 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: 01 07 00 3F 16 00 00 00 00 00 69 0C D1 [20:08:43]RasterBufferAndPrint [20:08:43]line [20:08:43]line [20:08:43]line [20:08:43]line [20:08:43]line [20:08:43]written 0, free lines is 3180 [20:08:43]MH_Cut [20:08:43]Write to MH i2c: D1 01 00 46 16 01 2E [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: D1 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: D1 01 00 [20:08:43]MH_I2C_Read... [20:08:43]Read from MH i2c: D1 01 00 46 16 00 2D [20:08:43]Write to MH i2c: 01 00 00 47 16 5D [20:08:43]Write i2c OK [20:08:43]MH_I2C_Read... [20:08:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 7D 47 00 B2 47 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3B E0 02 00 F4 03 04 00 37 B0 17 67 B6 04 01 00 00 00 3E 19 85 09 C6 CC 00 [20:08:44]CommunicateWithHost err = 0 [20:08:44]CheckOFDResponse [20:08:44]1017 (14) - 77093643461234 [20:08:44]1041 (16) - 0000000000965340 [20:08:44]1040 (4) - 188475 [20:08:44]1012 (4) - 22.10.2024 14:01 [20:08:44]1206 (1) - 0 [20:08:44]OFD Sender: Remove packet 188475 [20:08:44]ProducePacketName [20:08:44]name=ofd_packets/00188475 [20:08:44]NVStorageDeleteData [20:08:44]OFD Sender: No OFD packet to send [20:08:45]*** Cut start [20:08:45]*** Partial cut [20:08:45]*** CUTSNS_PIN = 1 [20:08:45]*** CUTSNS_PIN = 0 [20:08:45]*** Brake cut motor [20:08:45]Read from MH i2c: 01 [20:08:45]MH_I2C_Read... [20:08:45]*** Stop cut motor [20:08:45]*** Cut end [20:08:45]Read from MH i2c: 01 07 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: 01 07 00 47 16 00 00 00 00 00 FF 0F 72 [20:08:45]process_action close_receipt done [20:08:45]requested_data is exist [20:08:45]produce_requested_data [20:08:45]requested_item fm.sn is exist - process it [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 11 00 00 [20:08:45]Write to MH i2c: E2 08 00 48 16 80 11 00 00 00 00 00 00 D8 [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 17 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 17 00 48 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 26 [20:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:08:45]wFMCommunicate OK [20:08:45]requested_item fd.num is exist - process it [20:08:45]SAM_PROTO_GetFieldsCounters [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 13 00 00 [20:08:45]Write to MH i2c: E2 08 00 49 16 80 13 00 00 00 00 00 00 DB [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 62 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 62 00 49 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F8 01 00 00 5E 04 04 00 F8 01 00 00 57 04 04 00 F9 01 00 00 19 04 04 00 00 00 00 00 90 00 B8 [20:08:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F8 01 00 00 5E 04 04 00 F8 01 00 00 57 04 04 00 F9 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:08:45]wFMCommunicate OK [20:08:45]SAM_PROTO_GetFieldsCounters done [20:08:45]requested_item shift.num is exist - process it [20:08:45]requested_item shift.opened is exist - process it [20:08:45]req_shift_opened [20:08:45]FM_GetShiftState [20:08:45]SAM_PROTO_GetShiftState [20:08:45]wFMCommunicate request_size=4 [20:08:45]MH_SAM_APDU [20:08:45]CAPDU: 80 13 01 00 [20:08:45]Write to MH i2c: E2 08 00 4A 16 80 13 01 00 00 00 00 00 DD [20:08:45]Write i2c OK [20:08:45]MH_I2C_Read... [20:08:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:45]Read from MH i2c: E2 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 0E 00 [20:08:45]MH_I2C_Read... [20:08:45]Read from MH i2c: E2 0E 00 4A 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D2 [20:08:45]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:08:45]wFMCommunicate OK [20:08:45]SAM_PROTO_GetShiftState done [20:08:45]FM_GetShiftState done [20:08:45]req_shift_opened done [20:08:45]requested_item shift.open_date is exist - process it [20:08:45]req_shift_open_date [20:08:45]req_shift_open_date done [20:08:45]produce_requested_data done [20:08:45]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188475,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:08:45]process_action_free close_receipt [20:08:45]json_value_free [20:08:45]json_value_free done [20:08:45]process_json_proto returns [20:08:45]Send response to host [20:08:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188475,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:08:45]free response buf [20:08:45]execute_script done [20:08:45]execute_script returns [20:08:45]free content buf [20:08:45]Sock 7.Close socket [20:08:45]Sock 7.Thread stoped [20:08:49]OFD Sender: No OFD packet to send [20:08:54]OFD Sender: No OFD packet to send [20:08:59]OFD Sender: No OFD packet to send [20:09:04]accept exits with 9 [20:09:04]New connection [20:09:04]New thread 3066756452 created [20:09:04]Thread 3066613092 joined [20:09:04]Waiting for new connection... [20:09:04] Sock 9.Parse request [20:09:04]Sock 9.Check first char [20:09:04]Sock 9.First char is OK [20:09:04]request: POST /json_proto HTTP/1.0 [20:09:04]Method: POST [20:09:04]URL: /json_proto [20:09:04]Method is POST - this is cgi request [20:09:04]url: /json_proto [20:09:04]query_string will be loaded in cgi processing [20:09:04]execute_cgi json_proto POST (null) [20:09:04]execute_cgi path=json_proto method=POST [20:09:04]POST find Content-Length [20:09:04]Host: 172.17.42.131:8080 [20:09:04]Content-Length: 769 [20:09:04]Content-Type: application/json [20:09:04] [20:09:04]POST finish read [20:09:04]Found Content-Length = 769 [20:09:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:04]execute_script... [20:09: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)210536", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.16 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:09:04]POST & json_proto [20:09:04]process_json_proto [20:09:04]json parsed OK: [20:09:04]protocol is kg_v1.0 [20:09:04]action value=close_receipt [20:09:04]process_action close_receipt [20:09:04]cmd_close_receipt [20:09:04]MH_GetDate [20:09:04]Write to MH i2c: F0 00 00 4B 16 50 [20:09:04]Write i2c OK [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: F0 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: F0 09 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: F0 09 00 4B 16 00 61 06 18 67 A0 18 CA 66 27 [20:09:04]GetLastDocTimeStamp 1729627723 [20:09:04]current date 1729627745 [20:09:04]FM_GetShiftState [20:09:04]SAM_PROTO_GetShiftState [20:09:04]wFMCommunicate request_size=4 [20:09:04]MH_SAM_APDU [20:09:04]CAPDU: 80 13 01 00 [20:09:04]Write to MH i2c: E2 08 00 4C 16 80 13 01 00 00 00 00 00 DF [20:09:04]Write i2c OK [20:09:04]MH_I2C_Read... [20:09:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:04]Read from MH i2c: E2 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 0E 00 [20:09:04]MH_I2C_Read... [20:09:04]Read from MH i2c: E2 0E 00 4C 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D4 [20:09:04]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:09:04]wFMCommunicate OK [20:09:04]SAM_PROTO_GetShiftState done [20:09:04]FM_GetShiftState done [20:09:04]opened in 1729556094 [20:09:04]opened+sec_in_day 1729642494 [20:09:04]quantity*price = 100015 [20:09:04]sum+1 = 100017 [20:09:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 505 22.10.2024 20:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188476 ФПД: 41485801927892 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200905&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188476&fm=41485801927892&tin=02508201610067®Number=0000000000100030&sum=100016 [20:09:05]StoreToDocumentArchive [20:09:05]shift 461 fd 188476 [20:09:05]save to /storage/0461/doc_00188476 [20:09:05]save last doc name /storage/0461/doc_00188476 to /storage/kkm_last_doc_name [20:09:05]save OK [20:09:05]Clear old archive folders... [20:09:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:05]tlvbuf is 008FCCA0 [20:09:05]SAM_PROTO_ClearQueue [20:09:05]wFMCommunicate request_size=4 [20:09:05]MH_SAM_APDU [20:09:05]CAPDU: 80 09 00 00 [20:09:05]Write to MH i2c: E2 08 00 59 16 80 09 00 00 00 00 00 00 E1 [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:05]Read from MH i2c: E2 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 59 16 00 90 00 E3 [20:09:05]RAPDU: 90 00 [20:09:05]wFMCommunicate OK [20:09:05]SAM_PROTO_ClearQueue done [20:09:05]KKMCreateOFDPacket [20:09:05]OFDProtocolAddRootSTLVToBuf [20:09:05]FM_MakeSignedData [20:09:05]FM_MakeSignedData [20:09:05]SAM_PROTO_SignData [20:09:05]wFMCommunicate request_size=4 [20:09:05]MH_SAM_APDU [20:09:05]CAPDU: 80 0D 01 02 [20:09:05]Write to MH i2c: E2 08 00 5A 16 80 0D 01 02 00 00 00 00 E9 [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:05]Read from MH i2c: E2 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 5A 16 00 90 00 E4 [20:09:05]RAPDU: 90 00 [20:09:05]wFMCommunicate OK [20:09:05]wFMCommunicate request_size=255 [20:09:05]MH_SAM_APDU [20:09: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 61 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E0 02 00 35 04 06 00 25 [20:09:05]Write to MH i2c: E2 02 01 5B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 61 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E0 02 00 35 04 06 00 25 00 00 67 [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:05]Read from MH i2c: E2 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 5B 16 00 90 00 E5 [20:09:05]RAPDU: 90 00 [20:09:05]wFMCommunicate OK [20:09:05]wFMCommunicate request_size=10 [20:09:05]MH_SAM_APDU [20:09:05]CAPDU: 80 0D 02 02 05 BB 2A 7C B4 D4 [20:09:05]Write to MH i2c: E2 0D 00 5C 16 80 0D 02 02 05 00 BB 2A 7C B4 D4 00 00 DF [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:05]Read from MH i2c: E2 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 03 00 5C 16 00 90 00 E6 [20:09:05]RAPDU: 90 00 [20:09:05]wFMCommunicate OK [20:09:05]wFMCommunicate request_size=4 [20:09:05]MH_SAM_APDU [20:09:05]CAPDU: 80 0D 03 02 [20:09:05]Write to MH i2c: E2 08 00 5D 16 80 0D 03 02 00 00 00 00 EE [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:05]Read from MH i2c: E2 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 0B 00 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 0B 00 5D 16 00 9F CD 50 58 B3 38 D4 DD 90 00 9F [20:09:05]RAPDU: 9F CD 50 58 B3 38 D4 DD 90 00 [20:09:05]wFMCommunicate OK [20:09:05]SAM_PROTO_SignData done [20:09:05]FM_MakeSignedData done [20:09:05]CreateOFDProtocolMessage [20:09:05]wFMCommunicate request_size=4 [20:09:05]MH_SAM_APDU [20:09:05]CAPDU: 80 11 00 00 [20:09:05]Write to MH i2c: E2 08 00 5E 16 80 11 00 00 00 00 00 00 EE [20:09:05]Write i2c OK [20:09:05]MH_I2C_Read... [20:09:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:05]Read from MH i2c: E2 [20:09:05]MH_I2C_Read... [20:09:05]Read from MH i2c: E2 17 00 [20:09:05]MH_I2C_Read... [20:09:06]Read from MH i2c: E2 17 00 5E 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3C [20:09:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:09:06]wFMCommunicate OK [20:09:06]CreateOFDProtocolMessage done [20:09:06]OFDSenderStorePacket 188476 [20:09:06]StoreOFDPacket docnum=188476 [20:09:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 FD 07 01 E5 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 61 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E0 02 00 35 04 06 00 25 BB 2A 7C B4 D4 9F CD 50 58 B3 38 D4 DD [20:09:06]CheckFolder [20:09:06]dirname=/storage/ofd_packets [20:09:06]CheckFolder done [20:09:06]ProducePacketName [20:09:06]name=ofd_packets/00188476 [20:09:06]NVStorageSaveData ofd_packets/00188476 [20:09:06]File name is /storage/ofd_packets/00188476 [20:09:06]Write 301 bytes [20:09:06]NVStorageSaveData done [20:09:06]OFDSenderStorePacket done [20:09:06]KKMCreateOFDPacket done [20:09:06]NVStorageSaveData kkm_last_timestamp [20:09:06]File name is /storage/kkm_last_timestamp [20:09:06]Write 4 bytes [20:09:06]NVStorageSaveData done [20:09:06]ExternCall_PrintAddStr [20:09:06]wPrintStart [20:09:06]Write to MH i2c: 01 00 00 5F 16 75 [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 07 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 07 00 5F 16 00 00 00 00 00 FF 0F 8A [20:09:06]RasterBufferAndPrint [20:09:06]line Счет N : (1)210536 [20:09:06]line ИНН: 02508201610067 [20:09:06]line Контрольно-Кассовый Чек [20:09:06]line ПРОДАЖА [20:09:06]line ТРК (МРК, ГНК) : 32 [20:09:06]line Товар: 2710124130 [20:09:06]line Аи-92-К-3 [20:09:06]line 14.950 * 66.90 [20:09:06]line = 1000.16 [20:09:06]line НДС 12% НСП 1% [20:09:06]line > о реализуемом товаре [20:09:06]line ИТОГО: 1000.16 [20:09:06]line НСП 1% : 8.85 [20:09:06]line НДС 12% : 106.21 [20:09:06]line Наличными: 0.00 [20:09:06]line Безнал.: 1000.16 [20:09:06]line Место: АЗС № 86 "Партнер Нефть" [20:09:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:09:06]line СНО: Общий режим [20:09:06]line Чек 505 22.10.2024 20:09 [20:09:06]line Смена: 461 ФФД: 1.0 [20:09:06]line ЗНМ: 0300000155 [20:09:06]line РНМ: 0000000000100030 [20:09:06]line Версия ККМ: 001 [20:09:06]line Платежная система: Mbank [20:09:06]line ФМ: 0000000000965340 [20:09:06]line ФД: 188476 [20:09:06]line ФПД: 41485801927892 [20:09:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200905&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188476&fm=41485801927892&tin=02508201610067®Number=0000000000100030&sum=100016 [20:09:06]written 0, free lines is 4095 [20:09:06]OFD Sender: Processing packet 188476 [packets to send 1062, broken 1061] [20:09:06]ProducePacketName [20:09:06]name=ofd_packets/00188476 [20:09:06]OFD Sender: To server: pG, [20:09:06]CommunicateWithHost lk.salyk.kg:30040 [20:09:06]ConnectInit lk.salyk.kg [20:09:06]Connected sock=10 [20:09:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 FD 07 01 E5 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 F9 01 00 00 F4 03 04 00 61 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3C E0 02 00 35 04 06 00 25 BB 2A 7C B4 D4 9F CD 50 58 B3 38 D4 DD [20:09:06]Write to MH i2c: 01 00 00 88 16 9E [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 07 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: 01 07 00 88 16 00 00 00 00 00 91 0C 42 [20:09:06]RasterBufferAndPrint [20:09:06]line [20:09:06]line [20:09:06]line [20:09:06]line [20:09:06]line [20:09:06]written 0, free lines is 3221 [20:09:06]MH_Cut [20:09:06]Write to MH i2c: D1 01 00 8F 16 01 77 [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: D1 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: D1 01 00 [20:09:06]MH_I2C_Read... [20:09:06]Read from MH i2c: D1 01 00 8F 16 00 76 [20:09:06]Write to MH i2c: 01 00 00 90 16 A6 [20:09:06]Write i2c OK [20:09:06]MH_I2C_Read... [20:09:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D 0B 47 00 33 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 39 36 35 33 34 30 10 04 04 00 3C E0 02 00 F4 03 04 00 4E B0 17 67 B6 04 01 00 00 DA 69 42 5F ED DD E5 5B [20:09:06]CommunicateWithHost err = 0 [20:09:06]CheckOFDResponse [20:09:06]1017 (14) - 77093643461234 [20:09:06]1041 (16) - 0000000000965340 [20:09:06]1040 (4) - 188476 [20:09:06]1012 (4) - 22.10.2024 14:01 [20:09:06]1206 (1) - 0 [20:09:06]OFD Sender: Remove packet 188476 [20:09:06]ProducePacketName [20:09:06]name=ofd_packets/00188476 [20:09:06]NVStorageDeleteData [20:09:07]OFD Sender: No OFD packet to send [20:09:07]*** Cut start [20:09:07]*** Partial cut [20:09:07]*** CUTSNS_PIN = 1 [20:09:07]*** CUTSNS_PIN = 0 [20:09:07]*** Brake cut motor [20:09:08]Read from MH i2c: 01 [20:09:08]MH_I2C_Read... [20:09:08]*** Stop cut motor [20:09:08]*** Cut end [20:09:08]Read from MH i2c: 01 07 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: 01 07 00 90 16 00 00 00 00 00 FF 0F BB [20:09:08]process_action close_receipt done [20:09:08]requested_data is exist [20:09:08]produce_requested_data [20:09:08]requested_item fm.sn is exist - process it [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 11 00 00 [20:09:08]Write to MH i2c: E2 08 00 91 16 80 11 00 00 00 00 00 00 21 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 17 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 17 00 91 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [20:09:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:09:08]wFMCommunicate OK [20:09:08]requested_item fd.num is exist - process it [20:09:08]SAM_PROTO_GetFieldsCounters [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 13 00 00 [20:09:08]Write to MH i2c: E2 08 00 92 16 80 13 00 00 00 00 00 00 24 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 62 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 62 00 92 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F9 01 00 00 5E 04 04 00 F9 01 00 00 57 04 04 00 FA 01 00 00 19 04 04 00 00 00 00 00 90 00 05 [20:09:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 F9 01 00 00 5E 04 04 00 F9 01 00 00 57 04 04 00 FA 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:09:08]wFMCommunicate OK [20:09:08]SAM_PROTO_GetFieldsCounters done [20:09:08]requested_item shift.num is exist - process it [20:09:08]requested_item shift.opened is exist - process it [20:09:08]req_shift_opened [20:09:08]FM_GetShiftState [20:09:08]SAM_PROTO_GetShiftState [20:09:08]wFMCommunicate request_size=4 [20:09:08]MH_SAM_APDU [20:09:08]CAPDU: 80 13 01 00 [20:09:08]Write to MH i2c: E2 08 00 93 16 80 13 01 00 00 00 00 00 26 [20:09:08]Write i2c OK [20:09:08]MH_I2C_Read... [20:09:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:08]Read from MH i2c: E2 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 0E 00 [20:09:08]MH_I2C_Read... [20:09:08]Read from MH i2c: E2 0E 00 93 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1B [20:09:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:09:08]wFMCommunicate OK [20:09:08]SAM_PROTO_GetShiftState done [20:09:08]FM_GetShiftState done [20:09:08]req_shift_opened done [20:09:08]requested_item shift.open_date is exist - process it [20:09:08]req_shift_open_date [20:09:08]req_shift_open_date done [20:09:08]produce_requested_data done [20:09:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188476,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:09:08]process_action_free close_receipt [20:09:08]json_value_free [20:09:08]json_value_free done [20:09:08]process_json_proto returns [20:09:08]Send response to host [20:09:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188476,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:09:08]free response buf [20:09:08]execute_script done [20:09:08]execute_script returns [20:09:08]free content buf [20:09:08]Sock 9.Close socket [20:09:08]Sock 9.Thread stoped [20:09:12]OFD Sender: No OFD packet to send [20:09:17]OFD Sender: No OFD packet to send [20:09:22]OFD Sender: No OFD packet to send [20:09:27]OFD Sender: No OFD packet to send [20:09:32]OFD Sender: No OFD packet to send [20:09:37]OFD Sender: No OFD packet to send [20:09:42]OFD Sender: No OFD packet to send [20:09:47]OFD Sender: No OFD packet to send [20:09:52]OFD Sender: No OFD packet to send [20:09:56]accept exits with 7 [20:09:56]New connection [20:09:56]New thread 3066613092 created [20:09:56]Thread 3066756452 joined [20:09:56]Waiting for new connection... [20:09:56] Sock 7.Parse request [20:09:56]Sock 7.Check first char [20:09:56]Sock 7.First char is OK [20:09:56]request: POST /json_proto HTTP/1.0 [20:09:56]Method: POST [20:09:56]URL: /json_proto [20:09:56]Method is POST - this is cgi request [20:09:56]url: /json_proto [20:09:56]query_string will be loaded in cgi processing [20:09:56]execute_cgi json_proto POST (null) [20:09:56]execute_cgi path=json_proto method=POST [20:09:56]POST find Content-Length [20:09:56]Host: 172.17.42.131:8080 [20:09:56]Content-Length: 677 [20:09:56]Content-Type: application/json [20:09:56] [20:09:56]POST finish read [20:09:56]Found Content-Length = 677 [20:09:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210537", "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" : 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" ] } } [20:09:56]execute_script... [20:09: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)210537", "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" : 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" ] } } [20:09:56]POST & json_proto [20:09:56]process_json_proto [20:09:56]json parsed OK: [20:09:56]protocol is kg_v1.0 [20:09:56]action value=close_receipt [20:09:56]process_action close_receipt [20:09:56]cmd_close_receipt [20:09:56]MH_GetDate [20:09:56]Write to MH i2c: F0 00 00 94 16 99 [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: F0 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: F0 09 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: F0 09 00 94 16 00 96 06 18 67 A0 18 CA 66 A5 [20:09:56]GetLastDocTimeStamp 1729627745 [20:09:56]current date 1729627798 [20:09:56]FM_GetShiftState [20:09:56]SAM_PROTO_GetShiftState [20:09:56]wFMCommunicate request_size=4 [20:09:56]MH_SAM_APDU [20:09:56]CAPDU: 80 13 01 00 [20:09:56]Write to MH i2c: E2 08 00 95 16 80 13 01 00 00 00 00 00 28 [20:09:56]Write i2c OK [20:09:56]MH_I2C_Read... [20:09:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:09:56]Read from MH i2c: E2 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 0E 00 [20:09:56]MH_I2C_Read... [20:09:56]Read from MH i2c: E2 0E 00 95 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1D [20:09:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:09:56]wFMCommunicate OK [20:09:56]SAM_PROTO_GetShiftState done [20:09:56]FM_GetShiftState done [20:09:56]opened in 1729556094 [20:09:56]opened+sec_in_day 1729642494 [20:09:56]quantity*price = 60027 [20:09:56]sum+1 = 60029 [20:09:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.75 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 506 22.10.2024 20:09 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188477 ФПД: 94347514393585 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200958&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188477&fm=94347514393585&tin=02508201610067®Number=0000000000100030&sum=60000 [20:09:57]StoreToDocumentArchive [20:09:57]shift 461 fd 188477 [20:09:57]save to /storage/0461/doc_00188477 [20:09:57]save last doc name /storage/0461/doc_00188477 to /storage/kkm_last_doc_name [20:09:57]save OK [20:09:57]Clear old archive folders... [20:09:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:09:57]tlvbuf is 009564F0 [20:09:57]SAM_PROTO_ClearQueue [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 09 00 00 [20:09:57]Write to MH i2c: E2 08 00 A2 16 80 09 00 00 00 00 00 00 2A [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:09:57]Read from MH i2c: E2 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 03 00 [20:09:57]MH_I2C_Read... [20:09:57]Read from MH i2c: E2 03 00 A2 16 00 90 00 2C [20:09:57]RAPDU: 90 00 [20:09:57]wFMCommunicate OK [20:09:57]SAM_PROTO_ClearQueue done [20:09:57]KKMCreateOFDPacket [20:09:57]OFDProtocolAddRootSTLVToBuf [20:09:57]FM_MakeSignedData [20:09:57]FM_MakeSignedData [20:09:57]SAM_PROTO_SignData [20:09:57]wFMCommunicate request_size=4 [20:09:57]MH_SAM_APDU [20:09:57]CAPDU: 80 0D 01 02 [20:09:57]Write to MH i2c: E2 08 00 A3 16 80 0D 01 02 00 00 00 00 32 [20:09:57]Write i2c OK [20:09:57]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 A3 16 00 90 00 2D [20:09:58]RAPDU: 90 00 [20:09:58]wFMCommunicate OK [20:09:58]wFMCommunicate request_size=255 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FA 01 00 00 F4 03 04 00 96 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E0 02 00 35 04 06 00 55 [20:09:58]Write to MH i2c: E2 02 01 A4 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 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 FA 01 00 00 F4 03 04 00 96 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E0 02 00 35 04 06 00 55 00 00 5B [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 A4 16 00 90 00 2E [20:09:58]RAPDU: 90 00 [20:09:58]wFMCommunicate OK [20:09:58]wFMCommunicate request_size=10 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 0D 02 02 05 CE FE 14 B3 F1 [20:09:58]Write to MH i2c: E2 0D 00 A5 16 80 0D 02 02 05 00 CE FE 14 B3 F1 00 00 C3 [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 03 00 A5 16 00 90 00 2F [20:09:58]RAPDU: 90 00 [20:09:58]wFMCommunicate OK [20:09:58]wFMCommunicate request_size=4 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 0D 03 02 [20:09:58]Write to MH i2c: E2 08 00 A6 16 80 0D 03 02 00 00 00 00 37 [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 0B 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 0B 00 A6 16 00 62 FD 12 3C 0A 43 E6 0C 90 00 24 [20:09:58]RAPDU: 62 FD 12 3C 0A 43 E6 0C 90 00 [20:09:58]wFMCommunicate OK [20:09:58]SAM_PROTO_SignData done [20:09:58]FM_MakeSignedData done [20:09:58]CreateOFDProtocolMessage [20:09:58]wFMCommunicate request_size=4 [20:09:58]MH_SAM_APDU [20:09:58]CAPDU: 80 11 00 00 [20:09:58]Write to MH i2c: E2 08 00 A7 16 80 11 00 00 00 00 00 00 37 [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:09:58]Read from MH i2c: E2 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 17 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: E2 17 00 A7 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [20:09:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:09:58]wFMCommunicate OK [20:09:58]CreateOFDProtocolMessage done [20:09:58]OFDSenderStorePacket 188477 [20:09:58]StoreOFDPacket docnum=188477 [20:09:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 FE 07 01 59 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FA 01 00 00 F4 03 04 00 96 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E0 02 00 35 04 06 00 55 CE FE 14 B3 F1 62 FD 12 3C 0A 43 E6 0C [20:09:58]CheckFolder [20:09:58]dirname=/storage/ofd_packets [20:09:58]CheckFolder done [20:09:58]ProducePacketName [20:09:58]name=ofd_packets/00188477 [20:09:58]NVStorageSaveData ofd_packets/00188477 [20:09:58]File name is /storage/ofd_packets/00188477 [20:09:58]Write 301 bytes [20:09:58]NVStorageSaveData done [20:09:58]OFDSenderStorePacket done [20:09:58]KKMCreateOFDPacket done [20:09:58]NVStorageSaveData kkm_last_timestamp [20:09:58]File name is /storage/kkm_last_timestamp [20:09:58]Write 4 bytes [20:09:58]NVStorageSaveData done [20:09:58]ExternCall_PrintAddStr [20:09:58]wPrintStart [20:09:58]Write to MH i2c: 01 00 00 A8 16 BE [20:09:58]Write i2c OK [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: 01 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: 01 07 00 [20:09:58]MH_I2C_Read... [20:09:58]Read from MH i2c: 01 07 00 A8 16 00 00 00 00 00 FF 0F D3 [20:09:58]RasterBufferAndPrint [20:09:58]line Счет N : (1)210537 [20:09:58]line ИНН: 02508201610067 [20:09:58]line Контрольно-Кассовый Чек [20:09:58]line ПРОДАЖА [20:09:58]line ТРК (МРК, ГНК) : 43 [20:09:58]line Товар: 2710124500 [20:09:58]line Аи-95-К-3 [20:09:58]line 8.090 * 74.20 [20:09:58]line = 600.28 [20:09:58]line НДС 12% НСП 1% [20:09:58]line > о реализуемом товаре [20:09:58]line ОКРУГЛЕНИЕ: -0.28 [20:09:58]line ИТОГО: 600.00 [20:09:58]line Внесено: 600.00 [20:09:58]line СДАЧА: 0.00 [20:09:58]line НСП 1% : 5.31 [20:09:58]line НДС 12% : 63.75 [20:09:58]line Наличными: 600.00 [20:09:58]line Безнал.: 0.00 [20:09:58]line Место: АЗС № 86 "Партнер Нефть" [20:09:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:09:58]line СНО: Общий режим [20:09:58]line Чек 506 22.10.2024 20:09 [20:09:58]line Смена: 461 ФФД: 1.0 [20:09:58]line ЗНМ: 0300000155 [20:09:58]line РНМ: 0000000000100030 [20:09:58]line Версия ККМ: 001 [20:09:58]line ФМ: 0000000000965340 [20:09:58]line ФД: 188477 [20:09:58]line ФПД: 94347514393585 [20:09:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T200958&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188477&fm=94347514393585&tin=02508201610067®Number=0000000000100030&sum=60000 [20:09:58]OFD Sender: Processing packet 188477 [packets to send 1062, broken 1061] [20:09:58]ProducePacketName [20:09:58]name=ofd_packets/00188477 [20:09:58]OFD Sender: To server: pG, [20:09:58]CommunicateWithHost lk.salyk.kg:30040 [20:09:58]ConnectInit lk.salyk.kg [20:09:58]written 0, free lines is 4095 [20:09:59]Write to MH i2c: 01 00 00 D3 16 E9 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: 01 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: 01 07 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: 01 07 00 D3 16 00 00 00 00 00 69 0C 65 [20:09:59]RasterBufferAndPrint [20:09:59]line [20:09:59]line [20:09:59]line [20:09:59]line [20:09:59]line [20:09:59]written 0, free lines is 3180 [20:09:59]MH_Cut [20:09:59]Write to MH i2c: D1 01 00 DA 16 01 C2 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: D1 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: D1 01 00 [20:09:59]MH_I2C_Read... [20:09:59]Read from MH i2c: D1 01 00 DA 16 00 C1 [20:09:59]Write to MH i2c: 01 00 00 DB 16 F1 [20:09:59]Write i2c OK [20:09:59]MH_I2C_Read... [20:09:59]Connected sock=10 [20:09:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B7 FE 07 01 59 73 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 FA 01 00 00 F4 03 04 00 96 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E0 02 00 35 04 06 00 55 CE FE 14 B3 F1 62 FD 12 3C 0A 43 E6 0C [20:09:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B9 05 47 00 3B 91 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3D E0 02 00 F4 03 04 00 83 B0 17 67 B6 04 01 00 00 D8 16 E8 73 3B 66 63 C9 [20:09:59]CommunicateWithHost err = 0 [20:09:59]CheckOFDResponse [20:09:59]1017 (14) - 77093643461234 [20:09:59]1041 (16) - 0000000000965340 [20:09:59]1040 (4) - 188477 [20:09:59]1012 (4) - 22.10.2024 14:02 [20:09:59]1206 (1) - 0 [20:09:59]OFD Sender: Remove packet 188477 [20:09:59]ProducePacketName [20:09:59]name=ofd_packets/00188477 [20:09:59]NVStorageDeleteData [20:10:00]OFD Sender: No OFD packet to send [20:10:00]*** Cut start [20:10:00]*** Partial cut [20:10:00]*** CUTSNS_PIN = 1 [20:10:00]*** CUTSNS_PIN = 0 [20:10:00]*** Brake cut motor [20:10:01]Read from MH i2c: 01 [20:10:01]MH_I2C_Read... [20:10:01]*** Stop cut motor [20:10:01]*** Cut end [20:10:01]Read from MH i2c: 01 07 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: 01 07 00 DB 16 00 00 00 00 00 FF 0F 06 [20:10:01]process_action close_receipt done [20:10:01]requested_data is exist [20:10:01]produce_requested_data [20:10:01]requested_item fm.sn is exist - process it [20:10:01]wFMCommunicate request_size=4 [20:10:01]MH_SAM_APDU [20:10:01]CAPDU: 80 11 00 00 [20:10:01]Write to MH i2c: E2 08 00 DC 16 80 11 00 00 00 00 00 00 6C [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:01]Read from MH i2c: E2 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: E2 17 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: E2 17 00 DC 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [20:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:10:01]wFMCommunicate OK [20:10:01]requested_item fd.num is exist - process it [20:10:01]SAM_PROTO_GetFieldsCounters [20:10:01]wFMCommunicate request_size=4 [20:10:01]MH_SAM_APDU [20:10:01]CAPDU: 80 13 00 00 [20:10:01]Write to MH i2c: E2 08 00 DD 16 80 13 00 00 00 00 00 00 6F [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:01]Read from MH i2c: E2 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: E2 62 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: E2 62 00 DD 16 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FA 01 00 00 5E 04 04 00 FA 01 00 00 57 04 04 00 FB 01 00 00 19 04 04 00 00 00 00 00 90 00 54 [20:10:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FA 01 00 00 5E 04 04 00 FA 01 00 00 57 04 04 00 FB 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:01]wFMCommunicate OK [20:10:01]SAM_PROTO_GetFieldsCounters done [20:10:01]requested_item shift.num is exist - process it [20:10:01]requested_item shift.opened is exist - process it [20:10:01]req_shift_opened [20:10:01]FM_GetShiftState [20:10:01]SAM_PROTO_GetShiftState [20:10:01]wFMCommunicate request_size=4 [20:10:01]MH_SAM_APDU [20:10:01]CAPDU: 80 13 01 00 [20:10:01]Write to MH i2c: E2 08 00 DE 16 80 13 01 00 00 00 00 00 71 [20:10:01]Write i2c OK [20:10:01]MH_I2C_Read... [20:10:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:01]Read from MH i2c: E2 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: E2 0E 00 [20:10:01]MH_I2C_Read... [20:10:01]Read from MH i2c: E2 0E 00 DE 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 66 [20:10:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:10:01]wFMCommunicate OK [20:10:01]SAM_PROTO_GetShiftState done [20:10:01]FM_GetShiftState done [20:10:01]req_shift_opened done [20:10:01]requested_item shift.open_date is exist - process it [20:10:01]req_shift_open_date [20:10:01]req_shift_open_date done [20:10:01]produce_requested_data done [20:10:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188477,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:10:01]process_action_free close_receipt [20:10:01]json_value_free [20:10:01]json_value_free done [20:10:01]process_json_proto returns [20:10:01]Send response to host [20:10:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188477,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:10:01]free response buf [20:10:01]execute_script done [20:10:01]execute_script returns [20:10:01]free content buf [20:10:01]Sock 7.Close socket [20:10:01]Sock 7.Thread stoped [20:10:05]OFD Sender: No OFD packet to send [20:10:08]accept exits with 9 [20:10:08]New connection [20:10:08]New thread 3066756452 created [20:10:08]Thread 3066613092 joined [20:10:08]Waiting for new connection... [20:10:08] Sock 9.Parse request [20:10:08]Sock 9.Check first char [20:10:08]Sock 9.First char is OK [20:10:08]request: POST /json_proto HTTP/1.0 [20:10:08]Method: POST [20:10:08]URL: /json_proto [20:10:08]Method is POST - this is cgi request [20:10:08]url: /json_proto [20:10:08]query_string will be loaded in cgi processing [20:10:08]execute_cgi json_proto POST (null) [20:10:08]execute_cgi path=json_proto method=POST [20:10:08]POST find Content-Length [20:10:08]Host: 172.17.42.131:8080 [20:10:08]Content-Length: 682 [20:10:08]Content-Type: application/json [20:10:08] [20:10:08]POST finish read [20:10:08]Found Content-Length = 682 [20:10:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [20:10:08]execute_script... [20:10: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)210538", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [20:10:08]POST & json_proto [20:10:08]process_json_proto [20:10:08]json parsed OK: [20:10:08]protocol is kg_v1.0 [20:10:08]action value=close_receipt [20:10:08]process_action close_receipt [20:10:08]cmd_close_receipt [20:10:08]MH_GetDate [20:10:08]Write to MH i2c: F0 00 00 DF 16 E4 [20:10:08]Write i2c OK [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: F0 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: F0 09 00 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: F0 09 00 DF 16 00 A2 06 18 67 A0 18 CA 66 FC [20:10:08]GetLastDocTimeStamp 1729627798 [20:10:08]current date 1729627810 [20:10:08]FM_GetShiftState [20:10:08]SAM_PROTO_GetShiftState [20:10:08]wFMCommunicate request_size=4 [20:10:08]MH_SAM_APDU [20:10:08]CAPDU: 80 13 01 00 [20:10:08]Write to MH i2c: E2 08 00 E0 16 80 13 01 00 00 00 00 00 73 [20:10:08]Write i2c OK [20:10:08]MH_I2C_Read... [20:10:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:08]Read from MH i2c: E2 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: E2 0E 00 [20:10:08]MH_I2C_Read... [20:10:08]Read from MH i2c: E2 0E 00 E0 16 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 68 [20:10:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:10:08]wFMCommunicate OK [20:10:08]SAM_PROTO_GetShiftState done [20:10:08]FM_GetShiftState done [20:10:08]opened in 1729556094 [20:10:08]opened+sec_in_day 1729642494 [20:10:08]quantity*price = 200031 [20:10:08]sum+1 = 200032 [20:10:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 507 22.10.2024 20:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188478 ФПД: 195072431091830 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201010&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188478&fm=195072431091830&tin=02508201610067®Number=0000000000100030&sum=200000 [20:10:09]StoreToDocumentArchive [20:10:09]shift 461 fd 188478 [20:10:09]save to /storage/0461/doc_00188478 [20:10:09]save last doc name /storage/0461/doc_00188478 to /storage/kkm_last_doc_name [20:10:09]save OK [20:10:09]Clear old archive folders... [20:10:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:10:09]tlvbuf is B6E91200 [20:10:09]SAM_PROTO_ClearQueue [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 09 00 00 [20:10:09]Write to MH i2c: E2 08 00 ED 16 80 09 00 00 00 00 00 00 75 [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:10:09]Read from MH i2c: E2 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 03 00 [20:10:09]MH_I2C_Read... [20:10:09]Read from MH i2c: E2 03 00 ED 16 00 90 00 77 [20:10:09]RAPDU: 90 00 [20:10:09]wFMCommunicate OK [20:10:09]SAM_PROTO_ClearQueue done [20:10:09]KKMCreateOFDPacket [20:10:09]OFDProtocolAddRootSTLVToBuf [20:10:09]FM_MakeSignedData [20:10:09]FM_MakeSignedData [20:10:09]SAM_PROTO_SignData [20:10:09]wFMCommunicate request_size=4 [20:10:09]MH_SAM_APDU [20:10:09]CAPDU: 80 0D 01 02 [20:10:09]Write to MH i2c: E2 08 00 EE 16 80 0D 01 02 00 00 00 00 7D [20:10:09]Write i2c OK [20:10:09]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 03 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 03 00 EE 16 00 90 00 78 [20:10:10]RAPDU: 90 00 [20:10:10]wFMCommunicate OK [20:10:10]wFMCommunicate request_size=255 [20:10:10]MH_SAM_APDU [20:10:10]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FB 01 00 00 F4 03 04 00 A2 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E0 02 00 35 04 06 00 B1 [20:10:10]Write to MH i2c: E2 02 01 EF 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FB 01 00 00 F4 03 04 00 A2 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E0 02 00 35 04 06 00 B1 00 00 F4 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]OFD Sender: No OFD packet to send [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:10]Read from MH i2c: E2 03 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 03 00 EF 16 00 90 00 79 [20:10:10]RAPDU: 90 00 [20:10:10]wFMCommunicate OK [20:10:10]wFMCommunicate request_size=10 [20:10:10]MH_SAM_APDU [20:10:10]CAPDU: 80 0D 02 02 05 6A D6 F5 F0 76 [20:10:10]Write to MH i2c: E2 0D 00 F0 16 80 0D 02 02 05 00 6A D6 F5 F0 76 00 00 25 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 03 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 03 00 F0 16 00 90 00 7A [20:10:10]RAPDU: 90 00 [20:10:10]wFMCommunicate OK [20:10:10]wFMCommunicate request_size=4 [20:10:10]MH_SAM_APDU [20:10:10]CAPDU: 80 0D 03 02 [20:10:10]Write to MH i2c: E2 08 00 F1 16 80 0D 03 02 00 00 00 00 82 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 0B 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 0B 00 F1 16 00 DB 2C 6F 8E 6A CE 6A 47 90 00 70 [20:10:10]RAPDU: DB 2C 6F 8E 6A CE 6A 47 90 00 [20:10:10]wFMCommunicate OK [20:10:10]SAM_PROTO_SignData done [20:10:10]FM_MakeSignedData done [20:10:10]CreateOFDProtocolMessage [20:10:10]wFMCommunicate request_size=4 [20:10:10]MH_SAM_APDU [20:10:10]CAPDU: 80 11 00 00 [20:10:10]Write to MH i2c: E2 08 00 F2 16 80 11 00 00 00 00 00 00 82 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:10]Read from MH i2c: E2 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 17 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: E2 17 00 F2 16 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [20:10:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:10:10]wFMCommunicate OK [20:10:10]CreateOFDProtocolMessage done [20:10:10]OFDSenderStorePacket 188478 [20:10:10]StoreOFDPacket docnum=188478 [20:10:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 30 07 01 E7 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FB 01 00 00 F4 03 04 00 A2 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E0 02 00 35 04 06 00 B1 6A D6 F5 F0 76 DB 2C 6F 8E 6A CE 6A 47 [20:10:10]CheckFolder [20:10:10]dirname=/storage/ofd_packets [20:10:10]CheckFolder done [20:10:10]ProducePacketName [20:10:10]name=ofd_packets/00188478 [20:10:10]NVStorageSaveData ofd_packets/00188478 [20:10:10]File name is /storage/ofd_packets/00188478 [20:10:10]Write 301 bytes [20:10:10]NVStorageSaveData done [20:10:10]OFDSenderStorePacket done [20:10:10]KKMCreateOFDPacket done [20:10:10]NVStorageSaveData kkm_last_timestamp [20:10:10]File name is /storage/kkm_last_timestamp [20:10:10]Write 4 bytes [20:10:10]NVStorageSaveData done [20:10:10]ExternCall_PrintAddStr [20:10:10]wPrintStart [20:10:10]Write to MH i2c: 01 00 00 F3 16 09 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 07 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 07 00 F3 16 00 00 00 00 00 FF 0F 1E [20:10:10]RasterBufferAndPrint [20:10:10]line Счет N : (1)210538 [20:10:10]line ИНН: 02508201610067 [20:10:10]line Контрольно-Кассовый Чек [20:10:10]line ПРОДАЖА [20:10:10]line ТРК (МРК, ГНК) : 12 [20:10:10]line Товар: 2710124130 [20:10:10]line Аи-92-К-3 [20:10:10]line 29.900 * 66.90 [20:10:10]line = 2000.31 [20:10:10]line НДС 12% НСП 1% [20:10:10]line > о реализуемом товаре [20:10:10]line ОКРУГЛЕНИЕ: -0.31 [20:10:10]line ИТОГО: 2000.00 [20:10:10]line Внесено: 2000.00 [20:10:10]line СДАЧА: 0.00 [20:10:10]line НСП 1% : 17.70 [20:10:10]line НДС 12% : 212.42 [20:10:10]line Наличными: 2000.00 [20:10:10]line Безнал.: 0.00 [20:10:10]line Место: АЗС № 86 "Партнер Нефть" [20:10:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:10:10]line СНО: Общий режим [20:10:10]line Чек 507 22.10.2024 20:10 [20:10:10]line Смена: 461 ФФД: 1.0 [20:10:10]line ЗНМ: 0300000155 [20:10:10]line РНМ: 0000000000100030 [20:10:10]line Версия ККМ: 001 [20:10:10]line ФМ: 0000000000965340 [20:10:10]line ФД: 188478 [20:10:10]line ФПД: 195072431091830 [20:10:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201010&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188478&fm=195072431091830&tin=02508201610067®Number=0000000000100030&sum=200000 [20:10:10]written 0, free lines is 4095 [20:10:10]OFD Sender: Processing packet 188478 [packets to send 1062, broken 1061] [20:10:10]ProducePacketName [20:10:10]name=ofd_packets/00188478 [20:10:10]OFD Sender: To server: pG, [20:10:10]CommunicateWithHost lk.salyk.kg:30040 [20:10:10]ConnectInit lk.salyk.kg [20:10:10]Connected sock=7 [20:10:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 30 07 01 E7 20 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 FB 01 00 00 F4 03 04 00 A2 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E0 02 00 35 04 06 00 B1 6A D6 F5 F0 76 DB 2C 6F 8E 6A CE 6A 47 [20:10:10]Write to MH i2c: 01 00 00 1E 17 35 [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 07 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: 01 07 00 1E 17 00 00 00 00 00 64 0C AC [20:10:10]RasterBufferAndPrint [20:10:10]line [20:10:10]line [20:10:10]line [20:10:10]line [20:10:10]line [20:10:10]written 0, free lines is 3176 [20:10:10]MH_Cut [20:10:10]Write to MH i2c: D1 01 00 25 17 01 0E [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: D1 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: D1 01 00 [20:10:10]MH_I2C_Read... [20:10:10]Read from MH i2c: D1 01 00 25 17 00 0D [20:10:10]Write to MH i2c: 01 00 00 26 17 3D [20:10:10]Write i2c OK [20:10:10]MH_I2C_Read... [20:10:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C7 C0 47 00 CD 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3E E0 02 00 F4 03 04 00 8E B0 17 67 B6 04 01 00 00 93 D6 73 AD 68 B1 D7 18 [20:10:11]CommunicateWithHost err = 0 [20:10:11]CheckOFDResponse [20:10:11]1017 (14) - 77093643461234 [20:10:11]1041 (16) - 0000000000965340 [20:10:11]1040 (4) - 188478 [20:10:11]1012 (4) - 22.10.2024 14:02 [20:10:11]1206 (1) - 0 [20:10:11]OFD Sender: Remove packet 188478 [20:10:11]ProducePacketName [20:10:11]name=ofd_packets/00188478 [20:10:11]NVStorageDeleteData [20:10:11]OFD Sender: No OFD packet to send [20:10:12]*** Cut start [20:10:12]*** Partial cut [20:10:12]*** CUTSNS_PIN = 1 [20:10:12]*** CUTSNS_PIN = 0 [20:10:12]*** Brake cut motor [20:10:12]Read from MH i2c: 01 [20:10:12]MH_I2C_Read... [20:10:12]*** Stop cut motor [20:10:12]*** Cut end [20:10:12]Read from MH i2c: 01 07 00 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: 01 07 00 26 17 00 00 00 00 00 FF 0F 52 [20:10:12]process_action close_receipt done [20:10:12]requested_data is exist [20:10:12]produce_requested_data [20:10:12]requested_item fm.sn is exist - process it [20:10:12]wFMCommunicate request_size=4 [20:10:12]MH_SAM_APDU [20:10:12]CAPDU: 80 11 00 00 [20:10:12]Write to MH i2c: E2 08 00 27 17 80 11 00 00 00 00 00 00 B8 [20:10:12]Write i2c OK [20:10:12]MH_I2C_Read... [20:10:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:10:12]Read from MH i2c: E2 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: E2 17 00 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: E2 17 00 27 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [20:10:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:10:12]wFMCommunicate OK [20:10:12]requested_item fd.num is exist - process it [20:10:12]SAM_PROTO_GetFieldsCounters [20:10:12]wFMCommunicate request_size=4 [20:10:12]MH_SAM_APDU [20:10:12]CAPDU: 80 13 00 00 [20:10:12]Write to MH i2c: E2 08 00 28 17 80 13 00 00 00 00 00 00 BB [20:10:12]Write i2c OK [20:10:12]MH_I2C_Read... [20:10:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:10:12]Read from MH i2c: E2 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: E2 62 00 [20:10:12]MH_I2C_Read... [20:10:12]Read from MH i2c: E2 62 00 28 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FB 01 00 00 5E 04 04 00 FB 01 00 00 57 04 04 00 FC 01 00 00 19 04 04 00 00 00 00 00 90 00 A4 [20:10:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FB 01 00 00 5E 04 04 00 FB 01 00 00 57 04 04 00 FC 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:10:13]wFMCommunicate OK [20:10:13]SAM_PROTO_GetFieldsCounters done [20:10:13]requested_item shift.num is exist - process it [20:10:13]requested_item shift.opened is exist - process it [20:10:13]req_shift_opened [20:10:13]FM_GetShiftState [20:10:13]SAM_PROTO_GetShiftState [20:10:13]wFMCommunicate request_size=4 [20:10:13]MH_SAM_APDU [20:10:13]CAPDU: 80 13 01 00 [20:10:13]Write to MH i2c: E2 08 00 29 17 80 13 01 00 00 00 00 00 BD [20:10:13]Write i2c OK [20:10:13]MH_I2C_Read... [20:10:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:10:13]Read from MH i2c: E2 [20:10:13]MH_I2C_Read... [20:10:13]Read from MH i2c: E2 0E 00 [20:10:13]MH_I2C_Read... [20:10:13]Read from MH i2c: E2 0E 00 29 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B2 [20:10:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:10:13]wFMCommunicate OK [20:10:13]SAM_PROTO_GetShiftState done [20:10:13]FM_GetShiftState done [20:10:13]req_shift_opened done [20:10:13]requested_item shift.open_date is exist - process it [20:10:13]req_shift_open_date [20:10:13]req_shift_open_date done [20:10:13]produce_requested_data done [20:10:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188478,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:10:13]process_action_free close_receipt [20:10:13]json_value_free [20:10:13]json_value_free done [20:10:13]process_json_proto returns [20:10:13]Send response to host [20:10:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188478,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:10:13]free response buf [20:10:13]execute_script done [20:10:13]execute_script returns [20:10:13]free content buf [20:10:13]Sock 9.Close socket [20:10:13]Sock 9.Thread stoped [20:10:16]OFD Sender: No OFD packet to send [20:10:21]OFD Sender: No OFD packet to send [20:10:26]OFD Sender: No OFD packet to send [20:10:31]OFD Sender: No OFD packet to send [20:10:36]OFD Sender: No OFD packet to send [20:10:41]OFD Sender: No OFD packet to send [20:10:46]OFD Sender: No OFD packet to send [20:10:51]OFD Sender: No OFD packet to send [20:10:56]OFD Sender: No OFD packet to send [20:11:01]OFD Sender: No OFD packet to send [20:11:03]accept exits with 10 [20:11:03]New connection [20:11:03]New thread 3066613092 created [20:11:03]Thread 3066756452 joined [20:11:03]Waiting for new connection... [20:11:03] Sock 10.Parse request [20:11:03]Sock 10.Check first char [20:11:03]Sock 10.First char is OK [20:11:03]request: POST /json_proto HTTP/1.0 [20:11:03]Method: POST [20:11:03]URL: /json_proto [20:11:03]Method is POST - this is cgi request [20:11:03]url: /json_proto [20:11:03]query_string will be loaded in cgi processing [20:11:03]execute_cgi json_proto POST (null) [20:11:03]execute_cgi path=json_proto method=POST [20:11:03]POST find Content-Length [20:11:03]Host: 172.17.42.131:8080 [20:11:03]Content-Length: 677 [20:11:03]Content-Type: application/json [20:11:03] [20:11:03]POST finish read [20:11:03]Found Content-Length = 677 [20:11:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210539", "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" : 5.330, "sum" : 395.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 395.00, "total" : 395.00, "payments": [ { "type": 0, "sum" : 395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:03]execute_script... [20:11: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)210539", "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" : 5.330, "sum" : 395.49, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 395.00, "total" : 395.00, "payments": [ { "type": 0, "sum" : 395.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:03]POST & json_proto [20:11:03]process_json_proto [20:11:03]json parsed OK: [20:11:03]protocol is kg_v1.0 [20:11:03]action value=close_receipt [20:11:03]process_action close_receipt [20:11:03]cmd_close_receipt [20:11:03]MH_GetDate [20:11:03]Write to MH i2c: F0 00 00 2A 17 30 [20:11:03]Write i2c OK [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: F0 [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: F0 09 00 [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: F0 09 00 2A 17 00 D8 06 18 67 A0 18 CA 66 7E [20:11:03]GetLastDocTimeStamp 1729627810 [20:11:03]current date 1729627864 [20:11:03]FM_GetShiftState [20:11:03]SAM_PROTO_GetShiftState [20:11:03]wFMCommunicate request_size=4 [20:11:03]MH_SAM_APDU [20:11:03]CAPDU: 80 13 01 00 [20:11:03]Write to MH i2c: E2 08 00 2B 17 80 13 01 00 00 00 00 00 BF [20:11:03]Write i2c OK [20:11:03]MH_I2C_Read... [20:11:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:03]Read from MH i2c: E2 [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: E2 0E 00 [20:11:03]MH_I2C_Read... [20:11:03]Read from MH i2c: E2 0E 00 2B 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B4 [20:11:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:11:03]wFMCommunicate OK [20:11:03]SAM_PROTO_GetShiftState done [20:11:03]FM_GetShiftState done [20:11:03]opened in 1729556094 [20:11:03]opened+sec_in_day 1729642494 [20:11:03]quantity*price = 39548 [20:11:03]sum+1 = 39550 [20:11:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.49 ИТОГО: 395.00 Внесено: 395.00 СДАЧА: 0.00 НСП 1% : 3.50 НДС 12% : 42.00 Наличными: 395.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 508 22.10.2024 20:11 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188479 ФПД: 15101039402851 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201104&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188479&fm=15101039402851&tin=02508201610067®Number=0000000000100030&sum=39500 [20:11:04]StoreToDocumentArchive [20:11:04]shift 461 fd 188479 [20:11:04]save to /storage/0461/doc_00188479 [20:11:04]save last doc name /storage/0461/doc_00188479 to /storage/kkm_last_doc_name [20:11:04]save OK [20:11:04]Clear old archive folders... [20:11:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:04]tlvbuf is 009241B0 [20:11:04]SAM_PROTO_ClearQueue [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 09 00 00 [20:11:04]Write to MH i2c: E2 08 00 38 17 80 09 00 00 00 00 00 00 C1 [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 38 17 00 90 00 C3 [20:11:04]RAPDU: 90 00 [20:11:04]wFMCommunicate OK [20:11:04]SAM_PROTO_ClearQueue done [20:11:04]KKMCreateOFDPacket [20:11:04]OFDProtocolAddRootSTLVToBuf [20:11:04]FM_MakeSignedData [20:11:04]FM_MakeSignedData [20:11:04]SAM_PROTO_SignData [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 0D 01 02 [20:11:04]Write to MH i2c: E2 08 00 39 17 80 0D 01 02 00 00 00 00 C9 [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 39 17 00 90 00 C4 [20:11:04]RAPDU: 90 00 [20:11:04]wFMCommunicate OK [20:11:04]wFMCommunicate request_size=255 [20:11:04]MH_SAM_APDU [20:11: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 D2 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7D 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 D8 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E0 02 00 35 04 06 00 0D [20:11:04]Write to MH i2c: E2 02 01 3A 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7D 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 D8 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E0 02 00 35 04 06 00 0D 00 00 C9 [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 3A 17 00 90 00 C5 [20:11:04]RAPDU: 90 00 [20:11:04]wFMCommunicate OK [20:11:04]wFMCommunicate request_size=10 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 0D 02 02 05 BB FC 16 DF 63 [20:11:04]Write to MH i2c: E2 0D 00 3B 17 80 0D 02 02 05 00 BB FC 16 DF 63 00 00 E5 [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 03 00 3B 17 00 90 00 C6 [20:11:04]RAPDU: 90 00 [20:11:04]wFMCommunicate OK [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 0D 03 02 [20:11:04]Write to MH i2c: E2 08 00 3C 17 80 0D 03 02 00 00 00 00 CE [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:04]Read from MH i2c: E2 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 0B 00 [20:11:04]MH_I2C_Read... [20:11:04]Read from MH i2c: E2 0B 00 3C 17 00 31 4F 74 B3 80 60 97 71 90 00 5E [20:11:04]RAPDU: 31 4F 74 B3 80 60 97 71 90 00 [20:11:04]wFMCommunicate OK [20:11:04]SAM_PROTO_SignData done [20:11:04]FM_MakeSignedData done [20:11:04]CreateOFDProtocolMessage [20:11:04]wFMCommunicate request_size=4 [20:11:04]MH_SAM_APDU [20:11:04]CAPDU: 80 11 00 00 [20:11:04]Write to MH i2c: E2 08 00 3D 17 80 11 00 00 00 00 00 00 CE [20:11:04]Write i2c OK [20:11:04]MH_I2C_Read... [20:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:05]Read from MH i2c: E2 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: E2 17 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: E2 17 00 3D 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [20:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:11:05]wFMCommunicate OK [20:11:05]CreateOFDProtocolMessage done [20:11:05]OFDSenderStorePacket 188479 [20:11:05]StoreOFDPacket docnum=188479 [20:11:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA 8A 07 01 73 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7D 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 D8 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E0 02 00 35 04 06 00 0D BB FC 16 DF 63 31 4F 74 B3 80 60 97 71 [20:11:05]CheckFolder [20:11:05]dirname=/storage/ofd_packets [20:11:05]CheckFolder done [20:11:05]ProducePacketName [20:11:05]name=ofd_packets/00188479 [20:11:05]NVStorageSaveData ofd_packets/00188479 [20:11:05]File name is /storage/ofd_packets/00188479 [20:11:05]Write 301 bytes [20:11:05]NVStorageSaveData done [20:11:05]OFDSenderStorePacket done [20:11:05]KKMCreateOFDPacket done [20:11:05]NVStorageSaveData kkm_last_timestamp [20:11:05]File name is /storage/kkm_last_timestamp [20:11:05]Write 4 bytes [20:11:05]NVStorageSaveData done [20:11:05]ExternCall_PrintAddStr [20:11:05]wPrintStart [20:11:05]Write to MH i2c: 01 00 00 3E 17 55 [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 3E 17 00 00 00 00 00 FF 0F 6A [20:11:05]RasterBufferAndPrint [20:11:05]line Счет N : (1)210539 [20:11:05]line ИНН: 02508201610067 [20:11:05]line Контрольно-Кассовый Чек [20:11:05]line ПРОДАЖА [20:11:05]line ТРК (МРК, ГНК) : 43 [20:11:05]line Товар: 2710124500 [20:11:05]line Аи-95-К-3 [20:11:05]line 5.330 * 74.20 [20:11:05]line = 395.49 [20:11:05]line НДС 12% НСП 1% [20:11:05]line > о реализуемом товаре [20:11:05]line ОКРУГЛЕНИЕ: -0.49 [20:11:05]line ИТОГО: 395.00 [20:11:05]line Внесено: 395.00 [20:11:05]line СДАЧА: 0.00 [20:11:05]line НСП 1% : 3.50 [20:11:05]line НДС 12% : 42.00 [20:11:05]line Наличными: 395.00 [20:11:05]line Безнал.: 0.00 [20:11:05]line Место: АЗС № 86 "Партнер Нефть" [20:11:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:11:05]line СНО: Общий режим [20:11:05]line Чек 508 22.10.2024 20:11 [20:11:05]line Смена: 461 ФФД: 1.0 [20:11:05]line ЗНМ: 0300000155 [20:11:05]line РНМ: 0000000000100030 [20:11:05]line Версия ККМ: 001 [20:11:05]line ФМ: 0000000000965340 [20:11:05]line ФД: 188479 [20:11:05]line ФПД: 15101039402851 [20:11:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201104&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188479&fm=15101039402851&tin=02508201610067®Number=0000000000100030&sum=39500 [20:11:05]written 0, free lines is 4095 [20:11:05]OFD Sender: Processing packet 188479 [packets to send 1062, broken 1061] [20:11:05]ProducePacketName [20:11:05]name=ofd_packets/00188479 [20:11:05]OFD Sender: To server: pG, [20:11:05]CommunicateWithHost lk.salyk.kg:30040 [20:11:05]ConnectInit lk.salyk.kg [20:11:05]Connected sock=9 [20:11:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FA 8A 07 01 73 22 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 D2 14 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 7D 9A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 9A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 68 10 00 00 00 00 07 04 06 00 4C 9A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FC 01 00 00 F4 03 04 00 D8 06 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E0 02 00 35 04 06 00 0D BB FC 16 DF 63 31 4F 74 B3 80 60 97 71 [20:11:05]Write to MH i2c: 01 00 00 69 17 80 [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: 01 07 00 69 17 00 00 00 00 00 6A 0C FD [20:11:05]RasterBufferAndPrint [20:11:05]line [20:11:05]line [20:11:05]line [20:11:05]line [20:11:05]line [20:11:05]written 0, free lines is 3181 [20:11:05]MH_Cut [20:11:05]Write to MH i2c: D1 01 00 70 17 01 59 [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: D1 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: D1 01 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: D1 01 00 70 17 00 58 [20:11:05]Write to MH i2c: 01 00 00 71 17 88 [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 BD 7A 47 00 C2 C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 3F E0 02 00 F4 03 04 00 C5 B0 17 67 B6 04 01 00 00 84 15 0B 1E 0B C6 2D 8D [20:11:05]CommunicateWithHost err = 0 [20:11:05]CheckOFDResponse [20:11:05]1017 (14) - 77093643461234 [20:11:05]1041 (16) - 0000000000965340 [20:11:05]1040 (4) - 188479 [20:11:05]1012 (4) - 22.10.2024 14:03 [20:11:05]1206 (1) - 0 [20:11:05]OFD Sender: Remove packet 188479 [20:11:05]ProducePacketName [20:11:05]name=ofd_packets/00188479 [20:11:05]NVStorageDeleteData [20:11:06]OFD Sender: No OFD packet to send [20:11:06]*** Cut start [20:11:06]*** Partial cut [20:11:06]*** CUTSNS_PIN = 1 [20:11:06]*** CUTSNS_PIN = 0 [20:11:07]*** Brake cut motor [20:11:07]Read from MH i2c: 01 [20:11:07]MH_I2C_Read... [20:11:07]*** Stop cut motor [20:11:07]*** Cut end [20:11:07]Read from MH i2c: 01 07 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: 01 07 00 71 17 00 00 00 00 00 FF 0F 9D [20:11:07]process_action close_receipt done [20:11:07]requested_data is exist [20:11:07]produce_requested_data [20:11:07]requested_item fm.sn is exist - process it [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 11 00 00 [20:11:07]Write to MH i2c: E2 08 00 72 17 80 11 00 00 00 00 00 00 03 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 17 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 17 00 72 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 51 [20:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:11:07]wFMCommunicate OK [20:11:07]requested_item fd.num is exist - process it [20:11:07]SAM_PROTO_GetFieldsCounters [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 13 00 00 [20:11:07]Write to MH i2c: E2 08 00 73 17 80 13 00 00 00 00 00 00 06 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 62 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 62 00 73 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FC 01 00 00 5E 04 04 00 FC 01 00 00 57 04 04 00 FD 01 00 00 19 04 04 00 00 00 00 00 90 00 F3 [20:11:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 3F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FC 01 00 00 5E 04 04 00 FC 01 00 00 57 04 04 00 FD 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:11:07]wFMCommunicate OK [20:11:07]SAM_PROTO_GetFieldsCounters done [20:11:07]requested_item shift.num is exist - process it [20:11:07]requested_item shift.opened is exist - process it [20:11:07]req_shift_opened [20:11:07]FM_GetShiftState [20:11:07]SAM_PROTO_GetShiftState [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 13 01 00 [20:11:07]Write to MH i2c: E2 08 00 74 17 80 13 01 00 00 00 00 00 08 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 0E 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 0E 00 74 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FD [20:11:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:11:07]wFMCommunicate OK [20:11:07]SAM_PROTO_GetShiftState done [20:11:07]FM_GetShiftState done [20:11:07]req_shift_opened done [20:11:07]requested_item shift.open_date is exist - process it [20:11:07]req_shift_open_date [20:11:07]req_shift_open_date done [20:11:07]produce_requested_data done [20:11:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188479,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:11:07]process_action_free close_receipt [20:11:07]json_value_free [20:11:07]json_value_free done [20:11:07]process_json_proto returns [20:11:07]Send response to host [20:11:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188479,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:11:07]free response buf [20:11:07]execute_script done [20:11:07]execute_script returns [20:11:07]free content buf [20:11:07]Sock 10.Close socket [20:11:07]Sock 10.Thread stoped [20:11:11]OFD Sender: No OFD packet to send [20:11:16]OFD Sender: No OFD packet to send [20:11:21]OFD Sender: No OFD packet to send [20:11:26]OFD Sender: No OFD packet to send [20:11:31]OFD Sender: No OFD packet to send [20:11:36]OFD Sender: No OFD packet to send [20:11:41]OFD Sender: No OFD packet to send [20:11:46]OFD Sender: No OFD packet to send [20:11:51]OFD Sender: No OFD packet to send [20:11:56]OFD Sender: No OFD packet to send [20:12:01]OFD Sender: No OFD packet to send [20:12:06]OFD Sender: No OFD packet to send [20:12:11]OFD Sender: No OFD packet to send [20:12:16]OFD Sender: No OFD packet to send [20:12:21]OFD Sender: No OFD packet to send [20:12:26]OFD Sender: No OFD packet to send [20:12:31]OFD Sender: No OFD packet to send [20:12:36]OFD Sender: No OFD packet to send [20:12:41]OFD Sender: No OFD packet to send [20:12:46]OFD Sender: No OFD packet to send [20:12:51]OFD Sender: No OFD packet to send [20:12:56]OFD Sender: No OFD packet to send [20:13:01]OFD Sender: No OFD packet to send [20:13:06]OFD Sender: No OFD packet to send [20:13:11]OFD Sender: No OFD packet to send [20:13:16]OFD Sender: No OFD packet to send [20:13:21]OFD Sender: No OFD packet to send [20:13:26]OFD Sender: No OFD packet to send [20:13:31]OFD Sender: No OFD packet to send [20:13:36]OFD Sender: No OFD packet to send [20:13:41]OFD Sender: No OFD packet to send [20:13:46]OFD Sender: No OFD packet to send [20:13:51]OFD Sender: No OFD packet to send [20:13:56]OFD Sender: No OFD packet to send [20:14:01]OFD Sender: No OFD packet to send [20:14:06]OFD Sender: No OFD packet to send [20:14:11]OFD Sender: No OFD packet to send [20:14:17]OFD Sender: No OFD packet to send [20:14:22]OFD Sender: No OFD packet to send [20:14:27]OFD Sender: No OFD packet to send [20:14:32]OFD Sender: No OFD packet to send [20:14:35]accept exits with 7 [20:14:35]New connection [20:14:35]New thread 3066756452 created [20:14:35]Thread 3066613092 joined [20:14:35]Waiting for new connection... [20:14:35] Sock 7.Parse request [20:14:35]Sock 7.Check first char [20:14:35]Sock 7.First char is OK [20:14:35]request: POST /json_proto HTTP/1.0 [20:14:35]Method: POST [20:14:35]URL: /json_proto [20:14:35]Method is POST - this is cgi request [20:14:35]url: /json_proto [20:14:35]query_string will be loaded in cgi processing [20:14:35]execute_cgi json_proto POST (null) [20:14:35]execute_cgi path=json_proto method=POST [20:14:35]POST find Content-Length [20:14:35]Host: 172.17.42.131:8080 [20:14:35]Content-Length: 679 [20:14:35]Content-Type: application/json [20:14:35] [20:14:35]POST finish read [20:14:35]Found Content-Length = 679 [20:14:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:35]execute_script... [20:14:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210540", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 78.750, "sum" : 6000.75, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 6000.00, "total" : 6000.00, "payments": [ { "type": 0, "sum" : 6000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:14:35]POST & json_proto [20:14:35]process_json_proto [20:14:35]json parsed OK: [20:14:35]protocol is kg_v1.0 [20:14:35]action value=close_receipt [20:14:35]process_action close_receipt [20:14:35]cmd_close_receipt [20:14:35]MH_GetDate [20:14:35]Write to MH i2c: F0 00 00 75 17 7B [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: F0 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: F0 09 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: F0 09 00 75 17 00 AC 07 18 67 A0 18 CA 66 9E [20:14:35]GetLastDocTimeStamp 1729627864 [20:14:35]current date 1729628076 [20:14:35]FM_GetShiftState [20:14:35]SAM_PROTO_GetShiftState [20:14:35]wFMCommunicate request_size=4 [20:14:35]MH_SAM_APDU [20:14:35]CAPDU: 80 13 01 00 [20:14:35]Write to MH i2c: E2 08 00 76 17 80 13 01 00 00 00 00 00 0A [20:14:35]Write i2c OK [20:14:35]MH_I2C_Read... [20:14:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:35]Read from MH i2c: E2 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 0E 00 [20:14:35]MH_I2C_Read... [20:14:35]Read from MH i2c: E2 0E 00 76 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FF [20:14:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:14:35]wFMCommunicate OK [20:14:35]SAM_PROTO_GetShiftState done [20:14:35]FM_GetShiftState done [20:14:35]opened in 1729556094 [20:14:35]opened+sec_in_day 1729642494 [20:14:35]quantity*price = 600075 [20:14:35]sum+1 = 600076 [20:14:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.75 ИТОГО: 6000.00 Внесено: 6000.00 СДАЧА: 0.00 НСП 1% : 53.10 НДС 12% : 637.25 Наличными: 6000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 509 22.10.2024 20:14 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188480 ФПД: 276047045246835 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201436&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188480&fm=276047045246835&tin=02508201610067®Number=0000000000100030&sum=600000 [20:14:36]StoreToDocumentArchive [20:14:36]shift 461 fd 188480 [20:14:36]save to /storage/0461/doc_00188480 [20:14:36]save last doc name /storage/0461/doc_00188480 to /storage/kkm_last_doc_name [20:14:36]save OK [20:14:36]Clear old archive folders... [20:14:36]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:14:36]tlvbuf is 00936740 [20:14:36]SAM_PROTO_ClearQueue [20:14:36]wFMCommunicate request_size=4 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 09 00 00 [20:14:36]Write to MH i2c: E2 08 00 83 17 80 09 00 00 00 00 00 00 0C [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:14:36]Read from MH i2c: E2 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 83 17 00 90 00 0E [20:14:36]RAPDU: 90 00 [20:14:36]wFMCommunicate OK [20:14:36]SAM_PROTO_ClearQueue done [20:14:36]KKMCreateOFDPacket [20:14:36]OFDProtocolAddRootSTLVToBuf [20:14:36]FM_MakeSignedData [20:14:36]FM_MakeSignedData [20:14:36]SAM_PROTO_SignData [20:14:36]wFMCommunicate request_size=4 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 0D 01 02 [20:14:36]Write to MH i2c: E2 08 00 84 17 80 0D 01 02 00 00 00 00 14 [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:14:36]Read from MH i2c: E2 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 84 17 00 90 00 0F [20:14:36]RAPDU: 90 00 [20:14:36]wFMCommunicate OK [20:14:36]wFMCommunicate request_size=255 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 AC 07 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E0 02 00 35 04 06 00 FB 10 36 12 [20:14:36]Write to MH i2c: E2 02 01 85 17 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 AC 07 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E0 02 00 35 04 06 00 FB 10 36 12 00 00 50 [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:36]Read from MH i2c: E2 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 85 17 00 90 00 10 [20:14:36]RAPDU: 90 00 [20:14:36]wFMCommunicate OK [20:14:36]wFMCommunicate request_size=7 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 0D 02 02 02 BF 73 [20:14:36]Write to MH i2c: E2 0A 00 86 17 80 0D 02 02 02 00 BF 73 00 00 4D [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:14:36]Read from MH i2c: E2 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 03 00 86 17 00 90 00 11 [20:14:36]RAPDU: 90 00 [20:14:36]wFMCommunicate OK [20:14:36]wFMCommunicate request_size=4 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 0D 03 02 [20:14:36]Write to MH i2c: E2 08 00 87 17 80 0D 03 02 00 00 00 00 19 [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:14:36]Read from MH i2c: E2 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 0B 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 0B 00 87 17 00 95 47 EF 8E DC 8D 2E 4B 90 00 55 [20:14:36]RAPDU: 95 47 EF 8E DC 8D 2E 4B 90 00 [20:14:36]wFMCommunicate OK [20:14:36]SAM_PROTO_SignData done [20:14:36]FM_MakeSignedData done [20:14:36]CreateOFDProtocolMessage [20:14:36]wFMCommunicate request_size=4 [20:14:36]MH_SAM_APDU [20:14:36]CAPDU: 80 11 00 00 [20:14:36]Write to MH i2c: E2 08 00 88 17 80 11 00 00 00 00 00 00 19 [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:36]Read from MH i2c: E2 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 17 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: E2 17 00 88 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 67 [20:14:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:14:36]wFMCommunicate OK [20:14:36]CreateOFDProtocolMessage done [20:14:36]OFDSenderStorePacket 188480 [20:14:36]StoreOFDPacket docnum=188480 [20:14:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4B 1F 04 01 42 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 AC 07 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E0 02 00 35 04 06 00 FB 10 36 12 BF 73 95 47 EF 8E DC 8D 2E 4B [20:14:36]CheckFolder [20:14:36]dirname=/storage/ofd_packets [20:14:36]CheckFolder done [20:14:36]ProducePacketName [20:14:36]name=ofd_packets/00188480 [20:14:36]NVStorageSaveData ofd_packets/00188480 [20:14:36]File name is /storage/ofd_packets/00188480 [20:14:36]Write 298 bytes [20:14:36]NVStorageSaveData done [20:14:36]OFDSenderStorePacket done [20:14:36]KKMCreateOFDPacket done [20:14:36]NVStorageSaveData kkm_last_timestamp [20:14:36]File name is /storage/kkm_last_timestamp [20:14:36]Write 4 bytes [20:14:36]NVStorageSaveData done [20:14:36]ExternCall_PrintAddStr [20:14:36]wPrintStart [20:14:36]Write to MH i2c: 01 00 00 89 17 A0 [20:14:36]Write i2c OK [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: 01 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: 01 07 00 [20:14:36]MH_I2C_Read... [20:14:36]Read from MH i2c: 01 07 00 89 17 00 00 00 00 00 FF 0F B5 [20:14:36]RasterBufferAndPrint [20:14:36]line Счет N : (1)210540 [20:14:36]line ИНН: 02508201610067 [20:14:36]line Контрольно-Кассовый Чек [20:14:36]line ПРОДАЖА [20:14:36]line ТРК (МРК, ГНК) : 51 [20:14:36]line Товар: 2710194210 [20:14:36]line ДТ-К-5 [20:14:36]line 78.750 * 76.20 [20:14:36]line = 6000.75 [20:14:36]line НДС 12% НСП 1% [20:14:36]line > о реализуемом товаре [20:14:36]line ОКРУГЛЕНИЕ: -0.75 [20:14:36]line ИТОГО: 6000.00 [20:14:36]line Внесено: 6000.00 [20:14:36]line СДАЧА: 0.00 [20:14:36]line НСП 1% : 53.10 [20:14:36]line НДС 12% : 637.25 [20:14:36]line Наличными: 6000.00 [20:14:36]line Безнал.: 0.00 [20:14:36]line Место: АЗС № 86 "Партнер Нефть" [20:14:36]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:14:36]line СНО: Общий режим [20:14:36]line Чек 509 22.10.2024 20:14 [20:14:36]line Смена: 461 ФФД: 1.0 [20:14:36]line ЗНМ: 0300000155 [20:14:36]line РНМ: 0000000000100030 [20:14:36]line Версия ККМ: 001 [20:14:36]line ФМ: 0000000000965340 [20:14:36]line ФД: 188480 [20:14:36]line ФПД: 276047045246835 [20:14:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201436&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188480&fm=276047045246835&tin=02508201610067®Number=0000000000100030&sum=600000 [20:14:36]written 0, free lines is 4095 [20:14:36]OFD Sender: Processing packet 188480 [packets to send 1062, broken 1061] [20:14:36]ProducePacketName [20:14:36]name=ofd_packets/00188480 [20:14:36]OFD Sender: To server: pG, [20:14:36]CommunicateWithHost lk.salyk.kg:30040 [20:14:36]ConnectInit lk.salyk.kg [20:14:37]Connected sock=10 [20:14:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 4B 1F 04 01 42 BD 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 9E 33 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 0B 28 09 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C0 27 09 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BE 14 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED F8 00 00 00 00 07 04 06 00 C0 27 09 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FD 01 00 00 F4 03 04 00 AC 07 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E0 02 00 35 04 06 00 FB 10 36 12 BF 73 95 47 EF 8E DC 8D 2E 4B [20:14:37]Write to MH i2c: 01 00 00 B4 17 CB [20:14:37]Write i2c OK [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: 01 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: 01 07 00 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: 01 07 00 B4 17 00 00 00 00 00 61 0C 3F [20:14:37]RasterBufferAndPrint [20:14:37]line [20:14:37]line [20:14:37]line [20:14:37]line [20:14:37]line [20:14:37]written 0, free lines is 3172 [20:14:37]MH_Cut [20:14:37]Write to MH i2c: D1 01 00 BB 17 01 A4 [20:14:37]Write i2c OK [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: D1 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: D1 01 00 [20:14:37]MH_I2C_Read... [20:14:37]Read from MH i2c: D1 01 00 BB 17 00 A3 [20:14:37]Write to MH i2c: 01 00 00 BC 17 D3 [20:14:37]Write i2c OK [20:14:37]MH_I2C_Read... [20:14:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F5 D0 47 00 53 D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 40 E0 02 00 F4 03 04 00 99 B1 17 67 B6 04 01 00 00 73 0C 97 EA E2 80 F4 04 [20:14:37]CommunicateWithHost err = 0 [20:14:37]CheckOFDResponse [20:14:37]1017 (14) - 77093643461234 [20:14:37]1041 (16) - 0000000000965340 [20:14:37]1040 (4) - 188480 [20:14:37]1012 (4) - 22.10.2024 14:07 [20:14:37]1206 (1) - 0 [20:14:37]OFD Sender: Remove packet 188480 [20:14:37]ProducePacketName [20:14:37]name=ofd_packets/00188480 [20:14:37]NVStorageDeleteData [20:14:38]OFD Sender: No OFD packet to send [20:14:38]*** Cut start [20:14:38]*** Partial cut [20:14:38]*** CUTSNS_PIN = 1 [20:14:38]*** CUTSNS_PIN = 0 [20:14:38]*** Brake cut motor [20:14:39]Read from MH i2c: 01 [20:14:39]MH_I2C_Read... [20:14:39]*** Stop cut motor [20:14:39]*** Cut end [20:14:39]Read from MH i2c: 01 07 00 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: 01 07 00 BC 17 00 00 00 00 00 FF 0F E8 [20:14:39]process_action close_receipt done [20:14:39]requested_data is exist [20:14:39]produce_requested_data [20:14:39]requested_item fm.sn is exist - process it [20:14:39]wFMCommunicate request_size=4 [20:14:39]MH_SAM_APDU [20:14:39]CAPDU: 80 11 00 00 [20:14:39]Write to MH i2c: E2 08 00 BD 17 80 11 00 00 00 00 00 00 4E [20:14:39]Write i2c OK [20:14:39]MH_I2C_Read... [20:14:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:14:39]Read from MH i2c: E2 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 17 00 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 17 00 BD 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9C [20:14:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:14:39]wFMCommunicate OK [20:14:39]requested_item fd.num is exist - process it [20:14:39]SAM_PROTO_GetFieldsCounters [20:14:39]wFMCommunicate request_size=4 [20:14:39]MH_SAM_APDU [20:14:39]CAPDU: 80 13 00 00 [20:14:39]Write to MH i2c: E2 08 00 BE 17 80 13 00 00 00 00 00 00 51 [20:14:39]Write i2c OK [20:14:39]MH_I2C_Read... [20:14:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:14:39]Read from MH i2c: E2 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 62 00 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 62 00 BE 17 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FD 01 00 00 5E 04 04 00 FD 01 00 00 57 04 04 00 FE 01 00 00 19 04 04 00 00 00 00 00 90 00 42 [20:14:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 40 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FD 01 00 00 5E 04 04 00 FD 01 00 00 57 04 04 00 FE 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:14:39]wFMCommunicate OK [20:14:39]SAM_PROTO_GetFieldsCounters done [20:14:39]requested_item shift.num is exist - process it [20:14:39]requested_item shift.opened is exist - process it [20:14:39]req_shift_opened [20:14:39]FM_GetShiftState [20:14:39]SAM_PROTO_GetShiftState [20:14:39]wFMCommunicate request_size=4 [20:14:39]MH_SAM_APDU [20:14:39]CAPDU: 80 13 01 00 [20:14:39]Write to MH i2c: E2 08 00 BF 17 80 13 01 00 00 00 00 00 53 [20:14:39]Write i2c OK [20:14:39]MH_I2C_Read... [20:14:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:14:39]Read from MH i2c: E2 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 0E 00 [20:14:39]MH_I2C_Read... [20:14:39]Read from MH i2c: E2 0E 00 BF 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 48 [20:14:39]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:14:39]wFMCommunicate OK [20:14:39]SAM_PROTO_GetShiftState done [20:14:39]FM_GetShiftState done [20:14:39]req_shift_opened done [20:14:39]requested_item shift.open_date is exist - process it [20:14:39]req_shift_open_date [20:14:39]req_shift_open_date done [20:14:39]produce_requested_data done [20:14:39]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188480,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:14:39]process_action_free close_receipt [20:14:39]json_value_free [20:14:39]json_value_free done [20:14:39]process_json_proto returns [20:14:39]Send response to host [20:14:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188480,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:14:39]free response buf [20:14:39]execute_script done [20:14:39]execute_script returns [20:14:39]free content buf [20:14:39]Sock 7.Close socket [20:14:39]Sock 7.Thread stoped [20:14:43]OFD Sender: No OFD packet to send [20:14:48]OFD Sender: No OFD packet to send [20:14:53]OFD Sender: No OFD packet to send [20:14:58]OFD Sender: No OFD packet to send [20:15:03]OFD Sender: No OFD packet to send [20:15:08]OFD Sender: No OFD packet to send [20:15:13]OFD Sender: No OFD packet to send [20:15:18]OFD Sender: No OFD packet to send [20:15:23]OFD Sender: No OFD packet to send [20:15:28]OFD Sender: No OFD packet to send [20:15:33]OFD Sender: No OFD packet to send [20:15:38]OFD Sender: No OFD packet to send [20:15:43]OFD Sender: No OFD packet to send [20:15:48]OFD Sender: No OFD packet to send [20:15:53]OFD Sender: No OFD packet to send [20:15:58]OFD Sender: No OFD packet to send [20:16:03]OFD Sender: No OFD packet to send [20:16:08]OFD Sender: No OFD packet to send [20:16:13]OFD Sender: No OFD packet to send [20:16:18]OFD Sender: No OFD packet to send [20:16:23]OFD Sender: No OFD packet to send [20:16:28]OFD Sender: No OFD packet to send [20:16:33]OFD Sender: No OFD packet to send [20:16:38]OFD Sender: No OFD packet to send [20:16:43]OFD Sender: No OFD packet to send [20:16:48]OFD Sender: No OFD packet to send [20:16:53]OFD Sender: No OFD packet to send [20:16:58]OFD Sender: No OFD packet to send [20:17:03]OFD Sender: No OFD packet to send [20:17:08]OFD Sender: No OFD packet to send [20:17:13]OFD Sender: No OFD packet to send [20:17:18]OFD Sender: No OFD packet to send [20:17:23]OFD Sender: No OFD packet to send [20:17:28]OFD Sender: No OFD packet to send [20:17:33]OFD Sender: No OFD packet to send [20:17:38]OFD Sender: No OFD packet to send [20:17:43]OFD Sender: No OFD packet to send [20:17:48]OFD Sender: No OFD packet to send [20:17:53]OFD Sender: No OFD packet to send [20:17:59]OFD Sender: No OFD packet to send [20:18:04]OFD Sender: No OFD packet to send [20:18:05]accept exits with 9 [20:18:05]New connection [20:18:05]New thread 3066613092 created [20:18:05]Thread 3066756452 joined [20:18:05]Waiting for new connection... [20:18:05] Sock 9.Parse request [20:18:05]Sock 9.Check first char [20:18:05]Sock 9.First char is OK [20:18:05]request: POST /json_proto HTTP/1.0 [20:18:05]Method: POST [20:18:05]URL: /json_proto [20:18:05]Method is POST - this is cgi request [20:18:05]url: /json_proto [20:18:05]query_string will be loaded in cgi processing [20:18:05]execute_cgi json_proto POST (null) [20:18:05]execute_cgi path=json_proto method=POST [20:18:05]POST find Content-Length [20:18:05]Host: 172.17.42.131:8080 [20:18:05]Content-Length: 769 [20:18:05]Content-Type: application/json [20:18:05] [20:18:05]POST finish read [20:18:05]Found Content-Length = 769 [20:18:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:05]execute_script... [20:18: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)210541", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:18:05]POST & json_proto [20:18:05]process_json_proto [20:18:05]json parsed OK: [20:18:05]protocol is kg_v1.0 [20:18:05]action value=close_receipt [20:18:05]process_action close_receipt [20:18:05]cmd_close_receipt [20:18:05]MH_GetDate [20:18:05]Write to MH i2c: F0 00 00 C0 17 C6 [20:18:05]Write i2c OK [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: F0 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: F0 09 00 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: F0 09 00 C0 17 00 7E 08 18 67 A0 18 CA 66 BC [20:18:05]GetLastDocTimeStamp 1729628076 [20:18:05]current date 1729628286 [20:18:05]FM_GetShiftState [20:18:05]SAM_PROTO_GetShiftState [20:18:05]wFMCommunicate request_size=4 [20:18:05]MH_SAM_APDU [20:18:05]CAPDU: 80 13 01 00 [20:18:05]Write to MH i2c: E2 08 00 C1 17 80 13 01 00 00 00 00 00 55 [20:18:05]Write i2c OK [20:18:05]MH_I2C_Read... [20:18:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:05]Read from MH i2c: E2 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: E2 0E 00 [20:18:05]MH_I2C_Read... [20:18:05]Read from MH i2c: E2 0E 00 C1 17 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4A [20:18:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:18:05]wFMCommunicate OK [20:18:05]SAM_PROTO_GetShiftState done [20:18:05]FM_GetShiftState done [20:18:05]opened in 1729556094 [20:18:05]opened+sec_in_day 1729642494 [20:18:05]quantity*price = 100021 [20:18:05]sum+1 = 100023 [20:18:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 510 22.10.2024 20:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188481 ФПД: 260798735570508 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201806&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188481&fm=260798735570508&tin=02508201610067®Number=0000000000100030&sum=100022 [20:18:06]StoreToDocumentArchive [20:18:06]shift 461 fd 188481 [20:18:06]save to /storage/0461/doc_00188481 [20:18:06]save last doc name /storage/0461/doc_00188481 to /storage/kkm_last_doc_name [20:18:06]save OK [20:18:06]Clear old archive folders... [20:18:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:18:06]tlvbuf is 008FEDB0 [20:18:06]SAM_PROTO_ClearQueue [20:18:06]wFMCommunicate request_size=4 [20:18:06]MH_SAM_APDU [20:18:06]CAPDU: 80 09 00 00 [20:18:06]Write to MH i2c: E2 08 00 CE 17 80 09 00 00 00 00 00 00 57 [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:18:06]Read from MH i2c: E2 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 03 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 03 00 CE 17 00 90 00 59 [20:18:06]RAPDU: 90 00 [20:18:06]wFMCommunicate OK [20:18:06]SAM_PROTO_ClearQueue done [20:18:06]KKMCreateOFDPacket [20:18:06]OFDProtocolAddRootSTLVToBuf [20:18:06]FM_MakeSignedData [20:18:06]FM_MakeSignedData [20:18:06]SAM_PROTO_SignData [20:18:06]wFMCommunicate request_size=4 [20:18:06]MH_SAM_APDU [20:18:06]CAPDU: 80 0D 01 02 [20:18:06]Write to MH i2c: E2 08 00 CF 17 80 0D 01 02 00 00 00 00 5F [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:18:06]Read from MH i2c: E2 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 03 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 03 00 CF 17 00 90 00 5A [20:18:06]RAPDU: 90 00 [20:18:06]wFMCommunicate OK [20:18:06]wFMCommunicate request_size=255 [20:18:06]MH_SAM_APDU [20:18: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 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7E 08 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E0 02 00 35 04 06 00 ED [20:18:06]Write to MH i2c: E2 02 01 D0 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7E 08 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E0 02 00 35 04 06 00 ED 00 00 FD [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:06]Read from MH i2c: E2 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 03 00 [20:18:06]MH_I2C_Read... [20:18:06]Read from MH i2c: E2 03 00 D0 17 00 90 00 5B [20:18:06]RAPDU: 90 00 [20:18:06]wFMCommunicate OK [20:18:06]wFMCommunicate request_size=10 [20:18:06]MH_SAM_APDU [20:18:06]CAPDU: 80 0D 02 02 05 31 EF FD D6 4C [20:18:06]Write to MH i2c: E2 0D 00 D1 17 80 0D 02 02 05 00 31 EF FD D6 4C 00 00 AB [20:18:06]Write i2c OK [20:18:06]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 03 00 D1 17 00 90 00 5C [20:18:07]RAPDU: 90 00 [20:18:07]wFMCommunicate OK [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 0D 03 02 [20:18:07]Write to MH i2c: E2 08 00 D2 17 80 0D 03 02 00 00 00 00 64 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 0B 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 0B 00 D2 17 00 96 68 47 B6 30 61 F0 06 90 00 E7 [20:18:07]RAPDU: 96 68 47 B6 30 61 F0 06 90 00 [20:18:07]wFMCommunicate OK [20:18:07]SAM_PROTO_SignData done [20:18:07]FM_MakeSignedData done [20:18:07]CreateOFDProtocolMessage [20:18:07]wFMCommunicate request_size=4 [20:18:07]MH_SAM_APDU [20:18:07]CAPDU: 80 11 00 00 [20:18:07]Write to MH i2c: E2 08 00 D3 17 80 11 00 00 00 00 00 00 64 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:07]Read from MH i2c: E2 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 17 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: E2 17 00 D3 17 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B2 [20:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:18:07]wFMCommunicate OK [20:18:07]CreateOFDProtocolMessage done [20:18:07]OFDSenderStorePacket 188481 [20:18:07]StoreOFDPacket docnum=188481 [20:18:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7A C0 07 01 70 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7E 08 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E0 02 00 35 04 06 00 ED 31 EF FD D6 4C 96 68 47 B6 30 61 F0 06 [20:18:07]CheckFolder [20:18:07]dirname=/storage/ofd_packets [20:18:07]CheckFolder done [20:18:07]ProducePacketName [20:18:07]name=ofd_packets/00188481 [20:18:07]NVStorageSaveData ofd_packets/00188481 [20:18:07]File name is /storage/ofd_packets/00188481 [20:18:07]Write 301 bytes [20:18:07]NVStorageSaveData done [20:18:07]OFDSenderStorePacket done [20:18:07]KKMCreateOFDPacket done [20:18:07]NVStorageSaveData kkm_last_timestamp [20:18:07]File name is /storage/kkm_last_timestamp [20:18:07]Write 4 bytes [20:18:07]NVStorageSaveData done [20:18:07]ExternCall_PrintAddStr [20:18:07]wPrintStart [20:18:07]Write to MH i2c: 01 00 00 D4 17 EB [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 D4 17 00 00 00 00 00 FF 0F 00 [20:18:07]RasterBufferAndPrint [20:18:07]line Счет N : (1)210541 [20:18:07]line ИНН: 02508201610067 [20:18:07]line Контрольно-Кассовый Чек [20:18:07]line ПРОДАЖА [20:18:07]line ТРК (МРК, ГНК) : 13 [20:18:07]line Товар: 2710124500 [20:18:07]line Аи-95-К-3 [20:18:07]line 13.480 * 74.20 [20:18:07]line = 1000.22 [20:18:07]line НДС 12% НСП 1% [20:18:07]line > о реализуемом товаре [20:18:07]line ИТОГО: 1000.22 [20:18:07]line НСП 1% : 8.85 [20:18:07]line НДС 12% : 106.22 [20:18:07]line Наличными: 0.00 [20:18:07]line Безнал.: 1000.22 [20:18:07]line Место: АЗС № 86 "Партнер Нефть" [20:18:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:18:07]line СНО: Общий режим [20:18:07]line Чек 510 22.10.2024 20:18 [20:18:07]line Смена: 461 ФФД: 1.0 [20:18:07]line ЗНМ: 0300000155 [20:18:07]line РНМ: 0000000000100030 [20:18:07]line Версия ККМ: 001 [20:18:07]line Платежная система: Mbank [20:18:07]line ФМ: 0000000000965340 [20:18:07]line ФД: 188481 [20:18:07]line ФПД: 260798735570508 [20:18:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T201806&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188481&fm=260798735570508&tin=02508201610067®Number=0000000000100030&sum=100022 [20:18:07]written 0, free lines is 4095 [20:18:07]OFD Sender: Processing packet 188481 [packets to send 1062, broken 1061] [20:18:07]ProducePacketName [20:18:07]name=ofd_packets/00188481 [20:18:07]OFD Sender: To server: pG, [20:18:07]CommunicateWithHost lk.salyk.kg:30040 [20:18:07]ConnectInit lk.salyk.kg [20:18:07]Connected sock=10 [20:18:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7A C0 07 01 70 D5 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 FE 01 00 00 F4 03 04 00 7E 08 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 41 E0 02 00 35 04 06 00 ED 31 EF FD D6 4C 96 68 47 B6 30 61 F0 06 [20:18:07]Write to MH i2c: 01 00 00 FD 17 14 [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: 01 07 00 FD 17 00 00 00 00 00 92 0C B9 [20:18:07]RasterBufferAndPrint [20:18:07]line [20:18:07]line [20:18:07]line [20:18:07]line [20:18:07]line [20:18:07]written 0, free lines is 3222 [20:18:07]MH_Cut [20:18:07]Write to MH i2c: D1 01 00 04 18 01 EE [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: D1 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: D1 01 00 [20:18:07]MH_I2C_Read... [20:18:07]Read from MH i2c: D1 01 00 04 18 00 ED [20:18:07]Write to MH i2c: 01 00 00 05 18 1D [20:18:07]Write i2c OK [20:18:07]MH_I2C_Read... [20:18:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 3A F2 47 00 B4 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 39 36 35 33 34 30 10 04 04 00 41 E0 02 00 F4 03 04 00 6B B2 17 67 B6 04 01 00 00 B4 1F DF 25 67 B0 6B 1E [20:18:07]CommunicateWithHost err = 0 [20:18:07]CheckOFDResponse [20:18:07]1017 (14) - 77093643461234 [20:18:07]1041 (16) - 0000000000965340 [20:18:07]1040 (4) - 188481 [20:18:07]1012 (4) - 22.10.2024 14:10 [20:18:07]1206 (1) - 0 [20:18:07]OFD Sender: Remove packet 188481 [20:18:07]ProducePacketName [20:18:07]name=ofd_packets/00188481 [20:18:07]NVStorageDeleteData [20:18:08]OFD Sender: No OFD packet to send [20:18:08]*** Cut start [20:18:08]*** Partial cut [20:18:08]*** CUTSNS_PIN = 1 [20:18:08]*** CUTSNS_PIN = 0 [20:18:09]*** Brake cut motor [20:18:09]Read from MH i2c: 01 [20:18:09]MH_I2C_Read... [20:18:09]*** Stop cut motor [20:18:09]*** Cut end [20:18:09]Read from MH i2c: 01 07 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: 01 07 00 05 18 00 00 00 00 00 FF 0F 32 [20:18:09]process_action close_receipt done [20:18:09]requested_data is exist [20:18:09]produce_requested_data [20:18:09]requested_item fm.sn is exist - process it [20:18:09]wFMCommunicate request_size=4 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 11 00 00 [20:18:09]Write to MH i2c: E2 08 00 06 18 80 11 00 00 00 00 00 00 98 [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:18:09]Read from MH i2c: E2 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 17 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 17 00 06 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E6 [20:18:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:18:09]wFMCommunicate OK [20:18:09]requested_item fd.num is exist - process it [20:18:09]SAM_PROTO_GetFieldsCounters [20:18:09]wFMCommunicate request_size=4 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 13 00 00 [20:18:09]Write to MH i2c: E2 08 00 07 18 80 13 00 00 00 00 00 00 9B [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:18:09]Read from MH i2c: E2 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 62 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 62 00 07 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FE 01 00 00 5E 04 04 00 FE 01 00 00 57 04 04 00 FF 01 00 00 19 04 04 00 00 00 00 00 90 00 90 [20:18:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 41 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FE 01 00 00 5E 04 04 00 FE 01 00 00 57 04 04 00 FF 01 00 00 19 04 04 00 00 00 00 00 90 00 [20:18:09]wFMCommunicate OK [20:18:09]SAM_PROTO_GetFieldsCounters done [20:18:09]requested_item shift.num is exist - process it [20:18:09]requested_item shift.opened is exist - process it [20:18:09]req_shift_opened [20:18:09]FM_GetShiftState [20:18:09]SAM_PROTO_GetShiftState [20:18:09]wFMCommunicate request_size=4 [20:18:09]MH_SAM_APDU [20:18:09]CAPDU: 80 13 01 00 [20:18:09]Write to MH i2c: E2 08 00 08 18 80 13 01 00 00 00 00 00 9D [20:18:09]Write i2c OK [20:18:09]MH_I2C_Read... [20:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:18:09]Read from MH i2c: E2 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 0E 00 [20:18:09]MH_I2C_Read... [20:18:09]Read from MH i2c: E2 0E 00 08 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 92 [20:18:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:18:09]wFMCommunicate OK [20:18:09]SAM_PROTO_GetShiftState done [20:18:09]FM_GetShiftState done [20:18:09]req_shift_opened done [20:18:09]requested_item shift.open_date is exist - process it [20:18:09]req_shift_open_date [20:18:09]req_shift_open_date done [20:18:09]produce_requested_data done [20:18:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188481,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:18:09]process_action_free close_receipt [20:18:09]json_value_free [20:18:09]json_value_free done [20:18:09]process_json_proto returns [20:18:09]Send response to host [20:18:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188481,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:18:09]free response buf [20:18:09]execute_script done [20:18:09]execute_script returns [20:18:09]free content buf [20:18:09]Sock 9.Close socket [20:18:09]Sock 9.Thread stoped [20:18:13]OFD Sender: No OFD packet to send [20:18:18]OFD Sender: No OFD packet to send [20:18:23]OFD Sender: No OFD packet to send [20:18:28]OFD Sender: No OFD packet to send [20:18:33]OFD Sender: No OFD packet to send [20:18:38]OFD Sender: No OFD packet to send [20:18:43]OFD Sender: No OFD packet to send [20:18:48]OFD Sender: No OFD packet to send [20:18:53]OFD Sender: No OFD packet to send [20:18:58]OFD Sender: No OFD packet to send [20:19:03]OFD Sender: No OFD packet to send [20:19:08]OFD Sender: No OFD packet to send [20:19:13]OFD Sender: No OFD packet to send [20:19:18]OFD Sender: No OFD packet to send [20:19:23]OFD Sender: No OFD packet to send [20:19:28]OFD Sender: No OFD packet to send [20:19:33]OFD Sender: No OFD packet to send [20:19:38]OFD Sender: No OFD packet to send [20:19:43]OFD Sender: No OFD packet to send [20:19:48]OFD Sender: No OFD packet to send [20:19:53]OFD Sender: No OFD packet to send [20:19:58]OFD Sender: No OFD packet to send [20:20:03]OFD Sender: No OFD packet to send [20:20:08]OFD Sender: No OFD packet to send [20:20:13]OFD Sender: No OFD packet to send [20:20:18]OFD Sender: No OFD packet to send [20:20:23]OFD Sender: No OFD packet to send [20:20:28]OFD Sender: No OFD packet to send [20:20:33]OFD Sender: No OFD packet to send [20:20:38]OFD Sender: No OFD packet to send [20:20:43]OFD Sender: No OFD packet to send [20:20:47]accept exits with 7 [20:20:47]New connection [20:20:47]New thread 3066756452 created [20:20:47]Thread 3066613092 joined [20:20:47]Waiting for new connection... [20:20:47] Sock 7.Parse request [20:20:47]Sock 7.Check first char [20:20:47]Sock 7.First char is OK [20:20:47]request: POST /json_proto HTTP/1.0 [20:20:47]Method: POST [20:20:47]URL: /json_proto [20:20:47]Method is POST - this is cgi request [20:20:47]url: /json_proto [20:20:47]query_string will be loaded in cgi processing [20:20:47]execute_cgi json_proto POST (null) [20:20:47]execute_cgi path=json_proto method=POST [20:20:47]POST find Content-Length [20:20:47]Host: 172.17.42.131:8080 [20:20:47]Content-Length: 679 [20:20:47]Content-Type: application/json [20:20:47] [20:20:47]POST finish read [20:20:47]Found Content-Length = 679 [20:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:47]execute_script... [20:20: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)210542", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 65.620, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:20:47]POST & json_proto [20:20:47]process_json_proto [20:20:47]json parsed OK: [20:20:47]protocol is kg_v1.0 [20:20:47]action value=close_receipt [20:20:47]process_action close_receipt [20:20:47]cmd_close_receipt [20:20:47]MH_GetDate [20:20:47]Write to MH i2c: F0 00 00 09 18 10 [20:20:47]Write i2c OK [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: F0 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: F0 09 00 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: F0 09 00 09 18 00 20 09 18 67 A0 18 CA 66 A9 [20:20:47]GetLastDocTimeStamp 1729628286 [20:20:47]current date 1729628448 [20:20:47]FM_GetShiftState [20:20:47]SAM_PROTO_GetShiftState [20:20:47]wFMCommunicate request_size=4 [20:20:47]MH_SAM_APDU [20:20:47]CAPDU: 80 13 01 00 [20:20:47]Write to MH i2c: E2 08 00 0A 18 80 13 01 00 00 00 00 00 9F [20:20:47]Write i2c OK [20:20:47]MH_I2C_Read... [20:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:47]Read from MH i2c: E2 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: E2 0E 00 [20:20:47]MH_I2C_Read... [20:20:47]Read from MH i2c: E2 0E 00 0A 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 94 [20:20:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:20:47]wFMCommunicate OK [20:20:47]SAM_PROTO_GetShiftState done [20:20:47]FM_GetShiftState done [20:20:47]opened in 1729556094 [20:20:47]opened+sec_in_day 1729642494 [20:20:47]quantity*price = 500024 [20:20:47]sum+1 = 500025 [20:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 511 22.10.2024 20:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188482 ФПД: 29381095992451 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202049&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188482&fm=29381095992451&tin=02508201610067®Number=0000000000100030&sum=500000 [20:20:48]StoreToDocumentArchive [20:20:48]shift 461 fd 188482 [20:20:48]save to /storage/0461/doc_00188482 [20:20:48]save last doc name /storage/0461/doc_00188482 to /storage/kkm_last_doc_name [20:20:48]save OK [20:20:48]Clear old archive folders... [20:20:48]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:20:48]tlvbuf is B6E783C0 [20:20:48]SAM_PROTO_ClearQueue [20:20:48]wFMCommunicate request_size=4 [20:20:48]MH_SAM_APDU [20:20:48]CAPDU: 80 09 00 00 [20:20:48]Write to MH i2c: E2 08 00 17 18 80 09 00 00 00 00 00 00 A1 [20:20:48]Write i2c OK [20:20:48]MH_I2C_Read... [20:20:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:20:48]Read from MH i2c: E2 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: E2 03 00 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: E2 03 00 17 18 00 90 00 A3 [20:20:48]RAPDU: 90 00 [20:20:48]wFMCommunicate OK [20:20:48]SAM_PROTO_ClearQueue done [20:20:48]KKMCreateOFDPacket [20:20:48]OFDProtocolAddRootSTLVToBuf [20:20:48]FM_MakeSignedData [20:20:48]FM_MakeSignedData [20:20:48]SAM_PROTO_SignData [20:20:48]wFMCommunicate request_size=4 [20:20:48]MH_SAM_APDU [20:20:48]CAPDU: 80 0D 01 02 [20:20:48]Write to MH i2c: E2 08 00 18 18 80 0D 01 02 00 00 00 00 A9 [20:20:48]Write i2c OK [20:20:48]MH_I2C_Read... [20:20:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:20:48]Read from MH i2c: E2 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: E2 03 00 [20:20:48]MH_I2C_Read... [20:20:48]Read from MH i2c: E2 03 00 18 18 00 90 00 A4 [20:20:48]RAPDU: 90 00 [20:20:48]wFMCommunicate OK [20:20:48]wFMCommunicate request_size=255 [20:20:48]MH_SAM_APDU [20:20:48]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 21 09 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E0 02 00 35 04 06 00 1A B8 D1 CA [20:20:48]Write to MH i2c: E2 02 01 19 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 21 09 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E0 02 00 35 04 06 00 1A B8 D1 CA 00 00 2F [20:20:48]Write i2c OK [20:20:48]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 19 18 00 90 00 A5 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]wFMCommunicate request_size=7 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 02 02 02 2C 83 [20:20:49]Write to MH i2c: E2 0A 00 1A 18 80 0D 02 02 02 00 2C 83 00 00 5F [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:20:49]OFD Sender: No OFD packet to send [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 03 00 1A 18 00 90 00 A6 [20:20:49]RAPDU: 90 00 [20:20:49]wFMCommunicate OK [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 0D 03 02 [20:20:49]Write to MH i2c: E2 08 00 1B 18 80 0D 03 02 00 00 00 00 AE [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 0B 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 0B 00 1B 18 00 8F 39 DE 1C 6B 8E C8 FA 90 00 2C [20:20:49]RAPDU: 8F 39 DE 1C 6B 8E C8 FA 90 00 [20:20:49]wFMCommunicate OK [20:20:49]SAM_PROTO_SignData done [20:20:49]FM_MakeSignedData done [20:20:49]CreateOFDProtocolMessage [20:20:49]wFMCommunicate request_size=4 [20:20:49]MH_SAM_APDU [20:20:49]CAPDU: 80 11 00 00 [20:20:49]Write to MH i2c: E2 08 00 1C 18 80 11 00 00 00 00 00 00 AE [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:49]Read from MH i2c: E2 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 17 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: E2 17 00 1C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FC [20:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:49]wFMCommunicate OK [20:20:49]CreateOFDProtocolMessage done [20:20:49]OFDSenderStorePacket 188482 [20:20:49]StoreOFDPacket docnum=188482 [20:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 57 63 04 01 DC 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 21 09 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E0 02 00 35 04 06 00 1A B8 D1 CA 2C 83 8F 39 DE 1C 6B 8E C8 FA [20:20:49]CheckFolder [20:20:49]dirname=/storage/ofd_packets [20:20:49]CheckFolder done [20:20:49]ProducePacketName [20:20:49]name=ofd_packets/00188482 [20:20:49]NVStorageSaveData ofd_packets/00188482 [20:20:49]File name is /storage/ofd_packets/00188482 [20:20:49]Write 298 bytes [20:20:49]NVStorageSaveData done [20:20:49]OFDSenderStorePacket done [20:20:49]KKMCreateOFDPacket done [20:20:49]NVStorageSaveData kkm_last_timestamp [20:20:49]File name is /storage/kkm_last_timestamp [20:20:49]Write 4 bytes [20:20:49]NVStorageSaveData done [20:20:49]ExternCall_PrintAddStr [20:20:49]wPrintStart [20:20:49]Write to MH i2c: 01 00 00 1D 18 35 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 1D 18 00 00 00 00 00 FF 0F 4A [20:20:49]RasterBufferAndPrint [20:20:49]line Счет N : (1)210542 [20:20:49]line ИНН: 02508201610067 [20:20:49]line Контрольно-Кассовый Чек [20:20:49]line ПРОДАЖА [20:20:49]line ТРК (МРК, ГНК) : 51 [20:20:49]line Товар: 2710194210 [20:20:49]line ДТ-К-5 [20:20:49]line 65.620 * 76.20 [20:20:49]line = 5000.24 [20:20:49]line НДС 12% НСП 1% [20:20:49]line > о реализуемом товаре [20:20:49]line ОКРУГЛЕНИЕ: -0.24 [20:20:49]line ИТОГО: 5000.00 [20:20:49]line Внесено: 5000.00 [20:20:49]line СДАЧА: 0.00 [20:20:49]line НСП 1% : 44.25 [20:20:49]line НДС 12% : 531.00 [20:20:49]line Наличными: 5000.00 [20:20:49]line Безнал.: 0.00 [20:20:49]line Место: АЗС № 86 "Партнер Нефть" [20:20:49]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:20:49]line СНО: Общий режим [20:20:49]line Чек 511 22.10.2024 20:20 [20:20:49]line Смена: 461 ФФД: 1.0 [20:20:49]line ЗНМ: 0300000155 [20:20:49]line РНМ: 0000000000100030 [20:20:49]line Версия ККМ: 001 [20:20:49]line ФМ: 0000000000965340 [20:20:49]line ФД: 188482 [20:20:49]line ФПД: 29381095992451 [20:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202049&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188482&fm=29381095992451&tin=02508201610067®Number=0000000000100030&sum=500000 [20:20:49]written 0, free lines is 4095 [20:20:49]OFD Sender: Processing packet 188482 [packets to send 1062, broken 1061] [20:20:49]ProducePacketName [20:20:49]name=ofd_packets/00188482 [20:20:49]OFD Sender: To server: pG, [20:20:49]CommunicateWithHost lk.salyk.kg:30040 [20:20:49]ConnectInit lk.salyk.kg [20:20:49]Connected sock=10 [20:20:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 57 63 04 01 DC 64 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 00 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 FF 01 00 00 F4 03 04 00 21 09 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E0 02 00 35 04 06 00 1A B8 D1 CA 2C 83 8F 39 DE 1C 6B 8E C8 FA [20:20:49]Write to MH i2c: 01 00 00 48 18 60 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: 01 07 00 48 18 00 00 00 00 00 68 0C DB [20:20:49]RasterBufferAndPrint [20:20:49]line [20:20:49]line [20:20:49]line [20:20:49]line [20:20:49]line [20:20:49]written 0, free lines is 3179 [20:20:49]MH_Cut [20:20:49]Write to MH i2c: D1 01 00 4F 18 01 39 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: D1 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: D1 01 00 [20:20:49]MH_I2C_Read... [20:20:49]Read from MH i2c: D1 01 00 4F 18 00 38 [20:20:49]Write to MH i2c: 01 00 00 50 18 68 [20:20:49]Write i2c OK [20:20:49]MH_I2C_Read... [20:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 F6 47 00 04 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 42 E0 02 00 F4 03 04 00 0D B3 17 67 B6 04 01 00 00 8B 5F A9 69 F1 A2 DA 08 [20:20:49]CommunicateWithHost err = 0 [20:20:49]CheckOFDResponse [20:20:49]1017 (14) - 77093643461234 [20:20:49]1041 (16) - 0000000000965340 [20:20:49]1040 (4) - 188482 [20:20:49]1012 (4) - 22.10.2024 14:13 [20:20:49]1206 (1) - 0 [20:20:49]OFD Sender: Remove packet 188482 [20:20:49]ProducePacketName [20:20:49]name=ofd_packets/00188482 [20:20:49]NVStorageDeleteData [20:20:50]OFD Sender: No OFD packet to send [20:20:50]*** Cut start [20:20:50]*** Partial cut [20:20:50]*** CUTSNS_PIN = 1 [20:20:50]*** CUTSNS_PIN = 0 [20:20:51]*** Brake cut motor [20:20:51]Read from MH i2c: 01 [20:20:51]MH_I2C_Read... [20:20:51]*** Stop cut motor [20:20:51]*** Cut end [20:20:51]Read from MH i2c: 01 07 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: 01 07 00 50 18 00 00 00 00 00 FF 0F 7D [20:20:51]process_action close_receipt done [20:20:51]requested_data is exist [20:20:51]produce_requested_data [20:20:51]requested_item fm.sn is exist - process it [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 11 00 00 [20:20:51]Write to MH i2c: E2 08 00 51 18 80 11 00 00 00 00 00 00 E3 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 17 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 17 00 51 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 31 [20:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:20:51]wFMCommunicate OK [20:20:51]requested_item fd.num is exist - process it [20:20:51]SAM_PROTO_GetFieldsCounters [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 13 00 00 [20:20:51]Write to MH i2c: E2 08 00 52 18 80 13 00 00 00 00 00 00 E6 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 62 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 62 00 52 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FF 01 00 00 5E 04 04 00 FF 01 00 00 57 04 04 00 00 02 00 00 19 04 04 00 00 00 00 00 90 00 E0 [20:20:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 42 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 FF 01 00 00 5E 04 04 00 FF 01 00 00 57 04 04 00 00 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:20:51]wFMCommunicate OK [20:20:51]SAM_PROTO_GetFieldsCounters done [20:20:51]requested_item shift.num is exist - process it [20:20:51]requested_item shift.opened is exist - process it [20:20:51]req_shift_opened [20:20:51]FM_GetShiftState [20:20:51]SAM_PROTO_GetShiftState [20:20:51]wFMCommunicate request_size=4 [20:20:51]MH_SAM_APDU [20:20:51]CAPDU: 80 13 01 00 [20:20:51]Write to MH i2c: E2 08 00 53 18 80 13 01 00 00 00 00 00 E8 [20:20:51]Write i2c OK [20:20:51]MH_I2C_Read... [20:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:20:51]Read from MH i2c: E2 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 0E 00 [20:20:51]MH_I2C_Read... [20:20:51]Read from MH i2c: E2 0E 00 53 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DD [20:20:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:20:51]wFMCommunicate OK [20:20:51]SAM_PROTO_GetShiftState done [20:20:51]FM_GetShiftState done [20:20:51]req_shift_opened done [20:20:51]requested_item shift.open_date is exist - process it [20:20:51]req_shift_open_date [20:20:51]req_shift_open_date done [20:20:51]produce_requested_data done [20:20:51]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188482,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:20:51]process_action_free close_receipt [20:20:51]json_value_free [20:20:51]json_value_free done [20:20:51]process_json_proto returns [20:20:51]Send response to host [20:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188482,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:20:51]free response buf [20:20:51]execute_script done [20:20:51]execute_script returns [20:20:51]free content buf [20:20:51]Sock 7.Close socket [20:20:51]Sock 7.Thread stoped [20:20:55]OFD Sender: No OFD packet to send [20:21:00]OFD Sender: No OFD packet to send [20:21:05]OFD Sender: No OFD packet to send [20:21:10]OFD Sender: No OFD packet to send [20:21:15]OFD Sender: No OFD packet to send [20:21:20]OFD Sender: No OFD packet to send [20:21:25]OFD Sender: No OFD packet to send [20:21:30]OFD Sender: No OFD packet to send [20:21:35]OFD Sender: No OFD packet to send [20:21:40]OFD Sender: No OFD packet to send [20:21:45]OFD Sender: No OFD packet to send [20:21:50]OFD Sender: No OFD packet to send [20:21:55]OFD Sender: No OFD packet to send [20:22:00]OFD Sender: No OFD packet to send [20:22:05]OFD Sender: No OFD packet to send [20:22:10]OFD Sender: No OFD packet to send [20:22:15]OFD Sender: No OFD packet to send [20:22:20]OFD Sender: No OFD packet to send [20:22:25]OFD Sender: No OFD packet to send [20:22:30]OFD Sender: No OFD packet to send [20:22:35]OFD Sender: No OFD packet to send [20:22:40]OFD Sender: No OFD packet to send [20:22:45]OFD Sender: No OFD packet to send [20:22:50]OFD Sender: No OFD packet to send [20:22:55]OFD Sender: No OFD packet to send [20:23:00]OFD Sender: No OFD packet to send [20:23:05]OFD Sender: No OFD packet to send [20:23:11]OFD Sender: No OFD packet to send [20:23:16]OFD Sender: No OFD packet to send [20:23:21]OFD Sender: No OFD packet to send [20:23:26]OFD Sender: No OFD packet to send [20:23:31]OFD Sender: No OFD packet to send [20:23:36]OFD Sender: No OFD packet to send [20:23:41]OFD Sender: No OFD packet to send [20:23:46]OFD Sender: No OFD packet to send [20:23:51]OFD Sender: No OFD packet to send [20:23:56]OFD Sender: No OFD packet to send [20:24:01]OFD Sender: No OFD packet to send [20:24:06]OFD Sender: No OFD packet to send [20:24:11]OFD Sender: No OFD packet to send [20:24:16]OFD Sender: No OFD packet to send [20:24:21]OFD Sender: No OFD packet to send [20:24:26]OFD Sender: No OFD packet to send [20:24:31]OFD Sender: No OFD packet to send [20:24:36]OFD Sender: No OFD packet to send [20:24:41]OFD Sender: No OFD packet to send [20:24:46]OFD Sender: No OFD packet to send [20:24:51]OFD Sender: No OFD packet to send [20:24:56]OFD Sender: No OFD packet to send [20:25:01]OFD Sender: No OFD packet to send [20:25:06]OFD Sender: No OFD packet to send [20:25:11]OFD Sender: No OFD packet to send [20:25:16]OFD Sender: No OFD packet to send [20:25:21]OFD Sender: No OFD packet to send [20:25:26]OFD Sender: No OFD packet to send [20:25:29]accept exits with 9 [20:25:29]New connection [20:25:29]New thread 3066613092 created [20:25:29]Thread 3066756452 joined [20:25:29]Waiting for new connection... [20:25:29] Sock 9.Parse request [20:25:29]Sock 9.Check first char [20:25:29]Sock 9.First char is OK [20:25:29]request: POST /json_proto HTTP/1.0 [20:25:29]Method: POST [20:25:29]URL: /json_proto [20:25:29]Method is POST - this is cgi request [20:25:29]url: /json_proto [20:25:29]query_string will be loaded in cgi processing [20:25:29]execute_cgi json_proto POST (null) [20:25:29]execute_cgi path=json_proto method=POST [20:25:29]POST find Content-Length [20:25:29]Host: 172.17.42.131:8080 [20:25:29]Content-Length: 682 [20:25:29]Content-Type: application/json [20:25:29] [20:25:29]POST finish read [20:25:29]Found Content-Length = 682 [20:25:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:29]execute_script... [20:25: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)210543", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 26.910, "sum" : 1800.28, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1800.00, "total" : 1800.00, "payments": [ { "type": 0, "sum" : 1800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:25:29]POST & json_proto [20:25:29]process_json_proto [20:25:29]json parsed OK: [20:25:29]protocol is kg_v1.0 [20:25:29]action value=close_receipt [20:25:29]process_action close_receipt [20:25:29]cmd_close_receipt [20:25:29]MH_GetDate [20:25:29]Write to MH i2c: F0 00 00 54 18 5B [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: F0 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: F0 09 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: F0 09 00 54 18 00 3A 0A 18 67 A0 18 CA 66 0F [20:25:29]GetLastDocTimeStamp 1729628449 [20:25:29]current date 1729628730 [20:25:29]FM_GetShiftState [20:25:29]SAM_PROTO_GetShiftState [20:25:29]wFMCommunicate request_size=4 [20:25:29]MH_SAM_APDU [20:25:29]CAPDU: 80 13 01 00 [20:25:29]Write to MH i2c: E2 08 00 55 18 80 13 01 00 00 00 00 00 EA [20:25:29]Write i2c OK [20:25:29]MH_I2C_Read... [20:25:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:29]Read from MH i2c: E2 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 0E 00 [20:25:29]MH_I2C_Read... [20:25:29]Read from MH i2c: E2 0E 00 55 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DF [20:25:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:25:29]wFMCommunicate OK [20:25:29]SAM_PROTO_GetShiftState done [20:25:29]FM_GetShiftState done [20:25:29]opened in 1729556094 [20:25:29]opened+sec_in_day 1729642494 [20:25:29]quantity*price = 180027 [20:25:29]sum+1 = 180029 [20:25:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.28 ИТОГО: 1800.00 Внесено: 1800.00 СДАЧА: 0.00 НСП 1% : 15.93 НДС 12% : 191.18 Наличными: 1800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 512 22.10.2024 20:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188483 ФПД: 102284828461291 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188483&fm=102284828461291&tin=02508201610067®Number=0000000000100030&sum=180000 [20:25:30]StoreToDocumentArchive [20:25:30]shift 461 fd 188483 [20:25:30]save to /storage/0461/doc_00188483 [20:25:30]save last doc name /storage/0461/doc_00188483 to /storage/kkm_last_doc_name [20:25:30]save OK [20:25:30]Clear old archive folders... [20:25:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:25:30]tlvbuf is 00953B90 [20:25:30]SAM_PROTO_ClearQueue [20:25:30]wFMCommunicate request_size=4 [20:25:30]MH_SAM_APDU [20:25:30]CAPDU: 80 09 00 00 [20:25:30]Write to MH i2c: E2 08 00 62 18 80 09 00 00 00 00 00 00 EC [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:25:30]Read from MH i2c: E2 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 62 18 00 90 00 EE [20:25:30]RAPDU: 90 00 [20:25:30]wFMCommunicate OK [20:25:30]SAM_PROTO_ClearQueue done [20:25:30]KKMCreateOFDPacket [20:25:30]OFDProtocolAddRootSTLVToBuf [20:25:30]FM_MakeSignedData [20:25:30]FM_MakeSignedData [20:25:30]SAM_PROTO_SignData [20:25:30]wFMCommunicate request_size=4 [20:25:30]MH_SAM_APDU [20:25:30]CAPDU: 80 0D 01 02 [20:25:30]Write to MH i2c: E2 08 00 63 18 80 0D 01 02 00 00 00 00 F4 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:25:30]Read from MH i2c: E2 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 63 18 00 90 00 EF [20:25:30]RAPDU: 90 00 [20:25:30]wFMCommunicate OK [20:25:30]wFMCommunicate request_size=255 [20:25:30]MH_SAM_APDU [20:25:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 3A 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E0 02 00 35 04 06 00 5D [20:25:30]Write to MH i2c: E2 02 01 64 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 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 3A 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E0 02 00 35 04 06 00 5D 00 00 B0 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:30]Read from MH i2c: E2 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 64 18 00 90 00 F0 [20:25:30]RAPDU: 90 00 [20:25:30]wFMCommunicate OK [20:25:30]wFMCommunicate request_size=10 [20:25:30]MH_SAM_APDU [20:25:30]CAPDU: 80 0D 02 02 05 07 0A DD C8 EB [20:25:30]Write to MH i2c: E2 0D 00 65 18 80 0D 02 02 05 00 07 0A DD C8 EB 00 00 A2 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:25:30]Read from MH i2c: E2 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 03 00 65 18 00 90 00 F1 [20:25:30]RAPDU: 90 00 [20:25:30]wFMCommunicate OK [20:25:30]wFMCommunicate request_size=4 [20:25:30]MH_SAM_APDU [20:25:30]CAPDU: 80 0D 03 02 [20:25:30]Write to MH i2c: E2 08 00 66 18 80 0D 03 02 00 00 00 00 F9 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:25:30]Read from MH i2c: E2 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 0B 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 0B 00 66 18 00 B6 4C 90 D7 AE DB CB EE 90 00 A5 [20:25:30]RAPDU: B6 4C 90 D7 AE DB CB EE 90 00 [20:25:30]wFMCommunicate OK [20:25:30]SAM_PROTO_SignData done [20:25:30]FM_MakeSignedData done [20:25:30]CreateOFDProtocolMessage [20:25:30]wFMCommunicate request_size=4 [20:25:30]MH_SAM_APDU [20:25:30]CAPDU: 80 11 00 00 [20:25:30]Write to MH i2c: E2 08 00 67 18 80 11 00 00 00 00 00 00 F9 [20:25:30]Write i2c OK [20:25:30]MH_I2C_Read... [20:25:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:30]Read from MH i2c: E2 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 17 00 [20:25:30]MH_I2C_Read... [20:25:30]Read from MH i2c: E2 17 00 67 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 47 [20:25:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:25:30]wFMCommunicate OK [20:25:30]CreateOFDProtocolMessage done [20:25:30]OFDSenderStorePacket 188483 [20:25:30]StoreOFDPacket docnum=188483 [20:25:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 96 07 01 2B AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 3A 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E0 02 00 35 04 06 00 5D 07 0A DD C8 EB B6 4C 90 D7 AE DB CB EE [20:25:30]CheckFolder [20:25:30]dirname=/storage/ofd_packets [20:25:30]CheckFolder done [20:25:30]ProducePacketName [20:25:30]name=ofd_packets/00188483 [20:25:30]NVStorageSaveData ofd_packets/00188483 [20:25:30]File name is /storage/ofd_packets/00188483 [20:25:30]Write 301 bytes [20:25:30]NVStorageSaveData done [20:25:30]OFDSenderStorePacket done [20:25:30]KKMCreateOFDPacket done [20:25:30]NVStorageSaveData kkm_last_timestamp [20:25:30]File name is /storage/kkm_last_timestamp [20:25:30]Write 4 bytes [20:25:30]NVStorageSaveData done [20:25:31]ExternCall_PrintAddStr [20:25:31]wPrintStart [20:25:31]Write to MH i2c: 01 00 00 68 18 80 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 68 18 00 00 00 00 00 FF 0F 95 [20:25:31]RasterBufferAndPrint [20:25:31]line Счет N : (1)210543 [20:25:31]line ИНН: 02508201610067 [20:25:31]line Контрольно-Кассовый Чек [20:25:31]line ПРОДАЖА [20:25:31]line ТРК (МРК, ГНК) : 12 [20:25:31]line Товар: 2710124130 [20:25:31]line Аи-92-К-3 [20:25:31]line 26.910 * 66.90 [20:25:31]line = 1800.28 [20:25:31]line НДС 12% НСП 1% [20:25:31]line > о реализуемом товаре [20:25:31]line ОКРУГЛЕНИЕ: -0.28 [20:25:31]line ИТОГО: 1800.00 [20:25:31]line Внесено: 1800.00 [20:25:31]line СДАЧА: 0.00 [20:25:31]line НСП 1% : 15.93 [20:25:31]line НДС 12% : 191.18 [20:25:31]line Наличными: 1800.00 [20:25:31]line Безнал.: 0.00 [20:25:31]line Место: АЗС № 86 "Партнер Нефть" [20:25:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:25:31]line СНО: Общий режим [20:25:31]line Чек 512 22.10.2024 20:25 [20:25:31]line Смена: 461 ФФД: 1.0 [20:25:31]line ЗНМ: 0300000155 [20:25:31]line РНМ: 0000000000100030 [20:25:31]line Версия ККМ: 001 [20:25:31]line ФМ: 0000000000965340 [20:25:31]line ФД: 188483 [20:25:31]line ФПД: 102284828461291 [20:25:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202530&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188483&fm=102284828461291&tin=02508201610067®Number=0000000000100030&sum=180000 [20:25:31]OFD Sender: Processing packet 188483 [packets to send 1062, broken 1061] [20:25:31]ProducePacketName [20:25:31]name=ofd_packets/00188483 [20:25:31]OFD Sender: To server: pG, [20:25:31]CommunicateWithHost lk.salyk.kg:30040 [20:25:31]ConnectInit lk.salyk.kg [20:25:31]written 0, free lines is 4095 [20:25:31]Connected sock=10 [20:25:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 08 96 07 01 2B AE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 1E 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3C 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 AE 4A 00 00 00 00 07 04 06 00 20 BF 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 00 02 00 00 F4 03 04 00 3A 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E0 02 00 35 04 06 00 5D 07 0A DD C8 EB B6 4C 90 D7 AE DB CB EE [20:25:31]Write to MH i2c: 01 00 00 93 18 AB [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: 01 07 00 93 18 00 00 00 00 00 6A 0C 28 [20:25:31]RasterBufferAndPrint [20:25:31]line [20:25:31]line [20:25:31]line [20:25:31]line [20:25:31]line [20:25:31]written 0, free lines is 3181 [20:25:31]MH_Cut [20:25:31]Write to MH i2c: D1 01 00 9A 18 01 84 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: D1 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: D1 01 00 [20:25:31]MH_I2C_Read... [20:25:31]Read from MH i2c: D1 01 00 9A 18 00 83 [20:25:31]Write to MH i2c: 01 00 00 9B 18 B3 [20:25:31]Write i2c OK [20:25:31]MH_I2C_Read... [20:25:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1D AE 47 00 DF 76 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 43 E0 02 00 F4 03 04 00 27 B4 17 67 B6 04 01 00 00 79 6C CB A3 67 6E 30 0D [20:25:31]CommunicateWithHost err = 0 [20:25:31]CheckOFDResponse [20:25:31]1017 (14) - 77093643461234 [20:25:31]1041 (16) - 0000000000965340 [20:25:31]1040 (4) - 188483 [20:25:31]1012 (4) - 22.10.2024 14:18 [20:25:31]1206 (1) - 0 [20:25:31]OFD Sender: Remove packet 188483 [20:25:31]ProducePacketName [20:25:31]name=ofd_packets/00188483 [20:25:31]NVStorageDeleteData [20:25:32]OFD Sender: No OFD packet to send [20:25:32]*** Cut start [20:25:32]*** Partial cut [20:25:32]*** CUTSNS_PIN = 1 [20:25:32]*** CUTSNS_PIN = 0 [20:25:33]*** Brake cut motor [20:25:33]Read from MH i2c: 01 [20:25:33]MH_I2C_Read... [20:25:33]*** Stop cut motor [20:25:33]*** Cut end [20:25:33]Read from MH i2c: 01 07 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: 01 07 00 9B 18 00 00 00 00 00 FF 0F C8 [20:25:33]process_action close_receipt done [20:25:33]requested_data is exist [20:25:33]produce_requested_data [20:25:33]requested_item fm.sn is exist - process it [20:25:33]wFMCommunicate request_size=4 [20:25:33]MH_SAM_APDU [20:25:33]CAPDU: 80 11 00 00 [20:25:33]Write to MH i2c: E2 08 00 9C 18 80 11 00 00 00 00 00 00 2E [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:25:33]Read from MH i2c: E2 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 17 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 17 00 9C 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7C [20:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:25:33]wFMCommunicate OK [20:25:33]requested_item fd.num is exist - process it [20:25:33]SAM_PROTO_GetFieldsCounters [20:25:33]wFMCommunicate request_size=4 [20:25:33]MH_SAM_APDU [20:25:33]CAPDU: 80 13 00 00 [20:25:33]Write to MH i2c: E2 08 00 9D 18 80 13 00 00 00 00 00 00 31 [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:25:33]Read from MH i2c: E2 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 62 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 62 00 9D 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 00 02 00 00 5E 04 04 00 00 02 00 00 57 04 04 00 01 02 00 00 19 04 04 00 00 00 00 00 90 00 31 [20:25:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 43 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 00 02 00 00 5E 04 04 00 00 02 00 00 57 04 04 00 01 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:25:33]wFMCommunicate OK [20:25:33]SAM_PROTO_GetFieldsCounters done [20:25:33]requested_item shift.num is exist - process it [20:25:33]requested_item shift.opened is exist - process it [20:25:33]req_shift_opened [20:25:33]FM_GetShiftState [20:25:33]SAM_PROTO_GetShiftState [20:25:33]wFMCommunicate request_size=4 [20:25:33]MH_SAM_APDU [20:25:33]CAPDU: 80 13 01 00 [20:25:33]Write to MH i2c: E2 08 00 9E 18 80 13 01 00 00 00 00 00 33 [20:25:33]Write i2c OK [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 [20:25:33]MH_I2C_Read... [20:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:25:33]Read from MH i2c: E2 0E 00 [20:25:33]MH_I2C_Read... [20:25:33]Read from MH i2c: E2 0E 00 9E 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 28 [20:25:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:25:33]wFMCommunicate OK [20:25:33]SAM_PROTO_GetShiftState done [20:25:33]FM_GetShiftState done [20:25:33]req_shift_opened done [20:25:33]requested_item shift.open_date is exist - process it [20:25:33]req_shift_open_date [20:25:33]req_shift_open_date done [20:25:33]produce_requested_data done [20:25:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188483,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:25:33]process_action_free close_receipt [20:25:33]json_value_free [20:25:33]json_value_free done [20:25:33]process_json_proto returns [20:25:33]Send response to host [20:25:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188483,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:25:33]free response buf [20:25:33]execute_script done [20:25:33]execute_script returns [20:25:33]free content buf [20:25:33]Sock 9.Close socket [20:25:33]Sock 9.Thread stoped [20:25:37]OFD Sender: No OFD packet to send [20:25:42]OFD Sender: No OFD packet to send [20:25:47]OFD Sender: No OFD packet to send [20:25:52]OFD Sender: No OFD packet to send [20:25:57]OFD Sender: No OFD packet to send [20:26:02]OFD Sender: No OFD packet to send [20:26:07]OFD Sender: No OFD packet to send [20:26:12]OFD Sender: No OFD packet to send [20:26:17]OFD Sender: No OFD packet to send [20:26:22]OFD Sender: No OFD packet to send [20:26:27]OFD Sender: No OFD packet to send [20:26:32]OFD Sender: No OFD packet to send [20:26:37]OFD Sender: No OFD packet to send [20:26:42]OFD Sender: No OFD packet to send [20:26:47]OFD Sender: No OFD packet to send [20:26:52]OFD Sender: No OFD packet to send [20:26:55]accept exits with 7 [20:26:55]New connection [20:26:55]New thread 3066756452 created [20:26:55]Thread 3066613092 joined [20:26:55]Waiting for new connection... [20:26:55] Sock 7.Parse request [20:26:55]Sock 7.Check first char [20:26:55]Sock 7.First char is OK [20:26:55]request: POST /json_proto HTTP/1.0 [20:26:55]Method: POST [20:26:55]URL: /json_proto [20:26:55]Method is POST - this is cgi request [20:26:55]url: /json_proto [20:26:55]query_string will be loaded in cgi processing [20:26:55]execute_cgi json_proto POST (null) [20:26:55]execute_cgi path=json_proto method=POST [20:26:55]POST find Content-Length [20:26:55]Host: 172.17.42.131:8080 [20:26:55]Content-Length: 678 [20:26:55]Content-Type: application/json [20:26:55] [20:26:55]POST finish read [20:26:55]Found Content-Length = 678 [20:26:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:55]execute_script... [20:26: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)210544", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:26:55]POST & json_proto [20:26:55]process_json_proto [20:26:55]json parsed OK: [20:26:55]protocol is kg_v1.0 [20:26:55]action value=close_receipt [20:26:55]process_action close_receipt [20:26:55]cmd_close_receipt [20:26:55]MH_GetDate [20:26:55]Write to MH i2c: F0 00 00 9F 18 A6 [20:26:55]Write i2c OK [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: F0 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: F0 09 00 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: F0 09 00 9F 18 00 90 0A 18 67 A0 18 CA 66 B0 [20:26:55]GetLastDocTimeStamp 1729628730 [20:26:55]current date 1729628816 [20:26:55]FM_GetShiftState [20:26:55]SAM_PROTO_GetShiftState [20:26:55]wFMCommunicate request_size=4 [20:26:55]MH_SAM_APDU [20:26:55]CAPDU: 80 13 01 00 [20:26:55]Write to MH i2c: E2 08 00 A0 18 80 13 01 00 00 00 00 00 35 [20:26:55]Write i2c OK [20:26:55]MH_I2C_Read... [20:26:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:55]Read from MH i2c: E2 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: E2 0E 00 [20:26:55]MH_I2C_Read... [20:26:55]Read from MH i2c: E2 0E 00 A0 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2A [20:26:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:26:55]wFMCommunicate OK [20:26:55]SAM_PROTO_GetShiftState done [20:26:55]FM_GetShiftState done [20:26:55]opened in 1729556094 [20:26:55]opened+sec_in_day 1729642494 [20:26:55]quantity*price = 70044 [20:26:55]sum+1 = 70045 [20:26:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 513 22.10.2024 20:26 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188484 ФПД: 163165043143312 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188484&fm=163165043143312&tin=02508201610067®Number=0000000000100030&sum=70000 [20:26:56]StoreToDocumentArchive [20:26:56]shift 461 fd 188484 [20:26:56]save to /storage/0461/doc_00188484 [20:26:56]save last doc name /storage/0461/doc_00188484 to /storage/kkm_last_doc_name [20:26:56]save OK [20:26:56]Clear old archive folders... [20:26:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:26:56]tlvbuf is 0098D6D0 [20:26:56]SAM_PROTO_ClearQueue [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 09 00 00 [20:26:56]Write to MH i2c: E2 08 00 AD 18 80 09 00 00 00 00 00 00 37 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 AD 18 00 90 00 39 [20:26:56]RAPDU: 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_ClearQueue done [20:26:56]KKMCreateOFDPacket [20:26:56]OFDProtocolAddRootSTLVToBuf [20:26:56]FM_MakeSignedData [20:26:56]FM_MakeSignedData [20:26:56]SAM_PROTO_SignData [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 0D 01 02 [20:26:56]Write to MH i2c: E2 08 00 AE 18 80 0D 01 02 00 00 00 00 3F [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 AE 18 00 90 00 3A [20:26:56]RAPDU: 90 00 [20:26:56]wFMCommunicate OK [20:26:56]wFMCommunicate request_size=255 [20:26:56]MH_SAM_APDU [20:26: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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 90 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E0 02 00 35 04 06 00 94 [20:26:56]Write to MH i2c: E2 02 01 AF 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 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 90 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E0 02 00 35 04 06 00 94 00 00 66 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 AF 18 00 90 00 3B [20:26:56]RAPDU: 90 00 [20:26:56]wFMCommunicate OK [20:26:56]wFMCommunicate request_size=10 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 0D 02 02 05 65 D2 6F B2 90 [20:26:56]Write to MH i2c: E2 0D 00 B0 18 80 0D 02 02 05 00 65 D2 6F B2 90 00 00 34 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 03 00 B0 18 00 90 00 3C [20:26:56]RAPDU: 90 00 [20:26:56]wFMCommunicate OK [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 0D 03 02 [20:26:56]Write to MH i2c: E2 08 00 B1 18 80 0D 03 02 00 00 00 00 44 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0B 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 0B 00 B1 18 00 89 B6 01 8E 0A A7 27 E0 90 00 CB [20:26:56]RAPDU: 89 B6 01 8E 0A A7 27 E0 90 00 [20:26:56]wFMCommunicate OK [20:26:56]SAM_PROTO_SignData done [20:26:56]FM_MakeSignedData done [20:26:56]CreateOFDProtocolMessage [20:26:56]wFMCommunicate request_size=4 [20:26:56]MH_SAM_APDU [20:26:56]CAPDU: 80 11 00 00 [20:26:56]Write to MH i2c: E2 08 00 B2 18 80 11 00 00 00 00 00 00 44 [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:56]Read from MH i2c: E2 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 17 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: E2 17 00 B2 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 92 [20:26:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:26:56]wFMCommunicate OK [20:26:56]CreateOFDProtocolMessage done [20:26:56]OFDSenderStorePacket 188484 [20:26:56]StoreOFDPacket docnum=188484 [20:26:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 11 07 01 53 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 90 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E0 02 00 35 04 06 00 94 65 D2 6F B2 90 89 B6 01 8E 0A A7 27 E0 [20:26:56]CheckFolder [20:26:56]dirname=/storage/ofd_packets [20:26:56]CheckFolder done [20:26:56]ProducePacketName [20:26:56]name=ofd_packets/00188484 [20:26:56]NVStorageSaveData ofd_packets/00188484 [20:26:56]File name is /storage/ofd_packets/00188484 [20:26:56]Write 301 bytes [20:26:56]NVStorageSaveData done [20:26:56]OFDSenderStorePacket done [20:26:56]KKMCreateOFDPacket done [20:26:56]NVStorageSaveData kkm_last_timestamp [20:26:56]File name is /storage/kkm_last_timestamp [20:26:56]Write 4 bytes [20:26:56]NVStorageSaveData done [20:26:56]ExternCall_PrintAddStr [20:26:56]wPrintStart [20:26:56]Write to MH i2c: 01 00 00 B3 18 CB [20:26:56]Write i2c OK [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 [20:26:56]MH_I2C_Read... [20:26:56]Read from MH i2c: 01 07 00 B3 18 00 00 00 00 00 FF 0F E0 [20:26:56]RasterBufferAndPrint [20:26:56]line Счет N : (1)210544 [20:26:56]line ИНН: 02508201610067 [20:26:56]line Контрольно-Кассовый Чек [20:26:56]line ПРОДАЖА [20:26:56]line ТРК (МРК, ГНК) : 42 [20:26:56]line Товар: 2710124130 [20:26:56]line Аи-92-К-3 [20:26:56]line 10.470 * 66.90 [20:26:56]line = 700.44 [20:26:56]line НДС 12% НСП 1% [20:26:56]line > о реализуемом товаре [20:26:56]line ОКРУГЛЕНИЕ: -0.44 [20:26:56]line ИТОГО: 700.00 [20:26:56]line Внесено: 700.00 [20:26:56]line СДАЧА: 0.00 [20:26:56]line НСП 1% : 6.20 [20:26:56]line НДС 12% : 74.38 [20:26:56]line Наличными: 700.00 [20:26:56]line Безнал.: 0.00 [20:26:56]line Место: АЗС № 86 "Партнер Нефть" [20:26:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:26:56]line СНО: Общий режим [20:26:56]line Чек 513 22.10.2024 20:26 [20:26:56]line Смена: 461 ФФД: 1.0 [20:26:56]line ЗНМ: 0300000155 [20:26:56]line РНМ: 0000000000100030 [20:26:56]line Версия ККМ: 001 [20:26:56]line ФМ: 0000000000965340 [20:26:56]line ФД: 188484 [20:26:56]line ФПД: 163165043143312 [20:26:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T202656&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188484&fm=163165043143312&tin=02508201610067®Number=0000000000100030&sum=70000 [20:26:56]written 0, free lines is 4095 [20:26:56]OFD Sender: Processing packet 188484 [packets to send 1062, broken 1061] [20:26:56]ProducePacketName [20:26:56]name=ofd_packets/00188484 [20:26:56]OFD Sender: To server: pG, [20:26:56]CommunicateWithHost lk.salyk.kg:30040 [20:26:56]ConnectInit lk.salyk.kg [20:26:57]Connected sock=10 [20:26:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 11 07 01 53 FF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 02 00 00 F4 03 04 00 90 0A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 44 E0 02 00 35 04 06 00 94 65 D2 6F B2 90 89 B6 01 8E 0A A7 27 E0 [20:26:57]Write to MH i2c: 01 00 00 DE 18 F6 [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: 01 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: 01 07 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: 01 07 00 DE 18 00 00 00 00 00 61 0C 6A [20:26:57]RasterBufferAndPrint [20:26:57]line [20:26:57]line [20:26:57]line [20:26:57]line [20:26:57]line [20:26:57]written 0, free lines is 3172 [20:26:57]MH_Cut [20:26:57]Write to MH i2c: D1 01 00 E5 18 01 CF [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: D1 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: D1 01 00 [20:26:57]MH_I2C_Read... [20:26:57]Read from MH i2c: D1 01 00 E5 18 00 CE [20:26:57]Write to MH i2c: 01 00 00 E6 18 FE [20:26:57]Write i2c OK [20:26:57]MH_I2C_Read... [20:26:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B5 4B 47 00 C0 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 39 36 35 33 34 30 10 04 04 00 44 E0 02 00 F4 03 04 00 7D B4 17 67 B6 04 01 00 00 71 23 E6 B0 FB 3B BC BF [20:26:57]CommunicateWithHost err = 0 [20:26:57]CheckOFDResponse [20:26:57]1017 (14) - 77093643461234 [20:26:57]1041 (16) - 0000000000965340 [20:26:57]1040 (4) - 188484 [20:26:57]1012 (4) - 22.10.2024 14:19 [20:26:57]1206 (1) - 0 [20:26:57]OFD Sender: Remove packet 188484 [20:26:57]ProducePacketName [20:26:57]name=ofd_packets/00188484 [20:26:57]NVStorageDeleteData [20:26:58]OFD Sender: No OFD packet to send [20:26:58]*** Cut start [20:26:58]*** Partial cut [20:26:58]*** CUTSNS_PIN = 1 [20:26:58]*** CUTSNS_PIN = 0 [20:26:58]*** Brake cut motor [20:26:59]Read from MH i2c: 01 [20:26:59]MH_I2C_Read... [20:26:59]*** Stop cut motor [20:26:59]*** Cut end [20:26:59]Read from MH i2c: 01 07 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: 01 07 00 E6 18 00 00 00 00 00 FF 0F 13 [20:26:59]process_action close_receipt done [20:26:59]requested_data is exist [20:26:59]produce_requested_data [20:26:59]requested_item fm.sn is exist - process it [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 11 00 00 [20:26:59]Write to MH i2c: E2 08 00 E7 18 80 11 00 00 00 00 00 00 79 [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 17 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 17 00 E7 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C7 [20:26:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:26:59]wFMCommunicate OK [20:26:59]requested_item fd.num is exist - process it [20:26:59]SAM_PROTO_GetFieldsCounters [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 13 00 00 [20:26:59]Write to MH i2c: E2 08 00 E8 18 80 13 00 00 00 00 00 00 7C [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 62 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 62 00 E8 18 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 01 02 00 00 5E 04 04 00 01 02 00 00 57 04 04 00 02 02 00 00 19 04 04 00 00 00 00 00 90 00 80 [20:26:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 44 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 01 02 00 00 5E 04 04 00 01 02 00 00 57 04 04 00 02 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:26:59]wFMCommunicate OK [20:26:59]SAM_PROTO_GetFieldsCounters done [20:26:59]requested_item shift.num is exist - process it [20:26:59]requested_item shift.opened is exist - process it [20:26:59]req_shift_opened [20:26:59]FM_GetShiftState [20:26:59]SAM_PROTO_GetShiftState [20:26:59]wFMCommunicate request_size=4 [20:26:59]MH_SAM_APDU [20:26:59]CAPDU: 80 13 01 00 [20:26:59]Write to MH i2c: E2 08 00 E9 18 80 13 01 00 00 00 00 00 7E [20:26:59]Write i2c OK [20:26:59]MH_I2C_Read... [20:26:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:26:59]Read from MH i2c: E2 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 0E 00 [20:26:59]MH_I2C_Read... [20:26:59]Read from MH i2c: E2 0E 00 E9 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 73 [20:26:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:26:59]wFMCommunicate OK [20:26:59]SAM_PROTO_GetShiftState done [20:26:59]FM_GetShiftState done [20:26:59]req_shift_opened done [20:26:59]requested_item shift.open_date is exist - process it [20:26:59]req_shift_open_date [20:26:59]req_shift_open_date done [20:26:59]produce_requested_data done [20:26:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188484,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:26:59]process_action_free close_receipt [20:26:59]json_value_free [20:26:59]json_value_free done [20:26:59]process_json_proto returns [20:26:59]Send response to host [20:26:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188484,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:26:59]free response buf [20:26:59]execute_script done [20:26:59]execute_script returns [20:26:59]free content buf [20:26:59]Sock 7.Close socket [20:26:59]Sock 7.Thread stoped [20:27:03]OFD Sender: No OFD packet to send [20:27:08]OFD Sender: No OFD packet to send [20:27:13]OFD Sender: No OFD packet to send [20:27:18]OFD Sender: No OFD packet to send [20:27:23]OFD Sender: No OFD packet to send [20:27:28]OFD Sender: No OFD packet to send [20:27:33]OFD Sender: No OFD packet to send [20:27:38]OFD Sender: No OFD packet to send [20:27:43]OFD Sender: No OFD packet to send [20:27:48]OFD Sender: No OFD packet to send [20:27:53]OFD Sender: No OFD packet to send [20:27:58]OFD Sender: No OFD packet to send [20:28:03]OFD Sender: No OFD packet to send [20:28:08]OFD Sender: No OFD packet to send [20:28:13]OFD Sender: No OFD packet to send [20:28:18]OFD Sender: No OFD packet to send [20:28:23]OFD Sender: No OFD packet to send [20:28:28]OFD Sender: No OFD packet to send [20:28:33]OFD Sender: No OFD packet to send [20:28:38]OFD Sender: No OFD packet to send [20:28:43]OFD Sender: No OFD packet to send [20:28:48]OFD Sender: No OFD packet to send [20:28:53]OFD Sender: No OFD packet to send [20:28:58]OFD Sender: No OFD packet to send [20:29:03]OFD Sender: No OFD packet to send [20:29:08]OFD Sender: No OFD packet to send [20:29:13]OFD Sender: No OFD packet to send [20:29:18]OFD Sender: No OFD packet to send [20:29:23]OFD Sender: No OFD packet to send [20:29:28]OFD Sender: No OFD packet to send [20:29:33]OFD Sender: No OFD packet to send [20:29:38]OFD Sender: No OFD packet to send [20:29:43]OFD Sender: No OFD packet to send [20:29:48]OFD Sender: No OFD packet to send [20:29:53]OFD Sender: No OFD packet to send [20:29:58]OFD Sender: No OFD packet to send [20:30:03]OFD Sender: No OFD packet to send [20:30:08]OFD Sender: No OFD packet to send [20:30:14]OFD Sender: No OFD packet to send [20:30:19]OFD Sender: No OFD packet to send [20:30:24]OFD Sender: No OFD packet to send [20:30:29]OFD Sender: No OFD packet to send [20:30:34]OFD Sender: No OFD packet to send [20:30:39]OFD Sender: No OFD packet to send [20:30:44]OFD Sender: No OFD packet to send [20:30:49]OFD Sender: No OFD packet to send [20:30:54]OFD Sender: No OFD packet to send [20:30:59]OFD Sender: No OFD packet to send [20:31:04]OFD Sender: No OFD packet to send [20:31:09]OFD Sender: No OFD packet to send [20:31:14]OFD Sender: No OFD packet to send [20:31:19]OFD Sender: No OFD packet to send [20:31:24]OFD Sender: No OFD packet to send [20:31:29]OFD Sender: No OFD packet to send [20:31:34]OFD Sender: No OFD packet to send [20:31:39]OFD Sender: No OFD packet to send [20:31:44]OFD Sender: No OFD packet to send [20:31:49]OFD Sender: No OFD packet to send [20:31:54]OFD Sender: No OFD packet to send [20:31:54]accept exits with 9 [20:31:54]New connection [20:31:54]New thread 3066613092 created [20:31:54]Thread 3066756452 joined [20:31:54]Waiting for new connection... [20:31:54] Sock 9.Parse request [20:31:54]Sock 9.Check first char [20:31:54]Sock 9.First char is OK [20:31:54]request: POST /json_proto HTTP/1.0 [20:31:54]Method: POST [20:31:54]URL: /json_proto [20:31:54]Method is POST - this is cgi request [20:31:54]url: /json_proto [20:31:54]query_string will be loaded in cgi processing [20:31:54]execute_cgi json_proto POST (null) [20:31:54]execute_cgi path=json_proto method=POST [20:31:54]POST find Content-Length [20:31:54]Host: 172.17.42.131:8080 [20:31:54]Content-Length: 682 [20:31:54]Content-Type: application/json [20:31:54] [20:31:54]POST finish read [20:31:54]Found Content-Length = 682 [20:31:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 35.880, "sum" : 2400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:54]execute_script... [20:31:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 35.880, "sum" : 2400.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2400.00, "total" : 2400.00, "payments": [ { "type": 0, "sum" : 2400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:31:54]POST & json_proto [20:31:54]process_json_proto [20:31:54]json parsed OK: [20:31:54]protocol is kg_v1.0 [20:31:54]action value=close_receipt [20:31:54]process_action close_receipt [20:31:54]cmd_close_receipt [20:31:54]MH_GetDate [20:31:54]Write to MH i2c: F0 00 00 EA 18 F1 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: F0 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: F0 09 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: F0 09 00 EA 18 00 BC 0B 18 67 A0 18 CA 66 28 [20:31:54]GetLastDocTimeStamp 1729628816 [20:31:54]current date 1729629116 [20:31:54]FM_GetShiftState [20:31:54]SAM_PROTO_GetShiftState [20:31:54]wFMCommunicate request_size=4 [20:31:54]MH_SAM_APDU [20:31:54]CAPDU: 80 13 01 00 [20:31:54]Write to MH i2c: E2 08 00 EB 18 80 13 01 00 00 00 00 00 80 [20:31:54]Write i2c OK [20:31:54]MH_I2C_Read... [20:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:54]Read from MH i2c: E2 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: E2 0E 00 [20:31:54]MH_I2C_Read... [20:31:54]Read from MH i2c: E2 0E 00 EB 18 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 75 [20:31:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:31:54]wFMCommunicate OK [20:31:54]SAM_PROTO_GetShiftState done [20:31:54]FM_GetShiftState done [20:31:54]opened in 1729556094 [20:31:54]opened+sec_in_day 1729642494 [20:31:54]quantity*price = 240037 [20:31:54]sum+1 = 240038 [20:31:54]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 2400.00 Внесено: 2400.00 СДАЧА: 0.00 НСП 1% : 21.24 НДС 12% : 254.91 Наличными: 2400.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 514 22.10.2024 20:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188485 ФПД: 228468065713171 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188485&fm=228468065713171&tin=02508201610067®Number=0000000000100030&sum=240000 [20:31:55]StoreToDocumentArchive [20:31:55]shift 461 fd 188485 [20:31:55]save to /storage/0461/doc_00188485 [20:31:55]save last doc name /storage/0461/doc_00188485 to /storage/kkm_last_doc_name [20:31:55]save OK [20:31:55]Clear old archive folders... [20:31:55]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:31:55]tlvbuf is 0098D710 [20:31:55]SAM_PROTO_ClearQueue [20:31:55]wFMCommunicate request_size=4 [20:31:55]MH_SAM_APDU [20:31:55]CAPDU: 80 09 00 00 [20:31:55]Write to MH i2c: E2 08 00 F8 18 80 09 00 00 00 00 00 00 82 [20:31:55]Write i2c OK [20:31:55]MH_I2C_Read... [20:31:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:31:55]Read from MH i2c: E2 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: E2 03 00 [20:31:55]MH_I2C_Read... [20:31:55]Read from MH i2c: E2 03 00 F8 18 00 90 00 84 [20:31:55]RAPDU: 90 00 [20:31:55]wFMCommunicate OK [20:31:55]SAM_PROTO_ClearQueue done [20:31:55]KKMCreateOFDPacket [20:31:55]OFDProtocolAddRootSTLVToBuf [20:31:55]FM_MakeSignedData [20:31:55]FM_MakeSignedData [20:31:55]SAM_PROTO_SignData [20:31:55]wFMCommunicate request_size=4 [20:31:55]MH_SAM_APDU [20:31:55]CAPDU: 80 0D 01 02 [20:31:55]Write to MH i2c: E2 08 00 F9 18 80 0D 01 02 00 00 00 00 8A [20:31:55]Write i2c OK [20:31:55]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 F9 18 00 90 00 85 [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]wFMCommunicate request_size=255 [20:31:56]MH_SAM_APDU [20:31: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 33 FF 03 08 00 03 28 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A5 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 93 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 BC 0B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E0 02 00 35 04 06 00 CF [20:31:56]Write to MH i2c: E2 02 01 FA 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 33 FF 03 08 00 03 28 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A5 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 93 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 BC 0B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E0 02 00 35 04 06 00 CF 00 00 69 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 FA 18 00 90 00 86 [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]wFMCommunicate request_size=10 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 0D 02 02 05 CA 5D E6 3C 13 [20:31:56]Write to MH i2c: E2 0D 00 FB 18 80 0D 02 02 05 00 CA 5D E6 3C 13 00 00 F3 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 03 00 FB 18 00 90 00 87 [20:31:56]RAPDU: 90 00 [20:31:56]wFMCommunicate OK [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 0D 03 02 [20:31:56]Write to MH i2c: E2 08 00 FC 18 80 0D 03 02 00 00 00 00 8F [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0B 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 0B 00 FC 18 00 7F 43 2F 63 3A 71 A1 91 90 00 C1 [20:31:56]RAPDU: 7F 43 2F 63 3A 71 A1 91 90 00 [20:31:56]wFMCommunicate OK [20:31:56]SAM_PROTO_SignData done [20:31:56]FM_MakeSignedData done [20:31:56]CreateOFDProtocolMessage [20:31:56]wFMCommunicate request_size=4 [20:31:56]MH_SAM_APDU [20:31:56]CAPDU: 80 11 00 00 [20:31:56]Write to MH i2c: E2 08 00 FD 18 80 11 00 00 00 00 00 00 8F [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:56]Read from MH i2c: E2 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 17 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: E2 17 00 FD 18 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DD [20:31:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:31:56]wFMCommunicate OK [20:31:56]CreateOFDProtocolMessage done [20:31:56]OFDSenderStorePacket 188485 [20:31:56]StoreOFDPacket docnum=188485 [20:31:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 7D 07 01 EB 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 28 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A5 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 93 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 BC 0B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E0 02 00 35 04 06 00 CF CA 5D E6 3C 13 7F 43 2F 63 3A 71 A1 91 [20:31:56]CheckFolder [20:31:56]dirname=/storage/ofd_packets [20:31:56]CheckFolder done [20:31:56]ProducePacketName [20:31:56]name=ofd_packets/00188485 [20:31:56]NVStorageSaveData ofd_packets/00188485 [20:31:56]File name is /storage/ofd_packets/00188485 [20:31:56]Write 301 bytes [20:31:56]NVStorageSaveData done [20:31:56]OFDSenderStorePacket done [20:31:56]KKMCreateOFDPacket done [20:31:56]NVStorageSaveData kkm_last_timestamp [20:31:56]File name is /storage/kkm_last_timestamp [20:31:56]Write 4 bytes [20:31:56]NVStorageSaveData done [20:31:56]ExternCall_PrintAddStr [20:31:56]wPrintStart [20:31:56]Write to MH i2c: 01 00 00 FE 18 16 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 FE 18 00 00 00 00 00 FF 0F 2B [20:31:56]RasterBufferAndPrint [20:31:56]line Счет N : (1)210545 [20:31:56]line ИНН: 02508201610067 [20:31:56]line Контрольно-Кассовый Чек [20:31:56]line ПРОДАЖА [20:31:56]line ТРК (МРК, ГНК) : 22 [20:31:56]line Товар: 2710124130 [20:31:56]line Аи-92-К-3 [20:31:56]line 35.880 * 66.90 [20:31:56]line = 2400.37 [20:31:56]line НДС 12% НСП 1% [20:31:56]line > о реализуемом товаре [20:31:56]line ОКРУГЛЕНИЕ: -0.37 [20:31:56]line ИТОГО: 2400.00 [20:31:56]line Внесено: 2400.00 [20:31:56]line СДАЧА: 0.00 [20:31:56]line НСП 1% : 21.24 [20:31:56]line НДС 12% : 254.91 [20:31:56]line Наличными: 2400.00 [20:31:56]line Безнал.: 0.00 [20:31:56]line Место: АЗС № 86 "Партнер Нефть" [20:31:56]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:31:56]line СНО: Общий режим [20:31:56]line Чек 514 22.10.2024 20:31 [20:31:56]line Смена: 461 ФФД: 1.0 [20:31:56]line ЗНМ: 0300000155 [20:31:56]line РНМ: 0000000000100030 [20:31:56]line Версия ККМ: 001 [20:31:56]line ФМ: 0000000000965340 [20:31:56]line ФД: 188485 [20:31:56]line ФПД: 228468065713171 [20:31:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203156&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188485&fm=228468065713171&tin=02508201610067®Number=0000000000100030&sum=240000 [20:31:56]written 0, free lines is 4095 [20:31:56]OFD Sender: Processing packet 188485 [packets to send 1062, broken 1061] [20:31:56]ProducePacketName [20:31:56]name=ofd_packets/00188485 [20:31:56]OFD Sender: To server: pG, [20:31:56]CommunicateWithHost lk.salyk.kg:30040 [20:31:56]ConnectInit lk.salyk.kg [20:31:56]Connected sock=10 [20:31:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2F 7D 07 01 EB 00 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 28 8C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A5 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 93 63 00 00 00 00 07 04 06 00 80 A9 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 02 00 00 F4 03 04 00 BC 0B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E0 02 00 35 04 06 00 CF CA 5D E6 3C 13 7F 43 2F 63 3A 71 A1 91 [20:31:56]Write to MH i2c: 01 00 00 29 19 42 [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: 01 07 00 29 19 00 00 00 00 00 60 0C B5 [20:31:56]RasterBufferAndPrint [20:31:56]line [20:31:56]line [20:31:56]line [20:31:56]line [20:31:56]line [20:31:56]written 0, free lines is 3171 [20:31:56]MH_Cut [20:31:56]Write to MH i2c: D1 01 00 30 19 01 1B [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: D1 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: D1 01 00 [20:31:56]MH_I2C_Read... [20:31:56]Read from MH i2c: D1 01 00 30 19 00 1A [20:31:56]Write to MH i2c: 01 00 00 31 19 4A [20:31:56]Write i2c OK [20:31:56]MH_I2C_Read... [20:31:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 02 C6 47 00 B2 70 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 45 E0 02 00 F4 03 04 00 A8 B5 17 67 B6 04 01 00 00 5E 81 23 F8 50 61 06 47 [20:31:57]CommunicateWithHost err = 0 [20:31:57]CheckOFDResponse [20:31:57]1017 (14) - 77093643461234 [20:31:57]1041 (16) - 0000000000965340 [20:31:57]1040 (4) - 188485 [20:31:57]1012 (4) - 22.10.2024 14:24 [20:31:57]1206 (1) - 0 [20:31:57]OFD Sender: Remove packet 188485 [20:31:57]ProducePacketName [20:31:57]name=ofd_packets/00188485 [20:31:57]NVStorageDeleteData [20:31:57]OFD Sender: No OFD packet to send [20:31:58]*** Cut start [20:31:58]*** Partial cut [20:31:58]*** CUTSNS_PIN = 1 [20:31:58]*** CUTSNS_PIN = 0 [20:31:58]*** Brake cut motor [20:31:58]Read from MH i2c: 01 [20:31:58]MH_I2C_Read... [20:31:58]*** Stop cut motor [20:31:58]*** Cut end [20:31:58]Read from MH i2c: 01 07 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: 01 07 00 31 19 00 00 00 00 00 FF 0F 5F [20:31:58]process_action close_receipt done [20:31:58]requested_data is exist [20:31:58]produce_requested_data [20:31:58]requested_item fm.sn is exist - process it [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 11 00 00 [20:31:58]Write to MH i2c: E2 08 00 32 19 80 11 00 00 00 00 00 00 C5 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:31:58]Read from MH i2c: E2 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 17 00 [20:31:58]MH_I2C_Read... [20:31:58]Read from MH i2c: E2 17 00 32 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 13 [20:31:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:31:58]wFMCommunicate OK [20:31:58]requested_item fd.num is exist - process it [20:31:58]SAM_PROTO_GetFieldsCounters [20:31:58]wFMCommunicate request_size=4 [20:31:58]MH_SAM_APDU [20:31:58]CAPDU: 80 13 00 00 [20:31:58]Write to MH i2c: E2 08 00 33 19 80 13 00 00 00 00 00 00 C8 [20:31:58]Write i2c OK [20:31:58]MH_I2C_Read... [20:31:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:31:59]Read from MH i2c: E2 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 62 00 [20:31:59]MH_I2C_Read... [20:31:59]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 02 02 00 00 5E 04 04 00 02 02 00 00 57 04 04 00 03 02 00 00 19 04 04 00 00 00 00 00 90 00 D0 [20:31:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 45 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 02 02 00 00 5E 04 04 00 02 02 00 00 57 04 04 00 03 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:31:59]wFMCommunicate OK [20:31:59]SAM_PROTO_GetFieldsCounters done [20:31:59]requested_item shift.num is exist - process it [20:31:59]requested_item shift.opened is exist - process it [20:31:59]req_shift_opened [20:31:59]FM_GetShiftState [20:31:59]SAM_PROTO_GetShiftState [20:31:59]wFMCommunicate request_size=4 [20:31:59]MH_SAM_APDU [20:31:59]CAPDU: 80 13 01 00 [20:31:59]Write to MH i2c: E2 08 00 34 19 80 13 01 00 00 00 00 00 CA [20:31:59]Write i2c OK [20:31:59]MH_I2C_Read... [20:31:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:31:59]Read from MH i2c: E2 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 0E 00 [20:31:59]MH_I2C_Read... [20:31:59]Read from MH i2c: E2 0E 00 34 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BF [20:31:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:31:59]wFMCommunicate OK [20:31:59]SAM_PROTO_GetShiftState done [20:31:59]FM_GetShiftState done [20:31:59]req_shift_opened done [20:31:59]requested_item shift.open_date is exist - process it [20:31:59]req_shift_open_date [20:31:59]req_shift_open_date done [20:31:59]produce_requested_data done [20:31:59]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188485,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:31:59]process_action_free close_receipt [20:31:59]json_value_free [20:31:59]json_value_free done [20:31:59]process_json_proto returns [20:31:59]Send response to host [20:31:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188485,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:31:59]free response buf [20:31:59]execute_script done [20:31:59]execute_script returns [20:31:59]free content buf [20:31:59]Sock 9.Close socket [20:31:59]Sock 9.Thread stoped [20:32:02]OFD Sender: No OFD packet to send [20:32:07]OFD Sender: No OFD packet to send [20:32:12]OFD Sender: No OFD packet to send [20:32:17]OFD Sender: No OFD packet to send [20:32:22]OFD Sender: No OFD packet to send [20:32:27]OFD Sender: No OFD packet to send [20:32:32]OFD Sender: No OFD packet to send [20:32:37]OFD Sender: No OFD packet to send [20:32:42]OFD Sender: No OFD packet to send [20:32:47]OFD Sender: No OFD packet to send [20:32:52]OFD Sender: No OFD packet to send [20:32:58]OFD Sender: No OFD packet to send [20:33:03]OFD Sender: No OFD packet to send [20:33:08]OFD Sender: No OFD packet to send [20:33:13]OFD Sender: No OFD packet to send [20:33:18]OFD Sender: No OFD packet to send [20:33:23]OFD Sender: No OFD packet to send [20:33:28]OFD Sender: No OFD packet to send [20:33:33]OFD Sender: No OFD packet to send [20:33:38]OFD Sender: No OFD packet to send [20:33:43]OFD Sender: No OFD packet to send [20:33:48]OFD Sender: No OFD packet to send [20:33:53]OFD Sender: No OFD packet to send [20:33:58]OFD Sender: No OFD packet to send [20:34:03]OFD Sender: No OFD packet to send [20:34:08]OFD Sender: No OFD packet to send [20:34:13]OFD Sender: No OFD packet to send [20:34:18]OFD Sender: No OFD packet to send [20:34:23]OFD Sender: No OFD packet to send [20:34:28]OFD Sender: No OFD packet to send [20:34:33]OFD Sender: No OFD packet to send [20:34:38]OFD Sender: No OFD packet to send [20:34:43]OFD Sender: No OFD packet to send [20:34:48]OFD Sender: No OFD packet to send [20:34:53]OFD Sender: No OFD packet to send [20:34:58]OFD Sender: No OFD packet to send [20:35:03]OFD Sender: No OFD packet to send [20:35:08]OFD Sender: No OFD packet to send [20:35:13]OFD Sender: No OFD packet to send [20:35:18]OFD Sender: No OFD packet to send [20:35:23]OFD Sender: No OFD packet to send [20:35:28]OFD Sender: No OFD packet to send [20:35:33]OFD Sender: No OFD packet to send [20:35:38]OFD Sender: No OFD packet to send [20:35:43]OFD Sender: No OFD packet to send [20:35:48]OFD Sender: No OFD packet to send [20:35:53]OFD Sender: No OFD packet to send [20:35:58]OFD Sender: No OFD packet to send [20:36:03]OFD Sender: No OFD packet to send [20:36:08]OFD Sender: No OFD packet to send [20:36:13]OFD Sender: No OFD packet to send [20:36:18]OFD Sender: No OFD packet to send [20:36:23]OFD Sender: No OFD packet to send [20:36:28]OFD Sender: No OFD packet to send [20:36:33]OFD Sender: No OFD packet to send [20:36:38]OFD Sender: No OFD packet to send [20:36:44]OFD Sender: No OFD packet to send [20:36:49]OFD Sender: No OFD packet to send [20:36:54]OFD Sender: No OFD packet to send [20:36:58]accept exits with 7 [20:36:58]New connection [20:36:58]New thread 3066756452 created [20:36:58]Thread 3066613092 joined [20:36:58]Waiting for new connection... [20:36:58] Sock 7.Parse request [20:36:58]Sock 7.Check first char [20:36:58]Sock 7.First char is OK [20:36:58]request: POST /json_proto HTTP/1.0 [20:36:58]Method: POST [20:36:58]URL: /json_proto [20:36:58]Method is POST - this is cgi request [20:36:58]url: /json_proto [20:36:58]query_string will be loaded in cgi processing [20:36:58]execute_cgi json_proto POST (null) [20:36:58]execute_cgi path=json_proto method=POST [20:36:58]POST find Content-Length [20:36:58]Host: 172.17.42.131:8080 [20:36:58]Content-Length: 677 [20:36:58]Content-Type: application/json [20:36:58] [20:36:58]POST finish read [20:36:58]Found Content-Length = 677 [20:36:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:58]execute_script... [20:36: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)210546", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:58]POST & json_proto [20:36:58]process_json_proto [20:36:58]json parsed OK: [20:36:58]protocol is kg_v1.0 [20:36:58]action value=close_receipt [20:36:58]process_action close_receipt [20:36:58]cmd_close_receipt [20:36:58]MH_GetDate [20:36:58]Write to MH i2c: F0 00 00 35 19 3D [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: F0 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: F0 09 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: F0 09 00 35 19 00 EB 0C 18 67 A0 18 CA 66 A4 [20:36:58]GetLastDocTimeStamp 1729629116 [20:36:58]current date 1729629419 [20:36:58]FM_GetShiftState [20:36:58]SAM_PROTO_GetShiftState [20:36:58]wFMCommunicate request_size=4 [20:36:58]MH_SAM_APDU [20:36:58]CAPDU: 80 13 01 00 [20:36:58]Write to MH i2c: E2 08 00 36 19 80 13 01 00 00 00 00 00 CC [20:36:58]Write i2c OK [20:36:58]MH_I2C_Read... [20:36:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:58]Read from MH i2c: E2 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 0E 00 [20:36:58]MH_I2C_Read... [20:36:58]Read from MH i2c: E2 0E 00 36 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C1 [20:36:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:36:58]wFMCommunicate OK [20:36:58]SAM_PROTO_GetShiftState done [20:36:58]FM_GetShiftState done [20:36:58]opened in 1729556094 [20:36:58]opened+sec_in_day 1729642494 [20:36:58]quantity*price = 50041 [20:36:58]sum+1 = 50042 [20:36:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 515 22.10.2024 20:36 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188486 ФПД: 162720592147987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188486&fm=162720592147987&tin=02508201610067®Number=0000000000100030&sum=50000 [20:36:59]StoreToDocumentArchive [20:36:59]shift 461 fd 188486 [20:36:59]save to /storage/0461/doc_00188486 [20:36:59]save last doc name /storage/0461/doc_00188486 to /storage/kkm_last_doc_name [20:36:59]save OK [20:36:59]Clear old archive folders... [20:36:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:36:59]tlvbuf is B6F25130 [20:36:59]SAM_PROTO_ClearQueue [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 09 00 00 [20:36:59]Write to MH i2c: E2 08 00 43 19 80 09 00 00 00 00 00 00 CE [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 43 19 00 90 00 D0 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]SAM_PROTO_ClearQueue done [20:36:59]KKMCreateOFDPacket [20:36:59]OFDProtocolAddRootSTLVToBuf [20:36:59]FM_MakeSignedData [20:36:59]FM_MakeSignedData [20:36:59]SAM_PROTO_SignData [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 01 02 [20:36:59]Write to MH i2c: E2 08 00 44 19 80 0D 01 02 00 00 00 00 D6 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 44 19 00 90 00 D1 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=255 [20:36:59]MH_SAM_APDU [20:36: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 EB 0C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E0 02 00 35 04 06 00 93 [20:36:59]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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 EB 0C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E0 02 00 35 04 06 00 93 00 00 4D [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 45 19 00 90 00 D2 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=10 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 02 02 05 FE 57 17 B6 13 [20:36:59]Write to MH i2c: E2 0D 00 46 19 80 0D 02 02 05 00 FE 57 17 B6 13 00 00 18 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 03 00 46 19 00 90 00 D3 [20:36:59]RAPDU: 90 00 [20:36:59]wFMCommunicate OK [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 0D 03 02 [20:36:59]Write to MH i2c: E2 08 00 47 19 80 0D 03 02 00 00 00 00 DB [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 0B 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 0B 00 47 19 00 AC 9A 99 8D E1 F1 A3 AB 90 00 68 [20:36:59]RAPDU: AC 9A 99 8D E1 F1 A3 AB 90 00 [20:36:59]wFMCommunicate OK [20:36:59]SAM_PROTO_SignData done [20:36:59]FM_MakeSignedData done [20:36:59]CreateOFDProtocolMessage [20:36:59]wFMCommunicate request_size=4 [20:36:59]MH_SAM_APDU [20:36:59]CAPDU: 80 11 00 00 [20:36:59]Write to MH i2c: E2 08 00 48 19 80 11 00 00 00 00 00 00 DB [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:59]Read from MH i2c: E2 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 17 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: E2 17 00 48 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 29 [20:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:36:59]wFMCommunicate OK [20:36:59]CreateOFDProtocolMessage done [20:36:59]OFDSenderStorePacket 188486 [20:36:59]StoreOFDPacket docnum=188486 [20:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BB B3 07 01 97 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 EB 0C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E0 02 00 35 04 06 00 93 FE 57 17 B6 13 AC 9A 99 8D E1 F1 A3 AB [20:36:59]CheckFolder [20:36:59]dirname=/storage/ofd_packets [20:36:59]CheckFolder done [20:36:59]ProducePacketName [20:36:59]name=ofd_packets/00188486 [20:36:59]NVStorageSaveData ofd_packets/00188486 [20:36:59]File name is /storage/ofd_packets/00188486 [20:36:59]Write 301 bytes [20:36:59]NVStorageSaveData done [20:36:59]OFDSenderStorePacket done [20:36:59]KKMCreateOFDPacket done [20:36:59]NVStorageSaveData kkm_last_timestamp [20:36:59]File name is /storage/kkm_last_timestamp [20:36:59]Write 4 bytes [20:36:59]NVStorageSaveData done [20:36:59]ExternCall_PrintAddStr [20:36:59]wPrintStart [20:36:59]Write to MH i2c: 01 00 00 49 19 62 [20:36:59]Write i2c OK [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 [20:36:59]MH_I2C_Read... [20:36:59]Read from MH i2c: 01 07 00 49 19 00 00 00 00 00 FF 0F 77 [20:36:59]RasterBufferAndPrint [20:36:59]line Счет N : (1)210546 [20:36:59]line ИНН: 02508201610067 [20:36:59]line Контрольно-Кассовый Чек [20:36:59]line ПРОДАЖА [20:36:59]line ТРК (МРК, ГНК) : 32 [20:36:59]line Товар: 2710124130 [20:36:59]line Аи-92-К-3 [20:36:59]line 7.480 * 66.90 [20:36:59]line = 500.41 [20:36:59]line НДС 12% НСП 1% [20:36:59]line > о реализуемом товаре [20:36:59]line ОКРУГЛЕНИЕ: -0.41 [20:36:59]line ИТОГО: 500.00 [20:36:59]line Внесено: 500.00 [20:36:59]line СДАЧА: 0.00 [20:36:59]line НСП 1% : 4.43 [20:36:59]line НДС 12% : 53.14 [20:36:59]line Наличными: 500.00 [20:36:59]line Безнал.: 0.00 [20:36:59]line Место: АЗС № 86 "Партнер Нефть" [20:36:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:36:59]line СНО: Общий режим [20:36:59]line Чек 515 22.10.2024 20:36 [20:36:59]line Смена: 461 ФФД: 1.0 [20:36:59]line ЗНМ: 0300000155 [20:36:59]line РНМ: 0000000000100030 [20:36:59]line Версия ККМ: 001 [20:36:59]line ФМ: 0000000000965340 [20:36:59]line ФД: 188486 [20:36:59]line ФПД: 162720592147987 [20:36:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T203659&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188486&fm=162720592147987&tin=02508201610067®Number=0000000000100030&sum=50000 [20:36:59]written 0, free lines is 4095 [20:36:59]OFD Sender: Processing packet 188486 [packets to send 1062, broken 1061] [20:36:59]ProducePacketName [20:36:59]name=ofd_packets/00188486 [20:36:59]OFD Sender: To server: pG, [20:36:59]CommunicateWithHost lk.salyk.kg:30040 [20:36:59]ConnectInit lk.salyk.kg [20:37:00]Connected sock=10 [20:37:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 BB B3 07 01 97 5D 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 03 02 00 00 F4 03 04 00 EB 0C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 46 E0 02 00 35 04 06 00 93 FE 57 17 B6 13 AC 9A 99 8D E1 F1 A3 AB [20:37:00]Write to MH i2c: 01 00 00 74 19 8D [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: 01 07 00 74 19 00 00 00 00 00 5A 0C FA [20:37:00]RasterBufferAndPrint [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]line [20:37:00]written 0, free lines is 3167 [20:37:00]MH_Cut [20:37:00]Write to MH i2c: D1 01 00 7B 19 01 66 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 01 00 [20:37:00]MH_I2C_Read... [20:37:00]Read from MH i2c: D1 01 00 7B 19 00 65 [20:37:00]Write to MH i2c: 01 00 00 7C 19 95 [20:37:00]Write i2c OK [20:37:00]MH_I2C_Read... [20:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FF 01 47 00 28 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 39 36 35 33 34 30 10 04 04 00 46 E0 02 00 F4 03 04 00 D8 B6 17 67 B6 04 01 00 00 FE 91 51 EE 81 7B C4 3E [20:37:00]CommunicateWithHost err = 0 [20:37:00]CheckOFDResponse [20:37:00]1017 (14) - 77093643461234 [20:37:00]1041 (16) - 0000000000965340 [20:37:00]1040 (4) - 188486 [20:37:00]1012 (4) - 22.10.2024 14:29 [20:37:00]1206 (1) - 0 [20:37:00]OFD Sender: Remove packet 188486 [20:37:00]ProducePacketName [20:37:00]name=ofd_packets/00188486 [20:37:00]NVStorageDeleteData [20:37:01]OFD Sender: No OFD packet to send [20:37:01]*** Cut start [20:37:01]*** Partial cut [20:37:01]*** CUTSNS_PIN = 1 [20:37:01]*** CUTSNS_PIN = 0 [20:37:01]*** Brake cut motor [20:37:02]Read from MH i2c: 01 [20:37:02]MH_I2C_Read... [20:37:02]*** Stop cut motor [20:37:02]*** Cut end [20:37:02]Read from MH i2c: 01 07 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: 01 07 00 7C 19 00 00 00 00 00 FF 0F AA [20:37:02]process_action close_receipt done [20:37:02]requested_data is exist [20:37:02]produce_requested_data [20:37:02]requested_item fm.sn is exist - process it [20:37:02]wFMCommunicate request_size=4 [20:37:02]MH_SAM_APDU [20:37:02]CAPDU: 80 11 00 00 [20:37:02]Write to MH i2c: E2 08 00 7D 19 80 11 00 00 00 00 00 00 10 [20:37:02]Write i2c OK [20:37:02]MH_I2C_Read... [20:37:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:37:02]Read from MH i2c: E2 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 17 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 17 00 7D 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 5E [20:37:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:37:02]wFMCommunicate OK [20:37:02]requested_item fd.num is exist - process it [20:37:02]SAM_PROTO_GetFieldsCounters [20:37:02]wFMCommunicate request_size=4 [20:37:02]MH_SAM_APDU [20:37:02]CAPDU: 80 13 00 00 [20:37:02]Write to MH i2c: E2 08 00 7E 19 80 13 00 00 00 00 00 00 13 [20:37:02]Write i2c OK [20:37:02]MH_I2C_Read... [20:37:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:37:02]Read from MH i2c: E2 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 62 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 62 00 7E 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 03 02 00 00 5E 04 04 00 03 02 00 00 57 04 04 00 04 02 00 00 19 04 04 00 00 00 00 00 90 00 1F [20:37:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 46 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 03 02 00 00 5E 04 04 00 03 02 00 00 57 04 04 00 04 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:37:02]wFMCommunicate OK [20:37:02]SAM_PROTO_GetFieldsCounters done [20:37:02]requested_item shift.num is exist - process it [20:37:02]requested_item shift.opened is exist - process it [20:37:02]req_shift_opened [20:37:02]FM_GetShiftState [20:37:02]SAM_PROTO_GetShiftState [20:37:02]wFMCommunicate request_size=4 [20:37:02]MH_SAM_APDU [20:37:02]CAPDU: 80 13 01 00 [20:37:02]Write to MH i2c: E2 08 00 7F 19 80 13 01 00 00 00 00 00 15 [20:37:02]Write i2c OK [20:37:02]MH_I2C_Read... [20:37:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:37:02]Read from MH i2c: E2 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 0E 00 [20:37:02]MH_I2C_Read... [20:37:02]Read from MH i2c: E2 0E 00 7F 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0A [20:37:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:37:02]wFMCommunicate OK [20:37:02]SAM_PROTO_GetShiftState done [20:37:02]FM_GetShiftState done [20:37:02]req_shift_opened done [20:37:02]requested_item shift.open_date is exist - process it [20:37:02]req_shift_open_date [20:37:02]req_shift_open_date done [20:37:02]produce_requested_data done [20:37:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188486,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:37:02]process_action_free close_receipt [20:37:02]json_value_free [20:37:02]json_value_free done [20:37:02]process_json_proto returns [20:37:02]Send response to host [20:37:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188486,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:37:02]free response buf [20:37:02]execute_script done [20:37:02]execute_script returns [20:37:02]free content buf [20:37:02]Sock 7.Close socket [20:37:02]Sock 7.Thread stoped [20:37:06]OFD Sender: No OFD packet to send [20:37:11]OFD Sender: No OFD packet to send [20:37:16]OFD Sender: No OFD packet to send [20:37:21]OFD Sender: No OFD packet to send [20:37:26]OFD Sender: No OFD packet to send [20:37:31]OFD Sender: No OFD packet to send [20:37:36]OFD Sender: No OFD packet to send [20:37:41]OFD Sender: No OFD packet to send [20:37:46]OFD Sender: No OFD packet to send [20:37:51]OFD Sender: No OFD packet to send [20:37:56]OFD Sender: No OFD packet to send [20:38:01]OFD Sender: No OFD packet to send [20:38:06]OFD Sender: No OFD packet to send [20:38:11]OFD Sender: No OFD packet to send [20:38:16]OFD Sender: No OFD packet to send [20:38:21]OFD Sender: No OFD packet to send [20:38:26]OFD Sender: No OFD packet to send [20:38:31]OFD Sender: No OFD packet to send [20:38:36]OFD Sender: No OFD packet to send [20:38:41]OFD Sender: No OFD packet to send [20:38:46]OFD Sender: No OFD packet to send [20:38:51]OFD Sender: No OFD packet to send [20:38:56]OFD Sender: No OFD packet to send [20:39:01]OFD Sender: No OFD packet to send [20:39:06]OFD Sender: No OFD packet to send [20:39:11]OFD Sender: No OFD packet to send [20:39:16]OFD Sender: No OFD packet to send [20:39:21]OFD Sender: No OFD packet to send [20:39:26]OFD Sender: No OFD packet to send [20:39:31]OFD Sender: No OFD packet to send [20:39:36]OFD Sender: No OFD packet to send [20:39:41]OFD Sender: No OFD packet to send [20:39:46]OFD Sender: No OFD packet to send [20:39:51]OFD Sender: No OFD packet to send [20:39:56]OFD Sender: No OFD packet to send [20:40:01]OFD Sender: No OFD packet to send [20:40:06]OFD Sender: No OFD packet to send [20:40:11]OFD Sender: No OFD packet to send [20:40:16]OFD Sender: No OFD packet to send [20:40:21]OFD Sender: No OFD packet to send [20:40:26]OFD Sender: No OFD packet to send [20:40:27]accept exits with 9 [20:40:27]New connection [20:40:27]New thread 3066613092 created [20:40:27]Thread 3066756452 joined [20:40:27]Waiting for new connection... [20:40:27] Sock 9.Parse request [20:40:27]Sock 9.Check first char [20:40:27]Sock 9.First char is OK [20:40:27]request: POST /json_proto HTTP/1.0 [20:40:27]Method: POST [20:40:27]URL: /json_proto [20:40:27]Method is POST - this is cgi request [20:40:27]url: /json_proto [20:40:27]query_string will be loaded in cgi processing [20:40:27]execute_cgi json_proto POST (null) [20:40:27]execute_cgi path=json_proto method=POST [20:40:27]POST find Content-Length [20:40:27]Host: 172.17.42.131:8080 [20:40:27]Content-Length: 688 [20:40:27]Content-Type: application/json [20:40:27] [20:40:27]POST finish read [20:40:27]Found Content-Length = 688 [20:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:27]execute_script... [20:40: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)210547", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 32.390, "sum" : 2500.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:40:27]POST & json_proto [20:40:27]process_json_proto [20:40:27]json parsed OK: [20:40:27]protocol is kg_v1.0 [20:40:27]action value=close_receipt [20:40:27]process_action close_receipt [20:40:27]cmd_close_receipt [20:40:27]MH_GetDate [20:40:27]Write to MH i2c: F0 00 00 80 19 88 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: F0 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: F0 09 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: F0 09 00 80 19 00 BC 0D 18 67 A0 18 CA 66 C1 [20:40:27]GetLastDocTimeStamp 1729629419 [20:40:27]current date 1729629628 [20:40:27]FM_GetShiftState [20:40:27]SAM_PROTO_GetShiftState [20:40:27]wFMCommunicate request_size=4 [20:40:27]MH_SAM_APDU [20:40:27]CAPDU: 80 13 01 00 [20:40:27]Write to MH i2c: E2 08 00 81 19 80 13 01 00 00 00 00 00 17 [20:40:27]Write i2c OK [20:40:27]MH_I2C_Read... [20:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:27]Read from MH i2c: E2 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 0E 00 [20:40:27]MH_I2C_Read... [20:40:27]Read from MH i2c: E2 0E 00 81 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0C [20:40:27]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:40:27]wFMCommunicate OK [20:40:27]SAM_PROTO_GetShiftState done [20:40:27]FM_GetShiftState done [20:40:27]opened in 1729556094 [20:40:27]opened+sec_in_day 1729642494 [20:40:27]quantity*price = 250050 [20:40:27]sum+1 = 250052 [20:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 516 22.10.2024 20:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188487 ФПД: 231616500286271 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188487&fm=231616500286271&tin=02508201610067®Number=0000000000100030&sum=250000 [20:40:28]StoreToDocumentArchive [20:40:28]shift 461 fd 188487 [20:40:28]save to /storage/0461/doc_00188487 [20:40:28]save last doc name /storage/0461/doc_00188487 to /storage/kkm_last_doc_name [20:40:28]save OK [20:40:28]Clear old archive folders... [20:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:40:28]tlvbuf is 0098D700 [20:40:28]SAM_PROTO_ClearQueue [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 09 00 00 [20:40:28]Write to MH i2c: E2 08 00 8E 19 80 09 00 00 00 00 00 00 19 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 8E 19 00 90 00 1B [20:40:28]RAPDU: 90 00 [20:40:28]wFMCommunicate OK [20:40:28]SAM_PROTO_ClearQueue done [20:40:28]KKMCreateOFDPacket [20:40:28]OFDProtocolAddRootSTLVToBuf [20:40:28]FM_MakeSignedData [20:40:28]FM_MakeSignedData [20:40:28]SAM_PROTO_SignData [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 0D 01 02 [20:40:28]Write to MH i2c: E2 08 00 8F 19 80 0D 01 02 00 00 00 00 21 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 8F 19 00 90 00 1C [20:40:28]RAPDU: 90 00 [20:40:28]wFMCommunicate OK [20:40:28]wFMCommunicate request_size=255 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 BC 0D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E0 02 [20:40:28]Write to MH i2c: E2 02 01 90 19 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 BC 0D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E0 02 00 00 55 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 90 19 00 90 00 1D [20:40:28]RAPDU: 90 00 [20:40:28]wFMCommunicate OK [20:40:28]wFMCommunicate request_size=16 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D2 A7 6B 39 43 3F [20:40:28]Write to MH i2c: E2 13 00 91 19 80 0D 02 02 0B 00 00 35 04 06 00 D2 A7 6B 39 43 3F 00 00 18 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 03 00 91 19 00 90 00 1E [20:40:28]RAPDU: 90 00 [20:40:28]wFMCommunicate OK [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 0D 03 02 [20:40:28]Write to MH i2c: E2 08 00 92 19 80 0D 03 02 00 00 00 00 26 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 0B 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 0B 00 92 19 00 D9 B3 45 D9 61 E0 15 01 90 00 28 [20:40:28]RAPDU: D9 B3 45 D9 61 E0 15 01 90 00 [20:40:28]wFMCommunicate OK [20:40:28]SAM_PROTO_SignData done [20:40:28]FM_MakeSignedData done [20:40:28]CreateOFDProtocolMessage [20:40:28]wFMCommunicate request_size=4 [20:40:28]MH_SAM_APDU [20:40:28]CAPDU: 80 11 00 00 [20:40:28]Write to MH i2c: E2 08 00 93 19 80 11 00 00 00 00 00 00 26 [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:28]Read from MH i2c: E2 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 17 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: E2 17 00 93 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 74 [20:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:40:28]wFMCommunicate OK [20:40:28]CreateOFDProtocolMessage done [20:40:28]OFDSenderStorePacket 188487 [20:40:28]StoreOFDPacket docnum=188487 [20:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FB 37 0D 01 3D 33 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 BC 0D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E0 02 00 35 04 06 00 D2 A7 6B 39 43 3F D9 B3 45 D9 61 E0 15 01 [20:40:28]CheckFolder [20:40:28]dirname=/storage/ofd_packets [20:40:28]CheckFolder done [20:40:28]ProducePacketName [20:40:28]name=ofd_packets/00188487 [20:40:28]NVStorageSaveData ofd_packets/00188487 [20:40:28]File name is /storage/ofd_packets/00188487 [20:40:28]Write 307 bytes [20:40:28]NVStorageSaveData done [20:40:28]OFDSenderStorePacket done [20:40:28]KKMCreateOFDPacket done [20:40:28]NVStorageSaveData kkm_last_timestamp [20:40:28]File name is /storage/kkm_last_timestamp [20:40:28]Write 4 bytes [20:40:28]NVStorageSaveData done [20:40:28]ExternCall_PrintAddStr [20:40:28]wPrintStart [20:40:28]Write to MH i2c: 01 00 00 94 19 AD [20:40:28]Write i2c OK [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 07 00 [20:40:28]MH_I2C_Read... [20:40:28]Read from MH i2c: 01 07 00 94 19 00 00 00 00 00 FF 0F C2 [20:40:28]RasterBufferAndPrint [20:40:28]line Счет N : (1)210547 [20:40:28]line ИНН: 02508201610067 [20:40:28]line Контрольно-Кассовый Чек [20:40:28]line ПРОДАЖА [20:40:28]line ТРК (МРК, ГНК) : 41 [20:40:28]line Товар: 2710194210 [20:40:28]line D-ENERGY ДТ-К-5 [20:40:28]line 32.390 * 77.20 [20:40:28]line = 2500.51 [20:40:28]line НДС 12% НСП 1% [20:40:28]line > о реализуемом товаре [20:40:28]line ОКРУГЛЕНИЕ: -0.51 [20:40:28]line ИТОГО: 2500.00 [20:40:28]line Внесено: 2500.00 [20:40:28]line СДАЧА: 0.00 [20:40:28]line НСП 1% : 22.13 [20:40:28]line НДС 12% : 265.54 [20:40:28]line Наличными: 2500.00 [20:40:28]line Безнал.: 0.00 [20:40:28]line Место: АЗС № 86 "Партнер Нефть" [20:40:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:40:28]line СНО: Общий режим [20:40:28]line Чек 516 22.10.2024 20:40 [20:40:28]line Смена: 461 ФФД: 1.0 [20:40:28]line ЗНМ: 0300000155 [20:40:28]line РНМ: 0000000000100030 [20:40:28]line Версия ККМ: 001 [20:40:28]line ФМ: 0000000000965340 [20:40:28]line ФД: 188487 [20:40:28]line ФПД: 231616500286271 [20:40:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204028&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188487&fm=231616500286271&tin=02508201610067®Number=0000000000100030&sum=250000 [20:40:28]written 0, free lines is 4095 [20:40:28]OFD Sender: Processing packet 188487 [packets to send 1062, broken 1061] [20:40:28]ProducePacketName [20:40:28]name=ofd_packets/00188487 [20:40:28]OFD Sender: To server: pG, [20:40:28]CommunicateWithHost lk.salyk.kg:30040 [20:40:28]ConnectInit lk.salyk.kg [20:40:29]Connected sock=10 [20:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 FB 37 0D 01 3D 33 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 86 7E 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 C3 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 02 00 00 F4 03 04 00 BC 0D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 47 E0 02 00 35 04 06 00 D2 A7 6B 39 43 3F D9 B3 45 D9 61 E0 15 01 [20:40:29]Write to MH i2c: 01 00 00 BF 19 D8 [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: 01 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: 01 07 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: 01 07 00 BF 19 00 00 00 00 00 6F 0C 5A [20:40:29]RasterBufferAndPrint [20:40:29]line [20:40:29]line [20:40:29]line [20:40:29]line [20:40:29]line [20:40:29]written 0, free lines is 3186 [20:40:29]MH_Cut [20:40:29]Write to MH i2c: D1 01 00 C6 19 01 B1 [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: D1 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: D1 01 00 [20:40:29]MH_I2C_Read... [20:40:29]Read from MH i2c: D1 01 00 C6 19 00 B0 [20:40:29]Write to MH i2c: 01 00 00 C7 19 E0 [20:40:29]Write i2c OK [20:40:29]MH_I2C_Read... [20:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 11 5E 47 00 B1 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 39 36 35 33 34 30 10 04 04 00 47 E0 02 00 F4 03 04 00 A9 B7 17 67 B6 04 01 00 00 5F 35 46 91 88 FC 80 2F [20:40:29]CommunicateWithHost err = 0 [20:40:29]CheckOFDResponse [20:40:29]1017 (14) - 77093643461234 [20:40:29]1041 (16) - 0000000000965340 [20:40:29]1040 (4) - 188487 [20:40:29]1012 (4) - 22.10.2024 14:33 [20:40:29]1206 (1) - 0 [20:40:29]OFD Sender: Remove packet 188487 [20:40:29]ProducePacketName [20:40:29]name=ofd_packets/00188487 [20:40:29]NVStorageDeleteData [20:40:30]OFD Sender: No OFD packet to send [20:40:30]*** Cut start [20:40:30]*** Partial cut [20:40:30]*** CUTSNS_PIN = 1 [20:40:30]*** CUTSNS_PIN = 0 [20:40:30]*** Brake cut motor [20:40:31]Read from MH i2c: 01 [20:40:31]MH_I2C_Read... [20:40:31]*** Stop cut motor [20:40:31]*** Cut end [20:40:31]Read from MH i2c: 01 07 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: 01 07 00 C7 19 00 00 00 00 00 FF 0F F5 [20:40:31]process_action close_receipt done [20:40:31]requested_data is exist [20:40:31]produce_requested_data [20:40:31]requested_item fm.sn is exist - process it [20:40:31]wFMCommunicate request_size=4 [20:40:31]MH_SAM_APDU [20:40:31]CAPDU: 80 11 00 00 [20:40:31]Write to MH i2c: E2 08 00 C8 19 80 11 00 00 00 00 00 00 5B [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:40:31]Read from MH i2c: E2 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 17 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 17 00 C8 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A9 [20:40:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:40:31]wFMCommunicate OK [20:40:31]requested_item fd.num is exist - process it [20:40:31]SAM_PROTO_GetFieldsCounters [20:40:31]wFMCommunicate request_size=4 [20:40:31]MH_SAM_APDU [20:40:31]CAPDU: 80 13 00 00 [20:40:31]Write to MH i2c: E2 08 00 C9 19 80 13 00 00 00 00 00 00 5E [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:40:31]Read from MH i2c: E2 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 62 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 62 00 C9 19 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 04 02 00 00 5E 04 04 00 04 02 00 00 57 04 04 00 05 02 00 00 19 04 04 00 00 00 00 00 90 00 6E [20:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 47 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 04 02 00 00 5E 04 04 00 04 02 00 00 57 04 04 00 05 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:40:31]wFMCommunicate OK [20:40:31]SAM_PROTO_GetFieldsCounters done [20:40:31]requested_item shift.num is exist - process it [20:40:31]requested_item shift.opened is exist - process it [20:40:31]req_shift_opened [20:40:31]FM_GetShiftState [20:40:31]SAM_PROTO_GetShiftState [20:40:31]wFMCommunicate request_size=4 [20:40:31]MH_SAM_APDU [20:40:31]CAPDU: 80 13 01 00 [20:40:31]Write to MH i2c: E2 08 00 CA 19 80 13 01 00 00 00 00 00 60 [20:40:31]Write i2c OK [20:40:31]MH_I2C_Read... [20:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:40:31]Read from MH i2c: E2 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 0E 00 [20:40:31]MH_I2C_Read... [20:40:31]Read from MH i2c: E2 0E 00 CA 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 55 [20:40:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:40:31]wFMCommunicate OK [20:40:31]SAM_PROTO_GetShiftState done [20:40:31]FM_GetShiftState done [20:40:31]req_shift_opened done [20:40:31]requested_item shift.open_date is exist - process it [20:40:31]req_shift_open_date [20:40:31]req_shift_open_date done [20:40:31]produce_requested_data done [20:40:31]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188487,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:40:31]process_action_free close_receipt [20:40:31]json_value_free [20:40:31]json_value_free done [20:40:31]process_json_proto returns [20:40:31]Send response to host [20:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188487,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:40:31]free response buf [20:40:31]execute_script done [20:40:31]execute_script returns [20:40:31]free content buf [20:40:31]Sock 9.Close socket [20:40:31]Sock 9.Thread stoped [20:40:35]OFD Sender: No OFD packet to send [20:40:40]OFD Sender: No OFD packet to send [20:40:45]OFD Sender: No OFD packet to send [20:40:50]OFD Sender: No OFD packet to send [20:40:55]OFD Sender: No OFD packet to send [20:41:00]OFD Sender: No OFD packet to send [20:41:05]OFD Sender: No OFD packet to send [20:41:10]OFD Sender: No OFD packet to send [20:41:15]OFD Sender: No OFD packet to send [20:41:20]OFD Sender: No OFD packet to send [20:41:25]OFD Sender: No OFD packet to send [20:41:30]OFD Sender: No OFD packet to send [20:41:35]OFD Sender: No OFD packet to send [20:41:40]OFD Sender: No OFD packet to send [20:41:45]OFD Sender: No OFD packet to send [20:41:50]OFD Sender: No OFD packet to send [20:41:55]OFD Sender: No OFD packet to send [20:42:00]OFD Sender: No OFD packet to send [20:42:05]OFD Sender: No OFD packet to send [20:42:10]OFD Sender: No OFD packet to send [20:42:15]OFD Sender: No OFD packet to send [20:42:20]OFD Sender: No OFD packet to send [20:42:25]OFD Sender: No OFD packet to send [20:42:30]OFD Sender: No OFD packet to send [20:42:35]OFD Sender: No OFD packet to send [20:42:40]OFD Sender: No OFD packet to send [20:42:45]OFD Sender: No OFD packet to send [20:42:50]OFD Sender: No OFD packet to send [20:42:55]OFD Sender: No OFD packet to send [20:43:00]OFD Sender: No OFD packet to send [20:43:05]OFD Sender: No OFD packet to send [20:43:10]OFD Sender: No OFD packet to send [20:43:15]OFD Sender: No OFD packet to send [20:43:20]OFD Sender: No OFD packet to send [20:43:25]OFD Sender: No OFD packet to send [20:43:30]OFD Sender: No OFD packet to send [20:43:35]OFD Sender: No OFD packet to send [20:43:40]OFD Sender: No OFD packet to send [20:43:45]OFD Sender: No OFD packet to send [20:43:50]OFD Sender: No OFD packet to send [20:43:55]OFD Sender: No OFD packet to send [20:44:00]OFD Sender: No OFD packet to send [20:44:05]OFD Sender: No OFD packet to send [20:44:11]OFD Sender: No OFD packet to send [20:44:16]OFD Sender: No OFD packet to send [20:44:21]OFD Sender: No OFD packet to send [20:44:26]OFD Sender: No OFD packet to send [20:44:30]accept exits with 7 [20:44:30]New connection [20:44:30]New thread 3066756452 created [20:44:30]Thread 3066613092 joined [20:44:30]Waiting for new connection... [20:44:30] Sock 7.Parse request [20:44:30]Sock 7.Check first char [20:44:30]Sock 7.First char is OK [20:44:30]request: POST /json_proto HTTP/1.0 [20:44:30]Method: POST [20:44:30]URL: /json_proto [20:44:30]Method is POST - this is cgi request [20:44:30]url: /json_proto [20:44:30]query_string will be loaded in cgi processing [20:44:30]execute_cgi json_proto POST (null) [20:44:30]execute_cgi path=json_proto method=POST [20:44:30]POST find Content-Length [20:44:30]Host: 172.17.42.131:8080 [20:44:30]Content-Length: 678 [20:44:30]Content-Type: application/json [20:44:30] [20:44:30]POST finish read [20:44:30]Found Content-Length = 678 [20:44:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:30]execute_script... [20:44: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)210548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:30]POST & json_proto [20:44:30]process_json_proto [20:44:30]json parsed OK: [20:44:30]protocol is kg_v1.0 [20:44:30]action value=close_receipt [20:44:30]process_action close_receipt [20:44:30]cmd_close_receipt [20:44:30]MH_GetDate [20:44:30]Write to MH i2c: F0 00 00 CB 19 D3 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: F0 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: F0 09 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: F0 09 00 CB 19 00 B0 0E 18 67 A0 18 CA 66 01 [20:44:30]GetLastDocTimeStamp 1729629628 [20:44:30]current date 1729629872 [20:44:30]FM_GetShiftState [20:44:30]SAM_PROTO_GetShiftState [20:44:30]wFMCommunicate request_size=4 [20:44:30]MH_SAM_APDU [20:44:30]CAPDU: 80 13 01 00 [20:44:30]Write to MH i2c: E2 08 00 CC 19 80 13 01 00 00 00 00 00 62 [20:44:30]Write i2c OK [20:44:30]MH_I2C_Read... [20:44:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:30]Read from MH i2c: E2 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 0E 00 [20:44:30]MH_I2C_Read... [20:44:30]Read from MH i2c: E2 0E 00 CC 19 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 57 [20:44:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:44:30]wFMCommunicate OK [20:44:30]SAM_PROTO_GetShiftState done [20:44:30]FM_GetShiftState done [20:44:30]opened in 1729556094 [20:44:30]opened+sec_in_day 1729642494 [20:44:30]quantity*price = 80012 [20:44:30]sum+1 = 80013 [20:44:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.12 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 517 22.10.2024 20:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188488 ФПД: 81692610029410 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188488&fm=81692610029410&tin=02508201610067®Number=0000000000100030&sum=80000 [20:44:31]StoreToDocumentArchive [20:44:31]shift 461 fd 188488 [20:44:31]save to /storage/0461/doc_00188488 [20:44:31]save last doc name /storage/0461/doc_00188488 to /storage/kkm_last_doc_name [20:44:31]save OK [20:44:31]Clear old archive folders... [20:44:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:31]tlvbuf is 0090D400 [20:44:31]SAM_PROTO_ClearQueue [20:44:31]wFMCommunicate request_size=4 [20:44:31]MH_SAM_APDU [20:44:31]CAPDU: 80 09 00 00 [20:44:31]Write to MH i2c: E2 08 00 D9 19 80 09 00 00 00 00 00 00 64 [20:44:31]Write i2c OK [20:44:31]MH_I2C_Read... [20:44:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:32]Read from MH i2c: E2 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 D9 19 00 90 00 66 [20:44:32]RAPDU: 90 00 [20:44:32]wFMCommunicate OK [20:44:32]SAM_PROTO_ClearQueue done [20:44:32]KKMCreateOFDPacket [20:44:32]OFDProtocolAddRootSTLVToBuf [20:44:32]FM_MakeSignedData [20:44:32]FM_MakeSignedData [20:44:32]SAM_PROTO_SignData [20:44:32]wFMCommunicate request_size=4 [20:44:32]MH_SAM_APDU [20:44:32]CAPDU: 80 0D 01 02 [20:44:32]Write to MH i2c: E2 08 00 DA 19 80 0D 01 02 00 00 00 00 6C [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:32]Read from MH i2c: E2 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 DA 19 00 90 00 67 [20:44:32]RAPDU: 90 00 [20:44:32]wFMCommunicate OK [20:44:32]wFMCommunicate request_size=255 [20:44:32]MH_SAM_APDU [20:44: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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 B0 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E0 02 00 35 04 06 00 4A [20:44:32]Write to MH i2c: E2 02 01 DB 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 B0 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E0 02 00 35 04 06 00 4A 00 00 51 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:32]Read from MH i2c: E2 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 DB 19 00 90 00 68 [20:44:32]RAPDU: 90 00 [20:44:32]wFMCommunicate OK [20:44:32]wFMCommunicate request_size=10 [20:44:32]MH_SAM_APDU [20:44:32]CAPDU: 80 0D 02 02 05 4C 8B 00 67 62 [20:44:32]Write to MH i2c: E2 0D 00 DC 19 80 0D 02 02 05 00 4C 8B 00 67 62 00 00 19 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:32]Read from MH i2c: E2 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 03 00 DC 19 00 90 00 69 [20:44:32]RAPDU: 90 00 [20:44:32]wFMCommunicate OK [20:44:32]wFMCommunicate request_size=4 [20:44:32]MH_SAM_APDU [20:44:32]CAPDU: 80 0D 03 02 [20:44:32]Write to MH i2c: E2 08 00 DD 19 80 0D 03 02 00 00 00 00 71 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:32]Read from MH i2c: E2 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 0B 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 0B 00 DD 19 00 E2 D6 66 F2 CA 93 25 1C 90 00 20 [20:44:32]RAPDU: E2 D6 66 F2 CA 93 25 1C 90 00 [20:44:32]wFMCommunicate OK [20:44:32]SAM_PROTO_SignData done [20:44:32]FM_MakeSignedData done [20:44:32]CreateOFDProtocolMessage [20:44:32]wFMCommunicate request_size=4 [20:44:32]MH_SAM_APDU [20:44:32]CAPDU: 80 11 00 00 [20:44:32]Write to MH i2c: E2 08 00 DE 19 80 11 00 00 00 00 00 00 71 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:32]Read from MH i2c: E2 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 17 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: E2 17 00 DE 19 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BF [20:44:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:44:32]wFMCommunicate OK [20:44:32]CreateOFDProtocolMessage done [20:44:32]OFDSenderStorePacket 188488 [20:44:32]StoreOFDPacket docnum=188488 [20:44:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 93 19 07 01 36 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 B0 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E0 02 00 35 04 06 00 4A 4C 8B 00 67 62 E2 D6 66 F2 CA 93 25 1C [20:44:32]CheckFolder [20:44:32]dirname=/storage/ofd_packets [20:44:32]CheckFolder done [20:44:32]ProducePacketName [20:44:32]name=ofd_packets/00188488 [20:44:32]NVStorageSaveData ofd_packets/00188488 [20:44:32]File name is /storage/ofd_packets/00188488 [20:44:32]Write 301 bytes [20:44:32]NVStorageSaveData done [20:44:32]OFDSenderStorePacket done [20:44:32]KKMCreateOFDPacket done [20:44:32]NVStorageSaveData kkm_last_timestamp [20:44:32]File name is /storage/kkm_last_timestamp [20:44:32]Write 4 bytes [20:44:32]NVStorageSaveData done [20:44:32]ExternCall_PrintAddStr [20:44:32]wPrintStart [20:44:32]Write to MH i2c: 01 00 00 DF 19 F8 [20:44:32]Write i2c OK [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 07 00 [20:44:32]MH_I2C_Read... [20:44:32]Read from MH i2c: 01 07 00 DF 19 00 00 00 00 00 FF 0F 0D [20:44:32]RasterBufferAndPrint [20:44:32]line Счет N : (1)210548 [20:44:32]line ИНН: 02508201610067 [20:44:32]line Контрольно-Кассовый Чек [20:44:32]line ПРОДАЖА [20:44:32]line ТРК (МРК, ГНК) : 42 [20:44:32]line Товар: 2710124130 [20:44:32]line Аи-92-К-3 [20:44:32]line 11.960 * 66.90 [20:44:32]line = 800.12 [20:44:32]line НДС 12% НСП 1% [20:44:32]line > о реализуемом товаре [20:44:32]line ОКРУГЛЕНИЕ: -0.12 [20:44:32]line ИТОГО: 800.00 [20:44:32]line Внесено: 800.00 [20:44:32]line СДАЧА: 0.00 [20:44:32]line НСП 1% : 7.08 [20:44:32]line НДС 12% : 84.97 [20:44:32]line Наличными: 800.00 [20:44:32]line Безнал.: 0.00 [20:44:32]line Место: АЗС № 86 "Партнер Нефть" [20:44:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:44:32]line СНО: Общий режим [20:44:32]line Чек 517 22.10.2024 20:44 [20:44:32]line Смена: 461 ФФД: 1.0 [20:44:32]line ЗНМ: 0300000155 [20:44:32]line РНМ: 0000000000100030 [20:44:32]line Версия ККМ: 001 [20:44:32]line ФМ: 0000000000965340 [20:44:32]line ФД: 188488 [20:44:32]line ФПД: 81692610029410 [20:44:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204432&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188488&fm=81692610029410&tin=02508201610067®Number=0000000000100030&sum=80000 [20:44:32]written 0, free lines is 4095 [20:44:32]OFD Sender: Processing packet 188488 [packets to send 1062, broken 1061] [20:44:32]ProducePacketName [20:44:32]name=ofd_packets/00188488 [20:44:32]OFD Sender: To server: pG, [20:44:32]CommunicateWithHost lk.salyk.kg:30040 [20:44:32]ConnectInit lk.salyk.kg [20:44:32]Connected sock=10 [20:44:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 93 19 07 01 36 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 33 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 31 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 02 00 00 F4 03 04 00 B0 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E0 02 00 35 04 06 00 4A 4C 8B 00 67 62 E2 D6 66 F2 CA 93 25 1C [20:44:33]Write to MH i2c: 01 00 00 0A 1A 24 [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: 01 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: 01 07 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: 01 07 00 0A 1A 00 00 00 00 00 62 0C 99 [20:44:33]RasterBufferAndPrint [20:44:33]line [20:44:33]line [20:44:33]line [20:44:33]line [20:44:33]line [20:44:33]written 0, free lines is 3174 [20:44:33]MH_Cut [20:44:33]Write to MH i2c: D1 01 00 11 1A 01 FD [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: D1 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: D1 01 00 [20:44:33]MH_I2C_Read... [20:44:33]Read from MH i2c: D1 01 00 11 1A 00 FC [20:44:33]Write to MH i2c: 01 00 00 12 1A 2C [20:44:33]Write i2c OK [20:44:33]MH_I2C_Read... [20:44:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CC 13 47 00 72 2F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 48 E0 02 00 F4 03 04 00 9C B8 17 67 B6 04 01 00 00 22 8E 45 7A C8 5E 21 58 [20:44:33]CommunicateWithHost err = 0 [20:44:33]CheckOFDResponse [20:44:33]1017 (14) - 77093643461234 [20:44:33]1041 (16) - 0000000000965340 [20:44:33]1040 (4) - 188488 [20:44:33]1012 (4) - 22.10.2024 14:37 [20:44:33]1206 (1) - 0 [20:44:33]OFD Sender: Remove packet 188488 [20:44:33]ProducePacketName [20:44:33]name=ofd_packets/00188488 [20:44:33]NVStorageDeleteData [20:44:33]OFD Sender: No OFD packet to send [20:44:34]*** Cut start [20:44:34]*** Partial cut [20:44:34]*** CUTSNS_PIN = 1 [20:44:34]*** CUTSNS_PIN = 0 [20:44:34]*** Brake cut motor [20:44:34]Read from MH i2c: 01 [20:44:34]MH_I2C_Read... [20:44:34]*** Stop cut motor [20:44:34]*** Cut end [20:44:34]Read from MH i2c: 01 07 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: 01 07 00 12 1A 00 00 00 00 00 FF 0F 41 [20:44:34]process_action close_receipt done [20:44:34]requested_data is exist [20:44:34]produce_requested_data [20:44:34]requested_item fm.sn is exist - process it [20:44:34]wFMCommunicate request_size=4 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 11 00 00 [20:44:34]Write to MH i2c: E2 08 00 13 1A 80 11 00 00 00 00 00 00 A7 [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:34]Read from MH i2c: E2 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 17 00 [20:44:34]MH_I2C_Read... [20:44:34]Read from MH i2c: E2 17 00 13 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F5 [20:44:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:44:34]wFMCommunicate OK [20:44:34]requested_item fd.num is exist - process it [20:44:34]SAM_PROTO_GetFieldsCounters [20:44:34]wFMCommunicate request_size=4 [20:44:34]MH_SAM_APDU [20:44:34]CAPDU: 80 13 00 00 [20:44:34]Write to MH i2c: E2 08 00 14 1A 80 13 00 00 00 00 00 00 AA [20:44:34]Write i2c OK [20:44:34]MH_I2C_Read... [20:44:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:35]Read from MH i2c: E2 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: E2 62 00 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: E2 62 00 14 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 05 02 00 00 5E 04 04 00 05 02 00 00 57 04 04 00 06 02 00 00 19 04 04 00 00 00 00 00 90 00 BE [20:44:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 48 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 05 02 00 00 5E 04 04 00 05 02 00 00 57 04 04 00 06 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:35]wFMCommunicate OK [20:44:35]SAM_PROTO_GetFieldsCounters done [20:44:35]requested_item shift.num is exist - process it [20:44:35]requested_item shift.opened is exist - process it [20:44:35]req_shift_opened [20:44:35]FM_GetShiftState [20:44:35]SAM_PROTO_GetShiftState [20:44:35]wFMCommunicate request_size=4 [20:44:35]MH_SAM_APDU [20:44:35]CAPDU: 80 13 01 00 [20:44:35]Write to MH i2c: E2 08 00 15 1A 80 13 01 00 00 00 00 00 AC [20:44:35]Write i2c OK [20:44:35]MH_I2C_Read... [20:44:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:35]Read from MH i2c: E2 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: E2 0E 00 [20:44:35]MH_I2C_Read... [20:44:35]Read from MH i2c: E2 0E 00 15 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A1 [20:44:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:44:35]wFMCommunicate OK [20:44:35]SAM_PROTO_GetShiftState done [20:44:35]FM_GetShiftState done [20:44:35]req_shift_opened done [20:44:35]requested_item shift.open_date is exist - process it [20:44:35]req_shift_open_date [20:44:35]req_shift_open_date done [20:44:35]produce_requested_data done [20:44:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188488,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:44:35]process_action_free close_receipt [20:44:35]json_value_free [20:44:35]json_value_free done [20:44:35]process_json_proto returns [20:44:35]Send response to host [20:44:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188488,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:44:35]free response buf [20:44:35]execute_script done [20:44:35]execute_script returns [20:44:35]free content buf [20:44:35]Sock 7.Close socket [20:44:35]Sock 7.Thread stoped [20:44:38]OFD Sender: No OFD packet to send [20:44:43]OFD Sender: No OFD packet to send [20:44:48]OFD Sender: No OFD packet to send [20:44:50]accept exits with 9 [20:44:50]New connection [20:44:50]New thread 3066613092 created [20:44:50]Thread 3066756452 joined [20:44:50]Waiting for new connection... [20:44:50] Sock 9.Parse request [20:44:50]Sock 9.Check first char [20:44:50]Sock 9.First char is OK [20:44:50]request: POST /json_proto HTTP/1.0 [20:44:50]Method: POST [20:44:50]URL: /json_proto [20:44:50]Method is POST - this is cgi request [20:44:50]url: /json_proto [20:44:50]query_string will be loaded in cgi processing [20:44:50]execute_cgi json_proto POST (null) [20:44:50]execute_cgi path=json_proto method=POST [20:44:50]POST find Content-Length [20:44:50]Host: 172.17.42.131:8080 [20:44:50]Content-Length: 677 [20:44:50]Content-Type: application/json [20:44:50] [20:44:50]POST finish read [20:44:50]Found Content-Length = 677 [20:44:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:50]execute_script... [20:44: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)210550", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:44:50]POST & json_proto [20:44:50]process_json_proto [20:44:50]json parsed OK: [20:44:50]protocol is kg_v1.0 [20:44:50]action value=close_receipt [20:44:50]process_action close_receipt [20:44:50]cmd_close_receipt [20:44:50]MH_GetDate [20:44:50]Write to MH i2c: F0 00 00 16 1A 1F [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: F0 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: F0 09 00 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: F0 09 00 16 1A 00 C4 0E 18 67 A0 18 CA 66 61 [20:44:50]GetLastDocTimeStamp 1729629872 [20:44:50]current date 1729629892 [20:44:50]FM_GetShiftState [20:44:50]SAM_PROTO_GetShiftState [20:44:50]wFMCommunicate request_size=4 [20:44:50]MH_SAM_APDU [20:44:50]CAPDU: 80 13 01 00 [20:44:50]Write to MH i2c: E2 08 00 17 1A 80 13 01 00 00 00 00 00 AE [20:44:50]Write i2c OK [20:44:50]MH_I2C_Read... [20:44:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:50]Read from MH i2c: E2 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: E2 0E 00 [20:44:50]MH_I2C_Read... [20:44:50]Read from MH i2c: E2 0E 00 17 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A3 [20:44:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:44:50]wFMCommunicate OK [20:44:50]SAM_PROTO_GetShiftState done [20:44:50]FM_GetShiftState done [20:44:50]opened in 1729556094 [20:44:50]opened+sec_in_day 1729642494 [20:44:50]quantity*price = 20003 [20:44:50]sum+1 = 20004 [20:44:50]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 518 22.10.2024 20:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188489 ФПД: 32475912600131 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204452&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188489&fm=32475912600131&tin=02508201610067®Number=0000000000100030&sum=20000 [20:44:51]StoreToDocumentArchive [20:44:51]shift 461 fd 188489 [20:44:51]save to /storage/0461/doc_00188489 [20:44:51]save last doc name /storage/0461/doc_00188489 to /storage/kkm_last_doc_name [20:44:51]save OK [20:44:51]Clear old archive folders... [20:44:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:44:51]tlvbuf is 009363C0 [20:44:51]SAM_PROTO_ClearQueue [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 09 00 00 [20:44:51]Write to MH i2c: E2 08 00 24 1A 80 09 00 00 00 00 00 00 B0 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 24 1A 00 90 00 B2 [20:44:51]RAPDU: 90 00 [20:44:51]wFMCommunicate OK [20:44:51]SAM_PROTO_ClearQueue done [20:44:51]KKMCreateOFDPacket [20:44:51]OFDProtocolAddRootSTLVToBuf [20:44:51]FM_MakeSignedData [20:44:51]FM_MakeSignedData [20:44:51]SAM_PROTO_SignData [20:44:51]wFMCommunicate request_size=4 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 0D 01 02 [20:44:51]Write to MH i2c: E2 08 00 25 1A 80 0D 01 02 00 00 00 00 B8 [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:44:51]Read from MH i2c: E2 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 [20:44:51]MH_I2C_Read... [20:44:51]Read from MH i2c: E2 03 00 25 1A 00 90 00 B3 [20:44:51]RAPDU: 90 00 [20:44:51]wFMCommunicate OK [20:44:51]wFMCommunicate request_size=255 [20:44:51]MH_SAM_APDU [20:44:51]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 C4 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E0 02 00 35 04 06 00 1D [20:44:51]Write to MH i2c: E2 02 01 26 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 C4 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E0 02 00 35 04 06 00 1D 00 00 5C [20:44:51]Write i2c OK [20:44:51]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 26 1A 00 90 00 B4 [20:44:52]RAPDU: 90 00 [20:44:52]wFMCommunicate OK [20:44:52]wFMCommunicate request_size=10 [20:44:52]MH_SAM_APDU [20:44:52]CAPDU: 80 0D 02 02 05 89 63 3B FA 43 [20:44:52]Write to MH i2c: E2 0D 00 27 1A 80 0D 02 02 05 00 89 63 3B FA 43 00 00 29 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 03 00 27 1A 00 90 00 B5 [20:44:52]RAPDU: 90 00 [20:44:52]wFMCommunicate OK [20:44:52]wFMCommunicate request_size=4 [20:44:52]MH_SAM_APDU [20:44:52]CAPDU: 80 0D 03 02 [20:44:52]Write to MH i2c: E2 08 00 28 1A 80 0D 03 02 00 00 00 00 BD [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 0B 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 0B 00 28 1A 00 49 1B 04 78 18 CB 04 D4 90 00 59 [20:44:52]RAPDU: 49 1B 04 78 18 CB 04 D4 90 00 [20:44:52]wFMCommunicate OK [20:44:52]SAM_PROTO_SignData done [20:44:52]FM_MakeSignedData done [20:44:52]CreateOFDProtocolMessage [20:44:52]wFMCommunicate request_size=4 [20:44:52]MH_SAM_APDU [20:44:52]CAPDU: 80 11 00 00 [20:44:52]Write to MH i2c: E2 08 00 29 1A 80 11 00 00 00 00 00 00 BD [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:52]Read from MH i2c: E2 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 17 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: E2 17 00 29 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [20:44:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:44:52]wFMCommunicate OK [20:44:52]CreateOFDProtocolMessage done [20:44:52]OFDSenderStorePacket 188489 [20:44:52]StoreOFDPacket docnum=188489 [20:44:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 F8 07 01 3D 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 C4 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E0 02 00 35 04 06 00 1D 89 63 3B FA 43 49 1B 04 78 18 CB 04 D4 [20:44:52]CheckFolder [20:44:52]dirname=/storage/ofd_packets [20:44:52]CheckFolder done [20:44:52]ProducePacketName [20:44:52]name=ofd_packets/00188489 [20:44:52]NVStorageSaveData ofd_packets/00188489 [20:44:52]File name is /storage/ofd_packets/00188489 [20:44:52]Write 301 bytes [20:44:52]NVStorageSaveData done [20:44:52]OFDSenderStorePacket done [20:44:52]KKMCreateOFDPacket done [20:44:52]NVStorageSaveData kkm_last_timestamp [20:44:52]File name is /storage/kkm_last_timestamp [20:44:52]Write 4 bytes [20:44:52]NVStorageSaveData done [20:44:52]ExternCall_PrintAddStr [20:44:52]wPrintStart [20:44:52]Write to MH i2c: 01 00 00 2A 1A 44 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 2A 1A 00 00 00 00 00 FF 0F 59 [20:44:52]RasterBufferAndPrint [20:44:52]line Счет N : (1)210550 [20:44:52]line ИНН: 02508201610067 [20:44:52]line Контрольно-Кассовый Чек [20:44:52]line ПРОДАЖА [20:44:52]line ТРК (МРК, ГНК) : 32 [20:44:52]line Товар: 2710124130 [20:44:52]line Аи-92-К-3 [20:44:52]line 2.990 * 66.90 [20:44:52]line = 200.03 [20:44:52]line НДС 12% НСП 1% [20:44:52]line > о реализуемом товаре [20:44:52]line ОКРУГЛЕНИЕ: -0.03 [20:44:52]line ИТОГО: 200.00 [20:44:52]line Внесено: 200.00 [20:44:52]line СДАЧА: 0.00 [20:44:52]line НСП 1% : 1.77 [20:44:52]line НДС 12% : 21.24 [20:44:52]line Наличными: 200.00 [20:44:52]line Безнал.: 0.00 [20:44:52]line Место: АЗС № 86 "Партнер Нефть" [20:44:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:44:52]line СНО: Общий режим [20:44:52]line Чек 518 22.10.2024 20:44 [20:44:52]line Смена: 461 ФФД: 1.0 [20:44:52]line ЗНМ: 0300000155 [20:44:52]line РНМ: 0000000000100030 [20:44:52]line Версия ККМ: 001 [20:44:52]line ФМ: 0000000000965340 [20:44:52]line ФД: 188489 [20:44:52]line ФПД: 32475912600131 [20:44:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204452&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188489&fm=32475912600131&tin=02508201610067®Number=0000000000100030&sum=20000 [20:44:52]written 0, free lines is 4095 [20:44:52]OFD Sender: Processing packet 188489 [packets to send 1062, broken 1061] [20:44:52]ProducePacketName [20:44:52]name=ofd_packets/00188489 [20:44:52]OFD Sender: To server: pG, [20:44:52]CommunicateWithHost lk.salyk.kg:30040 [20:44:52]ConnectInit lk.salyk.kg [20:44:52]Connected sock=10 [20:44:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 69 F8 07 01 3D 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 33 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 02 00 00 F4 03 04 00 C4 0E 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 49 E0 02 00 35 04 06 00 1D 89 63 3B FA 43 49 1B 04 78 18 CB 04 D4 [20:44:52]Write to MH i2c: 01 00 00 55 1A 6F [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: 01 07 00 55 1A 00 00 00 00 00 67 0C E9 [20:44:52]RasterBufferAndPrint [20:44:52]line [20:44:52]line [20:44:52]line [20:44:52]line [20:44:52]line [20:44:52]written 0, free lines is 3179 [20:44:52]MH_Cut [20:44:52]Write to MH i2c: D1 01 00 5C 1A 01 48 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: D1 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: D1 01 00 [20:44:52]MH_I2C_Read... [20:44:52]Read from MH i2c: D1 01 00 5C 1A 00 47 [20:44:52]Write to MH i2c: 01 00 00 5D 1A 77 [20:44:52]Write i2c OK [20:44:52]MH_I2C_Read... [20:44:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 13 B2 47 00 D3 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 39 36 35 33 34 30 10 04 04 00 49 E0 02 00 F4 03 04 00 B0 B8 17 67 B6 04 01 00 00 FB DC 42 F6 93 E8 7C C4 [20:44:52]CommunicateWithHost err = 0 [20:44:52]CheckOFDResponse [20:44:52]1017 (14) - 77093643461234 [20:44:52]1041 (16) - 0000000000965340 [20:44:52]1040 (4) - 188489 [20:44:52]1012 (4) - 22.10.2024 14:37 [20:44:52]1206 (1) - 0 [20:44:52]OFD Sender: Remove packet 188489 [20:44:52]ProducePacketName [20:44:52]name=ofd_packets/00188489 [20:44:52]NVStorageDeleteData [20:44:53]OFD Sender: No OFD packet to send [20:44:53]*** Cut start [20:44:53]*** Partial cut [20:44:53]*** CUTSNS_PIN = 1 [20:44:54]*** CUTSNS_PIN = 0 [20:44:54]*** Brake cut motor [20:44:54]Read from MH i2c: 01 [20:44:54]MH_I2C_Read... [20:44:54]*** Stop cut motor [20:44:54]*** Cut end [20:44:54]Read from MH i2c: 01 07 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: 01 07 00 5D 1A 00 00 00 00 00 FF 0F 8C [20:44:54]process_action close_receipt done [20:44:54]requested_data is exist [20:44:54]produce_requested_data [20:44:54]requested_item fm.sn is exist - process it [20:44:54]wFMCommunicate request_size=4 [20:44:54]MH_SAM_APDU [20:44:54]CAPDU: 80 11 00 00 [20:44:54]Write to MH i2c: E2 08 00 5E 1A 80 11 00 00 00 00 00 00 F2 [20:44:54]Write i2c OK [20:44:54]MH_I2C_Read... [20:44:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:44:54]Read from MH i2c: E2 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 17 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 17 00 5E 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [20:44:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:44:54]wFMCommunicate OK [20:44:54]requested_item fd.num is exist - process it [20:44:54]SAM_PROTO_GetFieldsCounters [20:44:54]wFMCommunicate request_size=4 [20:44:54]MH_SAM_APDU [20:44:54]CAPDU: 80 13 00 00 [20:44:54]Write to MH i2c: E2 08 00 5F 1A 80 13 00 00 00 00 00 00 F5 [20:44:54]Write i2c OK [20:44:54]MH_I2C_Read... [20:44:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:44:54]Read from MH i2c: E2 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 62 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 62 00 5F 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 06 02 00 00 5E 04 04 00 06 02 00 00 57 04 04 00 07 02 00 00 19 04 04 00 00 00 00 00 90 00 0D [20:44:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 49 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 06 02 00 00 5E 04 04 00 06 02 00 00 57 04 04 00 07 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:44:54]wFMCommunicate OK [20:44:54]SAM_PROTO_GetFieldsCounters done [20:44:54]requested_item shift.num is exist - process it [20:44:54]requested_item shift.opened is exist - process it [20:44:54]req_shift_opened [20:44:54]FM_GetShiftState [20:44:54]SAM_PROTO_GetShiftState [20:44:54]wFMCommunicate request_size=4 [20:44:54]MH_SAM_APDU [20:44:54]CAPDU: 80 13 01 00 [20:44:54]Write to MH i2c: E2 08 00 60 1A 80 13 01 00 00 00 00 00 F7 [20:44:54]Write i2c OK [20:44:54]MH_I2C_Read... [20:44:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:44:54]Read from MH i2c: E2 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 0E 00 [20:44:54]MH_I2C_Read... [20:44:54]Read from MH i2c: E2 0E 00 60 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EC [20:44:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:44:54]wFMCommunicate OK [20:44:54]SAM_PROTO_GetShiftState done [20:44:54]FM_GetShiftState done [20:44:54]req_shift_opened done [20:44:54]requested_item shift.open_date is exist - process it [20:44:54]req_shift_open_date [20:44:54]req_shift_open_date done [20:44:54]produce_requested_data done [20:44:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188489,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:44:54]process_action_free close_receipt [20:44:54]json_value_free [20:44:54]json_value_free done [20:44:54]process_json_proto returns [20:44:54]Send response to host [20:44:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188489,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:44:54]free response buf [20:44:54]execute_script done [20:44:54]execute_script returns [20:44:54]free content buf [20:44:54]Sock 9.Close socket [20:44:54]Sock 9.Thread stoped [20:44:58]OFD Sender: No OFD packet to send [20:45:03]OFD Sender: No OFD packet to send [20:45:08]OFD Sender: No OFD packet to send [20:45:13]OFD Sender: No OFD packet to send [20:45:18]OFD Sender: No OFD packet to send [20:45:23]OFD Sender: No OFD packet to send [20:45:28]OFD Sender: No OFD packet to send [20:45:33]OFD Sender: No OFD packet to send [20:45:38]OFD Sender: No OFD packet to send [20:45:43]OFD Sender: No OFD packet to send [20:45:48]OFD Sender: No OFD packet to send [20:45:53]OFD Sender: No OFD packet to send [20:45:58]OFD Sender: No OFD packet to send [20:46:03]accept exits with 7 [20:46:03]New connection [20:46:03]New thread 3066756452 created [20:46:03]Thread 3066613092 joined [20:46:03]Waiting for new connection... [20:46:03] Sock 7.Parse request [20:46:03]Sock 7.Check first char [20:46:03]Sock 7.First char is OK [20:46:03]request: POST /json_proto HTTP/1.0 [20:46:03]Method: POST [20:46:03]URL: /json_proto [20:46:03]Method is POST - this is cgi request [20:46:03]url: /json_proto [20:46:03]query_string will be loaded in cgi processing [20:46:03]execute_cgi json_proto POST (null) [20:46:03]execute_cgi path=json_proto method=POST [20:46:03]POST find Content-Length [20:46:03]Host: 172.17.42.131:8080 [20:46:03]Content-Length: 679 [20:46:03]Content-Type: application/json [20:46:03] [20:46:03]POST finish read [20:46:03]Found Content-Length = 679 [20:46:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.780, "sum" : 988.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:03]execute_script... [20: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)210551", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.780, "sum" : 988.78, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 988.00, "payments": [ { "type": 0, "sum" : 988.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:46:03]POST & json_proto [20:46:03]process_json_proto [20:46:03]json parsed OK: [20:46:03]protocol is kg_v1.0 [20:46:03]action value=close_receipt [20:46:03]process_action close_receipt [20:46:03]cmd_close_receipt [20:46:03]MH_GetDate [20:46:03]Write to MH i2c: F0 00 00 61 1A 6A [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: F0 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: F0 09 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: F0 09 00 61 1A 00 0D 0F 18 67 A0 18 CA 66 F6 [20:46:03]GetLastDocTimeStamp 1729629892 [20:46:03]current date 1729629965 [20:46:03]FM_GetShiftState [20:46:03]SAM_PROTO_GetShiftState [20:46:03]wFMCommunicate request_size=4 [20:46:03]MH_SAM_APDU [20:46:03]CAPDU: 80 13 01 00 [20:46:03]Write to MH i2c: E2 08 00 62 1A 80 13 01 00 00 00 00 00 F9 [20:46:03]Write i2c OK [20:46:03]MH_I2C_Read... [20:46:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:03]Read from MH i2c: E2 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: E2 0E 00 [20:46:03]MH_I2C_Read... [20:46:03]Read from MH i2c: E2 0E 00 62 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EE [20:46:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:46:03]wFMCommunicate OK [20:46:03]SAM_PROTO_GetShiftState done [20:46:03]FM_GetShiftState done [20:46:03]opened in 1729556094 [20:46:03]opened+sec_in_day 1729642494 [20:46:03]quantity*price = 98878 [20:46:03]sum+1 = 98879 [20:46:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.78 ИТОГО: 988.00 Внесено: 1000.00 СДАЧА: 12.00 НСП 1% : 8.75 НДС 12% : 105.00 Наличными: 988.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 519 22.10.2024 20:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188490 ФПД: 220847609257849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188490&fm=220847609257849&tin=02508201610067®Number=0000000000100030&sum=98800 [20:46:04]StoreToDocumentArchive [20:46:04]shift 461 fd 188490 [20:46:04]save to /storage/0461/doc_00188490 [20:46:04]save last doc name /storage/0461/doc_00188490 to /storage/kkm_last_doc_name [20:46:04]save OK [20:46:04]Clear old archive folders... [20:46:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:46:04]tlvbuf is B6E78600 [20:46:04]SAM_PROTO_ClearQueue [20:46:04]wFMCommunicate request_size=4 [20:46:04]MH_SAM_APDU [20:46:04]CAPDU: 80 09 00 00 [20:46:04]Write to MH i2c: E2 08 00 6F 1A 80 09 00 00 00 00 00 00 FB [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 03 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 03 00 6F 1A 00 90 00 FD [20:46:04]RAPDU: 90 00 [20:46:04]wFMCommunicate OK [20:46:04]SAM_PROTO_ClearQueue done [20:46:04]KKMCreateOFDPacket [20:46:04]OFDProtocolAddRootSTLVToBuf [20:46:04]FM_MakeSignedData [20:46:04]FM_MakeSignedData [20:46:04]SAM_PROTO_SignData [20:46:04]wFMCommunicate request_size=4 [20:46:04]MH_SAM_APDU [20:46:04]CAPDU: 80 0D 01 02 [20:46:04]Write to MH i2c: E2 08 00 70 1A 80 0D 01 02 00 00 00 00 03 [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 03 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 03 00 70 1A 00 90 00 FE [20:46:04]RAPDU: 90 00 [20:46:04]wFMCommunicate OK [20:46:04]wFMCommunicate request_size=255 [20:46:04]MH_SAM_APDU [20: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 0D 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E0 02 00 35 04 06 00 C8 [20:46:04]Write to MH i2c: E2 02 01 71 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 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 0D 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E0 02 00 35 04 06 00 C8 00 00 C8 [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:04]Read from MH i2c: E2 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 03 00 [20:46:04]MH_I2C_Read... [20:46:04]Read from MH i2c: E2 03 00 71 1A 00 90 00 FF [20:46:04]RAPDU: 90 00 [20:46:04]wFMCommunicate OK [20:46:04]wFMCommunicate request_size=10 [20:46:04]MH_SAM_APDU [20:46:04]CAPDU: 80 0D 02 02 05 DC 17 4C 9F 79 [20:46:04]Write to MH i2c: E2 0D 00 72 1A 80 0D 02 02 05 00 DC 17 4C 9F 79 00 00 67 [20:46:04]Write i2c OK [20:46:04]MH_I2C_Read... [20:46:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:46:05]Read from MH i2c: E2 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: E2 03 00 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: E2 03 00 72 1A 00 90 00 00 [20:46:05]RAPDU: 90 00 [20:46:05]wFMCommunicate OK [20:46:05]wFMCommunicate request_size=4 [20:46:05]MH_SAM_APDU [20:46:05]CAPDU: 80 0D 03 02 [20:46:05]Write to MH i2c: E2 08 00 73 1A 80 0D 03 02 00 00 00 00 08 [20:46:05]Write i2c OK [20:46:05]MH_I2C_Read... [20:46:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:46:05]Read from MH i2c: E2 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: E2 0B 00 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: E2 0B 00 73 1A 00 F1 6D A1 D9 9F 13 B2 78 90 00 BD [20:46:05]RAPDU: F1 6D A1 D9 9F 13 B2 78 90 00 [20:46:05]wFMCommunicate OK [20:46:05]SAM_PROTO_SignData done [20:46:05]FM_MakeSignedData done [20:46:05]CreateOFDProtocolMessage [20:46:05]wFMCommunicate request_size=4 [20:46:05]MH_SAM_APDU [20:46:05]CAPDU: 80 11 00 00 [20:46:05]Write to MH i2c: E2 08 00 74 1A 80 11 00 00 00 00 00 00 08 [20:46:05]Write i2c OK [20:46:05]MH_I2C_Read... [20:46:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:05]Read from MH i2c: E2 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: E2 17 00 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: E2 17 00 74 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [20:46:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:05]wFMCommunicate OK [20:46:05]CreateOFDProtocolMessage done [20:46:05]OFDSenderStorePacket 188490 [20:46:05]StoreOFDPacket docnum=188490 [20:46:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CE F3 07 01 EC 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 0D 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E0 02 00 35 04 06 00 C8 DC 17 4C 9F 79 F1 6D A1 D9 9F 13 B2 78 [20:46:05]CheckFolder [20:46:05]dirname=/storage/ofd_packets [20:46:05]CheckFolder done [20:46:05]ProducePacketName [20:46:05]name=ofd_packets/00188490 [20:46:05]NVStorageSaveData ofd_packets/00188490 [20:46:05]File name is /storage/ofd_packets/00188490 [20:46:05]Write 301 bytes [20:46:05]NVStorageSaveData done [20:46:05]OFDSenderStorePacket done [20:46:05]KKMCreateOFDPacket done [20:46:05]NVStorageSaveData kkm_last_timestamp [20:46:05]File name is /storage/kkm_last_timestamp [20:46:05]Write 4 bytes [20:46:05]NVStorageSaveData done [20:46:05]ExternCall_PrintAddStr [20:46:05]wPrintStart [20:46:05]Write to MH i2c: 01 00 00 75 1A 8F [20:46:05]Write i2c OK [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: 01 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: 01 07 00 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: 01 07 00 75 1A 00 00 00 00 00 FF 0F A4 [20:46:05]RasterBufferAndPrint [20:46:05]line Счет N : (1)210551 [20:46:05]line ИНН: 02508201610067 [20:46:05]line Контрольно-Кассовый Чек [20:46:05]line ПРОДАЖА [20:46:05]line ТРК (МРК, ГНК) : 12 [20:46:05]line Товар: 2710124130 [20:46:05]line Аи-92-К-3 [20:46:05]line 14.780 * 66.90 [20:46:05]line = 988.78 [20:46:05]line НДС 12% НСП 1% [20:46:05]line > о реализуемом товаре [20:46:05]line ОКРУГЛЕНИЕ: -0.78 [20:46:05]line ИТОГО: 988.00 [20:46:05]line Внесено: 1000.00 [20:46:05]line СДАЧА: 12.00 [20:46:05]line НСП 1% : 8.75 [20:46:05]line НДС 12% : 105.00 [20:46:05]line Наличными: 988.00 [20:46:05]line Безнал.: 0.00 [20:46:05]line Место: АЗС № 86 "Партнер Нефть" [20:46:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:46:05]line СНО: Общий режим [20:46:05]line Чек 519 22.10.2024 20:46 [20:46:05]line Смена: 461 ФФД: 1.0 [20:46:05]line ЗНМ: 0300000155 [20:46:05]line РНМ: 0000000000100030 [20:46:05]line Версия ККМ: 001 [20:46:05]line ФМ: 0000000000965340 [20:46:05]line ФД: 188490 [20:46:05]line ФПД: 220847609257849 [20:46:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204605&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188490&fm=220847609257849&tin=02508201610067®Number=0000000000100030&sum=98800 [20:46:05]OFD Sender: Processing packet 188490 [packets to send 1062, broken 1061] [20:46:05]ProducePacketName [20:46:05]name=ofd_packets/00188490 [20:46:05]OFD Sender: To server: pG, [20:46:05]CommunicateWithHost lk.salyk.kg:30040 [20:46:05]ConnectInit lk.salyk.kg [20:46:05]written 0, free lines is 4095 [20:46:05]Connected sock=10 [20:46:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CE F3 07 01 EC 03 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 BC 39 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 3E 82 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 81 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6B 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 04 29 00 00 00 00 07 04 06 00 F0 81 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 02 00 00 F4 03 04 00 0D 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E0 02 00 35 04 06 00 C8 DC 17 4C 9F 79 F1 6D A1 D9 9F 13 B2 78 [20:46:05]Write to MH i2c: 01 00 00 A0 1A BA [20:46:05]Write i2c OK [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: 01 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: 01 07 00 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: 01 07 00 A0 1A 00 00 00 00 00 66 0C 33 [20:46:05]RasterBufferAndPrint [20:46:05]line [20:46:05]line [20:46:05]line [20:46:05]line [20:46:05]line [20:46:05]written 0, free lines is 3178 [20:46:05]MH_Cut [20:46:05]Write to MH i2c: D1 01 00 A7 1A 01 93 [20:46:05]Write i2c OK [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: D1 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: D1 01 00 [20:46:05]MH_I2C_Read... [20:46:05]Read from MH i2c: D1 01 00 A7 1A 00 92 [20:46:05]Write to MH i2c: 01 00 00 A8 1A C2 [20:46:05]Write i2c OK [20:46:05]MH_I2C_Read... [20:46:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1E 70 47 00 15 AD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4A E0 02 00 F4 03 04 00 F9 B8 17 67 B6 04 01 00 00 6F FE E0 FF 01 A4 9C 73 [20:46:05]CommunicateWithHost err = 0 [20:46:05]CheckOFDResponse [20:46:05]1017 (14) - 77093643461234 [20:46:05]1041 (16) - 0000000000965340 [20:46:05]1040 (4) - 188490 [20:46:05]1012 (4) - 22.10.2024 14:38 [20:46:05]1206 (1) - 0 [20:46:05]OFD Sender: Remove packet 188490 [20:46:05]ProducePacketName [20:46:05]name=ofd_packets/00188490 [20:46:05]NVStorageDeleteData [20:46:06]OFD Sender: No OFD packet to send [20:46:06]*** Cut start [20:46:06]*** Partial cut [20:46:06]*** CUTSNS_PIN = 1 [20:46:06]*** CUTSNS_PIN = 0 [20:46:07]*** Brake cut motor [20:46:07]Read from MH i2c: 01 [20:46:07]MH_I2C_Read... [20:46:07]*** Stop cut motor [20:46:07]*** Cut end [20:46:07]Read from MH i2c: 01 07 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: 01 07 00 A8 1A 00 00 00 00 00 FF 0F D7 [20:46:07]process_action close_receipt done [20:46:07]requested_data is exist [20:46:07]produce_requested_data [20:46:07]requested_item fm.sn is exist - process it [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 11 00 00 [20:46:07]Write to MH i2c: E2 08 00 A9 1A 80 11 00 00 00 00 00 00 3D [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 17 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 17 00 A9 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [20:46:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:46:07]wFMCommunicate OK [20:46:07]requested_item fd.num is exist - process it [20:46:07]SAM_PROTO_GetFieldsCounters [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 13 00 00 [20:46:07]Write to MH i2c: E2 08 00 AA 1A 80 13 00 00 00 00 00 00 40 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 62 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 62 00 AA 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 07 02 00 00 5E 04 04 00 07 02 00 00 57 04 04 00 08 02 00 00 19 04 04 00 00 00 00 00 90 00 5C [20:46:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 07 02 00 00 5E 04 04 00 07 02 00 00 57 04 04 00 08 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:46:07]wFMCommunicate OK [20:46:07]SAM_PROTO_GetFieldsCounters done [20:46:07]requested_item shift.num is exist - process it [20:46:07]requested_item shift.opened is exist - process it [20:46:07]req_shift_opened [20:46:07]FM_GetShiftState [20:46:07]SAM_PROTO_GetShiftState [20:46:07]wFMCommunicate request_size=4 [20:46:07]MH_SAM_APDU [20:46:07]CAPDU: 80 13 01 00 [20:46:07]Write to MH i2c: E2 08 00 AB 1A 80 13 01 00 00 00 00 00 42 [20:46:07]Write i2c OK [20:46:07]MH_I2C_Read... [20:46:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:46:07]Read from MH i2c: E2 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0E 00 [20:46:07]MH_I2C_Read... [20:46:07]Read from MH i2c: E2 0E 00 AB 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 37 [20:46:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:46:07]wFMCommunicate OK [20:46:07]SAM_PROTO_GetShiftState done [20:46:07]FM_GetShiftState done [20:46:07]req_shift_opened done [20:46:07]requested_item shift.open_date is exist - process it [20:46:07]req_shift_open_date [20:46:07]req_shift_open_date done [20:46:07]produce_requested_data done [20:46:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188490,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:46:07]process_action_free close_receipt [20:46:07]json_value_free [20:46:07]json_value_free done [20:46:07]process_json_proto returns [20:46:07]Send response to host [20:46:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188490,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:46:07]free response buf [20:46:07]execute_script done [20:46:07]execute_script returns [20:46:07]free content buf [20:46:07]Sock 7.Close socket [20:46:07]Sock 7.Thread stoped [20:46:11]OFD Sender: No OFD packet to send [20:46:16]OFD Sender: No OFD packet to send [20:46:21]OFD Sender: No OFD packet to send [20:46:26]OFD Sender: No OFD packet to send [20:46:31]OFD Sender: No OFD packet to send [20:46:36]OFD Sender: No OFD packet to send [20:46:41]OFD Sender: No OFD packet to send [20:46:46]OFD Sender: No OFD packet to send [20:46:51]OFD Sender: No OFD packet to send [20:46:56]OFD Sender: No OFD packet to send [20:47:01]OFD Sender: No OFD packet to send [20:47:06]OFD Sender: No OFD packet to send [20:47:11]OFD Sender: No OFD packet to send [20:47:16]OFD Sender: No OFD packet to send [20:47:21]OFD Sender: No OFD packet to send [20:47:26]OFD Sender: No OFD packet to send [20:47:30]accept exits with 9 [20:47:30]New connection [20:47:30]New thread 3066613092 created [20:47:30]Thread 3066756452 joined [20:47:30]Waiting for new connection... [20:47:30] Sock 9.Parse request [20:47:30]Sock 9.Check first char [20:47:30]Sock 9.First char is OK [20:47:30]request: POST /json_proto HTTP/1.0 [20:47:30]Method: POST [20:47:30]URL: /json_proto [20:47:30]Method is POST - this is cgi request [20:47:30]url: /json_proto [20:47:30]query_string will be loaded in cgi processing [20:47:30]execute_cgi json_proto POST (null) [20:47:30]execute_cgi path=json_proto method=POST [20:47:30]POST find Content-Length [20:47:30]Host: 172.17.42.131:8080 [20:47:30]Content-Length: 679 [20:47:30]Content-Type: application/json [20:47:30] [20:47:30]POST finish read [20:47:30]Found Content-Length = 679 [20:47:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:30]execute_script... [20:47:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 59.060, "sum" : 4500.37, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4500.00, "total" : 4500.00, "payments": [ { "type": 0, "sum" : 4500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:47:30]POST & json_proto [20:47:30]process_json_proto [20:47:30]json parsed OK: [20:47:30]protocol is kg_v1.0 [20:47:30]action value=close_receipt [20:47:30]process_action close_receipt [20:47:30]cmd_close_receipt [20:47:30]MH_GetDate [20:47:30]Write to MH i2c: F0 00 00 AC 1A B5 [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: F0 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: F0 09 00 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: F0 09 00 AC 1A 00 64 0F 18 67 A0 18 CA 66 98 [20:47:30]GetLastDocTimeStamp 1729629965 [20:47:30]current date 1729630052 [20:47:30]FM_GetShiftState [20:47:30]SAM_PROTO_GetShiftState [20:47:30]wFMCommunicate request_size=4 [20:47:30]MH_SAM_APDU [20:47:30]CAPDU: 80 13 01 00 [20:47:30]Write to MH i2c: E2 08 00 AD 1A 80 13 01 00 00 00 00 00 44 [20:47:30]Write i2c OK [20:47:30]MH_I2C_Read... [20:47:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:30]Read from MH i2c: E2 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: E2 0E 00 [20:47:30]MH_I2C_Read... [20:47:30]Read from MH i2c: E2 0E 00 AD 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 39 [20:47:30]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:47:30]wFMCommunicate OK [20:47:30]SAM_PROTO_GetShiftState done [20:47:30]FM_GetShiftState done [20:47:30]opened in 1729556094 [20:47:30]opened+sec_in_day 1729642494 [20:47:30]quantity*price = 450037 [20:47:30]sum+1 = 450038 [20:47:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.37 ИТОГО: 4500.00 Внесено: 4500.00 СДАЧА: 0.00 НСП 1% : 39.83 НДС 12% : 477.91 Наличными: 4500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 520 22.10.2024 20:47 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188491 ФПД: 17203591575572 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188491&fm=17203591575572&tin=02508201610067®Number=0000000000100030&sum=450000 [20:47:31]StoreToDocumentArchive [20:47:31]shift 461 fd 188491 [20:47:31]save to /storage/0461/doc_00188491 [20:47:31]save last doc name /storage/0461/doc_00188491 to /storage/kkm_last_doc_name [20:47:31]save OK [20:47:31]Clear old archive folders... [20:47:31]ProcessDocumentItem done err = 0, tmpTLVsize=248 [20:47:31]tlvbuf is 00931100 [20:47:31]SAM_PROTO_ClearQueue [20:47:31]wFMCommunicate request_size=4 [20:47:31]MH_SAM_APDU [20:47:31]CAPDU: 80 09 00 00 [20:47:31]Write to MH i2c: E2 08 00 BA 1A 80 09 00 00 00 00 00 00 46 [20:47:31]Write i2c OK [20:47:31]MH_I2C_Read... [20:47:31]OFD Sender: No OFD packet to send [20:47:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:47:31]Read from MH i2c: E2 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 03 00 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 03 00 BA 1A 00 90 00 48 [20:47:31]RAPDU: 90 00 [20:47:31]wFMCommunicate OK [20:47:31]SAM_PROTO_ClearQueue done [20:47:31]KKMCreateOFDPacket [20:47:31]OFDProtocolAddRootSTLVToBuf [20:47:31]FM_MakeSignedData [20:47:31]FM_MakeSignedData [20:47:31]SAM_PROTO_SignData [20:47:31]wFMCommunicate request_size=4 [20:47:31]MH_SAM_APDU [20:47:31]CAPDU: 80 0D 01 02 [20:47:31]Write to MH i2c: E2 08 00 BB 1A 80 0D 01 02 00 00 00 00 4E [20:47:31]Write i2c OK [20:47:31]MH_I2C_Read... [20:47:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:47:31]Read from MH i2c: E2 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 03 00 [20:47:31]MH_I2C_Read... [20:47:31]Read from MH i2c: E2 03 00 BB 1A 00 90 00 49 [20:47:31]RAPDU: 90 00 [20:47:31]wFMCommunicate OK [20:47:31]wFMCommunicate request_size=255 [20:47:31]MH_SAM_APDU [20:47:31]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 64 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E0 02 00 35 04 06 00 0F A5 85 F6 [20:47:31]Write to MH i2c: E2 02 01 BC 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 64 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E0 02 00 35 04 06 00 0F A5 85 F6 00 00 77 [20:47:31]Write i2c OK [20:47:31]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 03 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 03 00 BC 1A 00 90 00 4A [20:47:32]RAPDU: 90 00 [20:47:32]wFMCommunicate OK [20:47:32]wFMCommunicate request_size=7 [20:47:32]MH_SAM_APDU [20:47:32]CAPDU: 80 0D 02 02 02 F8 14 [20:47:32]Write to MH i2c: E2 0A 00 BD 1A 80 0D 02 02 02 00 F8 14 00 00 61 [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 03 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 03 00 BD 1A 00 90 00 4B [20:47:32]RAPDU: 90 00 [20:47:32]wFMCommunicate OK [20:47:32]wFMCommunicate request_size=4 [20:47:32]MH_SAM_APDU [20:47:32]CAPDU: 80 0D 03 02 [20:47:32]Write to MH i2c: E2 08 00 BE 1A 80 0D 03 02 00 00 00 00 53 [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 0B 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 0B 00 BE 1A 00 C5 B3 06 F9 9D 05 4F 19 90 00 D5 [20:47:32]RAPDU: C5 B3 06 F9 9D 05 4F 19 90 00 [20:47:32]wFMCommunicate OK [20:47:32]SAM_PROTO_SignData done [20:47:32]FM_MakeSignedData done [20:47:32]CreateOFDProtocolMessage [20:47:32]wFMCommunicate request_size=4 [20:47:32]MH_SAM_APDU [20:47:32]CAPDU: 80 11 00 00 [20:47:32]Write to MH i2c: E2 08 00 BF 1A 80 11 00 00 00 00 00 00 53 [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:32]Read from MH i2c: E2 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 17 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: E2 17 00 BF 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [20:47:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:47:32]wFMCommunicate OK [20:47:32]CreateOFDProtocolMessage done [20:47:32]OFDSenderStorePacket 188491 [20:47:32]StoreOFDPacket docnum=188491 [20:47:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 16 5C 04 01 B2 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 64 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E0 02 00 35 04 06 00 0F A5 85 F6 F8 14 C5 B3 06 F9 9D 05 4F 19 [20:47:32]CheckFolder [20:47:32]dirname=/storage/ofd_packets [20:47:32]CheckFolder done [20:47:32]ProducePacketName [20:47:32]name=ofd_packets/00188491 [20:47:32]NVStorageSaveData ofd_packets/00188491 [20:47:32]File name is /storage/ofd_packets/00188491 [20:47:32]Write 298 bytes [20:47:32]NVStorageSaveData done [20:47:32]OFDSenderStorePacket done [20:47:32]KKMCreateOFDPacket done [20:47:32]NVStorageSaveData kkm_last_timestamp [20:47:32]File name is /storage/kkm_last_timestamp [20:47:32]Write 4 bytes [20:47:32]NVStorageSaveData done [20:47:32]ExternCall_PrintAddStr [20:47:32]wPrintStart [20:47:32]Write to MH i2c: 01 00 00 C0 1A DA [20:47:32]Write i2c OK [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 07 00 [20:47:32]MH_I2C_Read... [20:47:32]Read from MH i2c: 01 07 00 C0 1A 00 00 00 00 00 FF 0F EF [20:47:32]RasterBufferAndPrint [20:47:32]line Счет N : (1)210549 [20:47:32]line ИНН: 02508201610067 [20:47:32]line Контрольно-Кассовый Чек [20:47:32]line ПРОДАЖА [20:47:32]line ТРК (МРК, ГНК) : 51 [20:47:32]line Товар: 2710194210 [20:47:32]line ДТ-К-5 [20:47:32]line 59.060 * 76.20 [20:47:32]line = 4500.37 [20:47:32]line НДС 12% НСП 1% [20:47:32]line > о реализуемом товаре [20:47:32]line ОКРУГЛЕНИЕ: -0.37 [20:47:32]line ИТОГО: 4500.00 [20:47:32]line Внесено: 4500.00 [20:47:32]line СДАЧА: 0.00 [20:47:32]line НСП 1% : 39.83 [20:47:32]line НДС 12% : 477.91 [20:47:32]line Наличными: 4500.00 [20:47:32]line Безнал.: 0.00 [20:47:32]line Место: АЗС № 86 "Партнер Нефть" [20:47:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:47:32]line СНО: Общий режим [20:47:32]line Чек 520 22.10.2024 20:47 [20:47:32]line Смена: 461 ФФД: 1.0 [20:47:32]line ЗНМ: 0300000155 [20:47:32]line РНМ: 0000000000100030 [20:47:32]line Версия ККМ: 001 [20:47:32]line ФМ: 0000000000965340 [20:47:32]line ФД: 188491 [20:47:32]line ФПД: 17203591575572 [20:47:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188491&fm=17203591575572&tin=02508201610067®Number=0000000000100030&sum=450000 [20:47:32]OFD Sender: Processing packet 188491 [packets to send 1062, broken 1061] [20:47:32]ProducePacketName [20:47:32]name=ofd_packets/00188491 [20:47:32]OFD Sender: To server: pG, [20:47:32]CommunicateWithHost lk.salyk.kg:30040 [20:47:32]ConnectInit lk.salyk.kg [20:47:32]written 0, free lines is 4095 [20:47:32]Connected sock=10 [20:47:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 16 5C 04 01 B2 8B 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 B4 E6 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 F5 DD 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 DD 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 0F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AF BA 00 00 00 00 07 04 06 00 D0 DD 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 02 00 00 F4 03 04 00 64 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E0 02 00 35 04 06 00 0F A5 85 F6 F8 14 C5 B3 06 F9 9D 05 4F 19 [20:47:33]Write to MH i2c: 01 00 00 EB 1A 05 [20:47:33]Write i2c OK [20:47:33]MH_I2C_Read... [20:47:33]Read from MH i2c: 01 [20:47:33]MH_I2C_Read... [20:47:33]Read from MH i2c: 01 07 00 [20:47:33]MH_I2C_Read... [20:47:33]Read from MH i2c: 01 07 00 EB 1A 00 00 00 00 00 5E 0C 76 [20:47:33]RasterBufferAndPrint [20:47:33]line [20:47:33]line [20:47:33]line [20:47:33]line [20:47:33]line [20:47:33]written 0, free lines is 3169 [20:47:33]MH_Cut [20:47:33]Write to MH i2c: D1 01 00 F2 1A 01 DE [20:47:33]Write i2c OK [20:47:33]MH_I2C_Read... [20:47:33]Read from MH i2c: D1 [20:47:33]MH_I2C_Read... [20:47:33]Read from MH i2c: D1 01 00 [20:47:33]MH_I2C_Read... [20:47:33]Read from MH i2c: D1 01 00 F2 1A 00 DD [20:47:33]Write to MH i2c: 01 00 00 F3 1A 0D [20:47:33]Write i2c OK [20:47:33]MH_I2C_Read... [20:47:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 11 47 00 8E C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4B E0 02 00 F4 03 04 00 50 B9 17 67 B6 04 01 00 00 AB 06 10 C1 15 BB 8B 9D [20:47:33]CommunicateWithHost err = 0 [20:47:33]CheckOFDResponse [20:47:33]1017 (14) - 77093643461234 [20:47:33]1041 (16) - 0000000000965340 [20:47:33]1040 (4) - 188491 [20:47:33]1012 (4) - 22.10.2024 14:40 [20:47:33]1206 (1) - 0 [20:47:33]OFD Sender: Remove packet 188491 [20:47:33]ProducePacketName [20:47:33]name=ofd_packets/00188491 [20:47:33]NVStorageDeleteData [20:47:33]OFD Sender: No OFD packet to send [20:47:34]*** Cut start [20:47:34]*** Partial cut [20:47:34]*** CUTSNS_PIN = 1 [20:47:34]*** CUTSNS_PIN = 0 [20:47:34]*** Brake cut motor [20:47:34]Read from MH i2c: 01 [20:47:34]MH_I2C_Read... [20:47:34]*** Stop cut motor [20:47:34]*** Cut end [20:47:34]Read from MH i2c: 01 07 00 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: 01 07 00 F3 1A 00 00 00 00 00 FF 0F 22 [20:47:34]process_action close_receipt done [20:47:34]requested_data is exist [20:47:34]produce_requested_data [20:47:34]requested_item fm.sn is exist - process it [20:47:34]wFMCommunicate request_size=4 [20:47:34]MH_SAM_APDU [20:47:34]CAPDU: 80 11 00 00 [20:47:34]Write to MH i2c: E2 08 00 F4 1A 80 11 00 00 00 00 00 00 88 [20:47:34]Write i2c OK [20:47:34]MH_I2C_Read... [20:47:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:47:34]Read from MH i2c: E2 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: E2 17 00 [20:47:34]MH_I2C_Read... [20:47:34]Read from MH i2c: E2 17 00 F4 1A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [20:47:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:47:34]wFMCommunicate OK [20:47:34]requested_item fd.num is exist - process it [20:47:34]SAM_PROTO_GetFieldsCounters [20:47:34]wFMCommunicate request_size=4 [20:47:34]MH_SAM_APDU [20:47:34]CAPDU: 80 13 00 00 [20:47:34]Write to MH i2c: E2 08 00 F5 1A 80 13 00 00 00 00 00 00 8B [20:47:34]Write i2c OK [20:47:34]MH_I2C_Read... [20:47:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:47:35]Read from MH i2c: E2 [20:47:35]MH_I2C_Read... [20:47:35]Read from MH i2c: E2 62 00 [20:47:35]MH_I2C_Read... [20:47:35]Read from MH i2c: E2 62 00 F5 1A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 08 02 00 00 5E 04 04 00 08 02 00 00 57 04 04 00 09 02 00 00 19 04 04 00 00 00 00 00 90 00 AB [20:47:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 08 02 00 00 5E 04 04 00 08 02 00 00 57 04 04 00 09 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:47:35]wFMCommunicate OK [20:47:35]SAM_PROTO_GetFieldsCounters done [20:47:35]requested_item shift.num is exist - process it [20:47:35]requested_item shift.opened is exist - process it [20:47:35]req_shift_opened [20:47:35]FM_GetShiftState [20:47:35]SAM_PROTO_GetShiftState [20:47:35]wFMCommunicate request_size=4 [20:47:35]MH_SAM_APDU [20:47:35]CAPDU: 80 13 01 00 [20:47:35]Write to MH i2c: E2 08 00 F6 1A 80 13 01 00 00 00 00 00 8D [20:47:35]Write i2c OK [20:47:35]MH_I2C_Read... [20:47:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:47:35]Read from MH i2c: E2 [20:47:35]MH_I2C_Read... [20:47:35]Read from MH i2c: E2 0E 00 [20:47:35]MH_I2C_Read... [20:47:35]Read from MH i2c: E2 0E 00 F6 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 82 [20:47:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:47:35]wFMCommunicate OK [20:47:35]SAM_PROTO_GetShiftState done [20:47:35]FM_GetShiftState done [20:47:35]req_shift_opened done [20:47:35]requested_item shift.open_date is exist - process it [20:47:35]req_shift_open_date [20:47:35]req_shift_open_date done [20:47:35]produce_requested_data done [20:47:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188491,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:47:35]process_action_free close_receipt [20:47:35]json_value_free [20:47:35]json_value_free done [20:47:35]process_json_proto returns [20:47:35]Send response to host [20:47:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188491,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:47:35]free response buf [20:47:35]execute_script done [20:47:35]execute_script returns [20:47:35]free content buf [20:47:35]Sock 9.Close socket [20:47:35]Sock 9.Thread stoped [20:47:38]OFD Sender: No OFD packet to send [20:47:43]OFD Sender: No OFD packet to send [20:47:48]OFD Sender: No OFD packet to send [20:47:53]OFD Sender: No OFD packet to send [20:47:58]OFD Sender: No OFD packet to send [20:48:03]OFD Sender: No OFD packet to send [20:48:08]OFD Sender: No OFD packet to send [20:48:13]OFD Sender: No OFD packet to send [20:48:18]OFD Sender: No OFD packet to send [20:48:23]OFD Sender: No OFD packet to send [20:48:28]OFD Sender: No OFD packet to send [20:48:33]OFD Sender: No OFD packet to send [20:48:38]OFD Sender: No OFD packet to send [20:48:44]OFD Sender: No OFD packet to send [20:48:49]OFD Sender: No OFD packet to send [20:48:54]OFD Sender: No OFD packet to send [20:48:59]OFD Sender: No OFD packet to send [20:49:03]accept exits with 7 [20:49:03]New connection [20:49:03]New thread 3066756452 created [20:49:03]Thread 3066613092 joined [20:49:03]Waiting for new connection... [20:49:03] Sock 7.Parse request [20:49:03]Sock 7.Check first char [20:49:03]Sock 7.First char is OK [20:49:03]request: POST /json_proto HTTP/1.0 [20:49:03]Method: POST [20:49:03]URL: /json_proto [20:49:03]Method is POST - this is cgi request [20:49:03]url: /json_proto [20:49:03]query_string will be loaded in cgi processing [20:49:03]execute_cgi json_proto POST (null) [20:49:03]execute_cgi path=json_proto method=POST [20:49:03]POST find Content-Length [20:49:03]Host: 172.17.42.131:8080 [20:49:03]Content-Length: 683 [20:49:03]Content-Type: application/json [20:49:03] [20:49:03]POST finish read [20:49:03]Found Content-Length = 683 [20:49:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [20:49:03]execute_script... [20:49: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)210552", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 9.070, "sum" : 700.20, "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" ] } } [20:49:03]POST & json_proto [20:49:03]process_json_proto [20:49:03]json parsed OK: [20:49:03]protocol is kg_v1.0 [20:49:03]action value=close_receipt [20:49:03]process_action close_receipt [20:49:03]cmd_close_receipt [20:49:03]MH_GetDate [20:49:03]Write to MH i2c: F0 00 00 F7 1A 00 [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 09 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: F0 09 00 F7 1A 00 C0 0F 18 67 A0 18 CA 66 3F [20:49:03]GetLastDocTimeStamp 1729630052 [20:49:03]current date 1729630144 [20:49:03]FM_GetShiftState [20:49:03]SAM_PROTO_GetShiftState [20:49:03]wFMCommunicate request_size=4 [20:49:03]MH_SAM_APDU [20:49:03]CAPDU: 80 13 01 00 [20:49:03]Write to MH i2c: E2 08 00 F8 1A 80 13 01 00 00 00 00 00 8F [20:49:03]Write i2c OK [20:49:03]MH_I2C_Read... [20:49:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:03]Read from MH i2c: E2 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 [20:49:03]MH_I2C_Read... [20:49:03]Read from MH i2c: E2 0E 00 F8 1A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [20:49:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:49:03]wFMCommunicate OK [20:49:03]SAM_PROTO_GetShiftState done [20:49:03]FM_GetShiftState done [20:49:03]opened in 1729556094 [20:49:03]opened+sec_in_day 1729642494 [20:49:03]quantity*price = 70020 [20:49:03]sum+1 = 70021 [20:49:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.36 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 521 22.10.2024 20:49 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188492 ФПД: 179722163471149 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204905&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188492&fm=179722163471149&tin=02508201610067®Number=0000000000100030&sum=70000 [20:49:04]StoreToDocumentArchive [20:49:04]shift 461 fd 188492 [20:49:04]save to /storage/0461/doc_00188492 [20:49:04]save last doc name /storage/0461/doc_00188492 to /storage/kkm_last_doc_name [20:49:04]save OK [20:49:04]Clear old archive folders... [20:49:04]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:49:04]tlvbuf is B6E78600 [20:49:04]SAM_PROTO_ClearQueue [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 09 00 00 [20:49:04]Write to MH i2c: E2 08 00 05 1B 80 09 00 00 00 00 00 00 92 [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 05 1B 00 90 00 94 [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]SAM_PROTO_ClearQueue done [20:49:04]KKMCreateOFDPacket [20:49:04]OFDProtocolAddRootSTLVToBuf [20:49:04]FM_MakeSignedData [20:49:04]FM_MakeSignedData [20:49:04]SAM_PROTO_SignData [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 0D 01 02 [20:49:04]Write to MH i2c: E2 08 00 06 1B 80 0D 01 02 00 00 00 00 9A [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 06 1B 00 90 00 95 [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]wFMCommunicate request_size=255 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 09 02 00 00 F4 03 04 00 C1 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E0 02 [20:49:04]Write to MH i2c: E2 02 01 07 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 09 02 00 00 F4 03 04 00 C1 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E0 02 00 00 73 [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 07 1B 00 90 00 96 [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]wFMCommunicate request_size=16 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 A3 74 D3 B6 43 2D [20:49:04]Write to MH i2c: E2 13 00 08 1B 80 0D 02 02 0B 00 00 35 04 06 00 A3 74 D3 B6 43 2D 00 00 02 [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:49:04]Read from MH i2c: E2 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 [20:49:04]MH_I2C_Read... [20:49:04]Read from MH i2c: E2 03 00 08 1B 00 90 00 97 [20:49:04]RAPDU: 90 00 [20:49:04]wFMCommunicate OK [20:49:04]wFMCommunicate request_size=4 [20:49:04]MH_SAM_APDU [20:49:04]CAPDU: 80 0D 03 02 [20:49:04]Write to MH i2c: E2 08 00 09 1B 80 0D 03 02 00 00 00 00 9F [20:49:04]Write i2c OK [20:49:04]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 0B 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 0B 00 09 1B 00 69 5D 4F 7A 74 A1 71 4C 90 00 01 [20:49:05]RAPDU: 69 5D 4F 7A 74 A1 71 4C 90 00 [20:49:05]wFMCommunicate OK [20:49:05]SAM_PROTO_SignData done [20:49:05]FM_MakeSignedData done [20:49:05]CreateOFDProtocolMessage [20:49:05]wFMCommunicate request_size=4 [20:49:05]MH_SAM_APDU [20:49:05]CAPDU: 80 11 00 00 [20:49:05]Write to MH i2c: E2 08 00 0A 1B 80 11 00 00 00 00 00 00 9F [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:05]Read from MH i2c: E2 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 17 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: E2 17 00 0A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [20:49:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:49:05]wFMCommunicate OK [20:49:05]CreateOFDProtocolMessage done [20:49:05]OFDSenderStorePacket 188492 [20:49:05]StoreOFDPacket docnum=188492 [20:49:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 97 70 0D 01 1B FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 09 02 00 00 F4 03 04 00 C1 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E0 02 00 35 04 06 00 A3 74 D3 B6 43 2D 69 5D 4F 7A 74 A1 71 4C [20:49:05]CheckFolder [20:49:05]dirname=/storage/ofd_packets [20:49:05]CheckFolder done [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00188492 [20:49:05]NVStorageSaveData ofd_packets/00188492 [20:49:05]File name is /storage/ofd_packets/00188492 [20:49:05]Write 307 bytes [20:49:05]NVStorageSaveData done [20:49:05]OFDSenderStorePacket done [20:49:05]KKMCreateOFDPacket done [20:49:05]NVStorageSaveData kkm_last_timestamp [20:49:05]File name is /storage/kkm_last_timestamp [20:49:05]Write 4 bytes [20:49:05]NVStorageSaveData done [20:49:05]ExternCall_PrintAddStr [20:49:05]wPrintStart [20:49:05]Write to MH i2c: 01 00 00 0B 1B 26 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 0B 1B 00 00 00 00 00 FF 0F 3B [20:49:05]RasterBufferAndPrint [20:49:05]line Счет N : (1)210552 [20:49:05]line ИНН: 02508201610067 [20:49:05]line Контрольно-Кассовый Чек [20:49:05]line ПРОДАЖА [20:49:05]line ТРК (МРК, ГНК) : 31 [20:49:05]line Товар: 2710194210 [20:49:05]line D-ENERGY ДТ-К-5 [20:49:05]line 9.070 * 77.20 [20:49:05]line = 700.20 [20:49:05]line НДС 12% НСП 1% [20:49:05]line > о реализуемом товаре [20:49:05]line ОКРУГЛЕНИЕ: -0.20 [20:49:05]line ИТОГО: 700.00 [20:49:05]line Внесено: 700.00 [20:49:05]line СДАЧА: 0.00 [20:49:05]line НСП 1% : 6.20 [20:49:05]line НДС 12% : 74.36 [20:49:05]line Наличными: 700.00 [20:49:05]line Безнал.: 0.00 [20:49:05]line Место: АЗС № 86 "Партнер Нефть" [20:49:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:49:05]line СНО: Общий режим [20:49:05]line Чек 521 22.10.2024 20:49 [20:49:05]line Смена: 461 ФФД: 1.0 [20:49:05]line ЗНМ: 0300000155 [20:49:05]line РНМ: 0000000000100030 [20:49:05]line Версия ККМ: 001 [20:49:05]line ФМ: 0000000000965340 [20:49:05]line ФД: 188492 [20:49:05]line ФПД: 179722163471149 [20:49:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T204905&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188492&fm=179722163471149&tin=02508201610067®Number=0000000000100030&sum=70000 [20:49:05]written 0, free lines is 4095 [20:49:05]OFD Sender: Processing packet 188492 [packets to send 1062, broken 1061] [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00188492 [20:49:05]OFD Sender: To server: pG, [20:49:05]CommunicateWithHost lk.salyk.kg:30040 [20:49:05]ConnectInit lk.salyk.kg [20:49:05]Connected sock=10 [20:49:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 97 70 0D 01 1B FC 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6E 23 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 84 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 0C 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 09 02 00 00 F4 03 04 00 C1 0F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E0 02 00 35 04 06 00 A3 74 D3 B6 43 2D 69 5D 4F 7A 74 A1 71 4C [20:49:05]Write to MH i2c: 01 00 00 36 1B 51 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: 01 07 00 36 1B 00 00 00 00 00 5C 0C C0 [20:49:05]RasterBufferAndPrint [20:49:05]line [20:49:05]line [20:49:05]line [20:49:05]line [20:49:05]line [20:49:05]written 0, free lines is 3167 [20:49:05]MH_Cut [20:49:05]Write to MH i2c: D1 01 00 3D 1B 01 2A [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: D1 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: D1 01 00 [20:49:05]MH_I2C_Read... [20:49:05]Read from MH i2c: D1 01 00 3D 1B 00 29 [20:49:05]Write to MH i2c: 01 00 00 3E 1B 59 [20:49:05]Write i2c OK [20:49:05]MH_I2C_Read... [20:49:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 65 47 00 83 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4C E0 02 00 F4 03 04 00 AD B9 17 67 B6 04 01 00 00 58 A6 D1 AA 15 1A 39 06 [20:49:05]CommunicateWithHost err = 0 [20:49:05]CheckOFDResponse [20:49:05]1017 (14) - 77093643461234 [20:49:05]1041 (16) - 0000000000965340 [20:49:05]1040 (4) - 188492 [20:49:05]1012 (4) - 22.10.2024 14:41 [20:49:05]1206 (1) - 0 [20:49:05]OFD Sender: Remove packet 188492 [20:49:05]ProducePacketName [20:49:05]name=ofd_packets/00188492 [20:49:05]NVStorageDeleteData [20:49:06]OFD Sender: No OFD packet to send [20:49:06]*** Cut start [20:49:06]*** Partial cut [20:49:06]*** CUTSNS_PIN = 1 [20:49:06]*** CUTSNS_PIN = 0 [20:49:07]*** Brake cut motor [20:49:07]Read from MH i2c: 01 [20:49:07]MH_I2C_Read... [20:49:07]*** Stop cut motor [20:49:07]*** Cut end [20:49:07]Read from MH i2c: 01 07 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: 01 07 00 3E 1B 00 00 00 00 00 FF 0F 6E [20:49:07]process_action close_receipt done [20:49:07]requested_data is exist [20:49:07]produce_requested_data [20:49:07]requested_item fm.sn is exist - process it [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 11 00 00 [20:49:07]Write to MH i2c: E2 08 00 3F 1B 80 11 00 00 00 00 00 00 D4 [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 17 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 17 00 3F 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 22 [20:49:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:49:07]wFMCommunicate OK [20:49:07]requested_item fd.num is exist - process it [20:49:07]SAM_PROTO_GetFieldsCounters [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 00 00 [20:49:07]Write to MH i2c: E2 08 00 40 1B 80 13 00 00 00 00 00 00 D7 [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 62 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 62 00 40 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 09 02 00 00 5E 04 04 00 09 02 00 00 57 04 04 00 0A 02 00 00 19 04 04 00 00 00 00 00 90 00 FB [20:49:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 09 02 00 00 5E 04 04 00 09 02 00 00 57 04 04 00 0A 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetFieldsCounters done [20:49:07]requested_item shift.num is exist - process it [20:49:07]requested_item shift.opened is exist - process it [20:49:07]req_shift_opened [20:49:07]FM_GetShiftState [20:49:07]SAM_PROTO_GetShiftState [20:49:07]wFMCommunicate request_size=4 [20:49:07]MH_SAM_APDU [20:49:07]CAPDU: 80 13 01 00 [20:49:07]Write to MH i2c: E2 08 00 41 1B 80 13 01 00 00 00 00 00 D9 [20:49:07]Write i2c OK [20:49:07]MH_I2C_Read... [20:49:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:49:07]Read from MH i2c: E2 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 [20:49:07]MH_I2C_Read... [20:49:07]Read from MH i2c: E2 0E 00 41 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CE [20:49:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:49:07]wFMCommunicate OK [20:49:07]SAM_PROTO_GetShiftState done [20:49:07]FM_GetShiftState done [20:49:07]req_shift_opened done [20:49:07]requested_item shift.open_date is exist - process it [20:49:07]req_shift_open_date [20:49:07]req_shift_open_date done [20:49:07]produce_requested_data done [20:49:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188492,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:49:07]process_action_free close_receipt [20:49:07]json_value_free [20:49:07]json_value_free done [20:49:07]process_json_proto returns [20:49:07]Send response to host [20:49:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188492,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:49:07]free response buf [20:49:07]execute_script done [20:49:07]execute_script returns [20:49:07]free content buf [20:49:07]Sock 7.Close socket [20:49:07]Sock 7.Thread stoped [20:49:11]OFD Sender: No OFD packet to send [20:49:16]OFD Sender: No OFD packet to send [20:49:21]OFD Sender: No OFD packet to send [20:49:26]OFD Sender: No OFD packet to send [20:49:31]OFD Sender: No OFD packet to send [20:49:36]OFD Sender: No OFD packet to send [20:49:41]OFD Sender: No OFD packet to send [20:49:46]OFD Sender: No OFD packet to send [20:49:51]OFD Sender: No OFD packet to send [20:49:56]OFD Sender: No OFD packet to send [20:50:01]OFD Sender: No OFD packet to send [20:50:06]OFD Sender: No OFD packet to send [20:50:11]OFD Sender: No OFD packet to send [20:50:16]OFD Sender: No OFD packet to send [20:50:21]OFD Sender: No OFD packet to send [20:50:26]OFD Sender: No OFD packet to send [20:50:31]OFD Sender: No OFD packet to send [20:50:32]accept exits with 9 [20:50:32]New connection [20:50:32]New thread 3066613092 created [20:50:32]Thread 3066756452 joined [20:50:32]Waiting for new connection... [20:50:32] Sock 9.Parse request [20:50:32]Sock 9.Check first char [20:50:32]Sock 9.First char is OK [20:50:32]request: POST /json_proto HTTP/1.0 [20:50:32]Method: POST [20:50:32]URL: /json_proto [20:50:32]Method is POST - this is cgi request [20:50:32]url: /json_proto [20:50:32]query_string will be loaded in cgi processing [20:50:32]execute_cgi json_proto POST (null) [20:50:32]execute_cgi path=json_proto method=POST [20:50:32]POST find Content-Length [20:50:32]Host: 172.17.42.131:8080 [20:50:32]Content-Length: 682 [20:50:32]Content-Type: application/json [20:50:32] [20:50:32]POST finish read [20:50:32]Found Content-Length = 682 [20:50:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:32]execute_script... [20:50: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)210553", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:50:32]POST & json_proto [20:50:32]process_json_proto [20:50:32]json parsed OK: [20:50:32]protocol is kg_v1.0 [20:50:32]action value=close_receipt [20:50:32]process_action close_receipt [20:50:32]cmd_close_receipt [20:50:32]MH_GetDate [20:50:32]Write to MH i2c: F0 00 00 42 1B 4C [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: F0 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: F0 09 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: F0 09 00 42 1B 00 1A 10 18 67 A0 18 CA 66 E6 [20:50:32]GetLastDocTimeStamp 1729630145 [20:50:32]current date 1729630234 [20:50:32]FM_GetShiftState [20:50:32]SAM_PROTO_GetShiftState [20:50:32]wFMCommunicate request_size=4 [20:50:32]MH_SAM_APDU [20:50:32]CAPDU: 80 13 01 00 [20:50:32]Write to MH i2c: E2 08 00 43 1B 80 13 01 00 00 00 00 00 DB [20:50:32]Write i2c OK [20:50:32]MH_I2C_Read... [20:50:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:32]Read from MH i2c: E2 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 0E 00 [20:50:32]MH_I2C_Read... [20:50:32]Read from MH i2c: E2 0E 00 43 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D0 [20:50:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:50:32]wFMCommunicate OK [20:50:32]SAM_PROTO_GetShiftState done [20:50:32]FM_GetShiftState done [20:50:32]opened in 1729556094 [20:50:32]opened+sec_in_day 1729642494 [20:50:32]quantity*price = 100015 [20:50:32]sum+1 = 100017 [20:50:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 522 22.10.2024 20:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188493 ФПД: 203239966394718 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205034&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188493&fm=203239966394718&tin=02508201610067®Number=0000000000100030&sum=100000 [20:50:33]StoreToDocumentArchive [20:50:33]shift 461 fd 188493 [20:50:33]save to /storage/0461/doc_00188493 [20:50:33]save last doc name /storage/0461/doc_00188493 to /storage/kkm_last_doc_name [20:50:33]save OK [20:50:33]Clear old archive folders... [20:50:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:50:33]tlvbuf is 009893E0 [20:50:33]SAM_PROTO_ClearQueue [20:50:33]wFMCommunicate request_size=4 [20:50:33]MH_SAM_APDU [20:50:33]CAPDU: 80 09 00 00 [20:50:33]Write to MH i2c: E2 08 00 50 1B 80 09 00 00 00 00 00 00 DD [20:50:33]Write i2c OK [20:50:33]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 50 1B 00 90 00 DF [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]SAM_PROTO_ClearQueue done [20:50:34]KKMCreateOFDPacket [20:50:34]OFDProtocolAddRootSTLVToBuf [20:50:34]FM_MakeSignedData [20:50:34]FM_MakeSignedData [20:50:34]SAM_PROTO_SignData [20:50:34]wFMCommunicate request_size=4 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 0D 01 02 [20:50:34]Write to MH i2c: E2 08 00 51 1B 80 0D 01 02 00 00 00 00 E5 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 51 1B 00 90 00 E0 [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]wFMCommunicate request_size=255 [20:50:34]MH_SAM_APDU [20:50: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 1A 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E0 02 00 35 04 06 00 B8 [20:50:34]Write to MH i2c: E2 02 01 52 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 1A 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E0 02 00 35 04 06 00 B8 00 00 BC [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 52 1B 00 90 00 E1 [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]wFMCommunicate request_size=10 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 0D 02 02 05 D8 7E 00 49 5E [20:50:34]Write to MH i2c: E2 0D 00 53 1B 80 0D 02 02 05 00 D8 7E 00 49 5E 00 00 EF [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 03 00 53 1B 00 90 00 E2 [20:50:34]RAPDU: 90 00 [20:50:34]wFMCommunicate OK [20:50:34]wFMCommunicate request_size=4 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 0D 03 02 [20:50:34]Write to MH i2c: E2 08 00 54 1B 80 0D 03 02 00 00 00 00 EA [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 0B 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 0B 00 54 1B 00 2F 89 24 0E 90 1C C9 31 90 00 7B [20:50:34]RAPDU: 2F 89 24 0E 90 1C C9 31 90 00 [20:50:34]wFMCommunicate OK [20:50:34]SAM_PROTO_SignData done [20:50:34]FM_MakeSignedData done [20:50:34]CreateOFDProtocolMessage [20:50:34]wFMCommunicate request_size=4 [20:50:34]MH_SAM_APDU [20:50:34]CAPDU: 80 11 00 00 [20:50:34]Write to MH i2c: E2 08 00 55 1B 80 11 00 00 00 00 00 00 EA [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:34]Read from MH i2c: E2 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 17 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: E2 17 00 55 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [20:50:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:50:34]wFMCommunicate OK [20:50:34]CreateOFDProtocolMessage done [20:50:34]OFDSenderStorePacket 188493 [20:50:34]StoreOFDPacket docnum=188493 [20:50:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 43 FA 07 01 51 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 1A 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E0 02 00 35 04 06 00 B8 D8 7E 00 49 5E 2F 89 24 0E 90 1C C9 31 [20:50:34]CheckFolder [20:50:34]dirname=/storage/ofd_packets [20:50:34]CheckFolder done [20:50:34]ProducePacketName [20:50:34]name=ofd_packets/00188493 [20:50:34]NVStorageSaveData ofd_packets/00188493 [20:50:34]File name is /storage/ofd_packets/00188493 [20:50:34]Write 301 bytes [20:50:34]NVStorageSaveData done [20:50:34]OFDSenderStorePacket done [20:50:34]KKMCreateOFDPacket done [20:50:34]NVStorageSaveData kkm_last_timestamp [20:50:34]File name is /storage/kkm_last_timestamp [20:50:34]Write 4 bytes [20:50:34]NVStorageSaveData done [20:50:34]ExternCall_PrintAddStr [20:50:34]wPrintStart [20:50:34]Write to MH i2c: 01 00 00 56 1B 71 [20:50:34]Write i2c OK [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 07 00 [20:50:34]MH_I2C_Read... [20:50:34]Read from MH i2c: 01 07 00 56 1B 00 00 00 00 00 FF 0F 86 [20:50:34]RasterBufferAndPrint [20:50:34]line Счет N : (1)210553 [20:50:34]line ИНН: 02508201610067 [20:50:34]line Контрольно-Кассовый Чек [20:50:34]line ПРОДАЖА [20:50:34]line ТРК (МРК, ГНК) : 42 [20:50:34]line Товар: 2710124130 [20:50:34]line Аи-92-К-3 [20:50:34]line 14.950 * 66.90 [20:50:34]line = 1000.16 [20:50:34]line НДС 12% НСП 1% [20:50:34]line > о реализуемом товаре [20:50:34]line ОКРУГЛЕНИЕ: -0.16 [20:50:34]line ИТОГО: 1000.00 [20:50:34]line Внесено: 1000.00 [20:50:34]line СДАЧА: 0.00 [20:50:34]line НСП 1% : 8.85 [20:50:34]line НДС 12% : 106.21 [20:50:34]line Наличными: 1000.00 [20:50:34]line Безнал.: 0.00 [20:50:34]line Место: АЗС № 86 "Партнер Нефть" [20:50:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:50:34]line СНО: Общий режим [20:50:34]line Чек 522 22.10.2024 20:50 [20:50:34]line Смена: 461 ФФД: 1.0 [20:50:34]line ЗНМ: 0300000155 [20:50:34]line РНМ: 0000000000100030 [20:50:34]line Версия ККМ: 001 [20:50:34]line ФМ: 0000000000965340 [20:50:34]line ФД: 188493 [20:50:34]line ФПД: 203239966394718 [20:50:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205034&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188493&fm=203239966394718&tin=02508201610067®Number=0000000000100030&sum=100000 [20:50:34]written 0, free lines is 4095 [20:50:34]OFD Sender: Processing packet 188493 [packets to send 1062, broken 1061] [20:50:34]ProducePacketName [20:50:34]name=ofd_packets/00188493 [20:50:34]OFD Sender: To server: pG, [20:50:34]CommunicateWithHost lk.salyk.kg:30040 [20:50:34]ConnectInit lk.salyk.kg [20:50:34]Connected sock=10 [20:50:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 43 FA 07 01 51 5F 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 02 00 00 F4 03 04 00 1A 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4D E0 02 00 35 04 06 00 B8 D8 7E 00 49 5E 2F 89 24 0E 90 1C C9 31 [20:50:35]Write to MH i2c: 01 00 00 81 1B 9C [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: 01 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: 01 07 00 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: 01 07 00 81 1B 00 00 00 00 00 6A 0C 19 [20:50:35]RasterBufferAndPrint [20:50:35]line [20:50:35]line [20:50:35]line [20:50:35]line [20:50:35]line [20:50:35]written 0, free lines is 3181 [20:50:35]MH_Cut [20:50:35]Write to MH i2c: D1 01 00 88 1B 01 75 [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: D1 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: D1 01 00 [20:50:35]MH_I2C_Read... [20:50:35]Read from MH i2c: D1 01 00 88 1B 00 74 [20:50:35]Write to MH i2c: 01 00 00 89 1B A4 [20:50:35]Write i2c OK [20:50:35]MH_I2C_Read... [20:50:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 54 C3 47 00 26 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 39 36 35 33 34 30 10 04 04 00 4D E0 02 00 F4 03 04 00 06 BA 17 67 B6 04 01 00 00 FF 91 E0 BE 5F 52 F8 BB [20:50:35]CommunicateWithHost err = 0 [20:50:35]CheckOFDResponse [20:50:35]1017 (14) - 77093643461234 [20:50:35]1041 (16) - 0000000000965340 [20:50:35]1040 (4) - 188493 [20:50:35]1012 (4) - 22.10.2024 14:43 [20:50:35]1206 (1) - 0 [20:50:35]OFD Sender: Remove packet 188493 [20:50:35]ProducePacketName [20:50:35]name=ofd_packets/00188493 [20:50:35]NVStorageDeleteData [20:50:35]OFD Sender: No OFD packet to send [20:50:36]*** Cut start [20:50:36]*** Partial cut [20:50:36]*** CUTSNS_PIN = 1 [20:50:36]*** CUTSNS_PIN = 0 [20:50:36]*** Brake cut motor [20:50:36]Read from MH i2c: 01 [20:50:36]MH_I2C_Read... [20:50:36]*** Stop cut motor [20:50:36]*** Cut end [20:50:36]Read from MH i2c: 01 07 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: 01 07 00 89 1B 00 00 00 00 00 FF 0F B9 [20:50:36]process_action close_receipt done [20:50:36]requested_data is exist [20:50:36]produce_requested_data [20:50:36]requested_item fm.sn is exist - process it [20:50:36]wFMCommunicate request_size=4 [20:50:36]MH_SAM_APDU [20:50:36]CAPDU: 80 11 00 00 [20:50:36]Write to MH i2c: E2 08 00 8A 1B 80 11 00 00 00 00 00 00 1F [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 [20:50:36]MH_I2C_Read... [20:50:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:50:36]Read from MH i2c: E2 17 00 [20:50:36]MH_I2C_Read... [20:50:36]Read from MH i2c: E2 17 00 8A 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6D [20:50:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:50:36]wFMCommunicate OK [20:50:36]requested_item fd.num is exist - process it [20:50:36]SAM_PROTO_GetFieldsCounters [20:50:36]wFMCommunicate request_size=4 [20:50:36]MH_SAM_APDU [20:50:36]CAPDU: 80 13 00 00 [20:50:36]Write to MH i2c: E2 08 00 8B 1B 80 13 00 00 00 00 00 00 22 [20:50:36]Write i2c OK [20:50:36]MH_I2C_Read... [20:50:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:50:37]Read from MH i2c: E2 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 62 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 62 00 8B 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0A 02 00 00 5E 04 04 00 0A 02 00 00 57 04 04 00 0B 02 00 00 19 04 04 00 00 00 00 00 90 00 4A [20:50:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0A 02 00 00 5E 04 04 00 0A 02 00 00 57 04 04 00 0B 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:50:37]wFMCommunicate OK [20:50:37]SAM_PROTO_GetFieldsCounters done [20:50:37]requested_item shift.num is exist - process it [20:50:37]requested_item shift.opened is exist - process it [20:50:37]req_shift_opened [20:50:37]FM_GetShiftState [20:50:37]SAM_PROTO_GetShiftState [20:50:37]wFMCommunicate request_size=4 [20:50:37]MH_SAM_APDU [20:50:37]CAPDU: 80 13 01 00 [20:50:37]Write to MH i2c: E2 08 00 8C 1B 80 13 01 00 00 00 00 00 24 [20:50:37]Write i2c OK [20:50:37]MH_I2C_Read... [20:50:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:50:37]Read from MH i2c: E2 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 0E 00 [20:50:37]MH_I2C_Read... [20:50:37]Read from MH i2c: E2 0E 00 8C 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 19 [20:50:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:50:37]wFMCommunicate OK [20:50:37]SAM_PROTO_GetShiftState done [20:50:37]FM_GetShiftState done [20:50:37]req_shift_opened done [20:50:37]requested_item shift.open_date is exist - process it [20:50:37]req_shift_open_date [20:50:37]req_shift_open_date done [20:50:37]produce_requested_data done [20:50:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188493,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:50:37]process_action_free close_receipt [20:50:37]json_value_free [20:50:37]json_value_free done [20:50:37]process_json_proto returns [20:50:37]Send response to host [20:50:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188493,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:50:37]free response buf [20:50:37]execute_script done [20:50:37]execute_script returns [20:50:37]free content buf [20:50:37]Sock 9.Close socket [20:50:37]Sock 9.Thread stoped [20:50:40]OFD Sender: No OFD packet to send [20:50:45]OFD Sender: No OFD packet to send [20:50:50]OFD Sender: No OFD packet to send [20:50:55]OFD Sender: No OFD packet to send [20:51:00]OFD Sender: No OFD packet to send [20:51:05]OFD Sender: No OFD packet to send [20:51:10]OFD Sender: No OFD packet to send [20:51:15]OFD Sender: No OFD packet to send [20:51:20]OFD Sender: No OFD packet to send [20:51:25]OFD Sender: No OFD packet to send [20:51:30]OFD Sender: No OFD packet to send [20:51:35]OFD Sender: No OFD packet to send [20:51:40]OFD Sender: No OFD packet to send [20:51:46]OFD Sender: No OFD packet to send [20:51:51]OFD Sender: No OFD packet to send [20:51:56]OFD Sender: No OFD packet to send [20:52:01]OFD Sender: No OFD packet to send [20:52:06]OFD Sender: No OFD packet to send [20:52:11]OFD Sender: No OFD packet to send [20:52:16]OFD Sender: No OFD packet to send [20:52:21]OFD Sender: No OFD packet to send [20:52:26]OFD Sender: No OFD packet to send [20:52:31]OFD Sender: No OFD packet to send [20:52:36]OFD Sender: No OFD packet to send [20:52:41]OFD Sender: No OFD packet to send [20:52:46]OFD Sender: No OFD packet to send [20:52:51]OFD Sender: No OFD packet to send [20:52:56]OFD Sender: No OFD packet to send [20:53:01]OFD Sender: No OFD packet to send [20:53:06]OFD Sender: No OFD packet to send [20:53:11]OFD Sender: No OFD packet to send [20:53:16]OFD Sender: No OFD packet to send [20:53:21]OFD Sender: No OFD packet to send [20:53:26]OFD Sender: No OFD packet to send [20:53:31]OFD Sender: No OFD packet to send [20:53:36]OFD Sender: No OFD packet to send [20:53:41]OFD Sender: No OFD packet to send [20:53:46]OFD Sender: No OFD packet to send [20:53:51]OFD Sender: No OFD packet to send [20:53:56]OFD Sender: No OFD packet to send [20:54:01]OFD Sender: No OFD packet to send [20:54:06]OFD Sender: No OFD packet to send [20:54:10]accept exits with 7 [20:54:10]New connection [20:54:10]New thread 3066756452 created [20:54:10]Thread 3066613092 joined [20:54:10]Waiting for new connection... [20:54:10] Sock 7.Parse request [20:54:10]Sock 7.Check first char [20:54:10]Sock 7.First char is OK [20:54:10]request: POST /json_proto HTTP/1.0 [20:54:10]Method: POST [20:54:10]URL: /json_proto [20:54:10]Method is POST - this is cgi request [20:54:10]url: /json_proto [20:54:10]query_string will be loaded in cgi processing [20:54:10]execute_cgi json_proto POST (null) [20:54:10]execute_cgi path=json_proto method=POST [20:54:10]POST find Content-Length [20:54:10]Host: 172.17.42.131:8080 [20:54:10]Content-Length: 775 [20:54:10]Content-Type: application/json [20:54:10] [20:54:10]POST finish read [20:54:10]Found Content-Length = 775 [20:54:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:10]execute_script... [20:54:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210554", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:54:10]POST & json_proto [20:54:10]process_json_proto [20:54:10]json parsed OK: [20:54:10]protocol is kg_v1.0 [20:54:10]action value=close_receipt [20:54:10]process_action close_receipt [20:54:10]cmd_close_receipt [20:54:10]MH_GetDate [20:54:10]Write to MH i2c: F0 00 00 8D 1B 97 [20:54:10]Write i2c OK [20:54:10]MH_I2C_Read... [20:54:10]Read from MH i2c: F0 [20:54:10]MH_I2C_Read... [20:54:10]Read from MH i2c: F0 09 00 [20:54:10]MH_I2C_Read... [20:54:10]Read from MH i2c: F0 09 00 8D 1B 00 F3 10 18 67 A0 18 CA 66 0A [20:54:10]GetLastDocTimeStamp 1729630234 [20:54:10]current date 1729630451 [20:54:10]FM_GetShiftState [20:54:10]SAM_PROTO_GetShiftState [20:54:10]wFMCommunicate request_size=4 [20:54:10]MH_SAM_APDU [20:54:10]CAPDU: 80 13 01 00 [20:54:10]Write to MH i2c: E2 08 00 8E 1B 80 13 01 00 00 00 00 00 26 [20:54:10]Write i2c OK [20:54:10]MH_I2C_Read... [20:54:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:10]Read from MH i2c: E2 [20:54:10]MH_I2C_Read... [20:54:10]Read from MH i2c: E2 0E 00 [20:54:10]MH_I2C_Read... [20:54:10]Read from MH i2c: E2 0E 00 8E 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1B [20:54:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:54:10]wFMCommunicate OK [20:54:10]SAM_PROTO_GetShiftState done [20:54:10]FM_GetShiftState done [20:54:10]opened in 1729556094 [20:54:10]opened+sec_in_day 1729642494 [20:54:10]quantity*price = 100051 [20:54:10]sum+1 = 100052 [20:54:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 523 22.10.2024 20:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188494 ФПД: 229206931970392 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205412&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188494&fm=229206931970392&tin=02508201610067®Number=0000000000100030&sum=100051 [20:54:11]StoreToDocumentArchive [20:54:11]shift 461 fd 188494 [20:54:11]save to /storage/0461/doc_00188494 [20:54:11]save last doc name /storage/0461/doc_00188494 to /storage/kkm_last_doc_name [20:54:11]save OK [20:54:11]Clear old archive folders... [20:54:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [20:54:11]tlvbuf is B6EAA350 [20:54:11]SAM_PROTO_ClearQueue [20:54:11]wFMCommunicate request_size=4 [20:54:11]MH_SAM_APDU [20:54:11]CAPDU: 80 09 00 00 [20:54:11]Write to MH i2c: E2 08 00 9B 1B 80 09 00 00 00 00 00 00 28 [20:54:11]Write i2c OK [20:54:11]MH_I2C_Read... [20:54:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:54:11]Read from MH i2c: E2 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 9B 1B 00 90 00 2A [20:54:11]RAPDU: 90 00 [20:54:11]wFMCommunicate OK [20:54:11]SAM_PROTO_ClearQueue done [20:54:11]KKMCreateOFDPacket [20:54:11]OFDProtocolAddRootSTLVToBuf [20:54:11]FM_MakeSignedData [20:54:11]FM_MakeSignedData [20:54:11]SAM_PROTO_SignData [20:54:11]wFMCommunicate request_size=4 [20:54:11]MH_SAM_APDU [20:54:11]CAPDU: 80 0D 01 02 [20:54:11]Write to MH i2c: E2 08 00 9C 1B 80 0D 01 02 00 00 00 00 30 [20:54:11]Write i2c OK [20:54:11]MH_I2C_Read... [20:54:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:54:11]Read from MH i2c: E2 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 9C 1B 00 90 00 2B [20:54:11]RAPDU: 90 00 [20:54:11]wFMCommunicate OK [20:54:11]wFMCommunicate request_size=255 [20:54:11]MH_SAM_APDU [20:54:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 F4 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E0 02 [20:54:11]Write to MH i2c: E2 02 01 9D 1B 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 F4 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E0 02 00 00 81 [20:54:11]Write i2c OK [20:54:11]MH_I2C_Read... [20:54:11]OFD Sender: No OFD packet to send [20:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:11]Read from MH i2c: E2 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 9D 1B 00 90 00 2C [20:54:11]RAPDU: 90 00 [20:54:11]wFMCommunicate OK [20:54:11]wFMCommunicate request_size=16 [20:54:11]MH_SAM_APDU [20:54:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D0 76 65 C2 99 58 [20:54:11]Write to MH i2c: E2 13 00 9E 1B 80 0D 02 02 0B 00 00 35 04 06 00 D0 76 65 C2 99 58 00 00 E6 [20:54:11]Write i2c OK [20:54:11]MH_I2C_Read... [20:54:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:54:11]Read from MH i2c: E2 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 03 00 9E 1B 00 90 00 2D [20:54:11]RAPDU: 90 00 [20:54:11]wFMCommunicate OK [20:54:11]wFMCommunicate request_size=4 [20:54:11]MH_SAM_APDU [20:54:11]CAPDU: 80 0D 03 02 [20:54:11]Write to MH i2c: E2 08 00 9F 1B 80 0D 03 02 00 00 00 00 35 [20:54:11]Write i2c OK [20:54:11]MH_I2C_Read... [20:54:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:54:11]Read from MH i2c: E2 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 0B 00 [20:54:11]MH_I2C_Read... [20:54:11]Read from MH i2c: E2 0B 00 9F 1B 00 6F AC A5 FB 9E 41 DD FC 90 00 A9 [20:54:11]RAPDU: 6F AC A5 FB 9E 41 DD FC 90 00 [20:54:11]wFMCommunicate OK [20:54:11]SAM_PROTO_SignData done [20:54:11]FM_MakeSignedData done [20:54:11]CreateOFDProtocolMessage [20:54:11]wFMCommunicate request_size=4 [20:54:11]MH_SAM_APDU [20:54:11]CAPDU: 80 11 00 00 [20:54:11]Write to MH i2c: E2 08 00 A0 1B 80 11 00 00 00 00 00 00 35 [20:54:11]Write i2c OK [20:54:11]MH_I2C_Read... [20:54:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:12]Read from MH i2c: E2 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: E2 17 00 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: E2 17 00 A0 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [20:54:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:54:12]wFMCommunicate OK [20:54:12]CreateOFDProtocolMessage done [20:54:12]OFDSenderStorePacket 188494 [20:54:12]StoreOFDPacket docnum=188494 [20:54:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 3C 0D 01 3F 5E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 F4 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E0 02 00 35 04 06 00 D0 76 65 C2 99 58 6F AC A5 FB 9E 41 DD FC [20:54:12]CheckFolder [20:54:12]dirname=/storage/ofd_packets [20:54:12]CheckFolder done [20:54:12]ProducePacketName [20:54:12]name=ofd_packets/00188494 [20:54:12]NVStorageSaveData ofd_packets/00188494 [20:54:12]File name is /storage/ofd_packets/00188494 [20:54:12]Write 307 bytes [20:54:12]NVStorageSaveData done [20:54:12]OFDSenderStorePacket done [20:54:12]KKMCreateOFDPacket done [20:54:12]NVStorageSaveData kkm_last_timestamp [20:54:12]File name is /storage/kkm_last_timestamp [20:54:12]Write 4 bytes [20:54:12]NVStorageSaveData done [20:54:12]ExternCall_PrintAddStr [20:54:12]wPrintStart [20:54:12]Write to MH i2c: 01 00 00 A1 1B BC [20:54:12]Write i2c OK [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: 01 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: 01 07 00 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: 01 07 00 A1 1B 00 00 00 00 00 FF 0F D1 [20:54:12]RasterBufferAndPrint [20:54:12]line Счет N : (1)210554 [20:54:12]line ИНН: 02508201610067 [20:54:12]line Контрольно-Кассовый Чек [20:54:12]line ПРОДАЖА [20:54:12]line ТРК (МРК, ГНК) : 31 [20:54:12]line Товар: 2710194210 [20:54:12]line D-ENERGY ДТ-К-5 [20:54:12]line 12.960 * 77.20 [20:54:12]line = 1000.51 [20:54:12]line НДС 12% НСП 1% [20:54:12]line > о реализуемом товаре [20:54:12]line ИТОГО: 1000.51 [20:54:12]line НСП 1% : 8.85 [20:54:12]line НДС 12% : 106.25 [20:54:12]line Наличными: 0.00 [20:54:12]line Безнал.: 1000.51 [20:54:12]line Место: АЗС № 86 "Партнер Нефть" [20:54:12]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:54:12]line СНО: Общий режим [20:54:12]line Чек 523 22.10.2024 20:54 [20:54:12]line Смена: 461 ФФД: 1.0 [20:54:12]line ЗНМ: 0300000155 [20:54:12]line РНМ: 0000000000100030 [20:54:12]line Версия ККМ: 001 [20:54:12]line Платежная система: Mbank [20:54:12]line ФМ: 0000000000965340 [20:54:12]line ФД: 188494 [20:54:12]line ФПД: 229206931970392 [20:54:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205412&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188494&fm=229206931970392&tin=02508201610067®Number=0000000000100030&sum=100051 [20:54:12]written 0, free lines is 4095 [20:54:12]OFD Sender: Processing packet 188494 [packets to send 1062, broken 1061] [20:54:12]ProducePacketName [20:54:12]name=ofd_packets/00188494 [20:54:12]OFD Sender: To server: pG, [20:54:12]CommunicateWithHost lk.salyk.kg:30040 [20:54:12]ConnectInit lk.salyk.kg [20:54:12]Connected sock=10 [20:54:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 36 3C 0D 01 3F 5E 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 D3 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 D3 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 02 00 00 F4 03 04 00 F4 10 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E0 02 00 35 04 06 00 D0 76 65 C2 99 58 6F AC A5 FB 9E 41 DD FC [20:54:12]Write to MH i2c: 01 00 00 CA 1B E5 [20:54:12]Write i2c OK [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: 01 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: 01 07 00 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: 01 07 00 CA 1B 00 00 00 00 00 8B 0C 83 [20:54:12]RasterBufferAndPrint [20:54:12]line [20:54:12]line [20:54:12]line [20:54:12]line [20:54:12]line [20:54:12]written 0, free lines is 3214 [20:54:12]MH_Cut [20:54:12]Write to MH i2c: D1 01 00 D1 1B 01 BE [20:54:12]Write i2c OK [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: D1 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: D1 01 00 [20:54:12]MH_I2C_Read... [20:54:12]Read from MH i2c: D1 01 00 D1 1B 00 BD [20:54:12]Write to MH i2c: 01 00 00 D2 1B ED [20:54:12]Write i2c OK [20:54:12]MH_I2C_Read... [20:54:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DE 91 47 00 83 EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4E E0 02 00 F4 03 04 00 E0 BA 17 67 B6 04 01 00 00 5C 80 71 C4 BF BF 2B 3C [20:54:12]CommunicateWithHost err = 0 [20:54:12]CheckOFDResponse [20:54:12]1017 (14) - 77093643461234 [20:54:12]1041 (16) - 0000000000965340 [20:54:12]1040 (4) - 188494 [20:54:12]1012 (4) - 22.10.2024 14:46 [20:54:12]1206 (1) - 0 [20:54:12]OFD Sender: Remove packet 188494 [20:54:12]ProducePacketName [20:54:12]name=ofd_packets/00188494 [20:54:12]NVStorageDeleteData [20:54:13]OFD Sender: No OFD packet to send [20:54:13]*** Cut start [20:54:13]*** Partial cut [20:54:13]*** CUTSNS_PIN = 1 [20:54:13]*** CUTSNS_PIN = 0 [20:54:14]*** Brake cut motor [20:54:14]Read from MH i2c: 01 [20:54:14]MH_I2C_Read... [20:54:14]*** Stop cut motor [20:54:14]*** Cut end [20:54:14]Read from MH i2c: 01 07 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: 01 07 00 D2 1B 00 00 00 00 00 FF 0F 02 [20:54:14]process_action close_receipt done [20:54:14]requested_data is exist [20:54:14]produce_requested_data [20:54:14]requested_item fm.sn is exist - process it [20:54:14]wFMCommunicate request_size=4 [20:54:14]MH_SAM_APDU [20:54:14]CAPDU: 80 11 00 00 [20:54:14]Write to MH i2c: E2 08 00 D3 1B 80 11 00 00 00 00 00 00 68 [20:54:14]Write i2c OK [20:54:14]MH_I2C_Read... [20:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:54:14]Read from MH i2c: E2 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 17 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 17 00 D3 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B6 [20:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:54:14]wFMCommunicate OK [20:54:14]requested_item fd.num is exist - process it [20:54:14]SAM_PROTO_GetFieldsCounters [20:54:14]wFMCommunicate request_size=4 [20:54:14]MH_SAM_APDU [20:54:14]CAPDU: 80 13 00 00 [20:54:14]Write to MH i2c: E2 08 00 D4 1B 80 13 00 00 00 00 00 00 6B [20:54:14]Write i2c OK [20:54:14]MH_I2C_Read... [20:54:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:54:14]Read from MH i2c: E2 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 62 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 62 00 D4 1B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0B 02 00 00 5E 04 04 00 0B 02 00 00 57 04 04 00 0C 02 00 00 19 04 04 00 00 00 00 00 90 00 97 [20:54:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0B 02 00 00 5E 04 04 00 0B 02 00 00 57 04 04 00 0C 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:54:14]wFMCommunicate OK [20:54:14]SAM_PROTO_GetFieldsCounters done [20:54:14]requested_item shift.num is exist - process it [20:54:14]requested_item shift.opened is exist - process it [20:54:14]req_shift_opened [20:54:14]FM_GetShiftState [20:54:14]SAM_PROTO_GetShiftState [20:54:14]wFMCommunicate request_size=4 [20:54:14]MH_SAM_APDU [20:54:14]CAPDU: 80 13 01 00 [20:54:14]Write to MH i2c: E2 08 00 D5 1B 80 13 01 00 00 00 00 00 6D [20:54:14]Write i2c OK [20:54:14]MH_I2C_Read... [20:54:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:54:14]Read from MH i2c: E2 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 0E 00 [20:54:14]MH_I2C_Read... [20:54:14]Read from MH i2c: E2 0E 00 D5 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 62 [20:54:14]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:54:14]wFMCommunicate OK [20:54:14]SAM_PROTO_GetShiftState done [20:54:14]FM_GetShiftState done [20:54:14]req_shift_opened done [20:54:14]requested_item shift.open_date is exist - process it [20:54:14]req_shift_open_date [20:54:14]req_shift_open_date done [20:54:14]produce_requested_data done [20:54:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188494,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:54:14]process_action_free close_receipt [20:54:14]json_value_free [20:54:14]json_value_free done [20:54:14]process_json_proto returns [20:54:14]Send response to host [20:54:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188494,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:54:14]free response buf [20:54:14]execute_script done [20:54:14]execute_script returns [20:54:14]free content buf [20:54:14]Sock 7.Close socket [20:54:14]Sock 7.Thread stoped [20:54:18]OFD Sender: No OFD packet to send [20:54:23]OFD Sender: No OFD packet to send [20:54:28]OFD Sender: No OFD packet to send [20:54:33]OFD Sender: No OFD packet to send [20:54:38]OFD Sender: No OFD packet to send [20:54:43]OFD Sender: No OFD packet to send [20:54:48]OFD Sender: No OFD packet to send [20:54:53]OFD Sender: No OFD packet to send [20:54:58]OFD Sender: No OFD packet to send [20:55:03]OFD Sender: No OFD packet to send [20:55:08]OFD Sender: No OFD packet to send [20:55:13]OFD Sender: No OFD packet to send [20:55:18]OFD Sender: No OFD packet to send [20:55:23]OFD Sender: No OFD packet to send [20:55:28]OFD Sender: No OFD packet to send [20:55:33]OFD Sender: No OFD packet to send [20:55:38]OFD Sender: No OFD packet to send [20:55:43]OFD Sender: No OFD packet to send [20:55:48]OFD Sender: No OFD packet to send [20:55:53]OFD Sender: No OFD packet to send [20:55:58]OFD Sender: No OFD packet to send [20:56:03]OFD Sender: No OFD packet to send [20:56:08]OFD Sender: No OFD packet to send [20:56:13]OFD Sender: No OFD packet to send [20:56:18]OFD Sender: No OFD packet to send [20:56:23]OFD Sender: No OFD packet to send [20:56:28]OFD Sender: No OFD packet to send [20:56:33]OFD Sender: No OFD packet to send [20:56:38]OFD Sender: No OFD packet to send [20:56:43]OFD Sender: No OFD packet to send [20:56:48]OFD Sender: No OFD packet to send [20:56:54]OFD Sender: No OFD packet to send [20:56:59]OFD Sender: No OFD packet to send [20:57:04]OFD Sender: No OFD packet to send [20:57:09]OFD Sender: No OFD packet to send [20:57:14]OFD Sender: No OFD packet to send [20:57:19]OFD Sender: No OFD packet to send [20:57:24]OFD Sender: No OFD packet to send [20:57:29]OFD Sender: No OFD packet to send [20:57:34]OFD Sender: No OFD packet to send [20:57:39]OFD Sender: No OFD packet to send [20:57:44]OFD Sender: No OFD packet to send [20:57:49]OFD Sender: No OFD packet to send [20:57:54]OFD Sender: No OFD packet to send [20:57:59]OFD Sender: No OFD packet to send [20:58:04]OFD Sender: No OFD packet to send [20:58:09]OFD Sender: No OFD packet to send [20:58:14]OFD Sender: No OFD packet to send [20:58:19]OFD Sender: No OFD packet to send [20:58:24]OFD Sender: No OFD packet to send [20:58:29]OFD Sender: No OFD packet to send [20:58:34]OFD Sender: No OFD packet to send [20:58:39]OFD Sender: No OFD packet to send [20:58:44]OFD Sender: No OFD packet to send [20:58:49]OFD Sender: No OFD packet to send [20:58:54]OFD Sender: No OFD packet to send [20:58:57]accept exits with 9 [20:58:57]New connection [20:58:57]New thread 3066613092 created [20:58:57]Thread 3066756452 joined [20:58:57]Waiting for new connection... [20:58:57] Sock 9.Parse request [20:58:57]Sock 9.Check first char [20:58:57]Sock 9.First char is OK [20:58:57]request: POST /json_proto HTTP/1.0 [20:58:57]Method: POST [20:58:57]URL: /json_proto [20:58:57]Method is POST - this is cgi request [20:58:57]url: /json_proto [20:58:57]query_string will be loaded in cgi processing [20:58:57]execute_cgi json_proto POST (null) [20:58:57]execute_cgi path=json_proto method=POST [20:58:57]POST find Content-Length [20:58:57]Host: 172.17.42.131:8080 [20:58:57]Content-Length: 677 [20:58:57]Content-Type: application/json [20:58:57] [20:58:57]POST finish read [20:58:57]Found Content-Length = 677 [20:58:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:57]execute_script... [20:58: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)210555", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.030, "sum" : 470.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 470.00, "total" : 470.00, "payments": [ { "type": 0, "sum" : 470.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:58:57]POST & json_proto [20:58:57]process_json_proto [20:58:57]json parsed OK: [20:58:57]protocol is kg_v1.0 [20:58:57]action value=close_receipt [20:58:57]process_action close_receipt [20:58:57]cmd_close_receipt [20:58:57]MH_GetDate [20:58:57]Write to MH i2c: F0 00 00 D6 1B E0 [20:58:57]Write i2c OK [20:58:57]MH_I2C_Read... [20:58:57]Read from MH i2c: F0 [20:58:57]MH_I2C_Read... [20:58:57]Read from MH i2c: F0 09 00 [20:58:57]MH_I2C_Read... [20:58:57]Read from MH i2c: F0 09 00 D6 1B 00 13 12 18 67 A0 18 CA 66 75 [20:58:57]GetLastDocTimeStamp 1729630452 [20:58:57]current date 1729630739 [20:58:57]FM_GetShiftState [20:58:57]SAM_PROTO_GetShiftState [20:58:57]wFMCommunicate request_size=4 [20:58:57]MH_SAM_APDU [20:58:57]CAPDU: 80 13 01 00 [20:58:57]Write to MH i2c: E2 08 00 D7 1B 80 13 01 00 00 00 00 00 6F [20:58:57]Write i2c OK [20:58:57]MH_I2C_Read... [20:58:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:58:57]Read from MH i2c: E2 [20:58:57]MH_I2C_Read... [20:58:57]Read from MH i2c: E2 0E 00 [20:58:57]MH_I2C_Read... [20:58:57]Read from MH i2c: E2 0E 00 D7 1B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 64 [20:58:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:58:57]wFMCommunicate OK [20:58:57]SAM_PROTO_GetShiftState done [20:58:57]FM_GetShiftState done [20:58:57]opened in 1729556094 [20:58:57]opened+sec_in_day 1729642494 [20:58:57]quantity*price = 47030 [20:58:57]sum+1 = 47032 [20:58:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 470.00 Внесено: 470.00 СДАЧА: 0.00 НСП 1% : 4.16 НДС 12% : 49.94 Наличными: 470.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 524 22.10.2024 20:58 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188495 ФПД: 70810099774509 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205859&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188495&fm=70810099774509&tin=02508201610067®Number=0000000000100030&sum=47000 [20:58:58]StoreToDocumentArchive [20:58:58]shift 461 fd 188495 [20:58:58]save to /storage/0461/doc_00188495 [20:58:58]save last doc name /storage/0461/doc_00188495 to /storage/kkm_last_doc_name [20:58:58]save OK [20:58:58]Clear old archive folders... [20:58:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:58:58]tlvbuf is B6E785F0 [20:58:58]SAM_PROTO_ClearQueue [20:58:58]wFMCommunicate request_size=4 [20:58:58]MH_SAM_APDU [20:58:58]CAPDU: 80 09 00 00 [20:58:58]Write to MH i2c: E2 08 00 E4 1B 80 09 00 00 00 00 00 00 71 [20:58:58]Write i2c OK [20:58:58]MH_I2C_Read... [20:58:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:58:58]Read from MH i2c: E2 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 E4 1B 00 90 00 73 [20:58:58]RAPDU: 90 00 [20:58:58]wFMCommunicate OK [20:58:58]SAM_PROTO_ClearQueue done [20:58:58]KKMCreateOFDPacket [20:58:58]OFDProtocolAddRootSTLVToBuf [20:58:58]FM_MakeSignedData [20:58:58]FM_MakeSignedData [20:58:58]SAM_PROTO_SignData [20:58:58]wFMCommunicate request_size=4 [20:58:58]MH_SAM_APDU [20:58:58]CAPDU: 80 0D 01 02 [20:58:58]Write to MH i2c: E2 08 00 E5 1B 80 0D 01 02 00 00 00 00 79 [20:58:58]Write i2c OK [20:58:58]MH_I2C_Read... [20:58:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:58:58]Read from MH i2c: E2 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 E5 1B 00 90 00 74 [20:58:58]RAPDU: 90 00 [20:58:58]wFMCommunicate OK [20:58:58]wFMCommunicate request_size=255 [20:58:58]MH_SAM_APDU [20:58: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 33 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 02 00 00 F4 03 04 00 13 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E0 02 00 35 04 06 00 40 [20:58:58]Write to MH i2c: E2 02 01 E6 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 33 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 02 00 00 F4 03 04 00 13 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E0 02 00 35 04 06 00 40 00 00 67 [20:58:58]Write i2c OK [20:58:58]MH_I2C_Read... [20:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:58]Read from MH i2c: E2 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 E6 1B 00 90 00 75 [20:58:58]RAPDU: 90 00 [20:58:58]wFMCommunicate OK [20:58:58]wFMCommunicate request_size=10 [20:58:58]MH_SAM_APDU [20:58:58]CAPDU: 80 0D 02 02 05 66 C2 D7 F4 2D [20:58:58]Write to MH i2c: E2 0D 00 E7 1B 80 0D 02 02 05 00 66 C2 D7 F4 2D 00 00 A6 [20:58:58]Write i2c OK [20:58:58]MH_I2C_Read... [20:58:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:58:58]Read from MH i2c: E2 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 [20:58:58]MH_I2C_Read... [20:58:58]Read from MH i2c: E2 03 00 E7 1B 00 90 00 76 [20:58:58]RAPDU: 90 00 [20:58:58]wFMCommunicate OK [20:58:58]wFMCommunicate request_size=4 [20:58:58]MH_SAM_APDU [20:58:58]CAPDU: 80 0D 03 02 [20:58:58]Write to MH i2c: E2 08 00 E8 1B 80 0D 03 02 00 00 00 00 7E [20:58:58]Write i2c OK [20:58:58]MH_I2C_Read... [20:58:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:58:59]Read from MH i2c: E2 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: E2 0B 00 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: E2 0B 00 E8 1B 00 6E 62 8A 98 03 11 EB AB 90 00 1B [20:58:59]RAPDU: 6E 62 8A 98 03 11 EB AB 90 00 [20:58:59]wFMCommunicate OK [20:58:59]SAM_PROTO_SignData done [20:58:59]FM_MakeSignedData done [20:58:59]CreateOFDProtocolMessage [20:58:59]wFMCommunicate request_size=4 [20:58:59]MH_SAM_APDU [20:58:59]CAPDU: 80 11 00 00 [20:58:59]Write to MH i2c: E2 08 00 E9 1B 80 11 00 00 00 00 00 00 7E [20:58:59]Write i2c OK [20:58:59]MH_I2C_Read... [20:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:58:59]Read from MH i2c: E2 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: E2 17 00 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: E2 17 00 E9 1B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CC [20:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:58:59]wFMCommunicate OK [20:58:59]CreateOFDProtocolMessage done [20:58:59]OFDSenderStorePacket 188495 [20:58:59]StoreOFDPacket docnum=188495 [20:58:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 E3 07 01 B3 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 02 00 00 F4 03 04 00 13 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E0 02 00 35 04 06 00 40 66 C2 D7 F4 2D 6E 62 8A 98 03 11 EB AB [20:58:59]CheckFolder [20:58:59]dirname=/storage/ofd_packets [20:58:59]CheckFolder done [20:58:59]ProducePacketName [20:58:59]name=ofd_packets/00188495 [20:58:59]NVStorageSaveData ofd_packets/00188495 [20:58:59]File name is /storage/ofd_packets/00188495 [20:58:59]Write 301 bytes [20:58:59]NVStorageSaveData done [20:58:59]OFDSenderStorePacket done [20:58:59]KKMCreateOFDPacket done [20:58:59]NVStorageSaveData kkm_last_timestamp [20:58:59]File name is /storage/kkm_last_timestamp [20:58:59]Write 4 bytes [20:58:59]NVStorageSaveData done [20:58:59]ExternCall_PrintAddStr [20:58:59]wPrintStart [20:58:59]Write to MH i2c: 01 00 00 EA 1B 05 [20:58:59]Write i2c OK [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: 01 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: 01 07 00 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: 01 07 00 EA 1B 00 00 00 00 00 FF 0F 1A [20:58:59]RasterBufferAndPrint [20:58:59]line Счет N : (1)210555 [20:58:59]line ИНН: 02508201610067 [20:58:59]line Контрольно-Кассовый Чек [20:58:59]line ПРОДАЖА [20:58:59]line ТРК (МРК, ГНК) : 32 [20:58:59]line Товар: 2710124130 [20:58:59]line Аи-92-К-3 [20:58:59]line 7.030 * 66.90 [20:58:59]line = 470.31 [20:58:59]line НДС 12% НСП 1% [20:58:59]line > о реализуемом товаре [20:58:59]line ОКРУГЛЕНИЕ: -0.31 [20:58:59]line ИТОГО: 470.00 [20:58:59]line Внесено: 470.00 [20:58:59]line СДАЧА: 0.00 [20:58:59]line НСП 1% : 4.16 [20:58:59]line НДС 12% : 49.94 [20:58:59]line Наличными: 470.00 [20:58:59]line Безнал.: 0.00 [20:58:59]line Место: АЗС № 86 "Партнер Нефть" [20:58:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [20:58:59]line СНО: Общий режим [20:58:59]line Чек 524 22.10.2024 20:58 [20:58:59]line Смена: 461 ФФД: 1.0 [20:58:59]line ЗНМ: 0300000155 [20:58:59]line РНМ: 0000000000100030 [20:58:59]line Версия ККМ: 001 [20:58:59]line ФМ: 0000000000965340 [20:58:59]line ФД: 188495 [20:58:59]line ФПД: 70810099774509 [20:58:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T205859&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188495&fm=70810099774509&tin=02508201610067®Number=0000000000100030&sum=47000 [20:58:59]written 0, free lines is 4095 [20:58:59]OFD Sender: Processing packet 188495 [packets to send 1062, broken 1061] [20:58:59]ProducePacketName [20:58:59]name=ofd_packets/00188495 [20:58:59]OFD Sender: To server: pG, [20:58:59]CommunicateWithHost lk.salyk.kg:30040 [20:58:59]ConnectInit lk.salyk.kg [20:58:59]Connected sock=10 [20:58:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 55 E3 07 01 B3 D6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 76 1B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B7 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B7 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 82 13 00 00 00 00 07 04 06 00 98 B7 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0C 02 00 00 F4 03 04 00 13 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 4F E0 02 00 35 04 06 00 40 66 C2 D7 F4 2D 6E 62 8A 98 03 11 EB AB [20:58:59]Write to MH i2c: 01 00 00 15 1C 31 [20:58:59]Write i2c OK [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: 01 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: 01 07 00 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: 01 07 00 15 1C 00 00 00 00 00 62 0C A6 [20:58:59]RasterBufferAndPrint [20:58:59]line [20:58:59]line [20:58:59]line [20:58:59]line [20:58:59]line [20:58:59]written 0, free lines is 3174 [20:58:59]MH_Cut [20:58:59]Write to MH i2c: D1 01 00 1C 1C 01 0A [20:58:59]Write i2c OK [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: D1 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: D1 01 00 [20:58:59]MH_I2C_Read... [20:58:59]Read from MH i2c: D1 01 00 1C 1C 00 09 [20:58:59]Write to MH i2c: 01 00 00 1D 1C 39 [20:58:59]Write i2c OK [20:58:59]MH_I2C_Read... [20:58:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 29 E4 47 00 08 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 39 36 35 33 34 30 10 04 04 00 4F E0 02 00 F4 03 04 00 FF BB 17 67 B6 04 01 00 00 D8 D2 7C DD 84 1D F1 66 [20:58:59]CommunicateWithHost err = 0 [20:58:59]CheckOFDResponse [20:58:59]1017 (14) - 77093643461234 [20:58:59]1041 (16) - 0000000000965340 [20:58:59]1040 (4) - 188495 [20:58:59]1012 (4) - 22.10.2024 14:51 [20:58:59]1206 (1) - 0 [20:58:59]OFD Sender: Remove packet 188495 [20:58:59]ProducePacketName [20:58:59]name=ofd_packets/00188495 [20:58:59]NVStorageDeleteData [20:59:00]OFD Sender: No OFD packet to send [20:59:00]*** Cut start [20:59:00]*** Partial cut [20:59:00]*** CUTSNS_PIN = 1 [20:59:00]*** CUTSNS_PIN = 0 [20:59:01]*** Brake cut motor [20:59:01]*** Stop cut motor [20:59:01]*** Cut end [20:59:01]Read from MH i2c: 01 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: 01 07 00 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: 01 07 00 1D 1C 00 00 00 00 00 FF 0F 4E [20:59:01]process_action close_receipt done [20:59:01]requested_data is exist [20:59:01]produce_requested_data [20:59:01]requested_item fm.sn is exist - process it [20:59:01]wFMCommunicate request_size=4 [20:59:01]MH_SAM_APDU [20:59:01]CAPDU: 80 11 00 00 [20:59:01]Write to MH i2c: E2 08 00 1E 1C 80 11 00 00 00 00 00 00 B4 [20:59:01]Write i2c OK [20:59:01]MH_I2C_Read... [20:59:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:01]Read from MH i2c: E2 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 17 00 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 17 00 1E 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 02 [20:59:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [20:59:01]wFMCommunicate OK [20:59:01]requested_item fd.num is exist - process it [20:59:01]SAM_PROTO_GetFieldsCounters [20:59:01]wFMCommunicate request_size=4 [20:59:01]MH_SAM_APDU [20:59:01]CAPDU: 80 13 00 00 [20:59:01]Write to MH i2c: E2 08 00 1F 1C 80 13 00 00 00 00 00 00 B7 [20:59:01]Write i2c OK [20:59:01]MH_I2C_Read... [20:59:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:01]Read from MH i2c: E2 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 62 00 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 62 00 1F 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0C 02 00 00 5E 04 04 00 0C 02 00 00 57 04 04 00 0D 02 00 00 19 04 04 00 00 00 00 00 90 00 E7 [20:59:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 4F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0C 02 00 00 5E 04 04 00 0C 02 00 00 57 04 04 00 0D 02 00 00 19 04 04 00 00 00 00 00 90 00 [20:59:01]wFMCommunicate OK [20:59:01]SAM_PROTO_GetFieldsCounters done [20:59:01]requested_item shift.num is exist - process it [20:59:01]requested_item shift.opened is exist - process it [20:59:01]req_shift_opened [20:59:01]FM_GetShiftState [20:59:01]SAM_PROTO_GetShiftState [20:59:01]wFMCommunicate request_size=4 [20:59:01]MH_SAM_APDU [20:59:01]CAPDU: 80 13 01 00 [20:59:01]Write to MH i2c: E2 08 00 20 1C 80 13 01 00 00 00 00 00 B9 [20:59:01]Write i2c OK [20:59:01]MH_I2C_Read... [20:59:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:01]Read from MH i2c: E2 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 0E 00 [20:59:01]MH_I2C_Read... [20:59:01]Read from MH i2c: E2 0E 00 20 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AE [20:59:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [20:59:01]wFMCommunicate OK [20:59:01]SAM_PROTO_GetShiftState done [20:59:01]FM_GetShiftState done [20:59:01]req_shift_opened done [20:59:01]requested_item shift.open_date is exist - process it [20:59:01]req_shift_open_date [20:59:01]req_shift_open_date done [20:59:01]produce_requested_data done [20:59:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188495,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [20:59:01]process_action_free close_receipt [20:59:01]json_value_free [20:59:01]json_value_free done [20:59:01]process_json_proto returns [20:59:01]Send response to host [20:59:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188495,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [20:59:01]free response buf [20:59:01]execute_script done [20:59:01]execute_script returns [20:59:01]free content buf [20:59:01]Sock 9.Close socket [20:59:01]Sock 9.Thread stoped [20:59:05]OFD Sender: No OFD packet to send [20:59:10]OFD Sender: No OFD packet to send [20:59:15]OFD Sender: No OFD packet to send [20:59:20]OFD Sender: No OFD packet to send [20:59:25]OFD Sender: No OFD packet to send [20:59:30]OFD Sender: No OFD packet to send [20:59:35]OFD Sender: No OFD packet to send [20:59:40]OFD Sender: No OFD packet to send [20:59:45]OFD Sender: No OFD packet to send [20:59:50]OFD Sender: No OFD packet to send [20:59:55]OFD Sender: No OFD packet to send [21:00:00]OFD Sender: No OFD packet to send [21:00:05]OFD Sender: No OFD packet to send [21:00:10]OFD Sender: No OFD packet to send [21:00:15]OFD Sender: No OFD packet to send [21:00:20]OFD Sender: No OFD packet to send [21:00:25]OFD Sender: No OFD packet to send [21:00:30]OFD Sender: No OFD packet to send [21:00:35]OFD Sender: No OFD packet to send [21:00:40]OFD Sender: No OFD packet to send [21:00:45]OFD Sender: No OFD packet to send [21:00:50]OFD Sender: No OFD packet to send [21:00:55]OFD Sender: No OFD packet to send [21:01:00]OFD Sender: No OFD packet to send [21:01:05]OFD Sender: No OFD packet to send [21:01:10]OFD Sender: No OFD packet to send [21:01:15]accept exits with 7 [21:01:15]New connection [21:01:15]New thread 3066756452 created [21:01:15]Thread 3066613092 joined [21:01:15]Waiting for new connection... [21:01:15] Sock 7.Parse request [21:01:15]Sock 7.Check first char [21:01:15]Sock 7.First char is OK [21:01:15]request: POST /json_proto HTTP/1.0 [21:01:15]Method: POST [21:01:15]URL: /json_proto [21:01:15]Method is POST - this is cgi request [21:01:15]url: /json_proto [21:01:15]query_string will be loaded in cgi processing [21:01:15]execute_cgi json_proto POST (null) [21:01:15]execute_cgi path=json_proto method=POST [21:01:15]POST find Content-Length [21:01:15]Host: 172.17.42.131:8080 [21:01:15]Content-Length: 677 [21:01:15]Content-Type: application/json [21:01:15] [21:01:15]POST finish read [21:01:15]Found Content-Length = 677 [21:01:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:15]execute_script... [21:01: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)210557", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:15]POST & json_proto [21:01:15]process_json_proto [21:01:15]json parsed OK: [21:01:15]protocol is kg_v1.0 [21:01:15]action value=close_receipt [21:01:15]process_action close_receipt [21:01:15]cmd_close_receipt [21:01:15]MH_GetDate [21:01:15]Write to MH i2c: F0 00 00 21 1C 2C [21:01:15]Write i2c OK [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: F0 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: F0 09 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: F0 09 00 21 1C 00 9D 12 18 67 A0 18 CA 66 4B [21:01:15]GetLastDocTimeStamp 1729630739 [21:01:15]current date 1729630877 [21:01:15]FM_GetShiftState [21:01:15]SAM_PROTO_GetShiftState [21:01:15]wFMCommunicate request_size=4 [21:01:15]MH_SAM_APDU [21:01:15]CAPDU: 80 13 01 00 [21:01:15]Write to MH i2c: E2 08 00 22 1C 80 13 01 00 00 00 00 00 BB [21:01:15]Write i2c OK [21:01:15]MH_I2C_Read... [21:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:15]Read from MH i2c: E2 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 0E 00 [21:01:15]MH_I2C_Read... [21:01:15]Read from MH i2c: E2 0E 00 22 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B0 [21:01:15]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:01:15]wFMCommunicate OK [21:01:15]SAM_PROTO_GetShiftState done [21:01:15]FM_GetShiftState done [21:01:15]opened in 1729556094 [21:01:15]opened+sec_in_day 1729642494 [21:01:15]quantity*price = 50041 [21:01:15]sum+1 = 50042 [21:01:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 525 22.10.2024 21:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188496 ФПД: 76175680627101 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188496&fm=76175680627101&tin=02508201610067®Number=0000000000100030&sum=50000 [21:01:16]StoreToDocumentArchive [21:01:16]shift 461 fd 188496 [21:01:16]save to /storage/0461/doc_00188496 [21:01:16]save last doc name /storage/0461/doc_00188496 to /storage/kkm_last_doc_name [21:01:16]save OK [21:01:16]Clear old archive folders... [21:01:16]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:16]tlvbuf is 0098D560 [21:01:16]SAM_PROTO_ClearQueue [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 09 00 00 [21:01:16]Write to MH i2c: E2 08 00 2F 1C 80 09 00 00 00 00 00 00 BD [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 [21:01:16]MH_I2C_Read... [21:01:16]Read from MH i2c: E2 03 00 2F 1C 00 90 00 BF [21:01:16]RAPDU: 90 00 [21:01:16]wFMCommunicate OK [21:01:16]SAM_PROTO_ClearQueue done [21:01:16]KKMCreateOFDPacket [21:01:16]OFDProtocolAddRootSTLVToBuf [21:01:16]FM_MakeSignedData [21:01:16]FM_MakeSignedData [21:01:16]SAM_PROTO_SignData [21:01:16]wFMCommunicate request_size=4 [21:01:16]MH_SAM_APDU [21:01:16]CAPDU: 80 0D 01 02 [21:01:16]Write to MH i2c: E2 08 00 30 1C 80 0D 01 02 00 00 00 00 C5 [21:01:16]Write i2c OK [21:01:16]MH_I2C_Read... [21:01:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:16]Read from MH i2c: E2 [21:01:16]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 30 1C 00 90 00 C0 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]wFMCommunicate request_size=255 [21:01:17]MH_SAM_APDU [21:01: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 9D 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E0 02 00 35 04 06 00 45 [21:01:17]Write to MH i2c: E2 02 01 31 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 9D 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E0 02 00 35 04 06 00 45 00 00 BA [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 31 1C 00 90 00 C1 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]wFMCommunicate request_size=10 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 0D 02 02 05 48 08 62 61 9D [21:01:17]Write to MH i2c: E2 0D 00 32 1C 80 0D 02 02 05 00 48 08 62 61 9D 00 00 82 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 03 00 32 1C 00 90 00 C2 [21:01:17]RAPDU: 90 00 [21:01:17]wFMCommunicate OK [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 0D 03 02 [21:01:17]Write to MH i2c: E2 08 00 33 1C 80 0D 03 02 00 00 00 00 CA [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 0B 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 0B 00 33 1C 00 B8 E5 60 66 5D C5 DD 43 90 00 70 [21:01:17]RAPDU: B8 E5 60 66 5D C5 DD 43 90 00 [21:01:17]wFMCommunicate OK [21:01:17]SAM_PROTO_SignData done [21:01:17]FM_MakeSignedData done [21:01:17]CreateOFDProtocolMessage [21:01:17]wFMCommunicate request_size=4 [21:01:17]MH_SAM_APDU [21:01:17]CAPDU: 80 11 00 00 [21:01:17]Write to MH i2c: E2 08 00 34 1C 80 11 00 00 00 00 00 00 CA [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:17]Read from MH i2c: E2 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 17 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: E2 17 00 34 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 18 [21:01:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:17]wFMCommunicate OK [21:01:17]CreateOFDProtocolMessage done [21:01:17]OFDSenderStorePacket 188496 [21:01:17]StoreOFDPacket docnum=188496 [21:01:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 72 07 01 7F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 9D 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E0 02 00 35 04 06 00 45 48 08 62 61 9D B8 E5 60 66 5D C5 DD 43 [21:01:17]CheckFolder [21:01:17]dirname=/storage/ofd_packets [21:01:17]CheckFolder done [21:01:17]ProducePacketName [21:01:17]name=ofd_packets/00188496 [21:01:17]NVStorageSaveData ofd_packets/00188496 [21:01:17]File name is /storage/ofd_packets/00188496 [21:01:17]Write 301 bytes [21:01:17]NVStorageSaveData done [21:01:17]OFDSenderStorePacket done [21:01:17]KKMCreateOFDPacket done [21:01:17]NVStorageSaveData kkm_last_timestamp [21:01:17]File name is /storage/kkm_last_timestamp [21:01:17]Write 4 bytes [21:01:17]NVStorageSaveData done [21:01:17]ExternCall_PrintAddStr [21:01:17]wPrintStart [21:01:17]Write to MH i2c: 01 00 00 35 1C 51 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 35 1C 00 00 00 00 00 FF 0F 66 [21:01:17]RasterBufferAndPrint [21:01:17]line Счет N : (1)210557 [21:01:17]line ИНН: 02508201610067 [21:01:17]line Контрольно-Кассовый Чек [21:01:17]line ПРОДАЖА [21:01:17]line ТРК (МРК, ГНК) : 42 [21:01:17]line Товар: 2710124130 [21:01:17]line Аи-92-К-3 [21:01:17]line 7.480 * 66.90 [21:01:17]line = 500.41 [21:01:17]line НДС 12% НСП 1% [21:01:17]line > о реализуемом товаре [21:01:17]line ОКРУГЛЕНИЕ: -0.41 [21:01:17]line ИТОГО: 500.00 [21:01:17]line Внесено: 500.00 [21:01:17]line СДАЧА: 0.00 [21:01:17]line НСП 1% : 4.43 [21:01:17]line НДС 12% : 53.14 [21:01:17]line Наличными: 500.00 [21:01:17]line Безнал.: 0.00 [21:01:17]line Место: АЗС № 86 "Партнер Нефть" [21:01:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:01:17]line СНО: Общий режим [21:01:17]line Чек 525 22.10.2024 21:01 [21:01:17]line Смена: 461 ФФД: 1.0 [21:01:17]line ЗНМ: 0300000155 [21:01:17]line РНМ: 0000000000100030 [21:01:17]line Версия ККМ: 001 [21:01:17]line ФМ: 0000000000965340 [21:01:17]line ФД: 188496 [21:01:17]line ФПД: 76175680627101 [21:01:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210117&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188496&fm=76175680627101&tin=02508201610067®Number=0000000000100030&sum=50000 [21:01:17]written 0, free lines is 4095 [21:01:17]OFD Sender: Processing packet 188496 [packets to send 1062, broken 1061] [21:01:17]ProducePacketName [21:01:17]name=ofd_packets/00188496 [21:01:17]OFD Sender: To server: pG, [21:01:17]CommunicateWithHost lk.salyk.kg:30040 [21:01:17]ConnectInit lk.salyk.kg [21:01:17]Connected sock=10 [21:01:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 58 72 07 01 7F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 02 00 00 F4 03 04 00 9D 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E0 02 00 35 04 06 00 45 48 08 62 61 9D B8 E5 60 66 5D C5 DD 43 [21:01:17]Write to MH i2c: 01 00 00 60 1C 7C [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: 01 07 00 60 1C 00 00 00 00 00 58 0C E7 [21:01:17]RasterBufferAndPrint [21:01:17]line [21:01:17]line [21:01:17]line [21:01:17]line [21:01:17]line [21:01:17]written 0, free lines is 3165 [21:01:17]MH_Cut [21:01:17]Write to MH i2c: D1 01 00 67 1C 01 55 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: D1 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: D1 01 00 [21:01:17]MH_I2C_Read... [21:01:17]Read from MH i2c: D1 01 00 67 1C 00 54 [21:01:17]Write to MH i2c: 01 00 00 68 1C 84 [21:01:17]Write i2c OK [21:01:17]MH_I2C_Read... [21:01:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F6 3E 47 00 B3 B7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 50 E0 02 00 F4 03 04 00 89 BC 17 67 B6 04 01 00 00 18 23 40 20 A0 2E E1 17 [21:01:18]CommunicateWithHost err = 0 [21:01:18]CheckOFDResponse [21:01:18]1017 (14) - 77093643461234 [21:01:18]1041 (16) - 0000000000965340 [21:01:18]1040 (4) - 188496 [21:01:18]1012 (4) - 22.10.2024 14:54 [21:01:18]1206 (1) - 0 [21:01:18]OFD Sender: Remove packet 188496 [21:01:18]ProducePacketName [21:01:18]name=ofd_packets/00188496 [21:01:18]NVStorageDeleteData [21:01:18]OFD Sender: No OFD packet to send [21:01:19]*** Cut start [21:01:19]*** Partial cut [21:01:19]*** CUTSNS_PIN = 1 [21:01:19]*** CUTSNS_PIN = 0 [21:01:19]*** Brake cut motor [21:01:19]Read from MH i2c: 01 [21:01:19]MH_I2C_Read... [21:01:19]*** Stop cut motor [21:01:19]*** Cut end [21:01:19]Read from MH i2c: 01 07 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: 01 07 00 68 1C 00 00 00 00 00 FF 0F 99 [21:01:19]process_action close_receipt done [21:01:19]requested_data is exist [21:01:19]produce_requested_data [21:01:19]requested_item fm.sn is exist - process it [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 11 00 00 [21:01:19]Write to MH i2c: E2 08 00 69 1C 80 11 00 00 00 00 00 00 FF [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:19]Read from MH i2c: E2 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 17 00 [21:01:19]MH_I2C_Read... [21:01:19]Read from MH i2c: E2 17 00 69 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [21:01:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:19]wFMCommunicate OK [21:01:19]requested_item fd.num is exist - process it [21:01:19]SAM_PROTO_GetFieldsCounters [21:01:19]wFMCommunicate request_size=4 [21:01:19]MH_SAM_APDU [21:01:19]CAPDU: 80 13 00 00 [21:01:19]Write to MH i2c: E2 08 00 6A 1C 80 13 00 00 00 00 00 00 02 [21:01:19]Write i2c OK [21:01:19]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 62 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 62 00 6A 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0D 02 00 00 5E 04 04 00 0D 02 00 00 57 04 04 00 0E 02 00 00 19 04 04 00 00 00 00 00 90 00 36 [21:01:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 50 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0D 02 00 00 5E 04 04 00 0D 02 00 00 57 04 04 00 0E 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:20]wFMCommunicate OK [21:01:20]SAM_PROTO_GetFieldsCounters done [21:01:20]requested_item shift.num is exist - process it [21:01:20]requested_item shift.opened is exist - process it [21:01:20]req_shift_opened [21:01:20]FM_GetShiftState [21:01:20]SAM_PROTO_GetShiftState [21:01:20]wFMCommunicate request_size=4 [21:01:20]MH_SAM_APDU [21:01:20]CAPDU: 80 13 01 00 [21:01:20]Write to MH i2c: E2 08 00 6B 1C 80 13 01 00 00 00 00 00 04 [21:01:20]Write i2c OK [21:01:20]MH_I2C_Read... [21:01:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:20]Read from MH i2c: E2 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0E 00 [21:01:20]MH_I2C_Read... [21:01:20]Read from MH i2c: E2 0E 00 6B 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 F9 [21:01:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:01:20]wFMCommunicate OK [21:01:20]SAM_PROTO_GetShiftState done [21:01:20]FM_GetShiftState done [21:01:20]req_shift_opened done [21:01:20]requested_item shift.open_date is exist - process it [21:01:20]req_shift_open_date [21:01:20]req_shift_open_date done [21:01:20]produce_requested_data done [21:01:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188496,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:01:20]process_action_free close_receipt [21:01:20]json_value_free [21:01:20]json_value_free done [21:01:20]process_json_proto returns [21:01:20]Send response to host [21:01:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188496,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:01:20]free response buf [21:01:20]execute_script done [21:01:20]execute_script returns [21:01:20]free content buf [21:01:20]Sock 7.Close socket [21:01:20]Sock 7.Thread stoped [21:01:23]OFD Sender: No OFD packet to send [21:01:28]OFD Sender: No OFD packet to send [21:01:33]OFD Sender: No OFD packet to send [21:01:37]accept exits with 9 [21:01:37]New connection [21:01:37]New thread 3066613092 created [21:01:37]Thread 3066756452 joined [21:01:37]Waiting for new connection... [21:01:37] Sock 9.Parse request [21:01:37]Sock 9.Check first char [21:01:37]Sock 9.First char is OK [21:01:37]request: POST /json_proto HTTP/1.0 [21:01:37]Method: POST [21:01:37]URL: /json_proto [21:01:37]Method is POST - this is cgi request [21:01:37]url: /json_proto [21:01:37]query_string will be loaded in cgi processing [21:01:37]execute_cgi json_proto POST (null) [21:01:37]execute_cgi path=json_proto method=POST [21:01:37]POST find Content-Length [21:01:37]Host: 172.17.42.131:8080 [21:01:37]Content-Length: 769 [21:01:37]Content-Type: application/json [21:01:37] [21:01:37]POST finish read [21:01:37]Found Content-Length = 769 [21:01:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:37]execute_script... [21:01: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)210556", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1500.57 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:01:37]POST & json_proto [21:01:37]process_json_proto [21:01:37]json parsed OK: [21:01:37]protocol is kg_v1.0 [21:01:37]action value=close_receipt [21:01:37]process_action close_receipt [21:01:37]cmd_close_receipt [21:01:37]MH_GetDate [21:01:37]Write to MH i2c: F0 00 00 6C 1C 77 [21:01:37]Write i2c OK [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 09 00 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: F0 09 00 6C 1C 00 B3 12 18 67 A0 18 CA 66 AC [21:01:37]GetLastDocTimeStamp 1729630877 [21:01:37]current date 1729630899 [21:01:37]FM_GetShiftState [21:01:37]SAM_PROTO_GetShiftState [21:01:37]wFMCommunicate request_size=4 [21:01:37]MH_SAM_APDU [21:01:37]CAPDU: 80 13 01 00 [21:01:37]Write to MH i2c: E2 08 00 6D 1C 80 13 01 00 00 00 00 00 06 [21:01:37]Write i2c OK [21:01:37]MH_I2C_Read... [21:01:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:37]Read from MH i2c: E2 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: E2 0E 00 [21:01:37]MH_I2C_Read... [21:01:37]Read from MH i2c: E2 0E 00 6D 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FB [21:01:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:01:37]wFMCommunicate OK [21:01:37]SAM_PROTO_GetShiftState done [21:01:37]FM_GetShiftState done [21:01:37]opened in 1729556094 [21:01:37]opened+sec_in_day 1729642494 [21:01:37]quantity*price = 150056 [21:01:37]sum+1 = 150058 [21:01:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.57 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 0.00 Безнал.: 1500.57 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 526 22.10.2024 21:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188497 ФПД: 217750944011602 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188497&fm=217750944011602&tin=02508201610067®Number=0000000000100030&sum=150057 [21:01:38]StoreToDocumentArchive [21:01:38]shift 461 fd 188497 [21:01:38]save to /storage/0461/doc_00188497 [21:01:38]save last doc name /storage/0461/doc_00188497 to /storage/kkm_last_doc_name [21:01:38]save OK [21:01:38]Clear old archive folders... [21:01:38]OFD Sender: No OFD packet to send [21:01:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:01:38]tlvbuf is 0098D9D0 [21:01:38]SAM_PROTO_ClearQueue [21:01:38]wFMCommunicate request_size=4 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 09 00 00 [21:01:38]Write to MH i2c: E2 08 00 7A 1C 80 09 00 00 00 00 00 00 08 [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:01:38]Read from MH i2c: E2 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 7A 1C 00 90 00 0A [21:01:38]RAPDU: 90 00 [21:01:38]wFMCommunicate OK [21:01:38]SAM_PROTO_ClearQueue done [21:01:38]KKMCreateOFDPacket [21:01:38]OFDProtocolAddRootSTLVToBuf [21:01:38]FM_MakeSignedData [21:01:38]FM_MakeSignedData [21:01:38]SAM_PROTO_SignData [21:01:38]wFMCommunicate request_size=4 [21:01:38]MH_SAM_APDU [21:01:38]CAPDU: 80 0D 01 02 [21:01:38]Write to MH i2c: E2 08 00 7B 1C 80 0D 01 02 00 00 00 00 10 [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:01:38]Read from MH i2c: E2 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 [21:01:38]MH_I2C_Read... [21:01:38]Read from MH i2c: E2 03 00 7B 1C 00 90 00 0B [21:01:38]RAPDU: 90 00 [21:01:38]wFMCommunicate OK [21:01:38]wFMCommunicate request_size=255 [21:01:38]MH_SAM_APDU [21:01: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 B3 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E0 02 00 35 04 06 00 C6 [21:01:38]Write to MH i2c: E2 02 01 7C 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 B3 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E0 02 00 35 04 06 00 C6 00 00 5B [21:01:38]Write i2c OK [21:01:38]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 7C 1C 00 90 00 0C [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=10 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 02 02 05 0B 17 AA D5 52 [21:01:39]Write to MH i2c: E2 0D 00 7D 1C 80 0D 02 02 05 00 0B 17 AA D5 52 00 00 10 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 03 00 7D 1C 00 90 00 0D [21:01:39]RAPDU: 90 00 [21:01:39]wFMCommunicate OK [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 0D 03 02 [21:01:39]Write to MH i2c: E2 08 00 7E 1C 80 0D 03 02 00 00 00 00 15 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 0B 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 0B 00 7E 1C 00 36 82 F2 DC 6F C7 30 F6 90 00 F8 [21:01:39]RAPDU: 36 82 F2 DC 6F C7 30 F6 90 00 [21:01:39]wFMCommunicate OK [21:01:39]SAM_PROTO_SignData done [21:01:39]FM_MakeSignedData done [21:01:39]CreateOFDProtocolMessage [21:01:39]wFMCommunicate request_size=4 [21:01:39]MH_SAM_APDU [21:01:39]CAPDU: 80 11 00 00 [21:01:39]Write to MH i2c: E2 08 00 7F 1C 80 11 00 00 00 00 00 00 15 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:39]Read from MH i2c: E2 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 17 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: E2 17 00 7F 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [21:01:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:39]wFMCommunicate OK [21:01:39]CreateOFDProtocolMessage done [21:01:39]OFDSenderStorePacket 188497 [21:01:39]StoreOFDPacket docnum=188497 [21:01:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D E4 07 01 61 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 B3 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E0 02 00 35 04 06 00 C6 0B 17 AA D5 52 36 82 F2 DC 6F C7 30 F6 [21:01:39]CheckFolder [21:01:39]dirname=/storage/ofd_packets [21:01:39]CheckFolder done [21:01:39]ProducePacketName [21:01:39]name=ofd_packets/00188497 [21:01:39]NVStorageSaveData ofd_packets/00188497 [21:01:39]File name is /storage/ofd_packets/00188497 [21:01:39]Write 301 bytes [21:01:39]NVStorageSaveData done [21:01:39]OFDSenderStorePacket done [21:01:39]KKMCreateOFDPacket done [21:01:39]NVStorageSaveData kkm_last_timestamp [21:01:39]File name is /storage/kkm_last_timestamp [21:01:39]Write 4 bytes [21:01:39]NVStorageSaveData done [21:01:39]ExternCall_PrintAddStr [21:01:39]wPrintStart [21:01:39]Write to MH i2c: 01 00 00 80 1C 9C [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 80 1C 00 00 00 00 00 FF 0F B1 [21:01:39]RasterBufferAndPrint [21:01:39]line Счет N : (1)210556 [21:01:39]line ИНН: 02508201610067 [21:01:39]line Контрольно-Кассовый Чек [21:01:39]line ПРОДАЖА [21:01:39]line ТРК (МРК, ГНК) : 22 [21:01:39]line Товар: 2710124130 [21:01:39]line Аи-92-К-3 [21:01:39]line 22.430 * 66.90 [21:01:39]line = 1500.57 [21:01:39]line НДС 12% НСП 1% [21:01:39]line > о реализуемом товаре [21:01:39]line ИТОГО: 1500.57 [21:01:39]line НСП 1% : 13.28 [21:01:39]line НДС 12% : 159.35 [21:01:39]line Наличными: 0.00 [21:01:39]line Безнал.: 1500.57 [21:01:39]line Место: АЗС № 86 "Партнер Нефть" [21:01:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:01:39]line СНО: Общий режим [21:01:39]line Чек 526 22.10.2024 21:01 [21:01:39]line Смена: 461 ФФД: 1.0 [21:01:39]line ЗНМ: 0300000155 [21:01:39]line РНМ: 0000000000100030 [21:01:39]line Версия ККМ: 001 [21:01:39]line Платежная система: Mbank [21:01:39]line ФМ: 0000000000965340 [21:01:39]line ФД: 188497 [21:01:39]line ФПД: 217750944011602 [21:01:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210139&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188497&fm=217750944011602&tin=02508201610067®Number=0000000000100030&sum=150057 [21:01:39]written 0, free lines is 4095 [21:01:39]OFD Sender: Processing packet 188497 [packets to send 1062, broken 1061] [21:01:39]ProducePacketName [21:01:39]name=ofd_packets/00188497 [21:01:39]OFD Sender: To server: pG, [21:01:39]CommunicateWithHost lk.salyk.kg:30040 [21:01:39]ConnectInit lk.salyk.kg [21:01:39]Connected sock=7 [21:01:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 3D E4 07 01 61 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 29 4A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 29 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 02 00 00 F4 03 04 00 B3 12 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 51 E0 02 00 35 04 06 00 C6 0B 17 AA D5 52 36 82 F2 DC 6F C7 30 F6 [21:01:39]Write to MH i2c: 01 00 00 A9 1C C5 [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: 01 07 00 A9 1C 00 00 00 00 00 91 0C 69 [21:01:39]RasterBufferAndPrint [21:01:39]line [21:01:39]line [21:01:39]line [21:01:39]line [21:01:39]line [21:01:39]written 0, free lines is 3221 [21:01:39]MH_Cut [21:01:39]Write to MH i2c: D1 01 00 B0 1C 01 9E [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: D1 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: D1 01 00 [21:01:39]MH_I2C_Read... [21:01:39]Read from MH i2c: D1 01 00 B0 1C 00 9D [21:01:39]Write to MH i2c: 01 00 00 B1 1C CD [21:01:39]Write i2c OK [21:01:39]MH_I2C_Read... [21:01:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F6 5E 47 00 48 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 39 36 35 33 34 30 10 04 04 00 51 E0 02 00 F4 03 04 00 9F BC 17 67 B6 04 01 00 00 89 A6 43 11 D5 2C BF B8 [21:01:40]CommunicateWithHost err = 0 [21:01:40]CheckOFDResponse [21:01:40]1017 (14) - 77093643461234 [21:01:40]1041 (16) - 0000000000965340 [21:01:40]1040 (4) - 188497 [21:01:40]1012 (4) - 22.10.2024 14:54 [21:01:40]1206 (1) - 0 [21:01:40]OFD Sender: Remove packet 188497 [21:01:40]ProducePacketName [21:01:40]name=ofd_packets/00188497 [21:01:40]NVStorageDeleteData [21:01:40]OFD Sender: No OFD packet to send [21:01:40]*** Cut start [21:01:40]*** Partial cut [21:01:40]*** CUTSNS_PIN = 1 [21:01:41]*** CUTSNS_PIN = 0 [21:01:41]*** Brake cut motor [21:01:41]Read from MH i2c: 01 [21:01:41]MH_I2C_Read... [21:01:41]*** Stop cut motor [21:01:41]*** Cut end [21:01:41]Read from MH i2c: 01 07 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: 01 07 00 B1 1C 00 00 00 00 00 FF 0F E2 [21:01:41]process_action close_receipt done [21:01:41]requested_data is exist [21:01:41]produce_requested_data [21:01:41]requested_item fm.sn is exist - process it [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 11 00 00 [21:01:41]Write to MH i2c: E2 08 00 B2 1C 80 11 00 00 00 00 00 00 48 [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 17 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 17 00 B2 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 96 [21:01:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:01:41]wFMCommunicate OK [21:01:41]requested_item fd.num is exist - process it [21:01:41]SAM_PROTO_GetFieldsCounters [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 13 00 00 [21:01:41]Write to MH i2c: E2 08 00 B3 1C 80 13 00 00 00 00 00 00 4B [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 62 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 62 00 B3 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0E 02 00 00 5E 04 04 00 0E 02 00 00 57 04 04 00 0F 02 00 00 19 04 04 00 00 00 00 00 90 00 83 [21:01:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 51 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0E 02 00 00 5E 04 04 00 0E 02 00 00 57 04 04 00 0F 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:01:41]wFMCommunicate OK [21:01:41]SAM_PROTO_GetFieldsCounters done [21:01:41]requested_item shift.num is exist - process it [21:01:41]requested_item shift.opened is exist - process it [21:01:41]req_shift_opened [21:01:41]FM_GetShiftState [21:01:41]SAM_PROTO_GetShiftState [21:01:41]wFMCommunicate request_size=4 [21:01:41]MH_SAM_APDU [21:01:41]CAPDU: 80 13 01 00 [21:01:41]Write to MH i2c: E2 08 00 B4 1C 80 13 01 00 00 00 00 00 4D [21:01:41]Write i2c OK [21:01:41]MH_I2C_Read... [21:01:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:01:41]Read from MH i2c: E2 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 0E 00 [21:01:41]MH_I2C_Read... [21:01:41]Read from MH i2c: E2 0E 00 B4 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 42 [21:01:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:01:41]wFMCommunicate OK [21:01:41]SAM_PROTO_GetShiftState done [21:01:41]FM_GetShiftState done [21:01:41]req_shift_opened done [21:01:41]requested_item shift.open_date is exist - process it [21:01:41]req_shift_open_date [21:01:41]req_shift_open_date done [21:01:41]produce_requested_data done [21:01:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188497,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:01:41]process_action_free close_receipt [21:01:41]json_value_free [21:01:41]json_value_free done [21:01:41]process_json_proto returns [21:01:41]Send response to host [21:01:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188497,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:01:41]free response buf [21:01:41]execute_script done [21:01:41]execute_script returns [21:01:41]free content buf [21:01:41]Sock 9.Close socket [21:01:41]Sock 9.Thread stoped [21:01:45]OFD Sender: No OFD packet to send [21:01:50]OFD Sender: No OFD packet to send [21:01:55]OFD Sender: No OFD packet to send [21:02:00]OFD Sender: No OFD packet to send [21:02:05]OFD Sender: No OFD packet to send [21:02:10]OFD Sender: No OFD packet to send [21:02:15]OFD Sender: No OFD packet to send [21:02:20]OFD Sender: No OFD packet to send [21:02:25]OFD Sender: No OFD packet to send [21:02:30]OFD Sender: No OFD packet to send [21:02:35]OFD Sender: No OFD packet to send [21:02:40]OFD Sender: No OFD packet to send [21:02:45]OFD Sender: No OFD packet to send [21:02:50]OFD Sender: No OFD packet to send [21:02:55]OFD Sender: No OFD packet to send [21:02:58]accept exits with 10 [21:02:58]New connection [21:02:58]New thread 3066756452 created [21:02:58]Thread 3066613092 joined [21:02:58]Waiting for new connection... [21:02:58] Sock 10.Parse request [21:02:58]Sock 10.Check first char [21:02:58]Sock 10.First char is OK [21:02:58]request: POST /json_proto HTTP/1.0 [21:02:58]Method: POST [21:02:58]URL: /json_proto [21:02:58]Method is POST - this is cgi request [21:02:58]url: /json_proto [21:02:58]query_string will be loaded in cgi processing [21:02:58]execute_cgi json_proto POST (null) [21:02:58]execute_cgi path=json_proto method=POST [21:02:58]POST find Content-Length [21:02:58]Host: 172.17.42.131:8080 [21:02:58]Content-Length: 678 [21:02:58]Content-Type: application/json [21:02:58] [21:02:58]POST finish read [21:02:58]Found Content-Length = 678 [21:02:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:58]execute_script... [21:02: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)210558", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 10.790, "sum" : 800.62, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:02:58]POST & json_proto [21:02:58]process_json_proto [21:02:58]json parsed OK: [21:02:58]protocol is kg_v1.0 [21:02:58]action value=close_receipt [21:02:58]process_action close_receipt [21:02:58]cmd_close_receipt [21:02:58]MH_GetDate [21:02:58]Write to MH i2c: F0 00 00 B5 1C C0 [21:02:58]Write i2c OK [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: F0 [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: F0 09 00 [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: F0 09 00 B5 1C 00 04 13 18 67 A0 18 CA 66 47 [21:02:58]GetLastDocTimeStamp 1729630899 [21:02:58]current date 1729630980 [21:02:58]FM_GetShiftState [21:02:58]SAM_PROTO_GetShiftState [21:02:58]wFMCommunicate request_size=4 [21:02:58]MH_SAM_APDU [21:02:58]CAPDU: 80 13 01 00 [21:02:58]Write to MH i2c: E2 08 00 B6 1C 80 13 01 00 00 00 00 00 4F [21:02:58]Write i2c OK [21:02:58]MH_I2C_Read... [21:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:02:58]Read from MH i2c: E2 [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: E2 0E 00 [21:02:58]MH_I2C_Read... [21:02:58]Read from MH i2c: E2 0E 00 B6 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 44 [21:02:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:02:58]wFMCommunicate OK [21:02:58]SAM_PROTO_GetShiftState done [21:02:58]FM_GetShiftState done [21:02:58]opened in 1729556094 [21:02:58]opened+sec_in_day 1729642494 [21:02:58]quantity*price = 80061 [21:02:58]sum+1 = 80063 [21:02:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.62 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.02 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 527 22.10.2024 21:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188498 ФПД: 186682547706376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210300&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188498&fm=186682547706376&tin=02508201610067®Number=0000000000100030&sum=80000 [21:02:59]StoreToDocumentArchive [21:02:59]shift 461 fd 188498 [21:02:59]save to /storage/0461/doc_00188498 [21:02:59]save last doc name /storage/0461/doc_00188498 to /storage/kkm_last_doc_name [21:02:59]save OK [21:02:59]Clear old archive folders... [21:02:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:02:59]tlvbuf is 00936590 [21:02:59]SAM_PROTO_ClearQueue [21:02:59]wFMCommunicate request_size=4 [21:02:59]MH_SAM_APDU [21:02:59]CAPDU: 80 09 00 00 [21:02:59]Write to MH i2c: E2 08 00 C3 1C 80 09 00 00 00 00 00 00 51 [21:02:59]Write i2c OK [21:02:59]MH_I2C_Read... [21:02:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:02:59]Read from MH i2c: E2 [21:02:59]MH_I2C_Read... [21:02:59]Read from MH i2c: E2 03 00 [21:02:59]MH_I2C_Read... [21:02:59]Read from MH i2c: E2 03 00 C3 1C 00 90 00 53 [21:02:59]RAPDU: 90 00 [21:02:59]wFMCommunicate OK [21:02:59]SAM_PROTO_ClearQueue done [21:02:59]KKMCreateOFDPacket [21:02:59]OFDProtocolAddRootSTLVToBuf [21:02:59]FM_MakeSignedData [21:02:59]FM_MakeSignedData [21:02:59]SAM_PROTO_SignData [21:02:59]wFMCommunicate request_size=4 [21:02:59]MH_SAM_APDU [21:02:59]CAPDU: 80 0D 01 02 [21:02:59]Write to MH i2c: E2 08 00 C4 1C 80 0D 01 02 00 00 00 00 59 [21:02:59]Write i2c OK [21:02:59]MH_I2C_Read... [21:02:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:02:59]Read from MH i2c: E2 [21:02:59]MH_I2C_Read... [21:02:59]Read from MH i2c: E2 03 00 [21:02:59]MH_I2C_Read... [21:02:59]Read from MH i2c: E2 03 00 C4 1C 00 90 00 54 [21:02:59]RAPDU: 90 00 [21:02:59]wFMCommunicate OK [21:02:59]wFMCommunicate request_size=255 [21:02:59]MH_SAM_APDU [21:02: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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 04 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E0 02 00 35 04 06 00 A9 [21:02:59]Write to MH i2c: E2 02 01 C5 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 04 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E0 02 00 35 04 06 00 A9 00 00 8B [21:02:59]Write i2c OK [21:02:59]MH_I2C_Read... [21:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:00]Read from MH i2c: E2 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 03 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 03 00 C5 1C 00 90 00 55 [21:03:00]RAPDU: 90 00 [21:03:00]wFMCommunicate OK [21:03:00]wFMCommunicate request_size=10 [21:03:00]MH_SAM_APDU [21:03:00]CAPDU: 80 0D 02 02 05 C9 6A F1 1A 08 [21:03:00]Write to MH i2c: E2 0D 00 C6 1C 80 0D 02 02 05 00 C9 6A F1 1A 08 00 00 AC [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:03:00]Read from MH i2c: E2 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 03 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 03 00 C6 1C 00 90 00 56 [21:03:00]RAPDU: 90 00 [21:03:00]wFMCommunicate OK [21:03:00]wFMCommunicate request_size=4 [21:03:00]MH_SAM_APDU [21:03:00]CAPDU: 80 0D 03 02 [21:03:00]Write to MH i2c: E2 08 00 C7 1C 80 0D 03 02 00 00 00 00 5E [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:03:00]Read from MH i2c: E2 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 0B 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 0B 00 C7 1C 00 65 B1 65 A6 7A FE BB B9 90 00 6C [21:03:00]RAPDU: 65 B1 65 A6 7A FE BB B9 90 00 [21:03:00]wFMCommunicate OK [21:03:00]SAM_PROTO_SignData done [21:03:00]FM_MakeSignedData done [21:03:00]CreateOFDProtocolMessage [21:03:00]wFMCommunicate request_size=4 [21:03:00]MH_SAM_APDU [21:03:00]CAPDU: 80 11 00 00 [21:03:00]Write to MH i2c: E2 08 00 C8 1C 80 11 00 00 00 00 00 00 5E [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:00]Read from MH i2c: E2 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 17 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: E2 17 00 C8 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [21:03:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:03:00]wFMCommunicate OK [21:03:00]CreateOFDProtocolMessage done [21:03:00]OFDSenderStorePacket 188498 [21:03:00]StoreOFDPacket docnum=188498 [21:03:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E 2A 07 01 AB 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 04 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E0 02 00 35 04 06 00 A9 C9 6A F1 1A 08 65 B1 65 A6 7A FE BB B9 [21:03:00]CheckFolder [21:03:00]dirname=/storage/ofd_packets [21:03:00]CheckFolder done [21:03:00]ProducePacketName [21:03:00]name=ofd_packets/00188498 [21:03:00]NVStorageSaveData ofd_packets/00188498 [21:03:00]File name is /storage/ofd_packets/00188498 [21:03:00]Write 301 bytes [21:03:00]NVStorageSaveData done [21:03:00]OFDSenderStorePacket done [21:03:00]KKMCreateOFDPacket done [21:03:00]NVStorageSaveData kkm_last_timestamp [21:03:00]File name is /storage/kkm_last_timestamp [21:03:00]Write 4 bytes [21:03:00]NVStorageSaveData done [21:03:00]ExternCall_PrintAddStr [21:03:00]wPrintStart [21:03:00]Write to MH i2c: 01 00 00 C9 1C E5 [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 07 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 07 00 C9 1C 00 00 00 00 00 FF 0F FA [21:03:00]RasterBufferAndPrint [21:03:00]line Счет N : (1)210558 [21:03:00]line ИНН: 02508201610067 [21:03:00]line Контрольно-Кассовый Чек [21:03:00]line ПРОДАЖА [21:03:00]line ТРК (МРК, ГНК) : 13 [21:03:00]line Товар: 2710124500 [21:03:00]line Аи-95-К-3 [21:03:00]line 10.790 * 74.20 [21:03:00]line = 800.62 [21:03:00]line НДС 12% НСП 1% [21:03:00]line > о реализуемом товаре [21:03:00]line ОКРУГЛЕНИЕ: -0.62 [21:03:00]line ИТОГО: 800.00 [21:03:00]line Внесено: 800.00 [21:03:00]line СДАЧА: 0.00 [21:03:00]line НСП 1% : 7.08 [21:03:00]line НДС 12% : 85.02 [21:03:00]line Наличными: 800.00 [21:03:00]line Безнал.: 0.00 [21:03:00]line Место: АЗС № 86 "Партнер Нефть" [21:03:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:03:00]line СНО: Общий режим [21:03:00]line Чек 527 22.10.2024 21:03 [21:03:00]line Смена: 461 ФФД: 1.0 [21:03:00]line ЗНМ: 0300000155 [21:03:00]line РНМ: 0000000000100030 [21:03:00]line Версия ККМ: 001 [21:03:00]line ФМ: 0000000000965340 [21:03:00]line ФД: 188498 [21:03:00]line ФПД: 186682547706376 [21:03:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210300&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188498&fm=186682547706376&tin=02508201610067®Number=0000000000100030&sum=80000 [21:03:00]written 0, free lines is 4095 [21:03:00]OFD Sender: Processing packet 188498 [packets to send 1062, broken 1061] [21:03:00]ProducePacketName [21:03:00]name=ofd_packets/00188498 [21:03:00]OFD Sender: To server: pG, [21:03:00]CommunicateWithHost lk.salyk.kg:30040 [21:03:00]ConnectInit lk.salyk.kg [21:03:00]Connected sock=9 [21:03:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 8E 2A 07 01 AB 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 26 2A 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 BE 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 36 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 02 00 00 F4 03 04 00 04 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 52 E0 02 00 35 04 06 00 A9 C9 6A F1 1A 08 65 B1 65 A6 7A FE BB B9 [21:03:00]Write to MH i2c: 01 00 00 F4 1C 10 [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 07 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: 01 07 00 F4 1C 00 00 00 00 00 68 0C 8B [21:03:00]RasterBufferAndPrint [21:03:00]line [21:03:00]line [21:03:00]line [21:03:00]line [21:03:00]line [21:03:00]written 0, free lines is 3179 [21:03:00]MH_Cut [21:03:00]Write to MH i2c: D1 01 00 FB 1C 01 E9 [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: D1 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: D1 01 00 [21:03:00]MH_I2C_Read... [21:03:00]Read from MH i2c: D1 01 00 FB 1C 00 E8 [21:03:00]Write to MH i2c: 01 00 00 FC 1C 18 [21:03:00]Write i2c OK [21:03:00]MH_I2C_Read... [21:03:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 06 D6 47 00 19 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 39 36 35 33 34 30 10 04 04 00 52 E0 02 00 F4 03 04 00 F0 BC 17 67 B6 04 01 00 00 E9 9C C9 C4 54 A2 0C ED [21:03:00]CommunicateWithHost err = 0 [21:03:00]CheckOFDResponse [21:03:00]1017 (14) - 77093643461234 [21:03:00]1041 (16) - 0000000000965340 [21:03:00]1040 (4) - 188498 [21:03:00]1012 (4) - 22.10.2024 14:55 [21:03:00]1206 (1) - 0 [21:03:00]OFD Sender: Remove packet 188498 [21:03:00]ProducePacketName [21:03:00]name=ofd_packets/00188498 [21:03:00]NVStorageDeleteData [21:03:01]OFD Sender: No OFD packet to send [21:03:02]*** Cut start [21:03:02]*** Partial cut [21:03:02]*** CUTSNS_PIN = 1 [21:03:02]*** CUTSNS_PIN = 0 [21:03:02]*** Brake cut motor [21:03:02]Read from MH i2c: 01 [21:03:02]MH_I2C_Read... [21:03:02]*** Stop cut motor [21:03:02]*** Cut end [21:03:02]Read from MH i2c: 01 07 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: 01 07 00 FC 1C 00 00 00 00 00 FF 0F 2D [21:03:02]process_action close_receipt done [21:03:02]requested_data is exist [21:03:02]produce_requested_data [21:03:02]requested_item fm.sn is exist - process it [21:03:02]wFMCommunicate request_size=4 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 11 00 00 [21:03:02]Write to MH i2c: E2 08 00 FD 1C 80 11 00 00 00 00 00 00 93 [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 17 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 17 00 FD 1C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E1 [21:03:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:03:02]wFMCommunicate OK [21:03:02]requested_item fd.num is exist - process it [21:03:02]SAM_PROTO_GetFieldsCounters [21:03:02]wFMCommunicate request_size=4 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 13 00 00 [21:03:02]Write to MH i2c: E2 08 00 FE 1C 80 13 00 00 00 00 00 00 96 [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 62 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 62 00 FE 1C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0F 02 00 00 5E 04 04 00 0F 02 00 00 57 04 04 00 10 02 00 00 19 04 04 00 00 00 00 00 90 00 D2 [21:03:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 52 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 0F 02 00 00 5E 04 04 00 0F 02 00 00 57 04 04 00 10 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:03:02]wFMCommunicate OK [21:03:02]SAM_PROTO_GetFieldsCounters done [21:03:02]requested_item shift.num is exist - process it [21:03:02]requested_item shift.opened is exist - process it [21:03:02]req_shift_opened [21:03:02]FM_GetShiftState [21:03:02]SAM_PROTO_GetShiftState [21:03:02]wFMCommunicate request_size=4 [21:03:02]MH_SAM_APDU [21:03:02]CAPDU: 80 13 01 00 [21:03:02]Write to MH i2c: E2 08 00 FF 1C 80 13 01 00 00 00 00 00 98 [21:03:02]Write i2c OK [21:03:02]MH_I2C_Read... [21:03:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:03:02]Read from MH i2c: E2 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 0E 00 [21:03:02]MH_I2C_Read... [21:03:02]Read from MH i2c: E2 0E 00 FF 1C 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8D [21:03:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:03:02]wFMCommunicate OK [21:03:02]SAM_PROTO_GetShiftState done [21:03:02]FM_GetShiftState done [21:03:02]req_shift_opened done [21:03:02]requested_item shift.open_date is exist - process it [21:03:02]req_shift_open_date [21:03:02]req_shift_open_date done [21:03:02]produce_requested_data done [21:03:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188498,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:03:02]process_action_free close_receipt [21:03:02]json_value_free [21:03:02]json_value_free done [21:03:02]process_json_proto returns [21:03:02]Send response to host [21:03:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188498,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:03:02]free response buf [21:03:02]execute_script done [21:03:02]execute_script returns [21:03:02]free content buf [21:03:02]Sock 10.Close socket [21:03:02]Sock 10.Thread stoped [21:03:06]OFD Sender: No OFD packet to send [21:03:11]OFD Sender: No OFD packet to send [21:03:16]OFD Sender: No OFD packet to send [21:03:21]OFD Sender: No OFD packet to send [21:03:26]OFD Sender: No OFD packet to send [21:03:31]OFD Sender: No OFD packet to send [21:03:36]OFD Sender: No OFD packet to send [21:03:41]OFD Sender: No OFD packet to send [21:03:46]OFD Sender: No OFD packet to send [21:03:51]OFD Sender: No OFD packet to send [21:03:56]OFD Sender: No OFD packet to send [21:04:01]OFD Sender: No OFD packet to send [21:04:06]OFD Sender: No OFD packet to send [21:04:11]OFD Sender: No OFD packet to send [21:04:16]OFD Sender: No OFD packet to send [21:04:21]OFD Sender: No OFD packet to send [21:04:26]OFD Sender: No OFD packet to send [21:04:31]OFD Sender: No OFD packet to send [21:04:36]OFD Sender: No OFD packet to send [21:04:38]accept exits with 7 [21:04:38]New connection [21:04:38]New thread 3066613092 created [21:04:38]Thread 3066756452 joined [21:04:38]Waiting for new connection... [21:04:38] Sock 7.Parse request [21:04:38]Sock 7.Check first char [21:04:38]Sock 7.First char is OK [21:04:38]request: POST /json_proto HTTP/1.0 [21:04:38]Method: POST [21:04:38]URL: /json_proto [21:04:38]Method is POST - this is cgi request [21:04:38]url: /json_proto [21:04:38]query_string will be loaded in cgi processing [21:04:38]execute_cgi json_proto POST (null) [21:04:38]execute_cgi path=json_proto method=POST [21:04:38]POST find Content-Length [21:04:38]Host: 172.17.42.131:8080 [21:04:38]Content-Length: 677 [21:04:38]Content-Type: application/json [21:04:38] [21:04:38]POST finish read [21:04:38]Found Content-Length = 677 [21:04:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [21:04:38]execute_script... [21:04: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)210559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "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" ] } } [21:04:38]POST & json_proto [21:04:38]process_json_proto [21:04:38]json parsed OK: [21:04:38]protocol is kg_v1.0 [21:04:38]action value=close_receipt [21:04:38]process_action close_receipt [21:04:38]cmd_close_receipt [21:04:38]MH_GetDate [21:04:38]Write to MH i2c: F0 00 00 00 1D 0C [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: F0 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: F0 09 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: F0 09 00 00 1D 00 68 13 18 67 A0 18 CA 66 F7 [21:04:38]GetLastDocTimeStamp 1729630980 [21:04:38]current date 1729631080 [21:04:38]FM_GetShiftState [21:04:38]SAM_PROTO_GetShiftState [21:04:38]wFMCommunicate request_size=4 [21:04:38]MH_SAM_APDU [21:04:38]CAPDU: 80 13 01 00 [21:04:38]Write to MH i2c: E2 08 00 01 1D 80 13 01 00 00 00 00 00 9B [21:04:38]Write i2c OK [21:04:38]MH_I2C_Read... [21:04:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:38]Read from MH i2c: E2 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0E 00 [21:04:38]MH_I2C_Read... [21:04:38]Read from MH i2c: E2 0E 00 01 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 90 [21:04:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:04:38]wFMCommunicate OK [21:04:38]SAM_PROTO_GetShiftState done [21:04:38]FM_GetShiftState done [21:04:38]opened in 1729556094 [21:04:38]opened+sec_in_day 1729642494 [21:04:38]quantity*price = 50010 [21:04:38]sum+1 = 50012 [21:04:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 528 22.10.2024 21:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188499 ФПД: 50646490725422 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210440&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188499&fm=50646490725422&tin=02508201610067®Number=0000000000100030&sum=50000 [21:04:39]StoreToDocumentArchive [21:04:39]shift 461 fd 188499 [21:04:39]save to /storage/0461/doc_00188499 [21:04:39]save last doc name /storage/0461/doc_00188499 to /storage/kkm_last_doc_name [21:04:39]save OK [21:04:39]Clear old archive folders... [21:04:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:04:39]tlvbuf is 00936A10 [21:04:39]SAM_PROTO_ClearQueue [21:04:39]wFMCommunicate request_size=4 [21:04:39]MH_SAM_APDU [21:04:39]CAPDU: 80 09 00 00 [21:04:39]Write to MH i2c: E2 08 00 0E 1D 80 09 00 00 00 00 00 00 9D [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:04:39]Read from MH i2c: E2 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: E2 03 00 [21:04:39]MH_I2C_Read... [21:04:39]Read from MH i2c: E2 03 00 0E 1D 00 90 00 9F [21:04:39]RAPDU: 90 00 [21:04:39]wFMCommunicate OK [21:04:39]SAM_PROTO_ClearQueue done [21:04:39]KKMCreateOFDPacket [21:04:39]OFDProtocolAddRootSTLVToBuf [21:04:39]FM_MakeSignedData [21:04:39]FM_MakeSignedData [21:04:39]SAM_PROTO_SignData [21:04:39]wFMCommunicate request_size=4 [21:04:39]MH_SAM_APDU [21:04:39]CAPDU: 80 0D 01 02 [21:04:39]Write to MH i2c: E2 08 00 0F 1D 80 0D 01 02 00 00 00 00 A5 [21:04:39]Write i2c OK [21:04:39]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 0F 1D 00 90 00 A0 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=255 [21:04:40]MH_SAM_APDU [21:04: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 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 10 02 00 00 F4 03 04 00 68 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E0 02 00 35 04 06 00 2E [21:04:40]Write to MH i2c: E2 02 01 10 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 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 10 02 00 00 F4 03 04 00 68 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E0 02 00 35 04 06 00 2E 00 00 2D [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 10 1D 00 90 00 A1 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=10 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 02 02 05 10 0E 16 BC 2E [21:04:40]Write to MH i2c: E2 0D 00 11 1D 80 0D 02 02 05 00 10 0E 16 BC 2E 00 00 D0 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 03 00 11 1D 00 90 00 A2 [21:04:40]RAPDU: 90 00 [21:04:40]wFMCommunicate OK [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 0D 03 02 [21:04:40]Write to MH i2c: E2 08 00 12 1D 80 0D 03 02 00 00 00 00 AA [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 0B 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 0B 00 12 1D 00 34 92 A7 FA BA 25 3B 31 90 00 5D [21:04:40]RAPDU: 34 92 A7 FA BA 25 3B 31 90 00 [21:04:40]wFMCommunicate OK [21:04:40]SAM_PROTO_SignData done [21:04:40]FM_MakeSignedData done [21:04:40]CreateOFDProtocolMessage [21:04:40]wFMCommunicate request_size=4 [21:04:40]MH_SAM_APDU [21:04:40]CAPDU: 80 11 00 00 [21:04:40]Write to MH i2c: E2 08 00 13 1D 80 11 00 00 00 00 00 00 AA [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:40]Read from MH i2c: E2 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 17 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: E2 17 00 13 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [21:04:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:04:40]wFMCommunicate OK [21:04:40]CreateOFDProtocolMessage done [21:04:40]OFDSenderStorePacket 188499 [21:04:40]StoreOFDPacket docnum=188499 [21:04:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 6A 07 01 28 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 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 10 02 00 00 F4 03 04 00 68 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E0 02 00 35 04 06 00 2E 10 0E 16 BC 2E 34 92 A7 FA BA 25 3B 31 [21:04:40]CheckFolder [21:04:40]dirname=/storage/ofd_packets [21:04:40]CheckFolder done [21:04:40]ProducePacketName [21:04:40]name=ofd_packets/00188499 [21:04:40]NVStorageSaveData ofd_packets/00188499 [21:04:40]File name is /storage/ofd_packets/00188499 [21:04:40]Write 301 bytes [21:04:40]NVStorageSaveData done [21:04:40]OFDSenderStorePacket done [21:04:40]KKMCreateOFDPacket done [21:04:40]NVStorageSaveData kkm_last_timestamp [21:04:40]File name is /storage/kkm_last_timestamp [21:04:40]Write 4 bytes [21:04:40]NVStorageSaveData done [21:04:40]ExternCall_PrintAddStr [21:04:40]wPrintStart [21:04:40]Write to MH i2c: 01 00 00 14 1D 31 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 14 1D 00 00 00 00 00 FF 0F 46 [21:04:40]RasterBufferAndPrint [21:04:40]line Счет N : (1)210559 [21:04:40]line ИНН: 02508201610067 [21:04:40]line Контрольно-Кассовый Чек [21:04:40]line ПРОДАЖА [21:04:40]line ТРК (МРК, ГНК) : 23 [21:04:40]line Товар: 2710124500 [21:04:40]line Аи-95-К-3 [21:04:40]line 6.740 * 74.20 [21:04:40]line = 500.11 [21:04:40]line НДС 12% НСП 1% [21:04:40]line > о реализуемом товаре [21:04:40]line ОКРУГЛЕНИЕ: -0.11 [21:04:40]line ИТОГО: 500.00 [21:04:40]line Внесено: 500.00 [21:04:40]line СДАЧА: 0.00 [21:04:40]line НСП 1% : 4.43 [21:04:40]line НДС 12% : 53.11 [21:04:40]line Наличными: 500.00 [21:04:40]line Безнал.: 0.00 [21:04:40]line Место: АЗС № 86 "Партнер Нефть" [21:04:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:04:40]line СНО: Общий режим [21:04:40]line Чек 528 22.10.2024 21:04 [21:04:40]line Смена: 461 ФФД: 1.0 [21:04:40]line ЗНМ: 0300000155 [21:04:40]line РНМ: 0000000000100030 [21:04:40]line Версия ККМ: 001 [21:04:40]line ФМ: 0000000000965340 [21:04:40]line ФД: 188499 [21:04:40]line ФПД: 50646490725422 [21:04:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210440&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188499&fm=50646490725422&tin=02508201610067®Number=0000000000100030&sum=50000 [21:04:40]written 0, free lines is 4095 [21:04:40]OFD Sender: Processing packet 188499 [packets to send 1062, broken 1061] [21:04:40]ProducePacketName [21:04:40]name=ofd_packets/00188499 [21:04:40]OFD Sender: To server: pG, [21:04:40]CommunicateWithHost lk.salyk.kg:30040 [21:04:40]ConnectInit lk.salyk.kg [21:04:40]Connected sock=10 [21:04:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 FD 6A 07 01 28 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 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 10 02 00 00 F4 03 04 00 68 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 53 E0 02 00 35 04 06 00 2E 10 0E 16 BC 2E 34 92 A7 FA BA 25 3B 31 [21:04:40]Write to MH i2c: 01 00 00 3F 1D 5C [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: 01 07 00 3F 1D 00 00 00 00 00 60 0C CF [21:04:40]RasterBufferAndPrint [21:04:40]line [21:04:40]line [21:04:40]line [21:04:40]line [21:04:40]line [21:04:40]written 0, free lines is 3173 [21:04:40]MH_Cut [21:04:40]Write to MH i2c: D1 01 00 46 1D 01 35 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: D1 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: D1 01 00 [21:04:40]MH_I2C_Read... [21:04:40]Read from MH i2c: D1 01 00 46 1D 00 34 [21:04:40]Write to MH i2c: 01 00 00 47 1D 64 [21:04:40]Write i2c OK [21:04:40]MH_I2C_Read... [21:04:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0E D7 47 00 31 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 39 36 35 33 34 30 10 04 04 00 53 E0 02 00 F4 03 04 00 54 BD 17 67 B6 04 01 00 00 CB 85 FA ED 6E FD 8B 17 [21:04:41]CommunicateWithHost err = 0 [21:04:41]CheckOFDResponse [21:04:41]1017 (14) - 77093643461234 [21:04:41]1041 (16) - 0000000000965340 [21:04:41]1040 (4) - 188499 [21:04:41]1012 (4) - 22.10.2024 14:57 [21:04:41]1206 (1) - 0 [21:04:41]OFD Sender: Remove packet 188499 [21:04:41]ProducePacketName [21:04:41]name=ofd_packets/00188499 [21:04:41]NVStorageDeleteData [21:04:41]OFD Sender: No OFD packet to send [21:04:42]*** Cut start [21:04:42]*** Partial cut [21:04:42]*** CUTSNS_PIN = 1 [21:04:42]*** CUTSNS_PIN = 0 [21:04:42]*** Brake cut motor [21:04:42]Read from MH i2c: 01 [21:04:42]MH_I2C_Read... [21:04:42]*** Stop cut motor [21:04:42]*** Cut end [21:04:42]Read from MH i2c: 01 07 00 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: 01 07 00 47 1D 00 00 00 00 00 FF 0F 79 [21:04:42]process_action close_receipt done [21:04:42]requested_data is exist [21:04:42]produce_requested_data [21:04:42]requested_item fm.sn is exist - process it [21:04:42]wFMCommunicate request_size=4 [21:04:42]MH_SAM_APDU [21:04:42]CAPDU: 80 11 00 00 [21:04:42]Write to MH i2c: E2 08 00 48 1D 80 11 00 00 00 00 00 00 DF [21:04:42]Write i2c OK [21:04:42]MH_I2C_Read... [21:04:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:04:42]Read from MH i2c: E2 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: E2 17 00 [21:04:42]MH_I2C_Read... [21:04:42]Read from MH i2c: E2 17 00 48 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [21:04:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:04:42]wFMCommunicate OK [21:04:42]requested_item fd.num is exist - process it [21:04:42]SAM_PROTO_GetFieldsCounters [21:04:42]wFMCommunicate request_size=4 [21:04:42]MH_SAM_APDU [21:04:42]CAPDU: 80 13 00 00 [21:04:42]Write to MH i2c: E2 08 00 49 1D 80 13 00 00 00 00 00 00 E2 [21:04:42]Write i2c OK [21:04:42]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 62 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 62 00 49 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 10 02 00 00 5E 04 04 00 10 02 00 00 57 04 04 00 11 02 00 00 19 04 04 00 00 00 00 00 90 00 22 [21:04:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 53 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 10 02 00 00 5E 04 04 00 10 02 00 00 57 04 04 00 11 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:04:43]wFMCommunicate OK [21:04:43]SAM_PROTO_GetFieldsCounters done [21:04:43]requested_item shift.num is exist - process it [21:04:43]requested_item shift.opened is exist - process it [21:04:43]req_shift_opened [21:04:43]FM_GetShiftState [21:04:43]SAM_PROTO_GetShiftState [21:04:43]wFMCommunicate request_size=4 [21:04:43]MH_SAM_APDU [21:04:43]CAPDU: 80 13 01 00 [21:04:43]Write to MH i2c: E2 08 00 4A 1D 80 13 01 00 00 00 00 00 E4 [21:04:43]Write i2c OK [21:04:43]MH_I2C_Read... [21:04:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:04:43]Read from MH i2c: E2 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0E 00 [21:04:43]MH_I2C_Read... [21:04:43]Read from MH i2c: E2 0E 00 4A 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D9 [21:04:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:04:43]wFMCommunicate OK [21:04:43]SAM_PROTO_GetShiftState done [21:04:43]FM_GetShiftState done [21:04:43]req_shift_opened done [21:04:43]requested_item shift.open_date is exist - process it [21:04:43]req_shift_open_date [21:04:43]req_shift_open_date done [21:04:43]produce_requested_data done [21:04:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188499,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:04:43]process_action_free close_receipt [21:04:43]json_value_free [21:04:43]json_value_free done [21:04:43]process_json_proto returns [21:04:43]Send response to host [21:04:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188499,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:04:43]free response buf [21:04:43]execute_script done [21:04:43]execute_script returns [21:04:43]free content buf [21:04:43]Sock 7.Close socket [21:04:43]Sock 7.Thread stoped [21:04:46]OFD Sender: No OFD packet to send [21:04:51]OFD Sender: No OFD packet to send [21:04:56]OFD Sender: No OFD packet to send [21:05:01]OFD Sender: No OFD packet to send [21:05:06]OFD Sender: No OFD packet to send [21:05:11]OFD Sender: No OFD packet to send [21:05:16]OFD Sender: No OFD packet to send [21:05:20]accept exits with 9 [21:05:20]New connection [21:05:20]New thread 3066756452 created [21:05:20]Thread 3066613092 joined [21:05:20]Waiting for new connection... [21:05:20] Sock 9.Parse request [21:05:20]Sock 9.Check first char [21:05:20]Sock 9.First char is OK [21:05:20]request: POST /json_proto HTTP/1.0 [21:05:20]Method: POST [21:05:20]URL: /json_proto [21:05:20]Method is POST - this is cgi request [21:05:20]url: /json_proto [21:05:20]query_string will be loaded in cgi processing [21:05:20]execute_cgi json_proto POST (null) [21:05:20]execute_cgi path=json_proto method=POST [21:05:20]POST find Content-Length [21:05:20]Host: 172.17.42.131:8080 [21:05:20]Content-Length: 682 [21:05:20]Content-Type: application/json [21:05:20] [21:05:20]POST finish read [21:05:20]Found Content-Length = 682 [21:05:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:20]execute_script... [21:05:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210560", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:05:20]POST & json_proto [21:05:20]process_json_proto [21:05:20]json parsed OK: [21:05:20]protocol is kg_v1.0 [21:05:20]action value=close_receipt [21:05:20]process_action close_receipt [21:05:20]cmd_close_receipt [21:05:20]MH_GetDate [21:05:20]Write to MH i2c: F0 00 00 4B 1D 57 [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: F0 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: F0 09 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: F0 09 00 4B 1D 00 92 13 18 67 A0 18 CA 66 6C [21:05:20]GetLastDocTimeStamp 1729631080 [21:05:20]current date 1729631122 [21:05:20]FM_GetShiftState [21:05:20]SAM_PROTO_GetShiftState [21:05:20]wFMCommunicate request_size=4 [21:05:20]MH_SAM_APDU [21:05:20]CAPDU: 80 13 01 00 [21:05:20]Write to MH i2c: E2 08 00 4C 1D 80 13 01 00 00 00 00 00 E6 [21:05:20]Write i2c OK [21:05:20]MH_I2C_Read... [21:05:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:20]Read from MH i2c: E2 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 0E 00 [21:05:20]MH_I2C_Read... [21:05:20]Read from MH i2c: E2 0E 00 4C 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [21:05:20]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:05:20]wFMCommunicate OK [21:05:20]SAM_PROTO_GetShiftState done [21:05:20]FM_GetShiftState done [21:05:20]opened in 1729556094 [21:05:20]opened+sec_in_day 1729642494 [21:05:20]quantity*price = 100015 [21:05:20]sum+1 = 100017 [21:05:20]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 529 22.10.2024 21:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188500 ФПД: 238181614741283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188500&fm=238181614741283&tin=02508201610067®Number=0000000000100030&sum=100000 [21:05:21]StoreToDocumentArchive [21:05:21]shift 461 fd 188500 [21:05:21]save to /storage/0461/doc_00188500 [21:05:21]save last doc name /storage/0461/doc_00188500 to /storage/kkm_last_doc_name [21:05:21]save OK [21:05:21]Clear old archive folders... [21:05:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:05:21]tlvbuf is B6E78540 [21:05:21]SAM_PROTO_ClearQueue [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 09 00 00 [21:05:21]Write to MH i2c: E2 08 00 59 1D 80 09 00 00 00 00 00 00 E8 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:05:21]Read from MH i2c: E2 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 [21:05:21]MH_I2C_Read... [21:05:21]Read from MH i2c: E2 03 00 59 1D 00 90 00 EA [21:05:21]RAPDU: 90 00 [21:05:21]wFMCommunicate OK [21:05:21]SAM_PROTO_ClearQueue done [21:05:21]KKMCreateOFDPacket [21:05:21]OFDProtocolAddRootSTLVToBuf [21:05:21]FM_MakeSignedData [21:05:21]FM_MakeSignedData [21:05:21]SAM_PROTO_SignData [21:05:21]wFMCommunicate request_size=4 [21:05:21]MH_SAM_APDU [21:05:21]CAPDU: 80 0D 01 02 [21:05:21]Write to MH i2c: E2 08 00 5A 1D 80 0D 01 02 00 00 00 00 F0 [21:05:21]Write i2c OK [21:05:21]MH_I2C_Read... [21:05:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 5A 1D 00 90 00 EB [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]wFMCommunicate request_size=255 [21:05:22]MH_SAM_APDU [21:05: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 92 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E0 02 00 35 04 06 00 D8 [21:05:22]Write to MH i2c: E2 02 01 5B 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 92 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E0 02 00 35 04 06 00 D8 00 00 70 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 5B 1D 00 90 00 EC [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]wFMCommunicate request_size=10 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 0D 02 02 05 9F FA 89 E7 23 [21:05:22]Write to MH i2c: E2 0D 00 5C 1D 80 0D 02 02 05 00 9F FA 89 E7 23 00 00 29 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 03 00 5C 1D 00 90 00 ED [21:05:22]RAPDU: 90 00 [21:05:22]wFMCommunicate OK [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 0D 03 02 [21:05:22]Write to MH i2c: E2 08 00 5D 1D 80 0D 03 02 00 00 00 00 F5 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0B 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 0B 00 5D 1D 00 65 26 90 88 D7 23 EE B9 90 00 3A [21:05:22]RAPDU: 65 26 90 88 D7 23 EE B9 90 00 [21:05:22]wFMCommunicate OK [21:05:22]SAM_PROTO_SignData done [21:05:22]FM_MakeSignedData done [21:05:22]CreateOFDProtocolMessage [21:05:22]wFMCommunicate request_size=4 [21:05:22]MH_SAM_APDU [21:05:22]CAPDU: 80 11 00 00 [21:05:22]Write to MH i2c: E2 08 00 5E 1D 80 11 00 00 00 00 00 00 F5 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:22]Read from MH i2c: E2 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 17 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: E2 17 00 5E 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [21:05:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:05:22]wFMCommunicate OK [21:05:22]CreateOFDProtocolMessage done [21:05:22]OFDSenderStorePacket 188500 [21:05:22]StoreOFDPacket docnum=188500 [21:05:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD 4B 07 01 42 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 92 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E0 02 00 35 04 06 00 D8 9F FA 89 E7 23 65 26 90 88 D7 23 EE B9 [21:05:22]CheckFolder [21:05:22]dirname=/storage/ofd_packets [21:05:22]CheckFolder done [21:05:22]ProducePacketName [21:05:22]name=ofd_packets/00188500 [21:05:22]NVStorageSaveData ofd_packets/00188500 [21:05:22]File name is /storage/ofd_packets/00188500 [21:05:22]Write 301 bytes [21:05:22]NVStorageSaveData done [21:05:22]OFDSenderStorePacket done [21:05:22]KKMCreateOFDPacket done [21:05:22]NVStorageSaveData kkm_last_timestamp [21:05:22]File name is /storage/kkm_last_timestamp [21:05:22]Write 4 bytes [21:05:22]NVStorageSaveData done [21:05:22]ExternCall_PrintAddStr [21:05:22]wPrintStart [21:05:22]Write to MH i2c: 01 00 00 5F 1D 7C [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 5F 1D 00 00 00 00 00 FF 0F 91 [21:05:22]RasterBufferAndPrint [21:05:22]line Счет N : (1)210560 [21:05:22]line ИНН: 02508201610067 [21:05:22]line Контрольно-Кассовый Чек [21:05:22]line ПРОДАЖА [21:05:22]line ТРК (МРК, ГНК) : 32 [21:05:22]line Товар: 2710124130 [21:05:22]line Аи-92-К-3 [21:05:22]line 14.950 * 66.90 [21:05:22]line = 1000.16 [21:05:22]line НДС 12% НСП 1% [21:05:22]line > о реализуемом товаре [21:05:22]line ОКРУГЛЕНИЕ: -0.16 [21:05:22]line ИТОГО: 1000.00 [21:05:22]line Внесено: 1000.00 [21:05:22]line СДАЧА: 0.00 [21:05:22]line НСП 1% : 8.85 [21:05:22]line НДС 12% : 106.21 [21:05:22]line Наличными: 1000.00 [21:05:22]line Безнал.: 0.00 [21:05:22]line Место: АЗС № 86 "Партнер Нефть" [21:05:22]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:05:22]line СНО: Общий режим [21:05:22]line Чек 529 22.10.2024 21:05 [21:05:22]line Смена: 461 ФФД: 1.0 [21:05:22]line ЗНМ: 0300000155 [21:05:22]line РНМ: 0000000000100030 [21:05:22]line Версия ККМ: 001 [21:05:22]line ФМ: 0000000000965340 [21:05:22]line ФД: 188500 [21:05:22]line ФПД: 238181614741283 [21:05:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188500&fm=238181614741283&tin=02508201610067®Number=0000000000100030&sum=100000 [21:05:22]written 0, free lines is 4095 [21:05:22]OFD Sender: Processing packet 188500 [packets to send 1062, broken 1061] [21:05:22]ProducePacketName [21:05:22]name=ofd_packets/00188500 [21:05:22]OFD Sender: To server: pG, [21:05:22]CommunicateWithHost lk.salyk.kg:30040 [21:05:22]ConnectInit lk.salyk.kg [21:05:22]Write to MH i2c: 01 00 00 8A 1D A7 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: 01 07 00 8A 1D 00 00 00 00 00 5F 0C 19 [21:05:22]RasterBufferAndPrint [21:05:22]line [21:05:22]line [21:05:22]line [21:05:22]line [21:05:22]line [21:05:22]written 0, free lines is 3171 [21:05:22]MH_Cut [21:05:22]Write to MH i2c: D1 01 00 91 1D 01 80 [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: D1 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: D1 01 00 [21:05:22]MH_I2C_Read... [21:05:22]Read from MH i2c: D1 01 00 91 1D 00 7F [21:05:22]Write to MH i2c: 01 00 00 92 1D AF [21:05:22]Write i2c OK [21:05:22]MH_I2C_Read... [21:05:23]Connected sock=11 [21:05:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 CD 4B 07 01 42 E4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 02 00 00 F4 03 04 00 92 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 54 E0 02 00 35 04 06 00 D8 9F FA 89 E7 23 65 26 90 88 D7 23 EE B9 [21:05:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E1 D6 47 00 85 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 39 36 35 33 34 30 10 04 04 00 54 E0 02 00 F4 03 04 00 7F BD 17 67 B6 04 01 00 00 C5 D7 AB 85 A4 5D B8 4A [21:05:23]CommunicateWithHost err = 0 [21:05:23]CheckOFDResponse [21:05:23]1017 (14) - 77093643461234 [21:05:23]1041 (16) - 0000000000965340 [21:05:23]1040 (4) - 188500 [21:05:23]1012 (4) - 22.10.2024 14:58 [21:05:23]1206 (1) - 0 [21:05:23]OFD Sender: Remove packet 188500 [21:05:23]ProducePacketName [21:05:23]name=ofd_packets/00188500 [21:05:23]NVStorageDeleteData [21:05:23]OFD Sender: No OFD packet to send [21:05:24]*** Cut start [21:05:24]*** Partial cut [21:05:24]*** CUTSNS_PIN = 1 [21:05:24]*** CUTSNS_PIN = 0 [21:05:24]*** Brake cut motor [21:05:24]Read from MH i2c: 01 [21:05:24]MH_I2C_Read... [21:05:24]*** Stop cut motor [21:05:24]*** Cut end [21:05:24]Read from MH i2c: 01 07 00 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: 01 07 00 92 1D 00 00 00 00 00 FF 0F C4 [21:05:24]process_action close_receipt done [21:05:24]requested_data is exist [21:05:24]produce_requested_data [21:05:24]requested_item fm.sn is exist - process it [21:05:24]wFMCommunicate request_size=4 [21:05:24]MH_SAM_APDU [21:05:24]CAPDU: 80 11 00 00 [21:05:24]Write to MH i2c: E2 08 00 93 1D 80 11 00 00 00 00 00 00 2A [21:05:24]Write i2c OK [21:05:24]MH_I2C_Read... [21:05:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:05:24]Read from MH i2c: E2 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: E2 17 00 [21:05:24]MH_I2C_Read... [21:05:24]Read from MH i2c: E2 17 00 93 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [21:05:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:05:24]wFMCommunicate OK [21:05:24]requested_item fd.num is exist - process it [21:05:24]SAM_PROTO_GetFieldsCounters [21:05:24]wFMCommunicate request_size=4 [21:05:24]MH_SAM_APDU [21:05:24]CAPDU: 80 13 00 00 [21:05:24]Write to MH i2c: E2 08 00 94 1D 80 13 00 00 00 00 00 00 2D [21:05:24]Write i2c OK [21:05:24]MH_I2C_Read... [21:05:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:05:25]Read from MH i2c: E2 [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: E2 62 00 [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: E2 62 00 94 1D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 11 02 00 00 5E 04 04 00 11 02 00 00 57 04 04 00 12 02 00 00 19 04 04 00 00 00 00 00 90 00 71 [21:05:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 54 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 11 02 00 00 5E 04 04 00 11 02 00 00 57 04 04 00 12 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:05:25]wFMCommunicate OK [21:05:25]SAM_PROTO_GetFieldsCounters done [21:05:25]requested_item shift.num is exist - process it [21:05:25]requested_item shift.opened is exist - process it [21:05:25]req_shift_opened [21:05:25]FM_GetShiftState [21:05:25]SAM_PROTO_GetShiftState [21:05:25]wFMCommunicate request_size=4 [21:05:25]MH_SAM_APDU [21:05:25]CAPDU: 80 13 01 00 [21:05:25]Write to MH i2c: E2 08 00 95 1D 80 13 01 00 00 00 00 00 2F [21:05:25]Write i2c OK [21:05:25]MH_I2C_Read... [21:05:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:05:25]Read from MH i2c: E2 [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: E2 0E 00 [21:05:25]MH_I2C_Read... [21:05:25]Read from MH i2c: E2 0E 00 95 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [21:05:25]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:05:25]wFMCommunicate OK [21:05:25]SAM_PROTO_GetShiftState done [21:05:25]FM_GetShiftState done [21:05:25]req_shift_opened done [21:05:25]requested_item shift.open_date is exist - process it [21:05:25]req_shift_open_date [21:05:25]req_shift_open_date done [21:05:25]produce_requested_data done [21:05:25]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188500,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:05:25]process_action_free close_receipt [21:05:25]json_value_free [21:05:25]json_value_free done [21:05:25]process_json_proto returns [21:05:25]Send response to host [21:05:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188500,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:05:25]free response buf [21:05:25]execute_script done [21:05:25]execute_script returns [21:05:25]free content buf [21:05:25]Sock 9.Close socket [21:05:25]Sock 9.Thread stoped [21:05:28]OFD Sender: No OFD packet to send [21:05:33]OFD Sender: No OFD packet to send [21:05:38]OFD Sender: No OFD packet to send [21:05:44]OFD Sender: No OFD packet to send [21:05:49]OFD Sender: No OFD packet to send [21:05:54]OFD Sender: No OFD packet to send [21:05:59]OFD Sender: No OFD packet to send [21:06:04]OFD Sender: No OFD packet to send [21:06:09]OFD Sender: No OFD packet to send [21:06:14]OFD Sender: No OFD packet to send [21:06:19]OFD Sender: No OFD packet to send [21:06:24]OFD Sender: No OFD packet to send [21:06:29]OFD Sender: No OFD packet to send [21:06:34]OFD Sender: No OFD packet to send [21:06:35]accept exits with 10 [21:06:35]New connection [21:06:35]New thread 3066613092 created [21:06:35]Thread 3066756452 joined [21:06:35]Waiting for new connection... [21:06:35] Sock 10.Parse request [21:06:35]Sock 10.Check first char [21:06:35]Sock 10.First char is OK [21:06:35]request: POST /json_proto HTTP/1.0 [21:06:35]Method: POST [21:06:35]URL: /json_proto [21:06:35]Method is POST - this is cgi request [21:06:35]url: /json_proto [21:06:35]query_string will be loaded in cgi processing [21:06:35]execute_cgi json_proto POST (null) [21:06:35]execute_cgi path=json_proto method=POST [21:06:35]POST find Content-Length [21:06:35]Host: 172.17.42.131:8080 [21:06:35]Content-Length: 682 [21:06:35]Content-Type: application/json [21:06:35] [21:06:35]POST finish read [21:06:35]Found Content-Length = 682 [21:06:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:35]execute_script... [21:06:35]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210561", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 37.370, "sum" : 2500.05, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2500.00, "total" : 2500.00, "payments": [ { "type": 0, "sum" : 2500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:35]POST & json_proto [21:06:35]process_json_proto [21:06:35]json parsed OK: [21:06:35]protocol is kg_v1.0 [21:06:35]action value=close_receipt [21:06:35]process_action close_receipt [21:06:35]cmd_close_receipt [21:06:35]MH_GetDate [21:06:35]Write to MH i2c: F0 00 00 96 1D A2 [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: F0 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: F0 09 00 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: F0 09 00 96 1D 00 DD 13 18 67 A0 18 CA 66 02 [21:06:35]GetLastDocTimeStamp 1729631122 [21:06:35]current date 1729631197 [21:06:35]FM_GetShiftState [21:06:35]SAM_PROTO_GetShiftState [21:06:35]wFMCommunicate request_size=4 [21:06:35]MH_SAM_APDU [21:06:35]CAPDU: 80 13 01 00 [21:06:35]Write to MH i2c: E2 08 00 97 1D 80 13 01 00 00 00 00 00 31 [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:35]Read from MH i2c: E2 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 0E 00 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 0E 00 97 1D 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [21:06:35]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:06:35]wFMCommunicate OK [21:06:35]SAM_PROTO_GetShiftState done [21:06:35]FM_GetShiftState done [21:06:35]opened in 1729556094 [21:06:35]opened+sec_in_day 1729642494 [21:06:35]quantity*price = 250005 [21:06:35]sum+1 = 250006 [21:06:35]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.05 ИТОГО: 2500.00 Внесено: 2500.00 СДАЧА: 0.00 НСП 1% : 22.12 НДС 12% : 265.49 Наличными: 2500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 530 22.10.2024 21:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188501 ФПД: 278236635683444 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210637&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188501&fm=278236635683444&tin=02508201610067®Number=0000000000100030&sum=250000 [21:06:37]StoreToDocumentArchive [21:06:37]shift 461 fd 188501 [21:06:37]save to /storage/0461/doc_00188501 [21:06:37]save last doc name /storage/0461/doc_00188501 to /storage/kkm_last_doc_name [21:06:37]save OK [21:06:37]Clear old archive folders... [21:06:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:06:37]tlvbuf is 009581A0 [21:06:37]SAM_PROTO_ClearQueue [21:06:37]wFMCommunicate request_size=4 [21:06:37]MH_SAM_APDU [21:06:37]CAPDU: 80 09 00 00 [21:06:37]Write to MH i2c: E2 08 00 A4 1D 80 09 00 00 00 00 00 00 33 [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:37]Read from MH i2c: E2 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 A4 1D 00 90 00 35 [21:06:37]RAPDU: 90 00 [21:06:37]wFMCommunicate OK [21:06:37]SAM_PROTO_ClearQueue done [21:06:37]KKMCreateOFDPacket [21:06:37]OFDProtocolAddRootSTLVToBuf [21:06:37]FM_MakeSignedData [21:06:37]FM_MakeSignedData [21:06:37]SAM_PROTO_SignData [21:06:37]wFMCommunicate request_size=4 [21:06:37]MH_SAM_APDU [21:06:37]CAPDU: 80 0D 01 02 [21:06:37]Write to MH i2c: E2 08 00 A5 1D 80 0D 01 02 00 00 00 00 3B [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:37]Read from MH i2c: E2 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 A5 1D 00 90 00 36 [21:06:37]RAPDU: 90 00 [21:06:37]wFMCommunicate OK [21:06:37]wFMCommunicate request_size=255 [21:06:37]MH_SAM_APDU [21:06:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 DD 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E0 02 00 35 04 06 00 FD [21:06:37]Write to MH i2c: E2 02 01 A6 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 33 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 DD 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E0 02 00 35 04 06 00 FD 00 00 6B [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:37]Read from MH i2c: E2 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 A6 1D 00 90 00 37 [21:06:37]RAPDU: 90 00 [21:06:37]wFMCommunicate OK [21:06:37]wFMCommunicate request_size=10 [21:06:37]MH_SAM_APDU [21:06:37]CAPDU: 80 0D 02 02 05 0E 03 D5 5A 74 [21:06:37]Write to MH i2c: E2 0D 00 A7 1D 80 0D 02 02 05 00 0E 03 D5 5A 74 00 00 FC [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:37]Read from MH i2c: E2 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 03 00 A7 1D 00 90 00 38 [21:06:37]RAPDU: 90 00 [21:06:37]wFMCommunicate OK [21:06:37]wFMCommunicate request_size=4 [21:06:37]MH_SAM_APDU [21:06:37]CAPDU: 80 0D 03 02 [21:06:37]Write to MH i2c: E2 08 00 A8 1D 80 0D 03 02 00 00 00 00 40 [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:37]Read from MH i2c: E2 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 0B 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 0B 00 A8 1D 00 FF 59 05 DF E0 7D E0 EC 90 00 A6 [21:06:37]RAPDU: FF 59 05 DF E0 7D E0 EC 90 00 [21:06:37]wFMCommunicate OK [21:06:37]SAM_PROTO_SignData done [21:06:37]FM_MakeSignedData done [21:06:37]CreateOFDProtocolMessage [21:06:37]wFMCommunicate request_size=4 [21:06:37]MH_SAM_APDU [21:06:37]CAPDU: 80 11 00 00 [21:06:37]Write to MH i2c: E2 08 00 A9 1D 80 11 00 00 00 00 00 00 40 [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:37]Read from MH i2c: E2 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 17 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: E2 17 00 A9 1D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [21:06:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:06:37]wFMCommunicate OK [21:06:37]CreateOFDProtocolMessage done [21:06:37]OFDSenderStorePacket 188501 [21:06:37]StoreOFDPacket docnum=188501 [21:06:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 9A 07 01 ED CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 DD 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E0 02 00 35 04 06 00 FD 0E 03 D5 5A 74 FF 59 05 DF E0 7D E0 EC [21:06:37]CheckFolder [21:06:37]dirname=/storage/ofd_packets [21:06:37]CheckFolder done [21:06:37]ProducePacketName [21:06:37]name=ofd_packets/00188501 [21:06:37]NVStorageSaveData ofd_packets/00188501 [21:06:37]File name is /storage/ofd_packets/00188501 [21:06:37]Write 301 bytes [21:06:37]NVStorageSaveData done [21:06:37]OFDSenderStorePacket done [21:06:37]KKMCreateOFDPacket done [21:06:37]NVStorageSaveData kkm_last_timestamp [21:06:37]File name is /storage/kkm_last_timestamp [21:06:37]Write 4 bytes [21:06:37]NVStorageSaveData done [21:06:37]ExternCall_PrintAddStr [21:06:37]wPrintStart [21:06:37]Write to MH i2c: 01 00 00 AA 1D C7 [21:06:37]Write i2c OK [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: 01 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: 01 07 00 [21:06:37]MH_I2C_Read... [21:06:37]Read from MH i2c: 01 07 00 AA 1D 00 00 00 00 00 FF 0F DC [21:06:37]RasterBufferAndPrint [21:06:37]line Счет N : (1)210561 [21:06:37]line ИНН: 02508201610067 [21:06:37]line Контрольно-Кассовый Чек [21:06:37]line ПРОДАЖА [21:06:37]line ТРК (МРК, ГНК) : 42 [21:06:37]line Товар: 2710124130 [21:06:37]line Аи-92-К-3 [21:06:37]line 37.370 * 66.90 [21:06:37]line = 2500.05 [21:06:37]line НДС 12% НСП 1% [21:06:37]line > о реализуемом товаре [21:06:37]line ОКРУГЛЕНИЕ: -0.05 [21:06:37]line ИТОГО: 2500.00 [21:06:37]line Внесено: 2500.00 [21:06:37]line СДАЧА: 0.00 [21:06:37]line НСП 1% : 22.12 [21:06:37]line НДС 12% : 265.49 [21:06:37]line Наличными: 2500.00 [21:06:37]line Безнал.: 0.00 [21:06:37]line Место: АЗС № 86 "Партнер Нефть" [21:06:37]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:06:37]line СНО: Общий режим [21:06:37]line Чек 530 22.10.2024 21:06 [21:06:37]line Смена: 461 ФФД: 1.0 [21:06:37]line ЗНМ: 0300000155 [21:06:37]line РНМ: 0000000000100030 [21:06:37]line Версия ККМ: 001 [21:06:37]line ФМ: 0000000000965340 [21:06:37]line ФД: 188501 [21:06:37]line ФПД: 278236635683444 [21:06:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210637&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188501&fm=278236635683444&tin=02508201610067®Number=0000000000100030&sum=250000 [21:06:37]written 0, free lines is 4095 [21:06:37]OFD Sender: Processing packet 188501 [packets to send 1062, broken 1061] [21:06:37]ProducePacketName [21:06:37]name=ofd_packets/00188501 [21:06:37]OFD Sender: To server: pG, [21:06:37]CommunicateWithHost lk.salyk.kg:30040 [21:06:37]ConnectInit lk.salyk.kg [21:06:38]int [21:06:38]Write to MH i2c: 01 00 00 CD 1D EA [21:06:38]*** FLAG_PRN_PAP2 set [21:06:38]Write i2c OK [21:06:38]MH_I2C_Read... [21:06:38]Write i2c OK [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: DD [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: DD [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: DD 01 00 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: DD 01 00 [21:06:38]answer for other command [DD] [21:06:38]MH Int Process stopped [21:06:38]Read from MH i2c: DD 01 00 CD 1D 05 CC [21:06:38]answer with wrong packet_num 1DCD - expected 1DCE [21:06:38]process_action_free close_receipt [21:06:38]json_value_free [21:06:38]json_value_free done [21:06:38]process_json_proto returns [21:06:38]Send response to host [21:06:38]{"protocol":"kg_v1.0","response":{"error":1039,"error_desc":"CoCPU protocol format"}} [21:06:38]free response buf [21:06:38]execute_script done [21:06:38]execute_script returns [21:06:38]free content buf [21:06:38]Sock 10.Close socket [21:06:38]Sock 10.Thread stoped [21:06:38]Connected sock=11 [21:06:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F2 9A 07 01 ED CE 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 FA 91 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 95 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 67 00 00 00 00 07 04 06 00 90 D0 03 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 02 00 00 F4 03 04 00 DD 13 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E0 02 00 35 04 06 00 FD 0E 03 D5 5A 74 FF 59 05 DF E0 7D E0 EC [21:06:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 0D 56 47 00 A0 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 55 E0 02 00 F4 03 04 00 CA BD 17 67 B6 04 01 00 00 DE 94 BE 6E A9 1D 60 D5 [21:06:38]CommunicateWithHost err = 0 [21:06:38]CheckOFDResponse [21:06:38]1017 (14) - 77093643461234 [21:06:38]1041 (16) - 0000000000965340 [21:06:38]1040 (4) - 188501 [21:06:38]1012 (4) - 22.10.2024 14:59 [21:06:38]1206 (1) - 0 [21:06:38]OFD Sender: Remove packet 188501 [21:06:38]ProducePacketName [21:06:38]name=ofd_packets/00188501 [21:06:38]NVStorageDeleteData [21:06:39]OFD Sender: No OFD packet to send [21:06:44]OFD Sender: No OFD packet to send [21:06:49]OFD Sender: No OFD packet to send [21:06:54]OFD Sender: No OFD packet to send [21:06:59]OFD Sender: No OFD packet to send [21:07:04]OFD Sender: No OFD packet to send [21:07:09]OFD Sender: No OFD packet to send [21:07:14]OFD Sender: No OFD packet to send [21:07:19]OFD Sender: No OFD packet to send [21:07:24]OFD Sender: No OFD packet to send [21:07:29]OFD Sender: No OFD packet to send [21:07:34]OFD Sender: No OFD packet to send [21:07:39]OFD Sender: No OFD packet to send [21:07:44]OFD Sender: No OFD packet to send [21:07:49]OFD Sender: No OFD packet to send [21:07:54]OFD Sender: No OFD packet to send [21:07:59]OFD Sender: No OFD packet to send [21:08:04]OFD Sender: No OFD packet to send [21:08:09]OFD Sender: No OFD packet to send [21:08:14]OFD Sender: No OFD packet to send [21:08:19]OFD Sender: No OFD packet to send [21:08:24]OFD Sender: No OFD packet to send [21:08:29]OFD Sender: No OFD packet to send [21:08:34]OFD Sender: No OFD packet to send [21:08:39]OFD Sender: No OFD packet to send [21:08:44]OFD Sender: No OFD packet to send [21:08:49]OFD Sender: No OFD packet to send [21:08:54]OFD Sender: No OFD packet to send [21:08:59]OFD Sender: No OFD packet to send [21:09:04]OFD Sender: No OFD packet to send [21:09:09]OFD Sender: No OFD packet to send [21:09:14]OFD Sender: No OFD packet to send [21:09:19]OFD Sender: No OFD packet to send [21:09:24]OFD Sender: No OFD packet to send [21:09:29]OFD Sender: No OFD packet to send [21:09:34]OFD Sender: No OFD packet to send [21:09:39]OFD Sender: No OFD packet to send [21:09:44]OFD Sender: No OFD packet to send [21:09:49]OFD Sender: No OFD packet to send [21:09:54]OFD Sender: No OFD packet to send [21:09:59]OFD Sender: No OFD packet to send [21:10:04]OFD Sender: No OFD packet to send [21:10:09]OFD Sender: No OFD packet to send [21:10:14]OFD Sender: No OFD packet to send [21:10:19]OFD Sender: No OFD packet to send [21:10:25]OFD Sender: No OFD packet to send [21:10:30]OFD Sender: No OFD packet to send [21:10:35]OFD Sender: No OFD packet to send [21:10:40]OFD Sender: No OFD packet to send [21:10:45]OFD Sender: No OFD packet to send [21:10:50]OFD Sender: No OFD packet to send [21:10:55]OFD Sender: No OFD packet to send [21:11:00]OFD Sender: No OFD packet to send [21:11:05]OFD Sender: No OFD packet to send [21:11:10]OFD Sender: No OFD packet to send [21:11:15]OFD Sender: No OFD packet to send [21:11:20]OFD Sender: No OFD packet to send [21:11:25]OFD Sender: No OFD packet to send [21:11:30]OFD Sender: No OFD packet to send [21:11:35]OFD Sender: No OFD packet to send [21:11:40]OFD Sender: No OFD packet to send [21:11:45]OFD Sender: No OFD packet to send [21:11:50]OFD Sender: No OFD packet to send [21:11:55]OFD Sender: No OFD packet to send [21:12:00]OFD Sender: No OFD packet to send [21:12:05]OFD Sender: No OFD packet to send [21:12:10]OFD Sender: No OFD packet to send [21:12:15]OFD Sender: No OFD packet to send [21:12:20]OFD Sender: No OFD packet to send [21:12:25]OFD Sender: No OFD packet to send [21:12:30]OFD Sender: No OFD packet to send [21:12:35]OFD Sender: No OFD packet to send [21:12:40]OFD Sender: No OFD packet to send [21:12:45]OFD Sender: No OFD packet to send [21:12:50]OFD Sender: No OFD packet to send [21:12:55]OFD Sender: No OFD packet to send [21:13:00]OFD Sender: No OFD packet to send [21:13:05]OFD Sender: No OFD packet to send [21:13:10]OFD Sender: No OFD packet to send [21:13:15]OFD Sender: No OFD packet to send [21:13:20]OFD Sender: No OFD packet to send [21:13:25]OFD Sender: No OFD packet to send [21:13:30]OFD Sender: No OFD packet to send [21:13:35]OFD Sender: No OFD packet to send [21:13:40]OFD Sender: No OFD packet to send [21:13:45]OFD Sender: No OFD packet to send [21:13:50]OFD Sender: No OFD packet to send [21:13:55]OFD Sender: No OFD packet to send [21:14:00]OFD Sender: No OFD packet to send [21:14:06]OFD Sender: No OFD packet to send [21:14:11]OFD Sender: No OFD packet to send [21:14:16]OFD Sender: No OFD packet to send [21:14:21]OFD Sender: No OFD packet to send [21:14:26]OFD Sender: No OFD packet to send [21:14:31]OFD Sender: No OFD packet to send [21:14:36]OFD Sender: No OFD packet to send [21:14:41]OFD Sender: No OFD packet to send [21:14:46]OFD Sender: No OFD packet to send [21:14:51]OFD Sender: No OFD packet to send [21:14:56]OFD Sender: No OFD packet to send [21:15:01]OFD Sender: No OFD packet to send [21:15:06]OFD Sender: No OFD packet to send [21:15:11]OFD Sender: No OFD packet to send [21:15:16]OFD Sender: No OFD packet to send [21:15:21]OFD Sender: No OFD packet to send [21:15:26]OFD Sender: No OFD packet to send [21:15:31]OFD Sender: No OFD packet to send [21:15:36]OFD Sender: No OFD packet to send [21:15:41]OFD Sender: No OFD packet to send [21:15:46]OFD Sender: No OFD packet to send [21:15:51]OFD Sender: No OFD packet to send [21:15:56]OFD Sender: No OFD packet to send [21:16:01]OFD Sender: No OFD packet to send [21:16:06]OFD Sender: No OFD packet to send [21:16:11]OFD Sender: No OFD packet to send [21:16:16]OFD Sender: No OFD packet to send [21:16:21]OFD Sender: No OFD packet to send [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 *** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]00 *** [00:00:10]00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725DF (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 5111191+1724520608=1729631799 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:10]*** FLAG_PRN_PAP2 set [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 02 00 00 00 FF 0F 1B [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 6E 00 38 00 FF FF 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 38 16 18 67 A0 18 CA 66 B4 [21:16:40]Current date/time: 22.10.2024 21:16 [21:16:40]FM_Init [21:16:40]wFMConnect [21:16:40]MH_SAM_On [21:16:40]Write to MH i2c: E0 00 00 08 00 E7 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_init finished! [21:16:40]*** atr: [21:16:40]*** 0F 3B D5 18 FF 81 91 FE [21:16:40]*** 1F C3 80 73 C8 21 10 0A [21:16:40]*** 00 00 00 00 00 00 00 00 [21:16:40]*** 00 00 00 00 00 00 00 00 [21:16:40]*** 00 00 00 00 00 00 00 00 [21:16:40]*** 00 00 00 00 00 00 00 00 [21:16:40]*** 00 00 00 00 00 00 00 00 [21:16:40]*** 00 00 00 00 00 00 00 00 [21:16:40]Read from MH i2c: E0 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E0 10 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:16:40]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:16:40]wFMCommunicate request_size=10 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:16:40]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 11 00 00 [21:16:40]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [21:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:16:40]wFMCommunicate OK [21:16:40]Detected FM SN is 0000000000965340 [21:16:40]Stored FM SN is 0000000000965340 [21:16:40]wFMCommunicate request_size=9 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 16 00 00 04 28 0B 00 00 [21:16:40]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 28 0B 00 00 00 00 C5 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]FM PIN OK [21:16:40]wFMCommunicate request_size=8 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 14 04 00 03 02 00 01 [21:16:40]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]wFMCommunicate request_size=13 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:16:40]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:16:40]RAPDU: 90 00 [21:16:40]wFMCommunicate OK [21:16:40]wFMCommunicate request_size=4 [21:16:40]MH_SAM_APDU [21:16:40]CAPDU: 80 11 00 00 [21:16:40]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 [21:16:40]MH_I2C_Read... [21:16:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:40]Read from MH i2c: E2 17 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [21:16:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:16:40]wFMCommunicate OK [21:16:40]DocumentArchiveInit [21:16:40]Start Httpd... [21:16:40]Httpd thread 3067071844 created [21:16:40]Write to MH i2c: 01 00 00 0F 00 0F [21:16:40]Write i2c OK [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 [21:16:40]MH_I2C_Read... [21:16:40]Read from MH i2c: 01 07 00 0F 00 00 02 00 00 00 FF 0F 26 [21:16:40]MH Int Process started [21:16:40]Allocated Socket 8 [21:16:40]Bind OK [21:16:40]Listen OK [21:16:40]httpd running on port 8080 [21:16:40]Waiting for new connection... [21:16:41]accept exits with 9 [21:16:41]New connection [21:16:41]New thread 3066785124 created [21:16:41] Sock 9.Parse request [21:16:41]Waiting for new connection... [21:16:41]Sock 9.Check first char [21:16:41]Sock 9.First char is OK [21:16:41]request: POST /json_proto HTTP/1.0 [21:16:41]Method: POST [21:16:41]URL: /json_proto [21:16:41]Method is POST - this is cgi request [21:16:41]url: /json_proto [21:16:41]query_string will be loaded in cgi processing [21:16:41]execute_cgi json_proto POST (null) [21:16:41]execute_cgi path=json_proto method=POST [21:16:41]POST find Content-Length [21:16:41]Host: 172.17.42.131:8080 [21:16:41]Content-Length: 215 [21:16:41]Content-Type: application/json [21:16:41] [21:16:41]POST finish read [21:16:41]Found Content-Length = 215 [21:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:41]execute_script... [21:16:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:16:41]POST & json_proto [21:16:41]process_json_proto [21:16:41]json parsed OK: [21:16:41]protocol is kg_v1.0 [21:16:41]action value=get_value [21:16:41]process_action get_value [21:16:41]cmd_get_value [21:16:41]process_action get_value done [21:16:41]requested_data is exist [21:16:41]produce_requested_data [21:16:41]requested_item kkm.sn is exist - process it [21:16:41]requested_item kkm.ver is exist - process it [21:16:41]requested_item fm.sn is exist - process it [21:16:41]wFMCommunicate request_size=4 [21:16:41]MH_SAM_APDU [21:16:41]CAPDU: 80 11 00 00 [21:16:41]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:16:41]Read from MH i2c: E2 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: E2 17 00 [21:16:41]MH_I2C_Read... [21:16:41]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [21:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:16:41]wFMCommunicate OK [21:16:41]requested_item fd.num is exist - process it [21:16:41]SAM_PROTO_GetFieldsCounters [21:16:41]wFMCommunicate request_size=4 [21:16:41]MH_SAM_APDU [21:16:41]CAPDU: 80 13 00 00 [21:16:41]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:16:41]Write i2c OK [21:16:41]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 D5 [21:16:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetFieldsCounters done [21:16:42]requested_item shift.num is exist - process it [21:16:42]requested_item shift.opened is exist - process it [21:16:42]req_shift_opened [21:16:42]FM_GetShiftState [21:16:42]SAM_PROTO_GetShiftState [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 01 00 [21:16:42]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]OFD Sender: No OFD packet to send [21:16:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [21:16:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]SAM_PROTO_GetShiftState done [21:16:42]FM_GetShiftState done [21:16:42]req_shift_opened done [21:16:42]requested_item shift.open_date is exist - process it [21:16:42]req_shift_open_date [21:16:42]req_shift_open_date done [21:16:42]produce_requested_data done [21:16:42]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188501,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:16:42]process_action_free get_value [21:16:42]json_value_free [21:16:42]json_value_free done [21:16:42]process_json_proto returns [21:16:42]Send response to host [21:16:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188501,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:16:42]free response buf [21:16:42]execute_script done [21:16:42]execute_script returns [21:16:42]free content buf [21:16:42]Sock 9.Close socket [21:16:42]Sock 9.Thread stoped [21:16:42]accept exits with 10 [21:16:42]New connection [21:16:42]New thread 3066641764 created [21:16:42]Thread 3066785124 joined [21:16:42]Waiting for new connection... [21:16:42] Sock 10.Parse request [21:16:42]Sock 10.Check first char [21:16:42]Sock 10.First char is OK [21:16:42]request: POST /json_proto HTTP/1.0 [21:16:42]Method: POST [21:16:42]URL: /json_proto [21:16:42]Method is POST - this is cgi request [21:16:42]url: /json_proto [21:16:42]query_string will be loaded in cgi processing [21:16:42]execute_cgi json_proto POST (null) [21:16:42]execute_cgi path=json_proto method=POST [21:16:42]POST find Content-Length [21:16:42]Host: 172.17.42.131:8080 [21:16:42]Content-Length: 331 [21:16:42]Content-Type: application/json [21:16:42] [21:16:42]POST finish read [21:16:42]Found Content-Length = 331 [21:16:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:16:42]execute_script... [21:16:42]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:16:42]POST & json_proto [21:16:42]process_json_proto [21:16:42]json parsed OK: [21:16:42]protocol is kg_v1.0 [21:16:42]action value=get_value [21:16:42]process_action get_value [21:16:42]cmd_get_value [21:16:42]process_action get_value done [21:16:42]requested_data is exist [21:16:42]produce_requested_data [21:16:42]requested_item fm.sale.total is exist - process it [21:16:42]SAM_PROTO_GetFMData [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 13 03 00 [21:16:42]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 FD 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 BB DC 02 00 69 04 A4 00 6F 04 04 00 2C DC 02 00 B1 04 05 00 65 6A A3 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 55 4A BC 19 02 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 1D A3 2E B7 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 15 A9 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 79 [21:16:42]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 BB DC 02 00 69 04 A4 00 6F 04 04 00 2C DC 02 00 B1 04 05 00 65 6A A3 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 55 4A BC 19 02 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 1D A3 2E B7 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 15 A9 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [21:16:42]wFMCommunicate OK [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 17 00 00 [21:16:42]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:16:42]Read from MH i2c: E2 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 FD 00 [21:16:42]MH_I2C_Read... [21:16:42]Read from MH i2c: E2 FD 00 14 00 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 61 [21:16:42]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [21:16:42]wFMCommunicate OK [21:16:42]wFMCommunicate request_size=4 [21:16:42]MH_SAM_APDU [21:16:42]CAPDU: 80 17 00 00 [21:16:42]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:16:42]Write i2c OK [21:16:42]MH_I2C_Read... [21:16:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:16:43]Read from MH i2c: E2 [21:16:43]MH_I2C_Read... [21:16:43]Read from MH i2c: E2 FD 00 [21:16:43]MH_I2C_Read... [21:16:43]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [21:16:43]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:16:43]wFMCommunicate OK [21:16:43]wFMCommunicate request_size=4 [21:16:43]MH_SAM_APDU [21:16:43]CAPDU: 80 17 00 00 [21:16:43]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:16:43]Write i2c OK [21:16:43]MH_I2C_Read... [21:16:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:16:43]Read from MH i2c: E2 [21:16:43]MH_I2C_Read... [21:16:43]Read from MH i2c: E2 FD 00 [21:16:43]MH_I2C_Read... [21:16:43]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [21:16:43]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:16:43]wFMCommunicate OK [21:16:43]wFMCommunicate request_size=4 [21:16:43]MH_SAM_APDU [21:16:43]CAPDU: 80 17 00 00 [21:16:43]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:16:43]Write i2c OK [21:16:43]MH_I2C_Read... [21:16:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [21:16:43]Read from MH i2c: E2 [21:16:43]MH_I2C_Read... [21:16:43]Read from MH i2c: E2 E8 00 [21:16:43]MH_I2C_Read... [21:16:43]Read from MH i2c: E2 E8 00 17 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [21:16:43]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:16:43]wFMCommunicate OK [21:16:43]SAM_PROTO_GetFMData done [21:16:43]requested_item fm.sale_refund.total is exist - process it [21:16:43]requested_item fm.buy.total is exist - process it [21:16:43]requested_item shift.sale.total is exist - process it [21:16:43]SAM_PROTO_GetShiftData [21:16:43]wFMCommunicate request_size=4 [21:16:43]MH_SAM_APDU [21:16:43]CAPDU: 80 13 02 00 [21:16:43]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:16:43]Write i2c OK [21:16:43]MH_I2C_Read... [21:16:44]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:16:44]Read from MH i2c: E2 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 FD 00 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 12 02 00 00 69 04 9E 00 6F 04 04 00 12 02 00 00 B1 04 04 00 C6 35 A4 04 70 04 04 00 44 4D CA 03 72 04 03 00 82 E8 D9 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 F8 34 7E 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 41 84 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 52 [21:16:44]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 12 02 00 00 69 04 9E 00 6F 04 04 00 12 02 00 00 B1 04 04 00 C6 35 A4 04 70 04 04 00 44 4D CA 03 72 04 03 00 82 E8 D9 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 F8 34 7E 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 41 84 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [21:16:44]wFMCommunicate OK [21:16:44]wFMCommunicate request_size=4 [21:16:44]MH_SAM_APDU [21:16:44]CAPDU: 80 17 00 00 [21:16:44]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:16:44]Write i2c OK [21:16:44]MH_I2C_Read... [21:16:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:16:44]Read from MH i2c: E2 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 FD 00 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [21:16:44]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:16:44]wFMCommunicate OK [21:16:44]wFMCommunicate request_size=4 [21:16:44]MH_SAM_APDU [21:16:44]CAPDU: 80 17 00 00 [21:16:44]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:16:44]Write i2c OK [21:16:44]MH_I2C_Read... [21:16:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:16:44]Read from MH i2c: E2 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 FD 00 [21:16:44]MH_I2C_Read... [21:16:44]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [21:16:44]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:16:44]wFMCommunicate OK [21:16:44]wFMCommunicate request_size=4 [21:16:44]MH_SAM_APDU [21:16:44]CAPDU: 80 17 00 00 [21:16:44]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:16:44]Write i2c OK [21:16:44]MH_I2C_Read... [21:16:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:16:45]Read from MH i2c: E2 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 FD 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [21:16:45]RAPDU: 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 90 00 [21:16:45]wFMCommunicate OK [21:16:45]wFMCommunicate request_size=4 [21:16:45]MH_SAM_APDU [21:16:45]CAPDU: 80 17 00 00 [21:16:45]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:16:45]Write i2c OK [21:16:45]MH_I2C_Read... [21:16:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [21:16:45]Read from MH i2c: E2 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 CE 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [21:16:45]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:16:45]wFMCommunicate OK [21:16:45]SAM_PROTO_GetShiftData done [21:16:45]requested_item shift.sale.total_cash is exist - process it [21:16:45]requested_item shift.sale_refund.total is exist - process it [21:16:45]requested_item shift.sale_refund.total_cash is exist - process it [21:16:45]requested_item shift.buy.total is exist - process it [21:16:45]requested_item shift.buy.total_cash is exist - process it [21:16:45]produce_requested_data done [21:16:45]produce_requested_data return {"fm.sale.total":289346299.89,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":778705.34,"shift.sale.total_cash":635897.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:16:45]process_action_free get_value [21:16:45]json_value_free [21:16:45]json_value_free done [21:16:45]process_json_proto returns [21:16:45]Send response to host [21:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289346299.89,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":778705.34,"shift.sale.total_cash":635897.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:16:45]free response buf [21:16:45]execute_script done [21:16:45]execute_script returns [21:16:45]free content buf [21:16:45]Sock 10.Close socket [21:16:45]Sock 10.Thread stoped [21:16:45]accept exits with 7 [21:16:45]New connection [21:16:45]New thread 3066785124 created [21:16:45]Thread 3066641764 joined [21:16:45]Waiting for new connection... [21:16:45] Sock 7.Parse request [21:16:45]Sock 7.Check first char [21:16:45]Sock 7.First char is OK [21:16:45]request: POST /json_proto HTTP/1.0 [21:16:45]Method: POST [21:16:45]URL: /json_proto [21:16:45]Method is POST - this is cgi request [21:16:45]url: /json_proto [21:16:45]query_string will be loaded in cgi processing [21:16:45]execute_cgi json_proto POST (null) [21:16:45]execute_cgi path=json_proto method=POST [21:16:45]POST find Content-Length [21:16:45]Host: 172.17.42.131:8080 [21:16:45]Content-Length: 144 [21:16:45]Content-Type: application/json [21:16:45] [21:16:45]POST finish read [21:16:45]Found Content-Length = 144 [21:16:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:16:45]execute_script... [21:16:45]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:16:45]POST & json_proto [21:16:45]process_json_proto [21:16:45]json parsed OK: [21:16:45]protocol is kg_v1.0 [21:16:45]action value=print_doc [21:16:45]process_action print_doc [21:16:45]ExternCall_PrintAddStr [21:16:45]wPrintStart [21:16:45]Write to MH i2c: 01 00 00 1D 00 1D [21:16:45]Write i2c OK [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: 01 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: 01 07 00 [21:16:45]MH_I2C_Read... [21:16:45]Read from MH i2c: 01 07 00 1D 00 00 02 00 00 00 FF 0F 34 [21:16:45]RasterBufferAndPrint [21:16:45]line Счет N : (1)210561 [21:16:45]line ИНН: 02508201610067 [21:16:45]line Контрольно-Кассовый Чек [21:16:45]line ПРОДАЖА [21:16:45]line ТРК (МРК, ГНК) : 42 [21:16:45]line Товар: 2710124130 [21:16:45]line Аи-92-К-3 [21:16:45]line 37.370 * 66.90 [21:16:45]line = 2500.05 [21:16:45]line НДС 12% НСП 1% [21:16:45]line > о реализуемом товаре [21:16:45]line ОКРУГЛЕНИЕ: -0.05 [21:16:45]line ИТОГО: 2500.00 [21:16:45]line Внесено: 2500.00 [21:16:45]line СДАЧА: 0.00 [21:16:45]line НСП 1% : 22.12 [21:16:45]line НДС 12% : 265.49 [21:16:45]line Наличными: 2500.00 [21:16:45]line Безнал.: 0.00 [21:16:45]line Место: АЗС № 86 "Партнер Нефть" [21:16:45]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:16:45]line СНО: Общий режим [21:16:45]line Чек 530 22.10.2024 21:06 [21:16:45]line Смена: 461 ФФД: 1.0 [21:16:45]line ЗНМ: 0300000155 [21:16:45]line РНМ: 0000000000100030 [21:16:45]line Версия ККМ: 001 [21:16:45]line ФМ: 0000000000965340 [21:16:45]line ФД: 188501 [21:16:45]line ФПД: 278236635683444 [21:16:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210637&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188501&fm=278236635683444&tin=02508201610067®Number=0000000000100030&sum=250000 [21:16:45]written 0, free lines is 4095 [21:16:45]Error from MH - 05 [21:16:45]process_action_free print_doc [21:16:45]json_value_free [21:16:45]json_value_free done [21:16:45]process_json_proto returns [21:16:45]Send response to host [21:16:45]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [21:16:45]free response buf [21:16:45]execute_script done [21:16:45]execute_script returns [21:16:45]free content buf [21:16:45]Sock 7.Close socket [21:16:45]Sock 7.Thread stoped [21:16:47]OFD Sender: No OFD packet to send [21:16:52]OFD Sender: No OFD packet to send [21:16:57]OFD Sender: No OFD packet to send [21:17:02]OFD Sender: No OFD packet to send [21:17:07]OFD Sender: No OFD packet to send [21:17:12]OFD Sender: No OFD packet to send [21:17:17]OFD Sender: No OFD packet to send [21:17:22]OFD Sender: No OFD packet to send [21:17:27]OFD Sender: No OFD packet to send [21:17:32]OFD Sender: No OFD packet to send [21:17:37]OFD Sender: No OFD packet to send [21:17:41]accept exits with 9 [21:17:41]New connection [21:17:41]New thread 3066641764 created [21:17:41]Thread 3066785124 joined [21:17:41]Waiting for new connection... [21:17:41] Sock 9.Parse request [21:17:41]Sock 9.Check first char [21:17:41]Sock 9.First char is OK [21:17:41]request: POST /json_proto HTTP/1.0 [21:17:41]Method: POST [21:17:41]URL: /json_proto [21:17:41]Method is POST - this is cgi request [21:17:41]url: /json_proto [21:17:41]query_string will be loaded in cgi processing [21:17:41]execute_cgi json_proto POST (null) [21:17:41]execute_cgi path=json_proto method=POST [21:17:41]POST find Content-Length [21:17:41]Host: 172.17.42.131:8080 [21:17:41]Content-Length: 215 [21:17:41]Content-Type: application/json [21:17:41] [21:17:41]POST finish read [21:17:41]Found Content-Length = 215 [21:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:41]execute_script... [21:17:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:17:41]POST & json_proto [21:17:41]process_json_proto [21:17:41]json parsed OK: [21:17:41]protocol is kg_v1.0 [21:17:41]action value=get_value [21:17:41]process_action get_value [21:17:41]cmd_get_value [21:17:41]process_action get_value done [21:17:41]requested_data is exist [21:17:41]produce_requested_data [21:17:41]requested_item kkm.sn is exist - process it [21:17:41]requested_item kkm.ver is exist - process it [21:17:41]requested_item fm.sn is exist - process it [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 11 00 00 [21:17:41]Write to MH i2c: E2 08 00 20 00 80 11 00 00 00 00 00 00 9A [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 17 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 17 00 20 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E8 [21:17:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:17:41]wFMCommunicate OK [21:17:41]requested_item fd.num is exist - process it [21:17:41]SAM_PROTO_GetFieldsCounters [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 13 00 00 [21:17:41]Write to MH i2c: E2 08 00 21 00 80 13 00 00 00 00 00 00 9D [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 62 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 62 00 21 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 E5 [21:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 55 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 12 02 00 00 5E 04 04 00 12 02 00 00 57 04 04 00 13 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:17:41]wFMCommunicate OK [21:17:41]SAM_PROTO_GetFieldsCounters done [21:17:41]requested_item shift.num is exist - process it [21:17:41]requested_item shift.opened is exist - process it [21:17:41]req_shift_opened [21:17:41]FM_GetShiftState [21:17:41]SAM_PROTO_GetShiftState [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 13 01 00 [21:17:41]Write to MH i2c: E2 08 00 22 00 80 13 01 00 00 00 00 00 9F [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 0E 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 0E 00 22 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 94 [21:17:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:17:41]wFMCommunicate OK [21:17:41]SAM_PROTO_GetShiftState done [21:17:41]FM_GetShiftState done [21:17:41]req_shift_opened done [21:17:41]requested_item shift.open_date is exist - process it [21:17:41]req_shift_open_date [21:17:41]req_shift_open_date done [21:17:41]produce_requested_data done [21:17:41]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188501,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:17:41]process_action_free get_value [21:17:41]json_value_free [21:17:41]json_value_free done [21:17:41]process_json_proto returns [21:17:41]Send response to host [21:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188501,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:17:41]free response buf [21:17:41]execute_script done [21:17:41]execute_script returns [21:17:41]free content buf [21:17:41]Sock 9.Close socket [21:17:41]Sock 9.Thread stoped [21:17:41]accept exits with 7 [21:17:41]New connection [21:17:41]New thread 3066785124 created [21:17:41]Thread 3066641764 joined [21:17:41]Waiting for new connection... [21:17:41] Sock 7.Parse request [21:17:41]Sock 7.Check first char [21:17:41]Sock 7.First char is OK [21:17:41]request: POST /json_proto HTTP/1.0 [21:17:41]Method: POST [21:17:41]URL: /json_proto [21:17:41]Method is POST - this is cgi request [21:17:41]url: /json_proto [21:17:41]query_string will be loaded in cgi processing [21:17:41]execute_cgi json_proto POST (null) [21:17:41]execute_cgi path=json_proto method=POST [21:17:41]POST find Content-Length [21:17:41]Host: 172.17.42.131:8080 [21:17:41]Content-Length: 331 [21:17:41]Content-Type: application/json [21:17:41] [21:17:41]POST finish read [21:17:41]Found Content-Length = 331 [21:17:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:17:41]execute_script... [21:17:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:17:41]POST & json_proto [21:17:41]process_json_proto [21:17:41]json parsed OK: [21:17:41]protocol is kg_v1.0 [21:17:41]action value=get_value [21:17:41]process_action get_value [21:17:41]cmd_get_value [21:17:41]process_action get_value done [21:17:41]requested_data is exist [21:17:41]produce_requested_data [21:17:41]requested_item fm.sale.total is exist - process it [21:17:41]SAM_PROTO_GetFMData [21:17:41]wFMCommunicate request_size=4 [21:17:41]MH_SAM_APDU [21:17:41]CAPDU: 80 13 03 00 [21:17:41]Write to MH i2c: E2 08 00 23 00 80 13 03 00 00 00 00 00 A2 [21:17:41]Write i2c OK [21:17:41]MH_I2C_Read... [21:17:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:17:41]Read from MH i2c: E2 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 FD 00 [21:17:41]MH_I2C_Read... [21:17:41]Read from MH i2c: E2 FD 00 23 00 00 CB 04 85 04 C7 04 6E 04 04 00 BB DC 02 00 69 04 A4 00 6F 04 04 00 2C DC 02 00 B1 04 05 00 65 6A A3 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 55 4A BC 19 02 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 1D A3 2E B7 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 15 A9 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 89 [21:17:41]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 BB DC 02 00 69 04 A4 00 6F 04 04 00 2C DC 02 00 B1 04 05 00 65 6A A3 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 55 4A BC 19 02 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 1D A3 2E B7 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 15 A9 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [21:17:42]wFMCommunicate OK [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 17 00 00 [21:17:42]Write to MH i2c: E2 08 00 24 00 80 17 00 00 00 00 00 00 A4 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 FD 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 FD 00 24 00 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 71 [21:17:42]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [21:17:42]wFMCommunicate OK [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 17 00 00 [21:17:42]Write to MH i2c: E2 08 00 25 00 80 17 00 00 00 00 00 00 A5 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]OFD Sender: No OFD packet to send [21:17:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 FD 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 FD 00 25 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 80 [21:17:42]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:17:42]wFMCommunicate OK [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 17 00 00 [21:17:42]Write to MH i2c: E2 08 00 26 00 80 17 00 00 00 00 00 00 A6 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:17:42]Read from MH i2c: E2 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 FD 00 [21:17:42]MH_I2C_Read... [21:17:42]Read from MH i2c: E2 FD 00 26 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 24 [21:17:42]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:17:42]wFMCommunicate OK [21:17:42]wFMCommunicate request_size=4 [21:17:42]MH_SAM_APDU [21:17:42]CAPDU: 80 17 00 00 [21:17:42]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [21:17:42]Write i2c OK [21:17:42]MH_I2C_Read... [21:17:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [21:17:43]Read from MH i2c: E2 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 E8 00 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 E8 00 27 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 85 [21:17:43]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:17:43]wFMCommunicate OK [21:17:43]SAM_PROTO_GetFMData done [21:17:43]requested_item fm.sale_refund.total is exist - process it [21:17:43]requested_item fm.buy.total is exist - process it [21:17:43]requested_item shift.sale.total is exist - process it [21:17:43]SAM_PROTO_GetShiftData [21:17:43]wFMCommunicate request_size=4 [21:17:43]MH_SAM_APDU [21:17:43]CAPDU: 80 13 02 00 [21:17:43]Write to MH i2c: E2 08 00 28 00 80 13 02 00 00 00 00 00 A6 [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [21:17:43]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:17:43]Read from MH i2c: E2 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 FD 00 [21:17:43]MH_I2C_Read... [21:17:43]Read from MH i2c: E2 FD 00 28 00 00 B1 04 AA 04 AD 04 6E 04 04 00 12 02 00 00 69 04 9E 00 6F 04 04 00 12 02 00 00 B1 04 04 00 C6 35 A4 04 70 04 04 00 44 4D CA 03 72 04 03 00 82 E8 D9 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 F8 34 7E 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 41 84 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 62 [21:17:43]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 12 02 00 00 69 04 9E 00 6F 04 04 00 12 02 00 00 B1 04 04 00 C6 35 A4 04 70 04 04 00 44 4D CA 03 72 04 03 00 82 E8 D9 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 F8 34 7E 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 41 84 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [21:17:43]wFMCommunicate OK [21:17:43]wFMCommunicate request_size=4 [21:17:43]MH_SAM_APDU [21:17:43]CAPDU: 80 17 00 00 [21:17:43]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [21:17:43]Write i2c OK [21:17:43]MH_I2C_Read... [00:00:10] *** EcrCore started. Build 196 *** [00:00:10]/dev/ttyS4 opened [00:00:10]MH_InterfaceInit /dev/i2c-1 [00:00:10]Malloc ok [00:00:10]MH_GetMetrics [00:00:10]Write to MH i2c: 00 00 00 01 00 00 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: 00 29 00 01 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 01 03 00 84 [00:00:10]Are we in boot? [00:00:10]We are in boot - try to switch [00:00:10]Write to MH i2c: A0 00 00 02 00 A1 [00:00:10]Write i2c OK [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 [00:00:10]*** Check firmware version 30620, crc_r 49A1A6DB, crc_c: 49A1A6DB, size: 53248 [00:00:10]MH_I2C_Read... [00:00:10]*** [00:00:10]Read from MH i2c: A0 01 00 [00:00:10]MH_I2C_Read... [00:00:10]Read from MH i2c: A0 01 00 02 00 00 A2 [00:00:10]*** Starting fw at address 01020100 (2007E328 010249C5) [00:00:10]*** Waiting for read because exit forced [00:00:10]*** 10 ms more... [00:00:10]*** MH1903S init start (LINUX_LIGHT) [00:00:10]*** Compilation Date Jun 20 2023 Time 12:36:20 [00:00:10]*** Serial: 3139303353513838 54000000005725DF (1903SQ88T) [00:00:10]*** User serial: FFFFFFFFFFFFFFFF FFFFFFFFFFFFFFFF () [00:00:10]*** step 0: 5000 (2650, 2350 REF) [00:00:10]*** step 1: 4835 (2500, 2335 REF) [00:00:10]*** step 2: 4676 (2440, 2236 REF) [00:00:10]*** step 3: 4523 (2280, 2243 REF) [00:00:10]*** step 4: 4376 (2160, 2216 REF) [00:00:10]*** step 5: 4235 (2050, 2185 REF) [00:00:10]*** step 6: 4098 (1950, 2148 REF) [00:00:10]*** step 7: 3967 (1870, 2097 REF) [00:00:10]*** step 8: 3840 (1828, 2012 REF) [00:00:10]*** step 9: 3719 (1728, 1991 REF) [00:00:10]*** step 10: 3601 (1675, 1926 REF) [00:00:10]*** step 11: 3488 (1635, 1853 REF) [00:00:10]*** step 12: 3379 (1595, 1784 REF) [00:00:10]*** step 13: 3275 (1565, 1710 REF) [00:00:10]*** step 14: 3174 (1543, 1631 REF) [00:00:10]*** step 15: 3077 (1523, 1554 REF) [00:00:10]*** step 16: 2983 (1503, 1480 REF) [00:00:10]*** step 17: 2893 (1486, 1407 REF) [00:00:10]*** step 18: 2806 (1466, 1340 REF) [00:00:10]*** step 19: 2723 (1426, 1297 REF) [00:00:10]*** step 20: 2642 (1406, 1236 REF) [00:00:10]*** step 21: 2565 (1384, 1181 REF) [00:00:10]*** step 22: 2490 (1364, 1126 REF) [00:00:10]*** step 23: 2418 (1344, 1074 REF) [00:00:10]*** step 24: 2349 (1322, 1027 REF) [00:00:10]*** step 25: 2283 (1302, 981 REF) [00:00:10]*** step 26: 2218 (1282, 936 REF) [00:00:10]*** step 27: 2157 (1262, 895 REF) [00:00:10]*** step 28: 2097 (1242, 855 REF) [00:00:10]*** step 29: 2040 (1222, 818 REF) [00:00:10]*** step 30: 1985 (1202, 783 REF) [00:00:10]*** step 31: 1932 (1191, 741 REF) [00:00:10]*** step 32: 1880 (1181, 699 REF) [00:00:10]*** step 33: 1831 (1171, 660 REF) [00:00:10]*** step 34: 1784 (1161, 623 REF) [00:00:10]*** step 35: 1738 (1151, 587 REF) [00:00:10]*** step 36: 1694 (1141, 553 REF) [00:00:10]*** step 37: 1652 (1131, 521 REF) [00:00:10]*** step 38: 1611 (1121, 490 REF) [00:00:10]*** step 39: 1572 (1111, 461 REF) [00:00:10]*** step 40: 1534 (1103, 431 REF) [00:00:10]*** step 41: 1497 (1093, 404 REF) [00:00:10]*** step 42: 1462 (1083, 379 REF) [00:00:10]*** step 43: 1428 (1073, 355 REF) [00:00:10]*** step 44: 1396 (1063, 333 REF) [00:00:10]*** step 45: 1365 (1053, 312 REF) [00:00:10]*** step 46: 1334 (1043, 291 REF) [00:00:10]*** step 47: 1305 (1033, 272 REF) [00:00:10]*** step 48: 1277 (1023, 254 REF) [00:00:10]*** step 49: 1250 (1013, 237 REF) [00:00:10]*** step 50: 1224 (990, 234 REF) [00:00:10]*** step 51: 1199 (980, 219 REF) [00:00:10]*** step 52: 1175 (970, 205 REF) [00:00:10]*** step 53: 1152 (960, 192 REF) [00:00:10]*** step 54: 1130 (950, 180 REF) [00:00:10]*** step 55: 1108 (940, 168 REF) [00:00:10]*** step 56: 1088 (930, 158 REF) [00:00:10]*** step 57: 1068 (920, 148 REF) [00:00:10]*** step 58: 1049 (910, 139 REF) [00:00:10]*** step 59: 1030 (900, 130 REF) [00:00:10]*** step 60: 1012 (890, 122 REF) [00:00:10]*** step 61: 995 (880, 115 REF) [00:00:10]*** step 62: 979 (870, 109 REF) [00:00:10]*** step 63: 963 (860, 103 REF) [00:00:10]*** step 64: 948 (850, 98 REF) [00:00:10]*** step 65: 933 (840, 93 REF) [00:00:10]*** step 66: 919 (830, 89 REF) [00:00:10]*** step 67: 905 (820, 85 REF) [00:00:10]*** step 68: 892 (810, 82 REF) [00:00:10]*** step 69: 879 (800, 79 REF) [00:00:10]*** step 70: 867 (790, 77 REF) [00:00:10]*** step 71: 855 (780, 75 REF) [00:00:10]*** step 72: 844 (770, 74 REF) [00:00:10]*** step 73: 833 (760, 73 REF) [00:00:10]*** step 74: 822 (750, 72 REF) [00:00:10]*** step 75: 812 (740, 72 REF) [00:00:10]*** step 76: 803 (730, 73 REF) [00:00:10]*** step 77: 793 (720, 73 REF) [00:00:10]*** step 78: 784 (710, 74 REF) [00:00:10]*** step 79: 776 (700, 76 REF) [00:00:10]*** step 80: 767 (690, 77 REF) [00:00:10]*** step 81: 759 (680, 79 REF) [00:00:10]*** step 82: 751 (670, 81 REF) [00:00:10]*** step 83: 744 (660, 84 REF) [00:00:10]*** step 84: 737 (650, 87 REF) [00:00:10]*** step 85: 730 (640, 90 REF) [00:00:10]*** step 86: 723 (630, 93 REF) [00:00:10]*** step 87: 717 (620, 97 REF) [00:00:10]*** step 88: 710 (610, 100 REF) [00:00:10]*** step 89: 705 (600, 105 REF) [00:00:10]*** step 90: 699 [00:00:10]*** step 91: 693 [00:00:10]*** step 92: 688 [00:00:10]*** step 93: 683 [00:00:10]*** step 94: 678 [00:00:10]*** step 95: 673 [00:00:10]*** step 96: 669 [00:00:10]*** step 97: 664 [00:00:10]*** step 98: 660 [00:00:10]*** step 99: 656 [00:00:10]*** step 100: 652 [00:00:10]*** step 101: 648 [00:00:10]*** step 102: 644 [00:00:10]*** step 103: 641 [00:00:10]*** step 104: 638 [00:00:10]*** step 105: 634 [00:00:10]*** step 106: 631 [00:00:10]*** step 107: 628 [00:00:10]*** step 108: 625 [00:00:10]*** step 109: 622 [00:00:10]*** step 110: 620 [00:00:10]*** step 111: 617 [00:00:10]*** step 112: 615 [00:00:10]*** step 113: 612 [00:00:10]*** step 114: 610 [00:00:10]*** step 115: 608 [00:00:10]*** step 116: 605 [00:00:10]*** step 117: 603 [00:00:10]*** step 118: 601 [00:00:10]*** step 119: 599 [00:00:10]*** printer: Printer HW initialized [00:00:10]*** initSamCard finished [00:00:10]*** RTC: 5111277+1724520608=1729631885 [00:00:10]*** BPK Status Register BPK_RDY = 0x0 [00:00:10]*** SEN State Register SEN_STATE = 0x200ff [00:00:10]*** 32K Frequency Sensor Enable SEN_XTAL32_EN = 0x80000055 [00:00:10]*** Analog Control Register 0 SEN_ANA0 = 0x33550624 [00:00:10]*** Is cutter blocked? [00:00:10]*** FLAG_PRN_PAP2 set [00:00:11]MH_GetMetrics [00:00:11]Write to MH i2c: 00 00 00 03 00 02 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 00 29 00 03 00 00 03 9C 77 C0 01 31 39 30 33 53 51 38 38 54 00 00 00 00 57 25 DF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF 00 03 00 85 [00:00:11]Are we in boot? [00:00:11]We are not in boot now [00:00:11]Write to MH i2c: 01 00 00 04 00 04 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: 01 07 00 04 00 00 02 00 00 00 FF 0F 1B [00:00:11]Model is 3 [00:00:11]MH firmware is 30620 [00:00:11]MH boot firmware is 3 [00:00:11]MH_SetPrinterDots 448 [00:00:11]HeadWidthInBytes 56 [00:00:11]maxmasksize 7 [00:00:11]Write to MH i2c: D6 06 00 05 00 6E 00 38 00 FF FF 84 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D6 01 00 05 00 00 DB [00:00:11]Write to MH i2c: D5 00 00 06 00 DA [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: D5 01 00 06 00 00 DB [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]LoadDictionaryFromArray [00:00:11]Load OK [00:00:11]ExternCall_SetCallbacks [00:00:11]NVStorageInit [00:00:11]MH_GetDate [00:00:11]Write to MH i2c: F0 00 00 07 00 F6 [00:00:11]Write i2c OK [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 [00:00:11]MH_I2C_Read... [00:00:11]Read from MH i2c: F0 09 00 07 00 00 8D 16 18 67 A0 18 CA 66 09 [21:18:05]Current date/time: 22.10.2024 21:18 [21:18:05]FM_Init [21:18:05]wFMConnect [21:18:05]MH_SAM_On [21:18:05]Write to MH i2c: E0 00 00 08 00 E7 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_init finished! [21:18:05]*** atr: [21:18:05]*** 0F 3B D5 18 FF 81 91 FE [21:18:05]*** 1F C3 80 73 C8 21 10 0A [21:18:05]*** 00 00 00 00 00 00 00 00 [21:18:05]*** 00 00 00 00 00 00 00 00 [21:18:05]*** 00 00 00 00 00 00 00 00 [21:18:05]*** 00 00 00 00 00 00 00 00 [21:18:05]*** 00 00 00 00 00 00 00 00 [21:18:05]*** 00 00 00 00 00 00 00 00 [21:18:05]Read from MH i2c: E0 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E0 10 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E0 10 00 08 00 00 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A 06 [21:18:05]ATR: 3B D5 18 FF 81 91 FE 1F C3 80 73 C8 21 10 0A [21:18:05]wFMCommunicate request_size=10 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 00 A4 04 00 05 01 02 03 04 05 [21:18:05]Write to MH i2c: E2 0D 00 09 00 00 A4 04 00 05 00 01 02 03 04 05 00 00 B3 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 00 A4 04 00... Resp OK rsp.len_out = 0! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 09 00 00 90 00 7D [21:18:05]RAPDU: 90 00 [21:18:05]wFMCommunicate OK [21:18:05]wFMCommunicate request_size=4 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 11 00 00 [21:18:05]Write to MH i2c: E2 08 00 0A 00 80 11 00 00 00 00 00 00 84 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 17 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 17 00 0A 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D2 [21:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:05]wFMCommunicate OK [21:18:05]Detected FM SN is 0000000000965340 [21:18:05]Stored FM SN is 0000000000965340 [21:18:05]wFMCommunicate request_size=9 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 16 00 00 04 28 0B 00 00 [21:18:05]Write to MH i2c: E2 0C 00 0B 00 80 16 00 00 04 00 28 0B 00 00 00 00 C5 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 16 00 00... Resp OK rsp.len_out = 0! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 0B 00 00 90 00 7F [21:18:05]RAPDU: 90 00 [21:18:05]wFMCommunicate OK [21:18:05]FM PIN OK [21:18:05]wFMCommunicate request_size=8 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 14 04 00 03 02 00 01 [21:18:05]Write to MH i2c: E2 0B 00 0C 00 80 14 04 00 03 00 02 00 01 00 00 96 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 14 04 00... Resp OK rsp.len_out = 0! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 0C 00 00 90 00 80 [21:18:05]RAPDU: 90 00 [21:18:05]wFMCommunicate OK [21:18:05]wFMCommunicate request_size=13 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 14 04 01 08 07 00 01 02 03 04 05 06 [21:18:05]Write to MH i2c: E2 10 00 0D 00 80 14 04 01 08 00 07 00 01 02 03 04 05 06 00 00 BB [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 14 04 01... Resp OK rsp.len_out = 0! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 03 00 0D 00 00 90 00 81 [21:18:05]RAPDU: 90 00 [21:18:05]wFMCommunicate OK [21:18:05]wFMCommunicate request_size=4 [21:18:05]MH_SAM_APDU [21:18:05]CAPDU: 80 11 00 00 [21:18:05]Write to MH i2c: E2 08 00 0E 00 80 11 00 00 00 00 00 00 88 [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:05]Read from MH i2c: E2 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 17 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: E2 17 00 0E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D6 [21:18:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:05]wFMCommunicate OK [21:18:05]DocumentArchiveInit [21:18:05]Start Httpd... [21:18:05]Httpd thread 3066936676 created [21:18:05]Write to MH i2c: 01 00 00 0F 00 0F [21:18:05]Write i2c OK [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: 01 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: 01 07 00 [21:18:05]MH_I2C_Read... [21:18:05]Read from MH i2c: 01 07 00 0F 00 00 02 00 00 00 FF 0F 26 [21:18:05]MH Int Process started [21:18:05]Allocated Socket 8 [21:18:05]Bind OK [21:18:05]Listen OK [21:18:05]httpd running on port 8080 [21:18:05]Waiting for new connection... [21:18:06]OFD Sender: No OFD packet to send [21:18:07]accept exits with 9 [21:18:07]New connection [21:18:07]New thread 3066649956 created [21:18:07]Waiting for new connection... [21:18:07] Sock 9.Parse request [21:18:07]Sock 9.Check first char [21:18:07]Sock 9.First char is OK [21:18:07]request: POST /json_proto HTTP/1.0 [21:18:07]Method: POST [21:18:07]URL: /json_proto [21:18:07]Method is POST - this is cgi request [21:18:07]url: /json_proto [21:18:07]query_string will be loaded in cgi processing [21:18:07]execute_cgi json_proto POST (null) [21:18:07]execute_cgi path=json_proto method=POST [21:18:07]POST find Content-Length [21:18:07]Host: 172.17.42.131:8080 [21:18:07]Content-Length: 215 [21:18:07]Content-Type: application/json [21:18:07] [21:18:07]POST finish read [21:18:07]Found Content-Length = 215 [21:18:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:07]execute_script... [21:18:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:07]POST & json_proto [21:18:07]process_json_proto [21:18:07]json parsed OK: [21:18:07]protocol is kg_v1.0 [21:18:07]action value=get_value [21:18:07]process_action get_value [21:18:07]cmd_get_value [21:18:07]process_action get_value done [21:18:07]requested_data is exist [21:18:07]produce_requested_data [21:18:07]requested_item kkm.sn is exist - process it [21:18:07]requested_item kkm.ver is exist - process it [21:18:07]requested_item fm.sn is exist - process it [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 11 00 00 [21:18:07]Write to MH i2c: E2 08 00 10 00 80 11 00 00 00 00 00 00 8A [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 17 00 10 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [21:18:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:07]wFMCommunicate OK [21:18:07]requested_item fd.num is exist - process it [21:18:07]SAM_PROTO_GetFieldsCounters [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 13 00 00 [21:18:07]Write to MH i2c: E2 08 00 11 00 80 13 00 00 00 00 00 00 8D [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 62 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 62 00 11 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 D9 [21:18:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_GetFieldsCounters done [21:18:07]requested_item shift.num is exist - process it [21:18:07]requested_item shift.opened is exist - process it [21:18:07]req_shift_opened [21:18:07]FM_GetShiftState [21:18:07]SAM_PROTO_GetShiftState [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 13 01 00 [21:18:07]Write to MH i2c: E2 08 00 12 00 80 13 01 00 00 00 00 00 8F [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:07]Read from MH i2c: E2 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0E 00 [21:18:07]MH_I2C_Read... [21:18:07]Read from MH i2c: E2 0E 00 12 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [21:18:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:18:07]wFMCommunicate OK [21:18:07]SAM_PROTO_GetShiftState done [21:18:07]FM_GetShiftState done [21:18:07]req_shift_opened done [21:18:07]requested_item shift.open_date is exist - process it [21:18:07]req_shift_open_date [21:18:07]req_shift_open_date done [21:18:07]produce_requested_data done [21:18:07]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188502,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:18:07]process_action_free get_value [21:18:07]json_value_free [21:18:07]json_value_free done [21:18:07]process_json_proto returns [21:18:07]Send response to host [21:18:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188502,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:18:07]free response buf [21:18:07]execute_script done [21:18:07]execute_script returns [21:18:07]free content buf [21:18:07]Sock 9.Close socket [21:18:07]Sock 9.Thread stoped [21:18:07]accept exits with 7 [21:18:07]New connection [21:18:07]New thread 3066506596 created [21:18:07]Thread 3066649956 joined [21:18:07]Waiting for new connection... [21:18:07] Sock 7.Parse request [21:18:07]Sock 7.Check first char [21:18:07]Sock 7.First char is OK [21:18:07]request: POST /json_proto HTTP/1.0 [21:18:07]Method: POST [21:18:07]URL: /json_proto [21:18:07]Method is POST - this is cgi request [21:18:07]url: /json_proto [21:18:07]query_string will be loaded in cgi processing [21:18:07]execute_cgi json_proto POST (null) [21:18:07]execute_cgi path=json_proto method=POST [21:18:07]POST find Content-Length [21:18:07]Host: 172.17.42.131:8080 [21:18:07]Content-Length: 331 [21:18:07]Content-Type: application/json [21:18:07] [21:18:07]POST finish read [21:18:07]Found Content-Length = 331 [21:18:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:18:07]execute_script... [21:18:07]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:18:07]POST & json_proto [21:18:07]process_json_proto [21:18:07]json parsed OK: [21:18:07]protocol is kg_v1.0 [21:18:07]action value=get_value [21:18:07]process_action get_value [21:18:07]cmd_get_value [21:18:07]process_action get_value done [21:18:07]requested_data is exist [21:18:07]produce_requested_data [21:18:07]requested_item fm.sale.total is exist - process it [21:18:07]SAM_PROTO_GetFMData [21:18:07]wFMCommunicate request_size=4 [21:18:07]MH_SAM_APDU [21:18:07]CAPDU: 80 13 03 00 [21:18:07]Write to MH i2c: E2 08 00 13 00 80 13 03 00 00 00 00 00 92 [21:18:07]Write i2c OK [21:18:07]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 13 00 00 CB 04 85 04 C7 04 6E 04 04 00 BC DC 02 00 69 04 A4 00 6F 04 04 00 2D DC 02 00 B1 04 05 00 3D 8C A4 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 2D 6C BD 19 02 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 E5 C1 2E B7 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 A6 AB 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 EA [21:18:08]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 BC DC 02 00 69 04 A4 00 6F 04 04 00 2D DC 02 00 B1 04 05 00 3D 8C A4 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 2D 6C BD 19 02 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 E5 C1 2E B7 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 A6 AB 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 17 00 00 [21:18:08]Write to MH i2c: E2 08 00 14 00 80 17 00 00 00 00 00 00 94 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 14 00 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 61 [21:18:08]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 17 00 00 [21:18:08]Write to MH i2c: E2 08 00 15 00 80 17 00 00 00 00 00 00 95 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 15 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 70 [21:18:08]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 17 00 00 [21:18:08]Write to MH i2c: E2 08 00 16 00 80 17 00 00 00 00 00 00 96 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:08]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:08]Read from MH i2c: E2 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 [21:18:08]MH_I2C_Read... [21:18:08]Read from MH i2c: E2 FD 00 16 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 14 [21:18:08]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:08]wFMCommunicate OK [21:18:08]wFMCommunicate request_size=4 [21:18:08]MH_SAM_APDU [21:18:08]CAPDU: 80 17 00 00 [21:18:08]Write to MH i2c: E2 08 00 17 00 80 17 00 00 00 00 00 00 97 [21:18:08]Write i2c OK [21:18:08]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 E8 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 E8 00 17 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 75 [21:18:09]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:18:09]wFMCommunicate OK [21:18:09]SAM_PROTO_GetFMData done [21:18:09]requested_item fm.sale_refund.total is exist - process it [21:18:09]requested_item fm.buy.total is exist - process it [21:18:09]requested_item shift.sale.total is exist - process it [21:18:09]SAM_PROTO_GetShiftData [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 13 02 00 [21:18:09]Write to MH i2c: E2 08 00 18 00 80 13 02 00 00 00 00 00 96 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 FD 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 FD 00 18 00 00 B1 04 AA 04 AD 04 6E 04 04 00 13 02 00 00 69 04 9E 00 6F 04 04 00 13 02 00 00 B1 04 04 00 9E 57 A5 04 70 04 04 00 44 4D CA 03 72 04 03 00 5A 0A DB 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 C0 53 7E 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 D2 86 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 C5 [21:18:09]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 13 02 00 00 69 04 9E 00 6F 04 04 00 13 02 00 00 B1 04 04 00 9E 57 A5 04 70 04 04 00 44 4D CA 03 72 04 03 00 5A 0A DB 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 C0 53 7E 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 D2 86 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [21:18:09]wFMCommunicate OK [21:18:09]wFMCommunicate request_size=4 [21:18:09]MH_SAM_APDU [21:18:09]CAPDU: 80 17 00 00 [21:18:09]Write to MH i2c: E2 08 00 19 00 80 17 00 00 00 00 00 00 99 [21:18:09]Write i2c OK [21:18:09]MH_I2C_Read... [21:18:09]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:09]Read from MH i2c: E2 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 FD 00 [21:18:09]MH_I2C_Read... [21:18:09]Read from MH i2c: E2 FD 00 19 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B2 [21:18:10]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:10]wFMCommunicate OK [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 17 00 00 [21:18:10]Write to MH i2c: E2 08 00 1A 00 80 17 00 00 00 00 00 00 9A [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 FD 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 FD 00 1A 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [21:18:10]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:10]wFMCommunicate OK [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 17 00 00 [21:18:10]Write to MH i2c: E2 08 00 1B 00 80 17 00 00 00 00 00 00 9B [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 FD 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 FD 00 1B 00 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 90 00 13 [21:18:10]RAPDU: 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 90 00 [21:18:10]wFMCommunicate OK [21:18:10]wFMCommunicate request_size=4 [21:18:10]MH_SAM_APDU [21:18:10]CAPDU: 80 17 00 00 [21:18:10]Write to MH i2c: E2 08 00 1C 00 80 17 00 00 00 00 00 00 9C [21:18:10]Write i2c OK [21:18:10]MH_I2C_Read... [21:18:10]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [21:18:10]Read from MH i2c: E2 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 CE 00 [21:18:10]MH_I2C_Read... [21:18:10]Read from MH i2c: E2 CE 00 1C 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 81 [21:18:10]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:18:10]wFMCommunicate OK [21:18:10]SAM_PROTO_GetShiftData done [21:18:10]requested_item shift.sale.total_cash is exist - process it [21:18:10]requested_item shift.sale_refund.total is exist - process it [21:18:10]requested_item shift.sale_refund.total_cash is exist - process it [21:18:10]requested_item shift.buy.total is exist - process it [21:18:10]requested_item shift.buy.total_cash is exist - process it [21:18:10]produce_requested_data done [21:18:10]produce_requested_data return {"fm.sale.total":289347041.89,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":779447.34,"shift.sale.total_cash":635897.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:18:10]process_action_free get_value [21:18:10]json_value_free [21:18:10]json_value_free done [21:18:10]process_json_proto returns [21:18:10]Send response to host [21:18:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289347041.89,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":779447.34,"shift.sale.total_cash":635897.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:18:10]free response buf [21:18:10]execute_script done [21:18:10]execute_script returns [21:18:10]free content buf [21:18:10]Sock 7.Close socket [21:18:10]Sock 7.Thread stoped [21:18:11]accept exits with 9 [21:18:11]New connection [21:18:11]New thread 3066649956 created [21:18:11]Thread 3066506596 joined [21:18:11]Waiting for new connection... [21:18:11] Sock 9.Parse request [21:18:11]Sock 9.Check first char [21:18:11]Sock 9.First char is OK [21:18:11]request: POST /json_proto HTTP/1.0 [21:18:11]Method: POST [21:18:11]URL: /json_proto [21:18:11]Method is POST - this is cgi request [21:18:11]url: /json_proto [21:18:11]query_string will be loaded in cgi processing [21:18:11]execute_cgi json_proto POST (null) [21:18:11]execute_cgi path=json_proto method=POST [21:18:11]POST find Content-Length [21:18:11]Host: 172.17.42.131:8080 [21:18:11]Content-Length: 144 [21:18:11]Content-Type: application/json [21:18:11] [21:18:11]POST finish read [21:18:11]Found Content-Length = 144 [21:18:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:18:11]execute_script... [21:18:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "print_doc", "params" : { "type" : "last" } , "requested_data" : [ ] } } [21:18:11]POST & json_proto [21:18:11]process_json_proto [21:18:11]json parsed OK: [21:18:11]protocol is kg_v1.0 [21:18:11]action value=print_doc [21:18:11]process_action print_doc [21:18:11]ExternCall_PrintAddStr [21:18:11]wPrintStart [21:18:11]Write to MH i2c: 01 00 00 1D 00 1D [21:18:11]Write i2c OK [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 07 00 [21:18:11]MH_I2C_Read... [21:18:11]Read from MH i2c: 01 07 00 1D 00 00 02 00 00 00 FF 0F 34 [21:18:11]RasterBufferAndPrint [21:18:11]line Счет N : (1)210561 [21:18:11]line ИНН: 02508201610067 [21:18:11]line Контрольно-Кассовый Чек [21:18:11]line ПРОДАЖА [21:18:11]line ТРК (МРК, ГНК) : 42 [21:18:11]line Товар: 2710124130 [21:18:11]line Аи-92-К-3 [21:18:11]line 37.370 * 66.90 [21:18:11]line = 2500.05 [21:18:11]line НДС 12% НСП 1% [21:18:11]line > о реализуемом товаре [21:18:11]line ОКРУГЛЕНИЕ: -0.05 [21:18:11]line ИТОГО: 2500.00 [21:18:11]line Внесено: 2500.00 [21:18:11]line СДАЧА: 0.00 [21:18:11]line НСП 1% : 22.12 [21:18:11]line НДС 12% : 265.49 [21:18:11]line Наличными: 2500.00 [21:18:11]line Безнал.: 0.00 [21:18:11]line Место: АЗС № 86 "Партнер Нефть" [21:18:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:18:11]line СНО: Общий режим [21:18:11]line Чек 530 22.10.2024 21:06 [21:18:11]line Смена: 461 ФФД: 1.0 [21:18:11]line ЗНМ: 0300000155 [21:18:11]line РНМ: 0000000000100030 [21:18:11]line Версия ККМ: 001 [21:18:11]line ФМ: 0000000000965340 [21:18:11]line ФД: 188501 [21:18:11]line ФПД: 278236635683444 [21:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T210637&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188501&fm=278236635683444&tin=02508201610067®Number=0000000000100030&sum=250000 [21:18:11]written 0, free lines is 4095 [21:18:11]Error from MH - 05 [21:18:11]process_action_free print_doc [21:18:11]json_value_free [21:18:11]json_value_free done [21:18:11]process_json_proto returns [21:18:11]Send response to host [21:18:11]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [21:18:11]free response buf [21:18:11]execute_script done [21:18:11]execute_script returns [21:18:11]free content buf [21:18:11]Sock 9.Close socket [21:18:11]Sock 9.Thread stoped [21:18:12]OFD Sender: No OFD packet to send [21:18:17]OFD Sender: No OFD packet to send [21:18:22]OFD Sender: No OFD packet to send [21:18:27]OFD Sender: No OFD packet to send [21:18:30]int [21:18:30]Write to MH i2c: 01 00 00 20 00 20 [21:18:30]*** FLAG_PRN_PAP1 set [21:18:30]Write i2c OK [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: 01 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: 01 07 00 [21:18:30]MH_I2C_Read... [21:18:30]Read from MH i2c: 01 07 00 20 00 00 03 00 00 00 FF 0F 38 [21:18:30]state=0 [21:18:30]No paper [21:18:30]Cover opened [21:18:31]int [21:18:31]Write to MH i2c: 01 00 00 21 00 21 [21:18:31]*** FLAG_PRN_PAP2 reset [21:18:31]Write i2c OK [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 21 00 00 01 00 00 00 FF 0F 37 [21:18:31]state=3 [21:18:31]No paper [21:18:31]Cover closed [21:18:31]int [21:18:31]Write to MH i2c: 01 00 00 22 00 22 [21:18:31]*** FLAG_PRN_PAP1 reset [21:18:31]Write i2c OK [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 [21:18:31]MH_I2C_Read... [21:18:31]Read from MH i2c: 01 07 00 22 00 00 00 00 00 00 FF 0F 37 [21:18:31]state=0 [21:18:32]OFD Sender: No OFD packet to send [21:18:33]accept exits with 7 [21:18:33]New connection [21:18:33]New thread 3066506596 created [21:18:33]Thread 3066649956 joined [21:18:33]Waiting for new connection... [21:18:33] Sock 7.Parse request [21:18:33]Sock 7.Check first char [21:18:33]Sock 7.First char is OK [21:18:33]request: POST /json_proto HTTP/1.0 [21:18:33]Method: POST [21:18:33]URL: /json_proto [21:18:33]Method is POST - this is cgi request [21:18:33]url: /json_proto [21:18:33]query_string will be loaded in cgi processing [21:18:33]execute_cgi json_proto POST (null) [21:18:33]execute_cgi path=json_proto method=POST [21:18:33]POST find Content-Length [21:18:33]Host: 172.17.42.131:8080 [21:18:33]Content-Length: 215 [21:18:33]Content-Type: application/json [21:18:33] [21:18:33]POST finish read [21:18:33]Found Content-Length = 215 [21:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:33]execute_script... [21:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:33]POST & json_proto [21:18:33]process_json_proto [21:18:33]json parsed OK: [21:18:33]protocol is kg_v1.0 [21:18:33]action value=get_value [21:18:33]process_action get_value [21:18:33]cmd_get_value [21:18:33]process_action get_value done [21:18:33]requested_data is exist [21:18:33]produce_requested_data [21:18:33]requested_item kkm.sn is exist - process it [21:18:33]requested_item kkm.ver is exist - process it [21:18:33]requested_item fm.sn is exist - process it [21:18:33]wFMCommunicate request_size=4 [21:18:33]MH_SAM_APDU [21:18:33]CAPDU: 80 11 00 00 [21:18:33]Write to MH i2c: E2 08 00 23 00 80 11 00 00 00 00 00 00 9D [21:18:33]Write i2c OK [21:18:33]MH_I2C_Read... [21:18:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:33]Read from MH i2c: E2 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: E2 17 00 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: E2 17 00 23 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EB [21:18:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:33]wFMCommunicate OK [21:18:33]requested_item fd.num is exist - process it [21:18:33]SAM_PROTO_GetFieldsCounters [21:18:33]wFMCommunicate request_size=4 [21:18:33]MH_SAM_APDU [21:18:33]CAPDU: 80 13 00 00 [21:18:33]Write to MH i2c: E2 08 00 24 00 80 13 00 00 00 00 00 00 A0 [21:18:33]Write i2c OK [21:18:33]MH_I2C_Read... [21:18:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:33]Read from MH i2c: E2 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: E2 62 00 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: E2 62 00 24 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 EC [21:18:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 56 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 13 02 00 00 5E 04 04 00 13 02 00 00 57 04 04 00 14 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:33]wFMCommunicate OK [21:18:33]SAM_PROTO_GetFieldsCounters done [21:18:33]requested_item shift.num is exist - process it [21:18:33]requested_item shift.opened is exist - process it [21:18:33]req_shift_opened [21:18:33]FM_GetShiftState [21:18:33]SAM_PROTO_GetShiftState [21:18:33]wFMCommunicate request_size=4 [21:18:33]MH_SAM_APDU [21:18:33]CAPDU: 80 13 01 00 [21:18:33]Write to MH i2c: E2 08 00 25 00 80 13 01 00 00 00 00 00 A2 [21:18:33]Write i2c OK [21:18:33]MH_I2C_Read... [21:18:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:33]Read from MH i2c: E2 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: E2 0E 00 [21:18:33]MH_I2C_Read... [21:18:33]Read from MH i2c: E2 0E 00 25 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 97 [21:18:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:18:33]wFMCommunicate OK [21:18:33]SAM_PROTO_GetShiftState done [21:18:33]FM_GetShiftState done [21:18:33]req_shift_opened done [21:18:33]requested_item shift.open_date is exist - process it [21:18:33]req_shift_open_date [21:18:33]req_shift_open_date done [21:18:33]produce_requested_data done [21:18:33]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188502,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:18:33]process_action_free get_value [21:18:33]json_value_free [21:18:33]json_value_free done [21:18:33]process_json_proto returns [21:18:33]Send response to host [21:18:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188502,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:18:33]free response buf [21:18:33]execute_script done [21:18:33]execute_script returns [21:18:33]free content buf [21:18:33]Sock 7.Close socket [21:18:33]Sock 7.Thread stoped [21:18:33]accept exits with 9 [21:18:33]New connection [21:18:33]New thread 3066649956 created [21:18:33]Thread 3066506596 joined [21:18:33]Waiting for new connection... [21:18:33] Sock 9.Parse request [21:18:33]Sock 9.Check first char [21:18:33]Sock 9.First char is OK [21:18:33]request: POST /json_proto HTTP/1.0 [21:18:33]Method: POST [21:18:33]URL: /json_proto [21:18:33]Method is POST - this is cgi request [21:18:33]url: /json_proto [21:18:33]query_string will be loaded in cgi processing [21:18:33]execute_cgi json_proto POST (null) [21:18:33]execute_cgi path=json_proto method=POST [21:18:33]POST find Content-Length [21:18:33]Host: 172.17.42.131:8080 [21:18:33]Content-Length: 331 [21:18:33]Content-Type: application/json [21:18:33] [21:18:33]POST finish read [21:18:33]Found Content-Length = 331 [21:18:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:18:33]execute_script... [21:18:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [21:18:33]POST & json_proto [21:18:33]process_json_proto [21:18:33]json parsed OK: [21:18:33]protocol is kg_v1.0 [21:18:33]action value=get_value [21:18:33]process_action get_value [21:18:33]cmd_get_value [21:18:33]process_action get_value done [21:18:33]requested_data is exist [21:18:33]produce_requested_data [21:18:33]requested_item fm.sale.total is exist - process it [21:18:33]SAM_PROTO_GetFMData [21:18:33]wFMCommunicate request_size=4 [21:18:33]MH_SAM_APDU [21:18:33]CAPDU: 80 13 03 00 [21:18:33]Write to MH i2c: E2 08 00 26 00 80 13 03 00 00 00 00 00 A5 [21:18:33]Write i2c OK [21:18:33]MH_I2C_Read... [21:18:34]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [21:18:34]Read from MH i2c: E2 [21:18:34]MH_I2C_Read... [21:18:34]Read from MH i2c: E2 FD 00 [21:18:34]MH_I2C_Read... [21:18:34]Read from MH i2c: E2 FD 00 26 00 00 CB 04 85 04 C7 04 6E 04 04 00 BC DC 02 00 69 04 A4 00 6F 04 04 00 2D DC 02 00 B1 04 05 00 3D 8C A4 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 2D 6C BD 19 02 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 E5 C1 2E B7 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 A6 AB 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 FD [21:18:34]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 BC DC 02 00 69 04 A4 00 6F 04 04 00 2D DC 02 00 B1 04 05 00 3D 8C A4 BC 06 70 04 05 00 10 20 E7 A2 04 72 04 05 00 2D 6C BD 19 02 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 E5 C1 2E B7 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 A6 AB 43 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [21:18:34]wFMCommunicate OK [21:18:34]wFMCommunicate request_size=4 [21:18:34]MH_SAM_APDU [21:18:34]CAPDU: 80 17 00 00 [21:18:34]Write to MH i2c: E2 08 00 27 00 80 17 00 00 00 00 00 00 A7 [21:18:34]Write i2c OK [21:18:34]MH_I2C_Read... [21:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:34]Read from MH i2c: E2 [21:18:34]MH_I2C_Read... [21:18:34]Read from MH i2c: E2 FD 00 [21:18:34]MH_I2C_Read... [21:18:34]Read from MH i2c: E2 FD 00 27 00 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 74 [21:18:34]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [21:18:34]wFMCommunicate OK [21:18:34]wFMCommunicate request_size=4 [21:18:34]MH_SAM_APDU [21:18:34]CAPDU: 80 17 00 00 [21:18:34]Write to MH i2c: E2 08 00 28 00 80 17 00 00 00 00 00 00 A8 [21:18:34]Write i2c OK [21:18:34]MH_I2C_Read... [21:18:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:34]Read from MH i2c: E2 [21:18:34]MH_I2C_Read... [21:18:34]Read from MH i2c: E2 FD 00 [21:18:34]MH_I2C_Read... [21:18:34]Read from MH i2c: E2 FD 00 28 00 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [21:18:34]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:34]wFMCommunicate OK [21:18:34]wFMCommunicate request_size=4 [21:18:34]MH_SAM_APDU [21:18:34]CAPDU: 80 17 00 00 [21:18:34]Write to MH i2c: E2 08 00 29 00 80 17 00 00 00 00 00 00 A9 [21:18:34]Write i2c OK [21:18:34]MH_I2C_Read... [21:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:35]Read from MH i2c: E2 [21:18:35]MH_I2C_Read... [21:18:35]Read from MH i2c: E2 FD 00 [21:18:35]MH_I2C_Read... [21:18:35]Read from MH i2c: E2 FD 00 29 00 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [21:18:35]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:35]wFMCommunicate OK [21:18:35]wFMCommunicate request_size=4 [21:18:35]MH_SAM_APDU [21:18:35]CAPDU: 80 17 00 00 [21:18:35]Write to MH i2c: E2 08 00 2A 00 80 17 00 00 00 00 00 00 AA [21:18:35]Write i2c OK [21:18:35]MH_I2C_Read... [21:18:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [21:18:35]Read from MH i2c: E2 [21:18:35]MH_I2C_Read... [21:18:35]Read from MH i2c: E2 E8 00 [21:18:35]MH_I2C_Read... [21:18:35]Read from MH i2c: E2 E8 00 2A 00 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [21:18:35]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:18:35]wFMCommunicate OK [21:18:35]SAM_PROTO_GetFMData done [21:18:35]requested_item fm.sale_refund.total is exist - process it [21:18:35]requested_item fm.buy.total is exist - process it [21:18:35]requested_item shift.sale.total is exist - process it [21:18:35]SAM_PROTO_GetShiftData [21:18:35]wFMCommunicate request_size=4 [21:18:35]MH_SAM_APDU [21:18:35]CAPDU: 80 13 02 00 [21:18:35]Write to MH i2c: E2 08 00 2B 00 80 13 02 00 00 00 00 00 A9 [21:18:35]Write i2c OK [21:18:35]MH_I2C_Read... [21:18:35]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [21:18:35]Read from MH i2c: E2 [21:18:35]MH_I2C_Read... [21:18:35]Read from MH i2c: E2 FD 00 [21:18:35]MH_I2C_Read... [21:18:35]Read from MH i2c: E2 FD 00 2B 00 00 B1 04 AA 04 AD 04 6E 04 04 00 13 02 00 00 69 04 9E 00 6F 04 04 00 13 02 00 00 B1 04 04 00 9E 57 A5 04 70 04 04 00 44 4D CA 03 72 04 03 00 5A 0A DB 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 C0 53 7E 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 D2 86 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 D8 [21:18:35]RAPDU: B1 04 AA 04 AD 04 6E 04 04 00 13 02 00 00 69 04 9E 00 6F 04 04 00 13 02 00 00 B1 04 04 00 9E 57 A5 04 70 04 04 00 44 4D CA 03 72 04 03 00 5A 0A DB 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 C0 53 7E 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 D2 86 0A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 90 00 [21:18:35]wFMCommunicate OK [21:18:35]wFMCommunicate request_size=4 [21:18:35]MH_SAM_APDU [21:18:35]CAPDU: 80 17 00 00 [21:18:35]Write to MH i2c: E2 08 00 2C 00 80 17 00 00 00 00 00 00 AC [21:18:35]Write i2c OK [21:18:35]MH_I2C_Read... [21:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:36]Read from MH i2c: E2 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 FD 00 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 FD 00 2C 00 00 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [21:18:36]RAPDU: 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:36]wFMCommunicate OK [21:18:36]wFMCommunicate request_size=4 [21:18:36]MH_SAM_APDU [21:18:36]CAPDU: 80 17 00 00 [21:18:36]Write to MH i2c: E2 08 00 2D 00 80 17 00 00 00 00 00 00 AD [21:18:36]Write i2c OK [21:18:36]MH_I2C_Read... [21:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:36]Read from MH i2c: E2 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 FD 00 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 FD 00 2D 00 00 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 66 [21:18:36]RAPDU: 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [21:18:36]wFMCommunicate OK [21:18:36]wFMCommunicate request_size=4 [21:18:36]MH_SAM_APDU [21:18:36]CAPDU: 80 17 00 00 [21:18:36]Write to MH i2c: E2 08 00 2E 00 80 17 00 00 00 00 00 00 AE [21:18:36]Write i2c OK [21:18:36]MH_I2C_Read... [21:18:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [21:18:36]Read from MH i2c: E2 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 FD 00 [21:18:36]MH_I2C_Read... [21:18:36]Read from MH i2c: E2 FD 00 2E 00 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 90 00 26 [21:18:36]RAPDU: 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 90 00 [21:18:36]wFMCommunicate OK [21:18:36]wFMCommunicate request_size=4 [21:18:36]MH_SAM_APDU [21:18:36]CAPDU: 80 17 00 00 [21:18:36]Write to MH i2c: E2 08 00 2F 00 80 17 00 00 00 00 00 00 AF [21:18:36]Write i2c OK [21:18:36]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 203! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 CE 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 CE 00 2F 00 00 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 94 [21:18:37]RAPDU: 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [21:18:37]wFMCommunicate OK [21:18:37]SAM_PROTO_GetShiftData done [21:18:37]requested_item shift.sale.total_cash is exist - process it [21:18:37]requested_item shift.sale_refund.total is exist - process it [21:18:37]requested_item shift.sale_refund.total_cash is exist - process it [21:18:37]requested_item shift.buy.total is exist - process it [21:18:37]requested_item shift.buy.total_cash is exist - process it [21:18:37]produce_requested_data done [21:18:37]produce_requested_data return {"fm.sale.total":289347041.89,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":779447.34,"shift.sale.total_cash":635897.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [21:18:37]process_action_free get_value [21:18:37]json_value_free [21:18:37]json_value_free done [21:18:37]process_json_proto returns [21:18:37]Send response to host [21:18:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289347041.89,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":779447.34,"shift.sale.total_cash":635897.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [21:18:37]free response buf [21:18:37]execute_script done [21:18:37]execute_script returns [21:18:37]free content buf [21:18:37]Sock 9.Close socket [21:18:37]Sock 9.Thread stoped [21:18:37]OFD Sender: No OFD packet to send [21:18:37]accept exits with 7 [21:18:37]New connection [21:18:37]New thread 3066506596 created [21:18:37]Thread 3066649956 joined [21:18:37]Waiting for new connection... [21:18:37] Sock 7.Parse request [21:18:37]Sock 7.Check first char [21:18:37]Sock 7.First char is OK [21:18:37]request: POST /json_proto HTTP/1.0 [21:18:37]Method: POST [21:18:37]URL: /json_proto [21:18:37]Method is POST - this is cgi request [21:18:37]url: /json_proto [21:18:37]query_string will be loaded in cgi processing [21:18:37]execute_cgi json_proto POST (null) [21:18:37]execute_cgi path=json_proto method=POST [21:18:37]POST find Content-Length [21:18:37]Host: 172.17.42.131:8080 [21:18:37]Content-Length: 677 [21:18:37]Content-Type: application/json [21:18:37] [21:18:37]POST finish read [21:18:37]Found Content-Length = 677 [21:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:37]execute_script... [21:18: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)210563", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:18:37]POST & json_proto [21:18:37]process_json_proto [21:18:37]json parsed OK: [21:18:37]protocol is kg_v1.0 [21:18:37]action value=close_receipt [21:18:37]process_action close_receipt [21:18:37]cmd_close_receipt [21:18:37]MH_GetDate [21:18:37]Write to MH i2c: F0 00 00 30 00 1F [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: F0 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: F0 09 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: F0 09 00 30 00 00 AE 16 18 67 A0 18 CA 66 53 [21:18:37]GetLastDocTimeStamp 1729631197 [21:18:37]current date 1729631918 [21:18:37]FM_GetShiftState [21:18:37]SAM_PROTO_GetShiftState [21:18:37]wFMCommunicate request_size=4 [21:18:37]MH_SAM_APDU [21:18:37]CAPDU: 80 13 01 00 [21:18:37]Write to MH i2c: E2 08 00 31 00 80 13 01 00 00 00 00 00 AE [21:18:37]Write i2c OK [21:18:37]MH_I2C_Read... [21:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:37]Read from MH i2c: E2 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 0E 00 [21:18:37]MH_I2C_Read... [21:18:37]Read from MH i2c: E2 0E 00 31 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A3 [21:18:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:18:37]wFMCommunicate OK [21:18:37]SAM_PROTO_GetShiftState done [21:18:37]FM_GetShiftState done [21:18:37]opened in 1729556094 [21:18:37]opened+sec_in_day 1729642494 [21:18:37]quantity*price = 50041 [21:18:37]sum+1 = 50042 [21:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 532 22.10.2024 21:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188503 ФПД: 146393516296477 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188503&fm=146393516296477&tin=02508201610067®Number=0000000000100030&sum=50000 [21:18:38]StoreToDocumentArchive [21:18:38]shift 461 fd 188503 [21:18:38]save to /storage/0461/doc_00188503 [21:18:38]save last doc name /storage/0461/doc_00188503 to /storage/kkm_last_doc_name [21:18:38]save OK [21:18:38]Clear old archive folders... [21:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:18:38]tlvbuf is 008CF4A0 [21:18:38]SAM_PROTO_ClearQueue [21:18:38]wFMCommunicate request_size=4 [21:18:38]MH_SAM_APDU [21:18:38]CAPDU: 80 09 00 00 [21:18:38]Write to MH i2c: E2 08 00 3E 00 80 09 00 00 00 00 00 00 B0 [21:18:38]Write i2c OK [21:18:38]MH_I2C_Read... [21:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:18:38]Read from MH i2c: E2 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: E2 03 00 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: E2 03 00 3E 00 00 90 00 B2 [21:18:38]RAPDU: 90 00 [21:18:38]wFMCommunicate OK [21:18:38]SAM_PROTO_ClearQueue done [21:18:38]KKMCreateOFDPacket [21:18:38]OFDProtocolAddRootSTLVToBuf [21:18:38]FM_MakeSignedData [21:18:38]FM_MakeSignedData [21:18:38]SAM_PROTO_SignData [21:18:38]wFMCommunicate request_size=4 [21:18:38]MH_SAM_APDU [21:18:38]CAPDU: 80 0D 01 02 [21:18:38]Write to MH i2c: E2 08 00 3F 00 80 0D 01 02 00 00 00 00 B8 [21:18:38]Write i2c OK [21:18:38]MH_I2C_Read... [21:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:18:38]Read from MH i2c: E2 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: E2 03 00 [21:18:38]MH_I2C_Read... [21:18:38]Read from MH i2c: E2 03 00 3F 00 00 90 00 B3 [21:18:38]RAPDU: 90 00 [21:18:38]wFMCommunicate OK [21:18:38]wFMCommunicate request_size=255 [21:18:38]MH_SAM_APDU [21:18: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 AE 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E0 02 00 35 04 06 00 85 [21:18:38]Write to MH i2c: E2 02 01 40 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 AE 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E0 02 00 35 04 06 00 85 00 00 10 [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:39]Read from MH i2c: E2 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 03 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 03 00 40 00 00 90 00 B4 [21:18:39]RAPDU: 90 00 [21:18:39]wFMCommunicate OK [21:18:39]wFMCommunicate request_size=10 [21:18:39]MH_SAM_APDU [21:18:39]CAPDU: 80 0D 02 02 05 24 E5 89 49 1D [21:18:39]Write to MH i2c: E2 0D 00 41 00 80 0D 02 02 05 00 24 E5 89 49 1D 00 00 BD [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:18:39]Read from MH i2c: E2 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 03 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 03 00 41 00 00 90 00 B5 [21:18:39]RAPDU: 90 00 [21:18:39]wFMCommunicate OK [21:18:39]wFMCommunicate request_size=4 [21:18:39]MH_SAM_APDU [21:18:39]CAPDU: 80 0D 03 02 [21:18:39]Write to MH i2c: E2 08 00 42 00 80 0D 03 02 00 00 00 00 BD [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:18:39]Read from MH i2c: E2 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 0B 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 0B 00 42 00 00 2E 34 C1 03 FC 3B 7B 17 90 00 AD [21:18:39]RAPDU: 2E 34 C1 03 FC 3B 7B 17 90 00 [21:18:39]wFMCommunicate OK [21:18:39]SAM_PROTO_SignData done [21:18:39]FM_MakeSignedData done [21:18:39]CreateOFDProtocolMessage [21:18:39]wFMCommunicate request_size=4 [21:18:39]MH_SAM_APDU [21:18:39]CAPDU: 80 11 00 00 [21:18:39]Write to MH i2c: E2 08 00 43 00 80 11 00 00 00 00 00 00 BD [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:39]Read from MH i2c: E2 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 17 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: E2 17 00 43 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0B [21:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:39]wFMCommunicate OK [21:18:39]CreateOFDProtocolMessage done [21:18:39]OFDSenderStorePacket 188503 [21:18:39]StoreOFDPacket docnum=188503 [21:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 08 07 01 87 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 AE 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E0 02 00 35 04 06 00 85 24 E5 89 49 1D 2E 34 C1 03 FC 3B 7B 17 [21:18:39]CheckFolder [21:18:39]dirname=/storage/ofd_packets [21:18:39]CheckFolder done [21:18:39]ProducePacketName [21:18:39]name=ofd_packets/00188503 [21:18:39]NVStorageSaveData ofd_packets/00188503 [21:18:39]File name is /storage/ofd_packets/00188503 [21:18:39]Write 301 bytes [21:18:39]NVStorageSaveData done [21:18:39]OFDSenderStorePacket done [21:18:39]KKMCreateOFDPacket done [21:18:39]NVStorageSaveData kkm_last_timestamp [21:18:39]File name is /storage/kkm_last_timestamp [21:18:39]Write 4 bytes [21:18:39]NVStorageSaveData done [21:18:39]ExternCall_PrintAddStr [21:18:39]wPrintStart [21:18:39]Write to MH i2c: 01 00 00 44 00 44 [21:18:39]Write i2c OK [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: 01 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: 01 07 00 [21:18:39]MH_I2C_Read... [21:18:39]Read from MH i2c: 01 07 00 44 00 00 00 00 00 00 FF 0F 59 [21:18:39]RasterBufferAndPrint [21:18:39]line Счет N : (1)210563 [21:18:39]line ИНН: 02508201610067 [21:18:39]line Контрольно-Кассовый Чек [21:18:39]line ПРОДАЖА [21:18:39]line ТРК (МРК, ГНК) : 12 [21:18:39]line Товар: 2710124130 [21:18:39]line Аи-92-К-3 [21:18:39]line 7.480 * 66.90 [21:18:39]line = 500.41 [21:18:39]line НДС 12% НСП 1% [21:18:39]line > о реализуемом товаре [21:18:39]line ОКРУГЛЕНИЕ: -0.41 [21:18:39]line ИТОГО: 500.00 [21:18:39]line Внесено: 500.00 [21:18:39]line СДАЧА: 0.00 [21:18:39]line НСП 1% : 4.43 [21:18:39]line НДС 12% : 53.14 [21:18:39]line Наличными: 500.00 [21:18:39]line Безнал.: 0.00 [21:18:39]line Место: АЗС № 86 "Партнер Нефть" [21:18:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:18:39]line СНО: Общий режим [21:18:39]line Чек 532 22.10.2024 21:18 [21:18:39]line Смена: 461 ФФД: 1.0 [21:18:39]line ЗНМ: 0300000155 [21:18:39]line РНМ: 0000000000100030 [21:18:39]line Версия ККМ: 001 [21:18:39]line ФМ: 0000000000965340 [21:18:39]line ФД: 188503 [21:18:39]line ФПД: 146393516296477 [21:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188503&fm=146393516296477&tin=02508201610067®Number=0000000000100030&sum=50000 [21:18:39]OFD Sender: Processing packet 188503 [packets to send 1062, broken 1061] [21:18:39]ProducePacketName [21:18:39]name=ofd_packets/00188503 [21:18:39]OFD Sender: To server: pG, [21:18:39]CommunicateWithHost lk.salyk.kg:30040 [21:18:39]ConnectInit lk.salyk.kg [21:18:39]written 0, free lines is 4095 [21:18:40]Connected sock=10 [21:18:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 60 08 07 01 87 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 02 00 00 F4 03 04 00 AE 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 57 E0 02 00 35 04 06 00 85 24 E5 89 49 1D 2E 34 C1 03 FC 3B 7B 17 [21:18:40]Write to MH i2c: 01 00 00 6F 00 6F [21:18:40]Write i2c OK [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: 01 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: 01 07 00 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: 01 07 00 6F 00 00 00 00 00 00 6D 0C EF [21:18:40]RasterBufferAndPrint [21:18:40]line [21:18:40]line [21:18:40]line [21:18:40]line [21:18:40]line [21:18:40]written 0, free lines is 3188 [21:18:40]MH_Cut [21:18:40]Write to MH i2c: D1 01 00 76 00 01 48 [21:18:40]Write i2c OK [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: D1 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: D1 01 00 [21:18:40]MH_I2C_Read... [21:18:40]Read from MH i2c: D1 01 00 76 00 00 47 [21:18:40]Write to MH i2c: 01 00 00 77 00 77 [21:18:40]Write i2c OK [21:18:40]MH_I2C_Read... [21:18:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C7 0A 47 00 8E 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 39 36 35 33 34 30 10 04 04 00 57 E0 02 00 F4 03 04 00 9B C0 17 67 B6 04 01 00 00 4C 52 7F 6D 3D 8D 4F 13 [21:18:40]CommunicateWithHost err = 0 [21:18:40]CheckOFDResponse [21:18:40]1017 (14) - 77093643461234 [21:18:40]1041 (16) - 0000000000965340 [21:18:40]1040 (4) - 188503 [21:18:40]1012 (4) - 22.10.2024 15:11 [21:18:40]1206 (1) - 0 [21:18:40]OFD Sender: Remove packet 188503 [21:18:40]ProducePacketName [21:18:40]name=ofd_packets/00188503 [21:18:40]NVStorageDeleteData [21:18:41]OFD Sender: No OFD packet to send [21:18:41]*** Cut start [21:18:41]*** Partial cut [21:18:41]*** CUTSNS_PIN = 1 [21:18:41]*** CUTSNS_PIN = 0 [21:18:41]*** Brake cut motor [21:18:42]Read from MH i2c: 01 *** Stop cut motor [21:18:42] [21:18:42]*** Cut end [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: 01 07 00 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: 01 07 00 77 00 00 00 00 00 00 FF 0F 8C [21:18:42]process_action close_receipt done [21:18:42]requested_data is exist [21:18:42]produce_requested_data [21:18:42]requested_item fm.sn is exist - process it [21:18:42]wFMCommunicate request_size=4 [21:18:42]MH_SAM_APDU [21:18:42]CAPDU: 80 11 00 00 [21:18:42]Write to MH i2c: E2 08 00 78 00 80 11 00 00 00 00 00 00 F2 [21:18:42]Write i2c OK [21:18:42]MH_I2C_Read... [21:18:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:18:42]Read from MH i2c: E2 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 17 00 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 17 00 78 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 40 [21:18:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:18:42]wFMCommunicate OK [21:18:42]requested_item fd.num is exist - process it [21:18:42]SAM_PROTO_GetFieldsCounters [21:18:42]wFMCommunicate request_size=4 [21:18:42]MH_SAM_APDU [21:18:42]CAPDU: 80 13 00 00 [21:18:42]Write to MH i2c: E2 08 00 79 00 80 13 00 00 00 00 00 00 F5 [21:18:42]Write i2c OK [21:18:42]MH_I2C_Read... [21:18:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:18:42]Read from MH i2c: E2 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 62 00 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 62 00 79 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 14 02 00 00 5E 04 04 00 14 02 00 00 57 04 04 00 15 02 00 00 19 04 04 00 00 00 00 00 90 00 45 [21:18:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 57 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 14 02 00 00 5E 04 04 00 14 02 00 00 57 04 04 00 15 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:18:42]wFMCommunicate OK [21:18:42]SAM_PROTO_GetFieldsCounters done [21:18:42]requested_item shift.num is exist - process it [21:18:42]requested_item shift.opened is exist - process it [21:18:42]req_shift_opened [21:18:42]FM_GetShiftState [21:18:42]SAM_PROTO_GetShiftState [21:18:42]wFMCommunicate request_size=4 [21:18:42]MH_SAM_APDU [21:18:42]CAPDU: 80 13 01 00 [21:18:42]Write to MH i2c: E2 08 00 7A 00 80 13 01 00 00 00 00 00 F7 [21:18:42]Write i2c OK [21:18:42]MH_I2C_Read... [21:18:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:18:42]Read from MH i2c: E2 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 0E 00 [21:18:42]MH_I2C_Read... [21:18:42]Read from MH i2c: E2 0E 00 7A 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EC [21:18:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:18:42]wFMCommunicate OK [21:18:42]SAM_PROTO_GetShiftState done [21:18:42]FM_GetShiftState done [21:18:42]req_shift_opened done [21:18:42]requested_item shift.open_date is exist - process it [21:18:42]req_shift_open_date [21:18:42]req_shift_open_date done [21:18:42]produce_requested_data done [21:18:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188503,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:18:42]process_action_free close_receipt [21:18:42]json_value_free [21:18:42]json_value_free done [21:18:42]process_json_proto returns [21:18:42]Send response to host [21:18:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188503,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:18:42]free response buf [21:18:42]execute_script done [21:18:42]execute_script returns [21:18:42]free content buf [21:18:42]Sock 7.Close socket [21:18:42]Sock 7.Thread stoped [21:18:46]OFD Sender: No OFD packet to send [21:18:51]OFD Sender: No OFD packet to send [21:18:56]OFD Sender: No OFD packet to send [21:19:01]OFD Sender: No OFD packet to send [21:19:06]OFD Sender: No OFD packet to send [21:19:11]OFD Sender: No OFD packet to send [21:19:16]OFD Sender: No OFD packet to send [21:19:21]OFD Sender: No OFD packet to send [21:19:26]OFD Sender: No OFD packet to send [21:19:28]accept exits with 9 [21:19:28]New connection [21:19:28]New thread 3066649956 created [21:19:28]Thread 3066506596 joined [21:19:28]Waiting for new connection... [21:19:28] Sock 9.Parse request [21:19:28]Sock 9.Check first char [21:19:28]Sock 9.First char is OK [21:19:28]request: POST /json_proto HTTP/1.0 [21:19:28]Method: POST [21:19:28]URL: /json_proto [21:19:28]Method is POST - this is cgi request [21:19:28]url: /json_proto [21:19:28]query_string will be loaded in cgi processing [21:19:28]execute_cgi json_proto POST (null) [21:19:28]execute_cgi path=json_proto method=POST [21:19:28]POST find Content-Length [21:19:28]Host: 172.17.42.131:8080 [21:19:28]Content-Length: 677 [21:19:28]Content-Type: application/json [21:19:28] [21:19:28]POST finish read [21:19:28]Found Content-Length = 677 [21:19:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:28]execute_script... [21:19:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210564", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:19:28]POST & json_proto [21:19:28]process_json_proto [21:19:28]json parsed OK: [21:19:28]protocol is kg_v1.0 [21:19:28]action value=close_receipt [21:19:28]process_action close_receipt [21:19:28]cmd_close_receipt [21:19:28]MH_GetDate [21:19:28]Write to MH i2c: F0 00 00 7B 00 6A [21:19:28]Write i2c OK [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: F0 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: F0 09 00 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: F0 09 00 7B 00 00 E0 16 18 67 A0 18 CA 66 D0 [21:19:28]GetLastDocTimeStamp 1729631918 [21:19:28]current date 1729631968 [21:19:28]FM_GetShiftState [21:19:28]SAM_PROTO_GetShiftState [21:19:28]wFMCommunicate request_size=4 [21:19:28]MH_SAM_APDU [21:19:28]CAPDU: 80 13 01 00 [21:19:28]Write to MH i2c: E2 08 00 7C 00 80 13 01 00 00 00 00 00 F9 [21:19:28]Write i2c OK [21:19:28]MH_I2C_Read... [21:19:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:28]Read from MH i2c: E2 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: E2 0E 00 [21:19:28]MH_I2C_Read... [21:19:28]Read from MH i2c: E2 0E 00 7C 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EE [21:19:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:19:28]wFMCommunicate OK [21:19:28]SAM_PROTO_GetShiftState done [21:19:28]FM_GetShiftState done [21:19:28]opened in 1729556094 [21:19:28]opened+sec_in_day 1729642494 [21:19:28]quantity*price = 60009 [21:19:28]sum+1 = 60010 [21:19:28]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 533 22.10.2024 21:19 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188504 ФПД: 254522854334385 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211928&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188504&fm=254522854334385&tin=02508201610067®Number=0000000000100030&sum=60000 [21:19:29]StoreToDocumentArchive [21:19:29]shift 461 fd 188504 [21:19:29]save to /storage/0461/doc_00188504 [21:19:29]save last doc name /storage/0461/doc_00188504 to /storage/kkm_last_doc_name [21:19:29]save OK [21:19:29]Clear old archive folders... [21:19:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:19:29]tlvbuf is 00906E30 [21:19:29]SAM_PROTO_ClearQueue [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 09 00 00 [21:19:29]Write to MH i2c: E2 08 00 89 00 80 09 00 00 00 00 00 00 FB [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 89 00 00 90 00 FD [21:19:29]RAPDU: 90 00 [21:19:29]wFMCommunicate OK [21:19:29]SAM_PROTO_ClearQueue done [21:19:29]KKMCreateOFDPacket [21:19:29]OFDProtocolAddRootSTLVToBuf [21:19:29]FM_MakeSignedData [21:19:29]FM_MakeSignedData [21:19:29]SAM_PROTO_SignData [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 0D 01 02 [21:19:29]Write to MH i2c: E2 08 00 8A 00 80 0D 01 02 00 00 00 00 03 [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 8A 00 00 90 00 FE [21:19:29]RAPDU: 90 00 [21:19:29]wFMCommunicate OK [21:19:29]wFMCommunicate request_size=255 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 E0 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E0 02 00 35 04 06 00 E7 [21:19:29]Write to MH i2c: E2 02 01 8B 00 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 E0 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E0 02 00 35 04 06 00 E7 00 00 CE [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 8B 00 00 90 00 FF [21:19:29]RAPDU: 90 00 [21:19:29]wFMCommunicate OK [21:19:29]wFMCommunicate request_size=10 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 0D 02 02 05 7C B8 51 DF B1 [21:19:29]Write to MH i2c: E2 0D 00 8C 00 80 0D 02 02 05 00 7C B8 51 DF B1 00 00 25 [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 03 00 8C 00 00 90 00 00 [21:19:29]RAPDU: 90 00 [21:19:29]wFMCommunicate OK [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 0D 03 02 [21:19:29]Write to MH i2c: E2 08 00 8D 00 80 0D 03 02 00 00 00 00 08 [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 0B 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 0B 00 8D 00 00 B0 5B 43 36 55 B8 45 45 90 00 24 [21:19:29]RAPDU: B0 5B 43 36 55 B8 45 45 90 00 [21:19:29]wFMCommunicate OK [21:19:29]SAM_PROTO_SignData done [21:19:29]FM_MakeSignedData done [21:19:29]CreateOFDProtocolMessage [21:19:29]wFMCommunicate request_size=4 [21:19:29]MH_SAM_APDU [21:19:29]CAPDU: 80 11 00 00 [21:19:29]Write to MH i2c: E2 08 00 8E 00 80 11 00 00 00 00 00 00 08 [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:29]Read from MH i2c: E2 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 17 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: E2 17 00 8E 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 56 [21:19:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:19:29]wFMCommunicate OK [21:19:29]CreateOFDProtocolMessage done [21:19:29]OFDSenderStorePacket 188504 [21:19:29]StoreOFDPacket docnum=188504 [21:19:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 75 07 01 31 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 E0 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E0 02 00 35 04 06 00 E7 7C B8 51 DF B1 B0 5B 43 36 55 B8 45 45 [21:19:29]CheckFolder [21:19:29]dirname=/storage/ofd_packets [21:19:29]CheckFolder done [21:19:29]ProducePacketName [21:19:29]name=ofd_packets/00188504 [21:19:29]NVStorageSaveData ofd_packets/00188504 [21:19:29]File name is /storage/ofd_packets/00188504 [21:19:29]Write 301 bytes [21:19:29]NVStorageSaveData done [21:19:29]OFDSenderStorePacket done [21:19:29]KKMCreateOFDPacket done [21:19:29]NVStorageSaveData kkm_last_timestamp [21:19:29]File name is /storage/kkm_last_timestamp [21:19:29]Write 4 bytes [21:19:29]NVStorageSaveData done [21:19:29]ExternCall_PrintAddStr [21:19:29]wPrintStart [21:19:29]Write to MH i2c: 01 00 00 8F 00 8F [21:19:29]Write i2c OK [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: 01 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: 01 07 00 [21:19:29]MH_I2C_Read... [21:19:29]Read from MH i2c: 01 07 00 8F 00 00 00 00 00 00 FF 0F A4 [21:19:29]RasterBufferAndPrint [21:19:29]line Счет N : (1)210564 [21:19:29]line ИНН: 02508201610067 [21:19:29]line Контрольно-Кассовый Чек [21:19:29]line ПРОДАЖА [21:19:29]line ТРК (МРК, ГНК) : 42 [21:19:29]line Товар: 2710124130 [21:19:29]line Аи-92-К-3 [21:19:29]line 8.970 * 66.90 [21:19:29]line = 600.09 [21:19:29]line НДС 12% НСП 1% [21:19:29]line > о реализуемом товаре [21:19:29]line ОКРУГЛЕНИЕ: -0.09 [21:19:29]line ИТОГО: 600.00 [21:19:29]line Внесено: 600.00 [21:19:29]line СДАЧА: 0.00 [21:19:29]line НСП 1% : 5.31 [21:19:29]line НДС 12% : 63.73 [21:19:29]line Наличными: 600.00 [21:19:29]line Безнал.: 0.00 [21:19:29]line Место: АЗС № 86 "Партнер Нефть" [21:19:29]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:19:29]line СНО: Общий режим [21:19:29]line Чек 533 22.10.2024 21:19 [21:19:29]line Смена: 461 ФФД: 1.0 [21:19:29]line ЗНМ: 0300000155 [21:19:29]line РНМ: 0000000000100030 [21:19:29]line Версия ККМ: 001 [21:19:29]line ФМ: 0000000000965340 [21:19:29]line ФД: 188504 [21:19:29]line ФПД: 254522854334385 [21:19:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T211928&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188504&fm=254522854334385&tin=02508201610067®Number=0000000000100030&sum=60000 [21:19:29]written 0, free lines is 4095 [21:19:29]OFD Sender: Processing packet 188504 [packets to send 1062, broken 1061] [21:19:29]ProducePacketName [21:19:29]name=ofd_packets/00188504 [21:19:29]OFD Sender: To server: pG, [21:19:29]CommunicateWithHost lk.salyk.kg:30040 [21:19:29]ConnectInit lk.salyk.kg [21:19:30]Connected sock=10 [21:19:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 72 75 07 01 31 EF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 02 00 00 F4 03 04 00 E0 16 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E0 02 00 35 04 06 00 E7 7C B8 51 DF B1 B0 5B 43 36 55 B8 45 45 [21:19:30]Write to MH i2c: 01 00 00 BA 00 BA [21:19:30]Write i2c OK [21:19:30]MH_I2C_Read... [21:19:30]Read from MH i2c: 01 [21:19:30]MH_I2C_Read... [21:19:30]Read from MH i2c: 01 07 00 [21:19:30]MH_I2C_Read... [21:19:30]Read from MH i2c: 01 07 00 BA 00 00 00 00 00 00 5F 0C 2C [21:19:30]RasterBufferAndPrint [21:19:30]line [21:19:30]line [21:19:30]line [21:19:30]line [21:19:30]line [21:19:30]written 0, free lines is 3170 [21:19:30]MH_Cut [21:19:30]Write to MH i2c: D1 01 00 C1 00 01 93 [21:19:30]Write i2c OK [21:19:30]MH_I2C_Read... [21:19:30]Read from MH i2c: D1 [21:19:30]MH_I2C_Read... [21:19:30]Read from MH i2c: D1 01 00 [21:19:30]MH_I2C_Read... [21:19:30]Read from MH i2c: D1 01 00 C1 00 00 92 [21:19:30]Write to MH i2c: 01 00 00 C2 00 C2 [21:19:30]Write i2c OK [21:19:30]MH_I2C_Read... [21:19:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 76 ED 47 00 D9 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 58 E0 02 00 F4 03 04 00 CD C0 17 67 B6 04 01 00 00 63 D9 57 B7 41 1D 05 88 [21:19:30]CommunicateWithHost err = 0 [21:19:30]CheckOFDResponse [21:19:30]1017 (14) - 77093643461234 [21:19:30]1041 (16) - 0000000000965340 [21:19:30]1040 (4) - 188504 [21:19:30]1012 (4) - 22.10.2024 15:12 [21:19:30]1206 (1) - 0 [21:19:30]OFD Sender: Remove packet 188504 [21:19:30]ProducePacketName [21:19:30]name=ofd_packets/00188504 [21:19:30]NVStorageDeleteData [21:19:31]OFD Sender: No OFD packet to send [21:19:31]*** Cut start [21:19:31]*** Partial cut [21:19:31]*** CUTSNS_PIN = 1 [21:19:31]*** CUTSNS_PIN = 0 [21:19:31]*** Brake cut motor [21:19:32]Read from MH i2c: 01 [21:19:32]MH_I2C_Read... [21:19:32]*** Stop cut motor [21:19:32]*** Cut end [21:19:32]Read from MH i2c: 01 07 00 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: 01 07 00 C2 00 00 00 00 00 00 FF 0F D7 [21:19:32]process_action close_receipt done [21:19:32]requested_data is exist [21:19:32]produce_requested_data [21:19:32]requested_item fm.sn is exist - process it [21:19:32]wFMCommunicate request_size=4 [21:19:32]MH_SAM_APDU [21:19:32]CAPDU: 80 11 00 00 [21:19:32]Write to MH i2c: E2 08 00 C3 00 80 11 00 00 00 00 00 00 3D [21:19:32]Write i2c OK [21:19:32]MH_I2C_Read... [21:19:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:19:32]Read from MH i2c: E2 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: E2 17 00 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: E2 17 00 C3 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8B [21:19:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:19:32]wFMCommunicate OK [21:19:32]requested_item fd.num is exist - process it [21:19:32]SAM_PROTO_GetFieldsCounters [21:19:32]wFMCommunicate request_size=4 [21:19:32]MH_SAM_APDU [21:19:32]CAPDU: 80 13 00 00 [21:19:32]Write to MH i2c: E2 08 00 C4 00 80 13 00 00 00 00 00 00 40 [21:19:32]Write i2c OK [21:19:32]MH_I2C_Read... [21:19:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:19:32]Read from MH i2c: E2 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: E2 62 00 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: E2 62 00 C4 00 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 15 02 00 00 5E 04 04 00 15 02 00 00 57 04 04 00 16 02 00 00 19 04 04 00 00 00 00 00 90 00 94 [21:19:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 58 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 15 02 00 00 5E 04 04 00 15 02 00 00 57 04 04 00 16 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:19:32]wFMCommunicate OK [21:19:32]SAM_PROTO_GetFieldsCounters done [21:19:32]requested_item shift.num is exist - process it [21:19:32]requested_item shift.opened is exist - process it [21:19:32]req_shift_opened [21:19:32]FM_GetShiftState [21:19:32]SAM_PROTO_GetShiftState [21:19:32]wFMCommunicate request_size=4 [21:19:32]MH_SAM_APDU [21:19:32]CAPDU: 80 13 01 00 [21:19:32]Write to MH i2c: E2 08 00 C5 00 80 13 01 00 00 00 00 00 42 [21:19:32]Write i2c OK [21:19:32]MH_I2C_Read... [21:19:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:19:32]Read from MH i2c: E2 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: E2 0E 00 [21:19:32]MH_I2C_Read... [21:19:32]Read from MH i2c: E2 0E 00 C5 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 37 [21:19:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:19:32]wFMCommunicate OK [21:19:32]SAM_PROTO_GetShiftState done [21:19:32]FM_GetShiftState done [21:19:32]req_shift_opened done [21:19:32]requested_item shift.open_date is exist - process it [21:19:32]req_shift_open_date [21:19:32]req_shift_open_date done [21:19:32]produce_requested_data done [21:19:32]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188504,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:19:32]process_action_free close_receipt [21:19:32]json_value_free [21:19:32]json_value_free done [21:19:32]process_json_proto returns [21:19:32]Send response to host [21:19:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188504,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:19:32]free response buf [21:19:32]execute_script done [21:19:32]execute_script returns [21:19:32]free content buf [21:19:32]Sock 9.Close socket [21:19:32]Sock 9.Thread stoped [21:19:36]OFD Sender: No OFD packet to send [21:19:41]OFD Sender: No OFD packet to send [21:19:46]OFD Sender: No OFD packet to send [21:19:51]OFD Sender: No OFD packet to send [21:19:56]OFD Sender: No OFD packet to send [21:20:01]OFD Sender: No OFD packet to send [21:20:06]OFD Sender: No OFD packet to send [21:20:11]OFD Sender: No OFD packet to send [21:20:16]OFD Sender: No OFD packet to send [21:20:21]OFD Sender: No OFD packet to send [21:20:26]OFD Sender: No OFD packet to send [21:20:31]OFD Sender: No OFD packet to send [21:20:36]OFD Sender: No OFD packet to send [21:20:41]OFD Sender: No OFD packet to send [21:20:46]OFD Sender: No OFD packet to send [21:20:51]OFD Sender: No OFD packet to send [21:20:56]OFD Sender: No OFD packet to send [21:21:01]OFD Sender: No OFD packet to send [21:21:06]OFD Sender: No OFD packet to send [21:21:11]OFD Sender: No OFD packet to send [21:21:16]OFD Sender: No OFD packet to send [21:21:21]OFD Sender: No OFD packet to send [21:21:26]OFD Sender: No OFD packet to send [21:21:31]OFD Sender: No OFD packet to send [21:21:36]OFD Sender: No OFD packet to send [21:21:41]OFD Sender: No OFD packet to send [21:21:46]OFD Sender: No OFD packet to send [21:21:51]OFD Sender: No OFD packet to send [21:21:56]OFD Sender: No OFD packet to send [21:22:01]OFD Sender: No OFD packet to send [21:22:06]OFD Sender: No OFD packet to send [21:22:11]OFD Sender: No OFD packet to send [21:22:16]OFD Sender: No OFD packet to send [21:22:21]OFD Sender: No OFD packet to send [21:22:26]OFD Sender: No OFD packet to send [21:22:31]OFD Sender: No OFD packet to send [21:22:36]OFD Sender: No OFD packet to send [21:22:41]OFD Sender: No OFD packet to send [21:22:46]OFD Sender: No OFD packet to send [21:22:51]OFD Sender: No OFD packet to send [21:22:56]OFD Sender: No OFD packet to send [21:23:01]OFD Sender: No OFD packet to send [21:23:06]OFD Sender: No OFD packet to send [21:23:12]OFD Sender: No OFD packet to send [21:23:17]OFD Sender: No OFD packet to send [21:23:22]OFD Sender: No OFD packet to send [21:23:27]OFD Sender: No OFD packet to send [21:23:32]OFD Sender: No OFD packet to send [21:23:37]OFD Sender: No OFD packet to send [21:23:42]OFD Sender: No OFD packet to send [21:23:47]OFD Sender: No OFD packet to send [21:23:52]OFD Sender: No OFD packet to send [21:23:57]OFD Sender: No OFD packet to send [21:24:02]OFD Sender: No OFD packet to send [21:24:07]OFD Sender: No OFD packet to send [21:24:12]OFD Sender: No OFD packet to send [21:24:17]OFD Sender: No OFD packet to send [21:24:22]OFD Sender: No OFD packet to send [21:24:27]OFD Sender: No OFD packet to send [21:24:32]OFD Sender: No OFD packet to send [21:24:37]OFD Sender: No OFD packet to send [21:24:42]OFD Sender: No OFD packet to send [21:24:47]OFD Sender: No OFD packet to send [21:24:52]OFD Sender: No OFD packet to send [21:24:57]OFD Sender: No OFD packet to send [21:25:02]OFD Sender: No OFD packet to send [21:25:07]OFD Sender: No OFD packet to send [21:25:12]OFD Sender: No OFD packet to send [21:25:16]accept exits with 7 [21:25:16]New connection [21:25:16]New thread 3066506596 created [21:25:16]Thread 3066649956 joined [21:25:16]Waiting for new connection... [21:25:16] Sock 7.Parse request [21:25:16]Sock 7.Check first char [21:25:16]Sock 7.First char is OK [21:25:16]request: POST /json_proto HTTP/1.0 [21:25:16]Method: POST [21:25:16]URL: /json_proto [21:25:16]Method is POST - this is cgi request [21:25:16]url: /json_proto [21:25:16]query_string will be loaded in cgi processing [21:25:16]execute_cgi json_proto POST (null) [21:25:16]execute_cgi path=json_proto method=POST [21:25:16]POST find Content-Length [21:25:16]Host: 172.17.42.131:8080 [21:25:16]Content-Length: 688 [21:25:16]Content-Type: application/json [21:25:16] [21:25:16]POST finish read [21:25:16]Found Content-Length = 688 [21:25:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [21:25:16]execute_script... [21:25: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)210565", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [21:25:16]POST & json_proto [21:25:16]process_json_proto [21:25:16]json parsed OK: [21:25:16]protocol is kg_v1.0 [21:25:16]action value=close_receipt [21:25:16]process_action close_receipt [21:25:16]cmd_close_receipt [21:25:16]MH_GetDate [21:25:16]Write to MH i2c: F0 00 00 C6 00 B5 [21:25:16]Write i2c OK [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: F0 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: F0 09 00 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: F0 09 00 C6 00 00 3D 18 18 67 A0 18 CA 66 7A [21:25:16]GetLastDocTimeStamp 1729631968 [21:25:16]current date 1729632317 [21:25:16]FM_GetShiftState [21:25:16]SAM_PROTO_GetShiftState [21:25:16]wFMCommunicate request_size=4 [21:25:16]MH_SAM_APDU [21:25:16]CAPDU: 80 13 01 00 [21:25:16]Write to MH i2c: E2 08 00 C7 00 80 13 01 00 00 00 00 00 44 [21:25:16]Write i2c OK [21:25:16]MH_I2C_Read... [21:25:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:16]Read from MH i2c: E2 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: E2 0E 00 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: E2 0E 00 C7 00 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 39 [21:25:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:25:16]wFMCommunicate OK [21:25:16]SAM_PROTO_GetShiftState done [21:25:16]FM_GetShiftState done [21:25:16]opened in 1729556094 [21:25:16]opened+sec_in_day 1729642494 [21:25:16]quantity*price = 100051 [21:25:16]sum+1 = 100052 [21:25:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 534 22.10.2024 21:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188505 ФПД: 16830196379370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212517&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188505&fm=16830196379370&tin=02508201610067®Number=0000000000100030&sum=100000 [21:25:17]StoreToDocumentArchive [21:25:17]shift 461 fd 188505 [21:25:17]save to /storage/0461/doc_00188505 [21:25:17]save last doc name /storage/0461/doc_00188505 to /storage/kkm_last_doc_name [21:25:17]save OK [21:25:17]Clear old archive folders... [21:25:17]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:25:17]tlvbuf is 00904B60 [21:25:17]SAM_PROTO_ClearQueue [21:25:17]wFMCommunicate request_size=4 [21:25:17]MH_SAM_APDU [21:25:17]CAPDU: 80 09 00 00 [21:25:17]Write to MH i2c: E2 08 00 D4 00 80 09 00 00 00 00 00 00 46 [21:25:17]Write i2c OK [21:25:17]MH_I2C_Read... [21:25:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:17]Read from MH i2c: E2 [21:25:17]MH_I2C_Read... [21:25:17]Read from MH i2c: E2 03 00 [21:25:17]MH_I2C_Read... [21:25:17]Read from MH i2c: E2 03 00 D4 00 00 90 00 48 [21:25:17]RAPDU: 90 00 [21:25:17]wFMCommunicate OK [21:25:17]SAM_PROTO_ClearQueue done [21:25:17]KKMCreateOFDPacket [21:25:17]OFDProtocolAddRootSTLVToBuf [21:25:17]FM_MakeSignedData [21:25:17]FM_MakeSignedData [21:25:17]SAM_PROTO_SignData [21:25:17]wFMCommunicate request_size=4 [21:25:17]MH_SAM_APDU [21:25:17]CAPDU: 80 0D 01 02 [21:25:17]Write to MH i2c: E2 08 00 D5 00 80 0D 01 02 00 00 00 00 4E [21:25:17]Write i2c OK [21:25:17]MH_I2C_Read... [21:25:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:18]Read from MH i2c: E2 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 03 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 03 00 D5 00 00 90 00 49 [21:25:18]RAPDU: 90 00 [21:25:18]wFMCommunicate OK [21:25:18]wFMCommunicate request_size=255 [21:25:18]MH_SAM_APDU [21:25:18]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 16 02 00 00 F4 03 04 00 3D 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E0 02 [21:25:18]Write to MH i2c: E2 02 01 D6 00 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 16 02 00 00 F4 03 04 00 3D 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E0 02 00 00 A0 [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:18]Read from MH i2c: E2 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 03 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 03 00 D6 00 00 90 00 4A [21:25:18]RAPDU: 90 00 [21:25:18]wFMCommunicate OK [21:25:18]wFMCommunicate request_size=16 [21:25:18]MH_SAM_APDU [21:25:18]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 0F 4E 95 E0 6E EA [21:25:18]Write to MH i2c: E2 13 00 D7 00 80 0D 02 02 0B 00 00 35 04 06 00 0F 4E 95 E0 6E EA 00 00 D0 [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:18]Read from MH i2c: E2 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 03 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 03 00 D7 00 00 90 00 4B [21:25:18]RAPDU: 90 00 [21:25:18]wFMCommunicate OK [21:25:18]wFMCommunicate request_size=4 [21:25:18]MH_SAM_APDU [21:25:18]CAPDU: 80 0D 03 02 [21:25:18]Write to MH i2c: E2 08 00 D8 00 80 0D 03 02 00 00 00 00 53 [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:18]Read from MH i2c: E2 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 0B 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 0B 00 D8 00 00 04 7B 03 71 77 1A 0C 20 90 00 04 [21:25:18]RAPDU: 04 7B 03 71 77 1A 0C 20 90 00 [21:25:18]wFMCommunicate OK [21:25:18]SAM_PROTO_SignData done [21:25:18]FM_MakeSignedData done [21:25:18]CreateOFDProtocolMessage [21:25:18]wFMCommunicate request_size=4 [21:25:18]MH_SAM_APDU [21:25:18]CAPDU: 80 11 00 00 [21:25:18]Write to MH i2c: E2 08 00 D9 00 80 11 00 00 00 00 00 00 53 [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:18]Read from MH i2c: E2 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 17 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: E2 17 00 D9 00 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A1 [21:25:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:18]wFMCommunicate OK [21:25:18]CreateOFDProtocolMessage done [21:25:18]OFDSenderStorePacket 188505 [21:25:18]StoreOFDPacket docnum=188505 [21:25:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 94 3E 0D 01 AF C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 16 02 00 00 F4 03 04 00 3D 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E0 02 00 35 04 06 00 0F 4E 95 E0 6E EA 04 7B 03 71 77 1A 0C 20 [21:25:18]CheckFolder [21:25:18]dirname=/storage/ofd_packets [21:25:18]CheckFolder done [21:25:18]ProducePacketName [21:25:18]name=ofd_packets/00188505 [21:25:18]NVStorageSaveData ofd_packets/00188505 [21:25:18]File name is /storage/ofd_packets/00188505 [21:25:18]Write 307 bytes [21:25:18]NVStorageSaveData done [21:25:18]OFDSenderStorePacket done [21:25:18]KKMCreateOFDPacket done [21:25:18]NVStorageSaveData kkm_last_timestamp [21:25:18]File name is /storage/kkm_last_timestamp [21:25:18]Write 4 bytes [21:25:18]NVStorageSaveData done [21:25:18]ExternCall_PrintAddStr [21:25:18]wPrintStart [21:25:18]Write to MH i2c: 01 00 00 DA 00 DA [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: 01 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: 01 07 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: 01 07 00 DA 00 00 00 00 00 00 FF 0F EF [21:25:18]RasterBufferAndPrint [21:25:18]line Счет N : (1)210565 [21:25:18]line ИНН: 02508201610067 [21:25:18]line Контрольно-Кассовый Чек [21:25:18]line ПРОДАЖА [21:25:18]line ТРК (МРК, ГНК) : 21 [21:25:18]line Товар: 2710194210 [21:25:18]line D-ENERGY ДТ-К-5 [21:25:18]line 12.960 * 77.20 [21:25:18]line = 1000.51 [21:25:18]line НДС 12% НСП 1% [21:25:18]line > о реализуемом товаре [21:25:18]line ОКРУГЛЕНИЕ: -0.51 [21:25:18]line ИТОГО: 1000.00 [21:25:18]line Внесено: 1000.00 [21:25:18]line СДАЧА: 0.00 [21:25:18]line НСП 1% : 8.85 [21:25:18]line НДС 12% : 106.25 [21:25:18]line Наличными: 1000.00 [21:25:18]line Безнал.: 0.00 [21:25:18]line Место: АЗС № 86 "Партнер Нефть" [21:25:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:25:18]line СНО: Общий режим [21:25:18]line Чек 534 22.10.2024 21:25 [21:25:18]line Смена: 461 ФФД: 1.0 [21:25:18]line ЗНМ: 0300000155 [21:25:18]line РНМ: 0000000000100030 [21:25:18]line Версия ККМ: 001 [21:25:18]line ФМ: 0000000000965340 [21:25:18]line ФД: 188505 [21:25:18]line ФПД: 16830196379370 [21:25:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212517&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188505&fm=16830196379370&tin=02508201610067®Number=0000000000100030&sum=100000 [21:25:18]written 0, free lines is 4095 [21:25:18]OFD Sender: Processing packet 188505 [packets to send 1062, broken 1061] [21:25:18]ProducePacketName [21:25:18]name=ofd_packets/00188505 [21:25:18]OFD Sender: To server: pG, [21:25:18]CommunicateWithHost lk.salyk.kg:30040 [21:25:18]ConnectInit lk.salyk.kg [21:25:18]Connected sock=10 [21:25:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 94 3E 0D 01 AF C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 16 02 00 00 F4 03 04 00 3D 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 59 E0 02 00 35 04 06 00 0F 4E 95 E0 6E EA 04 7B 03 71 77 1A 0C 20 [21:25:18]Write to MH i2c: 01 00 00 05 01 06 [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: 01 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: 01 07 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: 01 07 00 05 01 00 00 00 00 00 59 0C 72 [21:25:18]RasterBufferAndPrint [21:25:18]line [21:25:18]line [21:25:18]line [21:25:18]line [21:25:18]line [21:25:18]written 0, free lines is 3165 [21:25:18]MH_Cut [21:25:18]Write to MH i2c: D1 01 00 0C 01 01 DF [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: D1 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: D1 01 00 [21:25:18]MH_I2C_Read... [21:25:18]Read from MH i2c: D1 01 00 0C 01 00 DE [21:25:18]Write to MH i2c: 01 00 00 0D 01 0E [21:25:18]Write i2c OK [21:25:18]MH_I2C_Read... [21:25:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D C3 47 00 66 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 39 36 35 33 34 30 10 04 04 00 59 E0 02 00 F4 03 04 00 29 C2 17 67 B6 04 01 00 00 35 9D B9 F5 98 E5 ED A7 [21:25:19]CommunicateWithHost err = 0 [21:25:19]CheckOFDResponse [21:25:19]1017 (14) - 77093643461234 [21:25:19]1041 (16) - 0000000000965340 [21:25:19]1040 (4) - 188505 [21:25:19]1012 (4) - 22.10.2024 15:18 [21:25:19]1206 (1) - 0 [21:25:19]OFD Sender: Remove packet 188505 [21:25:19]ProducePacketName [21:25:19]name=ofd_packets/00188505 [21:25:19]NVStorageDeleteData [21:25:19]OFD Sender: No OFD packet to send [21:25:20]*** Cut start [21:25:20]*** Partial cut [21:25:20]*** CUTSNS_PIN = 1 [21:25:20]*** CUTSNS_PIN = 0 [21:25:20]*** Brake cut motor [21:25:20]Read from MH i2c: 01 [21:25:20]MH_I2C_Read... [21:25:20]*** Stop cut motor [21:25:20]*** Cut end [21:25:20]Read from MH i2c: 01 07 00 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: 01 07 00 0D 01 00 00 00 00 00 FF 0F 23 [21:25:20]process_action close_receipt done [21:25:20]requested_data is exist [21:25:20]produce_requested_data [21:25:20]requested_item fm.sn is exist - process it [21:25:20]wFMCommunicate request_size=4 [21:25:20]MH_SAM_APDU [21:25:20]CAPDU: 80 11 00 00 [21:25:20]Write to MH i2c: E2 08 00 0E 01 80 11 00 00 00 00 00 00 89 [21:25:20]Write i2c OK [21:25:20]MH_I2C_Read... [21:25:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:20]Read from MH i2c: E2 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: E2 17 00 [21:25:20]MH_I2C_Read... [21:25:20]Read from MH i2c: E2 17 00 0E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D7 [21:25:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:20]wFMCommunicate OK [21:25:20]requested_item fd.num is exist - process it [21:25:20]SAM_PROTO_GetFieldsCounters [21:25:20]wFMCommunicate request_size=4 [21:25:20]MH_SAM_APDU [21:25:20]CAPDU: 80 13 00 00 [21:25:20]Write to MH i2c: E2 08 00 0F 01 80 13 00 00 00 00 00 00 8C [21:25:20]Write i2c OK [21:25:20]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 62 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 62 00 0F 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 16 02 00 00 5E 04 04 00 16 02 00 00 57 04 04 00 17 02 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:25:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 59 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 16 02 00 00 5E 04 04 00 16 02 00 00 57 04 04 00 17 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:21]wFMCommunicate OK [21:25:21]SAM_PROTO_GetFieldsCounters done [21:25:21]requested_item shift.num is exist - process it [21:25:21]requested_item shift.opened is exist - process it [21:25:21]req_shift_opened [21:25:21]FM_GetShiftState [21:25:21]SAM_PROTO_GetShiftState [21:25:21]wFMCommunicate request_size=4 [21:25:21]MH_SAM_APDU [21:25:21]CAPDU: 80 13 01 00 [21:25:21]Write to MH i2c: E2 08 00 10 01 80 13 01 00 00 00 00 00 8E [21:25:21]Write i2c OK [21:25:21]MH_I2C_Read... [21:25:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:21]Read from MH i2c: E2 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 0E 00 [21:25:21]MH_I2C_Read... [21:25:21]Read from MH i2c: E2 0E 00 10 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 83 [21:25:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:25:21]wFMCommunicate OK [21:25:21]SAM_PROTO_GetShiftState done [21:25:21]FM_GetShiftState done [21:25:21]req_shift_opened done [21:25:21]requested_item shift.open_date is exist - process it [21:25:21]req_shift_open_date [21:25:21]req_shift_open_date done [21:25:21]produce_requested_data done [21:25:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188505,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:25:21]process_action_free close_receipt [21:25:21]json_value_free [21:25:21]json_value_free done [21:25:21]process_json_proto returns [21:25:21]Send response to host [21:25:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188505,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:25:21]free response buf [21:25:21]execute_script done [21:25:21]execute_script returns [21:25:21]free content buf [21:25:21]Sock 7.Close socket [21:25:21]Sock 7.Thread stoped [21:25:24]OFD Sender: No OFD packet to send [21:25:29]OFD Sender: No OFD packet to send [21:25:34]OFD Sender: No OFD packet to send [21:25:37]accept exits with 9 [21:25:37]New connection [21:25:37]New thread 3066649956 created [21:25:37]Thread 3066506596 joined [21:25:37]Waiting for new connection... [21:25:37] Sock 9.Parse request [21:25:37]Sock 9.Check first char [21:25:37]Sock 9.First char is OK [21:25:37]request: POST /json_proto HTTP/1.0 [21:25:37]Method: POST [21:25:37]URL: /json_proto [21:25:37]Method is POST - this is cgi request [21:25:37]url: /json_proto [21:25:37]query_string will be loaded in cgi processing [21:25:37]execute_cgi json_proto POST (null) [21:25:37]execute_cgi path=json_proto method=POST [21:25:37]POST find Content-Length [21:25:37]Host: 172.17.42.131:8080 [21:25:37]Content-Length: 754 [21:25:37]Content-Type: application/json [21:25:37] [21:25:37]POST finish read [21:25:37]Found Content-Length = 754 [21:25:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:37]execute_script... [21:25: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)210566", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 0.00, "quantity" : 10.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30072815", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:37]POST & json_proto [21:25:37]process_json_proto [21:25:37]json parsed OK: [21:25:37]protocol is kg_v1.0 [21:25:37]action value=close_receipt [21:25:37]process_action close_receipt [21:25:37]cmd_close_receipt [21:25:37]MH_GetDate [21:25:37]Write to MH i2c: F0 00 00 11 01 01 [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: F0 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: F0 09 00 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: F0 09 00 11 01 00 52 18 18 67 A0 18 CA 66 DB [21:25:37]GetLastDocTimeStamp 1729632317 [21:25:37]current date 1729632338 [21:25:37]FM_GetShiftState [21:25:37]SAM_PROTO_GetShiftState [21:25:37]wFMCommunicate request_size=4 [21:25:37]MH_SAM_APDU [21:25:37]CAPDU: 80 13 01 00 [21:25:37]Write to MH i2c: E2 08 00 12 01 80 13 01 00 00 00 00 00 90 [21:25:37]Write i2c OK [21:25:37]MH_I2C_Read... [21:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:37]Read from MH i2c: E2 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: E2 0E 00 [21:25:37]MH_I2C_Read... [21:25:37]Read from MH i2c: E2 0E 00 12 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 85 [21:25:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:25:37]wFMCommunicate OK [21:25:37]SAM_PROTO_GetShiftState done [21:25:37]FM_GetShiftState done [21:25:37]opened in 1729556094 [21:25:37]opened+sec_in_day 1729642494 [21:25:37]quantity*price = 0 [21:25:37]sum+1 = 1 [21:25:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 535 22.10.2024 21:25 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30072815 ФМ: 0000000000965340 ФД: 188506 ФПД: 178575356381280 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212538&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188506&fm=178575356381280&tin=02508201610067®Number=0000000000100030&sum=0 [21:25:38]StoreToDocumentArchive [21:25:38]shift 461 fd 188506 [21:25:38]save to /storage/0461/doc_00188506 [21:25:38]save last doc name /storage/0461/doc_00188506 to /storage/kkm_last_doc_name [21:25:38]save OK [21:25:38]Clear old archive folders... [21:25:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:25:38]tlvbuf is 008FEE10 [21:25:38]SAM_PROTO_ClearQueue [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 09 00 00 [21:25:38]Write to MH i2c: E2 08 00 1F 01 80 09 00 00 00 00 00 00 92 [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 1F 01 00 90 00 94 [21:25:38]RAPDU: 90 00 [21:25:38]wFMCommunicate OK [21:25:38]SAM_PROTO_ClearQueue done [21:25:38]KKMCreateOFDPacket [21:25:38]OFDProtocolAddRootSTLVToBuf [21:25:38]FM_MakeSignedData [21:25:38]FM_MakeSignedData [21:25:38]SAM_PROTO_SignData [21:25:38]wFMCommunicate request_size=4 [21:25:38]MH_SAM_APDU [21:25:38]CAPDU: 80 0D 01 02 [21:25:38]Write to MH i2c: E2 08 00 20 01 80 0D 01 02 00 00 00 00 9A [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:38]Read from MH i2c: E2 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 [21:25:38]MH_I2C_Read... [21:25:38]Read from MH i2c: E2 03 00 20 01 00 90 00 95 [21:25:38]RAPDU: 90 00 [21:25:38]wFMCommunicate OK [21:25:38]wFMCommunicate request_size=255 [21:25:38]MH_SAM_APDU [21:25: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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 52 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E0 02 00 35 04 06 00 A2 [21:25:38]Write to MH i2c: E2 02 01 21 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 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 52 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E0 02 00 35 04 06 00 A2 00 00 6D [21:25:38]Write i2c OK [21:25:38]MH_I2C_Read... [21:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:39]Read from MH i2c: E2 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 03 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 03 00 21 01 00 90 00 96 [21:25:39]RAPDU: 90 00 [21:25:39]wFMCommunicate OK [21:25:39]wFMCommunicate request_size=10 [21:25:39]MH_SAM_APDU [21:25:39]CAPDU: 80 0D 02 02 05 69 D0 AE C8 60 [21:25:39]Write to MH i2c: E2 0D 00 22 01 80 0D 02 02 05 00 69 D0 AE C8 60 00 00 B6 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:39]Read from MH i2c: E2 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 03 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 03 00 22 01 00 90 00 97 [21:25:39]RAPDU: 90 00 [21:25:39]wFMCommunicate OK [21:25:39]wFMCommunicate request_size=4 [21:25:39]MH_SAM_APDU [21:25:39]CAPDU: 80 0D 03 02 [21:25:39]Write to MH i2c: E2 08 00 23 01 80 0D 03 02 00 00 00 00 9F [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:39]Read from MH i2c: E2 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 0B 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 0B 00 23 01 00 B1 1A 43 D5 84 D9 E5 51 90 00 16 [21:25:39]RAPDU: B1 1A 43 D5 84 D9 E5 51 90 00 [21:25:39]wFMCommunicate OK [21:25:39]SAM_PROTO_SignData done [21:25:39]FM_MakeSignedData done [21:25:39]CreateOFDProtocolMessage [21:25:39]wFMCommunicate request_size=4 [21:25:39]MH_SAM_APDU [21:25:39]CAPDU: 80 11 00 00 [21:25:39]Write to MH i2c: E2 08 00 24 01 80 11 00 00 00 00 00 00 9F [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:39]Read from MH i2c: E2 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 17 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: E2 17 00 24 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 ED [21:25:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:39]wFMCommunicate OK [21:25:39]CreateOFDProtocolMessage done [21:25:39]OFDSenderStorePacket 188506 [21:25:39]StoreOFDPacket docnum=188506 [21:25:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7C 93 07 01 2C B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 52 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E0 02 00 35 04 06 00 A2 69 D0 AE C8 60 B1 1A 43 D5 84 D9 E5 51 [21:25:39]CheckFolder [21:25:39]dirname=/storage/ofd_packets [21:25:39]CheckFolder done [21:25:39]ProducePacketName [21:25:39]name=ofd_packets/00188506 [21:25:39]NVStorageSaveData ofd_packets/00188506 [21:25:39]File name is /storage/ofd_packets/00188506 [21:25:39]Write 301 bytes [21:25:39]NVStorageSaveData done [21:25:39]OFDSenderStorePacket done [21:25:39]KKMCreateOFDPacket done [21:25:39]NVStorageSaveData kkm_last_timestamp [21:25:39]File name is /storage/kkm_last_timestamp [21:25:39]Write 4 bytes [21:25:39]NVStorageSaveData done [21:25:39]ExternCall_PrintAddStr [21:25:39]wPrintStart [21:25:39]Write to MH i2c: 01 00 00 25 01 26 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 25 01 00 00 00 00 00 FF 0F 3B [21:25:39]RasterBufferAndPrint [21:25:39]line Счет N : (1)210566 [21:25:39]line ИНН: 02508201610067 [21:25:39]line Контрольно-Кассовый Чек [21:25:39]line ПРОДАЖА [21:25:39]line ТРК (МРК, ГНК) : 12 [21:25:39]line Товар: 2710124130 [21:25:39]line Аи-92-К-3 [21:25:39]line 10.000 * 0.00 [21:25:39]line = 0.00 [21:25:39]line НДС 12% НСП 1% [21:25:39]line > о реализуемом товаре [21:25:39]line ИТОГО: 0.00 [21:25:39]line НСП 1% : 0.00 [21:25:39]line НДС 12% : 0.00 [21:25:39]line Наличными: 0.00 [21:25:39]line Безнал.: 0.00 [21:25:39]line Место: АЗС № 86 "Партнер Нефть" [21:25:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:25:39]line СНО: Общий режим [21:25:39]line Чек 535 22.10.2024 21:25 [21:25:39]line Смена: 461 ФФД: 1.0 [21:25:39]line ЗНМ: 0300000155 [21:25:39]line РНМ: 0000000000100030 [21:25:39]line Версия ККМ: 001 [21:25:39]line Талоны: ТК ГПНА Online [21:25:39]line 30072815 [21:25:39]line ФМ: 0000000000965340 [21:25:39]line ФД: 188506 [21:25:39]line ФПД: 178575356381280 [21:25:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212538&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188506&fm=178575356381280&tin=02508201610067®Number=0000000000100030&sum=0 [21:25:39]written 0, free lines is 4095 [21:25:39]OFD Sender: Processing packet 188506 [packets to send 1062, broken 1061] [21:25:39]ProducePacketName [21:25:39]name=ofd_packets/00188506 [21:25:39]OFD Sender: To server: pG, [21:25:39]CommunicateWithHost lk.salyk.kg:30040 [21:25:39]ConnectInit lk.salyk.kg [21:25:39]Connected sock=7 [21:25:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7C 93 07 01 2C B3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 02 00 00 F4 03 04 00 52 18 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E0 02 00 35 04 06 00 A2 69 D0 AE C8 60 B1 1A 43 D5 84 D9 E5 51 [21:25:39]Write to MH i2c: 01 00 00 4F 01 50 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: 01 07 00 4F 01 00 00 00 00 00 73 0C D6 [21:25:39]RasterBufferAndPrint [21:25:39]line [21:25:39]line [21:25:39]line [21:25:39]line [21:25:39]line [21:25:39]written 0, free lines is 3192 [21:25:39]MH_Cut [21:25:39]Write to MH i2c: D1 01 00 56 01 01 29 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: D1 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: D1 01 00 [21:25:39]MH_I2C_Read... [21:25:39]Read from MH i2c: D1 01 00 56 01 00 28 [21:25:39]Write to MH i2c: 01 00 00 57 01 58 [21:25:39]Write i2c OK [21:25:39]MH_I2C_Read... [21:25:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F5 94 47 00 AF A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5A E0 02 00 F4 03 04 00 3E C2 17 67 B6 04 01 00 00 05 0B 51 D4 27 EA 28 7B [21:25:40]CommunicateWithHost err = 0 [21:25:40]CheckOFDResponse [21:25:40]1017 (14) - 77093643461234 [21:25:40]1041 (16) - 0000000000965340 [21:25:40]1040 (4) - 188506 [21:25:40]1012 (4) - 22.10.2024 15:18 [21:25:40]1206 (1) - 0 [21:25:40]OFD Sender: Remove packet 188506 [21:25:40]ProducePacketName [21:25:40]name=ofd_packets/00188506 [21:25:40]NVStorageDeleteData [21:25:40]OFD Sender: No OFD packet to send [21:25:40]*** Cut start [21:25:40]*** Partial cut [21:25:40]*** CUTSNS_PIN = 1 [21:25:41]*** CUTSNS_PIN = 0 [21:25:41]*** Brake cut motor [21:25:41]Read from MH i2c: 01 [21:25:41]MH_I2C_Read... [21:25:41]*** Stop cut motor [21:25:41]*** Cut end [21:25:41]Read from MH i2c: 01 07 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: 01 07 00 57 01 00 00 00 00 00 FF 0F 6D [21:25:41]process_action close_receipt done [21:25:41]requested_data is exist [21:25:41]produce_requested_data [21:25:41]requested_item fm.sn is exist - process it [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 11 00 00 [21:25:41]Write to MH i2c: E2 08 00 58 01 80 11 00 00 00 00 00 00 D3 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 17 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 17 00 58 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [21:25:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:25:41]wFMCommunicate OK [21:25:41]requested_item fd.num is exist - process it [21:25:41]SAM_PROTO_GetFieldsCounters [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 13 00 00 [21:25:41]Write to MH i2c: E2 08 00 59 01 80 13 00 00 00 00 00 00 D6 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 62 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 62 00 59 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 17 02 00 00 5E 04 04 00 17 02 00 00 57 04 04 00 18 02 00 00 19 04 04 00 00 00 00 00 90 00 32 [21:25:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 17 02 00 00 5E 04 04 00 17 02 00 00 57 04 04 00 18 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_GetFieldsCounters done [21:25:41]requested_item shift.num is exist - process it [21:25:41]requested_item shift.opened is exist - process it [21:25:41]req_shift_opened [21:25:41]FM_GetShiftState [21:25:41]SAM_PROTO_GetShiftState [21:25:41]wFMCommunicate request_size=4 [21:25:41]MH_SAM_APDU [21:25:41]CAPDU: 80 13 01 00 [21:25:41]Write to MH i2c: E2 08 00 5A 01 80 13 01 00 00 00 00 00 D8 [21:25:41]Write i2c OK [21:25:41]MH_I2C_Read... [21:25:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:41]Read from MH i2c: E2 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 0E 00 [21:25:41]MH_I2C_Read... [21:25:41]Read from MH i2c: E2 0E 00 5A 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CD [21:25:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:25:41]wFMCommunicate OK [21:25:41]SAM_PROTO_GetShiftState done [21:25:41]FM_GetShiftState done [21:25:41]req_shift_opened done [21:25:41]requested_item shift.open_date is exist - process it [21:25:41]req_shift_open_date [21:25:41]req_shift_open_date done [21:25:41]produce_requested_data done [21:25:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188506,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:25:41]process_action_free close_receipt [21:25:41]json_value_free [21:25:41]json_value_free done [21:25:41]process_json_proto returns [21:25:41]Send response to host [21:25:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188506,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:25:41]free response buf [21:25:41]execute_script done [21:25:41]execute_script returns [21:25:41]free content buf [21:25:41]Sock 9.Close socket [21:25:41]Sock 9.Thread stoped [21:25:45]OFD Sender: No OFD packet to send [21:25:50]OFD Sender: No OFD packet to send [21:25:55]OFD Sender: No OFD packet to send [21:26:00]OFD Sender: No OFD packet to send [21:26:05]OFD Sender: No OFD packet to send [21:26:10]OFD Sender: No OFD packet to send [21:26:15]OFD Sender: No OFD packet to send [21:26:20]OFD Sender: No OFD packet to send [21:26:25]OFD Sender: No OFD packet to send [21:26:30]OFD Sender: No OFD packet to send [21:26:35]OFD Sender: No OFD packet to send [21:26:40]OFD Sender: No OFD packet to send [21:26:45]OFD Sender: No OFD packet to send [21:26:50]OFD Sender: No OFD packet to send [21:26:55]OFD Sender: No OFD packet to send [21:27:00]OFD Sender: No OFD packet to send [21:27:05]OFD Sender: No OFD packet to send [21:27:10]OFD Sender: No OFD packet to send [21:27:15]OFD Sender: No OFD packet to send [21:27:20]OFD Sender: No OFD packet to send [21:27:26]OFD Sender: No OFD packet to send [21:27:31]OFD Sender: No OFD packet to send [21:27:36]OFD Sender: No OFD packet to send [21:27:41]OFD Sender: No OFD packet to send [21:27:46]OFD Sender: No OFD packet to send [21:27:51]OFD Sender: No OFD packet to send [21:27:56]OFD Sender: No OFD packet to send [21:28:01]OFD Sender: No OFD packet to send [21:28:06]OFD Sender: No OFD packet to send [21:28:11]OFD Sender: No OFD packet to send [21:28:16]OFD Sender: No OFD packet to send [21:28:21]OFD Sender: No OFD packet to send [21:28:26]OFD Sender: No OFD packet to send [21:28:31]OFD Sender: No OFD packet to send [21:28:36]OFD Sender: No OFD packet to send [21:28:41]OFD Sender: No OFD packet to send [21:28:46]OFD Sender: No OFD packet to send [21:28:49]accept exits with 10 [21:28:49]New connection [21:28:49]New thread 3066506596 created [21:28:49]Thread 3066649956 joined [21:28:49]Waiting for new connection... [21:28:49] Sock 10.Parse request [21:28:49]Sock 10.Check first char [21:28:49]Sock 10.First char is OK [21:28:49]request: POST /json_proto HTTP/1.0 [21:28:49]Method: POST [21:28:49]URL: /json_proto [21:28:49]Method is POST - this is cgi request [21:28:49]url: /json_proto [21:28:49]query_string will be loaded in cgi processing [21:28:49]execute_cgi json_proto POST (null) [21:28:49]execute_cgi path=json_proto method=POST [21:28:49]POST find Content-Length [21:28:49]Host: 172.17.42.131:8080 [21:28:49]Content-Length: 683 [21:28:49]Content-Type: application/json [21:28:49] [21:28:49]POST finish read [21:28:49]Found Content-Length = 683 [21:28:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:49]execute_script... [21:28: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)210569", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:28:49]POST & json_proto [21:28:49]process_json_proto [21:28:49]json parsed OK: [21:28:49]protocol is kg_v1.0 [21:28:49]action value=close_receipt [21:28:49]process_action close_receipt [21:28:49]cmd_close_receipt [21:28:49]MH_GetDate [21:28:49]Write to MH i2c: F0 00 00 5B 01 4B [21:28:49]Write i2c OK [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: F0 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: F0 09 00 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: F0 09 00 5B 01 00 12 19 18 67 A0 18 CA 66 E6 [21:28:49]GetLastDocTimeStamp 1729632338 [21:28:49]current date 1729632530 [21:28:49]FM_GetShiftState [21:28:49]SAM_PROTO_GetShiftState [21:28:49]wFMCommunicate request_size=4 [21:28:49]MH_SAM_APDU [21:28:49]CAPDU: 80 13 01 00 [21:28:49]Write to MH i2c: E2 08 00 5C 01 80 13 01 00 00 00 00 00 DA [21:28:49]Write i2c OK [21:28:49]MH_I2C_Read... [21:28:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:49]Read from MH i2c: E2 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: E2 0E 00 [21:28:49]MH_I2C_Read... [21:28:49]Read from MH i2c: E2 0E 00 5C 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CF [21:28:49]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:28:49]wFMCommunicate OK [21:28:49]SAM_PROTO_GetShiftState done [21:28:49]FM_GetShiftState done [21:28:49]opened in 1729556094 [21:28:49]opened+sec_in_day 1729642494 [21:28:49]quantity*price = 50025 [21:28:49]sum+1 = 50027 [21:28:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 536 22.10.2024 21:28 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188507 ФПД: 237802989210527 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188507&fm=237802989210527&tin=02508201610067®Number=0000000000100030&sum=50000 [21:28:51]StoreToDocumentArchive [21:28:51]shift 461 fd 188507 [21:28:51]save to /storage/0461/doc_00188507 [21:28:51]save last doc name /storage/0461/doc_00188507 to /storage/kkm_last_doc_name [21:28:51]save OK [21:28:51]Clear old archive folders... [21:28:51]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:28:51]tlvbuf is 0090C220 [21:28:51]SAM_PROTO_ClearQueue [21:28:51]wFMCommunicate request_size=4 [21:28:51]MH_SAM_APDU [21:28:51]CAPDU: 80 09 00 00 [21:28:51]Write to MH i2c: E2 08 00 69 01 80 09 00 00 00 00 00 00 DC [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:28:51]Read from MH i2c: E2 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 69 01 00 90 00 DE [21:28:51]RAPDU: 90 00 [21:28:51]wFMCommunicate OK [21:28:51]SAM_PROTO_ClearQueue done [21:28:51]KKMCreateOFDPacket [21:28:51]OFDProtocolAddRootSTLVToBuf [21:28:51]FM_MakeSignedData [21:28:51]FM_MakeSignedData [21:28:51]SAM_PROTO_SignData [21:28:51]wFMCommunicate request_size=4 [21:28:51]MH_SAM_APDU [21:28:51]CAPDU: 80 0D 01 02 [21:28:51]Write to MH i2c: E2 08 00 6A 01 80 0D 01 02 00 00 00 00 E4 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:28:51]Read from MH i2c: E2 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 6A 01 00 90 00 DF [21:28:51]RAPDU: 90 00 [21:28:51]wFMCommunicate OK [21:28:51]wFMCommunicate request_size=255 [21:28:51]MH_SAM_APDU [21:28:51]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 18 02 00 00 F4 03 04 00 12 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E0 02 [21:28:51]Write to MH i2c: E2 02 01 6B 01 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 18 02 00 00 F4 03 04 00 12 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E0 02 00 00 C0 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]OFD Sender: No OFD packet to send [21:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:51]Read from MH i2c: E2 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 6B 01 00 90 00 E0 [21:28:51]RAPDU: 90 00 [21:28:51]wFMCommunicate OK [21:28:51]wFMCommunicate request_size=16 [21:28:51]MH_SAM_APDU [21:28:51]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 D8 47 D2 B2 CB 9F [21:28:51]Write to MH i2c: E2 13 00 6C 01 80 0D 02 02 0B 00 00 35 04 06 00 D8 47 D2 B2 CB 9F 00 00 49 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:28:51]Read from MH i2c: E2 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 03 00 6C 01 00 90 00 E1 [21:28:51]RAPDU: 90 00 [21:28:51]wFMCommunicate OK [21:28:51]wFMCommunicate request_size=4 [21:28:51]MH_SAM_APDU [21:28:51]CAPDU: 80 0D 03 02 [21:28:51]Write to MH i2c: E2 08 00 6D 01 80 0D 03 02 00 00 00 00 E9 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:28:51]Read from MH i2c: E2 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 0B 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 0B 00 6D 01 00 0C 04 13 58 61 1D 1D B8 90 00 B8 [21:28:51]RAPDU: 0C 04 13 58 61 1D 1D B8 90 00 [21:28:51]wFMCommunicate OK [21:28:51]SAM_PROTO_SignData done [21:28:51]FM_MakeSignedData done [21:28:51]CreateOFDProtocolMessage [21:28:51]wFMCommunicate request_size=4 [21:28:51]MH_SAM_APDU [21:28:51]CAPDU: 80 11 00 00 [21:28:51]Write to MH i2c: E2 08 00 6E 01 80 11 00 00 00 00 00 00 E9 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:51]Read from MH i2c: E2 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 17 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: E2 17 00 6E 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 37 [21:28:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:28:51]wFMCommunicate OK [21:28:51]CreateOFDProtocolMessage done [21:28:51]OFDSenderStorePacket 188507 [21:28:51]StoreOFDPacket docnum=188507 [21:28:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 30 05 0D 01 F9 51 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 18 02 00 00 F4 03 04 00 12 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E0 02 00 35 04 06 00 D8 47 D2 B2 CB 9F 0C 04 13 58 61 1D 1D B8 [21:28:51]CheckFolder [21:28:51]dirname=/storage/ofd_packets [21:28:51]CheckFolder done [21:28:51]ProducePacketName [21:28:51]name=ofd_packets/00188507 [21:28:51]NVStorageSaveData ofd_packets/00188507 [21:28:51]File name is /storage/ofd_packets/00188507 [21:28:51]Write 307 bytes [21:28:51]NVStorageSaveData done [21:28:51]OFDSenderStorePacket done [21:28:51]KKMCreateOFDPacket done [21:28:51]NVStorageSaveData kkm_last_timestamp [21:28:51]File name is /storage/kkm_last_timestamp [21:28:51]Write 4 bytes [21:28:51]NVStorageSaveData done [21:28:51]ExternCall_PrintAddStr [21:28:51]wPrintStart [21:28:51]Write to MH i2c: 01 00 00 6F 01 70 [21:28:51]Write i2c OK [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: 01 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: 01 07 00 [21:28:51]MH_I2C_Read... [21:28:51]Read from MH i2c: 01 07 00 6F 01 00 00 00 00 00 FF 0F 85 [21:28:51]RasterBufferAndPrint [21:28:51]line Счет N : (1)210569 [21:28:51]line ИНН: 02508201610067 [21:28:51]line Контрольно-Кассовый Чек [21:28:51]line ПРОДАЖА [21:28:51]line ТРК (МРК, ГНК) : 31 [21:28:51]line Товар: 2710194210 [21:28:51]line D-ENERGY ДТ-К-5 [21:28:51]line 6.480 * 77.20 [21:28:51]line = 500.26 [21:28:51]line НДС 12% НСП 1% [21:28:51]line > о реализуемом товаре [21:28:51]line ОКРУГЛЕНИЕ: -0.26 [21:28:51]line ИТОГО: 500.00 [21:28:51]line Внесено: 500.00 [21:28:51]line СДАЧА: 0.00 [21:28:51]line НСП 1% : 4.43 [21:28:51]line НДС 12% : 53.12 [21:28:51]line Наличными: 500.00 [21:28:51]line Безнал.: 0.00 [21:28:51]line Место: АЗС № 86 "Партнер Нефть" [21:28:51]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:28:51]line СНО: Общий режим [21:28:51]line Чек 536 22.10.2024 21:28 [21:28:51]line Смена: 461 ФФД: 1.0 [21:28:51]line ЗНМ: 0300000155 [21:28:51]line РНМ: 0000000000100030 [21:28:51]line Версия ККМ: 001 [21:28:51]line ФМ: 0000000000965340 [21:28:51]line ФД: 188507 [21:28:51]line ФПД: 237802989210527 [21:28:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T212850&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188507&fm=237802989210527&tin=02508201610067®Number=0000000000100030&sum=50000 [21:28:51]written 0, free lines is 4095 [21:28:51]OFD Sender: Processing packet 188507 [packets to send 1062, broken 1061] [21:28:51]ProducePacketName [21:28:51]name=ofd_packets/00188507 [21:28:51]OFD Sender: To server: pG, [21:28:51]CommunicateWithHost lk.salyk.kg:30040 [21:28:51]ConnectInit lk.salyk.kg [21:28:51]Connected sock=9 [21:28:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 30 05 0D 01 F9 51 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 18 02 00 00 F4 03 04 00 12 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5B E0 02 00 35 04 06 00 D8 47 D2 B2 CB 9F 0C 04 13 58 61 1D 1D B8 [21:28:52]Write to MH i2c: 01 00 00 9A 01 9B [21:28:52]Write i2c OK [21:28:52]MH_I2C_Read... [21:28:52]Read from MH i2c: 01 [21:28:52]MH_I2C_Read... [21:28:52]Read from MH i2c: 01 07 00 [21:28:52]MH_I2C_Read... [21:28:52]Read from MH i2c: 01 07 00 9A 01 00 00 00 00 00 5F 0C 0D [21:28:52]RasterBufferAndPrint [21:28:52]line [21:28:52]line [21:28:52]line [21:28:52]line [21:28:52]line [21:28:52]written 0, free lines is 3170 [21:28:52]MH_Cut [21:28:52]Write to MH i2c: D1 01 00 A1 01 01 74 [21:28:52]Write i2c OK [21:28:52]MH_I2C_Read... [21:28:52]Read from MH i2c: D1 [21:28:52]MH_I2C_Read... [21:28:52]Read from MH i2c: D1 01 00 [21:28:52]MH_I2C_Read... [21:28:52]Read from MH i2c: D1 01 00 A1 01 00 73 [21:28:52]Write to MH i2c: 01 00 00 A2 01 A3 [21:28:52]Write i2c OK [21:28:52]MH_I2C_Read... [21:28:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 73 12 47 00 25 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 39 36 35 33 34 30 10 04 04 00 5B E0 02 00 F4 03 04 00 FE C2 17 67 B6 04 01 00 00 5C ED B9 02 FB B2 EC 71 [21:28:52]CommunicateWithHost err = 0 [21:28:52]CheckOFDResponse [21:28:52]1017 (14) - 77093643461234 [21:28:52]1041 (16) - 0000000000965340 [21:28:52]1040 (4) - 188507 [21:28:52]1012 (4) - 22.10.2024 15:21 [21:28:52]1206 (1) - 0 [21:28:52]OFD Sender: Remove packet 188507 [21:28:52]ProducePacketName [21:28:52]name=ofd_packets/00188507 [21:28:52]NVStorageDeleteData [21:28:52]OFD Sender: No OFD packet to send [21:28:53]*** Cut start [21:28:53]*** Partial cut [21:28:53]*** CUTSNS_PIN = 1 [21:28:53]*** CUTSNS_PIN = 0 [21:28:53]*** Brake cut motor [21:28:54]Read from MH i2c: 01 [21:28:54]MH_I2C_Read... [21:28:54]*** Stop cut motor [21:28:54]*** Cut end [21:28:54]Read from MH i2c: 01 07 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: 01 07 00 A2 01 00 00 00 00 00 FF 0F B8 [21:28:54]process_action close_receipt done [21:28:54]requested_data is exist [21:28:54]produce_requested_data [21:28:54]requested_item fm.sn is exist - process it [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 11 00 00 [21:28:54]Write to MH i2c: E2 08 00 A3 01 80 11 00 00 00 00 00 00 1E [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 17 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 17 00 A3 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6C [21:28:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:28:54]wFMCommunicate OK [21:28:54]requested_item fd.num is exist - process it [21:28:54]SAM_PROTO_GetFieldsCounters [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 13 00 00 [21:28:54]Write to MH i2c: E2 08 00 A4 01 80 13 00 00 00 00 00 00 21 [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 62 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 62 00 A4 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 18 02 00 00 5E 04 04 00 18 02 00 00 57 04 04 00 19 02 00 00 19 04 04 00 00 00 00 00 90 00 81 [21:28:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 18 02 00 00 5E 04 04 00 18 02 00 00 57 04 04 00 19 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:28:54]wFMCommunicate OK [21:28:54]SAM_PROTO_GetFieldsCounters done [21:28:54]requested_item shift.num is exist - process it [21:28:54]requested_item shift.opened is exist - process it [21:28:54]req_shift_opened [21:28:54]FM_GetShiftState [21:28:54]SAM_PROTO_GetShiftState [21:28:54]wFMCommunicate request_size=4 [21:28:54]MH_SAM_APDU [21:28:54]CAPDU: 80 13 01 00 [21:28:54]Write to MH i2c: E2 08 00 A5 01 80 13 01 00 00 00 00 00 23 [21:28:54]Write i2c OK [21:28:54]MH_I2C_Read... [21:28:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:28:54]Read from MH i2c: E2 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 0E 00 [21:28:54]MH_I2C_Read... [21:28:54]Read from MH i2c: E2 0E 00 A5 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 18 [21:28:54]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:28:54]wFMCommunicate OK [21:28:54]SAM_PROTO_GetShiftState done [21:28:54]FM_GetShiftState done [21:28:54]req_shift_opened done [21:28:54]requested_item shift.open_date is exist - process it [21:28:54]req_shift_open_date [21:28:54]req_shift_open_date done [21:28:54]produce_requested_data done [21:28:54]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188507,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:28:54]process_action_free close_receipt [21:28:54]json_value_free [21:28:54]json_value_free done [21:28:54]process_json_proto returns [21:28:54]Send response to host [21:28:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188507,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:28:54]free response buf [21:28:54]execute_script done [21:28:54]execute_script returns [21:28:54]free content buf [21:28:54]Sock 10.Close socket [21:28:54]Sock 10.Thread stoped [21:28:57]OFD Sender: No OFD packet to send [21:29:02]OFD Sender: No OFD packet to send [21:29:07]OFD Sender: No OFD packet to send [21:29:12]OFD Sender: No OFD packet to send [21:29:17]OFD Sender: No OFD packet to send [21:29:22]OFD Sender: No OFD packet to send [21:29:27]OFD Sender: No OFD packet to send [21:29:32]OFD Sender: No OFD packet to send [21:29:37]OFD Sender: No OFD packet to send [21:29:43]OFD Sender: No OFD packet to send [21:29:48]OFD Sender: No OFD packet to send [21:29:53]OFD Sender: No OFD packet to send [21:29:58]OFD Sender: No OFD packet to send [21:30:03]OFD Sender: No OFD packet to send [21:30:08]OFD Sender: No OFD packet to send [21:30:13]OFD Sender: No OFD packet to send [21:30:18]OFD Sender: No OFD packet to send [21:30:23]OFD Sender: No OFD packet to send [21:30:28]OFD Sender: No OFD packet to send [21:30:33]OFD Sender: No OFD packet to send [21:30:38]OFD Sender: No OFD packet to send [21:30:43]OFD Sender: No OFD packet to send [21:30:48]OFD Sender: No OFD packet to send [21:30:53]OFD Sender: No OFD packet to send [21:30:58]OFD Sender: No OFD packet to send [21:31:03]OFD Sender: No OFD packet to send [21:31:08]OFD Sender: No OFD packet to send [21:31:13]OFD Sender: No OFD packet to send [21:31:18]OFD Sender: No OFD packet to send [21:31:23]OFD Sender: No OFD packet to send [21:31:28]OFD Sender: No OFD packet to send [21:31:33]OFD Sender: No OFD packet to send [21:31:38]OFD Sender: No OFD packet to send [21:31:43]OFD Sender: No OFD packet to send [21:31:48]OFD Sender: No OFD packet to send [21:31:53]OFD Sender: No OFD packet to send [21:31:58]accept exits with 7 [21:31:58]New connection [21:31:58]New thread 3066649956 created [21:31:58]Thread 3066506596 joined [21:31:58]Waiting for new connection... [21:31:58] Sock 7.Parse request [21:31:58]Sock 7.Check first char [21:31:58]Sock 7.First char is OK [21:31:58]request: POST /json_proto HTTP/1.0 [21:31:58]Method: POST [21:31:58]URL: /json_proto [21:31:58]Method is POST - this is cgi request [21:31:58]url: /json_proto [21:31:58]query_string will be loaded in cgi processing [21:31:58]execute_cgi json_proto POST (null) [21:31:58]execute_cgi path=json_proto method=POST [21:31:58]POST find Content-Length [21:31:58]Host: 172.17.42.131:8080 [21:31:58]Content-Length: 680 [21:31:58]Content-Type: application/json [21:31:58] [21:31:58]POST finish read [21:31:58]Found Content-Length = 680 [21:31:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:58]execute_script... [21:31: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)210567", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:31:58]POST & json_proto [21:31:58]process_json_proto [21:31:58]json parsed OK: [21:31:58]protocol is kg_v1.0 [21:31:58]action value=close_receipt [21:31:58]process_action close_receipt [21:31:58]cmd_close_receipt [21:31:58]MH_GetDate [21:31:58]Write to MH i2c: F0 00 00 A6 01 96 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: F0 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: F0 09 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: F0 09 00 A6 01 00 CE 19 18 67 A0 18 CA 66 ED [21:31:58]GetLastDocTimeStamp 1729632530 [21:31:58]current date 1729632718 [21:31:58]FM_GetShiftState [21:31:58]SAM_PROTO_GetShiftState [21:31:58]wFMCommunicate request_size=4 [21:31:58]MH_SAM_APDU [21:31:58]CAPDU: 80 13 01 00 [21:31:58]Write to MH i2c: E2 08 00 A7 01 80 13 01 00 00 00 00 00 25 [21:31:58]Write i2c OK [21:31:58]MH_I2C_Read... [21:31:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:31:58]Read from MH i2c: E2 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 0E 00 [21:31:58]MH_I2C_Read... [21:31:58]Read from MH i2c: E2 0E 00 A7 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [21:31:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:31:58]wFMCommunicate OK [21:31:58]SAM_PROTO_GetShiftState done [21:31:58]FM_GetShiftState done [21:31:58]opened in 1729556094 [21:31:58]opened+sec_in_day 1729642494 [21:31:58]quantity*price = 900074 [21:31:58]sum+1 = 900075 [21:31:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 537 22.10.2024 21:31 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188508 ФПД: 174504896889523 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188508&fm=174504896889523&tin=02508201610067®Number=0000000000100030&sum=900000 [21:31:59]StoreToDocumentArchive [21:31:59]shift 461 fd 188508 [21:31:59]save to /storage/0461/doc_00188508 [21:31:59]save last doc name /storage/0461/doc_00188508 to /storage/kkm_last_doc_name [21:31:59]save OK [21:31:59]Clear old archive folders... [21:31:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:31:59]tlvbuf is 00907AA0 [21:31:59]SAM_PROTO_ClearQueue [21:31:59]wFMCommunicate request_size=4 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 09 00 00 [21:31:59]Write to MH i2c: E2 08 00 B4 01 80 09 00 00 00 00 00 00 27 [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 B4 01 00 90 00 29 [21:31:59]RAPDU: 90 00 [21:31:59]wFMCommunicate OK [21:31:59]SAM_PROTO_ClearQueue done [21:31:59]KKMCreateOFDPacket [21:31:59]OFDProtocolAddRootSTLVToBuf [21:31:59]FM_MakeSignedData [21:31:59]FM_MakeSignedData [21:31:59]SAM_PROTO_SignData [21:31:59]wFMCommunicate request_size=4 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 0D 01 02 [21:31:59]Write to MH i2c: E2 08 00 B5 01 80 0D 01 02 00 00 00 00 2F [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 B5 01 00 90 00 2A [21:31:59]RAPDU: 90 00 [21:31:59]wFMCommunicate OK [21:31:59]wFMCommunicate request_size=255 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 CE 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E0 02 00 35 04 06 00 9E B6 16 64 [21:31:59]Write to MH i2c: E2 02 01 B6 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 CE 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E0 02 00 35 04 06 00 9E B6 16 64 00 00 77 [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 B6 01 00 90 00 2B [21:31:59]RAPDU: 90 00 [21:31:59]wFMCommunicate OK [21:31:59]wFMCommunicate request_size=7 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 0D 02 02 02 02 B3 [21:31:59]Write to MH i2c: E2 0A 00 B7 01 80 0D 02 02 02 00 02 B3 00 00 EB [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 03 00 B7 01 00 90 00 2C [21:31:59]RAPDU: 90 00 [21:31:59]wFMCommunicate OK [21:31:59]wFMCommunicate request_size=4 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 0D 03 02 [21:31:59]Write to MH i2c: E2 08 00 B8 01 80 0D 03 02 00 00 00 00 34 [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 0B 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 0B 00 B8 01 00 F0 7C 33 B5 6A A4 F3 63 90 00 ED [21:31:59]RAPDU: F0 7C 33 B5 6A A4 F3 63 90 00 [21:31:59]wFMCommunicate OK [21:31:59]SAM_PROTO_SignData done [21:31:59]FM_MakeSignedData done [21:31:59]CreateOFDProtocolMessage [21:31:59]wFMCommunicate request_size=4 [21:31:59]MH_SAM_APDU [21:31:59]CAPDU: 80 11 00 00 [21:31:59]Write to MH i2c: E2 08 00 B9 01 80 11 00 00 00 00 00 00 34 [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:31:59]Read from MH i2c: E2 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 17 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: E2 17 00 B9 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 82 [21:31:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:31:59]wFMCommunicate OK [21:31:59]CreateOFDProtocolMessage done [21:31:59]OFDSenderStorePacket 188508 [21:31:59]StoreOFDPacket docnum=188508 [21:31:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2E 4A 04 01 31 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 CE 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E0 02 00 35 04 06 00 9E B6 16 64 02 B3 F0 7C 33 B5 6A A4 F3 63 [21:31:59]CheckFolder [21:31:59]dirname=/storage/ofd_packets [21:31:59]CheckFolder done [21:31:59]ProducePacketName [21:31:59]name=ofd_packets/00188508 [21:31:59]NVStorageSaveData ofd_packets/00188508 [21:31:59]File name is /storage/ofd_packets/00188508 [21:31:59]Write 298 bytes [21:31:59]NVStorageSaveData done [21:31:59]OFDSenderStorePacket done [21:31:59]KKMCreateOFDPacket done [21:31:59]NVStorageSaveData kkm_last_timestamp [21:31:59]File name is /storage/kkm_last_timestamp [21:31:59]Write 4 bytes [21:31:59]NVStorageSaveData done [21:31:59]ExternCall_PrintAddStr [21:31:59]wPrintStart [21:31:59]Write to MH i2c: 01 00 00 BA 01 BB [21:31:59]Write i2c OK [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: 01 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: 01 07 00 [21:31:59]MH_I2C_Read... [21:31:59]Read from MH i2c: 01 07 00 BA 01 00 00 00 00 00 FF 0F D0 [21:31:59]RasterBufferAndPrint [21:31:59]line Счет N : (1)210567 [21:31:59]line ИНН: 02508201610067 [21:31:59]line Контрольно-Кассовый Чек [21:31:59]line ПРОДАЖА [21:31:59]line ТРК (МРК, ГНК) : 51 [21:31:59]line Товар: 2710194210 [21:31:59]line ДТ-К-5 [21:31:59]line 118.120 * 76.20 [21:31:59]line = 9000.74 [21:31:59]line НДС 12% НСП 1% [21:31:59]line > о реализуемом товаре [21:31:59]line ОКРУГЛЕНИЕ: -0.74 [21:31:59]line ИТОГО: 9000.00 [21:31:59]line Внесено: 9000.00 [21:31:59]line СДАЧА: 0.00 [21:31:59]line НСП 1% : 79.65 [21:31:59]line НДС 12% : 955.83 [21:31:59]line Наличными: 9000.00 [21:31:59]line Безнал.: 0.00 [21:31:59]line Место: АЗС № 86 "Партнер Нефть" [21:31:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:31:59]line СНО: Общий режим [21:31:59]line Чек 537 22.10.2024 21:31 [21:31:59]line Смена: 461 ФФД: 1.0 [21:31:59]line ЗНМ: 0300000155 [21:31:59]line РНМ: 0000000000100030 [21:31:59]line Версия ККМ: 001 [21:31:59]line ФМ: 0000000000965340 [21:31:59]line ФД: 188508 [21:31:59]line ФПД: 174504896889523 [21:32:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213158&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188508&fm=174504896889523&tin=02508201610067®Number=0000000000100030&sum=900000 [21:32:00]OFD Sender: Processing packet 188508 [packets to send 1062, broken 1061] [21:32:00]ProducePacketName [21:32:00]name=ofd_packets/00188508 [21:32:00]OFD Sender: To server: pG, [21:32:00]CommunicateWithHost lk.salyk.kg:30040 [21:32:00]ConnectInit lk.salyk.kg [21:32:00]written 0, free lines is 4095 [21:32:00]Connected sock=10 [21:32:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 2E 4A 04 01 31 C9 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 02 00 00 F4 03 04 00 CE 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5C E0 02 00 35 04 06 00 9E B6 16 64 02 B3 F0 7C 33 B5 6A A4 F3 63 [21:32:00]Write to MH i2c: 01 00 00 E5 01 E6 [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: 01 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: 01 07 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: 01 07 00 E5 01 00 00 00 00 00 5E 0C 57 [21:32:00]RasterBufferAndPrint [21:32:00]line [21:32:00]line [21:32:00]line [21:32:00]line [21:32:00]line [21:32:00]written 0, free lines is 3169 [21:32:00]MH_Cut [21:32:00]Write to MH i2c: D1 01 00 EC 01 01 BF [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: D1 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: D1 01 00 [21:32:00]MH_I2C_Read... [21:32:00]Read from MH i2c: D1 01 00 EC 01 00 BE [21:32:00]Write to MH i2c: 01 00 00 ED 01 EE [21:32:00]Write i2c OK [21:32:00]MH_I2C_Read... [21:32:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 40 60 47 00 A7 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 39 36 35 33 34 30 10 04 04 00 5C E0 02 00 F4 03 04 00 BB C3 17 67 B6 04 01 00 00 0B DA 86 BE 29 97 E2 E0 [21:32:00]CommunicateWithHost err = 0 [21:32:00]CheckOFDResponse [21:32:00]1017 (14) - 77093643461234 [21:32:00]1041 (16) - 0000000000965340 [21:32:00]1040 (4) - 188508 [21:32:00]1012 (4) - 22.10.2024 15:24 [21:32:00]1206 (1) - 0 [21:32:00]OFD Sender: Remove packet 188508 [21:32:00]ProducePacketName [21:32:00]name=ofd_packets/00188508 [21:32:00]NVStorageDeleteData [21:32:01]OFD Sender: No OFD packet to send [21:32:01]*** Cut start [21:32:01]*** Partial cut [21:32:01]*** CUTSNS_PIN = 1 [21:32:01]*** CUTSNS_PIN = 0 [21:32:02]*** Brake cut motor [21:32:02]Read from MH i2c: 01 [21:32:02]MH_I2C_Read... [21:32:02]*** Stop cut motor [21:32:02]*** Cut end [21:32:02]Read from MH i2c: 01 07 00 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: 01 07 00 ED 01 00 00 00 00 00 FF 0F 03 [21:32:02]process_action close_receipt done [21:32:02]requested_data is exist [21:32:02]produce_requested_data [21:32:02]requested_item fm.sn is exist - process it [21:32:02]wFMCommunicate request_size=4 [21:32:02]MH_SAM_APDU [21:32:02]CAPDU: 80 11 00 00 [21:32:02]Write to MH i2c: E2 08 00 EE 01 80 11 00 00 00 00 00 00 69 [21:32:02]Write i2c OK [21:32:02]MH_I2C_Read... [21:32:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:02]Read from MH i2c: E2 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: E2 17 00 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: E2 17 00 EE 01 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B7 [21:32:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:02]wFMCommunicate OK [21:32:02]requested_item fd.num is exist - process it [21:32:02]SAM_PROTO_GetFieldsCounters [21:32:02]wFMCommunicate request_size=4 [21:32:02]MH_SAM_APDU [21:32:02]CAPDU: 80 13 00 00 [21:32:02]Write to MH i2c: E2 08 00 EF 01 80 13 00 00 00 00 00 00 6C [21:32:02]Write i2c OK [21:32:02]MH_I2C_Read... [21:32:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:02]Read from MH i2c: E2 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: E2 62 00 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: E2 62 00 EF 01 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 19 02 00 00 5E 04 04 00 19 02 00 00 57 04 04 00 1A 02 00 00 19 04 04 00 00 00 00 00 90 00 D0 [21:32:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 19 02 00 00 5E 04 04 00 19 02 00 00 57 04 04 00 1A 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:02]wFMCommunicate OK [21:32:02]SAM_PROTO_GetFieldsCounters done [21:32:02]requested_item shift.num is exist - process it [21:32:02]requested_item shift.opened is exist - process it [21:32:02]req_shift_opened [21:32:02]FM_GetShiftState [21:32:02]SAM_PROTO_GetShiftState [21:32:02]wFMCommunicate request_size=4 [21:32:02]MH_SAM_APDU [21:32:02]CAPDU: 80 13 01 00 [21:32:02]Write to MH i2c: E2 08 00 F0 01 80 13 01 00 00 00 00 00 6E [21:32:02]Write i2c OK [21:32:02]MH_I2C_Read... [21:32:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:02]Read from MH i2c: E2 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: E2 0E 00 [21:32:02]MH_I2C_Read... [21:32:02]Read from MH i2c: E2 0E 00 F0 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 63 [21:32:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:32:02]wFMCommunicate OK [21:32:02]SAM_PROTO_GetShiftState done [21:32:02]FM_GetShiftState done [21:32:02]req_shift_opened done [21:32:02]requested_item shift.open_date is exist - process it [21:32:02]req_shift_open_date [21:32:02]req_shift_open_date done [21:32:02]produce_requested_data done [21:32:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188508,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:32:02]process_action_free close_receipt [21:32:02]json_value_free [21:32:02]json_value_free done [21:32:02]process_json_proto returns [21:32:02]Send response to host [21:32:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188508,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:32:02]free response buf [21:32:02]execute_script done [21:32:02]execute_script returns [21:32:02]free content buf [21:32:02]Sock 7.Close socket [21:32:02]Sock 7.Thread stoped [21:32:06]OFD Sender: No OFD packet to send [21:32:09]accept exits with 9 [21:32:09]New connection [21:32:09]New thread 3066506596 created [21:32:09]Thread 3066649956 joined [21:32:09]Waiting for new connection... [21:32:09] Sock 9.Parse request [21:32:09]Sock 9.Check first char [21:32:09]Sock 9.First char is OK [21:32:09]request: POST /json_proto HTTP/1.0 [21:32:09]Method: POST [21:32:09]URL: /json_proto [21:32:09]Method is POST - this is cgi request [21:32:09]url: /json_proto [21:32:09]query_string will be loaded in cgi processing [21:32:09]execute_cgi json_proto POST (null) [21:32:09]execute_cgi path=json_proto method=POST [21:32:09]POST find Content-Length [21:32:09]Host: 172.17.42.131:8080 [21:32:09]Content-Length: 680 [21:32:09]Content-Type: application/json [21:32:09] [21:32:09]POST finish read [21:32:09]Found Content-Length = 680 [21:32:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:09]execute_script... [21:32:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210568", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 118.120, "sum" : 9000.74, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 9000.00, "total" : 9000.00, "payments": [ { "type": 0, "sum" : 9000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:32:09]POST & json_proto [21:32:09]process_json_proto [21:32:09]json parsed OK: [21:32:09]protocol is kg_v1.0 [21:32:09]action value=close_receipt [21:32:09]process_action close_receipt [21:32:09]cmd_close_receipt [21:32:09]MH_GetDate [21:32:09]Write to MH i2c: F0 00 00 F1 01 E1 [21:32:09]Write i2c OK [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: F0 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: F0 09 00 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: F0 09 00 F1 01 00 DA 19 18 67 A0 18 CA 66 44 [21:32:09]GetLastDocTimeStamp 1729632718 [21:32:09]current date 1729632730 [21:32:09]FM_GetShiftState [21:32:09]SAM_PROTO_GetShiftState [21:32:09]wFMCommunicate request_size=4 [21:32:09]MH_SAM_APDU [21:32:09]CAPDU: 80 13 01 00 [21:32:09]Write to MH i2c: E2 08 00 F2 01 80 13 01 00 00 00 00 00 70 [21:32:09]Write i2c OK [21:32:09]MH_I2C_Read... [21:32:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:09]Read from MH i2c: E2 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 0E 00 [21:32:09]MH_I2C_Read... [21:32:09]Read from MH i2c: E2 0E 00 F2 01 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [21:32:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:32:09]wFMCommunicate OK [21:32:09]SAM_PROTO_GetShiftState done [21:32:09]FM_GetShiftState done [21:32:09]opened in 1729556094 [21:32:09]opened+sec_in_day 1729642494 [21:32:09]quantity*price = 900074 [21:32:09]sum+1 = 900075 [21:32:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.74 ИТОГО: 9000.00 Внесено: 9000.00 СДАЧА: 0.00 НСП 1% : 79.65 НДС 12% : 955.83 Наличными: 9000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 538 22.10.2024 21:32 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188509 ФПД: 230563366533483 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213210&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188509&fm=230563366533483&tin=02508201610067®Number=0000000000100030&sum=900000 [21:32:10]StoreToDocumentArchive [21:32:10]shift 461 fd 188509 [21:32:10]save to /storage/0461/doc_00188509 [21:32:10]save last doc name /storage/0461/doc_00188509 to /storage/kkm_last_doc_name [21:32:10]save OK [21:32:10]Clear old archive folders... [21:32:10]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:32:10]tlvbuf is 008C6630 [21:32:10]SAM_PROTO_ClearQueue [21:32:10]wFMCommunicate request_size=4 [21:32:10]MH_SAM_APDU [21:32:10]CAPDU: 80 09 00 00 [21:32:10]Write to MH i2c: E2 08 00 FF 01 80 09 00 00 00 00 00 00 72 [21:32:10]Write i2c OK [21:32:10]MH_I2C_Read... [21:32:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:32:10]Read from MH i2c: E2 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 FF 01 00 90 00 74 [21:32:10]RAPDU: 90 00 [21:32:10]wFMCommunicate OK [21:32:10]SAM_PROTO_ClearQueue done [21:32:10]KKMCreateOFDPacket [21:32:10]OFDProtocolAddRootSTLVToBuf [21:32:10]FM_MakeSignedData [21:32:10]FM_MakeSignedData [21:32:10]SAM_PROTO_SignData [21:32:10]wFMCommunicate request_size=4 [21:32:10]MH_SAM_APDU [21:32:10]CAPDU: 80 0D 01 02 [21:32:10]Write to MH i2c: E2 08 00 00 02 80 0D 01 02 00 00 00 00 7B [21:32:10]Write i2c OK [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 [21:32:10]MH_I2C_Read... [21:32:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:32:10]Read from MH i2c: E2 03 00 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 00 02 00 90 00 76 [21:32:10]RAPDU: 90 00 [21:32:10]wFMCommunicate OK [21:32:10]wFMCommunicate request_size=255 [21:32:10]MH_SAM_APDU [21:32:10]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DA 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E0 02 00 35 04 06 00 D1 B2 37 8F [21:32:10]Write to MH i2c: E2 02 01 01 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DA 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E0 02 00 35 04 06 00 D1 B2 37 8F 00 00 4C [21:32:10]Write i2c OK [21:32:10]MH_I2C_Read... [21:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:10]Read from MH i2c: E2 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 01 02 00 90 00 77 [21:32:10]RAPDU: 90 00 [21:32:10]wFMCommunicate OK [21:32:10]wFMCommunicate request_size=7 [21:32:10]MH_SAM_APDU [21:32:10]CAPDU: 80 0D 02 02 02 79 6B [21:32:10]Write to MH i2c: E2 0A 00 02 02 80 0D 02 02 02 00 79 6B 00 00 66 [21:32:10]Write i2c OK [21:32:10]MH_I2C_Read... [21:32:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:32:10]Read from MH i2c: E2 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 [21:32:10]MH_I2C_Read... [21:32:10]Read from MH i2c: E2 03 00 02 02 00 90 00 78 [21:32:10]RAPDU: 90 00 [21:32:10]wFMCommunicate OK [21:32:10]wFMCommunicate request_size=4 [21:32:10]MH_SAM_APDU [21:32:10]CAPDU: 80 0D 03 02 [21:32:10]Write to MH i2c: E2 08 00 03 02 80 0D 03 02 00 00 00 00 80 [21:32:10]Write i2c OK [21:32:10]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0B 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 0B 00 03 02 00 CF 34 D5 6F 88 01 7A 65 90 00 30 [21:32:11]RAPDU: CF 34 D5 6F 88 01 7A 65 90 00 [21:32:11]wFMCommunicate OK [21:32:11]SAM_PROTO_SignData done [21:32:11]FM_MakeSignedData done [21:32:11]CreateOFDProtocolMessage [21:32:11]wFMCommunicate request_size=4 [21:32:11]MH_SAM_APDU [21:32:11]CAPDU: 80 11 00 00 [21:32:11]Write to MH i2c: E2 08 00 04 02 80 11 00 00 00 00 00 00 80 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:11]Read from MH i2c: E2 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 17 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: E2 17 00 04 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CE [21:32:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:11]wFMCommunicate OK [21:32:11]CreateOFDProtocolMessage done [21:32:11]OFDSenderStorePacket 188509 [21:32:11]StoreOFDPacket docnum=188509 [21:32:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 97 71 04 01 F8 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DA 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E0 02 00 35 04 06 00 D1 B2 37 8F 79 6B CF 34 D5 6F 88 01 7A 65 [21:32:11]CheckFolder [21:32:11]dirname=/storage/ofd_packets [21:32:11]CheckFolder done [21:32:11]ProducePacketName [21:32:11]name=ofd_packets/00188509 [21:32:11]NVStorageSaveData ofd_packets/00188509 [21:32:11]File name is /storage/ofd_packets/00188509 [21:32:11]Write 298 bytes [21:32:11]NVStorageSaveData done [21:32:11]OFDSenderStorePacket done [21:32:11]KKMCreateOFDPacket done [21:32:11]NVStorageSaveData kkm_last_timestamp [21:32:11]File name is /storage/kkm_last_timestamp [21:32:11]Write 4 bytes [21:32:11]NVStorageSaveData done [21:32:11]ExternCall_PrintAddStr [21:32:11]wPrintStart [21:32:11]Write to MH i2c: 01 00 00 05 02 07 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 05 02 00 00 00 00 00 FF 0F 1C [21:32:11]RasterBufferAndPrint [21:32:11]line Счет N : (1)210568 [21:32:11]line ИНН: 02508201610067 [21:32:11]line Контрольно-Кассовый Чек [21:32:11]line ПРОДАЖА [21:32:11]line ТРК (МРК, ГНК) : 61 [21:32:11]line Товар: 2710194210 [21:32:11]line ДТ-К-5 [21:32:11]line 118.120 * 76.20 [21:32:11]line = 9000.74 [21:32:11]line НДС 12% НСП 1% [21:32:11]line > о реализуемом товаре [21:32:11]line ОКРУГЛЕНИЕ: -0.74 [21:32:11]line ИТОГО: 9000.00 [21:32:11]line Внесено: 9000.00 [21:32:11]line СДАЧА: 0.00 [21:32:11]line НСП 1% : 79.65 [21:32:11]line НДС 12% : 955.83 [21:32:11]line Наличными: 9000.00 [21:32:11]line Безнал.: 0.00 [21:32:11]line Место: АЗС № 86 "Партнер Нефть" [21:32:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:32:11]line СНО: Общий режим [21:32:11]line Чек 538 22.10.2024 21:32 [21:32:11]line Смена: 461 ФФД: 1.0 [21:32:11]line ЗНМ: 0300000155 [21:32:11]line РНМ: 0000000000100030 [21:32:11]line Версия ККМ: 001 [21:32:11]line ФМ: 0000000000965340 [21:32:11]line ФД: 188509 [21:32:11]line ФПД: 230563366533483 [21:32:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213210&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188509&fm=230563366533483&tin=02508201610067®Number=0000000000100030&sum=900000 [21:32:11]written 0, free lines is 4095 [21:32:11]OFD Sender: Processing packet 188509 [packets to send 1062, broken 1061] [21:32:11]ProducePacketName [21:32:11]name=ofd_packets/00188509 [21:32:11]OFD Sender: To server: pG, [21:32:11]CommunicateWithHost lk.salyk.kg:30040 [21:32:11]ConnectInit lk.salyk.kg [21:32:11]Write to MH i2c: 01 00 00 30 02 32 [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: 01 07 00 30 02 00 00 00 00 00 62 0C A7 [21:32:11]RasterBufferAndPrint [21:32:11]line [21:32:11]line [21:32:11]line [21:32:11]line [21:32:11]line [21:32:11]written 0, free lines is 3173 [21:32:11]Connected sock=10 [21:32:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 97 71 04 01 F8 DE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 68 CD 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EA BB 0D 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 BB 0D 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1D 1F 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5F 75 01 00 00 00 07 04 06 00 A0 BB 0D 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 02 00 00 F4 03 04 00 DA 19 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5D E0 02 00 35 04 06 00 D1 B2 37 8F 79 6B CF 34 D5 6F 88 01 7A 65 [21:32:11]MH_Cut [21:32:11]Write to MH i2c: D1 01 00 37 02 01 0B [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: D1 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: D1 01 00 [21:32:11]MH_I2C_Read... [21:32:11]Read from MH i2c: D1 01 00 37 02 00 0A [21:32:11]Write to MH i2c: 01 00 00 38 02 3A [21:32:11]Write i2c OK [21:32:11]MH_I2C_Read... [21:32:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CF D9 47 00 F0 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 39 36 35 33 34 30 10 04 04 00 5D E0 02 00 F4 03 04 00 C6 C3 17 67 B6 04 01 00 00 1C E7 B5 BC 54 EB 8E 81 [21:32:11]CommunicateWithHost err = 0 [21:32:11]CheckOFDResponse [21:32:11]1017 (14) - 77093643461234 [21:32:11]1041 (16) - 0000000000965340 [21:32:11]1040 (4) - 188509 [21:32:11]1012 (4) - 22.10.2024 15:24 [21:32:11]1206 (1) - 0 [21:32:11]OFD Sender: Remove packet 188509 [21:32:11]ProducePacketName [21:32:11]name=ofd_packets/00188509 [21:32:11]NVStorageDeleteData [21:32:12]OFD Sender: No OFD packet to send [21:32:12]*** Cut start [21:32:12]*** Partial cut [21:32:12]*** CUTSNS_PIN = 1 [21:32:12]*** CUTSNS_PIN = 0 [21:32:13]*** Brake cut motor [21:32:13]Read from MH i2c: 01 [21:32:13]MH_I2C_Read... [21:32:13]*** Stop cut motor [21:32:13]*** Cut end [21:32:13]Read from MH i2c: 01 07 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: 01 07 00 38 02 00 00 00 00 00 FF 0F 4F [21:32:13]process_action close_receipt done [21:32:13]requested_data is exist [21:32:13]produce_requested_data [21:32:13]requested_item fm.sn is exist - process it [21:32:13]wFMCommunicate request_size=4 [21:32:13]MH_SAM_APDU [21:32:13]CAPDU: 80 11 00 00 [21:32:13]Write to MH i2c: E2 08 00 39 02 80 11 00 00 00 00 00 00 B5 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:32:13]Read from MH i2c: E2 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 17 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 17 00 39 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 03 [21:32:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:32:13]wFMCommunicate OK [21:32:13]requested_item fd.num is exist - process it [21:32:13]SAM_PROTO_GetFieldsCounters [21:32:13]wFMCommunicate request_size=4 [21:32:13]MH_SAM_APDU [21:32:13]CAPDU: 80 13 00 00 [21:32:13]Write to MH i2c: E2 08 00 3A 02 80 13 00 00 00 00 00 00 B8 [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:32:13]Read from MH i2c: E2 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 62 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 62 00 3A 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1A 02 00 00 5E 04 04 00 1A 02 00 00 57 04 04 00 1B 02 00 00 19 04 04 00 00 00 00 00 90 00 20 [21:32:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1A 02 00 00 5E 04 04 00 1A 02 00 00 57 04 04 00 1B 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:32:13]wFMCommunicate OK [21:32:13]SAM_PROTO_GetFieldsCounters done [21:32:13]requested_item shift.num is exist - process it [21:32:13]requested_item shift.opened is exist - process it [21:32:13]req_shift_opened [21:32:13]FM_GetShiftState [21:32:13]SAM_PROTO_GetShiftState [21:32:13]wFMCommunicate request_size=4 [21:32:13]MH_SAM_APDU [21:32:13]CAPDU: 80 13 01 00 [21:32:13]Write to MH i2c: E2 08 00 3B 02 80 13 01 00 00 00 00 00 BA [21:32:13]Write i2c OK [21:32:13]MH_I2C_Read... [21:32:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:32:13]Read from MH i2c: E2 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 0E 00 [21:32:13]MH_I2C_Read... [21:32:13]Read from MH i2c: E2 0E 00 3B 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 AF [21:32:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:32:13]wFMCommunicate OK [21:32:13]SAM_PROTO_GetShiftState done [21:32:13]FM_GetShiftState done [21:32:13]req_shift_opened done [21:32:13]requested_item shift.open_date is exist - process it [21:32:13]req_shift_open_date [21:32:13]req_shift_open_date done [21:32:13]produce_requested_data done [21:32:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188509,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:32:13]process_action_free close_receipt [21:32:13]json_value_free [21:32:13]json_value_free done [21:32:13]process_json_proto returns [21:32:13]Send response to host [21:32:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188509,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:32:13]free response buf [21:32:13]execute_script done [21:32:13]execute_script returns [21:32:13]free content buf [21:32:13]Sock 9.Close socket [21:32:13]Sock 9.Thread stoped [21:32:17]OFD Sender: No OFD packet to send [21:32:22]OFD Sender: No OFD packet to send [21:32:27]OFD Sender: No OFD packet to send [21:32:32]OFD Sender: No OFD packet to send [21:32:37]OFD Sender: No OFD packet to send [21:32:42]OFD Sender: No OFD packet to send [21:32:47]OFD Sender: No OFD packet to send [21:32:52]OFD Sender: No OFD packet to send [21:32:57]OFD Sender: No OFD packet to send [21:33:02]OFD Sender: No OFD packet to send [21:33:07]OFD Sender: No OFD packet to send [21:33:12]OFD Sender: No OFD packet to send [21:33:17]OFD Sender: No OFD packet to send [21:33:22]OFD Sender: No OFD packet to send [21:33:27]OFD Sender: No OFD packet to send [21:33:32]OFD Sender: No OFD packet to send [21:33:37]OFD Sender: No OFD packet to send [21:33:42]OFD Sender: No OFD packet to send [21:33:47]OFD Sender: No OFD packet to send [21:33:52]OFD Sender: No OFD packet to send [21:33:57]OFD Sender: No OFD packet to send [21:34:02]OFD Sender: No OFD packet to send [21:34:07]OFD Sender: No OFD packet to send [21:34:13]OFD Sender: No OFD packet to send [21:34:18]OFD Sender: No OFD packet to send [21:34:23]OFD Sender: No OFD packet to send [21:34:28]OFD Sender: No OFD packet to send [21:34:33]OFD Sender: No OFD packet to send [21:34:38]OFD Sender: No OFD packet to send [21:34:43]OFD Sender: No OFD packet to send [21:34:48]OFD Sender: No OFD packet to send [21:34:53]OFD Sender: No OFD packet to send [21:34:58]OFD Sender: No OFD packet to send [21:35:03]OFD Sender: No OFD packet to send [21:35:08]OFD Sender: No OFD packet to send [21:35:13]OFD Sender: No OFD packet to send [21:35:18]OFD Sender: No OFD packet to send [21:35:23]OFD Sender: No OFD packet to send [21:35:28]OFD Sender: No OFD packet to send [21:35:33]OFD Sender: No OFD packet to send [21:35:38]accept exits with 7 [21:35:38]New connection [21:35:38]New thread 3066649956 created [21:35:38]Thread 3066506596 joined [21:35:38]Waiting for new connection... [21:35:38] Sock 7.Parse request [21:35:38]Sock 7.Check first char [21:35:38]Sock 7.First char is OK [21:35:38]request: POST /json_proto HTTP/1.0 [21:35:38]Method: POST [21:35:38]URL: /json_proto [21:35:38]Method is POST - this is cgi request [21:35:38]url: /json_proto [21:35:38]query_string will be loaded in cgi processing [21:35:38]execute_cgi json_proto POST (null) [21:35:38]execute_cgi path=json_proto method=POST [21:35:38]POST find Content-Length [21:35:38]Host: 172.17.42.131:8080 [21:35:38]Content-Length: 682 [21:35:38]Content-Type: application/json [21:35:38] [21:35:38]POST finish read [21:35:38]Found Content-Length = 682 [21:35:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.600, "sum" : 1110.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1110.00, "total" : 1110.00, "payments": [ { "type": 0, "sum" : 1110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:38]execute_script... [21:35: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)210571", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 16.600, "sum" : 1110.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1110.00, "total" : 1110.00, "payments": [ { "type": 0, "sum" : 1110.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:35:38]POST & json_proto [21:35:38]process_json_proto [21:35:38]json parsed OK: [21:35:38]protocol is kg_v1.0 [21:35:38]action value=close_receipt [21:35:38]process_action close_receipt [21:35:38]cmd_close_receipt [21:35:38]MH_GetDate [21:35:38]Write to MH i2c: F0 00 00 3C 02 2D [21:35:38]Write i2c OK [21:35:38]MH_I2C_Read... [21:35:38]Read from MH i2c: F0 [21:35:38]MH_I2C_Read... [21:35:38]Read from MH i2c: F0 09 00 [21:35:38]MH_I2C_Read... [21:35:38]Read from MH i2c: F0 09 00 3C 02 00 AB 1A 18 67 A0 18 CA 66 62 [21:35:38]GetLastDocTimeStamp 1729632730 [21:35:38]current date 1729632939 [21:35:38]FM_GetShiftState [21:35:38]SAM_PROTO_GetShiftState [21:35:38]wFMCommunicate request_size=4 [21:35:38]MH_SAM_APDU [21:35:38]CAPDU: 80 13 01 00 [21:35:38]Write to MH i2c: E2 08 00 3D 02 80 13 01 00 00 00 00 00 BC [21:35:38]Write i2c OK [21:35:38]MH_I2C_Read... [21:35:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:38]Read from MH i2c: E2 [21:35:38]MH_I2C_Read... [21:35:38]Read from MH i2c: E2 0E 00 [21:35:38]MH_I2C_Read... [21:35:38]Read from MH i2c: E2 0E 00 3D 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [21:35:38]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:35:38]wFMCommunicate OK [21:35:38]SAM_PROTO_GetShiftState done [21:35:38]FM_GetShiftState done [21:35:38]opened in 1729556094 [21:35:38]opened+sec_in_day 1729642494 [21:35:38]quantity*price = 111054 [21:35:38]sum+1 = 111055 [21:35:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1110.00 Внесено: 1110.00 СДАЧА: 0.00 НСП 1% : 9.83 НДС 12% : 117.93 Наличными: 1110.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 539 22.10.2024 21:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188510 ФПД: 21356113697135 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188510&fm=21356113697135&tin=02508201610067®Number=0000000000100030&sum=111000 [21:35:39]StoreToDocumentArchive [21:35:39]shift 461 fd 188510 [21:35:39]save to /storage/0461/doc_00188510 [21:35:39]save last doc name /storage/0461/doc_00188510 to /storage/kkm_last_doc_name [21:35:39]save OK [21:35:39]Clear old archive folders... [21:35:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:35:39]tlvbuf is 008C0090 [21:35:39]SAM_PROTO_ClearQueue [21:35:39]wFMCommunicate request_size=4 [21:35:39]MH_SAM_APDU [21:35:39]CAPDU: 80 09 00 00 [21:35:39]Write to MH i2c: E2 08 00 4A 02 80 09 00 00 00 00 00 00 BE [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:35:39]Read from MH i2c: E2 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 4A 02 00 90 00 C0 [21:35:39]RAPDU: 90 00 [21:35:39]wFMCommunicate OK [21:35:39]SAM_PROTO_ClearQueue done [21:35:39]KKMCreateOFDPacket [21:35:39]OFDProtocolAddRootSTLVToBuf [21:35:39]FM_MakeSignedData [21:35:39]FM_MakeSignedData [21:35:39]SAM_PROTO_SignData [21:35:39]wFMCommunicate request_size=4 [21:35:39]MH_SAM_APDU [21:35:39]CAPDU: 80 0D 01 02 [21:35:39]Write to MH i2c: E2 08 00 4B 02 80 0D 01 02 00 00 00 00 C6 [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:35:39]Read from MH i2c: E2 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 4B 02 00 90 00 C1 [21:35:39]RAPDU: 90 00 [21:35:39]wFMCommunicate OK [21:35:39]wFMCommunicate request_size=255 [21:35:39]MH_SAM_APDU [21:35: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 33 FF 03 08 00 03 D8 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 AB 1A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E0 02 00 35 04 06 00 13 [21:35:39]Write to MH i2c: E2 02 01 4C 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 33 FF 03 08 00 03 D8 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 AB 1A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E0 02 00 35 04 06 00 13 00 00 B7 [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:39]Read from MH i2c: E2 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 4C 02 00 90 00 C2 [21:35:39]RAPDU: 90 00 [21:35:39]wFMCommunicate OK [21:35:39]wFMCommunicate request_size=10 [21:35:39]MH_SAM_APDU [21:35:39]CAPDU: 80 0D 02 02 05 6C 5B 92 19 6F [21:35:39]Write to MH i2c: E2 0D 00 4D 02 80 0D 02 02 05 00 6C 5B 92 19 6F 00 00 B4 [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:35:39]Read from MH i2c: E2 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 03 00 4D 02 00 90 00 C3 [21:35:39]RAPDU: 90 00 [21:35:39]wFMCommunicate OK [21:35:39]wFMCommunicate request_size=4 [21:35:39]MH_SAM_APDU [21:35:39]CAPDU: 80 0D 03 02 [21:35:39]Write to MH i2c: E2 08 00 4E 02 80 0D 03 02 00 00 00 00 CB [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:35:39]Read from MH i2c: E2 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 0B 00 [21:35:39]MH_I2C_Read... [21:35:39]Read from MH i2c: E2 0B 00 4E 02 00 F7 F5 00 66 06 61 16 53 90 00 EE [21:35:39]RAPDU: F7 F5 00 66 06 61 16 53 90 00 [21:35:39]wFMCommunicate OK [21:35:39]SAM_PROTO_SignData done [21:35:39]FM_MakeSignedData done [21:35:39]CreateOFDProtocolMessage [21:35:39]wFMCommunicate request_size=4 [21:35:39]MH_SAM_APDU [21:35:39]CAPDU: 80 11 00 00 [21:35:39]Write to MH i2c: E2 08 00 4F 02 80 11 00 00 00 00 00 00 CB [21:35:39]Write i2c OK [21:35:39]MH_I2C_Read... [21:35:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:40]Read from MH i2c: E2 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: E2 17 00 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: E2 17 00 4F 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 19 [21:35:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:35:40]wFMCommunicate OK [21:35:40]CreateOFDProtocolMessage done [21:35:40]OFDSenderStorePacket 188510 [21:35:40]StoreOFDPacket docnum=188510 [21:35:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 92 07 01 5A 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 33 FF 03 08 00 03 D8 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 AB 1A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E0 02 00 35 04 06 00 13 6C 5B 92 19 6F F7 F5 00 66 06 61 16 53 [21:35:40]CheckFolder [21:35:40]dirname=/storage/ofd_packets [21:35:40]CheckFolder done [21:35:40]ProducePacketName [21:35:40]name=ofd_packets/00188510 [21:35:40]NVStorageSaveData ofd_packets/00188510 [21:35:40]File name is /storage/ofd_packets/00188510 [21:35:40]Write 301 bytes [21:35:40]NVStorageSaveData done [21:35:40]OFDSenderStorePacket done [21:35:40]KKMCreateOFDPacket done [21:35:40]NVStorageSaveData kkm_last_timestamp [21:35:40]File name is /storage/kkm_last_timestamp [21:35:40]Write 4 bytes [21:35:40]NVStorageSaveData done [21:35:40]ExternCall_PrintAddStr [21:35:40]wPrintStart [21:35:40]Write to MH i2c: 01 00 00 50 02 52 [21:35:40]Write i2c OK [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: 01 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: 01 07 00 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: 01 07 00 50 02 00 00 00 00 00 FF 0F 67 [21:35:40]RasterBufferAndPrint [21:35:40]line Счет N : (1)210571 [21:35:40]line ИНН: 02508201610067 [21:35:40]line Контрольно-Кассовый Чек [21:35:40]line ПРОДАЖА [21:35:40]line ТРК (МРК, ГНК) : 12 [21:35:40]line Товар: 2710124130 [21:35:40]line Аи-92-К-3 [21:35:40]line 16.600 * 66.90 [21:35:40]line = 1110.54 [21:35:40]line НДС 12% НСП 1% [21:35:40]line > о реализуемом товаре [21:35:40]line ОКРУГЛЕНИЕ: -0.54 [21:35:40]line ИТОГО: 1110.00 [21:35:40]line Внесено: 1110.00 [21:35:40]line СДАЧА: 0.00 [21:35:40]line НСП 1% : 9.83 [21:35:40]line НДС 12% : 117.93 [21:35:40]line Наличными: 1110.00 [21:35:40]line Безнал.: 0.00 [21:35:40]line Место: АЗС № 86 "Партнер Нефть" [21:35:40]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:35:40]line СНО: Общий режим [21:35:40]line Чек 539 22.10.2024 21:35 [21:35:40]line Смена: 461 ФФД: 1.0 [21:35:40]line ЗНМ: 0300000155 [21:35:40]line РНМ: 0000000000100030 [21:35:40]line Версия ККМ: 001 [21:35:40]line ФМ: 0000000000965340 [21:35:40]line ФД: 188510 [21:35:40]line ФПД: 21356113697135 [21:35:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213539&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188510&fm=21356113697135&tin=02508201610067®Number=0000000000100030&sum=111000 [21:35:40]written 0, free lines is 4095 [21:35:40]OFD Sender: Processing packet 188510 [packets to send 1062, broken 1061] [21:35:40]ProducePacketName [21:35:40]name=ofd_packets/00188510 [21:35:40]OFD Sender: To server: pG, [21:35:40]CommunicateWithHost lk.salyk.kg:30040 [21:35:40]ConnectInit lk.salyk.kg [21:35:40]Write to MH i2c: 01 00 00 7B 02 7D [21:35:40]Write i2c OK [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: 01 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: 01 07 00 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: 01 07 00 7B 02 00 00 00 00 00 5C 0C EC [21:35:40]RasterBufferAndPrint [21:35:40]line [21:35:40]line [21:35:40]line [21:35:40]line [21:35:40]line [21:35:40]written 0, free lines is 3167 [21:35:40]MH_Cut [21:35:40]Write to MH i2c: D1 01 00 82 02 01 56 [21:35:40]Write i2c OK [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: D1 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: D1 01 00 [21:35:40]MH_I2C_Read... [21:35:40]Read from MH i2c: D1 01 00 82 02 00 55 [21:35:40]Write to MH i2c: 01 00 00 83 02 85 [21:35:40]Write i2c OK [21:35:40]MH_I2C_Read... [21:35:40]Connected sock=10 [21:35:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F0 92 07 01 5A 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 33 FF 03 08 00 03 D8 40 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 CE B1 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 B1 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 11 2E 00 00 00 00 07 04 06 00 98 B1 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 02 00 00 F4 03 04 00 AB 1A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E0 02 00 35 04 06 00 13 6C 5B 92 19 6F F7 F5 00 66 06 61 16 53 [21:35:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C3 DF 47 00 EC F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5E E0 02 00 F4 03 04 00 97 C4 17 67 B6 04 01 00 00 92 40 7A 0C 19 AA 94 F7 [21:35:41]CommunicateWithHost err = 0 [21:35:41]CheckOFDResponse [21:35:41]1017 (14) - 77093643461234 [21:35:41]1041 (16) - 0000000000965340 [21:35:41]1040 (4) - 188510 [21:35:41]1012 (4) - 22.10.2024 15:28 [21:35:41]1206 (1) - 0 [21:35:41]OFD Sender: Remove packet 188510 [21:35:41]ProducePacketName [21:35:41]name=ofd_packets/00188510 [21:35:41]NVStorageDeleteData [21:35:41]OFD Sender: No OFD packet to send [21:35:41]*** Cut start [21:35:41]*** Partial cut [21:35:41]*** CUTSNS_PIN = 1 [21:35:41]*** CUTSNS_PIN = 0 [21:35:42]*** Brake cut motor [21:35:42]Read from MH i2c: 01 [21:35:42]MH_I2C_Read... [21:35:42]*** Stop cut motor [21:35:42]*** Cut end [21:35:42]Read from MH i2c: 01 07 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: 01 07 00 83 02 00 00 00 00 00 FF 0F 9A [21:35:42]process_action close_receipt done [21:35:42]requested_data is exist [21:35:42]produce_requested_data [21:35:42]requested_item fm.sn is exist - process it [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 11 00 00 [21:35:42]Write to MH i2c: E2 08 00 84 02 80 11 00 00 00 00 00 00 00 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 17 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 17 00 84 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [21:35:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:35:42]wFMCommunicate OK [21:35:42]requested_item fd.num is exist - process it [21:35:42]SAM_PROTO_GetFieldsCounters [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 13 00 00 [21:35:42]Write to MH i2c: E2 08 00 85 02 80 13 00 00 00 00 00 00 03 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 62 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 62 00 85 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1B 02 00 00 5E 04 04 00 1B 02 00 00 57 04 04 00 1C 02 00 00 19 04 04 00 00 00 00 00 90 00 6F [21:35:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1B 02 00 00 5E 04 04 00 1B 02 00 00 57 04 04 00 1C 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:35:42]wFMCommunicate OK [21:35:42]SAM_PROTO_GetFieldsCounters done [21:35:42]requested_item shift.num is exist - process it [21:35:42]requested_item shift.opened is exist - process it [21:35:42]req_shift_opened [21:35:42]FM_GetShiftState [21:35:42]SAM_PROTO_GetShiftState [21:35:42]wFMCommunicate request_size=4 [21:35:42]MH_SAM_APDU [21:35:42]CAPDU: 80 13 01 00 [21:35:42]Write to MH i2c: E2 08 00 86 02 80 13 01 00 00 00 00 00 05 [21:35:42]Write i2c OK [21:35:42]MH_I2C_Read... [21:35:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:35:42]Read from MH i2c: E2 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 0E 00 [21:35:42]MH_I2C_Read... [21:35:42]Read from MH i2c: E2 0E 00 86 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FA [21:35:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:35:42]wFMCommunicate OK [21:35:42]SAM_PROTO_GetShiftState done [21:35:42]FM_GetShiftState done [21:35:42]req_shift_opened done [21:35:42]requested_item shift.open_date is exist - process it [21:35:42]req_shift_open_date [21:35:42]req_shift_open_date done [21:35:42]produce_requested_data done [21:35:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188510,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:35:42]process_action_free close_receipt [21:35:42]json_value_free [21:35:42]json_value_free done [21:35:42]process_json_proto returns [21:35:42]Send response to host [21:35:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188510,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:35:42]free response buf [21:35:42]execute_script done [21:35:42]execute_script returns [21:35:42]free content buf [21:35:42]Sock 7.Close socket [21:35:42]Sock 7.Thread stoped [21:35:46]OFD Sender: No OFD packet to send [21:35:51]OFD Sender: No OFD packet to send [21:35:56]OFD Sender: No OFD packet to send [21:36:01]OFD Sender: No OFD packet to send [21:36:06]OFD Sender: No OFD packet to send [21:36:11]OFD Sender: No OFD packet to send [21:36:16]OFD Sender: No OFD packet to send [21:36:21]OFD Sender: No OFD packet to send [21:36:26]OFD Sender: No OFD packet to send [21:36:31]OFD Sender: No OFD packet to send [21:36:36]OFD Sender: No OFD packet to send [21:36:41]OFD Sender: No OFD packet to send [21:36:46]OFD Sender: No OFD packet to send [21:36:51]OFD Sender: No OFD packet to send [21:36:57]OFD Sender: No OFD packet to send [21:37:02]OFD Sender: No OFD packet to send [21:37:07]OFD Sender: No OFD packet to send [21:37:12]OFD Sender: No OFD packet to send [21:37:17]OFD Sender: No OFD packet to send [21:37:22]OFD Sender: No OFD packet to send [21:37:27]OFD Sender: No OFD packet to send [21:37:32]OFD Sender: No OFD packet to send [21:37:37]OFD Sender: No OFD packet to send [21:37:42]OFD Sender: No OFD packet to send [21:37:47]OFD Sender: No OFD packet to send [21:37:52]OFD Sender: No OFD packet to send [21:37:57]OFD Sender: No OFD packet to send [21:37:57]accept exits with 9 [21:37:57]New connection [21:37:57]New thread 3066506596 created [21:37:57]Thread 3066649956 joined [21:37:57]Waiting for new connection... [21:37:57] Sock 9.Parse request [21:37:57]Sock 9.Check first char [21:37:57]Sock 9.First char is OK [21:37:57]request: POST /json_proto HTTP/1.0 [21:37:57]Method: POST [21:37:57]URL: /json_proto [21:37:57]Method is POST - this is cgi request [21:37:57]url: /json_proto [21:37:57]query_string will be loaded in cgi processing [21:37:57]execute_cgi json_proto POST (null) [21:37:57]execute_cgi path=json_proto method=POST [21:37:57]POST find Content-Length [21:37:57]Host: 172.17.42.131:8080 [21:37:57]Content-Length: 775 [21:37:57]Content-Type: application/json [21:37:57] [21:37:57]POST finish read [21:37:57]Found Content-Length = 775 [21:37:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:57]execute_script... [21:37: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)210572", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 51.820, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 4000.50 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:37:57]POST & json_proto [21:37:57]process_json_proto [21:37:57]json parsed OK: [21:37:57]protocol is kg_v1.0 [21:37:57]action value=close_receipt [21:37:57]process_action close_receipt [21:37:57]cmd_close_receipt [21:37:57]MH_GetDate [21:37:57]Write to MH i2c: F0 00 00 87 02 78 [21:37:57]Write i2c OK [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: F0 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: F0 09 00 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: F0 09 00 87 02 00 36 1B 18 67 A0 18 CA 66 39 [21:37:57]GetLastDocTimeStamp 1729632939 [21:37:57]current date 1729633078 [21:37:57]FM_GetShiftState [21:37:57]SAM_PROTO_GetShiftState [21:37:57]wFMCommunicate request_size=4 [21:37:57]MH_SAM_APDU [21:37:57]CAPDU: 80 13 01 00 [21:37:57]Write to MH i2c: E2 08 00 88 02 80 13 01 00 00 00 00 00 07 [21:37:57]Write i2c OK [21:37:57]MH_I2C_Read... [21:37:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:37:57]Read from MH i2c: E2 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: E2 0E 00 [21:37:57]MH_I2C_Read... [21:37:57]Read from MH i2c: E2 0E 00 88 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FC [21:37:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:37:57]wFMCommunicate OK [21:37:57]SAM_PROTO_GetShiftState done [21:37:57]FM_GetShiftState done [21:37:57]opened in 1729556094 [21:37:57]opened+sec_in_day 1729642494 [21:37:57]quantity*price = 400050 [21:37:57]sum+1 = 400051 [21:37:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4000.50 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 0.00 Безнал.: 4000.50 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 540 22.10.2024 21:37 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188511 ФПД: 40945875939225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188511&fm=40945875939225&tin=02508201610067®Number=0000000000100030&sum=400050 [21:37:58]StoreToDocumentArchive [21:37:58]shift 461 fd 188511 [21:37:58]save to /storage/0461/doc_00188511 [21:37:58]save last doc name /storage/0461/doc_00188511 to /storage/kkm_last_doc_name [21:37:58]save OK [21:37:58]Clear old archive folders... [21:37:58]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:37:58]tlvbuf is 00909730 [21:37:58]SAM_PROTO_ClearQueue [21:37:58]wFMCommunicate request_size=4 [21:37:58]MH_SAM_APDU [21:37:58]CAPDU: 80 09 00 00 [21:37:58]Write to MH i2c: E2 08 00 95 02 80 09 00 00 00 00 00 00 09 [21:37:58]Write i2c OK [21:37:58]MH_I2C_Read... [21:37:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:37:58]Read from MH i2c: E2 [21:37:58]MH_I2C_Read... [21:37:58]Read from MH i2c: E2 03 00 [21:37:58]MH_I2C_Read... [21:37:58]Read from MH i2c: E2 03 00 95 02 00 90 00 0B [21:37:58]RAPDU: 90 00 [21:37:58]wFMCommunicate OK [21:37:58]SAM_PROTO_ClearQueue done [21:37:58]KKMCreateOFDPacket [21:37:58]OFDProtocolAddRootSTLVToBuf [21:37:58]FM_MakeSignedData [21:37:58]FM_MakeSignedData [21:37:58]SAM_PROTO_SignData [21:37:58]wFMCommunicate request_size=4 [21:37:58]MH_SAM_APDU [21:37:58]CAPDU: 80 0D 01 02 [21:37:58]Write to MH i2c: E2 08 00 96 02 80 0D 01 02 00 00 00 00 11 [21:37:58]Write i2c OK [21:37:58]MH_I2C_Read... [21:37:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:37:58]Read from MH i2c: E2 [21:37:58]MH_I2C_Read... [21:37:58]Read from MH i2c: E2 03 00 [21:37:58]MH_I2C_Read... [21:37:58]Read from MH i2c: E2 03 00 96 02 00 90 00 0C [21:37:58]RAPDU: 90 00 [21:37:58]wFMCommunicate OK [21:37:58]wFMCommunicate request_size=255 [21:37:58]MH_SAM_APDU [21:37:58]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 36 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E0 02 [21:37:58]Write to MH i2c: E2 02 01 97 02 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 36 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E0 02 00 00 F4 [21:37:58]Write i2c OK [21:37:58]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 03 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 03 00 97 02 00 90 00 0D [21:37:59]RAPDU: 90 00 [21:37:59]wFMCommunicate OK [21:37:59]wFMCommunicate request_size=16 [21:37:59]MH_SAM_APDU [21:37:59]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 25 3D 74 63 EF 99 [21:37:59]Write to MH i2c: E2 13 00 98 02 80 0D 02 02 0B 00 00 35 04 06 00 25 3D 74 63 EF 99 00 00 2A [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 03 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 03 00 98 02 00 90 00 0E [21:37:59]RAPDU: 90 00 [21:37:59]wFMCommunicate OK [21:37:59]wFMCommunicate request_size=4 [21:37:59]MH_SAM_APDU [21:37:59]CAPDU: 80 0D 03 02 [21:37:59]Write to MH i2c: E2 08 00 99 02 80 0D 03 02 00 00 00 00 16 [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 0B 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 0B 00 99 02 00 C2 55 4A 8D 28 01 01 8B 90 00 BA [21:37:59]RAPDU: C2 55 4A 8D 28 01 01 8B 90 00 [21:37:59]wFMCommunicate OK [21:37:59]SAM_PROTO_SignData done [21:37:59]FM_MakeSignedData done [21:37:59]CreateOFDProtocolMessage [21:37:59]wFMCommunicate request_size=4 [21:37:59]MH_SAM_APDU [21:37:59]CAPDU: 80 11 00 00 [21:37:59]Write to MH i2c: E2 08 00 9A 02 80 11 00 00 00 00 00 00 16 [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:37:59]Read from MH i2c: E2 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 17 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: E2 17 00 9A 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 64 [21:37:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:37:59]wFMCommunicate OK [21:37:59]CreateOFDProtocolMessage done [21:37:59]OFDSenderStorePacket 188511 [21:37:59]StoreOFDPacket docnum=188511 [21:37:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EF 98 0D 01 09 A3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 36 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E0 02 00 35 04 06 00 25 3D 74 63 EF 99 C2 55 4A 8D 28 01 01 8B [21:37:59]CheckFolder [21:37:59]dirname=/storage/ofd_packets [21:37:59]CheckFolder done [21:37:59]ProducePacketName [21:37:59]name=ofd_packets/00188511 [21:37:59]NVStorageSaveData ofd_packets/00188511 [21:37:59]File name is /storage/ofd_packets/00188511 [21:37:59]Write 307 bytes [21:37:59]NVStorageSaveData done [21:37:59]OFDSenderStorePacket done [21:37:59]KKMCreateOFDPacket done [21:37:59]NVStorageSaveData kkm_last_timestamp [21:37:59]File name is /storage/kkm_last_timestamp [21:37:59]Write 4 bytes [21:37:59]NVStorageSaveData done [21:37:59]ExternCall_PrintAddStr [21:37:59]wPrintStart [21:37:59]Write to MH i2c: 01 00 00 9B 02 9D [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 07 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 07 00 9B 02 00 00 00 00 00 FF 0F B2 [21:37:59]RasterBufferAndPrint [21:37:59]line Счет N : (1)210572 [21:37:59]line ИНН: 02508201610067 [21:37:59]line Контрольно-Кассовый Чек [21:37:59]line ПРОДАЖА [21:37:59]line ТРК (МРК, ГНК) : 41 [21:37:59]line Товар: 2710194210 [21:37:59]line D-ENERGY ДТ-К-5 [21:37:59]line 51.820 * 77.20 [21:37:59]line = 4000.50 [21:37:59]line НДС 12% НСП 1% [21:37:59]line > о реализуемом товаре [21:37:59]line ИТОГО: 4000.50 [21:37:59]line НСП 1% : 35.40 [21:37:59]line НДС 12% : 424.83 [21:37:59]line Наличными: 0.00 [21:37:59]line Безнал.: 4000.50 [21:37:59]line Место: АЗС № 86 "Партнер Нефть" [21:37:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:37:59]line СНО: Общий режим [21:37:59]line Чек 540 22.10.2024 21:37 [21:37:59]line Смена: 461 ФФД: 1.0 [21:37:59]line ЗНМ: 0300000155 [21:37:59]line РНМ: 0000000000100030 [21:37:59]line Версия ККМ: 001 [21:37:59]line Платежная система: Mbank [21:37:59]line ФМ: 0000000000965340 [21:37:59]line ФД: 188511 [21:37:59]line ФПД: 40945875939225 [21:37:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213758&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188511&fm=40945875939225&tin=02508201610067®Number=0000000000100030&sum=400050 [21:37:59]written 0, free lines is 4095 [21:37:59]OFD Sender: Processing packet 188511 [packets to send 1062, broken 1061] [21:37:59]ProducePacketName [21:37:59]name=ofd_packets/00188511 [21:37:59]OFD Sender: To server: pG, [21:37:59]CommunicateWithHost lk.salyk.kg:30040 [21:37:59]ConnectInit lk.salyk.kg [21:37:59]Connected sock=10 [21:37:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 EF 98 0D 01 09 A3 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 6C CA 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B2 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B2 1A 06 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 02 00 00 F4 03 04 00 36 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E0 02 00 35 04 06 00 25 3D 74 63 EF 99 C2 55 4A 8D 28 01 01 8B [21:37:59]Write to MH i2c: 01 00 00 C4 02 C6 [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 07 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: 01 07 00 C4 02 00 00 00 00 00 92 0C 6B [21:37:59]RasterBufferAndPrint [21:37:59]line [21:37:59]line [21:37:59]line [21:37:59]line [21:37:59]line [21:37:59]written 0, free lines is 3222 [21:37:59]MH_Cut [21:37:59]Write to MH i2c: D1 01 00 CB 02 01 9F [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: D1 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: D1 01 00 [21:37:59]MH_I2C_Read... [21:37:59]Read from MH i2c: D1 01 00 CB 02 00 9E [21:37:59]Write to MH i2c: 01 00 00 CC 02 CE [21:37:59]Write i2c OK [21:37:59]MH_I2C_Read... [21:38:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9E 9C 47 00 FC FA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 5F E0 02 00 F4 03 04 00 22 C5 17 67 B6 04 01 00 00 03 58 B2 68 61 FD AD EA [21:38:00]CommunicateWithHost err = 0 [21:38:00]CheckOFDResponse [21:38:00]1017 (14) - 77093643461234 [21:38:00]1041 (16) - 0000000000965340 [21:38:00]1040 (4) - 188511 [21:38:00]1012 (4) - 22.10.2024 15:30 [21:38:00]1206 (1) - 0 [21:38:00]OFD Sender: Remove packet 188511 [21:38:00]ProducePacketName [21:38:00]name=ofd_packets/00188511 [21:38:00]NVStorageDeleteData [21:38:00]OFD Sender: No OFD packet to send [21:38:00]*** Cut start [21:38:00]*** Partial cut [21:38:00]*** CUTSNS_PIN = 1 [21:38:00]*** CUTSNS_PIN = 0 [21:38:01]*** Brake cut motor [21:38:01]Read from MH i2c: 01 [21:38:01]MH_I2C_Read... [21:38:01]*** Stop cut motor [21:38:01]*** Cut end [21:38:01]Read from MH i2c: 01 07 00 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: 01 07 00 CC 02 00 00 00 00 00 FF 0F E3 [21:38:01]process_action close_receipt done [21:38:01]requested_data is exist [21:38:01]produce_requested_data [21:38:01]requested_item fm.sn is exist - process it [21:38:01]wFMCommunicate request_size=4 [21:38:01]MH_SAM_APDU [21:38:01]CAPDU: 80 11 00 00 [21:38:01]Write to MH i2c: E2 08 00 CD 02 80 11 00 00 00 00 00 00 49 [21:38:01]Write i2c OK [21:38:01]MH_I2C_Read... [21:38:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:01]Read from MH i2c: E2 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: E2 17 00 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: E2 17 00 CD 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 97 [21:38:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:01]wFMCommunicate OK [21:38:01]requested_item fd.num is exist - process it [21:38:01]SAM_PROTO_GetFieldsCounters [21:38:01]wFMCommunicate request_size=4 [21:38:01]MH_SAM_APDU [21:38:01]CAPDU: 80 13 00 00 [21:38:01]Write to MH i2c: E2 08 00 CE 02 80 13 00 00 00 00 00 00 4C [21:38:01]Write i2c OK [21:38:01]MH_I2C_Read... [21:38:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:01]Read from MH i2c: E2 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: E2 62 00 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: E2 62 00 CE 02 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1C 02 00 00 5E 04 04 00 1C 02 00 00 57 04 04 00 1D 02 00 00 19 04 04 00 00 00 00 00 90 00 BC [21:38:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 5F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1C 02 00 00 5E 04 04 00 1C 02 00 00 57 04 04 00 1D 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:01]wFMCommunicate OK [21:38:01]SAM_PROTO_GetFieldsCounters done [21:38:01]requested_item shift.num is exist - process it [21:38:01]requested_item shift.opened is exist - process it [21:38:01]req_shift_opened [21:38:01]FM_GetShiftState [21:38:01]SAM_PROTO_GetShiftState [21:38:01]wFMCommunicate request_size=4 [21:38:01]MH_SAM_APDU [21:38:01]CAPDU: 80 13 01 00 [21:38:01]Write to MH i2c: E2 08 00 CF 02 80 13 01 00 00 00 00 00 4E [21:38:01]Write i2c OK [21:38:01]MH_I2C_Read... [21:38:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:01]Read from MH i2c: E2 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: E2 0E 00 [21:38:01]MH_I2C_Read... [21:38:01]Read from MH i2c: E2 0E 00 CF 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 43 [21:38:01]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:38:01]wFMCommunicate OK [21:38:01]SAM_PROTO_GetShiftState done [21:38:01]FM_GetShiftState done [21:38:01]req_shift_opened done [21:38:01]requested_item shift.open_date is exist - process it [21:38:01]req_shift_open_date [21:38:01]req_shift_open_date done [21:38:01]produce_requested_data done [21:38:01]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188511,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:38:01]process_action_free close_receipt [21:38:01]json_value_free [21:38:01]json_value_free done [21:38:01]process_json_proto returns [21:38:01]Send response to host [21:38:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188511,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:38:01]free response buf [21:38:01]execute_script done [21:38:01]execute_script returns [21:38:01]free content buf [21:38:01]Sock 9.Close socket [21:38:01]Sock 9.Thread stoped [21:38:05]OFD Sender: No OFD packet to send [21:38:10]OFD Sender: No OFD packet to send [21:38:15]OFD Sender: No OFD packet to send [21:38:16]accept exits with 7 [21:38:16]New connection [21:38:16]New thread 3066649956 created [21:38:16]Thread 3066506596 joined [21:38:16]Waiting for new connection... [21:38:16] Sock 7.Parse request [21:38:16]Sock 7.Check first char [21:38:16]Sock 7.First char is OK [21:38:16]request: POST /json_proto HTTP/1.0 [21:38:16]Method: POST [21:38:16]URL: /json_proto [21:38:16]Method is POST - this is cgi request [21:38:16]url: /json_proto [21:38:16]query_string will be loaded in cgi processing [21:38:16]execute_cgi json_proto POST (null) [21:38:16]execute_cgi path=json_proto method=POST [21:38:16]POST find Content-Length [21:38:16]Host: 172.17.42.131:8080 [21:38:16]Content-Length: 819 [21:38:16]Content-Type: application/json [21:38:16] [21:38:16]POST finish read [21:38:16]Found Content-Length = 819 [21:38:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210573", "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" : 33.700, "sum" : 2500.54, "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", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:16]execute_script... [21: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)210573", "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" : 33.700, "sum" : 2500.54, "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", "payments": [ { "type": 1, "sum" : 2500.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:38:16]POST & json_proto [21:38:16]process_json_proto [21:38:16]json parsed OK: [21:38:16]protocol is kg_v1.0 [21:38:16]action value=close_receipt [21:38:16]process_action close_receipt [21:38:16]cmd_close_receipt [21:38:16]MH_GetDate [21:38:16]Write to MH i2c: F0 00 00 D0 02 C1 [21:38:16]Write i2c OK [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: F0 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: F0 09 00 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: F0 09 00 D0 02 00 49 1B 18 67 A0 18 CA 66 95 [21:38:16]GetLastDocTimeStamp 1729633078 [21:38:16]current date 1729633097 [21:38:16]FM_GetShiftState [21:38:16]SAM_PROTO_GetShiftState [21:38:16]wFMCommunicate request_size=4 [21:38:16]MH_SAM_APDU [21:38:16]CAPDU: 80 13 01 00 [21:38:16]Write to MH i2c: E2 08 00 D1 02 80 13 01 00 00 00 00 00 50 [21:38:16]Write i2c OK [21:38:16]MH_I2C_Read... [21:38:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:16]Read from MH i2c: E2 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 0E 00 [21:38:16]MH_I2C_Read... [21:38:16]Read from MH i2c: E2 0E 00 D1 02 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 45 [21:38:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:38:16]wFMCommunicate OK [21:38:16]SAM_PROTO_GetShiftState done [21:38:16]FM_GetShiftState done [21:38:16]opened in 1729556094 [21:38:16]opened+sec_in_day 1729642494 [21:38:16]quantity*price = 250054 [21:38:16]sum+1 = 250055 [21:38:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2500.54 НСП 1% : 22.13 НДС 12% : 265.54 Наличными: 0.00 Безнал.: 2500.54 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 541 22.10.2024 21:38 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188512 ФПД: 162217166174298 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188512&fm=162217166174298&tin=02508201610067®Number=0000000000100030&sum=250054 [21:38:17]StoreToDocumentArchive [21:38:17]shift 461 fd 188512 [21:38:17]save to /storage/0461/doc_00188512 [21:38:17]save last doc name /storage/0461/doc_00188512 to /storage/kkm_last_doc_name [21:38:17]save OK [21:38:17]Clear old archive folders... [21:38:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:38:17]tlvbuf is 008D5DD0 [21:38:17]SAM_PROTO_ClearQueue [21:38:17]wFMCommunicate request_size=4 [21:38:17]MH_SAM_APDU [21:38:17]CAPDU: 80 09 00 00 [21:38:17]Write to MH i2c: E2 08 00 DE 02 80 09 00 00 00 00 00 00 52 [21:38:17]Write i2c OK [21:38:17]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 DE 02 00 90 00 54 [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]SAM_PROTO_ClearQueue done [21:38:18]KKMCreateOFDPacket [21:38:18]OFDProtocolAddRootSTLVToBuf [21:38:18]FM_MakeSignedData [21:38:18]FM_MakeSignedData [21:38:18]SAM_PROTO_SignData [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 0D 01 02 [21:38:18]Write to MH i2c: E2 08 00 DF 02 80 0D 01 02 00 00 00 00 5A [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 DF 02 00 90 00 55 [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]wFMCommunicate request_size=255 [21:38:18]MH_SAM_APDU [21:38: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 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 49 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E0 02 00 35 04 06 00 93 [21:38:18]Write to MH i2c: E2 02 01 E0 02 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 49 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E0 02 00 35 04 06 00 93 00 00 C9 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 E0 02 00 90 00 56 [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]wFMCommunicate request_size=10 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 0D 02 02 05 89 20 90 F8 5A [21:38:18]Write to MH i2c: E2 0D 00 E1 02 80 0D 02 02 05 00 89 20 90 F8 5A 00 00 F2 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 03 00 E1 02 00 90 00 57 [21:38:18]RAPDU: 90 00 [21:38:18]wFMCommunicate OK [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 0D 03 02 [21:38:18]Write to MH i2c: E2 08 00 E2 02 80 0D 03 02 00 00 00 00 5F [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 0B 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 0B 00 E2 02 00 52 A7 F0 8B B8 4E 48 A2 90 00 C4 [21:38:18]RAPDU: 52 A7 F0 8B B8 4E 48 A2 90 00 [21:38:18]wFMCommunicate OK [21:38:18]SAM_PROTO_SignData done [21:38:18]FM_MakeSignedData done [21:38:18]CreateOFDProtocolMessage [21:38:18]wFMCommunicate request_size=4 [21:38:18]MH_SAM_APDU [21:38:18]CAPDU: 80 11 00 00 [21:38:18]Write to MH i2c: E2 08 00 E3 02 80 11 00 00 00 00 00 00 5F [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:18]Read from MH i2c: E2 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 17 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: E2 17 00 E3 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AD [21:38:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:18]wFMCommunicate OK [21:38:18]CreateOFDProtocolMessage done [21:38:18]OFDSenderStorePacket 188512 [21:38:18]StoreOFDPacket docnum=188512 [21:38:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 37 07 01 B8 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 49 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E0 02 00 35 04 06 00 93 89 20 90 F8 5A 52 A7 F0 8B B8 4E 48 A2 [21:38:18]CheckFolder [21:38:18]dirname=/storage/ofd_packets [21:38:18]CheckFolder done [21:38:18]ProducePacketName [21:38:18]name=ofd_packets/00188512 [21:38:18]NVStorageSaveData ofd_packets/00188512 [21:38:18]File name is /storage/ofd_packets/00188512 [21:38:18]Write 301 bytes [21:38:18]NVStorageSaveData done [21:38:18]OFDSenderStorePacket done [21:38:18]KKMCreateOFDPacket done [21:38:18]NVStorageSaveData kkm_last_timestamp [21:38:18]File name is /storage/kkm_last_timestamp [21:38:18]Write 4 bytes [21:38:18]NVStorageSaveData done [21:38:18]ExternCall_PrintAddStr [21:38:18]wPrintStart [21:38:18]Write to MH i2c: 01 00 00 E4 02 E6 [21:38:18]Write i2c OK [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: 01 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: 01 07 00 [21:38:18]MH_I2C_Read... [21:38:18]Read from MH i2c: 01 07 00 E4 02 00 00 00 00 00 FF 0F FB [21:38:18]RasterBufferAndPrint [21:38:18]line Счет N : (1)210573 [21:38:18]line ИНН: 02508201610067 [21:38:18]line Контрольно-Кассовый Чек [21:38:18]line ПРОДАЖА [21:38:18]line ТРК (МРК, ГНК) : 33 [21:38:18]line Товар: 2710124500 [21:38:18]line Аи-95-К-3 [21:38:18]line 33.700 * 74.20 [21:38:18]line = 2500.54 [21:38:18]line НДС 12% НСП 1% [21:38:18]line > о реализуемом товаре [21:38:18]line ИТОГО: 2500.54 [21:38:18]line НСП 1% : 22.13 [21:38:18]line НДС 12% : 265.54 [21:38:18]line Наличными: 0.00 [21:38:18]line Безнал.: 2500.54 [21:38:18]line Место: АЗС № 86 "Партнер Нефть" [21:38:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:38:18]line СНО: Общий режим [21:38:18]line Чек 541 22.10.2024 21:38 [21:38:18]line Смена: 461 ФФД: 1.0 [21:38:18]line ЗНМ: 0300000155 [21:38:18]line РНМ: 0000000000100030 [21:38:18]line Версия ККМ: 001 [21:38:18]line Платежная система: Бакай Банк [21:38:18]line ФМ: 0000000000965340 [21:38:18]line ФД: 188512 [21:38:18]line ФПД: 162217166174298 [21:38:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T213817&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188512&fm=162217166174298&tin=02508201610067®Number=0000000000100030&sum=250054 [21:38:18]written 0, free lines is 4095 [21:38:18]OFD Sender: Processing packet 188512 [packets to send 1062, broken 1061] [21:38:18]ProducePacketName [21:38:18]name=ofd_packets/00188512 [21:38:18]OFD Sender: To server: pG, [21:38:18]CommunicateWithHost lk.salyk.kg:30040 [21:38:18]ConnectInit lk.salyk.kg [21:38:18]Connected sock=10 [21:38:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 37 07 01 B8 E8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A4 83 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 C6 D0 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C6 D0 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A5 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 BA 67 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 C6 D0 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 02 00 00 F4 03 04 00 49 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 60 E0 02 00 35 04 06 00 93 89 20 90 F8 5A 52 A7 F0 8B B8 4E 48 A2 [21:38:19]Write to MH i2c: 01 00 00 0E 03 11 [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: 01 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: 01 07 00 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: 01 07 00 0E 03 00 00 00 00 00 7F 0C A3 [21:38:19]RasterBufferAndPrint [21:38:19]line [21:38:19]line [21:38:19]line [21:38:19]line [21:38:19]line [21:38:19]written 0, free lines is 3203 [21:38:19]MH_Cut [21:38:19]Write to MH i2c: D1 01 00 15 03 01 EA [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: D1 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: D1 01 00 [21:38:19]MH_I2C_Read... [21:38:19]Read from MH i2c: D1 01 00 15 03 00 E9 [21:38:19]Write to MH i2c: 01 00 00 16 03 19 [21:38:19]Write i2c OK [21:38:19]MH_I2C_Read... [21:38:20]*** Cut start [21:38:20]*** Partial cut [21:38:20]*** CUTSNS_PIN = 1 [21:38:20]*** CUTSNS_PIN = 0 [21:38:20]*** Brake cut motor [21:38:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2C E2 47 00 4A 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 39 36 35 33 34 30 10 04 04 00 60 E0 02 00 F4 03 04 00 37 C5 17 67 B6 04 01 00 00 65 67 C7 C2 F0 A9 CC C8 [21:38:20]CommunicateWithHost err = 0 [21:38:20]CheckOFDResponse [21:38:20]1017 (14) - 77093643461234 [21:38:20]1041 (16) - 0000000000965340 [21:38:20]1040 (4) - 188512 [21:38:20]1012 (4) - 22.10.2024 15:31 [21:38:20]1206 (1) - 0 [21:38:20]OFD Sender: Remove packet 188512 [21:38:20]ProducePacketName [21:38:20]name=ofd_packets/00188512 [21:38:20]NVStorageDeleteData [21:38:20]Read from MH i2c: 01 [21:38:20]MH_I2C_Read... [21:38:20]*** Stop cut motor [21:38:20]*** Cut end [21:38:20]Read from MH i2c: 01 07 00 [21:38:20]MH_I2C_Read... [21:38:20]Read from MH i2c: 01 07 00 16 03 00 00 00 00 00 FF 0F 2E [21:38:20]process_action close_receipt done [21:38:20]requested_data is exist [21:38:20]produce_requested_data [21:38:20]requested_item fm.sn is exist - process it [21:38:20]wFMCommunicate request_size=4 [21:38:20]MH_SAM_APDU [21:38:20]CAPDU: 80 11 00 00 [21:38:20]Write to MH i2c: E2 08 00 17 03 80 11 00 00 00 00 00 00 94 [21:38:20]Write i2c OK [21:38:20]MH_I2C_Read... [21:38:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:38:20]Read from MH i2c: E2 [21:38:20]MH_I2C_Read... [21:38:20]Read from MH i2c: E2 17 00 [21:38:20]MH_I2C_Read... [21:38:20]Read from MH i2c: E2 17 00 17 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E2 [21:38:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:38:20]wFMCommunicate OK [21:38:20]requested_item fd.num is exist - process it [21:38:20]SAM_PROTO_GetFieldsCounters [21:38:20]wFMCommunicate request_size=4 [21:38:20]MH_SAM_APDU [21:38:20]CAPDU: 80 13 00 00 [21:38:20]Write to MH i2c: E2 08 00 18 03 80 13 00 00 00 00 00 00 97 [21:38:20]Write i2c OK [21:38:20]MH_I2C_Read... [21:38:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:38:21]Read from MH i2c: E2 [21:38:21]MH_I2C_Read... [21:38:21]Read from MH i2c: E2 62 00 [21:38:21]MH_I2C_Read... [21:38:21]Read from MH i2c: E2 62 00 18 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1D 02 00 00 5E 04 04 00 1D 02 00 00 57 04 04 00 1E 02 00 00 19 04 04 00 00 00 00 00 90 00 0B [21:38:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 60 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1D 02 00 00 5E 04 04 00 1D 02 00 00 57 04 04 00 1E 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:38:21]wFMCommunicate OK [21:38:21]SAM_PROTO_GetFieldsCounters done [21:38:21]requested_item shift.num is exist - process it [21:38:21]requested_item shift.opened is exist - process it [21:38:21]req_shift_opened [21:38:21]FM_GetShiftState [21:38:21]SAM_PROTO_GetShiftState [21:38:21]wFMCommunicate request_size=4 [21:38:21]MH_SAM_APDU [21:38:21]CAPDU: 80 13 01 00 [21:38:21]Write to MH i2c: E2 08 00 19 03 80 13 01 00 00 00 00 00 99 [21:38:21]Write i2c OK [21:38:21]MH_I2C_Read... [21:38:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:38:21]Read from MH i2c: E2 [21:38:21]MH_I2C_Read... [21:38:21]Read from MH i2c: E2 0E 00 [21:38:21]MH_I2C_Read... [21:38:21]Read from MH i2c: E2 0E 00 19 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 8E [21:38:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:38:21]wFMCommunicate OK [21:38:21]SAM_PROTO_GetShiftState done [21:38:21]FM_GetShiftState done [21:38:21]req_shift_opened done [21:38:21]requested_item shift.open_date is exist - process it [21:38:21]req_shift_open_date [21:38:21]req_shift_open_date done [21:38:21]produce_requested_data done [21:38:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188512,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:38:21]process_action_free close_receipt [21:38:21]json_value_free [21:38:21]json_value_free done [21:38:21]process_json_proto returns [21:38:21]Send response to host [21:38:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188512,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:38:21]free response buf [21:38:21]execute_script done [21:38:21]execute_script returns [21:38:21]free content buf [21:38:21]Sock 7.Close socket [21:38:21]Sock 7.Thread stoped [21:38:21]OFD Sender: No OFD packet to send [21:38:26]OFD Sender: No OFD packet to send [21:38:31]OFD Sender: No OFD packet to send [21:38:36]OFD Sender: No OFD packet to send [21:38:38]recv_with_timeout no data received [21:38:41]OFD Sender: No OFD packet to send [21:38:46]OFD Sender: No OFD packet to send [21:38:51]OFD Sender: No OFD packet to send [21:38:56]OFD Sender: No OFD packet to send [21:39:01]OFD Sender: No OFD packet to send [21:39:06]OFD Sender: No OFD packet to send [21:39:11]OFD Sender: No OFD packet to send [21:39:16]OFD Sender: No OFD packet to send [21:39:21]OFD Sender: No OFD packet to send [21:39:26]OFD Sender: No OFD packet to send [21:39:31]OFD Sender: No OFD packet to send [21:39:36]OFD Sender: No OFD packet to send [21:39:41]OFD Sender: No OFD packet to send [21:39:46]OFD Sender: No OFD packet to send [21:39:51]OFD Sender: No OFD packet to send [21:39:56]OFD Sender: No OFD packet to send [21:40:01]OFD Sender: No OFD packet to send [21:40:06]OFD Sender: No OFD packet to send [21:40:11]OFD Sender: No OFD packet to send [21:40:16]OFD Sender: No OFD packet to send [21:40:21]OFD Sender: No OFD packet to send [21:40:26]OFD Sender: No OFD packet to send [21:40:31]OFD Sender: No OFD packet to send [21:40:36]OFD Sender: No OFD packet to send [21:40:41]OFD Sender: No OFD packet to send [21:40:46]OFD Sender: No OFD packet to send [21:40:51]OFD Sender: No OFD packet to send [21:40:56]OFD Sender: No OFD packet to send [21:41:01]OFD Sender: No OFD packet to send [21:41:06]OFD Sender: No OFD packet to send [21:41:11]OFD Sender: No OFD packet to send [21:41:16]OFD Sender: No OFD packet to send [21:41:17]accept exits with 9 [21:41:17]New connection [21:41:17]New thread 3066506596 created [21:41:17]Thread 3066649956 joined [21:41:17]Waiting for new connection... [21:41:17] Sock 9.Parse request [21:41:17]Sock 9.Check first char [21:41:17]Sock 9.First char is OK [21:41:17]request: POST /json_proto HTTP/1.0 [21:41:17]Method: POST [21:41:17]URL: /json_proto [21:41:17]Method is POST - this is cgi request [21:41:17]url: /json_proto [21:41:17]query_string will be loaded in cgi processing [21:41:17]execute_cgi json_proto POST (null) [21:41:17]execute_cgi path=json_proto method=POST [21:41:17]POST find Content-Length [21:41:17]Host: 172.17.42.131:8080 [21:41:17]Content-Length: 682 [21:41:17]Content-Type: application/json [21:41:17] [21:41:17]POST finish read [21:41:17]Found Content-Length = 682 [21:41:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210574", "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" ] } } [21:41:17]execute_script... [21:41: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)210574", "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" ] } } [21:41:17]POST & json_proto [21:41:17]process_json_proto [21:41:17]json parsed OK: [21:41:17]protocol is kg_v1.0 [21:41:17]action value=close_receipt [21:41:17]process_action close_receipt [21:41:17]cmd_close_receipt [21:41:17]MH_GetDate [21:41:17]Write to MH i2c: F0 00 00 1A 03 0C [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: F0 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: F0 09 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: F0 09 00 1A 03 00 FE 1B 18 67 A0 18 CA 66 95 [21:41:17]GetLastDocTimeStamp 1729633097 [21:41:17]current date 1729633278 [21:41:17]FM_GetShiftState [21:41:17]SAM_PROTO_GetShiftState [21:41:17]wFMCommunicate request_size=4 [21:41:17]MH_SAM_APDU [21:41:17]CAPDU: 80 13 01 00 [21:41:17]Write to MH i2c: E2 08 00 1B 03 80 13 01 00 00 00 00 00 9B [21:41:17]Write i2c OK [21:41:17]MH_I2C_Read... [21:41:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:17]Read from MH i2c: E2 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 0E 00 [21:41:17]MH_I2C_Read... [21:41:17]Read from MH i2c: E2 0E 00 1B 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 90 [21:41:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:41:17]wFMCommunicate OK [21:41:17]SAM_PROTO_GetShiftState done [21:41:17]FM_GetShiftState done [21:41:17]opened in 1729556094 [21:41:17]opened+sec_in_day 1729642494 [21:41:17]quantity*price = 100021 [21:41:17]sum+1 = 100023 [21:41:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 542 22.10.2024 21:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188513 ФПД: 219403981027858 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188513&fm=219403981027858&tin=02508201610067®Number=0000000000100030&sum=100000 [21:41:18]StoreToDocumentArchive [21:41:18]shift 461 fd 188513 [21:41:18]save to /storage/0461/doc_00188513 [21:41:18]save last doc name /storage/0461/doc_00188513 to /storage/kkm_last_doc_name [21:41:18]save OK [21:41:18]Clear old archive folders... [21:41:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:41:18]tlvbuf is 00901500 [21:41:18]SAM_PROTO_ClearQueue [21:41:18]wFMCommunicate request_size=4 [21:41:18]MH_SAM_APDU [21:41:18]CAPDU: 80 09 00 00 [21:41:18]Write to MH i2c: E2 08 00 28 03 80 09 00 00 00 00 00 00 9D [21:41:18]Write i2c OK [21:41:18]MH_I2C_Read... [21:41:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:18]Read from MH i2c: E2 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: E2 03 00 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: E2 03 00 28 03 00 90 00 9F [21:41:18]RAPDU: 90 00 [21:41:18]wFMCommunicate OK [21:41:18]SAM_PROTO_ClearQueue done [21:41:18]KKMCreateOFDPacket [21:41:18]OFDProtocolAddRootSTLVToBuf [21:41:18]FM_MakeSignedData [21:41:18]FM_MakeSignedData [21:41:18]SAM_PROTO_SignData [21:41:18]wFMCommunicate request_size=4 [21:41:18]MH_SAM_APDU [21:41:18]CAPDU: 80 0D 01 02 [21:41:18]Write to MH i2c: E2 08 00 29 03 80 0D 01 02 00 00 00 00 A5 [21:41:18]Write i2c OK [21:41:18]MH_I2C_Read... [21:41:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:18]Read from MH i2c: E2 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: E2 03 00 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: E2 03 00 29 03 00 90 00 A0 [21:41:18]RAPDU: 90 00 [21:41:18]wFMCommunicate OK [21:41:18]wFMCommunicate request_size=255 [21:41:18]MH_SAM_APDU [21:41: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 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 1E 02 00 00 F4 03 04 00 FE 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E0 02 00 35 04 06 00 C7 [21:41:18]Write to MH i2c: E2 02 01 2A 03 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 02 00 00 F4 03 04 00 FE 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E0 02 00 35 04 06 00 C7 00 00 C5 [21:41:18]Write i2c OK [21:41:18]MH_I2C_Read... [21:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:18]Read from MH i2c: E2 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: E2 03 00 [21:41:18]MH_I2C_Read... [21:41:18]Read from MH i2c: E2 03 00 2A 03 00 90 00 A1 [21:41:18]RAPDU: 90 00 [21:41:18]wFMCommunicate OK [21:41:18]wFMCommunicate request_size=10 [21:41:18]MH_SAM_APDU [21:41:18]CAPDU: 80 0D 02 02 05 8B F8 59 FA 12 [21:41:18]Write to MH i2c: E2 0D 00 2B 03 80 0D 02 02 05 00 8B F8 59 FA 12 00 00 9A [21:41:18]Write i2c OK [21:41:18]MH_I2C_Read... [21:41:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:19]Read from MH i2c: E2 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 03 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 03 00 2B 03 00 90 00 A2 [21:41:19]RAPDU: 90 00 [21:41:19]wFMCommunicate OK [21:41:19]wFMCommunicate request_size=4 [21:41:19]MH_SAM_APDU [21:41:19]CAPDU: 80 0D 03 02 [21:41:19]Write to MH i2c: E2 08 00 2C 03 80 0D 03 02 00 00 00 00 AA [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:19]Read from MH i2c: E2 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 0B 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 0B 00 2C 03 00 69 14 89 56 C3 D8 10 A1 90 00 53 [21:41:19]RAPDU: 69 14 89 56 C3 D8 10 A1 90 00 [21:41:19]wFMCommunicate OK [21:41:19]SAM_PROTO_SignData done [21:41:19]FM_MakeSignedData done [21:41:19]CreateOFDProtocolMessage [21:41:19]wFMCommunicate request_size=4 [21:41:19]MH_SAM_APDU [21:41:19]CAPDU: 80 11 00 00 [21:41:19]Write to MH i2c: E2 08 00 2D 03 80 11 00 00 00 00 00 00 AA [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:19]Read from MH i2c: E2 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 17 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: E2 17 00 2D 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [21:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:41:19]wFMCommunicate OK [21:41:19]CreateOFDProtocolMessage done [21:41:19]OFDSenderStorePacket 188513 [21:41:19]StoreOFDPacket docnum=188513 [21:41:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1B A4 07 01 0E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 02 00 00 F4 03 04 00 FE 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E0 02 00 35 04 06 00 C7 8B F8 59 FA 12 69 14 89 56 C3 D8 10 A1 [21:41:19]CheckFolder [21:41:19]dirname=/storage/ofd_packets [21:41:19]CheckFolder done [21:41:19]ProducePacketName [21:41:19]name=ofd_packets/00188513 [21:41:19]NVStorageSaveData ofd_packets/00188513 [21:41:19]File name is /storage/ofd_packets/00188513 [21:41:19]Write 301 bytes [21:41:19]NVStorageSaveData done [21:41:19]OFDSenderStorePacket done [21:41:19]KKMCreateOFDPacket done [21:41:19]NVStorageSaveData kkm_last_timestamp [21:41:19]File name is /storage/kkm_last_timestamp [21:41:19]Write 4 bytes [21:41:19]NVStorageSaveData done [21:41:19]ExternCall_PrintAddStr [21:41:19]wPrintStart [21:41:19]Write to MH i2c: 01 00 00 2E 03 31 [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 07 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 07 00 2E 03 00 00 00 00 00 FF 0F 46 [21:41:19]RasterBufferAndPrint [21:41:19]line Счет N : (1)210574 [21:41:19]line ИНН: 02508201610067 [21:41:19]line Контрольно-Кассовый Чек [21:41:19]line ПРОДАЖА [21:41:19]line ТРК (МРК, ГНК) : 33 [21:41:19]line Товар: 2710124500 [21:41:19]line Аи-95-К-3 [21:41:19]line 13.480 * 74.20 [21:41:19]line = 1000.22 [21:41:19]line НДС 12% НСП 1% [21:41:19]line > о реализуемом товаре [21:41:19]line ОКРУГЛЕНИЕ: -0.22 [21:41:19]line ИТОГО: 1000.00 [21:41:19]line Внесено: 1000.00 [21:41:19]line СДАЧА: 0.00 [21:41:19]line НСП 1% : 8.85 [21:41:19]line НДС 12% : 106.22 [21:41:19]line Наличными: 1000.00 [21:41:19]line Безнал.: 0.00 [21:41:19]line Место: АЗС № 86 "Партнер Нефть" [21:41:19]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:41:19]line СНО: Общий режим [21:41:19]line Чек 542 22.10.2024 21:41 [21:41:19]line Смена: 461 ФФД: 1.0 [21:41:19]line ЗНМ: 0300000155 [21:41:19]line РНМ: 0000000000100030 [21:41:19]line Версия ККМ: 001 [21:41:19]line ФМ: 0000000000965340 [21:41:19]line ФД: 188513 [21:41:19]line ФПД: 219403981027858 [21:41:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214118&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188513&fm=219403981027858&tin=02508201610067®Number=0000000000100030&sum=100000 [21:41:19]written 0, free lines is 4095 [21:41:19]OFD Sender: Processing packet 188513 [packets to send 1062, broken 1061] [21:41:19]ProducePacketName [21:41:19]name=ofd_packets/00188513 [21:41:19]OFD Sender: To server: pG, [21:41:19]CommunicateWithHost lk.salyk.kg:30040 [21:41:19]ConnectInit lk.salyk.kg [21:41:19]Connected sock=10 [21:41:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1B A4 07 01 0E 05 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 1E 02 00 00 F4 03 04 00 FE 1B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 61 E0 02 00 35 04 06 00 C7 8B F8 59 FA 12 69 14 89 56 C3 D8 10 A1 [21:41:19]Write to MH i2c: 01 00 00 59 03 5C [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 07 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: 01 07 00 59 03 00 00 00 00 00 5E 0C CD [21:41:19]RasterBufferAndPrint [21:41:19]line [21:41:19]line [21:41:19]line [21:41:19]line [21:41:19]line [21:41:19]written 0, free lines is 3169 [21:41:19]MH_Cut [21:41:19]Write to MH i2c: D1 01 00 60 03 01 35 [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: D1 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: D1 01 00 [21:41:19]MH_I2C_Read... [21:41:19]Read from MH i2c: D1 01 00 60 03 00 34 [21:41:19]Write to MH i2c: 01 00 00 61 03 64 [21:41:19]Write i2c OK [21:41:19]MH_I2C_Read... [21:41:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 17 B6 47 00 76 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 39 36 35 33 34 30 10 04 04 00 61 E0 02 00 F4 03 04 00 EA C5 17 67 B6 04 01 00 00 C4 4A 13 EE 44 81 14 F1 [21:41:19]CommunicateWithHost err = 0 [21:41:19]CheckOFDResponse [21:41:19]1017 (14) - 77093643461234 [21:41:19]1041 (16) - 0000000000965340 [21:41:19]1040 (4) - 188513 [21:41:19]1012 (4) - 22.10.2024 15:34 [21:41:19]1206 (1) - 0 [21:41:19]OFD Sender: Remove packet 188513 [21:41:19]ProducePacketName [21:41:19]name=ofd_packets/00188513 [21:41:19]NVStorageDeleteData [21:41:20]OFD Sender: No OFD packet to send [21:41:20]*** Cut start [21:41:20]*** Partial cut [21:41:20]*** CUTSNS_PIN = 1 [21:41:20]*** CUTSNS_PIN = 0 [21:41:21]*** Brake cut motor [21:41:21]Read from MH i2c: 01 [21:41:21]MH_I2C_Read... [21:41:21]*** Stop cut motor [21:41:21]*** Cut end [21:41:21]Read from MH i2c: 01 07 00 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: 01 07 00 61 03 00 00 00 00 00 FF 0F 79 [21:41:21]process_action close_receipt done [21:41:21]requested_data is exist [21:41:21]produce_requested_data [21:41:21]requested_item fm.sn is exist - process it [21:41:21]wFMCommunicate request_size=4 [21:41:21]MH_SAM_APDU [21:41:21]CAPDU: 80 11 00 00 [21:41:21]Write to MH i2c: E2 08 00 62 03 80 11 00 00 00 00 00 00 DF [21:41:21]Write i2c OK [21:41:21]MH_I2C_Read... [21:41:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:21]Read from MH i2c: E2 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: E2 17 00 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: E2 17 00 62 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2D [21:41:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:41:21]wFMCommunicate OK [21:41:21]requested_item fd.num is exist - process it [21:41:21]SAM_PROTO_GetFieldsCounters [21:41:21]wFMCommunicate request_size=4 [21:41:21]MH_SAM_APDU [21:41:21]CAPDU: 80 13 00 00 [21:41:21]Write to MH i2c: E2 08 00 63 03 80 13 00 00 00 00 00 00 E2 [21:41:21]Write i2c OK [21:41:21]MH_I2C_Read... [21:41:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:41:21]Read from MH i2c: E2 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: E2 62 00 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: E2 62 00 63 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1E 02 00 00 5E 04 04 00 1E 02 00 00 57 04 04 00 1F 02 00 00 19 04 04 00 00 00 00 00 90 00 5A [21:41:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 61 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1E 02 00 00 5E 04 04 00 1E 02 00 00 57 04 04 00 1F 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:41:21]wFMCommunicate OK [21:41:21]SAM_PROTO_GetFieldsCounters done [21:41:21]requested_item shift.num is exist - process it [21:41:21]requested_item shift.opened is exist - process it [21:41:21]req_shift_opened [21:41:21]FM_GetShiftState [21:41:21]SAM_PROTO_GetShiftState [21:41:21]wFMCommunicate request_size=4 [21:41:21]MH_SAM_APDU [21:41:21]CAPDU: 80 13 01 00 [21:41:21]Write to MH i2c: E2 08 00 64 03 80 13 01 00 00 00 00 00 E4 [21:41:21]Write i2c OK [21:41:21]MH_I2C_Read... [21:41:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:21]Read from MH i2c: E2 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: E2 0E 00 [21:41:21]MH_I2C_Read... [21:41:21]Read from MH i2c: E2 0E 00 64 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D9 [21:41:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:41:21]wFMCommunicate OK [21:41:21]SAM_PROTO_GetShiftState done [21:41:21]FM_GetShiftState done [21:41:21]req_shift_opened done [21:41:21]requested_item shift.open_date is exist - process it [21:41:21]req_shift_open_date [21:41:21]req_shift_open_date done [21:41:21]produce_requested_data done [21:41:21]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188513,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:41:21]process_action_free close_receipt [21:41:21]json_value_free [21:41:21]json_value_free done [21:41:21]process_json_proto returns [21:41:21]Send response to host [21:41:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188513,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:41:21]free response buf [21:41:21]execute_script done [21:41:21]execute_script returns [21:41:21]free content buf [21:41:21]Sock 9.Close socket [21:41:21]Sock 9.Thread stoped [21:41:25]OFD Sender: No OFD packet to send [21:41:30]OFD Sender: No OFD packet to send [21:41:35]OFD Sender: No OFD packet to send [21:41:40]OFD Sender: No OFD packet to send [21:41:45]OFD Sender: No OFD packet to send [21:41:50]OFD Sender: No OFD packet to send [21:41:55]OFD Sender: No OFD packet to send [21:41:58]accept exits with 7 [21:41:58]New connection [21:41:58]New thread 3066649956 created [21:41:58]Thread 3066506596 joined [21:41:58]Waiting for new connection... [21:41:58] Sock 7.Parse request [21:41:58]Sock 7.Check first char [21:41:58]Sock 7.First char is OK [21:41:58]request: POST /json_proto HTTP/1.0 [21:41:58]Method: POST [21:41:58]URL: /json_proto [21:41:58]Method is POST - this is cgi request [21:41:58]url: /json_proto [21:41:58]query_string will be loaded in cgi processing [21:41:58]execute_cgi json_proto POST (null) [21:41:58]execute_cgi path=json_proto method=POST [21:41:58]POST find Content-Length [21:41:58]Host: 172.17.42.131:8080 [21:41:58]Content-Length: 679 [21:41:58]Content-Type: application/json [21:41:58] [21:41:58]POST finish read [21:41:58]Found Content-Length = 679 [21:41:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:58]execute_script... [21:41: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)210575", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 45.940, "sum" : 3500.63, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3500.00, "total" : 3500.00, "payments": [ { "type": 0, "sum" : 3500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:41:58]POST & json_proto [21:41:58]process_json_proto [21:41:58]json parsed OK: [21:41:58]protocol is kg_v1.0 [21:41:58]action value=close_receipt [21:41:58]process_action close_receipt [21:41:58]cmd_close_receipt [21:41:58]MH_GetDate [21:41:58]Write to MH i2c: F0 00 00 65 03 57 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: F0 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: F0 09 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: F0 09 00 65 03 00 27 1C 18 67 A0 18 CA 66 0A [21:41:58]GetLastDocTimeStamp 1729633278 [21:41:58]current date 1729633319 [21:41:58]FM_GetShiftState [21:41:58]SAM_PROTO_GetShiftState [21:41:58]wFMCommunicate request_size=4 [21:41:58]MH_SAM_APDU [21:41:58]CAPDU: 80 13 01 00 [21:41:58]Write to MH i2c: E2 08 00 66 03 80 13 01 00 00 00 00 00 E6 [21:41:58]Write i2c OK [21:41:58]MH_I2C_Read... [21:41:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:41:58]Read from MH i2c: E2 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 0E 00 [21:41:58]MH_I2C_Read... [21:41:58]Read from MH i2c: E2 0E 00 66 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DB [21:41:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:41:58]wFMCommunicate OK [21:41:58]SAM_PROTO_GetShiftState done [21:41:58]FM_GetShiftState done [21:41:58]opened in 1729556094 [21:41:58]opened+sec_in_day 1729642494 [21:41:58]quantity*price = 350062 [21:41:58]sum+1 = 350064 [21:41:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.63 ИТОГО: 3500.00 Внесено: 3500.00 СДАЧА: 0.00 НСП 1% : 30.98 НДС 12% : 371.75 Наличными: 3500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 543 22.10.2024 21:41 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188514 ФПД: 75334126763739 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214159&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188514&fm=75334126763739&tin=02508201610067®Number=0000000000100030&sum=350000 [21:41:59]StoreToDocumentArchive [21:41:59]shift 461 fd 188514 [21:41:59]save to /storage/0461/doc_00188514 [21:41:59]save last doc name /storage/0461/doc_00188514 to /storage/kkm_last_doc_name [21:41:59]save OK [21:41:59]Clear old archive folders... [21:41:59]ProcessDocumentItem done err = 0, tmpTLVsize=248 [21:41:59]tlvbuf is 009098B0 [21:41:59]SAM_PROTO_ClearQueue [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 09 00 00 [21:41:59]Write to MH i2c: E2 08 00 73 03 80 09 00 00 00 00 00 00 E8 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 73 03 00 90 00 EA [21:41:59]RAPDU: 90 00 [21:41:59]wFMCommunicate OK [21:41:59]SAM_PROTO_ClearQueue done [21:41:59]KKMCreateOFDPacket [21:41:59]OFDProtocolAddRootSTLVToBuf [21:41:59]FM_MakeSignedData [21:41:59]FM_MakeSignedData [21:41:59]SAM_PROTO_SignData [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 0D 01 02 [21:41:59]Write to MH i2c: E2 08 00 74 03 80 0D 01 02 00 00 00 00 F0 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 74 03 00 90 00 EB [21:41:59]RAPDU: 90 00 [21:41:59]wFMCommunicate OK [21:41:59]wFMCommunicate request_size=255 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 27 1C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E0 02 00 35 04 06 00 44 84 17 DD [21:41:59]Write to MH i2c: E2 02 01 75 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 27 1C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E0 02 00 35 04 06 00 44 84 17 DD 00 00 BD [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 75 03 00 90 00 EC [21:41:59]RAPDU: 90 00 [21:41:59]wFMCommunicate OK [21:41:59]wFMCommunicate request_size=7 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 0D 02 02 02 7E DB [21:41:59]Write to MH i2c: E2 0A 00 76 03 80 0D 02 02 02 00 7E DB 00 00 50 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 03 00 76 03 00 90 00 ED [21:41:59]RAPDU: 90 00 [21:41:59]wFMCommunicate OK [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 0D 03 02 [21:41:59]Write to MH i2c: E2 08 00 77 03 80 0D 03 02 00 00 00 00 F5 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 0B 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 0B 00 77 03 00 C1 B5 CA FA D4 A0 73 53 90 00 6A [21:41:59]RAPDU: C1 B5 CA FA D4 A0 73 53 90 00 [21:41:59]wFMCommunicate OK [21:41:59]SAM_PROTO_SignData done [21:41:59]FM_MakeSignedData done [21:41:59]CreateOFDProtocolMessage [21:41:59]wFMCommunicate request_size=4 [21:41:59]MH_SAM_APDU [21:41:59]CAPDU: 80 11 00 00 [21:41:59]Write to MH i2c: E2 08 00 78 03 80 11 00 00 00 00 00 00 F5 [21:41:59]Write i2c OK [21:41:59]MH_I2C_Read... [21:41:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:41:59]Read from MH i2c: E2 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 17 00 [21:41:59]MH_I2C_Read... [21:41:59]Read from MH i2c: E2 17 00 78 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 43 [21:41:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:42:00]wFMCommunicate OK [21:42:00]CreateOFDProtocolMessage done [21:42:00]OFDSenderStorePacket 188514 [21:42:00]StoreOFDPacket docnum=188514 [21:42:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 12 80 04 01 83 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 27 1C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E0 02 00 35 04 06 00 44 84 17 DD 7E DB C1 B5 CA FA D4 A0 73 53 [21:42:00]CheckFolder [21:42:00]dirname=/storage/ofd_packets [21:42:00]CheckFolder done [21:42:00]ProducePacketName [21:42:00]name=ofd_packets/00188514 [21:42:00]NVStorageSaveData ofd_packets/00188514 [21:42:00]File name is /storage/ofd_packets/00188514 [21:42:00]Write 298 bytes [21:42:00]NVStorageSaveData done [21:42:00]OFDSenderStorePacket done [21:42:00]KKMCreateOFDPacket done [21:42:00]NVStorageSaveData kkm_last_timestamp [21:42:00]File name is /storage/kkm_last_timestamp [21:42:00]Write 4 bytes [21:42:00]NVStorageSaveData done [21:42:00]ExternCall_PrintAddStr [21:42:00]wPrintStart [21:42:00]Write to MH i2c: 01 00 00 79 03 7C [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 79 03 00 00 00 00 00 FF 0F 91 [21:42:00]RasterBufferAndPrint [21:42:00]line Счет N : (1)210575 [21:42:00]line ИНН: 02508201610067 [21:42:00]line Контрольно-Кассовый Чек [21:42:00]line ПРОДАЖА [21:42:00]line ТРК (МРК, ГНК) : 51 [21:42:00]line Товар: 2710194210 [21:42:00]line ДТ-К-5 [21:42:00]line 45.940 * 76.20 [21:42:00]line = 3500.63 [21:42:00]line НДС 12% НСП 1% [21:42:00]line > о реализуемом товаре [21:42:00]line ОКРУГЛЕНИЕ: -0.63 [21:42:00]line ИТОГО: 3500.00 [21:42:00]line Внесено: 3500.00 [21:42:00]line СДАЧА: 0.00 [21:42:00]line НСП 1% : 30.98 [21:42:00]line НДС 12% : 371.75 [21:42:00]line Наличными: 3500.00 [21:42:00]line Безнал.: 0.00 [21:42:00]line Место: АЗС № 86 "Партнер Нефть" [21:42:00]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:42:00]line СНО: Общий режим [21:42:00]line Чек 543 22.10.2024 21:41 [21:42:00]line Смена: 461 ФФД: 1.0 [21:42:00]line ЗНМ: 0300000155 [21:42:00]line РНМ: 0000000000100030 [21:42:00]line Версия ККМ: 001 [21:42:00]line ФМ: 0000000000965340 [21:42:00]line ФД: 188514 [21:42:00]line ФПД: 75334126763739 [21:42:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214159&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188514&fm=75334126763739&tin=02508201610067®Number=0000000000100030&sum=350000 [21:42:00]OFD Sender: Processing packet 188514 [packets to send 1062, broken 1061] [21:42:00]ProducePacketName [21:42:00]name=ofd_packets/00188514 [21:42:00]OFD Sender: To server: pG, [21:42:00]CommunicateWithHost lk.salyk.kg:30040 [21:42:00]ConnectInit lk.salyk.kg [21:42:00]written 0, free lines is 4095 [21:42:00]Connected sock=10 [21:42:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 12 80 04 01 83 97 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 74 B3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 6F 57 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 57 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1A 0C 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 37 91 00 00 00 00 07 04 06 00 30 57 05 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 02 00 00 F4 03 04 00 27 1C 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 62 E0 02 00 35 04 06 00 44 84 17 DD 7E DB C1 B5 CA FA D4 A0 73 53 [21:42:00]Write to MH i2c: 01 00 00 A4 03 A7 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: 01 07 00 A4 03 00 00 00 00 00 5F 0C 19 [21:42:00]RasterBufferAndPrint [21:42:00]line [21:42:00]line [21:42:00]line [21:42:00]line [21:42:00]line [21:42:00]written 0, free lines is 3171 [21:42:00]MH_Cut [21:42:00]Write to MH i2c: D1 01 00 AB 03 01 80 [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: D1 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: D1 01 00 [21:42:00]MH_I2C_Read... [21:42:00]Read from MH i2c: D1 01 00 AB 03 00 7F [21:42:00]Write to MH i2c: 01 00 00 AC 03 AF [21:42:00]Write i2c OK [21:42:00]MH_I2C_Read... [21:42:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 41 8C 47 00 42 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 39 36 35 33 34 30 10 04 04 00 62 E0 02 00 F4 03 04 00 13 C6 17 67 B6 04 01 00 00 94 22 74 7F CE 71 E3 AA [21:42:00]CommunicateWithHost err = 0 [21:42:00]CheckOFDResponse [21:42:00]1017 (14) - 77093643461234 [21:42:00]1041 (16) - 0000000000965340 [21:42:00]1040 (4) - 188514 [21:42:00]1012 (4) - 22.10.2024 15:34 [21:42:00]1206 (1) - 0 [21:42:00]OFD Sender: Remove packet 188514 [21:42:00]ProducePacketName [21:42:00]name=ofd_packets/00188514 [21:42:00]NVStorageDeleteData [21:42:01]OFD Sender: No OFD packet to send [21:42:02]*** Cut start [21:42:02]*** Partial cut [21:42:02]*** CUTSNS_PIN = 1 [21:42:02]*** CUTSNS_PIN = 0 [21:42:02]*** Brake cut motor [21:42:02]Read from MH i2c: 01 [21:42:02]MH_I2C_Read... [21:42:02]*** Stop cut motor [21:42:02]*** Cut end [21:42:02]Read from MH i2c: 01 07 00 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: 01 07 00 AC 03 00 00 00 00 00 FF 0F C4 [21:42:02]process_action close_receipt done [21:42:02]requested_data is exist [21:42:02]produce_requested_data [21:42:02]requested_item fm.sn is exist - process it [21:42:02]wFMCommunicate request_size=4 [21:42:02]MH_SAM_APDU [21:42:02]CAPDU: 80 11 00 00 [21:42:02]Write to MH i2c: E2 08 00 AD 03 80 11 00 00 00 00 00 00 2A [21:42:02]Write i2c OK [21:42:02]MH_I2C_Read... [21:42:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:42:02]Read from MH i2c: E2 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: E2 17 00 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: E2 17 00 AD 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 78 [21:42:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:42:02]wFMCommunicate OK [21:42:02]requested_item fd.num is exist - process it [21:42:02]SAM_PROTO_GetFieldsCounters [21:42:02]wFMCommunicate request_size=4 [21:42:02]MH_SAM_APDU [21:42:02]CAPDU: 80 13 00 00 [21:42:02]Write to MH i2c: E2 08 00 AE 03 80 13 00 00 00 00 00 00 2D [21:42:02]Write i2c OK [21:42:02]MH_I2C_Read... [21:42:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:42:02]Read from MH i2c: E2 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: E2 62 00 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: E2 62 00 AE 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1F 02 00 00 5E 04 04 00 1F 02 00 00 57 04 04 00 20 02 00 00 19 04 04 00 00 00 00 00 90 00 A9 [21:42:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 62 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 1F 02 00 00 5E 04 04 00 1F 02 00 00 57 04 04 00 20 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:42:02]wFMCommunicate OK [21:42:02]SAM_PROTO_GetFieldsCounters done [21:42:02]requested_item shift.num is exist - process it [21:42:02]requested_item shift.opened is exist - process it [21:42:02]req_shift_opened [21:42:02]FM_GetShiftState [21:42:02]SAM_PROTO_GetShiftState [21:42:02]wFMCommunicate request_size=4 [21:42:02]MH_SAM_APDU [21:42:02]CAPDU: 80 13 01 00 [21:42:02]Write to MH i2c: E2 08 00 AF 03 80 13 01 00 00 00 00 00 2F [21:42:02]Write i2c OK [21:42:02]MH_I2C_Read... [21:42:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:42:02]Read from MH i2c: E2 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: E2 0E 00 [21:42:02]MH_I2C_Read... [21:42:02]Read from MH i2c: E2 0E 00 AF 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 24 [21:42:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:42:02]wFMCommunicate OK [21:42:02]SAM_PROTO_GetShiftState done [21:42:02]FM_GetShiftState done [21:42:02]req_shift_opened done [21:42:02]requested_item shift.open_date is exist - process it [21:42:02]req_shift_open_date [21:42:02]req_shift_open_date done [21:42:02]produce_requested_data done [21:42:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188514,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:42:02]process_action_free close_receipt [21:42:02]json_value_free [21:42:02]json_value_free done [21:42:02]process_json_proto returns [21:42:02]Send response to host [21:42:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188514,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:42:02]free response buf [21:42:02]execute_script done [21:42:02]execute_script returns [21:42:02]free content buf [21:42:02]Sock 7.Close socket [21:42:02]Sock 7.Thread stoped [21:42:06]OFD Sender: No OFD packet to send [21:42:11]OFD Sender: No OFD packet to send [21:42:16]OFD Sender: No OFD packet to send [21:42:21]OFD Sender: No OFD packet to send [21:42:26]OFD Sender: No OFD packet to send [21:42:31]OFD Sender: No OFD packet to send [21:42:36]OFD Sender: No OFD packet to send [21:42:41]OFD Sender: No OFD packet to send [21:42:46]OFD Sender: No OFD packet to send [21:42:51]OFD Sender: No OFD packet to send [21:42:56]OFD Sender: No OFD packet to send [21:43:01]OFD Sender: No OFD packet to send [21:43:06]OFD Sender: No OFD packet to send [21:43:11]OFD Sender: No OFD packet to send [21:43:16]OFD Sender: No OFD packet to send [21:43:21]OFD Sender: No OFD packet to send [21:43:26]OFD Sender: No OFD packet to send [21:43:31]OFD Sender: No OFD packet to send [21:43:36]OFD Sender: No OFD packet to send [21:43:41]OFD Sender: No OFD packet to send [21:43:46]OFD Sender: No OFD packet to send [21:43:51]OFD Sender: No OFD packet to send [21:43:57]OFD Sender: No OFD packet to send [21:44:02]OFD Sender: No OFD packet to send [21:44:07]OFD Sender: No OFD packet to send [21:44:12]OFD Sender: No OFD packet to send [21:44:17]OFD Sender: No OFD packet to send [21:44:22]OFD Sender: No OFD packet to send [21:44:27]OFD Sender: No OFD packet to send [21:44:32]OFD Sender: No OFD packet to send [21:44:37]OFD Sender: No OFD packet to send [21:44:42]OFD Sender: No OFD packet to send [21:44:47]OFD Sender: No OFD packet to send [21:44:52]OFD Sender: No OFD packet to send [21:44:57]OFD Sender: No OFD packet to send [21:45:02]OFD Sender: No OFD packet to send [21:45:07]OFD Sender: No OFD packet to send [21:45:12]OFD Sender: No OFD packet to send [21:45:17]OFD Sender: No OFD packet to send [21:45:22]OFD Sender: No OFD packet to send [21:45:27]OFD Sender: No OFD packet to send [21:45:32]OFD Sender: No OFD packet to send [21:45:37]OFD Sender: No OFD packet to send [21:45:42]OFD Sender: No OFD packet to send [21:45:47]OFD Sender: No OFD packet to send [21:45:50]accept exits with 9 [21:45:50]New connection [21:45:50]New thread 3066506596 created [21:45:50]Thread 3066649956 joined [21:45:50]Waiting for new connection... [21:45:50] Sock 9.Parse request [21:45:50]Sock 9.Check first char [21:45:50]Sock 9.First char is OK [21:45:50]request: POST /json_proto HTTP/1.0 [21:45:50]Method: POST [21:45:50]URL: /json_proto [21:45:50]Method is POST - this is cgi request [21:45:50]url: /json_proto [21:45:50]query_string will be loaded in cgi processing [21:45:50]execute_cgi json_proto POST (null) [21:45:50]execute_cgi path=json_proto method=POST [21:45:50]POST find Content-Length [21:45:50]Host: 172.17.42.131:8080 [21:45:50]Content-Length: 766 [21:45:50]Content-Type: application/json [21:45:50] [21:45:50]POST finish read [21:45:50]Found Content-Length = 766 [21:45:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:50]execute_script... [21:45: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)210576", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:45:50]POST & json_proto [21:45:50]process_json_proto [21:45:50]json parsed OK: [21:45:50]protocol is kg_v1.0 [21:45:50]action value=close_receipt [21:45:50]process_action close_receipt [21:45:50]cmd_close_receipt [21:45:50]MH_GetDate [21:45:50]Write to MH i2c: F0 00 00 B0 03 A2 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: F0 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: F0 09 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: F0 09 00 B0 03 00 0F 1D 18 67 A0 18 CA 66 3E [21:45:50]GetLastDocTimeStamp 1729633319 [21:45:50]current date 1729633551 [21:45:50]FM_GetShiftState [21:45:50]SAM_PROTO_GetShiftState [21:45:50]wFMCommunicate request_size=4 [21:45:50]MH_SAM_APDU [21:45:50]CAPDU: 80 13 01 00 [21:45:50]Write to MH i2c: E2 08 00 B1 03 80 13 01 00 00 00 00 00 31 [21:45:50]Write i2c OK [21:45:50]MH_I2C_Read... [21:45:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:50]Read from MH i2c: E2 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 0E 00 [21:45:50]MH_I2C_Read... [21:45:50]Read from MH i2c: E2 0E 00 B1 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 26 [21:45:50]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:45:50]wFMCommunicate OK [21:45:50]SAM_PROTO_GetShiftState done [21:45:50]FM_GetShiftState done [21:45:50]opened in 1729556094 [21:45:50]opened+sec_in_day 1729642494 [21:45:50]quantity*price = 50041 [21:45:50]sum+1 = 50042 [21:45:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 544 22.10.2024 21:45 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188515 ФПД: 39175190292500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214551&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188515&fm=39175190292500&tin=02508201610067®Number=0000000000100030&sum=50041 [21:45:51]StoreToDocumentArchive [21:45:51]shift 461 fd 188515 [21:45:51]save to /storage/0461/doc_00188515 [21:45:51]save last doc name /storage/0461/doc_00188515 to /storage/kkm_last_doc_name [21:45:51]save OK [21:45:51]Clear old archive folders... [21:45:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:45:51]tlvbuf is 008F5370 [21:45:51]SAM_PROTO_ClearQueue [21:45:51]wFMCommunicate request_size=4 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 09 00 00 [21:45:51]Write to MH i2c: E2 08 00 BE 03 80 09 00 00 00 00 00 00 33 [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:45:51]Read from MH i2c: E2 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 03 00 [21:45:51]MH_I2C_Read... [21:45:51]Read from MH i2c: E2 03 00 BE 03 00 90 00 35 [21:45:51]RAPDU: 90 00 [21:45:51]wFMCommunicate OK [21:45:51]SAM_PROTO_ClearQueue done [21:45:51]KKMCreateOFDPacket [21:45:51]OFDProtocolAddRootSTLVToBuf [21:45:51]FM_MakeSignedData [21:45:51]FM_MakeSignedData [21:45:51]SAM_PROTO_SignData [21:45:51]wFMCommunicate request_size=4 [21:45:51]MH_SAM_APDU [21:45:51]CAPDU: 80 0D 01 02 [21:45:51]Write to MH i2c: E2 08 00 BF 03 80 0D 01 02 00 00 00 00 3B [21:45:51]Write i2c OK [21:45:51]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 BF 03 00 90 00 36 [21:45:52]RAPDU: 90 00 [21:45:52]wFMCommunicate OK [21:45:52]wFMCommunicate request_size=255 [21:45:52]MH_SAM_APDU [21:45: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 0F 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E0 02 00 35 04 06 00 23 [21:45:52]Write to MH i2c: E2 02 01 C0 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 0F 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E0 02 00 35 04 06 00 23 00 00 03 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 C0 03 00 90 00 37 [21:45:52]RAPDU: 90 00 [21:45:52]wFMCommunicate OK [21:45:52]wFMCommunicate request_size=10 [21:45:52]MH_SAM_APDU [21:45:52]CAPDU: 80 0D 02 02 05 A1 2F 4D 28 14 [21:45:52]Write to MH i2c: E2 0D 00 C1 03 80 0D 02 02 05 00 A1 2F 4D 28 14 00 00 A1 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 03 00 C1 03 00 90 00 38 [21:45:52]RAPDU: 90 00 [21:45:52]wFMCommunicate OK [21:45:52]wFMCommunicate request_size=4 [21:45:52]MH_SAM_APDU [21:45:52]CAPDU: 80 0D 03 02 [21:45:52]Write to MH i2c: E2 08 00 C2 03 80 0D 03 02 00 00 00 00 40 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 0B 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 0B 00 C2 03 00 F1 B6 D7 EC 6A E9 AB 6E 90 00 17 [21:45:52]RAPDU: F1 B6 D7 EC 6A E9 AB 6E 90 00 [21:45:52]wFMCommunicate OK [21:45:52]SAM_PROTO_SignData done [21:45:52]FM_MakeSignedData done [21:45:52]CreateOFDProtocolMessage [21:45:52]wFMCommunicate request_size=4 [21:45:52]MH_SAM_APDU [21:45:52]CAPDU: 80 11 00 00 [21:45:52]Write to MH i2c: E2 08 00 C3 03 80 11 00 00 00 00 00 00 40 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:52]Read from MH i2c: E2 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 17 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: E2 17 00 C3 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8E [21:45:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:45:52]wFMCommunicate OK [21:45:52]CreateOFDProtocolMessage done [21:45:52]OFDSenderStorePacket 188515 [21:45:52]StoreOFDPacket docnum=188515 [21:45:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B0 09 07 01 E0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 0F 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E0 02 00 35 04 06 00 23 A1 2F 4D 28 14 F1 B6 D7 EC 6A E9 AB 6E [21:45:52]CheckFolder [21:45:52]dirname=/storage/ofd_packets [21:45:52]CheckFolder done [21:45:52]ProducePacketName [21:45:52]name=ofd_packets/00188515 [21:45:52]NVStorageSaveData ofd_packets/00188515 [21:45:52]File name is /storage/ofd_packets/00188515 [21:45:52]Write 301 bytes [21:45:52]NVStorageSaveData done [21:45:52]OFDSenderStorePacket done [21:45:52]KKMCreateOFDPacket done [21:45:52]NVStorageSaveData kkm_last_timestamp [21:45:52]File name is /storage/kkm_last_timestamp [21:45:52]Write 4 bytes [21:45:52]NVStorageSaveData done [21:45:52]ExternCall_PrintAddStr [21:45:52]wPrintStart [21:45:52]Write to MH i2c: 01 00 00 C4 03 C7 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 07 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 07 00 C4 03 00 00 00 00 00 FF 0F DC [21:45:52]RasterBufferAndPrint [21:45:52]line Счет N : (1)210576 [21:45:52]line ИНН: 02508201610067 [21:45:52]line Контрольно-Кассовый Чек [21:45:52]line ПРОДАЖА [21:45:52]line ТРК (МРК, ГНК) : 12 [21:45:52]line Товар: 2710124130 [21:45:52]line Аи-92-К-3 [21:45:52]line 7.480 * 66.90 [21:45:52]line = 500.41 [21:45:52]line НДС 12% НСП 1% [21:45:52]line > о реализуемом товаре [21:45:52]line ИТОГО: 500.41 [21:45:52]line НСП 1% : 4.43 [21:45:52]line НДС 12% : 53.14 [21:45:52]line Наличными: 0.00 [21:45:52]line Безнал.: 500.41 [21:45:52]line Место: АЗС № 86 "Партнер Нефть" [21:45:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:45:52]line СНО: Общий режим [21:45:52]line Чек 544 22.10.2024 21:45 [21:45:52]line Смена: 461 ФФД: 1.0 [21:45:52]line ЗНМ: 0300000155 [21:45:52]line РНМ: 0000000000100030 [21:45:52]line Версия ККМ: 001 [21:45:52]line Платежная система: Mbank [21:45:52]line ФМ: 0000000000965340 [21:45:52]line ФД: 188515 [21:45:52]line ФПД: 39175190292500 [21:45:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214551&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188515&fm=39175190292500&tin=02508201610067®Number=0000000000100030&sum=50041 [21:45:52]written 0, free lines is 4095 [21:45:52]OFD Sender: Processing packet 188515 [packets to send 1062, broken 1061] [21:45:52]ProducePacketName [21:45:52]name=ofd_packets/00188515 [21:45:52]OFD Sender: To server: pG, [21:45:52]CommunicateWithHost lk.salyk.kg:30040 [21:45:52]ConnectInit lk.salyk.kg [21:45:52]Write to MH i2c: 01 00 00 ED 03 F0 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 07 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: 01 07 00 ED 03 00 00 00 00 00 84 0C 87 [21:45:52]RasterBufferAndPrint [21:45:52]line [21:45:52]line [21:45:52]line [21:45:52]line [21:45:52]line [21:45:52]written 0, free lines is 3207 [21:45:52]MH_Cut [21:45:52]Write to MH i2c: D1 01 00 F4 03 01 C9 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: D1 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: D1 01 00 [21:45:52]MH_I2C_Read... [21:45:52]Read from MH i2c: D1 01 00 F4 03 00 C8 [21:45:52]Write to MH i2c: 01 00 00 F5 03 F8 [21:45:52]Write i2c OK [21:45:52]MH_I2C_Read... [21:45:52]Connected sock=11 [21:45:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B0 09 07 01 E0 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 20 02 00 00 F4 03 04 00 0F 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E0 02 00 35 04 06 00 23 A1 2F 4D 28 14 F1 B6 D7 EC 6A E9 AB 6E [21:45:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 58 7B 47 00 CA 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 63 E0 02 00 F4 03 04 00 FC C6 17 67 B6 04 01 00 00 65 AB 98 4C F0 40 38 38 [21:45:53]CommunicateWithHost err = 0 [21:45:53]CheckOFDResponse [21:45:53]1017 (14) - 77093643461234 [21:45:53]1041 (16) - 0000000000965340 [21:45:53]1040 (4) - 188515 [21:45:53]1012 (4) - 22.10.2024 15:38 [21:45:53]1206 (1) - 0 [21:45:53]OFD Sender: Remove packet 188515 [21:45:53]ProducePacketName [21:45:53]name=ofd_packets/00188515 [21:45:53]NVStorageDeleteData [21:45:53]OFD Sender: No OFD packet to send [21:45:54]*** Cut start [21:45:54]*** Partial cut [21:45:54]*** CUTSNS_PIN = 1 [21:45:54]*** CUTSNS_PIN = 0 [21:45:54]*** Brake cut motor [21:45:54]Read from MH i2c: 01 [21:45:54]MH_I2C_Read... [21:45:54]*** Stop cut motor [21:45:54]*** Cut end [21:45:54]Read from MH i2c: 01 07 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: 01 07 00 F5 03 00 00 00 00 00 FF 0F 0D [21:45:54]process_action close_receipt done [21:45:54]requested_data is exist [21:45:54]produce_requested_data [21:45:54]requested_item fm.sn is exist - process it [21:45:54]wFMCommunicate request_size=4 [21:45:54]MH_SAM_APDU [21:45:54]CAPDU: 80 11 00 00 [21:45:54]Write to MH i2c: E2 08 00 F6 03 80 11 00 00 00 00 00 00 73 [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:45:54]Read from MH i2c: E2 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 17 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 17 00 F6 03 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C1 [21:45:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:45:54]wFMCommunicate OK [21:45:54]requested_item fd.num is exist - process it [21:45:54]SAM_PROTO_GetFieldsCounters [21:45:54]wFMCommunicate request_size=4 [21:45:54]MH_SAM_APDU [21:45:54]CAPDU: 80 13 00 00 [21:45:54]Write to MH i2c: E2 08 00 F7 03 80 13 00 00 00 00 00 00 76 [21:45:54]Write i2c OK [21:45:54]MH_I2C_Read... [21:45:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:45:54]Read from MH i2c: E2 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 62 00 [21:45:54]MH_I2C_Read... [21:45:54]Read from MH i2c: E2 62 00 F7 03 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 20 02 00 00 5E 04 04 00 20 02 00 00 57 04 04 00 21 02 00 00 19 04 04 00 00 00 00 00 90 00 F6 [21:45:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 63 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 20 02 00 00 5E 04 04 00 20 02 00 00 57 04 04 00 21 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:45:55]wFMCommunicate OK [21:45:55]SAM_PROTO_GetFieldsCounters done [21:45:55]requested_item shift.num is exist - process it [21:45:55]requested_item shift.opened is exist - process it [21:45:55]req_shift_opened [21:45:55]FM_GetShiftState [21:45:55]SAM_PROTO_GetShiftState [21:45:55]wFMCommunicate request_size=4 [21:45:55]MH_SAM_APDU [21:45:55]CAPDU: 80 13 01 00 [21:45:55]Write to MH i2c: E2 08 00 F8 03 80 13 01 00 00 00 00 00 78 [21:45:55]Write i2c OK [21:45:55]MH_I2C_Read... [21:45:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:45:55]Read from MH i2c: E2 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 0E 00 [21:45:55]MH_I2C_Read... [21:45:55]Read from MH i2c: E2 0E 00 F8 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6D [21:45:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:45:55]wFMCommunicate OK [21:45:55]SAM_PROTO_GetShiftState done [21:45:55]FM_GetShiftState done [21:45:55]req_shift_opened done [21:45:55]requested_item shift.open_date is exist - process it [21:45:55]req_shift_open_date [21:45:55]req_shift_open_date done [21:45:55]produce_requested_data done [21:45:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188515,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:45:55]process_action_free close_receipt [21:45:55]json_value_free [21:45:55]json_value_free done [21:45:55]process_json_proto returns [21:45:55]Send response to host [21:45:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188515,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:45:55]free response buf [21:45:55]execute_script done [21:45:55]execute_script returns [21:45:55]free content buf [21:45:55]Sock 9.Close socket [21:45:55]Sock 9.Thread stoped [21:45:58]OFD Sender: No OFD packet to send [21:46:03]OFD Sender: No OFD packet to send [21:46:08]accept exits with 7 [21:46:08]New connection [21:46:08]New thread 3066649956 created [21:46:08]Thread 3066506596 joined [21:46:08]Waiting for new connection... [21:46:08] Sock 7.Parse request [21:46:08]Sock 7.Check first char [21:46:08]Sock 7.First char is OK [21:46:08]request: POST /json_proto HTTP/1.0 [21:46:08]Method: POST [21:46:08]URL: /json_proto [21:46:08]Method is POST - this is cgi request [21:46:08]url: /json_proto [21:46:08]query_string will be loaded in cgi processing [21:46:08]execute_cgi json_proto POST (null) [21:46:08]execute_cgi path=json_proto method=POST [21:46:08]POST find Content-Length [21:46:08]Host: 172.17.42.131:8080 [21:46:08]Content-Length: 683 [21:46:08]Content-Type: application/json [21:46:08] [21:46:08]POST finish read [21:46:08]Found Content-Length = 683 [21:46:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:08]execute_script... [21:46: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)210577", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:08]POST & json_proto [21:46:08]process_json_proto [21:46:08]json parsed OK: [21:46:08]protocol is kg_v1.0 [21:46:08]action value=close_receipt [21:46:08]process_action close_receipt [21:46:08]cmd_close_receipt [21:46:08]MH_GetDate [21:46:08]Write to MH i2c: F0 00 00 F9 03 EB [21:46:08]Write i2c OK [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: F0 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: F0 09 00 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: F0 09 00 F9 03 00 21 1D 18 67 A0 18 CA 66 99 [21:46:08]GetLastDocTimeStamp 1729633551 [21:46:08]current date 1729633569 [21:46:08]FM_GetShiftState [21:46:08]SAM_PROTO_GetShiftState [21:46:08]wFMCommunicate request_size=4 [21:46:08]MH_SAM_APDU [21:46:08]CAPDU: 80 13 01 00 [21:46:08]Write to MH i2c: E2 08 00 FA 03 80 13 01 00 00 00 00 00 7A [21:46:08]Write i2c OK [21:46:08]MH_I2C_Read... [21:46:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:08]Read from MH i2c: E2 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: E2 0E 00 [21:46:08]MH_I2C_Read... [21:46:08]Read from MH i2c: E2 0E 00 FA 03 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 6F [21:46:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:46:08]wFMCommunicate OK [21:46:08]SAM_PROTO_GetShiftState done [21:46:08]FM_GetShiftState done [21:46:08]opened in 1729556094 [21:46:08]opened+sec_in_day 1729642494 [21:46:08]quantity*price = 50025 [21:46:08]sum+1 = 50027 [21:46:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.26 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 545 22.10.2024 21:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188516 ФПД: 26005712307190 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214609&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188516&fm=26005712307190&tin=02508201610067®Number=0000000000100030&sum=50000 [21:46:09]StoreToDocumentArchive [21:46:09]shift 461 fd 188516 [21:46:09]save to /storage/0461/doc_00188516 [21:46:09]save last doc name /storage/0461/doc_00188516 to /storage/kkm_last_doc_name [21:46:09]save OK [21:46:09]Clear old archive folders... [21:46:09]ProcessDocumentItem done err = 0, tmpTLVsize=257 [21:46:09]tlvbuf is 008C52A0 [21:46:09]SAM_PROTO_ClearQueue [21:46:09]wFMCommunicate request_size=4 [21:46:09]MH_SAM_APDU [21:46:09]CAPDU: 80 09 00 00 [21:46:09]Write to MH i2c: E2 08 00 07 04 80 09 00 00 00 00 00 00 7D [21:46:09]Write i2c OK [21:46:09]MH_I2C_Read... [21:46:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:10]Read from MH i2c: E2 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 07 04 00 90 00 7F [21:46:10]RAPDU: 90 00 [21:46:10]wFMCommunicate OK [21:46:10]SAM_PROTO_ClearQueue done [21:46:10]KKMCreateOFDPacket [21:46:10]OFDProtocolAddRootSTLVToBuf [21:46:10]FM_MakeSignedData [21:46:10]FM_MakeSignedData [21:46:10]SAM_PROTO_SignData [21:46:10]wFMCommunicate request_size=4 [21:46:10]MH_SAM_APDU [21:46:10]CAPDU: 80 0D 01 02 [21:46:10]Write to MH i2c: E2 08 00 08 04 80 0D 01 02 00 00 00 00 85 [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:10]Read from MH i2c: E2 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 08 04 00 90 00 80 [21:46:10]RAPDU: 90 00 [21:46:10]wFMCommunicate OK [21:46:10]wFMCommunicate request_size=255 [21:46:10]MH_SAM_APDU [21:46:10]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 21 02 00 00 F4 03 04 00 21 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E0 02 [21:46:10]Write to MH i2c: E2 02 01 09 04 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 21 02 00 00 F4 03 04 00 21 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E0 02 00 00 86 [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:10]Read from MH i2c: E2 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 09 04 00 90 00 81 [21:46:10]RAPDU: 90 00 [21:46:10]wFMCommunicate OK [21:46:10]wFMCommunicate request_size=16 [21:46:10]MH_SAM_APDU [21:46:10]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 17 A6 ED 3E 83 F6 [21:46:10]Write to MH i2c: E2 13 00 0A 04 80 0D 02 02 0B 00 00 35 04 06 00 17 A6 ED 3E 83 F6 00 00 3E [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:10]Read from MH i2c: E2 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 03 00 0A 04 00 90 00 82 [21:46:10]RAPDU: 90 00 [21:46:10]wFMCommunicate OK [21:46:10]wFMCommunicate request_size=4 [21:46:10]MH_SAM_APDU [21:46:10]CAPDU: 80 0D 03 02 [21:46:10]Write to MH i2c: E2 08 00 0B 04 80 0D 03 02 00 00 00 00 8A [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:10]Read from MH i2c: E2 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 0B 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 0B 00 0B 04 00 5A E8 21 9E 51 EA 18 DA 90 00 B9 [21:46:10]RAPDU: 5A E8 21 9E 51 EA 18 DA 90 00 [21:46:10]wFMCommunicate OK [21:46:10]SAM_PROTO_SignData done [21:46:10]FM_MakeSignedData done [21:46:10]CreateOFDProtocolMessage [21:46:10]wFMCommunicate request_size=4 [21:46:10]MH_SAM_APDU [21:46:10]CAPDU: 80 11 00 00 [21:46:10]Write to MH i2c: E2 08 00 0C 04 80 11 00 00 00 00 00 00 8A [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:10]Read from MH i2c: E2 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 17 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: E2 17 00 0C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [21:46:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:46:10]wFMCommunicate OK [21:46:10]CreateOFDProtocolMessage done [21:46:10]OFDSenderStorePacket 188516 [21:46:10]StoreOFDPacket docnum=188516 [21:46:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F2 6E 0D 01 C6 A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 21 02 00 00 F4 03 04 00 21 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E0 02 00 35 04 06 00 17 A6 ED 3E 83 F6 5A E8 21 9E 51 EA 18 DA [21:46:10]CheckFolder [21:46:10]dirname=/storage/ofd_packets [21:46:10]CheckFolder done [21:46:10]ProducePacketName [21:46:10]name=ofd_packets/00188516 [21:46:10]NVStorageSaveData ofd_packets/00188516 [21:46:10]File name is /storage/ofd_packets/00188516 [21:46:10]Write 307 bytes [21:46:10]NVStorageSaveData done [21:46:10]OFDSenderStorePacket done [21:46:10]KKMCreateOFDPacket done [21:46:10]NVStorageSaveData kkm_last_timestamp [21:46:10]File name is /storage/kkm_last_timestamp [21:46:10]Write 4 bytes [21:46:10]NVStorageSaveData done [21:46:10]ExternCall_PrintAddStr [21:46:10]wPrintStart [21:46:10]Write to MH i2c: 01 00 00 0D 04 11 [21:46:10]Write i2c OK [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: 01 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: 01 07 00 [21:46:10]MH_I2C_Read... [21:46:10]Read from MH i2c: 01 07 00 0D 04 00 00 00 00 00 FF 0F 26 [21:46:10]RasterBufferAndPrint [21:46:10]line Счет N : (1)210577 [21:46:10]line ИНН: 02508201610067 [21:46:10]line Контрольно-Кассовый Чек [21:46:10]line ПРОДАЖА [21:46:10]line ТРК (МРК, ГНК) : 41 [21:46:10]line Товар: 2710194210 [21:46:10]line D-ENERGY ДТ-К-5 [21:46:10]line 6.480 * 77.20 [21:46:10]line = 500.26 [21:46:10]line НДС 12% НСП 1% [21:46:10]line > о реализуемом товаре [21:46:10]line ОКРУГЛЕНИЕ: -0.26 [21:46:10]line ИТОГО: 500.00 [21:46:10]line Внесено: 500.00 [21:46:10]line СДАЧА: 0.00 [21:46:10]line НСП 1% : 4.43 [21:46:10]line НДС 12% : 53.12 [21:46:10]line Наличными: 500.00 [21:46:10]line Безнал.: 0.00 [21:46:10]line Место: АЗС № 86 "Партнер Нефть" [21:46:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:46:10]line СНО: Общий режим [21:46:10]line Чек 545 22.10.2024 21:46 [21:46:10]line Смена: 461 ФФД: 1.0 [21:46:10]line ЗНМ: 0300000155 [21:46:10]line РНМ: 0000000000100030 [21:46:10]line Версия ККМ: 001 [21:46:10]line ФМ: 0000000000965340 [21:46:10]line ФД: 188516 [21:46:10]line ФПД: 26005712307190 [21:46:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214609&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188516&fm=26005712307190&tin=02508201610067®Number=0000000000100030&sum=50000 [21:46:10]OFD Sender: Processing packet 188516 [packets to send 1062, broken 1061] [21:46:10]ProducePacketName [21:46:10]name=ofd_packets/00188516 [21:46:10]OFD Sender: To server: pG, [21:46:10]CommunicateWithHost lk.salyk.kg:30040 [21:46:10]ConnectInit lk.salyk.kg [21:46:10]written 0, free lines is 4095 [21:46:10]Connected sock=10 [21:46:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 F2 6E 0D 01 C6 A2 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 19 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 6A 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 C0 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 21 02 00 00 F4 03 04 00 21 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E0 02 00 35 04 06 00 17 A6 ED 3E 83 F6 5A E8 21 9E 51 EA 18 DA [21:46:11]Write to MH i2c: 01 00 00 38 04 3C [21:46:11]Write i2c OK [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: 01 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: 01 07 00 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: 01 07 00 38 04 00 00 00 00 00 5D 0C AC [21:46:11]RasterBufferAndPrint [21:46:11]line [21:46:11]line [21:46:11]line [21:46:11]line [21:46:11]line [21:46:11]written 0, free lines is 3168 [21:46:11]MH_Cut [21:46:11]Write to MH i2c: D1 01 00 3F 04 01 15 [21:46:11]Write i2c OK [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: D1 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: D1 01 00 [21:46:11]MH_I2C_Read... [21:46:11]Read from MH i2c: D1 01 00 3F 04 00 14 [21:46:11]Write to MH i2c: 01 00 00 40 04 44 [21:46:11]Write i2c OK [21:46:11]MH_I2C_Read... [21:46:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A7 D2 47 00 B5 F9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 64 E0 02 00 F4 03 04 00 0D C7 17 67 B6 04 01 00 00 D5 D1 A9 05 22 D3 C7 9E [21:46:11]CommunicateWithHost err = 0 [21:46:11]CheckOFDResponse [21:46:11]1017 (14) - 77093643461234 [21:46:11]1041 (16) - 0000000000965340 [21:46:11]1040 (4) - 188516 [21:46:11]1012 (4) - 22.10.2024 15:38 [21:46:11]1206 (1) - 0 [21:46:11]OFD Sender: Remove packet 188516 [21:46:11]ProducePacketName [21:46:11]name=ofd_packets/00188516 [21:46:11]NVStorageDeleteData [21:46:11]OFD Sender: No OFD packet to send [21:46:12]*** Cut start [21:46:12]*** Partial cut [21:46:12]*** CUTSNS_PIN = 1 [21:46:12]*** CUTSNS_PIN = 0 [21:46:12]*** Brake cut motor [21:46:12]Read from MH i2c: 01 [21:46:12]MH_I2C_Read... [21:46:12]*** Stop cut motor [21:46:12]*** Cut end [21:46:12]Read from MH i2c: 01 07 00 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: 01 07 00 40 04 00 00 00 00 00 FF 0F 59 [21:46:12]process_action close_receipt done [21:46:12]requested_data is exist [21:46:12]produce_requested_data [21:46:12]requested_item fm.sn is exist - process it [21:46:12]wFMCommunicate request_size=4 [21:46:12]MH_SAM_APDU [21:46:12]CAPDU: 80 11 00 00 [21:46:12]Write to MH i2c: E2 08 00 41 04 80 11 00 00 00 00 00 00 BF [21:46:12]Write i2c OK [21:46:12]MH_I2C_Read... [21:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:12]Read from MH i2c: E2 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: E2 17 00 [21:46:12]MH_I2C_Read... [21:46:12]Read from MH i2c: E2 17 00 41 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0D [21:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:46:12]wFMCommunicate OK [21:46:12]requested_item fd.num is exist - process it [21:46:12]SAM_PROTO_GetFieldsCounters [21:46:12]wFMCommunicate request_size=4 [21:46:12]MH_SAM_APDU [21:46:12]CAPDU: 80 13 00 00 [21:46:12]Write to MH i2c: E2 08 00 42 04 80 13 00 00 00 00 00 00 C2 [21:46:12]Write i2c OK [21:46:12]MH_I2C_Read... [21:46:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:13]Read from MH i2c: E2 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: E2 62 00 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: E2 62 00 42 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 21 02 00 00 5E 04 04 00 21 02 00 00 57 04 04 00 22 02 00 00 19 04 04 00 00 00 00 00 90 00 46 [21:46:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 64 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 21 02 00 00 5E 04 04 00 21 02 00 00 57 04 04 00 22 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:13]wFMCommunicate OK [21:46:13]SAM_PROTO_GetFieldsCounters done [21:46:13]requested_item shift.num is exist - process it [21:46:13]requested_item shift.opened is exist - process it [21:46:13]req_shift_opened [21:46:13]FM_GetShiftState [21:46:13]SAM_PROTO_GetShiftState [21:46:13]wFMCommunicate request_size=4 [21:46:13]MH_SAM_APDU [21:46:13]CAPDU: 80 13 01 00 [21:46:13]Write to MH i2c: E2 08 00 43 04 80 13 01 00 00 00 00 00 C4 [21:46:13]Write i2c OK [21:46:13]MH_I2C_Read... [21:46:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:13]Read from MH i2c: E2 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: E2 0E 00 [21:46:13]MH_I2C_Read... [21:46:13]Read from MH i2c: E2 0E 00 43 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B9 [21:46:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:46:13]wFMCommunicate OK [21:46:13]SAM_PROTO_GetShiftState done [21:46:13]FM_GetShiftState done [21:46:13]req_shift_opened done [21:46:13]requested_item shift.open_date is exist - process it [21:46:13]req_shift_open_date [21:46:13]req_shift_open_date done [21:46:13]produce_requested_data done [21:46:13]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188516,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:46:13]process_action_free close_receipt [21:46:13]json_value_free [21:46:13]json_value_free done [21:46:13]process_json_proto returns [21:46:13]Send response to host [21:46:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188516,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:46:13]free response buf [21:46:13]execute_script done [21:46:13]execute_script returns [21:46:13]free content buf [21:46:13]Sock 7.Close socket [21:46:13]Sock 7.Thread stoped [21:46:16]OFD Sender: No OFD packet to send [21:46:21]OFD Sender: No OFD packet to send [21:46:26]OFD Sender: No OFD packet to send [21:46:31]OFD Sender: No OFD packet to send [21:46:36]OFD Sender: No OFD packet to send [21:46:41]OFD Sender: No OFD packet to send [21:46:46]OFD Sender: No OFD packet to send [21:46:51]OFD Sender: No OFD packet to send [21:46:53]accept exits with 9 [21:46:53]New connection [21:46:53]New thread 3066506596 created [21:46:53]Thread 3066649956 joined [21:46:53]Waiting for new connection... [21:46:53] Sock 9.Parse request [21:46:53]Sock 9.Check first char [21:46:53]Sock 9.First char is OK [21:46:53]request: POST /json_proto HTTP/1.0 [21:46:53]Method: POST [21:46:53]URL: /json_proto [21:46:53]Method is POST - this is cgi request [21:46:53]url: /json_proto [21:46:53]query_string will be loaded in cgi processing [21:46:53]execute_cgi json_proto POST (null) [21:46:53]execute_cgi path=json_proto method=POST [21:46:53]POST find Content-Length [21:46:53]Host: 172.17.42.131:8080 [21:46:53]Content-Length: 677 [21:46:53]Content-Type: application/json [21:46:53] [21:46:53]POST finish read [21:46:53]Found Content-Length = 677 [21:46:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:53]execute_script... [21:46: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)210578", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 3.740, "sum" : 250.21, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 250.00, "total" : 250.00, "payments": [ { "type": 0, "sum" : 250.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:46:53]POST & json_proto [21:46:53]process_json_proto [21:46:53]json parsed OK: [21:46:53]protocol is kg_v1.0 [21:46:53]action value=close_receipt [21:46:53]process_action close_receipt [21:46:53]cmd_close_receipt [21:46:53]MH_GetDate [21:46:53]Write to MH i2c: F0 00 00 44 04 37 [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: F0 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: F0 09 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: F0 09 00 44 04 00 4D 1D 18 67 A0 18 CA 66 11 [21:46:53]GetLastDocTimeStamp 1729633569 [21:46:53]current date 1729633613 [21:46:53]FM_GetShiftState [21:46:53]SAM_PROTO_GetShiftState [21:46:53]wFMCommunicate request_size=4 [21:46:53]MH_SAM_APDU [21:46:53]CAPDU: 80 13 01 00 [21:46:53]Write to MH i2c: E2 08 00 45 04 80 13 01 00 00 00 00 00 C6 [21:46:53]Write i2c OK [21:46:53]MH_I2C_Read... [21:46:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:53]Read from MH i2c: E2 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 0E 00 [21:46:53]MH_I2C_Read... [21:46:53]Read from MH i2c: E2 0E 00 45 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BB [21:46:53]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:46:53]wFMCommunicate OK [21:46:53]SAM_PROTO_GetShiftState done [21:46:53]FM_GetShiftState done [21:46:53]opened in 1729556094 [21:46:53]opened+sec_in_day 1729642494 [21:46:53]quantity*price = 25020 [21:46:53]sum+1 = 25022 [21:46:53]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.21 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.21 НДС 12% : 26.57 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 546 22.10.2024 21:46 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188517 ФПД: 222020915483041 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214653&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188517&fm=222020915483041&tin=02508201610067®Number=0000000000100030&sum=25000 [21:46:54]StoreToDocumentArchive [21:46:54]shift 461 fd 188517 [21:46:54]save to /storage/0461/doc_00188517 [21:46:54]save last doc name /storage/0461/doc_00188517 to /storage/kkm_last_doc_name [21:46:54]save OK [21:46:54]Clear old archive folders... [21:46:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:46:54]tlvbuf is 008C68E0 [21:46:54]SAM_PROTO_ClearQueue [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 09 00 00 [21:46:54]Write to MH i2c: E2 08 00 52 04 80 09 00 00 00 00 00 00 C8 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 52 04 00 90 00 CA [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]SAM_PROTO_ClearQueue done [21:46:54]KKMCreateOFDPacket [21:46:54]OFDProtocolAddRootSTLVToBuf [21:46:54]FM_MakeSignedData [21:46:54]FM_MakeSignedData [21:46:54]SAM_PROTO_SignData [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 01 02 [21:46:54]Write to MH i2c: E2 08 00 53 04 80 0D 01 02 00 00 00 00 D0 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 53 04 00 90 00 CB [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]wFMCommunicate request_size=255 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 4D 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E0 02 00 35 04 06 00 C9 [21:46:54]Write to MH i2c: E2 02 01 54 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 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 4D 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E0 02 00 35 04 06 00 C9 00 00 07 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 54 04 00 90 00 CC [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]wFMCommunicate request_size=10 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 02 02 05 ED 45 CC D1 A1 [21:46:54]Write to MH i2c: E2 0D 00 55 04 80 0D 02 02 05 00 ED 45 CC D1 A1 00 00 4D [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 03 00 55 04 00 90 00 CD [21:46:54]RAPDU: 90 00 [21:46:54]wFMCommunicate OK [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 0D 03 02 [21:46:54]Write to MH i2c: E2 08 00 56 04 80 0D 03 02 00 00 00 00 D5 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 0B 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 0B 00 56 04 00 E7 D1 FD 99 50 D4 E6 A4 90 00 D2 [21:46:54]RAPDU: E7 D1 FD 99 50 D4 E6 A4 90 00 [21:46:54]wFMCommunicate OK [21:46:54]SAM_PROTO_SignData done [21:46:54]FM_MakeSignedData done [21:46:54]CreateOFDProtocolMessage [21:46:54]wFMCommunicate request_size=4 [21:46:54]MH_SAM_APDU [21:46:54]CAPDU: 80 11 00 00 [21:46:54]Write to MH i2c: E2 08 00 57 04 80 11 00 00 00 00 00 00 D5 [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:54]Read from MH i2c: E2 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 17 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: E2 17 00 57 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [21:46:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:46:54]wFMCommunicate OK [21:46:54]CreateOFDProtocolMessage done [21:46:54]OFDSenderStorePacket 188517 [21:46:54]StoreOFDPacket docnum=188517 [21:46:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F CE 07 01 0C 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 4D 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E0 02 00 35 04 06 00 C9 ED 45 CC D1 A1 E7 D1 FD 99 50 D4 E6 A4 [21:46:54]CheckFolder [21:46:54]dirname=/storage/ofd_packets [21:46:54]CheckFolder done [21:46:54]ProducePacketName [21:46:54]name=ofd_packets/00188517 [21:46:54]NVStorageSaveData ofd_packets/00188517 [21:46:54]File name is /storage/ofd_packets/00188517 [21:46:54]Write 301 bytes [21:46:54]NVStorageSaveData done [21:46:54]OFDSenderStorePacket done [21:46:54]KKMCreateOFDPacket done [21:46:54]NVStorageSaveData kkm_last_timestamp [21:46:54]File name is /storage/kkm_last_timestamp [21:46:54]Write 4 bytes [21:46:54]NVStorageSaveData done [21:46:54]ExternCall_PrintAddStr [21:46:54]wPrintStart [21:46:54]Write to MH i2c: 01 00 00 58 04 5C [21:46:54]Write i2c OK [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 07 00 [21:46:54]MH_I2C_Read... [21:46:54]Read from MH i2c: 01 07 00 58 04 00 00 00 00 00 FF 0F 71 [21:46:54]RasterBufferAndPrint [21:46:54]line Счет N : (1)210578 [21:46:54]line ИНН: 02508201610067 [21:46:54]line Контрольно-Кассовый Чек [21:46:54]line ПРОДАЖА [21:46:54]line ТРК (МРК, ГНК) : 42 [21:46:54]line Товар: 2710124130 [21:46:54]line Аи-92-К-3 [21:46:54]line 3.740 * 66.90 [21:46:54]line = 250.21 [21:46:54]line НДС 12% НСП 1% [21:46:54]line > о реализуемом товаре [21:46:54]line ОКРУГЛЕНИЕ: -0.21 [21:46:54]line ИТОГО: 250.00 [21:46:54]line Внесено: 250.00 [21:46:54]line СДАЧА: 0.00 [21:46:54]line НСП 1% : 2.21 [21:46:54]line НДС 12% : 26.57 [21:46:54]line Наличными: 250.00 [21:46:54]line Безнал.: 0.00 [21:46:54]line Место: АЗС № 86 "Партнер Нефть" [21:46:54]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:46:54]line СНО: Общий режим [21:46:54]line Чек 546 22.10.2024 21:46 [21:46:54]line Смена: 461 ФФД: 1.0 [21:46:54]line ЗНМ: 0300000155 [21:46:54]line РНМ: 0000000000100030 [21:46:54]line Версия ККМ: 001 [21:46:54]line ФМ: 0000000000965340 [21:46:54]line ФД: 188517 [21:46:54]line ФПД: 222020915483041 [21:46:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T214653&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188517&fm=222020915483041&tin=02508201610067®Number=0000000000100030&sum=25000 [21:46:54]written 0, free lines is 4095 [21:46:54]OFD Sender: Processing packet 188517 [packets to send 1062, broken 1061] [21:46:54]ProducePacketName [21:46:54]name=ofd_packets/00188517 [21:46:54]OFD Sender: To server: pG, [21:46:54]CommunicateWithHost lk.salyk.kg:30040 [21:46:54]ConnectInit lk.salyk.kg [21:46:55]Connected sock=10 [21:46:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6F CE 07 01 0C 8C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9C 0E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 BD 61 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 61 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 61 0A 00 00 00 00 07 04 06 00 A8 61 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 02 00 00 F4 03 04 00 4D 1D 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E0 02 00 35 04 06 00 C9 ED 45 CC D1 A1 E7 D1 FD 99 50 D4 E6 A4 [21:46:55]Write to MH i2c: 01 00 00 83 04 87 [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: 01 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: 01 07 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: 01 07 00 83 04 00 00 00 00 00 5B 0C F5 [21:46:55]RasterBufferAndPrint [21:46:55]line [21:46:55]line [21:46:55]line [21:46:55]line [21:46:55]line [21:46:55]written 0, free lines is 3167 [21:46:55]MH_Cut [21:46:55]Write to MH i2c: D1 01 00 8A 04 01 60 [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: D1 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: D1 01 00 [21:46:55]MH_I2C_Read... [21:46:55]Read from MH i2c: D1 01 00 8A 04 00 5F [21:46:55]Write to MH i2c: 01 00 00 8B 04 8F [21:46:55]Write i2c OK [21:46:55]MH_I2C_Read... [21:46:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 4F A3 47 00 D6 E9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 65 E0 02 00 F4 03 04 00 3A C7 17 67 B6 04 01 00 00 FF 73 56 AC 9A 27 A6 E7 [21:46:55]CommunicateWithHost err = 0 [21:46:55]CheckOFDResponse [21:46:55]1017 (14) - 77093643461234 [21:46:55]1041 (16) - 0000000000965340 [21:46:55]1040 (4) - 188517 [21:46:55]1012 (4) - 22.10.2024 15:39 [21:46:55]1206 (1) - 0 [21:46:55]OFD Sender: Remove packet 188517 [21:46:55]ProducePacketName [21:46:55]name=ofd_packets/00188517 [21:46:55]NVStorageDeleteData [21:46:56]OFD Sender: No OFD packet to send [21:46:56]*** Cut start [21:46:56]*** Partial cut [21:46:56]*** CUTSNS_PIN = 1 [21:46:56]*** CUTSNS_PIN = 0 [21:46:56]*** Brake cut motor [21:46:57]Read from MH i2c: 01 [21:46:57]MH_I2C_Read... [21:46:57]*** Stop cut motor [21:46:57]*** Cut end [21:46:57]Read from MH i2c: 01 07 00 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: 01 07 00 8B 04 00 00 00 00 00 FF 0F A4 [21:46:57]process_action close_receipt done [21:46:57]requested_data is exist [21:46:57]produce_requested_data [21:46:57]requested_item fm.sn is exist - process it [21:46:57]wFMCommunicate request_size=4 [21:46:57]MH_SAM_APDU [21:46:57]CAPDU: 80 11 00 00 [21:46:57]Write to MH i2c: E2 08 00 8C 04 80 11 00 00 00 00 00 00 0A [21:46:57]Write i2c OK [21:46:57]MH_I2C_Read... [21:46:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:46:57]Read from MH i2c: E2 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: E2 17 00 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: E2 17 00 8C 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [21:46:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:46:57]wFMCommunicate OK [21:46:57]requested_item fd.num is exist - process it [21:46:57]SAM_PROTO_GetFieldsCounters [21:46:57]wFMCommunicate request_size=4 [21:46:57]MH_SAM_APDU [21:46:57]CAPDU: 80 13 00 00 [21:46:57]Write to MH i2c: E2 08 00 8D 04 80 13 00 00 00 00 00 00 0D [21:46:57]Write i2c OK [21:46:57]MH_I2C_Read... [21:46:57]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:46:57]Read from MH i2c: E2 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: E2 62 00 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: E2 62 00 8D 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 22 02 00 00 5E 04 04 00 22 02 00 00 57 04 04 00 23 02 00 00 19 04 04 00 00 00 00 00 90 00 95 [21:46:57]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 65 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 22 02 00 00 5E 04 04 00 22 02 00 00 57 04 04 00 23 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:46:57]wFMCommunicate OK [21:46:57]SAM_PROTO_GetFieldsCounters done [21:46:57]requested_item shift.num is exist - process it [21:46:57]requested_item shift.opened is exist - process it [21:46:57]req_shift_opened [21:46:57]FM_GetShiftState [21:46:57]SAM_PROTO_GetShiftState [21:46:57]wFMCommunicate request_size=4 [21:46:57]MH_SAM_APDU [21:46:57]CAPDU: 80 13 01 00 [21:46:57]Write to MH i2c: E2 08 00 8E 04 80 13 01 00 00 00 00 00 0F [21:46:57]Write i2c OK [21:46:57]MH_I2C_Read... [21:46:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:46:57]Read from MH i2c: E2 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: E2 0E 00 [21:46:57]MH_I2C_Read... [21:46:57]Read from MH i2c: E2 0E 00 8E 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 04 [21:46:57]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:46:57]wFMCommunicate OK [21:46:57]SAM_PROTO_GetShiftState done [21:46:57]FM_GetShiftState done [21:46:57]req_shift_opened done [21:46:57]requested_item shift.open_date is exist - process it [21:46:57]req_shift_open_date [21:46:57]req_shift_open_date done [21:46:57]produce_requested_data done [21:46:57]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188517,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:46:57]process_action_free close_receipt [21:46:57]json_value_free [21:46:57]json_value_free done [21:46:57]process_json_proto returns [21:46:57]Send response to host [21:46:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188517,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:46:57]free response buf [21:46:57]execute_script done [21:46:57]execute_script returns [21:46:57]free content buf [21:46:57]Sock 9.Close socket [21:46:57]Sock 9.Thread stoped [21:47:01]OFD Sender: No OFD packet to send [21:47:06]OFD Sender: No OFD packet to send [21:47:11]OFD Sender: No OFD packet to send [21:47:16]OFD Sender: No OFD packet to send [21:47:21]OFD Sender: No OFD packet to send [21:47:26]OFD Sender: No OFD packet to send [21:47:31]OFD Sender: No OFD packet to send [21:47:36]OFD Sender: No OFD packet to send [21:47:41]OFD Sender: No OFD packet to send [21:47:46]OFD Sender: No OFD packet to send [21:47:51]OFD Sender: No OFD packet to send [21:47:56]OFD Sender: No OFD packet to send [21:48:01]OFD Sender: No OFD packet to send [21:48:06]OFD Sender: No OFD packet to send [21:48:11]OFD Sender: No OFD packet to send [21:48:16]OFD Sender: No OFD packet to send [21:48:21]OFD Sender: No OFD packet to send [21:48:26]OFD Sender: No OFD packet to send [21:48:31]OFD Sender: No OFD packet to send [21:48:36]OFD Sender: No OFD packet to send [21:48:41]OFD Sender: No OFD packet to send [21:48:46]OFD Sender: No OFD packet to send [21:48:51]OFD Sender: No OFD packet to send [21:48:56]OFD Sender: No OFD packet to send [21:49:01]OFD Sender: No OFD packet to send [21:49:06]OFD Sender: No OFD packet to send [21:49:11]OFD Sender: No OFD packet to send [21:49:16]OFD Sender: No OFD packet to send [21:49:21]OFD Sender: No OFD packet to send [21:49:26]OFD Sender: No OFD packet to send [21:49:31]OFD Sender: No OFD packet to send [21:49:36]OFD Sender: No OFD packet to send [21:49:41]OFD Sender: No OFD packet to send [21:49:46]OFD Sender: No OFD packet to send [21:49:51]OFD Sender: No OFD packet to send [21:49:56]OFD Sender: No OFD packet to send [21:50:01]OFD Sender: No OFD packet to send [21:50:06]OFD Sender: No OFD packet to send [21:50:11]OFD Sender: No OFD packet to send [21:50:16]OFD Sender: No OFD packet to send [21:50:21]OFD Sender: No OFD packet to send [21:50:26]OFD Sender: No OFD packet to send [21:50:31]OFD Sender: No OFD packet to send [21:50:37]OFD Sender: No OFD packet to send [21:50:42]OFD Sender: No OFD packet to send [21:50:47]OFD Sender: No OFD packet to send [21:50:52]OFD Sender: No OFD packet to send [21:50:57]OFD Sender: No OFD packet to send [21:51:02]OFD Sender: No OFD packet to send [21:51:07]OFD Sender: No OFD packet to send [21:51:12]OFD Sender: No OFD packet to send [21:51:17]OFD Sender: No OFD packet to send [21:51:22]OFD Sender: No OFD packet to send [21:51:27]OFD Sender: No OFD packet to send [21:51:32]OFD Sender: No OFD packet to send [21:51:37]OFD Sender: No OFD packet to send [21:51:42]OFD Sender: No OFD packet to send [21:51:47]OFD Sender: No OFD packet to send [21:51:52]OFD Sender: No OFD packet to send [21:51:57]OFD Sender: No OFD packet to send [21:52:02]OFD Sender: No OFD packet to send [21:52:07]OFD Sender: No OFD packet to send [21:52:12]OFD Sender: No OFD packet to send [21:52:17]OFD Sender: No OFD packet to send [21:52:22]OFD Sender: No OFD packet to send [21:52:27]OFD Sender: No OFD packet to send [21:52:32]OFD Sender: No OFD packet to send [21:52:37]OFD Sender: No OFD packet to send [21:52:42]OFD Sender: No OFD packet to send [21:52:47]OFD Sender: No OFD packet to send [21:52:52]OFD Sender: No OFD packet to send [21:52:57]OFD Sender: No OFD packet to send [21:53:02]OFD Sender: No OFD packet to send [21:53:07]OFD Sender: No OFD packet to send [21:53:12]OFD Sender: No OFD packet to send [21:53:17]OFD Sender: No OFD packet to send [21:53:22]OFD Sender: No OFD packet to send [21:53:27]OFD Sender: No OFD packet to send [21:53:32]OFD Sender: No OFD packet to send [21:53:37]OFD Sender: No OFD packet to send [21:53:42]OFD Sender: No OFD packet to send [21:53:47]OFD Sender: No OFD packet to send [21:53:52]OFD Sender: No OFD packet to send [21:53:57]OFD Sender: No OFD packet to send [21:54:02]OFD Sender: No OFD packet to send [21:54:07]OFD Sender: No OFD packet to send [21:54:12]OFD Sender: No OFD packet to send [21:54:13]accept exits with 6 [21:54:13]New connection [21:54:13]New thread 3066649956 created [21:54:13]Thread 3066506596 joined [21:54:13]Waiting for new connection... [21:54:13] Sock 6.Parse request [21:54:13]Sock 6.Check first char [21:54:13]Sock 6.First char is OK [21:54:13]request: POST /json_proto HTTP/1.0 [21:54:13]Method: POST [21:54:13]URL: /json_proto [21:54:13]Method is POST - this is cgi request [21:54:13]url: /json_proto [21:54:13]query_string will be loaded in cgi processing [21:54:13]execute_cgi json_proto POST (null) [21:54:13]execute_cgi path=json_proto method=POST [21:54:13]POST find Content-Length [21:54:13]Host: 172.17.42.131:8080 [21:54:13]Content-Length: 682 [21:54:13]Content-Type: application/json [21:54:13] [21:54:13]POST finish read [21:54:13]Found Content-Length = 682 [21:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:13]execute_script... [21:54: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)210579", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:54:13]POST & json_proto [21:54:13]process_json_proto [21:54:13]json parsed OK: [21:54:13]protocol is kg_v1.0 [21:54:13]action value=close_receipt [21:54:13]process_action close_receipt [21:54:13]cmd_close_receipt [21:54:13]MH_GetDate [21:54:13]Write to MH i2c: F0 00 00 8F 04 82 [21:54:13]Write i2c OK [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: F0 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: F0 09 00 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: F0 09 00 8F 04 00 06 1F 18 67 A0 18 CA 66 17 [21:54:13]GetLastDocTimeStamp 1729633613 [21:54:13]current date 1729634054 [21:54:13]FM_GetShiftState [21:54:13]SAM_PROTO_GetShiftState [21:54:13]wFMCommunicate request_size=4 [21:54:13]MH_SAM_APDU [21:54:13]CAPDU: 80 13 01 00 [21:54:13]Write to MH i2c: E2 08 00 90 04 80 13 01 00 00 00 00 00 11 [21:54:13]Write i2c OK [21:54:13]MH_I2C_Read... [21:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:13]Read from MH i2c: E2 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: E2 0E 00 [21:54:13]MH_I2C_Read... [21:54:13]Read from MH i2c: E2 0E 00 90 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 06 [21:54:13]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:54:13]wFMCommunicate OK [21:54:13]SAM_PROTO_GetShiftState done [21:54:13]FM_GetShiftState done [21:54:13]opened in 1729556094 [21:54:13]opened+sec_in_day 1729642494 [21:54:13]quantity*price = 300046 [21:54:13]sum+1 = 300048 [21:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.47 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 547 22.10.2024 21:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188518 ФПД: 101143798254009 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215414&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188518&fm=101143798254009&tin=02508201610067®Number=0000000000100030&sum=300000 [21:54:14]StoreToDocumentArchive [21:54:14]shift 461 fd 188518 [21:54:14]save to /storage/0461/doc_00188518 [21:54:14]save last doc name /storage/0461/doc_00188518 to /storage/kkm_last_doc_name [21:54:14]save OK [21:54:14]Clear old archive folders... [21:54:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:14]tlvbuf is 008F38D0 [21:54:14]SAM_PROTO_ClearQueue [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 09 00 00 [21:54:14]Write to MH i2c: E2 08 00 9D 04 80 09 00 00 00 00 00 00 13 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 9D 04 00 90 00 15 [21:54:14]RAPDU: 90 00 [21:54:14]wFMCommunicate OK [21:54:14]SAM_PROTO_ClearQueue done [21:54:14]KKMCreateOFDPacket [21:54:14]OFDProtocolAddRootSTLVToBuf [21:54:14]FM_MakeSignedData [21:54:14]FM_MakeSignedData [21:54:14]SAM_PROTO_SignData [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 0D 01 02 [21:54:14]Write to MH i2c: E2 08 00 9E 04 80 0D 01 02 00 00 00 00 1B [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 9E 04 00 90 00 16 [21:54:14]RAPDU: 90 00 [21:54:14]wFMCommunicate OK [21:54:14]wFMCommunicate request_size=255 [21:54:14]MH_SAM_APDU [21:54: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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 06 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E0 02 00 35 04 06 00 5B [21:54:14]Write to MH i2c: E2 02 01 9F 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 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 06 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E0 02 00 35 04 06 00 5B 00 00 51 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 9F 04 00 90 00 17 [21:54:14]RAPDU: 90 00 [21:54:14]wFMCommunicate OK [21:54:14]wFMCommunicate request_size=10 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 0D 02 02 05 FD 60 2A 89 B9 [21:54:14]Write to MH i2c: E2 0D 00 A0 04 80 0D 02 02 05 00 FD 60 2A 89 B9 00 00 F1 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 03 00 A0 04 00 90 00 18 [21:54:14]RAPDU: 90 00 [21:54:14]wFMCommunicate OK [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 0D 03 02 [21:54:14]Write to MH i2c: E2 08 00 A1 04 80 0D 03 02 00 00 00 00 20 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 0B 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 0B 00 A1 04 00 4D 9C 78 63 A1 CB C7 14 90 00 2C [21:54:14]RAPDU: 4D 9C 78 63 A1 CB C7 14 90 00 [21:54:14]wFMCommunicate OK [21:54:14]SAM_PROTO_SignData done [21:54:14]FM_MakeSignedData done [21:54:14]CreateOFDProtocolMessage [21:54:14]wFMCommunicate request_size=4 [21:54:14]MH_SAM_APDU [21:54:14]CAPDU: 80 11 00 00 [21:54:14]Write to MH i2c: E2 08 00 A2 04 80 11 00 00 00 00 00 00 20 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:14]Read from MH i2c: E2 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 17 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: E2 17 00 A2 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [21:54:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:54:14]wFMCommunicate OK [21:54:14]CreateOFDProtocolMessage done [21:54:14]OFDSenderStorePacket 188518 [21:54:14]StoreOFDPacket docnum=188518 [21:54:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 B4 07 01 0F C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 06 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E0 02 00 35 04 06 00 5B FD 60 2A 89 B9 4D 9C 78 63 A1 CB C7 14 [21:54:14]CheckFolder [21:54:14]dirname=/storage/ofd_packets [21:54:14]CheckFolder done [21:54:14]ProducePacketName [21:54:14]name=ofd_packets/00188518 [21:54:14]NVStorageSaveData ofd_packets/00188518 [21:54:14]File name is /storage/ofd_packets/00188518 [21:54:14]Write 301 bytes [21:54:14]NVStorageSaveData done [21:54:14]OFDSenderStorePacket done [21:54:14]KKMCreateOFDPacket done [21:54:14]NVStorageSaveData kkm_last_timestamp [21:54:14]File name is /storage/kkm_last_timestamp [21:54:14]Write 4 bytes [21:54:14]NVStorageSaveData done [21:54:14]ExternCall_PrintAddStr [21:54:14]wPrintStart [21:54:14]Write to MH i2c: 01 00 00 A3 04 A7 [21:54:14]Write i2c OK [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: 01 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: 01 07 00 [21:54:14]MH_I2C_Read... [21:54:14]Read from MH i2c: 01 07 00 A3 04 00 00 00 00 00 FF 0F BC [21:54:14]RasterBufferAndPrint [21:54:14]line Счет N : (1)210579 [21:54:14]line ИНН: 02508201610067 [21:54:14]line Контрольно-Кассовый Чек [21:54:14]line ПРОДАЖА [21:54:14]line ТРК (МРК, ГНК) : 42 [21:54:14]line Товар: 2710124130 [21:54:14]line Аи-92-К-3 [21:54:14]line 44.850 * 66.90 [21:54:14]line = 3000.47 [21:54:14]line НДС 12% НСП 1% [21:54:14]line > о реализуемом товаре [21:54:14]line ОКРУГЛЕНИЕ: -0.47 [21:54:14]line ИТОГО: 3000.00 [21:54:14]line Внесено: 3000.00 [21:54:14]line СДАЧА: 0.00 [21:54:14]line НСП 1% : 26.55 [21:54:14]line НДС 12% : 318.63 [21:54:14]line Наличными: 3000.00 [21:54:14]line Безнал.: 0.00 [21:54:14]line Место: АЗС № 86 "Партнер Нефть" [21:54:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:54:14]line СНО: Общий режим [21:54:14]line Чек 547 22.10.2024 21:54 [21:54:14]line Смена: 461 ФФД: 1.0 [21:54:14]line ЗНМ: 0300000155 [21:54:14]line РНМ: 0000000000100030 [21:54:14]line Версия ККМ: 001 [21:54:14]line ФМ: 0000000000965340 [21:54:14]line ФД: 188518 [21:54:14]line ФПД: 101143798254009 [21:54:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215414&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188518&fm=101143798254009&tin=02508201610067®Number=0000000000100030&sum=300000 [21:54:14]written 0, free lines is 4095 [21:54:15]OFD Sender: Processing packet 188518 [packets to send 1062, broken 1061] [21:54:15]ProducePacketName [21:54:15]name=ofd_packets/00188518 [21:54:15]OFD Sender: To server: pG, [21:54:15]CommunicateWithHost lk.salyk.kg:30040 [21:54:15]ConnectInit lk.salyk.kg [21:54:15]Connected sock=10 [21:54:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 54 B4 07 01 0F C2 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 32 AF 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 0F 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 23 02 00 00 F4 03 04 00 06 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E0 02 00 35 04 06 00 5B FD 60 2A 89 B9 4D 9C 78 63 A1 CB C7 14 [21:54:15]Write to MH i2c: 01 00 00 CE 04 D2 [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: 01 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: 01 07 00 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: 01 07 00 CE 04 00 00 00 00 00 5F 0C 44 [21:54:15]RasterBufferAndPrint [21:54:15]line [21:54:15]line [21:54:15]line [21:54:15]line [21:54:15]line [21:54:15]written 0, free lines is 3171 [21:54:15]MH_Cut [21:54:15]Write to MH i2c: D1 01 00 D5 04 01 AB [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: D1 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: D1 01 00 [21:54:15]MH_I2C_Read... [21:54:15]Read from MH i2c: D1 01 00 D5 04 00 AA [21:54:15]Write to MH i2c: 01 00 00 D6 04 DA [21:54:15]Write i2c OK [21:54:15]MH_I2C_Read... [21:54:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 53 47 00 53 23 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 66 E0 02 00 F4 03 04 00 F2 C8 17 67 B6 04 01 00 00 6B 61 38 52 38 92 97 60 [21:54:15]CommunicateWithHost err = 0 [21:54:15]CheckOFDResponse [21:54:15]1017 (14) - 77093643461234 [21:54:15]1041 (16) - 0000000000965340 [21:54:15]1040 (4) - 188518 [21:54:15]1012 (4) - 22.10.2024 15:46 [21:54:15]1206 (1) - 0 [21:54:15]OFD Sender: Remove packet 188518 [21:54:15]ProducePacketName [21:54:15]name=ofd_packets/00188518 [21:54:15]NVStorageDeleteData [21:54:16]OFD Sender: No OFD packet to send [21:54:16]*** Cut start [21:54:16]*** Partial cut [21:54:16]*** CUTSNS_PIN = 1 [21:54:16]*** CUTSNS_PIN = 0 [21:54:16]*** Brake cut motor [21:54:17]Read from MH i2c: 01 [21:54:17]MH_I2C_Read... [21:54:17]*** Stop cut motor [21:54:17]*** Cut end [21:54:17]Read from MH i2c: 01 07 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: 01 07 00 D6 04 00 00 00 00 00 FF 0F EF [21:54:17]process_action close_receipt done [21:54:17]requested_data is exist [21:54:17]produce_requested_data [21:54:17]requested_item fm.sn is exist - process it [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 11 00 00 [21:54:17]Write to MH i2c: E2 08 00 D7 04 80 11 00 00 00 00 00 00 55 [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 17 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 17 00 D7 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [21:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:54:17]wFMCommunicate OK [21:54:17]requested_item fd.num is exist - process it [21:54:17]SAM_PROTO_GetFieldsCounters [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 00 00 [21:54:17]Write to MH i2c: E2 08 00 D8 04 80 13 00 00 00 00 00 00 58 [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 62 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 62 00 D8 04 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 23 02 00 00 5E 04 04 00 23 02 00 00 57 04 04 00 24 02 00 00 19 04 04 00 00 00 00 00 90 00 E4 [21:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 66 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 23 02 00 00 5E 04 04 00 23 02 00 00 57 04 04 00 24 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetFieldsCounters done [21:54:17]requested_item shift.num is exist - process it [21:54:17]requested_item shift.opened is exist - process it [21:54:17]req_shift_opened [21:54:17]FM_GetShiftState [21:54:17]SAM_PROTO_GetShiftState [21:54:17]wFMCommunicate request_size=4 [21:54:17]MH_SAM_APDU [21:54:17]CAPDU: 80 13 01 00 [21:54:17]Write to MH i2c: E2 08 00 D9 04 80 13 01 00 00 00 00 00 5A [21:54:17]Write i2c OK [21:54:17]MH_I2C_Read... [21:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:17]Read from MH i2c: E2 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 [21:54:17]MH_I2C_Read... [21:54:17]Read from MH i2c: E2 0E 00 D9 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 4F [21:54:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:54:17]wFMCommunicate OK [21:54:17]SAM_PROTO_GetShiftState done [21:54:17]FM_GetShiftState done [21:54:17]req_shift_opened done [21:54:17]requested_item shift.open_date is exist - process it [21:54:17]req_shift_open_date [21:54:17]req_shift_open_date done [21:54:17]produce_requested_data done [21:54:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188518,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:54:17]process_action_free close_receipt [21:54:17]json_value_free [21:54:17]json_value_free done [21:54:17]process_json_proto returns [21:54:17]Send response to host [21:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188518,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:54:17]free response buf [21:54:17]execute_script done [21:54:17]execute_script returns [21:54:17]free content buf [21:54:17]Sock 6.Close socket [21:54:17]Sock 6.Thread stoped [21:54:18]accept exits with 9 [21:54:18]New connection [21:54:18]New thread 3066506596 created [21:54:18]Thread 3066649956 joined [21:54:18]Waiting for new connection... [21:54:18] Sock 9.Parse request [21:54:18]Sock 9.Check first char [21:54:18]Sock 9.First char is OK [21:54:18]request: POST /json_proto HTTP/1.0 [21:54:18]Method: POST [21:54:18]URL: /json_proto [21:54:18]Method is POST - this is cgi request [21:54:18]url: /json_proto [21:54:18]query_string will be loaded in cgi processing [21:54:18]execute_cgi json_proto POST (null) [21:54:18]execute_cgi path=json_proto method=POST [21:54:18]POST find Content-Length [21:54:18]Host: 172.17.42.131:8080 [21:54:18]Content-Length: 682 [21:54:18]Content-Type: application/json [21:54:18] [21:54:18]POST finish read [21:54:18]Found Content-Length = 682 [21:54:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [21:54:18]execute_script... [21:54: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)210580", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "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" ] } } [21:54:18]POST & json_proto [21:54:18]process_json_proto [21:54:18]json parsed OK: [21:54:18]protocol is kg_v1.0 [21:54:18]action value=close_receipt [21:54:18]process_action close_receipt [21:54:18]cmd_close_receipt [21:54:18]MH_GetDate [21:54:18]Write to MH i2c: F0 00 00 DA 04 CD [21:54:18]Write i2c OK [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: F0 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: F0 09 00 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: F0 09 00 DA 04 00 0B 1F 18 67 A0 18 CA 66 67 [21:54:18]GetLastDocTimeStamp 1729634054 [21:54:18]current date 1729634059 [21:54:18]FM_GetShiftState [21:54:18]SAM_PROTO_GetShiftState [21:54:18]wFMCommunicate request_size=4 [21:54:18]MH_SAM_APDU [21:54:18]CAPDU: 80 13 01 00 [21:54:18]Write to MH i2c: E2 08 00 DB 04 80 13 01 00 00 00 00 00 5C [21:54:18]Write i2c OK [21:54:18]MH_I2C_Read... [21:54:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:18]Read from MH i2c: E2 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: E2 0E 00 [21:54:18]MH_I2C_Read... [21:54:18]Read from MH i2c: E2 0E 00 DB 04 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [21:54:18]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:54:18]wFMCommunicate OK [21:54:18]SAM_PROTO_GetShiftState done [21:54:18]FM_GetShiftState done [21:54:18]opened in 1729556094 [21:54:18]opened+sec_in_day 1729642494 [21:54:18]quantity*price = 150056 [21:54:18]sum+1 = 150058 [21:54:18]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 548 22.10.2024 21:54 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188519 ФПД: 214390494547560 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215419&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188519&fm=214390494547560&tin=02508201610067®Number=0000000000100030&sum=150000 [21:54:19]StoreToDocumentArchive [21:54:19]shift 461 fd 188519 [21:54:19]save to /storage/0461/doc_00188519 [21:54:19]save last doc name /storage/0461/doc_00188519 to /storage/kkm_last_doc_name [21:54:19]save OK [21:54:19]Clear old archive folders... [21:54:19]ProcessDocumentItem done err = 0, tmpTLVsize=251 [21:54:19]tlvbuf is 008CF760 [21:54:19]SAM_PROTO_ClearQueue [21:54:19]wFMCommunicate request_size=4 [21:54:19]MH_SAM_APDU [21:54:19]CAPDU: 80 09 00 00 [21:54:19]Write to MH i2c: E2 08 00 E8 04 80 09 00 00 00 00 00 00 5E [21:54:19]Write i2c OK [21:54:19]MH_I2C_Read... [21:54:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:54:20]Read from MH i2c: E2 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 E8 04 00 90 00 60 [21:54:20]RAPDU: 90 00 [21:54:20]wFMCommunicate OK [21:54:20]SAM_PROTO_ClearQueue done [21:54:20]KKMCreateOFDPacket [21:54:20]OFDProtocolAddRootSTLVToBuf [21:54:20]FM_MakeSignedData [21:54:20]FM_MakeSignedData [21:54:20]SAM_PROTO_SignData [21:54:20]wFMCommunicate request_size=4 [21:54:20]MH_SAM_APDU [21:54:20]CAPDU: 80 0D 01 02 [21:54:20]Write to MH i2c: E2 08 00 E9 04 80 0D 01 02 00 00 00 00 66 [21:54:20]Write i2c OK [21:54:20]MH_I2C_Read... [21:54:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:54:20]Read from MH i2c: E2 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 E9 04 00 90 00 61 [21:54:20]RAPDU: 90 00 [21:54:20]wFMCommunicate OK [21:54:20]wFMCommunicate request_size=255 [21:54:20]MH_SAM_APDU [21:54: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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 0B 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E0 02 00 35 04 06 00 C2 [21:54:20]Write to MH i2c: E2 02 01 EA 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 0B 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E0 02 00 35 04 06 00 C2 00 00 CA [21:54:20]Write i2c OK [21:54:20]MH_I2C_Read... [21:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:20]Read from MH i2c: E2 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 EA 04 00 90 00 62 [21:54:20]RAPDU: 90 00 [21:54:20]wFMCommunicate OK [21:54:20]wFMCommunicate request_size=10 [21:54:20]MH_SAM_APDU [21:54:20]CAPDU: 80 0D 02 02 05 FC AD 45 4E 68 [21:54:20]Write to MH i2c: E2 0D 00 EB 04 80 0D 02 02 05 00 FC AD 45 4E 68 00 00 17 [21:54:20]Write i2c OK [21:54:20]MH_I2C_Read... [21:54:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:54:20]Read from MH i2c: E2 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 03 00 EB 04 00 90 00 63 [21:54:20]RAPDU: 90 00 [21:54:20]wFMCommunicate OK [21:54:20]wFMCommunicate request_size=4 [21:54:20]MH_SAM_APDU [21:54:20]CAPDU: 80 0D 03 02 [21:54:20]Write to MH i2c: E2 08 00 EC 04 80 0D 03 02 00 00 00 00 6B [21:54:20]Write i2c OK [21:54:20]MH_I2C_Read... [21:54:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:54:20]Read from MH i2c: E2 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 0B 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 0B 00 EC 04 00 D6 8C 18 0B DA 2D ED 52 90 00 37 [21:54:20]RAPDU: D6 8C 18 0B DA 2D ED 52 90 00 [21:54:20]wFMCommunicate OK [21:54:20]SAM_PROTO_SignData done [21:54:20]FM_MakeSignedData done [21:54:20]CreateOFDProtocolMessage [21:54:20]wFMCommunicate request_size=4 [21:54:20]MH_SAM_APDU [21:54:20]CAPDU: 80 11 00 00 [21:54:20]Write to MH i2c: E2 08 00 ED 04 80 11 00 00 00 00 00 00 6B [21:54:20]Write i2c OK [21:54:20]MH_I2C_Read... [21:54:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:20]Read from MH i2c: E2 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 17 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: E2 17 00 ED 04 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [21:54:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:54:20]wFMCommunicate OK [21:54:20]CreateOFDProtocolMessage done [21:54:20]OFDSenderStorePacket 188519 [21:54:20]StoreOFDPacket docnum=188519 [21:54:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 91 07 01 AA A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 0B 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E0 02 00 35 04 06 00 C2 FC AD 45 4E 68 D6 8C 18 0B DA 2D ED 52 [21:54:20]CheckFolder [21:54:20]dirname=/storage/ofd_packets [21:54:20]CheckFolder done [21:54:20]ProducePacketName [21:54:20]name=ofd_packets/00188519 [21:54:20]NVStorageSaveData ofd_packets/00188519 [21:54:20]File name is /storage/ofd_packets/00188519 [21:54:20]Write 301 bytes [21:54:20]NVStorageSaveData done [21:54:20]OFDSenderStorePacket done [21:54:20]KKMCreateOFDPacket done [21:54:20]NVStorageSaveData kkm_last_timestamp [21:54:20]File name is /storage/kkm_last_timestamp [21:54:20]Write 4 bytes [21:54:20]NVStorageSaveData done [21:54:20]ExternCall_PrintAddStr [21:54:20]wPrintStart [21:54:20]Write to MH i2c: 01 00 00 EE 04 F2 [21:54:20]Write i2c OK [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: 01 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: 01 07 00 [21:54:20]MH_I2C_Read... [21:54:20]Read from MH i2c: 01 07 00 EE 04 00 00 00 00 00 FF 0F 07 [21:54:20]RasterBufferAndPrint [21:54:20]line Счет N : (1)210580 [21:54:20]line ИНН: 02508201610067 [21:54:20]line Контрольно-Кассовый Чек [21:54:20]line ПРОДАЖА [21:54:20]line ТРК (МРК, ГНК) : 32 [21:54:20]line Товар: 2710124130 [21:54:20]line Аи-92-К-3 [21:54:20]line 22.430 * 66.90 [21:54:20]line = 1500.57 [21:54:20]line НДС 12% НСП 1% [21:54:20]line > о реализуемом товаре [21:54:20]line ОКРУГЛЕНИЕ: -0.57 [21:54:20]line ИТОГО: 1500.00 [21:54:20]line Внесено: 1500.00 [21:54:20]line СДАЧА: 0.00 [21:54:20]line НСП 1% : 13.28 [21:54:20]line НДС 12% : 159.35 [21:54:20]line Наличными: 1500.00 [21:54:20]line Безнал.: 0.00 [21:54:20]line Место: АЗС № 86 "Партнер Нефть" [21:54:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [21:54:20]line СНО: Общий режим [21:54:20]line Чек 548 22.10.2024 21:54 [21:54:20]line Смена: 461 ФФД: 1.0 [21:54:20]line ЗНМ: 0300000155 [21:54:20]line РНМ: 0000000000100030 [21:54:20]line Версия ККМ: 001 [21:54:20]line ФМ: 0000000000965340 [21:54:20]line ФД: 188519 [21:54:20]line ФПД: 214390494547560 [21:54:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T215419&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188519&fm=214390494547560&tin=02508201610067®Number=0000000000100030&sum=150000 [21:54:20]written 0, free lines is 4095 [21:54:20]OFD Sender: Processing packet 188519 [packets to send 1062, broken 1061] [21:54:20]ProducePacketName [21:54:20]name=ofd_packets/00188519 [21:54:20]OFD Sender: To server: pG, [21:54:20]CommunicateWithHost lk.salyk.kg:30040 [21:54:20]ConnectInit lk.salyk.kg [21:54:20]Connected sock=6 [21:54:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 09 91 07 01 AA A8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 02 00 00 F4 03 04 00 0B 1F 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 67 E0 02 00 35 04 06 00 C2 FC AD 45 4E 68 D6 8C 18 0B DA 2D ED 52 [21:54:21]Write to MH i2c: 01 00 00 19 05 1E [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 07 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: 01 07 00 19 05 00 00 00 00 00 63 0C 94 [21:54:21]RasterBufferAndPrint [21:54:21]line [21:54:21]line [21:54:21]line [21:54:21]line [21:54:21]line [21:54:21]written 0, free lines is 3179 [21:54:21]MH_Cut [21:54:21]Write to MH i2c: D1 01 00 20 05 01 F7 [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: D1 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: D1 01 00 [21:54:21]MH_I2C_Read... [21:54:21]Read from MH i2c: D1 01 00 20 05 00 F6 [21:54:21]Write to MH i2c: 01 00 00 21 05 26 [21:54:21]Write i2c OK [21:54:21]MH_I2C_Read... [21:54:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 8D 54 47 00 68 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 39 36 35 33 34 30 10 04 04 00 67 E0 02 00 F4 03 04 00 F8 C8 17 67 B6 04 01 00 00 F1 45 6A 15 B3 AA 72 80 [21:54:21]CommunicateWithHost err = 0 [21:54:21]CheckOFDResponse [21:54:21]1017 (14) - 77093643461234 [21:54:21]1041 (16) - 0000000000965340 [21:54:21]1040 (4) - 188519 [21:54:21]1012 (4) - 22.10.2024 15:47 [21:54:21]1206 (1) - 0 [21:54:21]OFD Sender: Remove packet 188519 [21:54:21]ProducePacketName [21:54:21]name=ofd_packets/00188519 [21:54:21]NVStorageDeleteData [21:54:21]OFD Sender: No OFD packet to send [21:54:22]*** Cut start [21:54:22]*** Partial cut [21:54:22]*** CUTSNS_PIN = 1 [21:54:22]*** CUTSNS_PIN = 0 [21:54:22]*** Brake cut motor [21:54:22]Read from MH i2c: 01 [21:54:22]MH_I2C_Read... [21:54:22]*** Stop cut motor [21:54:22]*** Cut end [21:54:22]Read from MH i2c: 01 07 00 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: 01 07 00 21 05 00 00 00 00 00 FF 0F 3B [21:54:22]process_action close_receipt done [21:54:22]requested_data is exist [21:54:22]produce_requested_data [21:54:22]requested_item fm.sn is exist - process it [21:54:22]wFMCommunicate request_size=4 [21:54:22]MH_SAM_APDU [21:54:22]CAPDU: 80 11 00 00 [21:54:22]Write to MH i2c: E2 08 00 22 05 80 11 00 00 00 00 00 00 A1 [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:54:22]Read from MH i2c: E2 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: E2 17 00 [21:54:22]MH_I2C_Read... [21:54:22]Read from MH i2c: E2 17 00 22 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [21:54:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [21:54:22]wFMCommunicate OK [21:54:22]requested_item fd.num is exist - process it [21:54:22]SAM_PROTO_GetFieldsCounters [21:54:22]wFMCommunicate request_size=4 [21:54:22]MH_SAM_APDU [21:54:22]CAPDU: 80 13 00 00 [21:54:22]Write to MH i2c: E2 08 00 23 05 80 13 00 00 00 00 00 00 A4 [21:54:22]Write i2c OK [21:54:22]MH_I2C_Read... [21:54:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:54:23]Read from MH i2c: E2 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 62 00 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 62 00 23 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 24 02 00 00 5E 04 04 00 24 02 00 00 57 04 04 00 25 02 00 00 19 04 04 00 00 00 00 00 90 00 34 [21:54:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 67 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 24 02 00 00 5E 04 04 00 24 02 00 00 57 04 04 00 25 02 00 00 19 04 04 00 00 00 00 00 90 00 [21:54:23]wFMCommunicate OK [21:54:23]SAM_PROTO_GetFieldsCounters done [21:54:23]requested_item shift.num is exist - process it [21:54:23]requested_item shift.opened is exist - process it [21:54:23]req_shift_opened [21:54:23]FM_GetShiftState [21:54:23]SAM_PROTO_GetShiftState [21:54:23]wFMCommunicate request_size=4 [21:54:23]MH_SAM_APDU [21:54:23]CAPDU: 80 13 01 00 [21:54:23]Write to MH i2c: E2 08 00 24 05 80 13 01 00 00 00 00 00 A6 [21:54:23]Write i2c OK [21:54:23]MH_I2C_Read... [21:54:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:54:23]Read from MH i2c: E2 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 0E 00 [21:54:23]MH_I2C_Read... [21:54:23]Read from MH i2c: E2 0E 00 24 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9B [21:54:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [21:54:23]wFMCommunicate OK [21:54:23]SAM_PROTO_GetShiftState done [21:54:23]FM_GetShiftState done [21:54:23]req_shift_opened done [21:54:23]requested_item shift.open_date is exist - process it [21:54:23]req_shift_open_date [21:54:23]req_shift_open_date done [21:54:23]produce_requested_data done [21:54:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188519,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [21:54:23]process_action_free close_receipt [21:54:23]json_value_free [21:54:23]json_value_free done [21:54:23]process_json_proto returns [21:54:23]Send response to host [21:54:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188519,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [21:54:23]free response buf [21:54:23]execute_script done [21:54:23]execute_script returns [21:54:23]free content buf [21:54:23]Sock 9.Close socket [21:54:23]Sock 9.Thread stoped [21:54:26]OFD Sender: No OFD packet to send [21:54:31]OFD Sender: No OFD packet to send [21:54:36]OFD Sender: No OFD packet to send [21:54:41]OFD Sender: No OFD packet to send [21:54:46]OFD Sender: No OFD packet to send [21:54:51]OFD Sender: No OFD packet to send [21:54:56]OFD Sender: No OFD packet to send [21:55:01]OFD Sender: No OFD packet to send [21:55:07]OFD Sender: No OFD packet to send [21:55:12]OFD Sender: No OFD packet to send [21:55:17]OFD Sender: No OFD packet to send [21:55:22]OFD Sender: No OFD packet to send [21:55:27]OFD Sender: No OFD packet to send [21:55:32]OFD Sender: No OFD packet to send [21:55:37]OFD Sender: No OFD packet to send [21:55:42]OFD Sender: No OFD packet to send [21:55:47]OFD Sender: No OFD packet to send [21:55:52]OFD Sender: No OFD packet to send [21:55:57]OFD Sender: No OFD packet to send [21:56:02]OFD Sender: No OFD packet to send [21:56:07]OFD Sender: No OFD packet to send [21:56:12]OFD Sender: No OFD packet to send [21:56:17]OFD Sender: No OFD packet to send [21:56:22]OFD Sender: No OFD packet to send [21:56:27]OFD Sender: No OFD packet to send [21:56:32]OFD Sender: No OFD packet to send [21:56:37]OFD Sender: No OFD packet to send [21:56:42]OFD Sender: No OFD packet to send [21:56:47]OFD Sender: No OFD packet to send [21:56:52]OFD Sender: No OFD packet to send [21:56:57]OFD Sender: No OFD packet to send [21:57:02]OFD Sender: No OFD packet to send [21:57:07]OFD Sender: No OFD packet to send [21:57:12]OFD Sender: No OFD packet to send [21:57:17]OFD Sender: No OFD packet to send [21:57:22]OFD Sender: No OFD packet to send [21:57:27]OFD Sender: No OFD packet to send [21:57:32]OFD Sender: No OFD packet to send [21:57:37]OFD Sender: No OFD packet to send [21:57:42]OFD Sender: No OFD packet to send [21:57:47]OFD Sender: No OFD packet to send [21:57:52]OFD Sender: No OFD packet to send [21:57:57]OFD Sender: No OFD packet to send [21:58:02]OFD Sender: No OFD packet to send [21:58:07]OFD Sender: No OFD packet to send [21:58:12]OFD Sender: No OFD packet to send [21:58:17]OFD Sender: No OFD packet to send [21:58:22]OFD Sender: No OFD packet to send [21:58:27]OFD Sender: No OFD packet to send [21:58:32]OFD Sender: No OFD packet to send [21:58:37]OFD Sender: No OFD packet to send [21:58:42]OFD Sender: No OFD packet to send [21:58:47]OFD Sender: No OFD packet to send [21:58:53]OFD Sender: No OFD packet to send [21:58:58]OFD Sender: No OFD packet to send [21:59:03]OFD Sender: No OFD packet to send [21:59:08]OFD Sender: No OFD packet to send [21:59:13]OFD Sender: No OFD packet to send [21:59:18]OFD Sender: No OFD packet to send [21:59:23]OFD Sender: No OFD packet to send [21:59:28]OFD Sender: No OFD packet to send [21:59:33]OFD Sender: No OFD packet to send [21:59:38]OFD Sender: No OFD packet to send [21:59:43]OFD Sender: No OFD packet to send [21:59:48]OFD Sender: No OFD packet to send [21:59:53]OFD Sender: No OFD packet to send [21:59:58]OFD Sender: No OFD packet to send [22:00:03]OFD Sender: No OFD packet to send [22:00:08]OFD Sender: No OFD packet to send [22:00:13]OFD Sender: No OFD packet to send [22:00:18]OFD Sender: No OFD packet to send [22:00:23]OFD Sender: No OFD packet to send [22:00:28]OFD Sender: No OFD packet to send [22:00:33]OFD Sender: No OFD packet to send [22:00:38]OFD Sender: No OFD packet to send [22:00:43]OFD Sender: No OFD packet to send [22:00:48]OFD Sender: No OFD packet to send [22:00:53]OFD Sender: No OFD packet to send [22:00:58]OFD Sender: No OFD packet to send [22:01:03]OFD Sender: No OFD packet to send [22:01:08]OFD Sender: No OFD packet to send [22:01:13]OFD Sender: No OFD packet to send [22:01:18]OFD Sender: No OFD packet to send [22:01:23]OFD Sender: No OFD packet to send [22:01:28]OFD Sender: No OFD packet to send [22:01:29]accept exits with 10 [22:01:29]New connection [22:01:29]New thread 3066649956 created [22:01:29]Thread 3066506596 joined [22:01:29]Waiting for new connection... [22:01:29] Sock 10.Parse request [22:01:29]Sock 10.Check first char [22:01:29]Sock 10.First char is OK [22:01:29]request: POST /json_proto HTTP/1.0 [22:01:29]Method: POST [22:01:29]URL: /json_proto [22:01:29]Method is POST - this is cgi request [22:01:29]url: /json_proto [22:01:29]query_string will be loaded in cgi processing [22:01:29]execute_cgi json_proto POST (null) [22:01:29]execute_cgi path=json_proto method=POST [22:01:29]POST find Content-Length [22:01:29]Host: 172.17.42.131:8080 [22:01:29]Content-Length: 767 [22:01:29]Content-Type: application/json [22:01:29] [22:01:29]POST finish read [22:01:29]Found Content-Length = 767 [22:01:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:29]execute_script... [22:01: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)210581", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:29]POST & json_proto [22:01:29]process_json_proto [22:01:29]json parsed OK: [22:01:29]protocol is kg_v1.0 [22:01:29]action value=close_receipt [22:01:29]process_action close_receipt [22:01:29]cmd_close_receipt [22:01:29]MH_GetDate [22:01:29]Write to MH i2c: F0 00 00 25 05 19 [22:01:29]Write i2c OK [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: F0 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: F0 09 00 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: F0 09 00 25 05 00 B9 20 18 67 A0 18 CA 66 62 [22:01:29]GetLastDocTimeStamp 1729634059 [22:01:29]current date 1729634489 [22:01:29]FM_GetShiftState [22:01:29]SAM_PROTO_GetShiftState [22:01:29]wFMCommunicate request_size=4 [22:01:29]MH_SAM_APDU [22:01:29]CAPDU: 80 13 01 00 [22:01:29]Write to MH i2c: E2 08 00 26 05 80 13 01 00 00 00 00 00 A8 [22:01:29]Write i2c OK [22:01:29]MH_I2C_Read... [22:01:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:29]Read from MH i2c: E2 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: E2 0E 00 [22:01:29]MH_I2C_Read... [22:01:29]Read from MH i2c: E2 0E 00 26 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 9D [22:01:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:01:29]wFMCommunicate OK [22:01:29]SAM_PROTO_GetShiftState done [22:01:29]FM_GetShiftState done [22:01:29]opened in 1729556094 [22:01:29]opened+sec_in_day 1729642494 [22:01:29]quantity*price = 990066 [22:01:29]sum+1 = 990068 [22:01:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.67 НСП 1% : 87.62 НДС 12% : 1051.40 Наличными: 0.00 Безнал.: 9900.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 549 22.10.2024 22:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188520 ФПД: 182659529187216 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188520&fm=182659529187216&tin=02508201610067®Number=0000000000100030&sum=990067 [22:01:30]StoreToDocumentArchive [22:01:30]shift 461 fd 188520 [22:01:30]save to /storage/0461/doc_00188520 [22:01:30]save last doc name /storage/0461/doc_00188520 to /storage/kkm_last_doc_name [22:01:30]save OK [22:01:30]Clear old archive folders... [22:01:30]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:01:30]tlvbuf is 0090E2E0 [22:01:30]SAM_PROTO_ClearQueue [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 09 00 00 [22:01:30]Write to MH i2c: E2 08 00 33 05 80 09 00 00 00 00 00 00 AA [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 33 05 00 90 00 AC [22:01:30]RAPDU: 90 00 [22:01:30]wFMCommunicate OK [22:01:30]SAM_PROTO_ClearQueue done [22:01:30]KKMCreateOFDPacket [22:01:30]OFDProtocolAddRootSTLVToBuf [22:01:30]FM_MakeSignedData [22:01:30]FM_MakeSignedData [22:01:30]SAM_PROTO_SignData [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 0D 01 02 [22:01:30]Write to MH i2c: E2 08 00 34 05 80 0D 01 02 00 00 00 00 B2 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 34 05 00 90 00 AD [22:01:30]RAPDU: 90 00 [22:01:30]wFMCommunicate OK [22:01:30]wFMCommunicate request_size=255 [22:01:30]MH_SAM_APDU [22:01: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 B9 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E0 02 00 35 04 06 00 A6 20 BC 5A [22:01:30]Write to MH i2c: E2 02 01 35 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 B9 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E0 02 00 35 04 06 00 A6 20 BC 5A 00 00 51 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 35 05 00 90 00 AE [22:01:30]RAPDU: 90 00 [22:01:30]wFMCommunicate OK [22:01:30]wFMCommunicate request_size=7 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 0D 02 02 02 1F 90 [22:01:30]Write to MH i2c: E2 0A 00 36 05 80 0D 02 02 02 00 1F 90 00 00 68 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 03 00 36 05 00 90 00 AF [22:01:30]RAPDU: 90 00 [22:01:30]wFMCommunicate OK [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 0D 03 02 [22:01:30]Write to MH i2c: E2 08 00 37 05 80 0D 03 02 00 00 00 00 B7 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0B 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 0B 00 37 05 00 2F 2B 22 4A 04 BA 10 10 90 00 5C [22:01:30]RAPDU: 2F 2B 22 4A 04 BA 10 10 90 00 [22:01:30]wFMCommunicate OK [22:01:30]SAM_PROTO_SignData done [22:01:30]FM_MakeSignedData done [22:01:30]CreateOFDProtocolMessage [22:01:30]wFMCommunicate request_size=4 [22:01:30]MH_SAM_APDU [22:01:30]CAPDU: 80 11 00 00 [22:01:30]Write to MH i2c: E2 08 00 38 05 80 11 00 00 00 00 00 00 B7 [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:30]Read from MH i2c: E2 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 17 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: E2 17 00 38 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [22:01:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:01:30]wFMCommunicate OK [22:01:30]CreateOFDProtocolMessage done [22:01:30]OFDSenderStorePacket 188520 [22:01:30]StoreOFDPacket docnum=188520 [22:01:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E8 25 04 01 E5 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 B9 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E0 02 00 35 04 06 00 A6 20 BC 5A 1F 90 2F 2B 22 4A 04 BA 10 10 [22:01:30]CheckFolder [22:01:30]dirname=/storage/ofd_packets [22:01:30]CheckFolder done [22:01:30]ProducePacketName [22:01:30]name=ofd_packets/00188520 [22:01:30]NVStorageSaveData ofd_packets/00188520 [22:01:30]File name is /storage/ofd_packets/00188520 [22:01:30]Write 298 bytes [22:01:30]NVStorageSaveData done [22:01:30]OFDSenderStorePacket done [22:01:30]KKMCreateOFDPacket done [22:01:30]NVStorageSaveData kkm_last_timestamp [22:01:30]File name is /storage/kkm_last_timestamp [22:01:30]Write 4 bytes [22:01:30]NVStorageSaveData done [22:01:30]ExternCall_PrintAddStr [22:01:30]wPrintStart [22:01:30]Write to MH i2c: 01 00 00 39 05 3E [22:01:30]Write i2c OK [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: 01 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: 01 07 00 [22:01:30]MH_I2C_Read... [22:01:30]Read from MH i2c: 01 07 00 39 05 00 00 00 00 00 FF 0F 53 [22:01:30]RasterBufferAndPrint [22:01:30]line Счет N : (1)210581 [22:01:30]line ИНН: 02508201610067 [22:01:30]line Контрольно-Кассовый Чек [22:01:30]line ПРОДАЖА [22:01:30]line ТРК (МРК, ГНК) : 51 [22:01:30]line Товар: 2710194210 [22:01:30]line ДТ-К-5 [22:01:30]line 129.930 * 76.20 [22:01:30]line = 9900.67 [22:01:30]line НДС 12% НСП 1% [22:01:30]line > о реализуемом товаре [22:01:30]line ИТОГО: 9900.67 [22:01:30]line НСП 1% : 87.62 [22:01:30]line НДС 12% : 1051.40 [22:01:30]line Наличными: 0.00 [22:01:30]line Безнал.: 9900.67 [22:01:30]line Место: АЗС № 86 "Партнер Нефть" [22:01:30]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:01:30]line СНО: Общий режим [22:01:30]line Чек 549 22.10.2024 22:01 [22:01:30]line Смена: 461 ФФД: 1.0 [22:01:30]line ЗНМ: 0300000155 [22:01:30]line РНМ: 0000000000100030 [22:01:30]line Версия ККМ: 001 [22:01:30]line Платежная система: Mbank [22:01:30]line ФМ: 0000000000965340 [22:01:30]line ФД: 188520 [22:01:30]line ФПД: 182659529187216 [22:01:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220129&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188520&fm=182659529187216&tin=02508201610067®Number=0000000000100030&sum=990067 [22:01:30]written 0, free lines is 4095 [22:01:30]OFD Sender: Processing packet 188520 [packets to send 1062, broken 1061] [22:01:30]ProducePacketName [22:01:30]name=ofd_packets/00188520 [22:01:30]OFD Sender: To server: pG, [22:01:30]CommunicateWithHost lk.salyk.kg:30040 [22:01:30]ConnectInit lk.salyk.kg [22:01:31]Connected sock=9 [22:01:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 E8 25 04 01 E5 EE 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 25 02 00 00 F4 03 04 00 B9 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E0 02 00 35 04 06 00 A6 20 BC 5A 1F 90 2F 2B 22 4A 04 BA 10 10 [22:01:31]Write to MH i2c: 01 00 00 62 05 67 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: 01 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: 01 07 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: 01 07 00 62 05 00 00 00 00 00 91 0C 0B [22:01:31]RasterBufferAndPrint [22:01:31]line [22:01:31]line [22:01:31]line [22:01:31]line [22:01:31]line [22:01:31]written 0, free lines is 3220 [22:01:31]MH_Cut [22:01:31]Write to MH i2c: D1 01 00 69 05 01 40 [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: D1 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: D1 01 00 [22:01:31]MH_I2C_Read... [22:01:31]Read from MH i2c: D1 01 00 69 05 00 3F [22:01:31]Write to MH i2c: 01 00 00 6A 05 6F [22:01:31]Write i2c OK [22:01:31]MH_I2C_Read... [22:01:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 32 47 00 9E BA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 68 E0 02 00 F4 03 04 00 A6 CA 17 67 B6 04 01 00 00 94 E2 93 E7 7C 5C 80 D1 [22:01:31]CommunicateWithHost err = 0 [22:01:31]CheckOFDResponse [22:01:31]1017 (14) - 77093643461234 [22:01:31]1041 (16) - 0000000000965340 [22:01:31]1040 (4) - 188520 [22:01:31]1012 (4) - 22.10.2024 15:54 [22:01:31]1206 (1) - 0 [22:01:31]OFD Sender: Remove packet 188520 [22:01:31]ProducePacketName [22:01:31]name=ofd_packets/00188520 [22:01:31]NVStorageDeleteData [22:01:32]OFD Sender: No OFD packet to send [22:01:32]*** Cut start [22:01:32]*** Partial cut [22:01:32]*** CUTSNS_PIN = 1 [22:01:32]*** CUTSNS_PIN = 0 [22:01:32]*** Brake cut motor [22:01:33]Read from MH i2c: 01 [22:01:33]MH_I2C_Read... [22:01:33]*** Stop cut motor [22:01:33]*** Cut end [22:01:33]Read from MH i2c: 01 07 00 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: 01 07 00 6A 05 00 00 00 00 00 FF 0F 84 [22:01:33]process_action close_receipt done [22:01:33]requested_data is exist [22:01:33]produce_requested_data [22:01:33]requested_item fm.sn is exist - process it [22:01:33]wFMCommunicate request_size=4 [22:01:33]MH_SAM_APDU [22:01:33]CAPDU: 80 11 00 00 [22:01:33]Write to MH i2c: E2 08 00 6B 05 80 11 00 00 00 00 00 00 EA [22:01:33]Write i2c OK [22:01:33]MH_I2C_Read... [22:01:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:33]Read from MH i2c: E2 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: E2 17 00 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: E2 17 00 6B 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 38 [22:01:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:01:33]wFMCommunicate OK [22:01:33]requested_item fd.num is exist - process it [22:01:33]SAM_PROTO_GetFieldsCounters [22:01:33]wFMCommunicate request_size=4 [22:01:33]MH_SAM_APDU [22:01:33]CAPDU: 80 13 00 00 [22:01:33]Write to MH i2c: E2 08 00 6C 05 80 13 00 00 00 00 00 00 ED [22:01:33]Write i2c OK [22:01:33]MH_I2C_Read... [22:01:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:33]Read from MH i2c: E2 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: E2 62 00 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: E2 62 00 6C 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 25 02 00 00 5E 04 04 00 25 02 00 00 57 04 04 00 26 02 00 00 19 04 04 00 00 00 00 00 90 00 81 [22:01:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 68 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 25 02 00 00 5E 04 04 00 25 02 00 00 57 04 04 00 26 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:33]wFMCommunicate OK [22:01:33]SAM_PROTO_GetFieldsCounters done [22:01:33]requested_item shift.num is exist - process it [22:01:33]requested_item shift.opened is exist - process it [22:01:33]req_shift_opened [22:01:33]FM_GetShiftState [22:01:33]SAM_PROTO_GetShiftState [22:01:33]wFMCommunicate request_size=4 [22:01:33]MH_SAM_APDU [22:01:33]CAPDU: 80 13 01 00 [22:01:33]Write to MH i2c: E2 08 00 6D 05 80 13 01 00 00 00 00 00 EF [22:01:33]Write i2c OK [22:01:33]MH_I2C_Read... [22:01:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:33]Read from MH i2c: E2 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: E2 0E 00 [22:01:33]MH_I2C_Read... [22:01:33]Read from MH i2c: E2 0E 00 6D 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E4 [22:01:33]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:01:33]wFMCommunicate OK [22:01:33]SAM_PROTO_GetShiftState done [22:01:33]FM_GetShiftState done [22:01:33]req_shift_opened done [22:01:33]requested_item shift.open_date is exist - process it [22:01:33]req_shift_open_date [22:01:33]req_shift_open_date done [22:01:33]produce_requested_data done [22:01:33]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188520,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:01:33]process_action_free close_receipt [22:01:33]json_value_free [22:01:33]json_value_free done [22:01:33]process_json_proto returns [22:01:33]Send response to host [22:01:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188520,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:01:33]free response buf [22:01:33]execute_script done [22:01:33]execute_script returns [22:01:33]free content buf [22:01:33]Sock 10.Close socket [22:01:33]Sock 10.Thread stoped [22:01:37]OFD Sender: No OFD packet to send [22:01:42]OFD Sender: No OFD packet to send [22:01:47]OFD Sender: No OFD packet to send [22:01:51]accept exits with 7 [22:01:51]New connection [22:01:51]New thread 3066506596 created [22:01:51]Thread 3066649956 joined [22:01:51]Waiting for new connection... [22:01:51] Sock 7.Parse request [22:01:51]Sock 7.Check first char [22:01:51]Sock 7.First char is OK [22:01:51]request: POST /json_proto HTTP/1.0 [22:01:51]Method: POST [22:01:51]URL: /json_proto [22:01:51]Method is POST - this is cgi request [22:01:51]url: /json_proto [22:01:51]query_string will be loaded in cgi processing [22:01:51]execute_cgi json_proto POST (null) [22:01:51]execute_cgi path=json_proto method=POST [22:01:51]POST find Content-Length [22:01:51]Host: 172.17.42.131:8080 [22:01:51]Content-Length: 682 [22:01:51]Content-Type: application/json [22:01:51] [22:01:51]POST finish read [22:01:51]Found Content-Length = 682 [22:01:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:51]execute_script... [22: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)210583", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:01:51]POST & json_proto [22:01:51]process_json_proto [22:01:51]json parsed OK: [22:01:51]protocol is kg_v1.0 [22:01:51]action value=close_receipt [22:01:51]process_action close_receipt [22:01:51]cmd_close_receipt [22:01:51]MH_GetDate [22:01:51]Write to MH i2c: F0 00 00 6E 05 62 [22:01:51]Write i2c OK [22:01:51]MH_I2C_Read... [22:01:51]Read from MH i2c: F0 [22:01:51]MH_I2C_Read... [22:01:51]Read from MH i2c: F0 09 00 [22:01:51]MH_I2C_Read... [22:01:51]Read from MH i2c: F0 09 00 6E 05 00 CF 20 18 67 A0 18 CA 66 C1 [22:01:51]GetLastDocTimeStamp 1729634489 [22:01:51]current date 1729634511 [22:01:51]FM_GetShiftState [22:01:51]SAM_PROTO_GetShiftState [22:01:51]wFMCommunicate request_size=4 [22:01:51]MH_SAM_APDU [22:01:51]CAPDU: 80 13 01 00 [22:01:51]Write to MH i2c: E2 08 00 6F 05 80 13 01 00 00 00 00 00 F1 [22:01:51]Write i2c OK [22:01:51]MH_I2C_Read... [22:01:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:51]Read from MH i2c: E2 [22:01:51]MH_I2C_Read... [22:01:51]Read from MH i2c: E2 0E 00 [22:01:51]MH_I2C_Read... [22:01:51]Read from MH i2c: E2 0E 00 6F 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 E6 [22:01:51]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:01:51]wFMCommunicate OK [22:01:51]SAM_PROTO_GetShiftState done [22:01:51]FM_GetShiftState done [22:01:51]opened in 1729556094 [22:01:51]opened+sec_in_day 1729642494 [22:01:51]quantity*price = 100015 [22:01:51]sum+1 = 100017 [22:01:51]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 550 22.10.2024 22:01 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188521 ФПД: 187021432025962 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188521&fm=187021432025962&tin=02508201610067®Number=0000000000100030&sum=100000 [22:01:52]StoreToDocumentArchive [22:01:52]shift 461 fd 188521 [22:01:52]save to /storage/0461/doc_00188521 [22:01:52]save last doc name /storage/0461/doc_00188521 to /storage/kkm_last_doc_name [22:01:52]save OK [22:01:52]Clear old archive folders... [22:01:52]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:01:52]tlvbuf is 0090D090 [22:01:52]SAM_PROTO_ClearQueue [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 09 00 00 [22:01:52]Write to MH i2c: E2 08 00 7C 05 80 09 00 00 00 00 00 00 F3 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:52]Read from MH i2c: E2 03 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 7C 05 00 90 00 F5 [22:01:52]RAPDU: 90 00 [22:01:52]wFMCommunicate OK [22:01:52]SAM_PROTO_ClearQueue done [22:01:52]KKMCreateOFDPacket [22:01:52]OFDProtocolAddRootSTLVToBuf [22:01:52]FM_MakeSignedData [22:01:52]FM_MakeSignedData [22:01:52]SAM_PROTO_SignData [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 0D 01 02 [22:01:52]Write to MH i2c: E2 08 00 7D 05 80 0D 01 02 00 00 00 00 FB [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 7D 05 00 90 00 F6 [22:01:52]RAPDU: 90 00 [22:01:52]wFMCommunicate OK [22:01:52]wFMCommunicate request_size=255 [22:01:52]MH_SAM_APDU [22: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 D0 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E0 02 00 35 04 06 00 AA [22:01:52]Write to MH i2c: E2 02 01 7E 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 D0 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E0 02 00 35 04 06 00 AA 00 00 C2 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 7E 05 00 90 00 F7 [22:01:52]RAPDU: 90 00 [22:01:52]wFMCommunicate OK [22:01:52]wFMCommunicate request_size=10 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 0D 02 02 05 18 52 05 73 6A [22:01:52]Write to MH i2c: E2 0D 00 7F 05 80 0D 02 02 05 00 18 52 05 73 6A 00 00 54 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 03 00 7F 05 00 90 00 F8 [22:01:52]RAPDU: 90 00 [22:01:52]wFMCommunicate OK [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 0D 03 02 [22:01:52]Write to MH i2c: E2 08 00 80 05 80 0D 03 02 00 00 00 00 00 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0B 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 0B 00 80 05 00 15 7D 36 EA 42 6A 7A 0A 90 00 E3 [22:01:52]RAPDU: 15 7D 36 EA 42 6A 7A 0A 90 00 [22:01:52]wFMCommunicate OK [22:01:52]SAM_PROTO_SignData done [22:01:52]FM_MakeSignedData done [22:01:52]CreateOFDProtocolMessage [22:01:52]wFMCommunicate request_size=4 [22:01:52]MH_SAM_APDU [22:01:52]CAPDU: 80 11 00 00 [22:01:52]Write to MH i2c: E2 08 00 81 05 80 11 00 00 00 00 00 00 00 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:52]Read from MH i2c: E2 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 17 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: E2 17 00 81 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4E [22:01:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:01:52]wFMCommunicate OK [22:01:52]CreateOFDProtocolMessage done [22:01:52]OFDSenderStorePacket 188521 [22:01:52]StoreOFDPacket docnum=188521 [22:01:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 15 07 01 96 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 D0 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E0 02 00 35 04 06 00 AA 18 52 05 73 6A 15 7D 36 EA 42 6A 7A 0A [22:01:52]CheckFolder [22:01:52]dirname=/storage/ofd_packets [22:01:52]CheckFolder done [22:01:52]ProducePacketName [22:01:52]name=ofd_packets/00188521 [22:01:52]NVStorageSaveData ofd_packets/00188521 [22:01:52]File name is /storage/ofd_packets/00188521 [22:01:52]Write 301 bytes [22:01:52]NVStorageSaveData done [22:01:52]OFDSenderStorePacket done [22:01:52]KKMCreateOFDPacket done [22:01:52]NVStorageSaveData kkm_last_timestamp [22:01:52]File name is /storage/kkm_last_timestamp [22:01:52]Write 4 bytes [22:01:52]NVStorageSaveData done [22:01:52]ExternCall_PrintAddStr [22:01:52]wPrintStart [22:01:52]Write to MH i2c: 01 00 00 82 05 87 [22:01:52]Write i2c OK [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: 01 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: 01 07 00 [22:01:52]MH_I2C_Read... [22:01:52]Read from MH i2c: 01 07 00 82 05 00 00 00 00 00 FF 0F 9C [22:01:52]RasterBufferAndPrint [22:01:52]line Счет N : (1)210583 [22:01:52]line ИНН: 02508201610067 [22:01:52]line Контрольно-Кассовый Чек [22:01:52]line ПРОДАЖА [22:01:52]line ТРК (МРК, ГНК) : 22 [22:01:52]line Товар: 2710124130 [22:01:52]line Аи-92-К-3 [22:01:52]line 14.950 * 66.90 [22:01:52]line = 1000.16 [22:01:52]line НДС 12% НСП 1% [22:01:52]line > о реализуемом товаре [22:01:52]line ОКРУГЛЕНИЕ: -0.16 [22:01:52]line ИТОГО: 1000.00 [22:01:52]line Внесено: 1000.00 [22:01:52]line СДАЧА: 0.00 [22:01:52]line НСП 1% : 8.85 [22:01:52]line НДС 12% : 106.21 [22:01:52]line Наличными: 1000.00 [22:01:52]line Безнал.: 0.00 [22:01:52]line Место: АЗС № 86 "Партнер Нефть" [22:01:52]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:01:52]line СНО: Общий режим [22:01:52]line Чек 550 22.10.2024 22:01 [22:01:52]line Смена: 461 ФФД: 1.0 [22:01:52]line ЗНМ: 0300000155 [22:01:52]line РНМ: 0000000000100030 [22:01:52]line Версия ККМ: 001 [22:01:52]line ФМ: 0000000000965340 [22:01:52]line ФД: 188521 [22:01:52]line ФПД: 187021432025962 [22:01:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220152&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188521&fm=187021432025962&tin=02508201610067®Number=0000000000100030&sum=100000 [22:01:53]OFD Sender: Processing packet 188521 [packets to send 1062, broken 1061] [22:01:53]ProducePacketName [22:01:53]name=ofd_packets/00188521 [22:01:53]OFD Sender: To server: pG, [22:01:53]CommunicateWithHost lk.salyk.kg:30040 [22:01:53]ConnectInit lk.salyk.kg [22:01:53]written 0, free lines is 4095 [22:01:53]Connected sock=10 [22:01:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 81 15 07 01 96 36 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 02 00 00 F4 03 04 00 D0 20 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E0 02 00 35 04 06 00 AA 18 52 05 73 6A 15 7D 36 EA 42 6A 7A 0A [22:01:53]Write to MH i2c: 01 00 00 AD 05 B2 [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: 01 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: 01 07 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: 01 07 00 AD 05 00 00 00 00 00 5A 0C 1F [22:01:53]RasterBufferAndPrint [22:01:53]line [22:01:53]line [22:01:53]line [22:01:53]line [22:01:53]line [22:01:53]written 0, free lines is 3166 [22:01:53]MH_Cut [22:01:53]Write to MH i2c: D1 01 00 B4 05 01 8B [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: D1 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: D1 01 00 [22:01:53]MH_I2C_Read... [22:01:53]Read from MH i2c: D1 01 00 B4 05 00 8A [22:01:53]Write to MH i2c: 01 00 00 B5 05 BA [22:01:53]Write i2c OK [22:01:53]MH_I2C_Read... [22:01:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 61 1E 47 00 2D 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 69 E0 02 00 F4 03 04 00 BC CA 17 67 B6 04 01 00 00 83 88 7B 79 EC E1 3A F6 [22:01:53]CommunicateWithHost err = 0 [22:01:53]CheckOFDResponse [22:01:53]1017 (14) - 77093643461234 [22:01:53]1041 (16) - 0000000000965340 [22:01:53]1040 (4) - 188521 [22:01:53]1012 (4) - 22.10.2024 15:54 [22:01:53]1206 (1) - 0 [22:01:53]OFD Sender: Remove packet 188521 [22:01:53]ProducePacketName [22:01:53]name=ofd_packets/00188521 [22:01:53]NVStorageDeleteData [22:01:54]OFD Sender: No OFD packet to send [22:01:54]*** Cut start [22:01:54]*** Partial cut [22:01:54]*** CUTSNS_PIN = 1 [22:01:54]*** CUTSNS_PIN = 0 [22:01:55]*** Brake cut motor [22:01:55]Read from MH i2c: 01 [22:01:55]MH_I2C_Read... [22:01:55]*** Stop cut motor [22:01:55]*** Cut end [22:01:55]Read from MH i2c: 01 07 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: 01 07 00 B5 05 00 00 00 00 00 FF 0F CF [22:01:55]process_action close_receipt done [22:01:55]requested_data is exist [22:01:55]produce_requested_data [22:01:55]requested_item fm.sn is exist - process it [22:01:55]wFMCommunicate request_size=4 [22:01:55]MH_SAM_APDU [22:01:55]CAPDU: 80 11 00 00 [22:01:55]Write to MH i2c: E2 08 00 B6 05 80 11 00 00 00 00 00 00 35 [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:55]Read from MH i2c: E2 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 17 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 17 00 B6 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 83 [22:01:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:01:55]wFMCommunicate OK [22:01:55]requested_item fd.num is exist - process it [22:01:55]SAM_PROTO_GetFieldsCounters [22:01:55]wFMCommunicate request_size=4 [22:01:55]MH_SAM_APDU [22:01:55]CAPDU: 80 13 00 00 [22:01:55]Write to MH i2c: E2 08 00 B7 05 80 13 00 00 00 00 00 00 38 [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:55]Read from MH i2c: E2 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 62 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 62 00 B7 05 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 26 02 00 00 5E 04 04 00 26 02 00 00 57 04 04 00 27 02 00 00 19 04 04 00 00 00 00 00 90 00 D0 [22:01:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 69 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 26 02 00 00 5E 04 04 00 26 02 00 00 57 04 04 00 27 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:01:55]wFMCommunicate OK [22:01:55]SAM_PROTO_GetFieldsCounters done [22:01:55]requested_item shift.num is exist - process it [22:01:55]requested_item shift.opened is exist - process it [22:01:55]req_shift_opened [22:01:55]FM_GetShiftState [22:01:55]SAM_PROTO_GetShiftState [22:01:55]wFMCommunicate request_size=4 [22:01:55]MH_SAM_APDU [22:01:55]CAPDU: 80 13 01 00 [22:01:55]Write to MH i2c: E2 08 00 B8 05 80 13 01 00 00 00 00 00 3A [22:01:55]Write i2c OK [22:01:55]MH_I2C_Read... [22:01:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:01:55]Read from MH i2c: E2 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 0E 00 [22:01:55]MH_I2C_Read... [22:01:55]Read from MH i2c: E2 0E 00 B8 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 2F [22:01:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:01:55]wFMCommunicate OK [22:01:55]SAM_PROTO_GetShiftState done [22:01:55]FM_GetShiftState done [22:01:55]req_shift_opened done [22:01:55]requested_item shift.open_date is exist - process it [22:01:55]req_shift_open_date [22:01:55]req_shift_open_date done [22:01:55]produce_requested_data done [22:01:55]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188521,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:01:55]process_action_free close_receipt [22:01:55]json_value_free [22:01:55]json_value_free done [22:01:55]process_json_proto returns [22:01:55]Send response to host [22:01:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188521,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:01:55]free response buf [22:01:55]execute_script done [22:01:55]execute_script returns [22:01:55]free content buf [22:01:55]Sock 7.Close socket [22:01:55]Sock 7.Thread stoped [22:01:59]OFD Sender: No OFD packet to send [22:02:04]OFD Sender: No OFD packet to send [22:02:09]OFD Sender: No OFD packet to send [22:02:14]OFD Sender: No OFD packet to send [22:02:19]OFD Sender: No OFD packet to send [22:02:24]OFD Sender: No OFD packet to send [22:02:29]OFD Sender: No OFD packet to send [22:02:34]OFD Sender: No OFD packet to send [22:02:39]OFD Sender: No OFD packet to send [22:02:44]OFD Sender: No OFD packet to send [22:02:49]OFD Sender: No OFD packet to send [22:02:54]OFD Sender: No OFD packet to send [22:02:59]OFD Sender: No OFD packet to send [22:03:04]OFD Sender: No OFD packet to send [22:03:05]accept exits with 9 [22:03:05]New connection [22:03:05]New thread 3066649956 created [22:03:05]Thread 3066506596 joined [22:03:05]Waiting for new connection... [22:03:05] Sock 9.Parse request [22:03:05]Sock 9.Check first char [22:03:05]Sock 9.First char is OK [22:03:05]request: POST /json_proto HTTP/1.0 [22:03:05]Method: POST [22:03:05]URL: /json_proto [22:03:05]Method is POST - this is cgi request [22:03:05]url: /json_proto [22:03:05]query_string will be loaded in cgi processing [22:03:05]execute_cgi json_proto POST (null) [22:03:05]execute_cgi path=json_proto method=POST [22:03:05]POST find Content-Length [22:03:05]Host: 172.17.42.131:8080 [22:03:05]Content-Length: 688 [22:03:05]Content-Type: application/json [22:03:05] [22:03:05]POST finish read [22:03:05]Found Content-Length = 688 [22:03:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 54.410, "sum" : 4200.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 4200.00, "payments": [ { "type": 0, "sum" : 4200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:05]execute_script... [22:03: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)210582", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 54.410, "sum" : 4200.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4200.00, "total" : 4200.00, "payments": [ { "type": 0, "sum" : 4200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:03:05]POST & json_proto [22:03:05]process_json_proto [22:03:05]json parsed OK: [22:03:05]protocol is kg_v1.0 [22:03:05]action value=close_receipt [22:03:05]process_action close_receipt [22:03:05]cmd_close_receipt [22:03:05]MH_GetDate [22:03:05]Write to MH i2c: F0 00 00 B9 05 AD [22:03:05]Write i2c OK [22:03:05]MH_I2C_Read... [22:03:05]Read from MH i2c: F0 [22:03:05]MH_I2C_Read... [22:03:05]Read from MH i2c: F0 09 00 [22:03:05]MH_I2C_Read... [22:03:05]Read from MH i2c: F0 09 00 B9 05 00 19 21 18 67 A0 18 CA 66 57 [22:03:05]GetLastDocTimeStamp 1729634512 [22:03:05]current date 1729634585 [22:03:05]FM_GetShiftState [22:03:05]SAM_PROTO_GetShiftState [22:03:05]wFMCommunicate request_size=4 [22:03:05]MH_SAM_APDU [22:03:05]CAPDU: 80 13 01 00 [22:03:05]Write to MH i2c: E2 08 00 BA 05 80 13 01 00 00 00 00 00 3C [22:03:05]Write i2c OK [22:03:05]MH_I2C_Read... [22:03:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:05]Read from MH i2c: E2 [22:03:05]MH_I2C_Read... [22:03:05]Read from MH i2c: E2 0E 00 [22:03:05]MH_I2C_Read... [22:03:05]Read from MH i2c: E2 0E 00 BA 05 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 31 [22:03:05]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:03:05]wFMCommunicate OK [22:03:05]SAM_PROTO_GetShiftState done [22:03:05]FM_GetShiftState done [22:03:05]opened in 1729556094 [22:03:05]opened+sec_in_day 1729642494 [22:03:05]quantity*price = 420045 [22:03:05]sum+1 = 420046 [22:03:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 4200.00 Внесено: 4200.00 СДАЧА: 0.00 НСП 1% : 37.17 НДС 12% : 446.06 Наличными: 4200.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 551 22.10.2024 22:03 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188522 ФПД: 40528858124292 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220305&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188522&fm=40528858124292&tin=02508201610067®Number=0000000000100030&sum=420000 [22:03:06]StoreToDocumentArchive [22:03:06]shift 461 fd 188522 [22:03:06]save to /storage/0461/doc_00188522 [22:03:06]save last doc name /storage/0461/doc_00188522 to /storage/kkm_last_doc_name [22:03:06]save OK [22:03:06]Clear old archive folders... [22:03:06]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:03:06]tlvbuf is 008FBF30 [22:03:06]SAM_PROTO_ClearQueue [22:03:06]wFMCommunicate request_size=4 [22:03:06]MH_SAM_APDU [22:03:06]CAPDU: 80 09 00 00 [22:03:06]Write to MH i2c: E2 08 00 C7 05 80 09 00 00 00 00 00 00 3E [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:03:06]Read from MH i2c: E2 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 C7 05 00 90 00 40 [22:03:06]RAPDU: 90 00 [22:03:06]wFMCommunicate OK [22:03:06]SAM_PROTO_ClearQueue done [22:03:06]KKMCreateOFDPacket [22:03:06]OFDProtocolAddRootSTLVToBuf [22:03:06]FM_MakeSignedData [22:03:06]FM_MakeSignedData [22:03:06]SAM_PROTO_SignData [22:03:06]wFMCommunicate request_size=4 [22:03:06]MH_SAM_APDU [22:03:06]CAPDU: 80 0D 01 02 [22:03:06]Write to MH i2c: E2 08 00 C8 05 80 0D 01 02 00 00 00 00 46 [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:03:06]Read from MH i2c: E2 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 C8 05 00 90 00 41 [22:03:06]RAPDU: 90 00 [22:03:06]wFMCommunicate OK [22:03:06]wFMCommunicate request_size=255 [22:03:06]MH_SAM_APDU [22:03:06]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CD 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 19 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E0 02 [22:03:06]Write to MH i2c: E2 02 01 C9 05 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CD 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 19 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E0 02 00 00 37 [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:06]Read from MH i2c: E2 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 C9 05 00 90 00 42 [22:03:06]RAPDU: 90 00 [22:03:06]wFMCommunicate OK [22:03:06]wFMCommunicate request_size=16 [22:03:06]MH_SAM_APDU [22:03:06]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 24 DC 5C 31 10 04 [22:03:06]Write to MH i2c: E2 13 00 CA 05 80 0D 02 02 0B 00 00 35 04 06 00 24 DC 5C 31 10 04 00 00 3F [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:03:06]Read from MH i2c: E2 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 03 00 CA 05 00 90 00 43 [22:03:06]RAPDU: 90 00 [22:03:06]wFMCommunicate OK [22:03:06]wFMCommunicate request_size=4 [22:03:06]MH_SAM_APDU [22:03:06]CAPDU: 80 0D 03 02 [22:03:06]Write to MH i2c: E2 08 00 CB 05 80 0D 03 02 00 00 00 00 4B [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:03:06]Read from MH i2c: E2 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 0B 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 0B 00 CB 05 00 1D DD CD 2F 35 A9 28 85 90 00 CD [22:03:06]RAPDU: 1D DD CD 2F 35 A9 28 85 90 00 [22:03:06]wFMCommunicate OK [22:03:06]SAM_PROTO_SignData done [22:03:06]FM_MakeSignedData done [22:03:06]CreateOFDProtocolMessage [22:03:06]wFMCommunicate request_size=4 [22:03:06]MH_SAM_APDU [22:03:06]CAPDU: 80 11 00 00 [22:03:06]Write to MH i2c: E2 08 00 CC 05 80 11 00 00 00 00 00 00 4B [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:06]Read from MH i2c: E2 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 17 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: E2 17 00 CC 05 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 99 [22:03:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:03:06]wFMCommunicate OK [22:03:06]CreateOFDProtocolMessage done [22:03:06]OFDSenderStorePacket 188522 [22:03:06]StoreOFDPacket docnum=188522 [22:03:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1E 36 0D 01 24 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CD 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 19 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E0 02 00 35 04 06 00 24 DC 5C 31 10 04 1D DD CD 2F 35 A9 28 85 [22:03:06]CheckFolder [22:03:06]dirname=/storage/ofd_packets [22:03:06]CheckFolder done [22:03:06]ProducePacketName [22:03:06]name=ofd_packets/00188522 [22:03:06]NVStorageSaveData ofd_packets/00188522 [22:03:06]File name is /storage/ofd_packets/00188522 [22:03:06]Write 307 bytes [22:03:06]NVStorageSaveData done [22:03:06]OFDSenderStorePacket done [22:03:06]KKMCreateOFDPacket done [22:03:06]NVStorageSaveData kkm_last_timestamp [22:03:06]File name is /storage/kkm_last_timestamp [22:03:06]Write 4 bytes [22:03:06]NVStorageSaveData done [22:03:06]ExternCall_PrintAddStr [22:03:06]wPrintStart [22:03:06]Write to MH i2c: 01 00 00 CD 05 D2 [22:03:06]Write i2c OK [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: 01 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: 01 07 00 [22:03:06]MH_I2C_Read... [22:03:06]Read from MH i2c: 01 07 00 CD 05 00 00 00 00 00 FF 0F E7 [22:03:06]RasterBufferAndPrint [22:03:06]line Счет N : (1)210582 [22:03:06]line ИНН: 02508201610067 [22:03:06]line Контрольно-Кассовый Чек [22:03:06]line ПРОДАЖА [22:03:06]line ТРК (МРК, ГНК) : 41 [22:03:06]line Товар: 2710194210 [22:03:06]line D-ENERGY ДТ-К-5 [22:03:06]line 54.410 * 77.20 [22:03:06]line = 4200.45 [22:03:06]line НДС 12% НСП 1% [22:03:06]line > о реализуемом товаре [22:03:06]line ОКРУГЛЕНИЕ: -0.45 [22:03:06]line ИТОГО: 4200.00 [22:03:06]line Внесено: 4200.00 [22:03:06]line СДАЧА: 0.00 [22:03:06]line НСП 1% : 37.17 [22:03:06]line НДС 12% : 446.06 [22:03:06]line Наличными: 4200.00 [22:03:06]line Безнал.: 0.00 [22:03:06]line Место: АЗС № 86 "Партнер Нефть" [22:03:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:03:06]line СНО: Общий режим [22:03:06]line Чек 551 22.10.2024 22:03 [22:03:06]line Смена: 461 ФФД: 1.0 [22:03:06]line ЗНМ: 0300000155 [22:03:06]line РНМ: 0000000000100030 [22:03:06]line Версия ККМ: 001 [22:03:06]line ФМ: 0000000000965340 [22:03:06]line ФД: 188522 [22:03:06]line ФПД: 40528858124292 [22:03:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220305&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188522&fm=40528858124292&tin=02508201610067®Number=0000000000100030&sum=420000 [22:03:06]written 0, free lines is 4095 [22:03:06]OFD Sender: Processing packet 188522 [packets to send 1062, broken 1061] [22:03:06]ProducePacketName [22:03:06]name=ofd_packets/00188522 [22:03:06]OFD Sender: To server: pG, [22:03:06]CommunicateWithHost lk.salyk.kg:30040 [22:03:06]ConnectInit lk.salyk.kg [22:03:07]Connected sock=7 [22:03:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1E 36 0D 01 24 A4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A D4 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 CD 68 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 68 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 85 0E 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3E AE 00 00 00 00 07 04 06 00 A0 68 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 02 00 00 F4 03 04 00 19 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E0 02 00 35 04 06 00 24 DC 5C 31 10 04 1D DD CD 2F 35 A9 28 85 [22:03:07]Write to MH i2c: 01 00 00 F8 05 FD [22:03:07]Write i2c OK [22:03:07]MH_I2C_Read... [22:03:07]Read from MH i2c: 01 [22:03:07]MH_I2C_Read... [22:03:07]Read from MH i2c: 01 07 00 [22:03:07]MH_I2C_Read... [22:03:07]Read from MH i2c: 01 07 00 F8 05 00 00 00 00 00 5F 0C 6F [22:03:07]RasterBufferAndPrint [22:03:07]line [22:03:07]line [22:03:07]line [22:03:07]line [22:03:07]line [22:03:07]written 0, free lines is 3170 [22:03:07]MH_Cut [22:03:07]Write to MH i2c: D1 01 00 FF 05 01 D6 [22:03:07]Write i2c OK [22:03:07]MH_I2C_Read... [22:03:07]Read from MH i2c: D1 [22:03:07]MH_I2C_Read... [22:03:07]Read from MH i2c: D1 01 00 [22:03:07]MH_I2C_Read... [22:03:07]Read from MH i2c: D1 01 00 FF 05 00 D5 [22:03:07]Write to MH i2c: 01 00 00 00 06 06 [22:03:07]Write i2c OK [22:03:07]MH_I2C_Read... [22:03:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 DA C5 47 00 B1 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6A E0 02 00 F4 03 04 00 06 CB 17 67 B6 04 01 00 00 1D FC E7 2D 5A C8 45 A0 [22:03:07]CommunicateWithHost err = 0 [22:03:07]CheckOFDResponse [22:03:07]1017 (14) - 77093643461234 [22:03:07]1041 (16) - 0000000000965340 [22:03:07]1040 (4) - 188522 [22:03:07]1012 (4) - 22.10.2024 15:55 [22:03:07]1206 (1) - 0 [22:03:07]OFD Sender: Remove packet 188522 [22:03:07]ProducePacketName [22:03:07]name=ofd_packets/00188522 [22:03:07]NVStorageDeleteData [22:03:08]OFD Sender: No OFD packet to send [22:03:08]*** Cut start [22:03:08]*** Partial cut [22:03:08]*** CUTSNS_PIN = 1 [22:03:08]*** CUTSNS_PIN = 0 [22:03:08]*** Brake cut motor [22:03:09]Read from MH i2c: 01 [22:03:09]MH_I2C_Read... [22:03:09]*** Stop cut motor [22:03:09]*** Cut end [22:03:09]Read from MH i2c: 01 07 00 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: 01 07 00 00 06 00 00 00 00 00 FF 0F 1B [22:03:09]process_action close_receipt done [22:03:09]requested_data is exist [22:03:09]produce_requested_data [22:03:09]requested_item fm.sn is exist - process it [22:03:09]wFMCommunicate request_size=4 [22:03:09]MH_SAM_APDU [22:03:09]CAPDU: 80 11 00 00 [22:03:09]Write to MH i2c: E2 08 00 01 06 80 11 00 00 00 00 00 00 81 [22:03:09]Write i2c OK [22:03:09]MH_I2C_Read... [22:03:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:03:09]Read from MH i2c: E2 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: E2 17 00 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: E2 17 00 01 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [22:03:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:03:09]wFMCommunicate OK [22:03:09]requested_item fd.num is exist - process it [22:03:09]SAM_PROTO_GetFieldsCounters [22:03:09]wFMCommunicate request_size=4 [22:03:09]MH_SAM_APDU [22:03:09]CAPDU: 80 13 00 00 [22:03:09]Write to MH i2c: E2 08 00 02 06 80 13 00 00 00 00 00 00 84 [22:03:09]Write i2c OK [22:03:09]MH_I2C_Read... [22:03:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:03:09]Read from MH i2c: E2 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: E2 62 00 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: E2 62 00 02 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 27 02 00 00 5E 04 04 00 27 02 00 00 57 04 04 00 28 02 00 00 19 04 04 00 00 00 00 00 90 00 20 [22:03:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 27 02 00 00 5E 04 04 00 27 02 00 00 57 04 04 00 28 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:03:09]wFMCommunicate OK [22:03:09]SAM_PROTO_GetFieldsCounters done [22:03:09]requested_item shift.num is exist - process it [22:03:09]requested_item shift.opened is exist - process it [22:03:09]req_shift_opened [22:03:09]FM_GetShiftState [22:03:09]SAM_PROTO_GetShiftState [22:03:09]wFMCommunicate request_size=4 [22:03:09]MH_SAM_APDU [22:03:09]CAPDU: 80 13 01 00 [22:03:09]Write to MH i2c: E2 08 00 03 06 80 13 01 00 00 00 00 00 86 [22:03:09]Write i2c OK [22:03:09]MH_I2C_Read... [22:03:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:03:09]Read from MH i2c: E2 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: E2 0E 00 [22:03:09]MH_I2C_Read... [22:03:09]Read from MH i2c: E2 0E 00 03 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7B [22:03:09]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:03:09]wFMCommunicate OK [22:03:09]SAM_PROTO_GetShiftState done [22:03:09]FM_GetShiftState done [22:03:09]req_shift_opened done [22:03:09]requested_item shift.open_date is exist - process it [22:03:09]req_shift_open_date [22:03:09]req_shift_open_date done [22:03:09]produce_requested_data done [22:03:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188522,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:03:09]process_action_free close_receipt [22:03:09]json_value_free [22:03:09]json_value_free done [22:03:09]process_json_proto returns [22:03:09]Send response to host [22:03:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188522,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:03:09]free response buf [22:03:09]execute_script done [22:03:09]execute_script returns [22:03:09]free content buf [22:03:09]Sock 9.Close socket [22:03:09]Sock 9.Thread stoped [22:03:13]OFD Sender: No OFD packet to send [22:03:18]OFD Sender: No OFD packet to send [22:03:23]OFD Sender: No OFD packet to send [22:03:28]OFD Sender: No OFD packet to send [22:03:33]OFD Sender: No OFD packet to send [22:03:38]OFD Sender: No OFD packet to send [22:03:43]OFD Sender: No OFD packet to send [22:03:48]OFD Sender: No OFD packet to send [22:03:53]OFD Sender: No OFD packet to send [22:03:58]OFD Sender: No OFD packet to send [22:04:03]OFD Sender: No OFD packet to send [22:04:08]OFD Sender: No OFD packet to send [22:04:13]OFD Sender: No OFD packet to send [22:04:18]OFD Sender: No OFD packet to send [22:04:23]OFD Sender: No OFD packet to send [22:04:28]OFD Sender: No OFD packet to send [22:04:33]OFD Sender: No OFD packet to send [22:04:38]OFD Sender: No OFD packet to send [22:04:43]OFD Sender: No OFD packet to send [22:04:48]OFD Sender: No OFD packet to send [22:04:53]OFD Sender: No OFD packet to send [22:04:58]accept exits with 10 [22:04:58]New connection [22:04:58]New thread 3066506596 created [22:04:58]Thread 3066649956 joined [22:04:58]Waiting for new connection... [22:04:58] Sock 10.Parse request [22:04:58]Sock 10.Check first char [22:04:58]Sock 10.First char is OK [22:04:58]request: POST /json_proto HTTP/1.0 [22:04:58]Method: POST [22:04:58]URL: /json_proto [22:04:58]Method is POST - this is cgi request [22:04:58]url: /json_proto [22:04:58]query_string will be loaded in cgi processing [22:04:58]execute_cgi json_proto POST (null) [22:04:58]execute_cgi path=json_proto method=POST [22:04:58]POST find Content-Length [22:04:58]Host: 172.17.42.131:8080 [22:04:58]Content-Length: 682 [22:04:58]Content-Type: application/json [22:04:58] [22:04:58]POST finish read [22:04:58]Found Content-Length = 682 [22:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:58]execute_script... [22:04: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)210585", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:04:58]POST & json_proto [22:04:58]process_json_proto [22:04:58]json parsed OK: [22:04:58]protocol is kg_v1.0 [22:04:58]action value=close_receipt [22:04:58]process_action close_receipt [22:04:58]cmd_close_receipt [22:04:58]MH_GetDate [22:04:58]Write to MH i2c: F0 00 00 04 06 F9 [22:04:58]Write i2c OK [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: F0 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: F0 09 00 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: F0 09 00 04 06 00 8A 21 18 67 A0 18 CA 66 14 [22:04:58]GetLastDocTimeStamp 1729634585 [22:04:58]current date 1729634698 [22:04:58]FM_GetShiftState [22:04:58]SAM_PROTO_GetShiftState [22:04:58]wFMCommunicate request_size=4 [22:04:58]MH_SAM_APDU [22:04:58]CAPDU: 80 13 01 00 [22:04:58]Write to MH i2c: E2 08 00 05 06 80 13 01 00 00 00 00 00 88 [22:04:58]Write i2c OK [22:04:58]MH_I2C_Read... [22:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:04:58]Read from MH i2c: E2 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 0E 00 [22:04:58]MH_I2C_Read... [22:04:58]Read from MH i2c: E2 0E 00 05 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 7D [22:04:58]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:04:58]wFMCommunicate OK [22:04:58]SAM_PROTO_GetShiftState done [22:04:58]FM_GetShiftState done [22:04:58]opened in 1729556094 [22:04:58]opened+sec_in_day 1729642494 [22:04:58]quantity*price = 100015 [22:04:58]sum+1 = 100017 [22:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 552 22.10.2024 22:04 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188523 ФПД: 278955541704132 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220458&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188523&fm=278955541704132&tin=02508201610067®Number=0000000000100030&sum=100000 [22:04:59]StoreToDocumentArchive [22:04:59]shift 461 fd 188523 [22:04:59]save to /storage/0461/doc_00188523 [22:04:59]save last doc name /storage/0461/doc_00188523 to /storage/kkm_last_doc_name [22:04:59]save OK [22:04:59]Clear old archive folders... [22:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:04:59]tlvbuf is 008D6860 [22:04:59]SAM_PROTO_ClearQueue [22:04:59]wFMCommunicate request_size=4 [22:04:59]MH_SAM_APDU [22:04:59]CAPDU: 80 09 00 00 [22:04:59]Write to MH i2c: E2 08 00 12 06 80 09 00 00 00 00 00 00 8A [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 12 06 00 90 00 8C [22:04:59]RAPDU: 90 00 [22:04:59]wFMCommunicate OK [22:04:59]SAM_PROTO_ClearQueue done [22:04:59]KKMCreateOFDPacket [22:04:59]OFDProtocolAddRootSTLVToBuf [22:04:59]FM_MakeSignedData [22:04:59]FM_MakeSignedData [22:04:59]SAM_PROTO_SignData [22:04:59]wFMCommunicate request_size=4 [22:04:59]MH_SAM_APDU [22:04:59]CAPDU: 80 0D 01 02 [22:04:59]Write to MH i2c: E2 08 00 13 06 80 0D 01 02 00 00 00 00 92 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 13 06 00 90 00 8D [22:04:59]RAPDU: 90 00 [22:04:59]wFMCommunicate OK [22:04:59]wFMCommunicate request_size=255 [22:04:59]MH_SAM_APDU [22:04: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 8A 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E0 02 00 35 04 06 00 FD [22:04:59]Write to MH i2c: E2 02 01 14 06 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 8A 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E0 02 00 35 04 06 00 FD 00 00 6B [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 14 06 00 90 00 8E [22:04:59]RAPDU: 90 00 [22:04:59]wFMCommunicate OK [22:04:59]wFMCommunicate request_size=10 [22:04:59]MH_SAM_APDU [22:04:59]CAPDU: 80 0D 02 02 05 B5 65 F8 AD C4 [22:04:59]Write to MH i2c: E2 0D 00 15 06 80 0D 02 02 05 00 B5 65 F8 AD C4 00 00 22 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 03 00 15 06 00 90 00 8F [22:04:59]RAPDU: 90 00 [22:04:59]wFMCommunicate OK [22:04:59]wFMCommunicate request_size=4 [22:04:59]MH_SAM_APDU [22:04:59]CAPDU: 80 0D 03 02 [22:04:59]Write to MH i2c: E2 08 00 16 06 80 0D 03 02 00 00 00 00 97 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 0B 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 0B 00 16 06 00 54 90 75 AF B6 13 0A 6F 90 00 E2 [22:04:59]RAPDU: 54 90 75 AF B6 13 0A 6F 90 00 [22:04:59]wFMCommunicate OK [22:04:59]SAM_PROTO_SignData done [22:04:59]FM_MakeSignedData done [22:04:59]CreateOFDProtocolMessage [22:04:59]wFMCommunicate request_size=4 [22:04:59]MH_SAM_APDU [22:04:59]CAPDU: 80 11 00 00 [22:04:59]Write to MH i2c: E2 08 00 17 06 80 11 00 00 00 00 00 00 97 [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:04:59]Read from MH i2c: E2 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 17 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: E2 17 00 17 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E5 [22:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:04:59]wFMCommunicate OK [22:04:59]CreateOFDProtocolMessage done [22:04:59]OFDSenderStorePacket 188523 [22:04:59]StoreOFDPacket docnum=188523 [22:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 44 37 07 01 F2 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 8A 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E0 02 00 35 04 06 00 FD B5 65 F8 AD C4 54 90 75 AF B6 13 0A 6F [22:04:59]CheckFolder [22:04:59]dirname=/storage/ofd_packets [22:04:59]CheckFolder done [22:04:59]ProducePacketName [22:04:59]name=ofd_packets/00188523 [22:04:59]NVStorageSaveData ofd_packets/00188523 [22:04:59]File name is /storage/ofd_packets/00188523 [22:04:59]Write 301 bytes [22:04:59]NVStorageSaveData done [22:04:59]OFDSenderStorePacket done [22:04:59]KKMCreateOFDPacket done [22:04:59]NVStorageSaveData kkm_last_timestamp [22:04:59]File name is /storage/kkm_last_timestamp [22:04:59]Write 4 bytes [22:04:59]NVStorageSaveData done [22:04:59]ExternCall_PrintAddStr [22:04:59]wPrintStart [22:04:59]Write to MH i2c: 01 00 00 18 06 1E [22:04:59]Write i2c OK [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: 01 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: 01 07 00 [22:04:59]MH_I2C_Read... [22:04:59]Read from MH i2c: 01 07 00 18 06 00 00 00 00 00 FF 0F 33 [22:04:59]RasterBufferAndPrint [22:04:59]line Счет N : (1)210585 [22:04:59]line ИНН: 02508201610067 [22:04:59]line Контрольно-Кассовый Чек [22:04:59]line ПРОДАЖА [22:04:59]line ТРК (МРК, ГНК) : 32 [22:04:59]line Товар: 2710124130 [22:04:59]line Аи-92-К-3 [22:04:59]line 14.950 * 66.90 [22:04:59]line = 1000.16 [22:04:59]line НДС 12% НСП 1% [22:04:59]line > о реализуемом товаре [22:04:59]line ОКРУГЛЕНИЕ: -0.16 [22:04:59]line ИТОГО: 1000.00 [22:04:59]line Внесено: 1000.00 [22:04:59]line СДАЧА: 0.00 [22:04:59]line НСП 1% : 8.85 [22:04:59]line НДС 12% : 106.21 [22:04:59]line Наличными: 1000.00 [22:04:59]line Безнал.: 0.00 [22:04:59]line Место: АЗС № 86 "Партнер Нефть" [22:04:59]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:04:59]line СНО: Общий режим [22:04:59]line Чек 552 22.10.2024 22:04 [22:04:59]line Смена: 461 ФФД: 1.0 [22:04:59]line ЗНМ: 0300000155 [22:04:59]line РНМ: 0000000000100030 [22:04:59]line Версия ККМ: 001 [22:04:59]line ФМ: 0000000000965340 [22:04:59]line ФД: 188523 [22:04:59]line ФПД: 278955541704132 [22:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220458&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188523&fm=278955541704132&tin=02508201610067®Number=0000000000100030&sum=100000 [22:04:59]written 0, free lines is 4095 [22:04:59]OFD Sender: Processing packet 188523 [packets to send 1062, broken 1061] [22:04:59]ProducePacketName [22:04:59]name=ofd_packets/00188523 [22:04:59]OFD Sender: To server: pG, [22:04:59]CommunicateWithHost lk.salyk.kg:30040 [22:04:59]ConnectInit lk.salyk.kg [22:05:00]Connected sock=9 [22:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 44 37 07 01 F2 59 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 02 00 00 F4 03 04 00 8A 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E0 02 00 35 04 06 00 FD B5 65 F8 AD C4 54 90 75 AF B6 13 0A 6F [22:05:00]Write to MH i2c: 01 00 00 43 06 49 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: 01 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: 01 07 00 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: 01 07 00 43 06 00 00 00 00 00 61 0C BD [22:05:00]RasterBufferAndPrint [22:05:00]line [22:05:00]line [22:05:00]line [22:05:00]line [22:05:00]line [22:05:00]written 0, free lines is 3174 [22:05:00]MH_Cut [22:05:00]Write to MH i2c: D1 01 00 4A 06 01 22 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: D1 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: D1 01 00 [22:05:00]MH_I2C_Read... [22:05:00]Read from MH i2c: D1 01 00 4A 06 00 21 [22:05:00]Write to MH i2c: 01 00 00 4B 06 51 [22:05:00]Write i2c OK [22:05:00]MH_I2C_Read... [22:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FD ED 47 00 4A 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6B E0 02 00 F4 03 04 00 77 CB 17 67 B6 04 01 00 00 0F 8B 96 10 F6 A0 6A A3 [22:05:00]CommunicateWithHost err = 0 [22:05:00]CheckOFDResponse [22:05:00]1017 (14) - 77093643461234 [22:05:00]1041 (16) - 0000000000965340 [22:05:00]1040 (4) - 188523 [22:05:00]1012 (4) - 22.10.2024 15:57 [22:05:00]1206 (1) - 0 [22:05:00]OFD Sender: Remove packet 188523 [22:05:00]ProducePacketName [22:05:00]name=ofd_packets/00188523 [22:05:00]NVStorageDeleteData [22:05:00]OFD Sender: No OFD packet to send [22:05:01]*** Cut start [22:05:01]*** Partial cut [22:05:01]*** CUTSNS_PIN = 1 [22:05:01]*** CUTSNS_PIN = 0 [22:05:01]*** Brake cut motor [22:05:02]Read from MH i2c: 01 [22:05:02]MH_I2C_Read... [22:05:02]*** Stop cut motor [22:05:02]*** Cut end [22:05:02]Read from MH i2c: 01 07 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: 01 07 00 4B 06 00 00 00 00 00 FF 0F 66 [22:05:02]process_action close_receipt done [22:05:02]requested_data is exist [22:05:02]produce_requested_data [22:05:02]requested_item fm.sn is exist - process it [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 11 00 00 [22:05:02]Write to MH i2c: E2 08 00 4C 06 80 11 00 00 00 00 00 00 CC [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 17 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 17 00 4C 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1A [22:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:05:02]wFMCommunicate OK [22:05:02]requested_item fd.num is exist - process it [22:05:02]SAM_PROTO_GetFieldsCounters [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 13 00 00 [22:05:02]Write to MH i2c: E2 08 00 4D 06 80 13 00 00 00 00 00 00 CF [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 62 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 62 00 4D 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 28 02 00 00 5E 04 04 00 28 02 00 00 57 04 04 00 29 02 00 00 19 04 04 00 00 00 00 00 90 00 6F [22:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 28 02 00 00 5E 04 04 00 28 02 00 00 57 04 04 00 29 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:02]wFMCommunicate OK [22:05:02]SAM_PROTO_GetFieldsCounters done [22:05:02]requested_item shift.num is exist - process it [22:05:02]requested_item shift.opened is exist - process it [22:05:02]req_shift_opened [22:05:02]FM_GetShiftState [22:05:02]SAM_PROTO_GetShiftState [22:05:02]wFMCommunicate request_size=4 [22:05:02]MH_SAM_APDU [22:05:02]CAPDU: 80 13 01 00 [22:05:02]Write to MH i2c: E2 08 00 4E 06 80 13 01 00 00 00 00 00 D1 [22:05:02]Write i2c OK [22:05:02]MH_I2C_Read... [22:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:02]Read from MH i2c: E2 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 0E 00 [22:05:02]MH_I2C_Read... [22:05:02]Read from MH i2c: E2 0E 00 4E 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C6 [22:05:02]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:05:02]wFMCommunicate OK [22:05:02]SAM_PROTO_GetShiftState done [22:05:02]FM_GetShiftState done [22:05:02]req_shift_opened done [22:05:02]requested_item shift.open_date is exist - process it [22:05:02]req_shift_open_date [22:05:02]req_shift_open_date done [22:05:02]produce_requested_data done [22:05:02]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188523,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:05:02]process_action_free close_receipt [22:05:02]json_value_free [22:05:02]json_value_free done [22:05:02]process_json_proto returns [22:05:02]Send response to host [22:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188523,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:05:02]free response buf [22:05:02]execute_script done [22:05:02]execute_script returns [22:05:02]free content buf [22:05:02]Sock 10.Close socket [22:05:02]Sock 10.Thread stoped [22:05:05]OFD Sender: No OFD packet to send [22:05:11]OFD Sender: No OFD packet to send [22:05:16]OFD Sender: No OFD packet to send [22:05:21]OFD Sender: No OFD packet to send [22:05:21]accept exits with 7 [22:05:21]New connection [22:05:21]New thread 3066649956 created [22:05:21]Thread 3066506596 joined [22:05:21]Waiting for new connection... [22:05:21] Sock 7.Parse request [22:05:21]Sock 7.Check first char [22:05:21]Sock 7.First char is OK [22:05:21]request: POST /json_proto HTTP/1.0 [22:05:21]Method: POST [22:05:21]URL: /json_proto [22:05:21]Method is POST - this is cgi request [22:05:21]url: /json_proto [22:05:21]query_string will be loaded in cgi processing [22:05:21]execute_cgi json_proto POST (null) [22:05:21]execute_cgi path=json_proto method=POST [22:05:21]POST find Content-Length [22:05:21]Host: 172.17.42.131:8080 [22:05:21]Content-Length: 767 [22:05:21]Content-Type: application/json [22:05:21] [22:05:21]POST finish read [22:05:21]Found Content-Length = 767 [22:05:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:21]execute_script... [22:05: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)210584", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:05:21]POST & json_proto [22:05:21]process_json_proto [22:05:21]json parsed OK: [22:05:21]protocol is kg_v1.0 [22:05:21]action value=close_receipt [22:05:21]process_action close_receipt [22:05:21]cmd_close_receipt [22:05:21]MH_GetDate [22:05:21]Write to MH i2c: F0 00 00 4F 06 44 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: F0 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: F0 09 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: F0 09 00 4F 06 00 A2 21 18 67 A0 18 CA 66 77 [22:05:21]GetLastDocTimeStamp 1729634698 [22:05:21]current date 1729634722 [22:05:21]FM_GetShiftState [22:05:21]SAM_PROTO_GetShiftState [22:05:21]wFMCommunicate request_size=4 [22:05:21]MH_SAM_APDU [22:05:21]CAPDU: 80 13 01 00 [22:05:21]Write to MH i2c: E2 08 00 50 06 80 13 01 00 00 00 00 00 D3 [22:05:21]Write i2c OK [22:05:21]MH_I2C_Read... [22:05:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:21]Read from MH i2c: E2 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 0E 00 [22:05:21]MH_I2C_Read... [22:05:21]Read from MH i2c: E2 0E 00 50 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 C8 [22:05:21]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:05:21]wFMCommunicate OK [22:05:21]SAM_PROTO_GetShiftState done [22:05:21]FM_GetShiftState done [22:05:21]opened in 1729556094 [22:05:21]opened+sec_in_day 1729642494 [22:05:21]quantity*price = 990066 [22:05:21]sum+1 = 990068 [22:05:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.67 НСП 1% : 87.62 НДС 12% : 1051.40 Наличными: 0.00 Безнал.: 9900.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 553 22.10.2024 22:05 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188524 ФПД: 105809954308893 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188524&fm=105809954308893&tin=02508201610067®Number=0000000000100030&sum=990067 [22:05:23]StoreToDocumentArchive [22:05:23]shift 461 fd 188524 [22:05:23]save to /storage/0461/doc_00188524 [22:05:23]save last doc name /storage/0461/doc_00188524 to /storage/kkm_last_doc_name [22:05:23]save OK [22:05:23]Clear old archive folders... [22:05:23]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:05:23]tlvbuf is 008C3840 [22:05:23]SAM_PROTO_ClearQueue [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 09 00 00 [22:05:23]Write to MH i2c: E2 08 00 5D 06 80 09 00 00 00 00 00 00 D5 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 5D 06 00 90 00 D7 [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]SAM_PROTO_ClearQueue done [22:05:23]KKMCreateOFDPacket [22:05:23]OFDProtocolAddRootSTLVToBuf [22:05:23]FM_MakeSignedData [22:05:23]FM_MakeSignedData [22:05:23]SAM_PROTO_SignData [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 01 02 [22:05:23]Write to MH i2c: E2 08 00 5E 06 80 0D 01 02 00 00 00 00 DD [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 5E 06 00 90 00 D8 [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]wFMCommunicate request_size=255 [22:05:23]MH_SAM_APDU [22:05: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 A2 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E0 02 00 35 04 06 00 60 3B CC BD [22:05:23]Write to MH i2c: E2 02 01 5F 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 A2 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E0 02 00 35 04 06 00 60 3B CC BD 00 00 B6 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 5F 06 00 90 00 D9 [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]wFMCommunicate request_size=7 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 02 02 02 83 1D [22:05:23]Write to MH i2c: E2 0A 00 60 06 80 0D 02 02 02 00 83 1D 00 00 84 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 03 00 60 06 00 90 00 DA [22:05:23]RAPDU: 90 00 [22:05:23]wFMCommunicate OK [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 0D 03 02 [22:05:23]Write to MH i2c: E2 08 00 61 06 80 0D 03 02 00 00 00 00 E2 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 0B 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 0B 00 61 06 00 E5 55 B7 AC 86 40 F2 18 90 00 50 [22:05:23]RAPDU: E5 55 B7 AC 86 40 F2 18 90 00 [22:05:23]wFMCommunicate OK [22:05:23]SAM_PROTO_SignData done [22:05:23]FM_MakeSignedData done [22:05:23]CreateOFDProtocolMessage [22:05:23]wFMCommunicate request_size=4 [22:05:23]MH_SAM_APDU [22:05:23]CAPDU: 80 11 00 00 [22:05:23]Write to MH i2c: E2 08 00 62 06 80 11 00 00 00 00 00 00 E2 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:23]Read from MH i2c: E2 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 17 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: E2 17 00 62 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [22:05:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:05:23]wFMCommunicate OK [22:05:23]CreateOFDProtocolMessage done [22:05:23]OFDSenderStorePacket 188524 [22:05:23]StoreOFDPacket docnum=188524 [22:05:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 34 0A 04 01 F4 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 A2 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E0 02 00 35 04 06 00 60 3B CC BD 83 1D E5 55 B7 AC 86 40 F2 18 [22:05:23]CheckFolder [22:05:23]dirname=/storage/ofd_packets [22:05:23]CheckFolder done [22:05:23]ProducePacketName [22:05:23]name=ofd_packets/00188524 [22:05:23]NVStorageSaveData ofd_packets/00188524 [22:05:23]File name is /storage/ofd_packets/00188524 [22:05:23]Write 298 bytes [22:05:23]NVStorageSaveData done [22:05:23]OFDSenderStorePacket done [22:05:23]KKMCreateOFDPacket done [22:05:23]NVStorageSaveData kkm_last_timestamp [22:05:23]File name is /storage/kkm_last_timestamp [22:05:23]Write 4 bytes [22:05:23]NVStorageSaveData done [22:05:23]ExternCall_PrintAddStr [22:05:23]wPrintStart [22:05:23]Write to MH i2c: 01 00 00 63 06 69 [22:05:23]Write i2c OK [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: 01 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: 01 07 00 [22:05:23]MH_I2C_Read... [22:05:23]Read from MH i2c: 01 07 00 63 06 00 00 00 00 00 FF 0F 7E [22:05:23]RasterBufferAndPrint [22:05:23]line Счет N : (1)210584 [22:05:23]line ИНН: 02508201610067 [22:05:23]line Контрольно-Кассовый Чек [22:05:23]line ПРОДАЖА [22:05:23]line ТРК (МРК, ГНК) : 51 [22:05:23]line Товар: 2710194210 [22:05:23]line ДТ-К-5 [22:05:23]line 129.930 * 76.20 [22:05:23]line = 9900.67 [22:05:23]line НДС 12% НСП 1% [22:05:23]line > о реализуемом товаре [22:05:23]line ИТОГО: 9900.67 [22:05:23]line НСП 1% : 87.62 [22:05:23]line НДС 12% : 1051.40 [22:05:23]line Наличными: 0.00 [22:05:23]line Безнал.: 9900.67 [22:05:23]line Место: АЗС № 86 "Партнер Нефть" [22:05:23]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:05:23]line СНО: Общий режим [22:05:23]line Чек 553 22.10.2024 22:05 [22:05:23]line Смена: 461 ФФД: 1.0 [22:05:23]line ЗНМ: 0300000155 [22:05:23]line РНМ: 0000000000100030 [22:05:23]line Версия ККМ: 001 [22:05:23]line Платежная система: Mbank [22:05:23]line ФМ: 0000000000965340 [22:05:23]line ФД: 188524 [22:05:23]line ФПД: 105809954308893 [22:05:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220522&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188524&fm=105809954308893&tin=02508201610067®Number=0000000000100030&sum=990067 [22:05:23]written 0, free lines is 4095 [22:05:23]OFD Sender: Processing packet 188524 [packets to send 1062, broken 1061] [22:05:23]ProducePacketName [22:05:23]name=ofd_packets/00188524 [22:05:23]OFD Sender: To server: pG, [22:05:23]CommunicateWithHost lk.salyk.kg:30040 [22:05:23]ConnectInit lk.salyk.kg [22:05:24]Connected sock=10 [22:05:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 34 0A 04 01 F4 75 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 02 00 00 F4 03 04 00 A2 21 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E0 02 00 35 04 06 00 60 3B CC BD 83 1D E5 55 B7 AC 86 40 F2 18 [22:05:24]Write to MH i2c: 01 00 00 8C 06 92 [22:05:24]Write i2c OK [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: 01 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: 01 07 00 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: 01 07 00 8C 06 00 00 00 00 00 94 0C 39 [22:05:24]RasterBufferAndPrint [22:05:24]line [22:05:24]line [22:05:24]line [22:05:24]line [22:05:24]line [22:05:24]written 0, free lines is 3224 [22:05:24]MH_Cut [22:05:24]Write to MH i2c: D1 01 00 93 06 01 6B [22:05:24]Write i2c OK [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: D1 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: D1 01 00 [22:05:24]MH_I2C_Read... [22:05:24]Read from MH i2c: D1 01 00 93 06 00 6A [22:05:24]Write to MH i2c: 01 00 00 94 06 9A [22:05:24]Write i2c OK [22:05:24]MH_I2C_Read... [22:05:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 22 E9 47 00 FA 8E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6C E0 02 00 F4 03 04 00 8F CB 17 67 B6 04 01 00 00 49 EA 4E DD 9E E8 EF C3 [22:05:24]CommunicateWithHost err = 0 [22:05:24]CheckOFDResponse [22:05:24]1017 (14) - 77093643461234 [22:05:24]1041 (16) - 0000000000965340 [22:05:24]1040 (4) - 188524 [22:05:24]1012 (4) - 22.10.2024 15:58 [22:05:24]1206 (1) - 0 [22:05:24]OFD Sender: Remove packet 188524 [22:05:24]ProducePacketName [22:05:24]name=ofd_packets/00188524 [22:05:24]NVStorageDeleteData [22:05:24]OFD Sender: No OFD packet to send [22:05:25]*** Cut start [22:05:25]*** Partial cut [22:05:25]*** CUTSNS_PIN = 1 [22:05:25]*** CUTSNS_PIN = 0 [22:05:25]*** Brake cut motor [22:05:25]Read from MH i2c: 01 [22:05:25]MH_I2C_Read... [22:05:25]*** Stop cut motor [22:05:25]*** Cut end [22:05:25]Read from MH i2c: 01 07 00 [22:05:25]MH_I2C_Read... [22:05:25]Read from MH i2c: 01 07 00 94 06 00 00 00 00 00 FF 0F AF [22:05:25]process_action close_receipt done [22:05:25]requested_data is exist [22:05:25]produce_requested_data [22:05:25]requested_item fm.sn is exist - process it [22:05:25]wFMCommunicate request_size=4 [22:05:25]MH_SAM_APDU [22:05:25]CAPDU: 80 11 00 00 [22:05:25]Write to MH i2c: E2 08 00 95 06 80 11 00 00 00 00 00 00 15 [22:05:25]Write i2c OK [22:05:25]MH_I2C_Read... [22:05:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:05:26]Read from MH i2c: E2 [22:05:26]MH_I2C_Read... [22:05:26]Read from MH i2c: E2 17 00 [22:05:26]MH_I2C_Read... [22:05:26]Read from MH i2c: E2 17 00 95 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 63 [22:05:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:05:26]wFMCommunicate OK [22:05:26]requested_item fd.num is exist - process it [22:05:26]SAM_PROTO_GetFieldsCounters [22:05:26]wFMCommunicate request_size=4 [22:05:26]MH_SAM_APDU [22:05:26]CAPDU: 80 13 00 00 [22:05:26]Write to MH i2c: E2 08 00 96 06 80 13 00 00 00 00 00 00 18 [22:05:26]Write i2c OK [22:05:26]MH_I2C_Read... [22:05:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:05:26]Read from MH i2c: E2 [22:05:26]MH_I2C_Read... [22:05:26]Read from MH i2c: E2 62 00 [22:05:26]MH_I2C_Read... [22:05:26]Read from MH i2c: E2 62 00 96 06 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 29 02 00 00 5E 04 04 00 29 02 00 00 57 04 04 00 2A 02 00 00 19 04 04 00 00 00 00 00 90 00 BC [22:05:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 29 02 00 00 5E 04 04 00 29 02 00 00 57 04 04 00 2A 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:05:26]wFMCommunicate OK [22:05:26]SAM_PROTO_GetFieldsCounters done [22:05:26]requested_item shift.num is exist - process it [22:05:26]requested_item shift.opened is exist - process it [22:05:26]req_shift_opened [22:05:26]FM_GetShiftState [22:05:26]SAM_PROTO_GetShiftState [22:05:26]wFMCommunicate request_size=4 [22:05:26]MH_SAM_APDU [22:05:26]CAPDU: 80 13 01 00 [22:05:26]Write to MH i2c: E2 08 00 97 06 80 13 01 00 00 00 00 00 1A [22:05:26]Write i2c OK [22:05:26]MH_I2C_Read... [22:05:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:05:26]Read from MH i2c: E2 [22:05:26]MH_I2C_Read... [22:05:26]Read from MH i2c: E2 0E 00 [22:05:26]MH_I2C_Read... [22:05:26]Read from MH i2c: E2 0E 00 97 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 0F [22:05:26]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:05:26]wFMCommunicate OK [22:05:26]SAM_PROTO_GetShiftState done [22:05:26]FM_GetShiftState done [22:05:26]req_shift_opened done [22:05:26]requested_item shift.open_date is exist - process it [22:05:26]req_shift_open_date [22:05:26]req_shift_open_date done [22:05:26]produce_requested_data done [22:05:26]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188524,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:05:26]process_action_free close_receipt [22:05:26]json_value_free [22:05:26]json_value_free done [22:05:26]process_json_proto returns [22:05:26]Send response to host [22:05:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188524,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:05:26]free response buf [22:05:26]execute_script done [22:05:26]execute_script returns [22:05:26]free content buf [22:05:26]Sock 7.Close socket [22:05:26]Sock 7.Thread stoped [22:05:29]OFD Sender: No OFD packet to send [22:05:35]OFD Sender: No OFD packet to send [22:05:40]OFD Sender: No OFD packet to send [22:05:45]OFD Sender: No OFD packet to send [22:05:50]OFD Sender: No OFD packet to send [22:05:55]OFD Sender: No OFD packet to send [22:06:00]OFD Sender: No OFD packet to send [22:06:05]OFD Sender: No OFD packet to send [22:06:10]OFD Sender: No OFD packet to send [22:06:15]OFD Sender: No OFD packet to send [22:06:20]OFD Sender: No OFD packet to send [22:06:25]OFD Sender: No OFD packet to send [22:06:30]OFD Sender: No OFD packet to send [22:06:35]OFD Sender: No OFD packet to send [22:06:40]OFD Sender: No OFD packet to send [22:06:45]OFD Sender: No OFD packet to send [22:06:50]OFD Sender: No OFD packet to send [22:06:55]OFD Sender: No OFD packet to send [22:06:56]accept exits with 9 [22:06:56]New connection [22:06:56]New thread 3066506596 created [22:06:56]Thread 3066649956 joined [22:06:56]Waiting for new connection... [22:06:56] Sock 9.Parse request [22:06:56]Sock 9.Check first char [22:06:56]Sock 9.First char is OK [22:06:56]request: POST /json_proto HTTP/1.0 [22:06:56]Method: POST [22:06:56]URL: /json_proto [22:06:56]Method is POST - this is cgi request [22:06:56]url: /json_proto [22:06:56]query_string will be loaded in cgi processing [22:06:56]execute_cgi json_proto POST (null) [22:06:56]execute_cgi path=json_proto method=POST [22:06:56]POST find Content-Length [22:06:56]Host: 172.17.42.131:8080 [22:06:56]Content-Length: 683 [22:06:56]Content-Type: application/json [22:06:56] [22:06:56]POST finish read [22:06:56]Found Content-Length = 683 [22:06:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.000, "sum" : 540.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:56]execute_script... [22:06: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)210586", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 7.000, "sum" : 540.40, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 540.00, "total" : 540.00, "payments": [ { "type": 0, "sum" : 540.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:06:56]POST & json_proto [22:06:56]process_json_proto [22:06:56]json parsed OK: [22:06:56]protocol is kg_v1.0 [22:06:56]action value=close_receipt [22:06:56]process_action close_receipt [22:06:56]cmd_close_receipt [22:06:56]MH_GetDate [22:06:56]Write to MH i2c: F0 00 00 98 06 8D [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: F0 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: F0 09 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: F0 09 00 98 06 00 01 22 18 67 A0 18 CA 66 20 [22:06:56]GetLastDocTimeStamp 1729634722 [22:06:56]current date 1729634817 [22:06:56]FM_GetShiftState [22:06:56]SAM_PROTO_GetShiftState [22:06:56]wFMCommunicate request_size=4 [22:06:56]MH_SAM_APDU [22:06:56]CAPDU: 80 13 01 00 [22:06:56]Write to MH i2c: E2 08 00 99 06 80 13 01 00 00 00 00 00 1C [22:06:56]Write i2c OK [22:06:56]MH_I2C_Read... [22:06:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:06:56]Read from MH i2c: E2 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 0E 00 [22:06:56]MH_I2C_Read... [22:06:56]Read from MH i2c: E2 0E 00 99 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 11 [22:06:56]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:06:56]wFMCommunicate OK [22:06:56]SAM_PROTO_GetShiftState done [22:06:56]FM_GetShiftState done [22:06:56]opened in 1729556094 [22:06:56]opened+sec_in_day 1729642494 [22:06:56]quantity*price = 54040 [22:06:56]sum+1 = 54041 [22:06:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.40 ИТОГО: 540.00 Внесено: 540.00 СДАЧА: 0.00 НСП 1% : 4.78 НДС 12% : 57.39 Наличными: 540.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 554 22.10.2024 22:06 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188525 ФПД: 215046467483010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188525&fm=215046467483010&tin=02508201610067®Number=0000000000100030&sum=54000 [22:06:57]StoreToDocumentArchive [22:06:57]shift 461 fd 188525 [22:06:57]save to /storage/0461/doc_00188525 [22:06:57]save last doc name /storage/0461/doc_00188525 to /storage/kkm_last_doc_name [22:06:57]save OK [22:06:57]Clear old archive folders... [22:06:57]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:06:57]tlvbuf is 008F2530 [22:06:57]SAM_PROTO_ClearQueue [22:06:57]wFMCommunicate request_size=4 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 09 00 00 [22:06:57]Write to MH i2c: E2 08 00 A6 06 80 09 00 00 00 00 00 00 1E [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 03 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 03 00 A6 06 00 90 00 20 [22:06:57]RAPDU: 90 00 [22:06:57]wFMCommunicate OK [22:06:57]SAM_PROTO_ClearQueue done [22:06:57]KKMCreateOFDPacket [22:06:57]OFDProtocolAddRootSTLVToBuf [22:06:57]FM_MakeSignedData [22:06:57]FM_MakeSignedData [22:06:57]SAM_PROTO_SignData [22:06:57]wFMCommunicate request_size=4 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 0D 01 02 [22:06:57]Write to MH i2c: E2 08 00 A7 06 80 0D 01 02 00 00 00 00 26 [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 03 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 03 00 A7 06 00 90 00 21 [22:06:57]RAPDU: 90 00 [22:06:57]wFMCommunicate OK [22:06:57]wFMCommunicate request_size=255 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 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 02 00 00 F4 03 04 00 01 22 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E0 02 [22:06:57]Write to MH i2c: E2 02 01 A8 06 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 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 02 00 00 F4 03 04 00 01 22 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E0 02 00 00 14 [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:57]Read from MH i2c: E2 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 03 00 [22:06:57]MH_I2C_Read... [22:06:57]Read from MH i2c: E2 03 00 A8 06 00 90 00 22 [22:06:57]RAPDU: 90 00 [22:06:57]wFMCommunicate OK [22:06:57]wFMCommunicate request_size=16 [22:06:57]MH_SAM_APDU [22:06:57]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 C3 95 68 4D F5 82 [22:06:57]Write to MH i2c: E2 13 00 A9 06 80 0D 02 02 0B 00 00 35 04 06 00 C3 95 68 4D F5 82 00 00 02 [22:06:57]Write i2c OK [22:06:57]MH_I2C_Read... [22:06:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:06:58]Read from MH i2c: E2 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: E2 03 00 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: E2 03 00 A9 06 00 90 00 23 [22:06:58]RAPDU: 90 00 [22:06:58]wFMCommunicate OK [22:06:58]wFMCommunicate request_size=4 [22:06:58]MH_SAM_APDU [22:06:58]CAPDU: 80 0D 03 02 [22:06:58]Write to MH i2c: E2 08 00 AA 06 80 0D 03 02 00 00 00 00 2B [22:06:58]Write i2c OK [22:06:58]MH_I2C_Read... [22:06:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:06:58]Read from MH i2c: E2 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: E2 0B 00 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: E2 0B 00 AA 06 00 B8 BA 82 C8 0A BE 03 79 90 00 2C [22:06:58]RAPDU: B8 BA 82 C8 0A BE 03 79 90 00 [22:06:58]wFMCommunicate OK [22:06:58]SAM_PROTO_SignData done [22:06:58]FM_MakeSignedData done [22:06:58]CreateOFDProtocolMessage [22:06:58]wFMCommunicate request_size=4 [22:06:58]MH_SAM_APDU [22:06:58]CAPDU: 80 11 00 00 [22:06:58]Write to MH i2c: E2 08 00 AB 06 80 11 00 00 00 00 00 00 2B [22:06:58]Write i2c OK [22:06:58]MH_I2C_Read... [22:06:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:06:58]Read from MH i2c: E2 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: E2 17 00 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: E2 17 00 AB 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 79 [22:06:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:06:58]wFMCommunicate OK [22:06:58]CreateOFDProtocolMessage done [22:06:58]OFDSenderStorePacket 188525 [22:06:58]StoreOFDPacket docnum=188525 [22:06:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7E 33 0D 01 9F 9A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 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 02 00 00 F4 03 04 00 01 22 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E0 02 00 35 04 06 00 C3 95 68 4D F5 82 B8 BA 82 C8 0A BE 03 79 [22:06:58]CheckFolder [22:06:58]dirname=/storage/ofd_packets [22:06:58]CheckFolder done [22:06:58]ProducePacketName [22:06:58]name=ofd_packets/00188525 [22:06:58]NVStorageSaveData ofd_packets/00188525 [22:06:58]File name is /storage/ofd_packets/00188525 [22:06:58]Write 307 bytes [22:06:58]NVStorageSaveData done [22:06:58]OFDSenderStorePacket done [22:06:58]KKMCreateOFDPacket done [22:06:58]NVStorageSaveData kkm_last_timestamp [22:06:58]File name is /storage/kkm_last_timestamp [22:06:58]Write 4 bytes [22:06:58]NVStorageSaveData done [22:06:58]ExternCall_PrintAddStr [22:06:58]wPrintStart [22:06:58]Write to MH i2c: 01 00 00 AC 06 B2 [22:06:58]Write i2c OK [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: 01 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: 01 07 00 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: 01 07 00 AC 06 00 00 00 00 00 FF 0F C7 [22:06:58]RasterBufferAndPrint [22:06:58]line Счет N : (1)210586 [22:06:58]line ИНН: 02508201610067 [22:06:58]line Контрольно-Кассовый Чек [22:06:58]line ПРОДАЖА [22:06:58]line ТРК (МРК, ГНК) : 11 [22:06:58]line Товар: 2710194210 [22:06:58]line D-ENERGY ДТ-К-5 [22:06:58]line 7.000 * 77.20 [22:06:58]line = 540.40 [22:06:58]line НДС 12% НСП 1% [22:06:58]line > о реализуемом товаре [22:06:58]line ОКРУГЛЕНИЕ: -0.40 [22:06:58]line ИТОГО: 540.00 [22:06:58]line Внесено: 540.00 [22:06:58]line СДАЧА: 0.00 [22:06:58]line НСП 1% : 4.78 [22:06:58]line НДС 12% : 57.39 [22:06:58]line Наличными: 540.00 [22:06:58]line Безнал.: 0.00 [22:06:58]line Место: АЗС № 86 "Партнер Нефть" [22:06:58]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:06:58]line СНО: Общий режим [22:06:58]line Чек 554 22.10.2024 22:06 [22:06:58]line Смена: 461 ФФД: 1.0 [22:06:58]line ЗНМ: 0300000155 [22:06:58]line РНМ: 0000000000100030 [22:06:58]line Версия ККМ: 001 [22:06:58]line ФМ: 0000000000965340 [22:06:58]line ФД: 188525 [22:06:58]line ФПД: 215046467483010 [22:06:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T220657&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188525&fm=215046467483010&tin=02508201610067®Number=0000000000100030&sum=54000 [22:06:58]written 0, free lines is 4095 [22:06:58]OFD Sender: Processing packet 188525 [packets to send 1062, broken 1061] [22:06:58]ProducePacketName [22:06:58]name=ofd_packets/00188525 [22:06:58]OFD Sender: To server: pG, [22:06:58]CommunicateWithHost lk.salyk.kg:30040 [22:06:58]ConnectInit lk.salyk.kg [22:06:58]Connected sock=10 [22:06:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 7E 33 0D 01 9F 9A 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 58 1B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 18 D3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 D2 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DE 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6B 16 00 00 00 00 07 04 06 00 F0 D2 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 02 00 00 F4 03 04 00 01 22 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6D E0 02 00 35 04 06 00 C3 95 68 4D F5 82 B8 BA 82 C8 0A BE 03 79 [22:06:58]Write to MH i2c: 01 00 00 D7 06 DD [22:06:58]Write i2c OK [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: 01 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: 01 07 00 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: 01 07 00 D7 06 00 00 00 00 00 5A 0C 4A [22:06:58]RasterBufferAndPrint [22:06:58]line [22:06:58]line [22:06:58]line [22:06:58]line [22:06:58]line [22:06:58]written 0, free lines is 3167 [22:06:58]MH_Cut [22:06:58]Write to MH i2c: D1 01 00 DE 06 01 B6 [22:06:58]Write i2c OK [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: D1 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: D1 01 00 [22:06:58]MH_I2C_Read... [22:06:58]Read from MH i2c: D1 01 00 DE 06 00 B5 [22:06:58]Write to MH i2c: 01 00 00 DF 06 E5 [22:06:58]Write i2c OK [22:06:58]MH_I2C_Read... [22:06:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 4D 47 00 7C 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 39 36 35 33 34 30 10 04 04 00 6D E0 02 00 F4 03 04 00 ED CB 17 67 B6 04 01 00 00 19 C1 D1 4E EF AA 5E 0D [22:06:58]CommunicateWithHost err = 0 [22:06:58]CheckOFDResponse [22:06:58]1017 (14) - 77093643461234 [22:06:58]1041 (16) - 0000000000965340 [22:06:58]1040 (4) - 188525 [22:06:58]1012 (4) - 22.10.2024 15:59 [22:06:58]1206 (1) - 0 [22:06:58]OFD Sender: Remove packet 188525 [22:06:58]ProducePacketName [22:06:58]name=ofd_packets/00188525 [22:06:58]NVStorageDeleteData [22:06:59]OFD Sender: No OFD packet to send [22:06:59]*** Cut start [22:06:59]*** Partial cut [22:06:59]*** CUTSNS_PIN = 1 [22:06:59]*** CUTSNS_PIN = 0 [22:07:00]*** Brake cut motor [22:07:00]Read from MH i2c: 01 [22:07:00]MH_I2C_Read... [22:07:00]*** Stop cut motor [22:07:00]*** Cut end [22:07:00]Read from MH i2c: 01 07 00 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: 01 07 00 DF 06 00 00 00 00 00 FF 0F FA [22:07:00]process_action close_receipt done [22:07:00]requested_data is exist [22:07:00]produce_requested_data [22:07:00]requested_item fm.sn is exist - process it [22:07:00]wFMCommunicate request_size=4 [22:07:00]MH_SAM_APDU [22:07:00]CAPDU: 80 11 00 00 [22:07:00]Write to MH i2c: E2 08 00 E0 06 80 11 00 00 00 00 00 00 60 [22:07:00]Write i2c OK [22:07:00]MH_I2C_Read... [22:07:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:07:00]Read from MH i2c: E2 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 17 00 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 17 00 E0 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AE [22:07:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:07:00]wFMCommunicate OK [22:07:00]requested_item fd.num is exist - process it [22:07:00]SAM_PROTO_GetFieldsCounters [22:07:00]wFMCommunicate request_size=4 [22:07:00]MH_SAM_APDU [22:07:00]CAPDU: 80 13 00 00 [22:07:00]Write to MH i2c: E2 08 00 E1 06 80 13 00 00 00 00 00 00 63 [22:07:00]Write i2c OK [22:07:00]MH_I2C_Read... [22:07:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:07:00]Read from MH i2c: E2 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 62 00 [22:07:00]MH_I2C_Read... [22:07:00]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2A 02 00 00 5E 04 04 00 2A 02 00 00 57 04 04 00 2B 02 00 00 19 04 04 00 00 00 00 00 90 00 0B [22:07:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2A 02 00 00 5E 04 04 00 2A 02 00 00 57 04 04 00 2B 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:07:00]wFMCommunicate OK [22:07:00]SAM_PROTO_GetFieldsCounters done [22:07:00]requested_item shift.num is exist - process it [22:07:00]requested_item shift.opened is exist - process it [22:07:00]req_shift_opened [22:07:00]FM_GetShiftState [22:07:00]SAM_PROTO_GetShiftState [22:07:00]wFMCommunicate request_size=4 [22:07:00]MH_SAM_APDU [22:07:00]CAPDU: 80 13 01 00 [22:07:00]Write to MH i2c: E2 08 00 E2 06 80 13 01 00 00 00 00 00 65 [22:07:00]Write i2c OK [22:07:00]MH_I2C_Read... [22:07:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:07:00]Read from MH i2c: E2 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 0E 00 [22:07:00]MH_I2C_Read... [22:07:00]Read from MH i2c: E2 0E 00 E2 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5A [22:07:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:07:00]wFMCommunicate OK [22:07:00]SAM_PROTO_GetShiftState done [22:07:00]FM_GetShiftState done [22:07:00]req_shift_opened done [22:07:00]requested_item shift.open_date is exist - process it [22:07:00]req_shift_open_date [22:07:00]req_shift_open_date done [22:07:00]produce_requested_data done [22:07:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188525,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:07:00]process_action_free close_receipt [22:07:00]json_value_free [22:07:00]json_value_free done [22:07:00]process_json_proto returns [22:07:00]Send response to host [22:07:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188525,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:07:00]free response buf [22:07:00]execute_script done [22:07:00]execute_script returns [22:07:00]free content buf [22:07:00]Sock 9.Close socket [22:07:00]Sock 9.Thread stoped [22:07:04]OFD Sender: No OFD packet to send [22:07:09]OFD Sender: No OFD packet to send [22:07:14]OFD Sender: No OFD packet to send [22:07:19]OFD Sender: No OFD packet to send [22:07:24]OFD Sender: No OFD packet to send [22:07:29]OFD Sender: No OFD packet to send [22:07:34]OFD Sender: No OFD packet to send [22:07:39]OFD Sender: No OFD packet to send [22:07:44]OFD Sender: No OFD packet to send [22:07:49]OFD Sender: No OFD packet to send [22:07:54]OFD Sender: No OFD packet to send [22:07:59]OFD Sender: No OFD packet to send [22:08:04]OFD Sender: No OFD packet to send [22:08:09]OFD Sender: No OFD packet to send [22:08:14]OFD Sender: No OFD packet to send [22:08:19]OFD Sender: No OFD packet to send [22:08:24]OFD Sender: No OFD packet to send [22:08:29]OFD Sender: No OFD packet to send [22:08:34]OFD Sender: No OFD packet to send [22:08:39]OFD Sender: No OFD packet to send [22:08:44]OFD Sender: No OFD packet to send [22:08:49]OFD Sender: No OFD packet to send [22:08:54]OFD Sender: No OFD packet to send [22:08:59]OFD Sender: No OFD packet to send [22:09:04]OFD Sender: No OFD packet to send [22:09:09]OFD Sender: No OFD packet to send [22:09:14]OFD Sender: No OFD packet to send [22:09:19]OFD Sender: No OFD packet to send [22:09:25]OFD Sender: No OFD packet to send [22:09:30]OFD Sender: No OFD packet to send [22:09:35]OFD Sender: No OFD packet to send [22:09:40]OFD Sender: No OFD packet to send [22:09:45]OFD Sender: No OFD packet to send [22:09:50]OFD Sender: No OFD packet to send [22:09:55]OFD Sender: No OFD packet to send [22:10:00]OFD Sender: No OFD packet to send [22:10:05]OFD Sender: No OFD packet to send [22:10:10]OFD Sender: No OFD packet to send [22:10:15]OFD Sender: No OFD packet to send [22:10:20]OFD Sender: No OFD packet to send [22:10:25]OFD Sender: No OFD packet to send [22:10:30]OFD Sender: No OFD packet to send [22:10:35]OFD Sender: No OFD packet to send [22:10:40]OFD Sender: No OFD packet to send [22:10:45]OFD Sender: No OFD packet to send [22:10:50]OFD Sender: No OFD packet to send [22:10:55]OFD Sender: No OFD packet to send [22:11:00]OFD Sender: No OFD packet to send [22:11:05]OFD Sender: No OFD packet to send [22:11:10]OFD Sender: No OFD packet to send [22:11:15]OFD Sender: No OFD packet to send [22:11:20]OFD Sender: No OFD packet to send [22:11:25]OFD Sender: No OFD packet to send [22:11:30]OFD Sender: No OFD packet to send [22:11:35]OFD Sender: No OFD packet to send [22:11:40]OFD Sender: No OFD packet to send [22:11:45]OFD Sender: No OFD packet to send [22:11:50]OFD Sender: No OFD packet to send [22:11:55]OFD Sender: No OFD packet to send [22:12:00]OFD Sender: No OFD packet to send [22:12:05]OFD Sender: No OFD packet to send [22:12:10]OFD Sender: No OFD packet to send [22:12:15]OFD Sender: No OFD packet to send [22:12:20]OFD Sender: No OFD packet to send [22:12:23]accept exits with 7 [22:12:23]New connection [22:12:23]New thread 3066649956 created [22:12:23]Thread 3066506596 joined [22:12:23]Waiting for new connection... [22:12:23] Sock 7.Parse request [22:12:23]Sock 7.Check first char [22:12:23]Sock 7.First char is OK [22:12:23]request: POST /json_proto HTTP/1.0 [22:12:23]Method: POST [22:12:23]URL: /json_proto [22:12:23]Method is POST - this is cgi request [22:12:23]url: /json_proto [22:12:23]query_string will be loaded in cgi processing [22:12:23]execute_cgi json_proto POST (null) [22:12:23]execute_cgi path=json_proto method=POST [22:12:23]POST find Content-Length [22:12:23]Host: 172.17.42.131:8080 [22:12:23]Content-Length: 767 [22:12:23]Content-Type: application/json [22:12:23] [22:12:23]POST finish read [22:12:23]Found Content-Length = 767 [22:12:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:23]execute_script... [22:12: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)210587", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 129.930, "sum" : 9900.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: Mbank", "payments": [ { "type": 1, "sum" : 9900.67 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:23]POST & json_proto [22:12:23]process_json_proto [22:12:23]json parsed OK: [22:12:23]protocol is kg_v1.0 [22:12:23]action value=close_receipt [22:12:23]process_action close_receipt [22:12:23]cmd_close_receipt [22:12:23]MH_GetDate [22:12:23]Write to MH i2c: F0 00 00 E3 06 D8 [22:12:23]Write i2c OK [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: F0 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: F0 09 00 [22:12:23]MH_I2C_Read... [22:12:23]Read from MH i2c: F0 09 00 E3 06 00 48 23 18 67 A0 18 CA 66 B3 [22:12:23]GetLastDocTimeStamp 1729634817 [22:12:23]current date 1729635144 [22:12:23]FM_GetShiftState [22:12:23]SAM_PROTO_GetShiftState [22:12:23]wFMCommunicate request_size=4 [22:12:23]MH_SAM_APDU [22:12:23]CAPDU: 80 13 01 00 [22:12:23]Write to MH i2c: E2 08 00 E4 06 80 13 01 00 00 00 00 00 67 [22:12:23]Write i2c OK [22:12:23]MH_I2C_Read... [22:12:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:24]Read from MH i2c: E2 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 0E 00 [22:12:24]MH_I2C_Read... [22:12:24]Read from MH i2c: E2 0E 00 E4 06 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 5C [22:12:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:12:24]wFMCommunicate OK [22:12:24]SAM_PROTO_GetShiftState done [22:12:24]FM_GetShiftState done [22:12:24]opened in 1729556094 [22:12:24]opened+sec_in_day 1729642494 [22:12:24]quantity*price = 990066 [22:12:24]sum+1 = 990068 [22:12:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 9900.67 НСП 1% : 87.62 НДС 12% : 1051.40 Наличными: 0.00 Безнал.: 9900.67 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 555 22.10.2024 22:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188526 ФПД: 182255149221970 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221224&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188526&fm=182255149221970&tin=02508201610067®Number=0000000000100030&sum=990067 [22:12:25]StoreToDocumentArchive [22:12:25]shift 461 fd 188526 [22:12:25]save to /storage/0461/doc_00188526 [22:12:25]save last doc name /storage/0461/doc_00188526 to /storage/kkm_last_doc_name [22:12:25]save OK [22:12:25]Clear old archive folders... [22:12:25]ProcessDocumentItem done err = 0, tmpTLVsize=248 [22:12:25]tlvbuf is 008C4F80 [22:12:25]SAM_PROTO_ClearQueue [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 09 00 00 [22:12:25]Write to MH i2c: E2 08 00 F1 06 80 09 00 00 00 00 00 00 69 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 F1 06 00 90 00 6B [22:12:25]RAPDU: 90 00 [22:12:25]wFMCommunicate OK [22:12:25]SAM_PROTO_ClearQueue done [22:12:25]KKMCreateOFDPacket [22:12:25]OFDProtocolAddRootSTLVToBuf [22:12:25]FM_MakeSignedData [22:12:25]FM_MakeSignedData [22:12:25]SAM_PROTO_SignData [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 0D 01 02 [22:12:25]Write to MH i2c: E2 08 00 F2 06 80 0D 01 02 00 00 00 00 71 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 F2 06 00 90 00 6C [22:12:25]RAPDU: 90 00 [22:12:25]wFMCommunicate OK [22:12:25]wFMCommunicate request_size=255 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 48 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E0 02 00 35 04 06 00 A5 C2 95 6D [22:12:25]Write to MH i2c: E2 02 01 F3 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 48 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E0 02 00 35 04 06 00 A5 C2 95 6D 00 00 3B [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 F3 06 00 90 00 6D [22:12:25]RAPDU: 90 00 [22:12:25]wFMCommunicate OK [22:12:25]wFMCommunicate request_size=7 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 0D 02 02 02 88 52 [22:12:25]Write to MH i2c: E2 0A 00 F4 06 80 0D 02 02 02 00 88 52 00 00 52 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 03 00 F4 06 00 90 00 6E [22:12:25]RAPDU: 90 00 [22:12:25]wFMCommunicate OK [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 0D 03 02 [22:12:25]Write to MH i2c: E2 08 00 F5 06 80 0D 03 02 00 00 00 00 76 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 0B 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 0B 00 F5 06 00 8E 5B DF 28 EB ED 41 91 90 00 11 [22:12:25]RAPDU: 8E 5B DF 28 EB ED 41 91 90 00 [22:12:25]wFMCommunicate OK [22:12:25]SAM_PROTO_SignData done [22:12:25]FM_MakeSignedData done [22:12:25]CreateOFDProtocolMessage [22:12:25]wFMCommunicate request_size=4 [22:12:25]MH_SAM_APDU [22:12:25]CAPDU: 80 11 00 00 [22:12:25]Write to MH i2c: E2 08 00 F6 06 80 11 00 00 00 00 00 00 76 [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:25]Read from MH i2c: E2 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 17 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: E2 17 00 F6 06 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [22:12:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:12:25]wFMCommunicate OK [22:12:25]CreateOFDProtocolMessage done [22:12:25]OFDSenderStorePacket 188526 [22:12:25]StoreOFDPacket docnum=188526 [22:12:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D3 7B 04 01 59 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 48 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E0 02 00 35 04 06 00 A5 C2 95 6D 88 52 8E 5B DF 28 EB ED 41 91 [22:12:25]CheckFolder [22:12:25]dirname=/storage/ofd_packets [22:12:25]CheckFolder done [22:12:25]ProducePacketName [22:12:25]name=ofd_packets/00188526 [22:12:25]NVStorageSaveData ofd_packets/00188526 [22:12:25]File name is /storage/ofd_packets/00188526 [22:12:25]Write 298 bytes [22:12:25]NVStorageSaveData done [22:12:25]OFDSenderStorePacket done [22:12:25]KKMCreateOFDPacket done [22:12:25]NVStorageSaveData kkm_last_timestamp [22:12:25]File name is /storage/kkm_last_timestamp [22:12:25]Write 4 bytes [22:12:25]NVStorageSaveData done [22:12:25]ExternCall_PrintAddStr [22:12:25]wPrintStart [22:12:25]Write to MH i2c: 01 00 00 F7 06 FD [22:12:25]Write i2c OK [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: 01 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: 01 07 00 [22:12:25]MH_I2C_Read... [22:12:25]Read from MH i2c: 01 07 00 F7 06 00 00 00 00 00 FF 0F 12 [22:12:25]RasterBufferAndPrint [22:12:25]line Счет N : (1)210587 [22:12:25]line ИНН: 02508201610067 [22:12:25]line Контрольно-Кассовый Чек [22:12:25]line ПРОДАЖА [22:12:25]line ТРК (МРК, ГНК) : 51 [22:12:25]line Товар: 2710194210 [22:12:25]line ДТ-К-5 [22:12:25]line 129.930 * 76.20 [22:12:25]line = 9900.67 [22:12:25]line НДС 12% НСП 1% [22:12:25]line > о реализуемом товаре [22:12:25]line ИТОГО: 9900.67 [22:12:25]line НСП 1% : 87.62 [22:12:25]line НДС 12% : 1051.40 [22:12:25]line Наличными: 0.00 [22:12:25]line Безнал.: 9900.67 [22:12:25]line Место: АЗС № 86 "Партнер Нефть" [22:12:25]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:12:25]line СНО: Общий режим [22:12:25]line Чек 555 22.10.2024 22:12 [22:12:25]line Смена: 461 ФФД: 1.0 [22:12:25]line ЗНМ: 0300000155 [22:12:25]line РНМ: 0000000000100030 [22:12:25]line Версия ККМ: 001 [22:12:25]line Платежная система: Mbank [22:12:25]line ФМ: 0000000000965340 [22:12:25]line ФД: 188526 [22:12:25]line ФПД: 182255149221970 [22:12:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221224&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188526&fm=182255149221970&tin=02508201610067®Number=0000000000100030&sum=990067 [22:12:25]written 0, free lines is 4095 [22:12:25]OFD Sender: Processing packet 188526 [packets to send 1062, broken 1061] [22:12:25]ProducePacketName [22:12:25]name=ofd_packets/00188526 [22:12:25]OFD Sender: To server: pG, [22:12:25]CommunicateWithHost lk.salyk.kg:30040 [22:12:25]ConnectInit lk.salyk.kg [22:12:25]Connected sock=10 [22:12:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 D3 7B 04 01 59 A5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 8A FB 01 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 73 1B 0F 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 73 1B 0F 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3A 22 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B4 9A 01 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 73 1B 0F 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 02 00 00 F4 03 04 00 48 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E0 02 00 35 04 06 00 A5 C2 95 6D 88 52 8E 5B DF 28 EB ED 41 91 [22:12:26]Write to MH i2c: 01 00 00 20 07 27 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: 01 07 00 20 07 00 00 00 00 00 85 0C BF [22:12:26]RasterBufferAndPrint [22:12:26]line [22:12:26]line [22:12:26]line [22:12:26]line [22:12:26]line [22:12:26]written 0, free lines is 3209 [22:12:26]MH_Cut [22:12:26]Write to MH i2c: D1 01 00 27 07 01 00 [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: D1 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: D1 01 00 [22:12:26]MH_I2C_Read... [22:12:26]Read from MH i2c: D1 01 00 27 07 00 FF [22:12:26]Write to MH i2c: 01 00 00 28 07 2F [22:12:26]Write i2c OK [22:12:26]MH_I2C_Read... [22:12:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E0 7E 47 00 F9 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6E E0 02 00 F4 03 04 00 35 CD 17 67 B6 04 01 00 00 DD 62 B0 1E 38 2B 6E B3 [22:12:26]CommunicateWithHost err = 0 [22:12:26]CheckOFDResponse [22:12:26]1017 (14) - 77093643461234 [22:12:26]1041 (16) - 0000000000965340 [22:12:26]1040 (4) - 188526 [22:12:26]1012 (4) - 22.10.2024 16:05 [22:12:26]1206 (1) - 0 [22:12:26]OFD Sender: Remove packet 188526 [22:12:26]ProducePacketName [22:12:26]name=ofd_packets/00188526 [22:12:26]NVStorageDeleteData [22:12:26]OFD Sender: No OFD packet to send [22:12:27]*** Cut start [22:12:27]*** Partial cut [22:12:27]*** CUTSNS_PIN = 1 [22:12:27]*** CUTSNS_PIN = 0 [22:12:27]*** Brake cut motor [22:12:28]Read from MH i2c: 01 [22:12:28]MH_I2C_Read... [22:12:28]*** Stop cut motor [22:12:28]*** Cut end [22:12:28]Read from MH i2c: 01 07 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: 01 07 00 28 07 00 00 00 00 00 FF 0F 44 [22:12:28]process_action close_receipt done [22:12:28]requested_data is exist [22:12:28]produce_requested_data [22:12:28]requested_item fm.sn is exist - process it [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 11 00 00 [22:12:28]Write to MH i2c: E2 08 00 29 07 80 11 00 00 00 00 00 00 AA [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 17 00 29 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [22:12:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:12:28]wFMCommunicate OK [22:12:28]requested_item fd.num is exist - process it [22:12:28]SAM_PROTO_GetFieldsCounters [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 13 00 00 [22:12:28]Write to MH i2c: E2 08 00 2A 07 80 13 00 00 00 00 00 00 AD [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 62 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 62 00 2A 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2B 02 00 00 5E 04 04 00 2B 02 00 00 57 04 04 00 2C 02 00 00 19 04 04 00 00 00 00 00 90 00 59 [22:12:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6E E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2B 02 00 00 5E 04 04 00 2B 02 00 00 57 04 04 00 2C 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:28]wFMCommunicate OK [22:12:28]SAM_PROTO_GetFieldsCounters done [22:12:28]requested_item shift.num is exist - process it [22:12:28]requested_item shift.opened is exist - process it [22:12:28]req_shift_opened [22:12:28]FM_GetShiftState [22:12:28]SAM_PROTO_GetShiftState [22:12:28]wFMCommunicate request_size=4 [22:12:28]MH_SAM_APDU [22:12:28]CAPDU: 80 13 01 00 [22:12:28]Write to MH i2c: E2 08 00 2B 07 80 13 01 00 00 00 00 00 AF [22:12:28]Write i2c OK [22:12:28]MH_I2C_Read... [22:12:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:28]Read from MH i2c: E2 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 0E 00 [22:12:28]MH_I2C_Read... [22:12:28]Read from MH i2c: E2 0E 00 2B 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A4 [22:12:28]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:12:28]wFMCommunicate OK [22:12:28]SAM_PROTO_GetShiftState done [22:12:28]FM_GetShiftState done [22:12:28]req_shift_opened done [22:12:28]requested_item shift.open_date is exist - process it [22:12:28]req_shift_open_date [22:12:28]req_shift_open_date done [22:12:28]produce_requested_data done [22:12:28]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188526,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:12:28]process_action_free close_receipt [22:12:28]json_value_free [22:12:28]json_value_free done [22:12:28]process_json_proto returns [22:12:28]Send response to host [22:12:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188526,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:12:28]free response buf [22:12:28]execute_script done [22:12:28]execute_script returns [22:12:28]free content buf [22:12:28]Sock 7.Close socket [22:12:28]Sock 7.Thread stoped [22:12:29]accept exits with 9 [22:12:29]New connection [22:12:29]New thread 3066506596 created [22:12:29]Thread 3066649956 joined [22:12:29]Waiting for new connection... [22:12:29] Sock 9.Parse request [22:12:29]Sock 9.Check first char [22:12:29]Sock 9.First char is OK [22:12:29]request: POST /json_proto HTTP/1.0 [22:12:29]Method: POST [22:12:29]URL: /json_proto [22:12:29]Method is POST - this is cgi request [22:12:29]url: /json_proto [22:12:29]query_string will be loaded in cgi processing [22:12:29]execute_cgi json_proto POST (null) [22:12:29]execute_cgi path=json_proto method=POST [22:12:29]POST find Content-Length [22:12:29]Host: 172.17.42.131:8080 [22:12:29]Content-Length: 772 [22:12:29]Content-Type: application/json [22:12:29] [22:12:29]POST finish read [22:12:29]Found Content-Length = 772 [22:12:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.740, "sum" : 520.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 520.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:29]execute_script... [22:12: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)210588", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 6.740, "sum" : 520.33, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 520.33 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:12:29]POST & json_proto [22:12:29]process_json_proto [22:12:29]json parsed OK: [22:12:29]protocol is kg_v1.0 [22:12:29]action value=close_receipt [22:12:29]process_action close_receipt [22:12:29]cmd_close_receipt [22:12:29]MH_GetDate [22:12:29]Write to MH i2c: F0 00 00 2C 07 22 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 09 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: F0 09 00 2C 07 00 4E 23 18 67 A0 18 CA 66 03 [22:12:29]GetLastDocTimeStamp 1729635144 [22:12:29]current date 1729635150 [22:12:29]FM_GetShiftState [22:12:29]SAM_PROTO_GetShiftState [22:12:29]wFMCommunicate request_size=4 [22:12:29]MH_SAM_APDU [22:12:29]CAPDU: 80 13 01 00 [22:12:29]Write to MH i2c: E2 08 00 2D 07 80 13 01 00 00 00 00 00 B1 [22:12:29]Write i2c OK [22:12:29]MH_I2C_Read... [22:12:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:29]Read from MH i2c: E2 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 [22:12:29]MH_I2C_Read... [22:12:29]Read from MH i2c: E2 0E 00 2D 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 A6 [22:12:29]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:12:29]wFMCommunicate OK [22:12:29]SAM_PROTO_GetShiftState done [22:12:29]FM_GetShiftState done [22:12:29]opened in 1729556094 [22:12:29]opened+sec_in_day 1729642494 [22:12:29]quantity*price = 52032 [22:12:29]sum+1 = 52034 [22:12:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 520.33 НСП 1% : 4.60 НДС 12% : 55.26 Наличными: 0.00 Безнал.: 520.33 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 556 22.10.2024 22:12 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188527 ФПД: 198529713966376 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188527&fm=198529713966376&tin=02508201610067®Number=0000000000100030&sum=52033 [22:12:30]StoreToDocumentArchive [22:12:30]shift 461 fd 188527 [22:12:30]save to /storage/0461/doc_00188527 [22:12:30]save last doc name /storage/0461/doc_00188527 to /storage/kkm_last_doc_name [22:12:30]save OK [22:12:30]Clear old archive folders... [22:12:30]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:12:30]tlvbuf is 008C4860 [22:12:30]SAM_PROTO_ClearQueue [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 09 00 00 [22:12:30]Write to MH i2c: E2 08 00 3A 07 80 09 00 00 00 00 00 00 B3 [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 3A 07 00 90 00 B5 [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]SAM_PROTO_ClearQueue done [22:12:30]KKMCreateOFDPacket [22:12:30]OFDProtocolAddRootSTLVToBuf [22:12:30]FM_MakeSignedData [22:12:30]FM_MakeSignedData [22:12:30]SAM_PROTO_SignData [22:12:30]wFMCommunicate request_size=4 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 0D 01 02 [22:12:30]Write to MH i2c: E2 08 00 3B 07 80 0D 01 02 00 00 00 00 BB [22:12:30]Write i2c OK [22:12:30]MH_I2C_Read... [22:12:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:12:30]Read from MH i2c: E2 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 [22:12:30]MH_I2C_Read... [22:12:30]Read from MH i2c: E2 03 00 3B 07 00 90 00 B6 [22:12:30]RAPDU: 90 00 [22:12:30]wFMCommunicate OK [22:12:30]wFMCommunicate request_size=255 [22:12:30]MH_SAM_APDU [22:12:30]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 41 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 4E 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E0 02 [22:12:30]Write to MH i2c: E2 02 01 3C 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 41 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 4E 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E0 02 00 00 C3 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 3C 07 00 90 00 B7 [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=16 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 B4 8F CD 14 0D 28 [22:12:31]Write to MH i2c: E2 13 00 3D 07 80 0D 02 02 0B 00 00 35 04 06 00 B4 8F CD 14 0D 28 00 00 6C [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 03 00 3D 07 00 90 00 B8 [22:12:31]RAPDU: 90 00 [22:12:31]wFMCommunicate OK [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 0D 03 02 [22:12:31]Write to MH i2c: E2 08 00 3E 07 80 0D 03 02 00 00 00 00 C0 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0B 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 0B 00 3E 07 00 E1 7D 9E 3A E3 9C 5C DF 90 00 B1 [22:12:31]RAPDU: E1 7D 9E 3A E3 9C 5C DF 90 00 [22:12:31]wFMCommunicate OK [22:12:31]SAM_PROTO_SignData done [22:12:31]FM_MakeSignedData done [22:12:31]CreateOFDProtocolMessage [22:12:31]wFMCommunicate request_size=4 [22:12:31]MH_SAM_APDU [22:12:31]CAPDU: 80 11 00 00 [22:12:31]Write to MH i2c: E2 08 00 3F 07 80 11 00 00 00 00 00 00 C0 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:31]Read from MH i2c: E2 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: E2 17 00 3F 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [22:12:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:12:31]wFMCommunicate OK [22:12:31]CreateOFDProtocolMessage done [22:12:31]OFDSenderStorePacket 188527 [22:12:31]StoreOFDPacket docnum=188527 [22:12:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3A C5 0D 01 1D C4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 41 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 4E 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E0 02 00 35 04 06 00 B4 8F CD 14 0D 28 E1 7D 9E 3A E3 9C 5C DF [22:12:31]CheckFolder [22:12:31]dirname=/storage/ofd_packets [22:12:31]CheckFolder done [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00188527 [22:12:31]NVStorageSaveData ofd_packets/00188527 [22:12:31]File name is /storage/ofd_packets/00188527 [22:12:31]Write 307 bytes [22:12:31]NVStorageSaveData done [22:12:31]OFDSenderStorePacket done [22:12:31]KKMCreateOFDPacket done [22:12:31]NVStorageSaveData kkm_last_timestamp [22:12:31]File name is /storage/kkm_last_timestamp [22:12:31]Write 4 bytes [22:12:31]NVStorageSaveData done [22:12:31]ExternCall_PrintAddStr [22:12:31]wPrintStart [22:12:31]Write to MH i2c: 01 00 00 40 07 47 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 40 07 00 00 00 00 00 FF 0F 5C [22:12:31]RasterBufferAndPrint [22:12:31]line Счет N : (1)210588 [22:12:31]line ИНН: 02508201610067 [22:12:31]line Контрольно-Кассовый Чек [22:12:31]line ПРОДАЖА [22:12:31]line ТРК (МРК, ГНК) : 41 [22:12:31]line Товар: 2710194210 [22:12:31]line D-ENERGY ДТ-К-5 [22:12:31]line 6.740 * 77.20 [22:12:31]line = 520.33 [22:12:31]line НДС 12% НСП 1% [22:12:31]line > о реализуемом товаре [22:12:31]line ИТОГО: 520.33 [22:12:31]line НСП 1% : 4.60 [22:12:31]line НДС 12% : 55.26 [22:12:31]line Наличными: 0.00 [22:12:31]line Безнал.: 520.33 [22:12:31]line Место: АЗС № 86 "Партнер Нефть" [22:12:31]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:12:31]line СНО: Общий режим [22:12:31]line Чек 556 22.10.2024 22:12 [22:12:31]line Смена: 461 ФФД: 1.0 [22:12:31]line ЗНМ: 0300000155 [22:12:31]line РНМ: 0000000000100030 [22:12:31]line Версия ККМ: 001 [22:12:31]line Платежная система: Mbank [22:12:31]line ФМ: 0000000000965340 [22:12:31]line ФД: 188527 [22:12:31]line ФПД: 198529713966376 [22:12:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221230&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188527&fm=198529713966376&tin=02508201610067®Number=0000000000100030&sum=52033 [22:12:31]written 0, free lines is 4095 [22:12:31]OFD Sender: Processing packet 188527 [packets to send 1062, broken 1061] [22:12:31]ProducePacketName [22:12:31]name=ofd_packets/00188527 [22:12:31]OFD Sender: To server: pG, [22:12:31]CommunicateWithHost lk.salyk.kg:30040 [22:12:31]ConnectInit lk.salyk.kg [22:12:31]Connected sock=10 [22:12:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3A C5 0D 01 1D C4 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 54 1A 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 41 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 41 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 96 15 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 41 CB 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 02 00 00 F4 03 04 00 4E 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E0 02 00 35 04 06 00 B4 8F CD 14 0D 28 E1 7D 9E 3A E3 9C 5C DF [22:12:31]Write to MH i2c: 01 00 00 69 07 70 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: 01 07 00 69 07 00 00 00 00 00 92 0C 15 [22:12:31]RasterBufferAndPrint [22:12:31]line [22:12:31]line [22:12:31]line [22:12:31]line [22:12:31]line [22:12:31]written 0, free lines is 3224 [22:12:31]MH_Cut [22:12:31]Write to MH i2c: D1 01 00 70 07 01 49 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: D1 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: D1 01 00 [22:12:31]MH_I2C_Read... [22:12:31]Read from MH i2c: D1 01 00 70 07 00 48 [22:12:31]Write to MH i2c: 01 00 00 71 07 78 [22:12:31]Write i2c OK [22:12:31]MH_I2C_Read... [22:12:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 94 7E 47 00 7A 34 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 6F E0 02 00 F4 03 04 00 3A CD 17 67 B6 04 01 00 00 80 EC 64 75 AA DD C2 66 [22:12:32]CommunicateWithHost err = 0 [22:12:32]CheckOFDResponse [22:12:32]1017 (14) - 77093643461234 [22:12:32]1041 (16) - 0000000000965340 [22:12:32]1040 (4) - 188527 [22:12:32]1012 (4) - 22.10.2024 16:05 [22:12:32]1206 (1) - 0 [22:12:32]OFD Sender: Remove packet 188527 [22:12:32]ProducePacketName [22:12:32]name=ofd_packets/00188527 [22:12:32]NVStorageDeleteData [22:12:32]OFD Sender: No OFD packet to send [22:12:33]*** Cut start [22:12:33]*** Partial cut [22:12:33]*** CUTSNS_PIN = 1 [22:12:33]*** CUTSNS_PIN = 0 [22:12:33]*** Brake cut motor [22:12:33]Read from MH i2c: 01 [22:12:33]MH_I2C_Read... [22:12:33]*** Stop cut motor [22:12:33]*** Cut end [22:12:33]Read from MH i2c: 01 07 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: 01 07 00 71 07 00 00 00 00 00 FF 0F 8D [22:12:33]process_action close_receipt done [22:12:33]requested_data is exist [22:12:33]produce_requested_data [22:12:33]requested_item fm.sn is exist - process it [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 11 00 00 [22:12:33]Write to MH i2c: E2 08 00 72 07 80 11 00 00 00 00 00 00 F3 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:12:33]Read from MH i2c: E2 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 [22:12:33]MH_I2C_Read... [22:12:33]Read from MH i2c: E2 17 00 72 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 41 [22:12:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:12:33]wFMCommunicate OK [22:12:33]requested_item fd.num is exist - process it [22:12:33]SAM_PROTO_GetFieldsCounters [22:12:33]wFMCommunicate request_size=4 [22:12:33]MH_SAM_APDU [22:12:33]CAPDU: 80 13 00 00 [22:12:33]Write to MH i2c: E2 08 00 73 07 80 13 00 00 00 00 00 00 F6 [22:12:33]Write i2c OK [22:12:33]MH_I2C_Read... [22:12:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:12:34]Read from MH i2c: E2 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 62 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 62 00 73 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2C 02 00 00 5E 04 04 00 2C 02 00 00 57 04 04 00 2D 02 00 00 19 04 04 00 00 00 00 00 90 00 A6 [22:12:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 6F E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2C 02 00 00 5E 04 04 00 2C 02 00 00 57 04 04 00 2D 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:12:34]wFMCommunicate OK [22:12:34]SAM_PROTO_GetFieldsCounters done [22:12:34]requested_item shift.num is exist - process it [22:12:34]requested_item shift.opened is exist - process it [22:12:34]req_shift_opened [22:12:34]FM_GetShiftState [22:12:34]SAM_PROTO_GetShiftState [22:12:34]wFMCommunicate request_size=4 [22:12:34]MH_SAM_APDU [22:12:34]CAPDU: 80 13 01 00 [22:12:34]Write to MH i2c: E2 08 00 74 07 80 13 01 00 00 00 00 00 F8 [22:12:34]Write i2c OK [22:12:34]MH_I2C_Read... [22:12:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:12:34]Read from MH i2c: E2 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 0E 00 [22:12:34]MH_I2C_Read... [22:12:34]Read from MH i2c: E2 0E 00 74 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 ED [22:12:34]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:12:34]wFMCommunicate OK [22:12:34]SAM_PROTO_GetShiftState done [22:12:34]FM_GetShiftState done [22:12:34]req_shift_opened done [22:12:34]requested_item shift.open_date is exist - process it [22:12:34]req_shift_open_date [22:12:34]req_shift_open_date done [22:12:34]produce_requested_data done [22:12:34]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188527,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:12:34]process_action_free close_receipt [22:12:34]json_value_free [22:12:34]json_value_free done [22:12:34]process_json_proto returns [22:12:34]Send response to host [22:12:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188527,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:12:34]free response buf [22:12:34]execute_script done [22:12:34]execute_script returns [22:12:34]free content buf [22:12:34]Sock 9.Close socket [22:12:34]Sock 9.Thread stoped [22:12:37]OFD Sender: No OFD packet to send [22:12:42]OFD Sender: No OFD packet to send [22:12:47]OFD Sender: No OFD packet to send [22:12:52]OFD Sender: No OFD packet to send [22:12:57]OFD Sender: No OFD packet to send [22:13:02]OFD Sender: No OFD packet to send [22:13:07]OFD Sender: No OFD packet to send [22:13:12]OFD Sender: No OFD packet to send [22:13:17]OFD Sender: No OFD packet to send [22:13:19]accept exits with 7 [22:13:19]New connection [22:13:19]New thread 3066649956 created [22:13:19]Thread 3066506596 joined [22:13:19]Waiting for new connection... [22:13:19] Sock 7.Parse request [22:13:19]Sock 7.Check first char [22:13:19]Sock 7.First char is OK [22:13:19]request: POST /json_proto HTTP/1.0 [22:13:19]Method: POST [22:13:19]URL: /json_proto [22:13:19]Method is POST - this is cgi request [22:13:19]url: /json_proto [22:13:19]query_string will be loaded in cgi processing [22:13:19]execute_cgi json_proto POST (null) [22:13:19]execute_cgi path=json_proto method=POST [22:13:19]POST find Content-Length [22:13:19]Host: 172.17.42.131:8080 [22:13:19]Content-Length: 684 [22:13:19]Content-Type: application/json [22:13:19] [22:13:19]POST finish read [22:13:19]Found Content-Length = 684 [22:13:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.340, "sum" : 875.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:19]execute_script... [22:13: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)210589", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 11.340, "sum" : 875.45, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 875.00, "total" : 875.00, "payments": [ { "type": 0, "sum" : 875.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:13:19]POST & json_proto [22:13:19]process_json_proto [22:13:19]json parsed OK: [22:13:19]protocol is kg_v1.0 [22:13:19]action value=close_receipt [22:13:19]process_action close_receipt [22:13:19]cmd_close_receipt [22:13:19]MH_GetDate [22:13:19]Write to MH i2c: F0 00 00 75 07 6B [22:13:19]Write i2c OK [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: F0 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: F0 09 00 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: F0 09 00 75 07 00 80 23 18 67 A0 18 CA 66 7E [22:13:19]GetLastDocTimeStamp 1729635150 [22:13:19]current date 1729635200 [22:13:19]FM_GetShiftState [22:13:19]SAM_PROTO_GetShiftState [22:13:19]wFMCommunicate request_size=4 [22:13:19]MH_SAM_APDU [22:13:19]CAPDU: 80 13 01 00 [22:13:19]Write to MH i2c: E2 08 00 76 07 80 13 01 00 00 00 00 00 FA [22:13:19]Write i2c OK [22:13:19]MH_I2C_Read... [22:13:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:19]Read from MH i2c: E2 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: E2 0E 00 [22:13:19]MH_I2C_Read... [22:13:19]Read from MH i2c: E2 0E 00 76 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 EF [22:13:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:13:19]wFMCommunicate OK [22:13:19]SAM_PROTO_GetShiftState done [22:13:19]FM_GetShiftState done [22:13:19]opened in 1729556094 [22:13:19]opened+sec_in_day 1729642494 [22:13:19]quantity*price = 87544 [22:13:19]sum+1 = 87546 [22:13:19]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.45 ИТОГО: 875.00 Внесено: 875.00 СДАЧА: 0.00 НСП 1% : 7.75 НДС 12% : 92.97 Наличными: 875.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 557 22.10.2024 22:13 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188528 ФПД: 259472327356664 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221320&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188528&fm=259472327356664&tin=02508201610067®Number=0000000000100030&sum=87500 [22:13:20]StoreToDocumentArchive [22:13:20]shift 461 fd 188528 [22:13:20]save to /storage/0461/doc_00188528 [22:13:20]save last doc name /storage/0461/doc_00188528 to /storage/kkm_last_doc_name [22:13:20]save OK [22:13:20]Clear old archive folders... [22:13:20]ProcessDocumentItem done err = 0, tmpTLVsize=257 [22:13:20]tlvbuf is 008C3130 [22:13:20]SAM_PROTO_ClearQueue [22:13:20]wFMCommunicate request_size=4 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 09 00 00 [22:13:20]Write to MH i2c: E2 08 00 83 07 80 09 00 00 00 00 00 00 FC [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 83 07 00 90 00 FE [22:13:20]RAPDU: 90 00 [22:13:20]wFMCommunicate OK [22:13:20]SAM_PROTO_ClearQueue done [22:13:20]KKMCreateOFDPacket [22:13:20]OFDProtocolAddRootSTLVToBuf [22:13:20]FM_MakeSignedData [22:13:20]FM_MakeSignedData [22:13:20]SAM_PROTO_SignData [22:13:20]wFMCommunicate request_size=4 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 0D 01 02 [22:13:20]Write to MH i2c: E2 08 00 84 07 80 0D 01 02 00 00 00 00 04 [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 84 07 00 90 00 FF [22:13:20]RAPDU: 90 00 [22:13:20]wFMCommunicate OK [22:13:20]wFMCommunicate request_size=255 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F9 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 80 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E0 02 [22:13:20]Write to MH i2c: E2 02 01 85 07 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F9 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 80 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E0 02 00 00 C0 [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 85 07 00 90 00 00 [22:13:20]RAPDU: 90 00 [22:13:20]wFMCommunicate OK [22:13:20]wFMCommunicate request_size=16 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 EB FD 1B E6 B0 F8 [22:13:20]Write to MH i2c: E2 13 00 86 07 80 0D 02 02 0B 00 00 35 04 06 00 EB FD 1B E6 B0 F8 00 00 ED [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 03 00 86 07 00 90 00 01 [22:13:20]RAPDU: 90 00 [22:13:20]wFMCommunicate OK [22:13:20]wFMCommunicate request_size=4 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 0D 03 02 [22:13:20]Write to MH i2c: E2 08 00 87 07 80 0D 03 02 00 00 00 00 09 [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 0B 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 0B 00 87 07 00 30 7C DC 65 CC 42 83 84 90 00 0C [22:13:20]RAPDU: 30 7C DC 65 CC 42 83 84 90 00 [22:13:20]wFMCommunicate OK [22:13:20]SAM_PROTO_SignData done [22:13:20]FM_MakeSignedData done [22:13:20]CreateOFDProtocolMessage [22:13:20]wFMCommunicate request_size=4 [22:13:20]MH_SAM_APDU [22:13:20]CAPDU: 80 11 00 00 [22:13:20]Write to MH i2c: E2 08 00 88 07 80 11 00 00 00 00 00 00 09 [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:20]Read from MH i2c: E2 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 17 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: E2 17 00 88 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 57 [22:13:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:13:20]wFMCommunicate OK [22:13:20]CreateOFDProtocolMessage done [22:13:20]OFDSenderStorePacket 188528 [22:13:20]StoreOFDPacket docnum=188528 [22:13:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BE 2D 0D 01 F4 3F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F9 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 80 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E0 02 00 35 04 06 00 EB FD 1B E6 B0 F8 30 7C DC 65 CC 42 83 84 [22:13:20]CheckFolder [22:13:20]dirname=/storage/ofd_packets [22:13:20]CheckFolder done [22:13:20]ProducePacketName [22:13:20]name=ofd_packets/00188528 [22:13:20]NVStorageSaveData ofd_packets/00188528 [22:13:20]File name is /storage/ofd_packets/00188528 [22:13:20]Write 307 bytes [22:13:20]NVStorageSaveData done [22:13:20]OFDSenderStorePacket done [22:13:20]KKMCreateOFDPacket done [22:13:20]NVStorageSaveData kkm_last_timestamp [22:13:20]File name is /storage/kkm_last_timestamp [22:13:20]Write 4 bytes [22:13:20]NVStorageSaveData done [22:13:20]ExternCall_PrintAddStr [22:13:20]wPrintStart [22:13:20]Write to MH i2c: 01 00 00 89 07 90 [22:13:20]Write i2c OK [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: 01 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: 01 07 00 [22:13:20]MH_I2C_Read... [22:13:20]Read from MH i2c: 01 07 00 89 07 00 00 00 00 00 FF 0F A5 [22:13:20]RasterBufferAndPrint [22:13:20]line Счет N : (1)210589 [22:13:20]line ИНН: 02508201610067 [22:13:20]line Контрольно-Кассовый Чек [22:13:20]line ПРОДАЖА [22:13:20]line ТРК (МРК, ГНК) : 11 [22:13:20]line Товар: 2710194210 [22:13:20]line D-ENERGY ДТ-К-5 [22:13:20]line 11.340 * 77.20 [22:13:20]line = 875.45 [22:13:20]line НДС 12% НСП 1% [22:13:20]line > о реализуемом товаре [22:13:20]line ОКРУГЛЕНИЕ: -0.45 [22:13:20]line ИТОГО: 875.00 [22:13:20]line Внесено: 875.00 [22:13:20]line СДАЧА: 0.00 [22:13:20]line НСП 1% : 7.75 [22:13:20]line НДС 12% : 92.97 [22:13:20]line Наличными: 875.00 [22:13:20]line Безнал.: 0.00 [22:13:20]line Место: АЗС № 86 "Партнер Нефть" [22:13:20]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:13:20]line СНО: Общий режим [22:13:20]line Чек 557 22.10.2024 22:13 [22:13:20]line Смена: 461 ФФД: 1.0 [22:13:20]line ЗНМ: 0300000155 [22:13:20]line РНМ: 0000000000100030 [22:13:20]line Версия ККМ: 001 [22:13:20]line ФМ: 0000000000965340 [22:13:20]line ФД: 188528 [22:13:20]line ФПД: 259472327356664 [22:13:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T221320&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188528&fm=259472327356664&tin=02508201610067®Number=0000000000100030&sum=87500 [22:13:20]written 0, free lines is 4095 [22:13:21]OFD Sender: Processing packet 188528 [packets to send 1062, broken 1061] [22:13:21]ProducePacketName [22:13:21]name=ofd_packets/00188528 [22:13:21]OFD Sender: To server: pG, [22:13:21]CommunicateWithHost lk.salyk.kg:30040 [22:13:21]ConnectInit lk.salyk.kg [22:13:21]Write to MH i2c: 01 00 00 B4 07 BB [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: 01 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: 01 07 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: 01 07 00 B4 07 00 00 00 00 00 5A 0C 28 [22:13:21]RasterBufferAndPrint [22:13:21]line [22:13:21]line [22:13:21]line [22:13:21]line [22:13:21]line [22:13:21]written 0, free lines is 3166 [22:13:21]MH_Cut [22:13:21]Write to MH i2c: D1 01 00 BB 07 01 94 [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: D1 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: D1 01 00 [22:13:21]MH_I2C_Read... [22:13:21]Read from MH i2c: D1 01 00 BB 07 00 93 [22:13:21]Write to MH i2c: 01 00 00 BC 07 C3 [22:13:21]Write i2c OK [22:13:21]MH_I2C_Read... [22:13:21]Connected sock=10 [22:13:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 BE 2D 0D 01 F4 3F 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 4C 2C 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F9 55 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC 55 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 51 24 00 00 00 00 07 04 06 00 CC 55 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2D 02 00 00 F4 03 04 00 80 23 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E0 02 00 35 04 06 00 EB FD 1B E6 B0 F8 30 7C DC 65 CC 42 83 84 [22:13:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 35 B3 47 00 61 A3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 70 E0 02 00 F4 03 04 00 6C CD 17 67 B6 04 01 00 00 F1 07 5F 47 A4 F1 D1 37 [22:13:21]CommunicateWithHost err = 0 [22:13:21]CheckOFDResponse [22:13:21]1017 (14) - 77093643461234 [22:13:21]1041 (16) - 0000000000965340 [22:13:21]1040 (4) - 188528 [22:13:21]1012 (4) - 22.10.2024 16:06 [22:13:21]1206 (1) - 0 [22:13:21]OFD Sender: Remove packet 188528 [22:13:21]ProducePacketName [22:13:21]name=ofd_packets/00188528 [22:13:21]NVStorageDeleteData [22:13:22]OFD Sender: No OFD packet to send [22:13:22]*** Cut start [22:13:22]*** Partial cut [22:13:22]*** CUTSNS_PIN = 1 [22:13:22]*** CUTSNS_PIN = 0 [22:13:22]*** Brake cut motor [22:13:23]Read from MH i2c: 01 [22:13:23]MH_I2C_Read... [22:13:23]*** Stop cut motor [22:13:23]*** Cut end [22:13:23]Read from MH i2c: 01 07 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: 01 07 00 BC 07 00 00 00 00 00 FF 0F D8 [22:13:23]process_action close_receipt done [22:13:23]requested_data is exist [22:13:23]produce_requested_data [22:13:23]requested_item fm.sn is exist - process it [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 11 00 00 [22:13:23]Write to MH i2c: E2 08 00 BD 07 80 11 00 00 00 00 00 00 3E [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 17 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 17 00 BD 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8C [22:13:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:13:23]wFMCommunicate OK [22:13:23]requested_item fd.num is exist - process it [22:13:23]SAM_PROTO_GetFieldsCounters [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 13 00 00 [22:13:23]Write to MH i2c: E2 08 00 BE 07 80 13 00 00 00 00 00 00 41 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 62 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 62 00 BE 07 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2D 02 00 00 5E 04 04 00 2D 02 00 00 57 04 04 00 2E 02 00 00 19 04 04 00 00 00 00 00 90 00 F5 [22:13:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 70 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2D 02 00 00 5E 04 04 00 2D 02 00 00 57 04 04 00 2E 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:13:23]wFMCommunicate OK [22:13:23]SAM_PROTO_GetFieldsCounters done [22:13:23]requested_item shift.num is exist - process it [22:13:23]requested_item shift.opened is exist - process it [22:13:23]req_shift_opened [22:13:23]FM_GetShiftState [22:13:23]SAM_PROTO_GetShiftState [22:13:23]wFMCommunicate request_size=4 [22:13:23]MH_SAM_APDU [22:13:23]CAPDU: 80 13 01 00 [22:13:23]Write to MH i2c: E2 08 00 BF 07 80 13 01 00 00 00 00 00 43 [22:13:23]Write i2c OK [22:13:23]MH_I2C_Read... [22:13:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:13:23]Read from MH i2c: E2 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 0E 00 [22:13:23]MH_I2C_Read... [22:13:23]Read from MH i2c: E2 0E 00 BF 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [22:13:23]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:13:23]wFMCommunicate OK [22:13:23]SAM_PROTO_GetShiftState done [22:13:23]FM_GetShiftState done [22:13:23]req_shift_opened done [22:13:23]requested_item shift.open_date is exist - process it [22:13:23]req_shift_open_date [22:13:23]req_shift_open_date done [22:13:23]produce_requested_data done [22:13:23]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188528,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:13:23]process_action_free close_receipt [22:13:23]json_value_free [22:13:23]json_value_free done [22:13:23]process_json_proto returns [22:13:23]Send response to host [22:13:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188528,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:13:23]free response buf [22:13:23]execute_script done [22:13:23]execute_script returns [22:13:23]free content buf [22:13:23]Sock 7.Close socket [22:13:23]Sock 7.Thread stoped [22:13:27]OFD Sender: No OFD packet to send [22:13:32]OFD Sender: No OFD packet to send [22:13:37]OFD Sender: No OFD packet to send [22:13:42]OFD Sender: No OFD packet to send [22:13:47]OFD Sender: No OFD packet to send [22:13:52]OFD Sender: No OFD packet to send [22:13:57]OFD Sender: No OFD packet to send [22:14:02]OFD Sender: No OFD packet to send [22:14:07]OFD Sender: No OFD packet to send [22:14:12]OFD Sender: No OFD packet to send [22:14:17]OFD Sender: No OFD packet to send [22:14:22]OFD Sender: No OFD packet to send [22:14:27]OFD Sender: No OFD packet to send [22:14:32]OFD Sender: No OFD packet to send [22:14:37]OFD Sender: No OFD packet to send [22:14:42]OFD Sender: No OFD packet to send [22:14:47]OFD Sender: No OFD packet to send [22:14:52]OFD Sender: No OFD packet to send [22:14:57]OFD Sender: No OFD packet to send [22:15:02]OFD Sender: No OFD packet to send [22:15:07]OFD Sender: No OFD packet to send [22:15:12]OFD Sender: No OFD packet to send [22:15:17]OFD Sender: No OFD packet to send [22:15:22]OFD Sender: No OFD packet to send [22:15:27]OFD Sender: No OFD packet to send [22:15:32]OFD Sender: No OFD packet to send [22:15:37]OFD Sender: No OFD packet to send [22:15:42]OFD Sender: No OFD packet to send [22:15:47]OFD Sender: No OFD packet to send [22:15:52]OFD Sender: No OFD packet to send [22:15:57]OFD Sender: No OFD packet to send [22:16:03]OFD Sender: No OFD packet to send [22:16:08]OFD Sender: No OFD packet to send [22:16:13]OFD Sender: No OFD packet to send [22:16:18]OFD Sender: No OFD packet to send [22:16:23]OFD Sender: No OFD packet to send [22:16:28]OFD Sender: No OFD packet to send [22:16:33]OFD Sender: No OFD packet to send [22:16:38]OFD Sender: No OFD packet to send [22:16:43]OFD Sender: No OFD packet to send [22:16:48]OFD Sender: No OFD packet to send [22:16:53]OFD Sender: No OFD packet to send [22:16:58]OFD Sender: No OFD packet to send [22:17:03]OFD Sender: No OFD packet to send [22:17:08]OFD Sender: No OFD packet to send [22:17:13]OFD Sender: No OFD packet to send [22:17:18]OFD Sender: No OFD packet to send [22:17:23]OFD Sender: No OFD packet to send [22:17:28]OFD Sender: No OFD packet to send [22:17:33]OFD Sender: No OFD packet to send [22:17:38]OFD Sender: No OFD packet to send [22:17:43]OFD Sender: No OFD packet to send [22:17:48]OFD Sender: No OFD packet to send [22:17:53]OFD Sender: No OFD packet to send [22:17:58]OFD Sender: No OFD packet to send [22:18:03]OFD Sender: No OFD packet to send [22:18:08]OFD Sender: No OFD packet to send [22:18:13]OFD Sender: No OFD packet to send [22:18:18]OFD Sender: No OFD packet to send [22:18:23]OFD Sender: No OFD packet to send [22:18:28]OFD Sender: No OFD packet to send [22:18:33]OFD Sender: No OFD packet to send [22:18:38]OFD Sender: No OFD packet to send [22:18:43]OFD Sender: No OFD packet to send [22:18:48]OFD Sender: No OFD packet to send [22:18:53]OFD Sender: No OFD packet to send [22:18:58]OFD Sender: No OFD packet to send [22:19:03]OFD Sender: No OFD packet to send [22:19:08]OFD Sender: No OFD packet to send [22:19:13]OFD Sender: No OFD packet to send [22:19:18]OFD Sender: No OFD packet to send [22:19:23]OFD Sender: No OFD packet to send [22:19:28]OFD Sender: No OFD packet to send [22:19:33]OFD Sender: No OFD packet to send [22:19:38]OFD Sender: No OFD packet to send [22:19:43]OFD Sender: No OFD packet to send [22:19:48]OFD Sender: No OFD packet to send [22:19:54]OFD Sender: No OFD packet to send [22:19:59]OFD Sender: No OFD packet to send [22:20:04]OFD Sender: No OFD packet to send [22:20:09]OFD Sender: No OFD packet to send [22:20:14]OFD Sender: No OFD packet to send [22:20:19]OFD Sender: No OFD packet to send [22:20:24]OFD Sender: No OFD packet to send [22:20:29]OFD Sender: No OFD packet to send [22:20:34]OFD Sender: No OFD packet to send [22:20:39]OFD Sender: No OFD packet to send [22:20:44]OFD Sender: No OFD packet to send [22:20:49]OFD Sender: No OFD packet to send [22:20:54]OFD Sender: No OFD packet to send [22:20:59]OFD Sender: No OFD packet to send [22:21:04]OFD Sender: No OFD packet to send [22:21:09]OFD Sender: No OFD packet to send [22:21:14]OFD Sender: No OFD packet to send [22:21:19]OFD Sender: No OFD packet to send [22:21:24]OFD Sender: No OFD packet to send [22:21:29]OFD Sender: No OFD packet to send [22:21:34]OFD Sender: No OFD packet to send [22:21:39]OFD Sender: No OFD packet to send [22:21:44]OFD Sender: No OFD packet to send [22:21:49]OFD Sender: No OFD packet to send [22:21:54]OFD Sender: No OFD packet to send [22:21:59]OFD Sender: No OFD packet to send [22:22:04]OFD Sender: No OFD packet to send [22:22:09]OFD Sender: No OFD packet to send [22:22:14]OFD Sender: No OFD packet to send [22:22:19]OFD Sender: No OFD packet to send [22:22:24]OFD Sender: No OFD packet to send [22:22:29]OFD Sender: No OFD packet to send [22:22:34]OFD Sender: No OFD packet to send [22:22:39]OFD Sender: No OFD packet to send [22:22:44]OFD Sender: No OFD packet to send [22:22:49]OFD Sender: No OFD packet to send [22:22:54]OFD Sender: No OFD packet to send [22:22:59]OFD Sender: No OFD packet to send [22:23:04]OFD Sender: No OFD packet to send [22:23:09]OFD Sender: No OFD packet to send [22:23:14]OFD Sender: No OFD packet to send [22:23:19]OFD Sender: No OFD packet to send [22:23:24]OFD Sender: No OFD packet to send [22:23:29]OFD Sender: No OFD packet to send [22:23:34]OFD Sender: No OFD packet to send [22:23:40]OFD Sender: No OFD packet to send [22:23:45]OFD Sender: No OFD packet to send [22:23:50]OFD Sender: No OFD packet to send [22:23:55]OFD Sender: No OFD packet to send [22:24:00]OFD Sender: No OFD packet to send [22:24:05]OFD Sender: No OFD packet to send [22:24:10]OFD Sender: No OFD packet to send [22:24:15]OFD Sender: No OFD packet to send [22:24:20]OFD Sender: No OFD packet to send [22:24:25]OFD Sender: No OFD packet to send [22:24:30]OFD Sender: No OFD packet to send [22:24:35]OFD Sender: No OFD packet to send [22:24:40]OFD Sender: No OFD packet to send [22:24:45]OFD Sender: No OFD packet to send [22:24:50]OFD Sender: No OFD packet to send [22:24:55]OFD Sender: No OFD packet to send [22:25:00]OFD Sender: No OFD packet to send [22:25:05]OFD Sender: No OFD packet to send [22:25:10]OFD Sender: No OFD packet to send [22:25:15]OFD Sender: No OFD packet to send [22:25:20]OFD Sender: No OFD packet to send [22:25:25]OFD Sender: No OFD packet to send [22:25:30]OFD Sender: No OFD packet to send [22:25:35]OFD Sender: No OFD packet to send [22:25:40]OFD Sender: No OFD packet to send [22:25:45]OFD Sender: No OFD packet to send [22:25:50]OFD Sender: No OFD packet to send [22:25:55]OFD Sender: No OFD packet to send [22:26:00]OFD Sender: No OFD packet to send [22:26:05]OFD Sender: No OFD packet to send [22:26:10]OFD Sender: No OFD packet to send [22:26:15]OFD Sender: No OFD packet to send [22:26:20]OFD Sender: No OFD packet to send [22:26:25]OFD Sender: No OFD packet to send [22:26:30]OFD Sender: No OFD packet to send [22:26:35]OFD Sender: No OFD packet to send [22:26:40]OFD Sender: No OFD packet to send [22:26:45]OFD Sender: No OFD packet to send [22:26:50]OFD Sender: No OFD packet to send [22:26:55]OFD Sender: No OFD packet to send [22:27:00]OFD Sender: No OFD packet to send [22:27:05]OFD Sender: No OFD packet to send [22:27:10]OFD Sender: No OFD packet to send [22:27:15]OFD Sender: No OFD packet to send [22:27:20]OFD Sender: No OFD packet to send [22:27:25]OFD Sender: No OFD packet to send [22:27:31]OFD Sender: No OFD packet to send [22:27:36]OFD Sender: No OFD packet to send [22:27:37]accept exits with 9 [22:27:37]New connection [22:27:37]New thread 3066506596 created [22:27:37]Thread 3066649956 joined [22:27:37]Waiting for new connection... [22:27:37] Sock 9.Parse request [22:27:37]Sock 9.Check first char [22:27:37]Sock 9.First char is OK [22:27:37]request: POST /json_proto HTTP/1.0 [22:27:37]Method: POST [22:27:37]URL: /json_proto [22:27:37]Method is POST - this is cgi request [22:27:37]url: /json_proto [22:27:37]query_string will be loaded in cgi processing [22:27:37]execute_cgi json_proto POST (null) [22:27:37]execute_cgi path=json_proto method=POST [22:27:37]POST find Content-Length [22:27:37]Host: 172.17.42.131:8080 [22:27:37]Content-Length: 682 [22:27:37]Content-Type: application/json [22:27:37] [22:27:37]POST finish read [22:27:37]Found Content-Length = 682 [22:27:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210590", "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 }]} ], "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" ] } } [22:27:37]execute_script... [22:27: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)210590", "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 }]} ], "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" ] } } [22:27:37]POST & json_proto [22:27:37]process_json_proto [22:27:37]json parsed OK: [22:27:37]protocol is kg_v1.0 [22:27:37]action value=close_receipt [22:27:37]process_action close_receipt [22:27:37]cmd_close_receipt [22:27:37]MH_GetDate [22:27:37]Write to MH i2c: F0 00 00 C0 07 B6 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: F0 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: F0 09 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: F0 09 00 C0 07 00 DA 26 18 67 A0 18 CA 66 26 [22:27:37]GetLastDocTimeStamp 1729635200 [22:27:37]current date 1729636058 [22:27:37]FM_GetShiftState [22:27:37]SAM_PROTO_GetShiftState [22:27:37]wFMCommunicate request_size=4 [22:27:37]MH_SAM_APDU [22:27:37]CAPDU: 80 13 01 00 [22:27:37]Write to MH i2c: E2 08 00 C1 07 80 13 01 00 00 00 00 00 45 [22:27:37]Write i2c OK [22:27:37]MH_I2C_Read... [22:27:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:37]Read from MH i2c: E2 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 0E 00 [22:27:37]MH_I2C_Read... [22:27:37]Read from MH i2c: E2 0E 00 C1 07 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3A [22:27:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:27:37]wFMCommunicate OK [22:27:37]SAM_PROTO_GetShiftState done [22:27:37]FM_GetShiftState done [22:27:37]opened in 1729556094 [22:27:37]opened+sec_in_day 1729642494 [22:27:37]quantity*price = 100021 [22:27:37]sum+1 = 100023 [22:27:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 558 22.10.2024 22:27 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188529 ФПД: 145697640425839 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222738&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188529&fm=145697640425839&tin=02508201610067®Number=0000000000100030&sum=100000 [22:27:38]StoreToDocumentArchive [22:27:38]shift 461 fd 188529 [22:27:38]save to /storage/0461/doc_00188529 [22:27:38]save last doc name /storage/0461/doc_00188529 to /storage/kkm_last_doc_name [22:27:38]save OK [22:27:38]Clear old archive folders... [22:27:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:27:38]tlvbuf is 008C4B10 [22:27:38]SAM_PROTO_ClearQueue [22:27:38]wFMCommunicate request_size=4 [22:27:38]MH_SAM_APDU [22:27:38]CAPDU: 80 09 00 00 [22:27:38]Write to MH i2c: E2 08 00 CE 07 80 09 00 00 00 00 00 00 47 [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:27:38]Read from MH i2c: E2 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 03 00 [22:27:38]MH_I2C_Read... [22:27:38]Read from MH i2c: E2 03 00 CE 07 00 90 00 49 [22:27:38]RAPDU: 90 00 [22:27:38]wFMCommunicate OK [22:27:38]SAM_PROTO_ClearQueue done [22:27:38]KKMCreateOFDPacket [22:27:38]OFDProtocolAddRootSTLVToBuf [22:27:38]FM_MakeSignedData [22:27:38]FM_MakeSignedData [22:27:38]SAM_PROTO_SignData [22:27:38]wFMCommunicate request_size=4 [22:27:38]MH_SAM_APDU [22:27:38]CAPDU: 80 0D 01 02 [22:27:38]Write to MH i2c: E2 08 00 CF 07 80 0D 01 02 00 00 00 00 4F [22:27:38]Write i2c OK [22:27:38]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 CF 07 00 90 00 4A [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]wFMCommunicate request_size=255 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 2E 02 00 00 F4 03 04 00 DA 26 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E0 02 00 35 04 06 00 84 [22:27:39]Write to MH i2c: E2 02 01 D0 07 80 0D 02 02 FA 00 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 2E 02 00 00 F4 03 04 00 DA 26 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E0 02 00 35 04 06 00 84 00 00 33 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 D0 07 00 90 00 4B [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]wFMCommunicate request_size=10 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 0D 02 02 05 82 E0 1A 29 6F [22:27:39]Write to MH i2c: E2 0D 00 D1 07 80 0D 02 02 05 00 82 E0 1A 29 6F 00 00 70 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 03 00 D1 07 00 90 00 4C [22:27:39]RAPDU: 90 00 [22:27:39]wFMCommunicate OK [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 0D 03 02 [22:27:39]Write to MH i2c: E2 08 00 D2 07 80 0D 03 02 00 00 00 00 54 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 0B 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 0B 00 D2 07 00 3C 65 4C 51 DB 87 8F 63 90 00 E7 [22:27:39]RAPDU: 3C 65 4C 51 DB 87 8F 63 90 00 [22:27:39]wFMCommunicate OK [22:27:39]SAM_PROTO_SignData done [22:27:39]FM_MakeSignedData done [22:27:39]CreateOFDProtocolMessage [22:27:39]wFMCommunicate request_size=4 [22:27:39]MH_SAM_APDU [22:27:39]CAPDU: 80 11 00 00 [22:27:39]Write to MH i2c: E2 08 00 D3 07 80 11 00 00 00 00 00 00 54 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:39]Read from MH i2c: E2 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 17 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: E2 17 00 D3 07 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A2 [22:27:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:27:39]wFMCommunicate OK [22:27:39]CreateOFDProtocolMessage done [22:27:39]OFDSenderStorePacket 188529 [22:27:39]StoreOFDPacket docnum=188529 [22:27:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 0E 07 01 E2 B8 5A 03 01 00 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 2E 02 00 00 F4 03 04 00 DA 26 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E0 02 00 35 04 06 00 84 82 E0 1A 29 6F 3C 65 4C 51 DB 87 8F 63 [22:27:39]CheckFolder [22:27:39]dirname=/storage/ofd_packets [22:27:39]CheckFolder done [22:27:39]ProducePacketName [22:27:39]name=ofd_packets/00188529 [22:27:39]NVStorageSaveData ofd_packets/00188529 [22:27:39]File name is /storage/ofd_packets/00188529 [22:27:39]Write 301 bytes [22:27:39]NVStorageSaveData done [22:27:39]OFDSenderStorePacket done [22:27:39]KKMCreateOFDPacket done [22:27:39]NVStorageSaveData kkm_last_timestamp [22:27:39]File name is /storage/kkm_last_timestamp [22:27:39]Write 4 bytes [22:27:39]NVStorageSaveData done [22:27:39]ExternCall_PrintAddStr [22:27:39]wPrintStart [22:27:39]Write to MH i2c: 01 00 00 D4 07 DB [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 07 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 07 00 D4 07 00 00 00 00 00 FF 0F F0 [22:27:39]RasterBufferAndPrint [22:27:39]line Счет N : (1)210590 [22:27:39]line ИНН: 02508201610067 [22:27:39]line Контрольно-Кассовый Чек [22:27:39]line ПРОДАЖА [22:27:39]line ТРК (МРК, ГНК) : 43 [22:27:39]line Товар: 2710124500 [22:27:39]line Аи-95-К-3 [22:27:39]line 13.480 * 74.20 [22:27:39]line = 1000.22 [22:27:39]line НДС 12% НСП 1% [22:27:39]line > о реализуемом товаре [22:27:39]line ОКРУГЛЕНИЕ: -0.22 [22:27:39]line ИТОГО: 1000.00 [22:27:39]line Внесено: 1000.00 [22:27:39]line СДАЧА: 0.00 [22:27:39]line НСП 1% : 8.85 [22:27:39]line НДС 12% : 106.22 [22:27:39]line Наличными: 1000.00 [22:27:39]line Безнал.: 0.00 [22:27:39]line Место: АЗС № 86 "Партнер Нефть" [22:27:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:27:39]line СНО: Общий режим [22:27:39]line Чек 558 22.10.2024 22:27 [22:27:39]line Смена: 461 ФФД: 1.0 [22:27:39]line ЗНМ: 0300000155 [22:27:39]line РНМ: 0000000000100030 [22:27:39]line Версия ККМ: 001 [22:27:39]line ФМ: 0000000000965340 [22:27:39]line ФД: 188529 [22:27:39]line ФПД: 145697640425839 [22:27:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T222738&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188529&fm=145697640425839&tin=02508201610067®Number=0000000000100030&sum=100000 [22:27:39]written 0, free lines is 4095 [22:27:39]OFD Sender: Processing packet 188529 [packets to send 1062, broken 1061] [22:27:39]ProducePacketName [22:27:39]name=ofd_packets/00188529 [22:27:39]OFD Sender: To server: pG, [22:27:39]CommunicateWithHost lk.salyk.kg:30040 [22:27:39]ConnectInit lk.salyk.kg [22:27:39]Connected sock=10 [22:27:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 17 0E 07 01 E2 B8 5A 03 01 00 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 2E 02 00 00 F4 03 04 00 DA 26 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E0 02 00 35 04 06 00 84 82 E0 1A 29 6F 3C 65 4C 51 DB 87 8F 63 [22:27:39]Write to MH i2c: 01 00 00 FF 07 06 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 07 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: 01 07 00 FF 07 00 00 00 00 00 66 0C 7F [22:27:39]RasterBufferAndPrint [22:27:39]line [22:27:39]line [22:27:39]line [22:27:39]line [22:27:39]line [22:27:39]written 0, free lines is 3178 [22:27:39]MH_Cut [22:27:39]Write to MH i2c: D1 01 00 06 08 01 E0 [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: D1 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: D1 01 00 [22:27:39]MH_I2C_Read... [22:27:39]Read from MH i2c: D1 01 00 06 08 00 DF [22:27:39]Write to MH i2c: 01 00 00 07 08 0F [22:27:39]Write i2c OK [22:27:39]MH_I2C_Read... [22:27:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 70 E7 47 00 62 36 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 71 E0 02 00 F4 03 04 00 C6 D0 17 67 B6 04 01 00 00 AD 9D B6 E4 C4 95 92 10 [22:27:40]CommunicateWithHost err = 0 [22:27:40]CheckOFDResponse [22:27:40]1017 (14) - 77093643461234 [22:27:40]1041 (16) - 0000000000965340 [22:27:40]1040 (4) - 188529 [22:27:40]1012 (4) - 22.10.2024 16:20 [22:27:40]1206 (1) - 0 [22:27:40]OFD Sender: Remove packet 188529 [22:27:40]ProducePacketName [22:27:40]name=ofd_packets/00188529 [22:27:40]NVStorageDeleteData [22:27:40]OFD Sender: No OFD packet to send [22:27:41]*** Cut start [22:27:41]*** Partial cut [22:27:41]*** CUTSNS_PIN = 1 [22:27:41]*** CUTSNS_PIN = 0 [22:27:41]*** Brake cut motor [22:27:41]Read from MH i2c: 01 [22:27:41]MH_I2C_Read... [22:27:41]*** Stop cut motor [22:27:41]*** Cut end [22:27:41]Read from MH i2c: 01 07 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: 01 07 00 07 08 00 00 00 00 00 FF 0F 24 [22:27:41]process_action close_receipt done [22:27:41]requested_data is exist [22:27:41]produce_requested_data [22:27:41]requested_item fm.sn is exist - process it [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 11 00 00 [22:27:41]Write to MH i2c: E2 08 00 08 08 80 11 00 00 00 00 00 00 8A [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:27:41]Read from MH i2c: E2 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 17 00 [22:27:41]MH_I2C_Read... [22:27:41]Read from MH i2c: E2 17 00 08 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D8 [22:27:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:27:41]wFMCommunicate OK [22:27:41]requested_item fd.num is exist - process it [22:27:41]SAM_PROTO_GetFieldsCounters [22:27:41]wFMCommunicate request_size=4 [22:27:41]MH_SAM_APDU [22:27:41]CAPDU: 80 13 00 00 [22:27:41]Write to MH i2c: E2 08 00 09 08 80 13 00 00 00 00 00 00 8D [22:27:41]Write i2c OK [22:27:41]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 62 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 62 00 09 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2E 02 00 00 5E 04 04 00 2E 02 00 00 57 04 04 00 2F 02 00 00 19 04 04 00 00 00 00 00 90 00 45 [22:27:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 71 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2E 02 00 00 5E 04 04 00 2E 02 00 00 57 04 04 00 2F 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:27:42]wFMCommunicate OK [22:27:42]SAM_PROTO_GetFieldsCounters done [22:27:42]requested_item shift.num is exist - process it [22:27:42]requested_item shift.opened is exist - process it [22:27:42]req_shift_opened [22:27:42]FM_GetShiftState [22:27:42]SAM_PROTO_GetShiftState [22:27:42]wFMCommunicate request_size=4 [22:27:42]MH_SAM_APDU [22:27:42]CAPDU: 80 13 01 00 [22:27:42]Write to MH i2c: E2 08 00 0A 08 80 13 01 00 00 00 00 00 8F [22:27:42]Write i2c OK [22:27:42]MH_I2C_Read... [22:27:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:27:42]Read from MH i2c: E2 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 0E 00 [22:27:42]MH_I2C_Read... [22:27:42]Read from MH i2c: E2 0E 00 0A 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 84 [22:27:42]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:27:42]wFMCommunicate OK [22:27:42]SAM_PROTO_GetShiftState done [22:27:42]FM_GetShiftState done [22:27:42]req_shift_opened done [22:27:42]requested_item shift.open_date is exist - process it [22:27:42]req_shift_open_date [22:27:42]req_shift_open_date done [22:27:42]produce_requested_data done [22:27:42]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188529,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:27:42]process_action_free close_receipt [22:27:42]json_value_free [22:27:42]json_value_free done [22:27:42]process_json_proto returns [22:27:42]Send response to host [22:27:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188529,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:27:42]free response buf [22:27:42]execute_script done [22:27:42]execute_script returns [22:27:42]free content buf [22:27:42]Sock 9.Close socket [22:27:42]Sock 9.Thread stoped [22:27:45]OFD Sender: No OFD packet to send [22:27:50]OFD Sender: No OFD packet to send [22:27:55]OFD Sender: No OFD packet to send [22:28:00]OFD Sender: No OFD packet to send [22:28:05]OFD Sender: No OFD packet to send [22:28:10]OFD Sender: No OFD packet to send [22:28:15]OFD Sender: No OFD packet to send [22:28:20]OFD Sender: No OFD packet to send [22:28:25]OFD Sender: No OFD packet to send [22:28:30]OFD Sender: No OFD packet to send [22:28:35]OFD Sender: No OFD packet to send [22:28:40]OFD Sender: No OFD packet to send [22:28:45]OFD Sender: No OFD packet to send [22:28:50]OFD Sender: No OFD packet to send [22:28:55]OFD Sender: No OFD packet to send [22:29:00]OFD Sender: No OFD packet to send [22:29:05]OFD Sender: No OFD packet to send [22:29:10]OFD Sender: No OFD packet to send [22:29:16]OFD Sender: No OFD packet to send [22:29:21]OFD Sender: No OFD packet to send [22:29:26]OFD Sender: No OFD packet to send [22:29:31]OFD Sender: No OFD packet to send [22:29:36]OFD Sender: No OFD packet to send [22:29:41]OFD Sender: No OFD packet to send [22:29:46]OFD Sender: No OFD packet to send [22:29:51]OFD Sender: No OFD packet to send [22:29:56]OFD Sender: No OFD packet to send [22:30:01]OFD Sender: No OFD packet to send [22:30:06]OFD Sender: No OFD packet to send [22:30:11]OFD Sender: No OFD packet to send [22:30:16]OFD Sender: No OFD packet to send [22:30:21]OFD Sender: No OFD packet to send [22:30:26]OFD Sender: No OFD packet to send [22:30:31]OFD Sender: No OFD packet to send [22:30:36]OFD Sender: No OFD packet to send [22:30:41]OFD Sender: No OFD packet to send [22:30:46]OFD Sender: No OFD packet to send [22:30:51]OFD Sender: No OFD packet to send [22:30:56]OFD Sender: No OFD packet to send [22:31:01]OFD Sender: No OFD packet to send [22:31:06]OFD Sender: No OFD packet to send [22:31:11]OFD Sender: No OFD packet to send [22:31:16]OFD Sender: No OFD packet to send [22:31:21]OFD Sender: No OFD packet to send [22:31:26]OFD Sender: No OFD packet to send [22:31:31]OFD Sender: No OFD packet to send [22:31:36]OFD Sender: No OFD packet to send [22:31:41]OFD Sender: No OFD packet to send [22:31:46]OFD Sender: No OFD packet to send [22:31:51]OFD Sender: No OFD packet to send [22:31:56]OFD Sender: No OFD packet to send [22:32:01]OFD Sender: No OFD packet to send [22:32:06]OFD Sender: No OFD packet to send [22:32:11]OFD Sender: No OFD packet to send [22:32:16]OFD Sender: No OFD packet to send [22:32:21]OFD Sender: No OFD packet to send [22:32:26]OFD Sender: No OFD packet to send [22:32:31]OFD Sender: No OFD packet to send [22:32:36]OFD Sender: No OFD packet to send [22:32:41]OFD Sender: No OFD packet to send [22:32:46]OFD Sender: No OFD packet to send [22:32:51]OFD Sender: No OFD packet to send [22:32:56]OFD Sender: No OFD packet to send [22:33:02]OFD Sender: No OFD packet to send [22:33:07]OFD Sender: No OFD packet to send [22:33:12]OFD Sender: No OFD packet to send [22:33:17]OFD Sender: No OFD packet to send [22:33:22]OFD Sender: No OFD packet to send [22:33:27]OFD Sender: No OFD packet to send [22:33:32]OFD Sender: No OFD packet to send [22:33:37]OFD Sender: No OFD packet to send [22:33:42]OFD Sender: No OFD packet to send [22:33:47]OFD Sender: No OFD packet to send [22:33:52]OFD Sender: No OFD packet to send [22:33:57]OFD Sender: No OFD packet to send [22:34:02]OFD Sender: No OFD packet to send [22:34:07]OFD Sender: No OFD packet to send [22:34:12]OFD Sender: No OFD packet to send [22:34:12]accept exits with 7 [22:34:12]New connection [22:34:12]New thread 3066649956 created [22:34:12]Thread 3066506596 joined [22:34:12]Waiting for new connection... [22:34:12] Sock 7.Parse request [22:34:12]Sock 7.Check first char [22:34:12]Sock 7.First char is OK [22:34:12]request: POST /json_proto HTTP/1.0 [22:34:12]Method: POST [22:34:12]URL: /json_proto [22:34:12]Method is POST - this is cgi request [22:34:12]url: /json_proto [22:34:12]query_string will be loaded in cgi processing [22:34:12]execute_cgi json_proto POST (null) [22:34:12]execute_cgi path=json_proto method=POST [22:34:12]POST find Content-Length [22:34:12]Host: 172.17.42.131:8080 [22:34:12]Content-Length: 682 [22:34:12]Content-Type: application/json [22:34:12] [22:34:12]POST finish read [22:34:12]Found Content-Length = 682 [22:34:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:12]execute_script... [22:34: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)210591", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 13", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 20.220, "sum" : 1500.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:34:12]POST & json_proto [22:34:12]process_json_proto [22:34:12]json parsed OK: [22:34:12]protocol is kg_v1.0 [22:34:12]action value=close_receipt [22:34:12]process_action close_receipt [22:34:12]cmd_close_receipt [22:34:12]MH_GetDate [22:34:12]Write to MH i2c: F0 00 00 0B 08 02 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: F0 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: F0 09 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: F0 09 00 0B 08 00 65 28 18 67 A0 18 CA 66 FF [22:34:12]GetLastDocTimeStamp 1729636058 [22:34:12]current date 1729636453 [22:34:12]FM_GetShiftState [22:34:12]SAM_PROTO_GetShiftState [22:34:12]wFMCommunicate request_size=4 [22:34:12]MH_SAM_APDU [22:34:12]CAPDU: 80 13 01 00 [22:34:12]Write to MH i2c: E2 08 00 0C 08 80 13 01 00 00 00 00 00 91 [22:34:12]Write i2c OK [22:34:12]MH_I2C_Read... [22:34:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:12]Read from MH i2c: E2 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 0E 00 [22:34:12]MH_I2C_Read... [22:34:12]Read from MH i2c: E2 0E 00 0C 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 86 [22:34:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:34:12]wFMCommunicate OK [22:34:12]SAM_PROTO_GetShiftState done [22:34:12]FM_GetShiftState done [22:34:12]opened in 1729556094 [22:34:12]opened+sec_in_day 1729642494 [22:34:12]quantity*price = 150032 [22:34:12]sum+1 = 150033 [22:34:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 559 22.10.2024 22:34 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188530 ФПД: 264883364617575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188530&fm=264883364617575&tin=02508201610067®Number=0000000000100030&sum=150000 [22:34:13]StoreToDocumentArchive [22:34:13]shift 461 fd 188530 [22:34:13]save to /storage/0461/doc_00188530 [22:34:13]save last doc name /storage/0461/doc_00188530 to /storage/kkm_last_doc_name [22:34:13]save OK [22:34:13]Clear old archive folders... [22:34:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:34:13]tlvbuf is 009221F0 [22:34:13]SAM_PROTO_ClearQueue [22:34:13]wFMCommunicate request_size=4 [22:34:13]MH_SAM_APDU [22:34:13]CAPDU: 80 09 00 00 [22:34:13]Write to MH i2c: E2 08 00 19 08 80 09 00 00 00 00 00 00 93 [22:34:13]Write i2c OK [22:34:13]MH_I2C_Read... [22:34:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:34:13]Read from MH i2c: E2 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: E2 03 00 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: E2 03 00 19 08 00 90 00 95 [22:34:13]RAPDU: 90 00 [22:34:13]wFMCommunicate OK [22:34:13]SAM_PROTO_ClearQueue done [22:34:13]KKMCreateOFDPacket [22:34:13]OFDProtocolAddRootSTLVToBuf [22:34:13]FM_MakeSignedData [22:34:13]FM_MakeSignedData [22:34:13]SAM_PROTO_SignData [22:34:13]wFMCommunicate request_size=4 [22:34:13]MH_SAM_APDU [22:34:13]CAPDU: 80 0D 01 02 [22:34:13]Write to MH i2c: E2 08 00 1A 08 80 0D 01 02 00 00 00 00 9B [22:34:13]Write i2c OK [22:34:13]MH_I2C_Read... [22:34:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:34:13]Read from MH i2c: E2 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: E2 03 00 [22:34:13]MH_I2C_Read... [22:34:13]Read from MH i2c: E2 03 00 1A 08 00 90 00 96 [22:34:13]RAPDU: 90 00 [22:34:13]wFMCommunicate OK [22:34:13]wFMCommunicate request_size=255 [22:34:13]MH_SAM_APDU [22:34:13]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 65 28 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E0 02 00 35 04 06 00 F0 [22:34:13]Write to MH i2c: E2 02 01 1B 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 65 28 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E0 02 00 35 04 06 00 F0 00 00 C0 [22:34:13]Write i2c OK [22:34:13]MH_I2C_Read... [22:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:14]Read from MH i2c: E2 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 03 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 03 00 1B 08 00 90 00 97 [22:34:14]RAPDU: 90 00 [22:34:14]wFMCommunicate OK [22:34:14]wFMCommunicate request_size=10 [22:34:14]MH_SAM_APDU [22:34:14]CAPDU: 80 0D 02 02 05 E8 F6 DA DD 67 [22:34:14]Write to MH i2c: E2 0D 00 1C 08 80 0D 02 02 05 00 E8 F6 DA DD 67 00 00 A4 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:34:14]Read from MH i2c: E2 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 03 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 03 00 1C 08 00 90 00 98 [22:34:14]RAPDU: 90 00 [22:34:14]wFMCommunicate OK [22:34:14]wFMCommunicate request_size=4 [22:34:14]MH_SAM_APDU [22:34:14]CAPDU: 80 0D 03 02 [22:34:14]Write to MH i2c: E2 08 00 1D 08 80 0D 03 02 00 00 00 00 A0 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:34:14]Read from MH i2c: E2 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 0B 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 0B 00 1D 08 00 4F 1B 75 D3 35 64 40 43 90 00 6F [22:34:14]RAPDU: 4F 1B 75 D3 35 64 40 43 90 00 [22:34:14]wFMCommunicate OK [22:34:14]SAM_PROTO_SignData done [22:34:14]FM_MakeSignedData done [22:34:14]CreateOFDProtocolMessage [22:34:14]wFMCommunicate request_size=4 [22:34:14]MH_SAM_APDU [22:34:14]CAPDU: 80 11 00 00 [22:34:14]Write to MH i2c: E2 08 00 1E 08 80 11 00 00 00 00 00 00 A0 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:14]Read from MH i2c: E2 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 17 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: E2 17 00 1E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EE [22:34:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:34:14]wFMCommunicate OK [22:34:14]CreateOFDProtocolMessage done [22:34:14]OFDSenderStorePacket 188530 [22:34:14]StoreOFDPacket docnum=188530 [22:34:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD 40 07 01 98 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 65 28 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E0 02 00 35 04 06 00 F0 E8 F6 DA DD 67 4F 1B 75 D3 35 64 40 43 [22:34:14]CheckFolder [22:34:14]dirname=/storage/ofd_packets [22:34:14]CheckFolder done [22:34:14]ProducePacketName [22:34:14]name=ofd_packets/00188530 [22:34:14]NVStorageSaveData ofd_packets/00188530 [22:34:14]File name is /storage/ofd_packets/00188530 [22:34:14]Write 301 bytes [22:34:14]NVStorageSaveData done [22:34:14]OFDSenderStorePacket done [22:34:14]KKMCreateOFDPacket done [22:34:14]NVStorageSaveData kkm_last_timestamp [22:34:14]File name is /storage/kkm_last_timestamp [22:34:14]Write 4 bytes [22:34:14]NVStorageSaveData done [22:34:14]ExternCall_PrintAddStr [22:34:14]wPrintStart [22:34:14]Write to MH i2c: 01 00 00 1F 08 27 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: 01 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: 01 07 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: 01 07 00 1F 08 00 00 00 00 00 FF 0F 3C [22:34:14]RasterBufferAndPrint [22:34:14]line Счет N : (1)210591 [22:34:14]line ИНН: 02508201610067 [22:34:14]line Контрольно-Кассовый Чек [22:34:14]line ПРОДАЖА [22:34:14]line ТРК (МРК, ГНК) : 13 [22:34:14]line Товар: 2710124500 [22:34:14]line Аи-95-К-3 [22:34:14]line 20.220 * 74.20 [22:34:14]line = 1500.32 [22:34:14]line НДС 12% НСП 1% [22:34:14]line > о реализуемом товаре [22:34:14]line ОКРУГЛЕНИЕ: -0.32 [22:34:14]line ИТОГО: 1500.00 [22:34:14]line Внесено: 1500.00 [22:34:14]line СДАЧА: 0.00 [22:34:14]line НСП 1% : 13.28 [22:34:14]line НДС 12% : 159.33 [22:34:14]line Наличными: 1500.00 [22:34:14]line Безнал.: 0.00 [22:34:14]line Место: АЗС № 86 "Партнер Нефть" [22:34:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:34:14]line СНО: Общий режим [22:34:14]line Чек 559 22.10.2024 22:34 [22:34:14]line Смена: 461 ФФД: 1.0 [22:34:14]line ЗНМ: 0300000155 [22:34:14]line РНМ: 0000000000100030 [22:34:14]line Версия ККМ: 001 [22:34:14]line ФМ: 0000000000965340 [22:34:14]line ФД: 188530 [22:34:14]line ФПД: 264883364617575 [22:34:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T223413&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188530&fm=264883364617575&tin=02508201610067®Number=0000000000100030&sum=150000 [22:34:14]written 0, free lines is 4095 [22:34:14]OFD Sender: Processing packet 188530 [packets to send 1062, broken 1061] [22:34:14]ProducePacketName [22:34:14]name=ofd_packets/00188530 [22:34:14]OFD Sender: To server: pG, [22:34:14]CommunicateWithHost lk.salyk.kg:30040 [22:34:14]ConnectInit lk.salyk.kg [22:34:14]Connected sock=10 [22:34:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 DD 40 07 01 98 78 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 02 00 00 F4 03 04 00 65 28 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 72 E0 02 00 35 04 06 00 F0 E8 F6 DA DD 67 4F 1B 75 D3 35 64 40 43 [22:34:14]Write to MH i2c: 01 00 00 4A 08 52 [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: 01 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: 01 07 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: 01 07 00 4A 08 00 00 00 00 00 64 0C C9 [22:34:14]RasterBufferAndPrint [22:34:14]line [22:34:14]line [22:34:14]line [22:34:14]line [22:34:14]line [22:34:14]written 0, free lines is 3176 [22:34:14]MH_Cut [22:34:14]Write to MH i2c: D1 01 00 51 08 01 2B [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: D1 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: D1 01 00 [22:34:14]MH_I2C_Read... [22:34:14]Read from MH i2c: D1 01 00 51 08 00 2A [22:34:14]Write to MH i2c: 01 00 00 52 08 5A [22:34:14]Write i2c OK [22:34:14]MH_I2C_Read... [22:34:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1F D4 47 00 72 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 39 36 35 33 34 30 10 04 04 00 72 E0 02 00 F4 03 04 00 52 D2 17 67 B6 04 01 00 00 11 E6 C6 EE 88 B6 BD 03 [22:34:15]CommunicateWithHost err = 0 [22:34:15]CheckOFDResponse [22:34:15]1017 (14) - 77093643461234 [22:34:15]1041 (16) - 0000000000965340 [22:34:15]1040 (4) - 188530 [22:34:15]1012 (4) - 22.10.2024 16:26 [22:34:15]1206 (1) - 0 [22:34:15]OFD Sender: Remove packet 188530 [22:34:15]ProducePacketName [22:34:15]name=ofd_packets/00188530 [22:34:15]NVStorageDeleteData [22:34:15]OFD Sender: No OFD packet to send [22:34:16]*** Cut start [22:34:16]*** Partial cut [22:34:16]*** CUTSNS_PIN = 1 [22:34:16]*** CUTSNS_PIN = 0 [22:34:16]*** Brake cut motor [22:34:16]Read from MH i2c: 01 [22:34:16]MH_I2C_Read... [22:34:16]*** Stop cut motor [22:34:16]*** Cut end [22:34:16]Read from MH i2c: 01 07 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: 01 07 00 52 08 00 00 00 00 00 FF 0F 6F [22:34:16]process_action close_receipt done [22:34:16]requested_data is exist [22:34:16]produce_requested_data [22:34:16]requested_item fm.sn is exist - process it [22:34:16]wFMCommunicate request_size=4 [22:34:16]MH_SAM_APDU [22:34:16]CAPDU: 80 11 00 00 [22:34:16]Write to MH i2c: E2 08 00 53 08 80 11 00 00 00 00 00 00 D5 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:34:16]Read from MH i2c: E2 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 17 00 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 17 00 53 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 23 [22:34:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:34:16]wFMCommunicate OK [22:34:16]requested_item fd.num is exist - process it [22:34:16]SAM_PROTO_GetFieldsCounters [22:34:16]wFMCommunicate request_size=4 [22:34:16]MH_SAM_APDU [22:34:16]CAPDU: 80 13 00 00 [22:34:16]Write to MH i2c: E2 08 00 54 08 80 13 00 00 00 00 00 00 D8 [22:34:16]Write i2c OK [22:34:16]MH_I2C_Read... [22:34:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:34:16]Read from MH i2c: E2 [22:34:16]MH_I2C_Read... [22:34:16]Read from MH i2c: E2 62 00 [22:34:16]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 62 00 54 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2F 02 00 00 5E 04 04 00 2F 02 00 00 57 04 04 00 30 02 00 00 19 04 04 00 00 00 00 00 90 00 94 [22:34:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 72 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 2F 02 00 00 5E 04 04 00 2F 02 00 00 57 04 04 00 30 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:34:17]wFMCommunicate OK [22:34:17]SAM_PROTO_GetFieldsCounters done [22:34:17]requested_item shift.num is exist - process it [22:34:17]requested_item shift.opened is exist - process it [22:34:17]req_shift_opened [22:34:17]FM_GetShiftState [22:34:17]SAM_PROTO_GetShiftState [22:34:17]wFMCommunicate request_size=4 [22:34:17]MH_SAM_APDU [22:34:17]CAPDU: 80 13 01 00 [22:34:17]Write to MH i2c: E2 08 00 55 08 80 13 01 00 00 00 00 00 DA [22:34:17]Write i2c OK [22:34:17]MH_I2C_Read... [22:34:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:34:17]Read from MH i2c: E2 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 0E 00 [22:34:17]MH_I2C_Read... [22:34:17]Read from MH i2c: E2 0E 00 55 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 CF [22:34:17]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:34:17]wFMCommunicate OK [22:34:17]SAM_PROTO_GetShiftState done [22:34:17]FM_GetShiftState done [22:34:17]req_shift_opened done [22:34:17]requested_item shift.open_date is exist - process it [22:34:17]req_shift_open_date [22:34:17]req_shift_open_date done [22:34:17]produce_requested_data done [22:34:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188530,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:34:17]process_action_free close_receipt [22:34:17]json_value_free [22:34:17]json_value_free done [22:34:17]process_json_proto returns [22:34:17]Send response to host [22:34:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188530,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:34:17]free response buf [22:34:17]execute_script done [22:34:17]execute_script returns [22:34:17]free content buf [22:34:17]Sock 7.Close socket [22:34:17]Sock 7.Thread stoped [22:34:20]OFD Sender: No OFD packet to send [22:34:25]OFD Sender: No OFD packet to send [22:34:30]OFD Sender: No OFD packet to send [22:34:35]OFD Sender: No OFD packet to send [22:34:40]OFD Sender: No OFD packet to send [22:34:45]OFD Sender: No OFD packet to send [22:34:50]OFD Sender: No OFD packet to send [22:34:55]OFD Sender: No OFD packet to send [22:35:00]OFD Sender: No OFD packet to send [22:35:05]OFD Sender: No OFD packet to send [22:35:10]OFD Sender: No OFD packet to send [22:35:15]OFD Sender: No OFD packet to send [22:35:21]OFD Sender: No OFD packet to send [22:35:26]OFD Sender: No OFD packet to send [22:35:31]OFD Sender: No OFD packet to send [22:35:36]OFD Sender: No OFD packet to send [22:35:41]OFD Sender: No OFD packet to send [22:35:46]OFD Sender: No OFD packet to send [22:35:51]OFD Sender: No OFD packet to send [22:35:56]OFD Sender: No OFD packet to send [22:36:01]OFD Sender: No OFD packet to send [22:36:06]OFD Sender: No OFD packet to send [22:36:11]OFD Sender: No OFD packet to send [22:36:16]OFD Sender: No OFD packet to send [22:36:21]OFD Sender: No OFD packet to send [22:36:26]OFD Sender: No OFD packet to send [22:36:31]OFD Sender: No OFD packet to send [22:36:36]OFD Sender: No OFD packet to send [22:36:41]OFD Sender: No OFD packet to send [22:36:46]OFD Sender: No OFD packet to send [22:36:51]OFD Sender: No OFD packet to send [22:36:56]OFD Sender: No OFD packet to send [22:37:01]OFD Sender: No OFD packet to send [22:37:06]OFD Sender: No OFD packet to send [22:37:11]OFD Sender: No OFD packet to send [22:37:16]OFD Sender: No OFD packet to send [22:37:21]OFD Sender: No OFD packet to send [22:37:26]OFD Sender: No OFD packet to send [22:37:31]OFD Sender: No OFD packet to send [22:37:36]OFD Sender: No OFD packet to send [22:37:41]OFD Sender: No OFD packet to send [22:37:46]OFD Sender: No OFD packet to send [22:37:51]OFD Sender: No OFD packet to send [22:37:56]OFD Sender: No OFD packet to send [22:38:01]OFD Sender: No OFD packet to send [22:38:06]OFD Sender: No OFD packet to send [22:38:11]OFD Sender: No OFD packet to send [22:38:16]OFD Sender: No OFD packet to send [22:38:21]OFD Sender: No OFD packet to send [22:38:26]OFD Sender: No OFD packet to send [22:38:31]OFD Sender: No OFD packet to send [22:38:36]OFD Sender: No OFD packet to send [22:38:41]OFD Sender: No OFD packet to send [22:38:46]OFD Sender: No OFD packet to send [22:38:51]OFD Sender: No OFD packet to send [22:38:56]OFD Sender: No OFD packet to send [22:39:01]OFD Sender: No OFD packet to send [22:39:07]OFD Sender: No OFD packet to send [22:39:12]OFD Sender: No OFD packet to send [22:39:17]OFD Sender: No OFD packet to send [22:39:22]OFD Sender: No OFD packet to send [22:39:27]OFD Sender: No OFD packet to send [22:39:32]OFD Sender: No OFD packet to send [22:39:37]OFD Sender: No OFD packet to send [22:39:42]OFD Sender: No OFD packet to send [22:39:47]OFD Sender: No OFD packet to send [22:39:52]OFD Sender: No OFD packet to send [22:39:57]OFD Sender: No OFD packet to send [22:40:02]OFD Sender: No OFD packet to send [22:40:03]accept exits with 9 [22:40:03]New connection [22:40:03]New thread 3066506596 created [22:40:03]Thread 3066649956 joined [22:40:03]Waiting for new connection... [22:40:03] Sock 9.Parse request [22:40:03]Sock 9.Check first char [22:40:03]Sock 9.First char is OK [22:40:03]request: POST /json_proto HTTP/1.0 [22:40:03]Method: POST [22:40:03]URL: /json_proto [22:40:03]Method is POST - this is cgi request [22:40:03]url: /json_proto [22:40:03]query_string will be loaded in cgi processing [22:40:03]execute_cgi json_proto POST (null) [22:40:03]execute_cgi path=json_proto method=POST [22:40:03]POST find Content-Length [22:40:03]Host: 172.17.42.131:8080 [22:40:03]Content-Length: 682 [22:40:03]Content-Type: application/json [22:40:03] [22:40:03]POST finish read [22:40:03]Found Content-Length = 682 [22:40:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:03]execute_script... [22:40: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)210592", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 22.430, "sum" : 1500.57, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1500.00, "total" : 1500.00, "payments": [ { "type": 0, "sum" : 1500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:03]POST & json_proto [22:40:03]process_json_proto [22:40:03]json parsed OK: [22:40:03]protocol is kg_v1.0 [22:40:03]action value=close_receipt [22:40:03]process_action close_receipt [22:40:03]cmd_close_receipt [22:40:03]MH_GetDate [22:40:03]Write to MH i2c: F0 00 00 56 08 4D [22:40:03]Write i2c OK [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: F0 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: F0 09 00 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: F0 09 00 56 08 00 C4 29 18 67 A0 18 CA 66 AA [22:40:03]GetLastDocTimeStamp 1729636453 [22:40:03]current date 1729636804 [22:40:03]FM_GetShiftState [22:40:03]SAM_PROTO_GetShiftState [22:40:03]wFMCommunicate request_size=4 [22:40:03]MH_SAM_APDU [22:40:03]CAPDU: 80 13 01 00 [22:40:03]Write to MH i2c: E2 08 00 57 08 80 13 01 00 00 00 00 00 DC [22:40:03]Write i2c OK [22:40:03]MH_I2C_Read... [22:40:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:03]Read from MH i2c: E2 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: E2 0E 00 [22:40:03]MH_I2C_Read... [22:40:03]Read from MH i2c: E2 0E 00 57 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D1 [22:40:03]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:40:03]wFMCommunicate OK [22:40:03]SAM_PROTO_GetShiftState done [22:40:03]FM_GetShiftState done [22:40:03]opened in 1729556094 [22:40:03]opened+sec_in_day 1729642494 [22:40:03]quantity*price = 150056 [22:40:03]sum+1 = 150058 [22:40:03]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 560 22.10.2024 22:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188531 ФПД: 237404413007202 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224004&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188531&fm=237404413007202&tin=02508201610067®Number=0000000000100030&sum=150000 [22:40:04]StoreToDocumentArchive [22:40:04]shift 461 fd 188531 [22:40:04]save to /storage/0461/doc_00188531 [22:40:04]save last doc name /storage/0461/doc_00188531 to /storage/kkm_last_doc_name [22:40:04]save OK [22:40:04]Clear old archive folders... [22:40:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:04]tlvbuf is 008E2790 [22:40:04]SAM_PROTO_ClearQueue [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 09 00 00 [22:40:04]Write to MH i2c: E2 08 00 64 08 80 09 00 00 00 00 00 00 DE [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 64 08 00 90 00 E0 [22:40:04]RAPDU: 90 00 [22:40:04]wFMCommunicate OK [22:40:04]SAM_PROTO_ClearQueue done [22:40:04]KKMCreateOFDPacket [22:40:04]OFDProtocolAddRootSTLVToBuf [22:40:04]FM_MakeSignedData [22:40:04]FM_MakeSignedData [22:40:04]SAM_PROTO_SignData [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 0D 01 02 [22:40:04]Write to MH i2c: E2 08 00 65 08 80 0D 01 02 00 00 00 00 E6 [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 65 08 00 90 00 E1 [22:40:04]RAPDU: 90 00 [22:40:04]wFMCommunicate OK [22:40:04]wFMCommunicate request_size=255 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 C4 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E0 02 00 35 04 06 00 D7 [22:40:04]Write to MH i2c: E2 02 01 66 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 C4 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E0 02 00 35 04 06 00 D7 00 00 3A [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 66 08 00 90 00 E2 [22:40:04]RAPDU: 90 00 [22:40:04]wFMCommunicate OK [22:40:04]wFMCommunicate request_size=10 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 0D 02 02 05 EB 05 B4 95 62 [22:40:04]Write to MH i2c: E2 0D 00 67 08 80 0D 02 02 05 00 EB 05 B4 95 62 00 00 8E [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 03 00 67 08 00 90 00 E3 [22:40:04]RAPDU: 90 00 [22:40:04]wFMCommunicate OK [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 0D 03 02 [22:40:04]Write to MH i2c: E2 08 00 68 08 80 0D 03 02 00 00 00 00 EB [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:04]Read from MH i2c: E2 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0B 00 [22:40:04]MH_I2C_Read... [22:40:04]Read from MH i2c: E2 0B 00 68 08 00 5E 23 B0 D8 F6 08 B9 C2 90 00 6E [22:40:04]RAPDU: 5E 23 B0 D8 F6 08 B9 C2 90 00 [22:40:04]wFMCommunicate OK [22:40:04]SAM_PROTO_SignData done [22:40:04]FM_MakeSignedData done [22:40:04]CreateOFDProtocolMessage [22:40:04]wFMCommunicate request_size=4 [22:40:04]MH_SAM_APDU [22:40:04]CAPDU: 80 11 00 00 [22:40:04]Write to MH i2c: E2 08 00 69 08 80 11 00 00 00 00 00 00 EB [22:40:04]Write i2c OK [22:40:04]MH_I2C_Read... [22:40:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:05]Read from MH i2c: E2 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 17 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: E2 17 00 69 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 39 [22:40:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:40:05]wFMCommunicate OK [22:40:05]CreateOFDProtocolMessage done [22:40:05]OFDSenderStorePacket 188531 [22:40:05]StoreOFDPacket docnum=188531 [22:40:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 36 0E 07 01 AC 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 C4 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E0 02 00 35 04 06 00 D7 EB 05 B4 95 62 5E 23 B0 D8 F6 08 B9 C2 [22:40:05]CheckFolder [22:40:05]dirname=/storage/ofd_packets [22:40:05]CheckFolder done [22:40:05]ProducePacketName [22:40:05]name=ofd_packets/00188531 [22:40:05]NVStorageSaveData ofd_packets/00188531 [22:40:05]File name is /storage/ofd_packets/00188531 [22:40:05]Write 301 bytes [22:40:05]NVStorageSaveData done [22:40:05]OFDSenderStorePacket done [22:40:05]KKMCreateOFDPacket done [22:40:05]NVStorageSaveData kkm_last_timestamp [22:40:05]File name is /storage/kkm_last_timestamp [22:40:05]Write 4 bytes [22:40:05]NVStorageSaveData done [22:40:05]ExternCall_PrintAddStr [22:40:05]wPrintStart [22:40:05]Write to MH i2c: 01 00 00 6A 08 72 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 6A 08 00 00 00 00 00 FF 0F 87 [22:40:05]RasterBufferAndPrint [22:40:05]line Счет N : (1)210592 [22:40:05]line ИНН: 02508201610067 [22:40:05]line Контрольно-Кассовый Чек [22:40:05]line ПРОДАЖА [22:40:05]line ТРК (МРК, ГНК) : 42 [22:40:05]line Товар: 2710124130 [22:40:05]line Аи-92-К-3 [22:40:05]line 22.430 * 66.90 [22:40:05]line = 1500.57 [22:40:05]line НДС 12% НСП 1% [22:40:05]line > о реализуемом товаре [22:40:05]line ОКРУГЛЕНИЕ: -0.57 [22:40:05]line ИТОГО: 1500.00 [22:40:05]line Внесено: 1500.00 [22:40:05]line СДАЧА: 0.00 [22:40:05]line НСП 1% : 13.28 [22:40:05]line НДС 12% : 159.35 [22:40:05]line Наличными: 1500.00 [22:40:05]line Безнал.: 0.00 [22:40:05]line Место: АЗС № 86 "Партнер Нефть" [22:40:05]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:40:05]line СНО: Общий режим [22:40:05]line Чек 560 22.10.2024 22:40 [22:40:05]line Смена: 461 ФФД: 1.0 [22:40:05]line ЗНМ: 0300000155 [22:40:05]line РНМ: 0000000000100030 [22:40:05]line Версия ККМ: 001 [22:40:05]line ФМ: 0000000000965340 [22:40:05]line ФД: 188531 [22:40:05]line ФПД: 237404413007202 [22:40:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224004&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188531&fm=237404413007202&tin=02508201610067®Number=0000000000100030&sum=150000 [22:40:05]written 0, free lines is 4095 [22:40:05]OFD Sender: Processing packet 188531 [packets to send 1062, broken 1061] [22:40:05]ProducePacketName [22:40:05]name=ofd_packets/00188531 [22:40:05]OFD Sender: To server: pG, [22:40:05]CommunicateWithHost lk.salyk.kg:30040 [22:40:05]ConnectInit lk.salyk.kg [22:40:05]Connected sock=10 [22:40:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 36 0E 07 01 AC 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 33 FF 03 08 00 03 9E 57 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 29 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3F 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 02 00 00 F4 03 04 00 C4 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E0 02 00 35 04 06 00 D7 EB 05 B4 95 62 5E 23 B0 D8 F6 08 B9 C2 [22:40:05]Write to MH i2c: 01 00 00 95 08 9D [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: 01 07 00 95 08 00 00 00 00 00 64 0C 14 [22:40:05]RasterBufferAndPrint [22:40:05]line [22:40:05]line [22:40:05]line [22:40:05]line [22:40:05]line [22:40:05]written 0, free lines is 3176 [22:40:05]MH_Cut [22:40:05]Write to MH i2c: D1 01 00 9C 08 01 76 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: D1 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: D1 01 00 [22:40:05]MH_I2C_Read... [22:40:05]Read from MH i2c: D1 01 00 9C 08 00 75 [22:40:05]Write to MH i2c: 01 00 00 9D 08 A5 [22:40:05]Write i2c OK [22:40:05]MH_I2C_Read... [22:40:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 EB 47 00 3B 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 73 E0 02 00 F4 03 04 00 B0 D3 17 67 B6 04 01 00 00 2E 51 6E C8 8A 89 BE E4 [22:40:05]CommunicateWithHost err = 0 [22:40:05]CheckOFDResponse [22:40:05]1017 (14) - 77093643461234 [22:40:05]1041 (16) - 0000000000965340 [22:40:05]1040 (4) - 188531 [22:40:05]1012 (4) - 22.10.2024 16:32 [22:40:05]1206 (1) - 0 [22:40:05]OFD Sender: Remove packet 188531 [22:40:05]ProducePacketName [22:40:05]name=ofd_packets/00188531 [22:40:05]NVStorageDeleteData [22:40:06]OFD Sender: No OFD packet to send [22:40:06]*** Cut start [22:40:06]*** Partial cut [22:40:06]*** CUTSNS_PIN = 1 [22:40:06]*** CUTSNS_PIN = 0 [22:40:07]*** Brake cut motor [22:40:07]Read from MH i2c: 01 [22:40:07]MH_I2C_Read... [22:40:07]*** Stop cut motor [22:40:07]*** Cut end [22:40:07]Read from MH i2c: 01 07 00 [22:40:07]MH_I2C_Read... [22:40:07]Read from MH i2c: 01 07 00 9D 08 00 00 00 00 00 FF 0F BA [22:40:07]process_action close_receipt done [22:40:07]requested_data is exist [22:40:07]produce_requested_data [22:40:07]requested_item fm.sn is exist - process it [22:40:07]wFMCommunicate request_size=4 [22:40:07]MH_SAM_APDU [22:40:07]CAPDU: 80 11 00 00 [22:40:07]Write to MH i2c: E2 08 00 9E 08 80 11 00 00 00 00 00 00 20 [22:40:07]Write i2c OK [22:40:07]MH_I2C_Read... [22:40:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:07]Read from MH i2c: E2 [22:40:07]MH_I2C_Read... [22:40:07]Read from MH i2c: E2 17 00 [22:40:07]MH_I2C_Read... [22:40:07]Read from MH i2c: E2 17 00 9E 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6E [22:40:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:40:07]wFMCommunicate OK [22:40:07]requested_item fd.num is exist - process it [22:40:07]SAM_PROTO_GetFieldsCounters [22:40:07]wFMCommunicate request_size=4 [22:40:07]MH_SAM_APDU [22:40:07]CAPDU: 80 13 00 00 [22:40:07]Write to MH i2c: E2 08 00 9F 08 80 13 00 00 00 00 00 00 23 [22:40:07]Write i2c OK [22:40:07]MH_I2C_Read... [22:40:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:07]Read from MH i2c: E2 [22:40:07]MH_I2C_Read... [22:40:07]Read from MH i2c: E2 62 00 [22:40:07]MH_I2C_Read... [22:40:07]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 30 02 00 00 5E 04 04 00 30 02 00 00 57 04 04 00 31 02 00 00 19 04 04 00 00 00 00 00 90 00 E3 [22:40:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 73 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 30 02 00 00 5E 04 04 00 30 02 00 00 57 04 04 00 31 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:07]wFMCommunicate OK [22:40:07]SAM_PROTO_GetFieldsCounters done [22:40:07]requested_item shift.num is exist - process it [22:40:07]requested_item shift.opened is exist - process it [22:40:07]req_shift_opened [22:40:07]FM_GetShiftState [22:40:07]SAM_PROTO_GetShiftState [22:40:07]wFMCommunicate request_size=4 [22:40:07]MH_SAM_APDU [22:40:07]CAPDU: 80 13 01 00 [22:40:07]Write to MH i2c: E2 08 00 A0 08 80 13 01 00 00 00 00 00 25 [22:40:07]Write i2c OK [22:40:07]MH_I2C_Read... [22:40:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:07]Read from MH i2c: E2 [22:40:07]MH_I2C_Read... [22:40:07]Read from MH i2c: E2 0E 00 [22:40:07]MH_I2C_Read... [22:40:07]Read from MH i2c: E2 0E 00 A0 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1A [22:40:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:40:07]wFMCommunicate OK [22:40:07]SAM_PROTO_GetShiftState done [22:40:07]FM_GetShiftState done [22:40:07]req_shift_opened done [22:40:07]requested_item shift.open_date is exist - process it [22:40:07]req_shift_open_date [22:40:07]req_shift_open_date done [22:40:07]produce_requested_data done [22:40:07]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188531,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:40:07]process_action_free close_receipt [22:40:07]json_value_free [22:40:07]json_value_free done [22:40:07]process_json_proto returns [22:40:07]Send response to host [22:40:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188531,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:40:07]free response buf [22:40:07]execute_script done [22:40:07]execute_script returns [22:40:07]free content buf [22:40:07]Sock 9.Close socket [22:40:07]Sock 9.Thread stoped [22:40:11]OFD Sender: No OFD packet to send [22:40:12]accept exits with 7 [22:40:12]New connection [22:40:12]New thread 3066649956 created [22:40:12]Thread 3066506596 joined [22:40:12]Waiting for new connection... [22:40:12] Sock 7.Parse request [22:40:12]Sock 7.Check first char [22:40:12]Sock 7.First char is OK [22:40:12]request: POST /json_proto HTTP/1.0 [22:40:12]Method: POST [22:40:12]URL: /json_proto [22:40:12]Method is POST - this is cgi request [22:40:12]url: /json_proto [22:40:12]query_string will be loaded in cgi processing [22:40:12]execute_cgi json_proto POST (null) [22:40:12]execute_cgi path=json_proto method=POST [22:40:12]POST find Content-Length [22:40:12]Host: 172.17.42.131:8080 [22:40:12]Content-Length: 682 [22:40:12]Content-Type: application/json [22:40:12] [22:40:12]POST finish read [22:40:12]Found Content-Length = 682 [22:40:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:12]execute_script... [22:40: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)210593", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:40:12]POST & json_proto [22:40:12]process_json_proto [22:40:12]json parsed OK: [22:40:12]protocol is kg_v1.0 [22:40:12]action value=close_receipt [22:40:12]process_action close_receipt [22:40:12]cmd_close_receipt [22:40:12]MH_GetDate [22:40:12]Write to MH i2c: F0 00 00 A1 08 98 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: F0 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: F0 09 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: F0 09 00 A1 08 00 CD 29 18 67 A0 18 CA 66 FE [22:40:12]GetLastDocTimeStamp 1729636804 [22:40:12]current date 1729636813 [22:40:12]FM_GetShiftState [22:40:12]SAM_PROTO_GetShiftState [22:40:12]wFMCommunicate request_size=4 [22:40:12]MH_SAM_APDU [22:40:12]CAPDU: 80 13 01 00 [22:40:12]Write to MH i2c: E2 08 00 A2 08 80 13 01 00 00 00 00 00 27 [22:40:12]Write i2c OK [22:40:12]MH_I2C_Read... [22:40:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:12]Read from MH i2c: E2 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 0E 00 [22:40:12]MH_I2C_Read... [22:40:12]Read from MH i2c: E2 0E 00 A2 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 1C [22:40:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:40:12]wFMCommunicate OK [22:40:12]SAM_PROTO_GetShiftState done [22:40:12]FM_GetShiftState done [22:40:12]opened in 1729556094 [22:40:12]opened+sec_in_day 1729642494 [22:40:12]quantity*price = 100015 [22:40:12]sum+1 = 100017 [22:40:12]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 561 22.10.2024 22:40 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188532 ФПД: 2119935336268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224013&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188532&fm=2119935336268&tin=02508201610067®Number=0000000000100030&sum=100000 [22:40:13]StoreToDocumentArchive [22:40:13]shift 461 fd 188532 [22:40:13]save to /storage/0461/doc_00188532 [22:40:13]save last doc name /storage/0461/doc_00188532 to /storage/kkm_last_doc_name [22:40:13]save OK [22:40:13]Clear old archive folders... [22:40:13]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:40:13]tlvbuf is 008E1660 [22:40:13]SAM_PROTO_ClearQueue [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 09 00 00 [22:40:13]Write to MH i2c: E2 08 00 AF 08 80 09 00 00 00 00 00 00 29 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 AF 08 00 90 00 2B [22:40:13]RAPDU: 90 00 [22:40:13]wFMCommunicate OK [22:40:13]SAM_PROTO_ClearQueue done [22:40:13]KKMCreateOFDPacket [22:40:13]OFDProtocolAddRootSTLVToBuf [22:40:13]FM_MakeSignedData [22:40:13]FM_MakeSignedData [22:40:13]SAM_PROTO_SignData [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 0D 01 02 [22:40:13]Write to MH i2c: E2 08 00 B0 08 80 0D 01 02 00 00 00 00 31 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 B0 08 00 90 00 2C [22:40:13]RAPDU: 90 00 [22:40:13]wFMCommunicate OK [22:40:13]wFMCommunicate request_size=255 [22:40:13]MH_SAM_APDU [22:40: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 CD 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E0 02 00 35 04 06 00 01 [22:40:13]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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 CD 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E0 02 00 35 04 06 00 01 00 00 6B [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 B1 08 00 90 00 2D [22:40:13]RAPDU: 90 00 [22:40:13]wFMCommunicate OK [22:40:13]wFMCommunicate request_size=10 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 0D 02 02 05 ED 95 FE 1F 4C [22:40:13]Write to MH i2c: E2 0D 00 B2 08 80 0D 02 02 05 00 ED 95 FE 1F 4C 00 00 29 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 03 00 B2 08 00 90 00 2E [22:40:13]RAPDU: 90 00 [22:40:13]wFMCommunicate OK [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 0D 03 02 [22:40:13]Write to MH i2c: E2 08 00 B3 08 80 0D 03 02 00 00 00 00 36 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 0B 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 0B 00 B3 08 00 41 B5 69 1A B6 7F 8B E5 90 00 55 [22:40:13]RAPDU: 41 B5 69 1A B6 7F 8B E5 90 00 [22:40:13]wFMCommunicate OK [22:40:13]SAM_PROTO_SignData done [22:40:13]FM_MakeSignedData done [22:40:13]CreateOFDProtocolMessage [22:40:13]wFMCommunicate request_size=4 [22:40:13]MH_SAM_APDU [22:40:13]CAPDU: 80 11 00 00 [22:40:13]Write to MH i2c: E2 08 00 B4 08 80 11 00 00 00 00 00 00 36 [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:13]Read from MH i2c: E2 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 17 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: E2 17 00 B4 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 84 [22:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:40:13]wFMCommunicate OK [22:40:13]CreateOFDProtocolMessage done [22:40:13]OFDSenderStorePacket 188532 [22:40:13]StoreOFDPacket docnum=188532 [22:40:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 71 07 01 04 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 CD 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E0 02 00 35 04 06 00 01 ED 95 FE 1F 4C 41 B5 69 1A B6 7F 8B E5 [22:40:13]CheckFolder [22:40:13]dirname=/storage/ofd_packets [22:40:13]CheckFolder done [22:40:13]ProducePacketName [22:40:13]name=ofd_packets/00188532 [22:40:13]NVStorageSaveData ofd_packets/00188532 [22:40:13]File name is /storage/ofd_packets/00188532 [22:40:13]Write 301 bytes [22:40:13]NVStorageSaveData done [22:40:13]OFDSenderStorePacket done [22:40:13]KKMCreateOFDPacket done [22:40:13]NVStorageSaveData kkm_last_timestamp [22:40:13]File name is /storage/kkm_last_timestamp [22:40:13]Write 4 bytes [22:40:13]NVStorageSaveData done [22:40:13]ExternCall_PrintAddStr [22:40:13]wPrintStart [22:40:13]Write to MH i2c: 01 00 00 B5 08 BD [22:40:13]Write i2c OK [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 07 00 [22:40:13]MH_I2C_Read... [22:40:13]Read from MH i2c: 01 07 00 B5 08 00 00 00 00 00 FF 0F D2 [22:40:13]RasterBufferAndPrint [22:40:13]line Счет N : (1)210593 [22:40:13]line ИНН: 02508201610067 [22:40:13]line Контрольно-Кассовый Чек [22:40:13]line ПРОДАЖА [22:40:13]line ТРК (МРК, ГНК) : 32 [22:40:13]line Товар: 2710124130 [22:40:13]line Аи-92-К-3 [22:40:13]line 14.950 * 66.90 [22:40:13]line = 1000.16 [22:40:13]line НДС 12% НСП 1% [22:40:13]line > о реализуемом товаре [22:40:13]line ОКРУГЛЕНИЕ: -0.16 [22:40:13]line ИТОГО: 1000.00 [22:40:13]line Внесено: 1000.00 [22:40:13]line СДАЧА: 0.00 [22:40:13]line НСП 1% : 8.85 [22:40:13]line НДС 12% : 106.21 [22:40:13]line Наличными: 1000.00 [22:40:13]line Безнал.: 0.00 [22:40:13]line Место: АЗС № 86 "Партнер Нефть" [22:40:13]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:40:13]line СНО: Общий режим [22:40:13]line Чек 561 22.10.2024 22:40 [22:40:13]line Смена: 461 ФФД: 1.0 [22:40:13]line ЗНМ: 0300000155 [22:40:13]line РНМ: 0000000000100030 [22:40:13]line Версия ККМ: 001 [22:40:13]line ФМ: 0000000000965340 [22:40:13]line ФД: 188532 [22:40:13]line ФПД: 2119935336268 [22:40:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224013&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188532&fm=2119935336268&tin=02508201610067®Number=0000000000100030&sum=100000 [22:40:13]written 0, free lines is 4095 [22:40:13]OFD Sender: Processing packet 188532 [packets to send 1062, broken 1061] [22:40:13]ProducePacketName [22:40:13]name=ofd_packets/00188532 [22:40:13]OFD Sender: To server: pG, [22:40:13]CommunicateWithHost lk.salyk.kg:30040 [22:40:13]ConnectInit lk.salyk.kg [22:40:14]Connected sock=10 [22:40:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 B5 71 07 01 04 07 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 02 00 00 F4 03 04 00 CD 29 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E0 02 00 35 04 06 00 01 ED 95 FE 1F 4C 41 B5 69 1A B6 7F 8B E5 [22:40:14]Write to MH i2c: 01 00 00 E0 08 E8 [22:40:14]Write i2c OK [22:40:14]MH_I2C_Read... [22:40:14]Read from MH i2c: 01 [22:40:14]MH_I2C_Read... [22:40:14]Read from MH i2c: 01 07 00 [22:40:14]MH_I2C_Read... [22:40:14]Read from MH i2c: 01 07 00 E0 08 00 00 00 00 00 59 0C 54 [22:40:14]RasterBufferAndPrint [22:40:14]line [22:40:14]line [22:40:14]line [22:40:14]line [22:40:14]line [22:40:14]written 0, free lines is 3167 [22:40:14]MH_Cut [22:40:14]Write to MH i2c: D1 01 00 E7 08 01 C1 [22:40:14]Write i2c OK [22:40:14]MH_I2C_Read... [22:40:14]Read from MH i2c: D1 [22:40:14]MH_I2C_Read... [22:40:14]Read from MH i2c: D1 01 00 [22:40:14]MH_I2C_Read... [22:40:14]Read from MH i2c: D1 01 00 E7 08 00 C0 [22:40:14]Write to MH i2c: 01 00 00 E8 08 F0 [22:40:14]Write i2c OK [22:40:14]MH_I2C_Read... [22:40:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FF 62 47 00 04 5F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 74 E0 02 00 F4 03 04 00 B9 D3 17 67 B6 04 01 00 00 0E EE 12 9C 47 E6 63 16 [22:40:14]CommunicateWithHost err = 0 [22:40:14]CheckOFDResponse [22:40:14]1017 (14) - 77093643461234 [22:40:14]1041 (16) - 0000000000965340 [22:40:14]1040 (4) - 188532 [22:40:14]1012 (4) - 22.10.2024 16:32 [22:40:14]1206 (1) - 0 [22:40:14]OFD Sender: Remove packet 188532 [22:40:14]ProducePacketName [22:40:14]name=ofd_packets/00188532 [22:40:14]NVStorageDeleteData [22:40:15]OFD Sender: No OFD packet to send [22:40:15]*** Cut start [22:40:15]*** Partial cut [22:40:15]*** CUTSNS_PIN = 1 [22:40:15]*** CUTSNS_PIN = 0 [22:40:15]*** Brake cut motor [22:40:16]Read from MH i2c: 01 [22:40:16]MH_I2C_Read... [22:40:16]*** Stop cut motor [22:40:16]*** Cut end [22:40:16]Read from MH i2c: 01 07 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: 01 07 00 E8 08 00 00 00 00 00 FF 0F 05 [22:40:16]process_action close_receipt done [22:40:16]requested_data is exist [22:40:16]produce_requested_data [22:40:16]requested_item fm.sn is exist - process it [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 11 00 00 [22:40:16]Write to MH i2c: E2 08 00 E9 08 80 11 00 00 00 00 00 00 6B [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 17 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 17 00 E9 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B9 [22:40:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:40:16]wFMCommunicate OK [22:40:16]requested_item fd.num is exist - process it [22:40:16]SAM_PROTO_GetFieldsCounters [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 13 00 00 [22:40:16]Write to MH i2c: E2 08 00 EA 08 80 13 00 00 00 00 00 00 6E [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 62 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 62 00 EA 08 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 31 02 00 00 5E 04 04 00 31 02 00 00 57 04 04 00 32 02 00 00 19 04 04 00 00 00 00 00 90 00 32 [22:40:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 74 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 31 02 00 00 5E 04 04 00 31 02 00 00 57 04 04 00 32 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:40:16]wFMCommunicate OK [22:40:16]SAM_PROTO_GetFieldsCounters done [22:40:16]requested_item shift.num is exist - process it [22:40:16]requested_item shift.opened is exist - process it [22:40:16]req_shift_opened [22:40:16]FM_GetShiftState [22:40:16]SAM_PROTO_GetShiftState [22:40:16]wFMCommunicate request_size=4 [22:40:16]MH_SAM_APDU [22:40:16]CAPDU: 80 13 01 00 [22:40:16]Write to MH i2c: E2 08 00 EB 08 80 13 01 00 00 00 00 00 70 [22:40:16]Write i2c OK [22:40:16]MH_I2C_Read... [22:40:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:40:16]Read from MH i2c: E2 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 0E 00 [22:40:16]MH_I2C_Read... [22:40:16]Read from MH i2c: E2 0E 00 EB 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 65 [22:40:16]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:40:16]wFMCommunicate OK [22:40:16]SAM_PROTO_GetShiftState done [22:40:16]FM_GetShiftState done [22:40:16]req_shift_opened done [22:40:16]requested_item shift.open_date is exist - process it [22:40:16]req_shift_open_date [22:40:16]req_shift_open_date done [22:40:16]produce_requested_data done [22:40:16]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188532,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:40:16]process_action_free close_receipt [22:40:16]json_value_free [22:40:16]json_value_free done [22:40:16]process_json_proto returns [22:40:16]Send response to host [22:40:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188532,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:40:16]free response buf [22:40:16]execute_script done [22:40:16]execute_script returns [22:40:16]free content buf [22:40:16]Sock 7.Close socket [22:40:16]Sock 7.Thread stoped [22:40:20]OFD Sender: No OFD packet to send [22:40:25]OFD Sender: No OFD packet to send [22:40:30]OFD Sender: No OFD packet to send [22:40:35]OFD Sender: No OFD packet to send [22:40:40]OFD Sender: No OFD packet to send [22:40:45]OFD Sender: No OFD packet to send [22:40:50]OFD Sender: No OFD packet to send [22:40:55]OFD Sender: No OFD packet to send [22:41:00]OFD Sender: No OFD packet to send [22:41:05]OFD Sender: No OFD packet to send [22:41:10]OFD Sender: No OFD packet to send [22:41:15]OFD Sender: No OFD packet to send [22:41:20]OFD Sender: No OFD packet to send [22:41:25]OFD Sender: No OFD packet to send [22:41:30]OFD Sender: No OFD packet to send [22:41:35]OFD Sender: No OFD packet to send [22:41:40]OFD Sender: No OFD packet to send [22:41:45]OFD Sender: No OFD packet to send [22:41:50]OFD Sender: No OFD packet to send [22:41:55]OFD Sender: No OFD packet to send [22:42:00]OFD Sender: No OFD packet to send [22:42:05]OFD Sender: No OFD packet to send [22:42:10]OFD Sender: No OFD packet to send [22:42:15]OFD Sender: No OFD packet to send [22:42:20]OFD Sender: No OFD packet to send [22:42:25]OFD Sender: No OFD packet to send [22:42:30]OFD Sender: No OFD packet to send [22:42:35]OFD Sender: No OFD packet to send [22:42:40]OFD Sender: No OFD packet to send [22:42:45]OFD Sender: No OFD packet to send [22:42:50]OFD Sender: No OFD packet to send [22:42:55]OFD Sender: No OFD packet to send [22:43:00]OFD Sender: No OFD packet to send [22:43:05]OFD Sender: No OFD packet to send [22:43:10]OFD Sender: No OFD packet to send [22:43:15]OFD Sender: No OFD packet to send [22:43:20]OFD Sender: No OFD packet to send [22:43:25]OFD Sender: No OFD packet to send [22:43:31]OFD Sender: No OFD packet to send [22:43:36]OFD Sender: No OFD packet to send [22:43:41]OFD Sender: No OFD packet to send [22:43:46]OFD Sender: No OFD packet to send [22:43:51]OFD Sender: No OFD packet to send [22:43:56]OFD Sender: No OFD packet to send [22:44:01]OFD Sender: No OFD packet to send [22:44:06]OFD Sender: No OFD packet to send [22:44:11]OFD Sender: No OFD packet to send [22:44:16]OFD Sender: No OFD packet to send [22:44:21]OFD Sender: No OFD packet to send [22:44:26]OFD Sender: No OFD packet to send [22:44:31]OFD Sender: No OFD packet to send [22:44:36]OFD Sender: No OFD packet to send [22:44:41]OFD Sender: No OFD packet to send [22:44:43]accept exits with 9 [22:44:43]New connection [22:44:43]New thread 3066506596 created [22:44:43]Thread 3066649956 joined [22:44:43]Waiting for new connection... [22:44:43] Sock 9.Parse request [22:44:43]Sock 9.Check first char [22:44:43]Sock 9.First char is OK [22:44:43]request: POST /json_proto HTTP/1.0 [22:44:43]Method: POST [22:44:43]URL: /json_proto [22:44:43]Method is POST - this is cgi request [22:44:43]url: /json_proto [22:44:43]query_string will be loaded in cgi processing [22:44:43]execute_cgi json_proto POST (null) [22:44:43]execute_cgi path=json_proto method=POST [22:44:43]POST find Content-Length [22:44:43]Host: 172.17.42.131:8080 [22:44:43]Content-Length: 677 [22:44:43]Content-Type: application/json [22:44:43] [22:44:43]POST finish read [22:44:43]Found Content-Length = 677 [22:44:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.250, "sum" : 485.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 485.00, "total" : 485.00, "payments": [ { "type": 0, "sum" : 485.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:43]execute_script... [22:44: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)210594", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.250, "sum" : 485.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 485.00, "total" : 485.00, "payments": [ { "type": 0, "sum" : 485.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:44:43]POST & json_proto [22:44:43]process_json_proto [22:44:43]json parsed OK: [22:44:43]protocol is kg_v1.0 [22:44:43]action value=close_receipt [22:44:43]process_action close_receipt [22:44:43]cmd_close_receipt [22:44:43]MH_GetDate [22:44:43]Write to MH i2c: F0 00 00 EC 08 E3 [22:44:43]Write i2c OK [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: F0 [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: F0 09 00 [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: F0 09 00 EC 08 00 DC 2A 18 67 A0 18 CA 66 59 [22:44:43]GetLastDocTimeStamp 1729636813 [22:44:43]current date 1729637084 [22:44:43]FM_GetShiftState [22:44:43]SAM_PROTO_GetShiftState [22:44:43]wFMCommunicate request_size=4 [22:44:43]MH_SAM_APDU [22:44:43]CAPDU: 80 13 01 00 [22:44:43]Write to MH i2c: E2 08 00 ED 08 80 13 01 00 00 00 00 00 72 [22:44:43]Write i2c OK [22:44:43]MH_I2C_Read... [22:44:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:43]Read from MH i2c: E2 [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: E2 0E 00 [22:44:43]MH_I2C_Read... [22:44:43]Read from MH i2c: E2 0E 00 ED 08 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 67 [22:44:43]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:44:43]wFMCommunicate OK [22:44:43]SAM_PROTO_GetShiftState done [22:44:43]FM_GetShiftState done [22:44:43]opened in 1729556094 [22:44:43]opened+sec_in_day 1729642494 [22:44:43]quantity*price = 48502 [22:44:43]sum+1 = 48504 [22:44:43]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 485.00 Внесено: 485.00 СДАЧА: 0.00 НСП 1% : 4.29 НДС 12% : 51.51 Наличными: 485.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 562 22.10.2024 22:44 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188533 ФПД: 137555683732322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224444&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188533&fm=137555683732322&tin=02508201610067®Number=0000000000100030&sum=48500 [22:44:44]StoreToDocumentArchive [22:44:44]shift 461 fd 188533 [22:44:44]save to /storage/0461/doc_00188533 [22:44:44]save last doc name /storage/0461/doc_00188533 to /storage/kkm_last_doc_name [22:44:44]save OK [22:44:44]Clear old archive folders... [22:44:44]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:44:44]tlvbuf is 00922B20 [22:44:44]SAM_PROTO_ClearQueue [22:44:44]wFMCommunicate request_size=4 [22:44:44]MH_SAM_APDU [22:44:44]CAPDU: 80 09 00 00 [22:44:44]Write to MH i2c: E2 08 00 FA 08 80 09 00 00 00 00 00 00 74 [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:44:44]Read from MH i2c: E2 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 FA 08 00 90 00 76 [22:44:44]RAPDU: 90 00 [22:44:44]wFMCommunicate OK [22:44:44]SAM_PROTO_ClearQueue done [22:44:44]KKMCreateOFDPacket [22:44:44]OFDProtocolAddRootSTLVToBuf [22:44:44]FM_MakeSignedData [22:44:44]FM_MakeSignedData [22:44:44]SAM_PROTO_SignData [22:44:44]wFMCommunicate request_size=4 [22:44:44]MH_SAM_APDU [22:44:44]CAPDU: 80 0D 01 02 [22:44:44]Write to MH i2c: E2 08 00 FB 08 80 0D 01 02 00 00 00 00 7C [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:44:44]Read from MH i2c: E2 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 FB 08 00 90 00 77 [22:44:44]RAPDU: 90 00 [22:44:44]wFMCommunicate OK [22:44:44]wFMCommunicate request_size=255 [22:44:44]MH_SAM_APDU [22:44:44]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 52 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 77 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 DC 2A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E0 02 00 35 04 06 00 7D [22:44:44]Write to MH i2c: E2 02 01 FC 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 33 FF 03 08 00 03 52 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 77 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 DC 2A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E0 02 00 35 04 06 00 7D 00 00 E6 [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:44]Read from MH i2c: E2 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 FC 08 00 90 00 78 [22:44:44]RAPDU: 90 00 [22:44:44]wFMCommunicate OK [22:44:44]wFMCommunicate request_size=10 [22:44:44]MH_SAM_APDU [22:44:44]CAPDU: 80 0D 02 02 05 1B 2D AA 6B 62 [22:44:44]Write to MH i2c: E2 0D 00 FD 08 80 0D 02 02 05 00 1B 2D AA 6B 62 00 00 48 [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:44:44]Read from MH i2c: E2 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 03 00 FD 08 00 90 00 79 [22:44:44]RAPDU: 90 00 [22:44:44]wFMCommunicate OK [22:44:44]wFMCommunicate request_size=4 [22:44:44]MH_SAM_APDU [22:44:44]CAPDU: 80 0D 03 02 [22:44:44]Write to MH i2c: E2 08 00 FE 08 80 0D 03 02 00 00 00 00 81 [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:44:44]Read from MH i2c: E2 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 0B 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 0B 00 FE 08 00 6E FD CF 88 17 21 0A FA 90 00 80 [22:44:44]RAPDU: 6E FD CF 88 17 21 0A FA 90 00 [22:44:44]wFMCommunicate OK [22:44:44]SAM_PROTO_SignData done [22:44:44]FM_MakeSignedData done [22:44:44]CreateOFDProtocolMessage [22:44:44]wFMCommunicate request_size=4 [22:44:44]MH_SAM_APDU [22:44:44]CAPDU: 80 11 00 00 [22:44:44]Write to MH i2c: E2 08 00 FF 08 80 11 00 00 00 00 00 00 81 [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:44]Read from MH i2c: E2 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 17 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: E2 17 00 FF 08 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 CF [22:44:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:44:44]wFMCommunicate OK [22:44:44]CreateOFDProtocolMessage done [22:44:44]OFDSenderStorePacket 188533 [22:44:44]StoreOFDPacket docnum=188533 [22:44:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B 40 07 01 1B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 52 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 77 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 DC 2A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E0 02 00 35 04 06 00 7D 1B 2D AA 6B 62 6E FD CF 88 17 21 0A FA [22:44:44]CheckFolder [22:44:44]dirname=/storage/ofd_packets [22:44:44]CheckFolder done [22:44:44]ProducePacketName [22:44:44]name=ofd_packets/00188533 [22:44:44]NVStorageSaveData ofd_packets/00188533 [22:44:44]File name is /storage/ofd_packets/00188533 [22:44:44]Write 301 bytes [22:44:44]NVStorageSaveData done [22:44:44]OFDSenderStorePacket done [22:44:44]KKMCreateOFDPacket done [22:44:44]NVStorageSaveData kkm_last_timestamp [22:44:44]File name is /storage/kkm_last_timestamp [22:44:44]Write 4 bytes [22:44:44]NVStorageSaveData done [22:44:44]ExternCall_PrintAddStr [22:44:44]wPrintStart [22:44:44]Write to MH i2c: 01 00 00 00 09 09 [22:44:44]Write i2c OK [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: 01 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: 01 07 00 [22:44:44]MH_I2C_Read... [22:44:44]Read from MH i2c: 01 07 00 00 09 00 00 00 00 00 FF 0F 1E [22:44:44]RasterBufferAndPrint [22:44:44]line Счет N : (1)210594 [22:44:44]line ИНН: 02508201610067 [22:44:44]line Контрольно-Кассовый Чек [22:44:44]line ПРОДАЖА [22:44:44]line ТРК (МРК, ГНК) : 32 [22:44:44]line Товар: 2710124130 [22:44:44]line Аи-92-К-3 [22:44:44]line 7.250 * 66.90 [22:44:44]line = 485.03 [22:44:44]line НДС 12% НСП 1% [22:44:44]line > о реализуемом товаре [22:44:44]line ОКРУГЛЕНИЕ: -0.03 [22:44:44]line ИТОГО: 485.00 [22:44:44]line Внесено: 485.00 [22:44:44]line СДАЧА: 0.00 [22:44:44]line НСП 1% : 4.29 [22:44:44]line НДС 12% : 51.51 [22:44:44]line Наличными: 485.00 [22:44:44]line Безнал.: 0.00 [22:44:44]line Место: АЗС № 86 "Партнер Нефть" [22:44:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [22:44:44]line СНО: Общий режим [22:44:44]line Чек 562 22.10.2024 22:44 [22:44:44]line Смена: 461 ФФД: 1.0 [22:44:44]line ЗНМ: 0300000155 [22:44:44]line РНМ: 0000000000100030 [22:44:44]line Версия ККМ: 001 [22:44:44]line ФМ: 0000000000965340 [22:44:44]line ФД: 188533 [22:44:44]line ФПД: 137555683732322 [22:44:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T224444&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188533&fm=137555683732322&tin=02508201610067®Number=0000000000100030&sum=48500 [22:44:44]written 0, free lines is 4095 [22:44:44]OFD Sender: Processing packet 188533 [packets to send 1062, broken 1061] [22:44:44]ProducePacketName [22:44:44]name=ofd_packets/00188533 [22:44:44]OFD Sender: To server: pG, [22:44:44]CommunicateWithHost lk.salyk.kg:30040 [22:44:44]ConnectInit lk.salyk.kg [22:44:45]Connected sock=10 [22:44:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7B 40 07 01 1B 93 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 52 1C 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 77 BD 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 BD 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1F 14 00 00 00 00 07 04 06 00 74 BD 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 32 02 00 00 F4 03 04 00 DC 2A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E0 02 00 35 04 06 00 7D 1B 2D AA 6B 62 6E FD CF 88 17 21 0A FA [22:44:45]Write to MH i2c: 01 00 00 2B 09 34 [22:44:45]Write i2c OK [22:44:45]MH_I2C_Read... [22:44:45]Read from MH i2c: 01 [22:44:45]MH_I2C_Read... [22:44:45]Read from MH i2c: 01 07 00 [22:44:45]MH_I2C_Read... [22:44:45]Read from MH i2c: 01 07 00 2B 09 00 00 00 00 00 56 0C 9D [22:44:45]RasterBufferAndPrint [22:44:45]line [22:44:45]line [22:44:45]line [22:44:45]line [22:44:45]line [22:44:45]written 0, free lines is 3161 [22:44:45]MH_Cut [22:44:45]Write to MH i2c: D1 01 00 32 09 01 0D [22:44:45]Write i2c OK [22:44:45]MH_I2C_Read... [22:44:45]Read from MH i2c: D1 [22:44:45]MH_I2C_Read... [22:44:45]Read from MH i2c: D1 01 00 [22:44:45]MH_I2C_Read... [22:44:45]Read from MH i2c: D1 01 00 32 09 00 0C [22:44:45]Write to MH i2c: 01 00 00 33 09 3C [22:44:45]Write i2c OK [22:44:45]MH_I2C_Read... [22:44:45]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2A 93 47 00 AD 38 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 75 E0 02 00 F4 03 04 00 C8 D4 17 67 B6 04 01 00 00 24 E5 66 20 EF 99 42 D5 [22:44:45]CommunicateWithHost err = 0 [22:44:45]CheckOFDResponse [22:44:45]1017 (14) - 77093643461234 [22:44:45]1041 (16) - 0000000000965340 [22:44:45]1040 (4) - 188533 [22:44:45]1012 (4) - 22.10.2024 16:37 [22:44:45]1206 (1) - 0 [22:44:45]OFD Sender: Remove packet 188533 [22:44:45]ProducePacketName [22:44:45]name=ofd_packets/00188533 [22:44:45]NVStorageDeleteData [22:44:46]OFD Sender: No OFD packet to send [22:44:46]*** Cut start [22:44:46]*** Partial cut [22:44:46]*** CUTSNS_PIN = 1 [22:44:46]*** CUTSNS_PIN = 0 [22:44:46]*** Brake cut motor [22:44:47]Read from MH i2c: 01 [22:44:47]MH_I2C_Read... [22:44:47]*** Stop cut motor [22:44:47]*** Cut end [22:44:47]Read from MH i2c: 01 07 00 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: 01 07 00 33 09 00 00 00 00 00 FF 0F 51 [22:44:47]process_action close_receipt done [22:44:47]requested_data is exist [22:44:47]produce_requested_data [22:44:47]requested_item fm.sn is exist - process it [22:44:47]wFMCommunicate request_size=4 [22:44:47]MH_SAM_APDU [22:44:47]CAPDU: 80 11 00 00 [22:44:47]Write to MH i2c: E2 08 00 34 09 80 11 00 00 00 00 00 00 B7 [22:44:47]Write i2c OK [22:44:47]MH_I2C_Read... [22:44:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:44:47]Read from MH i2c: E2 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: E2 17 00 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: E2 17 00 34 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 05 [22:44:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [22:44:47]wFMCommunicate OK [22:44:47]requested_item fd.num is exist - process it [22:44:47]SAM_PROTO_GetFieldsCounters [22:44:47]wFMCommunicate request_size=4 [22:44:47]MH_SAM_APDU [22:44:47]CAPDU: 80 13 00 00 [22:44:47]Write to MH i2c: E2 08 00 35 09 80 13 00 00 00 00 00 00 BA [22:44:47]Write i2c OK [22:44:47]MH_I2C_Read... [22:44:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:44:47]Read from MH i2c: E2 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: E2 62 00 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: E2 62 00 35 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 32 02 00 00 5E 04 04 00 32 02 00 00 57 04 04 00 33 02 00 00 19 04 04 00 00 00 00 00 90 00 82 [22:44:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 75 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 32 02 00 00 5E 04 04 00 32 02 00 00 57 04 04 00 33 02 00 00 19 04 04 00 00 00 00 00 90 00 [22:44:47]wFMCommunicate OK [22:44:47]SAM_PROTO_GetFieldsCounters done [22:44:47]requested_item shift.num is exist - process it [22:44:47]requested_item shift.opened is exist - process it [22:44:47]req_shift_opened [22:44:47]FM_GetShiftState [22:44:47]SAM_PROTO_GetShiftState [22:44:47]wFMCommunicate request_size=4 [22:44:47]MH_SAM_APDU [22:44:47]CAPDU: 80 13 01 00 [22:44:47]Write to MH i2c: E2 08 00 36 09 80 13 01 00 00 00 00 00 BC [22:44:47]Write i2c OK [22:44:47]MH_I2C_Read... [22:44:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:44:47]Read from MH i2c: E2 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: E2 0E 00 [22:44:47]MH_I2C_Read... [22:44:47]Read from MH i2c: E2 0E 00 36 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B1 [22:44:47]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [22:44:47]wFMCommunicate OK [22:44:47]SAM_PROTO_GetShiftState done [22:44:47]FM_GetShiftState done [22:44:47]req_shift_opened done [22:44:47]requested_item shift.open_date is exist - process it [22:44:47]req_shift_open_date [22:44:47]req_shift_open_date done [22:44:47]produce_requested_data done [22:44:47]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188533,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [22:44:47]process_action_free close_receipt [22:44:47]json_value_free [22:44:47]json_value_free done [22:44:47]process_json_proto returns [22:44:47]Send response to host [22:44:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188533,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [22:44:47]free response buf [22:44:47]execute_script done [22:44:47]execute_script returns [22:44:47]free content buf [22:44:47]Sock 9.Close socket [22:44:47]Sock 9.Thread stoped [22:44:51]OFD Sender: No OFD packet to send [22:44:56]OFD Sender: No OFD packet to send [22:45:01]OFD Sender: No OFD packet to send [22:45:06]OFD Sender: No OFD packet to send [22:45:11]OFD Sender: No OFD packet to send [22:45:16]OFD Sender: No OFD packet to send [22:45:21]OFD Sender: No OFD packet to send [22:45:26]OFD Sender: No OFD packet to send [22:45:31]OFD Sender: No OFD packet to send [22:45:36]OFD Sender: No OFD packet to send [22:45:41]OFD Sender: No OFD packet to send [22:45:46]OFD Sender: No OFD packet to send [22:45:51]OFD Sender: No OFD packet to send [22:45:56]OFD Sender: No OFD packet to send [22:46:01]OFD Sender: No OFD packet to send [22:46:06]OFD Sender: No OFD packet to send [22:46:11]OFD Sender: No OFD packet to send [22:46:16]OFD Sender: No OFD packet to send [22:46:21]OFD Sender: No OFD packet to send [22:46:26]OFD Sender: No OFD packet to send [22:46:31]OFD Sender: No OFD packet to send [22:46:36]OFD Sender: No OFD packet to send [22:46:41]OFD Sender: No OFD packet to send [22:46:46]OFD Sender: No OFD packet to send [22:46:51]OFD Sender: No OFD packet to send [22:46:56]OFD Sender: No OFD packet to send [22:47:01]OFD Sender: No OFD packet to send [22:47:06]OFD Sender: No OFD packet to send [22:47:11]OFD Sender: No OFD packet to send [22:47:16]OFD Sender: No OFD packet to send [22:47:21]OFD Sender: No OFD packet to send [22:47:26]OFD Sender: No OFD packet to send [22:47:31]OFD Sender: No OFD packet to send [22:47:36]OFD Sender: No OFD packet to send [22:47:41]OFD Sender: No OFD packet to send [22:47:46]OFD Sender: No OFD packet to send [22:47:52]OFD Sender: No OFD packet to send [22:47:57]OFD Sender: No OFD packet to send [22:48:02]OFD Sender: No OFD packet to send [22:48:07]OFD Sender: No OFD packet to send [22:48:12]OFD Sender: No OFD packet to send [22:48:17]OFD Sender: No OFD packet to send [22:48:22]OFD Sender: No OFD packet to send [22:48:27]OFD Sender: No OFD packet to send [22:48:32]OFD Sender: No OFD packet to send [22:48:37]OFD Sender: No OFD packet to send [22:48:42]OFD Sender: No OFD packet to send [22:48:47]OFD Sender: No OFD packet to send [22:48:52]OFD Sender: No OFD packet to send [22:48:57]OFD Sender: No OFD packet to send [22:49:02]OFD Sender: No OFD packet to send [22:49:07]OFD Sender: No OFD packet to send [22:49:12]OFD Sender: No OFD packet to send [22:49:17]OFD Sender: No OFD packet to send [22:49:22]OFD Sender: No OFD packet to send [22:49:27]OFD Sender: No OFD packet to send [22:49:32]OFD Sender: No OFD packet to send [22:49:37]OFD Sender: No OFD packet to send [22:49:42]OFD Sender: No OFD packet to send [22:49:47]OFD Sender: No OFD packet to send [22:49:52]OFD Sender: No OFD packet to send [22:49:57]OFD Sender: No OFD packet to send [22:50:02]OFD Sender: No OFD packet to send [22:50:07]OFD Sender: No OFD packet to send [22:50:12]OFD Sender: No OFD packet to send [22:50:17]OFD Sender: No OFD packet to send [22:50:22]OFD Sender: No OFD packet to send [22:50:27]OFD Sender: No OFD packet to send [22:50:32]OFD Sender: No OFD packet to send [22:50:37]OFD Sender: No OFD packet to send [22:50:42]OFD Sender: No OFD packet to send [22:50:47]OFD Sender: No OFD packet to send [22:50:52]OFD Sender: No OFD packet to send [22:50:57]OFD Sender: No OFD packet to send [22:51:02]OFD Sender: No OFD packet to send [22:51:07]OFD Sender: No OFD packet to send [22:51:12]OFD Sender: No OFD packet to send [22:51:17]OFD Sender: No OFD packet to send [22:51:22]OFD Sender: No OFD packet to send [22:51:27]OFD Sender: No OFD packet to send [22:51:32]OFD Sender: No OFD packet to send [22:51:37]OFD Sender: No OFD packet to send [22:51:43]OFD Sender: No OFD packet to send [22:51:48]OFD Sender: No OFD packet to send [22:51:53]OFD Sender: No OFD packet to send [22:51:58]OFD Sender: No OFD packet to send [22:52:03]OFD Sender: No OFD packet to send [22:52:08]OFD Sender: No OFD packet to send [22:52:13]OFD Sender: No OFD packet to send [22:52:18]OFD Sender: No OFD packet to send [22:52:23]OFD Sender: No OFD packet to send [22:52:28]OFD Sender: No OFD packet to send [22:52:33]OFD Sender: No OFD packet to send [22:52:38]OFD Sender: No OFD packet to send [22:52:43]OFD Sender: No OFD packet to send [22:52:48]OFD Sender: No OFD packet to send [22:52:53]OFD Sender: No OFD packet to send [22:52:58]OFD Sender: No OFD packet to send [22:53:03]OFD Sender: No OFD packet to send [22:53:08]OFD Sender: No OFD packet to send [22:53:13]OFD Sender: No OFD packet to send [22:53:18]OFD Sender: No OFD packet to send [22:53:23]OFD Sender: No OFD packet to send [22:53:28]OFD Sender: No OFD packet to send [22:53:33]OFD Sender: No OFD packet to send [22:53:38]OFD Sender: No OFD packet to send [22:53:43]OFD Sender: No OFD packet to send [22:53:48]OFD Sender: No OFD packet to send [22:53:53]OFD Sender: No OFD packet to send [22:53:58]OFD Sender: No OFD packet to send [22:54:03]OFD Sender: No OFD packet to send [22:54:08]OFD Sender: No OFD packet to send [22:54:13]OFD Sender: No OFD packet to send [22:54:18]OFD Sender: No OFD packet to send [22:54:23]OFD Sender: No OFD packet to send [22:54:28]OFD Sender: No OFD packet to send [22:54:33]OFD Sender: No OFD packet to send [22:54:38]OFD Sender: No OFD packet to send [22:54:43]OFD Sender: No OFD packet to send [22:54:48]OFD Sender: No OFD packet to send [22:54:53]OFD Sender: No OFD packet to send [22:54:58]OFD Sender: No OFD packet to send [22:55:03]OFD Sender: No OFD packet to send [22:55:08]OFD Sender: No OFD packet to send [22:55:13]OFD Sender: No OFD packet to send [22:55:18]OFD Sender: No OFD packet to send [22:55:23]OFD Sender: No OFD packet to send [22:55:28]OFD Sender: No OFD packet to send [22:55:34]OFD Sender: No OFD packet to send [22:55:39]OFD Sender: No OFD packet to send [22:55:44]OFD Sender: No OFD packet to send [22:55:49]OFD Sender: No OFD packet to send [22:55:54]OFD Sender: No OFD packet to send [22:55:59]OFD Sender: No OFD packet to send [22:56:04]OFD Sender: No OFD packet to send [22:56:09]OFD Sender: No OFD packet to send [22:56:14]OFD Sender: No OFD packet to send [22:56:19]OFD Sender: No OFD packet to send [22:56:24]OFD Sender: No OFD packet to send [22:56:29]OFD Sender: No OFD packet to send [22:56:34]OFD Sender: No OFD packet to send [22:56:39]OFD Sender: No OFD packet to send [22:56:44]OFD Sender: No OFD packet to send [22:56:49]OFD Sender: No OFD packet to send [22:56:54]OFD Sender: No OFD packet to send [22:56:59]OFD Sender: No OFD packet to send [22:57:04]OFD Sender: No OFD packet to send [22:57:09]OFD Sender: No OFD packet to send [22:57:14]OFD Sender: No OFD packet to send [22:57:19]OFD Sender: No OFD packet to send [22:57:24]OFD Sender: No OFD packet to send [22:57:29]OFD Sender: No OFD packet to send [22:57:34]OFD Sender: No OFD packet to send [22:57:39]OFD Sender: No OFD packet to send [22:57:44]OFD Sender: No OFD packet to send [22:57:49]OFD Sender: No OFD packet to send [22:57:54]OFD Sender: No OFD packet to send [22:57:59]OFD Sender: No OFD packet to send [22:58:04]OFD Sender: No OFD packet to send [22:58:09]OFD Sender: No OFD packet to send [22:58:14]OFD Sender: No OFD packet to send [22:58:19]OFD Sender: No OFD packet to send [22:58:24]OFD Sender: No OFD packet to send [22:58:29]OFD Sender: No OFD packet to send [22:58:34]OFD Sender: No OFD packet to send [22:58:39]OFD Sender: No OFD packet to send [22:58:44]OFD Sender: No OFD packet to send [22:58:49]OFD Sender: No OFD packet to send [22:58:54]OFD Sender: No OFD packet to send [22:58:59]OFD Sender: No OFD packet to send [22:59:04]OFD Sender: No OFD packet to send [22:59:09]OFD Sender: No OFD packet to send [22:59:14]OFD Sender: No OFD packet to send [22:59:20]OFD Sender: No OFD packet to send [22:59:25]OFD Sender: No OFD packet to send [22:59:30]OFD Sender: No OFD packet to send [22:59:35]OFD Sender: No OFD packet to send [22:59:40]OFD Sender: No OFD packet to send [22:59:45]OFD Sender: No OFD packet to send [22:59:50]OFD Sender: No OFD packet to send [22:59:55]OFD Sender: No OFD packet to send [23:00:00]OFD Sender: No OFD packet to send [23:00:05]OFD Sender: No OFD packet to send [23:00:10]OFD Sender: No OFD packet to send [23:00:15]OFD Sender: No OFD packet to send [23:00:20]OFD Sender: No OFD packet to send [23:00:25]OFD Sender: No OFD packet to send [23:00:30]OFD Sender: No OFD packet to send [23:00:35]OFD Sender: No OFD packet to send [23:00:40]OFD Sender: No OFD packet to send [23:00:45]OFD Sender: No OFD packet to send [23:00:50]OFD Sender: No OFD packet to send [23:00:55]OFD Sender: No OFD packet to send [23:01:00]OFD Sender: No OFD packet to send [23:01:05]OFD Sender: No OFD packet to send [23:01:10]OFD Sender: No OFD packet to send [23:01:15]OFD Sender: No OFD packet to send [23:01:20]OFD Sender: No OFD packet to send [23:01:25]OFD Sender: No OFD packet to send [23:01:30]OFD Sender: No OFD packet to send [23:01:35]OFD Sender: No OFD packet to send [23:01:40]OFD Sender: No OFD packet to send [23:01:45]OFD Sender: No OFD packet to send [23:01:50]OFD Sender: No OFD packet to send [23:01:55]OFD Sender: No OFD packet to send [23:02:00]OFD Sender: No OFD packet to send [23:02:05]OFD Sender: No OFD packet to send [23:02:10]OFD Sender: No OFD packet to send [23:02:15]OFD Sender: No OFD packet to send [23:02:20]OFD Sender: No OFD packet to send [23:02:25]OFD Sender: No OFD packet to send [23:02:30]OFD Sender: No OFD packet to send [23:02:35]OFD Sender: No OFD packet to send [23:02:40]OFD Sender: No OFD packet to send [23:02:45]OFD Sender: No OFD packet to send [23:02:50]OFD Sender: No OFD packet to send [23:02:55]OFD Sender: No OFD packet to send [23:03:00]OFD Sender: No OFD packet to send [23:03:05]OFD Sender: No OFD packet to send [23:03:11]OFD Sender: No OFD packet to send [23:03:16]OFD Sender: No OFD packet to send [23:03:21]OFD Sender: No OFD packet to send [23:03:26]OFD Sender: No OFD packet to send [23:03:31]OFD Sender: No OFD packet to send [23:03:36]OFD Sender: No OFD packet to send [23:03:41]OFD Sender: No OFD packet to send [23:03:46]OFD Sender: No OFD packet to send [23:03:51]OFD Sender: No OFD packet to send [23:03:56]OFD Sender: No OFD packet to send [23:04:01]OFD Sender: No OFD packet to send [23:04:06]OFD Sender: No OFD packet to send [23:04:11]OFD Sender: No OFD packet to send [23:04:16]OFD Sender: No OFD packet to send [23:04:21]OFD Sender: No OFD packet to send [23:04:26]OFD Sender: No OFD packet to send [23:04:31]OFD Sender: No OFD packet to send [23:04:36]OFD Sender: No OFD packet to send [23:04:41]OFD Sender: No OFD packet to send [23:04:46]OFD Sender: No OFD packet to send [23:04:51]OFD Sender: No OFD packet to send [23:04:56]OFD Sender: No OFD packet to send [23:05:01]OFD Sender: No OFD packet to send [23:05:06]OFD Sender: No OFD packet to send [23:05:11]OFD Sender: No OFD packet to send [23:05:16]OFD Sender: No OFD packet to send [23:05:21]OFD Sender: No OFD packet to send [23:05:26]OFD Sender: No OFD packet to send [23:05:31]OFD Sender: No OFD packet to send [23:05:36]OFD Sender: No OFD packet to send [23:05:41]OFD Sender: No OFD packet to send [23:05:46]OFD Sender: No OFD packet to send [23:05:51]OFD Sender: No OFD packet to send [23:05:56]OFD Sender: No OFD packet to send [23:06:01]OFD Sender: No OFD packet to send [23:06:06]OFD Sender: No OFD packet to send [23:06:11]OFD Sender: No OFD packet to send [23:06:16]OFD Sender: No OFD packet to send [23:06:21]OFD Sender: No OFD packet to send [23:06:26]OFD Sender: No OFD packet to send [23:06:31]OFD Sender: No OFD packet to send [23:06:36]OFD Sender: No OFD packet to send [23:06:41]OFD Sender: No OFD packet to send [23:06:46]OFD Sender: No OFD packet to send [23:06:51]OFD Sender: No OFD packet to send [23:06:56]OFD Sender: No OFD packet to send [23:07:02]OFD Sender: No OFD packet to send [23:07:07]OFD Sender: No OFD packet to send [23:07:12]OFD Sender: No OFD packet to send [23:07:17]OFD Sender: No OFD packet to send [23:07:22]OFD Sender: No OFD packet to send [23:07:37]OFD Sender: No OFD packet to send [23:07:42]OFD Sender: No OFD packet to send [23:07:47]OFD Sender: No OFD packet to send [23:07:52]OFD Sender: No OFD packet to send [23:07:57]OFD Sender: No OFD packet to send [23:08:02]OFD Sender: No OFD packet to send [23:08:07]OFD Sender: No OFD packet to send [23:08:12]OFD Sender: No OFD packet to send [23:08:17]OFD Sender: No OFD packet to send [23:08:22]OFD Sender: No OFD packet to send [23:08:27]OFD Sender: No OFD packet to send [23:08:32]OFD Sender: No OFD packet to send [23:08:37]OFD Sender: No OFD packet to send [23:08:42]OFD Sender: No OFD packet to send [23:08:47]OFD Sender: No OFD packet to send [23:08:52]OFD Sender: No OFD packet to send [23:08:57]OFD Sender: No OFD packet to send [23:09:02]OFD Sender: No OFD packet to send [23:09:07]OFD Sender: No OFD packet to send [23:09:12]OFD Sender: No OFD packet to send [23:09:17]OFD Sender: No OFD packet to send [23:09:22]OFD Sender: No OFD packet to send [23:09:27]OFD Sender: No OFD packet to send [23:09:32]OFD Sender: No OFD packet to send [23:09:37]OFD Sender: No OFD packet to send [23:09:42]ConnectInit Can't connect to host [23:09:42]OFD Sender: No OFD packet to send [23:09:47]OFD Sender: No OFD packet to send [23:09:52]OFD Sender: No OFD packet to send [23:09:57]OFD Sender: No OFD packet to send [23:10:02]OFD Sender: No OFD packet to send [23:10:07]accept exits with 7 [23:10:07]New connection [23:10:07]New thread 3066649956 created [23:10:07]Thread 3066506596 joined [23:10:07]Waiting for new connection... [23:10:07] Sock 7.Parse request [23:10:07]Sock 7.Check first char [23:10:07]Sock 7.First char is OK [23:10:07]request: POST /json_proto HTTP/1.0 [23:10:07]Method: POST [23:10:07]URL: /json_proto [23:10:07]Method is POST - this is cgi request [23:10:07]url: /json_proto [23:10:07]query_string will be loaded in cgi processing [23:10:07]execute_cgi json_proto POST (null) [23:10:07]execute_cgi path=json_proto method=POST [23:10:07]POST find Content-Length [23:10:07]Host: 172.17.42.131:8080 [23:10:07]Content-Length: 682 [23:10:07]Content-Type: application/json [23:10:07] [23:10:07]POST finish read [23:10:07]Found Content-Length = 682 [23:10:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:07]execute_script... [23:10: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)210595", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:10:07]POST & json_proto [23:10:07]process_json_proto [23:10:07]json parsed OK: [23:10:07]protocol is kg_v1.0 [23:10:07]action value=close_receipt [23:10:07]process_action close_receipt [23:10:07]cmd_close_receipt [23:10:07]MH_GetDate [23:10:07]Write to MH i2c: F0 00 00 37 09 2F [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: F0 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: F0 09 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: F0 09 00 37 09 00 D0 30 18 67 A0 18 CA 66 9F [23:10:07]GetLastDocTimeStamp 1729637084 [23:10:07]current date 1729638608 [23:10:07]FM_GetShiftState [23:10:07]SAM_PROTO_GetShiftState [23:10:07]wFMCommunicate request_size=4 [23:10:07]MH_SAM_APDU [23:10:07]CAPDU: 80 13 01 00 [23:10:07]Write to MH i2c: E2 08 00 38 09 80 13 01 00 00 00 00 00 BE [23:10:07]Write i2c OK [23:10:07]MH_I2C_Read... [23:10:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:07]Read from MH i2c: E2 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 0E 00 [23:10:07]MH_I2C_Read... [23:10:07]Read from MH i2c: E2 0E 00 38 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 B3 [23:10:07]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:10:07]wFMCommunicate OK [23:10:07]SAM_PROTO_GetShiftState done [23:10:07]FM_GetShiftState done [23:10:07]opened in 1729556094 [23:10:07]opened+sec_in_day 1729642494 [23:10:07]quantity*price = 100015 [23:10:07]sum+1 = 100017 [23:10:07]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 563 22.10.2024 23:10 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188534 ФПД: 116232538389402 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188534&fm=116232538389402&tin=02508201610067®Number=0000000000100030&sum=100000 [23:10:08]StoreToDocumentArchive [23:10:08]shift 461 fd 188534 [23:10:08]save to /storage/0461/doc_00188534 [23:10:08]save last doc name /storage/0461/doc_00188534 to /storage/kkm_last_doc_name [23:10:08]save OK [23:10:08]Clear old archive folders... [23:10:08]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:10:08]tlvbuf is 009078E0 [23:10:08]SAM_PROTO_ClearQueue [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 09 00 00 [23:10:08]Write to MH i2c: E2 08 00 45 09 80 09 00 00 00 00 00 00 C0 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 45 09 00 90 00 C2 [23:10:08]RAPDU: 90 00 [23:10:08]wFMCommunicate OK [23:10:08]SAM_PROTO_ClearQueue done [23:10:08]KKMCreateOFDPacket [23:10:08]OFDProtocolAddRootSTLVToBuf [23:10:08]FM_MakeSignedData [23:10:08]FM_MakeSignedData [23:10:08]SAM_PROTO_SignData [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 0D 01 02 [23:10:08]Write to MH i2c: E2 08 00 46 09 80 0D 01 02 00 00 00 00 C8 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 46 09 00 90 00 C3 [23:10:08]RAPDU: 90 00 [23:10:08]wFMCommunicate OK [23:10:08]wFMCommunicate request_size=255 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D0 30 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E0 02 00 35 04 06 00 69 [23:10:08]Write to MH i2c: E2 02 01 47 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D0 30 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E0 02 00 35 04 06 00 69 00 00 78 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 47 09 00 90 00 C4 [23:10:08]RAPDU: 90 00 [23:10:08]wFMCommunicate OK [23:10:08]wFMCommunicate request_size=10 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 0D 02 02 05 B6 7F 29 7B 9A [23:10:08]Write to MH i2c: E2 0D 00 48 09 80 0D 02 02 05 00 B6 7F 29 7B 9A 00 00 48 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 03 00 48 09 00 90 00 C5 [23:10:08]RAPDU: 90 00 [23:10:08]wFMCommunicate OK [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 0D 03 02 [23:10:08]Write to MH i2c: E2 08 00 49 09 80 0D 03 02 00 00 00 00 CD [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 0B 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 0B 00 49 09 00 8C 29 CD 20 EB 25 54 68 90 00 3C [23:10:08]RAPDU: 8C 29 CD 20 EB 25 54 68 90 00 [23:10:08]wFMCommunicate OK [23:10:08]SAM_PROTO_SignData done [23:10:08]FM_MakeSignedData done [23:10:08]CreateOFDProtocolMessage [23:10:08]wFMCommunicate request_size=4 [23:10:08]MH_SAM_APDU [23:10:08]CAPDU: 80 11 00 00 [23:10:08]Write to MH i2c: E2 08 00 4A 09 80 11 00 00 00 00 00 00 CD [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:08]Read from MH i2c: E2 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 17 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: E2 17 00 4A 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1B [23:10:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:10:08]wFMCommunicate OK [23:10:08]CreateOFDProtocolMessage done [23:10:08]OFDSenderStorePacket 188534 [23:10:08]StoreOFDPacket docnum=188534 [23:10:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 06 07 01 49 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D0 30 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E0 02 00 35 04 06 00 69 B6 7F 29 7B 9A 8C 29 CD 20 EB 25 54 68 [23:10:08]CheckFolder [23:10:08]dirname=/storage/ofd_packets [23:10:08]CheckFolder done [23:10:08]ProducePacketName [23:10:08]name=ofd_packets/00188534 [23:10:08]NVStorageSaveData ofd_packets/00188534 [23:10:08]File name is /storage/ofd_packets/00188534 [23:10:08]Write 301 bytes [23:10:08]NVStorageSaveData done [23:10:08]OFDSenderStorePacket done [23:10:08]KKMCreateOFDPacket done [23:10:08]NVStorageSaveData kkm_last_timestamp [23:10:08]File name is /storage/kkm_last_timestamp [23:10:08]Write 4 bytes [23:10:08]NVStorageSaveData done [23:10:08]ExternCall_PrintAddStr [23:10:08]wPrintStart [23:10:08]Write to MH i2c: 01 00 00 4B 09 54 [23:10:08]Write i2c OK [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: 01 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: 01 07 00 [23:10:08]MH_I2C_Read... [23:10:08]Read from MH i2c: 01 07 00 4B 09 00 00 00 00 00 FF 0F 69 [23:10:08]RasterBufferAndPrint [23:10:08]line Счет N : (1)210595 [23:10:08]line ИНН: 02508201610067 [23:10:08]line Контрольно-Кассовый Чек [23:10:08]line ПРОДАЖА [23:10:08]line ТРК (МРК, ГНК) : 42 [23:10:08]line Товар: 2710124130 [23:10:08]line Аи-92-К-3 [23:10:08]line 14.950 * 66.90 [23:10:08]line = 1000.16 [23:10:08]line НДС 12% НСП 1% [23:10:08]line > о реализуемом товаре [23:10:08]line ОКРУГЛЕНИЕ: -0.16 [23:10:08]line ИТОГО: 1000.00 [23:10:08]line Внесено: 1000.00 [23:10:08]line СДАЧА: 0.00 [23:10:08]line НСП 1% : 8.85 [23:10:08]line НДС 12% : 106.21 [23:10:08]line Наличными: 1000.00 [23:10:08]line Безнал.: 0.00 [23:10:08]line Место: АЗС № 86 "Партнер Нефть" [23:10:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:10:08]line СНО: Общий режим [23:10:08]line Чек 563 22.10.2024 23:10 [23:10:08]line Смена: 461 ФФД: 1.0 [23:10:08]line ЗНМ: 0300000155 [23:10:08]line РНМ: 0000000000100030 [23:10:08]line Версия ККМ: 001 [23:10:08]line ФМ: 0000000000965340 [23:10:08]line ФД: 188534 [23:10:08]line ФПД: 116232538389402 [23:10:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231008&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188534&fm=116232538389402&tin=02508201610067®Number=0000000000100030&sum=100000 [23:10:08]written 0, free lines is 4095 [23:10:08]OFD Sender: Processing packet 188534 [packets to send 1062, broken 1061] [23:10:08]ProducePacketName [23:10:08]name=ofd_packets/00188534 [23:10:08]OFD Sender: To server: pG, [23:10:08]CommunicateWithHost lk.salyk.kg:30040 [23:10:08]ConnectInit lk.salyk.kg [23:10:09]Connected sock=9 [23:10:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 F4 06 07 01 49 4C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 33 02 00 00 F4 03 04 00 D0 30 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E0 02 00 35 04 06 00 69 B6 7F 29 7B 9A 8C 29 CD 20 EB 25 54 68 [23:10:09]Write to MH i2c: 01 00 00 76 09 7F [23:10:09]Write i2c OK [23:10:09]MH_I2C_Read... [23:10:09]Read from MH i2c: 01 [23:10:09]MH_I2C_Read... [23:10:09]Read from MH i2c: 01 07 00 [23:10:09]MH_I2C_Read... [23:10:09]Read from MH i2c: 01 07 00 76 09 00 00 00 00 00 51 0C E3 [23:10:09]RasterBufferAndPrint [23:10:09]line [23:10:09]line [23:10:09]line [23:10:09]line [23:10:09]line [23:10:09]written 0, free lines is 3158 [23:10:09]MH_Cut [23:10:09]Write to MH i2c: D1 01 00 7D 09 01 58 [23:10:09]Write i2c OK [23:10:09]MH_I2C_Read... [23:10:09]Read from MH i2c: D1 [23:10:09]MH_I2C_Read... [23:10:09]Read from MH i2c: D1 01 00 [23:10:09]MH_I2C_Read... [23:10:09]Read from MH i2c: D1 01 00 7D 09 00 57 [23:10:09]Write to MH i2c: 01 00 00 7E 09 87 [23:10:09]Write i2c OK [23:10:09]MH_I2C_Read... [23:10:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 39 47 00 6D 4D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 76 E0 02 00 F4 03 04 00 BC DA 17 67 B6 04 01 00 00 C0 69 B7 9C 23 4A 77 88 [23:10:09]CommunicateWithHost err = 0 [23:10:09]CheckOFDResponse [23:10:09]1017 (14) - 77093643461234 [23:10:09]1041 (16) - 0000000000965340 [23:10:09]1040 (4) - 188534 [23:10:09]1012 (4) - 22.10.2024 17:02 [23:10:09]1206 (1) - 0 [23:10:09]OFD Sender: Remove packet 188534 [23:10:09]ProducePacketName [23:10:09]name=ofd_packets/00188534 [23:10:09]NVStorageDeleteData [23:10:09]OFD Sender: No OFD packet to send [23:10:10]*** Cut start [23:10:10]*** Partial cut [23:10:10]*** CUTSNS_PIN = 1 [23:10:10]*** CUTSNS_PIN = 0 [23:10:10]*** Brake cut motor [23:10:11]Read from MH i2c: 01 [23:10:11]MH_I2C_Read... [23:10:11]*** Stop cut motor [23:10:11]*** Cut end [23:10:11]Read from MH i2c: 01 07 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: 01 07 00 7E 09 00 00 00 00 00 FF 0F 9C [23:10:11]process_action close_receipt done [23:10:11]requested_data is exist [23:10:11]produce_requested_data [23:10:11]requested_item fm.sn is exist - process it [23:10:11]wFMCommunicate request_size=4 [23:10:11]MH_SAM_APDU [23:10:11]CAPDU: 80 11 00 00 [23:10:11]Write to MH i2c: E2 08 00 7F 09 80 11 00 00 00 00 00 00 02 [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: E2 [23:10:11]MH_I2C_Read... [23:10:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:10:11]Read from MH i2c: E2 17 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: E2 17 00 7F 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [23:10:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:10:11]wFMCommunicate OK [23:10:11]requested_item fd.num is exist - process it [23:10:11]SAM_PROTO_GetFieldsCounters [23:10:11]wFMCommunicate request_size=4 [23:10:11]MH_SAM_APDU [23:10:11]CAPDU: 80 13 00 00 [23:10:11]Write to MH i2c: E2 08 00 80 09 80 13 00 00 00 00 00 00 05 [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:10:11]Read from MH i2c: E2 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: E2 62 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: E2 62 00 80 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 33 02 00 00 5E 04 04 00 33 02 00 00 57 04 04 00 34 02 00 00 19 04 04 00 00 00 00 00 90 00 D1 [23:10:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 76 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 33 02 00 00 5E 04 04 00 33 02 00 00 57 04 04 00 34 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:10:11]wFMCommunicate OK [23:10:11]SAM_PROTO_GetFieldsCounters done [23:10:11]requested_item shift.num is exist - process it [23:10:11]requested_item shift.opened is exist - process it [23:10:11]req_shift_opened [23:10:11]FM_GetShiftState [23:10:11]SAM_PROTO_GetShiftState [23:10:11]wFMCommunicate request_size=4 [23:10:11]MH_SAM_APDU [23:10:11]CAPDU: 80 13 01 00 [23:10:11]Write to MH i2c: E2 08 00 81 09 80 13 01 00 00 00 00 00 07 [23:10:11]Write i2c OK [23:10:11]MH_I2C_Read... [23:10:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:10:11]Read from MH i2c: E2 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: E2 0E 00 [23:10:11]MH_I2C_Read... [23:10:11]Read from MH i2c: E2 0E 00 81 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FC [23:10:11]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:10:11]wFMCommunicate OK [23:10:11]SAM_PROTO_GetShiftState done [23:10:11]FM_GetShiftState done [23:10:11]req_shift_opened done [23:10:11]requested_item shift.open_date is exist - process it [23:10:11]req_shift_open_date [23:10:11]req_shift_open_date done [23:10:11]produce_requested_data done [23:10:11]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188534,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:10:11]process_action_free close_receipt [23:10:11]json_value_free [23:10:11]json_value_free done [23:10:11]process_json_proto returns [23:10:11]Send response to host [23:10:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188534,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:10:11]free response buf [23:10:11]execute_script done [23:10:11]execute_script returns [23:10:11]free content buf [23:10:11]Sock 7.Close socket [23:10:11]Sock 7.Thread stoped [23:10:15]OFD Sender: No OFD packet to send [23:10:20]OFD Sender: No OFD packet to send [23:10:25]OFD Sender: No OFD packet to send [23:10:30]OFD Sender: No OFD packet to send [23:10:35]OFD Sender: No OFD packet to send [23:10:40]OFD Sender: No OFD packet to send [23:10:45]OFD Sender: No OFD packet to send [23:10:50]OFD Sender: No OFD packet to send [23:10:55]OFD Sender: No OFD packet to send [23:11:00]OFD Sender: No OFD packet to send [23:11:05]OFD Sender: No OFD packet to send [23:11:10]OFD Sender: No OFD packet to send [23:11:15]OFD Sender: No OFD packet to send [23:11:20]OFD Sender: No OFD packet to send [23:11:25]OFD Sender: No OFD packet to send [23:11:30]OFD Sender: No OFD packet to send [23:11:35]OFD Sender: No OFD packet to send [23:11:40]OFD Sender: No OFD packet to send [23:11:45]OFD Sender: No OFD packet to send [23:11:50]OFD Sender: No OFD packet to send [23:11:55]OFD Sender: No OFD packet to send [23:12:00]OFD Sender: No OFD packet to send [23:12:05]OFD Sender: No OFD packet to send [23:12:10]OFD Sender: No OFD packet to send [23:12:15]OFD Sender: No OFD packet to send [23:12:20]OFD Sender: No OFD packet to send [23:12:25]OFD Sender: No OFD packet to send [23:12:30]OFD Sender: No OFD packet to send [23:12:35]OFD Sender: No OFD packet to send [23:12:40]OFD Sender: No OFD packet to send [23:12:45]OFD Sender: No OFD packet to send [23:12:50]OFD Sender: No OFD packet to send [23:12:55]OFD Sender: No OFD packet to send [23:13:00]OFD Sender: No OFD packet to send [23:13:05]OFD Sender: No OFD packet to send [23:13:10]OFD Sender: No OFD packet to send [23:13:15]OFD Sender: No OFD packet to send [23:13:20]OFD Sender: No OFD packet to send [23:13:25]OFD Sender: No OFD packet to send [23:13:30]OFD Sender: No OFD packet to send [23:13:35]OFD Sender: No OFD packet to send [23:13:40]OFD Sender: No OFD packet to send [23:13:45]OFD Sender: No OFD packet to send [23:13:50]OFD Sender: No OFD packet to send [23:13:55]OFD Sender: No OFD packet to send [23:14:00]OFD Sender: No OFD packet to send [23:14:06]OFD Sender: No OFD packet to send [23:14:11]OFD Sender: No OFD packet to send [23:14:16]OFD Sender: No OFD packet to send [23:14:21]OFD Sender: No OFD packet to send [23:14:26]OFD Sender: No OFD packet to send [23:14:31]OFD Sender: No OFD packet to send [23:14:36]OFD Sender: No OFD packet to send [23:14:41]OFD Sender: No OFD packet to send [23:14:46]OFD Sender: No OFD packet to send [23:14:51]OFD Sender: No OFD packet to send [23:14:56]OFD Sender: No OFD packet to send [23:15:01]OFD Sender: No OFD packet to send [23:15:06]OFD Sender: No OFD packet to send [23:15:11]OFD Sender: No OFD packet to send [23:15:16]OFD Sender: No OFD packet to send [23:15:21]OFD Sender: No OFD packet to send [23:15:26]OFD Sender: No OFD packet to send [23:15:31]OFD Sender: No OFD packet to send [23:15:36]OFD Sender: No OFD packet to send [23:15:41]OFD Sender: No OFD packet to send [23:15:46]OFD Sender: No OFD packet to send [23:15:51]OFD Sender: No OFD packet to send [23:15:56]OFD Sender: No OFD packet to send [23:16:01]OFD Sender: No OFD packet to send [23:16:06]OFD Sender: No OFD packet to send [23:16:11]OFD Sender: No OFD packet to send [23:16:16]OFD Sender: No OFD packet to send [23:16:21]OFD Sender: No OFD packet to send [23:16:26]OFD Sender: No OFD packet to send [23:16:31]OFD Sender: No OFD packet to send [23:16:36]OFD Sender: No OFD packet to send [23:16:41]OFD Sender: No OFD packet to send [23:16:46]OFD Sender: No OFD packet to send [23:16:51]OFD Sender: No OFD packet to send [23:16:56]OFD Sender: No OFD packet to send [23:17:01]OFD Sender: No OFD packet to send [23:17:06]OFD Sender: No OFD packet to send [23:17:11]OFD Sender: No OFD packet to send [23:17:16]OFD Sender: No OFD packet to send [23:17:21]OFD Sender: No OFD packet to send [23:17:26]OFD Sender: No OFD packet to send [23:17:31]OFD Sender: No OFD packet to send [23:17:36]OFD Sender: No OFD packet to send [23:17:41]OFD Sender: No OFD packet to send [23:17:46]OFD Sender: No OFD packet to send [23:17:51]OFD Sender: No OFD packet to send [23:17:57]OFD Sender: No OFD packet to send [23:18:02]OFD Sender: No OFD packet to send [23:18:07]OFD Sender: No OFD packet to send [23:18:12]OFD Sender: No OFD packet to send [23:18:17]OFD Sender: No OFD packet to send [23:18:22]OFD Sender: No OFD packet to send [23:18:27]OFD Sender: No OFD packet to send [23:18:32]OFD Sender: No OFD packet to send [23:18:37]OFD Sender: No OFD packet to send [23:18:37]accept exits with 10 [23:18:37]New connection [23:18:37]New thread 3066506596 created [23:18:37]Thread 3066649956 joined [23:18:37]Waiting for new connection... [23:18:37] Sock 10.Parse request [23:18:37]Sock 10.Check first char [23:18:37]Sock 10.First char is OK [23:18:37]request: POST /json_proto HTTP/1.0 [23:18:37]Method: POST [23:18:37]URL: /json_proto [23:18:37]Method is POST - this is cgi request [23:18:37]url: /json_proto [23:18:37]query_string will be loaded in cgi processing [23:18:37]execute_cgi json_proto POST (null) [23:18:37]execute_cgi path=json_proto method=POST [23:18:37]POST find Content-Length [23:18:37]Host: 172.17.42.131:8080 [23:18:37]Content-Length: 677 [23:18:37]Content-Type: application/json [23:18:37] [23:18:37]POST finish read [23:18:37]Found Content-Length = 677 [23:18:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:37]execute_script... [23:18: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)210596", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:18:37]POST & json_proto [23:18:37]process_json_proto [23:18:37]json parsed OK: [23:18:37]protocol is kg_v1.0 [23:18:37]action value=close_receipt [23:18:37]process_action close_receipt [23:18:37]cmd_close_receipt [23:18:37]MH_GetDate [23:18:37]Write to MH i2c: F0 00 00 82 09 7A [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: F0 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: F0 09 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: F0 09 00 82 09 00 CE 32 18 67 A0 18 CA 66 EA [23:18:37]GetLastDocTimeStamp 1729638608 [23:18:37]current date 1729639118 [23:18:37]FM_GetShiftState [23:18:37]SAM_PROTO_GetShiftState [23:18:37]wFMCommunicate request_size=4 [23:18:37]MH_SAM_APDU [23:18:37]CAPDU: 80 13 01 00 [23:18:37]Write to MH i2c: E2 08 00 83 09 80 13 01 00 00 00 00 00 09 [23:18:37]Write i2c OK [23:18:37]MH_I2C_Read... [23:18:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:37]Read from MH i2c: E2 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 0E 00 [23:18:37]MH_I2C_Read... [23:18:37]Read from MH i2c: E2 0E 00 83 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 FE [23:18:37]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:18:37]wFMCommunicate OK [23:18:37]SAM_PROTO_GetShiftState done [23:18:37]FM_GetShiftState done [23:18:37]opened in 1729556094 [23:18:37]opened+sec_in_day 1729642494 [23:18:37]quantity*price = 60009 [23:18:37]sum+1 = 60010 [23:18:37]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 564 22.10.2024 23:18 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188535 ФПД: 132620090223564 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188535&fm=132620090223564&tin=02508201610067®Number=0000000000100030&sum=60000 [23:18:38]StoreToDocumentArchive [23:18:38]shift 461 fd 188535 [23:18:38]save to /storage/0461/doc_00188535 [23:18:38]save last doc name /storage/0461/doc_00188535 to /storage/kkm_last_doc_name [23:18:38]save OK [23:18:38]Clear old archive folders... [23:18:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:18:38]tlvbuf is 008DA460 [23:18:38]SAM_PROTO_ClearQueue [23:18:38]wFMCommunicate request_size=4 [23:18:38]MH_SAM_APDU [23:18:38]CAPDU: 80 09 00 00 [23:18:38]Write to MH i2c: E2 08 00 90 09 80 09 00 00 00 00 00 00 0B [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:18:38]Read from MH i2c: E2 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 03 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 03 00 90 09 00 90 00 0D [23:18:38]RAPDU: 90 00 [23:18:38]wFMCommunicate OK [23:18:38]SAM_PROTO_ClearQueue done [23:18:38]KKMCreateOFDPacket [23:18:38]OFDProtocolAddRootSTLVToBuf [23:18:38]FM_MakeSignedData [23:18:38]FM_MakeSignedData [23:18:38]SAM_PROTO_SignData [23:18:38]wFMCommunicate request_size=4 [23:18:38]MH_SAM_APDU [23:18:38]CAPDU: 80 0D 01 02 [23:18:38]Write to MH i2c: E2 08 00 91 09 80 0D 01 02 00 00 00 00 13 [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:18:38]Read from MH i2c: E2 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 03 00 [23:18:38]MH_I2C_Read... [23:18:38]Read from MH i2c: E2 03 00 91 09 00 90 00 0E [23:18:38]RAPDU: 90 00 [23:18:38]wFMCommunicate OK [23:18:38]wFMCommunicate request_size=255 [23:18:38]MH_SAM_APDU [23:18: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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 CE 32 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E0 02 00 35 04 06 00 78 [23:18:38]Write to MH i2c: E2 02 01 92 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 CE 32 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E0 02 00 35 04 06 00 78 00 00 B7 [23:18:38]Write i2c OK [23:18:38]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 92 09 00 90 00 0F [23:18:39]RAPDU: 90 00 [23:18:39]wFMCommunicate OK [23:18:39]wFMCommunicate request_size=10 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 0D 02 02 05 9E 05 5E 2B CC [23:18:39]Write to MH i2c: E2 0D 00 93 09 80 0D 02 02 05 00 9E 05 5E 2B CC 00 00 18 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 03 00 93 09 00 90 00 10 [23:18:39]RAPDU: 90 00 [23:18:39]wFMCommunicate OK [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 0D 03 02 [23:18:39]Write to MH i2c: E2 08 00 94 09 80 0D 03 02 00 00 00 00 18 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 0B 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 0B 00 94 09 00 A7 1F 36 47 8F 07 19 E3 90 00 EE [23:18:39]RAPDU: A7 1F 36 47 8F 07 19 E3 90 00 [23:18:39]wFMCommunicate OK [23:18:39]SAM_PROTO_SignData done [23:18:39]FM_MakeSignedData done [23:18:39]CreateOFDProtocolMessage [23:18:39]wFMCommunicate request_size=4 [23:18:39]MH_SAM_APDU [23:18:39]CAPDU: 80 11 00 00 [23:18:39]Write to MH i2c: E2 08 00 95 09 80 11 00 00 00 00 00 00 18 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:39]Read from MH i2c: E2 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 17 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: E2 17 00 95 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [23:18:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:18:39]wFMCommunicate OK [23:18:39]CreateOFDProtocolMessage done [23:18:39]OFDSenderStorePacket 188535 [23:18:39]StoreOFDPacket docnum=188535 [23:18:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 36 07 01 65 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 CE 32 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E0 02 00 35 04 06 00 78 9E 05 5E 2B CC A7 1F 36 47 8F 07 19 E3 [23:18:39]CheckFolder [23:18:39]dirname=/storage/ofd_packets [23:18:39]CheckFolder done [23:18:39]ProducePacketName [23:18:39]name=ofd_packets/00188535 [23:18:39]NVStorageSaveData ofd_packets/00188535 [23:18:39]File name is /storage/ofd_packets/00188535 [23:18:39]Write 301 bytes [23:18:39]NVStorageSaveData done [23:18:39]OFDSenderStorePacket done [23:18:39]KKMCreateOFDPacket done [23:18:39]NVStorageSaveData kkm_last_timestamp [23:18:39]File name is /storage/kkm_last_timestamp [23:18:39]Write 4 bytes [23:18:39]NVStorageSaveData done [23:18:39]ExternCall_PrintAddStr [23:18:39]wPrintStart [23:18:39]Write to MH i2c: 01 00 00 96 09 9F [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 07 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 07 00 96 09 00 00 00 00 00 FF 0F B4 [23:18:39]RasterBufferAndPrint [23:18:39]line Счет N : (1)210596 [23:18:39]line ИНН: 02508201610067 [23:18:39]line Контрольно-Кассовый Чек [23:18:39]line ПРОДАЖА [23:18:39]line ТРК (МРК, ГНК) : 42 [23:18:39]line Товар: 2710124130 [23:18:39]line Аи-92-К-3 [23:18:39]line 8.970 * 66.90 [23:18:39]line = 600.09 [23:18:39]line НДС 12% НСП 1% [23:18:39]line > о реализуемом товаре [23:18:39]line ОКРУГЛЕНИЕ: -0.09 [23:18:39]line ИТОГО: 600.00 [23:18:39]line Внесено: 600.00 [23:18:39]line СДАЧА: 0.00 [23:18:39]line НСП 1% : 5.31 [23:18:39]line НДС 12% : 63.73 [23:18:39]line Наличными: 600.00 [23:18:39]line Безнал.: 0.00 [23:18:39]line Место: АЗС № 86 "Партнер Нефть" [23:18:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:18:39]line СНО: Общий режим [23:18:39]line Чек 564 22.10.2024 23:18 [23:18:39]line Смена: 461 ФФД: 1.0 [23:18:39]line ЗНМ: 0300000155 [23:18:39]line РНМ: 0000000000100030 [23:18:39]line Версия ККМ: 001 [23:18:39]line ФМ: 0000000000965340 [23:18:39]line ФД: 188535 [23:18:39]line ФПД: 132620090223564 [23:18:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T231838&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188535&fm=132620090223564&tin=02508201610067®Number=0000000000100030&sum=60000 [23:18:39]written 0, free lines is 4095 [23:18:39]OFD Sender: Processing packet 188535 [packets to send 1062, broken 1061] [23:18:39]ProducePacketName [23:18:39]name=ofd_packets/00188535 [23:18:39]OFD Sender: To server: pG, [23:18:39]CommunicateWithHost lk.salyk.kg:30040 [23:18:39]ConnectInit lk.salyk.kg [23:18:39]Connected sock=9 [23:18:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 20 36 07 01 65 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 33 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 02 00 00 F4 03 04 00 CE 32 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E0 02 00 35 04 06 00 78 9E 05 5E 2B CC A7 1F 36 47 8F 07 19 E3 [23:18:39]Write to MH i2c: 01 00 00 C1 09 CA [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 07 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: 01 07 00 C1 09 00 00 00 00 00 4F 0C 2C [23:18:39]RasterBufferAndPrint [23:18:39]line [23:18:39]line [23:18:39]line [23:18:39]line [23:18:39]line [23:18:39]written 0, free lines is 3154 [23:18:39]MH_Cut [23:18:39]Write to MH i2c: D1 01 00 C8 09 01 A3 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: D1 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: D1 01 00 [23:18:39]MH_I2C_Read... [23:18:39]Read from MH i2c: D1 01 00 C8 09 00 A2 [23:18:39]Write to MH i2c: 01 00 00 C9 09 D2 [23:18:39]Write i2c OK [23:18:39]MH_I2C_Read... [23:18:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E5 A5 47 00 02 A4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 77 E0 02 00 F4 03 04 00 BA DC 17 67 B6 04 01 00 00 3F E1 F5 32 D6 59 58 C4 [23:18:39]CommunicateWithHost err = 0 [23:18:39]CheckOFDResponse [23:18:39]1017 (14) - 77093643461234 [23:18:39]1041 (16) - 0000000000965340 [23:18:39]1040 (4) - 188535 [23:18:39]1012 (4) - 22.10.2024 17:11 [23:18:39]1206 (1) - 0 [23:18:39]OFD Sender: Remove packet 188535 [23:18:39]ProducePacketName [23:18:39]name=ofd_packets/00188535 [23:18:39]NVStorageDeleteData [23:18:40]OFD Sender: No OFD packet to send [23:18:41]*** Cut start [23:18:41]*** Partial cut [23:18:41]*** CUTSNS_PIN = 1 [23:18:41]*** CUTSNS_PIN = 0 [23:18:41]*** Brake cut motor [23:18:41]Read from MH i2c: 01 [23:18:41]MH_I2C_Read... [23:18:41]*** Stop cut motor [23:18:41]*** Cut end [23:18:41]Read from MH i2c: 01 07 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: 01 07 00 C9 09 00 00 00 00 00 FF 0F E7 [23:18:41]process_action close_receipt done [23:18:41]requested_data is exist [23:18:41]produce_requested_data [23:18:41]requested_item fm.sn is exist - process it [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 11 00 00 [23:18:41]Write to MH i2c: E2 08 00 CA 09 80 11 00 00 00 00 00 00 4D [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 17 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 17 00 CA 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [23:18:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:18:41]wFMCommunicate OK [23:18:41]requested_item fd.num is exist - process it [23:18:41]SAM_PROTO_GetFieldsCounters [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 13 00 00 [23:18:41]Write to MH i2c: E2 08 00 CB 09 80 13 00 00 00 00 00 00 50 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 62 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 62 00 CB 09 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 34 02 00 00 5E 04 04 00 34 02 00 00 57 04 04 00 35 02 00 00 19 04 04 00 00 00 00 00 90 00 20 [23:18:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 77 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 34 02 00 00 5E 04 04 00 34 02 00 00 57 04 04 00 35 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:18:41]wFMCommunicate OK [23:18:41]SAM_PROTO_GetFieldsCounters done [23:18:41]requested_item shift.num is exist - process it [23:18:41]requested_item shift.opened is exist - process it [23:18:41]req_shift_opened [23:18:41]FM_GetShiftState [23:18:41]SAM_PROTO_GetShiftState [23:18:41]wFMCommunicate request_size=4 [23:18:41]MH_SAM_APDU [23:18:41]CAPDU: 80 13 01 00 [23:18:41]Write to MH i2c: E2 08 00 CC 09 80 13 01 00 00 00 00 00 52 [23:18:41]Write i2c OK [23:18:41]MH_I2C_Read... [23:18:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:18:41]Read from MH i2c: E2 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 0E 00 [23:18:41]MH_I2C_Read... [23:18:41]Read from MH i2c: E2 0E 00 CC 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 47 [23:18:41]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:18:41]wFMCommunicate OK [23:18:41]SAM_PROTO_GetShiftState done [23:18:41]FM_GetShiftState done [23:18:41]req_shift_opened done [23:18:41]requested_item shift.open_date is exist - process it [23:18:41]req_shift_open_date [23:18:41]req_shift_open_date done [23:18:41]produce_requested_data done [23:18:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188535,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:18:41]process_action_free close_receipt [23:18:41]json_value_free [23:18:41]json_value_free done [23:18:41]process_json_proto returns [23:18:41]Send response to host [23:18:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188535,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:18:41]free response buf [23:18:41]execute_script done [23:18:41]execute_script returns [23:18:41]free content buf [23:18:41]Sock 10.Close socket [23:18:41]Sock 10.Thread stoped [23:18:45]OFD Sender: No OFD packet to send [23:18:50]OFD Sender: No OFD packet to send [23:18:55]OFD Sender: No OFD packet to send [23:19:00]OFD Sender: No OFD packet to send [23:19:05]OFD Sender: No OFD packet to send [23:19:10]OFD Sender: No OFD packet to send [23:19:15]OFD Sender: No OFD packet to send [23:19:20]OFD Sender: No OFD packet to send [23:19:25]OFD Sender: No OFD packet to send [23:19:30]OFD Sender: No OFD packet to send [23:19:35]OFD Sender: No OFD packet to send [23:19:40]OFD Sender: No OFD packet to send [23:19:45]OFD Sender: No OFD packet to send [23:19:50]OFD Sender: No OFD packet to send [23:19:55]OFD Sender: No OFD packet to send [23:20:00]OFD Sender: No OFD packet to send [23:20:05]OFD Sender: No OFD packet to send [23:20:10]OFD Sender: No OFD packet to send [23:20:15]OFD Sender: No OFD packet to send [23:20:20]OFD Sender: No OFD packet to send [23:20:25]OFD Sender: No OFD packet to send [23:20:30]OFD Sender: No OFD packet to send [23:20:35]OFD Sender: No OFD packet to send [23:20:40]OFD Sender: No OFD packet to send [23:20:45]OFD Sender: No OFD packet to send [23:20:50]OFD Sender: No OFD packet to send [23:20:55]accept exits with 7 [23:20:55]New connection [23:20:55]New thread 3066649956 created [23:20:55]Thread 3066506596 joined [23:20:55]Waiting for new connection... [23:20:55] Sock 7.Parse request [23:20:55]Sock 7.Check first char [23:20:55]Sock 7.First char is OK [23:20:55]request: POST /json_proto HTTP/1.0 [23:20:55]Method: POST [23:20:55]URL: /json_proto [23:20:55]Method is POST - this is cgi request [23:20:55]url: /json_proto [23:20:55]query_string will be loaded in cgi processing [23:20:55]execute_cgi json_proto POST (null) [23:20:55]execute_cgi path=json_proto method=POST [23:20:55]POST find Content-Length [23:20:55]Host: 172.17.42.131:8080 [23:20:55]Content-Length: 677 [23:20:55]Content-Type: application/json [23:20:55] [23:20:55]POST finish read [23:20:55]Found Content-Length = 677 [23:20:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:55]execute_script... [23:20:55]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210597", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:55]POST & json_proto [23:20:55]process_json_proto [23:20:55]json parsed OK: [23:20:55]protocol is kg_v1.0 [23:20:55]action value=close_receipt [23:20:55]process_action close_receipt [23:20:55]cmd_close_receipt [23:20:55]MH_GetDate [23:20:55]Write to MH i2c: F0 00 00 CD 09 C5 [23:20:55]Write i2c OK [23:20:55]MH_I2C_Read... [23:20:55]Read from MH i2c: F0 [23:20:55]MH_I2C_Read... [23:20:55]Read from MH i2c: F0 09 00 [23:20:55]MH_I2C_Read... [23:20:55]Read from MH i2c: F0 09 00 CD 09 00 58 33 18 67 A0 18 CA 66 C0 [23:20:55]GetLastDocTimeStamp 1729639118 [23:20:55]current date 1729639256 [23:20:55]FM_GetShiftState [23:20:55]SAM_PROTO_GetShiftState [23:20:55]wFMCommunicate request_size=4 [23:20:55]MH_SAM_APDU [23:20:55]CAPDU: 80 13 01 00 [23:20:55]Write to MH i2c: E2 08 00 CE 09 80 13 01 00 00 00 00 00 54 [23:20:55]Write i2c OK [23:20:55]MH_I2C_Read... [23:20:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:55]Read from MH i2c: E2 [23:20:55]MH_I2C_Read... [23:20:55]Read from MH i2c: E2 0E 00 [23:20:55]MH_I2C_Read... [23:20:55]Read from MH i2c: E2 0E 00 CE 09 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 49 [23:20:55]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:20:55]wFMCommunicate OK [23:20:55]SAM_PROTO_GetShiftState done [23:20:55]FM_GetShiftState done [23:20:55]opened in 1729556094 [23:20:55]opened+sec_in_day 1729642494 [23:20:55]quantity*price = 50041 [23:20:55]sum+1 = 50042 [23:20:55]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 565 22.10.2024 23:20 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188536 ФПД: 250757194421343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T232056&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188536&fm=250757194421343&tin=02508201610067®Number=0000000000100030&sum=50000 [23:20:56]StoreToDocumentArchive [23:20:56]shift 461 fd 188536 [23:20:56]save to /storage/0461/doc_00188536 [23:20:56]save last doc name /storage/0461/doc_00188536 to /storage/kkm_last_doc_name [23:20:56]save OK [23:20:56]Clear old archive folders... [23:20:56]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:20:56]tlvbuf is 00907970 [23:20:56]SAM_PROTO_ClearQueue [23:20:56]wFMCommunicate request_size=4 [23:20:56]MH_SAM_APDU [23:20:56]CAPDU: 80 09 00 00 [23:20:56]Write to MH i2c: E2 08 00 DB 09 80 09 00 00 00 00 00 00 56 [23:20:56]Write i2c OK [23:20:56]MH_I2C_Read... [23:20:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:56]Read from MH i2c: E2 [23:20:56]MH_I2C_Read... [23:20:56]Read from MH i2c: E2 03 00 [23:20:56]MH_I2C_Read... [23:20:56]Read from MH i2c: E2 03 00 DB 09 00 90 00 58 [23:20:56]RAPDU: 90 00 [23:20:56]wFMCommunicate OK [23:20:56]SAM_PROTO_ClearQueue done [23:20:56]KKMCreateOFDPacket [23:20:56]OFDProtocolAddRootSTLVToBuf [23:20:56]FM_MakeSignedData [23:20:56]FM_MakeSignedData [23:20:56]SAM_PROTO_SignData [23:20:56]wFMCommunicate request_size=4 [23:20:56]MH_SAM_APDU [23:20:56]CAPDU: 80 0D 01 02 [23:20:56]Write to MH i2c: E2 08 00 DC 09 80 0D 01 02 00 00 00 00 5E [23:20:56]Write i2c OK [23:20:56]MH_I2C_Read... [23:20:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:56]Read from MH i2c: E2 [23:20:56]MH_I2C_Read... [23:20:56]Read from MH i2c: E2 03 00 [23:20:56]MH_I2C_Read... [23:20:56]Read from MH i2c: E2 03 00 DC 09 00 90 00 59 [23:20:56]RAPDU: 90 00 [23:20:56]wFMCommunicate OK [23:20:56]wFMCommunicate request_size=255 [23:20:56]MH_SAM_APDU [23:20: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 58 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E0 02 00 35 04 06 00 E4 [23:20:56]Write to MH i2c: E2 02 01 DD 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 58 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E0 02 00 35 04 06 00 E4 00 00 1E [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:57]Read from MH i2c: E2 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 03 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 03 00 DD 09 00 90 00 5A [23:20:57]RAPDU: 90 00 [23:20:57]wFMCommunicate OK [23:20:57]wFMCommunicate request_size=10 [23:20:57]MH_SAM_APDU [23:20:57]CAPDU: 80 0D 02 02 05 0F F5 7F 94 5F [23:20:57]Write to MH i2c: E2 0D 00 DE 09 80 0D 02 02 05 00 0F F5 7F 94 5F 00 00 E1 [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:57]Read from MH i2c: E2 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 03 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 03 00 DE 09 00 90 00 5B [23:20:57]RAPDU: 90 00 [23:20:57]wFMCommunicate OK [23:20:57]wFMCommunicate request_size=4 [23:20:57]MH_SAM_APDU [23:20:57]CAPDU: 80 0D 03 02 [23:20:57]Write to MH i2c: E2 08 00 DF 09 80 0D 03 02 00 00 00 00 63 [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:57]Read from MH i2c: E2 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 0B 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 0B 00 DF 09 00 95 BD 57 AB D4 79 9A 1C 90 00 BB [23:20:57]RAPDU: 95 BD 57 AB D4 79 9A 1C 90 00 [23:20:57]wFMCommunicate OK [23:20:57]SAM_PROTO_SignData done [23:20:57]FM_MakeSignedData done [23:20:57]CreateOFDProtocolMessage [23:20:57]wFMCommunicate request_size=4 [23:20:57]MH_SAM_APDU [23:20:57]CAPDU: 80 11 00 00 [23:20:57]Write to MH i2c: E2 08 00 E0 09 80 11 00 00 00 00 00 00 63 [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:57]Read from MH i2c: E2 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 17 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: E2 17 00 E0 09 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [23:20:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:20:57]wFMCommunicate OK [23:20:57]CreateOFDProtocolMessage done [23:20:57]OFDSenderStorePacket 188536 [23:20:57]StoreOFDPacket docnum=188536 [23:20:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 5C 07 01 56 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 58 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E0 02 00 35 04 06 00 E4 0F F5 7F 94 5F 95 BD 57 AB D4 79 9A 1C [23:20:57]CheckFolder [23:20:57]dirname=/storage/ofd_packets [23:20:57]CheckFolder done [23:20:57]ProducePacketName [23:20:57]name=ofd_packets/00188536 [23:20:57]NVStorageSaveData ofd_packets/00188536 [23:20:57]File name is /storage/ofd_packets/00188536 [23:20:57]Write 301 bytes [23:20:57]NVStorageSaveData done [23:20:57]OFDSenderStorePacket done [23:20:57]KKMCreateOFDPacket done [23:20:57]NVStorageSaveData kkm_last_timestamp [23:20:57]File name is /storage/kkm_last_timestamp [23:20:57]Write 4 bytes [23:20:57]NVStorageSaveData done [23:20:57]ExternCall_PrintAddStr [23:20:57]wPrintStart [23:20:57]Write to MH i2c: 01 00 00 E1 09 EA [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: 01 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: 01 07 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: 01 07 00 E1 09 00 00 00 00 00 FF 0F FF [23:20:57]RasterBufferAndPrint [23:20:57]line Счет N : (1)210597 [23:20:57]line ИНН: 02508201610067 [23:20:57]line Контрольно-Кассовый Чек [23:20:57]line ПРОДАЖА [23:20:57]line ТРК (МРК, ГНК) : 22 [23:20:57]line Товар: 2710124130 [23:20:57]line Аи-92-К-3 [23:20:57]line 7.480 * 66.90 [23:20:57]line = 500.41 [23:20:57]line НДС 12% НСП 1% [23:20:57]line > о реализуемом товаре [23:20:57]line ОКРУГЛЕНИЕ: -0.41 [23:20:57]line ИТОГО: 500.00 [23:20:57]line Внесено: 500.00 [23:20:57]line СДАЧА: 0.00 [23:20:57]line НСП 1% : 4.43 [23:20:57]line НДС 12% : 53.14 [23:20:57]line Наличными: 500.00 [23:20:57]line Безнал.: 0.00 [23:20:57]line Место: АЗС № 86 "Партнер Нефть" [23:20:57]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:20:57]line СНО: Общий режим [23:20:57]line Чек 565 22.10.2024 23:20 [23:20:57]line Смена: 461 ФФД: 1.0 [23:20:57]line ЗНМ: 0300000155 [23:20:57]line РНМ: 0000000000100030 [23:20:57]line Версия ККМ: 001 [23:20:57]line ФМ: 0000000000965340 [23:20:57]line ФД: 188536 [23:20:57]line ФПД: 250757194421343 [23:20:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T232056&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188536&fm=250757194421343&tin=02508201610067®Number=0000000000100030&sum=50000 [23:20:57]written 0, free lines is 4095 [23:20:57]OFD Sender: Processing packet 188536 [packets to send 1062, broken 1061] [23:20:57]ProducePacketName [23:20:57]name=ofd_packets/00188536 [23:20:57]OFD Sender: To server: pG, [23:20:57]CommunicateWithHost lk.salyk.kg:30040 [23:20:57]ConnectInit lk.salyk.kg [23:20:57]Connected sock=10 [23:20:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 73 5C 07 01 56 5A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 02 00 00 F4 03 04 00 58 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E0 02 00 35 04 06 00 E4 0F F5 7F 94 5F 95 BD 57 AB D4 79 9A 1C [23:20:57]Write to MH i2c: 01 00 00 0C 0A 16 [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: 01 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: 01 07 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: 01 07 00 0C 0A 00 00 00 00 00 4F 0C 78 [23:20:57]RasterBufferAndPrint [23:20:57]line [23:20:57]line [23:20:57]line [23:20:57]line [23:20:57]line [23:20:57]written 0, free lines is 3155 [23:20:57]MH_Cut [23:20:57]Write to MH i2c: D1 01 00 13 0A 01 EF [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: D1 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: D1 01 00 [23:20:57]MH_I2C_Read... [23:20:57]Read from MH i2c: D1 01 00 13 0A 00 EE [23:20:57]Write to MH i2c: 01 00 00 14 0A 1E [23:20:57]Write i2c OK [23:20:57]MH_I2C_Read... [23:20:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 05 B9 47 00 CC EF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 78 E0 02 00 F4 03 04 00 44 DD 17 67 B6 04 01 00 00 D0 CB 59 65 0F 7B 7D 32 [23:20:58]CommunicateWithHost err = 0 [23:20:58]CheckOFDResponse [23:20:58]1017 (14) - 77093643461234 [23:20:58]1041 (16) - 0000000000965340 [23:20:58]1040 (4) - 188536 [23:20:58]1012 (4) - 22.10.2024 17:13 [23:20:58]1206 (1) - 0 [23:20:58]OFD Sender: Remove packet 188536 [23:20:58]ProducePacketName [23:20:58]name=ofd_packets/00188536 [23:20:58]NVStorageDeleteData [23:20:58]OFD Sender: No OFD packet to send [23:20:59]*** Cut start [23:20:59]*** Partial cut [23:20:59]*** CUTSNS_PIN = 1 [23:20:59]*** CUTSNS_PIN = 0 [23:20:59]*** Brake cut motor [23:20:59]Read from MH i2c: 01 [23:20:59]MH_I2C_Read... [23:20:59]*** Stop cut motor [23:20:59]*** Cut end [23:20:59]Read from MH i2c: 01 07 00 [23:20:59]MH_I2C_Read... [23:20:59]Read from MH i2c: 01 07 00 14 0A 00 00 00 00 00 FF 0F 33 [23:20:59]process_action close_receipt done [23:20:59]requested_data is exist [23:20:59]produce_requested_data [23:20:59]requested_item fm.sn is exist - process it [23:20:59]wFMCommunicate request_size=4 [23:20:59]MH_SAM_APDU [23:20:59]CAPDU: 80 11 00 00 [23:20:59]Write to MH i2c: E2 08 00 15 0A 80 11 00 00 00 00 00 00 99 [23:20:59]Write i2c OK [23:20:59]MH_I2C_Read... [23:20:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:59]Read from MH i2c: E2 [23:20:59]MH_I2C_Read... [23:20:59]Read from MH i2c: E2 17 00 [23:20:59]MH_I2C_Read... [23:20:59]Read from MH i2c: E2 17 00 15 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [23:20:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:20:59]wFMCommunicate OK [23:20:59]requested_item fd.num is exist - process it [23:20:59]SAM_PROTO_GetFieldsCounters [23:20:59]wFMCommunicate request_size=4 [23:20:59]MH_SAM_APDU [23:20:59]CAPDU: 80 13 00 00 [23:20:59]Write to MH i2c: E2 08 00 16 0A 80 13 00 00 00 00 00 00 9C [23:20:59]Write i2c OK [23:20:59]MH_I2C_Read... [23:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:21:00]Read from MH i2c: E2 [23:21:00]MH_I2C_Read... [23:21:00]Read from MH i2c: E2 62 00 [23:21:00]MH_I2C_Read... [23:21:00]Read from MH i2c: E2 62 00 16 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 35 02 00 00 5E 04 04 00 35 02 00 00 57 04 04 00 36 02 00 00 19 04 04 00 00 00 00 00 90 00 70 [23:21:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 78 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 35 02 00 00 5E 04 04 00 35 02 00 00 57 04 04 00 36 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:21:00]wFMCommunicate OK [23:21:00]SAM_PROTO_GetFieldsCounters done [23:21:00]requested_item shift.num is exist - process it [23:21:00]requested_item shift.opened is exist - process it [23:21:00]req_shift_opened [23:21:00]FM_GetShiftState [23:21:00]SAM_PROTO_GetShiftState [23:21:00]wFMCommunicate request_size=4 [23:21:00]MH_SAM_APDU [23:21:00]CAPDU: 80 13 01 00 [23:21:00]Write to MH i2c: E2 08 00 17 0A 80 13 01 00 00 00 00 00 9E [23:21:00]Write i2c OK [23:21:00]MH_I2C_Read... [23:21:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:21:00]Read from MH i2c: E2 [23:21:00]MH_I2C_Read... [23:21:00]Read from MH i2c: E2 0E 00 [23:21:00]MH_I2C_Read... [23:21:00]Read from MH i2c: E2 0E 00 17 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 93 [23:21:00]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:21:00]wFMCommunicate OK [23:21:00]SAM_PROTO_GetShiftState done [23:21:00]FM_GetShiftState done [23:21:00]req_shift_opened done [23:21:00]requested_item shift.open_date is exist - process it [23:21:00]req_shift_open_date [23:21:00]req_shift_open_date done [23:21:00]produce_requested_data done [23:21:00]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188536,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:21:00]process_action_free close_receipt [23:21:00]json_value_free [23:21:00]json_value_free done [23:21:00]process_json_proto returns [23:21:00]Send response to host [23:21:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188536,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:21:00]free response buf [23:21:00]execute_script done [23:21:00]execute_script returns [23:21:00]free content buf [23:21:00]Sock 7.Close socket [23:21:00]Sock 7.Thread stoped [23:21:03]OFD Sender: No OFD packet to send [23:21:08]OFD Sender: No OFD packet to send [23:21:13]OFD Sender: No OFD packet to send [23:21:18]OFD Sender: No OFD packet to send [23:21:23]OFD Sender: No OFD packet to send [23:21:28]OFD Sender: No OFD packet to send [23:21:33]OFD Sender: No OFD packet to send [23:21:38]OFD Sender: No OFD packet to send [23:21:43]OFD Sender: No OFD packet to send [23:21:48]OFD Sender: No OFD packet to send [23:21:53]OFD Sender: No OFD packet to send [23:21:58]OFD Sender: No OFD packet to send [23:22:03]OFD Sender: No OFD packet to send [23:22:08]OFD Sender: No OFD packet to send [23:22:13]OFD Sender: No OFD packet to send [23:22:18]OFD Sender: No OFD packet to send [23:22:23]OFD Sender: No OFD packet to send [23:22:28]OFD Sender: No OFD packet to send [23:22:33]OFD Sender: No OFD packet to send [23:22:39]OFD Sender: No OFD packet to send [23:22:44]OFD Sender: No OFD packet to send [23:22:49]OFD Sender: No OFD packet to send [23:22:54]OFD Sender: No OFD packet to send [23:22:59]OFD Sender: No OFD packet to send [23:23:04]OFD Sender: No OFD packet to send [23:23:09]OFD Sender: No OFD packet to send [23:23:14]OFD Sender: No OFD packet to send [23:23:19]OFD Sender: No OFD packet to send [23:23:19]accept exits with 9 [23:23:19]New connection [23:23:19]New thread 3066506596 created [23:23:19]Thread 3066649956 joined [23:23:19]Waiting for new connection... [23:23:19] Sock 9.Parse request [23:23:19]Sock 9.Check first char [23:23:19]Sock 9.First char is OK [23:23:19]request: POST /json_proto HTTP/1.0 [23:23:19]Method: POST [23:23:19]URL: /json_proto [23:23:19]Method is POST - this is cgi request [23:23:19]url: /json_proto [23:23:19]query_string will be loaded in cgi processing [23:23:19]execute_cgi json_proto POST (null) [23:23:19]execute_cgi path=json_proto method=POST [23:23:19]POST find Content-Length [23:23:19]Host: 172.17.42.131:8080 [23:23:19]Content-Length: 766 [23:23:19]Content-Type: application/json [23:23:19] [23:23:19]POST finish read [23:23:19]Found Content-Length = 766 [23:23:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 43.100, "sum" : 3284.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: Mbank", "payments": [ { "type": 1, "sum" : 3284.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:19]execute_script... [23:23: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)210598", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 43.100, "sum" : 3284.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: Mbank", "payments": [ { "type": 1, "sum" : 3284.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:19]POST & json_proto [23:23:19]process_json_proto [23:23:19]json parsed OK: [23:23:19]protocol is kg_v1.0 [23:23:19]action value=close_receipt [23:23:19]process_action close_receipt [23:23:19]cmd_close_receipt [23:23:19]MH_GetDate [23:23:19]Write to MH i2c: F0 00 00 18 0A 11 [23:23:19]Write i2c OK [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: F0 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: F0 09 00 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: F0 09 00 18 0A 00 E9 33 18 67 A0 18 CA 66 9D [23:23:19]GetLastDocTimeStamp 1729639256 [23:23:19]current date 1729639401 [23:23:19]FM_GetShiftState [23:23:19]SAM_PROTO_GetShiftState [23:23:19]wFMCommunicate request_size=4 [23:23:19]MH_SAM_APDU [23:23:19]CAPDU: 80 13 01 00 [23:23:19]Write to MH i2c: E2 08 00 19 0A 80 13 01 00 00 00 00 00 A0 [23:23:19]Write i2c OK [23:23:19]MH_I2C_Read... [23:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:19]Read from MH i2c: E2 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: E2 0E 00 [23:23:19]MH_I2C_Read... [23:23:19]Read from MH i2c: E2 0E 00 19 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 95 [23:23:19]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:23:19]wFMCommunicate OK [23:23:19]SAM_PROTO_GetShiftState done [23:23:19]FM_GetShiftState done [23:23:19]opened in 1729556094 [23:23:19]opened+sec_in_day 1729642494 [23:23:19]quantity*price = 328422 [23:23:19]sum+1 = 328423 [23:23:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3284.22 НСП 1% : 29.06 НДС 12% : 348.77 Наличными: 0.00 Безнал.: 3284.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 566 22.10.2024 23:23 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188537 ФПД: 10775158609765 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T232321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188537&fm=10775158609765&tin=02508201610067®Number=0000000000100030&sum=328422 [23:23:21]StoreToDocumentArchive [23:23:21]shift 461 fd 188537 [23:23:21]save to /storage/0461/doc_00188537 [23:23:21]save last doc name /storage/0461/doc_00188537 to /storage/kkm_last_doc_name [23:23:21]save OK [23:23:21]Clear old archive folders... [23:23:21]ProcessDocumentItem done err = 0, tmpTLVsize=248 [23:23:21]tlvbuf is 008FCDE0 [23:23:21]SAM_PROTO_ClearQueue [23:23:21]wFMCommunicate request_size=4 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 09 00 00 [23:23:21]Write to MH i2c: E2 08 00 26 0A 80 09 00 00 00 00 00 00 A2 [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 26 0A 00 90 00 A4 [23:23:21]RAPDU: 90 00 [23:23:21]wFMCommunicate OK [23:23:21]SAM_PROTO_ClearQueue done [23:23:21]KKMCreateOFDPacket [23:23:21]OFDProtocolAddRootSTLVToBuf [23:23:21]FM_MakeSignedData [23:23:21]FM_MakeSignedData [23:23:21]SAM_PROTO_SignData [23:23:21]wFMCommunicate request_size=4 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 0D 01 02 [23:23:21]Write to MH i2c: E2 08 00 27 0A 80 0D 01 02 00 00 00 00 AA [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 27 0A 00 90 00 A5 [23:23:21]RAPDU: 90 00 [23:23:21]wFMCommunicate OK [23:23:21]wFMCommunicate request_size=255 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C A8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 02 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 02 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E9 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E0 02 00 35 04 06 00 09 CC C9 80 [23:23:21]Write to MH i2c: E2 02 01 28 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C A8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 02 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 02 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E9 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E0 02 00 35 04 06 00 09 CC C9 80 00 00 DD [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 28 0A 00 90 00 A6 [23:23:21]RAPDU: 90 00 [23:23:21]wFMCommunicate OK [23:23:21]wFMCommunicate request_size=7 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 0D 02 02 02 57 65 [23:23:21]Write to MH i2c: E2 0A 00 29 0A 80 0D 02 02 02 00 57 65 00 00 6D [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 03 00 29 0A 00 90 00 A7 [23:23:21]RAPDU: 90 00 [23:23:21]wFMCommunicate OK [23:23:21]wFMCommunicate request_size=4 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 0D 03 02 [23:23:21]Write to MH i2c: E2 08 00 2A 0A 80 0D 03 02 00 00 00 00 AF [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 0B 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 0B 00 2A 0A 00 25 7B 5D 2A 70 96 96 0E 90 00 81 [23:23:21]RAPDU: 25 7B 5D 2A 70 96 96 0E 90 00 [23:23:21]wFMCommunicate OK [23:23:21]SAM_PROTO_SignData done [23:23:21]FM_MakeSignedData done [23:23:21]CreateOFDProtocolMessage [23:23:21]wFMCommunicate request_size=4 [23:23:21]MH_SAM_APDU [23:23:21]CAPDU: 80 11 00 00 [23:23:21]Write to MH i2c: E2 08 00 2B 0A 80 11 00 00 00 00 00 00 AF [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:21]Read from MH i2c: E2 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 17 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: E2 17 00 2B 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FD [23:23:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:23:21]wFMCommunicate OK [23:23:21]CreateOFDProtocolMessage done [23:23:21]OFDSenderStorePacket 188537 [23:23:21]StoreOFDPacket docnum=188537 [23:23:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 B3 8E 04 01 E2 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C A8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 02 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 02 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E9 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E0 02 00 35 04 06 00 09 CC C9 80 57 65 25 7B 5D 2A 70 96 96 0E [23:23:21]CheckFolder [23:23:21]dirname=/storage/ofd_packets [23:23:21]CheckFolder done [23:23:21]ProducePacketName [23:23:21]name=ofd_packets/00188537 [23:23:21]NVStorageSaveData ofd_packets/00188537 [23:23:21]File name is /storage/ofd_packets/00188537 [23:23:21]Write 298 bytes [23:23:21]NVStorageSaveData done [23:23:21]OFDSenderStorePacket done [23:23:21]KKMCreateOFDPacket done [23:23:21]NVStorageSaveData kkm_last_timestamp [23:23:21]File name is /storage/kkm_last_timestamp [23:23:21]Write 4 bytes [23:23:21]NVStorageSaveData done [23:23:21]ExternCall_PrintAddStr [23:23:21]wPrintStart [23:23:21]Write to MH i2c: 01 00 00 2C 0A 36 [23:23:21]Write i2c OK [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: 01 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: 01 07 00 [23:23:21]MH_I2C_Read... [23:23:21]Read from MH i2c: 01 07 00 2C 0A 00 00 00 00 00 FF 0F 4B [23:23:21]RasterBufferAndPrint [23:23:21]line Счет N : (1)210598 [23:23:21]line ИНН: 02508201610067 [23:23:21]line Контрольно-Кассовый Чек [23:23:21]line ПРОДАЖА [23:23:21]line ТРК (МРК, ГНК) : 51 [23:23:21]line Товар: 2710194210 [23:23:21]line ДТ-К-5 [23:23:21]line 43.100 * 76.20 [23:23:21]line = 3284.22 [23:23:21]line НДС 12% НСП 1% [23:23:21]line > о реализуемом товаре [23:23:21]line ИТОГО: 3284.22 [23:23:21]line НСП 1% : 29.06 [23:23:21]line НДС 12% : 348.77 [23:23:21]line Наличными: 0.00 [23:23:21]line Безнал.: 3284.22 [23:23:21]line Место: АЗС № 86 "Партнер Нефть" [23:23:21]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:23:21]line СНО: Общий режим [23:23:21]line Чек 566 22.10.2024 23:23 [23:23:21]line Смена: 461 ФФД: 1.0 [23:23:21]line ЗНМ: 0300000155 [23:23:21]line РНМ: 0000000000100030 [23:23:21]line Версия ККМ: 001 [23:23:21]line Платежная система: Mbank [23:23:21]line ФМ: 0000000000965340 [23:23:21]line ФД: 188537 [23:23:21]line ФПД: 10775158609765 [23:23:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T232321&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188537&fm=10775158609765&tin=02508201610067®Number=0000000000100030&sum=328422 [23:23:21]OFD Sender: Processing packet 188537 [packets to send 1062, broken 1061] [23:23:21]ProducePacketName [23:23:21]name=ofd_packets/00188537 [23:23:21]OFD Sender: To server: pG, [23:23:21]CommunicateWithHost lk.salyk.kg:30040 [23:23:21]ConnectInit lk.salyk.kg [23:23:21]written 0, free lines is 4095 [23:23:22]Connected sock=10 [23:23:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 B3 8E 04 01 E2 8F 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 5C A8 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 E6 02 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E6 02 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5A 0B 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 88 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E6 02 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 02 00 00 F4 03 04 00 E9 33 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E0 02 00 35 04 06 00 09 CC C9 80 57 65 25 7B 5D 2A 70 96 96 0E [23:23:22]Write to MH i2c: 01 00 00 55 0A 5F [23:23:22]Write i2c OK [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: 01 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: 01 07 00 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: 01 07 00 55 0A 00 00 00 00 00 7E 0C F0 [23:23:22]RasterBufferAndPrint [23:23:22]line [23:23:22]line [23:23:22]line [23:23:22]line [23:23:22]line [23:23:22]written 0, free lines is 3203 [23:23:22]MH_Cut [23:23:22]Write to MH i2c: D1 01 00 5C 0A 01 38 [23:23:22]Write i2c OK [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: D1 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: D1 01 00 [23:23:22]MH_I2C_Read... [23:23:22]Read from MH i2c: D1 01 00 5C 0A 00 37 [23:23:22]Write to MH i2c: 01 00 00 5D 0A 67 [23:23:22]Write i2c OK [23:23:22]MH_I2C_Read... [23:23:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 48 BC 47 00 70 F6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 79 E0 02 00 F4 03 04 00 D5 DD 17 67 B6 04 01 00 00 D7 20 D1 61 D8 CD 63 A5 [23:23:22]CommunicateWithHost err = 0 [23:23:22]CheckOFDResponse [23:23:22]1017 (14) - 77093643461234 [23:23:22]1041 (16) - 0000000000965340 [23:23:22]1040 (4) - 188537 [23:23:22]1012 (4) - 22.10.2024 17:16 [23:23:22]1206 (1) - 0 [23:23:22]OFD Sender: Remove packet 188537 [23:23:22]ProducePacketName [23:23:22]name=ofd_packets/00188537 [23:23:22]NVStorageDeleteData [23:23:23]OFD Sender: No OFD packet to send [23:23:23]*** Cut start [23:23:23]*** Partial cut [23:23:23]*** CUTSNS_PIN = 1 [23:23:23]*** CUTSNS_PIN = 0 [23:23:23]*** Brake cut motor [23:23:24]Read from MH i2c: 01 [23:23:24]MH_I2C_Read... [23:23:24]*** Stop cut motor [23:23:24]*** Cut end [23:23:24]Read from MH i2c: 01 07 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: 01 07 00 5D 0A 00 00 00 00 00 FF 0F 7C [23:23:24]process_action close_receipt done [23:23:24]requested_data is exist [23:23:24]produce_requested_data [23:23:24]requested_item fm.sn is exist - process it [23:23:24]wFMCommunicate request_size=4 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 11 00 00 [23:23:24]Write to MH i2c: E2 08 00 5E 0A 80 11 00 00 00 00 00 00 E2 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 17 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 17 00 5E 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 30 [23:23:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:23:24]wFMCommunicate OK [23:23:24]requested_item fd.num is exist - process it [23:23:24]SAM_PROTO_GetFieldsCounters [23:23:24]wFMCommunicate request_size=4 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 13 00 00 [23:23:24]Write to MH i2c: E2 08 00 5F 0A 80 13 00 00 00 00 00 00 E5 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 62 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 62 00 5F 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 36 02 00 00 5E 04 04 00 36 02 00 00 57 04 04 00 37 02 00 00 19 04 04 00 00 00 00 00 90 00 BD [23:23:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 79 E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 36 02 00 00 5E 04 04 00 36 02 00 00 57 04 04 00 37 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:23:24]wFMCommunicate OK [23:23:24]SAM_PROTO_GetFieldsCounters done [23:23:24]requested_item shift.num is exist - process it [23:23:24]requested_item shift.opened is exist - process it [23:23:24]req_shift_opened [23:23:24]FM_GetShiftState [23:23:24]SAM_PROTO_GetShiftState [23:23:24]wFMCommunicate request_size=4 [23:23:24]MH_SAM_APDU [23:23:24]CAPDU: 80 13 01 00 [23:23:24]Write to MH i2c: E2 08 00 60 0A 80 13 01 00 00 00 00 00 E7 [23:23:24]Write i2c OK [23:23:24]MH_I2C_Read... [23:23:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:24]Read from MH i2c: E2 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 0E 00 [23:23:24]MH_I2C_Read... [23:23:24]Read from MH i2c: E2 0E 00 60 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DC [23:23:24]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:23:24]wFMCommunicate OK [23:23:24]SAM_PROTO_GetShiftState done [23:23:24]FM_GetShiftState done [23:23:24]req_shift_opened done [23:23:24]requested_item shift.open_date is exist - process it [23:23:24]req_shift_open_date [23:23:24]req_shift_open_date done [23:23:24]produce_requested_data done [23:23:24]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188537,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:23:24]process_action_free close_receipt [23:23:24]json_value_free [23:23:24]json_value_free done [23:23:24]process_json_proto returns [23:23:24]Send response to host [23:23:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188537,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:23:24]free response buf [23:23:24]execute_script done [23:23:24]execute_script returns [23:23:24]free content buf [23:23:24]Sock 9.Close socket [23:23:24]Sock 9.Thread stoped [23:23:28]OFD Sender: No OFD packet to send [23:23:33]OFD Sender: No OFD packet to send [23:23:38]OFD Sender: No OFD packet to send [23:23:43]OFD Sender: No OFD packet to send [23:23:48]OFD Sender: No OFD packet to send [23:23:53]OFD Sender: No OFD packet to send [23:23:58]OFD Sender: No OFD packet to send [23:24:03]OFD Sender: No OFD packet to send [23:24:08]OFD Sender: No OFD packet to send [23:24:13]OFD Sender: No OFD packet to send [23:24:18]OFD Sender: No OFD packet to send [23:24:23]OFD Sender: No OFD packet to send [23:24:28]OFD Sender: No OFD packet to send [23:24:33]OFD Sender: No OFD packet to send [23:24:38]OFD Sender: No OFD packet to send [23:24:43]OFD Sender: No OFD packet to send [23:24:48]OFD Sender: No OFD packet to send [23:24:53]OFD Sender: No OFD packet to send [23:24:58]OFD Sender: No OFD packet to send [23:25:03]OFD Sender: No OFD packet to send [23:25:08]OFD Sender: No OFD packet to send [23:25:13]OFD Sender: No OFD packet to send [23:25:18]OFD Sender: No OFD packet to send [23:25:23]OFD Sender: No OFD packet to send [23:25:28]OFD Sender: No OFD packet to send [23:25:33]OFD Sender: No OFD packet to send [23:25:38]OFD Sender: No OFD packet to send [23:25:43]OFD Sender: No OFD packet to send [23:25:48]OFD Sender: No OFD packet to send [23:25:53]OFD Sender: No OFD packet to send [23:25:58]OFD Sender: No OFD packet to send [23:26:03]OFD Sender: No OFD packet to send [23:26:08]OFD Sender: No OFD packet to send [23:26:13]OFD Sender: No OFD packet to send [23:26:18]OFD Sender: No OFD packet to send [23:26:23]OFD Sender: No OFD packet to send [23:26:28]OFD Sender: No OFD packet to send [23:26:33]OFD Sender: No OFD packet to send [23:26:38]OFD Sender: No OFD packet to send [23:26:43]OFD Sender: No OFD packet to send [23:26:48]OFD Sender: No OFD packet to send [23:26:53]OFD Sender: No OFD packet to send [23:26:58]OFD Sender: No OFD packet to send [23:27:04]OFD Sender: No OFD packet to send [23:27:09]OFD Sender: No OFD packet to send [23:27:14]OFD Sender: No OFD packet to send [23:27:19]OFD Sender: No OFD packet to send [23:27:24]OFD Sender: No OFD packet to send [23:27:29]OFD Sender: No OFD packet to send [23:27:34]OFD Sender: No OFD packet to send [23:27:39]OFD Sender: No OFD packet to send [23:27:44]OFD Sender: No OFD packet to send [23:27:49]OFD Sender: No OFD packet to send [23:27:54]OFD Sender: No OFD packet to send [23:27:59]OFD Sender: No OFD packet to send [23:28:04]OFD Sender: No OFD packet to send [23:28:09]OFD Sender: No OFD packet to send [23:28:14]OFD Sender: No OFD packet to send [23:28:19]OFD Sender: No OFD packet to send [23:28:24]OFD Sender: No OFD packet to send [23:28:29]OFD Sender: No OFD packet to send [23:28:34]OFD Sender: No OFD packet to send [23:28:39]OFD Sender: No OFD packet to send [23:28:44]OFD Sender: No OFD packet to send [23:28:49]OFD Sender: No OFD packet to send [23:28:54]OFD Sender: No OFD packet to send [23:28:59]OFD Sender: No OFD packet to send [23:29:04]OFD Sender: No OFD packet to send [23:29:09]OFD Sender: No OFD packet to send [23:29:14]OFD Sender: No OFD packet to send [23:29:19]OFD Sender: No OFD packet to send [23:29:24]OFD Sender: No OFD packet to send [23:29:29]OFD Sender: No OFD packet to send [23:29:34]OFD Sender: No OFD packet to send [23:29:39]OFD Sender: No OFD packet to send [23:29:44]OFD Sender: No OFD packet to send [23:29:49]OFD Sender: No OFD packet to send [23:29:54]OFD Sender: No OFD packet to send [23:29:59]OFD Sender: No OFD packet to send [23:30:04]OFD Sender: No OFD packet to send [23:30:09]OFD Sender: No OFD packet to send [23:30:14]OFD Sender: No OFD packet to send [23:30:19]OFD Sender: No OFD packet to send [23:30:24]OFD Sender: No OFD packet to send [23:30:29]OFD Sender: No OFD packet to send [23:30:34]OFD Sender: No OFD packet to send [23:30:39]OFD Sender: No OFD packet to send [23:30:44]OFD Sender: No OFD packet to send [23:30:49]OFD Sender: No OFD packet to send [23:30:55]OFD Sender: No OFD packet to send [23:31:00]OFD Sender: No OFD packet to send [23:31:05]OFD Sender: No OFD packet to send [23:31:10]OFD Sender: No OFD packet to send [23:31:15]OFD Sender: No OFD packet to send [23:31:20]OFD Sender: No OFD packet to send [23:31:25]OFD Sender: No OFD packet to send [23:31:30]OFD Sender: No OFD packet to send [23:31:35]OFD Sender: No OFD packet to send [23:31:40]OFD Sender: No OFD packet to send [23:31:45]OFD Sender: No OFD packet to send [23:31:50]OFD Sender: No OFD packet to send [23:31:55]OFD Sender: No OFD packet to send [23:32:00]OFD Sender: No OFD packet to send [23:32:05]OFD Sender: No OFD packet to send [23:32:10]OFD Sender: No OFD packet to send [23:32:15]OFD Sender: No OFD packet to send [23:32:20]OFD Sender: No OFD packet to send [23:32:25]OFD Sender: No OFD packet to send [23:32:30]OFD Sender: No OFD packet to send [23:32:35]OFD Sender: No OFD packet to send [23:32:40]OFD Sender: No OFD packet to send [23:32:45]OFD Sender: No OFD packet to send [23:32:50]OFD Sender: No OFD packet to send [23:32:55]OFD Sender: No OFD packet to send [23:33:00]OFD Sender: No OFD packet to send [23:33:05]OFD Sender: No OFD packet to send [23:33:10]OFD Sender: No OFD packet to send [23:33:15]OFD Sender: No OFD packet to send [23:33:20]OFD Sender: No OFD packet to send [23:33:25]OFD Sender: No OFD packet to send [23:33:30]OFD Sender: No OFD packet to send [23:33:35]OFD Sender: No OFD packet to send [23:33:40]OFD Sender: No OFD packet to send [23:33:45]OFD Sender: No OFD packet to send [23:33:50]OFD Sender: No OFD packet to send [23:33:55]OFD Sender: No OFD packet to send [23:34:00]OFD Sender: No OFD packet to send [23:34:05]OFD Sender: No OFD packet to send [23:34:10]OFD Sender: No OFD packet to send [23:34:15]OFD Sender: No OFD packet to send [23:34:20]OFD Sender: No OFD packet to send [23:34:25]OFD Sender: No OFD packet to send [23:34:30]OFD Sender: No OFD packet to send [23:34:35]OFD Sender: No OFD packet to send [23:34:40]OFD Sender: No OFD packet to send [23:34:46]OFD Sender: No OFD packet to send [23:34:51]OFD Sender: No OFD packet to send [23:34:56]OFD Sender: No OFD packet to send [23:35:01]OFD Sender: No OFD packet to send [23:35:06]OFD Sender: No OFD packet to send [23:35:08]accept exits with 7 [23:35:08]New connection [23:35:08]New thread 3066649956 created [23:35:08]Thread 3066506596 joined [23:35:08]Waiting for new connection... [23:35:08] Sock 7.Parse request [23:35:08]Sock 7.Check first char [23:35:08]Sock 7.First char is OK [23:35:08]request: POST /json_proto HTTP/1.0 [23:35:08]Method: POST [23:35:08]URL: /json_proto [23:35:08]Method is POST - this is cgi request [23:35:08]url: /json_proto [23:35:08]query_string will be loaded in cgi processing [23:35:08]execute_cgi json_proto POST (null) [23:35:08]execute_cgi path=json_proto method=POST [23:35:08]POST find Content-Length [23:35:08]Host: 172.17.42.131:8080 [23:35:08]Content-Length: 682 [23:35:08]Content-Type: application/json [23:35:08] [23:35:08]POST finish read [23:35:08]Found Content-Length = 682 [23:35:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210599", "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 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:08]execute_script... [23:35: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)210599", "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 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:35:08]POST & json_proto [23:35:08]process_json_proto [23:35:08]json parsed OK: [23:35:08]protocol is kg_v1.0 [23:35:08]action value=close_receipt [23:35:08]process_action close_receipt [23:35:08]cmd_close_receipt [23:35:08]MH_GetDate [23:35:08]Write to MH i2c: F0 00 00 61 0A 5A [23:35:08]Write i2c OK [23:35:08]MH_I2C_Read... [23:35:08]Read from MH i2c: F0 [23:35:08]MH_I2C_Read... [23:35:08]Read from MH i2c: F0 09 00 [23:35:08]MH_I2C_Read... [23:35:08]Read from MH i2c: F0 09 00 61 0A 00 AD 36 18 67 A0 18 CA 66 AD [23:35:08]GetLastDocTimeStamp 1729639401 [23:35:08]current date 1729640109 [23:35:08]FM_GetShiftState [23:35:08]SAM_PROTO_GetShiftState [23:35:08]wFMCommunicate request_size=4 [23:35:08]MH_SAM_APDU [23:35:08]CAPDU: 80 13 01 00 [23:35:08]Write to MH i2c: E2 08 00 62 0A 80 13 01 00 00 00 00 00 E9 [23:35:08]Write i2c OK [23:35:08]MH_I2C_Read... [23:35:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:08]Read from MH i2c: E2 [23:35:08]MH_I2C_Read... [23:35:08]Read from MH i2c: E2 0E 00 [23:35:08]MH_I2C_Read... [23:35:08]Read from MH i2c: E2 0E 00 62 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 DE [23:35:08]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:35:08]wFMCommunicate OK [23:35:08]SAM_PROTO_GetShiftState done [23:35:08]FM_GetShiftState done [23:35:08]opened in 1729556094 [23:35:08]opened+sec_in_day 1729642494 [23:35:08]quantity*price = 100021 [23:35:08]sum+1 = 100023 [23:35:08]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 567 22.10.2024 23:35 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188538 ФПД: 136961334736673 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233509&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188538&fm=136961334736673&tin=02508201610067®Number=0000000000100030&sum=100000 [23:35:09]StoreToDocumentArchive [23:35:09]shift 461 fd 188538 [23:35:09]save to /storage/0461/doc_00188538 [23:35:09]save last doc name /storage/0461/doc_00188538 to /storage/kkm_last_doc_name [23:35:09]save OK [23:35:09]Clear old archive folders... [23:35:09]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:35:09]tlvbuf is 00921E20 [23:35:09]SAM_PROTO_ClearQueue [23:35:09]wFMCommunicate request_size=4 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 09 00 00 [23:35:09]Write to MH i2c: E2 08 00 6F 0A 80 09 00 00 00 00 00 00 EB [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 6F 0A 00 90 00 ED [23:35:09]RAPDU: 90 00 [23:35:09]wFMCommunicate OK [23:35:09]SAM_PROTO_ClearQueue done [23:35:09]KKMCreateOFDPacket [23:35:09]OFDProtocolAddRootSTLVToBuf [23:35:09]FM_MakeSignedData [23:35:09]FM_MakeSignedData [23:35:09]SAM_PROTO_SignData [23:35:09]wFMCommunicate request_size=4 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 0D 01 02 [23:35:09]Write to MH i2c: E2 08 00 70 0A 80 0D 01 02 00 00 00 00 F3 [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 70 0A 00 90 00 EE [23:35:09]RAPDU: 90 00 [23:35:09]wFMCommunicate OK [23:35:09]wFMCommunicate request_size=255 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 0D 02 02 FA 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 37 02 00 00 F4 03 04 00 AD 36 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E0 02 00 35 04 06 00 7C [23:35:09]Write to MH i2c: E2 02 01 71 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 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 37 02 00 00 F4 03 04 00 AD 36 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E0 02 00 35 04 06 00 7C 00 00 C4 [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 71 0A 00 90 00 EF [23:35:09]RAPDU: 90 00 [23:35:09]wFMCommunicate OK [23:35:09]wFMCommunicate request_size=10 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 0D 02 02 05 90 CB B4 77 21 [23:35:09]Write to MH i2c: E2 0D 00 72 0A 80 0D 02 02 05 00 90 CB B4 77 21 00 00 A7 [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:35:09]Read from MH i2c: E2 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 [23:35:09]MH_I2C_Read... [23:35:09]Read from MH i2c: E2 03 00 72 0A 00 90 00 F0 [23:35:09]RAPDU: 90 00 [23:35:09]wFMCommunicate OK [23:35:09]wFMCommunicate request_size=4 [23:35:09]MH_SAM_APDU [23:35:09]CAPDU: 80 0D 03 02 [23:35:09]Write to MH i2c: E2 08 00 73 0A 80 0D 03 02 00 00 00 00 F8 [23:35:09]Write i2c OK [23:35:09]MH_I2C_Read... [23:35:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:35:10]Read from MH i2c: E2 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: E2 0B 00 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: E2 0B 00 73 0A 00 B5 DF 8C 70 59 80 09 FA 90 00 65 [23:35:10]RAPDU: B5 DF 8C 70 59 80 09 FA 90 00 [23:35:10]wFMCommunicate OK [23:35:10]SAM_PROTO_SignData done [23:35:10]FM_MakeSignedData done [23:35:10]CreateOFDProtocolMessage [23:35:10]wFMCommunicate request_size=4 [23:35:10]MH_SAM_APDU [23:35:10]CAPDU: 80 11 00 00 [23:35:10]Write to MH i2c: E2 08 00 74 0A 80 11 00 00 00 00 00 00 F8 [23:35:10]Write i2c OK [23:35:10]MH_I2C_Read... [23:35:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:10]Read from MH i2c: E2 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: E2 17 00 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: E2 17 00 74 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 46 [23:35:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:35:10]wFMCommunicate OK [23:35:10]CreateOFDProtocolMessage done [23:35:10]OFDSenderStorePacket 188538 [23:35:10]StoreOFDPacket docnum=188538 [23:35:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B 4A 07 01 9C 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 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 37 02 00 00 F4 03 04 00 AD 36 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E0 02 00 35 04 06 00 7C 90 CB B4 77 21 B5 DF 8C 70 59 80 09 FA [23:35:10]CheckFolder [23:35:10]dirname=/storage/ofd_packets [23:35:10]CheckFolder done [23:35:10]ProducePacketName [23:35:10]name=ofd_packets/00188538 [23:35:10]NVStorageSaveData ofd_packets/00188538 [23:35:10]File name is /storage/ofd_packets/00188538 [23:35:10]Write 301 bytes [23:35:10]NVStorageSaveData done [23:35:10]OFDSenderStorePacket done [23:35:10]KKMCreateOFDPacket done [23:35:10]NVStorageSaveData kkm_last_timestamp [23:35:10]File name is /storage/kkm_last_timestamp [23:35:10]Write 4 bytes [23:35:10]NVStorageSaveData done [23:35:10]ExternCall_PrintAddStr [23:35:10]wPrintStart [23:35:10]Write to MH i2c: 01 00 00 75 0A 7F [23:35:10]Write i2c OK [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: 01 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: 01 07 00 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: 01 07 00 75 0A 00 00 00 00 00 FF 0F 94 [23:35:10]RasterBufferAndPrint [23:35:10]line Счет N : (1)210599 [23:35:10]line ИНН: 02508201610067 [23:35:10]line Контрольно-Кассовый Чек [23:35:10]line ПРОДАЖА [23:35:10]line ТРК (МРК, ГНК) : 43 [23:35:10]line Товар: 2710124500 [23:35:10]line Аи-95-К-3 [23:35:10]line 13.480 * 74.20 [23:35:10]line = 1000.22 [23:35:10]line НДС 12% НСП 1% [23:35:10]line > о реализуемом товаре [23:35:10]line ОКРУГЛЕНИЕ: -0.22 [23:35:10]line ИТОГО: 1000.00 [23:35:10]line Внесено: 1000.00 [23:35:10]line СДАЧА: 0.00 [23:35:10]line НСП 1% : 8.85 [23:35:10]line НДС 12% : 106.22 [23:35:10]line Наличными: 1000.00 [23:35:10]line Безнал.: 0.00 [23:35:10]line Место: АЗС № 86 "Партнер Нефть" [23:35:10]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:35:10]line СНО: Общий режим [23:35:10]line Чек 567 22.10.2024 23:35 [23:35:10]line Смена: 461 ФФД: 1.0 [23:35:10]line ЗНМ: 0300000155 [23:35:10]line РНМ: 0000000000100030 [23:35:10]line Версия ККМ: 001 [23:35:10]line ФМ: 0000000000965340 [23:35:10]line ФД: 188538 [23:35:10]line ФПД: 136961334736673 [23:35:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T233509&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188538&fm=136961334736673&tin=02508201610067®Number=0000000000100030&sum=100000 [23:35:10]written 0, free lines is 4095 [23:35:10]OFD Sender: Processing packet 188538 [packets to send 1062, broken 1061] [23:35:10]ProducePacketName [23:35:10]name=ofd_packets/00188538 [23:35:10]OFD Sender: To server: pG, [23:35:10]CommunicateWithHost lk.salyk.kg:30040 [23:35:10]ConnectInit lk.salyk.kg [23:35:10]Connected sock=9 [23:35:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 2B 4A 07 01 9C 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 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 37 02 00 00 F4 03 04 00 AD 36 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E0 02 00 35 04 06 00 7C 90 CB B4 77 21 B5 DF 8C 70 59 80 09 FA [23:35:10]Write to MH i2c: 01 00 00 A0 0A AA [23:35:10]Write i2c OK [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: 01 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: 01 07 00 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: 01 07 00 A0 0A 00 00 00 00 00 5B 0C 18 [23:35:10]RasterBufferAndPrint [23:35:10]line [23:35:10]line [23:35:10]line [23:35:10]line [23:35:10]line [23:35:10]written 0, free lines is 3167 [23:35:10]MH_Cut [23:35:10]Write to MH i2c: D1 01 00 A7 0A 01 83 [23:35:10]Write i2c OK [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: D1 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: D1 01 00 [23:35:10]MH_I2C_Read... [23:35:10]Read from MH i2c: D1 01 00 A7 0A 00 82 [23:35:10]Write to MH i2c: 01 00 00 A8 0A B2 [23:35:10]Write i2c OK [23:35:10]MH_I2C_Read... [23:35:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 07 56 47 00 1C 87 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7A E0 02 00 F4 03 04 00 99 E0 17 67 B6 04 01 00 00 13 5A 6F D3 DF D6 58 96 [23:35:10]CommunicateWithHost err = 0 [23:35:10]CheckOFDResponse [23:35:10]1017 (14) - 77093643461234 [23:35:10]1041 (16) - 0000000000965340 [23:35:10]1040 (4) - 188538 [23:35:10]1012 (4) - 22.10.2024 17:27 [23:35:10]1206 (1) - 0 [23:35:10]OFD Sender: Remove packet 188538 [23:35:10]ProducePacketName [23:35:10]name=ofd_packets/00188538 [23:35:10]NVStorageDeleteData [23:35:11]OFD Sender: No OFD packet to send [23:35:11]*** Cut start [23:35:11]*** Partial cut [23:35:11]*** CUTSNS_PIN = 1 [23:35:11]*** CUTSNS_PIN = 0 [23:35:12]*** Brake cut motor [23:35:12]Read from MH i2c: 01 [23:35:12]MH_I2C_Read... [23:35:12]*** Stop cut motor [23:35:12]*** Cut end [23:35:12]Read from MH i2c: 01 07 00 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: 01 07 00 A8 0A 00 00 00 00 00 FF 0F C7 [23:35:12]process_action close_receipt done [23:35:12]requested_data is exist [23:35:12]produce_requested_data [23:35:12]requested_item fm.sn is exist - process it [23:35:12]wFMCommunicate request_size=4 [23:35:12]MH_SAM_APDU [23:35:12]CAPDU: 80 11 00 00 [23:35:12]Write to MH i2c: E2 08 00 A9 0A 80 11 00 00 00 00 00 00 2D [23:35:12]Write i2c OK [23:35:12]MH_I2C_Read... [23:35:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:35:12]Read from MH i2c: E2 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: E2 17 00 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: E2 17 00 A9 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7B [23:35:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:35:12]wFMCommunicate OK [23:35:12]requested_item fd.num is exist - process it [23:35:12]SAM_PROTO_GetFieldsCounters [23:35:12]wFMCommunicate request_size=4 [23:35:12]MH_SAM_APDU [23:35:12]CAPDU: 80 13 00 00 [23:35:12]Write to MH i2c: E2 08 00 AA 0A 80 13 00 00 00 00 00 00 30 [23:35:12]Write i2c OK [23:35:12]MH_I2C_Read... [23:35:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:35:12]Read from MH i2c: E2 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: E2 62 00 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: E2 62 00 AA 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 37 02 00 00 5E 04 04 00 37 02 00 00 57 04 04 00 38 02 00 00 19 04 04 00 00 00 00 00 90 00 0C [23:35:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7A E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 37 02 00 00 5E 04 04 00 37 02 00 00 57 04 04 00 38 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:35:12]wFMCommunicate OK [23:35:12]SAM_PROTO_GetFieldsCounters done [23:35:12]requested_item shift.num is exist - process it [23:35:12]requested_item shift.opened is exist - process it [23:35:12]req_shift_opened [23:35:12]FM_GetShiftState [23:35:12]SAM_PROTO_GetShiftState [23:35:12]wFMCommunicate request_size=4 [23:35:12]MH_SAM_APDU [23:35:12]CAPDU: 80 13 01 00 [23:35:12]Write to MH i2c: E2 08 00 AB 0A 80 13 01 00 00 00 00 00 32 [23:35:12]Write i2c OK [23:35:12]MH_I2C_Read... [23:35:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:35:12]Read from MH i2c: E2 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: E2 0E 00 [23:35:12]MH_I2C_Read... [23:35:12]Read from MH i2c: E2 0E 00 AB 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 27 [23:35:12]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:35:12]wFMCommunicate OK [23:35:12]SAM_PROTO_GetShiftState done [23:35:12]FM_GetShiftState done [23:35:12]req_shift_opened done [23:35:12]requested_item shift.open_date is exist - process it [23:35:12]req_shift_open_date [23:35:12]req_shift_open_date done [23:35:12]produce_requested_data done [23:35:12]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188538,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:35:12]process_action_free close_receipt [23:35:12]json_value_free [23:35:12]json_value_free done [23:35:12]process_json_proto returns [23:35:12]Send response to host [23:35:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188538,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:35:12]free response buf [23:35:12]execute_script done [23:35:12]execute_script returns [23:35:12]free content buf [23:35:12]Sock 7.Close socket [23:35:12]Sock 7.Thread stoped [23:35:16]OFD Sender: No OFD packet to send [23:35:21]OFD Sender: No OFD packet to send [23:35:26]OFD Sender: No OFD packet to send [23:35:31]OFD Sender: No OFD packet to send [23:35:36]OFD Sender: No OFD packet to send [23:35:41]OFD Sender: No OFD packet to send [23:35:46]OFD Sender: No OFD packet to send [23:35:51]OFD Sender: No OFD packet to send [23:35:56]OFD Sender: No OFD packet to send [23:36:01]OFD Sender: No OFD packet to send [23:36:06]OFD Sender: No OFD packet to send [23:36:11]OFD Sender: No OFD packet to send [23:36:16]OFD Sender: No OFD packet to send [23:36:21]OFD Sender: No OFD packet to send [23:36:26]OFD Sender: No OFD packet to send [23:36:31]OFD Sender: No OFD packet to send [23:36:36]OFD Sender: No OFD packet to send [23:36:41]OFD Sender: No OFD packet to send [23:36:46]OFD Sender: No OFD packet to send [23:36:51]OFD Sender: No OFD packet to send [23:36:56]OFD Sender: No OFD packet to send [23:37:01]OFD Sender: No OFD packet to send [23:37:06]OFD Sender: No OFD packet to send [23:37:11]OFD Sender: No OFD packet to send [23:37:16]OFD Sender: No OFD packet to send [23:37:21]OFD Sender: No OFD packet to send [23:37:26]OFD Sender: No OFD packet to send [23:37:31]OFD Sender: No OFD packet to send [23:37:36]OFD Sender: No OFD packet to send [23:37:41]OFD Sender: No OFD packet to send [23:37:46]OFD Sender: No OFD packet to send [23:37:51]OFD Sender: No OFD packet to send [23:37:56]OFD Sender: No OFD packet to send [23:38:01]OFD Sender: No OFD packet to send [23:38:06]OFD Sender: No OFD packet to send [23:38:11]OFD Sender: No OFD packet to send [23:38:17]OFD Sender: No OFD packet to send [23:38:22]OFD Sender: No OFD packet to send [23:38:27]OFD Sender: No OFD packet to send [23:38:32]OFD Sender: No OFD packet to send [23:38:37]OFD Sender: No OFD packet to send [23:38:42]OFD Sender: No OFD packet to send [23:38:47]OFD Sender: No OFD packet to send [23:38:52]OFD Sender: No OFD packet to send [23:38:57]OFD Sender: No OFD packet to send [23:39:02]OFD Sender: No OFD packet to send [23:39:07]OFD Sender: No OFD packet to send [23:39:12]OFD Sender: No OFD packet to send [23:39:17]OFD Sender: No OFD packet to send [23:39:22]OFD Sender: No OFD packet to send [23:39:27]OFD Sender: No OFD packet to send [23:39:32]OFD Sender: No OFD packet to send [23:39:37]OFD Sender: No OFD packet to send [23:39:42]OFD Sender: No OFD packet to send [23:39:47]OFD Sender: No OFD packet to send [23:39:52]OFD Sender: No OFD packet to send [23:39:57]OFD Sender: No OFD packet to send [23:40:02]OFD Sender: No OFD packet to send [23:40:07]OFD Sender: No OFD packet to send [23:40:12]OFD Sender: No OFD packet to send [23:40:17]OFD Sender: No OFD packet to send [23:40:22]OFD Sender: No OFD packet to send [23:40:27]OFD Sender: No OFD packet to send [23:40:32]OFD Sender: No OFD packet to send [23:40:37]OFD Sender: No OFD packet to send [23:40:42]OFD Sender: No OFD packet to send [23:40:47]OFD Sender: No OFD packet to send [23:40:52]OFD Sender: No OFD packet to send [23:40:57]OFD Sender: No OFD packet to send [23:41:02]OFD Sender: No OFD packet to send [23:41:07]OFD Sender: No OFD packet to send [23:41:12]OFD Sender: No OFD packet to send [23:41:17]OFD Sender: No OFD packet to send [23:41:22]OFD Sender: No OFD packet to send [23:41:27]OFD Sender: No OFD packet to send [23:41:32]OFD Sender: No OFD packet to send [23:41:37]OFD Sender: No OFD packet to send [23:41:42]OFD Sender: No OFD packet to send [23:41:47]OFD Sender: No OFD packet to send [23:41:52]OFD Sender: No OFD packet to send [23:41:57]OFD Sender: No OFD packet to send [23:42:03]OFD Sender: No OFD packet to send [23:42:08]OFD Sender: No OFD packet to send [23:42:13]OFD Sender: No OFD packet to send [23:42:18]OFD Sender: No OFD packet to send [23:42:23]OFD Sender: No OFD packet to send [23:42:28]OFD Sender: No OFD packet to send [23:42:33]OFD Sender: No OFD packet to send [23:42:38]OFD Sender: No OFD packet to send [23:42:43]OFD Sender: No OFD packet to send [23:42:48]OFD Sender: No OFD packet to send [23:42:53]OFD Sender: No OFD packet to send [23:42:58]OFD Sender: No OFD packet to send [23:43:03]OFD Sender: No OFD packet to send [23:43:08]OFD Sender: No OFD packet to send [23:43:13]OFD Sender: No OFD packet to send [23:43:18]OFD Sender: No OFD packet to send [23:43:23]OFD Sender: No OFD packet to send [23:43:28]OFD Sender: No OFD packet to send [23:43:33]OFD Sender: No OFD packet to send [23:43:38]OFD Sender: No OFD packet to send [23:43:43]OFD Sender: No OFD packet to send [23:43:48]OFD Sender: No OFD packet to send [23:43:53]OFD Sender: No OFD packet to send [23:43:58]OFD Sender: No OFD packet to send [23:44:03]OFD Sender: No OFD packet to send [23:44:08]OFD Sender: No OFD packet to send [23:44:13]OFD Sender: No OFD packet to send [23:44:18]OFD Sender: No OFD packet to send [23:44:23]OFD Sender: No OFD packet to send [23:44:28]OFD Sender: No OFD packet to send [23:44:33]OFD Sender: No OFD packet to send [23:44:38]OFD Sender: No OFD packet to send [23:44:43]OFD Sender: No OFD packet to send [23:44:48]OFD Sender: No OFD packet to send [23:44:53]OFD Sender: No OFD packet to send [23:44:58]OFD Sender: No OFD packet to send [23:45:03]OFD Sender: No OFD packet to send [23:45:08]OFD Sender: No OFD packet to send [23:45:13]OFD Sender: No OFD packet to send [23:45:18]OFD Sender: No OFD packet to send [23:45:23]OFD Sender: No OFD packet to send [23:45:28]OFD Sender: No OFD packet to send [23:45:33]OFD Sender: No OFD packet to send [23:45:38]OFD Sender: No OFD packet to send [23:45:43]OFD Sender: No OFD packet to send [23:45:48]OFD Sender: No OFD packet to send [23:45:54]OFD Sender: No OFD packet to send [23:45:59]OFD Sender: No OFD packet to send [23:46:04]OFD Sender: No OFD packet to send [23:46:09]OFD Sender: No OFD packet to send [23:46:14]OFD Sender: No OFD packet to send [23:46:19]OFD Sender: No OFD packet to send [23:46:24]OFD Sender: No OFD packet to send [23:46:29]OFD Sender: No OFD packet to send [23:46:34]OFD Sender: No OFD packet to send [23:46:39]OFD Sender: No OFD packet to send [23:46:44]OFD Sender: No OFD packet to send [23:46:49]OFD Sender: No OFD packet to send [23:46:54]OFD Sender: No OFD packet to send [23:46:59]OFD Sender: No OFD packet to send [23:47:04]OFD Sender: No OFD packet to send [23:47:09]OFD Sender: No OFD packet to send [23:47:14]OFD Sender: No OFD packet to send [23:47:19]OFD Sender: No OFD packet to send [23:47:24]OFD Sender: No OFD packet to send [23:47:29]OFD Sender: No OFD packet to send [23:47:34]OFD Sender: No OFD packet to send [23:47:39]OFD Sender: No OFD packet to send [23:47:44]OFD Sender: No OFD packet to send [23:47:49]OFD Sender: No OFD packet to send [23:47:54]OFD Sender: No OFD packet to send [23:47:59]OFD Sender: No OFD packet to send [23:48:04]OFD Sender: No OFD packet to send [23:48:09]OFD Sender: No OFD packet to send [23:48:14]OFD Sender: No OFD packet to send [23:48:19]OFD Sender: No OFD packet to send [23:48:24]OFD Sender: No OFD packet to send [23:48:29]OFD Sender: No OFD packet to send [23:48:34]OFD Sender: No OFD packet to send [23:48:39]OFD Sender: No OFD packet to send [23:48:44]OFD Sender: No OFD packet to send [23:48:49]OFD Sender: No OFD packet to send [23:48:54]OFD Sender: No OFD packet to send [23:48:59]OFD Sender: No OFD packet to send [23:49:04]OFD Sender: No OFD packet to send [23:49:09]OFD Sender: No OFD packet to send [23:49:14]OFD Sender: No OFD packet to send [23:49:19]OFD Sender: No OFD packet to send [23:49:24]OFD Sender: No OFD packet to send [23:49:29]OFD Sender: No OFD packet to send [23:49:34]OFD Sender: No OFD packet to send [23:49:39]OFD Sender: No OFD packet to send [23:49:45]OFD Sender: No OFD packet to send [23:49:50]OFD Sender: No OFD packet to send [23:49:55]OFD Sender: No OFD packet to send [23:50:00]OFD Sender: No OFD packet to send [23:50:05]OFD Sender: No OFD packet to send [23:50:05]accept exits with 10 [23:50:05]New connection [23:50:05]New thread 3066506596 created [23:50:05]Thread 3066649956 joined [23:50:05]Waiting for new connection... [23:50:05] Sock 10.Parse request [23:50:05]Sock 10.Check first char [23:50:05]Sock 10.First char is OK [23:50:05]request: POST /json_proto HTTP/1.0 [23:50:05]Method: POST [23:50:05]URL: /json_proto [23:50:05]Method is POST - this is cgi request [23:50:05]url: /json_proto [23:50:05]query_string will be loaded in cgi processing [23:50:05]execute_cgi json_proto POST (null) [23:50:05]execute_cgi path=json_proto method=POST [23:50:05]POST find Content-Length [23:50:05]Host: 172.17.42.131:8080 [23:50:05]Content-Length: 775 [23:50:05]Content-Type: application/json [23:50:05] [23:50:05]POST finish read [23:50:05]Found Content-Length = 775 [23:50:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 31.700, "sum" : 2447.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2447.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:05]execute_script... [23:50: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)210600", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 31.700, "sum" : 2447.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2447.24 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:50:05]POST & json_proto [23:50:05]process_json_proto [23:50:05]json parsed OK: [23:50:05]protocol is kg_v1.0 [23:50:05]action value=close_receipt [23:50:05]process_action close_receipt [23:50:05]cmd_close_receipt [23:50:05]MH_GetDate [23:50:05]Write to MH i2c: F0 00 00 AC 0A A5 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: F0 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: F0 09 00 [23:50:05]MH_I2C_Read... [23:50:05]Read from MH i2c: F0 09 00 AC 0A 00 2F 3A 18 67 A0 18 CA 66 7E [23:50:05]GetLastDocTimeStamp 1729640109 [23:50:05]current date 1729641007 [23:50:05]FM_GetShiftState [23:50:05]SAM_PROTO_GetShiftState [23:50:05]wFMCommunicate request_size=4 [23:50:05]MH_SAM_APDU [23:50:05]CAPDU: 80 13 01 00 [23:50:05]Write to MH i2c: E2 08 00 AD 0A 80 13 01 00 00 00 00 00 34 [23:50:05]Write i2c OK [23:50:05]MH_I2C_Read... [23:50:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:06]Read from MH i2c: E2 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 0E 00 [23:50:06]MH_I2C_Read... [23:50:06]Read from MH i2c: E2 0E 00 AD 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 29 [23:50:06]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:50:06]wFMCommunicate OK [23:50:06]SAM_PROTO_GetShiftState done [23:50:06]FM_GetShiftState done [23:50:06]opened in 1729556094 [23:50:06]opened+sec_in_day 1729642494 [23:50:06]quantity*price = 244724 [23:50:06]sum+1 = 244725 [23:50:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2447.24 НСП 1% : 21.66 НДС 12% : 259.88 Наличными: 0.00 Безнал.: 2447.24 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 568 22.10.2024 23:50 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188539 ФПД: 156757849702347 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235007&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188539&fm=156757849702347&tin=02508201610067®Number=0000000000100030&sum=244724 [23:50:07]StoreToDocumentArchive [23:50:07]shift 461 fd 188539 [23:50:07]save to /storage/0461/doc_00188539 [23:50:07]save last doc name /storage/0461/doc_00188539 to /storage/kkm_last_doc_name [23:50:07]save OK [23:50:07]Clear old archive folders... [23:50:07]ProcessDocumentItem done err = 0, tmpTLVsize=257 [23:50:07]tlvbuf is 008FCDE0 [23:50:07]SAM_PROTO_ClearQueue [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 09 00 00 [23:50:07]Write to MH i2c: E2 08 00 BA 0A 80 09 00 00 00 00 00 00 36 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 BA 0A 00 90 00 38 [23:50:07]RAPDU: 90 00 [23:50:07]wFMCommunicate OK [23:50:07]SAM_PROTO_ClearQueue done [23:50:07]KKMCreateOFDPacket [23:50:07]OFDProtocolAddRootSTLVToBuf [23:50:07]FM_MakeSignedData [23:50:07]FM_MakeSignedData [23:50:07]SAM_PROTO_SignData [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 0D 01 02 [23:50:07]Write to MH i2c: E2 08 00 BB 0A 80 0D 01 02 00 00 00 00 3E [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 BB 0A 00 90 00 39 [23:50:07]RAPDU: 90 00 [23:50:07]wFMCommunicate OK [23:50:07]wFMCommunicate request_size=255 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F4 BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 BB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 2F 3A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E0 02 [23:50:07]Write to MH i2c: E2 02 01 BC 0A 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F4 BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 BB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 2F 3A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E0 02 00 00 18 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 BC 0A 00 90 00 3A [23:50:07]RAPDU: 90 00 [23:50:07]wFMCommunicate OK [23:50:07]wFMCommunicate request_size=16 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 8E 92 07 F2 7F CB [23:50:07]Write to MH i2c: E2 13 00 BD 0A 80 0D 02 02 0B 00 00 35 04 06 00 8E 92 07 F2 7F CB 00 00 F9 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 03 00 BD 0A 00 90 00 3B [23:50:07]RAPDU: 90 00 [23:50:07]wFMCommunicate OK [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 0D 03 02 [23:50:07]Write to MH i2c: E2 08 00 BE 0A 80 0D 03 02 00 00 00 00 43 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 0B 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 0B 00 BE 0A 00 23 81 DB E5 5A 81 3A F2 90 00 AF [23:50:07]RAPDU: 23 81 DB E5 5A 81 3A F2 90 00 [23:50:07]wFMCommunicate OK [23:50:07]SAM_PROTO_SignData done [23:50:07]FM_MakeSignedData done [23:50:07]CreateOFDProtocolMessage [23:50:07]wFMCommunicate request_size=4 [23:50:07]MH_SAM_APDU [23:50:07]CAPDU: 80 11 00 00 [23:50:07]Write to MH i2c: E2 08 00 BF 0A 80 11 00 00 00 00 00 00 43 [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:07]Read from MH i2c: E2 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 17 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: E2 17 00 BF 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 91 [23:50:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:50:07]wFMCommunicate OK [23:50:07]CreateOFDProtocolMessage done [23:50:07]OFDSenderStorePacket 188539 [23:50:07]StoreOFDPacket docnum=188539 [23:50:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3C 2D 0D 01 79 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F4 BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 BB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 2F 3A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E0 02 00 35 04 06 00 8E 92 07 F2 7F CB 23 81 DB E5 5A 81 3A F2 [23:50:07]CheckFolder [23:50:07]dirname=/storage/ofd_packets [23:50:07]CheckFolder done [23:50:07]ProducePacketName [23:50:07]name=ofd_packets/00188539 [23:50:07]NVStorageSaveData ofd_packets/00188539 [23:50:07]File name is /storage/ofd_packets/00188539 [23:50:07]Write 307 bytes [23:50:07]NVStorageSaveData done [23:50:07]OFDSenderStorePacket done [23:50:07]KKMCreateOFDPacket done [23:50:07]NVStorageSaveData kkm_last_timestamp [23:50:07]File name is /storage/kkm_last_timestamp [23:50:07]Write 4 bytes [23:50:07]NVStorageSaveData done [23:50:07]ExternCall_PrintAddStr [23:50:07]wPrintStart [23:50:07]Write to MH i2c: 01 00 00 C0 0A CA [23:50:07]Write i2c OK [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: 01 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: 01 07 00 [23:50:07]MH_I2C_Read... [23:50:07]Read from MH i2c: 01 07 00 C0 0A 00 00 00 00 00 FF 0F DF [23:50:07]RasterBufferAndPrint [23:50:07]line Счет N : (1)210600 [23:50:07]line ИНН: 02508201610067 [23:50:07]line Контрольно-Кассовый Чек [23:50:07]line ПРОДАЖА [23:50:07]line ТРК (МРК, ГНК) : 41 [23:50:07]line Товар: 2710194210 [23:50:07]line D-ENERGY ДТ-К-5 [23:50:07]line 31.700 * 77.20 [23:50:07]line = 2447.24 [23:50:07]line НДС 12% НСП 1% [23:50:07]line > о реализуемом товаре [23:50:07]line ИТОГО: 2447.24 [23:50:07]line НСП 1% : 21.66 [23:50:07]line НДС 12% : 259.88 [23:50:07]line Наличными: 0.00 [23:50:07]line Безнал.: 2447.24 [23:50:07]line Место: АЗС № 86 "Партнер Нефть" [23:50:07]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:50:07]line СНО: Общий режим [23:50:07]line Чек 568 22.10.2024 23:50 [23:50:07]line Смена: 461 ФФД: 1.0 [23:50:07]line ЗНМ: 0300000155 [23:50:07]line РНМ: 0000000000100030 [23:50:07]line Версия ККМ: 001 [23:50:07]line Платежная система: Mbank [23:50:07]line ФМ: 0000000000965340 [23:50:07]line ФД: 188539 [23:50:07]line ФПД: 156757849702347 [23:50:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235007&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188539&fm=156757849702347&tin=02508201610067®Number=0000000000100030&sum=244724 [23:50:08]OFD Sender: Processing packet 188539 [packets to send 1062, broken 1061] [23:50:08]ProducePacketName [23:50:08]name=ofd_packets/00188539 [23:50:08]OFD Sender: To server: pG, [23:50:08]CommunicateWithHost lk.salyk.kg:30040 [23:50:08]ConnectInit lk.salyk.kg [23:50:08]written 0, free lines is 4095 [23:50:08]Connected sock=9 [23:50:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 3C 2D 0D 01 79 4B 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 7B 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 F4 BB 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 BB 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 84 65 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F4 BB 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 02 00 00 F4 03 04 00 2F 3A 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E0 02 00 35 04 06 00 8E 92 07 F2 7F CB 23 81 DB E5 5A 81 3A F2 [23:50:08]Write to MH i2c: 01 00 00 E9 0A F3 [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: 01 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: 01 07 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: 01 07 00 E9 0A 00 00 00 00 00 80 0C 86 [23:50:08]RasterBufferAndPrint [23:50:08]line [23:50:08]line [23:50:08]line [23:50:08]line [23:50:08]line [23:50:08]written 0, free lines is 3205 [23:50:08]MH_Cut [23:50:08]Write to MH i2c: D1 01 00 F0 0A 01 CC [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: D1 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: D1 01 00 [23:50:08]MH_I2C_Read... [23:50:08]Read from MH i2c: D1 01 00 F0 0A 00 CB [23:50:08]Write to MH i2c: 01 00 00 F1 0A FB [23:50:08]Write i2c OK [23:50:08]MH_I2C_Read... [23:50:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 09 5D 47 00 AC ED A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7B E0 02 00 F4 03 04 00 1B E4 17 67 B6 04 01 00 00 25 80 64 1E 60 13 04 D5 [23:50:08]CommunicateWithHost err = 0 [23:50:08]CheckOFDResponse [23:50:08]1017 (14) - 77093643461234 [23:50:08]1041 (16) - 0000000000965340 [23:50:08]1040 (4) - 188539 [23:50:08]1012 (4) - 22.10.2024 17:42 [23:50:08]1206 (1) - 0 [23:50:08]OFD Sender: Remove packet 188539 [23:50:08]ProducePacketName [23:50:08]name=ofd_packets/00188539 [23:50:08]NVStorageDeleteData [23:50:09]OFD Sender: No OFD packet to send [23:50:09]*** Cut start [23:50:09]*** Partial cut [23:50:09]*** CUTSNS_PIN = 1 [23:50:09]*** CUTSNS_PIN = 0 [23:50:10]*** Brake cut motor [23:50:10]Read from MH i2c: 01 [23:50:10]MH_I2C_Read... [23:50:10]*** Stop cut motor [23:50:10]*** Cut end [23:50:10]Read from MH i2c: 01 07 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: 01 07 00 F1 0A 00 00 00 00 00 FF 0F 10 [23:50:10]process_action close_receipt done [23:50:10]requested_data is exist [23:50:10]produce_requested_data [23:50:10]requested_item fm.sn is exist - process it [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 11 00 00 [23:50:10]Write to MH i2c: E2 08 00 F2 0A 80 11 00 00 00 00 00 00 76 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 17 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 17 00 F2 0A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C4 [23:50:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:50:10]wFMCommunicate OK [23:50:10]requested_item fd.num is exist - process it [23:50:10]SAM_PROTO_GetFieldsCounters [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 13 00 00 [23:50:10]Write to MH i2c: E2 08 00 F3 0A 80 13 00 00 00 00 00 00 79 [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 62 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 62 00 F3 0A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 38 02 00 00 5E 04 04 00 38 02 00 00 57 04 04 00 39 02 00 00 19 04 04 00 00 00 00 00 90 00 59 [23:50:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7B E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 38 02 00 00 5E 04 04 00 38 02 00 00 57 04 04 00 39 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:50:10]wFMCommunicate OK [23:50:10]SAM_PROTO_GetFieldsCounters done [23:50:10]requested_item shift.num is exist - process it [23:50:10]requested_item shift.opened is exist - process it [23:50:10]req_shift_opened [23:50:10]FM_GetShiftState [23:50:10]SAM_PROTO_GetShiftState [23:50:10]wFMCommunicate request_size=4 [23:50:10]MH_SAM_APDU [23:50:10]CAPDU: 80 13 01 00 [23:50:10]Write to MH i2c: E2 08 00 F4 0A 80 13 01 00 00 00 00 00 7B [23:50:10]Write i2c OK [23:50:10]MH_I2C_Read... [23:50:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:50:10]Read from MH i2c: E2 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 0E 00 [23:50:10]MH_I2C_Read... [23:50:10]Read from MH i2c: E2 0E 00 F4 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 70 [23:50:10]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:50:10]wFMCommunicate OK [23:50:10]SAM_PROTO_GetShiftState done [23:50:10]FM_GetShiftState done [23:50:10]req_shift_opened done [23:50:10]requested_item shift.open_date is exist - process it [23:50:10]req_shift_open_date [23:50:10]req_shift_open_date done [23:50:10]produce_requested_data done [23:50:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188539,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:50:10]process_action_free close_receipt [23:50:10]json_value_free [23:50:10]json_value_free done [23:50:10]process_json_proto returns [23:50:10]Send response to host [23:50:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188539,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:50:10]free response buf [23:50:10]execute_script done [23:50:10]execute_script returns [23:50:10]free content buf [23:50:10]Sock 10.Close socket [23:50:10]Sock 10.Thread stoped [23:50:14]OFD Sender: No OFD packet to send [23:50:19]OFD Sender: No OFD packet to send [23:50:24]OFD Sender: No OFD packet to send [23:50:29]OFD Sender: No OFD packet to send [23:50:34]OFD Sender: No OFD packet to send [23:50:39]OFD Sender: No OFD packet to send [23:50:44]OFD Sender: No OFD packet to send [23:50:49]OFD Sender: No OFD packet to send [23:50:54]OFD Sender: No OFD packet to send [23:50:59]OFD Sender: No OFD packet to send [23:51:04]OFD Sender: No OFD packet to send [23:51:09]OFD Sender: No OFD packet to send [23:51:14]OFD Sender: No OFD packet to send [23:51:19]OFD Sender: No OFD packet to send [23:51:24]OFD Sender: No OFD packet to send [23:51:29]OFD Sender: No OFD packet to send [23:51:34]OFD Sender: No OFD packet to send [23:51:39]OFD Sender: No OFD packet to send [23:51:44]OFD Sender: No OFD packet to send [23:51:49]OFD Sender: No OFD packet to send [23:51:54]OFD Sender: No OFD packet to send [23:51:59]OFD Sender: No OFD packet to send [23:52:04]OFD Sender: No OFD packet to send [23:52:09]OFD Sender: No OFD packet to send [23:52:14]OFD Sender: No OFD packet to send [23:52:19]OFD Sender: No OFD packet to send [23:52:24]OFD Sender: No OFD packet to send [23:52:29]OFD Sender: No OFD packet to send [23:52:34]OFD Sender: No OFD packet to send [23:52:39]OFD Sender: No OFD packet to send [23:52:44]OFD Sender: No OFD packet to send [23:52:49]OFD Sender: No OFD packet to send [23:52:54]OFD Sender: No OFD packet to send [23:52:59]OFD Sender: No OFD packet to send [23:53:04]OFD Sender: No OFD packet to send [23:53:09]OFD Sender: No OFD packet to send [23:53:14]OFD Sender: No OFD packet to send [23:53:19]OFD Sender: No OFD packet to send [23:53:25]OFD Sender: No OFD packet to send [23:53:30]OFD Sender: No OFD packet to send [23:53:35]OFD Sender: No OFD packet to send [23:53:40]OFD Sender: No OFD packet to send [23:53:45]OFD Sender: No OFD packet to send [23:53:50]OFD Sender: No OFD packet to send [23:53:55]OFD Sender: No OFD packet to send [23:54:00]OFD Sender: No OFD packet to send [23:54:05]OFD Sender: No OFD packet to send [23:54:10]OFD Sender: No OFD packet to send [23:54:15]OFD Sender: No OFD packet to send [23:54:20]OFD Sender: No OFD packet to send [23:54:25]OFD Sender: No OFD packet to send [23:54:30]OFD Sender: No OFD packet to send [23:54:35]OFD Sender: No OFD packet to send [23:54:40]OFD Sender: No OFD packet to send [23:54:45]OFD Sender: No OFD packet to send [23:54:50]OFD Sender: No OFD packet to send [23:54:55]OFD Sender: No OFD packet to send [23:55:00]OFD Sender: No OFD packet to send [23:55:05]OFD Sender: No OFD packet to send [23:55:10]OFD Sender: No OFD packet to send [23:55:15]OFD Sender: No OFD packet to send [23:55:20]OFD Sender: No OFD packet to send [23:55:25]OFD Sender: No OFD packet to send [23:55:30]OFD Sender: No OFD packet to send [23:55:35]OFD Sender: No OFD packet to send [23:55:40]OFD Sender: No OFD packet to send [23:55:45]OFD Sender: No OFD packet to send [23:55:50]OFD Sender: No OFD packet to send [23:55:55]OFD Sender: No OFD packet to send [23:56:00]OFD Sender: No OFD packet to send [23:56:05]OFD Sender: No OFD packet to send [23:56:10]OFD Sender: No OFD packet to send [23:56:15]OFD Sender: No OFD packet to send [23:56:20]OFD Sender: No OFD packet to send [23:56:25]OFD Sender: No OFD packet to send [23:56:30]OFD Sender: No OFD packet to send [23:56:35]OFD Sender: No OFD packet to send [23:56:40]OFD Sender: No OFD packet to send [23:56:45]OFD Sender: No OFD packet to send [23:56:50]OFD Sender: No OFD packet to send [23:56:55]OFD Sender: No OFD packet to send [23:57:00]OFD Sender: No OFD packet to send [23:57:05]OFD Sender: No OFD packet to send [23:57:11]OFD Sender: No OFD packet to send [23:57:16]OFD Sender: No OFD packet to send [23:57:21]OFD Sender: No OFD packet to send [23:57:26]OFD Sender: No OFD packet to send [23:57:31]OFD Sender: No OFD packet to send [23:57:31]accept exits with 7 [23:57:31]New connection [23:57:31]New thread 3066649956 created [23:57:31]Thread 3066506596 joined [23:57:31]Waiting for new connection... [23:57:31] Sock 7.Parse request [23:57:31]Sock 7.Check first char [23:57:31]Sock 7.First char is OK [23:57:31]request: POST /json_proto HTTP/1.0 [23:57:31]Method: POST [23:57:31]URL: /json_proto [23:57:31]Method is POST - this is cgi request [23:57:31]url: /json_proto [23:57:31]query_string will be loaded in cgi processing [23:57:31]execute_cgi json_proto POST (null) [23:57:31]execute_cgi path=json_proto method=POST [23:57:31]POST find Content-Length [23:57:31]Host: 172.17.42.131:8080 [23:57:31]Content-Length: 766 [23:57:31]Content-Type: application/json [23:57:31] [23:57:31]POST finish read [23:57:31]Found Content-Length = 766 [23:57:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:31]execute_script... [23:57: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)210601", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:57:31]POST & json_proto [23:57:31]process_json_proto [23:57:31]json parsed OK: [23:57:31]protocol is kg_v1.0 [23:57:31]action value=close_receipt [23:57:31]process_action close_receipt [23:57:31]cmd_close_receipt [23:57:31]MH_GetDate [23:57:31]Write to MH i2c: F0 00 00 F5 0A EE [23:57:31]Write i2c OK [23:57:31]MH_I2C_Read... [23:57:31]Read from MH i2c: F0 [23:57:31]MH_I2C_Read... [23:57:31]Read from MH i2c: F0 09 00 [23:57:31]MH_I2C_Read... [23:57:31]Read from MH i2c: F0 09 00 F5 0A 00 EC 3B 18 67 A0 18 CA 66 85 [23:57:31]GetLastDocTimeStamp 1729641007 [23:57:31]current date 1729641452 [23:57:31]FM_GetShiftState [23:57:31]SAM_PROTO_GetShiftState [23:57:31]wFMCommunicate request_size=4 [23:57:31]MH_SAM_APDU [23:57:31]CAPDU: 80 13 01 00 [23:57:31]Write to MH i2c: E2 08 00 F6 0A 80 13 01 00 00 00 00 00 7D [23:57:31]Write i2c OK [23:57:31]MH_I2C_Read... [23:57:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:31]Read from MH i2c: E2 [23:57:31]MH_I2C_Read... [23:57:31]Read from MH i2c: E2 0E 00 [23:57:31]MH_I2C_Read... [23:57:31]Read from MH i2c: E2 0E 00 F6 0A 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 72 [23:57:31]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:57:31]wFMCommunicate OK [23:57:31]SAM_PROTO_GetShiftState done [23:57:31]FM_GetShiftState done [23:57:31]opened in 1729556094 [23:57:31]opened+sec_in_day 1729642494 [23:57:31]quantity*price = 50041 [23:57:31]sum+1 = 50042 [23:57:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 569 22.10.2024 23:57 Смена: 461 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000965340 ФД: 188540 ФПД: 243103100669337 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188540&fm=243103100669337&tin=02508201610067®Number=0000000000100030&sum=50041 [23:57:32]StoreToDocumentArchive [23:57:32]shift 461 fd 188540 [23:57:32]save to /storage/0461/doc_00188540 [23:57:32]save last doc name /storage/0461/doc_00188540 to /storage/kkm_last_doc_name [23:57:32]save OK [23:57:32]Clear old archive folders... [23:57:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [23:57:32]tlvbuf is 008EAFA0 [23:57:32]SAM_PROTO_ClearQueue [23:57:32]wFMCommunicate request_size=4 [23:57:32]MH_SAM_APDU [23:57:32]CAPDU: 80 09 00 00 [23:57:32]Write to MH i2c: E2 08 00 03 0B 80 09 00 00 00 00 00 00 80 [23:57:32]Write i2c OK [23:57:32]MH_I2C_Read... [23:57:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:57:32]Read from MH i2c: E2 [23:57:32]MH_I2C_Read... [23:57:32]Read from MH i2c: E2 03 00 [23:57:32]MH_I2C_Read... [23:57:32]Read from MH i2c: E2 03 00 03 0B 00 90 00 82 [23:57:32]RAPDU: 90 00 [23:57:32]wFMCommunicate OK [23:57:32]SAM_PROTO_ClearQueue done [23:57:32]KKMCreateOFDPacket [23:57:32]OFDProtocolAddRootSTLVToBuf [23:57:32]FM_MakeSignedData [23:57:32]FM_MakeSignedData [23:57:32]SAM_PROTO_SignData [23:57:32]wFMCommunicate request_size=4 [23:57:32]MH_SAM_APDU [23:57:32]CAPDU: 80 0D 01 02 [23:57:32]Write to MH i2c: E2 08 00 04 0B 80 0D 01 02 00 00 00 00 88 [23:57:32]Write i2c OK [23:57:32]MH_I2C_Read... [23:57:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:57:32]Read from MH i2c: E2 [23:57:32]MH_I2C_Read... [23:57:32]Read from MH i2c: E2 03 00 [23:57:32]MH_I2C_Read... [23:57:32]Read from MH i2c: E2 03 00 04 0B 00 90 00 83 [23:57:32]RAPDU: 90 00 [23:57:32]wFMCommunicate OK [23:57:32]wFMCommunicate request_size=255 [23:57:32]MH_SAM_APDU [23:57: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 EC 3B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E0 02 00 35 04 06 00 DD [23:57:32]Write to MH i2c: E2 02 01 05 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 EC 3B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E0 02 00 35 04 06 00 DD 00 00 37 [23:57:32]Write i2c OK [23:57:32]MH_I2C_Read... [23:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:33]Read from MH i2c: E2 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 03 00 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 03 00 05 0B 00 90 00 84 [23:57:33]RAPDU: 90 00 [23:57:33]wFMCommunicate OK [23:57:33]wFMCommunicate request_size=10 [23:57:33]MH_SAM_APDU [23:57:33]CAPDU: 80 0D 02 02 05 19 D9 F5 8D 99 [23:57:33]Write to MH i2c: E2 0D 00 06 0B 80 0D 02 02 05 00 19 D9 F5 8D 99 00 00 A2 [23:57:33]Write i2c OK [23:57:33]MH_I2C_Read... [23:57:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:57:33]Read from MH i2c: E2 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 03 00 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 03 00 06 0B 00 90 00 85 [23:57:33]RAPDU: 90 00 [23:57:33]wFMCommunicate OK [23:57:33]wFMCommunicate request_size=4 [23:57:33]MH_SAM_APDU [23:57:33]CAPDU: 80 0D 03 02 [23:57:33]Write to MH i2c: E2 08 00 07 0B 80 0D 03 02 00 00 00 00 8D [23:57:33]Write i2c OK [23:57:33]MH_I2C_Read... [23:57:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:57:33]Read from MH i2c: E2 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 0B 00 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 0B 00 07 0B 00 7C BA 88 75 2F 0C A0 A7 90 00 43 [23:57:33]RAPDU: 7C BA 88 75 2F 0C A0 A7 90 00 [23:57:33]wFMCommunicate OK [23:57:33]SAM_PROTO_SignData done [23:57:33]FM_MakeSignedData done [23:57:33]CreateOFDProtocolMessage [23:57:33]wFMCommunicate request_size=4 [23:57:33]MH_SAM_APDU [23:57:33]CAPDU: 80 11 00 00 [23:57:33]Write to MH i2c: E2 08 00 08 0B 80 11 00 00 00 00 00 00 8D [23:57:33]Write i2c OK [23:57:33]MH_I2C_Read... [23:57:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:33]Read from MH i2c: E2 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 17 00 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: E2 17 00 08 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 DB [23:57:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:57:33]wFMCommunicate OK [23:57:33]CreateOFDProtocolMessage done [23:57:33]OFDSenderStorePacket 188540 [23:57:33]StoreOFDPacket docnum=188540 [23:57:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 CC 07 01 7C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 EC 3B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E0 02 00 35 04 06 00 DD 19 D9 F5 8D 99 7C BA 88 75 2F 0C A0 A7 [23:57:33]CheckFolder [23:57:33]dirname=/storage/ofd_packets [23:57:33]CheckFolder done [23:57:33]ProducePacketName [23:57:33]name=ofd_packets/00188540 [23:57:33]NVStorageSaveData ofd_packets/00188540 [23:57:33]File name is /storage/ofd_packets/00188540 [23:57:33]Write 301 bytes [23:57:33]NVStorageSaveData done [23:57:33]OFDSenderStorePacket done [23:57:33]KKMCreateOFDPacket done [23:57:33]NVStorageSaveData kkm_last_timestamp [23:57:33]File name is /storage/kkm_last_timestamp [23:57:33]Write 4 bytes [23:57:33]NVStorageSaveData done [23:57:33]ExternCall_PrintAddStr [23:57:33]wPrintStart [23:57:33]Write to MH i2c: 01 00 00 09 0B 14 [23:57:33]Write i2c OK [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: 01 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: 01 07 00 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: 01 07 00 09 0B 00 00 00 00 00 FF 0F 29 [23:57:33]RasterBufferAndPrint [23:57:33]line Счет N : (1)210601 [23:57:33]line ИНН: 02508201610067 [23:57:33]line Контрольно-Кассовый Чек [23:57:33]line ПРОДАЖА [23:57:33]line ТРК (МРК, ГНК) : 32 [23:57:33]line Товар: 2710124130 [23:57:33]line Аи-92-К-3 [23:57:33]line 7.480 * 66.90 [23:57:33]line = 500.41 [23:57:33]line НДС 12% НСП 1% [23:57:33]line > о реализуемом товаре [23:57:33]line ИТОГО: 500.41 [23:57:33]line НСП 1% : 4.43 [23:57:33]line НДС 12% : 53.14 [23:57:33]line Наличными: 0.00 [23:57:33]line Безнал.: 500.41 [23:57:33]line Место: АЗС № 86 "Партнер Нефть" [23:57:33]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [23:57:33]line СНО: Общий режим [23:57:33]line Чек 569 22.10.2024 23:57 [23:57:33]line Смена: 461 ФФД: 1.0 [23:57:33]line ЗНМ: 0300000155 [23:57:33]line РНМ: 0000000000100030 [23:57:33]line Версия ККМ: 001 [23:57:33]line Платежная система: Mbank [23:57:33]line ФМ: 0000000000965340 [23:57:33]line ФД: 188540 [23:57:33]line ФПД: 243103100669337 [23:57:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241022T235732&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188540&fm=243103100669337&tin=02508201610067®Number=0000000000100030&sum=50041 [23:57:33]OFD Sender: Processing packet 188540 [packets to send 1062, broken 1061] [23:57:33]ProducePacketName [23:57:33]name=ofd_packets/00188540 [23:57:33]OFD Sender: To server: pG, [23:57:33]CommunicateWithHost lk.salyk.kg:30040 [23:57:33]ConnectInit lk.salyk.kg [23:57:33]written 0, free lines is 4095 [23:57:33]Connected sock=10 [23:57:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A4 CC 07 01 7C D8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 39 02 00 00 F4 03 04 00 EC 3B 18 67 0E 04 04 00 CD 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E0 02 00 35 04 06 00 DD 19 D9 F5 8D 99 7C BA 88 75 2F 0C A0 A7 [23:57:33]Write to MH i2c: 01 00 00 32 0B 3D [23:57:33]Write i2c OK [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: 01 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: 01 07 00 [23:57:33]MH_I2C_Read... [23:57:33]Read from MH i2c: 01 07 00 32 0B 00 00 00 00 00 7F 0C CF [23:57:33]RasterBufferAndPrint [23:57:33]line [23:57:33]line [23:57:33]line [23:57:33]line [23:57:33]line [23:57:33]written 0, free lines is 3204 [23:57:34]MH_Cut [23:57:34]Write to MH i2c: D1 01 00 39 0B 01 16 [23:57:34]Write i2c OK [23:57:34]MH_I2C_Read... [23:57:34]Read from MH i2c: D1 [23:57:34]MH_I2C_Read... [23:57:34]Read from MH i2c: D1 01 00 [23:57:34]MH_I2C_Read... [23:57:34]Read from MH i2c: D1 01 00 39 0B 00 15 [23:57:34]Write to MH i2c: 01 00 00 3A 0B 45 [23:57:34]Write i2c OK [23:57:34]MH_I2C_Read... [23:57:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 D1 15 47 00 D9 2C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7C E0 02 00 F4 03 04 00 D9 E5 17 67 B6 04 01 00 00 7E 49 62 81 19 37 0F 57 [23:57:34]CommunicateWithHost err = 0 [23:57:34]CheckOFDResponse [23:57:34]1017 (14) - 77093643461234 [23:57:34]1041 (16) - 0000000000965340 [23:57:34]1040 (4) - 188540 [23:57:34]1012 (4) - 22.10.2024 17:50 [23:57:34]1206 (1) - 0 [23:57:34]OFD Sender: Remove packet 188540 [23:57:34]ProducePacketName [23:57:34]name=ofd_packets/00188540 [23:57:34]NVStorageDeleteData [23:57:34]OFD Sender: No OFD packet to send [23:57:35]*** Cut start [23:57:35]*** Partial cut [23:57:35]*** CUTSNS_PIN = 1 [23:57:35]*** CUTSNS_PIN = 0 [23:57:35]*** Brake cut motor [23:57:35]Read from MH i2c: 01 [23:57:35]MH_I2C_Read... [23:57:35]*** Stop cut motor [23:57:35]*** Cut end [23:57:35]Read from MH i2c: 01 07 00 [23:57:35]MH_I2C_Read... [23:57:35]Read from MH i2c: 01 07 00 3A 0B 00 00 00 00 00 FF 0F 5A [23:57:35]process_action close_receipt done [23:57:35]requested_data is exist [23:57:35]produce_requested_data [23:57:35]requested_item fm.sn is exist - process it [23:57:35]wFMCommunicate request_size=4 [23:57:35]MH_SAM_APDU [23:57:35]CAPDU: 80 11 00 00 [23:57:35]Write to MH i2c: E2 08 00 3B 0B 80 11 00 00 00 00 00 00 C0 [23:57:35]Write i2c OK [23:57:35]MH_I2C_Read... [23:57:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:57:36]Read from MH i2c: E2 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 17 00 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 17 00 3B 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [23:57:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [23:57:36]wFMCommunicate OK [23:57:36]requested_item fd.num is exist - process it [23:57:36]SAM_PROTO_GetFieldsCounters [23:57:36]wFMCommunicate request_size=4 [23:57:36]MH_SAM_APDU [23:57:36]CAPDU: 80 13 00 00 [23:57:36]Write to MH i2c: E2 08 00 3C 0B 80 13 00 00 00 00 00 00 C3 [23:57:36]Write i2c OK [23:57:36]MH_I2C_Read... [23:57:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:57:36]Read from MH i2c: E2 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 62 00 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 62 00 3C 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 A7 [23:57:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [23:57:36]wFMCommunicate OK [23:57:36]SAM_PROTO_GetFieldsCounters done [23:57:36]requested_item shift.num is exist - process it [23:57:36]requested_item shift.opened is exist - process it [23:57:36]req_shift_opened [23:57:36]FM_GetShiftState [23:57:36]SAM_PROTO_GetShiftState [23:57:36]wFMCommunicate request_size=4 [23:57:36]MH_SAM_APDU [23:57:36]CAPDU: 80 13 01 00 [23:57:36]Write to MH i2c: E2 08 00 3D 0B 80 13 01 00 00 00 00 00 C5 [23:57:36]Write i2c OK [23:57:36]MH_I2C_Read... [23:57:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:57:36]Read from MH i2c: E2 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 0E 00 [23:57:36]MH_I2C_Read... [23:57:36]Read from MH i2c: E2 0E 00 3D 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BA [23:57:36]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [23:57:36]wFMCommunicate OK [23:57:36]SAM_PROTO_GetShiftState done [23:57:36]FM_GetShiftState done [23:57:36]req_shift_opened done [23:57:36]requested_item shift.open_date is exist - process it [23:57:36]req_shift_open_date [23:57:36]req_shift_open_date done [23:57:36]produce_requested_data done [23:57:36]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [23:57:36]process_action_free close_receipt [23:57:36]json_value_free [23:57:36]json_value_free done [23:57:36]process_json_proto returns [23:57:36]Send response to host [23:57:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [23:57:36]free response buf [23:57:36]execute_script done [23:57:36]execute_script returns [23:57:36]free content buf [23:57:36]Sock 7.Close socket [23:57:36]Sock 7.Thread stoped [23:57:39]OFD Sender: No OFD packet to send [23:57:44]OFD Sender: No OFD packet to send [23:57:49]OFD Sender: No OFD packet to send [23:57:54]OFD Sender: No OFD packet to send [23:57:59]OFD Sender: No OFD packet to send [23:58:04]OFD Sender: No OFD packet to send [23:58:09]OFD Sender: No OFD packet to send [23:58:14]OFD Sender: No OFD packet to send [23:58:19]OFD Sender: No OFD packet to send [23:58:24]OFD Sender: No OFD packet to send [23:58:29]OFD Sender: No OFD packet to send [23:58:34]OFD Sender: No OFD packet to send [23:58:39]OFD Sender: No OFD packet to send [23:58:44]OFD Sender: No OFD packet to send [23:58:49]OFD Sender: No OFD packet to send [23:58:54]OFD Sender: No OFD packet to send [23:58:59]OFD Sender: No OFD packet to send [23:59:05]OFD Sender: No OFD packet to send [23:59:10]OFD Sender: No OFD packet to send [23:59:15]OFD Sender: No OFD packet to send [23:59:20]OFD Sender: No OFD packet to send [23:59:25]OFD Sender: No OFD packet to send [23:59:30]OFD Sender: No OFD packet to send [23:59:35]OFD Sender: No OFD packet to send [23:59:40]OFD Sender: No OFD packet to send [23:59:45]OFD Sender: No OFD packet to send [23:59:50]OFD Sender: No OFD packet to send [23:59:55]OFD Sender: No OFD packet to send [00:00:00]OFD Sender: No OFD packet to send [00:00:05]OFD Sender: No OFD packet to send [00:00:10]OFD Sender: No OFD packet to send [00:00:15]OFD Sender: No OFD packet to send [00:00:20]OFD Sender: No OFD packet to send [00:00:25]OFD Sender: No OFD packet to send [00:00:30]OFD Sender: No OFD packet to send [00:00:35]OFD Sender: No OFD packet to send [00:00:40]OFD Sender: No OFD packet to send [00:00:45]OFD Sender: No OFD packet to send [00:00:50]OFD Sender: No OFD packet to send [00:00:55]OFD Sender: No OFD packet to send [00:01:00]OFD Sender: No OFD packet to send [00:01:05]OFD Sender: No OFD packet to send [00:01:10]OFD Sender: No OFD packet to send [00:01:15]OFD Sender: No OFD packet to send [00:01:20]OFD Sender: No OFD packet to send [00:01:25]OFD Sender: No OFD packet to send [00:01:30]OFD Sender: No OFD packet to send [00:01:35]OFD Sender: No OFD packet to send [00:01:40]OFD Sender: No OFD packet to send [00:01:45]OFD Sender: No OFD packet to send [00:01:50]OFD Sender: No OFD packet to send [00:01:55]OFD Sender: No OFD packet to send [00:02:00]OFD Sender: No OFD packet to send [00:02:05]OFD Sender: No OFD packet to send [00:02:10]OFD Sender: No OFD packet to send [00:02:15]OFD Sender: No OFD packet to send [00:02:20]OFD Sender: No OFD packet to send [00:02:25]OFD Sender: No OFD packet to send [00:02:30]OFD Sender: No OFD packet to send [00:02:35]OFD Sender: No OFD packet to send [00:02:40]OFD Sender: No OFD packet to send [00:02:45]OFD Sender: No OFD packet to send [00:02:51]OFD Sender: No OFD packet to send [00:02:56]OFD Sender: No OFD packet to send [00:03:01]OFD Sender: No OFD packet to send [00:03:06]OFD Sender: No OFD packet to send [00:03:11]OFD Sender: No OFD packet to send [00:03:16]OFD Sender: No OFD packet to send [00:03:21]OFD Sender: No OFD packet to send [00:03:26]OFD Sender: No OFD packet to send [00:03:31]OFD Sender: No OFD packet to send [00:03:36]OFD Sender: No OFD packet to send [00:03:41]OFD Sender: No OFD packet to send [00:03:46]OFD Sender: No OFD packet to send [00:03:51]OFD Sender: No OFD packet to send [00:03:56]OFD Sender: No OFD packet to send [00:04:01]OFD Sender: No OFD packet to send [00:04:06]OFD Sender: No OFD packet to send [00:04:11]OFD Sender: No OFD packet to send [00:04:16]OFD Sender: No OFD packet to send [00:04:21]OFD Sender: No OFD packet to send [00:04:26]OFD Sender: No OFD packet to send [00:04:31]OFD Sender: No OFD packet to send [00:04:36]OFD Sender: No OFD packet to send [00:04:41]OFD Sender: No OFD packet to send [00:04:46]OFD Sender: No OFD packet to send [00:04:51]OFD Sender: No OFD packet to send [00:04:56]OFD Sender: No OFD packet to send [00:05:01]OFD Sender: No OFD packet to send [00:05:06]OFD Sender: No OFD packet to send [00:05:11]OFD Sender: No OFD packet to send [00:05:16]OFD Sender: No OFD packet to send [00:05:21]OFD Sender: No OFD packet to send [00:05:26]OFD Sender: No OFD packet to send [00:05:31]OFD Sender: No OFD packet to send [00:05:36]OFD Sender: No OFD packet to send [00:05:41]OFD Sender: No OFD packet to send [00:05:46]OFD Sender: No OFD packet to send [00:05:51]OFD Sender: No OFD packet to send [00:05:56]OFD Sender: No OFD packet to send [00:06:01]OFD Sender: No OFD packet to send [00:06:06]OFD Sender: No OFD packet to send [00:06:11]OFD Sender: No OFD packet to send [00:06:16]OFD Sender: No OFD packet to send [00:06:21]OFD Sender: No OFD packet to send [00:06:26]OFD Sender: No OFD packet to send [00:06:31]OFD Sender: No OFD packet to send [00:06:36]OFD Sender: No OFD packet to send [00:06:42]OFD Sender: No OFD packet to send [00:06:47]OFD Sender: No OFD packet to send [00:06:52]OFD Sender: No OFD packet to send [00:06:57]OFD Sender: No OFD packet to send [00:07:02]OFD Sender: No OFD packet to send [00:07:07]OFD Sender: No OFD packet to send [00:07:12]OFD Sender: No OFD packet to send [00:07:17]OFD Sender: No OFD packet to send [00:07:22]OFD Sender: No OFD packet to send [00:07:27]OFD Sender: No OFD packet to send [00:07:32]OFD Sender: No OFD packet to send [00:07:37]OFD Sender: No OFD packet to send [00:07:40]accept exits with 9 [00:07:40]New connection [00:07:40]New thread 3066506596 created [00:07:40]Thread 3066649956 joined [00:07:40]Waiting for new connection... [00:07:40] Sock 9.Parse request [00:07:40]Sock 9.Check first char [00:07:40]Sock 9.First char is OK [00:07:40]request: POST /json_proto HTTP/1.0 [00:07:40]Method: POST [00:07:40]URL: /json_proto [00:07:40]Method is POST - this is cgi request [00:07:40]url: /json_proto [00:07:40]query_string will be loaded in cgi processing [00:07:40]execute_cgi json_proto POST (null) [00:07:40]execute_cgi path=json_proto method=POST [00:07:40]POST find Content-Length [00:07:40]Host: 172.17.42.131:8080 [00:07:40]Content-Length: 215 [00:07:40]Content-Type: application/json [00:07:40] [00:07:40]POST finish read [00:07:40]Found Content-Length = 215 [00:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:40]execute_script... [00:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:40]POST & json_proto [00:07:40]process_json_proto [00:07:40]json parsed OK: [00:07:40]protocol is kg_v1.0 [00:07:40]action value=get_value [00:07:40]process_action get_value [00:07:40]cmd_get_value [00:07:40]process_action get_value done [00:07:40]requested_data is exist [00:07:40]produce_requested_data [00:07:40]requested_item kkm.sn is exist - process it [00:07:40]requested_item kkm.ver is exist - process it [00:07:40]requested_item fm.sn is exist - process it [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 11 00 00 [00:07:40]Write to MH i2c: E2 08 00 3E 0B 80 11 00 00 00 00 00 00 C3 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 17 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 17 00 3E 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 11 [00:07:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:07:40]wFMCommunicate OK [00:07:40]requested_item fd.num is exist - process it [00:07:40]SAM_PROTO_GetFieldsCounters [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 13 00 00 [00:07:40]Write to MH i2c: E2 08 00 3F 0B 80 13 00 00 00 00 00 00 C6 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 62 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 62 00 3F 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 AA [00:07:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:40]wFMCommunicate OK [00:07:40]SAM_PROTO_GetFieldsCounters done [00:07:40]requested_item shift.num is exist - process it [00:07:40]requested_item shift.opened is exist - process it [00:07:40]req_shift_opened [00:07:40]FM_GetShiftState [00:07:40]SAM_PROTO_GetShiftState [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 13 01 00 [00:07:40]Write to MH i2c: E2 08 00 40 0B 80 13 01 00 00 00 00 00 C8 [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:40]Read from MH i2c: E2 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 0E 00 [00:07:40]MH_I2C_Read... [00:07:40]Read from MH i2c: E2 0E 00 40 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 BD [00:07:40]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:07:40]wFMCommunicate OK [00:07:40]SAM_PROTO_GetShiftState done [00:07:40]FM_GetShiftState done [00:07:40]req_shift_opened done [00:07:40]requested_item shift.open_date is exist - process it [00:07:40]req_shift_open_date [00:07:40]req_shift_open_date done [00:07:40]produce_requested_data done [00:07:40]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:07:40]process_action_free get_value [00:07:40]json_value_free [00:07:40]json_value_free done [00:07:40]process_json_proto returns [00:07:40]Send response to host [00:07:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:07:40]free response buf [00:07:40]execute_script done [00:07:40]execute_script returns [00:07:40]free content buf [00:07:40]Sock 9.Close socket [00:07:40]Sock 9.Thread stoped [00:07:40]accept exits with 7 [00:07:40]New connection [00:07:40]New thread 3066649956 created [00:07:40]Thread 3066506596 joined [00:07:40]Waiting for new connection... [00:07:40] Sock 7.Parse request [00:07:40]Sock 7.Check first char [00:07:40]Sock 7.First char is OK [00:07:40]request: POST /json_proto HTTP/1.0 [00:07:40]Method: POST [00:07:40]URL: /json_proto [00:07:40]Method is POST - this is cgi request [00:07:40]url: /json_proto [00:07:40]query_string will be loaded in cgi processing [00:07:40]execute_cgi json_proto POST (null) [00:07:40]execute_cgi path=json_proto method=POST [00:07:40]POST find Content-Length [00:07:40]Host: 172.17.42.131:8080 [00:07:40]Content-Length: 331 [00:07:40]Content-Type: application/json [00:07:40] [00:07:40]POST finish read [00:07:40]Found Content-Length = 331 [00:07:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:40]execute_script... [00:07:40]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:40]POST & json_proto [00:07:40]process_json_proto [00:07:40]json parsed OK: [00:07:40]protocol is kg_v1.0 [00:07:40]action value=get_value [00:07:40]process_action get_value [00:07:40]cmd_get_value [00:07:40]process_action get_value done [00:07:40]requested_data is exist [00:07:40]produce_requested_data [00:07:40]requested_item fm.sale.total is exist - process it [00:07:40]SAM_PROTO_GetFMData [00:07:40]wFMCommunicate request_size=4 [00:07:40]MH_SAM_APDU [00:07:40]CAPDU: 80 13 03 00 [00:07:40]Write to MH i2c: E2 08 00 41 0B 80 13 03 00 00 00 00 00 CB [00:07:40]Write i2c OK [00:07:40]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 41 0B 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 D5 [00:07:41]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 42 0B 80 17 00 00 00 00 00 00 CD [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 42 0B 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 9A [00:07:41]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 43 0B 80 17 00 00 00 00 00 00 CE [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:41]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:41]Read from MH i2c: E2 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 [00:07:41]MH_I2C_Read... [00:07:41]Read from MH i2c: E2 FD 00 43 0B 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A9 [00:07:41]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:41]wFMCommunicate OK [00:07:41]wFMCommunicate request_size=4 [00:07:41]MH_SAM_APDU [00:07:41]CAPDU: 80 17 00 00 [00:07:41]Write to MH i2c: E2 08 00 44 0B 80 17 00 00 00 00 00 00 CF [00:07:41]Write i2c OK [00:07:41]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 44 0B 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4D [00:07:42]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 45 0B 80 17 00 00 00 00 00 00 D0 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]OFD Sender: No OFD packet to send [00:07:42]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 E8 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 E8 00 45 0B 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 AE [00:07:42]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:42]wFMCommunicate OK [00:07:42]SAM_PROTO_GetFMData done [00:07:42]requested_item fm.sale_refund.total is exist - process it [00:07:42]requested_item fm.buy.total is exist - process it [00:07:42]requested_item shift.sale.total is exist - process it [00:07:42]SAM_PROTO_GetShiftData [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 13 02 00 [00:07:42]Write to MH i2c: E2 08 00 46 0B 80 13 02 00 00 00 00 00 CF [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:42]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:42]Read from MH i2c: E2 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 [00:07:42]MH_I2C_Read... [00:07:42]Read from MH i2c: E2 FD 00 46 0B 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 B5 [00:07:42]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:42]wFMCommunicate OK [00:07:42]wFMCommunicate request_size=4 [00:07:42]MH_SAM_APDU [00:07:42]CAPDU: 80 17 00 00 [00:07:42]Write to MH i2c: E2 08 00 47 0B 80 17 00 00 00 00 00 00 D2 [00:07:42]Write i2c OK [00:07:42]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 47 0B 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 E9 [00:07:43]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 48 0B 80 17 00 00 00 00 00 00 D3 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 48 0B 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 8F [00:07:43]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 49 0B 80 17 00 00 00 00 00 00 D4 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 FD 00 49 0B 00 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 90 00 4B [00:07:43]RAPDU: 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 90 00 [00:07:43]wFMCommunicate OK [00:07:43]wFMCommunicate request_size=4 [00:07:43]MH_SAM_APDU [00:07:43]CAPDU: 80 17 00 00 [00:07:43]Write to MH i2c: E2 08 00 4A 0B 80 17 00 00 00 00 00 00 D5 [00:07:43]Write i2c OK [00:07:43]MH_I2C_Read... [00:07:43]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:07:43]Read from MH i2c: E2 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 CF 00 [00:07:43]MH_I2C_Read... [00:07:43]Read from MH i2c: E2 CF 00 4A 0B 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 BC [00:07:44]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:44]wFMCommunicate OK [00:07:44]SAM_PROTO_GetShiftData done [00:07:44]requested_item shift.sale.total_cash is exist - process it [00:07:44]requested_item shift.sale_refund.total is exist - process it [00:07:44]requested_item shift.sale_refund.total_cash is exist - process it [00:07:44]requested_item shift.buy.total is exist - process it [00:07:44]requested_item shift.buy.total_cash is exist - process it [00:07:44]produce_requested_data done [00:07:44]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:44]process_action_free get_value [00:07:44]json_value_free [00:07:44]json_value_free done [00:07:44]process_json_proto returns [00:07:44]Send response to host [00:07:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:44]free response buf [00:07:44]execute_script done [00:07:44]execute_script returns [00:07:44]free content buf [00:07:44]Sock 7.Close socket [00:07:44]Sock 7.Thread stoped [00:07:44]accept exits with 9 [00:07:44]New connection [00:07:44]New thread 3066506596 created [00:07:44]Thread 3066649956 joined [00:07:44]Waiting for new connection... [00:07:44] Sock 9.Parse request [00:07:44]Sock 9.Check first char [00:07:44]Sock 9.First char is OK [00:07:44]request: POST /json_proto HTTP/1.0 [00:07:44]Method: POST [00:07:44]URL: /json_proto [00:07:44]Method is POST - this is cgi request [00:07:44]url: /json_proto [00:07:44]query_string will be loaded in cgi processing [00:07:44]execute_cgi json_proto POST (null) [00:07:44]execute_cgi path=json_proto method=POST [00:07:44]POST find Content-Length [00:07:44]Host: 172.17.42.131:8080 [00:07:44]Content-Length: 331 [00:07:44]Content-Type: application/json [00:07:44] [00:07:44]POST finish read [00:07:44]Found Content-Length = 331 [00:07:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:44]execute_script... [00:07:44]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:07:44]POST & json_proto [00:07:44]process_json_proto [00:07:44]json parsed OK: [00:07:44]protocol is kg_v1.0 [00:07:44]action value=get_value [00:07:44]process_action get_value [00:07:44]cmd_get_value [00:07:44]process_action get_value done [00:07:44]requested_data is exist [00:07:44]produce_requested_data [00:07:44]requested_item fm.sale.total is exist - process it [00:07:44]SAM_PROTO_GetFMData [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 13 03 00 [00:07:44]Write to MH i2c: E2 08 00 4B 0B 80 13 03 00 00 00 00 00 D5 [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 4B 0B 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 DF [00:07:44]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:07:44]wFMCommunicate OK [00:07:44]wFMCommunicate request_size=4 [00:07:44]MH_SAM_APDU [00:07:44]CAPDU: 80 17 00 00 [00:07:44]Write to MH i2c: E2 08 00 4C 0B 80 17 00 00 00 00 00 00 D7 [00:07:44]Write i2c OK [00:07:44]MH_I2C_Read... [00:07:44]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:44]Read from MH i2c: E2 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 [00:07:44]MH_I2C_Read... [00:07:44]Read from MH i2c: E2 FD 00 4C 0B 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 A4 [00:07:45]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 4D 0B 80 17 00 00 00 00 00 00 D8 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 4D 0B 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:07:45]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 4E 0B 80 17 00 00 00 00 00 00 D9 [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:45]Read from MH i2c: E2 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 [00:07:45]MH_I2C_Read... [00:07:45]Read from MH i2c: E2 FD 00 4E 0B 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 57 [00:07:45]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:45]wFMCommunicate OK [00:07:45]wFMCommunicate request_size=4 [00:07:45]MH_SAM_APDU [00:07:45]CAPDU: 80 17 00 00 [00:07:45]Write to MH i2c: E2 08 00 4F 0B 80 17 00 00 00 00 00 00 DA [00:07:45]Write i2c OK [00:07:45]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 E8 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 E8 00 4F 0B 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 B8 [00:07:46]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:46]wFMCommunicate OK [00:07:46]SAM_PROTO_GetFMData done [00:07:46]requested_item fm.sale_refund.total is exist - process it [00:07:46]requested_item fm.buy.total is exist - process it [00:07:46]requested_item shift.sale.total is exist - process it [00:07:46]SAM_PROTO_GetShiftData [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 13 02 00 [00:07:46]Write to MH i2c: E2 08 00 50 0B 80 13 02 00 00 00 00 00 D9 [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 50 0B 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 BF [00:07:46]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:46]wFMCommunicate OK [00:07:46]wFMCommunicate request_size=4 [00:07:46]MH_SAM_APDU [00:07:46]CAPDU: 80 17 00 00 [00:07:46]Write to MH i2c: E2 08 00 51 0B 80 17 00 00 00 00 00 00 DC [00:07:46]Write i2c OK [00:07:46]MH_I2C_Read... [00:07:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:46]Read from MH i2c: E2 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 [00:07:46]MH_I2C_Read... [00:07:46]Read from MH i2c: E2 FD 00 51 0B 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 F3 [00:07:47]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 52 0B 80 17 00 00 00 00 00 00 DD [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]OFD Sender: No OFD packet to send [00:07:47]Read from MH i2c: E2 FD 00 52 0B 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 99 [00:07:47]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 53 0B 80 17 00 00 00 00 00 00 DE [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:47]Read from MH i2c: E2 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 [00:07:47]MH_I2C_Read... [00:07:47]Read from MH i2c: E2 FD 00 53 0B 00 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 90 00 55 [00:07:47]RAPDU: 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 90 00 [00:07:47]wFMCommunicate OK [00:07:47]wFMCommunicate request_size=4 [00:07:47]MH_SAM_APDU [00:07:47]CAPDU: 80 17 00 00 [00:07:47]Write to MH i2c: E2 08 00 54 0B 80 17 00 00 00 00 00 00 DF [00:07:47]Write i2c OK [00:07:47]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 CF 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 CF 00 54 0B 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C6 [00:07:48]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetShiftData done [00:07:48]requested_item shift.sale.total_cash is exist - process it [00:07:48]requested_item shift.sale_refund.total is exist - process it [00:07:48]requested_item shift.sale_refund.total_cash is exist - process it [00:07:48]requested_item shift.buy.total is exist - process it [00:07:48]requested_item shift.buy.total_cash is exist - process it [00:07:48]produce_requested_data done [00:07:48]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:07:48]process_action_free get_value [00:07:48]json_value_free [00:07:48]json_value_free done [00:07:48]process_json_proto returns [00:07:48]Send response to host [00:07:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:07:48]free response buf [00:07:48]execute_script done [00:07:48]execute_script returns [00:07:48]free content buf [00:07:48]Sock 9.Close socket [00:07:48]Sock 9.Thread stoped [00:07:48]accept exits with 7 [00:07:48]New connection [00:07:48]New thread 3066649956 created [00:07:48]Thread 3066506596 joined [00:07:48]Waiting for new connection... [00:07:48] Sock 7.Parse request [00:07:48]Sock 7.Check first char [00:07:48]Sock 7.First char is OK [00:07:48]request: POST /json_proto HTTP/1.0 [00:07:48]Method: POST [00:07:48]URL: /json_proto [00:07:48]Method is POST - this is cgi request [00:07:48]url: /json_proto [00:07:48]query_string will be loaded in cgi processing [00:07:48]execute_cgi json_proto POST (null) [00:07:48]execute_cgi path=json_proto method=POST [00:07:48]POST find Content-Length [00:07:48]Host: 172.17.42.131:8080 [00:07:48]Content-Length: 282 [00:07:48]Content-Type: application/json [00:07:48] [00:07:48]POST finish read [00:07:48]Found Content-Length = 282 [00:07:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:48]execute_script... [00:07:48]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:07:48]POST & json_proto [00:07:48]process_json_proto [00:07:48]json parsed OK: [00:07:48]protocol is kg_v1.0 [00:07:48]action value=x_report [00:07:48]process_action x_report [00:07:48]cmd_x_report [00:07:48]MH_GetDate [00:07:48]Write to MH i2c: F0 00 00 55 0B 4F [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: F0 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: F0 09 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: F0 09 00 55 0B 00 55 3E 18 67 A0 18 CA 66 52 [00:07:48]GetLastDocTimeStamp 1729641452 [00:07:48]current date 1729642069 [00:07:48]FM_GetShiftState [00:07:48]SAM_PROTO_GetShiftState [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 13 01 00 [00:07:48]Write to MH i2c: E2 08 00 56 0B 80 13 01 00 00 00 00 00 DE [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 0E 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 0E 00 56 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 D3 [00:07:48]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetShiftState done [00:07:48]FM_GetShiftState done [00:07:48]KKMCreateXReportDocument [00:07:48]Load OK [00:07:48]Malloc new data [00:07:48]MH_GetDate [00:07:48]Write to MH i2c: F0 00 00 57 0B 51 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: F0 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: F0 09 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: F0 09 00 57 0B 00 55 3E 18 67 A0 18 CA 66 54 [00:07:48]Malloc new data [00:07:48]Malloc new data [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 11 00 00 [00:07:48]Write to MH i2c: E2 08 00 58 0B 80 11 00 00 00 00 00 00 DD [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 17 00 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 17 00 58 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2B [00:07:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetFieldsCounters [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 13 00 00 [00:07:48]Write to MH i2c: E2 08 00 59 0B 80 13 00 00 00 00 00 00 E0 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:48]Read from MH i2c: E2 [00:07:48]MH_I2C_Read... [00:07:48]Read from MH i2c: E2 62 00 [00:07:48]MH_I2C_Read... [00:07:48]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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 C4 [00:07:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:48]wFMCommunicate OK [00:07:48]SAM_PROTO_GetFieldsCounters done [00:07:48]Malloc new data [00:07:48]Malloc new data [00:07:48]Malloc new data [00:07:48]KKMCreateXReportDocument OK [00:07:48]KKMSetXReportData OK [00:07:48]KKMPrepareXReportFMData [00:07:48]SAM_PROTO_GetShiftData [00:07:48]wFMCommunicate request_size=4 [00:07:48]MH_SAM_APDU [00:07:48]CAPDU: 80 13 02 00 [00:07:48]Write to MH i2c: E2 08 00 5A 0B 80 13 02 00 00 00 00 00 E3 [00:07:48]Write i2c OK [00:07:48]MH_I2C_Read... [00:07:48]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 5A 0B 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 C9 [00:07:49]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 5B 0B 80 17 00 00 00 00 00 00 E6 [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 5B 0B 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 FD [00:07:49]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:07:49]wFMCommunicate OK [00:07:49]wFMCommunicate request_size=4 [00:07:49]MH_SAM_APDU [00:07:49]CAPDU: 80 17 00 00 [00:07:49]Write to MH i2c: E2 08 00 5C 0B 80 17 00 00 00 00 00 00 E7 [00:07:49]Write i2c OK [00:07:49]MH_I2C_Read... [00:07:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:49]Read from MH i2c: E2 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 [00:07:49]MH_I2C_Read... [00:07:49]Read from MH i2c: E2 FD 00 5C 0B 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 A3 [00:07:49]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 5D 0B 80 17 00 00 00 00 00 00 E8 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 FD 00 5D 0B 00 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 90 00 5F [00:07:50]RAPDU: 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 90 00 [00:07:50]wFMCommunicate OK [00:07:50]wFMCommunicate request_size=4 [00:07:50]MH_SAM_APDU [00:07:50]CAPDU: 80 17 00 00 [00:07:50]Write to MH i2c: E2 08 00 5E 0B 80 17 00 00 00 00 00 00 E9 [00:07:50]Write i2c OK [00:07:50]MH_I2C_Read... [00:07:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:07:50]Read from MH i2c: E2 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 CF 00 [00:07:50]MH_I2C_Read... [00:07:50]Read from MH i2c: E2 CF 00 5E 0B 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D0 [00:07:50]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:50]wFMCommunicate OK [00:07:50]SAM_PROTO_GetShiftData done [00:07:50]1194 (1198) - счетчики итогов смены [00:07:50] 1134 (4) - 569 - количество чеков со всеми признаками расчетов [00:07:50] 1129 (159) - счетчики операций «приход» [00:07:50] 1135 (4) - 569 - количество чеков по признаку расчетов [00:07:50] 1201 (4) - 870563.00 - общая итоговая сумма в чеках [00:07:50] 1136 (4) - 683557.00 - итоговая сумма в чеках наличными [00:07:50] 1138 (4) - 187006.00 - итоговая сумма в чеках безналичными [00:07:50] 1024 (123) - суммы налогов [00:07:50] 1006 (9) - суммы НДС [00:07:50] 1010 (1) - 0% - код ставки НДС [00:07:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:50] 1006 (12) - суммы НДС [00:07:50] 1010 (1) - 12% - код ставки НДС [00:07:50] 1011 (3) - 92466.75 - сумма НДС по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 0% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (12) - суммы НСП [00:07:50] 1014 (1) - 1% - код ставки НСП [00:07:50] 1015 (3) - 7705.15 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 2% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 3% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 5% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 0,50% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 1,50% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1130 (141) - счетчики операций «возврат прихода» [00:07:50] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:50] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:50] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:50] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:50] 1024 (117) - суммы налогов [00:07:50] 1006 (9) - суммы НДС [00:07:50] 1010 (1) - 0% - код ставки НДС [00:07:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:50] 1006 (9) - суммы НДС [00:07:50] 1010 (1) - 12% - код ставки НДС [00:07:50] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 0% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 1% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 2% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 3% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 5% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:50] 1007 (9) - суммы НСП [00:07:50] 1014 (1) - 0,50% - код ставки НСП [00:07:50] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 1,50% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1131 (141) - счетчики операций «расход» [00:07:51] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:51] 1024 (117) - суммы налогов [00:07:51] 1006 (9) - суммы НДС [00:07:51] 1010 (1) - 0% - код ставки НДС [00:07:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:51] 1006 (9) - суммы НДС [00:07:51] 1010 (1) - 12% - код ставки НДС [00:07:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 0% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 1% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 2% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 3% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 5% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 0,50% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 1,50% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1132 (141) - счетчики операций «возврат расхода» [00:07:51] 1135 (4) - 0 - количество чеков по признаку расчетов [00:07:51] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:07:51] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:07:51] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:07:51] 1024 (117) - суммы налогов [00:07:51] 1006 (9) - суммы НДС [00:07:51] 1010 (1) - 0% - код ставки НДС [00:07:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:51] 1006 (9) - суммы НДС [00:07:51] 1010 (1) - 12% - код ставки НДС [00:07:51] 1011 (0) - 0.00 - сумма НДС по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 0% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 1% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 2% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 3% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 5% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 0,50% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1007 (9) - суммы НСП [00:07:51] 1014 (1) - 1,50% - код ставки НСП [00:07:51] 1015 (0) - 0.00 - сумма НСП по ставке [00:07:51] 1133 (588) - - счетчики коррекции - не используются [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1194 (04AA) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1134 (046E) [00:07:51]Malloc new data [00:07:51]Processing tag 1129 (0469) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1135 (046F) [00:07:51]Malloc new data [00:07:51]Processing tag 1201 (04B1) [00:07:51]Malloc new data [00:07:51]Processing tag 1136 (0470) [00:07:51]Malloc new data [00:07:51]Processing tag 1138 (0472) [00:07:51]Malloc new data [00:07:51]Processing tag 1024 (0400) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]SetTLVBufToDocument err=0 [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1130 (046A) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1135 (046F) [00:07:51]Malloc new data [00:07:51]Processing tag 1201 (04B1) [00:07:51]Malloc new data [00:07:51]Processing tag 1136 (0470) [00:07:51]Malloc new data [00:07:51]Processing tag 1138 (0472) [00:07:51]Malloc new data [00:07:51]Processing tag 1024 (0400) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]SetTLVBufToDocument err=0 [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1131 (046B) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1135 (046F) [00:07:51]Malloc new data [00:07:51]Processing tag 1201 (04B1) [00:07:51]Malloc new data [00:07:51]Processing tag 1136 (0470) [00:07:51]Malloc new data [00:07:51]Processing tag 1138 (0472) [00:07:51]Malloc new data [00:07:51]Processing tag 1024 (0400) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]SetTLVBufToDocument err=0 [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1132 (046C) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1135 (046F) [00:07:51]Malloc new data [00:07:51]Processing tag 1201 (04B1) [00:07:51]Malloc new data [00:07:51]Processing tag 1136 (0470) [00:07:51]Malloc new data [00:07:51]Processing tag 1138 (0472) [00:07:51]Malloc new data [00:07:51]Processing tag 1024 (0400) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1006 (03EE) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1010 (03F2) [00:07:51]Malloc new data [00:07:51]Processing tag 1011 (03F3) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:51]Processing tag 1015 (03F7) [00:07:51]Malloc new data [00:07:51]SetTLVBufToDocument err=0 [00:07:51]Processing tag 1007 (03EF) [00:07:51]Load OK [00:07:51]SetTLVBufToDocument [00:07:51]Processing tag 1014 (03F6) [00:07:51]Malloc new data [00:07:52]Processing tag 1015 (03F7) [00:07:52]Malloc new data [00:07:52]SetTLVBufToDocument err=0 [00:07:52]SetTLVBufToDocument err=0 [00:07:52]SetTLVBufToDocument err=0 [00:07:52]Processing tag 1133 (046D) [00:07:52]Malloc new data [00:07:52]SetTLVBufToDocument err=0 [00:07:52]SetTLVBufToDocument err=0 [00:07:52]Malloc new data [00:07:52]SAM_PROTO_GetFMData [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 13 03 00 [00:07:52]Write to MH i2c: E2 08 00 5F 0B 80 13 03 00 00 00 00 00 E9 [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:52]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:07:52]Read from MH i2c: E2 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 [00:07:52]MH_I2C_Read... [00:07:52]Read from MH i2c: E2 FD 00 5F 0B 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 F3 [00:07:52]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB OFD Sender: No OFD packet to send [00:07:52]FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:07:52]wFMCommunicate OK [00:07:52]wFMCommunicate request_size=4 [00:07:52]MH_SAM_APDU [00:07:52]CAPDU: 80 17 00 00 [00:07:52]Write to MH i2c: E2 08 00 60 0B 80 17 00 00 00 00 00 00 EB [00:07:52]Write i2c OK [00:07:52]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 60 0B 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 B8 [00:07:53]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 17 00 00 [00:07:53]Write to MH i2c: E2 08 00 61 0B 80 17 00 00 00 00 00 00 EC [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:53]Read from MH i2c: E2 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 [00:07:53]MH_I2C_Read... [00:07:53]Read from MH i2c: E2 FD 00 61 0B 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C7 [00:07:53]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:53]wFMCommunicate OK [00:07:53]wFMCommunicate request_size=4 [00:07:53]MH_SAM_APDU [00:07:53]CAPDU: 80 17 00 00 [00:07:53]Write to MH i2c: E2 08 00 62 0B 80 17 00 00 00 00 00 00 ED [00:07:53]Write i2c OK [00:07:53]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 FD 00 62 0B 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6B [00:07:54]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:07:54]wFMCommunicate OK [00:07:54]wFMCommunicate request_size=4 [00:07:54]MH_SAM_APDU [00:07:54]CAPDU: 80 17 00 00 [00:07:54]Write to MH i2c: E2 08 00 63 0B 80 17 00 00 00 00 00 00 EE [00:07:54]Write i2c OK [00:07:54]MH_I2C_Read... [00:07:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:07:54]Read from MH i2c: E2 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 E8 00 [00:07:54]MH_I2C_Read... [00:07:54]Read from MH i2c: E2 E8 00 63 0B 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CC [00:07:54]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:07:54]wFMCommunicate OK [00:07:54]SAM_PROTO_GetFMData done [00:07:54]FM_GetFMData:85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [00:07:55]oper:6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:55]total:4B 94 2F BD 06 [00:07:55]Malloc new data [00:07:55]oper:6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [00:07:55]total:18 60 DC 31 01 [00:07:55]Malloc new data [00:07:55]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 [00:07:55]total: [00:07:55]Malloc new data [00:07:55]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 [00:07:55]total: [00:07:55]Malloc new data [00:07:55]KKMPrepareXReportFMData err=0 [00:07:55]Х отчет ИНН: 02508201610067 Кассир: Суйунбай уулу И. 23.10.2024 00:07 Смена: 266 РНМ: 0000000000100030 ЗНМ: 0300000155 СНО: Общий режим Всего чеков: 569 ИТОГИ ПРИХОД Чеков: 569 Общий итог: 870563.00 Итого наличными: 683557.00 Итого безнал.: 187006.00 НДС 0% : 0.00 НДС 12% : 92466.75 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 7705.15 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 683557.00 НС Приход: 289438157.55 НС Возвр.Прихода: 51314934.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000965340 [00:07:55]StoreToDocumentArchive [00:07:55]MH_GetDate [00:07:55]Write to MH i2c: F0 00 00 64 0B 5E [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 09 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: F0 09 00 64 0B 00 5D 3E 18 67 A0 18 CA 66 69 [00:07:55]shift 266 fd 1729642077 [00:07:55]Create dir for shift 0266 [00:07:55]save to /storage/0266/doc_1729642077 [00:07:55]save last doc name /storage/0266/doc_1729642077 to /storage/kkm_last_doc_name [00:07:55]save OK [00:07:55]Clear old archive folders... [00:07:55]NVStorageSaveData kkm_last_timestamp [00:07:55]File name is /storage/kkm_last_timestamp [00:07:55]Write 4 bytes [00:07:55]NVStorageSaveData done [00:07:55]ExternCall_PrintAddStr [00:07:55]wPrintStart [00:07:55]Write to MH i2c: 01 00 00 65 0B 70 [00:07:55]Write i2c OK [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: 01 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: 01 07 00 [00:07:55]MH_I2C_Read... [00:07:55]Read from MH i2c: 01 07 00 65 0B 00 00 00 00 00 FF 0F 85 [00:07:55]RasterBufferAndPrint [00:07:55]line Х отчет [00:07:55]line ИНН: 02508201610067 [00:07:55]line Кассир: Суйунбай уулу И. [00:07:55]line 23.10.2024 00:07 [00:07:55]line Смена: 266 [00:07:55]line РНМ: 0000000000100030 [00:07:55]line ЗНМ: 0300000155 [00:07:55]line СНО: Общий режим [00:07:55]line Всего чеков: 569 [00:07:55]line ИТОГИ ПРИХОД [00:07:55]line Чеков: 569 [00:07:55]line Общий итог: 870563.00 [00:07:55]line Итого наличными: 683557.00 [00:07:55]line Итого безнал.: 187006.00 [00:07:55]line НДС 0% : 0.00 [00:07:55]line НДС 12% : 92466.75 [00:07:55]line НСП 0% : 0.00 [00:07:55]line НСП 1,50% : 0.00 [00:07:55]line НСП 0,50% : 0.00 [00:07:55]line НСП 5% : 0.00 [00:07:55]line НСП 3% : 0.00 [00:07:55]line НСП 2% : 0.00 [00:07:55]line НСП 1% : 7705.15 [00:07:55]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:07:55]line Чеков: 0 [00:07:55]line Общий итог: 0.00 [00:07:55]line Итого наличными: 0.00 [00:07:55]line Итого безнал.: 0.00 [00:07:55]line НДС 0% : 0.00 [00:07:55]line НДС 12% : 0.00 [00:07:55]line НСП 0% : 0.00 [00:07:55]line НСП 1,50% : 0.00 [00:07:55]line НСП 0,50% : 0.00 [00:07:55]line НСП 5% : 0.00 [00:07:55]line НСП 3% : 0.00 [00:07:55]line НСП 2% : 0.00 [00:07:55]line НСП 1% : 0.00 [00:07:55]line ИТОГИ РАСХОД [00:07:55]line Чеков: 0 [00:07:55]line Общий итог: 0.00 [00:07:55]line Итого наличными: 0.00 [00:07:55]line Итого безнал.: 0.00 [00:07:55]line НДС 0% : 0.00 [00:07:55]line НДС 12% : 0.00 [00:07:55]line НСП 0% : 0.00 [00:07:55]line НСП 1,50% : 0.00 [00:07:55]line НСП 0,50% : 0.00 [00:07:55]line НСП 5% : 0.00 [00:07:55]line НСП 3% : 0.00 [00:07:55]line НСП 2% : 0.00 [00:07:55]line НСП 1% : 0.00 [00:07:55]line ИТОГИ ВОЗВРАТ РАСХОДА [00:07:55]line Чеков: 0 [00:07:55]line Общий итог: 0.00 [00:07:55]line Итого наличными: 0.00 [00:07:55]line Итого безнал.: 0.00 [00:07:55]line НДС 0% : 0.00 [00:07:55]line НДС 12% : 0.00 [00:07:55]line НСП 0% : 0.00 [00:07:55]line НСП 1,50% : 0.00 [00:07:55]line НСП 0,50% : 0.00 [00:07:55]line НСП 5% : 0.00 [00:07:55]line НСП 3% : 0.00 [00:07:55]line НСП 2% : 0.00 [00:07:55]line НСП 1% : 0.00 [00:07:55]line Сумма внесений: 0.00 [00:07:55]line Сумма выплат: 0.00 [00:07:55]line Нал. в кассе: 683557.00 [00:07:55]line НС Приход: 289438157.55 [00:07:55]line НС Возвр.Прихода: 51314934.00 [00:07:55]line НС Расход: 0.00 [00:07:55]line НС Возвр.Расхода: 0.00 [00:07:55]line ФМ: 0000000000965340 [00:07:55]written 0, free lines is 4095 [00:07:56]Write to MH i2c: 01 00 00 B1 0B BC [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: 01 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: 01 07 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: 01 07 00 B1 0B 00 00 00 00 00 5F 09 2B [00:07:56]RasterBufferAndPrint [00:07:56]line [00:07:56]line [00:07:56]line [00:07:56]line [00:07:56]line [00:07:56]written 0, free lines is 2425 [00:07:56]MH_Cut [00:07:56]Write to MH i2c: D1 01 00 B8 0B 01 95 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: D1 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: D1 01 00 [00:07:56]MH_I2C_Read... [00:07:56]Read from MH i2c: D1 01 00 B8 0B 00 94 [00:07:56]Write to MH i2c: 01 00 00 B9 0B C4 [00:07:56]Write i2c OK [00:07:56]MH_I2C_Read... [00:07:57]OFD Sender: No OFD packet to send [00:07:58]*** Cut start [00:07:58]*** Partial cut [00:07:58]*** CUTSNS_PIN = 1 [00:07:58]*** CUTSNS_PIN = 0 [00:07:58]*** Brake cut motor [00:07:59]Read from MH i2c: 01 [00:07:59]MH_I2C_Read... [00:07:59]*** Stop cut motor [00:07:59]*** Cut end [00:07:59]Read from MH i2c: 01 07 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: 01 07 00 B9 0B 00 00 00 00 00 FF 0F D9 [00:07:59]process_action x_report done [00:07:59]requested_data is exist [00:07:59]produce_requested_data [00:07:59]requested_item fd.num is exist - process it [00:07:59]SAM_PROTO_GetFieldsCounters [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 00 00 [00:07:59]Write to MH i2c: E2 08 00 BA 0B 80 13 00 00 00 00 00 00 41 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:59]Read from MH i2c: E2 62 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 62 00 BA 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 25 [00:07:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetFieldsCounters done [00:07:59]requested_item shift.num is exist - process it [00:07:59]requested_item shift.opened is exist - process it [00:07:59]req_shift_opened [00:07:59]FM_GetShiftState [00:07:59]SAM_PROTO_GetShiftState [00:07:59]wFMCommunicate request_size=4 [00:07:59]MH_SAM_APDU [00:07:59]CAPDU: 80 13 01 00 [00:07:59]Write to MH i2c: E2 08 00 BB 0B 80 13 01 00 00 00 00 00 43 [00:07:59]Write i2c OK [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 [00:07:59]MH_I2C_Read... [00:07:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:59]Read from MH i2c: E2 0E 00 [00:07:59]MH_I2C_Read... [00:07:59]Read from MH i2c: E2 0E 00 BB 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 38 [00:07:59]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:07:59]wFMCommunicate OK [00:07:59]SAM_PROTO_GetShiftState done [00:07:59]FM_GetShiftState done [00:07:59]req_shift_opened done [00:07:59]requested_item shift.open_date is exist - process it [00:07:59]req_shift_open_date [00:07:59]req_shift_open_date done [00:07:59]produce_requested_data done [00:07:59]produce_requested_data return {"fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:07:59]process_action_free x_report [00:07:59]json_value_free [00:07:59]json_value_free done [00:07:59]process_json_proto returns [00:07:59]Send response to host [00:07:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:07:59]free response buf [00:07:59]execute_script done [00:07:59]execute_script returns [00:07:59]free content buf [00:07:59]Sock 7.Close socket [00:07:59]Sock 7.Thread stoped [00:08:02]OFD Sender: No OFD packet to send [00:08:07]OFD Sender: No OFD packet to send [00:08:12]OFD Sender: No OFD packet to send [00:08:17]OFD Sender: No OFD packet to send [00:08:21]accept exits with 9 [00:08:21]New connection [00:08:21]New thread 3066506596 created [00:08:21]Thread 3066649956 joined [00:08:21]Waiting for new connection... [00:08:21] Sock 9.Parse request [00:08:21]Sock 9.Check first char [00:08:21]Sock 9.First char is OK [00:08:21]request: POST /json_proto HTTP/1.0 [00:08:21]Method: POST [00:08:21]URL: /json_proto [00:08:21]Method is POST - this is cgi request [00:08:21]url: /json_proto [00:08:21]query_string will be loaded in cgi processing [00:08:21]execute_cgi json_proto POST (null) [00:08:21]execute_cgi path=json_proto method=POST [00:08:21]POST find Content-Length [00:08:21]Host: 172.17.42.131:8080 [00:08:21]Content-Length: 215 [00:08:21]Content-Type: application/json [00:08:21] [00:08:21]POST finish read [00:08:21]Found Content-Length = 215 [00:08:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:21]execute_script... [00:08:21]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:21]POST & json_proto [00:08:21]process_json_proto [00:08:21]json parsed OK: [00:08:21]protocol is kg_v1.0 [00:08:21]action value=get_value [00:08:21]process_action get_value [00:08:21]cmd_get_value [00:08:21]process_action get_value done [00:08:21]requested_data is exist [00:08:21]produce_requested_data [00:08:21]requested_item kkm.sn is exist - process it [00:08:21]requested_item kkm.ver is exist - process it [00:08:21]requested_item fm.sn is exist - process it [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 11 00 00 [00:08:21]Write to MH i2c: E2 08 00 BC 0B 80 11 00 00 00 00 00 00 41 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:21]Read from MH i2c: E2 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 17 00 [00:08:21]MH_I2C_Read... [00:08:21]Read from MH i2c: E2 17 00 BC 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8F [00:08:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:08:21]wFMCommunicate OK [00:08:21]requested_item fd.num is exist - process it [00:08:21]SAM_PROTO_GetFieldsCounters [00:08:21]wFMCommunicate request_size=4 [00:08:21]MH_SAM_APDU [00:08:21]CAPDU: 80 13 00 00 [00:08:21]Write to MH i2c: E2 08 00 BD 0B 80 13 00 00 00 00 00 00 44 [00:08:21]Write i2c OK [00:08:21]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 62 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 62 00 BD 0B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 28 [00:08:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7C E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3A 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:22]wFMCommunicate OK [00:08:22]SAM_PROTO_GetFieldsCounters done [00:08:22]requested_item shift.num is exist - process it [00:08:22]requested_item shift.opened is exist - process it [00:08:22]req_shift_opened [00:08:22]FM_GetShiftState [00:08:22]SAM_PROTO_GetShiftState [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 13 01 00 [00:08:22]Write to MH i2c: E2 08 00 BE 0B 80 13 01 00 00 00 00 00 46 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 0E 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 0E 00 BE 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 3B [00:08:22]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:08:22]wFMCommunicate OK [00:08:22]SAM_PROTO_GetShiftState done [00:08:22]FM_GetShiftState done [00:08:22]req_shift_opened done [00:08:22]requested_item shift.open_date is exist - process it [00:08:22]req_shift_open_date [00:08:22]req_shift_open_date done [00:08:22]produce_requested_data done [00:08:22]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094} [00:08:22]process_action_free get_value [00:08:22]json_value_free [00:08:22]json_value_free done [00:08:22]process_json_proto returns [00:08:22]Send response to host [00:08:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188540,"shift.num":461,"shift.opened":1,"shift.open_date":1729556094}}} [00:08:22]free response buf [00:08:22]execute_script done [00:08:22]execute_script returns [00:08:22]free content buf [00:08:22]Sock 9.Close socket [00:08:22]Sock 9.Thread stoped [00:08:22]accept exits with 7 [00:08:22]New connection [00:08:22]New thread 3066649956 created [00:08:22]Thread 3066506596 joined [00:08:22]Waiting for new connection... [00:08:22] Sock 7.Parse request [00:08:22]Sock 7.Check first char [00:08:22]Sock 7.First char is OK [00:08:22]request: POST /json_proto HTTP/1.0 [00:08:22]Method: POST [00:08:22]URL: /json_proto [00:08:22]Method is POST - this is cgi request [00:08:22]url: /json_proto [00:08:22]query_string will be loaded in cgi processing [00:08:22]execute_cgi json_proto POST (null) [00:08:22]execute_cgi path=json_proto method=POST [00:08:22]POST find Content-Length [00:08:22]Host: 172.17.42.131:8080 [00:08:22]Content-Length: 331 [00:08:22]Content-Type: application/json [00:08:22] [00:08:22]POST finish read [00:08:22]Found Content-Length = 331 [00:08: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" ] } } [00:08:22]execute_script... [00:08: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" ] } } [00:08:22]POST & json_proto [00:08:22]process_json_proto [00:08:22]json parsed OK: [00:08:22]protocol is kg_v1.0 [00:08:22]action value=get_value [00:08:22]process_action get_value [00:08:22]cmd_get_value [00:08:22]process_action get_value done [00:08:22]requested_data is exist [00:08:22]produce_requested_data [00:08:22]requested_item fm.sale.total is exist - process it [00:08:22]SAM_PROTO_GetFMData [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 13 03 00 [00:08:22]Write to MH i2c: E2 08 00 BF 0B 80 13 03 00 00 00 00 00 49 [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:22]Read from MH i2c: E2 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 [00:08:22]MH_I2C_Read... [00:08:22]Read from MH i2c: E2 FD 00 BF 0B 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 53 [00:08:22]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:08:22]wFMCommunicate OK [00:08:22]wFMCommunicate request_size=4 [00:08:22]MH_SAM_APDU [00:08:22]CAPDU: 80 17 00 00 [00:08:22]Write to MH i2c: E2 08 00 C0 0B 80 17 00 00 00 00 00 00 4B [00:08:22]Write i2c OK [00:08:22]MH_I2C_Read... [00:08:22]OFD Sender: No OFD packet to send [00:08:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 C0 0B 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 18 [00:08:23]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 17 00 00 [00:08:23]Write to MH i2c: E2 08 00 C1 0B 80 17 00 00 00 00 00 00 4C [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 C1 0B 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 27 [00:08:23]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:23]wFMCommunicate OK [00:08:23]wFMCommunicate request_size=4 [00:08:23]MH_SAM_APDU [00:08:23]CAPDU: 80 17 00 00 [00:08:23]Write to MH i2c: E2 08 00 C2 0B 80 17 00 00 00 00 00 00 4D [00:08:23]Write i2c OK [00:08:23]MH_I2C_Read... [00:08:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:23]Read from MH i2c: E2 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 [00:08:23]MH_I2C_Read... [00:08:23]Read from MH i2c: E2 FD 00 C2 0B 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 CB [00:08:23]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:24]wFMCommunicate OK [00:08:24]wFMCommunicate request_size=4 [00:08:24]MH_SAM_APDU [00:08:24]CAPDU: 80 17 00 00 [00:08:24]Write to MH i2c: E2 08 00 C3 0B 80 17 00 00 00 00 00 00 4E [00:08:24]Write i2c OK [00:08:24]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 E8 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 E8 00 C3 0B 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 2C [00:08:24]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:24]wFMCommunicate OK [00:08:24]SAM_PROTO_GetFMData done [00:08:24]requested_item fm.sale_refund.total is exist - process it [00:08:24]requested_item fm.buy.total is exist - process it [00:08:24]requested_item shift.sale.total is exist - process it [00:08:24]SAM_PROTO_GetShiftData [00:08:24]wFMCommunicate request_size=4 [00:08:24]MH_SAM_APDU [00:08:24]CAPDU: 80 13 02 00 [00:08:24]Write to MH i2c: E2 08 00 C4 0B 80 13 02 00 00 00 00 00 4D [00:08:24]Write i2c OK [00:08:24]MH_I2C_Read... [00:08:24]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:24]Read from MH i2c: E2 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 [00:08:24]MH_I2C_Read... [00:08:24]Read from MH i2c: E2 FD 00 C4 0B 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 33 [00:08:24]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:08:25]wFMCommunicate OK [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 17 00 00 [00:08:25]Write to MH i2c: E2 08 00 C5 0B 80 17 00 00 00 00 00 00 50 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 FD 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 FD 00 C5 0B 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 67 [00:08:25]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:25]wFMCommunicate OK [00:08:25]wFMCommunicate request_size=4 [00:08:25]MH_SAM_APDU [00:08:25]CAPDU: 80 17 00 00 [00:08:25]Write to MH i2c: E2 08 00 C6 0B 80 17 00 00 00 00 00 00 51 [00:08:25]Write i2c OK [00:08:25]MH_I2C_Read... [00:08:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:25]Read from MH i2c: E2 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 FD 00 [00:08:25]MH_I2C_Read... [00:08:25]Read from MH i2c: E2 FD 00 C6 0B 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 0D [00:08:25]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:08:26]wFMCommunicate OK [00:08:26]wFMCommunicate request_size=4 [00:08:26]MH_SAM_APDU [00:08:26]CAPDU: 80 17 00 00 [00:08:26]Write to MH i2c: E2 08 00 C7 0B 80 17 00 00 00 00 00 00 52 [00:08:26]Write i2c OK [00:08:26]MH_I2C_Read... [00:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:26]Read from MH i2c: E2 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 FD 00 C7 0B 00 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 90 00 C9 [00:08:26]RAPDU: 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 90 00 [00:08:26]wFMCommunicate OK [00:08:26]wFMCommunicate request_size=4 [00:08:26]MH_SAM_APDU [00:08:26]CAPDU: 80 17 00 00 [00:08:26]Write to MH i2c: E2 08 00 C8 0B 80 17 00 00 00 00 00 00 53 [00:08:26]Write i2c OK [00:08:26]MH_I2C_Read... [00:08:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:08:26]Read from MH i2c: E2 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 CF 00 [00:08:26]MH_I2C_Read... [00:08:26]Read from MH i2c: E2 CF 00 C8 0B 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 3A [00:08:26]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:26]wFMCommunicate OK [00:08:26]SAM_PROTO_GetShiftData done [00:08:26]requested_item shift.sale.total_cash is exist - process it [00:08:26]requested_item shift.sale_refund.total is exist - process it [00:08:26]requested_item shift.sale_refund.total_cash is exist - process it [00:08:26]requested_item shift.buy.total is exist - process it [00:08:26]requested_item shift.buy.total_cash is exist - process it [00:08:26]produce_requested_data done [00:08:26]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:26]process_action_free get_value [00:08:26]json_value_free [00:08:26]json_value_free done [00:08:26]process_json_proto returns [00:08:26]Send response to host [00:08:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:26]free response buf [00:08:26]execute_script done [00:08:26]execute_script returns [00:08:26]free content buf [00:08:26]Sock 7.Close socket [00:08:26]Sock 7.Thread stoped [00:08:27]accept exits with 9 [00:08:27]New connection [00:08:27]New thread 3066506596 created [00:08:27]Thread 3066649956 joined [00:08:27]Waiting for new connection... [00:08:27] Sock 9.Parse request [00:08:27]Sock 9.Check first char [00:08:27]Sock 9.First char is OK [00:08:27]request: POST /json_proto HTTP/1.0 [00:08:27]Method: POST [00:08:27]URL: /json_proto [00:08:27]Method is POST - this is cgi request [00:08:27]url: /json_proto [00:08:27]query_string will be loaded in cgi processing [00:08:27]execute_cgi json_proto POST (null) [00:08:27]execute_cgi path=json_proto method=POST [00:08:27]POST find Content-Length [00:08:27]Host: 172.17.42.131:8080 [00:08:27]Content-Length: 331 [00:08:27]Content-Type: application/json [00:08:27] [00:08:27]POST finish read [00:08:27]Found Content-Length = 331 [00:08:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:27]execute_script... [00:08:27]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:08:27]POST & json_proto [00:08:27]process_json_proto [00:08:27]json parsed OK: [00:08:27]protocol is kg_v1.0 [00:08:27]action value=get_value [00:08:27]process_action get_value [00:08:27]cmd_get_value [00:08:27]process_action get_value done [00:08:27]requested_data is exist [00:08:27]produce_requested_data [00:08:27]requested_item fm.sale.total is exist - process it [00:08:27]SAM_PROTO_GetFMData [00:08:27]wFMCommunicate request_size=4 [00:08:27]MH_SAM_APDU [00:08:27]CAPDU: 80 13 03 00 [00:08:27]Write to MH i2c: E2 08 00 C9 0B 80 13 03 00 00 00 00 00 53 [00:08:27]Write i2c OK [00:08:27]MH_I2C_Read... [00:08:27]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:27]Read from MH i2c: E2 [00:08:27]MH_I2C_Read... [00:08:27]Read from MH i2c: E2 FD 00 [00:08:27]MH_I2C_Read... [00:08:27]Read from MH i2c: E2 FD 00 C9 0B 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 5D [00:08:27]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:08:27]wFMCommunicate OK [00:08:27]wFMCommunicate request_size=4 [00:08:27]MH_SAM_APDU [00:08:27]CAPDU: 80 17 00 00 [00:08:27]Write to MH i2c: E2 08 00 CA 0B 80 17 00 00 00 00 00 00 55 [00:08:27]Write i2c OK [00:08:27]MH_I2C_Read... [00:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:28]Read from MH i2c: E2 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 [00:08:28]MH_I2C_Read... [00:08:28]OFD Sender: No OFD packet to send [00:08:28]Read from MH i2c: E2 FD 00 CA 0B 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 22 [00:08:28]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:08:28]wFMCommunicate OK [00:08:28]wFMCommunicate request_size=4 [00:08:28]MH_SAM_APDU [00:08:28]CAPDU: 80 17 00 00 [00:08:28]Write to MH i2c: E2 08 00 CB 0B 80 17 00 00 00 00 00 00 56 [00:08:28]Write i2c OK [00:08:28]MH_I2C_Read... [00:08:28]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:28]Read from MH i2c: E2 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 [00:08:28]MH_I2C_Read... [00:08:28]Read from MH i2c: E2 FD 00 CB 0B 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 31 [00:08:28]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:28]wFMCommunicate OK [00:08:28]wFMCommunicate request_size=4 [00:08:28]MH_SAM_APDU [00:08:28]CAPDU: 80 17 00 00 [00:08:28]Write to MH i2c: E2 08 00 CC 0B 80 17 00 00 00 00 00 00 57 [00:08:28]Write i2c OK [00:08:28]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 FD 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 FD 00 CC 0B 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D5 [00:08:29]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:29]wFMCommunicate OK [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 17 00 00 [00:08:29]Write to MH i2c: E2 08 00 CD 0B 80 17 00 00 00 00 00 00 58 [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:29]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:08:29]Read from MH i2c: E2 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 E8 00 [00:08:29]MH_I2C_Read... [00:08:29]Read from MH i2c: E2 E8 00 CD 0B 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 36 [00:08:29]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:29]wFMCommunicate OK [00:08:29]SAM_PROTO_GetFMData done [00:08:29]requested_item fm.sale_refund.total is exist - process it [00:08:29]requested_item fm.buy.total is exist - process it [00:08:29]requested_item shift.sale.total is exist - process it [00:08:29]SAM_PROTO_GetShiftData [00:08:29]wFMCommunicate request_size=4 [00:08:29]MH_SAM_APDU [00:08:29]CAPDU: 80 13 02 00 [00:08:29]Write to MH i2c: E2 08 00 CE 0B 80 13 02 00 00 00 00 00 57 [00:08:29]Write i2c OK [00:08:29]MH_I2C_Read... [00:08:30]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:08:30]Read from MH i2c: E2 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 CE 0B 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 3D [00:08:30]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:08:30]wFMCommunicate OK [00:08:30]wFMCommunicate request_size=4 [00:08:30]MH_SAM_APDU [00:08:30]CAPDU: 80 17 00 00 [00:08:30]Write to MH i2c: E2 08 00 CF 0B 80 17 00 00 00 00 00 00 5A [00:08:30]Write i2c OK [00:08:30]MH_I2C_Read... [00:08:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:30]Read from MH i2c: E2 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 [00:08:30]MH_I2C_Read... [00:08:30]Read from MH i2c: E2 FD 00 CF 0B 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 71 [00:08:30]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:08:31]wFMCommunicate OK [00:08:31]wFMCommunicate request_size=4 [00:08:31]MH_SAM_APDU [00:08:31]CAPDU: 80 17 00 00 [00:08:31]Write to MH i2c: E2 08 00 D0 0B 80 17 00 00 00 00 00 00 5B [00:08:31]Write i2c OK [00:08:31]MH_I2C_Read... [00:08:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:31]Read from MH i2c: E2 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 FD 00 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 FD 00 D0 0B 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 17 [00:08:31]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:08:31]wFMCommunicate OK [00:08:31]wFMCommunicate request_size=4 [00:08:31]MH_SAM_APDU [00:08:31]CAPDU: 80 17 00 00 [00:08:31]Write to MH i2c: E2 08 00 D1 0B 80 17 00 00 00 00 00 00 5C [00:08:31]Write i2c OK [00:08:31]MH_I2C_Read... [00:08:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:31]Read from MH i2c: E2 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 FD 00 [00:08:31]MH_I2C_Read... [00:08:31]Read from MH i2c: E2 FD 00 D1 0B 00 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 90 00 D3 [00:08:32]RAPDU: 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 90 00 [00:08:32]wFMCommunicate OK [00:08:32]wFMCommunicate request_size=4 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 17 00 00 [00:08:32]Write to MH i2c: E2 08 00 D2 0B 80 17 00 00 00 00 00 00 5D [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:08:32]Read from MH i2c: E2 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 CF 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 CF 00 D2 0B 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 44 [00:08:32]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:32]wFMCommunicate OK [00:08:32]SAM_PROTO_GetShiftData done [00:08:32]requested_item shift.sale.total_cash is exist - process it [00:08:32]requested_item shift.sale_refund.total is exist - process it [00:08:32]requested_item shift.sale_refund.total_cash is exist - process it [00:08:32]requested_item shift.buy.total is exist - process it [00:08:32]requested_item shift.buy.total_cash is exist - process it [00:08:32]produce_requested_data done [00:08:32]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:08:32]process_action_free get_value [00:08:32]json_value_free [00:08:32]json_value_free done [00:08:32]process_json_proto returns [00:08:32]Send response to host [00:08:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:08:32]free response buf [00:08:32]execute_script done [00:08:32]execute_script returns [00:08:32]free content buf [00:08:32]Sock 9.Close socket [00:08:32]Sock 9.Thread stoped [00:08:32]accept exits with 7 [00:08:32]New connection [00:08:32]New thread 3066649956 created [00:08:32]Thread 3066506596 joined [00:08:32]Waiting for new connection... [00:08:32] Sock 7.Parse request [00:08:32]Sock 7.Check first char [00:08:32]Sock 7.First char is OK [00:08:32]request: POST /json_proto HTTP/1.0 [00:08:32]Method: POST [00:08:32]URL: /json_proto [00:08:32]Method is POST - this is cgi request [00:08:32]url: /json_proto [00:08:32]query_string will be loaded in cgi processing [00:08:32]execute_cgi json_proto POST (null) [00:08:32]execute_cgi path=json_proto method=POST [00:08:32]POST find Content-Length [00:08:32]Host: 172.17.42.131:8080 [00:08:32]Content-Length: 285 [00:08:32]Content-Type: application/json [00:08:32] [00:08:32]POST finish read [00:08:32]Found Content-Length = 285 [00:08:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:32]execute_script... [00:08:32]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0421\u0443\u0439\u0443\u043D\u0431\u0430\u0439 \u0443\u0443\u043B\u0443 \u0418. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:08:32]POST & json_proto [00:08:32]process_json_proto [00:08:32]json parsed OK: [00:08:32]protocol is kg_v1.0 [00:08:32]action value=close_shift [00:08:32]process_action close_shift [00:08:32]cmd_close_shift [00:08:32]MH_GetDate [00:08:32]Write to MH i2c: F0 00 00 D3 0B CD [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: F0 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: F0 09 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: F0 09 00 D3 0B 00 82 3E 18 67 A0 18 CA 66 FD [00:08:32]GetLastDocTimeStamp 1729642069 [00:08:32]current date 1729642114 [00:08:32]FM_GetShiftState [00:08:32]SAM_PROTO_GetShiftState [00:08:32]wFMCommunicate request_size=4 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 13 01 00 [00:08:32]Write to MH i2c: E2 08 00 D4 0B 80 13 01 00 00 00 00 00 5C [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:32]Read from MH i2c: E2 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 0E 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 0E 00 D4 0B 00 09 00 01 7E EE 16 67 00 00 00 00 90 00 51 [00:08:32]RAPDU: 09 00 01 7E EE 16 67 00 00 00 00 90 00 [00:08:32]wFMCommunicate OK [00:08:32]SAM_PROTO_GetShiftState done [00:08:32]FM_GetShiftState done [00:08:32]KKMCreateCloseShiftDocument [00:08:32]Load OK [00:08:32]Malloc new data [00:08:32]MH_GetDate [00:08:32]Write to MH i2c: F0 00 00 D5 0B CF [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: F0 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: F0 09 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: F0 09 00 D5 0B 00 82 3E 18 67 A0 18 CA 66 FF [00:08:32]Malloc new data [00:08:32]Malloc new data [00:08:32]Malloc new data [00:08:32]Malloc new data [00:08:32]KKMCreateCloseShiftDocument OK [00:08:32]KKMSetCloseShiftData OK [00:08:32]ProcessDocumentItem done err = 0, tmpTLVsize=80 [00:08:32]tlvbuf is 009A1870 [00:08:32]KKMLoadAndSignCloseShiftData [00:08:32]SAM_PROTO_ProcessDocument [00:08:32]wFMCommunicate request_size=9 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 15 01 00 04 05 00 50 00 [00:08:32]Write to MH i2c: E2 0C 00 D6 0B 80 15 01 00 04 00 05 00 50 00 00 00 BD [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:32]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:08:32]Read from MH i2c: E2 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 [00:08:32]MH_I2C_Read... [00:08:32]Read from MH i2c: E2 03 00 D6 0B 00 90 00 55 [00:08:32]RAPDU: 90 00 [00:08:32]wFMCommunicate OK [00:08:32]wFMCommunicate request_size=23 [00:08:32]MH_SAM_APDU [00:08:32]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:08:32]Write to MH i2c: E2 1A 00 D7 0B 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 57 [00:08:32]Write i2c OK [00:08:32]MH_I2C_Read... [00:08:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 D7 0B 00 90 00 56 [00:08:33]RAPDU: 90 00 [00:08:33]wFMCommunicate OK [00:08:33]wFMCommunicate request_size=39 [00:08:33]MH_SAM_APDU [00:08:33]CAPDU: 80 15 02 00 22 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 [00:08:33]Write to MH i2c: E2 2A 00 D8 0B 80 15 02 00 22 00 FD 03 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 00 00 FB [00:08:33]Write i2c OK [00:08:33]MH_I2C_Read... [00:08:33]OFD Sender: No OFD packet to send [00:08:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 D8 0B 00 90 00 57 [00:08:33]RAPDU: 90 00 [00:08:33]wFMCommunicate OK [00:08:33]wFMCommunicate request_size=13 [00:08:33]MH_SAM_APDU [00:08:33]CAPDU: 80 15 02 00 08 F4 03 04 00 82 3E 18 67 [00:08:33]Write to MH i2c: E2 10 00 D9 0B 80 15 02 00 08 00 F4 03 04 00 82 3E 18 67 00 00 AE [00:08:33]Write i2c OK [00:08:33]MH_I2C_Read... [00:08:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 D9 0B 00 90 00 58 [00:08:33]RAPDU: 90 00 [00:08:33]wFMCommunicate OK [00:08:33]wFMCommunicate request_size=25 [00:08:33]MH_SAM_APDU [00:08:33]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [00:08:33]Write to MH i2c: E2 1C 00 DA 0B 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 B2 [00:08:33]Write i2c OK [00:08:33]MH_I2C_Read... [00:08:33]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 03 00 DA 0B 00 90 00 59 [00:08:33]RAPDU: 90 00 [00:08:33]wFMCommunicate OK [00:08:33]wFMCommunicate request_size=4 [00:08:33]MH_SAM_APDU [00:08:33]CAPDU: 80 15 03 00 [00:08:33]Write to MH i2c: E2 08 00 DB 0B 80 15 03 00 00 00 00 00 67 [00:08:33]Write i2c OK [00:08:33]MH_I2C_Read... [00:08:33]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [00:08:33]Read from MH i2c: E2 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 FD 00 [00:08:33]MH_I2C_Read... [00:08:33]Read from MH i2c: E2 FD 00 DB 0B 00 F5 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 11 [00:08:34]RAPDU: F5 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 90 00 [00:08:34]wFMCommunicate OK [00:08:34]SAM_PROTO_ProcessDocument answer len = 1269 [00:08:34]SAM_PROTO_ProcessDocument remain to read = 1021 [00:08:34]wFMCommunicate request_size=4 [00:08:34]MH_SAM_APDU [00:08:34]CAPDU: 80 17 00 00 [00:08:34]Write to MH i2c: E2 08 00 DC 0B 80 17 00 00 00 00 00 00 67 [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:34]Read from MH i2c: E2 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 FD 00 [00:08:34]MH_I2C_Read... [00:08:34]Read from MH i2c: E2 FD 00 DC 0B 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 22 [00:08:34]RAPDU: 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:34]wFMCommunicate OK [00:08:34]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:34]SAM_PROTO_ProcessDocument remain to read = 771 [00:08:34]wFMCommunicate request_size=4 [00:08:34]MH_SAM_APDU [00:08:34]CAPDU: 80 17 00 00 [00:08:34]Write to MH i2c: E2 08 00 DD 0B 80 17 00 00 00 00 00 00 68 [00:08:34]Write i2c OK [00:08:34]MH_I2C_Read... [00:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:35]Read from MH i2c: E2 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 FD 00 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 FD 00 DD 0B 00 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 90 00 CA [00:08:35]RAPDU: 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 90 00 [00:08:35]wFMCommunicate OK [00:08:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:35]SAM_PROTO_ProcessDocument remain to read = 521 [00:08:35]wFMCommunicate request_size=4 [00:08:35]MH_SAM_APDU [00:08:35]CAPDU: 80 17 00 00 [00:08:35]Write to MH i2c: E2 08 00 DE 0B 80 17 00 00 00 00 00 00 69 [00:08:35]Write i2c OK [00:08:35]MH_I2C_Read... [00:08:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:35]Read from MH i2c: E2 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 FD 00 [00:08:35]MH_I2C_Read... [00:08:35]Read from MH i2c: E2 FD 00 DE 0B 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [00:08:35]RAPDU: 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:35]wFMCommunicate OK [00:08:35]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:35]SAM_PROTO_ProcessDocument remain to read = 271 [00:08:35]wFMCommunicate request_size=4 [00:08:35]MH_SAM_APDU [00:08:35]CAPDU: 80 17 00 00 [00:08:35]Write to MH i2c: E2 08 00 DF 0B 80 17 00 00 00 00 00 00 6A [00:08:35]Write i2c OK [00:08:35]MH_I2C_Read... [00:08:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:36]Read from MH i2c: E2 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 FD 00 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 FD 00 DF 0B 00 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 2E [00:08:36]RAPDU: 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 90 00 [00:08:36]wFMCommunicate OK [00:08:36]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [00:08:36]SAM_PROTO_ProcessDocument remain to read = 21 [00:08:36]wFMCommunicate request_size=4 [00:08:36]MH_SAM_APDU [00:08:36]CAPDU: 80 17 00 00 [00:08:36]Write to MH i2c: E2 08 00 E0 0B 80 17 00 00 00 00 00 00 6B [00:08:36]Write i2c OK [00:08:36]MH_I2C_Read... [00:08:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 21! [00:08:36]Read from MH i2c: E2 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 18 00 [00:08:36]MH_I2C_Read... [00:08:36]Read from MH i2c: E2 18 00 E0 0B 00 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 BE 99 6F 4B 39 1E 90 00 1E [00:08:36]RAPDU: 09 00 F6 03 01 00 06 F7 03 00 00 35 04 06 00 BE 99 6F 4B 39 1E 90 00 [00:08:36]wFMCommunicate OK [00:08:36]SAM_PROTO_ProcessDocument received (without SW) 21 bytes [00:08:36]SAM_PROTO_ProcessDocument done [00:08:36]1209 (1) - 1.0 - номер версии ФФД [00:08:36]1041 (16) - 0000000000965340 - номер ФМ [00:08:36]1040 (4) - 188541 - номер ФД [00:08:36]1038 (4) - 461 - номер смены [00:08:36]1118 (4) - 569 - количество кассовых чеков за смену [00:08:36]1111 (4) - 571 - общее количество ФД за смену [00:08:36]1194 (1198) - счетчики итогов смены [00:08:36] 1134 (4) - 569 - количество чеков со всеми признаками расчетов [00:08:36] 1129 (159) - счетчики операций «приход» [00:08:36] 1135 (4) - 569 - количество чеков по признаку расчетов [00:08:36] 1201 (4) - 870563.00 - общая итоговая сумма в чеках [00:08:36] 1136 (4) - 683557.00 - итоговая сумма в чеках наличными [00:08:36] 1138 (4) - 187006.00 - итоговая сумма в чеках безналичными [00:08:36] 1024 (123) - суммы налогов [00:08:36] 1006 (9) - суммы НДС [00:08:36] 1010 (1) - 0% - код ставки НДС [00:08:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:36] 1006 (12) - суммы НДС [00:08:36] 1010 (1) - 12% - код ставки НДС [00:08:36] 1011 (3) - 92466.75 - сумма НДС по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 0% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (12) - суммы НСП [00:08:36] 1014 (1) - 1% - код ставки НСП [00:08:36] 1015 (3) - 7705.15 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 2% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 3% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 5% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 0,50% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 1,50% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1130 (141) - счетчики операций «возврат прихода» [00:08:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:36] 1024 (117) - суммы налогов [00:08:36] 1006 (9) - суммы НДС [00:08:36] 1010 (1) - 0% - код ставки НДС [00:08:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:36] 1006 (9) - суммы НДС [00:08:36] 1010 (1) - 12% - код ставки НДС [00:08:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 0% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 1% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 2% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 3% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 5% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 0,50% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 1,50% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1131 (141) - счетчики операций «расход» [00:08:36] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:36] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:36] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:36] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:36] 1024 (117) - суммы налогов [00:08:36] 1006 (9) - суммы НДС [00:08:36] 1010 (1) - 0% - код ставки НДС [00:08:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:36] 1006 (9) - суммы НДС [00:08:36] 1010 (1) - 12% - код ставки НДС [00:08:36] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 0% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 1% - код ставки НСП [00:08:36] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:36] 1007 (9) - суммы НСП [00:08:36] 1014 (1) - 2% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 3% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 5% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 0,50% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 1,50% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1132 (141) - счетчики операций «возврат расхода» [00:08:37] 1135 (4) - 0 - количество чеков по признаку расчетов [00:08:37] 1201 (0) - 0.00 - общая итоговая сумма в чеках [00:08:37] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [00:08:37] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [00:08:37] 1024 (117) - суммы налогов [00:08:37] 1006 (9) - суммы НДС [00:08:37] 1010 (1) - 0% - код ставки НДС [00:08:37] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:37] 1006 (9) - суммы НДС [00:08:37] 1010 (1) - 12% - код ставки НДС [00:08:37] 1011 (0) - 0.00 - сумма НДС по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 0% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 1% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 2% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 3% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 5% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 0,50% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1007 (9) - суммы НСП [00:08:37] 1014 (1) - 1,50% - код ставки НСП [00:08:37] 1015 (0) - 0.00 - сумма НСП по ставке [00:08:37] 1133 (588) - - счетчики коррекции - не используются [00:08:37]1077 (6) - 209566206474526 - ФПД [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1209 (04B9) [00:08:37]Malloc new data [00:08:37]Processing tag 1041 (0411) [00:08:37]Processing tag 1040 (0410) [00:08:37]Malloc new data [00:08:37]Processing tag 1038 (040E) [00:08:37]Malloc new data [00:08:37]Processing tag 1118 (045E) [00:08:37]Malloc new data [00:08:37]Processing tag 1111 (0457) [00:08:37]Malloc new data [00:08:37]Processing tag 1194 (04AA) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1134 (046E) [00:08:37]Malloc new data [00:08:37]Processing tag 1129 (0469) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1135 (046F) [00:08:37]Malloc new data [00:08:37]Processing tag 1201 (04B1) [00:08:37]Malloc new data [00:08:37]Processing tag 1136 (0470) [00:08:37]Malloc new data [00:08:37]Processing tag 1138 (0472) [00:08:37]Malloc new data [00:08:37]Processing tag 1024 (0400) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1130 (046A) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1135 (046F) [00:08:37]Malloc new data [00:08:37]Processing tag 1201 (04B1) [00:08:37]Malloc new data [00:08:37]Processing tag 1136 (0470) [00:08:37]Malloc new data [00:08:37]Processing tag 1138 (0472) [00:08:37]Malloc new data [00:08:37]Processing tag 1024 (0400) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1131 (046B) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1135 (046F) [00:08:37]Malloc new data [00:08:37]Processing tag 1201 (04B1) [00:08:37]Malloc new data [00:08:37]Processing tag 1136 (0470) [00:08:37]Malloc new data [00:08:37]Processing tag 1138 (0472) [00:08:37]Malloc new data [00:08:37]Processing tag 1024 (0400) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1132 (046C) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1135 (046F) [00:08:37]Malloc new data [00:08:37]Processing tag 1201 (04B1) [00:08:37]Malloc new data [00:08:37]Processing tag 1136 (0470) [00:08:37]Malloc new data [00:08:37]Processing tag 1138 (0472) [00:08:37]Malloc new data [00:08:37]Processing tag 1024 (0400) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1006 (03EE) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1010 (03F2) [00:08:37]Malloc new data [00:08:37]Processing tag 1011 (03F3) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1007 (03EF) [00:08:37]Load OK [00:08:37]SetTLVBufToDocument [00:08:37]Processing tag 1014 (03F6) [00:08:37]Malloc new data [00:08:37]Processing tag 1015 (03F7) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1133 (046D) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Processing tag 1077 (0435) [00:08:37]Malloc new data [00:08:37]SetTLVBufToDocument err=0 [00:08:37]Malloc new data [00:08:37]SAM_PROTO_GetFMData [00:08:37]wFMCommunicate request_size=4 [00:08:37]MH_SAM_APDU [00:08:37]CAPDU: 80 13 03 00 [00:08:37]Write to MH i2c: E2 08 00 E1 0B 80 13 03 00 00 00 00 00 6B [00:08:37]Write i2c OK [00:08:37]MH_I2C_Read... [00:08:38]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:08:38]OFD Sender: No OFD packet to send [00:08:38]Read from MH i2c: E2 [00:08:38]MH_I2C_Read... [00:08:38]Read from MH i2c: E2 FD 00 [00:08:38]MH_I2C_Read... [00:08:38]Read from MH i2c: E2 FD 00 E1 0B 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 75 [00:08:38]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:08:38]wFMCommunicate OK [00:08:38]wFMCommunicate request_size=4 [00:08:38]MH_SAM_APDU [00:08:38]CAPDU: 80 17 00 00 [00:08:38]Write to MH i2c: E2 08 00 E2 0B 80 17 00 00 00 00 00 00 6D [00:08:38]Write i2c OK [00:08:38]MH_I2C_Read... [00:08:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:38]Read from MH i2c: E2 [00:08:38]MH_I2C_Read... [00:08:38]Read from MH i2c: E2 FD 00 [00:08:38]MH_I2C_Read... [00:08:38]Read from MH i2c: E2 FD 00 E2 0B 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 3A [00:08:39]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:08:39]wFMCommunicate OK [00:08:39]wFMCommunicate request_size=4 [00:08:39]MH_SAM_APDU [00:08:39]CAPDU: 80 17 00 00 [00:08:39]Write to MH i2c: E2 08 00 E3 0B 80 17 00 00 00 00 00 00 6E [00:08:39]Write i2c OK [00:08:39]MH_I2C_Read... [00:08:39]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:39]Read from MH i2c: E2 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: E2 FD 00 [00:08:39]MH_I2C_Read... [00:08:39]Read from MH i2c: E2 FD 00 E3 0B 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 49 [00:08:39]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:39]wFMCommunicate OK [00:08:39]wFMCommunicate request_size=4 [00:08:39]MH_SAM_APDU [00:08:39]CAPDU: 80 17 00 00 [00:08:39]Write to MH i2c: E2 08 00 E4 0B 80 17 00 00 00 00 00 00 6F [00:08:39]Write i2c OK [00:08:39]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 FD 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 FD 00 E4 0B 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 ED [00:08:40]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:08:40]wFMCommunicate OK [00:08:40]wFMCommunicate request_size=4 [00:08:40]MH_SAM_APDU [00:08:40]CAPDU: 80 17 00 00 [00:08:40]Write to MH i2c: E2 08 00 E5 0B 80 17 00 00 00 00 00 00 70 [00:08:40]Write i2c OK [00:08:40]MH_I2C_Read... [00:08:40]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:08:40]Read from MH i2c: E2 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 E8 00 [00:08:40]MH_I2C_Read... [00:08:40]Read from MH i2c: E2 E8 00 E5 0B 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4E [00:08:41]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:08:41]wFMCommunicate OK [00:08:41]SAM_PROTO_GetFMData done [00:08:41]Malloc new data [00:08:41]Malloc new data [00:08:41]Malloc new data [00:08:41]Malloc new data [00:08:41]KKMLoadAndSignCloseShiftData err=0 [00:08:41]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Суйунбай уулу И. 23.10.2024 00:08 Смена: 461 РНМ: 0000000000100030 ЗНМ: 0300000155 СНО: Общий режим Чеков за смену: 569 ФД за смену: 571 Всего чеков: 569 ИТОГИ ПРИХОД Чеков: 569 Общий итог: 870563.00 Итого наличными: 683557.00 Итого безнал.: 187006.00 НДС 0% : 0.00 НДС 12% : 92466.75 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 7705.15 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ РАСХОД Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 ИТОГИ ВОЗВРАТ РАСХОДА Чеков: 0 Общий итог: 0.00 Итого наличными: 0.00 Итого безнал.: 0.00 НДС 0% : 0.00 НДС 12% : 0.00 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 0.00 Сумма внесений: 0.00 Сумма выплат: 0.00 Нал. в кассе: 683557.00 НС Приход: 289438157.55 НС Возвр.Прихода: 51314934.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 188541 ФМ: 0000000000965340 ФПД: 209566206474526 [00:08:41]StoreToDocumentArchive [00:08:41]shift 461 fd 188541 [00:08:41]save to /storage/0461/doc_00188541 [00:08:41]save last doc name /storage/0461/doc_00188541 to /storage/kkm_last_doc_name [00:08:41]save OK [00:08:41]Clear old archive folders... [00:08:41]Remove dir /storage/0266 [00:08:41]opendir ok [00:08:41]file . [00:08:41]file .. [00:08:41]file doc_1729642077 [00:08:41]remove file /storage/0266/doc_1729642077 [00:08:41]remove dir /storage/0266 [00:08:41]NVStorageSaveData kkm_registers [00:08:41]File name is /storage/kkm_registers [00:08:41]Write 24 bytes [00:08:41]NVStorageSaveData done [00:08:41]NVStorageSaveData kkm_registers [00:08:41]File name is /storage/kkm_registers [00:08:41]Write 24 bytes [00:08:41]NVStorageSaveData done [00:08:41]ProcessDocumentItem done err = 0, tmpTLVsize=1392 [00:08:41]tlvbuf is 00A45DE0 [00:08:41]SAM_PROTO_ClearQueue [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 09 00 00 [00:08:41]Write to MH i2c: E2 08 00 E6 0B 80 09 00 00 00 00 00 00 63 [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 03 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 03 00 E6 0B 00 90 00 65 [00:08:41]RAPDU: 90 00 [00:08:41]wFMCommunicate OK [00:08:41]SAM_PROTO_ClearQueue done [00:08:41]KKMCreateOFDPacket [00:08:41]OFDProtocolAddRootSTLVToBuf [00:08:41]FM_MakeSignedData [00:08:41]FM_MakeSignedData [00:08:41]SAM_PROTO_SignData [00:08:41]wFMCommunicate request_size=4 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 0D 01 02 [00:08:41]Write to MH i2c: E2 08 00 E7 0B 80 0D 01 02 00 00 00 00 6B [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:08:41]Read from MH i2c: E2 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 03 00 [00:08:41]MH_I2C_Read... [00:08:41]Read from MH i2c: E2 03 00 E7 0B 00 90 00 66 [00:08:41]RAPDU: 90 00 [00:08:41]wFMCommunicate OK [00:08:41]wFMCommunicate request_size=255 [00:08:41]MH_SAM_APDU [00:08:41]CAPDU: 80 0D 02 02 FA 05 00 70 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F4 03 04 00 82 3E 18 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 AA 04 D9 04 6E 04 04 00 39 02 00 00 69 04 A6 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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:08:41]Write to MH i2c: E2 02 01 E8 0B 80 0D 02 02 FA 00 05 00 70 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F4 03 04 00 82 3E 18 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 AA 04 D9 04 6E 04 04 00 39 02 00 00 69 04 A6 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 00 11 [00:08:41]Write i2c OK [00:08:41]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 03 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 03 00 E8 0B 00 90 00 67 [00:08:42]RAPDU: 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=255 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 0D 02 02 FA 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 D3 C1 0B 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A [00:08:42]Write to MH i2c: E2 02 01 E9 0B 80 0D 02 02 FA 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 D3 C1 0B 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 00 84 [00:08:42]Write i2c OK [00:08:42]MH_I2C_Read... [00:08:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:42]Read from MH i2c: E2 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 03 00 [00:08:42]MH_I2C_Read... [00:08:42]Read from MH i2c: E2 03 00 E9 0B 00 90 00 68 [00:08:42]RAPDU: 90 00 [00:08:42]wFMCommunicate OK [00:08:42]wFMCommunicate request_size=255 [00:08:42]MH_SAM_APDU [00:08:42]CAPDU: 80 0D 02 02 FA 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 [00:08:43]Write to MH i2c: E2 02 01 EA 0B 80 0D 02 02 FA 00 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 2D [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:43]OFD Sender: No OFD packet to send [00:08:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:43]Read from MH i2c: E2 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 03 00 [00:08:43]MH_I2C_Read... [00:08:43]Read from MH i2c: E2 03 00 EA 0B 00 90 00 69 [00:08:43]RAPDU: 90 00 [00:08:43]wFMCommunicate OK [00:08:43]wFMCommunicate request_size=255 [00:08:43]MH_SAM_APDU [00:08:43]CAPDU: 80 0D 02 02 FA 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 [00:08:43]Write to MH i2c: E2 02 01 EB 0B 80 0D 02 02 FA 00 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 00 00 33 [00:08:43]Write i2c OK [00:08:43]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 03 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 03 00 EB 0B 00 90 00 6A [00:08:44]RAPDU: 90 00 [00:08:44]wFMCommunicate OK [00:08:44]wFMCommunicate request_size=255 [00:08:44]MH_SAM_APDU [00:08:44]CAPDU: 80 0D 02 02 FA 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 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 [00:08:44]Write to MH i2c: E2 02 01 EC 0B 80 0D 02 02 FA 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 00 00 0E [00:08:44]Write i2c OK [00:08:44]MH_I2C_Read... [00:08:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:44]Read from MH i2c: E2 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 03 00 [00:08:44]MH_I2C_Read... [00:08:44]Read from MH i2c: E2 03 00 EC 0B 00 90 00 6B [00:08:45]RAPDU: 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=151 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 0D 02 02 92 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 BE 99 6F 4B 39 1E [00:08:45]Write to MH i2c: E2 9A 00 ED 0B 80 0D 02 02 92 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 BE 99 6F 4B 39 1E 00 00 6F [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 03 00 ED 0B 00 90 00 6C [00:08:45]RAPDU: 90 00 [00:08:45]wFMCommunicate OK [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 0D 03 02 [00:08:45]Write to MH i2c: E2 08 00 EE 0B 80 0D 03 02 00 00 00 00 74 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0B 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 0B 00 EE 0B 00 6C EA F7 90 72 05 B6 3A 90 00 B9 [00:08:45]RAPDU: 6C EA F7 90 72 05 B6 3A 90 00 [00:08:45]wFMCommunicate OK [00:08:45]SAM_PROTO_SignData done [00:08:45]FM_MakeSignedData done [00:08:45]CreateOFDProtocolMessage [00:08:45]wFMCommunicate request_size=4 [00:08:45]MH_SAM_APDU [00:08:45]CAPDU: 80 11 00 00 [00:08:45]Write to MH i2c: E2 08 00 EF 0B 80 11 00 00 00 00 00 00 74 [00:08:45]Write i2c OK [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 [00:08:45]MH_I2C_Read... [00:08:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:08:45]Read from MH i2c: E2 17 00 [00:08:45]MH_I2C_Read... [00:08:45]Read from MH i2c: E2 17 00 EF 0B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [00:08:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:08:45]wFMCommunicate OK [00:08:45]CreateOFDProtocolMessage done [00:08:45]OFDSenderStorePacket 188541 [00:08:45]StoreOFDPacket docnum=188541 [00:08:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 84 05 00 00 7A 76 7C 05 D2 77 5A 05 01 00 05 00 70 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F4 03 04 00 82 3E 18 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 AA 04 D9 04 6E 04 04 00 39 02 00 00 69 04 A6 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 7D E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 BE 99 6F 4B 39 1E 6C EA F7 90 72 05 B6 3A [00:08:46]CheckFolder [00:08:46]dirname=/storage/ofd_packets [00:08:46]CheckFolder done [00:08:46]ProducePacketName [00:08:46]name=ofd_packets/00188541 [00:08:46]NVStorageSaveData ofd_packets/00188541 [00:08:46]File name is /storage/ofd_packets/00188541 [00:08:46]Write 1442 bytes [00:08:46]NVStorageSaveData done [00:08:46]OFDSenderStorePacket done [00:08:46]KKMCreateOFDPacket done [00:08:46]NVStorageSaveData kkm_last_timestamp [00:08:46]File name is /storage/kkm_last_timestamp [00:08:46]Write 4 bytes [00:08:46]NVStorageSaveData done [00:08:46]ExternCall_PrintAddStr [00:08:46]wPrintStart [00:08:46]Write to MH i2c: 01 00 00 F0 0B FB [00:08:46]Write i2c OK [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: 01 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: 01 07 00 [00:08:46]MH_I2C_Read... [00:08:46]Read from MH i2c: 01 07 00 F0 0B 00 00 00 00 00 FF 0F 10 [00:08:46]RasterBufferAndPrint [00:08:46]line Отчет о закрытии смены [00:08:46]line ФФД: 1.0 [00:08:46]line ИНН: 02508201610067 [00:08:46]line Кассир: Суйунбай уулу И. [00:08:46]line 23.10.2024 00:08 [00:08:46]line Смена: 461 [00:08:46]line РНМ: 0000000000100030 [00:08:46]line ЗНМ: 0300000155 [00:08:46]line СНО: Общий режим [00:08:46]line Чеков за смену: 569 [00:08:46]line ФД за смену: 571 [00:08:46]line Всего чеков: 569 [00:08:46]line ИТОГИ ПРИХОД [00:08:46]line Чеков: 569 [00:08:46]line Общий итог: 870563.00 [00:08:46]line Итого наличными: 683557.00 [00:08:46]line Итого безнал.: 187006.00 [00:08:46]line НДС 0% : 0.00 [00:08:46]line НДС 12% : 92466.75 [00:08:46]line НСП 0% : 0.00 [00:08:46]line НСП 1,50% : 0.00 [00:08:46]line НСП 0,50% : 0.00 [00:08:46]line НСП 5% : 0.00 [00:08:46]line НСП 3% : 0.00 [00:08:46]line НСП 2% : 0.00 [00:08:46]line НСП 1% : 7705.15 [00:08:46]line ИТОГИ ВОЗВРАТ ПРИХОДА [00:08:46]line Чеков: 0 [00:08:46]line Общий итог: 0.00 [00:08:46]line Итого наличными: 0.00 [00:08:46]line Итого безнал.: 0.00 [00:08:46]line НДС 0% : 0.00 [00:08:46]line НДС 12% : 0.00 [00:08:46]line НСП 0% : 0.00 [00:08:46]line НСП 1,50% : 0.00 [00:08:46]line НСП 0,50% : 0.00 [00:08:46]line НСП 5% : 0.00 [00:08:46]line НСП 3% : 0.00 [00:08:46]line НСП 2% : 0.00 [00:08:46]line НСП 1% : 0.00 [00:08:46]line ИТОГИ РАСХОД [00:08:46]line Чеков: 0 [00:08:46]line Общий итог: 0.00 [00:08:46]line Итого наличными: 0.00 [00:08:46]line Итого безнал.: 0.00 [00:08:46]line НДС 0% : 0.00 [00:08:46]line НДС 12% : 0.00 [00:08:46]line НСП 0% : 0.00 [00:08:46]line НСП 1,50% : 0.00 [00:08:46]line НСП 0,50% : 0.00 [00:08:46]line НСП 5% : 0.00 [00:08:46]line НСП 3% : 0.00 [00:08:46]line НСП 2% : 0.00 [00:08:46]line НСП 1% : 0.00 [00:08:46]line ИТОГИ ВОЗВРАТ РАСХОДА [00:08:46]line Чеков: 0 [00:08:46]line Общий итог: 0.00 [00:08:46]line Итого наличными: 0.00 [00:08:46]line Итого безнал.: 0.00 [00:08:46]line НДС 0% : 0.00 [00:08:46]line НДС 12% : 0.00 [00:08:46]line НСП 0% : 0.00 [00:08:46]line НСП 1,50% : 0.00 [00:08:46]line НСП 0,50% : 0.00 [00:08:46]line НСП 5% : 0.00 [00:08:46]line НСП 3% : 0.00 [00:08:46]line НСП 2% : 0.00 [00:08:46]line НСП 1% : 0.00 [00:08:46]line Сумма внесений: 0.00 [00:08:46]line Сумма выплат: 0.00 [00:08:46]line Нал. в кассе: 683557.00 [00:08:46]line НС Приход: 289438157.55 [00:08:46]line НС Возвр.Прихода: 51314934.00 [00:08:46]line НС Расход: 0.00 [00:08:46]line НС Возвр.Расхода: 0.00 [00:08:46]line ФД: 188541 [00:08:46]line ФМ: 0000000000965340 [00:08:46]line ФПД: 209566206474526 [00:08:46]OFD Sender: Processing packet 188541 [packets to send 1062, broken 1061] [00:08:46]ProducePacketName [00:08:46]name=ofd_packets/00188541 [00:08:46]OFD Sender: To server: pG, [00:08:46]CommunicateWithHost lk.salyk.kg:30040 [00:08:46]ConnectInit lk.salyk.kg [00:08:46]written 0, free lines is 4095 [00:08:46]Connected sock=10 [00:08:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 84 05 00 00 7A 76 7C 05 D2 77 5A 05 01 00 05 00 70 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 1E 00 D0 A1 D1 83 D0 B9 D1 83 D0 BD D0 B1 D0 B0 D0 B9 20 D1 83 D1 83 D0 BB D1 83 20 D0 98 2E 20 F4 03 04 00 82 3E 18 67 0E 04 04 00 CD 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 AA 04 D9 04 6E 04 04 00 39 02 00 00 69 04 A6 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 Write to MH i2c: 00 01 6C 00 04 00 99 41 00 0C 6F 4D 04 04 00 00 00 00 00 B1 04 01 00 00 [00:08:47]70 04 01 00 00 72 04 01 00 00 Write i2c OK [00:08:47]00 MH_I2C_Read... [00:08:47]04 Read from MH i2c: 7E 01 00 [00:08:47]EE 03 0A 00 F2 03 01 00 00 F3 03 01 MH_I2C_Read... [00:08:47]00 Read from MH i2c: 00 01 EE 07 03 00 0A 00 F2 03 01 00 01 F3 03 01 00 00 [00:08:47]EF MH_I2C_Read... [00:08:47]03 Read from MH i2c: 0A 01 00 07 F6 00 03 41 01 0C 00 00 00 00 00 F7 00 03 00 01 0B 00 09 00 68 EF [00:08:47]03 RasterBufferAndPrint [00:08:47]0A line [00:08:47]00 line [00:08:47]F6 line [00:08:47]03 line [00:08:47]01 00 06 F7 03 01 00 00 EF 03 0A 00 line [00:08:47]F6 03 written 0, free lines is 2470 [00:08:47]01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 MH_Cut [00:08:47]03 Write to MH i2c: 01 D1 00 01 04 00 F7 48 03 0C 01 00 00 EF 03 0A 00 F6 03 01 00 03 01 F7 26 03 [00:08:47]01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 Write i2c OK [00:08:47]EF MH_I2C_Read... [00:08:47]03 Read from MH i2c: 0A D1 00 [00:08:47]F6 MH_I2C_Read... [00:08:47]03 01 00 01 F7 03 01 00 00 Read from MH i2c: 6D D1 04 01 4C 00 02 [00:08:47]78 MH_I2C_Read... [00:08:47]04 Read from MH i2c: 04 D1 00 01 00 00 00 48 00 00 79 04 8D 00 6F 04 04 00 00 0C 00 00 00 25 00 [00:08:47]B1 Write to MH i2c: 04 01 00 00 00 00 70 49 04 0C 00 55 00 72 04 00 00 00 04 75 00 EE 03 [00:08:47]09 Write i2c OK [00:08:47]00 MH_I2C_Read... [00:08:47]F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 7D E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 BE 99 6F 4B 39 1E 6C EA F7 90 72 05 B6 3A [00:08:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 9D 65 47 00 83 F1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7D E0 02 00 F4 03 04 00 7B E8 17 67 B6 04 01 00 00 FF 4C FA D3 CC 0A FA C9 [00:08:48]CommunicateWithHost err = 0 [00:08:48]CheckOFDResponse [00:08:48]1017 (14) - 77093643461234 [00:08:48]1041 (16) - 0000000000965340 [00:08:48]1040 (4) - 188541 [00:08:48]1012 (4) - 22.10.2024 18:01 [00:08:48]1206 (1) - 0 [00:08:48]OFD Sender: Remove packet 188541 [00:08:48]ProducePacketName [00:08:48]name=ofd_packets/00188541 [00:08:48]NVStorageDeleteData [00:08:48]OFD Sender: No OFD packet to send [00:08:49]*** Cut start [00:08:49]*** Partial cut [00:08:49]*** CUTSNS_PIN = 1 [00:08:49]*** CUTSNS_PIN = 0 [00:08:49]*** Brake cut motor [00:08:49]Read from MH i2c: 01 [00:08:49]MH_I2C_Read... [00:08:49]*** Stop cut motor [00:08:49]*** Cut end [00:08:49]Read from MH i2c: 01 07 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: 01 07 00 49 0C 00 00 00 00 00 FF 0F 6A [00:08:49]process_action close_shift done [00:08:49]requested_data is exist [00:08:49]produce_requested_data [00:08:49]requested_item fd.num is exist - process it [00:08:49]SAM_PROTO_GetFieldsCounters [00:08:49]wFMCommunicate request_size=4 [00:08:49]MH_SAM_APDU [00:08:49]CAPDU: 80 13 00 00 [00:08:49]Write to MH i2c: E2 08 00 4A 0C 80 13 00 00 00 00 00 00 D2 [00:08:49]Write i2c OK [00:08:49]MH_I2C_Read... [00:08:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:08:49]Read from MH i2c: E2 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 62 00 [00:08:49]MH_I2C_Read... [00:08:49]Read from MH i2c: E2 62 00 4A 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 B8 [00:08:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]SAM_PROTO_GetFieldsCounters done [00:08:50]requested_item shift.num is exist - process it [00:08:50]requested_item shift.opened is exist - process it [00:08:50]req_shift_opened [00:08:50]FM_GetShiftState [00:08:50]SAM_PROTO_GetShiftState [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 13 01 00 [00:08:50]Write to MH i2c: E2 08 00 4B 0C 80 13 01 00 00 00 00 00 D4 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 0E 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 0E 00 4B 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 DF [00:08:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]SAM_PROTO_GetShiftState done [00:08:50]FM_GetShiftState done [00:08:50]req_shift_opened done [00:08:50]requested_item shift.open_date is exist - process it [00:08:50]req_shift_open_date [00:08:50]FM_GetShiftState [00:08:50]SAM_PROTO_GetShiftState [00:08:50]wFMCommunicate request_size=4 [00:08:50]MH_SAM_APDU [00:08:50]CAPDU: 80 13 01 00 [00:08:50]Write to MH i2c: E2 08 00 4C 0C 80 13 01 00 00 00 00 00 D5 [00:08:50]Write i2c OK [00:08:50]MH_I2C_Read... [00:08:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:08:50]Read from MH i2c: E2 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 0E 00 [00:08:50]MH_I2C_Read... [00:08:50]Read from MH i2c: E2 0E 00 4C 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E0 [00:08:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:08:50]wFMCommunicate OK [00:08:50]SAM_PROTO_GetShiftState done [00:08:50]FM_GetShiftState done [00:08:50]req_shift_open_date done [00:08:50]produce_requested_data done [00:08:50]produce_requested_data return {"fd.num":188541,"shift.num":461,"shift.opened":0,"shift.open_date":0} [00:08:50]process_action_free close_shift [00:08:50]json_value_free [00:08:50]json_value_free done [00:08:50]process_json_proto returns [00:08:50]Send response to host [00:08:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":188541,"shift.num":461,"shift.opened":0,"shift.open_date":0}}} [00:08:50]free response buf [00:08:50]execute_script done [00:08:50]execute_script returns [00:08:50]free content buf [00:08:50]Sock 7.Close socket [00:08:50]Sock 7.Thread stoped [00:08:53]OFD Sender: No OFD packet to send [00:08:58]OFD Sender: No OFD packet to send [00:09:03]OFD Sender: No OFD packet to send [00:09:08]OFD Sender: No OFD packet to send [00:09:13]OFD Sender: No OFD packet to send [00:09:19]OFD Sender: No OFD packet to send [00:09:24]OFD Sender: No OFD packet to send [00:09:29]OFD Sender: No OFD packet to send [00:09:34]OFD Sender: No OFD packet to send [00:09:39]OFD Sender: No OFD packet to send [00:09:44]OFD Sender: No OFD packet to send [00:09:49]OFD Sender: No OFD packet to send [00:09:54]OFD Sender: No OFD packet to send [00:09:59]OFD Sender: No OFD packet to send [00:10:04]OFD Sender: No OFD packet to send [00:10:09]OFD Sender: No OFD packet to send [00:10:14]OFD Sender: No OFD packet to send [00:10:19]OFD Sender: No OFD packet to send [00:10:24]OFD Sender: No OFD packet to send [00:10:29]OFD Sender: No OFD packet to send [00:10:34]OFD Sender: No OFD packet to send [00:10:39]OFD Sender: No OFD packet to send [00:10:44]OFD Sender: No OFD packet to send [00:10:49]OFD Sender: No OFD packet to send [00:10:54]OFD Sender: No OFD packet to send [00:10:59]OFD Sender: No OFD packet to send [00:11:00]accept exits with 9 [00:11:00]New connection [00:11:00]New thread 3066506596 created [00:11:00]Thread 3066649956 joined [00:11:00]Waiting for new connection... [00:11:00] Sock 9.Parse request [00:11:00]Sock 9.Check first char [00:11:00]Sock 9.First char is OK [00:11:00]request: POST /json_proto HTTP/1.0 [00:11:00]Method: POST [00:11:00]URL: /json_proto [00:11:00]Method is POST - this is cgi request [00:11:00]url: /json_proto [00:11:00]query_string will be loaded in cgi processing [00:11:00]execute_cgi json_proto POST (null) [00:11:00]execute_cgi path=json_proto method=POST [00:11:00]POST find Content-Length [00:11:00]Host: 172.17.42.131:8080 [00:11:00]Content-Length: 215 [00:11:00]Content-Type: application/json [00:11:00] [00:11:00]POST finish read [00:11:00]Found Content-Length = 215 [00:11: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" ] } } [00:11:00]execute_script... [00:11: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" ] } } [00:11:00]POST & json_proto [00:11:00]process_json_proto [00:11:00]json parsed OK: [00:11:00]protocol is kg_v1.0 [00:11:00]action value=get_value [00:11:00]process_action get_value [00:11:00]cmd_get_value [00:11:00]process_action get_value done [00:11:00]requested_data is exist [00:11:00]produce_requested_data [00:11:00]requested_item kkm.sn is exist - process it [00:11:00]requested_item kkm.ver is exist - process it [00:11:00]requested_item fm.sn is exist - process it [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 11 00 00 [00:11:00]Write to MH i2c: E2 08 00 4D 0C 80 11 00 00 00 00 00 00 D3 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 17 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 17 00 4D 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 21 [00:11:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:11:00]wFMCommunicate OK [00:11:00]requested_item fd.num is exist - process it [00:11:00]SAM_PROTO_GetFieldsCounters [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 13 00 00 [00:11:00]Write to MH i2c: E2 08 00 4E 0C 80 13 00 00 00 00 00 00 D6 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 62 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 62 00 4E 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 BC [00:11:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:11:00]wFMCommunicate OK [00:11:00]SAM_PROTO_GetFieldsCounters done [00:11:00]requested_item shift.num is exist - process it [00:11:00]requested_item shift.opened is exist - process it [00:11:00]req_shift_opened [00:11:00]FM_GetShiftState [00:11:00]SAM_PROTO_GetShiftState [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 13 01 00 [00:11:00]Write to MH i2c: E2 08 00 4F 0C 80 13 01 00 00 00 00 00 D8 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0E 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0E 00 4F 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E3 [00:11:00]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:00]wFMCommunicate OK [00:11:00]SAM_PROTO_GetShiftState done [00:11:00]FM_GetShiftState done [00:11:00]req_shift_opened done [00:11:00]requested_item shift.open_date is exist - process it [00:11:00]req_shift_open_date [00:11:00]FM_GetShiftState [00:11:00]SAM_PROTO_GetShiftState [00:11:00]wFMCommunicate request_size=4 [00:11:00]MH_SAM_APDU [00:11:00]CAPDU: 80 13 01 00 [00:11:00]Write to MH i2c: E2 08 00 50 0C 80 13 01 00 00 00 00 00 D9 [00:11:00]Write i2c OK [00:11:00]MH_I2C_Read... [00:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:00]Read from MH i2c: E2 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0E 00 [00:11:00]MH_I2C_Read... [00:11:00]Read from MH i2c: E2 0E 00 50 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 E4 [00:11:00]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:11:00]wFMCommunicate OK [00:11:00]SAM_PROTO_GetShiftState done [00:11:00]FM_GetShiftState done [00:11:00]req_shift_open_date done [00:11:00]produce_requested_data done [00:11:00]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188541,"shift.num":461,"shift.opened":0,"shift.open_date":0} [00:11:00]process_action_free get_value [00:11:00]json_value_free [00:11:00]json_value_free done [00:11:00]process_json_proto returns [00:11:00]Send response to host [00:11:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188541,"shift.num":461,"shift.opened":0,"shift.open_date":0}}} [00:11:00]free response buf [00:11:00]execute_script done [00:11:00]execute_script returns [00:11:00]free content buf [00:11:00]Sock 9.Close socket [00:11:00]Sock 9.Thread stoped [00:11:01]accept exits with 7 [00:11:01]New connection [00:11:01]New thread 3066649956 created [00:11:01]Thread 3066506596 joined [00:11:01]Waiting for new connection... [00:11:01] Sock 7.Parse request [00:11:01]Sock 7.Check first char [00:11:01]Sock 7.First char is OK [00:11:01]request: POST /json_proto HTTP/1.0 [00:11:01]Method: POST [00:11:01]URL: /json_proto [00:11:01]Method is POST - this is cgi request [00:11:01]url: /json_proto [00:11:01]query_string will be loaded in cgi processing [00:11:01]execute_cgi json_proto POST (null) [00:11:01]execute_cgi path=json_proto method=POST [00:11:01]POST find Content-Length [00:11:01]Host: 172.17.42.131:8080 [00:11:01]Content-Length: 331 [00:11:01]Content-Type: application/json [00:11:01] [00:11:01]POST finish read [00:11:01]Found Content-Length = 331 [00:11:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:01]execute_script... [00:11:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:11:01]POST & json_proto [00:11:01]process_json_proto [00:11:01]json parsed OK: [00:11:01]protocol is kg_v1.0 [00:11:01]action value=get_value [00:11:01]process_action get_value [00:11:01]cmd_get_value [00:11:01]process_action get_value done [00:11:01]requested_data is exist [00:11:01]produce_requested_data [00:11:01]requested_item fm.sale.total is exist - process it [00:11:01]SAM_PROTO_GetFMData [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 13 03 00 [00:11:01]Write to MH i2c: E2 08 00 51 0C 80 13 03 00 00 00 00 00 DC [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:01]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:11:01]Read from MH i2c: E2 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 FD 00 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 FD 00 51 0C 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 E6 [00:11:01]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:11:01]wFMCommunicate OK [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 17 00 00 [00:11:01]Write to MH i2c: E2 08 00 52 0C 80 17 00 00 00 00 00 00 DE [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:01]Read from MH i2c: E2 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 FD 00 [00:11:01]MH_I2C_Read... [00:11:01]Read from MH i2c: E2 FD 00 52 0C 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 AB [00:11:01]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:11:01]wFMCommunicate OK [00:11:01]wFMCommunicate request_size=4 [00:11:01]MH_SAM_APDU [00:11:01]CAPDU: 80 17 00 00 [00:11:01]Write to MH i2c: E2 08 00 53 0C 80 17 00 00 00 00 00 00 DF [00:11:01]Write i2c OK [00:11:01]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 53 0C 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 BA [00:11:02]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 54 0C 80 17 00 00 00 00 00 00 E0 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 FD 00 54 0C 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [00:11:02]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:11:02]wFMCommunicate OK [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 17 00 00 [00:11:02]Write to MH i2c: E2 08 00 55 0C 80 17 00 00 00 00 00 00 E1 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:11:02]Read from MH i2c: E2 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 E8 00 [00:11:02]MH_I2C_Read... [00:11:02]Read from MH i2c: E2 E8 00 55 0C 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 BF [00:11:02]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:02]wFMCommunicate OK [00:11:02]SAM_PROTO_GetFMData done [00:11:02]requested_item fm.sale_refund.total is exist - process it [00:11:02]requested_item fm.buy.total is exist - process it [00:11:02]requested_item shift.sale.total is exist - process it [00:11:02]SAM_PROTO_GetShiftData [00:11:02]wFMCommunicate request_size=4 [00:11:02]MH_SAM_APDU [00:11:02]CAPDU: 80 13 02 00 [00:11:02]Write to MH i2c: E2 08 00 56 0C 80 13 02 00 00 00 00 00 E0 [00:11:02]Write i2c OK [00:11:02]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 56 0C 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 C6 [00:11:03]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:11:03]wFMCommunicate OK [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 17 00 00 [00:11:03]Write to MH i2c: E2 08 00 57 0C 80 17 00 00 00 00 00 00 E3 [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 57 0C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 FA [00:11:03]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:11:03]wFMCommunicate OK [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 17 00 00 [00:11:03]Write to MH i2c: E2 08 00 58 0C 80 17 00 00 00 00 00 00 E4 [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 58 0C 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 A0 [00:11:03]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:11:03]wFMCommunicate OK [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 17 00 00 [00:11:03]Write to MH i2c: E2 08 00 59 0C 80 17 00 00 00 00 00 00 E5 [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:11:03]Read from MH i2c: E2 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 [00:11:03]MH_I2C_Read... [00:11:03]Read from MH i2c: E2 FD 00 59 0C 00 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 90 00 5C [00:11:03]RAPDU: 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 90 00 [00:11:03]wFMCommunicate OK [00:11:03]wFMCommunicate request_size=4 [00:11:03]MH_SAM_APDU [00:11:03]CAPDU: 80 17 00 00 [00:11:03]Write to MH i2c: E2 08 00 5A 0C 80 17 00 00 00 00 00 00 E6 [00:11:03]Write i2c OK [00:11:03]MH_I2C_Read... [00:11:04]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:11:04]Read from MH i2c: E2 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 CF 00 [00:11:04]MH_I2C_Read... [00:11:04]Read from MH i2c: E2 CF 00 5A 0C 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [00:11:04]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:11:04]wFMCommunicate OK [00:11:04]SAM_PROTO_GetShiftData done [00:11:04]requested_item shift.sale.total_cash is exist - process it [00:11:04]requested_item shift.sale_refund.total is exist - process it [00:11:04]requested_item shift.sale_refund.total_cash is exist - process it [00:11:04]requested_item shift.buy.total is exist - process it [00:11:04]requested_item shift.buy.total_cash is exist - process it [00:11:04]produce_requested_data done [00:11:04]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:11:04]process_action_free get_value [00:11:04]json_value_free [00:11:04]json_value_free done [00:11:04]process_json_proto returns [00:11:04]Send response to host [00:11:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:11:04]free response buf [00:11:04]execute_script done [00:11:04]execute_script returns [00:11:04]free content buf [00:11:04]Sock 7.Close socket [00:11:04]Sock 7.Thread stoped [00:11:04]OFD Sender: No OFD packet to send [00:11:09]OFD Sender: No OFD packet to send [00:11:14]OFD Sender: No OFD packet to send [00:11:19]OFD Sender: No OFD packet to send [00:11:24]OFD Sender: No OFD packet to send [00:11:29]OFD Sender: No OFD packet to send [00:11:34]OFD Sender: No OFD packet to send [00:11:39]OFD Sender: No OFD packet to send [00:11:44]OFD Sender: No OFD packet to send [00:11:49]OFD Sender: No OFD packet to send [00:11:54]OFD Sender: No OFD packet to send [00:11:59]OFD Sender: No OFD packet to send [00:12:04]OFD Sender: No OFD packet to send [00:12:09]OFD Sender: No OFD packet to send [00:12:14]OFD Sender: No OFD packet to send [00:12:19]OFD Sender: No OFD packet to send [00:12:24]OFD Sender: No OFD packet to send [00:12:29]OFD Sender: No OFD packet to send [00:12:34]OFD Sender: No OFD packet to send [00:12:39]OFD Sender: No OFD packet to send [00:12:44]OFD Sender: No OFD packet to send [00:12:50]OFD Sender: No OFD packet to send [00:12:55]OFD Sender: No OFD packet to send [00:13:00]OFD Sender: No OFD packet to send [00:13:05]OFD Sender: No OFD packet to send [00:13:10]OFD Sender: No OFD packet to send [00:13:15]OFD Sender: No OFD packet to send [00:13:20]OFD Sender: No OFD packet to send [00:13:25]OFD Sender: No OFD packet to send [00:13:30]OFD Sender: No OFD packet to send [00:13:35]OFD Sender: No OFD packet to send [00:13:40]OFD Sender: No OFD packet to send [00:13:45]OFD Sender: No OFD packet to send [00:13:50]OFD Sender: No OFD packet to send [00:13:55]OFD Sender: No OFD packet to send [00:14:00]OFD Sender: No OFD packet to send [00:14:05]OFD Sender: No OFD packet to send [00:14:10]OFD Sender: No OFD packet to send [00:14:15]OFD Sender: No OFD packet to send [00:14:20]OFD Sender: No OFD packet to send [00:14:25]OFD Sender: No OFD packet to send [00:14:30]OFD Sender: No OFD packet to send [00:14:35]OFD Sender: No OFD packet to send [00:14:40]OFD Sender: No OFD packet to send [00:14:45]OFD Sender: No OFD packet to send [00:14:50]OFD Sender: No OFD packet to send [00:14:55]OFD Sender: No OFD packet to send [00:15:00]OFD Sender: No OFD packet to send [00:15:05]OFD Sender: No OFD packet to send [00:15:10]OFD Sender: No OFD packet to send [00:15:15]OFD Sender: No OFD packet to send [00:15:20]accept exits with 9 [00:15:20]New connection [00:15:20]New thread 3066506596 created [00:15:20]Thread 3066649956 joined [00:15:20]Waiting for new connection... [00:15:20] Sock 9.Parse request [00:15:20]Sock 9.Check first char [00:15:20]Sock 9.First char is OK [00:15:20]request: POST /json_proto HTTP/1.0 [00:15:20]Method: POST [00:15:20]URL: /json_proto [00:15:20]Method is POST - this is cgi request [00:15:20]url: /json_proto [00:15:20]query_string will be loaded in cgi processing [00:15:20]execute_cgi json_proto POST (null) [00:15:20]execute_cgi path=json_proto method=POST [00:15:20]POST find Content-Length [00:15:20]Host: 172.17.42.131:8080 [00:15:20]Content-Length: 215 [00:15:20]Content-Type: application/json [00:15:20] [00:15:20]POST finish read [00:15:20]Found Content-Length = 215 [00:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:20]execute_script... [00:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:20]POST & json_proto [00:15:20]process_json_proto [00:15:20]json parsed OK: [00:15:20]protocol is kg_v1.0 [00:15:20]action value=get_value [00:15:20]process_action get_value [00:15:20]cmd_get_value [00:15:20]process_action get_value done [00:15:20]requested_data is exist [00:15:20]produce_requested_data [00:15:20]requested_item kkm.sn is exist - process it [00:15:20]requested_item kkm.ver is exist - process it [00:15:20]requested_item fm.sn is exist - process it [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 11 00 00 [00:15:20]Write to MH i2c: E2 08 00 5B 0C 80 11 00 00 00 00 00 00 E1 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 17 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 17 00 5B 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2F [00:15:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:15:20]wFMCommunicate OK [00:15:20]requested_item fd.num is exist - process it [00:15:20]SAM_PROTO_GetFieldsCounters [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 13 00 00 [00:15:20]Write to MH i2c: E2 08 00 5C 0C 80 13 00 00 00 00 00 00 E4 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 62 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 62 00 5C 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 CA [00:15:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7D E0 02 00 0E 04 04 00 CD 01 00 00 12 04 04 00 39 02 00 00 5E 04 04 00 39 02 00 00 57 04 04 00 3B 02 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:20]wFMCommunicate OK [00:15:20]SAM_PROTO_GetFieldsCounters done [00:15:20]requested_item shift.num is exist - process it [00:15:20]requested_item shift.opened is exist - process it [00:15:20]req_shift_opened [00:15:20]FM_GetShiftState [00:15:20]SAM_PROTO_GetShiftState [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 13 01 00 [00:15:20]Write to MH i2c: E2 08 00 5D 0C 80 13 01 00 00 00 00 00 E6 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 0E 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 0E 00 5D 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F1 [00:15:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:20]wFMCommunicate OK [00:15:20]SAM_PROTO_GetShiftState done [00:15:20]FM_GetShiftState done [00:15:20]req_shift_opened done [00:15:20]requested_item shift.open_date is exist - process it [00:15:20]req_shift_open_date [00:15:20]FM_GetShiftState [00:15:20]SAM_PROTO_GetShiftState [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 13 01 00 [00:15:20]Write to MH i2c: E2 08 00 5E 0C 80 13 01 00 00 00 00 00 E7 [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:20]Read from MH i2c: E2 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 0E 00 [00:15:20]MH_I2C_Read... [00:15:20]Read from MH i2c: E2 0E 00 5E 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [00:15:20]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:20]wFMCommunicate OK [00:15:20]SAM_PROTO_GetShiftState done [00:15:20]FM_GetShiftState done [00:15:20]req_shift_open_date done [00:15:20]produce_requested_data done [00:15:20]produce_requested_data return {"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188541,"shift.num":461,"shift.opened":0,"shift.open_date":0} [00:15:20]process_action_free get_value [00:15:20]json_value_free [00:15:20]json_value_free done [00:15:20]process_json_proto returns [00:15:20]Send response to host [00:15:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000155","kkm.ver":"001","fm.sn":"0000000000965340","fd.num":188541,"shift.num":461,"shift.opened":0,"shift.open_date":0}}} [00:15:20]free response buf [00:15:20]execute_script done [00:15:20]execute_script returns [00:15:20]free content buf [00:15:20]Sock 9.Close socket [00:15:20]Sock 9.Thread stoped [00:15:20]accept exits with 7 [00:15:20]New connection [00:15:20]New thread 3066649956 created [00:15:20]Thread 3066506596 joined [00:15:20]Waiting for new connection... [00:15:20] Sock 7.Parse request [00:15:20]Sock 7.Check first char [00:15:20]Sock 7.First char is OK [00:15:20]request: POST /json_proto HTTP/1.0 [00:15:20]Method: POST [00:15:20]URL: /json_proto [00:15:20]Method is POST - this is cgi request [00:15:20]url: /json_proto [00:15:20]query_string will be loaded in cgi processing [00:15:20]execute_cgi json_proto POST (null) [00:15:20]execute_cgi path=json_proto method=POST [00:15:20]POST find Content-Length [00:15:20]Host: 172.17.42.131:8080 [00:15:20]Content-Length: 331 [00:15:20]Content-Type: application/json [00:15:20] [00:15:20]POST finish read [00:15:20]Found Content-Length = 331 [00:15:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:20]execute_script... [00:15:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:20]POST & json_proto [00:15:20]process_json_proto [00:15:20]json parsed OK: [00:15:20]protocol is kg_v1.0 [00:15:20]action value=get_value [00:15:20]process_action get_value [00:15:20]cmd_get_value [00:15:20]process_action get_value done [00:15:20]requested_data is exist [00:15:20]produce_requested_data [00:15:20]requested_item fm.sale.total is exist - process it [00:15:20]SAM_PROTO_GetFMData [00:15:20]wFMCommunicate request_size=4 [00:15:20]MH_SAM_APDU [00:15:20]CAPDU: 80 13 03 00 [00:15:20]Write to MH i2c: E2 08 00 5F 0C 80 13 03 00 00 00 00 00 EA [00:15:20]OFD Sender: No OFD packet to send [00:15:20]Write i2c OK [00:15:20]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 5F 0C 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 F4 [00:15:21]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:15:21]wFMCommunicate OK [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:21]Write to MH i2c: E2 08 00 60 0C 80 17 00 00 00 00 00 00 EC [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 60 0C 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 B9 [00:15:21]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:15:21]wFMCommunicate OK [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:21]Write to MH i2c: E2 08 00 61 0C 80 17 00 00 00 00 00 00 ED [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:21]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:21]Read from MH i2c: E2 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 [00:15:21]MH_I2C_Read... [00:15:21]Read from MH i2c: E2 FD 00 61 0C 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C8 [00:15:21]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:21]wFMCommunicate OK [00:15:21]wFMCommunicate request_size=4 [00:15:21]MH_SAM_APDU [00:15:21]CAPDU: 80 17 00 00 [00:15:21]Write to MH i2c: E2 08 00 62 0C 80 17 00 00 00 00 00 00 EE [00:15:21]Write i2c OK [00:15:21]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 FD 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 FD 00 62 0C 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6C [00:15:22]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:22]wFMCommunicate OK [00:15:22]wFMCommunicate request_size=4 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 17 00 00 [00:15:22]Write to MH i2c: E2 08 00 63 0C 80 17 00 00 00 00 00 00 EF [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 E8 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 E8 00 63 0C 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CD [00:15:22]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:22]wFMCommunicate OK [00:15:22]SAM_PROTO_GetFMData done [00:15:22]requested_item fm.sale_refund.total is exist - process it [00:15:22]requested_item fm.buy.total is exist - process it [00:15:22]requested_item shift.sale.total is exist - process it [00:15:22]SAM_PROTO_GetShiftData [00:15:22]wFMCommunicate request_size=4 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 13 02 00 [00:15:22]Write to MH i2c: E2 08 00 64 0C 80 13 02 00 00 00 00 00 EE [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:22]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:22]Read from MH i2c: E2 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 FD 00 [00:15:22]MH_I2C_Read... [00:15:22]Read from MH i2c: E2 FD 00 64 0C 00 B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 D4 [00:15:22]RAPDU: B2 04 AA 04 AE 04 6E 04 04 00 39 02 00 00 69 04 9F 00 6F 04 04 00 39 02 00 00 B1 04 04 00 AC 5F 30 05 70 04 04 00 74 06 13 04 72 04 04 00 38 59 1D 01 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 D3 17 8D 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 D3 C1 0B EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 90 00 [00:15:22]wFMCommunicate OK [00:15:22]wFMCommunicate request_size=4 [00:15:22]MH_SAM_APDU [00:15:22]CAPDU: 80 17 00 00 [00:15:22]Write to MH i2c: E2 08 00 65 0C 80 17 00 00 00 00 00 00 F1 [00:15:22]Write i2c OK [00:15:22]MH_I2C_Read... [00:15:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:23]Read from MH i2c: E2 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 65 0C 00 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 08 [00:15:23]RAPDU: 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:15:23]wFMCommunicate OK [00:15:23]wFMCommunicate request_size=4 [00:15:23]MH_SAM_APDU [00:15:23]CAPDU: 80 17 00 00 [00:15:23]Write to MH i2c: E2 08 00 66 0C 80 17 00 00 00 00 00 00 F2 [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:23]Read from MH i2c: E2 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 66 0C 00 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 AE [00:15:23]RAPDU: 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 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 [00:15:23]wFMCommunicate OK [00:15:23]wFMCommunicate request_size=4 [00:15:23]MH_SAM_APDU [00:15:23]CAPDU: 80 17 00 00 [00:15:23]Write to MH i2c: E2 08 00 67 0C 80 17 00 00 00 00 00 00 F3 [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:23]Read from MH i2c: E2 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 FD 00 67 0C 00 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 90 00 6A [00:15:23]RAPDU: 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 90 00 [00:15:23]wFMCommunicate OK [00:15:23]wFMCommunicate request_size=4 [00:15:23]MH_SAM_APDU [00:15:23]CAPDU: 80 17 00 00 [00:15:23]Write to MH i2c: E2 08 00 68 0C 80 17 00 00 00 00 00 00 F4 [00:15:23]Write i2c OK [00:15:23]MH_I2C_Read... [00:15:23]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 204! [00:15:23]Read from MH i2c: E2 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 CF 00 [00:15:23]MH_I2C_Read... [00:15:23]Read from MH i2c: E2 CF 00 68 0C 00 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DB [00:15:23]RAPDU: 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:24]wFMCommunicate OK [00:15:24]SAM_PROTO_GetShiftData done [00:15:24]requested_item shift.sale.total_cash is exist - process it [00:15:24]requested_item shift.sale_refund.total is exist - process it [00:15:24]requested_item shift.sale_refund.total_cash is exist - process it [00:15:24]requested_item shift.buy.total is exist - process it [00:15:24]requested_item shift.buy.total_cash is exist - process it [00:15:24]produce_requested_data done [00:15:24]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:15:24]process_action_free get_value [00:15:24]json_value_free [00:15:24]json_value_free done [00:15:24]process_json_proto returns [00:15:24]Send response to host [00:15:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":870563.00,"shift.sale.total_cash":683557.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:15:24]free response buf [00:15:24]execute_script done [00:15:24]execute_script returns [00:15:24]free content buf [00:15:24]Sock 7.Close socket [00:15:24]Sock 7.Thread stoped [00:15:24]accept exits with 9 [00:15:24]New connection [00:15:24]New thread 3066506596 created [00:15:24]Thread 3066649956 joined [00:15:24]Waiting for new connection... [00:15:24] Sock 9.Parse request [00:15:24]Sock 9.Check first char [00:15:24]Sock 9.First char is OK [00:15:24]request: POST /json_proto HTTP/1.0 [00:15:24]Method: POST [00:15:24]URL: /json_proto [00:15:24]Method is POST - this is cgi request [00:15:24]url: /json_proto [00:15:24]query_string will be loaded in cgi processing [00:15:24]execute_cgi json_proto POST (null) [00:15:24]execute_cgi path=json_proto method=POST [00:15:24]POST find Content-Length [00:15:24]Host: 172.17.42.131:8080 [00:15:24]Content-Length: 271 [00:15:24]Content-Type: application/json [00:15:24] [00:15:24]POST finish read [00:15:24]Found Content-Length = 271 [00:15:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:24]execute_script... [00:15:24]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u041A\u0430\u0434\u044B\u0440\u0431\u0435\u043A\u043E\u0432 \u041A. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:15:24]POST & json_proto [00:15:24]process_json_proto [00:15:24]json parsed OK: [00:15:24]protocol is kg_v1.0 [00:15:24]action value=open_shift [00:15:24]process_action open_shift [00:15:24]cmd_open_shift [00:15:24]MH_GetDate [00:15:24]Write to MH i2c: F0 00 00 69 0C 64 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: F0 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: F0 09 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: F0 09 00 69 0C 00 1D 40 18 67 A0 18 CA 66 31 [00:15:24]GetLastDocTimeStamp 1729642114 [00:15:24]current date 1729642525 [00:15:24]FM_GetShiftState [00:15:24]SAM_PROTO_GetShiftState [00:15:24]wFMCommunicate request_size=4 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 13 01 00 [00:15:24]Write to MH i2c: E2 08 00 6A 0C 80 13 01 00 00 00 00 00 F3 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 0E 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 0E 00 6A 0C 00 09 00 00 00 00 00 00 00 00 00 00 90 00 FE [00:15:24]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [00:15:24]wFMCommunicate OK [00:15:24]SAM_PROTO_GetShiftState done [00:15:24]FM_GetShiftState done [00:15:24]KKMCreateOpenShiftDocument [00:15:24]Load OK [00:15:24]Malloc new data [00:15:24]MH_GetDate [00:15:24]Write to MH i2c: F0 00 00 6B 0C 66 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: F0 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: F0 09 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: F0 09 00 6B 0C 00 1D 40 18 67 A0 18 CA 66 33 [00:15:24]Malloc new data [00:15:24]KKMCreateOpenShiftDocument OK [00:15:24]KKMSetOpenShiftData OK [00:15:24]ProcessDocumentItem done err = 0, tmpTLVsize=207 [00:15:24]tlvbuf is 009AA680 [00:15:24]KKMLoadAndSignOpenShiftData [00:15:24]SAM_PROTO_ProcessDocument [00:15:24]wFMCommunicate request_size=9 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 01 00 04 02 00 CF 00 [00:15:24]Write to MH i2c: E2 0C 00 6C 0C 80 15 01 00 04 00 02 00 CF 00 00 00 D0 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 6C 0C 00 90 00 EC [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=23 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [00:15:24]Write to MH i2c: E2 1A 00 6D 0C 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 EE [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 6D 0C 00 90 00 ED [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=34 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 02 00 1D FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 [00:15:24]Write to MH i2c: E2 25 00 6E 0C 80 15 02 00 1D 00 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 00 00 E0 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 6E 0C 00 90 00 EE [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=92 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 02 00 57 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 [00:15:24]Write to MH i2c: E2 5F 00 6F 0C 80 15 02 00 57 00 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 00 00 1F [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 6F 0C 00 90 00 EF [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=50 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 02 00 2D A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 [00:15:24]Write to MH i2c: E2 35 00 70 0C 80 15 02 00 2D 00 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 00 00 79 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 70 0C 00 90 00 F0 [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=13 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 02 00 08 F4 03 04 00 1D 40 18 67 [00:15:24]Write to MH i2c: E2 10 00 71 0C 80 15 02 00 08 00 F4 03 04 00 1D 40 18 67 00 00 E4 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 71 0C 00 90 00 F1 [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=25 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 [00:15:24]Write to MH i2c: E2 1C 00 72 0C 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 00 00 4B [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:24]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [00:15:24]Read from MH i2c: E2 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 [00:15:24]MH_I2C_Read... [00:15:24]Read from MH i2c: E2 03 00 72 0C 00 90 00 F2 [00:15:24]RAPDU: 90 00 [00:15:24]wFMCommunicate OK [00:15:24]wFMCommunicate request_size=4 [00:15:24]MH_SAM_APDU [00:15:24]CAPDU: 80 15 03 00 [00:15:24]Write to MH i2c: E2 08 00 73 0C 80 15 03 00 00 00 00 00 00 [00:15:24]Write i2c OK [00:15:24]MH_I2C_Read... [00:15:25]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [00:15:25]Read from MH i2c: E2 [00:15:25]MH_I2C_Read... [00:15:25]Read from MH i2c: E2 38 00 [00:15:25]MH_I2C_Read... [00:15:25]Read from MH i2c: E2 38 00 73 0C 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E0 02 00 0E 04 04 00 CE 01 00 00 35 04 06 00 84 E6 9F AD D9 74 90 00 F9 [00:15:25]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E0 02 00 0E 04 04 00 CE 01 00 00 35 04 06 00 84 E6 9F AD D9 74 90 00 [00:15:25]wFMCommunicate OK [00:15:25]SAM_PROTO_ProcessDocument answer len = 51 [00:15:25]SAM_PROTO_ProcessDocument done [00:15:25]SetTLVBufToDocument [00:15:25]Processing tag 1209 (04B9) [00:15:25]Malloc new data [00:15:25]Processing tag 1041 (0411) [00:15:25]Processing tag 1040 (0410) [00:15:25]Malloc new data [00:15:25]Processing tag 1038 (040E) [00:15:25]Malloc new data [00:15:25]Processing tag 1077 (0435) [00:15:25]Malloc new data [00:15:25]SetTLVBufToDocument err=0 [00:15:25]KKMLoadAndSignOpenShiftData store KKM data [00:15:25]KKMLoadAndSignOpenShiftData err=0 [00:15:25]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Кадырбеков К. Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 Место: АЗС № 86 "Партнер Нефть" 23.10.2024 00:15 Смена: 462 РНМ: 0000000000100030 ЗНМ: 0300000155 ФД: 188542 ФМ: 0000000000965340 ФПД: 146126056315252 [00:15:25]StoreToDocumentArchive [00:15:25]shift 462 fd 188542 [00:15:25]Create dir for shift 0462 [00:15:25]save to /storage/0462/doc_00188542 [00:15:25]save last doc name /storage/0462/doc_00188542 to /storage/kkm_last_doc_name [00:15:25]save OK [00:15:25]Clear old archive folders... [00:15:25]Remove dir /storage/0461 [00:15:25]opendir ok [00:15:25]file . [00:15:25]file .. [00:15:25]file doc_00187971 [00:15:25]remove file /storage/0461/doc_00187971 [00:15:25]file doc_00187972 [00:15:25]remove file /storage/0461/doc_00187972 [00:15:25]file doc_00187973 [00:15:25]remove file /storage/0461/doc_00187973 [00:15:25]file doc_00187974 [00:15:25]remove file /storage/0461/doc_00187974 [00:15:25]file doc_00187975 [00:15:25]remove file /storage/0461/doc_00187975 [00:15:25]file doc_00187976 [00:15:25]remove file /storage/0461/doc_00187976 [00:15:25]file doc_00187977 [00:15:25]remove file /storage/0461/doc_00187977 [00:15:25]file doc_00187978 [00:15:25]remove file /storage/0461/doc_00187978 [00:15:25]file doc_00187979 [00:15:25]remove file /storage/0461/doc_00187979 [00:15:25]file doc_00187980 [00:15:25]remove file /storage/0461/doc_00187980 [00:15:25]file doc_00187981 [00:15:25]remove file /storage/0461/doc_00187981 [00:15:25]file doc_00187982 [00:15:25]remove file /storage/0461/doc_00187982 [00:15:25]file doc_00187983 [00:15:25]remove file /storage/0461/doc_00187983 [00:15:25]file doc_00187984 [00:15:25]remove file /storage/0461/doc_00187984 [00:15:25]file doc_00187985 [00:15:25]remove file /storage/0461/doc_00187985 [00:15:25]file doc_00187986 [00:15:25]remove file /storage/0461/doc_00187986 [00:15:25]file doc_00187987 [00:15:25]remove file /storage/0461/doc_00187987 [00:15:25]file doc_00187988 [00:15:25]remove file /storage/0461/doc_00187988 [00:15:25]file doc_00187989 [00:15:25]remove file /storage/0461/doc_00187989 [00:15:25]file doc_00187990 [00:15:25]remove file /storage/0461/doc_00187990 [00:15:25]file doc_00187991 [00:15:25]remove file /storage/0461/doc_00187991 [00:15:25]file doc_00187992 [00:15:25]remove file /storage/0461/doc_00187992 [00:15:25]file doc_00187993 [00:15:25]remove file /storage/0461/doc_00187993 [00:15:25]file doc_00187994 [00:15:25]remove file /storage/0461/doc_00187994 [00:15:25]file doc_00187995 [00:15:25]remove file /storage/0461/doc_00187995 [00:15:25]file doc_00187996 [00:15:25]remove file /storage/0461/doc_00187996 [00:15:25]file doc_00187997 [00:15:25]remove file /storage/0461/doc_00187997 [00:15:25]file doc_00187998 [00:15:25]remove file /storage/0461/doc_00187998 [00:15:25]file doc_00187999 [00:15:25]remove file /storage/0461/doc_00187999 [00:15:25]file doc_00188000 [00:15:25]remove file /storage/0461/doc_00188000 [00:15:25]file doc_00188001 [00:15:25]remove file /storage/0461/doc_00188001 [00:15:25]file doc_00188002 [00:15:25]remove file /storage/0461/doc_00188002 [00:15:25]file doc_00188003 [00:15:25]remove file /storage/0461/doc_00188003 [00:15:25]file doc_00188004 [00:15:25]remove file /storage/0461/doc_00188004 [00:15:25]file doc_00188005 [00:15:25]remove file /storage/0461/doc_00188005 [00:15:25]file doc_00188006 [00:15:25]remove file /storage/0461/doc_00188006 [00:15:25]file doc_00188007 [00:15:25]remove file /storage/0461/doc_00188007 [00:15:25]file doc_00188008 [00:15:25]remove file /storage/0461/doc_00188008 [00:15:25]file doc_00188009 [00:15:25]remove file /storage/0461/doc_00188009 [00:15:25]file doc_00188010 [00:15:25]remove file /storage/0461/doc_00188010 [00:15:25]file doc_00188011 [00:15:25]remove file /storage/0461/doc_00188011 [00:15:25]file doc_00188012 [00:15:25]remove file /storage/0461/doc_00188012 [00:15:25]file doc_00188013 [00:15:25]remove file /storage/0461/doc_00188013 [00:15:25]file doc_00188014 [00:15:25]remove file /storage/0461/doc_00188014 [00:15:25]file doc_00188015 [00:15:25]remove file /storage/0461/doc_00188015 [00:15:25]file doc_00188016 [00:15:25]remove file /storage/0461/doc_00188016 [00:15:25]file doc_00188017 [00:15:25]remove file /storage/0461/doc_00188017 [00:15:25]file doc_00188018 [00:15:25]remove file /storage/0461/doc_00188018 [00:15:25]file doc_00188019 [00:15:25]remove file /storage/0461/doc_00188019 [00:15:25]file doc_00188020 [00:15:25]remove file /storage/0461/doc_00188020 [00:15:25]file doc_00188021 [00:15:25]remove file /storage/0461/doc_00188021 [00:15:25]file doc_00188022 [00:15:25]remove file /storage/0461/doc_00188022 [00:15:25]file doc_00188023 [00:15:25]remove file /storage/0461/doc_00188023 [00:15:25]file doc_00188024 [00:15:25]remove file /storage/0461/doc_00188024 [00:15:25]file doc_00188025 [00:15:25]remove file /storage/0461/doc_00188025 [00:15:25]file doc_00188026 [00:15:25]remove file /storage/0461/doc_00188026 [00:15:25]file doc_00188027 [00:15:25]remove file /storage/0461/doc_00188027 [00:15:25]file doc_00188028 [00:15:25]remove file /storage/0461/doc_00188028 [00:15:25]file doc_00188029 [00:15:25]remove file /storage/0461/doc_00188029 [00:15:25]file doc_00188030 [00:15:25]remove file /storage/0461/doc_00188030 [00:15:25]file doc_00188031 [00:15:25]remove file /storage/0461/doc_00188031 [00:15:25]file doc_00188032 [00:15:25]remove file /storage/0461/doc_00188032 [00:15:25]file doc_00188033 [00:15:25]remove file /storage/0461/doc_00188033 [00:15:25]file doc_00188034 [00:15:25]remove file /storage/0461/doc_00188034 [00:15:25]file doc_00188035 [00:15:25]remove file /storage/0461/doc_00188035 [00:15:25]file doc_00188036 [00:15:25]remove file /storage/0461/doc_00188036 [00:15:25]file doc_00188037 [00:15:25]remove file /storage/0461/doc_00188037 [00:15:25]file doc_00188038 [00:15:25]remove file /storage/0461/doc_00188038 [00:15:25]file doc_00188039 [00:15:25]remove file /storage/0461/doc_00188039 [00:15:25]file doc_00188040 [00:15:25]remove file /storage/0461/doc_00188040 [00:15:25]file doc_00188041 [00:15:25]remove file /storage/0461/doc_00188041 [00:15:25]file doc_00188042 [00:15:25]remove file /storage/0461/doc_00188042 [00:15:25]file doc_00188043 [00:15:25]remove file /storage/0461/doc_00188043 [00:15:25]file doc_00188044 [00:15:25]remove file /storage/0461/doc_00188044 [00:15:25]file doc_00188045 [00:15:25]remove file /storage/0461/doc_00188045 [00:15:25]file doc_00188046 [00:15:25]remove file /storage/0461/doc_00188046 [00:15:25]file doc_00188047 [00:15:25]remove file /storage/0461/doc_00188047 [00:15:25]file doc_00188048 [00:15:25]remove file /storage/0461/doc_00188048 [00:15:25]file doc_00188049 [00:15:25]remove file /storage/0461/doc_00188049 [00:15:25]file doc_00188050 [00:15:25]remove file /storage/0461/doc_00188050 [00:15:25]file doc_00188051 [00:15:25]remove file /storage/0461/doc_00188051 [00:15:25]file doc_00188052 [00:15:25]remove file /storage/0461/doc_00188052 [00:15:25]file doc_00188053 [00:15:25]remove file /storage/0461/doc_00188053 [00:15:25]file doc_00188054 [00:15:25]remove file /storage/0461/doc_00188054 [00:15:25]file doc_00188055 [00:15:25]remove file /storage/0461/doc_00188055 [00:15:25]file doc_00188056 [00:15:25]remove file /storage/0461/doc_00188056 [00:15:25]file doc_00188057 [00:15:25]remove file /storage/0461/doc_00188057 [00:15:25]file doc_00188058 [00:15:25]remove file /storage/0461/doc_00188058 [00:15:25]file doc_00188059 [00:15:25]remove file /storage/0461/doc_00188059 [00:15:25]file doc_00188060 [00:15:25]remove file /storage/0461/doc_00188060 [00:15:25]file doc_00188061 [00:15:25]remove file /storage/0461/doc_00188061 [00:15:25]file doc_00188062 [00:15:25]remove file /storage/0461/doc_00188062 [00:15:25]file doc_00188063 [00:15:25]remove file /storage/0461/doc_00188063 [00:15:25]file doc_00188064 [00:15:25]remove file /storage/0461/doc_00188064 [00:15:25]file doc_00188065 [00:15:25]remove file /storage/0461/doc_00188065 [00:15:25]file doc_00188066 [00:15:25]remove file /storage/0461/doc_00188066 [00:15:25]file doc_00188067 [00:15:25]remove file /storage/0461/doc_00188067 [00:15:25]file doc_00188068 [00:15:25]remove file /storage/0461/doc_00188068 [00:15:25]file doc_00188069 [00:15:25]remove file /storage/0461/doc_00188069 [00:15:25]file doc_00188070 [00:15:25]remove file /storage/0461/doc_00188070 [00:15:25]file doc_00188071 [00:15:25]remove file /storage/0461/doc_00188071 [00:15:25]file doc_00188072 [00:15:25]remove file /storage/0461/doc_00188072 [00:15:25]file doc_00188073 [00:15:25]remove file /storage/0461/doc_00188073 [00:15:25]file doc_00188074 [00:15:25]remove file /storage/0461/doc_00188074 [00:15:25]file doc_00188075 [00:15:25]remove file /storage/0461/doc_00188075 [00:15:25]file doc_00188076 [00:15:25]remove file /storage/0461/doc_00188076 [00:15:25]file doc_00188077 [00:15:25]remove file /storage/0461/doc_00188077 [00:15:25]file doc_00188078 [00:15:25]remove file /storage/0461/doc_00188078 [00:15:25]file doc_00188079 [00:15:25]remove file /storage/0461/doc_00188079 [00:15:25]file doc_00188080 [00:15:25]remove file /storage/0461/doc_00188080 [00:15:25]file doc_00188081 [00:15:25]remove file /storage/0461/doc_00188081 [00:15:25]file doc_00188082 [00:15:25]remove file /storage/0461/doc_00188082 [00:15:25]file doc_00188083 [00:15:25]remove file /storage/0461/doc_00188083 [00:15:25]file doc_00188084 [00:15:25]remove file /storage/0461/doc_00188084 [00:15:25]file doc_00188085 [00:15:25]remove file /storage/0461/doc_00188085 [00:15:25]file doc_00188086 [00:15:25]remove file /storage/0461/doc_00188086 [00:15:25]file doc_00188087 [00:15:25]remove file /storage/0461/doc_00188087 [00:15:25]file doc_00188088 [00:15:25]remove file /storage/0461/doc_00188088 [00:15:25]file doc_00188089 [00:15:25]remove file /storage/0461/doc_00188089 [00:15:25]file doc_00188090 [00:15:25]remove file /storage/0461/doc_00188090 [00:15:25]file doc_00188091 [00:15:25]remove file /storage/0461/doc_00188091 [00:15:25]file doc_00188092 [00:15:25]remove file /storage/0461/doc_00188092 [00:15:25]file doc_00188093 [00:15:25]remove file /storage/0461/doc_00188093 [00:15:25]file doc_00188094 [00:15:25]remove file /storage/0461/doc_00188094 [00:15:25]file doc_00188095 [00:15:25]remove file /storage/0461/doc_00188095 [00:15:25]file doc_00188096 [00:15:25]remove file /storage/0461/doc_00188096 [00:15:25]file doc_00188097 [00:15:25]remove file /storage/0461/doc_00188097 [00:15:25]file doc_00188098 [00:15:25]remove file /storage/0461/doc_00188098 [00:15:25]file doc_00188099 [00:15:25]remove file /storage/0461/doc_00188099 [00:15:25]file doc_00188100 [00:15:25]remove file /storage/0461/doc_00188100 [00:15:25]file doc_00188101 [00:15:25]remove file /storage/0461/doc_00188101 [00:15:25]file doc_00188102 [00:15:25]remove file /storage/0461/doc_00188102 [00:15:25]file doc_00188103 [00:15:25]remove file /storage/0461/doc_00188103 [00:15:25]file doc_00188104 [00:15:25]remove file /storage/0461/doc_00188104 [00:15:25]file doc_00188105 [00:15:25]remove file /storage/0461/doc_00188105 [00:15:26]file doc_00188106 [00:15:26]remove file /storage/0461/doc_00188106 [00:15:26]file doc_00188107 [00:15:26]remove file /storage/0461/doc_00188107 [00:15:26]OFD Sender: No OFD packet to send [00:15:26]file doc_00188108 [00:15:26]remove file /storage/0461/doc_00188108 [00:15:26]file doc_00188109 [00:15:26]remove file /storage/0461/doc_00188109 [00:15:26]file doc_00188110 [00:15:26]remove file /storage/0461/doc_00188110 [00:15:26]file doc_00188111 [00:15:26]remove file /storage/0461/doc_00188111 [00:15:26]file doc_00188112 [00:15:26]remove file /storage/0461/doc_00188112 [00:15:26]file doc_00188113 [00:15:26]remove file /storage/0461/doc_00188113 [00:15:26]file doc_00188114 [00:15:26]remove file /storage/0461/doc_00188114 [00:15:26]file doc_00188115 [00:15:26]remove file /storage/0461/doc_00188115 [00:15:26]file doc_00188116 [00:15:26]remove file /storage/0461/doc_00188116 [00:15:26]file doc_00188117 [00:15:26]remove file /storage/0461/doc_00188117 [00:15:26]file doc_00188118 [00:15:26]remove file /storage/0461/doc_00188118 [00:15:26]file doc_00188119 [00:15:26]remove file /storage/0461/doc_00188119 [00:15:26]file doc_00188120 [00:15:26]remove file /storage/0461/doc_00188120 [00:15:26]file doc_00188121 [00:15:26]remove file /storage/0461/doc_00188121 [00:15:26]file doc_00188122 [00:15:26]remove file /storage/0461/doc_00188122 [00:15:26]file doc_00188123 [00:15:26]remove file /storage/0461/doc_00188123 [00:15:26]file doc_00188124 [00:15:26]remove file /storage/0461/doc_00188124 [00:15:26]file doc_00188125 [00:15:26]remove file /storage/0461/doc_00188125 [00:15:26]file doc_00188126 [00:15:26]remove file /storage/0461/doc_00188126 [00:15:26]file doc_00188127 [00:15:26]remove file /storage/0461/doc_00188127 [00:15:26]file doc_00188128 [00:15:26]remove file /storage/0461/doc_00188128 [00:15:26]file doc_00188129 [00:15:26]remove file /storage/0461/doc_00188129 [00:15:26]file doc_00188130 [00:15:26]remove file /storage/0461/doc_00188130 [00:15:26]file doc_00188131 [00:15:26]remove file /storage/0461/doc_00188131 [00:15:26]file doc_00188132 [00:15:26]remove file /storage/0461/doc_00188132 [00:15:26]file doc_00188133 [00:15:26]remove file /storage/0461/doc_00188133 [00:15:26]file doc_00188134 [00:15:26]remove file /storage/0461/doc_00188134 [00:15:26]file doc_00188135 [00:15:26]remove file /storage/0461/doc_00188135 [00:15:26]file doc_00188136 [00:15:26]remove file /storage/0461/doc_00188136 [00:15:26]file doc_00188137 [00:15:26]remove file /storage/0461/doc_00188137 [00:15:26]file doc_00188138 [00:15:26]remove file /storage/0461/doc_00188138 [00:15:26]file doc_00188139 [00:15:26]remove file /storage/0461/doc_00188139 [00:15:26]file doc_00188140 [00:15:26]remove file /storage/0461/doc_00188140 [00:15:26]file doc_00188141 [00:15:26]remove file /storage/0461/doc_00188141 [00:15:26]file doc_00188142 [00:15:26]remove file /storage/0461/doc_00188142 [00:15:26]file doc_00188143 [00:15:26]remove file /storage/0461/doc_00188143 [00:15:26]file doc_00188144 [00:15:26]remove file /storage/0461/doc_00188144 [00:15:26]file doc_00188145 [00:15:26]remove file /storage/0461/doc_00188145 [00:15:26]file doc_00188146 [00:15:26]remove file /storage/0461/doc_00188146 [00:15:26]file doc_00188147 [00:15:26]remove file /storage/0461/doc_00188147 [00:15:26]file doc_00188148 [00:15:26]remove file /storage/0461/doc_00188148 [00:15:26]file doc_00188149 [00:15:26]remove file /storage/0461/doc_00188149 [00:15:26]file doc_00188150 [00:15:26]remove file /storage/0461/doc_00188150 [00:15:26]file doc_00188151 [00:15:26]remove file /storage/0461/doc_00188151 [00:15:26]file doc_00188152 [00:15:26]remove file /storage/0461/doc_00188152 [00:15:26]file doc_00188153 [00:15:26]remove file /storage/0461/doc_00188153 [00:15:26]file doc_00188154 [00:15:26]remove file /storage/0461/doc_00188154 [00:15:26]file doc_00188155 [00:15:26]remove file /storage/0461/doc_00188155 [00:15:26]file doc_00188156 [00:15:26]remove file /storage/0461/doc_00188156 [00:15:26]file doc_00188157 [00:15:26]remove file /storage/0461/doc_00188157 [00:15:26]file doc_00188158 [00:15:26]remove file /storage/0461/doc_00188158 [00:15:26]file doc_00188159 [00:15:26]remove file /storage/0461/doc_00188159 [00:15:26]file doc_00188160 [00:15:26]remove file /storage/0461/doc_00188160 [00:15:26]file doc_00188161 [00:15:26]remove file /storage/0461/doc_00188161 [00:15:26]file doc_00188162 [00:15:26]remove file /storage/0461/doc_00188162 [00:15:26]file doc_00188163 [00:15:26]remove file /storage/0461/doc_00188163 [00:15:26]file doc_00188164 [00:15:26]remove file /storage/0461/doc_00188164 [00:15:26]file doc_00188165 [00:15:26]remove file /storage/0461/doc_00188165 [00:15:26]file doc_00188166 [00:15:26]remove file /storage/0461/doc_00188166 [00:15:26]file doc_00188167 [00:15:26]remove file /storage/0461/doc_00188167 [00:15:26]file doc_00188168 [00:15:26]remove file /storage/0461/doc_00188168 [00:15:26]file doc_00188169 [00:15:26]remove file /storage/0461/doc_00188169 [00:15:26]file doc_00188170 [00:15:26]remove file /storage/0461/doc_00188170 [00:15:26]file doc_00188171 [00:15:26]remove file /storage/0461/doc_00188171 [00:15:26]file doc_00188172 [00:15:26]remove file /storage/0461/doc_00188172 [00:15:26]file doc_00188173 [00:15:26]remove file /storage/0461/doc_00188173 [00:15:26]file doc_00188174 [00:15:26]remove file /storage/0461/doc_00188174 [00:15:26]file doc_00188175 [00:15:26]remove file /storage/0461/doc_00188175 [00:15:26]file doc_00188176 [00:15:26]remove file /storage/0461/doc_00188176 [00:15:26]file doc_00188177 [00:15:26]remove file /storage/0461/doc_00188177 [00:15:26]file doc_00188178 [00:15:26]remove file /storage/0461/doc_00188178 [00:15:26]file doc_00188179 [00:15:26]remove file /storage/0461/doc_00188179 [00:15:26]file doc_00188180 [00:15:26]remove file /storage/0461/doc_00188180 [00:15:26]file doc_00188181 [00:15:26]remove file /storage/0461/doc_00188181 [00:15:26]file doc_00188182 [00:15:26]remove file /storage/0461/doc_00188182 [00:15:26]file doc_00188183 [00:15:26]remove file /storage/0461/doc_00188183 [00:15:26]file doc_00188184 [00:15:26]remove file /storage/0461/doc_00188184 [00:15:26]file doc_00188185 [00:15:26]remove file /storage/0461/doc_00188185 [00:15:26]file doc_00188186 [00:15:26]remove file /storage/0461/doc_00188186 [00:15:26]file doc_00188187 [00:15:26]remove file /storage/0461/doc_00188187 [00:15:26]file doc_00188188 [00:15:26]remove file /storage/0461/doc_00188188 [00:15:26]file doc_00188189 [00:15:26]remove file /storage/0461/doc_00188189 [00:15:26]file doc_00188190 [00:15:26]remove file /storage/0461/doc_00188190 [00:15:26]file doc_00188191 [00:15:26]remove file /storage/0461/doc_00188191 [00:15:26]file doc_00188192 [00:15:26]remove file /storage/0461/doc_00188192 [00:15:26]file doc_00188193 [00:15:26]remove file /storage/0461/doc_00188193 [00:15:26]file doc_00188194 [00:15:26]remove file /storage/0461/doc_00188194 [00:15:26]file doc_00188195 [00:15:26]remove file /storage/0461/doc_00188195 [00:15:26]file doc_00188196 [00:15:26]remove file /storage/0461/doc_00188196 [00:15:26]file doc_00188197 [00:15:26]remove file /storage/0461/doc_00188197 [00:15:26]file doc_00188198 [00:15:26]remove file /storage/0461/doc_00188198 [00:15:26]file doc_00188199 [00:15:26]remove file /storage/0461/doc_00188199 [00:15:26]file doc_00188200 [00:15:26]remove file /storage/0461/doc_00188200 [00:15:26]file doc_00188201 [00:15:26]remove file /storage/0461/doc_00188201 [00:15:26]file doc_00188202 [00:15:26]remove file /storage/0461/doc_00188202 [00:15:26]file doc_00188203 [00:15:26]remove file /storage/0461/doc_00188203 [00:15:26]file doc_00188204 [00:15:26]remove file /storage/0461/doc_00188204 [00:15:26]file doc_00188205 [00:15:26]remove file /storage/0461/doc_00188205 [00:15:26]file doc_00188206 [00:15:26]remove file /storage/0461/doc_00188206 [00:15:26]file doc_00188207 [00:15:26]remove file /storage/0461/doc_00188207 [00:15:26]file doc_00188208 [00:15:26]remove file /storage/0461/doc_00188208 [00:15:26]file doc_00188209 [00:15:26]remove file /storage/0461/doc_00188209 [00:15:26]file doc_00188210 [00:15:26]remove file /storage/0461/doc_00188210 [00:15:26]file doc_00188211 [00:15:26]remove file /storage/0461/doc_00188211 [00:15:26]file doc_00188212 [00:15:26]remove file /storage/0461/doc_00188212 [00:15:26]file doc_00188213 [00:15:26]remove file /storage/0461/doc_00188213 [00:15:26]file doc_00188214 [00:15:26]remove file /storage/0461/doc_00188214 [00:15:26]file doc_00188215 [00:15:26]remove file /storage/0461/doc_00188215 [00:15:26]file doc_00188216 [00:15:26]remove file /storage/0461/doc_00188216 [00:15:26]file doc_00188217 [00:15:26]remove file /storage/0461/doc_00188217 [00:15:26]file doc_00188218 [00:15:26]remove file /storage/0461/doc_00188218 [00:15:26]file doc_00188219 [00:15:26]remove file /storage/0461/doc_00188219 [00:15:26]file doc_00188220 [00:15:26]remove file /storage/0461/doc_00188220 [00:15:26]file doc_00188221 [00:15:26]remove file /storage/0461/doc_00188221 [00:15:26]file doc_00188222 [00:15:26]remove file /storage/0461/doc_00188222 [00:15:26]file doc_00188223 [00:15:26]remove file /storage/0461/doc_00188223 [00:15:26]file doc_00188224 [00:15:26]remove file /storage/0461/doc_00188224 [00:15:26]file doc_00188225 [00:15:26]remove file /storage/0461/doc_00188225 [00:15:26]file doc_00188226 [00:15:26]remove file /storage/0461/doc_00188226 [00:15:26]file doc_00188227 [00:15:26]remove file /storage/0461/doc_00188227 [00:15:26]file doc_00188228 [00:15:26]remove file /storage/0461/doc_00188228 [00:15:26]file doc_00188229 [00:15:26]remove file /storage/0461/doc_00188229 [00:15:26]file doc_00188230 [00:15:26]remove file /storage/0461/doc_00188230 [00:15:26]file doc_00188231 [00:15:26]remove file /storage/0461/doc_00188231 [00:15:26]file doc_00188232 [00:15:26]remove file /storage/0461/doc_00188232 [00:15:26]file doc_00188233 [00:15:26]remove file /storage/0461/doc_00188233 [00:15:26]file doc_00188234 [00:15:26]remove file /storage/0461/doc_00188234 [00:15:26]file doc_00188235 [00:15:26]remove file /storage/0461/doc_00188235 [00:15:26]file doc_00188236 [00:15:26]remove file /storage/0461/doc_00188236 [00:15:26]file doc_00188237 [00:15:26]remove file /storage/0461/doc_00188237 [00:15:26]file doc_00188238 [00:15:26]remove file /storage/0461/doc_00188238 [00:15:26]file doc_00188239 [00:15:26]remove file /storage/0461/doc_00188239 [00:15:26]file doc_00188240 [00:15:26]remove file /storage/0461/doc_00188240 [00:15:26]file doc_00188241 [00:15:26]remove file /storage/0461/doc_00188241 [00:15:26]file doc_00188242 [00:15:26]remove file /storage/0461/doc_00188242 [00:15:26]file doc_00188243 [00:15:26]remove file /storage/0461/doc_00188243 [00:15:26]file doc_00188244 [00:15:26]remove file /storage/0461/doc_00188244 [00:15:26]file doc_00188245 [00:15:26]remove file /storage/0461/doc_00188245 [00:15:26]file doc_00188246 [00:15:26]remove file /storage/0461/doc_00188246 [00:15:26]file doc_00188247 [00:15:26]remove file /storage/0461/doc_00188247 [00:15:26]file doc_00188248 [00:15:26]remove file /storage/0461/doc_00188248 [00:15:26]file doc_00188249 [00:15:26]remove file /storage/0461/doc_00188249 [00:15:26]file doc_00188250 [00:15:26]remove file /storage/0461/doc_00188250 [00:15:26]file doc_00188251 [00:15:26]remove file /storage/0461/doc_00188251 [00:15:26]file doc_00188252 [00:15:26]remove file /storage/0461/doc_00188252 [00:15:26]file doc_00188253 [00:15:26]remove file /storage/0461/doc_00188253 [00:15:26]file doc_00188254 [00:15:26]remove file /storage/0461/doc_00188254 [00:15:26]file doc_00188255 [00:15:26]remove file /storage/0461/doc_00188255 [00:15:26]file doc_00188256 [00:15:26]remove file /storage/0461/doc_00188256 [00:15:26]file doc_00188257 [00:15:26]remove file /storage/0461/doc_00188257 [00:15:26]file doc_00188258 [00:15:26]remove file /storage/0461/doc_00188258 [00:15:26]file doc_00188259 [00:15:26]remove file /storage/0461/doc_00188259 [00:15:26]file doc_00188260 [00:15:26]remove file /storage/0461/doc_00188260 [00:15:26]file doc_00188261 [00:15:26]remove file /storage/0461/doc_00188261 [00:15:26]file doc_00188262 [00:15:26]remove file /storage/0461/doc_00188262 [00:15:26]file doc_00188263 [00:15:26]remove file /storage/0461/doc_00188263 [00:15:26]file doc_00188264 [00:15:26]remove file /storage/0461/doc_00188264 [00:15:26]file doc_00188265 [00:15:26]remove file /storage/0461/doc_00188265 [00:15:26]file doc_00188266 [00:15:26]remove file /storage/0461/doc_00188266 [00:15:26]file doc_00188267 [00:15:26]remove file /storage/0461/doc_00188267 [00:15:26]file doc_00188268 [00:15:26]remove file /storage/0461/doc_00188268 [00:15:26]file doc_00188269 [00:15:26]remove file /storage/0461/doc_00188269 [00:15:26]file doc_00188270 [00:15:26]remove file /storage/0461/doc_00188270 [00:15:26]file doc_00188271 [00:15:26]remove file /storage/0461/doc_00188271 [00:15:26]file doc_00188272 [00:15:26]remove file /storage/0461/doc_00188272 [00:15:26]file doc_00188273 [00:15:26]remove file /storage/0461/doc_00188273 [00:15:26]file doc_00188274 [00:15:26]remove file /storage/0461/doc_00188274 [00:15:26]file doc_00188275 [00:15:26]remove file /storage/0461/doc_00188275 [00:15:26]file doc_00188276 [00:15:26]remove file /storage/0461/doc_00188276 [00:15:26]file doc_00188277 [00:15:26]remove file /storage/0461/doc_00188277 [00:15:26]file doc_00188278 [00:15:26]remove file /storage/0461/doc_00188278 [00:15:26]file doc_00188279 [00:15:26]remove file /storage/0461/doc_00188279 [00:15:26]file doc_00188280 [00:15:26]remove file /storage/0461/doc_00188280 [00:15:26]file doc_00188281 [00:15:26]remove file /storage/0461/doc_00188281 [00:15:26]file doc_00188282 [00:15:26]remove file /storage/0461/doc_00188282 [00:15:26]file doc_00188283 [00:15:26]remove file /storage/0461/doc_00188283 [00:15:26]file doc_00188284 [00:15:26]remove file /storage/0461/doc_00188284 [00:15:26]file doc_00188285 [00:15:26]remove file /storage/0461/doc_00188285 [00:15:26]file doc_00188286 [00:15:26]remove file /storage/0461/doc_00188286 [00:15:26]file doc_00188287 [00:15:26]remove file /storage/0461/doc_00188287 [00:15:26]file doc_00188288 [00:15:26]remove file /storage/0461/doc_00188288 [00:15:26]file doc_00188289 [00:15:26]remove file /storage/0461/doc_00188289 [00:15:26]file doc_00188290 [00:15:26]remove file /storage/0461/doc_00188290 [00:15:26]file doc_00188291 [00:15:26]remove file /storage/0461/doc_00188291 [00:15:26]file doc_00188292 [00:15:26]remove file /storage/0461/doc_00188292 [00:15:26]file doc_00188293 [00:15:26]remove file /storage/0461/doc_00188293 [00:15:26]file doc_00188294 [00:15:26]remove file /storage/0461/doc_00188294 [00:15:26]file doc_00188295 [00:15:26]remove file /storage/0461/doc_00188295 [00:15:26]file doc_00188296 [00:15:26]remove file /storage/0461/doc_00188296 [00:15:27]file doc_00188297 [00:15:27]remove file /storage/0461/doc_00188297 [00:15:27]file doc_00188298 [00:15:27]remove file /storage/0461/doc_00188298 [00:15:27]file doc_00188299 [00:15:27]remove file /storage/0461/doc_00188299 [00:15:27]file doc_00188300 [00:15:27]remove file /storage/0461/doc_00188300 [00:15:27]file doc_00188301 [00:15:27]remove file /storage/0461/doc_00188301 [00:15:27]file doc_00188302 [00:15:27]remove file /storage/0461/doc_00188302 [00:15:27]file doc_00188303 [00:15:27]remove file /storage/0461/doc_00188303 [00:15:27]file doc_00188304 [00:15:27]remove file /storage/0461/doc_00188304 [00:15:27]file doc_00188305 [00:15:27]remove file /storage/0461/doc_00188305 [00:15:27]file doc_00188306 [00:15:27]remove file /storage/0461/doc_00188306 [00:15:27]file doc_00188307 [00:15:27]remove file /storage/0461/doc_00188307 [00:15:27]file doc_00188308 [00:15:27]remove file /storage/0461/doc_00188308 [00:15:27]file doc_00188309 [00:15:27]remove file /storage/0461/doc_00188309 [00:15:27]file doc_00188310 [00:15:27]remove file /storage/0461/doc_00188310 [00:15:27]file doc_00188311 [00:15:27]remove file /storage/0461/doc_00188311 [00:15:27]file doc_00188312 [00:15:27]remove file /storage/0461/doc_00188312 [00:15:27]file doc_00188313 [00:15:27]remove file /storage/0461/doc_00188313 [00:15:27]file doc_00188314 [00:15:27]remove file /storage/0461/doc_00188314 [00:15:27]file doc_00188315 [00:15:27]remove file /storage/0461/doc_00188315 [00:15:27]file doc_00188316 [00:15:27]remove file /storage/0461/doc_00188316 [00:15:27]file doc_00188317 [00:15:27]remove file /storage/0461/doc_00188317 [00:15:27]file doc_00188318 [00:15:27]remove file /storage/0461/doc_00188318 [00:15:27]file doc_00188319 [00:15:27]remove file /storage/0461/doc_00188319 [00:15:27]file doc_00188320 [00:15:27]remove file /storage/0461/doc_00188320 [00:15:27]file doc_00188321 [00:15:27]remove file /storage/0461/doc_00188321 [00:15:27]file doc_00188322 [00:15:27]remove file /storage/0461/doc_00188322 [00:15:27]file doc_00188323 [00:15:27]remove file /storage/0461/doc_00188323 [00:15:27]file doc_00188324 [00:15:27]remove file /storage/0461/doc_00188324 [00:15:27]file doc_00188325 [00:15:27]remove file /storage/0461/doc_00188325 [00:15:27]file doc_00188326 [00:15:27]remove file /storage/0461/doc_00188326 [00:15:27]file doc_00188327 [00:15:27]remove file /storage/0461/doc_00188327 [00:15:27]file doc_00188328 [00:15:27]remove file /storage/0461/doc_00188328 [00:15:27]file doc_00188329 [00:15:27]remove file /storage/0461/doc_00188329 [00:15:27]file doc_00188330 [00:15:27]remove file /storage/0461/doc_00188330 [00:15:27]file doc_00188331 [00:15:27]remove file /storage/0461/doc_00188331 [00:15:27]file doc_00188332 [00:15:27]remove file /storage/0461/doc_00188332 [00:15:27]file doc_00188333 [00:15:27]remove file /storage/0461/doc_00188333 [00:15:27]file doc_00188334 [00:15:27]remove file /storage/0461/doc_00188334 [00:15:27]file doc_00188335 [00:15:27]remove file /storage/0461/doc_00188335 [00:15:27]file doc_00188336 [00:15:27]remove file /storage/0461/doc_00188336 [00:15:27]file doc_00188337 [00:15:27]remove file /storage/0461/doc_00188337 [00:15:27]file doc_00188338 [00:15:27]remove file /storage/0461/doc_00188338 [00:15:27]file doc_00188339 [00:15:27]remove file /storage/0461/doc_00188339 [00:15:27]file doc_00188340 [00:15:27]remove file /storage/0461/doc_00188340 [00:15:27]file doc_00188341 [00:15:27]remove file /storage/0461/doc_00188341 [00:15:27]file doc_00188342 [00:15:27]remove file /storage/0461/doc_00188342 [00:15:27]file doc_00188343 [00:15:27]remove file /storage/0461/doc_00188343 [00:15:27]file doc_00188344 [00:15:27]remove file /storage/0461/doc_00188344 [00:15:27]file doc_00188345 [00:15:27]remove file /storage/0461/doc_00188345 [00:15:27]file doc_00188346 [00:15:27]remove file /storage/0461/doc_00188346 [00:15:27]file doc_00188347 [00:15:27]remove file /storage/0461/doc_00188347 [00:15:27]file doc_00188348 [00:15:27]remove file /storage/0461/doc_00188348 [00:15:27]file doc_00188349 [00:15:27]remove file /storage/0461/doc_00188349 [00:15:27]file doc_00188350 [00:15:27]remove file /storage/0461/doc_00188350 [00:15:27]file doc_00188351 [00:15:27]remove file /storage/0461/doc_00188351 [00:15:27]file doc_00188352 [00:15:27]remove file /storage/0461/doc_00188352 [00:15:27]file doc_00188353 [00:15:27]remove file /storage/0461/doc_00188353 [00:15:27]file doc_00188354 [00:15:27]remove file /storage/0461/doc_00188354 [00:15:27]file doc_00188355 [00:15:27]remove file /storage/0461/doc_00188355 [00:15:27]file doc_00188356 [00:15:27]remove file /storage/0461/doc_00188356 [00:15:27]file doc_00188357 [00:15:27]remove file /storage/0461/doc_00188357 [00:15:27]file doc_00188358 [00:15:27]remove file /storage/0461/doc_00188358 [00:15:27]file doc_00188359 [00:15:27]remove file /storage/0461/doc_00188359 [00:15:27]file doc_00188360 [00:15:27]remove file /storage/0461/doc_00188360 [00:15:27]file doc_00188361 [00:15:27]remove file /storage/0461/doc_00188361 [00:15:27]file doc_00188362 [00:15:27]remove file /storage/0461/doc_00188362 [00:15:27]file doc_00188363 [00:15:27]remove file /storage/0461/doc_00188363 [00:15:27]file doc_00188364 [00:15:27]remove file /storage/0461/doc_00188364 [00:15:27]file doc_00188365 [00:15:27]remove file /storage/0461/doc_00188365 [00:15:27]file doc_00188366 [00:15:27]remove file /storage/0461/doc_00188366 [00:15:27]file doc_00188367 [00:15:27]remove file /storage/0461/doc_00188367 [00:15:27]file doc_00188368 [00:15:27]remove file /storage/0461/doc_00188368 [00:15:27]file doc_00188369 [00:15:27]remove file /storage/0461/doc_00188369 [00:15:27]file doc_00188370 [00:15:27]remove file /storage/0461/doc_00188370 [00:15:27]file doc_00188371 [00:15:27]remove file /storage/0461/doc_00188371 [00:15:27]file doc_00188372 [00:15:27]remove file /storage/0461/doc_00188372 [00:15:27]file doc_00188373 [00:15:27]remove file /storage/0461/doc_00188373 [00:15:27]file doc_00188374 [00:15:27]remove file /storage/0461/doc_00188374 [00:15:27]file doc_00188375 [00:15:27]remove file /storage/0461/doc_00188375 [00:15:27]file doc_00188376 [00:15:27]remove file /storage/0461/doc_00188376 [00:15:27]file doc_00188377 [00:15:27]remove file /storage/0461/doc_00188377 [00:15:27]file doc_00188378 [00:15:27]remove file /storage/0461/doc_00188378 [00:15:27]file doc_00188379 [00:15:27]remove file /storage/0461/doc_00188379 [00:15:27]file doc_00188380 [00:15:27]remove file /storage/0461/doc_00188380 [00:15:27]file doc_00188381 [00:15:27]remove file /storage/0461/doc_00188381 [00:15:27]file doc_00188382 [00:15:27]remove file /storage/0461/doc_00188382 [00:15:27]file doc_00188383 [00:15:27]remove file /storage/0461/doc_00188383 [00:15:27]file doc_00188384 [00:15:27]remove file /storage/0461/doc_00188384 [00:15:27]file doc_00188385 [00:15:27]remove file /storage/0461/doc_00188385 [00:15:27]file doc_00188386 [00:15:27]remove file /storage/0461/doc_00188386 [00:15:27]file doc_00188387 [00:15:27]remove file /storage/0461/doc_00188387 [00:15:27]file doc_00188388 [00:15:27]remove file /storage/0461/doc_00188388 [00:15:27]file doc_00188389 [00:15:27]remove file /storage/0461/doc_00188389 [00:15:27]file doc_00188390 [00:15:27]remove file /storage/0461/doc_00188390 [00:15:27]file doc_00188391 [00:15:27]remove file /storage/0461/doc_00188391 [00:15:27]file doc_00188392 [00:15:27]remove file /storage/0461/doc_00188392 [00:15:27]file doc_00188393 [00:15:27]remove file /storage/0461/doc_00188393 [00:15:27]file doc_00188394 [00:15:27]remove file /storage/0461/doc_00188394 [00:15:27]file doc_00188395 [00:15:27]remove file /storage/0461/doc_00188395 [00:15:27]file doc_00188396 [00:15:27]remove file /storage/0461/doc_00188396 [00:15:27]file doc_00188397 [00:15:27]remove file /storage/0461/doc_00188397 [00:15:27]file doc_00188398 [00:15:27]remove file /storage/0461/doc_00188398 [00:15:27]file doc_00188399 [00:15:27]remove file /storage/0461/doc_00188399 [00:15:27]file doc_00188400 [00:15:27]remove file /storage/0461/doc_00188400 [00:15:27]file doc_00188401 [00:15:27]remove file /storage/0461/doc_00188401 [00:15:27]file doc_00188402 [00:15:27]remove file /storage/0461/doc_00188402 [00:15:27]file doc_00188403 [00:15:27]remove file /storage/0461/doc_00188403 [00:15:27]file doc_00188404 [00:15:27]remove file /storage/0461/doc_00188404 [00:15:27]file doc_00188405 [00:15:27]remove file /storage/0461/doc_00188405 [00:15:27]file doc_00188406 [00:15:27]remove file /storage/0461/doc_00188406 [00:15:27]file doc_00188407 [00:15:27]remove file /storage/0461/doc_00188407 [00:15:27]file doc_00188408 [00:15:27]remove file /storage/0461/doc_00188408 [00:15:27]file doc_00188409 [00:15:27]remove file /storage/0461/doc_00188409 [00:15:27]file doc_00188410 [00:15:27]remove file /storage/0461/doc_00188410 [00:15:27]file doc_00188411 [00:15:27]remove file /storage/0461/doc_00188411 [00:15:27]file doc_00188412 [00:15:27]remove file /storage/0461/doc_00188412 [00:15:27]file doc_00188413 [00:15:27]remove file /storage/0461/doc_00188413 [00:15:27]file doc_00188414 [00:15:27]remove file /storage/0461/doc_00188414 [00:15:27]file doc_00188415 [00:15:27]remove file /storage/0461/doc_00188415 [00:15:27]file doc_00188416 [00:15:27]remove file /storage/0461/doc_00188416 [00:15:27]file doc_00188417 [00:15:27]remove file /storage/0461/doc_00188417 [00:15:27]file doc_00188418 [00:15:27]remove file /storage/0461/doc_00188418 [00:15:27]file doc_00188419 [00:15:27]remove file /storage/0461/doc_00188419 [00:15:27]file doc_00188420 [00:15:27]remove file /storage/0461/doc_00188420 [00:15:27]file doc_00188421 [00:15:27]remove file /storage/0461/doc_00188421 [00:15:27]file doc_00188422 [00:15:27]remove file /storage/0461/doc_00188422 [00:15:27]file doc_00188423 [00:15:27]remove file /storage/0461/doc_00188423 [00:15:27]file doc_00188424 [00:15:27]remove file /storage/0461/doc_00188424 [00:15:27]file doc_00188425 [00:15:27]remove file /storage/0461/doc_00188425 [00:15:27]file doc_00188426 [00:15:27]remove file /storage/0461/doc_00188426 [00:15:27]file doc_00188427 [00:15:27]remove file /storage/0461/doc_00188427 [00:15:27]file doc_00188428 [00:15:27]remove file /storage/0461/doc_00188428 [00:15:27]file doc_00188429 [00:15:27]remove file /storage/0461/doc_00188429 [00:15:27]file doc_00188430 [00:15:27]remove file /storage/0461/doc_00188430 [00:15:27]file doc_00188431 [00:15:27]remove file /storage/0461/doc_00188431 [00:15:27]file doc_00188432 [00:15:27]remove file /storage/0461/doc_00188432 [00:15:27]file doc_00188433 [00:15:27]remove file /storage/0461/doc_00188433 [00:15:27]file doc_00188434 [00:15:27]remove file /storage/0461/doc_00188434 [00:15:27]file doc_00188435 [00:15:27]remove file /storage/0461/doc_00188435 [00:15:27]file doc_00188436 [00:15:27]remove file /storage/0461/doc_00188436 [00:15:27]file doc_00188437 [00:15:27]remove file /storage/0461/doc_00188437 [00:15:27]file doc_00188438 [00:15:27]remove file /storage/0461/doc_00188438 [00:15:27]file doc_00188439 [00:15:27]remove file /storage/0461/doc_00188439 [00:15:27]file doc_00188440 [00:15:27]remove file /storage/0461/doc_00188440 [00:15:27]file doc_00188441 [00:15:27]remove file /storage/0461/doc_00188441 [00:15:27]file doc_00188442 [00:15:27]remove file /storage/0461/doc_00188442 [00:15:27]file doc_00188443 [00:15:27]remove file /storage/0461/doc_00188443 [00:15:27]file doc_00188444 [00:15:27]remove file /storage/0461/doc_00188444 [00:15:27]file doc_00188445 [00:15:27]remove file /storage/0461/doc_00188445 [00:15:27]file doc_00188446 [00:15:27]remove file /storage/0461/doc_00188446 [00:15:27]file doc_00188447 [00:15:27]remove file /storage/0461/doc_00188447 [00:15:27]file doc_00188448 [00:15:27]remove file /storage/0461/doc_00188448 [00:15:27]file doc_00188449 [00:15:27]remove file /storage/0461/doc_00188449 [00:15:27]file doc_00188450 [00:15:27]remove file /storage/0461/doc_00188450 [00:15:27]file doc_00188451 [00:15:27]remove file /storage/0461/doc_00188451 [00:15:27]file doc_00188452 [00:15:27]remove file /storage/0461/doc_00188452 [00:15:27]file doc_00188453 [00:15:27]remove file /storage/0461/doc_00188453 [00:15:27]file doc_00188454 [00:15:27]remove file /storage/0461/doc_00188454 [00:15:27]file doc_00188455 [00:15:27]remove file /storage/0461/doc_00188455 [00:15:27]file doc_00188456 [00:15:27]remove file /storage/0461/doc_00188456 [00:15:27]file doc_00188457 [00:15:27]remove file /storage/0461/doc_00188457 [00:15:27]file doc_00188458 [00:15:27]remove file /storage/0461/doc_00188458 [00:15:27]file doc_00188459 [00:15:27]remove file /storage/0461/doc_00188459 [00:15:27]file doc_00188460 [00:15:27]remove file /storage/0461/doc_00188460 [00:15:27]file doc_00188461 [00:15:27]remove file /storage/0461/doc_00188461 [00:15:27]file doc_00188462 [00:15:27]remove file /storage/0461/doc_00188462 [00:15:27]file doc_00188463 [00:15:27]remove file /storage/0461/doc_00188463 [00:15:27]file doc_00188464 [00:15:27]remove file /storage/0461/doc_00188464 [00:15:27]file doc_00188465 [00:15:27]remove file /storage/0461/doc_00188465 [00:15:27]file doc_00188466 [00:15:27]remove file /storage/0461/doc_00188466 [00:15:27]file doc_00188467 [00:15:27]remove file /storage/0461/doc_00188467 [00:15:27]file doc_00188468 [00:15:27]remove file /storage/0461/doc_00188468 [00:15:27]file doc_00188469 [00:15:27]remove file /storage/0461/doc_00188469 [00:15:27]file doc_00188470 [00:15:27]remove file /storage/0461/doc_00188470 [00:15:27]file doc_00188471 [00:15:27]remove file /storage/0461/doc_00188471 [00:15:27]file doc_00188472 [00:15:27]remove file /storage/0461/doc_00188472 [00:15:27]file doc_00188473 [00:15:27]remove file /storage/0461/doc_00188473 [00:15:27]file doc_00188474 [00:15:27]remove file /storage/0461/doc_00188474 [00:15:27]file doc_00188475 [00:15:27]remove file /storage/0461/doc_00188475 [00:15:27]file doc_00188476 [00:15:27]remove file /storage/0461/doc_00188476 [00:15:27]file doc_00188477 [00:15:27]remove file /storage/0461/doc_00188477 [00:15:27]file doc_00188478 [00:15:27]remove file /storage/0461/doc_00188478 [00:15:27]file doc_00188479 [00:15:27]remove file /storage/0461/doc_00188479 [00:15:27]file doc_00188480 [00:15:27]remove file /storage/0461/doc_00188480 [00:15:27]file doc_00188481 [00:15:27]remove file /storage/0461/doc_00188481 [00:15:27]file doc_00188482 [00:15:27]remove file /storage/0461/doc_00188482 [00:15:27]file doc_00188483 [00:15:27]remove file /storage/0461/doc_00188483 [00:15:27]file doc_00188484 [00:15:27]remove file /storage/0461/doc_00188484 [00:15:27]file doc_00188485 [00:15:27]remove file /storage/0461/doc_00188485 [00:15:27]file doc_00188486 [00:15:27]remove file /storage/0461/doc_00188486 [00:15:27]file doc_00188487 [00:15:27]remove file /storage/0461/doc_00188487 [00:15:27]file doc_00188488 [00:15:27]remove file /storage/0461/doc_00188488 [00:15:27]file doc_00188489 [00:15:27]remove file /storage/0461/doc_00188489 [00:15:27]file doc_00188490 [00:15:27]remove file /storage/0461/doc_00188490 [00:15:27]file doc_00188491 [00:15:27]remove file /storage/0461/doc_00188491 [00:15:27]file doc_00188492 [00:15:27]remove file /storage/0461/doc_00188492 [00:15:27]file doc_00188493 [00:15:27]remove file /storage/0461/doc_00188493 [00:15:27]file doc_00188494 [00:15:27]remove file /storage/0461/doc_00188494 [00:15:27]file doc_00188495 [00:15:27]remove file /storage/0461/doc_00188495 [00:15:27]file doc_00188496 [00:15:27]remove file /storage/0461/doc_00188496 [00:15:27]file doc_00188497 [00:15:27]remove file /storage/0461/doc_00188497 [00:15:27]file doc_00188498 [00:15:27]remove file /storage/0461/doc_00188498 [00:15:27]file doc_00188499 [00:15:27]remove file /storage/0461/doc_00188499 [00:15:27]file doc_00188500 [00:15:27]remove file /storage/0461/doc_00188500 [00:15:27]file doc_00188501 [00:15:27]remove file /storage/0461/doc_00188501 [00:15:27]file doc_00188503 [00:15:27]remove file /storage/0461/doc_00188503 [00:15:27]file doc_00188504 [00:15:27]remove file /storage/0461/doc_00188504 [00:15:27]file doc_00188505 [00:15:28]remove file /storage/0461/doc_00188505 [00:15:28]file doc_00188506 [00:15:28]remove file /storage/0461/doc_00188506 [00:15:28]file doc_00188507 [00:15:28]remove file /storage/0461/doc_00188507 [00:15:28]file doc_00188508 [00:15:28]remove file /storage/0461/doc_00188508 [00:15:28]file doc_00188509 [00:15:28]remove file /storage/0461/doc_00188509 [00:15:28]file doc_00188510 [00:15:28]remove file /storage/0461/doc_00188510 [00:15:28]file doc_00188511 [00:15:28]remove file /storage/0461/doc_00188511 [00:15:28]file doc_00188512 [00:15:28]remove file /storage/0461/doc_00188512 [00:15:28]file doc_00188513 [00:15:28]remove file /storage/0461/doc_00188513 [00:15:28]file doc_00188514 [00:15:28]remove file /storage/0461/doc_00188514 [00:15:28]file doc_00188515 [00:15:28]remove file /storage/0461/doc_00188515 [00:15:28]file doc_00188516 [00:15:28]remove file /storage/0461/doc_00188516 [00:15:28]file doc_00188517 [00:15:28]remove file /storage/0461/doc_00188517 [00:15:28]file doc_00188518 [00:15:28]remove file /storage/0461/doc_00188518 [00:15:28]file doc_00188519 [00:15:28]remove file /storage/0461/doc_00188519 [00:15:28]file doc_00188520 [00:15:28]remove file /storage/0461/doc_00188520 [00:15:28]file doc_00188521 [00:15:28]remove file /storage/0461/doc_00188521 [00:15:28]file doc_00188522 [00:15:28]remove file /storage/0461/doc_00188522 [00:15:28]file doc_00188523 [00:15:28]remove file /storage/0461/doc_00188523 [00:15:28]file doc_00188524 [00:15:28]remove file /storage/0461/doc_00188524 [00:15:28]file doc_00188525 [00:15:28]remove file /storage/0461/doc_00188525 [00:15:28]file doc_00188526 [00:15:28]remove file /storage/0461/doc_00188526 [00:15:28]file doc_00188527 [00:15:28]remove file /storage/0461/doc_00188527 [00:15:28]file doc_00188528 [00:15:28]remove file /storage/0461/doc_00188528 [00:15:28]file doc_00188529 [00:15:28]remove file /storage/0461/doc_00188529 [00:15:28]file doc_00188530 [00:15:28]remove file /storage/0461/doc_00188530 [00:15:28]file doc_00188531 [00:15:28]remove file /storage/0461/doc_00188531 [00:15:28]file doc_00188532 [00:15:28]remove file /storage/0461/doc_00188532 [00:15:28]file doc_00188533 [00:15:28]remove file /storage/0461/doc_00188533 [00:15:28]file doc_00188534 [00:15:28]remove file /storage/0461/doc_00188534 [00:15:28]file doc_00188535 [00:15:28]remove file /storage/0461/doc_00188535 [00:15:28]file doc_00188536 [00:15:28]remove file /storage/0461/doc_00188536 [00:15:28]file doc_00188537 [00:15:28]remove file /storage/0461/doc_00188537 [00:15:28]file doc_00188538 [00:15:28]remove file /storage/0461/doc_00188538 [00:15:28]file doc_00188539 [00:15:28]remove file /storage/0461/doc_00188539 [00:15:28]file doc_00188540 [00:15:28]remove file /storage/0461/doc_00188540 [00:15:28]file doc_00188541 [00:15:28]remove file /storage/0461/doc_00188541 [00:15:28]remove dir /storage/0461 [00:15:28]ProcessDocumentItem done err = 0, tmpTLVsize=258 [00:15:28]tlvbuf is 00904420 [00:15:28]SAM_PROTO_ClearQueue [00:15:28]wFMCommunicate request_size=4 [00:15:28]MH_SAM_APDU [00:15:28]CAPDU: 80 09 00 00 [00:15:28]Write to MH i2c: E2 08 00 74 0C 80 09 00 00 00 00 00 00 F2 [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:15:28]Read from MH i2c: E2 03 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 74 0C 00 90 00 F4 [00:15:28]RAPDU: 90 00 [00:15:28]wFMCommunicate OK [00:15:28]SAM_PROTO_ClearQueue done [00:15:28]KKMCreateOFDPacket [00:15:28]OFDProtocolAddRootSTLVToBuf [00:15:28]FM_MakeSignedData [00:15:28]FM_MakeSignedData [00:15:28]SAM_PROTO_SignData [00:15:28]wFMCommunicate request_size=4 [00:15:28]MH_SAM_APDU [00:15:28]CAPDU: 80 0D 01 02 [00:15:28]Write to MH i2c: E2 08 00 75 0C 80 0D 01 02 00 00 00 00 FA [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 75 0C 00 90 00 F5 [00:15:28]RAPDU: 90 00 [00:15:28]wFMCommunicate OK [00:15:28]wFMCommunicate request_size=255 [00:15:28]MH_SAM_APDU [00:15:28]CAPDU: 80 0D 02 02 FA 02 00 02 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1D 40 18 67 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 [00:15:28]Write to MH i2c: E2 02 01 76 0C 80 0D 02 02 FA 00 02 00 02 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1D 40 18 67 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 00 00 00 [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 76 0C 00 90 00 F6 [00:15:28]RAPDU: 90 00 [00:15:28]wFMCommunicate OK [00:15:28]wFMCommunicate request_size=17 [00:15:28]MH_SAM_APDU [00:15:28]CAPDU: 80 0D 02 02 0C 34 30 35 04 06 00 84 E6 9F AD D9 74 [00:15:28]Write to MH i2c: E2 14 00 77 0C 80 0D 02 02 0C 00 34 30 35 04 06 00 84 E6 9F AD D9 74 00 00 BB [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 03 00 77 0C 00 90 00 F7 [00:15:28]RAPDU: 90 00 [00:15:28]wFMCommunicate OK [00:15:28]wFMCommunicate request_size=4 [00:15:28]MH_SAM_APDU [00:15:28]CAPDU: 80 0D 03 02 [00:15:28]Write to MH i2c: E2 08 00 78 0C 80 0D 03 02 00 00 00 00 FF [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 0B 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 0B 00 78 0C 00 D9 32 44 B4 7A 1A F8 BF 90 00 4E [00:15:28]RAPDU: D9 32 44 B4 7A 1A F8 BF 90 00 [00:15:28]wFMCommunicate OK [00:15:28]SAM_PROTO_SignData done [00:15:28]FM_MakeSignedData done [00:15:28]CreateOFDProtocolMessage [00:15:28]wFMCommunicate request_size=4 [00:15:28]MH_SAM_APDU [00:15:28]CAPDU: 80 11 00 00 [00:15:28]Write to MH i2c: E2 08 00 79 0C 80 11 00 00 00 00 00 00 FF [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:15:28]Read from MH i2c: E2 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 17 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: E2 17 00 79 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4D [00:15:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:15:28]wFMCommunicate OK [00:15:28]CreateOFDProtocolMessage done [00:15:28]OFDSenderStorePacket 188542 [00:15:28]StoreOFDPacket docnum=188542 [00:15:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 16 01 00 00 F4 F1 0E 01 C1 D6 5A 02 01 00 02 00 02 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1D 40 18 67 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 84 E6 9F AD D9 74 D9 32 44 B4 7A 1A F8 BF [00:15:28]CheckFolder [00:15:28]dirname=/storage/ofd_packets [00:15:28]CheckFolder done [00:15:28]ProducePacketName [00:15:28]name=ofd_packets/00188542 [00:15:28]NVStorageSaveData ofd_packets/00188542 [00:15:28]File name is /storage/ofd_packets/00188542 [00:15:28]Write 308 bytes [00:15:28]NVStorageSaveData done [00:15:28]OFDSenderStorePacket done [00:15:28]KKMCreateOFDPacket done [00:15:28]NVStorageSaveData kkm_last_timestamp [00:15:28]File name is /storage/kkm_last_timestamp [00:15:28]Write 4 bytes [00:15:28]NVStorageSaveData done [00:15:28]ExternCall_PrintAddStr [00:15:28]wPrintStart [00:15:28]Write to MH i2c: 01 00 00 7A 0C 86 [00:15:28]Write i2c OK [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: 01 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: 01 07 00 [00:15:28]MH_I2C_Read... [00:15:28]Read from MH i2c: 01 07 00 7A 0C 00 00 00 00 00 FF 0F 9B [00:15:28]RasterBufferAndPrint [00:15:28]line Отчет об открытии смены [00:15:28]line ФФД: 1.0 [00:15:28]line ИНН: 02508201610067 [00:15:28]line Кассир: Кадырбеков К. [00:15:28]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:15:28]line Место: АЗС № 86 "Партнер Нефть" [00:15:28]line 23.10.2024 00:15 [00:15:28]line Смена: 462 [00:15:28]line РНМ: 0000000000100030 [00:15:28]line ЗНМ: 0300000155 [00:15:28]line ФД: 188542 [00:15:28]line ФМ: 0000000000965340 [00:15:28]line ФПД: 146126056315252 [00:15:28]written 0, free lines is 4095 [00:15:28]OFD Sender: Processing packet 188542 [packets to send 1062, broken 1061] [00:15:28]ProducePacketName [00:15:28]name=ofd_packets/00188542 [00:15:28]OFD Sender: To server: pG, [00:15:28]CommunicateWithHost lk.salyk.kg:30040 [00:15:28]ConnectInit lk.salyk.kg [00:15:29]Write to MH i2c: 01 00 00 8C 0C 98 [00:15:29]Write i2c OK [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: 01 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: 01 07 00 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: 01 07 00 8C 0C 00 00 00 00 00 55 0E 02 [00:15:29]RasterBufferAndPrint [00:15:29]line [00:15:29]line [00:15:29]line [00:15:29]line [00:15:29]line [00:15:29]written 0, free lines is 3678 [00:15:29]MH_Cut [00:15:29]Write to MH i2c: D1 01 00 93 0C 01 71 [00:15:29]Write i2c OK [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: D1 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: D1 01 00 [00:15:29]MH_I2C_Read... [00:15:29]Read from MH i2c: D1 01 00 93 0C 00 70 [00:15:29]Write to MH i2c: 01 00 00 94 0C A0 [00:15:29]Write i2c OK [00:15:29]MH_I2C_Read... [00:15:29]Connected sock=10 [00:15:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 16 01 00 00 F4 F1 0E 01 C1 D6 5A 02 01 00 02 00 02 01 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 19 00 D0 9A D0 B0 D0 B4 D1 8B D1 80 D0 B1 D0 B5 D0 BA D0 BE D0 B2 20 D0 9A 2E 20 F1 03 53 00 37 32 30 30 30 31 2C 20 D1 81 2E 20 D0 A8 D0 B0 D0 BC D0 B0 D0 BB D0 B4 D1 8B 20 D0 A1 D0 B0 D0 B9 2C 20 D1 83 D0 BB 2E 20 D0 A0 D1 8B D1 81 D0 BA D1 83 D0 BB D0 BE D0 B2 D0 B0 20 31 2C 20 34 31 2E 31 38 31 33 31 38 2C 20 37 32 2E 31 38 38 30 31 35 A3 04 29 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 38 36 20 22 D0 9F D0 B0 D1 80 D1 82 D0 BD D0 B5 D1 80 20 D0 9D D0 B5 D1 84 D1 82 D1 8C 22 F4 03 04 00 1D 40 18 67 0E 04 04 00 CE 01 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E0 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 35 04 06 00 84 E6 9F AD D9 74 D9 32 44 B4 7A 1A F8 BF [00:15:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 21 F2 47 00 BF C8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7E E0 02 00 F4 03 04 00 0C EA 17 67 B6 04 01 00 00 ED 3D 36 E3 CF 53 8F EB [00:15:29]CommunicateWithHost err = 0 [00:15:29]CheckOFDResponse [00:15:29]1017 (14) - 77093643461234 [00:15:29]1041 (16) - 0000000000965340 [00:15:29]1040 (4) - 188542 [00:15:29]1012 (4) - 22.10.2024 18:08 [00:15:29]1206 (1) - 0 [00:15:29]OFD Sender: Remove packet 188542 [00:15:29]ProducePacketName [00:15:29]name=ofd_packets/00188542 [00:15:29]NVStorageDeleteData [00:15:29]*** Cut start [00:15:29]*** Partial cut [00:15:29]*** CUTSNS_PIN = 1 [00:15:29]*** CUTSNS_PIN = 0 [00:15:30]*** Brake cut motor [00:15:30]OFD Sender: No OFD packet to send [00:15:30]Read from MH i2c: 01 [00:15:30]MH_I2C_Read... [00:15:30]*** Stop cut motor [00:15:30]*** Cut end [00:15:30]Read from MH i2c: 01 07 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: 01 07 00 94 0C 00 00 00 00 00 FF 0F B5 [00:15:30]process_action open_shift done [00:15:30]requested_data is exist [00:15:30]produce_requested_data [00:15:30]requested_item fd.num is exist - process it [00:15:30]SAM_PROTO_GetFieldsCounters [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 13 00 00 [00:15:30]Write to MH i2c: E2 08 00 95 0C 80 13 00 00 00 00 00 00 1D [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:15:30]Read from MH i2c: E2 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 62 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 62 00 95 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 53 [00:15:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7E E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 00 00 00 00 5E 04 04 00 00 00 00 00 57 04 04 00 01 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:15:30]wFMCommunicate OK [00:15:30]SAM_PROTO_GetFieldsCounters done [00:15:30]requested_item shift.num is exist - process it [00:15:30]requested_item shift.opened is exist - process it [00:15:30]req_shift_opened [00:15:30]FM_GetShiftState [00:15:30]SAM_PROTO_GetShiftState [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 13 01 00 [00:15:30]Write to MH i2c: E2 08 00 96 0C 80 13 01 00 00 00 00 00 1F [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:15:30]Read from MH i2c: E2 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 0E 00 [00:15:30]MH_I2C_Read... [00:15:30]Read from MH i2c: E2 0E 00 96 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 07 [00:15:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:15:30]wFMCommunicate OK [00:15:30]SAM_PROTO_GetShiftState done [00:15:30]FM_GetShiftState done [00:15:30]req_shift_opened done [00:15:30]requested_item shift.open_date is exist - process it [00:15:30]req_shift_open_date [00:15:30]req_shift_open_date done [00:15:30]produce_requested_data done [00:15:30]produce_requested_data return {"fd.num":188542,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:15:30]process_action_free open_shift [00:15:30]json_value_free [00:15:30]json_value_free done [00:15:30]process_json_proto returns [00:15:30]Send response to host [00:15:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":188542,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:15:30]free response buf [00:15:30]execute_script done [00:15:30]execute_script returns [00:15:30]free content buf [00:15:30]Sock 9.Close socket [00:15:30]Sock 9.Thread stoped [00:15:30]accept exits with 7 [00:15:30]New connection [00:15:30]New thread 3066649956 created [00:15:30]Thread 3066506596 joined [00:15:30]Waiting for new connection... [00:15:30] Sock 7.Parse request [00:15:30]Sock 7.Check first char [00:15:30]Sock 7.First char is OK [00:15:30]request: POST /json_proto HTTP/1.0 [00:15:30]Method: POST [00:15:30]URL: /json_proto [00:15:30]Method is POST - this is cgi request [00:15:30]url: /json_proto [00:15:30]query_string will be loaded in cgi processing [00:15:30]execute_cgi json_proto POST (null) [00:15:30]execute_cgi path=json_proto method=POST [00:15:30]POST find Content-Length [00:15:30]Host: 172.17.42.131:8080 [00:15:30]Content-Length: 331 [00:15:30]Content-Type: application/json [00:15:30] [00:15:30]POST finish read [00:15:30]Found Content-Length = 331 [00:15:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:30]execute_script... [00:15:30]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [00:15:30]POST & json_proto [00:15:30]process_json_proto [00:15:30]json parsed OK: [00:15:30]protocol is kg_v1.0 [00:15:30]action value=get_value [00:15:30]process_action get_value [00:15:30]cmd_get_value [00:15:30]process_action get_value done [00:15:30]requested_data is exist [00:15:30]produce_requested_data [00:15:30]requested_item fm.sale.total is exist - process it [00:15:30]SAM_PROTO_GetFMData [00:15:30]wFMCommunicate request_size=4 [00:15:30]MH_SAM_APDU [00:15:30]CAPDU: 80 13 03 00 [00:15:30]Write to MH i2c: E2 08 00 97 0C 80 13 03 00 00 00 00 00 22 [00:15:30]Write i2c OK [00:15:30]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 FD 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 FD 00 97 0C 00 CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 2C [00:15:31]RAPDU: CB 04 85 04 C7 04 6E 04 04 00 E2 DC 02 00 69 04 A4 00 6F 04 04 00 53 DC 02 00 B1 04 05 00 4B 94 2F BD 06 70 04 05 00 40 D9 2F A3 04 72 04 05 00 0B BB FF 19 02 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 F8 85 3D B7 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 A7 E6 44 0F EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 A1 00 6F 04 04 00 8F 00 00 00 B1 04 05 00 18 60 DC 31 01 70 04 05 00 C8 19 DC 31 01 72 04 02 00 50 46 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 36 17 90 00 [00:15:31]wFMCommunicate OK [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 17 00 00 [00:15:31]Write to MH i2c: E2 08 00 98 0C 80 17 00 00 00 00 00 00 24 [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:31]Read from MH i2c: E2 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 FD 00 [00:15:31]MH_I2C_Read... [00:15:31]Read from MH i2c: E2 FD 00 98 0C 00 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 F1 [00:15:31]RAPDU: 7B 20 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 92 EC B4 02 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 90 00 [00:15:31]wFMCommunicate OK [00:15:31]wFMCommunicate request_size=4 [00:15:31]MH_SAM_APDU [00:15:31]CAPDU: 80 17 00 00 [00:15:31]Write to MH i2c: E2 08 00 99 0C 80 17 00 00 00 00 00 00 25 [00:15:31]Write i2c OK [00:15:31]MH_I2C_Read... [00:15:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:31]Read from MH i2c: E2 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 FD 00 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 FD 00 99 0C 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 00 [00:15:32]RAPDU: 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:32]wFMCommunicate OK [00:15:32]wFMCommunicate request_size=4 [00:15:32]MH_SAM_APDU [00:15:32]CAPDU: 80 17 00 00 [00:15:32]Write to MH i2c: E2 08 00 9A 0C 80 17 00 00 00 00 00 00 26 [00:15:32]Write i2c OK [00:15:32]MH_I2C_Read... [00:15:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:32]Read from MH i2c: E2 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 FD 00 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 FD 00 9A 0C 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A4 [00:15:32]RAPDU: 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:15:32]wFMCommunicate OK [00:15:32]wFMCommunicate request_size=4 [00:15:32]MH_SAM_APDU [00:15:32]CAPDU: 80 17 00 00 [00:15:32]Write to MH i2c: E2 08 00 9B 0C 80 17 00 00 00 00 00 00 27 [00:15:32]Write i2c OK [00:15:32]MH_I2C_Read... [00:15:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 229! [00:15:32]Read from MH i2c: E2 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 E8 00 [00:15:32]MH_I2C_Read... [00:15:32]Read from MH i2c: E2 E8 00 9B 0C 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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 05 [00:15:32]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 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:33]wFMCommunicate OK [00:15:33]SAM_PROTO_GetFMData done [00:15:33]requested_item fm.sale_refund.total is exist - process it [00:15:33]requested_item fm.buy.total is exist - process it [00:15:33]requested_item shift.sale.total is exist - process it [00:15:33]SAM_PROTO_GetShiftData [00:15:33]wFMCommunicate request_size=4 [00:15:33]MH_SAM_APDU [00:15:33]CAPDU: 80 13 02 00 [00:15:33]Write to MH i2c: E2 08 00 9C 0C 80 13 02 00 00 00 00 00 26 [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 9C 0C 00 A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 99 [00:15:33]RAPDU: A0 04 AA 04 9C 04 6E 04 04 00 00 00 00 00 69 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 90 00 [00:15:33]wFMCommunicate OK [00:15:33]wFMCommunicate request_size=4 [00:15:33]MH_SAM_APDU [00:15:33]CAPDU: 80 17 00 00 [00:15:33]Write to MH i2c: E2 08 00 9D 0C 80 17 00 00 00 00 00 00 29 [00:15:33]Write i2c OK [00:15:33]MH_I2C_Read... [00:15:33]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:33]Read from MH i2c: E2 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 [00:15:33]MH_I2C_Read... [00:15:33]Read from MH i2c: E2 FD 00 9D 0C 00 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 31 [00:15:34]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 90 00 [00:15:34]wFMCommunicate OK [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 17 00 00 [00:15:34]Write to MH i2c: E2 08 00 9E 0C 80 17 00 00 00 00 00 00 2A [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:34]Read from MH i2c: E2 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 FD 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 FD 00 9E 0C 00 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 FC [00:15:34]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 90 00 [00:15:34]wFMCommunicate OK [00:15:34]wFMCommunicate request_size=4 [00:15:34]MH_SAM_APDU [00:15:34]CAPDU: 80 17 00 00 [00:15:34]Write to MH i2c: E2 08 00 9F 0C 80 17 00 00 00 00 00 00 2B [00:15:34]Write i2c OK [00:15:34]MH_I2C_Read... [00:15:34]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:15:34]Read from MH i2c: E2 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 FD 00 [00:15:34]MH_I2C_Read... [00:15:34]Read from MH i2c: E2 FD 00 9F 0C 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 9D [00:15:34]RAPDU: 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 90 00 [00:15:35]wFMCommunicate OK [00:15:35]wFMCommunicate request_size=4 [00:15:35]MH_SAM_APDU [00:15:35]CAPDU: 80 17 00 00 [00:15:35]Write to MH i2c: E2 08 00 A0 0C 80 17 00 00 00 00 00 00 2C [00:15:35]Write i2c OK [00:15:35]MH_I2C_Read... [00:15:35]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [00:15:35]Read from MH i2c: E2 [00:15:35]MH_I2C_Read... [00:15:35]Read from MH i2c: E2 BD 00 [00:15:35]MH_I2C_Read... [00:15:35]Read from MH i2c: E2 BD 00 A0 0C 00 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 OFD Sender: No OFD packet to send [00:15:35]00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 12 [00:15:35]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [00:15:35]wFMCommunicate OK [00:15:35]SAM_PROTO_GetShiftData done [00:15:35]requested_item shift.sale.total_cash is exist - process it [00:15:35]requested_item shift.sale_refund.total is exist - process it [00:15:35]requested_item shift.sale_refund.total_cash is exist - process it [00:15:35]requested_item shift.buy.total is exist - process it [00:15:35]requested_item shift.buy.total_cash is exist - process it [00:15:35]produce_requested_data done [00:15:35]produce_requested_data return {"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [00:15:35]process_action_free get_value [00:15:35]json_value_free [00:15:35]json_value_free done [00:15:35]process_json_proto returns [00:15:35]Send response to host [00:15:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":289438157.55,"fm.sale_refund.total":51314934.00,"fm.buy.total":0.00,"shift.sale.total":0.00,"shift.sale.total_cash":0.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [00:15:35]free response buf [00:15:35]execute_script done [00:15:35]execute_script returns [00:15:35]free content buf [00:15:35]Sock 7.Close socket [00:15:35]Sock 7.Thread stoped [00:15:40]OFD Sender: No OFD packet to send [00:15:45]OFD Sender: No OFD packet to send [00:15:50]OFD Sender: No OFD packet to send [00:15:55]OFD Sender: No OFD packet to send [00:16:00]OFD Sender: No OFD packet to send [00:16:05]OFD Sender: No OFD packet to send [00:16:10]OFD Sender: No OFD packet to send [00:16:15]OFD Sender: No OFD packet to send [00:16:20]OFD Sender: No OFD packet to send [00:16:25]OFD Sender: No OFD packet to send [00:16:30]OFD Sender: No OFD packet to send [00:16:35]OFD Sender: No OFD packet to send [00:16:40]OFD Sender: No OFD packet to send [00:16:45]OFD Sender: No OFD packet to send [00:16:50]OFD Sender: No OFD packet to send [00:16:55]OFD Sender: No OFD packet to send [00:17:00]OFD Sender: No OFD packet to send [00:17:05]OFD Sender: No OFD packet to send [00:17:10]OFD Sender: No OFD packet to send [00:17:15]OFD Sender: No OFD packet to send [00:17:20]OFD Sender: No OFD packet to send [00:17:25]OFD Sender: No OFD packet to send [00:17:30]OFD Sender: No OFD packet to send [00:17:35]OFD Sender: No OFD packet to send [00:17:40]OFD Sender: No OFD packet to send [00:17:45]OFD Sender: No OFD packet to send [00:17:50]OFD Sender: No OFD packet to send [00:17:55]OFD Sender: No OFD packet to send [00:18:01]OFD Sender: No OFD packet to send [00:18:06]OFD Sender: No OFD packet to send [00:18:11]OFD Sender: No OFD packet to send [00:18:16]OFD Sender: No OFD packet to send [00:18:21]OFD Sender: No OFD packet to send [00:18:26]OFD Sender: No OFD packet to send [00:18:31]OFD Sender: No OFD packet to send [00:18:36]OFD Sender: No OFD packet to send [00:18:41]OFD Sender: No OFD packet to send [00:18:46]OFD Sender: No OFD packet to send [00:18:51]OFD Sender: No OFD packet to send [00:18:56]OFD Sender: No OFD packet to send [00:19:01]OFD Sender: No OFD packet to send [00:19:06]OFD Sender: No OFD packet to send [00:19:11]OFD Sender: No OFD packet to send [00:19:16]OFD Sender: No OFD packet to send [00:19:21]OFD Sender: No OFD packet to send [00:19:26]OFD Sender: No OFD packet to send [00:19:31]OFD Sender: No OFD packet to send [00:19:36]OFD Sender: No OFD packet to send [00:19:41]OFD Sender: No OFD packet to send [00:19:46]OFD Sender: No OFD packet to send [00:19:51]OFD Sender: No OFD packet to send [00:19:56]OFD Sender: No OFD packet to send [00:20:01]OFD Sender: No OFD packet to send [00:20:06]OFD Sender: No OFD packet to send [00:20:11]OFD Sender: No OFD packet to send [00:20:16]OFD Sender: No OFD packet to send [00:20:21]OFD Sender: No OFD packet to send [00:20:26]OFD Sender: No OFD packet to send [00:20:31]OFD Sender: No OFD packet to send [00:20:36]OFD Sender: No OFD packet to send [00:20:41]OFD Sender: No OFD packet to send [00:20:46]OFD Sender: No OFD packet to send [00:20:51]OFD Sender: No OFD packet to send [00:20:56]OFD Sender: No OFD packet to send [00:21:01]OFD Sender: No OFD packet to send [00:21:06]OFD Sender: No OFD packet to send [00:21:11]OFD Sender: No OFD packet to send [00:21:16]OFD Sender: No OFD packet to send [00:21:21]OFD Sender: No OFD packet to send [00:21:26]OFD Sender: No OFD packet to send [00:21:31]OFD Sender: No OFD packet to send [00:21:36]OFD Sender: No OFD packet to send [00:21:41]OFD Sender: No OFD packet to send [00:21:46]OFD Sender: No OFD packet to send [00:21:52]OFD Sender: No OFD packet to send [00:21:57]OFD Sender: No OFD packet to send [00:22:02]OFD Sender: No OFD packet to send [00:22:07]OFD Sender: No OFD packet to send [00:22:12]OFD Sender: No OFD packet to send [00:22:17]OFD Sender: No OFD packet to send [00:22:22]OFD Sender: No OFD packet to send [00:22:27]OFD Sender: No OFD packet to send [00:22:32]OFD Sender: No OFD packet to send [00:22:37]OFD Sender: No OFD packet to send [00:22:42]OFD Sender: No OFD packet to send [00:22:47]OFD Sender: No OFD packet to send [00:22:52]OFD Sender: No OFD packet to send [00:22:57]OFD Sender: No OFD packet to send [00:23:02]OFD Sender: No OFD packet to send [00:23:07]OFD Sender: No OFD packet to send [00:23:12]OFD Sender: No OFD packet to send [00:23:17]OFD Sender: No OFD packet to send [00:23:22]OFD Sender: No OFD packet to send [00:23:27]OFD Sender: No OFD packet to send [00:23:32]OFD Sender: No OFD packet to send [00:23:37]OFD Sender: No OFD packet to send [00:23:42]OFD Sender: No OFD packet to send [00:23:47]OFD Sender: No OFD packet to send [00:23:52]OFD Sender: No OFD packet to send [00:23:57]OFD Sender: No OFD packet to send [00:24:02]OFD Sender: No OFD packet to send [00:24:07]OFD Sender: No OFD packet to send [00:24:12]OFD Sender: No OFD packet to send [00:24:17]OFD Sender: No OFD packet to send [00:24:22]OFD Sender: No OFD packet to send [00:24:27]OFD Sender: No OFD packet to send [00:24:32]OFD Sender: No OFD packet to send [00:24:37]OFD Sender: No OFD packet to send [00:24:42]OFD Sender: No OFD packet to send [00:24:47]OFD Sender: No OFD packet to send [00:24:52]OFD Sender: No OFD packet to send [00:24:57]OFD Sender: No OFD packet to send [00:25:02]OFD Sender: No OFD packet to send [00:25:07]OFD Sender: No OFD packet to send [00:25:12]OFD Sender: No OFD packet to send [00:25:17]OFD Sender: No OFD packet to send [00:25:22]OFD Sender: No OFD packet to send [00:25:27]OFD Sender: No OFD packet to send [00:25:32]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:42]accept exits with 9 [00:25:42]New connection [00:25:42]New thread 3066506596 created [00:25:42]Thread 3066649956 joined [00:25:42]Waiting for new connection... [00:25:42] Sock 9.Parse request [00:25:42]Sock 9.Check first char [00:25:42]Sock 9.First char is OK [00:25:42]request: POST /json_proto HTTP/1.0 [00:25:42]Method: POST [00:25:42]URL: /json_proto [00:25:42]Method is POST - this is cgi request [00:25:42]url: /json_proto [00:25:42]query_string will be loaded in cgi processing [00:25:42]execute_cgi json_proto POST (null) [00:25:42]execute_cgi path=json_proto method=POST [00:25:42]POST find Content-Length [00:25:42]Host: 172.17.42.131:8080 [00:25:42]Content-Length: 682 [00:25:42]Content-Type: application/json [00:25:42] [00:25:42]POST finish read [00:25:42]Found Content-Length = 682 [00:25:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:42]execute_script... [00:25: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)210602", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:25:42]POST & json_proto [00:25:42]process_json_proto [00:25:42]json parsed OK: [00:25:42]protocol is kg_v1.0 [00:25:42]action value=close_receipt [00:25:42]process_action close_receipt [00:25:42]cmd_close_receipt [00:25:42]MH_GetDate [00:25:42]Write to MH i2c: F0 00 00 A1 0C 9C [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: F0 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: F0 09 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: F0 09 00 A1 0C 00 87 42 18 67 A0 18 CA 66 D5 [00:25:42]GetLastDocTimeStamp 1729642525 [00:25:42]current date 1729643143 [00:25:42]FM_GetShiftState [00:25:42]SAM_PROTO_GetShiftState [00:25:42]wFMCommunicate request_size=4 [00:25:42]MH_SAM_APDU [00:25:42]CAPDU: 80 13 01 00 [00:25:42]Write to MH i2c: E2 08 00 A2 0C 80 13 01 00 00 00 00 00 2B [00:25:42]Write i2c OK [00:25:42]MH_I2C_Read... [00:25:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:42]Read from MH i2c: E2 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0E 00 [00:25:42]MH_I2C_Read... [00:25:42]Read from MH i2c: E2 0E 00 A2 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 13 [00:25:42]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:25:42]wFMCommunicate OK [00:25:42]SAM_PROTO_GetShiftState done [00:25:42]FM_GetShiftState done [00:25:42]opened in 1729642525 [00:25:42]opened+sec_in_day 1729728925 [00:25:42]quantity*price = 100015 [00:25:42]sum+1 = 100017 [00:25:42]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 1 23.10.2024 00:25 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188543 ФПД: 6560120744603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188543&fm=6560120744603&tin=02508201610067®Number=0000000000100030&sum=100000 [00:25:43]StoreToDocumentArchive [00:25:43]shift 462 fd 188543 [00:25:43]save to /storage/0462/doc_00188543 [00:25:43]save last doc name /storage/0462/doc_00188543 to /storage/kkm_last_doc_name [00:25:43]save OK [00:25:43]Clear old archive folders... [00:25:43]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:25:43]tlvbuf is 008E20E0 [00:25:43]SAM_PROTO_ClearQueue [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 09 00 00 [00:25:43]Write to MH i2c: E2 08 00 AF 0C 80 09 00 00 00 00 00 00 2D [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 AF 0C 00 90 00 2F [00:25:43]RAPDU: 90 00 [00:25:43]wFMCommunicate OK [00:25:43]SAM_PROTO_ClearQueue done [00:25:43]KKMCreateOFDPacket [00:25:43]OFDProtocolAddRootSTLVToBuf [00:25:43]FM_MakeSignedData [00:25:43]FM_MakeSignedData [00:25:43]SAM_PROTO_SignData [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 0D 01 02 [00:25:43]Write to MH i2c: E2 08 00 B0 0C 80 0D 01 02 00 00 00 00 35 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 B0 0C 00 90 00 30 [00:25:43]RAPDU: 90 00 [00:25:43]wFMCommunicate OK [00:25:43]wFMCommunicate request_size=255 [00:25:43]MH_SAM_APDU [00:25: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 87 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E0 02 00 35 04 06 00 05 [00:25:43]Write to MH i2c: E2 02 01 B1 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 87 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E0 02 00 35 04 06 00 05 00 00 20 [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 B1 0C 00 90 00 31 [00:25:43]RAPDU: 90 00 [00:25:43]wFMCommunicate OK [00:25:43]wFMCommunicate request_size=10 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 0D 02 02 05 F7 65 AA AA 9B [00:25:43]Write to MH i2c: E2 0D 00 B2 0C 80 0D 02 02 05 00 F7 65 AA AA 9B 00 00 8D [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 03 00 B2 0C 00 90 00 32 [00:25:43]RAPDU: 90 00 [00:25:43]wFMCommunicate OK [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 0D 03 02 [00:25:43]Write to MH i2c: E2 08 00 B3 0C 80 0D 03 02 00 00 00 00 3A [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 0B 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 0B 00 B3 0C 00 38 02 C7 D8 F7 BB 68 90 90 00 BE [00:25:43]RAPDU: 38 02 C7 D8 F7 BB 68 90 90 00 [00:25:43]wFMCommunicate OK [00:25:43]SAM_PROTO_SignData done [00:25:43]FM_MakeSignedData done [00:25:43]CreateOFDProtocolMessage [00:25:43]wFMCommunicate request_size=4 [00:25:43]MH_SAM_APDU [00:25:43]CAPDU: 80 11 00 00 [00:25:43]Write to MH i2c: E2 08 00 B4 0C 80 11 00 00 00 00 00 00 3A [00:25:43]Write i2c OK [00:25:43]MH_I2C_Read... [00:25:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:43]Read from MH i2c: E2 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 17 00 [00:25:43]MH_I2C_Read... [00:25:43]Read from MH i2c: E2 17 00 B4 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 88 [00:25:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:25:43]wFMCommunicate OK [00:25:43]CreateOFDProtocolMessage done [00:25:43]OFDSenderStorePacket 188543 [00:25:43]StoreOFDPacket docnum=188543 [00:25:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE D9 07 01 5C 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 87 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E0 02 00 35 04 06 00 05 F7 65 AA AA 9B 38 02 C7 D8 F7 BB 68 90 [00:25:43]CheckFolder [00:25:43]dirname=/storage/ofd_packets [00:25:43]CheckFolder done [00:25:43]ProducePacketName [00:25:43]name=ofd_packets/00188543 [00:25:43]NVStorageSaveData ofd_packets/00188543 [00:25:43]File name is /storage/ofd_packets/00188543 [00:25:43]Write 301 bytes [00:25:43]NVStorageSaveData done [00:25:43]OFDSenderStorePacket done [00:25:43]KKMCreateOFDPacket done [00:25:43]NVStorageSaveData kkm_last_timestamp [00:25:43]File name is /storage/kkm_last_timestamp [00:25:43]Write 4 bytes [00:25:43]NVStorageSaveData done [00:25:43]ExternCall_PrintAddStr [00:25:43]wPrintStart [00:25:43]Write to MH i2c: 01 00 00 B5 0C C1 [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: 01 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: 01 07 00 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: 01 07 00 B5 0C 00 00 00 00 00 FF 0F D6 [00:25:44]RasterBufferAndPrint [00:25:44]line Счет N : (1)210602 [00:25:44]line ИНН: 02508201610067 [00:25:44]line Контрольно-Кассовый Чек [00:25:44]line ПРОДАЖА [00:25:44]line ТРК (МРК, ГНК) : 42 [00:25:44]line Товар: 2710124130 [00:25:44]line Аи-92-К-3 [00:25:44]line 14.950 * 66.90 [00:25:44]line = 1000.16 [00:25:44]line НДС 12% НСП 1% [00:25:44]line > о реализуемом товаре [00:25:44]line ОКРУГЛЕНИЕ: -0.16 [00:25:44]line ИТОГО: 1000.00 [00:25:44]line Внесено: 1000.00 [00:25:44]line СДАЧА: 0.00 [00:25:44]line НСП 1% : 8.85 [00:25:44]line НДС 12% : 106.21 [00:25:44]line Наличными: 1000.00 [00:25:44]line Безнал.: 0.00 [00:25:44]line Место: АЗС № 86 "Партнер Нефть" [00:25:44]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:25:44]line СНО: Общий режим [00:25:44]line Чек 1 23.10.2024 00:25 [00:25:44]line Смена: 462 ФФД: 1.0 [00:25:44]line ЗНМ: 0300000155 [00:25:44]line РНМ: 0000000000100030 [00:25:44]line Версия ККМ: 001 [00:25:44]line ФМ: 0000000000965340 [00:25:44]line ФД: 188543 [00:25:44]line ФПД: 6560120744603 [00:25:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002543&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188543&fm=6560120744603&tin=02508201610067®Number=0000000000100030&sum=100000 [00:25:44]OFD Sender: Processing packet 188543 [packets to send 1062, broken 1061] [00:25:44]ProducePacketName [00:25:44]name=ofd_packets/00188543 [00:25:44]OFD Sender: To server: pG, [00:25:44]CommunicateWithHost lk.salyk.kg:30040 [00:25:44]ConnectInit lk.salyk.kg [00:25:44]written 0, free lines is 4095 [00:25:44]Connected sock=10 [00:25:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 EE D9 07 01 5C 8E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 01 00 00 00 F4 03 04 00 87 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 7F E0 02 00 35 04 06 00 05 F7 65 AA AA 9B 38 02 C7 D8 F7 BB 68 90 [00:25:44]Write to MH i2c: 01 00 00 E0 0C EC [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: 01 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: 01 07 00 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: 01 07 00 E0 0C 00 00 00 00 00 47 0C 46 [00:25:44]RasterBufferAndPrint [00:25:44]line [00:25:44]line [00:25:44]line [00:25:44]line [00:25:44]line [00:25:44]written 0, free lines is 3148 [00:25:44]MH_Cut [00:25:44]Write to MH i2c: D1 01 00 E7 0C 01 C5 [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: D1 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: D1 01 00 [00:25:44]MH_I2C_Read... [00:25:44]Read from MH i2c: D1 01 00 E7 0C 00 C4 [00:25:44]Write to MH i2c: 01 00 00 E8 0C F4 [00:25:44]Write i2c OK [00:25:44]MH_I2C_Read... [00:25:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 7C 47 00 55 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 39 36 35 33 34 30 10 04 04 00 7F E0 02 00 F4 03 04 00 73 EC 17 67 B6 04 01 00 00 94 B5 F5 E6 90 0D C5 9B [00:25:44]CommunicateWithHost err = 0 [00:25:44]CheckOFDResponse [00:25:44]1017 (14) - 77093643461234 [00:25:44]1041 (16) - 0000000000965340 [00:25:44]1040 (4) - 188543 [00:25:44]1012 (4) - 22.10.2024 18:18 [00:25:44]1206 (1) - 0 [00:25:44]OFD Sender: Remove packet 188543 [00:25:44]ProducePacketName [00:25:44]name=ofd_packets/00188543 [00:25:44]NVStorageDeleteData [00:25:45]OFD Sender: No OFD packet to send [00:25:45]*** Cut start [00:25:45]*** Partial cut [00:25:45]*** CUTSNS_PIN = 1 [00:25:45]*** CUTSNS_PIN = 0 [00:25:46]*** Brake cut motor [00:25:46]Read from MH i2c: 01 [00:25:46]MH_I2C_Read... [00:25:46]*** Stop cut motor [00:25:46]*** Cut end [00:25:46]Read from MH i2c: 01 07 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: 01 07 00 E8 0C 00 00 00 00 00 FF 0F 09 [00:25:46]process_action close_receipt done [00:25:46]requested_data is exist [00:25:46]produce_requested_data [00:25:46]requested_item fm.sn is exist - process it [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 11 00 00 [00:25:46]Write to MH i2c: E2 08 00 E9 0C 80 11 00 00 00 00 00 00 6F [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 17 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 17 00 E9 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BD [00:25:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:25:46]wFMCommunicate OK [00:25:46]requested_item fd.num is exist - process it [00:25:46]SAM_PROTO_GetFieldsCounters [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 00 00 [00:25:46]Write to MH i2c: E2 08 00 EA 0C 80 13 00 00 00 00 00 00 72 [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 62 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 62 00 EA 0C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 AC [00:25:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 7F E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 01 00 00 00 5E 04 04 00 01 00 00 00 57 04 04 00 02 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetFieldsCounters done [00:25:46]requested_item shift.num is exist - process it [00:25:46]requested_item shift.opened is exist - process it [00:25:46]req_shift_opened [00:25:46]FM_GetShiftState [00:25:46]SAM_PROTO_GetShiftState [00:25:46]wFMCommunicate request_size=4 [00:25:46]MH_SAM_APDU [00:25:46]CAPDU: 80 13 01 00 [00:25:46]Write to MH i2c: E2 08 00 EB 0C 80 13 01 00 00 00 00 00 74 [00:25:46]Write i2c OK [00:25:46]MH_I2C_Read... [00:25:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:25:46]Read from MH i2c: E2 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 [00:25:46]MH_I2C_Read... [00:25:46]Read from MH i2c: E2 0E 00 EB 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5C [00:25:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:25:46]wFMCommunicate OK [00:25:46]SAM_PROTO_GetShiftState done [00:25:46]FM_GetShiftState done [00:25:46]req_shift_opened done [00:25:46]requested_item shift.open_date is exist - process it [00:25:46]req_shift_open_date [00:25:46]req_shift_open_date done [00:25:46]produce_requested_data done [00:25:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188543,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:25:46]process_action_free close_receipt [00:25:46]json_value_free [00:25:46]json_value_free done [00:25:46]process_json_proto returns [00:25:46]Send response to host [00:25:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188543,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:25:46]free response buf [00:25:46]execute_script done [00:25:46]execute_script returns [00:25:46]free content buf [00:25:46]Sock 9.Close socket [00:25:46]Sock 9.Thread stoped [00:25:50]OFD Sender: No OFD packet to send [00:25:55]OFD Sender: No OFD packet to send [00:26:00]OFD Sender: No OFD packet to send [00:26:05]OFD Sender: No OFD packet to send [00:26:10]OFD Sender: No OFD packet to send [00:26:15]OFD Sender: No OFD packet to send [00:26:20]OFD Sender: No OFD packet to send [00:26:25]OFD Sender: No OFD packet to send [00:26:30]OFD Sender: No OFD packet to send [00:26:35]OFD Sender: No OFD packet to send [00:26:40]OFD Sender: No OFD packet to send [00:26:45]OFD Sender: No OFD packet to send [00:26:50]OFD Sender: No OFD packet to send [00:26:55]OFD Sender: No OFD packet to send [00:27:00]OFD Sender: No OFD packet to send [00:27:05]OFD Sender: No OFD packet to send [00:27:10]OFD Sender: No OFD packet to send [00:27:15]OFD Sender: No OFD packet to send [00:27:20]OFD Sender: No OFD packet to send [00:27:25]OFD Sender: No OFD packet to send [00:27:26]accept exits with 7 [00:27:26]New connection [00:27:26]New thread 3066649956 created [00:27:26]Thread 3066506596 joined [00:27:26]Waiting for new connection... [00:27:26] Sock 7.Parse request [00:27:26]Sock 7.Check first char [00:27:26]Sock 7.First char is OK [00:27:26]request: POST /json_proto HTTP/1.0 [00:27:26]Method: POST [00:27:26]URL: /json_proto [00:27:26]Method is POST - this is cgi request [00:27:26]url: /json_proto [00:27:26]query_string will be loaded in cgi processing [00:27:26]execute_cgi json_proto POST (null) [00:27:26]execute_cgi path=json_proto method=POST [00:27:26]POST find Content-Length [00:27:26]Host: 172.17.42.131:8080 [00:27:26]Content-Length: 819 [00:27:26]Content-Type: application/json [00:27:26] [00:27:26]POST finish read [00:27:26]Found Content-Length = 819 [00:27:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:26]execute_script... [00:27: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)210603", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 23", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 13.480, "sum" : 1000.22, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 1000.22 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:27:26]POST & json_proto [00:27:26]process_json_proto [00:27:26]json parsed OK: [00:27:26]protocol is kg_v1.0 [00:27:26]action value=close_receipt [00:27:26]process_action close_receipt [00:27:26]cmd_close_receipt [00:27:26]MH_GetDate [00:27:26]Write to MH i2c: F0 00 00 EC 0C E7 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: F0 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: F0 09 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: F0 09 00 EC 0C 00 EF 42 18 67 A0 18 CA 66 88 [00:27:26]GetLastDocTimeStamp 1729643143 [00:27:26]current date 1729643247 [00:27:26]FM_GetShiftState [00:27:26]SAM_PROTO_GetShiftState [00:27:26]wFMCommunicate request_size=4 [00:27:26]MH_SAM_APDU [00:27:26]CAPDU: 80 13 01 00 [00:27:26]Write to MH i2c: E2 08 00 ED 0C 80 13 01 00 00 00 00 00 76 [00:27:26]Write i2c OK [00:27:26]MH_I2C_Read... [00:27:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:26]Read from MH i2c: E2 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 0E 00 [00:27:26]MH_I2C_Read... [00:27:26]Read from MH i2c: E2 0E 00 ED 0C 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5E [00:27:26]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:27:26]wFMCommunicate OK [00:27:26]SAM_PROTO_GetShiftState done [00:27:26]FM_GetShiftState done [00:27:26]opened in 1729642525 [00:27:26]opened+sec_in_day 1729728925 [00:27:26]quantity*price = 100021 [00:27:26]sum+1 = 100023 [00:27:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.22 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 0.00 Безнал.: 1000.22 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 2 23.10.2024 00:27 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188544 ФПД: 107900584368849 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188544&fm=107900584368849&tin=02508201610067®Number=0000000000100030&sum=100022 [00:27:27]StoreToDocumentArchive [00:27:27]shift 462 fd 188544 [00:27:27]save to /storage/0462/doc_00188544 [00:27:27]save last doc name /storage/0462/doc_00188544 to /storage/kkm_last_doc_name [00:27:27]save OK [00:27:27]Clear old archive folders... [00:27:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:27:27]tlvbuf is 008EAD40 [00:27:27]SAM_PROTO_ClearQueue [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 09 00 00 [00:27:27]Write to MH i2c: E2 08 00 FA 0C 80 09 00 00 00 00 00 00 78 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 FA 0C 00 90 00 7A [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]SAM_PROTO_ClearQueue done [00:27:27]KKMCreateOFDPacket [00:27:27]OFDProtocolAddRootSTLVToBuf [00:27:27]FM_MakeSignedData [00:27:27]FM_MakeSignedData [00:27:27]SAM_PROTO_SignData [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 01 02 [00:27:27]Write to MH i2c: E2 08 00 FB 0C 80 0D 01 02 00 00 00 00 80 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 FB 0C 00 90 00 7B [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=255 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EF 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E0 02 00 35 04 06 00 62 [00:27:27]Write to MH i2c: E2 02 01 FC 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 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EF 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E0 02 00 35 04 06 00 62 00 00 81 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 FC 0C 00 90 00 7C [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=10 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 02 02 05 22 90 00 9A D1 [00:27:27]Write to MH i2c: E2 0D 00 FD 0C 80 0D 02 02 05 00 22 90 00 9A D1 00 00 AA [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 03 00 FD 0C 00 90 00 7D [00:27:27]RAPDU: 90 00 [00:27:27]wFMCommunicate OK [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 0D 03 02 [00:27:27]Write to MH i2c: E2 08 00 FE 0C 80 0D 03 02 00 00 00 00 85 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 0B 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 0B 00 FE 0C 00 E4 6E CA 9F 4C F2 4E B2 90 00 7F [00:27:27]RAPDU: E4 6E CA 9F 4C F2 4E B2 90 00 [00:27:27]wFMCommunicate OK [00:27:27]SAM_PROTO_SignData done [00:27:27]FM_MakeSignedData done [00:27:27]CreateOFDProtocolMessage [00:27:27]wFMCommunicate request_size=4 [00:27:27]MH_SAM_APDU [00:27:27]CAPDU: 80 11 00 00 [00:27:27]Write to MH i2c: E2 08 00 FF 0C 80 11 00 00 00 00 00 00 85 [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:27]Read from MH i2c: E2 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 17 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: E2 17 00 FF 0C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D3 [00:27:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:27:27]wFMCommunicate OK [00:27:27]CreateOFDProtocolMessage done [00:27:27]OFDSenderStorePacket 188544 [00:27:27]StoreOFDPacket docnum=188544 [00:27:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D 41 07 01 51 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EF 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E0 02 00 35 04 06 00 62 22 90 00 9A D1 E4 6E CA 9F 4C F2 4E B2 [00:27:27]CheckFolder [00:27:27]dirname=/storage/ofd_packets [00:27:27]CheckFolder done [00:27:27]ProducePacketName [00:27:27]name=ofd_packets/00188544 [00:27:27]NVStorageSaveData ofd_packets/00188544 [00:27:27]File name is /storage/ofd_packets/00188544 [00:27:27]Write 301 bytes [00:27:27]NVStorageSaveData done [00:27:27]OFDSenderStorePacket done [00:27:27]KKMCreateOFDPacket done [00:27:27]NVStorageSaveData kkm_last_timestamp [00:27:27]File name is /storage/kkm_last_timestamp [00:27:27]Write 4 bytes [00:27:27]NVStorageSaveData done [00:27:27]ExternCall_PrintAddStr [00:27:27]wPrintStart [00:27:27]Write to MH i2c: 01 00 00 00 0D 0D [00:27:27]Write i2c OK [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 07 00 [00:27:27]MH_I2C_Read... [00:27:27]Read from MH i2c: 01 07 00 00 0D 00 00 00 00 00 FF 0F 22 [00:27:27]RasterBufferAndPrint [00:27:27]line Счет N : (1)210603 [00:27:27]line ИНН: 02508201610067 [00:27:27]line Контрольно-Кассовый Чек [00:27:27]line ПРОДАЖА [00:27:27]line ТРК (МРК, ГНК) : 23 [00:27:27]line Товар: 2710124500 [00:27:27]line Аи-95-К-3 [00:27:27]line 13.480 * 74.20 [00:27:27]line = 1000.22 [00:27:27]line НДС 12% НСП 1% [00:27:27]line > о реализуемом товаре [00:27:27]line ИТОГО: 1000.22 [00:27:27]line НСП 1% : 8.85 [00:27:27]line НДС 12% : 106.22 [00:27:27]line Наличными: 0.00 [00:27:27]line Безнал.: 1000.22 [00:27:27]line Место: АЗС № 86 "Партнер Нефть" [00:27:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:27:27]line СНО: Общий режим [00:27:27]line Чек 2 23.10.2024 00:27 [00:27:27]line Смена: 462 ФФД: 1.0 [00:27:27]line ЗНМ: 0300000155 [00:27:27]line РНМ: 0000000000100030 [00:27:27]line Версия ККМ: 001 [00:27:27]line Платежная система: Бакай Банк [00:27:27]line ФМ: 0000000000965340 [00:27:27]line ФД: 188544 [00:27:27]line ФПД: 107900584368849 [00:27:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002727&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188544&fm=107900584368849&tin=02508201610067®Number=0000000000100030&sum=100022 [00:27:28]OFD Sender: Processing packet 188544 [packets to send 1062, broken 1061] [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00188544 [00:27:28]OFD Sender: To server: pG, [00:27:28]CommunicateWithHost lk.salyk.kg:30040 [00:27:28]ConnectInit lk.salyk.kg [00:27:28]written 0, free lines is 4095 [00:27:28]Connected sock=10 [00:27:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 6D 41 07 01 51 F8 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 A8 34 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 B6 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B6 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7E 29 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B6 86 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 02 00 00 00 F4 03 04 00 EF 42 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 80 E0 02 00 35 04 06 00 62 22 90 00 9A D1 E4 6E CA 9F 4C F2 4E B2 [00:27:28]Write to MH i2c: 01 00 00 2A 0D 37 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 07 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: 01 07 00 2A 0D 00 00 00 00 00 64 0C AE [00:27:28]RasterBufferAndPrint [00:27:28]line [00:27:28]line [00:27:28]line [00:27:28]line [00:27:28]line [00:27:28]written 0, free lines is 3175 [00:27:28]MH_Cut [00:27:28]Write to MH i2c: D1 01 00 31 0D 01 10 [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: D1 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: D1 01 00 [00:27:28]MH_I2C_Read... [00:27:28]Read from MH i2c: D1 01 00 31 0D 00 0F [00:27:28]Write to MH i2c: 01 00 00 32 0D 3F [00:27:28]Write i2c OK [00:27:28]MH_I2C_Read... [00:27:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 A0 FD 47 00 7F 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 39 36 35 33 34 30 10 04 04 00 80 E0 02 00 F4 03 04 00 DB EC 17 67 B6 04 01 00 00 BD 29 FE D8 CE 12 B0 EC [00:27:28]CommunicateWithHost err = 0 [00:27:28]CheckOFDResponse [00:27:28]1017 (14) - 77093643461234 [00:27:28]1041 (16) - 0000000000965340 [00:27:28]1040 (4) - 188544 [00:27:28]1012 (4) - 22.10.2024 18:20 [00:27:28]1206 (1) - 0 [00:27:28]OFD Sender: Remove packet 188544 [00:27:28]ProducePacketName [00:27:28]name=ofd_packets/00188544 [00:27:28]NVStorageDeleteData [00:27:29]OFD Sender: No OFD packet to send [00:27:29]*** Cut start [00:27:29]*** Partial cut [00:27:29]*** CUTSNS_PIN = 1 [00:27:29]*** CUTSNS_PIN = 0 [00:27:30]*** Brake cut motor [00:27:30]Read from MH i2c: 01 [00:27:30]MH_I2C_Read... [00:27:30]*** Stop cut motor [00:27:30]*** Cut end [00:27:30]Read from MH i2c: 01 07 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: 01 07 00 32 0D 00 00 00 00 00 FF 0F 54 [00:27:30]process_action close_receipt done [00:27:30]requested_data is exist [00:27:30]produce_requested_data [00:27:30]requested_item fm.sn is exist - process it [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 11 00 00 [00:27:30]Write to MH i2c: E2 08 00 33 0D 80 11 00 00 00 00 00 00 BA [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 17 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 17 00 33 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 08 [00:27:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:27:30]wFMCommunicate OK [00:27:30]requested_item fd.num is exist - process it [00:27:30]SAM_PROTO_GetFieldsCounters [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 00 00 [00:27:30]Write to MH i2c: E2 08 00 34 0D 80 13 00 00 00 00 00 00 BD [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 62 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 62 00 34 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 FB [00:27:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 80 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 02 00 00 00 5E 04 04 00 02 00 00 00 57 04 04 00 03 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetFieldsCounters done [00:27:30]requested_item shift.num is exist - process it [00:27:30]requested_item shift.opened is exist - process it [00:27:30]req_shift_opened [00:27:30]FM_GetShiftState [00:27:30]SAM_PROTO_GetShiftState [00:27:30]wFMCommunicate request_size=4 [00:27:30]MH_SAM_APDU [00:27:30]CAPDU: 80 13 01 00 [00:27:30]Write to MH i2c: E2 08 00 35 0D 80 13 01 00 00 00 00 00 BF [00:27:30]Write i2c OK [00:27:30]MH_I2C_Read... [00:27:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:27:30]Read from MH i2c: E2 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 [00:27:30]MH_I2C_Read... [00:27:30]Read from MH i2c: E2 0E 00 35 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A7 [00:27:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:27:30]wFMCommunicate OK [00:27:30]SAM_PROTO_GetShiftState done [00:27:30]FM_GetShiftState done [00:27:30]req_shift_opened done [00:27:30]requested_item shift.open_date is exist - process it [00:27:30]req_shift_open_date [00:27:30]req_shift_open_date done [00:27:30]produce_requested_data done [00:27:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188544,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:27:30]process_action_free close_receipt [00:27:30]json_value_free [00:27:30]json_value_free done [00:27:30]process_json_proto returns [00:27:30]Send response to host [00:27:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188544,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:27:30]free response buf [00:27:30]execute_script done [00:27:30]execute_script returns [00:27:30]free content buf [00:27:30]Sock 7.Close socket [00:27:30]Sock 7.Thread stoped [00:27:34]OFD Sender: No OFD packet to send [00:27:39]OFD Sender: No OFD packet to send [00:27:44]OFD Sender: No OFD packet to send [00:27:49]OFD Sender: No OFD packet to send [00:27:54]OFD Sender: No OFD packet to send [00:27:59]OFD Sender: No OFD packet to send [00:28:04]OFD Sender: No OFD packet to send [00:28:06]accept exits with 9 [00:28:06]New connection [00:28:06]New thread 3066506596 created [00:28:06]Thread 3066649956 joined [00:28:06]Waiting for new connection... [00:28:06] Sock 9.Parse request [00:28:06]Sock 9.Check first char [00:28:06]Sock 9.First char is OK [00:28:06]request: POST /json_proto HTTP/1.0 [00:28:06]Method: POST [00:28:06]URL: /json_proto [00:28:06]Method is POST - this is cgi request [00:28:06]url: /json_proto [00:28:06]query_string will be loaded in cgi processing [00:28:06]execute_cgi json_proto POST (null) [00:28:06]execute_cgi path=json_proto method=POST [00:28:06]POST find Content-Length [00:28:06]Host: 172.17.42.131:8080 [00:28:06]Content-Length: 682 [00:28:06]Content-Type: application/json [00:28:06] [00:28:06]POST finish read [00:28:06]Found Content-Length = 682 [00:28:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [00:28:06]execute_script... [00:28: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)210604", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [00:28:06]POST & json_proto [00:28:06]process_json_proto [00:28:06]json parsed OK: [00:28:06]protocol is kg_v1.0 [00:28:06]action value=close_receipt [00:28:06]process_action close_receipt [00:28:06]cmd_close_receipt [00:28:06]MH_GetDate [00:28:06]Write to MH i2c: F0 00 00 36 0D 32 [00:28:06]Write i2c OK [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: F0 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: F0 09 00 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: F0 09 00 36 0D 00 17 43 18 67 A0 18 CA 66 FC [00:28:06]GetLastDocTimeStamp 1729643247 [00:28:06]current date 1729643287 [00:28:06]FM_GetShiftState [00:28:06]SAM_PROTO_GetShiftState [00:28:06]wFMCommunicate request_size=4 [00:28:06]MH_SAM_APDU [00:28:06]CAPDU: 80 13 01 00 [00:28:06]Write to MH i2c: E2 08 00 37 0D 80 13 01 00 00 00 00 00 C1 [00:28:06]Write i2c OK [00:28:06]MH_I2C_Read... [00:28:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:06]Read from MH i2c: E2 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 0E 00 [00:28:06]MH_I2C_Read... [00:28:06]Read from MH i2c: E2 0E 00 37 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A9 [00:28:06]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:28:06]wFMCommunicate OK [00:28:06]SAM_PROTO_GetShiftState done [00:28:06]FM_GetShiftState done [00:28:06]opened in 1729642525 [00:28:06]opened+sec_in_day 1729728925 [00:28:06]quantity*price = 200031 [00:28:06]sum+1 = 200032 [00:28:06]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 3 23.10.2024 00:28 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188545 ФПД: 214890240367325 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002807&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188545&fm=214890240367325&tin=02508201610067®Number=0000000000100030&sum=200000 [00:28:07]StoreToDocumentArchive [00:28:07]shift 462 fd 188545 [00:28:07]save to /storage/0462/doc_00188545 [00:28:07]save last doc name /storage/0462/doc_00188545 to /storage/kkm_last_doc_name [00:28:07]save OK [00:28:07]Clear old archive folders... [00:28:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:28:07]tlvbuf is 008DE090 [00:28:07]SAM_PROTO_ClearQueue [00:28:07]wFMCommunicate request_size=4 [00:28:07]MH_SAM_APDU [00:28:07]CAPDU: 80 09 00 00 [00:28:07]Write to MH i2c: E2 08 00 44 0D 80 09 00 00 00 00 00 00 C3 [00:28:07]Write i2c OK [00:28:07]MH_I2C_Read... [00:28:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:28:07]Read from MH i2c: E2 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 44 0D 00 90 00 C5 [00:28:07]RAPDU: 90 00 [00:28:07]wFMCommunicate OK [00:28:07]SAM_PROTO_ClearQueue done [00:28:07]KKMCreateOFDPacket [00:28:07]OFDProtocolAddRootSTLVToBuf [00:28:07]FM_MakeSignedData [00:28:07]FM_MakeSignedData [00:28:07]SAM_PROTO_SignData [00:28:07]wFMCommunicate request_size=4 [00:28:07]MH_SAM_APDU [00:28:07]CAPDU: 80 0D 01 02 [00:28:07]Write to MH i2c: E2 08 00 45 0D 80 0D 01 02 00 00 00 00 CB [00:28:07]Write i2c OK [00:28:07]MH_I2C_Read... [00:28:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:28:07]Read from MH i2c: E2 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 45 0D 00 90 00 C6 [00:28:07]RAPDU: 90 00 [00:28:07]wFMCommunicate OK [00:28:07]wFMCommunicate request_size=255 [00:28:07]MH_SAM_APDU [00:28: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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 03 00 00 00 F4 03 04 00 17 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E0 02 00 35 04 06 00 C3 [00:28:07]Write to MH i2c: E2 02 01 46 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 03 00 00 00 F4 03 04 00 17 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E0 02 00 35 04 06 00 C3 00 00 51 [00:28:07]Write i2c OK [00:28:07]MH_I2C_Read... [00:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:07]Read from MH i2c: E2 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 46 0D 00 90 00 C7 [00:28:07]RAPDU: 90 00 [00:28:07]wFMCommunicate OK [00:28:07]wFMCommunicate request_size=10 [00:28:07]MH_SAM_APDU [00:28:07]CAPDU: 80 0D 02 02 05 71 08 71 5A DD [00:28:07]Write to MH i2c: E2 0D 00 47 0D 80 0D 02 02 05 00 71 08 71 5A DD 00 00 F9 [00:28:07]Write i2c OK [00:28:07]MH_I2C_Read... [00:28:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:28:07]Read from MH i2c: E2 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 [00:28:07]MH_I2C_Read... [00:28:07]Read from MH i2c: E2 03 00 47 0D 00 90 00 C8 [00:28:07]RAPDU: 90 00 [00:28:07]wFMCommunicate OK [00:28:07]wFMCommunicate request_size=4 [00:28:07]MH_SAM_APDU [00:28:07]CAPDU: 80 0D 03 02 [00:28:07]Write to MH i2c: E2 08 00 48 0D 80 0D 03 02 00 00 00 00 D0 [00:28:07]Write i2c OK [00:28:07]MH_I2C_Read... [00:28:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:28:08]Read from MH i2c: E2 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 0B 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 0B 00 48 0D 00 6C 60 37 D7 80 59 6A 27 90 00 15 [00:28:08]RAPDU: 6C 60 37 D7 80 59 6A 27 90 00 [00:28:08]wFMCommunicate OK [00:28:08]SAM_PROTO_SignData done [00:28:08]FM_MakeSignedData done [00:28:08]CreateOFDProtocolMessage [00:28:08]wFMCommunicate request_size=4 [00:28:08]MH_SAM_APDU [00:28:08]CAPDU: 80 11 00 00 [00:28:08]Write to MH i2c: E2 08 00 49 0D 80 11 00 00 00 00 00 00 D0 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:08]Read from MH i2c: E2 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 17 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: E2 17 00 49 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1E [00:28:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:28:08]wFMCommunicate OK [00:28:08]CreateOFDProtocolMessage done [00:28:08]OFDSenderStorePacket 188545 [00:28:08]StoreOFDPacket docnum=188545 [00:28:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E E6 07 01 5E 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 03 00 00 00 F4 03 04 00 17 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E0 02 00 35 04 06 00 C3 71 08 71 5A DD 6C 60 37 D7 80 59 6A 27 [00:28:08]CheckFolder [00:28:08]dirname=/storage/ofd_packets [00:28:08]CheckFolder done [00:28:08]ProducePacketName [00:28:08]name=ofd_packets/00188545 [00:28:08]NVStorageSaveData ofd_packets/00188545 [00:28:08]File name is /storage/ofd_packets/00188545 [00:28:08]Write 301 bytes [00:28:08]NVStorageSaveData done [00:28:08]OFDSenderStorePacket done [00:28:08]KKMCreateOFDPacket done [00:28:08]NVStorageSaveData kkm_last_timestamp [00:28:08]File name is /storage/kkm_last_timestamp [00:28:08]Write 4 bytes [00:28:08]NVStorageSaveData done [00:28:08]ExternCall_PrintAddStr [00:28:08]wPrintStart [00:28:08]Write to MH i2c: 01 00 00 4A 0D 57 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 4A 0D 00 00 00 00 00 FF 0F 6C [00:28:08]RasterBufferAndPrint [00:28:08]line Счет N : (1)210604 [00:28:08]line ИНН: 02508201610067 [00:28:08]line Контрольно-Кассовый Чек [00:28:08]line ПРОДАЖА [00:28:08]line ТРК (МРК, ГНК) : 32 [00:28:08]line Товар: 2710124130 [00:28:08]line Аи-92-К-3 [00:28:08]line 29.900 * 66.90 [00:28:08]line = 2000.31 [00:28:08]line НДС 12% НСП 1% [00:28:08]line > о реализуемом товаре [00:28:08]line ОКРУГЛЕНИЕ: -0.31 [00:28:08]line ИТОГО: 2000.00 [00:28:08]line Внесено: 2000.00 [00:28:08]line СДАЧА: 0.00 [00:28:08]line НСП 1% : 17.70 [00:28:08]line НДС 12% : 212.42 [00:28:08]line Наличными: 2000.00 [00:28:08]line Безнал.: 0.00 [00:28:08]line Место: АЗС № 86 "Партнер Нефть" [00:28:08]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:28:08]line СНО: Общий режим [00:28:08]line Чек 3 23.10.2024 00:28 [00:28:08]line Смена: 462 ФФД: 1.0 [00:28:08]line ЗНМ: 0300000155 [00:28:08]line РНМ: 0000000000100030 [00:28:08]line Версия ККМ: 001 [00:28:08]line ФМ: 0000000000965340 [00:28:08]line ФД: 188545 [00:28:08]line ФПД: 214890240367325 [00:28:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T002807&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188545&fm=214890240367325&tin=02508201610067®Number=0000000000100030&sum=200000 [00:28:08]OFD Sender: Processing packet 188545 [packets to send 1062, broken 1061] [00:28:08]ProducePacketName [00:28:08]name=ofd_packets/00188545 [00:28:08]OFD Sender: To server: pG, [00:28:08]CommunicateWithHost lk.salyk.kg:30040 [00:28:08]ConnectInit lk.salyk.kg [00:28:08]written 0, free lines is 4095 [00:28:08]Connected sock=10 [00:28:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 7E E6 07 01 5E 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 03 00 00 00 F4 03 04 00 17 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 81 E0 02 00 35 04 06 00 C3 71 08 71 5A DD 6C 60 37 D7 80 59 6A 27 [00:28:08]Write to MH i2c: 01 00 00 75 0D 82 [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: 01 07 00 75 0D 00 00 00 00 00 53 0C E8 [00:28:08]RasterBufferAndPrint [00:28:08]line [00:28:08]line [00:28:08]line [00:28:08]line [00:28:08]line [00:28:08]written 0, free lines is 3159 [00:28:08]MH_Cut [00:28:08]Write to MH i2c: D1 01 00 7C 0D 01 5B [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: D1 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: D1 01 00 [00:28:08]MH_I2C_Read... [00:28:08]Read from MH i2c: D1 01 00 7C 0D 00 5A [00:28:08]Write to MH i2c: 01 00 00 7D 0D 8A [00:28:08]Write i2c OK [00:28:08]MH_I2C_Read... [00:28:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 F3 D5 47 00 24 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 39 36 35 33 34 30 10 04 04 00 81 E0 02 00 F4 03 04 00 03 ED 17 67 B6 04 01 00 00 6D F4 B2 9F 5B C9 89 08 [00:28:08]CommunicateWithHost err = 0 [00:28:08]CheckOFDResponse [00:28:08]1017 (14) - 77093643461234 [00:28:08]1041 (16) - 0000000000965340 [00:28:08]1040 (4) - 188545 [00:28:08]1012 (4) - 22.10.2024 18:20 [00:28:08]1206 (1) - 0 [00:28:08]OFD Sender: Remove packet 188545 [00:28:08]ProducePacketName [00:28:08]name=ofd_packets/00188545 [00:28:08]NVStorageDeleteData [00:28:09]OFD Sender: No OFD packet to send [00:28:09]*** Cut start [00:28:09]*** Partial cut [00:28:09]*** CUTSNS_PIN = 1 [00:28:09]*** CUTSNS_PIN = 0 [00:28:10]*** Brake cut motor [00:28:10]Read from MH i2c: 01 [00:28:10]MH_I2C_Read... [00:28:10]*** Stop cut motor [00:28:10]*** Cut end [00:28:10]Read from MH i2c: 01 07 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: 01 07 00 7D 0D 00 00 00 00 00 FF 0F 9F [00:28:10]process_action close_receipt done [00:28:10]requested_data is exist [00:28:10]produce_requested_data [00:28:10]requested_item fm.sn is exist - process it [00:28:10]wFMCommunicate request_size=4 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 11 00 00 [00:28:10]Write to MH i2c: E2 08 00 7E 0D 80 11 00 00 00 00 00 00 05 [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 17 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 17 00 7E 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 53 [00:28:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:28:10]wFMCommunicate OK [00:28:10]requested_item fd.num is exist - process it [00:28:10]SAM_PROTO_GetFieldsCounters [00:28:10]wFMCommunicate request_size=4 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 13 00 00 [00:28:10]Write to MH i2c: E2 08 00 7F 0D 80 13 00 00 00 00 00 00 08 [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 62 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 62 00 7F 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [00:28:10]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 81 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 03 00 00 00 5E 04 04 00 03 00 00 00 57 04 04 00 04 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:28:10]wFMCommunicate OK [00:28:10]SAM_PROTO_GetFieldsCounters done [00:28:10]requested_item shift.num is exist - process it [00:28:10]requested_item shift.opened is exist - process it [00:28:10]req_shift_opened [00:28:10]FM_GetShiftState [00:28:10]SAM_PROTO_GetShiftState [00:28:10]wFMCommunicate request_size=4 [00:28:10]MH_SAM_APDU [00:28:10]CAPDU: 80 13 01 00 [00:28:10]Write to MH i2c: E2 08 00 80 0D 80 13 01 00 00 00 00 00 0A [00:28:10]Write i2c OK [00:28:10]MH_I2C_Read... [00:28:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:28:10]Read from MH i2c: E2 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 0E 00 [00:28:10]MH_I2C_Read... [00:28:10]Read from MH i2c: E2 0E 00 80 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F2 [00:28:10]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:28:10]wFMCommunicate OK [00:28:10]SAM_PROTO_GetShiftState done [00:28:10]FM_GetShiftState done [00:28:10]req_shift_opened done [00:28:10]requested_item shift.open_date is exist - process it [00:28:10]req_shift_open_date [00:28:10]req_shift_open_date done [00:28:10]produce_requested_data done [00:28:10]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188545,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:28:10]process_action_free close_receipt [00:28:10]json_value_free [00:28:10]json_value_free done [00:28:10]process_json_proto returns [00:28:10]Send response to host [00:28:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188545,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:28:10]free response buf [00:28:10]execute_script done [00:28:10]execute_script returns [00:28:10]free content buf [00:28:10]Sock 9.Close socket [00:28:10]Sock 9.Thread stoped [00:28:14]OFD Sender: No OFD packet to send [00:28:19]OFD Sender: No OFD packet to send [00:28:24]OFD Sender: No OFD packet to send [00:28:29]OFD Sender: No OFD packet to send [00:28:34]OFD Sender: No OFD packet to send [00:28:39]OFD Sender: No OFD packet to send [00:28:44]OFD Sender: No OFD packet to send [00:28:49]OFD Sender: No OFD packet to send [00:28:54]OFD Sender: No OFD packet to send [00:28:59]OFD Sender: No OFD packet to send [00:29:04]OFD Sender: No OFD packet to send [00:29:09]OFD Sender: No OFD packet to send [00:29:14]OFD Sender: No OFD packet to send [00:29:19]OFD Sender: No OFD packet to send [00:29:24]OFD Sender: No OFD packet to send [00:29:29]OFD Sender: No OFD packet to send [00:29:34]OFD Sender: No OFD packet to send [00:29:39]OFD Sender: No OFD packet to send [00:29:44]OFD Sender: No OFD packet to send [00:29:49]OFD Sender: No OFD packet to send [00:29:54]OFD Sender: No OFD packet to send [00:29:59]OFD Sender: No OFD packet to send [00:30:04]accept exits with 7 [00:30:04]New connection [00:30:04]New thread 3066649956 created [00:30:04]Thread 3066506596 joined [00:30:04]Waiting for new connection... [00:30:04] Sock 7.Parse request [00:30:04]Sock 7.Check first char [00:30:04]Sock 7.First char is OK [00:30:04]request: POST /json_proto HTTP/1.0 [00:30:04]Method: POST [00:30:04]URL: /json_proto [00:30:04]Method is POST - this is cgi request [00:30:04]url: /json_proto [00:30:04]query_string will be loaded in cgi processing [00:30:04]execute_cgi json_proto POST (null) [00:30:04]execute_cgi path=json_proto method=POST [00:30:04]POST find Content-Length [00:30:04]Host: 172.17.42.131:8080 [00:30:04]Content-Length: 677 [00:30:04]Content-Type: application/json [00:30:04] [00:30:04]POST finish read [00:30:04]Found Content-Length = 677 [00:30:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:04]execute_script... [00:30: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)210605", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:30:04]POST & json_proto [00:30:04]process_json_proto [00:30:04]json parsed OK: [00:30:04]protocol is kg_v1.0 [00:30:04]action value=close_receipt [00:30:04]process_action close_receipt [00:30:04]cmd_close_receipt [00:30:04]MH_GetDate [00:30:04]Write to MH i2c: F0 00 00 81 0D 7D [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: F0 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: F0 09 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: F0 09 00 81 0D 00 8D 43 18 67 A0 18 CA 66 BD [00:30:04]GetLastDocTimeStamp 1729643287 [00:30:04]current date 1729643405 [00:30:04]FM_GetShiftState [00:30:04]SAM_PROTO_GetShiftState [00:30:04]wFMCommunicate request_size=4 [00:30:04]MH_SAM_APDU [00:30:04]CAPDU: 80 13 01 00 [00:30:04]Write to MH i2c: E2 08 00 82 0D 80 13 01 00 00 00 00 00 0C [00:30:04]Write i2c OK [00:30:04]MH_I2C_Read... [00:30:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:04]Read from MH i2c: E2 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 0E 00 [00:30:04]MH_I2C_Read... [00:30:04]Read from MH i2c: E2 0E 00 82 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F4 [00:30:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:30:04]wFMCommunicate OK [00:30:04]SAM_PROTO_GetShiftState done [00:30:04]FM_GetShiftState done [00:30:04]opened in 1729642525 [00:30:04]opened+sec_in_day 1729728925 [00:30:04]quantity*price = 50041 [00:30:04]sum+1 = 50042 [00:30:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 4 23.10.2024 00:30 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188546 ФПД: 188629490107014 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188546&fm=188629490107014&tin=02508201610067®Number=0000000000100030&sum=50000 [00:30:05]StoreToDocumentArchive [00:30:05]shift 462 fd 188546 [00:30:05]save to /storage/0462/doc_00188546 [00:30:05]save last doc name /storage/0462/doc_00188546 to /storage/kkm_last_doc_name [00:30:05]save OK [00:30:05]Clear old archive folders... [00:30:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:30:05]tlvbuf is 00904BE0 [00:30:05]SAM_PROTO_ClearQueue [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 09 00 00 [00:30:05]Write to MH i2c: E2 08 00 8F 0D 80 09 00 00 00 00 00 00 0E [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 8F 0D 00 90 00 10 [00:30:05]RAPDU: 90 00 [00:30:05]wFMCommunicate OK [00:30:05]SAM_PROTO_ClearQueue done [00:30:05]KKMCreateOFDPacket [00:30:05]OFDProtocolAddRootSTLVToBuf [00:30:05]FM_MakeSignedData [00:30:05]FM_MakeSignedData [00:30:05]SAM_PROTO_SignData [00:30:05]wFMCommunicate request_size=4 [00:30:05]MH_SAM_APDU [00:30:05]CAPDU: 80 0D 01 02 [00:30:05]Write to MH i2c: E2 08 00 90 0D 80 0D 01 02 00 00 00 00 16 [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:30:05]Read from MH i2c: E2 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 [00:30:05]MH_I2C_Read... [00:30:05]Read from MH i2c: E2 03 00 90 0D 00 90 00 11 [00:30:05]RAPDU: 90 00 [00:30:05]wFMCommunicate OK [00:30:05]wFMCommunicate request_size=255 [00:30:05]MH_SAM_APDU [00:30: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8E 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E0 02 00 35 04 06 00 AB [00:30:05]Write to MH i2c: E2 02 01 91 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8E 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E0 02 00 35 04 06 00 AB 00 00 BB [00:30:05]Write i2c OK [00:30:05]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 03 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 03 00 91 0D 00 90 00 12 [00:30:06]RAPDU: 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=10 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 0D 02 02 05 8E B9 C0 82 86 [00:30:06]Write to MH i2c: E2 0D 00 92 0D 80 0D 02 02 05 00 8E B9 C0 82 86 00 00 32 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 03 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 03 00 92 0D 00 90 00 13 [00:30:06]RAPDU: 90 00 [00:30:06]wFMCommunicate OK [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 0D 03 02 [00:30:06]Write to MH i2c: E2 08 00 93 0D 80 0D 03 02 00 00 00 00 1B [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 0B 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 0B 00 93 0D 00 E1 73 40 E4 49 96 DB DF 90 00 2D [00:30:06]RAPDU: E1 73 40 E4 49 96 DB DF 90 00 [00:30:06]wFMCommunicate OK [00:30:06]SAM_PROTO_SignData done [00:30:06]FM_MakeSignedData done [00:30:06]CreateOFDProtocolMessage [00:30:06]wFMCommunicate request_size=4 [00:30:06]MH_SAM_APDU [00:30:06]CAPDU: 80 11 00 00 [00:30:06]Write to MH i2c: E2 08 00 94 0D 80 11 00 00 00 00 00 00 1B [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:06]Read from MH i2c: E2 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 17 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: E2 17 00 94 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 69 [00:30:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:30:06]wFMCommunicate OK [00:30:06]CreateOFDProtocolMessage done [00:30:06]OFDSenderStorePacket 188546 [00:30:06]StoreOFDPacket docnum=188546 [00:30:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 ED 19 07 01 15 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8E 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E0 02 00 35 04 06 00 AB 8E B9 C0 82 86 E1 73 40 E4 49 96 DB DF [00:30:06]CheckFolder [00:30:06]dirname=/storage/ofd_packets [00:30:06]CheckFolder done [00:30:06]ProducePacketName [00:30:06]name=ofd_packets/00188546 [00:30:06]NVStorageSaveData ofd_packets/00188546 [00:30:06]File name is /storage/ofd_packets/00188546 [00:30:06]Write 301 bytes [00:30:06]NVStorageSaveData done [00:30:06]OFDSenderStorePacket done [00:30:06]KKMCreateOFDPacket done [00:30:06]NVStorageSaveData kkm_last_timestamp [00:30:06]File name is /storage/kkm_last_timestamp [00:30:06]Write 4 bytes [00:30:06]NVStorageSaveData done [00:30:06]ExternCall_PrintAddStr [00:30:06]wPrintStart [00:30:06]Write to MH i2c: 01 00 00 95 0D A2 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 95 0D 00 00 00 00 00 FF 0F B7 [00:30:06]RasterBufferAndPrint [00:30:06]line Счет N : (1)210605 [00:30:06]line ИНН: 02508201610067 [00:30:06]line Контрольно-Кассовый Чек [00:30:06]line ПРОДАЖА [00:30:06]line ТРК (МРК, ГНК) : 32 [00:30:06]line Товар: 2710124130 [00:30:06]line Аи-92-К-3 [00:30:06]line 7.480 * 66.90 [00:30:06]line = 500.41 [00:30:06]line НДС 12% НСП 1% [00:30:06]line > о реализуемом товаре [00:30:06]line ОКРУГЛЕНИЕ: -0.41 [00:30:06]line ИТОГО: 500.00 [00:30:06]line Внесено: 500.00 [00:30:06]line СДАЧА: 0.00 [00:30:06]line НСП 1% : 4.43 [00:30:06]line НДС 12% : 53.14 [00:30:06]line Наличными: 500.00 [00:30:06]line Безнал.: 0.00 [00:30:06]line Место: АЗС № 86 "Партнер Нефть" [00:30:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:30:06]line СНО: Общий режим [00:30:06]line Чек 4 23.10.2024 00:30 [00:30:06]line Смена: 462 ФФД: 1.0 [00:30:06]line ЗНМ: 0300000155 [00:30:06]line РНМ: 0000000000100030 [00:30:06]line Версия ККМ: 001 [00:30:06]line ФМ: 0000000000965340 [00:30:06]line ФД: 188546 [00:30:06]line ФПД: 188629490107014 [00:30:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T003006&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188546&fm=188629490107014&tin=02508201610067®Number=0000000000100030&sum=50000 [00:30:06]written 0, free lines is 4095 [00:30:06]OFD Sender: Processing packet 188546 [packets to send 1062, broken 1061] [00:30:06]ProducePacketName [00:30:06]name=ofd_packets/00188546 [00:30:06]OFD Sender: To server: pG, [00:30:06]CommunicateWithHost lk.salyk.kg:30040 [00:30:06]ConnectInit lk.salyk.kg [00:30:06]Connected sock=10 [00:30:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 ED 19 07 01 15 0C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 8E 43 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E0 02 00 35 04 06 00 AB 8E B9 C0 82 86 E1 73 40 E4 49 96 DB DF [00:30:06]Write to MH i2c: 01 00 00 C0 0D CD [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: 01 07 00 C0 0D 00 00 00 00 00 56 0C 36 [00:30:06]RasterBufferAndPrint [00:30:06]line [00:30:06]line [00:30:06]line [00:30:06]line [00:30:06]line [00:30:06]written 0, free lines is 3161 [00:30:06]MH_Cut [00:30:06]Write to MH i2c: D1 01 00 C7 0D 01 A6 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: D1 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: D1 01 00 [00:30:06]MH_I2C_Read... [00:30:06]Read from MH i2c: D1 01 00 C7 0D 00 A5 [00:30:06]Write to MH i2c: 01 00 00 C8 0D D5 [00:30:06]Write i2c OK [00:30:06]MH_I2C_Read... [00:30:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 34 A9 47 00 93 2A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 82 E0 02 00 F4 03 04 00 79 ED 17 67 B6 04 01 00 00 6F D6 F2 FE 8C 05 E5 45 [00:30:06]CommunicateWithHost err = 0 [00:30:06]CheckOFDResponse [00:30:06]1017 (14) - 77093643461234 [00:30:06]1041 (16) - 0000000000965340 [00:30:06]1040 (4) - 188546 [00:30:06]1012 (4) - 22.10.2024 18:22 [00:30:06]1206 (1) - 0 [00:30:06]OFD Sender: Remove packet 188546 [00:30:06]ProducePacketName [00:30:06]name=ofd_packets/00188546 [00:30:06]NVStorageDeleteData [00:30:07]OFD Sender: No OFD packet to send [00:30:08]*** Cut start [00:30:08]*** Partial cut [00:30:08]*** CUTSNS_PIN = 1 [00:30:08]*** CUTSNS_PIN = 0 [00:30:08]*** Brake cut motor [00:30:08]Read from MH i2c: 01 [00:30:08]MH_I2C_Read... [00:30:08]*** Stop cut motor [00:30:08]*** Cut end [00:30:08]Read from MH i2c: 01 07 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: 01 07 00 C8 0D 00 00 00 00 00 FF 0F EA [00:30:08]process_action close_receipt done [00:30:08]requested_data is exist [00:30:08]produce_requested_data [00:30:08]requested_item fm.sn is exist - process it [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 11 00 00 [00:30:08]Write to MH i2c: E2 08 00 C9 0D 80 11 00 00 00 00 00 00 50 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 17 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 17 00 C9 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9E [00:30:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:30:08]wFMCommunicate OK [00:30:08]requested_item fd.num is exist - process it [00:30:08]SAM_PROTO_GetFieldsCounters [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 13 00 00 [00:30:08]Write to MH i2c: E2 08 00 CA 0D 80 13 00 00 00 00 00 00 53 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 62 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 62 00 CA 0D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 99 [00:30:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 82 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 04 00 00 00 5E 04 04 00 04 00 00 00 57 04 04 00 05 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_GetFieldsCounters done [00:30:08]requested_item shift.num is exist - process it [00:30:08]requested_item shift.opened is exist - process it [00:30:08]req_shift_opened [00:30:08]FM_GetShiftState [00:30:08]SAM_PROTO_GetShiftState [00:30:08]wFMCommunicate request_size=4 [00:30:08]MH_SAM_APDU [00:30:08]CAPDU: 80 13 01 00 [00:30:08]Write to MH i2c: E2 08 00 CB 0D 80 13 01 00 00 00 00 00 55 [00:30:08]Write i2c OK [00:30:08]MH_I2C_Read... [00:30:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:30:08]Read from MH i2c: E2 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 0E 00 [00:30:08]MH_I2C_Read... [00:30:08]Read from MH i2c: E2 0E 00 CB 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3D [00:30:08]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:30:08]wFMCommunicate OK [00:30:08]SAM_PROTO_GetShiftState done [00:30:08]FM_GetShiftState done [00:30:08]req_shift_opened done [00:30:08]requested_item shift.open_date is exist - process it [00:30:08]req_shift_open_date [00:30:08]req_shift_open_date done [00:30:08]produce_requested_data done [00:30:08]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188546,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:30:08]process_action_free close_receipt [00:30:08]json_value_free [00:30:08]json_value_free done [00:30:08]process_json_proto returns [00:30:08]Send response to host [00:30:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188546,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:30:08]free response buf [00:30:08]execute_script done [00:30:08]execute_script returns [00:30:08]free content buf [00:30:08]Sock 7.Close socket [00:30:08]Sock 7.Thread stoped [00:30:12]OFD Sender: No OFD packet to send [00:30:17]OFD Sender: No OFD packet to send [00:30:22]OFD Sender: No OFD packet to send [00:30:27]OFD Sender: No OFD packet to send [00:30:32]OFD Sender: No OFD packet to send [00:30:37]OFD Sender: No OFD packet to send [00:30:42]OFD Sender: No OFD packet to send [00:30:47]OFD Sender: No OFD packet to send [00:30:52]OFD Sender: No OFD packet to send [00:30:57]OFD Sender: No OFD packet to send [00:31:02]OFD Sender: No OFD packet to send [00:31:07]OFD Sender: No OFD packet to send [00:31:12]OFD Sender: No OFD packet to send [00:31:17]OFD Sender: No OFD packet to send [00:31:22]OFD Sender: No OFD packet to send [00:31:27]OFD Sender: No OFD packet to send [00:31:32]OFD Sender: No OFD packet to send [00:31:37]OFD Sender: No OFD packet to send [00:31:42]OFD Sender: No OFD packet to send [00:31:47]OFD Sender: No OFD packet to send [00:31:52]OFD Sender: No OFD packet to send [00:31:57]OFD Sender: No OFD packet to send [00:32:02]OFD Sender: No OFD packet to send [00:32:07]OFD Sender: No OFD packet to send [00:32:12]OFD Sender: No OFD packet to send [00:32:18]OFD Sender: No OFD packet to send [00:32:23]OFD Sender: No OFD packet to send [00:32:28]OFD Sender: No OFD packet to send [00:32:33]OFD Sender: No OFD packet to send [00:32:38]OFD Sender: No OFD packet to send [00:32:43]OFD Sender: No OFD packet to send [00:32:48]OFD Sender: No OFD packet to send [00:32:53]OFD Sender: No OFD packet to send [00:32:58]OFD Sender: No OFD packet to send [00:33:03]OFD Sender: No OFD packet to send [00:33:08]OFD Sender: No OFD packet to send [00:33:13]OFD Sender: No OFD packet to send [00:33:18]OFD Sender: No OFD packet to send [00:33:23]OFD Sender: No OFD packet to send [00:33:28]OFD Sender: No OFD packet to send [00:33:33]OFD Sender: No OFD packet to send [00:33:38]OFD Sender: No OFD packet to send [00:33:43]OFD Sender: No OFD packet to send [00:33:48]OFD Sender: No OFD packet to send [00:33:53]OFD Sender: No OFD packet to send [00:33:58]OFD Sender: No OFD packet to send [00:34:03]OFD Sender: No OFD packet to send [00:34:08]OFD Sender: No OFD packet to send [00:34:13]OFD Sender: No OFD packet to send [00:34:18]OFD Sender: No OFD packet to send [00:34:23]OFD Sender: No OFD packet to send [00:34:28]OFD Sender: No OFD packet to send [00:34:33]OFD Sender: No OFD packet to send [00:34:38]OFD Sender: No OFD packet to send [00:34:43]OFD Sender: No OFD packet to send [00:34:48]OFD Sender: No OFD packet to send [00:34:53]OFD Sender: No OFD packet to send [00:34:58]OFD Sender: No OFD packet to send [00:35:03]OFD Sender: No OFD packet to send [00:35:08]OFD Sender: No OFD packet to send [00:35:13]OFD Sender: No OFD packet to send [00:35:18]OFD Sender: No OFD packet to send [00:35:23]OFD Sender: No OFD packet to send [00:35:28]OFD Sender: No OFD packet to send [00:35:33]OFD Sender: No OFD packet to send [00:35:38]OFD Sender: No OFD packet to send [00:35:43]OFD Sender: No OFD packet to send [00:35:48]OFD Sender: No OFD packet to send [00:35:53]OFD Sender: No OFD packet to send [00:35:58]OFD Sender: No OFD packet to send [00:36:03]OFD Sender: No OFD packet to send [00:36:09]OFD Sender: No OFD packet to send [00:36:14]OFD Sender: No OFD packet to send [00:36:19]OFD Sender: No OFD packet to send [00:36:24]OFD Sender: No OFD packet to send [00:36:29]OFD Sender: No OFD packet to send [00:36:34]OFD Sender: No OFD packet to send [00:36:39]OFD Sender: No OFD packet to send [00:36:44]OFD Sender: No OFD packet to send [00:36:49]OFD Sender: No OFD packet to send [00:36:54]OFD Sender: No OFD packet to send [00:36:59]OFD Sender: No OFD packet to send [00:37:04]OFD Sender: No OFD packet to send [00:37:09]OFD Sender: No OFD packet to send [00:37:14]OFD Sender: No OFD packet to send [00:37:19]OFD Sender: No OFD packet to send [00:37:24]OFD Sender: No OFD packet to send [00:37:29]OFD Sender: No OFD packet to send [00:37:34]OFD Sender: No OFD packet to send [00:37:39]OFD Sender: No OFD packet to send [00:37:44]OFD Sender: No OFD packet to send [00:37:49]OFD Sender: No OFD packet to send [00:37:54]OFD Sender: No OFD packet to send [00:37:59]OFD Sender: No OFD packet to send [00:38:04]OFD Sender: No OFD packet to send [00:38:09]OFD Sender: No OFD packet to send [00:38:14]OFD Sender: No OFD packet to send [00:38:19]OFD Sender: No OFD packet to send [00:38:24]OFD Sender: No OFD packet to send [00:38:29]OFD Sender: No OFD packet to send [00:38:34]OFD Sender: No OFD packet to send [00:38:39]OFD Sender: No OFD packet to send [00:38:44]OFD Sender: No OFD packet to send [00:38:49]OFD Sender: No OFD packet to send [00:38:54]OFD Sender: No OFD packet to send [00:38:59]OFD Sender: No OFD packet to send [00:39:04]OFD Sender: No OFD packet to send [00:39:09]OFD Sender: No OFD packet to send [00:39:14]OFD Sender: No OFD packet to send [00:39:19]OFD Sender: No OFD packet to send [00:39:24]OFD Sender: No OFD packet to send [00:39:29]OFD Sender: No OFD packet to send [00:39:34]OFD Sender: No OFD packet to send [00:39:39]OFD Sender: No OFD packet to send [00:39:44]OFD Sender: No OFD packet to send [00:39:49]OFD Sender: No OFD packet to send [00:39:55]OFD Sender: No OFD packet to send [00:40:00]OFD Sender: No OFD packet to send [00:40:05]OFD Sender: No OFD packet to send [00:40:10]OFD Sender: No OFD packet to send [00:40:15]OFD Sender: No OFD packet to send [00:40:20]OFD Sender: No OFD packet to send [00:40:25]OFD Sender: No OFD packet to send [00:40:30]OFD Sender: No OFD packet to send [00:40:35]OFD Sender: No OFD packet to send [00:40:40]OFD Sender: No OFD packet to send [00:40:45]OFD Sender: No OFD packet to send [00:40:50]OFD Sender: No OFD packet to send [00:40:55]OFD Sender: No OFD packet to send [00:41:00]OFD Sender: No OFD packet to send [00:41:05]OFD Sender: No OFD packet to send [00:41:10]OFD Sender: No OFD packet to send [00:41:15]OFD Sender: No OFD packet to send [00:41:20]OFD Sender: No OFD packet to send [00:41:25]OFD Sender: No OFD packet to send [00:41:30]OFD Sender: No OFD packet to send [00:41:35]OFD Sender: No OFD packet to send [00:41:40]OFD Sender: No OFD packet to send [00:41:45]OFD Sender: No OFD packet to send [00:41:50]OFD Sender: No OFD packet to send [00:41:55]OFD Sender: No OFD packet to send [00:42:00]OFD Sender: No OFD packet to send [00:42:05]OFD Sender: No OFD packet to send [00:42:10]OFD Sender: No OFD packet to send [00:42:15]OFD Sender: No OFD packet to send [00:42:20]OFD Sender: No OFD packet to send [00:42:25]OFD Sender: No OFD packet to send [00:42:30]OFD Sender: No OFD packet to send [00:42:35]OFD Sender: No OFD packet to send [00:42:40]OFD Sender: No OFD packet to send [00:42:45]OFD Sender: No OFD packet to send [00:42:50]OFD Sender: No OFD packet to send [00:42:55]OFD Sender: No OFD packet to send [00:43:00]OFD Sender: No OFD packet to send [00:43:05]OFD Sender: No OFD packet to send [00:43:10]OFD Sender: No OFD packet to send [00:43:15]OFD Sender: No OFD packet to send [00:43:20]OFD Sender: No OFD packet to send [00:43:25]OFD Sender: No OFD packet to send [00:43:30]OFD Sender: No OFD packet to send [00:43:35]OFD Sender: No OFD packet to send [00:43:37]accept exits with 9 [00:43:37]New connection [00:43:37]New thread 3066506596 created [00:43:37]Thread 3066649956 joined [00:43:37]Waiting for new connection... [00:43:37] Sock 9.Parse request [00:43:37]Sock 9.Check first char [00:43:37]Sock 9.First char is OK [00:43:37]request: POST /json_proto HTTP/1.0 [00:43:37]Method: POST [00:43:37]URL: /json_proto [00:43:37]Method is POST - this is cgi request [00:43:37]url: /json_proto [00:43:37]query_string will be loaded in cgi processing [00:43:37]execute_cgi json_proto POST (null) [00:43:37]execute_cgi path=json_proto method=POST [00:43:37]POST find Content-Length [00:43:37]Host: 172.17.42.131:8080 [00:43:37]Content-Length: 751 [00:43:37]Content-Type: application/json [00:43:37] [00:43:37]POST finish read [00:43:37]Found Content-Length = 751 [00:43:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:37]execute_script... [00:43:37]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210606", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 0.00, "quantity" : 50.000, "sum" : 0.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u0422\u0430\u043B\u043E\u043D\u044B: \u0422\u041A \u0413\u041F\u041D\u0410 Online\u000A30145330", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:43:37]POST & json_proto [00:43:37]process_json_proto [00:43:37]json parsed OK: [00:43:37]protocol is kg_v1.0 [00:43:37]action value=close_receipt [00:43:37]process_action close_receipt [00:43:37]cmd_close_receipt [00:43:37]MH_GetDate [00:43:37]Write to MH i2c: F0 00 00 CC 0D C8 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: F0 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: F0 09 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: F0 09 00 CC 0D 00 BB 46 18 67 A0 18 CA 66 39 [00:43:37]GetLastDocTimeStamp 1729643406 [00:43:37]current date 1729644219 [00:43:37]FM_GetShiftState [00:43:37]SAM_PROTO_GetShiftState [00:43:37]wFMCommunicate request_size=4 [00:43:37]MH_SAM_APDU [00:43:37]CAPDU: 80 13 01 00 [00:43:37]Write to MH i2c: E2 08 00 CD 0D 80 13 01 00 00 00 00 00 57 [00:43:37]Write i2c OK [00:43:37]MH_I2C_Read... [00:43:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:37]Read from MH i2c: E2 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: E2 0E 00 [00:43:37]MH_I2C_Read... [00:43:37]Read from MH i2c: E2 0E 00 CD 0D 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3F [00:43:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:43:37]wFMCommunicate OK [00:43:37]SAM_PROTO_GetShiftState done [00:43:37]FM_GetShiftState done [00:43:37]opened in 1729642525 [00:43:37]opened+sec_in_day 1729728925 [00:43:37]quantity*price = 0 [00:43:37]sum+1 = 1 [00:43:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 5 23.10.2024 00:43 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Талоны: ТК ГПНА Online 30145330 ФМ: 0000000000965340 ФД: 188547 ФПД: 155163076534097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004339&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188547&fm=155163076534097&tin=02508201610067®Number=0000000000100030&sum=0 [00:43:38]StoreToDocumentArchive [00:43:38]shift 462 fd 188547 [00:43:38]save to /storage/0462/doc_00188547 [00:43:38]save last doc name /storage/0462/doc_00188547 to /storage/kkm_last_doc_name [00:43:38]save OK [00:43:38]Clear old archive folders... [00:43:38]ProcessDocumentItem done err = 0, tmpTLVsize=248 [00:43:38]tlvbuf is 008DF5D0 [00:43:38]SAM_PROTO_ClearQueue [00:43:38]wFMCommunicate request_size=4 [00:43:38]MH_SAM_APDU [00:43:38]CAPDU: 80 09 00 00 [00:43:38]Write to MH i2c: E2 08 00 DA 0D 80 09 00 00 00 00 00 00 59 [00:43:38]Write i2c OK [00:43:38]MH_I2C_Read... [00:43:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:43:38]Read from MH i2c: E2 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 03 00 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 03 00 DA 0D 00 90 00 5B [00:43:38]RAPDU: 90 00 [00:43:38]wFMCommunicate OK [00:43:38]SAM_PROTO_ClearQueue done [00:43:38]KKMCreateOFDPacket [00:43:38]OFDProtocolAddRootSTLVToBuf [00:43:38]FM_MakeSignedData [00:43:38]FM_MakeSignedData [00:43:38]SAM_PROTO_SignData [00:43:38]wFMCommunicate request_size=4 [00:43:38]MH_SAM_APDU [00:43:38]CAPDU: 80 0D 01 02 [00:43:38]Write to MH i2c: E2 08 00 DB 0D 80 0D 01 02 00 00 00 00 61 [00:43:38]Write i2c OK [00:43:38]MH_I2C_Read... [00:43:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:43:38]Read from MH i2c: E2 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 03 00 [00:43:38]MH_I2C_Read... [00:43:38]Read from MH i2c: E2 03 00 DB 0D 00 90 00 5C [00:43:38]RAPDU: 90 00 [00:43:38]wFMCommunicate OK [00:43:38]wFMCommunicate request_size=255 [00:43:38]MH_SAM_APDU [00:43: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB 46 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E0 02 00 35 04 06 00 8D 1E B8 0F [00:43:38]Write to MH i2c: E2 02 01 DC 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB 46 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E0 02 00 35 04 06 00 8D 1E B8 0F 00 00 E2 [00:43:38]Write i2c OK [00:43:38]MH_I2C_Read... [00:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:39]Read from MH i2c: E2 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 03 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 03 00 DC 0D 00 90 00 5D [00:43:39]RAPDU: 90 00 [00:43:39]wFMCommunicate OK [00:43:39]wFMCommunicate request_size=7 [00:43:39]MH_SAM_APDU [00:43:39]CAPDU: 80 0D 02 02 02 1F 51 [00:43:39]Write to MH i2c: E2 0A 00 DD 0D 80 0D 02 02 02 00 1F 51 00 00 D8 [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:43:39]Read from MH i2c: E2 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 03 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 03 00 DD 0D 00 90 00 5E [00:43:39]RAPDU: 90 00 [00:43:39]wFMCommunicate OK [00:43:39]wFMCommunicate request_size=4 [00:43:39]MH_SAM_APDU [00:43:39]CAPDU: 80 0D 03 02 [00:43:39]Write to MH i2c: E2 08 00 DE 0D 80 0D 03 02 00 00 00 00 66 [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:43:39]Read from MH i2c: E2 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 0B 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 0B 00 DE 0D 00 EC BC 7D D2 B3 E6 6C 87 90 00 EA [00:43:39]RAPDU: EC BC 7D D2 B3 E6 6C 87 90 00 [00:43:39]wFMCommunicate OK [00:43:39]SAM_PROTO_SignData done [00:43:39]FM_MakeSignedData done [00:43:39]CreateOFDProtocolMessage [00:43:39]wFMCommunicate request_size=4 [00:43:39]MH_SAM_APDU [00:43:39]CAPDU: 80 11 00 00 [00:43:39]Write to MH i2c: E2 08 00 DF 0D 80 11 00 00 00 00 00 00 66 [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:39]Read from MH i2c: E2 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 17 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: E2 17 00 DF 0D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B4 [00:43:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:43:39]wFMCommunicate OK [00:43:39]CreateOFDProtocolMessage done [00:43:39]OFDSenderStorePacket 188547 [00:43:39]StoreOFDPacket docnum=188547 [00:43:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 67 F9 04 01 DD B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB 46 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E0 02 00 35 04 06 00 8D 1E B8 0F 1F 51 EC BC 7D D2 B3 E6 6C 87 [00:43:39]CheckFolder [00:43:39]dirname=/storage/ofd_packets [00:43:39]CheckFolder done [00:43:39]ProducePacketName [00:43:39]name=ofd_packets/00188547 [00:43:39]NVStorageSaveData ofd_packets/00188547 [00:43:39]File name is /storage/ofd_packets/00188547 [00:43:39]Write 298 bytes [00:43:39]NVStorageSaveData done [00:43:39]OFDSenderStorePacket done [00:43:39]KKMCreateOFDPacket done [00:43:39]NVStorageSaveData kkm_last_timestamp [00:43:39]File name is /storage/kkm_last_timestamp [00:43:39]Write 4 bytes [00:43:39]NVStorageSaveData done [00:43:39]ExternCall_PrintAddStr [00:43:39]wPrintStart [00:43:39]Write to MH i2c: 01 00 00 E0 0D ED [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: 01 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: 01 07 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: 01 07 00 E0 0D 00 00 00 00 00 FF 0F 02 [00:43:39]RasterBufferAndPrint [00:43:39]line Счет N : (1)210606 [00:43:39]line ИНН: 02508201610067 [00:43:39]line Контрольно-Кассовый Чек [00:43:39]line ПРОДАЖА [00:43:39]line ТРК (МРК, ГНК) : 51 [00:43:39]line Товар: 2710194210 [00:43:39]line ДТ-К-5 [00:43:39]line 50.000 * 0.00 [00:43:39]line = 0.00 [00:43:39]line НДС 12% НСП 1% [00:43:39]line > о реализуемом товаре [00:43:39]line ИТОГО: 0.00 [00:43:39]line НСП 1% : 0.00 [00:43:39]line НДС 12% : 0.00 [00:43:39]line Наличными: 0.00 [00:43:39]line Безнал.: 0.00 [00:43:39]line Место: АЗС № 86 "Партнер Нефть" [00:43:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:43:39]line СНО: Общий режим [00:43:39]line Чек 5 23.10.2024 00:43 [00:43:39]line Смена: 462 ФФД: 1.0 [00:43:39]line ЗНМ: 0300000155 [00:43:39]line РНМ: 0000000000100030 [00:43:39]line Версия ККМ: 001 [00:43:39]line Талоны: ТК ГПНА Online [00:43:39]line 30145330 [00:43:39]line ФМ: 0000000000965340 [00:43:39]line ФД: 188547 [00:43:39]line ФПД: 155163076534097 [00:43:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004339&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188547&fm=155163076534097&tin=02508201610067®Number=0000000000100030&sum=0 [00:43:39]written 0, free lines is 4095 [00:43:39]OFD Sender: Processing packet 188547 [packets to send 1062, broken 1061] [00:43:39]ProducePacketName [00:43:39]name=ofd_packets/00188547 [00:43:39]OFD Sender: To server: pG, [00:43:39]CommunicateWithHost lk.salyk.kg:30040 [00:43:39]ConnectInit lk.salyk.kg [00:43:39]Connected sock=10 [00:43:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 67 F9 04 01 DD B5 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 00 00 00 00 00 00 13 04 06 00 00 00 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 00 00 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 05 00 00 00 F4 03 04 00 BB 46 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E0 02 00 35 04 06 00 8D 1E B8 0F 1F 51 EC BC 7D D2 B3 E6 6C 87 [00:43:39]Write to MH i2c: 01 00 00 0A 0E 18 [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: 01 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: 01 07 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: 01 07 00 0A 0E 00 00 00 00 00 63 0C 8E [00:43:39]RasterBufferAndPrint [00:43:39]line [00:43:39]line [00:43:39]line [00:43:39]line [00:43:39]line [00:43:39]written 0, free lines is 3175 [00:43:39]MH_Cut [00:43:39]Write to MH i2c: D1 01 00 11 0E 01 F1 [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: D1 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: D1 01 00 [00:43:39]MH_I2C_Read... [00:43:39]Read from MH i2c: D1 01 00 11 0E 00 F0 [00:43:39]Write to MH i2c: 01 00 00 12 0E 20 [00:43:39]Write i2c OK [00:43:39]MH_I2C_Read... [00:43:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 77 61 47 00 C7 19 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 83 E0 02 00 F4 03 04 00 A6 F0 17 67 B6 04 01 00 00 51 9F E1 8E 1D ED 10 A1 [00:43:39]CommunicateWithHost err = 0 [00:43:39]CheckOFDResponse [00:43:39]1017 (14) - 77093643461234 [00:43:39]1041 (16) - 0000000000965340 [00:43:39]1040 (4) - 188547 [00:43:39]1012 (4) - 22.10.2024 18:36 [00:43:39]1206 (1) - 0 [00:43:39]OFD Sender: Remove packet 188547 [00:43:39]ProducePacketName [00:43:39]name=ofd_packets/00188547 [00:43:39]NVStorageDeleteData [00:43:40]OFD Sender: No OFD packet to send [00:43:40]*** Cut start [00:43:40]*** Partial cut [00:43:40]*** CUTSNS_PIN = 1 [00:43:41]*** CUTSNS_PIN = 0 [00:43:41]*** Brake cut motor [00:43:41]Read from MH i2c: 01 [00:43:41]MH_I2C_Read... [00:43:41]*** Stop cut motor [00:43:41]*** Cut end [00:43:41]Read from MH i2c: 01 07 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: 01 07 00 12 0E 00 00 00 00 00 FF 0F 35 [00:43:41]process_action close_receipt done [00:43:41]requested_data is exist [00:43:41]produce_requested_data [00:43:41]requested_item fm.sn is exist - process it [00:43:41]wFMCommunicate request_size=4 [00:43:41]MH_SAM_APDU [00:43:41]CAPDU: 80 11 00 00 [00:43:41]Write to MH i2c: E2 08 00 13 0E 80 11 00 00 00 00 00 00 9B [00:43:41]Write i2c OK [00:43:41]MH_I2C_Read... [00:43:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:43:41]Read from MH i2c: E2 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 17 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 17 00 13 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E9 [00:43:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:43:41]wFMCommunicate OK [00:43:41]requested_item fd.num is exist - process it [00:43:41]SAM_PROTO_GetFieldsCounters [00:43:41]wFMCommunicate request_size=4 [00:43:41]MH_SAM_APDU [00:43:41]CAPDU: 80 13 00 00 [00:43:41]Write to MH i2c: E2 08 00 14 0E 80 13 00 00 00 00 00 00 9E [00:43:41]Write i2c OK [00:43:41]MH_I2C_Read... [00:43:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:43:41]Read from MH i2c: E2 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 62 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 62 00 14 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [00:43:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 83 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 05 00 00 00 5E 04 04 00 05 00 00 00 57 04 04 00 06 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:43:41]wFMCommunicate OK [00:43:41]SAM_PROTO_GetFieldsCounters done [00:43:41]requested_item shift.num is exist - process it [00:43:41]requested_item shift.opened is exist - process it [00:43:41]req_shift_opened [00:43:41]FM_GetShiftState [00:43:41]SAM_PROTO_GetShiftState [00:43:41]wFMCommunicate request_size=4 [00:43:41]MH_SAM_APDU [00:43:41]CAPDU: 80 13 01 00 [00:43:41]Write to MH i2c: E2 08 00 15 0E 80 13 01 00 00 00 00 00 A0 [00:43:41]Write i2c OK [00:43:41]MH_I2C_Read... [00:43:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:43:41]Read from MH i2c: E2 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 0E 00 [00:43:41]MH_I2C_Read... [00:43:41]Read from MH i2c: E2 0E 00 15 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 88 [00:43:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:43:41]wFMCommunicate OK [00:43:41]SAM_PROTO_GetShiftState done [00:43:41]FM_GetShiftState done [00:43:41]req_shift_opened done [00:43:41]requested_item shift.open_date is exist - process it [00:43:41]req_shift_open_date [00:43:41]req_shift_open_date done [00:43:41]produce_requested_data done [00:43:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188547,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:43:41]process_action_free close_receipt [00:43:41]json_value_free [00:43:41]json_value_free done [00:43:41]process_json_proto returns [00:43:41]Send response to host [00:43:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188547,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:43:41]free response buf [00:43:41]execute_script done [00:43:41]execute_script returns [00:43:41]free content buf [00:43:41]Sock 9.Close socket [00:43:41]Sock 9.Thread stoped [00:43:45]OFD Sender: No OFD packet to send [00:43:50]OFD Sender: No OFD packet to send [00:43:55]OFD Sender: No OFD packet to send [00:44:00]OFD Sender: No OFD packet to send [00:44:05]OFD Sender: No OFD packet to send [00:44:10]OFD Sender: No OFD packet to send [00:44:15]OFD Sender: No OFD packet to send [00:44:20]OFD Sender: No OFD packet to send [00:44:25]OFD Sender: No OFD packet to send [00:44:30]OFD Sender: No OFD packet to send [00:44:35]OFD Sender: No OFD packet to send [00:44:40]OFD Sender: No OFD packet to send [00:44:45]OFD Sender: No OFD packet to send [00:44:50]OFD Sender: No OFD packet to send [00:44:55]OFD Sender: No OFD packet to send [00:45:00]OFD Sender: No OFD packet to send [00:45:05]OFD Sender: No OFD packet to send [00:45:10]OFD Sender: No OFD packet to send [00:45:15]OFD Sender: No OFD packet to send [00:45:20]OFD Sender: No OFD packet to send [00:45:25]OFD Sender: No OFD packet to send [00:45:30]OFD Sender: No OFD packet to send [00:45:35]OFD Sender: No OFD packet to send [00:45:40]OFD Sender: No OFD packet to send [00:45:46]OFD Sender: No OFD packet to send [00:45:51]OFD Sender: No OFD packet to send [00:45:56]OFD Sender: No OFD packet to send [00:46:01]OFD Sender: No OFD packet to send [00:46:06]OFD Sender: No OFD packet to send [00:46:11]OFD Sender: No OFD packet to send [00:46:16]OFD Sender: No OFD packet to send [00:46:21]OFD Sender: No OFD packet to send [00:46:26]OFD Sender: No OFD packet to send [00:46:31]OFD Sender: No OFD packet to send [00:46:36]OFD Sender: No OFD packet to send [00:46:41]OFD Sender: No OFD packet to send [00:46:46]OFD Sender: No OFD packet to send [00:46:51]OFD Sender: No OFD packet to send [00:46:56]OFD Sender: No OFD packet to send [00:47:01]OFD Sender: No OFD packet to send [00:47:06]OFD Sender: No OFD packet to send [00:47:11]OFD Sender: No OFD packet to send [00:47:16]OFD Sender: No OFD packet to send [00:47:21]OFD Sender: No OFD packet to send [00:47:26]OFD Sender: No OFD packet to send [00:47:31]OFD Sender: No OFD packet to send [00:47:36]OFD Sender: No OFD packet to send [00:47:41]OFD Sender: No OFD packet to send [00:47:46]OFD Sender: No OFD packet to send [00:47:51]OFD Sender: No OFD packet to send [00:47:56]OFD Sender: No OFD packet to send [00:48:01]OFD Sender: No OFD packet to send [00:48:06]OFD Sender: No OFD packet to send [00:48:11]OFD Sender: No OFD packet to send [00:48:16]OFD Sender: No OFD packet to send [00:48:21]OFD Sender: No OFD packet to send [00:48:26]OFD Sender: No OFD packet to send [00:48:31]OFD Sender: No OFD packet to send [00:48:36]OFD Sender: No OFD packet to send [00:48:39]accept exits with 7 [00:48:39]New connection [00:48:39]New thread 3066649956 created [00:48:39]Thread 3066506596 joined [00:48:39]Waiting for new connection... [00:48:39] Sock 7.Parse request [00:48:39]Sock 7.Check first char [00:48:39]Sock 7.First char is OK [00:48:39]request: POST /json_proto HTTP/1.0 [00:48:39]Method: POST [00:48:39]URL: /json_proto [00:48:39]Method is POST - this is cgi request [00:48:39]url: /json_proto [00:48:39]query_string will be loaded in cgi processing [00:48:39]execute_cgi json_proto POST (null) [00:48:39]execute_cgi path=json_proto method=POST [00:48:39]POST find Content-Length [00:48:39]Host: 172.17.42.131:8080 [00:48:39]Content-Length: 677 [00:48:39]Content-Type: application/json [00:48:39] [00:48:39]POST finish read [00:48:39]Found Content-Length = 677 [00:48:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:39]execute_script... [00:48: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)210607", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:48:39]POST & json_proto [00:48:39]process_json_proto [00:48:39]json parsed OK: [00:48:39]protocol is kg_v1.0 [00:48:39]action value=close_receipt [00:48:39]process_action close_receipt [00:48:39]cmd_close_receipt [00:48:39]MH_GetDate [00:48:39]Write to MH i2c: F0 00 00 16 0E 13 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: F0 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: F0 09 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: F0 09 00 16 0E 00 E8 47 18 67 A0 18 CA 66 B2 [00:48:39]GetLastDocTimeStamp 1729644219 [00:48:39]current date 1729644520 [00:48:39]FM_GetShiftState [00:48:39]SAM_PROTO_GetShiftState [00:48:39]wFMCommunicate request_size=4 [00:48:39]MH_SAM_APDU [00:48:39]CAPDU: 80 13 01 00 [00:48:39]Write to MH i2c: E2 08 00 17 0E 80 13 01 00 00 00 00 00 A2 [00:48:39]Write i2c OK [00:48:39]MH_I2C_Read... [00:48:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:39]Read from MH i2c: E2 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 0E 00 [00:48:39]MH_I2C_Read... [00:48:39]Read from MH i2c: E2 0E 00 17 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 8A [00:48:39]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:48:39]wFMCommunicate OK [00:48:39]SAM_PROTO_GetShiftState done [00:48:39]FM_GetShiftState done [00:48:39]opened in 1729642525 [00:48:39]opened+sec_in_day 1729728925 [00:48:39]quantity*price = 50041 [00:48:39]sum+1 = 50042 [00:48:39]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.41 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 6 23.10.2024 00:48 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188548 ФПД: 108239946874026 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004840&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188548&fm=108239946874026&tin=02508201610067®Number=0000000000100030&sum=50000 [00:48:40]StoreToDocumentArchive [00:48:40]shift 462 fd 188548 [00:48:40]save to /storage/0462/doc_00188548 [00:48:40]save last doc name /storage/0462/doc_00188548 to /storage/kkm_last_doc_name [00:48:40]save OK [00:48:40]Clear old archive folders... [00:48:40]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:48:40]tlvbuf is 00925160 [00:48:40]SAM_PROTO_ClearQueue [00:48:40]wFMCommunicate request_size=4 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 09 00 00 [00:48:40]Write to MH i2c: E2 08 00 24 0E 80 09 00 00 00 00 00 00 A4 [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:48:40]Read from MH i2c: E2 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 24 0E 00 90 00 A6 [00:48:40]RAPDU: 90 00 [00:48:40]wFMCommunicate OK [00:48:40]SAM_PROTO_ClearQueue done [00:48:40]KKMCreateOFDPacket [00:48:40]OFDProtocolAddRootSTLVToBuf [00:48:40]FM_MakeSignedData [00:48:40]FM_MakeSignedData [00:48:40]SAM_PROTO_SignData [00:48:40]wFMCommunicate request_size=4 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 0D 01 02 [00:48:40]Write to MH i2c: E2 08 00 25 0E 80 0D 01 02 00 00 00 00 AC [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:48:40]Read from MH i2c: E2 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 25 0E 00 90 00 A7 [00:48:40]RAPDU: 90 00 [00:48:40]wFMCommunicate OK [00:48:40]wFMCommunicate request_size=255 [00:48:40]MH_SAM_APDU [00:48: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E8 47 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E0 02 00 35 04 06 00 62 [00:48:40]Write to MH i2c: E2 02 01 26 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E8 47 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E0 02 00 35 04 06 00 62 00 00 6A [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:40]Read from MH i2c: E2 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 26 0E 00 90 00 A8 [00:48:40]RAPDU: 90 00 [00:48:40]wFMCommunicate OK [00:48:40]wFMCommunicate request_size=10 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 0D 02 02 05 71 93 95 7C AA [00:48:40]Write to MH i2c: E2 0D 00 27 0E 80 0D 02 02 05 00 71 93 95 7C AA 00 00 78 [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:48:40]Read from MH i2c: E2 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 03 00 27 0E 00 90 00 A9 [00:48:40]RAPDU: 90 00 [00:48:40]wFMCommunicate OK [00:48:40]wFMCommunicate request_size=4 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 0D 03 02 [00:48:40]Write to MH i2c: E2 08 00 28 0E 80 0D 03 02 00 00 00 00 B1 [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:48:40]Read from MH i2c: E2 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 0B 00 [00:48:40]MH_I2C_Read... [00:48:40]Read from MH i2c: E2 0B 00 28 0E 00 2D FF DF 17 05 26 34 17 90 00 4A [00:48:40]RAPDU: 2D FF DF 17 05 26 34 17 90 00 [00:48:40]wFMCommunicate OK [00:48:40]SAM_PROTO_SignData done [00:48:40]FM_MakeSignedData done [00:48:40]CreateOFDProtocolMessage [00:48:40]wFMCommunicate request_size=4 [00:48:40]MH_SAM_APDU [00:48:40]CAPDU: 80 11 00 00 [00:48:40]Write to MH i2c: E2 08 00 29 0E 80 11 00 00 00 00 00 00 B1 [00:48:40]Write i2c OK [00:48:40]MH_I2C_Read... [00:48:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:41]Read from MH i2c: E2 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 17 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: E2 17 00 29 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 FF [00:48:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:48:41]wFMCommunicate OK [00:48:41]CreateOFDProtocolMessage done [00:48:41]OFDSenderStorePacket 188548 [00:48:41]StoreOFDPacket docnum=188548 [00:48:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 D5 07 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E8 47 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E0 02 00 35 04 06 00 62 71 93 95 7C AA 2D FF DF 17 05 26 34 17 [00:48:41]CheckFolder [00:48:41]dirname=/storage/ofd_packets [00:48:41]CheckFolder done [00:48:41]ProducePacketName [00:48:41]name=ofd_packets/00188548 [00:48:41]NVStorageSaveData ofd_packets/00188548 [00:48:41]File name is /storage/ofd_packets/00188548 [00:48:41]Write 301 bytes [00:48:41]NVStorageSaveData done [00:48:41]OFDSenderStorePacket done [00:48:41]KKMCreateOFDPacket done [00:48:41]NVStorageSaveData kkm_last_timestamp [00:48:41]File name is /storage/kkm_last_timestamp [00:48:41]Write 4 bytes [00:48:41]NVStorageSaveData done [00:48:41]ExternCall_PrintAddStr [00:48:41]wPrintStart [00:48:41]Write to MH i2c: 01 00 00 2A 0E 38 [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: 01 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: 01 07 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: 01 07 00 2A 0E 00 00 00 00 00 FF 0F 4D [00:48:41]RasterBufferAndPrint [00:48:41]line Счет N : (1)210607 [00:48:41]line ИНН: 02508201610067 [00:48:41]line Контрольно-Кассовый Чек [00:48:41]line ПРОДАЖА [00:48:41]line ТРК (МРК, ГНК) : 32 [00:48:41]line Товар: 2710124130 [00:48:41]line Аи-92-К-3 [00:48:41]line 7.480 * 66.90 [00:48:41]line = 500.41 [00:48:41]line НДС 12% НСП 1% [00:48:41]line > о реализуемом товаре [00:48:41]line ОКРУГЛЕНИЕ: -0.41 [00:48:41]line ИТОГО: 500.00 [00:48:41]line Внесено: 500.00 [00:48:41]line СДАЧА: 0.00 [00:48:41]line НСП 1% : 4.43 [00:48:41]line НДС 12% : 53.14 [00:48:41]line Наличными: 500.00 [00:48:41]line Безнал.: 0.00 [00:48:41]line Место: АЗС № 86 "Партнер Нефть" [00:48:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:48:41]line СНО: Общий режим [00:48:41]line Чек 6 23.10.2024 00:48 [00:48:41]line Смена: 462 ФФД: 1.0 [00:48:41]line ЗНМ: 0300000155 [00:48:41]line РНМ: 0000000000100030 [00:48:41]line Версия ККМ: 001 [00:48:41]line ФМ: 0000000000965340 [00:48:41]line ФД: 188548 [00:48:41]line ФПД: 108239946874026 [00:48:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T004840&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188548&fm=108239946874026&tin=02508201610067®Number=0000000000100030&sum=50000 [00:48:41]written 0, free lines is 4095 [00:48:41]OFD Sender: Processing packet 188548 [packets to send 1062, broken 1061] [00:48:41]ProducePacketName [00:48:41]name=ofd_packets/00188548 [00:48:41]OFD Sender: To server: pG, [00:48:41]CommunicateWithHost lk.salyk.kg:30040 [00:48:41]ConnectInit lk.salyk.kg [00:48:41]Connected sock=10 [00:48:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C3 D5 07 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 E8 47 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E0 02 00 35 04 06 00 62 71 93 95 7C AA 2D FF DF 17 05 26 34 17 [00:48:41]Write to MH i2c: 01 00 00 55 0E 63 [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: 01 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: 01 07 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: 01 07 00 55 0E 00 00 00 00 00 51 0C C7 [00:48:41]RasterBufferAndPrint [00:48:41]line [00:48:41]line [00:48:41]line [00:48:41]line [00:48:41]line [00:48:41]written 0, free lines is 3158 [00:48:41]MH_Cut [00:48:41]Write to MH i2c: D1 01 00 5C 0E 01 3C [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: D1 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: D1 01 00 [00:48:41]MH_I2C_Read... [00:48:41]Read from MH i2c: D1 01 00 5C 0E 00 3B [00:48:41]Write to MH i2c: 01 00 00 5D 0E 6B [00:48:41]Write i2c OK [00:48:41]MH_I2C_Read... [00:48:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 00 16 47 00 A7 12 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 84 E0 02 00 F4 03 04 00 D4 F1 17 67 B6 04 01 00 00 0E 7A C8 93 3D D2 B4 09 [00:48:41]CommunicateWithHost err = 0 [00:48:41]CheckOFDResponse [00:48:41]1017 (14) - 77093643461234 [00:48:41]1041 (16) - 0000000000965340 [00:48:41]1040 (4) - 188548 [00:48:41]1012 (4) - 22.10.2024 18:41 [00:48:41]1206 (1) - 0 [00:48:41]OFD Sender: Remove packet 188548 [00:48:41]ProducePacketName [00:48:41]name=ofd_packets/00188548 [00:48:41]NVStorageDeleteData [00:48:42]OFD Sender: No OFD packet to send [00:48:42]*** Cut start [00:48:42]*** Partial cut [00:48:42]*** CUTSNS_PIN = 1 [00:48:42]*** CUTSNS_PIN = 0 [00:48:43]*** Brake cut motor [00:48:43]Read from MH i2c: 01 [00:48:43]MH_I2C_Read... [00:48:43]*** Stop cut motor [00:48:43]*** Cut end [00:48:43]Read from MH i2c: 01 07 00 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: 01 07 00 5D 0E 00 00 00 00 00 FF 0F 80 [00:48:43]process_action close_receipt done [00:48:43]requested_data is exist [00:48:43]produce_requested_data [00:48:43]requested_item fm.sn is exist - process it [00:48:43]wFMCommunicate request_size=4 [00:48:43]MH_SAM_APDU [00:48:43]CAPDU: 80 11 00 00 [00:48:43]Write to MH i2c: E2 08 00 5E 0E 80 11 00 00 00 00 00 00 E6 [00:48:43]Write i2c OK [00:48:43]MH_I2C_Read... [00:48:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:48:43]Read from MH i2c: E2 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: E2 17 00 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: E2 17 00 5E 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 34 [00:48:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:48:43]wFMCommunicate OK [00:48:43]requested_item fd.num is exist - process it [00:48:43]SAM_PROTO_GetFieldsCounters [00:48:43]wFMCommunicate request_size=4 [00:48:43]MH_SAM_APDU [00:48:43]CAPDU: 80 13 00 00 [00:48:43]Write to MH i2c: E2 08 00 5F 0E 80 13 00 00 00 00 00 00 E9 [00:48:43]Write i2c OK [00:48:43]MH_I2C_Read... [00:48:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:48:43]Read from MH i2c: E2 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: E2 62 00 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: E2 62 00 5F 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [00:48:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 84 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 06 00 00 00 5E 04 04 00 06 00 00 00 57 04 04 00 07 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:48:43]wFMCommunicate OK [00:48:43]SAM_PROTO_GetFieldsCounters done [00:48:43]requested_item shift.num is exist - process it [00:48:43]requested_item shift.opened is exist - process it [00:48:43]req_shift_opened [00:48:43]FM_GetShiftState [00:48:43]SAM_PROTO_GetShiftState [00:48:43]wFMCommunicate request_size=4 [00:48:43]MH_SAM_APDU [00:48:43]CAPDU: 80 13 01 00 [00:48:43]Write to MH i2c: E2 08 00 60 0E 80 13 01 00 00 00 00 00 EB [00:48:43]Write i2c OK [00:48:43]MH_I2C_Read... [00:48:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:48:43]Read from MH i2c: E2 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: E2 0E 00 [00:48:43]MH_I2C_Read... [00:48:43]Read from MH i2c: E2 0E 00 60 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D3 [00:48:43]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:48:43]wFMCommunicate OK [00:48:43]SAM_PROTO_GetShiftState done [00:48:43]FM_GetShiftState done [00:48:43]req_shift_opened done [00:48:43]requested_item shift.open_date is exist - process it [00:48:43]req_shift_open_date [00:48:43]req_shift_open_date done [00:48:43]produce_requested_data done [00:48:43]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188548,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:48:43]process_action_free close_receipt [00:48:43]json_value_free [00:48:43]json_value_free done [00:48:43]process_json_proto returns [00:48:43]Send response to host [00:48:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188548,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:48:43]free response buf [00:48:43]execute_script done [00:48:43]execute_script returns [00:48:43]free content buf [00:48:43]Sock 7.Close socket [00:48:43]Sock 7.Thread stoped [00:48:47]OFD Sender: No OFD packet to send [00:48:52]OFD Sender: No OFD packet to send [00:48:57]OFD Sender: No OFD packet to send [00:49:02]OFD Sender: No OFD packet to send [00:49:07]OFD Sender: No OFD packet to send [00:49:12]OFD Sender: No OFD packet to send [00:49:17]OFD Sender: No OFD packet to send [00:49:22]OFD Sender: No OFD packet to send [00:49:27]OFD Sender: No OFD packet to send [00:49:32]OFD Sender: No OFD packet to send [00:49:37]OFD Sender: No OFD packet to send [00:49:42]OFD Sender: No OFD packet to send [00:49:47]OFD Sender: No OFD packet to send [00:49:52]OFD Sender: No OFD packet to send [00:49:57]OFD Sender: No OFD packet to send [00:50:02]OFD Sender: No OFD packet to send [00:50:07]OFD Sender: No OFD packet to send [00:50:12]OFD Sender: No OFD packet to send [00:50:17]OFD Sender: No OFD packet to send [00:50:22]OFD Sender: No OFD packet to send [00:50:27]OFD Sender: No OFD packet to send [00:50:32]OFD Sender: No OFD packet to send [00:50:37]OFD Sender: No OFD packet to send [00:50:42]OFD Sender: No OFD packet to send [00:50:47]OFD Sender: No OFD packet to send [00:50:52]OFD Sender: No OFD packet to send [00:50:57]OFD Sender: No OFD packet to send [00:51:02]OFD Sender: No OFD packet to send [00:51:07]OFD Sender: No OFD packet to send [00:51:12]OFD Sender: No OFD packet to send [00:51:13]accept exits with 9 [00:51:13]New connection [00:51:13]New thread 3066506596 created [00:51:13]Thread 3066649956 joined [00:51:13]Waiting for new connection... [00:51:13] Sock 9.Parse request [00:51:13]Sock 9.Check first char [00:51:13]Sock 9.First char is OK [00:51:13]request: POST /json_proto HTTP/1.0 [00:51:13]Method: POST [00:51:13]URL: /json_proto [00:51:13]Method is POST - this is cgi request [00:51:13]url: /json_proto [00:51:13]query_string will be loaded in cgi processing [00:51:13]execute_cgi json_proto POST (null) [00:51:13]execute_cgi path=json_proto method=POST [00:51:13]POST find Content-Length [00:51:13]Host: 172.17.42.131:8080 [00:51:13]Content-Length: 677 [00:51:13]Content-Type: application/json [00:51:13] [00:51:13]POST finish read [00:51:13]Found Content-Length = 677 [00:51:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:13]execute_script... [00:51: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)210608", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.780, "sum" : 520.48, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 520.00, "total" : 520.00, "payments": [ { "type": 0, "sum" : 520.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:51:13]POST & json_proto [00:51:13]process_json_proto [00:51:13]json parsed OK: [00:51:13]protocol is kg_v1.0 [00:51:13]action value=close_receipt [00:51:13]process_action close_receipt [00:51:13]cmd_close_receipt [00:51:13]MH_GetDate [00:51:13]Write to MH i2c: F0 00 00 61 0E 5E [00:51:13]Write i2c OK [00:51:13]MH_I2C_Read... [00:51:13]Read from MH i2c: F0 [00:51:13]MH_I2C_Read... [00:51:13]Read from MH i2c: F0 09 00 [00:51:13]MH_I2C_Read... [00:51:13]Read from MH i2c: F0 09 00 61 0E 00 82 48 18 67 A0 18 CA 66 98 [00:51:13]GetLastDocTimeStamp 1729644520 [00:51:13]current date 1729644674 [00:51:13]FM_GetShiftState [00:51:13]SAM_PROTO_GetShiftState [00:51:13]wFMCommunicate request_size=4 [00:51:13]MH_SAM_APDU [00:51:13]CAPDU: 80 13 01 00 [00:51:13]Write to MH i2c: E2 08 00 62 0E 80 13 01 00 00 00 00 00 ED [00:51:13]Write i2c OK [00:51:13]MH_I2C_Read... [00:51:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:13]Read from MH i2c: E2 [00:51:13]MH_I2C_Read... [00:51:13]Read from MH i2c: E2 0E 00 [00:51:13]MH_I2C_Read... [00:51:13]Read from MH i2c: E2 0E 00 62 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 D5 [00:51:13]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:51:13]wFMCommunicate OK [00:51:13]SAM_PROTO_GetShiftState done [00:51:13]FM_GetShiftState done [00:51:13]opened in 1729642525 [00:51:13]opened+sec_in_day 1729728925 [00:51:13]quantity*price = 52048 [00:51:13]sum+1 = 52049 [00:51:13]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.48 ИТОГО: 520.00 Внесено: 520.00 СДАЧА: 0.00 НСП 1% : 4.61 НДС 12% : 55.27 Наличными: 520.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 7 23.10.2024 00:51 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188549 ФПД: 142499510858948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005114&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188549&fm=142499510858948&tin=02508201610067®Number=0000000000100030&sum=52000 [00:51:14]StoreToDocumentArchive [00:51:14]shift 462 fd 188549 [00:51:14]save to /storage/0462/doc_00188549 [00:51:14]save last doc name /storage/0462/doc_00188549 to /storage/kkm_last_doc_name [00:51:14]save OK [00:51:14]Clear old archive folders... [00:51:14]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:51:14]tlvbuf is 008F2730 [00:51:14]SAM_PROTO_ClearQueue [00:51:14]wFMCommunicate request_size=4 [00:51:14]MH_SAM_APDU [00:51:14]CAPDU: 80 09 00 00 [00:51:14]Write to MH i2c: E2 08 00 6F 0E 80 09 00 00 00 00 00 00 EF [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:51:14]Read from MH i2c: E2 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 6F 0E 00 90 00 F1 [00:51:14]RAPDU: 90 00 [00:51:14]wFMCommunicate OK [00:51:14]SAM_PROTO_ClearQueue done [00:51:14]KKMCreateOFDPacket [00:51:14]OFDProtocolAddRootSTLVToBuf [00:51:14]FM_MakeSignedData [00:51:14]FM_MakeSignedData [00:51:14]SAM_PROTO_SignData [00:51:14]wFMCommunicate request_size=4 [00:51:14]MH_SAM_APDU [00:51:14]CAPDU: 80 0D 01 02 [00:51:14]Write to MH i2c: E2 08 00 70 0E 80 0D 01 02 00 00 00 00 F7 [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:51:14]Read from MH i2c: E2 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 70 0E 00 90 00 F2 [00:51:14]RAPDU: 90 00 [00:51:14]wFMCommunicate OK [00:51:14]wFMCommunicate request_size=255 [00:51:14]MH_SAM_APDU [00:51: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 33 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 82 48 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E0 02 00 35 04 06 00 81 [00:51:14]Write to MH i2c: E2 02 01 71 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 33 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 82 48 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E0 02 00 35 04 06 00 81 00 00 15 [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:14]Read from MH i2c: E2 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 71 0E 00 90 00 F3 [00:51:14]RAPDU: 90 00 [00:51:14]wFMCommunicate OK [00:51:14]wFMCommunicate request_size=10 [00:51:14]MH_SAM_APDU [00:51:14]CAPDU: 80 0D 02 02 05 9A 40 B9 B4 C4 [00:51:14]Write to MH i2c: E2 0D 00 72 0E 80 0D 02 02 05 00 9A 40 B9 B4 C4 00 00 0F [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:51:14]Read from MH i2c: E2 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 03 00 72 0E 00 90 00 F4 [00:51:14]RAPDU: 90 00 [00:51:14]wFMCommunicate OK [00:51:14]wFMCommunicate request_size=4 [00:51:14]MH_SAM_APDU [00:51:14]CAPDU: 80 0D 03 02 [00:51:14]Write to MH i2c: E2 08 00 73 0E 80 0D 03 02 00 00 00 00 FC [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:51:14]Read from MH i2c: E2 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 0B 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 0B 00 73 0E 00 95 27 28 BD D1 1C FB 95 90 00 1B [00:51:14]RAPDU: 95 27 28 BD D1 1C FB 95 90 00 [00:51:14]wFMCommunicate OK [00:51:14]SAM_PROTO_SignData done [00:51:14]FM_MakeSignedData done [00:51:14]CreateOFDProtocolMessage [00:51:14]wFMCommunicate request_size=4 [00:51:14]MH_SAM_APDU [00:51:14]CAPDU: 80 11 00 00 [00:51:14]Write to MH i2c: E2 08 00 74 0E 80 11 00 00 00 00 00 00 FC [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:14]Read from MH i2c: E2 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 17 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: E2 17 00 74 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 4A [00:51:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:51:14]wFMCommunicate OK [00:51:14]CreateOFDProtocolMessage done [00:51:14]OFDSenderStorePacket 188549 [00:51:14]StoreOFDPacket docnum=188549 [00:51:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 C6 07 01 56 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 82 48 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E0 02 00 35 04 06 00 81 9A 40 B9 B4 C4 95 27 28 BD D1 1C FB 95 [00:51:14]CheckFolder [00:51:14]dirname=/storage/ofd_packets [00:51:14]CheckFolder done [00:51:14]ProducePacketName [00:51:14]name=ofd_packets/00188549 [00:51:14]NVStorageSaveData ofd_packets/00188549 [00:51:14]File name is /storage/ofd_packets/00188549 [00:51:14]Write 301 bytes [00:51:14]NVStorageSaveData done [00:51:14]OFDSenderStorePacket done [00:51:14]KKMCreateOFDPacket done [00:51:14]NVStorageSaveData kkm_last_timestamp [00:51:14]File name is /storage/kkm_last_timestamp [00:51:14]Write 4 bytes [00:51:14]NVStorageSaveData done [00:51:14]ExternCall_PrintAddStr [00:51:14]wPrintStart [00:51:14]Write to MH i2c: 01 00 00 75 0E 83 [00:51:14]Write i2c OK [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: 01 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: 01 07 00 [00:51:14]MH_I2C_Read... [00:51:14]Read from MH i2c: 01 07 00 75 0E 00 00 00 00 00 FF 0F 98 [00:51:14]RasterBufferAndPrint [00:51:14]line Счет N : (1)210608 [00:51:14]line ИНН: 02508201610067 [00:51:14]line Контрольно-Кассовый Чек [00:51:14]line ПРОДАЖА [00:51:14]line ТРК (МРК, ГНК) : 42 [00:51:14]line Товар: 2710124130 [00:51:14]line Аи-92-К-3 [00:51:14]line 7.780 * 66.90 [00:51:14]line = 520.48 [00:51:14]line НДС 12% НСП 1% [00:51:14]line > о реализуемом товаре [00:51:14]line ОКРУГЛЕНИЕ: -0.48 [00:51:14]line ИТОГО: 520.00 [00:51:14]line Внесено: 520.00 [00:51:14]line СДАЧА: 0.00 [00:51:14]line НСП 1% : 4.61 [00:51:14]line НДС 12% : 55.27 [00:51:14]line Наличными: 520.00 [00:51:14]line Безнал.: 0.00 [00:51:14]line Место: АЗС № 86 "Партнер Нефть" [00:51:14]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:51:14]line СНО: Общий режим [00:51:14]line Чек 7 23.10.2024 00:51 [00:51:14]line Смена: 462 ФФД: 1.0 [00:51:14]line ЗНМ: 0300000155 [00:51:14]line РНМ: 0000000000100030 [00:51:14]line Версия ККМ: 001 [00:51:14]line ФМ: 0000000000965340 [00:51:14]line ФД: 188549 [00:51:14]line ФПД: 142499510858948 [00:51:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005114&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188549&fm=142499510858948&tin=02508201610067®Number=0000000000100030&sum=52000 [00:51:14]written 0, free lines is 4095 [00:51:15]OFD Sender: Processing packet 188549 [packets to send 1062, broken 1061] [00:51:15]ProducePacketName [00:51:15]name=ofd_packets/00188549 [00:51:15]OFD Sender: To server: pG, [00:51:15]CommunicateWithHost lk.salyk.kg:30040 [00:51:15]ConnectInit lk.salyk.kg [00:51:15]Connected sock=10 [00:51:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 91 C6 07 01 56 BF 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 64 1E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 50 CB 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 CB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CD 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 97 15 00 00 00 00 07 04 06 00 20 CB 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 07 00 00 00 F4 03 04 00 82 48 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E0 02 00 35 04 06 00 81 9A 40 B9 B4 C4 95 27 28 BD D1 1C FB 95 [00:51:15]Write to MH i2c: 01 00 00 A0 0E AE [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: 01 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: 01 07 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: 01 07 00 A0 0E 00 00 00 00 00 53 0C 14 [00:51:15]RasterBufferAndPrint [00:51:15]line [00:51:15]line [00:51:15]line [00:51:15]line [00:51:15]line [00:51:15]written 0, free lines is 3159 [00:51:15]MH_Cut [00:51:15]Write to MH i2c: D1 01 00 A7 0E 01 87 [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: D1 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: D1 01 00 [00:51:15]MH_I2C_Read... [00:51:15]Read from MH i2c: D1 01 00 A7 0E 00 86 [00:51:15]Write to MH i2c: 01 00 00 A8 0E B6 [00:51:15]Write i2c OK [00:51:15]MH_I2C_Read... [00:51:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 6A E9 47 00 F0 40 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 85 E0 02 00 F4 03 04 00 6E F2 17 67 B6 04 01 00 00 D6 E5 BA 2A 73 0D 3F FC [00:51:15]CommunicateWithHost err = 0 [00:51:15]CheckOFDResponse [00:51:15]1017 (14) - 77093643461234 [00:51:15]1041 (16) - 0000000000965340 [00:51:15]1040 (4) - 188549 [00:51:15]1012 (4) - 22.10.2024 18:43 [00:51:15]1206 (1) - 0 [00:51:15]OFD Sender: Remove packet 188549 [00:51:15]ProducePacketName [00:51:15]name=ofd_packets/00188549 [00:51:15]NVStorageDeleteData [00:51:16]OFD Sender: No OFD packet to send [00:51:16]*** Cut start [00:51:16]*** Partial cut [00:51:16]*** CUTSNS_PIN = 1 [00:51:16]*** CUTSNS_PIN = 0 [00:51:17]*** Brake cut motor [00:51:17]Read from MH i2c: 01 [00:51:17]MH_I2C_Read... [00:51:17]*** Stop cut motor [00:51:17]*** Cut end [00:51:17]Read from MH i2c: 01 07 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: 01 07 00 A8 0E 00 00 00 00 00 FF 0F CB [00:51:17]process_action close_receipt done [00:51:17]requested_data is exist [00:51:17]produce_requested_data [00:51:17]requested_item fm.sn is exist - process it [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 11 00 00 [00:51:17]Write to MH i2c: E2 08 00 A9 0E 80 11 00 00 00 00 00 00 31 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 17 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 17 00 A9 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 7F [00:51:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:51:17]wFMCommunicate OK [00:51:17]requested_item fd.num is exist - process it [00:51:17]SAM_PROTO_GetFieldsCounters [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 13 00 00 [00:51:17]Write to MH i2c: E2 08 00 AA 0E 80 13 00 00 00 00 00 00 34 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 62 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 62 00 AA 0E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [00:51:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 85 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 07 00 00 00 5E 04 04 00 07 00 00 00 57 04 04 00 08 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:51:17]wFMCommunicate OK [00:51:17]SAM_PROTO_GetFieldsCounters done [00:51:17]requested_item shift.num is exist - process it [00:51:17]requested_item shift.opened is exist - process it [00:51:17]req_shift_opened [00:51:17]FM_GetShiftState [00:51:17]SAM_PROTO_GetShiftState [00:51:17]wFMCommunicate request_size=4 [00:51:17]MH_SAM_APDU [00:51:17]CAPDU: 80 13 01 00 [00:51:17]Write to MH i2c: E2 08 00 AB 0E 80 13 01 00 00 00 00 00 36 [00:51:17]Write i2c OK [00:51:17]MH_I2C_Read... [00:51:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:51:17]Read from MH i2c: E2 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 0E 00 [00:51:17]MH_I2C_Read... [00:51:17]Read from MH i2c: E2 0E 00 AB 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 1E [00:51:17]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:51:17]wFMCommunicate OK [00:51:17]SAM_PROTO_GetShiftState done [00:51:17]FM_GetShiftState done [00:51:17]req_shift_opened done [00:51:17]requested_item shift.open_date is exist - process it [00:51:17]req_shift_open_date [00:51:17]req_shift_open_date done [00:51:17]produce_requested_data done [00:51:17]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188549,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:51:17]process_action_free close_receipt [00:51:17]json_value_free [00:51:17]json_value_free done [00:51:17]process_json_proto returns [00:51:17]Send response to host [00:51:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188549,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:51:17]free response buf [00:51:17]execute_script done [00:51:17]execute_script returns [00:51:17]free content buf [00:51:17]Sock 9.Close socket [00:51:17]Sock 9.Thread stoped [00:51:21]OFD Sender: No OFD packet to send [00:51:26]OFD Sender: No OFD packet to send [00:51:31]OFD Sender: No OFD packet to send [00:51:36]OFD Sender: No OFD packet to send [00:51:41]OFD Sender: No OFD packet to send [00:51:46]OFD Sender: No OFD packet to send [00:51:51]OFD Sender: No OFD packet to send [00:51:56]OFD Sender: No OFD packet to send [00:52:01]OFD Sender: No OFD packet to send [00:52:06]OFD Sender: No OFD packet to send [00:52:11]OFD Sender: No OFD packet to send [00:52:16]OFD Sender: No OFD packet to send [00:52:21]OFD Sender: No OFD packet to send [00:52:26]OFD Sender: No OFD packet to send [00:52:31]OFD Sender: No OFD packet to send [00:52:36]OFD Sender: No OFD packet to send [00:52:41]OFD Sender: No OFD packet to send [00:52:46]OFD Sender: No OFD packet to send [00:52:51]OFD Sender: No OFD packet to send [00:52:56]OFD Sender: No OFD packet to send [00:53:01]OFD Sender: No OFD packet to send [00:53:06]OFD Sender: No OFD packet to send [00:53:11]OFD Sender: No OFD packet to send [00:53:16]OFD Sender: No OFD packet to send [00:53:21]OFD Sender: No OFD packet to send [00:53:26]OFD Sender: No OFD packet to send [00:53:31]OFD Sender: No OFD packet to send [00:53:36]OFD Sender: No OFD packet to send [00:53:41]OFD Sender: No OFD packet to send [00:53:46]OFD Sender: No OFD packet to send [00:53:51]OFD Sender: No OFD packet to send [00:53:56]OFD Sender: No OFD packet to send [00:54:01]OFD Sender: No OFD packet to send [00:54:06]OFD Sender: No OFD packet to send [00:54:11]OFD Sender: No OFD packet to send [00:54:16]OFD Sender: No OFD packet to send [00:54:21]OFD Sender: No OFD packet to send [00:54:26]OFD Sender: No OFD packet to send [00:54:31]OFD Sender: No OFD packet to send [00:54:37]OFD Sender: No OFD packet to send [00:54:42]OFD Sender: No OFD packet to send [00:54:47]OFD Sender: No OFD packet to send [00:54:52]OFD Sender: No OFD packet to send [00:54:57]OFD Sender: No OFD packet to send [00:55:02]OFD Sender: No OFD packet to send [00:55:07]OFD Sender: No OFD packet to send [00:55:12]OFD Sender: No OFD packet to send [00:55:17]OFD Sender: No OFD packet to send [00:55:22]OFD Sender: No OFD packet to send [00:55:27]OFD Sender: No OFD packet to send [00:55:32]OFD Sender: No OFD packet to send [00:55:37]OFD Sender: No OFD packet to send [00:55:42]OFD Sender: No OFD packet to send [00:55:47]OFD Sender: No OFD packet to send [00:55:52]OFD Sender: No OFD packet to send [00:55:57]OFD Sender: No OFD packet to send [00:56:02]OFD Sender: No OFD packet to send [00:56:07]OFD Sender: No OFD packet to send [00:56:12]OFD Sender: No OFD packet to send [00:56:17]OFD Sender: No OFD packet to send [00:56:22]OFD Sender: No OFD packet to send [00:56:27]OFD Sender: No OFD packet to send [00:56:32]OFD Sender: No OFD packet to send [00:56:32]accept exits with 7 [00:56:32]New connection [00:56:32]New thread 3066649956 created [00:56:32]Thread 3066506596 joined [00:56:32]Waiting for new connection... [00:56:32] Sock 7.Parse request [00:56:32]Sock 7.Check first char [00:56:32]Sock 7.First char is OK [00:56:32]request: POST /json_proto HTTP/1.0 [00:56:32]Method: POST [00:56:32]URL: /json_proto [00:56:32]Method is POST - this is cgi request [00:56:32]url: /json_proto [00:56:32]query_string will be loaded in cgi processing [00:56:32]execute_cgi json_proto POST (null) [00:56:32]execute_cgi path=json_proto method=POST [00:56:32]POST find Content-Length [00:56:32]Host: 172.17.42.131:8080 [00:56:32]Content-Length: 682 [00:56:32]Content-Type: application/json [00:56:32] [00:56:32]POST finish read [00:56:32]Found Content-Length = 682 [00:56:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:32]execute_script... [00:56: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)210610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:56:32]POST & json_proto [00:56:32]process_json_proto [00:56:32]json parsed OK: [00:56:32]protocol is kg_v1.0 [00:56:32]action value=close_receipt [00:56:32]process_action close_receipt [00:56:32]cmd_close_receipt [00:56:32]MH_GetDate [00:56:32]Write to MH i2c: F0 00 00 AC 0E A9 [00:56:32]Write i2c OK [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: F0 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: F0 09 00 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: F0 09 00 AC 0E 00 C2 49 18 67 A0 18 CA 66 24 [00:56:32]GetLastDocTimeStamp 1729644674 [00:56:32]current date 1729644994 [00:56:32]FM_GetShiftState [00:56:32]SAM_PROTO_GetShiftState [00:56:32]wFMCommunicate request_size=4 [00:56:32]MH_SAM_APDU [00:56:32]CAPDU: 80 13 01 00 [00:56:32]Write to MH i2c: E2 08 00 AD 0E 80 13 01 00 00 00 00 00 38 [00:56:32]Write i2c OK [00:56:32]MH_I2C_Read... [00:56:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:32]Read from MH i2c: E2 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: E2 0E 00 [00:56:32]MH_I2C_Read... [00:56:32]Read from MH i2c: E2 0E 00 AD 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 20 [00:56:32]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:56:32]wFMCommunicate OK [00:56:32]SAM_PROTO_GetShiftState done [00:56:32]FM_GetShiftState done [00:56:32]opened in 1729642525 [00:56:32]opened+sec_in_day 1729728925 [00:56:32]quantity*price = 100015 [00:56:32]sum+1 = 100017 [00:56:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 8 23.10.2024 00:56 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188550 ФПД: 96617558931309 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005634&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188550&fm=96617558931309&tin=02508201610067®Number=0000000000100030&sum=100000 [00:56:33]StoreToDocumentArchive [00:56:33]shift 462 fd 188550 [00:56:33]save to /storage/0462/doc_00188550 [00:56:33]save last doc name /storage/0462/doc_00188550 to /storage/kkm_last_doc_name [00:56:33]save OK [00:56:33]Clear old archive folders... [00:56:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:56:33]tlvbuf is 008D4D10 [00:56:33]SAM_PROTO_ClearQueue [00:56:33]wFMCommunicate request_size=4 [00:56:33]MH_SAM_APDU [00:56:33]CAPDU: 80 09 00 00 [00:56:33]Write to MH i2c: E2 08 00 BA 0E 80 09 00 00 00 00 00 00 3A [00:56:33]Write i2c OK [00:56:33]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 BA 0E 00 90 00 3C [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_ClearQueue done [00:56:34]KKMCreateOFDPacket [00:56:34]OFDProtocolAddRootSTLVToBuf [00:56:34]FM_MakeSignedData [00:56:34]FM_MakeSignedData [00:56:34]SAM_PROTO_SignData [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 01 02 [00:56:34]Write to MH i2c: E2 08 00 BB 0E 80 0D 01 02 00 00 00 00 42 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 BB 0E 00 90 00 3D [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=255 [00:56:34]MH_SAM_APDU [00:56: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C2 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E0 02 00 35 04 06 00 57 [00:56:34]Write to MH i2c: E2 02 01 BC 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C2 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E0 02 00 35 04 06 00 57 00 00 CF [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 BC 0E 00 90 00 3E [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=10 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 02 02 05 DF 87 47 77 6D [00:56:34]Write to MH i2c: E2 0D 00 BD 0E 80 0D 02 02 05 00 DF 87 47 77 6D 00 00 E0 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 03 00 BD 0E 00 90 00 3F [00:56:34]RAPDU: 90 00 [00:56:34]wFMCommunicate OK [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 0D 03 02 [00:56:34]Write to MH i2c: E2 08 00 BE 0E 80 0D 03 02 00 00 00 00 47 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0B 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 0B 00 BE 0E 00 F0 FA 0E 55 0E B4 36 E6 90 00 73 [00:56:34]RAPDU: F0 FA 0E 55 0E B4 36 E6 90 00 [00:56:34]wFMCommunicate OK [00:56:34]SAM_PROTO_SignData done [00:56:34]FM_MakeSignedData done [00:56:34]CreateOFDProtocolMessage [00:56:34]wFMCommunicate request_size=4 [00:56:34]MH_SAM_APDU [00:56:34]CAPDU: 80 11 00 00 [00:56:34]Write to MH i2c: E2 08 00 BF 0E 80 11 00 00 00 00 00 00 47 [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:34]Read from MH i2c: E2 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 17 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: E2 17 00 BF 0E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 95 [00:56:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:56:34]wFMCommunicate OK [00:56:34]CreateOFDProtocolMessage done [00:56:34]OFDSenderStorePacket 188550 [00:56:34]StoreOFDPacket docnum=188550 [00:56:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A9 BF 07 01 37 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C2 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E0 02 00 35 04 06 00 57 DF 87 47 77 6D F0 FA 0E 55 0E B4 36 E6 [00:56:34]CheckFolder [00:56:34]dirname=/storage/ofd_packets [00:56:34]CheckFolder done [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00188550 [00:56:34]NVStorageSaveData ofd_packets/00188550 [00:56:34]File name is /storage/ofd_packets/00188550 [00:56:34]Write 301 bytes [00:56:34]NVStorageSaveData done [00:56:34]OFDSenderStorePacket done [00:56:34]KKMCreateOFDPacket done [00:56:34]NVStorageSaveData kkm_last_timestamp [00:56:34]File name is /storage/kkm_last_timestamp [00:56:34]Write 4 bytes [00:56:34]NVStorageSaveData done [00:56:34]ExternCall_PrintAddStr [00:56:34]wPrintStart [00:56:34]Write to MH i2c: 01 00 00 C0 0E CE [00:56:34]Write i2c OK [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 [00:56:34]MH_I2C_Read... [00:56:34]Read from MH i2c: 01 07 00 C0 0E 00 00 00 00 00 FF 0F E3 [00:56:34]RasterBufferAndPrint [00:56:34]line Счет N : (1)210610 [00:56:34]line ИНН: 02508201610067 [00:56:34]line Контрольно-Кассовый Чек [00:56:34]line ПРОДАЖА [00:56:34]line ТРК (МРК, ГНК) : 12 [00:56:34]line Товар: 2710124130 [00:56:34]line Аи-92-К-3 [00:56:34]line 14.950 * 66.90 [00:56:34]line = 1000.16 [00:56:34]line НДС 12% НСП 1% [00:56:34]line > о реализуемом товаре [00:56:34]line ОКРУГЛЕНИЕ: -0.16 [00:56:34]line ИТОГО: 1000.00 [00:56:34]line Внесено: 1000.00 [00:56:34]line СДАЧА: 0.00 [00:56:34]line НСП 1% : 8.85 [00:56:34]line НДС 12% : 106.21 [00:56:34]line Наличными: 1000.00 [00:56:34]line Безнал.: 0.00 [00:56:34]line Место: АЗС № 86 "Партнер Нефть" [00:56:34]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:56:34]line СНО: Общий режим [00:56:34]line Чек 8 23.10.2024 00:56 [00:56:34]line Смена: 462 ФФД: 1.0 [00:56:34]line ЗНМ: 0300000155 [00:56:34]line РНМ: 0000000000100030 [00:56:34]line Версия ККМ: 001 [00:56:34]line ФМ: 0000000000965340 [00:56:34]line ФД: 188550 [00:56:34]line ФПД: 96617558931309 [00:56:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005634&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188550&fm=96617558931309&tin=02508201610067®Number=0000000000100030&sum=100000 [00:56:34]written 0, free lines is 4095 [00:56:34]OFD Sender: Processing packet 188550 [packets to send 1062, broken 1061] [00:56:34]ProducePacketName [00:56:34]name=ofd_packets/00188550 [00:56:34]OFD Sender: To server: pG, [00:56:34]CommunicateWithHost lk.salyk.kg:30040 [00:56:34]ConnectInit lk.salyk.kg [00:56:34]Connected sock=11 [00:56:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A9 BF 07 01 37 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 C2 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 86 E0 02 00 35 04 06 00 57 DF 87 47 77 6D F0 FA 0E 55 0E B4 36 E6 [00:56:35]Write to MH i2c: 01 00 00 EB 0E F9 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 07 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: 01 07 00 EB 0E 00 00 00 00 00 50 0C 5C [00:56:35]RasterBufferAndPrint [00:56:35]line [00:56:35]line [00:56:35]line [00:56:35]line [00:56:35]line [00:56:35]written 0, free lines is 3155 [00:56:35]MH_Cut [00:56:35]Write to MH i2c: D1 01 00 F2 0E 01 D2 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: D1 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: D1 01 00 [00:56:35]MH_I2C_Read... [00:56:35]Read from MH i2c: D1 01 00 F2 0E 00 D1 [00:56:35]Write to MH i2c: 01 00 00 F3 0E 01 [00:56:35]Write i2c OK [00:56:35]MH_I2C_Read... [00:56:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 C5 58 47 00 1C 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 39 36 35 33 34 30 10 04 04 00 86 E0 02 00 F4 03 04 00 AE F3 17 67 B6 04 01 00 00 FA 74 CC C4 9B BC 44 4F [00:56:35]CommunicateWithHost err = 0 [00:56:35]CheckOFDResponse [00:56:35]1017 (14) - 77093643461234 [00:56:35]1041 (16) - 0000000000965340 [00:56:35]1040 (4) - 188550 [00:56:35]1012 (4) - 22.10.2024 18:49 [00:56:35]1206 (1) - 0 [00:56:35]OFD Sender: Remove packet 188550 [00:56:35]ProducePacketName [00:56:35]name=ofd_packets/00188550 [00:56:35]NVStorageDeleteData [00:56:35]OFD Sender: No OFD packet to send [00:56:36]*** Cut start [00:56:36]*** Partial cut [00:56:36]*** CUTSNS_PIN = 1 [00:56:36]*** CUTSNS_PIN = 0 [00:56:36]*** Brake cut motor [00:56:36]Read from MH i2c: 01 [00:56:36]MH_I2C_Read... [00:56:36]*** Stop cut motor [00:56:36]*** Cut end [00:56:36]Read from MH i2c: 01 07 00 [00:56:36]MH_I2C_Read... [00:56:36]Read from MH i2c: 01 07 00 F3 0E 00 00 00 00 00 FF 0F 16 [00:56:36]process_action close_receipt done [00:56:36]requested_data is exist [00:56:36]produce_requested_data [00:56:36]requested_item fm.sn is exist - process it [00:56:36]wFMCommunicate request_size=4 [00:56:36]MH_SAM_APDU [00:56:36]CAPDU: 80 11 00 00 [00:56:36]Write to MH i2c: E2 08 00 F4 0E 80 11 00 00 00 00 00 00 7C [00:56:36]Write i2c OK [00:56:36]MH_I2C_Read... [00:56:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:56:37]Read from MH i2c: E2 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 17 00 [00:56:37]MH_I2C_Read... [00:56: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 39 36 35 33 34 30 90 00 CA [00:56:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:56:37]wFMCommunicate OK [00:56:37]requested_item fd.num is exist - process it [00:56:37]SAM_PROTO_GetFieldsCounters [00:56:37]wFMCommunicate request_size=4 [00:56:37]MH_SAM_APDU [00:56:37]CAPDU: 80 13 00 00 [00:56:37]Write to MH i2c: E2 08 00 F5 0E 80 13 00 00 00 00 00 00 7F [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:56:37]Read from MH i2c: E2 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 62 00 [00:56:37]MH_I2C_Read... [00:56: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 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 D5 [00:56:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 86 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 08 00 00 00 5E 04 04 00 08 00 00 00 57 04 04 00 09 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:56:37]wFMCommunicate OK [00:56:37]SAM_PROTO_GetFieldsCounters done [00:56:37]requested_item shift.num is exist - process it [00:56:37]requested_item shift.opened is exist - process it [00:56:37]req_shift_opened [00:56:37]FM_GetShiftState [00:56:37]SAM_PROTO_GetShiftState [00:56:37]wFMCommunicate request_size=4 [00:56:37]MH_SAM_APDU [00:56:37]CAPDU: 80 13 01 00 [00:56:37]Write to MH i2c: E2 08 00 F6 0E 80 13 01 00 00 00 00 00 81 [00:56:37]Write i2c OK [00:56:37]MH_I2C_Read... [00:56:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:56:37]Read from MH i2c: E2 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 0E 00 [00:56:37]MH_I2C_Read... [00:56:37]Read from MH i2c: E2 0E 00 F6 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 69 [00:56:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:56:37]wFMCommunicate OK [00:56:37]SAM_PROTO_GetShiftState done [00:56:37]FM_GetShiftState done [00:56:37]req_shift_opened done [00:56:37]requested_item shift.open_date is exist - process it [00:56:37]req_shift_open_date [00:56:37]req_shift_open_date done [00:56:37]produce_requested_data done [00:56:37]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188550,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:56:37]process_action_free close_receipt [00:56:37]json_value_free [00:56:37]json_value_free done [00:56:37]process_json_proto returns [00:56:37]Send response to host [00:56:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188550,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:56:37]free response buf [00:56:37]execute_script done [00:56:37]execute_script returns [00:56:37]free content buf [00:56:37]Sock 7.Close socket [00:56:37]Sock 7.Thread stoped [00:56:40]OFD Sender: No OFD packet to send [00:56:45]OFD Sender: No OFD packet to send [00:56:50]OFD Sender: No OFD packet to send [00:56:55]OFD Sender: No OFD packet to send [00:57:00]accept exits with 9 [00:57:00]New connection [00:57:00]New thread 3066506596 created [00:57:00]Thread 3066649956 joined [00:57:00]Waiting for new connection... [00:57:00] Sock 9.Parse request [00:57:00]Sock 9.Check first char [00:57:00]Sock 9.First char is OK [00:57:00]request: POST /json_proto HTTP/1.0 [00:57:00]Method: POST [00:57:00]URL: /json_proto [00:57:00]Method is POST - this is cgi request [00:57:00]url: /json_proto [00:57:00]query_string will be loaded in cgi processing [00:57:00]execute_cgi json_proto POST (null) [00:57:00]execute_cgi path=json_proto method=POST [00:57:00]POST find Content-Length [00:57:00]Host: 172.17.42.131:8080 [00:57:00]Content-Length: 682 [00:57:00]Content-Type: application/json [00:57:00] [00:57:00]POST finish read [00:57:00]Found Content-Length = 682 [00:57:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [00:57:00]execute_script... [00:57:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210609", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "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" ] } } [00:57:00]POST & json_proto [00:57:00]process_json_proto [00:57:00]json parsed OK: [00:57:00]protocol is kg_v1.0 [00:57:00]action value=close_receipt [00:57:00]process_action close_receipt [00:57:00]cmd_close_receipt [00:57:00]MH_GetDate [00:57:00]Write to MH i2c: F0 00 00 F7 0E F4 [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: F0 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: F0 09 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: F0 09 00 F7 0E 00 DD 49 18 67 A0 18 CA 66 8A [00:57:00]GetLastDocTimeStamp 1729644994 [00:57:00]current date 1729645021 [00:57:00]FM_GetShiftState [00:57:00]SAM_PROTO_GetShiftState [00:57:00]wFMCommunicate request_size=4 [00:57:00]MH_SAM_APDU [00:57:00]CAPDU: 80 13 01 00 [00:57:00]Write to MH i2c: E2 08 00 F8 0E 80 13 01 00 00 00 00 00 83 [00:57:00]Write i2c OK [00:57:00]MH_I2C_Read... [00:57:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:00]Read from MH i2c: E2 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 0E 00 [00:57:00]MH_I2C_Read... [00:57:00]Read from MH i2c: E2 0E 00 F8 0E 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 6B [00:57:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:57:00]wFMCommunicate OK [00:57:00]SAM_PROTO_GetShiftState done [00:57:00]FM_GetShiftState done [00:57:00]opened in 1729642525 [00:57:00]opened+sec_in_day 1729728925 [00:57:00]quantity*price = 200031 [00:57:00]sum+1 = 200032 [00:57:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 9 23.10.2024 00:57 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188551 ФПД: 221594171791854 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005701&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188551&fm=221594171791854&tin=02508201610067®Number=0000000000100030&sum=200000 [00:57:01]StoreToDocumentArchive [00:57:01]shift 462 fd 188551 [00:57:01]save to /storage/0462/doc_00188551 [00:57:01]save last doc name /storage/0462/doc_00188551 to /storage/kkm_last_doc_name [00:57:01]save OK [00:57:01]Clear old archive folders... [00:57:01]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:57:01]tlvbuf is 008F2A30 [00:57:01]SAM_PROTO_ClearQueue [00:57:01]wFMCommunicate request_size=4 [00:57:01]MH_SAM_APDU [00:57:01]CAPDU: 80 09 00 00 [00:57:01]Write to MH i2c: E2 08 00 05 0F 80 09 00 00 00 00 00 00 86 [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:57:01]Read from MH i2c: E2 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 05 0F 00 90 00 88 [00:57:01]RAPDU: 90 00 [00:57:01]wFMCommunicate OK [00:57:01]SAM_PROTO_ClearQueue done [00:57:01]KKMCreateOFDPacket [00:57:01]OFDProtocolAddRootSTLVToBuf [00:57:01]FM_MakeSignedData [00:57:01]FM_MakeSignedData [00:57:01]SAM_PROTO_SignData [00:57:01]wFMCommunicate request_size=4 [00:57:01]MH_SAM_APDU [00:57:01]CAPDU: 80 0D 01 02 [00:57:01]Write to MH i2c: E2 08 00 06 0F 80 0D 01 02 00 00 00 00 8E [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:57:01]Read from MH i2c: E2 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 06 0F 00 90 00 89 [00:57:01]RAPDU: 90 00 [00:57:01]wFMCommunicate OK [00:57:01]wFMCommunicate request_size=255 [00:57:01]MH_SAM_APDU [00:57:01]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 09 00 00 00 F4 03 04 00 DD 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E0 02 00 35 04 06 00 C9 [00:57:01]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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 09 00 00 00 F4 03 04 00 DD 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E0 02 00 35 04 06 00 C9 00 00 F2 [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:01]Read from MH i2c: E2 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 07 0F 00 90 00 8A [00:57:01]RAPDU: 90 00 [00:57:01]wFMCommunicate OK [00:57:01]wFMCommunicate request_size=10 [00:57:01]MH_SAM_APDU [00:57:01]CAPDU: 80 0D 02 02 05 89 E9 E4 D9 EE [00:57:01]Write to MH i2c: E2 0D 00 08 0F 80 0D 02 02 05 00 89 E9 E4 D9 EE 00 00 B8 [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:57:01]Read from MH i2c: E2 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 03 00 08 0F 00 90 00 8B [00:57:01]RAPDU: 90 00 [00:57:01]wFMCommunicate OK [00:57:01]wFMCommunicate request_size=4 [00:57:01]MH_SAM_APDU [00:57:01]CAPDU: 80 0D 03 02 [00:57:01]Write to MH i2c: E2 08 00 09 0F 80 0D 03 02 00 00 00 00 93 [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:57:01]Read from MH i2c: E2 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 0B 00 [00:57:01]MH_I2C_Read... [00:57:01]Read from MH i2c: E2 0B 00 09 0F 00 59 AD 4D 2B 76 EE C1 36 90 00 6D [00:57:01]RAPDU: 59 AD 4D 2B 76 EE C1 36 90 00 [00:57:01]wFMCommunicate OK [00:57:01]SAM_PROTO_SignData done [00:57:01]FM_MakeSignedData done [00:57:01]CreateOFDProtocolMessage [00:57:01]wFMCommunicate request_size=4 [00:57:01]MH_SAM_APDU [00:57:01]CAPDU: 80 11 00 00 [00:57:01]Write to MH i2c: E2 08 00 0A 0F 80 11 00 00 00 00 00 00 93 [00:57:01]Write i2c OK [00:57:01]MH_I2C_Read... [00:57:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:02]Read from MH i2c: E2 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: E2 17 00 [00:57:02]MH_I2C_Read... [00:57: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 39 36 35 33 34 30 90 00 E1 [00:57:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:57:02]wFMCommunicate OK [00:57:02]CreateOFDProtocolMessage done [00:57:02]OFDSenderStorePacket 188551 [00:57:02]StoreOFDPacket docnum=188551 [00:57:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D6 82 07 01 08 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 09 00 00 00 F4 03 04 00 DD 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E0 02 00 35 04 06 00 C9 89 E9 E4 D9 EE 59 AD 4D 2B 76 EE C1 36 [00:57:02]CheckFolder [00:57:02]dirname=/storage/ofd_packets [00:57:02]CheckFolder done [00:57:02]ProducePacketName [00:57:02]name=ofd_packets/00188551 [00:57:02]NVStorageSaveData ofd_packets/00188551 [00:57:02]File name is /storage/ofd_packets/00188551 [00:57:02]Write 301 bytes [00:57:02]NVStorageSaveData done [00:57:02]OFDSenderStorePacket done [00:57:02]KKMCreateOFDPacket done [00:57:02]NVStorageSaveData kkm_last_timestamp [00:57:02]File name is /storage/kkm_last_timestamp [00:57:02]Write 4 bytes [00:57:02]NVStorageSaveData done [00:57:02]ExternCall_PrintAddStr [00:57:02]wPrintStart [00:57:02]Write to MH i2c: 01 00 00 0B 0F 1A [00:57:02]Write i2c OK [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 07 00 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 07 00 0B 0F 00 00 00 00 00 FF 0F 2F [00:57:02]RasterBufferAndPrint [00:57:02]line Счет N : (1)210609 [00:57:02]line ИНН: 02508201610067 [00:57:02]line Контрольно-Кассовый Чек [00:57:02]line ПРОДАЖА [00:57:02]line ТРК (МРК, ГНК) : 32 [00:57:02]line Товар: 2710124130 [00:57:02]line Аи-92-К-3 [00:57:02]line 29.900 * 66.90 [00:57:02]line = 2000.31 [00:57:02]line НДС 12% НСП 1% [00:57:02]line > о реализуемом товаре [00:57:02]line ОКРУГЛЕНИЕ: -0.31 [00:57:02]line ИТОГО: 2000.00 [00:57:02]line Внесено: 2000.00 [00:57:02]line СДАЧА: 0.00 [00:57:02]line НСП 1% : 17.70 [00:57:02]line НДС 12% : 212.42 [00:57:02]line Наличными: 2000.00 [00:57:02]line Безнал.: 0.00 [00:57:02]line Место: АЗС № 86 "Партнер Нефть" [00:57:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:57:02]line СНО: Общий режим [00:57:02]line Чек 9 23.10.2024 00:57 [00:57:02]line Смена: 462 ФФД: 1.0 [00:57:02]line ЗНМ: 0300000155 [00:57:02]line РНМ: 0000000000100030 [00:57:02]line Версия ККМ: 001 [00:57:02]line ФМ: 0000000000965340 [00:57:02]line ФД: 188551 [00:57:02]line ФПД: 221594171791854 [00:57:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005701&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188551&fm=221594171791854&tin=02508201610067®Number=0000000000100030&sum=200000 [00:57:02]written 0, free lines is 4095 [00:57:02]OFD Sender: Processing packet 188551 [packets to send 1062, broken 1061] [00:57:02]ProducePacketName [00:57:02]name=ofd_packets/00188551 [00:57:02]OFD Sender: To server: pG, [00:57:02]CommunicateWithHost lk.salyk.kg:30040 [00:57:02]ConnectInit lk.salyk.kg [00:57:02]Connected sock=10 [00:57:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 D6 82 07 01 08 15 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 09 00 00 00 F4 03 04 00 DD 49 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 87 E0 02 00 35 04 06 00 C9 89 E9 E4 D9 EE 59 AD 4D 2B 76 EE C1 36 [00:57:02]Write to MH i2c: 01 00 00 36 0F 45 [00:57:02]Write i2c OK [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 07 00 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: 01 07 00 36 0F 00 00 00 00 00 58 0C B0 [00:57:02]RasterBufferAndPrint [00:57:02]line [00:57:02]line [00:57:02]line [00:57:02]line [00:57:02]line [00:57:02]written 0, free lines is 3163 [00:57:02]MH_Cut [00:57:02]Write to MH i2c: D1 01 00 3D 0F 01 1E [00:57:02]Write i2c OK [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: D1 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: D1 01 00 [00:57:02]MH_I2C_Read... [00:57:02]Read from MH i2c: D1 01 00 3D 0F 00 1D [00:57:02]Write to MH i2c: 01 00 00 3E 0F 4D [00:57:02]Write i2c OK [00:57:02]MH_I2C_Read... [00:57:02]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 B8 10 47 00 60 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 39 36 35 33 34 30 10 04 04 00 87 E0 02 00 F4 03 04 00 C9 F3 17 67 B6 04 01 00 00 EB B1 D1 B7 20 A8 01 7E [00:57:02]CommunicateWithHost err = 0 [00:57:02]CheckOFDResponse [00:57:02]1017 (14) - 77093643461234 [00:57:02]1041 (16) - 0000000000965340 [00:57:02]1040 (4) - 188551 [00:57:02]1012 (4) - 22.10.2024 18:49 [00:57:02]1206 (1) - 0 [00:57:02]OFD Sender: Remove packet 188551 [00:57:02]ProducePacketName [00:57:02]name=ofd_packets/00188551 [00:57:02]NVStorageDeleteData [00:57:03]OFD Sender: No OFD packet to send [00:57:03]*** Cut start [00:57:03]*** Partial cut [00:57:03]*** CUTSNS_PIN = 1 [00:57:03]*** CUTSNS_PIN = 0 [00:57:04]*** Brake cut motor [00:57:04]Read from MH i2c: 01 [00:57:04]MH_I2C_Read... [00:57:04]*** Stop cut motor [00:57:04]*** Cut end [00:57:04]Read from MH i2c: 01 07 00 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: 01 07 00 3E 0F 00 00 00 00 00 FF 0F 62 [00:57:04]process_action close_receipt done [00:57:04]requested_data is exist [00:57:04]produce_requested_data [00:57:04]requested_item fm.sn is exist - process it [00:57:04]wFMCommunicate request_size=4 [00:57:04]MH_SAM_APDU [00:57:04]CAPDU: 80 11 00 00 [00:57:04]Write to MH i2c: E2 08 00 3F 0F 80 11 00 00 00 00 00 00 C8 [00:57:04]Write i2c OK [00:57:04]MH_I2C_Read... [00:57:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:57:04]Read from MH i2c: E2 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: E2 17 00 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: E2 17 00 3F 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 16 [00:57:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:57:04]wFMCommunicate OK [00:57:04]requested_item fd.num is exist - process it [00:57:04]SAM_PROTO_GetFieldsCounters [00:57:04]wFMCommunicate request_size=4 [00:57:04]MH_SAM_APDU [00:57:04]CAPDU: 80 13 00 00 [00:57:04]Write to MH i2c: E2 08 00 40 0F 80 13 00 00 00 00 00 00 CB [00:57:04]Write i2c OK [00:57:04]MH_I2C_Read... [00:57:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:57:04]Read from MH i2c: E2 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: E2 62 00 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: E2 62 00 40 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 25 [00:57:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 87 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 09 00 00 00 5E 04 04 00 09 00 00 00 57 04 04 00 0A 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:57:04]wFMCommunicate OK [00:57:04]SAM_PROTO_GetFieldsCounters done [00:57:04]requested_item shift.num is exist - process it [00:57:04]requested_item shift.opened is exist - process it [00:57:04]req_shift_opened [00:57:04]FM_GetShiftState [00:57:04]SAM_PROTO_GetShiftState [00:57:04]wFMCommunicate request_size=4 [00:57:04]MH_SAM_APDU [00:57:04]CAPDU: 80 13 01 00 [00:57:04]Write to MH i2c: E2 08 00 41 0F 80 13 01 00 00 00 00 00 CD [00:57:04]Write i2c OK [00:57:04]MH_I2C_Read... [00:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:57:04]Read from MH i2c: E2 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: E2 0E 00 [00:57:04]MH_I2C_Read... [00:57:04]Read from MH i2c: E2 0E 00 41 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B5 [00:57:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:57:04]wFMCommunicate OK [00:57:04]SAM_PROTO_GetShiftState done [00:57:04]FM_GetShiftState done [00:57:04]req_shift_opened done [00:57:04]requested_item shift.open_date is exist - process it [00:57:04]req_shift_open_date [00:57:04]req_shift_open_date done [00:57:04]produce_requested_data done [00:57:04]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188551,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:57:04]process_action_free close_receipt [00:57:04]json_value_free [00:57:04]json_value_free done [00:57:04]process_json_proto returns [00:57:04]Send response to host [00:57:04]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188551,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:57:04]free response buf [00:57:04]execute_script done [00:57:04]execute_script returns [00:57:04]free content buf [00:57:04]Sock 9.Close socket [00:57:04]Sock 9.Thread stoped [00:57:08]OFD Sender: No OFD packet to send [00:57:13]OFD Sender: No OFD packet to send [00:57:18]OFD Sender: No OFD packet to send [00:57:23]OFD Sender: No OFD packet to send [00:57:28]OFD Sender: No OFD packet to send [00:57:33]OFD Sender: No OFD packet to send [00:57:38]OFD Sender: No OFD packet to send [00:57:43]OFD Sender: No OFD packet to send [00:57:48]OFD Sender: No OFD packet to send [00:57:53]OFD Sender: No OFD packet to send [00:57:58]OFD Sender: No OFD packet to send [00:58:03]OFD Sender: No OFD packet to send [00:58:08]OFD Sender: No OFD packet to send [00:58:13]OFD Sender: No OFD packet to send [00:58:18]OFD Sender: No OFD packet to send [00:58:23]OFD Sender: No OFD packet to send [00:58:25]accept exits with 7 [00:58:25]New connection [00:58:25]New thread 3066649956 created [00:58:25]Thread 3066506596 joined [00:58:25]Waiting for new connection... [00:58:25] Sock 7.Parse request [00:58:25]Sock 7.Check first char [00:58:25]Sock 7.First char is OK [00:58:25]request: POST /json_proto HTTP/1.0 [00:58:25]Method: POST [00:58:25]URL: /json_proto [00:58:25]Method is POST - this is cgi request [00:58:25]url: /json_proto [00:58:25]query_string will be loaded in cgi processing [00:58:25]execute_cgi json_proto POST (null) [00:58:25]execute_cgi path=json_proto method=POST [00:58:25]POST find Content-Length [00:58:25]Host: 172.17.42.131:8080 [00:58:25]Content-Length: 684 [00:58:25]Content-Type: application/json [00:58:25] [00:58:25]POST finish read [00:58:25]Found Content-Length = 684 [00:58:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:25]execute_script... [00:58: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)210611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 10.370, "sum" : 800.56, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 800.00, "total" : 800.00, "payments": [ { "type": 0, "sum" : 800.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:58:25]POST & json_proto [00:58:25]process_json_proto [00:58:25]json parsed OK: [00:58:25]protocol is kg_v1.0 [00:58:25]action value=close_receipt [00:58:25]process_action close_receipt [00:58:25]cmd_close_receipt [00:58:25]MH_GetDate [00:58:25]Write to MH i2c: F0 00 00 42 0F 40 [00:58:25]Write i2c OK [00:58:25]MH_I2C_Read... [00:58:25]Read from MH i2c: F0 [00:58:25]MH_I2C_Read... [00:58:25]Read from MH i2c: F0 09 00 [00:58:25]MH_I2C_Read... [00:58:25]Read from MH i2c: F0 09 00 42 0F 00 33 4A 18 67 A0 18 CA 66 2D [00:58:25]GetLastDocTimeStamp 1729645021 [00:58:25]current date 1729645107 [00:58:25]FM_GetShiftState [00:58:25]SAM_PROTO_GetShiftState [00:58:25]wFMCommunicate request_size=4 [00:58:25]MH_SAM_APDU [00:58:25]CAPDU: 80 13 01 00 [00:58:25]Write to MH i2c: E2 08 00 43 0F 80 13 01 00 00 00 00 00 CF [00:58:25]Write i2c OK [00:58:25]MH_I2C_Read... [00:58:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:25]Read from MH i2c: E2 [00:58:25]MH_I2C_Read... [00:58:25]Read from MH i2c: E2 0E 00 [00:58:25]MH_I2C_Read... [00:58:25]Read from MH i2c: E2 0E 00 43 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 B7 [00:58:25]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:58:25]wFMCommunicate OK [00:58:25]SAM_PROTO_GetShiftState done [00:58:25]FM_GetShiftState done [00:58:25]opened in 1729642525 [00:58:25]opened+sec_in_day 1729728925 [00:58:25]quantity*price = 80056 [00:58:25]sum+1 = 80057 [00:58:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.56 ИТОГО: 800.00 Внесено: 800.00 СДАЧА: 0.00 НСП 1% : 7.08 НДС 12% : 85.01 Наличными: 800.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 10 23.10.2024 00:58 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188552 ФПД: 165291824628769 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005827&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188552&fm=165291824628769&tin=02508201610067®Number=0000000000100030&sum=80000 [00:58:26]StoreToDocumentArchive [00:58:26]shift 462 fd 188552 [00:58:26]save to /storage/0462/doc_00188552 [00:58:26]save last doc name /storage/0462/doc_00188552 to /storage/kkm_last_doc_name [00:58:26]save OK [00:58:26]Clear old archive folders... [00:58:26]ProcessDocumentItem done err = 0, tmpTLVsize=257 [00:58:26]tlvbuf is 008D47E0 [00:58:26]SAM_PROTO_ClearQueue [00:58:26]wFMCommunicate request_size=4 [00:58:26]MH_SAM_APDU [00:58:26]CAPDU: 80 09 00 00 [00:58:26]Write to MH i2c: E2 08 00 50 0F 80 09 00 00 00 00 00 00 D1 [00:58:26]Write i2c OK [00:58:26]MH_I2C_Read... [00:58:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 50 0F 00 90 00 D3 [00:58:27]RAPDU: 90 00 [00:58:27]wFMCommunicate OK [00:58:27]SAM_PROTO_ClearQueue done [00:58:27]KKMCreateOFDPacket [00:58:27]OFDProtocolAddRootSTLVToBuf [00:58:27]FM_MakeSignedData [00:58:27]FM_MakeSignedData [00:58:27]SAM_PROTO_SignData [00:58:27]wFMCommunicate request_size=4 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 0D 01 02 [00:58:27]Write to MH i2c: E2 08 00 51 0F 80 0D 01 02 00 00 00 00 D9 [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 51 0F 00 90 00 D4 [00:58:27]RAPDU: 90 00 [00:58:27]wFMCommunicate OK [00:58:27]wFMCommunicate request_size=255 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 4A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E0 02 [00:58:27]Write to MH i2c: E2 02 01 52 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 4A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E0 02 00 00 02 [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 52 0F 00 90 00 D5 [00:58:27]RAPDU: 90 00 [00:58:27]wFMCommunicate OK [00:58:27]wFMCommunicate request_size=16 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 96 55 00 7D C4 21 [00:58:27]Write to MH i2c: E2 13 00 53 0F 80 0D 02 02 0B 00 00 35 04 06 00 96 55 00 7D C4 21 00 00 7E [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 03 00 53 0F 00 90 00 D6 [00:58:27]RAPDU: 90 00 [00:58:27]wFMCommunicate OK [00:58:27]wFMCommunicate request_size=4 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 0D 03 02 [00:58:27]Write to MH i2c: E2 08 00 54 0F 80 0D 03 02 00 00 00 00 DE [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 0B 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 0B 00 54 0F 00 C6 97 0F 5A 67 16 89 11 90 00 BC [00:58:27]RAPDU: C6 97 0F 5A 67 16 89 11 90 00 [00:58:27]wFMCommunicate OK [00:58:27]SAM_PROTO_SignData done [00:58:27]FM_MakeSignedData done [00:58:27]CreateOFDProtocolMessage [00:58:27]wFMCommunicate request_size=4 [00:58:27]MH_SAM_APDU [00:58:27]CAPDU: 80 11 00 00 [00:58:27]Write to MH i2c: E2 08 00 55 0F 80 11 00 00 00 00 00 00 DE [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:27]Read from MH i2c: E2 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 17 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: E2 17 00 55 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 2C [00:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:58:27]wFMCommunicate OK [00:58:27]CreateOFDProtocolMessage done [00:58:27]OFDSenderStorePacket 188552 [00:58:27]StoreOFDPacket docnum=188552 [00:58:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1C AB 0D 01 56 26 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 4A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E0 02 00 35 04 06 00 96 55 00 7D C4 21 C6 97 0F 5A 67 16 89 11 [00:58:27]CheckFolder [00:58:27]dirname=/storage/ofd_packets [00:58:27]CheckFolder done [00:58:27]ProducePacketName [00:58:27]name=ofd_packets/00188552 [00:58:27]NVStorageSaveData ofd_packets/00188552 [00:58:27]File name is /storage/ofd_packets/00188552 [00:58:27]Write 307 bytes [00:58:27]NVStorageSaveData done [00:58:27]OFDSenderStorePacket done [00:58:27]KKMCreateOFDPacket done [00:58:27]NVStorageSaveData kkm_last_timestamp [00:58:27]File name is /storage/kkm_last_timestamp [00:58:27]Write 4 bytes [00:58:27]NVStorageSaveData done [00:58:27]ExternCall_PrintAddStr [00:58:27]wPrintStart [00:58:27]Write to MH i2c: 01 00 00 56 0F 65 [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: 01 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: 01 07 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: 01 07 00 56 0F 00 00 00 00 00 FF 0F 7A [00:58:27]RasterBufferAndPrint [00:58:27]line Счет N : (1)210611 [00:58:27]line ИНН: 02508201610067 [00:58:27]line Контрольно-Кассовый Чек [00:58:27]line ПРОДАЖА [00:58:27]line ТРК (МРК, ГНК) : 21 [00:58:27]line Товар: 2710194210 [00:58:27]line D-ENERGY ДТ-К-5 [00:58:27]line 10.370 * 77.20 [00:58:27]line = 800.56 [00:58:27]line НДС 12% НСП 1% [00:58:27]line > о реализуемом товаре [00:58:27]line ОКРУГЛЕНИЕ: -0.56 [00:58:27]line ИТОГО: 800.00 [00:58:27]line Внесено: 800.00 [00:58:27]line СДАЧА: 0.00 [00:58:27]line НСП 1% : 7.08 [00:58:27]line НДС 12% : 85.01 [00:58:27]line Наличными: 800.00 [00:58:27]line Безнал.: 0.00 [00:58:27]line Место: АЗС № 86 "Партнер Нефть" [00:58:27]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [00:58:27]line СНО: Общий режим [00:58:27]line Чек 10 23.10.2024 00:58 [00:58:27]line Смена: 462 ФФД: 1.0 [00:58:27]line ЗНМ: 0300000155 [00:58:27]line РНМ: 0000000000100030 [00:58:27]line Версия ККМ: 001 [00:58:27]line ФМ: 0000000000965340 [00:58:27]line ФД: 188552 [00:58:27]line ФПД: 165291824628769 [00:58:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T005827&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188552&fm=165291824628769&tin=02508201610067®Number=0000000000100030&sum=80000 [00:58:27]written 0, free lines is 4095 [00:58:27]OFD Sender: Processing packet 188552 [packets to send 1062, broken 1061] [00:58:27]ProducePacketName [00:58:27]name=ofd_packets/00188552 [00:58:27]OFD Sender: To server: pG, [00:58:27]CommunicateWithHost lk.salyk.kg:30040 [00:58:27]ConnectInit lk.salyk.kg [00:58:27]Connected sock=10 [00:58:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 1C AB 0D 01 56 26 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 82 28 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 B8 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 38 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C4 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 21 00 00 00 00 07 04 06 00 80 38 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 33 4A 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E0 02 00 35 04 06 00 96 55 00 7D C4 21 C6 97 0F 5A 67 16 89 11 [00:58:27]Write to MH i2c: 01 00 00 81 0F 90 [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: 01 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: 01 07 00 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: 01 07 00 81 0F 00 00 00 00 00 52 0C F5 [00:58:27]RasterBufferAndPrint [00:58:27]line [00:58:27]line [00:58:27]line [00:58:27]line [00:58:27]line [00:58:27]written 0, free lines is 3159 [00:58:27]MH_Cut [00:58:27]Write to MH i2c: D1 01 00 88 0F 01 69 [00:58:27]Write i2c OK [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: D1 [00:58:27]MH_I2C_Read... [00:58:27]Read from MH i2c: D1 01 00 [00:58:28]MH_I2C_Read... [00:58:28]Read from MH i2c: D1 01 00 88 0F 00 68 [00:58:28]Write to MH i2c: 01 00 00 89 0F 98 [00:58:28]Write i2c OK [00:58:28]MH_I2C_Read... [00:58:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 04 D7 47 00 CB D6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 88 E0 02 00 F4 03 04 00 1F F4 17 67 B6 04 01 00 00 5D 2A EB C1 8A D7 CE B0 [00:58:28]CommunicateWithHost err = 0 [00:58:28]CheckOFDResponse [00:58:28]1017 (14) - 77093643461234 [00:58:28]1041 (16) - 0000000000965340 [00:58:28]1040 (4) - 188552 [00:58:28]1012 (4) - 22.10.2024 18:51 [00:58:28]1206 (1) - 0 [00:58:28]OFD Sender: Remove packet 188552 [00:58:28]ProducePacketName [00:58:28]name=ofd_packets/00188552 [00:58:28]NVStorageDeleteData [00:58:28]OFD Sender: No OFD packet to send [00:58:29]*** Cut start [00:58:29]*** Partial cut [00:58:29]*** CUTSNS_PIN = 1 [00:58:29]*** CUTSNS_PIN = 0 [00:58:29]*** Brake cut motor [00:58:29]Read from MH i2c: 01 [00:58:29]MH_I2C_Read... [00:58:29]*** Stop cut motor [00:58:29]*** Cut end [00:58:29]Read from MH i2c: 01 07 00 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: 01 07 00 89 0F 00 00 00 00 00 FF 0F AD [00:58:29]process_action close_receipt done [00:58:29]requested_data is exist [00:58:29]produce_requested_data [00:58:29]requested_item fm.sn is exist - process it [00:58:29]wFMCommunicate request_size=4 [00:58:29]MH_SAM_APDU [00:58:29]CAPDU: 80 11 00 00 [00:58:29]Write to MH i2c: E2 08 00 8A 0F 80 11 00 00 00 00 00 00 13 [00:58:29]Write i2c OK [00:58:29]MH_I2C_Read... [00:58:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:58:29]Read from MH i2c: E2 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: E2 17 00 [00:58:29]MH_I2C_Read... [00:58:29]Read from MH i2c: E2 17 00 8A 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 61 [00:58:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [00:58:29]wFMCommunicate OK [00:58:29]requested_item fd.num is exist - process it [00:58:29]SAM_PROTO_GetFieldsCounters [00:58:29]wFMCommunicate request_size=4 [00:58:29]MH_SAM_APDU [00:58:29]CAPDU: 80 13 00 00 [00:58:29]Write to MH i2c: E2 08 00 8B 0F 80 13 00 00 00 00 00 00 16 [00:58:29]Write i2c OK [00:58:29]MH_I2C_Read... [00:58:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:58:30]Read from MH i2c: E2 [00:58:30]MH_I2C_Read... [00:58:30]Read from MH i2c: E2 62 00 [00:58:30]MH_I2C_Read... [00:58:30]Read from MH i2c: E2 62 00 8B 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [00:58:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 88 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0A 00 00 00 5E 04 04 00 0A 00 00 00 57 04 04 00 0B 00 00 00 19 04 04 00 00 00 00 00 90 00 [00:58:30]wFMCommunicate OK [00:58:30]SAM_PROTO_GetFieldsCounters done [00:58:30]requested_item shift.num is exist - process it [00:58:30]requested_item shift.opened is exist - process it [00:58:30]req_shift_opened [00:58:30]FM_GetShiftState [00:58:30]SAM_PROTO_GetShiftState [00:58:30]wFMCommunicate request_size=4 [00:58:30]MH_SAM_APDU [00:58:30]CAPDU: 80 13 01 00 [00:58:30]Write to MH i2c: E2 08 00 8C 0F 80 13 01 00 00 00 00 00 18 [00:58:30]Write i2c OK [00:58:30]MH_I2C_Read... [00:58:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:58:30]Read from MH i2c: E2 [00:58:30]MH_I2C_Read... [00:58:30]Read from MH i2c: E2 0E 00 [00:58:30]MH_I2C_Read... [00:58:30]Read from MH i2c: E2 0E 00 8C 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 00 [00:58:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [00:58:30]wFMCommunicate OK [00:58:30]SAM_PROTO_GetShiftState done [00:58:30]FM_GetShiftState done [00:58:30]req_shift_opened done [00:58:30]requested_item shift.open_date is exist - process it [00:58:30]req_shift_open_date [00:58:30]req_shift_open_date done [00:58:30]produce_requested_data done [00:58:30]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188552,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [00:58:30]process_action_free close_receipt [00:58:30]json_value_free [00:58:30]json_value_free done [00:58:30]process_json_proto returns [00:58:30]Send response to host [00:58:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188552,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [00:58:30]free response buf [00:58:30]execute_script done [00:58:30]execute_script returns [00:58:30]free content buf [00:58:30]Sock 7.Close socket [00:58:30]Sock 7.Thread stoped [00:58:33]OFD Sender: No OFD packet to send [00:58:38]OFD Sender: No OFD packet to send [00:58:43]OFD Sender: No OFD packet to send [00:58:48]OFD Sender: No OFD packet to send [00:58:53]OFD Sender: No OFD packet to send [00:58:58]OFD Sender: No OFD packet to send [00:59:03]OFD Sender: No OFD packet to send [00:59:08]OFD Sender: No OFD packet to send [00:59:13]OFD Sender: No OFD packet to send [00:59:18]OFD Sender: No OFD packet to send [00:59:23]OFD Sender: No OFD packet to send [00:59:28]OFD Sender: No OFD packet to send [00:59:33]OFD Sender: No OFD packet to send [00:59:38]OFD Sender: No OFD packet to send [00:59:43]OFD Sender: No OFD packet to send [00:59:48]OFD Sender: No OFD packet to send [00:59:54]OFD Sender: No OFD packet to send [00:59:59]OFD Sender: No OFD packet to send [01:00:04]OFD Sender: No OFD packet to send [01:00:09]OFD Sender: No OFD packet to send [01:00:14]OFD Sender: No OFD packet to send [01:00:19]OFD Sender: No OFD packet to send [01:00:24]OFD Sender: No OFD packet to send [01:00:29]OFD Sender: No OFD packet to send [01:00:34]OFD Sender: No OFD packet to send [01:00:39]OFD Sender: No OFD packet to send [01:00:44]OFD Sender: No OFD packet to send [01:00:49]OFD Sender: No OFD packet to send [01:00:54]OFD Sender: No OFD packet to send [01:00:59]OFD Sender: No OFD packet to send [01:01:04]OFD Sender: No OFD packet to send [01:01:09]OFD Sender: No OFD packet to send [01:01:14]OFD Sender: No OFD packet to send [01:01:19]OFD Sender: No OFD packet to send [01:01:24]OFD Sender: No OFD packet to send [01:01:29]OFD Sender: No OFD packet to send [01:01:34]OFD Sender: No OFD packet to send [01:01:39]OFD Sender: No OFD packet to send [01:01:44]OFD Sender: No OFD packet to send [01:01:49]OFD Sender: No OFD packet to send [01:01:54]OFD Sender: No OFD packet to send [01:01:59]OFD Sender: No OFD packet to send [01:02:04]OFD Sender: No OFD packet to send [01:02:09]OFD Sender: No OFD packet to send [01:02:14]OFD Sender: No OFD packet to send [01:02:19]OFD Sender: No OFD packet to send [01:02:24]OFD Sender: No OFD packet to send [01:02:29]OFD Sender: No OFD packet to send [01:02:34]OFD Sender: No OFD packet to send [01:02:39]OFD Sender: No OFD packet to send [01:02:44]OFD Sender: No OFD packet to send [01:02:49]OFD Sender: No OFD packet to send [01:02:54]OFD Sender: No OFD packet to send [01:02:59]OFD Sender: No OFD packet to send [01:03:04]OFD Sender: No OFD packet to send [01:03:09]OFD Sender: No OFD packet to send [01:03:14]OFD Sender: No OFD packet to send [01:03:19]OFD Sender: No OFD packet to send [01:03:24]OFD Sender: No OFD packet to send [01:03:29]OFD Sender: No OFD packet to send [01:03:34]OFD Sender: No OFD packet to send [01:03:39]OFD Sender: No OFD packet to send [01:03:45]OFD Sender: No OFD packet to send [01:03:50]OFD Sender: No OFD packet to send [01:03:55]OFD Sender: No OFD packet to send [01:04:00]OFD Sender: No OFD packet to send [01:04:05]OFD Sender: No OFD packet to send [01:04:10]OFD Sender: No OFD packet to send [01:04:15]OFD Sender: No OFD packet to send [01:04:20]OFD Sender: No OFD packet to send [01:04:25]OFD Sender: No OFD packet to send [01:04:30]OFD Sender: No OFD packet to send [01:04:35]OFD Sender: No OFD packet to send [01:04:40]OFD Sender: No OFD packet to send [01:04:45]OFD Sender: No OFD packet to send [01:04:50]OFD Sender: No OFD packet to send [01:04:55]OFD Sender: No OFD packet to send [01:05:00]OFD Sender: No OFD packet to send [01:05:05]OFD Sender: No OFD packet to send [01:05:10]OFD Sender: No OFD packet to send [01:05:15]OFD Sender: No OFD packet to send [01:05:20]OFD Sender: No OFD packet to send [01:05:25]OFD Sender: No OFD packet to send [01:05:30]OFD Sender: No OFD packet to send [01:05:35]OFD Sender: No OFD packet to send [01:05:40]OFD Sender: No OFD packet to send [01:05:45]OFD Sender: No OFD packet to send [01:05:50]OFD Sender: No OFD packet to send [01:05:55]OFD Sender: No OFD packet to send [01:06:00]OFD Sender: No OFD packet to send [01:06:05]OFD Sender: No OFD packet to send [01:06:10]OFD Sender: No OFD packet to send [01:06:15]OFD Sender: No OFD packet to send [01:06:20]OFD Sender: No OFD packet to send [01:06:25]OFD Sender: No OFD packet to send [01:06:30]OFD Sender: No OFD packet to send [01:06:35]OFD Sender: No OFD packet to send [01:06:40]OFD Sender: No OFD packet to send [01:06:45]OFD Sender: No OFD packet to send [01:06:50]OFD Sender: No OFD packet to send [01:06:55]OFD Sender: No OFD packet to send [01:07:00]OFD Sender: No OFD packet to send [01:07:05]OFD Sender: No OFD packet to send [01:07:10]OFD Sender: No OFD packet to send [01:07:15]OFD Sender: No OFD packet to send [01:07:20]OFD Sender: No OFD packet to send [01:07:25]OFD Sender: No OFD packet to send [01:07:31]OFD Sender: No OFD packet to send [01:07:36]OFD Sender: No OFD packet to send [01:07:41]OFD Sender: No OFD packet to send [01:07:46]OFD Sender: No OFD packet to send [01:07:51]OFD Sender: No OFD packet to send [01:07:56]OFD Sender: No OFD packet to send [01:08:01]OFD Sender: No OFD packet to send [01:08:06]OFD Sender: No OFD packet to send [01:08:11]OFD Sender: No OFD packet to send [01:08:16]OFD Sender: No OFD packet to send [01:08:21]OFD Sender: No OFD packet to send [01:08:26]OFD Sender: No OFD packet to send [01:08:31]OFD Sender: No OFD packet to send [01:08:36]OFD Sender: No OFD packet to send [01:08:41]OFD Sender: No OFD packet to send [01:08:46]OFD Sender: No OFD packet to send [01:08:51]OFD Sender: No OFD packet to send [01:08:56]OFD Sender: No OFD packet to send [01:09:01]OFD Sender: No OFD packet to send [01:09:06]OFD Sender: No OFD packet to send [01:09:11]OFD Sender: No OFD packet to send [01:09:16]OFD Sender: No OFD packet to send [01:09:21]OFD Sender: No OFD packet to send [01:09:26]OFD Sender: No OFD packet to send [01:09:31]OFD Sender: No OFD packet to send [01:09:36]OFD Sender: No OFD packet to send [01:09:41]OFD Sender: No OFD packet to send [01:09:46]OFD Sender: No OFD packet to send [01:09:51]OFD Sender: No OFD packet to send [01:09:56]OFD Sender: No OFD packet to send [01:10:01]OFD Sender: No OFD packet to send [01:10:06]OFD Sender: No OFD packet to send [01:10:11]OFD Sender: No OFD packet to send [01:10:16]OFD Sender: No OFD packet to send [01:10:21]OFD Sender: No OFD packet to send [01:10:26]OFD Sender: No OFD packet to send [01:10:31]OFD Sender: No OFD packet to send [01:10:36]OFD Sender: No OFD packet to send [01:10:41]OFD Sender: No OFD packet to send [01:10:46]OFD Sender: No OFD packet to send [01:10:51]OFD Sender: No OFD packet to send [01:10:56]OFD Sender: No OFD packet to send [01:11:00]accept exits with 9 [01:11:00]New connection [01:11:00]New thread 3066506596 created [01:11:00]Thread 3066649956 joined [01:11:00]Waiting for new connection... [01:11:00] Sock 9.Parse request [01:11:00]Sock 9.Check first char [01:11:00]Sock 9.First char is OK [01:11:00]request: POST /json_proto HTTP/1.0 [01:11:00]Method: POST [01:11:00]URL: /json_proto [01:11:00]Method is POST - this is cgi request [01:11:00]url: /json_proto [01:11:00]query_string will be loaded in cgi processing [01:11:00]execute_cgi json_proto POST (null) [01:11:00]execute_cgi path=json_proto method=POST [01:11:00]POST find Content-Length [01:11:00]Host: 172.17.42.131:8080 [01:11:00]Content-Length: 688 [01:11:00]Content-Type: application/json [01:11:00] [01:11:00]POST finish read [01:11:00]Found Content-Length = 688 [01:11:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:11:00]execute_script... [01:11:00]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210612", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 64.770, "sum" : 5000.24, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 5000.00, "payments": [ { "type": 0, "sum" : 5000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:11:00]POST & json_proto [01:11:00]process_json_proto [01:11:00]json parsed OK: [01:11:00]protocol is kg_v1.0 [01:11:00]action value=close_receipt [01:11:00]process_action close_receipt [01:11:00]cmd_close_receipt [01:11:00]MH_GetDate [01:11:00]Write to MH i2c: F0 00 00 8D 0F 8B [01:11:00]Write i2c OK [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: F0 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: F0 09 00 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: F0 09 00 8D 0F 00 26 4D 18 67 A0 18 CA 66 6E [01:11:00]GetLastDocTimeStamp 1729645107 [01:11:00]current date 1729645862 [01:11:00]FM_GetShiftState [01:11:00]SAM_PROTO_GetShiftState [01:11:00]wFMCommunicate request_size=4 [01:11:00]MH_SAM_APDU [01:11:00]CAPDU: 80 13 01 00 [01:11:00]Write to MH i2c: E2 08 00 8E 0F 80 13 01 00 00 00 00 00 1A [01:11:00]Write i2c OK [01:11:00]MH_I2C_Read... [01:11:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:00]Read from MH i2c: E2 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: E2 0E 00 [01:11:00]MH_I2C_Read... [01:11:00]Read from MH i2c: E2 0E 00 8E 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 02 [01:11:00]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:11:00]wFMCommunicate OK [01:11:00]SAM_PROTO_GetShiftState done [01:11:00]FM_GetShiftState done [01:11:00]opened in 1729642525 [01:11:00]opened+sec_in_day 1729728925 [01:11:00]quantity*price = 500024 [01:11:00]sum+1 = 500025 [01:11:00]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.24 ИТОГО: 5000.00 Внесено: 5000.00 СДАЧА: 0.00 НСП 1% : 44.25 НДС 12% : 531.00 Наличными: 5000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 11 23.10.2024 01:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188553 ФПД: 39218210741413 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011102&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188553&fm=39218210741413&tin=02508201610067®Number=0000000000100030&sum=500000 [01:11:01]StoreToDocumentArchive [01:11:01]shift 462 fd 188553 [01:11:01]save to /storage/0462/doc_00188553 [01:11:01]save last doc name /storage/0462/doc_00188553 to /storage/kkm_last_doc_name [01:11:01]save OK [01:11:01]Clear old archive folders... [01:11:01]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:11:01]tlvbuf is 00922BC0 [01:11:01]SAM_PROTO_ClearQueue [01:11:01]wFMCommunicate request_size=4 [01:11:01]MH_SAM_APDU [01:11:01]CAPDU: 80 09 00 00 [01:11:01]Write to MH i2c: E2 08 00 9B 0F 80 09 00 00 00 00 00 00 1C [01:11:01]Write i2c OK [01:11:01]MH_I2C_Read... [01:11:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:01]Read from MH i2c: E2 [01:11:01]MH_I2C_Read... [01:11:01]Read from MH i2c: E2 03 00 [01:11:01]MH_I2C_Read... [01:11:01]Read from MH i2c: E2 03 00 9B 0F 00 90 00 1E [01:11:01]RAPDU: 90 00 [01:11:01]wFMCommunicate OK [01:11:01]SAM_PROTO_ClearQueue done [01:11:01]KKMCreateOFDPacket [01:11:01]OFDProtocolAddRootSTLVToBuf [01:11:01]FM_MakeSignedData [01:11:01]FM_MakeSignedData [01:11:01]SAM_PROTO_SignData [01:11:01]wFMCommunicate request_size=4 [01:11:01]MH_SAM_APDU [01:11:01]CAPDU: 80 0D 01 02 [01:11:01]Write to MH i2c: E2 08 00 9C 0F 80 0D 01 02 00 00 00 00 24 [01:11:01]Write i2c OK [01:11:01]MH_I2C_Read... [01:11:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:01]Read from MH i2c: E2 [01:11:01]MH_I2C_Read... [01:11:01]Read from MH i2c: E2 03 00 [01:11:01]MH_I2C_Read... [01:11:01]Read from MH i2c: E2 03 00 9C 0F 00 90 00 1F [01:11:01]RAPDU: 90 00 [01:11:01]wFMCommunicate OK [01:11:01]wFMCommunicate request_size=255 [01:11:01]MH_SAM_APDU [01:11:01]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E0 02 [01:11:01]Write to MH i2c: E2 02 01 9D 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E0 02 00 00 20 [01:11:01]Write i2c OK [01:11:01]MH_I2C_Read... [01:11:01]OFD Sender: No OFD packet to send [01:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 9D 0F 00 90 00 20 [01:11:02]RAPDU: 90 00 [01:11:02]wFMCommunicate OK [01:11:02]wFMCommunicate request_size=16 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 23 AB 33 85 1C A5 [01:11:02]Write to MH i2c: E2 13 00 9E 0F 80 0D 02 02 0B 00 00 35 04 06 00 23 AB 33 85 1C A5 00 00 C3 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 03 00 9E 0F 00 90 00 21 [01:11:02]RAPDU: 90 00 [01:11:02]wFMCommunicate OK [01:11:02]wFMCommunicate request_size=4 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 0D 03 02 [01:11:02]Write to MH i2c: E2 08 00 9F 0F 80 0D 03 02 00 00 00 00 29 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 0B 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 0B 00 9F 0F 00 ED 80 CA C4 AB E8 F9 31 90 00 E2 [01:11:02]RAPDU: ED 80 CA C4 AB E8 F9 31 90 00 [01:11:02]wFMCommunicate OK [01:11:02]SAM_PROTO_SignData done [01:11:02]FM_MakeSignedData done [01:11:02]CreateOFDProtocolMessage [01:11:02]wFMCommunicate request_size=4 [01:11:02]MH_SAM_APDU [01:11:02]CAPDU: 80 11 00 00 [01:11:02]Write to MH i2c: E2 08 00 A0 0F 80 11 00 00 00 00 00 00 29 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:02]Read from MH i2c: E2 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 17 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: E2 17 00 A0 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 77 [01:11:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:11:02]wFMCommunicate OK [01:11:02]CreateOFDProtocolMessage done [01:11:02]OFDSenderStorePacket 188553 [01:11:02]StoreOFDPacket docnum=188553 [01:11:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 37 10 0D 01 56 74 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E0 02 00 35 04 06 00 23 AB 33 85 1C A5 ED 80 CA C4 AB E8 F9 31 [01:11:02]CheckFolder [01:11:02]dirname=/storage/ofd_packets [01:11:02]CheckFolder done [01:11:02]ProducePacketName [01:11:02]name=ofd_packets/00188553 [01:11:02]NVStorageSaveData ofd_packets/00188553 [01:11:02]File name is /storage/ofd_packets/00188553 [01:11:02]Write 307 bytes [01:11:02]NVStorageSaveData done [01:11:02]OFDSenderStorePacket done [01:11:02]KKMCreateOFDPacket done [01:11:02]NVStorageSaveData kkm_last_timestamp [01:11:02]File name is /storage/kkm_last_timestamp [01:11:02]Write 4 bytes [01:11:02]NVStorageSaveData done [01:11:02]ExternCall_PrintAddStr [01:11:02]wPrintStart [01:11:02]Write to MH i2c: 01 00 00 A1 0F B0 [01:11:02]Write i2c OK [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 07 00 [01:11:02]MH_I2C_Read... [01:11:02]Read from MH i2c: 01 07 00 A1 0F 00 00 00 00 00 FF 0F C5 [01:11:02]RasterBufferAndPrint [01:11:02]line Счет N : (1)210612 [01:11:02]line ИНН: 02508201610067 [01:11:02]line Контрольно-Кассовый Чек [01:11:02]line ПРОДАЖА [01:11:02]line ТРК (МРК, ГНК) : 31 [01:11:02]line Товар: 2710194210 [01:11:02]line D-ENERGY ДТ-К-5 [01:11:02]line 64.770 * 77.20 [01:11:02]line = 5000.24 [01:11:02]line НДС 12% НСП 1% [01:11:02]line > о реализуемом товаре [01:11:02]line ОКРУГЛЕНИЕ: -0.24 [01:11:02]line ИТОГО: 5000.00 [01:11:02]line Внесено: 5000.00 [01:11:02]line СДАЧА: 0.00 [01:11:02]line НСП 1% : 44.25 [01:11:02]line НДС 12% : 531.00 [01:11:02]line Наличными: 5000.00 [01:11:02]line Безнал.: 0.00 [01:11:02]line Место: АЗС № 86 "Партнер Нефть" [01:11:02]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:11:02]line СНО: Общий режим [01:11:02]line Чек 11 23.10.2024 01:11 [01:11:02]line Смена: 462 ФФД: 1.0 [01:11:02]line ЗНМ: 0300000155 [01:11:02]line РНМ: 0000000000100030 [01:11:02]line Версия ККМ: 001 [01:11:02]line ФМ: 0000000000965340 [01:11:02]line ФД: 188553 [01:11:02]line ФПД: 39218210741413 [01:11:02]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011102&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188553&fm=39218210741413&tin=02508201610067®Number=0000000000100030&sum=500000 [01:11:02]OFD Sender: Processing packet 188553 [packets to send 1062, broken 1061] [01:11:02]ProducePacketName [01:11:02]name=ofd_packets/00188553 [01:11:02]OFD Sender: To server: pG, [01:11:02]CommunicateWithHost lk.salyk.kg:30040 [01:11:02]ConnectInit lk.salyk.kg [01:11:02]written 0, free lines is 4095 [01:11:02]Connected sock=10 [01:11:02]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 37 10 0D 01 56 74 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 02 FD 00 00 00 00 00 37 04 06 00 28 1E 00 00 00 00 13 04 06 00 38 A1 07 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 A1 07 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 49 11 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C CF 00 00 00 00 07 04 06 00 20 A1 07 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0B 00 00 00 F4 03 04 00 26 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 89 E0 02 00 35 04 06 00 23 AB 33 85 1C A5 ED 80 CA C4 AB E8 F9 31 [01:11:03]Write to MH i2c: 01 00 00 CC 0F DB [01:11:03]Write i2c OK [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: 01 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: 01 07 00 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: 01 07 00 CC 0F 00 00 00 00 00 45 0C 33 [01:11:03]RasterBufferAndPrint [01:11:03]line [01:11:03]line [01:11:03]line [01:11:03]line [01:11:03]line [01:11:03]written 0, free lines is 3146 [01:11:03]MH_Cut [01:11:03]Write to MH i2c: D1 01 00 D3 0F 01 B4 [01:11:03]Write i2c OK [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: D1 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: D1 01 00 [01:11:03]MH_I2C_Read... [01:11:03]Read from MH i2c: D1 01 00 D3 0F 00 B3 [01:11:03]Write to MH i2c: 01 00 00 D4 0F E3 [01:11:03]Write i2c OK [01:11:03]MH_I2C_Read... [01:11:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 1A EE 47 00 47 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 39 36 35 33 34 30 10 04 04 00 89 E0 02 00 F4 03 04 00 12 F7 17 67 B6 04 01 00 00 B7 51 60 31 67 98 94 69 [01:11:03]CommunicateWithHost err = 0 [01:11:03]CheckOFDResponse [01:11:03]1017 (14) - 77093643461234 [01:11:03]1041 (16) - 0000000000965340 [01:11:03]1040 (4) - 188553 [01:11:03]1012 (4) - 22.10.2024 19:03 [01:11:03]1206 (1) - 0 [01:11:03]OFD Sender: Remove packet 188553 [01:11:03]ProducePacketName [01:11:03]name=ofd_packets/00188553 [01:11:03]NVStorageDeleteData [01:11:03]OFD Sender: No OFD packet to send [01:11:04]*** Cut start [01:11:04]*** Partial cut [01:11:04]*** CUTSNS_PIN = 1 [01:11:04]*** CUTSNS_PIN = 0 [01:11:04]*** Brake cut motor [01:11:05]Read from MH i2c: 01 [01:11:05]MH_I2C_Read... [01:11:05]*** Stop cut motor [01:11:05]*** Cut end [01:11:05]Read from MH i2c: 01 07 00 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: 01 07 00 D4 0F 00 00 00 00 00 FF 0F F8 [01:11:05]process_action close_receipt done [01:11:05]requested_data is exist [01:11:05]produce_requested_data [01:11:05]requested_item fm.sn is exist - process it [01:11:05]wFMCommunicate request_size=4 [01:11:05]MH_SAM_APDU [01:11:05]CAPDU: 80 11 00 00 [01:11:05]Write to MH i2c: E2 08 00 D5 0F 80 11 00 00 00 00 00 00 5E [01:11:05]Write i2c OK [01:11:05]MH_I2C_Read... [01:11:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:05]Read from MH i2c: E2 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: E2 17 00 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: E2 17 00 D5 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 AC [01:11:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:11:05]wFMCommunicate OK [01:11:05]requested_item fd.num is exist - process it [01:11:05]SAM_PROTO_GetFieldsCounters [01:11:05]wFMCommunicate request_size=4 [01:11:05]MH_SAM_APDU [01:11:05]CAPDU: 80 13 00 00 [01:11:05]Write to MH i2c: E2 08 00 D6 0F 80 13 00 00 00 00 00 00 61 [01:11:05]Write i2c OK [01:11:05]MH_I2C_Read... [01:11:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:05]Read from MH i2c: E2 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: E2 62 00 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: E2 62 00 D6 0F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [01:11:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 89 E0 02 00 0E 04 04 00 CE 01 00 00 12 04 04 00 0B 00 00 00 5E 04 04 00 0B 00 00 00 57 04 04 00 0C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:11:05]wFMCommunicate OK [01:11:05]SAM_PROTO_GetFieldsCounters done [01:11:05]requested_item shift.num is exist - process it [01:11:05]requested_item shift.opened is exist - process it [01:11:05]req_shift_opened [01:11:05]FM_GetShiftState [01:11:05]SAM_PROTO_GetShiftState [01:11:05]wFMCommunicate request_size=4 [01:11:05]MH_SAM_APDU [01:11:05]CAPDU: 80 13 01 00 [01:11:05]Write to MH i2c: E2 08 00 D7 0F 80 13 01 00 00 00 00 00 63 [01:11:05]Write i2c OK [01:11:05]MH_I2C_Read... [01:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:05]Read from MH i2c: E2 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: E2 0E 00 [01:11:05]MH_I2C_Read... [01:11:05]Read from MH i2c: E2 0E 00 D7 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4B [01:11:05]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:11:05]wFMCommunicate OK [01:11:05]SAM_PROTO_GetShiftState done [01:11:05]FM_GetShiftState done [01:11:05]req_shift_opened done [01:11:05]requested_item shift.open_date is exist - process it [01:11:05]req_shift_open_date [01:11:05]req_shift_open_date done [01:11:05]produce_requested_data done [01:11:05]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188553,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:11:05]process_action_free close_receipt [01:11:05]json_value_free [01:11:05]json_value_free done [01:11:05]process_json_proto returns [01:11:05]Send response to host [01:11:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188553,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:11:05]free response buf [01:11:05]execute_script done [01:11:05]execute_script returns [01:11:05]free content buf [01:11:05]Sock 9.Close socket [01:11:05]Sock 9.Thread stoped [01:11:08]OFD Sender: No OFD packet to send [01:11:09]accept exits with 7 [01:11:09]New connection [01:11:09]New thread 3066649956 created [01:11:09]Thread 3066506596 joined [01:11:09]Waiting for new connection... [01:11:09] Sock 7.Parse request [01:11:09]Sock 7.Check first char [01:11:09]Sock 7.First char is OK [01:11:09]request: POST /json_proto HTTP/1.0 [01:11:09]Method: POST [01:11:09]URL: /json_proto [01:11:09]Method is POST - this is cgi request [01:11:09]url: /json_proto [01:11:09]query_string will be loaded in cgi processing [01:11:09]execute_cgi json_proto POST (null) [01:11:09]execute_cgi path=json_proto method=POST [01:11:09]POST find Content-Length [01:11:09]Host: 172.17.42.131:8080 [01:11:09]Content-Length: 688 [01:11:09]Content-Type: application/json [01:11:09] [01:11:09]POST finish read [01:11:09]Found Content-Length = 688 [01:11:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [01:11:09]execute_script... [01:11:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [01:11:09]POST & json_proto [01:11:09]process_json_proto [01:11:09]json parsed OK: [01:11:09]protocol is kg_v1.0 [01:11:09]action value=close_receipt [01:11:09]process_action close_receipt [01:11:09]cmd_close_receipt [01:11:09]MH_GetDate [01:11:09]Write to MH i2c: F0 00 00 D8 0F D6 [01:11:09]Write i2c OK [01:11:09]MH_I2C_Read... [01:11:09]Read from MH i2c: F0 [01:11:09]MH_I2C_Read... [01:11:09]Read from MH i2c: F0 09 00 [01:11:09]MH_I2C_Read... [01:11:09]Read from MH i2c: F0 09 00 D8 0F 00 2F 4D 18 67 A0 18 CA 66 C2 [01:11:09]GetLastDocTimeStamp 1729645862 [01:11:09]current date 1729645871 [01:11:09]FM_GetShiftState [01:11:09]SAM_PROTO_GetShiftState [01:11:09]wFMCommunicate request_size=4 [01:11:09]MH_SAM_APDU [01:11:09]CAPDU: 80 13 01 00 [01:11:09]Write to MH i2c: E2 08 00 D9 0F 80 13 01 00 00 00 00 00 65 [01:11:09]Write i2c OK [01:11:09]MH_I2C_Read... [01:11:09]Read from MH i2c: E2 [01:11:09]MH_I2C_Read... [01:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:09]Read from MH i2c: E2 0E 00 [01:11:09]MH_I2C_Read... [01:11:09]Read from MH i2c: E2 0E 00 D9 0F 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 4D [01:11:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:11:09]wFMCommunicate OK [01:11:09]SAM_PROTO_GetShiftState done [01:11:09]FM_GetShiftState done [01:11:09]opened in 1729642525 [01:11:09]opened+sec_in_day 1729728925 [01:11:09]quantity*price = 100051 [01:11:09]sum+1 = 100052 [01:11:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.51 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 12 23.10.2024 01:11 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188554 ФПД: 278297136095133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188554&fm=278297136095133&tin=02508201610067®Number=0000000000100030&sum=100000 [01:11:11]StoreToDocumentArchive [01:11:11]shift 462 fd 188554 [01:11:11]save to /storage/0462/doc_00188554 [01:11:11]save last doc name /storage/0462/doc_00188554 to /storage/kkm_last_doc_name [01:11:11]save OK [01:11:11]Clear old archive folders... [01:11:11]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:11:11]tlvbuf is 009072E0 [01:11:11]SAM_PROTO_ClearQueue [01:11:11]wFMCommunicate request_size=4 [01:11:11]MH_SAM_APDU [01:11:11]CAPDU: 80 09 00 00 [01:11:11]Write to MH i2c: E2 08 00 E6 0F 80 09 00 00 00 00 00 00 67 [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:11:11]Read from MH i2c: E2 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 E6 0F 00 90 00 69 [01:11:11]RAPDU: 90 00 [01:11:11]wFMCommunicate OK [01:11:11]SAM_PROTO_ClearQueue done [01:11:11]KKMCreateOFDPacket [01:11:11]OFDProtocolAddRootSTLVToBuf [01:11:11]FM_MakeSignedData [01:11:11]FM_MakeSignedData [01:11:11]SAM_PROTO_SignData [01:11:11]wFMCommunicate request_size=4 [01:11:11]MH_SAM_APDU [01:11:11]CAPDU: 80 0D 01 02 [01:11:11]Write to MH i2c: E2 08 00 E7 0F 80 0D 01 02 00 00 00 00 6F [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:11:11]Read from MH i2c: E2 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 E7 0F 00 90 00 6A [01:11:11]RAPDU: 90 00 [01:11:11]wFMCommunicate OK [01:11:11]wFMCommunicate request_size=255 [01:11:11]MH_SAM_APDU [01:11:11]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 0C 00 00 00 F4 03 04 00 2F 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E0 02 [01:11:11]Write to MH i2c: E2 02 01 E8 0F 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 0C 00 00 00 F4 03 04 00 2F 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E0 02 00 00 0E [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:11]Read from MH i2c: E2 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 E8 0F 00 90 00 6B [01:11:11]RAPDU: 90 00 [01:11:11]wFMCommunicate OK [01:11:11]wFMCommunicate request_size=16 [01:11:11]MH_SAM_APDU [01:11:11]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 FD 1C 19 F0 5F 9D [01:11:11]Write to MH i2c: E2 13 00 E9 0F 80 0D 02 02 0B 00 00 35 04 06 00 FD 1C 19 F0 5F 9D 00 00 E5 [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:11:11]Read from MH i2c: E2 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 03 00 E9 0F 00 90 00 6C [01:11:11]RAPDU: 90 00 [01:11:11]wFMCommunicate OK [01:11:11]wFMCommunicate request_size=4 [01:11:11]MH_SAM_APDU [01:11:11]CAPDU: 80 0D 03 02 [01:11:11]Write to MH i2c: E2 08 00 EA 0F 80 0D 03 02 00 00 00 00 74 [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:11:11]Read from MH i2c: E2 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 0B 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 0B 00 EA 0F 00 68 7C FE 9E A3 BC C8 E1 90 00 FD [01:11:11]RAPDU: 68 7C FE 9E A3 BC C8 E1 90 00 [01:11:11]wFMCommunicate OK [01:11:11]SAM_PROTO_SignData done [01:11:11]FM_MakeSignedData done [01:11:11]CreateOFDProtocolMessage [01:11:11]wFMCommunicate request_size=4 [01:11:11]MH_SAM_APDU [01:11:11]CAPDU: 80 11 00 00 [01:11:11]Write to MH i2c: E2 08 00 EB 0F 80 11 00 00 00 00 00 00 74 [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:11]Read from MH i2c: E2 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 17 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: E2 17 00 EB 0F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 C2 [01:11:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:11:11]wFMCommunicate OK [01:11:11]CreateOFDProtocolMessage done [01:11:11]OFDSenderStorePacket 188554 [01:11:11]StoreOFDPacket docnum=188554 [01:11:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 56 CF 0D 01 A1 C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 0C 00 00 00 F4 03 04 00 2F 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E0 02 00 35 04 06 00 FD 1C 19 F0 5F 9D 68 7C FE 9E A3 BC C8 E1 [01:11:11]CheckFolder [01:11:11]dirname=/storage/ofd_packets [01:11:11]CheckFolder done [01:11:11]ProducePacketName [01:11:11]name=ofd_packets/00188554 [01:11:11]NVStorageSaveData ofd_packets/00188554 [01:11:11]File name is /storage/ofd_packets/00188554 [01:11:11]Write 307 bytes [01:11:11]NVStorageSaveData done [01:11:11]OFDSenderStorePacket done [01:11:11]KKMCreateOFDPacket done [01:11:11]NVStorageSaveData kkm_last_timestamp [01:11:11]File name is /storage/kkm_last_timestamp [01:11:11]Write 4 bytes [01:11:11]NVStorageSaveData done [01:11:11]ExternCall_PrintAddStr [01:11:11]wPrintStart [01:11:11]Write to MH i2c: 01 00 00 EC 0F FB [01:11:11]Write i2c OK [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: 01 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: 01 07 00 [01:11:11]MH_I2C_Read... [01:11:11]Read from MH i2c: 01 07 00 EC 0F 00 00 00 00 00 FF 0F 10 [01:11:11]RasterBufferAndPrint [01:11:11]line Счет N : (1)210613 [01:11:11]line ИНН: 02508201610067 [01:11:11]line Контрольно-Кассовый Чек [01:11:11]line ПРОДАЖА [01:11:11]line ТРК (МРК, ГНК) : 11 [01:11:11]line Товар: 2710194210 [01:11:11]line D-ENERGY ДТ-К-5 [01:11:11]line 12.960 * 77.20 [01:11:11]line = 1000.51 [01:11:11]line НДС 12% НСП 1% [01:11:11]line > о реализуемом товаре [01:11:11]line ОКРУГЛЕНИЕ: -0.51 [01:11:11]line ИТОГО: 1000.00 [01:11:11]line Внесено: 1000.00 [01:11:11]line СДАЧА: 0.00 [01:11:11]line НСП 1% : 8.85 [01:11:11]line НДС 12% : 106.25 [01:11:11]line Наличными: 1000.00 [01:11:11]line Безнал.: 0.00 [01:11:11]line Место: АЗС № 86 "Партнер Нефть" [01:11:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:11:11]line СНО: Общий режим [01:11:11]line Чек 12 23.10.2024 01:11 [01:11:11]line Смена: 462 ФФД: 1.0 [01:11:11]line ЗНМ: 0300000155 [01:11:11]line РНМ: 0000000000100030 [01:11:11]line Версия ККМ: 001 [01:11:11]line ФМ: 0000000000965340 [01:11:11]line ФД: 188554 [01:11:11]line ФПД: 278297136095133 [01:11:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T011111&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188554&fm=278297136095133&tin=02508201610067®Number=0000000000100030&sum=100000 [01:11:11]written 0, free lines is 4095 [01:11:11]OFD Sender: Processing packet 188554 [packets to send 1062, broken 1061] [01:11:11]ProducePacketName [01:11:11]name=ofd_packets/00188554 [01:11:11]OFD Sender: To server: pG, [01:11:11]CommunicateWithHost lk.salyk.kg:30040 [01:11:11]ConnectInit lk.salyk.kg [01:11:11]Connected sock=10 [01:11:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 56 CF 0D 01 A1 C9 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 0C 00 00 00 F4 03 04 00 2F 4D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8A E0 02 00 35 04 06 00 FD 1C 19 F0 5F 9D 68 7C FE 9E A3 BC C8 E1 [01:11:12]Write to MH i2c: 01 00 00 17 10 27 [01:11:12]Write i2c OK [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: 01 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: 01 07 00 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: 01 07 00 17 10 00 00 00 00 00 49 0C 83 [01:11:12]RasterBufferAndPrint [01:11:12]line [01:11:12]line [01:11:12]line [01:11:12]line [01:11:12]line [01:11:12]written 0, free lines is 3152 [01:11:12]MH_Cut [01:11:12]Write to MH i2c: D1 01 00 1E 10 01 00 [01:11:12]Write i2c OK [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: D1 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: D1 01 00 [01:11:12]MH_I2C_Read... [01:11:12]Read from MH i2c: D1 01 00 1E 10 00 FF [01:11:12]Write to MH i2c: 01 00 00 1F 10 2F [01:11:12]Write i2c OK [01:11:12]MH_I2C_Read... [01:11:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 2D 98 47 00 05 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 39 36 35 33 34 30 10 04 04 00 8A E0 02 00 F4 03 04 00 1B F7 17 67 B6 04 01 00 00 A8 68 19 E1 39 32 75 16 [01:11:12]CommunicateWithHost err = 0 [01:11:12]CheckOFDResponse [01:11:12]1017 (14) - 77093643461234 [01:11:12]1041 (16) - 0000000000965340 [01:11:12]1040 (4) - 188554 [01:11:12]1012 (4) - 22.10.2024 19:03 [01:11:12]1206 (1) - 0 [01:11:12]OFD Sender: Remove packet 188554 [01:11:12]ProducePacketName [01:11:12]name=ofd_packets/00188554 [01:11:12]NVStorageDeleteData [01:11:12]OFD Sender: No OFD packet to send [01:11:13]*** Cut start [01:11:13]*** Partial cut [01:11:13]*** CUTSNS_PIN = 1 [01:11:13]*** CUTSNS_PIN = 0 [01:11:13]*** Brake cut motor [01:11:14]Read from MH i2c: 01 [01:11:14]MH_I2C_Read... [01:11:14]*** Stop cut motor [01:11:14]*** Cut end [01:11:14]Read from MH i2c: 01 07 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: 01 07 00 1F 10 00 00 00 00 00 FF 0F 44 [01:11:14]process_action close_receipt done [01:11:14]requested_data is exist [01:11:14]produce_requested_data [01:11:14]requested_item fm.sn is exist - process it [01:11:14]wFMCommunicate request_size=4 [01:11:14]MH_SAM_APDU [01:11:14]CAPDU: 80 11 00 00 [01:11:14]Write to MH i2c: E2 08 00 20 10 80 11 00 00 00 00 00 00 AA [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:11:14]Read from MH i2c: E2 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 17 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 17 00 20 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 F8 [01:11:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:11:14]wFMCommunicate OK [01:11:14]requested_item fd.num is exist - process it [01:11:14]SAM_PROTO_GetFieldsCounters [01:11:14]wFMCommunicate request_size=4 [01:11:14]MH_SAM_APDU [01:11:14]CAPDU: 80 13 00 00 [01:11:14]Write to MH i2c: E2 08 00 21 10 80 13 00 00 00 00 00 00 AD [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:11:14]Read from MH i2c: E2 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 62 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 62 00 21 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A E0 02 00 0E 04 04 00 CE 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 13 [01:11:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8A E0 02 00 0E 04 04 00 CE 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 [01:11:14]wFMCommunicate OK [01:11:14]SAM_PROTO_GetFieldsCounters done [01:11:14]requested_item shift.num is exist - process it [01:11:14]requested_item shift.opened is exist - process it [01:11:14]req_shift_opened [01:11:14]FM_GetShiftState [01:11:14]SAM_PROTO_GetShiftState [01:11:14]wFMCommunicate request_size=4 [01:11:14]MH_SAM_APDU [01:11:14]CAPDU: 80 13 01 00 [01:11:14]Write to MH i2c: E2 08 00 22 10 80 13 01 00 00 00 00 00 AF [01:11:14]Write i2c OK [01:11:14]MH_I2C_Read... [01:11:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:11:14]Read from MH i2c: E2 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 0E 00 [01:11:14]MH_I2C_Read... [01:11:14]Read from MH i2c: E2 0E 00 22 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 97 [01:11:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:11:14]wFMCommunicate OK [01:11:14]SAM_PROTO_GetShiftState done [01:11:14]FM_GetShiftState done [01:11:14]req_shift_opened done [01:11:14]requested_item shift.open_date is exist - process it [01:11:14]req_shift_open_date [01:11:14]req_shift_open_date done [01:11:14]produce_requested_data done [01:11:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188554,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:11:14]process_action_free close_receipt [01:11:14]json_value_free [01:11:14]json_value_free done [01:11:14]process_json_proto returns [01:11:14]Send response to host [01:11:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188554,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:11:14]free response buf [01:11:14]execute_script done [01:11:14]execute_script returns [01:11:14]free content buf [01:11:14]Sock 7.Close socket [01:11:14]Sock 7.Thread stoped [01:11:17]OFD Sender: No OFD packet to send [01:11:22]OFD Sender: No OFD packet to send [01:11:27]OFD Sender: No OFD packet to send [01:11:32]OFD Sender: No OFD packet to send [01:11:37]OFD Sender: No OFD packet to send [01:11:42]OFD Sender: No OFD packet to send [01:11:47]OFD Sender: No OFD packet to send [01:11:52]OFD Sender: No OFD packet to send [01:11:57]OFD Sender: No OFD packet to send [01:12:03]OFD Sender: No OFD packet to send [01:12:08]OFD Sender: No OFD packet to send [01:12:13]OFD Sender: No OFD packet to send [01:12:18]OFD Sender: No OFD packet to send [01:12:23]OFD Sender: No OFD packet to send [01:12:28]OFD Sender: No OFD packet to send [01:12:33]OFD Sender: No OFD packet to send [01:12:38]OFD Sender: No OFD packet to send [01:12:43]OFD Sender: No OFD packet to send [01:12:48]OFD Sender: No OFD packet to send [01:12:53]OFD Sender: No OFD packet to send [01:12:58]OFD Sender: No OFD packet to send [01:13:03]OFD Sender: No OFD packet to send [01:13:08]OFD Sender: No OFD packet to send [01:13:13]OFD Sender: No OFD packet to send [01:13:18]OFD Sender: No OFD packet to send [01:13:23]OFD Sender: No OFD packet to send [01:13:28]OFD Sender: No OFD packet to send [01:13:33]OFD Sender: No OFD packet to send [01:13:38]OFD Sender: No OFD packet to send [01:13:43]OFD Sender: No OFD packet to send [01:13:48]OFD Sender: No OFD packet to send [01:13:53]OFD Sender: No OFD packet to send [01:13:58]OFD Sender: No OFD packet to send [01:14:03]OFD Sender: No OFD packet to send [01:14:08]OFD Sender: No OFD packet to send [01:14:13]OFD Sender: No OFD packet to send [01:14:18]OFD Sender: No OFD packet to send [01:14:23]OFD Sender: No OFD packet to send [01:14:28]OFD Sender: No OFD packet to send [01:14:33]OFD Sender: No OFD packet to send [01:14:38]OFD Sender: No OFD packet to send [01:14:43]OFD Sender: No OFD packet to send [01:14:48]OFD Sender: No OFD packet to send [01:14:53]OFD Sender: No OFD packet to send [01:14:58]OFD Sender: No OFD packet to send [01:15:03]OFD Sender: No OFD packet to send [01:15:08]OFD Sender: No OFD packet to send [01:15:13]OFD Sender: No OFD packet to send [01:15:18]OFD Sender: No OFD packet to send [01:15:23]OFD Sender: No OFD packet to send [01:15:28]OFD Sender: No OFD packet to send [01:15:33]OFD Sender: No OFD packet to send [01:15:38]OFD Sender: No OFD packet to send [01:15:43]OFD Sender: No OFD packet to send [01:15:48]OFD Sender: No OFD packet to send [01:15:54]OFD Sender: No OFD packet to send [01:15:59]OFD Sender: No OFD packet to send [01:16:04]OFD Sender: No OFD packet to send [01:16:09]OFD Sender: No OFD packet to send [01:16:14]OFD Sender: No OFD packet to send [01:16:19]OFD Sender: No OFD packet to send [01:16:24]OFD Sender: No OFD packet to send [01:16:29]OFD Sender: No OFD packet to send [01:16:34]OFD Sender: No OFD packet to send [01:16:39]OFD Sender: No OFD packet to send [01:16:44]OFD Sender: No OFD packet to send [01:16:49]OFD Sender: No OFD packet to send [01:16:54]OFD Sender: No OFD packet to send [01:16:59]OFD Sender: No OFD packet to send [01:17:04]OFD Sender: No OFD packet to send [01:17:09]OFD Sender: No OFD packet to send [01:17:14]OFD Sender: No OFD packet to send [01:17:19]OFD Sender: No OFD packet to send [01:17:24]OFD Sender: No OFD packet to send [01:17:29]OFD Sender: No OFD packet to send [01:17:34]OFD Sender: No OFD packet to send [01:17:39]OFD Sender: No OFD packet to send [01:17:44]OFD Sender: No OFD packet to send [01:17:49]OFD Sender: No OFD packet to send [01:17:54]OFD Sender: No OFD packet to send [01:17:59]OFD Sender: No OFD packet to send [01:18:04]OFD Sender: No OFD packet to send [01:18:09]OFD Sender: No OFD packet to send [01:18:14]OFD Sender: No OFD packet to send [01:18:19]OFD Sender: No OFD packet to send [01:18:24]OFD Sender: No OFD packet to send [01:18:29]OFD Sender: No OFD packet to send [01:18:34]OFD Sender: No OFD packet to send [01:18:39]OFD Sender: No OFD packet to send [01:18:44]OFD Sender: No OFD packet to send [01:18:49]OFD Sender: No OFD packet to send [01:18:54]OFD Sender: No OFD packet to send [01:18:59]OFD Sender: No OFD packet to send [01:19:04]OFD Sender: No OFD packet to send [01:19:09]OFD Sender: No OFD packet to send [01:19:14]OFD Sender: No OFD packet to send [01:19:19]OFD Sender: No OFD packet to send [01:19:24]OFD Sender: No OFD packet to send [01:19:29]OFD Sender: No OFD packet to send [01:19:34]OFD Sender: No OFD packet to send [01:19:39]OFD Sender: No OFD packet to send [01:19:45]OFD Sender: No OFD packet to send [01:19:50]OFD Sender: No OFD packet to send [01:19:55]OFD Sender: No OFD packet to send [01:20:00]OFD Sender: No OFD packet to send [01:20:05]OFD Sender: No OFD packet to send [01:20:10]OFD Sender: No OFD packet to send [01:20:15]OFD Sender: No OFD packet to send [01:20:20]OFD Sender: No OFD packet to send [01:20:25]OFD Sender: No OFD packet to send [01:20:30]OFD Sender: No OFD packet to send [01:20:35]OFD Sender: No OFD packet to send [01:20:37]accept exits with 9 [01:20:37]New connection [01:20:37]New thread 3066506596 created [01:20:37]Thread 3066649956 joined [01:20:37]Waiting for new connection... [01:20:37] Sock 9.Parse request [01:20:37]Sock 9.Check first char [01:20:37]Sock 9.First char is OK [01:20:37]request: POST /json_proto HTTP/1.0 [01:20:37]Method: POST [01:20:37]URL: /json_proto [01:20:37]Method is POST - this is cgi request [01:20:37]url: /json_proto [01:20:37]query_string will be loaded in cgi processing [01:20:37]execute_cgi json_proto POST (null) [01:20:37]execute_cgi path=json_proto method=POST [01:20:37]POST find Content-Length [01:20:37]Host: 172.17.42.131:8080 [01:20:37]Content-Length: 803 [01:20:37]Content-Type: application/json [01:20:37] [01:20:37]POST finish read [01:20:37]Found Content-Length = 803 [01:20:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:37]execute_script... [01:20: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)210614", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 19.440, "sum" : 1300.54, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1300.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:37]POST & json_proto [01:20:37]process_json_proto [01:20:37]json parsed OK: [01:20:37]protocol is kg_v1.0 [01:20:37]action value=close_receipt [01:20:37]process_action close_receipt [01:20:37]cmd_close_receipt [01:20:37]MH_GetDate [01:20:37]Write to MH i2c: F0 00 00 23 10 22 [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: F0 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: F0 09 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: F0 09 00 23 10 00 66 4F 18 67 A0 18 CA 66 47 [01:20:37]GetLastDocTimeStamp 1729645871 [01:20:37]current date 1729646438 [01:20:37]FM_GetShiftState [01:20:37]SAM_PROTO_GetShiftState [01:20:37]wFMCommunicate request_size=4 [01:20:37]MH_SAM_APDU [01:20:37]CAPDU: 80 13 01 00 [01:20:37]Write to MH i2c: E2 08 00 24 10 80 13 01 00 00 00 00 00 B1 [01:20:37]Write i2c OK [01:20:37]MH_I2C_Read... [01:20:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:37]Read from MH i2c: E2 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: E2 0E 00 [01:20:37]MH_I2C_Read... [01:20:37]Read from MH i2c: E2 0E 00 24 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 99 [01:20:37]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:20:37]wFMCommunicate OK [01:20:37]SAM_PROTO_GetShiftState done [01:20:37]FM_GetShiftState done [01:20:37]opened in 1729642525 [01:20:37]opened+sec_in_day 1729728925 [01:20:37]quantity*price = 130053 [01:20:37]sum+1 = 130055 [01:20:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1300.54 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 0.00 Безнал.: 1300.54 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 13 23.10.2024 01:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000965340 ФД: 188555 ФПД: 261076859908794 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188555&fm=261076859908794&tin=02508201610067®Number=0000000000100030&sum=130054 [01:20:38]StoreToDocumentArchive [01:20:38]shift 462 fd 188555 [01:20:38]save to /storage/0462/doc_00188555 [01:20:38]save last doc name /storage/0462/doc_00188555 to /storage/kkm_last_doc_name [01:20:38]save OK [01:20:38]Clear old archive folders... [01:20:38]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:20:38]tlvbuf is 0090CA50 [01:20:38]SAM_PROTO_ClearQueue [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 09 00 00 [01:20:38]Write to MH i2c: E2 08 00 31 10 80 09 00 00 00 00 00 00 B3 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 31 10 00 90 00 B5 [01:20:38]RAPDU: 90 00 [01:20:38]wFMCommunicate OK [01:20:38]SAM_PROTO_ClearQueue done [01:20:38]KKMCreateOFDPacket [01:20:38]OFDProtocolAddRootSTLVToBuf [01:20:38]FM_MakeSignedData [01:20:38]FM_MakeSignedData [01:20:38]SAM_PROTO_SignData [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 0D 01 02 [01:20:38]Write to MH i2c: E2 08 00 32 10 80 0D 01 02 00 00 00 00 BB [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 32 10 00 90 00 B6 [01:20:38]RAPDU: 90 00 [01:20:38]wFMCommunicate OK [01:20:38]wFMCommunicate request_size=255 [01:20:38]MH_SAM_APDU [01:20: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 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 67 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E0 02 00 35 04 06 00 ED [01:20:38]Write to MH i2c: E2 02 01 33 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 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 67 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E0 02 00 35 04 06 00 ED 00 00 3F [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 33 10 00 90 00 B7 [01:20:38]RAPDU: 90 00 [01:20:38]wFMCommunicate OK [01:20:38]wFMCommunicate request_size=10 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 0D 02 02 05 72 B1 7E 72 BA [01:20:38]Write to MH i2c: E2 0D 00 34 10 80 0D 02 02 05 00 72 B1 7E 72 BA 00 00 95 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 03 00 34 10 00 90 00 B8 [01:20:38]RAPDU: 90 00 [01:20:38]wFMCommunicate OK [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 0D 03 02 [01:20:38]Write to MH i2c: E2 08 00 35 10 80 0D 03 02 00 00 00 00 C0 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 0B 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 0B 00 35 10 00 C9 9A 98 C7 20 D4 63 82 90 00 5C [01:20:39]RAPDU: C9 9A 98 C7 20 D4 63 82 90 00 [01:20:39]wFMCommunicate OK [01:20:39]SAM_PROTO_SignData done [01:20:39]FM_MakeSignedData done [01:20:39]CreateOFDProtocolMessage [01:20:39]wFMCommunicate request_size=4 [01:20:39]MH_SAM_APDU [01:20:39]CAPDU: 80 11 00 00 [01:20:39]Write to MH i2c: E2 08 00 36 10 80 11 00 00 00 00 00 00 C0 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:39]Read from MH i2c: E2 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 17 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: E2 17 00 36 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 0E [01:20:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:20:39]wFMCommunicate OK [01:20:39]CreateOFDProtocolMessage done [01:20:39]OFDSenderStorePacket 188555 [01:20:39]StoreOFDPacket docnum=188555 [01:20:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1B F4 07 01 33 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 67 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E0 02 00 35 04 06 00 ED 72 B1 7E 72 BA C9 9A 98 C7 20 D4 63 82 [01:20:39]CheckFolder [01:20:39]dirname=/storage/ofd_packets [01:20:39]CheckFolder done [01:20:39]ProducePacketName [01:20:39]name=ofd_packets/00188555 [01:20:39]NVStorageSaveData ofd_packets/00188555 [01:20:39]File name is /storage/ofd_packets/00188555 [01:20:39]Write 301 bytes [01:20:39]NVStorageSaveData done [01:20:39]OFDSenderStorePacket done [01:20:39]KKMCreateOFDPacket done [01:20:39]NVStorageSaveData kkm_last_timestamp [01:20:39]File name is /storage/kkm_last_timestamp [01:20:39]Write 4 bytes [01:20:39]NVStorageSaveData done [01:20:39]ExternCall_PrintAddStr [01:20:39]wPrintStart [01:20:39]Write to MH i2c: 01 00 00 37 10 47 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 07 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 07 00 37 10 00 00 00 00 00 FF 0F 5C [01:20:39]RasterBufferAndPrint [01:20:39]line Счет N : (1)210614 [01:20:39]line ИНН: 02508201610067 [01:20:39]line Контрольно-Кассовый Чек [01:20:39]line ПРОДАЖА [01:20:39]line ТРК (МРК, ГНК) : 42 [01:20:39]line Товар: 2710124130 [01:20:39]line Аи-92-К-3 [01:20:39]line 19.440 * 66.90 [01:20:39]line = 1300.54 [01:20:39]line НДС 12% НСП 1% [01:20:39]line > о реализуемом товаре [01:20:39]line ИТОГО: 1300.54 [01:20:39]line НСП 1% : 11.51 [01:20:39]line НДС 12% : 138.11 [01:20:39]line Наличными: 0.00 [01:20:39]line Безнал.: 1300.54 [01:20:39]line Место: АЗС № 86 "Партнер Нефть" [01:20:39]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:20:39]line СНО: Общий режим [01:20:39]line Чек 13 23.10.2024 01:20 [01:20:39]line Смена: 462 ФФД: 1.0 [01:20:39]line ЗНМ: 0300000155 [01:20:39]line РНМ: 0000000000100030 [01:20:39]line Версия ККМ: 001 [01:20:39]line Платежная система: O! деньги [01:20:39]line ФМ: 0000000000965340 [01:20:39]line ФД: 188555 [01:20:39]line ФПД: 261076859908794 [01:20:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012039&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188555&fm=261076859908794&tin=02508201610067®Number=0000000000100030&sum=130054 [01:20:39]written 0, free lines is 4095 [01:20:39]OFD Sender: Processing packet 188555 [packets to send 1062, broken 1061] [01:20:39]ProducePacketName [01:20:39]name=ofd_packets/00188555 [01:20:39]OFD Sender: To server: pG, [01:20:39]CommunicateWithHost lk.salyk.kg:30040 [01:20:39]ConnectInit lk.salyk.kg [01:20:39]Connected sock=10 [01:20:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 1B F4 07 01 33 17 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 F0 4B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 06 FC 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 06 FC 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 35 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 06 FC 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 67 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E0 02 00 35 04 06 00 ED 72 B1 7E 72 BA C9 9A 98 C7 20 D4 63 82 [01:20:39]Write to MH i2c: 01 00 00 61 10 71 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 07 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: 01 07 00 61 10 00 00 00 00 00 5E 0C E2 [01:20:39]RasterBufferAndPrint [01:20:39]line [01:20:39]line [01:20:39]line [01:20:39]line [01:20:39]line [01:20:39]written 0, free lines is 3171 [01:20:39]MH_Cut [01:20:39]Write to MH i2c: D1 01 00 68 10 01 4A [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: D1 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: D1 01 00 [01:20:39]MH_I2C_Read... [01:20:39]Read from MH i2c: D1 01 00 68 10 00 49 [01:20:39]Write to MH i2c: 01 00 00 69 10 79 [01:20:39]Write i2c OK [01:20:39]MH_I2C_Read... [01:20:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 33 6B 47 00 CA 72 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8B E0 02 00 F4 03 04 00 52 F9 17 67 B6 04 01 00 00 84 B5 5F 08 90 97 07 2A [01:20:39]CommunicateWithHost err = 0 [01:20:39]CheckOFDResponse [01:20:39]1017 (14) - 77093643461234 [01:20:39]1041 (16) - 0000000000965340 [01:20:39]1040 (4) - 188555 [01:20:39]1012 (4) - 22.10.2024 19:13 [01:20:39]1206 (1) - 0 [01:20:39]OFD Sender: Remove packet 188555 [01:20:39]ProducePacketName [01:20:39]name=ofd_packets/00188555 [01:20:39]NVStorageDeleteData [01:20:40]OFD Sender: No OFD packet to send [01:20:40]*** Cut start [01:20:40]*** Partial cut [01:20:40]*** CUTSNS_PIN = 1 [01:20:40]*** CUTSNS_PIN = 0 [01:20:41]*** Brake cut motor [01:20:41]Read from MH i2c: 01 [01:20:41]MH_I2C_Read... [01:20:41]*** Stop cut motor [01:20:41]*** Cut end [01:20:41]Read from MH i2c: 01 07 00 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: 01 07 00 69 10 00 00 00 00 00 FF 0F 8E [01:20:41]process_action close_receipt done [01:20:41]requested_data is exist [01:20:41]produce_requested_data [01:20:41]requested_item fm.sn is exist - process it [01:20:41]wFMCommunicate request_size=4 [01:20:41]MH_SAM_APDU [01:20:41]CAPDU: 80 11 00 00 [01:20:41]Write to MH i2c: E2 08 00 6A 10 80 11 00 00 00 00 00 00 F4 [01:20:41]Write i2c OK [01:20:41]MH_I2C_Read... [01:20:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:41]Read from MH i2c: E2 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: E2 17 00 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: E2 17 00 6A 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 42 [01:20:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:20:41]wFMCommunicate OK [01:20:41]requested_item fd.num is exist - process it [01:20:41]SAM_PROTO_GetFieldsCounters [01:20:41]wFMCommunicate request_size=4 [01:20:41]MH_SAM_APDU [01:20:41]CAPDU: 80 13 00 00 [01:20:41]Write to MH i2c: E2 08 00 6B 10 80 13 00 00 00 00 00 00 F7 [01:20:41]Write i2c OK [01:20:41]MH_I2C_Read... [01:20:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:41]Read from MH i2c: E2 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: E2 62 00 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: E2 62 00 6B 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B E0 02 00 0E 04 04 00 CE 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 61 [01:20:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8B E0 02 00 0E 04 04 00 CE 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 [01:20:41]wFMCommunicate OK [01:20:41]SAM_PROTO_GetFieldsCounters done [01:20:41]requested_item shift.num is exist - process it [01:20:41]requested_item shift.opened is exist - process it [01:20:41]req_shift_opened [01:20:41]FM_GetShiftState [01:20:41]SAM_PROTO_GetShiftState [01:20:41]wFMCommunicate request_size=4 [01:20:41]MH_SAM_APDU [01:20:41]CAPDU: 80 13 01 00 [01:20:41]Write to MH i2c: E2 08 00 6C 10 80 13 01 00 00 00 00 00 F9 [01:20:41]Write i2c OK [01:20:41]MH_I2C_Read... [01:20:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:41]Read from MH i2c: E2 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: E2 0E 00 [01:20:41]MH_I2C_Read... [01:20:41]Read from MH i2c: E2 0E 00 6C 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E1 [01:20:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:20:41]wFMCommunicate OK [01:20:41]SAM_PROTO_GetShiftState done [01:20:41]FM_GetShiftState done [01:20:41]req_shift_opened done [01:20:41]requested_item shift.open_date is exist - process it [01:20:41]req_shift_open_date [01:20:41]req_shift_open_date done [01:20:41]produce_requested_data done [01:20:41]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188555,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:20:41]process_action_free close_receipt [01:20:41]json_value_free [01:20:41]json_value_free done [01:20:41]process_json_proto returns [01:20:41]Send response to host [01:20:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188555,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:20:41]free response buf [01:20:41]execute_script done [01:20:41]execute_script returns [01:20:41]free content buf [01:20:41]Sock 9.Close socket [01:20:41]Sock 9.Thread stoped [01:20:45]OFD Sender: No OFD packet to send [01:20:50]OFD Sender: No OFD packet to send [01:20:55]OFD Sender: No OFD packet to send [01:21:00]OFD Sender: No OFD packet to send [01:21:05]OFD Sender: No OFD packet to send [01:21:10]OFD Sender: No OFD packet to send [01:21:15]OFD Sender: No OFD packet to send [01:21:20]OFD Sender: No OFD packet to send [01:21:25]OFD Sender: No OFD packet to send [01:21:30]OFD Sender: No OFD packet to send [01:21:35]OFD Sender: No OFD packet to send [01:21:40]OFD Sender: No OFD packet to send [01:21:45]OFD Sender: No OFD packet to send [01:21:50]OFD Sender: No OFD packet to send [01:21:55]OFD Sender: No OFD packet to send [01:22:00]OFD Sender: No OFD packet to send [01:22:05]OFD Sender: No OFD packet to send [01:22:10]OFD Sender: No OFD packet to send [01:22:15]OFD Sender: No OFD packet to send [01:22:20]OFD Sender: No OFD packet to send [01:22:25]OFD Sender: No OFD packet to send [01:22:30]OFD Sender: No OFD packet to send [01:22:35]OFD Sender: No OFD packet to send [01:22:40]OFD Sender: No OFD packet to send [01:22:41]accept exits with 7 [01:22:41]New connection [01:22:41]New thread 3066649956 created [01:22:41]Thread 3066506596 joined [01:22:41]Waiting for new connection... [01:22:41] Sock 7.Parse request [01:22:41]Sock 7.Check first char [01:22:41]Sock 7.First char is OK [01:22:41]request: POST /json_proto HTTP/1.0 [01:22:41]Method: POST [01:22:41]URL: /json_proto [01:22:41]Method is POST - this is cgi request [01:22:41]url: /json_proto [01:22:41]query_string will be loaded in cgi processing [01:22:41]execute_cgi json_proto POST (null) [01:22:41]execute_cgi path=json_proto method=POST [01:22:41]POST find Content-Length [01:22:41]Host: 172.17.42.131:8080 [01:22:41]Content-Length: 682 [01:22:41]Content-Type: application/json [01:22:41] [01:22:41]POST finish read [01:22:41]Found Content-Length = 682 [01:22:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:41]execute_script... [01:22: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)210615", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:22:41]POST & json_proto [01:22:41]process_json_proto [01:22:41]json parsed OK: [01:22:41]protocol is kg_v1.0 [01:22:41]action value=close_receipt [01:22:41]process_action close_receipt [01:22:41]cmd_close_receipt [01:22:41]MH_GetDate [01:22:41]Write to MH i2c: F0 00 00 6D 10 6C [01:22:41]Write i2c OK [01:22:41]MH_I2C_Read... [01:22:41]Read from MH i2c: F0 [01:22:41]MH_I2C_Read... [01:22:41]Read from MH i2c: F0 09 00 [01:22:41]MH_I2C_Read... [01:22:41]Read from MH i2c: F0 09 00 6D 10 00 E3 4F 18 67 A0 18 CA 66 0E [01:22:41]GetLastDocTimeStamp 1729646439 [01:22:41]current date 1729646563 [01:22:41]FM_GetShiftState [01:22:41]SAM_PROTO_GetShiftState [01:22:41]wFMCommunicate request_size=4 [01:22:41]MH_SAM_APDU [01:22:41]CAPDU: 80 13 01 00 [01:22:41]Write to MH i2c: E2 08 00 6E 10 80 13 01 00 00 00 00 00 FB [01:22:41]Write i2c OK [01:22:41]MH_I2C_Read... [01:22:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:41]Read from MH i2c: E2 [01:22:41]MH_I2C_Read... [01:22:41]Read from MH i2c: E2 0E 00 [01:22:41]MH_I2C_Read... [01:22:41]Read from MH i2c: E2 0E 00 6E 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 E3 [01:22:41]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:22:41]wFMCommunicate OK [01:22:41]SAM_PROTO_GetShiftState done [01:22:41]FM_GetShiftState done [01:22:41]opened in 1729642525 [01:22:41]opened+sec_in_day 1729728925 [01:22:41]quantity*price = 100015 [01:22:41]sum+1 = 100017 [01:22:41]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 14 23.10.2024 01:22 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188556 ФПД: 57219241421144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012243&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188556&fm=57219241421144&tin=02508201610067®Number=0000000000100030&sum=100000 [01:22:42]StoreToDocumentArchive [01:22:42]shift 462 fd 188556 [01:22:42]save to /storage/0462/doc_00188556 [01:22:42]save last doc name /storage/0462/doc_00188556 to /storage/kkm_last_doc_name [01:22:42]save OK [01:22:42]Clear old archive folders... [01:22:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:22:42]tlvbuf is 008E4A80 [01:22:42]SAM_PROTO_ClearQueue [01:22:42]wFMCommunicate request_size=4 [01:22:42]MH_SAM_APDU [01:22:42]CAPDU: 80 09 00 00 [01:22:42]Write to MH i2c: E2 08 00 7B 10 80 09 00 00 00 00 00 00 FD [01:22:42]Write i2c OK [01:22:42]MH_I2C_Read... [01:22:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:22:42]Read from MH i2c: E2 [01:22:42]MH_I2C_Read... [01:22:42]Read from MH i2c: E2 03 00 [01:22:42]MH_I2C_Read... [01:22:42]Read from MH i2c: E2 03 00 7B 10 00 90 00 FF [01:22:42]RAPDU: 90 00 [01:22:42]wFMCommunicate OK [01:22:42]SAM_PROTO_ClearQueue done [01:22:42]KKMCreateOFDPacket [01:22:42]OFDProtocolAddRootSTLVToBuf [01:22:42]FM_MakeSignedData [01:22:42]FM_MakeSignedData [01:22:42]SAM_PROTO_SignData [01:22:42]wFMCommunicate request_size=4 [01:22:42]MH_SAM_APDU [01:22:42]CAPDU: 80 0D 01 02 [01:22:42]Write to MH i2c: E2 08 00 7C 10 80 0D 01 02 00 00 00 00 05 [01:22:42]Write i2c OK [01:22:42]MH_I2C_Read... [01:22:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:22:42]Read from MH i2c: E2 [01:22:42]MH_I2C_Read... [01:22:42]Read from MH i2c: E2 03 00 [01:22:42]MH_I2C_Read... [01:22:42]Read from MH i2c: E2 03 00 7C 10 00 90 00 00 [01:22:42]RAPDU: 90 00 [01:22:42]wFMCommunicate OK [01:22:42]wFMCommunicate request_size=255 [01:22:42]MH_SAM_APDU [01:22:42]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E3 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E0 02 00 35 04 06 00 34 [01:22:42]Write to MH i2c: E2 02 01 7D 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E3 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E0 02 00 35 04 06 00 34 00 00 A2 [01:22:42]Write i2c OK [01:22:42]MH_I2C_Read... [01:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:43]Read from MH i2c: E2 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 03 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 03 00 7D 10 00 90 00 01 [01:22:43]RAPDU: 90 00 [01:22:43]wFMCommunicate OK [01:22:43]wFMCommunicate request_size=10 [01:22:43]MH_SAM_APDU [01:22:43]CAPDU: 80 0D 02 02 05 0A 64 8F 29 58 [01:22:43]Write to MH i2c: E2 0D 00 7E 10 80 0D 02 02 05 00 0A 64 8F 29 58 00 00 90 [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:22:43]Read from MH i2c: E2 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 03 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 03 00 7E 10 00 90 00 02 [01:22:43]RAPDU: 90 00 [01:22:43]wFMCommunicate OK [01:22:43]wFMCommunicate request_size=4 [01:22:43]MH_SAM_APDU [01:22:43]CAPDU: 80 0D 03 02 [01:22:43]Write to MH i2c: E2 08 00 7F 10 80 0D 03 02 00 00 00 00 0A [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:22:43]Read from MH i2c: E2 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 0B 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 0B 00 7F 10 00 E4 02 FD 29 23 8B 0E 3B 90 00 0E [01:22:43]RAPDU: E4 02 FD 29 23 8B 0E 3B 90 00 [01:22:43]wFMCommunicate OK [01:22:43]SAM_PROTO_SignData done [01:22:43]FM_MakeSignedData done [01:22:43]CreateOFDProtocolMessage [01:22:43]wFMCommunicate request_size=4 [01:22:43]MH_SAM_APDU [01:22:43]CAPDU: 80 11 00 00 [01:22:43]Write to MH i2c: E2 08 00 80 10 80 11 00 00 00 00 00 00 0A [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:43]Read from MH i2c: E2 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 17 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: E2 17 00 80 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 58 [01:22:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:22:43]wFMCommunicate OK [01:22:43]CreateOFDProtocolMessage done [01:22:43]OFDSenderStorePacket 188556 [01:22:43]StoreOFDPacket docnum=188556 [01:22:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E6 FF 07 01 0B 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E3 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E0 02 00 35 04 06 00 34 0A 64 8F 29 58 E4 02 FD 29 23 8B 0E 3B [01:22:43]CheckFolder [01:22:43]dirname=/storage/ofd_packets [01:22:43]CheckFolder done [01:22:43]ProducePacketName [01:22:43]name=ofd_packets/00188556 [01:22:43]NVStorageSaveData ofd_packets/00188556 [01:22:43]File name is /storage/ofd_packets/00188556 [01:22:43]Write 301 bytes [01:22:43]NVStorageSaveData done [01:22:43]OFDSenderStorePacket done [01:22:43]KKMCreateOFDPacket done [01:22:43]NVStorageSaveData kkm_last_timestamp [01:22:43]File name is /storage/kkm_last_timestamp [01:22:43]Write 4 bytes [01:22:43]NVStorageSaveData done [01:22:43]ExternCall_PrintAddStr [01:22:43]wPrintStart [01:22:43]Write to MH i2c: 01 00 00 81 10 91 [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 07 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 07 00 81 10 00 00 00 00 00 FF 0F A6 [01:22:43]RasterBufferAndPrint [01:22:43]line Счет N : (1)210615 [01:22:43]line ИНН: 02508201610067 [01:22:43]line Контрольно-Кассовый Чек [01:22:43]line ПРОДАЖА [01:22:43]line ТРК (МРК, ГНК) : 12 [01:22:43]line Товар: 2710124130 [01:22:43]line Аи-92-К-3 [01:22:43]line 14.950 * 66.90 [01:22:43]line = 1000.16 [01:22:43]line НДС 12% НСП 1% [01:22:43]line > о реализуемом товаре [01:22:43]line ОКРУГЛЕНИЕ: -0.16 [01:22:43]line ИТОГО: 1000.00 [01:22:43]line Внесено: 1000.00 [01:22:43]line СДАЧА: 0.00 [01:22:43]line НСП 1% : 8.85 [01:22:43]line НДС 12% : 106.21 [01:22:43]line Наличными: 1000.00 [01:22:43]line Безнал.: 0.00 [01:22:43]line Место: АЗС № 86 "Партнер Нефть" [01:22:43]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:22:43]line СНО: Общий режим [01:22:43]line Чек 14 23.10.2024 01:22 [01:22:43]line Смена: 462 ФФД: 1.0 [01:22:43]line ЗНМ: 0300000155 [01:22:43]line РНМ: 0000000000100030 [01:22:43]line Версия ККМ: 001 [01:22:43]line ФМ: 0000000000965340 [01:22:43]line ФД: 188556 [01:22:43]line ФПД: 57219241421144 [01:22:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012243&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188556&fm=57219241421144&tin=02508201610067®Number=0000000000100030&sum=100000 [01:22:43]written 0, free lines is 4095 [01:22:43]OFD Sender: Processing packet 188556 [packets to send 1062, broken 1061] [01:22:43]ProducePacketName [01:22:43]name=ofd_packets/00188556 [01:22:43]OFD Sender: To server: pG, [01:22:43]CommunicateWithHost lk.salyk.kg:30040 [01:22:43]ConnectInit lk.salyk.kg [01:22:43]Connected sock=10 [01:22:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 E6 FF 07 01 0B 67 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 E3 4F 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E0 02 00 35 04 06 00 34 0A 64 8F 29 58 E4 02 FD 29 23 8B 0E 3B [01:22:43]Write to MH i2c: 01 00 00 AC 10 BC [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 07 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: 01 07 00 AC 10 00 00 00 00 00 48 0C 17 [01:22:43]RasterBufferAndPrint [01:22:43]line [01:22:43]line [01:22:43]line [01:22:43]line [01:22:43]line [01:22:43]written 0, free lines is 3149 [01:22:43]MH_Cut [01:22:43]Write to MH i2c: D1 01 00 B3 10 01 95 [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: D1 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: D1 01 00 [01:22:43]MH_I2C_Read... [01:22:43]Read from MH i2c: D1 01 00 B3 10 00 94 [01:22:43]Write to MH i2c: 01 00 00 B4 10 C4 [01:22:43]Write i2c OK [01:22:43]MH_I2C_Read... [01:22:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 37 30 47 00 34 A1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8C E0 02 00 F4 03 04 00 CF F9 17 67 B6 04 01 00 00 78 CF CB AF 62 63 B4 EF [01:22:43]CommunicateWithHost err = 0 [01:22:43]CheckOFDResponse [01:22:43]1017 (14) - 77093643461234 [01:22:43]1041 (16) - 0000000000965340 [01:22:43]1040 (4) - 188556 [01:22:43]1012 (4) - 22.10.2024 19:15 [01:22:43]1206 (1) - 0 [01:22:43]OFD Sender: Remove packet 188556 [01:22:43]ProducePacketName [01:22:43]name=ofd_packets/00188556 [01:22:43]NVStorageDeleteData [01:22:44]OFD Sender: No OFD packet to send [01:22:45]*** Cut start [01:22:45]*** Partial cut [01:22:45]*** CUTSNS_PIN = 1 [01:22:45]*** CUTSNS_PIN = 0 [01:22:45]*** Brake cut motor [01:22:45]Read from MH i2c: 01 [01:22:45]MH_I2C_Read... [01:22:45]*** Stop cut motor [01:22:45]*** Cut end [01:22:45]Read from MH i2c: 01 07 00 [01:22:45]MH_I2C_Read... [01:22:45]Read from MH i2c: 01 07 00 B4 10 00 00 00 00 00 FF 0F D9 [01:22:45]process_action close_receipt done [01:22:45]requested_data is exist [01:22:45]produce_requested_data [01:22:45]requested_item fm.sn is exist - process it [01:22:45]wFMCommunicate request_size=4 [01:22:45]MH_SAM_APDU [01:22:45]CAPDU: 80 11 00 00 [01:22:45]Write to MH i2c: E2 08 00 B5 10 80 11 00 00 00 00 00 00 3F [01:22:45]Write i2c OK [01:22:45]MH_I2C_Read... [01:22:45]Read from MH i2c: E2 [01:22:45]MH_I2C_Read... [01:22:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:22:45]Read from MH i2c: E2 17 00 [01:22:45]MH_I2C_Read... [01:22:45]Read from MH i2c: E2 17 00 B5 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 8D [01:22:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:22:45]wFMCommunicate OK [01:22:45]requested_item fd.num is exist - process it [01:22:45]SAM_PROTO_GetFieldsCounters [01:22:45]wFMCommunicate request_size=4 [01:22:45]MH_SAM_APDU [01:22:45]CAPDU: 80 13 00 00 [01:22:45]Write to MH i2c: E2 08 00 B6 10 80 13 00 00 00 00 00 00 42 [01:22:45]Write i2c OK [01:22:45]MH_I2C_Read... [01:22:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:22:46]Read from MH i2c: E2 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: E2 62 00 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: E2 62 00 B6 10 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C E0 02 00 0E 04 04 00 CE 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 B0 [01:22:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8C E0 02 00 0E 04 04 00 CE 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 [01:22:46]wFMCommunicate OK [01:22:46]SAM_PROTO_GetFieldsCounters done [01:22:46]requested_item shift.num is exist - process it [01:22:46]requested_item shift.opened is exist - process it [01:22:46]req_shift_opened [01:22:46]FM_GetShiftState [01:22:46]SAM_PROTO_GetShiftState [01:22:46]wFMCommunicate request_size=4 [01:22:46]MH_SAM_APDU [01:22:46]CAPDU: 80 13 01 00 [01:22:46]Write to MH i2c: E2 08 00 B7 10 80 13 01 00 00 00 00 00 44 [01:22:46]Write i2c OK [01:22:46]MH_I2C_Read... [01:22:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:22:46]Read from MH i2c: E2 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: E2 0E 00 [01:22:46]MH_I2C_Read... [01:22:46]Read from MH i2c: E2 0E 00 B7 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2C [01:22:46]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:22:46]wFMCommunicate OK [01:22:46]SAM_PROTO_GetShiftState done [01:22:46]FM_GetShiftState done [01:22:46]req_shift_opened done [01:22:46]requested_item shift.open_date is exist - process it [01:22:46]req_shift_open_date [01:22:46]req_shift_open_date done [01:22:46]produce_requested_data done [01:22:46]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188556,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:22:46]process_action_free close_receipt [01:22:46]json_value_free [01:22:46]json_value_free done [01:22:46]process_json_proto returns [01:22:46]Send response to host [01:22:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188556,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:22:46]free response buf [01:22:46]execute_script done [01:22:46]execute_script returns [01:22:46]free content buf [01:22:46]Sock 7.Close socket [01:22:46]Sock 7.Thread stoped [01:22:49]OFD Sender: No OFD packet to send [01:22:54]OFD Sender: No OFD packet to send [01:22:59]OFD Sender: No OFD packet to send [01:23:04]OFD Sender: No OFD packet to send [01:23:09]OFD Sender: No OFD packet to send [01:23:14]OFD Sender: No OFD packet to send [01:23:19]OFD Sender: No OFD packet to send [01:23:24]OFD Sender: No OFD packet to send [01:23:29]OFD Sender: No OFD packet to send [01:23:34]OFD Sender: No OFD packet to send [01:23:39]OFD Sender: No OFD packet to send [01:23:44]OFD Sender: No OFD packet to send [01:23:49]OFD Sender: No OFD packet to send [01:23:54]OFD Sender: No OFD packet to send [01:23:59]OFD Sender: No OFD packet to send [01:24:04]accept exits with 9 [01:24:04]New connection [01:24:04]New thread 3066506596 created [01:24:04]Thread 3066649956 joined [01:24:04]Waiting for new connection... [01:24:04] Sock 9.Parse request [01:24:04]Sock 9.Check first char [01:24:04]Sock 9.First char is OK [01:24:04]request: POST /json_proto HTTP/1.0 [01:24:04]Method: POST [01:24:04]URL: /json_proto [01:24:04]Method is POST - this is cgi request [01:24:04]url: /json_proto [01:24:04]query_string will be loaded in cgi processing [01:24:04]execute_cgi json_proto POST (null) [01:24:04]execute_cgi path=json_proto method=POST [01:24:04]POST find Content-Length [01:24:04]Host: 172.17.42.131:8080 [01:24:04]Content-Length: 682 [01:24:04]Content-Type: application/json [01:24:04] [01:24:04]POST finish read [01:24:04]Found Content-Length = 682 [01:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:04]execute_script... [01: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)210616", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 22", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2000.00, "total" : 2000.00, "payments": [ { "type": 0, "sum" : 2000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:04]POST & json_proto [01:24:04]process_json_proto [01:24:04]json parsed OK: [01:24:04]protocol is kg_v1.0 [01:24:04]action value=close_receipt [01:24:04]process_action close_receipt [01:24:04]cmd_close_receipt [01:24:04]MH_GetDate [01:24:04]Write to MH i2c: F0 00 00 B8 10 B7 [01:24:04]Write i2c OK [01:24:04]MH_I2C_Read... [01:24:04]Read from MH i2c: F0 [01:24:04]MH_I2C_Read... [01:24:04]Read from MH i2c: F0 09 00 [01:24:04]MH_I2C_Read... [01:24:04]Read from MH i2c: F0 09 00 B8 10 00 36 50 18 67 A0 18 CA 66 AD [01:24:04]GetLastDocTimeStamp 1729646563 [01:24:04]current date 1729646646 [01:24:04]FM_GetShiftState [01:24:04]SAM_PROTO_GetShiftState [01:24:04]wFMCommunicate request_size=4 [01:24:04]MH_SAM_APDU [01:24:04]CAPDU: 80 13 01 00 [01:24:04]Write to MH i2c: E2 08 00 B9 10 80 13 01 00 00 00 00 00 46 [01:24:04]Write i2c OK [01:24:04]MH_I2C_Read... [01:24:04]OFD Sender: No OFD packet to send [01:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:04]Read from MH i2c: E2 [01:24:04]MH_I2C_Read... [01:24:04]Read from MH i2c: E2 0E 00 [01:24:04]MH_I2C_Read... [01:24:04]Read from MH i2c: E2 0E 00 B9 10 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 2E [01:24:04]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:24:04]wFMCommunicate OK [01:24:04]SAM_PROTO_GetShiftState done [01:24:04]FM_GetShiftState done [01:24:04]opened in 1729642525 [01:24:04]opened+sec_in_day 1729728925 [01:24:04]quantity*price = 200031 [01:24:04]sum+1 = 200032 [01:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 15 23.10.2024 01:24 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188557 ФПД: 156832144974561 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012406&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188557&fm=156832144974561&tin=02508201610067®Number=0000000000100030&sum=200000 [01:24:05]StoreToDocumentArchive [01:24:05]shift 462 fd 188557 [01:24:05]save to /storage/0462/doc_00188557 [01:24:05]save last doc name /storage/0462/doc_00188557 to /storage/kkm_last_doc_name [01:24:05]save OK [01:24:05]Clear old archive folders... [01:24:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:24:06]tlvbuf is 00938400 [01:24:06]SAM_PROTO_ClearQueue [01:24:06]wFMCommunicate request_size=4 [01:24:06]MH_SAM_APDU [01:24:06]CAPDU: 80 09 00 00 [01:24:06]Write to MH i2c: E2 08 00 C6 10 80 09 00 00 00 00 00 00 48 [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:06]Read from MH i2c: E2 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 C6 10 00 90 00 4A [01:24:06]RAPDU: 90 00 [01:24:06]wFMCommunicate OK [01:24:06]SAM_PROTO_ClearQueue done [01:24:06]KKMCreateOFDPacket [01:24:06]OFDProtocolAddRootSTLVToBuf [01:24:06]FM_MakeSignedData [01:24:06]FM_MakeSignedData [01:24:06]SAM_PROTO_SignData [01:24:06]wFMCommunicate request_size=4 [01:24:06]MH_SAM_APDU [01:24:06]CAPDU: 80 0D 01 02 [01:24:06]Write to MH i2c: E2 08 00 C7 10 80 0D 01 02 00 00 00 00 50 [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:06]Read from MH i2c: E2 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 C7 10 00 90 00 4B [01:24:06]RAPDU: 90 00 [01:24:06]wFMCommunicate OK [01:24:06]wFMCommunicate request_size=255 [01:24:06]MH_SAM_APDU [01:24:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 0F 00 00 00 F4 03 04 00 36 50 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E0 02 00 35 04 06 00 8E [01:24:06]Write to MH i2c: E2 02 01 C8 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 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 0F 00 00 00 F4 03 04 00 36 50 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E0 02 00 35 04 06 00 8E 00 00 E5 [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:06]Read from MH i2c: E2 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 C8 10 00 90 00 4C [01:24:06]RAPDU: 90 00 [01:24:06]wFMCommunicate OK [01:24:06]wFMCommunicate request_size=10 [01:24:06]MH_SAM_APDU [01:24:06]CAPDU: 80 0D 02 02 05 A3 54 4A 62 E1 [01:24:06]Write to MH i2c: E2 0D 00 C9 10 80 0D 02 02 05 00 A3 54 4A 62 E1 00 00 E1 [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:06]Read from MH i2c: E2 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 03 00 C9 10 00 90 00 4D [01:24:06]RAPDU: 90 00 [01:24:06]wFMCommunicate OK [01:24:06]wFMCommunicate request_size=4 [01:24:06]MH_SAM_APDU [01:24:06]CAPDU: 80 0D 03 02 [01:24:06]Write to MH i2c: E2 08 00 CA 10 80 0D 03 02 00 00 00 00 55 [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:06]Read from MH i2c: E2 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 0B 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 0B 00 CA 10 00 51 0B FE 00 95 42 25 E0 90 00 8C [01:24:06]RAPDU: 51 0B FE 00 95 42 25 E0 90 00 [01:24:06]wFMCommunicate OK [01:24:06]SAM_PROTO_SignData done [01:24:06]FM_MakeSignedData done [01:24:06]CreateOFDProtocolMessage [01:24:06]wFMCommunicate request_size=4 [01:24:06]MH_SAM_APDU [01:24:06]CAPDU: 80 11 00 00 [01:24:06]Write to MH i2c: E2 08 00 CB 10 80 11 00 00 00 00 00 00 55 [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:06]Read from MH i2c: E2 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 17 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: E2 17 00 CB 10 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 A3 [01:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:24:06]wFMCommunicate OK [01:24:06]CreateOFDProtocolMessage done [01:24:06]OFDSenderStorePacket 188557 [01:24:06]StoreOFDPacket docnum=188557 [01:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 F9 07 01 01 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 0F 00 00 00 F4 03 04 00 36 50 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E0 02 00 35 04 06 00 8E A3 54 4A 62 E1 51 0B FE 00 95 42 25 E0 [01:24:06]CheckFolder [01:24:06]dirname=/storage/ofd_packets [01:24:06]CheckFolder done [01:24:06]ProducePacketName [01:24:06]name=ofd_packets/00188557 [01:24:06]NVStorageSaveData ofd_packets/00188557 [01:24:06]File name is /storage/ofd_packets/00188557 [01:24:06]Write 301 bytes [01:24:06]NVStorageSaveData done [01:24:06]OFDSenderStorePacket done [01:24:06]KKMCreateOFDPacket done [01:24:06]NVStorageSaveData kkm_last_timestamp [01:24:06]File name is /storage/kkm_last_timestamp [01:24:06]Write 4 bytes [01:24:06]NVStorageSaveData done [01:24:06]ExternCall_PrintAddStr [01:24:06]wPrintStart [01:24:06]Write to MH i2c: 01 00 00 CC 10 DC [01:24:06]Write i2c OK [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: 01 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: 01 07 00 [01:24:06]MH_I2C_Read... [01:24:06]Read from MH i2c: 01 07 00 CC 10 00 00 00 00 00 FF 0F F1 [01:24:06]RasterBufferAndPrint [01:24:06]line Счет N : (1)210616 [01:24:06]line ИНН: 02508201610067 [01:24:06]line Контрольно-Кассовый Чек [01:24:06]line ПРОДАЖА [01:24:06]line ТРК (МРК, ГНК) : 22 [01:24:06]line Товар: 2710124130 [01:24:06]line Аи-92-К-3 [01:24:06]line 29.900 * 66.90 [01:24:06]line = 2000.31 [01:24:06]line НДС 12% НСП 1% [01:24:06]line > о реализуемом товаре [01:24:06]line ОКРУГЛЕНИЕ: -0.31 [01:24:06]line ИТОГО: 2000.00 [01:24:06]line Внесено: 2000.00 [01:24:06]line СДАЧА: 0.00 [01:24:06]line НСП 1% : 17.70 [01:24:06]line НДС 12% : 212.42 [01:24:06]line Наличными: 2000.00 [01:24:06]line Безнал.: 0.00 [01:24:06]line Место: АЗС № 86 "Партнер Нефть" [01:24:06]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:24:06]line СНО: Общий режим [01:24:06]line Чек 15 23.10.2024 01:24 [01:24:06]line Смена: 462 ФФД: 1.0 [01:24:06]line ЗНМ: 0300000155 [01:24:06]line РНМ: 0000000000100030 [01:24:06]line Версия ККМ: 001 [01:24:06]line ФМ: 0000000000965340 [01:24:06]line ФД: 188557 [01:24:06]line ФПД: 156832144974561 [01:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T012406&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188557&fm=156832144974561&tin=02508201610067®Number=0000000000100030&sum=200000 [01:24:06]written 0, free lines is 4095 [01:24:06]OFD Sender: Processing packet 188557 [packets to send 1062, broken 1061] [01:24:06]ProducePacketName [01:24:06]name=ofd_packets/00188557 [01:24:06]OFD Sender: To server: pG, [01:24:06]CommunicateWithHost lk.salyk.kg:30040 [01:24:06]ConnectInit lk.salyk.kg [01:24:06]Connected sock=10 [01:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 62 F9 07 01 01 33 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 CC 74 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5F 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 0F 00 00 00 F4 03 04 00 36 50 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8D E0 02 00 35 04 06 00 8E A3 54 4A 62 E1 51 0B FE 00 95 42 25 E0 [01:24:07]Write to MH i2c: 01 00 00 F7 10 07 [01:24:07]Write i2c OK [01:24:07]MH_I2C_Read... [01:24:07]Read from MH i2c: 01 [01:24:07]MH_I2C_Read... [01:24:07]Read from MH i2c: 01 07 00 [01:24:07]MH_I2C_Read... [01:24:07]Read from MH i2c: 01 07 00 F7 10 00 00 00 00 00 4C 0C 66 [01:24:07]RasterBufferAndPrint [01:24:07]line [01:24:07]line [01:24:07]line [01:24:07]line [01:24:07]line [01:24:07]written 0, free lines is 3152 [01:24:07]MH_Cut [01:24:07]Write to MH i2c: D1 01 00 FE 10 01 E0 [01:24:07]Write i2c OK [01:24:07]MH_I2C_Read... [01:24:07]Read from MH i2c: D1 [01:24:07]MH_I2C_Read... [01:24:07]Read from MH i2c: D1 01 00 [01:24:07]MH_I2C_Read... [01:24:07]Read from MH i2c: D1 01 00 FE 10 00 DF [01:24:07]Write to MH i2c: 01 00 00 FF 10 0F [01:24:07]Write i2c OK [01:24:07]MH_I2C_Read... [01:24:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 CD 84 47 00 CB 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 39 36 35 33 34 30 10 04 04 00 8D E0 02 00 F4 03 04 00 22 FA 17 67 B6 04 01 00 00 12 08 DD 3B 22 5A 00 68 [01:24:07]CommunicateWithHost err = 0 [01:24:07]CheckOFDResponse [01:24:07]1017 (14) - 77093643461234 [01:24:07]1041 (16) - 0000000000965340 [01:24:07]1040 (4) - 188557 [01:24:07]1012 (4) - 22.10.2024 19:16 [01:24:07]1206 (1) - 0 [01:24:07]OFD Sender: Remove packet 188557 [01:24:07]ProducePacketName [01:24:07]name=ofd_packets/00188557 [01:24:07]NVStorageDeleteData [01:24:07]OFD Sender: No OFD packet to send [01:24:08]*** Cut start [01:24:08]*** Partial cut [01:24:08]*** CUTSNS_PIN = 1 [01:24:08]*** CUTSNS_PIN = 0 [01:24:08]*** Brake cut motor [01:24:08]Read from MH i2c: 01 [01:24:08]MH_I2C_Read... [01:24:08]*** Stop cut motor [01:24:08]*** Cut end [01:24:08]Read from MH i2c: 01 07 00 [01:24:08]MH_I2C_Read... [01:24:08]Read from MH i2c: 01 07 00 FF 10 00 00 00 00 00 FF 0F 24 [01:24:08]process_action close_receipt done [01:24:08]requested_data is exist [01:24:08]produce_requested_data [01:24:08]requested_item fm.sn is exist - process it [01:24:08]wFMCommunicate request_size=4 [01:24:08]MH_SAM_APDU [01:24:08]CAPDU: 80 11 00 00 [01:24:08]Write to MH i2c: E2 08 00 00 11 80 11 00 00 00 00 00 00 8B [01:24:08]Write i2c OK [01:24:08]MH_I2C_Read... [01:24:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:09]Read from MH i2c: E2 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 17 00 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 17 00 00 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D9 [01:24:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:24:09]wFMCommunicate OK [01:24:09]requested_item fd.num is exist - process it [01:24:09]SAM_PROTO_GetFieldsCounters [01:24:09]wFMCommunicate request_size=4 [01:24:09]MH_SAM_APDU [01:24:09]CAPDU: 80 13 00 00 [01:24:09]Write to MH i2c: E2 08 00 01 11 80 13 00 00 00 00 00 00 8E [01:24:09]Write i2c OK [01:24:09]MH_I2C_Read... [01:24:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:09]Read from MH i2c: E2 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 62 00 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 62 00 01 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D E0 02 00 0E 04 04 00 CE 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 00 [01:24:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8D E0 02 00 0E 04 04 00 CE 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 [01:24:09]wFMCommunicate OK [01:24:09]SAM_PROTO_GetFieldsCounters done [01:24:09]requested_item shift.num is exist - process it [01:24:09]requested_item shift.opened is exist - process it [01:24:09]req_shift_opened [01:24:09]FM_GetShiftState [01:24:09]SAM_PROTO_GetShiftState [01:24:09]wFMCommunicate request_size=4 [01:24:09]MH_SAM_APDU [01:24:09]CAPDU: 80 13 01 00 [01:24:09]Write to MH i2c: E2 08 00 02 11 80 13 01 00 00 00 00 00 90 [01:24:09]Write i2c OK [01:24:09]MH_I2C_Read... [01:24:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:09]Read from MH i2c: E2 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 0E 00 [01:24:09]MH_I2C_Read... [01:24:09]Read from MH i2c: E2 0E 00 02 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 78 [01:24:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:24:09]wFMCommunicate OK [01:24:09]SAM_PROTO_GetShiftState done [01:24:09]FM_GetShiftState done [01:24:09]req_shift_opened done [01:24:09]requested_item shift.open_date is exist - process it [01:24:09]req_shift_open_date [01:24:09]req_shift_open_date done [01:24:09]produce_requested_data done [01:24:09]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188557,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:24:09]process_action_free close_receipt [01:24:09]json_value_free [01:24:09]json_value_free done [01:24:09]process_json_proto returns [01:24:09]Send response to host [01:24:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188557,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:24:09]free response buf [01:24:09]execute_script done [01:24:09]execute_script returns [01:24:09]free content buf [01:24:09]Sock 9.Close socket [01:24:09]Sock 9.Thread stoped [01:24:12]OFD Sender: No OFD packet to send [01:24:17]OFD Sender: No OFD packet to send [01:24:22]OFD Sender: No OFD packet to send [01:24:27]OFD Sender: No OFD packet to send [01:24:32]OFD Sender: No OFD packet to send [01:24:37]OFD Sender: No OFD packet to send [01:24:42]OFD Sender: No OFD packet to send [01:24:47]OFD Sender: No OFD packet to send [01:24:52]OFD Sender: No OFD packet to send [01:24:57]OFD Sender: No OFD packet to send [01:25:02]OFD Sender: No OFD packet to send [01:25:07]OFD Sender: No OFD packet to send [01:25:12]OFD Sender: No OFD packet to send [01:25:17]OFD Sender: No OFD packet to send [01:25:22]OFD Sender: No OFD packet to send [01:25:27]OFD Sender: No OFD packet to send [01:25:32]OFD Sender: No OFD packet to send [01:25:38]OFD Sender: No OFD packet to send [01:25:43]OFD Sender: No OFD packet to send [01:25:48]OFD Sender: No OFD packet to send [01:25:53]OFD Sender: No OFD packet to send [01:25:58]OFD Sender: No OFD packet to send [01:26:03]OFD Sender: No OFD packet to send [01:26:08]OFD Sender: No OFD packet to send [01:26:13]OFD Sender: No OFD packet to send [01:26:18]OFD Sender: No OFD packet to send [01:26:23]OFD Sender: No OFD packet to send [01:26:28]OFD Sender: No OFD packet to send [01:26:33]OFD Sender: No OFD packet to send [01:26:38]OFD Sender: No OFD packet to send [01:26:43]OFD Sender: No OFD packet to send [01:26:48]OFD Sender: No OFD packet to send [01:26:53]OFD Sender: No OFD packet to send [01:26:58]OFD Sender: No OFD packet to send [01:27:03]OFD Sender: No OFD packet to send [01:27:08]OFD Sender: No OFD packet to send [01:27:13]OFD Sender: No OFD packet to send [01:27:18]OFD Sender: No OFD packet to send [01:27:23]OFD Sender: No OFD packet to send [01:27:28]OFD Sender: No OFD packet to send [01:27:33]OFD Sender: No OFD packet to send [01:27:38]OFD Sender: No OFD packet to send [01:27:43]OFD Sender: No OFD packet to send [01:27:48]OFD Sender: No OFD packet to send [01:27:53]OFD Sender: No OFD packet to send [01:27:58]OFD Sender: No OFD packet to send [01:28:03]OFD Sender: No OFD packet to send [01:28:08]OFD Sender: No OFD packet to send [01:28:13]OFD Sender: No OFD packet to send [01:28:18]OFD Sender: No OFD packet to send [01:28:23]OFD Sender: No OFD packet to send [01:28:28]OFD Sender: No OFD packet to send [01:28:33]OFD Sender: No OFD packet to send [01:28:38]OFD Sender: No OFD packet to send [01:28:43]OFD Sender: No OFD packet to send [01:28:48]OFD Sender: No OFD packet to send [01:28:53]OFD Sender: No OFD packet to send [01:28:58]OFD Sender: No OFD packet to send [01:29:03]OFD Sender: No OFD packet to send [01:29:08]OFD Sender: No OFD packet to send [01:29:13]OFD Sender: No OFD packet to send [01:29:18]OFD Sender: No OFD packet to send [01:29:23]OFD Sender: No OFD packet to send [01:29:29]OFD Sender: No OFD packet to send [01:29:34]OFD Sender: No OFD packet to send [01:29:39]OFD Sender: No OFD packet to send [01:29:44]OFD Sender: No OFD packet to send [01:29:49]OFD Sender: No OFD packet to send [01:29:54]OFD Sender: No OFD packet to send [01:29:59]OFD Sender: No OFD packet to send [01:30:04]OFD Sender: No OFD packet to send [01:30:09]OFD Sender: No OFD packet to send [01:30:14]OFD Sender: No OFD packet to send [01:30:19]OFD Sender: No OFD packet to send [01:30:24]OFD Sender: No OFD packet to send [01:30:29]OFD Sender: No OFD packet to send [01:30:34]OFD Sender: No OFD packet to send [01:30:39]OFD Sender: No OFD packet to send [01:30:44]OFD Sender: No OFD packet to send [01:30:49]OFD Sender: No OFD packet to send [01:30:54]OFD Sender: No OFD packet to send [01:30:59]OFD Sender: No OFD packet to send [01:31:04]OFD Sender: No OFD packet to send [01:31:09]OFD Sender: No OFD packet to send [01:31:14]OFD Sender: No OFD packet to send [01:31:19]OFD Sender: No OFD packet to send [01:31:24]OFD Sender: No OFD packet to send [01:31:29]OFD Sender: No OFD packet to send [01:31:34]OFD Sender: No OFD packet to send [01:31:39]OFD Sender: No OFD packet to send [01:31:44]OFD Sender: No OFD packet to send [01:31:49]OFD Sender: No OFD packet to send [01:31:54]OFD Sender: No OFD packet to send [01:31:59]OFD Sender: No OFD packet to send [01:32:04]OFD Sender: No OFD packet to send [01:32:09]OFD Sender: No OFD packet to send [01:32:14]OFD Sender: No OFD packet to send [01:32:19]OFD Sender: No OFD packet to send [01:32:24]OFD Sender: No OFD packet to send [01:32:29]OFD Sender: No OFD packet to send [01:32:34]OFD Sender: No OFD packet to send [01:32:39]OFD Sender: No OFD packet to send [01:32:44]OFD Sender: No OFD packet to send [01:32:49]OFD Sender: No OFD packet to send [01:32:54]OFD Sender: No OFD packet to send [01:32:59]OFD Sender: No OFD packet to send [01:33:04]OFD Sender: No OFD packet to send [01:33:09]OFD Sender: No OFD packet to send [01:33:15]OFD Sender: No OFD packet to send [01:33:20]OFD Sender: No OFD packet to send [01:33:25]OFD Sender: No OFD packet to send [01:33:30]OFD Sender: No OFD packet to send [01:33:35]OFD Sender: No OFD packet to send [01:33:40]OFD Sender: No OFD packet to send [01:33:45]OFD Sender: No OFD packet to send [01:33:50]OFD Sender: No OFD packet to send [01:33:55]OFD Sender: No OFD packet to send [01:34:00]OFD Sender: No OFD packet to send [01:34:05]OFD Sender: No OFD packet to send [01:34:10]OFD Sender: No OFD packet to send [01:34:15]OFD Sender: No OFD packet to send [01:34:20]OFD Sender: No OFD packet to send [01:34:25]OFD Sender: No OFD packet to send [01:34:30]OFD Sender: No OFD packet to send [01:34:35]OFD Sender: No OFD packet to send [01:34:40]OFD Sender: No OFD packet to send [01:34:45]OFD Sender: No OFD packet to send [01:34:45]accept exits with 7 [01:34:45]New connection [01:34:45]New thread 3066649956 created [01:34:45]Thread 3066506596 joined [01:34:45]Waiting for new connection... [01:34:45] Sock 7.Parse request [01:34:45]Sock 7.Check first char [01:34:45]Sock 7.First char is OK [01:34:45]request: POST /json_proto HTTP/1.0 [01:34:45]Method: POST [01:34:45]URL: /json_proto [01:34:45]Method is POST - this is cgi request [01:34:45]url: /json_proto [01:34:45]query_string will be loaded in cgi processing [01:34:45]execute_cgi json_proto POST (null) [01:34:45]execute_cgi path=json_proto method=POST [01:34:45]POST find Content-Length [01:34:45]Host: 172.17.42.131:8080 [01:34:45]Content-Length: 688 [01:34:45]Content-Type: application/json [01:34:45] [01:34:45]POST finish read [01:34:45]Found Content-Length = 688 [01:34:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [01:34:45]execute_script... [01:34: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)210617", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "D-ENERGY \u0414\u0422-\u041A-5", "price" : 77.20, "quantity" : 12.960, "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" ] } } [01:34:45]POST & json_proto [01:34:45]process_json_proto [01:34:45]json parsed OK: [01:34:45]protocol is kg_v1.0 [01:34:45]action value=close_receipt [01:34:45]process_action close_receipt [01:34:45]cmd_close_receipt [01:34:45]MH_GetDate [01:34:45]Write to MH i2c: F0 00 00 03 11 03 [01:34:45]Write i2c OK [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: F0 [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: F0 09 00 [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: F0 09 00 03 11 00 B7 52 18 67 A0 18 CA 66 7C [01:34:45]GetLastDocTimeStamp 1729646646 [01:34:45]current date 1729647287 [01:34:45]FM_GetShiftState [01:34:45]SAM_PROTO_GetShiftState [01:34:45]wFMCommunicate request_size=4 [01:34:45]MH_SAM_APDU [01:34:45]CAPDU: 80 13 01 00 [01:34:45]Write to MH i2c: E2 08 00 04 11 80 13 01 00 00 00 00 00 92 [01:34:45]Write i2c OK [01:34:45]MH_I2C_Read... [01:34:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:45]Read from MH i2c: E2 [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: E2 0E 00 [01:34:45]MH_I2C_Read... [01:34:45]Read from MH i2c: E2 0E 00 04 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 7A [01:34:45]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:34:45]wFMCommunicate OK [01:34:45]SAM_PROTO_GetShiftState done [01:34:45]FM_GetShiftState done [01:34:45]opened in 1729642525 [01:34:45]opened+sec_in_day 1729728925 [01:34:45]quantity*price = 100051 [01:34:45]sum+1 = 100052 [01:34: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 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 16 23.10.2024 01:34 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188558 ФПД: 67888405650187 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T013447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188558&fm=67888405650187&tin=02508201610067®Number=0000000000100030&sum=100000 [01:34:46]StoreToDocumentArchive [01:34:46]shift 462 fd 188558 [01:34:46]save to /storage/0462/doc_00188558 [01:34:46]save last doc name /storage/0462/doc_00188558 to /storage/kkm_last_doc_name [01:34:46]save OK [01:34:46]Clear old archive folders... [01:34:46]ProcessDocumentItem done err = 0, tmpTLVsize=257 [01:34:46]tlvbuf is 008FC250 [01:34:46]SAM_PROTO_ClearQueue [01:34:46]wFMCommunicate request_size=4 [01:34:46]MH_SAM_APDU [01:34:46]CAPDU: 80 09 00 00 [01:34:46]Write to MH i2c: E2 08 00 11 11 80 09 00 00 00 00 00 00 94 [01:34:46]Write i2c OK [01:34:46]MH_I2C_Read... [01:34:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:34:46]Read from MH i2c: E2 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: E2 03 00 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: E2 03 00 11 11 00 90 00 96 [01:34:46]RAPDU: 90 00 [01:34:46]wFMCommunicate OK [01:34:46]SAM_PROTO_ClearQueue done [01:34:46]KKMCreateOFDPacket [01:34:46]OFDProtocolAddRootSTLVToBuf [01:34:46]FM_MakeSignedData [01:34:46]FM_MakeSignedData [01:34:46]SAM_PROTO_SignData [01:34:46]wFMCommunicate request_size=4 [01:34:46]MH_SAM_APDU [01:34:46]CAPDU: 80 0D 01 02 [01:34:46]Write to MH i2c: E2 08 00 12 11 80 0D 01 02 00 00 00 00 9C [01:34:46]Write i2c OK [01:34:46]MH_I2C_Read... [01:34:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:34:46]Read from MH i2c: E2 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: E2 03 00 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: E2 03 00 12 11 00 90 00 97 [01:34:46]RAPDU: 90 00 [01:34:46]wFMCommunicate OK [01:34:46]wFMCommunicate request_size=255 [01:34:46]MH_SAM_APDU [01:34:46]CAPDU: 80 0D 02 02 FA 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 52 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E0 02 [01:34:46]Write to MH i2c: E2 02 01 13 11 80 0D 02 02 FA 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 52 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E0 02 00 00 D0 [01:34:46]Write i2c OK [01:34:46]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:47]Read from MH i2c: E2 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 03 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 03 00 13 11 00 90 00 98 [01:34:47]RAPDU: 90 00 [01:34:47]wFMCommunicate OK [01:34:47]wFMCommunicate request_size=16 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 3D BE 80 4D 9B 0B [01:34:47]Write to MH i2c: E2 13 00 14 11 80 0D 02 02 0B 00 00 35 04 06 00 3D BE 80 4D 9B 0B 00 00 62 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:47]Read from MH i2c: E2 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 03 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 03 00 14 11 00 90 00 99 [01:34:47]RAPDU: 90 00 [01:34:47]wFMCommunicate OK [01:34:47]wFMCommunicate request_size=4 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 0D 03 02 [01:34:47]Write to MH i2c: E2 08 00 15 11 80 0D 03 02 00 00 00 00 A1 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:47]Read from MH i2c: E2 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 0B 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 0B 00 15 11 00 1D D3 B0 64 18 62 24 5E 90 00 A2 [01:34:47]RAPDU: 1D D3 B0 64 18 62 24 5E 90 00 [01:34:47]wFMCommunicate OK [01:34:47]SAM_PROTO_SignData done [01:34:47]FM_MakeSignedData done [01:34:47]CreateOFDProtocolMessage [01:34:47]wFMCommunicate request_size=4 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 11 00 00 [01:34:47]Write to MH i2c: E2 08 00 16 11 80 11 00 00 00 00 00 00 A1 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:47]Read from MH i2c: E2 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 17 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: E2 17 00 16 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 EF [01:34:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:34:47]wFMCommunicate OK [01:34:47]CreateOFDProtocolMessage done [01:34:47]OFDSenderStorePacket 188558 [01:34:47]StoreOFDPacket docnum=188558 [01:34:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C8 B9 0D 01 B1 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 52 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E0 02 00 35 04 06 00 3D BE 80 4D 9B 0B 1D D3 B0 64 18 62 24 5E [01:34:47]CheckFolder [01:34:47]dirname=/storage/ofd_packets [01:34:47]CheckFolder done [01:34:47]ProducePacketName [01:34:47]name=ofd_packets/00188558 [01:34:47]NVStorageSaveData ofd_packets/00188558 [01:34:47]File name is /storage/ofd_packets/00188558 [01:34:47]Write 307 bytes [01:34:47]NVStorageSaveData done [01:34:47]OFDSenderStorePacket done [01:34:47]KKMCreateOFDPacket done [01:34:47]NVStorageSaveData kkm_last_timestamp [01:34:47]File name is /storage/kkm_last_timestamp [01:34:47]Write 4 bytes [01:34:47]NVStorageSaveData done [01:34:47]ExternCall_PrintAddStr [01:34:47]wPrintStart [01:34:47]Write to MH i2c: 01 00 00 17 11 28 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: 01 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: 01 07 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: 01 07 00 17 11 00 00 00 00 00 FF 0F 3D [01:34:47]RasterBufferAndPrint [01:34:47]line Счет N : (1)210617 [01:34:47]line ИНН: 02508201610067 [01:34:47]line Контрольно-Кассовый Чек [01:34:47]line ПРОДАЖА [01:34:47]line ТРК (МРК, ГНК) : 31 [01:34:47]line Товар: 2710194210 [01:34:47]line D-ENERGY ДТ-К-5 [01:34:47]line 12.960 * 77.20 [01:34:47]line = 1000.51 [01:34:47]line НДС 12% НСП 1% [01:34:47]line > о реализуемом товаре [01:34:47]line ОКРУГЛЕНИЕ: -0.51 [01:34:47]line ИТОГО: 1000.00 [01:34:47]line Внесено: 1000.00 [01:34:47]line СДАЧА: 0.00 [01:34:47]line НСП 1% : 8.85 [01:34:47]line НДС 12% : 106.25 [01:34:47]line Наличными: 1000.00 [01:34:47]line Безнал.: 0.00 [01:34:47]line Место: АЗС № 86 "Партнер Нефть" [01:34:47]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:34:47]line СНО: Общий режим [01:34:47]line Чек 16 23.10.2024 01:34 [01:34:47]line Смена: 462 ФФД: 1.0 [01:34:47]line ЗНМ: 0300000155 [01:34:47]line РНМ: 0000000000100030 [01:34:47]line Версия ККМ: 001 [01:34:47]line ФМ: 0000000000965340 [01:34:47]line ФД: 188558 [01:34:47]line ФПД: 67888405650187 [01:34:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T013447&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188558&fm=67888405650187&tin=02508201610067®Number=0000000000100030&sum=100000 [01:34:47]written 0, free lines is 4095 [01:34:47]OFD Sender: Processing packet 188558 [packets to send 1062, broken 1061] [01:34:47]ProducePacketName [01:34:47]name=ofd_packets/00188558 [01:34:47]OFD Sender: To server: pG, [01:34:47]CommunicateWithHost lk.salyk.kg:30040 [01:34:47]ConnectInit lk.salyk.kg [01:34:47]Connected sock=10 [01:34:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 15 01 00 00 C8 B9 0D 01 B1 48 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 A0 32 00 00 00 00 00 37 04 06 00 28 1E 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 B7 52 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E0 02 00 35 04 06 00 3D BE 80 4D 9B 0B 1D D3 B0 64 18 62 24 5E [01:34:47]Write to MH i2c: 01 00 00 42 11 53 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: 01 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: 01 07 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: 01 07 00 42 11 00 00 00 00 00 44 0C AA [01:34:47]RasterBufferAndPrint [01:34:47]line [01:34:47]line [01:34:47]line [01:34:47]line [01:34:47]line [01:34:47]written 0, free lines is 3145 [01:34:47]MH_Cut [01:34:47]Write to MH i2c: D1 01 00 49 11 01 2C [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: D1 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: D1 01 00 [01:34:47]MH_I2C_Read... [01:34:47]Read from MH i2c: D1 01 00 49 11 00 2B [01:34:47]Write to MH i2c: 01 00 00 4A 11 5B [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 FE 81 47 00 2D 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8E E0 02 00 F4 03 04 00 A3 FC 17 67 B6 04 01 00 00 5B B9 D2 EB ED AF B7 D7 [01:34:47]CommunicateWithHost err = 0 [01:34:47]CheckOFDResponse [01:34:47]1017 (14) - 77093643461234 [01:34:47]1041 (16) - 0000000000965340 [01:34:47]1040 (4) - 188558 [01:34:47]1012 (4) - 22.10.2024 19:27 [01:34:47]1206 (1) - 0 [01:34:47]OFD Sender: Remove packet 188558 [01:34:47]ProducePacketName [01:34:47]name=ofd_packets/00188558 [01:34:47]NVStorageDeleteData [01:34:48]OFD Sender: No OFD packet to send [01:34:49]*** Cut start [01:34:49]*** Partial cut [01:34:49]*** CUTSNS_PIN = 1 [01:34:49]*** CUTSNS_PIN = 0 [01:34:49]*** Brake cut motor [01:34:49]Read from MH i2c: 01 [01:34:49]MH_I2C_Read... [01:34:49]*** Stop cut motor [01:34:49]*** Cut end [01:34:49]Read from MH i2c: 01 07 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 07 00 4A 11 00 00 00 00 00 FF 0F 70 [01:34:49]process_action close_receipt done [01:34:49]requested_data is exist [01:34:49]produce_requested_data [01:34:49]requested_item fm.sn is exist - process it [01:34:49]wFMCommunicate request_size=4 [01:34:49]MH_SAM_APDU [01:34:49]CAPDU: 80 11 00 00 [01:34:49]Write to MH i2c: E2 08 00 4B 11 80 11 00 00 00 00 00 00 D6 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:49]Read from MH i2c: E2 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 17 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: E2 17 00 4B 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 24 [01:34:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:34:49]wFMCommunicate OK [01:34:49]requested_item fd.num is exist - process it [01:34:49]SAM_PROTO_GetFieldsCounters [01:34:49]wFMCommunicate request_size=4 [01:34:49]MH_SAM_APDU [01:34:49]CAPDU: 80 13 00 00 [01:34:49]Write to MH i2c: E2 08 00 4C 11 80 13 00 00 00 00 00 00 D9 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:50]Read from MH i2c: E2 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 62 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 62 00 4C 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E E0 02 00 0E 04 04 00 CE 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 4F [01:34:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8E E0 02 00 0E 04 04 00 CE 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 [01:34:50]wFMCommunicate OK [01:34:50]SAM_PROTO_GetFieldsCounters done [01:34:50]requested_item shift.num is exist - process it [01:34:50]requested_item shift.opened is exist - process it [01:34:50]req_shift_opened [01:34:50]FM_GetShiftState [01:34:50]SAM_PROTO_GetShiftState [01:34:50]wFMCommunicate request_size=4 [01:34:50]MH_SAM_APDU [01:34:50]CAPDU: 80 13 01 00 [01:34:50]Write to MH i2c: E2 08 00 4D 11 80 13 01 00 00 00 00 00 DB [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:50]Read from MH i2c: E2 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 0E 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 0E 00 4D 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C3 [01:34:50]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:34:50]wFMCommunicate OK [01:34:50]SAM_PROTO_GetShiftState done [01:34:50]FM_GetShiftState done [01:34:50]req_shift_opened done [01:34:50]requested_item shift.open_date is exist - process it [01:34:50]req_shift_open_date [01:34:50]req_shift_open_date done [01:34:50]produce_requested_data done [01:34:50]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188558,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:34:50]process_action_free close_receipt [01:34:50]json_value_free [01:34:50]json_value_free done [01:34:50]process_json_proto returns [01:34:50]Send response to host [01:34:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188558,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:34:50]free response buf [01:34:50]execute_script done [01:34:50]execute_script returns [01:34:50]free content buf [01:34:50]Sock 7.Close socket [01:34:50]Sock 7.Thread stoped [01:34:53]OFD Sender: No OFD packet to send [01:34:58]OFD Sender: No OFD packet to send [01:35:03]OFD Sender: No OFD packet to send [01:35:08]OFD Sender: No OFD packet to send [01:35:13]OFD Sender: No OFD packet to send [01:35:18]OFD Sender: No OFD packet to send [01:35:23]OFD Sender: No OFD packet to send [01:35:28]OFD Sender: No OFD packet to send [01:35:33]OFD Sender: No OFD packet to send [01:35:38]OFD Sender: No OFD packet to send [01:35:43]OFD Sender: No OFD packet to send [01:35:48]OFD Sender: No OFD packet to send [01:35:53]OFD Sender: No OFD packet to send [01:35:58]OFD Sender: No OFD packet to send [01:36:03]OFD Sender: No OFD packet to send [01:36:08]OFD Sender: No OFD packet to send [01:36:13]OFD Sender: No OFD packet to send [01:36:18]OFD Sender: No OFD packet to send [01:36:23]OFD Sender: No OFD packet to send [01:36:28]OFD Sender: No OFD packet to send [01:36:33]OFD Sender: No OFD packet to send [01:36:38]OFD Sender: No OFD packet to send [01:36:43]OFD Sender: No OFD packet to send [01:36:49]OFD Sender: No OFD packet to send [01:36:54]OFD Sender: No OFD packet to send [01:36:59]OFD Sender: No OFD packet to send [01:37:04]OFD Sender: No OFD packet to send [01:37:09]OFD Sender: No OFD packet to send [01:37:14]OFD Sender: No OFD packet to send [01:37:19]OFD Sender: No OFD packet to send [01:37:24]OFD Sender: No OFD packet to send [01:37:29]OFD Sender: No OFD packet to send [01:37:34]OFD Sender: No OFD packet to send [01:37:39]OFD Sender: No OFD packet to send [01:37:44]OFD Sender: No OFD packet to send [01:37:49]OFD Sender: No OFD packet to send [01:37:54]OFD Sender: No OFD packet to send [01:37:59]OFD Sender: No OFD packet to send [01:38:04]OFD Sender: No OFD packet to send [01:38:09]OFD Sender: No OFD packet to send [01:38:14]OFD Sender: No OFD packet to send [01:38:19]OFD Sender: No OFD packet to send [01:38:24]OFD Sender: No OFD packet to send [01:38:29]OFD Sender: No OFD packet to send [01:38:34]OFD Sender: No OFD packet to send [01:38:39]OFD Sender: No OFD packet to send [01:38:44]OFD Sender: No OFD packet to send [01:38:49]OFD Sender: No OFD packet to send [01:38:54]OFD Sender: No OFD packet to send [01:38:59]OFD Sender: No OFD packet to send [01:39:04]OFD Sender: No OFD packet to send [01:39:09]OFD Sender: No OFD packet to send [01:39:14]OFD Sender: No OFD packet to send [01:39:19]OFD Sender: No OFD packet to send [01:39:24]OFD Sender: No OFD packet to send [01:39:29]OFD Sender: No OFD packet to send [01:39:34]OFD Sender: No OFD packet to send [01:39:39]OFD Sender: No OFD packet to send [01:39:44]OFD Sender: No OFD packet to send [01:39:49]OFD Sender: No OFD packet to send [01:39:54]OFD Sender: No OFD packet to send [01:39:59]OFD Sender: No OFD packet to send [01:40:04]OFD Sender: No OFD packet to send [01:40:09]OFD Sender: No OFD packet to send [01:40:14]OFD Sender: No OFD packet to send [01:40:19]OFD Sender: No OFD packet to send [01:40:24]OFD Sender: No OFD packet to send [01:40:29]OFD Sender: No OFD packet to send [01:40:34]OFD Sender: No OFD packet to send [01:40:40]OFD Sender: No OFD packet to send [01:40:45]OFD Sender: No OFD packet to send [01:40:50]OFD Sender: No OFD packet to send [01:40:55]OFD Sender: No OFD packet to send [01:41:00]OFD Sender: No OFD packet to send [01:41:05]OFD Sender: No OFD packet to send [01:41:10]OFD Sender: No OFD packet to send [01:41:15]OFD Sender: No OFD packet to send [01:41:20]OFD Sender: No OFD packet to send [01:41:25]OFD Sender: No OFD packet to send [01:41:30]OFD Sender: No OFD packet to send [01:41:35]OFD Sender: No OFD packet to send [01:41:40]OFD Sender: No OFD packet to send [01:41:45]OFD Sender: No OFD packet to send [01:41:50]OFD Sender: No OFD packet to send [01:41:55]OFD Sender: No OFD packet to send [01:42:00]OFD Sender: No OFD packet to send [01:42:05]OFD Sender: No OFD packet to send [01:42:10]OFD Sender: No OFD packet to send [01:42:15]OFD Sender: No OFD packet to send [01:42:20]OFD Sender: No OFD packet to send [01:42:25]OFD Sender: No OFD packet to send [01:42:30]OFD Sender: No OFD packet to send [01:42:35]OFD Sender: No OFD packet to send [01:42:40]OFD Sender: No OFD packet to send [01:42:45]OFD Sender: No OFD packet to send [01:42:50]OFD Sender: No OFD packet to send [01:42:55]OFD Sender: No OFD packet to send [01:43:00]OFD Sender: No OFD packet to send [01:43:05]OFD Sender: No OFD packet to send [01:43:10]OFD Sender: No OFD packet to send [01:43:15]OFD Sender: No OFD packet to send [01:43:20]OFD Sender: No OFD packet to send [01:43:25]OFD Sender: No OFD packet to send [01:43:30]OFD Sender: No OFD packet to send [01:43:35]OFD Sender: No OFD packet to send [01:43:40]OFD Sender: No OFD packet to send [01:43:45]OFD Sender: No OFD packet to send [01:43:50]OFD Sender: No OFD packet to send [01:43:55]OFD Sender: No OFD packet to send [01:44:00]OFD Sender: No OFD packet to send [01:44:05]OFD Sender: No OFD packet to send [01:44:10]OFD Sender: No OFD packet to send [01:44:15]OFD Sender: No OFD packet to send [01:44:20]OFD Sender: No OFD packet to send [01:44:25]OFD Sender: No OFD packet to send [01:44:31]OFD Sender: No OFD packet to send [01:44:36]OFD Sender: No OFD packet to send [01:44:41]OFD Sender: No OFD packet to send [01:44:46]OFD Sender: No OFD packet to send [01:44:51]OFD Sender: No OFD packet to send [01:44:56]OFD Sender: No OFD packet to send [01:45:01]OFD Sender: No OFD packet to send [01:45:06]OFD Sender: No OFD packet to send [01:45:11]OFD Sender: No OFD packet to send [01:45:16]OFD Sender: No OFD packet to send [01:45:21]OFD Sender: No OFD packet to send [01:45:26]OFD Sender: No OFD packet to send [01:45:31]OFD Sender: No OFD packet to send [01:45:36]OFD Sender: No OFD packet to send [01:45:41]OFD Sender: No OFD packet to send [01:45:46]OFD Sender: No OFD packet to send [01:45:51]OFD Sender: No OFD packet to send [01:45:56]OFD Sender: No OFD packet to send [01:46:01]OFD Sender: No OFD packet to send [01:46:06]OFD Sender: No OFD packet to send [01:46:11]OFD Sender: No OFD packet to send [01:46:16]OFD Sender: No OFD packet to send [01:46:21]OFD Sender: No OFD packet to send [01:46:26]OFD Sender: No OFD packet to send [01:46:31]OFD Sender: No OFD packet to send [01:46:36]OFD Sender: No OFD packet to send [01:46:41]OFD Sender: No OFD packet to send [01:46:46]OFD Sender: No OFD packet to send [01:46:51]OFD Sender: No OFD packet to send [01:46:56]OFD Sender: No OFD packet to send [01:47:01]OFD Sender: No OFD packet to send [01:47:06]OFD Sender: No OFD packet to send [01:47:11]OFD Sender: No OFD packet to send [01:47:16]OFD Sender: No OFD packet to send [01:47:21]OFD Sender: No OFD packet to send [01:47:26]OFD Sender: No OFD packet to send [01:47:31]OFD Sender: No OFD packet to send [01:47:36]OFD Sender: No OFD packet to send [01:47:41]OFD Sender: No OFD packet to send [01:47:46]OFD Sender: No OFD packet to send [01:47:51]OFD Sender: No OFD packet to send [01:47:56]OFD Sender: No OFD packet to send [01:48:01]OFD Sender: No OFD packet to send [01:48:06]OFD Sender: No OFD packet to send [01:48:11]OFD Sender: No OFD packet to send [01:48:17]OFD Sender: No OFD packet to send [01:48:22]OFD Sender: No OFD packet to send [01:48:27]OFD Sender: No OFD packet to send [01:48:32]OFD Sender: No OFD packet to send [01:48:37]OFD Sender: No OFD packet to send [01:48:42]OFD Sender: No OFD packet to send [01:48:47]OFD Sender: No OFD packet to send [01:48:52]OFD Sender: No OFD packet to send [01:48:57]OFD Sender: No OFD packet to send [01:49:02]OFD Sender: No OFD packet to send [01:49:07]OFD Sender: No OFD packet to send [01:49:12]OFD Sender: No OFD packet to send [01:49:17]OFD Sender: No OFD packet to send [01:49:22]OFD Sender: No OFD packet to send [01:49:27]OFD Sender: No OFD packet to send [01:49:32]OFD Sender: No OFD packet to send [01:49:37]OFD Sender: No OFD packet to send [01:49:40]accept exits with 9 [01:49:40]New connection [01:49:40]New thread 3066506596 created [01:49:40]Thread 3066649956 joined [01:49:40]Waiting for new connection... [01:49:40] Sock 9.Parse request [01:49:40]Sock 9.Check first char [01:49:40]Sock 9.First char is OK [01:49:40]request: POST /json_proto HTTP/1.0 [01:49:40]Method: POST [01:49:40]URL: /json_proto [01:49:40]Method is POST - this is cgi request [01:49:40]url: /json_proto [01:49:40]query_string will be loaded in cgi processing [01:49:40]execute_cgi json_proto POST (null) [01:49:40]execute_cgi path=json_proto method=POST [01:49:40]POST find Content-Length [01:49:40]Host: 172.17.42.131:8080 [01:49:40]Content-Length: 682 [01:49:40]Content-Type: application/json [01:49:40] [01:49:40]POST finish read [01:49:40]Found Content-Length = 682 [01:49:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 32.740, "sum" : 2190.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2190.00, "total" : 2190.00, "payments": [ { "type": 0, "sum" : 2190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:40]execute_script... [01:49: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)210618", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 32.740, "sum" : 2190.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 2190.00, "total" : 2190.00, "payments": [ { "type": 0, "sum" : 2190.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:40]POST & json_proto [01:49:40]process_json_proto [01:49:40]json parsed OK: [01:49:40]protocol is kg_v1.0 [01:49:40]action value=close_receipt [01:49:40]process_action close_receipt [01:49:40]cmd_close_receipt [01:49:40]MH_GetDate [01:49:40]Write to MH i2c: F0 00 00 4E 11 4E [01:49:40]Write i2c OK [01:49:40]MH_I2C_Read... [01:49:40]Read from MH i2c: F0 [01:49:40]MH_I2C_Read... [01:49:40]Read from MH i2c: F0 09 00 [01:49:40]MH_I2C_Read... [01:49:40]Read from MH i2c: F0 09 00 4E 11 00 35 56 18 67 A0 18 CA 66 49 [01:49:40]GetLastDocTimeStamp 1729647287 [01:49:40]current date 1729648181 [01:49:40]FM_GetShiftState [01:49:40]SAM_PROTO_GetShiftState [01:49:40]wFMCommunicate request_size=4 [01:49:40]MH_SAM_APDU [01:49:40]CAPDU: 80 13 01 00 [01:49:40]Write to MH i2c: E2 08 00 4F 11 80 13 01 00 00 00 00 00 DD [01:49:40]Write i2c OK [01:49:40]MH_I2C_Read... [01:49:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:40]Read from MH i2c: E2 [01:49:40]MH_I2C_Read... [01:49:40]Read from MH i2c: E2 0E 00 [01:49:40]MH_I2C_Read... [01:49:40]Read from MH i2c: E2 0E 00 4F 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 C5 [01:49:40]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:49:40]wFMCommunicate OK [01:49:40]SAM_PROTO_GetShiftState done [01:49:40]FM_GetShiftState done [01:49:40]opened in 1729642525 [01:49:40]opened+sec_in_day 1729728925 [01:49:40]quantity*price = 219030 [01:49:40]sum+1 = 219032 [01:49:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2190.00 Внесено: 2190.00 СДАЧА: 0.00 НСП 1% : 19.38 НДС 12% : 232.60 Наличными: 2190.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 17 23.10.2024 01:49 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188559 ФПД: 69416849670543 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T014941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188559&fm=69416849670543&tin=02508201610067®Number=0000000000100030&sum=219000 [01:49:41]StoreToDocumentArchive [01:49:41]shift 462 fd 188559 [01:49:41]save to /storage/0462/doc_00188559 [01:49:41]save last doc name /storage/0462/doc_00188559 to /storage/kkm_last_doc_name [01:49:41]save OK [01:49:41]Clear old archive folders... [01:49:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [01:49:41]tlvbuf is 008F2BD0 [01:49:41]SAM_PROTO_ClearQueue [01:49:41]wFMCommunicate request_size=4 [01:49:41]MH_SAM_APDU [01:49:41]CAPDU: 80 09 00 00 [01:49:41]Write to MH i2c: E2 08 00 5C 11 80 09 00 00 00 00 00 00 DF [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:49:41]Read from MH i2c: E2 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 5C 11 00 90 00 E1 [01:49:41]RAPDU: 90 00 [01:49:41]wFMCommunicate OK [01:49:41]SAM_PROTO_ClearQueue done [01:49:41]KKMCreateOFDPacket [01:49:41]OFDProtocolAddRootSTLVToBuf [01:49:41]FM_MakeSignedData [01:49:41]FM_MakeSignedData [01:49:41]SAM_PROTO_SignData [01:49:41]wFMCommunicate request_size=4 [01:49:41]MH_SAM_APDU [01:49:41]CAPDU: 80 0D 01 02 [01:49:41]Write to MH i2c: E2 08 00 5D 11 80 0D 01 02 00 00 00 00 E7 [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:49:41]Read from MH i2c: E2 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 5D 11 00 90 00 E2 [01:49:41]RAPDU: 90 00 [01:49:41]wFMCommunicate OK [01:49:41]wFMCommunicate request_size=255 [01:49:41]MH_SAM_APDU [01:49: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 33 FF 03 08 00 03 E4 7F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 5A 00 00 00 00 07 04 06 00 78 57 03 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 35 56 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E0 02 00 35 04 06 00 3F [01:49:41]Write to MH i2c: E2 02 01 5E 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 33 FF 03 08 00 03 E4 7F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 5A 00 00 00 00 07 04 06 00 78 57 03 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 35 56 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E0 02 00 35 04 06 00 3F 00 00 72 [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:41]Read from MH i2c: E2 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 5E 11 00 90 00 E3 [01:49:41]RAPDU: 90 00 [01:49:41]wFMCommunicate OK [01:49:41]wFMCommunicate request_size=10 [01:49:41]MH_SAM_APDU [01:49:41]CAPDU: 80 0D 02 02 05 22 5E AA 81 8F [01:49:41]Write to MH i2c: E2 0D 00 5F 11 80 0D 02 02 05 00 22 5E AA 81 8F 00 00 2E [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:41]Read from MH i2c: E2 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 03 00 5F 11 00 90 00 E4 [01:49:41]RAPDU: 90 00 [01:49:41]wFMCommunicate OK [01:49:41]wFMCommunicate request_size=4 [01:49:41]MH_SAM_APDU [01:49:41]CAPDU: 80 0D 03 02 [01:49:41]Write to MH i2c: E2 08 00 60 11 80 0D 03 02 00 00 00 00 EC [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:49:41]Read from MH i2c: E2 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 0B 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 0B 00 60 11 00 8D EF E7 2D A1 82 2A 51 90 00 1B [01:49:41]RAPDU: 8D EF E7 2D A1 82 2A 51 90 00 [01:49:41]wFMCommunicate OK [01:49:41]SAM_PROTO_SignData done [01:49:41]FM_MakeSignedData done [01:49:41]CreateOFDProtocolMessage [01:49:41]wFMCommunicate request_size=4 [01:49:41]MH_SAM_APDU [01:49:41]CAPDU: 80 11 00 00 [01:49:41]Write to MH i2c: E2 08 00 61 11 80 11 00 00 00 00 00 00 EC [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:41]Read from MH i2c: E2 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 17 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: E2 17 00 61 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 3A [01:49:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:49:41]wFMCommunicate OK [01:49:41]CreateOFDProtocolMessage done [01:49:41]OFDSenderStorePacket 188559 [01:49:41]StoreOFDPacket docnum=188559 [01:49:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C5 2C 07 01 F6 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E4 7F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 5A 00 00 00 00 07 04 06 00 78 57 03 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 35 56 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E0 02 00 35 04 06 00 3F 22 5E AA 81 8F 8D EF E7 2D A1 82 2A 51 [01:49:41]CheckFolder [01:49:41]dirname=/storage/ofd_packets [01:49:41]CheckFolder done [01:49:41]ProducePacketName [01:49:41]name=ofd_packets/00188559 [01:49:41]NVStorageSaveData ofd_packets/00188559 [01:49:41]File name is /storage/ofd_packets/00188559 [01:49:41]Write 301 bytes [01:49:41]NVStorageSaveData done [01:49:41]OFDSenderStorePacket done [01:49:41]KKMCreateOFDPacket done [01:49:41]NVStorageSaveData kkm_last_timestamp [01:49:41]File name is /storage/kkm_last_timestamp [01:49:41]Write 4 bytes [01:49:41]NVStorageSaveData done [01:49:41]ExternCall_PrintAddStr [01:49:41]wPrintStart [01:49:41]Write to MH i2c: 01 00 00 62 11 73 [01:49:41]Write i2c OK [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: 01 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: 01 07 00 [01:49:41]MH_I2C_Read... [01:49:41]Read from MH i2c: 01 07 00 62 11 00 00 00 00 00 FF 0F 88 [01:49:41]RasterBufferAndPrint [01:49:41]line Счет N : (1)210618 [01:49:41]line ИНН: 02508201610067 [01:49:41]line Контрольно-Кассовый Чек [01:49:41]line ПРОДАЖА [01:49:41]line ТРК (МРК, ГНК) : 12 [01:49:41]line Товар: 2710124130 [01:49:41]line Аи-92-К-3 [01:49:41]line 32.740 * 66.90 [01:49:41]line = 2190.31 [01:49:41]line НДС 12% НСП 1% [01:49:41]line > о реализуемом товаре [01:49:41]line ОКРУГЛЕНИЕ: -0.31 [01:49:41]line ИТОГО: 2190.00 [01:49:41]line Внесено: 2190.00 [01:49:41]line СДАЧА: 0.00 [01:49:41]line НСП 1% : 19.38 [01:49:41]line НДС 12% : 232.60 [01:49:41]line Наличными: 2190.00 [01:49:41]line Безнал.: 0.00 [01:49:41]line Место: АЗС № 86 "Партнер Нефть" [01:49:41]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [01:49:41]line СНО: Общий режим [01:49:41]line Чек 17 23.10.2024 01:49 [01:49:41]line Смена: 462 ФФД: 1.0 [01:49:41]line ЗНМ: 0300000155 [01:49:41]line РНМ: 0000000000100030 [01:49:41]line Версия ККМ: 001 [01:49:41]line ФМ: 0000000000965340 [01:49:41]line ФД: 188559 [01:49:41]line ФПД: 69416849670543 [01:49:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T014941&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188559&fm=69416849670543&tin=02508201610067®Number=0000000000100030&sum=219000 [01:49:41]written 0, free lines is 4095 [01:49:41]OFD Sender: Processing packet 188559 [packets to send 1062, broken 1061] [01:49:41]ProducePacketName [01:49:41]name=ofd_packets/00188559 [01:49:41]OFD Sender: To server: pG, [01:49:41]CommunicateWithHost lk.salyk.kg:30040 [01:49:41]ConnectInit lk.salyk.kg [01:49:42]Connected sock=11 [01:49:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 C5 2C 07 01 F6 2A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 E4 7F 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 97 57 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 78 57 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 07 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DC 5A 00 00 00 00 07 04 06 00 78 57 03 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 35 56 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 8F E0 02 00 35 04 06 00 3F 22 5E AA 81 8F 8D EF E7 2D A1 82 2A 51 [01:49:42]Write to MH i2c: 01 00 00 8D 11 9E [01:49:42]Write i2c OK [01:49:42]MH_I2C_Read... [01:49:42]Read from MH i2c: 01 [01:49:42]MH_I2C_Read... [01:49:42]Read from MH i2c: 01 07 00 [01:49:42]MH_I2C_Read... [01:49:42]Read from MH i2c: 01 07 00 8D 11 00 00 00 00 00 50 0C 01 [01:49:42]RasterBufferAndPrint [01:49:42]line [01:49:42]line [01:49:42]line [01:49:42]line [01:49:42]line [01:49:42]written 0, free lines is 3155 [01:49:42]MH_Cut [01:49:42]Write to MH i2c: D1 01 00 94 11 01 77 [01:49:42]Write i2c OK [01:49:42]MH_I2C_Read... [01:49:42]Read from MH i2c: D1 [01:49:42]MH_I2C_Read... [01:49:42]Read from MH i2c: D1 01 00 [01:49:42]MH_I2C_Read... [01:49:42]Read from MH i2c: D1 01 00 94 11 00 76 [01:49:42]Write to MH i2c: 01 00 00 95 11 A6 [01:49:42]Write i2c OK [01:49:42]MH_I2C_Read... [01:49:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 53 0D 47 00 22 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 39 36 35 33 34 30 10 04 04 00 8F E0 02 00 F4 03 04 00 21 00 18 67 B6 04 01 00 00 78 F7 4A 07 D1 B4 72 96 [01:49:42]CommunicateWithHost err = 0 [01:49:42]CheckOFDResponse [01:49:42]1017 (14) - 77093643461234 [01:49:42]1041 (16) - 0000000000965340 [01:49:42]1040 (4) - 188559 [01:49:42]1012 (4) - 22.10.2024 19:42 [01:49:42]1206 (1) - 0 [01:49:42]OFD Sender: Remove packet 188559 [01:49:42]ProducePacketName [01:49:42]name=ofd_packets/00188559 [01:49:42]NVStorageDeleteData [01:49:43]OFD Sender: No OFD packet to send [01:49:43]*** Cut start [01:49:43]*** Partial cut [01:49:43]*** CUTSNS_PIN = 1 [01:49:43]*** CUTSNS_PIN = 0 [01:49:43]*** Brake cut motor [01:49:44]Read from MH i2c: 01 [01:49:44]MH_I2C_Read... [01:49:44]*** Stop cut motor [01:49:44]*** Cut end [01:49:44]Read from MH i2c: 01 07 00 [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: 01 07 00 95 11 00 00 00 00 00 FF 0F BB [01:49:44]process_action close_receipt done [01:49:44]requested_data is exist [01:49:44]produce_requested_data [01:49:44]requested_item fm.sn is exist - process it [01:49:44]wFMCommunicate request_size=4 [01:49:44]MH_SAM_APDU [01:49:44]CAPDU: 80 11 00 00 [01:49:44]Write to MH i2c: E2 08 00 96 11 80 11 00 00 00 00 00 00 21 [01:49:44]Write i2c OK [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: E2 [01:49:44]MH_I2C_Read... [01:49:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:44]Read from MH i2c: E2 17 00 [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: E2 17 00 96 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 6F [01:49:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [01:49:44]wFMCommunicate OK [01:49:44]requested_item fd.num is exist - process it [01:49:44]SAM_PROTO_GetFieldsCounters [01:49:44]wFMCommunicate request_size=4 [01:49:44]MH_SAM_APDU [01:49:44]CAPDU: 80 13 00 00 [01:49:44]Write to MH i2c: E2 08 00 97 11 80 13 00 00 00 00 00 00 24 [01:49:44]Write i2c OK [01:49:44]MH_I2C_Read... [01:49:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:49:44]Read from MH i2c: E2 [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: E2 62 00 [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: E2 62 00 97 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F E0 02 00 0E 04 04 00 CE 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 9E [01:49:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 8F E0 02 00 0E 04 04 00 CE 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 [01:49:44]wFMCommunicate OK [01:49:44]SAM_PROTO_GetFieldsCounters done [01:49:44]requested_item shift.num is exist - process it [01:49:44]requested_item shift.opened is exist - process it [01:49:44]req_shift_opened [01:49:44]FM_GetShiftState [01:49:44]SAM_PROTO_GetShiftState [01:49:44]wFMCommunicate request_size=4 [01:49:44]MH_SAM_APDU [01:49:44]CAPDU: 80 13 01 00 [01:49:44]Write to MH i2c: E2 08 00 98 11 80 13 01 00 00 00 00 00 26 [01:49:44]Write i2c OK [01:49:44]MH_I2C_Read... [01:49:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:44]Read from MH i2c: E2 [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: E2 0E 00 [01:49:44]MH_I2C_Read... [01:49:44]Read from MH i2c: E2 0E 00 98 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 0E [01:49:44]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [01:49:44]wFMCommunicate OK [01:49:44]SAM_PROTO_GetShiftState done [01:49:44]FM_GetShiftState done [01:49:44]req_shift_opened done [01:49:44]requested_item shift.open_date is exist - process it [01:49:44]req_shift_open_date [01:49:44]req_shift_open_date done [01:49:44]produce_requested_data done [01:49:44]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188559,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [01:49:44]process_action_free close_receipt [01:49:44]json_value_free [01:49:44]json_value_free done [01:49:44]process_json_proto returns [01:49:44]Send response to host [01:49:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188559,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [01:49:44]free response buf [01:49:44]execute_script done [01:49:44]execute_script returns [01:49:44]free content buf [01:49:44]Sock 9.Close socket [01:49:44]Sock 9.Thread stoped [01:49:48]OFD Sender: No OFD packet to send [01:49:53]OFD Sender: No OFD packet to send [01:49:58]OFD Sender: No OFD packet to send [01:50:03]OFD Sender: No OFD packet to send [01:50:08]OFD Sender: No OFD packet to send [01:50:13]OFD Sender: No OFD packet to send [01:50:18]OFD Sender: No OFD packet to send [01:50:23]OFD Sender: No OFD packet to send [01:50:28]OFD Sender: No OFD packet to send [01:50:33]OFD Sender: No OFD packet to send [01:50:38]OFD Sender: No OFD packet to send [01:50:43]OFD Sender: No OFD packet to send [01:50:48]OFD Sender: No OFD packet to send [01:50:53]OFD Sender: No OFD packet to send [01:50:58]OFD Sender: No OFD packet to send [01:51:03]OFD Sender: No OFD packet to send [01:51:08]OFD Sender: No OFD packet to send [01:51:13]OFD Sender: No OFD packet to send [01:51:18]OFD Sender: No OFD packet to send [01:51:23]OFD Sender: No OFD packet to send [01:51:28]OFD Sender: No OFD packet to send [01:51:33]OFD Sender: No OFD packet to send [01:51:38]OFD Sender: No OFD packet to send [01:51:43]OFD Sender: No OFD packet to send [01:51:48]OFD Sender: No OFD packet to send [01:51:53]OFD Sender: No OFD packet to send [01:51:58]OFD Sender: No OFD packet to send [01:52:03]OFD Sender: No OFD packet to send [01:52:08]OFD Sender: No OFD packet to send [01:52:13]OFD Sender: No OFD packet to send [01:52:18]OFD Sender: No OFD packet to send [01:52:23]OFD Sender: No OFD packet to send [01:52:28]OFD Sender: No OFD packet to send [01:52:33]OFD Sender: No OFD packet to send [01:52:38]OFD Sender: No OFD packet to send [01:52:43]OFD Sender: No OFD packet to send [01:52:48]OFD Sender: No OFD packet to send [01:52:53]OFD Sender: No OFD packet to send [01:52:58]OFD Sender: No OFD packet to send [01:53:04]OFD Sender: No OFD packet to send [01:53:09]OFD Sender: No OFD packet to send [01:53:14]OFD Sender: No OFD packet to send [01:53:19]OFD Sender: No OFD packet to send [01:53:24]OFD Sender: No OFD packet to send [01:53:29]OFD Sender: No OFD packet to send [01:53:34]OFD Sender: No OFD packet to send [01:53:39]OFD Sender: No OFD packet to send [01:53:44]OFD Sender: No OFD packet to send [01:53:49]OFD Sender: No OFD packet to send [01:53:54]OFD Sender: No OFD packet to send [01:53:59]OFD Sender: No OFD packet to send [01:54:04]OFD Sender: No OFD packet to send [01:54:09]OFD Sender: No OFD packet to send [01:54:14]OFD Sender: No OFD packet to send [01:54:19]OFD Sender: No OFD packet to send [01:54:24]OFD Sender: No OFD packet to send [01:54:29]OFD Sender: No OFD packet to send [01:54:34]OFD Sender: No OFD packet to send [01:54:39]OFD Sender: No OFD packet to send [01:54:44]OFD Sender: No OFD packet to send [01:54:49]OFD Sender: No OFD packet to send [01:54:54]OFD Sender: No OFD packet to send [01:54:59]OFD Sender: No OFD packet to send [01:55:04]OFD Sender: No OFD packet to send [01:55:09]OFD Sender: No OFD packet to send [01:55:14]OFD Sender: No OFD packet to send [01:55:19]OFD Sender: No OFD packet to send [01:55:24]OFD Sender: No OFD packet to send [01:55:29]OFD Sender: No OFD packet to send [01:55:34]OFD Sender: No OFD packet to send [01:55:39]OFD Sender: No OFD packet to send [01:55:44]OFD Sender: No OFD packet to send [01:55:49]OFD Sender: No OFD packet to send [01:55:54]OFD Sender: No OFD packet to send [01:55:59]OFD Sender: No OFD packet to send [01:56:04]OFD Sender: No OFD packet to send [01:56:09]OFD Sender: No OFD packet to send [01:56:14]OFD Sender: No OFD packet to send [01:56:19]OFD Sender: No OFD packet to send [01:56:24]OFD Sender: No OFD packet to send [01:56:29]OFD Sender: No OFD packet to send [01:56:34]OFD Sender: No OFD packet to send [01:56:39]OFD Sender: No OFD packet to send [01:56:44]OFD Sender: No OFD packet to send [01:56:49]OFD Sender: No OFD packet to send [01:56:55]OFD Sender: No OFD packet to send [01:57:00]OFD Sender: No OFD packet to send [01:57:05]OFD Sender: No OFD packet to send [01:57:10]OFD Sender: No OFD packet to send [01:57:15]OFD Sender: No OFD packet to send [01:57:20]OFD Sender: No OFD packet to send [01:57:25]OFD Sender: No OFD packet to send [01:57:30]OFD Sender: No OFD packet to send [01:57:35]OFD Sender: No OFD packet to send [01:57:40]OFD Sender: No OFD packet to send [01:57:45]OFD Sender: No OFD packet to send [01:57:50]OFD Sender: No OFD packet to send [01:57:55]OFD Sender: No OFD packet to send [01:58:00]OFD Sender: No OFD packet to send [01:58:05]OFD Sender: No OFD packet to send [01:58:10]OFD Sender: No OFD packet to send [01:58:15]OFD Sender: No OFD packet to send [01:58:20]OFD Sender: No OFD packet to send [01:58:25]OFD Sender: No OFD packet to send [01:58:30]OFD Sender: No OFD packet to send [01:58:35]OFD Sender: No OFD packet to send [01:58:40]OFD Sender: No OFD packet to send [01:58:45]OFD Sender: No OFD packet to send [01:58:50]OFD Sender: No OFD packet to send [01:58:55]OFD Sender: No OFD packet to send [01:59:00]OFD Sender: No OFD packet to send [01:59:05]OFD Sender: No OFD packet to send [01:59:10]OFD Sender: No OFD packet to send [01:59:15]OFD Sender: No OFD packet to send [01:59:20]OFD Sender: No OFD packet to send [01:59:25]OFD Sender: No OFD packet to send [01:59:30]OFD Sender: No OFD packet to send [01:59:35]OFD Sender: No OFD packet to send [01:59:40]OFD Sender: No OFD packet to send [01:59:45]OFD Sender: No OFD packet to send [01:59:50]OFD Sender: No OFD packet to send [01:59:55]OFD Sender: No OFD packet to send [02:00:00]OFD Sender: No OFD packet to send [02:00:05]OFD Sender: No OFD packet to send [02:00:10]OFD Sender: No OFD packet to send [02:00:15]OFD Sender: No OFD packet to send [02:00:20]OFD Sender: No OFD packet to send [02:00:25]OFD Sender: No OFD packet to send [02:00:30]OFD Sender: No OFD packet to send [02:00:35]OFD Sender: No OFD packet to send [02:00:40]OFD Sender: No OFD packet to send [02:00:46]OFD Sender: No OFD packet to send [02:00:51]OFD Sender: No OFD packet to send [02:00:56]OFD Sender: No OFD packet to send [02:01:01]OFD Sender: No OFD packet to send [02:01:06]OFD Sender: No OFD packet to send [02:01:11]OFD Sender: No OFD packet to send [02:01:16]OFD Sender: No OFD packet to send [02:01:21]OFD Sender: No OFD packet to send [02:01:26]OFD Sender: No OFD packet to send [02:01:31]OFD Sender: No OFD packet to send [02:01:36]OFD Sender: No OFD packet to send [02:01:41]OFD Sender: No OFD packet to send [02:01:46]OFD Sender: No OFD packet to send [02:01:51]OFD Sender: No OFD packet to send [02:01:56]OFD Sender: No OFD packet to send [02:02:01]OFD Sender: No OFD packet to send [02:02:06]OFD Sender: No OFD packet to send [02:02:11]OFD Sender: No OFD packet to send [02:02:16]OFD Sender: No OFD packet to send [02:02:21]OFD Sender: No OFD packet to send [02:02:26]OFD Sender: No OFD packet to send [02:02:31]OFD Sender: No OFD packet to send [02:02:36]OFD Sender: No OFD packet to send [02:02:41]OFD Sender: No OFD packet to send [02:02:46]OFD Sender: No OFD packet to send [02:02:51]OFD Sender: No OFD packet to send [02:02:56]OFD Sender: No OFD packet to send [02:03:01]OFD Sender: No OFD packet to send [02:03:06]OFD Sender: No OFD packet to send [02:03:11]OFD Sender: No OFD packet to send [02:03:16]OFD Sender: No OFD packet to send [02:03:21]OFD Sender: No OFD packet to send [02:03:26]OFD Sender: No OFD packet to send [02:03:31]OFD Sender: No OFD packet to send [02:03:36]OFD Sender: No OFD packet to send [02:03:41]OFD Sender: No OFD packet to send [02:03:46]OFD Sender: No OFD packet to send [02:03:51]OFD Sender: No OFD packet to send [02:03:56]OFD Sender: No OFD packet to send [02:04:01]OFD Sender: No OFD packet to send [02:04:06]OFD Sender: No OFD packet to send [02:04:11]OFD Sender: No OFD packet to send [02:04:16]OFD Sender: No OFD packet to send [02:04:21]OFD Sender: No OFD packet to send [02:04:26]OFD Sender: No OFD packet to send [02:04:32]OFD Sender: No OFD packet to send [02:04:37]OFD Sender: No OFD packet to send [02:04:42]OFD Sender: No OFD packet to send [02:04:47]OFD Sender: No OFD packet to send [02:04:52]OFD Sender: No OFD packet to send [02:04:57]OFD Sender: No OFD packet to send [02:05:02]OFD Sender: No OFD packet to send [02:05:07]OFD Sender: No OFD packet to send [02:05:12]OFD Sender: No OFD packet to send [02:05:17]OFD Sender: No OFD packet to send [02:05:22]OFD Sender: No OFD packet to send [02:05:27]OFD Sender: No OFD packet to send [02:05:32]OFD Sender: No OFD packet to send [02:05:37]OFD Sender: No OFD packet to send [02:05:42]OFD Sender: No OFD packet to send [02:05:47]OFD Sender: No OFD packet to send [02:05:52]OFD Sender: No OFD packet to send [02:05:57]OFD Sender: No OFD packet to send [02:06:02]OFD Sender: No OFD packet to send [02:06:07]OFD Sender: No OFD packet to send [02:06:12]OFD Sender: No OFD packet to send [02:06:17]OFD Sender: No OFD packet to send [02:06:22]OFD Sender: No OFD packet to send [02:06:27]OFD Sender: No OFD packet to send [02:06:32]OFD Sender: No OFD packet to send [02:06:37]OFD Sender: No OFD packet to send [02:06:42]OFD Sender: No OFD packet to send [02:06:47]OFD Sender: No OFD packet to send [02:06:52]OFD Sender: No OFD packet to send [02:06:57]OFD Sender: No OFD packet to send [02:07:02]OFD Sender: No OFD packet to send [02:07:07]OFD Sender: No OFD packet to send [02:07:12]OFD Sender: No OFD packet to send [02:07:17]OFD Sender: No OFD packet to send [02:07:22]OFD Sender: No OFD packet to send [02:07:27]OFD Sender: No OFD packet to send [02:07:32]OFD Sender: No OFD packet to send [02:07:37]OFD Sender: No OFD packet to send [02:07:42]OFD Sender: No OFD packet to send [02:07:47]OFD Sender: No OFD packet to send [02:07:52]OFD Sender: No OFD packet to send [02:07:57]OFD Sender: No OFD packet to send [02:08:02]OFD Sender: No OFD packet to send [02:08:07]OFD Sender: No OFD packet to send [02:08:12]OFD Sender: No OFD packet to send [02:08:17]OFD Sender: No OFD packet to send [02:08:23]OFD Sender: No OFD packet to send [02:08:28]OFD Sender: No OFD packet to send [02:08:33]OFD Sender: No OFD packet to send [02:08:38]OFD Sender: No OFD packet to send [02:08:43]OFD Sender: No OFD packet to send [02:08:48]OFD Sender: No OFD packet to send [02:08:53]OFD Sender: No OFD packet to send [02:08:58]OFD Sender: No OFD packet to send [02:09:03]OFD Sender: No OFD packet to send [02:09:08]OFD Sender: No OFD packet to send [02:09:13]OFD Sender: No OFD packet to send [02:09:18]OFD Sender: No OFD packet to send [02:09:23]OFD Sender: No OFD packet to send [02:09:28]OFD Sender: No OFD packet to send [02:09:33]OFD Sender: No OFD packet to send [02:09:38]OFD Sender: No OFD packet to send [02:09:43]OFD Sender: No OFD packet to send [02:09:48]OFD Sender: No OFD packet to send [02:09:53]OFD Sender: No OFD packet to send [02:09:58]OFD Sender: No OFD packet to send [02:10:03]OFD Sender: No OFD packet to send [02:10:08]OFD Sender: No OFD packet to send [02:10:13]OFD Sender: No OFD packet to send [02:10:18]OFD Sender: No OFD packet to send [02:10:23]OFD Sender: No OFD packet to send [02:10:28]OFD Sender: No OFD packet to send [02:10:33]OFD Sender: No OFD packet to send [02:10:38]OFD Sender: No OFD packet to send [02:10:43]OFD Sender: No OFD packet to send [02:10:48]OFD Sender: No OFD packet to send [02:10:53]OFD Sender: No OFD packet to send [02:10:58]OFD Sender: No OFD packet to send [02:11:03]OFD Sender: No OFD packet to send [02:11:08]OFD Sender: No OFD packet to send [02:11:13]OFD Sender: No OFD packet to send [02:11:18]OFD Sender: No OFD packet to send [02:11:23]OFD Sender: No OFD packet to send [02:11:28]OFD Sender: No OFD packet to send [02:11:33]OFD Sender: No OFD packet to send [02:11:38]OFD Sender: No OFD packet to send [02:11:43]OFD Sender: No OFD packet to send [02:11:48]OFD Sender: No OFD packet to send [02:11:53]OFD Sender: No OFD packet to send [02:11:58]OFD Sender: No OFD packet to send [02:12:03]OFD Sender: No OFD packet to send [02:12:09]OFD Sender: No OFD packet to send [02:12:14]OFD Sender: No OFD packet to send [02:12:19]OFD Sender: No OFD packet to send [02:12:24]OFD Sender: No OFD packet to send [02:12:29]OFD Sender: No OFD packet to send [02:12:34]OFD Sender: No OFD packet to send [02:12:39]OFD Sender: No OFD packet to send [02:12:44]OFD Sender: No OFD packet to send [02:12:49]OFD Sender: No OFD packet to send [02:12:54]OFD Sender: No OFD packet to send [02:12:59]OFD Sender: No OFD packet to send [02:13:04]OFD Sender: No OFD packet to send [02:13:09]OFD Sender: No OFD packet to send [02:13:14]OFD Sender: No OFD packet to send [02:13:19]OFD Sender: No OFD packet to send [02:13:24]OFD Sender: No OFD packet to send [02:13:29]OFD Sender: No OFD packet to send [02:13:34]OFD Sender: No OFD packet to send [02:13:39]OFD Sender: No OFD packet to send [02:13:44]OFD Sender: No OFD packet to send [02:13:49]OFD Sender: No OFD packet to send [02:13:54]OFD Sender: No OFD packet to send [02:13:59]OFD Sender: No OFD packet to send [02:14:04]OFD Sender: No OFD packet to send [02:14:09]OFD Sender: No OFD packet to send [02:14:14]OFD Sender: No OFD packet to send [02:14:19]OFD Sender: No OFD packet to send [02:14:24]OFD Sender: No OFD packet to send [02:14:29]OFD Sender: No OFD packet to send [02:14:34]OFD Sender: No OFD packet to send [02:14:39]OFD Sender: No OFD packet to send [02:14:44]OFD Sender: No OFD packet to send [02:14:49]OFD Sender: No OFD packet to send [02:14:54]OFD Sender: No OFD packet to send [02:14:59]OFD Sender: No OFD packet to send [02:15:04]OFD Sender: No OFD packet to send [02:15:09]OFD Sender: No OFD packet to send [02:15:14]OFD Sender: No OFD packet to send [02:15:19]OFD Sender: No OFD packet to send [02:15:24]OFD Sender: No OFD packet to send [02:15:29]OFD Sender: No OFD packet to send [02:15:34]OFD Sender: No OFD packet to send [02:15:39]OFD Sender: No OFD packet to send [02:15:44]OFD Sender: No OFD packet to send [02:15:49]OFD Sender: No OFD packet to send [02:15:54]OFD Sender: No OFD packet to send [02:16:00]OFD Sender: No OFD packet to send [02:16:05]OFD Sender: No OFD packet to send [02:16:10]OFD Sender: No OFD packet to send [02:16:15]OFD Sender: No OFD packet to send [02:16:20]OFD Sender: No OFD packet to send [02:16:25]OFD Sender: No OFD packet to send [02:16:30]OFD Sender: No OFD packet to send [02:16:35]OFD Sender: No OFD packet to send [02:16:40]OFD Sender: No OFD packet to send [02:16:45]OFD Sender: No OFD packet to send [02:16:50]OFD Sender: No OFD packet to send [02:16:55]OFD Sender: No OFD packet to send [02:17:00]OFD Sender: No OFD packet to send [02:17:05]OFD Sender: No OFD packet to send [02:17:10]OFD Sender: No OFD packet to send [02:17:15]OFD Sender: No OFD packet to send [02:17:20]OFD Sender: No OFD packet to send [02:17:25]OFD Sender: No OFD packet to send [02:17:30]OFD Sender: No OFD packet to send [02:17:35]OFD Sender: No OFD packet to send [02:17:40]OFD Sender: No OFD packet to send [02:17:45]OFD Sender: No OFD packet to send [02:17:50]OFD Sender: No OFD packet to send [02:17:55]OFD Sender: No OFD packet to send [02:18:00]OFD Sender: No OFD packet to send [02:18:05]OFD Sender: No OFD packet to send [02:18:10]OFD Sender: No OFD packet to send [02:18:15]OFD Sender: No OFD packet to send [02:18:20]OFD Sender: No OFD packet to send [02:18:25]OFD Sender: No OFD packet to send [02:18:30]OFD Sender: No OFD packet to send [02:18:35]OFD Sender: No OFD packet to send [02:18:40]OFD Sender: No OFD packet to send [02:18:45]OFD Sender: No OFD packet to send [02:18:50]OFD Sender: No OFD packet to send [02:18:55]OFD Sender: No OFD packet to send [02:19:00]OFD Sender: No OFD packet to send [02:19:05]OFD Sender: No OFD packet to send [02:19:10]OFD Sender: No OFD packet to send [02:19:15]OFD Sender: No OFD packet to send [02:19:20]OFD Sender: No OFD packet to send [02:19:25]OFD Sender: No OFD packet to send [02:19:30]OFD Sender: No OFD packet to send [02:19:35]OFD Sender: No OFD packet to send [02:19:40]OFD Sender: No OFD packet to send [02:19:45]OFD Sender: No OFD packet to send [02:19:51]OFD Sender: No OFD packet to send [02:19:56]OFD Sender: No OFD packet to send [02:20:01]OFD Sender: No OFD packet to send [02:20:06]OFD Sender: No OFD packet to send [02:20:11]OFD Sender: No OFD packet to send [02:20:16]OFD Sender: No OFD packet to send [02:20:21]OFD Sender: No OFD packet to send [02:20:26]OFD Sender: No OFD packet to send [02:20:30]accept exits with 7 [02:20:30]New connection [02:20:30]New thread 3066649956 created [02:20:30]Thread 3066506596 joined [02:20:30]Waiting for new connection... [02:20:30] Sock 7.Parse request [02:20:30]Sock 7.Check first char [02:20:30]Sock 7.First char is OK [02:20:30]request: POST /json_proto HTTP/1.0 [02:20:30]Method: POST [02:20:30]URL: /json_proto [02:20:30]Method is POST - this is cgi request [02:20:30]url: /json_proto [02:20:30]query_string will be loaded in cgi processing [02:20:30]execute_cgi json_proto POST (null) [02:20:30]execute_cgi path=json_proto method=POST [02:20:30]POST find Content-Length [02:20:30]Host: 172.17.42.131:8080 [02:20:30]Content-Length: 682 [02:20:30]Content-Type: application/json [02:20:30] [02:20:30]POST finish read [02:20:30]Found Content-Length = 682 [02:20:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210619", "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" : 20.220, "sum" : 1500.32, "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" ] } } [02:20:30]execute_script... [02:20: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)210619", "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" : 20.220, "sum" : 1500.32, "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" ] } } [02:20:30]POST & json_proto [02:20:30]process_json_proto [02:20:30]json parsed OK: [02:20:30]protocol is kg_v1.0 [02:20:30]action value=close_receipt [02:20:30]process_action close_receipt [02:20:30]cmd_close_receipt [02:20:30]MH_GetDate [02:20:30]Write to MH i2c: F0 00 00 99 11 99 [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: F0 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: F0 09 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: F0 09 00 99 11 00 70 5D 18 67 A0 18 CA 66 D6 [02:20:30]GetLastDocTimeStamp 1729648181 [02:20:30]current date 1729650032 [02:20:30]FM_GetShiftState [02:20:30]SAM_PROTO_GetShiftState [02:20:30]wFMCommunicate request_size=4 [02:20:30]MH_SAM_APDU [02:20:30]CAPDU: 80 13 01 00 [02:20:30]Write to MH i2c: E2 08 00 9A 11 80 13 01 00 00 00 00 00 28 [02:20:30]Write i2c OK [02:20:30]MH_I2C_Read... [02:20:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:30]Read from MH i2c: E2 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 0E 00 [02:20:30]MH_I2C_Read... [02:20:30]Read from MH i2c: E2 0E 00 9A 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 10 [02:20:30]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:20:30]wFMCommunicate OK [02:20:30]SAM_PROTO_GetShiftState done [02:20:30]FM_GetShiftState done [02:20:30]opened in 1729642525 [02:20:30]opened+sec_in_day 1729728925 [02:20:30]quantity*price = 150032 [02:20:30]sum+1 = 150033 [02:20:30]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 18 23.10.2024 02:20 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188560 ФПД: 208606528561961 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022032&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188560&fm=208606528561961&tin=02508201610067®Number=0000000000100030&sum=150000 [02:20:31]StoreToDocumentArchive [02:20:31]shift 462 fd 188560 [02:20:31]save to /storage/0462/doc_00188560 [02:20:31]save last doc name /storage/0462/doc_00188560 to /storage/kkm_last_doc_name [02:20:31]save OK [02:20:31]Clear old archive folders... [02:20:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:20:31]tlvbuf is 00933C80 [02:20:31]SAM_PROTO_ClearQueue [02:20:31]wFMCommunicate request_size=4 [02:20:31]MH_SAM_APDU [02:20:31]CAPDU: 80 09 00 00 [02:20:31]Write to MH i2c: E2 08 00 A7 11 80 09 00 00 00 00 00 00 2A [02:20:31]Write i2c OK [02:20:31]MH_I2C_Read... [02:20:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:20:31]Read from MH i2c: E2 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: E2 03 00 [02:20:31]MH_I2C_Read... [02:20:31]Read from MH i2c: E2 03 00 A7 11 00 90 00 2C [02:20:31]RAPDU: 90 00 [02:20:31]wFMCommunicate OK [02:20:31]SAM_PROTO_ClearQueue done [02:20:31]KKMCreateOFDPacket [02:20:31]OFDProtocolAddRootSTLVToBuf [02:20:31]FM_MakeSignedData [02:20:31]FM_MakeSignedData [02:20:31]SAM_PROTO_SignData [02:20:31]wFMCommunicate request_size=4 [02:20:31]MH_SAM_APDU [02:20:31]CAPDU: 80 0D 01 02 [02:20:31]Write to MH i2c: E2 08 00 A8 11 80 0D 01 02 00 00 00 00 32 [02:20:31]Write i2c OK [02:20:31]MH_I2C_Read... [02:20:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:20:32]Read from MH i2c: E2 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 03 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 03 00 A8 11 00 90 00 2D [02:20:32]RAPDU: 90 00 [02:20:32]wFMCommunicate OK [02:20:32]wFMCommunicate request_size=255 [02:20:32]MH_SAM_APDU [02:20:32]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 5D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E0 02 00 35 04 06 00 BD [02:20:32]Write to MH i2c: E2 02 01 A9 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 5D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E0 02 00 35 04 06 00 BD 00 00 64 [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:32]Read from MH i2c: E2 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 03 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 03 00 A9 11 00 90 00 2E [02:20:32]RAPDU: 90 00 [02:20:32]wFMCommunicate OK [02:20:32]wFMCommunicate request_size=10 [02:20:32]MH_SAM_APDU [02:20:32]CAPDU: 80 0D 02 02 05 B9 FE 08 63 29 [02:20:32]Write to MH i2c: E2 0D 00 AA 11 80 0D 02 02 05 00 B9 FE 08 63 29 00 00 8A [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:20:32]Read from MH i2c: E2 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 03 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 03 00 AA 11 00 90 00 2F [02:20:32]RAPDU: 90 00 [02:20:32]wFMCommunicate OK [02:20:32]wFMCommunicate request_size=4 [02:20:32]MH_SAM_APDU [02:20:32]CAPDU: 80 0D 03 02 [02:20:32]Write to MH i2c: E2 08 00 AB 11 80 0D 03 02 00 00 00 00 37 [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:20:32]Read from MH i2c: E2 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 0B 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 0B 00 AB 11 00 53 DC 93 80 68 F9 46 18 90 00 39 [02:20:32]RAPDU: 53 DC 93 80 68 F9 46 18 90 00 [02:20:32]wFMCommunicate OK [02:20:32]SAM_PROTO_SignData done [02:20:32]FM_MakeSignedData done [02:20:32]CreateOFDProtocolMessage [02:20:32]wFMCommunicate request_size=4 [02:20:32]MH_SAM_APDU [02:20:32]CAPDU: 80 11 00 00 [02:20:32]Write to MH i2c: E2 08 00 AC 11 80 11 00 00 00 00 00 00 37 [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:32]Read from MH i2c: E2 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 17 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: E2 17 00 AC 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 85 [02:20:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:20:32]wFMCommunicate OK [02:20:32]CreateOFDProtocolMessage done [02:20:32]OFDSenderStorePacket 188560 [02:20:32]StoreOFDPacket docnum=188560 [02:20:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 6B 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 5D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E0 02 00 35 04 06 00 BD B9 FE 08 63 29 53 DC 93 80 68 F9 46 18 [02:20:32]CheckFolder [02:20:32]dirname=/storage/ofd_packets [02:20:32]CheckFolder done [02:20:32]ProducePacketName [02:20:32]name=ofd_packets/00188560 [02:20:32]NVStorageSaveData ofd_packets/00188560 [02:20:32]File name is /storage/ofd_packets/00188560 [02:20:32]Write 301 bytes [02:20:32]NVStorageSaveData done [02:20:32]OFDSenderStorePacket done [02:20:32]KKMCreateOFDPacket done [02:20:32]NVStorageSaveData kkm_last_timestamp [02:20:32]File name is /storage/kkm_last_timestamp [02:20:32]Write 4 bytes [02:20:32]NVStorageSaveData done [02:20:32]ExternCall_PrintAddStr [02:20:32]wPrintStart [02:20:32]Write to MH i2c: 01 00 00 AD 11 BE [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 07 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 07 00 AD 11 00 00 00 00 00 FF 0F D3 [02:20:32]RasterBufferAndPrint [02:20:32]line Счет N : (1)210619 [02:20:32]line ИНН: 02508201610067 [02:20:32]line Контрольно-Кассовый Чек [02:20:32]line ПРОДАЖА [02:20:32]line ТРК (МРК, ГНК) : 43 [02:20:32]line Товар: 2710124500 [02:20:32]line Аи-95-К-3 [02:20:32]line 20.220 * 74.20 [02:20:32]line = 1500.32 [02:20:32]line НДС 12% НСП 1% [02:20:32]line > о реализуемом товаре [02:20:32]line ОКРУГЛЕНИЕ: -0.32 [02:20:32]line ИТОГО: 1500.00 [02:20:32]line Внесено: 1500.00 [02:20:32]line СДАЧА: 0.00 [02:20:32]line НСП 1% : 13.28 [02:20:32]line НДС 12% : 159.33 [02:20:32]line Наличными: 1500.00 [02:20:32]line Безнал.: 0.00 [02:20:32]line Место: АЗС № 86 "Партнер Нефть" [02:20:32]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:20:32]line СНО: Общий режим [02:20:32]line Чек 18 23.10.2024 02:20 [02:20:32]line Смена: 462 ФФД: 1.0 [02:20:32]line ЗНМ: 0300000155 [02:20:32]line РНМ: 0000000000100030 [02:20:32]line Версия ККМ: 001 [02:20:32]line ФМ: 0000000000965340 [02:20:32]line ФД: 188560 [02:20:32]line ФПД: 208606528561961 [02:20:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022032&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188560&fm=208606528561961&tin=02508201610067®Number=0000000000100030&sum=150000 [02:20:32]written 0, free lines is 4095 [02:20:32]OFD Sender: Processing packet 188560 [packets to send 1062, broken 1061] [02:20:32]ProducePacketName [02:20:32]name=ofd_packets/00188560 [02:20:32]OFD Sender: To server: pG, [02:20:32]CommunicateWithHost lk.salyk.kg:30040 [02:20:32]ConnectInit lk.salyk.kg [02:20:32]Connected sock=10 [02:20:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 A0 6B 07 01 84 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 FC 4E 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 10 4A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F0 49 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3D 3E 00 00 00 00 07 04 06 00 F0 49 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 70 5D 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 90 E0 02 00 35 04 06 00 BD B9 FE 08 63 29 53 DC 93 80 68 F9 46 18 [02:20:32]Write to MH i2c: 01 00 00 D8 11 E9 [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 07 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: 01 07 00 D8 11 00 00 00 00 00 6D 0C 69 [02:20:32]RasterBufferAndPrint [02:20:32]line [02:20:32]line [02:20:32]line [02:20:32]line [02:20:32]line [02:20:32]written 0, free lines is 3184 [02:20:32]MH_Cut [02:20:32]Write to MH i2c: D1 01 00 DF 11 01 C2 [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: D1 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: D1 01 00 [02:20:32]MH_I2C_Read... [02:20:32]Read from MH i2c: D1 01 00 DF 11 00 C1 [02:20:32]Write to MH i2c: 01 00 00 E0 11 F1 [02:20:32]Write i2c OK [02:20:32]MH_I2C_Read... [02:20:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 55 C2 47 00 73 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 39 36 35 33 34 30 10 04 04 00 90 E0 02 00 F4 03 04 00 5C 07 18 67 B6 04 01 00 00 13 4E FD 05 BD 13 D1 25 [02:20:33]CommunicateWithHost err = 0 [02:20:33]CheckOFDResponse [02:20:33]1017 (14) - 77093643461234 [02:20:33]1041 (16) - 0000000000965340 [02:20:33]1040 (4) - 188560 [02:20:33]1012 (4) - 22.10.2024 20:13 [02:20:33]1206 (1) - 0 [02:20:33]OFD Sender: Remove packet 188560 [02:20:33]ProducePacketName [02:20:33]name=ofd_packets/00188560 [02:20:33]NVStorageDeleteData [02:20:33]OFD Sender: No OFD packet to send [02:20:34]*** Cut start [02:20:34]*** Partial cut [02:20:34]*** CUTSNS_PIN = 1 [02:20:34]*** CUTSNS_PIN = 0 [02:20:34]*** Brake cut motor [02:20:34]Read from MH i2c: 01 [02:20:34]MH_I2C_Read... [02:20:34]*** Stop cut motor [02:20:34]*** Cut end [02:20:34]Read from MH i2c: 01 07 00 [02:20:34]MH_I2C_Read... [02:20:34]Read from MH i2c: 01 07 00 E0 11 00 00 00 00 00 FF 0F 06 [02:20:34]process_action close_receipt done [02:20:34]requested_data is exist [02:20:34]produce_requested_data [02:20:34]requested_item fm.sn is exist - process it [02:20:34]wFMCommunicate request_size=4 [02:20:34]MH_SAM_APDU [02:20:34]CAPDU: 80 11 00 00 [02:20:34]Write to MH i2c: E2 08 00 E1 11 80 11 00 00 00 00 00 00 6C [02:20:34]Write i2c OK [02:20:34]MH_I2C_Read... [02:20:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:20:34]Read from MH i2c: E2 [02:20:34]MH_I2C_Read... [02:20:34]Read from MH i2c: E2 17 00 [02:20:34]MH_I2C_Read... [02:20:34]Read from MH i2c: E2 17 00 E1 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 BA [02:20:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:20:34]wFMCommunicate OK [02:20:34]requested_item fd.num is exist - process it [02:20:34]SAM_PROTO_GetFieldsCounters [02:20:34]wFMCommunicate request_size=4 [02:20:34]MH_SAM_APDU [02:20:34]CAPDU: 80 13 00 00 [02:20:34]Write to MH i2c: E2 08 00 E2 11 80 13 00 00 00 00 00 00 6F [02:20:34]Write i2c OK [02:20:34]MH_I2C_Read... [02:20:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:20:35]Read from MH i2c: E2 [02:20:35]MH_I2C_Read... [02:20:35]Read from MH i2c: E2 62 00 [02:20:35]MH_I2C_Read... [02:20:35]Read from MH i2c: E2 62 00 E2 11 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 E0 02 00 0E 04 04 00 CE 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 ED [02:20:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 90 E0 02 00 0E 04 04 00 CE 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 [02:20:35]wFMCommunicate OK [02:20:35]SAM_PROTO_GetFieldsCounters done [02:20:35]requested_item shift.num is exist - process it [02:20:35]requested_item shift.opened is exist - process it [02:20:35]req_shift_opened [02:20:35]FM_GetShiftState [02:20:35]SAM_PROTO_GetShiftState [02:20:35]wFMCommunicate request_size=4 [02:20:35]MH_SAM_APDU [02:20:35]CAPDU: 80 13 01 00 [02:20:35]Write to MH i2c: E2 08 00 E3 11 80 13 01 00 00 00 00 00 71 [02:20:35]Write i2c OK [02:20:35]MH_I2C_Read... [02:20:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:20:35]Read from MH i2c: E2 [02:20:35]MH_I2C_Read... [02:20:35]Read from MH i2c: E2 0E 00 [02:20:35]MH_I2C_Read... [02:20:35]Read from MH i2c: E2 0E 00 E3 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 59 [02:20:35]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:20:35]wFMCommunicate OK [02:20:35]SAM_PROTO_GetShiftState done [02:20:35]FM_GetShiftState done [02:20:35]req_shift_opened done [02:20:35]requested_item shift.open_date is exist - process it [02:20:35]req_shift_open_date [02:20:35]req_shift_open_date done [02:20:35]produce_requested_data done [02:20:35]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188560,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [02:20:35]process_action_free close_receipt [02:20:35]json_value_free [02:20:35]json_value_free done [02:20:35]process_json_proto returns [02:20:35]Send response to host [02:20:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188560,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [02:20:35]free response buf [02:20:35]execute_script done [02:20:35]execute_script returns [02:20:35]free content buf [02:20:35]Sock 7.Close socket [02:20:35]Sock 7.Thread stoped [02:20:38]OFD Sender: No OFD packet to send [02:20:43]OFD Sender: No OFD packet to send [02:20:48]OFD Sender: No OFD packet to send [02:20:53]OFD Sender: No OFD packet to send [02:20:58]OFD Sender: No OFD packet to send [02:21:03]OFD Sender: No OFD packet to send [02:21:08]OFD Sender: No OFD packet to send [02:21:13]OFD Sender: No OFD packet to send [02:21:18]OFD Sender: No OFD packet to send [02:21:23]OFD Sender: No OFD packet to send [02:21:28]OFD Sender: No OFD packet to send [02:21:33]OFD Sender: No OFD packet to send [02:21:39]OFD Sender: No OFD packet to send [02:21:44]OFD Sender: No OFD packet to send [02:21:49]OFD Sender: No OFD packet to send [02:21:54]OFD Sender: No OFD packet to send [02:21:59]OFD Sender: No OFD packet to send [02:22:04]OFD Sender: No OFD packet to send [02:22:09]OFD Sender: No OFD packet to send [02:22:14]OFD Sender: No OFD packet to send [02:22:19]OFD Sender: No OFD packet to send [02:22:24]OFD Sender: No OFD packet to send [02:22:29]OFD Sender: No OFD packet to send [02:22:34]OFD Sender: No OFD packet to send [02:22:39]OFD Sender: No OFD packet to send [02:22:44]OFD Sender: No OFD packet to send [02:22:49]OFD Sender: No OFD packet to send [02:22:54]OFD Sender: No OFD packet to send [02:22:59]OFD Sender: No OFD packet to send [02:23:04]OFD Sender: No OFD packet to send [02:23:09]OFD Sender: No OFD packet to send [02:23:14]OFD Sender: No OFD packet to send [02:23:15]accept exits with 9 [02:23:15]New connection [02:23:15]New thread 3066506596 created [02:23:15]Thread 3066649956 joined [02:23:15]Waiting for new connection... [02:23:15] Sock 9.Parse request [02:23:15]Sock 9.Check first char [02:23:15]Sock 9.First char is OK [02:23:15]request: POST /json_proto HTTP/1.0 [02:23:15]Method: POST [02:23:15]URL: /json_proto [02:23:15]Method is POST - this is cgi request [02:23:15]url: /json_proto [02:23:15]query_string will be loaded in cgi processing [02:23:15]execute_cgi json_proto POST (null) [02:23:15]execute_cgi path=json_proto method=POST [02:23:15]POST find Content-Length [02:23:15]Host: 172.17.42.131:8080 [02:23:15]Content-Length: 679 [02:23:15]Content-Type: application/json [02:23:15] [02:23:15]POST finish read [02:23:15]Found Content-Length = 679 [02:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:15]execute_script... [02: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)210620", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422-\u041A-5", "price" : 76.20, "quantity" : 52.500, "sum" : 4000.50, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 4000.00, "total" : 4000.00, "payments": [ { "type": 0, "sum" : 4000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:15]POST & json_proto [02:23:15]process_json_proto [02:23:15]json parsed OK: [02:23:15]protocol is kg_v1.0 [02:23:15]action value=close_receipt [02:23:15]process_action close_receipt [02:23:15]cmd_close_receipt [02:23:15]MH_GetDate [02:23:15]Write to MH i2c: F0 00 00 E4 11 E4 [02:23:15]Write i2c OK [02:23:15]MH_I2C_Read... [02:23:15]Read from MH i2c: F0 [02:23:15]MH_I2C_Read... [02:23:15]Read from MH i2c: F0 09 00 [02:23:15]MH_I2C_Read... [02:23:15]Read from MH i2c: F0 09 00 E4 11 00 15 5E 18 67 A0 18 CA 66 C7 [02:23:15]GetLastDocTimeStamp 1729650032 [02:23:15]current date 1729650197 [02:23:15]FM_GetShiftState [02:23:15]SAM_PROTO_GetShiftState [02:23:15]wFMCommunicate request_size=4 [02:23:15]MH_SAM_APDU [02:23:15]CAPDU: 80 13 01 00 [02:23:15]Write to MH i2c: E2 08 00 E5 11 80 13 01 00 00 00 00 00 73 [02:23:15]Write i2c OK [02:23:15]MH_I2C_Read... [02:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:15]Read from MH i2c: E2 [02:23:15]MH_I2C_Read... [02:23:15]Read from MH i2c: E2 0E 00 [02:23:15]MH_I2C_Read... [02:23:15]Read from MH i2c: E2 0E 00 E5 11 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 5B [02:23:15]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:23:15]wFMCommunicate OK [02:23:15]SAM_PROTO_GetShiftState done [02:23:15]FM_GetShiftState done [02:23:15]opened in 1729642525 [02:23:15]opened+sec_in_day 1729728925 [02:23:15]quantity*price = 400050 [02:23:15]sum+1 = 400051 [02:23:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.50 ИТОГО: 4000.00 Внесено: 4000.00 СДАЧА: 0.00 НСП 1% : 35.40 НДС 12% : 424.83 Наличными: 4000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 19 23.10.2024 02:23 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188561 ФПД: 257335439382077 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188561&fm=257335439382077&tin=02508201610067®Number=0000000000100030&sum=400000 [02:23:16]StoreToDocumentArchive [02:23:16]shift 462 fd 188561 [02:23:16]save to /storage/0462/doc_00188561 [02:23:16]save last doc name /storage/0462/doc_00188561 to /storage/kkm_last_doc_name [02:23:16]save OK [02:23:16]Clear old archive folders... [02:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:23:16]tlvbuf is 008F2C80 [02:23:16]SAM_PROTO_ClearQueue [02:23:16]wFMCommunicate request_size=4 [02:23:16]MH_SAM_APDU [02:23:16]CAPDU: 80 09 00 00 [02:23:16]Write to MH i2c: E2 08 00 F2 11 80 09 00 00 00 00 00 00 75 [02:23:16]Write i2c OK [02:23:16]MH_I2C_Read... [02:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:23:16]Read from MH i2c: E2 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: E2 03 00 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: E2 03 00 F2 11 00 90 00 77 [02:23:16]RAPDU: 90 00 [02:23:16]wFMCommunicate OK [02:23:16]SAM_PROTO_ClearQueue done [02:23:16]KKMCreateOFDPacket [02:23:16]OFDProtocolAddRootSTLVToBuf [02:23:16]FM_MakeSignedData [02:23:16]FM_MakeSignedData [02:23:16]SAM_PROTO_SignData [02:23:16]wFMCommunicate request_size=4 [02:23:16]MH_SAM_APDU [02:23:16]CAPDU: 80 0D 01 02 [02:23:16]Write to MH i2c: E2 08 00 F3 11 80 0D 01 02 00 00 00 00 7D [02:23:16]Write i2c OK [02:23:16]MH_I2C_Read... [02:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:23:16]Read from MH i2c: E2 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: E2 03 00 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: E2 03 00 F3 11 00 90 00 78 [02:23:16]RAPDU: 90 00 [02:23:16]wFMCommunicate OK [02:23:16]wFMCommunicate request_size=255 [02:23:16]MH_SAM_APDU [02: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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 15 5E 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E0 02 00 35 04 06 00 EA 0B 93 73 [02:23:16]Write to MH i2c: E2 02 01 F4 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 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 15 5E 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E0 02 00 35 04 06 00 EA 0B 93 73 00 00 4F [02:23:16]Write i2c OK [02:23:16]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:17]Read from MH i2c: E2 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 03 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 03 00 F4 11 00 90 00 79 [02:23:17]RAPDU: 90 00 [02:23:17]wFMCommunicate OK [02:23:17]wFMCommunicate request_size=7 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 0D 02 02 02 D6 3D [02:23:17]Write to MH i2c: E2 0A 00 F5 11 80 0D 02 02 02 00 D6 3D 00 00 97 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:17]Read from MH i2c: E2 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 03 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 03 00 F5 11 00 90 00 7A [02:23:17]RAPDU: 90 00 [02:23:17]wFMCommunicate OK [02:23:17]wFMCommunicate request_size=4 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 0D 03 02 [02:23:17]Write to MH i2c: E2 08 00 F6 11 80 0D 03 02 00 00 00 00 82 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:23:17]Read from MH i2c: E2 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 0B 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 0B 00 F6 11 00 74 B4 72 38 51 E9 B8 83 90 00 CA [02:23:17]RAPDU: 74 B4 72 38 51 E9 B8 83 90 00 [02:23:17]wFMCommunicate OK [02:23:17]SAM_PROTO_SignData done [02:23:17]FM_MakeSignedData done [02:23:17]CreateOFDProtocolMessage [02:23:17]wFMCommunicate request_size=4 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 11 00 00 [02:23:17]Write to MH i2c: E2 08 00 F7 11 80 11 00 00 00 00 00 00 82 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:17]Read from MH i2c: E2 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 17 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: E2 17 00 F7 11 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 D0 [02:23:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:23:17]wFMCommunicate OK [02:23:17]CreateOFDProtocolMessage done [02:23:17]OFDSenderStorePacket 188561 [02:23:17]StoreOFDPacket docnum=188561 [02:23:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 68 F6 04 01 0C 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 15 5E 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E0 02 00 35 04 06 00 EA 0B 93 73 D6 3D 74 B4 72 38 51 E9 B8 83 [02:23:17]CheckFolder [02:23:17]dirname=/storage/ofd_packets [02:23:17]CheckFolder done [02:23:17]ProducePacketName [02:23:17]name=ofd_packets/00188561 [02:23:17]NVStorageSaveData ofd_packets/00188561 [02:23:17]File name is /storage/ofd_packets/00188561 [02:23:17]Write 298 bytes [02:23:17]NVStorageSaveData done [02:23:17]OFDSenderStorePacket done [02:23:17]KKMCreateOFDPacket done [02:23:17]NVStorageSaveData kkm_last_timestamp [02:23:17]File name is /storage/kkm_last_timestamp [02:23:17]Write 4 bytes [02:23:17]NVStorageSaveData done [02:23:17]ExternCall_PrintAddStr [02:23:17]wPrintStart [02:23:17]Write to MH i2c: 01 00 00 F8 11 09 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: 01 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: 01 07 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: 01 07 00 F8 11 00 00 00 00 00 FF 0F 1E [02:23:17]RasterBufferAndPrint [02:23:17]line Счет N : (1)210620 [02:23:17]line ИНН: 02508201610067 [02:23:17]line Контрольно-Кассовый Чек [02:23:17]line ПРОДАЖА [02:23:17]line ТРК (МРК, ГНК) : 51 [02:23:17]line Товар: 2710194210 [02:23:17]line ДТ-К-5 [02:23:17]line 52.500 * 76.20 [02:23:17]line = 4000.50 [02:23:17]line НДС 12% НСП 1% [02:23:17]line > о реализуемом товаре [02:23:17]line ОКРУГЛЕНИЕ: -0.50 [02:23:17]line ИТОГО: 4000.00 [02:23:17]line Внесено: 4000.00 [02:23:17]line СДАЧА: 0.00 [02:23:17]line НСП 1% : 35.40 [02:23:17]line НДС 12% : 424.83 [02:23:17]line Наличными: 4000.00 [02:23:17]line Безнал.: 0.00 [02:23:17]line Место: АЗС № 86 "Партнер Нефть" [02:23:17]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:23:17]line СНО: Общий режим [02:23:17]line Чек 19 23.10.2024 02:23 [02:23:17]line Смена: 462 ФФД: 1.0 [02:23:17]line ЗНМ: 0300000155 [02:23:17]line РНМ: 0000000000100030 [02:23:17]line Версия ККМ: 001 [02:23:17]line ФМ: 0000000000965340 [02:23:17]line ФД: 188561 [02:23:17]line ФПД: 257335439382077 [02:23:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T022317&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188561&fm=257335439382077&tin=02508201610067®Number=0000000000100030&sum=400000 [02:23:17]written 0, free lines is 4095 [02:23:17]OFD Sender: Processing packet 188561 [packets to send 1062, broken 1061] [02:23:17]ProducePacketName [02:23:17]name=ofd_packets/00188561 [02:23:17]OFD Sender: To server: pG, [02:23:17]CommunicateWithHost lk.salyk.kg:30040 [02:23:17]ConnectInit lk.salyk.kg [02:23:17]Connected sock=10 [02:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 68 F6 04 01 0C 1D 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 14 CD 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 B2 1A 06 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 1A 06 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D4 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F3 A5 00 00 00 00 07 04 06 00 80 1A 06 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 15 5E 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 91 E0 02 00 35 04 06 00 EA 0B 93 73 D6 3D 74 B4 72 38 51 E9 B8 83 [02:23:17]Write to MH i2c: 01 00 00 23 12 35 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: 01 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: 01 07 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: 01 07 00 23 12 00 00 00 00 00 4B 0C 93 [02:23:17]RasterBufferAndPrint [02:23:17]line [02:23:17]line [02:23:17]line [02:23:17]line [02:23:17]line [02:23:17]written 0, free lines is 3150 [02:23:17]MH_Cut [02:23:17]Write to MH i2c: D1 01 00 2A 12 01 0E [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: D1 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: D1 01 00 [02:23:17]MH_I2C_Read... [02:23:17]Read from MH i2c: D1 01 00 2A 12 00 0D [02:23:17]Write to MH i2c: 01 00 00 2B 12 3D [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 59 51 47 00 12 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 39 36 35 33 34 30 10 04 04 00 91 E0 02 00 F4 03 04 00 01 08 18 67 B6 04 01 00 00 FD DB 21 0F E4 0E 4E 2A [02:23:17]CommunicateWithHost err = 0 [02:23:17]CheckOFDResponse [02:23:17]1017 (14) - 77093643461234 [02:23:17]1041 (16) - 0000000000965340 [02:23:17]1040 (4) - 188561 [02:23:17]1012 (4) - 22.10.2024 20:16 [02:23:17]1206 (1) - 0 [02:23:17]OFD Sender: Remove packet 188561 [02:23:17]ProducePacketName [02:23:17]name=ofd_packets/00188561 [02:23:17]NVStorageDeleteData [02:23:18]OFD Sender: No OFD packet to send [02:23:19]*** Cut start [02:23:19]*** Partial cut [02:23:19]*** CUTSNS_PIN = 1 [02:23:19]*** CUTSNS_PIN = 0 [02:23:19]*** Brake cut motor [02:23:19]Read from MH i2c: 01 [02:23:19]MH_I2C_Read... [02:23:19]*** Stop cut motor [02:23:19]*** Cut end [02:23:19]Read from MH i2c: 01 07 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 07 00 2B 12 00 00 00 00 00 FF 0F 52 [02:23:19]process_action close_receipt done [02:23:19]requested_data is exist [02:23:19]produce_requested_data [02:23:19]requested_item fm.sn is exist - process it [02:23:19]wFMCommunicate request_size=4 [02:23:19]MH_SAM_APDU [02:23:19]CAPDU: 80 11 00 00 [02:23:19]Write to MH i2c: E2 08 00 2C 12 80 11 00 00 00 00 00 00 B8 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:19]Read from MH i2c: E2 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: E2 17 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: E2 17 00 2C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 06 [02:23:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:23:19]wFMCommunicate OK [02:23:19]requested_item fd.num is exist - process it [02:23:19]SAM_PROTO_GetFieldsCounters [02:23:19]wFMCommunicate request_size=4 [02:23:19]MH_SAM_APDU [02:23:19]CAPDU: 80 13 00 00 [02:23:19]Write to MH i2c: E2 08 00 2D 12 80 13 00 00 00 00 00 00 BB [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:23:19]Read from MH i2c: E2 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: E2 62 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: E2 62 00 2D 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 E0 02 00 0E 04 04 00 CE 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 3D [02:23:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 91 E0 02 00 0E 04 04 00 CE 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 [02:23:19]wFMCommunicate OK [02:23:19]SAM_PROTO_GetFieldsCounters done [02:23:19]requested_item shift.num is exist - process it [02:23:19]requested_item shift.opened is exist - process it [02:23:19]req_shift_opened [02:23:19]FM_GetShiftState [02:23:19]SAM_PROTO_GetShiftState [02:23:19]wFMCommunicate request_size=4 [02:23:19]MH_SAM_APDU [02:23:19]CAPDU: 80 13 01 00 [02:23:19]Write to MH i2c: E2 08 00 2E 12 80 13 01 00 00 00 00 00 BD [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:19]Read from MH i2c: E2 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: E2 0E 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: E2 0E 00 2E 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A5 [02:23:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:23:20]wFMCommunicate OK [02:23:20]SAM_PROTO_GetShiftState done [02:23:20]FM_GetShiftState done [02:23:20]req_shift_opened done [02:23:20]requested_item shift.open_date is exist - process it [02:23:20]req_shift_open_date [02:23:20]req_shift_open_date done [02:23:20]produce_requested_data done [02:23:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188561,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [02:23:20]process_action_free close_receipt [02:23:20]json_value_free [02:23:20]json_value_free done [02:23:20]process_json_proto returns [02:23:20]Send response to host [02:23:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188561,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [02:23:20]free response buf [02:23:20]execute_script done [02:23:20]execute_script returns [02:23:20]free content buf [02:23:20]Sock 9.Close socket [02:23:20]Sock 9.Thread stoped [02:23:23]OFD Sender: No OFD packet to send [02:23:28]OFD Sender: No OFD packet to send [02:23:33]OFD Sender: No OFD packet to send [02:23:38]OFD Sender: No OFD packet to send [02:23:43]OFD Sender: No OFD packet to send [02:23:48]OFD Sender: No OFD packet to send [02:23:53]OFD Sender: No OFD packet to send [02:23:58]OFD Sender: No OFD packet to send [02:24:03]OFD Sender: No OFD packet to send [02:24:08]OFD Sender: No OFD packet to send [02:24:13]OFD Sender: No OFD packet to send [02:24:18]OFD Sender: No OFD packet to send [02:24:23]OFD Sender: No OFD packet to send [02:24:28]OFD Sender: No OFD packet to send [02:24:33]OFD Sender: No OFD packet to send [02:24:38]OFD Sender: No OFD packet to send [02:24:43]OFD Sender: No OFD packet to send [02:24:48]OFD Sender: No OFD packet to send [02:24:53]OFD Sender: No OFD packet to send [02:24:58]OFD Sender: No OFD packet to send [02:25:03]OFD Sender: No OFD packet to send [02:25:08]OFD Sender: No OFD packet to send [02:25:13]OFD Sender: No OFD packet to send [02:25:18]OFD Sender: No OFD packet to send [02:25:23]OFD Sender: No OFD packet to send [02:25:28]OFD Sender: No OFD packet to send [02:25:33]OFD Sender: No OFD packet to send [02:25:39]OFD Sender: No OFD packet to send [02:25:44]OFD Sender: No OFD packet to send [02:25:49]OFD Sender: No OFD packet to send [02:25:54]OFD Sender: No OFD packet to send [02:25:59]OFD Sender: No OFD packet to send [02:26:04]OFD Sender: No OFD packet to send [02:26:09]OFD Sender: No OFD packet to send [02:26:14]OFD Sender: No OFD packet to send [02:26:19]OFD Sender: No OFD packet to send [02:26:24]OFD Sender: No OFD packet to send [02:26:29]OFD Sender: No OFD packet to send [02:26:34]OFD Sender: No OFD packet to send [02:26:39]OFD Sender: No OFD packet to send [02:26:44]OFD Sender: No OFD packet to send [02:26:49]OFD Sender: No OFD packet to send [02:26:54]OFD Sender: No OFD packet to send [02:26:59]OFD Sender: No OFD packet to send [02:27:04]OFD Sender: No OFD packet to send [02:27:09]OFD Sender: No OFD packet to send [02:27:14]OFD Sender: No OFD packet to send [02:27:19]OFD Sender: No OFD packet to send [02:27:24]OFD Sender: No OFD packet to send [02:27:29]OFD Sender: No OFD packet to send [02:27:34]OFD Sender: No OFD packet to send [02:27:39]OFD Sender: No OFD packet to send [02:27:44]OFD Sender: No OFD packet to send [02:27:49]OFD Sender: No OFD packet to send [02:27:54]OFD Sender: No OFD packet to send [02:27:59]OFD Sender: No OFD packet to send [02:28:04]OFD Sender: No OFD packet to send [02:28:09]OFD Sender: No OFD packet to send [02:28:14]OFD Sender: No OFD packet to send [02:28:19]OFD Sender: No OFD packet to send [02:28:24]OFD Sender: No OFD packet to send [02:28:29]OFD Sender: No OFD packet to send [02:28:34]OFD Sender: No OFD packet to send [02:28:39]OFD Sender: No OFD packet to send [02:28:44]OFD Sender: No OFD packet to send [02:28:49]OFD Sender: No OFD packet to send [02:28:54]OFD Sender: No OFD packet to send [02:28:59]OFD Sender: No OFD packet to send [02:29:04]OFD Sender: No OFD packet to send [02:29:09]OFD Sender: No OFD packet to send [02:29:14]OFD Sender: No OFD packet to send [02:29:19]OFD Sender: No OFD packet to send [02:29:24]OFD Sender: No OFD packet to send [02:29:30]OFD Sender: No OFD packet to send [02:29:35]OFD Sender: No OFD packet to send [02:29:40]OFD Sender: No OFD packet to send [02:29:45]OFD Sender: No OFD packet to send [02:29:50]OFD Sender: No OFD packet to send [02:29:55]OFD Sender: No OFD packet to send [02:30:00]OFD Sender: No OFD packet to send [02:30:05]OFD Sender: No OFD packet to send [02:30:10]OFD Sender: No OFD packet to send [02:30:15]OFD Sender: No OFD packet to send [02:30:20]OFD Sender: No OFD packet to send [02:30:25]OFD Sender: No OFD packet to send [02:30:30]OFD Sender: No OFD packet to send [02:30:35]OFD Sender: No OFD packet to send [02:30:40]OFD Sender: No OFD packet to send [02:30:45]OFD Sender: No OFD packet to send [02:30:50]OFD Sender: No OFD packet to send [02:30:55]OFD Sender: No OFD packet to send [02:31:00]OFD Sender: No OFD packet to send [02:31:05]OFD Sender: No OFD packet to send [02:31:10]OFD Sender: No OFD packet to send [02:31:15]OFD Sender: No OFD packet to send [02:31:20]OFD Sender: No OFD packet to send [02:31:25]OFD Sender: No OFD packet to send [02:31:30]OFD Sender: No OFD packet to send [02:31:35]OFD Sender: No OFD packet to send [02:31:40]OFD Sender: No OFD packet to send [02:31:45]OFD Sender: No OFD packet to send [02:31:50]OFD Sender: No OFD packet to send [02:31:55]OFD Sender: No OFD packet to send [02:32:00]OFD Sender: No OFD packet to send [02:32:05]OFD Sender: No OFD packet to send [02:32:10]OFD Sender: No OFD packet to send [02:32:15]OFD Sender: No OFD packet to send [02:32:20]OFD Sender: No OFD packet to send [02:32:25]OFD Sender: No OFD packet to send [02:32:30]OFD Sender: No OFD packet to send [02:32:35]OFD Sender: No OFD packet to send [02:32:40]OFD Sender: No OFD packet to send [02:32:45]OFD Sender: No OFD packet to send [02:32:50]OFD Sender: No OFD packet to send [02:32:55]OFD Sender: No OFD packet to send [02:33:00]OFD Sender: No OFD packet to send [02:33:05]OFD Sender: No OFD packet to send [02:33:10]OFD Sender: No OFD packet to send [02:33:16]OFD Sender: No OFD packet to send [02:33:21]OFD Sender: No OFD packet to send [02:33:26]OFD Sender: No OFD packet to send [02:33:31]OFD Sender: No OFD packet to send [02:33:36]OFD Sender: No OFD packet to send [02:33:41]OFD Sender: No OFD packet to send [02:33:46]OFD Sender: No OFD packet to send [02:33:51]OFD Sender: No OFD packet to send [02:33:56]OFD Sender: No OFD packet to send [02:34:01]OFD Sender: No OFD packet to send [02:34:06]OFD Sender: No OFD packet to send [02:34:11]OFD Sender: No OFD packet to send [02:34:16]OFD Sender: No OFD packet to send [02:34:21]OFD Sender: No OFD packet to send [02:34:26]OFD Sender: No OFD packet to send [02:34:31]OFD Sender: No OFD packet to send [02:34:36]OFD Sender: No OFD packet to send [02:34:41]OFD Sender: No OFD packet to send [02:34:46]OFD Sender: No OFD packet to send [02:34:51]OFD Sender: No OFD packet to send [02:34:56]OFD Sender: No OFD packet to send [02:35:01]OFD Sender: No OFD packet to send [02:35:06]OFD Sender: No OFD packet to send [02:35:11]OFD Sender: No OFD packet to send [02:35:16]OFD Sender: No OFD packet to send [02:35:21]OFD Sender: No OFD packet to send [02:35:26]OFD Sender: No OFD packet to send [02:35:31]OFD Sender: No OFD packet to send [02:35:36]OFD Sender: No OFD packet to send [02:35:41]OFD Sender: No OFD packet to send [02:35:46]OFD Sender: No OFD packet to send [02:35:51]OFD Sender: No OFD packet to send [02:35:56]OFD Sender: No OFD packet to send [02:36:01]OFD Sender: No OFD packet to send [02:36:06]OFD Sender: No OFD packet to send [02:36:11]OFD Sender: No OFD packet to send [02:36:16]OFD Sender: No OFD packet to send [02:36:21]OFD Sender: No OFD packet to send [02:36:26]OFD Sender: No OFD packet to send [02:36:31]OFD Sender: No OFD packet to send [02:36:36]OFD Sender: No OFD packet to send [02:36:41]OFD Sender: No OFD packet to send [02:36:46]OFD Sender: No OFD packet to send [02:36:51]OFD Sender: No OFD packet to send [02:36:56]OFD Sender: No OFD packet to send [02:37:01]OFD Sender: No OFD packet to send [02:37:07]OFD Sender: No OFD packet to send [02:37:12]OFD Sender: No OFD packet to send [02:37:17]OFD Sender: No OFD packet to send [02:37:22]OFD Sender: No OFD packet to send [02:37:27]OFD Sender: No OFD packet to send [02:37:32]OFD Sender: No OFD packet to send [02:37:37]OFD Sender: No OFD packet to send [02:37:42]OFD Sender: No OFD packet to send [02:37:47]OFD Sender: No OFD packet to send [02:37:52]OFD Sender: No OFD packet to send [02:37:57]OFD Sender: No OFD packet to send [02:38:02]OFD Sender: No OFD packet to send [02:38:07]OFD Sender: No OFD packet to send [02:38:12]OFD Sender: No OFD packet to send [02:38:17]OFD Sender: No OFD packet to send [02:38:22]OFD Sender: No OFD packet to send [02:38:27]OFD Sender: No OFD packet to send [02:38:32]OFD Sender: No OFD packet to send [02:38:37]OFD Sender: No OFD packet to send [02:38:42]OFD Sender: No OFD packet to send [02:38:47]OFD Sender: No OFD packet to send [02:38:52]OFD Sender: No OFD packet to send [02:38:57]OFD Sender: No OFD packet to send [02:39:02]OFD Sender: No OFD packet to send [02:39:07]OFD Sender: No OFD packet to send [02:39:12]OFD Sender: No OFD packet to send [02:39:17]OFD Sender: No OFD packet to send [02:39:22]OFD Sender: No OFD packet to send [02:39:27]OFD Sender: No OFD packet to send [02:39:32]OFD Sender: No OFD packet to send [02:39:37]OFD Sender: No OFD packet to send [02:39:42]OFD Sender: No OFD packet to send [02:39:47]OFD Sender: No OFD packet to send [02:39:52]OFD Sender: No OFD packet to send [02:39:57]OFD Sender: No OFD packet to send [02:40:02]OFD Sender: No OFD packet to send [02:40:07]OFD Sender: No OFD packet to send [02:40:12]OFD Sender: No OFD packet to send [02:40:17]OFD Sender: No OFD packet to send [02:40:22]OFD Sender: No OFD packet to send [02:40:27]OFD Sender: No OFD packet to send [02:40:32]OFD Sender: No OFD packet to send [02:40:37]OFD Sender: No OFD packet to send [02:40:42]OFD Sender: No OFD packet to send [02:40:47]OFD Sender: No OFD packet to send [02:40:52]OFD Sender: No OFD packet to send [02:40:58]OFD Sender: No OFD packet to send [02:41:03]OFD Sender: No OFD packet to send [02:41:08]OFD Sender: No OFD packet to send [02:41:13]OFD Sender: No OFD packet to send [02:41:18]OFD Sender: No OFD packet to send [02:41:23]OFD Sender: No OFD packet to send [02:41:28]OFD Sender: No OFD packet to send [02:41:33]OFD Sender: No OFD packet to send [02:41:38]OFD Sender: No OFD packet to send [02:41:43]OFD Sender: No OFD packet to send [02:41:48]OFD Sender: No OFD packet to send [02:41:53]OFD Sender: No OFD packet to send [02:41:58]OFD Sender: No OFD packet to send [02:42:03]OFD Sender: No OFD packet to send [02:42:08]OFD Sender: No OFD packet to send [02:42:13]OFD Sender: No OFD packet to send [02:42:18]OFD Sender: No OFD packet to send [02:42:23]OFD Sender: No OFD packet to send [02:42:28]OFD Sender: No OFD packet to send [02:42:33]OFD Sender: No OFD packet to send [02:42:38]OFD Sender: No OFD packet to send [02:42:43]OFD Sender: No OFD packet to send [02:42:48]OFD Sender: No OFD packet to send [02:42:53]OFD Sender: No OFD packet to send [02:42:58]OFD Sender: No OFD packet to send [02:43:03]OFD Sender: No OFD packet to send [02:43:08]OFD Sender: No OFD packet to send [02:43:13]OFD Sender: No OFD packet to send [02:43:18]OFD Sender: No OFD packet to send [02:43:23]OFD Sender: No OFD packet to send [02:43:28]OFD Sender: No OFD packet to send [02:43:33]OFD Sender: No OFD packet to send [02:43:38]OFD Sender: No OFD packet to send [02:43:43]OFD Sender: No OFD packet to send [02:43:48]OFD Sender: No OFD packet to send [02:43:53]OFD Sender: No OFD packet to send [02:43:58]OFD Sender: No OFD packet to send [02:44:03]OFD Sender: No OFD packet to send [02:44:08]OFD Sender: No OFD packet to send [02:44:13]OFD Sender: No OFD packet to send [02:44:18]OFD Sender: No OFD packet to send [02:44:23]OFD Sender: No OFD packet to send [02:44:28]OFD Sender: No OFD packet to send [02:44:33]OFD Sender: No OFD packet to send [02:44:38]OFD Sender: No OFD packet to send [02:44:44]OFD Sender: No OFD packet to send [02:44:49]OFD Sender: No OFD packet to send [02:44:54]OFD Sender: No OFD packet to send [02:44:59]OFD Sender: No OFD packet to send [02:45:04]OFD Sender: No OFD packet to send [02:45:09]OFD Sender: No OFD packet to send [02:45:14]OFD Sender: No OFD packet to send [02:45:19]OFD Sender: No OFD packet to send [02:45:24]OFD Sender: No OFD packet to send [02:45:29]OFD Sender: No OFD packet to send [02:45:34]OFD Sender: No OFD packet to send [02:45:39]OFD Sender: No OFD packet to send [02:45:44]OFD Sender: No OFD packet to send [02:45:49]OFD Sender: No OFD packet to send [02:45:54]OFD Sender: No OFD packet to send [02:45:59]OFD Sender: No OFD packet to send [02:46:04]OFD Sender: No OFD packet to send [02:46:09]OFD Sender: No OFD packet to send [02:46:14]OFD Sender: No OFD packet to send [02:46:19]OFD Sender: No OFD packet to send [02:46:24]OFD Sender: No OFD packet to send [02:46:29]OFD Sender: No OFD packet to send [02:46:34]OFD Sender: No OFD packet to send [02:46:39]OFD Sender: No OFD packet to send [02:46:44]OFD Sender: No OFD packet to send [02:46:49]OFD Sender: No OFD packet to send [02:46:54]OFD Sender: No OFD packet to send [02:46:59]OFD Sender: No OFD packet to send [02:47:04]OFD Sender: No OFD packet to send [02:47:09]OFD Sender: No OFD packet to send [02:47:14]OFD Sender: No OFD packet to send [02:47:19]OFD Sender: No OFD packet to send [02:47:24]OFD Sender: No OFD packet to send [02:47:29]OFD Sender: No OFD packet to send [02:47:34]OFD Sender: No OFD packet to send [02:47:39]OFD Sender: No OFD packet to send [02:47:44]OFD Sender: No OFD packet to send [02:47:49]OFD Sender: No OFD packet to send [02:47:54]OFD Sender: No OFD packet to send [02:47:59]OFD Sender: No OFD packet to send [02:48:04]OFD Sender: No OFD packet to send [02:48:09]OFD Sender: No OFD packet to send [02:48:14]OFD Sender: No OFD packet to send [02:48:19]OFD Sender: No OFD packet to send [02:48:24]OFD Sender: No OFD packet to send [02:48:29]OFD Sender: No OFD packet to send [02:48:35]OFD Sender: No OFD packet to send [02:48:40]OFD Sender: No OFD packet to send [02:48:45]OFD Sender: No OFD packet to send [02:48:50]OFD Sender: No OFD packet to send [02:48:55]OFD Sender: No OFD packet to send [02:49:00]OFD Sender: No OFD packet to send [02:49:05]OFD Sender: No OFD packet to send [02:49:10]OFD Sender: No OFD packet to send [02:49:15]OFD Sender: No OFD packet to send [02:49:20]OFD Sender: No OFD packet to send [02:49:25]OFD Sender: No OFD packet to send [02:49:30]OFD Sender: No OFD packet to send [02:49:35]OFD Sender: No OFD packet to send [02:49:40]OFD Sender: No OFD packet to send [02:49:45]OFD Sender: No OFD packet to send [02:49:50]OFD Sender: No OFD packet to send [02:49:55]OFD Sender: No OFD packet to send [02:50:00]OFD Sender: No OFD packet to send [02:50:05]OFD Sender: No OFD packet to send [02:50:10]OFD Sender: No OFD packet to send [02:50:15]OFD Sender: No OFD packet to send [02:50:20]OFD Sender: No OFD packet to send [02:50:25]OFD Sender: No OFD packet to send [02:50:30]OFD Sender: No OFD packet to send [02:50:35]OFD Sender: No OFD packet to send [02:50:40]OFD Sender: No OFD packet to send [02:50:45]OFD Sender: No OFD packet to send [02:50:48]accept exits with 7 [02:50:48]New connection [02:50:48]New thread 3066649956 created [02:50:48]Thread 3066506596 joined [02:50:48]Waiting for new connection... [02:50:48] Sock 7.Parse request [02:50:48]Sock 7.Check first char [02:50:48]Sock 7.First char is OK [02:50:48]request: POST /json_proto HTTP/1.0 [02:50:48]Method: POST [02:50:48]URL: /json_proto [02:50:48]Method is POST - this is cgi request [02:50:48]url: /json_proto [02:50:48]query_string will be loaded in cgi processing [02:50:48]execute_cgi json_proto POST (null) [02:50:48]execute_cgi path=json_proto method=POST [02:50:48]POST find Content-Length [02:50:48]Host: 172.17.42.131:8080 [02:50:48]Content-Length: 816 [02:50:48]Content-Type: application/json [02:50:48] [02:50:48]POST finish read [02:50:48]Found Content-Length = 816 [02:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:48]execute_script... [02:50: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)210621", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 42", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: \u0411\u0430\u043A\u0430\u0439 \u0411\u0430\u043D\u043A", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:48]POST & json_proto [02:50:48]process_json_proto [02:50:48]json parsed OK: [02:50:48]protocol is kg_v1.0 [02:50:48]action value=close_receipt [02:50:48]process_action close_receipt [02:50:48]cmd_close_receipt [02:50:48]MH_GetDate [02:50:48]Write to MH i2c: F0 00 00 2F 12 30 [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: F0 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: F0 09 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: F0 09 00 2F 12 00 8A 64 18 67 A0 18 CA 66 8E [02:50:48]GetLastDocTimeStamp 1729650197 [02:50:48]current date 1729651850 [02:50:48]FM_GetShiftState [02:50:48]SAM_PROTO_GetShiftState [02:50:48]wFMCommunicate request_size=4 [02:50:48]MH_SAM_APDU [02:50:48]CAPDU: 80 13 01 00 [02:50:48]Write to MH i2c: E2 08 00 30 12 80 13 01 00 00 00 00 00 BF [02:50:48]Write i2c OK [02:50:48]MH_I2C_Read... [02:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:48]Read from MH i2c: E2 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 0E 00 [02:50:48]MH_I2C_Read... [02:50:48]Read from MH i2c: E2 0E 00 30 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 A7 [02:50:48]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:50:48]wFMCommunicate OK [02:50:48]SAM_PROTO_GetShiftState done [02:50:48]FM_GetShiftState done [02:50:48]opened in 1729642525 [02:50:48]opened+sec_in_day 1729728925 [02:50:48]quantity*price = 50041 [02:50:48]sum+1 = 50042 [02:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 20 23.10.2024 02:50 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 Платежная система: Бакай Банк ФМ: 0000000000965340 ФД: 188562 ФПД: 170027760848086 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188562&fm=170027760848086&tin=02508201610067®Number=0000000000100030&sum=50041 [02:50:49]StoreToDocumentArchive [02:50:49]shift 462 fd 188562 [02:50:49]save to /storage/0462/doc_00188562 [02:50:49]save last doc name /storage/0462/doc_00188562 to /storage/kkm_last_doc_name [02:50:49]save OK [02:50:49]Clear old archive folders... [02:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:50:49]tlvbuf is 008E47B0 [02:50:49]SAM_PROTO_ClearQueue [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 09 00 00 [02:50:49]Write to MH i2c: E2 08 00 3D 12 80 09 00 00 00 00 00 00 C1 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 03 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 03 00 3D 12 00 90 00 C3 [02:50:49]RAPDU: 90 00 [02:50:49]wFMCommunicate OK [02:50:49]SAM_PROTO_ClearQueue done [02:50:49]KKMCreateOFDPacket [02:50:49]OFDProtocolAddRootSTLVToBuf [02:50:49]FM_MakeSignedData [02:50:49]FM_MakeSignedData [02:50:49]SAM_PROTO_SignData [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 0D 01 02 [02:50:49]Write to MH i2c: E2 08 00 3E 12 80 0D 01 02 00 00 00 00 C9 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 03 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 03 00 3E 12 00 90 00 C4 [02:50:49]RAPDU: 90 00 [02:50:49]wFMCommunicate OK [02:50:49]wFMCommunicate request_size=255 [02:50:49]MH_SAM_APDU [02:50: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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8A 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E0 02 00 35 04 06 00 9A [02:50:49]Write to MH i2c: E2 02 01 3F 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 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8A 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E0 02 00 35 04 06 00 9A 00 00 EC [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 03 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 03 00 3F 12 00 90 00 C5 [02:50:50]RAPDU: 90 00 [02:50:50]wFMCommunicate OK [02:50:50]wFMCommunicate request_size=10 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 0D 02 02 05 A3 AC 49 8C D6 [02:50:50]Write to MH i2c: E2 0D 00 40 12 80 0D 02 02 05 00 A3 AC 49 8C D6 00 00 D0 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 03 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 03 00 40 12 00 90 00 C6 [02:50:50]RAPDU: 90 00 [02:50:50]wFMCommunicate OK [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 0D 03 02 [02:50:50]Write to MH i2c: E2 08 00 41 12 80 0D 03 02 00 00 00 00 CE [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0B 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 0B 00 41 12 00 BE 06 EB 59 0B 01 9E AC 90 00 2D [02:50:50]RAPDU: BE 06 EB 59 0B 01 9E AC 90 00 [02:50:50]wFMCommunicate OK [02:50:50]SAM_PROTO_SignData done [02:50:50]FM_MakeSignedData done [02:50:50]CreateOFDProtocolMessage [02:50:50]wFMCommunicate request_size=4 [02:50:50]MH_SAM_APDU [02:50:50]CAPDU: 80 11 00 00 [02:50:50]Write to MH i2c: E2 08 00 42 12 80 11 00 00 00 00 00 00 CE [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:50]Read from MH i2c: E2 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 17 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: E2 17 00 42 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 1C [02:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:50:50]wFMCommunicate OK [02:50:50]CreateOFDProtocolMessage done [02:50:50]OFDSenderStorePacket 188562 [02:50:50]StoreOFDPacket docnum=188562 [02:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 52 FA 07 01 5E B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8A 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E0 02 00 35 04 06 00 9A A3 AC 49 8C D6 BE 06 EB 59 0B 01 9E AC [02:50:50]CheckFolder [02:50:50]dirname=/storage/ofd_packets [02:50:50]CheckFolder done [02:50:50]ProducePacketName [02:50:50]name=ofd_packets/00188562 [02:50:50]NVStorageSaveData ofd_packets/00188562 [02:50:50]File name is /storage/ofd_packets/00188562 [02:50:50]Write 301 bytes [02:50:50]NVStorageSaveData done [02:50:50]OFDSenderStorePacket done [02:50:50]KKMCreateOFDPacket done [02:50:50]NVStorageSaveData kkm_last_timestamp [02:50:50]File name is /storage/kkm_last_timestamp [02:50:50]Write 4 bytes [02:50:50]NVStorageSaveData done [02:50:50]ExternCall_PrintAddStr [02:50:50]wPrintStart [02:50:50]Write to MH i2c: 01 00 00 43 12 55 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 07 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 07 00 43 12 00 00 00 00 00 FF 0F 6A [02:50:50]RasterBufferAndPrint [02:50:50]line Счет N : (1)210621 [02:50:50]line ИНН: 02508201610067 [02:50:50]line Контрольно-Кассовый Чек [02:50:50]line ПРОДАЖА [02:50:50]line ТРК (МРК, ГНК) : 42 [02:50:50]line Товар: 2710124130 [02:50:50]line Аи-92-К-3 [02:50:50]line 7.480 * 66.90 [02:50:50]line = 500.41 [02:50:50]line НДС 12% НСП 1% [02:50:50]line > о реализуемом товаре [02:50:50]line ИТОГО: 500.41 [02:50:50]line НСП 1% : 4.43 [02:50:50]line НДС 12% : 53.14 [02:50:50]line Наличными: 0.00 [02:50:50]line Безнал.: 500.41 [02:50:50]line Место: АЗС № 86 "Партнер Нефть" [02:50:50]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:50:50]line СНО: Общий режим [02:50:50]line Чек 20 23.10.2024 02:50 [02:50:50]line Смена: 462 ФФД: 1.0 [02:50:50]line ЗНМ: 0300000155 [02:50:50]line РНМ: 0000000000100030 [02:50:50]line Версия ККМ: 001 [02:50:50]line Платежная система: Бакай Банк [02:50:50]line ФМ: 0000000000965340 [02:50:50]line ФД: 188562 [02:50:50]line ФПД: 170027760848086 [02:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025050&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188562&fm=170027760848086&tin=02508201610067®Number=0000000000100030&sum=50041 [02:50:50]written 0, free lines is 4095 [02:50:50]OFD Sender: Processing packet 188562 [packets to send 1062, broken 1061] [02:50:50]ProducePacketName [02:50:50]name=ofd_packets/00188562 [02:50:50]OFD Sender: To server: pG, [02:50:50]CommunicateWithHost lk.salyk.kg:30040 [02:50:50]ConnectInit lk.salyk.kg [02:50:50]Connected sock=10 [02:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 52 FA 07 01 5E B4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 8A 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 92 E0 02 00 35 04 06 00 9A A3 AC 49 8C D6 BE 06 EB 59 0B 01 9E AC [02:50:50]Write to MH i2c: 01 00 00 6D 12 7F [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 07 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: 01 07 00 6D 12 00 00 00 00 00 57 0C E9 [02:50:50]RasterBufferAndPrint [02:50:50]line [02:50:50]line [02:50:50]line [02:50:50]line [02:50:50]line [02:50:50]written 0, free lines is 3165 [02:50:50]MH_Cut [02:50:50]Write to MH i2c: D1 01 00 74 12 01 58 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: D1 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: D1 01 00 [02:50:50]MH_I2C_Read... [02:50:50]Read from MH i2c: D1 01 00 74 12 00 57 [02:50:50]Write to MH i2c: 01 00 00 75 12 87 [02:50:50]Write i2c OK [02:50:50]MH_I2C_Read... [02:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 73 A0 47 00 88 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 39 36 35 33 34 30 10 04 04 00 92 E0 02 00 F4 03 04 00 76 0E 18 67 B6 04 01 00 00 AB E9 A1 38 52 37 30 2F [02:50:51]CommunicateWithHost err = 0 [02:50:51]CheckOFDResponse [02:50:51]1017 (14) - 77093643461234 [02:50:51]1041 (16) - 0000000000965340 [02:50:51]1040 (4) - 188562 [02:50:51]1012 (4) - 22.10.2024 20:43 [02:50:51]1206 (1) - 0 [02:50:51]OFD Sender: Remove packet 188562 [02:50:51]ProducePacketName [02:50:51]name=ofd_packets/00188562 [02:50:51]NVStorageDeleteData [02:50:51]OFD Sender: No OFD packet to send [02:50:52]*** Cut start [02:50:52]*** Partial cut [02:50:52]*** CUTSNS_PIN = 1 [02:50:52]*** CUTSNS_PIN = 0 [02:50:52]*** Brake cut motor [02:50:52]Read from MH i2c: 01 [02:50:52]MH_I2C_Read... [02:50:52]*** Stop cut motor [02:50:52]*** Cut end [02:50:52]Read from MH i2c: 01 07 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: 01 07 00 75 12 00 00 00 00 00 FF 0F 9C [02:50:52]process_action close_receipt done [02:50:52]requested_data is exist [02:50:52]produce_requested_data [02:50:52]requested_item fm.sn is exist - process it [02:50:52]wFMCommunicate request_size=4 [02:50:52]MH_SAM_APDU [02:50:52]CAPDU: 80 11 00 00 [02:50:52]Write to MH i2c: E2 08 00 76 12 80 11 00 00 00 00 00 00 02 [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:52]Read from MH i2c: E2 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 17 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 17 00 76 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 50 [02:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:50:52]wFMCommunicate OK [02:50:52]requested_item fd.num is exist - process it [02:50:52]SAM_PROTO_GetFieldsCounters [02:50:52]wFMCommunicate request_size=4 [02:50:52]MH_SAM_APDU [02:50:52]CAPDU: 80 13 00 00 [02:50:52]Write to MH i2c: E2 08 00 77 12 80 13 00 00 00 00 00 00 05 [02:50:52]Write i2c OK [02:50:52]MH_I2C_Read... [02:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:52]Read from MH i2c: E2 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 62 00 [02:50:52]MH_I2C_Read... [02:50:52]Read from MH i2c: E2 62 00 77 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 E0 02 00 0E 04 04 00 CE 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 8B [02:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 92 E0 02 00 0E 04 04 00 CE 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 [02:50:52]wFMCommunicate OK [02:50:52]SAM_PROTO_GetFieldsCounters done [02:50:52]requested_item shift.num is exist - process it [02:50:52]requested_item shift.opened is exist - process it [02:50:52]req_shift_opened [02:50:52]FM_GetShiftState [02:50:52]SAM_PROTO_GetShiftState [02:50:52]wFMCommunicate request_size=4 [02:50:52]MH_SAM_APDU [02:50:52]CAPDU: 80 13 01 00 [02:50:52]Write to MH i2c: E2 08 00 78 12 80 13 01 00 00 00 00 00 07 [02:50:53]Write i2c OK [02:50:53]MH_I2C_Read... [02:50:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:53]Read from MH i2c: E2 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: E2 0E 00 [02:50:53]MH_I2C_Read... [02:50:53]Read from MH i2c: E2 0E 00 78 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 EF [02:50:53]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:50:53]wFMCommunicate OK [02:50:53]SAM_PROTO_GetShiftState done [02:50:53]FM_GetShiftState done [02:50:53]req_shift_opened done [02:50:53]requested_item shift.open_date is exist - process it [02:50:53]req_shift_open_date [02:50:53]req_shift_open_date done [02:50:53]produce_requested_data done [02:50:53]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188562,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [02:50:53]process_action_free close_receipt [02:50:53]json_value_free [02:50:53]json_value_free done [02:50:53]process_json_proto returns [02:50:53]Send response to host [02:50:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188562,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [02:50:53]free response buf [02:50:53]execute_script done [02:50:53]execute_script returns [02:50:53]free content buf [02:50:53]Sock 7.Close socket [02:50:53]Sock 7.Thread stoped [02:50:56]OFD Sender: No OFD packet to send [02:51:01]OFD Sender: No OFD packet to send [02:51:06]OFD Sender: No OFD packet to send [02:51:11]OFD Sender: No OFD packet to send [02:51:16]OFD Sender: No OFD packet to send [02:51:21]OFD Sender: No OFD packet to send [02:51:26]OFD Sender: No OFD packet to send [02:51:31]OFD Sender: No OFD packet to send [02:51:36]OFD Sender: No OFD packet to send [02:51:41]OFD Sender: No OFD packet to send [02:51:46]OFD Sender: No OFD packet to send [02:51:51]OFD Sender: No OFD packet to send [02:51:56]OFD Sender: No OFD packet to send [02:52:01]OFD Sender: No OFD packet to send [02:52:06]OFD Sender: No OFD packet to send [02:52:09]accept exits with 9 [02:52:09]New connection [02:52:09]New thread 3066506596 created [02:52:09]Thread 3066649956 joined [02:52:09]Waiting for new connection... [02:52:09] Sock 9.Parse request [02:52:09]Sock 9.Check first char [02:52:09]Sock 9.First char is OK [02:52:09]request: POST /json_proto HTTP/1.0 [02:52:09]Method: POST [02:52:09]URL: /json_proto [02:52:09]Method is POST - this is cgi request [02:52:09]url: /json_proto [02:52:09]query_string will be loaded in cgi processing [02:52:09]execute_cgi json_proto POST (null) [02:52:09]execute_cgi path=json_proto method=POST [02:52:09]POST find Content-Length [02:52:09]Host: 172.17.42.131:8080 [02:52:09]Content-Length: 679 [02:52:09]Content-Type: application/json [02:52:09] [02:52:09]POST finish read [02:52:09]Found Content-Length = 679 [02:52:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:09]execute_script... [02:52:09]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210622", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "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 }]} ], "deposit" : 3000.00, "total" : 3000.00, "payments": [ { "type": 0, "sum" : 3000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:09]POST & json_proto [02:52:09]process_json_proto [02:52:09]json parsed OK: [02:52:09]protocol is kg_v1.0 [02:52:09]action value=close_receipt [02:52:09]process_action close_receipt [02:52:09]cmd_close_receipt [02:52:09]MH_GetDate [02:52:09]Write to MH i2c: F0 00 00 79 12 7A [02:52:09]Write i2c OK [02:52:09]MH_I2C_Read... [02:52:09]Read from MH i2c: F0 [02:52:09]MH_I2C_Read... [02:52:09]Read from MH i2c: F0 09 00 [02:52:09]MH_I2C_Read... [02:52:09]Read from MH i2c: F0 09 00 79 12 00 DB 64 18 67 A0 18 CA 66 29 [02:52:09]GetLastDocTimeStamp 1729651850 [02:52:09]current date 1729651931 [02:52:09]FM_GetShiftState [02:52:09]SAM_PROTO_GetShiftState [02:52:09]wFMCommunicate request_size=4 [02:52:09]MH_SAM_APDU [02:52:09]CAPDU: 80 13 01 00 [02:52:09]Write to MH i2c: E2 08 00 7A 12 80 13 01 00 00 00 00 00 09 [02:52:09]Write i2c OK [02:52:09]MH_I2C_Read... [02:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:09]Read from MH i2c: E2 [02:52:09]MH_I2C_Read... [02:52:09]Read from MH i2c: E2 0E 00 [02:52:09]MH_I2C_Read... [02:52:09]Read from MH i2c: E2 0E 00 7A 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 F1 [02:52:09]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:52:09]wFMCommunicate OK [02:52:09]SAM_PROTO_GetShiftState done [02:52:09]FM_GetShiftState done [02:52:09]opened in 1729642525 [02:52:09]opened+sec_in_day 1729728925 [02:52:09]quantity*price = 300075 [02:52:09]sum+1 = 300077 [02:52:09]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.76 ИТОГО: 3000.00 Внесено: 3000.00 СДАЧА: 0.00 НСП 1% : 26.55 НДС 12% : 318.66 Наличными: 3000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 21 23.10.2024 02:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188563 ФПД: 184300163061085 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025211&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188563&fm=184300163061085&tin=02508201610067®Number=0000000000100030&sum=300000 [02:52:11]StoreToDocumentArchive [02:52:11]shift 462 fd 188563 [02:52:11]save to /storage/0462/doc_00188563 [02:52:11]save last doc name /storage/0462/doc_00188563 to /storage/kkm_last_doc_name [02:52:11]save OK [02:52:11]Clear old archive folders... [02:52:11]ProcessDocumentItem done err = 0, tmpTLVsize=248 [02:52:11]tlvbuf is 008F2240 [02:52:11]SAM_PROTO_ClearQueue [02:52:11]wFMCommunicate request_size=4 [02:52:11]MH_SAM_APDU [02:52:11]CAPDU: 80 09 00 00 [02:52:11]Write to MH i2c: E2 08 00 87 12 80 09 00 00 00 00 00 00 0B [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:11]Read from MH i2c: E2 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 87 12 00 90 00 0D [02:52:11]RAPDU: 90 00 [02:52:11]wFMCommunicate OK [02:52:11]SAM_PROTO_ClearQueue done [02:52:11]KKMCreateOFDPacket [02:52:11]OFDProtocolAddRootSTLVToBuf [02:52:11]FM_MakeSignedData [02:52:11]FM_MakeSignedData [02:52:11]SAM_PROTO_SignData [02:52:11]wFMCommunicate request_size=4 [02:52:11]MH_SAM_APDU [02:52:11]CAPDU: 80 0D 01 02 [02:52:11]Write to MH i2c: E2 08 00 88 12 80 0D 01 02 00 00 00 00 13 [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:11]Read from MH i2c: E2 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 88 12 00 90 00 0E [02:52:11]RAPDU: 90 00 [02:52:11]wFMCommunicate OK [02:52:11]wFMCommunicate request_size=255 [02:52:11]MH_SAM_APDU [02:52:11]CAPDU: 80 0D 02 02 FA 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DB 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E0 02 00 35 04 06 00 A7 9E B9 C0 [02:52:11]Write to MH i2c: E2 02 01 89 12 80 0D 02 02 FA 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DB 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E0 02 00 35 04 06 00 A7 9E B9 C0 00 00 8A [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:11]Read from MH i2c: E2 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 89 12 00 90 00 0F [02:52:11]RAPDU: 90 00 [02:52:11]wFMCommunicate OK [02:52:11]wFMCommunicate request_size=7 [02:52:11]MH_SAM_APDU [02:52:11]CAPDU: 80 0D 02 02 02 55 5D [02:52:11]Write to MH i2c: E2 0A 00 8A 12 80 0D 02 02 02 00 55 5D 00 00 CC [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:11]Read from MH i2c: E2 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 03 00 8A 12 00 90 00 10 [02:52:11]RAPDU: 90 00 [02:52:11]wFMCommunicate OK [02:52:11]wFMCommunicate request_size=4 [02:52:11]MH_SAM_APDU [02:52:11]CAPDU: 80 0D 03 02 [02:52:11]Write to MH i2c: E2 08 00 8B 12 80 0D 03 02 00 00 00 00 18 [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:11]Read from MH i2c: E2 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 0B 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 0B 00 8B 12 00 CA F9 D3 09 4E 41 4B 4D 90 00 DF [02:52:11]RAPDU: CA F9 D3 09 4E 41 4B 4D 90 00 [02:52:11]wFMCommunicate OK [02:52:11]SAM_PROTO_SignData done [02:52:11]FM_MakeSignedData done [02:52:11]CreateOFDProtocolMessage [02:52:11]wFMCommunicate request_size=4 [02:52:11]MH_SAM_APDU [02:52:11]CAPDU: 80 11 00 00 [02:52:11]Write to MH i2c: E2 08 00 8C 12 80 11 00 00 00 00 00 00 18 [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:11]Read from MH i2c: E2 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 17 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: E2 17 00 8C 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 66 [02:52:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:52:11]wFMCommunicate OK [02:52:11]CreateOFDProtocolMessage done [02:52:11]OFDSenderStorePacket 188563 [02:52:11]StoreOFDPacket docnum=188563 [02:52:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 BD 40 04 01 0D 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DB 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E0 02 00 35 04 06 00 A7 9E B9 C0 55 5D CA F9 D3 09 4E 41 4B 4D [02:52:11]CheckFolder [02:52:11]dirname=/storage/ofd_packets [02:52:11]CheckFolder done [02:52:11]ProducePacketName [02:52:11]name=ofd_packets/00188563 [02:52:11]NVStorageSaveData ofd_packets/00188563 [02:52:11]File name is /storage/ofd_packets/00188563 [02:52:11]Write 298 bytes [02:52:11]NVStorageSaveData done [02:52:11]OFDSenderStorePacket done [02:52:11]KKMCreateOFDPacket done [02:52:11]NVStorageSaveData kkm_last_timestamp [02:52:11]File name is /storage/kkm_last_timestamp [02:52:11]Write 4 bytes [02:52:11]NVStorageSaveData done [02:52:11]ExternCall_PrintAddStr [02:52:11]wPrintStart [02:52:11]Write to MH i2c: 01 00 00 8D 12 9F [02:52:11]Write i2c OK [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: 01 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: 01 07 00 [02:52:11]MH_I2C_Read... [02:52:11]Read from MH i2c: 01 07 00 8D 12 00 00 00 00 00 FF 0F B4 [02:52:11]RasterBufferAndPrint [02:52:11]line Счет N : (1)210622 [02:52:11]line ИНН: 02508201610067 [02:52:11]line Контрольно-Кассовый Чек [02:52:11]line ПРОДАЖА [02:52:11]line ТРК (МРК, ГНК) : 51 [02:52:11]line Товар: 2710194210 [02:52:11]line ДТ-К-5 [02:52:11]line 39.380 * 76.20 [02:52:11]line = 3000.76 [02:52:11]line НДС 12% НСП 1% [02:52:11]line > о реализуемом товаре [02:52:11]line ОКРУГЛЕНИЕ: -0.76 [02:52:11]line ИТОГО: 3000.00 [02:52:11]line Внесено: 3000.00 [02:52:11]line СДАЧА: 0.00 [02:52:11]line НСП 1% : 26.55 [02:52:11]line НДС 12% : 318.66 [02:52:11]line Наличными: 3000.00 [02:52:11]line Безнал.: 0.00 [02:52:11]line Место: АЗС № 86 "Партнер Нефть" [02:52:11]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:52:11]line СНО: Общий режим [02:52:11]line Чек 21 23.10.2024 02:52 [02:52:11]line Смена: 462 ФФД: 1.0 [02:52:11]line ЗНМ: 0300000155 [02:52:11]line РНМ: 0000000000100030 [02:52:11]line Версия ККМ: 001 [02:52:11]line ФМ: 0000000000965340 [02:52:11]line ФД: 188563 [02:52:11]line ФПД: 184300163061085 [02:52:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025211&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188563&fm=184300163061085&tin=02508201610067®Number=0000000000100030&sum=300000 [02:52:11]written 0, free lines is 4095 [02:52:11]OFD Sender: Processing packet 188563 [packets to send 1062, broken 1061] [02:52:11]ProducePacketName [02:52:11]name=ofd_packets/00188563 [02:52:11]OFD Sender: To server: pG, [02:52:11]CommunicateWithHost lk.salyk.kg:30040 [02:52:11]ConnectInit lk.salyk.kg [02:52:11]Connected sock=10 [02:52:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0C 01 00 00 BD 40 04 01 0D 25 5A 03 01 00 03 00 F8 00 1E 04 01 00 01 23 04 4A 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 09 00 D0 94 D0 A2 2D D0 9A 2D 35 FF 03 08 00 03 D4 99 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 2C 94 04 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 93 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 7C 00 00 00 00 07 04 06 00 E0 93 04 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 DB 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E0 02 00 35 04 06 00 A7 9E B9 C0 55 5D CA F9 D3 09 4E 41 4B 4D [02:52:12]Write to MH i2c: 01 00 00 B8 12 CA [02:52:12]Write i2c OK [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: 01 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: 01 07 00 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: 01 07 00 B8 12 00 00 00 00 00 4C 0C 29 [02:52:12]RasterBufferAndPrint [02:52:12]line [02:52:12]line [02:52:12]line [02:52:12]line [02:52:12]line [02:52:12]written 0, free lines is 3152 [02:52:12]MH_Cut [02:52:12]Write to MH i2c: D1 01 00 BF 12 01 A3 [02:52:12]Write i2c OK [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: D1 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: D1 01 00 [02:52:12]MH_I2C_Read... [02:52:12]Read from MH i2c: D1 01 00 BF 12 00 A2 [02:52:12]Write to MH i2c: 01 00 00 C0 12 D2 [02:52:12]Write i2c OK [02:52:12]MH_I2C_Read... [02:52:12]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 56 D9 47 00 53 6E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 93 E0 02 00 F4 03 04 00 C7 0E 18 67 B6 04 01 00 00 7F 27 82 78 A3 91 2B 9B [02:52:12]CommunicateWithHost err = 0 [02:52:12]CheckOFDResponse [02:52:12]1017 (14) - 77093643461234 [02:52:12]1041 (16) - 0000000000965340 [02:52:12]1040 (4) - 188563 [02:52:12]1012 (4) - 22.10.2024 20:44 [02:52:12]1206 (1) - 0 [02:52:12]OFD Sender: Remove packet 188563 [02:52:12]ProducePacketName [02:52:12]name=ofd_packets/00188563 [02:52:12]NVStorageDeleteData [02:52:12]OFD Sender: No OFD packet to send [02:52:13]*** Cut start [02:52:13]*** Partial cut [02:52:13]*** CUTSNS_PIN = 1 [02:52:13]*** CUTSNS_PIN = 0 [02:52:13]*** Brake cut motor [02:52:14]Read from MH i2c: 01 [02:52:14]MH_I2C_Read... [02:52:14]*** Stop cut motor [02:52:14]*** Cut end [02:52:14]Read from MH i2c: 01 07 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: 01 07 00 C0 12 00 00 00 00 00 FF 0F E7 [02:52:14]process_action close_receipt done [02:52:14]requested_data is exist [02:52:14]produce_requested_data [02:52:14]requested_item fm.sn is exist - process it [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 11 00 00 [02:52:14]Write to MH i2c: E2 08 00 C1 12 80 11 00 00 00 00 00 00 4D [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 17 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 17 00 C1 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 9B [02:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:52:14]wFMCommunicate OK [02:52:14]requested_item fd.num is exist - process it [02:52:14]SAM_PROTO_GetFieldsCounters [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 13 00 00 [02:52:14]Write to MH i2c: E2 08 00 C2 12 80 13 00 00 00 00 00 00 50 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 62 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 62 00 C2 12 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 E0 02 00 0E 04 04 00 CE 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 DA [02:52:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 93 E0 02 00 0E 04 04 00 CE 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 [02:52:14]wFMCommunicate OK [02:52:14]SAM_PROTO_GetFieldsCounters done [02:52:14]requested_item shift.num is exist - process it [02:52:14]requested_item shift.opened is exist - process it [02:52:14]req_shift_opened [02:52:14]FM_GetShiftState [02:52:14]SAM_PROTO_GetShiftState [02:52:14]wFMCommunicate request_size=4 [02:52:14]MH_SAM_APDU [02:52:14]CAPDU: 80 13 01 00 [02:52:14]Write to MH i2c: E2 08 00 C3 12 80 13 01 00 00 00 00 00 52 [02:52:14]Write i2c OK [02:52:14]MH_I2C_Read... [02:52:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:14]Read from MH i2c: E2 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 0E 00 [02:52:14]MH_I2C_Read... [02:52:14]Read from MH i2c: E2 0E 00 C3 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3A [02:52:14]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:52:14]wFMCommunicate OK [02:52:14]SAM_PROTO_GetShiftState done [02:52:14]FM_GetShiftState done [02:52:14]req_shift_opened done [02:52:14]requested_item shift.open_date is exist - process it [02:52:14]req_shift_open_date [02:52:14]req_shift_open_date done [02:52:14]produce_requested_data done [02:52:14]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188563,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [02:52:14]process_action_free close_receipt [02:52:14]json_value_free [02:52:14]json_value_free done [02:52:14]process_json_proto returns [02:52:14]Send response to host [02:52:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188563,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [02:52:14]free response buf [02:52:14]execute_script done [02:52:14]execute_script returns [02:52:14]free content buf [02:52:14]Sock 9.Close socket [02:52:14]Sock 9.Thread stoped [02:52:16]accept exits with 7 [02:52:16]New connection [02:52:16]New thread 3066649956 created [02:52:16]Thread 3066506596 joined [02:52:16]Waiting for new connection... [02:52:16] Sock 7.Parse request [02:52:16]Sock 7.Check first char [02:52:16]Sock 7.First char is OK [02:52:16]request: POST /json_proto HTTP/1.0 [02:52:16]Method: POST [02:52:16]URL: /json_proto [02:52:16]Method is POST - this is cgi request [02:52:16]url: /json_proto [02:52:16]query_string will be loaded in cgi processing [02:52:16]execute_cgi json_proto POST (null) [02:52:16]execute_cgi path=json_proto method=POST [02:52:16]POST find Content-Length [02:52:16]Host: 172.17.42.131:8080 [02:52:16]Content-Length: 682 [02:52:16]Content-Type: application/json [02:52:16] [02:52:16]POST finish read [02:52:16]Found Content-Length = 682 [02:52:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)210623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:16]execute_script... [02:52: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)210623", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 32", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-3", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:52:16]POST & json_proto [02:52:16]process_json_proto [02:52:16]json parsed OK: [02:52:16]protocol is kg_v1.0 [02:52:16]action value=close_receipt [02:52:16]process_action close_receipt [02:52:16]cmd_close_receipt [02:52:16]MH_GetDate [02:52:16]Write to MH i2c: F0 00 00 C4 12 C5 [02:52:16]Write i2c OK [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: F0 [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: F0 09 00 [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: F0 09 00 C4 12 00 E2 64 18 67 A0 18 CA 66 7B [02:52:16]GetLastDocTimeStamp 1729651931 [02:52:16]current date 1729651938 [02:52:16]FM_GetShiftState [02:52:16]SAM_PROTO_GetShiftState [02:52:16]wFMCommunicate request_size=4 [02:52:16]MH_SAM_APDU [02:52:16]CAPDU: 80 13 01 00 [02:52:16]Write to MH i2c: E2 08 00 C5 12 80 13 01 00 00 00 00 00 54 [02:52:16]Write i2c OK [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: E2 [02:52:16]MH_I2C_Read... [02:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:16]Read from MH i2c: E2 0E 00 [02:52:16]MH_I2C_Read... [02:52:16]Read from MH i2c: E2 0E 00 C5 12 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 3C [02:52:16]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:52:16]wFMCommunicate OK [02:52:16]SAM_PROTO_GetShiftState done [02:52:16]FM_GetShiftState done [02:52:16]opened in 1729642525 [02:52:16]opened+sec_in_day 1729728925 [02:52:16]quantity*price = 100015 [02:52:16]sum+1 = 100017 [02:52:16]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 86 "Партнер Нефть" Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 СНО: Общий режим Чек 22 23.10.2024 02:52 Смена: 462 ФФД: 1.0 ЗНМ: 0300000155 РНМ: 0000000000100030 Версия ККМ: 001 ФМ: 0000000000965340 ФД: 188564 ФПД: 231344855691687 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188564&fm=231344855691687&tin=02508201610067®Number=0000000000100030&sum=100000 [02:52:17]StoreToDocumentArchive [02:52:17]shift 462 fd 188564 [02:52:17]save to /storage/0462/doc_00188564 [02:52:17]save last doc name /storage/0462/doc_00188564 to /storage/kkm_last_doc_name [02:52:17]save OK [02:52:17]Clear old archive folders... [02:52:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [02:52:17]tlvbuf is 00943C70 [02:52:17]SAM_PROTO_ClearQueue [02:52:17]wFMCommunicate request_size=4 [02:52:17]MH_SAM_APDU [02:52:17]CAPDU: 80 09 00 00 [02:52:17]Write to MH i2c: E2 08 00 D2 12 80 09 00 00 00 00 00 00 56 [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 D2 12 00 90 00 58 [02:52:17]RAPDU: 90 00 [02:52:17]wFMCommunicate OK [02:52:17]SAM_PROTO_ClearQueue done [02:52:17]KKMCreateOFDPacket [02:52:17]OFDProtocolAddRootSTLVToBuf [02:52:17]FM_MakeSignedData [02:52:17]FM_MakeSignedData [02:52:17]SAM_PROTO_SignData [02:52:17]wFMCommunicate request_size=4 [02:52:17]MH_SAM_APDU [02:52:17]CAPDU: 80 0D 01 02 [02:52:17]Write to MH i2c: E2 08 00 D3 12 80 0D 01 02 00 00 00 00 5E [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 D3 12 00 90 00 59 [02:52:17]RAPDU: 90 00 [02:52:17]wFMCommunicate OK [02:52:17]wFMCommunicate request_size=255 [02:52:17]MH_SAM_APDU [02:52: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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E2 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E0 02 00 35 04 06 00 D2 [02:52:17]Write to MH i2c: E2 02 01 D4 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 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E2 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E0 02 00 35 04 06 00 D2 00 00 BD [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]OFD Sender: No OFD packet to send [02:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 D4 12 00 90 00 5A [02:52:17]RAPDU: 90 00 [02:52:17]wFMCommunicate OK [02:52:17]wFMCommunicate request_size=10 [02:52:17]MH_SAM_APDU [02:52:17]CAPDU: 80 0D 02 02 05 68 2B F1 B1 A7 [02:52:17]Write to MH i2c: E2 0D 00 D5 12 80 0D 02 02 05 00 68 2B F1 B1 A7 00 00 47 [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 03 00 D5 12 00 90 00 5B [02:52:17]RAPDU: 90 00 [02:52:17]wFMCommunicate OK [02:52:17]wFMCommunicate request_size=4 [02:52:17]MH_SAM_APDU [02:52:17]CAPDU: 80 0D 03 02 [02:52:17]Write to MH i2c: E2 08 00 D6 12 80 0D 03 02 00 00 00 00 63 [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 0B 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 0B 00 D6 12 00 BE 99 20 1B 9C A0 2A CF 90 00 2B [02:52:17]RAPDU: BE 99 20 1B 9C A0 2A CF 90 00 [02:52:17]wFMCommunicate OK [02:52:17]SAM_PROTO_SignData done [02:52:17]FM_MakeSignedData done [02:52:17]CreateOFDProtocolMessage [02:52:17]wFMCommunicate request_size=4 [02:52:17]MH_SAM_APDU [02:52:17]CAPDU: 80 11 00 00 [02:52:17]Write to MH i2c: E2 08 00 D7 12 80 11 00 00 00 00 00 00 63 [02:52:17]Write i2c OK [02:52:17]MH_I2C_Read... [02:52:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:17]Read from MH i2c: E2 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 17 00 [02:52:17]MH_I2C_Read... [02:52:17]Read from MH i2c: E2 17 00 D7 12 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 B1 [02:52:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:52:17]wFMCommunicate OK [02:52:17]CreateOFDProtocolMessage done [02:52:17]OFDSenderStorePacket 188564 [02:52:17]StoreOFDPacket docnum=188564 [02:52:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 BE 07 01 68 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E2 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E0 02 00 35 04 06 00 D2 68 2B F1 B1 A7 BE 99 20 1B 9C A0 2A CF [02:52:18]CheckFolder [02:52:18]dirname=/storage/ofd_packets [02:52:18]CheckFolder done [02:52:18]ProducePacketName [02:52:18]name=ofd_packets/00188564 [02:52:18]NVStorageSaveData ofd_packets/00188564 [02:52:18]File name is /storage/ofd_packets/00188564 [02:52:18]Write 301 bytes [02:52:18]NVStorageSaveData done [02:52:18]OFDSenderStorePacket done [02:52:18]KKMCreateOFDPacket done [02:52:18]NVStorageSaveData kkm_last_timestamp [02:52:18]File name is /storage/kkm_last_timestamp [02:52:18]Write 4 bytes [02:52:18]NVStorageSaveData done [02:52:18]ExternCall_PrintAddStr [02:52:18]wPrintStart [02:52:18]Write to MH i2c: 01 00 00 D8 12 EA [02:52:18]Write i2c OK [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: 01 [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: 01 07 00 [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: 01 07 00 D8 12 00 00 00 00 00 FF 0F FF [02:52:18]RasterBufferAndPrint [02:52:18]line Счет N : (1)210623 [02:52:18]line ИНН: 02508201610067 [02:52:18]line Контрольно-Кассовый Чек [02:52:18]line ПРОДАЖА [02:52:18]line ТРК (МРК, ГНК) : 32 [02:52:18]line Товар: 2710124130 [02:52:18]line Аи-92-К-3 [02:52:18]line 14.950 * 66.90 [02:52:18]line = 1000.16 [02:52:18]line НДС 12% НСП 1% [02:52:18]line > о реализуемом товаре [02:52:18]line ОКРУГЛЕНИЕ: -0.16 [02:52:18]line ИТОГО: 1000.00 [02:52:18]line Внесено: 1000.00 [02:52:18]line СДАЧА: 0.00 [02:52:18]line НСП 1% : 8.85 [02:52:18]line НДС 12% : 106.21 [02:52:18]line Наличными: 1000.00 [02:52:18]line Безнал.: 0.00 [02:52:18]line Место: АЗС № 86 "Партнер Нефть" [02:52:18]line Адрес: 720001, с. Шамалды Сай, ул. Рыскулова 1, 41.181318, 72.188015 [02:52:18]line СНО: Общий режим [02:52:18]line Чек 22 23.10.2024 02:52 [02:52:18]line Смена: 462 ФФД: 1.0 [02:52:18]line ЗНМ: 0300000155 [02:52:18]line РНМ: 0000000000100030 [02:52:18]line Версия ККМ: 001 [02:52:18]line ФМ: 0000000000965340 [02:52:18]line ФД: 188564 [02:52:18]line ФПД: 231344855691687 [02:52:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241023T025218&type=1&operation_type=1&fn_number=0000000000965340&fd_number=188564&fm=231344855691687&tin=02508201610067®Number=0000000000100030&sum=100000 [02:52:18]written 0, free lines is 4095 [02:52:18]OFD Sender: Processing packet 188564 [packets to send 1062, broken 1061] [02:52:18]ProducePacketName [02:52:18]name=ofd_packets/00188564 [02:52:18]OFD Sender: To server: pG, [02:52:18]CommunicateWithHost lk.salyk.kg:30040 [02:52:18]ConnectInit lk.salyk.kg [02:52:18]Connected sock=10 [02:52:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0F 01 00 00 45 BE 07 01 68 9C 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 33 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 E2 64 18 67 0E 04 04 00 CE 01 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E0 02 00 35 04 06 00 D2 68 2B F1 B1 A7 BE 99 20 1B 9C A0 2A CF [02:52:18]Write to MH i2c: 01 00 00 03 13 16 [02:52:18]Write i2c OK [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: 01 [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: 01 07 00 [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: 01 07 00 03 13 00 00 00 00 00 50 0C 79 [02:52:18]RasterBufferAndPrint [02:52:18]line [02:52:18]line [02:52:18]line [02:52:18]line [02:52:18]line [02:52:18]written 0, free lines is 3161 [02:52:18]MH_Cut [02:52:18]Write to MH i2c: D1 01 00 0A 13 01 EF [02:52:18]Write i2c OK [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: D1 [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: D1 01 00 [02:52:18]MH_I2C_Read... [02:52:18]Read from MH i2c: D1 01 00 0A 13 00 EE [02:52:18]Write to MH i2c: 01 00 00 0B 13 1E [02:52:18]Write i2c OK [02:52:18]MH_I2C_Read... [02:52:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 4F 00 00 00 E7 46 47 00 8F 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 10 04 04 00 94 E0 02 00 F4 03 04 00 CD 0E 18 67 B6 04 01 00 00 AC C2 C1 C6 19 3C 70 52 [02:52:18]CommunicateWithHost err = 0 [02:52:18]CheckOFDResponse [02:52:18]1017 (14) - 77093643461234 [02:52:18]1041 (16) - 0000000000965340 [02:52:18]1040 (4) - 188564 [02:52:18]1012 (4) - 22.10.2024 20:45 [02:52:18]1206 (1) - 0 [02:52:18]OFD Sender: Remove packet 188564 [02:52:18]ProducePacketName [02:52:18]name=ofd_packets/00188564 [02:52:18]NVStorageDeleteData [02:52:19]OFD Sender: No OFD packet to send [02:52:19]*** Cut start [02:52:19]*** Partial cut [02:52:19]*** CUTSNS_PIN = 1 [02:52:19]*** CUTSNS_PIN = 0 [02:52:20]*** Brake cut motor [02:52:20]Read from MH i2c: 01 [02:52:20]MH_I2C_Read... [02:52:20]*** Stop cut motor [02:52:20]*** Cut end [02:52:20]Read from MH i2c: 01 07 00 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: 01 07 00 0B 13 00 00 00 00 00 FF 0F 33 [02:52:20]process_action close_receipt done [02:52:20]requested_data is exist [02:52:20]produce_requested_data [02:52:20]requested_item fm.sn is exist - process it [02:52:20]wFMCommunicate request_size=4 [02:52:20]MH_SAM_APDU [02:52:20]CAPDU: 80 11 00 00 [02:52:20]Write to MH i2c: E2 08 00 0C 13 80 11 00 00 00 00 00 00 99 [02:52:20]Write i2c OK [02:52:20]MH_I2C_Read... [02:52:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:52:20]Read from MH i2c: E2 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 17 00 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 17 00 0C 13 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 E7 [02:52:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 90 00 [02:52:20]wFMCommunicate OK [02:52:20]requested_item fd.num is exist - process it [02:52:20]SAM_PROTO_GetFieldsCounters [02:52:20]wFMCommunicate request_size=4 [02:52:20]MH_SAM_APDU [02:52:20]CAPDU: 80 13 00 00 [02:52:20]Write to MH i2c: E2 08 00 0D 13 80 13 00 00 00 00 00 00 9C [02:52:20]Write i2c OK [02:52:20]MH_I2C_Read... [02:52:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:52:20]Read from MH i2c: E2 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 62 00 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 62 00 0D 13 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 E0 02 00 0E 04 04 00 CE 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 2A [02:52:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 39 36 35 33 34 30 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 31 30 30 30 33 30 10 04 04 00 94 E0 02 00 0E 04 04 00 CE 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 [02:52:20]wFMCommunicate OK [02:52:20]SAM_PROTO_GetFieldsCounters done [02:52:20]requested_item shift.num is exist - process it [02:52:20]requested_item shift.opened is exist - process it [02:52:20]req_shift_opened [02:52:20]FM_GetShiftState [02:52:20]SAM_PROTO_GetShiftState [02:52:20]wFMCommunicate request_size=4 [02:52:20]MH_SAM_APDU [02:52:20]CAPDU: 80 13 01 00 [02:52:20]Write to MH i2c: E2 08 00 0E 13 80 13 01 00 00 00 00 00 9E [02:52:20]Write i2c OK [02:52:20]MH_I2C_Read... [02:52:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:52:20]Read from MH i2c: E2 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 0E 00 [02:52:20]MH_I2C_Read... [02:52:20]Read from MH i2c: E2 0E 00 0E 13 00 09 00 01 1D 40 18 67 00 00 00 00 90 00 86 [02:52:20]RAPDU: 09 00 01 1D 40 18 67 00 00 00 00 90 00 [02:52:20]wFMCommunicate OK [02:52:20]SAM_PROTO_GetShiftState done [02:52:20]FM_GetShiftState done [02:52:20]req_shift_opened done [02:52:20]requested_item shift.open_date is exist - process it [02:52:20]req_shift_open_date [02:52:20]req_shift_open_date done [02:52:20]produce_requested_data done [02:52:20]produce_requested_data return {"fm.sn":"0000000000965340","fd.num":188564,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525} [02:52:20]process_action_free close_receipt [02:52:20]json_value_free [02:52:20]json_value_free done [02:52:20]process_json_proto returns [02:52:20]Send response to host [02:52:20]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000965340","fd.num":188564,"shift.num":462,"shift.opened":1,"shift.open_date":1729642525}}} [02:52:20]free response buf [02:52:20]execute_script done [02:52:20]execute_script returns [02:52:20]free content buf [02:52:20]Sock 7.Close socket [02:52:20]Sock 7.Thread stoped [02:52:24]OFD Sender: No OFD packet to send [02:52:29]OFD Sender: No OFD packet to send [02:52:34]OFD Sender: No OFD packet to send [02:52:39]OFD Sender: No OFD packet to send [02:52:44]OFD Sender: No OFD packet to send [02:52:49]OFD Sender: No OFD packet to send [02:52:54]OFD Sender: No OFD packet to send [02:52:59]OFD Sender: No OFD packet to send [02:53:04]OFD Sender: No OFD packet to send [02:53:09]OFD Sender: No OFD packet to send [02:53:14]OFD Sender: No OFD packet to send [02:53:19]OFD Sender: No OFD packet to send [02:53:24]OFD Sender: No OFD packet to send [02:53:29]OFD Sender: No OFD packet to send [02:53:34]OFD Sender: No OFD packet to send [02:53:39]OFD Sender: No OFD packet to send [02:53:44]OFD Sender: No OFD packet to send [02:53:49]OFD Sender: No OFD packet to send [02:53:54]OFD Sender: No OFD packet to send [02:53:59]OFD Sender: No OFD packet to send [02:54:04]OFD Sender: No OFD packet to send [02:54:09]OFD Sender: No OFD packet to send [02:54:14]OFD Sender: No OFD packet to send [02:54:19]OFD Sender: No OFD packet to send [02:54:24]OFD Sender: No OFD packet to send [02:54:29]OFD Sender: No OFD packet to send [02:54:34]OFD Sender: No OFD packet to send [02:54:39]OFD Sender: No OFD packet to send [02:54:44]OFD Sender: No OFD packet to send [02:54:49]OFD Sender: No OFD packet to send [02:54:54]OFD Sender: No OFD packet to send [02:54:59]OFD Sender: No OFD packet to send [02:55:04]OFD Sender: No OFD packet to send [02:55:09]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:55]OFD Sender: No OFD packet to send [02:58:00]OFD Sender: No OFD packet to send [02:58:05]OFD Sender: No OFD packet to send [02:58:10]OFD Sender: No OFD packet to send [02:58:15]OFD Sender: No OFD packet to send [02:58:20]OFD Sender: No OFD packet to send [02:58:25]OFD Sender: No OFD packet to send [02:58:30]OFD Sender: No OFD packet to send [02:58:35]OFD Sender: No OFD packet to send [02:58:40]OFD Sender: No OFD packet to send [02:58:45]OFD Sender: No OFD packet to send [02:58:50]OFD Sender: No OFD packet to send [02:58:55]OFD Sender: No OFD packet to send [02:59:00]OFD Sender: No OFD packet to send [02:59:06]OFD Sender: No OFD packet to send [02:59:11]OFD Sender: No OFD packet to send [02:59:16]OFD Sender: No OFD packet to send [02:59:21]OFD Sender: No OFD packet to send [02:59:26]OFD Sender: No OFD packet to send [02:59:31]OFD Sender: No OFD packet to send [02:59:36]OFD Sender: No OFD packet to send [02:59:41]OFD Sender: No OFD packet to send [02:59:46]OFD Sender: No OFD packet to send [02:59:51]OFD Sender: No OFD packet to send [02:59:56]OFD Sender: No OFD packet to send [03:00:01]OFD Sender: No OFD packet to send [03:00:06]OFD Sender: No OFD packet to send [03:00:11]OFD Sender: No OFD packet to send [03:00:16]OFD Sender: No OFD packet to send [03:00:21]OFD Sender: No OFD packet to send [03:00:26]OFD Sender: No OFD packet to send [03:00:31]OFD Sender: No OFD packet to send [03:00:36]OFD Sender: No OFD packet to send [03:00:41]OFD Sender: No OFD packet to send [03:00:46]OFD Sender: No OFD packet to send [03:00:51]OFD Sender: No OFD packet to send [03:00:56]OFD Sender: No OFD packet to send [03:01:01]OFD Sender: No OFD packet to send [03:01:06]OFD Sender: No OFD packet to send [03:01:11]OFD Sender: No OFD packet to send [03:01:16]OFD Sender: No OFD packet to send [03:01:21]OFD Sender: No OFD packet to send [03:01:26]OFD Sender: No OFD packet to send [03:01:31]OFD Sender: No OFD packet to send [03:01:36]OFD Sender: No OFD packet to send [03:01:41]OFD Sender: No OFD packet to send [03:01:46]OFD Sender: No OFD packet to send [03:01:51]OFD Sender: No OFD packet to send [03:01:56]OFD Sender: No OFD packet to send [03:02:01]OFD Sender: No OFD packet to send [03:02:06]OFD Sender: No OFD packet to send [03:02:11]OFD Sender: No OFD packet to send [03:02:16]OFD Sender: No OFD packet to send [03:02:21]OFD Sender: No OFD packet to send [03:02:26]OFD Sender: No OFD packet to send [03:02:31]OFD Sender: No OFD packet to send [03:02:36]OFD Sender: No OFD packet to send [03:02:41]OFD Sender: No OFD packet to send [03:02:46]OFD Sender: No OFD packet to send [03:02:51]OFD Sender: No OFD packet to send [03:02:57]OFD Sender: No OFD packet to send [03:03:02]OFD Sender: No OFD packet to send [03:03:07]OFD Sender: No OFD packet to send [03:03:12]OFD Sender: No OFD packet to send [03:03:17]OFD Sender: No OFD packet to send [03:03:22]OFD Sender: No OFD packet to send [03:03:27]OFD Sender: No OFD packet to send [03:03:32]OFD Sender: No OFD packet to send [03:03:37]OFD Sender: No OFD packet to send [03:03:42]OFD Sender: No OFD packet to send [03:03:47]OFD Sender: No OFD packet to send [03:03:52]OFD Sender: No OFD packet to send [03:03:57]OFD Sender: No OFD packet to send [03:04:02]OFD Sender: No OFD packet to send [03:04:07]OFD Sender: No OFD packet to send [03:04:12]OFD Sender: No OFD packet to send [03:04:17]OFD Sender: No OFD packet to send [03:04:22]OFD Sender: No OFD packet to send [03:04:27]OFD Sender: No OFD packet to send [03:04:32]OFD Sender: No OFD packet to send [03:04:37]OFD Sender: No OFD packet to send [03:04:42]OFD Sender: No OFD packet to send [03:04:47]OFD Sender: No OFD packet to send [03:04:52]OFD Sender: No OFD packet to send [03:04:57]OFD Sender: No OFD packet to send [03:05:02]OFD Sender: No OFD packet to send [03:05:07]OFD Sender: No OFD packet to send [03:05:12]OFD Sender: No OFD packet to send [03:05:17]OFD Sender: No OFD packet to send [03:05:22]OFD Sender: No OFD packet to send [03:05:27]OFD Sender: No OFD packet to send [03:05:32]OFD Sender: No OFD packet to send [03:05:37]OFD Sender: No OFD packet to send [03:05:42]OFD Sender: No OFD packet to send [03:05:47]OFD Sender: No OFD packet to send [03:05:52]OFD Sender: No OFD packet to send [03:05:57]OFD Sender: No OFD packet to send [03:06:02]OFD Sender: No OFD packet to send [03:06:07]OFD Sender: No OFD packet to send [03:06:12]OFD Sender: No OFD packet to send [03:06:17]OFD Sender: No OFD packet to send [03:06:22]OFD Sender: No OFD packet to send [03:06:27]OFD Sender: No OFD packet to send [03:06:32]OFD Sender: No OFD packet to send [03:06:37]OFD Sender: No OFD packet to send [03:06:42]OFD Sender: No OFD packet to send [03:06:48]OFD Sender: No OFD packet to send [03:06:53]OFD Sender: No OFD packet to send [03:06:58]OFD Sender: No OFD packet to send [03:07:03]OFD Sender: No OFD packet to send [03:07:08]OFD Sender: No OFD packet to send